bridge

package
v0.0.1-RC8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BridgeABI = BridgeMetaData.ABI

BridgeABI is the input ABI used to generate the binding from. Deprecated: Use BridgeMetaData.ABI instead.

View Source
var BridgeBin = BridgeMetaData.Bin

BridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use BridgeMetaData.Bin instead.

View Source
var BridgeMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"leafType\",\"type\":\"uint8\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"depositCount\",\"type\":\"uint32\"}],\"name\":\"BridgeEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"ClaimEvent\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EmergencyStateActivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[],\"name\":\"EmergencyStateDeactivated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"wrappedTokenAddress\",\"type\":\"address\"}],\"name\":\"NewWrappedToken\",\"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\"},{\"inputs\":[],\"name\":\"LEAF_TYPE_ASSET\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"LEAF_TYPE_MESSAGE\",\"outputs\":[{\"internalType\":\"uint8\",\"name\":\"\",\"type\":\"uint8\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MAINNET_NETWORK_ID\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activateEmergencyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"permitData\",\"type\":\"bytes\"}],\"name\":\"bridgeAsset\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"bridgeMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"smtProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimAsset\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[]\",\"name\":\"smtProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"internalType\":\"bytes32\",\"name\":\"mainnetExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"rollupExitRoot\",\"type\":\"bytes32\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"claimMessage\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"claimedBitMap\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"deactivateEmergencyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDepositRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint8\",\"name\":\"leafType\",\"type\":\"uint8\"},{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"bytes32\",\"name\":\"metadataHash\",\"type\":\"bytes32\"}],\"name\":\"getLeafValue\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"}],\"name\":\"getTokenWrappedAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"globalExitRootManager\",\"outputs\":[{\"internalType\":\"contractIGlobalExitRootManager\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_networkID\",\"type\":\"uint32\"},{\"internalType\":\"contractIGlobalExitRootManager\",\"name\":\"_globalExitRootManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_poeAddress\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"isClaimed\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"isEmergencyState\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"networkID\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"poeAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"uint8\",\"name\":\"decimals\",\"type\":\"uint8\"}],\"name\":\"precalculatedWrapperAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"tokenInfoToWrappedToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"smtProof\",\"type\":\"bytes32[]\"},{\"internalType\":\"uint64\",\"name\":\"index\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"}],\"name\":\"verifyMerkleProof\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"wrappedTokenToTokenInfo\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
	Bin: "0x608060405234801561001057600080fd5b50615114806100206000396000f3fe608060405260043610620001cf5760003560e01c806381b1c17411620000ff578063d02103ca1162000095578063ed6be5c9116200006c578063ed6be5c91462000569578063ee25560b1462000580578063f2fde38b14620005b1578063ff634ed714620005d657600080fd5b8063d02103ca1462000518578063d96a15f7146200053a578063dbc16976146200055157600080fd5b80639e34070f11620000d65780639e34070f146200046f578063a08e8a081462000494578063aaa13cc214620004be578063bab161bf14620004e357600080fd5b806381b1c17414620003f35780638da5cb5b146200042d5780638f611519146200044d57600080fd5b80633ae05047116200017557806346385549116200014c57806346385549146200036c578063647c576c1462000391578063715018a614620003b65780637b6323c114620003ce57600080fd5b80633ae05047146200030a5780633da8168214620003225780633e197043146200034757600080fd5b806322e95f2c11620001aa57806322e95f2c14620002365780632dfdf0b51462000274578063318aee3d146200029b57600080fd5b80630871e97114620001d457806315064c9614620001ed5780632072f6c5146200021e575b600080fd5b620001eb620001e536600462002d0f565b620005ed565b005b348015620001fa57600080fd5b50602254620002099060ff1681565b60405190151581526020015b60405180910390f35b3480156200022b57600080fd5b50620001eb62000aec565b3480156200024357600080fd5b506200025b6200025536600462002d9c565b62000b8e565b6040516001600160a01b03909116815260200162000215565b3480156200028157600080fd5b506200028c60215481565b60405190815260200162000215565b348015620002a857600080fd5b50620002e5620002ba36600462002dd8565b608a6020526000908152604090205463ffffffff81169064010000000090046001600160a01b031682565b6040805163ffffffff90931683526001600160a01b0390911660208301520162000215565b3480156200031757600080fd5b506200028c62000bf9565b3480156200032f57600080fd5b50620002096200034136600462002ec0565b62000cec565b3480156200035457600080fd5b506200028c6200036636600462002f3e565b62000dec565b3480156200037957600080fd5b50620001eb6200038b3660046200304f565b62000e96565b3480156200039e57600080fd5b50620001eb620003b036600462003136565b620010de565b348015620003c357600080fd5b50620001eb6200125e565b348015620003db57600080fd5b50620001eb620003ed3660046200304f565b62001274565b3480156200040057600080fd5b506200025b6200041236600462003186565b6089602052600090815260409020546001600160a01b031681565b3480156200043a57600080fd5b506055546001600160a01b03166200025b565b3480156200045a57600080fd5b50608c546200025b906001600160a01b031681565b3480156200047c57600080fd5b50620002096200048e36600462003186565b620017c2565b348015620004a157600080fd5b50620004ab600081565b60405160ff909116815260200162000215565b348015620004cb57600080fd5b506200025b620004dd366004620031a0565b62001807565b348015620004f057600080fd5b50608754620005029063ffffffff1681565b60405163ffffffff909116815260200162000215565b3480156200052557600080fd5b50608b546200025b906001600160a01b031681565b620001eb6200054b36600462003254565b6200195b565b3480156200055e57600080fd5b50620001eb62001b48565b3480156200057657600080fd5b5062000502600081565b3480156200058d57600080fd5b506200028c6200059f36600462003186565b60886020526000908152604090205481565b348015620005be57600080fd5b50620001eb620005d036600462002dd8565b62001be8565b348015620005e357600080fd5b50620004ab600181565b60225460ff1615620006775760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4015b60405180910390fd5b60875463ffffffff90811690861603620006e75760405162461bcd60e51b815260206004820152602a60248201527f4272696467653a3a6272696467653a2044455354494e4154494f4e5f43414e546044820152692fa122afa4aa29a2a62360b11b60648201526084016200066e565b60008060606001600160a01b0389166200077c57853414620007725760405162461bcd60e51b815260206004820152602f60248201527f4272696467653a3a6272696467653a20414d4f554e545f444f45535f4e4f545f60448201527f4d415443485f4d53475f56414c5545000000000000000000000000000000000060648201526084016200066e565b6000915062000a06565b6001600160a01b03808a166000908152608a602090815260409182902082518084019093525463ffffffff811683526401000000009004909216918101829052901562000863576040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481018890526001600160a01b038b1690639dc29fac906044016020604051808303816000875af11580156200082a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620008509190620032cb565b5060208101518151909450925062000a04565b84156200087857620008788a88888862001c7e565b6200088f6001600160a01b038b1633308a620021e8565b899350608760009054906101000a900463ffffffff169250896001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa158015620008e6573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200091091908101906200336e565b8a6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa1580156200094f573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200097991908101906200336e565b8b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa158015620009b8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009de9190620033a7565b604051602001620009f293929190620033f5565b60405160208183030381529060405291505b505b7f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b600083858b8b8b8760215460405162000a4898979695949392919062003432565b60405180910390a162000a7362000a6d600084868c8c8c888051906020012062000dec565b6200226e565b608b546001600160a01b03166333d6247d62000a8e62000bf9565b6040518263ffffffff1660e01b815260040162000aad91815260200190565b600060405180830381600087803b15801562000ac857600080fd5b505af115801562000add573d6000803e3d6000fd5b50505050505050505050505050565b608c546001600160a01b0316331462000b825760405162461bcd60e51b815260206004820152604b60248201527f50726f6f664f66456666696369656e63793a3a6f6e6c7950726f6f664f66456660448201527f66696369656e63793a206f6e6c792050726f6f66206f6620456666696369656e60648201526a18de4818dbdb9d1c9858dd60aa1b608482015260a4016200066e565b62000b8c620023d2565b565b6040805160e084901b6001600160e01b031916602080830191909152606084901b6bffffffffffffffffffffffff1916602483015282516018818403018152603890920183528151918101919091206000908152608990915220546001600160a01b03165b92915050565b602154600090819081805b602081101562000ce3578260011660010362000c64576001816020811062000c305762000c306200349e565b0154604080516020810192909252810185905260600160405160208183030381529060405280519060200120935062000c91565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b62000c9e600284620034e0565b6040805160208101859052908101849052909350606001604051602081830303815290604052805190602001209150808062000cda90620034f7565b91505062000c04565b50919392505050565b60008467ffffffffffffffff8416825b602081101562000ddf578160011660010362000d695786818151811062000d275762000d276200349e565b60200260200101518360405160200162000d4b929190918252602082015260400190565b60405160208183030381529060405280519060200120925062000dbb565b8287828151811062000d7f5762000d7f6200349e565b602002602001015160405160200162000da2929190918252602082015260400190565b6040516020818303038152906040528051906020012092505b62000dc8600283620034e0565b91508062000dd681620034f7565b91505062000cfc565b5050909114949350505050565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201526001600160e01b031960e088811b821660218401526bffffffffffffffffffffffff19606089811b821660258601529188901b909216603984015285901b16603d8201526051810183905260718101829052600090609101604051602081830303815290604052805190602001209050979650505050505050565b60225460ff161562000f1c5760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4016200066e565b62000f328a8a8a8a8a8a8a8a8a8a600162002490565b62000f438963ffffffff1662002759565b6000836001600160a01b03168387898560405160240162000f679392919062003513565b60408051601f198184030181529181526020820180516001600160e01b03167f1806b5f2000000000000000000000000000000000000000000000000000000001790525162000fb791906200354c565b60006040518083038185875af1925050503d806000811462000ff6576040519150601f19603f3d011682016040523d82523d6000602084013e62000ffb565b606091505b5050905080620010735760405162461bcd60e51b8152602060048201526024808201527f4272696467653a3a636c61696d4d6573736167653a204d4553534147455f464160448201527f494c45440000000000000000000000000000000000000000000000000000000060648201526084016200066e565b6040805163ffffffff8c81168252891660208201526001600160a01b0388811682840152861660608201526080810185905290517f25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe275459839181900360a00190a15050505050505050505050565b600054610100900460ff1615808015620010ff5750600054600160ff909116105b806200111b5750303b1580156200111b575060005460ff166001145b6200118f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a656400000000000000000000000000000000000060648201526084016200066e565b6000805460ff191660011790558015620011b3576000805461ff0019166101001790555b6087805463ffffffff861663ffffffff19909116179055608b80546001600160a01b0380861673ffffffffffffffffffffffffffffffffffffffff1992831617909255608c805492851692909116919091179055620012116200279b565b801562001258576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b6200126862002825565b62000b8c600062002881565b60225460ff1615620012fa5760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4016200066e565b620013108a8a8a8a8a8a8a8a8a8a600062002490565b620013218963ffffffff1662002759565b6001600160a01b0385166200142057604080516000808252602082019092526001600160a01b0385169084906040516200135c91906200354c565b60006040518083038185875af1925050503d80600081146200139b576040519150601f19603f3d011682016040523d82523d6000602084013e620013a0565b606091505b5050905080620014195760405162461bcd60e51b815260206004820152602760248201527f4272696467653a3a636c61696d41737365743a204554485f5452414e5346455260448201527f5f4641494c45440000000000000000000000000000000000000000000000000060648201526084016200066e565b5062001758565b60875463ffffffff9081169087160362001450576200144a6001600160a01b0386168484620028e0565b62001758565b6040516001600160e01b031960e088901b1660208201526bffffffffffffffffffffffff19606087901b16602482015260009060380160408051601f198184030181529181528151602092830120600081815260899093529120549091506001600160a01b031680620016dd57600080600085806020019051810190620014d891906200356a565b925092509250600085848484604051620014f29062002c78565b6200150093929190620033f5565b8190604051809103906000f590508015801562001521573d6000803e3d6000fd5b506040516340c10f1960e01b81526001600160a01b038b81166004830152602482018b9052919250908216906340c10f19906044016020604051808303816000875af115801562001576573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200159c9190620032cb565b50806089600088815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060405180604001604052808d63ffffffff1681526020018c6001600160a01b0316815250608a6000836001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816001600160a01b0302191690836001600160a01b031602179055509050507fccd7715648d1f2bb13e158f96b5b6c3aeda555d4cb87112e274a6f28bc571d598c8c83604051620016cb9392919063ffffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a15050505062001755565b6040516340c10f1960e01b81526001600160a01b038681166004830152602482018690528216906340c10f19906044016020604051808303816000875af11580156200172d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620017539190620032cb565b505b50505b6040805163ffffffff8b81168252881660208201526001600160a01b0387811682840152851660608201526080810184905290517f25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe275459839181900360a00190a150505050505050505050565b600080620017d361010084620034e0565b90506000620017e561010085620035e0565b60009283526088602052604090922054600190921b9182169091149392505050565b6040516001600160e01b031960e089901b1660208201526bffffffffffffffffffffffff19606088901b1660248201526000908190603801604051602081830303815290604052805190602001209050600060ff60f81b308360405180602001620018729062002c78565b601f1982820381018352601f9091011660408190526200189f908d908d908d908d908d9060200162003620565b60408051601f1981840301815290829052620018bf929160200162003661565b604051602081830303815290604052805190602001206040516020016200193594939291907fff0000000000000000000000000000000000000000000000000000000000000094909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60408051808303601f1901815291905280516020909101209a9950505050505050505050565b60225460ff1615620019e15760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4016200066e565b60875463ffffffff9081169084160362001a515760405162461bcd60e51b815260206004820152602a60248201527f4272696467653a3a6272696467653a2044455354494e4154494f4e5f43414e546044820152692fa122afa4aa29a2a62360b11b60648201526084016200066e565b6087546021546040517f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b9262001a9e9260019263ffffffff9092169133918991899134918a919062003432565b60405180910390a162001ad562000a6d6001608760009054906101000a900463ffffffff1633878734888051906020012062000dec565b608b546001600160a01b03166333d6247d62001af062000bf9565b6040518263ffffffff1660e01b815260040162001b0f91815260200190565b600060405180830381600087803b15801562001b2a57600080fd5b505af115801562001b3f573d6000803e3d6000fd5b50505050505050565b608c546001600160a01b0316331462001bde5760405162461bcd60e51b815260206004820152604b60248201527f50726f6f664f66456666696369656e63793a3a6f6e6c7950726f6f664f66456660448201527f66696369656e63793a206f6e6c792050726f6f66206f6620456666696369656e60648201526a18de4818dbdb9d1c9858dd60aa1b608482015260a4016200066e565b62000b8c6200292b565b62001bf262002825565b6001600160a01b03811662001c705760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f646472657373000000000000000000000000000000000000000000000000000060648201526084016200066e565b62001c7b8162002881565b50565b600062001cc183838080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250620029da92505050565b90507f2afa5331000000000000000000000000000000000000000000000000000000006001600160e01b031982160162001f7e57600080808080808062001d0c896004818d62003694565b81019062001d1b9190620036c0565b9650965096509650965096509650336001600160a01b0316876001600160a01b03161462001db25760405162461bcd60e51b815260206004820152603060248201527f4272696467653a3a5f7065726d69743a205045524d49545f4f574e45525f4d5560448201527f53545f42455f5448455f53454e4445520000000000000000000000000000000060648201526084016200066e565b6001600160a01b038616301462001e1a5760405162461bcd60e51b815260206004820152602560248201527f4272696467653a3a5f7065726d69743a205350454e4445525f4d5553545f42456044820152645f5448495360d81b60648201526084016200066e565b8a851462001e915760405162461bcd60e51b815260206004820152602d60248201527f4272696467653a3a5f7065726d69743a205045524d49545f414d4f554e545f4460448201527f4f45535f4e4f545f4d415443480000000000000000000000000000000000000060648201526084016200066e565b604080516001600160a01b0389811660248301528881166044830152606482018890526084820187905260ff861660a483015260c4820185905260e48083018590528351808403909101815261010490920183526020820180516001600160e01b03167fd505accf000000000000000000000000000000000000000000000000000000001790529151918e169162001f2a91906200354c565b6000604051808303816000865af19150503d806000811462001f69576040519150601f19603f3d011682016040523d82523d6000602084013e62001f6e565b606091505b50505050505050505050620021e1565b6001600160e01b031981166323f2ebc360e21b1462001fe05760405162461bcd60e51b815260206004820152601f60248201527f4272696467653a3a5f7065726d69743a204e4f545f56414c49445f43414c4c0060448201526064016200066e565b60008080808080808062001ff88a6004818e62003694565b8101906200200791906200371b565b97509750975097509750975097509750336001600160a01b0316886001600160a01b031614620020a05760405162461bcd60e51b815260206004820152603060248201527f4272696467653a3a5f7065726d69743a205045524d49545f4f574e45525f4d5560448201527f53545f42455f5448455f53454e4445520000000000000000000000000000000060648201526084016200066e565b6001600160a01b0387163014620021085760405162461bcd60e51b815260206004820152602560248201527f4272696467653a3a5f7065726d69743a205350454e4445525f4d5553545f42456044820152645f5448495360d81b60648201526084016200066e565b604080516001600160a01b038a811660248301528981166044830152606482018990526084820188905286151560a483015260ff861660c483015260e482018590526101048083018590528351808403909101815261012490920183526020820180516001600160e01b03166323f2ebc360e21b1790529151918f16916200219191906200354c565b6000604051808303816000865af19150503d8060008114620021d0576040519150601f19603f3d011682016040523d82523d6000602084013e620021d5565b606091505b50505050505050505050505b5050505050565b6040516001600160a01b0380851660248301528316604482015260648101829052620012589085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b031990931692909217909152620029e1565b8060016200227f60206002620038a4565b6200228b9190620038b2565b60215410620023035760405162461bcd60e51b815260206004820152602a60248201527f4465706f736974436f6e74726163743a5f6465706f7369743a204d45524b4c4560448201527f5f545245455f46554c4c0000000000000000000000000000000000000000000060648201526084016200066e565b600160216000828254620023189190620038cc565b909155505060215460005b6020811015620023c25781600116600103620023585782600182602081106200235057620023506200349e565b015550505050565b600181602081106200236e576200236e6200349e565b01546040805160208101929092528101849052606001604051602081830303815290604052805190602001209250600282620023ab9190620034e0565b915080620023b981620034f7565b91505062002323565b50620023cd620038e7565b505050565b60225460ff1615620024585760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4016200066e565b6022805460ff191660011790556040517f2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a549790600090a1565b620024a18a63ffffffff16620017c2565b15620025155760405162461bcd60e51b8152602060048201526024808201527f4272696467653a3a5f7665726966794c6561663a20414c52454144595f434c4160448201527f494d45440000000000000000000000000000000000000000000000000000000060648201526084016200066e565b608b546040805160208082018d90528183018c9052825180830384018152606083019384905280519101207f257b36320000000000000000000000000000000000000000000000000000000090925260648101919091526000916001600160a01b03169063257b3632906084016020604051808303816000875af1158015620025a2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620025c89190620038fd565b905080600003620026425760405162461bcd60e51b815260206004820152602d60248201527f4272696467653a3a5f7665726966794c6561663a20474c4f42414c5f4558495460448201527f5f524f4f545f494e56414c49440000000000000000000000000000000000000060648201526084016200066e565b60875463ffffffff878116911614620026c45760405162461bcd60e51b815260206004820152603760248201527f4272696467653a3a5f7665726966794c6561663a2044455354494e4154494f4e60448201527f5f4e4554574f524b5f444f45535f4e4f545f4d4154434800000000000000000060648201526084016200066e565b60875460009063ffffffff16620026dd575088620026e0565b50895b6200270b620026fc848b8b8b8b8b8b8051906020012062000dec565b8e8e63ffffffff168462000cec565b62000add5760405162461bcd60e51b815260206004820181905260248201527f4272696467653a3a5f7665726966794c6561663a20534d545f494e56414c494460448201526064016200066e565b60006200276961010083620034e0565b905060006200277b61010084620035e0565b6000928352608860205260409092208054600190931b9092179091555050565b600054610100900460ff166200281a5760405162461bcd60e51b815260206004820152602b60248201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960448201527f6e697469616c697a696e6700000000000000000000000000000000000000000060648201526084016200066e565b62000b8c3362002881565b6055546001600160a01b0316331462000b8c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016200066e565b605580546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b6040516001600160a01b038316602482015260448101829052620023cd9084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640162002236565b60225460ff16620029a55760405162461bcd60e51b815260206004820152603b60248201527f456d657267656e63794d616e616765723a3a6966456d657267656e637953746160448201527f74653a206f6e6c7920696620656d657267656e6379207374617465000000000060648201526084016200066e565b6022805460ff191690556040517f1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b390600090a1565b6020015190565b600062002a38826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b031662002acd9092919063ffffffff16565b805190915015620023cd578080602001905181019062002a599190620032cb565b620023cd5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f7420737563636565640000000000000000000000000000000000000000000060648201526084016200066e565b606062002ade848460008562002ae8565b90505b9392505050565b60608247101562002b625760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c000000000000000000000000000000000000000000000000000060648201526084016200066e565b6001600160a01b0385163b62002bbb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016200066e565b600080866001600160a01b0316858760405162002bd991906200354c565b60006040518083038185875af1925050503d806000811462002c18576040519150601f19603f3d011682016040523d82523d6000602084013e62002c1d565b606091505b509150915062002c2f82828662002c3a565b979650505050505050565b6060831562002c4b57508162002ae1565b82511562002c5c5782518084602001fd5b8160405162461bcd60e51b81526004016200066e919062003917565b6117b2806200392d83390190565b6001600160a01b038116811462001c7b57600080fd5b803562002ca98162002c86565b919050565b803563ffffffff8116811462002ca957600080fd5b60008083601f84011262002cd657600080fd5b50813567ffffffffffffffff81111562002cef57600080fd5b60208301915083602082850101111562002d0857600080fd5b9250929050565b60008060008060008060a0878903121562002d2957600080fd5b863562002d368162002c86565b955062002d466020880162002cae565b9450604087013562002d588162002c86565b935060608701359250608087013567ffffffffffffffff81111562002d7c57600080fd5b62002d8a89828a0162002cc3565b979a9699509497509295939492505050565b6000806040838503121562002db057600080fd5b62002dbb8362002cae565b9150602083013562002dcd8162002c86565b809150509250929050565b60006020828403121562002deb57600080fd5b813562002ae18162002c86565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171562002e3a5762002e3a62002df8565b604052919050565b600082601f83011262002e5457600080fd5b8135602067ffffffffffffffff82111562002e735762002e7362002df8565b8160051b62002e8482820162002e0e565b928352848101820192828101908785111562002e9f57600080fd5b83870192505b8483101562002c2f5782358252918301919083019062002ea5565b6000806000806080858703121562002ed757600080fd5b84359350602085013567ffffffffffffffff8082111562002ef757600080fd5b62002f058883890162002e42565b945060408701359150808216821462002f1d57600080fd5b509396929550929360600135925050565b60ff8116811462001c7b57600080fd5b600080600080600080600060e0888a03121562002f5a57600080fd5b873562002f678162002f2e565b965062002f776020890162002cae565b9550604088013562002f898162002c86565b945062002f996060890162002cae565b9350608088013562002fab8162002c86565b9699959850939692959460a0840135945060c09093013592915050565b600067ffffffffffffffff82111562002fe55762002fe562002df8565b50601f01601f191660200190565b600082601f8301126200300557600080fd5b81356200301c620030168262002fc8565b62002e0e565b8181528460208386010111156200303257600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806000806000806000806101408b8d0312156200307057600080fd5b8a3567ffffffffffffffff808211156200308957600080fd5b620030978e838f0162002e42565b9b50620030a760208e0162002cae565b9a5060408d0135995060608d01359850620030c560808e0162002cae565b9750620030d560a08e0162002c9c565b9650620030e560c08e0162002cae565b9550620030f560e08e0162002c9c565b94506101008d013593506101208d01359150808211156200311557600080fd5b50620031248d828e0162002ff3565b9150509295989b9194979a5092959850565b6000806000606084860312156200314c57600080fd5b620031578462002cae565b92506020840135620031698162002c86565b915060408401356200317b8162002c86565b809150509250925092565b6000602082840312156200319957600080fd5b5035919050565b600080600080600080600060a0888a031215620031bc57600080fd5b620031c78862002cae565b96506020880135620031d98162002c86565b9550604088013567ffffffffffffffff80821115620031f757600080fd5b620032058b838c0162002cc3565b909750955060608a01359150808211156200321f57600080fd5b506200322e8a828b0162002cc3565b9094509250506080880135620032448162002f2e565b8091505092959891949750929550565b6000806000606084860312156200326a57600080fd5b620032758462002cae565b92506020840135620032878162002c86565b9150604084013567ffffffffffffffff811115620032a457600080fd5b620032b28682870162002ff3565b9150509250925092565b801515811462001c7b57600080fd5b600060208284031215620032de57600080fd5b815162002ae181620032bc565b60005b8381101562003308578181015183820152602001620032ee565b83811115620012585750506000910152565b600082601f8301126200332c57600080fd5b81516200333d620030168262002fc8565b8181528460208386010111156200335357600080fd5b62003366826020830160208701620032eb565b949350505050565b6000602082840312156200338157600080fd5b815167ffffffffffffffff8111156200339957600080fd5b62003366848285016200331a565b600060208284031215620033ba57600080fd5b815162002ae18162002f2e565b60008151808452620033e1816020860160208601620032eb565b601f01601f19169290920160200192915050565b6060815260006200340a6060830186620033c7565b82810360208401526200341e8186620033c7565b91505060ff83166040830152949350505050565b600061010060ff8b16835263ffffffff808b1660208501526001600160a01b03808b166040860152818a1660608601528089166080860152508660a08501528160c08501526200348582850187620033c7565b925080851660e085015250509998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082620034f257620034f2620034b4565b500490565b6000600182016200350c576200350c620034ca565b5060010190565b6001600160a01b038416815263ffffffff83166020820152606060408201526000620035436060830184620033c7565b95945050505050565b6000825162003560818460208701620032eb565b9190910192915050565b6000806000606084860312156200358057600080fd5b835167ffffffffffffffff808211156200359957600080fd5b620035a7878388016200331a565b94506020860151915080821115620035be57600080fd5b50620035cd868287016200331a565b92505060408401516200317b8162002f2e565b600082620035f257620035f2620034b4565b500690565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b60608152600062003636606083018789620035f7565b82810360208401526200364b818688620035f7565b91505060ff831660408301529695505050505050565b6000835162003675818460208801620032eb565b8351908301906200368b818360208801620032eb565b01949350505050565b60008085851115620036a557600080fd5b83861115620036b357600080fd5b5050820193919092039150565b600080600080600080600060e0888a031215620036dc57600080fd5b8735620036e98162002c86565b96506020880135620036fb8162002c86565b95506040880135945060608801359350608088013562002fab8162002f2e565b600080600080600080600080610100898b0312156200373957600080fd5b8835620037468162002c86565b97506020890135620037588162002c86565b9650604089013595506060890135945060808901356200377881620032bc565b935060a08901356200378a8162002f2e565b979a969950949793969295929450505060c08201359160e0013590565b600181815b80851115620037e8578160001904821115620037cc57620037cc620034ca565b80851615620037da57918102915b93841c9390800290620037ac565b509250929050565b600082620038015750600162000bf3565b81620038105750600062000bf3565b8160018114620038295760028114620038345762003854565b600191505062000bf3565b60ff841115620038485762003848620034ca565b50506001821b62000bf3565b5060208310610133831016604e8410600b841016171562003879575081810a62000bf3565b620038858383620037a7565b80600019048211156200389c576200389c620034ca565b029392505050565b600062002ae18383620037f0565b600082821015620038c757620038c7620034ca565b500390565b60008219821115620038e257620038e2620034ca565b500190565b634e487b7160e01b600052600160045260246000fd5b6000602082840312156200391057600080fd5b5051919050565b60208152600062002ae16020830184620033c756fe60c06040523480156200001157600080fd5b50604051620017b2380380620017b28339810160408190526200003491620002ad565b82826003620000448382620003c1565b506004620000538282620003c1565b5050600580546001600160a81b0319163360ff60a01b191617600160a01b60ff851602179055504660808190526200008b9062000098565b60a052506200048d915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000c562000146565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b606060038054620001579062000332565b80601f0160208091040260200160405190810160405280929190818152602001828054620001859062000332565b8015620001d65780601f10620001aa57610100808354040283529160200191620001d6565b820191906000526020600020905b815481529060010190602001808311620001b857829003601f168201915b5050505050905090565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020857600080fd5b81516001600160401b0380821115620002255762000225620001e0565b604051601f8301601f19908116603f01168101908282118183101715620002505762000250620001e0565b816040528381526020925086838588010111156200026d57600080fd5b600091505b8382101562000291578582018301518183018401529082019062000272565b83821115620002a35760008385830101525b9695505050505050565b600080600060608486031215620002c357600080fd5b83516001600160401b0380821115620002db57600080fd5b620002e987838801620001f6565b945060208601519150808211156200030057600080fd5b506200030f86828701620001f6565b925050604084015160ff811681146200032757600080fd5b809150509250925092565b600181811c908216806200034757607f821691505b6020821081036200036857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003bc57600081815260208120601f850160051c81016020861015620003975750805b601f850160051c820191505b81811015620003b857828155600101620003a3565b5050505b505050565b81516001600160401b03811115620003dd57620003dd620001e0565b620003f581620003ee845462000332565b846200036e565b602080601f8311600181146200042d5760008415620004145750858301515b600019600386901b1c1916600185901b178555620003b8565b600085815260208120601f198616915b828110156200045e578886015182559484019460019091019084016200043d565b50858210156200047d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a0516112f8620004ba60003960006104e001526000818161034801526104aa01526112f86000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c806370a08231116100d8578063a457c2d71161008c578063d505accf11610066578063d505accf1461036a578063dd62ed3e1461037f578063ffa1ad74146103b857600080fd5b8063a457c2d71461031d578063a9059cbb14610330578063cd0d00961461034357600080fd5b806395d89b41116100bd57806395d89b41146102d75780639dc29fac146102df578063a3c573eb146102f257600080fd5b806370a082311461028e5780637ecebe00146102b757600080fd5b806330adf81f1161012f5780633644e515116101145780633644e51514610260578063395093511461026857806340c10f191461027b57600080fd5b806330adf81f14610209578063313ce5671461023057600080fd5b806318160ddd1161016057806318160ddd146101bd57806320606b70146101cf57806323b872dd146101f657600080fd5b806306fdde031461017c578063095ea7b31461019a575b600080fd5b6101846103d8565b604051610191919061108b565b60405180910390f35b6101ad6101a83660046110fc565b61046a565b6040519015158152602001610191565b6002545b604051908152602001610191565b6101c17f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6101ad610204366004611126565b610482565b6101c17f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055474010000000000000000000000000000000000000000900460ff1660405160ff9091168152602001610191565b6101c16104a6565b6101ad6102763660046110fc565b610502565b6101ad6102893660046110fc565b610541565b6101c161029c366004611162565b6001600160a01b031660009081526020819052604090205490565b6101c16102c5366004611162565b60066020526000908152604090205481565b6101846105c2565b6101ad6102ed3660046110fc565b6105d1565b600554610305906001600160a01b031681565b6040516001600160a01b039091168152602001610191565b6101ad61032b3660046110fc565b610644565b6101ad61033e3660046110fc565b6106ee565b6101c17f000000000000000000000000000000000000000000000000000000000000000081565b61037d610378366004611184565b6106fc565b005b6101c161038d3660046111f7565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610184604051806040016040528060018152602001603160f81b81525081565b6060600380546103e79061122a565b80601f01602080910402602001604051908101604052809291908181526020018280546104139061122a565b80156104605780601f1061043557610100808354040283529160200191610460565b820191906000526020600020905b81548152906001019060200180831161044357829003601f168201915b5050505050905090565b600033610478818585610981565b5060019392505050565b600033610490858285610ada565b61049b858585610b6c565b506001949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146104dd576104d846610d83565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610478908290869061053c90879061127a565b610981565b6005546000906001600160a01b031633146105af5760405162461bcd60e51b8152602060048201526024808201527f546f6b656e577261707065643a3a6f6e6c794272696467653a204e4f545f42526044820152634944474560e01b60648201526084015b60405180910390fd5b6105b98383610e2f565b50600192915050565b6060600480546103e79061122a565b6005546000906001600160a01b0316331461063a5760405162461bcd60e51b8152602060048201526024808201527f546f6b656e577261707065643a3a6f6e6c794272696467653a204e4f545f42526044820152634944474560e01b60648201526084016105a6565b6105b98383610f0e565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190838110156106e15760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105a6565b61049b8286868403610981565b600033610478818585610b6c565b834211156107715760405162461bcd60e51b8152602060048201526024808201527f546f6b656e577261707065643a3a7065726d69743a204578706972656420706560448201527f726d69740000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b038716600090815260066020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918a918a918a9190866107be83611292565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e001604051602081830303815290604052805190602001209050600061081c6104a6565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa1580156108c2573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906108f85750896001600160a01b0316816001600160a01b0316145b61096a5760405162461bcd60e51b815260206004820152602760248201527f546f6b656e577261707065643a3a7065726d69743a20496e76616c696420736960448201527f676e61747572650000000000000000000000000000000000000000000000000060648201526084016105a6565b6109758a8a8a610981565b50505050505050505050565b6001600160a01b0383166109fc5760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b038216610a785760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b665781811015610b595760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105a6565b610b668484848403610981565b50505050565b6001600160a01b038316610be85760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b038216610c645760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b03831660009081526020819052604090205481811015610cf35760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610d2a90849061127a565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d7691815260200190565b60405180910390a3610b66565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f610dae6103d8565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b6001600160a01b038216610e855760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105a6565b8060026000828254610e97919061127a565b90915550506001600160a01b03821660009081526020819052604081208054839290610ec490849061127a565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610f8a5760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b038216600090815260208190526040902054818110156110195760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105a6565b6001600160a01b03831660009081526020819052604081208383039055600280548492906110489084906112ab565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610acd565b600060208083528351808285015260005b818110156110b85785810183015185820160400152820161109c565b818111156110ca576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b03811681146110f757600080fd5b919050565b6000806040838503121561110f57600080fd5b611118836110e0565b946020939093013593505050565b60008060006060848603121561113b57600080fd5b611144846110e0565b9250611152602085016110e0565b9150604084013590509250925092565b60006020828403121561117457600080fd5b61117d826110e0565b9392505050565b600080600080600080600060e0888a03121561119f57600080fd5b6111a8886110e0565b96506111b6602089016110e0565b95506040880135945060608801359350608088013560ff811681146111da57600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561120a57600080fd5b611213836110e0565b9150611221602084016110e0565b90509250929050565b600181811c9082168061123e57607f821691505b60208210810361125e57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b6000821982111561128d5761128d611264565b500190565b6000600182016112a4576112a4611264565b5060010190565b6000828210156112bd576112bd611264565b50039056fea2646970667358221220e92796a67a51f68b4e38bef4ca270c512835dbbbc94c239fbee097e6ae35764364736f6c634300080f0033a26469706673582212203f16f0e9de29ee165e359296bc9d758bfeae7c0bda29ccb9d1feb0c48db2d21464736f6c634300080f0033",
}

