projectclient

package
v0.15.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectclientABI = ProjectclientMetaData.ABI

ProjectclientABI is the input ABI used to generate the binding from. Deprecated: Use ProjectclientMetaData.ABI instead.

View Source
var ProjectclientMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"device\",\"type\":\"address\"}],\"name\":\"Approve\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"projectId\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"device\",\"type\":\"address\"}],\"name\":\"Unapprove\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_devices\",\"type\":\"address[]\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_device\",\"type\":\"address\"}],\"name\":\"approved\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_ioIDRegistry\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_w3bstreamProject\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"ioIDRegistry\",\"outputs\":[{\"internalType\":\"contractIioIDRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_projectId\",\"type\":\"uint256\"},{\"internalType\":\"address[]\",\"name\":\"_devices\",\"type\":\"address[]\"}],\"name\":\"unapprove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"w3bstreamProject\",\"outputs\":[{\"internalType\":\"contractIW3bstreamProject\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}

ProjectclientMetaData contains all meta data concerning the Projectclient contract.

Functions

This section is empty.

Types

type Projectclient

type Projectclient struct {
	ProjectclientCaller     // Read-only binding to the contract
	ProjectclientTransactor // Write-only binding to the contract
	ProjectclientFilterer   // Log filterer for contract events
}

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

func NewProjectclient

func NewProjectclient(address common.Address, backend bind.ContractBackend) (*Projectclient, error)

NewProjectclient creates a new instance of Projectclient, bound to a specific deployed contract.

type ProjectclientApprove

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

ProjectclientApprove represents a Approve event raised by the Projectclient contract.

type ProjectclientApproveIterator

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

ProjectclientApproveIterator is returned from FilterApprove and is used to iterate over the raw logs and unpacked data for Approve events raised by the Projectclient contract.

func (*ProjectclientApproveIterator) Close

func (it *ProjectclientApproveIterator) Close() error

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

func (*ProjectclientApproveIterator) Error

func (it *ProjectclientApproveIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectclientApproveIterator) Next

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 ProjectclientCaller

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

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

func NewProjectclientCaller

func NewProjectclientCaller(address common.Address, caller bind.ContractCaller) (*ProjectclientCaller, error)

NewProjectclientCaller creates a new read-only instance of Projectclient, bound to a specific deployed contract.

func (*ProjectclientCaller) Approved

func (_Projectclient *ProjectclientCaller) Approved(opts *bind.CallOpts, _projectId *big.Int, _device common.Address) (bool, error)

Approved is a free data retrieval call binding the contract method 0x8253951a.

Solidity: function approved(uint256 _projectId, address _device) view returns(bool)

func (*ProjectclientCaller) IoIDRegistry

func (_Projectclient *ProjectclientCaller) IoIDRegistry(opts *bind.CallOpts) (common.Address, error)

IoIDRegistry is a free data retrieval call binding the contract method 0x95cc7086.

Solidity: function ioIDRegistry() view returns(address)

func (*ProjectclientCaller) W3bstreamProject

func (_Projectclient *ProjectclientCaller) W3bstreamProject(opts *bind.CallOpts) (common.Address, error)

W3bstreamProject is a free data retrieval call binding the contract method 0x561f1fc4.

Solidity: function w3bstreamProject() view returns(address)

type ProjectclientCallerRaw

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

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

func (*ProjectclientCallerRaw) Call

func (_Projectclient *ProjectclientCallerRaw) 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 ProjectclientCallerSession

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

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

func (*ProjectclientCallerSession) Approved

func (_Projectclient *ProjectclientCallerSession) Approved(_projectId *big.Int, _device common.Address) (bool, error)

Approved is a free data retrieval call binding the contract method 0x8253951a.

Solidity: function approved(uint256 _projectId, address _device) view returns(bool)

func (*ProjectclientCallerSession) IoIDRegistry

func (_Projectclient *ProjectclientCallerSession) IoIDRegistry() (common.Address, error)

IoIDRegistry is a free data retrieval call binding the contract method 0x95cc7086.

Solidity: function ioIDRegistry() view returns(address)

func (*ProjectclientCallerSession) W3bstreamProject

func (_Projectclient *ProjectclientCallerSession) W3bstreamProject() (common.Address, error)

W3bstreamProject is a free data retrieval call binding the contract method 0x561f1fc4.

Solidity: function w3bstreamProject() view returns(address)

