Documentation
¶
Index ¶
- Constants
- Variables
- type Contract
- func (c *Contract) Abi() abi.ABI
- func (c *Contract) Address() common.Address
- func (c *Contract) Bech32ToHexAddr(method *abi.Method, args []interface{}) ([]byte, error)
- func (c *Contract) Bech32ify(method *abi.Method, args []interface{}) ([]byte, error)
- func (c *Contract) GetGasStabilityPoolBalance(ctx sdk.Context, method *abi.Method, args []interface{}) ([]byte, error)
- func (c *Contract) RequiredGas(input []byte) uint64
- func (c *Contract) Run(evm *vm.EVM, contract *vm.Contract, _ bool) ([]byte, error)
- type IPrototype
- type IPrototypeCaller
- func (_IPrototype *IPrototypeCaller) Bech32ToHexAddr(opts *bind.CallOpts, bech32 string) (common.Address, error)
- func (_IPrototype *IPrototypeCaller) Bech32ify(opts *bind.CallOpts, prefix string, addr common.Address) (string, error)
- func (_IPrototype *IPrototypeCaller) GetGasStabilityPoolBalance(opts *bind.CallOpts, chainID int64) (*big.Int, error)
- type IPrototypeCallerRaw
- type IPrototypeCallerSession
- func (_IPrototype *IPrototypeCallerSession) Bech32ToHexAddr(bech32 string) (common.Address, error)
- func (_IPrototype *IPrototypeCallerSession) Bech32ify(prefix string, addr common.Address) (string, error)
- func (_IPrototype *IPrototypeCallerSession) GetGasStabilityPoolBalance(chainID int64) (*big.Int, error)
- type IPrototypeFilterer
- type IPrototypeRaw
- func (_IPrototype *IPrototypeRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_IPrototype *IPrototypeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_IPrototype *IPrototypeRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type IPrototypeSession
- type IPrototypeTransactor
- type IPrototypeTransactorRaw
- type IPrototypeTransactorSession
Constants ¶
const ( Bech32ToHexAddrMethodName = "bech32ToHexAddr" Bech32ifyMethodName = "bech32ify" GetGasStabilityPoolBalanceName = "getGasStabilityPoolBalance" )
Variables ¶
var ( ABI abi.ABI ContractAddress = common.HexToAddress("0x0000000000000000000000000000000000000065") GasRequiredByMethod = map[[4]byte]uint64{} )
var IPrototypeABI = IPrototypeMetaData.ABI
IPrototypeABI is the input ABI used to generate the binding from. Deprecated: Use IPrototypeMetaData.ABI instead.
var IPrototypeMetaData = &bind.MetaData{
ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"bech32\",\"type\":\"string\"}],\"name\":\"bech32ToHexAddr\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"prefix\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"bech32ify\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"bech32\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"int64\",\"name\":\"chainID\",\"type\":\"int64\"}],\"name\":\"getGasStabilityPoolBalance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"result\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
}
IPrototypeMetaData contains all meta data concerning the IPrototype contract.
Functions ¶
This section is empty.
Types ¶
type Contract ¶
type Contract struct { precompiletypes.BaseContract // contains filtered or unexported fields }
func NewIPrototypeContract ¶
func NewIPrototypeContract( fungibleKeeper *fungiblekeeper.Keeper, cdc codec.Codec, kvGasConfig storetypes.GasConfig, ) *Contract
func (*Contract) Bech32ToHexAddr ¶
Bech32ToHexAddr converts a bech32 address to a hex address.
func (*Contract) GetGasStabilityPoolBalance ¶
func (*Contract) RequiredGas ¶
RequiredGas is required to implement the PrecompiledContract interface. The gas has to be calculated deterministically based on the input.
type IPrototype ¶
type IPrototype struct { IPrototypeCaller // Read-only binding to the contract IPrototypeTransactor // Write-only binding to the contract IPrototypeFilterer // Log filterer for contract events }
IPrototype is an auto generated Go binding around an Ethereum contract.
func NewIPrototype ¶
func NewIPrototype(address common.Address, backend bind.ContractBackend) (*IPrototype, error)
NewIPrototype creates a new instance of IPrototype, bound to a specific deployed contract.
type IPrototypeCaller ¶
type IPrototypeCaller struct {
// contains filtered or unexported fields
}
IPrototypeCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewIPrototypeCaller ¶
func NewIPrototypeCaller(address common.Address, caller bind.ContractCaller) (*IPrototypeCaller, error)
NewIPrototypeCaller creates a new read-only instance of IPrototype, bound to a specific deployed contract.
func (*IPrototypeCaller) Bech32ToHexAddr ¶
func (_IPrototype *IPrototypeCaller) Bech32ToHexAddr(opts *bind.CallOpts, bech32 string) (common.Address, error)
Bech32ToHexAddr is a free data retrieval call binding the contract method 0xe4e2a4ec.
Solidity: function bech32ToHexAddr(string bech32) view returns(address addr)
func (*IPrototypeCaller) Bech32ify ¶
func (_IPrototype *IPrototypeCaller) Bech32ify(opts *bind.CallOpts, prefix string, addr common.Address) (string, error)
Bech32ify is a free data retrieval call binding the contract method 0x0615b74e.
Solidity: function bech32ify(string prefix, address addr) view returns(string bech32)
func (*IPrototypeCaller) GetGasStabilityPoolBalance ¶
func (_IPrototype *IPrototypeCaller) GetGasStabilityPoolBalance(opts *bind.CallOpts, chainID int64) (*big.Int, error)
GetGasStabilityPoolBalance is a free data retrieval call binding the contract method 0x3ee8d1a4.
Solidity: function getGasStabilityPoolBalance(int64 chainID) view returns(uint256 result)
type IPrototypeCallerRaw ¶
type IPrototypeCallerRaw struct {
Contract *IPrototypeCaller // Generic read-only contract binding to access the raw methods on
}
IPrototypeCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*IPrototypeCallerRaw) Call ¶
func (_IPrototype *IPrototypeCallerRaw) 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 IPrototypeCallerSession ¶
type IPrototypeCallerSession struct { Contract *IPrototypeCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session }
IPrototypeCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*IPrototypeCallerSession) Bech32ToHexAddr ¶
func (_IPrototype *IPrototypeCallerSession) Bech32ToHexAddr(bech32 string) (common.Address, error)
Bech32ToHexAddr is a free data retrieval call binding the contract method 0xe4e2a4ec.
Solidity: function bech32ToHexAddr(string bech32) view returns(address addr)
func (*IPrototypeCallerSession) Bech32ify ¶
func (_IPrototype *IPrototypeCallerSession) Bech32ify(prefix string, addr common.Address) (string, error)
Bech32ify is a free data retrieval call binding the contract method 0x0615b74e.
Solidity: function bech32ify(string prefix, address addr) view returns(string bech32)
func (*IPrototypeCallerSession) GetGasStabilityPoolBalance ¶
func (_IPrototype *IPrototypeCallerSession) GetGasStabilityPoolBalance(chainID int64) (*big.Int, error)
GetGasStabilityPoolBalance is a free data retrieval call binding the contract method 0x3ee8d1a4.
Solidity: function getGasStabilityPoolBalance(int64 chainID) view returns(uint256 result)
type IPrototypeFilterer ¶
type IPrototypeFilterer struct {
// contains filtered or unexported fields
}
IPrototypeFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewIPrototypeFilterer ¶
func NewIPrototypeFilterer(address common.Address, filterer bind.ContractFilterer) (*IPrototypeFilterer, error)
NewIPrototypeFilterer creates a new log filterer instance of IPrototype, bound to a specific deployed contract.
type IPrototypeRaw ¶
type IPrototypeRaw struct {
Contract *IPrototype // Generic contract binding to access the raw methods on
}
IPrototypeRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*IPrototypeRaw) Call ¶
func (_IPrototype *IPrototypeRaw) 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 (*IPrototypeRaw) Transact ¶
func (_IPrototype *IPrototypeRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPrototypeRaw) Transfer ¶
func (_IPrototype *IPrototypeRaw) 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 IPrototypeSession ¶
type IPrototypeSession struct { Contract *IPrototype // 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 }
IPrototypeSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*IPrototypeSession) Bech32ToHexAddr ¶
func (_IPrototype *IPrototypeSession) Bech32ToHexAddr(bech32 string) (common.Address, error)
Bech32ToHexAddr is a free data retrieval call binding the contract method 0xe4e2a4ec.
Solidity: function bech32ToHexAddr(string bech32) view returns(address addr)
func (*IPrototypeSession) Bech32ify ¶
Bech32ify is a free data retrieval call binding the contract method 0x0615b74e.
Solidity: function bech32ify(string prefix, address addr) view returns(string bech32)
func (*IPrototypeSession) GetGasStabilityPoolBalance ¶
func (_IPrototype *IPrototypeSession) GetGasStabilityPoolBalance(chainID int64) (*big.Int, error)
GetGasStabilityPoolBalance is a free data retrieval call binding the contract method 0x3ee8d1a4.
Solidity: function getGasStabilityPoolBalance(int64 chainID) view returns(uint256 result)
type IPrototypeTransactor ¶
type IPrototypeTransactor struct {
// contains filtered or unexported fields
}
IPrototypeTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewIPrototypeTransactor ¶
func NewIPrototypeTransactor(address common.Address, transactor bind.ContractTransactor) (*IPrototypeTransactor, error)
NewIPrototypeTransactor creates a new write-only instance of IPrototype, bound to a specific deployed contract.
type IPrototypeTransactorRaw ¶
type IPrototypeTransactorRaw struct {
Contract *IPrototypeTransactor // Generic write-only contract binding to access the raw methods on
}
IPrototypeTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*IPrototypeTransactorRaw) Transact ¶
func (_IPrototype *IPrototypeTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*IPrototypeTransactorRaw) Transfer ¶
func (_IPrototype *IPrototypeTransactorRaw) 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 IPrototypeTransactorSession ¶
type IPrototypeTransactorSession struct { Contract *IPrototypeTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session }
IPrototypeTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.