polygonzkevmbridge

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: AGPL-3.0, AGPL-3.0-or-later Imports: 9 Imported by: 1

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: "[{\"inputs\":[],\"name\":\"AlreadyClaimed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"AmountDoesNotMatchMsgValue\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"DestinationNetworkInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"EtherTransferFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GasTokenNetworkMustBeZeroOnEther\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"GlobalExitRootInvalid\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidSmtProof\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MerkleTreeFull\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MessageFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"MsgValueNotZero\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NativeTokenIsEther\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NoValueInMessagesOnGasTokenNetworks\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidAmount\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidOwner\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSignature\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotValidSpender\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyEmergencyState\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyNotEmergencyState\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"OnlyRollupManager\",\"type\":\"error\"},{\"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\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"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\"},{\"indexed\":false,\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"NewWrappedToken\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"WETHToken\",\"outputs\":[{\"internalType\":\"contractTokenWrapped\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"activateEmergencyState\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"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\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"bridgeMessage\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"destinationNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"destinationAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amountWETH\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"forceUpdateGlobalExitRoot\",\"type\":\"bool\"},{\"internalType\":\"bytes\",\"name\":\"metadata\",\"type\":\"bytes\"}],\"name\":\"bridgeMessageWETH\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"}],\"name\":\"calculateRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"originNetwork\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"originTokenAddress\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"calculateTokenWrapperAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"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[32]\",\"name\":\"smtProofLocalExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProofRollupExitRoot\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint256\",\"name\":\"globalIndex\",\"type\":\"uint256\"},{\"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\":\"gasTokenAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gasTokenMetadata\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"gasTokenNetwork\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"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\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"getTokenMetadata\",\"outputs\":[{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"stateMutability\":\"view\",\"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\":\"contractIBasePolygonZkEVMGlobalExitRoot\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"_networkID\",\"type\":\"uint32\"},{\"internalType\":\"address\",\"name\":\"_gasTokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint32\",\"name\":\"_gasTokenNetwork\",\"type\":\"uint32\"},{\"internalType\":\"contractIBasePolygonZkEVMGlobalExitRoot\",\"name\":\"_globalExitRootManager\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"_polygonRollupManager\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_gasTokenMetadata\",\"type\":\"bytes\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint32\",\"name\":\"leafIndex\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"sourceBridgeNetwork\",\"type\":\"uint32\"}],\"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\":\"lastUpdatedDepositCount\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"networkID\",\"outputs\":[{\"internalType\":\"uint32\",\"name\":\"\",\"type\":\"uint32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"polygonRollupManager\",\"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\":[],\"name\":\"updateGlobalExitRoot\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"leafHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[32]\",\"name\":\"smtProof\",\"type\":\"bytes32[32]\"},{\"internalType\":\"uint32\",\"name\":\"index\",\"type\":\"uint32\"},{\"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: "0x608060405234801561001057600080fd5b506139be806100206000396000f3fe608060405260043610620001e75760003560e01c806383f24403116200010b578063ccaa2d1111620000a1578063ee25560b116200006c578063ee25560b1462000607578063f5efcd791462000638578063f811bff7146200065d578063fb570834146200068257600080fd5b8063ccaa2d111462000588578063cd58657914620005ad578063d02103ca14620005c4578063dbc1697614620005ef57600080fd5b8063b8b284d011620000e2578063b8b284d014620004c4578063bab161bf14620004e9578063be5831c7146200050d578063cc461632146200053357600080fd5b806383f2440314620004585780638ed7e3f2146200047d578063aaa13cc2146200049f57600080fd5b80633c351e1011620001815780634b2f336d11620001585780634b2f336d14620003cc5780635ca1e16514620003ee57806379e2cf97146200040657806381b1c174146200041e57600080fd5b80633c351e1014620003495780633cbc795b146200036b5780633e19704314620003a757600080fd5b8063240ff37811620001c2578063240ff378146200027557806327aef4e8146200028c5780632dfdf0b514620002b3578063318aee3d14620002da57600080fd5b806315064c9614620001ec5780632072f6c5146200021d57806322e95f2c1462000237575b600080fd5b348015620001f957600080fd5b50606854620002089060ff1681565b60405190151581526020015b60405180910390f35b3480156200022a57600080fd5b5062000235620006a7565b005b3480156200024457600080fd5b506200025c6200025636600462001a3c565b620006df565b6040516001600160a01b03909116815260200162000214565b620002356200028636600462001ad5565b62000732565b3480156200029957600080fd5b50620002a462000782565b60405162000214919062001bab565b348015620002c057600080fd5b50620002cb60535481565b60405190815260200162000214565b348015620002e757600080fd5b5062000324620002f936600462001bc7565b606b6020526000908152604090205463ffffffff81169064010000000090046001600160a01b031682565b6040805163ffffffff90931683526001600160a01b0390911660208301520162000214565b3480156200035657600080fd5b50606d546200025c906001600160a01b031681565b3480156200037857600080fd5b50606d546200039190600160a01b900463ffffffff1681565b60405163ffffffff909116815260200162000214565b348015620003b457600080fd5b50620002cb620003c636600462001bf7565b62000818565b348015620003d957600080fd5b50606f546200025c906001600160a01b031681565b348015620003fb57600080fd5b50620002cb620008a5565b3480156200041357600080fd5b50620002356200098b565b3480156200042b57600080fd5b506200025c6200043d36600462001c81565b606a602052600090815260409020546001600160a01b031681565b3480156200046557600080fd5b50620002cb6200047736600462001cae565b620009af565b3480156200048a57600080fd5b50606c546200025c906001600160a01b031681565b348015620004ac57600080fd5b506200025c620004be36600462001cf2565b62000a93565b348015620004d157600080fd5b5062000235620004e336600462001da6565b62000baa565b348015620004f657600080fd5b506068546200039190610100900463ffffffff1681565b3480156200051a57600080fd5b506068546200039190600160c81b900463ffffffff1681565b3480156200054057600080fd5b50620002086200055236600462001e31565b50506000805260696020527f5843af22e99e7c98370145a5056245c244ce8ee852f4ef5e6d6a8e410a18cf415460019081161490565b3480156200059557600080fd5b5062000235620005a736600462001e69565b62000c52565b62000235620005be36600462001f65565b62000ded565b348015620005d157600080fd5b506068546200025c906501000000000090046001600160a01b031681565b348015620005fc57600080fd5b506200023562000f94565b3480156200061457600080fd5b50620002cb6200062636600462001c81565b60696020526000908152604090205481565b3480156200064557600080fd5b50620002356200065736600462001e69565b62000fca565b3480156200066a57600080fd5b50620002356200067c3660046200207a565b62001046565b3480156200068f57600080fd5b5062000208620006a136600462002164565b620012d2565b606c546001600160a01b03163314620006d357604051631736745960e31b815260040160405180910390fd5b620006dd620012ec565b565b6000606a60008484604051602001620006fa929190620021b1565b60408051601f19818403018152918152815160209283012083529082019290925201600020546001600160a01b031690505b92915050565b34158015906200074c5750606f546001600160a01b031615155b156200076b576040516301bd897160e61b815260040160405180910390fd5b6200077b85853486868662001349565b5050505050565b606e80546200079190620021db565b80601f0160208091040260200160405190810160405280929190818152602001828054620007bf90620021db565b8015620008105780601f10620007e45761010080835404028352916020019162000810565b820191906000526020600020905b815481529060010190602001808311620007f257829003601f168201915b505050505081565b6040516001600160f81b031960f889901b1660208201526001600160e01b031960e088811b821660218401526001600160601b0319606089811b821660258601529188901b909216603984015285901b16603d8201526051810183905260718101829052600090609101604051602081830303815290604052805190602001209050979650505050505050565b605354600090819081805b602081101562000982578083901c600116600103620009135760338160208110620008df57620008df62002217565b0154604080516020810192909252810185905260600160405160208183030381529060405280519060200120935062000940565b60408051602081018690529081018390526060016040516020818303038152906040528051906020012093505b6040805160208101849052908101839052606001604051602081830303815290604052805190602001209150808062000979906200222d565b915050620008b0565b50919392505050565b605354606854600160c81b900463ffffffff161015620006dd57620006dd620013e5565b600083815b602081101562000a8a57600163ffffffff8516821c8116900362000a2657848160208110620009e757620009e762002217565b60200201358260405160200162000a08929190918252602082015260400190565b60405160208183030381529060405280519060200120915062000a75565b8185826020811062000a3c5762000a3c62002217565b602002013560405160200162000a5c929190918252602082015260400190565b6040516020818303038152906040528051906020012091505b8062000a81816200222d565b915050620009b4565b50949350505050565b600080888860405160200162000aab929190620021b1565b604051602081830303815290604052805190602001209050600060ff60f81b30836040518060200162000ade9062001a00565b601f1982820381018352601f90910116604081905262000b0b908d908d908d908d908d906020016200227e565b60408051601f198184030181529082905262000b2b9291602001620022bf565b6040516020818303038152906040528051906020012060405160200162000b8494939291906001600160f81b031994909416845260609290921b6001600160601b03191660018401526015830152603582015260550190565b60408051808303601f1901815291905280516020909101209a9950505050505050505050565b606f546001600160a01b031662000bd45760405163dde3cda760e01b815260040160405180910390fd5b606f54604051632770a7eb60e21b8152336004820152602481018690526001600160a01b0390911690639dc29fac90604401600060405180830381600087803b15801562000c2157600080fd5b505af115801562000c36573d6000803e3d6000fd5b5050505062000c4a86868686868662001349565b505050505050565b60685460ff161562000c7757604051630bc011ff60e21b815260040160405180910390fd5b62000cb18c8c8c8c8c62000cab60008e8e8e8e8e8e8e60405162000c9d929190620022f2565b604051809103902062000818565b62001485565b6001600160a01b03861662000d4057606f546001600160a01b03161562000d8357606f546040516340c10f1960e01b81526001600160a01b03868116600483015260248201869052909116906340c10f1990604401600060405180830381600087803b15801562000d2157600080fd5b505af115801562000d36573d6000803e3d6000fd5b5050505062000d83565b7f490e59a1701b938786ac72570a1efeac994a3dbe96e2e883e19e902ace6e6a3987876000858560405162000d7a95949392919062002302565b60405180910390a15b604080518b815263ffffffff891660208201526001600160a01b0388811682840152861660608201526080810185905290517f1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d9181900360a00190a1505050505050505050505050565b60685460ff161562000e1257604051630bc011ff60e21b815260040160405180910390fd5b62000e1c62001492565b60685463ffffffff61010090910481169088160362000e4e576040516302caf51760e11b815260040160405180910390fd5b6000806060876001600160a01b03881662000ea85788341462000e845760405163b89240f560e01b815260040160405180910390fd5b606d546001600160a01b0381169450600160a01b900463ffffffff16925062000f22565b341562000ec85760405163798ee6f160e01b815260040160405180910390fd5b606854889450610100900463ffffffff16925062000ee684620014ed565b62000ef189620015bc565b62000efc8a6200167a565b60405160200162000f109392919062002348565b60405160208183030381529060405291505b7f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b600084868e8e868860535460405162000f6498979695949392919062002385565b60405180910390a1861562000f7d5762000f7d620013e5565b5050505062000f8b60018055565b50505050505050565b606c546001600160a01b0316331462000fc057604051631736745960e31b815260040160405180910390fd5b620006dd62001741565b60685460ff161562000fef57604051630bc011ff60e21b815260040160405180910390fd5b60685463ffffffff868116610100909204161462001020576040516302caf51760e11b815260040160405180910390fd5b62000d838c8c8c8c8c62000cab60018e8e8e8e8e8e8e60405162000c9d929190620022f2565b600054610100900460ff1615808015620010675750600054600160ff909116105b80620010835750303b15801562001083575060005460ff166001145b620010ec5760405162461bcd60e51b815260206004820152602e60248201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160448201526d191e481a5b9a5d1a585b1a5e995960921b60648201526084015b60405180910390fd5b6000805460ff19166001179055801562001110576000805461ff0019166101001790555b60688054610100600160c81b03191661010063ffffffff8a160265010000000000600160c81b03191617650100000000006001600160a01b038781169190910291909117909155606c80546001600160a01b03191685831617905586166200119e5763ffffffff8516156200119857604051630d43a60960e11b815260040160405180910390fd5b62001279565b606d805463ffffffff8716600160a01b026001600160c01b03199091166001600160a01b03891617179055606e620011d7838262002441565b506000801b6012604051620011ec9062001a00565b6060808252600d908201526c2bb930b83832b21022ba3432b960991b608082015260a060208201819052600490820152630ae8aa8960e31b60c082015260ff909116604082015260e0018190604051809103906000f590508015801562001257573d6000803e3d6000fd5b50606f80546001600160a01b0319166001600160a01b03929092169190911790555b620012836200179a565b801562000f8b576000805461ff0019169055604051600181527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a150505050505050565b600081620012e2868686620009af565b1495945050505050565b60685460ff16156200131157604051630bc011ff60e21b815260040160405180910390fd5b6068805460ff191660011790556040517f2261efe5aef6fedc1fd1550b25facc9181745623049c7901287030b9ad1a549790600090a1565b60685463ffffffff6101009091048116908716036200137b576040516302caf51760e11b815260040160405180910390fd5b7f501781209a1f8899323b96b4ef08b168df93e0a90c673d1e4cce39366cb62f9b6001606860019054906101000a900463ffffffff16338989898888605354604051620013d1999897969594939291906200250e565b60405180910390a1821562000c4a5762000c4a5b6053546068805463ffffffff909216600160c81b0263ffffffff60c81b1990921691909117908190556001600160a01b0365010000000000909104166333d6247d62001430620008a5565b6040518263ffffffff1660e01b81526004016200144f91815260200190565b600060405180830381600087803b1580156200146a57600080fd5b505af11580156200147f573d6000803e3d6000fd5b50505050565b62000c4a600080620017ce565b600260015403620014e65760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401620010e3565b6002600155565b60408051600481526024810182526020810180516001600160e01b03166306fdde0360e01b179052905160609160009182916001600160a01b038616916200153691906200257d565b600060405180830381855afa9150503d806000811462001573576040519150601f19603f3d011682016040523d82523d6000602084013e62001578565b606091505b509150915081620015a957604051806040016040528060078152602001664e4f5f4e414d4560c81b815250620015b4565b620015b4816200182c565b949350505050565b60408051600481526024810182526020810180516001600160e01b03166395d89b4160e01b179052905160609160009182916001600160a01b038616916200160591906200257d565b600060405180830381855afa9150503d806000811462001642576040519150601f19603f3d011682016040523d82523d6000602084013e62001647565b606091505b509150915081620015a957604051806040016040528060098152602001681393d7d4d6535093d360ba1b815250620015b4565b60408051600481526024810182526020810180516001600160e01b031663313ce56760e01b1790529051600091829182916001600160a01b03861691620016c291906200257d565b600060405180830381855afa9150503d8060008114620016ff576040519150601f19603f3d011682016040523d82523d6000602084013e62001704565b606091505b509150915081801562001718575080516020145b62001725576012620015b4565b80806020019051810190620015b491906200259b565b60018055565b60685460ff166200176557604051635386698160e01b815260040160405180910390fd5b6068805460ff191690556040517f1e5e34eea33501aecf2ebec9fe0e884a40804275ea7fe10b2ba084c8374308b390600090a1565b600054610100900460ff16620017c45760405162461bcd60e51b8152600401620010e390620025bb565b620006dd620019d6565b600080805260696020527f5843af22e99e7c98370145a5056245c244ce8ee852f4ef5e6d6a8e410a18cf4180546001908118918290558291829190808216830362000f8b57604051630c8d9eab60e31b815260040160405180910390fd5b606060408251106200184e57818060200190518101906200072c919062002606565b8151602003620019a35760005b6020811080156200188e57508281815181106200187c576200187c62002217565b01602001516001600160f81b03191615155b15620018a95780620018a0816200222d565b9150506200185b565b80600003620018e25750506040805180820190915260128152714e4f545f56414c49445f454e434f44494e4760701b6020820152919050565b60008167ffffffffffffffff81111562001900576200190062002005565b6040519080825280601f01601f1916602001820160405280156200192b576020820181803683370190505b50905060005b828110156200199b578481815181106200194f576200194f62002217565b602001015160f81c60f81b8282815181106200196f576200196f62002217565b60200101906001600160f81b031916908160001a9053508062001992816200222d565b91505062001931565b509392505050565b50506040805180820190915260128152714e4f545f56414c49445f454e434f44494e4760701b602082015290565b919050565b600054610100900460ff166200173b5760405162461bcd60e51b8152600401620010e390620025bb565b611302806200268783390190565b803563ffffffff81168114620019d157600080fd5b6001600160a01b038116811462001a3957600080fd5b50565b6000806040838503121562001a5057600080fd5b62001a5b8362001a0e565b9150602083013562001a6d8162001a23565b809150509250929050565b80358015158114620019d157600080fd5b60008083601f84011262001a9c57600080fd5b50813567ffffffffffffffff81111562001ab557600080fd5b60208301915083602082850101111562001ace57600080fd5b9250929050565b60008060008060006080868803121562001aee57600080fd5b62001af98662001a0e565b9450602086013562001b0b8162001a23565b935062001b1b6040870162001a78565b9250606086013567ffffffffffffffff81111562001b3857600080fd5b62001b468882890162001a89565b969995985093965092949392505050565b60005b8381101562001b7457818101518382015260200162001b5a565b50506000910152565b6000815180845262001b9781602086016020860162001b57565b601f01601f19169290920160200192915050565b60208152600062001bc0602083018462001b7d565b9392505050565b60006020828403121562001bda57600080fd5b813562001bc08162001a23565b60ff8116811462001a3957600080fd5b600080600080600080600060e0888a03121562001c1357600080fd5b873562001c208162001be7565b965062001c306020890162001a0e565b9550604088013562001c428162001a23565b945062001c526060890162001a0e565b9350608088013562001c648162001a23565b9699959850939692959460a0840135945060c09093013592915050565b60006020828403121562001c9457600080fd5b5035919050565b8061040081018310156200072c57600080fd5b6000806000610440848603121562001cc557600080fd5b8335925062001cd8856020860162001c9b565b915062001ce9610420850162001a0e565b90509250925092565b600080600080600080600060a0888a03121562001d0e57600080fd5b62001d198862001a0e565b9650602088013562001d2b8162001a23565b9550604088013567ffffffffffffffff8082111562001d4957600080fd5b62001d578b838c0162001a89565b909750955060608a013591508082111562001d7157600080fd5b5062001d808a828b0162001a89565b909450925050608088013562001d968162001be7565b8091505092959891949750929550565b60008060008060008060a0878903121562001dc057600080fd5b62001dcb8762001a0e565b9550602087013562001ddd8162001a23565b94506040870135935062001df46060880162001a78565b9250608087013567ffffffffffffffff81111562001e1157600080fd5b62001e1f89828a0162001a89565b979a9699509497509295939492505050565b6000806040838503121562001e4557600080fd5b62001e508362001a0e565b915062001e606020840162001a0e565b90509250929050565b6000806000806000806000806000806000806109208d8f03121562001e8d57600080fd5b62001e998e8e62001c9b565b9b5062001eab8e6104008f0162001c9b565b9a506108008d013599506108208d013598506108408d0135975062001ed46108608e0162001a0e565b965062001ee66108808e013562001a23565b6108808d0135955062001efd6108a08e0162001a0e565b945062001f0f6108c08e013562001a23565b6108c08d013593506108e08d0135925067ffffffffffffffff6109008e0135111562001f3a57600080fd5b62001f4d8e6109008f01358f0162001a89565b81935080925050509295989b509295989b509295989b565b600080600080600080600060c0888a03121562001f8157600080fd5b62001f8c8862001a0e565b9650602088013562001f9e8162001a23565b955060408801359450606088013562001fb78162001a23565b935062001fc76080890162001a78565b925060a088013567ffffffffffffffff81111562001fe457600080fd5b62001ff28a828b0162001a89565b989b979a50959850939692959293505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171562002047576200204762002005565b604052919050565b600067ffffffffffffffff8211156200206c576200206c62002005565b50601f01601f191660200190565b60008060008060008060c087890312156200209457600080fd5b6200209f8762001a0e565b95506020870135620020b18162001a23565b9450620020c16040880162001a0e565b93506060870135620020d38162001a23565b92506080870135620020e58162001a23565b915060a087013567ffffffffffffffff8111156200210257600080fd5b8701601f810189136200211457600080fd5b80356200212b62002125826200204f565b6200201b565b8181528a60208385010111156200214157600080fd5b816020840160208301376000602083830101528093505050509295509295509295565b60008060008061046085870312156200217c57600080fd5b843593506200218f866020870162001c9b565b9250620021a0610420860162001a0e565b939692955092936104400135925050565b60e09290921b6001600160e01b031916825260601b6001600160601b031916600482015260180190565b600181811c90821680620021f057607f821691505b6020821081036200221157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052603260045260246000fd5b6000600182016200224e57634e487b7160e01b600052601160045260246000fd5b5060010190565b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6060815260006200229460608301878962002255565b8281036020840152620022a981868862002255565b91505060ff831660408301529695505050505050565b60008351620022d381846020880162001b57565b835190830190620022e981836020880162001b57565b01949350505050565b8183823760009101908152919050565b63ffffffff861681526001600160a01b038581166020830152841660408201526080606082018190526000906200233d908301848662002255565b979650505050505050565b6060815260006200235d606083018662001b7d565b828103602084015262002371818662001b7d565b91505060ff83166040830152949350505050565b60ff8916815263ffffffff88811660208301526001600160a01b03888116604084015287821660608401528616608083015260a0820185905261010060c08301819052600091620023d98483018762001b7d565b925080851660e085015250509998505050505050505050565b601f8211156200243c57600081815260208120601f850160051c810160208610156200241b5750805b601f850160051c820191505b8181101562000c4a5782815560010162002427565b505050565b815167ffffffffffffffff8111156200245e576200245e62002005565b62002476816200246f8454620021db565b84620023f2565b602080601f831160018114620024ae5760008415620024955750858301515b600019600386901b1c1916600185901b17855562000c4a565b600085815260208120601f198616915b82811015620024df57888601518255948401946001909101908401620024be565b5085821015620024fe5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60ff8a16815263ffffffff89811660208301526001600160a01b03898116604084015288821660608401528716608083015260a0820186905261010060c0830181905260009162002563848301878962002255565b925080851660e085015250509a9950505050505050505050565b600082516200259181846020870162001b57565b9190910192915050565b600060208284031215620025ae57600080fd5b815162001bc08162001be7565b6020808252602b908201527f496e697469616c697a61626c653a20636f6e7472616374206973206e6f74206960408201526a6e697469616c697a696e6760a81b606082015260800190565b6000602082840312156200261957600080fd5b815167ffffffffffffffff8111156200263157600080fd5b8201601f810184136200264357600080fd5b80516200265462002125826200204f565b8181528560208385010111156200266a57600080fd5b6200267d82602083016020860162001b57565b9594505050505056fe6101006040523480156200001257600080fd5b50604051620013023803806200130283398101604081905262000035916200028d565b82826003620000458382620003a1565b506004620000548282620003a1565b50503360c0525060ff811660e052466080819052620000739062000080565b60a052506200046d915050565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f620000ad6200012e565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b6060600380546200013f9062000312565b80601f01602080910402602001604051908101604052809291908181526020018280546200016d9062000312565b8015620001be5780601f106200019257610100808354040283529160200191620001be565b820191906000526020600020905b815481529060010190602001808311620001a057829003601f168201915b5050505050905090565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620001f057600080fd5b81516001600160401b03808211156200020d576200020d620001c8565b604051601f8301601f19908116603f01168101908282118183101715620002385762000238620001c8565b816040528381526020925086838588010111156200025557600080fd5b600091505b838210156200027957858201830151818301840152908201906200025a565b600093810190920192909252949350505050565b600080600060608486031215620002a357600080fd5b83516001600160401b0380821115620002bb57600080fd5b620002c987838801620001de565b94506020860151915080821115620002e057600080fd5b50620002ef86828701620001de565b925050604084015160ff811681146200030757600080fd5b809150509250925092565b600181811c908216806200032757607f821691505b6020821081036200034857634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200039c57600081815260208120601f850160051c81016020861015620003775750805b601f850160051c820191505b81811015620003985782815560010162000383565b5050505b505050565b81516001600160401b03811115620003bd57620003bd620001c8565b620003d581620003ce845462000312565b846200034e565b602080601f8311600181146200040d5760008415620003f45750858301515b600019600386901b1c1916600185901b17855562000398565b600085815260208120601f198616915b828110156200043e578886015182559484019460019091019084016200041d565b50858210156200045d5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60805160a05160c05160e051610e46620004bc60003960006101e1015260008181610291015281816104a801526105160152600061047b0152600081816102e301526104450152610e466000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c806370a08231116100ad578063a9059cbb11610071578063a9059cbb146102cb578063cd0d0096146102de578063d505accf14610305578063dd62ed3e14610318578063ffa1ad741461035157600080fd5b806370a08231146102285780637ecebe001461025157806395d89b41146102715780639dc29fac14610279578063a3c573eb1461028c57600080fd5b806323b872dd116100f457806323b872dd146101a057806330adf81f146101b3578063313ce567146101da5780633644e5151461020b57806340c10f191461021357600080fd5b806306fdde0314610126578063095ea7b31461014457806318160ddd1461016757806320606b7014610179575b600080fd5b61012e610371565b60405161013b9190610bac565b60405180910390f35b610157610152366004610c16565b610403565b604051901515815260200161013b565b6002545b60405190815260200161013b565b61016b7f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81565b6101576101ae366004610c40565b61041d565b61016b7f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c981565b60405160ff7f000000000000000000000000000000000000000000000000000000000000000016815260200161013b565b61016b610441565b610226610221366004610c16565b61049d565b005b61016b610236366004610c7c565b6001600160a01b031660009081526020819052604090205490565b61016b61025f366004610c7c565b60056020526000908152604090205481565b61012e6104fc565b610226610287366004610c16565b61050b565b6102b37f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200161013b565b6101576102d9366004610c16565b61055d565b61016b7f000000000000000000000000000000000000000000000000000000000000000081565b610226610313366004610c9e565b61056b565b61016b610326366004610d11565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205490565b61012e604051806040016040528060018152602001603160f81b81525081565b60606003805461038090610d44565b80601f01602080910402602001604051908101604052809291908181526020018280546103ac90610d44565b80156103f95780601f106103ce576101008083540402835291602001916103f9565b820191906000526020600020905b8154815290600101906020018083116103dc57829003601f168201915b5050505050905090565b6000336104118185856107a6565b60019150505b92915050565b60003361042b8582856107b8565b610436858585610836565b506001949350505050565b60007f000000000000000000000000000000000000000000000000000000000000000046146104785761047346610895565b905090565b507f000000000000000000000000000000000000000000000000000000000000000090565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146104ee5760405162461bcd60e51b81526004016104e590610d7e565b60405180910390fd5b6104f88282610941565b5050565b60606004805461038090610d44565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105535760405162461bcd60e51b81526004016104e590610d7e565b6104f88282610977565b600033610411818585610836565b834211156105c75760405162461bcd60e51b8152602060048201526024808201527f546f6b656e577261707065643a3a7065726d69743a20457870697265642070656044820152631c9b5a5d60e21b60648201526084016104e5565b6001600160a01b038716600090815260056020526040812080547f6e71edae12b1b97f4d1f60370fef10105fa2faae0126114a169c64845d6126c9918a918a918a91908661061483610de4565b909155506040805160208101969096526001600160a01b0394851690860152929091166060840152608083015260a082015260c0810186905260e0016040516020818303038152906040528051906020012090506000610672610441565b60405161190160f01b602082015260228101919091526042810183905260620160408051601f198184030181528282528051602091820120600080855291840180845281905260ff89169284019290925260608301879052608083018690529092509060019060a0016020604051602081039080840390855afa1580156106fd573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116158015906107335750896001600160a01b0316816001600160a01b0316145b61078f5760405162461bcd60e51b815260206004820152602760248201527f546f6b656e577261707065643a3a7065726d69743a20496e76616c6964207369604482015266676e617475726560c81b60648201526084016104e5565b61079a8a8a8a6107a6565b50505050505050505050565b6107b383838360016109ad565b505050565b6001600160a01b038381166000908152600160209081526040808320938616835292905220546000198114610830578181101561082157604051637dc7a0d960e11b81526001600160a01b038416600482015260248101829052604481018390526064016104e5565b610830848484840360006109ad565b50505050565b6001600160a01b03831661086057604051634b637e8f60e11b8152600060048201526024016104e5565b6001600160a01b03821661088a5760405163ec442f0560e01b8152600060048201526024016104e5565b6107b3838383610a82565b60007f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6108c0610371565b805160209182012060408051808201825260018152603160f81b90840152805192830193909352918101919091527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66060820152608081018390523060a082015260c001604051602081830303815290604052805190602001209050919050565b6001600160a01b03821661096b5760405163ec442f0560e01b8152600060048201526024016104e5565b6104f860008383610a82565b6001600160a01b0382166109a157604051634b637e8f60e11b8152600060048201526024016104e5565b6104f882600083610a82565b6001600160a01b0384166109d75760405163e602df0560e01b8152600060048201526024016104e5565b6001600160a01b038316610a0157604051634a1406b160e11b8152600060048201526024016104e5565b6001600160a01b038085166000908152600160209081526040808320938716835292905220829055801561083057826001600160a01b0316846001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92584604051610a7491815260200190565b60405180910390a350505050565b6001600160a01b038316610aad578060026000828254610aa29190610dfd565b90915550610b1f9050565b6001600160a01b03831660009081526020819052604090205481811015610b005760405163391434e360e21b81526001600160a01b038516600482015260248101829052604481018390526064016104e5565b6001600160a01b03841660009081526020819052604090209082900390555b6001600160a01b038216610b3b57600280548290039055610b5a565b6001600160a01b03821660009081526020819052604090208054820190555b816001600160a01b0316836001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef83604051610b9f91815260200190565b60405180910390a3505050565b600060208083528351808285015260005b81811015610bd957858101830151858201604001528201610bbd565b506000604082860101526040601f19601f8301168501019250505092915050565b80356001600160a01b0381168114610c1157600080fd5b919050565b60008060408385031215610c2957600080fd5b610c3283610bfa565b946020939093013593505050565b600080600060608486031215610c5557600080fd5b610c5e84610bfa565b9250610c6c60208501610bfa565b9150604084013590509250925092565b600060208284031215610c8e57600080fd5b610c9782610bfa565b9392505050565b600080600080600080600060e0888a031215610cb957600080fd5b610cc288610bfa565b9650610cd060208901610bfa565b95506040880135945060608801359350608088013560ff81168114610cf457600080fd5b9699959850939692959460a0840135945060c09093013592915050565b60008060408385031215610d2457600080fd5b610d2d83610bfa565b9150610d3b60208401610bfa565b90509250929050565b600181811c90821680610d5857607f821691505b602082108103610d7857634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526030908201527f546f6b656e577261707065643a3a6f6e6c794272696467653a204e6f7420506f60408201526f6c79676f6e5a6b45564d42726964676560801b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060018201610df657610df6610dce565b5060010190565b8082018082111561041757610417610dce56fea264697066735822122068d85b020b1a2757dc7a7c7a785443e46a871a3aacbd5b54efbaa070e0bcf58a64736f6c63430008140033a2646970667358221220764716f448b22cec763864efe2a1833130d562948bbafeb199032adcdbb1a75364736f6c63430008140033",
}

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) CalculateRoot added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) CalculateRoot(opts *bind.CallOpts, leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*PolygonzkevmbridgeCaller) CalculateTokenWrapperAddress added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) CalculateTokenWrapperAddress(opts *bind.CallOpts, originNetwork uint32, originTokenAddress common.Address, token common.Address) (common.Address, error)

