Documentation
¶
Index ¶
- Variables
- type TokenWrapper
- type TokenWrapperCaller
- func (_TokenWrapper *TokenWrapperCaller) BRIDGEADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) ControlDigitBytes(opts *bind.CallOpts) ([]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) DataBytesSize(opts *bind.CallOpts) (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCaller) GetProps(opts *bind.CallOpts) (struct{ ... }, error)
- func (_TokenWrapper *TokenWrapperCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
- func (_TokenWrapper *TokenWrapperCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error)
- func (_TokenWrapper *TokenWrapperCaller) HrpBytes(opts *bind.CallOpts) ([]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) IsBech32Valid(opts *bind.CallOpts, toChainAddress string) (bool, error)
- func (_TokenWrapper *TokenWrapperCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCaller) Paused(opts *bind.CallOpts) (bool, error)
- func (_TokenWrapper *TokenWrapperCaller) UTokens(opts *bind.CallOpts) (common.Address, error)
- func (_TokenWrapper *TokenWrapperCaller) ValueDivisor(opts *bind.CallOpts) (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCaller) Version(opts *bind.CallOpts) (*big.Int, error)
- type TokenWrapperCallerRaw
- type TokenWrapperCallerSession
- func (_TokenWrapper *TokenWrapperCallerSession) BRIDGEADMINROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) ControlDigitBytes() ([]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) DataBytesSize() (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCallerSession) GetProps() (struct{ ... }, error)
- func (_TokenWrapper *TokenWrapperCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_TokenWrapper *TokenWrapperCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCallerSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_TokenWrapper *TokenWrapperCallerSession) HrpBytes() ([]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) IsBech32Valid(toChainAddress string) (bool, error)
- func (_TokenWrapper *TokenWrapperCallerSession) PAUSERROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperCallerSession) Paused() (bool, error)
- func (_TokenWrapper *TokenWrapperCallerSession) UTokens() (common.Address, error)
- func (_TokenWrapper *TokenWrapperCallerSession) ValueDivisor() (*big.Int, error)
- func (_TokenWrapper *TokenWrapperCallerSession) Version() (*big.Int, error)
- type TokenWrapperFilterer
- func (_TokenWrapper *TokenWrapperFilterer) FilterGenerateUTokens(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, ...) (*TokenWrapperGenerateUTokensIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterGenerateUTokensInBatch(opts *bind.FilterOpts) (*TokenWrapperGenerateUTokensInBatchIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterPaused(opts *bind.FilterOpts) (*TokenWrapperPausedIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, ...) (*TokenWrapperRoleAdminChangedIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*TokenWrapperRoleGrantedIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, ...) (*TokenWrapperRoleRevokedIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterSetFees(opts *bind.FilterOpts, depositFee []*big.Int, withdrawFee []*big.Int) (*TokenWrapperSetFeesIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterSetMinimumValues(opts *bind.FilterOpts, minDeposit []*big.Int, minWithdraw []*big.Int) (*TokenWrapperSetMinimumValuesIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterSetUTokensContract(opts *bind.FilterOpts, _contract []common.Address) (*TokenWrapperSetUTokensContractIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TokenWrapperUnpausedIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterWithdrawUTokens(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, ...) (*TokenWrapperWithdrawUTokensIterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) FilterWithdrawUTokensV2(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, ...) (*TokenWrapperWithdrawUTokensV2Iterator, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseGenerateUTokens(log types.Log) (*TokenWrapperGenerateUTokens, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseGenerateUTokensInBatch(log types.Log) (*TokenWrapperGenerateUTokensInBatch, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParsePaused(log types.Log) (*TokenWrapperPaused, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseRoleAdminChanged(log types.Log) (*TokenWrapperRoleAdminChanged, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseRoleGranted(log types.Log) (*TokenWrapperRoleGranted, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseRoleRevoked(log types.Log) (*TokenWrapperRoleRevoked, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseSetFees(log types.Log) (*TokenWrapperSetFees, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseSetMinimumValues(log types.Log) (*TokenWrapperSetMinimumValues, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseSetUTokensContract(log types.Log) (*TokenWrapperSetUTokensContract, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseUnpaused(log types.Log) (*TokenWrapperUnpaused, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseWithdrawUTokens(log types.Log) (*TokenWrapperWithdrawUTokens, error)
- func (_TokenWrapper *TokenWrapperFilterer) ParseWithdrawUTokensV2(log types.Log) (*TokenWrapperWithdrawUTokensV2, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchGenerateUTokens(opts *bind.WatchOpts, sink chan<- *TokenWrapperGenerateUTokens, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchGenerateUTokensInBatch(opts *bind.WatchOpts, sink chan<- *TokenWrapperGenerateUTokensInBatch) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TokenWrapperPaused) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleAdminChanged, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleGranted, role [][32]byte, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleRevoked, role [][32]byte, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchSetFees(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetFees, depositFee []*big.Int, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchSetMinimumValues(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetMinimumValues, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchSetUTokensContract(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetUTokensContract, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TokenWrapperUnpaused) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchWithdrawUTokens(opts *bind.WatchOpts, sink chan<- *TokenWrapperWithdrawUTokens, ...) (event.Subscription, error)
- func (_TokenWrapper *TokenWrapperFilterer) WatchWithdrawUTokensV2(opts *bind.WatchOpts, sink chan<- *TokenWrapperWithdrawUTokensV2, ...) (event.Subscription, error)
- type TokenWrapperGenerateUTokens
- type TokenWrapperGenerateUTokensInBatch
- type TokenWrapperGenerateUTokensInBatchIterator
- type TokenWrapperGenerateUTokensIterator
- type TokenWrapperPaused
- type TokenWrapperPausedIterator
- type TokenWrapperRaw
- func (_TokenWrapper *TokenWrapperRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, ...) error
- func (_TokenWrapper *TokenWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)
- type TokenWrapperRoleAdminChanged
- type TokenWrapperRoleAdminChangedIterator
- type TokenWrapperRoleGranted
- type TokenWrapperRoleGrantedIterator
- type TokenWrapperRoleRevoked
- type TokenWrapperRoleRevokedIterator
- type TokenWrapperSession
- func (_TokenWrapper *TokenWrapperSession) BRIDGEADMINROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperSession) ControlDigitBytes() ([]byte, error)
- func (_TokenWrapper *TokenWrapperSession) DEFAULTADMINROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperSession) DataBytesSize() (*big.Int, error)
- func (_TokenWrapper *TokenWrapperSession) GenerateUTokens(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) GenerateUTokensInBatch(to []common.Address, amount []*big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) GetProps() (struct{ ... }, error)
- func (_TokenWrapper *TokenWrapperSession) GetRoleAdmin(role [32]byte) ([32]byte, error)
- func (_TokenWrapper *TokenWrapperSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
- func (_TokenWrapper *TokenWrapperSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
- func (_TokenWrapper *TokenWrapperSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) HasRole(role [32]byte, account common.Address) (bool, error)
- func (_TokenWrapper *TokenWrapperSession) HrpBytes() ([]byte, error)
- func (_TokenWrapper *TokenWrapperSession) Initialize(uAddress common.Address, bridgeAdminAddress common.Address, ...) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) IsBech32Valid(toChainAddress string) (bool, error)
- func (_TokenWrapper *TokenWrapperSession) PAUSERROLE() ([32]byte, error)
- func (_TokenWrapper *TokenWrapperSession) Pause() (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) Paused() (bool, error)
- func (_TokenWrapper *TokenWrapperSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) SetFees(depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) SetMinimumValues(minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) SetUTokensContract(uAddress common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) UTokens() (common.Address, error)
- func (_TokenWrapper *TokenWrapperSession) Unpause() (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperSession) ValueDivisor() (*big.Int, error)
- func (_TokenWrapper *TokenWrapperSession) Version() (*big.Int, error)
- func (_TokenWrapper *TokenWrapperSession) WithdrawUTokens(from common.Address, tokens *big.Int, toChainAddress string) (*types.Transaction, error)
- type TokenWrapperSetFees
- type TokenWrapperSetFeesIterator
- type TokenWrapperSetMinimumValues
- type TokenWrapperSetMinimumValuesIterator
- type TokenWrapperSetUTokensContract
- type TokenWrapperSetUTokensContractIterator
- type TokenWrapperTransactor
- func (_TokenWrapper *TokenWrapperTransactor) GenerateUTokens(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) GenerateUTokensInBatch(opts *bind.TransactOpts, to []common.Address, amount []*big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) Initialize(opts *bind.TransactOpts, uAddress common.Address, ...) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) SetFees(opts *bind.TransactOpts, depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) SetMinimumValues(opts *bind.TransactOpts, minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) SetUTokensContract(opts *bind.TransactOpts, uAddress common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactor) WithdrawUTokens(opts *bind.TransactOpts, from common.Address, tokens *big.Int, ...) (*types.Transaction, error)
- type TokenWrapperTransactorRaw
- type TokenWrapperTransactorSession
- func (_TokenWrapper *TokenWrapperTransactorSession) GenerateUTokens(to common.Address, amount *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) GenerateUTokensInBatch(to []common.Address, amount []*big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) Initialize(uAddress common.Address, bridgeAdminAddress common.Address, ...) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) Pause() (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) SetFees(depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) SetMinimumValues(minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) SetUTokensContract(uAddress common.Address) (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) Unpause() (*types.Transaction, error)
- func (_TokenWrapper *TokenWrapperTransactorSession) WithdrawUTokens(from common.Address, tokens *big.Int, toChainAddress string) (*types.Transaction, error)
- type TokenWrapperUnpaused
- type TokenWrapperUnpausedIterator
- type TokenWrapperWithdrawUTokens
- type TokenWrapperWithdrawUTokensIterator
- type TokenWrapperWithdrawUTokensV2
- type TokenWrapperWithdrawUTokensV2Iterator
Constants ¶
This section is empty.
Variables ¶
var TokenWrapperABI = TokenWrapperMetaData.ABI
TokenWrapperABI is the input ABI used to generate the binding from. Deprecated: Use TokenWrapperMetaData.ABI instead.
var TokenWrapperBin = TokenWrapperMetaData.Bin
TokenWrapperBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TokenWrapperMetaData.Bin instead.
var TokenWrapperMetaData = &bind.MetaData{
ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"accountAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"finalTokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"GenerateUTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"accountAddress\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"tokens\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"finalTokens\",\"type\":\"uint256[]\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"GenerateUTokensInBatch\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"depositFee\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"withdrawFee\",\"type\":\"uint256\"}],\"name\":\"SetFees\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"minDeposit\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"minWithdraw\",\"type\":\"uint256\"}],\"name\":\"SetMinimumValues\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"_contract\",\"type\":\"address\"}],\"name\":\"SetUTokensContract\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"accountAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"finalTokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"string\",\"name\":\"toChainAddress\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"WithdrawUTokens\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"accountAddress\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"finalTokens\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"string\",\"name\":\"toChainAddress\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"WithdrawUTokensV2\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"BRIDGE_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_uTokens\",\"outputs\":[{\"internalType\":\"contractIUTokensV2\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_valueDivisor\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_version\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"controlDigitBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dataBytesSize\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"generateUTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"to\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amount\",\"type\":\"uint256[]\"}],\"name\":\"generateUTokensInBatch\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getProps\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"depositFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minDeposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minWithdraw\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"valueDivisor\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"hrpBytes\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"uAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"bridgeAdminAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"pauserAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"valueDivisor\",\"type\":\"uint256\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"toChainAddress\",\"type\":\"string\"}],\"name\":\"isBech32Valid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"isAddressValid\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"depositFee\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"withdrawFee\",\"type\":\"uint256\"}],\"name\":\"setFees\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"minDeposit\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"minWithdraw\",\"type\":\"uint256\"}],\"name\":\"setMinimumValues\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"uAddress\",\"type\":\"address\"}],\"name\":\"setUTokensContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"success\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokens\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"toChainAddress\",\"type\":\"string\"}],\"name\":\"withdrawUTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
Bin: "0x608060405234801561001057600080fd5b506141db806100206000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638456cb59116100f9578063cf756fdf11610097578063e3ac914b11610071578063e3ac914b14610981578063e63ab1e91461099f578063e7fa0a32146109bd578063ec1893b414610b09576101c4565b8063cf756fdf14610822578063d37f5598146108b0578063d547741f14610933576101c4565b806391d14854116100d357806391d14854146106db578063a217fddf1461073f578063a53dcd721461075d578063ca15c873146107e0576101c4565b80638456cb59146105885780638f001d4e146105a85780639010d07c14610679576101c4565b80633e118dbe1161016657806351db00e71161014057806351db00e7146104c85780635c975abb14610516578063728a99ee1461053657806378a2f07414610554576101c4565b80633e118dbe146103a55780633f4ba83a146103c3578063428bee9e146103e3576101c4565b806322dd9bc3116101a257806322dd9bc314610279578063248a9ca3146102c75780632f2ff15d1461030957806336568abe14610357576101c4565b80630b78f9c0146101c9578063118c38c71461021757806321bdf9e514610235575b600080fd5b6101ff600480360360408110156101df57600080fd5b810190808035906020019092919080359060200190929190505050610b43565b60405180821515815260200191505060405180910390f35b61021f610cd3565b6040518082815260200191505060405180910390f35b6102776004803603602081101561024b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cf7565b005b6102c56004803603604081101561028f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e04565b005b6102f3600480360360208110156102dd57600080fd5b8101908080359060200190929190505050610f85565b6040518082815260200191505060405180910390f35b6103556004803603604081101561031f57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fa5565b005b6103a36004803603604081101561036d57600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061102f565b005b6103ad6110c8565b6040518082815260200191505060405180910390f35b6103cb6110ce565b60405180821515815260200191505060405180910390f35b6104c6600480360360608110156103f957600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561044057600080fd5b82018360208201111561045257600080fd5b8035906020019184600183028401116401000000008311171561047457600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611182565b005b6104fe600480360360408110156104de57600080fd5b8101908080359060200190929190803590602001909291905050506117fd565b60405180821515815260200191505060405180910390f35b61051e6119b9565b60405180821515815260200191505060405180910390f35b61053e6119d0565b6040518082815260200191505060405180910390f35b61055c6119d6565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105906119fc565b60405180821515815260200191505060405180910390f35b610661600480360360208110156105be57600080fd5b81019080803590602001906401000000008111156105db57600080fd5b8201836020820111156105ed57600080fd5b8035906020019184600183028401116401000000008311171561060f57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611ab0565b60405180821515815260200191505060405180910390f35b6106af6004803603604081101561068f57600080fd5b810190808035906020019092919080359060200190929190505050611c06565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b610727600480360360408110156106f157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611c38565b60405180821515815260200191505060405180910390f35b610747611c6a565b6040518082815260200191505060405180910390f35b610765611c71565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107a557808201518184015260208101905061078a565b50505050905090810190601f1680156107d25780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61080c600480360360208110156107f657600080fd5b8101908080359060200190929190505050611d0f565b6040518082815260200191505060405180910390f35b6108ae6004803603608081101561083857600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611d36565b005b6108b8611f6c565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156108f85780820151818401526020810190506108dd565b50505050905090810190601f1680156109255780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b61097f6004803603604081101561094957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919050505061200a565b005b610989612094565b6040518082815260200191505060405180910390f35b6109a761209a565b6040518082815260200191505060405180910390f35b610b07600480360360408110156109d357600080fd5b81019080803590602001906401000000008111156109f057600080fd5b820183602082011115610a0257600080fd5b80359060200191846020830284011164010000000083111715610a2457600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050919291929080359060200190640100000000811115610a8457600080fd5b820183602082011115610a9657600080fd5b80359060200191846020830284011164010000000083111715610ab857600080fd5b919080806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505091929192905050506120be565b005b610b1161242f565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6000610b596000801b610b54612457565b611c38565b610bcb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545731000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b610be16064609c5461245f90919063ffffffff16565b83111580610bef5750600083145b8015610c1b5750610c0c6064609c5461245f90919063ffffffff16565b82111580610c1a5750600082145b5b610c8d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545732000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b82609a8190555081609b8190555081837f3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d153260405160405180910390a36001905092915050565b7f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf81565b610d0b6000801b610d06612457565b611c38565b610d7d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545736000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167ff745c285f36f88bea6af14d4d0f33dd9350cef7895216c1615b1caaee7857e0c60405160405180910390a250565b610e0c6119b9565b15610e7f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b610eb07f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf610eab612457565b611c38565b610f22576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731300000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000610f2e83836124e5565b905080828473ffffffffffffffffffffffffffffffffffffffff167f572f067f64ae57ed816b7e9b5424a87d97035d68384f149586cba42b4192c9d8426040518082815260200191505060405180910390a4505050565b600060656000838152602001908152602001600020600201549050919050565b610fcc6065600084815260200190815260200160002060020154610fc7612457565b611c38565b611021576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806140c9602f913960400191505060405180910390fd5b61102b8282612601565b5050565b611037612457565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146110ba576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180614177602f913960400191505060405180910390fd5b6110c48282612695565b5050565b60a05481565b60006111017f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6110fc612457565b611c38565b611173576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545738000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b61117b612729565b6001905090565b61118a6119b9565b156111fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b611205612457565b73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16146112a5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731370000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60995482101561131d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731340000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600061146c609d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156113b85780601f1061138d576101008083540402835291602001916113b8565b820191906000526020600020905b81548152906001019060200180831161139b57829003601f168201915b5050505050609e8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156114535780601f1061142857610100808354040283529160200191611453565b820191906000526020600020905b81548152906001019060200180831161143657829003601f168201915b5050505050609f5485612814909392919063ffffffff16565b905060011515811515146114e8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731350000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561157357600080fd5b505afa158015611587573d6000803e3d6000fd5b505050506040513d602081101561159d57600080fd5b8101908080519060200190929190505050905060006115de60646115d0609b54609c54896129629092919063ffffffff16565b612a4290919063ffffffff16565b905060006115f58287612acb90919063ffffffff16565b90508083101561166d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731360000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac88836040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561170057600080fd5b505af1158015611714573d6000803e3d6000fd5b505050506040513d602081101561172a57600080fd5b810190808051906020019092919050505050846040518082805190602001908083835b60208310611770578051825260208201915060208101905060208303925061174d565b6001836020036101000a0380198251168184511680821785525050505050509050019150506040518091039020868873ffffffffffffffffffffffffffffffffffffffff167f0f4363f6961ed151f2cf8f720784b70c0f5573f216fc939f67f2a5d12698e02e8442604051808381526020018281526020019250505060405180910390a450505050505050565b60006118136000801b61180e612457565b611c38565b611885576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545733000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60018310156118fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545734000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001821015611973576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545735000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b826098819055508160998190555081837fa94d40347449ea19b873d64ed55c99772194c49791e82be5c2dc24e4c0044fe360405160405180910390a36001905092915050565b6000603360009054906101000a900460ff16905090565b609c5481565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000611a2f7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611a2a612457565b611c38565b611aa1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545737000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b611aa9612b53565b6001905090565b6000611bff609d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611b4b5780601f10611b2057610100808354040283529160200191611b4b565b820191906000526020600020905b815481529060010190602001808311611b2e57829003601f168201915b5050505050609e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611be65780601f10611bbb57610100808354040283529160200191611be6565b820191906000526020600020905b815481529060010190602001808311611bc957829003601f168201915b5050505050609f5485612814909392919063ffffffff16565b9050919050565b6000611c308260656000868152602001908152602001600020600001612c3f90919063ffffffff16565b905092915050565b6000611c628260656000868152602001908152602001600020600001612c5990919063ffffffff16565b905092915050565b6000801b81565b609e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d075780601f10611cdc57610100808354040283529160200191611d07565b820191906000526020600020905b815481529060010190602001808311611cea57829003601f168201915b505050505081565b6000611d2f60656000848152602001908152602001600020600001612c89565b9050919050565b600060019054906101000a900460ff1680611d555750611d54612c9e565b5b80611d6b575060008054906101000a900460ff16155b611dc0576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015611e10576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611e18612caf565b611e20612dbd565b611e346000801b611e2f612457565b612ecb565b611e5e7f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf85612ecb565b611e887f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a84612ecb565b611e9185610cf7565b611e9c6001806117fd565b5081609c819055506040518060400160405280600681526020017f636f736d6f730000000000000000000000000000000000000000000000000000815250609d9080519060200190611eef929190613ffb565b506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250609e9080519060200190611f3b929190613ffb565b506026609f819055508015611f655760008060016101000a81548160ff0219169083151502179055505b5050505050565b609d8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156120025780601f10611fd757610100808354040283529160200191612002565b820191906000526020600020905b815481529060010190602001808311611fe557829003601f168201915b505050505081565b612031606560008481526020019081526020016000206002015461202c612457565b611c38565b612086576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806140f86030913960400191505060405180910390fd5b6120908282612695565b5050565b609f5481565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b6120c66119b9565b15612139576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b80518251146121b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731310000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6121e17f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf6121dc612457565b611c38565b612253576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731320000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600080835167ffffffffffffffff8111801561226e57600080fd5b5060405190808252806020026020018201604052801561229d5781602001602082028036833780820191505090505b509050600084519050600092505b80831015612316576122e38584815181106122c257fe5b60200260200101518585815181106122d657fe5b60200260200101516124e5565b8284815181106122ef57fe5b60200260200101818152505061230f600184612acb90919063ffffffff16565b92506122ab565b7fff03029439b5b79825ca34bca1b453f01e01935bdde5210a8af22f19705ca1a38585844260405180806020018060200180602001858152602001848103845288818151815260200191508051906020019060200280838360005b8381101561238c578082015181840152602081019050612371565b50505050905001848103835287818151815260200191508051906020019060200280838360005b838110156123ce5780820151818401526020810190506123b3565b50505050905001848103825286818151815260200191508051906020019060200280838360005b838110156124105780820151818401526020810190506123f5565b5050505090500197505050505050505060405180910390a15050505050565b6000806000806000609a549450609b54935060985492506099549150609c5490509091929394565b600033905090565b60008083141561247257600090506124df565b600082840290508284828161248357fe5b04146124da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260218152602001806141566021913960400191505060405180910390fd5b809150505b92915050565b6000806125146064612506609a54609c54876129629092919063ffffffff16565b612a4290919063ffffffff16565b90506125298184612ed990919063ffffffff16565b9150609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1985846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b1580156125be57600080fd5b505af11580156125d2573d6000803e3d6000fd5b505050506040513d60208110156125e857600080fd5b8101908080519060200190929190505050505092915050565b6126298160656000858152602001908152602001600020600001612f5c90919063ffffffff16565b1561269157612636612457565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b6126bd8160656000858152602001908152602001600020600001612f8c90919063ffffffff16565b15612725576126ca612457565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6127316119b9565b6127a3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa6127e7612457565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b60008085905060006128336000875184612fbc9092919063ffffffff16565b9050612848868261312e90919063ffffffff16565b6128575760009250505061295a565b60006128708251600185612fbc9092919063ffffffff16565b9050612885868261312e90919063ffffffff16565b612895576000935050505061295a565b60006128b76001845101600185518751030386612fbc9092919063ffffffff16565b9050858151146128ce57600094505050505061295a565b60006128f36001855101600186516006895103030387612fbc9092919063ffffffff16565b905060006129008261319b565b905060008151141561291b576000965050505050505061295a565b600061292686613374565b905060006129348284613414565b9050600061294b828761312e90919063ffffffff16565b90508099505050505050505050505b949350505050565b6000806000612971868661353c565b915091506000848061297f57fe5b868809905082811115612993576001820391505b808303925060008214156129b5578483816129aa57fe5b049350505050612a3b565b848210612a2a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f46756c6c4d6174683a2046554c4c4449565f4f564552464c4f5700000000000081525060200191505060405180910390fd5b612a3583838761358f565b93505050505b9392505050565b6000808211612ab9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612ac257fe5b04905092915050565b600080828401905083811015612b49576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601b8152602001807f536166654d6174683a206164646974696f6e206f766572666c6f77000000000081525060200191505060405180910390fd5b8091505092915050565b612b5b6119b9565b15612bce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612c12612457565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6000612c4e836000018361362c565b60001c905092915050565b6000612c81836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6136af565b905092915050565b6000612c97826000016136d2565b9050919050565b6000612ca9306136e3565b15905090565b600060019054906101000a900460ff1680612cce5750612ccd612c9e565b5b80612ce4575060008054906101000a900460ff16155b612d39576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612d89576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612d916136f6565b612d996137f4565b8015612dba5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612ddc5750612ddb612c9e565b5b80612df2575060008054906101000a900460ff16155b612e47576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612e97576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612e9f6136f6565b612ea76138f2565b8015612ec85760008060016101000a81548160ff0219169083151502179055505b50565b612ed58282612601565b5050565b600082821115612f51576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b6000612f84836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613a0b565b905092915050565b6000612fb4836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613a7b565b905092915050565b606081601f83011015613037576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f736c6963655f6f766572666c6f7700000000000000000000000000000000000081525060200191505060405180910390fd5b818301845110156130b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f736c6963655f6f75744f66426f756e647300000000000000000000000000000081525060200191505060405180910390fd5b60608215600081146130d15760405191506000825260208201604052613122565b6040519150601f8416801560200281840101858101878315602002848b0101015b8183101561310f57805183526020830192506020810190506130f2565b50868552601f19601f8301166040525050505b50809150509392505050565b600080600190508351835181146001811461314c576000925061318f565b600160208701838101602088015b60028483851001141561318a5780518351146131795760009650600093505b60208301925060208101905061315a565b505050505b50508091505092915050565b6060815167ffffffffffffffff811180156131b557600080fd5b506040519080825280602002602001820160405280156131e45781602001602082028036833780820191505090505b5090506060600080600090505b845181101561336b57600091505b6040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c815250518210156132fc576040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c815250828151811061327e57fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168582815181106132b757fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614156132ef576132fc565b81806001019250506131ff565b6040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c815250518214156133455782935050505061336f565b8184828151811061335257fe5b60200260200101818152505080806001019150506131f1565b5050505b919050565b6060815167ffffffffffffffff8111801561338e57600080fd5b506040519080825280602002602001820160405280156133bd5781602001602082028036833780820191505090505b50905060005b825181101561340e578281815181106133d857fe5b602001015160f81c60f81b60f81c60ff168282815181106133f557fe5b60200260200101818152505080806001019150506133c3565b50919050565b6060600061342b836134268686613b63565b613c2e565b90506000815167ffffffffffffffff8111801561344757600080fd5b506040519080825280601f01601f19166020018201604052801561347a5781602001600182028036833780820191505090505b50905060005b8251811015613530576040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c8152508382815181106134cb57fe5b6020026020010151815181106134dd57fe5b602001015160f81c60f81b8282815181106134f457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053508080600101915050613480565b50809250505092915050565b60008060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8061356957fe5b84860990508385029250828103915082811015613587576001820391505b509250929050565b60008082600003831690508083816135a357fe5b0492508085816135af57fe5b04945060018182600003816135c057fe5b04018402850194506000600190508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808602925050509392505050565b60008183600001805490501161368d576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260228152602001806140a76022913960400191505060405180910390fd5b82600001828154811061369c57fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080823b905060008111915050919050565b600060019054906101000a900460ff16806137155750613714612c9e565b5b8061372b575060008054906101000a900460ff16155b613780576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156137d0576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156137f15760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806138135750613812612c9e565b5b80613829575060008054906101000a900460ff16155b61387e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156138ce576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156138ef5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff16806139115750613910612c9e565b5b80613927575060008054906101000a900460ff16155b61397c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614128602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156139cc576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000603360006101000a81548160ff0219169083151502179055508015613a085760008060016101000a81548160ff0219169083151502179055505b50565b6000613a1783836136af565b613a70578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613a75565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114613b575760006001820390506000600186600001805490500390506000866000018281548110613ac657fe5b9060005260206000200154905080876000018481548110613ae357fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480613b1b57fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613b5d565b60009150505b92915050565b60606000613b85613b7c613b7686613d19565b85613c2e565b60006006613e2a565b905060006001613b9483613f03565b1890506000600667ffffffffffffffff81118015613bb157600080fd5b50604051908082528060200260200182016040528015613be05781602001602082028036833780820191505090505b50905060005b6006811015613c2157601f8160050360050284901c16828281518110613c0857fe5b6020026020010181815250508080600101915050613be6565b5080935050505092915050565b60606000825184510167ffffffffffffffff81118015613c4d57600080fd5b50604051908082528060200260200182016040528015613c7c5781602001602082028036833780820191505090505b50905060005b8451811015613cc457848181518110613c9757fe5b6020026020010151828281518110613cab57fe5b6020026020010181815250508080600101915050613c82565b60005b8451811015613d0d57848180600101925081518110613ce257fe5b6020026020010151838380600101945081518110613cfc57fe5b602002602001018181525050613cc7565b82935050505092915050565b60606000600183518451010167ffffffffffffffff81118015613d3b57600080fd5b50604051908082528060200260200182016040528015613d6a5781602001602082028036833780820191505090505b50905060005b8351811015613db6576005848281518110613d8757fe5b6020026020010151901c828281518110613d9d57fe5b6020026020010181815250508080600101915050613d70565b50600081845181518110613dc657fe5b60200260200101818152505060005b8351811015613e2057601f848281518110613dec57fe5b602002602001015116826001865184010181518110613e0757fe5b6020026020010181815250508080600101915050613dd5565b5080915050919050565b606060008285510167ffffffffffffffff81118015613e4857600080fd5b50604051908082528060200260200182016040528015613e775781602001602082028036833780820191505090505b50905060005b8551811015613ebf57858181518110613e9257fe5b6020026020010151828281518110613ea657fe5b6020026020010181815250508080600101915050613e7d565b60005b84811015613ef65785838380600101945081518110613edd57fe5b6020026020010181815250508080600101915050613ec2565b8293505050509392505050565b6000806040518060a00160405280633b6a57b263ffffffff1681526020016326508e6d63ffffffff168152602001631ea119fa63ffffffff168152602001633d4233dd63ffffffff168152602001632a1462b363ffffffff16815250905060006001905060005b8451811015613ff0576000601983901c9050858281518110613f8857fe5b602002602001015160056301ffffff8516901b18925060005b6005811015613fe1576001808284901c161415613fd457848160058110613fc457fe5b602002015163ffffffff16841893505b8080600101915050613fa1565b50508080600101915050613f6a565b508092505050919050565b828054600181600116156101000203166002900490600052602060002090601f0160209004810192826140315760008555614078565b82601f1061404a57805160ff1916838001178555614078565b82800160010185558215614078579182015b8281111561407757825182559160200191906001019061405c565b5b5090506140859190614089565b5090565b5b808211156140a257600081600090555060010161408a565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a2646970667358221220d5bf92b40e695d085d78633521040088f68de0aa0a566d7d99655dd7a9303dce64736f6c63430007060033",
}
TokenWrapperMetaData contains all meta data concerning the TokenWrapper contract.
Functions ¶
This section is empty.
Types ¶
type TokenWrapper ¶
type TokenWrapper struct {
TokenWrapperCaller // Read-only binding to the contract
TokenWrapperTransactor // Write-only binding to the contract
TokenWrapperFilterer // Log filterer for contract events
}
TokenWrapper is an auto generated Go binding around an Ethereum contract.
func DeployTokenWrapper ¶
func DeployTokenWrapper(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *TokenWrapper, error)
DeployTokenWrapper deploys a new Ethereum contract, binding an instance of TokenWrapper to it.
func NewTokenWrapper ¶
func NewTokenWrapper(address common.Address, backend bind.ContractBackend) (*TokenWrapper, error)
NewTokenWrapper creates a new instance of TokenWrapper, bound to a specific deployed contract.
type TokenWrapperCaller ¶
type TokenWrapperCaller struct {
// contains filtered or unexported fields
}
TokenWrapperCaller is an auto generated read-only Go binding around an Ethereum contract.
func NewTokenWrapperCaller ¶
func NewTokenWrapperCaller(address common.Address, caller bind.ContractCaller) (*TokenWrapperCaller, error)
NewTokenWrapperCaller creates a new read-only instance of TokenWrapper, bound to a specific deployed contract.
func (*TokenWrapperCaller) BRIDGEADMINROLE ¶
func (_TokenWrapper *TokenWrapperCaller) BRIDGEADMINROLE(opts *bind.CallOpts) ([32]byte, error)
BRIDGEADMINROLE is a free data retrieval call binding the contract method 0x118c38c7.
Solidity: function BRIDGE_ADMIN_ROLE() view returns(bytes32)
func (*TokenWrapperCaller) ControlDigitBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCaller) ControlDigitBytes(opts *bind.CallOpts) ([]byte, error)
ControlDigitBytes is a free data retrieval call binding the contract method 0xa53dcd72.
Solidity: function controlDigitBytes() view returns(bytes)
func (*TokenWrapperCaller) DEFAULTADMINROLE ¶
func (_TokenWrapper *TokenWrapperCaller) 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 (*TokenWrapperCaller) DataBytesSize ¶ added in v0.5.1
DataBytesSize is a free data retrieval call binding the contract method 0xe3ac914b.
Solidity: function dataBytesSize() view returns(uint256)
func (*TokenWrapperCaller) GetProps ¶
func (_TokenWrapper *TokenWrapperCaller) GetProps(opts *bind.CallOpts) (struct { DepositFee *big.Int WithdrawFee *big.Int MinDeposit *big.Int MinWithdraw *big.Int ValueDivisor *big.Int }, error)
GetProps is a free data retrieval call binding the contract method 0xec1893b4.
Solidity: function getProps() view returns(uint256 depositFee, uint256 withdrawFee, uint256 minDeposit, uint256 minWithdraw, uint256 valueDivisor)
func (*TokenWrapperCaller) GetRoleAdmin ¶
func (_TokenWrapper *TokenWrapperCaller) 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 (*TokenWrapperCaller) GetRoleMember ¶
func (_TokenWrapper *TokenWrapperCaller) GetRoleMember(opts *bind.CallOpts, role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*TokenWrapperCaller) GetRoleMemberCount ¶
func (_TokenWrapper *TokenWrapperCaller) GetRoleMemberCount(opts *bind.CallOpts, role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*TokenWrapperCaller) HasRole ¶
func (_TokenWrapper *TokenWrapperCaller) 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 (*TokenWrapperCaller) HrpBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCaller) HrpBytes(opts *bind.CallOpts) ([]byte, error)
HrpBytes is a free data retrieval call binding the contract method 0xd37f5598.
Solidity: function hrpBytes() view returns(bytes)
func (*TokenWrapperCaller) IsBech32Valid ¶ added in v0.2.1
func (_TokenWrapper *TokenWrapperCaller) IsBech32Valid(opts *bind.CallOpts, toChainAddress string) (bool, error)
IsBech32Valid is a free data retrieval call binding the contract method 0x8f001d4e.
Solidity: function isBech32Valid(string toChainAddress) view returns(bool isAddressValid)
func (*TokenWrapperCaller) PAUSERROLE ¶
func (_TokenWrapper *TokenWrapperCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error)
PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.
Solidity: function PAUSER_ROLE() view returns(bytes32)
func (*TokenWrapperCaller) Paused ¶
func (_TokenWrapper *TokenWrapperCaller) Paused(opts *bind.CallOpts) (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*TokenWrapperCaller) UTokens ¶ added in v0.5.1
UTokens is a free data retrieval call binding the contract method 0x78a2f074.
Solidity: function _uTokens() view returns(address)
func (*TokenWrapperCaller) ValueDivisor ¶ added in v0.5.1
ValueDivisor is a free data retrieval call binding the contract method 0x728a99ee.
Solidity: function _valueDivisor() view returns(uint256)
type TokenWrapperCallerRaw ¶
type TokenWrapperCallerRaw struct {
Contract *TokenWrapperCaller // Generic read-only contract binding to access the raw methods on
}
TokenWrapperCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
func (*TokenWrapperCallerRaw) Call ¶
func (_TokenWrapper *TokenWrapperCallerRaw) 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 TokenWrapperCallerSession ¶
type TokenWrapperCallerSession struct {
Contract *TokenWrapperCaller // Generic contract caller binding to set the session for
CallOpts bind.CallOpts // Call options to use throughout this session
}
TokenWrapperCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.
func (*TokenWrapperCallerSession) BRIDGEADMINROLE ¶
func (_TokenWrapper *TokenWrapperCallerSession) BRIDGEADMINROLE() ([32]byte, error)
BRIDGEADMINROLE is a free data retrieval call binding the contract method 0x118c38c7.
Solidity: function BRIDGE_ADMIN_ROLE() view returns(bytes32)
func (*TokenWrapperCallerSession) ControlDigitBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCallerSession) ControlDigitBytes() ([]byte, error)
ControlDigitBytes is a free data retrieval call binding the contract method 0xa53dcd72.
Solidity: function controlDigitBytes() view returns(bytes)
func (*TokenWrapperCallerSession) DEFAULTADMINROLE ¶
func (_TokenWrapper *TokenWrapperCallerSession) 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 (*TokenWrapperCallerSession) DataBytesSize ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCallerSession) DataBytesSize() (*big.Int, error)
DataBytesSize is a free data retrieval call binding the contract method 0xe3ac914b.
Solidity: function dataBytesSize() view returns(uint256)
func (*TokenWrapperCallerSession) GetProps ¶
func (_TokenWrapper *TokenWrapperCallerSession) GetProps() (struct { DepositFee *big.Int WithdrawFee *big.Int MinDeposit *big.Int MinWithdraw *big.Int ValueDivisor *big.Int }, error)
GetProps is a free data retrieval call binding the contract method 0xec1893b4.
Solidity: function getProps() view returns(uint256 depositFee, uint256 withdrawFee, uint256 minDeposit, uint256 minWithdraw, uint256 valueDivisor)
func (*TokenWrapperCallerSession) GetRoleAdmin ¶
func (_TokenWrapper *TokenWrapperCallerSession) 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 (*TokenWrapperCallerSession) GetRoleMember ¶
func (_TokenWrapper *TokenWrapperCallerSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*TokenWrapperCallerSession) GetRoleMemberCount ¶
func (_TokenWrapper *TokenWrapperCallerSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*TokenWrapperCallerSession) HasRole ¶
func (_TokenWrapper *TokenWrapperCallerSession) 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 (*TokenWrapperCallerSession) HrpBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCallerSession) HrpBytes() ([]byte, error)
HrpBytes is a free data retrieval call binding the contract method 0xd37f5598.
Solidity: function hrpBytes() view returns(bytes)
func (*TokenWrapperCallerSession) IsBech32Valid ¶ added in v0.2.1
func (_TokenWrapper *TokenWrapperCallerSession) IsBech32Valid(toChainAddress string) (bool, error)
IsBech32Valid is a free data retrieval call binding the contract method 0x8f001d4e.
Solidity: function isBech32Valid(string toChainAddress) view returns(bool isAddressValid)
func (*TokenWrapperCallerSession) PAUSERROLE ¶
func (_TokenWrapper *TokenWrapperCallerSession) PAUSERROLE() ([32]byte, error)
PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.
Solidity: function PAUSER_ROLE() view returns(bytes32)
func (*TokenWrapperCallerSession) Paused ¶
func (_TokenWrapper *TokenWrapperCallerSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*TokenWrapperCallerSession) UTokens ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCallerSession) UTokens() (common.Address, error)
UTokens is a free data retrieval call binding the contract method 0x78a2f074.
Solidity: function _uTokens() view returns(address)
func (*TokenWrapperCallerSession) ValueDivisor ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperCallerSession) ValueDivisor() (*big.Int, error)
ValueDivisor is a free data retrieval call binding the contract method 0x728a99ee.
Solidity: function _valueDivisor() view returns(uint256)
type TokenWrapperFilterer ¶
type TokenWrapperFilterer struct {
// contains filtered or unexported fields
}
TokenWrapperFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
func NewTokenWrapperFilterer ¶
func NewTokenWrapperFilterer(address common.Address, filterer bind.ContractFilterer) (*TokenWrapperFilterer, error)
NewTokenWrapperFilterer creates a new log filterer instance of TokenWrapper, bound to a specific deployed contract.
func (*TokenWrapperFilterer) FilterGenerateUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterGenerateUTokens(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, finalTokens []*big.Int) (*TokenWrapperGenerateUTokensIterator, error)
FilterGenerateUTokens is a free log retrieval operation binding the contract event 0x572f067f64ae57ed816b7e9b5424a87d97035d68384f149586cba42b4192c9d8.
Solidity: event GenerateUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) FilterGenerateUTokensInBatch ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) FilterGenerateUTokensInBatch(opts *bind.FilterOpts) (*TokenWrapperGenerateUTokensInBatchIterator, error)
FilterGenerateUTokensInBatch is a free log retrieval operation binding the contract event 0xff03029439b5b79825ca34bca1b453f01e01935bdde5210a8af22f19705ca1a3.
Solidity: event GenerateUTokensInBatch(address[] accountAddress, uint256[] tokens, uint256[] finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) FilterPaused ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterPaused(opts *bind.FilterOpts) (*TokenWrapperPausedIterator, error)
FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TokenWrapperFilterer) FilterRoleAdminChanged ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*TokenWrapperRoleAdminChangedIterator, 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 (*TokenWrapperFilterer) FilterRoleGranted ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenWrapperRoleGrantedIterator, 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 (*TokenWrapperFilterer) FilterRoleRevoked ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*TokenWrapperRoleRevokedIterator, 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 (*TokenWrapperFilterer) FilterSetFees ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterSetFees(opts *bind.FilterOpts, depositFee []*big.Int, withdrawFee []*big.Int) (*TokenWrapperSetFeesIterator, error)
FilterSetFees is a free log retrieval operation binding the contract event 0x3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d1532.
Solidity: event SetFees(uint256 indexed depositFee, uint256 indexed withdrawFee)
func (*TokenWrapperFilterer) FilterSetMinimumValues ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterSetMinimumValues(opts *bind.FilterOpts, minDeposit []*big.Int, minWithdraw []*big.Int) (*TokenWrapperSetMinimumValuesIterator, error)
FilterSetMinimumValues is a free log retrieval operation binding the contract event 0xa94d40347449ea19b873d64ed55c99772194c49791e82be5c2dc24e4c0044fe3.
Solidity: event SetMinimumValues(uint256 indexed minDeposit, uint256 indexed minWithdraw)
func (*TokenWrapperFilterer) FilterSetUTokensContract ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterSetUTokensContract(opts *bind.FilterOpts, _contract []common.Address) (*TokenWrapperSetUTokensContractIterator, error)
FilterSetUTokensContract is a free log retrieval operation binding the contract event 0xf745c285f36f88bea6af14d4d0f33dd9350cef7895216c1615b1caaee7857e0c.
Solidity: event SetUTokensContract(address indexed _contract)
func (*TokenWrapperFilterer) FilterUnpaused ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterUnpaused(opts *bind.FilterOpts) (*TokenWrapperUnpausedIterator, error)
FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TokenWrapperFilterer) FilterWithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) FilterWithdrawUTokens(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, toChainAddress []string) (*TokenWrapperWithdrawUTokensIterator, error)
FilterWithdrawUTokens is a free log retrieval operation binding the contract event 0x0f4363f6961ed151f2cf8f720784b70c0f5573f216fc939f67f2a5d12698e02e.
Solidity: event WithdrawUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 finalTokens, string indexed toChainAddress, uint256 timestamp)
func (*TokenWrapperFilterer) FilterWithdrawUTokensV2 ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) FilterWithdrawUTokensV2(opts *bind.FilterOpts, accountAddress []common.Address, tokens []*big.Int, finalTokens []*big.Int) (*TokenWrapperWithdrawUTokensV2Iterator, error)
FilterWithdrawUTokensV2 is a free log retrieval operation binding the contract event 0xacd6b7185718e9703bde3bd9dfa3e0f6f9f9b88968d4412acd10cb7d81665248.
Solidity: event WithdrawUTokensV2(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, string toChainAddress, uint256 timestamp)
func (*TokenWrapperFilterer) ParseGenerateUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseGenerateUTokens(log types.Log) (*TokenWrapperGenerateUTokens, error)
ParseGenerateUTokens is a log parse operation binding the contract event 0x572f067f64ae57ed816b7e9b5424a87d97035d68384f149586cba42b4192c9d8.
Solidity: event GenerateUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) ParseGenerateUTokensInBatch ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) ParseGenerateUTokensInBatch(log types.Log) (*TokenWrapperGenerateUTokensInBatch, error)
ParseGenerateUTokensInBatch is a log parse operation binding the contract event 0xff03029439b5b79825ca34bca1b453f01e01935bdde5210a8af22f19705ca1a3.
Solidity: event GenerateUTokensInBatch(address[] accountAddress, uint256[] tokens, uint256[] finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) ParsePaused ¶
func (_TokenWrapper *TokenWrapperFilterer) ParsePaused(log types.Log) (*TokenWrapperPaused, error)
ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TokenWrapperFilterer) ParseRoleAdminChanged ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseRoleAdminChanged(log types.Log) (*TokenWrapperRoleAdminChanged, 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 (*TokenWrapperFilterer) ParseRoleGranted ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseRoleGranted(log types.Log) (*TokenWrapperRoleGranted, 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 (*TokenWrapperFilterer) ParseRoleRevoked ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseRoleRevoked(log types.Log) (*TokenWrapperRoleRevoked, 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 (*TokenWrapperFilterer) ParseSetFees ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseSetFees(log types.Log) (*TokenWrapperSetFees, error)
ParseSetFees is a log parse operation binding the contract event 0x3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d1532.
Solidity: event SetFees(uint256 indexed depositFee, uint256 indexed withdrawFee)
func (*TokenWrapperFilterer) ParseSetMinimumValues ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseSetMinimumValues(log types.Log) (*TokenWrapperSetMinimumValues, error)
ParseSetMinimumValues is a log parse operation binding the contract event 0xa94d40347449ea19b873d64ed55c99772194c49791e82be5c2dc24e4c0044fe3.
Solidity: event SetMinimumValues(uint256 indexed minDeposit, uint256 indexed minWithdraw)
func (*TokenWrapperFilterer) ParseSetUTokensContract ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseSetUTokensContract(log types.Log) (*TokenWrapperSetUTokensContract, error)
ParseSetUTokensContract is a log parse operation binding the contract event 0xf745c285f36f88bea6af14d4d0f33dd9350cef7895216c1615b1caaee7857e0c.
Solidity: event SetUTokensContract(address indexed _contract)
func (*TokenWrapperFilterer) ParseUnpaused ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseUnpaused(log types.Log) (*TokenWrapperUnpaused, error)
ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TokenWrapperFilterer) ParseWithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) ParseWithdrawUTokens(log types.Log) (*TokenWrapperWithdrawUTokens, error)
ParseWithdrawUTokens is a log parse operation binding the contract event 0x0f4363f6961ed151f2cf8f720784b70c0f5573f216fc939f67f2a5d12698e02e.
Solidity: event WithdrawUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 finalTokens, string indexed toChainAddress, uint256 timestamp)
func (*TokenWrapperFilterer) ParseWithdrawUTokensV2 ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) ParseWithdrawUTokensV2(log types.Log) (*TokenWrapperWithdrawUTokensV2, error)
ParseWithdrawUTokensV2 is a log parse operation binding the contract event 0xacd6b7185718e9703bde3bd9dfa3e0f6f9f9b88968d4412acd10cb7d81665248.
Solidity: event WithdrawUTokensV2(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, string toChainAddress, uint256 timestamp)
func (*TokenWrapperFilterer) WatchGenerateUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchGenerateUTokens(opts *bind.WatchOpts, sink chan<- *TokenWrapperGenerateUTokens, accountAddress []common.Address, tokens []*big.Int, finalTokens []*big.Int) (event.Subscription, error)
WatchGenerateUTokens is a free log subscription operation binding the contract event 0x572f067f64ae57ed816b7e9b5424a87d97035d68384f149586cba42b4192c9d8.
Solidity: event GenerateUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) WatchGenerateUTokensInBatch ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) WatchGenerateUTokensInBatch(opts *bind.WatchOpts, sink chan<- *TokenWrapperGenerateUTokensInBatch) (event.Subscription, error)
WatchGenerateUTokensInBatch is a free log subscription operation binding the contract event 0xff03029439b5b79825ca34bca1b453f01e01935bdde5210a8af22f19705ca1a3.
Solidity: event GenerateUTokensInBatch(address[] accountAddress, uint256[] tokens, uint256[] finalTokens, uint256 timestamp)
func (*TokenWrapperFilterer) WatchPaused ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *TokenWrapperPaused) (event.Subscription, error)
WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258.
Solidity: event Paused(address account)
func (*TokenWrapperFilterer) WatchRoleAdminChanged ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleAdminChanged, 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 (*TokenWrapperFilterer) WatchRoleGranted ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleGranted, 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 (*TokenWrapperFilterer) WatchRoleRevoked ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *TokenWrapperRoleRevoked, 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)
func (*TokenWrapperFilterer) WatchSetFees ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchSetFees(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetFees, depositFee []*big.Int, withdrawFee []*big.Int) (event.Subscription, error)
WatchSetFees is a free log subscription operation binding the contract event 0x3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d1532.
Solidity: event SetFees(uint256 indexed depositFee, uint256 indexed withdrawFee)
func (*TokenWrapperFilterer) WatchSetMinimumValues ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchSetMinimumValues(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetMinimumValues, minDeposit []*big.Int, minWithdraw []*big.Int) (event.Subscription, error)
WatchSetMinimumValues is a free log subscription operation binding the contract event 0xa94d40347449ea19b873d64ed55c99772194c49791e82be5c2dc24e4c0044fe3.
Solidity: event SetMinimumValues(uint256 indexed minDeposit, uint256 indexed minWithdraw)
func (*TokenWrapperFilterer) WatchSetUTokensContract ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchSetUTokensContract(opts *bind.WatchOpts, sink chan<- *TokenWrapperSetUTokensContract, _contract []common.Address) (event.Subscription, error)
WatchSetUTokensContract is a free log subscription operation binding the contract event 0xf745c285f36f88bea6af14d4d0f33dd9350cef7895216c1615b1caaee7857e0c.
Solidity: event SetUTokensContract(address indexed _contract)
func (*TokenWrapperFilterer) WatchUnpaused ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *TokenWrapperUnpaused) (event.Subscription, error)
WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa.
Solidity: event Unpaused(address account)
func (*TokenWrapperFilterer) WatchWithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperFilterer) WatchWithdrawUTokens(opts *bind.WatchOpts, sink chan<- *TokenWrapperWithdrawUTokens, accountAddress []common.Address, tokens []*big.Int, toChainAddress []string) (event.Subscription, error)
WatchWithdrawUTokens is a free log subscription operation binding the contract event 0x0f4363f6961ed151f2cf8f720784b70c0f5573f216fc939f67f2a5d12698e02e.
Solidity: event WithdrawUTokens(address indexed accountAddress, uint256 indexed tokens, uint256 finalTokens, string indexed toChainAddress, uint256 timestamp)
func (*TokenWrapperFilterer) WatchWithdrawUTokensV2 ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperFilterer) WatchWithdrawUTokensV2(opts *bind.WatchOpts, sink chan<- *TokenWrapperWithdrawUTokensV2, accountAddress []common.Address, tokens []*big.Int, finalTokens []*big.Int) (event.Subscription, error)
WatchWithdrawUTokensV2 is a free log subscription operation binding the contract event 0xacd6b7185718e9703bde3bd9dfa3e0f6f9f9b88968d4412acd10cb7d81665248.
Solidity: event WithdrawUTokensV2(address indexed accountAddress, uint256 indexed tokens, uint256 indexed finalTokens, string toChainAddress, uint256 timestamp)
type TokenWrapperGenerateUTokens ¶
type TokenWrapperGenerateUTokens struct {
AccountAddress common.Address
Tokens *big.Int
FinalTokens *big.Int
Timestamp *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperGenerateUTokens represents a GenerateUTokens event raised by the TokenWrapper contract.
type TokenWrapperGenerateUTokensInBatch ¶ added in v0.5.1
type TokenWrapperGenerateUTokensInBatch struct {
AccountAddress []common.Address
Tokens []*big.Int
FinalTokens []*big.Int
Timestamp *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperGenerateUTokensInBatch represents a GenerateUTokensInBatch event raised by the TokenWrapper contract.
type TokenWrapperGenerateUTokensInBatchIterator ¶ added in v0.5.1
type TokenWrapperGenerateUTokensInBatchIterator struct {
Event *TokenWrapperGenerateUTokensInBatch // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperGenerateUTokensInBatchIterator is returned from FilterGenerateUTokensInBatch and is used to iterate over the raw logs and unpacked data for GenerateUTokensInBatch events raised by the TokenWrapper contract.
func (*TokenWrapperGenerateUTokensInBatchIterator) Close ¶ added in v0.5.1
func (it *TokenWrapperGenerateUTokensInBatchIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperGenerateUTokensInBatchIterator) Error ¶ added in v0.5.1
func (it *TokenWrapperGenerateUTokensInBatchIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperGenerateUTokensInBatchIterator) Next ¶ added in v0.5.1
func (it *TokenWrapperGenerateUTokensInBatchIterator) Next() bool
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 TokenWrapperGenerateUTokensIterator ¶
type TokenWrapperGenerateUTokensIterator struct {
Event *TokenWrapperGenerateUTokens // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperGenerateUTokensIterator is returned from FilterGenerateUTokens and is used to iterate over the raw logs and unpacked data for GenerateUTokens events raised by the TokenWrapper contract.
func (*TokenWrapperGenerateUTokensIterator) Close ¶
func (it *TokenWrapperGenerateUTokensIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperGenerateUTokensIterator) Error ¶
func (it *TokenWrapperGenerateUTokensIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperGenerateUTokensIterator) Next ¶
func (it *TokenWrapperGenerateUTokensIterator) Next() bool
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 TokenWrapperPaused ¶
type TokenWrapperPaused struct {
Account common.Address
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperPaused represents a Paused event raised by the TokenWrapper contract.
type TokenWrapperPausedIterator ¶
type TokenWrapperPausedIterator struct {
Event *TokenWrapperPaused // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the TokenWrapper contract.
func (*TokenWrapperPausedIterator) Close ¶
func (it *TokenWrapperPausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperPausedIterator) Error ¶
func (it *TokenWrapperPausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperPausedIterator) Next ¶
func (it *TokenWrapperPausedIterator) Next() bool
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 TokenWrapperRaw ¶
type TokenWrapperRaw struct {
Contract *TokenWrapper // Generic contract binding to access the raw methods on
}
TokenWrapperRaw is an auto generated low-level Go binding around an Ethereum contract.
func (*TokenWrapperRaw) Call ¶
func (_TokenWrapper *TokenWrapperRaw) 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 (*TokenWrapperRaw) Transact ¶
func (_TokenWrapper *TokenWrapperRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenWrapperRaw) Transfer ¶
func (_TokenWrapper *TokenWrapperRaw) 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 TokenWrapperRoleAdminChanged ¶
type TokenWrapperRoleAdminChanged struct {
Role [32]byte
PreviousAdminRole [32]byte
NewAdminRole [32]byte
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperRoleAdminChanged represents a RoleAdminChanged event raised by the TokenWrapper contract.
type TokenWrapperRoleAdminChangedIterator ¶
type TokenWrapperRoleAdminChangedIterator struct {
Event *TokenWrapperRoleAdminChanged // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the TokenWrapper contract.
func (*TokenWrapperRoleAdminChangedIterator) Close ¶
func (it *TokenWrapperRoleAdminChangedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperRoleAdminChangedIterator) Error ¶
func (it *TokenWrapperRoleAdminChangedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperRoleAdminChangedIterator) Next ¶
func (it *TokenWrapperRoleAdminChangedIterator) Next() bool
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 TokenWrapperRoleGranted ¶
type TokenWrapperRoleGranted struct {
Role [32]byte
Account common.Address
Sender common.Address
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperRoleGranted represents a RoleGranted event raised by the TokenWrapper contract.
type TokenWrapperRoleGrantedIterator ¶
type TokenWrapperRoleGrantedIterator struct {
Event *TokenWrapperRoleGranted // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the TokenWrapper contract.
func (*TokenWrapperRoleGrantedIterator) Close ¶
func (it *TokenWrapperRoleGrantedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperRoleGrantedIterator) Error ¶
func (it *TokenWrapperRoleGrantedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperRoleGrantedIterator) Next ¶
func (it *TokenWrapperRoleGrantedIterator) Next() bool
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 TokenWrapperRoleRevoked ¶
type TokenWrapperRoleRevoked struct {
Role [32]byte
Account common.Address
Sender common.Address
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperRoleRevoked represents a RoleRevoked event raised by the TokenWrapper contract.
type TokenWrapperRoleRevokedIterator ¶
type TokenWrapperRoleRevokedIterator struct {
Event *TokenWrapperRoleRevoked // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the TokenWrapper contract.
func (*TokenWrapperRoleRevokedIterator) Close ¶
func (it *TokenWrapperRoleRevokedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperRoleRevokedIterator) Error ¶
func (it *TokenWrapperRoleRevokedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperRoleRevokedIterator) Next ¶
func (it *TokenWrapperRoleRevokedIterator) Next() bool
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 TokenWrapperSession ¶
type TokenWrapperSession struct {
Contract *TokenWrapper // 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
}
TokenWrapperSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.
func (*TokenWrapperSession) BRIDGEADMINROLE ¶
func (_TokenWrapper *TokenWrapperSession) BRIDGEADMINROLE() ([32]byte, error)
BRIDGEADMINROLE is a free data retrieval call binding the contract method 0x118c38c7.
Solidity: function BRIDGE_ADMIN_ROLE() view returns(bytes32)
func (*TokenWrapperSession) ControlDigitBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) ControlDigitBytes() ([]byte, error)
ControlDigitBytes is a free data retrieval call binding the contract method 0xa53dcd72.
Solidity: function controlDigitBytes() view returns(bytes)
func (*TokenWrapperSession) DEFAULTADMINROLE ¶
func (_TokenWrapper *TokenWrapperSession) 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 (*TokenWrapperSession) DataBytesSize ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) DataBytesSize() (*big.Int, error)
DataBytesSize is a free data retrieval call binding the contract method 0xe3ac914b.
Solidity: function dataBytesSize() view returns(uint256)
func (*TokenWrapperSession) GenerateUTokens ¶
func (_TokenWrapper *TokenWrapperSession) GenerateUTokens(to common.Address, amount *big.Int) (*types.Transaction, error)
GenerateUTokens is a paid mutator transaction binding the contract method 0x22dd9bc3.
Solidity: function generateUTokens(address to, uint256 amount) returns()
func (*TokenWrapperSession) GenerateUTokensInBatch ¶
func (_TokenWrapper *TokenWrapperSession) GenerateUTokensInBatch(to []common.Address, amount []*big.Int) (*types.Transaction, error)
GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.
Solidity: function generateUTokensInBatch(address[] to, uint256[] amount) returns()
func (*TokenWrapperSession) GetProps ¶
func (_TokenWrapper *TokenWrapperSession) GetProps() (struct { DepositFee *big.Int WithdrawFee *big.Int MinDeposit *big.Int MinWithdraw *big.Int ValueDivisor *big.Int }, error)
GetProps is a free data retrieval call binding the contract method 0xec1893b4.
Solidity: function getProps() view returns(uint256 depositFee, uint256 withdrawFee, uint256 minDeposit, uint256 minWithdraw, uint256 valueDivisor)
func (*TokenWrapperSession) GetRoleAdmin ¶
func (_TokenWrapper *TokenWrapperSession) 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 (*TokenWrapperSession) GetRoleMember ¶
func (_TokenWrapper *TokenWrapperSession) GetRoleMember(role [32]byte, index *big.Int) (common.Address, error)
GetRoleMember is a free data retrieval call binding the contract method 0x9010d07c.
Solidity: function getRoleMember(bytes32 role, uint256 index) view returns(address)
func (*TokenWrapperSession) GetRoleMemberCount ¶
func (_TokenWrapper *TokenWrapperSession) GetRoleMemberCount(role [32]byte) (*big.Int, error)
GetRoleMemberCount is a free data retrieval call binding the contract method 0xca15c873.
Solidity: function getRoleMemberCount(bytes32 role) view returns(uint256)
func (*TokenWrapperSession) GrantRole ¶
func (_TokenWrapper *TokenWrapperSession) 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 (*TokenWrapperSession) HasRole ¶
func (_TokenWrapper *TokenWrapperSession) 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 (*TokenWrapperSession) HrpBytes ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) HrpBytes() ([]byte, error)
HrpBytes is a free data retrieval call binding the contract method 0xd37f5598.
Solidity: function hrpBytes() view returns(bytes)
func (*TokenWrapperSession) Initialize ¶
func (_TokenWrapper *TokenWrapperSession) Initialize(uAddress common.Address, bridgeAdminAddress common.Address, pauserAddress common.Address, valueDivisor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.
Solidity: function initialize(address uAddress, address bridgeAdminAddress, address pauserAddress, uint256 valueDivisor) returns()
func (*TokenWrapperSession) IsBech32Valid ¶ added in v0.2.1
func (_TokenWrapper *TokenWrapperSession) IsBech32Valid(toChainAddress string) (bool, error)
IsBech32Valid is a free data retrieval call binding the contract method 0x8f001d4e.
Solidity: function isBech32Valid(string toChainAddress) view returns(bool isAddressValid)
func (*TokenWrapperSession) PAUSERROLE ¶
func (_TokenWrapper *TokenWrapperSession) PAUSERROLE() ([32]byte, error)
PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9.
Solidity: function PAUSER_ROLE() view returns(bytes32)
func (*TokenWrapperSession) Pause ¶
func (_TokenWrapper *TokenWrapperSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns(bool success)
func (*TokenWrapperSession) Paused ¶
func (_TokenWrapper *TokenWrapperSession) Paused() (bool, error)
Paused is a free data retrieval call binding the contract method 0x5c975abb.
Solidity: function paused() view returns(bool)
func (*TokenWrapperSession) RenounceRole ¶
func (_TokenWrapper *TokenWrapperSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*TokenWrapperSession) RevokeRole ¶
func (_TokenWrapper *TokenWrapperSession) 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 (*TokenWrapperSession) SetFees ¶
func (_TokenWrapper *TokenWrapperSession) SetFees(depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x0b78f9c0.
Solidity: function setFees(uint256 depositFee, uint256 withdrawFee) returns(bool success)
func (*TokenWrapperSession) SetMinimumValues ¶
func (_TokenWrapper *TokenWrapperSession) SetMinimumValues(minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
SetMinimumValues is a paid mutator transaction binding the contract method 0x51db00e7.
Solidity: function setMinimumValues(uint256 minDeposit, uint256 minWithdraw) returns(bool success)
func (*TokenWrapperSession) SetUTokensContract ¶
func (_TokenWrapper *TokenWrapperSession) SetUTokensContract(uAddress common.Address) (*types.Transaction, error)
SetUTokensContract is a paid mutator transaction binding the contract method 0x21bdf9e5.
Solidity: function setUTokensContract(address uAddress) returns()
func (*TokenWrapperSession) UTokens ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) UTokens() (common.Address, error)
UTokens is a free data retrieval call binding the contract method 0x78a2f074.
Solidity: function _uTokens() view returns(address)
func (*TokenWrapperSession) Unpause ¶
func (_TokenWrapper *TokenWrapperSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns(bool success)
func (*TokenWrapperSession) ValueDivisor ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) ValueDivisor() (*big.Int, error)
ValueDivisor is a free data retrieval call binding the contract method 0x728a99ee.
Solidity: function _valueDivisor() view returns(uint256)
func (*TokenWrapperSession) Version ¶ added in v0.5.1
func (_TokenWrapper *TokenWrapperSession) Version() (*big.Int, error)
Version is a free data retrieval call binding the contract method 0x3e118dbe.
Solidity: function _version() view returns(uint256)
func (*TokenWrapperSession) WithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperSession) WithdrawUTokens(from common.Address, tokens *big.Int, toChainAddress string) (*types.Transaction, error)
WithdrawUTokens is a paid mutator transaction binding the contract method 0x428bee9e.
Solidity: function withdrawUTokens(address from, uint256 tokens, string toChainAddress) returns()
type TokenWrapperSetFees ¶
type TokenWrapperSetFees struct {
DepositFee *big.Int
WithdrawFee *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperSetFees represents a SetFees event raised by the TokenWrapper contract.
type TokenWrapperSetFeesIterator ¶
type TokenWrapperSetFeesIterator struct {
Event *TokenWrapperSetFees // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperSetFeesIterator is returned from FilterSetFees and is used to iterate over the raw logs and unpacked data for SetFees events raised by the TokenWrapper contract.
func (*TokenWrapperSetFeesIterator) Close ¶
func (it *TokenWrapperSetFeesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperSetFeesIterator) Error ¶
func (it *TokenWrapperSetFeesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperSetFeesIterator) Next ¶
func (it *TokenWrapperSetFeesIterator) Next() bool
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 TokenWrapperSetMinimumValues ¶
type TokenWrapperSetMinimumValues struct {
MinDeposit *big.Int
MinWithdraw *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperSetMinimumValues represents a SetMinimumValues event raised by the TokenWrapper contract.
type TokenWrapperSetMinimumValuesIterator ¶
type TokenWrapperSetMinimumValuesIterator struct {
Event *TokenWrapperSetMinimumValues // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperSetMinimumValuesIterator is returned from FilterSetMinimumValues and is used to iterate over the raw logs and unpacked data for SetMinimumValues events raised by the TokenWrapper contract.
func (*TokenWrapperSetMinimumValuesIterator) Close ¶
func (it *TokenWrapperSetMinimumValuesIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperSetMinimumValuesIterator) Error ¶
func (it *TokenWrapperSetMinimumValuesIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperSetMinimumValuesIterator) Next ¶
func (it *TokenWrapperSetMinimumValuesIterator) Next() bool
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 TokenWrapperSetUTokensContract ¶
type TokenWrapperSetUTokensContract struct {
Contract common.Address
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperSetUTokensContract represents a SetUTokensContract event raised by the TokenWrapper contract.
type TokenWrapperSetUTokensContractIterator ¶
type TokenWrapperSetUTokensContractIterator struct {
Event *TokenWrapperSetUTokensContract // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperSetUTokensContractIterator is returned from FilterSetUTokensContract and is used to iterate over the raw logs and unpacked data for SetUTokensContract events raised by the TokenWrapper contract.
func (*TokenWrapperSetUTokensContractIterator) Close ¶
func (it *TokenWrapperSetUTokensContractIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperSetUTokensContractIterator) Error ¶
func (it *TokenWrapperSetUTokensContractIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperSetUTokensContractIterator) Next ¶
func (it *TokenWrapperSetUTokensContractIterator) Next() bool
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 TokenWrapperTransactor ¶
type TokenWrapperTransactor struct {
// contains filtered or unexported fields
}
TokenWrapperTransactor is an auto generated write-only Go binding around an Ethereum contract.
func NewTokenWrapperTransactor ¶
func NewTokenWrapperTransactor(address common.Address, transactor bind.ContractTransactor) (*TokenWrapperTransactor, error)
NewTokenWrapperTransactor creates a new write-only instance of TokenWrapper, bound to a specific deployed contract.
func (*TokenWrapperTransactor) GenerateUTokens ¶
func (_TokenWrapper *TokenWrapperTransactor) GenerateUTokens(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error)
GenerateUTokens is a paid mutator transaction binding the contract method 0x22dd9bc3.
Solidity: function generateUTokens(address to, uint256 amount) returns()
func (*TokenWrapperTransactor) GenerateUTokensInBatch ¶
func (_TokenWrapper *TokenWrapperTransactor) GenerateUTokensInBatch(opts *bind.TransactOpts, to []common.Address, amount []*big.Int) (*types.Transaction, error)
GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.
Solidity: function generateUTokensInBatch(address[] to, uint256[] amount) returns()
func (*TokenWrapperTransactor) GrantRole ¶
func (_TokenWrapper *TokenWrapperTransactor) 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 (*TokenWrapperTransactor) Initialize ¶
func (_TokenWrapper *TokenWrapperTransactor) Initialize(opts *bind.TransactOpts, uAddress common.Address, bridgeAdminAddress common.Address, pauserAddress common.Address, valueDivisor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.
Solidity: function initialize(address uAddress, address bridgeAdminAddress, address pauserAddress, uint256 valueDivisor) returns()
func (*TokenWrapperTransactor) Pause ¶
func (_TokenWrapper *TokenWrapperTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns(bool success)
func (*TokenWrapperTransactor) RenounceRole ¶
func (_TokenWrapper *TokenWrapperTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*TokenWrapperTransactor) RevokeRole ¶
func (_TokenWrapper *TokenWrapperTransactor) 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 (*TokenWrapperTransactor) SetFees ¶
func (_TokenWrapper *TokenWrapperTransactor) SetFees(opts *bind.TransactOpts, depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x0b78f9c0.
Solidity: function setFees(uint256 depositFee, uint256 withdrawFee) returns(bool success)
func (*TokenWrapperTransactor) SetMinimumValues ¶
func (_TokenWrapper *TokenWrapperTransactor) SetMinimumValues(opts *bind.TransactOpts, minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
SetMinimumValues is a paid mutator transaction binding the contract method 0x51db00e7.
Solidity: function setMinimumValues(uint256 minDeposit, uint256 minWithdraw) returns(bool success)
func (*TokenWrapperTransactor) SetUTokensContract ¶
func (_TokenWrapper *TokenWrapperTransactor) SetUTokensContract(opts *bind.TransactOpts, uAddress common.Address) (*types.Transaction, error)
SetUTokensContract is a paid mutator transaction binding the contract method 0x21bdf9e5.
Solidity: function setUTokensContract(address uAddress) returns()
func (*TokenWrapperTransactor) Unpause ¶
func (_TokenWrapper *TokenWrapperTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns(bool success)
func (*TokenWrapperTransactor) WithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperTransactor) WithdrawUTokens(opts *bind.TransactOpts, from common.Address, tokens *big.Int, toChainAddress string) (*types.Transaction, error)
WithdrawUTokens is a paid mutator transaction binding the contract method 0x428bee9e.
Solidity: function withdrawUTokens(address from, uint256 tokens, string toChainAddress) returns()
type TokenWrapperTransactorRaw ¶
type TokenWrapperTransactorRaw struct {
Contract *TokenWrapperTransactor // Generic write-only contract binding to access the raw methods on
}
TokenWrapperTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
func (*TokenWrapperTransactorRaw) Transact ¶
func (_TokenWrapper *TokenWrapperTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)
Transact invokes the (paid) contract method with params as input values.
func (*TokenWrapperTransactorRaw) Transfer ¶
func (_TokenWrapper *TokenWrapperTransactorRaw) 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 TokenWrapperTransactorSession ¶
type TokenWrapperTransactorSession struct {
Contract *TokenWrapperTransactor // Generic contract transactor binding to set the session for
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}
TokenWrapperTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.
func (*TokenWrapperTransactorSession) GenerateUTokens ¶
func (_TokenWrapper *TokenWrapperTransactorSession) GenerateUTokens(to common.Address, amount *big.Int) (*types.Transaction, error)
GenerateUTokens is a paid mutator transaction binding the contract method 0x22dd9bc3.
Solidity: function generateUTokens(address to, uint256 amount) returns()
func (*TokenWrapperTransactorSession) GenerateUTokensInBatch ¶
func (_TokenWrapper *TokenWrapperTransactorSession) GenerateUTokensInBatch(to []common.Address, amount []*big.Int) (*types.Transaction, error)
GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.
Solidity: function generateUTokensInBatch(address[] to, uint256[] amount) returns()
func (*TokenWrapperTransactorSession) GrantRole ¶
func (_TokenWrapper *TokenWrapperTransactorSession) 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 (*TokenWrapperTransactorSession) Initialize ¶
func (_TokenWrapper *TokenWrapperTransactorSession) Initialize(uAddress common.Address, bridgeAdminAddress common.Address, pauserAddress common.Address, valueDivisor *big.Int) (*types.Transaction, error)
Initialize is a paid mutator transaction binding the contract method 0xcf756fdf.
Solidity: function initialize(address uAddress, address bridgeAdminAddress, address pauserAddress, uint256 valueDivisor) returns()
func (*TokenWrapperTransactorSession) Pause ¶
func (_TokenWrapper *TokenWrapperTransactorSession) Pause() (*types.Transaction, error)
Pause is a paid mutator transaction binding the contract method 0x8456cb59.
Solidity: function pause() returns(bool success)
func (*TokenWrapperTransactorSession) RenounceRole ¶
func (_TokenWrapper *TokenWrapperTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error)
RenounceRole is a paid mutator transaction binding the contract method 0x36568abe.
Solidity: function renounceRole(bytes32 role, address account) returns()
func (*TokenWrapperTransactorSession) RevokeRole ¶
func (_TokenWrapper *TokenWrapperTransactorSession) 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 (*TokenWrapperTransactorSession) SetFees ¶
func (_TokenWrapper *TokenWrapperTransactorSession) SetFees(depositFee *big.Int, withdrawFee *big.Int) (*types.Transaction, error)
SetFees is a paid mutator transaction binding the contract method 0x0b78f9c0.
Solidity: function setFees(uint256 depositFee, uint256 withdrawFee) returns(bool success)
func (*TokenWrapperTransactorSession) SetMinimumValues ¶
func (_TokenWrapper *TokenWrapperTransactorSession) SetMinimumValues(minDeposit *big.Int, minWithdraw *big.Int) (*types.Transaction, error)
SetMinimumValues is a paid mutator transaction binding the contract method 0x51db00e7.
Solidity: function setMinimumValues(uint256 minDeposit, uint256 minWithdraw) returns(bool success)
func (*TokenWrapperTransactorSession) SetUTokensContract ¶
func (_TokenWrapper *TokenWrapperTransactorSession) SetUTokensContract(uAddress common.Address) (*types.Transaction, error)
SetUTokensContract is a paid mutator transaction binding the contract method 0x21bdf9e5.
Solidity: function setUTokensContract(address uAddress) returns()
func (*TokenWrapperTransactorSession) Unpause ¶
func (_TokenWrapper *TokenWrapperTransactorSession) Unpause() (*types.Transaction, error)
Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a.
Solidity: function unpause() returns(bool success)
func (*TokenWrapperTransactorSession) WithdrawUTokens ¶
func (_TokenWrapper *TokenWrapperTransactorSession) WithdrawUTokens(from common.Address, tokens *big.Int, toChainAddress string) (*types.Transaction, error)
WithdrawUTokens is a paid mutator transaction binding the contract method 0x428bee9e.
Solidity: function withdrawUTokens(address from, uint256 tokens, string toChainAddress) returns()
type TokenWrapperUnpaused ¶
type TokenWrapperUnpaused struct {
Account common.Address
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperUnpaused represents a Unpaused event raised by the TokenWrapper contract.
type TokenWrapperUnpausedIterator ¶
type TokenWrapperUnpausedIterator struct {
Event *TokenWrapperUnpaused // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the TokenWrapper contract.
func (*TokenWrapperUnpausedIterator) Close ¶
func (it *TokenWrapperUnpausedIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperUnpausedIterator) Error ¶
func (it *TokenWrapperUnpausedIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperUnpausedIterator) Next ¶
func (it *TokenWrapperUnpausedIterator) Next() bool
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 TokenWrapperWithdrawUTokens ¶
type TokenWrapperWithdrawUTokens struct {
AccountAddress common.Address
Tokens *big.Int
FinalTokens *big.Int
ToChainAddress common.Hash
Timestamp *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperWithdrawUTokens represents a WithdrawUTokens event raised by the TokenWrapper contract.
type TokenWrapperWithdrawUTokensIterator ¶
type TokenWrapperWithdrawUTokensIterator struct {
Event *TokenWrapperWithdrawUTokens // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperWithdrawUTokensIterator is returned from FilterWithdrawUTokens and is used to iterate over the raw logs and unpacked data for WithdrawUTokens events raised by the TokenWrapper contract.
func (*TokenWrapperWithdrawUTokensIterator) Close ¶
func (it *TokenWrapperWithdrawUTokensIterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperWithdrawUTokensIterator) Error ¶
func (it *TokenWrapperWithdrawUTokensIterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperWithdrawUTokensIterator) Next ¶
func (it *TokenWrapperWithdrawUTokensIterator) Next() bool
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 TokenWrapperWithdrawUTokensV2 ¶ added in v0.5.1
type TokenWrapperWithdrawUTokensV2 struct {
AccountAddress common.Address
Tokens *big.Int
FinalTokens *big.Int
ToChainAddress string
Timestamp *big.Int
Raw types.Log // Blockchain specific contextual infos
}
TokenWrapperWithdrawUTokensV2 represents a WithdrawUTokensV2 event raised by the TokenWrapper contract.
type TokenWrapperWithdrawUTokensV2Iterator ¶ added in v0.5.1
type TokenWrapperWithdrawUTokensV2Iterator struct {
Event *TokenWrapperWithdrawUTokensV2 // Event containing the contract specifics and raw log
// contains filtered or unexported fields
}
TokenWrapperWithdrawUTokensV2Iterator is returned from FilterWithdrawUTokensV2 and is used to iterate over the raw logs and unpacked data for WithdrawUTokensV2 events raised by the TokenWrapper contract.
func (*TokenWrapperWithdrawUTokensV2Iterator) Close ¶ added in v0.5.1
func (it *TokenWrapperWithdrawUTokensV2Iterator) Close() error
Close terminates the iteration process, releasing any pending underlying resources.
func (*TokenWrapperWithdrawUTokensV2Iterator) Error ¶ added in v0.5.1
func (it *TokenWrapperWithdrawUTokensV2Iterator) Error() error
Error returns any retrieval or parsing error occurred during filtering.
func (*TokenWrapperWithdrawUTokensV2Iterator) Next ¶ added in v0.5.1
func (it *TokenWrapperWithdrawUTokensV2Iterator) Next() bool
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.