Documentation ¶
Index ¶
- Variables
- type Pv1Smartcontract
- type Pv1SmartcontractBlacklisted
- type Pv1SmartcontractBlacklistedIterator
- type Pv1SmartcontractCaller
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) ADDRESSREGISTERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) GroupForAddress(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) IsPolicyBlacklisted(opts *bind.CallOpts, arg0 string) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) LastVoted(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) MinIntervalBetweenVotes(opts *bind.CallOpts) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) POLICYBLACKLISTERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) POLICYCREATORROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) Policies(opts *bind.CallOpts, arg0 string) (struct{ ... }, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) PolicyBlacklistedReason(opts *bind.CallOpts, arg0 string) (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) Registered(opts *bind.CallOpts, arg0 common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) Version(opts *bind.CallOpts) (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) VotedOnProposal(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCaller) Votes(opts *bind.CallOpts, arg0 string) (*big.Int, error)
- type Pv1SmartcontractCallerRaw
- type Pv1SmartcontractCallerSession
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) ADDRESSREGISTERROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) GroupForAddress(arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) IsPolicyBlacklisted(arg0 string) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) LastVoted(arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) MinIntervalBetweenVotes() (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) POLICYBLACKLISTERROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) POLICYCREATORROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Policies(arg0 string) (struct{ ... }, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) PolicyBlacklistedReason(arg0 string) (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Registered(arg0 common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Version() (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) VotedOnProposal(arg0 [32]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Votes(arg0 string) (*big.Int, error)
- type Pv1SmartcontractFilterer
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterBlacklisted(opts *bind.FilterOpts) (*Pv1SmartcontractBlacklistedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterNewPolicy(opts *bind.FilterOpts) (*Pv1SmartcontractNewPolicyIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterPolicyBlacklisted(opts *bind.FilterOpts) (*Pv1SmartcontractPolicyBlacklistedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*Pv1SmartcontractRoleAdminChangedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*Pv1SmartcontractRoleGrantedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*Pv1SmartcontractRoleRevokedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterUnVoted(opts *bind.FilterOpts) (*Pv1SmartcontractUnVotedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterVoted(opts *bind.FilterOpts) (*Pv1SmartcontractVotedIterator, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseBlacklisted(log types.Log) (*Pv1SmartcontractBlacklisted, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseNewPolicy(log types.Log) (*Pv1SmartcontractNewPolicy, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParsePolicyBlacklisted(log types.Log) (*Pv1SmartcontractPolicyBlacklisted, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleAdminChanged(log types.Log) (*Pv1SmartcontractRoleAdminChanged, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleGranted(log types.Log) (*Pv1SmartcontractRoleGranted, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleRevoked(log types.Log) (*Pv1SmartcontractRoleRevoked, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseUnVoted(log types.Log) (*Pv1SmartcontractUnVoted, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseVoted(log types.Log) (*Pv1SmartcontractVoted, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchBlacklisted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractBlacklisted) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchNewPolicy(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractNewPolicy) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchPolicyBlacklisted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractPolicyBlacklisted) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleAdminChanged, ...) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleGranted, ...) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleRevoked, ...) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchUnVoted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractUnVoted) (event.Subscription, error)
- func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractVoted) (event.Subscription, error)
- type Pv1SmartcontractNewPolicy
- type Pv1SmartcontractNewPolicyIterator
- type Pv1SmartcontractPolicyBlacklisted
- type Pv1SmartcontractPolicyBlacklistedIterator
- type Pv1SmartcontractRaw
- func (_Pv1Smartcontract *Pv1SmartcontractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Pv1Smartcontract *Pv1SmartcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type Pv1SmartcontractRoleAdminChanged
- type Pv1SmartcontractRoleAdminChangedIterator
- type Pv1SmartcontractRoleGranted
- type Pv1SmartcontractRoleGrantedIterator
- type Pv1SmartcontractRoleRevoked
- type Pv1SmartcontractRoleRevokedIterator
- type Pv1SmartcontractSession
- func (_Pv1Smartcontract *Pv1SmartcontractSession) ADDRESSREGISTERROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) CreateNewPolicy(policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) GroupForAddress(arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) IsPolicyBlacklisted(arg0 string) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) LastVoted(arg0 common.Address) (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) MinIntervalBetweenVotes() (*big.Int, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) POLICYBLACKLISTERROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) POLICYCREATORROLE() ([32]byte, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) Policies(arg0 string) (struct{ ... }, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) PolicyBlacklistedReason(arg0 string) (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) RegisterAddress(newAddress common.Address, isRegistered bool, groupID *big.Int) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) Registered(arg0 common.Address) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) SetMinIntervalBetweenVotes(newMinInterval *big.Int) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) SetPolicyBlacklist(policyID string, blacklisted bool, reason string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) SupportsInterface(interfaceId [4]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) UnVote(policyID string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) Version() (string, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) Vote(policyID string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) VotedOnProposal(arg0 [32]byte) (bool, error)
- func (_Pv1Smartcontract *Pv1SmartcontractSession) Votes(arg0 string) (*big.Int, error)
- type Pv1SmartcontractTransactor
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) CreateNewPolicy(opts *bind.TransactOpts, policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RegisterAddress(opts *bind.TransactOpts, newAddress common.Address, isRegistered bool, ...) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) SetMinIntervalBetweenVotes(opts *bind.TransactOpts, newMinInterval *big.Int) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) SetPolicyBlacklist(opts *bind.TransactOpts, policyID string, blacklisted bool, reason string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) UnVote(opts *bind.TransactOpts, policyID string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactor) Vote(opts *bind.TransactOpts, policyID string) (*types.Transaction, error)
- type Pv1SmartcontractTransactorRaw
- type Pv1SmartcontractTransactorSession
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) CreateNewPolicy(policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RegisterAddress(newAddress common.Address, isRegistered bool, groupID *big.Int) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) SetMinIntervalBetweenVotes(newMinInterval *big.Int) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) SetPolicyBlacklist(policyID string, blacklisted bool, reason string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) UnVote(policyID string) (*types.Transaction, error)
- func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) Vote(policyID string) (*types.Transaction, error)
- type Pv1SmartcontractUnVoted
- type Pv1SmartcontractUnVotedIterator
- type Pv1SmartcontractVoted
- type Pv1SmartcontractVotedIterator
Constants ¶
This section is empty.
Variables ¶
var Pv1SmartcontractABI = Pv1SmartcontractMetaData.ABI
Pv1SmartcontractABI is the input ABI used to generate the binding from. Deprecated: Use Pv1SmartcontractMetaData.ABI instead.
var Pv1SmartcontractMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"blacklisted\",\"type\":\"bool\"}],\"name\":\"Blacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"groupID\",\"type\":\"uint256\"}],\"name\":\"NewPolicy\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"blacklisted\",\"type\":\"bool\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"PolicyBlacklisted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"groupID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalVotes\",\"type\":\"uint256\"}],\"name\":\"UnVoted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"groupID\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"totalVotes\",\"type\":\"uint256\"}],\"name\":\"Voted\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ADDRESS_REGISTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POLICY_BLACKLISTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"POLICY_CREATOR_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"gID\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"bodyHash\",\"type\":\"string\"}],\"name\":\"createNewPolicy\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"groupForAddress\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"isPolicyBlacklisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastVoted\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minIntervalBetweenVotes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"policies\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"bodyHash\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"groupID\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"createdAt\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"policyBlacklistedReason\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isRegistered\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"groupID\",\"type\":\"uint256\"}],\"name\":\"registerAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"registered\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"newMinInterval\",\"type\":\"uint256\"}],\"name\":\"setMinIntervalBetweenVotes\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"blacklisted\",\"type\":\"bool\"},{\"internalType\":\"string\",\"name\":\"reason\",\"type\":\"string\"}],\"name\":\"setPolicyBlacklist\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"}],\"name\":\"unVote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"policyID\",\"type\":\"string\"}],\"name\":\"vote\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"votedOnProposal\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"votes\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
Pv1SmartcontractMetaData contains all meta data concerning the Pv1Smartcontract contract.
Functions ¶
This section is empty.
Types ¶
type Pv1Smartcontract ¶
type Pv1Smartcontract struct { Pv1SmartcontractCaller // Read-only binding to the contract Pv1SmartcontractTransactor // Write-only binding to the contract Pv1SmartcontractFilterer // Log filterer for contract events }
Pv1Smartcontract is an auto generated Go binding around an Ethereum contract.
func NewPv1Smartcontract ¶
func NewPv1Smartcontract(address common.Address, backend bind.ContractBackend) (*Pv1Smartcontract, error)
NewPv1Smartcontract creates a new instance of Pv1Smartcontract, bound to a specific deployed contract.
type Pv1SmartcontractBlacklisted ¶
type Pv1SmartcontractBlacklisted struct { User common.Address Blacklisted bool Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractBlacklisted represents a Blacklisted event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractBlacklistedIterator ¶
type Pv1SmartcontractBlacklistedIterator struct { Event *Pv1SmartcontractBlacklisted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractBlacklistedIterator is returned from FilterBlacklisted and is used to iterate over the raw logs and unpacked data for Blacklisted events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractBlacklistedIterator) Close ¶
func (it *Pv1SmartcontractBlacklistedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractBlacklistedIterator) Error ¶
func (it *Pv1SmartcontractBlacklistedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractBlacklistedIterator) Next ¶
func (it *Pv1SmartcontractBlacklistedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractCaller ¶
type Pv1SmartcontractCaller struct {
// contains filtered or unexported fields
}
Pv1SmartcontractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewPv1SmartcontractCaller ¶
func NewPv1SmartcontractCaller(address common.Address, caller bind.ContractCaller) (*Pv1SmartcontractCaller, error)
NewPv1SmartcontractCaller creates a new read-only instance of Pv1Smartcontract, bound to a specific deployed contract.
func (*Pv1SmartcontractCaller) ADDRESSREGISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) ADDRESSREGISTERROLE(opts *bind.CallOpts) ([32]byte, error)
ADDRESSREGISTERROLE is a free data retrieval call binding the contract method 0xb464d8b7.
Solidity: function ADDRESS_REGISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCaller) DEFAULTADMINROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCaller) GetRoleAdmin ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*Pv1SmartcontractCaller) GroupForAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) GroupForAddress(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
GroupForAddress is a free data retrieval call binding the contract method 0x4beafca5.
Solidity: function groupForAddress(address ) view returns(uint256)
func (*Pv1SmartcontractCaller) HasRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*Pv1SmartcontractCaller) IsPolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) IsPolicyBlacklisted(opts *bind.CallOpts, arg0 string) (bool, error)
IsPolicyBlacklisted is a free data retrieval call binding the contract method 0x9131a44d.
Solidity: function isPolicyBlacklisted(string ) view returns(bool)
func (*Pv1SmartcontractCaller) LastVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) LastVoted(opts *bind.CallOpts, arg0 common.Address) (*big.Int, error)
LastVoted is a free data retrieval call binding the contract method 0x9a61df89.
Solidity: function lastVoted(address ) view returns(uint256)
func (*Pv1SmartcontractCaller) MinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) MinIntervalBetweenVotes(opts *bind.CallOpts) (*big.Int, error)
MinIntervalBetweenVotes is a free data retrieval call binding the contract method 0xf99ac2c2.
Solidity: function minIntervalBetweenVotes() view returns(uint256)
func (*Pv1SmartcontractCaller) POLICYBLACKLISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) POLICYBLACKLISTERROLE(opts *bind.CallOpts) ([32]byte, error)
POLICYBLACKLISTERROLE is a free data retrieval call binding the contract method 0xfc86449a.
Solidity: function POLICY_BLACKLISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCaller) POLICYCREATORROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) POLICYCREATORROLE(opts *bind.CallOpts) ([32]byte, error)
POLICYCREATORROLE is a free data retrieval call binding the contract method 0x45f739ff.
Solidity: function POLICY_CREATOR_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCaller) Policies ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) Policies(opts *bind.CallOpts, arg0 string) (struct { BodyHash string GroupID *big.Int CreatedAt *big.Int }, error)
Policies is a free data retrieval call binding the contract method 0x4a7ba3e5.
Solidity: function policies(string ) view returns(string bodyHash, uint256 groupID, uint256 createdAt)
func (*Pv1SmartcontractCaller) PolicyBlacklistedReason ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) PolicyBlacklistedReason(opts *bind.CallOpts, arg0 string) (string, error)
PolicyBlacklistedReason is a free data retrieval call binding the contract method 0x707c6eaf.
Solidity: function policyBlacklistedReason(string ) view returns(string)
func (*Pv1SmartcontractCaller) Registered ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) Registered(opts *bind.CallOpts, arg0 common.Address) (bool, error)
Registered is a free data retrieval call binding the contract method 0xb2dd5c07.
Solidity: function registered(address ) view returns(bool)
func (*Pv1SmartcontractCaller) SupportsInterface ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*Pv1SmartcontractCaller) Version ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) Version(opts *bind.CallOpts) (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
func (*Pv1SmartcontractCaller) VotedOnProposal ¶
func (_Pv1Smartcontract *Pv1SmartcontractCaller) VotedOnProposal(opts *bind.CallOpts, arg0 [32]byte) (bool, error)
VotedOnProposal is a free data retrieval call binding the contract method 0xfa606467.
Solidity: function votedOnProposal(bytes32 ) view returns(bool)
type Pv1SmartcontractCallerRaw ¶
type Pv1SmartcontractCallerRaw struct {
Contract *Pv1SmartcontractCaller // Generic read-only contract binding to access the raw methods on
}
Pv1SmartcontractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*Pv1SmartcontractCallerRaw) Call ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
type Pv1SmartcontractCallerSession ¶
type Pv1SmartcontractCallerSession struct { Contract *Pv1SmartcontractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
Pv1SmartcontractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*Pv1SmartcontractCallerSession) ADDRESSREGISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) ADDRESSREGISTERROLE() ([32]byte, error)
ADDRESSREGISTERROLE is a free data retrieval call binding the contract method 0xb464d8b7.
Solidity: function ADDRESS_REGISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCallerSession) DEFAULTADMINROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCallerSession) GetRoleAdmin ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*Pv1SmartcontractCallerSession) GroupForAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) GroupForAddress(arg0 common.Address) (*big.Int, error)
GroupForAddress is a free data retrieval call binding the contract method 0x4beafca5.
Solidity: function groupForAddress(address ) view returns(uint256)
func (*Pv1SmartcontractCallerSession) HasRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*Pv1SmartcontractCallerSession) IsPolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) IsPolicyBlacklisted(arg0 string) (bool, error)
IsPolicyBlacklisted is a free data retrieval call binding the contract method 0x9131a44d.
Solidity: function isPolicyBlacklisted(string ) view returns(bool)
func (*Pv1SmartcontractCallerSession) LastVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) LastVoted(arg0 common.Address) (*big.Int, error)
LastVoted is a free data retrieval call binding the contract method 0x9a61df89.
Solidity: function lastVoted(address ) view returns(uint256)
func (*Pv1SmartcontractCallerSession) MinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) MinIntervalBetweenVotes() (*big.Int, error)
MinIntervalBetweenVotes is a free data retrieval call binding the contract method 0xf99ac2c2.
Solidity: function minIntervalBetweenVotes() view returns(uint256)
func (*Pv1SmartcontractCallerSession) POLICYBLACKLISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) POLICYBLACKLISTERROLE() ([32]byte, error)
POLICYBLACKLISTERROLE is a free data retrieval call binding the contract method 0xfc86449a.
Solidity: function POLICY_BLACKLISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCallerSession) POLICYCREATORROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) POLICYCREATORROLE() ([32]byte, error)
POLICYCREATORROLE is a free data retrieval call binding the contract method 0x45f739ff.
Solidity: function POLICY_CREATOR_ROLE() view returns(bytes32)
func (*Pv1SmartcontractCallerSession) Policies ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Policies(arg0 string) (struct { BodyHash string GroupID *big.Int CreatedAt *big.Int }, error)
Policies is a free data retrieval call binding the contract method 0x4a7ba3e5.
Solidity: function policies(string ) view returns(string bodyHash, uint256 groupID, uint256 createdAt)
func (*Pv1SmartcontractCallerSession) PolicyBlacklistedReason ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) PolicyBlacklistedReason(arg0 string) (string, error)
PolicyBlacklistedReason is a free data retrieval call binding the contract method 0x707c6eaf.
Solidity: function policyBlacklistedReason(string ) view returns(string)
func (*Pv1SmartcontractCallerSession) Registered ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Registered(arg0 common.Address) (bool, error)
Registered is a free data retrieval call binding the contract method 0xb2dd5c07.
Solidity: function registered(address ) view returns(bool)
func (*Pv1SmartcontractCallerSession) SupportsInterface ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*Pv1SmartcontractCallerSession) Version ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
func (*Pv1SmartcontractCallerSession) VotedOnProposal ¶
func (_Pv1Smartcontract *Pv1SmartcontractCallerSession) VotedOnProposal(arg0 [32]byte) (bool, error)
VotedOnProposal is a free data retrieval call binding the contract method 0xfa606467.
Solidity: function votedOnProposal(bytes32 ) view returns(bool)
type Pv1SmartcontractFilterer ¶
type Pv1SmartcontractFilterer struct {
// contains filtered or unexported fields
}
Pv1SmartcontractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewPv1SmartcontractFilterer ¶
func NewPv1SmartcontractFilterer(address common.Address, filterer bind.ContractFilterer) (*Pv1SmartcontractFilterer, error)
NewPv1SmartcontractFilterer creates a new log filterer instance of Pv1Smartcontract, bound to a specific deployed contract.
func (*Pv1SmartcontractFilterer) FilterBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterBlacklisted(opts *bind.FilterOpts) (*Pv1SmartcontractBlacklistedIterator, error)
FilterBlacklisted is a free log retrieval operation binding the contract event 0xcf3473b85df1594d47b6958f29a32bea0abff9dd68296f7bf33443646793cfd8.
Solidity: event Blacklisted(address user, bool blacklisted)
func (*Pv1SmartcontractFilterer) FilterNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterNewPolicy(opts *bind.FilterOpts) (*Pv1SmartcontractNewPolicyIterator, error)
FilterNewPolicy is a free log retrieval operation binding the contract event 0x20e4a76a7d395731d66918bcdf3594e099b03d3077ba0343867cfdc7fce70abf.
Solidity: event NewPolicy(string policyID, uint256 groupID)
func (*Pv1SmartcontractFilterer) FilterPolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterPolicyBlacklisted(opts *bind.FilterOpts) (*Pv1SmartcontractPolicyBlacklistedIterator, error)
FilterPolicyBlacklisted is a free log retrieval operation binding the contract event 0xe03285579bee722c625a02fb2b45070e578d9a320679123457906a0e90c9e6d3.
Solidity: event PolicyBlacklisted(string policyID, bool blacklisted, string reason)
func (*Pv1SmartcontractFilterer) FilterRoleAdminChanged ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*Pv1SmartcontractRoleAdminChangedIterator, error)
FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*Pv1SmartcontractFilterer) FilterRoleGranted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*Pv1SmartcontractRoleGrantedIterator, error)
FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) FilterRoleRevoked ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*Pv1SmartcontractRoleRevokedIterator, error)
FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) FilterUnVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterUnVoted(opts *bind.FilterOpts) (*Pv1SmartcontractUnVotedIterator, error)
FilterUnVoted is a free log retrieval operation binding the contract event 0xa5ab64c941a274cfae04b116dfc0777bab498844134daccc294eeb81578e8b4e.
Solidity: event UnVoted(string policyID, uint256 groupID, uint256 totalVotes)
func (*Pv1SmartcontractFilterer) FilterVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) FilterVoted(opts *bind.FilterOpts) (*Pv1SmartcontractVotedIterator, error)
FilterVoted is a free log retrieval operation binding the contract event 0x757fc7d2692c5e5698afb5c7da2ebdc75e0f7418b820f9114894ac7f462be686.
Solidity: event Voted(string policyID, uint256 groupID, uint256 totalVotes)
func (*Pv1SmartcontractFilterer) ParseBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseBlacklisted(log types.Log) (*Pv1SmartcontractBlacklisted, error)
ParseBlacklisted is a log parse operation binding the contract event 0xcf3473b85df1594d47b6958f29a32bea0abff9dd68296f7bf33443646793cfd8.
Solidity: event Blacklisted(address user, bool blacklisted)
func (*Pv1SmartcontractFilterer) ParseNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseNewPolicy(log types.Log) (*Pv1SmartcontractNewPolicy, error)
ParseNewPolicy is a log parse operation binding the contract event 0x20e4a76a7d395731d66918bcdf3594e099b03d3077ba0343867cfdc7fce70abf.
Solidity: event NewPolicy(string policyID, uint256 groupID)
func (*Pv1SmartcontractFilterer) ParsePolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParsePolicyBlacklisted(log types.Log) (*Pv1SmartcontractPolicyBlacklisted, error)
ParsePolicyBlacklisted is a log parse operation binding the contract event 0xe03285579bee722c625a02fb2b45070e578d9a320679123457906a0e90c9e6d3.
Solidity: event PolicyBlacklisted(string policyID, bool blacklisted, string reason)
func (*Pv1SmartcontractFilterer) ParseRoleAdminChanged ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleAdminChanged(log types.Log) (*Pv1SmartcontractRoleAdminChanged, error)
ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*Pv1SmartcontractFilterer) ParseRoleGranted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleGranted(log types.Log) (*Pv1SmartcontractRoleGranted, error)
ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) ParseRoleRevoked ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseRoleRevoked(log types.Log) (*Pv1SmartcontractRoleRevoked, error)
ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) ParseUnVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseUnVoted(log types.Log) (*Pv1SmartcontractUnVoted, error)
ParseUnVoted is a log parse operation binding the contract event 0xa5ab64c941a274cfae04b116dfc0777bab498844134daccc294eeb81578e8b4e.
Solidity: event UnVoted(string policyID, uint256 groupID, uint256 totalVotes)
func (*Pv1SmartcontractFilterer) ParseVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) ParseVoted(log types.Log) (*Pv1SmartcontractVoted, error)
ParseVoted is a log parse operation binding the contract event 0x757fc7d2692c5e5698afb5c7da2ebdc75e0f7418b820f9114894ac7f462be686.
Solidity: event Voted(string policyID, uint256 groupID, uint256 totalVotes)
func (*Pv1SmartcontractFilterer) WatchBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchBlacklisted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractBlacklisted) (event.Subscription, error)
WatchBlacklisted is a free log subscription operation binding the contract event 0xcf3473b85df1594d47b6958f29a32bea0abff9dd68296f7bf33443646793cfd8.
Solidity: event Blacklisted(address user, bool blacklisted)
func (*Pv1SmartcontractFilterer) WatchNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchNewPolicy(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractNewPolicy) (event.Subscription, error)
WatchNewPolicy is a free log subscription operation binding the contract event 0x20e4a76a7d395731d66918bcdf3594e099b03d3077ba0343867cfdc7fce70abf.
Solidity: event NewPolicy(string policyID, uint256 groupID)
func (*Pv1SmartcontractFilterer) WatchPolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchPolicyBlacklisted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractPolicyBlacklisted) (event.Subscription, error)
WatchPolicyBlacklisted is a free log subscription operation binding the contract event 0xe03285579bee722c625a02fb2b45070e578d9a320679123457906a0e90c9e6d3.
Solidity: event PolicyBlacklisted(string policyID, bool blacklisted, string reason)
func (*Pv1SmartcontractFilterer) WatchRoleAdminChanged ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)
WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.
Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
func (*Pv1SmartcontractFilterer) WatchRoleGranted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.
Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) WatchRoleRevoked ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)
WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.
Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
func (*Pv1SmartcontractFilterer) WatchUnVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchUnVoted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractUnVoted) (event.Subscription, error)
WatchUnVoted is a free log subscription operation binding the contract event 0xa5ab64c941a274cfae04b116dfc0777bab498844134daccc294eeb81578e8b4e.
Solidity: event UnVoted(string policyID, uint256 groupID, uint256 totalVotes)
func (*Pv1SmartcontractFilterer) WatchVoted ¶
func (_Pv1Smartcontract *Pv1SmartcontractFilterer) WatchVoted(opts *bind.WatchOpts, sink chan<- *Pv1SmartcontractVoted) (event.Subscription, error)
WatchVoted is a free log subscription operation binding the contract event 0x757fc7d2692c5e5698afb5c7da2ebdc75e0f7418b820f9114894ac7f462be686.
Solidity: event Voted(string policyID, uint256 groupID, uint256 totalVotes)
type Pv1SmartcontractNewPolicy ¶
type Pv1SmartcontractNewPolicy struct { PolicyID string GroupID *big.Int Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractNewPolicy represents a NewPolicy event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractNewPolicyIterator ¶
type Pv1SmartcontractNewPolicyIterator struct { Event *Pv1SmartcontractNewPolicy // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractNewPolicyIterator is returned from FilterNewPolicy and is used to iterate over the raw logs and unpacked data for NewPolicy events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractNewPolicyIterator) Close ¶
func (it *Pv1SmartcontractNewPolicyIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractNewPolicyIterator) Error ¶
func (it *Pv1SmartcontractNewPolicyIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractNewPolicyIterator) Next ¶
func (it *Pv1SmartcontractNewPolicyIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractPolicyBlacklisted ¶
type Pv1SmartcontractPolicyBlacklisted struct { PolicyID string Blacklisted bool Reason string Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractPolicyBlacklisted represents a PolicyBlacklisted event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractPolicyBlacklistedIterator ¶
type Pv1SmartcontractPolicyBlacklistedIterator struct { Event *Pv1SmartcontractPolicyBlacklisted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractPolicyBlacklistedIterator is returned from FilterPolicyBlacklisted and is used to iterate over the raw logs and unpacked data for PolicyBlacklisted events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractPolicyBlacklistedIterator) Close ¶
func (it *Pv1SmartcontractPolicyBlacklistedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractPolicyBlacklistedIterator) Error ¶
func (it *Pv1SmartcontractPolicyBlacklistedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractPolicyBlacklistedIterator) Next ¶
func (it *Pv1SmartcontractPolicyBlacklistedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractRaw ¶
type Pv1SmartcontractRaw struct {
Contract *Pv1Smartcontract // Generic contract binding to access the raw methods on
}
Pv1SmartcontractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*Pv1SmartcontractRaw) Call ¶
func (_Pv1Smartcontract *Pv1SmartcontractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error
Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.
func (*Pv1SmartcontractRaw) Transact ¶
func (_Pv1Smartcontract *Pv1SmartcontractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Pv1SmartcontractRaw) Transfer ¶
func (_Pv1Smartcontract *Pv1SmartcontractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type Pv1SmartcontractRoleAdminChanged ¶
type Pv1SmartcontractRoleAdminChanged struct { Role [32]byte PreviousAdminRole [32]byte NewAdminRole [32]byte Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractRoleAdminChanged represents a RoleAdminChanged event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractRoleAdminChangedIterator ¶
type Pv1SmartcontractRoleAdminChangedIterator struct { Event *Pv1SmartcontractRoleAdminChanged // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractRoleAdminChangedIterator) Close ¶
func (it *Pv1SmartcontractRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractRoleAdminChangedIterator) Error ¶
func (it *Pv1SmartcontractRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractRoleAdminChangedIterator) Next ¶
func (it *Pv1SmartcontractRoleAdminChangedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractRoleGranted ¶
type Pv1SmartcontractRoleGranted struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractRoleGranted represents a RoleGranted event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractRoleGrantedIterator ¶
type Pv1SmartcontractRoleGrantedIterator struct { Event *Pv1SmartcontractRoleGranted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractRoleGrantedIterator) Close ¶
func (it *Pv1SmartcontractRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractRoleGrantedIterator) Error ¶
func (it *Pv1SmartcontractRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractRoleGrantedIterator) Next ¶
func (it *Pv1SmartcontractRoleGrantedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractRoleRevoked ¶
type Pv1SmartcontractRoleRevoked struct { Role [32]byte Account common.Address Sender common.Address Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractRoleRevoked represents a RoleRevoked event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractRoleRevokedIterator ¶
type Pv1SmartcontractRoleRevokedIterator struct { Event *Pv1SmartcontractRoleRevoked // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractRoleRevokedIterator) Close ¶
func (it *Pv1SmartcontractRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractRoleRevokedIterator) Error ¶
func (it *Pv1SmartcontractRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractRoleRevokedIterator) Next ¶
func (it *Pv1SmartcontractRoleRevokedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractSession ¶
type Pv1SmartcontractSession struct { Contract *Pv1Smartcontract // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Pv1SmartcontractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*Pv1SmartcontractSession) ADDRESSREGISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) ADDRESSREGISTERROLE() ([32]byte, error)
ADDRESSREGISTERROLE is a free data retrieval call binding the contract method 0xb464d8b7.
Solidity: function ADDRESS_REGISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractSession) CreateNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) CreateNewPolicy(policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
CreateNewPolicy is a paid mutator transaction binding the contract method 0xd188ccc6.
Solidity: function createNewPolicy(string policyID, uint256 gID, string bodyHash) returns()
func (*Pv1SmartcontractSession) DEFAULTADMINROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) DEFAULTADMINROLE() ([32]byte, error)
DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
func (*Pv1SmartcontractSession) GetRoleAdmin ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.
Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)
func (*Pv1SmartcontractSession) GrantRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractSession) GroupForAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) GroupForAddress(arg0 common.Address) (*big.Int, error)
GroupForAddress is a free data retrieval call binding the contract method 0x4beafca5.
Solidity: function groupForAddress(address ) view returns(uint256)
func (*Pv1SmartcontractSession) HasRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) HasRole(role [32]byte, account common.Address) (bool, error)
HasRole is a free data retrieval call binding the contract method 0x91d14854.
Solidity: function hasRole(bytes32 role, address account) view returns(bool)
func (*Pv1SmartcontractSession) IsPolicyBlacklisted ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) IsPolicyBlacklisted(arg0 string) (bool, error)
IsPolicyBlacklisted is a free data retrieval call binding the contract method 0x9131a44d.
Solidity: function isPolicyBlacklisted(string ) view returns(bool)
func (*Pv1SmartcontractSession) LastVoted ¶
LastVoted is a free data retrieval call binding the contract method 0x9a61df89.
Solidity: function lastVoted(address ) view returns(uint256)
func (*Pv1SmartcontractSession) MinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) MinIntervalBetweenVotes() (*big.Int, error)
MinIntervalBetweenVotes is a free data retrieval call binding the contract method 0xf99ac2c2.
Solidity: function minIntervalBetweenVotes() view returns(uint256)
func (*Pv1SmartcontractSession) POLICYBLACKLISTERROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) POLICYBLACKLISTERROLE() ([32]byte, error)
POLICYBLACKLISTERROLE is a free data retrieval call binding the contract method 0xfc86449a.
Solidity: function POLICY_BLACKLISTER_ROLE() view returns(bytes32)
func (*Pv1SmartcontractSession) POLICYCREATORROLE ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) POLICYCREATORROLE() ([32]byte, error)
POLICYCREATORROLE is a free data retrieval call binding the contract method 0x45f739ff.
Solidity: function POLICY_CREATOR_ROLE() view returns(bytes32)
func (*Pv1SmartcontractSession) Policies ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) Policies(arg0 string) (struct { BodyHash string GroupID *big.Int CreatedAt *big.Int }, error)
Policies is a free data retrieval call binding the contract method 0x4a7ba3e5.
Solidity: function policies(string ) view returns(string bodyHash, uint256 groupID, uint256 createdAt)
func (*Pv1SmartcontractSession) PolicyBlacklistedReason ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) PolicyBlacklistedReason(arg0 string) (string, error)
PolicyBlacklistedReason is a free data retrieval call binding the contract method 0x707c6eaf.
Solidity: function policyBlacklistedReason(string ) view returns(string)
func (*Pv1SmartcontractSession) RegisterAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) RegisterAddress(newAddress common.Address, isRegistered bool, groupID *big.Int) (*types.Transaction, error)
RegisterAddress is a paid mutator transaction binding the contract method 0xded79106.
Solidity: function registerAddress(address newAddress, bool isRegistered, uint256 groupID) returns()
func (*Pv1SmartcontractSession) Registered ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) Registered(arg0 common.Address) (bool, error)
Registered is a free data retrieval call binding the contract method 0xb2dd5c07.
Solidity: function registered(address ) view returns(bool)
func (*Pv1SmartcontractSession) RenounceRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractSession) RevokeRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractSession) SetMinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) SetMinIntervalBetweenVotes(newMinInterval *big.Int) (*types.Transaction, error)
SetMinIntervalBetweenVotes is a paid mutator transaction binding the contract method 0x2714e22f.
Solidity: function setMinIntervalBetweenVotes(uint256 newMinInterval) returns()
func (*Pv1SmartcontractSession) SetPolicyBlacklist ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) SetPolicyBlacklist(policyID string, blacklisted bool, reason string) (*types.Transaction, error)
SetPolicyBlacklist is a paid mutator transaction binding the contract method 0xdf4c4a44.
Solidity: function setPolicyBlacklist(string policyID, bool blacklisted, string reason) returns()
func (*Pv1SmartcontractSession) SupportsInterface ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) SupportsInterface(interfaceId [4]byte) (bool, error)
SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
func (*Pv1SmartcontractSession) UnVote ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) UnVote(policyID string) (*types.Transaction, error)
UnVote is a paid mutator transaction binding the contract method 0x8cbef3f1.
Solidity: function unVote(string policyID) returns()
func (*Pv1SmartcontractSession) Version ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) Version() (string, error)
Version is a free data retrieval call binding the contract method 0x54fd4d50.
Solidity: function version() view returns(string)
func (*Pv1SmartcontractSession) Vote ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) Vote(policyID string) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0xfc36e15b.
Solidity: function vote(string policyID) returns()
func (*Pv1SmartcontractSession) VotedOnProposal ¶
func (_Pv1Smartcontract *Pv1SmartcontractSession) VotedOnProposal(arg0 [32]byte) (bool, error)
VotedOnProposal is a free data retrieval call binding the contract method 0xfa606467.
Solidity: function votedOnProposal(bytes32 ) view returns(bool)
type Pv1SmartcontractTransactor ¶
type Pv1SmartcontractTransactor struct {
// contains filtered or unexported fields
}
Pv1SmartcontractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewPv1SmartcontractTransactor ¶
func NewPv1SmartcontractTransactor(address common.Address, transactor bind.ContractTransactor) (*Pv1SmartcontractTransactor, error)
NewPv1SmartcontractTransactor creates a new write-only instance of Pv1Smartcontract, bound to a specific deployed contract.
func (*Pv1SmartcontractTransactor) CreateNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) CreateNewPolicy(opts *bind.TransactOpts, policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
CreateNewPolicy is a paid mutator transaction binding the contract method 0xd188ccc6.
Solidity: function createNewPolicy(string policyID, uint256 gID, string bodyHash) returns()
func (*Pv1SmartcontractTransactor) GrantRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactor) RegisterAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RegisterAddress(opts *bind.TransactOpts, newAddress common.Address, isRegistered bool, groupID *big.Int) (*types.Transaction, error)
RegisterAddress is a paid mutator transaction binding the contract method 0xded79106.
Solidity: function registerAddress(address newAddress, bool isRegistered, uint256 groupID) returns()
func (*Pv1SmartcontractTransactor) RenounceRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactor) RevokeRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactor) SetMinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) SetMinIntervalBetweenVotes(opts *bind.TransactOpts, newMinInterval *big.Int) (*types.Transaction, error)
SetMinIntervalBetweenVotes is a paid mutator transaction binding the contract method 0x2714e22f.
Solidity: function setMinIntervalBetweenVotes(uint256 newMinInterval) returns()
func (*Pv1SmartcontractTransactor) SetPolicyBlacklist ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) SetPolicyBlacklist(opts *bind.TransactOpts, policyID string, blacklisted bool, reason string) (*types.Transaction, error)
SetPolicyBlacklist is a paid mutator transaction binding the contract method 0xdf4c4a44.
Solidity: function setPolicyBlacklist(string policyID, bool blacklisted, string reason) returns()
func (*Pv1SmartcontractTransactor) UnVote ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) UnVote(opts *bind.TransactOpts, policyID string) (*types.Transaction, error)
UnVote is a paid mutator transaction binding the contract method 0x8cbef3f1.
Solidity: function unVote(string policyID) returns()
func (*Pv1SmartcontractTransactor) Vote ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactor) Vote(opts *bind.TransactOpts, policyID string) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0xfc36e15b.
Solidity: function vote(string policyID) returns()
type Pv1SmartcontractTransactorRaw ¶
type Pv1SmartcontractTransactorRaw struct {
Contract *Pv1SmartcontractTransactor // Generic write-only contract binding to access the raw methods on
}
Pv1SmartcontractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*Pv1SmartcontractTransactorRaw) Transact ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*Pv1SmartcontractTransactorRaw) Transfer ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.
type Pv1SmartcontractTransactorSession ¶
type Pv1SmartcontractTransactorSession struct { Contract *Pv1SmartcontractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
Pv1SmartcontractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*Pv1SmartcontractTransactorSession) CreateNewPolicy ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) CreateNewPolicy(policyID string, gID *big.Int, bodyHash string) (*types.Transaction, error)
CreateNewPolicy is a paid mutator transaction binding the contract method 0xd188ccc6.
Solidity: function createNewPolicy(string policyID, uint256 gID, string bodyHash) returns()
func (*Pv1SmartcontractTransactorSession) GrantRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.
Solidity: function grantRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactorSession) RegisterAddress ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RegisterAddress(newAddress common.Address, isRegistered bool, groupID *big.Int) (*types.Transaction, error)
RegisterAddress is a paid mutator transaction binding the contract method 0xded79106.
Solidity: function registerAddress(address newAddress, bool isRegistered, uint256 groupID) returns()
func (*Pv1SmartcontractTransactorSession) RenounceRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactorSession) RevokeRole ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.
Solidity: function revokeRole(bytes32 role, address account) returns()
func (*Pv1SmartcontractTransactorSession) SetMinIntervalBetweenVotes ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) SetMinIntervalBetweenVotes(newMinInterval *big.Int) (*types.Transaction, error)
SetMinIntervalBetweenVotes is a paid mutator transaction binding the contract method 0x2714e22f.
Solidity: function setMinIntervalBetweenVotes(uint256 newMinInterval) returns()
func (*Pv1SmartcontractTransactorSession) SetPolicyBlacklist ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) SetPolicyBlacklist(policyID string, blacklisted bool, reason string) (*types.Transaction, error)
SetPolicyBlacklist is a paid mutator transaction binding the contract method 0xdf4c4a44.
Solidity: function setPolicyBlacklist(string policyID, bool blacklisted, string reason) returns()
func (*Pv1SmartcontractTransactorSession) UnVote ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) UnVote(policyID string) (*types.Transaction, error)
UnVote is a paid mutator transaction binding the contract method 0x8cbef3f1.
Solidity: function unVote(string policyID) returns()
func (*Pv1SmartcontractTransactorSession) Vote ¶
func (_Pv1Smartcontract *Pv1SmartcontractTransactorSession) Vote(policyID string) (*types.Transaction, error)
Vote is a paid mutator transaction binding the contract method 0xfc36e15b.
Solidity: function vote(string policyID) returns()
type Pv1SmartcontractUnVoted ¶
type Pv1SmartcontractUnVoted struct { PolicyID string GroupID *big.Int TotalVotes *big.Int Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractUnVoted represents a UnVoted event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractUnVotedIterator ¶
type Pv1SmartcontractUnVotedIterator struct { Event *Pv1SmartcontractUnVoted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractUnVotedIterator is returned from FilterUnVoted and is used to iterate over the raw logs and unpacked data for UnVoted events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractUnVotedIterator) Close ¶
func (it *Pv1SmartcontractUnVotedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractUnVotedIterator) Error ¶
func (it *Pv1SmartcontractUnVotedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractUnVotedIterator) Next ¶
func (it *Pv1SmartcontractUnVotedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.
type Pv1SmartcontractVoted ¶
type Pv1SmartcontractVoted struct { PolicyID string GroupID *big.Int TotalVotes *big.Int Raw types.Log // Blockchain specific contextual infos }
Pv1SmartcontractVoted represents a Voted event raised by the Pv1Smartcontract contract.
type Pv1SmartcontractVotedIterator ¶
type Pv1SmartcontractVotedIterator struct { Event *Pv1SmartcontractVoted // Event containing the contract specifics and raw log // contains filtered or unexported fields }
Pv1SmartcontractVotedIterator is returned from FilterVoted and is used to iterate over the raw logs and unpacked data for Voted events raised by the Pv1Smartcontract contract.
func (*Pv1SmartcontractVotedIterator) Close ¶
func (it *Pv1SmartcontractVotedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*Pv1SmartcontractVotedIterator) Error ¶
func (it *Pv1SmartcontractVotedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*Pv1SmartcontractVotedIterator) Next ¶
func (it *Pv1SmartcontractVotedIterator) Next() bool
Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.