tokenWrapper

package
v0.9.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenWrapperABI = TokenWrapperMetaData.ABI

TokenWrapperABI is the input ABI used to generate the binding from. Deprecated: Use TokenWrapperMetaData.ABI instead.

View Source
var TokenWrapperBin = TokenWrapperMetaData.Bin

TokenWrapperBin is the compiled bytecode used for deploying new contracts. Deprecated: Use TokenWrapperMetaData.Bin instead.

View Source
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\":false,\"internalType\":\"string\",\"name\":\"toChainAddress\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"WithdrawUTokens\",\"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\":[{\"internalType\":\"uint256\",\"name\":\"wrappedTokens\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"toAddresses\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"amounts\",\"type\":\"uint256[]\"}],\"name\":\"generateUTokensInBatch\",\"outputs\":[{\"internalType\":\"uint256[]\",\"name\":\"wrappedTokensArray\",\"type\":\"uint256[]\"}],\"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\":[{\"internalType\":\"uint256\",\"name\":\"unwrappedTokens\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50614104806100206000396000f3fe608060405234801561001057600080fd5b50600436106101c45760003560e01c80638456cb59116100f9578063cf756fdf11610097578063e3ac914b11610071578063e3ac914b146109a9578063e63ab1e9146109c7578063e7fa0a32146109e5578063ec1893b414610b08576101c4565b8063cf756fdf1461084a578063d37f5598146108d8578063d547741f1461095b576101c4565b806391d14854116100d357806391d1485414610703578063a217fddf14610767578063a53dcd7214610785578063ca15c87314610808576101c4565b80638456cb59146105b05780638f001d4e146105d05780639010d07c146106a1576101c4565b80633e118dbe1161016657806351db00e71161014057806351db00e7146104f05780635c975abb1461053e578063728a99ee1461055e57806378a2f0741461057c576101c4565b80633e118dbe146103b95780633f4ba83a146103d7578063428bee9e146103f7576101c4565b806322dd9bc3116101a257806322dd9bc314610279578063248a9ca3146102db5780632f2ff15d1461031d57806336568abe1461036b576101c4565b80630b78f9c0146101c9578063118c38c71461021757806321bdf9e514610235575b600080fd5b6101ff600480360360408110156101df57600080fd5b810190808035906020019092919080359060200190929190505050610b42565b60405180821515815260200191505060405180910390f35b61021f610cd2565b6040518082815260200191505060405180910390f35b6102776004803603602081101561024b57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610cf6565b005b6102c56004803603604081101561028f57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610e03565b6040518082815260200191505060405180910390f35b610307600480360360208110156102f157600080fd5b8101908080359060200190929190505050610f0a565b6040518082815260200191505060405180910390f35b6103696004803603604081101561033357600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610f2a565b005b6103b76004803603604081101561038157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050610fb4565b005b6103c161104d565b6040518082815260200191505060405180910390f35b6103df611053565b60405180821515815260200191505060405180910390f35b6104da6004803603606081101561040d57600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803590602001909291908035906020019064010000000081111561045457600080fd5b82018360208201111561046657600080fd5b8035906020019184600183028401116401000000008311171561048857600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611107565b6040518082815260200191505060405180910390f35b6105266004803603604081101561050657600080fd5b81019080803590602001909291908035906020019092919050505061178f565b60405180821515815260200191505060405180910390f35b61054661194b565b60405180821515815260200191505060405180910390f35b610566611962565b6040518082815260200191505060405180910390f35b610584611968565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b6105b861198e565b60405180821515815260200191505060405180910390f35b610689600480360360208110156105e657600080fd5b810190808035906020019064010000000081111561060357600080fd5b82018360208201111561061557600080fd5b8035906020019184600183028401116401000000008311171561063757600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600081840152601f19601f820116905080830192505050505050509192919290505050611a42565b60405180821515815260200191505060405180910390f35b6106d7600480360360408110156106b757600080fd5b810190808035906020019092919080359060200190929190505050611b98565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390f35b61074f6004803603604081101561071957600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611bca565b60405180821515815260200191505060405180910390f35b61076f611bfc565b6040518082815260200191505060405180910390f35b61078d611c03565b6040518080602001828103825283818151815260200191508051906020019080838360005b838110156107cd5780820151818401526020810190506107b2565b50505050905090810190601f1680156107fa5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6108346004803603602081101561081e57600080fd5b8101908080359060200190929190505050611ca1565b6040518082815260200191505060405180910390f35b6108d66004803603608081101561086057600080fd5b81019080803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050611cc8565b005b6108e0611efe565b6040518080602001828103825283818151815260200191508051906020019080838360005b83811015610920578082015181840152602081019050610905565b50505050905090810190601f16801561094d5780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b6109a76004803603604081101561097157600080fd5b8101908080359060200190929190803573ffffffffffffffffffffffffffffffffffffffff169060200190929190505050611f9c565b005b6109b1612026565b6040518082815260200191505060405180910390f35b6109cf61202c565b6040518082815260200191505060405180910390f35b610ab1600480360360408110156109fb57600080fd5b8101908080359060200190640100000000811115610a1857600080fd5b820183602082011115610a2a57600080fd5b80359060200191846020830284011164010000000083111715610a4c57600080fd5b909192939192939080359060200190640100000000811115610a6d57600080fd5b820183602082011115610a7f57600080fd5b80359060200191846020830284011164010000000083111715610aa157600080fd5b9091929391929390505050612050565b6040518080602001828103825283818151815260200191508051906020019060200280838360005b83811015610af4578082015181840152602081019050610ad9565b505050509050019250505060405180910390f35b610b10612330565b604051808681526020018581526020018481526020018381526020018281526020019550505050505060405180910390f35b6000610b586000801b610b53612358565b611bca565b610bca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545731000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b610be06064609c5461236090919063ffffffff16565b83111580610bee5750600083145b8015610c1a5750610c0b6064609c5461236090919063ffffffff16565b82111580610c195750600082145b5b610c8c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545732000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b82609a8190555081609b8190555081837f3be6e637f54f081a2dd12982cfd58481304fc98b604b18fa8ed4aa4e4a9d153260405160405180910390a36001905092915050565b7f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf81565b610d0a6000801b610d05612358565b611bca565b610d7c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545736000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b80609760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508073ffffffffffffffffffffffffffffffffffffffff167ff745c285f36f88bea6af14d4d0f33dd9350cef7895216c1615b1caaee7857e0c60405160405180910390a250565b6000610e367f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf610e31612358565b611bca565b610ea8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731300000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b610eb283836123e6565b905081818473ffffffffffffffffffffffffffffffffffffffff167f572f067f64ae57ed816b7e9b5424a87d97035d68384f149586cba42b4192c9d8426040518082815260200191505060405180910390a492915050565b600060656000838152602001908152602001600020600201549050919050565b610f516065600084815260200190815260200160002060020154610f4c612358565b611bca565b610fa6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f815260200180613ff2602f913960400191505060405180910390fd5b610fb082826125b2565b5050565b610fbc612358565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161461103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602f8152602001806140a0602f913960400191505060405180910390fd5b6110498282612646565b5050565b60a05481565b60006110867f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a611081612358565b611bca565b6110f8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545738000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6111006126da565b6001905090565b600061111161194b565b15611184576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b61118c612358565b73ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161461122c576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731370000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6099548310156112a4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731340000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231866040518263ffffffff1660e01b8152600401808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060206040518083038186803b15801561132f57600080fd5b505afa158015611343573d6000803e3d6000fd5b505050506040513d602081101561135957600080fd5b81019080805190602001909291905050509050838110156113e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731360000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000611531609d8054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561147d5780601f106114525761010080835404028352916020019161147d565b820191906000526020600020905b81548152906001019060200180831161146057829003601f168201915b5050505050609e8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156115185780601f106114ed57610100808354040283529160200191611518565b820191906000526020600020905b8154815290600101906020018083116114fb57829003601f168201915b5050505050609f54876127c5909392919063ffffffff16565b905060011515811515146115ad576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731350000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006115db60646115cd609b54609c548a6129139092919063ffffffff16565b6129f390919063ffffffff16565b90506115f08187612a7c90919063ffffffff16565b9350838773ffffffffffffffffffffffffffffffffffffffff167f0f4363f6961ed151f2cf8f720784b70c0f5573f216fc939f67f2a5d12698e02e8888426040518084815260200180602001838152602001828103825284818151815260200191508051906020019080838360005b8381101561167a57808201518184015260208101905061165f565b50505050905090810190601f1680156116a75780820380516001836020036101000a031916815260200191505b5094505050505060405180910390a3609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac88886040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561174957600080fd5b505af115801561175d573d6000803e3d6000fd5b505050506040513d602081101561177357600080fd5b8101908080519060200190929190505050505050509392505050565b60006117a56000801b6117a0612358565b611bca565b611817576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545733000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b600183101561188e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545734000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6001821015611905576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545735000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b826098819055508160998190555081837fa94d40347449ea19b873d64ed55c99772194c49791e82be5c2dc24e4c0044fe360405160405180910390a36001905092915050565b6000603360009054906101000a900460ff16905090565b609c5481565b609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60006119c17f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a6119bc612358565b611bca565b611a33576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260038152602001807f545737000000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b611a3b612aff565b6001905090565b6000611b91609d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611add5780601f10611ab257610100808354040283529160200191611add565b820191906000526020600020905b815481529060010190602001808311611ac057829003601f168201915b5050505050609e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611b785780601f10611b4d57610100808354040283529160200191611b78565b820191906000526020600020905b815481529060010190602001808311611b5b57829003601f168201915b5050505050609f54856127c5909392919063ffffffff16565b9050919050565b6000611bc28260656000868152602001908152602001600020600001612beb90919063ffffffff16565b905092915050565b6000611bf48260656000868152602001908152602001600020600001612c0590919063ffffffff16565b905092915050565b6000801b81565b609e8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611c995780601f10611c6e57610100808354040283529160200191611c99565b820191906000526020600020905b815481529060010190602001808311611c7c57829003601f168201915b505050505081565b6000611cc160656000848152602001908152602001600020600001612c35565b9050919050565b600060019054906101000a900460ff1680611ce75750611ce6612c4a565b5b80611cfd575060008054906101000a900460ff16155b611d52576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015611da2576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b611daa612c5b565b611db2612d69565b611dc66000801b611dc1612358565b612e77565b611df07f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf85612e77565b611e1a7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a84612e77565b611e2385610cf6565b611e2e60018061178f565b5081609c819055506040518060400160405280600681526020017f636f736d6f730000000000000000000000000000000000000000000000000000815250609d9080519060200190611e81929190613f24565b506040518060400160405280600181526020017f3100000000000000000000000000000000000000000000000000000000000000815250609e9080519060200190611ecd929190613f24565b506026609f819055508015611ef75760008060016101000a81548160ff0219169083151502179055505b5050505050565b609d8054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611f945780601f10611f6957610100808354040283529160200191611f94565b820191906000526020600020905b815481529060010190602001808311611f7757829003601f168201915b505050505081565b611fc36065600084815260200190815260200160002060020154611fbe612358565b611bca565b612018576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260308152602001806140216030913960400191505060405180910390fd5b6120228282612646565b5050565b609f5481565b7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b60608282905085859050146120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731310000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6120fe7f751b795d24b92e3d92d1d0d8f2885f4e9c9c269da350af36ae6b49069babf4bf6120f9612358565b611bca565b612170576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731320000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b6000808686905090508067ffffffffffffffff8111801561219057600080fd5b506040519080825280602002602001820160405280156121bf5781602001602082028036833780820191505090505b509250600091505b80821015612238576122138787848181106121de57fe5b9050602002013573ffffffffffffffffffffffffffffffffffffffff1686868581811061220757fe5b905060200201356123e6565b83838151811061221f57fe5b60200260200101818152505081806001019250506121c7565b7fff03029439b5b79825ca34bca1b453f01e01935bdde5210a8af22f19705ca1a38787858888426040518080602001806020018060200185815260200184810384528a8a82818152602001925060200280828437600081840152601f19601f820116905080830192505050848103835288818151815260200191508051906020019060200280838360005b838110156122de5780820151818401526020810190506122c3565b505050509050018481038252878782818152602001925060200280828437600081840152601f19601f820116905080830192505050995050505050505050505060405180910390a15050949350505050565b6000806000806000609a549450609b54935060985492506099549150609c5490509091929394565b600033905090565b60008083141561237357600090506123e0565b600082840290508284828161238457fe5b04146123db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602181526020018061407f6021913960400191505060405180910390fd5b809150505b92915050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614158015612425575060008214155b612497576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260048152602001807f545731330000000000000000000000000000000000000000000000000000000081525060200191505060405180910390fd5b60006124c560646124b7609a54609c54876129139092919063ffffffff16565b6129f390919063ffffffff16565b90506124da8184612a7c90919063ffffffff16565b9150609760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166340c10f1985846040518363ffffffff1660e01b8152600401808373ffffffffffffffffffffffffffffffffffffffff16815260200182815260200192505050602060405180830381600087803b15801561256f57600080fd5b505af1158015612583573d6000803e3d6000fd5b505050506040513d602081101561259957600080fd5b8101908080519060200190929190505050505092915050565b6125da8160656000858152602001908152602001600020600001612e8590919063ffffffff16565b15612642576125e7612358565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45b5050565b61266e8160656000858152602001908152602001600020600001612eb590919063ffffffff16565b156126d65761267b612358565b73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16837ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b60405160405180910390a45b5050565b6126e261194b565b612754576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260148152602001807f5061757361626c653a206e6f742070617573656400000000000000000000000081525060200191505060405180910390fd5b6000603360006101000a81548160ff0219169083151502179055507f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa612798612358565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b60008085905060006127e46000875184612ee59092919063ffffffff16565b90506127f9868261305790919063ffffffff16565b6128085760009250505061290b565b60006128218251600185612ee59092919063ffffffff16565b9050612836868261305790919063ffffffff16565b612846576000935050505061290b565b60006128686001845101600185518751030386612ee59092919063ffffffff16565b90508581511461287f57600094505050505061290b565b60006128a46001855101600186516006895103030387612ee59092919063ffffffff16565b905060006128b1826130c4565b90506000815114156128cc576000965050505050505061290b565b60006128d78661329d565b905060006128e5828461333d565b905060006128fc828761305790919063ffffffff16565b90508099505050505050505050505b949350505050565b60008060006129228686613465565b915091506000848061293057fe5b868809905082811115612944576001820391505b808303925060008214156129665784838161295b57fe5b0493505050506129ec565b8482106129db576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f46756c6c4d6174683a2046554c4c4449565f4f564552464c4f5700000000000081525060200191505060405180910390fd5b6129e68383876134b8565b93505050505b9392505050565b6000808211612a6a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601a8152602001807f536166654d6174683a206469766973696f6e206279207a65726f00000000000081525060200191505060405180910390fd5b818381612a7357fe5b04905092915050565b600082821115612af4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252601e8152602001807f536166654d6174683a207375627472616374696f6e206f766572666c6f77000081525060200191505060405180910390fd5b818303905092915050565b612b0761194b565b15612b7a576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260108152602001807f5061757361626c653a207061757365640000000000000000000000000000000081525060200191505060405180910390fd5b6001603360006101000a81548160ff0219169083151502179055507f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258612bbe612358565b604051808273ffffffffffffffffffffffffffffffffffffffff16815260200191505060405180910390a1565b6000612bfa8360000183613555565b60001c905092915050565b6000612c2d836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6135d8565b905092915050565b6000612c43826000016135fb565b9050919050565b6000612c553061360c565b15905090565b600060019054906101000a900460ff1680612c7a5750612c79612c4a565b5b80612c90575060008054906101000a900460ff16155b612ce5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612d35576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612d3d61361f565b612d4561371d565b8015612d665760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff1680612d885750612d87612c4a565b5b80612d9e575060008054906101000a900460ff16155b612df3576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff161590508015612e43576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b612e4b61361f565b612e5361381b565b8015612e745760008060016101000a81548160ff0219169083151502179055505b50565b612e8182826125b2565b5050565b6000612ead836000018373ffffffffffffffffffffffffffffffffffffffff1660001b613934565b905092915050565b6000612edd836000018373ffffffffffffffffffffffffffffffffffffffff1660001b6139a4565b905092915050565b606081601f83011015612f60576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252600e8152602001807f736c6963655f6f766572666c6f7700000000000000000000000000000000000081525060200191505060405180910390fd5b81830184511015612fd9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004018080602001828103825260118152602001807f736c6963655f6f75744f66426f756e647300000000000000000000000000000081525060200191505060405180910390fd5b6060821560008114612ffa576040519150600082526020820160405261304b565b6040519150601f8416801560200281840101858101878315602002848b0101015b81831015613038578051835260208301925060208101905061301b565b50868552601f19601f8301166040525050505b50809150509392505050565b600080600190508351835181146001811461307557600092506130b8565b600160208701838101602088015b6002848385100114156130b35780518351146130a25760009650600093505b602083019250602081019050613083565b505050505b50508091505092915050565b6060815167ffffffffffffffff811180156130de57600080fd5b5060405190808252806020026020018201604052801561310d5781602001602082028036833780820191505090505b5090506060600080600090505b845181101561329457600091505b6040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c81525051821015613225576040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c81525082815181106131a757fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff19168582815181106131e057fe5b602001015160f81c60f81b7effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916141561321857613225565b8180600101925050613128565b6040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c8152505182141561326e57829350505050613298565b8184828151811061327b57fe5b602002602001018181525050808060010191505061311a565b5050505b919050565b6060815167ffffffffffffffff811180156132b757600080fd5b506040519080825280602002602001820160405280156132e65781602001602082028036833780820191505090505b50905060005b82518110156133375782818151811061330157fe5b602001015160f81c60f81b60f81c60ff1682828151811061331e57fe5b60200260200101818152505080806001019150506132ec565b50919050565b606060006133548361334f8686613a8c565b613b57565b90506000815167ffffffffffffffff8111801561337057600080fd5b506040519080825280601f01601f1916602001820160405280156133a35781602001600182028036833780820191505090505b50905060005b8251811015613459576040518060400160405280602081526020017f71707a7279397838676632747664773073336a6e35346b686365366d7561376c8152508382815181106133f457fe5b60200260200101518151811061340657fe5b602001015160f81c60f81b82828151811061341d57fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a90535080806001019150506133a9565b50809250505092915050565b60008060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8061349257fe5b848609905083850292508281039150828110156134b0576001820391505b509250929050565b60008082600003831690508083816134cc57fe5b0492508085816134d857fe5b04945060018182600003816134e957fe5b04018402850194506000600190508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808402600203810290508084026002038102905080840260020381029050808602925050509392505050565b6000818360000180549050116135b6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401808060200182810382526022815260200180613fd06022913960400191505060405180910390fd5b8260000182815481106135c557fe5b9060005260206000200154905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600081600001805490509050919050565b600080823b905060008111915050919050565b600060019054906101000a900460ff168061363e575061363d612c4a565b5b80613654575060008054906101000a900460ff16155b6136a9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156136f9576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b801561371a5760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061373c575061373b612c4a565b5b80613752575060008054906101000a900460ff16155b6137a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156137f7576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b80156138185760008060016101000a81548160ff0219169083151502179055505b50565b600060019054906101000a900460ff168061383a5750613839612c4a565b5b80613850575060008054906101000a900460ff16155b6138a5576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040180806020018281038252602e815260200180614051602e913960400191505060405180910390fd5b60008060019054906101000a900460ff1615905080156138f5576001600060016101000a81548160ff02191690831515021790555060016000806101000a81548160ff0219169083151502179055505b6000603360006101000a81548160ff02191690831515021790555080156139315760008060016101000a81548160ff0219169083151502179055505b50565b600061394083836135d8565b61399957826000018290806001815401808255809150506001900390600052602060002001600090919091909150558260000180549050836001016000848152602001908152602001600020819055506001905061399e565b600090505b92915050565b60008083600101600084815260200190815260200160002054905060008114613a8057600060018203905060006001866000018054905003905060008660000182815481106139ef57fe5b9060005260206000200154905080876000018481548110613a0c57fe5b9060005260206000200181905550600183018760010160008381526020019081526020016000208190555086600001805480613a4457fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613a86565b60009150505b92915050565b60606000613aae613aa5613a9f86613c42565b85613b57565b60006006613d53565b905060006001613abd83613e2c565b1890506000600667ffffffffffffffff81118015613ada57600080fd5b50604051908082528060200260200182016040528015613b095781602001602082028036833780820191505090505b50905060005b6006811015613b4a57601f8160050360050284901c16828281518110613b3157fe5b6020026020010181815250508080600101915050613b0f565b5080935050505092915050565b60606000825184510167ffffffffffffffff81118015613b7657600080fd5b50604051908082528060200260200182016040528015613ba55781602001602082028036833780820191505090505b50905060005b8451811015613bed57848181518110613bc057fe5b6020026020010151828281518110613bd457fe5b6020026020010181815250508080600101915050613bab565b60005b8451811015613c3657848180600101925081518110613c0b57fe5b6020026020010151838380600101945081518110613c2557fe5b602002602001018181525050613bf0565b82935050505092915050565b60606000600183518451010167ffffffffffffffff81118015613c6457600080fd5b50604051908082528060200260200182016040528015613c935781602001602082028036833780820191505090505b50905060005b8351811015613cdf576005848281518110613cb057fe5b6020026020010151901c828281518110613cc657fe5b6020026020010181815250508080600101915050613c99565b50600081845181518110613cef57fe5b60200260200101818152505060005b8351811015613d4957601f848281518110613d1557fe5b602002602001015116826001865184010181518110613d3057fe5b6020026020010181815250508080600101915050613cfe565b5080915050919050565b606060008285510167ffffffffffffffff81118015613d7157600080fd5b50604051908082528060200260200182016040528015613da05781602001602082028036833780820191505090505b50905060005b8551811015613de857858181518110613dbb57fe5b6020026020010151828281518110613dcf57fe5b6020026020010181815250508080600101915050613da6565b60005b84811015613e1f5785838380600101945081518110613e0657fe5b6020026020010181815250508080600101915050613deb565b8293505050509392505050565b6000806040518060a00160405280633b6a57b263ffffffff1681526020016326508e6d63ffffffff168152602001631ea119fa63ffffffff168152602001633d4233dd63ffffffff168152602001632a1462b363ffffffff16815250905060006001905060005b8451811015613f19576000601983901c9050858281518110613eb157fe5b602002602001015160056301ffffff8516901b18925060005b6005811015613f0a576001808284901c161415613efd57848160058110613eed57fe5b602002015163ffffffff16841893505b8080600101915050613eca565b50508080600101915050613e93565b508092505050919050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613f5a5760008555613fa1565b82601f10613f7357805160ff1916838001178555613fa1565b82800160010185558215613fa1579182015b82811115613fa0578251825591602001919060010190613f85565b5b509050613fae9190613fb2565b5090565b5b80821115613fcb576000816000905550600101613fb3565b509056fe456e756d657261626c655365743a20696e646578206f7574206f6620626f756e6473416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f206772616e74416363657373436f6e74726f6c3a2073656e646572206d75737420626520616e2061646d696e20746f207265766f6b65496e697469616c697a61626c653a20636f6e747261637420697320616c726561647920696e697469616c697a6564536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f77416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636520726f6c657320666f722073656c66a26469706673582212202563cfd65665aea585f37583a0720e784f48d311107165bb83c70351e69e806f64736f6c63430007060033",
}

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

