polygonzkevmbridge

package
v0.0.2-RC1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PolygonzkevmbridgeABI = PolygonzkevmbridgeMetaData.ABI

PolygonzkevmbridgeABI is the input ABI used to generate the binding from. Deprecated: Use PolygonzkevmbridgeMetaData.ABI instead.

View Source
var PolygonzkevmbridgeBin = PolygonzkevmbridgeMetaData.Bin

PolygonzkevmbridgeBin is the compiled bytecode used for deploying new contracts. Deprecated: Use PolygonzkevmbridgeMetaData.Bin instead.

View Source
var PolygonzkevmbridgeMetaData = &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\"},{\"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\":\"contractIPolygonZkEVMGlobalExitRoot\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_networkID\",\"type\":\"uint32\"},{\"internalType\":\"contractIPolygonZkEVMGlobalExitRoot\",\"name\":\"_globalExitRootManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_polygonZkEVMaddress\",\"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\":\"polygonZkEVMaddress\",\"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\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"name\":\"tokenInfoToWrappedToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"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: "0x608060405234801561001057600080fd5b50614f9c806100206000396000f3fe608060405260043610620001ab5760003560e01c80637b6323c111620000e7578063d02103ca1162000089578063ed6be5c91162000060578063ed6be5c91462000512578063ee25560b1462000529578063ff634ed7146200055a57600080fd5b8063d02103ca14620004c1578063d96a15f714620004e3578063dbc1697614620004fa57600080fd5b8063a08e8a0811620000be578063a08e8a081462000438578063aaa13cc21462000462578063bab161bf146200048757600080fd5b80637b6323c114620003b457806381b1c17414620003d95780639e34070f146200041357600080fd5b806334ac9cf211620001515780633e19704311620001285780633e197043146200034557806346385549146200036a578063647c576c146200038f57600080fd5b806334ac9cf214620002e65780633ae0504714620003085780633da81682146200032057600080fd5b806322e95f2c116200018657806322e95f2c14620002125780632dfdf0b51462000250578063318aee3d146200027757600080fd5b80630871e97114620001b057806315064c9614620001c95780632072f6c514620001fa575b600080fd5b620001c7620001c136600462002b6e565b62000571565b005b348015620001d657600080fd5b50602254620001e59060ff1681565b60405190151581526020015b60405180910390f35b3480156200020757600080fd5b50620001c762000a9e565b3480156200021f57600080fd5b50620002376200023136600462002bfb565b62000b2c565b6040516001600160a01b039091168152602001620001f1565b3480156200025d57600080fd5b506200026860215481565b604051908152602001620001f1565b3480156200028457600080fd5b50620002c16200029636600462002c37565b60256020526000908152604090205463ffffffff81169064010000000090046001600160a01b031682565b6040805163ffffffff90931683526001600160a01b03909116602083015201620001f1565b348015620002f357600080fd5b5060275462000237906001600160a01b031681565b3480156200031557600080fd5b506200026862000ba8565b3480156200032d57600080fd5b50620001e56200033f36600462002d1f565b62000c9b565b3480156200035257600080fd5b50620002686200036436600462002d9d565b62000d9b565b3480156200037757600080fd5b50620001c76200038936600462002eae565b62000e45565b3480156200039c57600080fd5b50620001c7620003ae36600462002f95565b6200108e565b348015620003c157600080fd5b50620001c7620003d336600462002eae565b62001214565b348015620003e657600080fd5b5062000237620003f836600462002fe5565b6024602052600090815260409020546001600160a01b031681565b3480156200042057600080fd5b50620001e56200043236600462002fe5565b62001741565b3480156200044557600080fd5b506200044f600081565b60405160ff9091168152602001620001f1565b3480156200046f57600080fd5b50620002376200048136600462002fff565b62001786565b3480156200049457600080fd5b50602254620004ab90610100900463ffffffff1681565b60405163ffffffff9091168152602001620001f1565b348015620004ce57600080fd5b5060265462000237906001600160a01b031681565b620001c7620004f4366004620030b3565b620018da565b3480156200050757600080fd5b50620001c762001ae6565b3480156200051f57600080fd5b50620004ab600081565b3480156200053657600080fd5b50620002686200054836600462002fe5565b60236020526000908152604090205481565b3480156200056757600080fd5b506200044f600181565b60225460ff1615620005fb5760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a4015b60405180910390fd5b60225463ffffffff610100909104811690861603620006835760405162461bcd60e51b815260206004820152603d60248201527f506f6c79676f6e5a6b45564d4272696467653a3a62726964676541737365743a60448201527f2044657374696e6174696f6e2063616e6e6f7420626520697473656c660000006064820152608401620005f2565b60008060606001600160a01b0389166200073f57853414620007355760405162461bcd60e51b8152602060048201526044602482018190527f506f6c79676f6e5a6b45564d4272696467653a3a62726964676541737365743a908201527f20416d6f756e7420646f6573206e6f74206d61746368206d6573736167652e7660648201527f616c756500000000000000000000000000000000000000000000000000000000608482015260a401620005f2565b60009150620009b8565b6001600160a01b03808a1660009081526025602090815260409182902082518084019093525463ffffffff811683526401000000009004909216918101829052901562000815576040517f9dc29fac000000000000000000000000000000000000000000000000000000008152336004820152602481018890526001600160a01b038b1690639dc29fac90604401600060405180830381600087803b158015620007e857600080fd5b505af1158015620007fd573d6000803e3d6000fd5b505050508060200151935080600001519250620009b6565b84156200082a576200082a8a88888862001b72565b620008416001600160a01b038b1633308a62002132565b899350602260019054906101000a900463ffffffff169250896001600160a01b03166306fdde036040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000898573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052620008c291908101906200319e565b8a6001600160a01b03166395d89b416040518163ffffffff1660e01b8152600401600060405180830381865afa15801562000901573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f191682016040526200092b91908101906200319e565b8b6001600160a01b031663313ce5676040518163ffffffff1660e01b8152600401602060405180830381865afa1580156200096a573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190620009909190620031d7565b604051602001620009a49392919062003225565b60405160208183030381529060405291505b505b7f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b600083858b8b8b87602154604051620009fa98979695949392919062003262565b60405180910390a162000a2562000a1f600084868c8c8c888051906020012062000d9b565b620021b8565b6026546001600160a01b03166333d6247d62000a4062000ba8565b6040518263ffffffff1660e01b815260040162000a5f91815260200190565b600060405180830381600087803b15801562000a7a57600080fd5b505af115801562000a8f573d6000803e3d6000fd5b50505050505050505050505050565b6027546001600160a01b0316331462000b205760405162461bcd60e51b815260206004820152603a60248201527f506f6c79676f6e5a6b45564d3a3a6f6e6c79506f6c79676f6e5a6b45564d3a2060448201527f6f6e6c7920506f6c79676f6e5a6b45564d20636f6e74726163740000000000006064820152608401620005f2565b62000b2a6200231c565b565b600060246000848460405160200162000b7092919060e09290921b6001600160e01b031916825260601b6bffffffffffffffffffffffff1916600482015260180190565b60408051601f19818403018152918152815160209283012083529082019290925201600020546001600160a01b031690505b92915050565b602154600090819081805b602081101562000c92578260011660010362000c13576001816020811062000bdf5762000bdf620032ce565b0154604080516020810192909252810185905260600160405160208183030381529060405280519060200120935062000c40565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b62000c4d60028462003310565b6040805160208101859052908101849052909350606001604051602081830303815290604052805190602001209150808062000c899062003327565b91505062000bb3565b50919392505050565b60008467ffffffffffffffff8416825b602081101562000d8e578160011660010362000d185786818151811062000cd65762000cd6620032ce565b60200260200101518360405160200162000cfa929190918252602082015260400190565b60405160208183030381529060405280519060200120925062000d6a565b8287828151811062000d2e5762000d2e620032ce565b602002602001015160405160200162000d51929190918252602082015260400190565b6040516020818303038152906040528051906020012092505b62000d7760028362003310565b91508062000d858162003327565b91505062000cab565b5050909114949350505050565b6040517fff0000000000000000000000000000000000000000000000000000000000000060f889901b1660208201526001600160e01b031960e088811b821660218401526bffffffffffffffffffffffff19606089811b821660258601529188901b909216603984015285901b16603d8201526051810183905260718101829052600090609101604051602081830303815290604052805190602001209050979650505050505050565b60225460ff161562000ecb5760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a401620005f2565b62000ee18a8a8a8a8a8a8a8a8a8a6001620023da565b62000ef28963ffffffff16620026fa565b6000836001600160a01b03168387898560405160240162000f169392919062003343565b60408051601f198184030181529181526020820180516001600160e01b03167f1806b5f2000000000000000000000000000000000000000000000000000000001790525162000f6691906200337c565b60006040518083038185875af1925050503d806000811462000fa5576040519150601f19603f3d011682016040523d82523d6000602084013e62000faa565b606091505b5050905080620010235760405162461bcd60e51b815260206004820152603060248201527f506f6c79676f6e5a6b45564d4272696467653a3a636c61696d4d65737361676560448201527f3a204d657373616765206661696c6564000000000000000000000000000000006064820152608401620005f2565b6040805163ffffffff8c81168252891660208201526001600160a01b0388811682840152861660608201526080810185905290517f25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe275459839181900360a00190a15050505050505050505050565b600054610100900460ff1615808015620010af5750600054600160ff909116105b80620010cb5750303b158015620010cb575060005460ff166001145b6200113f5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201527f647920696e697469616c697a65640000000000000000000000000000000000006064820152608401620005f2565b6000805460ff19166001179055801562001163576000805461ff0019166101001790555b6022805463ffffffff86166101000264ffffffff0019909116179055602680546001600160a01b038086167fffffffffffffffffffffffff000000000000000000000000000000000000000092831617909255602780549285169290911691909117905580156200120e576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b50505050565b60225460ff16156200129a5760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a401620005f2565b620012b08a8a8a8a8a8a8a8a8a8a6000620023da565b620012c18963ffffffff16620026fa565b6001600160a01b038516620013c057604080516000808252602082019092526001600160a01b038516908490604051620012fc91906200337c565b60006040518083038185875af1925050503d80600081146200133b576040519150601f19603f3d011682016040523d82523d6000602084013e62001340565b606091505b5050905080620013b95760405162461bcd60e51b815260206004820152603560248201527f506f6c79676f6e5a6b45564d4272696467653a3a636c61696d41737365743a2060448201527f4574686572207472616e73666572206661696c656400000000000000000000006064820152608401620005f2565b50620016d7565b60225463ffffffff610100909104811690871603620013f557620013ef6001600160a01b03861684846200273c565b620016d7565b6040516001600160e01b031960e088901b1660208201526bffffffffffffffffffffffff19606087901b16602482015260009060380160408051601f198184030181529181528151602092830120600081815260249093529120549091506001600160a01b0316806200166f576000806000858060200190518101906200147d91906200339a565b925092509250600085848484604051620014979062002ad4565b620014a59392919062003225565b8190604051809103906000f5905080158015620014c6573d6000803e3d6000fd5b506040516340c10f1960e01b81526001600160a01b038b81166004830152602482018b9052919250908216906340c10f1990604401600060405180830381600087803b1580156200151657600080fd5b505af11580156200152b573d6000803e3d6000fd5b50505050806024600088815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555060405180604001604052808d63ffffffff1681526020018c6001600160a01b031681525060256000836001600160a01b03166001600160a01b0316815260200190815260200160002060008201518160000160006101000a81548163ffffffff021916908363ffffffff16021790555060208201518160000160046101000a8154816001600160a01b0302191690836001600160a01b031602179055509050507fccd7715648d1f2bb13e158f96b5b6c3aeda555d4cb87112e274a6f28bc571d598c8c836040516200165d9392919063ffffffff9390931683526001600160a01b03918216602084015216604082015260600190565b60405180910390a150505050620016d4565b6040516340c10f1960e01b81526001600160a01b038681166004830152602482018690528216906340c10f1990604401600060405180830381600087803b158015620016ba57600080fd5b505af1158015620016cf573d6000803e3d6000fd5b505050505b50505b6040805163ffffffff8b81168252881660208201526001600160a01b0387811682840152851660608201526080810184905290517f25308c93ceeed162da955b3f7ce3e3f93606579e40fb92029faa9efe275459839181900360a00190a150505050505050505050565b600080620017526101008462003310565b90506000620017646101008562003410565b60009283526023602052604090922054600190921b9182169091149392505050565b6040516001600160e01b031960e089901b1660208201526bffffffffffffffffffffffff19606088901b1660248201526000908190603801604051602081830303815290604052805190602001209050600060ff60f81b308360405180602001620017f19062002ad4565b601f1982820381018352601f9091011660408190526200181e908d908d908d908d908d9060200162003450565b60408051601f19818403018152908290526200183e929160200162003491565b60405160208183030381529060405280519060200120604051602001620018b494939291907fff0000000000000000000000000000000000000000000000000000000000000094909416845260609290921b6bffffffffffffffffffffffff191660018401526015830152603582015260550190565b60408051808303601f1901815291905280516020909101209a9950505050505050505050565b60225460ff1615620019605760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a401620005f2565b60225463ffffffff610100909104811690841603620019e85760405162461bcd60e51b815260206004820152603f60248201527f506f6c79676f6e5a6b45564d4272696467653a3a6272696467654d657373616760448201527f653a2044657374696e6174696f6e2063616e6e6f7420626520697473656c66006064820152608401620005f2565b7f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b6001602260019054906101000a900463ffffffff16338686348760215460405162001a3c98979695949392919062003262565b60405180910390a162001a7362000a1f6001602260019054906101000a900463ffffffff1633878734888051906020012062000d9b565b6026546001600160a01b03166333d6247d62001a8e62000ba8565b6040518263ffffffff1660e01b815260040162001aad91815260200190565b600060405180830381600087803b15801562001ac857600080fd5b505af115801562001add573d6000803e3d6000fd5b50505050505050565b6027546001600160a01b0316331462001b685760405162461bcd60e51b815260206004820152603a60248201527f506f6c79676f6e5a6b45564d3a3a6f6e6c79506f6c79676f6e5a6b45564d3a2060448201527f6f6e6c7920506f6c79676f6e5a6b45564d20636f6e74726163740000000000006064820152608401620005f2565b62000b2a62002787565b600062001bb583838080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506200283692505050565b90507f2afa5331000000000000000000000000000000000000000000000000000000006001600160e01b031982160162001e8a57600080808080808062001c00896004818d620034c4565b81019062001c0f9190620034f0565b9650965096509650965096509650336001600160a01b0316876001600160a01b03161462001ca65760405162461bcd60e51b815260206004820152603c60248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a2050657260448201527f6d6974206f776e6572206d757374206265207468652073656e646572000000006064820152608401620005f2565b6001600160a01b038616301462001d265760405162461bcd60e51b815260206004820152603360248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a2053706560448201527f6e646572206d75737420626520277468697327000000000000000000000000006064820152608401620005f2565b8a851462001d9d5760405162461bcd60e51b815260206004820152603960248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a2050657260448201527f6d697420616d6f756e7420646f6573206e6f74206d61746368000000000000006064820152608401620005f2565b604080516001600160a01b0389811660248301528881166044830152606482018890526084820187905260ff861660a483015260c4820185905260e48083018590528351808403909101815261010490920183526020820180516001600160e01b03167fd505accf000000000000000000000000000000000000000000000000000000001790529151918e169162001e3691906200337c565b6000604051808303816000865af19150503d806000811462001e75576040519150601f19603f3d011682016040523d82523d6000602084013e62001e7a565b606091505b505050505050505050506200212b565b6001600160e01b031981166323f2ebc360e21b1462001f125760405162461bcd60e51b815260206004820152602b60248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a204e6f7460448201527f2076616c69642063616c6c0000000000000000000000000000000000000000006064820152608401620005f2565b60008080808080808062001f2a8a6004818e620034c4565b81019062001f3991906200355a565b97509750975097509750975097509750336001600160a01b0316886001600160a01b03161462001fd25760405162461bcd60e51b815260206004820152603c60248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a2050657260448201527f6d6974206f776e6572206d757374206265207468652073656e646572000000006064820152608401620005f2565b6001600160a01b0387163014620020525760405162461bcd60e51b815260206004820152603360248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7065726d69743a2053706560448201527f6e646572206d75737420626520277468697327000000000000000000000000006064820152608401620005f2565b604080516001600160a01b038a811660248301528981166044830152606482018990526084820188905286151560a483015260ff861660c483015260e482018590526101048083018590528351808403909101815261012490920183526020820180516001600160e01b03166323f2ebc360e21b1790529151918f1691620020db91906200337c565b6000604051808303816000865af19150503d80600081146200211a576040519150601f19603f3d011682016040523d82523d6000602084013e6200211f565b606091505b50505050505050505050505b5050505050565b6040516001600160a01b03808516602483015283166044820152606481018290526200120e9085907f23b872dd00000000000000000000000000000000000000000000000000000000906084015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b0319909316929092179091526200283d565b806001620021c960206002620036e3565b620021d59190620036f1565b602154106200224d5760405162461bcd60e51b815260206004820152602a60248201527f4465706f736974436f6e74726163743a5f6465706f7369743a204d65726b6c6560448201527f20747265652066756c6c000000000000000000000000000000000000000000006064820152608401620005f2565b6001602160008282546200226291906200370b565b909155505060215460005b60208110156200230c5781600116600103620022a25782600182602081106200229a576200229a620032ce565b015550505050565b60018160208110620022b857620022b8620032ce565b01546040805160208101929092528101849052606001604051602081830303815290604052805190602001209250600282620022f5919062003310565b915080620023038162003327565b9150506200226d565b506200231762003726565b505050565b60225460ff1615620023a25760405162461bcd60e51b815260206004820152604260248201527f456d657267656e63794d616e616765723a3a69664e6f74456d657267656e637960448201527f53746174653a206f6e6c79206966206e6f7420656d657267656e637920737461606482015261746560f01b608482015260a401620005f2565b6022805460ff191660011790556040517f2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a549790600090a1565b620023eb8a63ffffffff1662001741565b15620024605760405162461bcd60e51b815260206004820152603060248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7665726966794c6561663a60448201527f20416c726561647920636c61696d6564000000000000000000000000000000006064820152608401620005f2565b6026546040805160208082018d90528183018c9052825180830384018152606083019384905280519101207f257b36320000000000000000000000000000000000000000000000000000000090925260648101919091526000916001600160a01b03169063257b3632906084016020604051808303816000875af1158015620024ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906200251391906200373c565b9050806000036200258d5760405162461bcd60e51b815260206004820152603760248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7665726966794c6561663a60448201527f20476c6f62616c45786974526f6f7420696e76616c69640000000000000000006064820152608401620005f2565b60225463ffffffff87811661010090920416146200263a5760405162461bcd60e51b815260206004820152604360248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7665726966794c6561663a60448201527f2044657374696e6174696f6e206e6574776f726b20646f6573206e6f74206d6160648201527f7463680000000000000000000000000000000000000000000000000000000000608482015260a401620005f2565b602254600090610100900463ffffffff16620026585750886200265b565b50895b6200268662002677848b8b8b8b8b8b8051906020012062000d9b565b8e8e63ffffffff168462000c9b565b62000a8f5760405162461bcd60e51b815260206004820152603260248201527f506f6c79676f6e5a6b45564d4272696467653a3a5f7665726966794c6561663a60448201527f20496e76616c696420736d742070726f6f6600000000000000000000000000006064820152608401620005f2565b60006200270a6101008362003310565b905060006200271c6101008462003410565b6000928352602360205260409092208054600190931b9092179091555050565b6040516001600160a01b038316602482015260448101829052620023179084907fa9059cbb000000000000000000000000000000000000000000000000000000009060640162002180565b60225460ff16620028015760405162461bcd60e51b815260206004820152603b60248201527f456d657267656e63794d616e616765723a3a6966456d657267656e637953746160448201527f74653a206f6e6c7920696620656d657267656e637920737461746500000000006064820152608401620005f2565b6022805460ff191690556040517f1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b390600090a1565b6020015190565b600062002894826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316620029299092919063ffffffff16565b805190915015620023175780806020019051810190620028b5919062003756565b620023175760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401620005f2565b60606200293a848460008562002944565b90505b9392505050565b606082471015620029be5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401620005f2565b6001600160a01b0385163b62002a175760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401620005f2565b600080866001600160a01b0316858760405162002a3591906200337c565b60006040518083038185875af1925050503d806000811462002a74576040519150601f19603f3d011682016040523d82523d6000602084013e62002a79565b606091505b509150915062002a8b82828662002a96565b979650505050505050565b6060831562002aa75750816200293d565b82511562002ab85782518084602001fd5b8160405162461bcd60e51b8152600401620005f2919062003776565b6117db806200378c83390190565b6001600160a01b038116811462002af857600080fd5b50565b803562002b088162002ae2565b919050565b803563ffffffff8116811462002b0857600080fd5b60008083601f84011262002b3557600080fd5b50813567ffffffffffffffff81111562002b4e57600080fd5b60208301915083602082850101111562002b6757600080fd5b9250929050565b60008060008060008060a0878903121562002b8857600080fd5b863562002b958162002ae2565b955062002ba56020880162002b0d565b9450604087013562002bb78162002ae2565b935060608701359250608087013567ffffffffffffffff81111562002bdb57600080fd5b62002be989828a0162002b22565b979a9699509497509295939492505050565b6000806040838503121562002c0f57600080fd5b62002c1a8362002b0d565b9150602083013562002c2c8162002ae2565b809150509250929050565b60006020828403121562002c4a57600080fd5b81356200293d8162002ae2565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171562002c995762002c9962002c57565b604052919050565b600082601f83011262002cb357600080fd5b8135602067ffffffffffffffff82111562002cd25762002cd262002c57565b8160051b62002ce382820162002c6d565b928352848101820192828101908785111562002cfe57600080fd5b83870192505b8483101562002a8b5782358252918301919083019062002d04565b6000806000806080858703121562002d3657600080fd5b84359350602085013567ffffffffffffffff8082111562002d5657600080fd5b62002d648883890162002ca1565b945060408701359150808216821462002d7c57600080fd5b509396929550929360600135925050565b60ff8116811462002af857600080fd5b600080600080600080600060e0888a03121562002db957600080fd5b873562002dc68162002d8d565b965062002dd66020890162002b0d565b9550604088013562002de88162002ae2565b945062002df86060890162002b0d565b9350608088013562002e0a8162002ae2565b9699959850939692959460a0840135945060c09093013592915050565b600067ffffffffffffffff82111562002e445762002e4462002c57565b50601f01601f191660200190565b600082601f83011262002e6457600080fd5b813562002e7b62002e758262002e27565b62002c6d565b81815284602083860101111562002e9157600080fd5b816020850160208301376000918101602001919091529392505050565b6000806000806000806000806000806101408b8d03121562002ecf57600080fd5b8a3567ffffffffffffffff8082111562002ee857600080fd5b62002ef68e838f0162002ca1565b9b5062002f0660208e0162002b0d565b9a5060408d0135995060608d0135985062002f2460808e0162002b0d565b975062002f3460a08e0162002afb565b965062002f4460c08e0162002b0d565b955062002f5460e08e0162002afb565b94506101008d013593506101208d013591508082111562002f7457600080fd5b5062002f838d828e0162002e52565b9150509295989b9194979a5092959850565b60008060006060848603121562002fab57600080fd5b62002fb68462002b0d565b9250602084013562002fc88162002ae2565b9150604084013562002fda8162002ae2565b809150509250925092565b60006020828403121562002ff857600080fd5b5035919050565b600080600080600080600060a0888a0312156200301b57600080fd5b620030268862002b0d565b96506020880135620030388162002ae2565b9550604088013567ffffffffffffffff808211156200305657600080fd5b620030648b838c0162002b22565b909750955060608a01359150808211156200307e57600080fd5b506200308d8a828b0162002b22565b9094509250506080880135620030a38162002d8d565b8091505092959891949750929550565b600080600060608486031215620030c957600080fd5b620030d48462002b0d565b92506020840135620030e68162002ae2565b9150604084013567ffffffffffffffff8111156200310357600080fd5b620031118682870162002e52565b9150509250925092565b60005b83811015620031385781810151838201526020016200311e565b838111156200120e5750506000910152565b600082601f8301126200315c57600080fd5b81516200316d62002e758262002e27565b8181528460208386010111156200318357600080fd5b620031968260208301602087016200311b565b949350505050565b600060208284031215620031b157600080fd5b815167ffffffffffffffff811115620031c957600080fd5b62003196848285016200314a565b600060208284031215620031ea57600080fd5b81516200293d8162002d8d565b60008151808452620032118160208601602086016200311b565b601f01601f19169290920160200192915050565b6060815260006200323a6060830186620031f7565b82810360208401526200324e8186620031f7565b91505060ff83166040830152949350505050565b600061010060ff8b16835263ffffffff808b1660208501526001600160a01b03808b166040860152818a1660608601528089166080860152508660a08501528160c0850152620032b582850187620031f7565b925080851660e085015250509998505050505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082620033225762003322620032e4565b500490565b6000600182016200333c576200333c620032fa565b5060010190565b6001600160a01b038416815263ffffffff83166020820152606060408201526000620033736060830184620031f7565b95945050505050565b60008251620033908184602087016200311b565b9190910192915050565b600080600060608486031215620033b057600080fd5b835167ffffffffffffffff80821115620033c957600080fd5b620033d7878388016200314a565b94506020860151915080821115620033ee57600080fd5b50620033fd868287016200314a565b925050604084015162002fda8162002d8d565b600082620034225762003422620032e4565b500690565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6060815260006200346660608301878962003427565b82810360208401526200347b81868862003427565b91505060ff831660408301529695505050505050565b60008351620034a58184602088016200311b565b835190830190620034bb8183602088016200311b565b01949350505050565b60008085851115620034d557600080fd5b83861115620034e357600080fd5b5050820193919092039150565b600080600080600080600060e0888a0312156200350c57600080fd5b8735620035198162002ae2565b965060208801356200352b8162002ae2565b95506040880135945060608801359350608088013562002e0a8162002d8d565b801515811462002af857600080fd5b600080600080600080600080610100898b0312156200357857600080fd5b8835620035858162002ae2565b97506020890135620035978162002ae2565b965060408901359550606089013594506080890135620035b7816200354b565b935060a0890135620035c98162002d8d565b979a969950949793969295929450505060c08201359160e0013590565b600181815b80851115620036275781600019048211156200360b576200360b620032fa565b808516156200361957918102915b93841c9390800290620035eb565b509250929050565b600082620036405750600162000ba2565b816200364f5750600062000ba2565b8160018114620036685760028114620036735762003693565b600191505062000ba2565b60ff841115620036875762003687620032fa565b50506001821b62000ba2565b5060208310610133831016604e8410600b8410161715620036b8575081810a62000ba2565b620036c48383620035e6565b8060001904821115620036db57620036db620032fa565b029392505050565b60006200293d83836200362f565b600082821015620037065762003706620032fa565b500390565b60008219821115620037215762003721620032fa565b500190565b634e487b7160e01b600052600160045260246000fd5b6000602082840312156200374f57600080fd5b5051919050565b6000602082840312156200376957600080fd5b81516200293d816200354b565b6020815260006200293d6020830184620031f756fe60c06040523480156200001157600080fd5b50604051620017db380380620017db8339810160408190526200003491620002ad565b82826003620000448382620003c1565b506004620000538282620003c1565b5050600580546001600160a81b0319163360ff60a01b191617600160a01b60ff851602179055504660808190526200008b9062000098565b60a052506200048d915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000c562000146565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b606060038054620001579062000332565b80601f0160208091040260200160405190810160405280929190818152602001828054620001859062000332565b8015620001d65780601f10620001aa57610100808354040283529160200191620001d6565b820191906000526020600020905b815481529060010190602001808311620001b857829003601f168201915b5050505050905090565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200020857600080fd5b81516001600160401b0380821115620002255762000225620001e0565b604051601f8301601f19908116603f01168101908282118183101715620002505762000250620001e0565b816040528381526020925086838588010111156200026d57600080fd5b600091505b8382101562000291578582018301518183018401529082019062000272565b83821115620002a35760008385830101525b9695505050505050565b600080600060608486031215620002c357600080fd5b83516001600160401b0380821115620002db57600080fd5b620002e987838801620001f6565b945060208601519150808211156200030057600080fd5b506200030f86828701620001f6565b925050604084015160ff811681146200032757600080fd5b809150509250925092565b600181811c908216806200034757607f821691505b6020821081036200036857634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620003bc57600081815260208120601f850160051c81016020861015620003975750805b601f850160051c820191505b81811015620003b857828155600101620003a3565b5050505b505050565b81516001600160401b03811115620003dd57620003dd620001e0565b620003f581620003ee845462000332565b846200036e565b602080601f8311600181146200042d5760008415620004145750858301515b600019600386901b1c1916600185901b178555620003b8565b600085815260208120601f198616915b828110156200045e578886015182559484019460019091019084016200043d565b50858210156200047d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a051611321620004ba60003960006104e001526000818161034a01526104aa01526113216000f3fe608060405234801561001057600080fd5b50600436106101775760003560e01c806370a08231116100d8578063a457c2d71161008c578063d505accf11610066578063d505accf1461036c578063dd62ed3e1461037f578063ffa1ad74146103b857600080fd5b8063a457c2d71461031f578063a9059cbb14610332578063cd0d00961461034557600080fd5b806395d89b41116100bd57806395d89b41146102d95780639dc29fac146102e1578063a3c573eb146102f457600080fd5b806370a08231146102905780637ecebe00146102b957600080fd5b806330adf81f1161012f5780633644e515116101145780633644e51514610260578063395093511461026857806340c10f191461027b57600080fd5b806330adf81f14610209578063313ce5671461023057600080fd5b806318160ddd1161016057806318160ddd146101bd57806320606b70146101cf57806323b872dd146101f657600080fd5b806306fdde031461017c578063095ea7b31461019a575b600080fd5b6101846103d8565b60405161019191906110b4565b60405180910390f35b6101ad6101a8366004611125565b61046a565b6040519015158152602001610191565b6002545b604051908152602001610191565b6101c17f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6101ad61020436600461114f565b610482565b6101c17f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60055474010000000000000000000000000000000000000000900460ff1660405160ff9091168152602001610191565b6101c16104a6565b6101ad610276366004611125565b610502565b61028e610289366004611125565b610541565b005b6101c161029e36600461118b565b6001600160a01b031660009081526020819052604090205490565b6101c16102c736600461118b565b60066020526000908152604090205481565b6101846105d4565b61028e6102ef366004611125565b6105e3565b600554610307906001600160a01b031681565b6040516001600160a01b039091168152602001610191565b6101ad61032d366004611125565b61066d565b6101ad610340366004611125565b610717565b6101c17f000000000000000000000000000000000000000000000000000000000000000081565b61028e61037a3660046111ad565b610725565b6101c161038d366004611220565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b610184604051806040016040528060018152602001603160f81b81525081565b6060600380546103e790611253565b80601f016020809104026020016040519081016040528092919081815260200182805461041390611253565b80156104605780601f1061043557610100808354040283529160200191610460565b820191906000526020600020905b81548152906001019060200180831161044357829003601f168201915b5050505050905090565b6000336104788185856109aa565b5060019392505050565b600033610490858285610b03565b61049b858585610b95565b506001949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146104dd576104d846610dac565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b3360008181526001602090815260408083206001600160a01b0387168452909152812054909190610478908290869061053c9087906112a3565b6109aa565b6005546001600160a01b031633146105c65760405162461bcd60e51b815260206004820152603060248201527f546f6b656e577261707065643a3a6f6e6c794272696467653a204e6f7420506f60448201527f6c79676f6e5a6b45564d4272696467650000000000000000000000000000000060648201526084015b60405180910390fd5b6105d08282610e58565b5050565b6060600480546103e790611253565b6005546001600160a01b031633146106635760405162461bcd60e51b815260206004820152603060248201527f546f6b656e577261707065643a3a6f6e6c794272696467653a204e6f7420506f60448201527f6c79676f6e5a6b45564d4272696467650000000000000000000000000000000060648201526084016105bd565b6105d08282610f37565b3360008181526001602090815260408083206001600160a01b03871684529091528120549091908381101561070a5760405162461bcd60e51b815260206004820152602560248201527f45524332303a2064656372656173656420616c6c6f77616e63652062656c6f7760448201527f207a65726f00000000000000000000000000000000000000000000000000000060648201526084016105bd565b61049b82868684036109aa565b600033610478818585610b95565b8342111561079a5760405162461bcd60e51b8152602060048201526024808201527f546f6b656e577261707065643a3a7065726d69743a204578706972656420706560448201527f726d69740000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038716600090815260066020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918a918a918a9190866107e7836112bb565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e00160405160208183030381529060405280519060200120905060006108456104a6565b6040517f1901000000000000000000000000000000000000000000000000000000000000602082015260228101919091526042810183905260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa1580156108eb573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906109215750896001600160a01b0316816001600160a01b0316145b6109935760405162461bcd60e51b815260206004820152602760248201527f546f6b656e577261707065643a3a7065726d69743a20496e76616c696420736960448201527f676e61747572650000000000000000000000000000000000000000000000000060648201526084016105bd565b61099e8a8a8a6109aa565b50505050505050505050565b6001600160a01b038316610a255760405162461bcd60e51b8152602060048201526024808201527f45524332303a20617070726f76652066726f6d20746865207a65726f2061646460448201527f726573730000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038216610aa15760405162461bcd60e51b815260206004820152602260248201527f45524332303a20617070726f766520746f20746865207a65726f20616464726560448201527f737300000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b0383811660008181526001602090815260408083209487168084529482529182902085905590518481527f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591015b60405180910390a3505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610b8f5781811015610b825760405162461bcd60e51b815260206004820152601d60248201527f45524332303a20696e73756666696369656e7420616c6c6f77616e636500000060448201526064016105bd565b610b8f84848484036109aa565b50505050565b6001600160a01b038316610c115760405162461bcd60e51b815260206004820152602560248201527f45524332303a207472616e736665722066726f6d20746865207a65726f20616460448201527f647265737300000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038216610c8d5760405162461bcd60e51b815260206004820152602360248201527f45524332303a207472616e7366657220746f20746865207a65726f206164647260448201527f657373000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b03831660009081526020819052604090205481811015610d1c5760405162461bcd60e51b815260206004820152602660248201527f45524332303a207472616e7366657220616d6f756e742065786365656473206260448201527f616c616e6365000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b03808516600090815260208190526040808220858503905591851681529081208054849290610d539084906112a3565b92505081905550826001600160a01b0316846001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051610d9f91815260200190565b60405180910390a3610b8f565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f610dd76103d8565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b6001600160a01b038216610eae5760405162461bcd60e51b815260206004820152601f60248201527f45524332303a206d696e7420746f20746865207a65726f20616464726573730060448201526064016105bd565b8060026000828254610ec091906112a3565b90915550506001600160a01b03821660009081526020819052604081208054839290610eed9084906112a3565b90915550506040518181526001600160a01b038316906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9060200160405180910390a35050565b6001600160a01b038216610fb35760405162461bcd60e51b815260206004820152602160248201527f45524332303a206275726e2066726f6d20746865207a65726f2061646472657360448201527f730000000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b038216600090815260208190526040902054818110156110425760405162461bcd60e51b815260206004820152602260248201527f45524332303a206275726e20616d6f756e7420657863656564732062616c616e60448201527f636500000000000000000000000000000000000000000000000000000000000060648201526084016105bd565b6001600160a01b03831660009081526020819052604081208383039055600280548492906110719084906112d4565b90915550506040518281526000906001600160a01b038516907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef90602001610af6565b600060208083528351808285015260005b818110156110e1578581018301518582016040015282016110c5565b818111156110f3576000604083870101525b50601f01601f1916929092016040019392505050565b80356001600160a01b038116811461112057600080fd5b919050565b6000806040838503121561113857600080fd5b61114183611109565b946020939093013593505050565b60008060006060848603121561116457600080fd5b61116d84611109565b925061117b60208501611109565b9150604084013590509250925092565b60006020828403121561119d57600080fd5b6111a682611109565b9392505050565b600080600080600080600060e0888a0312156111c857600080fd5b6111d188611109565b96506111df60208901611109565b95506040880135945060608801359350608088013560ff8116811461120357600080fd5b9699959850939692959460a0840135945060c09093013592915050565b6000806040838503121561123357600080fd5b61123c83611109565b915061124a60208401611109565b90509250929050565b600181811c9082168061126757607f821691505b60208210810361128757634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156112b6576112b661128d565b500190565b6000600182016112cd576112cd61128d565b5060010190565b6000828210156112e6576112e661128d565b50039056fea26469706673582212205d074ee584238a5fb66873e3fc67d479c99eb1688b3ca2f77c22e4f97ce77b0064736f6c634300080f0033a264697066735822122060e4844ad9ce717086f4bd60b8f5fde908812219549ad06e1605773fdd681c4d64736f6c634300080f0033",
}

PolygonzkevmbridgeMetaData contains all meta data concerning the Polygonzkevmbridge contract.

Functions

This section is empty.

Types

type Polygonzkevmbridge

type Polygonzkevmbridge struct {
	PolygonzkevmbridgeCaller     // Read-only binding to the contract
	PolygonzkevmbridgeTransactor // Write-only binding to the contract
	PolygonzkevmbridgeFilterer   // Log filterer for contract events
}

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

func DeployPolygonzkevmbridge

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

DeployPolygonzkevmbridge deploys a new Ethereum contract, binding an instance of Polygonzkevmbridge to it.

func NewPolygonzkevmbridge

func NewPolygonzkevmbridge(address common.Address, backend bind.ContractBackend) (*Polygonzkevmbridge, error)

NewPolygonzkevmbridge creates a new instance of Polygonzkevmbridge, bound to a specific deployed contract.

type PolygonzkevmbridgeBridgeEvent

type PolygonzkevmbridgeBridgeEvent 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
}

PolygonzkevmbridgeBridgeEvent represents a BridgeEvent event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeBridgeEventIterator

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

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

func (*PolygonzkevmbridgeBridgeEventIterator) Close

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

func (*PolygonzkevmbridgeBridgeEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeBridgeEventIterator) 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 PolygonzkevmbridgeCaller

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

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

func NewPolygonzkevmbridgeCaller

func NewPolygonzkevmbridgeCaller(address common.Address, caller bind.ContractCaller) (*PolygonzkevmbridgeCaller, error)

NewPolygonzkevmbridgeCaller creates a new read-only instance of Polygonzkevmbridge, bound to a specific deployed contract.

func (*PolygonzkevmbridgeCaller) ClaimedBitMap

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) DepositCount

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) GetDepositRoot

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) GetLeafValue

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) GetTokenWrappedAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) GlobalExitRootManager

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) IsClaimed

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) IsEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) LEAFTYPEASSET

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) LEAFTYPEMESSAGE

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) MAINNETNETWORKID

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) NetworkID

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) PolygonZkEVMaddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) PolygonZkEVMaddress(opts *bind.CallOpts) (common.Address, error)

PolygonZkEVMaddress is a free data retrieval call binding the contract method 0x34ac9cf2.

Solidity: function polygonZkEVMaddress() view returns(address)

func (*PolygonzkevmbridgeCaller) PrecalculatedWrapperAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) TokenInfoToWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) VerifyMerkleProof

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 (*PolygonzkevmbridgeCaller) WrappedTokenToTokenInfo

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) 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 PolygonzkevmbridgeCallerRaw

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

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

func (*PolygonzkevmbridgeCallerRaw) Call

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerRaw) 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 PolygonzkevmbridgeCallerSession

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

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

func (*PolygonzkevmbridgeCallerSession) ClaimedBitMap

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) DepositCount

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) DepositCount() (*big.Int, error)

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

Solidity: function depositCount() view returns(uint256)

func (*PolygonzkevmbridgeCallerSession) GetDepositRoot

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) GetDepositRoot() ([32]byte, error)

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

Solidity: function getDepositRoot() view returns(bytes32)

func (*PolygonzkevmbridgeCallerSession) GetLeafValue

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) GetTokenWrappedAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) GlobalExitRootManager

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) GlobalExitRootManager() (common.Address, error)

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

Solidity: function globalExitRootManager() view returns(address)

func (*PolygonzkevmbridgeCallerSession) IsClaimed

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) IsEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) IsEmergencyState() (bool, error)

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

Solidity: function isEmergencyState() view returns(bool)

func (*PolygonzkevmbridgeCallerSession) LEAFTYPEASSET

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) LEAFTYPEASSET() (uint8, error)

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

Solidity: function LEAF_TYPE_ASSET() view returns(uint8)

func (*PolygonzkevmbridgeCallerSession) LEAFTYPEMESSAGE

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) LEAFTYPEMESSAGE() (uint8, error)

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

Solidity: function LEAF_TYPE_MESSAGE() view returns(uint8)

func (*PolygonzkevmbridgeCallerSession) MAINNETNETWORKID

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) MAINNETNETWORKID() (uint32, error)

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

Solidity: function MAINNET_NETWORK_ID() view returns(uint32)

func (*PolygonzkevmbridgeCallerSession) NetworkID

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) NetworkID() (uint32, error)

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

Solidity: function networkID() view returns(uint32)

func (*PolygonzkevmbridgeCallerSession) PolygonZkEVMaddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) PolygonZkEVMaddress() (common.Address, error)

PolygonZkEVMaddress is a free data retrieval call binding the contract method 0x34ac9cf2.

Solidity: function polygonZkEVMaddress() view returns(address)

func (*PolygonzkevmbridgeCallerSession) PrecalculatedWrapperAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) TokenInfoToWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) VerifyMerkleProof

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 (*PolygonzkevmbridgeCallerSession) WrappedTokenToTokenInfo

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) 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 PolygonzkevmbridgeClaimEvent

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

PolygonzkevmbridgeClaimEvent represents a ClaimEvent event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeClaimEventIterator

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

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

func (*PolygonzkevmbridgeClaimEventIterator) Close

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

func (*PolygonzkevmbridgeClaimEventIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeClaimEventIterator) 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 PolygonzkevmbridgeEmergencyStateActivated

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

