1691 lines
68 KiB
Go
1691 lines
68 KiB
Go
|
// Code generated - DO NOT EDIT.
|
||
|
// This file is a generated binding and any manual changes will be lost.
|
||
|
|
||
|
package resolver
|
||
|
|
||
|
import (
|
||
|
"math/big"
|
||
|
"strings"
|
||
|
|
||
|
ethereum "github.com/ethereum/go-ethereum"
|
||
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
||
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||
|
"github.com/ethereum/go-ethereum/common"
|
||
|
"github.com/ethereum/go-ethereum/core/types"
|
||
|
"github.com/ethereum/go-ethereum/event"
|
||
|
)
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var (
|
||
|
_ = big.NewInt
|
||
|
_ = strings.NewReader
|
||
|
_ = ethereum.NotFound
|
||
|
_ = abi.U256
|
||
|
_ = bind.Bind
|
||
|
_ = common.Big1
|
||
|
_ = types.BloomLookup
|
||
|
_ = event.NewSubscription
|
||
|
)
|
||
|
|
||
|
// ContractABI is the input ABI used to generate the binding from.
|
||
|
const ContractABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"pure\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"key\",\"type\":\"string\"},{\"name\":\"value\",\"type\":\"string\"}],\"name\":\"setText\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"interfaceImplementer\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"contentTypes\",\"type\":\"uint256\"}],\"name\":\"ABI\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"},{\"name\":\"\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"x\",\"type\":\"bytes32\"},{\"name\":\"y\",\"type\":\"bytes32\"}],\"name\":\"setPubkey\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"hash\",\"type\":\"bytes\"}],\"name\":\"setContenthash\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"addr\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"target\",\"type\":\"address\"},{\"name\":\"isAuthorised\",\"type\":\"bool\"}],\"name\":\"setAuthorisation\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"key\",\"type\":\"string\"}],\"name\":\"text\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"contentType\",\"type\":\"uint256\"},{\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"setABI\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"name\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"name\",\"type\":\"string\"}],\"name\":\"setName\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"contenthash\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"}],\"name\":\"pubkey\",\"outputs\":[{\"name\":\"x\",\"type\":\"bytes32\"},{\"name\":\"y\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setAddr\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"node\",\"type\":\"bytes32\"},{\"name\":\"interfaceID\",\"type\":\"bytes4\"},{\"name\":\"implementer\",\"type\":\"address\"}],\"name\":\"setInterface\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"bytes32\"},{\"name
|
||
|
|
||
|
// Contract is an auto generated Go binding around an Ethereum contract.
|
||
|
type Contract struct {
|
||
|
ContractCaller // Read-only binding to the contract
|
||
|
ContractTransactor // Write-only binding to the contract
|
||
|
ContractFilterer // Log filterer for contract events
|
||
|
}
|
||
|
|
||
|
// ContractCaller is an auto generated read-only Go binding around an Ethereum contract.
|
||
|
type ContractCaller struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
|
||
|
type ContractTransactor struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
||
|
type ContractFilterer struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// ContractSession is an auto generated Go binding around an Ethereum contract,
|
||
|
// with pre-set call and transact options.
|
||
|
type ContractSession struct {
|
||
|
Contract *Contract // 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
|
||
|
}
|
||
|
|
||
|
// ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
||
|
// with pre-set call options.
|
||
|
type ContractCallerSession struct {
|
||
|
Contract *ContractCaller // Generic contract caller binding to set the session for
|
||
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
||
|
// with pre-set transact options.
|
||
|
type ContractTransactorSession struct {
|
||
|
Contract *ContractTransactor // Generic contract transactor binding to set the session for
|
||
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// ContractRaw is an auto generated low-level Go binding around an Ethereum contract.
|
||
|
type ContractRaw struct {
|
||
|
Contract *Contract // Generic contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
||
|
type ContractCallerRaw struct {
|
||
|
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
||
|
type ContractTransactorRaw struct {
|
||
|
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// NewContract creates a new instance of Contract, bound to a specific deployed contract.
|
||
|
func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error) {
|
||
|
contract, err := bindContract(address, backend, backend, backend)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Contract{ContractCaller: ContractCaller{contract: contract}, ContractTransactor: ContractTransactor{contract: contract}, ContractFilterer: ContractFilterer{contract: contract}}, nil
|
||
|
}
|
||
|
|
||
|
// NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.
|
||
|
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error) {
|
||
|
contract, err := bindContract(address, caller, nil, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractCaller{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.
|
||
|
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error) {
|
||
|
contract, err := bindContract(address, nil, transactor, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractTransactor{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.
|
||
|
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error) {
|
||
|
contract, err := bindContract(address, nil, nil, filterer)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractFilterer{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// bindContract binds a generic wrapper to an already deployed contract.
|
||
|
func bindContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
||
|
parsed, err := abi.JSON(strings.NewReader(ContractABI))
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
|
||
|
}
|
||
|
|
||
|
// 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 (_Contract *ContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
||
|
return _Contract.Contract.ContractCaller.contract.Call(opts, result, method, params...)
|
||
|
}
|
||
|
|
||
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||
|
// its default method if one is available.
|
||
|
func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.ContractTransactor.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.ContractTransactor.contract.Transact(opts, method, params...)
|
||
|
}
|
||
|
|
||
|
// 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 (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
|
||
|
return _Contract.Contract.contract.Call(opts, result, method, params...)
|
||
|
}
|
||
|
|
||
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||
|
// its default method if one is available.
|
||
|
func (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.contract.Transact(opts, method, params...)
|
||
|
}
|
||
|
|
||
|
// ABI is a free data retrieval call binding the contract method 0x2203ab56.
|
||
|
//
|
||
|
// Solidity: function ABI(bytes32 node, uint256 contentTypes) constant returns(uint256, bytes)
|
||
|
func (_Contract *ContractCaller) ABI(opts *bind.CallOpts, node [32]byte, contentTypes *big.Int) (*big.Int, []byte, error) {
|
||
|
var (
|
||
|
ret0 = new(*big.Int)
|
||
|
ret1 = new([]byte)
|
||
|
)
|
||
|
out := &[]interface{}{
|
||
|
ret0,
|
||
|
ret1,
|
||
|
}
|
||
|
err := _Contract.contract.Call(opts, out, "ABI", node, contentTypes)
|
||
|
return *ret0, *ret1, err
|
||
|
}
|
||
|
|
||
|
// ABI is a free data retrieval call binding the contract method 0x2203ab56.
|
||
|
//
|
||
|
// Solidity: function ABI(bytes32 node, uint256 contentTypes) constant returns(uint256, bytes)
|
||
|
func (_Contract *ContractSession) ABI(node [32]byte, contentTypes *big.Int) (*big.Int, []byte, error) {
|
||
|
return _Contract.Contract.ABI(&_Contract.CallOpts, node, contentTypes)
|
||
|
}
|
||
|
|
||
|
// ABI is a free data retrieval call binding the contract method 0x2203ab56.
|
||
|
//
|
||
|
// Solidity: function ABI(bytes32 node, uint256 contentTypes) constant returns(uint256, bytes)
|
||
|
func (_Contract *ContractCallerSession) ABI(node [32]byte, contentTypes *big.Int) (*big.Int, []byte, error) {
|
||
|
return _Contract.Contract.ABI(&_Contract.CallOpts, node, contentTypes)
|
||
|
}
|
||
|
|
||
|
// Addr is a free data retrieval call binding the contract method 0x3b3b57de.
|
||
|
//
|
||
|
// Solidity: function addr(bytes32 node) constant returns(address)
|
||
|
func (_Contract *ContractCaller) Addr(opts *bind.CallOpts, node [32]byte) (common.Address, error) {
|
||
|
var (
|
||
|
ret0 = new(common.Address)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "addr", node)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// Addr is a free data retrieval call binding the contract method 0x3b3b57de.
|
||
|
//
|
||
|
// Solidity: function addr(bytes32 node) constant returns(address)
|
||
|
func (_Contract *ContractSession) Addr(node [32]byte) (common.Address, error) {
|
||
|
return _Contract.Contract.Addr(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Addr is a free data retrieval call binding the contract method 0x3b3b57de.
|
||
|
//
|
||
|
// Solidity: function addr(bytes32 node) constant returns(address)
|
||
|
func (_Contract *ContractCallerSession) Addr(node [32]byte) (common.Address, error) {
|
||
|
return _Contract.Contract.Addr(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Authorisations is a free data retrieval call binding the contract method 0xf86bc879.
|
||
|
//
|
||
|
// Solidity: function authorisations(bytes32 , address , address ) constant returns(bool)
|
||
|
func (_Contract *ContractCaller) Authorisations(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address, arg2 common.Address) (bool, error) {
|
||
|
var (
|
||
|
ret0 = new(bool)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "authorisations", arg0, arg1, arg2)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// Authorisations is a free data retrieval call binding the contract method 0xf86bc879.
|
||
|
//
|
||
|
// Solidity: function authorisations(bytes32 , address , address ) constant returns(bool)
|
||
|
func (_Contract *ContractSession) Authorisations(arg0 [32]byte, arg1 common.Address, arg2 common.Address) (bool, error) {
|
||
|
return _Contract.Contract.Authorisations(&_Contract.CallOpts, arg0, arg1, arg2)
|
||
|
}
|
||
|
|
||
|
// Authorisations is a free data retrieval call binding the contract method 0xf86bc879.
|
||
|
//
|
||
|
// Solidity: function authorisations(bytes32 , address , address ) constant returns(bool)
|
||
|
func (_Contract *ContractCallerSession) Authorisations(arg0 [32]byte, arg1 common.Address, arg2 common.Address) (bool, error) {
|
||
|
return _Contract.Contract.Authorisations(&_Contract.CallOpts, arg0, arg1, arg2)
|
||
|
}
|
||
|
|
||
|
// Contenthash is a free data retrieval call binding the contract method 0xbc1c58d1.
|
||
|
//
|
||
|
// Solidity: function contenthash(bytes32 node) constant returns(bytes)
|
||
|
func (_Contract *ContractCaller) Contenthash(opts *bind.CallOpts, node [32]byte) ([]byte, error) {
|
||
|
var (
|
||
|
ret0 = new([]byte)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "contenthash", node)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// Contenthash is a free data retrieval call binding the contract method 0xbc1c58d1.
|
||
|
//
|
||
|
// Solidity: function contenthash(bytes32 node) constant returns(bytes)
|
||
|
func (_Contract *ContractSession) Contenthash(node [32]byte) ([]byte, error) {
|
||
|
return _Contract.Contract.Contenthash(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Contenthash is a free data retrieval call binding the contract method 0xbc1c58d1.
|
||
|
//
|
||
|
// Solidity: function contenthash(bytes32 node) constant returns(bytes)
|
||
|
func (_Contract *ContractCallerSession) Contenthash(node [32]byte) ([]byte, error) {
|
||
|
return _Contract.Contract.Contenthash(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// InterfaceImplementer is a free data retrieval call binding the contract method 0x124a319c.
|
||
|
//
|
||
|
// Solidity: function interfaceImplementer(bytes32 node, bytes4 interfaceID) constant returns(address)
|
||
|
func (_Contract *ContractCaller) InterfaceImplementer(opts *bind.CallOpts, node [32]byte, interfaceID [4]byte) (common.Address, error) {
|
||
|
var (
|
||
|
ret0 = new(common.Address)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "interfaceImplementer", node, interfaceID)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// InterfaceImplementer is a free data retrieval call binding the contract method 0x124a319c.
|
||
|
//
|
||
|
// Solidity: function interfaceImplementer(bytes32 node, bytes4 interfaceID) constant returns(address)
|
||
|
func (_Contract *ContractSession) InterfaceImplementer(node [32]byte, interfaceID [4]byte) (common.Address, error) {
|
||
|
return _Contract.Contract.InterfaceImplementer(&_Contract.CallOpts, node, interfaceID)
|
||
|
}
|
||
|
|
||
|
// InterfaceImplementer is a free data retrieval call binding the contract method 0x124a319c.
|
||
|
//
|
||
|
// Solidity: function interfaceImplementer(bytes32 node, bytes4 interfaceID) constant returns(address)
|
||
|
func (_Contract *ContractCallerSession) InterfaceImplementer(node [32]byte, interfaceID [4]byte) (common.Address, error) {
|
||
|
return _Contract.Contract.InterfaceImplementer(&_Contract.CallOpts, node, interfaceID)
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x691f3431.
|
||
|
//
|
||
|
// Solidity: function name(bytes32 node) constant returns(string)
|
||
|
func (_Contract *ContractCaller) Name(opts *bind.CallOpts, node [32]byte) (string, error) {
|
||
|
var (
|
||
|
ret0 = new(string)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "name", node)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x691f3431.
|
||
|
//
|
||
|
// Solidity: function name(bytes32 node) constant returns(string)
|
||
|
func (_Contract *ContractSession) Name(node [32]byte) (string, error) {
|
||
|
return _Contract.Contract.Name(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x691f3431.
|
||
|
//
|
||
|
// Solidity: function name(bytes32 node) constant returns(string)
|
||
|
func (_Contract *ContractCallerSession) Name(node [32]byte) (string, error) {
|
||
|
return _Contract.Contract.Name(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Pubkey is a free data retrieval call binding the contract method 0xc8690233.
|
||
|
//
|
||
|
// Solidity: function pubkey(bytes32 node) constant returns(bytes32 x, bytes32 y)
|
||
|
func (_Contract *ContractCaller) Pubkey(opts *bind.CallOpts, node [32]byte) (struct {
|
||
|
X [32]byte
|
||
|
Y [32]byte
|
||
|
}, error) {
|
||
|
ret := new(struct {
|
||
|
X [32]byte
|
||
|
Y [32]byte
|
||
|
})
|
||
|
out := ret
|
||
|
err := _Contract.contract.Call(opts, out, "pubkey", node)
|
||
|
return *ret, err
|
||
|
}
|
||
|
|
||
|
// Pubkey is a free data retrieval call binding the contract method 0xc8690233.
|
||
|
//
|
||
|
// Solidity: function pubkey(bytes32 node) constant returns(bytes32 x, bytes32 y)
|
||
|
func (_Contract *ContractSession) Pubkey(node [32]byte) (struct {
|
||
|
X [32]byte
|
||
|
Y [32]byte
|
||
|
}, error) {
|
||
|
return _Contract.Contract.Pubkey(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// Pubkey is a free data retrieval call binding the contract method 0xc8690233.
|
||
|
//
|
||
|
// Solidity: function pubkey(bytes32 node) constant returns(bytes32 x, bytes32 y)
|
||
|
func (_Contract *ContractCallerSession) Pubkey(node [32]byte) (struct {
|
||
|
X [32]byte
|
||
|
Y [32]byte
|
||
|
}, error) {
|
||
|
return _Contract.Contract.Pubkey(&_Contract.CallOpts, node)
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceID) constant returns(bool)
|
||
|
func (_Contract *ContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error) {
|
||
|
var (
|
||
|
ret0 = new(bool)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "supportsInterface", interfaceID)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceID) constant returns(bool)
|
||
|
func (_Contract *ContractSession) SupportsInterface(interfaceID [4]byte) (bool, error) {
|
||
|
return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceID)
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceID) constant returns(bool)
|
||
|
func (_Contract *ContractCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error) {
|
||
|
return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceID)
|
||
|
}
|
||
|
|
||
|
// Text is a free data retrieval call binding the contract method 0x59d1d43c.
|
||
|
//
|
||
|
// Solidity: function text(bytes32 node, string key) constant returns(string)
|
||
|
func (_Contract *ContractCaller) Text(opts *bind.CallOpts, node [32]byte, key string) (string, error) {
|
||
|
var (
|
||
|
ret0 = new(string)
|
||
|
)
|
||
|
out := ret0
|
||
|
err := _Contract.contract.Call(opts, out, "text", node, key)
|
||
|
return *ret0, err
|
||
|
}
|
||
|
|
||
|
// Text is a free data retrieval call binding the contract method 0x59d1d43c.
|
||
|
//
|
||
|
// Solidity: function text(bytes32 node, string key) constant returns(string)
|
||
|
func (_Contract *ContractSession) Text(node [32]byte, key string) (string, error) {
|
||
|
return _Contract.Contract.Text(&_Contract.CallOpts, node, key)
|
||
|
}
|
||
|
|
||
|
// Text is a free data retrieval call binding the contract method 0x59d1d43c.
|
||
|
//
|
||
|
// Solidity: function text(bytes32 node, string key) constant returns(string)
|
||
|
func (_Contract *ContractCallerSession) Text(node [32]byte, key string) (string, error) {
|
||
|
return _Contract.Contract.Text(&_Contract.CallOpts, node, key)
|
||
|
}
|
||
|
|
||
|
// SetABI is a paid mutator transaction binding the contract method 0x623195b0.
|
||
|
//
|
||
|
// Solidity: function setABI(bytes32 node, uint256 contentType, bytes data) returns()
|
||
|
func (_Contract *ContractTransactor) SetABI(opts *bind.TransactOpts, node [32]byte, contentType *big.Int, data []byte) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setABI", node, contentType, data)
|
||
|
}
|
||
|
|
||
|
// SetABI is a paid mutator transaction binding the contract method 0x623195b0.
|
||
|
//
|
||
|
// Solidity: function setABI(bytes32 node, uint256 contentType, bytes data) returns()
|
||
|
func (_Contract *ContractSession) SetABI(node [32]byte, contentType *big.Int, data []byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetABI(&_Contract.TransactOpts, node, contentType, data)
|
||
|
}
|
||
|
|
||
|
// SetABI is a paid mutator transaction binding the contract method 0x623195b0.
|
||
|
//
|
||
|
// Solidity: function setABI(bytes32 node, uint256 contentType, bytes data) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetABI(node [32]byte, contentType *big.Int, data []byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetABI(&_Contract.TransactOpts, node, contentType, data)
|
||
|
}
|
||
|
|
||
|
// SetAddr is a paid mutator transaction binding the contract method 0xd5fa2b00.
|
||
|
//
|
||
|
// Solidity: function setAddr(bytes32 node, address addr) returns()
|
||
|
func (_Contract *ContractTransactor) SetAddr(opts *bind.TransactOpts, node [32]byte, addr common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setAddr", node, addr)
|
||
|
}
|
||
|
|
||
|
// SetAddr is a paid mutator transaction binding the contract method 0xd5fa2b00.
|
||
|
//
|
||
|
// Solidity: function setAddr(bytes32 node, address addr) returns()
|
||
|
func (_Contract *ContractSession) SetAddr(node [32]byte, addr common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetAddr(&_Contract.TransactOpts, node, addr)
|
||
|
}
|
||
|
|
||
|
// SetAddr is a paid mutator transaction binding the contract method 0xd5fa2b00.
|
||
|
//
|
||
|
// Solidity: function setAddr(bytes32 node, address addr) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetAddr(node [32]byte, addr common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetAddr(&_Contract.TransactOpts, node, addr)
|
||
|
}
|
||
|
|
||
|
// SetAuthorisation is a paid mutator transaction binding the contract method 0x3e9ce794.
|
||
|
//
|
||
|
// Solidity: function setAuthorisation(bytes32 node, address target, bool isAuthorised) returns()
|
||
|
func (_Contract *ContractTransactor) SetAuthorisation(opts *bind.TransactOpts, node [32]byte, target common.Address, isAuthorised bool) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setAuthorisation", node, target, isAuthorised)
|
||
|
}
|
||
|
|
||
|
// SetAuthorisation is a paid mutator transaction binding the contract method 0x3e9ce794.
|
||
|
//
|
||
|
// Solidity: function setAuthorisation(bytes32 node, address target, bool isAuthorised) returns()
|
||
|
func (_Contract *ContractSession) SetAuthorisation(node [32]byte, target common.Address, isAuthorised bool) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetAuthorisation(&_Contract.TransactOpts, node, target, isAuthorised)
|
||
|
}
|
||
|
|
||
|
// SetAuthorisation is a paid mutator transaction binding the contract method 0x3e9ce794.
|
||
|
//
|
||
|
// Solidity: function setAuthorisation(bytes32 node, address target, bool isAuthorised) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetAuthorisation(node [32]byte, target common.Address, isAuthorised bool) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetAuthorisation(&_Contract.TransactOpts, node, target, isAuthorised)
|
||
|
}
|
||
|
|
||
|
// SetContenthash is a paid mutator transaction binding the contract method 0x304e6ade.
|
||
|
//
|
||
|
// Solidity: function setContenthash(bytes32 node, bytes hash) returns()
|
||
|
func (_Contract *ContractTransactor) SetContenthash(opts *bind.TransactOpts, node [32]byte, hash []byte) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setContenthash", node, hash)
|
||
|
}
|
||
|
|
||
|
// SetContenthash is a paid mutator transaction binding the contract method 0x304e6ade.
|
||
|
//
|
||
|
// Solidity: function setContenthash(bytes32 node, bytes hash) returns()
|
||
|
func (_Contract *ContractSession) SetContenthash(node [32]byte, hash []byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetContenthash(&_Contract.TransactOpts, node, hash)
|
||
|
}
|
||
|
|
||
|
// SetContenthash is a paid mutator transaction binding the contract method 0x304e6ade.
|
||
|
//
|
||
|
// Solidity: function setContenthash(bytes32 node, bytes hash) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetContenthash(node [32]byte, hash []byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetContenthash(&_Contract.TransactOpts, node, hash)
|
||
|
}
|
||
|
|
||
|
// SetInterface is a paid mutator transaction binding the contract method 0xe59d895d.
|
||
|
//
|
||
|
// Solidity: function setInterface(bytes32 node, bytes4 interfaceID, address implementer) returns()
|
||
|
func (_Contract *ContractTransactor) SetInterface(opts *bind.TransactOpts, node [32]byte, interfaceID [4]byte, implementer common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setInterface", node, interfaceID, implementer)
|
||
|
}
|
||
|
|
||
|
// SetInterface is a paid mutator transaction binding the contract method 0xe59d895d.
|
||
|
//
|
||
|
// Solidity: function setInterface(bytes32 node, bytes4 interfaceID, address implementer) returns()
|
||
|
func (_Contract *ContractSession) SetInterface(node [32]byte, interfaceID [4]byte, implementer common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetInterface(&_Contract.TransactOpts, node, interfaceID, implementer)
|
||
|
}
|
||
|
|
||
|
// SetInterface is a paid mutator transaction binding the contract method 0xe59d895d.
|
||
|
//
|
||
|
// Solidity: function setInterface(bytes32 node, bytes4 interfaceID, address implementer) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetInterface(node [32]byte, interfaceID [4]byte, implementer common.Address) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetInterface(&_Contract.TransactOpts, node, interfaceID, implementer)
|
||
|
}
|
||
|
|
||
|
// SetName is a paid mutator transaction binding the contract method 0x77372213.
|
||
|
//
|
||
|
// Solidity: function setName(bytes32 node, string name) returns()
|
||
|
func (_Contract *ContractTransactor) SetName(opts *bind.TransactOpts, node [32]byte, name string) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setName", node, name)
|
||
|
}
|
||
|
|
||
|
// SetName is a paid mutator transaction binding the contract method 0x77372213.
|
||
|
//
|
||
|
// Solidity: function setName(bytes32 node, string name) returns()
|
||
|
func (_Contract *ContractSession) SetName(node [32]byte, name string) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetName(&_Contract.TransactOpts, node, name)
|
||
|
}
|
||
|
|
||
|
// SetName is a paid mutator transaction binding the contract method 0x77372213.
|
||
|
//
|
||
|
// Solidity: function setName(bytes32 node, string name) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetName(node [32]byte, name string) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetName(&_Contract.TransactOpts, node, name)
|
||
|
}
|
||
|
|
||
|
// SetPubkey is a paid mutator transaction binding the contract method 0x29cd62ea.
|
||
|
//
|
||
|
// Solidity: function setPubkey(bytes32 node, bytes32 x, bytes32 y) returns()
|
||
|
func (_Contract *ContractTransactor) SetPubkey(opts *bind.TransactOpts, node [32]byte, x [32]byte, y [32]byte) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setPubkey", node, x, y)
|
||
|
}
|
||
|
|
||
|
// SetPubkey is a paid mutator transaction binding the contract method 0x29cd62ea.
|
||
|
//
|
||
|
// Solidity: function setPubkey(bytes32 node, bytes32 x, bytes32 y) returns()
|
||
|
func (_Contract *ContractSession) SetPubkey(node [32]byte, x [32]byte, y [32]byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetPubkey(&_Contract.TransactOpts, node, x, y)
|
||
|
}
|
||
|
|
||
|
// SetPubkey is a paid mutator transaction binding the contract method 0x29cd62ea.
|
||
|
//
|
||
|
// Solidity: function setPubkey(bytes32 node, bytes32 x, bytes32 y) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetPubkey(node [32]byte, x [32]byte, y [32]byte) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetPubkey(&_Contract.TransactOpts, node, x, y)
|
||
|
}
|
||
|
|
||
|
// SetText is a paid mutator transaction binding the contract method 0x10f13a8c.
|
||
|
//
|
||
|
// Solidity: function setText(bytes32 node, string key, string value) returns()
|
||
|
func (_Contract *ContractTransactor) SetText(opts *bind.TransactOpts, node [32]byte, key string, value string) (*types.Transaction, error) {
|
||
|
return _Contract.contract.Transact(opts, "setText", node, key, value)
|
||
|
}
|
||
|
|
||
|
// SetText is a paid mutator transaction binding the contract method 0x10f13a8c.
|
||
|
//
|
||
|
// Solidity: function setText(bytes32 node, string key, string value) returns()
|
||
|
func (_Contract *ContractSession) SetText(node [32]byte, key string, value string) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetText(&_Contract.TransactOpts, node, key, value)
|
||
|
}
|
||
|
|
||
|
// SetText is a paid mutator transaction binding the contract method 0x10f13a8c.
|
||
|
//
|
||
|
// Solidity: function setText(bytes32 node, string key, string value) returns()
|
||
|
func (_Contract *ContractTransactorSession) SetText(node [32]byte, key string, value string) (*types.Transaction, error) {
|
||
|
return _Contract.Contract.SetText(&_Contract.TransactOpts, node, key, value)
|
||
|
}
|
||
|
|
||
|
// ContractABIChangedIterator is returned from FilterABIChanged and is used to iterate over the raw logs and unpacked data for ABIChanged events raised by the Contract contract.
|
||
|
type ContractABIChangedIterator struct {
|
||
|
Event *ContractABIChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractABIChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractABIChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractABIChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractABIChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractABIChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractABIChanged represents a ABIChanged event raised by the Contract contract.
|
||
|
type ContractABIChanged struct {
|
||
|
Node [32]byte
|
||
|
ContentType *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterABIChanged is a free log retrieval operation binding the contract event 0xaa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe3.
|
||
|
//
|
||
|
// Solidity: event ABIChanged(bytes32 indexed node, uint256 indexed contentType)
|
||
|
func (_Contract *ContractFilterer) FilterABIChanged(opts *bind.FilterOpts, node [][32]byte, contentType []*big.Int) (*ContractABIChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var contentTypeRule []interface{}
|
||
|
for _, contentTypeItem := range contentType {
|
||
|
contentTypeRule = append(contentTypeRule, contentTypeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "ABIChanged", nodeRule, contentTypeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractABIChangedIterator{contract: _Contract.contract, event: "ABIChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchABIChanged is a free log subscription operation binding the contract event 0xaa121bbeef5f32f5961a2a28966e769023910fc9479059ee3495d4c1a696efe3.
|
||
|
//
|
||
|
// Solidity: event ABIChanged(bytes32 indexed node, uint256 indexed contentType)
|
||
|
func (_Contract *ContractFilterer) WatchABIChanged(opts *bind.WatchOpts, sink chan<- *ContractABIChanged, node [][32]byte, contentType []*big.Int) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var contentTypeRule []interface{}
|
||
|
for _, contentTypeItem := range contentType {
|
||
|
contentTypeRule = append(contentTypeRule, contentTypeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "ABIChanged", nodeRule, contentTypeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractABIChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "ABIChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractAddrChangedIterator is returned from FilterAddrChanged and is used to iterate over the raw logs and unpacked data for AddrChanged events raised by the Contract contract.
|
||
|
type ContractAddrChangedIterator struct {
|
||
|
Event *ContractAddrChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractAddrChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractAddrChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractAddrChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractAddrChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractAddrChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractAddrChanged represents a AddrChanged event raised by the Contract contract.
|
||
|
type ContractAddrChanged struct {
|
||
|
Node [32]byte
|
||
|
A common.Address
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterAddrChanged is a free log retrieval operation binding the contract event 0x52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd2.
|
||
|
//
|
||
|
// Solidity: event AddrChanged(bytes32 indexed node, address a)
|
||
|
func (_Contract *ContractFilterer) FilterAddrChanged(opts *bind.FilterOpts, node [][32]byte) (*ContractAddrChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "AddrChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractAddrChangedIterator{contract: _Contract.contract, event: "AddrChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchAddrChanged is a free log subscription operation binding the contract event 0x52d7d861f09ab3d26239d492e8968629f95e9e318cf0b73bfddc441522a15fd2.
|
||
|
//
|
||
|
// Solidity: event AddrChanged(bytes32 indexed node, address a)
|
||
|
func (_Contract *ContractFilterer) WatchAddrChanged(opts *bind.WatchOpts, sink chan<- *ContractAddrChanged, node [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "AddrChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractAddrChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "AddrChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractAuthorisationChangedIterator is returned from FilterAuthorisationChanged and is used to iterate over the raw logs and unpacked data for AuthorisationChanged events raised by the Contract contract.
|
||
|
type ContractAuthorisationChangedIterator struct {
|
||
|
Event *ContractAuthorisationChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractAuthorisationChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractAuthorisationChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractAuthorisationChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractAuthorisationChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractAuthorisationChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractAuthorisationChanged represents a AuthorisationChanged event raised by the Contract contract.
|
||
|
type ContractAuthorisationChanged struct {
|
||
|
Node [32]byte
|
||
|
Owner common.Address
|
||
|
Target common.Address
|
||
|
IsAuthorised bool
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterAuthorisationChanged is a free log retrieval operation binding the contract event 0xe1c5610a6e0cbe10764ecd182adcef1ec338dc4e199c99c32ce98f38e12791df.
|
||
|
//
|
||
|
// Solidity: event AuthorisationChanged(bytes32 indexed node, address indexed owner, address indexed target, bool isAuthorised)
|
||
|
func (_Contract *ContractFilterer) FilterAuthorisationChanged(opts *bind.FilterOpts, node [][32]byte, owner []common.Address, target []common.Address) (*ContractAuthorisationChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var targetRule []interface{}
|
||
|
for _, targetItem := range target {
|
||
|
targetRule = append(targetRule, targetItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "AuthorisationChanged", nodeRule, ownerRule, targetRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractAuthorisationChangedIterator{contract: _Contract.contract, event: "AuthorisationChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchAuthorisationChanged is a free log subscription operation binding the contract event 0xe1c5610a6e0cbe10764ecd182adcef1ec338dc4e199c99c32ce98f38e12791df.
|
||
|
//
|
||
|
// Solidity: event AuthorisationChanged(bytes32 indexed node, address indexed owner, address indexed target, bool isAuthorised)
|
||
|
func (_Contract *ContractFilterer) WatchAuthorisationChanged(opts *bind.WatchOpts, sink chan<- *ContractAuthorisationChanged, node [][32]byte, owner []common.Address, target []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var targetRule []interface{}
|
||
|
for _, targetItem := range target {
|
||
|
targetRule = append(targetRule, targetItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "AuthorisationChanged", nodeRule, ownerRule, targetRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractAuthorisationChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "AuthorisationChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractContenthashChangedIterator is returned from FilterContenthashChanged and is used to iterate over the raw logs and unpacked data for ContenthashChanged events raised by the Contract contract.
|
||
|
type ContractContenthashChangedIterator struct {
|
||
|
Event *ContractContenthashChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractContenthashChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractContenthashChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractContenthashChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractContenthashChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractContenthashChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractContenthashChanged represents a ContenthashChanged event raised by the Contract contract.
|
||
|
type ContractContenthashChanged struct {
|
||
|
Node [32]byte
|
||
|
Hash []byte
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterContenthashChanged is a free log retrieval operation binding the contract event 0xe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d7578.
|
||
|
//
|
||
|
// Solidity: event ContenthashChanged(bytes32 indexed node, bytes hash)
|
||
|
func (_Contract *ContractFilterer) FilterContenthashChanged(opts *bind.FilterOpts, node [][32]byte) (*ContractContenthashChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "ContenthashChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractContenthashChangedIterator{contract: _Contract.contract, event: "ContenthashChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchContenthashChanged is a free log subscription operation binding the contract event 0xe379c1624ed7e714cc0937528a32359d69d5281337765313dba4e081b72d7578.
|
||
|
//
|
||
|
// Solidity: event ContenthashChanged(bytes32 indexed node, bytes hash)
|
||
|
func (_Contract *ContractFilterer) WatchContenthashChanged(opts *bind.WatchOpts, sink chan<- *ContractContenthashChanged, node [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "ContenthashChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractContenthashChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "ContenthashChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractInterfaceChangedIterator is returned from FilterInterfaceChanged and is used to iterate over the raw logs and unpacked data for InterfaceChanged events raised by the Contract contract.
|
||
|
type ContractInterfaceChangedIterator struct {
|
||
|
Event *ContractInterfaceChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractInterfaceChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractInterfaceChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractInterfaceChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractInterfaceChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractInterfaceChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractInterfaceChanged represents a InterfaceChanged event raised by the Contract contract.
|
||
|
type ContractInterfaceChanged struct {
|
||
|
Node [32]byte
|
||
|
InterfaceID [4]byte
|
||
|
Implementer common.Address
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterInterfaceChanged is a free log retrieval operation binding the contract event 0x7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa.
|
||
|
//
|
||
|
// Solidity: event InterfaceChanged(bytes32 indexed node, bytes4 indexed interfaceID, address implementer)
|
||
|
func (_Contract *ContractFilterer) FilterInterfaceChanged(opts *bind.FilterOpts, node [][32]byte, interfaceID [][4]byte) (*ContractInterfaceChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var interfaceIDRule []interface{}
|
||
|
for _, interfaceIDItem := range interfaceID {
|
||
|
interfaceIDRule = append(interfaceIDRule, interfaceIDItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "InterfaceChanged", nodeRule, interfaceIDRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractInterfaceChangedIterator{contract: _Contract.contract, event: "InterfaceChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchInterfaceChanged is a free log subscription operation binding the contract event 0x7c69f06bea0bdef565b709e93a147836b0063ba2dd89f02d0b7e8d931e6a6daa.
|
||
|
//
|
||
|
// Solidity: event InterfaceChanged(bytes32 indexed node, bytes4 indexed interfaceID, address implementer)
|
||
|
func (_Contract *ContractFilterer) WatchInterfaceChanged(opts *bind.WatchOpts, sink chan<- *ContractInterfaceChanged, node [][32]byte, interfaceID [][4]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
var interfaceIDRule []interface{}
|
||
|
for _, interfaceIDItem := range interfaceID {
|
||
|
interfaceIDRule = append(interfaceIDRule, interfaceIDItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "InterfaceChanged", nodeRule, interfaceIDRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractInterfaceChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "InterfaceChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractNameChangedIterator is returned from FilterNameChanged and is used to iterate over the raw logs and unpacked data for NameChanged events raised by the Contract contract.
|
||
|
type ContractNameChangedIterator struct {
|
||
|
Event *ContractNameChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractNameChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractNameChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractNameChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractNameChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractNameChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractNameChanged represents a NameChanged event raised by the Contract contract.
|
||
|
type ContractNameChanged struct {
|
||
|
Node [32]byte
|
||
|
Name string
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterNameChanged is a free log retrieval operation binding the contract event 0xb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7.
|
||
|
//
|
||
|
// Solidity: event NameChanged(bytes32 indexed node, string name)
|
||
|
func (_Contract *ContractFilterer) FilterNameChanged(opts *bind.FilterOpts, node [][32]byte) (*ContractNameChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "NameChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractNameChangedIterator{contract: _Contract.contract, event: "NameChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchNameChanged is a free log subscription operation binding the contract event 0xb7d29e911041e8d9b843369e890bcb72c9388692ba48b65ac54e7214c4c348f7.
|
||
|
//
|
||
|
// Solidity: event NameChanged(bytes32 indexed node, string name)
|
||
|
func (_Contract *ContractFilterer) WatchNameChanged(opts *bind.WatchOpts, sink chan<- *ContractNameChanged, node [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "NameChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractNameChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "NameChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractPubkeyChangedIterator is returned from FilterPubkeyChanged and is used to iterate over the raw logs and unpacked data for PubkeyChanged events raised by the Contract contract.
|
||
|
type ContractPubkeyChangedIterator struct {
|
||
|
Event *ContractPubkeyChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractPubkeyChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractPubkeyChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractPubkeyChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractPubkeyChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractPubkeyChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractPubkeyChanged represents a PubkeyChanged event raised by the Contract contract.
|
||
|
type ContractPubkeyChanged struct {
|
||
|
Node [32]byte
|
||
|
X [32]byte
|
||
|
Y [32]byte
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterPubkeyChanged is a free log retrieval operation binding the contract event 0x1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e46.
|
||
|
//
|
||
|
// Solidity: event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y)
|
||
|
func (_Contract *ContractFilterer) FilterPubkeyChanged(opts *bind.FilterOpts, node [][32]byte) (*ContractPubkeyChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "PubkeyChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractPubkeyChangedIterator{contract: _Contract.contract, event: "PubkeyChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchPubkeyChanged is a free log subscription operation binding the contract event 0x1d6f5e03d3f63eb58751986629a5439baee5079ff04f345becb66e23eb154e46.
|
||
|
//
|
||
|
// Solidity: event PubkeyChanged(bytes32 indexed node, bytes32 x, bytes32 y)
|
||
|
func (_Contract *ContractFilterer) WatchPubkeyChanged(opts *bind.WatchOpts, sink chan<- *ContractPubkeyChanged, node [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "PubkeyChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractPubkeyChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "PubkeyChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ContractTextChangedIterator is returned from FilterTextChanged and is used to iterate over the raw logs and unpacked data for TextChanged events raised by the Contract contract.
|
||
|
type ContractTextChangedIterator struct {
|
||
|
Event *ContractTextChanged // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// 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.
|
||
|
func (it *ContractTextChangedIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractTextChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(ContractTextChanged)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *ContractTextChangedIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *ContractTextChangedIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// ContractTextChanged represents a TextChanged event raised by the Contract contract.
|
||
|
type ContractTextChanged struct {
|
||
|
Node [32]byte
|
||
|
IndexedKey string
|
||
|
Key string
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTextChanged is a free log retrieval operation binding the contract event 0xd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550.
|
||
|
//
|
||
|
// Solidity: event TextChanged(bytes32 indexed node, string indexedKey, string key)
|
||
|
func (_Contract *ContractFilterer) FilterTextChanged(opts *bind.FilterOpts, node [][32]byte) (*ContractTextChangedIterator, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.FilterLogs(opts, "TextChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &ContractTextChangedIterator{contract: _Contract.contract, event: "TextChanged", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTextChanged is a free log subscription operation binding the contract event 0xd8c9334b1a9c2f9da342a0a2b32629c1a229b6445dad78947f674b44444a7550.
|
||
|
//
|
||
|
// Solidity: event TextChanged(bytes32 indexed node, string indexedKey, string key)
|
||
|
func (_Contract *ContractFilterer) WatchTextChanged(opts *bind.WatchOpts, sink chan<- *ContractTextChanged, node [][32]byte) (event.Subscription, error) {
|
||
|
|
||
|
var nodeRule []interface{}
|
||
|
for _, nodeItem := range node {
|
||
|
nodeRule = append(nodeRule, nodeItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Contract.contract.WatchLogs(opts, "TextChanged", nodeRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(ContractTextChanged)
|
||
|
if err := _Contract.contract.UnpackLog(event, "TextChanged", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|