func (_TokenWrapper *TokenWrapperCaller) DataBytesSize(opts *bind.CallOpts) (*big.Int, error)

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

func (_TokenWrapper *TokenWrapperCaller) UTokens(opts *bind.CallOpts) (common.Address, error)

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

func (_TokenWrapper *TokenWrapperCaller) ValueDivisor(opts *bind.CallOpts) (*big.Int, error)

ValueDivisor is a free data retrieval call binding the contract method 0x728a99ee.

Solidity: function _valueDivisor() view returns(uint256)

func (*TokenWrapperCaller) Version added in v0.5.1

func (_TokenWrapper *TokenWrapperCaller) Version(opts *bind.CallOpts) (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x3e118dbe.

Solidity: function _version() 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)

func (*TokenWrapperCallerSession) Version added in v0.5.1

func (_TokenWrapper *TokenWrapperCallerSession) Version() (*big.Int, error)

Version is a free data retrieval call binding the contract method 0x3e118dbe.

Solidity: function _version() 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) (*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 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 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) (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 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

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

func (*TokenWrapperGenerateUTokensInBatchIterator) Error added in v0.5.1

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperGenerateUTokensInBatchIterator) Next added in v0.5.1

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

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

func (*TokenWrapperGenerateUTokensIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperGenerateUTokensIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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

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

func (*TokenWrapperRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperRoleAdminChangedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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

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

func (*TokenWrapperRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperRoleGrantedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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

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

func (*TokenWrapperRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperRoleRevokedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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(uint256 wrappedTokens)

func (*TokenWrapperSession) GenerateUTokensInBatch

func (_TokenWrapper *TokenWrapperSession) GenerateUTokensInBatch(toAddresses []common.Address, amounts []*big.Int) (*types.Transaction, error)

GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.

Solidity: function generateUTokensInBatch(address[] toAddresses, uint256[] amounts) returns(uint256[] wrappedTokensArray)

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(uint256 unwrappedTokens)

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

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

func (*TokenWrapperSetMinimumValuesIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperSetMinimumValuesIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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

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

func (*TokenWrapperSetUTokensContractIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperSetUTokensContractIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type 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(uint256 wrappedTokens)

func (*TokenWrapperTransactor) GenerateUTokensInBatch

func (_TokenWrapper *TokenWrapperTransactor) GenerateUTokensInBatch(opts *bind.TransactOpts, toAddresses []common.Address, amounts []*big.Int) (*types.Transaction, error)

GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.

Solidity: function generateUTokensInBatch(address[] toAddresses, uint256[] amounts) returns(uint256[] wrappedTokensArray)

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(uint256 unwrappedTokens)

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(uint256 wrappedTokens)

func (*TokenWrapperTransactorSession) GenerateUTokensInBatch

func (_TokenWrapper *TokenWrapperTransactorSession) GenerateUTokensInBatch(toAddresses []common.Address, amounts []*big.Int) (*types.Transaction, error)

GenerateUTokensInBatch is a paid mutator transaction binding the contract method 0xe7fa0a32.

Solidity: function generateUTokensInBatch(address[] toAddresses, uint256[] amounts) returns(uint256[] wrappedTokensArray)

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(uint256 unwrappedTokens)

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

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 string
	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

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

func (*TokenWrapperWithdrawUTokensIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*TokenWrapperWithdrawUTokensIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

Jump to

Keyboard shortcuts

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