BridgeMetaData contains all meta data concerning the Bridge contract.

Functions

This section is empty.

Types

type Bridge

type Bridge struct {
	BridgeCaller     // Read-only binding to the contract
	BridgeTransactor // Write-only binding to the contract
	BridgeFilterer   // Log filterer for contract events
}

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

func DeployBridge

func DeployBridge(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Bridge, error)

DeployBridge deploys a new Ethereum contract, binding an instance of Bridge to it.

func NewBridge

func NewBridge(address common.Address, backend bind.ContractBackend) (*Bridge, error)

NewBridge creates a new instance of Bridge, bound to a specific deployed contract.

type BridgeBridgeEvent

type BridgeBridgeEvent struct {
	LeafType           uint8
	OriginNetwork      uint32
	OriginAddress      common.Address
	DestinationNetwork uint32
	DestinationAddress common.Address
	Amount             *big.Int
	Metadata           []byte
	DepositCount       uint32
	Raw                types.Log // Blockchain specific contextual infos
}

BridgeBridgeEvent represents a BridgeEvent event raised by the Bridge contract.

type BridgeBridgeEventIterator

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

BridgeBridgeEventIterator is returned from FilterBridgeEvent and is used to iterate over the raw logs and unpacked data for BridgeEvent events raised by the Bridge contract.

