bindings

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FastBridgeABI = FastBridgeMetaData.ABI

FastBridgeABI is the input ABI used to generate the binding from. Deprecated: Use FastBridgeMetaData.ABI instead.

View Source
var FastBridgeBin = FastBridgeMetaData.Bin

FastBridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use FastBridgeMetaData.Bin instead.

View Source
var FastBridgeMetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_owner\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"AccessControlBadConfirmation\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"neededRole\",\"type\":\"bytes32\"}],\"name\":\"AccessControlUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"}],\"name\":\"AddressEmptyCode\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"AddressInsufficientBalance\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AmountIncorrect\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ChainIncorrect\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DeadlineExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DeadlineNotExceeded\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DeadlineTooShort\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DisputePeriodNotPassed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DisputePeriodPassed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"FailedInnerCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MsgValueIncorrect\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"SafeERC20FailedOperation\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"SenderIncorrect\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"StatusIncorrect\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenNotContract\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TokenNotETH\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"TransactionRelayed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ZeroAddress\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BridgeDepositClaimed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BridgeDepositRefunded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"name\":\"BridgeProofDisputed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionHash\",\"type\":\"bytes32\"}],\"name\":\"BridgeProofProvided\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"BridgeRelayed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"}],\"name\":\"BridgeRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"GuardAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"guard\",\"type\":\"address\"}],\"name\":\"GuardRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"name\":\"RelayerAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"name\":\"RelayerRemoved\",\"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\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DISPUTE_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GUARD_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MIN_DEADLINE_PERIOD\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RELAYER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"acceptOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_guard\",\"type\":\"address\"}],\"name\":\"addGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"}],\"name\":\"addRelayer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"dstChainId\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"originToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"originAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"}],\"internalType\":\"structIFastBridge.BridgeParams\",\"name\":\"params\",\"type\":\"tuple\"}],\"name\":\"bridge\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"bridgeProofs\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"timestamp\",\"type\":\"uint96\"},{\"internalType\":\"address\",\"name\":\"relayer\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"bridgeRelays\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"bridgeStatuses\",\"outputs\":[{\"internalType\":\"enumFastBridge.BridgeStatus\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"claim\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"transactionId\",\"type\":\"bytes32\"}],\"name\":\"dispute\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"}],\"name\":\"getBridgeTransaction\",\"outputs\":[{\"components\":[{\"internalType\":\"uint32\",\"name\":\"originChainId\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"destChainId\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originSender\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destRecipient\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"originToken\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"destToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"originAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"destAmount\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"deadline\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"}],\"internalType\":\"structIFastBridge.BridgeTransaction\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"pure\",\"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\":\"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\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"},{\"internalType\":\"bytes32\",\"name\":\"destTxHash\",\"type\":\"bytes32\"}],\"name\":\"prove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"}],\"name\":\"refund\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes\",\"name\":\"request\",\"type\":\"bytes\"}],\"name\":\"relay\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_guard\",\"type\":\"address\"}],\"name\":\"removeGuard\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_relayer\",\"type\":\"address\"}],\"name\":\"removeRelayer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"callerConfirmation\",\"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\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162002203380380620022038339810160408190526200003491620001a8565b80806001600160a01b0381166200006557604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b620000708162000087565b506200007e600082620000a5565b505050620001da565b600180546001600160a01b0319169055620000a28162000158565b50565b60008281526002602090815260408083206001600160a01b038516845290915281205460ff166200014e5760008381526002602090815260408083206001600160a01b03861684529091529020805460ff19166001179055620001053390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a450600162000152565b5060005b92915050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215620001bb57600080fd5b81516001600160a01b0381168114620001d357600080fd5b9392505050565b61201980620001ea6000396000f3fe6080604052600436106101d85760003560e01c80638da5cb5b11610102578063add98c7011610095578063dd39f00d11610064578063dd39f00d146105a2578063e30c3978146105c2578063ef059bd3146105e0578063f2fde38b1461060057600080fd5b8063add98c701461052c578063affed0e01461054c578063b623501614610562578063d547741f1461058257600080fd5b8063926d7d7f116100d1578063926d7d7f146104c8578063a217fddf146104ea578063a5bbe22b1461038e578063ac11fb1a146104ff57600080fd5b80638da5cb5b146103f45780638f0d6f171461042657806391ad50391461043957806391d14854146104a857600080fd5b806341fcb6121161017a57806379ba50971161014957806379ba509714610379578063820688d51461038e5780638379a24f146103a4578063886d36ff146103d457600080fd5b806341fcb6121461030457806360f0a5ac146103245780636913a63c14610344578063715018a61461036457600080fd5b80630728e3ad116101b65780630728e3ad1461027f578063248a9ca3146102945780632f2ff15d146102c457806336568abe146102e457600080fd5b806301ffc9a7146101dd57806303ed0ee514610212578063051287bc14610242575b600080fd5b3480156101e957600080fd5b506101fd6101f8366004611992565b610620565b60405190151581526020015b60405180910390f35b34801561021e57600080fd5b50610234600080516020611fa483398151915281565b604051908152602001610209565b34801561024e57600080fd5b5061027261025d3660046119bc565b60036020526000908152604090205460ff1681565b60405161020991906119eb565b61029261028d366004611a7a565b610657565b005b3480156102a057600080fd5b506102346102af3660046119bc565b60009081526002602052604090206001015490565b3480156102d057600080fd5b506102926102df366004611b22565b610865565b3480156102f057600080fd5b506102926102ff366004611b22565b610890565b34801561031057600080fd5b5061029261031f366004611bdf565b6108c8565b34801561033057600080fd5b5061029261033f366004611c26565b610a80565b34801561035057600080fd5b5061029261035f366004611c26565b610aed565b34801561037057600080fd5b50610292610b53565b34801561038557600080fd5b50610292610b67565b34801561039a57600080fd5b5061023461070881565b3480156103b057600080fd5b506101fd6103bf3660046119bc565b60056020526000908152604090205460ff1681565b3480156103e057600080fd5b506102926103ef366004611c43565b610bab565b34801561040057600080fd5b506000546001600160a01b03165b6040516001600160a01b039091168152602001610209565b610292610434366004611c88565b610cf7565b34801561044557600080fd5b506104816104543660046119bc565b6004602052600090815260409020546001600160601b03811690600160601b90046001600160a01b031682565b604080516001600160601b0390931683526001600160a01b03909116602083015201610209565b3480156104b457600080fd5b506101fd6104c3366004611b22565b610e37565b3480156104d457600080fd5b50610234600080516020611fc483398151915281565b3480156104f657600080fd5b50610234600081565b34801561050b57600080fd5b5061051f61051a366004611c88565b610e62565b6040516102099190611cc5565b34801561053857600080fd5b506102926105473660046119bc565b610ec5565b34801561055857600080fd5b5061023460065481565b34801561056e57600080fd5b5061029261057d366004611c26565b611028565b34801561058e57600080fd5b5061029261059d366004611b22565b61108e565b3480156105ae57600080fd5b506102926105bd366004611c26565b6110b3565b3480156105ce57600080fd5b506001546001600160a01b031661040e565b3480156105ec57600080fd5b506102926105fb366004611bdf565b611119565b34801561060c57600080fd5b5061029261061b366004611c26565b61124b565b60006001600160e01b03198216637965db0b60e01b148061065157506301ffc9a760e01b6001600160e01b03198316145b92915050565b46816000015163ffffffff160361068157604051637029fdf960e01b815260040160405180910390fd5b60808101511580610694575060a0810151155b156106b257604051631c71041960e31b815260040160405180910390fd5b60408101516001600160a01b031615806106d7575060608101516001600160a01b0316155b156106f55760405163d92e233d60e01b815260040160405180910390fd5b61070161070842611da0565b8160c001511015610724576040516296ff9960e31b815260040160405180910390fd5b600061073930836040015184608001516112bc565b905060006040518061014001604052804663ffffffff168152602001846000015163ffffffff168152602001336001600160a01b0316815260200184602001516001600160a01b0316815260200184604001516001600160a01b0316815260200184606001516001600160a01b031681526020018381526020018460a0015181526020018460c001518152602001600660008154809291906107da90611db3565b9091555090526040516107f09190602001611cc5565b60408051808303601f19018152828252805160208083019190912060008181526003909252929020805460ff191660011790559250907f2a8233b619c9d479346e133f609855c0a94d89fbcfa62f846a9f0cfdd1198ccf9061085790839033908690611df0565b60405180910390a150505050565b60008281526002602052604090206001015461088081611462565b61088a838361146c565b50505050565b6001600160a01b03811633146108b95760405163334bd91960e11b815260040160405180910390fd5b6108c38282611500565b505050565b6108e0600080516020611fc483398151915233610e37565b6109055760405162461bcd60e51b81526004016108fc90611e39565b60405180910390fd5b81516020830120600061091784610e62565b9050600260008381526003602052604090205460ff16600481111561093e5761093e6119d5565b1461095c576040516320a2c0b960e11b815260040160405180910390fd5b6000828152600460209081526040918290208251808401909352546001600160601b0381168352600160601b90046001600160a01b031690820181905233146109b8576040516304af43a960e41b815260040160405180910390fd5b80516107089042036001600160601b0316116109e757604051631992d0bd60e01b815260040160405180910390fd5b6000838152600360208190526040909120805460ff19169091179055608082015160c0830151610a216001600160a01b038316878361156d565b604080518681523360208201526001600160a01b0388811682840152841660608201526080810183905290517f582211c35a2139ac3bbaac74663c6a1f56c6cbb658b41fe11fd45a82074ac6789181900360a00190a150505050505050565b610a8b600033610e37565b610a9457600080fd5b610aac600080516020611fc483398151915282611500565b506040516001600160a01b03821681527f10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b906020015b60405180910390a150565b610af8600033610e37565b610b0157600080fd5b610b19600080516020611fa48339815191528261146c565b506040516001600160a01b03821681527f93405f05cd04f0d1bd875f2de00f1f3890484ffd0589248953bdfd29ba7f2f5990602001610ae2565b610b5b611654565b610b656000611681565b565b60015433906001600160a01b03168114610b9f5760405163118cdaa760e01b81526001600160a01b03821660048201526024016108fc565b610ba881611681565b50565b610bc3600080516020611fc483398151915233610e37565b610bdf5760405162461bcd60e51b81526004016108fc90611e39565b815160208301206000610bf184610e62565b9050806101000151421115610c195760405163559895a360e01b815260040160405180910390fd5b600160008381526003602052604090205460ff166004811115610c3e57610c3e6119d5565b14610c5c576040516320a2c0b960e11b815260040160405180910390fd5b6000828152600360209081526040808320805460ff19166002179055805180820182526001600160601b034281168252338285018181528887526004865295849020925195516001600160a01b0316600160601b02959091169490941790558051858152918201929092529081018490527f4ac8af8a2cd87193d64dfc7a3b8d9923b714ec528b18725d080aa1299be0c5e490606001610857565b610d0f600080516020611fc483398151915233610e37565b610d2b5760405162461bcd60e51b81526004016108fc90611e39565b805160208201206000610d3d83610e62565b90504663ffffffff16816020015163ffffffff1614610d6f57604051637029fdf960e01b815260040160405180910390fd5b60008281526005602052604090205460ff1615610d9f5760405163bef7bb7d60e01b815260040160405180910390fd5b6000828152600560205260409020805460ff19166001179055606081015160a082015160e0830151610dd28383836112bc565b50604080518681523360208201526001600160a01b03808616928201929092529083166060820152608081018290527f7212c977e94cbafc6e4685aee721574624efaa1993ce2b48d1bb37c27ffa13f49060a0015b60405180910390a1505050505050565b60009182526002602090815260408084206001600160a01b0393909316845291905290205460ff1690565b604080516101408101825260008082526020808301829052928201819052606082018190526080820181905260a0820181905260c0820181905260e082018190526101008201819052610120820152825190916106519184018101908401611e8b565b610edd600080516020611fa483398151915233610e37565b610f215760405162461bcd60e51b815260206004820152601560248201527410d85b1b195c881a5cc81b9bdd08184819dd585c99605a1b60448201526064016108fc565b600260008281526003602052604090205460ff166004811115610f4657610f466119d5565b14610f64576040516320a2c0b960e11b815260040160405180910390fd5b6000818152600460209081526040918290208251808401909352546001600160601b03808216808552600160601b9092046001600160a01b03169390920192909252610708914203161115610fcc57604051630fa422ab60e21b815260040160405180910390fd5b6000818152600360209081526040808320805460ff191660011790556004825280832092909255815183815233918101919091527f0695cf1d39b3055dcd0fe02d8b47eaf0d5a13e1996de925de59d0ef9b7f7fad49101610ae2565b611033600033610e37565b61103c57600080fd5b611054600080516020611fa483398151915282611500565b506040516001600160a01b03821681527f59926e0a78d12238b668b31c8e3f6ece235a59a00ede111d883e255b68c4d04890602001610ae2565b6000828152600260205260409020600101546110a981611462565b61088a8383611500565b6110be600033610e37565b6110c757600080fd5b6110df600080516020611fc48339815191528261146c565b506040516001600160a01b03821681527f03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c590602001610ae2565b81516020830120600061112b84610e62565b60408101519091506001600160a01b0316331461115b576040516304af43a960e41b815260040160405180910390fd5b8061010001514211611180576040516370affcf560e11b815260040160405180910390fd5b600160008381526003602052604090205460ff1660048111156111a5576111a56119d5565b146111c3576040516320a2c0b960e11b815260040160405180910390fd5b6000828152600360205260409020805460ff19166004179055608081015160c08201516111fa6001600160a01b038316868361156d565b604080518581526001600160a01b038088166020830152841691810191909152606081018290527fb4c55c0c9bc613519b920e88748090150b890a875d307f21bea7d4fb2e8bc95890608001610e27565b611253611654565b600180546001600160a01b0383166001600160a01b031990911681179091556112846000546001600160a01b031690565b6001600160a01b03167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b6000346000036113d7576112d8836001600160a01b031661169a565b6040516370a0823160e01b81526001600160a01b0385811660048301528416906370a0823190602401602060405180830381865afa15801561131e573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113429190611f39565b90506113596001600160a01b038416338685611703565b6040516370a0823160e01b81526001600160a01b0385811660048301528291908516906370a0823190602401602060405180830381865afa1580156113a2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113c69190611f39565b6113d09190611f52565b905061145b565b6001600160a01b03831673eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee1461141457604051632eac7efb60e01b815260040160405180910390fd5b348214611434576040516381de0bf360e01b815260040160405180910390fd5b6001600160a01b0384163014611458576114586001600160a01b038416858461156d565b50345b9392505050565b610ba8813361176a565b60006114788383610e37565b6114f85760008381526002602090815260408083206001600160a01b03861684529091529020805460ff191660011790556114b03390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a4506001610651565b506000610651565b600061150c8383610e37565b156114f85760008381526002602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a4506001610651565b306001600160a01b0383160361158257505050565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b03841601611640576000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146115f4576040519150601f19603f3d011682016040523d82523d6000602084013e6115f9565b606091505b505090508061088a5760405162461bcd60e51b8152602060048201526013602482015272115512081d1c985b9cd9995c8819985a5b1959606a1b60448201526064016108fc565b6108c36001600160a01b03841683836117a7565b6000546001600160a01b03163314610b655760405163118cdaa760e01b81523360048201526024016108fc565b600180546001600160a01b0319169055610ba8816117d8565b73eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeed196001600160a01b038216016116d857604051630fea47fd60e31b815260040160405180910390fd5b806001600160a01b03163b600003610ba857604051630fea47fd60e31b815260040160405180910390fd5b6040516001600160a01b03848116602483015283811660448301526064820183905261088a9186918216906323b872dd906084015b604051602081830303815290604052915060e01b6020820180516001600160e01b038381831617835250505050611828565b6117748282610e37565b6117a35760405163e2517d3f60e01b81526001600160a01b0382166004820152602481018390526044016108fc565b5050565b6040516001600160a01b038381166024830152604482018390526108c391859182169063a9059cbb90606401611738565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600061183d6001600160a01b0384168361188b565b905080516000141580156118625750808060200190518101906118609190611f65565b155b156108c357604051635274afe760e01b81526001600160a01b03841660048201526024016108fc565b606061145b8383600084600080856001600160a01b031684866040516118b19190611f87565b60006040518083038185875af1925050503d80600081146118ee576040519150601f19603f3d011682016040523d82523d6000602084013e6118f3565b606091505b509150915061190386838361190d565b9695505050505050565b6060826119225761191d82611969565b61145b565b815115801561193957506001600160a01b0384163b155b1561196257604051639996b31560e01b81526001600160a01b03851660048201526024016108fc565b508061145b565b8051156119795780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6000602082840312156119a457600080fd5b81356001600160e01b03198116811461145b57600080fd5b6000602082840312156119ce57600080fd5b5035919050565b634e487b7160e01b600052602160045260246000fd5b6020810160058310611a0d57634e487b7160e01b600052602160045260246000fd5b91905290565b634e487b7160e01b600052604160045260246000fd5b604051610140810167ffffffffffffffff81118282101715611a4d57611a4d611a13565b60405290565b63ffffffff81168114610ba857600080fd5b6001600160a01b0381168114610ba857600080fd5b600060e08284031215611a8c57600080fd5b60405160e0810181811067ffffffffffffffff82111715611aaf57611aaf611a13565b6040528235611abd81611a53565b81526020830135611acd81611a65565b60208201526040830135611ae081611a65565b60408201526060830135611af381611a65565b806060830152506080830135608082015260a083013560a082015260c083013560c08201528091505092915050565b60008060408385031215611b3557600080fd5b823591506020830135611b4781611a65565b809150509250929050565b600082601f830112611b6357600080fd5b813567ffffffffffffffff80821115611b7e57611b7e611a13565b604051601f8301601f19908116603f01168101908282118183101715611ba657611ba6611a13565b81604052838152866020858801011115611bbf57600080fd5b836020870160208301376000602085830101528094505050505092915050565b60008060408385031215611bf257600080fd5b823567ffffffffffffffff811115611c0957600080fd5b611c1585828601611b52565b9250506020830135611b4781611a65565b600060208284031215611c3857600080fd5b813561145b81611a65565b60008060408385031215611c5657600080fd5b823567ffffffffffffffff811115611c6d57600080fd5b611c7985828601611b52565b95602094909401359450505050565b600060208284031215611c9a57600080fd5b813567ffffffffffffffff811115611cb157600080fd5b611cbd84828501611b52565b949350505050565b815163ffffffff16815261014081016020830151611ceb602084018263ffffffff169052565b506040830151611d0660408401826001600160a01b03169052565b506060830151611d2160608401826001600160a01b03169052565b506080830151611d3c60808401826001600160a01b03169052565b5060a0830151611d5760a08401826001600160a01b03169052565b5060c083015160c083015260e083015160e083015261010080840151818401525061012080840151818401525092915050565b634e487b7160e01b600052601160045260246000fd5b8082018082111561065157610651611d8a565b600060018201611dc557611dc5611d8a565b5060010190565b60005b83811015611de7578181015183820152602001611dcf565b50506000910152565b83815260018060a01b03831660208201526060604082015260008251806060840152611e23816080850160208701611dcc565b601f01601f191691909101608001949350505050565b60208082526017908201527f43616c6c6572206973206e6f7420612072656c61796572000000000000000000604082015260600190565b8051611e7b81611a53565b919050565b8051611e7b81611a65565b60006101408284031215611e9e57600080fd5b611ea6611a29565b611eaf83611e70565b8152611ebd60208401611e70565b6020820152611ece60408401611e80565b6040820152611edf60608401611e80565b6060820152611ef060808401611e80565b6080820152611f0160a08401611e80565b60a082015260c0838101519082015260e080840151908201526101008084015190820152610120928301519281019290925250919050565b600060208284031215611f4b57600080fd5b5051919050565b8181038181111561065157610651611d8a565b600060208284031215611f7757600080fd5b8151801515811461145b57600080fd5b60008251611f99818460208701611dcc565b919091019291505056fe043c983c49d46f0e102151eaf8085d4a2e6571d5df2d47b013f39bddfd4a639de2b7fb3b832174769106daebcfd6d1970523240dda11281102db9363b83b0dc4a2646970667358221220d833f950f5c5a94f30f986e95ad4e04bbd71de404b78dca3e783ec76dd968d0a64736f6c63430008140033",
}