CalculateTokenWrapperAddress is a free data retrieval call binding the contract method 0x7843298b.

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

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) GasTokenAddress added in v0.4.0

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

GasTokenAddress is a free data retrieval call binding the contract method 0x3c351e10.

Solidity: function gasTokenAddress() view returns(address)

func (*PolygonzkevmbridgeCaller) GasTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) GasTokenMetadata(opts *bind.CallOpts) ([]byte, error)

GasTokenMetadata is a free data retrieval call binding the contract method 0x27aef4e8.

Solidity: function gasTokenMetadata() view returns(bytes)

func (*PolygonzkevmbridgeCaller) GasTokenNetwork added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) GasTokenNetwork(opts *bind.CallOpts) (uint32, error)

GasTokenNetwork is a free data retrieval call binding the contract method 0x3cbc795b.

Solidity: function gasTokenNetwork() view returns(uint32)

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) GetRoot added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PolygonzkevmbridgeCaller) GetTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) GetTokenMetadata(opts *bind.CallOpts, token common.Address) ([]byte, error)

GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.

Solidity: function getTokenMetadata(address token) view returns(bytes)

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 added in v0.4.0

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, leafIndex uint32, sourceBridgeNetwork uint32) (bool, error)

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

Solidity: function isClaimed(uint32 leafIndex, uint32 sourceBridgeNetwork) 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) LastUpdatedDepositCount

func (_Polygonzkevmbridge *PolygonzkevmbridgeCaller) LastUpdatedDepositCount(opts *bind.CallOpts) (uint32, error)

LastUpdatedDepositCount is a free data retrieval call binding the contract method 0xbe5831c7.

Solidity: function lastUpdatedDepositCount() 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) PolygonRollupManager added in v0.4.0

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

PolygonRollupManager is a free data retrieval call binding the contract method 0x8ed7e3f2.

Solidity: function polygonRollupManager() 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][32]byte, index uint32, root [32]byte) (bool, error)

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

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

func (*PolygonzkevmbridgeCaller) WETHToken added in v0.4.0

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

WETHToken is a free data retrieval call binding the contract method 0x4b2f336d.

Solidity: function WETHToken() view returns(address)

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) CalculateRoot added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*PolygonzkevmbridgeCallerSession) CalculateTokenWrapperAddress added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) CalculateTokenWrapperAddress(originNetwork uint32, originTokenAddress common.Address, token common.Address) (common.Address, error)

CalculateTokenWrapperAddress is a free data retrieval call binding the contract method 0x7843298b.

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

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) GasTokenAddress added in v0.4.0

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

GasTokenAddress is a free data retrieval call binding the contract method 0x3c351e10.

Solidity: function gasTokenAddress() view returns(address)

func (*PolygonzkevmbridgeCallerSession) GasTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) GasTokenMetadata() ([]byte, error)

GasTokenMetadata is a free data retrieval call binding the contract method 0x27aef4e8.

Solidity: function gasTokenMetadata() view returns(bytes)

func (*PolygonzkevmbridgeCallerSession) GasTokenNetwork added in v0.4.0

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

GasTokenNetwork is a free data retrieval call binding the contract method 0x3cbc795b.

Solidity: function gasTokenNetwork() view returns(uint32)

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) GetRoot added in v0.4.0

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

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PolygonzkevmbridgeCallerSession) GetTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeCallerSession) GetTokenMetadata(token common.Address) ([]byte, error)

GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.

Solidity: function getTokenMetadata(address token) view returns(bytes)

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 added in v0.4.0

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(leafIndex uint32, sourceBridgeNetwork uint32) (bool, error)

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

Solidity: function isClaimed(uint32 leafIndex, uint32 sourceBridgeNetwork) 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) LastUpdatedDepositCount

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

LastUpdatedDepositCount is a free data retrieval call binding the contract method 0xbe5831c7.

Solidity: function lastUpdatedDepositCount() 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) PolygonRollupManager added in v0.4.0

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

PolygonRollupManager is a free data retrieval call binding the contract method 0x8ed7e3f2.

