Documentation ¶
Index ¶
- Constants
- Variables
- type Context
- type ContextCaller
- type ContextCallerRaw
- type ContextCallerSession
- type ContextFilterer
- type ContextRaw
- func (_Context *ContextRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Context *ContextRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Context *ContextRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContextSession
- type ContextTransactor
- type ContextTransactorRaw
- type ContextTransactorSession
- type DNode
- type DNodeCaller
- func (_DNode *DNodeCaller) GetDeviceVersion(opts *bind.CallOpts, cid *big.Int) (string, string, error)
- func (_DNode *DNodeCaller) GetNode(opts *bind.CallOpts, idx *big.Int) ([]string, *big.Int, error)
- func (_DNode *DNodeCaller) GetNodeLast(opts *bind.CallOpts) (*big.Int, error)
- func (_DNode *DNodeCaller) GetNodeLastData(opts *bind.CallOpts) ([]string, *big.Int, error)
- func (_DNode *DNodeCaller) GetVersion(opts *bind.CallOpts, idx *big.Int) (string, string, error)
- func (_DNode *DNodeCaller) IsOwner(opts *bind.CallOpts) (bool, error)
- func (_DNode *DNodeCaller) Owner(opts *bind.CallOpts) (common.Address, error)
- type DNodeCallerRaw
- type DNodeCallerSession
- func (_DNode *DNodeCallerSession) GetDeviceVersion(cid *big.Int) (string, string, error)
- func (_DNode *DNodeCallerSession) GetNode(idx *big.Int) ([]string, *big.Int, error)
- func (_DNode *DNodeCallerSession) GetNodeLast() (*big.Int, error)
- func (_DNode *DNodeCallerSession) GetNodeLastData() ([]string, *big.Int, error)
- func (_DNode *DNodeCallerSession) GetVersion(idx *big.Int) (string, string, error)
- func (_DNode *DNodeCallerSession) IsOwner() (bool, error)
- func (_DNode *DNodeCallerSession) Owner() (common.Address, error)
- type DNodeFilterer
- func (_DNode *DNodeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*DNodeOwnershipTransferredIterator, error)
- func (_DNode *DNodeFilterer) ParseOwnershipTransferred(log types.Log) (*DNodeOwnershipTransferred, error)
- func (_DNode *DNodeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DNodeOwnershipTransferred, ...) (event.Subscription, error)
- type DNodeOwnershipTransferred
- type DNodeOwnershipTransferredIterator
- type DNodeRaw
- func (_DNode *DNodeRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_DNode *DNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_DNode *DNodeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type DNodeSession
- func (_DNode *DNodeSession) GetDeviceVersion(cid *big.Int) (string, string, error)
- func (_DNode *DNodeSession) GetNode(idx *big.Int) ([]string, *big.Int, error)
- func (_DNode *DNodeSession) GetNodeLast() (*big.Int, error)
- func (_DNode *DNodeSession) GetNodeLastData() ([]string, *big.Int, error)
- func (_DNode *DNodeSession) GetVersion(idx *big.Int) (string, string, error)
- func (_DNode *DNodeSession) IsOwner() (bool, error)
- func (_DNode *DNodeSession) Owner() (common.Address, error)
- func (_DNode *DNodeSession) RemoveNode(idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeSession) RenounceOwnership() (*types.Transaction, error)
- func (_DNode *DNodeSession) ReplaceVersion(idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeSession) SetDeviceVersion(_cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
- func (_DNode *DNodeSession) SetNodeLast(idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeSession) SetVersion(cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeSession) StoreNode(swarm string) (*types.Transaction, error)
- func (_DNode *DNodeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_DNode *DNodeSession) TruncateNode(idx *big.Int) (*types.Transaction, error)
- type DNodeTransactor
- func (_DNode *DNodeTransactor) RemoveNode(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) ReplaceVersion(opts *bind.TransactOpts, idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) SetDeviceVersion(opts *bind.TransactOpts, _cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) SetNodeLast(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) SetVersion(opts *bind.TransactOpts, cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) StoreNode(opts *bind.TransactOpts, swarm string) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
- func (_DNode *DNodeTransactor) TruncateNode(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
- type DNodeTransactorRaw
- type DNodeTransactorSession
- func (_DNode *DNodeTransactorSession) RemoveNode(idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) RenounceOwnership() (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) ReplaceVersion(idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) SetDeviceVersion(_cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) SetNodeLast(idx *big.Int) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) SetVersion(cid *big.Int, ver string, hash string) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) StoreNode(swarm string) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- func (_DNode *DNodeTransactorSession) TruncateNode(idx *big.Int) (*types.Transaction, error)
- type Ownable
- type OwnableCaller
- type OwnableCallerRaw
- type OwnableCallerSession
- type OwnableFilterer
- func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, ...) (*OwnableOwnershipTransferredIterator, error)
- func (_Ownable *OwnableFilterer) ParseOwnershipTransferred(log types.Log) (*OwnableOwnershipTransferred, error)
- func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, ...) (event.Subscription, error)
- type OwnableOwnershipTransferred
- type OwnableOwnershipTransferredIterator
- type OwnableRaw
- func (_Ownable *OwnableRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error
- func (_Ownable *OwnableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Ownable *OwnableRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type OwnableSession
- func (_Ownable *OwnableSession) IsOwner() (bool, error)
- func (_Ownable *OwnableSession) Owner() (common.Address, error)
- func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error)
- func (_Ownable *OwnableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
- type OwnableTransactor
- type OwnableTransactorRaw
- type OwnableTransactorSession
Constants ¶
const ContextABI = "[{\"inputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"
ContextABI is the input ABI used to generate the binding from.
const DNodeABI = "" /* 4577-byte string literal not displayed */
DNodeABI is the input ABI used to generate the binding from.
const OwnableABI = "" /* 1155-byte string literal not displayed */
OwnableABI is the input ABI used to generate the binding from.
Variables ¶
var DNodeBin = "" /* 8764-byte string literal not displayed */
DNodeBin is the compiled bytecode used for deploying new contracts.
var DNodeFuncSigs = map[string]string{
"ed6c8d0b": "getDeviceVersion(uint256)",
"4f0f4aa9": "getNode(uint256)",
"812b5e12": "getNodeLast()",
"f428efb0": "getNodeLastData()",
"b88da759": "getVersion(uint256)",
"8f32d59b": "isOwner()",
"8da5cb5b": "owner()",
"ffd740df": "removeNode(uint256)",
"715018a6": "renounceOwnership()",
"342edfba": "replaceVersion(uint256,uint256,string,string)",
"011fc71a": "setDeviceVersion(uint256,string,string)",
"9c90028f": "setNodeLast(uint256)",
"69cf7c9a": "setVersion(uint256,string,string)",
"0a73ba53": "storeNode(string)",
"f2fde38b": "transferOwnership(address)",
"5bf1f19e": "truncateNode(uint256)",
}
DNodeFuncSigs maps the 4-byte function signature to its string representation.
var OwnableFuncSigs = map[string]string{
"8f32d59b": "isOwner()",
"8da5cb5b": "owner()",
"715018a6": "renounceOwnership()",
"f2fde38b": "transferOwnership(address)",
}
OwnableFuncSigs maps the 4-byte function signature to its string representation.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { ContextCaller // Read-only binding to the contract ContextTransactor // Write-only binding to the contract ContextFilterer // Log filterer for contract events }
Context is an auto generated Go binding around an Ethereum contract.
func NewContext ¶
NewContext creates a new instance of Context, bound to a specific deployed contract.
type ContextCaller ¶
type ContextCaller struct {
// contains filtered or unexported fields
}
ContextCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContextCaller ¶
func NewContextCaller(address common.Address, caller bind.ContractCaller) (*ContextCaller, error)
NewContextCaller creates a new read-only instance of Context, bound to a specific deployed contract.
type ContextCallerRaw ¶
type ContextCallerRaw struct {
Contract *ContextCaller // Generic read-only contract binding to access the raw methods on
}
ContextCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContextCallerRaw) Call ¶
func (_Context *ContextCallerRaw) 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 ContextCallerSession ¶
type ContextCallerSession struct { Contract *ContextCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContextCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
type ContextFilterer ¶
type ContextFilterer struct {
// contains filtered or unexported fields
}
ContextFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContextFilterer ¶
func NewContextFilterer(address common.Address, filterer bind.ContractFilterer) (*ContextFilterer, error)
NewContextFilterer creates a new log filterer instance of Context, bound to a specific deployed contract.
type ContextRaw ¶
type ContextRaw struct {
Contract *Context // Generic contract binding to access the raw methods on
}
ContextRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContextRaw) Call ¶
func (_Context *ContextRaw) 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 (*ContextRaw) Transact ¶
func (_Context *ContextRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContextRaw) Transfer ¶
func (_Context *ContextRaw) 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 ContextSession ¶
type ContextSession struct { Contract *Context // 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 }
ContextSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
type ContextTransactor ¶
type ContextTransactor struct {
// contains filtered or unexported fields
}
ContextTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContextTransactor ¶
func NewContextTransactor(address common.Address, transactor bind.ContractTransactor) (*ContextTransactor, error)
NewContextTransactor creates a new write-only instance of Context, bound to a specific deployed contract.
type ContextTransactorRaw ¶
type ContextTransactorRaw struct {
Contract *ContextTransactor // Generic write-only contract binding to access the raw methods on
}
ContextTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContextTransactorRaw) Transact ¶
func (_Context *ContextTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContextTransactorRaw) Transfer ¶
func (_Context *ContextTransactorRaw) 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 ContextTransactorSession ¶
type ContextTransactorSession struct { Contract *ContextTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ContextTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
type DNode ¶
type DNode struct { DNodeCaller // Read-only binding to the contract DNodeTransactor // Write-only binding to the contract DNodeFilterer // Log filterer for contract events }
DNode is an auto generated Go binding around an Ethereum contract.
func DeployDNode ¶
func DeployDNode(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *DNode, error)
DeployDNode deploys a new Ethereum contract, binding an instance of DNode to it.
type DNodeCaller ¶
type DNodeCaller struct {
// contains filtered or unexported fields
}
DNodeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewDNodeCaller ¶
func NewDNodeCaller(address common.Address, caller bind.ContractCaller) (*DNodeCaller, error)
NewDNodeCaller creates a new read-only instance of DNode, bound to a specific deployed contract.
func (*DNodeCaller) GetDeviceVersion ¶
func (_DNode *DNodeCaller) GetDeviceVersion(opts *bind.CallOpts, cid *big.Int) (string, string, error)
GetDeviceVersion is a free data retrieval call binding the contract method 0xed6c8d0b.
Solidity: function getDeviceVersion(uint256 cid) constant returns(string, string)
func (*DNodeCaller) GetNode ¶
GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.
Solidity: function getNode(uint256 idx) constant returns(string[], uint256)
func (*DNodeCaller) GetNodeLast ¶
GetNodeLast is a free data retrieval call binding the contract method 0x812b5e12.
Solidity: function getNodeLast() constant returns(uint256)
func (*DNodeCaller) GetNodeLastData ¶
GetNodeLastData is a free data retrieval call binding the contract method 0xf428efb0.
Solidity: function getNodeLastData() constant returns(string[], uint256)
func (*DNodeCaller) GetVersion ¶
GetVersion is a free data retrieval call binding the contract method 0xb88da759.
Solidity: function getVersion(uint256 idx) constant returns(string, string)
type DNodeCallerRaw ¶
type DNodeCallerRaw struct {
Contract *DNodeCaller // Generic read-only contract binding to access the raw methods on
}
DNodeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*DNodeCallerRaw) Call ¶
func (_DNode *DNodeCallerRaw) 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 DNodeCallerSession ¶
type DNodeCallerSession struct { Contract *DNodeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
DNodeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*DNodeCallerSession) GetDeviceVersion ¶
GetDeviceVersion is a free data retrieval call binding the contract method 0xed6c8d0b.
Solidity: function getDeviceVersion(uint256 cid) constant returns(string, string)
func (*DNodeCallerSession) GetNode ¶
GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.
Solidity: function getNode(uint256 idx) constant returns(string[], uint256)
func (*DNodeCallerSession) GetNodeLast ¶
func (_DNode *DNodeCallerSession) GetNodeLast() (*big.Int, error)
GetNodeLast is a free data retrieval call binding the contract method 0x812b5e12.
Solidity: function getNodeLast() constant returns(uint256)
func (*DNodeCallerSession) GetNodeLastData ¶
func (_DNode *DNodeCallerSession) GetNodeLastData() ([]string, *big.Int, error)
GetNodeLastData is a free data retrieval call binding the contract method 0xf428efb0.
Solidity: function getNodeLastData() constant returns(string[], uint256)
func (*DNodeCallerSession) GetVersion ¶
GetVersion is a free data retrieval call binding the contract method 0xb88da759.
Solidity: function getVersion(uint256 idx) constant returns(string, string)
func (*DNodeCallerSession) IsOwner ¶
func (_DNode *DNodeCallerSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() constant returns(bool)
type DNodeFilterer ¶
type DNodeFilterer struct {
// contains filtered or unexported fields
}
DNodeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewDNodeFilterer ¶
func NewDNodeFilterer(address common.Address, filterer bind.ContractFilterer) (*DNodeFilterer, error)
NewDNodeFilterer creates a new log filterer instance of DNode, bound to a specific deployed contract.
func (*DNodeFilterer) FilterOwnershipTransferred ¶
func (_DNode *DNodeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*DNodeOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*DNodeFilterer) ParseOwnershipTransferred ¶
func (_DNode *DNodeFilterer) ParseOwnershipTransferred(log types.Log) (*DNodeOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*DNodeFilterer) WatchOwnershipTransferred ¶
func (_DNode *DNodeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *DNodeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
type DNodeOwnershipTransferred ¶
type DNodeOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
DNodeOwnershipTransferred represents a OwnershipTransferred event raised by the DNode contract.
type DNodeOwnershipTransferredIterator ¶
type DNodeOwnershipTransferredIterator struct { Event *DNodeOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
DNodeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the DNode contract.
func (*DNodeOwnershipTransferredIterator) Close ¶
func (it *DNodeOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*DNodeOwnershipTransferredIterator) Error ¶
func (it *DNodeOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*DNodeOwnershipTransferredIterator) Next ¶
func (it *DNodeOwnershipTransferredIterator) 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 DNodeRaw ¶
type DNodeRaw struct {
Contract *DNode // Generic contract binding to access the raw methods on
}
DNodeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*DNodeRaw) Call ¶
func (_DNode *DNodeRaw) 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 (*DNodeRaw) Transact ¶
func (_DNode *DNodeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DNodeRaw) Transfer ¶
func (_DNode *DNodeRaw) 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 DNodeSession ¶
type DNodeSession struct { Contract *DNode // 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 }
DNodeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*DNodeSession) GetDeviceVersion ¶
GetDeviceVersion is a free data retrieval call binding the contract method 0xed6c8d0b.
Solidity: function getDeviceVersion(uint256 cid) constant returns(string, string)
func (*DNodeSession) GetNode ¶
GetNode is a free data retrieval call binding the contract method 0x4f0f4aa9.
Solidity: function getNode(uint256 idx) constant returns(string[], uint256)
func (*DNodeSession) GetNodeLast ¶
func (_DNode *DNodeSession) GetNodeLast() (*big.Int, error)
GetNodeLast is a free data retrieval call binding the contract method 0x812b5e12.
Solidity: function getNodeLast() constant returns(uint256)
func (*DNodeSession) GetNodeLastData ¶
func (_DNode *DNodeSession) GetNodeLastData() ([]string, *big.Int, error)
GetNodeLastData is a free data retrieval call binding the contract method 0xf428efb0.
Solidity: function getNodeLastData() constant returns(string[], uint256)
func (*DNodeSession) GetVersion ¶
GetVersion is a free data retrieval call binding the contract method 0xb88da759.
Solidity: function getVersion(uint256 idx) constant returns(string, string)
func (*DNodeSession) IsOwner ¶
func (_DNode *DNodeSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() constant returns(bool)
func (*DNodeSession) Owner ¶
func (_DNode *DNodeSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*DNodeSession) RemoveNode ¶
func (_DNode *DNodeSession) RemoveNode(idx *big.Int) (*types.Transaction, error)
RemoveNode is a paid mutator transaction binding the contract method 0xffd740df.
Solidity: function removeNode(uint256 idx) returns()
func (*DNodeSession) RenounceOwnership ¶
func (_DNode *DNodeSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DNodeSession) ReplaceVersion ¶
func (_DNode *DNodeSession) ReplaceVersion(idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
ReplaceVersion is a paid mutator transaction binding the contract method 0x342edfba.
Solidity: function replaceVersion(uint256 idx, uint256 cid, string ver, string hash) returns()
func (*DNodeSession) SetDeviceVersion ¶
func (_DNode *DNodeSession) SetDeviceVersion(_cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
SetDeviceVersion is a paid mutator transaction binding the contract method 0x011fc71a.
Solidity: function setDeviceVersion(uint256 _cid, string _ver, string _hash) returns()
func (*DNodeSession) SetNodeLast ¶
func (_DNode *DNodeSession) SetNodeLast(idx *big.Int) (*types.Transaction, error)
SetNodeLast is a paid mutator transaction binding the contract method 0x9c90028f.
Solidity: function setNodeLast(uint256 idx) returns()
func (*DNodeSession) SetVersion ¶
func (_DNode *DNodeSession) SetVersion(cid *big.Int, ver string, hash string) (*types.Transaction, error)
SetVersion is a paid mutator transaction binding the contract method 0x69cf7c9a.
Solidity: function setVersion(uint256 cid, string ver, string hash) returns()
func (*DNodeSession) StoreNode ¶
func (_DNode *DNodeSession) StoreNode(swarm string) (*types.Transaction, error)
StoreNode is a paid mutator transaction binding the contract method 0x0a73ba53.
Solidity: function storeNode(string swarm) returns()
func (*DNodeSession) TransferOwnership ¶
func (_DNode *DNodeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DNodeSession) TruncateNode ¶
func (_DNode *DNodeSession) TruncateNode(idx *big.Int) (*types.Transaction, error)
TruncateNode is a paid mutator transaction binding the contract method 0x5bf1f19e.
Solidity: function truncateNode(uint256 idx) returns()
type DNodeTransactor ¶
type DNodeTransactor struct {
// contains filtered or unexported fields
}
DNodeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewDNodeTransactor ¶
func NewDNodeTransactor(address common.Address, transactor bind.ContractTransactor) (*DNodeTransactor, error)
NewDNodeTransactor creates a new write-only instance of DNode, bound to a specific deployed contract.
func (*DNodeTransactor) RemoveNode ¶
func (_DNode *DNodeTransactor) RemoveNode(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
RemoveNode is a paid mutator transaction binding the contract method 0xffd740df.
Solidity: function removeNode(uint256 idx) returns()
func (*DNodeTransactor) RenounceOwnership ¶
func (_DNode *DNodeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DNodeTransactor) ReplaceVersion ¶
func (_DNode *DNodeTransactor) ReplaceVersion(opts *bind.TransactOpts, idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
ReplaceVersion is a paid mutator transaction binding the contract method 0x342edfba.
Solidity: function replaceVersion(uint256 idx, uint256 cid, string ver, string hash) returns()
func (*DNodeTransactor) SetDeviceVersion ¶
func (_DNode *DNodeTransactor) SetDeviceVersion(opts *bind.TransactOpts, _cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
SetDeviceVersion is a paid mutator transaction binding the contract method 0x011fc71a.
Solidity: function setDeviceVersion(uint256 _cid, string _ver, string _hash) returns()
func (*DNodeTransactor) SetNodeLast ¶
func (_DNode *DNodeTransactor) SetNodeLast(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
SetNodeLast is a paid mutator transaction binding the contract method 0x9c90028f.
Solidity: function setNodeLast(uint256 idx) returns()
func (*DNodeTransactor) SetVersion ¶
func (_DNode *DNodeTransactor) SetVersion(opts *bind.TransactOpts, cid *big.Int, ver string, hash string) (*types.Transaction, error)
SetVersion is a paid mutator transaction binding the contract method 0x69cf7c9a.
Solidity: function setVersion(uint256 cid, string ver, string hash) returns()
func (*DNodeTransactor) StoreNode ¶
func (_DNode *DNodeTransactor) StoreNode(opts *bind.TransactOpts, swarm string) (*types.Transaction, error)
StoreNode is a paid mutator transaction binding the contract method 0x0a73ba53.
Solidity: function storeNode(string swarm) returns()
func (*DNodeTransactor) TransferOwnership ¶
func (_DNode *DNodeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DNodeTransactor) TruncateNode ¶
func (_DNode *DNodeTransactor) TruncateNode(opts *bind.TransactOpts, idx *big.Int) (*types.Transaction, error)
TruncateNode is a paid mutator transaction binding the contract method 0x5bf1f19e.
Solidity: function truncateNode(uint256 idx) returns()
type DNodeTransactorRaw ¶
type DNodeTransactorRaw struct {
Contract *DNodeTransactor // Generic write-only contract binding to access the raw methods on
}
DNodeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*DNodeTransactorRaw) Transact ¶
func (_DNode *DNodeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*DNodeTransactorRaw) Transfer ¶
func (_DNode *DNodeTransactorRaw) 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 DNodeTransactorSession ¶
type DNodeTransactorSession struct { Contract *DNodeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
DNodeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*DNodeTransactorSession) RemoveNode ¶
func (_DNode *DNodeTransactorSession) RemoveNode(idx *big.Int) (*types.Transaction, error)
RemoveNode is a paid mutator transaction binding the contract method 0xffd740df.
Solidity: function removeNode(uint256 idx) returns()
func (*DNodeTransactorSession) RenounceOwnership ¶
func (_DNode *DNodeTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*DNodeTransactorSession) ReplaceVersion ¶
func (_DNode *DNodeTransactorSession) ReplaceVersion(idx *big.Int, cid *big.Int, ver string, hash string) (*types.Transaction, error)
ReplaceVersion is a paid mutator transaction binding the contract method 0x342edfba.
Solidity: function replaceVersion(uint256 idx, uint256 cid, string ver, string hash) returns()
func (*DNodeTransactorSession) SetDeviceVersion ¶
func (_DNode *DNodeTransactorSession) SetDeviceVersion(_cid *big.Int, _ver string, _hash string) (*types.Transaction, error)
SetDeviceVersion is a paid mutator transaction binding the contract method 0x011fc71a.
Solidity: function setDeviceVersion(uint256 _cid, string _ver, string _hash) returns()
func (*DNodeTransactorSession) SetNodeLast ¶
func (_DNode *DNodeTransactorSession) SetNodeLast(idx *big.Int) (*types.Transaction, error)
SetNodeLast is a paid mutator transaction binding the contract method 0x9c90028f.
Solidity: function setNodeLast(uint256 idx) returns()
func (*DNodeTransactorSession) SetVersion ¶
func (_DNode *DNodeTransactorSession) SetVersion(cid *big.Int, ver string, hash string) (*types.Transaction, error)
SetVersion is a paid mutator transaction binding the contract method 0x69cf7c9a.
Solidity: function setVersion(uint256 cid, string ver, string hash) returns()
func (*DNodeTransactorSession) StoreNode ¶
func (_DNode *DNodeTransactorSession) StoreNode(swarm string) (*types.Transaction, error)
StoreNode is a paid mutator transaction binding the contract method 0x0a73ba53.
Solidity: function storeNode(string swarm) returns()
func (*DNodeTransactorSession) TransferOwnership ¶
func (_DNode *DNodeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
func (*DNodeTransactorSession) TruncateNode ¶
func (_DNode *DNodeTransactorSession) TruncateNode(idx *big.Int) (*types.Transaction, error)
TruncateNode is a paid mutator transaction binding the contract method 0x5bf1f19e.
Solidity: function truncateNode(uint256 idx) returns()
type Ownable ¶
type Ownable struct { OwnableCaller // Read-only binding to the contract OwnableTransactor // Write-only binding to the contract OwnableFilterer // Log filterer for contract events }
Ownable is an auto generated Go binding around an Ethereum contract.
func NewOwnable ¶
NewOwnable creates a new instance of Ownable, bound to a specific deployed contract.
type OwnableCaller ¶
type OwnableCaller struct {
// contains filtered or unexported fields
}
OwnableCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewOwnableCaller ¶
func NewOwnableCaller(address common.Address, caller bind.ContractCaller) (*OwnableCaller, error)
NewOwnableCaller creates a new read-only instance of Ownable, bound to a specific deployed contract.
type OwnableCallerRaw ¶
type OwnableCallerRaw struct {
Contract *OwnableCaller // Generic read-only contract binding to access the raw methods on
}
OwnableCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*OwnableCallerRaw) Call ¶
func (_Ownable *OwnableCallerRaw) 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 OwnableCallerSession ¶
type OwnableCallerSession struct { Contract *OwnableCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
OwnableCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*OwnableCallerSession) IsOwner ¶
func (_Ownable *OwnableCallerSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() constant returns(bool)
type OwnableFilterer ¶
type OwnableFilterer struct {
// contains filtered or unexported fields
}
OwnableFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewOwnableFilterer ¶
func NewOwnableFilterer(address common.Address, filterer bind.ContractFilterer) (*OwnableFilterer, error)
NewOwnableFilterer creates a new log filterer instance of Ownable, bound to a specific deployed contract.
func (*OwnableFilterer) FilterOwnershipTransferred ¶
func (_Ownable *OwnableFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*OwnableOwnershipTransferredIterator, error)
FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*OwnableFilterer) ParseOwnershipTransferred ¶
func (_Ownable *OwnableFilterer) ParseOwnershipTransferred(log types.Log) (*OwnableOwnershipTransferred, error)
ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
func (*OwnableFilterer) WatchOwnershipTransferred ¶
func (_Ownable *OwnableFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *OwnableOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)
WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
type OwnableOwnershipTransferred ¶
type OwnableOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos }
OwnableOwnershipTransferred represents a OwnershipTransferred event raised by the Ownable contract.
type OwnableOwnershipTransferredIterator ¶
type OwnableOwnershipTransferredIterator struct { Event *OwnableOwnershipTransferred // Event containing the contract specifics and raw log // contains filtered or unexported fields }
OwnableOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Ownable contract.
func (*OwnableOwnershipTransferredIterator) Close ¶
func (it *OwnableOwnershipTransferredIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*OwnableOwnershipTransferredIterator) Error ¶
func (it *OwnableOwnershipTransferredIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*OwnableOwnershipTransferredIterator) Next ¶
func (it *OwnableOwnershipTransferredIterator) 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 OwnableRaw ¶
type OwnableRaw struct {
Contract *Ownable // Generic contract binding to access the raw methods on
}
OwnableRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*OwnableRaw) Call ¶
func (_Ownable *OwnableRaw) 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 (*OwnableRaw) Transact ¶
func (_Ownable *OwnableRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OwnableRaw) Transfer ¶
func (_Ownable *OwnableRaw) 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 OwnableSession ¶
type OwnableSession struct { Contract *Ownable // 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 }
OwnableSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*OwnableSession) IsOwner ¶
func (_Ownable *OwnableSession) IsOwner() (bool, error)
IsOwner is a free data retrieval call binding the contract method 0x8f32d59b.
Solidity: function isOwner() constant returns(bool)
func (*OwnableSession) Owner ¶
func (_Ownable *OwnableSession) Owner() (common.Address, error)
Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
Solidity: function owner() constant returns(address)
func (*OwnableSession) RenounceOwnership ¶
func (_Ownable *OwnableSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*OwnableSession) TransferOwnership ¶
func (_Ownable *OwnableSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type OwnableTransactor ¶
type OwnableTransactor struct {
// contains filtered or unexported fields
}
OwnableTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewOwnableTransactor ¶
func NewOwnableTransactor(address common.Address, transactor bind.ContractTransactor) (*OwnableTransactor, error)
NewOwnableTransactor creates a new write-only instance of Ownable, bound to a specific deployed contract.
func (*OwnableTransactor) RenounceOwnership ¶
func (_Ownable *OwnableTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*OwnableTransactor) TransferOwnership ¶
func (_Ownable *OwnableTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()
type OwnableTransactorRaw ¶
type OwnableTransactorRaw struct {
Contract *OwnableTransactor // Generic write-only contract binding to access the raw methods on
}
OwnableTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*OwnableTransactorRaw) Transact ¶
func (_Ownable *OwnableTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*OwnableTransactorRaw) Transfer ¶
func (_Ownable *OwnableTransactorRaw) 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 OwnableTransactorSession ¶
type OwnableTransactorSession struct { Contract *OwnableTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
OwnableTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*OwnableTransactorSession) RenounceOwnership ¶
func (_Ownable *OwnableTransactorSession) RenounceOwnership() (*types.Transaction, error)
RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
Solidity: function renounceOwnership() returns()
func (*OwnableTransactorSession) TransferOwnership ¶
func (_Ownable *OwnableTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)
TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
Solidity: function transferOwnership(address newOwner) returns()