Documentation ¶
Index ¶
- Constants
- type ScClient
- type ScClientCaller
- func (_ScClient *ScClientCaller) GetNodeDetails(opts *bind.CallOpts, _index uint16) (struct{ ... }, error)
- func (_ScClient *ScClientCaller) GetNodeList(opts *bind.CallOpts, i uint16) (struct{ ... }, error)
- func (_ScClient *ScClientCaller) GetNodesCounter(opts *bind.CallOpts) (*big.Int, error)
- func (_ScClient *ScClientCaller) GetSignatureHashFromNotary(opts *bind.CallOpts, notary_block *big.Int, miners []common.Address, ...) ([32]byte, error)
- func (_ScClient *ScClientCaller) GetSignatures(opts *bind.CallOpts, block_no *big.Int, index *big.Int) (struct{ ... }, error)
- func (_ScClient *ScClientCaller) GetSignaturesCount(opts *bind.CallOpts, block_no *big.Int) (*big.Int, error)
- type ScClientCallerRaw
- type ScClientCallerSession
- func (_ScClient *ScClientCallerSession) GetNodeDetails(_index uint16) (struct{ ... }, error)
- func (_ScClient *ScClientCallerSession) GetNodeList(i uint16) (struct{ ... }, error)
- func (_ScClient *ScClientCallerSession) GetNodesCounter() (*big.Int, error)
- func (_ScClient *ScClientCallerSession) GetSignatureHashFromNotary(notary_block *big.Int, miners []common.Address, blocks_mined []uint32, ...) ([32]byte, error)
- func (_ScClient *ScClientCallerSession) GetSignatures(block_no *big.Int, index *big.Int) (struct{ ... }, error)
- func (_ScClient *ScClientCallerSession) GetSignaturesCount(block_no *big.Int) (*big.Int, error)
- type ScClientFilterer
- type ScClientPrint
- type ScClientPrintIterator
- type ScClientRaw
- func (_ScClient *ScClientRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_ScClient *ScClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ScClient *ScClientRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ScClientSession
- func (_ScClient *ScClientSession) GetNodeDetails(_index uint16) (struct{ ... }, error)
- func (_ScClient *ScClientSession) GetNodeList(i uint16) (struct{ ... }, error)
- func (_ScClient *ScClientSession) GetNodesCounter() (*big.Int, error)
- func (_ScClient *ScClientSession) GetSignatureHashFromNotary(notary_block *big.Int, miners []common.Address, blocks_mined []uint32, ...) ([32]byte, error)
- func (_ScClient *ScClientSession) GetSignatures(block_no *big.Int, index *big.Int) (struct{ ... }, error)
- func (_ScClient *ScClientSession) GetSignaturesCount(block_no *big.Int) (*big.Int, error)
- func (_ScClient *ScClientSession) RegisterNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
- func (_ScClient *ScClientSession) StoreSignature(block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
- func (_ScClient *ScClientSession) UpdateNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
- type ScClientTransactor
- func (_ScClient *ScClientTransactor) RegisterNode(opts *bind.TransactOpts, n string, r string, p string, e string, ip string, ...) (*types.Transaction, error)
- func (_ScClient *ScClientTransactor) StoreSignature(opts *bind.TransactOpts, block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
- func (_ScClient *ScClientTransactor) UpdateNode(opts *bind.TransactOpts, n string, r string, p string, e string, ip string, ...) (*types.Transaction, error)
- type ScClientTransactorRaw
- type ScClientTransactorSession
- func (_ScClient *ScClientTransactorSession) RegisterNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
- func (_ScClient *ScClientTransactorSession) StoreSignature(block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
- func (_ScClient *ScClientTransactorSession) UpdateNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
Constants ¶
const ScClientABI = "" /* 5081-byte string literal not displayed */
ScClientABI is the input ABI used to generate the binding from.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScClient ¶
type ScClient struct { ScClientCaller // Read-only binding to the contract ScClientTransactor // Write-only binding to the contract ScClientFilterer // Log filterer for contract events }
ScClient is an auto generated Go binding around an Ethereum contract.
func NewScClient ¶
NewScClient creates a new instance of ScClient, bound to a specific deployed contract.
type ScClientCaller ¶
type ScClientCaller struct {
// contains filtered or unexported fields
}
ScClientCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewScClientCaller ¶
func NewScClientCaller(address common.Address, caller bind.ContractCaller) (*ScClientCaller, error)
NewScClientCaller creates a new read-only instance of ScClient, bound to a specific deployed contract.
func (*ScClientCaller) GetNodeDetails ¶
func (_ScClient *ScClientCaller) GetNodeDetails(opts *bind.CallOpts, _index uint16) (struct { N string R string P string Ip string E string EnodeUrl string I *big.Int }, error)
GetNodeDetails is a free data retrieval call binding the contract method 0x7f11a8ed.
Solidity: function getNodeDetails(uint16 _index) constant returns(string n, string r, string p, string ip, string e, string enode_url, uint256 i)
func (*ScClientCaller) GetNodeList ¶
func (_ScClient *ScClientCaller) GetNodeList(opts *bind.CallOpts, i uint16) (struct { N string R string P string Ip string E string EnodeUrl string }, error)
GetNodeList is a free data retrieval call binding the contract method 0xdeb043c6.
Solidity: function getNodeList(uint16 i) constant returns(string n, string r, string p, string ip, string e, string enode_url)
func (*ScClientCaller) GetNodesCounter ¶
GetNodesCounter is a free data retrieval call binding the contract method 0x6168d293.
Solidity: function getNodesCounter() constant returns(uint256)
func (*ScClientCaller) GetSignatureHashFromNotary ¶
func (_ScClient *ScClientCaller) GetSignatureHashFromNotary(opts *bind.CallOpts, notary_block *big.Int, miners []common.Address, blocks_mined []uint32, users []common.Address, user_gas []uint64, largest_tx uint64) ([32]byte, error)
GetSignatureHashFromNotary is a free data retrieval call binding the contract method 0xa0c795ea.
Solidity: function get_signature_hash_from_notary(uint256 notary_block, address[] miners, uint32[] blocks_mined, address[] users, uint64[] user_gas, uint64 largest_tx) constant returns(bytes32)
func (*ScClientCaller) GetSignatures ¶
func (_ScClient *ScClientCaller) GetSignatures(opts *bind.CallOpts, block_no *big.Int, index *big.Int) (struct { V uint8 R [32]byte S [32]byte }, error)
GetSignatures is a free data retrieval call binding the contract method 0xa05b9f85.
Solidity: function get_signatures(uint256 block_no, uint256 index) constant returns(uint8 v, bytes32 r, bytes32 s)
func (*ScClientCaller) GetSignaturesCount ¶
func (_ScClient *ScClientCaller) GetSignaturesCount(opts *bind.CallOpts, block_no *big.Int) (*big.Int, error)
GetSignaturesCount is a free data retrieval call binding the contract method 0x559c270e.
Solidity: function get_signatures_count(uint256 block_no) constant returns(uint256)
type ScClientCallerRaw ¶
type ScClientCallerRaw struct {
Contract *ScClientCaller // Generic read-only contract binding to access the raw methods on
}
ScClientCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ScClientCallerRaw) Call ¶
func (_ScClient *ScClientCallerRaw) 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 ScClientCallerSession ¶
type ScClientCallerSession struct { Contract *ScClientCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ScClientCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ScClientCallerSession) GetNodeDetails ¶
func (_ScClient *ScClientCallerSession) GetNodeDetails(_index uint16) (struct { N string R string P string Ip string E string EnodeUrl string I *big.Int }, error)
GetNodeDetails is a free data retrieval call binding the contract method 0x7f11a8ed.
Solidity: function getNodeDetails(uint16 _index) constant returns(string n, string r, string p, string ip, string e, string enode_url, uint256 i)
func (*ScClientCallerSession) GetNodeList ¶
func (_ScClient *ScClientCallerSession) GetNodeList(i uint16) (struct { N string R string P string Ip string E string EnodeUrl string }, error)
GetNodeList is a free data retrieval call binding the contract method 0xdeb043c6.
Solidity: function getNodeList(uint16 i) constant returns(string n, string r, string p, string ip, string e, string enode_url)
func (*ScClientCallerSession) GetNodesCounter ¶
func (_ScClient *ScClientCallerSession) GetNodesCounter() (*big.Int, error)
GetNodesCounter is a free data retrieval call binding the contract method 0x6168d293.
Solidity: function getNodesCounter() constant returns(uint256)
func (*ScClientCallerSession) GetSignatureHashFromNotary ¶
func (_ScClient *ScClientCallerSession) GetSignatureHashFromNotary(notary_block *big.Int, miners []common.Address, blocks_mined []uint32, users []common.Address, user_gas []uint64, largest_tx uint64) ([32]byte, error)
GetSignatureHashFromNotary is a free data retrieval call binding the contract method 0xa0c795ea.
Solidity: function get_signature_hash_from_notary(uint256 notary_block, address[] miners, uint32[] blocks_mined, address[] users, uint64[] user_gas, uint64 largest_tx) constant returns(bytes32)
func (*ScClientCallerSession) GetSignatures ¶
func (_ScClient *ScClientCallerSession) GetSignatures(block_no *big.Int, index *big.Int) (struct { V uint8 R [32]byte S [32]byte }, error)
GetSignatures is a free data retrieval call binding the contract method 0xa05b9f85.
Solidity: function get_signatures(uint256 block_no, uint256 index) constant returns(uint8 v, bytes32 r, bytes32 s)
func (*ScClientCallerSession) GetSignaturesCount ¶
GetSignaturesCount is a free data retrieval call binding the contract method 0x559c270e.
Solidity: function get_signatures_count(uint256 block_no) constant returns(uint256)
type ScClientFilterer ¶
type ScClientFilterer struct {
// contains filtered or unexported fields
}
ScClientFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewScClientFilterer ¶
func NewScClientFilterer(address common.Address, filterer bind.ContractFilterer) (*ScClientFilterer, error)
NewScClientFilterer creates a new log filterer instance of ScClient, bound to a specific deployed contract.
func (*ScClientFilterer) FilterPrint ¶
func (_ScClient *ScClientFilterer) FilterPrint(opts *bind.FilterOpts) (*ScClientPrintIterator, error)
FilterPrint is a free log retrieval operation binding the contract event 0x02909f0e17ce8f686a5301248241233e79b4d7879283285063f7441c3b746780.
Solidity: event print(string nodeName, string role, string publickey, string enode, string ip, string enode_url)
func (*ScClientFilterer) WatchPrint ¶
func (_ScClient *ScClientFilterer) WatchPrint(opts *bind.WatchOpts, sink chan<- *ScClientPrint) (event.Subscription, error)
WatchPrint is a free log subscription operation binding the contract event 0x02909f0e17ce8f686a5301248241233e79b4d7879283285063f7441c3b746780.
Solidity: event print(string nodeName, string role, string publickey, string enode, string ip, string enode_url)
type ScClientPrint ¶
type ScClientPrint struct { NodeName string Role string Publickey string Enode string Ip string EnodeUrl string Raw types.Log // Blockchain specific contextual infos }
ScClientPrint represents a Print event raised by the ScClient contract.
type ScClientPrintIterator ¶
type ScClientPrintIterator struct { Event *ScClientPrint // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ScClientPrintIterator is returned from FilterPrint and is used to iterate over the raw logs and unpacked data for Print events raised by the ScClient contract.
func (*ScClientPrintIterator) Close ¶
func (it *ScClientPrintIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ScClientPrintIterator) Error ¶
func (it *ScClientPrintIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ScClientPrintIterator) Next ¶
func (it *ScClientPrintIterator) 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 ScClientRaw ¶
type ScClientRaw struct {
Contract *ScClient // Generic contract binding to access the raw methods on
}
ScClientRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ScClientRaw) Call ¶
func (_ScClient *ScClientRaw) 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 (*ScClientRaw) Transact ¶
func (_ScClient *ScClientRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ScClientRaw) Transfer ¶
func (_ScClient *ScClientRaw) 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 ScClientSession ¶
type ScClientSession struct { Contract *ScClient // 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 }
ScClientSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ScClientSession) GetNodeDetails ¶
func (_ScClient *ScClientSession) GetNodeDetails(_index uint16) (struct { N string R string P string Ip string E string EnodeUrl string I *big.Int }, error)
GetNodeDetails is a free data retrieval call binding the contract method 0x7f11a8ed.
Solidity: function getNodeDetails(uint16 _index) constant returns(string n, string r, string p, string ip, string e, string enode_url, uint256 i)
func (*ScClientSession) GetNodeList ¶
func (_ScClient *ScClientSession) GetNodeList(i uint16) (struct { N string R string P string Ip string E string EnodeUrl string }, error)
GetNodeList is a free data retrieval call binding the contract method 0xdeb043c6.
Solidity: function getNodeList(uint16 i) constant returns(string n, string r, string p, string ip, string e, string enode_url)
func (*ScClientSession) GetNodesCounter ¶
func (_ScClient *ScClientSession) GetNodesCounter() (*big.Int, error)
GetNodesCounter is a free data retrieval call binding the contract method 0x6168d293.
Solidity: function getNodesCounter() constant returns(uint256)
func (*ScClientSession) GetSignatureHashFromNotary ¶
func (_ScClient *ScClientSession) GetSignatureHashFromNotary(notary_block *big.Int, miners []common.Address, blocks_mined []uint32, users []common.Address, user_gas []uint64, largest_tx uint64) ([32]byte, error)
GetSignatureHashFromNotary is a free data retrieval call binding the contract method 0xa0c795ea.
Solidity: function get_signature_hash_from_notary(uint256 notary_block, address[] miners, uint32[] blocks_mined, address[] users, uint64[] user_gas, uint64 largest_tx) constant returns(bytes32)
func (*ScClientSession) GetSignatures ¶
func (_ScClient *ScClientSession) GetSignatures(block_no *big.Int, index *big.Int) (struct { V uint8 R [32]byte S [32]byte }, error)
GetSignatures is a free data retrieval call binding the contract method 0xa05b9f85.
Solidity: function get_signatures(uint256 block_no, uint256 index) constant returns(uint8 v, bytes32 r, bytes32 s)
func (*ScClientSession) GetSignaturesCount ¶
GetSignaturesCount is a free data retrieval call binding the contract method 0x559c270e.
Solidity: function get_signatures_count(uint256 block_no) constant returns(uint256)
func (*ScClientSession) RegisterNode ¶
func (_ScClient *ScClientSession) RegisterNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
RegisterNode is a paid mutator transaction binding the contract method 0x3072b1b2.
Solidity: function registerNode(string n, string r, string p, string e, string ip, string enode_url) returns()
func (*ScClientSession) StoreSignature ¶
func (_ScClient *ScClientSession) StoreSignature(block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
StoreSignature is a paid mutator transaction binding the contract method 0xf202c84d.
Solidity: function store_signature(uint256 block_no, uint8 v, bytes32 r, bytes32 s) returns()
func (*ScClientSession) UpdateNode ¶
func (_ScClient *ScClientSession) UpdateNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0xaeffe3b7.
Solidity: function updateNode(string n, string r, string p, string e, string ip, string enode_url) returns()
type ScClientTransactor ¶
type ScClientTransactor struct {
// contains filtered or unexported fields
}
ScClientTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewScClientTransactor ¶
func NewScClientTransactor(address common.Address, transactor bind.ContractTransactor) (*ScClientTransactor, error)
NewScClientTransactor creates a new write-only instance of ScClient, bound to a specific deployed contract.
func (*ScClientTransactor) RegisterNode ¶
func (_ScClient *ScClientTransactor) RegisterNode(opts *bind.TransactOpts, n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
RegisterNode is a paid mutator transaction binding the contract method 0x3072b1b2.
Solidity: function registerNode(string n, string r, string p, string e, string ip, string enode_url) returns()
func (*ScClientTransactor) StoreSignature ¶
func (_ScClient *ScClientTransactor) StoreSignature(opts *bind.TransactOpts, block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
StoreSignature is a paid mutator transaction binding the contract method 0xf202c84d.
Solidity: function store_signature(uint256 block_no, uint8 v, bytes32 r, bytes32 s) returns()
func (*ScClientTransactor) UpdateNode ¶
func (_ScClient *ScClientTransactor) UpdateNode(opts *bind.TransactOpts, n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0xaeffe3b7.
Solidity: function updateNode(string n, string r, string p, string e, string ip, string enode_url) returns()
type ScClientTransactorRaw ¶
type ScClientTransactorRaw struct {
Contract *ScClientTransactor // Generic write-only contract binding to access the raw methods on
}
ScClientTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ScClientTransactorRaw) Transact ¶
func (_ScClient *ScClientTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ScClientTransactorRaw) Transfer ¶
func (_ScClient *ScClientTransactorRaw) 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 ScClientTransactorSession ¶
type ScClientTransactorSession struct { Contract *ScClientTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ScClientTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ScClientTransactorSession) RegisterNode ¶
func (_ScClient *ScClientTransactorSession) RegisterNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
RegisterNode is a paid mutator transaction binding the contract method 0x3072b1b2.
Solidity: function registerNode(string n, string r, string p, string e, string ip, string enode_url) returns()
func (*ScClientTransactorSession) StoreSignature ¶
func (_ScClient *ScClientTransactorSession) StoreSignature(block_no *big.Int, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error)
StoreSignature is a paid mutator transaction binding the contract method 0xf202c84d.
Solidity: function store_signature(uint256 block_no, uint8 v, bytes32 r, bytes32 s) returns()
func (*ScClientTransactorSession) UpdateNode ¶
func (_ScClient *ScClientTransactorSession) UpdateNode(n string, r string, p string, e string, ip string, enode_url string) (*types.Transaction, error)
UpdateNode is a paid mutator transaction binding the contract method 0xaeffe3b7.
Solidity: function updateNode(string n, string r, string p, string e, string ip, string enode_url) returns()