PolygonzkevmbridgeEmergencyStateActivated represents a EmergencyStateActivated event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeEmergencyStateActivatedIterator

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

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

func (*PolygonzkevmbridgeEmergencyStateActivatedIterator) Close

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

func (*PolygonzkevmbridgeEmergencyStateActivatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeEmergencyStateActivatedIterator) 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 PolygonzkevmbridgeEmergencyStateDeactivated

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

PolygonzkevmbridgeEmergencyStateDeactivated represents a EmergencyStateDeactivated event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeEmergencyStateDeactivatedIterator

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

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

func (*PolygonzkevmbridgeEmergencyStateDeactivatedIterator) Close

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

func (*PolygonzkevmbridgeEmergencyStateDeactivatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeEmergencyStateDeactivatedIterator) 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 PolygonzkevmbridgeFilterer

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

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

func NewPolygonzkevmbridgeFilterer

func NewPolygonzkevmbridgeFilterer(address common.Address, filterer bind.ContractFilterer) (*PolygonzkevmbridgeFilterer, error)

NewPolygonzkevmbridgeFilterer creates a new log filterer instance of Polygonzkevmbridge, bound to a specific deployed contract.

func (*PolygonzkevmbridgeFilterer) FilterBridgeEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterBridgeEvent(opts *bind.FilterOpts) (*PolygonzkevmbridgeBridgeEventIterator, 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 (*PolygonzkevmbridgeFilterer) FilterClaimEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterClaimEvent(opts *bind.FilterOpts) (*PolygonzkevmbridgeClaimEventIterator, 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 (*PolygonzkevmbridgeFilterer) FilterEmergencyStateActivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterEmergencyStateActivated(opts *bind.FilterOpts) (*PolygonzkevmbridgeEmergencyStateActivatedIterator, error)

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

Solidity: event EmergencyStateActivated()

func (*PolygonzkevmbridgeFilterer) FilterEmergencyStateDeactivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterEmergencyStateDeactivated(opts *bind.FilterOpts) (*PolygonzkevmbridgeEmergencyStateDeactivatedIterator, error)

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

Solidity: event EmergencyStateDeactivated()

func (*PolygonzkevmbridgeFilterer) FilterInitialized

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterInitialized(opts *bind.FilterOpts) (*PolygonzkevmbridgeInitializedIterator, error)

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

Solidity: event Initialized(uint8 version)

func (*PolygonzkevmbridgeFilterer) FilterNewWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) FilterNewWrappedToken(opts *bind.FilterOpts) (*PolygonzkevmbridgeNewWrappedTokenIterator, error)

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

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

func (*PolygonzkevmbridgeFilterer) ParseBridgeEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseBridgeEvent(log types.Log) (*PolygonzkevmbridgeBridgeEvent, 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 (*PolygonzkevmbridgeFilterer) ParseClaimEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseClaimEvent(log types.Log) (*PolygonzkevmbridgeClaimEvent, 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 (*PolygonzkevmbridgeFilterer) ParseEmergencyStateActivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseEmergencyStateActivated(log types.Log) (*PolygonzkevmbridgeEmergencyStateActivated, error)

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

Solidity: event EmergencyStateActivated()

func (*PolygonzkevmbridgeFilterer) ParseEmergencyStateDeactivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseEmergencyStateDeactivated(log types.Log) (*PolygonzkevmbridgeEmergencyStateDeactivated, error)

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

Solidity: event EmergencyStateDeactivated()

func (*PolygonzkevmbridgeFilterer) ParseInitialized

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseInitialized(log types.Log) (*PolygonzkevmbridgeInitialized, error)

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

Solidity: event Initialized(uint8 version)

func (*PolygonzkevmbridgeFilterer) ParseNewWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) ParseNewWrappedToken(log types.Log) (*PolygonzkevmbridgeNewWrappedToken, error)

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

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

func (*PolygonzkevmbridgeFilterer) WatchBridgeEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchBridgeEvent(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeBridgeEvent) (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 (*PolygonzkevmbridgeFilterer) WatchClaimEvent

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchClaimEvent(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeClaimEvent) (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 (*PolygonzkevmbridgeFilterer) WatchEmergencyStateActivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchEmergencyStateActivated(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeEmergencyStateActivated) (event.Subscription, error)

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

Solidity: event EmergencyStateActivated()

func (*PolygonzkevmbridgeFilterer) WatchEmergencyStateDeactivated

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchEmergencyStateDeactivated(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeEmergencyStateDeactivated) (event.Subscription, error)

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

Solidity: event EmergencyStateDeactivated()

func (*PolygonzkevmbridgeFilterer) WatchInitialized

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeInitialized) (event.Subscription, error)

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

Solidity: event Initialized(uint8 version)

func (*PolygonzkevmbridgeFilterer) WatchNewWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeFilterer) WatchNewWrappedToken(opts *bind.WatchOpts, sink chan<- *PolygonzkevmbridgeNewWrappedToken) (event.Subscription, error)

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

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

type PolygonzkevmbridgeInitialized

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

PolygonzkevmbridgeInitialized represents a Initialized event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeInitializedIterator

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

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

func (*PolygonzkevmbridgeInitializedIterator) Close

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

func (*PolygonzkevmbridgeInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeInitializedIterator) 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 PolygonzkevmbridgeNewWrappedToken

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

PolygonzkevmbridgeNewWrappedToken represents a NewWrappedToken event raised by the Polygonzkevmbridge contract.

type PolygonzkevmbridgeNewWrappedTokenIterator

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

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

func (*PolygonzkevmbridgeNewWrappedTokenIterator) Close

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

func (*PolygonzkevmbridgeNewWrappedTokenIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PolygonzkevmbridgeNewWrappedTokenIterator) 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 PolygonzkevmbridgeRaw

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

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

func (*PolygonzkevmbridgeRaw) Call

func (_Polygonzkevmbridge *PolygonzkevmbridgeRaw) 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 (*PolygonzkevmbridgeRaw) Transact

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

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

func (*PolygonzkevmbridgeRaw) Transfer

func (_Polygonzkevmbridge *PolygonzkevmbridgeRaw) 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 PolygonzkevmbridgeSession

type PolygonzkevmbridgeSession struct {
	Contract     *Polygonzkevmbridge // 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
}

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

func (*PolygonzkevmbridgeSession) ActivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) ActivateEmergencyState() (*types.Transaction, error)

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

Solidity: function activateEmergencyState() returns()

func (*PolygonzkevmbridgeSession) BridgeAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) ClaimMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) ClaimedBitMap

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) DeactivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) DeactivateEmergencyState() (*types.Transaction, error)

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

