router

package
v0.19.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RouterABI = RouterMetaData.ABI

RouterABI is the input ABI used to generate the binding from. Deprecated: Use RouterMetaData.ABI instead.

View Source
var RouterMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"dapp\",\"type\":\"address\"}],\"name\":\"DappBound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"DappUnbound\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_dapp\",\"type\":\"address\"}],\"name\":\"bindDapp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"dapp\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contractITaskManager\",\"name\":\"_taskManager\",\"type\":\"address\"},{\"internalType\":\"contractIProverStore\",\"name\":\"_proverStore\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_projectStore\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"projectStore\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"proverStore\",\"outputs\":[{\"internalType\":\"contractIProverStore\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"_taskId\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"_prover\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_deviceId\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"route\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"taskManager\",\"outputs\":[{\"internalType\":\"contractITaskManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"}],\"name\":\"unbindDapp\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

RouterMetaData contains all meta data concerning the Router contract.

Functions

This section is empty.

Types

type Router

type Router struct {
	RouterCaller     // Read-only binding to the contract
	RouterTransactor // Write-only binding to the contract
	RouterFilterer   // Log filterer for contract events
}

Router is an auto generated Go binding around an Ethereum contract.

func NewRouter

func NewRouter(address common.Address, backend bind.ContractBackend) (*Router, error)

NewRouter creates a new instance of Router, bound to a specific deployed contract.

type RouterCaller

type RouterCaller struct {
	// contains filtered or unexported fields
}

RouterCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewRouterCaller

func NewRouterCaller(address common.Address, caller bind.ContractCaller) (*RouterCaller, error)

NewRouterCaller creates a new read-only instance of Router, bound to a specific deployed contract.

func (*RouterCaller) Dapp

func (_Router *RouterCaller) Dapp(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error)

Dapp is a free data retrieval call binding the contract method 0x1bf8131f.

Solidity: function dapp(uint256 ) view returns(address)

func (*RouterCaller) ProjectStore

func (_Router *RouterCaller) ProjectStore(opts *bind.CallOpts) (common.Address, error)

ProjectStore is a free data retrieval call binding the contract method 0xa0fadaaa.

Solidity: function projectStore() view returns(address)

func (*RouterCaller) ProverStore added in v0.19.0

func (_Router *RouterCaller) ProverStore(opts *bind.CallOpts) (common.Address, error)

ProverStore is a free data retrieval call binding the contract method 0x79b851f6.

Solidity: function proverStore() view returns(address)

func (*RouterCaller) TaskManager added in v0.17.5

func (_Router *RouterCaller) TaskManager(opts *bind.CallOpts) (common.Address, error)

TaskManager is a free data retrieval call binding the contract method 0xa50a640e.

Solidity: function taskManager() view returns(address)

type RouterCallerRaw

type RouterCallerRaw struct {
	Contract *RouterCaller // Generic read-only contract binding to access the raw methods on
}

RouterCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*RouterCallerRaw) Call

func (_Router *RouterCallerRaw) 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 RouterCallerSession

type RouterCallerSession struct {
	Contract *RouterCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts // Call options to use throughout this session
}

RouterCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*RouterCallerSession) Dapp

func (_Router *RouterCallerSession) Dapp(arg0 *big.Int) (common.Address, error)

Dapp is a free data retrieval call binding the contract method 0x1bf8131f.

Solidity: function dapp(uint256 ) view returns(address)

func (*RouterCallerSession) ProjectStore

func (_Router *RouterCallerSession) ProjectStore() (common.Address, error)

ProjectStore is a free data retrieval call binding the contract method 0xa0fadaaa.

Solidity: function projectStore() view returns(address)

func (*RouterCallerSession) ProverStore added in v0.19.0

func (_Router *RouterCallerSession) ProverStore() (common.Address, error)

ProverStore is a free data retrieval call binding the contract method 0x79b851f6.

Solidity: function proverStore() view returns(address)