func (*BridgeBridgeEventIterator) Close

func (it *BridgeBridgeEventIterator) Close() error

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

func (*BridgeBridgeEventIterator) Error

func (it *BridgeBridgeEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeBridgeEventIterator) Next

func (it *BridgeBridgeEventIterator) 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 BridgeCaller

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

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

func NewBridgeCaller

func NewBridgeCaller(address common.Address, caller bind.ContractCaller) (*BridgeCaller, error)

NewBridgeCaller creates a new read-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeCaller) ClaimedBitMap

func (_Bridge *BridgeCaller) ClaimedBitMap(opts *bind.CallOpts, arg0 *big.Int) (*big.Int, error)

ClaimedBitMap is a free data retrieval call binding the contract method 0xee25560b.

Solidity: function claimedBitMap(uint256 ) view returns(uint256)

func (*BridgeCaller) DepositCount

func (_Bridge *BridgeCaller) DepositCount(opts *bind.CallOpts) (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*BridgeCaller) GetDepositRoot

func (_Bridge *BridgeCaller) GetDepositRoot(opts *bind.CallOpts) ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.

Solidity: function getDepositRoot() view returns(bytes32)

func (*BridgeCaller) GetLeafValue

func (_Bridge *BridgeCaller) GetLeafValue(opts *bind.CallOpts, leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.

Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)

func (*BridgeCaller) GetTokenWrappedAddress

func (_Bridge *BridgeCaller) GetTokenWrappedAddress(opts *bind.CallOpts, originNetwork uint32, originTokenAddress common.Address) (common.Address, error)

GetTokenWrappedAddress is a free data retrieval call binding the contract method 0x22e95f2c.

Solidity: function getTokenWrappedAddress(uint32 originNetwork, address originTokenAddress) view returns(address)

func (*BridgeCaller) GlobalExitRootManager

func (_Bridge *BridgeCaller) GlobalExitRootManager(opts *bind.CallOpts) (common.Address, error)

GlobalExitRootManager is a free data retrieval call binding the contract method 0xd02103ca.

Solidity: function globalExitRootManager() view returns(address)

func (*BridgeCaller) IsClaimed

func (_Bridge *BridgeCaller) IsClaimed(opts *bind.CallOpts, index *big.Int) (bool, error)

IsClaimed is a free data retrieval call binding the contract method 0x9e34070f.

Solidity: function isClaimed(uint256 index) view returns(bool)

func (*BridgeCaller) IsEmergencyState

func (_Bridge *BridgeCaller) IsEmergencyState(opts *bind.CallOpts) (bool, error)

IsEmergencyState is a free data retrieval call binding the contract method 0x15064c96.

Solidity: function isEmergencyState() view returns(bool)

func (*BridgeCaller) LEAFTYPEASSET

func (_Bridge *BridgeCaller) LEAFTYPEASSET(opts *bind.CallOpts) (uint8, error)

LEAFTYPEASSET is a free data retrieval call binding the contract method 0xa08e8a08.

Solidity: function LEAF_TYPE_ASSET() view returns(uint8)

func (*BridgeCaller) LEAFTYPEMESSAGE

func (_Bridge *BridgeCaller) LEAFTYPEMESSAGE(opts *bind.CallOpts) (uint8, error)

LEAFTYPEMESSAGE is a free data retrieval call binding the contract method 0xff634ed7.

Solidity: function LEAF_TYPE_MESSAGE() view returns(uint8)

func (*BridgeCaller) MAINNETNETWORKID

func (_Bridge *BridgeCaller) MAINNETNETWORKID(opts *bind.CallOpts) (uint32, error)

MAINNETNETWORKID is a free data retrieval call binding the contract method 0xed6be5c9.

Solidity: function MAINNET_NETWORK_ID() view returns(uint32)

func (*BridgeCaller) NetworkID

func (_Bridge *BridgeCaller) NetworkID(opts *bind.CallOpts) (uint32, error)

NetworkID is a free data retrieval call binding the contract method 0xbab161bf.

Solidity: function networkID() view returns(uint32)

func (*BridgeCaller) Owner

func (_Bridge *BridgeCaller) 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 (*BridgeCaller) PoeAddress

func (_Bridge *BridgeCaller) PoeAddress(opts *bind.CallOpts) (common.Address, error)

PoeAddress is a free data retrieval call binding the contract method 0x8f611519.

Solidity: function poeAddress() view returns(address)

func (*BridgeCaller) PrecalculatedWrapperAddress

func (_Bridge *BridgeCaller) PrecalculatedWrapperAddress(opts *bind.CallOpts, originNetwork uint32, originTokenAddress common.Address, name string, symbol string, decimals uint8) (common.Address, error)

PrecalculatedWrapperAddress is a free data retrieval call binding the contract method 0xaaa13cc2.

Solidity: function precalculatedWrapperAddress(uint32 originNetwork, address originTokenAddress, string name, string symbol, uint8 decimals) view returns(address)

func (*BridgeCaller) TokenInfoToWrappedToken

func (_Bridge *BridgeCaller) TokenInfoToWrappedToken(opts *bind.CallOpts, arg0 [32]byte) (common.Address, error)

TokenInfoToWrappedToken is a free data retrieval call binding the contract method 0x81b1c174.

Solidity: function tokenInfoToWrappedToken(bytes32 ) view returns(address)

func (*BridgeCaller) VerifyMerkleProof

func (_Bridge *BridgeCaller) VerifyMerkleProof(opts *bind.CallOpts, leafHash [32]byte, smtProof [][32]byte, index uint64, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0x3da81682.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[] smtProof, uint64 index, bytes32 root) pure returns(bool)

func (*BridgeCaller) WrappedTokenToTokenInfo

func (_Bridge *BridgeCaller) WrappedTokenToTokenInfo(opts *bind.CallOpts, arg0 common.Address) (struct {
	OriginNetwork      uint32
	OriginTokenAddress common.Address
}, error)

WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.

Solidity: function wrappedTokenToTokenInfo(address ) view returns(uint32 originNetwork, address originTokenAddress)

type BridgeCallerRaw

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

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

func (*BridgeCallerRaw) Call

func (_Bridge *BridgeCallerRaw) 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 BridgeCallerSession

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

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

func (*BridgeCallerSession) ClaimedBitMap

func (_Bridge *BridgeCallerSession) ClaimedBitMap(arg0 *big.Int) (*big.Int, error)

ClaimedBitMap is a free data retrieval call binding the contract method 0xee25560b.

Solidity: function claimedBitMap(uint256 ) view returns(uint256)

func (*BridgeCallerSession) DepositCount

func (_Bridge *BridgeCallerSession) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*BridgeCallerSession) GetDepositRoot

func (_Bridge *BridgeCallerSession) GetDepositRoot() ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.

Solidity: function getDepositRoot() view returns(bytes32)

func (*BridgeCallerSession) GetLeafValue

func (_Bridge *BridgeCallerSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.

Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)

func (*BridgeCallerSession) GetTokenWrappedAddress

func (_Bridge *BridgeCallerSession) GetTokenWrappedAddress(originNetwork uint32, originTokenAddress common.Address) (common.Address, error)

GetTokenWrappedAddress is a free data retrieval call binding the contract method 0x22e95f2c.

Solidity: function getTokenWrappedAddress(uint32 originNetwork, address originTokenAddress) view returns(address)

func (*BridgeCallerSession) GlobalExitRootManager

func (_Bridge *BridgeCallerSession) GlobalExitRootManager() (common.Address, error)

GlobalExitRootManager is a free data retrieval call binding the contract method 0xd02103ca.

Solidity: function globalExitRootManager() view returns(address)

func (*BridgeCallerSession) IsClaimed