FastBridgeMetaData contains all meta data concerning the FastBridge contract.

View Source
var MockERC20ABI = MockERC20MetaData.ABI

MockERC20ABI is the input ABI used to generate the binding from. Deprecated: Use MockERC20MetaData.ABI instead.

View Source
var MockERC20Bin = MockERC20MetaData.Bin

MockERC20Bin is the compiled bytecode used for deploying new contracts. Deprecated: Use MockERC20MetaData.Bin instead.

View Source
var MockERC20MetaData = &bind.MetaData{
	ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals_\",\"type\":\"uint8\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"allowance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientAllowance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"needed\",\"type\":\"uint256\"}],\"name\":\"ERC20InsufficientBalance\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"approver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidApprover\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"receiver\",\"type\":\"address\"}],\"name\":\"ERC20InvalidReceiver\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSender\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"ERC20InvalidSpender\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"}],\"name\":\"allowance\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"decimals\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
	Bin: "0x60806040523480156200001157600080fd5b5060405162000adb38038062000adb8339810160408190526200003491620000a0565b8180600362000044828262000217565b50600462000053828262000217565b50506005805460ff191660ff939093169290921790915550620002e39050565b634e487b7160e01b600052604160045260246000fd5b805160ff811681146200009b57600080fd5b919050565b60008060408385031215620000b457600080fd5b82516001600160401b0380821115620000cc57600080fd5b818501915085601f830112620000e157600080fd5b815181811115620000f657620000f662000073565b604051601f8201601f19908116603f0116810190838211818310171562000121576200012162000073565b816040528281526020935088848487010111156200013e57600080fd5b600091505b8282101562000162578482018401518183018501529083019062000143565b60008484830101528096505050506200017d81860162000089565b925050509250929050565b600181811c908216806200019d57607f821691505b602082108103620001be57634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200021257600081815260208120601f850160051c81016020861015620001ed5750805b601f850160051c820191505b818110156200020e57828155600101620001f9565b5050505b505050565b81516001600160401b0381111562000233576200023362000073565b6200024b8162000244845462000188565b84620001c4565b602080601f8311600181146200028357600084156200026a5750858301515b600019600386901b1c1916600185901b1785556200020e565b600085815260208120601f198616915b82811015620002b45788860151825594840194600190910190840162000293565b5085821015620002d35787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6107e880620002f36000396000f3fe608060405234801561001057600080fd5b50600436106100a95760003560e01c806340c10f191161007157806340c10f191461012957806370a082311461013e57806395d89b41146101675780639dc29fac1461016f578063a9059cbb14610182578063dd62ed3e1461019557600080fd5b806306fdde03146100ae578063095ea7b3146100cc57806318160ddd146100ef57806323b872dd14610101578063313ce56714610114575b600080fd5b6100b66101ce565b6040516100c39190610632565b60405180910390f35b6100df6100da36600461069c565b610260565b60405190151581526020016100c3565b6002545b6040519081526020016100c3565b6100df61010f3660046106c6565b61027a565b60055460405160ff90911681526020016100c3565b61013c61013736600461069c565b61029e565b005b6100f361014c366004610702565b6001600160a01b031660009081526020819052604090205490565b6100b66102ac565b61013c61017d36600461069c565b6102bb565b6100df61019036600461069c565b6102c5565b6100f36101a3366004610724565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b6060600380546101dd90610757565b80601f016020809104026020016040519081016040528092919081815260200182805461020990610757565b80156102565780601f1061022b57610100808354040283529160200191610256565b820191906000526020600020905b81548152906001019060200180831161023957829003601f168201915b5050505050905090565b60003361026e8185856102d3565b60019150505b92915050565b6000336102888582856102e5565b610293858585610368565b506001949350505050565b6102a882826103c7565b5050565b6060600480546101dd90610757565b6102a882826103fd565b60003361026e818585610368565b6102e08383836001610433565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610362578181101561035357604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064015b60405180910390fd5b61036284848484036000610433565b50505050565b6001600160a01b03831661039257604051634b637e8f60e11b81526000600482015260240161034a565b6001600160a01b0382166103bc5760405163ec442f0560e01b81526000600482015260240161034a565b6102e0838383610508565b6001600160a01b0382166103f15760405163ec442f0560e01b81526000600482015260240161034a565b6102a860008383610508565b6001600160a01b03821661042757604051634b637e8f60e11b81526000600482015260240161034a565b6102a882600083610508565b6001600160a01b03841661045d5760405163e602df0560e01b81526000600482015260240161034a565b6001600160a01b03831661048757604051634a1406b160e11b81526000600482015260240161034a565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561036257826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516104fa91815260200190565b60405180910390a350505050565b6001600160a01b0383166105335780600260008282546105289190610791565b909155506105a59050565b6001600160a01b038316600090815260208190526040902054818110156105865760405163391434e360e21b81526001600160a01b0385166004820152602481018290526044810183905260640161034a565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b0382166105c1576002805482900390556105e0565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef8360405161062591815260200190565b60405180910390a3505050565b600060208083528351808285015260005b8181101561065f57858101830151858201604001528201610643565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b038116811461069757600080fd5b919050565b600080604083850312156106af57600080fd5b6106b883610680565b946020939093013593505050565b6000806000606084860312156106db57600080fd5b6106e484610680565b92506106f260208501610680565b9150604084013590509250925092565b60006020828403121561071457600080fd5b61071d82610680565b9392505050565b6000806040838503121561073757600080fd5b61074083610680565b915061074e60208401610680565b90509250929050565b600181811c9082168061076b57607f821691505b60208210810361078b57634e487b7160e01b600052602260045260246000fd5b50919050565b8082018082111561027457634e487b7160e01b600052601160045260246000fdfea264697066735822122098fc60cd8686841b1f67e99fb61333809f1841d99b5b9ed4f6bd2d50df14db1f64736f6c63430008140033",
}

