Documentation
¶
Index ¶
- Constants
- Variables
- func LoadABI() (abi.ABI, error)
- type Callback
- type CallbackByIdResponse
- type CallbackResponse
- type CallbackResult
- type CallbacksResponse
- type ISched
- type ISchedCaller
- func (_ISched *ISchedCaller) CallbackById(opts *bind.CallOpts, id uint64) (CallbackByIdResponse, error)
- func (_ISched *ISchedCaller) Callbacks(opts *bind.CallOpts, pagination TypesPageRequest) (CallbacksResponse, error)
- func (_ISched *ISchedCaller) GetAddress(opts *bind.CallOpts) (common.Address, error)
- type ISchedCallerRaw
- type ISchedCallerSession
- type ISchedFilterer
- type ISchedRaw
- func (_ISched *ISchedRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_ISched *ISchedRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_ISched *ISchedRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type ISchedSession
- func (_ISched *ISchedSession) CallbackById(id uint64) (CallbackByIdResponse, error)
- func (_ISched *ISchedSession) Callbacks(pagination TypesPageRequest) (CallbacksResponse, error)
- func (_ISched *ISchedSession) ExecuteCallbacks() (*types.Transaction, error)
- func (_ISched *ISchedSession) GetAddress() (common.Address, error)
- type ISchedTransactor
- type ISchedTransactorRaw
- type ISchedTransactorSession
- type Precompile
- func (p *Precompile) Address() ethcmn.Address
- func (p Precompile) CallbackByIdMethod(ctx sdk.Context, method *abi.Method, args []any) ([]byte, error)
- func (p Precompile) CallbacksMethod(ctx sdk.Context, method *abi.Method, args []any) ([]byte, error)
- func (p *Precompile) ExecuteCallbacksMethod(ctx sdk.Context, evm *vm.EVM, stateDB vm.StateDB, method *abi.Method, args any) ([]byte, error)
- func (p Precompile) GetAddressMethod(ctx sdk.Context, method *abi.Method, args []any) ([]byte, error)
- func (p *Precompile) IsTransaction(method *abi.Method) bool
- func (p *Precompile) Logger(ctx sdk.Context) log.Logger
- func (p *Precompile) RequiredGas(input []byte) uint64
- func (p *Precompile) Run(evm *vm.EVM, contract *vm.Contract, readonly bool) (bz []byte, err error)
- type TypesPageRequest
- type TypesPageResponse
Constants ¶
const ( CallbackByIdMethod = "callbackById" CallbacksMethod = "callbacks" GetAddressMethod = "getAddress" )
const (
ExecuteCallbacksMethod = "executeCallbacks"
)
const PrecompileAddress = "0x0000000000000000000000000000000000000905"
Variables ¶
var ISchedABI = ISchedMetaData.ABI
ISchedABI is the input ABI used to generate the binding from. Deprecated: Use ISchedMetaData.ABI instead.
var ISchedMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"}],\"name\":\"callbackById\",\"outputs\":[{\"components\":[{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"addressValue\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"gasLimit\",\"type\":\"uint64\"}],\"internalType\":\"structCallback\",\"name\":\"callback\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumCallbackStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"}],\"internalType\":\"structCallbackResult\",\"name\":\"result\",\"type\":\"tuple\"}],\"internalType\":\"structCallbackResponse\",\"name\":\"callbackResponse\",\"type\":\"tuple\"}],\"internalType\":\"structCallbackByIdResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"key\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"offset\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"limit\",\"type\":\"uint64\"},{\"internalType\":\"bool\",\"name\":\"countTotal\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"reverse\",\"type\":\"bool\"}],\"internalType\":\"structTypes.PageRequest\",\"name\":\"pagination\",\"type\":\"tuple\"}],\"name\":\"callbacks\",\"outputs\":[{\"components\":[{\"components\":[{\"internalType\":\"bytes\",\"name\":\"nextKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"total\",\"type\":\"uint64\"}],\"internalType\":\"structTypes.PageResponse\",\"name\":\"pagination\",\"type\":\"tuple\"},{\"components\":[{\"components\":[{\"internalType\":\"uint64\",\"name\":\"id\",\"type\":\"uint64\"},{\"internalType\":\"address\",\"name\":\"addressValue\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"gasLimit\",\"type\":\"uint64\"}],\"internalType\":\"structCallback\",\"name\":\"callback\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enumCallbackStatus\",\"name\":\"status\",\"type\":\"uint8\"},{\"internalType\":\"bytes\",\"name\":\"result\",\"type\":\"bytes\"}],\"internalType\":\"structCallbackResult\",\"name\":\"result\",\"type\":\"tuple\"}],\"internalType\":\"structCallbackResponse[]\",\"name\":\"callbacks\",\"type\":\"tuple[]\"}],\"internalType\":\"structCallbacksResponse\",\"name\":\"response\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"executeCallbacks\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
ISchedMetaData contains all meta data concerning the ISched contract.
Functions ¶
Types ¶
type CallbackByIdResponse ¶
type CallbackByIdResponse struct {
CallbackResponse CallbackResponse
}
CallbackByIdResponse is an auto generated low-level Go binding around an user-defined struct.
func (*CallbackByIdResponse) FromResponse ¶
func (r *CallbackByIdResponse) FromResponse(res *types.QueryCallbackByIdResponse) (CallbackByIdResponse, error)
FromResponse needed to map QueryCallbackByIdResponse to CallbackByIdResponse.
type CallbackResponse ¶
type CallbackResponse struct { Callback Callback Result CallbackResult }
CallbackResponse is an auto generated low-level Go binding around an user-defined struct.
type CallbackResult ¶
CallbackResult is an auto generated low-level Go binding around an user-defined struct.
type CallbacksResponse ¶
type CallbacksResponse struct { Pagination TypesPageResponse Callbacks []CallbackResponse }
CallbacksResponse is an auto generated low-level Go binding around an user-defined struct.
func (*CallbacksResponse) FromResponse ¶
func (r *CallbacksResponse) FromResponse(res *types.QueryCallbacksResponse) (CallbacksResponse, error)
type ISched ¶
type ISched struct { ISchedCaller // Read-only binding to the contract ISchedTransactor // Write-only binding to the contract ISchedFilterer // Log filterer for contract events }
ISched is an auto generated Go binding around an Ethereum contract.
type ISchedCaller ¶
type ISchedCaller struct {
// contains filtered or unexported fields
}
ISchedCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewISchedCaller ¶
func NewISchedCaller(address common.Address, caller bind.ContractCaller) (*ISchedCaller, error)
NewISchedCaller creates a new read-only instance of ISched, bound to a specific deployed contract.
func (*ISchedCaller) CallbackById ¶
func (_ISched *ISchedCaller) CallbackById(opts *bind.CallOpts, id uint64) (CallbackByIdResponse, error)
CallbackById is a free data retrieval call binding the contract method 0x9446c851.
Solidity: function callbackById(uint64 id) view returns((((uint64,address,uint64),(uint8,bytes))) response)
func (*ISchedCaller) Callbacks ¶
func (_ISched *ISchedCaller) Callbacks(opts *bind.CallOpts, pagination TypesPageRequest) (CallbacksResponse, error)
Callbacks is a free data retrieval call binding the contract method 0x56b9e6d7.
Solidity: function callbacks((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),((uint64,address,uint64),(uint8,bytes))[]) response)
func (*ISchedCaller) GetAddress ¶
GetAddress is a free data retrieval call binding the contract method 0x38cc4831.
Solidity: function getAddress() view returns(address)
type ISchedCallerRaw ¶
type ISchedCallerRaw struct {
Contract *ISchedCaller // Generic read-only contract binding to access the raw methods on
}
ISchedCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*ISchedCallerRaw) Call ¶
func (_ISched *ISchedCallerRaw) 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 ISchedCallerSession ¶
type ISchedCallerSession struct { Contract *ISchedCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
ISchedCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*ISchedCallerSession) CallbackById ¶
func (_ISched *ISchedCallerSession) CallbackById(id uint64) (CallbackByIdResponse, error)
CallbackById is a free data retrieval call binding the contract method 0x9446c851.
Solidity: function callbackById(uint64 id) view returns((((uint64,address,uint64),(uint8,bytes))) response)
func (*ISchedCallerSession) Callbacks ¶
func (_ISched *ISchedCallerSession) Callbacks(pagination TypesPageRequest) (CallbacksResponse, error)
Callbacks is a free data retrieval call binding the contract method 0x56b9e6d7.
Solidity: function callbacks((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),((uint64,address,uint64),(uint8,bytes))[]) response)
func (*ISchedCallerSession) GetAddress ¶
func (_ISched *ISchedCallerSession) GetAddress() (common.Address, error)
GetAddress is a free data retrieval call binding the contract method 0x38cc4831.
Solidity: function getAddress() view returns(address)
type ISchedFilterer ¶
type ISchedFilterer struct {
// contains filtered or unexported fields
}
ISchedFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewISchedFilterer ¶
func NewISchedFilterer(address common.Address, filterer bind.ContractFilterer) (*ISchedFilterer, error)
NewISchedFilterer creates a new log filterer instance of ISched, bound to a specific deployed contract.
type ISchedRaw ¶
type ISchedRaw struct {
Contract *ISched // Generic contract binding to access the raw methods on
}
ISchedRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*ISchedRaw) Call ¶
func (_ISched *ISchedRaw) 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 (*ISchedRaw) Transact ¶
func (_ISched *ISchedRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISchedRaw) Transfer ¶
func (_ISched *ISchedRaw) 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 ISchedSession ¶
type ISchedSession struct { Contract *ISched // 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 }
ISchedSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*ISchedSession) CallbackById ¶
func (_ISched *ISchedSession) CallbackById(id uint64) (CallbackByIdResponse, error)
CallbackById is a free data retrieval call binding the contract method 0x9446c851.
Solidity: function callbackById(uint64 id) view returns((((uint64,address,uint64),(uint8,bytes))) response)
func (*ISchedSession) Callbacks ¶
func (_ISched *ISchedSession) Callbacks(pagination TypesPageRequest) (CallbacksResponse, error)
Callbacks is a free data retrieval call binding the contract method 0x56b9e6d7.
Solidity: function callbacks((bytes,uint64,uint64,bool,bool) pagination) view returns(((bytes,uint64),((uint64,address,uint64),(uint8,bytes))[]) response)
func (*ISchedSession) ExecuteCallbacks ¶
func (_ISched *ISchedSession) ExecuteCallbacks() (*types.Transaction, error)
ExecuteCallbacks is a paid mutator transaction binding the contract method 0x06e6ee28.
Solidity: function executeCallbacks() returns()
func (*ISchedSession) GetAddress ¶
func (_ISched *ISchedSession) GetAddress() (common.Address, error)
GetAddress is a free data retrieval call binding the contract method 0x38cc4831.
Solidity: function getAddress() view returns(address)
type ISchedTransactor ¶
type ISchedTransactor struct {
// contains filtered or unexported fields
}
ISchedTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewISchedTransactor ¶
func NewISchedTransactor(address common.Address, transactor bind.ContractTransactor) (*ISchedTransactor, error)
NewISchedTransactor creates a new write-only instance of ISched, bound to a specific deployed contract.
func (*ISchedTransactor) ExecuteCallbacks ¶
func (_ISched *ISchedTransactor) ExecuteCallbacks(opts *bind.TransactOpts) (*types.Transaction, error)
ExecuteCallbacks is a paid mutator transaction binding the contract method 0x06e6ee28.
Solidity: function executeCallbacks() returns()
type ISchedTransactorRaw ¶
type ISchedTransactorRaw struct {
Contract *ISchedTransactor // Generic write-only contract binding to access the raw methods on
}
ISchedTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*ISchedTransactorRaw) Transact ¶
func (_ISched *ISchedTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*ISchedTransactorRaw) Transfer ¶
func (_ISched *ISchedTransactorRaw) 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 ISchedTransactorSession ¶
type ISchedTransactorSession struct { Contract *ISchedTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
ISchedTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*ISchedTransactorSession) ExecuteCallbacks ¶
func (_ISched *ISchedTransactorSession) ExecuteCallbacks() (*types.Transaction, error)
ExecuteCallbacks is a paid mutator transaction binding the contract method 0x06e6ee28.
Solidity: function executeCallbacks() returns()
type Precompile ¶
type Precompile struct { evmcmn.Precompile // contains filtered or unexported fields }
Precompile defines the precompiled contract for x/sched.
func NewPrecompile ¶
func NewPrecompile( schedKeeper schedkeeper.Keeper, evmKeeper *evmkeeper.Keeper, bankKeeper evmcmn.BankKeeper, er *common.EthEventsRegistry, ) (*Precompile, error)
func (*Precompile) Address ¶
func (p *Precompile) Address() ethcmn.Address
Address implements vm.PrecompiledContract.
func (Precompile) CallbackByIdMethod ¶
func (Precompile) CallbacksMethod ¶
func (*Precompile) ExecuteCallbacksMethod ¶
func (Precompile) GetAddressMethod ¶
func (*Precompile) IsTransaction ¶
func (p *Precompile) IsTransaction(method *abi.Method) bool
func (*Precompile) Logger ¶
func (p *Precompile) Logger(ctx sdk.Context) log.Logger
Logger returns a precompile-specific logger.
func (*Precompile) RequiredGas ¶
func (p *Precompile) RequiredGas(input []byte) uint64
RequiredGas implements vm.PrecompiledContract. Subtle: this method shadows the method (Precompile).RequiredGas of Precompile.Precompile.
type TypesPageRequest ¶
TypesPageRequest is an auto generated low-level Go binding around an user-defined struct.
type TypesPageResponse ¶
TypesPageResponse is an auto generated low-level Go binding around an user-defined struct.