func (*RouterCallerSession) TaskManager added in v0.17.5

func (_Router *RouterCallerSession) TaskManager() (common.Address, error)

TaskManager is a free data retrieval call binding the contract method 0xa50a640e.

Solidity: function taskManager() view returns(address)

type RouterDappBound

type RouterDappBound struct {
	ProjectId *big.Int
	Operator  common.Address
	Dapp      common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

RouterDappBound represents a DappBound event raised by the Router contract.

type RouterDappBoundIterator

type RouterDappBoundIterator struct {
	Event *RouterDappBound // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RouterDappBoundIterator is returned from FilterDappBound and is used to iterate over the raw logs and unpacked data for DappBound events raised by the Router contract.

func (*RouterDappBoundIterator) Close

func (it *RouterDappBoundIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RouterDappBoundIterator) Error

func (it *RouterDappBoundIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterDappBoundIterator) Next

func (it *RouterDappBoundIterator) 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 RouterDappUnbound

type RouterDappUnbound struct {
	ProjectId *big.Int
	Operator  common.Address
	Raw       types.Log // Blockchain specific contextual infos
}

RouterDappUnbound represents a DappUnbound event raised by the Router contract.

type RouterDappUnboundIterator

type RouterDappUnboundIterator struct {
	Event *RouterDappUnbound // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RouterDappUnboundIterator is returned from FilterDappUnbound and is used to iterate over the raw logs and unpacked data for DappUnbound events raised by the Router contract.

func (*RouterDappUnboundIterator) Close

func (it *RouterDappUnboundIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RouterDappUnboundIterator) Error

func (it *RouterDappUnboundIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterDappUnboundIterator) Next

func (it *RouterDappUnboundIterator) 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 RouterFilterer

type RouterFilterer struct {
	// contains filtered or unexported fields
}

RouterFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewRouterFilterer

func NewRouterFilterer(address common.Address, filterer bind.ContractFilterer) (*RouterFilterer, error)

NewRouterFilterer creates a new log filterer instance of Router, bound to a specific deployed contract.

func (*RouterFilterer) FilterDappBound

func (_Router *RouterFilterer) FilterDappBound(opts *bind.FilterOpts, projectId []*big.Int, operator []common.Address) (*RouterDappBoundIterator, error)

FilterDappBound is a free log retrieval operation binding the contract event 0xf121fc55c0fd19e108d2d5642aff2967949fb708d9b985093c530a8a1fb97778.

Solidity: event DappBound(uint256 indexed projectId, address indexed operator, address dapp)

func (*RouterFilterer) FilterDappUnbound

func (_Router *RouterFilterer) FilterDappUnbound(opts *bind.FilterOpts, projectId []*big.Int, operator []common.Address) (*RouterDappUnboundIterator, error)

FilterDappUnbound is a free log retrieval operation binding the contract event 0x7019ee8601397d5c4fe244404e2428a9c0b0a4d8679186133186cc01376ee9f1.

Solidity: event DappUnbound(uint256 indexed projectId, address indexed operator)

func (*RouterFilterer) FilterInitialized

func (_Router *RouterFilterer) FilterInitialized(opts *bind.FilterOpts) (*RouterInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RouterFilterer) ParseDappBound

func (_Router *RouterFilterer) ParseDappBound(log types.Log) (*RouterDappBound, error)

ParseDappBound is a log parse operation binding the contract event 0xf121fc55c0fd19e108d2d5642aff2967949fb708d9b985093c530a8a1fb97778.

Solidity: event DappBound(uint256 indexed projectId, address indexed operator, address dapp)

func (*RouterFilterer) ParseDappUnbound

func (_Router *RouterFilterer) ParseDappUnbound(log types.Log) (*RouterDappUnbound, error)

ParseDappUnbound is a log parse operation binding the contract event 0x7019ee8601397d5c4fe244404e2428a9c0b0a4d8679186133186cc01376ee9f1.

Solidity: event DappUnbound(uint256 indexed projectId, address indexed operator)

func (*RouterFilterer) ParseInitialized

func (_Router *RouterFilterer) ParseInitialized(log types.Log) (*RouterInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*RouterFilterer) WatchDappBound

func (_Router *RouterFilterer) WatchDappBound(opts *bind.WatchOpts, sink chan<- *RouterDappBound, projectId []*big.Int, operator []common.Address) (event.Subscription, error)

WatchDappBound is a free log subscription operation binding the contract event 0xf121fc55c0fd19e108d2d5642aff2967949fb708d9b985093c530a8a1fb97778.

Solidity: event DappBound(uint256 indexed projectId, address indexed operator, address dapp)

func (*RouterFilterer) WatchDappUnbound

func (_Router *RouterFilterer) WatchDappUnbound(opts *bind.WatchOpts, sink chan<- *RouterDappUnbound, projectId []*big.Int, operator []common.Address) (event.Subscription, error)

WatchDappUnbound is a free log subscription operation binding the contract event 0x7019ee8601397d5c4fe244404e2428a9c0b0a4d8679186133186cc01376ee9f1.

Solidity: event DappUnbound(uint256 indexed projectId, address indexed operator)

func (*RouterFilterer) WatchInitialized

func (_Router *RouterFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *RouterInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

type RouterInitialized

type RouterInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

RouterInitialized represents a Initialized event raised by the Router contract.

type RouterInitializedIterator

type RouterInitializedIterator struct {
	Event *RouterInitialized // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

RouterInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Router contract.

func (*RouterInitializedIterator) Close

func (it *RouterInitializedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*RouterInitializedIterator) Error

func (it *RouterInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*RouterInitializedIterator) Next

func (it *RouterInitializedIterator) 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 RouterRaw

type RouterRaw struct {
	Contract *Router // Generic contract binding to access the raw methods on
}

RouterRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*RouterRaw) Call

func (_Router *RouterRaw) 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 (*RouterRaw) Transact

func (_Router *RouterRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RouterRaw) Transfer

func (_Router *RouterRaw) 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 RouterSession

type RouterSession struct {
	Contract     *Router           // 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
}

RouterSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*RouterSession) BindDapp

func (_Router *RouterSession) BindDapp(_projectId *big.Int, _dapp common.Address) (*types.Transaction, error)

BindDapp is a paid mutator transaction binding the contract method 0x85a7d275.

Solidity: function bindDapp(uint256 _projectId, address _dapp) returns()

func (*RouterSession) Dapp

func (_Router *RouterSession) Dapp(arg0 *big.Int) (common.Address, error)

Dapp is a free data retrieval call binding the contract method 0x1bf8131f.

Solidity: function dapp(uint256 ) view returns(address)

func (*RouterSession) Initialize

func (_Router *RouterSession) Initialize(_taskManager common.Address, _proverStore common.Address, _projectStore common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address _taskManager, address _proverStore, address _projectStore) returns()

func (*RouterSession) ProjectStore

func (_Router *RouterSession) ProjectStore() (common.Address, error)

ProjectStore is a free data retrieval call binding the contract method 0xa0fadaaa.

Solidity: function projectStore() view returns(address)

func (*RouterSession) ProverStore added in v0.19.0

func (_Router *RouterSession) ProverStore() (common.Address, error)

ProverStore is a free data retrieval call binding the contract method 0x79b851f6.

Solidity: function proverStore() view returns(address)

func (*RouterSession) Route

func (_Router *RouterSession) Route(_projectId *big.Int, _taskId [32]byte, _prover common.Address, _deviceId common.Address, _data []byte) (*types.Transaction, error)

Route is a paid mutator transaction binding the contract method 0xb72ae9d9.

Solidity: function route(uint256 _projectId, bytes32 _taskId, address _prover, address _deviceId, bytes _data) returns()

func (*RouterSession) TaskManager added in v0.17.5

func (_Router *RouterSession) TaskManager() (common.Address, error)

TaskManager is a free data retrieval call binding the contract method 0xa50a640e.

Solidity: function taskManager() view returns(address)

func (*RouterSession) UnbindDapp

func (_Router *RouterSession) UnbindDapp(_projectId *big.Int) (*types.Transaction, error)

UnbindDapp is a paid mutator transaction binding the contract method 0xd869758c.

Solidity: function unbindDapp(uint256 _projectId) returns()

type RouterTransactor

type RouterTransactor struct {
	// contains filtered or unexported fields
}

RouterTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewRouterTransactor

func NewRouterTransactor(address common.Address, transactor bind.ContractTransactor) (*RouterTransactor, error)

NewRouterTransactor creates a new write-only instance of Router, bound to a specific deployed contract.

func (*RouterTransactor) BindDapp

func (_Router *RouterTransactor) BindDapp(opts *bind.TransactOpts, _projectId *big.Int, _dapp common.Address) (*types.Transaction, error)

BindDapp is a paid mutator transaction binding the contract method 0x85a7d275.

Solidity: function bindDapp(uint256 _projectId, address _dapp) returns()

func (*RouterTransactor) Initialize

func (_Router *RouterTransactor) Initialize(opts *bind.TransactOpts, _taskManager common.Address, _proverStore common.Address, _projectStore common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address _taskManager, address _proverStore, address _projectStore) returns()

func (*RouterTransactor) Route

func (_Router *RouterTransactor) Route(opts *bind.TransactOpts, _projectId *big.Int, _taskId [32]byte, _prover common.Address, _deviceId common.Address, _data []byte) (*types.Transaction, error)

Route is a paid mutator transaction binding the contract method 0xb72ae9d9.

Solidity: function route(uint256 _projectId, bytes32 _taskId, address _prover, address _deviceId, bytes _data) returns()

func (*RouterTransactor) UnbindDapp

func (_Router *RouterTransactor) UnbindDapp(opts *bind.TransactOpts, _projectId *big.Int) (*types.Transaction, error)

UnbindDapp is a paid mutator transaction binding the contract method 0xd869758c.

Solidity: function unbindDapp(uint256 _projectId) returns()

type RouterTransactorRaw

type RouterTransactorRaw struct {
	Contract *RouterTransactor // Generic write-only contract binding to access the raw methods on
}

RouterTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*RouterTransactorRaw) Transact

func (_Router *RouterTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*RouterTransactorRaw) Transfer

func (_Router *RouterTransactorRaw) 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 RouterTransactorSession

type RouterTransactorSession struct {
	Contract     *RouterTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

RouterTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*RouterTransactorSession) BindDapp

func (_Router *RouterTransactorSession) BindDapp(_projectId *big.Int, _dapp common.Address) (*types.Transaction, error)

BindDapp is a paid mutator transaction binding the contract method 0x85a7d275.

Solidity: function bindDapp(uint256 _projectId, address _dapp) returns()

func (*RouterTransactorSession) Initialize

func (_Router *RouterTransactorSession) Initialize(_taskManager common.Address, _proverStore common.Address, _projectStore common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0xc0c53b8b.

Solidity: function initialize(address _taskManager, address _proverStore, address _projectStore) returns()

func (*RouterTransactorSession) Route

func (_Router *RouterTransactorSession) Route(_projectId *big.Int, _taskId [32]byte, _prover common.Address, _deviceId common.Address, _data []byte) (*types.Transaction, error)

Route is a paid mutator transaction binding the contract method 0xb72ae9d9.

Solidity: function route(uint256 _projectId, bytes32 _taskId, address _prover, address _deviceId, bytes _data) returns()

func (*RouterTransactorSession) UnbindDapp

func (_Router *RouterTransactorSession) UnbindDapp(_projectId *big.Int) (*types.Transaction, error)

UnbindDapp is a paid mutator transaction binding the contract method 0xd869758c.

Solidity: function unbindDapp(uint256 _projectId) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL