diff --git a/deployments/sepolia/MainchainGatewayV3Logic.json b/deployments/sepolia/MainchainGatewayV3Logic.json index 66f77e76..f5dcb720 100644 --- a/deployments/sepolia/MainchainGatewayV3Logic.json +++ b/deployments/sepolia/MainchainGatewayV3Logic.json @@ -824,6 +824,53 @@ "outputs": [], "stateMutability": "payable" }, + { + "type": "function", + "name": "requestDepositForBatch", + "inputs": [ + { + "name": "_requests", + "type": "tuple[]", + "internalType": "struct Transfer.Request[]", + "components": [ + { + "name": "recipientAddr", + "type": "address", + "internalType": "address" + }, + { + "name": "tokenAddr", + "type": "address", + "internalType": "address" + }, + { + "name": "info", + "type": "tuple", + "internalType": "struct TokenInfo", + "components": [ + { + "name": "erc", + "type": "uint8", + "internalType": "enum TokenStandard" + }, + { + "name": "id", + "type": "uint256", + "internalType": "uint256" + }, + { + "name": "quantity", + "type": "uint256", + "internalType": "uint256" + } + ] + } + ] + } + ], + "outputs": [], + "stateMutability": "payable" + }, { "type": "function", "name": "revokeRole", @@ -2321,14 +2368,14 @@ ] } ], - "address": "0x1050f2E63177b5eD18f3E88D000DB3a600d664e3", + "address": "0x6fbFcF5A6DBa4822Dfc06030b74b9f05d817A9C4", "args": "0x", "ast": "", - "blockNumber": 5709370, - "bytecode": "0x60806040523480156200001157600080fd5b506000805460ff19169055620000266200002c565b620000ee565b607154610100900460ff1615620000995760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60715460ff9081161015620000ec576071805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61556180620000fe6000396000f3fe60806040526004361061039b5760003560e01c80638f34e347116101dc578063b9c3620911610102578063d55ed103116100a0578063dff525e11161006f578063dff525e114610b04578063e400327c14610b24578063e75235b814610b44578063f23a6e6114610b5c576103aa565b8063d55ed10314610a77578063d64af2a614610aa4578063dafae40814610ac4578063de981f1b14610ae4576103aa565b8063ca15c873116100dc578063ca15c873146109f2578063cdb6744414610a12578063d19773d214610a2a578063d547741f14610a57576103aa565b8063b9c3620914610986578063bc197c81146109a6578063c48549de146109d2576103aa565b8063a217fddf1161017a578063affed0e011610149578063affed0e0146108f6578063b1a2567e1461090c578063b1d08a031461092c578063b297579414610959576103aa565b8063a217fddf14610894578063a3912ec8146103a8578063ab796566146108a9578063ac78dfe8146108d6576103aa565b80639157921c116101b65780639157921c146107ff57806391d148541461081f57806393c5678f1461083f5780639dcc4da31461085f576103aa565b80638f34e3471461077e5780638f851d8a146107b25780639010d07c146107df576103aa565b806338e454b1116102c1578063504af48c1161025f5780636c1ce6701161022e5780636c1ce670146107145780637de5dedd146107345780638456cb5914610749578063865e6fd31461075e576103aa565b8063504af48c1461068f57806359122f6b146106a25780635c975abb146106cf5780636932be98146106e7576103aa565b80634b14557e1161029b5780634b14557e1461060c5780634d0d66731461061f5780634d493f4e1461063f5780634f4247a11461066f576103aa565b806338e454b1146105c25780633e70838b146105d75780633f4ba83a146105f7576103aa565b80631d4a7210116103395780632f2ff15d116103085780632f2ff15d14610556578063302d12db146105765780633644e5151461058d57806336568abe146105a2576103aa565b80631d4a7210146104c3578063248a9ca3146104f057806329b6eca9146105205780632dfdf0b514610540576103aa565b806317ce2dd41161037557806317ce2dd41461043f57806317fcb39b146104635780631a8e55b0146104835780631b6e7594146104a3576103aa565b806301ffc9a7146103b2578063065b3adf146103e7578063110a83081461041f576103aa565b366103aa576103a8610b88565b005b6103a8610b88565b3480156103be57600080fd5b506103d26103cd36600461416e565b610bbc565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b50600554610407906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b34801561042b57600080fd5b506103a861043a3660046141ad565b610c01565b34801561044b57600080fd5b5061045560755481565b6040519081526020016103de565b34801561046f57600080fd5b50607454610407906001600160a01b031681565b34801561048f57600080fd5b506103a861049e36600461420e565b610ca6565b3480156104af57600080fd5b506103a86104be366004614279565b610ce2565b3480156104cf57600080fd5b506104556104de3660046141ad565b603e6020526000908152604090205481565b3480156104fc57600080fd5b5061045561050b36600461431d565b60009081526072602052604090206001015490565b34801561052c57600080fd5b506103a861053b3660046141ad565b610d22565b34801561054c57600080fd5b5061045560765481565b34801561056257600080fd5b506103a8610571366004614336565b610dab565b34801561058257600080fd5b50610455620f424081565b34801561059957600080fd5b50607754610455565b3480156105ae57600080fd5b506103a86105bd366004614336565b610dd5565b3480156105ce57600080fd5b506103a8610e53565b3480156105e357600080fd5b506103a86105f23660046141ad565b611030565b34801561060357600080fd5b506103a861105a565b6103a861061a366004614366565b61106a565b34801561062b57600080fd5b506103d261063a366004614391565b61108d565b34801561064b57600080fd5b506103d261065a36600461431d565b607a6020526000908152604090205460ff1681565b34801561067b57600080fd5b50607f54610407906001600160a01b031681565b6103a861069d36600461443b565b6110fd565b3480156106ae57600080fd5b506104556106bd3660046141ad565b603a6020526000908152604090205481565b3480156106db57600080fd5b5060005460ff166103d2565b3480156106f357600080fd5b5061045561070236600461431d565b60796020526000908152604090205481565b34801561072057600080fd5b506103d261072f366004614515565b6113c3565b34801561074057600080fd5b506104556113cf565b34801561075557600080fd5b506103a86113f0565b34801561076a57600080fd5b506103a8610779366004614550565b611400565b34801561078a57600080fd5b506104557f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e481565b3480156107be57600080fd5b506107d26107cd36600461461b565b61141b565b6040516103de9190614712565b3480156107eb57600080fd5b506104076107fa366004614727565b61159d565b34801561080b57600080fd5b506103a861081a366004614749565b6115b5565b34801561082b57600080fd5b506103d261083a366004614336565b611839565b34801561084b57600080fd5b506103a861085a36600461420e565b611864565b34801561086b57600080fd5b5061087f61087a366004614727565b61189a565b604080519283526020830191909152016103de565b3480156108a057600080fd5b50610455600081565b3480156108b557600080fd5b506104556108c43660046141ad565b603c6020526000908152604090205481565b3480156108e257600080fd5b506103d26108f136600461431d565b6118c3565b34801561090257600080fd5b5061045560045481565b34801561091857600080fd5b506103a861092736600461420e565b6118f9565b34801561093857600080fd5b506104556109473660046141ad565b60396020526000908152604090205481565b34801561096557600080fd5b506109796109743660046141ad565b61192f565b6040516103de9190614790565b34801561099257600080fd5b506103a86109a1366004614727565b6119d2565b3480156109b257600080fd5b506107d26109c1366004614893565b63bc197c8160e01b95945050505050565b3480156109de57600080fd5b506107d26109ed36600461420e565b6119ec565b3480156109fe57600080fd5b50610455610a0d36600461431d565b611b80565b348015610a1e57600080fd5b5060375460385461087f565b348015610a3657600080fd5b50610455610a453660046141ad565b603b6020526000908152604090205481565b348015610a6357600080fd5b506103a8610a72366004614336565b611b97565b348015610a8357600080fd5b50610455610a923660046141ad565b603d6020526000908152604090205481565b348015610ab057600080fd5b506103a8610abf3660046141ad565b611bbc565b348015610ad057600080fd5b506103d2610adf36600461431d565b611bcd565b348015610af057600080fd5b50610407610aff366004614940565b611bfb565b348015610b1057600080fd5b506103a8610b1f36600461495b565b611c71565b348015610b3057600080fd5b506103a8610b3f36600461420e565b611ce6565b348015610b5057600080fd5b5060015460025461087f565b348015610b6857600080fd5b506107d2610b77366004614a18565b63f23a6e6160e01b95945050505050565b6074546001600160a01b0316331480610bab5750607f546001600160a01b031633145b15610bb257565b610bba611d1c565b565b60006001600160e01b031982166246560160e51b1480610bec57506001600160e01b031982166312c0151560e21b145b80610bfb5750610bfb82611d46565b92915050565b607154600490610100900460ff16158015610c23575060715460ff8083169116105b610c485760405162461bcd60e51b8152600401610c3f90614a80565b60405180910390fd5b60718054607f80546001600160a01b0319166001600160a01b03861617905561ff001961010060ff851661ffff199093168317171690915560405190815260008051602061550c833981519152906020015b60405180910390a15050565b610cae611d6b565b6000839003610cd0576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484611dc5565b50505050565b610cea611d6b565b6000859003610d0c576040516316ee9d3b60e11b815260040160405180910390fd5b610d1a868686868686611e9a565b505050505050565b607154600290610100900460ff16158015610d44575060715460ff8083169116105b610d605760405162461bcd60e51b8152600401610c3f90614a80565b6071805461ffff191660ff831617610100179055610d7f600b83612042565b6071805461ff001916905560405160ff8216815260008051602061550c83398151915290602001610c9a565b600082815260726020526040902060010154610dc6816120e6565b610dd083836120f0565b505050565b6001600160a01b0381163314610e455760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c3f565b610e4f8282612112565b5050565b607154600390610100900460ff16158015610e75575060715460ff8083169116105b610e915760405162461bcd60e51b8152600401610c3f90614a80565b6071805461ffff191660ff8316176101001790556000610eb1600b611bfb565b9050600080826001600160a01b031663c441c4a86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ef4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f1c9190810190614b4b565b92509250506000805b8351811015610fd957828181518110610f4057610f40614c31565b6020026020010151607e6000868481518110610f5e57610f5e614c31565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b03160217905550828181518110610fbc57610fbc614c31565b602002602001015182610fcf9190614c5d565b9150600101610f25565b50607d80546001600160601b0319166001600160601b039290921691909117905550506071805461ff00191690555060405160ff8216815260008051602061550c833981519152906020015b60405180910390a150565b611038611d6b565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b611062612134565b610bba6121a3565b6110726121f5565b61108a61108436839003830183614ccd565b3361223b565b50565b60006110976121f5565b6110f3848484808060200260200160405190810160405280939291908181526020016000905b828210156110e9576110da60608302860136819003810190614d20565b815260200190600101906110bd565b5050505050612516565b90505b9392505050565b607154610100900460ff161580801561111d5750607154600160ff909116105b806111375750303b158015611137575060715460ff166001145b6111535760405162461bcd60e51b8152600401610c3f90614a80565b6071805460ff191660011790558015611176576071805461ff0019166101001790555b61118160008c6129aa565b607589905561118f8a6129b4565b61121a6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b60208201527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5604082015246606082015230608082015260a0812060775550565b6112248887612a02565b61122e8787612a92565b5050611238612b29565b60006112448680614d6a565b905011156113055761126d6112598680614d6a565b6112666020890189614d6a565b8787611e9a565b61129361127a8680614d6a565b8660005b60200281019061128e9190614d6a565b612b76565b6112b96112a08680614d6a565b8660015b6020028101906112b49190614d6a565b611dc5565b6112df6112c68680614d6a565b8660025b6020028101906112da9190614d6a565b612c4b565b6113056112ec8680614d6a565b8660035b6020028101906113009190614d6a565b612d5c565b60005b6113156040870187614d6a565b9050811015611381576113797f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e461134f6040890189614d6a565b8481811061135f5761135f614c31565b905060200201602081019061137491906141ad565b6120f0565b600101611308565b5080156113b6576071805461ff00191690556040516001815260008051602061550c8339815191529060200160405180910390a15b5050505050505050505050565b60006110f68383612e31565b60006113eb6113e6607d546001600160601b031690565b612efc565b905090565b6113f8612134565b610bba612f32565b611408611d6b565b61141181612f6f565b610e4f8282612042565b6000600b61142881612fa5565b825186908114158061143a5750808514155b15611466576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b8060000361147e57506347c28ec560e11b9150611593565b60005b818110156115865784818151811061149b5761149b614c31565b60200260200101511561157e578686828181106114ba576114ba614c31565b90506020020160208101906114cf9190614db3565b607d80546001600160601b031981166001600160601b03918216939093011691909117905586868281811061150657611506614c31565b905060200201602081019061151b9190614db3565b607e60008b8b8581811061153157611531614c31565b905060200201602081019061154691906141ad565b6001600160a01b03168152602081019190915260400160002080546001600160601b0319166001600160601b03929092169190911790555b600101611481565b506347c28ec560e11b9250505b5095945050505050565b60008281526073602052604081206110f69083612ff1565b7f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e46115df816120e6565b60006115f86115f336859003850185614e2d565b612ffd565b905061160c6115f336859003850185614e2d565b83356000908152607960205260409020541461163b5760405163f4b8742f60e01b815260040160405180910390fd5b82356000908152607a602052604090205460ff1661166c5760405163147bfe0760e01b815260040160405180910390fd5b82356000908152607a602052604090819020805460ff19169055517fd639511b37b3b002cca6cfe6bca0d833945a5af5a045578a0627fc43b79b2630906116b69083908690614f00565b60405180910390a160006116d060808501606086016141ad565b905060006116e661012086016101008701614f86565b60028111156116f7576116f7614766565b036117be5760006117113686900386016101008701614fa1565b6001600160a01b0383166000908152603b602052604090205490915061173d90610140870135906130c7565b604082015260006117573687900387016101008801614fa1565b604083015190915061176e90610140880135614fbd565b604082015260745461178e908390339086906001600160a01b03166130e1565b6117b76117a160608801604089016141ad565b60745483919086906001600160a01b03166130e1565b50506117fa565b6117fa6117d160608601604087016141ad565b60745483906001600160a01b03166117f23689900389016101008a01614fa1565b9291906130e1565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d828560405161182b929190614f00565b60405180910390a150505050565b60009182526072602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61186c611d6b565b600083900361188e576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612b76565b6000806118a5611d6b565b6118af8484612a92565b90925090506118bc612b29565b9250929050565b60006118d7607d546001600160601b031690565b6037546118e49190614fd0565b6038546118f19084614fd0565b101592915050565b611901611d6b565b6000839003611923576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612c4b565b60408051808201909152600080825260208201526001600160a01b0382166000908152607860205260409081902081518083019092528054829060ff16600281111561197d5761197d614766565b600281111561198e5761198e614766565b815290546001600160a01b03610100909104811660209283015290820151919250166119cd57604051631b79f53b60e21b815260040160405180910390fd5b919050565b6119da611d6b565b6119e48282612a02565b610e4f612b29565b6000600b6119f981612fa5565b84838114611a28576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b80600003611a405750636242a4ef60e11b9150611b77565b6000805b82811015611b2757868682818110611a5e57611a5e614c31565b9050602002016020810190611a739190614fe7565b15611b1f57607e60008a8a84818110611a8e57611a8e614c31565b9050602002016020810190611aa391906141ad565b6001600160a01b0316815260208101919091526040016000908120546001600160601b03169290920191607e908a8a84818110611ae257611ae2614c31565b9050602002016020810190611af791906141ad565b6001600160a01b03168152602081019190915260400160002080546001600160601b03191690555b600101611a44565b50607d8054829190600090611b469084906001600160601b0316615004565b92506101000a8154816001600160601b0302191690836001600160601b0316021790555063c48549de60e01b935050505b50949350505050565b6000818152607360205260408120610bfb90613313565b600082815260726020526040902060010154611bb2816120e6565b610dd08383612112565b611bc4611d6b565b61108a816129b4565b6000611be1607d546001600160601b031690565b600154611bee9190614fd0565b6002546118f19084614fd0565b60007fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600083600f811115611c3257611c32614766565b60ff1681526020810191909152604001600020546001600160a01b03169050806119cd578160405163409140df60e11b8152600401610c3f9190615034565b611c79611d6b565b6000869003611c9b576040516316ee9d3b60e11b815260040160405180910390fd5b611ca9878787878787611e9a565b611cb6878783600061127e565b611cc387878360016112a4565b611cd087878360026112ca565b611cdd87878360036112f0565b50505050505050565b611cee611d6b565b6000839003611d10576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612d5c565b611d246121f5565b611d2c61412d565b33815260408082015134910152805161108a90829061223b565b60006001600160e01b03198216630271189760e51b1480610bfb5750610bfb8261331d565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314610bba576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c3f929190615042565b828114611df3576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015611e6457828282818110611e1057611e10614c31565b90506020020135603a6000878785818110611e2d57611e2d614c31565b9050602002016020810190611e4291906141ad565b6001600160a01b03168152602081019190915260400160002055600101611df6565b507f64557254143204d91ba2d95acb9fda1e5fea55f77efd028685765bc1e94dd4b58484848460405161182b94939291906150b9565b8483148015611ea857508481145b611ed3576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b85811015611ff857848482818110611ef057611ef0614c31565b9050602002016020810190611f0591906141ad565b60786000898985818110611f1b57611f1b614c31565b9050602002016020810190611f3091906141ad565b6001600160a01b03908116825260208201929092526040016000208054610100600160a81b0319166101009390921692909202179055828282818110611f7857611f78614c31565b9050602002016020810190611f8d9190614f86565b60786000898985818110611fa357611fa3614c31565b9050602002016020810190611fb891906141ad565b6001600160a01b031681526020810191909152604001600020805460ff19166001836002811115611feb57611feb614766565b0217905550600101611ed6565b507fa4f03cc9c0e0aeb5b71b4ec800702753f65748c2cf3064695ba8e8b46be7044486868686868660405161203296959493929190615105565b60405180910390a1505050505050565b807fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600084600f81111561207857612078614766565b60ff168152602081019190915260400160002080546001600160a01b0319166001600160a01b03928316179055811682600f8111156120b9576120b9614766565b6040517f865d1c228a8ea13709cfe61f346f7ff67f1bbd4a18ff31ad3e7147350d317c5990600090a35050565b61108a8133613342565b6120fa82826133a6565b6000828152607360205260409020610dd0908261342c565b61211c8282613441565b6000828152607360205260409020610dd090826134a8565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b031633148061217657506005546001600160a01b031633145b610bba576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c3f929190615042565b6121ab6134bd565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff1615610bba5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c3f565b604080518082018252600080825260208201526074549184015190916001600160a01b03169061226a90613506565b60208401516001600160a01b031661230b5734846040015160400151146122a45760405163129c2ce160e31b815260040160405180910390fd5b6122ad8161192f565b60408501515190925060028111156122c7576122c7614766565b825160028111156122da576122da614766565b146122f75760405162035e2b60ea1b815260040160405180910390fd5b6001600160a01b03811660208501526124a3565b341561232a5760405163129c2ce160e31b815260040160405180910390fd5b612337846020015161192f565b604085015151909250600281111561235157612351614766565b8251600281111561236457612364614766565b146123815760405162035e2b60ea1b815260040160405180910390fd5b6020840151604085015161239691859061354a565b83602001516001600160a01b0316816001600160a01b0316036124a357607454607f54604086810151810151905163095ea7b360e01b81526001600160a01b039283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015612411573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124359190615176565b50607f546040808601518101519051636f074d1f60e11b81526001600160a01b039092169163de0e9a3e916124709160040190815260200190565b600060405180830381600087803b15801561248a57600080fd5b505af115801561249e573d6000803e3d6000fd5b505050505b60768054600091826124b483615193565b91905055905060006124db858386602001516075548a6136c390949392919063ffffffff16565b90507fd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b61250782612ffd565b826040516120329291906151cc565b600082356101408401358261253160808701606088016141ad565b905061254e6125493688900388016101008901614fa1565b613506565b60016125606040880160208901615268565b600181111561257157612571614766565b1461258f5760405163182f3d8760e11b815260040160405180910390fd5b608086013546146125d15760405163092048d160e11b81526000356001600160e01b031916600482015260808701356024820152466044820152606401610c3f565b60006125e66109746080890160608a016141ad565b90506125fa61012088016101008901614f86565b600281111561260b5761260b614766565b8151600281111561261e5761261e614766565b14801561264f575061263660e0880160c089016141ad565b6001600160a01b031681602001516001600160a01b0316145b8015612660575060755460e0880135145b61267d5760405163f4b8742f60e01b815260040160405180910390fd5b600084815260796020526040902054156126aa57604051634f13df6160e01b815260040160405180910390fd5b60016126be61012089016101008a01614f86565b60028111156126cf576126cf614766565b14806126e257506126e08284612e31565b155b6126ff5760405163c51297b760e01b815260040160405180910390fd5b60006127136115f3368a90038a018a614e2d565b9050600061272360775483613798565b9050600061274361273c6101208c016101008d01614f86565b86886137d9565b60408051606081018252600080825260208201819052918101829052919a50919250819081906000805b8e51811015612881578e818151811061278857612788614c31565b6020908102919091018101518051818301516040808401518151600081529586018083528e905260ff9093169085015260608401526080830152935060019060a0016020604051602081039080840390855afa1580156127ec573d6000803e3d6000fd5b505050602060405103519450846001600160a01b0316846001600160a01b031610612838576000356001600160e01b031916604051635d3dcd3160e01b8152600401610c3f9190614712565b6001600160a01b0385166000908152607e60205260409020548594506001600160601b03166128679083615283565b91508682106128795760019550612881565b60010161276d565b50846128a057604051639e8f5f6360e01b815260040160405180910390fd5b50505060008981526079602052604090208590555050871561291b576000878152607a602052604090819020805460ff19166001179055517f89e52969465b1f1866fc5d46fd62de953962e9cb33552443cd999eba05bd20dc906129079085908d90614f00565b60405180910390a150505050505050610bfb565b6129258587613869565b61296461293860608c0160408d016141ad565b86607460009054906101000a90046001600160a01b03168d610100018036038101906117f29190614fa1565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d838b604051612995929190614f00565b60405180910390a15050505050505092915050565b610e4f82826120f0565b607480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9d2334c23be647e994f27a72c5eee42a43d5bdcfe15bb88e939103c2b114cbaf90602001611025565b80821115612a31576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b6001805460028054858455908490556004805493840190556040805183815260208101839052929391928592879290917f976f8a9c5bdf8248dec172376d6e2b80a8e3df2f0328e381c6db8e1cf138c0f8910160405180910390a450505050565b60008082841115612ac4576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b5050603780546038805492859055839055600480546001810190915560408051838152602081018590529293928592879290917f31312c97b89cc751b832d98fd459b967a2c3eef3b49757d1cf5ebaa12bb6eee1910160405180910390a49250929050565b600254603754612b399190614fd0565b603854600154612b499190614fd0565b1115610bba576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b828114612ba4576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612c1557828282818110612bc157612bc1614c31565b9050602002013560396000878785818110612bde57612bde614c31565b9050602002016020810190612bf391906141ad565b6001600160a01b03168152602081019190915260400160002055600101612ba7565b507f80bc635c452ae67f12f9b6f12ad4daa6dbbc04eeb9ebb87d354ce10c0e210dc08484848460405161182b94939291906150b9565b828114612c79576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612d2657620f4240838383818110612c9a57612c9a614c31565b905060200201351115612cc05760405163572d3bd360e11b815260040160405180910390fd5b828282818110612cd257612cd2614c31565b90506020020135603b6000878785818110612cef57612cef614c31565b9050602002016020810190612d0491906141ad565b6001600160a01b03168152602081019190915260400160002055600101612c7c565b507fb05f5de88ae0294ebb6f67c5af2fcbbd593cc6bdfe543e2869794a4c8ce3ea508484848460405161182b94939291906150b9565b828114612d8a576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612dfb57828282818110612da757612da7614c31565b90506020020135603c6000878785818110612dc457612dc4614c31565b9050602002016020810190612dd991906141ad565b6001600160a01b03168152602081019190915260400160002055600101612d8d565b507fb5d2963614d72181b4df1f993d45b83edf42fa19710f0204217ba1b3e183bb738484848460405161182b94939291906150b9565b6001600160a01b0382166000908152603a60205260408120548210612e5857506000610bfb565b6000612e676201518042615296565b6001600160a01b0385166000908152603e6020526040902054909150811115612ead5750506001600160a01b0382166000908152603c6020526040902054811015610bfb565b6001600160a01b0384166000908152603d6020526040902054612ed1908490615283565b6001600160a01b0385166000908152603c602052604090205411159150610bfb9050565b5092915050565b6000600254600160025484600154612f149190614fd0565b612f1e9190615283565b612f289190614fbd565b610bfb9190615296565b612f3a6121f5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121d83390565b806001600160a01b03163b60000361108a57604051630bfc64a360e21b81526001600160a01b0382166004820152602401610c3f565b612fae81611bfb565b6001600160a01b0316336001600160a01b03161461108a576000356001600160e01b03191681336040516320e0f98d60e21b8152600401610c3f939291906152b8565b60006110f683836138f9565b60008061300d8360400151613923565b9050600061301e8460600151613923565b905060006130728560800151604080517f1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d815282516020808301919091528301518183015291015160608201526080902090565b604080517fb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea815287516020808301919091529097015190870152606086019390935250608084015260a08301525060c0902090565b6000620f42406130d78385614fd0565b6110f69190615296565b806001600160a01b0316826001600160a01b03160361318e5760408085015190516001600160a01b0385169180156108fc02916000818181858888f1935050505061318957806001600160a01b031663d0e30db085604001516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561316557600080fd5b505af1158015613179573d6000803e3d6000fd5b505050505061318984848461396b565b610cdc565b6000845160028111156131a3576131a3614766565b03613269576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156131ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321391906152ef565b905084604001518110156132585761323b83308388604001516132369190614fbd565b6139ea565b61325857604051632f739fff60e11b815260040160405180910390fd5b61326385858561396b565b50610cdc565b60018451600281111561327e5761327e614766565b036132af5761329282848660200151613a8f565b6131895760405163c8e3a09f60e01b815260040160405180910390fd5b6002845160028111156132c4576132c4614766565b036132fa576132dd828486602001518760400151613ab6565b613189576040516334b471a760e21b815260040160405180910390fd5b6040516361e411a760e11b815260040160405180910390fd5b6000610bfb825490565b60006001600160e01b03198216635a05180f60e01b1480610bfb5750610bfb82613ae3565b61334c8282611839565b610e4f57613364816001600160a01b03166014613b18565b61336f836020613b18565b60405160200161338092919061532c565b60408051601f198184030181529082905262461bcd60e51b8252610c3f916004016153cd565b6133b08282611839565b610e4f5760008281526072602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133e83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006110f6836001600160a01b038416613cb3565b61344b8282611839565b15610e4f5760008281526072602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006110f6836001600160a01b038416613d02565b60005460ff16610bba5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c3f565b61350f81613df5565b8061351e575061351e81613e2c565b8061352d575061352d81613e54565b61108a5760405163034992a760e51b815260040160405180910390fd5b60006060818551600281111561356257613562614766565b0361363d5760408581015181516001600160a01b03878116602483015230604483015260648083019390935283518083039093018352608490910183526020820180516001600160e01b03166323b872dd60e01b1790529151918516916135c991906153e0565b6000604051808303816000865af19150503d8060008114613606576040519150601f19603f3d011682016040523d82523d6000602084013e61360b565b606091505b5090925090508180156136365750805115806136365750808060200190518101906136369190615176565b9150613696565b60018551600281111561365257613652614766565b03613667576136368385308860200151613e7d565b60028551600281111561367c5761367c614766565b036132fa5761363683853088602001518960400151613f2b565b816136bc5784843085604051639d2e4c6760e01b8152600401610c3f94939291906153fc565b5050505050565b6137336040805160a08101825260008082526020808301829052835160608082018652838252818301849052818601849052848601919091528451808201865283815280830184905280860184905281850152845190810185528281529081018290529283015290608082015290565b83815260006020820181905250604080820180516001600160a01b039788169052602080890151825190891690820152905146908301528751606084018051918916909152805195909716940193909352935182015292909201516080820152919050565b6040805161190160f01b60208083019190915260228201859052604280830185905283518084039091018152606290920190925280519101206000906110f6565b60008060006137f0607d546001600160601b031690565b90506137fb81612efc565b9250600086600281111561381157613811614766565b03613860576001600160a01b03851660009081526039602052604090205484106138415761383e81613fdf565b92505b6001600160a01b0385166000908152603a602052604090205484101591505b50935093915050565b60006138786201518042615296565b6001600160a01b0384166000908152603e60205260409020549091508111156138c7576001600160a01b03929092166000908152603e6020908152604080832094909455603d90529190912055565b6001600160a01b0383166000908152603d6020526040812080548492906138ef908490615283565b9091555050505050565b600082600001828154811061391057613910614c31565b9060005260206000200154905092915050565b604080517f353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764815282516020808301919091528301518183015291015160608201526080902090565b6000808451600281111561398157613981614766565b0361399c5761399582848660400151613ff7565b90506139c6565b6001845160028111156139b1576139b1614766565b036132fa576139958230858760200151613e7d565b80610cdc578383836040516341bd7d9160e11b8152600401610c3f93929190615432565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03166340c10f1960e01b1790529151600092861691613a42916153e0565b6000604051808303816000865af19150503d8060008114613a7f576040519150601f19603f3d011682016040523d82523d6000602084013e613a84565b606091505b509095945050505050565b6000613a9d84308585613e7d565b9050806110f657613aaf8484846139ea565b90506110f6565b6000613ac58530868686613f2b565b905080613adb57613ad8858585856140ca565b90505b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610bfb57506301ffc9a760e01b6001600160e01b0319831614610bfb565b60606000613b27836002614fd0565b613b32906002615283565b6001600160401b03811115613b4957613b4961457c565b6040519080825280601f01601f191660200182016040528015613b73576020820181803683370190505b509050600360fc1b81600081518110613b8e57613b8e614c31565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613bbd57613bbd614c31565b60200101906001600160f81b031916908160001a9053506000613be1846002614fd0565b613bec906001615283565b90505b6001811115613c64576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c2057613c20614c31565b1a60f81b828281518110613c3657613c36614c31565b60200101906001600160f81b031916908160001a90535060049490941c93613c5d81615462565b9050613bef565b5083156110f65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c3f565b6000818152600183016020526040812054613cfa57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bfb565b506000610bfb565b60008181526001830160205260408120548015613deb576000613d26600183614fbd565b8554909150600090613d3a90600190614fbd565b9050818114613d9f576000866000018281548110613d5a57613d5a614c31565b9060005260206000200154905080876000018481548110613d7d57613d7d614c31565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613db057613db0615479565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bfb565b6000915050610bfb565b60008082516002811115613e0b57613e0b614766565b148015613e1c575060008260400151115b8015610bfb575050602001511590565b6000600182516002811115613e4357613e43614766565b148015610bfb575050604001511590565b6000600282516002811115613e6b57613e6b614766565b148015610bfb57505060400151151590565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092871691613edd916153e0565b6000604051808303816000865af19150503d8060008114613f1a576040519150601f19603f3d011682016040523d82523d6000602084013e613f1f565b606091505b50909695505050505050565b604080516000808252602082019092526001600160a01b03871690613f5b9087908790879087906044810161548f565b60408051601f198184030181529181526020820180516001600160e01b0316637921219560e11b17905251613f9091906153e0565b6000604051808303816000865af19150503d8060008114613fcd576040519150601f19603f3d011682016040523d82523d6000602084013e613fd2565b606091505b5090979650505050505050565b6000603854600160385484603754612f149190614fd0565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000926060929087169161405491906153e0565b6000604051808303816000865af19150503d8060008114614091576040519150601f19603f3d011682016040523d82523d6000602084013e614096565b606091505b5090925090508180156140c15750805115806140c15750808060200190518101906140c19190615176565b95945050505050565b604080516000808252602082019092526001600160a01b038616906140f890869086908690604481016154d4565b60408051601f198184030181529181526020820180516001600160e01b031663731133e960e01b17905251613edd91906153e0565b60408051606081018252600080825260208201529081016141696040805160608101909152806000815260200160008152602001600081525090565b905290565b60006020828403121561418057600080fd5b81356001600160e01b0319811681146110f657600080fd5b6001600160a01b038116811461108a57600080fd5b6000602082840312156141bf57600080fd5b81356110f681614198565b60008083601f8401126141dc57600080fd5b5081356001600160401b038111156141f357600080fd5b6020830191508360208260051b85010111156118bc57600080fd5b6000806000806040858703121561422457600080fd5b84356001600160401b038082111561423b57600080fd5b614247888389016141ca565b9096509450602087013591508082111561426057600080fd5b5061426d878288016141ca565b95989497509550505050565b6000806000806000806060878903121561429257600080fd5b86356001600160401b03808211156142a957600080fd5b6142b58a838b016141ca565b909850965060208901359150808211156142ce57600080fd5b6142da8a838b016141ca565b909650945060408901359150808211156142f357600080fd5b5061430089828a016141ca565b979a9699509497509295939492505050565b80356119cd81614198565b60006020828403121561432f57600080fd5b5035919050565b6000806040838503121561434957600080fd5b82359150602083013561435b81614198565b809150509250929050565b600060a0828403121561437857600080fd5b50919050565b6000610160828403121561437857600080fd5b600080600061018084860312156143a757600080fd5b6143b1858561437e565b92506101608401356001600160401b03808211156143ce57600080fd5b818601915086601f8301126143e257600080fd5b8135818111156143f157600080fd5b87602060608302850101111561440657600080fd5b6020830194508093505050509250925092565b8060608101831015610bfb57600080fd5b8060808101831015610bfb57600080fd5b6000806000806000806000806000806101208b8d03121561445b57600080fd5b6144648b614312565b995061447260208c01614312565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b01356001600160401b03808211156144aa57600080fd5b6144b68e838f01614419565b955060e08d01359150808211156144cc57600080fd5b6144d88e838f0161442a565b94506101008d01359150808211156144ef57600080fd5b506144fc8d828e016141ca565b915080935050809150509295989b9194979a5092959850565b6000806040838503121561452857600080fd5b823561453381614198565b946020939093013593505050565b8035601081106119cd57600080fd5b6000806040838503121561456357600080fd5b61456c83614541565b9150602083013561435b81614198565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156145b4576145b461457c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156145e2576145e261457c565b604052919050565b60006001600160401b038211156146035761460361457c565b5060051b60200190565b801515811461108a57600080fd5b60008060008060006060868803121561463357600080fd5b85356001600160401b038082111561464a57600080fd5b61465689838a016141ca565b909750955060209150878201358181111561467057600080fd5b61467c8a828b016141ca565b90965094505060408801358181111561469457600080fd5b88019050601f810189136146a757600080fd5b80356146ba6146b5826145ea565b6145ba565b81815260059190911b8201830190838101908b8311156146d957600080fd5b928401925b828410156147005783356146f18161460d565b825292840192908401906146de565b80955050505050509295509295909350565b6001600160e01b031991909116815260200190565b6000806040838503121561473a57600080fd5b50508035926020909101359150565b6000610160828403121561475c57600080fd5b6110f6838361437e565b634e487b7160e01b600052602160045260246000fd5b6003811061478c5761478c614766565b9052565b60006040820190506147a382845161477c565b6020928301516001600160a01b0316919092015290565b600082601f8301126147cb57600080fd5b813560206147db6146b5836145ea565b8083825260208201915060208460051b8701019350868411156147fd57600080fd5b602086015b848110156148195780358352918301918301614802565b509695505050505050565b600082601f83011261483557600080fd5b81356001600160401b0381111561484e5761484e61457c565b614861601f8201601f19166020016145ba565b81815284602083860101111561487657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156148ab57600080fd5b85356148b681614198565b945060208601356148c681614198565b935060408601356001600160401b03808211156148e257600080fd5b6148ee89838a016147ba565b9450606088013591508082111561490457600080fd5b61491089838a016147ba565b9350608088013591508082111561492657600080fd5b5061493388828901614824565b9150509295509295909350565b60006020828403121561495257600080fd5b6110f682614541565b60008060008060008060006080888a03121561497657600080fd5b87356001600160401b038082111561498d57600080fd5b6149998b838c016141ca565b909950975060208a01359150808211156149b257600080fd5b6149be8b838c016141ca565b909750955060408a01359150808211156149d757600080fd5b6149e38b838c016141ca565b909550935060608a01359150808211156149fc57600080fd5b50614a098a828b0161442a565b91505092959891949750929550565b600080600080600060a08688031215614a3057600080fd5b8535614a3b81614198565b94506020860135614a4b81614198565b9350604086013592506060860135915060808601356001600160401b03811115614a7457600080fd5b61493388828901614824565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082601f830112614adf57600080fd5b81516020614aef6146b5836145ea565b8083825260208201915060208460051b870101935086841115614b1157600080fd5b602086015b84811015614819578051614b2981614198565b8352918301918301614b16565b6001600160601b038116811461108a57600080fd5b600080600060608486031215614b6057600080fd5b83516001600160401b0380821115614b7757600080fd5b614b8387838801614ace565b9450602091508186015181811115614b9a57600080fd5b614ba688828901614ace565b945050604086015181811115614bbb57600080fd5b86019050601f81018713614bce57600080fd5b8051614bdc6146b5826145ea565b81815260059190911b82018301908381019089831115614bfb57600080fd5b928401925b82841015614c22578351614c1381614b36565b82529284019290840190614c00565b80955050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160601b03818116838216019080821115612ef557612ef5614c47565b8035600381106119cd57600080fd5b600060608284031215614c9e57600080fd5b614ca6614592565b9050614cb182614c7d565b8152602082013560208201526040820135604082015292915050565b600060a08284031215614cdf57600080fd5b614ce7614592565b8235614cf281614198565b81526020830135614d0281614198565b6020820152614d148460408501614c8c565b60408201529392505050565b600060608284031215614d3257600080fd5b614d3a614592565b823560ff81168114614d4b57600080fd5b8152602083810135908201526040928301359281019290925250919050565b6000808335601e19843603018112614d8157600080fd5b8301803591506001600160401b03821115614d9b57600080fd5b6020019150600581901b36038213156118bc57600080fd5b600060208284031215614dc557600080fd5b81356110f681614b36565b8035600281106119cd57600080fd5b600060608284031215614df157600080fd5b614df9614592565b90508135614e0681614198565b81526020820135614e1681614198565b806020830152506040820135604082015292915050565b60006101608284031215614e4057600080fd5b60405160a081018181106001600160401b0382111715614e6257614e6261457c565b60405282358152614e7560208401614dd0565b6020820152614e878460408501614ddf565b6040820152614e998460a08501614ddf565b6060820152614eac846101008501614c8c565b60808201529392505050565b6002811061478c5761478c614766565b8035614ed381614198565b6001600160a01b039081168352602082013590614eef82614198565b166020830152604090810135910152565b60006101808201905083825282356020830152614f1f60208401614dd0565b614f2c6040840182614eb8565b50614f3d6060830160408501614ec8565b614f4d60c0830160a08501614ec8565b610120614f68818401614f636101008701614c7d565b61477c565b61014081850135818501528085013561016085015250509392505050565b600060208284031215614f9857600080fd5b6110f682614c7d565b600060608284031215614fb357600080fd5b6110f68383614c8c565b81810381811115610bfb57610bfb614c47565b8082028115828204841417610bfb57610bfb614c47565b600060208284031215614ff957600080fd5b81356110f68161460d565b6001600160601b03828116828216039080821115612ef557612ef5614c47565b6010811061478c5761478c614766565b60208101610bfb8284615024565b6001600160e01b03198316815260408101600b831061506357615063614766565b8260208301529392505050565b8183526000602080850194508260005b858110156150ae57813561509381614198565b6001600160a01b031687529582019590820190600101615080565b509495945050505050565b6040815260006150cd604083018688615070565b82810360208401528381526001600160fb1b038411156150ec57600080fd5b8360051b80866020840137016020019695505050505050565b60608152600061511960608301888a615070565b6020838203602085015261512e82888a615070565b848103604086015285815286925060200160005b868110156151675761515782614f6386614c7d565b9282019290820190600101615142565b509a9950505050505050505050565b60006020828403121561518857600080fd5b81516110f68161460d565b6000600182016151a5576151a5614c47565b5060010190565b6151b782825161477c565b60208181015190830152604090810151910152565b6000610180820190508382528251602083015260208301516151f16040840182614eb8565b5060408381015180516001600160a01b03908116606086015260208201511660808501529081015160a084015250606083015180516001600160a01b0390811660c085015260208201511660e084015260408101516101008401525060808301516152606101208401826151ac565b509392505050565b60006020828403121561527a57600080fd5b6110f682614dd0565b80820180821115610bfb57610bfb614c47565b6000826152b357634e487b7160e01b600052601260045260246000fd5b500490565b6001600160e01b031984168152606081016152d66020830185615024565b6001600160a01b03929092166040919091015292915050565b60006020828403121561530157600080fd5b5051919050565b60005b8381101561532357818101518382015260200161530b565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615364816017850160208801615308565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615395816028840160208801615308565b01602801949350505050565b600081518084526153b9816020860160208601615308565b601f01601f19169290920160200192915050565b6020815260006110f660208301846153a1565b600082516153f2818460208701615308565b9190910192915050565b60c0810161540a82876151ac565b6001600160a01b0394851660608301529284166080820152921660a090920191909152919050565b60a0810161544082866151ac565b6001600160a01b03938416606083015291909216608090920191909152919050565b60008161547157615471614c47565b506000190190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906154c9908301846153a1565b979650505050505050565b60018060a01b038516815283602082015282604082015260806060820152600061550160808301846153a1565b969550505050505056fe7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498a2646970667358221220a2f9831a0e3d85059cd7b361f6be20ecc705006971478a7cb6c6bfef562802c064736f6c63430008170033", + "blockNumber": 6141559, + "bytecode": "0x60806040523480156200001157600080fd5b506000805460ff19169055620000266200002c565b620000ee565b607154610100900460ff1615620000995760405162461bcd60e51b815260206004820152602760248201527f496e697469616c697a61626c653a20636f6e747261637420697320696e697469604482015266616c697a696e6760c81b606482015260840160405180910390fd5b60715460ff9081161015620000ec576071805460ff191660ff9081179091556040519081527f7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb38474024989060200160405180910390a15b565b61563b80620000fe6000396000f3fe6080604052600436106103a65760003560e01c80638f34e347116101e7578063b9c362091161010d578063d64af2a6116100a0578063e400327c1161006f578063e400327c14610b2f578063e6a4561814610b4f578063e75235b814610b62578063f23a6e6114610b7a576103b5565b8063d64af2a614610aaf578063dafae40814610acf578063de981f1b14610aef578063dff525e114610b0f576103b5565b8063cdb67444116100dc578063cdb6744414610a1d578063d19773d214610a35578063d547741f14610a62578063d55ed10314610a82576103b5565b8063b9c3620914610991578063bc197c81146109b1578063c48549de146109dd578063ca15c873146109fd576103b5565b8063a217fddf11610185578063affed0e011610154578063affed0e014610901578063b1a2567e14610917578063b1d08a0314610937578063b297579414610964576103b5565b8063a217fddf1461089f578063a3912ec8146103b3578063ab796566146108b4578063ac78dfe8146108e1576103b5565b80639157921c116101c15780639157921c1461080a57806391d148541461082a57806393c5678f1461084a5780639dcc4da31461086a576103b5565b80638f34e347146107895780638f851d8a146107bd5780639010d07c146107ea576103b5565b806338e454b1116102cc578063504af48c1161026a5780636c1ce670116102395780636c1ce6701461071f5780637de5dedd1461073f5780638456cb5914610754578063865e6fd314610769576103b5565b8063504af48c1461069a57806359122f6b146106ad5780635c975abb146106da5780636932be98146106f2576103b5565b80634b14557e116102a65780634b14557e146106175780634d0d66731461062a5780634d493f4e1461064a5780634f4247a11461067a576103b5565b806338e454b1146105cd5780633e70838b146105e25780633f4ba83a14610602576103b5565b80631d4a7210116103445780632f2ff15d116103135780632f2ff15d14610561578063302d12db146105815780633644e5151461059857806336568abe146105ad576103b5565b80631d4a7210146104ce578063248a9ca3146104fb57806329b6eca91461052b5780632dfdf0b51461054b576103b5565b806317ce2dd41161038057806317ce2dd41461044a57806317fcb39b1461046e5780631a8e55b01461048e5780631b6e7594146104ae576103b5565b806301ffc9a7146103bd578063065b3adf146103f2578063110a83081461042a576103b5565b366103b5576103b3610ba6565b005b6103b3610ba6565b3480156103c957600080fd5b506103dd6103d83660046141d4565b610bda565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50600554610412906001600160a01b031681565b6040516001600160a01b0390911681526020016103e9565b34801561043657600080fd5b506103b3610445366004614213565b610c20565b34801561045657600080fd5b5061046060755481565b6040519081526020016103e9565b34801561047a57600080fd5b50607454610412906001600160a01b031681565b34801561049a57600080fd5b506103b36104a9366004614274565b610cc5565b3480156104ba57600080fd5b506103b36104c93660046142df565b610d01565b3480156104da57600080fd5b506104606104e9366004614213565b603e6020526000908152604090205481565b34801561050757600080fd5b50610460610516366004614383565b60009081526072602052604090206001015490565b34801561053757600080fd5b506103b3610546366004614213565b610d41565b34801561055757600080fd5b5061046060765481565b34801561056d57600080fd5b506103b361057c36600461439c565b610dca565b34801561058d57600080fd5b50610460620f424081565b3480156105a457600080fd5b50607754610460565b3480156105b957600080fd5b506103b36105c836600461439c565b610df4565b3480156105d957600080fd5b506103b3610e72565b3480156105ee57600080fd5b506103b36105fd366004614213565b61104f565b34801561060e57600080fd5b506103b3611079565b6103b36106253660046143cc565b611089565b34801561063657600080fd5b506103dd6106453660046143f7565b6110ac565b34801561065657600080fd5b506103dd610665366004614383565b607a6020526000908152604090205460ff1681565b34801561068657600080fd5b50607f54610412906001600160a01b031681565b6103b36106a83660046144a1565b61111c565b3480156106b957600080fd5b506104606106c8366004614213565b603a6020526000908152604090205481565b3480156106e657600080fd5b5060005460ff166103dd565b3480156106fe57600080fd5b5061046061070d366004614383565b60796020526000908152604090205481565b34801561072b57600080fd5b506103dd61073a36600461457b565b6113e2565b34801561074b57600080fd5b506104606113ee565b34801561076057600080fd5b506103b361140f565b34801561077557600080fd5b506103b36107843660046145b6565b61141f565b34801561079557600080fd5b506104607f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e481565b3480156107c957600080fd5b506107dd6107d8366004614681565b61143a565b6040516103e99190614778565b3480156107f657600080fd5b5061041261080536600461478d565b6115bc565b34801561081657600080fd5b506103b36108253660046147af565b6115d4565b34801561083657600080fd5b506103dd61084536600461439c565b611858565b34801561085657600080fd5b506103b3610865366004614274565b611883565b34801561087657600080fd5b5061088a61088536600461478d565b6118b9565b604080519283526020830191909152016103e9565b3480156108ab57600080fd5b50610460600081565b3480156108c057600080fd5b506104606108cf366004614213565b603c6020526000908152604090205481565b3480156108ed57600080fd5b506103dd6108fc366004614383565b6118e2565b34801561090d57600080fd5b5061046060045481565b34801561092357600080fd5b506103b3610932366004614274565b611918565b34801561094357600080fd5b50610460610952366004614213565b60396020526000908152604090205481565b34801561097057600080fd5b5061098461097f366004614213565b61194e565b6040516103e991906147f6565b34801561099d57600080fd5b506103b36109ac36600461478d565b6119f1565b3480156109bd57600080fd5b506107dd6109cc3660046148f9565b63bc197c8160e01b95945050505050565b3480156109e957600080fd5b506107dd6109f8366004614274565b611a0b565b348015610a0957600080fd5b50610460610a18366004614383565b611b9f565b348015610a2957600080fd5b5060375460385461088a565b348015610a4157600080fd5b50610460610a50366004614213565b603b6020526000908152604090205481565b348015610a6e57600080fd5b506103b3610a7d36600461439c565b611bb6565b348015610a8e57600080fd5b50610460610a9d366004614213565b603d6020526000908152604090205481565b348015610abb57600080fd5b506103b3610aca366004614213565b611bdb565b348015610adb57600080fd5b506103dd610aea366004614383565b611bec565b348015610afb57600080fd5b50610412610b0a3660046149a6565b611c1a565b348015610b1b57600080fd5b506103b3610b2a3660046149c1565b611c90565b348015610b3b57600080fd5b506103b3610b4a366004614274565b611d05565b6103b3610b5d366004614a7e565b611d3b565b348015610b6e57600080fd5b5060015460025461088a565b348015610b8657600080fd5b506107dd610b95366004614af2565b63f23a6e6160e01b95945050505050565b6074546001600160a01b0316331480610bc95750607f546001600160a01b031633145b15610bd057565b610bd8611d82565b565b60006001600160e01b03198216631dcdd2c760e31b1480610c0b57506001600160e01b031982166312c0151560e21b145b80610c1a5750610c1a82611dac565b92915050565b607154600490610100900460ff16158015610c42575060715460ff8083169116105b610c675760405162461bcd60e51b8152600401610c5e90614b5a565b60405180910390fd5b60718054607f80546001600160a01b0319166001600160a01b03861617905561ff001961010060ff851661ffff19909316831717169091556040519081526000805160206155e6833981519152906020015b60405180910390a15050565b610ccd611dd1565b6000839003610cef576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484611e2b565b50505050565b610d09611dd1565b6000859003610d2b576040516316ee9d3b60e11b815260040160405180910390fd5b610d39868686868686611f00565b505050505050565b607154600290610100900460ff16158015610d63575060715460ff8083169116105b610d7f5760405162461bcd60e51b8152600401610c5e90614b5a565b6071805461ffff191660ff831617610100179055610d9e600b836120a8565b6071805461ff001916905560405160ff821681526000805160206155e683398151915290602001610cb9565b600082815260726020526040902060010154610de58161214c565b610def8383612156565b505050565b6001600160a01b0381163314610e645760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c5e565b610e6e8282612178565b5050565b607154600390610100900460ff16158015610e94575060715460ff8083169116105b610eb05760405162461bcd60e51b8152600401610c5e90614b5a565b6071805461ffff191660ff8316176101001790556000610ed0600b611c1a565b9050600080826001600160a01b031663c441c4a86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f3b9190810190614c25565b92509250506000805b8351811015610ff857828181518110610f5f57610f5f614d0b565b6020026020010151607e6000868481518110610f7d57610f7d614d0b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b03160217905550828181518110610fdb57610fdb614d0b565b602002602001015182610fee9190614d37565b9150600101610f44565b50607d80546001600160601b0319166001600160601b039290921691909117905550506071805461ff00191690555060405160ff821681526000805160206155e6833981519152906020015b60405180910390a150565b611057611dd1565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61108161219a565b610bd8612209565b61109161225b565b6110a96110a336839003830183614da7565b336122a1565b50565b60006110b661225b565b611112848484808060200260200160405190810160405280939291908181526020016000905b82821015611108576110f960608302860136819003810190614dfa565b815260200190600101906110dc565b505050505061257c565b90505b9392505050565b607154610100900460ff161580801561113c5750607154600160ff909116105b806111565750303b158015611156575060715460ff166001145b6111725760405162461bcd60e51b8152600401610c5e90614b5a565b6071805460ff191660011790558015611195576071805461ff0019166101001790555b6111a060008c612a10565b60758990556111ae8a612a1a565b6112396040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b60208201527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5604082015246606082015230608082015260a0812060775550565b6112438887612a68565b61124d8787612af8565b5050611257612b8f565b60006112638680614e44565b905011156113245761128c6112788680614e44565b6112856020890189614e44565b8787611f00565b6112b26112998680614e44565b8660005b6020028101906112ad9190614e44565b612bdc565b6112d86112bf8680614e44565b8660015b6020028101906112d39190614e44565b611e2b565b6112fe6112e58680614e44565b8660025b6020028101906112f99190614e44565b612cb1565b61132461130b8680614e44565b8660035b60200281019061131f9190614e44565b612dc2565b60005b6113346040870187614e44565b90508110156113a0576113987f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e461136e6040890189614e44565b8481811061137e5761137e614d0b565b90506020020160208101906113939190614213565b612156565b600101611327565b5080156113d5576071805461ff0019169055604051600181526000805160206155e68339815191529060200160405180910390a15b5050505050505050505050565b60006111158383612e97565b600061140a611405607d546001600160601b031690565b612f62565b905090565b61141761219a565b610bd8612f98565b611427611dd1565b61143081612fd5565b610e6e82826120a8565b6000600b6114478161300b565b82518690811415806114595750808514155b15611485576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b8060000361149d57506347c28ec560e11b91506115b2565b60005b818110156115a5578481815181106114ba576114ba614d0b565b60200260200101511561159d578686828181106114d9576114d9614d0b565b90506020020160208101906114ee9190614e8d565b607d80546001600160601b031981166001600160601b03918216939093011691909117905586868281811061152557611525614d0b565b905060200201602081019061153a9190614e8d565b607e60008b8b8581811061155057611550614d0b565b90506020020160208101906115659190614213565b6001600160a01b03168152602081019190915260400160002080546001600160601b0319166001600160601b03929092169190911790555b6001016114a0565b506347c28ec560e11b9250505b5095945050505050565b60008281526073602052604081206111159083613057565b7f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e46115fe8161214c565b600061161761161236859003850185614f07565b613063565b905061162b61161236859003850185614f07565b83356000908152607960205260409020541461165a5760405163f4b8742f60e01b815260040160405180910390fd5b82356000908152607a602052604090205460ff1661168b5760405163147bfe0760e01b815260040160405180910390fd5b82356000908152607a602052604090819020805460ff19169055517fd639511b37b3b002cca6cfe6bca0d833945a5af5a045578a0627fc43b79b2630906116d59083908690614fda565b60405180910390a160006116ef6080850160608601614213565b9050600061170561012086016101008701615060565b6002811115611716576117166147cc565b036117dd576000611730368690038601610100870161507b565b6001600160a01b0383166000908152603b602052604090205490915061175c906101408701359061312d565b60408201526000611776368790038701610100880161507b565b604083015190915061178d90610140880135615097565b60408201526074546117ad908390339086906001600160a01b0316613147565b6117d66117c06060880160408901614213565b60745483919086906001600160a01b0316613147565b5050611819565b6118196117f06060860160408701614213565b60745483906001600160a01b03166118113689900389016101008a0161507b565b929190613147565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d828560405161184a929190614fda565b60405180910390a150505050565b60009182526072602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61188b611dd1565b60008390036118ad576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612bdc565b6000806118c4611dd1565b6118ce8484612af8565b90925090506118db612b8f565b9250929050565b60006118f6607d546001600160601b031690565b60375461190391906150aa565b60385461191090846150aa565b101592915050565b611920611dd1565b6000839003611942576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612cb1565b60408051808201909152600080825260208201526001600160a01b0382166000908152607860205260409081902081518083019092528054829060ff16600281111561199c5761199c6147cc565b60028111156119ad576119ad6147cc565b815290546001600160a01b03610100909104811660209283015290820151919250166119ec57604051631b79f53b60e21b815260040160405180910390fd5b919050565b6119f9611dd1565b611a038282612a68565b610e6e612b8f565b6000600b611a188161300b565b84838114611a47576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b80600003611a5f5750636242a4ef60e11b9150611b96565b6000805b82811015611b4657868682818110611a7d57611a7d614d0b565b9050602002016020810190611a9291906150c1565b15611b3e57607e60008a8a84818110611aad57611aad614d0b565b9050602002016020810190611ac29190614213565b6001600160a01b0316815260208101919091526040016000908120546001600160601b03169290920191607e908a8a84818110611b0157611b01614d0b565b9050602002016020810190611b169190614213565b6001600160a01b03168152602081019190915260400160002080546001600160601b03191690555b600101611a63565b50607d8054829190600090611b659084906001600160601b03166150de565b92506101000a8154816001600160601b0302191690836001600160601b0316021790555063c48549de60e01b935050505b50949350505050565b6000818152607360205260408120610c1a90613379565b600082815260726020526040902060010154611bd18161214c565b610def8383612178565b611be3611dd1565b6110a981612a1a565b6000611c00607d546001600160601b031690565b600154611c0d91906150aa565b60025461191090846150aa565b60007fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600083600f811115611c5157611c516147cc565b60ff1681526020810191909152604001600020546001600160a01b03169050806119ec578160405163409140df60e11b8152600401610c5e919061510e565b611c98611dd1565b6000869003611cba576040516316ee9d3b60e11b815260040160405180910390fd5b611cc8878787878787611f00565b611cd5878783600061129d565b611ce287878360016112c3565b611cef87878360026112e9565b611cfc878783600361130f565b50505050505050565b611d0d611dd1565b6000839003611d2f576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612dc2565b611d4361225b565b8060005b81811015610cfb57611d7a848483818110611d6457611d64614d0b565b905060a002018036038101906110a39190614da7565b600101611d47565b611d8a61225b565b611d92614193565b3381526040808201513491015280516110a99082906122a1565b60006001600160e01b03198216630271189760e51b1480610c1a5750610c1a82613383565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314610bd8576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c5e92919061511c565b828114611e59576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015611eca57828282818110611e7657611e76614d0b565b90506020020135603a6000878785818110611e9357611e93614d0b565b9050602002016020810190611ea89190614213565b6001600160a01b03168152602081019190915260400160002055600101611e5c565b507f64557254143204d91ba2d95acb9fda1e5fea55f77efd028685765bc1e94dd4b58484848460405161184a9493929190615193565b8483148015611f0e57508481145b611f39576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b8581101561205e57848482818110611f5657611f56614d0b565b9050602002016020810190611f6b9190614213565b60786000898985818110611f8157611f81614d0b565b9050602002016020810190611f969190614213565b6001600160a01b03908116825260208201929092526040016000208054610100600160a81b0319166101009390921692909202179055828282818110611fde57611fde614d0b565b9050602002016020810190611ff39190615060565b6078600089898581811061200957612009614d0b565b905060200201602081019061201e9190614213565b6001600160a01b031681526020810191909152604001600020805460ff19166001836002811115612051576120516147cc565b0217905550600101611f3c565b507fa4f03cc9c0e0aeb5b71b4ec800702753f65748c2cf3064695ba8e8b46be70444868686868686604051612098969594939291906151df565b60405180910390a1505050505050565b807fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600084600f8111156120de576120de6147cc565b60ff168152602081019190915260400160002080546001600160a01b0319166001600160a01b03928316179055811682600f81111561211f5761211f6147cc565b6040517f865d1c228a8ea13709cfe61f346f7ff67f1bbd4a18ff31ad3e7147350d317c5990600090a35050565b6110a981336133a8565b612160828261340c565b6000828152607360205260409020610def9082613492565b61218282826134a7565b6000828152607360205260409020610def908261350e565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314806121dc57506005546001600160a01b031633145b610bd8576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c5e92919061511c565b612211613523565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff1615610bd85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c5e565b604080518082018252600080825260208201526074549184015190916001600160a01b0316906122d09061356c565b60208401516001600160a01b031661237157348460400151604001511461230a5760405163129c2ce160e31b815260040160405180910390fd5b6123138161194e565b604085015151909250600281111561232d5761232d6147cc565b82516002811115612340576123406147cc565b1461235d5760405162035e2b60ea1b815260040160405180910390fd5b6001600160a01b0381166020850152612509565b34156123905760405163129c2ce160e31b815260040160405180910390fd5b61239d846020015161194e565b60408501515190925060028111156123b7576123b76147cc565b825160028111156123ca576123ca6147cc565b146123e75760405162035e2b60ea1b815260040160405180910390fd5b602084015160408501516123fc9185906135b0565b83602001516001600160a01b0316816001600160a01b03160361250957607454607f54604086810151810151905163095ea7b360e01b81526001600160a01b039283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015612477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249b9190615250565b50607f546040808601518101519051636f074d1f60e11b81526001600160a01b039092169163de0e9a3e916124d69160040190815260200190565b600060405180830381600087803b1580156124f057600080fd5b505af1158015612504573d6000803e3d6000fd5b505050505b607680546000918261251a8361526d565b9190505590506000612541858386602001516075548a61372990949392919063ffffffff16565b90507fd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b61256d82613063565b826040516120989291906152a6565b60008235610140840135826125976080870160608801614213565b90506125b46125af368890038801610100890161507b565b61356c565b60016125c66040880160208901615342565b60018111156125d7576125d76147cc565b146125f55760405163182f3d8760e11b815260040160405180910390fd5b608086013546146126375760405163092048d160e11b81526000356001600160e01b031916600482015260808701356024820152466044820152606401610c5e565b600061264c61097f6080890160608a01614213565b905061266061012088016101008901615060565b6002811115612671576126716147cc565b81516002811115612684576126846147cc565b1480156126b5575061269c60e0880160c08901614213565b6001600160a01b031681602001516001600160a01b0316145b80156126c6575060755460e0880135145b6126e35760405163f4b8742f60e01b815260040160405180910390fd5b6000848152607960205260409020541561271057604051634f13df6160e01b815260040160405180910390fd5b600161272461012089016101008a01615060565b6002811115612735576127356147cc565b148061274857506127468284612e97565b155b6127655760405163c51297b760e01b815260040160405180910390fd5b6000612779611612368a90038a018a614f07565b90506000612789607754836137fe565b905060006127a96127a26101208c016101008d01615060565b868861383f565b60408051606081018252600080825260208201819052918101829052919a50919250819081906000805b8e518110156128e7578e81815181106127ee576127ee614d0b565b6020908102919091018101518051818301516040808401518151600081529586018083528e905260ff9093169085015260608401526080830152935060019060a0016020604051602081039080840390855afa158015612852573d6000803e3d6000fd5b505050602060405103519450846001600160a01b0316846001600160a01b03161061289e576000356001600160e01b031916604051635d3dcd3160e01b8152600401610c5e9190614778565b6001600160a01b0385166000908152607e60205260409020548594506001600160601b03166128cd908361535d565b91508682106128df57600195506128e7565b6001016127d3565b508461290657604051639e8f5f6360e01b815260040160405180910390fd5b505050600089815260796020526040902085905550508715612981576000878152607a602052604090819020805460ff19166001179055517f89e52969465b1f1866fc5d46fd62de953962e9cb33552443cd999eba05bd20dc9061296d9085908d90614fda565b60405180910390a150505050505050610c1a565b61298b85876138cf565b6129ca61299e60608c0160408d01614213565b86607460009054906101000a90046001600160a01b03168d61010001803603810190611811919061507b565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d838b6040516129fb929190614fda565b60405180910390a15050505050505092915050565b610e6e8282612156565b607480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9d2334c23be647e994f27a72c5eee42a43d5bdcfe15bb88e939103c2b114cbaf90602001611044565b80821115612a97576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b6001805460028054858455908490556004805493840190556040805183815260208101839052929391928592879290917f976f8a9c5bdf8248dec172376d6e2b80a8e3df2f0328e381c6db8e1cf138c0f8910160405180910390a450505050565b60008082841115612b2a576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b5050603780546038805492859055839055600480546001810190915560408051838152602081018590529293928592879290917f31312c97b89cc751b832d98fd459b967a2c3eef3b49757d1cf5ebaa12bb6eee1910160405180910390a49250929050565b600254603754612b9f91906150aa565b603854600154612baf91906150aa565b1115610bd8576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b828114612c0a576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612c7b57828282818110612c2757612c27614d0b565b9050602002013560396000878785818110612c4457612c44614d0b565b9050602002016020810190612c599190614213565b6001600160a01b03168152602081019190915260400160002055600101612c0d565b507f80bc635c452ae67f12f9b6f12ad4daa6dbbc04eeb9ebb87d354ce10c0e210dc08484848460405161184a9493929190615193565b828114612cdf576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612d8c57620f4240838383818110612d0057612d00614d0b565b905060200201351115612d265760405163572d3bd360e11b815260040160405180910390fd5b828282818110612d3857612d38614d0b565b90506020020135603b6000878785818110612d5557612d55614d0b565b9050602002016020810190612d6a9190614213565b6001600160a01b03168152602081019190915260400160002055600101612ce2565b507fb05f5de88ae0294ebb6f67c5af2fcbbd593cc6bdfe543e2869794a4c8ce3ea508484848460405161184a9493929190615193565b828114612df0576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612e6157828282818110612e0d57612e0d614d0b565b90506020020135603c6000878785818110612e2a57612e2a614d0b565b9050602002016020810190612e3f9190614213565b6001600160a01b03168152602081019190915260400160002055600101612df3565b507fb5d2963614d72181b4df1f993d45b83edf42fa19710f0204217ba1b3e183bb738484848460405161184a9493929190615193565b6001600160a01b0382166000908152603a60205260408120548210612ebe57506000610c1a565b6000612ecd6201518042615370565b6001600160a01b0385166000908152603e6020526040902054909150811115612f135750506001600160a01b0382166000908152603c6020526040902054811015610c1a565b6001600160a01b0384166000908152603d6020526040902054612f3790849061535d565b6001600160a01b0385166000908152603c602052604090205411159150610c1a9050565b5092915050565b6000600254600160025484600154612f7a91906150aa565b612f84919061535d565b612f8e9190615097565b610c1a9190615370565b612fa061225b565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861223e3390565b806001600160a01b03163b6000036110a957604051630bfc64a360e21b81526001600160a01b0382166004820152602401610c5e565b61301481611c1a565b6001600160a01b0316336001600160a01b0316146110a9576000356001600160e01b03191681336040516320e0f98d60e21b8152600401610c5e93929190615392565b6000611115838361395f565b6000806130738360400151613989565b905060006130848460600151613989565b905060006130d88560800151604080517f1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d815282516020808301919091528301518183015291015160608201526080902090565b604080517fb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea815287516020808301919091529097015190870152606086019390935250608084015260a08301525060c0902090565b6000620f424061313d83856150aa565b6111159190615370565b806001600160a01b0316826001600160a01b0316036131f45760408085015190516001600160a01b0385169180156108fc02916000818181858888f193505050506131ef57806001600160a01b031663d0e30db085604001516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156131cb57600080fd5b505af11580156131df573d6000803e3d6000fd5b50505050506131ef8484846139d1565b610cfb565b600084516002811115613209576132096147cc565b036132cf576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015613255573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061327991906153c9565b905084604001518110156132be576132a1833083886040015161329c9190615097565b613a50565b6132be57604051632f739fff60e11b815260040160405180910390fd5b6132c98585856139d1565b50610cfb565b6001845160028111156132e4576132e46147cc565b03613315576132f882848660200151613af5565b6131ef5760405163c8e3a09f60e01b815260040160405180910390fd5b60028451600281111561332a5761332a6147cc565b0361336057613343828486602001518760400151613b1c565b6131ef576040516334b471a760e21b815260040160405180910390fd5b6040516361e411a760e11b815260040160405180910390fd5b6000610c1a825490565b60006001600160e01b03198216635a05180f60e01b1480610c1a5750610c1a82613b49565b6133b28282611858565b610e6e576133ca816001600160a01b03166014613b7e565b6133d5836020613b7e565b6040516020016133e6929190615406565b60408051601f198184030181529082905262461bcd60e51b8252610c5e916004016154a7565b6134168282611858565b610e6e5760008281526072602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561344e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611115836001600160a01b038416613d19565b6134b18282611858565b15610e6e5760008281526072602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611115836001600160a01b038416613d68565b60005460ff16610bd85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c5e565b61357581613e5b565b80613584575061358481613e92565b80613593575061359381613eba565b6110a95760405163034992a760e51b815260040160405180910390fd5b6000606081855160028111156135c8576135c86147cc565b036136a35760408581015181516001600160a01b03878116602483015230604483015260648083019390935283518083039093018352608490910183526020820180516001600160e01b03166323b872dd60e01b17905291519185169161362f91906154ba565b6000604051808303816000865af19150503d806000811461366c576040519150601f19603f3d011682016040523d82523d6000602084013e613671565b606091505b50909250905081801561369c57508051158061369c57508080602001905181019061369c9190615250565b91506136fc565b6001855160028111156136b8576136b86147cc565b036136cd5761369c8385308860200151613ee3565b6002855160028111156136e2576136e26147cc565b036133605761369c83853088602001518960400151613f91565b816137225784843085604051639d2e4c6760e01b8152600401610c5e94939291906154d6565b5050505050565b6137996040805160a08101825260008082526020808301829052835160608082018652838252818301849052818601849052848601919091528451808201865283815280830184905280860184905281850152845190810185528281529081018290529283015290608082015290565b83815260006020820181905250604080820180516001600160a01b039788169052602080890151825190891690820152905146908301528751606084018051918916909152805195909716940193909352935182015292909201516080820152919050565b6040805161190160f01b6020808301919091526022820185905260428083018590528351808403909101815260629092019092528051910120600090611115565b6000806000613856607d546001600160601b031690565b905061386181612f62565b92506000866002811115613877576138776147cc565b036138c6576001600160a01b03851660009081526039602052604090205484106138a7576138a481614045565b92505b6001600160a01b0385166000908152603a602052604090205484101591505b50935093915050565b60006138de6201518042615370565b6001600160a01b0384166000908152603e602052604090205490915081111561392d576001600160a01b03929092166000908152603e6020908152604080832094909455603d90529190912055565b6001600160a01b0383166000908152603d60205260408120805484929061395590849061535d565b9091555050505050565b600082600001828154811061397657613976614d0b565b9060005260206000200154905092915050565b604080517f353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764815282516020808301919091528301518183015291015160608201526080902090565b600080845160028111156139e7576139e76147cc565b03613a02576139fb8284866040015161405d565b9050613a2c565b600184516002811115613a1757613a176147cc565b03613360576139fb8230858760200151613ee3565b80610cfb578383836040516341bd7d9160e11b8152600401610c5e9392919061550c565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03166340c10f1960e01b1790529151600092861691613aa8916154ba565b6000604051808303816000865af19150503d8060008114613ae5576040519150601f19603f3d011682016040523d82523d6000602084013e613aea565b606091505b509095945050505050565b6000613b0384308585613ee3565b90508061111557613b15848484613a50565b9050611115565b6000613b2b8530868686613f91565b905080613b4157613b3e85858585614130565b90505b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610c1a57506301ffc9a760e01b6001600160e01b0319831614610c1a565b60606000613b8d8360026150aa565b613b9890600261535d565b6001600160401b03811115613baf57613baf6145e2565b6040519080825280601f01601f191660200182016040528015613bd9576020820181803683370190505b509050600360fc1b81600081518110613bf457613bf4614d0b565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c2357613c23614d0b565b60200101906001600160f81b031916908160001a9053506000613c478460026150aa565b613c5290600161535d565b90505b6001811115613cca576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c8657613c86614d0b565b1a60f81b828281518110613c9c57613c9c614d0b565b60200101906001600160f81b031916908160001a90535060049490941c93613cc38161553c565b9050613c55565b5083156111155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c5e565b6000818152600183016020526040812054613d6057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c1a565b506000610c1a565b60008181526001830160205260408120548015613e51576000613d8c600183615097565b8554909150600090613da090600190615097565b9050818114613e05576000866000018281548110613dc057613dc0614d0b565b9060005260206000200154905080876000018481548110613de357613de3614d0b565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613e1657613e16615553565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c1a565b6000915050610c1a565b60008082516002811115613e7157613e716147cc565b148015613e82575060008260400151115b8015610c1a575050602001511590565b6000600182516002811115613ea957613ea96147cc565b148015610c1a575050604001511590565b6000600282516002811115613ed157613ed16147cc565b148015610c1a57505060400151151590565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092871691613f43916154ba565b6000604051808303816000865af19150503d8060008114613f80576040519150601f19603f3d011682016040523d82523d6000602084013e613f85565b606091505b50909695505050505050565b604080516000808252602082019092526001600160a01b03871690613fc190879087908790879060448101615569565b60408051601f198184030181529181526020820180516001600160e01b0316637921219560e11b17905251613ff691906154ba565b6000604051808303816000865af19150503d8060008114614033576040519150601f19603f3d011682016040523d82523d6000602084013e614038565b606091505b5090979650505050505050565b6000603854600160385484603754612f7a91906150aa565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092606092908716916140ba91906154ba565b6000604051808303816000865af19150503d80600081146140f7576040519150601f19603f3d011682016040523d82523d6000602084013e6140fc565b606091505b5090925090508180156141275750805115806141275750808060200190518101906141279190615250565b95945050505050565b604080516000808252602082019092526001600160a01b0386169061415e90869086908690604481016155ae565b60408051601f198184030181529181526020820180516001600160e01b031663731133e960e01b17905251613f4391906154ba565b60408051606081018252600080825260208201529081016141cf6040805160608101909152806000815260200160008152602001600081525090565b905290565b6000602082840312156141e657600080fd5b81356001600160e01b03198116811461111557600080fd5b6001600160a01b03811681146110a957600080fd5b60006020828403121561422557600080fd5b8135611115816141fe565b60008083601f84011261424257600080fd5b5081356001600160401b0381111561425957600080fd5b6020830191508360208260051b85010111156118db57600080fd5b6000806000806040858703121561428a57600080fd5b84356001600160401b03808211156142a157600080fd5b6142ad88838901614230565b909650945060208701359150808211156142c657600080fd5b506142d387828801614230565b95989497509550505050565b600080600080600080606087890312156142f857600080fd5b86356001600160401b038082111561430f57600080fd5b61431b8a838b01614230565b9098509650602089013591508082111561433457600080fd5b6143408a838b01614230565b9096509450604089013591508082111561435957600080fd5b5061436689828a01614230565b979a9699509497509295939492505050565b80356119ec816141fe565b60006020828403121561439557600080fd5b5035919050565b600080604083850312156143af57600080fd5b8235915060208301356143c1816141fe565b809150509250929050565b600060a082840312156143de57600080fd5b50919050565b600061016082840312156143de57600080fd5b6000806000610180848603121561440d57600080fd5b61441785856143e4565b92506101608401356001600160401b038082111561443457600080fd5b818601915086601f83011261444857600080fd5b81358181111561445757600080fd5b87602060608302850101111561446c57600080fd5b6020830194508093505050509250925092565b8060608101831015610c1a57600080fd5b8060808101831015610c1a57600080fd5b6000806000806000806000806000806101208b8d0312156144c157600080fd5b6144ca8b614378565b99506144d860208c01614378565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b01356001600160401b038082111561451057600080fd5b61451c8e838f0161447f565b955060e08d013591508082111561453257600080fd5b61453e8e838f01614490565b94506101008d013591508082111561455557600080fd5b506145628d828e01614230565b915080935050809150509295989b9194979a5092959850565b6000806040838503121561458e57600080fd5b8235614599816141fe565b946020939093013593505050565b8035601081106119ec57600080fd5b600080604083850312156145c957600080fd5b6145d2836145a7565b915060208301356143c1816141fe565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b038111828210171561461a5761461a6145e2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614648576146486145e2565b604052919050565b60006001600160401b03821115614669576146696145e2565b5060051b60200190565b80151581146110a957600080fd5b60008060008060006060868803121561469957600080fd5b85356001600160401b03808211156146b057600080fd5b6146bc89838a01614230565b90975095506020915087820135818111156146d657600080fd5b6146e28a828b01614230565b9096509450506040880135818111156146fa57600080fd5b88019050601f8101891361470d57600080fd5b803561472061471b82614650565b614620565b81815260059190911b8201830190838101908b83111561473f57600080fd5b928401925b8284101561476657833561475781614673565b82529284019290840190614744565b80955050505050509295509295909350565b6001600160e01b031991909116815260200190565b600080604083850312156147a057600080fd5b50508035926020909101359150565b600061016082840312156147c257600080fd5b61111583836143e4565b634e487b7160e01b600052602160045260246000fd5b600381106147f2576147f26147cc565b9052565b60006040820190506148098284516147e2565b6020928301516001600160a01b0316919092015290565b600082601f83011261483157600080fd5b8135602061484161471b83614650565b8083825260208201915060208460051b87010193508684111561486357600080fd5b602086015b8481101561487f5780358352918301918301614868565b509695505050505050565b600082601f83011261489b57600080fd5b81356001600160401b038111156148b4576148b46145e2565b6148c7601f8201601f1916602001614620565b8181528460208386010111156148dc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561491157600080fd5b853561491c816141fe565b9450602086013561492c816141fe565b935060408601356001600160401b038082111561494857600080fd5b61495489838a01614820565b9450606088013591508082111561496a57600080fd5b61497689838a01614820565b9350608088013591508082111561498c57600080fd5b506149998882890161488a565b9150509295509295909350565b6000602082840312156149b857600080fd5b611115826145a7565b60008060008060008060006080888a0312156149dc57600080fd5b87356001600160401b03808211156149f357600080fd5b6149ff8b838c01614230565b909950975060208a0135915080821115614a1857600080fd5b614a248b838c01614230565b909750955060408a0135915080821115614a3d57600080fd5b614a498b838c01614230565b909550935060608a0135915080821115614a6257600080fd5b50614a6f8a828b01614490565b91505092959891949750929550565b60008060208385031215614a9157600080fd5b82356001600160401b0380821115614aa857600080fd5b818501915085601f830112614abc57600080fd5b813581811115614acb57600080fd5b86602060a083028501011115614ae057600080fd5b60209290920196919550909350505050565b600080600080600060a08688031215614b0a57600080fd5b8535614b15816141fe565b94506020860135614b25816141fe565b9350604086013592506060860135915060808601356001600160401b03811115614b4e57600080fd5b6149998882890161488a565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082601f830112614bb957600080fd5b81516020614bc961471b83614650565b8083825260208201915060208460051b870101935086841115614beb57600080fd5b602086015b8481101561487f578051614c03816141fe565b8352918301918301614bf0565b6001600160601b03811681146110a957600080fd5b600080600060608486031215614c3a57600080fd5b83516001600160401b0380821115614c5157600080fd5b614c5d87838801614ba8565b9450602091508186015181811115614c7457600080fd5b614c8088828901614ba8565b945050604086015181811115614c9557600080fd5b86019050601f81018713614ca857600080fd5b8051614cb661471b82614650565b81815260059190911b82018301908381019089831115614cd557600080fd5b928401925b82841015614cfc578351614ced81614c10565b82529284019290840190614cda565b80955050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160601b03818116838216019080821115612f5b57612f5b614d21565b8035600381106119ec57600080fd5b600060608284031215614d7857600080fd5b614d806145f8565b9050614d8b82614d57565b8152602082013560208201526040820135604082015292915050565b600060a08284031215614db957600080fd5b614dc16145f8565b8235614dcc816141fe565b81526020830135614ddc816141fe565b6020820152614dee8460408501614d66565b60408201529392505050565b600060608284031215614e0c57600080fd5b614e146145f8565b823560ff81168114614e2557600080fd5b8152602083810135908201526040928301359281019290925250919050565b6000808335601e19843603018112614e5b57600080fd5b8301803591506001600160401b03821115614e7557600080fd5b6020019150600581901b36038213156118db57600080fd5b600060208284031215614e9f57600080fd5b813561111581614c10565b8035600281106119ec57600080fd5b600060608284031215614ecb57600080fd5b614ed36145f8565b90508135614ee0816141fe565b81526020820135614ef0816141fe565b806020830152506040820135604082015292915050565b60006101608284031215614f1a57600080fd5b60405160a081018181106001600160401b0382111715614f3c57614f3c6145e2565b60405282358152614f4f60208401614eaa565b6020820152614f618460408501614eb9565b6040820152614f738460a08501614eb9565b6060820152614f86846101008501614d66565b60808201529392505050565b600281106147f2576147f26147cc565b8035614fad816141fe565b6001600160a01b039081168352602082013590614fc9826141fe565b166020830152604090810135910152565b60006101808201905083825282356020830152614ff960208401614eaa565b6150066040840182614f92565b506150176060830160408501614fa2565b61502760c0830160a08501614fa2565b61012061504281840161503d6101008701614d57565b6147e2565b61014081850135818501528085013561016085015250509392505050565b60006020828403121561507257600080fd5b61111582614d57565b60006060828403121561508d57600080fd5b6111158383614d66565b81810381811115610c1a57610c1a614d21565b8082028115828204841417610c1a57610c1a614d21565b6000602082840312156150d357600080fd5b813561111581614673565b6001600160601b03828116828216039080821115612f5b57612f5b614d21565b601081106147f2576147f26147cc565b60208101610c1a82846150fe565b6001600160e01b03198316815260408101600b831061513d5761513d6147cc565b8260208301529392505050565b8183526000602080850194508260005b8581101561518857813561516d816141fe565b6001600160a01b03168752958201959082019060010161515a565b509495945050505050565b6040815260006151a760408301868861514a565b82810360208401528381526001600160fb1b038411156151c657600080fd5b8360051b80866020840137016020019695505050505050565b6060815260006151f360608301888a61514a565b6020838203602085015261520882888a61514a565b848103604086015285815286925060200160005b86811015615241576152318261503d86614d57565b928201929082019060010161521c565b509a9950505050505050505050565b60006020828403121561526257600080fd5b815161111581614673565b60006001820161527f5761527f614d21565b5060010190565b6152918282516147e2565b60208181015190830152604090810151910152565b6000610180820190508382528251602083015260208301516152cb6040840182614f92565b5060408381015180516001600160a01b03908116606086015260208201511660808501529081015160a084015250606083015180516001600160a01b0390811660c085015260208201511660e0840152604081015161010084015250608083015161533a610120840182615286565b509392505050565b60006020828403121561535457600080fd5b61111582614eaa565b80820180821115610c1a57610c1a614d21565b60008261538d57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160e01b031984168152606081016153b060208301856150fe565b6001600160a01b03929092166040919091015292915050565b6000602082840312156153db57600080fd5b5051919050565b60005b838110156153fd5781810151838201526020016153e5565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161543e8160178501602088016153e2565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161546f8160288401602088016153e2565b01602801949350505050565b600081518084526154938160208601602086016153e2565b601f01601f19169290920160200192915050565b602081526000611115602083018461547b565b600082516154cc8184602087016153e2565b9190910192915050565b60c081016154e48287615286565b6001600160a01b0394851660608301529284166080820152921660a090920191909152919050565b60a0810161551a8286615286565b6001600160a01b03938416606083015291909216608090920191909152919050565b60008161554b5761554b614d21565b506000190190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906155a39083018461547b565b979650505050505050565b60018060a01b03851681528360208201528260408201526080606082015260006155db608083018461547b565b969550505050505056fe7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498a26469706673582212201e2ed98411cda98706015cdbeb9e494126a836fe1b19bb440229c826fa07419564736f6c63430008170033", "chainId": 11155111, "contractAbsolutePath": "MainchainGatewayV3.sol", - "deployedBytecode": "0x60806040526004361061039b5760003560e01c80638f34e347116101dc578063b9c3620911610102578063d55ed103116100a0578063dff525e11161006f578063dff525e114610b04578063e400327c14610b24578063e75235b814610b44578063f23a6e6114610b5c576103aa565b8063d55ed10314610a77578063d64af2a614610aa4578063dafae40814610ac4578063de981f1b14610ae4576103aa565b8063ca15c873116100dc578063ca15c873146109f2578063cdb6744414610a12578063d19773d214610a2a578063d547741f14610a57576103aa565b8063b9c3620914610986578063bc197c81146109a6578063c48549de146109d2576103aa565b8063a217fddf1161017a578063affed0e011610149578063affed0e0146108f6578063b1a2567e1461090c578063b1d08a031461092c578063b297579414610959576103aa565b8063a217fddf14610894578063a3912ec8146103a8578063ab796566146108a9578063ac78dfe8146108d6576103aa565b80639157921c116101b65780639157921c146107ff57806391d148541461081f57806393c5678f1461083f5780639dcc4da31461085f576103aa565b80638f34e3471461077e5780638f851d8a146107b25780639010d07c146107df576103aa565b806338e454b1116102c1578063504af48c1161025f5780636c1ce6701161022e5780636c1ce670146107145780637de5dedd146107345780638456cb5914610749578063865e6fd31461075e576103aa565b8063504af48c1461068f57806359122f6b146106a25780635c975abb146106cf5780636932be98146106e7576103aa565b80634b14557e1161029b5780634b14557e1461060c5780634d0d66731461061f5780634d493f4e1461063f5780634f4247a11461066f576103aa565b806338e454b1146105c25780633e70838b146105d75780633f4ba83a146105f7576103aa565b80631d4a7210116103395780632f2ff15d116103085780632f2ff15d14610556578063302d12db146105765780633644e5151461058d57806336568abe146105a2576103aa565b80631d4a7210146104c3578063248a9ca3146104f057806329b6eca9146105205780632dfdf0b514610540576103aa565b806317ce2dd41161037557806317ce2dd41461043f57806317fcb39b146104635780631a8e55b0146104835780631b6e7594146104a3576103aa565b806301ffc9a7146103b2578063065b3adf146103e7578063110a83081461041f576103aa565b366103aa576103a8610b88565b005b6103a8610b88565b3480156103be57600080fd5b506103d26103cd36600461416e565b610bbc565b60405190151581526020015b60405180910390f35b3480156103f357600080fd5b50600554610407906001600160a01b031681565b6040516001600160a01b0390911681526020016103de565b34801561042b57600080fd5b506103a861043a3660046141ad565b610c01565b34801561044b57600080fd5b5061045560755481565b6040519081526020016103de565b34801561046f57600080fd5b50607454610407906001600160a01b031681565b34801561048f57600080fd5b506103a861049e36600461420e565b610ca6565b3480156104af57600080fd5b506103a86104be366004614279565b610ce2565b3480156104cf57600080fd5b506104556104de3660046141ad565b603e6020526000908152604090205481565b3480156104fc57600080fd5b5061045561050b36600461431d565b60009081526072602052604090206001015490565b34801561052c57600080fd5b506103a861053b3660046141ad565b610d22565b34801561054c57600080fd5b5061045560765481565b34801561056257600080fd5b506103a8610571366004614336565b610dab565b34801561058257600080fd5b50610455620f424081565b34801561059957600080fd5b50607754610455565b3480156105ae57600080fd5b506103a86105bd366004614336565b610dd5565b3480156105ce57600080fd5b506103a8610e53565b3480156105e357600080fd5b506103a86105f23660046141ad565b611030565b34801561060357600080fd5b506103a861105a565b6103a861061a366004614366565b61106a565b34801561062b57600080fd5b506103d261063a366004614391565b61108d565b34801561064b57600080fd5b506103d261065a36600461431d565b607a6020526000908152604090205460ff1681565b34801561067b57600080fd5b50607f54610407906001600160a01b031681565b6103a861069d36600461443b565b6110fd565b3480156106ae57600080fd5b506104556106bd3660046141ad565b603a6020526000908152604090205481565b3480156106db57600080fd5b5060005460ff166103d2565b3480156106f357600080fd5b5061045561070236600461431d565b60796020526000908152604090205481565b34801561072057600080fd5b506103d261072f366004614515565b6113c3565b34801561074057600080fd5b506104556113cf565b34801561075557600080fd5b506103a86113f0565b34801561076a57600080fd5b506103a8610779366004614550565b611400565b34801561078a57600080fd5b506104557f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e481565b3480156107be57600080fd5b506107d26107cd36600461461b565b61141b565b6040516103de9190614712565b3480156107eb57600080fd5b506104076107fa366004614727565b61159d565b34801561080b57600080fd5b506103a861081a366004614749565b6115b5565b34801561082b57600080fd5b506103d261083a366004614336565b611839565b34801561084b57600080fd5b506103a861085a36600461420e565b611864565b34801561086b57600080fd5b5061087f61087a366004614727565b61189a565b604080519283526020830191909152016103de565b3480156108a057600080fd5b50610455600081565b3480156108b557600080fd5b506104556108c43660046141ad565b603c6020526000908152604090205481565b3480156108e257600080fd5b506103d26108f136600461431d565b6118c3565b34801561090257600080fd5b5061045560045481565b34801561091857600080fd5b506103a861092736600461420e565b6118f9565b34801561093857600080fd5b506104556109473660046141ad565b60396020526000908152604090205481565b34801561096557600080fd5b506109796109743660046141ad565b61192f565b6040516103de9190614790565b34801561099257600080fd5b506103a86109a1366004614727565b6119d2565b3480156109b257600080fd5b506107d26109c1366004614893565b63bc197c8160e01b95945050505050565b3480156109de57600080fd5b506107d26109ed36600461420e565b6119ec565b3480156109fe57600080fd5b50610455610a0d36600461431d565b611b80565b348015610a1e57600080fd5b5060375460385461087f565b348015610a3657600080fd5b50610455610a453660046141ad565b603b6020526000908152604090205481565b348015610a6357600080fd5b506103a8610a72366004614336565b611b97565b348015610a8357600080fd5b50610455610a923660046141ad565b603d6020526000908152604090205481565b348015610ab057600080fd5b506103a8610abf3660046141ad565b611bbc565b348015610ad057600080fd5b506103d2610adf36600461431d565b611bcd565b348015610af057600080fd5b50610407610aff366004614940565b611bfb565b348015610b1057600080fd5b506103a8610b1f36600461495b565b611c71565b348015610b3057600080fd5b506103a8610b3f36600461420e565b611ce6565b348015610b5057600080fd5b5060015460025461087f565b348015610b6857600080fd5b506107d2610b77366004614a18565b63f23a6e6160e01b95945050505050565b6074546001600160a01b0316331480610bab5750607f546001600160a01b031633145b15610bb257565b610bba611d1c565b565b60006001600160e01b031982166246560160e51b1480610bec57506001600160e01b031982166312c0151560e21b145b80610bfb5750610bfb82611d46565b92915050565b607154600490610100900460ff16158015610c23575060715460ff8083169116105b610c485760405162461bcd60e51b8152600401610c3f90614a80565b60405180910390fd5b60718054607f80546001600160a01b0319166001600160a01b03861617905561ff001961010060ff851661ffff199093168317171690915560405190815260008051602061550c833981519152906020015b60405180910390a15050565b610cae611d6b565b6000839003610cd0576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484611dc5565b50505050565b610cea611d6b565b6000859003610d0c576040516316ee9d3b60e11b815260040160405180910390fd5b610d1a868686868686611e9a565b505050505050565b607154600290610100900460ff16158015610d44575060715460ff8083169116105b610d605760405162461bcd60e51b8152600401610c3f90614a80565b6071805461ffff191660ff831617610100179055610d7f600b83612042565b6071805461ff001916905560405160ff8216815260008051602061550c83398151915290602001610c9a565b600082815260726020526040902060010154610dc6816120e6565b610dd083836120f0565b505050565b6001600160a01b0381163314610e455760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c3f565b610e4f8282612112565b5050565b607154600390610100900460ff16158015610e75575060715460ff8083169116105b610e915760405162461bcd60e51b8152600401610c3f90614a80565b6071805461ffff191660ff8316176101001790556000610eb1600b611bfb565b9050600080826001600160a01b031663c441c4a86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610ef4573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f1c9190810190614b4b565b92509250506000805b8351811015610fd957828181518110610f4057610f40614c31565b6020026020010151607e6000868481518110610f5e57610f5e614c31565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b03160217905550828181518110610fbc57610fbc614c31565b602002602001015182610fcf9190614c5d565b9150600101610f25565b50607d80546001600160601b0319166001600160601b039290921691909117905550506071805461ff00191690555060405160ff8216815260008051602061550c833981519152906020015b60405180910390a150565b611038611d6b565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b611062612134565b610bba6121a3565b6110726121f5565b61108a61108436839003830183614ccd565b3361223b565b50565b60006110976121f5565b6110f3848484808060200260200160405190810160405280939291908181526020016000905b828210156110e9576110da60608302860136819003810190614d20565b815260200190600101906110bd565b5050505050612516565b90505b9392505050565b607154610100900460ff161580801561111d5750607154600160ff909116105b806111375750303b158015611137575060715460ff166001145b6111535760405162461bcd60e51b8152600401610c3f90614a80565b6071805460ff191660011790558015611176576071805461ff0019166101001790555b61118160008c6129aa565b607589905561118f8a6129b4565b61121a6040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b60208201527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5604082015246606082015230608082015260a0812060775550565b6112248887612a02565b61122e8787612a92565b5050611238612b29565b60006112448680614d6a565b905011156113055761126d6112598680614d6a565b6112666020890189614d6a565b8787611e9a565b61129361127a8680614d6a565b8660005b60200281019061128e9190614d6a565b612b76565b6112b96112a08680614d6a565b8660015b6020028101906112b49190614d6a565b611dc5565b6112df6112c68680614d6a565b8660025b6020028101906112da9190614d6a565b612c4b565b6113056112ec8680614d6a565b8660035b6020028101906113009190614d6a565b612d5c565b60005b6113156040870187614d6a565b9050811015611381576113797f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e461134f6040890189614d6a565b8481811061135f5761135f614c31565b905060200201602081019061137491906141ad565b6120f0565b600101611308565b5080156113b6576071805461ff00191690556040516001815260008051602061550c8339815191529060200160405180910390a15b5050505050505050505050565b60006110f68383612e31565b60006113eb6113e6607d546001600160601b031690565b612efc565b905090565b6113f8612134565b610bba612f32565b611408611d6b565b61141181612f6f565b610e4f8282612042565b6000600b61142881612fa5565b825186908114158061143a5750808514155b15611466576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b8060000361147e57506347c28ec560e11b9150611593565b60005b818110156115865784818151811061149b5761149b614c31565b60200260200101511561157e578686828181106114ba576114ba614c31565b90506020020160208101906114cf9190614db3565b607d80546001600160601b031981166001600160601b03918216939093011691909117905586868281811061150657611506614c31565b905060200201602081019061151b9190614db3565b607e60008b8b8581811061153157611531614c31565b905060200201602081019061154691906141ad565b6001600160a01b03168152602081019190915260400160002080546001600160601b0319166001600160601b03929092169190911790555b600101611481565b506347c28ec560e11b9250505b5095945050505050565b60008281526073602052604081206110f69083612ff1565b7f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e46115df816120e6565b60006115f86115f336859003850185614e2d565b612ffd565b905061160c6115f336859003850185614e2d565b83356000908152607960205260409020541461163b5760405163f4b8742f60e01b815260040160405180910390fd5b82356000908152607a602052604090205460ff1661166c5760405163147bfe0760e01b815260040160405180910390fd5b82356000908152607a602052604090819020805460ff19169055517fd639511b37b3b002cca6cfe6bca0d833945a5af5a045578a0627fc43b79b2630906116b69083908690614f00565b60405180910390a160006116d060808501606086016141ad565b905060006116e661012086016101008701614f86565b60028111156116f7576116f7614766565b036117be5760006117113686900386016101008701614fa1565b6001600160a01b0383166000908152603b602052604090205490915061173d90610140870135906130c7565b604082015260006117573687900387016101008801614fa1565b604083015190915061176e90610140880135614fbd565b604082015260745461178e908390339086906001600160a01b03166130e1565b6117b76117a160608801604089016141ad565b60745483919086906001600160a01b03166130e1565b50506117fa565b6117fa6117d160608601604087016141ad565b60745483906001600160a01b03166117f23689900389016101008a01614fa1565b9291906130e1565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d828560405161182b929190614f00565b60405180910390a150505050565b60009182526072602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61186c611d6b565b600083900361188e576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612b76565b6000806118a5611d6b565b6118af8484612a92565b90925090506118bc612b29565b9250929050565b60006118d7607d546001600160601b031690565b6037546118e49190614fd0565b6038546118f19084614fd0565b101592915050565b611901611d6b565b6000839003611923576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612c4b565b60408051808201909152600080825260208201526001600160a01b0382166000908152607860205260409081902081518083019092528054829060ff16600281111561197d5761197d614766565b600281111561198e5761198e614766565b815290546001600160a01b03610100909104811660209283015290820151919250166119cd57604051631b79f53b60e21b815260040160405180910390fd5b919050565b6119da611d6b565b6119e48282612a02565b610e4f612b29565b6000600b6119f981612fa5565b84838114611a28576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b80600003611a405750636242a4ef60e11b9150611b77565b6000805b82811015611b2757868682818110611a5e57611a5e614c31565b9050602002016020810190611a739190614fe7565b15611b1f57607e60008a8a84818110611a8e57611a8e614c31565b9050602002016020810190611aa391906141ad565b6001600160a01b0316815260208101919091526040016000908120546001600160601b03169290920191607e908a8a84818110611ae257611ae2614c31565b9050602002016020810190611af791906141ad565b6001600160a01b03168152602081019190915260400160002080546001600160601b03191690555b600101611a44565b50607d8054829190600090611b469084906001600160601b0316615004565b92506101000a8154816001600160601b0302191690836001600160601b0316021790555063c48549de60e01b935050505b50949350505050565b6000818152607360205260408120610bfb90613313565b600082815260726020526040902060010154611bb2816120e6565b610dd08383612112565b611bc4611d6b565b61108a816129b4565b6000611be1607d546001600160601b031690565b600154611bee9190614fd0565b6002546118f19084614fd0565b60007fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600083600f811115611c3257611c32614766565b60ff1681526020810191909152604001600020546001600160a01b03169050806119cd578160405163409140df60e11b8152600401610c3f9190615034565b611c79611d6b565b6000869003611c9b576040516316ee9d3b60e11b815260040160405180910390fd5b611ca9878787878787611e9a565b611cb6878783600061127e565b611cc387878360016112a4565b611cd087878360026112ca565b611cdd87878360036112f0565b50505050505050565b611cee611d6b565b6000839003611d10576040516316ee9d3b60e11b815260040160405180910390fd5b610cdc84848484612d5c565b611d246121f5565b611d2c61412d565b33815260408082015134910152805161108a90829061223b565b60006001600160e01b03198216630271189760e51b1480610bfb5750610bfb8261331d565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314610bba576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c3f929190615042565b828114611df3576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015611e6457828282818110611e1057611e10614c31565b90506020020135603a6000878785818110611e2d57611e2d614c31565b9050602002016020810190611e4291906141ad565b6001600160a01b03168152602081019190915260400160002055600101611df6565b507f64557254143204d91ba2d95acb9fda1e5fea55f77efd028685765bc1e94dd4b58484848460405161182b94939291906150b9565b8483148015611ea857508481145b611ed3576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b85811015611ff857848482818110611ef057611ef0614c31565b9050602002016020810190611f0591906141ad565b60786000898985818110611f1b57611f1b614c31565b9050602002016020810190611f3091906141ad565b6001600160a01b03908116825260208201929092526040016000208054610100600160a81b0319166101009390921692909202179055828282818110611f7857611f78614c31565b9050602002016020810190611f8d9190614f86565b60786000898985818110611fa357611fa3614c31565b9050602002016020810190611fb891906141ad565b6001600160a01b031681526020810191909152604001600020805460ff19166001836002811115611feb57611feb614766565b0217905550600101611ed6565b507fa4f03cc9c0e0aeb5b71b4ec800702753f65748c2cf3064695ba8e8b46be7044486868686868660405161203296959493929190615105565b60405180910390a1505050505050565b807fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600084600f81111561207857612078614766565b60ff168152602081019190915260400160002080546001600160a01b0319166001600160a01b03928316179055811682600f8111156120b9576120b9614766565b6040517f865d1c228a8ea13709cfe61f346f7ff67f1bbd4a18ff31ad3e7147350d317c5990600090a35050565b61108a8133613342565b6120fa82826133a6565b6000828152607360205260409020610dd0908261342c565b61211c8282613441565b6000828152607360205260409020610dd090826134a8565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b031633148061217657506005546001600160a01b031633145b610bba576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c3f929190615042565b6121ab6134bd565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff1615610bba5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c3f565b604080518082018252600080825260208201526074549184015190916001600160a01b03169061226a90613506565b60208401516001600160a01b031661230b5734846040015160400151146122a45760405163129c2ce160e31b815260040160405180910390fd5b6122ad8161192f565b60408501515190925060028111156122c7576122c7614766565b825160028111156122da576122da614766565b146122f75760405162035e2b60ea1b815260040160405180910390fd5b6001600160a01b03811660208501526124a3565b341561232a5760405163129c2ce160e31b815260040160405180910390fd5b612337846020015161192f565b604085015151909250600281111561235157612351614766565b8251600281111561236457612364614766565b146123815760405162035e2b60ea1b815260040160405180910390fd5b6020840151604085015161239691859061354a565b83602001516001600160a01b0316816001600160a01b0316036124a357607454607f54604086810151810151905163095ea7b360e01b81526001600160a01b039283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015612411573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906124359190615176565b50607f546040808601518101519051636f074d1f60e11b81526001600160a01b039092169163de0e9a3e916124709160040190815260200190565b600060405180830381600087803b15801561248a57600080fd5b505af115801561249e573d6000803e3d6000fd5b505050505b60768054600091826124b483615193565b91905055905060006124db858386602001516075548a6136c390949392919063ffffffff16565b90507fd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b61250782612ffd565b826040516120329291906151cc565b600082356101408401358261253160808701606088016141ad565b905061254e6125493688900388016101008901614fa1565b613506565b60016125606040880160208901615268565b600181111561257157612571614766565b1461258f5760405163182f3d8760e11b815260040160405180910390fd5b608086013546146125d15760405163092048d160e11b81526000356001600160e01b031916600482015260808701356024820152466044820152606401610c3f565b60006125e66109746080890160608a016141ad565b90506125fa61012088016101008901614f86565b600281111561260b5761260b614766565b8151600281111561261e5761261e614766565b14801561264f575061263660e0880160c089016141ad565b6001600160a01b031681602001516001600160a01b0316145b8015612660575060755460e0880135145b61267d5760405163f4b8742f60e01b815260040160405180910390fd5b600084815260796020526040902054156126aa57604051634f13df6160e01b815260040160405180910390fd5b60016126be61012089016101008a01614f86565b60028111156126cf576126cf614766565b14806126e257506126e08284612e31565b155b6126ff5760405163c51297b760e01b815260040160405180910390fd5b60006127136115f3368a90038a018a614e2d565b9050600061272360775483613798565b9050600061274361273c6101208c016101008d01614f86565b86886137d9565b60408051606081018252600080825260208201819052918101829052919a50919250819081906000805b8e51811015612881578e818151811061278857612788614c31565b6020908102919091018101518051818301516040808401518151600081529586018083528e905260ff9093169085015260608401526080830152935060019060a0016020604051602081039080840390855afa1580156127ec573d6000803e3d6000fd5b505050602060405103519450846001600160a01b0316846001600160a01b031610612838576000356001600160e01b031916604051635d3dcd3160e01b8152600401610c3f9190614712565b6001600160a01b0385166000908152607e60205260409020548594506001600160601b03166128679083615283565b91508682106128795760019550612881565b60010161276d565b50846128a057604051639e8f5f6360e01b815260040160405180910390fd5b50505060008981526079602052604090208590555050871561291b576000878152607a602052604090819020805460ff19166001179055517f89e52969465b1f1866fc5d46fd62de953962e9cb33552443cd999eba05bd20dc906129079085908d90614f00565b60405180910390a150505050505050610bfb565b6129258587613869565b61296461293860608c0160408d016141ad565b86607460009054906101000a90046001600160a01b03168d610100018036038101906117f29190614fa1565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d838b604051612995929190614f00565b60405180910390a15050505050505092915050565b610e4f82826120f0565b607480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9d2334c23be647e994f27a72c5eee42a43d5bdcfe15bb88e939103c2b114cbaf90602001611025565b80821115612a31576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b6001805460028054858455908490556004805493840190556040805183815260208101839052929391928592879290917f976f8a9c5bdf8248dec172376d6e2b80a8e3df2f0328e381c6db8e1cf138c0f8910160405180910390a450505050565b60008082841115612ac4576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b5050603780546038805492859055839055600480546001810190915560408051838152602081018590529293928592879290917f31312c97b89cc751b832d98fd459b967a2c3eef3b49757d1cf5ebaa12bb6eee1910160405180910390a49250929050565b600254603754612b399190614fd0565b603854600154612b499190614fd0565b1115610bba576000356001600160e01b0319166040516387f6f09560e01b8152600401610c3f9190614712565b828114612ba4576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612c1557828282818110612bc157612bc1614c31565b9050602002013560396000878785818110612bde57612bde614c31565b9050602002016020810190612bf391906141ad565b6001600160a01b03168152602081019190915260400160002055600101612ba7565b507f80bc635c452ae67f12f9b6f12ad4daa6dbbc04eeb9ebb87d354ce10c0e210dc08484848460405161182b94939291906150b9565b828114612c79576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612d2657620f4240838383818110612c9a57612c9a614c31565b905060200201351115612cc05760405163572d3bd360e11b815260040160405180910390fd5b828282818110612cd257612cd2614c31565b90506020020135603b6000878785818110612cef57612cef614c31565b9050602002016020810190612d0491906141ad565b6001600160a01b03168152602081019190915260400160002055600101612c7c565b507fb05f5de88ae0294ebb6f67c5af2fcbbd593cc6bdfe543e2869794a4c8ce3ea508484848460405161182b94939291906150b9565b828114612d8a576000356001600160e01b0319166040516306b5667560e21b8152600401610c3f9190614712565b60005b83811015612dfb57828282818110612da757612da7614c31565b90506020020135603c6000878785818110612dc457612dc4614c31565b9050602002016020810190612dd991906141ad565b6001600160a01b03168152602081019190915260400160002055600101612d8d565b507fb5d2963614d72181b4df1f993d45b83edf42fa19710f0204217ba1b3e183bb738484848460405161182b94939291906150b9565b6001600160a01b0382166000908152603a60205260408120548210612e5857506000610bfb565b6000612e676201518042615296565b6001600160a01b0385166000908152603e6020526040902054909150811115612ead5750506001600160a01b0382166000908152603c6020526040902054811015610bfb565b6001600160a01b0384166000908152603d6020526040902054612ed1908490615283565b6001600160a01b0385166000908152603c602052604090205411159150610bfb9050565b5092915050565b6000600254600160025484600154612f149190614fd0565b612f1e9190615283565b612f289190614fbd565b610bfb9190615296565b612f3a6121f5565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586121d83390565b806001600160a01b03163b60000361108a57604051630bfc64a360e21b81526001600160a01b0382166004820152602401610c3f565b612fae81611bfb565b6001600160a01b0316336001600160a01b03161461108a576000356001600160e01b03191681336040516320e0f98d60e21b8152600401610c3f939291906152b8565b60006110f683836138f9565b60008061300d8360400151613923565b9050600061301e8460600151613923565b905060006130728560800151604080517f1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d815282516020808301919091528301518183015291015160608201526080902090565b604080517fb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea815287516020808301919091529097015190870152606086019390935250608084015260a08301525060c0902090565b6000620f42406130d78385614fd0565b6110f69190615296565b806001600160a01b0316826001600160a01b03160361318e5760408085015190516001600160a01b0385169180156108fc02916000818181858888f1935050505061318957806001600160a01b031663d0e30db085604001516040518263ffffffff1660e01b81526004016000604051808303818588803b15801561316557600080fd5b505af1158015613179573d6000803e3d6000fd5b505050505061318984848461396b565b610cdc565b6000845160028111156131a3576131a3614766565b03613269576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa1580156131ef573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061321391906152ef565b905084604001518110156132585761323b83308388604001516132369190614fbd565b6139ea565b61325857604051632f739fff60e11b815260040160405180910390fd5b61326385858561396b565b50610cdc565b60018451600281111561327e5761327e614766565b036132af5761329282848660200151613a8f565b6131895760405163c8e3a09f60e01b815260040160405180910390fd5b6002845160028111156132c4576132c4614766565b036132fa576132dd828486602001518760400151613ab6565b613189576040516334b471a760e21b815260040160405180910390fd5b6040516361e411a760e11b815260040160405180910390fd5b6000610bfb825490565b60006001600160e01b03198216635a05180f60e01b1480610bfb5750610bfb82613ae3565b61334c8282611839565b610e4f57613364816001600160a01b03166014613b18565b61336f836020613b18565b60405160200161338092919061532c565b60408051601f198184030181529082905262461bcd60e51b8252610c3f916004016153cd565b6133b08282611839565b610e4f5760008281526072602090815260408083206001600160a01b03851684529091529020805460ff191660011790556133e83390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b60006110f6836001600160a01b038416613cb3565b61344b8282611839565b15610e4f5760008281526072602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b60006110f6836001600160a01b038416613d02565b60005460ff16610bba5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c3f565b61350f81613df5565b8061351e575061351e81613e2c565b8061352d575061352d81613e54565b61108a5760405163034992a760e51b815260040160405180910390fd5b60006060818551600281111561356257613562614766565b0361363d5760408581015181516001600160a01b03878116602483015230604483015260648083019390935283518083039093018352608490910183526020820180516001600160e01b03166323b872dd60e01b1790529151918516916135c991906153e0565b6000604051808303816000865af19150503d8060008114613606576040519150601f19603f3d011682016040523d82523d6000602084013e61360b565b606091505b5090925090508180156136365750805115806136365750808060200190518101906136369190615176565b9150613696565b60018551600281111561365257613652614766565b03613667576136368385308860200151613e7d565b60028551600281111561367c5761367c614766565b036132fa5761363683853088602001518960400151613f2b565b816136bc5784843085604051639d2e4c6760e01b8152600401610c3f94939291906153fc565b5050505050565b6137336040805160a08101825260008082526020808301829052835160608082018652838252818301849052818601849052848601919091528451808201865283815280830184905280860184905281850152845190810185528281529081018290529283015290608082015290565b83815260006020820181905250604080820180516001600160a01b039788169052602080890151825190891690820152905146908301528751606084018051918916909152805195909716940193909352935182015292909201516080820152919050565b6040805161190160f01b60208083019190915260228201859052604280830185905283518084039091018152606290920190925280519101206000906110f6565b60008060006137f0607d546001600160601b031690565b90506137fb81612efc565b9250600086600281111561381157613811614766565b03613860576001600160a01b03851660009081526039602052604090205484106138415761383e81613fdf565b92505b6001600160a01b0385166000908152603a602052604090205484101591505b50935093915050565b60006138786201518042615296565b6001600160a01b0384166000908152603e60205260409020549091508111156138c7576001600160a01b03929092166000908152603e6020908152604080832094909455603d90529190912055565b6001600160a01b0383166000908152603d6020526040812080548492906138ef908490615283565b9091555050505050565b600082600001828154811061391057613910614c31565b9060005260206000200154905092915050565b604080517f353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764815282516020808301919091528301518183015291015160608201526080902090565b6000808451600281111561398157613981614766565b0361399c5761399582848660400151613ff7565b90506139c6565b6001845160028111156139b1576139b1614766565b036132fa576139958230858760200151613e7d565b80610cdc578383836040516341bd7d9160e11b8152600401610c3f93929190615432565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03166340c10f1960e01b1790529151600092861691613a42916153e0565b6000604051808303816000865af19150503d8060008114613a7f576040519150601f19603f3d011682016040523d82523d6000602084013e613a84565b606091505b509095945050505050565b6000613a9d84308585613e7d565b9050806110f657613aaf8484846139ea565b90506110f6565b6000613ac58530868686613f2b565b905080613adb57613ad8858585856140ca565b90505b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610bfb57506301ffc9a760e01b6001600160e01b0319831614610bfb565b60606000613b27836002614fd0565b613b32906002615283565b6001600160401b03811115613b4957613b4961457c565b6040519080825280601f01601f191660200182016040528015613b73576020820181803683370190505b509050600360fc1b81600081518110613b8e57613b8e614c31565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613bbd57613bbd614c31565b60200101906001600160f81b031916908160001a9053506000613be1846002614fd0565b613bec906001615283565b90505b6001811115613c64576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c2057613c20614c31565b1a60f81b828281518110613c3657613c36614c31565b60200101906001600160f81b031916908160001a90535060049490941c93613c5d81615462565b9050613bef565b5083156110f65760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c3f565b6000818152600183016020526040812054613cfa57508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610bfb565b506000610bfb565b60008181526001830160205260408120548015613deb576000613d26600183614fbd565b8554909150600090613d3a90600190614fbd565b9050818114613d9f576000866000018281548110613d5a57613d5a614c31565b9060005260206000200154905080876000018481548110613d7d57613d7d614c31565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613db057613db0615479565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610bfb565b6000915050610bfb565b60008082516002811115613e0b57613e0b614766565b148015613e1c575060008260400151115b8015610bfb575050602001511590565b6000600182516002811115613e4357613e43614766565b148015610bfb575050604001511590565b6000600282516002811115613e6b57613e6b614766565b148015610bfb57505060400151151590565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092871691613edd916153e0565b6000604051808303816000865af19150503d8060008114613f1a576040519150601f19603f3d011682016040523d82523d6000602084013e613f1f565b606091505b50909695505050505050565b604080516000808252602082019092526001600160a01b03871690613f5b9087908790879087906044810161548f565b60408051601f198184030181529181526020820180516001600160e01b0316637921219560e11b17905251613f9091906153e0565b6000604051808303816000865af19150503d8060008114613fcd576040519150601f19603f3d011682016040523d82523d6000602084013e613fd2565b606091505b5090979650505050505050565b6000603854600160385484603754612f149190614fd0565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b17905291516000926060929087169161405491906153e0565b6000604051808303816000865af19150503d8060008114614091576040519150601f19603f3d011682016040523d82523d6000602084013e614096565b606091505b5090925090508180156140c15750805115806140c15750808060200190518101906140c19190615176565b95945050505050565b604080516000808252602082019092526001600160a01b038616906140f890869086908690604481016154d4565b60408051601f198184030181529181526020820180516001600160e01b031663731133e960e01b17905251613edd91906153e0565b60408051606081018252600080825260208201529081016141696040805160608101909152806000815260200160008152602001600081525090565b905290565b60006020828403121561418057600080fd5b81356001600160e01b0319811681146110f657600080fd5b6001600160a01b038116811461108a57600080fd5b6000602082840312156141bf57600080fd5b81356110f681614198565b60008083601f8401126141dc57600080fd5b5081356001600160401b038111156141f357600080fd5b6020830191508360208260051b85010111156118bc57600080fd5b6000806000806040858703121561422457600080fd5b84356001600160401b038082111561423b57600080fd5b614247888389016141ca565b9096509450602087013591508082111561426057600080fd5b5061426d878288016141ca565b95989497509550505050565b6000806000806000806060878903121561429257600080fd5b86356001600160401b03808211156142a957600080fd5b6142b58a838b016141ca565b909850965060208901359150808211156142ce57600080fd5b6142da8a838b016141ca565b909650945060408901359150808211156142f357600080fd5b5061430089828a016141ca565b979a9699509497509295939492505050565b80356119cd81614198565b60006020828403121561432f57600080fd5b5035919050565b6000806040838503121561434957600080fd5b82359150602083013561435b81614198565b809150509250929050565b600060a0828403121561437857600080fd5b50919050565b6000610160828403121561437857600080fd5b600080600061018084860312156143a757600080fd5b6143b1858561437e565b92506101608401356001600160401b03808211156143ce57600080fd5b818601915086601f8301126143e257600080fd5b8135818111156143f157600080fd5b87602060608302850101111561440657600080fd5b6020830194508093505050509250925092565b8060608101831015610bfb57600080fd5b8060808101831015610bfb57600080fd5b6000806000806000806000806000806101208b8d03121561445b57600080fd5b6144648b614312565b995061447260208c01614312565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b01356001600160401b03808211156144aa57600080fd5b6144b68e838f01614419565b955060e08d01359150808211156144cc57600080fd5b6144d88e838f0161442a565b94506101008d01359150808211156144ef57600080fd5b506144fc8d828e016141ca565b915080935050809150509295989b9194979a5092959850565b6000806040838503121561452857600080fd5b823561453381614198565b946020939093013593505050565b8035601081106119cd57600080fd5b6000806040838503121561456357600080fd5b61456c83614541565b9150602083013561435b81614198565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b03811182821017156145b4576145b461457c565b60405290565b604051601f8201601f191681016001600160401b03811182821017156145e2576145e261457c565b604052919050565b60006001600160401b038211156146035761460361457c565b5060051b60200190565b801515811461108a57600080fd5b60008060008060006060868803121561463357600080fd5b85356001600160401b038082111561464a57600080fd5b61465689838a016141ca565b909750955060209150878201358181111561467057600080fd5b61467c8a828b016141ca565b90965094505060408801358181111561469457600080fd5b88019050601f810189136146a757600080fd5b80356146ba6146b5826145ea565b6145ba565b81815260059190911b8201830190838101908b8311156146d957600080fd5b928401925b828410156147005783356146f18161460d565b825292840192908401906146de565b80955050505050509295509295909350565b6001600160e01b031991909116815260200190565b6000806040838503121561473a57600080fd5b50508035926020909101359150565b6000610160828403121561475c57600080fd5b6110f6838361437e565b634e487b7160e01b600052602160045260246000fd5b6003811061478c5761478c614766565b9052565b60006040820190506147a382845161477c565b6020928301516001600160a01b0316919092015290565b600082601f8301126147cb57600080fd5b813560206147db6146b5836145ea565b8083825260208201915060208460051b8701019350868411156147fd57600080fd5b602086015b848110156148195780358352918301918301614802565b509695505050505050565b600082601f83011261483557600080fd5b81356001600160401b0381111561484e5761484e61457c565b614861601f8201601f19166020016145ba565b81815284602083860101111561487657600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a086880312156148ab57600080fd5b85356148b681614198565b945060208601356148c681614198565b935060408601356001600160401b03808211156148e257600080fd5b6148ee89838a016147ba565b9450606088013591508082111561490457600080fd5b61491089838a016147ba565b9350608088013591508082111561492657600080fd5b5061493388828901614824565b9150509295509295909350565b60006020828403121561495257600080fd5b6110f682614541565b60008060008060008060006080888a03121561497657600080fd5b87356001600160401b038082111561498d57600080fd5b6149998b838c016141ca565b909950975060208a01359150808211156149b257600080fd5b6149be8b838c016141ca565b909750955060408a01359150808211156149d757600080fd5b6149e38b838c016141ca565b909550935060608a01359150808211156149fc57600080fd5b50614a098a828b0161442a565b91505092959891949750929550565b600080600080600060a08688031215614a3057600080fd5b8535614a3b81614198565b94506020860135614a4b81614198565b9350604086013592506060860135915060808601356001600160401b03811115614a7457600080fd5b61493388828901614824565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082601f830112614adf57600080fd5b81516020614aef6146b5836145ea565b8083825260208201915060208460051b870101935086841115614b1157600080fd5b602086015b84811015614819578051614b2981614198565b8352918301918301614b16565b6001600160601b038116811461108a57600080fd5b600080600060608486031215614b6057600080fd5b83516001600160401b0380821115614b7757600080fd5b614b8387838801614ace565b9450602091508186015181811115614b9a57600080fd5b614ba688828901614ace565b945050604086015181811115614bbb57600080fd5b86019050601f81018713614bce57600080fd5b8051614bdc6146b5826145ea565b81815260059190911b82018301908381019089831115614bfb57600080fd5b928401925b82841015614c22578351614c1381614b36565b82529284019290840190614c00565b80955050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160601b03818116838216019080821115612ef557612ef5614c47565b8035600381106119cd57600080fd5b600060608284031215614c9e57600080fd5b614ca6614592565b9050614cb182614c7d565b8152602082013560208201526040820135604082015292915050565b600060a08284031215614cdf57600080fd5b614ce7614592565b8235614cf281614198565b81526020830135614d0281614198565b6020820152614d148460408501614c8c565b60408201529392505050565b600060608284031215614d3257600080fd5b614d3a614592565b823560ff81168114614d4b57600080fd5b8152602083810135908201526040928301359281019290925250919050565b6000808335601e19843603018112614d8157600080fd5b8301803591506001600160401b03821115614d9b57600080fd5b6020019150600581901b36038213156118bc57600080fd5b600060208284031215614dc557600080fd5b81356110f681614b36565b8035600281106119cd57600080fd5b600060608284031215614df157600080fd5b614df9614592565b90508135614e0681614198565b81526020820135614e1681614198565b806020830152506040820135604082015292915050565b60006101608284031215614e4057600080fd5b60405160a081018181106001600160401b0382111715614e6257614e6261457c565b60405282358152614e7560208401614dd0565b6020820152614e878460408501614ddf565b6040820152614e998460a08501614ddf565b6060820152614eac846101008501614c8c565b60808201529392505050565b6002811061478c5761478c614766565b8035614ed381614198565b6001600160a01b039081168352602082013590614eef82614198565b166020830152604090810135910152565b60006101808201905083825282356020830152614f1f60208401614dd0565b614f2c6040840182614eb8565b50614f3d6060830160408501614ec8565b614f4d60c0830160a08501614ec8565b610120614f68818401614f636101008701614c7d565b61477c565b61014081850135818501528085013561016085015250509392505050565b600060208284031215614f9857600080fd5b6110f682614c7d565b600060608284031215614fb357600080fd5b6110f68383614c8c565b81810381811115610bfb57610bfb614c47565b8082028115828204841417610bfb57610bfb614c47565b600060208284031215614ff957600080fd5b81356110f68161460d565b6001600160601b03828116828216039080821115612ef557612ef5614c47565b6010811061478c5761478c614766565b60208101610bfb8284615024565b6001600160e01b03198316815260408101600b831061506357615063614766565b8260208301529392505050565b8183526000602080850194508260005b858110156150ae57813561509381614198565b6001600160a01b031687529582019590820190600101615080565b509495945050505050565b6040815260006150cd604083018688615070565b82810360208401528381526001600160fb1b038411156150ec57600080fd5b8360051b80866020840137016020019695505050505050565b60608152600061511960608301888a615070565b6020838203602085015261512e82888a615070565b848103604086015285815286925060200160005b868110156151675761515782614f6386614c7d565b9282019290820190600101615142565b509a9950505050505050505050565b60006020828403121561518857600080fd5b81516110f68161460d565b6000600182016151a5576151a5614c47565b5060010190565b6151b782825161477c565b60208181015190830152604090810151910152565b6000610180820190508382528251602083015260208301516151f16040840182614eb8565b5060408381015180516001600160a01b03908116606086015260208201511660808501529081015160a084015250606083015180516001600160a01b0390811660c085015260208201511660e084015260408101516101008401525060808301516152606101208401826151ac565b509392505050565b60006020828403121561527a57600080fd5b6110f682614dd0565b80820180821115610bfb57610bfb614c47565b6000826152b357634e487b7160e01b600052601260045260246000fd5b500490565b6001600160e01b031984168152606081016152d66020830185615024565b6001600160a01b03929092166040919091015292915050565b60006020828403121561530157600080fd5b5051919050565b60005b8381101561532357818101518382015260200161530b565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351615364816017850160208801615308565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351615395816028840160208801615308565b01602801949350505050565b600081518084526153b9816020860160208601615308565b601f01601f19169290920160200192915050565b6020815260006110f660208301846153a1565b600082516153f2818460208701615308565b9190910192915050565b60c0810161540a82876151ac565b6001600160a01b0394851660608301529284166080820152921660a090920191909152919050565b60a0810161544082866151ac565b6001600160a01b03938416606083015291909216608090920191909152919050565b60008161547157615471614c47565b506000190190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906154c9908301846153a1565b979650505050505050565b60018060a01b038516815283602082015282604082015260806060820152600061550160808301846153a1565b969550505050505056fe7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498a2646970667358221220a2f9831a0e3d85059cd7b361f6be20ecc705006971478a7cb6c6bfef562802c064736f6c63430008170033", + "deployedBytecode": "0x6080604052600436106103a65760003560e01c80638f34e347116101e7578063b9c362091161010d578063d64af2a6116100a0578063e400327c1161006f578063e400327c14610b2f578063e6a4561814610b4f578063e75235b814610b62578063f23a6e6114610b7a576103b5565b8063d64af2a614610aaf578063dafae40814610acf578063de981f1b14610aef578063dff525e114610b0f576103b5565b8063cdb67444116100dc578063cdb6744414610a1d578063d19773d214610a35578063d547741f14610a62578063d55ed10314610a82576103b5565b8063b9c3620914610991578063bc197c81146109b1578063c48549de146109dd578063ca15c873146109fd576103b5565b8063a217fddf11610185578063affed0e011610154578063affed0e014610901578063b1a2567e14610917578063b1d08a0314610937578063b297579414610964576103b5565b8063a217fddf1461089f578063a3912ec8146103b3578063ab796566146108b4578063ac78dfe8146108e1576103b5565b80639157921c116101c15780639157921c1461080a57806391d148541461082a57806393c5678f1461084a5780639dcc4da31461086a576103b5565b80638f34e347146107895780638f851d8a146107bd5780639010d07c146107ea576103b5565b806338e454b1116102cc578063504af48c1161026a5780636c1ce670116102395780636c1ce6701461071f5780637de5dedd1461073f5780638456cb5914610754578063865e6fd314610769576103b5565b8063504af48c1461069a57806359122f6b146106ad5780635c975abb146106da5780636932be98146106f2576103b5565b80634b14557e116102a65780634b14557e146106175780634d0d66731461062a5780634d493f4e1461064a5780634f4247a11461067a576103b5565b806338e454b1146105cd5780633e70838b146105e25780633f4ba83a14610602576103b5565b80631d4a7210116103445780632f2ff15d116103135780632f2ff15d14610561578063302d12db146105815780633644e5151461059857806336568abe146105ad576103b5565b80631d4a7210146104ce578063248a9ca3146104fb57806329b6eca91461052b5780632dfdf0b51461054b576103b5565b806317ce2dd41161038057806317ce2dd41461044a57806317fcb39b1461046e5780631a8e55b01461048e5780631b6e7594146104ae576103b5565b806301ffc9a7146103bd578063065b3adf146103f2578063110a83081461042a576103b5565b366103b5576103b3610ba6565b005b6103b3610ba6565b3480156103c957600080fd5b506103dd6103d83660046141d4565b610bda565b60405190151581526020015b60405180910390f35b3480156103fe57600080fd5b50600554610412906001600160a01b031681565b6040516001600160a01b0390911681526020016103e9565b34801561043657600080fd5b506103b3610445366004614213565b610c20565b34801561045657600080fd5b5061046060755481565b6040519081526020016103e9565b34801561047a57600080fd5b50607454610412906001600160a01b031681565b34801561049a57600080fd5b506103b36104a9366004614274565b610cc5565b3480156104ba57600080fd5b506103b36104c93660046142df565b610d01565b3480156104da57600080fd5b506104606104e9366004614213565b603e6020526000908152604090205481565b34801561050757600080fd5b50610460610516366004614383565b60009081526072602052604090206001015490565b34801561053757600080fd5b506103b3610546366004614213565b610d41565b34801561055757600080fd5b5061046060765481565b34801561056d57600080fd5b506103b361057c36600461439c565b610dca565b34801561058d57600080fd5b50610460620f424081565b3480156105a457600080fd5b50607754610460565b3480156105b957600080fd5b506103b36105c836600461439c565b610df4565b3480156105d957600080fd5b506103b3610e72565b3480156105ee57600080fd5b506103b36105fd366004614213565b61104f565b34801561060e57600080fd5b506103b3611079565b6103b36106253660046143cc565b611089565b34801561063657600080fd5b506103dd6106453660046143f7565b6110ac565b34801561065657600080fd5b506103dd610665366004614383565b607a6020526000908152604090205460ff1681565b34801561068657600080fd5b50607f54610412906001600160a01b031681565b6103b36106a83660046144a1565b61111c565b3480156106b957600080fd5b506104606106c8366004614213565b603a6020526000908152604090205481565b3480156106e657600080fd5b5060005460ff166103dd565b3480156106fe57600080fd5b5061046061070d366004614383565b60796020526000908152604090205481565b34801561072b57600080fd5b506103dd61073a36600461457b565b6113e2565b34801561074b57600080fd5b506104606113ee565b34801561076057600080fd5b506103b361140f565b34801561077557600080fd5b506103b36107843660046145b6565b61141f565b34801561079557600080fd5b506104607f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e481565b3480156107c957600080fd5b506107dd6107d8366004614681565b61143a565b6040516103e99190614778565b3480156107f657600080fd5b5061041261080536600461478d565b6115bc565b34801561081657600080fd5b506103b36108253660046147af565b6115d4565b34801561083657600080fd5b506103dd61084536600461439c565b611858565b34801561085657600080fd5b506103b3610865366004614274565b611883565b34801561087657600080fd5b5061088a61088536600461478d565b6118b9565b604080519283526020830191909152016103e9565b3480156108ab57600080fd5b50610460600081565b3480156108c057600080fd5b506104606108cf366004614213565b603c6020526000908152604090205481565b3480156108ed57600080fd5b506103dd6108fc366004614383565b6118e2565b34801561090d57600080fd5b5061046060045481565b34801561092357600080fd5b506103b3610932366004614274565b611918565b34801561094357600080fd5b50610460610952366004614213565b60396020526000908152604090205481565b34801561097057600080fd5b5061098461097f366004614213565b61194e565b6040516103e991906147f6565b34801561099d57600080fd5b506103b36109ac36600461478d565b6119f1565b3480156109bd57600080fd5b506107dd6109cc3660046148f9565b63bc197c8160e01b95945050505050565b3480156109e957600080fd5b506107dd6109f8366004614274565b611a0b565b348015610a0957600080fd5b50610460610a18366004614383565b611b9f565b348015610a2957600080fd5b5060375460385461088a565b348015610a4157600080fd5b50610460610a50366004614213565b603b6020526000908152604090205481565b348015610a6e57600080fd5b506103b3610a7d36600461439c565b611bb6565b348015610a8e57600080fd5b50610460610a9d366004614213565b603d6020526000908152604090205481565b348015610abb57600080fd5b506103b3610aca366004614213565b611bdb565b348015610adb57600080fd5b506103dd610aea366004614383565b611bec565b348015610afb57600080fd5b50610412610b0a3660046149a6565b611c1a565b348015610b1b57600080fd5b506103b3610b2a3660046149c1565b611c90565b348015610b3b57600080fd5b506103b3610b4a366004614274565b611d05565b6103b3610b5d366004614a7e565b611d3b565b348015610b6e57600080fd5b5060015460025461088a565b348015610b8657600080fd5b506107dd610b95366004614af2565b63f23a6e6160e01b95945050505050565b6074546001600160a01b0316331480610bc95750607f546001600160a01b031633145b15610bd057565b610bd8611d82565b565b60006001600160e01b03198216631dcdd2c760e31b1480610c0b57506001600160e01b031982166312c0151560e21b145b80610c1a5750610c1a82611dac565b92915050565b607154600490610100900460ff16158015610c42575060715460ff8083169116105b610c675760405162461bcd60e51b8152600401610c5e90614b5a565b60405180910390fd5b60718054607f80546001600160a01b0319166001600160a01b03861617905561ff001961010060ff851661ffff19909316831717169091556040519081526000805160206155e6833981519152906020015b60405180910390a15050565b610ccd611dd1565b6000839003610cef576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484611e2b565b50505050565b610d09611dd1565b6000859003610d2b576040516316ee9d3b60e11b815260040160405180910390fd5b610d39868686868686611f00565b505050505050565b607154600290610100900460ff16158015610d63575060715460ff8083169116105b610d7f5760405162461bcd60e51b8152600401610c5e90614b5a565b6071805461ffff191660ff831617610100179055610d9e600b836120a8565b6071805461ff001916905560405160ff821681526000805160206155e683398151915290602001610cb9565b600082815260726020526040902060010154610de58161214c565b610def8383612156565b505050565b6001600160a01b0381163314610e645760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610c5e565b610e6e8282612178565b5050565b607154600390610100900460ff16158015610e94575060715460ff8083169116105b610eb05760405162461bcd60e51b8152600401610c5e90614b5a565b6071805461ffff191660ff8316176101001790556000610ed0600b611c1a565b9050600080826001600160a01b031663c441c4a86040518163ffffffff1660e01b8152600401600060405180830381865afa158015610f13573d6000803e3d6000fd5b505050506040513d6000823e601f3d908101601f19168201604052610f3b9190810190614c25565b92509250506000805b8351811015610ff857828181518110610f5f57610f5f614d0b565b6020026020010151607e6000868481518110610f7d57610f7d614d0b565b60200260200101516001600160a01b03166001600160a01b0316815260200190815260200160002060006101000a8154816001600160601b0302191690836001600160601b03160217905550828181518110610fdb57610fdb614d0b565b602002602001015182610fee9190614d37565b9150600101610f44565b50607d80546001600160601b0319166001600160601b039290921691909117905550506071805461ff00191690555060405160ff821681526000805160206155e6833981519152906020015b60405180910390a150565b611057611dd1565b600580546001600160a01b0319166001600160a01b0392909216919091179055565b61108161219a565b610bd8612209565b61109161225b565b6110a96110a336839003830183614da7565b336122a1565b50565b60006110b661225b565b611112848484808060200260200160405190810160405280939291908181526020016000905b82821015611108576110f960608302860136819003810190614dfa565b815260200190600101906110dc565b505050505061257c565b90505b9392505050565b607154610100900460ff161580801561113c5750607154600160ff909116105b806111565750303b158015611156575060715460ff166001145b6111725760405162461bcd60e51b8152600401610c5e90614b5a565b6071805460ff191660011790558015611195576071805461ff0019166101001790555b6111a060008c612a10565b60758990556111ae8a612a1a565b6112396040517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f81527f159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b60208201527fad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5604082015246606082015230608082015260a0812060775550565b6112438887612a68565b61124d8787612af8565b5050611257612b8f565b60006112638680614e44565b905011156113245761128c6112788680614e44565b6112856020890189614e44565b8787611f00565b6112b26112998680614e44565b8660005b6020028101906112ad9190614e44565b612bdc565b6112d86112bf8680614e44565b8660015b6020028101906112d39190614e44565b611e2b565b6112fe6112e58680614e44565b8660025b6020028101906112f99190614e44565b612cb1565b61132461130b8680614e44565b8660035b60200281019061131f9190614e44565b612dc2565b60005b6113346040870187614e44565b90508110156113a0576113987f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e461136e6040890189614e44565b8481811061137e5761137e614d0b565b90506020020160208101906113939190614213565b612156565b600101611327565b5080156113d5576071805461ff0019169055604051600181526000805160206155e68339815191529060200160405180910390a15b5050505050505050505050565b60006111158383612e97565b600061140a611405607d546001600160601b031690565b612f62565b905090565b61141761219a565b610bd8612f98565b611427611dd1565b61143081612fd5565b610e6e82826120a8565b6000600b6114478161300b565b82518690811415806114595750808514155b15611485576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b8060000361149d57506347c28ec560e11b91506115b2565b60005b818110156115a5578481815181106114ba576114ba614d0b565b60200260200101511561159d578686828181106114d9576114d9614d0b565b90506020020160208101906114ee9190614e8d565b607d80546001600160601b031981166001600160601b03918216939093011691909117905586868281811061152557611525614d0b565b905060200201602081019061153a9190614e8d565b607e60008b8b8581811061155057611550614d0b565b90506020020160208101906115659190614213565b6001600160a01b03168152602081019190915260400160002080546001600160601b0319166001600160601b03929092169190911790555b6001016114a0565b506347c28ec560e11b9250505b5095945050505050565b60008281526073602052604081206111159083613057565b7f5e5712e902fff5e704bc4d506ad976718319e019e9d2a872528a01a85db433e46115fe8161214c565b600061161761161236859003850185614f07565b613063565b905061162b61161236859003850185614f07565b83356000908152607960205260409020541461165a5760405163f4b8742f60e01b815260040160405180910390fd5b82356000908152607a602052604090205460ff1661168b5760405163147bfe0760e01b815260040160405180910390fd5b82356000908152607a602052604090819020805460ff19169055517fd639511b37b3b002cca6cfe6bca0d833945a5af5a045578a0627fc43b79b2630906116d59083908690614fda565b60405180910390a160006116ef6080850160608601614213565b9050600061170561012086016101008701615060565b6002811115611716576117166147cc565b036117dd576000611730368690038601610100870161507b565b6001600160a01b0383166000908152603b602052604090205490915061175c906101408701359061312d565b60408201526000611776368790038701610100880161507b565b604083015190915061178d90610140880135615097565b60408201526074546117ad908390339086906001600160a01b0316613147565b6117d66117c06060880160408901614213565b60745483919086906001600160a01b0316613147565b5050611819565b6118196117f06060860160408701614213565b60745483906001600160a01b03166118113689900389016101008a0161507b565b929190613147565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d828560405161184a929190614fda565b60405180910390a150505050565b60009182526072602090815260408084206001600160a01b0393909316845291905290205460ff1690565b61188b611dd1565b60008390036118ad576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612bdc565b6000806118c4611dd1565b6118ce8484612af8565b90925090506118db612b8f565b9250929050565b60006118f6607d546001600160601b031690565b60375461190391906150aa565b60385461191090846150aa565b101592915050565b611920611dd1565b6000839003611942576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612cb1565b60408051808201909152600080825260208201526001600160a01b0382166000908152607860205260409081902081518083019092528054829060ff16600281111561199c5761199c6147cc565b60028111156119ad576119ad6147cc565b815290546001600160a01b03610100909104811660209283015290820151919250166119ec57604051631b79f53b60e21b815260040160405180910390fd5b919050565b6119f9611dd1565b611a038282612a68565b610e6e612b8f565b6000600b611a188161300b565b84838114611a47576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b80600003611a5f5750636242a4ef60e11b9150611b96565b6000805b82811015611b4657868682818110611a7d57611a7d614d0b565b9050602002016020810190611a9291906150c1565b15611b3e57607e60008a8a84818110611aad57611aad614d0b565b9050602002016020810190611ac29190614213565b6001600160a01b0316815260208101919091526040016000908120546001600160601b03169290920191607e908a8a84818110611b0157611b01614d0b565b9050602002016020810190611b169190614213565b6001600160a01b03168152602081019190915260400160002080546001600160601b03191690555b600101611a63565b50607d8054829190600090611b659084906001600160601b03166150de565b92506101000a8154816001600160601b0302191690836001600160601b0316021790555063c48549de60e01b935050505b50949350505050565b6000818152607360205260408120610c1a90613379565b600082815260726020526040902060010154611bd18161214c565b610def8383612178565b611be3611dd1565b6110a981612a1a565b6000611c00607d546001600160601b031690565b600154611c0d91906150aa565b60025461191090846150aa565b60007fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600083600f811115611c5157611c516147cc565b60ff1681526020810191909152604001600020546001600160a01b03169050806119ec578160405163409140df60e11b8152600401610c5e919061510e565b611c98611dd1565b6000869003611cba576040516316ee9d3b60e11b815260040160405180910390fd5b611cc8878787878787611f00565b611cd5878783600061129d565b611ce287878360016112c3565b611cef87878360026112e9565b611cfc878783600361130f565b50505050505050565b611d0d611dd1565b6000839003611d2f576040516316ee9d3b60e11b815260040160405180910390fd5b610cfb84848484612dc2565b611d4361225b565b8060005b81811015610cfb57611d7a848483818110611d6457611d64614d0b565b905060a002018036038101906110a39190614da7565b600101611d47565b611d8a61225b565b611d92614193565b3381526040808201513491015280516110a99082906122a1565b60006001600160e01b03198216630271189760e51b1480610c1a5750610c1a82613383565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314610bd8576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c5e92919061511c565b828114611e59576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015611eca57828282818110611e7657611e76614d0b565b90506020020135603a6000878785818110611e9357611e93614d0b565b9050602002016020810190611ea89190614213565b6001600160a01b03168152602081019190915260400160002055600101611e5c565b507f64557254143204d91ba2d95acb9fda1e5fea55f77efd028685765bc1e94dd4b58484848460405161184a9493929190615193565b8483148015611f0e57508481145b611f39576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b8581101561205e57848482818110611f5657611f56614d0b565b9050602002016020810190611f6b9190614213565b60786000898985818110611f8157611f81614d0b565b9050602002016020810190611f969190614213565b6001600160a01b03908116825260208201929092526040016000208054610100600160a81b0319166101009390921692909202179055828282818110611fde57611fde614d0b565b9050602002016020810190611ff39190615060565b6078600089898581811061200957612009614d0b565b905060200201602081019061201e9190614213565b6001600160a01b031681526020810191909152604001600020805460ff19166001836002811115612051576120516147cc565b0217905550600101611f3c565b507fa4f03cc9c0e0aeb5b71b4ec800702753f65748c2cf3064695ba8e8b46be70444868686868686604051612098969594939291906151df565b60405180910390a1505050505050565b807fdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb600084600f8111156120de576120de6147cc565b60ff168152602081019190915260400160002080546001600160a01b0319166001600160a01b03928316179055811682600f81111561211f5761211f6147cc565b6040517f865d1c228a8ea13709cfe61f346f7ff67f1bbd4a18ff31ad3e7147350d317c5990600090a35050565b6110a981336133a8565b612160828261340c565b6000828152607360205260409020610def9082613492565b61218282826134a7565b6000828152607360205260409020610def908261350e565b7fb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103546001600160a01b03163314806121dc57506005546001600160a01b031633145b610bd8576000356001600160e01b0319166001604051620f948f60ea1b8152600401610c5e92919061511c565b612211613523565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b60005460ff1615610bd85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b6044820152606401610c5e565b604080518082018252600080825260208201526074549184015190916001600160a01b0316906122d09061356c565b60208401516001600160a01b031661237157348460400151604001511461230a5760405163129c2ce160e31b815260040160405180910390fd5b6123138161194e565b604085015151909250600281111561232d5761232d6147cc565b82516002811115612340576123406147cc565b1461235d5760405162035e2b60ea1b815260040160405180910390fd5b6001600160a01b0381166020850152612509565b34156123905760405163129c2ce160e31b815260040160405180910390fd5b61239d846020015161194e565b60408501515190925060028111156123b7576123b76147cc565b825160028111156123ca576123ca6147cc565b146123e75760405162035e2b60ea1b815260040160405180910390fd5b602084015160408501516123fc9185906135b0565b83602001516001600160a01b0316816001600160a01b03160361250957607454607f54604086810151810151905163095ea7b360e01b81526001600160a01b039283166004820152602481019190915291169063095ea7b3906044016020604051808303816000875af1158015612477573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061249b9190615250565b50607f546040808601518101519051636f074d1f60e11b81526001600160a01b039092169163de0e9a3e916124d69160040190815260200190565b600060405180830381600087803b1580156124f057600080fd5b505af1158015612504573d6000803e3d6000fd5b505050505b607680546000918261251a8361526d565b9190505590506000612541858386602001516075548a61372990949392919063ffffffff16565b90507fd7b25068d9dc8d00765254cfb7f5070f98d263c8d68931d937c7362fa738048b61256d82613063565b826040516120989291906152a6565b60008235610140840135826125976080870160608801614213565b90506125b46125af368890038801610100890161507b565b61356c565b60016125c66040880160208901615342565b60018111156125d7576125d76147cc565b146125f55760405163182f3d8760e11b815260040160405180910390fd5b608086013546146126375760405163092048d160e11b81526000356001600160e01b031916600482015260808701356024820152466044820152606401610c5e565b600061264c61097f6080890160608a01614213565b905061266061012088016101008901615060565b6002811115612671576126716147cc565b81516002811115612684576126846147cc565b1480156126b5575061269c60e0880160c08901614213565b6001600160a01b031681602001516001600160a01b0316145b80156126c6575060755460e0880135145b6126e35760405163f4b8742f60e01b815260040160405180910390fd5b6000848152607960205260409020541561271057604051634f13df6160e01b815260040160405180910390fd5b600161272461012089016101008a01615060565b6002811115612735576127356147cc565b148061274857506127468284612e97565b155b6127655760405163c51297b760e01b815260040160405180910390fd5b6000612779611612368a90038a018a614f07565b90506000612789607754836137fe565b905060006127a96127a26101208c016101008d01615060565b868861383f565b60408051606081018252600080825260208201819052918101829052919a50919250819081906000805b8e518110156128e7578e81815181106127ee576127ee614d0b565b6020908102919091018101518051818301516040808401518151600081529586018083528e905260ff9093169085015260608401526080830152935060019060a0016020604051602081039080840390855afa158015612852573d6000803e3d6000fd5b505050602060405103519450846001600160a01b0316846001600160a01b03161061289e576000356001600160e01b031916604051635d3dcd3160e01b8152600401610c5e9190614778565b6001600160a01b0385166000908152607e60205260409020548594506001600160601b03166128cd908361535d565b91508682106128df57600195506128e7565b6001016127d3565b508461290657604051639e8f5f6360e01b815260040160405180910390fd5b505050600089815260796020526040902085905550508715612981576000878152607a602052604090819020805460ff19166001179055517f89e52969465b1f1866fc5d46fd62de953962e9cb33552443cd999eba05bd20dc9061296d9085908d90614fda565b60405180910390a150505050505050610c1a565b61298b85876138cf565b6129ca61299e60608c0160408d01614213565b86607460009054906101000a90046001600160a01b03168d61010001803603810190611811919061507b565b7f21e88e956aa3e086f6388e899965cef814688f99ad8bb29b08d396571016372d838b6040516129fb929190614fda565b60405180910390a15050505050505092915050565b610e6e8282612156565b607480546001600160a01b0319166001600160a01b0383169081179091556040519081527f9d2334c23be647e994f27a72c5eee42a43d5bdcfe15bb88e939103c2b114cbaf90602001611044565b80821115612a97576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b6001805460028054858455908490556004805493840190556040805183815260208101839052929391928592879290917f976f8a9c5bdf8248dec172376d6e2b80a8e3df2f0328e381c6db8e1cf138c0f8910160405180910390a450505050565b60008082841115612b2a576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b5050603780546038805492859055839055600480546001810190915560408051838152602081018590529293928592879290917f31312c97b89cc751b832d98fd459b967a2c3eef3b49757d1cf5ebaa12bb6eee1910160405180910390a49250929050565b600254603754612b9f91906150aa565b603854600154612baf91906150aa565b1115610bd8576000356001600160e01b0319166040516387f6f09560e01b8152600401610c5e9190614778565b828114612c0a576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612c7b57828282818110612c2757612c27614d0b565b9050602002013560396000878785818110612c4457612c44614d0b565b9050602002016020810190612c599190614213565b6001600160a01b03168152602081019190915260400160002055600101612c0d565b507f80bc635c452ae67f12f9b6f12ad4daa6dbbc04eeb9ebb87d354ce10c0e210dc08484848460405161184a9493929190615193565b828114612cdf576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612d8c57620f4240838383818110612d0057612d00614d0b565b905060200201351115612d265760405163572d3bd360e11b815260040160405180910390fd5b828282818110612d3857612d38614d0b565b90506020020135603b6000878785818110612d5557612d55614d0b565b9050602002016020810190612d6a9190614213565b6001600160a01b03168152602081019190915260400160002055600101612ce2565b507fb05f5de88ae0294ebb6f67c5af2fcbbd593cc6bdfe543e2869794a4c8ce3ea508484848460405161184a9493929190615193565b828114612df0576000356001600160e01b0319166040516306b5667560e21b8152600401610c5e9190614778565b60005b83811015612e6157828282818110612e0d57612e0d614d0b565b90506020020135603c6000878785818110612e2a57612e2a614d0b565b9050602002016020810190612e3f9190614213565b6001600160a01b03168152602081019190915260400160002055600101612df3565b507fb5d2963614d72181b4df1f993d45b83edf42fa19710f0204217ba1b3e183bb738484848460405161184a9493929190615193565b6001600160a01b0382166000908152603a60205260408120548210612ebe57506000610c1a565b6000612ecd6201518042615370565b6001600160a01b0385166000908152603e6020526040902054909150811115612f135750506001600160a01b0382166000908152603c6020526040902054811015610c1a565b6001600160a01b0384166000908152603d6020526040902054612f3790849061535d565b6001600160a01b0385166000908152603c602052604090205411159150610c1a9050565b5092915050565b6000600254600160025484600154612f7a91906150aa565b612f84919061535d565b612f8e9190615097565b610c1a9190615370565b612fa061225b565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a25861223e3390565b806001600160a01b03163b6000036110a957604051630bfc64a360e21b81526001600160a01b0382166004820152602401610c5e565b61301481611c1a565b6001600160a01b0316336001600160a01b0316146110a9576000356001600160e01b03191681336040516320e0f98d60e21b8152600401610c5e93929190615392565b6000611115838361395f565b6000806130738360400151613989565b905060006130848460600151613989565b905060006130d88560800151604080517f1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d815282516020808301919091528301518183015291015160608201526080902090565b604080517fb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea815287516020808301919091529097015190870152606086019390935250608084015260a08301525060c0902090565b6000620f424061313d83856150aa565b6111159190615370565b806001600160a01b0316826001600160a01b0316036131f45760408085015190516001600160a01b0385169180156108fc02916000818181858888f193505050506131ef57806001600160a01b031663d0e30db085604001516040518263ffffffff1660e01b81526004016000604051808303818588803b1580156131cb57600080fd5b505af11580156131df573d6000803e3d6000fd5b50505050506131ef8484846139d1565b610cfb565b600084516002811115613209576132096147cc565b036132cf576040516370a0823160e01b81523060048201526000906001600160a01b038416906370a0823190602401602060405180830381865afa158015613255573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061327991906153c9565b905084604001518110156132be576132a1833083886040015161329c9190615097565b613a50565b6132be57604051632f739fff60e11b815260040160405180910390fd5b6132c98585856139d1565b50610cfb565b6001845160028111156132e4576132e46147cc565b03613315576132f882848660200151613af5565b6131ef5760405163c8e3a09f60e01b815260040160405180910390fd5b60028451600281111561332a5761332a6147cc565b0361336057613343828486602001518760400151613b1c565b6131ef576040516334b471a760e21b815260040160405180910390fd5b6040516361e411a760e11b815260040160405180910390fd5b6000610c1a825490565b60006001600160e01b03198216635a05180f60e01b1480610c1a5750610c1a82613b49565b6133b28282611858565b610e6e576133ca816001600160a01b03166014613b7e565b6133d5836020613b7e565b6040516020016133e6929190615406565b60408051601f198184030181529082905262461bcd60e51b8252610c5e916004016154a7565b6134168282611858565b610e6e5760008281526072602090815260408083206001600160a01b03851684529091529020805460ff1916600117905561344e3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6000611115836001600160a01b038416613d19565b6134b18282611858565b15610e6e5760008281526072602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6000611115836001600160a01b038416613d68565b60005460ff16610bd85760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b6044820152606401610c5e565b61357581613e5b565b80613584575061358481613e92565b80613593575061359381613eba565b6110a95760405163034992a760e51b815260040160405180910390fd5b6000606081855160028111156135c8576135c86147cc565b036136a35760408581015181516001600160a01b03878116602483015230604483015260648083019390935283518083039093018352608490910183526020820180516001600160e01b03166323b872dd60e01b17905291519185169161362f91906154ba565b6000604051808303816000865af19150503d806000811461366c576040519150601f19603f3d011682016040523d82523d6000602084013e613671565b606091505b50909250905081801561369c57508051158061369c57508080602001905181019061369c9190615250565b91506136fc565b6001855160028111156136b8576136b86147cc565b036136cd5761369c8385308860200151613ee3565b6002855160028111156136e2576136e26147cc565b036133605761369c83853088602001518960400151613f91565b816137225784843085604051639d2e4c6760e01b8152600401610c5e94939291906154d6565b5050505050565b6137996040805160a08101825260008082526020808301829052835160608082018652838252818301849052818601849052848601919091528451808201865283815280830184905280860184905281850152845190810185528281529081018290529283015290608082015290565b83815260006020820181905250604080820180516001600160a01b039788169052602080890151825190891690820152905146908301528751606084018051918916909152805195909716940193909352935182015292909201516080820152919050565b6040805161190160f01b6020808301919091526022820185905260428083018590528351808403909101815260629092019092528051910120600090611115565b6000806000613856607d546001600160601b031690565b905061386181612f62565b92506000866002811115613877576138776147cc565b036138c6576001600160a01b03851660009081526039602052604090205484106138a7576138a481614045565b92505b6001600160a01b0385166000908152603a602052604090205484101591505b50935093915050565b60006138de6201518042615370565b6001600160a01b0384166000908152603e602052604090205490915081111561392d576001600160a01b03929092166000908152603e6020908152604080832094909455603d90529190912055565b6001600160a01b0383166000908152603d60205260408120805484929061395590849061535d565b9091555050505050565b600082600001828154811061397657613976614d0b565b9060005260206000200154905092915050565b604080517f353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764815282516020808301919091528301518183015291015160608201526080902090565b600080845160028111156139e7576139e76147cc565b03613a02576139fb8284866040015161405d565b9050613a2c565b600184516002811115613a1757613a176147cc565b03613360576139fb8230858760200151613ee3565b80610cfb578383836040516341bd7d9160e11b8152600401610c5e9392919061550c565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b03166340c10f1960e01b1790529151600092861691613aa8916154ba565b6000604051808303816000865af19150503d8060008114613ae5576040519150601f19603f3d011682016040523d82523d6000602084013e613aea565b606091505b509095945050505050565b6000613b0384308585613ee3565b90508061111557613b15848484613a50565b9050611115565b6000613b2b8530868686613f91565b905080613b4157613b3e85858585614130565b90505b949350505050565b60006001600160e01b03198216637965db0b60e01b1480610c1a57506301ffc9a760e01b6001600160e01b0319831614610c1a565b60606000613b8d8360026150aa565b613b9890600261535d565b6001600160401b03811115613baf57613baf6145e2565b6040519080825280601f01601f191660200182016040528015613bd9576020820181803683370190505b509050600360fc1b81600081518110613bf457613bf4614d0b565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110613c2357613c23614d0b565b60200101906001600160f81b031916908160001a9053506000613c478460026150aa565b613c5290600161535d565b90505b6001811115613cca576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110613c8657613c86614d0b565b1a60f81b828281518110613c9c57613c9c614d0b565b60200101906001600160f81b031916908160001a90535060049490941c93613cc38161553c565b9050613c55565b5083156111155760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610c5e565b6000818152600183016020526040812054613d6057508154600181810184556000848152602080822090930184905584548482528286019093526040902091909155610c1a565b506000610c1a565b60008181526001830160205260408120548015613e51576000613d8c600183615097565b8554909150600090613da090600190615097565b9050818114613e05576000866000018281548110613dc057613dc0614d0b565b9060005260206000200154905080876000018481548110613de357613de3614d0b565b6000918252602080832090910192909255918252600188019052604090208390555b8554869080613e1657613e16615553565b600190038181906000526020600020016000905590558560010160008681526020019081526020016000206000905560019350505050610c1a565b6000915050610c1a565b60008082516002811115613e7157613e716147cc565b148015613e82575060008260400151115b8015610c1a575050602001511590565b6000600182516002811115613ea957613ea96147cc565b148015610c1a575050604001511590565b6000600282516002811115613ed157613ed16147cc565b148015610c1a57505060400151151590565b604080516001600160a01b0385811660248301528481166044830152606480830185905283518084039091018152608490920183526020820180516001600160e01b03166323b872dd60e01b1790529151600092871691613f43916154ba565b6000604051808303816000865af19150503d8060008114613f80576040519150601f19603f3d011682016040523d82523d6000602084013e613f85565b606091505b50909695505050505050565b604080516000808252602082019092526001600160a01b03871690613fc190879087908790879060448101615569565b60408051601f198184030181529181526020820180516001600160e01b0316637921219560e11b17905251613ff691906154ba565b6000604051808303816000865af19150503d8060008114614033576040519150601f19603f3d011682016040523d82523d6000602084013e614038565b606091505b5090979650505050505050565b6000603854600160385484603754612f7a91906150aa565b604080516001600160a01b038481166024830152604480830185905283518084039091018152606490920183526020820180516001600160e01b031663a9059cbb60e01b1790529151600092606092908716916140ba91906154ba565b6000604051808303816000865af19150503d80600081146140f7576040519150601f19603f3d011682016040523d82523d6000602084013e6140fc565b606091505b5090925090508180156141275750805115806141275750808060200190518101906141279190615250565b95945050505050565b604080516000808252602082019092526001600160a01b0386169061415e90869086908690604481016155ae565b60408051601f198184030181529181526020820180516001600160e01b031663731133e960e01b17905251613f4391906154ba565b60408051606081018252600080825260208201529081016141cf6040805160608101909152806000815260200160008152602001600081525090565b905290565b6000602082840312156141e657600080fd5b81356001600160e01b03198116811461111557600080fd5b6001600160a01b03811681146110a957600080fd5b60006020828403121561422557600080fd5b8135611115816141fe565b60008083601f84011261424257600080fd5b5081356001600160401b0381111561425957600080fd5b6020830191508360208260051b85010111156118db57600080fd5b6000806000806040858703121561428a57600080fd5b84356001600160401b03808211156142a157600080fd5b6142ad88838901614230565b909650945060208701359150808211156142c657600080fd5b506142d387828801614230565b95989497509550505050565b600080600080600080606087890312156142f857600080fd5b86356001600160401b038082111561430f57600080fd5b61431b8a838b01614230565b9098509650602089013591508082111561433457600080fd5b6143408a838b01614230565b9096509450604089013591508082111561435957600080fd5b5061436689828a01614230565b979a9699509497509295939492505050565b80356119ec816141fe565b60006020828403121561439557600080fd5b5035919050565b600080604083850312156143af57600080fd5b8235915060208301356143c1816141fe565b809150509250929050565b600060a082840312156143de57600080fd5b50919050565b600061016082840312156143de57600080fd5b6000806000610180848603121561440d57600080fd5b61441785856143e4565b92506101608401356001600160401b038082111561443457600080fd5b818601915086601f83011261444857600080fd5b81358181111561445757600080fd5b87602060608302850101111561446c57600080fd5b6020830194508093505050509250925092565b8060608101831015610c1a57600080fd5b8060808101831015610c1a57600080fd5b6000806000806000806000806000806101208b8d0312156144c157600080fd5b6144ca8b614378565b99506144d860208c01614378565b985060408b0135975060608b0135965060808b0135955060a08b0135945060c08b01356001600160401b038082111561451057600080fd5b61451c8e838f0161447f565b955060e08d013591508082111561453257600080fd5b61453e8e838f01614490565b94506101008d013591508082111561455557600080fd5b506145628d828e01614230565b915080935050809150509295989b9194979a5092959850565b6000806040838503121561458e57600080fd5b8235614599816141fe565b946020939093013593505050565b8035601081106119ec57600080fd5b600080604083850312156145c957600080fd5b6145d2836145a7565b915060208301356143c1816141fe565b634e487b7160e01b600052604160045260246000fd5b604051606081016001600160401b038111828210171561461a5761461a6145e2565b60405290565b604051601f8201601f191681016001600160401b0381118282101715614648576146486145e2565b604052919050565b60006001600160401b03821115614669576146696145e2565b5060051b60200190565b80151581146110a957600080fd5b60008060008060006060868803121561469957600080fd5b85356001600160401b03808211156146b057600080fd5b6146bc89838a01614230565b90975095506020915087820135818111156146d657600080fd5b6146e28a828b01614230565b9096509450506040880135818111156146fa57600080fd5b88019050601f8101891361470d57600080fd5b803561472061471b82614650565b614620565b81815260059190911b8201830190838101908b83111561473f57600080fd5b928401925b8284101561476657833561475781614673565b82529284019290840190614744565b80955050505050509295509295909350565b6001600160e01b031991909116815260200190565b600080604083850312156147a057600080fd5b50508035926020909101359150565b600061016082840312156147c257600080fd5b61111583836143e4565b634e487b7160e01b600052602160045260246000fd5b600381106147f2576147f26147cc565b9052565b60006040820190506148098284516147e2565b6020928301516001600160a01b0316919092015290565b600082601f83011261483157600080fd5b8135602061484161471b83614650565b8083825260208201915060208460051b87010193508684111561486357600080fd5b602086015b8481101561487f5780358352918301918301614868565b509695505050505050565b600082601f83011261489b57600080fd5b81356001600160401b038111156148b4576148b46145e2565b6148c7601f8201601f1916602001614620565b8181528460208386010111156148dc57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561491157600080fd5b853561491c816141fe565b9450602086013561492c816141fe565b935060408601356001600160401b038082111561494857600080fd5b61495489838a01614820565b9450606088013591508082111561496a57600080fd5b61497689838a01614820565b9350608088013591508082111561498c57600080fd5b506149998882890161488a565b9150509295509295909350565b6000602082840312156149b857600080fd5b611115826145a7565b60008060008060008060006080888a0312156149dc57600080fd5b87356001600160401b03808211156149f357600080fd5b6149ff8b838c01614230565b909950975060208a0135915080821115614a1857600080fd5b614a248b838c01614230565b909750955060408a0135915080821115614a3d57600080fd5b614a498b838c01614230565b909550935060608a0135915080821115614a6257600080fd5b50614a6f8a828b01614490565b91505092959891949750929550565b60008060208385031215614a9157600080fd5b82356001600160401b0380821115614aa857600080fd5b818501915085601f830112614abc57600080fd5b813581811115614acb57600080fd5b86602060a083028501011115614ae057600080fd5b60209290920196919550909350505050565b600080600080600060a08688031215614b0a57600080fd5b8535614b15816141fe565b94506020860135614b25816141fe565b9350604086013592506060860135915060808601356001600160401b03811115614b4e57600080fd5b6149998882890161488a565b6020808252602e908201527f496e697469616c697a61626c653a20636f6e747261637420697320616c72656160408201526d191e481a5b9a5d1a585b1a5e995960921b606082015260800190565b600082601f830112614bb957600080fd5b81516020614bc961471b83614650565b8083825260208201915060208460051b870101935086841115614beb57600080fd5b602086015b8481101561487f578051614c03816141fe565b8352918301918301614bf0565b6001600160601b03811681146110a957600080fd5b600080600060608486031215614c3a57600080fd5b83516001600160401b0380821115614c5157600080fd5b614c5d87838801614ba8565b9450602091508186015181811115614c7457600080fd5b614c8088828901614ba8565b945050604086015181811115614c9557600080fd5b86019050601f81018713614ca857600080fd5b8051614cb661471b82614650565b81815260059190911b82018301908381019089831115614cd557600080fd5b928401925b82841015614cfc578351614ced81614c10565b82529284019290840190614cda565b80955050505050509250925092565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b6001600160601b03818116838216019080821115612f5b57612f5b614d21565b8035600381106119ec57600080fd5b600060608284031215614d7857600080fd5b614d806145f8565b9050614d8b82614d57565b8152602082013560208201526040820135604082015292915050565b600060a08284031215614db957600080fd5b614dc16145f8565b8235614dcc816141fe565b81526020830135614ddc816141fe565b6020820152614dee8460408501614d66565b60408201529392505050565b600060608284031215614e0c57600080fd5b614e146145f8565b823560ff81168114614e2557600080fd5b8152602083810135908201526040928301359281019290925250919050565b6000808335601e19843603018112614e5b57600080fd5b8301803591506001600160401b03821115614e7557600080fd5b6020019150600581901b36038213156118db57600080fd5b600060208284031215614e9f57600080fd5b813561111581614c10565b8035600281106119ec57600080fd5b600060608284031215614ecb57600080fd5b614ed36145f8565b90508135614ee0816141fe565b81526020820135614ef0816141fe565b806020830152506040820135604082015292915050565b60006101608284031215614f1a57600080fd5b60405160a081018181106001600160401b0382111715614f3c57614f3c6145e2565b60405282358152614f4f60208401614eaa565b6020820152614f618460408501614eb9565b6040820152614f738460a08501614eb9565b6060820152614f86846101008501614d66565b60808201529392505050565b600281106147f2576147f26147cc565b8035614fad816141fe565b6001600160a01b039081168352602082013590614fc9826141fe565b166020830152604090810135910152565b60006101808201905083825282356020830152614ff960208401614eaa565b6150066040840182614f92565b506150176060830160408501614fa2565b61502760c0830160a08501614fa2565b61012061504281840161503d6101008701614d57565b6147e2565b61014081850135818501528085013561016085015250509392505050565b60006020828403121561507257600080fd5b61111582614d57565b60006060828403121561508d57600080fd5b6111158383614d66565b81810381811115610c1a57610c1a614d21565b8082028115828204841417610c1a57610c1a614d21565b6000602082840312156150d357600080fd5b813561111581614673565b6001600160601b03828116828216039080821115612f5b57612f5b614d21565b601081106147f2576147f26147cc565b60208101610c1a82846150fe565b6001600160e01b03198316815260408101600b831061513d5761513d6147cc565b8260208301529392505050565b8183526000602080850194508260005b8581101561518857813561516d816141fe565b6001600160a01b03168752958201959082019060010161515a565b509495945050505050565b6040815260006151a760408301868861514a565b82810360208401528381526001600160fb1b038411156151c657600080fd5b8360051b80866020840137016020019695505050505050565b6060815260006151f360608301888a61514a565b6020838203602085015261520882888a61514a565b848103604086015285815286925060200160005b86811015615241576152318261503d86614d57565b928201929082019060010161521c565b509a9950505050505050505050565b60006020828403121561526257600080fd5b815161111581614673565b60006001820161527f5761527f614d21565b5060010190565b6152918282516147e2565b60208181015190830152604090810151910152565b6000610180820190508382528251602083015260208301516152cb6040840182614f92565b5060408381015180516001600160a01b03908116606086015260208201511660808501529081015160a084015250606083015180516001600160a01b0390811660c085015260208201511660e0840152604081015161010084015250608083015161533a610120840182615286565b509392505050565b60006020828403121561535457600080fd5b61111582614eaa565b80820180821115610c1a57610c1a614d21565b60008261538d57634e487b7160e01b600052601260045260246000fd5b500490565b6001600160e01b031984168152606081016153b060208301856150fe565b6001600160a01b03929092166040919091015292915050565b6000602082840312156153db57600080fd5b5051919050565b60005b838110156153fd5781810151838201526020016153e5565b50506000910152565b7f416363657373436f6e74726f6c3a206163636f756e742000000000000000000081526000835161543e8160178501602088016153e2565b7001034b99036b4b9b9b4b733903937b6329607d1b601791840191820152835161546f8160288401602088016153e2565b01602801949350505050565b600081518084526154938160208601602086016153e2565b601f01601f19169290920160200192915050565b602081526000611115602083018461547b565b600082516154cc8184602087016153e2565b9190910192915050565b60c081016154e48287615286565b6001600160a01b0394851660608301529284166080820152921660a090920191909152919050565b60a0810161551a8286615286565b6001600160a01b03938416606083015291909216608090920191909152919050565b60008161554b5761554b614d21565b506000190190565b634e487b7160e01b600052603160045260246000fd5b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906155a39083018461547b565b979650505050505050565b60018060a01b03851681528360208201528260408201526080606082015260006155db608083018461547b565b969550505050505056fe7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498a26469706673582212201e2ed98411cda98706015cdbeb9e494126a836fe1b19bb440229c826fa07419564736f6c63430008170033", "deployer": "0x968D0Cd7343f711216817E617d3f92a23dC91c07", "devdoc": { "version": 1, @@ -2426,6 +2473,9 @@ "requestDepositFor((address,address,(uint8,uint256,uint256)))": { "details": "Locks the assets and request deposit." }, + "requestDepositForBatch((address,address,(uint8,uint256,uint256))[])": { + "details": "Locks the assets and request deposit for batch." + }, "revokeRole(bytes32,address)": { "details": "Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event." }, @@ -2697,13 +2747,13 @@ } }, "isFoundry": true, - "metadata": "{\"compiler\":{\"version\":\"0.8.23+commit.f704f362\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"}],\"name\":\"ErrContractTypeNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC1155MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC20MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC721MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrEmptyArray\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"}],\"name\":\"ErrInvalidChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidInfo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrInvalidOrder\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidPercentage\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidReceipt\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidReceiptKind\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidRequest\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrInvalidThreshold\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidTokenStandard\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForApprovedWithdrawal\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForInsufficientVoteWeight\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForProcessedWithdrawal\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrReachedDailyWithdrawalLimit\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"tokenInfo\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"ErrTokenCouldNotTransfer\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"tokenInfo\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"ErrTokenCouldNotTransferFrom\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"enum RoleAccess\",\"name\":\"expectedRole\",\"type\":\"uint8\"}],\"name\":\"ErrUnauthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"enum ContractType\",\"name\":\"expectedContractType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"actual\",\"type\":\"address\"}],\"name\":\"ErrUnexpectedInternalCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrUnsupportedStandard\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrUnsupportedToken\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"ErrZeroCodeContract\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"ContractUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"limits\",\"type\":\"uint256[]\"}],\"name\":\"DailyWithdrawalLimitsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"DepositRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"thresholds\",\"type\":\"uint256[]\"}],\"name\":\"HighTierThresholdsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousNumerator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDenominator\",\"type\":\"uint256\"}],\"name\":\"HighTierVoteWeightThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"thresholds\",\"type\":\"uint256[]\"}],\"name\":\"LockedThresholdsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousNumerator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDenominator\",\"type\":\"uint256\"}],\"name\":\"ThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"mainchainTokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"roninTokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"enum TokenStandard[]\",\"name\":\"standards\",\"type\":\"uint8[]\"}],\"name\":\"TokenMapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"percentages\",\"type\":\"uint256[]\"}],\"name\":\"UnlockFeePercentagesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"WithdrawalLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"WithdrawalUnlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IWETH\",\"name\":\"weth\",\"type\":\"address\"}],\"name\":\"WrappedNativeTokenContractUpdated\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWAL_UNLOCKER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_MAX_PERCENTAGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_voteWeight\",\"type\":\"uint256\"}],\"name\":\"checkHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_voteWeight\",\"type\":\"uint256\"}],\"name\":\"checkThreshold\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"dailyWithdrawalLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergencyPauser\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"}],\"name\":\"getContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contract_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"mainchainToken\",\"type\":\"address\"}],\"name\":\"getRoninToken\",\"outputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"}],\"internalType\":\"struct MappedTokenConsumer.MappedToken\",\"name\":\"token\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"num_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denom_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"highTierThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_roleSetter\",\"type\":\"address\"},{\"internalType\":\"contract IWETH\",\"name\":\"_wrappedToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_roninChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_highTierVWNumerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"},{\"internalType\":\"address[][3]\",\"name\":\"_addresses\",\"type\":\"address[][3]\"},{\"internalType\":\"uint256[][4]\",\"name\":\"_thresholds\",\"type\":\"uint256[][4]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"bridgeManagerContract\",\"type\":\"address\"}],\"name\":\"initializeV2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initializeV3\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"wethUnwrapper_\",\"type\":\"address\"}],\"name\":\"initializeV4\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastDateSynced\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastSyncedWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lockedThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_mainchainTokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_roninTokens\",\"type\":\"address[]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"}],\"name\":\"mapTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_mainchainTokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_roninTokens\",\"type\":\"address[]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"},{\"internalType\":\"uint256[][4]\",\"name\":\"_thresholds\",\"type\":\"uint256[][4]\"}],\"name\":\"mapTokensAndThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minimumVoteWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"operators\",\"type\":\"address[]\"},{\"internalType\":\"uint96[]\",\"name\":\"weights\",\"type\":\"uint96[]\"},{\"internalType\":\"bool[]\",\"name\":\"addeds\",\"type\":\"bool[]\"}],\"name\":\"onBridgeOperatorsAdded\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"operators\",\"type\":\"address[]\"},{\"internalType\":\"bool[]\",\"name\":\"removeds\",\"type\":\"bool[]\"}],\"name\":\"onBridgeOperatorsRemoved\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"}],\"name\":\"reachedWithdrawalLimit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"receiveEther\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipientAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Request\",\"name\":\"_request\",\"type\":\"tuple\"}],\"name\":\"requestDepositFor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roninChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_limits\",\"type\":\"uint256[]\"}],\"name\":\"setDailyWithdrawalLimits\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"setEmergencyPauser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_thresholds\",\"type\":\"uint256[]\"}],\"name\":\"setHighTierThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"}],\"name\":\"setHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_previousNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_previousDenom\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_thresholds\",\"type\":\"uint256[]\"}],\"name\":\"setLockedThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denom\",\"type\":\"uint256\"}],\"name\":\"setThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_percentages\",\"type\":\"uint256[]\"}],\"name\":\"setUnlockFeePercentages\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"_wrappedToken\",\"type\":\"address\"}],\"name\":\"setWrappedNativeTokenContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Receipt\",\"name\":\"_receipt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"struct SignatureConsumer.Signature[]\",\"name\":\"_signatures\",\"type\":\"tuple[]\"}],\"name\":\"submitWithdrawal\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_locked\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"unlockFeePercentages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"unlockWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wethUnwrapper\",\"outputs\":[{\"internalType\":\"contract WethUnwrapper\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wrappedNativeToken\",\"outputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"errors\":{\"ErrContractTypeNotFound(uint8)\":[{\"details\":\"Error of invalid role.\"}],\"ErrERC1155MintingFailed()\":[{\"details\":\"Error indicating that the mint of ERC1155 tokens has failed.\"}],\"ErrERC20MintingFailed()\":[{\"details\":\"Error indicating that the minting of ERC20 tokens has failed.\"}],\"ErrERC721MintingFailed()\":[{\"details\":\"Error indicating that the minting of ERC721 tokens has failed.\"}],\"ErrEmptyArray()\":[{\"details\":\"Error indicating that an array is empty when it should contain elements.\"}],\"ErrInvalidChainId(bytes4,uint256,uint256)\":[{\"details\":\"Error indicating that the chain ID is invalid.\",\"params\":{\"actual\":\"Current chain ID that executing function.\",\"expected\":\"Expected chain ID required for the tx to success.\",\"msgSig\":\"The function signature (bytes4) of the operation that encountered an invalid chain ID.\"}}],\"ErrInvalidInfo()\":[{\"details\":\"Error indicating that the provided information is invalid.\"}],\"ErrInvalidOrder(bytes4)\":[{\"details\":\"Error indicating that an order is invalid.\",\"params\":{\"msgSig\":\"The function signature (bytes4) of the operation that encountered an invalid order.\"}}],\"ErrInvalidPercentage()\":[{\"details\":\"Error of invalid percentage.\"}],\"ErrInvalidReceipt()\":[{\"details\":\"Error indicating that a receipt is invalid.\"}],\"ErrInvalidReceiptKind()\":[{\"details\":\"Error indicating that a receipt kind is invalid.\"}],\"ErrInvalidRequest()\":[{\"details\":\"Error indicating that a request is invalid.\"}],\"ErrInvalidThreshold(bytes4)\":[{\"details\":\"Error indicating that the provided threshold is invalid for a specific function signature.\",\"params\":{\"msgSig\":\"The function signature (bytes4) that the invalid threshold applies to.\"}}],\"ErrInvalidTokenStandard()\":[{\"details\":\"Error indicating that a token standard is invalid.\"}],\"ErrLengthMismatch(bytes4)\":[{\"details\":\"Error indicating a mismatch in the length of input parameters or arrays for a specific function.\",\"params\":{\"msgSig\":\"The function signature (bytes4) that has a length mismatch.\"}}],\"ErrQueryForApprovedWithdrawal()\":[{\"details\":\"Error indicating that a query was made for an approved withdrawal.\"}],\"ErrQueryForInsufficientVoteWeight()\":[{\"details\":\"Error indicating that a query was made for insufficient vote weight.\"}],\"ErrQueryForProcessedWithdrawal()\":[{\"details\":\"Error indicating that a query was made for a processed withdrawal.\"}],\"ErrReachedDailyWithdrawalLimit()\":[{\"details\":\"Error indicating that the daily withdrawal limit has been reached.\"}],\"ErrTokenCouldNotTransfer((uint8,uint256,uint256),address,address)\":[{\"details\":\"Error indicating that the `transfer` has failed.\",\"params\":{\"to\":\"Receiver of the token value.\",\"token\":\"Address of the token.\",\"tokenInfo\":\"Info of the token including ERC standard, id or quantity.\"}}],\"ErrTokenCouldNotTransferFrom((uint8,uint256,uint256),address,address,address)\":[{\"details\":\"Error indicating that the `handleAssetIn` has failed.\",\"params\":{\"from\":\"Owner of the token value.\",\"to\":\"Receiver of the token value.\",\"token\":\"Address of the token.\",\"tokenInfo\":\"Info of the token including ERC standard, id or quantity.\"}}],\"ErrUnauthorized(bytes4,uint8)\":[{\"details\":\"Error indicating that the caller is unauthorized to perform a specific function.\",\"params\":{\"expectedRole\":\"The role required to perform the function.\",\"msgSig\":\"The function signature (bytes4) that the caller is unauthorized to perform.\"}}],\"ErrUnexpectedInternalCall(bytes4,uint8,address)\":[{\"details\":\"Error indicating that the caller is unauthorized to perform a specific function.\",\"params\":{\"actual\":\"The actual address that called to the function.\",\"expectedContractType\":\"The contract type required to perform the function.\",\"msgSig\":\"The function signature (bytes4).\"}}],\"ErrUnsupportedStandard()\":[{\"details\":\"Error indicating that an unsupported standard is encountered.\"}],\"ErrUnsupportedToken()\":[{\"details\":\"Error indicating that a token is not supported.\"}],\"ErrZeroCodeContract(address)\":[{\"details\":\"Error of set to non-contract.\"}]},\"events\":{\"ContractUpdated(uint8,address)\":{\"details\":\"Emitted when a contract is updated.\"},\"DailyWithdrawalLimitsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the daily limit thresholds are updated\"},\"DepositRequested(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the deposit is requested\"},\"HighTierThresholdsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the thresholds for high-tier withdrawals that requires high-tier vote weights are updated\"},\"HighTierVoteWeightThresholdUpdated(uint256,uint256,uint256,uint256,uint256)\":{\"details\":\"Emitted when the high-tier vote weight threshold is updated\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"LockedThresholdsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the thresholds for locked withdrawals are updated\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"RoleAdminChanged(bytes32,bytes32,bytes32)\":{\"details\":\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\"},\"RoleGranted(bytes32,address,address)\":{\"details\":\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\"},\"RoleRevoked(bytes32,address,address)\":{\"details\":\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)\"},\"ThresholdUpdated(uint256,uint256,uint256,uint256,uint256)\":{\"details\":\"Emitted when the threshold is updated\"},\"TokenMapped(address[],address[],uint8[])\":{\"details\":\"Emitted when the tokens are mapped\"},\"UnlockFeePercentagesUpdated(address[],uint256[])\":{\"details\":\"Emitted when the fee percentages to unlock withdraw are updated\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"WithdrawalLocked(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the withdrawal is locked\"},\"WithdrawalUnlocked(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the withdrawal is unlocked\"},\"Withdrew(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the assets are withdrawn\"},\"WrappedNativeTokenContractUpdated(address)\":{\"details\":\"Emitted when the wrapped native token contract is updated\"}},\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"Returns the domain seperator.\"},\"checkHighTierVoteWeightThreshold(uint256)\":{\"details\":\"Checks whether the `_voteWeight` passes the high-tier vote weight threshold.\"},\"checkThreshold(uint256)\":{\"details\":\"Checks whether the `_voteWeight` passes the threshold.\"},\"getContract(uint8)\":{\"details\":\"Returns the address of a contract with a specific role. Throws an error if no contract is set for the specified role.\",\"params\":{\"contractType\":\"The role of the contract to retrieve.\"},\"returns\":{\"contract_\":\"The address of the contract with the specified role.\"}},\"getHighTierVoteWeightThreshold()\":{\"details\":\"Returns the high-tier vote weight threshold.\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getRoleMember(bytes32,uint256)\":{\"details\":\"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.\"},\"getRoleMemberCount(bytes32)\":{\"details\":\"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.\"},\"getRoninToken(address)\":{\"details\":\"Returns token address on Ronin network. Note: Reverts for unsupported token.\"},\"getThreshold()\":{\"details\":\"Returns the threshold.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initialize(address,address,uint256,uint256,uint256,uint256,address[][3],uint256[][4],uint8[])\":{\"details\":\"Initializes contract storage.\"},\"mapTokens(address[],address[],uint8[])\":{\"details\":\"Maps mainchain tokens to Ronin network. Requirement: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `TokenMapped` event.\"},\"mapTokensAndThresholds(address[],address[],uint8[],uint256[][4])\":{\"details\":\"Maps mainchain tokens to Ronin network and sets thresholds. Requirement: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `TokenMapped` event.\"},\"minimumVoteWeight()\":{\"details\":\"Returns the minimum vote weight to pass the threshold.\"},\"onBridgeOperatorsAdded(address[],uint96[],bool[])\":{\"details\":\"Handles the event when bridge operators are added.\",\"params\":{\"addeds\":\"The corresponding boolean values indicating whether the operators were added or not.\",\"bridgeOperators\":\"The addresses of the bridge operators.\"},\"returns\":{\"_0\":\"The selector of the function being called.\"}},\"onBridgeOperatorsRemoved(address[],bool[])\":{\"details\":\"Handles the event when bridge operators are removed.\",\"params\":{\"bridgeOperators\":\"The addresses of the bridge operators.\",\"removeds\":\"The corresponding boolean values indicating whether the operators were removed or not.\"},\"returns\":{\"_0\":\"The selector of the function being called.\"}},\"pause()\":{\"details\":\"Triggers paused state.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"reachedWithdrawalLimit(address,uint256)\":{\"details\":\"Checks whether the withdrawal reaches the limitation.\"},\"receiveEther()\":{\"details\":\"Receives ether without doing anything. Use this function to topup native token.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"requestDepositFor((address,address,(uint8,uint256,uint256)))\":{\"details\":\"Locks the assets and request deposit.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"setContract(uint8,address)\":{\"details\":\"Sets the address of a contract with a specific role. Emits the event {ContractUpdated}.\",\"params\":{\"addr\":\"The address of the contract to set.\",\"contractType\":\"The role of the contract to set.\"}},\"setDailyWithdrawalLimits(address[],uint256[])\":{\"details\":\"Sets daily limit amounts for the withdrawals. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `DailyWithdrawalLimitsUpdated` event.\"},\"setEmergencyPauser(address)\":{\"details\":\"Grant emergency pauser role for `_addr`.\"},\"setHighTierThresholds(address[],uint256[])\":{\"details\":\"Sets the thresholds for high-tier withdrawals that requires high-tier vote weights. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `HighTierThresholdsUpdated` event.\"},\"setHighTierVoteWeightThreshold(uint256,uint256)\":{\"details\":\"Sets high-tier vote weight threshold and returns the old one. Requirements: - The method caller is admin. - The high-tier vote weight threshold must equal to or larger than the normal threshold. Emits the `HighTierVoteWeightThresholdUpdated` event.\"},\"setLockedThresholds(address[],uint256[])\":{\"details\":\"Sets the amount thresholds to lock withdrawal. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `LockedThresholdsUpdated` event.\"},\"setThreshold(uint256,uint256)\":{\"details\":\"Override `GatewayV3-setThreshold`. Requirements: - The high-tier vote weight threshold must equal to or larger than the normal threshold.\"},\"setUnlockFeePercentages(address[],uint256[])\":{\"details\":\"Sets fee percentages to unlock withdrawal. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `UnlockFeePercentagesUpdated` event.\"},\"setWrappedNativeTokenContract(address)\":{\"details\":\"Sets the wrapped native token contract. Requirements: - The method caller is admin. Emits the `WrappedNativeTokenContractUpdated` event.\"},\"submitWithdrawal((uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)),(uint8,bytes32,bytes32)[])\":{\"details\":\"Withdraws based on the receipt and the validator signatures. Returns whether the withdrawal is locked. Emits the `Withdrew` once the assets are released.\"},\"unlockWithdrawal((uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Approves a specific withdrawal. Requirements: - The method caller is a validator. Emits the `Withdrew` once the assets are released.\"},\"unpause()\":{\"details\":\"Triggers unpaused state.\"}},\"stateVariables\":{\"WITHDRAWAL_UNLOCKER_ROLE\":{\"details\":\"Withdrawal unlocker role hash\"},\"______deprecatedBridgeOperatorAddedBlock\":{\"custom:deprecated\":\"Previously `_bridgeOperatorAddedBlock` (mapping(address => uint256))\"},\"______deprecatedBridgeOperators\":{\"custom:deprecated\":\"Previously `_bridgeOperators` (uint256[])\"},\"_domainSeparator\":{\"details\":\"Domain separator\"},\"_roninToken\":{\"details\":\"Mapping from mainchain token => token address on Ronin network\"},\"depositCount\":{\"details\":\"Total deposit\"},\"roninChainId\":{\"details\":\"Ronin network id\"},\"withdrawalHash\":{\"details\":\"Mapping from withdrawal id => withdrawal hash\"},\"withdrawalLocked\":{\"details\":\"Mapping from withdrawal id => locked\"},\"wrappedNativeToken\":{\"details\":\"Wrapped native token address\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"unlockFeePercentages(address)\":{\"notice\":\"Values 0-1,000,000 map to 0%-100%\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/mainchain/MainchainGatewayV3.sol\":\"MainchainGatewayV3\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@fdk/=lib/foundry-deployment-kit/script/\",\":@openzeppelin/=lib/openzeppelin-contracts/\",\":@prb/math/=lib/prb-math/\",\":@prb/test/=lib/prb-test/src/\",\":@ronin/contracts/=src/\",\":@ronin/script/=script/\",\":@ronin/test/=test/\",\":contract-libs/=lib/foundry-deployment-kit/lib/contract-libs/src/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/foundry-deployment-kit/lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/foundry-deployment-kit/lib/forge-std/src/\",\":foundry-deployment-kit/=lib/foundry-deployment-kit/\",\":hardhat/=node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/foundry-deployment-kit/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/prb-math/src/\",\":prb-test/=lib/prb-test/src/\",\":sample-projects/=node_modules/hardhat/sample-projects/\",\":solady/=lib/solady/src/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(uint160(account), 20),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5b35d8e68aeaccc685239bd9dd79b9ba01a0357930f8a3307ab85511733d9724\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/AccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlEnumerable.sol\\\";\\nimport \\\"./AccessControl.sol\\\";\\nimport \\\"../utils/structs/EnumerableSet.sol\\\";\\n\\n/**\\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\\n */\\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\\n using EnumerableSet for EnumerableSet.AddressSet;\\n\\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\\n return _roleMembers[role].at(index);\\n }\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\\n return _roleMembers[role].length();\\n }\\n\\n /**\\n * @dev Overload {_grantRole} to track enumerable memberships\\n */\\n function _grantRole(bytes32 role, address account) internal virtual override {\\n super._grantRole(role, account);\\n _roleMembers[role].add(account);\\n }\\n\\n /**\\n * @dev Overload {_revokeRole} to track enumerable memberships\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual override {\\n super._revokeRole(role, account);\\n _roleMembers[role].remove(account);\\n }\\n}\\n\",\"keccak256\":\"0x13f5e15f2a0650c0b6aaee2ef19e89eaf4870d6e79662d572a393334c1397247\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/IAccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\n\\n/**\\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\\n */\\ninterface IAccessControlEnumerable is IAccessControl {\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) external view returns (address);\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xba4459ab871dfa300f5212c6c30178b63898c03533a1ede28436f11546626676\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x1d4afe6cb24200cc4545eed814ecf5847277dfe5d613a1707aad5fceecebcfff\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Proxy.sol\\\";\\nimport \\\"./ERC1967Upgrade.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xa2b22da3032e50b55f95ec1d13336102d675f341167aa76db571ef7f8bb7975d\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Upgrade.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeacon.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n Address.isContract(IBeacon(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xabf3f59bc0e5423eae45e459dbe92e7052c6983628d39008590edc852a62f94a\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overridden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n\",\"keccak256\":\"0xc130fe33f1b2132158531a87734153293f6d07bc263ff4ac90e85da9c82c0e27\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1967/ERC1967Proxy.sol\\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\\"admin cannot fallback to proxy target\\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\\"\\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\\");\\n super._beforeFallback();\\n }\\n}\\n\",\"keccak256\":\"0xa6a787e7a901af6511e19aa53e1a00352db215a011d2c7a438d0582dd5da76f9\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original\\n * initialization step. This is essential to configure modules that are added through upgrades and that require\\n * initialization.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2a21b14ff90012878752f230d3ffd5c3405e5938d06c97a7d89c0a64561d0d66\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/security/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor() {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x0849d93b16c9940beb286a7864ed02724b248b93e0d80ef6355af5ef15c64773\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/ERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC1155.sol\\\";\\nimport \\\"./IERC1155Receiver.sol\\\";\\nimport \\\"./extensions/IERC1155MetadataURI.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"../../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the basic standard multi-token.\\n * See https://eips.ethereum.org/EIPS/eip-1155\\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\\n *\\n * _Available since v3.1._\\n */\\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\\n using Address for address;\\n\\n // Mapping from token ID to account balances\\n mapping(uint256 => mapping(address => uint256)) private _balances;\\n\\n // Mapping from account to operator approvals\\n mapping(address => mapping(address => bool)) private _operatorApprovals;\\n\\n // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json\\n string private _uri;\\n\\n /**\\n * @dev See {_setURI}.\\n */\\n constructor(string memory uri_) {\\n _setURI(uri_);\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\\n return\\n interfaceId == type(IERC1155).interfaceId ||\\n interfaceId == type(IERC1155MetadataURI).interfaceId ||\\n super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev See {IERC1155MetadataURI-uri}.\\n *\\n * This implementation returns the same URI for *all* token types. It relies\\n * on the token type ID substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * Clients calling this function must replace the `\\\\{id\\\\}` substring with the\\n * actual token type ID.\\n */\\n function uri(uint256) public view virtual override returns (string memory) {\\n return _uri;\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {\\n require(account != address(0), \\\"ERC1155: address zero is not a valid owner\\\");\\n return _balances[id][account];\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOfBatch}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] memory accounts, uint256[] memory ids)\\n public\\n view\\n virtual\\n override\\n returns (uint256[] memory)\\n {\\n require(accounts.length == ids.length, \\\"ERC1155: accounts and ids length mismatch\\\");\\n\\n uint256[] memory batchBalances = new uint256[](accounts.length);\\n\\n for (uint256 i = 0; i < accounts.length; ++i) {\\n batchBalances[i] = balanceOf(accounts[i], ids[i]);\\n }\\n\\n return batchBalances;\\n }\\n\\n /**\\n * @dev See {IERC1155-setApprovalForAll}.\\n */\\n function setApprovalForAll(address operator, bool approved) public virtual override {\\n _setApprovalForAll(_msgSender(), operator, approved);\\n }\\n\\n /**\\n * @dev See {IERC1155-isApprovedForAll}.\\n */\\n function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {\\n return _operatorApprovals[account][operator];\\n }\\n\\n /**\\n * @dev See {IERC1155-safeTransferFrom}.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n _safeTransferFrom(from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev See {IERC1155-safeBatchTransferFrom}.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n _safeBatchTransferFrom(from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n\\n emit TransferSingle(operator, from, to, id, amount);\\n\\n _afterTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; ++i) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n }\\n\\n emit TransferBatch(operator, from, to, ids, amounts);\\n\\n _afterTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Sets a new URI for all token types, by relying on the token type ID\\n * substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * By this mechanism, any occurrence of the `\\\\{id\\\\}` substring in either the\\n * URI or any of the amounts in the JSON file at said URI will be replaced by\\n * clients with the token type ID.\\n *\\n * For example, the `https://token-cdn-domain/\\\\{id\\\\}.json` URI would be\\n * interpreted by clients as\\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\\n * for token type ID 0x4cce0.\\n *\\n * See {uri}.\\n *\\n * Because these URIs cannot be meaningfully represented by the {URI} event,\\n * this function emits no events.\\n */\\n function _setURI(string memory newuri) internal virtual {\\n _uri = newuri;\\n }\\n\\n /**\\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _balances[id][to] += amount;\\n emit TransferSingle(operator, address(0), to, id, amount);\\n\\n _afterTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _mintBatch(\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n _balances[ids[i]][to] += amounts[i];\\n }\\n\\n emit TransferBatch(operator, address(0), to, ids, amounts);\\n\\n _afterTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens of token type `id` from `from`\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `from` must have at least `amount` tokens of token type `id`.\\n */\\n function _burn(\\n address from,\\n uint256 id,\\n uint256 amount\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n\\n emit TransferSingle(operator, from, address(0), id, amount);\\n\\n _afterTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n */\\n function _burnBatch(\\n address from,\\n uint256[] memory ids,\\n uint256[] memory amounts\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n }\\n\\n emit TransferBatch(operator, from, address(0), ids, amounts);\\n\\n _afterTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n }\\n\\n /**\\n * @dev Approve `operator` to operate on all of `owner` tokens\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function _setApprovalForAll(\\n address owner,\\n address operator,\\n bool approved\\n ) internal virtual {\\n require(owner != operator, \\\"ERC1155: setting approval status for self\\\");\\n _operatorApprovals[owner][operator] = approved;\\n emit ApprovalForAll(owner, operator, approved);\\n }\\n\\n /**\\n * @dev Hook that is called before any token transfer. This includes minting\\n * and burning, as well as batched variants.\\n *\\n * The same hook is called on both single and batched variants. For single\\n * transfers, the length of the `ids` and `amounts` arrays will be 1.\\n *\\n * Calling conditions (for each `id` and `amount` pair):\\n *\\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * of token type `id` will be transferred to `to`.\\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\\n * for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\\n * will be burned.\\n * - `from` and `to` are never both zero.\\n * - `ids` and `amounts` have the same, non-zero length.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any token transfer. This includes minting\\n * and burning, as well as batched variants.\\n *\\n * The same hook is called on both single and batched variants. For single\\n * transfers, the length of the `id` and `amount` arrays will be 1.\\n *\\n * Calling conditions (for each `id` and `amount` pair):\\n *\\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * of token type `id` will be transferred to `to`.\\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\\n * for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\\n * will be burned.\\n * - `from` and `to` are never both zero.\\n * - `ids` and `amounts` have the same, non-zero length.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {}\\n\\n function _doSafeTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\\n if (response != IERC1155Receiver.onERC1155Received.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _doSafeBatchTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (\\n bytes4 response\\n ) {\\n if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\\n uint256[] memory array = new uint256[](1);\\n array[0] = element;\\n\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x447a21c87433c0f11252912313a96f3454629ef88cca7a4eefbb283b3ec409f9\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x6392f2cfe3a5ee802227fe7a2dfd47096d881aec89bddd214b35c5b46d3cd941\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/ERC1155Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\\n * own tokens and those that they have been approved to use.\\n *\\n * _Available since v3.1._\\n */\\nabstract contract ERC1155Burnable is ERC1155 {\\n function burn(\\n address account,\\n uint256 id,\\n uint256 value\\n ) public virtual {\\n require(\\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n\\n _burn(account, id, value);\\n }\\n\\n function burnBatch(\\n address account,\\n uint256[] memory ids,\\n uint256[] memory values\\n ) public virtual {\\n require(\\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n\\n _burnBatch(account, ids, values);\\n }\\n}\\n\",\"keccak256\":\"0xb11d1ade7146ac3da122e1f387ea82b0bd385d50823946c3f967dbffef3e9f4f\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/ERC1155Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\nimport \\\"../../../security/Pausable.sol\\\";\\n\\n/**\\n * @dev ERC1155 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n *\\n * _Available since v3.1._\\n */\\nabstract contract ERC1155Pausable is ERC1155, Pausable {\\n /**\\n * @dev See {ERC1155-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual override {\\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n require(!paused(), \\\"ERC1155Pausable: token transfer while paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xdad22b949de979bb2ad9001c044b2aeaacf8a25e3de09ed6f022a9469f936d5b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC1155.sol\\\";\\n\\n/**\\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155MetadataURI is IERC1155 {\\n /**\\n * @dev Returns the URI for token type `id`.\\n *\\n * If the `\\\\{id\\\\}` substring is present in the URI, it must be replaced by\\n * clients with the actual token type ID.\\n */\\n function uri(uint256 id) external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xa66d18b9a85458d28fc3304717964502ae36f7f8a2ff35bc83f6f85d74b03574\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/presets/ERC1155PresetMinterPauser.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\nimport \\\"../extensions/ERC1155Burnable.sol\\\";\\nimport \\\"../extensions/ERC1155Pausable.sol\\\";\\nimport \\\"../../../access/AccessControlEnumerable.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev {ERC1155} token, including:\\n *\\n * - ability for holders to burn (destroy) their tokens\\n * - a minter role that allows for token minting (creation)\\n * - a pauser role that allows to stop all token transfers\\n *\\n * This contract uses {AccessControl} to lock permissioned functions using the\\n * different roles - head to its documentation for details.\\n *\\n * The account that deploys the contract will be granted the minter and pauser\\n * roles, as well as the default admin role, which will let it grant both minter\\n * and pauser roles to other accounts.\\n *\\n * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._\\n */\\ncontract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {\\n bytes32 public constant MINTER_ROLE = keccak256(\\\"MINTER_ROLE\\\");\\n bytes32 public constant PAUSER_ROLE = keccak256(\\\"PAUSER_ROLE\\\");\\n\\n /**\\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\\n * deploys the contract.\\n */\\n constructor(string memory uri) ERC1155(uri) {\\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\\n\\n _setupRole(MINTER_ROLE, _msgSender());\\n _setupRole(PAUSER_ROLE, _msgSender());\\n }\\n\\n /**\\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\\n *\\n * See {ERC1155-_mint}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `MINTER_ROLE`.\\n */\\n function mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have minter role to mint\\\");\\n\\n _mint(to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\\n */\\n function mintBatch(\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have minter role to mint\\\");\\n\\n _mintBatch(to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Pauses all token transfers.\\n *\\n * See {ERC1155Pausable} and {Pausable-_pause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function pause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have pauser role to pause\\\");\\n _pause();\\n }\\n\\n /**\\n * @dev Unpauses all token transfers.\\n *\\n * See {ERC1155Pausable} and {Pausable-_unpause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function unpause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have pauser role to unpause\\\");\\n _unpause();\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId)\\n public\\n view\\n virtual\\n override(AccessControlEnumerable, ERC1155)\\n returns (bool)\\n {\\n return super.supportsInterface(interfaceId);\\n }\\n\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual override(ERC1155, ERC1155Pausable) {\\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n }\\n}\\n\",\"keccak256\":\"0x775e248004d21e0666740534a732daa9f17ceeee660ded876829e98a3a62b657\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Holder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ERC1155Receiver.sol\\\";\\n\\n/**\\n * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.\\n *\\n * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be\\n * stuck.\\n *\\n * @dev _Available since v3.1._\\n */\\ncontract ERC1155Holder is ERC1155Receiver {\\n function onERC1155Received(\\n address,\\n address,\\n uint256,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155Received.selector;\\n }\\n\\n function onERC1155BatchReceived(\\n address,\\n address,\\n uint256[] memory,\\n uint256[] memory,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155BatchReceived.selector;\\n }\\n}\\n\",\"keccak256\":\"0x2e024ca51ce5abe16c0d34e6992a1104f356e2244eb4ccbec970435e8b3405e3\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC1155Receiver.sol\\\";\\nimport \\\"../../../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\\n }\\n}\\n\",\"keccak256\":\"0x3dd5e1a66a56f30302108a1da97d677a42b1daa60e503696b2bcbbf3e4c95bcb\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC721 compliant contract.\\n */\\ninterface IERC721 is IERC165 {\\n /**\\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\\n */\\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\\n */\\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\\n\\n /**\\n * @dev Returns the number of tokens in ``owner``'s account.\\n */\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n /**\\n * @dev Returns the owner of the `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function ownerOf(uint256 tokenId) external view returns (address owner);\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Transfers `tokenId` token from `from` to `to`.\\n *\\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\\n * The approval is cleared when the token is transferred.\\n *\\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\\n *\\n * Requirements:\\n *\\n * - The caller must own the token or be an approved operator.\\n * - `tokenId` must exist.\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address to, uint256 tokenId) external;\\n\\n /**\\n * @dev Approve or remove `operator` as an operator for the caller.\\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\\n *\\n * Requirements:\\n *\\n * - The `operator` cannot be the caller.\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function setApprovalForAll(address operator, bool _approved) external;\\n\\n /**\\n * @dev Returns the account approved for `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function getApproved(uint256 tokenId) external view returns (address operator);\\n\\n /**\\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\\n *\\n * See {setApprovalForAll}\\n */\\n function isApprovedForAll(address owner, address operator) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xed6a749c5373af398105ce6ee3ac4763aa450ea7285d268c85d9eeca809cdb1f\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xd6153ce99bcdcce22b124f755e72553295be6abcd63804cfdffceb188b8bef10\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xd5c50c54bf02740ebd122ff06832546cb5fa84486d52695a9ccfd11666e0c81d\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xaf159a8b1923ad2a26d516089bceca9bdeaeacd04be50983ea00ba63070f08a3\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n } else if (error == RecoverError.InvalidSignatureV) {\\n revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n if (v != 27 && v != 28) {\\n return (address(0), RecoverError.InvalidSignatureV);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xdb7f5c28fc61cda0bd8ab60ce288e206b791643bcd3ba464a70cbec18895a2f5\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping(bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (lastIndex != toDeleteIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastValue;\\n // Update the index for the moved value\\n set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n return _values(set._inner);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x5050943b32b6a8f282573d166b2e9d87ab7eb4dbba4ab6acf36ecb54fe6995e4\",\"license\":\"MIT\"},\"src/extensions/GatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/security/Pausable.sol\\\";\\nimport \\\"../interfaces/IQuorum.sol\\\";\\nimport \\\"./collections/HasProxyAdmin.sol\\\";\\n\\nabstract contract GatewayV3 is HasProxyAdmin, Pausable, IQuorum {\\n uint256 internal _num;\\n uint256 internal _denom;\\n\\n address private ______deprecated;\\n uint256 public nonce;\\n\\n address public emergencyPauser;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n */\\n uint256[49] private ______gap;\\n\\n /**\\n * @dev Grant emergency pauser role for `_addr`.\\n */\\n function setEmergencyPauser(address _addr) external onlyProxyAdmin {\\n emergencyPauser = _addr;\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function getThreshold() external view virtual returns (uint256 num_, uint256 denom_) {\\n return (_num, _denom);\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function checkThreshold(uint256 _voteWeight) external view virtual returns (bool) {\\n return _voteWeight * _denom >= _num * _getTotalWeight();\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function setThreshold(uint256 _numerator, uint256 _denominator) external virtual onlyProxyAdmin {\\n return _setThreshold(_numerator, _denominator);\\n }\\n\\n /**\\n * @dev Triggers paused state.\\n */\\n function pause() external {\\n _requireAuth();\\n _pause();\\n }\\n\\n /**\\n * @dev Triggers unpaused state.\\n */\\n function unpause() external {\\n _requireAuth();\\n _unpause();\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function minimumVoteWeight() public view virtual returns (uint256) {\\n return _minimumVoteWeight(_getTotalWeight());\\n }\\n\\n /**\\n * @dev Sets threshold and returns the old one.\\n *\\n * Emits the `ThresholdUpdated` event.\\n *\\n */\\n function _setThreshold(uint256 num, uint256 denom) internal virtual {\\n if (num > denom) revert ErrInvalidThreshold(msg.sig);\\n uint256 prevNum = _num;\\n uint256 prevDenom = _denom;\\n _num = num;\\n _denom = denom;\\n unchecked {\\n emit ThresholdUpdated(nonce++, num, denom, prevNum, prevDenom);\\n }\\n }\\n\\n /**\\n * @dev Returns minimum vote weight.\\n */\\n function _minimumVoteWeight(uint256 _totalWeight) internal view virtual returns (uint256) {\\n return (_num * _totalWeight + _denom - 1) / _denom;\\n }\\n\\n /**\\n * @dev Internal method to check method caller.\\n *\\n * Requirements:\\n *\\n * - The method caller must be admin or pauser.\\n *\\n */\\n function _requireAuth() private view {\\n if (!(msg.sender == _getProxyAdmin() || msg.sender == emergencyPauser)) {\\n revert ErrUnauthorized(msg.sig, RoleAccess.ADMIN);\\n }\\n }\\n\\n /**\\n * @dev Returns the total weight.\\n */\\n function _getTotalWeight() internal view virtual returns (uint256);\\n}\\n\",\"keccak256\":\"0x010a0021a377e4b23a4f56269b9c6e3e3fc2684897928ff9b9da1b47c3f07baf\",\"license\":\"MIT\"},\"src/extensions/TransparentUpgradeableProxyV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\\\";\\n\\ncontract TransparentUpgradeableProxyV2 is TransparentUpgradeableProxy {\\n constructor(address _logic, address admin_, bytes memory _data) payable TransparentUpgradeableProxy(_logic, admin_, _data) { }\\n\\n /**\\n * @dev Calls a function from the current implementation as specified by `_data`, which should be an encoded function call.\\n *\\n * Requirements:\\n * - Only the admin can call this function.\\n *\\n * Note: The proxy admin is not allowed to interact with the proxy logic through the fallback function to avoid\\n * triggering some unexpected logic. This is to allow the administrator to explicitly call the proxy, please consider\\n * reviewing the encoded data `_data` and the method which is called before using this.\\n *\\n */\\n function functionDelegateCall(bytes memory _data) public payable ifAdmin {\\n address _addr = _implementation();\\n assembly {\\n let _result := delegatecall(gas(), _addr, add(_data, 32), mload(_data), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n switch _result\\n case 0 { revert(0, returndatasize()) }\\n default { return(0, returndatasize()) }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x45fc7b71d09da99414b977a56e586b3604670d865e5f36f395d5c98bc4ba64af\",\"license\":\"MIT\"},\"src/extensions/WethUnwrapper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\nimport \\\"../interfaces/IWETH.sol\\\";\\n\\ncontract WethUnwrapper is ReentrancyGuard {\\n IWETH public immutable weth;\\n\\n error ErrCannotTransferFrom();\\n error ErrNotWrappedContract();\\n error ErrExternalCallFailed(address sender, bytes4 sig);\\n\\n constructor(address weth_) {\\n if (address(weth_).code.length == 0) revert ErrNotWrappedContract();\\n weth = IWETH(weth_);\\n }\\n\\n fallback() external payable {\\n _fallback();\\n }\\n\\n receive() external payable {\\n _fallback();\\n }\\n\\n function unwrap(uint256 amount) external nonReentrant {\\n _deductWrappedAndWithdraw(amount);\\n _sendNativeTo(payable(msg.sender), amount);\\n }\\n\\n function unwrapTo(uint256 amount, address payable to) external nonReentrant {\\n _deductWrappedAndWithdraw(amount);\\n _sendNativeTo(payable(to), amount);\\n }\\n\\n function _deductWrappedAndWithdraw(uint256 amount) internal {\\n (bool success,) = address(weth).call(abi.encodeCall(IWETH.transferFrom, (msg.sender, address(this), amount)));\\n if (!success) revert ErrCannotTransferFrom();\\n\\n weth.withdraw(amount);\\n }\\n\\n function _sendNativeTo(address payable to, uint256 val) internal {\\n (bool success,) = to.call{ value: val }(\\\"\\\");\\n if (!success) {\\n revert ErrExternalCallFailed(to, msg.sig);\\n }\\n }\\n\\n function _fallback() internal view {\\n if (msg.sender != address(weth)) revert ErrNotWrappedContract();\\n }\\n}\\n\",\"keccak256\":\"0x5f7b72d9ed8944724d2f228358d565a61ea345cba1883e5424fb801bebc758ff\",\"license\":\"MIT\"},\"src/extensions/WithdrawalLimitation.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./GatewayV3.sol\\\";\\n\\nabstract contract WithdrawalLimitation is GatewayV3 {\\n /// @dev Error of invalid percentage.\\n error ErrInvalidPercentage();\\n\\n /// @dev Emitted when the high-tier vote weight threshold is updated\\n event HighTierVoteWeightThresholdUpdated(\\n uint256 indexed nonce, uint256 indexed numerator, uint256 indexed denominator, uint256 previousNumerator, uint256 previousDenominator\\n );\\n /// @dev Emitted when the thresholds for high-tier withdrawals that requires high-tier vote weights are updated\\n event HighTierThresholdsUpdated(address[] tokens, uint256[] thresholds);\\n /// @dev Emitted when the thresholds for locked withdrawals are updated\\n event LockedThresholdsUpdated(address[] tokens, uint256[] thresholds);\\n /// @dev Emitted when the fee percentages to unlock withdraw are updated\\n event UnlockFeePercentagesUpdated(address[] tokens, uint256[] percentages);\\n /// @dev Emitted when the daily limit thresholds are updated\\n event DailyWithdrawalLimitsUpdated(address[] tokens, uint256[] limits);\\n\\n uint256 public constant _MAX_PERCENTAGE = 1_000_000;\\n\\n uint256 internal _highTierVWNum;\\n uint256 internal _highTierVWDenom;\\n\\n /// @dev Mapping from mainchain token => the amount thresholds for high-tier withdrawals that requires high-tier vote weights\\n mapping(address => uint256) public highTierThreshold;\\n /// @dev Mapping from mainchain token => the amount thresholds to lock withdrawal\\n mapping(address => uint256) public lockedThreshold;\\n /// @dev Mapping from mainchain token => unlock fee percentages for unlocker\\n /// @notice Values 0-1,000,000 map to 0%-100%\\n mapping(address => uint256) public unlockFeePercentages;\\n /// @dev Mapping from mainchain token => daily limit amount for withdrawal\\n mapping(address => uint256) public dailyWithdrawalLimit;\\n /// @dev Mapping from token address => today withdrawal amount\\n mapping(address => uint256) public lastSyncedWithdrawal;\\n /// @dev Mapping from token address => last date synced to record the `lastSyncedWithdrawal`\\n mapping(address => uint256) public lastDateSynced;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n */\\n uint256[50] private ______gap;\\n\\n /**\\n * @dev Override `GatewayV3-setThreshold`.\\n *\\n * Requirements:\\n * - The high-tier vote weight threshold must equal to or larger than the normal threshold.\\n *\\n */\\n function setThreshold(uint256 num, uint256 denom) external virtual override onlyProxyAdmin {\\n _setThreshold(num, denom);\\n _verifyThresholds();\\n }\\n\\n /**\\n * @dev Returns the high-tier vote weight threshold.\\n */\\n function getHighTierVoteWeightThreshold() external view virtual returns (uint256, uint256) {\\n return (_highTierVWNum, _highTierVWDenom);\\n }\\n\\n /**\\n * @dev Checks whether the `_voteWeight` passes the high-tier vote weight threshold.\\n */\\n function checkHighTierVoteWeightThreshold(uint256 _voteWeight) external view virtual returns (bool) {\\n return _voteWeight * _highTierVWDenom >= _highTierVWNum * _getTotalWeight();\\n }\\n\\n /**\\n * @dev Sets high-tier vote weight threshold and returns the old one.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The high-tier vote weight threshold must equal to or larger than the normal threshold.\\n *\\n * Emits the `HighTierVoteWeightThresholdUpdated` event.\\n *\\n */\\n function setHighTierVoteWeightThreshold(\\n uint256 _numerator,\\n uint256 _denominator\\n ) external virtual onlyProxyAdmin returns (uint256 _previousNum, uint256 _previousDenom) {\\n (_previousNum, _previousDenom) = _setHighTierVoteWeightThreshold(_numerator, _denominator);\\n _verifyThresholds();\\n }\\n\\n /**\\n * @dev Sets the thresholds for high-tier withdrawals that requires high-tier vote weights.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `HighTierThresholdsUpdated` event.\\n *\\n */\\n function setHighTierThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setHighTierThresholds(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets the amount thresholds to lock withdrawal.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `LockedThresholdsUpdated` event.\\n *\\n */\\n function setLockedThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setLockedThresholds(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets fee percentages to unlock withdrawal.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `UnlockFeePercentagesUpdated` event.\\n *\\n */\\n function setUnlockFeePercentages(address[] calldata _tokens, uint256[] calldata _percentages) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setUnlockFeePercentages(_tokens, _percentages);\\n }\\n\\n /**\\n * @dev Sets daily limit amounts for the withdrawals.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `DailyWithdrawalLimitsUpdated` event.\\n *\\n */\\n function setDailyWithdrawalLimits(address[] calldata _tokens, uint256[] calldata _limits) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setDailyWithdrawalLimits(_tokens, _limits);\\n }\\n\\n /**\\n * @dev Checks whether the withdrawal reaches the limitation.\\n */\\n function reachedWithdrawalLimit(address _token, uint256 _quantity) external view virtual returns (bool) {\\n return _reachedWithdrawalLimit(_token, _quantity);\\n }\\n\\n /**\\n * @dev Sets high-tier vote weight threshold and returns the old one.\\n *\\n * Emits the `HighTierVoteWeightThresholdUpdated` event.\\n *\\n */\\n function _setHighTierVoteWeightThreshold(uint256 _numerator, uint256 _denominator) internal returns (uint256 _previousNum, uint256 _previousDenom) {\\n if (_numerator > _denominator) revert ErrInvalidThreshold(msg.sig);\\n\\n _previousNum = _highTierVWNum;\\n _previousDenom = _highTierVWDenom;\\n _highTierVWNum = _numerator;\\n _highTierVWDenom = _denominator;\\n\\n unchecked {\\n emit HighTierVoteWeightThresholdUpdated(nonce++, _numerator, _denominator, _previousNum, _previousDenom);\\n }\\n }\\n\\n /**\\n * @dev Sets the thresholds for high-tier withdrawals that requires high-tier vote weights.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `HighTierThresholdsUpdated` event.\\n *\\n */\\n function _setHighTierThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) internal virtual {\\n if (_tokens.length != _thresholds.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n highTierThreshold[_tokens[_i]] = _thresholds[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit HighTierThresholdsUpdated(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets the amount thresholds to lock withdrawal.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `LockedThresholdsUpdated` event.\\n *\\n */\\n function _setLockedThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) internal virtual {\\n if (_tokens.length != _thresholds.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n lockedThreshold[_tokens[_i]] = _thresholds[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit LockedThresholdsUpdated(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets fee percentages to unlock withdrawal.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n * - The percentage is equal to or less than 100_000.\\n *\\n * Emits the `UnlockFeePercentagesUpdated` event.\\n *\\n */\\n function _setUnlockFeePercentages(address[] calldata _tokens, uint256[] calldata _percentages) internal virtual {\\n if (_tokens.length != _percentages.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n if (_percentages[_i] > _MAX_PERCENTAGE) revert ErrInvalidPercentage();\\n\\n unlockFeePercentages[_tokens[_i]] = _percentages[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit UnlockFeePercentagesUpdated(_tokens, _percentages);\\n }\\n\\n /**\\n * @dev Sets daily limit amounts for the withdrawals.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `DailyWithdrawalLimitsUpdated` event.\\n *\\n */\\n function _setDailyWithdrawalLimits(address[] calldata _tokens, uint256[] calldata _limits) internal virtual {\\n if (_tokens.length != _limits.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n dailyWithdrawalLimit[_tokens[_i]] = _limits[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit DailyWithdrawalLimitsUpdated(_tokens, _limits);\\n }\\n\\n /**\\n * @dev Checks whether the withdrawal reaches the daily limitation.\\n *\\n * Requirements:\\n * - The daily withdrawal threshold should not apply for locked withdrawals.\\n *\\n */\\n function _reachedWithdrawalLimit(address _token, uint256 _quantity) internal view virtual returns (bool) {\\n if (_lockedWithdrawalRequest(_token, _quantity)) {\\n return false;\\n }\\n\\n uint256 _currentDate = block.timestamp / 1 days;\\n if (_currentDate > lastDateSynced[_token]) {\\n return dailyWithdrawalLimit[_token] <= _quantity;\\n } else {\\n return dailyWithdrawalLimit[_token] <= lastSyncedWithdrawal[_token] + _quantity;\\n }\\n }\\n\\n /**\\n * @dev Record withdrawal token.\\n */\\n function _recordWithdrawal(address _token, uint256 _quantity) internal virtual {\\n uint256 _currentDate = block.timestamp / 1 days;\\n if (_currentDate > lastDateSynced[_token]) {\\n lastDateSynced[_token] = _currentDate;\\n lastSyncedWithdrawal[_token] = _quantity;\\n } else {\\n lastSyncedWithdrawal[_token] += _quantity;\\n }\\n }\\n\\n /**\\n * @dev Returns whether the withdrawal request is locked or not.\\n */\\n function _lockedWithdrawalRequest(address _token, uint256 _quantity) internal view virtual returns (bool) {\\n return lockedThreshold[_token] <= _quantity;\\n }\\n\\n /**\\n * @dev Computes fee percentage.\\n */\\n function _computeFeePercentage(uint256 _amount, uint256 _percentage) internal view virtual returns (uint256) {\\n return (_amount * _percentage) / _MAX_PERCENTAGE;\\n }\\n\\n /**\\n * @dev Returns high-tier vote weight.\\n */\\n function _highTierVoteWeight(uint256 _totalWeight) internal view virtual returns (uint256) {\\n return (_highTierVWNum * _totalWeight + _highTierVWDenom - 1) / _highTierVWDenom;\\n }\\n\\n /**\\n * @dev Validates whether the high-tier vote weight threshold is larger than the normal threshold.\\n */\\n function _verifyThresholds() internal view {\\n if (_num * _highTierVWDenom > _highTierVWNum * _denom) revert ErrInvalidThreshold(msg.sig);\\n }\\n}\\n\",\"keccak256\":\"0x4b7d559d4b1f53239b8690776318db8d63f578f72fb269d8024570aa70c2c2a6\",\"license\":\"MIT\"},\"src/extensions/collections/HasContracts.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { HasProxyAdmin } from \\\"./HasProxyAdmin.sol\\\";\\nimport \\\"../../interfaces/collections/IHasContracts.sol\\\";\\nimport { IdentityGuard } from \\\"../../utils/IdentityGuard.sol\\\";\\nimport { ErrUnexpectedInternalCall } from \\\"../../utils/CommonErrors.sol\\\";\\n\\n/**\\n * @title HasContracts\\n * @dev A contract that provides functionality to manage multiple contracts with different roles.\\n */\\nabstract contract HasContracts is HasProxyAdmin, IHasContracts, IdentityGuard {\\n /// @dev value is equal to keccak256(\\\"@ronin.dpos.collections.HasContracts.slot\\\") - 1\\n bytes32 private constant _STORAGE_SLOT = 0xdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb;\\n\\n /**\\n * @dev Modifier to restrict access to functions only to contracts with a specific role.\\n * @param contractType The contract type that allowed to call\\n */\\n modifier onlyContract(ContractType contractType) virtual {\\n _requireContract(contractType);\\n _;\\n }\\n\\n /**\\n * @inheritdoc IHasContracts\\n */\\n function setContract(ContractType contractType, address addr) external virtual onlyProxyAdmin {\\n _requireHasCode(addr);\\n _setContract(contractType, addr);\\n }\\n\\n /**\\n * @inheritdoc IHasContracts\\n */\\n function getContract(ContractType contractType) public view returns (address contract_) {\\n contract_ = _getContractMap()[uint8(contractType)];\\n if (contract_ == address(0)) revert ErrContractTypeNotFound(contractType);\\n }\\n\\n /**\\n * @dev Internal function to set the address of a contract with a specific role.\\n * @param contractType The contract type of the contract to set.\\n * @param addr The address of the contract to set.\\n */\\n function _setContract(ContractType contractType, address addr) internal virtual {\\n _getContractMap()[uint8(contractType)] = addr;\\n emit ContractUpdated(contractType, addr);\\n }\\n\\n /**\\n * @dev Internal function to access the mapping of contract addresses with roles.\\n * @return contracts_ The mapping of contract addresses with roles.\\n */\\n function _getContractMap() private pure returns (mapping(uint8 => address) storage contracts_) {\\n assembly {\\n contracts_.slot := _STORAGE_SLOT\\n }\\n }\\n\\n /**\\n * @dev Internal function to check if the calling contract has a specific role.\\n * @param contractType The contract type that the calling contract must have.\\n * @dev Throws an error if the calling contract does not have the specified role.\\n */\\n function _requireContract(ContractType contractType) private view {\\n if (msg.sender != getContract(contractType)) {\\n revert ErrUnexpectedInternalCall(msg.sig, contractType, msg.sender);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf7dbefa31230e6e4bd319f02d94893cbfd07ee12a0e016f5fadc57660df01891\",\"license\":\"MIT\"},\"src/extensions/collections/HasProxyAdmin.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/utils/StorageSlot.sol\\\";\\nimport \\\"../../utils/CommonErrors.sol\\\";\\n\\nabstract contract HasProxyAdmin {\\n // bytes32(uint256(keccak256(\\\"eip1967.proxy.admin\\\")) - 1));\\n bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n modifier onlyProxyAdmin() {\\n _requireProxyAdmin();\\n _;\\n }\\n\\n /**\\n * @dev Returns proxy admin.\\n */\\n function _getProxyAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n function _requireProxyAdmin() internal view {\\n if (msg.sender != _getProxyAdmin()) revert ErrUnauthorized(msg.sig, RoleAccess.ADMIN);\\n }\\n}\\n\",\"keccak256\":\"0xad3db02c99a960b60151f2ad45eed46073d14fe1ed861f496c7aeefacbbc528e\",\"license\":\"MIT\"},\"src/interfaces/IMainchainGatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IWETH.sol\\\";\\nimport \\\"./consumers/SignatureConsumer.sol\\\";\\nimport \\\"./consumers/MappedTokenConsumer.sol\\\";\\nimport \\\"../libraries/Transfer.sol\\\";\\n\\ninterface IMainchainGatewayV3 is SignatureConsumer, MappedTokenConsumer {\\n /**\\n * @dev Error indicating that a query was made for an approved withdrawal.\\n */\\n error ErrQueryForApprovedWithdrawal();\\n\\n /**\\n * @dev Error indicating that the daily withdrawal limit has been reached.\\n */\\n error ErrReachedDailyWithdrawalLimit();\\n\\n /**\\n * @dev Error indicating that a query was made for a processed withdrawal.\\n */\\n error ErrQueryForProcessedWithdrawal();\\n\\n /**\\n * @dev Error indicating that a query was made for insufficient vote weight.\\n */\\n error ErrQueryForInsufficientVoteWeight();\\n\\n /// @dev Emitted when the deposit is requested\\n event DepositRequested(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the assets are withdrawn\\n event Withdrew(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the tokens are mapped\\n event TokenMapped(address[] mainchainTokens, address[] roninTokens, TokenStandard[] standards);\\n /// @dev Emitted when the wrapped native token contract is updated\\n event WrappedNativeTokenContractUpdated(IWETH weth);\\n /// @dev Emitted when the withdrawal is locked\\n event WithdrawalLocked(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the withdrawal is unlocked\\n event WithdrawalUnlocked(bytes32 receiptHash, Transfer.Receipt receipt);\\n\\n /**\\n * @dev Returns the domain seperator.\\n */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /**\\n * @dev Returns deposit count.\\n */\\n function depositCount() external view returns (uint256);\\n\\n /**\\n * @dev Sets the wrapped native token contract.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n *\\n * Emits the `WrappedNativeTokenContractUpdated` event.\\n *\\n */\\n function setWrappedNativeTokenContract(IWETH _wrappedToken) external;\\n\\n /**\\n * @dev Returns whether the withdrawal is locked.\\n */\\n function withdrawalLocked(uint256 withdrawalId) external view returns (bool);\\n\\n /**\\n * @dev Returns the withdrawal hash.\\n */\\n function withdrawalHash(uint256 withdrawalId) external view returns (bytes32);\\n\\n /**\\n * @dev Locks the assets and request deposit.\\n */\\n function requestDepositFor(Transfer.Request calldata _request) external payable;\\n\\n /**\\n * @dev Withdraws based on the receipt and the validator signatures.\\n * Returns whether the withdrawal is locked.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function submitWithdrawal(Transfer.Receipt memory _receipt, Signature[] memory _signatures) external returns (bool _locked);\\n\\n /**\\n * @dev Approves a specific withdrawal.\\n *\\n * Requirements:\\n * - The method caller is a validator.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function unlockWithdrawal(Transfer.Receipt calldata _receipt) external;\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network.\\n *\\n * Requirement:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function mapTokens(address[] calldata _mainchainTokens, address[] calldata _roninTokens, TokenStandard[] calldata _standards) external;\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network and sets thresholds.\\n *\\n * Requirement:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function mapTokensAndThresholds(\\n address[] calldata _mainchainTokens,\\n address[] calldata _roninTokens,\\n TokenStandard[] calldata _standards,\\n uint256[][4] calldata _thresholds\\n ) external;\\n\\n /**\\n * @dev Returns token address on Ronin network.\\n * Note: Reverts for unsupported token.\\n */\\n function getRoninToken(address _mainchainToken) external view returns (MappedToken memory _token);\\n}\\n\",\"keccak256\":\"0x2d4f53a65e76e903040f5f4dbe5aea53367d61243c60efdc8402ff184bd50a87\",\"license\":\"MIT\"},\"src/interfaces/IQuorum.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IQuorum {\\n /// @dev Emitted when the threshold is updated\\n event ThresholdUpdated(uint256 indexed nonce, uint256 indexed numerator, uint256 indexed denominator, uint256 previousNumerator, uint256 previousDenominator);\\n\\n /**\\n * @dev Returns the threshold.\\n */\\n function getThreshold() external view returns (uint256 _num, uint256 _denom);\\n\\n /**\\n * @dev Checks whether the `_voteWeight` passes the threshold.\\n */\\n function checkThreshold(uint256 _voteWeight) external view returns (bool);\\n\\n /**\\n * @dev Returns the minimum vote weight to pass the threshold.\\n */\\n function minimumVoteWeight() external view returns (uint256);\\n\\n /**\\n * @dev Sets the threshold.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n *\\n * Emits the `ThresholdUpdated` event.\\n *\\n */\\n function setThreshold(uint256 numerator, uint256 denominator) external;\\n}\\n\",\"keccak256\":\"0xc924e9480f59acc9bc8c033f05d3be9451de5cee0c224d76d4542fa5b67fa10f\",\"license\":\"MIT\"},\"src/interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IWETH {\\n event Transfer(address indexed src, address indexed dst, uint wad);\\n\\n function deposit() external payable;\\n\\n function transfer(address dst, uint wad) external returns (bool);\\n\\n function approve(address guy, uint wad) external returns (bool);\\n\\n function transferFrom(address src, address dst, uint wad) external returns (bool);\\n\\n function withdraw(uint256 _wad) external;\\n\\n function balanceOf(address) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x000700e2b9c1985d53bb1cdba435f0f3d7b48e76e596e7dbbdfec1da47131415\",\"license\":\"MIT\"},\"src/interfaces/bridge/IBridgeManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IBridgeManagerEvents } from \\\"./events/IBridgeManagerEvents.sol\\\";\\n\\n/**\\n * @title IBridgeManager\\n * @dev The interface for managing bridge operators.\\n */\\ninterface IBridgeManager is IBridgeManagerEvents {\\n /// @notice Error indicating that cannot find the querying operator\\n error ErrOperatorNotFound(address operator);\\n /// @notice Error indicating that cannot find the querying governor\\n error ErrGovernorNotFound(address governor);\\n /// @notice Error indicating that the msg.sender is not match the required governor\\n error ErrGovernorNotMatch(address required, address sender);\\n /// @notice Error indicating that the governors list will go below minimum number of required governor.\\n error ErrBelowMinRequiredGovernors();\\n /// @notice Common invalid input error\\n error ErrInvalidInput();\\n\\n /**\\n * @dev The domain separator used for computing hash digests in the contract.\\n */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /**\\n * @dev Returns the total number of bridge operators.\\n * @return The total number of bridge operators.\\n */\\n function totalBridgeOperator() external view returns (uint256);\\n\\n /**\\n * @dev Checks if the given address is a bridge operator.\\n * @param addr The address to check.\\n * @return A boolean indicating whether the address is a bridge operator.\\n */\\n function isBridgeOperator(address addr) external view returns (bool);\\n\\n /**\\n * @dev Retrieves the full information of all registered bridge operators.\\n *\\n * This external function allows external callers to obtain the full information of all the registered bridge operators.\\n * The returned arrays include the addresses of governors, bridge operators, and their corresponding vote weights.\\n *\\n * @return governors An array of addresses representing the governors of each bridge operator.\\n * @return bridgeOperators An array of addresses representing the registered bridge operators.\\n * @return weights An array of uint256 values representing the vote weights of each bridge operator.\\n *\\n * Note: The length of each array will be the same, and the order of elements corresponds to the same bridge operator.\\n *\\n * Example Usage:\\n * ```\\n * (address[] memory governors, address[] memory bridgeOperators, uint256[] memory weights) = getFullBridgeOperatorInfos();\\n * for (uint256 i = 0; i < bridgeOperators.length; i++) {\\n * // Access individual information for each bridge operator.\\n * address governor = governors[i];\\n * address bridgeOperator = bridgeOperators[i];\\n * uint256 weight = weights[i];\\n * // ... (Process or use the information as required) ...\\n * }\\n * ```\\n *\\n */\\n function getFullBridgeOperatorInfos() external view returns (address[] memory governors, address[] memory bridgeOperators, uint96[] memory weights);\\n\\n /**\\n * @dev Returns total weights of the governor list.\\n */\\n function sumGovernorsWeight(address[] calldata governors) external view returns (uint256 sum);\\n\\n /**\\n * @dev Returns total weights.\\n */\\n function getTotalWeight() external view returns (uint256);\\n\\n /**\\n * @dev Returns an array of all bridge operators.\\n * @return An array containing the addresses of all bridge operators.\\n */\\n function getBridgeOperators() external view returns (address[] memory);\\n\\n /**\\n * @dev Returns the corresponding `operator` of a `governor`.\\n */\\n function getOperatorOf(address governor) external view returns (address operator);\\n\\n /**\\n * @dev Returns the corresponding `governor` of a `operator`.\\n */\\n function getGovernorOf(address operator) external view returns (address governor);\\n\\n /**\\n * @dev External function to retrieve the vote weight of a specific governor.\\n * @param governor The address of the governor to get the vote weight for.\\n * @return voteWeight The vote weight of the specified governor.\\n */\\n function getGovernorWeight(address governor) external view returns (uint96);\\n\\n /**\\n * @dev External function to retrieve the vote weight of a specific bridge operator.\\n * @param bridgeOperator The address of the bridge operator to get the vote weight for.\\n * @return weight The vote weight of the specified bridge operator.\\n */\\n function getBridgeOperatorWeight(address bridgeOperator) external view returns (uint96 weight);\\n\\n /**\\n * @dev Returns the weights of a list of governor addresses.\\n */\\n function getGovernorWeights(address[] calldata governors) external view returns (uint96[] memory weights);\\n\\n /**\\n * @dev Returns an array of all governors.\\n * @return An array containing the addresses of all governors.\\n */\\n function getGovernors() external view returns (address[] memory);\\n\\n /**\\n * @dev Adds multiple bridge operators.\\n * @param governors An array of addresses of hot/cold wallets for bridge operator to update their node address.\\n * @param bridgeOperators An array of addresses representing the bridge operators to add.\\n */\\n function addBridgeOperators(uint96[] calldata voteWeights, address[] calldata governors, address[] calldata bridgeOperators) external;\\n\\n /**\\n * @dev Removes multiple bridge operators.\\n * @param bridgeOperators An array of addresses representing the bridge operators to remove.\\n */\\n function removeBridgeOperators(address[] calldata bridgeOperators) external;\\n\\n /**\\n * @dev Self-call to update the minimum required governor.\\n * @param min The minimum number, this must not less than 3.\\n */\\n function setMinRequiredGovernor(uint min) external;\\n}\\n\",\"keccak256\":\"0xefc46318a240371031e77ef3c355e2c18432e4479145378de6782277f9b44923\",\"license\":\"MIT\"},\"src/interfaces/bridge/IBridgeManagerCallback.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IERC165 } from \\\"@openzeppelin/contracts/utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @title IBridgeManagerCallback\\n * @dev Interface for the callback functions to be implemented by the Bridge Manager contract.\\n */\\ninterface IBridgeManagerCallback is IERC165 {\\n /**\\n * @dev Handles the event when bridge operators are added.\\n * @param bridgeOperators The addresses of the bridge operators.\\n * @param addeds The corresponding boolean values indicating whether the operators were added or not.\\n * @return selector The selector of the function being called.\\n */\\n function onBridgeOperatorsAdded(address[] memory bridgeOperators, uint96[] calldata weights, bool[] memory addeds) external returns (bytes4 selector);\\n\\n /**\\n * @dev Handles the event when bridge operators are removed.\\n * @param bridgeOperators The addresses of the bridge operators.\\n * @param removeds The corresponding boolean values indicating whether the operators were removed or not.\\n * @return selector The selector of the function being called.\\n */\\n function onBridgeOperatorsRemoved(address[] memory bridgeOperators, bool[] memory removeds) external returns (bytes4 selector);\\n}\\n\",\"keccak256\":\"0x6c8ce7e2478e28c5ed5e6f5d8305a77d6d5f9125a47adfb77632940b9a0f3625\",\"license\":\"MIT\"},\"src/interfaces/bridge/events/IBridgeManagerEvents.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IBridgeManagerEvents {\\n /**\\n * @dev Emitted when new bridge operators are added.\\n */\\n event BridgeOperatorsAdded(bool[] statuses, uint96[] voteWeights, address[] governors, address[] bridgeOperators);\\n\\n /**\\n * @dev Emitted when a bridge operator is failed to add.\\n */\\n event BridgeOperatorAddingFailed(address indexed operator);\\n\\n /**\\n * @dev Emitted when bridge operators are removed.\\n */\\n event BridgeOperatorsRemoved(bool[] statuses, address[] bridgeOperators);\\n\\n /**\\n * @dev Emitted when a bridge operator is failed to remove.\\n */\\n event BridgeOperatorRemovingFailed(address indexed operator);\\n\\n /**\\n * @dev Emitted when a bridge operator is updated.\\n */\\n event BridgeOperatorUpdated(address indexed governor, address indexed fromBridgeOperator, address indexed toBridgeOperator);\\n\\n /**\\n * @dev Emitted when the minimum number of required governors is updated.\\n */\\n event MinRequiredGovernorUpdated(uint min);\\n}\\n\",\"keccak256\":\"0x38bc3709c98a7c08fb9b6fa3e07a725903dcb0bd07de8a828bac6c3bcf7d997d\",\"license\":\"MIT\"},\"src/interfaces/collections/IHasContracts.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.9;\\n\\nimport { ContractType } from \\\"../../utils/ContractType.sol\\\";\\n\\ninterface IHasContracts {\\n /// @dev Error of invalid role.\\n error ErrContractTypeNotFound(ContractType contractType);\\n\\n /// @dev Emitted when a contract is updated.\\n event ContractUpdated(ContractType indexed contractType, address indexed addr);\\n\\n /**\\n * @dev Returns the address of a contract with a specific role.\\n * Throws an error if no contract is set for the specified role.\\n *\\n * @param contractType The role of the contract to retrieve.\\n * @return contract_ The address of the contract with the specified role.\\n */\\n function getContract(ContractType contractType) external view returns (address contract_);\\n\\n /**\\n * @dev Sets the address of a contract with a specific role.\\n * Emits the event {ContractUpdated}.\\n * @param contractType The role of the contract to set.\\n * @param addr The address of the contract to set.\\n */\\n function setContract(ContractType contractType, address addr) external;\\n}\\n\",\"keccak256\":\"0x99d8213d857e30d367155abd15dc42730afdfbbac3a22dfb3b95ffea2083a92e\",\"license\":\"MIT\"},\"src/interfaces/consumers/MappedTokenConsumer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../libraries/LibTokenInfo.sol\\\";\\n\\ninterface MappedTokenConsumer {\\n struct MappedToken {\\n TokenStandard erc;\\n address tokenAddr;\\n }\\n}\\n\",\"keccak256\":\"0xc53dcba9dc7d950ab6561149f76b45617ddbce5037e4c86ea00b976018bbfde1\",\"license\":\"MIT\"},\"src/interfaces/consumers/SignatureConsumer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface SignatureConsumer {\\n struct Signature {\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n }\\n}\\n\",\"keccak256\":\"0xd370e350722067097dec1a5c31bda6e47e83417fa5c3288293bb910028cd136b\",\"license\":\"MIT\"},\"src/libraries/AddressArrayUtils.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity ^0.8.0;\\n\\nlibrary AddressArrayUtils {\\n /**\\n * @dev Error thrown when a duplicated element is detected in an array.\\n * @param msgSig The function signature that invoke the error.\\n */\\n error ErrDuplicated(bytes4 msgSig);\\n\\n /**\\n * @dev Returns whether or not there's a duplicate. Runs in O(n^2).\\n * @param A Array to search\\n * @return Returns true if duplicate, false otherwise\\n */\\n function hasDuplicate(address[] memory A) internal pure returns (bool) {\\n if (A.length == 0) {\\n return false;\\n }\\n unchecked {\\n for (uint256 i = 0; i < A.length - 1; i++) {\\n for (uint256 j = i + 1; j < A.length; j++) {\\n if (A[i] == A[j]) {\\n return true;\\n }\\n }\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * @dev Returns whether two arrays of addresses are equal or not.\\n */\\n function isEqual(address[] memory _this, address[] memory _other) internal pure returns (bool yes_) {\\n // Hashing two arrays and compare their hash\\n assembly {\\n let _thisHash := keccak256(add(_this, 32), mul(mload(_this), 32))\\n let _otherHash := keccak256(add(_other, 32), mul(mload(_other), 32))\\n yes_ := eq(_thisHash, _otherHash)\\n }\\n }\\n\\n /**\\n * @dev Return the concatenated array from a and b.\\n */\\n function extend(address[] memory a, address[] memory b) internal pure returns (address[] memory c) {\\n uint256 lengthA = a.length;\\n uint256 lengthB = b.length;\\n unchecked {\\n c = new address[](lengthA + lengthB);\\n }\\n uint256 i;\\n for (; i < lengthA;) {\\n c[i] = a[i];\\n unchecked {\\n ++i;\\n }\\n }\\n for (uint256 j; j < lengthB;) {\\n c[i] = b[j];\\n unchecked {\\n ++i;\\n ++j;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xce5d578861167da47a965c8a0e1592b808aad6eb79ccb1873bf2e2280ddb85ee\",\"license\":\"UNLICENSED\"},\"src/libraries/LibTokenInfo.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC721/IERC721.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol\\\";\\nimport \\\"../interfaces/IWETH.sol\\\";\\n\\nenum TokenStandard {\\n ERC20,\\n ERC721,\\n ERC1155\\n}\\n\\nstruct TokenInfo {\\n TokenStandard erc;\\n // For ERC20: the id must be 0 and the quantity is larger than 0.\\n // For ERC721: the quantity must be 0.\\n uint256 id;\\n uint256 quantity;\\n}\\n\\n/**\\n * @dev Error indicating that the `transfer` has failed.\\n * @param tokenInfo Info of the token including ERC standard, id or quantity.\\n * @param to Receiver of the token value.\\n * @param token Address of the token.\\n */\\nerror ErrTokenCouldNotTransfer(TokenInfo tokenInfo, address to, address token);\\n\\n/**\\n * @dev Error indicating that the `handleAssetIn` has failed.\\n * @param tokenInfo Info of the token including ERC standard, id or quantity.\\n * @param from Owner of the token value.\\n * @param to Receiver of the token value.\\n * @param token Address of the token.\\n */\\nerror ErrTokenCouldNotTransferFrom(TokenInfo tokenInfo, address from, address to, address token);\\n\\n/// @dev Error indicating that the provided information is invalid.\\nerror ErrInvalidInfo();\\n\\n/// @dev Error indicating that the minting of ERC20 tokens has failed.\\nerror ErrERC20MintingFailed();\\n\\n/// @dev Error indicating that the minting of ERC721 tokens has failed.\\nerror ErrERC721MintingFailed();\\n\\n/// @dev Error indicating that the transfer of ERC1155 tokens has failed.\\nerror ErrERC1155TransferFailed();\\n\\n/// @dev Error indicating that the mint of ERC1155 tokens has failed.\\nerror ErrERC1155MintingFailed();\\n\\n/// @dev Error indicating that an unsupported standard is encountered.\\nerror ErrUnsupportedStandard();\\n\\nlibrary LibTokenInfo {\\n /**\\n *\\n * HASH\\n *\\n */\\n\\n // keccak256(\\\"TokenInfo(uint8 erc,uint256 id,uint256 quantity)\\\");\\n bytes32 public constant INFO_TYPE_HASH_SINGLE = 0x1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d;\\n\\n /**\\n * @dev Returns token info struct hash.\\n */\\n function hash(TokenInfo memory self) internal pure returns (bytes32 digest) {\\n // keccak256(abi.encode(INFO_TYPE_HASH_SINGLE, info.erc, info.id, info.quantity))\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n mstore(ptr, INFO_TYPE_HASH_SINGLE)\\n mstore(add(ptr, 0x20), mload(self)) // info.erc\\n mstore(add(ptr, 0x40), mload(add(self, 0x20))) // info.id\\n mstore(add(ptr, 0x60), mload(add(self, 0x40))) // info.quantity\\n digest := keccak256(ptr, 0x80)\\n }\\n }\\n\\n /**\\n *\\n * VALIDATE\\n *\\n */\\n\\n /**\\n * @dev Validates the token info.\\n */\\n function validate(TokenInfo memory self) internal pure {\\n if (!(_checkERC20(self) || _checkERC721(self) || _checkERC1155(self))) {\\n revert ErrInvalidInfo();\\n }\\n }\\n\\n function _checkERC20(TokenInfo memory self) private pure returns (bool) {\\n return (self.erc == TokenStandard.ERC20 && self.quantity > 0 && self.id == 0);\\n }\\n\\n function _checkERC721(TokenInfo memory self) private pure returns (bool) {\\n return (self.erc == TokenStandard.ERC721 && self.quantity == 0);\\n }\\n\\n function _checkERC1155(TokenInfo memory self) private pure returns (bool res) {\\n // Only validate the quantity, because id of ERC-1155 can be 0.\\n return (self.erc == TokenStandard.ERC1155 && self.quantity > 0);\\n }\\n\\n /**\\n *\\n * TRANSFER IN/OUT METHOD\\n *\\n */\\n\\n /**\\n * @dev Transfer asset in.\\n *\\n * Requirements:\\n * - The `_from` address must approve for the contract using this library.\\n *\\n */\\n function handleAssetIn(TokenInfo memory self, address from, address token) internal {\\n bool success;\\n bytes memory data;\\n if (self.erc == TokenStandard.ERC20) {\\n (success, data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, address(this), self.quantity));\\n success = success && (data.length == 0 || abi.decode(data, (bool)));\\n } else if (self.erc == TokenStandard.ERC721) {\\n success = _tryTransferFromERC721(token, from, address(this), self.id);\\n } else if (self.erc == TokenStandard.ERC1155) {\\n success = _tryTransferFromERC1155(token, from, address(this), self.id, self.quantity);\\n } else {\\n revert ErrUnsupportedStandard();\\n }\\n\\n if (!success) revert ErrTokenCouldNotTransferFrom(self, from, address(this), token);\\n }\\n\\n /**\\n * @dev Tries transfer assets out, or mint the assets if cannot transfer.\\n *\\n * @notice Prioritizes transfer native token if the token is wrapped.\\n *\\n */\\n function handleAssetOut(TokenInfo memory self, address payable to, address token, IWETH wrappedNativeToken) internal {\\n if (token == address(wrappedNativeToken)) {\\n // Try sending the native token before transferring the wrapped token\\n if (!to.send(self.quantity)) {\\n wrappedNativeToken.deposit{ value: self.quantity }();\\n _transferTokenOut(self, to, token);\\n }\\n\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC20) {\\n uint256 balance = IERC20(token).balanceOf(address(this));\\n if (balance < self.quantity) {\\n if (!_tryMintERC20(token, address(this), self.quantity - balance)) revert ErrERC20MintingFailed();\\n }\\n\\n _transferTokenOut(self, to, token);\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC721) {\\n if (!_tryTransferOutOrMintERC721(token, to, self.id)) {\\n revert ErrERC721MintingFailed();\\n }\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC1155) {\\n if (!_tryTransferOutOrMintERC1155(token, to, self.id, self.quantity)) {\\n revert ErrERC1155MintingFailed();\\n }\\n return;\\n }\\n\\n revert ErrUnsupportedStandard();\\n }\\n\\n /**\\n *\\n * TRANSFER HELPERS\\n *\\n */\\n\\n /**\\n * @dev Transfer assets from current address to `_to` address.\\n */\\n function _transferTokenOut(TokenInfo memory self, address to, address token) private {\\n bool success;\\n if (self.erc == TokenStandard.ERC20) {\\n success = _tryTransferERC20(token, to, self.quantity);\\n } else if (self.erc == TokenStandard.ERC721) {\\n success = _tryTransferFromERC721(token, address(this), to, self.id);\\n } else {\\n revert ErrUnsupportedStandard();\\n }\\n\\n if (!success) revert ErrTokenCouldNotTransfer(self, to, token);\\n }\\n\\n /**\\n * TRANSFER ERC-20\\n */\\n\\n /**\\n * @dev Transfers ERC20 token and returns the result.\\n */\\n function _tryTransferERC20(address token, address to, uint256 quantity) private returns (bool success) {\\n bytes memory data;\\n (success, data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, quantity));\\n success = success && (data.length == 0 || abi.decode(data, (bool)));\\n }\\n\\n /**\\n * @dev Mints ERC20 token and returns the result.\\n */\\n function _tryMintERC20(address token, address to, uint256 quantity) private returns (bool success) {\\n // bytes4(keccak256(\\\"mint(address,uint256)\\\"))\\n (success,) = token.call(abi.encodeWithSelector(0x40c10f19, to, quantity));\\n }\\n\\n /**\\n * TRANSFER ERC-721\\n */\\n\\n /**\\n * @dev Transfers the ERC721 token out. If the transfer failed, mints the ERC721.\\n * @return success Returns `false` if both transfer and mint are failed.\\n */\\n function _tryTransferOutOrMintERC721(address token, address to, uint256 id) private returns (bool success) {\\n success = _tryTransferFromERC721(token, address(this), to, id);\\n if (!success) {\\n return _tryMintERC721(token, to, id);\\n }\\n }\\n\\n /**\\n * @dev Transfers ERC721 token and returns the result.\\n */\\n function _tryTransferFromERC721(address token, address from, address to, uint256 id) private returns (bool success) {\\n (success,) = token.call(abi.encodeWithSelector(IERC721.transferFrom.selector, from, to, id));\\n }\\n\\n /**\\n * @dev Mints ERC721 token and returns the result.\\n */\\n function _tryMintERC721(address token, address to, uint256 id) private returns (bool success) {\\n // bytes4(keccak256(\\\"mint(address,uint256)\\\"))\\n (success,) = token.call(abi.encodeWithSelector(0x40c10f19, to, id));\\n }\\n\\n /**\\n * TRANSFER ERC-1155\\n */\\n\\n /**\\n * @dev Transfers the ERC1155 token out. If the transfer failed, mints the ERC11555.\\n * @return success Returns `false` if both transfer and mint are failed.\\n */\\n function _tryTransferOutOrMintERC1155(address token, address to, uint256 id, uint256 amount) private returns (bool success) {\\n success = _tryTransferFromERC1155(token, address(this), to, id, amount);\\n if (!success) {\\n return _tryMintERC1155(token, to, id, amount);\\n }\\n }\\n\\n /**\\n * @dev Transfers ERC1155 token and returns the result.\\n */\\n function _tryTransferFromERC1155(address token, address from, address to, uint256 id, uint256 amount) private returns (bool success) {\\n (success,) = token.call(abi.encodeCall(IERC1155.safeTransferFrom, (from, to, id, amount, new bytes(0))));\\n }\\n\\n /**\\n * @dev Mints ERC1155 token and returns the result.\\n */\\n function _tryMintERC1155(address token, address to, uint256 id, uint256 amount) private returns (bool success) {\\n (success,) = token.call(abi.encodeCall(ERC1155PresetMinterPauser.mint, (to, id, amount, new bytes(0))));\\n }\\n}\\n\",\"keccak256\":\"0x56b413a42c6c39a51dc1737e735d1623b89ecdf00bacd960f70b3f18ccaa6de2\",\"license\":\"MIT\"},\"src/libraries/LibTokenOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nstruct TokenOwner {\\n address addr;\\n address tokenAddr;\\n uint256 chainId;\\n}\\n\\nlibrary LibTokenOwner {\\n // keccak256(\\\"TokenOwner(address addr,address tokenAddr,uint256 chainId)\\\");\\n bytes32 public constant OWNER_TYPE_HASH = 0x353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764;\\n\\n /**\\n * @dev Returns ownership struct hash.\\n */\\n function hash(TokenOwner memory owner) internal pure returns (bytes32 digest) {\\n // keccak256(abi.encode(OWNER_TYPE_HASH, owner.addr, owner.tokenAddr, owner.chainId))\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n mstore(ptr, OWNER_TYPE_HASH)\\n mstore(add(ptr, 0x20), mload(owner)) // owner.addr\\n mstore(add(ptr, 0x40), mload(add(owner, 0x20))) // owner.tokenAddr\\n mstore(add(ptr, 0x60), mload(add(owner, 0x40))) // owner.chainId\\n digest := keccak256(ptr, 0x80)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb104fd02056a3ed52bf06c202e87b748200320682871b1801985050587ec2d51\",\"license\":\"MIT\"},\"src/libraries/Transfer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"./LibTokenInfo.sol\\\";\\nimport \\\"./LibTokenOwner.sol\\\";\\n\\nlibrary Transfer {\\n using ECDSA for bytes32;\\n using LibTokenOwner for TokenOwner;\\n using LibTokenInfo for TokenInfo;\\n\\n enum Kind {\\n Deposit,\\n Withdrawal\\n }\\n\\n struct Request {\\n // For deposit request: Recipient address on Ronin network\\n // For withdrawal request: Recipient address on mainchain network\\n address recipientAddr;\\n // Token address to deposit/withdraw\\n // Value 0: native token\\n address tokenAddr;\\n TokenInfo info;\\n }\\n\\n /**\\n * @dev Converts the transfer request into the deposit receipt.\\n */\\n function into_deposit_receipt(\\n Request memory _request,\\n address _requester,\\n uint256 _id,\\n address _roninTokenAddr,\\n uint256 _roninChainId\\n ) internal view returns (Receipt memory _receipt) {\\n _receipt.id = _id;\\n _receipt.kind = Kind.Deposit;\\n _receipt.mainchain.addr = _requester;\\n _receipt.mainchain.tokenAddr = _request.tokenAddr;\\n _receipt.mainchain.chainId = block.chainid;\\n _receipt.ronin.addr = _request.recipientAddr;\\n _receipt.ronin.tokenAddr = _roninTokenAddr;\\n _receipt.ronin.chainId = _roninChainId;\\n _receipt.info = _request.info;\\n }\\n\\n /**\\n * @dev Converts the transfer request into the withdrawal receipt.\\n */\\n function into_withdrawal_receipt(\\n Request memory _request,\\n address _requester,\\n uint256 _id,\\n address _mainchainTokenAddr,\\n uint256 _mainchainId\\n ) internal view returns (Receipt memory _receipt) {\\n _receipt.id = _id;\\n _receipt.kind = Kind.Withdrawal;\\n _receipt.ronin.addr = _requester;\\n _receipt.ronin.tokenAddr = _request.tokenAddr;\\n _receipt.ronin.chainId = block.chainid;\\n _receipt.mainchain.addr = _request.recipientAddr;\\n _receipt.mainchain.tokenAddr = _mainchainTokenAddr;\\n _receipt.mainchain.chainId = _mainchainId;\\n _receipt.info = _request.info;\\n }\\n\\n struct Receipt {\\n uint256 id;\\n Kind kind;\\n TokenOwner mainchain;\\n TokenOwner ronin;\\n TokenInfo info;\\n }\\n\\n // keccak256(\\\"Receipt(uint256 id,uint8 kind,TokenOwner mainchain,TokenOwner ronin,TokenInfo info)TokenInfo(uint8 erc,uint256 id,uint256 quantity)TokenOwner(address addr,address tokenAddr,uint256 chainId)\\\");\\n bytes32 public constant TYPE_HASH = 0xb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea;\\n\\n /**\\n * @dev Returns token info struct hash.\\n */\\n function hash(Receipt memory _receipt) internal pure returns (bytes32 digest) {\\n bytes32 hashedReceiptMainchain = _receipt.mainchain.hash();\\n bytes32 hashedReceiptRonin = _receipt.ronin.hash();\\n bytes32 hashedReceiptInfo = _receipt.info.hash();\\n\\n /*\\n * return\\n * keccak256(\\n * abi.encode(\\n * TYPE_HASH,\\n * _receipt.id,\\n * _receipt.kind,\\n * Token.hash(_receipt.mainchain),\\n * Token.hash(_receipt.ronin),\\n * Token.hash(_receipt.info)\\n * )\\n * );\\n */\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, TYPE_HASH)\\n mstore(add(ptr, 0x20), mload(_receipt)) // _receipt.id\\n mstore(add(ptr, 0x40), mload(add(_receipt, 0x20))) // _receipt.kind\\n mstore(add(ptr, 0x60), hashedReceiptMainchain)\\n mstore(add(ptr, 0x80), hashedReceiptRonin)\\n mstore(add(ptr, 0xa0), hashedReceiptInfo)\\n digest := keccak256(ptr, 0xc0)\\n }\\n }\\n\\n /**\\n * @dev Returns the receipt digest.\\n */\\n function receiptDigest(bytes32 _domainSeparator, bytes32 _receiptHash) internal pure returns (bytes32) {\\n return _domainSeparator.toTypedDataHash(_receiptHash);\\n }\\n}\\n\",\"keccak256\":\"0x652c72f4e9aeffed1be05759c84c538a416d2c264deef9af4c53de0a1ad04ee4\",\"license\":\"MIT\"},\"src/mainchain/MainchainGatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.23;\\n\\nimport \\\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\\\";\\nimport \\\"@openzeppelin/contracts/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol\\\";\\nimport { IBridgeManager } from \\\"../interfaces/bridge/IBridgeManager.sol\\\";\\nimport { IBridgeManagerCallback } from \\\"../interfaces/bridge/IBridgeManagerCallback.sol\\\";\\nimport { HasContracts, ContractType } from \\\"../extensions/collections/HasContracts.sol\\\";\\nimport \\\"../extensions/WethUnwrapper.sol\\\";\\nimport \\\"../extensions/WithdrawalLimitation.sol\\\";\\nimport \\\"../libraries/Transfer.sol\\\";\\nimport \\\"../interfaces/IMainchainGatewayV3.sol\\\";\\n\\ncontract MainchainGatewayV3 is\\n WithdrawalLimitation,\\n Initializable,\\n AccessControlEnumerable,\\n ERC1155Holder,\\n IMainchainGatewayV3,\\n HasContracts,\\n IBridgeManagerCallback\\n{\\n using LibTokenInfo for TokenInfo;\\n using Transfer for Transfer.Request;\\n using Transfer for Transfer.Receipt;\\n\\n /// @dev Withdrawal unlocker role hash\\n bytes32 public constant WITHDRAWAL_UNLOCKER_ROLE = keccak256(\\\"WITHDRAWAL_UNLOCKER_ROLE\\\");\\n\\n /// @dev Wrapped native token address\\n IWETH public wrappedNativeToken;\\n /// @dev Ronin network id\\n uint256 public roninChainId;\\n /// @dev Total deposit\\n uint256 public depositCount;\\n /// @dev Domain separator\\n bytes32 internal _domainSeparator;\\n /// @dev Mapping from mainchain token => token address on Ronin network\\n mapping(address => MappedToken) internal _roninToken;\\n /// @dev Mapping from withdrawal id => withdrawal hash\\n mapping(uint256 => bytes32) public withdrawalHash;\\n /// @dev Mapping from withdrawal id => locked\\n mapping(uint256 => bool) public withdrawalLocked;\\n\\n /// @custom:deprecated Previously `_bridgeOperatorAddedBlock` (mapping(address => uint256))\\n uint256 private ______deprecatedBridgeOperatorAddedBlock;\\n /// @custom:deprecated Previously `_bridgeOperators` (uint256[])\\n uint256 private ______deprecatedBridgeOperators;\\n\\n uint96 private _totalOperatorWeight;\\n mapping(address operator => uint96 weight) private _operatorWeight;\\n WethUnwrapper public wethUnwrapper;\\n\\n constructor() {\\n _disableInitializers();\\n }\\n\\n fallback() external payable {\\n _fallback();\\n }\\n\\n receive() external payable {\\n _fallback();\\n }\\n\\n /**\\n * @dev Initializes contract storage.\\n */\\n function initialize(\\n address _roleSetter,\\n IWETH _wrappedToken,\\n uint256 _roninChainId,\\n uint256 _numerator,\\n uint256 _highTierVWNumerator,\\n uint256 _denominator,\\n // _addresses[0]: mainchainTokens\\n // _addresses[1]: roninTokens\\n // _addresses[2]: withdrawalUnlockers\\n address[][3] calldata _addresses,\\n // _thresholds[0]: highTierThreshold\\n // _thresholds[1]: lockedThreshold\\n // _thresholds[2]: unlockFeePercentages\\n // _thresholds[3]: dailyWithdrawalLimit\\n uint256[][4] calldata _thresholds,\\n TokenStandard[] calldata _standards\\n ) external payable virtual initializer {\\n _setupRole(DEFAULT_ADMIN_ROLE, _roleSetter);\\n roninChainId = _roninChainId;\\n\\n _setWrappedNativeTokenContract(_wrappedToken);\\n _updateDomainSeparator();\\n _setThreshold(_numerator, _denominator);\\n _setHighTierVoteWeightThreshold(_highTierVWNumerator, _denominator);\\n _verifyThresholds();\\n\\n if (_addresses[0].length > 0) {\\n // Map mainchain tokens to ronin tokens\\n _mapTokens(_addresses[0], _addresses[1], _standards);\\n // Sets thresholds based on the mainchain tokens\\n _setHighTierThresholds(_addresses[0], _thresholds[0]);\\n _setLockedThresholds(_addresses[0], _thresholds[1]);\\n _setUnlockFeePercentages(_addresses[0], _thresholds[2]);\\n _setDailyWithdrawalLimits(_addresses[0], _thresholds[3]);\\n }\\n\\n // Grant role for withdrawal unlocker\\n for (uint256 i; i < _addresses[2].length; i++) {\\n _grantRole(WITHDRAWAL_UNLOCKER_ROLE, _addresses[2][i]);\\n }\\n }\\n\\n function initializeV2(address bridgeManagerContract) external reinitializer(2) {\\n _setContract(ContractType.BRIDGE_MANAGER, bridgeManagerContract);\\n }\\n\\n function initializeV3() external reinitializer(3) {\\n IBridgeManager mainchainBridgeManager = IBridgeManager(getContract(ContractType.BRIDGE_MANAGER));\\n (, address[] memory operators, uint96[] memory weights) = mainchainBridgeManager.getFullBridgeOperatorInfos();\\n\\n uint96 totalWeight;\\n for (uint i; i < operators.length; i++) {\\n _operatorWeight[operators[i]] = weights[i];\\n totalWeight += weights[i];\\n }\\n _totalOperatorWeight = totalWeight;\\n }\\n\\n function initializeV4(address payable wethUnwrapper_) external reinitializer(4) {\\n wethUnwrapper = WethUnwrapper(wethUnwrapper_);\\n }\\n\\n /**\\n * @dev Receives ether without doing anything. Use this function to topup native token.\\n */\\n function receiveEther() external payable { }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {\\n return _domainSeparator;\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function setWrappedNativeTokenContract(IWETH _wrappedToken) external virtual onlyProxyAdmin {\\n _setWrappedNativeTokenContract(_wrappedToken);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function requestDepositFor(Transfer.Request calldata _request) external payable virtual whenNotPaused {\\n _requestDepositFor(_request, msg.sender);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function submitWithdrawal(Transfer.Receipt calldata _receipt, Signature[] calldata _signatures) external virtual whenNotPaused returns (bool _locked) {\\n return _submitWithdrawal(_receipt, _signatures);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function unlockWithdrawal(Transfer.Receipt calldata receipt) external onlyRole(WITHDRAWAL_UNLOCKER_ROLE) {\\n bytes32 _receiptHash = receipt.hash();\\n if (withdrawalHash[receipt.id] != receipt.hash()) {\\n revert ErrInvalidReceipt();\\n }\\n if (!withdrawalLocked[receipt.id]) {\\n revert ErrQueryForApprovedWithdrawal();\\n }\\n delete withdrawalLocked[receipt.id];\\n emit WithdrawalUnlocked(_receiptHash, receipt);\\n\\n address token = receipt.mainchain.tokenAddr;\\n if (receipt.info.erc == TokenStandard.ERC20) {\\n TokenInfo memory feeInfo = receipt.info;\\n feeInfo.quantity = _computeFeePercentage(receipt.info.quantity, unlockFeePercentages[token]);\\n TokenInfo memory withdrawInfo = receipt.info;\\n withdrawInfo.quantity = receipt.info.quantity - feeInfo.quantity;\\n\\n feeInfo.handleAssetOut(payable(msg.sender), token, wrappedNativeToken);\\n withdrawInfo.handleAssetOut(payable(receipt.mainchain.addr), token, wrappedNativeToken);\\n } else {\\n receipt.info.handleAssetOut(payable(receipt.mainchain.addr), token, wrappedNativeToken);\\n }\\n\\n emit Withdrew(_receiptHash, receipt);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function mapTokens(address[] calldata _mainchainTokens, address[] calldata _roninTokens, TokenStandard[] calldata _standards) external virtual onlyProxyAdmin {\\n if (_mainchainTokens.length == 0) revert ErrEmptyArray();\\n _mapTokens(_mainchainTokens, _roninTokens, _standards);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function mapTokensAndThresholds(\\n address[] calldata _mainchainTokens,\\n address[] calldata _roninTokens,\\n TokenStandard[] calldata _standards,\\n // _thresholds[0]: highTierThreshold\\n // _thresholds[1]: lockedThreshold\\n // _thresholds[2]: unlockFeePercentages\\n // _thresholds[3]: dailyWithdrawalLimit\\n uint256[][4] calldata _thresholds\\n ) external virtual onlyProxyAdmin {\\n if (_mainchainTokens.length == 0) revert ErrEmptyArray();\\n _mapTokens(_mainchainTokens, _roninTokens, _standards);\\n _setHighTierThresholds(_mainchainTokens, _thresholds[0]);\\n _setLockedThresholds(_mainchainTokens, _thresholds[1]);\\n _setUnlockFeePercentages(_mainchainTokens, _thresholds[2]);\\n _setDailyWithdrawalLimits(_mainchainTokens, _thresholds[3]);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function getRoninToken(address mainchainToken) public view returns (MappedToken memory token) {\\n token = _roninToken[mainchainToken];\\n if (token.tokenAddr == address(0)) revert ErrUnsupportedToken();\\n }\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network.\\n *\\n * Requirement:\\n * - The arrays have the same length.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function _mapTokens(address[] calldata mainchainTokens, address[] calldata roninTokens, TokenStandard[] calldata standards) internal virtual {\\n if (!(mainchainTokens.length == roninTokens.length && mainchainTokens.length == standards.length)) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 i; i < mainchainTokens.length; ++i) {\\n _roninToken[mainchainTokens[i]].tokenAddr = roninTokens[i];\\n _roninToken[mainchainTokens[i]].erc = standards[i];\\n }\\n\\n emit TokenMapped(mainchainTokens, roninTokens, standards);\\n }\\n\\n /**\\n * @dev Submits withdrawal receipt.\\n *\\n * Requirements:\\n * - The receipt kind is withdrawal.\\n * - The receipt is to withdraw on this chain.\\n * - The receipt is not used to withdraw before.\\n * - The withdrawal is not reached the limit threshold.\\n * - The signer weight total is larger than or equal to the minimum threshold.\\n * - The signature signers are in order.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function _submitWithdrawal(Transfer.Receipt calldata receipt, Signature[] memory signatures) internal virtual returns (bool locked) {\\n uint256 id = receipt.id;\\n uint256 quantity = receipt.info.quantity;\\n address tokenAddr = receipt.mainchain.tokenAddr;\\n\\n receipt.info.validate();\\n if (receipt.kind != Transfer.Kind.Withdrawal) revert ErrInvalidReceiptKind();\\n\\n if (receipt.mainchain.chainId != block.chainid) {\\n revert ErrInvalidChainId(msg.sig, receipt.mainchain.chainId, block.chainid);\\n }\\n\\n MappedToken memory token = getRoninToken(receipt.mainchain.tokenAddr);\\n\\n if (!(token.erc == receipt.info.erc && token.tokenAddr == receipt.ronin.tokenAddr && receipt.ronin.chainId == roninChainId)) {\\n revert ErrInvalidReceipt();\\n }\\n\\n if (withdrawalHash[id] != 0) revert ErrQueryForProcessedWithdrawal();\\n\\n if (!(receipt.info.erc == TokenStandard.ERC721 || !_reachedWithdrawalLimit(tokenAddr, quantity))) {\\n revert ErrReachedDailyWithdrawalLimit();\\n }\\n\\n bytes32 receiptHash = receipt.hash();\\n bytes32 receiptDigest = Transfer.receiptDigest(_domainSeparator, receiptHash);\\n\\n uint256 minimumWeight;\\n (minimumWeight, locked) = _computeMinVoteWeight(receipt.info.erc, tokenAddr, quantity);\\n\\n {\\n bool passed;\\n address signer;\\n address lastSigner;\\n Signature memory sig;\\n uint256 weight;\\n for (uint256 i; i < signatures.length; i++) {\\n sig = signatures[i];\\n signer = ecrecover(receiptDigest, sig.v, sig.r, sig.s);\\n if (lastSigner >= signer) revert ErrInvalidOrder(msg.sig);\\n\\n lastSigner = signer;\\n\\n weight += _getWeight(signer);\\n if (weight >= minimumWeight) {\\n passed = true;\\n break;\\n }\\n }\\n\\n if (!passed) revert ErrQueryForInsufficientVoteWeight();\\n withdrawalHash[id] = receiptHash;\\n }\\n\\n if (locked) {\\n withdrawalLocked[id] = true;\\n emit WithdrawalLocked(receiptHash, receipt);\\n return locked;\\n }\\n\\n _recordWithdrawal(tokenAddr, quantity);\\n receipt.info.handleAssetOut(payable(receipt.mainchain.addr), tokenAddr, wrappedNativeToken);\\n emit Withdrew(receiptHash, receipt);\\n }\\n\\n /**\\n * @dev Requests deposit made by `_requester` address.\\n *\\n * Requirements:\\n * - The token info is valid.\\n * - The `msg.value` is 0 while depositing ERC20 token.\\n * - The `msg.value` is equal to deposit quantity while depositing native token.\\n *\\n * Emits the `DepositRequested` event.\\n *\\n */\\n function _requestDepositFor(Transfer.Request memory _request, address _requester) internal virtual {\\n MappedToken memory _token;\\n address _roninWeth = address(wrappedNativeToken);\\n\\n _request.info.validate();\\n if (_request.tokenAddr == address(0)) {\\n if (_request.info.quantity != msg.value) revert ErrInvalidRequest();\\n\\n _token = getRoninToken(_roninWeth);\\n if (_token.erc != _request.info.erc) revert ErrInvalidTokenStandard();\\n\\n _request.tokenAddr = _roninWeth;\\n } else {\\n if (msg.value != 0) revert ErrInvalidRequest();\\n\\n _token = getRoninToken(_request.tokenAddr);\\n if (_token.erc != _request.info.erc) revert ErrInvalidTokenStandard();\\n\\n _request.info.handleAssetIn(_requester, _request.tokenAddr);\\n // Withdraw if token is WETH\\n // The withdraw of WETH must go via `WethUnwrapper`, because `WETH.withdraw` only sends 2300 gas, which is insufficient when recipient is a proxy.\\n if (_roninWeth == _request.tokenAddr) {\\n wrappedNativeToken.approve(address(wethUnwrapper), _request.info.quantity);\\n wethUnwrapper.unwrap(_request.info.quantity);\\n }\\n }\\n\\n uint256 _depositId = depositCount++;\\n Transfer.Receipt memory _receipt = _request.into_deposit_receipt(_requester, _depositId, _token.tokenAddr, roninChainId);\\n\\n emit DepositRequested(_receipt.hash(), _receipt);\\n }\\n\\n /**\\n * @dev Returns the minimum vote weight for the token.\\n */\\n function _computeMinVoteWeight(TokenStandard _erc, address _token, uint256 _quantity) internal virtual returns (uint256 _weight, bool _locked) {\\n uint256 _totalWeight = _getTotalWeight();\\n _weight = _minimumVoteWeight(_totalWeight);\\n if (_erc == TokenStandard.ERC20) {\\n if (highTierThreshold[_token] <= _quantity) {\\n _weight = _highTierVoteWeight(_totalWeight);\\n }\\n _locked = _lockedWithdrawalRequest(_token, _quantity);\\n }\\n }\\n\\n /**\\n * @dev Update domain seperator.\\n */\\n function _updateDomainSeparator() internal {\\n /*\\n * _domainSeparator = keccak256(\\n * abi.encode(\\n * keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\"),\\n * keccak256(\\\"MainchainGatewayV2\\\"),\\n * keccak256(\\\"2\\\"),\\n * block.chainid,\\n * address(this)\\n * )\\n * );\\n */\\n assembly {\\n let ptr := mload(0x40)\\n // keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\")\\n mstore(ptr, 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f)\\n // keccak256(\\\"MainchainGatewayV2\\\")\\n mstore(add(ptr, 0x20), 0x159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b)\\n // keccak256(\\\"2\\\")\\n mstore(add(ptr, 0x40), 0xad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5)\\n mstore(add(ptr, 0x60), chainid())\\n mstore(add(ptr, 0x80), address())\\n sstore(_domainSeparator.slot, keccak256(ptr, 0xa0))\\n }\\n }\\n\\n /**\\n * @dev Sets the WETH contract.\\n *\\n * Emits the `WrappedNativeTokenContractUpdated` event.\\n *\\n */\\n function _setWrappedNativeTokenContract(IWETH _wrapedToken) internal {\\n wrappedNativeToken = _wrapedToken;\\n emit WrappedNativeTokenContractUpdated(_wrapedToken);\\n }\\n\\n /**\\n * @dev Receives ETH from WETH or creates deposit request if sender is not WETH or WETHUnwrapper.\\n */\\n function _fallback() internal virtual {\\n if (msg.sender == address(wrappedNativeToken) || msg.sender == address(wethUnwrapper)) {\\n return;\\n }\\n\\n _createDepositOnFallback();\\n }\\n\\n /**\\n * @dev Creates deposit request.\\n */\\n function _createDepositOnFallback() internal virtual whenNotPaused {\\n Transfer.Request memory _request;\\n _request.recipientAddr = msg.sender;\\n _request.info.quantity = msg.value;\\n _requestDepositFor(_request, _request.recipientAddr);\\n }\\n\\n /**\\n * @inheritdoc GatewayV3\\n */\\n function _getTotalWeight() internal view override returns (uint256) {\\n return _totalOperatorWeight;\\n }\\n\\n /**\\n * @dev Returns the weight of an address.\\n */\\n function _getWeight(address addr) internal view returns (uint256) {\\n return _operatorWeight[addr];\\n }\\n\\n ///////////////////////////////////////////////\\n // CALLBACKS\\n ///////////////////////////////////////////////\\n\\n /**\\n * @inheritdoc IBridgeManagerCallback\\n */\\n function onBridgeOperatorsAdded(\\n address[] calldata operators,\\n uint96[] calldata weights,\\n bool[] memory addeds\\n ) external onlyContract(ContractType.BRIDGE_MANAGER) returns (bytes4) {\\n uint256 length = operators.length;\\n if (length != addeds.length || length != weights.length) revert ErrLengthMismatch(msg.sig);\\n if (length == 0) {\\n return IBridgeManagerCallback.onBridgeOperatorsAdded.selector;\\n }\\n\\n for (uint256 i; i < length; ++i) {\\n unchecked {\\n if (addeds[i]) {\\n _totalOperatorWeight += weights[i];\\n _operatorWeight[operators[i]] = weights[i];\\n }\\n }\\n }\\n\\n return IBridgeManagerCallback.onBridgeOperatorsAdded.selector;\\n }\\n\\n /**\\n * @inheritdoc IBridgeManagerCallback\\n */\\n function onBridgeOperatorsRemoved(address[] calldata operators, bool[] calldata removeds) external onlyContract(ContractType.BRIDGE_MANAGER) returns (bytes4) {\\n uint length = operators.length;\\n if (length != removeds.length) revert ErrLengthMismatch(msg.sig);\\n if (length == 0) {\\n return IBridgeManagerCallback.onBridgeOperatorsRemoved.selector;\\n }\\n\\n uint96 totalRemovingWeight;\\n for (uint i; i < length; ++i) {\\n unchecked {\\n if (removeds[i]) {\\n totalRemovingWeight += _operatorWeight[operators[i]];\\n delete _operatorWeight[operators[i]];\\n }\\n }\\n }\\n\\n _totalOperatorWeight -= totalRemovingWeight;\\n\\n return IBridgeManagerCallback.onBridgeOperatorsRemoved.selector;\\n }\\n\\n function supportsInterface(bytes4 interfaceId) public view override(AccessControlEnumerable, IERC165, ERC1155Receiver) returns (bool) {\\n return\\n interfaceId == type(IMainchainGatewayV3).interfaceId || interfaceId == type(IBridgeManagerCallback).interfaceId || super.supportsInterface(interfaceId);\\n }\\n}\\n\",\"keccak256\":\"0x6fc5c51508dd63916c19d07f93fa37e265fd7c347b9e5e0ad50a14f9ff85ab14\",\"license\":\"MIT\"},\"src/utils/CommonErrors.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { ContractType } from \\\"./ContractType.sol\\\";\\nimport { RoleAccess } from \\\"./RoleAccess.sol\\\";\\n\\nerror ErrSyncTooFarPeriod(uint256 period, uint256 latestRewardedPeriod);\\n/**\\n * @dev Error thrown when an address is expected to be an already created externally owned account (EOA).\\n * This error indicates that the provided address is invalid for certain contract operations that require already created EOA.\\n */\\nerror ErrAddressIsNotCreatedEOA(address addr, bytes32 codehash);\\n/**\\n * @dev Error raised when a bridge operator update operation fails.\\n * @param bridgeOperator The address of the bridge operator that failed to update.\\n */\\nerror ErrBridgeOperatorUpdateFailed(address bridgeOperator);\\n/**\\n * @dev Error thrown when attempting to add a bridge operator that already exists in the contract.\\n * This error indicates that the provided bridge operator address is already registered as a bridge operator in the contract.\\n */\\nerror ErrBridgeOperatorAlreadyExisted(address bridgeOperator);\\n/**\\n * @dev The error indicating an unsupported interface.\\n * @param interfaceId The bytes4 interface identifier that is not supported.\\n * @param addr The address where the unsupported interface was encountered.\\n */\\nerror ErrUnsupportedInterface(bytes4 interfaceId, address addr);\\n/**\\n * @dev Error thrown when the return data from a callback function is invalid.\\n * @param callbackFnSig The signature of the callback function that returned invalid data.\\n * @param register The address of the register where the callback function was invoked.\\n * @param returnData The invalid return data received from the callback function.\\n */\\nerror ErrInvalidReturnData(bytes4 callbackFnSig, address register, bytes returnData);\\n/**\\n * @dev Error of set to non-contract.\\n */\\nerror ErrZeroCodeContract(address addr);\\n/**\\n * @dev Error indicating that arguments are invalid.\\n */\\nerror ErrInvalidArguments(bytes4 msgSig);\\n/**\\n * @dev Error indicating that given address is null when it should not.\\n */\\nerror ErrZeroAddress(bytes4 msgSig);\\n/**\\n * @dev Error indicating that the provided threshold is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that the invalid threshold applies to.\\n */\\nerror ErrInvalidThreshold(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a function can only be called by the contract itself.\\n * @param msgSig The function signature (bytes4) that can only be called by the contract itself.\\n */\\nerror ErrOnlySelfCall(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4) that the caller is unauthorized to perform.\\n * @param expectedRole The role required to perform the function.\\n */\\nerror ErrUnauthorized(bytes4 msgSig, RoleAccess expectedRole);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4) that the caller is unauthorized to perform.\\n */\\nerror ErrUnauthorizedCall(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4).\\n * @param expectedContractType The contract type required to perform the function.\\n * @param actual The actual address that called to the function.\\n */\\nerror ErrUnexpectedInternalCall(bytes4 msgSig, ContractType expectedContractType, address actual);\\n\\n/**\\n * @dev Error indicating that an array is empty when it should contain elements.\\n */\\nerror ErrEmptyArray();\\n\\n/**\\n * @dev Error indicating a mismatch in the length of input parameters or arrays for a specific function.\\n * @param msgSig The function signature (bytes4) that has a length mismatch.\\n */\\nerror ErrLengthMismatch(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a proxy call to an external contract has failed.\\n * @param msgSig The function signature (bytes4) of the proxy call that failed.\\n * @param extCallSig The function signature (bytes4) of the external contract call that failed.\\n */\\nerror ErrProxyCallFailed(bytes4 msgSig, bytes4 extCallSig);\\n\\n/**\\n * @dev Error indicating that a function tried to call a precompiled contract that is not allowed.\\n * @param msgSig The function signature (bytes4) that attempted to call a precompiled contract.\\n */\\nerror ErrCallPrecompiled(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a native token transfer has failed.\\n * @param msgSig The function signature (bytes4) of the token transfer that failed.\\n */\\nerror ErrNativeTransferFailed(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that an order is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid order.\\n */\\nerror ErrInvalidOrder(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the chain ID is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid chain ID.\\n * @param actual Current chain ID that executing function.\\n * @param expected Expected chain ID required for the tx to success.\\n */\\nerror ErrInvalidChainId(bytes4 msgSig, uint256 actual, uint256 expected);\\n\\n/**\\n * @dev Error indicating that a vote type is not supported.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an unsupported vote type.\\n */\\nerror ErrUnsupportedVoteType(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the proposal nonce is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid proposal nonce.\\n */\\nerror ErrInvalidProposalNonce(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a voter has already voted.\\n * @param voter The address of the voter who has already voted.\\n */\\nerror ErrAlreadyVoted(address voter);\\n\\n/**\\n * @dev Error indicating that a signature is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that encountered an invalid signature.\\n */\\nerror ErrInvalidSignatures(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a relay call has failed.\\n * @param msgSig The function signature (bytes4) of the relay call that failed.\\n */\\nerror ErrRelayFailed(bytes4 msgSig);\\n/**\\n * @dev Error indicating that a vote weight is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that encountered an invalid vote weight.\\n */\\nerror ErrInvalidVoteWeight(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a query was made for an outdated bridge operator set.\\n */\\nerror ErrQueryForOutdatedBridgeOperatorSet();\\n\\n/**\\n * @dev Error indicating that a request is invalid.\\n */\\nerror ErrInvalidRequest();\\n\\n/**\\n * @dev Error indicating that a token standard is invalid.\\n */\\nerror ErrInvalidTokenStandard();\\n\\n/**\\n * @dev Error indicating that a token is not supported.\\n */\\nerror ErrUnsupportedToken();\\n\\n/**\\n * @dev Error indicating that a receipt kind is invalid.\\n */\\nerror ErrInvalidReceiptKind();\\n\\n/**\\n * @dev Error indicating that a receipt is invalid.\\n */\\nerror ErrInvalidReceipt();\\n\\n/**\\n * @dev Error indicating that an address is not payable.\\n */\\nerror ErrNonpayableAddress(address);\\n\\n/**\\n * @dev Error indicating that the period is already processed, i.e. scattered reward.\\n */\\nerror ErrPeriodAlreadyProcessed(uint256 requestingPeriod, uint256 latestPeriod);\\n\\n/**\\n * @dev Error thrown when an invalid vote hash is provided.\\n */\\nerror ErrInvalidVoteHash();\\n\\n/**\\n * @dev Error thrown when querying for an empty vote.\\n */\\nerror ErrQueryForEmptyVote();\\n\\n/**\\n * @dev Error thrown when querying for an expired vote.\\n */\\nerror ErrQueryForExpiredVote();\\n\\n/**\\n * @dev Error thrown when querying for a non-existent vote.\\n */\\nerror ErrQueryForNonExistentVote();\\n\\n/**\\n * @dev Error indicating that the method is only called once per block.\\n */\\nerror ErrOncePerBlock();\\n\\n/**\\n * @dev Error of method caller must be coinbase\\n */\\nerror ErrCallerMustBeCoinbase();\\n\\n/**\\n * @dev Error thrown when an invalid proposal is encountered.\\n * @param actual The actual value of the proposal.\\n * @param expected The expected value of the proposal.\\n */\\nerror ErrInvalidProposal(bytes32 actual, bytes32 expected);\\n\\n/**\\n * @dev Error of proposal is not approved for executing.\\n */\\nerror ErrProposalNotApproved();\\n\\n/**\\n * @dev Error of the caller is not the specified executor.\\n */\\nerror ErrInvalidExecutor();\\n\\n/**\\n * @dev Error of the `caller` to relay is not the specified `executor`.\\n */\\nerror ErrNonExecutorCannotRelay(address executor, address caller);\\n\",\"keccak256\":\"0x0d9e2fd98f6b704273faad707ed9eadbd4c79551ee3f902bff5b29213a204679\",\"license\":\"MIT\"},\"src/utils/ContractType.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nenum ContractType {\\n UNKNOWN, // 0\\n PAUSE_ENFORCER, // 1\\n BRIDGE, // 2\\n BRIDGE_TRACKING, // 3\\n GOVERNANCE_ADMIN, // 4\\n MAINTENANCE, // 5\\n SLASH_INDICATOR, // 6\\n STAKING_VESTING, // 7\\n VALIDATOR, // 8\\n STAKING, // 9\\n RONIN_TRUSTED_ORGANIZATION, // 10\\n BRIDGE_MANAGER, // 11\\n BRIDGE_SLASH, // 12\\n BRIDGE_REWARD, // 13\\n FAST_FINALITY_TRACKING, // 14\\n PROFILE // 15\\n\\n}\\n\",\"keccak256\":\"0xec088aa939cd885dbe84e944942d7ea674e1fff8802c1f2ae5d8e84e4578357d\",\"license\":\"MIT\"},\"src/utils/IdentityGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { AddressArrayUtils } from \\\"../libraries/AddressArrayUtils.sol\\\";\\nimport { IERC165 } from \\\"@openzeppelin/contracts/utils/introspection/IERC165.sol\\\";\\nimport { TransparentUpgradeableProxyV2 } from \\\"../extensions/TransparentUpgradeableProxyV2.sol\\\";\\nimport { ErrAddressIsNotCreatedEOA, ErrZeroAddress, ErrOnlySelfCall, ErrZeroCodeContract, ErrUnsupportedInterface } from \\\"./CommonErrors.sol\\\";\\n\\nabstract contract IdentityGuard {\\n using AddressArrayUtils for address[];\\n\\n /// @dev value is equal to keccak256(abi.encode())\\n /// @dev see: https://eips.ethereum.org/EIPS/eip-1052\\n bytes32 internal constant CREATED_ACCOUNT_HASH = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\\n\\n /**\\n * @dev Modifier to restrict functions to only be called by this contract.\\n * @dev Reverts if the caller is not this contract.\\n */\\n modifier onlySelfCall() virtual {\\n _requireSelfCall();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to ensure that the elements in the `arr` array are non-duplicates.\\n * It calls the internal `_checkDuplicate` function to perform the duplicate check.\\n *\\n * Requirements:\\n * - The elements in the `arr` array must not contain any duplicates.\\n */\\n modifier nonDuplicate(address[] memory arr) virtual {\\n _requireNonDuplicate(arr);\\n _;\\n }\\n\\n /**\\n * @dev Internal method to check the method caller.\\n * @dev Reverts if the method caller is not this contract.\\n */\\n function _requireSelfCall() internal view virtual {\\n if (msg.sender != address(this)) revert ErrOnlySelfCall(msg.sig);\\n }\\n\\n /**\\n * @dev Internal function to check if a contract address has code.\\n * @param addr The address of the contract to check.\\n * @dev Throws an error if the contract address has no code.\\n */\\n function _requireHasCode(address addr) internal view {\\n if (addr.code.length == 0) revert ErrZeroCodeContract(addr);\\n }\\n\\n /**\\n * @dev Checks if an address is zero and reverts if it is.\\n * @param addr The address to check.\\n */\\n function _requireNonZeroAddress(address addr) internal pure {\\n if (addr == address(0)) revert ErrZeroAddress(msg.sig);\\n }\\n\\n /**\\n * @dev Check if arr is empty and revert if it is.\\n * Checks if an array contains any duplicate addresses and reverts if duplicates are found.\\n * @param arr The array of addresses to check.\\n */\\n function _requireNonDuplicate(address[] memory arr) internal pure {\\n if (arr.hasDuplicate()) revert AddressArrayUtils.ErrDuplicated(msg.sig);\\n }\\n\\n /**\\n * @dev Internal function to require that the provided address is a created externally owned account (EOA).\\n * This internal function is used to ensure that the provided address is a valid externally owned account (EOA).\\n * It checks the codehash of the address against a predefined constant to confirm that the address is a created EOA.\\n * @notice This method only works with non-state EOA accounts\\n */\\n function _requireCreatedEOA(address addr) internal view {\\n _requireNonZeroAddress(addr);\\n bytes32 codehash = addr.codehash;\\n if (codehash != CREATED_ACCOUNT_HASH) revert ErrAddressIsNotCreatedEOA(addr, codehash);\\n }\\n\\n /**\\n * @dev Internal function to require that the specified contract supports the given interface. This method handle in\\n * both case that the callee is either or not the proxy admin of the caller. If the contract does not support the\\n * interface `interfaceId` or EIP165, a revert with the corresponding error message is triggered.\\n *\\n * @param contractAddr The address of the contract to check for interface support.\\n * @param interfaceId The interface ID to check for support.\\n */\\n function _requireSupportsInterface(address contractAddr, bytes4 interfaceId) internal view {\\n bytes memory supportsInterfaceParams = abi.encodeCall(IERC165.supportsInterface, (interfaceId));\\n (bool success, bytes memory returnOrRevertData) = contractAddr.staticcall(supportsInterfaceParams);\\n if (!success) {\\n (success, returnOrRevertData) = contractAddr.staticcall(abi.encodeCall(TransparentUpgradeableProxyV2.functionDelegateCall, (supportsInterfaceParams)));\\n if (!success) revert ErrUnsupportedInterface(interfaceId, contractAddr);\\n }\\n if (!abi.decode(returnOrRevertData, (bool))) revert ErrUnsupportedInterface(interfaceId, contractAddr);\\n }\\n}\\n\",\"keccak256\":\"0x546ab4c9cdb0e7f8e650f140349225305ba1d0706dcaceeb9180c96aa765da59\",\"license\":\"MIT\"},\"src/utils/RoleAccess.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nenum RoleAccess {\\n UNKNOWN, // 0\\n ADMIN, // 1\\n COINBASE, // 2\\n GOVERNOR, // 3\\n CANDIDATE_ADMIN, // 4\\n WITHDRAWAL_MIGRATOR, // 5\\n __DEPRECATED_BRIDGE_OPERATOR, // 6\\n BLOCK_PRODUCER, // 7\\n VALIDATOR_CANDIDATE, // 8\\n CONSENSUS, // 9\\n TREASURY // 10\\n\\n}\\n\",\"keccak256\":\"0x671ff40dd874c508c4b3879a580996c7987fc018669256f47151e420a55c0e51\",\"license\":\"MIT\"}},\"version\":1}", - "nonce": 26, - "numDeployments": 3, + "metadata": "{\"compiler\":{\"version\":\"0.8.23+commit.f704f362\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"}],\"name\":\"ErrContractTypeNotFound\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC1155MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC20MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrERC721MintingFailed\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrEmptyArray\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"uint256\",\"name\":\"actual\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"expected\",\"type\":\"uint256\"}],\"name\":\"ErrInvalidChainId\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidInfo\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrInvalidOrder\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidPercentage\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidReceipt\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidReceiptKind\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidRequest\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrInvalidThreshold\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrInvalidTokenStandard\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"}],\"name\":\"ErrLengthMismatch\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForApprovedWithdrawal\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForInsufficientVoteWeight\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrQueryForProcessedWithdrawal\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrReachedDailyWithdrawalLimit\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"tokenInfo\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"ErrTokenCouldNotTransfer\",\"type\":\"error\"},{\"inputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"tokenInfo\",\"type\":\"tuple\"},{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"}],\"name\":\"ErrTokenCouldNotTransferFrom\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"enum RoleAccess\",\"name\":\"expectedRole\",\"type\":\"uint8\"}],\"name\":\"ErrUnauthorized\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"msgSig\",\"type\":\"bytes4\"},{\"internalType\":\"enum ContractType\",\"name\":\"expectedContractType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"actual\",\"type\":\"address\"}],\"name\":\"ErrUnexpectedInternalCall\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrUnsupportedStandard\",\"type\":\"error\"},{\"inputs\":[],\"name\":\"ErrUnsupportedToken\",\"type\":\"error\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"ErrZeroCodeContract\",\"type\":\"error\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"ContractUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"limits\",\"type\":\"uint256[]\"}],\"name\":\"DailyWithdrawalLimitsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"DepositRequested\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"thresholds\",\"type\":\"uint256[]\"}],\"name\":\"HighTierThresholdsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousNumerator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDenominator\",\"type\":\"uint256\"}],\"name\":\"HighTierVoteWeightThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"thresholds\",\"type\":\"uint256[]\"}],\"name\":\"LockedThresholdsUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"nonce\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"numerator\",\"type\":\"uint256\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"denominator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousNumerator\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"previousDenominator\",\"type\":\"uint256\"}],\"name\":\"ThresholdUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"mainchainTokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"roninTokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"enum TokenStandard[]\",\"name\":\"standards\",\"type\":\"uint8[]\"}],\"name\":\"TokenMapped\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address[]\",\"name\":\"tokens\",\"type\":\"address[]\"},{\"indexed\":false,\"internalType\":\"uint256[]\",\"name\":\"percentages\",\"type\":\"uint256[]\"}],\"name\":\"UnlockFeePercentagesUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"WithdrawalLocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"WithdrawalUnlocked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"receiptHash\",\"type\":\"bytes32\"},{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"indexed\":false,\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"Withdrew\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"contract IWETH\",\"name\":\"weth\",\"type\":\"address\"}],\"name\":\"WrappedNativeTokenContractUpdated\",\"type\":\"event\"},{\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"DOMAIN_SEPARATOR\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"WITHDRAWAL_UNLOCKER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_MAX_PERCENTAGE\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_voteWeight\",\"type\":\"uint256\"}],\"name\":\"checkHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_voteWeight\",\"type\":\"uint256\"}],\"name\":\"checkThreshold\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"dailyWithdrawalLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"depositCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"emergencyPauser\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"}],\"name\":\"getContract\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"contract_\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getRoleMember\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleMemberCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"mainchainToken\",\"type\":\"address\"}],\"name\":\"getRoninToken\",\"outputs\":[{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"}],\"internalType\":\"struct MappedTokenConsumer.MappedToken\",\"name\":\"token\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"num_\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denom_\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"highTierThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_roleSetter\",\"type\":\"address\"},{\"internalType\":\"contract IWETH\",\"name\":\"_wrappedToken\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_roninChainId\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_highTierVWNumerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"},{\"internalType\":\"address[][3]\",\"name\":\"_addresses\",\"type\":\"address[][3]\"},{\"internalType\":\"uint256[][4]\",\"name\":\"_thresholds\",\"type\":\"uint256[][4]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"bridgeManagerContract\",\"type\":\"address\"}],\"name\":\"initializeV2\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initializeV3\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"wethUnwrapper_\",\"type\":\"address\"}],\"name\":\"initializeV4\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastDateSynced\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lastSyncedWithdrawal\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"lockedThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_mainchainTokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_roninTokens\",\"type\":\"address[]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"}],\"name\":\"mapTokens\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_mainchainTokens\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"_roninTokens\",\"type\":\"address[]\"},{\"internalType\":\"enum TokenStandard[]\",\"name\":\"_standards\",\"type\":\"uint8[]\"},{\"internalType\":\"uint256[][4]\",\"name\":\"_thresholds\",\"type\":\"uint256[][4]\"}],\"name\":\"mapTokensAndThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minimumVoteWeight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"nonce\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"operators\",\"type\":\"address[]\"},{\"internalType\":\"uint96[]\",\"name\":\"weights\",\"type\":\"uint96[]\"},{\"internalType\":\"bool[]\",\"name\":\"addeds\",\"type\":\"bool[]\"}],\"name\":\"onBridgeOperatorsAdded\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"operators\",\"type\":\"address[]\"},{\"internalType\":\"bool[]\",\"name\":\"removeds\",\"type\":\"bool[]\"}],\"name\":\"onBridgeOperatorsRemoved\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155BatchReceived\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"onERC1155Received\",\"outputs\":[{\"internalType\":\"bytes4\",\"name\":\"\",\"type\":\"bytes4\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_token\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_quantity\",\"type\":\"uint256\"}],\"name\":\"reachedWithdrawalLimit\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"receiveEther\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipientAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Request\",\"name\":\"_request\",\"type\":\"tuple\"}],\"name\":\"requestDepositFor\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"recipientAddr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Request[]\",\"name\":\"_requests\",\"type\":\"tuple[]\"}],\"name\":\"requestDepositForBatch\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"roninChainId\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"enum ContractType\",\"name\":\"contractType\",\"type\":\"uint8\"},{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"}],\"name\":\"setContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_limits\",\"type\":\"uint256[]\"}],\"name\":\"setDailyWithdrawalLimits\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_addr\",\"type\":\"address\"}],\"name\":\"setEmergencyPauser\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_thresholds\",\"type\":\"uint256[]\"}],\"name\":\"setHighTierThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_numerator\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_denominator\",\"type\":\"uint256\"}],\"name\":\"setHighTierVoteWeightThreshold\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_previousNum\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"_previousDenom\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_thresholds\",\"type\":\"uint256[]\"}],\"name\":\"setLockedThresholds\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"denom\",\"type\":\"uint256\"}],\"name\":\"setThreshold\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"_tokens\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_percentages\",\"type\":\"uint256[]\"}],\"name\":\"setUnlockFeePercentages\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"_wrappedToken\",\"type\":\"address\"}],\"name\":\"setWrappedNativeTokenContract\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Receipt\",\"name\":\"_receipt\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"internalType\":\"struct SignatureConsumer.Signature[]\",\"name\":\"_signatures\",\"type\":\"tuple[]\"}],\"name\":\"submitWithdrawal\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"_locked\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"unlockFeePercentages\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"enum Transfer.Kind\",\"name\":\"kind\",\"type\":\"uint8\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"mainchain\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"address\",\"name\":\"addr\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddr\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"chainId\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenOwner\",\"name\":\"ronin\",\"type\":\"tuple\"},{\"components\":[{\"internalType\":\"enum TokenStandard\",\"name\":\"erc\",\"type\":\"uint8\"},{\"internalType\":\"uint256\",\"name\":\"id\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"quantity\",\"type\":\"uint256\"}],\"internalType\":\"struct TokenInfo\",\"name\":\"info\",\"type\":\"tuple\"}],\"internalType\":\"struct Transfer.Receipt\",\"name\":\"receipt\",\"type\":\"tuple\"}],\"name\":\"unlockWithdrawal\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wethUnwrapper\",\"outputs\":[{\"internalType\":\"contract WethUnwrapper\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalHash\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"withdrawalLocked\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"wrappedNativeToken\",\"outputs\":[{\"internalType\":\"contract IWETH\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"stateMutability\":\"payable\",\"type\":\"receive\"}],\"devdoc\":{\"errors\":{\"ErrContractTypeNotFound(uint8)\":[{\"details\":\"Error of invalid role.\"}],\"ErrERC1155MintingFailed()\":[{\"details\":\"Error indicating that the mint of ERC1155 tokens has failed.\"}],\"ErrERC20MintingFailed()\":[{\"details\":\"Error indicating that the minting of ERC20 tokens has failed.\"}],\"ErrERC721MintingFailed()\":[{\"details\":\"Error indicating that the minting of ERC721 tokens has failed.\"}],\"ErrEmptyArray()\":[{\"details\":\"Error indicating that an array is empty when it should contain elements.\"}],\"ErrInvalidChainId(bytes4,uint256,uint256)\":[{\"details\":\"Error indicating that the chain ID is invalid.\",\"params\":{\"actual\":\"Current chain ID that executing function.\",\"expected\":\"Expected chain ID required for the tx to success.\",\"msgSig\":\"The function signature (bytes4) of the operation that encountered an invalid chain ID.\"}}],\"ErrInvalidInfo()\":[{\"details\":\"Error indicating that the provided information is invalid.\"}],\"ErrInvalidOrder(bytes4)\":[{\"details\":\"Error indicating that an order is invalid.\",\"params\":{\"msgSig\":\"The function signature (bytes4) of the operation that encountered an invalid order.\"}}],\"ErrInvalidPercentage()\":[{\"details\":\"Error of invalid percentage.\"}],\"ErrInvalidReceipt()\":[{\"details\":\"Error indicating that a receipt is invalid.\"}],\"ErrInvalidReceiptKind()\":[{\"details\":\"Error indicating that a receipt kind is invalid.\"}],\"ErrInvalidRequest()\":[{\"details\":\"Error indicating that a request is invalid.\"}],\"ErrInvalidThreshold(bytes4)\":[{\"details\":\"Error indicating that the provided threshold is invalid for a specific function signature.\",\"params\":{\"msgSig\":\"The function signature (bytes4) that the invalid threshold applies to.\"}}],\"ErrInvalidTokenStandard()\":[{\"details\":\"Error indicating that a token standard is invalid.\"}],\"ErrLengthMismatch(bytes4)\":[{\"details\":\"Error indicating a mismatch in the length of input parameters or arrays for a specific function.\",\"params\":{\"msgSig\":\"The function signature (bytes4) that has a length mismatch.\"}}],\"ErrQueryForApprovedWithdrawal()\":[{\"details\":\"Error indicating that a query was made for an approved withdrawal.\"}],\"ErrQueryForInsufficientVoteWeight()\":[{\"details\":\"Error indicating that a query was made for insufficient vote weight.\"}],\"ErrQueryForProcessedWithdrawal()\":[{\"details\":\"Error indicating that a query was made for a processed withdrawal.\"}],\"ErrReachedDailyWithdrawalLimit()\":[{\"details\":\"Error indicating that the daily withdrawal limit has been reached.\"}],\"ErrTokenCouldNotTransfer((uint8,uint256,uint256),address,address)\":[{\"details\":\"Error indicating that the `transfer` has failed.\",\"params\":{\"to\":\"Receiver of the token value.\",\"token\":\"Address of the token.\",\"tokenInfo\":\"Info of the token including ERC standard, id or quantity.\"}}],\"ErrTokenCouldNotTransferFrom((uint8,uint256,uint256),address,address,address)\":[{\"details\":\"Error indicating that the `handleAssetIn` has failed.\",\"params\":{\"from\":\"Owner of the token value.\",\"to\":\"Receiver of the token value.\",\"token\":\"Address of the token.\",\"tokenInfo\":\"Info of the token including ERC standard, id or quantity.\"}}],\"ErrUnauthorized(bytes4,uint8)\":[{\"details\":\"Error indicating that the caller is unauthorized to perform a specific function.\",\"params\":{\"expectedRole\":\"The role required to perform the function.\",\"msgSig\":\"The function signature (bytes4) that the caller is unauthorized to perform.\"}}],\"ErrUnexpectedInternalCall(bytes4,uint8,address)\":[{\"details\":\"Error indicating that the caller is unauthorized to perform a specific function.\",\"params\":{\"actual\":\"The actual address that called to the function.\",\"expectedContractType\":\"The contract type required to perform the function.\",\"msgSig\":\"The function signature (bytes4).\"}}],\"ErrUnsupportedStandard()\":[{\"details\":\"Error indicating that an unsupported standard is encountered.\"}],\"ErrUnsupportedToken()\":[{\"details\":\"Error indicating that a token is not supported.\"}],\"ErrZeroCodeContract(address)\":[{\"details\":\"Error of set to non-contract.\"}]},\"events\":{\"ContractUpdated(uint8,address)\":{\"details\":\"Emitted when a contract is updated.\"},\"DailyWithdrawalLimitsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the daily limit thresholds are updated\"},\"DepositRequested(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the deposit is requested\"},\"HighTierThresholdsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the thresholds for high-tier withdrawals that requires high-tier vote weights are updated\"},\"HighTierVoteWeightThresholdUpdated(uint256,uint256,uint256,uint256,uint256)\":{\"details\":\"Emitted when the high-tier vote weight threshold is updated\"},\"Initialized(uint8)\":{\"details\":\"Triggered when the contract has been initialized or reinitialized.\"},\"LockedThresholdsUpdated(address[],uint256[])\":{\"details\":\"Emitted when the thresholds for locked withdrawals are updated\"},\"Paused(address)\":{\"details\":\"Emitted when the pause is triggered by `account`.\"},\"RoleAdminChanged(bytes32,bytes32,bytes32)\":{\"details\":\"Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole` `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite {RoleAdminChanged} not being emitted signaling this. _Available since v3.1._\"},\"RoleGranted(bytes32,address,address)\":{\"details\":\"Emitted when `account` is granted `role`. `sender` is the account that originated the contract call, an admin role bearer except when using {AccessControl-_setupRole}.\"},\"RoleRevoked(bytes32,address,address)\":{\"details\":\"Emitted when `account` is revoked `role`. `sender` is the account that originated the contract call: - if using `revokeRole`, it is the admin role bearer - if using `renounceRole`, it is the role bearer (i.e. `account`)\"},\"ThresholdUpdated(uint256,uint256,uint256,uint256,uint256)\":{\"details\":\"Emitted when the threshold is updated\"},\"TokenMapped(address[],address[],uint8[])\":{\"details\":\"Emitted when the tokens are mapped\"},\"UnlockFeePercentagesUpdated(address[],uint256[])\":{\"details\":\"Emitted when the fee percentages to unlock withdraw are updated\"},\"Unpaused(address)\":{\"details\":\"Emitted when the pause is lifted by `account`.\"},\"WithdrawalLocked(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the withdrawal is locked\"},\"WithdrawalUnlocked(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the withdrawal is unlocked\"},\"Withdrew(bytes32,(uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Emitted when the assets are withdrawn\"},\"WrappedNativeTokenContractUpdated(address)\":{\"details\":\"Emitted when the wrapped native token contract is updated\"}},\"kind\":\"dev\",\"methods\":{\"DOMAIN_SEPARATOR()\":{\"details\":\"Returns the domain seperator.\"},\"checkHighTierVoteWeightThreshold(uint256)\":{\"details\":\"Checks whether the `_voteWeight` passes the high-tier vote weight threshold.\"},\"checkThreshold(uint256)\":{\"details\":\"Checks whether the `_voteWeight` passes the threshold.\"},\"getContract(uint8)\":{\"details\":\"Returns the address of a contract with a specific role. Throws an error if no contract is set for the specified role.\",\"params\":{\"contractType\":\"The role of the contract to retrieve.\"},\"returns\":{\"contract_\":\"The address of the contract with the specified role.\"}},\"getHighTierVoteWeightThreshold()\":{\"details\":\"Returns the high-tier vote weight threshold.\"},\"getRoleAdmin(bytes32)\":{\"details\":\"Returns the admin role that controls `role`. See {grantRole} and {revokeRole}. To change a role's admin, use {_setRoleAdmin}.\"},\"getRoleMember(bytes32,uint256)\":{\"details\":\"Returns one of the accounts that have `role`. `index` must be a value between 0 and {getRoleMemberCount}, non-inclusive. Role bearers are not sorted in any particular way, and their ordering may change at any point. WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure you perform all queries on the same block. See the following https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post] for more information.\"},\"getRoleMemberCount(bytes32)\":{\"details\":\"Returns the number of accounts that have `role`. Can be used together with {getRoleMember} to enumerate all bearers of a role.\"},\"getRoninToken(address)\":{\"details\":\"Returns token address on Ronin network. Note: Reverts for unsupported token.\"},\"getThreshold()\":{\"details\":\"Returns the threshold.\"},\"grantRole(bytes32,address)\":{\"details\":\"Grants `role` to `account`. If `account` had not been already granted `role`, emits a {RoleGranted} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleGranted} event.\"},\"hasRole(bytes32,address)\":{\"details\":\"Returns `true` if `account` has been granted `role`.\"},\"initialize(address,address,uint256,uint256,uint256,uint256,address[][3],uint256[][4],uint8[])\":{\"details\":\"Initializes contract storage.\"},\"mapTokens(address[],address[],uint8[])\":{\"details\":\"Maps mainchain tokens to Ronin network. Requirement: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `TokenMapped` event.\"},\"mapTokensAndThresholds(address[],address[],uint8[],uint256[][4])\":{\"details\":\"Maps mainchain tokens to Ronin network and sets thresholds. Requirement: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `TokenMapped` event.\"},\"minimumVoteWeight()\":{\"details\":\"Returns the minimum vote weight to pass the threshold.\"},\"onBridgeOperatorsAdded(address[],uint96[],bool[])\":{\"details\":\"Handles the event when bridge operators are added.\",\"params\":{\"addeds\":\"The corresponding boolean values indicating whether the operators were added or not.\",\"bridgeOperators\":\"The addresses of the bridge operators.\"},\"returns\":{\"_0\":\"The selector of the function being called.\"}},\"onBridgeOperatorsRemoved(address[],bool[])\":{\"details\":\"Handles the event when bridge operators are removed.\",\"params\":{\"bridgeOperators\":\"The addresses of the bridge operators.\",\"removeds\":\"The corresponding boolean values indicating whether the operators were removed or not.\"},\"returns\":{\"_0\":\"The selector of the function being called.\"}},\"pause()\":{\"details\":\"Triggers paused state.\"},\"paused()\":{\"details\":\"Returns true if the contract is paused, and false otherwise.\"},\"reachedWithdrawalLimit(address,uint256)\":{\"details\":\"Checks whether the withdrawal reaches the limitation.\"},\"receiveEther()\":{\"details\":\"Receives ether without doing anything. Use this function to topup native token.\"},\"renounceRole(bytes32,address)\":{\"details\":\"Revokes `role` from the calling account. Roles are often managed via {grantRole} and {revokeRole}: this function's purpose is to provide a mechanism for accounts to lose their privileges if they are compromised (such as when a trusted device is misplaced). If the calling account had been revoked `role`, emits a {RoleRevoked} event. Requirements: - the caller must be `account`. May emit a {RoleRevoked} event.\"},\"requestDepositFor((address,address,(uint8,uint256,uint256)))\":{\"details\":\"Locks the assets and request deposit.\"},\"requestDepositForBatch((address,address,(uint8,uint256,uint256))[])\":{\"details\":\"Locks the assets and request deposit for batch.\"},\"revokeRole(bytes32,address)\":{\"details\":\"Revokes `role` from `account`. If `account` had been granted `role`, emits a {RoleRevoked} event. Requirements: - the caller must have ``role``'s admin role. May emit a {RoleRevoked} event.\"},\"setContract(uint8,address)\":{\"details\":\"Sets the address of a contract with a specific role. Emits the event {ContractUpdated}.\",\"params\":{\"addr\":\"The address of the contract to set.\",\"contractType\":\"The role of the contract to set.\"}},\"setDailyWithdrawalLimits(address[],uint256[])\":{\"details\":\"Sets daily limit amounts for the withdrawals. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `DailyWithdrawalLimitsUpdated` event.\"},\"setEmergencyPauser(address)\":{\"details\":\"Grant emergency pauser role for `_addr`.\"},\"setHighTierThresholds(address[],uint256[])\":{\"details\":\"Sets the thresholds for high-tier withdrawals that requires high-tier vote weights. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `HighTierThresholdsUpdated` event.\"},\"setHighTierVoteWeightThreshold(uint256,uint256)\":{\"details\":\"Sets high-tier vote weight threshold and returns the old one. Requirements: - The method caller is admin. - The high-tier vote weight threshold must equal to or larger than the normal threshold. Emits the `HighTierVoteWeightThresholdUpdated` event.\"},\"setLockedThresholds(address[],uint256[])\":{\"details\":\"Sets the amount thresholds to lock withdrawal. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `LockedThresholdsUpdated` event.\"},\"setThreshold(uint256,uint256)\":{\"details\":\"Override `GatewayV3-setThreshold`. Requirements: - The high-tier vote weight threshold must equal to or larger than the normal threshold.\"},\"setUnlockFeePercentages(address[],uint256[])\":{\"details\":\"Sets fee percentages to unlock withdrawal. Requirements: - The method caller is admin. - The arrays have the same length and its length larger than 0. Emits the `UnlockFeePercentagesUpdated` event.\"},\"setWrappedNativeTokenContract(address)\":{\"details\":\"Sets the wrapped native token contract. Requirements: - The method caller is admin. Emits the `WrappedNativeTokenContractUpdated` event.\"},\"submitWithdrawal((uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)),(uint8,bytes32,bytes32)[])\":{\"details\":\"Withdraws based on the receipt and the validator signatures. Returns whether the withdrawal is locked. Emits the `Withdrew` once the assets are released.\"},\"unlockWithdrawal((uint256,uint8,(address,address,uint256),(address,address,uint256),(uint8,uint256,uint256)))\":{\"details\":\"Approves a specific withdrawal. Requirements: - The method caller is a validator. Emits the `Withdrew` once the assets are released.\"},\"unpause()\":{\"details\":\"Triggers unpaused state.\"}},\"stateVariables\":{\"WITHDRAWAL_UNLOCKER_ROLE\":{\"details\":\"Withdrawal unlocker role hash\"},\"______deprecatedBridgeOperatorAddedBlock\":{\"custom:deprecated\":\"Previously `_bridgeOperatorAddedBlock` (mapping(address => uint256))\"},\"______deprecatedBridgeOperators\":{\"custom:deprecated\":\"Previously `_bridgeOperators` (uint256[])\"},\"_domainSeparator\":{\"details\":\"Domain separator\"},\"_roninToken\":{\"details\":\"Mapping from mainchain token => token address on Ronin network\"},\"depositCount\":{\"details\":\"Total deposit\"},\"roninChainId\":{\"details\":\"Ronin network id\"},\"withdrawalHash\":{\"details\":\"Mapping from withdrawal id => withdrawal hash\"},\"withdrawalLocked\":{\"details\":\"Mapping from withdrawal id => locked\"},\"wrappedNativeToken\":{\"details\":\"Wrapped native token address\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"unlockFeePercentages(address)\":{\"notice\":\"Values 0-1,000,000 map to 0%-100%\"}},\"version\":1}},\"settings\":{\"compilationTarget\":{\"src/mainchain/MainchainGatewayV3.sol\":\"MainchainGatewayV3\"},\"evmVersion\":\"istanbul\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[\":@fdk/=lib/foundry-deployment-kit/script/\",\":@openzeppelin/=lib/openzeppelin-contracts/\",\":@prb/math/=lib/prb-math/\",\":@prb/test/=lib/prb-test/src/\",\":@ronin/contracts/=src/\",\":@ronin/script/=script/\",\":@ronin/test/=test/\",\":contract-libs/=lib/foundry-deployment-kit/lib/contract-libs/src/\",\":ds-test/=lib/forge-std/lib/ds-test/src/\",\":erc4626-tests/=lib/foundry-deployment-kit/lib/openzeppelin-contracts/lib/erc4626-tests/\",\":forge-std/=lib/foundry-deployment-kit/lib/forge-std/src/\",\":foundry-deployment-kit/=lib/foundry-deployment-kit/\",\":hardhat/=node_modules/hardhat/\",\":openzeppelin-contracts/=lib/openzeppelin-contracts/\",\":openzeppelin/=lib/foundry-deployment-kit/lib/openzeppelin-contracts/contracts/\",\":prb-math/=lib/prb-math/src/\",\":prb-test/=lib/prb-test/src/\",\":sample-projects/=node_modules/hardhat/sample-projects/\",\":solady/=lib/solady/src/\"]},\"sources\":{\"lib/openzeppelin-contracts/contracts/access/AccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/AccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\nimport \\\"../utils/Context.sol\\\";\\nimport \\\"../utils/Strings.sol\\\";\\nimport \\\"../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Contract module that allows children to implement role-based access\\n * control mechanisms. This is a lightweight version that doesn't allow enumerating role\\n * members except through off-chain means by accessing the contract event logs. Some\\n * applications may benefit from on-chain enumerability, for those cases see\\n * {AccessControlEnumerable}.\\n *\\n * Roles are referred to by their `bytes32` identifier. These should be exposed\\n * in the external API and be unique. The best way to achieve this is by\\n * using `public constant` hash digests:\\n *\\n * ```\\n * bytes32 public constant MY_ROLE = keccak256(\\\"MY_ROLE\\\");\\n * ```\\n *\\n * Roles can be used to represent a set of permissions. To restrict access to a\\n * function call, use {hasRole}:\\n *\\n * ```\\n * function foo() public {\\n * require(hasRole(MY_ROLE, msg.sender));\\n * ...\\n * }\\n * ```\\n *\\n * Roles can be granted and revoked dynamically via the {grantRole} and\\n * {revokeRole} functions. Each role has an associated admin role, and only\\n * accounts that have a role's admin role can call {grantRole} and {revokeRole}.\\n *\\n * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means\\n * that only accounts with this role will be able to grant or revoke other\\n * roles. More complex role relationships can be created by using\\n * {_setRoleAdmin}.\\n *\\n * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to\\n * grant and revoke this role. Extra precautions should be taken to secure\\n * accounts that have been granted it.\\n */\\nabstract contract AccessControl is Context, IAccessControl, ERC165 {\\n struct RoleData {\\n mapping(address => bool) members;\\n bytes32 adminRole;\\n }\\n\\n mapping(bytes32 => RoleData) private _roles;\\n\\n bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;\\n\\n /**\\n * @dev Modifier that checks that an account has a specific role. Reverts\\n * with a standardized message including the required role.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n *\\n * _Available since v4.1._\\n */\\n modifier onlyRole(bytes32 role) {\\n _checkRole(role);\\n _;\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControl).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) public view virtual override returns (bool) {\\n return _roles[role].members[account];\\n }\\n\\n /**\\n * @dev Revert with a standard message if `_msgSender()` is missing `role`.\\n * Overriding this function changes the behavior of the {onlyRole} modifier.\\n *\\n * Format of the revert message is described in {_checkRole}.\\n *\\n * _Available since v4.6._\\n */\\n function _checkRole(bytes32 role) internal view virtual {\\n _checkRole(role, _msgSender());\\n }\\n\\n /**\\n * @dev Revert with a standard message if `account` is missing `role`.\\n *\\n * The format of the revert reason is given by the following regular expression:\\n *\\n * /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/\\n */\\n function _checkRole(bytes32 role, address account) internal view virtual {\\n if (!hasRole(role, account)) {\\n revert(\\n string(\\n abi.encodePacked(\\n \\\"AccessControl: account \\\",\\n Strings.toHexString(uint160(account), 20),\\n \\\" is missing role \\\",\\n Strings.toHexString(uint256(role), 32)\\n )\\n )\\n );\\n }\\n }\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {\\n return _roles[role].adminRole;\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been revoked `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function renounceRole(bytes32 role, address account) public virtual override {\\n require(account == _msgSender(), \\\"AccessControl: can only renounce roles for self\\\");\\n\\n _revokeRole(role, account);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event. Note that unlike {grantRole}, this function doesn't perform any\\n * checks on the calling account.\\n *\\n * May emit a {RoleGranted} event.\\n *\\n * [WARNING]\\n * ====\\n * This function should only be called from the constructor when setting\\n * up the initial roles for the system.\\n *\\n * Using this function in any other way is effectively circumventing the admin\\n * system imposed by {AccessControl}.\\n * ====\\n *\\n * NOTE: This function is deprecated in favor of {_grantRole}.\\n */\\n function _setupRole(bytes32 role, address account) internal virtual {\\n _grantRole(role, account);\\n }\\n\\n /**\\n * @dev Sets `adminRole` as ``role``'s admin role.\\n *\\n * Emits a {RoleAdminChanged} event.\\n */\\n function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {\\n bytes32 previousAdminRole = getRoleAdmin(role);\\n _roles[role].adminRole = adminRole;\\n emit RoleAdminChanged(role, previousAdminRole, adminRole);\\n }\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleGranted} event.\\n */\\n function _grantRole(bytes32 role, address account) internal virtual {\\n if (!hasRole(role, account)) {\\n _roles[role].members[account] = true;\\n emit RoleGranted(role, account, _msgSender());\\n }\\n }\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * Internal function without access restriction.\\n *\\n * May emit a {RoleRevoked} event.\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual {\\n if (hasRole(role, account)) {\\n _roles[role].members[account] = false;\\n emit RoleRevoked(role, account, _msgSender());\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5b35d8e68aeaccc685239bd9dd79b9ba01a0357930f8a3307ab85511733d9724\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/AccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (access/AccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControlEnumerable.sol\\\";\\nimport \\\"./AccessControl.sol\\\";\\nimport \\\"../utils/structs/EnumerableSet.sol\\\";\\n\\n/**\\n * @dev Extension of {AccessControl} that allows enumerating the members of each role.\\n */\\nabstract contract AccessControlEnumerable is IAccessControlEnumerable, AccessControl {\\n using EnumerableSet for EnumerableSet.AddressSet;\\n\\n mapping(bytes32 => EnumerableSet.AddressSet) private _roleMembers;\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IAccessControlEnumerable).interfaceId || super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) public view virtual override returns (address) {\\n return _roleMembers[role].at(index);\\n }\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) public view virtual override returns (uint256) {\\n return _roleMembers[role].length();\\n }\\n\\n /**\\n * @dev Overload {_grantRole} to track enumerable memberships\\n */\\n function _grantRole(bytes32 role, address account) internal virtual override {\\n super._grantRole(role, account);\\n _roleMembers[role].add(account);\\n }\\n\\n /**\\n * @dev Overload {_revokeRole} to track enumerable memberships\\n */\\n function _revokeRole(bytes32 role, address account) internal virtual override {\\n super._revokeRole(role, account);\\n _roleMembers[role].remove(account);\\n }\\n}\\n\",\"keccak256\":\"0x13f5e15f2a0650c0b6aaee2ef19e89eaf4870d6e79662d572a393334c1397247\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/IAccessControl.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControl.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev External interface of AccessControl declared to support ERC165 detection.\\n */\\ninterface IAccessControl {\\n /**\\n * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`\\n *\\n * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite\\n * {RoleAdminChanged} not being emitted signaling this.\\n *\\n * _Available since v3.1._\\n */\\n event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);\\n\\n /**\\n * @dev Emitted when `account` is granted `role`.\\n *\\n * `sender` is the account that originated the contract call, an admin role\\n * bearer except when using {AccessControl-_setupRole}.\\n */\\n event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Emitted when `account` is revoked `role`.\\n *\\n * `sender` is the account that originated the contract call:\\n * - if using `revokeRole`, it is the admin role bearer\\n * - if using `renounceRole`, it is the role bearer (i.e. `account`)\\n */\\n event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);\\n\\n /**\\n * @dev Returns `true` if `account` has been granted `role`.\\n */\\n function hasRole(bytes32 role, address account) external view returns (bool);\\n\\n /**\\n * @dev Returns the admin role that controls `role`. See {grantRole} and\\n * {revokeRole}.\\n *\\n * To change a role's admin, use {AccessControl-_setRoleAdmin}.\\n */\\n function getRoleAdmin(bytes32 role) external view returns (bytes32);\\n\\n /**\\n * @dev Grants `role` to `account`.\\n *\\n * If `account` had not been already granted `role`, emits a {RoleGranted}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function grantRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from `account`.\\n *\\n * If `account` had been granted `role`, emits a {RoleRevoked} event.\\n *\\n * Requirements:\\n *\\n * - the caller must have ``role``'s admin role.\\n */\\n function revokeRole(bytes32 role, address account) external;\\n\\n /**\\n * @dev Revokes `role` from the calling account.\\n *\\n * Roles are often managed via {grantRole} and {revokeRole}: this function's\\n * purpose is to provide a mechanism for accounts to lose their privileges\\n * if they are compromised (such as when a trusted device is misplaced).\\n *\\n * If the calling account had been granted `role`, emits a {RoleRevoked}\\n * event.\\n *\\n * Requirements:\\n *\\n * - the caller must be `account`.\\n */\\n function renounceRole(bytes32 role, address account) external;\\n}\\n\",\"keccak256\":\"0x59ce320a585d7e1f163cd70390a0ef2ff9cec832e2aa544293a00692465a7a57\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/access/IAccessControlEnumerable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (access/IAccessControlEnumerable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IAccessControl.sol\\\";\\n\\n/**\\n * @dev External interface of AccessControlEnumerable declared to support ERC165 detection.\\n */\\ninterface IAccessControlEnumerable is IAccessControl {\\n /**\\n * @dev Returns one of the accounts that have `role`. `index` must be a\\n * value between 0 and {getRoleMemberCount}, non-inclusive.\\n *\\n * Role bearers are not sorted in any particular way, and their ordering may\\n * change at any point.\\n *\\n * WARNING: When using {getRoleMember} and {getRoleMemberCount}, make sure\\n * you perform all queries on the same block. See the following\\n * https://forum.openzeppelin.com/t/iterating-over-elements-on-enumerableset-in-openzeppelin-contracts/2296[forum post]\\n * for more information.\\n */\\n function getRoleMember(bytes32 role, uint256 index) external view returns (address);\\n\\n /**\\n * @dev Returns the number of accounts that have `role`. Can be used\\n * together with {getRoleMember} to enumerate all bearers of a role.\\n */\\n function getRoleMemberCount(bytes32 role) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0xba4459ab871dfa300f5212c6c30178b63898c03533a1ede28436f11546626676\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/interfaces/draft-IERC1822.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (interfaces/draft-IERC1822.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev ERC1822: Universal Upgradeable Proxy Standard (UUPS) documents a method for upgradeability through a simplified\\n * proxy whose upgrades are fully controlled by the current implementation.\\n */\\ninterface IERC1822Proxiable {\\n /**\\n * @dev Returns the storage slot that the proxiable contract assumes is being used to store the implementation\\n * address.\\n *\\n * IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks\\n * bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this\\n * function revert if invoked through a proxy.\\n */\\n function proxiableUUID() external view returns (bytes32);\\n}\\n\",\"keccak256\":\"0x1d4afe6cb24200cc4545eed814ecf5847277dfe5d613a1707aad5fceecebcfff\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/ERC1967/ERC1967Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Proxy.sol\\\";\\nimport \\\"./ERC1967Upgrade.sol\\\";\\n\\n/**\\n * @dev This contract implements an upgradeable proxy. It is upgradeable because calls are delegated to an\\n * implementation address that can be changed. This address is stored in storage in the location specified by\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967], so that it doesn't conflict with the storage layout of the\\n * implementation behind the proxy.\\n */\\ncontract ERC1967Proxy is Proxy, ERC1967Upgrade {\\n /**\\n * @dev Initializes the upgradeable proxy with an initial implementation specified by `_logic`.\\n *\\n * If `_data` is nonempty, it's used as data in a delegate call to `_logic`. This will typically be an encoded\\n * function call, and allows initializing the storage of the proxy like a Solidity constructor.\\n */\\n constructor(address _logic, bytes memory _data) payable {\\n _upgradeToAndCall(_logic, _data, false);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _implementation() internal view virtual override returns (address impl) {\\n return ERC1967Upgrade._getImplementation();\\n }\\n}\\n\",\"keccak256\":\"0xa2b22da3032e50b55f95ec1d13336102d675f341167aa76db571ef7f8bb7975d\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/ERC1967/ERC1967Upgrade.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (proxy/ERC1967/ERC1967Upgrade.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../beacon/IBeacon.sol\\\";\\nimport \\\"../../interfaces/draft-IERC1822.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/StorageSlot.sol\\\";\\n\\n/**\\n * @dev This abstract contract provides getters and event emitting update functions for\\n * https://eips.ethereum.org/EIPS/eip-1967[EIP1967] slots.\\n *\\n * _Available since v4.1._\\n *\\n * @custom:oz-upgrades-unsafe-allow delegatecall\\n */\\nabstract contract ERC1967Upgrade {\\n // This is the keccak-256 hash of \\\"eip1967.proxy.rollback\\\" subtracted by 1\\n bytes32 private constant _ROLLBACK_SLOT = 0x4910fdfa16fed3260ed0e7147f7cc6da11a60208b5b9406d12a635614ffd9143;\\n\\n /**\\n * @dev Storage slot with the address of the current implementation.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.implementation\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n\\n /**\\n * @dev Emitted when the implementation is upgraded.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function _getImplementation() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 implementation slot.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n }\\n\\n /**\\n * @dev Perform implementation upgrade\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeTo(address newImplementation) internal {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCall(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _upgradeTo(newImplementation);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(newImplementation, data);\\n }\\n }\\n\\n /**\\n * @dev Perform implementation upgrade with security checks for UUPS proxies, and additional setup call.\\n *\\n * Emits an {Upgraded} event.\\n */\\n function _upgradeToAndCallUUPS(\\n address newImplementation,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n // Upgrades from old implementations will perform a rollback test. This test requires the new\\n // implementation to upgrade back to the old, non-ERC1822 compliant, implementation. Removing\\n // this special case will break upgrade paths from old UUPS implementation to new ones.\\n if (StorageSlot.getBooleanSlot(_ROLLBACK_SLOT).value) {\\n _setImplementation(newImplementation);\\n } else {\\n try IERC1822Proxiable(newImplementation).proxiableUUID() returns (bytes32 slot) {\\n require(slot == _IMPLEMENTATION_SLOT, \\\"ERC1967Upgrade: unsupported proxiableUUID\\\");\\n } catch {\\n revert(\\\"ERC1967Upgrade: new implementation is not UUPS\\\");\\n }\\n _upgradeToAndCall(newImplementation, data, forceCall);\\n }\\n }\\n\\n /**\\n * @dev Storage slot with the admin of the contract.\\n * This is the keccak-256 hash of \\\"eip1967.proxy.admin\\\" subtracted by 1, and is\\n * validated in the constructor.\\n */\\n bytes32 internal constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n /**\\n * @dev Emitted when the admin account has changed.\\n */\\n event AdminChanged(address previousAdmin, address newAdmin);\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _getAdmin() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new address in the EIP1967 admin slot.\\n */\\n function _setAdmin(address newAdmin) private {\\n require(newAdmin != address(0), \\\"ERC1967: new admin is the zero address\\\");\\n StorageSlot.getAddressSlot(_ADMIN_SLOT).value = newAdmin;\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n */\\n function _changeAdmin(address newAdmin) internal {\\n emit AdminChanged(_getAdmin(), newAdmin);\\n _setAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev The storage slot of the UpgradeableBeacon contract which defines the implementation for this proxy.\\n * This is bytes32(uint256(keccak256('eip1967.proxy.beacon')) - 1)) and is validated in the constructor.\\n */\\n bytes32 internal constant _BEACON_SLOT = 0xa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d50;\\n\\n /**\\n * @dev Emitted when the beacon is upgraded.\\n */\\n event BeaconUpgraded(address indexed beacon);\\n\\n /**\\n * @dev Returns the current beacon.\\n */\\n function _getBeacon() internal view returns (address) {\\n return StorageSlot.getAddressSlot(_BEACON_SLOT).value;\\n }\\n\\n /**\\n * @dev Stores a new beacon in the EIP1967 beacon slot.\\n */\\n function _setBeacon(address newBeacon) private {\\n require(Address.isContract(newBeacon), \\\"ERC1967: new beacon is not a contract\\\");\\n require(\\n Address.isContract(IBeacon(newBeacon).implementation()),\\n \\\"ERC1967: beacon implementation is not a contract\\\"\\n );\\n StorageSlot.getAddressSlot(_BEACON_SLOT).value = newBeacon;\\n }\\n\\n /**\\n * @dev Perform beacon upgrade with additional setup call. Note: This upgrades the address of the beacon, it does\\n * not upgrade the implementation contained in the beacon (see {UpgradeableBeacon-_setImplementation} for that).\\n *\\n * Emits a {BeaconUpgraded} event.\\n */\\n function _upgradeBeaconToAndCall(\\n address newBeacon,\\n bytes memory data,\\n bool forceCall\\n ) internal {\\n _setBeacon(newBeacon);\\n emit BeaconUpgraded(newBeacon);\\n if (data.length > 0 || forceCall) {\\n Address.functionDelegateCall(IBeacon(newBeacon).implementation(), data);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xabf3f59bc0e5423eae45e459dbe92e7052c6983628d39008590edc852a62f94a\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/Proxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (proxy/Proxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This abstract contract provides a fallback function that delegates all calls to another contract using the EVM\\n * instruction `delegatecall`. We refer to the second contract as the _implementation_ behind the proxy, and it has to\\n * be specified by overriding the virtual {_implementation} function.\\n *\\n * Additionally, delegation to the implementation can be triggered manually through the {_fallback} function, or to a\\n * different contract through the {_delegate} function.\\n *\\n * The success and return data of the delegated call will be returned back to the caller of the proxy.\\n */\\nabstract contract Proxy {\\n /**\\n * @dev Delegates the current call to `implementation`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _delegate(address implementation) internal virtual {\\n assembly {\\n // Copy msg.data. We take full control of memory in this inline assembly\\n // block because it will not return to Solidity code. We overwrite the\\n // Solidity scratch pad at memory position 0.\\n calldatacopy(0, 0, calldatasize())\\n\\n // Call the implementation.\\n // out and outsize are 0 because we don't know the size yet.\\n let result := delegatecall(gas(), implementation, 0, calldatasize(), 0, 0)\\n\\n // Copy the returned data.\\n returndatacopy(0, 0, returndatasize())\\n\\n switch result\\n // delegatecall returns 0 on error.\\n case 0 {\\n revert(0, returndatasize())\\n }\\n default {\\n return(0, returndatasize())\\n }\\n }\\n }\\n\\n /**\\n * @dev This is a virtual function that should be overridden so it returns the address to which the fallback function\\n * and {_fallback} should delegate.\\n */\\n function _implementation() internal view virtual returns (address);\\n\\n /**\\n * @dev Delegates the current call to the address returned by `_implementation()`.\\n *\\n * This function does not return to its internal call site, it will return directly to the external caller.\\n */\\n function _fallback() internal virtual {\\n _beforeFallback();\\n _delegate(_implementation());\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if no other\\n * function in the contract matches the call data.\\n */\\n fallback() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Fallback function that delegates calls to the address returned by `_implementation()`. Will run if call data\\n * is empty.\\n */\\n receive() external payable virtual {\\n _fallback();\\n }\\n\\n /**\\n * @dev Hook that is called before falling back to the implementation. Can happen as part of a manual `_fallback`\\n * call, or as part of the Solidity `fallback` or `receive` functions.\\n *\\n * If overridden should call `super._beforeFallback()`.\\n */\\n function _beforeFallback() internal virtual {}\\n}\\n\",\"keccak256\":\"0xc130fe33f1b2132158531a87734153293f6d07bc263ff4ac90e85da9c82c0e27\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/transparent/TransparentUpgradeableProxy.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1967/ERC1967Proxy.sol\\\";\\n\\n/**\\n * @dev This contract implements a proxy that is upgradeable by an admin.\\n *\\n * To avoid https://medium.com/nomic-labs-blog/malicious-backdoors-in-ethereum-proxies-62629adf3357[proxy selector\\n * clashing], which can potentially be used in an attack, this contract uses the\\n * https://blog.openzeppelin.com/the-transparent-proxy-pattern/[transparent proxy pattern]. This pattern implies two\\n * things that go hand in hand:\\n *\\n * 1. If any account other than the admin calls the proxy, the call will be forwarded to the implementation, even if\\n * that call matches one of the admin functions exposed by the proxy itself.\\n * 2. If the admin calls the proxy, it can access the admin functions, but its calls will never be forwarded to the\\n * implementation. If the admin tries to call a function on the implementation it will fail with an error that says\\n * \\\"admin cannot fallback to proxy target\\\".\\n *\\n * These properties mean that the admin account can only be used for admin actions like upgrading the proxy or changing\\n * the admin, so it's best if it's a dedicated account that is not used for anything else. This will avoid headaches due\\n * to sudden errors when trying to call a function from the proxy implementation.\\n *\\n * Our recommendation is for the dedicated account to be an instance of the {ProxyAdmin} contract. If set up this way,\\n * you should think of the `ProxyAdmin` instance as the real administrative interface of your proxy.\\n */\\ncontract TransparentUpgradeableProxy is ERC1967Proxy {\\n /**\\n * @dev Initializes an upgradeable proxy managed by `_admin`, backed by the implementation at `_logic`, and\\n * optionally initialized with `_data` as explained in {ERC1967Proxy-constructor}.\\n */\\n constructor(\\n address _logic,\\n address admin_,\\n bytes memory _data\\n ) payable ERC1967Proxy(_logic, _data) {\\n _changeAdmin(admin_);\\n }\\n\\n /**\\n * @dev Modifier used internally that will delegate the call to the implementation unless the sender is the admin.\\n */\\n modifier ifAdmin() {\\n if (msg.sender == _getAdmin()) {\\n _;\\n } else {\\n _fallback();\\n }\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyAdmin}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103`\\n */\\n function admin() external ifAdmin returns (address admin_) {\\n admin_ = _getAdmin();\\n }\\n\\n /**\\n * @dev Returns the current implementation.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-getProxyImplementation}.\\n *\\n * TIP: To get this value clients can read directly from the storage slot shown below (specified by EIP1967) using the\\n * https://eth.wiki/json-rpc/API#eth_getstorageat[`eth_getStorageAt`] RPC call.\\n * `0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc`\\n */\\n function implementation() external ifAdmin returns (address implementation_) {\\n implementation_ = _implementation();\\n }\\n\\n /**\\n * @dev Changes the admin of the proxy.\\n *\\n * Emits an {AdminChanged} event.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-changeProxyAdmin}.\\n */\\n function changeAdmin(address newAdmin) external virtual ifAdmin {\\n _changeAdmin(newAdmin);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgrade}.\\n */\\n function upgradeTo(address newImplementation) external ifAdmin {\\n _upgradeToAndCall(newImplementation, bytes(\\\"\\\"), false);\\n }\\n\\n /**\\n * @dev Upgrade the implementation of the proxy, and then call a function from the new implementation as specified\\n * by `data`, which should be an encoded function call. This is useful to initialize new storage variables in the\\n * proxied contract.\\n *\\n * NOTE: Only the admin can call this function. See {ProxyAdmin-upgradeAndCall}.\\n */\\n function upgradeToAndCall(address newImplementation, bytes calldata data) external payable ifAdmin {\\n _upgradeToAndCall(newImplementation, data, true);\\n }\\n\\n /**\\n * @dev Returns the current admin.\\n */\\n function _admin() internal view virtual returns (address) {\\n return _getAdmin();\\n }\\n\\n /**\\n * @dev Makes sure the admin cannot access the fallback function. See {Proxy-_beforeFallback}.\\n */\\n function _beforeFallback() internal virtual override {\\n require(msg.sender != _getAdmin(), \\\"TransparentUpgradeableProxy: admin cannot fallback to proxy target\\\");\\n super._beforeFallback();\\n }\\n}\\n\",\"keccak256\":\"0xa6a787e7a901af6511e19aa53e1a00352db215a011d2c7a438d0582dd5da76f9\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @dev This is a base contract to aid in writing upgradeable contracts, or any kind of contract that will be deployed\\n * behind a proxy. Since proxied contracts do not make use of a constructor, it's common to move constructor logic to an\\n * external initializer function, usually called `initialize`. It then becomes necessary to protect this initializer\\n * function so it can only be called once. The {initializer} modifier provided by this contract will have this effect.\\n *\\n * The initialization functions use a version number. Once a version number is used, it is consumed and cannot be\\n * reused. This mechanism prevents re-execution of each \\\"step\\\" but allows the creation of new initialization steps in\\n * case an upgrade adds a module that needs to be initialized.\\n *\\n * For example:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * contract MyToken is ERC20Upgradeable {\\n * function initialize() initializer public {\\n * __ERC20_init(\\\"MyToken\\\", \\\"MTK\\\");\\n * }\\n * }\\n * contract MyTokenV2 is MyToken, ERC20PermitUpgradeable {\\n * function initializeV2() reinitializer(2) public {\\n * __ERC20Permit_init(\\\"MyToken\\\");\\n * }\\n * }\\n * ```\\n *\\n * TIP: To avoid leaving the proxy in an uninitialized state, the initializer function should be called as early as\\n * possible by providing the encoded function call as the `_data` argument to {ERC1967Proxy-constructor}.\\n *\\n * CAUTION: When used with inheritance, manual care must be taken to not invoke a parent initializer twice, or to ensure\\n * that all initializers are idempotent. This is not verified automatically as constructors are by Solidity.\\n *\\n * [CAUTION]\\n * ====\\n * Avoid leaving a contract uninitialized.\\n *\\n * An uninitialized contract can be taken over by an attacker. This applies to both a proxy and its implementation\\n * contract, which may impact the proxy. To prevent the implementation contract from being used, you should invoke\\n * the {_disableInitializers} function in the constructor to automatically lock it when it is deployed:\\n *\\n * [.hljs-theme-light.nopadding]\\n * ```\\n * /// @custom:oz-upgrades-unsafe-allow constructor\\n * constructor() {\\n * _disableInitializers();\\n * }\\n * ```\\n * ====\\n */\\nabstract contract Initializable {\\n /**\\n * @dev Indicates that the contract has been initialized.\\n * @custom:oz-retyped-from bool\\n */\\n uint8 private _initialized;\\n\\n /**\\n * @dev Indicates that the contract is in the process of being initialized.\\n */\\n bool private _initializing;\\n\\n /**\\n * @dev Triggered when the contract has been initialized or reinitialized.\\n */\\n event Initialized(uint8 version);\\n\\n /**\\n * @dev A modifier that defines a protected initializer function that can be invoked at most once. In its scope,\\n * `onlyInitializing` functions can be used to initialize parent contracts. Equivalent to `reinitializer(1)`.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!Address.isContract(address(this)) && _initialized == 1),\\n \\\"Initializable: contract is already initialized\\\"\\n );\\n _initialized = 1;\\n if (isTopLevelCall) {\\n _initializing = true;\\n }\\n _;\\n if (isTopLevelCall) {\\n _initializing = false;\\n emit Initialized(1);\\n }\\n }\\n\\n /**\\n * @dev A modifier that defines a protected reinitializer function that can be invoked at most once, and only if the\\n * contract hasn't been initialized to a greater version before. In its scope, `onlyInitializing` functions can be\\n * used to initialize parent contracts.\\n *\\n * `initializer` is equivalent to `reinitializer(1)`, so a reinitializer may be used after the original\\n * initialization step. This is essential to configure modules that are added through upgrades and that require\\n * initialization.\\n *\\n * Note that versions can jump in increments greater than 1; this implies that if multiple reinitializers coexist in\\n * a contract, executing them in the right order is up to the developer or operator.\\n */\\n modifier reinitializer(uint8 version) {\\n require(!_initializing && _initialized < version, \\\"Initializable: contract is already initialized\\\");\\n _initialized = version;\\n _initializing = true;\\n _;\\n _initializing = false;\\n emit Initialized(version);\\n }\\n\\n /**\\n * @dev Modifier to protect an initialization function so that it can only be invoked by functions with the\\n * {initializer} and {reinitializer} modifiers, directly or indirectly.\\n */\\n modifier onlyInitializing() {\\n require(_initializing, \\\"Initializable: contract is not initializing\\\");\\n _;\\n }\\n\\n /**\\n * @dev Locks the contract, preventing any future reinitialization. This cannot be part of an initializer call.\\n * Calling this in the constructor of a contract will prevent that contract from being initialized or reinitialized\\n * to any version. It is recommended to use this to lock implementation contracts that are designed to be called\\n * through proxies.\\n */\\n function _disableInitializers() internal virtual {\\n require(!_initializing, \\\"Initializable: contract is initializing\\\");\\n if (_initialized < type(uint8).max) {\\n _initialized = type(uint8).max;\\n emit Initialized(type(uint8).max);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x2a21b14ff90012878752f230d3ffd5c3405e5938d06c97a7d89c0a64561d0d66\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/security/Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (security/Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which allows children to implement an emergency stop\\n * mechanism that can be triggered by an authorized account.\\n *\\n * This module is used through inheritance. It will make available the\\n * modifiers `whenNotPaused` and `whenPaused`, which can be applied to\\n * the functions of your contract. Note that they will not be pausable by\\n * simply including this module, only once the modifiers are put in place.\\n */\\nabstract contract Pausable is Context {\\n /**\\n * @dev Emitted when the pause is triggered by `account`.\\n */\\n event Paused(address account);\\n\\n /**\\n * @dev Emitted when the pause is lifted by `account`.\\n */\\n event Unpaused(address account);\\n\\n bool private _paused;\\n\\n /**\\n * @dev Initializes the contract in unpaused state.\\n */\\n constructor() {\\n _paused = false;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is not paused.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n modifier whenNotPaused() {\\n _requireNotPaused();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to make a function callable only when the contract is paused.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n modifier whenPaused() {\\n _requirePaused();\\n _;\\n }\\n\\n /**\\n * @dev Returns true if the contract is paused, and false otherwise.\\n */\\n function paused() public view virtual returns (bool) {\\n return _paused;\\n }\\n\\n /**\\n * @dev Throws if the contract is paused.\\n */\\n function _requireNotPaused() internal view virtual {\\n require(!paused(), \\\"Pausable: paused\\\");\\n }\\n\\n /**\\n * @dev Throws if the contract is not paused.\\n */\\n function _requirePaused() internal view virtual {\\n require(paused(), \\\"Pausable: not paused\\\");\\n }\\n\\n /**\\n * @dev Triggers stopped state.\\n *\\n * Requirements:\\n *\\n * - The contract must not be paused.\\n */\\n function _pause() internal virtual whenNotPaused {\\n _paused = true;\\n emit Paused(_msgSender());\\n }\\n\\n /**\\n * @dev Returns to normal state.\\n *\\n * Requirements:\\n *\\n * - The contract must be paused.\\n */\\n function _unpause() internal virtual whenPaused {\\n _paused = false;\\n emit Unpaused(_msgSender());\\n }\\n}\\n\",\"keccak256\":\"0x0849d93b16c9940beb286a7864ed02724b248b93e0d80ef6355af5ef15c64773\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/security/ReentrancyGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Contract module that helps prevent reentrant calls to a function.\\n *\\n * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier\\n * available, which can be applied to functions to make sure there are no nested\\n * (reentrant) calls to them.\\n *\\n * Note that because there is a single `nonReentrant` guard, functions marked as\\n * `nonReentrant` may not call one another. This can be worked around by making\\n * those functions `private`, and then adding `external` `nonReentrant` entry\\n * points to them.\\n *\\n * TIP: If you would like to learn more about reentrancy and alternative ways\\n * to protect against it, check out our blog post\\n * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].\\n */\\nabstract contract ReentrancyGuard {\\n // Booleans are more expensive than uint256 or any type that takes up a full\\n // word because each write operation emits an extra SLOAD to first read the\\n // slot's contents, replace the bits taken up by the boolean, and then write\\n // back. This is the compiler's defense against contract upgrades and\\n // pointer aliasing, and it cannot be disabled.\\n\\n // The values being non-zero value makes deployment a bit more expensive,\\n // but in exchange the refund on every call to nonReentrant will be lower in\\n // amount. Since refunds are capped to a percentage of the total\\n // transaction's gas, it is best to keep them low in cases like this one, to\\n // increase the likelihood of the full refund coming into effect.\\n uint256 private constant _NOT_ENTERED = 1;\\n uint256 private constant _ENTERED = 2;\\n\\n uint256 private _status;\\n\\n constructor() {\\n _status = _NOT_ENTERED;\\n }\\n\\n /**\\n * @dev Prevents a contract from calling itself, directly or indirectly.\\n * Calling a `nonReentrant` function from another `nonReentrant`\\n * function is not supported. It is possible to prevent this from happening\\n * by making the `nonReentrant` function external, and making it call a\\n * `private` function that does the actual work.\\n */\\n modifier nonReentrant() {\\n // On the first call to nonReentrant, _notEntered will be true\\n require(_status != _ENTERED, \\\"ReentrancyGuard: reentrant call\\\");\\n\\n // Any calls to nonReentrant after this point will fail\\n _status = _ENTERED;\\n\\n _;\\n\\n // By storing the original value once again, a refund is triggered (see\\n // https://eips.ethereum.org/EIPS/eip-2200)\\n _status = _NOT_ENTERED;\\n }\\n}\\n\",\"keccak256\":\"0x0e9621f60b2faabe65549f7ed0f24e8853a45c1b7990d47e8160e523683f3935\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/ERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/ERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC1155.sol\\\";\\nimport \\\"./IERC1155Receiver.sol\\\";\\nimport \\\"./extensions/IERC1155MetadataURI.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\nimport \\\"../../utils/Context.sol\\\";\\nimport \\\"../../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the basic standard multi-token.\\n * See https://eips.ethereum.org/EIPS/eip-1155\\n * Originally based on code by Enjin: https://github.com/enjin/erc-1155\\n *\\n * _Available since v3.1._\\n */\\ncontract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {\\n using Address for address;\\n\\n // Mapping from token ID to account balances\\n mapping(uint256 => mapping(address => uint256)) private _balances;\\n\\n // Mapping from account to operator approvals\\n mapping(address => mapping(address => bool)) private _operatorApprovals;\\n\\n // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json\\n string private _uri;\\n\\n /**\\n * @dev See {_setURI}.\\n */\\n constructor(string memory uri_) {\\n _setURI(uri_);\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\\n return\\n interfaceId == type(IERC1155).interfaceId ||\\n interfaceId == type(IERC1155MetadataURI).interfaceId ||\\n super.supportsInterface(interfaceId);\\n }\\n\\n /**\\n * @dev See {IERC1155MetadataURI-uri}.\\n *\\n * This implementation returns the same URI for *all* token types. It relies\\n * on the token type ID substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * Clients calling this function must replace the `\\\\{id\\\\}` substring with the\\n * actual token type ID.\\n */\\n function uri(uint256) public view virtual override returns (string memory) {\\n return _uri;\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {\\n require(account != address(0), \\\"ERC1155: address zero is not a valid owner\\\");\\n return _balances[id][account];\\n }\\n\\n /**\\n * @dev See {IERC1155-balanceOfBatch}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] memory accounts, uint256[] memory ids)\\n public\\n view\\n virtual\\n override\\n returns (uint256[] memory)\\n {\\n require(accounts.length == ids.length, \\\"ERC1155: accounts and ids length mismatch\\\");\\n\\n uint256[] memory batchBalances = new uint256[](accounts.length);\\n\\n for (uint256 i = 0; i < accounts.length; ++i) {\\n batchBalances[i] = balanceOf(accounts[i], ids[i]);\\n }\\n\\n return batchBalances;\\n }\\n\\n /**\\n * @dev See {IERC1155-setApprovalForAll}.\\n */\\n function setApprovalForAll(address operator, bool approved) public virtual override {\\n _setApprovalForAll(_msgSender(), operator, approved);\\n }\\n\\n /**\\n * @dev See {IERC1155-isApprovedForAll}.\\n */\\n function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {\\n return _operatorApprovals[account][operator];\\n }\\n\\n /**\\n * @dev See {IERC1155-safeTransferFrom}.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n _safeTransferFrom(from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev See {IERC1155-safeBatchTransferFrom}.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) public virtual override {\\n require(\\n from == _msgSender() || isApprovedForAll(from, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n _safeBatchTransferFrom(from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n\\n emit TransferSingle(operator, from, to, id, amount);\\n\\n _afterTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n require(to != address(0), \\\"ERC1155: transfer to the zero address\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; ++i) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: insufficient balance for transfer\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n _balances[id][to] += amount;\\n }\\n\\n emit TransferBatch(operator, from, to, ids, amounts);\\n\\n _afterTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Sets a new URI for all token types, by relying on the token type ID\\n * substitution mechanism\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].\\n *\\n * By this mechanism, any occurrence of the `\\\\{id\\\\}` substring in either the\\n * URI or any of the amounts in the JSON file at said URI will be replaced by\\n * clients with the token type ID.\\n *\\n * For example, the `https://token-cdn-domain/\\\\{id\\\\}.json` URI would be\\n * interpreted by clients as\\n * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`\\n * for token type ID 0x4cce0.\\n *\\n * See {uri}.\\n *\\n * Because these URIs cannot be meaningfully represented by the {URI} event,\\n * this function emits no events.\\n */\\n function _setURI(string memory newuri) internal virtual {\\n _uri = newuri;\\n }\\n\\n /**\\n * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function _mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _balances[id][to] += amount;\\n emit TransferSingle(operator, address(0), to, id, amount);\\n\\n _afterTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function _mintBatch(\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {\\n require(to != address(0), \\\"ERC1155: mint to the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n _balances[ids[i]][to] += amounts[i];\\n }\\n\\n emit TransferBatch(operator, address(0), to, ids, amounts);\\n\\n _afterTokenTransfer(operator, address(0), to, ids, amounts, data);\\n\\n _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Destroys `amount` tokens of token type `id` from `from`\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `from` must have at least `amount` tokens of token type `id`.\\n */\\n function _burn(\\n address from,\\n uint256 id,\\n uint256 amount\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n\\n address operator = _msgSender();\\n uint256[] memory ids = _asSingletonArray(id);\\n uint256[] memory amounts = _asSingletonArray(amount);\\n\\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n\\n emit TransferSingle(operator, from, address(0), id, amount);\\n\\n _afterTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n */\\n function _burnBatch(\\n address from,\\n uint256[] memory ids,\\n uint256[] memory amounts\\n ) internal virtual {\\n require(from != address(0), \\\"ERC1155: burn from the zero address\\\");\\n require(ids.length == amounts.length, \\\"ERC1155: ids and amounts length mismatch\\\");\\n\\n address operator = _msgSender();\\n\\n _beforeTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n\\n for (uint256 i = 0; i < ids.length; i++) {\\n uint256 id = ids[i];\\n uint256 amount = amounts[i];\\n\\n uint256 fromBalance = _balances[id][from];\\n require(fromBalance >= amount, \\\"ERC1155: burn amount exceeds balance\\\");\\n unchecked {\\n _balances[id][from] = fromBalance - amount;\\n }\\n }\\n\\n emit TransferBatch(operator, from, address(0), ids, amounts);\\n\\n _afterTokenTransfer(operator, from, address(0), ids, amounts, \\\"\\\");\\n }\\n\\n /**\\n * @dev Approve `operator` to operate on all of `owner` tokens\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function _setApprovalForAll(\\n address owner,\\n address operator,\\n bool approved\\n ) internal virtual {\\n require(owner != operator, \\\"ERC1155: setting approval status for self\\\");\\n _operatorApprovals[owner][operator] = approved;\\n emit ApprovalForAll(owner, operator, approved);\\n }\\n\\n /**\\n * @dev Hook that is called before any token transfer. This includes minting\\n * and burning, as well as batched variants.\\n *\\n * The same hook is called on both single and batched variants. For single\\n * transfers, the length of the `ids` and `amounts` arrays will be 1.\\n *\\n * Calling conditions (for each `id` and `amount` pair):\\n *\\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * of token type `id` will be transferred to `to`.\\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\\n * for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\\n * will be burned.\\n * - `from` and `to` are never both zero.\\n * - `ids` and `amounts` have the same, non-zero length.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {}\\n\\n /**\\n * @dev Hook that is called after any token transfer. This includes minting\\n * and burning, as well as batched variants.\\n *\\n * The same hook is called on both single and batched variants. For single\\n * transfers, the length of the `id` and `amount` arrays will be 1.\\n *\\n * Calling conditions (for each `id` and `amount` pair):\\n *\\n * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens\\n * of token type `id` will be transferred to `to`.\\n * - When `from` is zero, `amount` tokens of token type `id` will be minted\\n * for `to`.\\n * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`\\n * will be burned.\\n * - `from` and `to` are never both zero.\\n * - `ids` and `amounts` have the same, non-zero length.\\n *\\n * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].\\n */\\n function _afterTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual {}\\n\\n function _doSafeTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {\\n if (response != IERC1155Receiver.onERC1155Received.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _doSafeBatchTransferAcceptanceCheck(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) private {\\n if (to.isContract()) {\\n try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (\\n bytes4 response\\n ) {\\n if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {\\n revert(\\\"ERC1155: ERC1155Receiver rejected tokens\\\");\\n }\\n } catch Error(string memory reason) {\\n revert(reason);\\n } catch {\\n revert(\\\"ERC1155: transfer to non ERC1155Receiver implementer\\\");\\n }\\n }\\n }\\n\\n function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {\\n uint256[] memory array = new uint256[](1);\\n array[0] = element;\\n\\n return array;\\n }\\n}\\n\",\"keccak256\":\"0x447a21c87433c0f11252912313a96f3454629ef88cca7a4eefbb283b3ec409f9\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/IERC1155.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC1155 compliant contract, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-1155[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155 is IERC165 {\\n /**\\n * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.\\n */\\n event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);\\n\\n /**\\n * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all\\n * transfers.\\n */\\n event TransferBatch(\\n address indexed operator,\\n address indexed from,\\n address indexed to,\\n uint256[] ids,\\n uint256[] values\\n );\\n\\n /**\\n * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to\\n * `approved`.\\n */\\n event ApprovalForAll(address indexed account, address indexed operator, bool approved);\\n\\n /**\\n * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.\\n *\\n * If an {URI} event was emitted for `id`, the standard\\n * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value\\n * returned by {IERC1155MetadataURI-uri}.\\n */\\n event URI(string value, uint256 indexed id);\\n\\n /**\\n * @dev Returns the amount of tokens of token type `id` owned by `account`.\\n *\\n * Requirements:\\n *\\n * - `account` cannot be the zero address.\\n */\\n function balanceOf(address account, uint256 id) external view returns (uint256);\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.\\n *\\n * Requirements:\\n *\\n * - `accounts` and `ids` must have the same length.\\n */\\n function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)\\n external\\n view\\n returns (uint256[] memory);\\n\\n /**\\n * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,\\n *\\n * Emits an {ApprovalForAll} event.\\n *\\n * Requirements:\\n *\\n * - `operator` cannot be the caller.\\n */\\n function setApprovalForAll(address operator, bool approved) external;\\n\\n /**\\n * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.\\n *\\n * See {setApprovalForAll}.\\n */\\n function isApprovedForAll(address account, address operator) external view returns (bool);\\n\\n /**\\n * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.\\n *\\n * Emits a {TransferSingle} event.\\n *\\n * Requirements:\\n *\\n * - `to` cannot be the zero address.\\n * - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}.\\n * - `from` must have a balance of tokens of type `id` of at least `amount`.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the\\n * acceptance magic value.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.\\n *\\n * Emits a {TransferBatch} event.\\n *\\n * Requirements:\\n *\\n * - `ids` and `amounts` must have the same length.\\n * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the\\n * acceptance magic value.\\n */\\n function safeBatchTransferFrom(\\n address from,\\n address to,\\n uint256[] calldata ids,\\n uint256[] calldata amounts,\\n bytes calldata data\\n ) external;\\n}\\n\",\"keccak256\":\"0x6392f2cfe3a5ee802227fe7a2dfd47096d881aec89bddd214b35c5b46d3cd941\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/IERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/IERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\ninterface IERC1155Receiver is IERC165 {\\n /**\\n * @dev Handles the receipt of a single ERC1155 token type. This function is\\n * called at the end of a `safeTransferFrom` after the balance has been updated.\\n *\\n * NOTE: To accept the transfer, this must return\\n * `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))`\\n * (i.e. 0xf23a6e61, or its own function selector).\\n *\\n * @param operator The address which initiated the transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param id The ID of the token being transferred\\n * @param value The amount of tokens being transferred\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155Received(address,address,uint256,uint256,bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155Received(\\n address operator,\\n address from,\\n uint256 id,\\n uint256 value,\\n bytes calldata data\\n ) external returns (bytes4);\\n\\n /**\\n * @dev Handles the receipt of a multiple ERC1155 token types. This function\\n * is called at the end of a `safeBatchTransferFrom` after the balances have\\n * been updated.\\n *\\n * NOTE: To accept the transfer(s), this must return\\n * `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))`\\n * (i.e. 0xbc197c81, or its own function selector).\\n *\\n * @param operator The address which initiated the batch transfer (i.e. msg.sender)\\n * @param from The address which previously owned the token\\n * @param ids An array containing ids of each token being transferred (order and length must match values array)\\n * @param values An array containing amounts of each token being transferred (order and length must match ids array)\\n * @param data Additional data with no specified format\\n * @return `bytes4(keccak256(\\\"onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)\\\"))` if transfer is allowed\\n */\\n function onERC1155BatchReceived(\\n address operator,\\n address from,\\n uint256[] calldata ids,\\n uint256[] calldata values,\\n bytes calldata data\\n ) external returns (bytes4);\\n}\\n\",\"keccak256\":\"0xeb373f1fdc7b755c6a750123a9b9e3a8a02c1470042fd6505d875000a80bde0b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/ERC1155Burnable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC1155/extensions/ERC1155Burnable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\n\\n/**\\n * @dev Extension of {ERC1155} that allows token holders to destroy both their\\n * own tokens and those that they have been approved to use.\\n *\\n * _Available since v3.1._\\n */\\nabstract contract ERC1155Burnable is ERC1155 {\\n function burn(\\n address account,\\n uint256 id,\\n uint256 value\\n ) public virtual {\\n require(\\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n\\n _burn(account, id, value);\\n }\\n\\n function burnBatch(\\n address account,\\n uint256[] memory ids,\\n uint256[] memory values\\n ) public virtual {\\n require(\\n account == _msgSender() || isApprovedForAll(account, _msgSender()),\\n \\\"ERC1155: caller is not token owner nor approved\\\"\\n );\\n\\n _burnBatch(account, ids, values);\\n }\\n}\\n\",\"keccak256\":\"0xb11d1ade7146ac3da122e1f387ea82b0bd385d50823946c3f967dbffef3e9f4f\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/ERC1155Pausable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Pausable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\nimport \\\"../../../security/Pausable.sol\\\";\\n\\n/**\\n * @dev ERC1155 token with pausable token transfers, minting and burning.\\n *\\n * Useful for scenarios such as preventing trades until the end of an evaluation\\n * period, or having an emergency switch for freezing all token transfers in the\\n * event of a large bug.\\n *\\n * _Available since v3.1._\\n */\\nabstract contract ERC1155Pausable is ERC1155, Pausable {\\n /**\\n * @dev See {ERC1155-_beforeTokenTransfer}.\\n *\\n * Requirements:\\n *\\n * - the contract must not be paused.\\n */\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual override {\\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n\\n require(!paused(), \\\"ERC1155Pausable: token transfer while paused\\\");\\n }\\n}\\n\",\"keccak256\":\"0xdad22b949de979bb2ad9001c044b2aeaacf8a25e3de09ed6f022a9469f936d5b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC1155.sol\\\";\\n\\n/**\\n * @dev Interface of the optional ERC1155MetadataExtension interface, as defined\\n * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].\\n *\\n * _Available since v3.1._\\n */\\ninterface IERC1155MetadataURI is IERC1155 {\\n /**\\n * @dev Returns the URI for token type `id`.\\n *\\n * If the `\\\\{id\\\\}` substring is present in the URI, it must be replaced by\\n * clients with the actual token type ID.\\n */\\n function uri(uint256 id) external view returns (string memory);\\n}\\n\",\"keccak256\":\"0xa66d18b9a85458d28fc3304717964502ae36f7f8a2ff35bc83f6f85d74b03574\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/presets/ERC1155PresetMinterPauser.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../ERC1155.sol\\\";\\nimport \\\"../extensions/ERC1155Burnable.sol\\\";\\nimport \\\"../extensions/ERC1155Pausable.sol\\\";\\nimport \\\"../../../access/AccessControlEnumerable.sol\\\";\\nimport \\\"../../../utils/Context.sol\\\";\\n\\n/**\\n * @dev {ERC1155} token, including:\\n *\\n * - ability for holders to burn (destroy) their tokens\\n * - a minter role that allows for token minting (creation)\\n * - a pauser role that allows to stop all token transfers\\n *\\n * This contract uses {AccessControl} to lock permissioned functions using the\\n * different roles - head to its documentation for details.\\n *\\n * The account that deploys the contract will be granted the minter and pauser\\n * roles, as well as the default admin role, which will let it grant both minter\\n * and pauser roles to other accounts.\\n *\\n * _Deprecated in favor of https://wizard.openzeppelin.com/[Contracts Wizard]._\\n */\\ncontract ERC1155PresetMinterPauser is Context, AccessControlEnumerable, ERC1155Burnable, ERC1155Pausable {\\n bytes32 public constant MINTER_ROLE = keccak256(\\\"MINTER_ROLE\\\");\\n bytes32 public constant PAUSER_ROLE = keccak256(\\\"PAUSER_ROLE\\\");\\n\\n /**\\n * @dev Grants `DEFAULT_ADMIN_ROLE`, `MINTER_ROLE`, and `PAUSER_ROLE` to the account that\\n * deploys the contract.\\n */\\n constructor(string memory uri) ERC1155(uri) {\\n _setupRole(DEFAULT_ADMIN_ROLE, _msgSender());\\n\\n _setupRole(MINTER_ROLE, _msgSender());\\n _setupRole(PAUSER_ROLE, _msgSender());\\n }\\n\\n /**\\n * @dev Creates `amount` new tokens for `to`, of token type `id`.\\n *\\n * See {ERC1155-_mint}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `MINTER_ROLE`.\\n */\\n function mint(\\n address to,\\n uint256 id,\\n uint256 amount,\\n bytes memory data\\n ) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have minter role to mint\\\");\\n\\n _mint(to, id, amount, data);\\n }\\n\\n /**\\n * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] variant of {mint}.\\n */\\n function mintBatch(\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) public virtual {\\n require(hasRole(MINTER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have minter role to mint\\\");\\n\\n _mintBatch(to, ids, amounts, data);\\n }\\n\\n /**\\n * @dev Pauses all token transfers.\\n *\\n * See {ERC1155Pausable} and {Pausable-_pause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function pause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have pauser role to pause\\\");\\n _pause();\\n }\\n\\n /**\\n * @dev Unpauses all token transfers.\\n *\\n * See {ERC1155Pausable} and {Pausable-_unpause}.\\n *\\n * Requirements:\\n *\\n * - the caller must have the `PAUSER_ROLE`.\\n */\\n function unpause() public virtual {\\n require(hasRole(PAUSER_ROLE, _msgSender()), \\\"ERC1155PresetMinterPauser: must have pauser role to unpause\\\");\\n _unpause();\\n }\\n\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId)\\n public\\n view\\n virtual\\n override(AccessControlEnumerable, ERC1155)\\n returns (bool)\\n {\\n return super.supportsInterface(interfaceId);\\n }\\n\\n function _beforeTokenTransfer(\\n address operator,\\n address from,\\n address to,\\n uint256[] memory ids,\\n uint256[] memory amounts,\\n bytes memory data\\n ) internal virtual override(ERC1155, ERC1155Pausable) {\\n super._beforeTokenTransfer(operator, from, to, ids, amounts, data);\\n }\\n}\\n\",\"keccak256\":\"0x775e248004d21e0666740534a732daa9f17ceeee660ded876829e98a3a62b657\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Holder.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC1155/utils/ERC1155Holder.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./ERC1155Receiver.sol\\\";\\n\\n/**\\n * Simple implementation of `ERC1155Receiver` that will allow a contract to hold ERC1155 tokens.\\n *\\n * IMPORTANT: When inheriting this contract, you must include a way to use the received tokens, otherwise they will be\\n * stuck.\\n *\\n * @dev _Available since v3.1._\\n */\\ncontract ERC1155Holder is ERC1155Receiver {\\n function onERC1155Received(\\n address,\\n address,\\n uint256,\\n uint256,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155Received.selector;\\n }\\n\\n function onERC1155BatchReceived(\\n address,\\n address,\\n uint256[] memory,\\n uint256[] memory,\\n bytes memory\\n ) public virtual override returns (bytes4) {\\n return this.onERC1155BatchReceived.selector;\\n }\\n}\\n\",\"keccak256\":\"0x2e024ca51ce5abe16c0d34e6992a1104f356e2244eb4ccbec970435e8b3405e3\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC1155/utils/ERC1155Receiver.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC1155/utils/ERC1155Receiver.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC1155Receiver.sol\\\";\\nimport \\\"../../../utils/introspection/ERC165.sol\\\";\\n\\n/**\\n * @dev _Available since v3.1._\\n */\\nabstract contract ERC1155Receiver is ERC165, IERC1155Receiver {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {\\n return interfaceId == type(IERC1155Receiver).interfaceId || super.supportsInterface(interfaceId);\\n }\\n}\\n\",\"keccak256\":\"0x3dd5e1a66a56f30302108a1da97d677a42b1daa60e503696b2bcbbf3e4c95bcb\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC20/IERC20.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/IERC20.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC20 standard as defined in the EIP.\\n */\\ninterface IERC20 {\\n /**\\n * @dev Emitted when `value` tokens are moved from one account (`from`) to\\n * another (`to`).\\n *\\n * Note that `value` may be zero.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 value);\\n\\n /**\\n * @dev Emitted when the allowance of a `spender` for an `owner` is set by\\n * a call to {approve}. `value` is the new allowance.\\n */\\n event Approval(address indexed owner, address indexed spender, uint256 value);\\n\\n /**\\n * @dev Returns the amount of tokens in existence.\\n */\\n function totalSupply() external view returns (uint256);\\n\\n /**\\n * @dev Returns the amount of tokens owned by `account`.\\n */\\n function balanceOf(address account) external view returns (uint256);\\n\\n /**\\n * @dev Moves `amount` tokens from the caller's account to `to`.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transfer(address to, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Returns the remaining number of tokens that `spender` will be\\n * allowed to spend on behalf of `owner` through {transferFrom}. This is\\n * zero by default.\\n *\\n * This value changes when {approve} or {transferFrom} are called.\\n */\\n function allowance(address owner, address spender) external view returns (uint256);\\n\\n /**\\n * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * IMPORTANT: Beware that changing an allowance with this method brings the risk\\n * that someone may use both the old and the new allowance by unfortunate\\n * transaction ordering. One possible solution to mitigate this race\\n * condition is to first reduce the spender's allowance to 0 and set the\\n * desired value afterwards:\\n * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address spender, uint256 amount) external returns (bool);\\n\\n /**\\n * @dev Moves `amount` tokens from `from` to `to` using the\\n * allowance mechanism. `amount` is then deducted from the caller's\\n * allowance.\\n *\\n * Returns a boolean value indicating whether the operation succeeded.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 amount\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x9750c6b834f7b43000631af5cc30001c5f547b3ceb3635488f140f60e897ea6b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/token/ERC721/IERC721.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @dev Required interface of an ERC721 compliant contract.\\n */\\ninterface IERC721 is IERC165 {\\n /**\\n * @dev Emitted when `tokenId` token is transferred from `from` to `to`.\\n */\\n event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.\\n */\\n event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);\\n\\n /**\\n * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.\\n */\\n event ApprovalForAll(address indexed owner, address indexed operator, bool approved);\\n\\n /**\\n * @dev Returns the number of tokens in ``owner``'s account.\\n */\\n function balanceOf(address owner) external view returns (uint256 balance);\\n\\n /**\\n * @dev Returns the owner of the `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function ownerOf(uint256 tokenId) external view returns (address owner);\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId,\\n bytes calldata data\\n ) external;\\n\\n /**\\n * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients\\n * are aware of the ERC721 protocol to prevent tokens from being forever locked.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must exist and be owned by `from`.\\n * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.\\n * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.\\n *\\n * Emits a {Transfer} event.\\n */\\n function safeTransferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Transfers `tokenId` token from `from` to `to`.\\n *\\n * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.\\n *\\n * Requirements:\\n *\\n * - `from` cannot be the zero address.\\n * - `to` cannot be the zero address.\\n * - `tokenId` token must be owned by `from`.\\n * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.\\n *\\n * Emits a {Transfer} event.\\n */\\n function transferFrom(\\n address from,\\n address to,\\n uint256 tokenId\\n ) external;\\n\\n /**\\n * @dev Gives permission to `to` to transfer `tokenId` token to another account.\\n * The approval is cleared when the token is transferred.\\n *\\n * Only a single account can be approved at a time, so approving the zero address clears previous approvals.\\n *\\n * Requirements:\\n *\\n * - The caller must own the token or be an approved operator.\\n * - `tokenId` must exist.\\n *\\n * Emits an {Approval} event.\\n */\\n function approve(address to, uint256 tokenId) external;\\n\\n /**\\n * @dev Approve or remove `operator` as an operator for the caller.\\n * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.\\n *\\n * Requirements:\\n *\\n * - The `operator` cannot be the caller.\\n *\\n * Emits an {ApprovalForAll} event.\\n */\\n function setApprovalForAll(address operator, bool _approved) external;\\n\\n /**\\n * @dev Returns the account approved for `tokenId` token.\\n *\\n * Requirements:\\n *\\n * - `tokenId` must exist.\\n */\\n function getApproved(uint256 tokenId) external view returns (address operator);\\n\\n /**\\n * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.\\n *\\n * See {setApprovalForAll}\\n */\\n function isApprovedForAll(address owner, address operator) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xed6a749c5373af398105ce6ee3ac4763aa450ea7285d268c85d9eeca809cdb1f\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCall(target, data, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n require(isContract(target), \\\"Address: static call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(isContract(target), \\\"Address: delegate call to non-contract\\\");\\n\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResult(success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xd6153ce99bcdcce22b124f755e72553295be6abcd63804cfdffceb188b8bef10\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n}\\n\",\"keccak256\":\"0xe2e337e6dde9ef6b680e07338c493ebea1b5fd09b43424112868e9cc1706bca7\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/StorageSlot.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/StorageSlot.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for reading and writing primitive types to specific storage slots.\\n *\\n * Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.\\n * This library helps with reading and writing to such slots without the need for inline assembly.\\n *\\n * The functions in this library return Slot structs that contain a `value` member that can be used to read or write.\\n *\\n * Example usage to set ERC1967 implementation slot:\\n * ```\\n * contract ERC1967 {\\n * bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;\\n *\\n * function _getImplementation() internal view returns (address) {\\n * return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;\\n * }\\n *\\n * function _setImplementation(address newImplementation) internal {\\n * require(Address.isContract(newImplementation), \\\"ERC1967: new implementation is not a contract\\\");\\n * StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;\\n * }\\n * }\\n * ```\\n *\\n * _Available since v4.1 for `address`, `bool`, `bytes32`, and `uint256`._\\n */\\nlibrary StorageSlot {\\n struct AddressSlot {\\n address value;\\n }\\n\\n struct BooleanSlot {\\n bool value;\\n }\\n\\n struct Bytes32Slot {\\n bytes32 value;\\n }\\n\\n struct Uint256Slot {\\n uint256 value;\\n }\\n\\n /**\\n * @dev Returns an `AddressSlot` with member `value` located at `slot`.\\n */\\n function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `BooleanSlot` with member `value` located at `slot`.\\n */\\n function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Bytes32Slot` with member `value` located at `slot`.\\n */\\n function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n\\n /**\\n * @dev Returns an `Uint256Slot` with member `value` located at `slot`.\\n */\\n function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {\\n /// @solidity memory-safe-assembly\\n assembly {\\n r.slot := slot\\n }\\n }\\n}\\n\",\"keccak256\":\"0xd5c50c54bf02740ebd122ff06832546cb5fa84486d52695a9ccfd11666e0c81d\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/Strings.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary Strings {\\n bytes16 private constant _HEX_SYMBOLS = \\\"0123456789abcdef\\\";\\n uint8 private constant _ADDRESS_LENGTH = 20;\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` decimal representation.\\n */\\n function toString(uint256 value) internal pure returns (string memory) {\\n // Inspired by OraclizeAPI's implementation - MIT licence\\n // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol\\n\\n if (value == 0) {\\n return \\\"0\\\";\\n }\\n uint256 temp = value;\\n uint256 digits;\\n while (temp != 0) {\\n digits++;\\n temp /= 10;\\n }\\n bytes memory buffer = new bytes(digits);\\n while (value != 0) {\\n digits -= 1;\\n buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));\\n value /= 10;\\n }\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.\\n */\\n function toHexString(uint256 value) internal pure returns (string memory) {\\n if (value == 0) {\\n return \\\"0x00\\\";\\n }\\n uint256 temp = value;\\n uint256 length = 0;\\n while (temp != 0) {\\n length++;\\n temp >>= 8;\\n }\\n return toHexString(value, length);\\n }\\n\\n /**\\n * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.\\n */\\n function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {\\n bytes memory buffer = new bytes(2 * length + 2);\\n buffer[0] = \\\"0\\\";\\n buffer[1] = \\\"x\\\";\\n for (uint256 i = 2 * length + 1; i > 1; --i) {\\n buffer[i] = _HEX_SYMBOLS[value & 0xf];\\n value >>= 4;\\n }\\n require(value == 0, \\\"Strings: hex length insufficient\\\");\\n return string(buffer);\\n }\\n\\n /**\\n * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.\\n */\\n function toHexString(address addr) internal pure returns (string memory) {\\n return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);\\n }\\n}\\n\",\"keccak256\":\"0xaf159a8b1923ad2a26d516089bceca9bdeaeacd04be50983ea00ba63070f08a3\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/cryptography/ECDSA.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.3) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../Strings.sol\\\";\\n\\n/**\\n * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.\\n *\\n * These functions can be used to verify that a message was signed by the holder\\n * of the private keys of a given address.\\n */\\nlibrary ECDSA {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV\\n }\\n\\n function _throwError(RecoverError error) private pure {\\n if (error == RecoverError.NoError) {\\n return; // no error: do nothing\\n } else if (error == RecoverError.InvalidSignature) {\\n revert(\\\"ECDSA: invalid signature\\\");\\n } else if (error == RecoverError.InvalidSignatureLength) {\\n revert(\\\"ECDSA: invalid signature length\\\");\\n } else if (error == RecoverError.InvalidSignatureS) {\\n revert(\\\"ECDSA: invalid signature 's' value\\\");\\n } else if (error == RecoverError.InvalidSignatureV) {\\n revert(\\\"ECDSA: invalid signature 'v' value\\\");\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature` or error string. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n *\\n * Documentation for signature generation:\\n * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]\\n * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {\\n if (signature.length == 65) {\\n bytes32 r;\\n bytes32 s;\\n uint8 v;\\n // ecrecover takes the signature parameters, and the only way to get them\\n // currently is to use assembly.\\n /// @solidity memory-safe-assembly\\n assembly {\\n r := mload(add(signature, 0x20))\\n s := mload(add(signature, 0x40))\\n v := byte(0, mload(add(signature, 0x60)))\\n }\\n return tryRecover(hash, v, r, s);\\n } else {\\n return (address(0), RecoverError.InvalidSignatureLength);\\n }\\n }\\n\\n /**\\n * @dev Returns the address that signed a hashed message (`hash`) with\\n * `signature`. This address can then be used for verification purposes.\\n *\\n * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:\\n * this function rejects them by requiring the `s` value to be in the lower\\n * half order, and the `v` value to be either 27 or 28.\\n *\\n * IMPORTANT: `hash` _must_ be the result of a hash operation for the\\n * verification to be secure: it is possible to craft signatures that\\n * recover to arbitrary addresses for non-hashed data. A safe way to ensure\\n * this is by receiving a hash of the original message (which may otherwise\\n * be too long), and then calling {toEthSignedMessageHash} on it.\\n */\\n function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, signature);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.\\n *\\n * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address, RecoverError) {\\n bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);\\n uint8 v = uint8((uint256(vs) >> 255) + 27);\\n return tryRecover(hash, v, r, s);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.\\n *\\n * _Available since v4.2._\\n */\\n function recover(\\n bytes32 hash,\\n bytes32 r,\\n bytes32 vs\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, r, vs);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-tryRecover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n *\\n * _Available since v4.3._\\n */\\n function tryRecover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address, RecoverError) {\\n // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature\\n // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines\\n // the valid range for s in (301): 0 < s < secp256k1n \\u00f7 2 + 1, and for v in (302): v \\u2208 {27, 28}. Most\\n // signatures from current libraries generate a unique signature with an s-value in the lower half order.\\n //\\n // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value\\n // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or\\n // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept\\n // these malleable signatures as well.\\n if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {\\n return (address(0), RecoverError.InvalidSignatureS);\\n }\\n if (v != 27 && v != 28) {\\n return (address(0), RecoverError.InvalidSignatureV);\\n }\\n\\n // If the signature is valid (and not malleable), return the signer address\\n address signer = ecrecover(hash, v, r, s);\\n if (signer == address(0)) {\\n return (address(0), RecoverError.InvalidSignature);\\n }\\n\\n return (signer, RecoverError.NoError);\\n }\\n\\n /**\\n * @dev Overload of {ECDSA-recover} that receives the `v`,\\n * `r` and `s` signature fields separately.\\n */\\n function recover(\\n bytes32 hash,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) internal pure returns (address) {\\n (address recovered, RecoverError error) = tryRecover(hash, v, r, s);\\n _throwError(error);\\n return recovered;\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from a `hash`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {\\n // 32 is the length in bytes of hash,\\n // enforced by the type signature above\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n32\\\", hash));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Message, created from `s`. This\\n * produces hash corresponding to the one signed with the\\n * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]\\n * JSON-RPC method as part of EIP-191.\\n *\\n * See {recover}.\\n */\\n function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19Ethereum Signed Message:\\\\n\\\", Strings.toString(s.length), s));\\n }\\n\\n /**\\n * @dev Returns an Ethereum Signed Typed Data, created from a\\n * `domainSeparator` and a `structHash`. This produces hash corresponding\\n * to the one signed with the\\n * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]\\n * JSON-RPC method as part of EIP-712.\\n *\\n * See {recover}.\\n */\\n function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {\\n return keccak256(abi.encodePacked(\\\"\\\\x19\\\\x01\\\", domainSeparator, structHash));\\n }\\n}\\n\",\"keccak256\":\"0xdb7f5c28fc61cda0bd8ab60ce288e206b791643bcd3ba464a70cbec18895a2f5\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/introspection/ERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IERC165.sol\\\";\\n\\n/**\\n * @dev Implementation of the {IERC165} interface.\\n *\\n * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check\\n * for the additional interface id that will be supported. For example:\\n *\\n * ```solidity\\n * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n * return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);\\n * }\\n * ```\\n *\\n * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.\\n */\\nabstract contract ERC165 is IERC165 {\\n /**\\n * @dev See {IERC165-supportsInterface}.\\n */\\n function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {\\n return interfaceId == type(IERC165).interfaceId;\\n }\\n}\\n\",\"keccak256\":\"0xd10975de010d89fd1c78dc5e8a9a7e7f496198085c151648f20cba166b32582b\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/introspection/IERC165.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Interface of the ERC165 standard, as defined in the\\n * https://eips.ethereum.org/EIPS/eip-165[EIP].\\n *\\n * Implementers can declare support of contract interfaces, which can then be\\n * queried by others ({ERC165Checker}).\\n *\\n * For an implementation, see {ERC165}.\\n */\\ninterface IERC165 {\\n /**\\n * @dev Returns true if this contract implements the interface defined by\\n * `interfaceId`. See the corresponding\\n * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]\\n * to learn more about how these ids are created.\\n *\\n * This function call must use less than 30 000 gas.\\n */\\n function supportsInterface(bytes4 interfaceId) external view returns (bool);\\n}\\n\",\"keccak256\":\"0x447a5f3ddc18419d41ff92b3773fb86471b1db25773e07f877f548918a185bf1\",\"license\":\"MIT\"},\"lib/openzeppelin-contracts/contracts/utils/structs/EnumerableSet.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (utils/structs/EnumerableSet.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Library for managing\\n * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive\\n * types.\\n *\\n * Sets have the following properties:\\n *\\n * - Elements are added, removed, and checked for existence in constant time\\n * (O(1)).\\n * - Elements are enumerated in O(n). No guarantees are made on the ordering.\\n *\\n * ```\\n * contract Example {\\n * // Add the library methods\\n * using EnumerableSet for EnumerableSet.AddressSet;\\n *\\n * // Declare a set state variable\\n * EnumerableSet.AddressSet private mySet;\\n * }\\n * ```\\n *\\n * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)\\n * and `uint256` (`UintSet`) are supported.\\n *\\n * [WARNING]\\n * ====\\n * Trying to delete such a structure from storage will likely result in data corruption, rendering the structure unusable.\\n * See https://github.com/ethereum/solidity/pull/11843[ethereum/solidity#11843] for more info.\\n *\\n * In order to clean an EnumerableSet, you can either remove all elements one by one or create a fresh instance using an array of EnumerableSet.\\n * ====\\n */\\nlibrary EnumerableSet {\\n // To implement this library for multiple types with as little code\\n // repetition as possible, we write it in terms of a generic Set type with\\n // bytes32 values.\\n // The Set implementation uses private functions, and user-facing\\n // implementations (such as AddressSet) are just wrappers around the\\n // underlying Set.\\n // This means that we can only create new EnumerableSets for types that fit\\n // in bytes32.\\n\\n struct Set {\\n // Storage of set values\\n bytes32[] _values;\\n // Position of the value in the `values` array, plus 1 because index 0\\n // means a value is not in the set.\\n mapping(bytes32 => uint256) _indexes;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function _add(Set storage set, bytes32 value) private returns (bool) {\\n if (!_contains(set, value)) {\\n set._values.push(value);\\n // The value is stored at length-1, but we add 1 to all indexes\\n // and use 0 as a sentinel value\\n set._indexes[value] = set._values.length;\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function _remove(Set storage set, bytes32 value) private returns (bool) {\\n // We read and store the value's index to prevent multiple reads from the same storage slot\\n uint256 valueIndex = set._indexes[value];\\n\\n if (valueIndex != 0) {\\n // Equivalent to contains(set, value)\\n // To delete an element from the _values array in O(1), we swap the element to delete with the last one in\\n // the array, and then remove the last element (sometimes called as 'swap and pop').\\n // This modifies the order of the array, as noted in {at}.\\n\\n uint256 toDeleteIndex = valueIndex - 1;\\n uint256 lastIndex = set._values.length - 1;\\n\\n if (lastIndex != toDeleteIndex) {\\n bytes32 lastValue = set._values[lastIndex];\\n\\n // Move the last value to the index where the value to delete is\\n set._values[toDeleteIndex] = lastValue;\\n // Update the index for the moved value\\n set._indexes[lastValue] = valueIndex; // Replace lastValue's index to valueIndex\\n }\\n\\n // Delete the slot where the moved value was stored\\n set._values.pop();\\n\\n // Delete the index for the deleted slot\\n delete set._indexes[value];\\n\\n return true;\\n } else {\\n return false;\\n }\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function _contains(Set storage set, bytes32 value) private view returns (bool) {\\n return set._indexes[value] != 0;\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function _length(Set storage set) private view returns (uint256) {\\n return set._values.length;\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function _at(Set storage set, uint256 index) private view returns (bytes32) {\\n return set._values[index];\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function _values(Set storage set) private view returns (bytes32[] memory) {\\n return set._values;\\n }\\n\\n // Bytes32Set\\n\\n struct Bytes32Set {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _add(set._inner, value);\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {\\n return _remove(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {\\n return _contains(set._inner, value);\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(Bytes32Set storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {\\n return _at(set._inner, index);\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(Bytes32Set storage set) internal view returns (bytes32[] memory) {\\n return _values(set._inner);\\n }\\n\\n // AddressSet\\n\\n struct AddressSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(AddressSet storage set, address value) internal returns (bool) {\\n return _add(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(AddressSet storage set, address value) internal returns (bool) {\\n return _remove(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(AddressSet storage set, address value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(uint256(uint160(value))));\\n }\\n\\n /**\\n * @dev Returns the number of values in the set. O(1).\\n */\\n function length(AddressSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(AddressSet storage set, uint256 index) internal view returns (address) {\\n return address(uint160(uint256(_at(set._inner, index))));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(AddressSet storage set) internal view returns (address[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n address[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n\\n // UintSet\\n\\n struct UintSet {\\n Set _inner;\\n }\\n\\n /**\\n * @dev Add a value to a set. O(1).\\n *\\n * Returns true if the value was added to the set, that is if it was not\\n * already present.\\n */\\n function add(UintSet storage set, uint256 value) internal returns (bool) {\\n return _add(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Removes a value from a set. O(1).\\n *\\n * Returns true if the value was removed from the set, that is if it was\\n * present.\\n */\\n function remove(UintSet storage set, uint256 value) internal returns (bool) {\\n return _remove(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns true if the value is in the set. O(1).\\n */\\n function contains(UintSet storage set, uint256 value) internal view returns (bool) {\\n return _contains(set._inner, bytes32(value));\\n }\\n\\n /**\\n * @dev Returns the number of values on the set. O(1).\\n */\\n function length(UintSet storage set) internal view returns (uint256) {\\n return _length(set._inner);\\n }\\n\\n /**\\n * @dev Returns the value stored at position `index` in the set. O(1).\\n *\\n * Note that there are no guarantees on the ordering of values inside the\\n * array, and it may change when more values are added or removed.\\n *\\n * Requirements:\\n *\\n * - `index` must be strictly less than {length}.\\n */\\n function at(UintSet storage set, uint256 index) internal view returns (uint256) {\\n return uint256(_at(set._inner, index));\\n }\\n\\n /**\\n * @dev Return the entire set in an array\\n *\\n * WARNING: This operation will copy the entire storage to memory, which can be quite expensive. This is designed\\n * to mostly be used by view accessors that are queried without any gas fees. Developers should keep in mind that\\n * this function has an unbounded cost, and using it as part of a state-changing function may render the function\\n * uncallable if the set grows to a point where copying to memory consumes too much gas to fit in a block.\\n */\\n function values(UintSet storage set) internal view returns (uint256[] memory) {\\n bytes32[] memory store = _values(set._inner);\\n uint256[] memory result;\\n\\n /// @solidity memory-safe-assembly\\n assembly {\\n result := store\\n }\\n\\n return result;\\n }\\n}\\n\",\"keccak256\":\"0x5050943b32b6a8f282573d166b2e9d87ab7eb4dbba4ab6acf36ecb54fe6995e4\",\"license\":\"MIT\"},\"src/extensions/GatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/security/Pausable.sol\\\";\\nimport \\\"../interfaces/IQuorum.sol\\\";\\nimport \\\"./collections/HasProxyAdmin.sol\\\";\\n\\nabstract contract GatewayV3 is HasProxyAdmin, Pausable, IQuorum {\\n uint256 internal _num;\\n uint256 internal _denom;\\n\\n address private ______deprecated;\\n uint256 public nonce;\\n\\n address public emergencyPauser;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n */\\n uint256[49] private ______gap;\\n\\n /**\\n * @dev Grant emergency pauser role for `_addr`.\\n */\\n function setEmergencyPauser(address _addr) external onlyProxyAdmin {\\n emergencyPauser = _addr;\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function getThreshold() external view virtual returns (uint256 num_, uint256 denom_) {\\n return (_num, _denom);\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function checkThreshold(uint256 _voteWeight) external view virtual returns (bool) {\\n return _voteWeight * _denom >= _num * _getTotalWeight();\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function setThreshold(uint256 _numerator, uint256 _denominator) external virtual onlyProxyAdmin {\\n return _setThreshold(_numerator, _denominator);\\n }\\n\\n /**\\n * @dev Triggers paused state.\\n */\\n function pause() external {\\n _requireAuth();\\n _pause();\\n }\\n\\n /**\\n * @dev Triggers unpaused state.\\n */\\n function unpause() external {\\n _requireAuth();\\n _unpause();\\n }\\n\\n /**\\n * @inheritdoc IQuorum\\n */\\n function minimumVoteWeight() public view virtual returns (uint256) {\\n return _minimumVoteWeight(_getTotalWeight());\\n }\\n\\n /**\\n * @dev Sets threshold and returns the old one.\\n *\\n * Emits the `ThresholdUpdated` event.\\n *\\n */\\n function _setThreshold(uint256 num, uint256 denom) internal virtual {\\n if (num > denom) revert ErrInvalidThreshold(msg.sig);\\n uint256 prevNum = _num;\\n uint256 prevDenom = _denom;\\n _num = num;\\n _denom = denom;\\n unchecked {\\n emit ThresholdUpdated(nonce++, num, denom, prevNum, prevDenom);\\n }\\n }\\n\\n /**\\n * @dev Returns minimum vote weight.\\n */\\n function _minimumVoteWeight(uint256 _totalWeight) internal view virtual returns (uint256) {\\n return (_num * _totalWeight + _denom - 1) / _denom;\\n }\\n\\n /**\\n * @dev Internal method to check method caller.\\n *\\n * Requirements:\\n *\\n * - The method caller must be admin or pauser.\\n *\\n */\\n function _requireAuth() private view {\\n if (!(msg.sender == _getProxyAdmin() || msg.sender == emergencyPauser)) {\\n revert ErrUnauthorized(msg.sig, RoleAccess.ADMIN);\\n }\\n }\\n\\n /**\\n * @dev Returns the total weight.\\n */\\n function _getTotalWeight() internal view virtual returns (uint256);\\n}\\n\",\"keccak256\":\"0x010a0021a377e4b23a4f56269b9c6e3e3fc2684897928ff9b9da1b47c3f07baf\",\"license\":\"MIT\"},\"src/extensions/TransparentUpgradeableProxyV2.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol\\\";\\n\\ncontract TransparentUpgradeableProxyV2 is TransparentUpgradeableProxy {\\n constructor(address _logic, address admin_, bytes memory _data) payable TransparentUpgradeableProxy(_logic, admin_, _data) { }\\n\\n /**\\n * @dev Calls a function from the current implementation as specified by `_data`, which should be an encoded function call.\\n *\\n * Requirements:\\n * - Only the admin can call this function.\\n *\\n * Note: The proxy admin is not allowed to interact with the proxy logic through the fallback function to avoid\\n * triggering some unexpected logic. This is to allow the administrator to explicitly call the proxy, please consider\\n * reviewing the encoded data `_data` and the method which is called before using this.\\n *\\n */\\n function functionDelegateCall(bytes memory _data) public payable ifAdmin {\\n address _addr = _implementation();\\n assembly {\\n let _result := delegatecall(gas(), _addr, add(_data, 32), mload(_data), 0, 0)\\n returndatacopy(0, 0, returndatasize())\\n switch _result\\n case 0 { revert(0, returndatasize()) }\\n default { return(0, returndatasize()) }\\n }\\n }\\n}\\n\",\"keccak256\":\"0x45fc7b71d09da99414b977a56e586b3604670d865e5f36f395d5c98bc4ba64af\",\"license\":\"MIT\"},\"src/extensions/WethUnwrapper.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\nimport \\\"../interfaces/IWETH.sol\\\";\\n\\ncontract WethUnwrapper is ReentrancyGuard {\\n IWETH public immutable weth;\\n\\n error ErrCannotTransferFrom();\\n error ErrNotWrappedContract();\\n error ErrExternalCallFailed(address sender, bytes4 sig);\\n\\n constructor(address weth_) {\\n if (address(weth_).code.length == 0) revert ErrNotWrappedContract();\\n weth = IWETH(weth_);\\n }\\n\\n fallback() external payable {\\n _fallback();\\n }\\n\\n receive() external payable {\\n _fallback();\\n }\\n\\n function unwrap(uint256 amount) external nonReentrant {\\n _deductWrappedAndWithdraw(amount);\\n _sendNativeTo(payable(msg.sender), amount);\\n }\\n\\n function unwrapTo(uint256 amount, address payable to) external nonReentrant {\\n _deductWrappedAndWithdraw(amount);\\n _sendNativeTo(payable(to), amount);\\n }\\n\\n function _deductWrappedAndWithdraw(uint256 amount) internal {\\n (bool success,) = address(weth).call(abi.encodeCall(IWETH.transferFrom, (msg.sender, address(this), amount)));\\n if (!success) revert ErrCannotTransferFrom();\\n\\n weth.withdraw(amount);\\n }\\n\\n function _sendNativeTo(address payable to, uint256 val) internal {\\n (bool success,) = to.call{ value: val }(\\\"\\\");\\n if (!success) {\\n revert ErrExternalCallFailed(to, msg.sig);\\n }\\n }\\n\\n function _fallback() internal view {\\n if (msg.sender != address(weth)) revert ErrNotWrappedContract();\\n }\\n}\\n\",\"keccak256\":\"0x5f7b72d9ed8944724d2f228358d565a61ea345cba1883e5424fb801bebc758ff\",\"license\":\"MIT\"},\"src/extensions/WithdrawalLimitation.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./GatewayV3.sol\\\";\\n\\nabstract contract WithdrawalLimitation is GatewayV3 {\\n /// @dev Error of invalid percentage.\\n error ErrInvalidPercentage();\\n\\n /// @dev Emitted when the high-tier vote weight threshold is updated\\n event HighTierVoteWeightThresholdUpdated(\\n uint256 indexed nonce, uint256 indexed numerator, uint256 indexed denominator, uint256 previousNumerator, uint256 previousDenominator\\n );\\n /// @dev Emitted when the thresholds for high-tier withdrawals that requires high-tier vote weights are updated\\n event HighTierThresholdsUpdated(address[] tokens, uint256[] thresholds);\\n /// @dev Emitted when the thresholds for locked withdrawals are updated\\n event LockedThresholdsUpdated(address[] tokens, uint256[] thresholds);\\n /// @dev Emitted when the fee percentages to unlock withdraw are updated\\n event UnlockFeePercentagesUpdated(address[] tokens, uint256[] percentages);\\n /// @dev Emitted when the daily limit thresholds are updated\\n event DailyWithdrawalLimitsUpdated(address[] tokens, uint256[] limits);\\n\\n uint256 public constant _MAX_PERCENTAGE = 1_000_000;\\n\\n uint256 internal _highTierVWNum;\\n uint256 internal _highTierVWDenom;\\n\\n /// @dev Mapping from mainchain token => the amount thresholds for high-tier withdrawals that requires high-tier vote weights\\n mapping(address => uint256) public highTierThreshold;\\n /// @dev Mapping from mainchain token => the amount thresholds to lock withdrawal\\n mapping(address => uint256) public lockedThreshold;\\n /// @dev Mapping from mainchain token => unlock fee percentages for unlocker\\n /// @notice Values 0-1,000,000 map to 0%-100%\\n mapping(address => uint256) public unlockFeePercentages;\\n /// @dev Mapping from mainchain token => daily limit amount for withdrawal\\n mapping(address => uint256) public dailyWithdrawalLimit;\\n /// @dev Mapping from token address => today withdrawal amount\\n mapping(address => uint256) public lastSyncedWithdrawal;\\n /// @dev Mapping from token address => last date synced to record the `lastSyncedWithdrawal`\\n mapping(address => uint256) public lastDateSynced;\\n\\n /**\\n * @dev This empty reserved space is put in place to allow future versions to add new\\n * variables without shifting down storage in the inheritance chain.\\n */\\n uint256[50] private ______gap;\\n\\n /**\\n * @dev Override `GatewayV3-setThreshold`.\\n *\\n * Requirements:\\n * - The high-tier vote weight threshold must equal to or larger than the normal threshold.\\n *\\n */\\n function setThreshold(uint256 num, uint256 denom) external virtual override onlyProxyAdmin {\\n _setThreshold(num, denom);\\n _verifyThresholds();\\n }\\n\\n /**\\n * @dev Returns the high-tier vote weight threshold.\\n */\\n function getHighTierVoteWeightThreshold() external view virtual returns (uint256, uint256) {\\n return (_highTierVWNum, _highTierVWDenom);\\n }\\n\\n /**\\n * @dev Checks whether the `_voteWeight` passes the high-tier vote weight threshold.\\n */\\n function checkHighTierVoteWeightThreshold(uint256 _voteWeight) external view virtual returns (bool) {\\n return _voteWeight * _highTierVWDenom >= _highTierVWNum * _getTotalWeight();\\n }\\n\\n /**\\n * @dev Sets high-tier vote weight threshold and returns the old one.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The high-tier vote weight threshold must equal to or larger than the normal threshold.\\n *\\n * Emits the `HighTierVoteWeightThresholdUpdated` event.\\n *\\n */\\n function setHighTierVoteWeightThreshold(\\n uint256 _numerator,\\n uint256 _denominator\\n ) external virtual onlyProxyAdmin returns (uint256 _previousNum, uint256 _previousDenom) {\\n (_previousNum, _previousDenom) = _setHighTierVoteWeightThreshold(_numerator, _denominator);\\n _verifyThresholds();\\n }\\n\\n /**\\n * @dev Sets the thresholds for high-tier withdrawals that requires high-tier vote weights.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `HighTierThresholdsUpdated` event.\\n *\\n */\\n function setHighTierThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setHighTierThresholds(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets the amount thresholds to lock withdrawal.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `LockedThresholdsUpdated` event.\\n *\\n */\\n function setLockedThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setLockedThresholds(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets fee percentages to unlock withdrawal.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `UnlockFeePercentagesUpdated` event.\\n *\\n */\\n function setUnlockFeePercentages(address[] calldata _tokens, uint256[] calldata _percentages) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setUnlockFeePercentages(_tokens, _percentages);\\n }\\n\\n /**\\n * @dev Sets daily limit amounts for the withdrawals.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `DailyWithdrawalLimitsUpdated` event.\\n *\\n */\\n function setDailyWithdrawalLimits(address[] calldata _tokens, uint256[] calldata _limits) external virtual onlyProxyAdmin {\\n if (_tokens.length == 0) revert ErrEmptyArray();\\n _setDailyWithdrawalLimits(_tokens, _limits);\\n }\\n\\n /**\\n * @dev Checks whether the withdrawal reaches the limitation.\\n */\\n function reachedWithdrawalLimit(address _token, uint256 _quantity) external view virtual returns (bool) {\\n return _reachedWithdrawalLimit(_token, _quantity);\\n }\\n\\n /**\\n * @dev Sets high-tier vote weight threshold and returns the old one.\\n *\\n * Emits the `HighTierVoteWeightThresholdUpdated` event.\\n *\\n */\\n function _setHighTierVoteWeightThreshold(uint256 _numerator, uint256 _denominator) internal returns (uint256 _previousNum, uint256 _previousDenom) {\\n if (_numerator > _denominator) revert ErrInvalidThreshold(msg.sig);\\n\\n _previousNum = _highTierVWNum;\\n _previousDenom = _highTierVWDenom;\\n _highTierVWNum = _numerator;\\n _highTierVWDenom = _denominator;\\n\\n unchecked {\\n emit HighTierVoteWeightThresholdUpdated(nonce++, _numerator, _denominator, _previousNum, _previousDenom);\\n }\\n }\\n\\n /**\\n * @dev Sets the thresholds for high-tier withdrawals that requires high-tier vote weights.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `HighTierThresholdsUpdated` event.\\n *\\n */\\n function _setHighTierThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) internal virtual {\\n if (_tokens.length != _thresholds.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n highTierThreshold[_tokens[_i]] = _thresholds[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit HighTierThresholdsUpdated(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets the amount thresholds to lock withdrawal.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `LockedThresholdsUpdated` event.\\n *\\n */\\n function _setLockedThresholds(address[] calldata _tokens, uint256[] calldata _thresholds) internal virtual {\\n if (_tokens.length != _thresholds.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n lockedThreshold[_tokens[_i]] = _thresholds[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit LockedThresholdsUpdated(_tokens, _thresholds);\\n }\\n\\n /**\\n * @dev Sets fee percentages to unlock withdrawal.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n * - The percentage is equal to or less than 100_000.\\n *\\n * Emits the `UnlockFeePercentagesUpdated` event.\\n *\\n */\\n function _setUnlockFeePercentages(address[] calldata _tokens, uint256[] calldata _percentages) internal virtual {\\n if (_tokens.length != _percentages.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n if (_percentages[_i] > _MAX_PERCENTAGE) revert ErrInvalidPercentage();\\n\\n unlockFeePercentages[_tokens[_i]] = _percentages[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit UnlockFeePercentagesUpdated(_tokens, _percentages);\\n }\\n\\n /**\\n * @dev Sets daily limit amounts for the withdrawals.\\n *\\n * Requirements:\\n * - The array lengths are equal.\\n *\\n * Emits the `DailyWithdrawalLimitsUpdated` event.\\n *\\n */\\n function _setDailyWithdrawalLimits(address[] calldata _tokens, uint256[] calldata _limits) internal virtual {\\n if (_tokens.length != _limits.length) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 _i; _i < _tokens.length;) {\\n dailyWithdrawalLimit[_tokens[_i]] = _limits[_i];\\n\\n unchecked {\\n ++_i;\\n }\\n }\\n emit DailyWithdrawalLimitsUpdated(_tokens, _limits);\\n }\\n\\n /**\\n * @dev Checks whether the withdrawal reaches the daily limitation.\\n *\\n * Requirements:\\n * - The daily withdrawal threshold should not apply for locked withdrawals.\\n *\\n */\\n function _reachedWithdrawalLimit(address _token, uint256 _quantity) internal view virtual returns (bool) {\\n if (_lockedWithdrawalRequest(_token, _quantity)) {\\n return false;\\n }\\n\\n uint256 _currentDate = block.timestamp / 1 days;\\n if (_currentDate > lastDateSynced[_token]) {\\n return dailyWithdrawalLimit[_token] <= _quantity;\\n } else {\\n return dailyWithdrawalLimit[_token] <= lastSyncedWithdrawal[_token] + _quantity;\\n }\\n }\\n\\n /**\\n * @dev Record withdrawal token.\\n */\\n function _recordWithdrawal(address _token, uint256 _quantity) internal virtual {\\n uint256 _currentDate = block.timestamp / 1 days;\\n if (_currentDate > lastDateSynced[_token]) {\\n lastDateSynced[_token] = _currentDate;\\n lastSyncedWithdrawal[_token] = _quantity;\\n } else {\\n lastSyncedWithdrawal[_token] += _quantity;\\n }\\n }\\n\\n /**\\n * @dev Returns whether the withdrawal request is locked or not.\\n */\\n function _lockedWithdrawalRequest(address _token, uint256 _quantity) internal view virtual returns (bool) {\\n return lockedThreshold[_token] <= _quantity;\\n }\\n\\n /**\\n * @dev Computes fee percentage.\\n */\\n function _computeFeePercentage(uint256 _amount, uint256 _percentage) internal view virtual returns (uint256) {\\n return (_amount * _percentage) / _MAX_PERCENTAGE;\\n }\\n\\n /**\\n * @dev Returns high-tier vote weight.\\n */\\n function _highTierVoteWeight(uint256 _totalWeight) internal view virtual returns (uint256) {\\n return (_highTierVWNum * _totalWeight + _highTierVWDenom - 1) / _highTierVWDenom;\\n }\\n\\n /**\\n * @dev Validates whether the high-tier vote weight threshold is larger than the normal threshold.\\n */\\n function _verifyThresholds() internal view {\\n if (_num * _highTierVWDenom > _highTierVWNum * _denom) revert ErrInvalidThreshold(msg.sig);\\n }\\n}\\n\",\"keccak256\":\"0x4b7d559d4b1f53239b8690776318db8d63f578f72fb269d8024570aa70c2c2a6\",\"license\":\"MIT\"},\"src/extensions/collections/HasContracts.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { HasProxyAdmin } from \\\"./HasProxyAdmin.sol\\\";\\nimport \\\"../../interfaces/collections/IHasContracts.sol\\\";\\nimport { IdentityGuard } from \\\"../../utils/IdentityGuard.sol\\\";\\nimport { ErrUnexpectedInternalCall } from \\\"../../utils/CommonErrors.sol\\\";\\n\\n/**\\n * @title HasContracts\\n * @dev A contract that provides functionality to manage multiple contracts with different roles.\\n */\\nabstract contract HasContracts is HasProxyAdmin, IHasContracts, IdentityGuard {\\n /// @dev value is equal to keccak256(\\\"@ronin.dpos.collections.HasContracts.slot\\\") - 1\\n bytes32 private constant _STORAGE_SLOT = 0xdea3103d22025c269050bea94c0c84688877f12fa22b7e6d2d5d78a9a49aa1cb;\\n\\n /**\\n * @dev Modifier to restrict access to functions only to contracts with a specific role.\\n * @param contractType The contract type that allowed to call\\n */\\n modifier onlyContract(ContractType contractType) virtual {\\n _requireContract(contractType);\\n _;\\n }\\n\\n /**\\n * @inheritdoc IHasContracts\\n */\\n function setContract(ContractType contractType, address addr) external virtual onlyProxyAdmin {\\n _requireHasCode(addr);\\n _setContract(contractType, addr);\\n }\\n\\n /**\\n * @inheritdoc IHasContracts\\n */\\n function getContract(ContractType contractType) public view returns (address contract_) {\\n contract_ = _getContractMap()[uint8(contractType)];\\n if (contract_ == address(0)) revert ErrContractTypeNotFound(contractType);\\n }\\n\\n /**\\n * @dev Internal function to set the address of a contract with a specific role.\\n * @param contractType The contract type of the contract to set.\\n * @param addr The address of the contract to set.\\n */\\n function _setContract(ContractType contractType, address addr) internal virtual {\\n _getContractMap()[uint8(contractType)] = addr;\\n emit ContractUpdated(contractType, addr);\\n }\\n\\n /**\\n * @dev Internal function to access the mapping of contract addresses with roles.\\n * @return contracts_ The mapping of contract addresses with roles.\\n */\\n function _getContractMap() private pure returns (mapping(uint8 => address) storage contracts_) {\\n assembly {\\n contracts_.slot := _STORAGE_SLOT\\n }\\n }\\n\\n /**\\n * @dev Internal function to check if the calling contract has a specific role.\\n * @param contractType The contract type that the calling contract must have.\\n * @dev Throws an error if the calling contract does not have the specified role.\\n */\\n function _requireContract(ContractType contractType) private view {\\n if (msg.sender != getContract(contractType)) {\\n revert ErrUnexpectedInternalCall(msg.sig, contractType, msg.sender);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xf7dbefa31230e6e4bd319f02d94893cbfd07ee12a0e016f5fadc57660df01891\",\"license\":\"MIT\"},\"src/extensions/collections/HasProxyAdmin.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/utils/StorageSlot.sol\\\";\\nimport \\\"../../utils/CommonErrors.sol\\\";\\n\\nabstract contract HasProxyAdmin {\\n // bytes32(uint256(keccak256(\\\"eip1967.proxy.admin\\\")) - 1));\\n bytes32 private constant _ADMIN_SLOT = 0xb53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103;\\n\\n modifier onlyProxyAdmin() {\\n _requireProxyAdmin();\\n _;\\n }\\n\\n /**\\n * @dev Returns proxy admin.\\n */\\n function _getProxyAdmin() internal view virtual returns (address) {\\n return StorageSlot.getAddressSlot(_ADMIN_SLOT).value;\\n }\\n\\n function _requireProxyAdmin() internal view {\\n if (msg.sender != _getProxyAdmin()) revert ErrUnauthorized(msg.sig, RoleAccess.ADMIN);\\n }\\n}\\n\",\"keccak256\":\"0xad3db02c99a960b60151f2ad45eed46073d14fe1ed861f496c7aeefacbbc528e\",\"license\":\"MIT\"},\"src/interfaces/IMainchainGatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IWETH.sol\\\";\\nimport \\\"./consumers/SignatureConsumer.sol\\\";\\nimport \\\"./consumers/MappedTokenConsumer.sol\\\";\\nimport \\\"../libraries/Transfer.sol\\\";\\n\\ninterface IMainchainGatewayV3 is SignatureConsumer, MappedTokenConsumer {\\n /**\\n * @dev Error indicating that a query was made for an approved withdrawal.\\n */\\n error ErrQueryForApprovedWithdrawal();\\n\\n /**\\n * @dev Error indicating that the daily withdrawal limit has been reached.\\n */\\n error ErrReachedDailyWithdrawalLimit();\\n\\n /**\\n * @dev Error indicating that a query was made for a processed withdrawal.\\n */\\n error ErrQueryForProcessedWithdrawal();\\n\\n /**\\n * @dev Error indicating that a query was made for insufficient vote weight.\\n */\\n error ErrQueryForInsufficientVoteWeight();\\n\\n /// @dev Emitted when the deposit is requested\\n event DepositRequested(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the assets are withdrawn\\n event Withdrew(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the tokens are mapped\\n event TokenMapped(address[] mainchainTokens, address[] roninTokens, TokenStandard[] standards);\\n /// @dev Emitted when the wrapped native token contract is updated\\n event WrappedNativeTokenContractUpdated(IWETH weth);\\n /// @dev Emitted when the withdrawal is locked\\n event WithdrawalLocked(bytes32 receiptHash, Transfer.Receipt receipt);\\n /// @dev Emitted when the withdrawal is unlocked\\n event WithdrawalUnlocked(bytes32 receiptHash, Transfer.Receipt receipt);\\n\\n /**\\n * @dev Returns the domain seperator.\\n */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /**\\n * @dev Returns deposit count.\\n */\\n function depositCount() external view returns (uint256);\\n\\n /**\\n * @dev Sets the wrapped native token contract.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n *\\n * Emits the `WrappedNativeTokenContractUpdated` event.\\n *\\n */\\n function setWrappedNativeTokenContract(IWETH _wrappedToken) external;\\n\\n /**\\n * @dev Returns whether the withdrawal is locked.\\n */\\n function withdrawalLocked(uint256 withdrawalId) external view returns (bool);\\n\\n /**\\n * @dev Returns the withdrawal hash.\\n */\\n function withdrawalHash(uint256 withdrawalId) external view returns (bytes32);\\n\\n /**\\n * @dev Locks the assets and request deposit.\\n */\\n function requestDepositFor(Transfer.Request calldata _request) external payable;\\n\\n /**\\n * @dev Locks the assets and request deposit for batch.\\n */\\n function requestDepositForBatch(Transfer.Request[] calldata requests) external payable;\\n\\n /**\\n * @dev Withdraws based on the receipt and the validator signatures.\\n * Returns whether the withdrawal is locked.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function submitWithdrawal(Transfer.Receipt memory _receipt, Signature[] memory _signatures) external returns (bool _locked);\\n\\n /**\\n * @dev Approves a specific withdrawal.\\n *\\n * Requirements:\\n * - The method caller is a validator.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function unlockWithdrawal(Transfer.Receipt calldata _receipt) external;\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network.\\n *\\n * Requirement:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function mapTokens(address[] calldata _mainchainTokens, address[] calldata _roninTokens, TokenStandard[] calldata _standards) external;\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network and sets thresholds.\\n *\\n * Requirement:\\n * - The method caller is admin.\\n * - The arrays have the same length and its length larger than 0.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function mapTokensAndThresholds(\\n address[] calldata _mainchainTokens,\\n address[] calldata _roninTokens,\\n TokenStandard[] calldata _standards,\\n uint256[][4] calldata _thresholds\\n ) external;\\n\\n /**\\n * @dev Returns token address on Ronin network.\\n * Note: Reverts for unsupported token.\\n */\\n function getRoninToken(address _mainchainToken) external view returns (MappedToken memory _token);\\n}\\n\",\"keccak256\":\"0x77b52c1dce7c096d298e0ae14d19d79cb1d506248e947fdee27f295b33743d46\",\"license\":\"MIT\"},\"src/interfaces/IQuorum.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IQuorum {\\n /// @dev Emitted when the threshold is updated\\n event ThresholdUpdated(uint256 indexed nonce, uint256 indexed numerator, uint256 indexed denominator, uint256 previousNumerator, uint256 previousDenominator);\\n\\n /**\\n * @dev Returns the threshold.\\n */\\n function getThreshold() external view returns (uint256 _num, uint256 _denom);\\n\\n /**\\n * @dev Checks whether the `_voteWeight` passes the threshold.\\n */\\n function checkThreshold(uint256 _voteWeight) external view returns (bool);\\n\\n /**\\n * @dev Returns the minimum vote weight to pass the threshold.\\n */\\n function minimumVoteWeight() external view returns (uint256);\\n\\n /**\\n * @dev Sets the threshold.\\n *\\n * Requirements:\\n * - The method caller is admin.\\n *\\n * Emits the `ThresholdUpdated` event.\\n *\\n */\\n function setThreshold(uint256 numerator, uint256 denominator) external;\\n}\\n\",\"keccak256\":\"0xc924e9480f59acc9bc8c033f05d3be9451de5cee0c224d76d4542fa5b67fa10f\",\"license\":\"MIT\"},\"src/interfaces/IWETH.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IWETH {\\n event Transfer(address indexed src, address indexed dst, uint wad);\\n\\n function deposit() external payable;\\n\\n function transfer(address dst, uint wad) external returns (bool);\\n\\n function approve(address guy, uint wad) external returns (bool);\\n\\n function transferFrom(address src, address dst, uint wad) external returns (bool);\\n\\n function withdraw(uint256 _wad) external;\\n\\n function balanceOf(address) external view returns (uint256);\\n}\\n\",\"keccak256\":\"0x000700e2b9c1985d53bb1cdba435f0f3d7b48e76e596e7dbbdfec1da47131415\",\"license\":\"MIT\"},\"src/interfaces/bridge/IBridgeManager.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IBridgeManagerEvents } from \\\"./events/IBridgeManagerEvents.sol\\\";\\n\\n/**\\n * @title IBridgeManager\\n * @dev The interface for managing bridge operators.\\n */\\ninterface IBridgeManager is IBridgeManagerEvents {\\n /// @notice Error indicating that cannot find the querying operator\\n error ErrOperatorNotFound(address operator);\\n /// @notice Error indicating that cannot find the querying governor\\n error ErrGovernorNotFound(address governor);\\n /// @notice Error indicating that the msg.sender is not match the required governor\\n error ErrGovernorNotMatch(address required, address sender);\\n /// @notice Error indicating that the governors list will go below minimum number of required governor.\\n error ErrBelowMinRequiredGovernors();\\n /// @notice Common invalid input error\\n error ErrInvalidInput();\\n\\n /**\\n * @dev The domain separator used for computing hash digests in the contract.\\n */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /**\\n * @dev Returns the total number of bridge operators.\\n * @return The total number of bridge operators.\\n */\\n function totalBridgeOperator() external view returns (uint256);\\n\\n /**\\n * @dev Checks if the given address is a bridge operator.\\n * @param addr The address to check.\\n * @return A boolean indicating whether the address is a bridge operator.\\n */\\n function isBridgeOperator(address addr) external view returns (bool);\\n\\n /**\\n * @dev Retrieves the full information of all registered bridge operators.\\n *\\n * This external function allows external callers to obtain the full information of all the registered bridge operators.\\n * The returned arrays include the addresses of governors, bridge operators, and their corresponding vote weights.\\n *\\n * @return governors An array of addresses representing the governors of each bridge operator.\\n * @return bridgeOperators An array of addresses representing the registered bridge operators.\\n * @return weights An array of uint256 values representing the vote weights of each bridge operator.\\n *\\n * Note: The length of each array will be the same, and the order of elements corresponds to the same bridge operator.\\n *\\n * Example Usage:\\n * ```\\n * (address[] memory governors, address[] memory bridgeOperators, uint256[] memory weights) = getFullBridgeOperatorInfos();\\n * for (uint256 i = 0; i < bridgeOperators.length; i++) {\\n * // Access individual information for each bridge operator.\\n * address governor = governors[i];\\n * address bridgeOperator = bridgeOperators[i];\\n * uint256 weight = weights[i];\\n * // ... (Process or use the information as required) ...\\n * }\\n * ```\\n *\\n */\\n function getFullBridgeOperatorInfos() external view returns (address[] memory governors, address[] memory bridgeOperators, uint96[] memory weights);\\n\\n /**\\n * @dev Returns total weights of the governor list.\\n */\\n function sumGovernorsWeight(address[] calldata governors) external view returns (uint256 sum);\\n\\n /**\\n * @dev Returns total weights.\\n */\\n function getTotalWeight() external view returns (uint256);\\n\\n /**\\n * @dev Returns an array of all bridge operators.\\n * @return An array containing the addresses of all bridge operators.\\n */\\n function getBridgeOperators() external view returns (address[] memory);\\n\\n /**\\n * @dev Returns the corresponding `operator` of a `governor`.\\n */\\n function getOperatorOf(address governor) external view returns (address operator);\\n\\n /**\\n * @dev Returns the corresponding `governor` of a `operator`.\\n */\\n function getGovernorOf(address operator) external view returns (address governor);\\n\\n /**\\n * @dev External function to retrieve the vote weight of a specific governor.\\n * @param governor The address of the governor to get the vote weight for.\\n * @return voteWeight The vote weight of the specified governor.\\n */\\n function getGovernorWeight(address governor) external view returns (uint96);\\n\\n /**\\n * @dev External function to retrieve the vote weight of a specific bridge operator.\\n * @param bridgeOperator The address of the bridge operator to get the vote weight for.\\n * @return weight The vote weight of the specified bridge operator.\\n */\\n function getBridgeOperatorWeight(address bridgeOperator) external view returns (uint96 weight);\\n\\n /**\\n * @dev Returns the weights of a list of governor addresses.\\n */\\n function getGovernorWeights(address[] calldata governors) external view returns (uint96[] memory weights);\\n\\n /**\\n * @dev Returns an array of all governors.\\n * @return An array containing the addresses of all governors.\\n */\\n function getGovernors() external view returns (address[] memory);\\n\\n /**\\n * @dev Adds multiple bridge operators.\\n * @param governors An array of addresses of hot/cold wallets for bridge operator to update their node address.\\n * @param bridgeOperators An array of addresses representing the bridge operators to add.\\n */\\n function addBridgeOperators(uint96[] calldata voteWeights, address[] calldata governors, address[] calldata bridgeOperators) external;\\n\\n /**\\n * @dev Removes multiple bridge operators.\\n * @param bridgeOperators An array of addresses representing the bridge operators to remove.\\n */\\n function removeBridgeOperators(address[] calldata bridgeOperators) external;\\n\\n /**\\n * @dev Self-call to update the minimum required governor.\\n * @param min The minimum number, this must not less than 3.\\n */\\n function setMinRequiredGovernor(uint min) external;\\n}\\n\",\"keccak256\":\"0xefc46318a240371031e77ef3c355e2c18432e4479145378de6782277f9b44923\",\"license\":\"MIT\"},\"src/interfaces/bridge/IBridgeManagerCallback.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { IERC165 } from \\\"@openzeppelin/contracts/utils/introspection/IERC165.sol\\\";\\n\\n/**\\n * @title IBridgeManagerCallback\\n * @dev Interface for the callback functions to be implemented by the Bridge Manager contract.\\n */\\ninterface IBridgeManagerCallback is IERC165 {\\n /**\\n * @dev Handles the event when bridge operators are added.\\n * @param bridgeOperators The addresses of the bridge operators.\\n * @param addeds The corresponding boolean values indicating whether the operators were added or not.\\n * @return selector The selector of the function being called.\\n */\\n function onBridgeOperatorsAdded(address[] memory bridgeOperators, uint96[] calldata weights, bool[] memory addeds) external returns (bytes4 selector);\\n\\n /**\\n * @dev Handles the event when bridge operators are removed.\\n * @param bridgeOperators The addresses of the bridge operators.\\n * @param removeds The corresponding boolean values indicating whether the operators were removed or not.\\n * @return selector The selector of the function being called.\\n */\\n function onBridgeOperatorsRemoved(address[] memory bridgeOperators, bool[] memory removeds) external returns (bytes4 selector);\\n}\\n\",\"keccak256\":\"0x6c8ce7e2478e28c5ed5e6f5d8305a77d6d5f9125a47adfb77632940b9a0f3625\",\"license\":\"MIT\"},\"src/interfaces/bridge/events/IBridgeManagerEvents.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface IBridgeManagerEvents {\\n /**\\n * @dev Emitted when new bridge operators are added.\\n */\\n event BridgeOperatorsAdded(bool[] statuses, uint96[] voteWeights, address[] governors, address[] bridgeOperators);\\n\\n /**\\n * @dev Emitted when a bridge operator is failed to add.\\n */\\n event BridgeOperatorAddingFailed(address indexed operator);\\n\\n /**\\n * @dev Emitted when bridge operators are removed.\\n */\\n event BridgeOperatorsRemoved(bool[] statuses, address[] bridgeOperators);\\n\\n /**\\n * @dev Emitted when a bridge operator is failed to remove.\\n */\\n event BridgeOperatorRemovingFailed(address indexed operator);\\n\\n /**\\n * @dev Emitted when a bridge operator is updated.\\n */\\n event BridgeOperatorUpdated(address indexed governor, address indexed fromBridgeOperator, address indexed toBridgeOperator);\\n\\n /**\\n * @dev Emitted when the minimum number of required governors is updated.\\n */\\n event MinRequiredGovernorUpdated(uint min);\\n}\\n\",\"keccak256\":\"0x38bc3709c98a7c08fb9b6fa3e07a725903dcb0bd07de8a828bac6c3bcf7d997d\",\"license\":\"MIT\"},\"src/interfaces/collections/IHasContracts.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.9;\\n\\nimport { ContractType } from \\\"../../utils/ContractType.sol\\\";\\n\\ninterface IHasContracts {\\n /// @dev Error of invalid role.\\n error ErrContractTypeNotFound(ContractType contractType);\\n\\n /// @dev Emitted when a contract is updated.\\n event ContractUpdated(ContractType indexed contractType, address indexed addr);\\n\\n /**\\n * @dev Returns the address of a contract with a specific role.\\n * Throws an error if no contract is set for the specified role.\\n *\\n * @param contractType The role of the contract to retrieve.\\n * @return contract_ The address of the contract with the specified role.\\n */\\n function getContract(ContractType contractType) external view returns (address contract_);\\n\\n /**\\n * @dev Sets the address of a contract with a specific role.\\n * Emits the event {ContractUpdated}.\\n * @param contractType The role of the contract to set.\\n * @param addr The address of the contract to set.\\n */\\n function setContract(ContractType contractType, address addr) external;\\n}\\n\",\"keccak256\":\"0x99d8213d857e30d367155abd15dc42730afdfbbac3a22dfb3b95ffea2083a92e\",\"license\":\"MIT\"},\"src/interfaces/consumers/MappedTokenConsumer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"../../libraries/LibTokenInfo.sol\\\";\\n\\ninterface MappedTokenConsumer {\\n struct MappedToken {\\n TokenStandard erc;\\n address tokenAddr;\\n }\\n}\\n\",\"keccak256\":\"0xc53dcba9dc7d950ab6561149f76b45617ddbce5037e4c86ea00b976018bbfde1\",\"license\":\"MIT\"},\"src/interfaces/consumers/SignatureConsumer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\ninterface SignatureConsumer {\\n struct Signature {\\n uint8 v;\\n bytes32 r;\\n bytes32 s;\\n }\\n}\\n\",\"keccak256\":\"0xd370e350722067097dec1a5c31bda6e47e83417fa5c3288293bb910028cd136b\",\"license\":\"MIT\"},\"src/libraries/AddressArrayUtils.sol\":{\"content\":\"// SPDX-License-Identifier: UNLICENSED\\n\\npragma solidity ^0.8.0;\\n\\nlibrary AddressArrayUtils {\\n /**\\n * @dev Error thrown when a duplicated element is detected in an array.\\n * @param msgSig The function signature that invoke the error.\\n */\\n error ErrDuplicated(bytes4 msgSig);\\n\\n /**\\n * @dev Returns whether or not there's a duplicate. Runs in O(n^2).\\n * @param A Array to search\\n * @return Returns true if duplicate, false otherwise\\n */\\n function hasDuplicate(address[] memory A) internal pure returns (bool) {\\n if (A.length == 0) {\\n return false;\\n }\\n unchecked {\\n for (uint256 i = 0; i < A.length - 1; i++) {\\n for (uint256 j = i + 1; j < A.length; j++) {\\n if (A[i] == A[j]) {\\n return true;\\n }\\n }\\n }\\n }\\n return false;\\n }\\n\\n /**\\n * @dev Returns whether two arrays of addresses are equal or not.\\n */\\n function isEqual(address[] memory _this, address[] memory _other) internal pure returns (bool yes_) {\\n // Hashing two arrays and compare their hash\\n assembly {\\n let _thisHash := keccak256(add(_this, 32), mul(mload(_this), 32))\\n let _otherHash := keccak256(add(_other, 32), mul(mload(_other), 32))\\n yes_ := eq(_thisHash, _otherHash)\\n }\\n }\\n\\n /**\\n * @dev Return the concatenated array from a and b.\\n */\\n function extend(address[] memory a, address[] memory b) internal pure returns (address[] memory c) {\\n uint256 lengthA = a.length;\\n uint256 lengthB = b.length;\\n unchecked {\\n c = new address[](lengthA + lengthB);\\n }\\n uint256 i;\\n for (; i < lengthA;) {\\n c[i] = a[i];\\n unchecked {\\n ++i;\\n }\\n }\\n for (uint256 j; j < lengthB;) {\\n c[i] = b[j];\\n unchecked {\\n ++i;\\n ++j;\\n }\\n }\\n }\\n}\\n\",\"keccak256\":\"0xce5d578861167da47a965c8a0e1592b808aad6eb79ccb1873bf2e2280ddb85ee\",\"license\":\"UNLICENSED\"},\"src/libraries/LibTokenInfo.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC721/IERC721.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/IERC1155.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/presets/ERC1155PresetMinterPauser.sol\\\";\\nimport \\\"../interfaces/IWETH.sol\\\";\\n\\nenum TokenStandard {\\n ERC20,\\n ERC721,\\n ERC1155\\n}\\n\\nstruct TokenInfo {\\n TokenStandard erc;\\n // For ERC20: the id must be 0 and the quantity is larger than 0.\\n // For ERC721: the quantity must be 0.\\n uint256 id;\\n uint256 quantity;\\n}\\n\\n/**\\n * @dev Error indicating that the `transfer` has failed.\\n * @param tokenInfo Info of the token including ERC standard, id or quantity.\\n * @param to Receiver of the token value.\\n * @param token Address of the token.\\n */\\nerror ErrTokenCouldNotTransfer(TokenInfo tokenInfo, address to, address token);\\n\\n/**\\n * @dev Error indicating that the `handleAssetIn` has failed.\\n * @param tokenInfo Info of the token including ERC standard, id or quantity.\\n * @param from Owner of the token value.\\n * @param to Receiver of the token value.\\n * @param token Address of the token.\\n */\\nerror ErrTokenCouldNotTransferFrom(TokenInfo tokenInfo, address from, address to, address token);\\n\\n/// @dev Error indicating that the provided information is invalid.\\nerror ErrInvalidInfo();\\n\\n/// @dev Error indicating that the minting of ERC20 tokens has failed.\\nerror ErrERC20MintingFailed();\\n\\n/// @dev Error indicating that the minting of ERC721 tokens has failed.\\nerror ErrERC721MintingFailed();\\n\\n/// @dev Error indicating that the transfer of ERC1155 tokens has failed.\\nerror ErrERC1155TransferFailed();\\n\\n/// @dev Error indicating that the mint of ERC1155 tokens has failed.\\nerror ErrERC1155MintingFailed();\\n\\n/// @dev Error indicating that an unsupported standard is encountered.\\nerror ErrUnsupportedStandard();\\n\\nlibrary LibTokenInfo {\\n /**\\n *\\n * HASH\\n *\\n */\\n\\n // keccak256(\\\"TokenInfo(uint8 erc,uint256 id,uint256 quantity)\\\");\\n bytes32 public constant INFO_TYPE_HASH_SINGLE = 0x1e2b74b2a792d5c0f0b6e59b037fa9d43d84fbb759337f0112fcc15ca414fc8d;\\n\\n /**\\n * @dev Returns token info struct hash.\\n */\\n function hash(TokenInfo memory self) internal pure returns (bytes32 digest) {\\n // keccak256(abi.encode(INFO_TYPE_HASH_SINGLE, info.erc, info.id, info.quantity))\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n mstore(ptr, INFO_TYPE_HASH_SINGLE)\\n mstore(add(ptr, 0x20), mload(self)) // info.erc\\n mstore(add(ptr, 0x40), mload(add(self, 0x20))) // info.id\\n mstore(add(ptr, 0x60), mload(add(self, 0x40))) // info.quantity\\n digest := keccak256(ptr, 0x80)\\n }\\n }\\n\\n /**\\n *\\n * VALIDATE\\n *\\n */\\n\\n /**\\n * @dev Validates the token info.\\n */\\n function validate(TokenInfo memory self) internal pure {\\n if (!(_checkERC20(self) || _checkERC721(self) || _checkERC1155(self))) {\\n revert ErrInvalidInfo();\\n }\\n }\\n\\n function _checkERC20(TokenInfo memory self) private pure returns (bool) {\\n return (self.erc == TokenStandard.ERC20 && self.quantity > 0 && self.id == 0);\\n }\\n\\n function _checkERC721(TokenInfo memory self) private pure returns (bool) {\\n return (self.erc == TokenStandard.ERC721 && self.quantity == 0);\\n }\\n\\n function _checkERC1155(TokenInfo memory self) private pure returns (bool res) {\\n // Only validate the quantity, because id of ERC-1155 can be 0.\\n return (self.erc == TokenStandard.ERC1155 && self.quantity > 0);\\n }\\n\\n /**\\n *\\n * TRANSFER IN/OUT METHOD\\n *\\n */\\n\\n /**\\n * @dev Transfer asset in.\\n *\\n * Requirements:\\n * - The `_from` address must approve for the contract using this library.\\n *\\n */\\n function handleAssetIn(TokenInfo memory self, address from, address token) internal {\\n bool success;\\n bytes memory data;\\n if (self.erc == TokenStandard.ERC20) {\\n (success, data) = token.call(abi.encodeWithSelector(IERC20.transferFrom.selector, from, address(this), self.quantity));\\n success = success && (data.length == 0 || abi.decode(data, (bool)));\\n } else if (self.erc == TokenStandard.ERC721) {\\n success = _tryTransferFromERC721(token, from, address(this), self.id);\\n } else if (self.erc == TokenStandard.ERC1155) {\\n success = _tryTransferFromERC1155(token, from, address(this), self.id, self.quantity);\\n } else {\\n revert ErrUnsupportedStandard();\\n }\\n\\n if (!success) revert ErrTokenCouldNotTransferFrom(self, from, address(this), token);\\n }\\n\\n /**\\n * @dev Tries transfer assets out, or mint the assets if cannot transfer.\\n *\\n * @notice Prioritizes transfer native token if the token is wrapped.\\n *\\n */\\n function handleAssetOut(TokenInfo memory self, address payable to, address token, IWETH wrappedNativeToken) internal {\\n if (token == address(wrappedNativeToken)) {\\n // Try sending the native token before transferring the wrapped token\\n if (!to.send(self.quantity)) {\\n wrappedNativeToken.deposit{ value: self.quantity }();\\n _transferTokenOut(self, to, token);\\n }\\n\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC20) {\\n uint256 balance = IERC20(token).balanceOf(address(this));\\n if (balance < self.quantity) {\\n if (!_tryMintERC20(token, address(this), self.quantity - balance)) revert ErrERC20MintingFailed();\\n }\\n\\n _transferTokenOut(self, to, token);\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC721) {\\n if (!_tryTransferOutOrMintERC721(token, to, self.id)) {\\n revert ErrERC721MintingFailed();\\n }\\n return;\\n }\\n\\n if (self.erc == TokenStandard.ERC1155) {\\n if (!_tryTransferOutOrMintERC1155(token, to, self.id, self.quantity)) {\\n revert ErrERC1155MintingFailed();\\n }\\n return;\\n }\\n\\n revert ErrUnsupportedStandard();\\n }\\n\\n /**\\n *\\n * TRANSFER HELPERS\\n *\\n */\\n\\n /**\\n * @dev Transfer assets from current address to `_to` address.\\n */\\n function _transferTokenOut(TokenInfo memory self, address to, address token) private {\\n bool success;\\n if (self.erc == TokenStandard.ERC20) {\\n success = _tryTransferERC20(token, to, self.quantity);\\n } else if (self.erc == TokenStandard.ERC721) {\\n success = _tryTransferFromERC721(token, address(this), to, self.id);\\n } else {\\n revert ErrUnsupportedStandard();\\n }\\n\\n if (!success) revert ErrTokenCouldNotTransfer(self, to, token);\\n }\\n\\n /**\\n * TRANSFER ERC-20\\n */\\n\\n /**\\n * @dev Transfers ERC20 token and returns the result.\\n */\\n function _tryTransferERC20(address token, address to, uint256 quantity) private returns (bool success) {\\n bytes memory data;\\n (success, data) = token.call(abi.encodeWithSelector(IERC20.transfer.selector, to, quantity));\\n success = success && (data.length == 0 || abi.decode(data, (bool)));\\n }\\n\\n /**\\n * @dev Mints ERC20 token and returns the result.\\n */\\n function _tryMintERC20(address token, address to, uint256 quantity) private returns (bool success) {\\n // bytes4(keccak256(\\\"mint(address,uint256)\\\"))\\n (success,) = token.call(abi.encodeWithSelector(0x40c10f19, to, quantity));\\n }\\n\\n /**\\n * TRANSFER ERC-721\\n */\\n\\n /**\\n * @dev Transfers the ERC721 token out. If the transfer failed, mints the ERC721.\\n * @return success Returns `false` if both transfer and mint are failed.\\n */\\n function _tryTransferOutOrMintERC721(address token, address to, uint256 id) private returns (bool success) {\\n success = _tryTransferFromERC721(token, address(this), to, id);\\n if (!success) {\\n return _tryMintERC721(token, to, id);\\n }\\n }\\n\\n /**\\n * @dev Transfers ERC721 token and returns the result.\\n */\\n function _tryTransferFromERC721(address token, address from, address to, uint256 id) private returns (bool success) {\\n (success,) = token.call(abi.encodeWithSelector(IERC721.transferFrom.selector, from, to, id));\\n }\\n\\n /**\\n * @dev Mints ERC721 token and returns the result.\\n */\\n function _tryMintERC721(address token, address to, uint256 id) private returns (bool success) {\\n // bytes4(keccak256(\\\"mint(address,uint256)\\\"))\\n (success,) = token.call(abi.encodeWithSelector(0x40c10f19, to, id));\\n }\\n\\n /**\\n * TRANSFER ERC-1155\\n */\\n\\n /**\\n * @dev Transfers the ERC1155 token out. If the transfer failed, mints the ERC11555.\\n * @return success Returns `false` if both transfer and mint are failed.\\n */\\n function _tryTransferOutOrMintERC1155(address token, address to, uint256 id, uint256 amount) private returns (bool success) {\\n success = _tryTransferFromERC1155(token, address(this), to, id, amount);\\n if (!success) {\\n return _tryMintERC1155(token, to, id, amount);\\n }\\n }\\n\\n /**\\n * @dev Transfers ERC1155 token and returns the result.\\n */\\n function _tryTransferFromERC1155(address token, address from, address to, uint256 id, uint256 amount) private returns (bool success) {\\n (success,) = token.call(abi.encodeCall(IERC1155.safeTransferFrom, (from, to, id, amount, new bytes(0))));\\n }\\n\\n /**\\n * @dev Mints ERC1155 token and returns the result.\\n */\\n function _tryMintERC1155(address token, address to, uint256 id, uint256 amount) private returns (bool success) {\\n (success,) = token.call(abi.encodeCall(ERC1155PresetMinterPauser.mint, (to, id, amount, new bytes(0))));\\n }\\n}\\n\",\"keccak256\":\"0x56b413a42c6c39a51dc1737e735d1623b89ecdf00bacd960f70b3f18ccaa6de2\",\"license\":\"MIT\"},\"src/libraries/LibTokenOwner.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nstruct TokenOwner {\\n address addr;\\n address tokenAddr;\\n uint256 chainId;\\n}\\n\\nlibrary LibTokenOwner {\\n // keccak256(\\\"TokenOwner(address addr,address tokenAddr,uint256 chainId)\\\");\\n bytes32 public constant OWNER_TYPE_HASH = 0x353bdd8d69b9e3185b3972e08b03845c0c14a21a390215302776a7a34b0e8764;\\n\\n /**\\n * @dev Returns ownership struct hash.\\n */\\n function hash(TokenOwner memory owner) internal pure returns (bytes32 digest) {\\n // keccak256(abi.encode(OWNER_TYPE_HASH, owner.addr, owner.tokenAddr, owner.chainId))\\n assembly (\\\"memory-safe\\\") {\\n let ptr := mload(0x40)\\n mstore(ptr, OWNER_TYPE_HASH)\\n mstore(add(ptr, 0x20), mload(owner)) // owner.addr\\n mstore(add(ptr, 0x40), mload(add(owner, 0x20))) // owner.tokenAddr\\n mstore(add(ptr, 0x60), mload(add(owner, 0x40))) // owner.chainId\\n digest := keccak256(ptr, 0x80)\\n }\\n }\\n}\\n\",\"keccak256\":\"0xb104fd02056a3ed52bf06c202e87b748200320682871b1801985050587ec2d51\",\"license\":\"MIT\"},\"src/libraries/Transfer.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport \\\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"./LibTokenInfo.sol\\\";\\nimport \\\"./LibTokenOwner.sol\\\";\\n\\nlibrary Transfer {\\n using ECDSA for bytes32;\\n using LibTokenOwner for TokenOwner;\\n using LibTokenInfo for TokenInfo;\\n\\n enum Kind {\\n Deposit,\\n Withdrawal\\n }\\n\\n struct Request {\\n // For deposit request: Recipient address on Ronin network\\n // For withdrawal request: Recipient address on mainchain network\\n address recipientAddr;\\n // Token address to deposit/withdraw\\n // Value 0: native token\\n address tokenAddr;\\n TokenInfo info;\\n }\\n\\n /**\\n * @dev Converts the transfer request into the deposit receipt.\\n */\\n function into_deposit_receipt(\\n Request memory _request,\\n address _requester,\\n uint256 _id,\\n address _roninTokenAddr,\\n uint256 _roninChainId\\n ) internal view returns (Receipt memory _receipt) {\\n _receipt.id = _id;\\n _receipt.kind = Kind.Deposit;\\n _receipt.mainchain.addr = _requester;\\n _receipt.mainchain.tokenAddr = _request.tokenAddr;\\n _receipt.mainchain.chainId = block.chainid;\\n _receipt.ronin.addr = _request.recipientAddr;\\n _receipt.ronin.tokenAddr = _roninTokenAddr;\\n _receipt.ronin.chainId = _roninChainId;\\n _receipt.info = _request.info;\\n }\\n\\n /**\\n * @dev Converts the transfer request into the withdrawal receipt.\\n */\\n function into_withdrawal_receipt(\\n Request memory _request,\\n address _requester,\\n uint256 _id,\\n address _mainchainTokenAddr,\\n uint256 _mainchainId\\n ) internal view returns (Receipt memory _receipt) {\\n _receipt.id = _id;\\n _receipt.kind = Kind.Withdrawal;\\n _receipt.ronin.addr = _requester;\\n _receipt.ronin.tokenAddr = _request.tokenAddr;\\n _receipt.ronin.chainId = block.chainid;\\n _receipt.mainchain.addr = _request.recipientAddr;\\n _receipt.mainchain.tokenAddr = _mainchainTokenAddr;\\n _receipt.mainchain.chainId = _mainchainId;\\n _receipt.info = _request.info;\\n }\\n\\n struct Receipt {\\n uint256 id;\\n Kind kind;\\n TokenOwner mainchain;\\n TokenOwner ronin;\\n TokenInfo info;\\n }\\n\\n // keccak256(\\\"Receipt(uint256 id,uint8 kind,TokenOwner mainchain,TokenOwner ronin,TokenInfo info)TokenInfo(uint8 erc,uint256 id,uint256 quantity)TokenOwner(address addr,address tokenAddr,uint256 chainId)\\\");\\n bytes32 public constant TYPE_HASH = 0xb9d1fe7c9deeec5dc90a2f47ff1684239519f2545b2228d3d91fb27df3189eea;\\n\\n /**\\n * @dev Returns token info struct hash.\\n */\\n function hash(Receipt memory _receipt) internal pure returns (bytes32 digest) {\\n bytes32 hashedReceiptMainchain = _receipt.mainchain.hash();\\n bytes32 hashedReceiptRonin = _receipt.ronin.hash();\\n bytes32 hashedReceiptInfo = _receipt.info.hash();\\n\\n /*\\n * return\\n * keccak256(\\n * abi.encode(\\n * TYPE_HASH,\\n * _receipt.id,\\n * _receipt.kind,\\n * Token.hash(_receipt.mainchain),\\n * Token.hash(_receipt.ronin),\\n * Token.hash(_receipt.info)\\n * )\\n * );\\n */\\n assembly {\\n let ptr := mload(0x40)\\n mstore(ptr, TYPE_HASH)\\n mstore(add(ptr, 0x20), mload(_receipt)) // _receipt.id\\n mstore(add(ptr, 0x40), mload(add(_receipt, 0x20))) // _receipt.kind\\n mstore(add(ptr, 0x60), hashedReceiptMainchain)\\n mstore(add(ptr, 0x80), hashedReceiptRonin)\\n mstore(add(ptr, 0xa0), hashedReceiptInfo)\\n digest := keccak256(ptr, 0xc0)\\n }\\n }\\n\\n /**\\n * @dev Returns the receipt digest.\\n */\\n function receiptDigest(bytes32 _domainSeparator, bytes32 _receiptHash) internal pure returns (bytes32) {\\n return _domainSeparator.toTypedDataHash(_receiptHash);\\n }\\n}\\n\",\"keccak256\":\"0x652c72f4e9aeffed1be05759c84c538a416d2c264deef9af4c53de0a1ad04ee4\",\"license\":\"MIT\"},\"src/mainchain/MainchainGatewayV3.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.23;\\n\\nimport \\\"@openzeppelin/contracts/access/AccessControlEnumerable.sol\\\";\\nimport \\\"@openzeppelin/contracts/proxy/utils/Initializable.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC1155/utils/ERC1155Holder.sol\\\";\\nimport { IBridgeManager } from \\\"../interfaces/bridge/IBridgeManager.sol\\\";\\nimport { IBridgeManagerCallback } from \\\"../interfaces/bridge/IBridgeManagerCallback.sol\\\";\\nimport { HasContracts, ContractType } from \\\"../extensions/collections/HasContracts.sol\\\";\\nimport \\\"../extensions/WethUnwrapper.sol\\\";\\nimport \\\"../extensions/WithdrawalLimitation.sol\\\";\\nimport \\\"../libraries/Transfer.sol\\\";\\nimport \\\"../interfaces/IMainchainGatewayV3.sol\\\";\\n\\ncontract MainchainGatewayV3 is\\n WithdrawalLimitation,\\n Initializable,\\n AccessControlEnumerable,\\n ERC1155Holder,\\n IMainchainGatewayV3,\\n HasContracts,\\n IBridgeManagerCallback\\n{\\n using LibTokenInfo for TokenInfo;\\n using Transfer for Transfer.Request;\\n using Transfer for Transfer.Receipt;\\n\\n /// @dev Withdrawal unlocker role hash\\n bytes32 public constant WITHDRAWAL_UNLOCKER_ROLE = keccak256(\\\"WITHDRAWAL_UNLOCKER_ROLE\\\");\\n\\n /// @dev Wrapped native token address\\n IWETH public wrappedNativeToken;\\n /// @dev Ronin network id\\n uint256 public roninChainId;\\n /// @dev Total deposit\\n uint256 public depositCount;\\n /// @dev Domain separator\\n bytes32 internal _domainSeparator;\\n /// @dev Mapping from mainchain token => token address on Ronin network\\n mapping(address => MappedToken) internal _roninToken;\\n /// @dev Mapping from withdrawal id => withdrawal hash\\n mapping(uint256 => bytes32) public withdrawalHash;\\n /// @dev Mapping from withdrawal id => locked\\n mapping(uint256 => bool) public withdrawalLocked;\\n\\n /// @custom:deprecated Previously `_bridgeOperatorAddedBlock` (mapping(address => uint256))\\n uint256 private ______deprecatedBridgeOperatorAddedBlock;\\n /// @custom:deprecated Previously `_bridgeOperators` (uint256[])\\n uint256 private ______deprecatedBridgeOperators;\\n\\n uint96 private _totalOperatorWeight;\\n mapping(address operator => uint96 weight) private _operatorWeight;\\n WethUnwrapper public wethUnwrapper;\\n\\n constructor() {\\n _disableInitializers();\\n }\\n\\n fallback() external payable {\\n _fallback();\\n }\\n\\n receive() external payable {\\n _fallback();\\n }\\n\\n /**\\n * @dev Initializes contract storage.\\n */\\n function initialize(\\n address _roleSetter,\\n IWETH _wrappedToken,\\n uint256 _roninChainId,\\n uint256 _numerator,\\n uint256 _highTierVWNumerator,\\n uint256 _denominator,\\n // _addresses[0]: mainchainTokens\\n // _addresses[1]: roninTokens\\n // _addresses[2]: withdrawalUnlockers\\n address[][3] calldata _addresses,\\n // _thresholds[0]: highTierThreshold\\n // _thresholds[1]: lockedThreshold\\n // _thresholds[2]: unlockFeePercentages\\n // _thresholds[3]: dailyWithdrawalLimit\\n uint256[][4] calldata _thresholds,\\n TokenStandard[] calldata _standards\\n ) external payable virtual initializer {\\n _setupRole(DEFAULT_ADMIN_ROLE, _roleSetter);\\n roninChainId = _roninChainId;\\n\\n _setWrappedNativeTokenContract(_wrappedToken);\\n _updateDomainSeparator();\\n _setThreshold(_numerator, _denominator);\\n _setHighTierVoteWeightThreshold(_highTierVWNumerator, _denominator);\\n _verifyThresholds();\\n\\n if (_addresses[0].length > 0) {\\n // Map mainchain tokens to ronin tokens\\n _mapTokens(_addresses[0], _addresses[1], _standards);\\n // Sets thresholds based on the mainchain tokens\\n _setHighTierThresholds(_addresses[0], _thresholds[0]);\\n _setLockedThresholds(_addresses[0], _thresholds[1]);\\n _setUnlockFeePercentages(_addresses[0], _thresholds[2]);\\n _setDailyWithdrawalLimits(_addresses[0], _thresholds[3]);\\n }\\n\\n // Grant role for withdrawal unlocker\\n for (uint256 i; i < _addresses[2].length; i++) {\\n _grantRole(WITHDRAWAL_UNLOCKER_ROLE, _addresses[2][i]);\\n }\\n }\\n\\n function initializeV2(address bridgeManagerContract) external reinitializer(2) {\\n _setContract(ContractType.BRIDGE_MANAGER, bridgeManagerContract);\\n }\\n\\n function initializeV3() external reinitializer(3) {\\n IBridgeManager mainchainBridgeManager = IBridgeManager(getContract(ContractType.BRIDGE_MANAGER));\\n (, address[] memory operators, uint96[] memory weights) = mainchainBridgeManager.getFullBridgeOperatorInfos();\\n\\n uint96 totalWeight;\\n for (uint i; i < operators.length; i++) {\\n _operatorWeight[operators[i]] = weights[i];\\n totalWeight += weights[i];\\n }\\n _totalOperatorWeight = totalWeight;\\n }\\n\\n function initializeV4(address payable wethUnwrapper_) external reinitializer(4) {\\n wethUnwrapper = WethUnwrapper(wethUnwrapper_);\\n }\\n\\n /**\\n * @dev Receives ether without doing anything. Use this function to topup native token.\\n */\\n function receiveEther() external payable { }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function DOMAIN_SEPARATOR() external view virtual returns (bytes32) {\\n return _domainSeparator;\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function setWrappedNativeTokenContract(IWETH _wrappedToken) external virtual onlyProxyAdmin {\\n _setWrappedNativeTokenContract(_wrappedToken);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function requestDepositFor(Transfer.Request calldata _request) external payable virtual whenNotPaused {\\n _requestDepositFor(_request, msg.sender);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function requestDepositForBatch(Transfer.Request[] calldata _requests) external payable virtual whenNotPaused {\\n uint length = _requests.length;\\n for (uint256 i; i < length; ++i) {\\n _requestDepositFor(_requests[i], msg.sender);\\n }\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function submitWithdrawal(Transfer.Receipt calldata _receipt, Signature[] calldata _signatures) external virtual whenNotPaused returns (bool _locked) {\\n return _submitWithdrawal(_receipt, _signatures);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function unlockWithdrawal(Transfer.Receipt calldata receipt) external onlyRole(WITHDRAWAL_UNLOCKER_ROLE) {\\n bytes32 _receiptHash = receipt.hash();\\n if (withdrawalHash[receipt.id] != receipt.hash()) {\\n revert ErrInvalidReceipt();\\n }\\n if (!withdrawalLocked[receipt.id]) {\\n revert ErrQueryForApprovedWithdrawal();\\n }\\n delete withdrawalLocked[receipt.id];\\n emit WithdrawalUnlocked(_receiptHash, receipt);\\n\\n address token = receipt.mainchain.tokenAddr;\\n if (receipt.info.erc == TokenStandard.ERC20) {\\n TokenInfo memory feeInfo = receipt.info;\\n feeInfo.quantity = _computeFeePercentage(receipt.info.quantity, unlockFeePercentages[token]);\\n TokenInfo memory withdrawInfo = receipt.info;\\n withdrawInfo.quantity = receipt.info.quantity - feeInfo.quantity;\\n\\n feeInfo.handleAssetOut(payable(msg.sender), token, wrappedNativeToken);\\n withdrawInfo.handleAssetOut(payable(receipt.mainchain.addr), token, wrappedNativeToken);\\n } else {\\n receipt.info.handleAssetOut(payable(receipt.mainchain.addr), token, wrappedNativeToken);\\n }\\n\\n emit Withdrew(_receiptHash, receipt);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function mapTokens(address[] calldata _mainchainTokens, address[] calldata _roninTokens, TokenStandard[] calldata _standards) external virtual onlyProxyAdmin {\\n if (_mainchainTokens.length == 0) revert ErrEmptyArray();\\n _mapTokens(_mainchainTokens, _roninTokens, _standards);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function mapTokensAndThresholds(\\n address[] calldata _mainchainTokens,\\n address[] calldata _roninTokens,\\n TokenStandard[] calldata _standards,\\n // _thresholds[0]: highTierThreshold\\n // _thresholds[1]: lockedThreshold\\n // _thresholds[2]: unlockFeePercentages\\n // _thresholds[3]: dailyWithdrawalLimit\\n uint256[][4] calldata _thresholds\\n ) external virtual onlyProxyAdmin {\\n if (_mainchainTokens.length == 0) revert ErrEmptyArray();\\n _mapTokens(_mainchainTokens, _roninTokens, _standards);\\n _setHighTierThresholds(_mainchainTokens, _thresholds[0]);\\n _setLockedThresholds(_mainchainTokens, _thresholds[1]);\\n _setUnlockFeePercentages(_mainchainTokens, _thresholds[2]);\\n _setDailyWithdrawalLimits(_mainchainTokens, _thresholds[3]);\\n }\\n\\n /**\\n * @inheritdoc IMainchainGatewayV3\\n */\\n function getRoninToken(address mainchainToken) public view returns (MappedToken memory token) {\\n token = _roninToken[mainchainToken];\\n if (token.tokenAddr == address(0)) revert ErrUnsupportedToken();\\n }\\n\\n /**\\n * @dev Maps mainchain tokens to Ronin network.\\n *\\n * Requirement:\\n * - The arrays have the same length.\\n *\\n * Emits the `TokenMapped` event.\\n *\\n */\\n function _mapTokens(address[] calldata mainchainTokens, address[] calldata roninTokens, TokenStandard[] calldata standards) internal virtual {\\n if (!(mainchainTokens.length == roninTokens.length && mainchainTokens.length == standards.length)) revert ErrLengthMismatch(msg.sig);\\n\\n for (uint256 i; i < mainchainTokens.length; ++i) {\\n _roninToken[mainchainTokens[i]].tokenAddr = roninTokens[i];\\n _roninToken[mainchainTokens[i]].erc = standards[i];\\n }\\n\\n emit TokenMapped(mainchainTokens, roninTokens, standards);\\n }\\n\\n /**\\n * @dev Submits withdrawal receipt.\\n *\\n * Requirements:\\n * - The receipt kind is withdrawal.\\n * - The receipt is to withdraw on this chain.\\n * - The receipt is not used to withdraw before.\\n * - The withdrawal is not reached the limit threshold.\\n * - The signer weight total is larger than or equal to the minimum threshold.\\n * - The signature signers are in order.\\n *\\n * Emits the `Withdrew` once the assets are released.\\n *\\n */\\n function _submitWithdrawal(Transfer.Receipt calldata receipt, Signature[] memory signatures) internal virtual returns (bool locked) {\\n uint256 id = receipt.id;\\n uint256 quantity = receipt.info.quantity;\\n address tokenAddr = receipt.mainchain.tokenAddr;\\n\\n receipt.info.validate();\\n if (receipt.kind != Transfer.Kind.Withdrawal) revert ErrInvalidReceiptKind();\\n\\n if (receipt.mainchain.chainId != block.chainid) {\\n revert ErrInvalidChainId(msg.sig, receipt.mainchain.chainId, block.chainid);\\n }\\n\\n MappedToken memory token = getRoninToken(receipt.mainchain.tokenAddr);\\n\\n if (!(token.erc == receipt.info.erc && token.tokenAddr == receipt.ronin.tokenAddr && receipt.ronin.chainId == roninChainId)) {\\n revert ErrInvalidReceipt();\\n }\\n\\n if (withdrawalHash[id] != 0) revert ErrQueryForProcessedWithdrawal();\\n\\n if (!(receipt.info.erc == TokenStandard.ERC721 || !_reachedWithdrawalLimit(tokenAddr, quantity))) {\\n revert ErrReachedDailyWithdrawalLimit();\\n }\\n\\n bytes32 receiptHash = receipt.hash();\\n bytes32 receiptDigest = Transfer.receiptDigest(_domainSeparator, receiptHash);\\n\\n uint256 minimumWeight;\\n (minimumWeight, locked) = _computeMinVoteWeight(receipt.info.erc, tokenAddr, quantity);\\n\\n {\\n bool passed;\\n address signer;\\n address lastSigner;\\n Signature memory sig;\\n uint256 weight;\\n for (uint256 i; i < signatures.length; i++) {\\n sig = signatures[i];\\n signer = ecrecover(receiptDigest, sig.v, sig.r, sig.s);\\n if (lastSigner >= signer) revert ErrInvalidOrder(msg.sig);\\n\\n lastSigner = signer;\\n\\n weight += _getWeight(signer);\\n if (weight >= minimumWeight) {\\n passed = true;\\n break;\\n }\\n }\\n\\n if (!passed) revert ErrQueryForInsufficientVoteWeight();\\n withdrawalHash[id] = receiptHash;\\n }\\n\\n if (locked) {\\n withdrawalLocked[id] = true;\\n emit WithdrawalLocked(receiptHash, receipt);\\n return locked;\\n }\\n\\n _recordWithdrawal(tokenAddr, quantity);\\n receipt.info.handleAssetOut(payable(receipt.mainchain.addr), tokenAddr, wrappedNativeToken);\\n emit Withdrew(receiptHash, receipt);\\n }\\n\\n /**\\n * @dev Requests deposit made by `_requester` address.\\n *\\n * Requirements:\\n * - The token info is valid.\\n * - The `msg.value` is 0 while depositing ERC20 token.\\n * - The `msg.value` is equal to deposit quantity while depositing native token.\\n *\\n * Emits the `DepositRequested` event.\\n *\\n */\\n function _requestDepositFor(Transfer.Request memory _request, address _requester) internal virtual {\\n MappedToken memory _token;\\n address _roninWeth = address(wrappedNativeToken);\\n\\n _request.info.validate();\\n if (_request.tokenAddr == address(0)) {\\n if (_request.info.quantity != msg.value) revert ErrInvalidRequest();\\n\\n _token = getRoninToken(_roninWeth);\\n if (_token.erc != _request.info.erc) revert ErrInvalidTokenStandard();\\n\\n _request.tokenAddr = _roninWeth;\\n } else {\\n if (msg.value != 0) revert ErrInvalidRequest();\\n\\n _token = getRoninToken(_request.tokenAddr);\\n if (_token.erc != _request.info.erc) revert ErrInvalidTokenStandard();\\n\\n _request.info.handleAssetIn(_requester, _request.tokenAddr);\\n // Withdraw if token is WETH\\n // The withdraw of WETH must go via `WethUnwrapper`, because `WETH.withdraw` only sends 2300 gas, which is insufficient when recipient is a proxy.\\n if (_roninWeth == _request.tokenAddr) {\\n wrappedNativeToken.approve(address(wethUnwrapper), _request.info.quantity);\\n wethUnwrapper.unwrap(_request.info.quantity);\\n }\\n }\\n\\n uint256 _depositId = depositCount++;\\n Transfer.Receipt memory _receipt = _request.into_deposit_receipt(_requester, _depositId, _token.tokenAddr, roninChainId);\\n\\n emit DepositRequested(_receipt.hash(), _receipt);\\n }\\n\\n /**\\n * @dev Returns the minimum vote weight for the token.\\n */\\n function _computeMinVoteWeight(TokenStandard _erc, address _token, uint256 _quantity) internal virtual returns (uint256 _weight, bool _locked) {\\n uint256 _totalWeight = _getTotalWeight();\\n _weight = _minimumVoteWeight(_totalWeight);\\n if (_erc == TokenStandard.ERC20) {\\n if (highTierThreshold[_token] <= _quantity) {\\n _weight = _highTierVoteWeight(_totalWeight);\\n }\\n _locked = _lockedWithdrawalRequest(_token, _quantity);\\n }\\n }\\n\\n /**\\n * @dev Update domain seperator.\\n */\\n function _updateDomainSeparator() internal {\\n /*\\n * _domainSeparator = keccak256(\\n * abi.encode(\\n * keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\"),\\n * keccak256(\\\"MainchainGatewayV2\\\"),\\n * keccak256(\\\"2\\\"),\\n * block.chainid,\\n * address(this)\\n * )\\n * );\\n */\\n assembly {\\n let ptr := mload(0x40)\\n // keccak256(\\\"EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)\\\")\\n mstore(ptr, 0x8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f)\\n // keccak256(\\\"MainchainGatewayV2\\\")\\n mstore(add(ptr, 0x20), 0x159f52c1e3a2b6a6aad3950adf713516211484e0516dad685ea662a094b7c43b)\\n // keccak256(\\\"2\\\")\\n mstore(add(ptr, 0x40), 0xad7c5bef027816a800da1736444fb58a807ef4c9603b7848673f7e3a68eb14a5)\\n mstore(add(ptr, 0x60), chainid())\\n mstore(add(ptr, 0x80), address())\\n sstore(_domainSeparator.slot, keccak256(ptr, 0xa0))\\n }\\n }\\n\\n /**\\n * @dev Sets the WETH contract.\\n *\\n * Emits the `WrappedNativeTokenContractUpdated` event.\\n *\\n */\\n function _setWrappedNativeTokenContract(IWETH _wrapedToken) internal {\\n wrappedNativeToken = _wrapedToken;\\n emit WrappedNativeTokenContractUpdated(_wrapedToken);\\n }\\n\\n /**\\n * @dev Receives ETH from WETH or creates deposit request if sender is not WETH or WETHUnwrapper.\\n */\\n function _fallback() internal virtual {\\n if (msg.sender == address(wrappedNativeToken) || msg.sender == address(wethUnwrapper)) {\\n return;\\n }\\n\\n _createDepositOnFallback();\\n }\\n\\n /**\\n * @dev Creates deposit request.\\n */\\n function _createDepositOnFallback() internal virtual whenNotPaused {\\n Transfer.Request memory _request;\\n _request.recipientAddr = msg.sender;\\n _request.info.quantity = msg.value;\\n _requestDepositFor(_request, _request.recipientAddr);\\n }\\n\\n /**\\n * @inheritdoc GatewayV3\\n */\\n function _getTotalWeight() internal view override returns (uint256) {\\n return _totalOperatorWeight;\\n }\\n\\n /**\\n * @dev Returns the weight of an address.\\n */\\n function _getWeight(address addr) internal view returns (uint256) {\\n return _operatorWeight[addr];\\n }\\n\\n ///////////////////////////////////////////////\\n // CALLBACKS\\n ///////////////////////////////////////////////\\n\\n /**\\n * @inheritdoc IBridgeManagerCallback\\n */\\n function onBridgeOperatorsAdded(\\n address[] calldata operators,\\n uint96[] calldata weights,\\n bool[] memory addeds\\n ) external onlyContract(ContractType.BRIDGE_MANAGER) returns (bytes4) {\\n uint256 length = operators.length;\\n if (length != addeds.length || length != weights.length) revert ErrLengthMismatch(msg.sig);\\n if (length == 0) {\\n return IBridgeManagerCallback.onBridgeOperatorsAdded.selector;\\n }\\n\\n for (uint256 i; i < length; ++i) {\\n unchecked {\\n if (addeds[i]) {\\n _totalOperatorWeight += weights[i];\\n _operatorWeight[operators[i]] = weights[i];\\n }\\n }\\n }\\n\\n return IBridgeManagerCallback.onBridgeOperatorsAdded.selector;\\n }\\n\\n /**\\n * @inheritdoc IBridgeManagerCallback\\n */\\n function onBridgeOperatorsRemoved(address[] calldata operators, bool[] calldata removeds) external onlyContract(ContractType.BRIDGE_MANAGER) returns (bytes4) {\\n uint length = operators.length;\\n if (length != removeds.length) revert ErrLengthMismatch(msg.sig);\\n if (length == 0) {\\n return IBridgeManagerCallback.onBridgeOperatorsRemoved.selector;\\n }\\n\\n uint96 totalRemovingWeight;\\n for (uint i; i < length; ++i) {\\n unchecked {\\n if (removeds[i]) {\\n totalRemovingWeight += _operatorWeight[operators[i]];\\n delete _operatorWeight[operators[i]];\\n }\\n }\\n }\\n\\n _totalOperatorWeight -= totalRemovingWeight;\\n\\n return IBridgeManagerCallback.onBridgeOperatorsRemoved.selector;\\n }\\n\\n function supportsInterface(bytes4 interfaceId) public view override(AccessControlEnumerable, IERC165, ERC1155Receiver) returns (bool) {\\n return\\n interfaceId == type(IMainchainGatewayV3).interfaceId || interfaceId == type(IBridgeManagerCallback).interfaceId || super.supportsInterface(interfaceId);\\n }\\n}\\n\",\"keccak256\":\"0xcb718591e95d9de1f4b07a6a12d9e6bee4c16822e8dd8885b1d6affeda2cc0f9\",\"license\":\"MIT\"},\"src/utils/CommonErrors.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { ContractType } from \\\"./ContractType.sol\\\";\\nimport { RoleAccess } from \\\"./RoleAccess.sol\\\";\\n\\nerror ErrSyncTooFarPeriod(uint256 period, uint256 latestRewardedPeriod);\\n/**\\n * @dev Error thrown when an address is expected to be an already created externally owned account (EOA).\\n * This error indicates that the provided address is invalid for certain contract operations that require already created EOA.\\n */\\nerror ErrAddressIsNotCreatedEOA(address addr, bytes32 codehash);\\n/**\\n * @dev Error raised when a bridge operator update operation fails.\\n * @param bridgeOperator The address of the bridge operator that failed to update.\\n */\\nerror ErrBridgeOperatorUpdateFailed(address bridgeOperator);\\n/**\\n * @dev Error thrown when attempting to add a bridge operator that already exists in the contract.\\n * This error indicates that the provided bridge operator address is already registered as a bridge operator in the contract.\\n */\\nerror ErrBridgeOperatorAlreadyExisted(address bridgeOperator);\\n/**\\n * @dev The error indicating an unsupported interface.\\n * @param interfaceId The bytes4 interface identifier that is not supported.\\n * @param addr The address where the unsupported interface was encountered.\\n */\\nerror ErrUnsupportedInterface(bytes4 interfaceId, address addr);\\n/**\\n * @dev Error thrown when the return data from a callback function is invalid.\\n * @param callbackFnSig The signature of the callback function that returned invalid data.\\n * @param register The address of the register where the callback function was invoked.\\n * @param returnData The invalid return data received from the callback function.\\n */\\nerror ErrInvalidReturnData(bytes4 callbackFnSig, address register, bytes returnData);\\n/**\\n * @dev Error of set to non-contract.\\n */\\nerror ErrZeroCodeContract(address addr);\\n/**\\n * @dev Error indicating that arguments are invalid.\\n */\\nerror ErrInvalidArguments(bytes4 msgSig);\\n/**\\n * @dev Error indicating that given address is null when it should not.\\n */\\nerror ErrZeroAddress(bytes4 msgSig);\\n/**\\n * @dev Error indicating that the provided threshold is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that the invalid threshold applies to.\\n */\\nerror ErrInvalidThreshold(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a function can only be called by the contract itself.\\n * @param msgSig The function signature (bytes4) that can only be called by the contract itself.\\n */\\nerror ErrOnlySelfCall(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4) that the caller is unauthorized to perform.\\n * @param expectedRole The role required to perform the function.\\n */\\nerror ErrUnauthorized(bytes4 msgSig, RoleAccess expectedRole);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4) that the caller is unauthorized to perform.\\n */\\nerror ErrUnauthorizedCall(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the caller is unauthorized to perform a specific function.\\n * @param msgSig The function signature (bytes4).\\n * @param expectedContractType The contract type required to perform the function.\\n * @param actual The actual address that called to the function.\\n */\\nerror ErrUnexpectedInternalCall(bytes4 msgSig, ContractType expectedContractType, address actual);\\n\\n/**\\n * @dev Error indicating that an array is empty when it should contain elements.\\n */\\nerror ErrEmptyArray();\\n\\n/**\\n * @dev Error indicating a mismatch in the length of input parameters or arrays for a specific function.\\n * @param msgSig The function signature (bytes4) that has a length mismatch.\\n */\\nerror ErrLengthMismatch(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a proxy call to an external contract has failed.\\n * @param msgSig The function signature (bytes4) of the proxy call that failed.\\n * @param extCallSig The function signature (bytes4) of the external contract call that failed.\\n */\\nerror ErrProxyCallFailed(bytes4 msgSig, bytes4 extCallSig);\\n\\n/**\\n * @dev Error indicating that a function tried to call a precompiled contract that is not allowed.\\n * @param msgSig The function signature (bytes4) that attempted to call a precompiled contract.\\n */\\nerror ErrCallPrecompiled(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a native token transfer has failed.\\n * @param msgSig The function signature (bytes4) of the token transfer that failed.\\n */\\nerror ErrNativeTransferFailed(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that an order is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid order.\\n */\\nerror ErrInvalidOrder(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the chain ID is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid chain ID.\\n * @param actual Current chain ID that executing function.\\n * @param expected Expected chain ID required for the tx to success.\\n */\\nerror ErrInvalidChainId(bytes4 msgSig, uint256 actual, uint256 expected);\\n\\n/**\\n * @dev Error indicating that a vote type is not supported.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an unsupported vote type.\\n */\\nerror ErrUnsupportedVoteType(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that the proposal nonce is invalid.\\n * @param msgSig The function signature (bytes4) of the operation that encountered an invalid proposal nonce.\\n */\\nerror ErrInvalidProposalNonce(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a voter has already voted.\\n * @param voter The address of the voter who has already voted.\\n */\\nerror ErrAlreadyVoted(address voter);\\n\\n/**\\n * @dev Error indicating that a signature is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that encountered an invalid signature.\\n */\\nerror ErrInvalidSignatures(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a relay call has failed.\\n * @param msgSig The function signature (bytes4) of the relay call that failed.\\n */\\nerror ErrRelayFailed(bytes4 msgSig);\\n/**\\n * @dev Error indicating that a vote weight is invalid for a specific function signature.\\n * @param msgSig The function signature (bytes4) that encountered an invalid vote weight.\\n */\\nerror ErrInvalidVoteWeight(bytes4 msgSig);\\n\\n/**\\n * @dev Error indicating that a query was made for an outdated bridge operator set.\\n */\\nerror ErrQueryForOutdatedBridgeOperatorSet();\\n\\n/**\\n * @dev Error indicating that a request is invalid.\\n */\\nerror ErrInvalidRequest();\\n\\n/**\\n * @dev Error indicating that a token standard is invalid.\\n */\\nerror ErrInvalidTokenStandard();\\n\\n/**\\n * @dev Error indicating that a token is not supported.\\n */\\nerror ErrUnsupportedToken();\\n\\n/**\\n * @dev Error indicating that a receipt kind is invalid.\\n */\\nerror ErrInvalidReceiptKind();\\n\\n/**\\n * @dev Error indicating that a receipt is invalid.\\n */\\nerror ErrInvalidReceipt();\\n\\n/**\\n * @dev Error indicating that an address is not payable.\\n */\\nerror ErrNonpayableAddress(address);\\n\\n/**\\n * @dev Error indicating that the period is already processed, i.e. scattered reward.\\n */\\nerror ErrPeriodAlreadyProcessed(uint256 requestingPeriod, uint256 latestPeriod);\\n\\n/**\\n * @dev Error thrown when an invalid vote hash is provided.\\n */\\nerror ErrInvalidVoteHash();\\n\\n/**\\n * @dev Error thrown when querying for an empty vote.\\n */\\nerror ErrQueryForEmptyVote();\\n\\n/**\\n * @dev Error thrown when querying for an expired vote.\\n */\\nerror ErrQueryForExpiredVote();\\n\\n/**\\n * @dev Error thrown when querying for a non-existent vote.\\n */\\nerror ErrQueryForNonExistentVote();\\n\\n/**\\n * @dev Error indicating that the method is only called once per block.\\n */\\nerror ErrOncePerBlock();\\n\\n/**\\n * @dev Error of method caller must be coinbase\\n */\\nerror ErrCallerMustBeCoinbase();\\n\\n/**\\n * @dev Error thrown when an invalid proposal is encountered.\\n * @param actual The actual value of the proposal.\\n * @param expected The expected value of the proposal.\\n */\\nerror ErrInvalidProposal(bytes32 actual, bytes32 expected);\\n\\n/**\\n * @dev Error of proposal is not approved for executing.\\n */\\nerror ErrProposalNotApproved();\\n\\n/**\\n * @dev Error of the caller is not the specified executor.\\n */\\nerror ErrInvalidExecutor();\\n\\n/**\\n * @dev Error of the `caller` to relay is not the specified `executor`.\\n */\\nerror ErrNonExecutorCannotRelay(address executor, address caller);\\n\",\"keccak256\":\"0x0d9e2fd98f6b704273faad707ed9eadbd4c79551ee3f902bff5b29213a204679\",\"license\":\"MIT\"},\"src/utils/ContractType.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nenum ContractType {\\n UNKNOWN, // 0\\n PAUSE_ENFORCER, // 1\\n BRIDGE, // 2\\n BRIDGE_TRACKING, // 3\\n GOVERNANCE_ADMIN, // 4\\n MAINTENANCE, // 5\\n SLASH_INDICATOR, // 6\\n STAKING_VESTING, // 7\\n VALIDATOR, // 8\\n STAKING, // 9\\n RONIN_TRUSTED_ORGANIZATION, // 10\\n BRIDGE_MANAGER, // 11\\n BRIDGE_SLASH, // 12\\n BRIDGE_REWARD, // 13\\n FAST_FINALITY_TRACKING, // 14\\n PROFILE // 15\\n\\n}\\n\",\"keccak256\":\"0xec088aa939cd885dbe84e944942d7ea674e1fff8802c1f2ae5d8e84e4578357d\",\"license\":\"MIT\"},\"src/utils/IdentityGuard.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nimport { AddressArrayUtils } from \\\"../libraries/AddressArrayUtils.sol\\\";\\nimport { IERC165 } from \\\"@openzeppelin/contracts/utils/introspection/IERC165.sol\\\";\\nimport { TransparentUpgradeableProxyV2 } from \\\"../extensions/TransparentUpgradeableProxyV2.sol\\\";\\nimport { ErrAddressIsNotCreatedEOA, ErrZeroAddress, ErrOnlySelfCall, ErrZeroCodeContract, ErrUnsupportedInterface } from \\\"./CommonErrors.sol\\\";\\n\\nabstract contract IdentityGuard {\\n using AddressArrayUtils for address[];\\n\\n /// @dev value is equal to keccak256(abi.encode())\\n /// @dev see: https://eips.ethereum.org/EIPS/eip-1052\\n bytes32 internal constant CREATED_ACCOUNT_HASH = 0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470;\\n\\n /**\\n * @dev Modifier to restrict functions to only be called by this contract.\\n * @dev Reverts if the caller is not this contract.\\n */\\n modifier onlySelfCall() virtual {\\n _requireSelfCall();\\n _;\\n }\\n\\n /**\\n * @dev Modifier to ensure that the elements in the `arr` array are non-duplicates.\\n * It calls the internal `_checkDuplicate` function to perform the duplicate check.\\n *\\n * Requirements:\\n * - The elements in the `arr` array must not contain any duplicates.\\n */\\n modifier nonDuplicate(address[] memory arr) virtual {\\n _requireNonDuplicate(arr);\\n _;\\n }\\n\\n /**\\n * @dev Internal method to check the method caller.\\n * @dev Reverts if the method caller is not this contract.\\n */\\n function _requireSelfCall() internal view virtual {\\n if (msg.sender != address(this)) revert ErrOnlySelfCall(msg.sig);\\n }\\n\\n /**\\n * @dev Internal function to check if a contract address has code.\\n * @param addr The address of the contract to check.\\n * @dev Throws an error if the contract address has no code.\\n */\\n function _requireHasCode(address addr) internal view {\\n if (addr.code.length == 0) revert ErrZeroCodeContract(addr);\\n }\\n\\n /**\\n * @dev Checks if an address is zero and reverts if it is.\\n * @param addr The address to check.\\n */\\n function _requireNonZeroAddress(address addr) internal pure {\\n if (addr == address(0)) revert ErrZeroAddress(msg.sig);\\n }\\n\\n /**\\n * @dev Check if arr is empty and revert if it is.\\n * Checks if an array contains any duplicate addresses and reverts if duplicates are found.\\n * @param arr The array of addresses to check.\\n */\\n function _requireNonDuplicate(address[] memory arr) internal pure {\\n if (arr.hasDuplicate()) revert AddressArrayUtils.ErrDuplicated(msg.sig);\\n }\\n\\n /**\\n * @dev Internal function to require that the provided address is a created externally owned account (EOA).\\n * This internal function is used to ensure that the provided address is a valid externally owned account (EOA).\\n * It checks the codehash of the address against a predefined constant to confirm that the address is a created EOA.\\n * @notice This method only works with non-state EOA accounts\\n */\\n function _requireCreatedEOA(address addr) internal view {\\n _requireNonZeroAddress(addr);\\n bytes32 codehash = addr.codehash;\\n if (codehash != CREATED_ACCOUNT_HASH) revert ErrAddressIsNotCreatedEOA(addr, codehash);\\n }\\n\\n /**\\n * @dev Internal function to require that the specified contract supports the given interface. This method handle in\\n * both case that the callee is either or not the proxy admin of the caller. If the contract does not support the\\n * interface `interfaceId` or EIP165, a revert with the corresponding error message is triggered.\\n *\\n * @param contractAddr The address of the contract to check for interface support.\\n * @param interfaceId The interface ID to check for support.\\n */\\n function _requireSupportsInterface(address contractAddr, bytes4 interfaceId) internal view {\\n bytes memory supportsInterfaceParams = abi.encodeCall(IERC165.supportsInterface, (interfaceId));\\n (bool success, bytes memory returnOrRevertData) = contractAddr.staticcall(supportsInterfaceParams);\\n if (!success) {\\n (success, returnOrRevertData) = contractAddr.staticcall(abi.encodeCall(TransparentUpgradeableProxyV2.functionDelegateCall, (supportsInterfaceParams)));\\n if (!success) revert ErrUnsupportedInterface(interfaceId, contractAddr);\\n }\\n if (!abi.decode(returnOrRevertData, (bool))) revert ErrUnsupportedInterface(interfaceId, contractAddr);\\n }\\n}\\n\",\"keccak256\":\"0x546ab4c9cdb0e7f8e650f140349225305ba1d0706dcaceeb9180c96aa765da59\",\"license\":\"MIT\"},\"src/utils/RoleAccess.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\npragma solidity ^0.8.0;\\n\\nenum RoleAccess {\\n UNKNOWN, // 0\\n ADMIN, // 1\\n COINBASE, // 2\\n GOVERNOR, // 3\\n CANDIDATE_ADMIN, // 4\\n WITHDRAWAL_MIGRATOR, // 5\\n __DEPRECATED_BRIDGE_OPERATOR, // 6\\n BLOCK_PRODUCER, // 7\\n VALIDATOR_CANDIDATE, // 8\\n CONSENSUS, // 9\\n TREASURY // 10\\n\\n}\\n\",\"keccak256\":\"0x671ff40dd874c508c4b3879a580996c7987fc018669256f47151e420a55c0e51\",\"license\":\"MIT\"}},\"version\":1}", + "nonce": 57, + "numDeployments": 4, "storageLayout": { "storage": [ { - "astId": 58352, + "astId": 58349, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_paused", "offset": 0, @@ -2711,7 +2761,7 @@ "type": "t_bool" }, { - "astId": 103479, + "astId": 101999, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_num", "offset": 0, @@ -2719,7 +2769,7 @@ "type": "t_uint256" }, { - "astId": 103481, + "astId": 102001, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_denom", "offset": 0, @@ -2727,7 +2777,7 @@ "type": "t_uint256" }, { - "astId": 103483, + "astId": 102003, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "______deprecated", "offset": 0, @@ -2735,7 +2785,7 @@ "type": "t_address" }, { - "astId": 103485, + "astId": 102005, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "nonce", "offset": 0, @@ -2743,7 +2793,7 @@ "type": "t_uint256" }, { - "astId": 103487, + "astId": 102007, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "emergencyPauser", "offset": 0, @@ -2751,7 +2801,7 @@ "type": "t_address" }, { - "astId": 103492, + "astId": 102012, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "______gap", "offset": 0, @@ -2759,7 +2809,7 @@ "type": "t_array(t_uint256)49_storage" }, { - "astId": 104214, + "astId": 102734, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_highTierVWNum", "offset": 0, @@ -2767,7 +2817,7 @@ "type": "t_uint256" }, { - "astId": 104216, + "astId": 102736, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_highTierVWDenom", "offset": 0, @@ -2775,7 +2825,7 @@ "type": "t_uint256" }, { - "astId": 104221, + "astId": 102741, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "highTierThreshold", "offset": 0, @@ -2783,7 +2833,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104226, + "astId": 102746, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "lockedThreshold", "offset": 0, @@ -2791,7 +2841,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104231, + "astId": 102751, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "unlockFeePercentages", "offset": 0, @@ -2799,7 +2849,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104236, + "astId": 102756, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "dailyWithdrawalLimit", "offset": 0, @@ -2807,7 +2857,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104241, + "astId": 102761, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "lastSyncedWithdrawal", "offset": 0, @@ -2815,7 +2865,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104246, + "astId": 102766, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "lastDateSynced", "offset": 0, @@ -2823,7 +2873,7 @@ "type": "t_mapping(t_address,t_uint256)" }, { - "astId": 104251, + "astId": 102771, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "______gap", "offset": 0, @@ -2831,7 +2881,7 @@ "type": "t_array(t_uint256)50_storage" }, { - "astId": 58190, + "astId": 58187, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_initialized", "offset": 0, @@ -2839,7 +2889,7 @@ "type": "t_uint8" }, { - "astId": 58193, + "astId": 58190, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_initializing", "offset": 1, @@ -2847,31 +2897,31 @@ "type": "t_bool" }, { - "astId": 56841, + "astId": 56838, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_roles", "offset": 0, "slot": "114", - "type": "t_mapping(t_bytes32,t_struct(RoleData)56836_storage)" + "type": "t_mapping(t_bytes32,t_struct(RoleData)56833_storage)" }, { - "astId": 57155, + "astId": 57152, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_roleMembers", "offset": 0, "slot": "115", - "type": "t_mapping(t_bytes32,t_struct(AddressSet)63339_storage)" + "type": "t_mapping(t_bytes32,t_struct(AddressSet)63336_storage)" }, { - "astId": 114774, + "astId": 113073, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "wrappedNativeToken", "offset": 0, "slot": "116", - "type": "t_contract(IWETH)109972" + "type": "t_contract(IWETH)108470" }, { - "astId": 114777, + "astId": 113076, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "roninChainId", "offset": 0, @@ -2879,7 +2929,7 @@ "type": "t_uint256" }, { - "astId": 114780, + "astId": 113079, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "depositCount", "offset": 0, @@ -2887,7 +2937,7 @@ "type": "t_uint256" }, { - "astId": 114783, + "astId": 113082, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_domainSeparator", "offset": 0, @@ -2895,15 +2945,15 @@ "type": "t_bytes32" }, { - "astId": 114789, + "astId": 113088, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_roninToken", "offset": 0, "slot": "120", - "type": "t_mapping(t_address,t_struct(MappedToken)110662_storage)" + "type": "t_mapping(t_address,t_struct(MappedToken)109160_storage)" }, { - "astId": 114794, + "astId": 113093, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "withdrawalHash", "offset": 0, @@ -2911,7 +2961,7 @@ "type": "t_mapping(t_uint256,t_bytes32)" }, { - "astId": 114799, + "astId": 113098, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "withdrawalLocked", "offset": 0, @@ -2919,7 +2969,7 @@ "type": "t_mapping(t_uint256,t_bool)" }, { - "astId": 114802, + "astId": 113101, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "______deprecatedBridgeOperatorAddedBlock", "offset": 0, @@ -2927,7 +2977,7 @@ "type": "t_uint256" }, { - "astId": 114805, + "astId": 113104, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "______deprecatedBridgeOperators", "offset": 0, @@ -2935,7 +2985,7 @@ "type": "t_uint256" }, { - "astId": 114807, + "astId": 113106, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_totalOperatorWeight", "offset": 0, @@ -2943,7 +2993,7 @@ "type": "t_uint96" }, { - "astId": 114811, + "astId": 113110, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_operatorWeight", "offset": 0, @@ -2951,12 +3001,12 @@ "type": "t_mapping(t_address,t_uint96)" }, { - "astId": 114814, + "astId": 113113, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "wethUnwrapper", "offset": 0, "slot": "127", - "type": "t_contract(WethUnwrapper)104152" + "type": "t_contract(WethUnwrapper)102672" } ], "types": { @@ -2993,17 +3043,17 @@ "label": "bytes32", "numberOfBytes": "32" }, - "t_contract(IWETH)109972": { + "t_contract(IWETH)108470": { "encoding": "inplace", "label": "contract IWETH", "numberOfBytes": "20" }, - "t_contract(WethUnwrapper)104152": { + "t_contract(WethUnwrapper)102672": { "encoding": "inplace", "label": "contract WethUnwrapper", "numberOfBytes": "20" }, - "t_enum(TokenStandard)112266": { + "t_enum(TokenStandard)110645": { "encoding": "inplace", "label": "enum TokenStandard", "numberOfBytes": "1" @@ -3015,12 +3065,12 @@ "numberOfBytes": "32", "value": "t_bool" }, - "t_mapping(t_address,t_struct(MappedToken)110662_storage)": { + "t_mapping(t_address,t_struct(MappedToken)109160_storage)": { "encoding": "mapping", "key": "t_address", "label": "mapping(address => struct MappedTokenConsumer.MappedToken)", "numberOfBytes": "32", - "value": "t_struct(MappedToken)110662_storage" + "value": "t_struct(MappedToken)109160_storage" }, "t_mapping(t_address,t_uint256)": { "encoding": "mapping", @@ -3036,19 +3086,19 @@ "numberOfBytes": "32", "value": "t_uint96" }, - "t_mapping(t_bytes32,t_struct(AddressSet)63339_storage)": { + "t_mapping(t_bytes32,t_struct(AddressSet)63336_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct EnumerableSet.AddressSet)", "numberOfBytes": "32", - "value": "t_struct(AddressSet)63339_storage" + "value": "t_struct(AddressSet)63336_storage" }, - "t_mapping(t_bytes32,t_struct(RoleData)56836_storage)": { + "t_mapping(t_bytes32,t_struct(RoleData)56833_storage)": { "encoding": "mapping", "key": "t_bytes32", "label": "mapping(bytes32 => struct AccessControl.RoleData)", "numberOfBytes": "32", - "value": "t_struct(RoleData)56836_storage" + "value": "t_struct(RoleData)56833_storage" }, "t_mapping(t_bytes32,t_uint256)": { "encoding": "mapping", @@ -3071,36 +3121,36 @@ "numberOfBytes": "32", "value": "t_bytes32" }, - "t_struct(AddressSet)63339_storage": { + "t_struct(AddressSet)63336_storage": { "encoding": "inplace", "label": "struct EnumerableSet.AddressSet", "numberOfBytes": "64", "members": [ { - "astId": 63338, + "astId": 63335, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_inner", "offset": 0, "slot": "0", - "type": "t_struct(Set)63038_storage" + "type": "t_struct(Set)63035_storage" } ] }, - "t_struct(MappedToken)110662_storage": { + "t_struct(MappedToken)109160_storage": { "encoding": "inplace", "label": "struct MappedTokenConsumer.MappedToken", "numberOfBytes": "32", "members": [ { - "astId": 110659, + "astId": 109157, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "erc", "offset": 0, "slot": "0", - "type": "t_enum(TokenStandard)112266" + "type": "t_enum(TokenStandard)110645" }, { - "astId": 110661, + "astId": 109159, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "tokenAddr", "offset": 1, @@ -3109,13 +3159,13 @@ } ] }, - "t_struct(RoleData)56836_storage": { + "t_struct(RoleData)56833_storage": { "encoding": "inplace", "label": "struct AccessControl.RoleData", "numberOfBytes": "64", "members": [ { - "astId": 56833, + "astId": 56830, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "members", "offset": 0, @@ -3123,7 +3173,7 @@ "type": "t_mapping(t_address,t_bool)" }, { - "astId": 56835, + "astId": 56832, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "adminRole", "offset": 0, @@ -3132,13 +3182,13 @@ } ] }, - "t_struct(Set)63038_storage": { + "t_struct(Set)63035_storage": { "encoding": "inplace", "label": "struct EnumerableSet.Set", "numberOfBytes": "64", "members": [ { - "astId": 63033, + "astId": 63030, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_values", "offset": 0, @@ -3146,7 +3196,7 @@ "type": "t_array(t_bytes32)dyn_storage" }, { - "astId": 63037, + "astId": 63034, "contract": "src/mainchain/MainchainGatewayV3.sol:MainchainGatewayV3", "label": "_indexes", "offset": 0, @@ -3172,7 +3222,7 @@ } } }, - "timestamp": 1713254892, + "timestamp": 1718814660, "userdoc": { "version": 1, "kind": "user",