Documentation ¶
Index ¶
- Constants
- Variables
- type Contract
- type ContractCaller
- type ContractCallerRaw
- type ContractCallerSession
- type ContractEventPublished
- type ContractEventPublishedIterator
- type ContractFilterer
- func (_Contract *ContractFilterer) FilterEventPublished(opts *bind.FilterOpts) (*ContractEventPublishedIterator, error)
- func (_Contract *ContractFilterer) ParseEventPublished(log types.Log) (*ContractEventPublished, error)
- func (_Contract *ContractFilterer) WatchEventPublished(opts *bind.WatchOpts, sink chan<- *ContractEventPublished) (event.Subscription, error)
- type ContractRaw
- func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ContractSession
- func (_Contract *ContractSession) GetEvents(topicId string, fromBlock *big.Int) ([]EventLogEvent, error)
- func (_Contract *ContractSession) GetTopics(account common.Address) ([]string, error)
- func (_Contract *ContractSession) PublishEvent(topicId string, id []byte, cid string, newAccounts []common.Address) (*types.Transaction, error)
- type ContractTransactor
- type ContractTransactorRaw
- type ContractTransactorSession
- type EventLogEvent
Constants ¶
const ContractABI = "" /* 1928-byte string literal not displayed */
ContractABI is the input ABI used to generate the binding from.
Variables ¶
var ContractBin = "" /* 19010-byte string literal not displayed */
ContractBin is the compiled bytecode used for deploying new contracts.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { ContractCaller // Read-only binding to the contract ContractTransactor // Write-only binding to the contract ContractFilterer // Log filterer for contract events }
Contract is an auto generated Go binding around an Ethereum contract.
func DeployContract ¶
func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Contract, error)
DeployContract deploys a new Ethereum contract, binding an instance of Contract to it.
func NewContract ¶
NewContract creates a new instance of Contract, bound to a specific deployed contract.
type ContractCaller ¶
type ContractCaller struct {
// contains filtered or unexported fields
}
ContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewContractCaller ¶
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error)
NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract.
func (*ContractCaller) GetEvents ¶
func (_Contract *ContractCaller) GetEvents(opts *bind.CallOpts, topicId string, fromBlock *big.Int) ([]EventLogEvent, error)
GetEvents is a free data retrieval call binding the contract method 0x63ab919d.
Solidity: function getEvents(string topicId, uint256 fromBlock) view returns((string,address[],address,uint256,uint256,bytes,bytes)[])
type ContractCallerRaw ¶
type ContractCallerRaw struct {
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on
}
ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ContractCallerRaw) Call ¶
func (_Contract *ContractCallerRaw) 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 ContractCallerSession ¶
type ContractCallerSession struct { Contract *ContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ContractCallerSession) GetEvents ¶
func (_Contract *ContractCallerSession) GetEvents(topicId string, fromBlock *big.Int) ([]EventLogEvent, error)
GetEvents is a free data retrieval call binding the contract method 0x63ab919d.
Solidity: function getEvents(string topicId, uint256 fromBlock) view returns((string,address[],address,uint256,uint256,bytes,bytes)[])
type ContractEventPublished ¶
type ContractEventPublished struct { TopicId string Id []byte Cid string NewAccounts []common.Address Raw types.Log // Blockchain specific contextual infos }
ContractEventPublished represents a EventPublished event raised by the Contract contract.
type ContractEventPublishedIterator ¶
type ContractEventPublishedIterator struct { Event *ContractEventPublished // Event containing the contract specifics and raw log // contains filtered or unexported fields }
ContractEventPublishedIterator is returned from FilterEventPublished and is used to iterate over the raw logs and unpacked data for EventPublished events raised by the Contract contract.
func (*ContractEventPublishedIterator) Close ¶
func (it *ContractEventPublishedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*ContractEventPublishedIterator) Error ¶
func (it *ContractEventPublishedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*ContractEventPublishedIterator) Next ¶
func (it *ContractEventPublishedIterator) 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 ContractFilterer ¶
type ContractFilterer struct {
// contains filtered or unexported fields
}
ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewContractFilterer ¶
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error)
NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract.
func (*ContractFilterer) FilterEventPublished ¶
func (_Contract *ContractFilterer) FilterEventPublished(opts *bind.FilterOpts) (*ContractEventPublishedIterator, error)
FilterEventPublished is a free log retrieval operation binding the contract event 0xbc285462bdca2ad65ad23ab3343b809e92ca2051ce3b33440b13833147aab8e7.
Solidity: event EventPublished(string topicId, bytes id, string cid, address[] newAccounts)
func (*ContractFilterer) ParseEventPublished ¶
func (_Contract *ContractFilterer) ParseEventPublished(log types.Log) (*ContractEventPublished, error)
ParseEventPublished is a log parse operation binding the contract event 0xbc285462bdca2ad65ad23ab3343b809e92ca2051ce3b33440b13833147aab8e7.
Solidity: event EventPublished(string topicId, bytes id, string cid, address[] newAccounts)
func (*ContractFilterer) WatchEventPublished ¶
func (_Contract *ContractFilterer) WatchEventPublished(opts *bind.WatchOpts, sink chan<- *ContractEventPublished) (event.Subscription, error)
WatchEventPublished is a free log subscription operation binding the contract event 0xbc285462bdca2ad65ad23ab3343b809e92ca2051ce3b33440b13833147aab8e7.
Solidity: event EventPublished(string topicId, bytes id, string cid, address[] newAccounts)
type ContractRaw ¶
type ContractRaw struct {
Contract *Contract // Generic contract binding to access the raw methods on
}
ContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ContractRaw) Call ¶
func (_Contract *ContractRaw) 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 (*ContractRaw) Transact ¶
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractRaw) Transfer ¶
func (_Contract *ContractRaw) 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 ContractSession ¶
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 }
ContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ContractSession) GetEvents ¶
func (_Contract *ContractSession) GetEvents(topicId string, fromBlock *big.Int) ([]EventLogEvent, error)
GetEvents is a free data retrieval call binding the contract method 0x63ab919d.
Solidity: function getEvents(string topicId, uint256 fromBlock) view returns((string,address[],address,uint256,uint256,bytes,bytes)[])
func (*ContractSession) GetTopics ¶
func (_Contract *ContractSession) GetTopics(account common.Address) ([]string, error)
GetTopics is a free data retrieval call binding the contract method 0xe18f8821.
Solidity: function getTopics(address account) view returns(string[])
func (*ContractSession) PublishEvent ¶
func (_Contract *ContractSession) PublishEvent(topicId string, id []byte, cid string, newAccounts []common.Address) (*types.Transaction, error)
PublishEvent is a paid mutator transaction binding the contract method 0xcc355708.
Solidity: function publishEvent(string topicId, bytes id, string cid, address[] newAccounts) returns()
type ContractTransactor ¶
type ContractTransactor struct {
// contains filtered or unexported fields
}
ContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewContractTransactor ¶
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error)
NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract.
func (*ContractTransactor) PublishEvent ¶
func (_Contract *ContractTransactor) PublishEvent(opts *bind.TransactOpts, topicId string, id []byte, cid string, newAccounts []common.Address) (*types.Transaction, error)
PublishEvent is a paid mutator transaction binding the contract method 0xcc355708.
Solidity: function publishEvent(string topicId, bytes id, string cid, address[] newAccounts) returns()
type ContractTransactorRaw ¶
type ContractTransactorRaw struct {
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on
}
ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ContractTransactorRaw) Transact ¶
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ContractTransactorRaw) Transfer ¶
func (_Contract *ContractTransactorRaw) 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 ContractTransactorSession ¶
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 }
ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ContractTransactorSession) PublishEvent ¶
func (_Contract *ContractTransactorSession) PublishEvent(topicId string, id []byte, cid string, newAccounts []common.Address) (*types.Transaction, error)
PublishEvent is a paid mutator transaction binding the contract method 0xcc355708.
Solidity: function publishEvent(string topicId, bytes id, string cid, address[] newAccounts) returns()