func (_Bridge *BridgeCallerSession) IsClaimed(index *big.Int) (bool, error)

IsClaimed is a free data retrieval call binding the contract method 0x9e34070f.

Solidity: function isClaimed(uint256 index) view returns(bool)

func (*BridgeCallerSession) IsEmergencyState

func (_Bridge *BridgeCallerSession) IsEmergencyState() (bool, error)

IsEmergencyState is a free data retrieval call binding the contract method 0x15064c96.

Solidity: function isEmergencyState() view returns(bool)

func (*BridgeCallerSession) LEAFTYPEASSET

func (_Bridge *BridgeCallerSession) LEAFTYPEASSET() (uint8, error)

LEAFTYPEASSET is a free data retrieval call binding the contract method 0xa08e8a08.

Solidity: function LEAF_TYPE_ASSET() view returns(uint8)

func (*BridgeCallerSession) LEAFTYPEMESSAGE

func (_Bridge *BridgeCallerSession) LEAFTYPEMESSAGE() (uint8, error)

LEAFTYPEMESSAGE is a free data retrieval call binding the contract method 0xff634ed7.

Solidity: function LEAF_TYPE_MESSAGE() view returns(uint8)

func (*BridgeCallerSession) MAINNETNETWORKID

func (_Bridge *BridgeCallerSession) MAINNETNETWORKID() (uint32, error)

MAINNETNETWORKID is a free data retrieval call binding the contract method 0xed6be5c9.

Solidity: function MAINNET_NETWORK_ID() view returns(uint32)

func (*BridgeCallerSession) NetworkID

func (_Bridge *BridgeCallerSession) NetworkID() (uint32, error)

NetworkID is a free data retrieval call binding the contract method 0xbab161bf.

Solidity: function networkID() view returns(uint32)

func (*BridgeCallerSession) Owner

func (_Bridge *BridgeCallerSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BridgeCallerSession) PoeAddress

func (_Bridge *BridgeCallerSession) PoeAddress() (common.Address, error)

PoeAddress is a free data retrieval call binding the contract method 0x8f611519.

Solidity: function poeAddress() view returns(address)

func (*BridgeCallerSession) PrecalculatedWrapperAddress

func (_Bridge *BridgeCallerSession) PrecalculatedWrapperAddress(originNetwork uint32, originTokenAddress common.Address, name string, symbol string, decimals uint8) (common.Address, error)

PrecalculatedWrapperAddress is a free data retrieval call binding the contract method 0xaaa13cc2.

Solidity: function precalculatedWrapperAddress(uint32 originNetwork, address originTokenAddress, string name, string symbol, uint8 decimals) view returns(address)

func (*BridgeCallerSession) TokenInfoToWrappedToken

func (_Bridge *BridgeCallerSession) TokenInfoToWrappedToken(arg0 [32]byte) (common.Address, error)

TokenInfoToWrappedToken is a free data retrieval call binding the contract method 0x81b1c174.

Solidity: function tokenInfoToWrappedToken(bytes32 ) view returns(address)

func (*BridgeCallerSession) VerifyMerkleProof

func (_Bridge *BridgeCallerSession) VerifyMerkleProof(leafHash [32]byte, smtProof [][32]byte, index uint64, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0x3da81682.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[] smtProof, uint64 index, bytes32 root) pure returns(bool)

func (*BridgeCallerSession) WrappedTokenToTokenInfo

func (_Bridge *BridgeCallerSession) WrappedTokenToTokenInfo(arg0 common.Address) (struct {
	OriginNetwork      uint32
	OriginTokenAddress common.Address
}, error)

WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.

Solidity: function wrappedTokenToTokenInfo(address ) view returns(uint32 originNetwork, address originTokenAddress)

type BridgeClaimEvent

type BridgeClaimEvent struct {
	Index              uint32
	OriginNetwork      uint32
	OriginAddress      common.Address
	DestinationAddress common.Address
	Amount             *big.Int
	Raw                types.Log // Blockchain specific contextual infos
}

BridgeClaimEvent represents a ClaimEvent event raised by the Bridge contract.

type BridgeClaimEventIterator

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

BridgeClaimEventIterator is returned from FilterClaimEvent and is used to iterate over the raw logs and unpacked data for ClaimEvent events raised by the Bridge contract.

func (*BridgeClaimEventIterator) Close

func (it *BridgeClaimEventIterator) Close() error

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

func (*BridgeClaimEventIterator) Error

func (it *BridgeClaimEventIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeClaimEventIterator) Next

func (it *BridgeClaimEventIterator) 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 BridgeEmergencyStateActivated

type BridgeEmergencyStateActivated struct {
	Raw types.Log // Blockchain specific contextual infos
}

BridgeEmergencyStateActivated represents a EmergencyStateActivated event raised by the Bridge contract.

type BridgeEmergencyStateActivatedIterator

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

BridgeEmergencyStateActivatedIterator is returned from FilterEmergencyStateActivated and is used to iterate over the raw logs and unpacked data for EmergencyStateActivated events raised by the Bridge contract.

func (*BridgeEmergencyStateActivatedIterator) Close

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

func (*BridgeEmergencyStateActivatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeEmergencyStateActivatedIterator) 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 BridgeEmergencyStateDeactivated

type BridgeEmergencyStateDeactivated struct {
	Raw types.Log // Blockchain specific contextual infos
}

BridgeEmergencyStateDeactivated represents a EmergencyStateDeactivated event raised by the Bridge contract.

type BridgeEmergencyStateDeactivatedIterator

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

BridgeEmergencyStateDeactivatedIterator is returned from FilterEmergencyStateDeactivated and is used to iterate over the raw logs and unpacked data for EmergencyStateDeactivated events raised by the Bridge contract.

func (*BridgeEmergencyStateDeactivatedIterator) Close

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

func (*BridgeEmergencyStateDeactivatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeEmergencyStateDeactivatedIterator) 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 BridgeFilterer

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

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

func NewBridgeFilterer

func NewBridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*BridgeFilterer, error)

NewBridgeFilterer creates a new log filterer instance of Bridge, bound to a specific deployed contract.

func (*BridgeFilterer) FilterBridgeEvent

func (_Bridge *BridgeFilterer) FilterBridgeEvent(opts *bind.FilterOpts) (*BridgeBridgeEventIterator, error)

FilterBridgeEvent is a free log retrieval operation binding the contract event 0x501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b.

Solidity: event BridgeEvent(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata, uint32 depositCount)

func (*BridgeFilterer) FilterClaimEvent

func (_Bridge *BridgeFilterer) FilterClaimEvent(opts *bind.FilterOpts) (*BridgeClaimEventIterator, error)

FilterClaimEvent is a free log retrieval operation binding the contract event 0x25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe27545983.

Solidity: event ClaimEvent(uint32 index, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)

func (*BridgeFilterer) FilterEmergencyStateActivated

func (_Bridge *BridgeFilterer) FilterEmergencyStateActivated(opts *bind.FilterOpts) (*BridgeEmergencyStateActivatedIterator, error)

FilterEmergencyStateActivated is a free log retrieval operation binding the contract event 0x2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a5497.

Solidity: event EmergencyStateActivated()

func (*BridgeFilterer) FilterEmergencyStateDeactivated

func (_Bridge *BridgeFilterer) FilterEmergencyStateDeactivated(opts *bind.FilterOpts) (*BridgeEmergencyStateDeactivatedIterator, error)

FilterEmergencyStateDeactivated is a free log retrieval operation binding the contract event 0x1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b3.

Solidity: event EmergencyStateDeactivated()

func (*BridgeFilterer) FilterInitialized

func (_Bridge *BridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*BridgeInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) FilterNewWrappedToken

func (_Bridge *BridgeFilterer) FilterNewWrappedToken(opts *bind.FilterOpts) (*BridgeNewWrappedTokenIterator, error)

FilterNewWrappedToken is a free log retrieval operation binding the contract event 0xccd7715648d1f2bb13e158f96b5b6c3aeda555d4cb87112e274a6f28bc571d59.

Solidity: event NewWrappedToken(uint32 originNetwork, address originTokenAddress, address wrappedTokenAddress)

func (*BridgeFilterer) FilterOwnershipTransferred

func (_Bridge *BridgeFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*BridgeOwnershipTransferredIterator, error)

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

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

func (*BridgeFilterer) ParseBridgeEvent

func (_Bridge *BridgeFilterer) ParseBridgeEvent(log types.Log) (*BridgeBridgeEvent, error)

ParseBridgeEvent is a log parse operation binding the contract event 0x501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b.

Solidity: event BridgeEvent(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata, uint32 depositCount)

func (*BridgeFilterer) ParseClaimEvent

func (_Bridge *BridgeFilterer) ParseClaimEvent(log types.Log) (*BridgeClaimEvent, error)

ParseClaimEvent is a log parse operation binding the contract event 0x25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe27545983.

Solidity: event ClaimEvent(uint32 index, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)

func (*BridgeFilterer) ParseEmergencyStateActivated