Solidity: function polygonRollupManager() 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][32]byte, index uint32, root [32]byte) (bool, error)

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

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

func (*PolygonzkevmbridgeCallerSession) WETHToken added in v0.4.0

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

WETHToken is a free data retrieval call binding the contract method 0x4b2f336d.

Solidity: function WETHToken() view returns(address)

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 {
	GlobalIndex        *big.Int
	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 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.

Solidity: event ClaimEvent(uint256 globalIndex, 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 0x490e59a1701b938786ac72570a1efeac994a3dbe96e2e883e19e902ace6e6a39.

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

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 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.

Solidity: event ClaimEvent(uint256 globalIndex, 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 0x490e59a1701b938786ac72570a1efeac994a3dbe96e2e883e19e902ace6e6a39.

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

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 0x1df3f2a973a00d6635911755c260704e95e8a5876997546798770f76396fda4d.

Solidity: event ClaimEvent(uint256 globalIndex, 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 0x490e59a1701b938786ac72570a1efeac994a3dbe96e2e883e19e902ace6e6a39.

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

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
	Metadata            []byte
	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(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeSession) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeSession) BridgeMessageWETH added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.

Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()

func (*PolygonzkevmbridgeSession) CalculateRoot added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) CalculateRoot(leafHash [32]byte, smtProof [32][32]byte, index uint32) ([32]byte, error)

CalculateRoot is a free data retrieval call binding the contract method 0x83f24403.

Solidity: function calculateRoot(bytes32 leafHash, bytes32[32] smtProof, uint32 index) pure returns(bytes32)

func (*PolygonzkevmbridgeSession) CalculateTokenWrapperAddress added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) CalculateTokenWrapperAddress(originNetwork uint32, originTokenAddress common.Address, token common.Address) (common.Address, error)

CalculateTokenWrapperAddress is a free data retrieval call binding the contract method 0x7843298b.

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

func (*PolygonzkevmbridgeSession) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xccaa2d11.

Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*PolygonzkevmbridgeSession) ClaimMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xf5efcd79.

Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, 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) GasTokenAddress added in v0.4.0

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

