ics20bank

package
v0.3.33 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Ics20bankABI = Ics20bankMetaData.ABI

Ics20bankABI is the input ABI used to generate the binding from. Deprecated: Use Ics20bankMetaData.ABI instead.

View Source
var Ics20bankMetaData = &bind.MetaData{
	ABI: "[{\"type\":\"constructor\",\"inputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"ADMIN_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"DEFAULT_ADMIN_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"OPERATOR_ROLE\",\"inputs\":[],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"addressToDenom\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"string\",\"internalType\":\"string\"}],\"stateMutability\":\"pure\"},{\"type\":\"function\",\"name\":\"balanceOf\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"}],\"outputs\":[{\"name\":\"\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"burn\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"deposit\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"getRoleAdmin\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"grantRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"hasRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"mint\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"renounceRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"callerConfirmation\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"revokeRole\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"setOperator\",\"inputs\":[{\"name\":\"operator\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"supportsInterface\",\"inputs\":[{\"name\":\"interfaceId\",\"type\":\"bytes4\",\"internalType\":\"bytes4\"}],\"outputs\":[{\"name\":\"\",\"type\":\"bool\",\"internalType\":\"bool\"}],\"stateMutability\":\"view\"},{\"type\":\"function\",\"name\":\"transferFrom\",\"inputs\":[{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"denom\",\"type\":\"string\",\"internalType\":\"string\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"function\",\"name\":\"withdraw\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}],\"outputs\":[],\"stateMutability\":\"nonpayable\"},{\"type\":\"event\",\"name\":\"RoleAdminChanged\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"previousAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"newAdminRole\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleGranted\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"event\",\"name\":\"RoleRevoked\",\"inputs\":[{\"name\":\"role\",\"type\":\"bytes32\",\"indexed\":true,\"internalType\":\"bytes32\"},{\"name\":\"account\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"indexed\":true,\"internalType\":\"address\"}],\"anonymous\":false},{\"type\":\"error\",\"name\":\"AccessControlBadConfirmation\",\"inputs\":[]},{\"type\":\"error\",\"name\":\"AccessControlUnauthorizedAccount\",\"inputs\":[{\"name\":\"account\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"neededRole\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"ICS20BankNotAdminRole\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20BankNotBurnRole\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20BankNotMintRole\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20BytesSliceOutOfBounds\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"start\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"end\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20BytesSliceOverflow\",\"inputs\":[{\"name\":\"length\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20EscrowAddressNotFound\",\"inputs\":[{\"name\":\"channelId\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"ICS20FailedERC20Transfer\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20FailedERC20TransferFrom\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"from\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"to\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"amount\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20InsufficientBalance\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"},{\"name\":\"balance\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"needed\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20InvalidReceiver\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20InvalidReceiverAddress\",\"inputs\":[{\"name\":\"receiver\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"ICS20InvalidSender\",\"inputs\":[{\"name\":\"sender\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20InvalidSenderAddress\",\"inputs\":[{\"name\":\"sender\",\"type\":\"string\",\"internalType\":\"string\"}]},{\"type\":\"error\",\"name\":\"ICS20InvalidTokenContract\",\"inputs\":[{\"name\":\"tokenContract\",\"type\":\"address\",\"internalType\":\"address\"}]},{\"type\":\"error\",\"name\":\"ICS20JSONClosingBraceNotFound\",\"inputs\":[{\"name\":\"position\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"}]},{\"type\":\"error\",\"name\":\"ICS20JSONInvalidEscape\",\"inputs\":[{\"name\":\"position\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"}]},{\"type\":\"error\",\"name\":\"ICS20JSONStringClosingDoubleQuoteNotFound\",\"inputs\":[{\"name\":\"position\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"actual\",\"type\":\"bytes1\",\"internalType\":\"bytes1\"}]},{\"type\":\"error\",\"name\":\"ICS20JSONStringUnclosed\",\"inputs\":[{\"name\":\"bz\",\"type\":\"bytes\",\"internalType\":\"bytes\"},{\"name\":\"position\",\"type\":\"uint256\",\"internalType\":\"uint256\"}]},{\"type\":\"error\",\"name\":\"ICS20JSONUnexpectedBytes\",\"inputs\":[{\"name\":\"position\",\"type\":\"uint256\",\"internalType\":\"uint256\"},{\"name\":\"expected\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"},{\"name\":\"actual\",\"type\":\"bytes32\",\"internalType\":\"bytes32\"}]},{\"type\":\"error\",\"name\":\"ICS20UnexpectedVersion\",\"inputs\":[{\"name\":\"version\",\"type\":\"string\",\"internalType\":\"string\"}]}]",
}