func (_Bridge *BridgeFilterer) ParseEmergencyStateActivated(log types.Log) (*BridgeEmergencyStateActivated, error)

ParseEmergencyStateActivated is a log parse operation binding the contract event 0x2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a5497.

Solidity: event EmergencyStateActivated()

func (*BridgeFilterer) ParseEmergencyStateDeactivated

func (_Bridge *BridgeFilterer) ParseEmergencyStateDeactivated(log types.Log) (*BridgeEmergencyStateDeactivated, error)

ParseEmergencyStateDeactivated is a log parse operation binding the contract event 0x1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b3.

Solidity: event EmergencyStateDeactivated()

func (*BridgeFilterer) ParseInitialized

func (_Bridge *BridgeFilterer) ParseInitialized(log types.Log) (*BridgeInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) ParseNewWrappedToken

func (_Bridge *BridgeFilterer) ParseNewWrappedToken(log types.Log) (*BridgeNewWrappedToken, error)

ParseNewWrappedToken is a log parse operation binding the contract event 0xccd7715648d1f2bb13e158f96b5b6c3aeda555d4cb87112e274a6f28bc571d59.

Solidity: event NewWrappedToken(uint32 originNetwork, address originTokenAddress, address wrappedTokenAddress)

func (*BridgeFilterer) ParseOwnershipTransferred

func (_Bridge *BridgeFilterer) ParseOwnershipTransferred(log types.Log) (*BridgeOwnershipTransferred, error)

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

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

func (*BridgeFilterer) WatchBridgeEvent

func (_Bridge *BridgeFilterer) WatchBridgeEvent(opts *bind.WatchOpts, sink chan<- *BridgeBridgeEvent) (event.Subscription, error)

WatchBridgeEvent is a free log subscription operation binding the contract event 0x501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b.

Solidity: event BridgeEvent(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata, uint32 depositCount)

func (*BridgeFilterer) WatchClaimEvent

func (_Bridge *BridgeFilterer) WatchClaimEvent(opts *bind.WatchOpts, sink chan<- *BridgeClaimEvent) (event.Subscription, error)

WatchClaimEvent is a free log subscription operation binding the contract event 0x25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe27545983.

Solidity: event ClaimEvent(uint32 index, uint32 originNetwork, address originAddress, address destinationAddress, uint256 amount)

func (*BridgeFilterer) WatchEmergencyStateActivated

func (_Bridge *BridgeFilterer) WatchEmergencyStateActivated(opts *bind.WatchOpts, sink chan<- *BridgeEmergencyStateActivated) (event.Subscription, error)

WatchEmergencyStateActivated is a free log subscription operation binding the contract event 0x2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a5497.

Solidity: event EmergencyStateActivated()

func (*BridgeFilterer) WatchEmergencyStateDeactivated

func (_Bridge *BridgeFilterer) WatchEmergencyStateDeactivated(opts *bind.WatchOpts, sink chan<- *BridgeEmergencyStateDeactivated) (event.Subscription, error)

WatchEmergencyStateDeactivated is a free log subscription operation binding the contract event 0x1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b3.

Solidity: event EmergencyStateDeactivated()

func (*BridgeFilterer) WatchInitialized

func (_Bridge *BridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *BridgeInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*BridgeFilterer) WatchNewWrappedToken

func (_Bridge *BridgeFilterer) WatchNewWrappedToken(opts *bind.WatchOpts, sink chan<- *BridgeNewWrappedToken) (event.Subscription, error)

WatchNewWrappedToken is a free log subscription operation binding the contract event 0xccd7715648d1f2bb13e158f96b5b6c3aeda555d4cb87112e274a6f28bc571d59.

Solidity: event NewWrappedToken(uint32 originNetwork, address originTokenAddress, address wrappedTokenAddress)

func (*BridgeFilterer) WatchOwnershipTransferred

func (_Bridge *BridgeFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *BridgeOwnershipTransferred, 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)

type BridgeInitialized

type BridgeInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

BridgeInitialized represents a Initialized event raised by the Bridge contract.

type BridgeInitializedIterator

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

BridgeInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the Bridge contract.

func (*BridgeInitializedIterator) Close

func (it *BridgeInitializedIterator) Close() error

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

func (*BridgeInitializedIterator) Error

func (it *BridgeInitializedIterator) Error() error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeInitializedIterator) Next

func (it *BridgeInitializedIterator) 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 BridgeNewWrappedToken

type BridgeNewWrappedToken struct {
	OriginNetwork       uint32
	OriginTokenAddress  common.Address
	WrappedTokenAddress common.Address
	Raw                 types.Log // Blockchain specific contextual infos
}

BridgeNewWrappedToken represents a NewWrappedToken event raised by the Bridge contract.

type BridgeNewWrappedTokenIterator

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

BridgeNewWrappedTokenIterator is returned from FilterNewWrappedToken and is used to iterate over the raw logs and unpacked data for NewWrappedToken events raised by the Bridge contract.

func (*BridgeNewWrappedTokenIterator) Close

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

func (*BridgeNewWrappedTokenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeNewWrappedTokenIterator) 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 BridgeOwnershipTransferred

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

BridgeOwnershipTransferred represents a OwnershipTransferred event raised by the Bridge contract.

type BridgeOwnershipTransferredIterator

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

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

func (*BridgeOwnershipTransferredIterator) Close

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

func (*BridgeOwnershipTransferredIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*BridgeOwnershipTransferredIterator) 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 BridgeRaw

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

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

func (*BridgeRaw) Call

func (_Bridge *BridgeRaw) 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 (*BridgeRaw) Transact

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

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

func (*BridgeRaw) Transfer

func (_Bridge *BridgeRaw) 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 BridgeSession

type BridgeSession struct {
	Contract     *Bridge           // 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
}

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

func (*BridgeSession) ActivateEmergencyState

func (_Bridge *BridgeSession) ActivateEmergencyState() (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*BridgeSession) BridgeAsset

func (_Bridge *BridgeSession) BridgeAsset(token common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, permitData []byte) (*types.Transaction, error)

BridgeAsset is a paid mutator transaction binding the contract method 0x0871e971.

Solidity: function bridgeAsset(address token, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes permitData) payable returns()

func (*BridgeSession) BridgeMessage

func (_Bridge *BridgeSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, metadata []byte) (*types.Transaction, error)

BridgeMessage is a paid mutator transaction binding the contract method 0xd96a15f7.

Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bytes metadata) payable returns()

func (*BridgeSession) ClaimAsset