GasTokenAddress is a free data retrieval call binding the contract method 0x3c351e10.

Solidity: function gasTokenAddress() view returns(address)

func (*PolygonzkevmbridgeSession) GasTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) GasTokenMetadata() ([]byte, error)

GasTokenMetadata is a free data retrieval call binding the contract method 0x27aef4e8.

Solidity: function gasTokenMetadata() view returns(bytes)

func (*PolygonzkevmbridgeSession) GasTokenNetwork added in v0.4.0

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

GasTokenNetwork is a free data retrieval call binding the contract method 0x3cbc795b.

Solidity: function gasTokenNetwork() view returns(uint32)

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) GetRoot added in v0.4.0

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

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PolygonzkevmbridgeSession) GetTokenMetadata added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) GetTokenMetadata(token common.Address) ([]byte, error)

GetTokenMetadata is a free data retrieval call binding the contract method 0xc00f14ab.

Solidity: function getTokenMetadata(address token) view returns(bytes)

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 added in v0.4.0

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, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)

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

Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()

func (*PolygonzkevmbridgeSession) IsClaimed

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) IsClaimed(leafIndex uint32, sourceBridgeNetwork uint32) (bool, error)

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

Solidity: function isClaimed(uint32 leafIndex, uint32 sourceBridgeNetwork) 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) LastUpdatedDepositCount

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