type ProjectclientFilterer

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

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

func NewProjectclientFilterer

func NewProjectclientFilterer(address common.Address, filterer bind.ContractFilterer) (*ProjectclientFilterer, error)

NewProjectclientFilterer creates a new log filterer instance of Projectclient, bound to a specific deployed contract.

func (*ProjectclientFilterer) FilterApprove

func (_Projectclient *ProjectclientFilterer) FilterApprove(opts *bind.FilterOpts, device []common.Address) (*ProjectclientApproveIterator, error)

FilterApprove is a free log retrieval operation binding the contract event 0x47ad3e4b0f4bdbe3ac08708bbc45053d2ff616911b39e65563fd9bd781909645.

Solidity: event Approve(uint256 projectId, address indexed device)

func (*ProjectclientFilterer) FilterInitialized

func (_Projectclient *ProjectclientFilterer) FilterInitialized(opts *bind.FilterOpts) (*ProjectclientInitializedIterator, error)

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

Solidity: event Initialized(uint64 version)

func (*ProjectclientFilterer) FilterUnapprove

func (_Projectclient *ProjectclientFilterer) FilterUnapprove(opts *bind.FilterOpts, device []common.Address) (*ProjectclientUnapproveIterator, error)

FilterUnapprove is a free log retrieval operation binding the contract event 0x958e4c39d74f2f6ff958f2ff19d4cf29448476d9e44e9aab9547f7e30d4cc86b.

Solidity: event Unapprove(uint256 projectId, address indexed device)

func (*ProjectclientFilterer) ParseApprove

func (_Projectclient *ProjectclientFilterer) ParseApprove(log types.Log) (*ProjectclientApprove, error)

ParseApprove is a log parse operation binding the contract event 0x47ad3e4b0f4bdbe3ac08708bbc45053d2ff616911b39e65563fd9bd781909645.

Solidity: event Approve(uint256 projectId, address indexed device)

func (*ProjectclientFilterer) ParseInitialized

func (_Projectclient *ProjectclientFilterer) ParseInitialized(log types.Log) (*ProjectclientInitialized, error)

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

Solidity: event Initialized(uint64 version)

func (*ProjectclientFilterer) ParseUnapprove

func (_Projectclient *ProjectclientFilterer) ParseUnapprove(log types.Log) (*ProjectclientUnapprove, error)

ParseUnapprove is a log parse operation binding the contract event 0x958e4c39d74f2f6ff958f2ff19d4cf29448476d9e44e9aab9547f7e30d4cc86b.

Solidity: event Unapprove(uint256 projectId, address indexed device)

func (*ProjectclientFilterer) WatchApprove

func (_Projectclient *ProjectclientFilterer) WatchApprove(opts *bind.WatchOpts, sink chan<- *ProjectclientApprove, device []common.Address) (event.Subscription, error)

WatchApprove is a free log subscription operation binding the contract event 0x47ad3e4b0f4bdbe3ac08708bbc45053d2ff616911b39e65563fd9bd781909645.

Solidity: event Approve(uint256 projectId, address indexed device)

func (*ProjectclientFilterer) WatchInitialized

func (_Projectclient *ProjectclientFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *ProjectclientInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint64 version)

func (*ProjectclientFilterer) WatchUnapprove

func (_Projectclient *ProjectclientFilterer) WatchUnapprove(opts *bind.WatchOpts, sink chan<- *ProjectclientUnapprove, device []common.Address) (event.Subscription, error)

WatchUnapprove is a free log subscription operation binding the contract event 0x958e4c39d74f2f6ff958f2ff19d4cf29448476d9e44e9aab9547f7e30d4cc86b.

Solidity: event Unapprove(uint256 projectId, address indexed device)

type ProjectclientInitialized

type ProjectclientInitialized struct {
	Version uint64
	Raw     types.Log // Blockchain specific contextual infos
}

ProjectclientInitialized represents a Initialized event raised by the Projectclient contract.

type ProjectclientInitializedIterator

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

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

func (*ProjectclientInitializedIterator) Close

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

func (*ProjectclientInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectclientInitializedIterator) Next

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 ProjectclientRaw

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

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

func (*ProjectclientRaw) Call

func (_Projectclient *ProjectclientRaw) 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 (*ProjectclientRaw) Transact

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

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

func (*ProjectclientRaw) Transfer

func (_Projectclient *ProjectclientRaw) 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 ProjectclientSession