Solidity: function deactivateEmergencyState() returns()

func (*PolygonzkevmbridgeSession) DepositCount

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) DepositCount() (*big.Int, error)

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

Solidity: function depositCount() view returns(uint256)

func (*PolygonzkevmbridgeSession) GetDepositRoot

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) GetDepositRoot() ([32]byte, error)

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

Solidity: function getDepositRoot() view returns(bytes32)

func (*PolygonzkevmbridgeSession) GetLeafValue

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) GetTokenWrappedAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) GlobalExitRootManager

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) GlobalExitRootManager() (common.Address, error)

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

Solidity: function globalExitRootManager() view returns(address)

func (*PolygonzkevmbridgeSession) Initialize

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) Initialize(_networkID uint32, _globalExitRootManager common.Address, _polygonZkEVMaddress common.Address) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeSession) IsClaimed

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) IsEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) IsEmergencyState() (bool, error)

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

Solidity: function isEmergencyState() view returns(bool)

func (*PolygonzkevmbridgeSession) LEAFTYPEASSET

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) LEAFTYPEASSET() (uint8, error)

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

Solidity: function LEAF_TYPE_ASSET() view returns(uint8)

func (*PolygonzkevmbridgeSession) LEAFTYPEMESSAGE

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) LEAFTYPEMESSAGE() (uint8, error)

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

