auth

package
v0.0.0-...-bef9688 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthModuleABI = AuthModuleMetaData.ABI

AuthModuleABI is the input ABI used to generate the binding from. Deprecated: Use AuthModuleMetaData.ABI instead.

View Source
var AuthModuleMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"getAccountInfo\",\"outputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"pubKey\",\"type\":\"bytes\"},{\"internalType\":\"uint64\",\"name\":\"accountNumber\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"}],\"internalType\":\"structIAuthModule.BaseAccount\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"name\":\"getSendAllowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"denom\",\"type\":\"string\"}],\"internalType\":\"structCosmos.Coin[]\",\"name\":\"amount\",\"type\":\"tuple[]\"},{\"internalType\":\"uint256\",\"name\":\"expiration\",\"type\":\"uint256\"}],\"name\":\"setSendAllowance\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

AuthModuleMetaData contains all meta data concerning the AuthModule contract.

Functions

This section is empty.

Types

type AuthModule

type AuthModule struct {
	AuthModuleCaller     // Read-only binding to the contract
	AuthModuleTransactor // Write-only binding to the contract
	AuthModuleFilterer   // Log filterer for contract events
}

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

func NewAuthModule

func NewAuthModule(address common.Address, backend bind.ContractBackend) (*AuthModule, error)

NewAuthModule creates a new instance of AuthModule, bound to a specific deployed contract.

type AuthModuleCaller

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

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

func NewAuthModuleCaller

func NewAuthModuleCaller(address common.Address, caller bind.ContractCaller) (*AuthModuleCaller, error)

NewAuthModuleCaller creates a new read-only instance of AuthModule, bound to a specific deployed contract.

func (*AuthModuleCaller) GetAccountInfo

func (_AuthModule *AuthModuleCaller) GetAccountInfo(opts *bind.CallOpts, account common.Address) (IAuthModuleBaseAccount, error)

GetAccountInfo is a free data retrieval call binding the contract method 0x7b510fe8.

Solidity: function getAccountInfo(address account) view returns((address,bytes,uint64,uint64))

func (*AuthModuleCaller) GetSendAllowance

func (_AuthModule *AuthModuleCaller) GetSendAllowance(opts *bind.CallOpts, owner common.Address, spender common.Address, denom string) (*big.Int, error)

GetSendAllowance is a free data retrieval call binding the contract method 0xfbdb0e87.

Solidity: function getSendAllowance(address owner, address spender, string denom) view returns(uint256)

type AuthModuleCallerRaw

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

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

func (*AuthModuleCallerRaw) Call

func (_AuthModule *AuthModuleCallerRaw) 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 AuthModuleCallerSession

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

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

func (*AuthModuleCallerSession) GetAccountInfo

func (_AuthModule *AuthModuleCallerSession) GetAccountInfo(account common.Address) (IAuthModuleBaseAccount, error)

GetAccountInfo is a free data retrieval call binding the contract method 0x7b510fe8.

Solidity: function getAccountInfo(address account) view returns((address,bytes,uint64,uint64))

func (*AuthModuleCallerSession) GetSendAllowance

func (_AuthModule *AuthModuleCallerSession) GetSendAllowance(owner common.Address, spender common.Address, denom string) (*big.Int, error)

GetSendAllowance is a free data retrieval call binding the contract method 0xfbdb0e87.

Solidity: function getSendAllowance(address owner, address spender, string denom) view returns(uint256)

type AuthModuleFilterer

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

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

func NewAuthModuleFilterer

func NewAuthModuleFilterer(address common.Address, filterer bind.ContractFilterer) (*AuthModuleFilterer, error)

NewAuthModuleFilterer creates a new log filterer instance of AuthModule, bound to a specific deployed contract.

type AuthModuleRaw

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

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

func (*AuthModuleRaw) Call

func (_AuthModule *AuthModuleRaw) 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 (*AuthModuleRaw) Transact

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

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

func (*AuthModuleRaw) Transfer

func (_AuthModule *AuthModuleRaw) 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 AuthModuleSession

type AuthModuleSession struct {
	Contract     *AuthModule       // 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
}

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

func (*AuthModuleSession) GetAccountInfo

func (_AuthModule *AuthModuleSession) GetAccountInfo(account common.Address) (IAuthModuleBaseAccount, error)

GetAccountInfo is a free data retrieval call binding the contract method 0x7b510fe8.

Solidity: function getAccountInfo(address account) view returns((address,bytes,uint64,uint64))

func (*AuthModuleSession) GetSendAllowance

func (_AuthModule *AuthModuleSession) GetSendAllowance(owner common.Address, spender common.Address, denom string) (*big.Int, error)

GetSendAllowance is a free data retrieval call binding the contract method 0xfbdb0e87.

Solidity: function getSendAllowance(address owner, address spender, string denom) view returns(uint256)

func (*AuthModuleSession) SetSendAllowance

func (_AuthModule *AuthModuleSession) SetSendAllowance(spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

SetSendAllowance is a paid mutator transaction binding the contract method 0xe750ae9c.

Solidity: function setSendAllowance(address spender, (uint256,string)[] amount, uint256 expiration) returns(bool)

type AuthModuleTransactor

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

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

func NewAuthModuleTransactor

func NewAuthModuleTransactor(address common.Address, transactor bind.ContractTransactor) (*AuthModuleTransactor, error)

NewAuthModuleTransactor creates a new write-only instance of AuthModule, bound to a specific deployed contract.

func (*AuthModuleTransactor) SetSendAllowance

func (_AuthModule *AuthModuleTransactor) SetSendAllowance(opts *bind.TransactOpts, spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

SetSendAllowance is a paid mutator transaction binding the contract method 0xe750ae9c.

Solidity: function setSendAllowance(address spender, (uint256,string)[] amount, uint256 expiration) returns(bool)

type AuthModuleTransactorRaw

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

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

func (*AuthModuleTransactorRaw) Transact

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

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

func (*AuthModuleTransactorRaw) Transfer

func (_AuthModule *AuthModuleTransactorRaw) 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 AuthModuleTransactorSession

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

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

func (*AuthModuleTransactorSession) SetSendAllowance

func (_AuthModule *AuthModuleTransactorSession) SetSendAllowance(spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

SetSendAllowance is a paid mutator transaction binding the contract method 0xe750ae9c.

Solidity: function setSendAllowance(address spender, (uint256,string)[] amount, uint256 expiration) returns(bool)

type CosmosCoin

type CosmosCoin struct {
	Amount *big.Int
	Denom  string
}

CosmosCoin is an auto generated low-level Go binding around an user-defined struct.

type IAuthModuleBaseAccount

type IAuthModuleBaseAccount struct {
	Addr          common.Address
	PubKey        []byte
	AccountNumber uint64
	Sequence      uint64
}

IAuthModuleBaseAccount is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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