Ics20bankMetaData contains all meta data concerning the Ics20bank contract.

Functions

This section is empty.

Types

type Ics20bank

type Ics20bank struct {
	Ics20bankCaller     // Read-only binding to the contract
	Ics20bankTransactor // Write-only binding to the contract
	Ics20bankFilterer   // Log filterer for contract events
}

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

func NewIcs20bank

func NewIcs20bank(address common.Address, backend bind.ContractBackend) (*Ics20bank, error)

NewIcs20bank creates a new instance of Ics20bank, bound to a specific deployed contract.

type Ics20bankCaller

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

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

func NewIcs20bankCaller

func NewIcs20bankCaller(address common.Address, caller bind.ContractCaller) (*Ics20bankCaller, error)

NewIcs20bankCaller creates a new read-only instance of Ics20bank, bound to a specific deployed contract.

func (*Ics20bankCaller) ADMINROLE

func (_Ics20bank *Ics20bankCaller) ADMINROLE(opts *bind.CallOpts) ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankCaller) AddressToDenom added in v0.3.15

func (_Ics20bank *Ics20bankCaller) AddressToDenom(opts *bind.CallOpts, tokenContract common.Address) (string, error)

AddressToDenom is a free data retrieval call binding the contract method 0x95469df8.

Solidity: function addressToDenom(address tokenContract) pure returns(string)

func (*Ics20bankCaller) BalanceOf

func (_Ics20bank *Ics20bankCaller) BalanceOf(opts *bind.CallOpts, account common.Address, denom string) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address account, string denom) view returns(uint256)

func (*Ics20bankCaller) DEFAULTADMINROLE

func (_Ics20bank *Ics20bankCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankCaller) GetRoleAdmin

func (_Ics20bank *Ics20bankCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*Ics20bankCaller) HasRole

func (_Ics20bank *Ics20bankCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*Ics20bankCaller) OPERATORROLE

func (_Ics20bank *Ics20bankCaller) OPERATORROLE(opts *bind.CallOpts) ([32]byte, error)

OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.

Solidity: function OPERATOR_ROLE() view returns(bytes32)

func (*Ics20bankCaller) SupportsInterface

func (_Ics20bank *Ics20bankCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type Ics20bankCallerRaw

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

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

func (*Ics20bankCallerRaw) Call

func (_Ics20bank *Ics20bankCallerRaw) 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 Ics20bankCallerSession

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

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

func (*Ics20bankCallerSession) ADMINROLE

func (_Ics20bank *Ics20bankCallerSession) ADMINROLE() ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankCallerSession) AddressToDenom added in v0.3.15

func (_Ics20bank *Ics20bankCallerSession) AddressToDenom(tokenContract common.Address) (string, error)

AddressToDenom is a free data retrieval call binding the contract method 0x95469df8.

Solidity: function addressToDenom(address tokenContract) pure returns(string)

func (*Ics20bankCallerSession) BalanceOf

func (_Ics20bank *Ics20bankCallerSession) BalanceOf(account common.Address, denom string) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address account, string denom) view returns(uint256)

func (*Ics20bankCallerSession) DEFAULTADMINROLE

func (_Ics20bank *Ics20bankCallerSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankCallerSession) GetRoleAdmin

func (_Ics20bank *Ics20bankCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*Ics20bankCallerSession) HasRole

func (_Ics20bank *Ics20bankCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*Ics20bankCallerSession) OPERATORROLE

func (_Ics20bank *Ics20bankCallerSession) OPERATORROLE() ([32]byte, error)

OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.

Solidity: function OPERATOR_ROLE() view returns(bytes32)

func (*Ics20bankCallerSession) SupportsInterface

