diff --git a/contracts/generated/ManagementContract/ManagementContract.go b/contracts/generated/ManagementContract/ManagementContract.go index 1114154193..03fc3d8834 100644 --- a/contracts/generated/ManagementContract/ManagementContract.go +++ b/contracts/generated/ManagementContract/ManagementContract.go @@ -54,7 +54,7 @@ type StructsMetaRollup struct { // ManagementContractMetaData contains all meta data concerning the ManagementContract contract. var ManagementContractMetaData = &bind.MetaData{ ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"ECDSAInvalidSignature\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"length\",\"type\":\"uint256\"}],\"name\":\"ECDSAInvalidSignatureLength\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"ECDSAInvalidSignatureS\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"InvalidInitialization\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"NotInitializing\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"OwnableInvalidOwner\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"OwnableUnauthorizedAccount\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"ImportantContractAddressUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"version\",\"type\":\"uint64\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"messageBusAddress\",\"type\":\"address\"}],\"name\":\"LogManagementContractCreated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"Hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"Signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"LastSequenceNumber\",\"type\":\"uint256\"}],\"internalType\":\"structStructs.MetaRollup\",\"name\":\"r\",\"type\":\"tuple\"},{\"internalType\":\"string\",\"name\":\"_rollupData\",\"type\":\"string\"},{\"components\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"},{\"internalType\":\"uint64\",\"name\":\"sequence\",\"type\":\"uint64\"},{\"internalType\":\"uint32\",\"name\":\"nonce\",\"type\":\"uint32\"},{\"internalType\":\"uint32\",\"name\":\"topic\",\"type\":\"uint32\"},{\"internalType\":\"bytes\",\"name\":\"payload\",\"type\":\"bytes\"},{\"internalType\":\"uint8\",\"name\":\"consistencyLevel\",\"type\":\"uint8\"}],\"internalType\":\"structStructs.CrossChainMessage[]\",\"name\":\"messages\",\"type\":\"tuple[]\"}],\"internalType\":\"structStructs.HeaderCrossChainData\",\"name\":\"crossChainData\",\"type\":\"tuple\"}],\"name\":\"AddRollup\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"Attested\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetHostAddresses\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"GetImportantContractKeys\",\"outputs\":[{\"internalType\":\"string[]\",\"name\":\"\",\"type\":\"string[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"rollupHash\",\"type\":\"bytes32\"}],\"name\":\"GetRollupByHash\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"},{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"Hash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes\",\"name\":\"Signature\",\"type\":\"bytes\"},{\"internalType\":\"uint256\",\"name\":\"LastSequenceNumber\",\"type\":\"uint256\"}],\"internalType\":\"structStructs.MetaRollup\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_enclaveID\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"_initSecret\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"_hostAddress\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"_genesisAttestation\",\"type\":\"string\"}],\"name\":\"InitializeNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"IsWithdrawalAvailable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"requestReport\",\"type\":\"string\"}],\"name\":\"RequestNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"attesterID\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"requesterID\",\"type\":\"address\"},{\"internalType\":\"bytes\",\"name\":\"attesterSig\",\"type\":\"bytes\"},{\"internalType\":\"bytes\",\"name\":\"responseSecret\",\"type\":\"bytes\"},{\"internalType\":\"string\",\"name\":\"hostAddress\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"verifyAttester\",\"type\":\"bool\"}],\"name\":\"RespondNetworkSecret\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"RetrieveAllBridgeFunds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"key\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"newAddress\",\"type\":\"address\"}],\"name\":\"SetImportantContractAddress\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"name\":\"importantContractAddresses\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"importantContractKeys\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"lastBatchSeqNo\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"messageBus\",\"outputs\":[{\"internalType\":\"contractIMessageBus\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", - Bin: "0x608060405234801561001057600080fd5b5061001a3361001f565b610090565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6134638061009f6000396000f3fe60806040523480156200001157600080fd5b50600436106200016c5760003560e01c80637281099611620000dd578063a1a227fa116200008b578063bbd79e15116200006e578063bbd79e15146200034e578063e34fbfc81462000365578063f2fde38b146200037a57600080fd5b8063a1a227fa1462000329578063a52f433c146200033d57600080fd5b80638236a7ba11620000c05780638236a7ba14620002ab5780638da5cb5b14620002d257806398077e86146200030357600080fd5b80637281099614620002975780638129fc1c14620002a157600080fd5b806343348b2f116200013b57806359a90071116200011e57806359a90071146200026c5780636a30d26c1462000283578063715018a6146200028d57600080fd5b806343348b2f1462000213578063440c953b146200025357600080fd5b806303e72e4814620001715780632c77c81f146200018a578063324ff86614620001a15780633e60a22f14620001c3575b600080fd5b620001886200018236600462001893565b62000391565b005b620001886200019b36600462001933565b620004a4565b620001ab62000589565b604051620001ba919062001a2a565b60405180910390f35b620001fa620001d436600462001a90565b80516020818301810180516003825292820191909301209152546001600160a01b031681565b6040516001600160a01b039091168152602001620001ba565b620002426200022436600462001ad1565b6001600160a01b031660009081526020819052604090205460ff1690565b6040519015158152602001620001ba565b6200025d60055481565b604051908152602001620001ba565b620001886200027d36600462001af6565b6200066c565b620001ab6200075b565b6200018862000835565b620001886200084d565b62000188620008d1565b620002c2620002bc36600462001ba7565b62000aa4565b604051620001ba92919062001bc1565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b0316620001fa565b6200031a6200031436600462001ba7565b62000b94565b604051620001ba919062001c07565b600754620001fa906001600160a01b031681565b600454610100900460ff1662000242565b620001886200035f36600462001c1c565b62000c49565b620001886200037636600462001ced565b5050565b620001886200038b36600462001ad1565b62000e1a565b6200039b62000e77565b60006001600160a01b0316600383604051620003b8919062001d33565b908152604051908190036020019020546001600160a01b0316036200041757600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0162000415838262001ddf565b505b806003836040516200042a919062001d33565b90815260405190819003602001812080546001600160a01b039390931673ffffffffffffffffffffffffffffffffffffffff19909316929092179091557f17b2f9f5748931099ffee882b5b64f4a560b5c55da9b4f4e396dae3bb9f98cb59062000498908490849062001eac565b60405180910390a15050565b6000620004f68535620004bb602088018862001ed9565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525062000eee92505050565b6001600160a01b03811660009081526020819052604090205490915060ff16620005208262000f1e565b60405160200162000532919062001f23565b604051602081830303815290604052906200056b5760405162461bcd60e51b815260040162000562919062001c07565b60405180910390fd5b506200057785620011a6565b6200058282620011de565b5050505050565b60606001805480602002602001604051908101604052809291908181526020016000905b8282101562000663578382906000526020600020018054620005cf9062001d51565b80601f0160208091040260200160405190810160405280929190818152602001828054620005fd9062001d51565b80156200064e5780601f1062000622576101008083540402835291602001916200064e565b820191906000526020600020905b8154815290600101906020018083116200063057829003601f168201915b505050505081526020019060010190620005ad565b50505050905090565b60045460ff1615620006e75760405162461bcd60e51b815260206004820152602260248201527f6e6574776f726b2073656372657420616c726561647920696e697469616c697a60448201527f6564000000000000000000000000000000000000000000000000000000000000606482015260840162000562565b60048054600160ff1991821681179092556001600160a01b038816600090815260208190526040812080549092168317909155815480830183559190527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60162000752848262001ddf565b50505050505050565b60606002805480602002602001604051908101604052809291908181526020016000905b8282101562000663578382906000526020600020018054620007a19062001d51565b80601f0160208091040260200160405190810160405280929190818152602001828054620007cf9062001d51565b8015620008205780601f10620007f45761010080835404028352916020019162000820565b820191906000526020600020905b8154815290600101906020018083116200080257829003601f168201915b5050505050815260200190600101906200077f565b6200083f62000e77565b6200084b6000620012ae565b565b6200085762000e77565b6007546040517f36d2da900000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906336d2da9090602401600060405180830381600087803b158015620008b657600080fd5b505af1158015620008cb573d6000803e3d6000fd5b50505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff166000811580156200091d5750825b905060008267ffffffffffffffff1660011480156200093b5750303b155b9050811580156200094a575080155b1562000982576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff191660011785558315620009b757845468ff00000000000000001916680100000000000000001785555b620009c2336200132c565b6000600555604051620009d590620017bd565b604051809103906000f080158015620009f2573d6000803e3d6000fd5b506007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691821790556040519081527fbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf9060200160405180910390a183156200058257845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050565b60408051606080820183526000808352602080840183905283850182905285825260068152848220855193840190955284548352600185018054929586949390928401919062000af49062001d51565b80601f016020809104026020016040519081016040528092919081815260200182805462000b229062001d51565b801562000b735780601f1062000b475761010080835404028352916020019162000b73565b820191906000526020600020905b81548152906001019060200180831162000b5557829003601f168201915b50505091835250506002919091015460209091015280519094149492505050565b6002818154811062000ba557600080fd5b90600052602060002001600091509050805462000bc29062001d51565b80601f016020809104026020016040519081016040528092919081815260200182805462000bf09062001d51565b801562000c415780601f1062000c155761010080835404028352916020019162000c41565b820191906000526020600020905b81548152906001019060200180831162000c2357829003601f168201915b505050505081565b6001600160a01b03861660009081526020819052604090205460ff168062000cda5760405162461bcd60e51b815260206004820152602360248201527f726573706f6e64696e67206174746573746572206973206e6f7420617474657360448201527f7465640000000000000000000000000000000000000000000000000000000000606482015260840162000562565b811562000db357600062000d158888868860405160200162000d00949392919062001f6a565b60405160208183030381529060405262001341565b9050600062000d25828862000eee565b9050886001600160a01b0316816001600160a01b03161462000db05760405162461bcd60e51b815260206004820152602c60248201527f63616c63756c61746564206164647265737320616e642061747465737465724960448201527f4420646f6e74206d617463680000000000000000000000000000000000000000606482015260840162000562565b50505b6001600160a01b0386166000908152602081905260408120805460ff191660019081179091558054808201825591527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60162000e10848262001ddf565b5050505050505050565b62000e2462000e77565b6001600160a01b03811662000e69576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526000600482015260240162000562565b62000e7481620012ae565b50565b3362000eaa7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b0316146200084b576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240162000562565b60008060008062000f00868662001380565b92509250925062000f128282620013d1565b50909150505b92915050565b604080518082018252601081527f303132333435363738396162636465660000000000000000000000000000000060208201528151602a80825260608281019094526001600160a01b03851692916000916020820181803683370190505090507f30000000000000000000000000000000000000000000000000000000000000008160008151811062000fb55762000fb562001fca565b60200101906001600160f81b031916908160001a9053507f78000000000000000000000000000000000000000000000000000000000000008160018151811062001003576200100362001fca565b60200101906001600160f81b031916908160001a90535060005b60148110156200119d57826004856200103884600c62001ff6565b602081106200104b576200104b62001fca565b1a60f81b6001600160f81b031916901c60f81c60ff168151811062001074576200107462001fca565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682620010a98360026200200c565b620010b690600262001ff6565b81518110620010c957620010c962001fca565b60200101906001600160f81b031916908160001a9053508284620010ef83600c62001ff6565b6020811062001102576200110262001fca565b825191901a600f169081106200111c576200111c62001fca565b01602001517fff000000000000000000000000000000000000000000000000000000000000001682620011518360026200200c565b6200115e90600362001ff6565b8151811062001171576200117162001fca565b60200101906001600160f81b031916908160001a90535080620011948162002026565b9150506200101d565b50949350505050565b803560009081526006602052604090208190620011c4828262002042565b50506005546040820135111562000e745760400135600555565b6000620011ec828062002152565b9050905060005b81811015620012a9576007546001600160a01b0316639730886d62001219858062002152565b848181106200122c576200122c62001fca565b90506020028101906200124091906200219f565b60016040518363ffffffff1660e01b8152600401620012619291906200224f565b600060405180830381600087803b1580156200127c57600080fd5b505af115801562001291573d6000803e3d6000fd5b5050505080620012a19062002026565b9050620011f3565b505050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b62001336620014e7565b62000e74816200154f565b60006200134f825162001559565b826040516020016200136392919062002311565b604051602081830303815290604052805190602001209050919050565b60008060008351604103620013be5760208401516040850151606086015160001a620013af8882858562001600565b955095509550505050620013ca565b50508151600091506002905b9250925092565b6000826003811115620013e857620013e862002370565b03620013f2575050565b600182600381111562001409576200140962002370565b0362001441576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600282600381111562001458576200145862002370565b0362001494576040517ffce698f70000000000000000000000000000000000000000000000000000000081526004810182905260240162000562565b6003826003811115620014ab57620014ab62002370565b0362000376576040517fd78bce0c0000000000000000000000000000000000000000000000000000000081526004810182905260240162000562565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff166200084b576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000e24620014e7565b606060006200156883620016d4565b600101905060008167ffffffffffffffff8111156200158b576200158b620017cb565b6040519080825280601f01601f191660200182016040528015620015b6576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a8504945084620015c057509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08411156200163d5750600091506003905082620016ca565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801562001692573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116620016c057506000925060019150829050620016ca565b9250600091508190505b9450945094915050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106200171e577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef810000000083106200174b576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc1000083106200176a57662386f26fc10000830492506010015b6305f5e100831062001783576305f5e100830492506008015b61271083106200179857612710830492506004015b60648310620017ab576064830492506002015b600a831062000f185760010192915050565b6110a7806200238783390190565b634e487b7160e01b600052604160045260246000fd5b600082601f830112620017f357600080fd5b813567ffffffffffffffff80821115620018115762001811620017cb565b604051601f8301601f19908116603f011681019082821181831017156200183c576200183c620017cb565b816040528381528660208588010111156200185657600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b03811681146200188e57600080fd5b919050565b60008060408385031215620018a757600080fd5b823567ffffffffffffffff811115620018bf57600080fd5b620018cd85828601620017e1565b925050620018de6020840162001876565b90509250929050565b60008083601f840112620018fa57600080fd5b50813567ffffffffffffffff8111156200191357600080fd5b6020830191508360208285010111156200192c57600080fd5b9250929050565b600080600080606085870312156200194a57600080fd5b843567ffffffffffffffff808211156200196357600080fd5b90860190606082890312156200197857600080fd5b909450602086013590808211156200198f57600080fd5b6200199d88838901620018e7565b90955093506040870135915080821115620019b757600080fd5b50850160208188031215620019cb57600080fd5b939692955090935050565b60005b83811015620019f3578181015183820152602001620019d9565b50506000910152565b6000815180845262001a16816020860160208601620019d6565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b8281101562001a8357603f1988860301845262001a70858351620019fc565b9450928501929085019060010162001a51565b5092979650505050505050565b60006020828403121562001aa357600080fd5b813567ffffffffffffffff81111562001abb57600080fd5b62001ac984828501620017e1565b949350505050565b60006020828403121562001ae457600080fd5b62001aef8262001876565b9392505050565b6000806000806000806080878903121562001b1057600080fd5b62001b1b8762001876565b9550602087013567ffffffffffffffff8082111562001b3957600080fd5b62001b478a838b01620018e7565b9097509550604089013591508082111562001b6157600080fd5b62001b6f8a838b01620017e1565b9450606089013591508082111562001b8657600080fd5b5062001b9589828a01620018e7565b979a9699509497509295939492505050565b60006020828403121562001bba57600080fd5b5035919050565b821515815260406020820152815160408201526000602083015160608084015262001bf060a0840182620019fc565b905060408401516080840152809150509392505050565b60208152600062001aef6020830184620019fc565b60008060008060008060c0878903121562001c3657600080fd5b62001c418762001876565b955062001c516020880162001876565b9450604087013567ffffffffffffffff8082111562001c6f57600080fd5b62001c7d8a838b01620017e1565b9550606089013591508082111562001c9457600080fd5b62001ca28a838b01620017e1565b9450608089013591508082111562001cb957600080fd5b5062001cc889828a01620017e1565b92505060a0870135801515811462001cdf57600080fd5b809150509295509295509295565b6000806020838503121562001d0157600080fd5b823567ffffffffffffffff81111562001d1957600080fd5b62001d2785828601620018e7565b90969095509350505050565b6000825162001d47818460208701620019d6565b9190910192915050565b600181811c9082168062001d6657607f821691505b60208210810362001d8757634e487b7160e01b600052602260045260246000fd5b50919050565b601f821115620012a957600081815260208120601f850160051c8101602086101562001db65750805b601f850160051c820191505b8181101562001dd75782815560010162001dc2565b505050505050565b815167ffffffffffffffff81111562001dfc5762001dfc620017cb565b62001e148162001e0d845462001d51565b8462001d8d565b602080601f83116001811462001e4c576000841562001e335750858301515b600019600386901b1c1916600185901b17855562001dd7565b600085815260208120601f198616915b8281101562001e7d5788860151825594840194600190910190840162001e5c565b508582101562001e9c5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60408152600062001ec16040830185620019fc565b90506001600160a01b03831660208301529392505050565b6000808335601e1984360301811262001ef157600080fd5b83018035915067ffffffffffffffff82111562001f0d57600080fd5b6020019150368190038213156200192c57600080fd5b7f656e636c6176654944206e6f742061747465737465643a20000000000000000081526000825162001f5d816018850160208701620019d6565b9190910160180192915050565b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250835162001fa3816028850160208801620019d6565b83519083019062001fbc816028840160208801620019d6565b016028019695505050505050565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b8082018082111562000f185762000f1862001fe0565b808202811582820484141762000f185762000f1862001fe0565b6000600182016200203b576200203b62001fe0565b5060010190565b813581556001808201602080850135601e198636030181126200206457600080fd5b8501803567ffffffffffffffff8111156200207e57600080fd5b80360383830113156200209057600080fd5b620020a881620020a1865462001d51565b8662001d8d565b6000601f821160018114620020e15760008315620020c857508382018501355b600019600385901b1c1916600184901b1786556200213d565b600086815260209020601f19841690835b828110156200211357868501880135825593870193908901908701620020f2565b5084821015620021335760001960f88660031b161c198785880101351681555b50508683881b0186555b50505050505050604082013560028201555050565b6000808335601e198436030181126200216a57600080fd5b83018035915067ffffffffffffffff8211156200218657600080fd5b6020019150600581901b36038213156200192c57600080fd5b6000823560be1983360301811262001d4757600080fd5b803563ffffffff811681146200188e57600080fd5b6000808335601e19843603018112620021e357600080fd5b830160208101925035905067ffffffffffffffff8111156200220457600080fd5b8036038213156200192c57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b803560ff811681146200188e57600080fd5b604081526001600160a01b03620022668462001876565b1660408201526000602084013567ffffffffffffffff81168082146200228b57600080fd5b60608401525063ffffffff620022a460408601620021b6565b166080830152620022b860608501620021b6565b63ffffffff1660a0830152620022d26080850185620021cb565b60c080850152620022e96101008501828462002214565b915050620022fa60a086016200223d565b60ff1660e084015260209092019290925292915050565b7f19457468657265756d205369676e6564204d6573736167653a0a0000000000008152600083516200234b81601a850160208801620019d6565b8351908301906200236481601a840160208801620019d6565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fdfe608060405234801561001057600080fd5b50338061003757604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61004081610046565b50610096565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611002806100a56000396000f3fe6080604052600436106100b55760003560e01c80638da5cb5b1161006957806399a3ad211161004e57806399a3ad2114610269578063b1454caa14610289578063f2fde38b146102c257610129565b80638da5cb5b146102215780639730886d1461024957610129565b8063346633fb1161009a578063346633fb146101d957806336d2da90146101ec578063715018a61461020c57610129565b80630fcfbd111461017657806333a88c72146101a957610129565b36610129576040517f346633fb0000000000000000000000000000000000000000000000000000000081523360048201523460248201819052309163346633fb91906044016000604051808303818588803b15801561011357600080fd5b505af1158015610127573d6000803e3d6000fd5b005b60405162461bcd60e51b815260206004820152600b60248201527f756e737570706f7274656400000000000000000000000000000000000000000060448201526064015b60405180910390fd5b34801561018257600080fd5b50610196610191366004610945565b6102e2565b6040519081526020015b60405180910390f35b3480156101b557600080fd5b506101c96101c4366004610945565b610398565b60405190151581526020016101a0565b6101276101e736600461098f565b6103eb565b3480156101f857600080fd5b506101276102073660046109bb565b6104b7565b34801561021857600080fd5b50610127610566565b34801561022d57600080fd5b506000546040516001600160a01b0390911681526020016101a0565b34801561025557600080fd5b506101276102643660046109d8565b61057a565b34801561027557600080fd5b5061012761028436600461098f565b6106cc565b34801561029557600080fd5b506102a96102a4366004610a4e565b61077c565b60405167ffffffffffffffff90911681526020016101a0565b3480156102ce57600080fd5b506101276102dd3660046109bb565b6107d5565b600080826040516020016102f69190610b3a565b60408051601f19818403018152918152815160209283012060008181526001909352912054909150806103915760405162461bcd60e51b815260206004820152602160248201527f54686973206d65737361676520776173206e65766572207375626d697474656460448201527f2e00000000000000000000000000000000000000000000000000000000000000606482015260840161016d565b9392505050565b600080826040516020016103ac9190610b3a565b60408051601f1981840301815291815281516020928301206000818152600190935291205490915080158015906103e35750428111155b949350505050565b6000341180156103fa57508034145b61046c5760405162461bcd60e51b815260206004820152603060248201527f417474656d7074696e6720746f2073656e642076616c756520776974686f757460448201527f2070726f766964696e6720457468657200000000000000000000000000000000606482015260840161016d565b604080513381526001600160a01b0384166020820152348183015290517ff1365f826a788d6c1a955db0eed5ba8642674219c4771f8c65918617511a15609181900360600190a15050565b6104bf61082c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461050c576040519150601f19603f3d011682016040523d82523d6000602084013e610511565b606091505b50509050806105625760405162461bcd60e51b815260206004820152601460248201527f6661696c65642073656e64696e672076616c7565000000000000000000000000604482015260640161016d565b5050565b61056e61082c565b6105786000610872565b565b61058261082c565b600061058e8242610c3b565b90506000836040516020016105a39190610b3a565b60408051601f198184030181529181528151602092830120600081815260019093529120549091501561063e5760405162461bcd60e51b815260206004820152602160248201527f4d657373616765207375626d6974746564206d6f7265207468616e206f6e636560448201527f2100000000000000000000000000000000000000000000000000000000000000606482015260840161016d565b6000818152600160209081526040822084905560029190610661908701876109bb565b6001600160a01b03168152602081019190915260400160009081209061068d6080870160608801610c54565b63ffffffff168152602080820192909252604001600090812080546001810182559082529190208591600402016106c48282610e2a565b505050505050565b6106d461082c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610721576040519150601f19603f3d011682016040523d82523d6000602084013e610726565b606091505b50509050806107775760405162461bcd60e51b815260206004820152601460248201527f6661696c65642073656e64696e672076616c7565000000000000000000000000604482015260640161016d565b505050565b6000610787336108cf565b90507fb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937338288888888886040516107c49796959493929190610f44565b60405180910390a195945050505050565b6107dd61082c565b6001600160a01b038116610820576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526000600482015260240161016d565b61082981610872565b50565b6000546001600160a01b03163314610578576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161016d565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600360205260408120805467ffffffffffffffff1691600191906109028385610fa4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550919050565b600060c0828403121561093f57600080fd5b50919050565b60006020828403121561095757600080fd5b813567ffffffffffffffff81111561096e57600080fd5b6103e38482850161092d565b6001600160a01b038116811461082957600080fd5b600080604083850312156109a257600080fd5b82356109ad8161097a565b946020939093013593505050565b6000602082840312156109cd57600080fd5b81356103918161097a565b600080604083850312156109eb57600080fd5b823567ffffffffffffffff811115610a0257600080fd5b610a0e8582860161092d565b95602094909401359450505050565b63ffffffff8116811461082957600080fd5b60ff8116811461082957600080fd5b8035610a4981610a2f565b919050565b600080600080600060808688031215610a6657600080fd5b8535610a7181610a1d565b94506020860135610a8181610a1d565b9350604086013567ffffffffffffffff80821115610a9e57600080fd5b818801915088601f830112610ab257600080fd5b813581811115610ac157600080fd5b896020828501011115610ad357600080fd5b6020830195508094505050506060860135610aed81610a2f565b809150509295509295909350565b67ffffffffffffffff8116811461082957600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260008235610b4b8161097a565b6001600160a01b0381166020840152506020830135610b6981610afb565b67ffffffffffffffff808216604085015260408501359150610b8a82610a1d565b63ffffffff808316606086015260608601359250610ba783610a1d565b80831660808601525060808501359150601e19853603018212610bc957600080fd5b6020918501918201913581811115610be057600080fd5b803603831315610bef57600080fd5b60c060a0860152610c0460e086018285610b11565b92505050610c1460a08501610a3e565b60ff811660c0850152509392505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4e57610c4e610c25565b92915050565b600060208284031215610c6657600080fd5b813561039181610a1d565b60008135610c4e81610a1d565b6000808335601e19843603018112610c9557600080fd5b83018035915067ffffffffffffffff821115610cb057600080fd5b602001915036819003821315610cc557600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610cf657607f821691505b60208210810361093f57634e487b7160e01b600052602260045260246000fd5b601f82111561077757600081815260208120601f850160051c81016020861015610d3d5750805b601f850160051c820191505b818110156106c457828155600101610d49565b67ffffffffffffffff831115610d7457610d74610ccc565b610d8883610d828354610ce2565b83610d16565b6000601f841160018114610dbc5760008515610da45750838201355b600019600387901b1c1916600186901b178355610e16565b600083815260209020601f19861690835b82811015610ded5786850135825560209485019460019092019101610dcd565b5086821015610e0a5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60008135610c4e81610a2f565b8135610e358161097a565b6001600160a01b038116905081548173ffffffffffffffffffffffffffffffffffffffff1982161783556020840135610e6d81610afb565b7bffffffffffffffff00000000000000000000000000000000000000008160a01b1690507fffffffff0000000000000000000000000000000000000000000000000000000081848285161717855560408601359250610ecb83610a1d565b921760e09190911b909116178155610f03610ee860608401610c71565b6001830163ffffffff821663ffffffff198254161781555050565b610f106080830183610c7e565b610f1e818360028601610d5c565b5050610562610f2f60a08401610e1d565b6003830160ff821660ff198254161781555050565b6001600160a01b038816815267ffffffffffffffff87166020820152600063ffffffff808816604084015280871660608401525060c06080830152610f8d60c083018587610b11565b905060ff831660a083015298975050505050505050565b67ffffffffffffffff818116838216019080821115610fc557610fc5610c25565b509291505056fea264697066735822122055bbe17521778f602b3eab0e1e16144809be200e76e1af574dfaadbe93774a6264736f6c63430008140033a264697066735822122085765c10cb39ddb2bb16652cb8e9098184ca166044ca675cab85bfed465c4f5664736f6c63430008140033", + Bin: "0x608060405234801561001057600080fd5b5061001a3361001f565b610090565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c19930080546001600160a01b031981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b6131548061009f6000396000f3fe60806040523480156200001157600080fd5b50600436106200016c5760003560e01c80637281099611620000dd578063a1a227fa116200008b578063bbd79e15116200006e578063bbd79e15146200034e578063e34fbfc81462000365578063f2fde38b146200037a57600080fd5b8063a1a227fa1462000329578063a52f433c146200033d57600080fd5b80638236a7ba11620000c05780638236a7ba14620002ab5780638da5cb5b14620002d257806398077e86146200030357600080fd5b80637281099614620002975780638129fc1c14620002a157600080fd5b806343348b2f116200013b57806359a90071116200011e57806359a90071146200026c5780636a30d26c1462000283578063715018a6146200028d57600080fd5b806343348b2f1462000213578063440c953b146200025357600080fd5b806303e72e4814620001715780632c77c81f146200018a578063324ff86614620001a15780633e60a22f14620001c3575b600080fd5b620001886200018236600462001605565b62000391565b005b620001886200019b366004620016a5565b620004a4565b620001ab62000584565b604051620001ba91906200179c565b60405180910390f35b620001fa620001d436600462001802565b80516020818301810180516003825292820191909301209152546001600160a01b031681565b6040516001600160a01b039091168152602001620001ba565b620002426200022436600462001843565b6001600160a01b031660009081526020819052604090205460ff1690565b6040519015158152602001620001ba565b6200025d60055481565b604051908152602001620001ba565b620001886200027d36600462001868565b62000667565b620001ab62000756565b6200018862000830565b6200018862000848565b62000188620008cc565b620002c2620002bc36600462001919565b62000a9f565b604051620001ba92919062001933565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b0316620001fa565b6200031a6200031436600462001919565b62000b8f565b604051620001ba919062001979565b600754620001fa906001600160a01b031681565b600454610100900460ff1662000242565b620001886200035f3660046200198e565b62000c44565b620001886200037636600462001a5f565b5050565b620001886200038b36600462001843565b62000e15565b6200039b62000e72565b60006001600160a01b0316600383604051620003b8919062001aa5565b908152604051908190036020019020546001600160a01b0316036200041757600280546001810182556000919091527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0162000415838262001b51565b505b806003836040516200042a919062001aa5565b90815260405190819003602001812080546001600160a01b039390931673ffffffffffffffffffffffffffffffffffffffff19909316929092179091557f17b2f9f5748931099ffee882b5b64f4a560b5c55da9b4f4e396dae3bb9f98cb59062000498908490849062001c1e565b60405180910390a15050565b6000620004f68535620004bb602088018862001c4b565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525062000ee992505050565b6001600160a01b03811660009081526020819052604090205490915060ff16620005675760405162461bcd60e51b815260206004820152601660248201527f656e636c6176654944206e6f742061747465737465640000000000000000000060448201526064015b60405180910390fd5b620005728562000f17565b6200057d8262000f4f565b5050505050565b60606001805480602002602001604051908101604052809291908181526020016000905b828210156200065e578382906000526020600020018054620005ca9062001ac3565b80601f0160208091040260200160405190810160405280929190818152602001828054620005f89062001ac3565b8015620006495780601f106200061d5761010080835404028352916020019162000649565b820191906000526020600020905b8154815290600101906020018083116200062b57829003601f168201915b505050505081526020019060010190620005a8565b50505050905090565b60045460ff1615620006e25760405162461bcd60e51b815260206004820152602260248201527f6e6574776f726b2073656372657420616c726561647920696e697469616c697a60448201527f656400000000000000000000000000000000000000000000000000000000000060648201526084016200055e565b60048054600160ff1991821681179092556001600160a01b038816600090815260208190526040812080549092168317909155815480830183559190527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf6016200074d848262001b51565b50505050505050565b60606002805480602002602001604051908101604052809291908181526020016000905b828210156200065e5783829060005260206000200180546200079c9062001ac3565b80601f0160208091040260200160405190810160405280929190818152602001828054620007ca9062001ac3565b80156200081b5780601f10620007ef576101008083540402835291602001916200081b565b820191906000526020600020905b815481529060010190602001808311620007fd57829003601f168201915b5050505050815260200190600101906200077a565b6200083a62000e72565b6200084660006200101f565b565b6200085262000e72565b6007546040517f36d2da900000000000000000000000000000000000000000000000000000000081523360048201526001600160a01b03909116906336d2da9090602401600060405180830381600087803b158015620008b157600080fd5b505af1158015620008c6573d6000803e3d6000fd5b50505050565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a00805468010000000000000000810460ff16159067ffffffffffffffff16600081158015620009185750825b905060008267ffffffffffffffff166001148015620009365750303b155b90508115801562000945575080155b156200097d576040517ff92ee8a900000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b845467ffffffffffffffff191660011785558315620009b257845468ff00000000000000001916680100000000000000001785555b620009bd336200109d565b6000600555604051620009d0906200152f565b604051809103906000f080158015620009ed573d6000803e3d6000fd5b506007805473ffffffffffffffffffffffffffffffffffffffff19166001600160a01b039290921691821790556040519081527fbd726cf82ac9c3260b1495107182e336e0654b25c10915648c0cc15b2bb72cbf9060200160405180910390a183156200057d57845468ff000000000000000019168555604051600181527fc7f505b2f371ae2175ee4913f4499e1f2633a7b5936321eed1cdaeb6115181d29060200160405180910390a15050505050565b60408051606080820183526000808352602080840183905283850182905285825260068152848220855193840190955284548352600185018054929586949390928401919062000aef9062001ac3565b80601f016020809104026020016040519081016040528092919081815260200182805462000b1d9062001ac3565b801562000b6e5780601f1062000b425761010080835404028352916020019162000b6e565b820191906000526020600020905b81548152906001019060200180831162000b5057829003601f168201915b50505091835250506002919091015460209091015280519094149492505050565b6002818154811062000ba057600080fd5b90600052602060002001600091509050805462000bbd9062001ac3565b80601f016020809104026020016040519081016040528092919081815260200182805462000beb9062001ac3565b801562000c3c5780601f1062000c105761010080835404028352916020019162000c3c565b820191906000526020600020905b81548152906001019060200180831162000c1e57829003601f168201915b505050505081565b6001600160a01b03861660009081526020819052604090205460ff168062000cd55760405162461bcd60e51b815260206004820152602360248201527f726573706f6e64696e67206174746573746572206973206e6f7420617474657360448201527f746564000000000000000000000000000000000000000000000000000000000060648201526084016200055e565b811562000dae57600062000d108888868860405160200162000cfb949392919062001c95565b604051602081830303815290604052620010b2565b9050600062000d20828862000ee9565b9050886001600160a01b0316816001600160a01b03161462000dab5760405162461bcd60e51b815260206004820152602c60248201527f63616c63756c61746564206164647265737320616e642061747465737465724960448201527f4420646f6e74206d61746368000000000000000000000000000000000000000060648201526084016200055e565b50505b6001600160a01b0386166000908152602081905260408120805460ff191660019081179091558054808201825591527fb10e2d527612073b26eecdfd717e6a320cf44b4afac2b0732d9fcbe2b7fa0cf60162000e0b848262001b51565b5050505050505050565b62000e1f62000e72565b6001600160a01b03811662000e64576040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600060048201526024016200055e565b62000e6f816200101f565b50565b3362000ea57f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300546001600160a01b031690565b6001600160a01b03161462000846576040517f118cdaa70000000000000000000000000000000000000000000000000000000081523360048201526024016200055e565b60008060008062000efb8686620010f1565b92509250925062000f0d828262001142565b5090949350505050565b80356000908152600660205260409020819062000f35828262001cf5565b50506005546040820135111562000e6f5760400135600555565b600062000f5d828062001e05565b9050905060005b818110156200101a576007546001600160a01b0316639730886d62000f8a858062001e05565b8481811062000f9d5762000f9d62001e52565b905060200281019062000fb1919062001e68565b60016040518363ffffffff1660e01b815260040162000fd292919062001f18565b600060405180830381600087803b15801562000fed57600080fd5b505af115801562001002573d6000803e3d6000fd5b5050505080620010129062001fda565b905062000f64565b505050565b7f9016d09d72d40fdae2fd8ceac6b6234c7706214fd39c1cd1e609a0528c199300805473ffffffffffffffffffffffffffffffffffffffff1981166001600160a01b03848116918217845560405192169182907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3505050565b620010a762001258565b62000e6f81620012c0565b6000620010c08251620012ca565b82604051602001620010d492919062002002565b604051602081830303815290604052805190602001209050919050565b600080600083516041036200112f5760208401516040850151606086015160001a620011208882858562001371565b9550955095505050506200113b565b50508151600091506002905b9250925092565b600082600381111562001159576200115962002061565b0362001163575050565b60018260038111156200117a576200117a62002061565b03620011b2576040517ff645eedf00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6002826003811115620011c957620011c962002061565b0362001205576040517ffce698f7000000000000000000000000000000000000000000000000000000008152600481018290526024016200055e565b60038260038111156200121c576200121c62002061565b0362000376576040517fd78bce0c000000000000000000000000000000000000000000000000000000008152600481018290526024016200055e565b7ff0c57e16840df040f15088dc2f81fe391c3923bec73e23a9662efc9c229c6a005468010000000000000000900460ff1662000846576040517fd7e6bcf800000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b62000e1f62001258565b60606000620012d98362001445565b600101905060008167ffffffffffffffff811115620012fc57620012fc6200153d565b6040519080825280601f01601f19166020018201604052801562001327576020820181803683370190505b5090508181016020015b600019017f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85049450846200133157509392505050565b600080807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0841115620013ae57506000915060039050826200143b565b604080516000808252602082018084528a905260ff891692820192909252606081018790526080810186905260019060a0016020604051602081039080840390855afa15801562001403573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b03811662001431575060009250600191508290506200143b565b9250600091508190505b9450945094915050565b6000807a184f03e93ff9f4daa797ed6e38ed64bf6a1f01000000000000000083106200148f577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000830492506040015b6d04ee2d6d415b85acef81000000008310620014bc576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310620014db57662386f26fc10000830492506010015b6305f5e1008310620014f4576305f5e100830492506008015b61271083106200150957612710830492506004015b606483106200151c576064830492506002015b600a831062001529576001015b92915050565b6110a7806200207883390190565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200156557600080fd5b813567ffffffffffffffff808211156200158357620015836200153d565b604051601f8301601f19908116603f01168101908282118183101715620015ae57620015ae6200153d565b81604052838152866020858801011115620015c857600080fd5b836020870160208301376000602085830101528094505050505092915050565b80356001600160a01b03811681146200160057600080fd5b919050565b600080604083850312156200161957600080fd5b823567ffffffffffffffff8111156200163157600080fd5b6200163f8582860162001553565b9250506200165060208401620015e8565b90509250929050565b60008083601f8401126200166c57600080fd5b50813567ffffffffffffffff8111156200168557600080fd5b6020830191508360208285010111156200169e57600080fd5b9250929050565b60008060008060608587031215620016bc57600080fd5b843567ffffffffffffffff80821115620016d557600080fd5b9086019060608289031215620016ea57600080fd5b909450602086013590808211156200170157600080fd5b6200170f8883890162001659565b909550935060408701359150808211156200172957600080fd5b508501602081880312156200173d57600080fd5b939692955090935050565b60005b83811015620017655781810151838201526020016200174b565b50506000910152565b600081518084526200178881602086016020860162001748565b601f01601f19169290920160200192915050565b6000602080830181845280855180835260408601915060408160051b870101925083870160005b82811015620017f557603f19888603018452620017e28583516200176e565b94509285019290850190600101620017c3565b5092979650505050505050565b6000602082840312156200181557600080fd5b813567ffffffffffffffff8111156200182d57600080fd5b6200183b8482850162001553565b949350505050565b6000602082840312156200185657600080fd5b6200186182620015e8565b9392505050565b600080600080600080608087890312156200188257600080fd5b6200188d87620015e8565b9550602087013567ffffffffffffffff80821115620018ab57600080fd5b620018b98a838b0162001659565b90975095506040890135915080821115620018d357600080fd5b620018e18a838b0162001553565b94506060890135915080821115620018f857600080fd5b506200190789828a0162001659565b979a9699509497509295939492505050565b6000602082840312156200192c57600080fd5b5035919050565b82151581526040602082015281516040820152600060208301516060808401526200196260a08401826200176e565b905060408401516080840152809150509392505050565b6020815260006200186160208301846200176e565b60008060008060008060c08789031215620019a857600080fd5b620019b387620015e8565b9550620019c360208801620015e8565b9450604087013567ffffffffffffffff80821115620019e157600080fd5b620019ef8a838b0162001553565b9550606089013591508082111562001a0657600080fd5b62001a148a838b0162001553565b9450608089013591508082111562001a2b57600080fd5b5062001a3a89828a0162001553565b92505060a0870135801515811462001a5157600080fd5b809150509295509295509295565b6000806020838503121562001a7357600080fd5b823567ffffffffffffffff81111562001a8b57600080fd5b62001a998582860162001659565b90969095509350505050565b6000825162001ab981846020870162001748565b9190910192915050565b600181811c9082168062001ad857607f821691505b60208210810362001af957634e487b7160e01b600052602260045260246000fd5b50919050565b601f8211156200101a57600081815260208120601f850160051c8101602086101562001b285750805b601f850160051c820191505b8181101562001b495782815560010162001b34565b505050505050565b815167ffffffffffffffff81111562001b6e5762001b6e6200153d565b62001b868162001b7f845462001ac3565b8462001aff565b602080601f83116001811462001bbe576000841562001ba55750858301515b600019600386901b1c1916600185901b17855562001b49565b600085815260208120601f198616915b8281101562001bef5788860151825594840194600190910190840162001bce565b508582101562001c0e5787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b60408152600062001c3360408301856200176e565b90506001600160a01b03831660208301529392505050565b6000808335601e1984360301811262001c6357600080fd5b83018035915067ffffffffffffffff82111562001c7f57600080fd5b6020019150368190038213156200169e57600080fd5b60006bffffffffffffffffffffffff19808760601b168352808660601b16601484015250835162001cce81602885016020880162001748565b83519083019062001ce781602884016020880162001748565b016028019695505050505050565b813581556001808201602080850135601e1986360301811262001d1757600080fd5b8501803567ffffffffffffffff81111562001d3157600080fd5b803603838301131562001d4357600080fd5b62001d5b8162001d54865462001ac3565b8662001aff565b6000601f82116001811462001d94576000831562001d7b57508382018501355b600019600385901b1c1916600184901b17865562001df0565b600086815260209020601f19841690835b8281101562001dc65786850188013582559387019390890190870162001da5565b508482101562001de65760001960f88660031b161c198785880101351681555b50508683881b0186555b50505050505050604082013560028201555050565b6000808335601e1984360301811262001e1d57600080fd5b83018035915067ffffffffffffffff82111562001e3957600080fd5b6020019150600581901b36038213156200169e57600080fd5b634e487b7160e01b600052603260045260246000fd5b6000823560be1983360301811262001ab957600080fd5b803563ffffffff811681146200160057600080fd5b6000808335601e1984360301811262001eac57600080fd5b830160208101925035905067ffffffffffffffff81111562001ecd57600080fd5b8036038213156200169e57600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b803560ff811681146200160057600080fd5b604081526001600160a01b0362001f2f84620015e8565b1660408201526000602084013567ffffffffffffffff811680821462001f5457600080fd5b60608401525063ffffffff62001f6d6040860162001e7f565b16608083015262001f816060850162001e7f565b63ffffffff1660a083015262001f9b608085018562001e94565b60c08085015262001fb26101008501828462001edd565b91505062001fc360a0860162001f06565b60ff1660e084015260209092019290925292915050565b60006001820162001ffb57634e487b7160e01b600052601160045260246000fd5b5060010190565b7f19457468657265756d205369676e6564204d6573736167653a0a0000000000008152600083516200203c81601a85016020880162001748565b8351908301906200205581601a84016020880162001748565b01601a01949350505050565b634e487b7160e01b600052602160045260246000fdfe608060405234801561001057600080fd5b50338061003757604051631e4fbdf760e01b81526000600482015260240160405180910390fd5b61004081610046565b50610096565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b611002806100a56000396000f3fe6080604052600436106100b55760003560e01c80638da5cb5b1161006957806399a3ad211161004e57806399a3ad2114610269578063b1454caa14610289578063f2fde38b146102c257610129565b80638da5cb5b146102215780639730886d1461024957610129565b8063346633fb1161009a578063346633fb146101d957806336d2da90146101ec578063715018a61461020c57610129565b80630fcfbd111461017657806333a88c72146101a957610129565b36610129576040517f346633fb0000000000000000000000000000000000000000000000000000000081523360048201523460248201819052309163346633fb91906044016000604051808303818588803b15801561011357600080fd5b505af1158015610127573d6000803e3d6000fd5b005b60405162461bcd60e51b815260206004820152600b60248201527f756e737570706f7274656400000000000000000000000000000000000000000060448201526064015b60405180910390fd5b34801561018257600080fd5b50610196610191366004610945565b6102e2565b6040519081526020015b60405180910390f35b3480156101b557600080fd5b506101c96101c4366004610945565b610398565b60405190151581526020016101a0565b6101276101e736600461098f565b6103eb565b3480156101f857600080fd5b506101276102073660046109bb565b6104b7565b34801561021857600080fd5b50610127610566565b34801561022d57600080fd5b506000546040516001600160a01b0390911681526020016101a0565b34801561025557600080fd5b506101276102643660046109d8565b61057a565b34801561027557600080fd5b5061012761028436600461098f565b6106cc565b34801561029557600080fd5b506102a96102a4366004610a4e565b61077c565b60405167ffffffffffffffff90911681526020016101a0565b3480156102ce57600080fd5b506101276102dd3660046109bb565b6107d5565b600080826040516020016102f69190610b3a565b60408051601f19818403018152918152815160209283012060008181526001909352912054909150806103915760405162461bcd60e51b815260206004820152602160248201527f54686973206d65737361676520776173206e65766572207375626d697474656460448201527f2e00000000000000000000000000000000000000000000000000000000000000606482015260840161016d565b9392505050565b600080826040516020016103ac9190610b3a565b60408051601f1981840301815291815281516020928301206000818152600190935291205490915080158015906103e35750428111155b949350505050565b6000341180156103fa57508034145b61046c5760405162461bcd60e51b815260206004820152603060248201527f417474656d7074696e6720746f2073656e642076616c756520776974686f757460448201527f2070726f766964696e6720457468657200000000000000000000000000000000606482015260840161016d565b604080513381526001600160a01b0384166020820152348183015290517ff1365f826a788d6c1a955db0eed5ba8642674219c4771f8c65918617511a15609181900360600190a15050565b6104bf61082c565b6000816001600160a01b03164760405160006040518083038185875af1925050503d806000811461050c576040519150601f19603f3d011682016040523d82523d6000602084013e610511565b606091505b50509050806105625760405162461bcd60e51b815260206004820152601460248201527f6661696c65642073656e64696e672076616c7565000000000000000000000000604482015260640161016d565b5050565b61056e61082c565b6105786000610872565b565b61058261082c565b600061058e8242610c3b565b90506000836040516020016105a39190610b3a565b60408051601f198184030181529181528151602092830120600081815260019093529120549091501561063e5760405162461bcd60e51b815260206004820152602160248201527f4d657373616765207375626d6974746564206d6f7265207468616e206f6e636560448201527f2100000000000000000000000000000000000000000000000000000000000000606482015260840161016d565b6000818152600160209081526040822084905560029190610661908701876109bb565b6001600160a01b03168152602081019190915260400160009081209061068d6080870160608801610c54565b63ffffffff168152602080820192909252604001600090812080546001810182559082529190208591600402016106c48282610e2a565b505050505050565b6106d461082c565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114610721576040519150601f19603f3d011682016040523d82523d6000602084013e610726565b606091505b50509050806107775760405162461bcd60e51b815260206004820152601460248201527f6661696c65642073656e64696e672076616c7565000000000000000000000000604482015260640161016d565b505050565b6000610787336108cf565b90507fb93c37389233beb85a3a726c3f15c2d15533ee74cb602f20f490dfffef775937338288888888886040516107c49796959493929190610f44565b60405180910390a195945050505050565b6107dd61082c565b6001600160a01b038116610820576040517f1e4fbdf70000000000000000000000000000000000000000000000000000000081526000600482015260240161016d565b61082981610872565b50565b6000546001600160a01b03163314610578576040517f118cdaa700000000000000000000000000000000000000000000000000000000815233600482015260240161016d565b600080546001600160a01b0383811673ffffffffffffffffffffffffffffffffffffffff19831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381166000908152600360205260408120805467ffffffffffffffff1691600191906109028385610fa4565b92506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550919050565b600060c0828403121561093f57600080fd5b50919050565b60006020828403121561095757600080fd5b813567ffffffffffffffff81111561096e57600080fd5b6103e38482850161092d565b6001600160a01b038116811461082957600080fd5b600080604083850312156109a257600080fd5b82356109ad8161097a565b946020939093013593505050565b6000602082840312156109cd57600080fd5b81356103918161097a565b600080604083850312156109eb57600080fd5b823567ffffffffffffffff811115610a0257600080fd5b610a0e8582860161092d565b95602094909401359450505050565b63ffffffff8116811461082957600080fd5b60ff8116811461082957600080fd5b8035610a4981610a2f565b919050565b600080600080600060808688031215610a6657600080fd5b8535610a7181610a1d565b94506020860135610a8181610a1d565b9350604086013567ffffffffffffffff80821115610a9e57600080fd5b818801915088601f830112610ab257600080fd5b813581811115610ac157600080fd5b896020828501011115610ad357600080fd5b6020830195508094505050506060860135610aed81610a2f565b809150509295509295909350565b67ffffffffffffffff8116811461082957600080fd5b81835281816020850137506000828201602090810191909152601f909101601f19169091010190565b6020815260008235610b4b8161097a565b6001600160a01b0381166020840152506020830135610b6981610afb565b67ffffffffffffffff808216604085015260408501359150610b8a82610a1d565b63ffffffff808316606086015260608601359250610ba783610a1d565b80831660808601525060808501359150601e19853603018212610bc957600080fd5b6020918501918201913581811115610be057600080fd5b803603831315610bef57600080fd5b60c060a0860152610c0460e086018285610b11565b92505050610c1460a08501610a3e565b60ff811660c0850152509392505050565b634e487b7160e01b600052601160045260246000fd5b80820180821115610c4e57610c4e610c25565b92915050565b600060208284031215610c6657600080fd5b813561039181610a1d565b60008135610c4e81610a1d565b6000808335601e19843603018112610c9557600080fd5b83018035915067ffffffffffffffff821115610cb057600080fd5b602001915036819003821315610cc557600080fd5b9250929050565b634e487b7160e01b600052604160045260246000fd5b600181811c90821680610cf657607f821691505b60208210810361093f57634e487b7160e01b600052602260045260246000fd5b601f82111561077757600081815260208120601f850160051c81016020861015610d3d5750805b601f850160051c820191505b818110156106c457828155600101610d49565b67ffffffffffffffff831115610d7457610d74610ccc565b610d8883610d828354610ce2565b83610d16565b6000601f841160018114610dbc5760008515610da45750838201355b600019600387901b1c1916600186901b178355610e16565b600083815260209020601f19861690835b82811015610ded5786850135825560209485019460019092019101610dcd565b5086821015610e0a5760001960f88860031b161c19848701351681555b505060018560011b0183555b5050505050565b60008135610c4e81610a2f565b8135610e358161097a565b6001600160a01b038116905081548173ffffffffffffffffffffffffffffffffffffffff1982161783556020840135610e6d81610afb565b7bffffffffffffffff00000000000000000000000000000000000000008160a01b1690507fffffffff0000000000000000000000000000000000000000000000000000000081848285161717855560408601359250610ecb83610a1d565b921760e09190911b909116178155610f03610ee860608401610c71565b6001830163ffffffff821663ffffffff198254161781555050565b610f106080830183610c7e565b610f1e818360028601610d5c565b5050610562610f2f60a08401610e1d565b6003830160ff821660ff198254161781555050565b6001600160a01b038816815267ffffffffffffffff87166020820152600063ffffffff808816604084015280871660608401525060c06080830152610f8d60c083018587610b11565b905060ff831660a083015298975050505050505050565b67ffffffffffffffff818116838216019080821115610fc557610fc5610c25565b509291505056fea264697066735822122055bbe17521778f602b3eab0e1e16144809be200e76e1af574dfaadbe93774a6264736f6c63430008140033a2646970667358221220ae2c20528f8cafd542b7ca23dd65b4512fc4abd52f3272ceec2b92df73f7f0db64736f6c63430008140033", } // ManagementContractABI is the input ABI used to generate the binding from. diff --git a/contracts/src/management/ManagementContract.sol b/contracts/src/management/ManagementContract.sol index f64424e1b2..c948a31a98 100644 --- a/contracts/src/management/ManagementContract.sol +++ b/contracts/src/management/ManagementContract.sol @@ -82,23 +82,11 @@ contract ManagementContract is Initializable, OwnableUpgradeable { // todo: verify this enclaveID is a permissioned Sequencer enclaveID address enclaveID = ECDSA.recover(r.Hash, r.Signature); // revert if the EnclaveID is not attested - require(attested[enclaveID], string(abi.encodePacked("enclaveID not attested: ", addressToString(enclaveID)))); + require(attested[enclaveID], "enclaveID not attested"); AppendRollup(r); pushCrossChainMessages(crossChainData); } - function addressToString(address _addr) private pure returns (string memory) { - bytes32 value = bytes32(uint256(uint160(_addr))); - bytes memory alphabet = "0123456789abcdef"; - bytes memory str = new bytes(42); - str[0] = '0'; - str[1] = 'x'; - for (uint256 i = 0; i < 20; i++) { - str[2+i*2] = alphabet[uint8(value[i + 12] >> 4)]; - str[3+i*2] = alphabet[uint8(value[i + 12] & 0x0f)]; - } - return string(str); - } // InitializeNetworkSecret kickstarts the network secret, can only be called once // solc-ignore-next-line unused-param