MockERC20MetaData contains all meta data concerning the MockERC20 contract.

Functions

This section is empty.

Types

type FastBridge

type FastBridge struct {
	FastBridgeCaller     // Read-only binding to the contract
	FastBridgeTransactor // Write-only binding to the contract
	FastBridgeFilterer   // Log filterer for contract events
}

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

func DeployFastBridge

func DeployFastBridge(auth *bind.TransactOpts, backend bind.ContractBackend, _owner common.Address) (common.Address, *types.Transaction, *FastBridge, error)

DeployFastBridge deploys a new Ethereum contract, binding an instance of FastBridge to it.

func NewFastBridge

func NewFastBridge(address common.Address, backend bind.ContractBackend) (*FastBridge, error)

NewFastBridge creates a new instance of FastBridge, bound to a specific deployed contract.

type FastBridgeBridgeDepositClaimed

type FastBridgeBridgeDepositClaimed struct {
	TransactionId [32]byte
	Relayer       common.Address
	To            common.Address
	Token         common.Address
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeDepositClaimed represents a BridgeDepositClaimed event raised by the FastBridge contract.

type FastBridgeBridgeDepositClaimedIterator

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

FastBridgeBridgeDepositClaimedIterator is returned from FilterBridgeDepositClaimed and is used to iterate over the raw logs and unpacked data for BridgeDepositClaimed events raised by the FastBridge contract.

func (*FastBridgeBridgeDepositClaimedIterator) Close

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

func (*FastBridgeBridgeDepositClaimedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeDepositClaimedIterator) 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 FastBridgeBridgeDepositRefunded

type FastBridgeBridgeDepositRefunded struct {
	TransactionId [32]byte
	To            common.Address
	Token         common.Address
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeDepositRefunded represents a BridgeDepositRefunded event raised by the FastBridge contract.

type FastBridgeBridgeDepositRefundedIterator

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

FastBridgeBridgeDepositRefundedIterator is returned from FilterBridgeDepositRefunded and is used to iterate over the raw logs and unpacked data for BridgeDepositRefunded events raised by the FastBridge contract.

func (*FastBridgeBridgeDepositRefundedIterator) Close

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

func (*FastBridgeBridgeDepositRefundedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeDepositRefundedIterator) 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 FastBridgeBridgeProofDisputed

type FastBridgeBridgeProofDisputed struct {
	TransactionId [32]byte
	Relayer       common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeProofDisputed represents a BridgeProofDisputed event raised by the FastBridge contract.

type FastBridgeBridgeProofDisputedIterator

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

FastBridgeBridgeProofDisputedIterator is returned from FilterBridgeProofDisputed and is used to iterate over the raw logs and unpacked data for BridgeProofDisputed events raised by the FastBridge contract.

func (*FastBridgeBridgeProofDisputedIterator) Close

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

func (*FastBridgeBridgeProofDisputedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeProofDisputedIterator) 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 FastBridgeBridgeProofProvided

type FastBridgeBridgeProofProvided struct {
	TransactionId   [32]byte
	Relayer         common.Address
	TransactionHash [32]byte
	Raw             types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeProofProvided represents a BridgeProofProvided event raised by the FastBridge contract.

type FastBridgeBridgeProofProvidedIterator

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

FastBridgeBridgeProofProvidedIterator is returned from FilterBridgeProofProvided and is used to iterate over the raw logs and unpacked data for BridgeProofProvided events raised by the FastBridge contract.

func (*FastBridgeBridgeProofProvidedIterator) Close

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

func (*FastBridgeBridgeProofProvidedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeProofProvidedIterator) 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 FastBridgeBridgeRelayed

type FastBridgeBridgeRelayed struct {
	TransactionId [32]byte
	Relayer       common.Address
	To            common.Address
	Token         common.Address
	Amount        *big.Int
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeRelayed represents a BridgeRelayed event raised by the FastBridge contract.

type FastBridgeBridgeRelayedIterator

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

FastBridgeBridgeRelayedIterator is returned from FilterBridgeRelayed and is used to iterate over the raw logs and unpacked data for BridgeRelayed events raised by the FastBridge contract.

func (*FastBridgeBridgeRelayedIterator) Close

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

func (*FastBridgeBridgeRelayedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeRelayedIterator) 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 FastBridgeBridgeRequested

type FastBridgeBridgeRequested struct {
	TransactionId [32]byte
	Sender        common.Address
	Request       []byte
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeBridgeRequested represents a BridgeRequested event raised by the FastBridge contract.

type FastBridgeBridgeRequestedIterator

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

FastBridgeBridgeRequestedIterator is returned from FilterBridgeRequested and is used to iterate over the raw logs and unpacked data for BridgeRequested events raised by the FastBridge contract.

func (*FastBridgeBridgeRequestedIterator) Close

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

func (*FastBridgeBridgeRequestedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeBridgeRequestedIterator) 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 FastBridgeCaller

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

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

func NewFastBridgeCaller

func NewFastBridgeCaller(address common.Address, caller bind.ContractCaller) (*FastBridgeCaller, error)

NewFastBridgeCaller creates a new read-only instance of FastBridge, bound to a specific deployed contract.

func (*FastBridgeCaller) BridgeProofs

func (_FastBridge *FastBridgeCaller) BridgeProofs(opts *bind.CallOpts, arg0 [32]byte) (struct {
	Timestamp *big.Int
	Relayer   common.Address
}, error)

BridgeProofs is a free data retrieval call binding the contract method 0x91ad5039.

Solidity: function bridgeProofs(bytes32 ) view returns(uint96 timestamp, address relayer)

func (*FastBridgeCaller) BridgeRelays

func (_FastBridge *FastBridgeCaller) BridgeRelays(opts *bind.CallOpts, arg0 [32]byte) (bool, error)

BridgeRelays is a free data retrieval call binding the contract method 0x8379a24f.

Solidity: function bridgeRelays(bytes32 ) view returns(bool)

func (*FastBridgeCaller) BridgeStatuses

func (_FastBridge *FastBridgeCaller) BridgeStatuses(opts *bind.CallOpts, arg0 [32]byte) (uint8, error)

BridgeStatuses is a free data retrieval call binding the contract method 0x051287bc.

Solidity: function bridgeStatuses(bytes32 ) view returns(uint8)

func (*FastBridgeCaller) DEFAULTADMINROLE

func (_FastBridge *FastBridgeCaller) 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 (*FastBridgeCaller) DISPUTEPERIOD

func (_FastBridge *FastBridgeCaller) DISPUTEPERIOD(opts *bind.CallOpts) (*big.Int, error)

DISPUTEPERIOD is a free data retrieval call binding the contract method 0xa5bbe22b.

Solidity: function DISPUTE_PERIOD() view returns(uint256)

func (*FastBridgeCaller) GUARDROLE

func (_FastBridge *FastBridgeCaller) GUARDROLE(opts *bind.CallOpts) ([32]byte, error)

GUARDROLE is a free data retrieval call binding the contract method 0x03ed0ee5.

Solidity: function GUARD_ROLE() view returns(bytes32)

func (*FastBridgeCaller) GetBridgeTransaction

func (_FastBridge *FastBridgeCaller) GetBridgeTransaction(opts *bind.CallOpts, request []byte) (IFastBridgeBridgeTransaction, error)

GetBridgeTransaction is a free data retrieval call binding the contract method 0xac11fb1a.

Solidity: function getBridgeTransaction(bytes request) pure returns((uint32,uint32,address,address,address,address,uint256,uint256,uint256,uint256))

func (*FastBridgeCaller) GetRoleAdmin

func (_FastBridge *FastBridgeCaller) 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 (*FastBridgeCaller) HasRole

func (_FastBridge *FastBridgeCaller) 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 (*FastBridgeCaller) MINDEADLINEPERIOD

func (_FastBridge *FastBridgeCaller) MINDEADLINEPERIOD(opts *bind.CallOpts) (*big.Int, error)

MINDEADLINEPERIOD is a free data retrieval call binding the contract method 0x820688d5.

Solidity: function MIN_DEADLINE_PERIOD() view returns(uint256)

func (*FastBridgeCaller) Nonce

func (_FastBridge *FastBridgeCaller) Nonce(opts *bind.CallOpts) (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

func (*FastBridgeCaller) Owner

func (_FastBridge *FastBridgeCaller) Owner(opts *bind.CallOpts) (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*FastBridgeCaller) PendingOwner

func (_FastBridge *FastBridgeCaller) PendingOwner(opts *bind.CallOpts) (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*FastBridgeCaller) RELAYERROLE

func (_FastBridge *FastBridgeCaller) RELAYERROLE(opts *bind.CallOpts) ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*FastBridgeCaller) SupportsInterface

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

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

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

type FastBridgeCallerRaw

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

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

func (*FastBridgeCallerRaw) Call

func (_FastBridge *FastBridgeCallerRaw) 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 FastBridgeCallerSession

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

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

func (*FastBridgeCallerSession) BridgeProofs

func (_FastBridge *FastBridgeCallerSession) BridgeProofs(arg0 [32]byte) (struct {
	Timestamp *big.Int
	Relayer   common.Address
}, error)

BridgeProofs is a free data retrieval call binding the contract method 0x91ad5039.

Solidity: function bridgeProofs(bytes32 ) view returns(uint96 timestamp, address relayer)

func (*FastBridgeCallerSession) BridgeRelays

func (_FastBridge *FastBridgeCallerSession) BridgeRelays(arg0 [32]byte) (bool, error)

BridgeRelays is a free data retrieval call binding the contract method 0x8379a24f.

Solidity: function bridgeRelays(bytes32 ) view returns(bool)

func (*FastBridgeCallerSession) BridgeStatuses

func (_FastBridge *FastBridgeCallerSession) BridgeStatuses(arg0 [32]byte) (uint8, error)

BridgeStatuses is a free data retrieval call binding the contract method 0x051287bc.

Solidity: function bridgeStatuses(bytes32 ) view returns(uint8)

func (*FastBridgeCallerSession) DEFAULTADMINROLE

func (_FastBridge *FastBridgeCallerSession) 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 (*FastBridgeCallerSession) DISPUTEPERIOD

func (_FastBridge *FastBridgeCallerSession) DISPUTEPERIOD() (*big.Int, error)

DISPUTEPERIOD is a free data retrieval call binding the contract method 0xa5bbe22b.

Solidity: function DISPUTE_PERIOD() view returns(uint256)

func (*FastBridgeCallerSession) GUARDROLE

func (_FastBridge *FastBridgeCallerSession) GUARDROLE() ([32]byte, error)

GUARDROLE is a free data retrieval call binding the contract method 0x03ed0ee5.

Solidity: function GUARD_ROLE() view returns(bytes32)

func (*FastBridgeCallerSession) GetBridgeTransaction

func (_FastBridge *FastBridgeCallerSession) GetBridgeTransaction(request []byte) (IFastBridgeBridgeTransaction, error)

GetBridgeTransaction is a free data retrieval call binding the contract method 0xac11fb1a.

Solidity: function getBridgeTransaction(bytes request) pure returns((uint32,uint32,address,address,address,address,uint256,uint256,uint256,uint256))

func (*FastBridgeCallerSession) GetRoleAdmin

func (_FastBridge *FastBridgeCallerSession) 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 (*FastBridgeCallerSession) HasRole

func (_FastBridge *FastBridgeCallerSession) 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 (*FastBridgeCallerSession) MINDEADLINEPERIOD

func (_FastBridge *FastBridgeCallerSession) MINDEADLINEPERIOD() (*big.Int, error)

MINDEADLINEPERIOD is a free data retrieval call binding the contract method 0x820688d5.

Solidity: function MIN_DEADLINE_PERIOD() view returns(uint256)

func (*FastBridgeCallerSession) Nonce

func (_FastBridge *FastBridgeCallerSession) Nonce() (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

func (*FastBridgeCallerSession) Owner

func (_FastBridge *FastBridgeCallerSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*FastBridgeCallerSession) PendingOwner

func (_FastBridge *FastBridgeCallerSession) PendingOwner() (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*FastBridgeCallerSession) RELAYERROLE

func (_FastBridge *FastBridgeCallerSession) RELAYERROLE() ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*FastBridgeCallerSession) SupportsInterface

func (_FastBridge *FastBridgeCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error)

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

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

type FastBridgeFilterer

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

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

func NewFastBridgeFilterer

func NewFastBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*FastBridgeFilterer, error)

NewFastBridgeFilterer creates a new log filterer instance of FastBridge, bound to a specific deployed contract.

func (*FastBridgeFilterer) FilterBridgeDepositClaimed

func (_FastBridge *FastBridgeFilterer) FilterBridgeDepositClaimed(opts *bind.FilterOpts) (*FastBridgeBridgeDepositClaimedIterator, error)

FilterBridgeDepositClaimed is a free log retrieval operation binding the contract event 0x582211c35a2139ac3bbaac74663c6a1f56c6cbb658b41fe11fd45a82074ac678.

Solidity: event BridgeDepositClaimed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) FilterBridgeDepositRefunded

func (_FastBridge *FastBridgeFilterer) FilterBridgeDepositRefunded(opts *bind.FilterOpts) (*FastBridgeBridgeDepositRefundedIterator, error)

FilterBridgeDepositRefunded is a free log retrieval operation binding the contract event 0xb4c55c0c9bc613519b920e88748090150b890a875d307f21bea7d4fb2e8bc958.

Solidity: event BridgeDepositRefunded(bytes32 transactionId, address to, address token, uint256 amount)

func (*FastBridgeFilterer) FilterBridgeProofDisputed

func (_FastBridge *FastBridgeFilterer) FilterBridgeProofDisputed(opts *bind.FilterOpts) (*FastBridgeBridgeProofDisputedIterator, error)

FilterBridgeProofDisputed is a free log retrieval operation binding the contract event 0x0695cf1d39b3055dcd0fe02d8b47eaf0d5a13e1996de925de59d0ef9b7f7fad4.

Solidity: event BridgeProofDisputed(bytes32 transactionId, address relayer)

func (*FastBridgeFilterer) FilterBridgeProofProvided

func (_FastBridge *FastBridgeFilterer) FilterBridgeProofProvided(opts *bind.FilterOpts) (*FastBridgeBridgeProofProvidedIterator, error)

FilterBridgeProofProvided is a free log retrieval operation binding the contract event 0x4ac8af8a2cd87193d64dfc7a3b8d9923b714ec528b18725d080aa1299be0c5e4.

Solidity: event BridgeProofProvided(bytes32 transactionId, address relayer, bytes32 transactionHash)

func (*FastBridgeFilterer) FilterBridgeRelayed

func (_FastBridge *FastBridgeFilterer) FilterBridgeRelayed(opts *bind.FilterOpts) (*FastBridgeBridgeRelayedIterator, error)

FilterBridgeRelayed is a free log retrieval operation binding the contract event 0x7212c977e94cbafc6e4685aee721574624efaa1993ce2b48d1bb37c27ffa13f4.

Solidity: event BridgeRelayed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) FilterBridgeRequested

func (_FastBridge *FastBridgeFilterer) FilterBridgeRequested(opts *bind.FilterOpts) (*FastBridgeBridgeRequestedIterator, error)

FilterBridgeRequested is a free log retrieval operation binding the contract event 0x2a8233b619c9d479346e133f609855c0a94d89fbcfa62f846a9f0cfdd1198ccf.

Solidity: event BridgeRequested(bytes32 transactionId, address sender, bytes request)

func (*FastBridgeFilterer) FilterGuardAdded

func (_FastBridge *FastBridgeFilterer) FilterGuardAdded(opts *bind.FilterOpts) (*FastBridgeGuardAddedIterator, error)

FilterGuardAdded is a free log retrieval operation binding the contract event 0x93405f05cd04f0d1bd875f2de00f1f3890484ffd0589248953bdfd29ba7f2f59.

Solidity: event GuardAdded(address guard)

func (*FastBridgeFilterer) FilterGuardRemoved

func (_FastBridge *FastBridgeFilterer) FilterGuardRemoved(opts *bind.FilterOpts) (*FastBridgeGuardRemovedIterator, error)

FilterGuardRemoved is a free log retrieval operation binding the contract event 0x59926e0a78d12238b668b31c8e3f6ece235a59a00ede111d883e255b68c4d048.

Solidity: event GuardRemoved(address guard)

func (*FastBridgeFilterer) FilterOwnershipTransferStarted

func (_FastBridge *FastBridgeFilterer) FilterOwnershipTransferStarted(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FastBridgeOwnershipTransferStartedIterator, error)

FilterOwnershipTransferStarted is a free log retrieval operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.

Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) FilterOwnershipTransferred

func (_FastBridge *FastBridgeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*FastBridgeOwnershipTransferredIterator, error)

FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) FilterRelayerAdded

func (_FastBridge *FastBridgeFilterer) FilterRelayerAdded(opts *bind.FilterOpts) (*FastBridgeRelayerAddedIterator, error)

FilterRelayerAdded is a free log retrieval operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address relayer)