LastUpdatedDepositCount is a free data retrieval call binding the contract method 0xbe5831c7.

Solidity: function lastUpdatedDepositCount() 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) PolygonRollupManager added in v0.4.0

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

PolygonRollupManager is a free data retrieval call binding the contract method 0x8ed7e3f2.

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

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

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() returns()

func (*PolygonzkevmbridgeSession) VerifyMerkleProof

func (_Polygonzkevmbridge *PolygonzkevmbridgeSession) VerifyMerkleProof(leafHash [32]byte, smtProof [32][32]byte, index uint32, root [32]byte) (bool, error)

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

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

func (*PolygonzkevmbridgeSession) WETHToken added in v0.4.0

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

WETHToken is a free data retrieval call binding the contract method 0x4b2f336d.

Solidity: function WETHToken() view returns(address)

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, destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeTransactor) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) BridgeMessage(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeTransactor) BridgeMessageWETH added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) BridgeMessageWETH(opts *bind.TransactOpts, destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.

Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()

func (*PolygonzkevmbridgeTransactor) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactor) ClaimAsset(opts *bind.TransactOpts, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xccaa2d11.

Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, 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, smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xf5efcd79.

Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, 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, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)

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

Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()

func (*PolygonzkevmbridgeTransactor) UpdateGlobalExitRoot

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

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() 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(destinationNetwork uint32, destinationAddress common.Address, amount *big.Int, token common.Address, forceUpdateGlobalExitRoot bool, permitData []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeTransactorSession) BridgeMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) BridgeMessage(destinationNetwork uint32, destinationAddress common.Address, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

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

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

func (*PolygonzkevmbridgeTransactorSession) BridgeMessageWETH added in v0.4.0

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) BridgeMessageWETH(destinationNetwork uint32, destinationAddress common.Address, amountWETH *big.Int, forceUpdateGlobalExitRoot bool, metadata []byte) (*types.Transaction, error)

