auth

package
v0.0.0-...-f79a0de Latest Latest
Warning

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

Go to latest
Published: May 15, 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\":\"string\",\"name\":\"account\",\"type\":\"string\"}],\"name\":\"convertBech32ToHexAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"convertHexToBech32\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"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\":\"owner\",\"type\":\"address\"},{\"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) ConvertBech32ToHexAddress

func (_AuthModule *AuthModuleCaller) ConvertBech32ToHexAddress(opts *bind.CallOpts, account string) (common.Address, error)

ConvertBech32ToHexAddress is a free data retrieval call binding the contract method 0xc769a484.

Solidity: function convertBech32ToHexAddress(string account) view returns(address)

func (*AuthModuleCaller) ConvertHexToBech32

func (_AuthModule *AuthModuleCaller) ConvertHexToBech32(opts *bind.CallOpts, account common.Address) (string, error)

ConvertHexToBech32 is a free data retrieval call binding the contract method 0x25435c5d.

Solidity: function convertHexToBech32(address account) view returns(string)

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) ConvertBech32ToHexAddress

func (_AuthModule *AuthModuleCallerSession) ConvertBech32ToHexAddress(account string) (common.Address, error)

ConvertBech32ToHexAddress is a free data retrieval call binding the contract method 0xc769a484.

Solidity: function convertBech32ToHexAddress(string account) view returns(address)

func (*AuthModuleCallerSession) ConvertHexToBech32

func (_AuthModule *AuthModuleCallerSession) ConvertHexToBech32(account common.Address) (string, error)

ConvertHexToBech32 is a free data retrieval call binding the contract method 0x25435c5d.

Solidity: function convertHexToBech32(address account) view returns(string)

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) ConvertBech32ToHexAddress

func (_AuthModule *AuthModuleSession) ConvertBech32ToHexAddress(account string) (common.Address, error)

ConvertBech32ToHexAddress is a free data retrieval call binding the contract method 0xc769a484.

Solidity: function convertBech32ToHexAddress(string account) view returns(address)

func (*AuthModuleSession) ConvertHexToBech32

func (_AuthModule *AuthModuleSession) ConvertHexToBech32(account common.Address) (string, error)

ConvertHexToBech32 is a free data retrieval call binding the contract method 0x25435c5d.

Solidity: function convertHexToBech32(address account) view returns(string)

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(owner common.Address, spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

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

Solidity: function setSendAllowance(address owner, 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, owner common.Address, spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

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

Solidity: function setSendAllowance(address owner, 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(owner common.Address, spender common.Address, amount []CosmosCoin, expiration *big.Int) (*types.Transaction, error)

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

Solidity: function setSendAllowance(address owner, 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.

Jump to

Keyboard shortcuts

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