func (*FastBridgeFilterer) FilterRelayerRemoved

func (_FastBridge *FastBridgeFilterer) FilterRelayerRemoved(opts *bind.FilterOpts) (*FastBridgeRelayerRemovedIterator, error)

FilterRelayerRemoved is a free log retrieval operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address relayer)

func (*FastBridgeFilterer) FilterRoleAdminChanged

func (_FastBridge *FastBridgeFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*FastBridgeRoleAdminChangedIterator, 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 (*FastBridgeFilterer) FilterRoleGranted

func (_FastBridge *FastBridgeFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*FastBridgeRoleGrantedIterator, 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 (*FastBridgeFilterer) FilterRoleRevoked

func (_FastBridge *FastBridgeFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*FastBridgeRoleRevokedIterator, 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 (*FastBridgeFilterer) ParseBridgeDepositClaimed

func (_FastBridge *FastBridgeFilterer) ParseBridgeDepositClaimed(log types.Log) (*FastBridgeBridgeDepositClaimed, error)

ParseBridgeDepositClaimed is a log parse operation binding the contract event 0x582211c35a2139ac3bbaac74663c6a1f56c6cbb658b41fe11fd45a82074ac678.

Solidity: event BridgeDepositClaimed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) ParseBridgeDepositRefunded

func (_FastBridge *FastBridgeFilterer) ParseBridgeDepositRefunded(log types.Log) (*FastBridgeBridgeDepositRefunded, error)

ParseBridgeDepositRefunded is a log parse operation binding the contract event 0xb4c55c0c9bc613519b920e88748090150b890a875d307f21bea7d4fb2e8bc958.

Solidity: event BridgeDepositRefunded(bytes32 transactionId, address to, address token, uint256 amount)

func (*FastBridgeFilterer) ParseBridgeProofDisputed

func (_FastBridge *FastBridgeFilterer) ParseBridgeProofDisputed(log types.Log) (*FastBridgeBridgeProofDisputed, error)

ParseBridgeProofDisputed is a log parse operation binding the contract event 0x0695cf1d39b3055dcd0fe02d8b47eaf0d5a13e1996de925de59d0ef9b7f7fad4.

Solidity: event BridgeProofDisputed(bytes32 transactionId, address relayer)

func (*FastBridgeFilterer) ParseBridgeProofProvided

func (_FastBridge *FastBridgeFilterer) ParseBridgeProofProvided(log types.Log) (*FastBridgeBridgeProofProvided, error)

ParseBridgeProofProvided is a log parse operation binding the contract event 0x4ac8af8a2cd87193d64dfc7a3b8d9923b714ec528b18725d080aa1299be0c5e4.

Solidity: event BridgeProofProvided(bytes32 transactionId, address relayer, bytes32 transactionHash)

func (*FastBridgeFilterer) ParseBridgeRelayed

func (_FastBridge *FastBridgeFilterer) ParseBridgeRelayed(log types.Log) (*FastBridgeBridgeRelayed, error)

ParseBridgeRelayed is a log parse operation binding the contract event 0x7212c977e94cbafc6e4685aee721574624efaa1993ce2b48d1bb37c27ffa13f4.

Solidity: event BridgeRelayed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) ParseBridgeRequested

func (_FastBridge *FastBridgeFilterer) ParseBridgeRequested(log types.Log) (*FastBridgeBridgeRequested, error)

ParseBridgeRequested is a log parse operation binding the contract event 0x2a8233b619c9d479346e133f609855c0a94d89fbcfa62f846a9f0cfdd1198ccf.

Solidity: event BridgeRequested(bytes32 transactionId, address sender, bytes request)

func (*FastBridgeFilterer) ParseGuardAdded

func (_FastBridge *FastBridgeFilterer) ParseGuardAdded(log types.Log) (*FastBridgeGuardAdded, error)

ParseGuardAdded is a log parse operation binding the contract event 0x93405f05cd04f0d1bd875f2de00f1f3890484ffd0589248953bdfd29ba7f2f59.

Solidity: event GuardAdded(address guard)

func (*FastBridgeFilterer) ParseGuardRemoved

func (_FastBridge *FastBridgeFilterer) ParseGuardRemoved(log types.Log) (*FastBridgeGuardRemoved, error)

ParseGuardRemoved is a log parse operation binding the contract event 0x59926e0a78d12238b668b31c8e3f6ece235a59a00ede111d883e255b68c4d048.

Solidity: event GuardRemoved(address guard)

func (*FastBridgeFilterer) ParseOwnershipTransferStarted

func (_FastBridge *FastBridgeFilterer) ParseOwnershipTransferStarted(log types.Log) (*FastBridgeOwnershipTransferStarted, error)

ParseOwnershipTransferStarted is a log parse operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.

Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) ParseOwnershipTransferred