func (_Ics20bank *Ics20bankCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

type Ics20bankFilterer

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

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

func NewIcs20bankFilterer

func NewIcs20bankFilterer(address common.Address, filterer bind.ContractFilterer) (*Ics20bankFilterer, error)

NewIcs20bankFilterer creates a new log filterer instance of Ics20bank, bound to a specific deployed contract.

func (*Ics20bankFilterer) FilterRoleAdminChanged

func (_Ics20bank *Ics20bankFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*Ics20bankRoleAdminChangedIterator, error)

FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*Ics20bankFilterer) FilterRoleGranted

func (_Ics20bank *Ics20bankFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*Ics20bankRoleGrantedIterator, error)

FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*Ics20bankFilterer) FilterRoleRevoked

func (_Ics20bank *Ics20bankFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*Ics20bankRoleRevokedIterator, error)

FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*Ics20bankFilterer) ParseRoleAdminChanged

func (_Ics20bank *Ics20bankFilterer) ParseRoleAdminChanged(log types.Log) (*Ics20bankRoleAdminChanged, error)

ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*Ics20bankFilterer) ParseRoleGranted

func (_Ics20bank *Ics20bankFilterer) ParseRoleGranted(log types.Log) (*Ics20bankRoleGranted, error)

ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*Ics20bankFilterer) ParseRoleRevoked

func (_Ics20bank *Ics20bankFilterer) ParseRoleRevoked(log types.Log) (*Ics20bankRoleRevoked, error)

ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

func (*Ics20bankFilterer) WatchRoleAdminChanged

func (_Ics20bank *Ics20bankFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *Ics20bankRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error)

WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff.

Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)

func (*Ics20bankFilterer) WatchRoleGranted

func (_Ics20bank *Ics20bankFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *Ics20bankRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d.

Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)

func (*Ics20bankFilterer) WatchRoleRevoked

func (_Ics20bank *Ics20bankFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *Ics20bankRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error)

WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b.

Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)

type Ics20bankRaw

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

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

func (*Ics20bankRaw) Call

func (_Ics20bank *Ics20bankRaw) 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 (*Ics20bankRaw) Transact

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

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

func (*Ics20bankRaw) Transfer

func (_Ics20bank *Ics20bankRaw) 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 Ics20bankRoleAdminChanged

type Ics20bankRoleAdminChanged struct {
	Role              [32]byte
	PreviousAdminRole [32]byte
	NewAdminRole      [32]byte
	Raw               types.Log // Blockchain specific contextual infos
}

Ics20bankRoleAdminChanged represents a RoleAdminChanged event raised by the Ics20bank contract.

type Ics20bankRoleAdminChangedIterator

