Documentation ¶
Index ¶
- Variables
- type RegistrationParams
- type SampleTestContract
- type SampleTestContractCaller
- type SampleTestContractCallerRaw
- type SampleTestContractCallerSession
- type SampleTestContractFilterer
- func (_SampleTestContract *SampleTestContractFilterer) FilterUpkeepCreated(opts *bind.FilterOpts) (*SampleTestContractUpkeepCreatedIterator, error)
- func (_SampleTestContract *SampleTestContractFilterer) ParseUpkeepCreated(log types.Log) (*SampleTestContractUpkeepCreated, error)
- func (_SampleTestContract *SampleTestContractFilterer) WatchUpkeepCreated(opts *bind.WatchOpts, sink chan<- *SampleTestContractUpkeepCreated) (event.Subscription, error)
- type SampleTestContractRaw
- func (_SampleTestContract *SampleTestContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_SampleTestContract *SampleTestContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_SampleTestContract *SampleTestContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type SampleTestContractSession
- func (_SampleTestContract *SampleTestContractSession) ILink() (common.Address, error)
- func (_SampleTestContract *SampleTestContractSession) IRegistrar() (common.Address, error)
- func (_SampleTestContract *SampleTestContractSession) RegisterAndPredictID(params RegistrationParams) (*types.Transaction, error)
- type SampleTestContractTransactor
- type SampleTestContractTransactorRaw
- type SampleTestContractTransactorSession
- type SampleTestContractUpkeepCreated
- type SampleTestContractUpkeepCreatedIterator
Constants ¶
This section is empty.
Variables ¶
var SampleTestContractABI = SampleTestContractMetaData.ABI
SampleTestContractABI is the input ABI used to generate the binding from. Deprecated: Use SampleTestContractMetaData.ABI instead.
var SampleTestContractMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"contractLinkTokenInterface\",\"name\":\"link\",\"type\":\"address\"},{\"internalType\":\"contractKeeperRegistrarInterface\",\"name\":\"registrar\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"UpkeepCreated\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"i_link\",\"outputs\":[{\"internalType\":\"contractLinkTokenInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"i_registrar\",\"outputs\":[{\"internalType\":\"contractKeeperRegistrarInterface\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"encryptedEmail\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"upkeepContract\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"gasLimit\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"adminAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"checkData\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"offchainConfig\",\"type\":\"bytes\"},{\"internalType\":\"uint96\",\"name\":\"amount\",\"type\":\"uint96\"}],\"internalType\":\"structRegistrationParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"registerAndPredictID\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}
SampleTestContractMetaData contains all meta data concerning the SampleTestContract contract.
Functions ¶
This section is empty.
Types ¶
type RegistrationParams ¶
type RegistrationParams struct { Name string EncryptedEmail []byte UpkeepContract common.Address GasLimit uint32 AdminAddress common.Address CheckData []byte OffchainConfig []byte Amount *big.Int }
RegistrationParams is an auto generated low-level Go binding around an user-defined struct.
type SampleTestContract ¶
type SampleTestContract struct { SampleTestContractCaller // Read-only binding to the contract SampleTestContractTransactor // Write-only binding to the contract SampleTestContractFilterer // Log filterer for contract events }
SampleTestContract is an auto generated Go binding around an Ethereum contract.
func NewSampleTestContract ¶
func NewSampleTestContract(address common.Address, backend bind.ContractBackend) (*SampleTestContract, error)
NewSampleTestContract creates a new instance of SampleTestContract, bound to a specific deployed contract.
type SampleTestContractCaller ¶
type SampleTestContractCaller struct {
// contains filtered or unexported fields
}
SampleTestContractCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewSampleTestContractCaller ¶
func NewSampleTestContractCaller(address common.Address, caller bind.ContractCaller) (*SampleTestContractCaller, error)
NewSampleTestContractCaller creates a new read-only instance of SampleTestContract, bound to a specific deployed contract.
func (*SampleTestContractCaller) ILink ¶
func (_SampleTestContract *SampleTestContractCaller) ILink(opts *bind.CallOpts) (common.Address, error)
ILink is a free data retrieval call binding the contract method 0x7d253aff.
Solidity: function i_link() view returns(address)
func (*SampleTestContractCaller) IRegistrar ¶
func (_SampleTestContract *SampleTestContractCaller) IRegistrar(opts *bind.CallOpts) (common.Address, error)
IRegistrar is a free data retrieval call binding the contract method 0x442b1278.
Solidity: function i_registrar() view returns(address)
type SampleTestContractCallerRaw ¶
type SampleTestContractCallerRaw struct {
Contract *SampleTestContractCaller // Generic read-only contract binding to access the raw methods on
}
SampleTestContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*SampleTestContractCallerRaw) Call ¶
func (_SampleTestContract *SampleTestContractCallerRaw) 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 SampleTestContractCallerSession ¶
type SampleTestContractCallerSession struct { Contract *SampleTestContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
SampleTestContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*SampleTestContractCallerSession) ILink ¶
func (_SampleTestContract *SampleTestContractCallerSession) ILink() (common.Address, error)
ILink is a free data retrieval call binding the contract method 0x7d253aff.
Solidity: function i_link() view returns(address)
func (*SampleTestContractCallerSession) IRegistrar ¶
func (_SampleTestContract *SampleTestContractCallerSession) IRegistrar() (common.Address, error)
IRegistrar is a free data retrieval call binding the contract method 0x442b1278.
Solidity: function i_registrar() view returns(address)
type SampleTestContractFilterer ¶
type SampleTestContractFilterer struct {
// contains filtered or unexported fields
}
SampleTestContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewSampleTestContractFilterer ¶
func NewSampleTestContractFilterer(address common.Address, filterer bind.ContractFilterer) (*SampleTestContractFilterer, error)
NewSampleTestContractFilterer creates a new log filterer instance of SampleTestContract, bound to a specific deployed contract.
func (*SampleTestContractFilterer) FilterUpkeepCreated ¶
func (_SampleTestContract *SampleTestContractFilterer) FilterUpkeepCreated(opts *bind.FilterOpts) (*SampleTestContractUpkeepCreatedIterator, error)
FilterUpkeepCreated is a free log retrieval operation binding the contract event 0x73827404e930da1450aa92d0348dd0939840f4850415c6b42a1bcf9de4162d7b.
Solidity: event UpkeepCreated(uint256 id)
func (*SampleTestContractFilterer) ParseUpkeepCreated ¶
func (_SampleTestContract *SampleTestContractFilterer) ParseUpkeepCreated(log types.Log) (*SampleTestContractUpkeepCreated, error)
ParseUpkeepCreated is a log parse operation binding the contract event 0x73827404e930da1450aa92d0348dd0939840f4850415c6b42a1bcf9de4162d7b.
Solidity: event UpkeepCreated(uint256 id)
func (*SampleTestContractFilterer) WatchUpkeepCreated ¶
func (_SampleTestContract *SampleTestContractFilterer) WatchUpkeepCreated(opts *bind.WatchOpts, sink chan<- *SampleTestContractUpkeepCreated) (event.Subscription, error)
WatchUpkeepCreated is a free log subscription operation binding the contract event 0x73827404e930da1450aa92d0348dd0939840f4850415c6b42a1bcf9de4162d7b.
Solidity: event UpkeepCreated(uint256 id)
type SampleTestContractRaw ¶
type SampleTestContractRaw struct {
Contract *SampleTestContract // Generic contract binding to access the raw methods on
}
SampleTestContractRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*SampleTestContractRaw) Call ¶
func (_SampleTestContract *SampleTestContractRaw) 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 (*SampleTestContractRaw) Transact ¶
func (_SampleTestContract *SampleTestContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SampleTestContractRaw) Transfer ¶
func (_SampleTestContract *SampleTestContractRaw) 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 SampleTestContractSession ¶
type SampleTestContractSession struct { Contract *SampleTestContract // 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 }
SampleTestContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*SampleTestContractSession) ILink ¶
func (_SampleTestContract *SampleTestContractSession) ILink() (common.Address, error)
ILink is a free data retrieval call binding the contract method 0x7d253aff.
Solidity: function i_link() view returns(address)
func (*SampleTestContractSession) IRegistrar ¶
func (_SampleTestContract *SampleTestContractSession) IRegistrar() (common.Address, error)
IRegistrar is a free data retrieval call binding the contract method 0x442b1278.
Solidity: function i_registrar() view returns(address)
func (*SampleTestContractSession) RegisterAndPredictID ¶
func (_SampleTestContract *SampleTestContractSession) RegisterAndPredictID(params RegistrationParams) (*types.Transaction, error)
RegisterAndPredictID is a paid mutator transaction binding the contract method 0xfd111cca.
Solidity: function registerAndPredictID((string,bytes,address,uint32,address,bytes,bytes,uint96) params) returns()
type SampleTestContractTransactor ¶
type SampleTestContractTransactor struct {
// contains filtered or unexported fields
}
SampleTestContractTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewSampleTestContractTransactor ¶
func NewSampleTestContractTransactor(address common.Address, transactor bind.ContractTransactor) (*SampleTestContractTransactor, error)
NewSampleTestContractTransactor creates a new write-only instance of SampleTestContract, bound to a specific deployed contract.
func (*SampleTestContractTransactor) RegisterAndPredictID ¶
func (_SampleTestContract *SampleTestContractTransactor) RegisterAndPredictID(opts *bind.TransactOpts, params RegistrationParams) (*types.Transaction, error)
RegisterAndPredictID is a paid mutator transaction binding the contract method 0xfd111cca.
Solidity: function registerAndPredictID((string,bytes,address,uint32,address,bytes,bytes,uint96) params) returns()
type SampleTestContractTransactorRaw ¶
type SampleTestContractTransactorRaw struct {
Contract *SampleTestContractTransactor // Generic write-only contract binding to access the raw methods on
}
SampleTestContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*SampleTestContractTransactorRaw) Transact ¶
func (_SampleTestContract *SampleTestContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*SampleTestContractTransactorRaw) Transfer ¶
func (_SampleTestContract *SampleTestContractTransactorRaw) 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 SampleTestContractTransactorSession ¶
type SampleTestContractTransactorSession struct { Contract *SampleTestContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
SampleTestContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*SampleTestContractTransactorSession) RegisterAndPredictID ¶
func (_SampleTestContract *SampleTestContractTransactorSession) RegisterAndPredictID(params RegistrationParams) (*types.Transaction, error)
RegisterAndPredictID is a paid mutator transaction binding the contract method 0xfd111cca.
Solidity: function registerAndPredictID((string,bytes,address,uint32,address,bytes,bytes,uint96) params) returns()
type SampleTestContractUpkeepCreated ¶
type SampleTestContractUpkeepCreated struct { Id *big.Int Raw types.Log // Blockchain specific contextual infos }
SampleTestContractUpkeepCreated represents a UpkeepCreated event raised by the SampleTestContract contract.
type SampleTestContractUpkeepCreatedIterator ¶
type SampleTestContractUpkeepCreatedIterator struct { Event *SampleTestContractUpkeepCreated // Event containing the contract specifics and raw log // contains filtered or unexported fields }
SampleTestContractUpkeepCreatedIterator is returned from FilterUpkeepCreated and is used to iterate over the raw logs and unpacked data for UpkeepCreated events raised by the SampleTestContract contract.
func (*SampleTestContractUpkeepCreatedIterator) Close ¶
func (it *SampleTestContractUpkeepCreatedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*SampleTestContractUpkeepCreatedIterator) Error ¶
func (it *SampleTestContractUpkeepCreatedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*SampleTestContractUpkeepCreatedIterator) Next ¶
func (it *SampleTestContractUpkeepCreatedIterator) 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.