Solidity: function LEAF_TYPE_MESSAGE() view returns(uint8)

func (*PolygonzkevmbridgeSession) MAINNETNETWORKID

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) MAINNETNETWORKID() (uint32, error)

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

Solidity: function MAINNET_NETWORK_ID() view returns(uint32)

func (*PolygonzkevmbridgeSession) NetworkID

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) NetworkID() (uint32, error)

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

Solidity: function networkID() view returns(uint32)

func (*PolygonzkevmbridgeSession) PolygonZkEVMaddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) PolygonZkEVMaddress() (common.Address, error)

PolygonZkEVMaddress is a free data retrieval call binding the contract method 0x34ac9cf2.

Solidity: function polygonZkEVMaddress() view returns(address)

func (*PolygonzkevmbridgeSession) PrecalculatedWrapperAddress

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) TokenInfoToWrappedToken

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) VerifyMerkleProof

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 (*PolygonzkevmbridgeSession) WrappedTokenToTokenInfo

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) 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 PolygonzkevmbridgeTransactor

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

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

func NewPolygonzkevmbridgeTransactor

func NewPolygonzkevmbridgeTransactor(address common.Address, transactor bind.ContractTransactor) (*PolygonzkevmbridgeTransactor, error)

NewPolygonzkevmbridgeTransactor creates a new write-only instance of Polygonzkevmbridge, bound to a specific deployed contract.

func (*PolygonzkevmbridgeTransactor) ActivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) ActivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function activateEmergencyState() returns()

func (*PolygonzkevmbridgeTransactor) BridgeAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) 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 (*PolygonzkevmbridgeTransactor) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) 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 (*PolygonzkevmbridgeTransactor) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) 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 (*PolygonzkevmbridgeTransactor) ClaimMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) 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 (*PolygonzkevmbridgeTransactor) DeactivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) DeactivateEmergencyState(opts *bind.TransactOpts) (*types.Transaction, error)

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

Solidity: function deactivateEmergencyState() returns()

func (*PolygonzkevmbridgeTransactor) Initialize

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) Initialize(opts *bind.TransactOpts, _networkID uint32, _globalExitRootManager common.Address, _polygonZkEVMaddress common.Address) (*types.Transaction, error)

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

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

type PolygonzkevmbridgeTransactorRaw

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

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

func (*PolygonzkevmbridgeTransactorRaw) Transact

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

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

func (*PolygonzkevmbridgeTransactorRaw) Transfer

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorRaw) 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 PolygonzkevmbridgeTransactorSession

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

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

func (*PolygonzkevmbridgeTransactorSession) ActivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) ActivateEmergencyState() (*types.Transaction, error)

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

Solidity: function activateEmergencyState() returns()

func (*PolygonzkevmbridgeTransactorSession) BridgeAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) 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 (*PolygonzkevmbridgeTransactorSession) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) 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 (*PolygonzkevmbridgeTransactorSession) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) 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 (*PolygonzkevmbridgeTransactorSession) ClaimMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) 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 (*PolygonzkevmbridgeTransactorSession) DeactivateEmergencyState

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) DeactivateEmergencyState() (*types.Transaction, error)

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

Solidity: function deactivateEmergencyState() returns()

func (*PolygonzkevmbridgeTransactorSession) Initialize

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) Initialize(_networkID uint32, _globalExitRootManager common.Address, _polygonZkEVMaddress common.Address) (*types.Transaction, error)

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

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

Jump to

Keyboard shortcuts

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