type Ics20bankRoleAdminChangedIterator struct {
	Event *Ics20bankRoleAdminChanged // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Ics20bankRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Ics20bank contract.

func (*Ics20bankRoleAdminChangedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*Ics20bankRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*Ics20bankRoleAdminChangedIterator) Next

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.

type Ics20bankRoleGranted

type Ics20bankRoleGranted struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

Ics20bankRoleGranted represents a RoleGranted event raised by the Ics20bank contract.

type Ics20bankRoleGrantedIterator

type Ics20bankRoleGrantedIterator struct {
	Event *Ics20bankRoleGranted // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Ics20bankRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Ics20bank contract.

func (*Ics20bankRoleGrantedIterator) Close

func (it *Ics20bankRoleGrantedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Ics20bankRoleGrantedIterator) Error

func (it *Ics20bankRoleGrantedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Ics20bankRoleGrantedIterator) Next

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.

type Ics20bankRoleRevoked

type Ics20bankRoleRevoked struct {
	Role    [32]byte
	Account common.Address
	Sender  common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

Ics20bankRoleRevoked represents a RoleRevoked event raised by the Ics20bank contract.

type Ics20bankRoleRevokedIterator

type Ics20bankRoleRevokedIterator struct {
	Event *Ics20bankRoleRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

Ics20bankRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Ics20bank contract.

func (*Ics20bankRoleRevokedIterator) Close

func (it *Ics20bankRoleRevokedIterator) Close() error

Close terminates the iteration process, releasing any pending underlying resources.

func (*Ics20bankRoleRevokedIterator) Error

func (it *Ics20bankRoleRevokedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*Ics20bankRoleRevokedIterator) Next

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.

type Ics20bankSession

type Ics20bankSession struct {
	Contract     *Ics20bank        // 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
}

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

func (*Ics20bankSession) ADMINROLE

func (_Ics20bank *Ics20bankSession) ADMINROLE() ([32]byte, error)

ADMINROLE is a free data retrieval call binding the contract method 0x75b238fc.

Solidity: function ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankSession) AddressToDenom added in v0.3.15

func (_Ics20bank *Ics20bankSession) AddressToDenom(tokenContract common.Address) (string, error)

AddressToDenom is a free data retrieval call binding the contract method 0x95469df8.

Solidity: function addressToDenom(address tokenContract) pure returns(string)

func (*Ics20bankSession) BalanceOf

func (_Ics20bank *Ics20bankSession) BalanceOf(account common.Address, denom string) (*big.Int, error)

BalanceOf is a free data retrieval call binding the contract method 0xb9b092c8.

Solidity: function balanceOf(address account, string denom) view returns(uint256)

func (*Ics20bankSession) Burn

func (_Ics20bank *Ics20bankSession) Burn(account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc45b71de.

Solidity: function burn(address account, string denom, uint256 amount) returns()

func (*Ics20bankSession) DEFAULTADMINROLE

func (_Ics20bank *Ics20bankSession) DEFAULTADMINROLE() ([32]byte, error)

DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.

Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)

func (*Ics20bankSession) Deposit

func (_Ics20bank *Ics20bankSession) Deposit(tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf45346dc.

Solidity: function deposit(address tokenContract, uint256 amount, address receiver) returns()

func (*Ics20bankSession) GetRoleAdmin

func (_Ics20bank *Ics20bankSession) GetRoleAdmin(role [32]byte) ([32]byte, error)

GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3.

Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32)

func (*Ics20bankSession) GrantRole

func (_Ics20bank *Ics20bankSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*Ics20bankSession) HasRole

func (_Ics20bank *Ics20bankSession) HasRole(role [32]byte, account common.Address) (bool, error)

HasRole is a free data retrieval call binding the contract method 0x91d14854.

Solidity: function hasRole(bytes32 role, address account) view returns(bool)

func (*Ics20bankSession) Mint

func (_Ics20bank *Ics20bankSession) Mint(account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address account, string denom, uint256 amount) returns()

func (*Ics20bankSession) OPERATORROLE

func (_Ics20bank *Ics20bankSession) OPERATORROLE() ([32]byte, error)

OPERATORROLE is a free data retrieval call binding the contract method 0xf5b541a6.

Solidity: function OPERATOR_ROLE() view returns(bytes32)

func (*Ics20bankSession) RenounceRole

func (_Ics20bank *Ics20bankSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*Ics20bankSession) RevokeRole

func (_Ics20bank *Ics20bankSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*Ics20bankSession) SetOperator

func (_Ics20bank *Ics20bankSession) SetOperator(operator common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address operator) returns()

func (*Ics20bankSession) SupportsInterface

func (_Ics20bank *Ics20bankSession) SupportsInterface(interfaceId [4]byte) (bool, error)

SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.

Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)

func (*Ics20bankSession) TransferFrom

func (_Ics20bank *Ics20bankSession) TransferFrom(from common.Address, to common.Address, denom string, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0xf24dc1da.

Solidity: function transferFrom(address from, address to, string denom, uint256 amount) returns()

func (*Ics20bankSession) Withdraw

func (_Ics20bank *Ics20bankSession) Withdraw(tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address tokenContract, uint256 amount, address receiver) returns()

type Ics20bankTransactor

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

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

func NewIcs20bankTransactor

func NewIcs20bankTransactor(address common.Address, transactor bind.ContractTransactor) (*Ics20bankTransactor, error)

NewIcs20bankTransactor creates a new write-only instance of Ics20bank, bound to a specific deployed contract.

func (*Ics20bankTransactor) Burn

func (_Ics20bank *Ics20bankTransactor) Burn(opts *bind.TransactOpts, account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc45b71de.

Solidity: function burn(address account, string denom, uint256 amount) returns()

func (*Ics20bankTransactor) Deposit

func (_Ics20bank *Ics20bankTransactor) Deposit(opts *bind.TransactOpts, tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf45346dc.

Solidity: function deposit(address tokenContract, uint256 amount, address receiver) returns()

func (*Ics20bankTransactor) GrantRole

func (_Ics20bank *Ics20bankTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*Ics20bankTransactor) Mint

func (_Ics20bank *Ics20bankTransactor) Mint(opts *bind.TransactOpts, account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address account, string denom, uint256 amount) returns()

func (*Ics20bankTransactor) RenounceRole

func (_Ics20bank *Ics20bankTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*Ics20bankTransactor) RevokeRole

func (_Ics20bank *Ics20bankTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*Ics20bankTransactor) SetOperator

func (_Ics20bank *Ics20bankTransactor) SetOperator(opts *bind.TransactOpts, operator common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address operator) returns()

func (*Ics20bankTransactor) TransferFrom

func (_Ics20bank *Ics20bankTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, denom string, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0xf24dc1da.

Solidity: function transferFrom(address from, address to, string denom, uint256 amount) returns()

func (*Ics20bankTransactor) Withdraw

func (_Ics20bank *Ics20bankTransactor) Withdraw(opts *bind.TransactOpts, tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address tokenContract, uint256 amount, address receiver) returns()

type Ics20bankTransactorRaw

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

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

func (*Ics20bankTransactorRaw) Transact

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

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

func (*Ics20bankTransactorRaw) Transfer

func (_Ics20bank *Ics20bankTransactorRaw) 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 Ics20bankTransactorSession

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

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

func (*Ics20bankTransactorSession) Burn

func (_Ics20bank *Ics20bankTransactorSession) Burn(account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Burn is a paid mutator transaction binding the contract method 0xc45b71de.

Solidity: function burn(address account, string denom, uint256 amount) returns()

func (*Ics20bankTransactorSession) Deposit

func (_Ics20bank *Ics20bankTransactorSession) Deposit(tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Deposit is a paid mutator transaction binding the contract method 0xf45346dc.

Solidity: function deposit(address tokenContract, uint256 amount, address receiver) returns()

func (*Ics20bankTransactorSession) GrantRole

func (_Ics20bank *Ics20bankTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)

GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d.

Solidity: function grantRole(bytes32 role, address account) returns()

func (*Ics20bankTransactorSession) Mint

func (_Ics20bank *Ics20bankTransactorSession) Mint(account common.Address, denom string, amount *big.Int) (*types.Transaction, error)

Mint is a paid mutator transaction binding the contract method 0xba7aef43.

Solidity: function mint(address account, string denom, uint256 amount) returns()

func (*Ics20bankTransactorSession) RenounceRole

func (_Ics20bank *Ics20bankTransactorSession) RenounceRole(role [32]byte, callerConfirmation common.Address) (*types.Transaction, error)

RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.

Solidity: function renounceRole(bytes32 role, address callerConfirmation) returns()

func (*Ics20bankTransactorSession) RevokeRole

func (_Ics20bank *Ics20bankTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)

RevokeRole is a paid mutator transaction binding the contract method 0xd547741f.

Solidity: function revokeRole(bytes32 role, address account) returns()

func (*Ics20bankTransactorSession) SetOperator

func (_Ics20bank *Ics20bankTransactorSession) SetOperator(operator common.Address) (*types.Transaction, error)

SetOperator is a paid mutator transaction binding the contract method 0xb3ab15fb.

Solidity: function setOperator(address operator) returns()

func (*Ics20bankTransactorSession) TransferFrom

func (_Ics20bank *Ics20bankTransactorSession) TransferFrom(from common.Address, to common.Address, denom string, amount *big.Int) (*types.Transaction, error)

TransferFrom is a paid mutator transaction binding the contract method 0xf24dc1da.

Solidity: function transferFrom(address from, address to, string denom, uint256 amount) returns()

func (*Ics20bankTransactorSession) Withdraw

func (_Ics20bank *Ics20bankTransactorSession) Withdraw(tokenContract common.Address, amount *big.Int, receiver common.Address) (*types.Transaction, error)

Withdraw is a paid mutator transaction binding the contract method 0x69328dec.

Solidity: function withdraw(address tokenContract, uint256 amount, address receiver) returns()

Jump to

Keyboard shortcuts

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