type ProjectclientSession struct {
	Contract     *Projectclient    // 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
}

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

func (*ProjectclientSession) Approve

func (_Projectclient *ProjectclientSession) Approve(_projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0xd744d8dc.

Solidity: function approve(uint256 _projectId, address[] _devices) returns()

func (*ProjectclientSession) Approved

func (_Projectclient *ProjectclientSession) Approved(_projectId *big.Int, _device common.Address) (bool, error)

Approved is a free data retrieval call binding the contract method 0x8253951a.

Solidity: function approved(uint256 _projectId, address _device) view returns(bool)

func (*ProjectclientSession) Initialize

func (_Projectclient *ProjectclientSession) Initialize(_ioIDRegistry common.Address, _w3bstreamProject common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _ioIDRegistry, address _w3bstreamProject) returns()

func (*ProjectclientSession) IoIDRegistry

func (_Projectclient *ProjectclientSession) IoIDRegistry() (common.Address, error)

IoIDRegistry is a free data retrieval call binding the contract method 0x95cc7086.

Solidity: function ioIDRegistry() view returns(address)

func (*ProjectclientSession) Unapprove

func (_Projectclient *ProjectclientSession) Unapprove(_projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfa6b352c.

Solidity: function unapprove(uint256 _projectId, address[] _devices) returns()

func (*ProjectclientSession) W3bstreamProject

func (_Projectclient *ProjectclientSession) W3bstreamProject() (common.Address, error)

W3bstreamProject is a free data retrieval call binding the contract method 0x561f1fc4.

Solidity: function w3bstreamProject() view returns(address)

type ProjectclientTransactor

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

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

func NewProjectclientTransactor

func NewProjectclientTransactor(address common.Address, transactor bind.ContractTransactor) (*ProjectclientTransactor, error)

NewProjectclientTransactor creates a new write-only instance of Projectclient, bound to a specific deployed contract.

func (*ProjectclientTransactor) Approve

func (_Projectclient *ProjectclientTransactor) Approve(opts *bind.TransactOpts, _projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0xd744d8dc.

Solidity: function approve(uint256 _projectId, address[] _devices) returns()

func (*ProjectclientTransactor) Initialize

func (_Projectclient *ProjectclientTransactor) Initialize(opts *bind.TransactOpts, _ioIDRegistry common.Address, _w3bstreamProject common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _ioIDRegistry, address _w3bstreamProject) returns()

func (*ProjectclientTransactor) Unapprove

func (_Projectclient *ProjectclientTransactor) Unapprove(opts *bind.TransactOpts, _projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfa6b352c.

Solidity: function unapprove(uint256 _projectId, address[] _devices) returns()

type ProjectclientTransactorRaw

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

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

func (*ProjectclientTransactorRaw) Transact

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

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

func (*ProjectclientTransactorRaw) Transfer

func (_Projectclient *ProjectclientTransactorRaw) 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 ProjectclientTransactorSession

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

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

func (*ProjectclientTransactorSession) Approve

func (_Projectclient *ProjectclientTransactorSession) Approve(_projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0xd744d8dc.

Solidity: function approve(uint256 _projectId, address[] _devices) returns()

func (*ProjectclientTransactorSession) Initialize

func (_Projectclient *ProjectclientTransactorSession) Initialize(_ioIDRegistry common.Address, _w3bstreamProject common.Address) (*types.Transaction, error)

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

Solidity: function initialize(address _ioIDRegistry, address _w3bstreamProject) returns()

func (*ProjectclientTransactorSession) Unapprove

func (_Projectclient *ProjectclientTransactorSession) Unapprove(_projectId *big.Int, _devices []common.Address) (*types.Transaction, error)

Unapprove is a paid mutator transaction binding the contract method 0xfa6b352c.

Solidity: function unapprove(uint256 _projectId, address[] _devices) returns()

type ProjectclientUnapprove

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

ProjectclientUnapprove represents a Unapprove event raised by the Projectclient contract.

type ProjectclientUnapproveIterator

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

ProjectclientUnapproveIterator is returned from FilterUnapprove and is used to iterate over the raw logs and unpacked data for Unapprove events raised by the Projectclient contract.

func (*ProjectclientUnapproveIterator) Close

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

func (*ProjectclientUnapproveIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*ProjectclientUnapproveIterator) Next

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.

Jump to

Keyboard shortcuts

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