Documentation ¶
Index ¶
- Constants
- func GetTxOpts() (*bind.TransactOpts, error)
- func QueryChannel(gatekeeper *Gatekeeper, txOpts *bind.TransactOpts) chan mpc.Query
- func WaitForQueries() chan mpc.Query
- type Gatekeeper
- type GatekeeperCaller
- type GatekeeperCallerRaw
- type GatekeeperCallerSession
- type GatekeeperFilterer
- type GatekeeperQuery
- type GatekeeperQueryIterator
- type GatekeeperRaw
- func (_Gatekeeper *GatekeeperRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Gatekeeper *GatekeeperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Gatekeeper *GatekeeperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GatekeeperSession
- func (_Gatekeeper *GatekeeperSession) AllowedClients(arg0 common.Address) (bool, error)
- func (_Gatekeeper *GatekeeperSession) SubmitCalcQuery(clientReference string, identifier *big.Int, attribute *big.Int) (*types.Transaction, error)
- func (_Gatekeeper *GatekeeperSession) SubmitInfoQuery(clientReference string, identifier *big.Int) (*types.Transaction, error)
- type GatekeeperTransactor
- func (_Gatekeeper *GatekeeperTransactor) SubmitCalcQuery(opts *bind.TransactOpts, clientReference string, identifier *big.Int, ...) (*types.Transaction, error)
- func (_Gatekeeper *GatekeeperTransactor) SubmitInfoQuery(opts *bind.TransactOpts, clientReference string, identifier *big.Int) (*types.Transaction, error)
- type GatekeeperTransactorRaw
- type GatekeeperTransactorSession
- type Governance
- type GovernanceCaller
- type GovernanceCallerRaw
- type GovernanceCallerSession
- type GovernanceFilterer
- type GovernanceRaw
- func (_Governance *GovernanceRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Governance *GovernanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Governance *GovernanceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type GovernanceSession
- type GovernanceTransactor
- type GovernanceTransactorRaw
- type GovernanceTransactorSession
Constants ¶
const ( SMARTCONTRACT_ADDRESS = "0xa652605f3794d5cd868aa5f295e60fae924fe836" ETHEREUM_URL = "ws://127.0.0.1:8546" KEYFILE = "" /* 127-byte string literal not displayed */ PASSPHRASE = "mpc_123" )
const GatekeeperABI = "" /* 1263-byte string literal not displayed */
GatekeeperABI is the input ABI used to generate the binding from.
const GovernanceABI = "" /* 450-byte string literal not displayed */
GovernanceABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
func GetTxOpts ¶
func GetTxOpts() (*bind.TransactOpts, error)
func QueryChannel ¶
func QueryChannel(gatekeeper *Gatekeeper, txOpts *bind.TransactOpts) chan mpc.Query
func WaitForQueries ¶
Types ¶
type Gatekeeper ¶
type Gatekeeper struct { GatekeeperCaller // Read-only binding to the contract GatekeeperTransactor // Write-only binding to the contract GatekeeperFilterer // Log filterer for contract events }
Gatekeeper is an auto generated Go binding around an Ethereum contract.
func GetGatekeeper ¶
func GetGatekeeper() (*Gatekeeper, error)
func NewGatekeeper ¶
func NewGatekeeper(address common.Address, backend bind.ContractBackend) (*Gatekeeper, error)
NewGatekeeper creates a new instance of Gatekeeper, bound to a specific deployed contract.
type GatekeeperCaller ¶
type GatekeeperCaller struct {
// contains filtered or unexported fields
}
GatekeeperCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGatekeeperCaller ¶
func NewGatekeeperCaller(address common.Address, caller bind.ContractCaller) (*GatekeeperCaller, error)
NewGatekeeperCaller creates a new read-only instance of Gatekeeper, bound to a specific deployed contract.
func (*GatekeeperCaller) AllowedClients ¶
func (_Gatekeeper *GatekeeperCaller) AllowedClients(opts *bind.CallOpts, arg0 common.Address) (bool, error)
AllowedClients is a free data retrieval call binding the contract method 0x98f0e140.
Solidity: function allowed_clients(address arg0) constant returns(bool out)
type GatekeeperCallerRaw ¶
type GatekeeperCallerRaw struct {
Contract *GatekeeperCaller // Generic read-only contract binding to access the raw methods on
}
GatekeeperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GatekeeperCallerRaw) Call ¶
func (_Gatekeeper *GatekeeperCallerRaw) 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 GatekeeperCallerSession ¶
type GatekeeperCallerSession struct { Contract *GatekeeperCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GatekeeperCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GatekeeperCallerSession) AllowedClients ¶
func (_Gatekeeper *GatekeeperCallerSession) AllowedClients(arg0 common.Address) (bool, error)
AllowedClients is a free data retrieval call binding the contract method 0x98f0e140.
Solidity: function allowed_clients(address arg0) constant returns(bool out)
type GatekeeperFilterer ¶
type GatekeeperFilterer struct {
// contains filtered or unexported fields
}
GatekeeperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGatekeeperFilterer ¶
func NewGatekeeperFilterer(address common.Address, filterer bind.ContractFilterer) (*GatekeeperFilterer, error)
NewGatekeeperFilterer creates a new log filterer instance of Gatekeeper, bound to a specific deployed contract.
func (*GatekeeperFilterer) FilterQuery ¶
func (_Gatekeeper *GatekeeperFilterer) FilterQuery(opts *bind.FilterOpts, sender []common.Address) (*GatekeeperQueryIterator, error)
FilterQuery is a free log retrieval operation binding the contract event 0x6c3a59d71d35fc27c453f5602f1cdbbbccd5bb00dbcb062a2db991a9e36d1baa.
Solidity: event Query(address indexed sender, string clientReference, uint256 queryType, int128 queryId, int128 identifier, uint256 attribute)
func (*GatekeeperFilterer) WatchQuery ¶
func (_Gatekeeper *GatekeeperFilterer) WatchQuery(opts *bind.WatchOpts, sink chan<- *GatekeeperQuery, sender []common.Address) (event.Subscription, error)
WatchQuery is a free log subscription operation binding the contract event 0x6c3a59d71d35fc27c453f5602f1cdbbbccd5bb00dbcb062a2db991a9e36d1baa.
Solidity: event Query(address indexed sender, string clientReference, uint256 queryType, int128 queryId, int128 identifier, uint256 attribute)
type GatekeeperQuery ¶
type GatekeeperQuery struct { Sender common.Address ClientReference string QueryType *big.Int QueryId *big.Int Identifier *big.Int Attribute *big.Int Raw types.Log // Blockchain specific contextual infos }
GatekeeperQuery represents a Query event raised by the Gatekeeper contract.
type GatekeeperQueryIterator ¶
type GatekeeperQueryIterator struct { Event *GatekeeperQuery // Event containing the contract specifics and raw log // contains filtered or unexported fields }
GatekeeperQueryIterator is returned from FilterQuery and is used to iterate over the raw logs and unpacked data for Query events raised by the Gatekeeper contract.
func (*GatekeeperQueryIterator) Close ¶
func (it *GatekeeperQueryIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*GatekeeperQueryIterator) Error ¶
func (it *GatekeeperQueryIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*GatekeeperQueryIterator) Next ¶
func (it *GatekeeperQueryIterator) 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 GatekeeperRaw ¶
type GatekeeperRaw struct {
Contract *Gatekeeper // Generic contract binding to access the raw methods on
}
GatekeeperRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GatekeeperRaw) Call ¶
func (_Gatekeeper *GatekeeperRaw) 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 (*GatekeeperRaw) Transact ¶
func (_Gatekeeper *GatekeeperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GatekeeperRaw) Transfer ¶
func (_Gatekeeper *GatekeeperRaw) 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 GatekeeperSession ¶
type GatekeeperSession struct { Contract *Gatekeeper // 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 }
GatekeeperSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GatekeeperSession) AllowedClients ¶
func (_Gatekeeper *GatekeeperSession) AllowedClients(arg0 common.Address) (bool, error)
AllowedClients is a free data retrieval call binding the contract method 0x98f0e140.
Solidity: function allowed_clients(address arg0) constant returns(bool out)
func (*GatekeeperSession) SubmitCalcQuery ¶
func (_Gatekeeper *GatekeeperSession) SubmitCalcQuery(clientReference string, identifier *big.Int, attribute *big.Int) (*types.Transaction, error)
SubmitCalcQuery is a paid mutator transaction binding the contract method 0x0d305afa.
Solidity: function submit_calc_query(string clientReference, int128 identifier, uint256 attribute) returns()
func (*GatekeeperSession) SubmitInfoQuery ¶
func (_Gatekeeper *GatekeeperSession) SubmitInfoQuery(clientReference string, identifier *big.Int) (*types.Transaction, error)
SubmitInfoQuery is a paid mutator transaction binding the contract method 0xbe133d01.
Solidity: function submit_info_query(string clientReference, int128 identifier) returns()
type GatekeeperTransactor ¶
type GatekeeperTransactor struct {
// contains filtered or unexported fields
}
GatekeeperTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGatekeeperTransactor ¶
func NewGatekeeperTransactor(address common.Address, transactor bind.ContractTransactor) (*GatekeeperTransactor, error)
NewGatekeeperTransactor creates a new write-only instance of Gatekeeper, bound to a specific deployed contract.
func (*GatekeeperTransactor) SubmitCalcQuery ¶
func (_Gatekeeper *GatekeeperTransactor) SubmitCalcQuery(opts *bind.TransactOpts, clientReference string, identifier *big.Int, attribute *big.Int) (*types.Transaction, error)
SubmitCalcQuery is a paid mutator transaction binding the contract method 0x0d305afa.
Solidity: function submit_calc_query(string clientReference, int128 identifier, uint256 attribute) returns()
func (*GatekeeperTransactor) SubmitInfoQuery ¶
func (_Gatekeeper *GatekeeperTransactor) SubmitInfoQuery(opts *bind.TransactOpts, clientReference string, identifier *big.Int) (*types.Transaction, error)
SubmitInfoQuery is a paid mutator transaction binding the contract method 0xbe133d01.
Solidity: function submit_info_query(string clientReference, int128 identifier) returns()
type GatekeeperTransactorRaw ¶
type GatekeeperTransactorRaw struct {
Contract *GatekeeperTransactor // Generic write-only contract binding to access the raw methods on
}
GatekeeperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GatekeeperTransactorRaw) Transact ¶
func (_Gatekeeper *GatekeeperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GatekeeperTransactorRaw) Transfer ¶
func (_Gatekeeper *GatekeeperTransactorRaw) 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 GatekeeperTransactorSession ¶
type GatekeeperTransactorSession struct { Contract *GatekeeperTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GatekeeperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GatekeeperTransactorSession) SubmitCalcQuery ¶
func (_Gatekeeper *GatekeeperTransactorSession) SubmitCalcQuery(clientReference string, identifier *big.Int, attribute *big.Int) (*types.Transaction, error)
SubmitCalcQuery is a paid mutator transaction binding the contract method 0x0d305afa.
Solidity: function submit_calc_query(string clientReference, int128 identifier, uint256 attribute) returns()
func (*GatekeeperTransactorSession) SubmitInfoQuery ¶
func (_Gatekeeper *GatekeeperTransactorSession) SubmitInfoQuery(clientReference string, identifier *big.Int) (*types.Transaction, error)
SubmitInfoQuery is a paid mutator transaction binding the contract method 0xbe133d01.
Solidity: function submit_info_query(string clientReference, int128 identifier) returns()
type Governance ¶
type Governance struct { GovernanceCaller // Read-only binding to the contract GovernanceTransactor // Write-only binding to the contract GovernanceFilterer // Log filterer for contract events }
Governance is an auto generated Go binding around an Ethereum contract.
func NewGovernance ¶
func NewGovernance(address common.Address, backend bind.ContractBackend) (*Governance, error)
NewGovernance creates a new instance of Governance, bound to a specific deployed contract.
type GovernanceCaller ¶
type GovernanceCaller struct {
// contains filtered or unexported fields
}
GovernanceCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewGovernanceCaller ¶
func NewGovernanceCaller(address common.Address, caller bind.ContractCaller) (*GovernanceCaller, error)
NewGovernanceCaller creates a new read-only instance of Governance, bound to a specific deployed contract.
func (*GovernanceCaller) GetGatekeeperAddress ¶
func (_Governance *GovernanceCaller) GetGatekeeperAddress(opts *bind.CallOpts) (common.Address, error)
GetGatekeeperAddress is a free data retrieval call binding the contract method 0x01e2d762.
Solidity: function get_gatekeeper_address() constant returns(address out)
type GovernanceCallerRaw ¶
type GovernanceCallerRaw struct {
Contract *GovernanceCaller // Generic read-only contract binding to access the raw methods on
}
GovernanceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*GovernanceCallerRaw) Call ¶
func (_Governance *GovernanceCallerRaw) 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 GovernanceCallerSession ¶
type GovernanceCallerSession struct { Contract *GovernanceCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
GovernanceCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*GovernanceCallerSession) GetGatekeeperAddress ¶
func (_Governance *GovernanceCallerSession) GetGatekeeperAddress() (common.Address, error)
GetGatekeeperAddress is a free data retrieval call binding the contract method 0x01e2d762.
Solidity: function get_gatekeeper_address() constant returns(address out)
type GovernanceFilterer ¶
type GovernanceFilterer struct {
// contains filtered or unexported fields
}
GovernanceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewGovernanceFilterer ¶
func NewGovernanceFilterer(address common.Address, filterer bind.ContractFilterer) (*GovernanceFilterer, error)
NewGovernanceFilterer creates a new log filterer instance of Governance, bound to a specific deployed contract.
type GovernanceRaw ¶
type GovernanceRaw struct {
Contract *Governance // Generic contract binding to access the raw methods on
}
GovernanceRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*GovernanceRaw) Call ¶
func (_Governance *GovernanceRaw) 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 (*GovernanceRaw) Transact ¶
func (_Governance *GovernanceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GovernanceRaw) Transfer ¶
func (_Governance *GovernanceRaw) 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 GovernanceSession ¶
type GovernanceSession struct { Contract *Governance // 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 }
GovernanceSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*GovernanceSession) GetGatekeeperAddress ¶
func (_Governance *GovernanceSession) GetGatekeeperAddress() (common.Address, error)
GetGatekeeperAddress is a free data retrieval call binding the contract method 0x01e2d762.
Solidity: function get_gatekeeper_address() constant returns(address out)
func (*GovernanceSession) SetGatekeeperAddress ¶
func (_Governance *GovernanceSession) SetGatekeeperAddress(addr common.Address) (*types.Transaction, error)
SetGatekeeperAddress is a paid mutator transaction binding the contract method 0x3633ed6f.
Solidity: function set_gatekeeper_address(address addr) returns()
type GovernanceTransactor ¶
type GovernanceTransactor struct {
// contains filtered or unexported fields
}
GovernanceTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewGovernanceTransactor ¶
func NewGovernanceTransactor(address common.Address, transactor bind.ContractTransactor) (*GovernanceTransactor, error)
NewGovernanceTransactor creates a new write-only instance of Governance, bound to a specific deployed contract.
func (*GovernanceTransactor) SetGatekeeperAddress ¶
func (_Governance *GovernanceTransactor) SetGatekeeperAddress(opts *bind.TransactOpts, addr common.Address) (*types.Transaction, error)
SetGatekeeperAddress is a paid mutator transaction binding the contract method 0x3633ed6f.
Solidity: function set_gatekeeper_address(address addr) returns()
type GovernanceTransactorRaw ¶
type GovernanceTransactorRaw struct {
Contract *GovernanceTransactor // Generic write-only contract binding to access the raw methods on
}
GovernanceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*GovernanceTransactorRaw) Transact ¶
func (_Governance *GovernanceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*GovernanceTransactorRaw) Transfer ¶
func (_Governance *GovernanceTransactorRaw) 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 GovernanceTransactorSession ¶
type GovernanceTransactorSession struct { Contract *GovernanceTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
GovernanceTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*GovernanceTransactorSession) SetGatekeeperAddress ¶
func (_Governance *GovernanceTransactorSession) SetGatekeeperAddress(addr common.Address) (*types.Transaction, error)
SetGatekeeperAddress is a paid mutator transaction binding the contract method 0x3633ed6f.
Solidity: function set_gatekeeper_address(address addr) returns()