func (_Bridge *BridgeSession) ClaimAsset(smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimAsset is a paid mutator transaction binding the contract method 0x7b6323c1.

Solidity: function claimAsset(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeSession) ClaimMessage

func (_Bridge *BridgeSession) ClaimMessage(smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimMessage is a paid mutator transaction binding the contract method 0x46385549.

Solidity: function claimMessage(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeSession) ClaimedBitMap

func (_Bridge *BridgeSession) ClaimedBitMap(arg0 *big.Int) (*big.Int, error)

ClaimedBitMap is a free data retrieval call binding the contract method 0xee25560b.

Solidity: function claimedBitMap(uint256 ) view returns(uint256)

func (*BridgeSession) DeactivateEmergencyState

func (_Bridge *BridgeSession) DeactivateEmergencyState() (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*BridgeSession) DepositCount

func (_Bridge *BridgeSession) DepositCount() (*big.Int, error)

DepositCount is a free data retrieval call binding the contract method 0x2dfdf0b5.

Solidity: function depositCount() view returns(uint256)

func (*BridgeSession) GetDepositRoot

func (_Bridge *BridgeSession) GetDepositRoot() ([32]byte, error)

GetDepositRoot is a free data retrieval call binding the contract method 0x3ae05047.

Solidity: function getDepositRoot() view returns(bytes32)

func (*BridgeSession) GetLeafValue

func (_Bridge *BridgeSession) GetLeafValue(leafType uint8, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadataHash [32]byte) ([32]byte, error)

GetLeafValue is a free data retrieval call binding the contract method 0x3e197043.

Solidity: function getLeafValue(uint8 leafType, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes32 metadataHash) pure returns(bytes32)

func (*BridgeSession) GetTokenWrappedAddress

func (_Bridge *BridgeSession) GetTokenWrappedAddress(originNetwork uint32, originTokenAddress common.Address) (common.Address, error)

GetTokenWrappedAddress is a free data retrieval call binding the contract method 0x22e95f2c.

Solidity: function getTokenWrappedAddress(uint32 originNetwork, address originTokenAddress) view returns(address)

func (*BridgeSession) GlobalExitRootManager

func (_Bridge *BridgeSession) GlobalExitRootManager() (common.Address, error)

GlobalExitRootManager is a free data retrieval call binding the contract method 0xd02103ca.

Solidity: function globalExitRootManager() view returns(address)

func (*BridgeSession) Initialize

func (_Bridge *BridgeSession) Initialize(_networkID uint32, _globalExitRootManager common.Address, _poeAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x647c576c.

Solidity: function initialize(uint32 _networkID, address _globalExitRootManager, address _poeAddress) returns()

func (*BridgeSession) IsClaimed

func (_Bridge *BridgeSession) IsClaimed(index *big.Int) (bool, error)

IsClaimed is a free data retrieval call binding the contract method 0x9e34070f.

Solidity: function isClaimed(uint256 index) view returns(bool)

func (*BridgeSession) IsEmergencyState

func (_Bridge *BridgeSession) IsEmergencyState() (bool, error)

IsEmergencyState is a free data retrieval call binding the contract method 0x15064c96.

Solidity: function isEmergencyState() view returns(bool)

func (*BridgeSession) LEAFTYPEASSET

func (_Bridge *BridgeSession) LEAFTYPEASSET() (uint8, error)

LEAFTYPEASSET is a free data retrieval call binding the contract method 0xa08e8a08.

Solidity: function LEAF_TYPE_ASSET() view returns(uint8)

func (*BridgeSession) LEAFTYPEMESSAGE

func (_Bridge *BridgeSession) LEAFTYPEMESSAGE() (uint8, error)

LEAFTYPEMESSAGE is a free data retrieval call binding the contract method 0xff634ed7.

Solidity: function LEAF_TYPE_MESSAGE() view returns(uint8)

func (*BridgeSession) MAINNETNETWORKID

func (_Bridge *BridgeSession) MAINNETNETWORKID() (uint32, error)

MAINNETNETWORKID is a free data retrieval call binding the contract method 0xed6be5c9.

Solidity: function MAINNET_NETWORK_ID() view returns(uint32)

func (*BridgeSession) NetworkID

func (_Bridge *BridgeSession) NetworkID() (uint32, error)

NetworkID is a free data retrieval call binding the contract method 0xbab161bf.

Solidity: function networkID() view returns(uint32)

func (*BridgeSession) Owner

func (_Bridge *BridgeSession) Owner() (common.Address, error)

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

Solidity: function owner() view returns(address)

func (*BridgeSession) PoeAddress

func (_Bridge *BridgeSession) PoeAddress() (common.Address, error)

PoeAddress is a free data retrieval call binding the contract method 0x8f611519.

Solidity: function poeAddress() view returns(address)

func (*BridgeSession) PrecalculatedWrapperAddress

func (_Bridge *BridgeSession) PrecalculatedWrapperAddress(originNetwork uint32, originTokenAddress common.Address, name string, symbol string, decimals uint8) (common.Address, error)

PrecalculatedWrapperAddress is a free data retrieval call binding the contract method 0xaaa13cc2.

Solidity: function precalculatedWrapperAddress(uint32 originNetwork, address originTokenAddress, string name, string symbol, uint8 decimals) view returns(address)

func (*BridgeSession) RenounceOwnership

func (_Bridge *BridgeSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeSession) TokenInfoToWrappedToken

func (_Bridge *BridgeSession) TokenInfoToWrappedToken(arg0 [32]byte) (common.Address, error)

TokenInfoToWrappedToken is a free data retrieval call binding the contract method 0x81b1c174.

Solidity: function tokenInfoToWrappedToken(bytes32 ) view returns(address)

func (*BridgeSession) TransferOwnership

func (_Bridge *BridgeSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

func (*BridgeSession) VerifyMerkleProof

func (_Bridge *BridgeSession) VerifyMerkleProof(leafHash [32]byte, smtProof [][32]byte, index uint64, root [32]byte) (bool, error)

VerifyMerkleProof is a free data retrieval call binding the contract method 0x3da81682.

Solidity: function verifyMerkleProof(bytes32 leafHash, bytes32[] smtProof, uint64 index, bytes32 root) pure returns(bool)

func (*BridgeSession) WrappedTokenToTokenInfo

func (_Bridge *BridgeSession) WrappedTokenToTokenInfo(arg0 common.Address) (struct {
	OriginNetwork      uint32
	OriginTokenAddress common.Address
}, error)

WrappedTokenToTokenInfo is a free data retrieval call binding the contract method 0x318aee3d.

Solidity: function wrappedTokenToTokenInfo(address ) view returns(uint32 originNetwork, address originTokenAddress)

type BridgeTransactor

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

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

func NewBridgeTransactor

func NewBridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*BridgeTransactor, error)

NewBridgeTransactor creates a new write-only instance of Bridge, bound to a specific deployed contract.

func (*BridgeTransactor) ActivateEmergencyState

func (_Bridge *BridgeTransactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*BridgeTransactor) BridgeAsset

func (_Bridge *BridgeTransactor) BridgeAsset(opts *bind.TransactOpts, token common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, permitData []byte) (*types.Transaction, error)

BridgeAsset is a paid mutator transaction binding the contract method 0x0871e971.

Solidity: function bridgeAsset(address token, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes permitData) payable returns()

func (*BridgeTransactor) BridgeMessage

func (_Bridge *BridgeTransactor) BridgeMessage(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, metadata []byte) (*types.Transaction, error)

BridgeMessage is a paid mutator transaction binding the contract method 0xd96a15f7.

Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bytes metadata) payable returns()

func (*BridgeTransactor) ClaimAsset

func (_Bridge *BridgeTransactor) ClaimAsset(opts *bind.TransactOpts, smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimAsset is a paid mutator transaction binding the contract method 0x7b6323c1.

Solidity: function claimAsset(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeTransactor) ClaimMessage

func (_Bridge *BridgeTransactor) ClaimMessage(opts *bind.TransactOpts, smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimMessage is a paid mutator transaction binding the contract method 0x46385549.

Solidity: function claimMessage(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeTransactor) DeactivateEmergencyState

func (_Bridge *BridgeTransactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*BridgeTransactor) Initialize

func (_Bridge *BridgeTransactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _globalExitRootManager common.Address, _poeAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x647c576c.

Solidity: function initialize(uint32 _networkID, address _globalExitRootManager, address _poeAddress) returns()

func (*BridgeTransactor) RenounceOwnership

func (_Bridge *BridgeTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeTransactor) TransferOwnership

func (_Bridge *BridgeTransactor) 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 BridgeTransactorRaw

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

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

func (*BridgeTransactorRaw) Transact

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

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

func (*BridgeTransactorRaw) Transfer

func (_Bridge *BridgeTransactorRaw) 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 BridgeTransactorSession

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

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

func (*BridgeTransactorSession) ActivateEmergencyState

func (_Bridge *BridgeTransactorSession) ActivateEmergencyState() (*types.Transaction, error)

ActivateEmergencyState is a paid mutator transaction binding the contract method 0x2072f6c5.

Solidity: function activateEmergencyState() returns()

func (*BridgeTransactorSession) BridgeAsset

func (_Bridge *BridgeTransactorSession) BridgeAsset(token common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, permitData []byte) (*types.Transaction, error)

BridgeAsset is a paid mutator transaction binding the contract method 0x0871e971.

Solidity: function bridgeAsset(address token, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes permitData) payable returns()

func (*BridgeTransactorSession) BridgeMessage

func (_Bridge *BridgeTransactorSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, metadata []byte) (*types.Transaction, error)

BridgeMessage is a paid mutator transaction binding the contract method 0xd96a15f7.

Solidity: function bridgeMessage(uint32 destinationNetwork, address destinationAddress, bytes metadata) payable returns()

func (*BridgeTransactorSession) ClaimAsset

func (_Bridge *BridgeTransactorSession) ClaimAsset(smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originTokenAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimAsset is a paid mutator transaction binding the contract method 0x7b6323c1.

Solidity: function claimAsset(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeTransactorSession) ClaimMessage

func (_Bridge *BridgeTransactorSession) ClaimMessage(smtProof [][32]byte, index uint32, mainnetExitRoot [32]byte, rollupExitRoot [32]byte, originNetwork uint32, originAddress common.Address, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, metadata []byte) (*types.Transaction, error)

ClaimMessage is a paid mutator transaction binding the contract method 0x46385549.

Solidity: function claimMessage(bytes32[] smtProof, uint32 index, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*BridgeTransactorSession) DeactivateEmergencyState

func (_Bridge *BridgeTransactorSession) DeactivateEmergencyState() (*types.Transaction, error)

DeactivateEmergencyState is a paid mutator transaction binding the contract method 0xdbc16976.

Solidity: function deactivateEmergencyState() returns()

func (*BridgeTransactorSession) Initialize

func (_Bridge *BridgeTransactorSession) Initialize(_networkID uint32, _globalExitRootManager common.Address, _poeAddress common.Address) (*types.Transaction, error)

Initialize is a paid mutator transaction binding the contract method 0x647c576c.

Solidity: function initialize(uint32 _networkID, address _globalExitRootManager, address _poeAddress) returns()

func (*BridgeTransactorSession) RenounceOwnership

func (_Bridge *BridgeTransactorSession) RenounceOwnership() (*types.Transaction, error)

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

Solidity: function renounceOwnership() returns()

func (*BridgeTransactorSession) TransferOwnership

func (_Bridge *BridgeTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error)

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

Solidity: function transferOwnership(address newOwner) returns()

Jump to

Keyboard shortcuts

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