func (_FastBridge *FastBridgeFilterer) ParseOwnershipTransferred(log types.Log) (*FastBridgeOwnershipTransferred, error)

ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) ParseRelayerAdded

func (_FastBridge *FastBridgeFilterer) ParseRelayerAdded(log types.Log) (*FastBridgeRelayerAdded, error)

ParseRelayerAdded is a log parse operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address relayer)

func (*FastBridgeFilterer) ParseRelayerRemoved

func (_FastBridge *FastBridgeFilterer) ParseRelayerRemoved(log types.Log) (*FastBridgeRelayerRemoved, error)

ParseRelayerRemoved is a log parse operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address relayer)

func (*FastBridgeFilterer) ParseRoleAdminChanged

func (_FastBridge *FastBridgeFilterer) ParseRoleAdminChanged(log types.Log) (*FastBridgeRoleAdminChanged, 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 (*FastBridgeFilterer) ParseRoleGranted

func (_FastBridge *FastBridgeFilterer) ParseRoleGranted(log types.Log) (*FastBridgeRoleGranted, 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 (*FastBridgeFilterer) ParseRoleRevoked

func (_FastBridge *FastBridgeFilterer) ParseRoleRevoked(log types.Log) (*FastBridgeRoleRevoked, 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 (*FastBridgeFilterer) WatchBridgeDepositClaimed

func (_FastBridge *FastBridgeFilterer) WatchBridgeDepositClaimed(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeDepositClaimed) (event.Subscription, error)

WatchBridgeDepositClaimed is a free log subscription operation binding the contract event 0x582211c35a2139ac3bbaac74663c6a1f56c6cbb658b41fe11fd45a82074ac678.

Solidity: event BridgeDepositClaimed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) WatchBridgeDepositRefunded

func (_FastBridge *FastBridgeFilterer) WatchBridgeDepositRefunded(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeDepositRefunded) (event.Subscription, error)

WatchBridgeDepositRefunded is a free log subscription operation binding the contract event 0xb4c55c0c9bc613519b920e88748090150b890a875d307f21bea7d4fb2e8bc958.

Solidity: event BridgeDepositRefunded(bytes32 transactionId, address to, address token, uint256 amount)

func (*FastBridgeFilterer) WatchBridgeProofDisputed

func (_FastBridge *FastBridgeFilterer) WatchBridgeProofDisputed(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeProofDisputed) (event.Subscription, error)

WatchBridgeProofDisputed is a free log subscription operation binding the contract event 0x0695cf1d39b3055dcd0fe02d8b47eaf0d5a13e1996de925de59d0ef9b7f7fad4.

Solidity: event BridgeProofDisputed(bytes32 transactionId, address relayer)

func (*FastBridgeFilterer) WatchBridgeProofProvided

func (_FastBridge *FastBridgeFilterer) WatchBridgeProofProvided(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeProofProvided) (event.Subscription, error)

WatchBridgeProofProvided is a free log subscription operation binding the contract event 0x4ac8af8a2cd87193d64dfc7a3b8d9923b714ec528b18725d080aa1299be0c5e4.

Solidity: event BridgeProofProvided(bytes32 transactionId, address relayer, bytes32 transactionHash)

func (*FastBridgeFilterer) WatchBridgeRelayed

func (_FastBridge *FastBridgeFilterer) WatchBridgeRelayed(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeRelayed) (event.Subscription, error)

WatchBridgeRelayed is a free log subscription operation binding the contract event 0x7212c977e94cbafc6e4685aee721574624efaa1993ce2b48d1bb37c27ffa13f4.

Solidity: event BridgeRelayed(bytes32 transactionId, address relayer, address to, address token, uint256 amount)

func (*FastBridgeFilterer) WatchBridgeRequested

func (_FastBridge *FastBridgeFilterer) WatchBridgeRequested(opts *bind.WatchOpts, sink chan<- *FastBridgeBridgeRequested) (event.Subscription, error)

WatchBridgeRequested is a free log subscription operation binding the contract event 0x2a8233b619c9d479346e133f609855c0a94d89fbcfa62f846a9f0cfdd1198ccf.

Solidity: event BridgeRequested(bytes32 transactionId, address sender, bytes request)

func (*FastBridgeFilterer) WatchGuardAdded

func (_FastBridge *FastBridgeFilterer) WatchGuardAdded(opts *bind.WatchOpts, sink chan<- *FastBridgeGuardAdded) (event.Subscription, error)

WatchGuardAdded is a free log subscription operation binding the contract event 0x93405f05cd04f0d1bd875f2de00f1f3890484ffd0589248953bdfd29ba7f2f59.

Solidity: event GuardAdded(address guard)

func (*FastBridgeFilterer) WatchGuardRemoved

func (_FastBridge *FastBridgeFilterer) WatchGuardRemoved(opts *bind.WatchOpts, sink chan<- *FastBridgeGuardRemoved) (event.Subscription, error)

WatchGuardRemoved is a free log subscription operation binding the contract event 0x59926e0a78d12238b668b31c8e3f6ece235a59a00ede111d883e255b68c4d048.

Solidity: event GuardRemoved(address guard)

func (*FastBridgeFilterer) WatchOwnershipTransferStarted

func (_FastBridge *FastBridgeFilterer) WatchOwnershipTransferStarted(opts *bind.WatchOpts, sink chan<- *FastBridgeOwnershipTransferStarted, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferStarted is a free log subscription operation binding the contract event 0x38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e22700.

Solidity: event OwnershipTransferStarted(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) WatchOwnershipTransferred

func (_FastBridge *FastBridgeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *FastBridgeOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error)

WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.

Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)

func (*FastBridgeFilterer) WatchRelayerAdded

func (_FastBridge *FastBridgeFilterer) WatchRelayerAdded(opts *bind.WatchOpts, sink chan<- *FastBridgeRelayerAdded) (event.Subscription, error)

WatchRelayerAdded is a free log subscription operation binding the contract event 0x03580ee9f53a62b7cb409a2cb56f9be87747dd15017afc5cef6eef321e4fb2c5.

Solidity: event RelayerAdded(address relayer)

func (*FastBridgeFilterer) WatchRelayerRemoved

func (_FastBridge *FastBridgeFilterer) WatchRelayerRemoved(opts *bind.WatchOpts, sink chan<- *FastBridgeRelayerRemoved) (event.Subscription, error)

WatchRelayerRemoved is a free log subscription operation binding the contract event 0x10e1f7ce9fd7d1b90a66d13a2ab3cb8dd7f29f3f8d520b143b063ccfbab6906b.

Solidity: event RelayerRemoved(address relayer)

func (*FastBridgeFilterer) WatchRoleAdminChanged

func (_FastBridge *FastBridgeFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *FastBridgeRoleAdminChanged, 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 (*FastBridgeFilterer) WatchRoleGranted

func (_FastBridge *FastBridgeFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *FastBridgeRoleGranted, 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 (*FastBridgeFilterer) WatchRoleRevoked

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

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

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

type FastBridgeGuardAdded

type FastBridgeGuardAdded struct {
	Guard common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

FastBridgeGuardAdded represents a GuardAdded event raised by the FastBridge contract.

type FastBridgeGuardAddedIterator

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

FastBridgeGuardAddedIterator is returned from FilterGuardAdded and is used to iterate over the raw logs and unpacked data for GuardAdded events raised by the FastBridge contract.

func (*FastBridgeGuardAddedIterator) Close

func (it *FastBridgeGuardAddedIterator) Close() error

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

func (*FastBridgeGuardAddedIterator) Error

func (it *FastBridgeGuardAddedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeGuardAddedIterator) 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 FastBridgeGuardRemoved

type FastBridgeGuardRemoved struct {
	Guard common.Address
	Raw   types.Log // Blockchain specific contextual infos
}

FastBridgeGuardRemoved represents a GuardRemoved event raised by the FastBridge contract.

type FastBridgeGuardRemovedIterator

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

FastBridgeGuardRemovedIterator is returned from FilterGuardRemoved and is used to iterate over the raw logs and unpacked data for GuardRemoved events raised by the FastBridge contract.

func (*FastBridgeGuardRemovedIterator) Close

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

func (*FastBridgeGuardRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeGuardRemovedIterator) 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 FastBridgeOwnershipTransferStarted

type FastBridgeOwnershipTransferStarted struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeOwnershipTransferStarted represents a OwnershipTransferStarted event raised by the FastBridge contract.

type FastBridgeOwnershipTransferStartedIterator

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

FastBridgeOwnershipTransferStartedIterator is returned from FilterOwnershipTransferStarted and is used to iterate over the raw logs and unpacked data for OwnershipTransferStarted events raised by the FastBridge contract.

func (*FastBridgeOwnershipTransferStartedIterator) Close

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

func (*FastBridgeOwnershipTransferStartedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeOwnershipTransferStartedIterator) 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 FastBridgeOwnershipTransferred

type FastBridgeOwnershipTransferred struct {
	PreviousOwner common.Address
	NewOwner      common.Address
	Raw           types.Log // Blockchain specific contextual infos
}

FastBridgeOwnershipTransferred represents a OwnershipTransferred event raised by the FastBridge contract.

type FastBridgeOwnershipTransferredIterator

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

FastBridgeOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the FastBridge contract.

func (*FastBridgeOwnershipTransferredIterator) Close

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

func (*FastBridgeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeOwnershipTransferredIterator) 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 FastBridgeRaw

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

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

func (*FastBridgeRaw) Call

func (_FastBridge *FastBridgeRaw) 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 (*FastBridgeRaw) Transact

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

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

func (*FastBridgeRaw) Transfer

func (_FastBridge *FastBridgeRaw) 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 FastBridgeRelayerAdded

type FastBridgeRelayerAdded struct {
	Relayer common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

FastBridgeRelayerAdded represents a RelayerAdded event raised by the FastBridge contract.

type FastBridgeRelayerAddedIterator

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

FastBridgeRelayerAddedIterator is returned from FilterRelayerAdded and is used to iterate over the raw logs and unpacked data for RelayerAdded events raised by the FastBridge contract.

func (*FastBridgeRelayerAddedIterator) Close

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

func (*FastBridgeRelayerAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeRelayerAddedIterator) 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 FastBridgeRelayerRemoved

type FastBridgeRelayerRemoved struct {
	Relayer common.Address
	Raw     types.Log // Blockchain specific contextual infos
}

FastBridgeRelayerRemoved represents a RelayerRemoved event raised by the FastBridge contract.

type FastBridgeRelayerRemovedIterator

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

FastBridgeRelayerRemovedIterator is returned from FilterRelayerRemoved and is used to iterate over the raw logs and unpacked data for RelayerRemoved events raised by the FastBridge contract.

func (*FastBridgeRelayerRemovedIterator) Close

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

func (*FastBridgeRelayerRemovedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeRelayerRemovedIterator) 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 FastBridgeRoleAdminChanged

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

FastBridgeRoleAdminChanged represents a RoleAdminChanged event raised by the FastBridge contract.

type FastBridgeRoleAdminChangedIterator

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

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

func (*FastBridgeRoleAdminChangedIterator) Close

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

func (*FastBridgeRoleAdminChangedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeRoleAdminChangedIterator) 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 FastBridgeRoleGranted

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

FastBridgeRoleGranted represents a RoleGranted event raised by the FastBridge contract.

type FastBridgeRoleGrantedIterator

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

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

func (*FastBridgeRoleGrantedIterator) Close

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

func (*FastBridgeRoleGrantedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeRoleGrantedIterator) 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 FastBridgeRoleRevoked

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

FastBridgeRoleRevoked represents a RoleRevoked event raised by the FastBridge contract.

type FastBridgeRoleRevokedIterator

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

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

func (*FastBridgeRoleRevokedIterator) Close

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

func (*FastBridgeRoleRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FastBridgeRoleRevokedIterator) 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 FastBridgeSession

type FastBridgeSession struct {
	Contract     *FastBridge       // 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
}

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

func (*FastBridgeSession) AcceptOwnership

func (_FastBridge *FastBridgeSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FastBridgeSession) AddGuard

func (_FastBridge *FastBridgeSession) AddGuard(_guard common.Address) (*types.Transaction, error)

AddGuard is a paid mutator transaction binding the contract method 0x6913a63c.

Solidity: function addGuard(address _guard) returns()

func (*FastBridgeSession) AddRelayer

func (_FastBridge *FastBridgeSession) AddRelayer(_relayer common.Address) (*types.Transaction, error)

AddRelayer is a paid mutator transaction binding the contract method 0xdd39f00d.

Solidity: function addRelayer(address _relayer) returns()

func (*FastBridgeSession) Bridge

func (_FastBridge *FastBridgeSession) Bridge(params IFastBridgeBridgeParams) (*types.Transaction, error)

Bridge is a paid mutator transaction binding the contract method 0x0728e3ad.

Solidity: function bridge((uint32,address,address,address,uint256,uint256,uint256) params) payable returns()

func (*FastBridgeSession) BridgeProofs

func (_FastBridge *FastBridgeSession) BridgeProofs(arg0 [32]byte) (struct {
	Timestamp *big.Int
	Relayer   common.Address
}, error)

BridgeProofs is a free data retrieval call binding the contract method 0x91ad5039.

Solidity: function bridgeProofs(bytes32 ) view returns(uint96 timestamp, address relayer)

func (*FastBridgeSession) BridgeRelays

func (_FastBridge *FastBridgeSession) BridgeRelays(arg0 [32]byte) (bool, error)

BridgeRelays is a free data retrieval call binding the contract method 0x8379a24f.

Solidity: function bridgeRelays(bytes32 ) view returns(bool)

func (*FastBridgeSession) BridgeStatuses

func (_FastBridge *FastBridgeSession) BridgeStatuses(arg0 [32]byte) (uint8, error)

BridgeStatuses is a free data retrieval call binding the contract method 0x051287bc.

Solidity: function bridgeStatuses(bytes32 ) view returns(uint8)

func (*FastBridgeSession) Claim

func (_FastBridge *FastBridgeSession) Claim(request []byte, to common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x41fcb612.

Solidity: function claim(bytes request, address to) returns()

func (*FastBridgeSession) DEFAULTADMINROLE

func (_FastBridge *FastBridgeSession) 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 (*FastBridgeSession) DISPUTEPERIOD

func (_FastBridge *FastBridgeSession) DISPUTEPERIOD() (*big.Int, error)

DISPUTEPERIOD is a free data retrieval call binding the contract method 0xa5bbe22b.

Solidity: function DISPUTE_PERIOD() view returns(uint256)

func (*FastBridgeSession) Dispute

func (_FastBridge *FastBridgeSession) Dispute(transactionId [32]byte) (*types.Transaction, error)

Dispute is a paid mutator transaction binding the contract method 0xadd98c70.

Solidity: function dispute(bytes32 transactionId) returns()

func (*FastBridgeSession) GUARDROLE

func (_FastBridge *FastBridgeSession) GUARDROLE() ([32]byte, error)

GUARDROLE is a free data retrieval call binding the contract method 0x03ed0ee5.

Solidity: function GUARD_ROLE() view returns(bytes32)

func (*FastBridgeSession) GetBridgeTransaction

func (_FastBridge *FastBridgeSession) GetBridgeTransaction(request []byte) (IFastBridgeBridgeTransaction, error)

GetBridgeTransaction is a free data retrieval call binding the contract method 0xac11fb1a.

Solidity: function getBridgeTransaction(bytes request) pure returns((uint32,uint32,address,address,address,address,uint256,uint256,uint256,uint256))

func (*FastBridgeSession) GetRoleAdmin

func (_FastBridge *FastBridgeSession) 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 (*FastBridgeSession) GrantRole

func (_FastBridge *FastBridgeSession) 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 (*FastBridgeSession) HasRole

func (_FastBridge *FastBridgeSession) 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 (*FastBridgeSession) MINDEADLINEPERIOD

func (_FastBridge *FastBridgeSession) MINDEADLINEPERIOD() (*big.Int, error)

MINDEADLINEPERIOD is a free data retrieval call binding the contract method 0x820688d5.

Solidity: function MIN_DEADLINE_PERIOD() view returns(uint256)

func (*FastBridgeSession) Nonce

func (_FastBridge *FastBridgeSession) Nonce() (*big.Int, error)

Nonce is a free data retrieval call binding the contract method 0xaffed0e0.

Solidity: function nonce() view returns(uint256)

func (*FastBridgeSession) Owner

func (_FastBridge *FastBridgeSession) Owner() (common.Address, error)

Owner is a free data retrieval call binding the contract method 0x8da5cb5b.

Solidity: function owner() view returns(address)

func (*FastBridgeSession) PendingOwner

func (_FastBridge *FastBridgeSession) PendingOwner() (common.Address, error)

PendingOwner is a free data retrieval call binding the contract method 0xe30c3978.

Solidity: function pendingOwner() view returns(address)

func (*FastBridgeSession) Prove

func (_FastBridge *FastBridgeSession) Prove(request []byte, destTxHash [32]byte) (*types.Transaction, error)

Prove is a paid mutator transaction binding the contract method 0x886d36ff.

Solidity: function prove(bytes request, bytes32 destTxHash) returns()

func (*FastBridgeSession) RELAYERROLE

func (_FastBridge *FastBridgeSession) RELAYERROLE() ([32]byte, error)

RELAYERROLE is a free data retrieval call binding the contract method 0x926d7d7f.

Solidity: function RELAYER_ROLE() view returns(bytes32)

func (*FastBridgeSession) Refund

func (_FastBridge *FastBridgeSession) Refund(request []byte, to common.Address) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0xef059bd3.

Solidity: function refund(bytes request, address to) returns()

func (*FastBridgeSession) Relay

func (_FastBridge *FastBridgeSession) Relay(request []byte) (*types.Transaction, error)

Relay is a paid mutator transaction binding the contract method 0x8f0d6f17.

Solidity: function relay(bytes request) payable returns()

func (*FastBridgeSession) RemoveGuard

func (_FastBridge *FastBridgeSession) RemoveGuard(_guard common.Address) (*types.Transaction, error)

RemoveGuard is a paid mutator transaction binding the contract method 0xb6235016.

Solidity: function removeGuard(address _guard) returns()

func (*FastBridgeSession) RemoveRelayer

func (_FastBridge *FastBridgeSession) RemoveRelayer(_relayer common.Address) (*types.Transaction, error)

RemoveRelayer is a paid mutator transaction binding the contract method 0x60f0a5ac.

Solidity: function removeRelayer(address _relayer) returns()

func (*FastBridgeSession) RenounceOwnership

func (_FastBridge *FastBridgeSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FastBridgeSession) RenounceRole

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

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

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

func (*FastBridgeSession) RevokeRole

func (_FastBridge *FastBridgeSession) 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 (*FastBridgeSession) SupportsInterface

func (_FastBridge *FastBridgeSession) SupportsInterface(interfaceId [4]byte) (bool, error)

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

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

func (*FastBridgeSession) TransferOwnership

func (_FastBridge *FastBridgeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type FastBridgeTransactor

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

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

func NewFastBridgeTransactor

func NewFastBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*FastBridgeTransactor, error)

NewFastBridgeTransactor creates a new write-only instance of FastBridge, bound to a specific deployed contract.

func (*FastBridgeTransactor) AcceptOwnership

func (_FastBridge *FastBridgeTransactor) AcceptOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FastBridgeTransactor) AddGuard

func (_FastBridge *FastBridgeTransactor) AddGuard(opts *bind.TransactOpts, _guard common.Address) (*types.Transaction, error)

AddGuard is a paid mutator transaction binding the contract method 0x6913a63c.

Solidity: function addGuard(address _guard) returns()

func (*FastBridgeTransactor) AddRelayer

func (_FastBridge *FastBridgeTransactor) AddRelayer(opts *bind.TransactOpts, _relayer common.Address) (*types.Transaction, error)

AddRelayer is a paid mutator transaction binding the contract method 0xdd39f00d.

Solidity: function addRelayer(address _relayer) returns()

func (*FastBridgeTransactor) Bridge

func (_FastBridge *FastBridgeTransactor) Bridge(opts *bind.TransactOpts, params IFastBridgeBridgeParams) (*types.Transaction, error)

Bridge is a paid mutator transaction binding the contract method 0x0728e3ad.

Solidity: function bridge((uint32,address,address,address,uint256,uint256,uint256) params) payable returns()

func (*FastBridgeTransactor) Claim

func (_FastBridge *FastBridgeTransactor) Claim(opts *bind.TransactOpts, request []byte, to common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x41fcb612.

Solidity: function claim(bytes request, address to) returns()

func (*FastBridgeTransactor) Dispute

func (_FastBridge *FastBridgeTransactor) Dispute(opts *bind.TransactOpts, transactionId [32]byte) (*types.Transaction, error)

Dispute is a paid mutator transaction binding the contract method 0xadd98c70.

Solidity: function dispute(bytes32 transactionId) returns()

func (*FastBridgeTransactor) GrantRole

func (_FastBridge *FastBridgeTransactor) 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 (*FastBridgeTransactor) Prove

func (_FastBridge *FastBridgeTransactor) Prove(opts *bind.TransactOpts, request []byte, destTxHash [32]byte) (*types.Transaction, error)

Prove is a paid mutator transaction binding the contract method 0x886d36ff.

Solidity: function prove(bytes request, bytes32 destTxHash) returns()

func (*FastBridgeTransactor) Refund

func (_FastBridge *FastBridgeTransactor) Refund(opts *bind.TransactOpts, request []byte, to common.Address) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0xef059bd3.

Solidity: function refund(bytes request, address to) returns()

func (*FastBridgeTransactor) Relay

func (_FastBridge *FastBridgeTransactor) Relay(opts *bind.TransactOpts, request []byte) (*types.Transaction, error)

Relay is a paid mutator transaction binding the contract method 0x8f0d6f17.

Solidity: function relay(bytes request) payable returns()

func (*FastBridgeTransactor) RemoveGuard

func (_FastBridge *FastBridgeTransactor) RemoveGuard(opts *bind.TransactOpts, _guard common.Address) (*types.Transaction, error)

RemoveGuard is a paid mutator transaction binding the contract method 0xb6235016.

Solidity: function removeGuard(address _guard) returns()

func (*FastBridgeTransactor) RemoveRelayer

func (_FastBridge *FastBridgeTransactor) RemoveRelayer(opts *bind.TransactOpts, _relayer common.Address) (*types.Transaction, error)

RemoveRelayer is a paid mutator transaction binding the contract method 0x60f0a5ac.

Solidity: function removeRelayer(address _relayer) returns()

func (*FastBridgeTransactor) RenounceOwnership

func (_FastBridge *FastBridgeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FastBridgeTransactor) RenounceRole

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

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

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

func (*FastBridgeTransactor) RevokeRole

func (_FastBridge *FastBridgeTransactor) 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 (*FastBridgeTransactor) TransferOwnership

func (_FastBridge *FastBridgeTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type FastBridgeTransactorRaw

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

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

func (*FastBridgeTransactorRaw) Transact

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

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

func (*FastBridgeTransactorRaw) Transfer

func (_FastBridge *FastBridgeTransactorRaw) 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 FastBridgeTransactorSession

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

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

func (*FastBridgeTransactorSession) AcceptOwnership

func (_FastBridge *FastBridgeTransactorSession) AcceptOwnership() (*types.Transaction, error)

AcceptOwnership is a paid mutator transaction binding the contract method 0x79ba5097.

Solidity: function acceptOwnership() returns()

func (*FastBridgeTransactorSession) AddGuard

func (_FastBridge *FastBridgeTransactorSession) AddGuard(_guard common.Address) (*types.Transaction, error)

AddGuard is a paid mutator transaction binding the contract method 0x6913a63c.

Solidity: function addGuard(address _guard) returns()

func (*FastBridgeTransactorSession) AddRelayer

func (_FastBridge *FastBridgeTransactorSession) AddRelayer(_relayer common.Address) (*types.Transaction, error)

AddRelayer is a paid mutator transaction binding the contract method 0xdd39f00d.

Solidity: function addRelayer(address _relayer) returns()

func (*FastBridgeTransactorSession) Bridge

Bridge is a paid mutator transaction binding the contract method 0x0728e3ad.

Solidity: function bridge((uint32,address,address,address,uint256,uint256,uint256) params) payable returns()

func (*FastBridgeTransactorSession) Claim

func (_FastBridge *FastBridgeTransactorSession) Claim(request []byte, to common.Address) (*types.Transaction, error)

Claim is a paid mutator transaction binding the contract method 0x41fcb612.

Solidity: function claim(bytes request, address to) returns()

func (*FastBridgeTransactorSession) Dispute

func (_FastBridge *FastBridgeTransactorSession) Dispute(transactionId [32]byte) (*types.Transaction, error)

Dispute is a paid mutator transaction binding the contract method 0xadd98c70.

Solidity: function dispute(bytes32 transactionId) returns()

func (*FastBridgeTransactorSession) GrantRole

func (_FastBridge *FastBridgeTransactorSession) 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 (*FastBridgeTransactorSession) Prove

func (_FastBridge *FastBridgeTransactorSession) Prove(request []byte, destTxHash [32]byte) (*types.Transaction, error)

Prove is a paid mutator transaction binding the contract method 0x886d36ff.

Solidity: function prove(bytes request, bytes32 destTxHash) returns()

func (*FastBridgeTransactorSession) Refund

func (_FastBridge *FastBridgeTransactorSession) Refund(request []byte, to common.Address) (*types.Transaction, error)

Refund is a paid mutator transaction binding the contract method 0xef059bd3.

Solidity: function refund(bytes request, address to) returns()

func (*FastBridgeTransactorSession) Relay

func (_FastBridge *FastBridgeTransactorSession) Relay(request []byte) (*types.Transaction, error)

Relay is a paid mutator transaction binding the contract method 0x8f0d6f17.

Solidity: function relay(bytes request) payable returns()

func (*FastBridgeTransactorSession) RemoveGuard

func (_FastBridge *FastBridgeTransactorSession) RemoveGuard(_guard common.Address) (*types.Transaction, error)

RemoveGuard is a paid mutator transaction binding the contract method 0xb6235016.

Solidity: function removeGuard(address _guard) returns()

func (*FastBridgeTransactorSession) RemoveRelayer

func (_FastBridge *FastBridgeTransactorSession) RemoveRelayer(_relayer common.Address) (*types.Transaction, error)

RemoveRelayer is a paid mutator transaction binding the contract method 0x60f0a5ac.

Solidity: function removeRelayer(address _relayer) returns()

func (*FastBridgeTransactorSession) RenounceOwnership

func (_FastBridge *FastBridgeTransactorSession) RenounceOwnership() (*types.Transaction, error)

RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.

Solidity: function renounceOwnership() returns()

func (*FastBridgeTransactorSession) RenounceRole

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

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

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

func (*FastBridgeTransactorSession) RevokeRole

func (_FastBridge *FastBridgeTransactorSession) 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 (*FastBridgeTransactorSession) TransferOwnership

func (_FastBridge *FastBridgeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.

Solidity: function transferOwnership(address newOwner) returns()

type IFastBridgeBridgeParams

type IFastBridgeBridgeParams struct {
	DstChainId   uint32
	To           common.Address
	OriginToken  common.Address
	DestToken    common.Address
	OriginAmount *big.Int
	DestAmount   *big.Int
	Deadline     *big.Int
}

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

type IFastBridgeBridgeTransaction

type IFastBridgeBridgeTransaction struct {
	OriginChainId uint32
	DestChainId   uint32
	OriginSender  common.Address
	DestRecipient common.Address
	OriginToken   common.Address
	DestToken     common.Address
	OriginAmount  *big.Int
	DestAmount    *big.Int
	Deadline      *big.Int
	Nonce         *big.Int
}

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

type MockERC20

type MockERC20 struct {
	MockERC20Caller     // Read-only binding to the contract
	MockERC20Transactor // Write-only binding to the contract
	MockERC20Filterer   // Log filterer for contract events
}

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

func DeployMockERC20

func DeployMockERC20(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, decimals_ uint8) (common.Address, *types.Transaction, *MockERC20, error)

DeployMockERC20 deploys a new Ethereum contract, binding an instance of MockERC20 to it.

func NewMockERC20

func NewMockERC20(address common.Address, backend bind.ContractBackend) (*MockERC20, error)

NewMockERC20 creates a new instance of MockERC20, bound to a specific deployed contract.

type MockERC20Approval

type MockERC20Approval struct {
	Owner   common.Address
	Spender common.Address
	Value   *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

MockERC20Approval represents a Approval event raised by the MockERC20 contract.

type MockERC20ApprovalIterator

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

MockERC20ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the MockERC20 contract.

func (*MockERC20ApprovalIterator) Close

func (it *MockERC20ApprovalIterator) Close() error

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

func (*MockERC20ApprovalIterator) Error

func (it *MockERC20ApprovalIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC20ApprovalIterator) Next

func (it *MockERC20ApprovalIterator) 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 MockERC20Caller

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

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

func NewMockERC20Caller

func NewMockERC20Caller(address common.Address, caller bind.ContractCaller) (*MockERC20Caller, error)

NewMockERC20Caller creates a new read-only instance of MockERC20, bound to a specific deployed contract.

func (*MockERC20Caller) Allowance

func (_MockERC20 *MockERC20Caller) Allowance(opts *bind.CallOpts, owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockERC20Caller) BalanceOf

func (_MockERC20 *MockERC20Caller) BalanceOf(opts *bind.CallOpts, account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockERC20Caller) Decimals

func (_MockERC20 *MockERC20Caller) Decimals(opts *bind.CallOpts) (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockERC20Caller) Name

func (_MockERC20 *MockERC20Caller) Name(opts *bind.CallOpts) (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockERC20Caller) Symbol

func (_MockERC20 *MockERC20Caller) Symbol(opts *bind.CallOpts) (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockERC20Caller) TotalSupply

func (_MockERC20 *MockERC20Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type MockERC20CallerRaw

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

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

func (*MockERC20CallerRaw) Call

func (_MockERC20 *MockERC20CallerRaw) 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 MockERC20CallerSession

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

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

func (*MockERC20CallerSession) Allowance

func (_MockERC20 *MockERC20CallerSession) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockERC20CallerSession) BalanceOf

func (_MockERC20 *MockERC20CallerSession) BalanceOf(account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockERC20CallerSession) Decimals

func (_MockERC20 *MockERC20CallerSession) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockERC20CallerSession) Name

func (_MockERC20 *MockERC20CallerSession) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockERC20CallerSession) Symbol

func (_MockERC20 *MockERC20CallerSession) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockERC20CallerSession) TotalSupply

func (_MockERC20 *MockERC20CallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

type MockERC20Filterer

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

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

func NewMockERC20Filterer

func NewMockERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*MockERC20Filterer, error)

NewMockERC20Filterer creates a new log filterer instance of MockERC20, bound to a specific deployed contract.

func (*MockERC20Filterer) FilterApproval

func (_MockERC20 *MockERC20Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, spender []common.Address) (*MockERC20ApprovalIterator, error)

FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockERC20Filterer) FilterTransfer

func (_MockERC20 *MockERC20Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address) (*MockERC20TransferIterator, error)

FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*MockERC20Filterer) ParseApproval

func (_MockERC20 *MockERC20Filterer) ParseApproval(log types.Log) (*MockERC20Approval, error)

ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockERC20Filterer) ParseTransfer

func (_MockERC20 *MockERC20Filterer) ParseTransfer(log types.Log) (*MockERC20Transfer, error)

ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

func (*MockERC20Filterer) WatchApproval

func (_MockERC20 *MockERC20Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *MockERC20Approval, owner []common.Address, spender []common.Address) (event.Subscription, error)

WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.

Solidity: event Approval(address indexed owner, address indexed spender, uint256 value)

func (*MockERC20Filterer) WatchTransfer

func (_MockERC20 *MockERC20Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *MockERC20Transfer, from []common.Address, to []common.Address) (event.Subscription, error)

WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.

Solidity: event Transfer(address indexed from, address indexed to, uint256 value)

type MockERC20Raw

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

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

func (*MockERC20Raw) Call

func (_MockERC20 *MockERC20Raw) 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 (*MockERC20Raw) Transact

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

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

func (*MockERC20Raw) Transfer

func (_MockERC20 *MockERC20Raw) 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 MockERC20Session

type MockERC20Session struct {
	Contract     *MockERC20        // 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
}

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

func (*MockERC20Session) Allowance

func (_MockERC20 *MockERC20Session) Allowance(owner common.Address, spender common.Address) (*big.Int, error)

Allowance is a free data retrieval call binding the contract method 0xdd62ed3e.

Solidity: function allowance(address owner, address spender) view returns(uint256)

func (*MockERC20Session) Approve

func (_MockERC20 *MockERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockERC20Session) BalanceOf

func (_MockERC20 *MockERC20Session) BalanceOf(account common.Address) (*big.Int, error)

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

Solidity: function balanceOf(address account) view returns(uint256)

func (*MockERC20Session) Burn

func (_MockERC20 *MockERC20Session) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20Session) Decimals

func (_MockERC20 *MockERC20Session) Decimals() (uint8, error)

Decimals is a free data retrieval call binding the contract method 0x313ce567.

Solidity: function decimals() view returns(uint8)

func (*MockERC20Session) Mint

func (_MockERC20 *MockERC20Session) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20Session) Name

func (_MockERC20 *MockERC20Session) Name() (string, error)

Name is a free data retrieval call binding the contract method 0x06fdde03.

Solidity: function name() view returns(string)

func (*MockERC20Session) Symbol

func (_MockERC20 *MockERC20Session) Symbol() (string, error)

Symbol is a free data retrieval call binding the contract method 0x95d89b41.

Solidity: function symbol() view returns(string)

func (*MockERC20Session) TotalSupply

func (_MockERC20 *MockERC20Session) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() view returns(uint256)

func (*MockERC20Session) Transfer

func (_MockERC20 *MockERC20Session) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockERC20Session) TransferFrom

func (_MockERC20 *MockERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockERC20Transactor

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

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

func NewMockERC20Transactor

func NewMockERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*MockERC20Transactor, error)

NewMockERC20Transactor creates a new write-only instance of MockERC20, bound to a specific deployed contract.

func (*MockERC20Transactor) Approve

func (_MockERC20 *MockERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockERC20Transactor) Burn

func (_MockERC20 *MockERC20Transactor) Burn(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20Transactor) Mint

func (_MockERC20 *MockERC20Transactor) Mint(opts *bind.TransactOpts, account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20Transactor) Transfer

func (_MockERC20 *MockERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockERC20Transactor) TransferFrom

func (_MockERC20 *MockERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockERC20TransactorRaw

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

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

func (*MockERC20TransactorRaw) Transact

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

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

func (*MockERC20TransactorRaw) Transfer

func (_MockERC20 *MockERC20TransactorRaw) 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 MockERC20TransactorSession

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

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

func (*MockERC20TransactorSession) Approve

func (_MockERC20 *MockERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error)

Approve is a paid mutator transaction binding the contract method 0x095ea7b3.

Solidity: function approve(address spender, uint256 value) returns(bool)

func (*MockERC20TransactorSession) Burn

func (_MockERC20 *MockERC20TransactorSession) Burn(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20TransactorSession) Mint

func (_MockERC20 *MockERC20TransactorSession) Mint(account common.Address, amount *big.Int) (*types.Transaction, error)

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

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

func (*MockERC20TransactorSession) Transfer

func (_MockERC20 *MockERC20TransactorSession) Transfer(to common.Address, value *big.Int) (*types.Transaction, error)

Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.

Solidity: function transfer(address to, uint256 value) returns(bool)

func (*MockERC20TransactorSession) TransferFrom

func (_MockERC20 *MockERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error)

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

Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)

type MockERC20Transfer

type MockERC20Transfer struct {
	From  common.Address
	To    common.Address
	Value *big.Int
	Raw   types.Log // Blockchain specific contextual infos
}

MockERC20Transfer represents a Transfer event raised by the MockERC20 contract.

type MockERC20TransferIterator

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

MockERC20TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the MockERC20 contract.

func (*MockERC20TransferIterator) Close

func (it *MockERC20TransferIterator) Close() error

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

func (*MockERC20TransferIterator) Error

func (it *MockERC20TransferIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*MockERC20TransferIterator) Next

func (it *MockERC20TransferIterator) 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.

Jump to

Keyboard shortcuts

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