BridgeMessageWETH is a paid mutator transaction binding the contract method 0xb8b284d0.

Solidity: function bridgeMessageWETH(uint32 destinationNetwork, address destinationAddress, uint256 amountWETH, bool forceUpdateGlobalExitRoot, bytes metadata) returns()

func (*PolygonzkevmbridgeTransactorSession) ClaimAsset

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) ClaimAsset(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xccaa2d11.

Solidity: function claimAsset(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, bytes32 mainnetExitRoot, bytes32 rollupExitRoot, uint32 originNetwork, address originTokenAddress, uint32 destinationNetwork, address destinationAddress, uint256 amount, bytes metadata) returns()

func (*PolygonzkevmbridgeTransactorSession) ClaimMessage

func (_Polygonzkevmbridge *PolygonzkevmbridgeTransactorSession) ClaimMessage(smtProofLocalExitRoot [32][32]byte, smtProofRollupExitRoot [32][32]byte, globalIndex *big.Int, 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 0xf5efcd79.

Solidity: function claimMessage(bytes32[32] smtProofLocalExitRoot, bytes32[32] smtProofRollupExitRoot, uint256 globalIndex, 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, _gasTokenAddress common.Address, _gasTokenNetwork uint32, _globalExitRootManager common.Address, _polygonRollupManager common.Address, _gasTokenMetadata []byte) (*types.Transaction, error)

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

Solidity: function initialize(uint32 _networkID, address _gasTokenAddress, uint32 _gasTokenNetwork, address _globalExitRootManager, address _polygonRollupManager, bytes _gasTokenMetadata) returns()

func (*PolygonzkevmbridgeTransactorSession) UpdateGlobalExitRoot

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

UpdateGlobalExitRoot is a paid mutator transaction binding the contract method 0x79e2cf97.

Solidity: function updateGlobalExitRoot() returns()

Jump to

Keyboard shortcuts

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