@keep-network/tbtc-v2 1.7.0 → 1.8.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/artifacts/.chainId +1 -1
- package/artifacts/BLS.json +223 -0
- package/artifacts/Bank.json +50 -40
- package/artifacts/BeaconAuthorization.json +273 -0
- package/artifacts/BeaconDkg.json +241 -0
- package/artifacts/BeaconDkgValidator.json +501 -0
- package/artifacts/BeaconInactivity.json +151 -0
- package/artifacts/BeaconSortitionPool.json +1187 -0
- package/artifacts/Bridge.json +449 -32
- package/artifacts/BridgeGovernance.json +22 -22
- package/artifacts/BridgeGovernanceParameters.json +10 -10
- package/artifacts/Deposit.json +12 -12
- package/artifacts/DepositSweep.json +12 -12
- package/artifacts/DonationVault.json +17 -17
- package/artifacts/EcdsaDkgValidator.json +517 -0
- package/artifacts/EcdsaInactivity.json +156 -0
- package/artifacts/EcdsaSortitionPool.json +1187 -0
- package/artifacts/Fraud.json +12 -12
- package/artifacts/LightRelay.json +38 -38
- package/artifacts/LightRelayMaintainerProxy.json +31 -31
- package/artifacts/MaintainerProxy.json +48 -48
- package/artifacts/MovingFunds.json +12 -12
- package/artifacts/NuCypherToken.json +711 -0
- package/artifacts/RandomBeacon.json +3271 -0
- package/artifacts/RandomBeaconChaosnet.json +252 -0
- package/artifacts/RandomBeaconGovernance.json +3499 -0
- package/artifacts/Redemption.json +12 -12
- package/artifacts/RedemptionWatchtower.json +39 -39
- package/artifacts/ReimbursementPool.json +509 -0
- package/artifacts/T.json +1148 -0
- package/artifacts/TBTC.json +37 -36
- package/artifacts/TBTCToken.json +738 -0
- package/artifacts/TBTCVault.json +47 -47
- package/artifacts/Timelock.json +148 -148
- package/artifacts/TokenStaking.json +2117 -0
- package/artifacts/TokenholderGovernor.json +1795 -0
- package/artifacts/TokenholderTimelock.json +1058 -0
- package/artifacts/VendingMachine.json +35 -34
- package/artifacts/VendingMachineNuCypher.json +400 -0
- package/artifacts/VendingMachineV2.json +21 -21
- package/artifacts/VendingMachineV3.json +21 -21
- package/artifacts/WalletProposalValidator.json +12 -12
- package/artifacts/WalletRegistry.json +1962 -0
- package/artifacts/WalletRegistryGovernance.json +2863 -0
- package/artifacts/Wallets.json +12 -12
- package/artifacts/solcInputs/{be146ce112252bdda3a03de3614fbbf1.json → fe0eebcebee1dc423b54e929e5519304.json} +31 -7
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.dbg.json +1 -1
- package/build/contracts/Timelock.sol/Timelock.dbg.json +1 -1
- package/build/contracts/bank/Bank.sol/Bank.dbg.json +1 -1
- package/build/contracts/bank/IReceiveBalanceApproval.sol/IReceiveBalanceApproval.dbg.json +1 -1
- package/build/contracts/bridge/BitcoinTx.sol/BitcoinTx.dbg.json +1 -1
- package/build/contracts/bridge/Bridge.sol/Bridge.dbg.json +1 -1
- package/build/contracts/bridge/BridgeGovernanceParameters.sol/BridgeGovernanceParameters.dbg.json +1 -1
- package/build/contracts/bridge/BridgeState.sol/BridgeState.dbg.json +1 -1
- package/build/contracts/bridge/Deposit.sol/Deposit.dbg.json +1 -1
- package/build/contracts/bridge/DepositSweep.sol/DepositSweep.dbg.json +1 -1
- package/build/contracts/bridge/EcdsaLib.sol/EcdsaLib.dbg.json +1 -1
- package/build/contracts/bridge/Fraud.sol/Fraud.dbg.json +1 -1
- package/build/contracts/bridge/Heartbeat.sol/Heartbeat.dbg.json +1 -1
- package/build/contracts/bridge/IRelay.sol/IRelay.dbg.json +1 -1
- package/build/contracts/bridge/MovingFunds.sol/MovingFunds.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/IRedemptionWatchtower.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.dbg.json +1 -1
- package/build/contracts/bridge/RedemptionWatchtower.sol/RedemptionWatchtower.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachine.sol/VendingMachine.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.dbg.json +1 -1
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +1 -1
- package/build/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/integrator/AbstractTBTCDepositor.sol/AbstractTBTCDepositor.dbg.json +1 -1
- package/build/contracts/integrator/IBridge.sol/IBridge.dbg.json +1 -1
- package/build/contracts/integrator/IBridge.sol/IBridgeTypes.dbg.json +1 -1
- package/build/contracts/integrator/ITBTCVault.sol/ITBTCVault.dbg.json +1 -1
- package/build/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.dbg.json +1 -1
- package/build/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.json +41 -2
- package/build/contracts/l2/L2BitcoinDepositor.sol/IL2WormholeGateway.dbg.json +1 -1
- package/build/contracts/l2/L2BitcoinDepositor.sol/L2BitcoinDepositor.dbg.json +1 -1
- package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/IWormhole.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/IWormholeReceiver.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/IWormholeRelayer.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/WormholeTypes.dbg.json +1 -1
- package/build/contracts/l2/Wormhole.sol/WormholeUtils.dbg.json +1 -1
- package/build/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/ILightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/LightRelay.dbg.json +1 -1
- package/build/contracts/relay/LightRelay.sol/RelayUtils.dbg.json +1 -1
- package/build/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.dbg.json +1 -1
- package/build/contracts/test/BankStub.sol/BankStub.dbg.json +1 -1
- package/build/contracts/test/BridgeStub.sol/BridgeStub.dbg.json +1 -1
- package/build/contracts/test/HeartbeatStub.sol/HeartbeatStub.dbg.json +1 -1
- package/build/contracts/test/LightRelayStub.sol/LightRelayStub.dbg.json +1 -1
- package/build/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.dbg.json +1 -1
- package/build/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.dbg.json +1 -1
- package/build/contracts/test/SystemTestRelay.sol/SystemTestRelay.dbg.json +1 -1
- package/build/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.dbg.json +1 -1
- package/build/contracts/test/TestERC20.sol/TestERC20.dbg.json +1 -1
- package/build/contracts/test/TestERC721.sol/TestERC721.dbg.json +1 -1
- package/build/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.dbg.json +1 -1
- package/build/contracts/test/TestTBTCDepositor.sol/MockBridge.dbg.json +1 -1
- package/build/contracts/test/TestTBTCDepositor.sol/MockTBTCVault.dbg.json +1 -1
- package/build/contracts/test/TestTBTCDepositor.sol/TestTBTCDepositor.dbg.json +1 -1
- package/build/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.dbg.json +1 -1
- package/build/contracts/token/TBTC.sol/TBTC.dbg.json +1 -1
- package/build/contracts/vault/DonationVault.sol/DonationVault.dbg.json +1 -1
- package/build/contracts/vault/IVault.sol/IVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCOptimisticMinting.sol/TBTCOptimisticMinting.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/contracts/l2/L1BitcoinDepositor.sol +31 -0
- package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +4999 -4814
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +6 -6
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +6 -6
- package/export/artifacts/contracts/l2/L1BitcoinDepositor.sol/L1BitcoinDepositor.json +4288 -4028
- package/export/artifacts/contracts/l2/L2BitcoinDepositor.sol/L2BitcoinDepositor.json +33 -33
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +40 -40
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +51 -51
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +88 -88
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +57 -57
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +31 -31
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +30 -30
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +2 -2
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +59 -59
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
- package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +59 -59
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +14 -14
- package/export/artifacts/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.json +5 -5
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +6 -6
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +8 -8
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +2 -2
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockBridge.json +18 -18
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockTBTCVault.json +20 -20
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/TestTBTCDepositor.json +10 -10
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +37 -37
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2 -2
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +11 -11
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +135 -135
- package/export/typechain/factories/EcdsaAuthorization__factory.js +1 -1
- package/export/typechain/factories/IStaking__factory.js +24 -103
- package/export/typechain/factories/L1BitcoinDepositor__factory.js +40 -1
- package/export/typechain/factories/WalletRegistry__factory.js +1 -1
- package/package.json +4 -4
- package/artifacts/solcInputs/7c1f8f1dbded4c787d87a982d1fc8349.json +0 -410
- package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +0 -102
- package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +0 -218
- package/artifacts/solcInputs/887fad6b16575ba42183543c324eeb0e.json +0 -335
- package/artifacts/solcInputs/98e272e2fbf178ec895387b6c503f9de.json +0 -68
- package/artifacts/solcInputs/b0025f1f7efe4824592ac0c9793776c3.json +0 -392
- package/artifacts/solcInputs/b7c5f3550cc22e16e6b6ea9582ccbee3.json +0 -341
- package/artifacts/solcInputs/d71d4b4434e6669852eaf643ebd2a7bc.json +0 -209
- package/artifacts/solcInputs/fccb130292c8c7cc958ab4fa31a3e180.json +0 -187
- package/export/deploy/00_resolve_relay.js +0 -83
- package/export/deploy/01_deploy_tbtc_v2_token.js +0 -70
- package/export/deploy/02_deploy_vending_machine.js +0 -84
- package/export/deploy/03_transfer_vending_machine_roles.js +0 -69
- package/export/deploy/04_deploy_bank.js +0 -73
- package/export/deploy/05_deploy_bridge.js +0 -178
- package/export/deploy/06_deploy_tbtc_vault.js +0 -80
- package/export/deploy/07_deploy_bridge_governance.js +0 -87
- package/export/deploy/08_deploy_maintainer_proxy.js +0 -80
- package/export/deploy/09_bank_update_bridge.js +0 -63
- package/export/deploy/10_authorize_spv_maintainer_in_bridge.js +0 -61
- package/export/deploy/11_transfer_bank_ownership.js +0 -60
- package/export/deploy/12_transfer_bridge_governance.js +0 -63
- package/export/deploy/13_transfer_bridge_governance_ownership.js +0 -60
- package/export/deploy/14_transfer_tbtc_vault_ownership.js +0 -60
- package/export/deploy/15_transfer_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/16_initialize_wallet_owner.js +0 -63
- package/export/deploy/16_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/17_authorize_maintainer_proxy_in_bridge.js +0 -63
- package/export/deploy/17_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/18_authorize_maintainer_proxy_in_bridge.js +0 -63
- package/export/deploy/18_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
- package/export/deploy/19_authorize_bridge_in_reimbursement_pool.js +0 -63
- package/export/deploy/19_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -63
- package/export/deploy/20_authorize_bridge_in_reimbursement_pool.js +0 -63
- package/export/deploy/20_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/21_transfer_reimbursement_pool_ownership.js +0 -60
- package/export/deploy/22_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/24_transfer_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/25_transfer_proxy_admin_ownership.js +0 -73
- package/export/deploy/26_authorize_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/27_authorize_bridge_in_reimbursement_pool.js +0 -70
- package/export/deploy/28_deploy_proxy_admin_with_deputy.js +0 -80
- package/export/deploy/34_deploy_wallet_coordinator.js +0 -115
- package/export/deploy/35_add_coordinator_address.js +0 -60
- package/export/deploy/35_transfer_wallet_coordinator_ownership.js +0 -60
- package/export/deploy/36_deploy_light_relay_maintainer_proxy.js +0 -86
- package/export/deploy/36_transfer_wallet_coordinator_ownership.js +0 -60
- package/export/deploy/37_authorize_maintainer_in_light_relay_maintainer_proxy.js +0 -65
- package/export/deploy/37_deploy_light_relay_maintainer_proxy.js +0 -86
- package/export/deploy/37_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/38_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/38_authorize_maintainer_in_light_relay_maintainer_proxy.js +0 -65
- package/export/deploy/38_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/39_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -63
- package/export/deploy/39_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/39_transfer_light_relay_maintainer_proxy_ownership.js +0 -60
- package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
- package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_reimbursement_pool.js +0 -70
- package/export/deploy/41_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
- package/export/typechain/GoerliLightRelay.js +0 -2
- package/export/typechain/RelayStub.js +0 -2
- package/export/typechain/TestRelay.js +0 -2
- package/export/typechain/WalletCoordinator.js +0 -2
- package/export/typechain/factories/GoerliLightRelay__factory.js +0 -535
- package/export/typechain/factories/RelayStub__factory.js +0 -546
- package/export/typechain/factories/TestRelay__factory.js +0 -168
- package/export/typechain/factories/WalletCoordinator__factory.js +0 -1121
|
@@ -0,0 +1,2863 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "0xAd5d57aD9bB17d34Debb88566ab2F5dB879Cc46F",
|
|
3
|
+
"abi": [
|
|
4
|
+
{
|
|
5
|
+
"inputs": [
|
|
6
|
+
{
|
|
7
|
+
"internalType": "contract WalletRegistry",
|
|
8
|
+
"name": "_walletRegistry",
|
|
9
|
+
"type": "address"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"internalType": "uint256",
|
|
13
|
+
"name": "_governanceDelay",
|
|
14
|
+
"type": "uint256"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"stateMutability": "nonpayable",
|
|
18
|
+
"type": "constructor"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"anonymous": false,
|
|
22
|
+
"inputs": [
|
|
23
|
+
{
|
|
24
|
+
"indexed": false,
|
|
25
|
+
"internalType": "uint64",
|
|
26
|
+
"name": "authorizationDecreaseChangePeriod",
|
|
27
|
+
"type": "uint64"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"indexed": false,
|
|
31
|
+
"internalType": "uint256",
|
|
32
|
+
"name": "timestamp",
|
|
33
|
+
"type": "uint256"
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
"name": "AuthorizationDecreaseChangePeriodUpdateStarted",
|
|
37
|
+
"type": "event"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"anonymous": false,
|
|
41
|
+
"inputs": [
|
|
42
|
+
{
|
|
43
|
+
"indexed": false,
|
|
44
|
+
"internalType": "uint64",
|
|
45
|
+
"name": "authorizationDecreaseChangePeriod",
|
|
46
|
+
"type": "uint64"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"name": "AuthorizationDecreaseChangePeriodUpdated",
|
|
50
|
+
"type": "event"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"anonymous": false,
|
|
54
|
+
"inputs": [
|
|
55
|
+
{
|
|
56
|
+
"indexed": false,
|
|
57
|
+
"internalType": "uint64",
|
|
58
|
+
"name": "authorizationDecreaseDelay",
|
|
59
|
+
"type": "uint64"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"indexed": false,
|
|
63
|
+
"internalType": "uint256",
|
|
64
|
+
"name": "timestamp",
|
|
65
|
+
"type": "uint256"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"name": "AuthorizationDecreaseDelayUpdateStarted",
|
|
69
|
+
"type": "event"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"anonymous": false,
|
|
73
|
+
"inputs": [
|
|
74
|
+
{
|
|
75
|
+
"indexed": false,
|
|
76
|
+
"internalType": "uint64",
|
|
77
|
+
"name": "authorizationDecreaseDelay",
|
|
78
|
+
"type": "uint64"
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"name": "AuthorizationDecreaseDelayUpdated",
|
|
82
|
+
"type": "event"
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"anonymous": false,
|
|
86
|
+
"inputs": [
|
|
87
|
+
{
|
|
88
|
+
"indexed": false,
|
|
89
|
+
"internalType": "uint256",
|
|
90
|
+
"name": "dkgResultApprovalGasOffset",
|
|
91
|
+
"type": "uint256"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"indexed": false,
|
|
95
|
+
"internalType": "uint256",
|
|
96
|
+
"name": "timestamp",
|
|
97
|
+
"type": "uint256"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"name": "DkgResultApprovalGasOffsetUpdateStarted",
|
|
101
|
+
"type": "event"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"anonymous": false,
|
|
105
|
+
"inputs": [
|
|
106
|
+
{
|
|
107
|
+
"indexed": false,
|
|
108
|
+
"internalType": "uint256",
|
|
109
|
+
"name": "dkgResultApprovalGasOffset",
|
|
110
|
+
"type": "uint256"
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
"name": "DkgResultApprovalGasOffsetUpdated",
|
|
114
|
+
"type": "event"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"anonymous": false,
|
|
118
|
+
"inputs": [
|
|
119
|
+
{
|
|
120
|
+
"indexed": false,
|
|
121
|
+
"internalType": "uint256",
|
|
122
|
+
"name": "dkgResultChallengeExtraGas",
|
|
123
|
+
"type": "uint256"
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
"indexed": false,
|
|
127
|
+
"internalType": "uint256",
|
|
128
|
+
"name": "timestamp",
|
|
129
|
+
"type": "uint256"
|
|
130
|
+
}
|
|
131
|
+
],
|
|
132
|
+
"name": "DkgResultChallengeExtraGasUpdateStarted",
|
|
133
|
+
"type": "event"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"anonymous": false,
|
|
137
|
+
"inputs": [
|
|
138
|
+
{
|
|
139
|
+
"indexed": false,
|
|
140
|
+
"internalType": "uint256",
|
|
141
|
+
"name": "dkgResultChallengeExtraGas",
|
|
142
|
+
"type": "uint256"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"name": "DkgResultChallengeExtraGasUpdated",
|
|
146
|
+
"type": "event"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
"anonymous": false,
|
|
150
|
+
"inputs": [
|
|
151
|
+
{
|
|
152
|
+
"indexed": false,
|
|
153
|
+
"internalType": "uint256",
|
|
154
|
+
"name": "dkgResultChallengePeriodLength",
|
|
155
|
+
"type": "uint256"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"indexed": false,
|
|
159
|
+
"internalType": "uint256",
|
|
160
|
+
"name": "timestamp",
|
|
161
|
+
"type": "uint256"
|
|
162
|
+
}
|
|
163
|
+
],
|
|
164
|
+
"name": "DkgResultChallengePeriodLengthUpdateStarted",
|
|
165
|
+
"type": "event"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"anonymous": false,
|
|
169
|
+
"inputs": [
|
|
170
|
+
{
|
|
171
|
+
"indexed": false,
|
|
172
|
+
"internalType": "uint256",
|
|
173
|
+
"name": "dkgResultChallengePeriodLength",
|
|
174
|
+
"type": "uint256"
|
|
175
|
+
}
|
|
176
|
+
],
|
|
177
|
+
"name": "DkgResultChallengePeriodLengthUpdated",
|
|
178
|
+
"type": "event"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"anonymous": false,
|
|
182
|
+
"inputs": [
|
|
183
|
+
{
|
|
184
|
+
"indexed": false,
|
|
185
|
+
"internalType": "uint256",
|
|
186
|
+
"name": "dkgResultSubmissionGas",
|
|
187
|
+
"type": "uint256"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"indexed": false,
|
|
191
|
+
"internalType": "uint256",
|
|
192
|
+
"name": "timestamp",
|
|
193
|
+
"type": "uint256"
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"name": "DkgResultSubmissionGasUpdateStarted",
|
|
197
|
+
"type": "event"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"anonymous": false,
|
|
201
|
+
"inputs": [
|
|
202
|
+
{
|
|
203
|
+
"indexed": false,
|
|
204
|
+
"internalType": "uint256",
|
|
205
|
+
"name": "dkgResultSubmissionGas",
|
|
206
|
+
"type": "uint256"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
"name": "DkgResultSubmissionGasUpdated",
|
|
210
|
+
"type": "event"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"anonymous": false,
|
|
214
|
+
"inputs": [
|
|
215
|
+
{
|
|
216
|
+
"indexed": false,
|
|
217
|
+
"internalType": "uint256",
|
|
218
|
+
"name": "dkgResultSubmissionTimeout",
|
|
219
|
+
"type": "uint256"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"indexed": false,
|
|
223
|
+
"internalType": "uint256",
|
|
224
|
+
"name": "timestamp",
|
|
225
|
+
"type": "uint256"
|
|
226
|
+
}
|
|
227
|
+
],
|
|
228
|
+
"name": "DkgResultSubmissionTimeoutUpdateStarted",
|
|
229
|
+
"type": "event"
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
"anonymous": false,
|
|
233
|
+
"inputs": [
|
|
234
|
+
{
|
|
235
|
+
"indexed": false,
|
|
236
|
+
"internalType": "uint256",
|
|
237
|
+
"name": "dkgResultSubmissionTimeout",
|
|
238
|
+
"type": "uint256"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"name": "DkgResultSubmissionTimeoutUpdated",
|
|
242
|
+
"type": "event"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"anonymous": false,
|
|
246
|
+
"inputs": [
|
|
247
|
+
{
|
|
248
|
+
"indexed": false,
|
|
249
|
+
"internalType": "uint256",
|
|
250
|
+
"name": "dkgSeedTimeout",
|
|
251
|
+
"type": "uint256"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"indexed": false,
|
|
255
|
+
"internalType": "uint256",
|
|
256
|
+
"name": "timestamp",
|
|
257
|
+
"type": "uint256"
|
|
258
|
+
}
|
|
259
|
+
],
|
|
260
|
+
"name": "DkgSeedTimeoutUpdateStarted",
|
|
261
|
+
"type": "event"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"anonymous": false,
|
|
265
|
+
"inputs": [
|
|
266
|
+
{
|
|
267
|
+
"indexed": false,
|
|
268
|
+
"internalType": "uint256",
|
|
269
|
+
"name": "dkgSeedTimeout",
|
|
270
|
+
"type": "uint256"
|
|
271
|
+
}
|
|
272
|
+
],
|
|
273
|
+
"name": "DkgSeedTimeoutUpdated",
|
|
274
|
+
"type": "event"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"anonymous": false,
|
|
278
|
+
"inputs": [
|
|
279
|
+
{
|
|
280
|
+
"indexed": false,
|
|
281
|
+
"internalType": "uint256",
|
|
282
|
+
"name": "submitterPrecedencePeriodLength",
|
|
283
|
+
"type": "uint256"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"indexed": false,
|
|
287
|
+
"internalType": "uint256",
|
|
288
|
+
"name": "timestamp",
|
|
289
|
+
"type": "uint256"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"name": "DkgSubmitterPrecedencePeriodLengthUpdateStarted",
|
|
293
|
+
"type": "event"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"anonymous": false,
|
|
297
|
+
"inputs": [
|
|
298
|
+
{
|
|
299
|
+
"indexed": false,
|
|
300
|
+
"internalType": "uint256",
|
|
301
|
+
"name": "submitterPrecedencePeriodLength",
|
|
302
|
+
"type": "uint256"
|
|
303
|
+
}
|
|
304
|
+
],
|
|
305
|
+
"name": "DkgSubmitterPrecedencePeriodLengthUpdated",
|
|
306
|
+
"type": "event"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"anonymous": false,
|
|
310
|
+
"inputs": [
|
|
311
|
+
{
|
|
312
|
+
"indexed": false,
|
|
313
|
+
"internalType": "uint256",
|
|
314
|
+
"name": "governanceDelay",
|
|
315
|
+
"type": "uint256"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"indexed": false,
|
|
319
|
+
"internalType": "uint256",
|
|
320
|
+
"name": "timestamp",
|
|
321
|
+
"type": "uint256"
|
|
322
|
+
}
|
|
323
|
+
],
|
|
324
|
+
"name": "GovernanceDelayUpdateStarted",
|
|
325
|
+
"type": "event"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"anonymous": false,
|
|
329
|
+
"inputs": [
|
|
330
|
+
{
|
|
331
|
+
"indexed": false,
|
|
332
|
+
"internalType": "uint256",
|
|
333
|
+
"name": "governanceDelay",
|
|
334
|
+
"type": "uint256"
|
|
335
|
+
}
|
|
336
|
+
],
|
|
337
|
+
"name": "GovernanceDelayUpdated",
|
|
338
|
+
"type": "event"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
"anonymous": false,
|
|
342
|
+
"inputs": [
|
|
343
|
+
{
|
|
344
|
+
"indexed": false,
|
|
345
|
+
"internalType": "uint256",
|
|
346
|
+
"name": "maliciousDkgResultNotificationRewardMultiplier",
|
|
347
|
+
"type": "uint256"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"indexed": false,
|
|
351
|
+
"internalType": "uint256",
|
|
352
|
+
"name": "timestamp",
|
|
353
|
+
"type": "uint256"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"name": "MaliciousDkgResultNotificationRewardMultiplierUpdateStarted",
|
|
357
|
+
"type": "event"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"anonymous": false,
|
|
361
|
+
"inputs": [
|
|
362
|
+
{
|
|
363
|
+
"indexed": false,
|
|
364
|
+
"internalType": "uint256",
|
|
365
|
+
"name": "maliciousDkgResultNotificationRewardMultiplier",
|
|
366
|
+
"type": "uint256"
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"name": "MaliciousDkgResultNotificationRewardMultiplierUpdated",
|
|
370
|
+
"type": "event"
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"anonymous": false,
|
|
374
|
+
"inputs": [
|
|
375
|
+
{
|
|
376
|
+
"indexed": false,
|
|
377
|
+
"internalType": "uint256",
|
|
378
|
+
"name": "maliciousDkgResultSlashingAmount",
|
|
379
|
+
"type": "uint256"
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"indexed": false,
|
|
383
|
+
"internalType": "uint256",
|
|
384
|
+
"name": "timestamp",
|
|
385
|
+
"type": "uint256"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"name": "MaliciousDkgResultSlashingAmountUpdateStarted",
|
|
389
|
+
"type": "event"
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"anonymous": false,
|
|
393
|
+
"inputs": [
|
|
394
|
+
{
|
|
395
|
+
"indexed": false,
|
|
396
|
+
"internalType": "uint256",
|
|
397
|
+
"name": "maliciousDkgResultSlashingAmount",
|
|
398
|
+
"type": "uint256"
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
"name": "MaliciousDkgResultSlashingAmountUpdated",
|
|
402
|
+
"type": "event"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
"anonymous": false,
|
|
406
|
+
"inputs": [
|
|
407
|
+
{
|
|
408
|
+
"indexed": false,
|
|
409
|
+
"internalType": "uint96",
|
|
410
|
+
"name": "minimumAuthorization",
|
|
411
|
+
"type": "uint96"
|
|
412
|
+
},
|
|
413
|
+
{
|
|
414
|
+
"indexed": false,
|
|
415
|
+
"internalType": "uint256",
|
|
416
|
+
"name": "timestamp",
|
|
417
|
+
"type": "uint256"
|
|
418
|
+
}
|
|
419
|
+
],
|
|
420
|
+
"name": "MinimumAuthorizationUpdateStarted",
|
|
421
|
+
"type": "event"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
"anonymous": false,
|
|
425
|
+
"inputs": [
|
|
426
|
+
{
|
|
427
|
+
"indexed": false,
|
|
428
|
+
"internalType": "uint96",
|
|
429
|
+
"name": "minimumAuthorization",
|
|
430
|
+
"type": "uint96"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"name": "MinimumAuthorizationUpdated",
|
|
434
|
+
"type": "event"
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
"anonymous": false,
|
|
438
|
+
"inputs": [
|
|
439
|
+
{
|
|
440
|
+
"indexed": false,
|
|
441
|
+
"internalType": "uint256",
|
|
442
|
+
"name": "notifyDkgTimeoutNegativeGasOffset",
|
|
443
|
+
"type": "uint256"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"indexed": false,
|
|
447
|
+
"internalType": "uint256",
|
|
448
|
+
"name": "timestamp",
|
|
449
|
+
"type": "uint256"
|
|
450
|
+
}
|
|
451
|
+
],
|
|
452
|
+
"name": "NotifyDkgTimeoutNegativeGasOffsetUpdateStarted",
|
|
453
|
+
"type": "event"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"anonymous": false,
|
|
457
|
+
"inputs": [
|
|
458
|
+
{
|
|
459
|
+
"indexed": false,
|
|
460
|
+
"internalType": "uint256",
|
|
461
|
+
"name": "notifyDkgTimeoutNegativeGasOffset",
|
|
462
|
+
"type": "uint256"
|
|
463
|
+
}
|
|
464
|
+
],
|
|
465
|
+
"name": "NotifyDkgTimeoutNegativeGasOffsetUpdated",
|
|
466
|
+
"type": "event"
|
|
467
|
+
},
|
|
468
|
+
{
|
|
469
|
+
"anonymous": false,
|
|
470
|
+
"inputs": [
|
|
471
|
+
{
|
|
472
|
+
"indexed": false,
|
|
473
|
+
"internalType": "uint256",
|
|
474
|
+
"name": "notifyOperatorInactivityGasOffset",
|
|
475
|
+
"type": "uint256"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"indexed": false,
|
|
479
|
+
"internalType": "uint256",
|
|
480
|
+
"name": "timestamp",
|
|
481
|
+
"type": "uint256"
|
|
482
|
+
}
|
|
483
|
+
],
|
|
484
|
+
"name": "NotifyOperatorInactivityGasOffsetUpdateStarted",
|
|
485
|
+
"type": "event"
|
|
486
|
+
},
|
|
487
|
+
{
|
|
488
|
+
"anonymous": false,
|
|
489
|
+
"inputs": [
|
|
490
|
+
{
|
|
491
|
+
"indexed": false,
|
|
492
|
+
"internalType": "uint256",
|
|
493
|
+
"name": "notifyOperatorInactivityGasOffset",
|
|
494
|
+
"type": "uint256"
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"name": "NotifyOperatorInactivityGasOffsetUpdated",
|
|
498
|
+
"type": "event"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"anonymous": false,
|
|
502
|
+
"inputs": [
|
|
503
|
+
{
|
|
504
|
+
"indexed": false,
|
|
505
|
+
"internalType": "uint256",
|
|
506
|
+
"name": "notifySeedTimeoutGasOffset",
|
|
507
|
+
"type": "uint256"
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
"indexed": false,
|
|
511
|
+
"internalType": "uint256",
|
|
512
|
+
"name": "timestamp",
|
|
513
|
+
"type": "uint256"
|
|
514
|
+
}
|
|
515
|
+
],
|
|
516
|
+
"name": "NotifySeedTimeoutGasOffsetUpdateStarted",
|
|
517
|
+
"type": "event"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
"anonymous": false,
|
|
521
|
+
"inputs": [
|
|
522
|
+
{
|
|
523
|
+
"indexed": false,
|
|
524
|
+
"internalType": "uint256",
|
|
525
|
+
"name": "notifySeedTimeoutGasOffset",
|
|
526
|
+
"type": "uint256"
|
|
527
|
+
}
|
|
528
|
+
],
|
|
529
|
+
"name": "NotifySeedTimeoutGasOffsetUpdated",
|
|
530
|
+
"type": "event"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"anonymous": false,
|
|
534
|
+
"inputs": [
|
|
535
|
+
{
|
|
536
|
+
"indexed": true,
|
|
537
|
+
"internalType": "address",
|
|
538
|
+
"name": "previousOwner",
|
|
539
|
+
"type": "address"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"indexed": true,
|
|
543
|
+
"internalType": "address",
|
|
544
|
+
"name": "newOwner",
|
|
545
|
+
"type": "address"
|
|
546
|
+
}
|
|
547
|
+
],
|
|
548
|
+
"name": "OwnershipTransferred",
|
|
549
|
+
"type": "event"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"anonymous": false,
|
|
553
|
+
"inputs": [
|
|
554
|
+
{
|
|
555
|
+
"indexed": false,
|
|
556
|
+
"internalType": "address",
|
|
557
|
+
"name": "reimbursementPool",
|
|
558
|
+
"type": "address"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"indexed": false,
|
|
562
|
+
"internalType": "uint256",
|
|
563
|
+
"name": "timestamp",
|
|
564
|
+
"type": "uint256"
|
|
565
|
+
}
|
|
566
|
+
],
|
|
567
|
+
"name": "ReimbursementPoolUpdateStarted",
|
|
568
|
+
"type": "event"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"anonymous": false,
|
|
572
|
+
"inputs": [
|
|
573
|
+
{
|
|
574
|
+
"indexed": false,
|
|
575
|
+
"internalType": "address",
|
|
576
|
+
"name": "reimbursementPool",
|
|
577
|
+
"type": "address"
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
"name": "ReimbursementPoolUpdated",
|
|
581
|
+
"type": "event"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"anonymous": false,
|
|
585
|
+
"inputs": [
|
|
586
|
+
{
|
|
587
|
+
"indexed": false,
|
|
588
|
+
"internalType": "uint256",
|
|
589
|
+
"name": "sortitionPoolRewardsBanDuration",
|
|
590
|
+
"type": "uint256"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"indexed": false,
|
|
594
|
+
"internalType": "uint256",
|
|
595
|
+
"name": "timestamp",
|
|
596
|
+
"type": "uint256"
|
|
597
|
+
}
|
|
598
|
+
],
|
|
599
|
+
"name": "SortitionPoolRewardsBanDurationUpdateStarted",
|
|
600
|
+
"type": "event"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"anonymous": false,
|
|
604
|
+
"inputs": [
|
|
605
|
+
{
|
|
606
|
+
"indexed": false,
|
|
607
|
+
"internalType": "uint256",
|
|
608
|
+
"name": "sortitionPoolRewardsBanDuration",
|
|
609
|
+
"type": "uint256"
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"name": "SortitionPoolRewardsBanDurationUpdated",
|
|
613
|
+
"type": "event"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"anonymous": false,
|
|
617
|
+
"inputs": [
|
|
618
|
+
{
|
|
619
|
+
"indexed": false,
|
|
620
|
+
"internalType": "address",
|
|
621
|
+
"name": "walletOwner",
|
|
622
|
+
"type": "address"
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
"indexed": false,
|
|
626
|
+
"internalType": "uint256",
|
|
627
|
+
"name": "timestamp",
|
|
628
|
+
"type": "uint256"
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"name": "WalletOwnerUpdateStarted",
|
|
632
|
+
"type": "event"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"anonymous": false,
|
|
636
|
+
"inputs": [
|
|
637
|
+
{
|
|
638
|
+
"indexed": false,
|
|
639
|
+
"internalType": "address",
|
|
640
|
+
"name": "walletOwner",
|
|
641
|
+
"type": "address"
|
|
642
|
+
}
|
|
643
|
+
],
|
|
644
|
+
"name": "WalletOwnerUpdated",
|
|
645
|
+
"type": "event"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"anonymous": false,
|
|
649
|
+
"inputs": [
|
|
650
|
+
{
|
|
651
|
+
"indexed": false,
|
|
652
|
+
"internalType": "address",
|
|
653
|
+
"name": "newWalletRegistryGovernance",
|
|
654
|
+
"type": "address"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"indexed": false,
|
|
658
|
+
"internalType": "uint256",
|
|
659
|
+
"name": "timestamp",
|
|
660
|
+
"type": "uint256"
|
|
661
|
+
}
|
|
662
|
+
],
|
|
663
|
+
"name": "WalletRegistryGovernanceTransferStarted",
|
|
664
|
+
"type": "event"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"anonymous": false,
|
|
668
|
+
"inputs": [
|
|
669
|
+
{
|
|
670
|
+
"indexed": false,
|
|
671
|
+
"internalType": "address",
|
|
672
|
+
"name": "newWalletRegistryGovernance",
|
|
673
|
+
"type": "address"
|
|
674
|
+
}
|
|
675
|
+
],
|
|
676
|
+
"name": "WalletRegistryGovernanceTransferred",
|
|
677
|
+
"type": "event"
|
|
678
|
+
},
|
|
679
|
+
{
|
|
680
|
+
"inputs": [],
|
|
681
|
+
"name": "authorizationDecreaseChangePeriodChangeInitiated",
|
|
682
|
+
"outputs": [
|
|
683
|
+
{
|
|
684
|
+
"internalType": "uint256",
|
|
685
|
+
"name": "",
|
|
686
|
+
"type": "uint256"
|
|
687
|
+
}
|
|
688
|
+
],
|
|
689
|
+
"stateMutability": "view",
|
|
690
|
+
"type": "function"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"inputs": [],
|
|
694
|
+
"name": "authorizationDecreaseDelayChangeInitiated",
|
|
695
|
+
"outputs": [
|
|
696
|
+
{
|
|
697
|
+
"internalType": "uint256",
|
|
698
|
+
"name": "",
|
|
699
|
+
"type": "uint256"
|
|
700
|
+
}
|
|
701
|
+
],
|
|
702
|
+
"stateMutability": "view",
|
|
703
|
+
"type": "function"
|
|
704
|
+
},
|
|
705
|
+
{
|
|
706
|
+
"inputs": [
|
|
707
|
+
{
|
|
708
|
+
"internalType": "uint64",
|
|
709
|
+
"name": "_newAuthorizationDecreaseChangePeriod",
|
|
710
|
+
"type": "uint64"
|
|
711
|
+
}
|
|
712
|
+
],
|
|
713
|
+
"name": "beginAuthorizationDecreaseChangePeriodUpdate",
|
|
714
|
+
"outputs": [],
|
|
715
|
+
"stateMutability": "nonpayable",
|
|
716
|
+
"type": "function"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"inputs": [
|
|
720
|
+
{
|
|
721
|
+
"internalType": "uint64",
|
|
722
|
+
"name": "_newAuthorizationDecreaseDelay",
|
|
723
|
+
"type": "uint64"
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
"name": "beginAuthorizationDecreaseDelayUpdate",
|
|
727
|
+
"outputs": [],
|
|
728
|
+
"stateMutability": "nonpayable",
|
|
729
|
+
"type": "function"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"inputs": [
|
|
733
|
+
{
|
|
734
|
+
"internalType": "uint256",
|
|
735
|
+
"name": "_newDkgResultApprovalGasOffset",
|
|
736
|
+
"type": "uint256"
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"name": "beginDkgResultApprovalGasOffsetUpdate",
|
|
740
|
+
"outputs": [],
|
|
741
|
+
"stateMutability": "nonpayable",
|
|
742
|
+
"type": "function"
|
|
743
|
+
},
|
|
744
|
+
{
|
|
745
|
+
"inputs": [
|
|
746
|
+
{
|
|
747
|
+
"internalType": "uint256",
|
|
748
|
+
"name": "_newDkgResultChallengeExtraGas",
|
|
749
|
+
"type": "uint256"
|
|
750
|
+
}
|
|
751
|
+
],
|
|
752
|
+
"name": "beginDkgResultChallengeExtraGasUpdate",
|
|
753
|
+
"outputs": [],
|
|
754
|
+
"stateMutability": "nonpayable",
|
|
755
|
+
"type": "function"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"inputs": [
|
|
759
|
+
{
|
|
760
|
+
"internalType": "uint256",
|
|
761
|
+
"name": "_newDkgResultChallengePeriodLength",
|
|
762
|
+
"type": "uint256"
|
|
763
|
+
}
|
|
764
|
+
],
|
|
765
|
+
"name": "beginDkgResultChallengePeriodLengthUpdate",
|
|
766
|
+
"outputs": [],
|
|
767
|
+
"stateMutability": "nonpayable",
|
|
768
|
+
"type": "function"
|
|
769
|
+
},
|
|
770
|
+
{
|
|
771
|
+
"inputs": [
|
|
772
|
+
{
|
|
773
|
+
"internalType": "uint256",
|
|
774
|
+
"name": "_newDkgResultSubmissionGas",
|
|
775
|
+
"type": "uint256"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"name": "beginDkgResultSubmissionGasUpdate",
|
|
779
|
+
"outputs": [],
|
|
780
|
+
"stateMutability": "nonpayable",
|
|
781
|
+
"type": "function"
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
"inputs": [
|
|
785
|
+
{
|
|
786
|
+
"internalType": "uint256",
|
|
787
|
+
"name": "_newDkgResultSubmissionTimeout",
|
|
788
|
+
"type": "uint256"
|
|
789
|
+
}
|
|
790
|
+
],
|
|
791
|
+
"name": "beginDkgResultSubmissionTimeoutUpdate",
|
|
792
|
+
"outputs": [],
|
|
793
|
+
"stateMutability": "nonpayable",
|
|
794
|
+
"type": "function"
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"inputs": [
|
|
798
|
+
{
|
|
799
|
+
"internalType": "uint256",
|
|
800
|
+
"name": "_newDkgSeedTimeout",
|
|
801
|
+
"type": "uint256"
|
|
802
|
+
}
|
|
803
|
+
],
|
|
804
|
+
"name": "beginDkgSeedTimeoutUpdate",
|
|
805
|
+
"outputs": [],
|
|
806
|
+
"stateMutability": "nonpayable",
|
|
807
|
+
"type": "function"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"inputs": [
|
|
811
|
+
{
|
|
812
|
+
"internalType": "uint256",
|
|
813
|
+
"name": "_newSubmitterPrecedencePeriodLength",
|
|
814
|
+
"type": "uint256"
|
|
815
|
+
}
|
|
816
|
+
],
|
|
817
|
+
"name": "beginDkgSubmitterPrecedencePeriodLengthUpdate",
|
|
818
|
+
"outputs": [],
|
|
819
|
+
"stateMutability": "nonpayable",
|
|
820
|
+
"type": "function"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"inputs": [
|
|
824
|
+
{
|
|
825
|
+
"internalType": "uint256",
|
|
826
|
+
"name": "_newGovernanceDelay",
|
|
827
|
+
"type": "uint256"
|
|
828
|
+
}
|
|
829
|
+
],
|
|
830
|
+
"name": "beginGovernanceDelayUpdate",
|
|
831
|
+
"outputs": [],
|
|
832
|
+
"stateMutability": "nonpayable",
|
|
833
|
+
"type": "function"
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
"inputs": [
|
|
837
|
+
{
|
|
838
|
+
"internalType": "uint256",
|
|
839
|
+
"name": "_newMaliciousDkgResultNotificationRewardMultiplier",
|
|
840
|
+
"type": "uint256"
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
"name": "beginMaliciousDkgResultNotificationRewardMultiplierUpdate",
|
|
844
|
+
"outputs": [],
|
|
845
|
+
"stateMutability": "nonpayable",
|
|
846
|
+
"type": "function"
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"inputs": [
|
|
850
|
+
{
|
|
851
|
+
"internalType": "uint96",
|
|
852
|
+
"name": "_newMaliciousDkgResultSlashingAmount",
|
|
853
|
+
"type": "uint96"
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
"name": "beginMaliciousDkgResultSlashingAmountUpdate",
|
|
857
|
+
"outputs": [],
|
|
858
|
+
"stateMutability": "nonpayable",
|
|
859
|
+
"type": "function"
|
|
860
|
+
},
|
|
861
|
+
{
|
|
862
|
+
"inputs": [
|
|
863
|
+
{
|
|
864
|
+
"internalType": "uint96",
|
|
865
|
+
"name": "_newMinimumAuthorization",
|
|
866
|
+
"type": "uint96"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"name": "beginMinimumAuthorizationUpdate",
|
|
870
|
+
"outputs": [],
|
|
871
|
+
"stateMutability": "nonpayable",
|
|
872
|
+
"type": "function"
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"inputs": [
|
|
876
|
+
{
|
|
877
|
+
"internalType": "uint256",
|
|
878
|
+
"name": "_newNotifyDkgTimeoutNegativeGasOffset",
|
|
879
|
+
"type": "uint256"
|
|
880
|
+
}
|
|
881
|
+
],
|
|
882
|
+
"name": "beginNotifyDkgTimeoutNegativeGasOffsetUpdate",
|
|
883
|
+
"outputs": [],
|
|
884
|
+
"stateMutability": "nonpayable",
|
|
885
|
+
"type": "function"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"inputs": [
|
|
889
|
+
{
|
|
890
|
+
"internalType": "uint256",
|
|
891
|
+
"name": "_newNotifyOperatorInactivityGasOffset",
|
|
892
|
+
"type": "uint256"
|
|
893
|
+
}
|
|
894
|
+
],
|
|
895
|
+
"name": "beginNotifyOperatorInactivityGasOffsetUpdate",
|
|
896
|
+
"outputs": [],
|
|
897
|
+
"stateMutability": "nonpayable",
|
|
898
|
+
"type": "function"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"inputs": [
|
|
902
|
+
{
|
|
903
|
+
"internalType": "uint256",
|
|
904
|
+
"name": "_newNotifySeedTimeoutGasOffset",
|
|
905
|
+
"type": "uint256"
|
|
906
|
+
}
|
|
907
|
+
],
|
|
908
|
+
"name": "beginNotifySeedTimeoutGasOffsetUpdate",
|
|
909
|
+
"outputs": [],
|
|
910
|
+
"stateMutability": "nonpayable",
|
|
911
|
+
"type": "function"
|
|
912
|
+
},
|
|
913
|
+
{
|
|
914
|
+
"inputs": [
|
|
915
|
+
{
|
|
916
|
+
"internalType": "address payable",
|
|
917
|
+
"name": "_newReimbursementPool",
|
|
918
|
+
"type": "address"
|
|
919
|
+
}
|
|
920
|
+
],
|
|
921
|
+
"name": "beginReimbursementPoolUpdate",
|
|
922
|
+
"outputs": [],
|
|
923
|
+
"stateMutability": "nonpayable",
|
|
924
|
+
"type": "function"
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
"inputs": [
|
|
928
|
+
{
|
|
929
|
+
"internalType": "uint256",
|
|
930
|
+
"name": "_newSortitionPoolRewardsBanDuration",
|
|
931
|
+
"type": "uint256"
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"name": "beginSortitionPoolRewardsBanDurationUpdate",
|
|
935
|
+
"outputs": [],
|
|
936
|
+
"stateMutability": "nonpayable",
|
|
937
|
+
"type": "function"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"inputs": [
|
|
941
|
+
{
|
|
942
|
+
"internalType": "address",
|
|
943
|
+
"name": "_newWalletOwner",
|
|
944
|
+
"type": "address"
|
|
945
|
+
}
|
|
946
|
+
],
|
|
947
|
+
"name": "beginWalletOwnerUpdate",
|
|
948
|
+
"outputs": [],
|
|
949
|
+
"stateMutability": "nonpayable",
|
|
950
|
+
"type": "function"
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
"inputs": [
|
|
954
|
+
{
|
|
955
|
+
"internalType": "address",
|
|
956
|
+
"name": "_newWalletRegistryGovernance",
|
|
957
|
+
"type": "address"
|
|
958
|
+
}
|
|
959
|
+
],
|
|
960
|
+
"name": "beginWalletRegistryGovernanceTransfer",
|
|
961
|
+
"outputs": [],
|
|
962
|
+
"stateMutability": "nonpayable",
|
|
963
|
+
"type": "function"
|
|
964
|
+
},
|
|
965
|
+
{
|
|
966
|
+
"inputs": [],
|
|
967
|
+
"name": "dkgResultApprovalGasOffsetChangeInitiated",
|
|
968
|
+
"outputs": [
|
|
969
|
+
{
|
|
970
|
+
"internalType": "uint256",
|
|
971
|
+
"name": "",
|
|
972
|
+
"type": "uint256"
|
|
973
|
+
}
|
|
974
|
+
],
|
|
975
|
+
"stateMutability": "view",
|
|
976
|
+
"type": "function"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"inputs": [],
|
|
980
|
+
"name": "dkgResultChallengeExtraGasChangeInitiated",
|
|
981
|
+
"outputs": [
|
|
982
|
+
{
|
|
983
|
+
"internalType": "uint256",
|
|
984
|
+
"name": "",
|
|
985
|
+
"type": "uint256"
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"stateMutability": "view",
|
|
989
|
+
"type": "function"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"inputs": [],
|
|
993
|
+
"name": "dkgResultChallengePeriodLengthChangeInitiated",
|
|
994
|
+
"outputs": [
|
|
995
|
+
{
|
|
996
|
+
"internalType": "uint256",
|
|
997
|
+
"name": "",
|
|
998
|
+
"type": "uint256"
|
|
999
|
+
}
|
|
1000
|
+
],
|
|
1001
|
+
"stateMutability": "view",
|
|
1002
|
+
"type": "function"
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"inputs": [],
|
|
1006
|
+
"name": "dkgResultSubmissionGasChangeInitiated",
|
|
1007
|
+
"outputs": [
|
|
1008
|
+
{
|
|
1009
|
+
"internalType": "uint256",
|
|
1010
|
+
"name": "",
|
|
1011
|
+
"type": "uint256"
|
|
1012
|
+
}
|
|
1013
|
+
],
|
|
1014
|
+
"stateMutability": "view",
|
|
1015
|
+
"type": "function"
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
"inputs": [],
|
|
1019
|
+
"name": "dkgResultSubmissionTimeoutChangeInitiated",
|
|
1020
|
+
"outputs": [
|
|
1021
|
+
{
|
|
1022
|
+
"internalType": "uint256",
|
|
1023
|
+
"name": "",
|
|
1024
|
+
"type": "uint256"
|
|
1025
|
+
}
|
|
1026
|
+
],
|
|
1027
|
+
"stateMutability": "view",
|
|
1028
|
+
"type": "function"
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
"inputs": [],
|
|
1032
|
+
"name": "dkgSeedTimeoutChangeInitiated",
|
|
1033
|
+
"outputs": [
|
|
1034
|
+
{
|
|
1035
|
+
"internalType": "uint256",
|
|
1036
|
+
"name": "",
|
|
1037
|
+
"type": "uint256"
|
|
1038
|
+
}
|
|
1039
|
+
],
|
|
1040
|
+
"stateMutability": "view",
|
|
1041
|
+
"type": "function"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"inputs": [],
|
|
1045
|
+
"name": "dkgSubmitterPrecedencePeriodLengthChangeInitiated",
|
|
1046
|
+
"outputs": [
|
|
1047
|
+
{
|
|
1048
|
+
"internalType": "uint256",
|
|
1049
|
+
"name": "",
|
|
1050
|
+
"type": "uint256"
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"stateMutability": "view",
|
|
1054
|
+
"type": "function"
|
|
1055
|
+
},
|
|
1056
|
+
{
|
|
1057
|
+
"inputs": [],
|
|
1058
|
+
"name": "finalizeAuthorizationDecreaseChangePeriodUpdate",
|
|
1059
|
+
"outputs": [],
|
|
1060
|
+
"stateMutability": "nonpayable",
|
|
1061
|
+
"type": "function"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"inputs": [],
|
|
1065
|
+
"name": "finalizeAuthorizationDecreaseDelayUpdate",
|
|
1066
|
+
"outputs": [],
|
|
1067
|
+
"stateMutability": "nonpayable",
|
|
1068
|
+
"type": "function"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"inputs": [],
|
|
1072
|
+
"name": "finalizeDkgResultApprovalGasOffsetUpdate",
|
|
1073
|
+
"outputs": [],
|
|
1074
|
+
"stateMutability": "nonpayable",
|
|
1075
|
+
"type": "function"
|
|
1076
|
+
},
|
|
1077
|
+
{
|
|
1078
|
+
"inputs": [],
|
|
1079
|
+
"name": "finalizeDkgResultChallengeExtraGasUpdate",
|
|
1080
|
+
"outputs": [],
|
|
1081
|
+
"stateMutability": "nonpayable",
|
|
1082
|
+
"type": "function"
|
|
1083
|
+
},
|
|
1084
|
+
{
|
|
1085
|
+
"inputs": [],
|
|
1086
|
+
"name": "finalizeDkgResultChallengePeriodLengthUpdate",
|
|
1087
|
+
"outputs": [],
|
|
1088
|
+
"stateMutability": "nonpayable",
|
|
1089
|
+
"type": "function"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"inputs": [],
|
|
1093
|
+
"name": "finalizeDkgResultSubmissionGasUpdate",
|
|
1094
|
+
"outputs": [],
|
|
1095
|
+
"stateMutability": "nonpayable",
|
|
1096
|
+
"type": "function"
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
"inputs": [],
|
|
1100
|
+
"name": "finalizeDkgResultSubmissionTimeoutUpdate",
|
|
1101
|
+
"outputs": [],
|
|
1102
|
+
"stateMutability": "nonpayable",
|
|
1103
|
+
"type": "function"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"inputs": [],
|
|
1107
|
+
"name": "finalizeDkgSeedTimeoutUpdate",
|
|
1108
|
+
"outputs": [],
|
|
1109
|
+
"stateMutability": "nonpayable",
|
|
1110
|
+
"type": "function"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"inputs": [],
|
|
1114
|
+
"name": "finalizeDkgSubmitterPrecedencePeriodLengthUpdate",
|
|
1115
|
+
"outputs": [],
|
|
1116
|
+
"stateMutability": "nonpayable",
|
|
1117
|
+
"type": "function"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"inputs": [],
|
|
1121
|
+
"name": "finalizeGovernanceDelayUpdate",
|
|
1122
|
+
"outputs": [],
|
|
1123
|
+
"stateMutability": "nonpayable",
|
|
1124
|
+
"type": "function"
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
"inputs": [],
|
|
1128
|
+
"name": "finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate",
|
|
1129
|
+
"outputs": [],
|
|
1130
|
+
"stateMutability": "nonpayable",
|
|
1131
|
+
"type": "function"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"inputs": [],
|
|
1135
|
+
"name": "finalizeMaliciousDkgResultSlashingAmountUpdate",
|
|
1136
|
+
"outputs": [],
|
|
1137
|
+
"stateMutability": "nonpayable",
|
|
1138
|
+
"type": "function"
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"inputs": [],
|
|
1142
|
+
"name": "finalizeMinimumAuthorizationUpdate",
|
|
1143
|
+
"outputs": [],
|
|
1144
|
+
"stateMutability": "nonpayable",
|
|
1145
|
+
"type": "function"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"inputs": [],
|
|
1149
|
+
"name": "finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate",
|
|
1150
|
+
"outputs": [],
|
|
1151
|
+
"stateMutability": "nonpayable",
|
|
1152
|
+
"type": "function"
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
"inputs": [],
|
|
1156
|
+
"name": "finalizeNotifyOperatorInactivityGasOffsetUpdate",
|
|
1157
|
+
"outputs": [],
|
|
1158
|
+
"stateMutability": "nonpayable",
|
|
1159
|
+
"type": "function"
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
"inputs": [],
|
|
1163
|
+
"name": "finalizeNotifySeedTimeoutGasOffsetUpdate",
|
|
1164
|
+
"outputs": [],
|
|
1165
|
+
"stateMutability": "nonpayable",
|
|
1166
|
+
"type": "function"
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
"inputs": [],
|
|
1170
|
+
"name": "finalizeReimbursementPoolUpdate",
|
|
1171
|
+
"outputs": [],
|
|
1172
|
+
"stateMutability": "nonpayable",
|
|
1173
|
+
"type": "function"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"inputs": [],
|
|
1177
|
+
"name": "finalizeSortitionPoolRewardsBanDurationUpdate",
|
|
1178
|
+
"outputs": [],
|
|
1179
|
+
"stateMutability": "nonpayable",
|
|
1180
|
+
"type": "function"
|
|
1181
|
+
},
|
|
1182
|
+
{
|
|
1183
|
+
"inputs": [],
|
|
1184
|
+
"name": "finalizeWalletOwnerUpdate",
|
|
1185
|
+
"outputs": [],
|
|
1186
|
+
"stateMutability": "nonpayable",
|
|
1187
|
+
"type": "function"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"inputs": [],
|
|
1191
|
+
"name": "finalizeWalletRegistryGovernanceTransfer",
|
|
1192
|
+
"outputs": [],
|
|
1193
|
+
"stateMutability": "nonpayable",
|
|
1194
|
+
"type": "function"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
"inputs": [],
|
|
1198
|
+
"name": "getRemainingAuthorizationDecreaseChangePeriodUpdateTime",
|
|
1199
|
+
"outputs": [
|
|
1200
|
+
{
|
|
1201
|
+
"internalType": "uint256",
|
|
1202
|
+
"name": "",
|
|
1203
|
+
"type": "uint256"
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
"stateMutability": "view",
|
|
1207
|
+
"type": "function"
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"inputs": [],
|
|
1211
|
+
"name": "getRemainingAuthorizationDecreaseDelayUpdateTime",
|
|
1212
|
+
"outputs": [
|
|
1213
|
+
{
|
|
1214
|
+
"internalType": "uint256",
|
|
1215
|
+
"name": "",
|
|
1216
|
+
"type": "uint256"
|
|
1217
|
+
}
|
|
1218
|
+
],
|
|
1219
|
+
"stateMutability": "view",
|
|
1220
|
+
"type": "function"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"inputs": [],
|
|
1224
|
+
"name": "getRemainingDkgResultApprovalGasOffsetUpdateTime",
|
|
1225
|
+
"outputs": [
|
|
1226
|
+
{
|
|
1227
|
+
"internalType": "uint256",
|
|
1228
|
+
"name": "",
|
|
1229
|
+
"type": "uint256"
|
|
1230
|
+
}
|
|
1231
|
+
],
|
|
1232
|
+
"stateMutability": "view",
|
|
1233
|
+
"type": "function"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"inputs": [],
|
|
1237
|
+
"name": "getRemainingDkgResultChallengeExtraGasUpdateTime",
|
|
1238
|
+
"outputs": [
|
|
1239
|
+
{
|
|
1240
|
+
"internalType": "uint256",
|
|
1241
|
+
"name": "",
|
|
1242
|
+
"type": "uint256"
|
|
1243
|
+
}
|
|
1244
|
+
],
|
|
1245
|
+
"stateMutability": "view",
|
|
1246
|
+
"type": "function"
|
|
1247
|
+
},
|
|
1248
|
+
{
|
|
1249
|
+
"inputs": [],
|
|
1250
|
+
"name": "getRemainingDkgResultChallengePeriodLengthUpdateTime",
|
|
1251
|
+
"outputs": [
|
|
1252
|
+
{
|
|
1253
|
+
"internalType": "uint256",
|
|
1254
|
+
"name": "",
|
|
1255
|
+
"type": "uint256"
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
"stateMutability": "view",
|
|
1259
|
+
"type": "function"
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
"inputs": [],
|
|
1263
|
+
"name": "getRemainingDkgResultSubmissionGasUpdateTime",
|
|
1264
|
+
"outputs": [
|
|
1265
|
+
{
|
|
1266
|
+
"internalType": "uint256",
|
|
1267
|
+
"name": "",
|
|
1268
|
+
"type": "uint256"
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
"stateMutability": "view",
|
|
1272
|
+
"type": "function"
|
|
1273
|
+
},
|
|
1274
|
+
{
|
|
1275
|
+
"inputs": [],
|
|
1276
|
+
"name": "getRemainingDkgResultSubmissionTimeoutUpdateTime",
|
|
1277
|
+
"outputs": [
|
|
1278
|
+
{
|
|
1279
|
+
"internalType": "uint256",
|
|
1280
|
+
"name": "",
|
|
1281
|
+
"type": "uint256"
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"stateMutability": "view",
|
|
1285
|
+
"type": "function"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"inputs": [],
|
|
1289
|
+
"name": "getRemainingDkgSeedTimeoutUpdateTime",
|
|
1290
|
+
"outputs": [
|
|
1291
|
+
{
|
|
1292
|
+
"internalType": "uint256",
|
|
1293
|
+
"name": "",
|
|
1294
|
+
"type": "uint256"
|
|
1295
|
+
}
|
|
1296
|
+
],
|
|
1297
|
+
"stateMutability": "view",
|
|
1298
|
+
"type": "function"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"inputs": [],
|
|
1302
|
+
"name": "getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime",
|
|
1303
|
+
"outputs": [
|
|
1304
|
+
{
|
|
1305
|
+
"internalType": "uint256",
|
|
1306
|
+
"name": "",
|
|
1307
|
+
"type": "uint256"
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"stateMutability": "view",
|
|
1311
|
+
"type": "function"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"inputs": [],
|
|
1315
|
+
"name": "getRemainingGovernanceDelayUpdateTime",
|
|
1316
|
+
"outputs": [
|
|
1317
|
+
{
|
|
1318
|
+
"internalType": "uint256",
|
|
1319
|
+
"name": "",
|
|
1320
|
+
"type": "uint256"
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
1323
|
+
"stateMutability": "view",
|
|
1324
|
+
"type": "function"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"inputs": [],
|
|
1328
|
+
"name": "getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime",
|
|
1329
|
+
"outputs": [
|
|
1330
|
+
{
|
|
1331
|
+
"internalType": "uint256",
|
|
1332
|
+
"name": "",
|
|
1333
|
+
"type": "uint256"
|
|
1334
|
+
}
|
|
1335
|
+
],
|
|
1336
|
+
"stateMutability": "view",
|
|
1337
|
+
"type": "function"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"inputs": [],
|
|
1341
|
+
"name": "getRemainingMaliciousDkgResultSlashingAmountUpdateTime",
|
|
1342
|
+
"outputs": [
|
|
1343
|
+
{
|
|
1344
|
+
"internalType": "uint256",
|
|
1345
|
+
"name": "",
|
|
1346
|
+
"type": "uint256"
|
|
1347
|
+
}
|
|
1348
|
+
],
|
|
1349
|
+
"stateMutability": "view",
|
|
1350
|
+
"type": "function"
|
|
1351
|
+
},
|
|
1352
|
+
{
|
|
1353
|
+
"inputs": [],
|
|
1354
|
+
"name": "getRemainingMimimumAuthorizationUpdateTime",
|
|
1355
|
+
"outputs": [
|
|
1356
|
+
{
|
|
1357
|
+
"internalType": "uint256",
|
|
1358
|
+
"name": "",
|
|
1359
|
+
"type": "uint256"
|
|
1360
|
+
}
|
|
1361
|
+
],
|
|
1362
|
+
"stateMutability": "view",
|
|
1363
|
+
"type": "function"
|
|
1364
|
+
},
|
|
1365
|
+
{
|
|
1366
|
+
"inputs": [],
|
|
1367
|
+
"name": "getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime",
|
|
1368
|
+
"outputs": [
|
|
1369
|
+
{
|
|
1370
|
+
"internalType": "uint256",
|
|
1371
|
+
"name": "",
|
|
1372
|
+
"type": "uint256"
|
|
1373
|
+
}
|
|
1374
|
+
],
|
|
1375
|
+
"stateMutability": "view",
|
|
1376
|
+
"type": "function"
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"inputs": [],
|
|
1380
|
+
"name": "getRemainingNotifyOperatorInactivityGasOffsetUpdateTime",
|
|
1381
|
+
"outputs": [
|
|
1382
|
+
{
|
|
1383
|
+
"internalType": "uint256",
|
|
1384
|
+
"name": "",
|
|
1385
|
+
"type": "uint256"
|
|
1386
|
+
}
|
|
1387
|
+
],
|
|
1388
|
+
"stateMutability": "view",
|
|
1389
|
+
"type": "function"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"inputs": [],
|
|
1393
|
+
"name": "getRemainingNotifySeedTimeoutGasOffsetUpdateTime",
|
|
1394
|
+
"outputs": [
|
|
1395
|
+
{
|
|
1396
|
+
"internalType": "uint256",
|
|
1397
|
+
"name": "",
|
|
1398
|
+
"type": "uint256"
|
|
1399
|
+
}
|
|
1400
|
+
],
|
|
1401
|
+
"stateMutability": "view",
|
|
1402
|
+
"type": "function"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"inputs": [],
|
|
1406
|
+
"name": "getRemainingReimbursementPoolUpdateTime",
|
|
1407
|
+
"outputs": [
|
|
1408
|
+
{
|
|
1409
|
+
"internalType": "uint256",
|
|
1410
|
+
"name": "",
|
|
1411
|
+
"type": "uint256"
|
|
1412
|
+
}
|
|
1413
|
+
],
|
|
1414
|
+
"stateMutability": "view",
|
|
1415
|
+
"type": "function"
|
|
1416
|
+
},
|
|
1417
|
+
{
|
|
1418
|
+
"inputs": [],
|
|
1419
|
+
"name": "getRemainingSortitionPoolRewardsBanDurationUpdateTime",
|
|
1420
|
+
"outputs": [
|
|
1421
|
+
{
|
|
1422
|
+
"internalType": "uint256",
|
|
1423
|
+
"name": "",
|
|
1424
|
+
"type": "uint256"
|
|
1425
|
+
}
|
|
1426
|
+
],
|
|
1427
|
+
"stateMutability": "view",
|
|
1428
|
+
"type": "function"
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"inputs": [],
|
|
1432
|
+
"name": "getRemainingWalletOwnerUpdateTime",
|
|
1433
|
+
"outputs": [
|
|
1434
|
+
{
|
|
1435
|
+
"internalType": "uint256",
|
|
1436
|
+
"name": "",
|
|
1437
|
+
"type": "uint256"
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
"stateMutability": "view",
|
|
1441
|
+
"type": "function"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"inputs": [],
|
|
1445
|
+
"name": "getRemainingWalletRegistryGovernanceTransferDelayTime",
|
|
1446
|
+
"outputs": [
|
|
1447
|
+
{
|
|
1448
|
+
"internalType": "uint256",
|
|
1449
|
+
"name": "",
|
|
1450
|
+
"type": "uint256"
|
|
1451
|
+
}
|
|
1452
|
+
],
|
|
1453
|
+
"stateMutability": "view",
|
|
1454
|
+
"type": "function"
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
"inputs": [],
|
|
1458
|
+
"name": "governanceDelay",
|
|
1459
|
+
"outputs": [
|
|
1460
|
+
{
|
|
1461
|
+
"internalType": "uint256",
|
|
1462
|
+
"name": "",
|
|
1463
|
+
"type": "uint256"
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
"stateMutability": "view",
|
|
1467
|
+
"type": "function"
|
|
1468
|
+
},
|
|
1469
|
+
{
|
|
1470
|
+
"inputs": [],
|
|
1471
|
+
"name": "governanceDelayChangeInitiated",
|
|
1472
|
+
"outputs": [
|
|
1473
|
+
{
|
|
1474
|
+
"internalType": "uint256",
|
|
1475
|
+
"name": "",
|
|
1476
|
+
"type": "uint256"
|
|
1477
|
+
}
|
|
1478
|
+
],
|
|
1479
|
+
"stateMutability": "view",
|
|
1480
|
+
"type": "function"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"inputs": [
|
|
1484
|
+
{
|
|
1485
|
+
"internalType": "address",
|
|
1486
|
+
"name": "_walletOwner",
|
|
1487
|
+
"type": "address"
|
|
1488
|
+
}
|
|
1489
|
+
],
|
|
1490
|
+
"name": "initializeWalletOwner",
|
|
1491
|
+
"outputs": [],
|
|
1492
|
+
"stateMutability": "nonpayable",
|
|
1493
|
+
"type": "function"
|
|
1494
|
+
},
|
|
1495
|
+
{
|
|
1496
|
+
"inputs": [],
|
|
1497
|
+
"name": "maliciousDkgResultNotificationRewardMultiplierChangeInitiated",
|
|
1498
|
+
"outputs": [
|
|
1499
|
+
{
|
|
1500
|
+
"internalType": "uint256",
|
|
1501
|
+
"name": "",
|
|
1502
|
+
"type": "uint256"
|
|
1503
|
+
}
|
|
1504
|
+
],
|
|
1505
|
+
"stateMutability": "view",
|
|
1506
|
+
"type": "function"
|
|
1507
|
+
},
|
|
1508
|
+
{
|
|
1509
|
+
"inputs": [],
|
|
1510
|
+
"name": "maliciousDkgResultSlashingAmountChangeInitiated",
|
|
1511
|
+
"outputs": [
|
|
1512
|
+
{
|
|
1513
|
+
"internalType": "uint256",
|
|
1514
|
+
"name": "",
|
|
1515
|
+
"type": "uint256"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
"stateMutability": "view",
|
|
1519
|
+
"type": "function"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"inputs": [],
|
|
1523
|
+
"name": "minimumAuthorizationChangeInitiated",
|
|
1524
|
+
"outputs": [
|
|
1525
|
+
{
|
|
1526
|
+
"internalType": "uint256",
|
|
1527
|
+
"name": "",
|
|
1528
|
+
"type": "uint256"
|
|
1529
|
+
}
|
|
1530
|
+
],
|
|
1531
|
+
"stateMutability": "view",
|
|
1532
|
+
"type": "function"
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"inputs": [],
|
|
1536
|
+
"name": "newAuthorizationDecreaseChangePeriod",
|
|
1537
|
+
"outputs": [
|
|
1538
|
+
{
|
|
1539
|
+
"internalType": "uint64",
|
|
1540
|
+
"name": "",
|
|
1541
|
+
"type": "uint64"
|
|
1542
|
+
}
|
|
1543
|
+
],
|
|
1544
|
+
"stateMutability": "view",
|
|
1545
|
+
"type": "function"
|
|
1546
|
+
},
|
|
1547
|
+
{
|
|
1548
|
+
"inputs": [],
|
|
1549
|
+
"name": "newAuthorizationDecreaseDelay",
|
|
1550
|
+
"outputs": [
|
|
1551
|
+
{
|
|
1552
|
+
"internalType": "uint64",
|
|
1553
|
+
"name": "",
|
|
1554
|
+
"type": "uint64"
|
|
1555
|
+
}
|
|
1556
|
+
],
|
|
1557
|
+
"stateMutability": "view",
|
|
1558
|
+
"type": "function"
|
|
1559
|
+
},
|
|
1560
|
+
{
|
|
1561
|
+
"inputs": [],
|
|
1562
|
+
"name": "newDkgResultApprovalGasOffset",
|
|
1563
|
+
"outputs": [
|
|
1564
|
+
{
|
|
1565
|
+
"internalType": "uint256",
|
|
1566
|
+
"name": "",
|
|
1567
|
+
"type": "uint256"
|
|
1568
|
+
}
|
|
1569
|
+
],
|
|
1570
|
+
"stateMutability": "view",
|
|
1571
|
+
"type": "function"
|
|
1572
|
+
},
|
|
1573
|
+
{
|
|
1574
|
+
"inputs": [],
|
|
1575
|
+
"name": "newDkgResultChallengeExtraGas",
|
|
1576
|
+
"outputs": [
|
|
1577
|
+
{
|
|
1578
|
+
"internalType": "uint256",
|
|
1579
|
+
"name": "",
|
|
1580
|
+
"type": "uint256"
|
|
1581
|
+
}
|
|
1582
|
+
],
|
|
1583
|
+
"stateMutability": "view",
|
|
1584
|
+
"type": "function"
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
"inputs": [],
|
|
1588
|
+
"name": "newDkgResultChallengePeriodLength",
|
|
1589
|
+
"outputs": [
|
|
1590
|
+
{
|
|
1591
|
+
"internalType": "uint256",
|
|
1592
|
+
"name": "",
|
|
1593
|
+
"type": "uint256"
|
|
1594
|
+
}
|
|
1595
|
+
],
|
|
1596
|
+
"stateMutability": "view",
|
|
1597
|
+
"type": "function"
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"inputs": [],
|
|
1601
|
+
"name": "newDkgResultSubmissionGas",
|
|
1602
|
+
"outputs": [
|
|
1603
|
+
{
|
|
1604
|
+
"internalType": "uint256",
|
|
1605
|
+
"name": "",
|
|
1606
|
+
"type": "uint256"
|
|
1607
|
+
}
|
|
1608
|
+
],
|
|
1609
|
+
"stateMutability": "view",
|
|
1610
|
+
"type": "function"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"inputs": [],
|
|
1614
|
+
"name": "newDkgResultSubmissionTimeout",
|
|
1615
|
+
"outputs": [
|
|
1616
|
+
{
|
|
1617
|
+
"internalType": "uint256",
|
|
1618
|
+
"name": "",
|
|
1619
|
+
"type": "uint256"
|
|
1620
|
+
}
|
|
1621
|
+
],
|
|
1622
|
+
"stateMutability": "view",
|
|
1623
|
+
"type": "function"
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
"inputs": [],
|
|
1627
|
+
"name": "newDkgSeedTimeout",
|
|
1628
|
+
"outputs": [
|
|
1629
|
+
{
|
|
1630
|
+
"internalType": "uint256",
|
|
1631
|
+
"name": "",
|
|
1632
|
+
"type": "uint256"
|
|
1633
|
+
}
|
|
1634
|
+
],
|
|
1635
|
+
"stateMutability": "view",
|
|
1636
|
+
"type": "function"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"inputs": [],
|
|
1640
|
+
"name": "newGovernanceDelay",
|
|
1641
|
+
"outputs": [
|
|
1642
|
+
{
|
|
1643
|
+
"internalType": "uint256",
|
|
1644
|
+
"name": "",
|
|
1645
|
+
"type": "uint256"
|
|
1646
|
+
}
|
|
1647
|
+
],
|
|
1648
|
+
"stateMutability": "view",
|
|
1649
|
+
"type": "function"
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"inputs": [],
|
|
1653
|
+
"name": "newMaliciousDkgResultNotificationRewardMultiplier",
|
|
1654
|
+
"outputs": [
|
|
1655
|
+
{
|
|
1656
|
+
"internalType": "uint256",
|
|
1657
|
+
"name": "",
|
|
1658
|
+
"type": "uint256"
|
|
1659
|
+
}
|
|
1660
|
+
],
|
|
1661
|
+
"stateMutability": "view",
|
|
1662
|
+
"type": "function"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"inputs": [],
|
|
1666
|
+
"name": "newMaliciousDkgResultSlashingAmount",
|
|
1667
|
+
"outputs": [
|
|
1668
|
+
{
|
|
1669
|
+
"internalType": "uint96",
|
|
1670
|
+
"name": "",
|
|
1671
|
+
"type": "uint96"
|
|
1672
|
+
}
|
|
1673
|
+
],
|
|
1674
|
+
"stateMutability": "view",
|
|
1675
|
+
"type": "function"
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"inputs": [],
|
|
1679
|
+
"name": "newMinimumAuthorization",
|
|
1680
|
+
"outputs": [
|
|
1681
|
+
{
|
|
1682
|
+
"internalType": "uint96",
|
|
1683
|
+
"name": "",
|
|
1684
|
+
"type": "uint96"
|
|
1685
|
+
}
|
|
1686
|
+
],
|
|
1687
|
+
"stateMutability": "view",
|
|
1688
|
+
"type": "function"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"inputs": [],
|
|
1692
|
+
"name": "newNotifyDkgTimeoutNegativeGasOffset",
|
|
1693
|
+
"outputs": [
|
|
1694
|
+
{
|
|
1695
|
+
"internalType": "uint256",
|
|
1696
|
+
"name": "",
|
|
1697
|
+
"type": "uint256"
|
|
1698
|
+
}
|
|
1699
|
+
],
|
|
1700
|
+
"stateMutability": "view",
|
|
1701
|
+
"type": "function"
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
"inputs": [],
|
|
1705
|
+
"name": "newNotifyOperatorInactivityGasOffset",
|
|
1706
|
+
"outputs": [
|
|
1707
|
+
{
|
|
1708
|
+
"internalType": "uint256",
|
|
1709
|
+
"name": "",
|
|
1710
|
+
"type": "uint256"
|
|
1711
|
+
}
|
|
1712
|
+
],
|
|
1713
|
+
"stateMutability": "view",
|
|
1714
|
+
"type": "function"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"inputs": [],
|
|
1718
|
+
"name": "newNotifySeedTimeoutGasOffset",
|
|
1719
|
+
"outputs": [
|
|
1720
|
+
{
|
|
1721
|
+
"internalType": "uint256",
|
|
1722
|
+
"name": "",
|
|
1723
|
+
"type": "uint256"
|
|
1724
|
+
}
|
|
1725
|
+
],
|
|
1726
|
+
"stateMutability": "view",
|
|
1727
|
+
"type": "function"
|
|
1728
|
+
},
|
|
1729
|
+
{
|
|
1730
|
+
"inputs": [],
|
|
1731
|
+
"name": "newReimbursementPool",
|
|
1732
|
+
"outputs": [
|
|
1733
|
+
{
|
|
1734
|
+
"internalType": "address payable",
|
|
1735
|
+
"name": "",
|
|
1736
|
+
"type": "address"
|
|
1737
|
+
}
|
|
1738
|
+
],
|
|
1739
|
+
"stateMutability": "view",
|
|
1740
|
+
"type": "function"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"inputs": [],
|
|
1744
|
+
"name": "newSortitionPoolRewardsBanDuration",
|
|
1745
|
+
"outputs": [
|
|
1746
|
+
{
|
|
1747
|
+
"internalType": "uint256",
|
|
1748
|
+
"name": "",
|
|
1749
|
+
"type": "uint256"
|
|
1750
|
+
}
|
|
1751
|
+
],
|
|
1752
|
+
"stateMutability": "view",
|
|
1753
|
+
"type": "function"
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"inputs": [],
|
|
1757
|
+
"name": "newSubmitterPrecedencePeriodLength",
|
|
1758
|
+
"outputs": [
|
|
1759
|
+
{
|
|
1760
|
+
"internalType": "uint256",
|
|
1761
|
+
"name": "",
|
|
1762
|
+
"type": "uint256"
|
|
1763
|
+
}
|
|
1764
|
+
],
|
|
1765
|
+
"stateMutability": "view",
|
|
1766
|
+
"type": "function"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"inputs": [],
|
|
1770
|
+
"name": "newWalletOwner",
|
|
1771
|
+
"outputs": [
|
|
1772
|
+
{
|
|
1773
|
+
"internalType": "address",
|
|
1774
|
+
"name": "",
|
|
1775
|
+
"type": "address"
|
|
1776
|
+
}
|
|
1777
|
+
],
|
|
1778
|
+
"stateMutability": "view",
|
|
1779
|
+
"type": "function"
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"inputs": [],
|
|
1783
|
+
"name": "newWalletRegistryGovernance",
|
|
1784
|
+
"outputs": [
|
|
1785
|
+
{
|
|
1786
|
+
"internalType": "address",
|
|
1787
|
+
"name": "",
|
|
1788
|
+
"type": "address"
|
|
1789
|
+
}
|
|
1790
|
+
],
|
|
1791
|
+
"stateMutability": "view",
|
|
1792
|
+
"type": "function"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"inputs": [],
|
|
1796
|
+
"name": "notifyDkgTimeoutNegativeGasOffsetChangeInitiated",
|
|
1797
|
+
"outputs": [
|
|
1798
|
+
{
|
|
1799
|
+
"internalType": "uint256",
|
|
1800
|
+
"name": "",
|
|
1801
|
+
"type": "uint256"
|
|
1802
|
+
}
|
|
1803
|
+
],
|
|
1804
|
+
"stateMutability": "view",
|
|
1805
|
+
"type": "function"
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
"inputs": [],
|
|
1809
|
+
"name": "notifyOperatorInactivityGasOffsetChangeInitiated",
|
|
1810
|
+
"outputs": [
|
|
1811
|
+
{
|
|
1812
|
+
"internalType": "uint256",
|
|
1813
|
+
"name": "",
|
|
1814
|
+
"type": "uint256"
|
|
1815
|
+
}
|
|
1816
|
+
],
|
|
1817
|
+
"stateMutability": "view",
|
|
1818
|
+
"type": "function"
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"inputs": [],
|
|
1822
|
+
"name": "notifySeedTimeoutGasOffsetChangeInitiated",
|
|
1823
|
+
"outputs": [
|
|
1824
|
+
{
|
|
1825
|
+
"internalType": "uint256",
|
|
1826
|
+
"name": "",
|
|
1827
|
+
"type": "uint256"
|
|
1828
|
+
}
|
|
1829
|
+
],
|
|
1830
|
+
"stateMutability": "view",
|
|
1831
|
+
"type": "function"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"inputs": [],
|
|
1835
|
+
"name": "owner",
|
|
1836
|
+
"outputs": [
|
|
1837
|
+
{
|
|
1838
|
+
"internalType": "address",
|
|
1839
|
+
"name": "",
|
|
1840
|
+
"type": "address"
|
|
1841
|
+
}
|
|
1842
|
+
],
|
|
1843
|
+
"stateMutability": "view",
|
|
1844
|
+
"type": "function"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"inputs": [],
|
|
1848
|
+
"name": "reimbursementPoolChangeInitiated",
|
|
1849
|
+
"outputs": [
|
|
1850
|
+
{
|
|
1851
|
+
"internalType": "uint256",
|
|
1852
|
+
"name": "",
|
|
1853
|
+
"type": "uint256"
|
|
1854
|
+
}
|
|
1855
|
+
],
|
|
1856
|
+
"stateMutability": "view",
|
|
1857
|
+
"type": "function"
|
|
1858
|
+
},
|
|
1859
|
+
{
|
|
1860
|
+
"inputs": [],
|
|
1861
|
+
"name": "renounceOwnership",
|
|
1862
|
+
"outputs": [],
|
|
1863
|
+
"stateMutability": "nonpayable",
|
|
1864
|
+
"type": "function"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"inputs": [],
|
|
1868
|
+
"name": "sortitionPoolRewardsBanDurationChangeInitiated",
|
|
1869
|
+
"outputs": [
|
|
1870
|
+
{
|
|
1871
|
+
"internalType": "uint256",
|
|
1872
|
+
"name": "",
|
|
1873
|
+
"type": "uint256"
|
|
1874
|
+
}
|
|
1875
|
+
],
|
|
1876
|
+
"stateMutability": "view",
|
|
1877
|
+
"type": "function"
|
|
1878
|
+
},
|
|
1879
|
+
{
|
|
1880
|
+
"inputs": [
|
|
1881
|
+
{
|
|
1882
|
+
"internalType": "address",
|
|
1883
|
+
"name": "newOwner",
|
|
1884
|
+
"type": "address"
|
|
1885
|
+
}
|
|
1886
|
+
],
|
|
1887
|
+
"name": "transferOwnership",
|
|
1888
|
+
"outputs": [],
|
|
1889
|
+
"stateMutability": "nonpayable",
|
|
1890
|
+
"type": "function"
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
"inputs": [
|
|
1894
|
+
{
|
|
1895
|
+
"internalType": "address",
|
|
1896
|
+
"name": "_newRandomBeacon",
|
|
1897
|
+
"type": "address"
|
|
1898
|
+
}
|
|
1899
|
+
],
|
|
1900
|
+
"name": "upgradeRandomBeacon",
|
|
1901
|
+
"outputs": [],
|
|
1902
|
+
"stateMutability": "nonpayable",
|
|
1903
|
+
"type": "function"
|
|
1904
|
+
},
|
|
1905
|
+
{
|
|
1906
|
+
"inputs": [],
|
|
1907
|
+
"name": "walletOwnerChangeInitiated",
|
|
1908
|
+
"outputs": [
|
|
1909
|
+
{
|
|
1910
|
+
"internalType": "uint256",
|
|
1911
|
+
"name": "",
|
|
1912
|
+
"type": "uint256"
|
|
1913
|
+
}
|
|
1914
|
+
],
|
|
1915
|
+
"stateMutability": "view",
|
|
1916
|
+
"type": "function"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"inputs": [],
|
|
1920
|
+
"name": "walletRegistry",
|
|
1921
|
+
"outputs": [
|
|
1922
|
+
{
|
|
1923
|
+
"internalType": "contract WalletRegistry",
|
|
1924
|
+
"name": "",
|
|
1925
|
+
"type": "address"
|
|
1926
|
+
}
|
|
1927
|
+
],
|
|
1928
|
+
"stateMutability": "view",
|
|
1929
|
+
"type": "function"
|
|
1930
|
+
},
|
|
1931
|
+
{
|
|
1932
|
+
"inputs": [],
|
|
1933
|
+
"name": "walletRegistryGovernanceTransferInitiated",
|
|
1934
|
+
"outputs": [
|
|
1935
|
+
{
|
|
1936
|
+
"internalType": "uint256",
|
|
1937
|
+
"name": "",
|
|
1938
|
+
"type": "uint256"
|
|
1939
|
+
}
|
|
1940
|
+
],
|
|
1941
|
+
"stateMutability": "view",
|
|
1942
|
+
"type": "function"
|
|
1943
|
+
},
|
|
1944
|
+
{
|
|
1945
|
+
"inputs": [
|
|
1946
|
+
{
|
|
1947
|
+
"internalType": "address",
|
|
1948
|
+
"name": "recipient",
|
|
1949
|
+
"type": "address"
|
|
1950
|
+
}
|
|
1951
|
+
],
|
|
1952
|
+
"name": "withdrawIneligibleRewards",
|
|
1953
|
+
"outputs": [],
|
|
1954
|
+
"stateMutability": "nonpayable",
|
|
1955
|
+
"type": "function"
|
|
1956
|
+
}
|
|
1957
|
+
],
|
|
1958
|
+
"transactionHash": "0x417406debb43cf5f2ef2bb378e3e6e6ea671b84f4b1b1ba74b4e72d39446b4ce",
|
|
1959
|
+
"receipt": {
|
|
1960
|
+
"to": null,
|
|
1961
|
+
"from": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
|
|
1962
|
+
"contractAddress": "0xAd5d57aD9bB17d34Debb88566ab2F5dB879Cc46F",
|
|
1963
|
+
"transactionIndex": 0,
|
|
1964
|
+
"gasUsed": "3938527",
|
|
1965
|
+
"logsBloom": "0x00000000000000000002000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000001000000000000000000000000000000000800020000000000000000000800000000000000000000000000000000400000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000001000000000002000000000000000000",
|
|
1966
|
+
"blockHash": "0xf3aa603b9b0964b5f8a7a709449076ae864c614b4983700842798a017e58b515",
|
|
1967
|
+
"transactionHash": "0x417406debb43cf5f2ef2bb378e3e6e6ea671b84f4b1b1ba74b4e72d39446b4ce",
|
|
1968
|
+
"logs": [
|
|
1969
|
+
{
|
|
1970
|
+
"transactionIndex": 0,
|
|
1971
|
+
"blockNumber": 39,
|
|
1972
|
+
"transactionHash": "0x417406debb43cf5f2ef2bb378e3e6e6ea671b84f4b1b1ba74b4e72d39446b4ce",
|
|
1973
|
+
"address": "0xAd5d57aD9bB17d34Debb88566ab2F5dB879Cc46F",
|
|
1974
|
+
"topics": [
|
|
1975
|
+
"0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
|
|
1976
|
+
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
1977
|
+
"0x00000000000000000000000070997970c51812dc3a010c7d01b50e0d17dc79c8"
|
|
1978
|
+
],
|
|
1979
|
+
"data": "0x",
|
|
1980
|
+
"logIndex": 0,
|
|
1981
|
+
"blockHash": "0xf3aa603b9b0964b5f8a7a709449076ae864c614b4983700842798a017e58b515"
|
|
1982
|
+
}
|
|
1983
|
+
],
|
|
1984
|
+
"blockNumber": 39,
|
|
1985
|
+
"cumulativeGasUsed": "3938527",
|
|
1986
|
+
"status": 1,
|
|
1987
|
+
"byzantium": true
|
|
1988
|
+
},
|
|
1989
|
+
"args": [
|
|
1990
|
+
"0x8613A4029EaA95dA61AE65380aC2e7366451bF2b",
|
|
1991
|
+
604800
|
|
1992
|
+
],
|
|
1993
|
+
"numDeployments": 1,
|
|
1994
|
+
"metadata": "{\"compiler\":{\"version\":\"0.8.17+commit.8df45f5f\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"contract WalletRegistry\",\"name\":\"_walletRegistry\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_governanceDelay\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"authorizationDecreaseChangePeriod\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"AuthorizationDecreaseChangePeriodUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"authorizationDecreaseChangePeriod\",\"type\":\"uint64\"}],\"name\":\"AuthorizationDecreaseChangePeriodUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"authorizationDecreaseDelay\",\"type\":\"uint64\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"AuthorizationDecreaseDelayUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint64\",\"name\":\"authorizationDecreaseDelay\",\"type\":\"uint64\"}],\"name\":\"AuthorizationDecreaseDelayUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultApprovalGasOffset\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgResultApprovalGasOffsetUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultApprovalGasOffset\",\"type\":\"uint256\"}],\"name\":\"DkgResultApprovalGasOffsetUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultChallengeExtraGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgResultChallengeExtraGasUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultChallengeExtraGas\",\"type\":\"uint256\"}],\"name\":\"DkgResultChallengeExtraGasUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultChallengePeriodLength\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgResultChallengePeriodLengthUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultChallengePeriodLength\",\"type\":\"uint256\"}],\"name\":\"DkgResultChallengePeriodLengthUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultSubmissionGas\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgResultSubmissionGasUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultSubmissionGas\",\"type\":\"uint256\"}],\"name\":\"DkgResultSubmissionGasUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultSubmissionTimeout\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgResultSubmissionTimeoutUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgResultSubmissionTimeout\",\"type\":\"uint256\"}],\"name\":\"DkgResultSubmissionTimeoutUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgSeedTimeout\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgSeedTimeoutUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"dkgSeedTimeout\",\"type\":\"uint256\"}],\"name\":\"DkgSeedTimeoutUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"submitterPrecedencePeriodLength\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"DkgSubmitterPrecedencePeriodLengthUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"submitterPrecedencePeriodLength\",\"type\":\"uint256\"}],\"name\":\"DkgSubmitterPrecedencePeriodLengthUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"governanceDelay\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"GovernanceDelayUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"governanceDelay\",\"type\":\"uint256\"}],\"name\":\"GovernanceDelayUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maliciousDkgResultNotificationRewardMultiplier\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"MaliciousDkgResultNotificationRewardMultiplierUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maliciousDkgResultNotificationRewardMultiplier\",\"type\":\"uint256\"}],\"name\":\"MaliciousDkgResultNotificationRewardMultiplierUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maliciousDkgResultSlashingAmount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"MaliciousDkgResultSlashingAmountUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"maliciousDkgResultSlashingAmount\",\"type\":\"uint256\"}],\"name\":\"MaliciousDkgResultSlashingAmountUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint96\",\"name\":\"minimumAuthorization\",\"type\":\"uint96\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"MinimumAuthorizationUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint96\",\"name\":\"minimumAuthorization\",\"type\":\"uint96\"}],\"name\":\"MinimumAuthorizationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifyDkgTimeoutNegativeGasOffset\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"NotifyDkgTimeoutNegativeGasOffsetUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifyDkgTimeoutNegativeGasOffset\",\"type\":\"uint256\"}],\"name\":\"NotifyDkgTimeoutNegativeGasOffsetUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifyOperatorInactivityGasOffset\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"NotifyOperatorInactivityGasOffsetUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifyOperatorInactivityGasOffset\",\"type\":\"uint256\"}],\"name\":\"NotifyOperatorInactivityGasOffsetUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifySeedTimeoutGasOffset\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"NotifySeedTimeoutGasOffsetUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"notifySeedTimeoutGasOffset\",\"type\":\"uint256\"}],\"name\":\"NotifySeedTimeoutGasOffsetUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"reimbursementPool\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"ReimbursementPoolUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"reimbursementPool\",\"type\":\"address\"}],\"name\":\"ReimbursementPoolUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sortitionPoolRewardsBanDuration\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"SortitionPoolRewardsBanDurationUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"sortitionPoolRewardsBanDuration\",\"type\":\"uint256\"}],\"name\":\"SortitionPoolRewardsBanDurationUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"walletOwner\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"WalletOwnerUpdateStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"walletOwner\",\"type\":\"address\"}],\"name\":\"WalletOwnerUpdated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newWalletRegistryGovernance\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"timestamp\",\"type\":\"uint256\"}],\"name\":\"WalletRegistryGovernanceTransferStarted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"newWalletRegistryGovernance\",\"type\":\"address\"}],\"name\":\"WalletRegistryGovernanceTransferred\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"authorizationDecreaseChangePeriodChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"authorizationDecreaseDelayChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_newAuthorizationDecreaseChangePeriod\",\"type\":\"uint64\"}],\"name\":\"beginAuthorizationDecreaseChangePeriodUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint64\",\"name\":\"_newAuthorizationDecreaseDelay\",\"type\":\"uint64\"}],\"name\":\"beginAuthorizationDecreaseDelayUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgResultApprovalGasOffset\",\"type\":\"uint256\"}],\"name\":\"beginDkgResultApprovalGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgResultChallengeExtraGas\",\"type\":\"uint256\"}],\"name\":\"beginDkgResultChallengeExtraGasUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgResultChallengePeriodLength\",\"type\":\"uint256\"}],\"name\":\"beginDkgResultChallengePeriodLengthUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgResultSubmissionGas\",\"type\":\"uint256\"}],\"name\":\"beginDkgResultSubmissionGasUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgResultSubmissionTimeout\",\"type\":\"uint256\"}],\"name\":\"beginDkgResultSubmissionTimeoutUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newDkgSeedTimeout\",\"type\":\"uint256\"}],\"name\":\"beginDkgSeedTimeoutUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newSubmitterPrecedencePeriodLength\",\"type\":\"uint256\"}],\"name\":\"beginDkgSubmitterPrecedencePeriodLengthUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newGovernanceDelay\",\"type\":\"uint256\"}],\"name\":\"beginGovernanceDelayUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newMaliciousDkgResultNotificationRewardMultiplier\",\"type\":\"uint256\"}],\"name\":\"beginMaliciousDkgResultNotificationRewardMultiplierUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint96\",\"name\":\"_newMaliciousDkgResultSlashingAmount\",\"type\":\"uint96\"}],\"name\":\"beginMaliciousDkgResultSlashingAmountUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint96\",\"name\":\"_newMinimumAuthorization\",\"type\":\"uint96\"}],\"name\":\"beginMinimumAuthorizationUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newNotifyDkgTimeoutNegativeGasOffset\",\"type\":\"uint256\"}],\"name\":\"beginNotifyDkgTimeoutNegativeGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newNotifyOperatorInactivityGasOffset\",\"type\":\"uint256\"}],\"name\":\"beginNotifyOperatorInactivityGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newNotifySeedTimeoutGasOffset\",\"type\":\"uint256\"}],\"name\":\"beginNotifySeedTimeoutGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address payable\",\"name\":\"_newReimbursementPool\",\"type\":\"address\"}],\"name\":\"beginReimbursementPoolUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_newSortitionPoolRewardsBanDuration\",\"type\":\"uint256\"}],\"name\":\"beginSortitionPoolRewardsBanDurationUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newWalletOwner\",\"type\":\"address\"}],\"name\":\"beginWalletOwnerUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newWalletRegistryGovernance\",\"type\":\"address\"}],\"name\":\"beginWalletRegistryGovernanceTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgResultApprovalGasOffsetChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgResultChallengeExtraGasChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgResultChallengePeriodLengthChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgResultSubmissionGasChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgResultSubmissionTimeoutChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgSeedTimeoutChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"dkgSubmitterPrecedencePeriodLengthChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeAuthorizationDecreaseChangePeriodUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeAuthorizationDecreaseDelayUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgResultApprovalGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgResultChallengeExtraGasUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgResultChallengePeriodLengthUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgResultSubmissionGasUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgResultSubmissionTimeoutUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgSeedTimeoutUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeDkgSubmitterPrecedencePeriodLengthUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeGovernanceDelayUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeMaliciousDkgResultSlashingAmountUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeMinimumAuthorizationUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeNotifyOperatorInactivityGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeNotifySeedTimeoutGasOffsetUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeReimbursementPoolUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeSortitionPoolRewardsBanDurationUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeWalletOwnerUpdate\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"finalizeWalletRegistryGovernanceTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingAuthorizationDecreaseChangePeriodUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingAuthorizationDecreaseDelayUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgResultApprovalGasOffsetUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgResultChallengeExtraGasUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgResultChallengePeriodLengthUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgResultSubmissionGasUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgResultSubmissionTimeoutUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgSeedTimeoutUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingGovernanceDelayUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingMaliciousDkgResultSlashingAmountUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingMimimumAuthorizationUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingNotifyOperatorInactivityGasOffsetUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingNotifySeedTimeoutGasOffsetUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingReimbursementPoolUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingSortitionPoolRewardsBanDurationUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingWalletOwnerUpdateTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRemainingWalletRegistryGovernanceTransferDelayTime\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governanceDelayChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_walletOwner\",\"type\":\"address\"}],\"name\":\"initializeWalletOwner\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maliciousDkgResultNotificationRewardMultiplierChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"maliciousDkgResultSlashingAmountChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"minimumAuthorizationChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newAuthorizationDecreaseChangePeriod\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newAuthorizationDecreaseDelay\",\"outputs\":[{\"internalType\":\"uint64\",\"name\":\"\",\"type\":\"uint64\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgResultApprovalGasOffset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgResultChallengeExtraGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgResultChallengePeriodLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgResultSubmissionGas\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgResultSubmissionTimeout\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newDkgSeedTimeout\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newGovernanceDelay\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newMaliciousDkgResultNotificationRewardMultiplier\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newMaliciousDkgResultSlashingAmount\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newMinimumAuthorization\",\"outputs\":[{\"internalType\":\"uint96\",\"name\":\"\",\"type\":\"uint96\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newNotifyDkgTimeoutNegativeGasOffset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newNotifyOperatorInactivityGasOffset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newNotifySeedTimeoutGasOffset\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newReimbursementPool\",\"outputs\":[{\"internalType\":\"address payable\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newSortitionPoolRewardsBanDuration\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newSubmitterPrecedencePeriodLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newWalletOwner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"newWalletRegistryGovernance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"notifyDkgTimeoutNegativeGasOffsetChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"notifyOperatorInactivityGasOffsetChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"notifySeedTimeoutGasOffsetChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"reimbursementPoolChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"sortitionPoolRewardsBanDurationChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_newRandomBeacon\",\"type\":\"address\"}],\"name\":\"upgradeRandomBeacon\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"walletOwnerChangeInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"walletRegistry\",\"outputs\":[{\"internalType\":\"contract WalletRegistry\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"walletRegistryGovernanceTransferInitiated\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"recipient\",\"type\":\"address\"}],\"name\":\"withdrawIneligibleRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"kind\":\"dev\",\"methods\":{\"beginAuthorizationDecreaseChangePeriodUpdate(uint64)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newAuthorizationDecreaseChangePeriod\":\"New authorization decrease change period\"}},\"beginAuthorizationDecreaseDelayUpdate(uint64)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newAuthorizationDecreaseDelay\":\"New authorization decrease delay\"}},\"beginDkgResultApprovalGasOffsetUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgResultApprovalGasOffset\":\"New DKG result approval gas.\"}},\"beginDkgResultChallengeExtraGasUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgResultChallengeExtraGas\":\"New DKG result challenge extra gas\"}},\"beginDkgResultChallengePeriodLengthUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgResultChallengePeriodLength\":\"New DKG result challenge period length in blocks\"}},\"beginDkgResultSubmissionGasUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgResultSubmissionGas\":\"New DKG result submission gas.\"}},\"beginDkgResultSubmissionTimeoutUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgResultSubmissionTimeout\":\"New DKG result submission timeout in blocks\"}},\"beginDkgSeedTimeoutUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newDkgSeedTimeout\":\"New DKG seed timeout in blocks\"}},\"beginDkgSubmitterPrecedencePeriodLengthUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newSubmitterPrecedencePeriodLength\":\"New DKG submitter precedence period length in blocks\"}},\"beginGovernanceDelayUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newGovernanceDelay\":\"New governance delay\"}},\"beginMaliciousDkgResultNotificationRewardMultiplierUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newMaliciousDkgResultNotificationRewardMultiplier\":\"New DKG malicious result notification reward multiplier.\"}},\"beginMaliciousDkgResultSlashingAmountUpdate(uint96)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newMaliciousDkgResultSlashingAmount\":\"New malicious DKG result slashing amount\"}},\"beginMinimumAuthorizationUpdate(uint96)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newMinimumAuthorization\":\"New minimum authorization amount.\"}},\"beginNotifyDkgTimeoutNegativeGasOffsetUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newNotifyDkgTimeoutNegativeGasOffset\":\"New DKG timeout negative gas notification gas offset\"}},\"beginNotifyOperatorInactivityGasOffsetUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newNotifyOperatorInactivityGasOffset\":\"New operator inactivity notification gas offset\"}},\"beginNotifySeedTimeoutGasOffsetUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newNotifySeedTimeoutGasOffset\":\"New seed for DKG delivery timeout notification gas offset\"}},\"beginReimbursementPoolUpdate(address)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newReimbursementPool\":\"New reimbursement pool.\"}},\"beginSortitionPoolRewardsBanDurationUpdate(uint256)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newSortitionPoolRewardsBanDuration\":\"New sortition pool rewards ban duration.\"}},\"beginWalletOwnerUpdate(address)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newWalletOwner\":\"New wallet owner address\"}},\"beginWalletRegistryGovernanceTransfer(address)\":{\"details\":\"Can be called only by the contract owner.\"},\"finalizeAuthorizationDecreaseChangePeriodUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeAuthorizationDecreaseDelayUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgResultApprovalGasOffsetUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgResultChallengeExtraGasUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgResultChallengePeriodLengthUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgResultSubmissionGasUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgResultSubmissionTimeoutUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgSeedTimeoutUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeDkgSubmitterPrecedencePeriodLengthUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeGovernanceDelayUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeMaliciousDkgResultSlashingAmountUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeMinimumAuthorizationUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeNotifyOperatorInactivityGasOffsetUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeNotifySeedTimeoutGasOffsetUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeReimbursementPoolUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeSortitionPoolRewardsBanDurationUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeWalletOwnerUpdate()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"finalizeWalletRegistryGovernanceTransfer()\":{\"details\":\"Can be called only by the contract owner, after the governance delay elapses.\"},\"getRemainingAuthorizationDecreaseChangePeriodUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingAuthorizationDecreaseDelayUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgResultApprovalGasOffsetUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgResultChallengePeriodLengthUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgResultSubmissionGasUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgResultSubmissionTimeoutUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgSeedTimeoutUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingGovernanceDelayUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingMaliciousDkgResultSlashingAmountUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingMimimumAuthorizationUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingNotifyOperatorInactivityGasOffsetUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingNotifySeedTimeoutGasOffsetUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingReimbursementPoolUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingSortitionPoolRewardsBanDurationUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingWalletOwnerUpdateTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"getRemainingWalletRegistryGovernanceTransferDelayTime()\":{\"returns\":{\"_0\":\"Remaining time in seconds.\"}},\"initializeWalletOwner(address)\":{\"details\":\"Can be called only by the contract owner. It can be called only if walletOwner has not been set before. It doesn't enforce a governance delay for the initial update. Any subsequent updates should be performed with beginWalletOwnerUpdate/finalizeWalletOwnerUpdate with respect of a governance delay.\",\"params\":{\"_walletOwner\":\"The Wallet Owner's address\"}},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"upgradeRandomBeacon(address)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"_newRandomBeacon\":\"New random beacon address\"}},\"withdrawIneligibleRewards(address)\":{\"details\":\"Can be called only by the contract owner.\",\"params\":{\"recipient\":\"Recipient of withdrawn rewards.\"}}},\"title\":\"Wallet Registry Governance\",\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{\"beginAuthorizationDecreaseChangePeriodUpdate(uint64)\":{\"notice\":\"Begins the authorization decrease change period update process.\"},\"beginAuthorizationDecreaseDelayUpdate(uint64)\":{\"notice\":\"Begins the authorization decrease delay update process.\"},\"beginDkgResultApprovalGasOffsetUpdate(uint256)\":{\"notice\":\"Begins the dkg approval gas offset update process.\"},\"beginDkgResultChallengeExtraGasUpdate(uint256)\":{\"notice\":\"Begins the DKG result challenge extra gas update process.\"},\"beginDkgResultChallengePeriodLengthUpdate(uint256)\":{\"notice\":\"Begins the DKG result challenge period length update process.\"},\"beginDkgResultSubmissionGasUpdate(uint256)\":{\"notice\":\"Begins the dkg result submission gas update process.\"},\"beginDkgResultSubmissionTimeoutUpdate(uint256)\":{\"notice\":\"Begins the DKG result submission timeout update process.\"},\"beginDkgSeedTimeoutUpdate(uint256)\":{\"notice\":\"Begins the DKG seed timeout update process.\"},\"beginDkgSubmitterPrecedencePeriodLengthUpdate(uint256)\":{\"notice\":\"Begins the DKG submitter precedence period length update process.\"},\"beginGovernanceDelayUpdate(uint256)\":{\"notice\":\"Begins the governance delay update process.\"},\"beginMaliciousDkgResultNotificationRewardMultiplierUpdate(uint256)\":{\"notice\":\"Begins the DKG malicious result notification reward multiplier update process.\"},\"beginMaliciousDkgResultSlashingAmountUpdate(uint96)\":{\"notice\":\"Begins the malicious DKG result slashing amount update process.\"},\"beginMinimumAuthorizationUpdate(uint96)\":{\"notice\":\"Begins the minimum authorization amount update process.\"},\"beginNotifyDkgTimeoutNegativeGasOffsetUpdate(uint256)\":{\"notice\":\"Begins the notify DKG timeout negative gas offset update process.\"},\"beginNotifyOperatorInactivityGasOffsetUpdate(uint256)\":{\"notice\":\"Begins the notify operator inactivity gas offset update process.\"},\"beginNotifySeedTimeoutGasOffsetUpdate(uint256)\":{\"notice\":\"Begins the notify seed for DKG delivery timeout gas offset update process.\"},\"beginReimbursementPoolUpdate(address)\":{\"notice\":\"Begins the reimbursement pool update process.\"},\"beginSortitionPoolRewardsBanDurationUpdate(uint256)\":{\"notice\":\"Begins the sortition pool rewards ban duration update process.\"},\"beginWalletOwnerUpdate(address)\":{\"notice\":\"Begins the wallet owner update process.\"},\"beginWalletRegistryGovernanceTransfer(address)\":{\"notice\":\"Begins the wallet registry governance transfer process.\"},\"finalizeAuthorizationDecreaseChangePeriodUpdate()\":{\"notice\":\"Finalizes the authorization decrease change period update process.\"},\"finalizeAuthorizationDecreaseDelayUpdate()\":{\"notice\":\"Finalizes the authorization decrease delay update process.\"},\"finalizeDkgResultApprovalGasOffsetUpdate()\":{\"notice\":\"Finalizes the dkg result approval gas offset update process.\"},\"finalizeDkgResultChallengeExtraGasUpdate()\":{\"notice\":\"Finalizes the DKG result challenge extra gas update process.\"},\"finalizeDkgResultChallengePeriodLengthUpdate()\":{\"notice\":\"Finalizes the DKG result challenge period length update process.\"},\"finalizeDkgResultSubmissionGasUpdate()\":{\"notice\":\"Finalizes the dkg result submission gas update process.\"},\"finalizeDkgResultSubmissionTimeoutUpdate()\":{\"notice\":\"Finalizes the DKG result submission timeout update process.\"},\"finalizeDkgSeedTimeoutUpdate()\":{\"notice\":\"Finalizes the DKG seed timeout update process.\"},\"finalizeDkgSubmitterPrecedencePeriodLengthUpdate()\":{\"notice\":\"Finalizes the DKG submitter precedence period length update process.\"},\"finalizeGovernanceDelayUpdate()\":{\"notice\":\"Finalizes the governance delay update process.\"},\"finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate()\":{\"notice\":\"Finalizes the DKG malicious result notification reward multiplier update process.\"},\"finalizeMaliciousDkgResultSlashingAmountUpdate()\":{\"notice\":\"Finalizes the malicious DKG result slashing amount update process.\"},\"finalizeMinimumAuthorizationUpdate()\":{\"notice\":\"Finalizes the minimum authorization amount update process.\"},\"finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate()\":{\"notice\":\"Finalizes the notify DKG timeout negative gas offset update process.\"},\"finalizeNotifyOperatorInactivityGasOffsetUpdate()\":{\"notice\":\"Finalizes the notify operator inactivity gas offset update process.\"},\"finalizeNotifySeedTimeoutGasOffsetUpdate()\":{\"notice\":\"Finalizes the notify seed for DKG delivery timeout gas offset update process.\"},\"finalizeReimbursementPoolUpdate()\":{\"notice\":\"Finalizes the reimbursement pool update process.\"},\"finalizeSortitionPoolRewardsBanDurationUpdate()\":{\"notice\":\"Finalizes the sortition pool rewards ban duration update process.\"},\"finalizeWalletOwnerUpdate()\":{\"notice\":\"Finalizes the wallet owner update process.\"},\"finalizeWalletRegistryGovernanceTransfer()\":{\"notice\":\"Finalizes the wallet registry governance transfer process.\"},\"getRemainingAuthorizationDecreaseChangePeriodUpdateTime()\":{\"notice\":\"Get the time remaining until the authorization decrease change period can be updated.\"},\"getRemainingAuthorizationDecreaseDelayUpdateTime()\":{\"notice\":\"Get the time remaining until the authorization decrease delay can be updated.\"},\"getRemainingDkgResultApprovalGasOffsetUpdateTime()\":{\"notice\":\"Get the time remaining until the dkg result approval gas offset can be updated.\"},\"getRemainingDkgResultChallengePeriodLengthUpdateTime()\":{\"notice\":\"Get the time remaining until the DKG result challenge period length can be updated.\"},\"getRemainingDkgResultSubmissionGasUpdateTime()\":{\"notice\":\"Get the time remaining until the dkg result submission gas can be updated.\"},\"getRemainingDkgResultSubmissionTimeoutUpdateTime()\":{\"notice\":\"Get the time remaining until the DKG result submission timeout can be updated.\"},\"getRemainingDkgSeedTimeoutUpdateTime()\":{\"notice\":\"Get the time remaining until the DKG seed timeout can be updated.\"},\"getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime()\":{\"notice\":\"Get the time remaining until the wallet owner can be updated.\"},\"getRemainingGovernanceDelayUpdateTime()\":{\"notice\":\"Get the time remaining until the governance delay can be updated.\"},\"getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime()\":{\"notice\":\"Get the time remaining until the DKG malicious result notification reward multiplier duration can be updated.\"},\"getRemainingMaliciousDkgResultSlashingAmountUpdateTime()\":{\"notice\":\"Get the time remaining until the malicious DKG result slashing amount can be updated.\"},\"getRemainingMimimumAuthorizationUpdateTime()\":{\"notice\":\"Get the time remaining until the minimum authorization amount can be updated.\"},\"getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime()\":{\"notice\":\"Get the time remaining until the DKG timeout negative gas offset can be updated.\"},\"getRemainingNotifyOperatorInactivityGasOffsetUpdateTime()\":{\"notice\":\"Get the time remaining until the operator inactivity gas offset can be updated.\"},\"getRemainingNotifySeedTimeoutGasOffsetUpdateTime()\":{\"notice\":\"Get the time remaining until the seed for DKG delivery timeout gas offset can be updated.\"},\"getRemainingReimbursementPoolUpdateTime()\":{\"notice\":\"Get the time remaining until reimbursement pool can be updated.\"},\"getRemainingSortitionPoolRewardsBanDurationUpdateTime()\":{\"notice\":\"Get the time remaining until the sortition pool rewards ban duration can be updated.\"},\"getRemainingWalletOwnerUpdateTime()\":{\"notice\":\"Get the time remaining until the wallet owner can be updated.\"},\"getRemainingWalletRegistryGovernanceTransferDelayTime()\":{\"notice\":\"Get the time remaining until the wallet registry governance can be transferred.\"},\"initializeWalletOwner(address)\":{\"notice\":\"Initializes the Wallet Owner's address.\"},\"upgradeRandomBeacon(address)\":{\"notice\":\"Upgrades the random beacon.\"},\"withdrawIneligibleRewards(address)\":{\"notice\":\"Withdraws rewards belonging to operators marked as ineligible for sortition pool rewards.\"}},\"notice\":\"Owns the `WalletRegistry` contract and is responsible for updating its governable parameters in respect to the governance delay.\",\"version\":1}},\"settings\":{\"compilationTarget\":{\"contracts/WalletRegistryGovernance.sol\":\"WalletRegistryGovernance\"},\"evmVersion\":\"london\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@keep-network/random-beacon/contracts/Governable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\n/// @notice Governable contract.\\n/// @dev A constructor is not defined, which makes the contract compatible with\\n/// upgradable proxies. This requires calling explicitly `_transferGovernance`\\n/// function in a child contract.\\nabstract contract Governable {\\n // Governance of the contract\\n // The variable should be initialized by the implementing contract.\\n // slither-disable-next-line uninitialized-state\\n address public governance;\\n\\n // Reserved storage space in case we need to add more variables,\\n // since there are upgradeable contracts that inherit from this one.\\n // See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n // slither-disable-next-line unused-state\\n uint256[49] private __gap;\\n\\n event GovernanceTransferred(address oldGovernance, address newGovernance);\\n\\n modifier onlyGovernance() virtual {\\n require(governance == msg.sender, \\\"Caller is not the governance\\\");\\n _;\\n }\\n\\n /// @notice Transfers governance of the contract to `newGovernance`.\\n function transferGovernance(address newGovernance)\\n external\\n virtual\\n onlyGovernance\\n {\\n require(\\n newGovernance != address(0),\\n \\\"New governance is the zero address\\\"\\n );\\n _transferGovernance(newGovernance);\\n }\\n\\n function _transferGovernance(address newGovernance) internal virtual {\\n address oldGovernance = governance;\\n governance = newGovernance;\\n emit GovernanceTransferred(oldGovernance, newGovernance);\\n }\\n}\\n\",\"keccak256\":\"0xcc6a0fe8fdf05a805d2874dc7dd76dede1eb16e3ab77f2d0069dbb92272ab0a3\",\"license\":\"GPL-3.0-only\"},\"@keep-network/random-beacon/contracts/Reimbursable.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"./ReimbursementPool.sol\\\";\\n\\nabstract contract Reimbursable {\\n // The variable should be initialized by the implementing contract.\\n // slither-disable-next-line uninitialized-state\\n ReimbursementPool public reimbursementPool;\\n\\n // Reserved storage space in case we need to add more variables,\\n // since there are upgradeable contracts that inherit from this one.\\n // See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n // slither-disable-next-line unused-state\\n uint256[49] private __gap;\\n\\n event ReimbursementPoolUpdated(address newReimbursementPool);\\n\\n modifier refundable(address receiver) {\\n uint256 gasStart = gasleft();\\n _;\\n reimbursementPool.refund(gasStart - gasleft(), receiver);\\n }\\n\\n modifier onlyReimbursableAdmin() virtual {\\n _;\\n }\\n\\n function updateReimbursementPool(ReimbursementPool _reimbursementPool)\\n external\\n onlyReimbursableAdmin\\n {\\n emit ReimbursementPoolUpdated(address(_reimbursementPool));\\n\\n reimbursementPool = _reimbursementPool;\\n }\\n}\\n\",\"keccak256\":\"0x6b01344c1ec13aaab1dc432d3afabe08d6dd0d1a9248be8b36a0747ac22e5d9f\",\"license\":\"GPL-3.0-only\"},\"@keep-network/random-beacon/contracts/ReimbursementPool.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@openzeppelin/contracts/security/ReentrancyGuard.sol\\\";\\n\\ncontract ReimbursementPool is Ownable, ReentrancyGuard {\\n /// @notice Authorized contracts that can interact with the reimbursment pool.\\n /// Authorization can be granted and removed by the owner.\\n mapping(address => bool) public isAuthorized;\\n\\n /// @notice Static gas includes:\\n /// - cost of the refund function\\n /// - base transaction cost\\n uint256 public staticGas;\\n\\n /// @notice Max gas price used to reimburse a transaction submitter. Protects\\n /// against malicious operator-miners.\\n uint256 public maxGasPrice;\\n\\n event StaticGasUpdated(uint256 newStaticGas);\\n\\n event MaxGasPriceUpdated(uint256 newMaxGasPrice);\\n\\n event SendingEtherFailed(uint256 refundAmount, address receiver);\\n\\n event AuthorizedContract(address thirdPartyContract);\\n\\n event UnauthorizedContract(address thirdPartyContract);\\n\\n event FundsWithdrawn(uint256 withdrawnAmount, address receiver);\\n\\n constructor(uint256 _staticGas, uint256 _maxGasPrice) {\\n staticGas = _staticGas;\\n maxGasPrice = _maxGasPrice;\\n }\\n\\n /// @notice Receive ETH\\n receive() external payable {}\\n\\n /// @notice Refunds ETH to a spender for executing specific transactions.\\n /// @dev Ignoring the result of sending ETH to a receiver is made on purpose.\\n /// For EOA receiving ETH should always work. If a receiver is a smart\\n /// contract, then we do not want to fail a transaction, because in some\\n /// cases the refund is done at the very end of multiple calls where all\\n /// the previous calls were already paid off. It is a receiver's smart\\n /// contract resposibility to make sure it can receive ETH.\\n /// @dev Only authorized contracts are allowed calling this function.\\n /// @param gasSpent Gas spent on a transaction that needs to be reimbursed.\\n /// @param receiver Address where the reimbursment is sent.\\n function refund(uint256 gasSpent, address receiver) external nonReentrant {\\n require(\\n isAuthorized[msg.sender],\\n \\\"Contract is not authorized for a refund\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n uint256 gasPrice = tx.gasprice < maxGasPrice\\n ? tx.gasprice\\n : maxGasPrice;\\n\\n uint256 refundAmount = (gasSpent + staticGas) * gasPrice;\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,unchecked-lowlevel\\n (bool sent, ) = receiver.call{value: refundAmount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n if (!sent) {\\n // slither-disable-next-line reentrancy-events\\n emit SendingEtherFailed(refundAmount, receiver);\\n }\\n }\\n\\n /// @notice Authorize a contract that can interact with this reimbursment pool.\\n /// Can be authorized by the owner only.\\n /// @param _contract Authorized contract.\\n function authorize(address _contract) external onlyOwner {\\n isAuthorized[_contract] = true;\\n\\n emit AuthorizedContract(_contract);\\n }\\n\\n /// @notice Unauthorize a contract that was previously authorized to interact\\n /// with this reimbursment pool. Can be unauthorized by the\\n /// owner only.\\n /// @param _contract Authorized contract.\\n function unauthorize(address _contract) external onlyOwner {\\n delete isAuthorized[_contract];\\n\\n emit UnauthorizedContract(_contract);\\n }\\n\\n /// @notice Setting a static gas cost for executing a transaction. Can be set\\n /// by the owner only.\\n /// @param _staticGas Static gas cost.\\n function setStaticGas(uint256 _staticGas) external onlyOwner {\\n staticGas = _staticGas;\\n\\n emit StaticGasUpdated(_staticGas);\\n }\\n\\n /// @notice Setting a max gas price for transactions. Can be set by the\\n /// owner only.\\n /// @param _maxGasPrice Max gas price used to reimburse tx submitters.\\n function setMaxGasPrice(uint256 _maxGasPrice) external onlyOwner {\\n maxGasPrice = _maxGasPrice;\\n\\n emit MaxGasPriceUpdated(_maxGasPrice);\\n }\\n\\n /// @notice Withdraws all ETH from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param receiver An address where ETH is sent.\\n function withdrawAll(address receiver) external onlyOwner {\\n withdraw(address(this).balance, receiver);\\n }\\n\\n /// @notice Withdraws ETH amount from this pool which are sent to a given\\n /// address. Can be set by the owner only.\\n /// @param amount Amount to withdraw from the pool.\\n /// @param receiver An address where ETH is sent.\\n function withdraw(uint256 amount, address receiver) public onlyOwner {\\n require(\\n address(this).balance >= amount,\\n \\\"Insufficient contract balance\\\"\\n );\\n require(receiver != address(0), \\\"Receiver's address cannot be zero\\\");\\n\\n emit FundsWithdrawn(amount, receiver);\\n\\n /* solhint-disable avoid-low-level-calls */\\n // slither-disable-next-line low-level-calls,arbitrary-send\\n (bool sent, ) = receiver.call{value: amount}(\\\"\\\");\\n /* solhint-enable avoid-low-level-calls */\\n require(sent, \\\"Failed to send Ether\\\");\\n }\\n}\\n\",\"keccak256\":\"0xd6c24368cc4c6349b8b614e878ca961cad8254b8e8db1cc0abe452a70022ce50\",\"license\":\"GPL-3.0-only\"},\"@keep-network/random-beacon/contracts/api/IRandomBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"./IRandomBeaconConsumer.sol\\\";\\n\\n/// @title Random Beacon interface\\ninterface IRandomBeacon {\\n /// @notice Creates a request to generate a new relay entry. Requires a\\n /// request fee denominated in T token.\\n /// @param callbackContract Beacon consumer callback contract.\\n function requestRelayEntry(IRandomBeaconConsumer callbackContract) external;\\n}\\n\",\"keccak256\":\"0xc5f6ddbf69b2f2e2c03fe78b3857a1f038982e858679f520101f53c4ebe2f4bf\",\"license\":\"GPL-3.0-only\"},\"@keep-network/random-beacon/contracts/api/IRandomBeaconConsumer.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\ninterface IRandomBeaconConsumer {\\n /// @notice Receives relay entry produced by Keep Random Beacon. This function\\n /// should be called only by Keep Random Beacon.\\n ///\\n /// @param relayEntry Relay entry (random number) produced by Keep Random\\n /// Beacon.\\n /// @param blockNumber Block number at which the relay entry was submitted\\n /// to the chain.\\n function __beaconCallback(uint256 relayEntry, uint256 blockNumber) external;\\n}\\n\",\"keccak256\":\"0x84ce236b4eeb664ccb02782777a05c6ebb410be9b9e586a123a1205437a2ed9f\",\"license\":\"GPL-3.0-only\"},\"@keep-network/random-beacon/contracts/libraries/BytesLib.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n//\\n\\npragma solidity 0.8.17;\\n\\n/*\\nVersion pulled from keep-core v1:\\nhttps://github.com/keep-network/keep-core/blob/f297202db00c027978ad8e7103a356503de5773c/solidity-v1/contracts/utils/BytesLib.sol\\n\\nTo compile it with solidity 0.8 `_preBytes_slot` was replaced with `_preBytes.slot`.\\n*/\\n\\n/*\\nhttps://github.com/GNSPS/solidity-bytes-utils/\\nThis is free and unencumbered software released into the public domain.\\nAnyone is free to copy, modify, publish, use, compile, sell, or\\ndistribute this software, either in source code form or as a compiled\\nbinary, for any purpose, commercial or non-commercial, and by any\\nmeans.\\nIn jurisdictions that recognize copyright laws, the author or authors\\nof this software dedicate any and all copyright interest in the\\nsoftware to the public domain. We make this dedication for the benefit\\nof the public at large and to the detriment of our heirs and\\nsuccessors. We intend this dedication to be an overt act of\\nrelinquishment in perpetuity of all present and future rights to this\\nsoftware under copyright law.\\nTHE SOFTWARE IS PROVIDED \\\"AS IS\\\", WITHOUT WARRANTY OF ANY KIND,\\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\\nIN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR\\nOTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,\\nARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR\\nOTHER DEALINGS IN THE SOFTWARE.\\nFor more information, please refer to <https://unlicense.org>\\n*/\\n\\n/** @title BytesLib **/\\n/** @author https://github.com/GNSPS **/\\n\\nlibrary BytesLib {\\n function concatStorage(bytes storage _preBytes, bytes memory _postBytes)\\n internal\\n {\\n assembly {\\n // Read the first 32 bytes of _preBytes storage, which is the length\\n // of the array. (We don't need to use the offset into the slot\\n // because arrays use the entire slot.)\\n let fslot := sload(_preBytes.slot)\\n // Arrays of 31 bytes or less have an even value in their slot,\\n // while longer arrays have an odd value. The actual length is\\n // the slot divided by two for odd values, and the lowest order\\n // byte divided by two for even values.\\n // If the slot is even, bitwise and the slot with 255 and divide by\\n // two to get the length. If the slot is odd, bitwise and the slot\\n // with -1 and divide by two.\\n let slength := div(\\n and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)),\\n 2\\n )\\n let mlength := mload(_postBytes)\\n let newlength := add(slength, mlength)\\n // slength can contain both the length and contents of the array\\n // if length < 32 bytes so let's prepare for that\\n // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n switch add(lt(slength, 32), lt(newlength, 32))\\n case 2 {\\n // Since the new array still fits in the slot, we just need to\\n // update the contents of the slot.\\n // uint256(bytes_storage) = uint256(bytes_storage) + uint256(bytes_memory) + new_length\\n sstore(\\n _preBytes.slot,\\n // all the modifications to the slot are inside this\\n // next block\\n add(\\n // we can just add to the slot contents because the\\n // bytes we want to change are the LSBs\\n fslot,\\n add(\\n mul(\\n div(\\n // load the bytes from memory\\n mload(add(_postBytes, 0x20)),\\n // zero all bytes to the right\\n exp(0x100, sub(32, mlength))\\n ),\\n // and now shift left the number of bytes to\\n // leave space for the length in the slot\\n exp(0x100, sub(32, newlength))\\n ),\\n // increase length by the double of the memory\\n // bytes length\\n mul(mlength, 2)\\n )\\n )\\n )\\n }\\n case 1 {\\n // The stored value fits in the slot, but the combined value\\n // will exceed it.\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n // save new length\\n sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n // The contents of the _postBytes array start 32 bytes into\\n // the structure. Our first read should obtain the `submod`\\n // bytes that can fit into the unused space in the last word\\n // of the stored array. To get this, we read 32 bytes starting\\n // from `submod`, so the data we read overlaps with the array\\n // contents by `submod` bytes. Masking the lowest-order\\n // `submod` bytes allows us to add that value directly to the\\n // stored value.\\n\\n let submod := sub(32, slength)\\n let mc := add(_postBytes, submod)\\n let end := add(_postBytes, mlength)\\n let mask := sub(exp(0x100, submod), 1)\\n\\n sstore(\\n sc,\\n add(\\n and(\\n fslot,\\n 0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00\\n ),\\n and(mload(mc), mask)\\n )\\n )\\n\\n for {\\n mc := add(mc, 0x20)\\n sc := add(sc, 1)\\n } lt(mc, end) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n sstore(sc, mload(mc))\\n }\\n\\n mask := exp(0x100, sub(mc, end))\\n\\n sstore(sc, mul(div(mload(mc), mask), mask))\\n }\\n default {\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n // Start copying to the last used word of the stored array.\\n let sc := add(keccak256(0x0, 0x20), div(slength, 32))\\n\\n // save new length\\n sstore(_preBytes.slot, add(mul(newlength, 2), 1))\\n\\n // Copy over the first `submod` bytes of the new data as in\\n // case 1 above.\\n let slengthmod := mod(slength, 32)\\n let submod := sub(32, slengthmod)\\n let mc := add(_postBytes, submod)\\n let end := add(_postBytes, mlength)\\n let mask := sub(exp(0x100, submod), 1)\\n\\n sstore(sc, add(sload(sc), and(mload(mc), mask)))\\n\\n for {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } lt(mc, end) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n sstore(sc, mload(mc))\\n }\\n\\n mask := exp(0x100, sub(mc, end))\\n\\n sstore(sc, mul(div(mload(mc), mask), mask))\\n }\\n }\\n }\\n\\n function equalStorage(bytes storage _preBytes, bytes memory _postBytes)\\n internal\\n view\\n returns (bool)\\n {\\n bool success = true;\\n\\n assembly {\\n // we know _preBytes_offset is 0\\n let fslot := sload(_preBytes.slot)\\n // Decode the length of the stored array like in concatStorage().\\n let slength := div(\\n and(fslot, sub(mul(0x100, iszero(and(fslot, 1))), 1)),\\n 2\\n )\\n let mlength := mload(_postBytes)\\n\\n // if lengths don't match the arrays are not equal\\n switch eq(slength, mlength)\\n case 1 {\\n // slength can contain both the length and contents of the array\\n // if length < 32 bytes so let's prepare for that\\n // v. http://solidity.readthedocs.io/en/latest/miscellaneous.html#layout-of-state-variables-in-storage\\n if iszero(iszero(slength)) {\\n switch lt(slength, 32)\\n case 1 {\\n // blank the last byte which is the length\\n fslot := mul(div(fslot, 0x100), 0x100)\\n\\n if iszero(eq(fslot, mload(add(_postBytes, 0x20)))) {\\n // unsuccess:\\n success := 0\\n }\\n }\\n default {\\n // cb is a circuit breaker in the for loop since there's\\n // no said feature for inline assembly loops\\n // cb = 1 - don't breaker\\n // cb = 0 - break\\n let cb := 1\\n\\n // get the keccak hash to get the contents of the array\\n mstore(0x0, _preBytes.slot)\\n let sc := keccak256(0x0, 0x20)\\n\\n let mc := add(_postBytes, 0x20)\\n let end := add(mc, mlength)\\n\\n // the next line is the loop condition:\\n // while(uint(mc < end) + cb == 2)\\n for {\\n\\n } eq(add(lt(mc, end), cb), 2) {\\n sc := add(sc, 1)\\n mc := add(mc, 0x20)\\n } {\\n if iszero(eq(sload(sc), mload(mc))) {\\n // unsuccess:\\n success := 0\\n cb := 0\\n }\\n }\\n }\\n }\\n }\\n default {\\n // unsuccess:\\n success := 0\\n }\\n }\\n\\n return success;\\n }\\n\\n function concat(bytes memory _preBytes, bytes memory _postBytes)\\n internal\\n pure\\n returns (bytes memory)\\n {\\n bytes memory tempBytes;\\n\\n assembly {\\n // Get a location of some free memory and store it in tempBytes as\\n // Solidity does for memory variables.\\n tempBytes := mload(0x40)\\n\\n // Store the length of the first bytes array at the beginning of\\n // the memory for tempBytes.\\n let length := mload(_preBytes)\\n mstore(tempBytes, length)\\n\\n // Maintain a memory counter for the current write location in the\\n // temp bytes array by adding the 32 bytes for the array length to\\n // the starting location.\\n let mc := add(tempBytes, 0x20)\\n // Stop copying when the memory counter reaches the length of the\\n // first bytes array.\\n let end := add(mc, length)\\n\\n for {\\n // Initialize a copy counter to the start of the _preBytes data,\\n // 32 bytes into its memory.\\n let cc := add(_preBytes, 0x20)\\n } lt(mc, end) {\\n // Increase both counters by 32 bytes each iteration.\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n // Write the _preBytes data into the tempBytes memory 32 bytes\\n // at a time.\\n mstore(mc, mload(cc))\\n }\\n\\n // Add the length of _postBytes to the current length of tempBytes\\n // and store it as the new length in the first 32 bytes of the\\n // tempBytes memory.\\n length := mload(_postBytes)\\n mstore(tempBytes, add(length, mload(tempBytes)))\\n\\n // Move the memory counter back from a multiple of 0x20 to the\\n // actual end of the _preBytes data.\\n mc := end\\n // Stop copying when the memory counter reaches the new combined\\n // length of the arrays.\\n end := add(mc, length)\\n\\n for {\\n let cc := add(_postBytes, 0x20)\\n } lt(mc, end) {\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n mstore(mc, mload(cc))\\n }\\n\\n // Update the free-memory pointer by padding our last write location\\n // to 32 bytes: add 31 bytes to the end of tempBytes to move to the\\n // next 32 byte block, then round down to the nearest multiple of\\n // 32. If the sum of the length of the two arrays is zero then add\\n // one before rounding down to leave a blank 32 bytes (the length block with 0).\\n mstore(\\n 0x40,\\n and(\\n add(add(end, iszero(add(length, mload(_preBytes)))), 31),\\n not(31) // Round down to the nearest 32 bytes.\\n )\\n )\\n }\\n\\n return tempBytes;\\n }\\n\\n function slice(\\n bytes memory _bytes,\\n uint256 _start,\\n uint256 _length\\n ) internal pure returns (bytes memory res) {\\n uint256 _end = _start + _length;\\n require(_end > _start && _bytes.length >= _end, \\\"Slice out of bounds\\\");\\n\\n assembly {\\n // Alloc bytes array with additional 32 bytes afterspace and assign it's size\\n res := mload(0x40)\\n mstore(0x40, add(add(res, 64), _length))\\n mstore(res, _length)\\n\\n // Compute distance between source and destination pointers\\n let diff := sub(res, add(_bytes, _start))\\n\\n for {\\n let src := add(add(_bytes, 32), _start)\\n let end := add(src, _length)\\n } lt(src, end) {\\n src := add(src, 32)\\n } {\\n mstore(add(src, diff), mload(src))\\n }\\n }\\n }\\n\\n function toAddress(bytes memory _bytes, uint256 _start)\\n internal\\n pure\\n returns (address)\\n {\\n uint256 _totalLen = _start + 20;\\n require(\\n _totalLen > _start && _bytes.length >= _totalLen,\\n \\\"Address conversion out of bounds.\\\"\\n );\\n address tempAddress;\\n\\n assembly {\\n tempAddress := div(\\n mload(add(add(_bytes, 0x20), _start)),\\n 0x1000000000000000000000000\\n )\\n }\\n\\n return tempAddress;\\n }\\n\\n function toUint8(bytes memory _bytes, uint256 _start)\\n internal\\n pure\\n returns (uint8)\\n {\\n require(\\n _bytes.length >= (_start + 1),\\n \\\"Uint8 conversion out of bounds.\\\"\\n );\\n uint8 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x1), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function toUint(bytes memory _bytes, uint256 _start)\\n internal\\n pure\\n returns (uint256)\\n {\\n uint256 _totalLen = _start + 32;\\n require(\\n _totalLen > _start && _bytes.length >= _totalLen,\\n \\\"Uint conversion out of bounds.\\\"\\n );\\n uint256 tempUint;\\n\\n assembly {\\n tempUint := mload(add(add(_bytes, 0x20), _start))\\n }\\n\\n return tempUint;\\n }\\n\\n function equal(bytes memory _preBytes, bytes memory _postBytes)\\n internal\\n pure\\n returns (bool)\\n {\\n bool success = true;\\n\\n assembly {\\n let length := mload(_preBytes)\\n\\n // if lengths don't match the arrays are not equal\\n switch eq(length, mload(_postBytes))\\n case 1 {\\n // cb is a circuit breaker in the for loop since there's\\n // no said feature for inline assembly loops\\n // cb = 1 - don't breaker\\n // cb = 0 - break\\n let cb := 1\\n\\n let mc := add(_preBytes, 0x20)\\n let end := add(mc, length)\\n\\n for {\\n let cc := add(_postBytes, 0x20)\\n // the next line is the loop condition:\\n // while(uint(mc < end) + cb == 2)\\n } eq(add(lt(mc, end), cb), 2) {\\n mc := add(mc, 0x20)\\n cc := add(cc, 0x20)\\n } {\\n // if any of these checks fails then arrays are not equal\\n if iszero(eq(mload(mc), mload(cc))) {\\n // unsuccess:\\n success := 0\\n cb := 0\\n }\\n }\\n }\\n default {\\n // unsuccess:\\n success := 0\\n }\\n }\\n\\n return success;\\n }\\n\\n function toBytes32(bytes memory _source)\\n internal\\n pure\\n returns (bytes32 result)\\n {\\n if (_source.length == 0) {\\n return 0x0;\\n }\\n\\n assembly {\\n result := mload(add(_source, 32))\\n }\\n }\\n\\n function keccak256Slice(\\n bytes memory _bytes,\\n uint256 _start,\\n uint256 _length\\n ) internal pure returns (bytes32 result) {\\n uint256 _end = _start + _length;\\n require(_end > _start && _bytes.length >= _end, \\\"Slice out of bounds\\\");\\n\\n assembly {\\n result := keccak256(add(add(_bytes, 32), _start), _length)\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3b76e2fe36eb777440250dcf2ea7a689375e8af22f3cc33521095ff6954becdb\",\"license\":\"GPL-3.0-only\"},\"@keep-network/sortition-pools/contracts/Branch.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"./Constants.sol\\\";\\n\\n/// @notice The implicit 8-ary trees of the sortition pool\\n/// rely on packing 8 \\\"slots\\\" of 32-bit values into each uint256.\\n/// The Branch library permits efficient calculations on these slots.\\nlibrary Branch {\\n /// @notice Calculate the right shift required\\n /// to make the 32 least significant bits of an uint256\\n /// be the bits of the `position`th slot\\n /// when treating the uint256 as a uint32[8].\\n ///\\n /// @dev Not used for efficiency reasons,\\n /// but left to illustrate the meaning of a common pattern.\\n /// I wish solidity had macros, even C macros.\\n function slotShift(uint256 position) internal pure returns (uint256) {\\n unchecked {\\n return position * Constants.SLOT_WIDTH;\\n }\\n }\\n\\n /// @notice Return the `position`th slot of the `node`,\\n /// treating `node` as a uint32[32].\\n function getSlot(uint256 node, uint256 position)\\n internal\\n pure\\n returns (uint256)\\n {\\n unchecked {\\n uint256 shiftBits = position * Constants.SLOT_WIDTH;\\n // Doing a bitwise AND with `SLOT_MAX`\\n // clears all but the 32 least significant bits.\\n // Because of the right shift by `slotShift(position)` bits,\\n // those 32 bits contain the 32 bits in the `position`th slot of `node`.\\n return (node >> shiftBits) & Constants.SLOT_MAX;\\n }\\n }\\n\\n /// @notice Return `node` with the `position`th slot set to zero.\\n function clearSlot(uint256 node, uint256 position)\\n internal\\n pure\\n returns (uint256)\\n {\\n unchecked {\\n uint256 shiftBits = position * Constants.SLOT_WIDTH;\\n // Shifting `SLOT_MAX` left by `slotShift(position)` bits\\n // gives us a number where all bits of the `position`th slot are set,\\n // and all other bits are unset.\\n //\\n // Using a bitwise NOT on this number,\\n // we get a uint256 where all bits are set\\n // except for those of the `position`th slot.\\n //\\n // Bitwise ANDing the original `node` with this number\\n // sets the bits of `position`th slot to zero,\\n // leaving all other bits unchanged.\\n return node & ~(Constants.SLOT_MAX << shiftBits);\\n }\\n }\\n\\n /// @notice Return `node` with the `position`th slot set to `weight`.\\n ///\\n /// @param weight The weight of of the node.\\n /// Safely truncated to a 32-bit number,\\n /// but this should never be called with an overflowing weight regardless.\\n function setSlot(\\n uint256 node,\\n uint256 position,\\n uint256 weight\\n ) internal pure returns (uint256) {\\n unchecked {\\n uint256 shiftBits = position * Constants.SLOT_WIDTH;\\n // Clear the `position`th slot like in `clearSlot()`.\\n uint256 clearedNode = node & ~(Constants.SLOT_MAX << shiftBits);\\n // Bitwise AND `weight` with `SLOT_MAX`\\n // to clear all but the 32 least significant bits.\\n //\\n // Shift this left by `slotShift(position)` bits\\n // to obtain a uint256 with all bits unset\\n // except in the `position`th slot\\n // which contains the 32-bit value of `weight`.\\n uint256 shiftedWeight = (weight & Constants.SLOT_MAX) << shiftBits;\\n // When we bitwise OR these together,\\n // all other slots except the `position`th one come from the left argument,\\n // and the `position`th gets filled with `weight` from the right argument.\\n return clearedNode | shiftedWeight;\\n }\\n }\\n\\n /// @notice Calculate the summed weight of all slots in the `node`.\\n function sumWeight(uint256 node) internal pure returns (uint256 sum) {\\n unchecked {\\n sum = node & Constants.SLOT_MAX;\\n // Iterate through each slot\\n // by shifting `node` right in increments of 32 bits,\\n // and adding the 32 least significant bits to the `sum`.\\n uint256 newNode = node >> Constants.SLOT_WIDTH;\\n while (newNode > 0) {\\n sum += (newNode & Constants.SLOT_MAX);\\n newNode = newNode >> Constants.SLOT_WIDTH;\\n }\\n return sum;\\n }\\n }\\n\\n /// @notice Pick a slot in `node` that corresponds to `index`.\\n /// Treats the node like an array of virtual stakers,\\n /// the number of virtual stakers in each slot corresponding to its weight,\\n /// and picks which slot contains the `index`th virtual staker.\\n ///\\n /// @dev Requires that `index` be lower than `sumWeight(node)`.\\n /// However, this is not enforced for performance reasons.\\n /// If `index` exceeds the permitted range,\\n /// `pickWeightedSlot()` returns the rightmost slot\\n /// and an excessively high `newIndex`.\\n ///\\n /// @return slot The slot of `node` containing the `index`th virtual staker.\\n ///\\n /// @return newIndex The index of the `index`th virtual staker of `node`\\n /// within the returned slot.\\n function pickWeightedSlot(uint256 node, uint256 index)\\n internal\\n pure\\n returns (uint256 slot, uint256 newIndex)\\n {\\n unchecked {\\n newIndex = index;\\n uint256 newNode = node;\\n uint256 currentSlotWeight = newNode & Constants.SLOT_MAX;\\n while (newIndex >= currentSlotWeight) {\\n newIndex -= currentSlotWeight;\\n slot++;\\n newNode = newNode >> Constants.SLOT_WIDTH;\\n currentSlotWeight = newNode & Constants.SLOT_MAX;\\n }\\n return (slot, newIndex);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xa7fb1c9c9789f30493e9a40e24a24f46875dc5e7630b4f67478167759f6d1882\"},\"@keep-network/sortition-pools/contracts/Chaosnet.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\n/// @title Chaosnet\\n/// @notice This is a beta staker program for stakers willing to go the extra\\n/// mile with monitoring, share their logs with the dev team, and allow to more\\n/// carefully monitor the bootstrapping network. As the network matures, the\\n/// beta program will be ended.\\ncontract Chaosnet {\\n /// @notice Indicates if the chaosnet is active. The chaosnet is active\\n /// after the contract deployment and can be ended with a call to\\n /// `deactivateChaosnet()`. Once deactivated chaosnet can not be activated\\n /// again.\\n bool public isChaosnetActive;\\n\\n /// @notice Indicates if the given operator is a beta operator for chaosnet.\\n mapping(address => bool) public isBetaOperator;\\n\\n /// @notice Address controlling chaosnet status and beta operator addresses.\\n address public chaosnetOwner;\\n\\n event BetaOperatorsAdded(address[] operators);\\n\\n event ChaosnetOwnerRoleTransferred(\\n address oldChaosnetOwner,\\n address newChaosnetOwner\\n );\\n\\n event ChaosnetDeactivated();\\n\\n constructor() {\\n _transferChaosnetOwner(msg.sender);\\n isChaosnetActive = true;\\n }\\n\\n modifier onlyChaosnetOwner() {\\n require(msg.sender == chaosnetOwner, \\\"Not the chaosnet owner\\\");\\n _;\\n }\\n\\n modifier onlyOnChaosnet() {\\n require(isChaosnetActive, \\\"Chaosnet is not active\\\");\\n _;\\n }\\n\\n /// @notice Adds beta operator to chaosnet. Can be called only by the\\n /// chaosnet owner when the chaosnet is active. Once the operator is added\\n /// as a beta operator, it can not be removed.\\n function addBetaOperators(address[] calldata operators)\\n public\\n onlyOnChaosnet\\n onlyChaosnetOwner\\n {\\n for (uint256 i = 0; i < operators.length; i++) {\\n isBetaOperator[operators[i]] = true;\\n }\\n\\n emit BetaOperatorsAdded(operators);\\n }\\n\\n /// @notice Deactivates the chaosnet. Can be called only by the chaosnet\\n /// owner. Once deactivated chaosnet can not be activated again.\\n function deactivateChaosnet() public onlyOnChaosnet onlyChaosnetOwner {\\n isChaosnetActive = false;\\n emit ChaosnetDeactivated();\\n }\\n\\n /// @notice Transfers the chaosnet owner role to another non-zero address.\\n function transferChaosnetOwnerRole(address newChaosnetOwner)\\n public\\n onlyChaosnetOwner\\n {\\n require(\\n newChaosnetOwner != address(0),\\n \\\"New chaosnet owner must not be zero address\\\"\\n );\\n _transferChaosnetOwner(newChaosnetOwner);\\n }\\n\\n function _transferChaosnetOwner(address newChaosnetOwner) internal {\\n address oldChaosnetOwner = chaosnetOwner;\\n chaosnetOwner = newChaosnetOwner;\\n emit ChaosnetOwnerRoleTransferred(oldChaosnetOwner, newChaosnetOwner);\\n }\\n}\\n\",\"keccak256\":\"0xeaf7bdd5626f88c329793a012621039692ce1b6e1f13013997ddb13d7e3032df\"},\"@keep-network/sortition-pools/contracts/Constants.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nlibrary Constants {\\n ////////////////////////////////////////////////////////////////////////////\\n // Parameters for configuration\\n\\n // How many bits a position uses per level of the tree;\\n // each branch of the tree contains 2**SLOT_BITS slots.\\n uint256 constant SLOT_BITS = 3;\\n uint256 constant LEVELS = 7;\\n ////////////////////////////////////////////////////////////////////////////\\n\\n ////////////////////////////////////////////////////////////////////////////\\n // Derived constants, do not touch\\n uint256 constant SLOT_COUNT = 2**SLOT_BITS;\\n uint256 constant SLOT_WIDTH = 256 / SLOT_COUNT;\\n uint256 constant LAST_SLOT = SLOT_COUNT - 1;\\n uint256 constant SLOT_MAX = (2**SLOT_WIDTH) - 1;\\n uint256 constant POOL_CAPACITY = SLOT_COUNT**LEVELS;\\n\\n uint256 constant ID_WIDTH = SLOT_WIDTH;\\n uint256 constant ID_MAX = SLOT_MAX;\\n\\n uint256 constant BLOCKHEIGHT_WIDTH = 96 - ID_WIDTH;\\n uint256 constant BLOCKHEIGHT_MAX = (2**BLOCKHEIGHT_WIDTH) - 1;\\n\\n uint256 constant SLOT_POINTER_MAX = (2**SLOT_BITS) - 1;\\n uint256 constant LEAF_FLAG = 1 << 255;\\n\\n uint256 constant WEIGHT_WIDTH = 256 / SLOT_COUNT;\\n ////////////////////////////////////////////////////////////////////////////\\n}\\n\",\"keccak256\":\"0xaef690ced707935745ff1482b7bb9bd9eb77bf6a39c717465e64cf12db8a7d39\"},\"@keep-network/sortition-pools/contracts/Leaf.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"./Constants.sol\\\";\\n\\nlibrary Leaf {\\n function make(\\n address _operator,\\n uint256 _creationBlock,\\n uint256 _id\\n ) internal pure returns (uint256) {\\n assert(_creationBlock <= type(uint64).max);\\n assert(_id <= type(uint32).max);\\n // Converting a bytesX type into a larger type\\n // adds zero bytes on the right.\\n uint256 op = uint256(bytes32(bytes20(_operator)));\\n // Bitwise AND the id to erase\\n // all but the 32 least significant bits\\n uint256 uid = _id & Constants.ID_MAX;\\n // Erase all but the 64 least significant bits,\\n // then shift left by 32 bits to make room for the id\\n uint256 cb = (_creationBlock & Constants.BLOCKHEIGHT_MAX) <<\\n Constants.ID_WIDTH;\\n // Bitwise OR them all together to get\\n // [address operator || uint64 creationBlock || uint32 id]\\n return (op | cb | uid);\\n }\\n\\n function operator(uint256 leaf) internal pure returns (address) {\\n // Converting a bytesX type into a smaller type\\n // truncates it on the right.\\n return address(bytes20(bytes32(leaf)));\\n }\\n\\n /// @notice Return the block number the leaf was created in.\\n function creationBlock(uint256 leaf) internal pure returns (uint256) {\\n return ((leaf >> Constants.ID_WIDTH) & Constants.BLOCKHEIGHT_MAX);\\n }\\n\\n function id(uint256 leaf) internal pure returns (uint32) {\\n // Id is stored in the 32 least significant bits.\\n // Bitwise AND ensures that we only get the contents of those bits.\\n return uint32(leaf & Constants.ID_MAX);\\n }\\n}\\n\",\"keccak256\":\"0xbd107a1a43e48884885e5e966ffcbcd8fa5e89863715d717bb4006e9f89cdc2b\"},\"@keep-network/sortition-pools/contracts/Position.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"./Constants.sol\\\";\\n\\nlibrary Position {\\n // Return the last 3 bits of a position number,\\n // corresponding to its slot in its parent\\n function slot(uint256 a) internal pure returns (uint256) {\\n return a & Constants.SLOT_POINTER_MAX;\\n }\\n\\n // Return the parent of a position number\\n function parent(uint256 a) internal pure returns (uint256) {\\n return a >> Constants.SLOT_BITS;\\n }\\n\\n // Return the location of the child of a at the given slot\\n function child(uint256 a, uint256 s) internal pure returns (uint256) {\\n return (a << Constants.SLOT_BITS) | (s & Constants.SLOT_POINTER_MAX); // slot(s)\\n }\\n\\n // Return the uint p as a flagged position uint:\\n // the least significant 21 bits contain the position\\n // and the 22nd bit is set as a flag\\n // to distinguish the position 0x000000 from an empty field.\\n function setFlag(uint256 p) internal pure returns (uint256) {\\n return p | Constants.LEAF_FLAG;\\n }\\n\\n // Turn a flagged position into an unflagged position\\n // by removing the flag at the 22nd least significant bit.\\n //\\n // We shouldn't _actually_ need this\\n // as all position-manipulating code should ignore non-position bits anyway\\n // but it's cheap to call so might as well do it.\\n function unsetFlag(uint256 p) internal pure returns (uint256) {\\n return p & (~Constants.LEAF_FLAG);\\n }\\n}\\n\",\"keccak256\":\"0xd3a927908080ac21353a92a6bce3d69e94a5c30f6b51f16b271b6cc679f110e2\"},\"@keep-network/sortition-pools/contracts/RNG.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"./Leaf.sol\\\";\\nimport \\\"./Constants.sol\\\";\\n\\nlibrary RNG {\\n /// @notice Get an index in the range `[0 .. range-1]`\\n /// and the new state of the RNG,\\n /// using the provided `state` of the RNG.\\n ///\\n /// @param range The upper bound of the index, exclusive.\\n ///\\n /// @param state The previous state of the RNG.\\n /// The initial state needs to be obtained\\n /// from a trusted randomness oracle (the random beacon),\\n /// or from a chain of earlier calls to `RNG.getIndex()`\\n /// on an originally trusted seed.\\n ///\\n /// @dev Calculates the number of bits required for the desired range,\\n /// takes the least significant bits of `state`\\n /// and checks if the obtained index is within the desired range.\\n /// The original state is hashed with `keccak256` to get a new state.\\n /// If the index is outside the range,\\n /// the function retries until it gets a suitable index.\\n ///\\n /// @return index A random integer between `0` and `range - 1`, inclusive.\\n ///\\n /// @return newState The new state of the RNG.\\n /// When `getIndex()` is called one or more times,\\n /// care must be taken to always use the output `state`\\n /// of the most recent call as the input `state` of a subsequent call.\\n /// At the end of a transaction calling `RNG.getIndex()`,\\n /// the previous stored state must be overwritten with the latest output.\\n function getIndex(\\n uint256 range,\\n bytes32 state,\\n uint256 bits\\n ) internal view returns (uint256, bytes32) {\\n bool found = false;\\n uint256 index = 0;\\n bytes32 newState = state;\\n while (!found) {\\n index = truncate(bits, uint256(newState));\\n newState = keccak256(abi.encodePacked(newState, address(this)));\\n if (index < range) {\\n found = true;\\n }\\n }\\n return (index, newState);\\n }\\n\\n /// @notice Calculate how many bits are required\\n /// for an index in the range `[0 .. range-1]`.\\n ///\\n /// @param range The upper bound of the desired range, exclusive.\\n ///\\n /// @return uint The smallest number of bits\\n /// that can contain the number `range-1`.\\n function bitsRequired(uint256 range) internal pure returns (uint256) {\\n unchecked {\\n if (range == 1) {\\n return 0;\\n }\\n\\n uint256 bits = Constants.WEIGHT_WIDTH - 1;\\n\\n // Left shift by `bits`,\\n // so we have a 1 in the (bits + 1)th least significant bit\\n // and 0 in other bits.\\n // If this number is equal or greater than `range`,\\n // the range [0, range-1] fits in `bits` bits.\\n //\\n // Because we loop from high bits to low bits,\\n // we find the highest number of bits that doesn't fit the range,\\n // and return that number + 1.\\n while (1 << bits >= range) {\\n bits--;\\n }\\n\\n return bits + 1;\\n }\\n }\\n\\n /// @notice Truncate `input` to the `bits` least significant bits.\\n function truncate(uint256 bits, uint256 input)\\n internal\\n pure\\n returns (uint256)\\n {\\n unchecked {\\n return input & ((1 << bits) - 1);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x67f87f589cd5123ffa32f883ea2f09b0e56258508bae82b8c655b3c27c71eb5e\"},\"@keep-network/sortition-pools/contracts/Rewards.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\n/// @title Rewards\\n/// @notice Rewards are allocated proportionally to operators\\n/// present in the pool at payout based on their weight in the pool.\\n///\\n/// To facilitate this, we use a global accumulator value\\n/// to track the total rewards one unit of weight would've earned\\n/// since the creation of the pool.\\n///\\n/// Whenever a reward is paid, the accumulator is increased\\n/// by the size of the reward divided by the total weight\\n/// of all eligible operators in the pool.\\n///\\n/// Each operator has an individual accumulator value,\\n/// set to equal the global accumulator when the operator joins the pool.\\n/// This accumulator reflects the amount of rewards\\n/// that have already been accounted for with that operator.\\n///\\n/// Whenever an operator's weight in the pool changes,\\n/// we can update the amount of rewards the operator has earned\\n/// by subtracting the operator's accumulator from the global accumulator.\\n/// This gives us the amount of rewards one unit of weight has earned\\n/// since the last time the operator's rewards have been updated.\\n/// Then we multiply that by the operator's previous (pre-change) weight\\n/// to determine how much rewards in total the operator has earned,\\n/// and add this to the operator's earned rewards.\\n/// Finally, we set the operator's accumulator to the global accumulator value.\\ncontract Rewards {\\n struct OperatorRewards {\\n // The state of the global accumulator\\n // when the operator's rewards were last updated\\n uint96 accumulated;\\n // The amount of rewards collected by the operator after the latest update.\\n // The amount the operator could withdraw may equal `available`\\n // or it may be greater, if more rewards have been paid in since then.\\n // To evaulate the most recent amount including rewards potentially paid\\n // since the last update, use `availableRewards` function.\\n uint96 available;\\n // If nonzero, the operator is ineligible for rewards\\n // and may only re-enable rewards after the specified timestamp.\\n // XXX: unsigned 32-bit integer unix seconds, will break around 2106\\n uint32 ineligibleUntil;\\n // Locally cached weight of the operator,\\n // used to reduce the cost of setting operators ineligible.\\n uint32 weight;\\n }\\n\\n // The global accumulator of how much rewards\\n // a hypothetical operator of weight 1 would have earned\\n // since the creation of the pool.\\n uint96 internal globalRewardAccumulator;\\n // If the amount of reward tokens paid in\\n // does not divide cleanly by pool weight,\\n // the difference is recorded as rounding dust\\n // and added to the next reward.\\n uint96 internal rewardRoundingDust;\\n\\n // The amount of rewards that would've been earned by ineligible operators\\n // had they not been ineligible.\\n uint96 public ineligibleEarnedRewards;\\n\\n // Ineligibility times are calculated from this offset,\\n // set at contract creation.\\n uint256 internal immutable ineligibleOffsetStart;\\n\\n mapping(uint32 => OperatorRewards) internal operatorRewards;\\n\\n constructor() {\\n // solhint-disable-next-line not-rely-on-time\\n ineligibleOffsetStart = block.timestamp;\\n }\\n\\n /// @notice Return whether the operator is eligible for rewards or not.\\n function isEligibleForRewards(uint32 operator) internal view returns (bool) {\\n return operatorRewards[operator].ineligibleUntil == 0;\\n }\\n\\n /// @notice Return the time the operator's reward eligibility can be restored.\\n function rewardsEligibilityRestorableAt(uint32 operator)\\n internal\\n view\\n returns (uint256)\\n {\\n uint32 until = operatorRewards[operator].ineligibleUntil;\\n require(until != 0, \\\"Operator already eligible\\\");\\n return (uint256(until) + ineligibleOffsetStart);\\n }\\n\\n /// @notice Return whether the operator is able to restore their eligibility\\n /// for rewards right away.\\n function canRestoreRewardEligibility(uint32 operator)\\n internal\\n view\\n returns (bool)\\n {\\n // solhint-disable-next-line not-rely-on-time\\n return rewardsEligibilityRestorableAt(operator) <= block.timestamp;\\n }\\n\\n /// @notice Internal function for updating the global state of rewards.\\n function addRewards(uint96 rewardAmount, uint32 currentPoolWeight) internal {\\n require(currentPoolWeight > 0, \\\"No recipients in pool\\\");\\n\\n uint96 totalAmount = rewardAmount + rewardRoundingDust;\\n uint96 perWeightReward = totalAmount / currentPoolWeight;\\n uint96 newRoundingDust = totalAmount % currentPoolWeight;\\n\\n globalRewardAccumulator += perWeightReward;\\n rewardRoundingDust = newRoundingDust;\\n }\\n\\n /// @notice Internal function for updating the operator's reward state.\\n function updateOperatorRewards(uint32 operator, uint32 newWeight) internal {\\n uint96 acc = globalRewardAccumulator;\\n OperatorRewards memory o = operatorRewards[operator];\\n uint96 accruedRewards = (acc - o.accumulated) * uint96(o.weight);\\n if (o.ineligibleUntil == 0) {\\n // If operator is not ineligible, update their earned rewards\\n o.available += accruedRewards;\\n } else {\\n // If ineligible, put the rewards into the ineligible pot\\n ineligibleEarnedRewards += accruedRewards;\\n }\\n // In any case, update their accumulator and weight\\n o.accumulated = acc;\\n o.weight = newWeight;\\n operatorRewards[operator] = o;\\n }\\n\\n /// @notice Set the amount of withdrawable tokens to zero\\n /// and return the previous withdrawable amount.\\n /// @dev Does not update the withdrawable amount,\\n /// but should usually be accompanied by an update.\\n function withdrawOperatorRewards(uint32 operator)\\n internal\\n returns (uint96 withdrawable)\\n {\\n OperatorRewards storage o = operatorRewards[operator];\\n withdrawable = o.available;\\n o.available = 0;\\n }\\n\\n /// @notice Set the amount of ineligible-earned tokens to zero\\n /// and return the previous amount.\\n function withdrawIneligibleRewards() internal returns (uint96 withdrawable) {\\n withdrawable = ineligibleEarnedRewards;\\n ineligibleEarnedRewards = 0;\\n }\\n\\n /// @notice Set the given operators as ineligible for rewards.\\n /// The operators can restore their eligibility at the given time.\\n function setIneligible(uint32[] memory operators, uint256 until) internal {\\n OperatorRewards memory o = OperatorRewards(0, 0, 0, 0);\\n uint96 globalAcc = globalRewardAccumulator;\\n uint96 accrued = 0;\\n // Record ineligibility as seconds after contract creation\\n uint32 _until = uint32(until - ineligibleOffsetStart);\\n\\n for (uint256 i = 0; i < operators.length; i++) {\\n uint32 operator = operators[i];\\n OperatorRewards storage r = operatorRewards[operator];\\n o.available = r.available;\\n o.accumulated = r.accumulated;\\n o.ineligibleUntil = r.ineligibleUntil;\\n o.weight = r.weight;\\n\\n if (o.ineligibleUntil != 0) {\\n // If operator is already ineligible,\\n // don't earn rewards or shorten its ineligibility\\n if (o.ineligibleUntil < _until) {\\n o.ineligibleUntil = _until;\\n }\\n } else {\\n // The operator becomes ineligible -> earn rewards\\n o.ineligibleUntil = _until;\\n accrued = (globalAcc - o.accumulated) * uint96(o.weight);\\n o.available += accrued;\\n }\\n o.accumulated = globalAcc;\\n\\n r.available = o.available;\\n r.accumulated = o.accumulated;\\n r.ineligibleUntil = o.ineligibleUntil;\\n r.weight = o.weight;\\n }\\n }\\n\\n /// @notice Restore the given operator's eligibility for rewards.\\n function restoreEligibility(uint32 operator) internal {\\n // solhint-disable-next-line not-rely-on-time\\n require(canRestoreRewardEligibility(operator), \\\"Operator still ineligible\\\");\\n uint96 acc = globalRewardAccumulator;\\n OperatorRewards memory o = operatorRewards[operator];\\n uint96 accruedRewards = (acc - o.accumulated) * uint96(o.weight);\\n ineligibleEarnedRewards += accruedRewards;\\n o.accumulated = acc;\\n o.ineligibleUntil = 0;\\n operatorRewards[operator] = o;\\n }\\n\\n /// @notice Returns the amount of rewards currently available for withdrawal\\n /// for the given operator.\\n function availableRewards(uint32 operator) internal view returns (uint96) {\\n uint96 acc = globalRewardAccumulator;\\n OperatorRewards memory o = operatorRewards[operator];\\n if (o.ineligibleUntil == 0) {\\n // If operator is not ineligible, calculate newly accrued rewards and add\\n // them to the available ones, calculated during the last update.\\n uint96 accruedRewards = (acc - o.accumulated) * uint96(o.weight);\\n return o.available + accruedRewards;\\n } else {\\n // If ineligible, return only the rewards calculated during the last\\n // update.\\n return o.available;\\n }\\n }\\n}\\n\",\"keccak256\":\"0x3a10abb408b44335a092387b2c7ee01db3b27997f1f2c888d9b7a2d92934c4e2\"},\"@keep-network/sortition-pools/contracts/SortitionPool.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"@thesis/solidity-contracts/contracts/token/IERC20WithPermit.sol\\\";\\nimport \\\"@thesis/solidity-contracts/contracts/token/IReceiveApproval.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\n\\nimport \\\"./RNG.sol\\\";\\nimport \\\"./SortitionTree.sol\\\";\\nimport \\\"./Rewards.sol\\\";\\nimport \\\"./Chaosnet.sol\\\";\\n\\n/// @title Sortition Pool\\n/// @notice A logarithmic data structure used to store the pool of eligible\\n/// operators weighted by their stakes. It allows to select a group of operators\\n/// based on the provided pseudo-random seed.\\ncontract SortitionPool is\\n SortitionTree,\\n Rewards,\\n Ownable,\\n Chaosnet,\\n IReceiveApproval\\n{\\n using Branch for uint256;\\n using Leaf for uint256;\\n using Position for uint256;\\n\\n IERC20WithPermit public immutable rewardToken;\\n\\n uint256 public immutable poolWeightDivisor;\\n\\n bool public isLocked;\\n\\n event IneligibleForRewards(uint32[] ids, uint256 until);\\n\\n event RewardEligibilityRestored(address indexed operator, uint32 indexed id);\\n\\n /// @notice Reverts if called while pool is locked.\\n modifier onlyUnlocked() {\\n require(!isLocked, \\\"Sortition pool locked\\\");\\n _;\\n }\\n\\n /// @notice Reverts if called while pool is unlocked.\\n modifier onlyLocked() {\\n require(isLocked, \\\"Sortition pool unlocked\\\");\\n _;\\n }\\n\\n constructor(IERC20WithPermit _rewardToken, uint256 _poolWeightDivisor) {\\n rewardToken = _rewardToken;\\n poolWeightDivisor = _poolWeightDivisor;\\n }\\n\\n function receiveApproval(\\n address sender,\\n uint256 amount,\\n address token,\\n bytes calldata\\n ) external override {\\n require(token == address(rewardToken), \\\"Unsupported token\\\");\\n rewardToken.transferFrom(sender, address(this), amount);\\n Rewards.addRewards(uint96(amount), uint32(root.sumWeight()));\\n }\\n\\n /// @notice Withdraws all available rewards for the given operator to the\\n /// given beneficiary.\\n /// @dev Can be called only be the owner. Does not validate if the provided\\n /// beneficiary is associated with the provided operator - this needs to\\n /// be done by the owner calling this function.\\n /// @return The amount of rewards withdrawn in this call.\\n function withdrawRewards(address operator, address beneficiary)\\n public\\n onlyOwner\\n returns (uint96)\\n {\\n uint32 id = getOperatorID(operator);\\n Rewards.updateOperatorRewards(id, uint32(getPoolWeight(operator)));\\n uint96 earned = Rewards.withdrawOperatorRewards(id);\\n rewardToken.transfer(beneficiary, uint256(earned));\\n return earned;\\n }\\n\\n /// @notice Withdraws rewards not allocated to operators marked as ineligible\\n /// to the given recipient address.\\n /// @dev Can be called only by the owner.\\n function withdrawIneligible(address recipient) public onlyOwner {\\n uint96 earned = Rewards.withdrawIneligibleRewards();\\n rewardToken.transfer(recipient, uint256(earned));\\n }\\n\\n /// @notice Locks the sortition pool. In locked state, members cannot be\\n /// inserted and removed from the pool. Members statuses cannot\\n /// be updated as well.\\n /// @dev Can be called only by the contract owner.\\n function lock() public onlyOwner {\\n isLocked = true;\\n }\\n\\n /// @notice Unlocks the sortition pool. Removes all restrictions set by\\n /// the `lock` method.\\n /// @dev Can be called only by the contract owner.\\n function unlock() public onlyOwner {\\n isLocked = false;\\n }\\n\\n /// @notice Inserts an operator to the pool. Reverts if the operator is\\n /// already present. Reverts if the operator is not eligible because of their\\n /// authorized stake. Reverts if the chaosnet is active and the operator is\\n /// not a beta operator.\\n /// @dev Can be called only by the contract owner.\\n /// @param operator Address of the inserted operator.\\n /// @param authorizedStake Inserted operator's authorized stake for the application.\\n function insertOperator(address operator, uint256 authorizedStake)\\n public\\n onlyOwner\\n onlyUnlocked\\n {\\n uint256 weight = getWeight(authorizedStake);\\n require(weight > 0, \\\"Operator not eligible\\\");\\n\\n if (isChaosnetActive) {\\n require(isBetaOperator[operator], \\\"Not beta operator for chaosnet\\\");\\n }\\n\\n _insertOperator(operator, weight);\\n uint32 id = getOperatorID(operator);\\n Rewards.updateOperatorRewards(id, uint32(weight));\\n }\\n\\n /// @notice Update the operator's weight if present and eligible,\\n /// or remove from the pool if present and ineligible.\\n /// @dev Can be called only by the contract owner.\\n /// @param operator Address of the updated operator.\\n /// @param authorizedStake Operator's authorized stake for the application.\\n function updateOperatorStatus(address operator, uint256 authorizedStake)\\n public\\n onlyOwner\\n onlyUnlocked\\n {\\n uint256 weight = getWeight(authorizedStake);\\n\\n uint32 id = getOperatorID(operator);\\n Rewards.updateOperatorRewards(id, uint32(weight));\\n\\n if (weight == 0) {\\n _removeOperator(operator);\\n } else {\\n updateOperator(operator, weight);\\n }\\n }\\n\\n /// @notice Set the given operators as ineligible for rewards.\\n /// The operators can restore their eligibility at the given time.\\n function setRewardIneligibility(uint32[] calldata operators, uint256 until)\\n public\\n onlyOwner\\n {\\n Rewards.setIneligible(operators, until);\\n emit IneligibleForRewards(operators, until);\\n }\\n\\n /// @notice Restores reward eligibility for the operator.\\n function restoreRewardEligibility(address operator) public {\\n uint32 id = getOperatorID(operator);\\n Rewards.restoreEligibility(id);\\n emit RewardEligibilityRestored(operator, id);\\n }\\n\\n /// @notice Returns whether the operator is eligible for rewards or not.\\n function isEligibleForRewards(address operator) public view returns (bool) {\\n uint32 id = getOperatorID(operator);\\n return Rewards.isEligibleForRewards(id);\\n }\\n\\n /// @notice Returns the time the operator's reward eligibility can be restored.\\n function rewardsEligibilityRestorableAt(address operator)\\n public\\n view\\n returns (uint256)\\n {\\n uint32 id = getOperatorID(operator);\\n return Rewards.rewardsEligibilityRestorableAt(id);\\n }\\n\\n /// @notice Returns whether the operator is able to restore their eligibility\\n /// for rewards right away.\\n function canRestoreRewardEligibility(address operator)\\n public\\n view\\n returns (bool)\\n {\\n uint32 id = getOperatorID(operator);\\n return Rewards.canRestoreRewardEligibility(id);\\n }\\n\\n /// @notice Returns the amount of rewards withdrawable for the given operator.\\n function getAvailableRewards(address operator) public view returns (uint96) {\\n uint32 id = getOperatorID(operator);\\n return availableRewards(id);\\n }\\n\\n /// @notice Return whether the operator is present in the pool.\\n function isOperatorInPool(address operator) public view returns (bool) {\\n return getFlaggedLeafPosition(operator) != 0;\\n }\\n\\n /// @notice Return whether the operator's weight in the pool\\n /// matches their eligible weight.\\n function isOperatorUpToDate(address operator, uint256 authorizedStake)\\n public\\n view\\n returns (bool)\\n {\\n return getWeight(authorizedStake) == getPoolWeight(operator);\\n }\\n\\n /// @notice Return the weight of the operator in the pool,\\n /// which may or may not be out of date.\\n function getPoolWeight(address operator) public view returns (uint256) {\\n uint256 flaggedPosition = getFlaggedLeafPosition(operator);\\n if (flaggedPosition == 0) {\\n return 0;\\n } else {\\n uint256 leafPosition = flaggedPosition.unsetFlag();\\n uint256 leafWeight = getLeafWeight(leafPosition);\\n return leafWeight;\\n }\\n }\\n\\n /// @notice Selects a new group of operators of the provided size based on\\n /// the provided pseudo-random seed. At least one operator has to be\\n /// registered in the pool, otherwise the function fails reverting the\\n /// transaction.\\n /// @param groupSize Size of the requested group\\n /// @param seed Pseudo-random number used to select operators to group\\n /// @return selected Members of the selected group\\n function selectGroup(uint256 groupSize, bytes32 seed)\\n public\\n view\\n onlyLocked\\n returns (uint32[] memory)\\n {\\n uint256 _root = root;\\n\\n bytes32 rngState = seed;\\n uint256 rngRange = _root.sumWeight();\\n require(rngRange > 0, \\\"Not enough operators in pool\\\");\\n uint256 currentIndex;\\n\\n uint256 bits = RNG.bitsRequired(rngRange);\\n\\n uint32[] memory selected = new uint32[](groupSize);\\n\\n for (uint256 i = 0; i < groupSize; i++) {\\n (currentIndex, rngState) = RNG.getIndex(rngRange, rngState, bits);\\n\\n uint256 leafPosition = pickWeightedLeaf(currentIndex, _root);\\n\\n uint256 leaf = leaves[leafPosition];\\n selected[i] = leaf.id();\\n }\\n return selected;\\n }\\n\\n function getWeight(uint256 authorization) internal view returns (uint256) {\\n return authorization / poolWeightDivisor;\\n }\\n}\\n\",\"keccak256\":\"0xab42e7c5b1828f42a73f699eb2dc96d4f793572a6323b8b1fbd7c5e0c065bda7\"},\"@keep-network/sortition-pools/contracts/SortitionTree.sol\":{\"content\":\"pragma solidity 0.8.17;\\n\\nimport \\\"./Branch.sol\\\";\\nimport \\\"./Position.sol\\\";\\nimport \\\"./Leaf.sol\\\";\\nimport \\\"./Constants.sol\\\";\\n\\ncontract SortitionTree {\\n using Branch for uint256;\\n using Position for uint256;\\n using Leaf for uint256;\\n\\n // implicit tree\\n // root 8\\n // level2 64\\n // level3 512\\n // level4 4k\\n // level5 32k\\n // level6 256k\\n // level7 2M\\n uint256 internal root;\\n\\n // A 2-index mapping from layer => (index (0-index) => branch). For example,\\n // to access the 6th branch in the 2nd layer (right below the root node; the\\n // first branch layer), call branches[2][5]. Mappings are used in place of\\n // arrays for efficiency. The root is the first layer, the branches occupy\\n // layers 2 through 7, and layer 8 is for the leaves. Following this\\n // convention, the first index in `branches` is `2`, and the last index is\\n // `7`.\\n mapping(uint256 => mapping(uint256 => uint256)) internal branches;\\n\\n // A 0-index mapping from index => leaf, acting as an array. For example, to\\n // access the 42nd leaf, call leaves[41].\\n mapping(uint256 => uint256) internal leaves;\\n\\n // the flagged (see setFlag() and unsetFlag() in Position.sol) positions\\n // of all operators present in the pool\\n mapping(address => uint256) internal flaggedLeafPosition;\\n\\n // the leaf after the rightmost occupied leaf of each stack\\n uint256 internal rightmostLeaf;\\n\\n // the empty leaves in each stack\\n // between 0 and the rightmost occupied leaf\\n uint256[] internal emptyLeaves;\\n\\n // Each operator has an uint32 ID number\\n // which is allocated when they first join the pool\\n // and remains unchanged even if they leave and rejoin the pool.\\n mapping(address => uint32) internal operatorID;\\n\\n // The idAddress array records the address corresponding to each ID number.\\n // The ID number 0 is initialized with a zero address and is not used.\\n address[] internal idAddress;\\n\\n constructor() {\\n root = 0;\\n rightmostLeaf = 0;\\n idAddress.push();\\n }\\n\\n /// @notice Return the ID number of the given operator address. An ID number\\n /// of 0 means the operator has not been allocated an ID number yet.\\n /// @param operator Address of the operator.\\n /// @return the ID number of the given operator address\\n function getOperatorID(address operator) public view returns (uint32) {\\n return operatorID[operator];\\n }\\n\\n /// @notice Get the operator address corresponding to the given ID number. A\\n /// zero address means the ID number has not been allocated yet.\\n /// @param id ID of the operator\\n /// @return the address of the operator\\n function getIDOperator(uint32 id) public view returns (address) {\\n return idAddress.length > id ? idAddress[id] : address(0);\\n }\\n\\n /// @notice Gets the operator addresses corresponding to the given ID\\n /// numbers. A zero address means the ID number has not been allocated yet.\\n /// This function works just like getIDOperator except that it allows to fetch\\n /// operator addresses for multiple IDs in one call.\\n /// @param ids the array of the operator ids\\n /// @return an array of the associated operator addresses\\n function getIDOperators(uint32[] calldata ids)\\n public\\n view\\n returns (address[] memory)\\n {\\n uint256 idCount = idAddress.length;\\n\\n address[] memory operators = new address[](ids.length);\\n for (uint256 i = 0; i < ids.length; i++) {\\n uint32 id = ids[i];\\n operators[i] = idCount > id ? idAddress[id] : address(0);\\n }\\n return operators;\\n }\\n\\n /// @notice Checks if operator is already registered in the pool.\\n /// @param operator the address of the operator\\n /// @return whether or not the operator is already registered in the pool\\n function isOperatorRegistered(address operator) public view returns (bool) {\\n return getFlaggedLeafPosition(operator) != 0;\\n }\\n\\n /// @notice Sum the number of operators in each trunk.\\n /// @return the number of operators in the pool\\n function operatorsInPool() public view returns (uint256) {\\n // Get the number of leaves that might be occupied;\\n // if `rightmostLeaf` equals `firstLeaf()` the tree must be empty,\\n // otherwise the difference between these numbers\\n // gives the number of leaves that may be occupied.\\n uint256 nPossiblyUsedLeaves = rightmostLeaf;\\n // Get the number of empty leaves\\n // not accounted for by the `rightmostLeaf`\\n uint256 nEmptyLeaves = emptyLeaves.length;\\n\\n return (nPossiblyUsedLeaves - nEmptyLeaves);\\n }\\n\\n /// @notice Convenience method to return the total weight of the pool\\n /// @return the total weight of the pool\\n function totalWeight() public view returns (uint256) {\\n return root.sumWeight();\\n }\\n\\n /// @notice Give the operator a new ID number.\\n /// Does not check if the operator already has an ID number.\\n /// @param operator the address of the operator\\n /// @return a new ID for that operator\\n function allocateOperatorID(address operator) internal returns (uint256) {\\n uint256 id = idAddress.length;\\n\\n require(id <= type(uint32).max, \\\"Pool capacity exceeded\\\");\\n\\n operatorID[operator] = uint32(id);\\n idAddress.push(operator);\\n return id;\\n }\\n\\n /// @notice Inserts an operator into the sortition pool\\n /// @param operator the address of an operator to insert\\n /// @param weight how much weight that operator has in the pool\\n function _insertOperator(address operator, uint256 weight) internal {\\n require(\\n !isOperatorRegistered(operator),\\n \\\"Operator is already registered in the pool\\\"\\n );\\n\\n // Fetch the operator's ID, and if they don't have one, allocate them one.\\n uint256 id = getOperatorID(operator);\\n if (id == 0) {\\n id = allocateOperatorID(operator);\\n }\\n\\n // Determine which leaf to insert them into\\n uint256 position = getEmptyLeafPosition();\\n // Record the block the operator was inserted in\\n uint256 theLeaf = Leaf.make(operator, block.number, id);\\n\\n // Update the leaf, and propagate the weight changes all the way up to the\\n // root.\\n root = setLeaf(position, theLeaf, weight, root);\\n\\n // Without position flags,\\n // the position 0x000000 would be treated as empty\\n flaggedLeafPosition[operator] = position.setFlag();\\n }\\n\\n /// @notice Remove an operator (and their weight) from the pool.\\n /// @param operator the address of the operator to remove\\n function _removeOperator(address operator) internal {\\n uint256 flaggedPosition = getFlaggedLeafPosition(operator);\\n require(flaggedPosition != 0, \\\"Operator is not registered in the pool\\\");\\n uint256 unflaggedPosition = flaggedPosition.unsetFlag();\\n\\n // Update the leaf, and propagate the weight changes all the way up to the\\n // root.\\n root = removeLeaf(unflaggedPosition, root);\\n removeLeafPositionRecord(operator);\\n }\\n\\n /// @notice Update an operator's weight in the pool.\\n /// @param operator the address of the operator to update\\n /// @param weight the new weight\\n function updateOperator(address operator, uint256 weight) internal {\\n require(\\n isOperatorRegistered(operator),\\n \\\"Operator is not registered in the pool\\\"\\n );\\n\\n uint256 flaggedPosition = getFlaggedLeafPosition(operator);\\n uint256 unflaggedPosition = flaggedPosition.unsetFlag();\\n root = updateLeaf(unflaggedPosition, weight, root);\\n }\\n\\n /// @notice Helper method to remove a leaf position record for an operator.\\n /// @param operator the address of the operator to remove the record for\\n function removeLeafPositionRecord(address operator) internal {\\n flaggedLeafPosition[operator] = 0;\\n }\\n\\n /// @notice Removes the data and weight from a particular leaf.\\n /// @param position the leaf index to remove\\n /// @param _root the root node containing the leaf\\n /// @return the updated root node\\n function removeLeaf(uint256 position, uint256 _root)\\n internal\\n returns (uint256)\\n {\\n uint256 rightmostSubOne = rightmostLeaf - 1;\\n bool isRightmost = position == rightmostSubOne;\\n\\n // Clears out the data in the leaf node, and then propagates the weight\\n // changes all the way up to the root.\\n uint256 newRoot = setLeaf(position, 0, 0, _root);\\n\\n // Infer if need to fall back on emptyLeaves yet\\n if (isRightmost) {\\n rightmostLeaf = rightmostSubOne;\\n } else {\\n emptyLeaves.push(position);\\n }\\n return newRoot;\\n }\\n\\n /// @notice Updates the tree to give a particular leaf a new weight.\\n /// @param position the index of the leaf to update\\n /// @param weight the new weight\\n /// @param _root the root node containing the leaf\\n /// @return the updated root node\\n function updateLeaf(\\n uint256 position,\\n uint256 weight,\\n uint256 _root\\n ) internal returns (uint256) {\\n if (getLeafWeight(position) != weight) {\\n return updateTree(position, weight, _root);\\n } else {\\n return _root;\\n }\\n }\\n\\n /// @notice Places a leaf into a particular position, with a given weight and\\n /// propagates that change.\\n /// @param position the index to place the leaf in\\n /// @param theLeaf the new leaf to place in the position\\n /// @param leafWeight the weight of the leaf\\n /// @param _root the root containing the new leaf\\n /// @return the updated root node\\n function setLeaf(\\n uint256 position,\\n uint256 theLeaf,\\n uint256 leafWeight,\\n uint256 _root\\n ) internal returns (uint256) {\\n // set leaf\\n leaves[position] = theLeaf;\\n\\n return (updateTree(position, leafWeight, _root));\\n }\\n\\n /// @notice Propagates a weight change at a position through the tree,\\n /// eventually returning the updated root.\\n /// @param position the index of leaf to update\\n /// @param weight the new weight of the leaf\\n /// @param _root the root node containing the leaf\\n /// @return the updated root node\\n function updateTree(\\n uint256 position,\\n uint256 weight,\\n uint256 _root\\n ) internal returns (uint256) {\\n uint256 childSlot;\\n uint256 treeNode;\\n uint256 newNode;\\n uint256 nodeWeight = weight;\\n\\n uint256 parent = position;\\n // set levels 7 to 2\\n for (uint256 level = Constants.LEVELS; level >= 2; level--) {\\n childSlot = parent.slot();\\n parent = parent.parent();\\n treeNode = branches[level][parent];\\n newNode = treeNode.setSlot(childSlot, nodeWeight);\\n branches[level][parent] = newNode;\\n nodeWeight = newNode.sumWeight();\\n }\\n\\n // set level Root\\n childSlot = parent.slot();\\n return _root.setSlot(childSlot, nodeWeight);\\n }\\n\\n /// @notice Retrieves the next available empty leaf position. Tries to fill\\n /// left to right first, ignoring leaf removals, and then fills\\n /// most-recent-removals first.\\n /// @return the position of the empty leaf\\n function getEmptyLeafPosition() internal returns (uint256) {\\n uint256 rLeaf = rightmostLeaf;\\n bool spaceOnRight = (rLeaf + 1) < Constants.POOL_CAPACITY;\\n if (spaceOnRight) {\\n rightmostLeaf = rLeaf + 1;\\n return rLeaf;\\n } else {\\n uint256 emptyLeafCount = emptyLeaves.length;\\n require(emptyLeafCount > 0, \\\"Pool is full\\\");\\n uint256 emptyLeaf = emptyLeaves[emptyLeafCount - 1];\\n emptyLeaves.pop();\\n return emptyLeaf;\\n }\\n }\\n\\n /// @notice Gets the flagged leaf position for an operator.\\n /// @param operator the address of the operator\\n /// @return the leaf position of that operator\\n function getFlaggedLeafPosition(address operator)\\n internal\\n view\\n returns (uint256)\\n {\\n return flaggedLeafPosition[operator];\\n }\\n\\n /// @notice Gets the weight of a leaf at a particular position.\\n /// @param position the index of the leaf\\n /// @return the weight of the leaf at that position\\n function getLeafWeight(uint256 position) internal view returns (uint256) {\\n uint256 slot = position.slot();\\n uint256 parent = position.parent();\\n\\n // A leaf's weight information is stored a 32-bit slot in the branch layer\\n // directly above the leaf layer. To access it, we calculate that slot and\\n // parent position, and always know the hard-coded layer index.\\n uint256 node = branches[Constants.LEVELS][parent];\\n return node.getSlot(slot);\\n }\\n\\n /// @notice Picks a leaf given a random index.\\n /// @param index a number in `[0, _root.totalWeight())` used to decide\\n /// between leaves\\n /// @param _root the root of the tree\\n function pickWeightedLeaf(uint256 index, uint256 _root)\\n internal\\n view\\n returns (uint256 leafPosition)\\n {\\n uint256 currentIndex = index;\\n uint256 currentNode = _root;\\n uint256 currentPosition = 0;\\n uint256 currentSlot;\\n\\n require(index < currentNode.sumWeight(), \\\"Index exceeds weight\\\");\\n\\n // get root slot\\n (currentSlot, currentIndex) = currentNode.pickWeightedSlot(currentIndex);\\n\\n // get slots from levels 2 to 7\\n for (uint256 level = 2; level <= Constants.LEVELS; level++) {\\n currentPosition = currentPosition.child(currentSlot);\\n currentNode = branches[level][currentPosition];\\n (currentSlot, currentIndex) = currentNode.pickWeightedSlot(currentIndex);\\n }\\n\\n // get leaf position\\n leafPosition = currentPosition.child(currentSlot);\\n }\\n}\\n\",\"keccak256\":\"0x51daeca62ef52be78a1a9de4d2a1c5900c873165f59eda14d5965d7d7da90a03\"},\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.1) (proxy/utils/Initializable.sol)\\n\\npragma solidity ^0.8.2;\\n\\nimport \\\"../../utils/AddressUpgradeable.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.\\n *\\n * Similar to `reinitializer(1)`, except that functions marked with `initializer` can be nested in the context of a\\n * constructor.\\n *\\n * Emits an {Initialized} event.\\n */\\n modifier initializer() {\\n bool isTopLevelCall = !_initializing;\\n require(\\n (isTopLevelCall && _initialized < 1) || (!AddressUpgradeable.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 * A reinitializer may be used after the original initialization step. This is essential to configure modules that\\n * are added through upgrades and that require initialization.\\n *\\n * When `version` is 1, this modifier is similar to `initializer`, except that functions marked with `reinitializer`\\n * cannot be nested. If one is invoked in the context of another, execution will revert.\\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 * WARNING: setting the version to 255 will prevent any future reinitialization.\\n *\\n * Emits an {Initialized} event.\\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 * Emits an {Initialized} event the first time it is successfully executed.\\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 /**\\n * @dev Returns the highest version that has been initialized. See {reinitializer}.\\n */\\n function _getInitializedVersion() internal view returns (uint8) {\\n return _initialized;\\n }\\n\\n /**\\n * @dev Returns `true` if the contract is currently initializing. See {onlyInitializing}.\\n */\\n function _isInitializing() internal view returns (bool) {\\n return _initializing;\\n }\\n}\\n\",\"keccak256\":\"0x037c334add4b033ad3493038c25be1682d78c00992e1acb0e2795caff3925271\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary AddressUpgradeable {\\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 functionCallWithValue(target, data, 0, \\\"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 (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, 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 (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or 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 _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\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\",\"keccak256\":\"0x2edcb41c121abc510932e8d83ff8b82cf9cdde35e7c297622f5c29ef0af25183\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/StringsUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/Strings.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./math/MathUpgradeable.sol\\\";\\n\\n/**\\n * @dev String operations.\\n */\\nlibrary StringsUpgradeable {\\n bytes16 private constant _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 unchecked {\\n uint256 length = MathUpgradeable.log10(value) + 1;\\n string memory buffer = new string(length);\\n uint256 ptr;\\n /// @solidity memory-safe-assembly\\n assembly {\\n ptr := add(buffer, add(32, length))\\n }\\n while (true) {\\n ptr--;\\n /// @solidity memory-safe-assembly\\n assembly {\\n mstore8(ptr, byte(mod(value, 10), _SYMBOLS))\\n }\\n value /= 10;\\n if (value == 0) break;\\n }\\n return buffer;\\n }\\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 unchecked {\\n return toHexString(value, MathUpgradeable.log256(value) + 1);\\n }\\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] = _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\":\"0x6b9a5d35b744b25529a2856a8093e7c03fb35a34b1c4fb5499e560f8ade140da\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/cryptography/ECDSA.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../StringsUpgradeable.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 ECDSAUpgradeable {\\n enum RecoverError {\\n NoError,\\n InvalidSignature,\\n InvalidSignatureLength,\\n InvalidSignatureS,\\n InvalidSignatureV // Deprecated in v4.8\\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 }\\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\\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\\\", StringsUpgradeable.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\":\"0x12f297cafe6e2847ae0378502f155654d0764b532a9873c8afe4350950fa7971\",\"license\":\"MIT\"},\"@openzeppelin/contracts-upgradeable/utils/math/MathUpgradeable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/Math.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Standard math utilities missing in the Solidity language.\\n */\\nlibrary MathUpgradeable {\\n enum Rounding {\\n Down, // Toward negative infinity\\n Up, // Toward infinity\\n Zero // Toward zero\\n }\\n\\n /**\\n * @dev Returns the largest of two numbers.\\n */\\n function max(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a > b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the smallest of two numbers.\\n */\\n function min(uint256 a, uint256 b) internal pure returns (uint256) {\\n return a < b ? a : b;\\n }\\n\\n /**\\n * @dev Returns the average of two numbers. The result is rounded towards\\n * zero.\\n */\\n function average(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b) / 2 can overflow.\\n return (a & b) + (a ^ b) / 2;\\n }\\n\\n /**\\n * @dev Returns the ceiling of the division of two numbers.\\n *\\n * This differs from standard division with `/` in that it rounds up instead\\n * of rounding down.\\n */\\n function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {\\n // (a + b - 1) / b can overflow on addition, so we distribute.\\n return a == 0 ? 0 : (a - 1) / b + 1;\\n }\\n\\n /**\\n * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0\\n * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)\\n * with further edits by Uniswap Labs also under MIT license.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator\\n ) internal pure returns (uint256 result) {\\n unchecked {\\n // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use\\n // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256\\n // variables such that product = prod1 * 2^256 + prod0.\\n uint256 prod0; // Least significant 256 bits of the product\\n uint256 prod1; // Most significant 256 bits of the product\\n assembly {\\n let mm := mulmod(x, y, not(0))\\n prod0 := mul(x, y)\\n prod1 := sub(sub(mm, prod0), lt(mm, prod0))\\n }\\n\\n // Handle non-overflow cases, 256 by 256 division.\\n if (prod1 == 0) {\\n return prod0 / denominator;\\n }\\n\\n // Make sure the result is less than 2^256. Also prevents denominator == 0.\\n require(denominator > prod1);\\n\\n ///////////////////////////////////////////////\\n // 512 by 256 division.\\n ///////////////////////////////////////////////\\n\\n // Make division exact by subtracting the remainder from [prod1 prod0].\\n uint256 remainder;\\n assembly {\\n // Compute remainder using mulmod.\\n remainder := mulmod(x, y, denominator)\\n\\n // Subtract 256 bit number from 512 bit number.\\n prod1 := sub(prod1, gt(remainder, prod0))\\n prod0 := sub(prod0, remainder)\\n }\\n\\n // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.\\n // See https://cs.stackexchange.com/q/138556/92363.\\n\\n // Does not overflow because the denominator cannot be zero at this stage in the function.\\n uint256 twos = denominator & (~denominator + 1);\\n assembly {\\n // Divide denominator by twos.\\n denominator := div(denominator, twos)\\n\\n // Divide [prod1 prod0] by twos.\\n prod0 := div(prod0, twos)\\n\\n // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.\\n twos := add(div(sub(0, twos), twos), 1)\\n }\\n\\n // Shift in bits from prod1 into prod0.\\n prod0 |= prod1 * twos;\\n\\n // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such\\n // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for\\n // four bits. That is, denominator * inv = 1 mod 2^4.\\n uint256 inverse = (3 * denominator) ^ 2;\\n\\n // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works\\n // in modular arithmetic, doubling the correct bits in each step.\\n inverse *= 2 - denominator * inverse; // inverse mod 2^8\\n inverse *= 2 - denominator * inverse; // inverse mod 2^16\\n inverse *= 2 - denominator * inverse; // inverse mod 2^32\\n inverse *= 2 - denominator * inverse; // inverse mod 2^64\\n inverse *= 2 - denominator * inverse; // inverse mod 2^128\\n inverse *= 2 - denominator * inverse; // inverse mod 2^256\\n\\n // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.\\n // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is\\n // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1\\n // is no longer required.\\n result = prod0 * inverse;\\n return result;\\n }\\n }\\n\\n /**\\n * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.\\n */\\n function mulDiv(\\n uint256 x,\\n uint256 y,\\n uint256 denominator,\\n Rounding rounding\\n ) internal pure returns (uint256) {\\n uint256 result = mulDiv(x, y, denominator);\\n if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {\\n result += 1;\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.\\n *\\n * Inspired by Henry S. Warren, Jr.'s \\\"Hacker's Delight\\\" (Chapter 11).\\n */\\n function sqrt(uint256 a) internal pure returns (uint256) {\\n if (a == 0) {\\n return 0;\\n }\\n\\n // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.\\n //\\n // We know that the \\\"msb\\\" (most significant bit) of our target number `a` is a power of 2 such that we have\\n // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.\\n //\\n // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`\\n // \\u2192 `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`\\n // \\u2192 `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`\\n //\\n // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.\\n uint256 result = 1 << (log2(a) >> 1);\\n\\n // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,\\n // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at\\n // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision\\n // into the expected uint128 result.\\n unchecked {\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n result = (result + a / result) >> 1;\\n return min(result, a / result);\\n }\\n }\\n\\n /**\\n * @notice Calculates sqrt(a), following the selected rounding direction.\\n */\\n function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = sqrt(a);\\n return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 2, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 128;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 64;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 32;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 16;\\n }\\n if (value >> 8 > 0) {\\n value >>= 8;\\n result += 8;\\n }\\n if (value >> 4 > 0) {\\n value >>= 4;\\n result += 4;\\n }\\n if (value >> 2 > 0) {\\n value >>= 2;\\n result += 2;\\n }\\n if (value >> 1 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 2, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log2(value);\\n return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 10, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >= 10**64) {\\n value /= 10**64;\\n result += 64;\\n }\\n if (value >= 10**32) {\\n value /= 10**32;\\n result += 32;\\n }\\n if (value >= 10**16) {\\n value /= 10**16;\\n result += 16;\\n }\\n if (value >= 10**8) {\\n value /= 10**8;\\n result += 8;\\n }\\n if (value >= 10**4) {\\n value /= 10**4;\\n result += 4;\\n }\\n if (value >= 10**2) {\\n value /= 10**2;\\n result += 2;\\n }\\n if (value >= 10**1) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log10(value);\\n return result + (rounding == Rounding.Up && 10**result < value ? 1 : 0);\\n }\\n }\\n\\n /**\\n * @dev Return the log in base 256, rounded down, of a positive value.\\n * Returns 0 if given 0.\\n *\\n * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.\\n */\\n function log256(uint256 value) internal pure returns (uint256) {\\n uint256 result = 0;\\n unchecked {\\n if (value >> 128 > 0) {\\n value >>= 128;\\n result += 16;\\n }\\n if (value >> 64 > 0) {\\n value >>= 64;\\n result += 8;\\n }\\n if (value >> 32 > 0) {\\n value >>= 32;\\n result += 4;\\n }\\n if (value >> 16 > 0) {\\n value >>= 16;\\n result += 2;\\n }\\n if (value >> 8 > 0) {\\n result += 1;\\n }\\n }\\n return result;\\n }\\n\\n /**\\n * @dev Return the log in base 10, following the selected rounding direction, of a positive value.\\n * Returns 0 if given 0.\\n */\\n function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {\\n unchecked {\\n uint256 result = log256(value);\\n return result + (rounding == Rounding.Up && 1 << (result * 8) < value ? 1 : 0);\\n }\\n }\\n}\\n\",\"keccak256\":\"0xc1bd5b53319c68f84e3becd75694d941e8f4be94049903232cd8bc7c535aaa5a\",\"license\":\"MIT\"},\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions anymore. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby removing any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xa94b34880e3c1b0b931662cb1c09e5dfa6662f31cba80e07c5ee71cd135c9673\",\"license\":\"MIT\"},\"@openzeppelin/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\"},\"@openzeppelin/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\"},\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (token/ERC20/extensions/IERC20Metadata.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../IERC20.sol\\\";\\n\\n/**\\n * @dev Interface for the optional metadata functions from the ERC20 standard.\\n *\\n * _Available since v4.1._\\n */\\ninterface IERC20Metadata is IERC20 {\\n /**\\n * @dev Returns the name of the token.\\n */\\n function name() external view returns (string memory);\\n\\n /**\\n * @dev Returns the symbol of the token.\\n */\\n function symbol() external view returns (string memory);\\n\\n /**\\n * @dev Returns the decimals places of the token.\\n */\\n function decimals() external view returns (uint8);\\n}\\n\",\"keccak256\":\"0x8de418a5503946cabe331f35fe242d3201a73f67f77aaeb7110acb1f30423aca\",\"license\":\"MIT\"},\"@openzeppelin/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\"},\"@openzeppelin/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\"},\"@openzeppelin/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\"},\"@thesis/solidity-contracts/contracts/token/IApproveAndCall.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\n/// @notice An interface that should be implemented by tokens supporting\\n/// `approveAndCall`/`receiveApproval` pattern.\\ninterface IApproveAndCall {\\n /// @notice Executes `receiveApproval` function on spender as specified in\\n /// `IReceiveApproval` interface. Approves spender to withdraw from\\n /// the caller multiple times, up to the `amount`. If this\\n /// function is called again, it overwrites the current allowance\\n /// with `amount`. Reverts if the approval reverted or if\\n /// `receiveApproval` call on the spender reverted.\\n function approveAndCall(\\n address spender,\\n uint256 amount,\\n bytes memory extraData\\n ) external returns (bool);\\n}\\n\",\"keccak256\":\"0x393d18ef81a57dcc96fff4c340cc2945deaebb37b9796c322cf2bc96872c3df8\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/IERC20WithPermit.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\nimport \\\"@openzeppelin/contracts/token/ERC20/IERC20.sol\\\";\\nimport \\\"@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol\\\";\\n\\nimport \\\"./IApproveAndCall.sol\\\";\\n\\n/// @title IERC20WithPermit\\n/// @notice Burnable ERC20 token with EIP2612 permit functionality. User can\\n/// authorize a transfer of their token with a signature conforming\\n/// EIP712 standard instead of an on-chain transaction from their\\n/// address. Anyone can submit this signature on the user's behalf by\\n/// calling the permit function, as specified in EIP2612 standard,\\n/// paying gas fees, and possibly performing other actions in the same\\n/// transaction.\\ninterface IERC20WithPermit is IERC20, IERC20Metadata, IApproveAndCall {\\n /// @notice EIP2612 approval made with secp256k1 signature.\\n /// Users can authorize a transfer of their tokens with a signature\\n /// conforming EIP712 standard, rather than an on-chain transaction\\n /// from their address. Anyone can submit this signature on the\\n /// user's behalf by calling the permit function, paying gas fees,\\n /// and possibly performing other actions in the same transaction.\\n /// @dev The deadline argument can be set to `type(uint256).max to create\\n /// permits that effectively never expire.\\n function permit(\\n address owner,\\n address spender,\\n uint256 amount,\\n uint256 deadline,\\n uint8 v,\\n bytes32 r,\\n bytes32 s\\n ) external;\\n\\n /// @notice Destroys `amount` tokens from the caller.\\n function burn(uint256 amount) external;\\n\\n /// @notice Destroys `amount` of tokens from `account`, deducting the amount\\n /// from caller's allowance.\\n function burnFrom(address account, uint256 amount) external;\\n\\n /// @notice Returns hash of EIP712 Domain struct with the token name as\\n /// a signing domain and token contract as a verifying contract.\\n /// Used to construct EIP2612 signature provided to `permit`\\n /// function.\\n /* solhint-disable-next-line func-name-mixedcase */\\n function DOMAIN_SEPARATOR() external view returns (bytes32);\\n\\n /// @notice Returns the current nonce for EIP2612 permission for the\\n /// provided token owner for a replay protection. Used to construct\\n /// EIP2612 signature provided to `permit` function.\\n function nonce(address owner) external view returns (uint256);\\n\\n /// @notice Returns EIP2612 Permit message hash. Used to construct EIP2612\\n /// signature provided to `permit` function.\\n /* solhint-disable-next-line func-name-mixedcase */\\n function PERMIT_TYPEHASH() external pure returns (bytes32);\\n}\\n\",\"keccak256\":\"0xdac9a5086c19a7128b505a7be1ab0ac1aa314f6989cb88d2417e9d7383f89fa9\",\"license\":\"MIT\"},\"@thesis/solidity-contracts/contracts/token/IReceiveApproval.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n\\npragma solidity ^0.8.4;\\n\\n/// @notice An interface that should be implemented by contracts supporting\\n/// `approveAndCall`/`receiveApproval` pattern.\\ninterface IReceiveApproval {\\n /// @notice Receives approval to spend tokens. Called as a result of\\n /// `approveAndCall` call on the token.\\n function receiveApproval(\\n address from,\\n uint256 amount,\\n address token,\\n bytes calldata extraData\\n ) external;\\n}\\n\",\"keccak256\":\"0x6a30d83ad230548b1e7839737affc8489a035314209de14b89dbef7fb0f66395\",\"license\":\"MIT\"},\"@threshold-network/solidity-contracts/contracts/staking/IApplication.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n\\npragma solidity ^0.8.9;\\n\\n/// @title Application interface for Threshold Network applications\\n/// @notice Generic interface for an application. Application is an external\\n/// smart contract or a set of smart contracts utilizing functionalities\\n/// offered by Threshold Network. Applications authorized for the given\\n/// staking provider are eligible to slash the stake delegated to that\\n/// staking provider.\\ninterface IApplication {\\n /// @dev Event emitted by `withdrawRewards` function.\\n event RewardsWithdrawn(address indexed stakingProvider, uint96 amount);\\n\\n /// @notice Withdraws application rewards for the given staking provider.\\n /// Rewards are withdrawn to the staking provider's beneficiary\\n /// address set in the staking contract.\\n /// @dev Emits `RewardsWithdrawn` event.\\n function withdrawRewards(address stakingProvider) external;\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorized amount for the given staking provider increased.\\n /// The application may do any necessary housekeeping. The\\n /// application must revert the transaction in case the\\n /// authorization is below the minimum required.\\n function authorizationIncreased(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external;\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorization decrease for the given staking provider has been\\n /// requested. The application should mark the authorization as\\n /// pending decrease and respond to the staking contract with\\n /// `approveAuthorizationDecrease` at its discretion. It may\\n /// happen right away but it also may happen several months later.\\n /// If there is already a pending authorization decrease request\\n /// for the application, and the application does not agree for\\n /// overwriting it, the function should revert.\\n function authorizationDecreaseRequested(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external;\\n\\n /// @notice Used by T staking contract to inform the application the\\n /// authorization has been decreased for the given staking provider\\n /// involuntarily, as a result of slashing. Lets the application to\\n /// do any housekeeping neccessary. Called with 250k gas limit and\\n /// does not revert the transaction if\\n /// `involuntaryAuthorizationDecrease` call failed.\\n function involuntaryAuthorizationDecrease(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external;\\n\\n /// @notice Returns the amount of application rewards available for\\n /// withdrawal for the given staking provider.\\n function availableRewards(address stakingProvider)\\n external\\n view\\n returns (uint96);\\n\\n /// @notice The minimum authorization amount required for the staking\\n /// provider so that they can participate in the application.\\n function minimumAuthorization() external view returns (uint96);\\n}\\n\",\"keccak256\":\"0x43d707dccc548bf48ad316d9652450cb297203234d251132cdc6b97508eb44c5\",\"license\":\"GPL-3.0-or-later\"},\"@threshold-network/solidity-contracts/contracts/staking/IStaking.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-or-later\\n\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588 \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\u2588\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n// \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c \\u2590\\u2588\\u2588\\u2588\\u2588\\u258c\\n\\npragma solidity ^0.8.9;\\n\\n/// @title Interface of Threshold Network staking contract\\n/// @notice The staking contract enables T owners to have their wallets offline\\n/// and their stake managed by staking providers on their behalf.\\n/// The staking contract does not define operator role. The operator\\n/// responsible for running off-chain client software is appointed by\\n/// the staking provider in the particular application utilizing the\\n/// staking contract. All off-chain client software should be able\\n/// to run without exposing operator's or staking provider\\u2019s private\\n/// key and should not require any owner\\u2019s keys at all. The stake\\n/// delegation optimizes the network throughput without compromising the\\n/// security of the owners\\u2019 stake.\\ninterface IStaking {\\n enum StakeType {\\n NU,\\n KEEP,\\n T\\n }\\n\\n //\\n //\\n // Delegating a stake\\n //\\n //\\n\\n /// @notice Creates a delegation with `msg.sender` owner with the given\\n /// staking provider, beneficiary, and authorizer. Transfers the\\n /// given amount of T to the staking contract.\\n /// @dev The owner of the delegation needs to have the amount approved to\\n /// transfer to the staking contract.\\n function stake(\\n address stakingProvider,\\n address payable beneficiary,\\n address authorizer,\\n uint96 amount\\n ) external;\\n\\n /// @notice Allows the Governance to set the minimum required stake amount.\\n /// This amount is required to protect against griefing the staking\\n /// contract and individual applications are allowed to require\\n /// higher minimum stakes if necessary.\\n function setMinimumStakeAmount(uint96 amount) external;\\n\\n //\\n //\\n // Authorizing an application\\n //\\n //\\n\\n /// @notice Allows the Governance to approve the particular application\\n /// before individual stake authorizers are able to authorize it.\\n function approveApplication(address application) external;\\n\\n /// @notice Increases the authorization of the given staking provider for\\n /// the given application by the given amount. Can only be called by\\n /// the authorizer for that staking provider.\\n /// @dev Calls `authorizationIncreased(address stakingProvider, uint256 amount)`\\n /// on the given application to notify the application about\\n /// authorization change. See `IApplication`.\\n function increaseAuthorization(\\n address stakingProvider,\\n address application,\\n uint96 amount\\n ) external;\\n\\n /// @notice Requests decrease of the authorization for the given staking\\n /// provider on the given application by the provided amount.\\n /// It may not change the authorized amount immediatelly. When\\n /// it happens depends on the application. Can only be called by the\\n /// given staking provider\\u2019s authorizer. Overwrites pending\\n /// authorization decrease for the given staking provider and\\n /// application if the application agrees for that. If the\\n /// application does not agree for overwriting, the function\\n /// reverts.\\n /// @dev Calls `authorizationDecreaseRequested(address stakingProvider, uint256 amount)`\\n /// on the given application. See `IApplication`.\\n function requestAuthorizationDecrease(\\n address stakingProvider,\\n address application,\\n uint96 amount\\n ) external;\\n\\n /// @notice Requests decrease of all authorizations for the given staking\\n /// provider on all applications by all authorized amount.\\n /// It may not change the authorized amount immediatelly. When\\n /// it happens depends on the application. Can only be called by the\\n /// given staking provider\\u2019s authorizer. Overwrites pending\\n /// authorization decrease for the given staking provider and\\n /// application.\\n /// @dev Calls `authorizationDecreaseRequested(address stakingProvider, uint256 amount)`\\n /// for each authorized application. See `IApplication`.\\n function requestAuthorizationDecrease(address stakingProvider) external;\\n\\n /// @notice Called by the application at its discretion to approve the\\n /// previously requested authorization decrease request. Can only be\\n /// called by the application that was previously requested to\\n /// decrease the authorization for that staking provider.\\n /// Returns resulting authorized amount for the application.\\n function approveAuthorizationDecrease(address stakingProvider)\\n external\\n returns (uint96);\\n\\n /// @notice Decreases the authorization for the given `stakingProvider` on\\n /// the given disabled `application`, for all authorized amount.\\n /// Can be called by anyone.\\n function forceDecreaseAuthorization(\\n address stakingProvider,\\n address application\\n ) external;\\n\\n /// @notice Pauses the given application\\u2019s eligibility to slash stakes.\\n /// Besides that stakers can't change authorization to the application.\\n /// Can be called only by the Panic Button of the particular\\n /// application. The paused application can not slash stakes until\\n /// it is approved again by the Governance using `approveApplication`\\n /// function. Should be used only in case of an emergency.\\n function pauseApplication(address application) external;\\n\\n /// @notice Disables the given application. The disabled application can't\\n /// slash stakers. Also stakers can't increase authorization to that\\n /// application but can decrease without waiting by calling\\n /// `requestAuthorizationDecrease` at any moment. Can be called only\\n /// by the governance. The disabled application can't be approved\\n /// again. Should be used only in case of an emergency.\\n function disableApplication(address application) external;\\n\\n /// @notice Sets the Panic Button role for the given application to the\\n /// provided address. Can only be called by the Governance. If the\\n /// Panic Button for the given application should be disabled, the\\n /// role address should be set to 0x0 address.\\n function setPanicButton(address application, address panicButton) external;\\n\\n /// @notice Sets the maximum number of applications one staking provider can\\n /// have authorized. Used to protect against DoSing slashing queue.\\n /// Can only be called by the Governance.\\n function setAuthorizationCeiling(uint256 ceiling) external;\\n\\n //\\n //\\n // Stake top-up\\n //\\n //\\n\\n /// @notice Increases the amount of the stake for the given staking provider.\\n /// If `autoIncrease` flag is true then the amount will be added for\\n /// all authorized applications.\\n /// @dev The sender of this transaction needs to have the amount approved to\\n /// transfer to the staking contract.\\n function topUp(address stakingProvider, uint96 amount) external;\\n\\n /// @notice Toggle `autoIncrease` flag. If true then the complete amount\\n /// in top-up will be added to already authorized applications.\\n function toggleAutoAuthorizationIncrease(address stakingProvider) external;\\n\\n //\\n //\\n // Undelegating a stake (unstaking)\\n //\\n //\\n\\n /// @notice Reduces the liquid T stake amount by the provided amount and\\n /// withdraws T to the owner. Reverts if there is at least one\\n /// authorization higher than the sum of the legacy stake and\\n /// remaining liquid T stake or if the unstake amount is higher than\\n /// the liquid T stake amount. Can be called only by the delegation\\n /// owner or the staking provider.\\n function unstakeT(address stakingProvider, uint96 amount) external;\\n\\n /// @notice Sets the legacy KEEP staking contract active stake amount cached\\n /// in T staking contract to 0. Reverts if the amount of liquid T\\n /// staked in T staking contract is lower than the highest\\n /// application authorization. This function allows to unstake from\\n /// KEEP staking contract and still being able to operate in T\\n /// network and earning rewards based on the liquid T staked. Can be\\n /// called only by the delegation owner or the staking provider.\\n function unstakeKeep(address stakingProvider) external;\\n\\n /// @notice Sets to 0 the amount of T that is cached from the legacy\\n /// NU staking contract. Reverts if there is at least one\\n /// authorization higher than the sum of remaining legacy NU stake\\n /// and native T stake for that staking provider or if the unstaked\\n /// amount is higher than the cached legacy stake amount. If succeeded,\\n /// the legacy NU stake can be partially or fully undelegated on\\n /// the legacy NU staking contract. This function allows to unstake\\n /// from NU staking contract while still being able to operate in\\n /// T network and earning rewards based on the native T staked.\\n /// Can be called only by the stake owner or the staking provider.\\n function unstakeNu(address stakingProvider) external;\\n\\n /// @notice Sets cached legacy stake amount to 0, sets the liquid T stake\\n /// amount to 0 and withdraws all liquid T from the stake to the\\n /// owner. Reverts if there is at least one non-zero authorization.\\n /// Can be called only by the delegation owner or the staking\\n /// provider.\\n function unstakeAll(address stakingProvider) external;\\n\\n //\\n //\\n // Keeping information in sync\\n //\\n //\\n\\n /// @notice Sets reward in T tokens for notification of misbehaviour\\n /// of one staking provider. Can only be called by the governance.\\n function setNotificationReward(uint96 reward) external;\\n\\n /// @notice Transfer some amount of T tokens as reward for notifications\\n /// of misbehaviour\\n function pushNotificationReward(uint96 reward) external;\\n\\n /// @notice Withdraw some amount of T tokens from notifiers treasury.\\n /// Can only be called by the governance.\\n function withdrawNotificationReward(address recipient, uint96 amount)\\n external;\\n\\n /// @notice Adds staking providers to the slashing queue along with the\\n /// amount that should be slashed from each one of them. Can only be\\n /// called by application authorized for all staking providers in\\n /// the array.\\n function slash(uint96 amount, address[] memory stakingProviders) external;\\n\\n /// @notice Adds staking providers to the slashing queue along with the\\n /// amount. The notifier will receive reward per each staking\\n /// provider from notifiers treasury. Can only be called by\\n /// application authorized for all staking providers in the array.\\n function seize(\\n uint96 amount,\\n uint256 rewardMultipier,\\n address notifier,\\n address[] memory stakingProviders\\n ) external;\\n\\n /// @notice Takes the given number of queued slashing operations and\\n /// processes them. Receives 5% of the slashed amount.\\n /// Executes `involuntaryAllocationDecrease` function on each\\n /// affected application.\\n function processSlashing(uint256 count) external;\\n\\n //\\n //\\n // Auxiliary functions\\n //\\n //\\n\\n /// @notice Returns the authorized stake amount of the staking provider for\\n /// the application.\\n function authorizedStake(address stakingProvider, address application)\\n external\\n view\\n returns (uint96);\\n\\n /// @notice Returns staked amount of T, Keep and Nu for the specified\\n /// staking provider.\\n /// @dev All values are in T denomination\\n function stakes(address stakingProvider)\\n external\\n view\\n returns (\\n uint96 tStake,\\n uint96 keepInTStake,\\n uint96 nuInTStake\\n );\\n\\n /// @notice Returns start staking timestamp.\\n /// @dev This value is set at most once.\\n function getStartStakingTimestamp(address stakingProvider)\\n external\\n view\\n returns (uint256);\\n\\n /// @notice Returns auto-increase flag.\\n function getAutoIncreaseFlag(address stakingProvider)\\n external\\n view\\n returns (bool);\\n\\n /// @notice Returns staked amount of NU for the specified staking provider.\\n function stakedNu(address stakingProvider) external view returns (uint256);\\n\\n /// @notice Gets the stake owner, the beneficiary and the authorizer\\n /// for the specified staking provider address.\\n /// @return owner Stake owner address.\\n /// @return beneficiary Beneficiary address.\\n /// @return authorizer Authorizer address.\\n function rolesOf(address stakingProvider)\\n external\\n view\\n returns (\\n address owner,\\n address payable beneficiary,\\n address authorizer\\n );\\n\\n /// @notice Returns length of application array\\n function getApplicationsLength() external view returns (uint256);\\n\\n /// @notice Returns length of slashing queue\\n function getSlashingQueueLength() external view returns (uint256);\\n\\n /// @notice Returns minimum possible stake for T, KEEP or NU in T\\n /// denomination.\\n /// @dev For example, suppose the given staking provider has 10 T, 20 T worth\\n /// of KEEP, and 30 T worth of NU all staked, and the maximum\\n /// application authorization is 40 T, then `getMinStaked` for\\n /// that staking provider returns:\\n /// * 0 T if KEEP stake type specified i.e.\\n /// min = 40 T max - (10 T) = 30 T\\n /// * 10 T if NU stake type specified i.e.\\n /// min = 40 T max - (10 T) = 30 T\\n /// * 0 T if T stake type specified i.e.\\n /// min = 40 T max = 40 T\\n /// In other words, the minimum stake amount for the specified\\n /// stake type is the minimum amount of stake of the given type\\n /// needed to satisfy the maximum application authorization given\\n /// the staked amounts of the T stake types for that staking provider.\\n function getMinStaked(address stakingProvider, StakeType stakeTypes)\\n external\\n view\\n returns (uint96);\\n\\n /// @notice Returns available amount to authorize for the specified application\\n function getAvailableToAuthorize(\\n address stakingProvider,\\n address application\\n ) external view returns (uint96);\\n}\\n\",\"keccak256\":\"0xc8fbea45ba10de0383d6e7b2dd0f3931971e1b702e4a308ff8325bb23fdff81c\",\"license\":\"GPL-3.0-or-later\"},\"contracts/EcdsaDkgValidator.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\n// Initial version copied from Keep Network Random Beacon:\\n// https://github.com/keep-network/keep-core/blob/5138c7628868dbeed3ae2164f76fccc6c1fbb9e8/solidity/random-beacon/contracts/DKGValidator.sol\\n//\\n// With the following differences:\\n// - group public key length,\\n// - group size and related thresholds,\\n// - documentation.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts/utils/cryptography/ECDSA.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/libraries/BytesLib.sol\\\";\\nimport \\\"@keep-network/sortition-pools/contracts/SortitionPool.sol\\\";\\nimport \\\"./libraries/EcdsaDkg.sol\\\";\\n\\n/// @title DKG result validator\\n/// @notice EcdsaDkgValidator allows performing a full validation of DKG result,\\n/// including checking the format of fields in the result, declared\\n/// selected group members, and signatures of operators supporting the\\n/// result. The operator submitting the result should perform the\\n/// validation using a free contract call before submitting the result\\n/// to ensure their result is valid and can not be challenged. All other\\n/// network operators should perform validation of the submitted result\\n/// using a free contract call and challenge the result if the\\n/// validation fails.\\ncontract EcdsaDkgValidator {\\n using BytesLib for bytes;\\n using ECDSA for bytes32;\\n\\n /// @dev Size of a group in DKG.\\n uint256 public constant groupSize = 100;\\n\\n /// @dev The minimum number of group members needed to interact according to\\n /// the protocol to produce a signature. The adversary can not learn\\n /// anything about the key as long as it does not break into\\n /// groupThreshold+1 of members.\\n uint256 public constant groupThreshold = 51;\\n\\n /// @dev The minimum number of active and properly behaving group members\\n /// during the DKG needed to accept the result. This number is higher\\n /// than `groupThreshold` to keep a safety margin for members becoming\\n /// inactive after DKG so that the group can still produce signature.\\n uint256 public constant activeThreshold = 90; // 90% of groupSize\\n\\n /// @dev Size in bytes of a public key produced by group members during the\\n /// the DKG. The length assumes uncompressed ECDSA public key.\\n uint256 public constant publicKeyByteSize = 64;\\n\\n /// @dev Size in bytes of a single signature produced by operator supporting\\n /// DKG result.\\n uint256 public constant signatureByteSize = 65;\\n\\n SortitionPool public immutable sortitionPool;\\n\\n constructor(SortitionPool _sortitionPool) {\\n sortitionPool = _sortitionPool;\\n }\\n\\n /// @notice Performs a full validation of DKG result, including checking the\\n /// format of fields in the result, declared selected group members,\\n /// and signatures of operators supporting the result.\\n /// @param seed seed used to start the DKG and select group members\\n /// @param startBlock DKG start block\\n /// @return isValid true if the result is valid, false otherwise\\n /// @return errorMsg validation error message; empty for a valid result\\n function validate(\\n EcdsaDkg.Result calldata result,\\n uint256 seed,\\n uint256 startBlock\\n ) external view returns (bool isValid, string memory errorMsg) {\\n (bool hasValidFields, string memory error) = validateFields(result);\\n if (!hasValidFields) {\\n return (false, error);\\n }\\n\\n if (!validateSignatures(result, startBlock)) {\\n return (false, \\\"Invalid signatures\\\");\\n }\\n\\n if (!validateGroupMembers(result, seed)) {\\n return (false, \\\"Invalid group members\\\");\\n }\\n\\n // At this point all group members and misbehaved members were verified\\n if (!validateMembersHash(result)) {\\n return (false, \\\"Invalid members hash\\\");\\n }\\n\\n return (true, \\\"\\\");\\n }\\n\\n /// @notice Performs a static validation of DKG result fields: lengths,\\n /// ranges, and order of arrays.\\n /// @return isValid true if the result is valid, false otherwise\\n /// @return errorMsg validation error message; empty for a valid result\\n function validateFields(EcdsaDkg.Result calldata result)\\n public\\n pure\\n returns (bool isValid, string memory errorMsg)\\n {\\n if (result.groupPubKey.length != publicKeyByteSize) {\\n return (false, \\\"Malformed group public key\\\");\\n }\\n\\n // The number of misbehaved members can not exceed the threshold.\\n // Misbehaved member indices needs to be unique, between [1, groupSize],\\n // and sorted in ascending order.\\n uint8[] calldata misbehavedMembersIndices = result\\n .misbehavedMembersIndices;\\n if (groupSize - misbehavedMembersIndices.length < activeThreshold) {\\n return (false, \\\"Too many members misbehaving during DKG\\\");\\n }\\n if (misbehavedMembersIndices.length > 1) {\\n if (\\n misbehavedMembersIndices[0] < 1 ||\\n misbehavedMembersIndices[misbehavedMembersIndices.length - 1] >\\n groupSize\\n ) {\\n return (false, \\\"Corrupted misbehaved members indices\\\");\\n }\\n for (uint256 i = 1; i < misbehavedMembersIndices.length; i++) {\\n if (\\n misbehavedMembersIndices[i - 1] >=\\n misbehavedMembersIndices[i]\\n ) {\\n return (false, \\\"Corrupted misbehaved members indices\\\");\\n }\\n }\\n }\\n\\n // Each signature needs to have a correct length and signatures need to\\n // be provided.\\n uint256 signaturesCount = result.signatures.length / signatureByteSize;\\n if (result.signatures.length == 0) {\\n return (false, \\\"No signatures provided\\\");\\n }\\n if (result.signatures.length % signatureByteSize != 0) {\\n return (false, \\\"Malformed signatures array\\\");\\n }\\n\\n // We expect the same amount of signatures as the number of declared\\n // group member indices that signed the result.\\n uint256[] calldata signingMembersIndices = result.signingMembersIndices;\\n if (signaturesCount != signingMembersIndices.length) {\\n return (false, \\\"Unexpected signatures count\\\");\\n }\\n if (signaturesCount < groupThreshold) {\\n return (false, \\\"Too few signatures\\\");\\n }\\n if (signaturesCount > groupSize) {\\n return (false, \\\"Too many signatures\\\");\\n }\\n\\n // Signing member indices needs to be unique, between [1,groupSize],\\n // and sorted in ascending order.\\n if (\\n signingMembersIndices[0] < 1 ||\\n signingMembersIndices[signingMembersIndices.length - 1] > groupSize\\n ) {\\n return (false, \\\"Corrupted signing member indices\\\");\\n }\\n for (uint256 i = 1; i < signingMembersIndices.length; i++) {\\n if (signingMembersIndices[i - 1] >= signingMembersIndices[i]) {\\n return (false, \\\"Corrupted signing member indices\\\");\\n }\\n }\\n\\n return (true, \\\"\\\");\\n }\\n\\n /// @notice Performs validation of group members as declared in DKG\\n /// result against group members selected by the sortition pool.\\n /// @param seed seed used to start the DKG and select group members\\n /// @return true if group members matches; false otherwise\\n function validateGroupMembers(EcdsaDkg.Result calldata result, uint256 seed)\\n public\\n view\\n returns (bool)\\n {\\n uint32[] calldata resultMembers = result.members;\\n uint32[] memory actualGroupMembers = sortitionPool.selectGroup(\\n groupSize,\\n bytes32(seed)\\n );\\n if (resultMembers.length != actualGroupMembers.length) {\\n return false;\\n }\\n for (uint256 i = 0; i < resultMembers.length; i++) {\\n if (resultMembers[i] != actualGroupMembers[i]) {\\n return false;\\n }\\n }\\n return true;\\n }\\n\\n /// @notice Performs validation of signatures supplied in DKG result.\\n /// Note that this function does not check if addresses which\\n /// supplied signatures supporting the result are the ones selected\\n /// to the group by sortition pool. This function should be used\\n /// together with `validateGroupMembers`.\\n /// @param startBlock DKG start block\\n /// @return true if group members matches; false otherwise\\n function validateSignatures(\\n EcdsaDkg.Result calldata result,\\n uint256 startBlock\\n ) public view returns (bool) {\\n bytes32 hash = keccak256(\\n abi.encode(\\n block.chainid,\\n result.groupPubKey,\\n result.misbehavedMembersIndices,\\n startBlock\\n )\\n ).toEthSignedMessageHash();\\n\\n uint256[] calldata signingMembersIndices = result.signingMembersIndices;\\n uint32[] memory signingMemberIds = new uint32[](\\n signingMembersIndices.length\\n );\\n for (uint256 i = 0; i < signingMembersIndices.length; i++) {\\n signingMemberIds[i] = result.members[signingMembersIndices[i] - 1];\\n }\\n\\n address[] memory signingMemberAddresses = sortitionPool.getIDOperators(\\n signingMemberIds\\n );\\n\\n bytes memory current; // Current signature to be checked.\\n\\n uint256 signaturesCount = result.signatures.length / signatureByteSize;\\n for (uint256 i = 0; i < signaturesCount; i++) {\\n current = result.signatures.slice(\\n signatureByteSize * i,\\n signatureByteSize\\n );\\n address recoveredAddress = hash.recover(current);\\n\\n if (signingMemberAddresses[i] != recoveredAddress) {\\n return false;\\n }\\n }\\n\\n return true;\\n }\\n\\n /// @notice Performs validation of hashed group members that actively took\\n /// part in DKG.\\n /// @param result DKG result\\n /// @return true if calculated result's group members hash matches with the\\n /// one that is challenged.\\n function validateMembersHash(EcdsaDkg.Result calldata result)\\n public\\n pure\\n returns (bool)\\n {\\n if (result.misbehavedMembersIndices.length > 0) {\\n // members that generated a group signing key\\n uint32[] memory groupMembers = new uint32[](\\n result.members.length - result.misbehavedMembersIndices.length\\n );\\n uint256 k = 0; // misbehaved members counter\\n uint256 j = 0; // group members counter\\n for (uint256 i = 0; i < result.members.length; i++) {\\n // misbehaved member indices start from 1, so we need to -1 on misbehaved\\n if (i != result.misbehavedMembersIndices[k] - 1) {\\n groupMembers[j] = result.members[i];\\n j++;\\n } else if (k < result.misbehavedMembersIndices.length - 1) {\\n k++;\\n }\\n }\\n\\n return keccak256(abi.encode(groupMembers)) == result.membersHash;\\n }\\n\\n return keccak256(abi.encode(result.members)) == result.membersHash;\\n }\\n}\\n\",\"keccak256\":\"0xe8f3d63ef4213ac71d447726be3971c5ed6b0b0eb145763d324faecdce707bf6\",\"license\":\"GPL-3.0-only\"},\"contracts/WalletRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"./api/IWalletRegistry.sol\\\";\\nimport \\\"./api/IWalletOwner.sol\\\";\\nimport \\\"./libraries/Wallets.sol\\\";\\nimport {EcdsaAuthorization as Authorization} from \\\"./libraries/EcdsaAuthorization.sol\\\";\\nimport {EcdsaDkg as DKG} from \\\"./libraries/EcdsaDkg.sol\\\";\\nimport {EcdsaInactivity as Inactivity} from \\\"./libraries/EcdsaInactivity.sol\\\";\\nimport {EcdsaDkgValidator as DKGValidator} from \\\"./EcdsaDkgValidator.sol\\\";\\n\\nimport \\\"@keep-network/sortition-pools/contracts/SortitionPool.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/api/IRandomBeacon.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/api/IRandomBeaconConsumer.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/Reimbursable.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/ReimbursementPool.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/Governable.sol\\\";\\n\\nimport \\\"@threshold-network/solidity-contracts/contracts/staking/IApplication.sol\\\";\\nimport \\\"@threshold-network/solidity-contracts/contracts/staking/IStaking.sol\\\";\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol\\\";\\n\\ncontract WalletRegistry is\\n IWalletRegistry,\\n IRandomBeaconConsumer,\\n IApplication,\\n Governable,\\n Reimbursable,\\n Initializable\\n{\\n using Authorization for Authorization.Data;\\n using DKG for DKG.Data;\\n using Wallets for Wallets.Data;\\n\\n // Libraries data storages\\n Authorization.Data internal authorization;\\n DKG.Data internal dkg;\\n Wallets.Data internal wallets;\\n\\n /// @notice Slashing amount for submitting a malicious DKG result. Every\\n /// DKG result submitted can be challenged for the time of\\n /// `dkg.resultChallengePeriodLength`. If the DKG result submitted\\n /// is challenged and proven to be malicious, the operator who\\n /// submitted the malicious result is slashed for\\n /// `_maliciousDkgResultSlashingAmount`.\\n uint96 internal _maliciousDkgResultSlashingAmount;\\n\\n /// @notice Percentage of the staking contract malicious behavior\\n /// notification reward which will be transferred to the notifier\\n /// reporting about a malicious DKG result. Notifiers are rewarded\\n /// from a notifiers treasury pool. For example, if\\n /// notification reward is 1000 and the value of the multiplier is\\n /// 5, the notifier will receive: 5% of 1000 = 50 per each\\n /// operator affected.\\n uint256 internal _maliciousDkgResultNotificationRewardMultiplier;\\n\\n /// @notice Duration of the sortition pool rewards ban imposed on operators\\n /// who missed their turn for DKG result submission or who failed\\n /// a heartbeat.\\n uint256 internal _sortitionPoolRewardsBanDuration;\\n\\n /// @notice Calculated max gas cost for submitting a DKG result. This will\\n /// be refunded as part of the DKG approval process. It is in the\\n /// submitter's interest to not skip his priority turn on the approval,\\n /// otherwise the refund of the DKG submission will be refunded to\\n /// another group member that will call the DKG approve function.\\n uint256 internal _dkgResultSubmissionGas;\\n\\n /// @notice Gas that is meant to balance the DKG result approval's overall\\n /// cost. It can be updated by the governance based on the current\\n /// market conditions.\\n uint256 internal _dkgResultApprovalGasOffset;\\n\\n /// @notice Gas that is meant to balance the notification of an operator\\n /// inactivity. It can be updated by the governance based on the\\n /// current market conditions.\\n uint256 internal _notifyOperatorInactivityGasOffset;\\n\\n /// @notice Gas that is meant to balance the notification of a seed for DKG\\n /// delivery timeout. It can be updated by the governance based on the\\n /// current market conditions.\\n uint256 internal _notifySeedTimeoutGasOffset;\\n\\n /// @notice Gas that is meant to balance the notification of a DKG protocol\\n /// execution timeout. It can be updated by the governance based on the\\n /// current market conditions.\\n /// @dev The value is subtracted for the refundable gas calculation, as the\\n /// DKG timeout notification transaction recovers some gas when cleaning\\n /// up the storage.\\n uint256 internal _notifyDkgTimeoutNegativeGasOffset;\\n\\n /// @notice Stores current operator inactivity claim nonce for the given\\n /// wallet signing group. Each claim is made with a unique nonce\\n /// which protects against claim replay.\\n mapping(bytes32 => uint256) public inactivityClaimNonce; // walletID -> nonce\\n\\n // Address that is set as owner of all wallets. Only this address can request\\n // new wallets creation and manage their state.\\n IWalletOwner public walletOwner;\\n\\n // External dependencies\\n\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n SortitionPool public immutable sortitionPool;\\n /// @custom:oz-upgrades-unsafe-allow state-variable-immutable\\n IStaking public immutable staking;\\n IRandomBeacon public randomBeacon;\\n\\n // Events\\n event DkgStarted(uint256 indexed seed);\\n\\n event DkgResultSubmitted(\\n bytes32 indexed resultHash,\\n uint256 indexed seed,\\n DKG.Result result\\n );\\n\\n event DkgTimedOut();\\n\\n event DkgResultApproved(\\n bytes32 indexed resultHash,\\n address indexed approver\\n );\\n\\n event DkgResultChallenged(\\n bytes32 indexed resultHash,\\n address indexed challenger,\\n string reason\\n );\\n\\n event DkgStateLocked();\\n\\n event DkgSeedTimedOut();\\n\\n event WalletCreated(\\n bytes32 indexed walletID,\\n bytes32 indexed dkgResultHash\\n );\\n\\n event WalletClosed(bytes32 indexed walletID);\\n\\n event DkgMaliciousResultSlashed(\\n bytes32 indexed resultHash,\\n uint256 slashingAmount,\\n address maliciousSubmitter\\n );\\n\\n event DkgMaliciousResultSlashingFailed(\\n bytes32 indexed resultHash,\\n uint256 slashingAmount,\\n address maliciousSubmitter\\n );\\n\\n event AuthorizationParametersUpdated(\\n uint96 minimumAuthorization,\\n uint64 authorizationDecreaseDelay,\\n uint64 authorizationDecreaseChangePeriod\\n );\\n\\n event RewardParametersUpdated(\\n uint256 maliciousDkgResultNotificationRewardMultiplier,\\n uint256 sortitionPoolRewardsBanDuration\\n );\\n\\n event SlashingParametersUpdated(uint256 maliciousDkgResultSlashingAmount);\\n\\n event DkgParametersUpdated(\\n uint256 seedTimeout,\\n uint256 resultChallengePeriodLength,\\n uint256 resultChallengeExtraGas,\\n uint256 resultSubmissionTimeout,\\n uint256 resultSubmitterPrecedencePeriodLength\\n );\\n\\n event GasParametersUpdated(\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n );\\n\\n event RandomBeaconUpgraded(address randomBeacon);\\n\\n event WalletOwnerUpdated(address walletOwner);\\n\\n event OperatorRegistered(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n event AuthorizationIncreased(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount\\n );\\n\\n event AuthorizationDecreaseRequested(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount,\\n uint64 decreasingAt\\n );\\n\\n event AuthorizationDecreaseApproved(address indexed stakingProvider);\\n\\n event InvoluntaryAuthorizationDecreaseFailed(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount\\n );\\n\\n event OperatorJoinedSortitionPool(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n event OperatorStatusUpdated(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n event InactivityClaimed(\\n bytes32 indexed walletID,\\n uint256 nonce,\\n address notifier\\n );\\n\\n modifier onlyStakingContract() {\\n require(\\n msg.sender == address(staking),\\n \\\"Caller is not the staking contract\\\"\\n );\\n _;\\n }\\n\\n /// @notice Reverts if called not by the Wallet Owner.\\n modifier onlyWalletOwner() {\\n require(\\n msg.sender == address(walletOwner),\\n \\\"Caller is not the Wallet Owner\\\"\\n );\\n _;\\n }\\n\\n modifier onlyReimbursableAdmin() override {\\n require(governance == msg.sender, \\\"Caller is not the governance\\\");\\n _;\\n }\\n\\n /// @dev Used to initialize immutable variables only, use `initialize` function\\n /// for upgradable contract initialization on deployment.\\n /// @custom:oz-upgrades-unsafe-allow constructor\\n constructor(SortitionPool _sortitionPool, IStaking _staking) {\\n sortitionPool = _sortitionPool;\\n staking = _staking;\\n\\n _disableInitializers();\\n }\\n\\n /// @dev Initializes upgradable contract on deployment.\\n function initialize(\\n DKGValidator _ecdsaDkgValidator,\\n IRandomBeacon _randomBeacon,\\n ReimbursementPool _reimbursementPool\\n ) external initializer {\\n randomBeacon = _randomBeacon;\\n reimbursementPool = _reimbursementPool;\\n\\n _transferGovernance(msg.sender);\\n\\n //\\n // All parameters set in the constructor are initial ones, used at the\\n // moment contracts were deployed for the first time. Parameters are\\n // governable and values assigned in the constructor do not need to\\n // reflect the current ones.\\n //\\n\\n // Minimum authorization is 40k T.\\n //\\n // Authorization decrease delay is 45 days.\\n //\\n // Authorization decrease change period is 45 days. It means pending\\n // authorization decrease can be overwritten all the time.\\n authorization.setMinimumAuthorization(40_000e18);\\n authorization.setAuthorizationDecreaseDelay(3_888_000);\\n authorization.setAuthorizationDecreaseChangePeriod(3_888_000);\\n\\n // Malicious DKG result slashing amount is set initially to 1% of the\\n // minimum authorization (400 T). This values needs to be increased\\n // significantly once the system is fully launched.\\n //\\n // Notifier of a malicious DKG result receives 100% of the notifier\\n // reward from the staking contract.\\n //\\n // Inactive operators are set as ineligible for rewards for 2 weeks.\\n _maliciousDkgResultSlashingAmount = 400e18;\\n _maliciousDkgResultNotificationRewardMultiplier = 100;\\n _sortitionPoolRewardsBanDuration = 2 weeks;\\n\\n // DKG seed timeout is set to 48h assuming 15s block time. The same\\n // value is used by the Random Beacon as a relay entry hard timeout.\\n //\\n // DKG result challenge period length is set to 48h as well, assuming\\n // 15s block time.\\n //\\n // DKG result submission timeout covers:\\n // - 20 blocks required to confirm the DkgStarted event off-chain\\n // - 1 attempt of the off-chain protocol that takes 216 blocks at most\\n // - 3 blocks to submit the result for each of the 100 members\\n // That gives: 20 + (1 * 216) + (3 * 100) = 536\\n //\\n //\\n // The original DKG result submitter has 20 blocks to approve it before\\n // anyone else can do that.\\n //\\n // With these parameters, the happy path takes no more than 104 hours.\\n // In practice, it should take about 48 hours (just the challenge time).\\n dkg.init(sortitionPool, _ecdsaDkgValidator);\\n dkg.setSeedTimeout(11_520);\\n dkg.setResultChallengePeriodLength(11_520);\\n dkg.setResultChallengeExtraGas(50_000);\\n dkg.setResultSubmissionTimeout(536);\\n dkg.setSubmitterPrecedencePeriodLength(20);\\n\\n // Gas parameters were adjusted based on Ethereum state in April 2022.\\n // If the cost of EVM opcodes change over time, these parameters will\\n // have to be updated.\\n _dkgResultSubmissionGas = 290_000;\\n _dkgResultApprovalGasOffset = 72_000;\\n _notifyOperatorInactivityGasOffset = 93_000;\\n _notifySeedTimeoutGasOffset = 7_250;\\n _notifyDkgTimeoutNegativeGasOffset = 2_300;\\n }\\n\\n /// @notice Withdraws application rewards for the given staking provider.\\n /// Rewards are withdrawn to the staking provider's beneficiary\\n /// address set in the staking contract. Reverts if staking provider\\n /// has not registered the operator address.\\n /// @dev Emits `RewardsWithdrawn` event.\\n function withdrawRewards(address stakingProvider) external {\\n address operator = stakingProviderToOperator(stakingProvider);\\n require(operator != address(0), \\\"Unknown operator\\\");\\n (, address beneficiary, ) = staking.rolesOf(stakingProvider);\\n uint96 amount = sortitionPool.withdrawRewards(operator, beneficiary);\\n // slither-disable-next-line reentrancy-events\\n emit RewardsWithdrawn(stakingProvider, amount);\\n }\\n\\n /// @notice Withdraws rewards belonging to operators marked as ineligible\\n /// for sortition pool rewards.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract.\\n /// @param recipient Recipient of withdrawn rewards.\\n function withdrawIneligibleRewards(address recipient)\\n external\\n onlyGovernance\\n {\\n sortitionPool.withdrawIneligible(recipient);\\n }\\n\\n /// @notice Used by staking provider to set operator address that will\\n /// operate ECDSA node. The given staking provider can set operator\\n /// address only one time. The operator address can not be changed\\n /// and must be unique. Reverts if the operator is already set for\\n /// the staking provider or if the operator address is already in\\n /// use. Reverts if there is a pending authorization decrease for\\n /// the staking provider.\\n function registerOperator(address operator) external {\\n authorization.registerOperator(operator);\\n }\\n\\n /// @notice Lets the operator join the sortition pool. The operator address\\n /// must be known - before calling this function, it has to be\\n /// appointed by the staking provider by calling `registerOperator`.\\n /// Also, the operator must have the minimum authorization required\\n /// by ECDSA. Function reverts if there is no minimum stake\\n /// authorized or if the operator is not known. If there was an\\n /// authorization decrease requested, it is activated by starting\\n /// the authorization decrease delay.\\n function joinSortitionPool() external {\\n authorization.joinSortitionPool(staking, sortitionPool);\\n }\\n\\n /// @notice Updates status of the operator in the sortition pool. If there\\n /// was an authorization decrease requested, it is activated by\\n /// starting the authorization decrease delay.\\n /// Function reverts if the operator is not known.\\n function updateOperatorStatus(address operator) external {\\n authorization.updateOperatorStatus(staking, sortitionPool, operator);\\n }\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorized stake amount for the given staking provider increased.\\n ///\\n /// Reverts if the authorization amount is below the minimum.\\n ///\\n /// The function is not updating the sortition pool. Sortition pool\\n /// state needs to be updated by the operator with a call to\\n /// `joinSortitionPool` or `updateOperatorStatus`.\\n ///\\n /// @dev Can only be called by T staking contract.\\n function authorizationIncreased(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external onlyStakingContract {\\n authorization.authorizationIncreased(\\n stakingProvider,\\n fromAmount,\\n toAmount\\n );\\n }\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorization decrease for the given staking provider has been\\n /// requested.\\n ///\\n /// Reverts if the amount after deauthorization would be non-zero\\n /// and lower than the minimum authorization.\\n ///\\n /// If the operator is not known (`registerOperator` was not called)\\n /// it lets to `approveAuthorizationDecrease` immediatelly. If the\\n /// operator is known (`registerOperator` was called), the operator\\n /// needs to update state of the sortition pool with a call to\\n /// `joinSortitionPool` or `updateOperatorStatus`. After the\\n /// sortition pool state is in sync, authorization decrease delay\\n /// starts.\\n ///\\n /// After authorization decrease delay passes, authorization\\n /// decrease request needs to be approved with a call to\\n /// `approveAuthorizationDecrease` function.\\n ///\\n /// If there is a pending authorization decrease request, it is\\n /// overwritten.\\n ///\\n /// @dev Can only be called by T staking contract.\\n function authorizationDecreaseRequested(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external onlyStakingContract {\\n authorization.authorizationDecreaseRequested(\\n stakingProvider,\\n fromAmount,\\n toAmount\\n );\\n }\\n\\n /// @notice Approves the previously registered authorization decrease\\n /// request. Reverts if authorization decrease delay has not passed\\n /// yet or if the authorization decrease was not requested for the\\n /// given staking provider.\\n function approveAuthorizationDecrease(address stakingProvider) external {\\n authorization.approveAuthorizationDecrease(staking, stakingProvider);\\n }\\n\\n /// @notice Used by T staking contract to inform the application the\\n /// authorization has been decreased for the given staking provider\\n /// involuntarily, as a result of slashing.\\n ///\\n /// If the operator is not known (`registerOperator` was not called)\\n /// the function does nothing. The operator was never in a sortition\\n /// pool so there is nothing to update.\\n ///\\n /// If the operator is known, sortition pool is unlocked, and the\\n /// operator is in the sortition pool, the sortition pool state is\\n /// updated. If the sortition pool is locked, update needs to be\\n /// postponed. Every other staker is incentivized to call\\n /// `updateOperatorStatus` for the problematic operator to increase\\n /// their own rewards in the pool.\\n function involuntaryAuthorizationDecrease(\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) external onlyStakingContract {\\n authorization.involuntaryAuthorizationDecrease(\\n staking,\\n sortitionPool,\\n stakingProvider,\\n fromAmount,\\n toAmount\\n );\\n }\\n\\n /// @notice Updates address of the Random Beacon.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param _randomBeacon Random Beacon address.\\n function upgradeRandomBeacon(IRandomBeacon _randomBeacon)\\n external\\n onlyGovernance\\n {\\n randomBeacon = _randomBeacon;\\n emit RandomBeaconUpgraded(address(_randomBeacon));\\n }\\n\\n /// @notice Updates the wallet owner.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters. The wallet owner has to implement `IWalletOwner`\\n /// interface.\\n /// @param _walletOwner New wallet owner address.\\n function updateWalletOwner(IWalletOwner _walletOwner)\\n external\\n onlyGovernance\\n {\\n walletOwner = _walletOwner;\\n emit WalletOwnerUpdated(address(_walletOwner));\\n }\\n\\n /// @notice Updates the values of authorization parameters.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param _minimumAuthorization New minimum authorization amount.\\n /// @param _authorizationDecreaseDelay New authorization decrease delay in\\n /// seconds.\\n /// @param _authorizationDecreaseChangePeriod New authorization decrease\\n /// change period in seconds.\\n function updateAuthorizationParameters(\\n uint96 _minimumAuthorization,\\n uint64 _authorizationDecreaseDelay,\\n uint64 _authorizationDecreaseChangePeriod\\n ) external onlyGovernance {\\n authorization.setMinimumAuthorization(_minimumAuthorization);\\n authorization.setAuthorizationDecreaseDelay(\\n _authorizationDecreaseDelay\\n );\\n authorization.setAuthorizationDecreaseChangePeriod(\\n _authorizationDecreaseChangePeriod\\n );\\n\\n emit AuthorizationParametersUpdated(\\n _minimumAuthorization,\\n _authorizationDecreaseDelay,\\n _authorizationDecreaseChangePeriod\\n );\\n }\\n\\n /// @notice Updates the values of DKG parameters.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param _seedTimeout New seed timeout.\\n /// @param _resultChallengePeriodLength New DKG result challenge period\\n /// length.\\n /// @param _resultChallengeExtraGas New extra gas value required to be left\\n /// at the end of the DKG result challenge transaction.\\n /// @param _resultSubmissionTimeout New DKG result submission timeout.\\n /// @param _submitterPrecedencePeriodLength New submitter precedence period\\n /// length.\\n function updateDkgParameters(\\n uint256 _seedTimeout,\\n uint256 _resultChallengePeriodLength,\\n uint256 _resultChallengeExtraGas,\\n uint256 _resultSubmissionTimeout,\\n uint256 _submitterPrecedencePeriodLength\\n ) external onlyGovernance {\\n dkg.setSeedTimeout(_seedTimeout);\\n dkg.setResultChallengePeriodLength(_resultChallengePeriodLength);\\n dkg.setResultChallengeExtraGas(_resultChallengeExtraGas);\\n dkg.setResultSubmissionTimeout(_resultSubmissionTimeout);\\n dkg.setSubmitterPrecedencePeriodLength(\\n _submitterPrecedencePeriodLength\\n );\\n\\n // slither-disable-next-line reentrancy-events\\n emit DkgParametersUpdated(\\n _seedTimeout,\\n _resultChallengePeriodLength,\\n _resultChallengeExtraGas,\\n _resultSubmissionTimeout,\\n _submitterPrecedencePeriodLength\\n );\\n }\\n\\n /// @notice Updates the values of reward parameters.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param maliciousDkgResultNotificationRewardMultiplier New value of the\\n /// DKG malicious result notification reward multiplier.\\n /// @param sortitionPoolRewardsBanDuration New sortition pool rewards\\n /// ban duration in seconds.\\n function updateRewardParameters(\\n uint256 maliciousDkgResultNotificationRewardMultiplier,\\n uint256 sortitionPoolRewardsBanDuration\\n ) external onlyGovernance {\\n _maliciousDkgResultNotificationRewardMultiplier = maliciousDkgResultNotificationRewardMultiplier;\\n _sortitionPoolRewardsBanDuration = sortitionPoolRewardsBanDuration;\\n emit RewardParametersUpdated(\\n maliciousDkgResultNotificationRewardMultiplier,\\n sortitionPoolRewardsBanDuration\\n );\\n }\\n\\n /// @notice Updates the values of slashing parameters.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param maliciousDkgResultSlashingAmount New malicious DKG result\\n /// slashing amount.\\n function updateSlashingParameters(uint96 maliciousDkgResultSlashingAmount)\\n external\\n onlyGovernance\\n {\\n _maliciousDkgResultSlashingAmount = maliciousDkgResultSlashingAmount;\\n emit SlashingParametersUpdated(maliciousDkgResultSlashingAmount);\\n }\\n\\n /// @notice Updates the values of gas-related parameters.\\n /// @dev Can be called only by the contract guvnor, which should be the\\n /// wallet registry governance contract. The caller is responsible for\\n /// validating parameters.\\n /// @param dkgResultSubmissionGas New DKG result submission gas.\\n /// @param dkgResultApprovalGasOffset New DKG result approval gas offset.\\n /// @param notifyOperatorInactivityGasOffset New operator inactivity\\n /// notification gas offset.\\n /// @param notifySeedTimeoutGasOffset New seed for DKG delivery timeout\\n /// notification gas offset.\\n /// @param notifyDkgTimeoutNegativeGasOffset New DKG timeout notification gas\\n /// offset.\\n function updateGasParameters(\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n ) external onlyGovernance {\\n _dkgResultSubmissionGas = dkgResultSubmissionGas;\\n _dkgResultApprovalGasOffset = dkgResultApprovalGasOffset;\\n _notifyOperatorInactivityGasOffset = notifyOperatorInactivityGasOffset;\\n _notifySeedTimeoutGasOffset = notifySeedTimeoutGasOffset;\\n _notifyDkgTimeoutNegativeGasOffset = notifyDkgTimeoutNegativeGasOffset;\\n\\n emit GasParametersUpdated(\\n dkgResultSubmissionGas,\\n dkgResultApprovalGasOffset,\\n notifyOperatorInactivityGasOffset,\\n _notifySeedTimeoutGasOffset,\\n _notifyDkgTimeoutNegativeGasOffset\\n );\\n }\\n\\n /// @notice Requests a new wallet creation.\\n /// @dev Can be called only by the owner of wallets.\\n /// It locks the DKG and request a new relay entry. It expects\\n /// that the DKG process will be started once a new relay entry\\n /// gets generated.\\n function requestNewWallet() external onlyWalletOwner {\\n dkg.lockState();\\n\\n randomBeacon.requestRelayEntry(this);\\n }\\n\\n /// @notice Closes an existing wallet. Reverts if wallet with the given ID\\n /// does not exist or if it has already been closed.\\n /// @param walletID ID of the wallet.\\n /// @dev Only a Wallet Owner can call this function.\\n function closeWallet(bytes32 walletID) external onlyWalletOwner {\\n wallets.deleteWallet(walletID);\\n emit WalletClosed(walletID);\\n }\\n\\n /// @notice A callback that is executed once a new relay entry gets\\n /// generated. It starts the DKG process.\\n /// @dev Can be called only by the random beacon contract.\\n /// @param relayEntry Relay entry.\\n function __beaconCallback(uint256 relayEntry, uint256) external {\\n require(\\n msg.sender == address(randomBeacon),\\n \\\"Caller is not the Random Beacon\\\"\\n );\\n\\n dkg.start(relayEntry);\\n }\\n\\n /// @notice Submits result of DKG protocol.\\n /// The DKG result consists of result submitting member index,\\n /// calculated group public key, bytes array of misbehaved members,\\n /// concatenation of signatures from group members, indices of members\\n /// corresponding to each signature and the list of group members.\\n /// The result is registered optimistically and waits for an approval.\\n /// The result can be challenged when it is believed to be incorrect.\\n /// The challenge verifies the registered result i.a. it checks if members\\n /// list corresponds to the expected set of members determined\\n /// by the sortition pool.\\n /// @dev The message to be signed by each member is keccak256 hash of the\\n /// chain ID, calculated group public key, misbehaved members indices\\n /// and DKG start block. The calculated hash should be prefixed with\\n /// `\\\\x19Ethereum signed message:\\\\n` before signing, so the message to\\n /// sign is:\\n /// `\\\\x19Ethereum signed message:\\\\n${keccak256(chainID,groupPubKey,misbehavedIndices,startBlock)}`\\n /// @param dkgResult DKG result.\\n function submitDkgResult(DKG.Result calldata dkgResult) external {\\n wallets.validatePublicKey(dkgResult.groupPubKey);\\n dkg.submitResult(dkgResult);\\n }\\n\\n /// @notice Approves DKG result. Can be called when the challenge period for\\n /// the submitted result is finished. Considers the submitted result\\n /// as valid, bans misbehaved group members from the sortition pool\\n /// rewards, and completes the group creation by activating the\\n /// candidate group. For the first `resultSubmissionTimeout` blocks\\n /// after the end of the challenge period can be called only by the\\n /// DKG result submitter. After that time, can be called by anyone.\\n /// A new wallet based on the DKG result details.\\n /// @param dkgResult Result to approve. Must match the submitted result\\n /// stored during `submitDkgResult`.\\n function approveDkgResult(DKG.Result calldata dkgResult) external {\\n uint256 gasStart = gasleft();\\n uint32[] memory misbehavedMembers = dkg.approveResult(dkgResult);\\n\\n (bytes32 walletID, bytes32 publicKeyX, bytes32 publicKeyY) = wallets\\n .addWallet(dkgResult.membersHash, dkgResult.groupPubKey);\\n\\n emit WalletCreated(walletID, keccak256(abi.encode(dkgResult)));\\n\\n if (misbehavedMembers.length > 0) {\\n sortitionPool.setRewardIneligibility(\\n misbehavedMembers,\\n // solhint-disable-next-line not-rely-on-time\\n block.timestamp + _sortitionPoolRewardsBanDuration\\n );\\n }\\n\\n walletOwner.__ecdsaWalletCreatedCallback(\\n walletID,\\n publicKeyX,\\n publicKeyY\\n );\\n\\n dkg.complete();\\n\\n // Refund msg.sender's ETH for DKG result submission and result approval\\n reimbursementPool.refund(\\n _dkgResultSubmissionGas +\\n (gasStart - gasleft()) +\\n _dkgResultApprovalGasOffset,\\n msg.sender\\n );\\n }\\n\\n /// @notice Notifies about seed for DKG delivery timeout. It is expected\\n /// that a seed is delivered by the Random Beacon as a relay entry in a\\n /// callback function.\\n function notifySeedTimeout() external {\\n uint256 gasStart = gasleft();\\n\\n dkg.notifySeedTimeout();\\n\\n reimbursementPool.refund(\\n (gasStart - gasleft()) + _notifySeedTimeoutGasOffset,\\n msg.sender\\n );\\n }\\n\\n /// @notice Notifies about DKG timeout.\\n function notifyDkgTimeout() external {\\n uint256 gasStart = gasleft();\\n\\n dkg.notifyDkgTimeout();\\n\\n // Note that the offset is subtracted as it is expected that the cleanup\\n // performed on DKG timeout notification removes data from the storage\\n // which is recovering gas for the transaction.\\n reimbursementPool.refund(\\n (gasStart - gasleft()) - _notifyDkgTimeoutNegativeGasOffset,\\n msg.sender\\n );\\n }\\n\\n /// @notice Challenges DKG result. If the submitted result is proved to be\\n /// invalid it reverts the DKG back to the result submission phase.\\n /// @param dkgResult Result to challenge. Must match the submitted result\\n /// stored during `submitDkgResult`.\\n /// @dev Due to EIP-150 1/64 of the gas is not forwarded to the call, and\\n /// will be kept to execute the remaining operations in the function\\n /// after the call inside the try-catch. To eliminate a class of\\n /// attacks related to the gas limit manipulation, this function\\n /// requires an extra amount of gas to be left at the end of the\\n /// execution.\\n function challengeDkgResult(DKG.Result calldata dkgResult) external {\\n // solhint-disable-next-line avoid-tx-origin\\n require(msg.sender == tx.origin, \\\"Not EOA\\\");\\n\\n (\\n bytes32 maliciousDkgResultHash,\\n uint32 maliciousDkgResultSubmitterId\\n ) = dkg.challengeResult(dkgResult);\\n\\n address maliciousDkgResultSubmitterAddress = sortitionPool\\n .getIDOperator(maliciousDkgResultSubmitterId);\\n\\n address[] memory operatorWrapper = new address[](1);\\n operatorWrapper[0] = operatorToStakingProvider(\\n maliciousDkgResultSubmitterAddress\\n );\\n\\n try\\n staking.seize(\\n _maliciousDkgResultSlashingAmount,\\n _maliciousDkgResultNotificationRewardMultiplier,\\n msg.sender,\\n operatorWrapper\\n )\\n {\\n // slither-disable-next-line reentrancy-events\\n emit DkgMaliciousResultSlashed(\\n maliciousDkgResultHash,\\n _maliciousDkgResultSlashingAmount,\\n maliciousDkgResultSubmitterAddress\\n );\\n } catch {\\n // Should never happen but we want to ensure a non-critical path\\n // failure from an external contract does not stop the challenge\\n // to complete.\\n emit DkgMaliciousResultSlashingFailed(\\n maliciousDkgResultHash,\\n _maliciousDkgResultSlashingAmount,\\n maliciousDkgResultSubmitterAddress\\n );\\n }\\n\\n // Due to EIP-150, 1/64 of the gas is not forwarded to the call, and\\n // will be kept to execute the remaining operations in the function\\n // after the call inside the try-catch.\\n //\\n // To ensure there is no way for the caller to manipulate gas limit in\\n // such a way that the call inside try-catch fails with out-of-gas and\\n // the rest of the function is executed with the remaining 1/64 of gas,\\n // we require an extra gas amount to be left at the end of the call to\\n // `challengeDkgResult`.\\n dkg.requireChallengeExtraGas();\\n }\\n\\n /// @notice Notifies about operators who are inactive. Using this function,\\n /// a majority of the wallet signing group can decide about\\n /// punishing specific group members who constantly fail doing their\\n /// job. If the provided claim is proved to be valid and signed by\\n /// sufficient number of group members, operators of members deemed\\n /// as inactive are banned from sortition pool rewards for the\\n /// duration specified by `sortitionPoolRewardsBanDuration` parameter.\\n /// The function allows to signal about single operators being\\n /// inactive as well as to signal wallet-wide heartbeat failures\\n /// that are propagated to the wallet owner who should begin the\\n /// procedure of moving responsibilities to another wallet given\\n /// that the wallet who failed the heartbeat may soon be not able to\\n /// function and provide new signatures.\\n /// The sender of the claim must be one of the claim signers. This\\n /// function can be called only for registered wallets\\n /// @param claim Operator inactivity claim.\\n /// @param nonce Current inactivity claim nonce for the given wallet signing\\n /// group. Must be the same as the stored one.\\n /// @param groupMembers Identifiers of the wallet signing group members.\\n function notifyOperatorInactivity(\\n Inactivity.Claim calldata claim,\\n uint256 nonce,\\n uint32[] calldata groupMembers\\n ) external {\\n uint256 gasStart = gasleft();\\n\\n bytes32 walletID = claim.walletID;\\n\\n require(nonce == inactivityClaimNonce[walletID], \\\"Invalid nonce\\\");\\n\\n (bytes32 pubKeyX, bytes32 pubKeyY) = wallets\\n .getWalletPublicKeyCoordinates(walletID);\\n bytes32 memberIdsHash = wallets.getWalletMembersIdsHash(walletID);\\n\\n require(\\n memberIdsHash == keccak256(abi.encode(groupMembers)),\\n \\\"Invalid group members\\\"\\n );\\n\\n uint32[] memory ineligibleOperators = Inactivity.verifyClaim(\\n sortitionPool,\\n claim,\\n bytes.concat(pubKeyX, pubKeyY),\\n nonce,\\n groupMembers\\n );\\n\\n inactivityClaimNonce[walletID]++;\\n\\n emit InactivityClaimed(walletID, nonce, msg.sender);\\n\\n sortitionPool.setRewardIneligibility(\\n ineligibleOperators,\\n // solhint-disable-next-line not-rely-on-time\\n block.timestamp + _sortitionPoolRewardsBanDuration\\n );\\n\\n if (claim.heartbeatFailed) {\\n walletOwner.__ecdsaWalletHeartbeatFailedCallback(\\n walletID,\\n pubKeyX,\\n pubKeyY\\n );\\n }\\n\\n reimbursementPool.refund(\\n (gasStart - gasleft()) + _notifyOperatorInactivityGasOffset,\\n msg.sender\\n );\\n }\\n\\n /// @notice Allows the wallet owner to add all signing group members of the\\n /// wallet with the given ID to the slashing queue of the staking .\\n /// contract. The notifier will receive reward per each group member\\n /// from the staking contract notifiers treasury. The reward is\\n /// scaled by the `rewardMultiplier` provided as a parameter.\\n /// @param amount Amount of tokens to seize from each signing group member.\\n /// @param rewardMultiplier Fraction of the staking contract notifiers\\n /// reward the notifier should receive; should be between [0, 100].\\n /// @param notifier Address of the misbehavior notifier.\\n /// @param walletID ID of the wallet.\\n /// @param walletMembersIDs Identifiers of the wallet signing group members.\\n /// @dev Requirements:\\n /// - The expression `keccak256(abi.encode(walletMembersIDs))` must\\n /// be exactly the same as the hash stored under `membersIdsHash`\\n /// for the given `walletID`. Those IDs are not directly stored\\n /// in the contract for gas efficiency purposes but they can be\\n /// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`\\n /// events.\\n /// - `rewardMultiplier` must be between [0, 100].\\n /// - This function does revert if staking contract call reverts.\\n /// The calling code needs to handle the potential revert.\\n function seize(\\n uint96 amount,\\n uint256 rewardMultiplier,\\n address notifier,\\n bytes32 walletID,\\n uint32[] calldata walletMembersIDs\\n ) external onlyWalletOwner {\\n bytes32 memberIdsHash = wallets.getWalletMembersIdsHash(walletID);\\n require(\\n memberIdsHash == keccak256(abi.encode(walletMembersIDs)),\\n \\\"Invalid wallet members identifiers\\\"\\n );\\n\\n address[] memory groupMembersAddresses = sortitionPool.getIDOperators(\\n walletMembersIDs\\n );\\n address[] memory stakingProvidersAddresses = new address[](\\n walletMembersIDs.length\\n );\\n for (uint256 i = 0; i < groupMembersAddresses.length; i++) {\\n stakingProvidersAddresses[i] = operatorToStakingProvider(\\n groupMembersAddresses[i]\\n );\\n }\\n\\n staking.seize(\\n amount,\\n rewardMultiplier,\\n notifier,\\n stakingProvidersAddresses\\n );\\n }\\n\\n /// @notice Checks if DKG result is valid for the current DKG.\\n /// @param result DKG result.\\n /// @return True if the result is valid. If the result is invalid it returns\\n /// false and an error message.\\n function isDkgResultValid(DKG.Result calldata result)\\n external\\n view\\n returns (bool, string memory)\\n {\\n return dkg.isResultValid(result);\\n }\\n\\n /// @notice Check current wallet creation state.\\n function getWalletCreationState() external view returns (DKG.State) {\\n return dkg.currentState();\\n }\\n\\n /// @notice Checks whether the given operator is a member of the given\\n /// wallet signing group.\\n /// @param walletID ID of the wallet.\\n /// @param walletMembersIDs Identifiers of the wallet signing group members.\\n /// @param operator Address of the checked operator.\\n /// @param walletMemberIndex Position of the operator in the wallet signing\\n /// group members list.\\n /// @return True - if the operator is a member of the given wallet signing\\n /// group. False - otherwise.\\n /// @dev Requirements:\\n /// - The `operator` parameter must be an actual sortition pool operator.\\n /// - The expression `keccak256(abi.encode(walletMembersIDs))` must\\n /// be exactly the same as the hash stored under `membersIdsHash`\\n /// for the given `walletID`. Those IDs are not directly stored\\n /// in the contract for gas efficiency purposes but they can be\\n /// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`\\n /// events.\\n /// - The `walletMemberIndex` must be in range [1, walletMembersIDs.length]\\n function isWalletMember(\\n bytes32 walletID,\\n uint32[] calldata walletMembersIDs,\\n address operator,\\n uint256 walletMemberIndex\\n ) external view returns (bool) {\\n uint32 operatorID = sortitionPool.getOperatorID(operator);\\n\\n require(operatorID != 0, \\\"Not a sortition pool operator\\\");\\n\\n bytes32 memberIdsHash = wallets.getWalletMembersIdsHash(walletID);\\n\\n require(\\n memberIdsHash == keccak256(abi.encode(walletMembersIDs)),\\n \\\"Invalid wallet members identifiers\\\"\\n );\\n\\n require(\\n 1 <= walletMemberIndex &&\\n walletMemberIndex <= walletMembersIDs.length,\\n \\\"Wallet member index is out of range\\\"\\n );\\n\\n return walletMembersIDs[walletMemberIndex - 1] == operatorID;\\n }\\n\\n /// @notice Checks if awaiting seed timed out.\\n /// @return True if awaiting seed timed out, false otherwise.\\n function hasSeedTimedOut() external view returns (bool) {\\n return dkg.hasSeedTimedOut();\\n }\\n\\n /// @notice Checks if DKG timed out. The DKG timeout period includes time required\\n /// for off-chain protocol execution and time for the result publication\\n /// for all group members. After this time result cannot be submitted\\n /// and DKG can be notified about the timeout.\\n /// @return True if DKG timed out, false otherwise.\\n function hasDkgTimedOut() external view returns (bool) {\\n return dkg.hasDkgTimedOut();\\n }\\n\\n function getWallet(bytes32 walletID)\\n external\\n view\\n returns (Wallets.Wallet memory)\\n {\\n return wallets.registry[walletID];\\n }\\n\\n /// @notice Gets public key of a wallet with a given wallet ID.\\n /// The public key is returned in an uncompressed format as a 64-byte\\n /// concatenation of X and Y coordinates.\\n /// @param walletID ID of the wallet.\\n /// @return Uncompressed public key of the wallet.\\n function getWalletPublicKey(bytes32 walletID)\\n external\\n view\\n returns (bytes memory)\\n {\\n return wallets.getWalletPublicKey(walletID);\\n }\\n\\n /// @notice Checks if a wallet with the given ID is registered.\\n /// @param walletID Wallet's ID.\\n /// @return True if wallet is registered, false otherwise.\\n function isWalletRegistered(bytes32 walletID) external view returns (bool) {\\n return wallets.isWalletRegistered(walletID);\\n }\\n\\n /// @notice The minimum authorization amount required so that operator can\\n /// participate in ECDSA Wallet operations.\\n function minimumAuthorization() external view returns (uint96) {\\n return authorization.parameters.minimumAuthorization;\\n }\\n\\n /// @notice Returns the current value of the staking provider's eligible\\n /// stake. Eligible stake is defined as the currently authorized\\n /// stake minus the pending authorization decrease. Eligible stake\\n /// is what is used for operator's weight in the sortition pool.\\n /// If the authorized stake minus the pending authorization decrease\\n /// is below the minimum authorization, eligible stake is 0.\\n function eligibleStake(address stakingProvider)\\n external\\n view\\n returns (uint96)\\n {\\n return authorization.eligibleStake(staking, stakingProvider);\\n }\\n\\n /// @notice Returns the amount of rewards available for withdrawal for the\\n /// given staking provider. Reverts if staking provider has not\\n /// registered the operator address.\\n function availableRewards(address stakingProvider)\\n external\\n view\\n returns (uint96)\\n {\\n address operator = stakingProviderToOperator(stakingProvider);\\n require(operator != address(0), \\\"Unknown operator\\\");\\n return sortitionPool.getAvailableRewards(operator);\\n }\\n\\n /// @notice Returns the amount of stake that is pending authorization\\n /// decrease for the given staking provider. If no authorization\\n /// decrease has been requested, returns zero.\\n function pendingAuthorizationDecrease(address stakingProvider)\\n external\\n view\\n returns (uint96)\\n {\\n return authorization.pendingAuthorizationDecrease(stakingProvider);\\n }\\n\\n /// @notice Returns the remaining time in seconds that needs to pass before\\n /// the requested authorization decrease can be approved.\\n /// If the sortition pool state was not updated yet by the operator\\n /// after requesting the authorization decrease, returns\\n /// `type(uint64).max`.\\n function remainingAuthorizationDecreaseDelay(address stakingProvider)\\n external\\n view\\n returns (uint64)\\n {\\n return\\n authorization.remainingAuthorizationDecreaseDelay(stakingProvider);\\n }\\n\\n /// @notice Returns operator registered for the given staking provider.\\n function stakingProviderToOperator(address stakingProvider)\\n public\\n view\\n returns (address)\\n {\\n return authorization.stakingProviderToOperator[stakingProvider];\\n }\\n\\n /// @notice Returns staking provider of the given operator.\\n function operatorToStakingProvider(address operator)\\n public\\n view\\n returns (address)\\n {\\n return authorization.operatorToStakingProvider[operator];\\n }\\n\\n /// @notice Checks if the operator's authorized stake is in sync with\\n /// operator's weight in the sortition pool.\\n /// If the operator is not in the sortition pool and their\\n /// authorized stake is non-zero, function returns false.\\n function isOperatorUpToDate(address operator) external view returns (bool) {\\n return\\n authorization.isOperatorUpToDate(staking, sortitionPool, operator);\\n }\\n\\n /// @notice Returns true if the given operator is in the sortition pool.\\n /// Otherwise, returns false.\\n function isOperatorInPool(address operator) external view returns (bool) {\\n return sortitionPool.isOperatorInPool(operator);\\n }\\n\\n /// @notice Selects a new group of operators. Can only be called when DKG\\n /// is in progress and the pool is locked.\\n /// At least one operator has to be registered in the pool,\\n /// otherwise the function fails reverting the transaction.\\n /// @return IDs of selected group members.\\n function selectGroup() external view returns (uint32[] memory) {\\n return sortitionPool.selectGroup(DKG.groupSize, bytes32(dkg.seed));\\n }\\n\\n /// @notice Retrieves dkg parameters that were set in DKG library.\\n function dkgParameters() external view returns (DKG.Parameters memory) {\\n return dkg.parameters;\\n }\\n\\n /// @notice Returns authorization-related parameters.\\n /// @dev The minimum authorization is also returned by `minimumAuthorization()`\\n /// function, as a requirement of `IApplication` interface.\\n /// @return minimumAuthorization The minimum authorization amount required\\n /// so that operator can participate in the random beacon. This\\n /// amount is required to execute slashing for providing a malicious\\n /// DKG result or when a relay entry times out.\\n /// @return authorizationDecreaseDelay Delay in seconds that needs to pass\\n /// between the time authorization decrease is requested and the\\n /// time that request gets approved. Protects against free-riders\\n /// earning rewards and not being active in the network.\\n /// @return authorizationDecreaseChangePeriod Authorization decrease change\\n /// period in seconds. It is the time, before authorization decrease\\n /// delay end, during which the pending authorization decrease\\n /// request can be overwritten.\\n /// If set to 0, pending authorization decrease request can not be\\n /// overwritten until the entire `authorizationDecreaseDelay` ends.\\n /// If set to value equal `authorizationDecreaseDelay`, request can\\n /// always be overwritten.\\n function authorizationParameters()\\n external\\n view\\n returns (\\n uint96 minimumAuthorization,\\n uint64 authorizationDecreaseDelay,\\n uint64 authorizationDecreaseChangePeriod\\n )\\n {\\n return (\\n authorization.parameters.minimumAuthorization,\\n authorization.parameters.authorizationDecreaseDelay,\\n authorization.parameters.authorizationDecreaseChangePeriod\\n );\\n }\\n\\n /// @notice Retrieves reward-related parameters.\\n /// @return maliciousDkgResultNotificationRewardMultiplier Percentage of the\\n /// staking contract malicious behavior notification reward which\\n /// will be transferred to the notifier reporting about a malicious\\n /// DKG result. Notifiers are rewarded from a notifiers treasury\\n /// pool. For example, if notification reward is 1000 and the value\\n /// of the multiplier is 5, the notifier will receive:\\n /// 5% of 1000 = 50 per each operator affected.\\n /// @return sortitionPoolRewardsBanDuration Duration of the sortition pool\\n /// rewards ban imposed on operators who missed their turn for DKG\\n /// result submission or who failed a heartbeat.\\n function rewardParameters()\\n external\\n view\\n returns (\\n uint256 maliciousDkgResultNotificationRewardMultiplier,\\n uint256 sortitionPoolRewardsBanDuration\\n )\\n {\\n return (\\n _maliciousDkgResultNotificationRewardMultiplier,\\n _sortitionPoolRewardsBanDuration\\n );\\n }\\n\\n /// @notice Retrieves slashing-related parameters.\\n /// @return maliciousDkgResultSlashingAmount Slashing amount for submitting\\n /// a malicious DKG result. Every DKG result submitted can be\\n /// challenged for the time of `dkg.resultChallengePeriodLength`.\\n /// If the DKG result submitted is challenged and proven to be\\n /// malicious, the operator who submitted the malicious result is\\n /// slashed for `_maliciousDkgResultSlashingAmount`.\\n function slashingParameters()\\n external\\n view\\n returns (uint96 maliciousDkgResultSlashingAmount)\\n {\\n return _maliciousDkgResultSlashingAmount;\\n }\\n\\n /// @notice Retrieves gas-related parameters.\\n /// @return dkgResultSubmissionGas Calculated max gas cost for submitting\\n /// a DKG result. This will be refunded as part of the DKG approval\\n /// process. It is in the submitter's interest to not skip his\\n /// priority turn on the approval, otherwise the refund of the DKG\\n /// submission will be refunded to another group member that will\\n /// call the DKG approve function.\\n /// @return dkgResultApprovalGasOffset Gas that is meant to balance the DKG\\n /// result approval's overall cost. It can be updated by the\\n /// governance based on the current market conditions.\\n /// @return notifyOperatorInactivityGasOffset Gas that is meant to balance\\n /// the notification of an operator inactivity. It can be updated by\\n /// the governance based on the current market conditions.\\n /// @return notifySeedTimeoutGasOffset Gas that is meant to balance the\\n /// notification of a seed for DKG delivery timeout. It can be updated\\n /// by the governance based on the current market conditions.\\n /// @return notifyDkgTimeoutNegativeGasOffset Gas that is meant to balance\\n /// the notification of a DKG protocol execution timeout. It can be\\n /// updated by the governance based on the current market conditions.\\n function gasParameters()\\n external\\n view\\n returns (\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n )\\n {\\n return (\\n _dkgResultSubmissionGas,\\n _dkgResultApprovalGasOffset,\\n _notifyOperatorInactivityGasOffset,\\n _notifySeedTimeoutGasOffset,\\n _notifyDkgTimeoutNegativeGasOffset\\n );\\n }\\n}\\n\",\"keccak256\":\"0xe553a31bd85a837aeab107d96e30ebe5d2d4dd4cb2e3c5c243e1e5f075f79775\",\"license\":\"GPL-3.0-only\"},\"contracts/WalletRegistryGovernance.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n//\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"./WalletRegistry.sol\\\";\\nimport \\\"@openzeppelin/contracts/access/Ownable.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/ReimbursementPool.sol\\\";\\n\\nimport {IWalletOwner} from \\\"./api/IWalletOwner.sol\\\";\\nimport {IRandomBeacon} from \\\"@keep-network/random-beacon/contracts/api/IRandomBeacon.sol\\\";\\n\\n/// @title Wallet Registry Governance\\n/// @notice Owns the `WalletRegistry` contract and is responsible for updating\\n/// its governable parameters in respect to the governance delay.\\ncontract WalletRegistryGovernance is Ownable {\\n uint256 public newGovernanceDelay;\\n uint256 public governanceDelayChangeInitiated;\\n\\n address public newWalletRegistryGovernance;\\n uint256 public walletRegistryGovernanceTransferInitiated;\\n\\n address public newWalletOwner;\\n uint256 public walletOwnerChangeInitiated;\\n\\n uint96 public newMinimumAuthorization;\\n uint256 public minimumAuthorizationChangeInitiated;\\n\\n uint64 public newAuthorizationDecreaseDelay;\\n uint256 public authorizationDecreaseDelayChangeInitiated;\\n\\n uint64 public newAuthorizationDecreaseChangePeriod;\\n uint256 public authorizationDecreaseChangePeriodChangeInitiated;\\n\\n uint96 public newMaliciousDkgResultSlashingAmount;\\n uint256 public maliciousDkgResultSlashingAmountChangeInitiated;\\n\\n uint256 public newMaliciousDkgResultNotificationRewardMultiplier;\\n uint256\\n public maliciousDkgResultNotificationRewardMultiplierChangeInitiated;\\n\\n uint256 public newSortitionPoolRewardsBanDuration;\\n uint256 public sortitionPoolRewardsBanDurationChangeInitiated;\\n\\n uint256 public newDkgSeedTimeout;\\n uint256 public dkgSeedTimeoutChangeInitiated;\\n\\n uint256 public newDkgResultChallengePeriodLength;\\n uint256 public dkgResultChallengePeriodLengthChangeInitiated;\\n\\n uint256 public newDkgResultChallengeExtraGas;\\n uint256 public dkgResultChallengeExtraGasChangeInitiated;\\n\\n uint256 public newDkgResultSubmissionTimeout;\\n uint256 public dkgResultSubmissionTimeoutChangeInitiated;\\n\\n uint256 public newSubmitterPrecedencePeriodLength;\\n uint256 public dkgSubmitterPrecedencePeriodLengthChangeInitiated;\\n\\n uint256 public newDkgResultSubmissionGas;\\n uint256 public dkgResultSubmissionGasChangeInitiated;\\n\\n uint256 public newDkgResultApprovalGasOffset;\\n uint256 public dkgResultApprovalGasOffsetChangeInitiated;\\n\\n uint256 public newNotifyOperatorInactivityGasOffset;\\n uint256 public notifyOperatorInactivityGasOffsetChangeInitiated;\\n\\n uint256 public newNotifySeedTimeoutGasOffset;\\n uint256 public notifySeedTimeoutGasOffsetChangeInitiated;\\n\\n uint256 public newNotifyDkgTimeoutNegativeGasOffset;\\n uint256 public notifyDkgTimeoutNegativeGasOffsetChangeInitiated;\\n\\n address payable public newReimbursementPool;\\n uint256 public reimbursementPoolChangeInitiated;\\n\\n WalletRegistry public immutable walletRegistry;\\n\\n uint256 public governanceDelay;\\n\\n event GovernanceDelayUpdateStarted(\\n uint256 governanceDelay,\\n uint256 timestamp\\n );\\n event GovernanceDelayUpdated(uint256 governanceDelay);\\n\\n event WalletRegistryGovernanceTransferStarted(\\n address newWalletRegistryGovernance,\\n uint256 timestamp\\n );\\n event WalletRegistryGovernanceTransferred(\\n address newWalletRegistryGovernance\\n );\\n\\n event WalletOwnerUpdateStarted(address walletOwner, uint256 timestamp);\\n event WalletOwnerUpdated(address walletOwner);\\n\\n event MinimumAuthorizationUpdateStarted(\\n uint96 minimumAuthorization,\\n uint256 timestamp\\n );\\n event MinimumAuthorizationUpdated(uint96 minimumAuthorization);\\n\\n event AuthorizationDecreaseDelayUpdateStarted(\\n uint64 authorizationDecreaseDelay,\\n uint256 timestamp\\n );\\n event AuthorizationDecreaseDelayUpdated(uint64 authorizationDecreaseDelay);\\n\\n event AuthorizationDecreaseChangePeriodUpdateStarted(\\n uint64 authorizationDecreaseChangePeriod,\\n uint256 timestamp\\n );\\n\\n event AuthorizationDecreaseChangePeriodUpdated(\\n uint64 authorizationDecreaseChangePeriod\\n );\\n\\n event MaliciousDkgResultSlashingAmountUpdateStarted(\\n uint256 maliciousDkgResultSlashingAmount,\\n uint256 timestamp\\n );\\n event MaliciousDkgResultSlashingAmountUpdated(\\n uint256 maliciousDkgResultSlashingAmount\\n );\\n\\n event MaliciousDkgResultNotificationRewardMultiplierUpdateStarted(\\n uint256 maliciousDkgResultNotificationRewardMultiplier,\\n uint256 timestamp\\n );\\n event MaliciousDkgResultNotificationRewardMultiplierUpdated(\\n uint256 maliciousDkgResultNotificationRewardMultiplier\\n );\\n\\n event SortitionPoolRewardsBanDurationUpdateStarted(\\n uint256 sortitionPoolRewardsBanDuration,\\n uint256 timestamp\\n );\\n event SortitionPoolRewardsBanDurationUpdated(\\n uint256 sortitionPoolRewardsBanDuration\\n );\\n\\n event DkgSeedTimeoutUpdateStarted(\\n uint256 dkgSeedTimeout,\\n uint256 timestamp\\n );\\n event DkgSeedTimeoutUpdated(uint256 dkgSeedTimeout);\\n\\n event DkgResultChallengePeriodLengthUpdateStarted(\\n uint256 dkgResultChallengePeriodLength,\\n uint256 timestamp\\n );\\n event DkgResultChallengePeriodLengthUpdated(\\n uint256 dkgResultChallengePeriodLength\\n );\\n\\n event DkgResultChallengeExtraGasUpdateStarted(\\n uint256 dkgResultChallengeExtraGas,\\n uint256 timestamp\\n );\\n event DkgResultChallengeExtraGasUpdated(uint256 dkgResultChallengeExtraGas);\\n\\n event DkgResultSubmissionTimeoutUpdateStarted(\\n uint256 dkgResultSubmissionTimeout,\\n uint256 timestamp\\n );\\n event DkgResultSubmissionTimeoutUpdated(uint256 dkgResultSubmissionTimeout);\\n\\n event DkgSubmitterPrecedencePeriodLengthUpdateStarted(\\n uint256 submitterPrecedencePeriodLength,\\n uint256 timestamp\\n );\\n event DkgSubmitterPrecedencePeriodLengthUpdated(\\n uint256 submitterPrecedencePeriodLength\\n );\\n\\n event DkgResultSubmissionGasUpdateStarted(\\n uint256 dkgResultSubmissionGas,\\n uint256 timestamp\\n );\\n event DkgResultSubmissionGasUpdated(uint256 dkgResultSubmissionGas);\\n\\n event DkgResultApprovalGasOffsetUpdateStarted(\\n uint256 dkgResultApprovalGasOffset,\\n uint256 timestamp\\n );\\n event DkgResultApprovalGasOffsetUpdated(uint256 dkgResultApprovalGasOffset);\\n\\n event NotifyOperatorInactivityGasOffsetUpdateStarted(\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 timestamp\\n );\\n event NotifyOperatorInactivityGasOffsetUpdated(\\n uint256 notifyOperatorInactivityGasOffset\\n );\\n\\n event NotifySeedTimeoutGasOffsetUpdateStarted(\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 timestamp\\n );\\n event NotifySeedTimeoutGasOffsetUpdated(uint256 notifySeedTimeoutGasOffset);\\n\\n event NotifyDkgTimeoutNegativeGasOffsetUpdateStarted(\\n uint256 notifyDkgTimeoutNegativeGasOffset,\\n uint256 timestamp\\n );\\n event NotifyDkgTimeoutNegativeGasOffsetUpdated(\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n );\\n\\n event ReimbursementPoolUpdateStarted(\\n address reimbursementPool,\\n uint256 timestamp\\n );\\n event ReimbursementPoolUpdated(address reimbursementPool);\\n\\n /// @notice Reverts if called before the governance delay elapses.\\n /// @param changeInitiatedTimestamp Timestamp indicating the beginning\\n /// of the change.\\n modifier onlyAfterGovernanceDelay(uint256 changeInitiatedTimestamp) {\\n /* solhint-disable not-rely-on-time */\\n require(changeInitiatedTimestamp > 0, \\\"Change not initiated\\\");\\n require(\\n block.timestamp - changeInitiatedTimestamp >= governanceDelay,\\n \\\"Governance delay has not elapsed\\\"\\n );\\n _;\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n constructor(WalletRegistry _walletRegistry, uint256 _governanceDelay) {\\n walletRegistry = _walletRegistry;\\n governanceDelay = _governanceDelay;\\n }\\n\\n /// @notice Upgrades the random beacon.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newRandomBeacon New random beacon address\\n function upgradeRandomBeacon(address _newRandomBeacon) external onlyOwner {\\n require(\\n _newRandomBeacon != address(0),\\n \\\"New random beacon address cannot be zero\\\"\\n );\\n\\n walletRegistry.upgradeRandomBeacon(IRandomBeacon(_newRandomBeacon));\\n }\\n\\n /// @notice Initializes the Wallet Owner's address.\\n /// @dev Can be called only by the contract owner. It can be called only if\\n /// walletOwner has not been set before. It doesn't enforce a governance\\n /// delay for the initial update. Any subsequent updates should be performed\\n /// with beginWalletOwnerUpdate/finalizeWalletOwnerUpdate with respect\\n /// of a governance delay.\\n /// @param _walletOwner The Wallet Owner's address\\n function initializeWalletOwner(address _walletOwner) external onlyOwner {\\n require(\\n address(walletRegistry.walletOwner()) == address(0),\\n \\\"Wallet Owner already initialized\\\"\\n );\\n require(\\n _walletOwner != address(0),\\n \\\"Wallet Owner address cannot be zero\\\"\\n );\\n\\n walletRegistry.updateWalletOwner(IWalletOwner(_walletOwner));\\n }\\n\\n /// @notice Begins the governance delay update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newGovernanceDelay New governance delay\\n function beginGovernanceDelayUpdate(uint256 _newGovernanceDelay)\\n external\\n onlyOwner\\n {\\n newGovernanceDelay = _newGovernanceDelay;\\n /* solhint-disable not-rely-on-time */\\n governanceDelayChangeInitiated = block.timestamp;\\n emit GovernanceDelayUpdateStarted(_newGovernanceDelay, block.timestamp);\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the governance delay update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeGovernanceDelayUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(governanceDelayChangeInitiated)\\n {\\n emit GovernanceDelayUpdated(newGovernanceDelay);\\n governanceDelay = newGovernanceDelay;\\n governanceDelayChangeInitiated = 0;\\n newGovernanceDelay = 0;\\n }\\n\\n /// @notice Begins the wallet registry governance transfer process.\\n /// @dev Can be called only by the contract owner.\\n function beginWalletRegistryGovernanceTransfer(\\n address _newWalletRegistryGovernance\\n ) external onlyOwner {\\n require(\\n address(_newWalletRegistryGovernance) != address(0),\\n \\\"New wallet registry governance address cannot be zero\\\"\\n );\\n newWalletRegistryGovernance = _newWalletRegistryGovernance;\\n /* solhint-disable not-rely-on-time */\\n walletRegistryGovernanceTransferInitiated = block.timestamp;\\n emit WalletRegistryGovernanceTransferStarted(\\n _newWalletRegistryGovernance,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the wallet registry governance transfer process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeWalletRegistryGovernanceTransfer()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(walletRegistryGovernanceTransferInitiated)\\n {\\n emit WalletRegistryGovernanceTransferred(newWalletRegistryGovernance);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.transferGovernance(newWalletRegistryGovernance);\\n walletRegistryGovernanceTransferInitiated = 0;\\n newWalletRegistryGovernance = address(0);\\n }\\n\\n /// @notice Begins the wallet owner update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newWalletOwner New wallet owner address\\n function beginWalletOwnerUpdate(address _newWalletOwner)\\n external\\n onlyOwner\\n {\\n require(\\n address(_newWalletOwner) != address(0),\\n \\\"New wallet owner address cannot be zero\\\"\\n );\\n /* solhint-disable not-rely-on-time */\\n newWalletOwner = _newWalletOwner;\\n walletOwnerChangeInitiated = block.timestamp;\\n emit WalletOwnerUpdateStarted(_newWalletOwner, block.timestamp);\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the wallet owner update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeWalletOwnerUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(walletOwnerChangeInitiated)\\n {\\n emit WalletOwnerUpdated(newWalletOwner);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateWalletOwner(IWalletOwner(newWalletOwner));\\n walletOwnerChangeInitiated = 0;\\n newWalletOwner = address(0);\\n }\\n\\n /// @notice Begins the minimum authorization amount update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newMinimumAuthorization New minimum authorization amount.\\n function beginMinimumAuthorizationUpdate(uint96 _newMinimumAuthorization)\\n external\\n onlyOwner\\n {\\n /* solhint-disable not-rely-on-time */\\n newMinimumAuthorization = _newMinimumAuthorization;\\n minimumAuthorizationChangeInitiated = block.timestamp;\\n emit MinimumAuthorizationUpdateStarted(\\n _newMinimumAuthorization,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the minimum authorization amount update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeMinimumAuthorizationUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(minimumAuthorizationChangeInitiated)\\n {\\n emit MinimumAuthorizationUpdated(newMinimumAuthorization);\\n (\\n ,\\n uint64 authorizationDecreaseDelay,\\n uint64 authorizationDecreaseChangePeriod\\n ) = walletRegistry.authorizationParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateAuthorizationParameters(\\n newMinimumAuthorization,\\n authorizationDecreaseDelay,\\n authorizationDecreaseChangePeriod\\n );\\n minimumAuthorizationChangeInitiated = 0;\\n newMinimumAuthorization = 0;\\n }\\n\\n /// @notice Begins the authorization decrease delay update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newAuthorizationDecreaseDelay New authorization decrease delay\\n function beginAuthorizationDecreaseDelayUpdate(\\n uint64 _newAuthorizationDecreaseDelay\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newAuthorizationDecreaseDelay = _newAuthorizationDecreaseDelay;\\n authorizationDecreaseDelayChangeInitiated = block.timestamp;\\n emit AuthorizationDecreaseDelayUpdateStarted(\\n _newAuthorizationDecreaseDelay,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the authorization decrease delay update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeAuthorizationDecreaseDelayUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(authorizationDecreaseDelayChangeInitiated)\\n {\\n emit AuthorizationDecreaseDelayUpdated(newAuthorizationDecreaseDelay);\\n (\\n uint96 minimumAuthorization,\\n uint64 authorizationDecreaseChangePeriod,\\n\\n ) = walletRegistry.authorizationParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateAuthorizationParameters(\\n minimumAuthorization,\\n newAuthorizationDecreaseDelay,\\n authorizationDecreaseChangePeriod\\n );\\n authorizationDecreaseDelayChangeInitiated = 0;\\n newAuthorizationDecreaseDelay = 0;\\n }\\n\\n /// @notice Begins the authorization decrease change period update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newAuthorizationDecreaseChangePeriod New authorization decrease change period\\n function beginAuthorizationDecreaseChangePeriodUpdate(\\n uint64 _newAuthorizationDecreaseChangePeriod\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newAuthorizationDecreaseChangePeriod = _newAuthorizationDecreaseChangePeriod;\\n authorizationDecreaseChangePeriodChangeInitiated = block.timestamp;\\n emit AuthorizationDecreaseChangePeriodUpdateStarted(\\n _newAuthorizationDecreaseChangePeriod,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the authorization decrease change period update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeAuthorizationDecreaseChangePeriodUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n authorizationDecreaseChangePeriodChangeInitiated\\n )\\n {\\n emit AuthorizationDecreaseChangePeriodUpdated(\\n newAuthorizationDecreaseChangePeriod\\n );\\n (\\n uint96 minimumAuthorization,\\n uint64 authorizationDecreaseDelay,\\n\\n ) = walletRegistry.authorizationParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateAuthorizationParameters(\\n minimumAuthorization,\\n authorizationDecreaseDelay,\\n newAuthorizationDecreaseChangePeriod\\n );\\n authorizationDecreaseChangePeriodChangeInitiated = 0;\\n newAuthorizationDecreaseChangePeriod = 0;\\n }\\n\\n /// @notice Begins the malicious DKG result slashing amount update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newMaliciousDkgResultSlashingAmount New malicious DKG result\\n /// slashing amount\\n function beginMaliciousDkgResultSlashingAmountUpdate(\\n uint96 _newMaliciousDkgResultSlashingAmount\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newMaliciousDkgResultSlashingAmount = _newMaliciousDkgResultSlashingAmount;\\n maliciousDkgResultSlashingAmountChangeInitiated = block.timestamp;\\n emit MaliciousDkgResultSlashingAmountUpdateStarted(\\n _newMaliciousDkgResultSlashingAmount,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the malicious DKG result slashing amount update\\n /// process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeMaliciousDkgResultSlashingAmountUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n maliciousDkgResultSlashingAmountChangeInitiated\\n )\\n {\\n emit MaliciousDkgResultSlashingAmountUpdated(\\n newMaliciousDkgResultSlashingAmount\\n );\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateSlashingParameters(\\n newMaliciousDkgResultSlashingAmount\\n );\\n maliciousDkgResultSlashingAmountChangeInitiated = 0;\\n newMaliciousDkgResultSlashingAmount = 0;\\n }\\n\\n /// @notice Begins the DKG malicious result notification reward multiplier\\n /// update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newMaliciousDkgResultNotificationRewardMultiplier New DKG\\n /// malicious result notification reward multiplier.\\n function beginMaliciousDkgResultNotificationRewardMultiplierUpdate(\\n uint256 _newMaliciousDkgResultNotificationRewardMultiplier\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n require(\\n _newMaliciousDkgResultNotificationRewardMultiplier <= 100,\\n \\\"Maximum value is 100\\\"\\n );\\n\\n newMaliciousDkgResultNotificationRewardMultiplier = _newMaliciousDkgResultNotificationRewardMultiplier;\\n maliciousDkgResultNotificationRewardMultiplierChangeInitiated = block\\n .timestamp;\\n emit MaliciousDkgResultNotificationRewardMultiplierUpdateStarted(\\n _newMaliciousDkgResultNotificationRewardMultiplier,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG malicious result notification reward\\n /// multiplier update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n maliciousDkgResultNotificationRewardMultiplierChangeInitiated\\n )\\n {\\n emit MaliciousDkgResultNotificationRewardMultiplierUpdated(\\n newMaliciousDkgResultNotificationRewardMultiplier\\n );\\n (, uint256 sortitionPoolRewardsBanDuration) = walletRegistry\\n .rewardParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateRewardParameters(\\n newMaliciousDkgResultNotificationRewardMultiplier,\\n sortitionPoolRewardsBanDuration\\n );\\n maliciousDkgResultNotificationRewardMultiplierChangeInitiated = 0;\\n newMaliciousDkgResultNotificationRewardMultiplier = 0;\\n }\\n\\n /// @notice Begins the dkg result submission gas update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgResultSubmissionGas New DKG result submission gas.\\n function beginDkgResultSubmissionGasUpdate(\\n uint256 _newDkgResultSubmissionGas\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newDkgResultSubmissionGas = _newDkgResultSubmissionGas;\\n dkgResultSubmissionGasChangeInitiated = block.timestamp;\\n emit DkgResultSubmissionGasUpdateStarted(\\n _newDkgResultSubmissionGas,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the dkg result submission gas update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgResultSubmissionGasUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgResultSubmissionGasChangeInitiated)\\n {\\n emit DkgResultSubmissionGasUpdated(newDkgResultSubmissionGas);\\n (\\n ,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n ) = walletRegistry.gasParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateGasParameters(\\n newDkgResultSubmissionGas,\\n dkgResultApprovalGasOffset,\\n notifyOperatorInactivityGasOffset,\\n notifySeedTimeoutGasOffset,\\n notifyDkgTimeoutNegativeGasOffset\\n );\\n dkgResultSubmissionGasChangeInitiated = 0;\\n newDkgResultSubmissionGas = 0;\\n }\\n\\n /// @notice Begins the dkg approval gas offset update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgResultApprovalGasOffset New DKG result approval gas.\\n function beginDkgResultApprovalGasOffsetUpdate(\\n uint256 _newDkgResultApprovalGasOffset\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newDkgResultApprovalGasOffset = _newDkgResultApprovalGasOffset;\\n dkgResultApprovalGasOffsetChangeInitiated = block.timestamp;\\n emit DkgResultApprovalGasOffsetUpdateStarted(\\n _newDkgResultApprovalGasOffset,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the dkg result approval gas offset update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgResultApprovalGasOffsetUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgResultApprovalGasOffsetChangeInitiated)\\n {\\n emit DkgResultApprovalGasOffsetUpdated(newDkgResultApprovalGasOffset);\\n (\\n uint256 dkgResultSubmissionGas,\\n ,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n ) = walletRegistry.gasParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateGasParameters(\\n dkgResultSubmissionGas,\\n newDkgResultApprovalGasOffset,\\n notifyOperatorInactivityGasOffset,\\n notifySeedTimeoutGasOffset,\\n notifyDkgTimeoutNegativeGasOffset\\n );\\n dkgResultApprovalGasOffsetChangeInitiated = 0;\\n newDkgResultApprovalGasOffset = 0;\\n }\\n\\n /// @notice Begins the notify operator inactivity gas offset update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newNotifyOperatorInactivityGasOffset New operator inactivity\\n /// notification gas offset\\n function beginNotifyOperatorInactivityGasOffsetUpdate(\\n uint256 _newNotifyOperatorInactivityGasOffset\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newNotifyOperatorInactivityGasOffset = _newNotifyOperatorInactivityGasOffset;\\n notifyOperatorInactivityGasOffsetChangeInitiated = block.timestamp;\\n emit NotifyOperatorInactivityGasOffsetUpdateStarted(\\n _newNotifyOperatorInactivityGasOffset,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the notify operator inactivity gas offset update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeNotifyOperatorInactivityGasOffsetUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n notifyOperatorInactivityGasOffsetChangeInitiated\\n )\\n {\\n emit NotifyOperatorInactivityGasOffsetUpdated(\\n newNotifyOperatorInactivityGasOffset\\n );\\n (\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n ,\\n uint256 notifySeedTimeoutGasOffset,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n ) = walletRegistry.gasParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateGasParameters(\\n dkgResultSubmissionGas,\\n dkgResultApprovalGasOffset,\\n newNotifyOperatorInactivityGasOffset,\\n notifySeedTimeoutGasOffset,\\n notifyDkgTimeoutNegativeGasOffset\\n );\\n notifyOperatorInactivityGasOffsetChangeInitiated = 0;\\n newNotifyOperatorInactivityGasOffset = 0;\\n }\\n\\n /// @notice Begins the notify seed for DKG delivery timeout gas offset update\\n /// process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newNotifySeedTimeoutGasOffset New seed for DKG delivery timeout\\n /// notification gas offset\\n function beginNotifySeedTimeoutGasOffsetUpdate(\\n uint256 _newNotifySeedTimeoutGasOffset\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newNotifySeedTimeoutGasOffset = _newNotifySeedTimeoutGasOffset;\\n notifySeedTimeoutGasOffsetChangeInitiated = block.timestamp;\\n emit NotifySeedTimeoutGasOffsetUpdateStarted(\\n _newNotifySeedTimeoutGasOffset,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the notify seed for DKG delivery timeout gas offset\\n /// update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeNotifySeedTimeoutGasOffsetUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(notifySeedTimeoutGasOffsetChangeInitiated)\\n {\\n emit NotifySeedTimeoutGasOffsetUpdated(newNotifySeedTimeoutGasOffset);\\n (\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n ,\\n uint256 notifyDkgTimeoutNegativeGasOffset\\n ) = walletRegistry.gasParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateGasParameters(\\n dkgResultSubmissionGas,\\n dkgResultApprovalGasOffset,\\n notifyOperatorInactivityGasOffset,\\n newNotifySeedTimeoutGasOffset,\\n notifyDkgTimeoutNegativeGasOffset\\n );\\n notifySeedTimeoutGasOffsetChangeInitiated = 0;\\n newNotifySeedTimeoutGasOffset = 0;\\n }\\n\\n /// @notice Begins the notify DKG timeout negative gas offset update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newNotifyDkgTimeoutNegativeGasOffset New DKG timeout negative gas\\n /// notification gas offset\\n function beginNotifyDkgTimeoutNegativeGasOffsetUpdate(\\n uint256 _newNotifyDkgTimeoutNegativeGasOffset\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newNotifyDkgTimeoutNegativeGasOffset = _newNotifyDkgTimeoutNegativeGasOffset;\\n notifyDkgTimeoutNegativeGasOffsetChangeInitiated = block.timestamp;\\n emit NotifyDkgTimeoutNegativeGasOffsetUpdateStarted(\\n _newNotifyDkgTimeoutNegativeGasOffset,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the notify DKG timeout negative gas offset update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n notifyDkgTimeoutNegativeGasOffsetChangeInitiated\\n )\\n {\\n emit NotifyDkgTimeoutNegativeGasOffsetUpdated(\\n newNotifyDkgTimeoutNegativeGasOffset\\n );\\n (\\n uint256 dkgResultSubmissionGas,\\n uint256 dkgResultApprovalGasOffset,\\n uint256 notifyOperatorInactivityGasOffset,\\n uint256 notifySeedTimeoutGasOffset,\\n\\n ) = walletRegistry.gasParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateGasParameters(\\n dkgResultSubmissionGas,\\n dkgResultApprovalGasOffset,\\n notifyOperatorInactivityGasOffset,\\n notifySeedTimeoutGasOffset,\\n newNotifyDkgTimeoutNegativeGasOffset\\n );\\n notifyDkgTimeoutNegativeGasOffsetChangeInitiated = 0;\\n newNotifyDkgTimeoutNegativeGasOffset = 0;\\n }\\n\\n /// @notice Begins the reimbursement pool update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newReimbursementPool New reimbursement pool.\\n function beginReimbursementPoolUpdate(address payable _newReimbursementPool)\\n external\\n onlyOwner\\n {\\n require(\\n address(_newReimbursementPool) != address(0),\\n \\\"New reimbursement pool address cannot be zero\\\"\\n );\\n /* solhint-disable not-rely-on-time */\\n newReimbursementPool = _newReimbursementPool;\\n reimbursementPoolChangeInitiated = block.timestamp;\\n emit ReimbursementPoolUpdateStarted(\\n _newReimbursementPool,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the reimbursement pool update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeReimbursementPoolUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(reimbursementPoolChangeInitiated)\\n {\\n emit ReimbursementPoolUpdated(newReimbursementPool);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateReimbursementPool(\\n ReimbursementPool(newReimbursementPool)\\n );\\n reimbursementPoolChangeInitiated = 0;\\n newReimbursementPool = payable(address(0));\\n }\\n\\n /// @notice Begins the sortition pool rewards ban duration update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newSortitionPoolRewardsBanDuration New sortition pool rewards\\n /// ban duration.\\n function beginSortitionPoolRewardsBanDurationUpdate(\\n uint256 _newSortitionPoolRewardsBanDuration\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newSortitionPoolRewardsBanDuration = _newSortitionPoolRewardsBanDuration;\\n sortitionPoolRewardsBanDurationChangeInitiated = block.timestamp;\\n emit SortitionPoolRewardsBanDurationUpdateStarted(\\n _newSortitionPoolRewardsBanDuration,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the sortition pool rewards ban duration update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeSortitionPoolRewardsBanDurationUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(sortitionPoolRewardsBanDurationChangeInitiated)\\n {\\n emit SortitionPoolRewardsBanDurationUpdated(\\n newSortitionPoolRewardsBanDuration\\n );\\n (\\n uint256 maliciousDkgResultNotificationRewardMultiplier,\\n\\n ) = walletRegistry.rewardParameters();\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateRewardParameters(\\n maliciousDkgResultNotificationRewardMultiplier,\\n newSortitionPoolRewardsBanDuration\\n );\\n sortitionPoolRewardsBanDurationChangeInitiated = 0;\\n newSortitionPoolRewardsBanDuration = 0;\\n }\\n\\n /// @notice Begins the DKG seed timeout update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgSeedTimeout New DKG seed timeout in blocks\\n function beginDkgSeedTimeoutUpdate(uint256 _newDkgSeedTimeout)\\n external\\n onlyOwner\\n {\\n /* solhint-disable not-rely-on-time */\\n require(_newDkgSeedTimeout > 0, \\\"DKG seed timeout must be > 0\\\");\\n newDkgSeedTimeout = _newDkgSeedTimeout;\\n dkgSeedTimeoutChangeInitiated = block.timestamp;\\n emit DkgSeedTimeoutUpdateStarted(_newDkgSeedTimeout, block.timestamp);\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG seed timeout update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgSeedTimeoutUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgSeedTimeoutChangeInitiated)\\n {\\n emit DkgSeedTimeoutUpdated(newDkgSeedTimeout);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateDkgParameters(\\n newDkgSeedTimeout,\\n walletRegistry.dkgParameters().resultChallengePeriodLength,\\n walletRegistry.dkgParameters().resultChallengeExtraGas,\\n walletRegistry.dkgParameters().resultSubmissionTimeout,\\n walletRegistry.dkgParameters().submitterPrecedencePeriodLength\\n );\\n dkgSeedTimeoutChangeInitiated = 0;\\n newDkgSeedTimeout = 0;\\n }\\n\\n /// @notice Begins the DKG result challenge period length update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgResultChallengePeriodLength New DKG result challenge\\n /// period length in blocks\\n function beginDkgResultChallengePeriodLengthUpdate(\\n uint256 _newDkgResultChallengePeriodLength\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n require(\\n _newDkgResultChallengePeriodLength >= 10,\\n \\\"DKG result challenge period length must be >= 10\\\"\\n );\\n newDkgResultChallengePeriodLength = _newDkgResultChallengePeriodLength;\\n dkgResultChallengePeriodLengthChangeInitiated = block.timestamp;\\n emit DkgResultChallengePeriodLengthUpdateStarted(\\n _newDkgResultChallengePeriodLength,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG result challenge period length update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgResultChallengePeriodLengthUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgResultChallengePeriodLengthChangeInitiated)\\n {\\n emit DkgResultChallengePeriodLengthUpdated(\\n newDkgResultChallengePeriodLength\\n );\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateDkgParameters(\\n walletRegistry.dkgParameters().seedTimeout,\\n newDkgResultChallengePeriodLength,\\n walletRegistry.dkgParameters().resultChallengeExtraGas,\\n walletRegistry.dkgParameters().resultSubmissionTimeout,\\n walletRegistry.dkgParameters().submitterPrecedencePeriodLength\\n );\\n dkgResultChallengePeriodLengthChangeInitiated = 0;\\n newDkgResultChallengePeriodLength = 0;\\n }\\n\\n /// @notice Begins the DKG result challenge extra gas update process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgResultChallengeExtraGas New DKG result challenge extra gas\\n function beginDkgResultChallengeExtraGasUpdate(\\n uint256 _newDkgResultChallengeExtraGas\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n newDkgResultChallengeExtraGas = _newDkgResultChallengeExtraGas;\\n dkgResultChallengeExtraGasChangeInitiated = block.timestamp;\\n emit DkgResultChallengeExtraGasUpdateStarted(\\n _newDkgResultChallengeExtraGas,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG result challenge extra gas update process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgResultChallengeExtraGasUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgResultChallengeExtraGasChangeInitiated)\\n {\\n emit DkgResultChallengeExtraGasUpdated(newDkgResultChallengeExtraGas);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateDkgParameters(\\n walletRegistry.dkgParameters().seedTimeout,\\n walletRegistry.dkgParameters().resultChallengePeriodLength,\\n newDkgResultChallengeExtraGas,\\n walletRegistry.dkgParameters().resultSubmissionTimeout,\\n walletRegistry.dkgParameters().submitterPrecedencePeriodLength\\n );\\n dkgResultChallengeExtraGasChangeInitiated = 0;\\n newDkgResultChallengeExtraGas = 0;\\n }\\n\\n /// @notice Begins the DKG result submission timeout update\\n /// process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newDkgResultSubmissionTimeout New DKG result submission timeout\\n /// in blocks\\n function beginDkgResultSubmissionTimeoutUpdate(\\n uint256 _newDkgResultSubmissionTimeout\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n require(\\n _newDkgResultSubmissionTimeout > 0,\\n \\\"DKG result submission timeout must be > 0\\\"\\n );\\n newDkgResultSubmissionTimeout = _newDkgResultSubmissionTimeout;\\n dkgResultSubmissionTimeoutChangeInitiated = block.timestamp;\\n emit DkgResultSubmissionTimeoutUpdateStarted(\\n _newDkgResultSubmissionTimeout,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG result submission timeout update\\n /// process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgResultSubmissionTimeoutUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(dkgResultSubmissionTimeoutChangeInitiated)\\n {\\n emit DkgResultSubmissionTimeoutUpdated(newDkgResultSubmissionTimeout);\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateDkgParameters(\\n walletRegistry.dkgParameters().seedTimeout,\\n walletRegistry.dkgParameters().resultChallengePeriodLength,\\n walletRegistry.dkgParameters().resultChallengeExtraGas,\\n newDkgResultSubmissionTimeout,\\n walletRegistry.dkgParameters().submitterPrecedencePeriodLength\\n );\\n dkgResultSubmissionTimeoutChangeInitiated = 0;\\n newDkgResultSubmissionTimeout = 0;\\n }\\n\\n /// @notice Begins the DKG submitter precedence period length update\\n /// process.\\n /// @dev Can be called only by the contract owner.\\n /// @param _newSubmitterPrecedencePeriodLength New DKG submitter precedence\\n /// period length in blocks\\n function beginDkgSubmitterPrecedencePeriodLengthUpdate(\\n uint256 _newSubmitterPrecedencePeriodLength\\n ) external onlyOwner {\\n /* solhint-disable not-rely-on-time */\\n require(\\n _newSubmitterPrecedencePeriodLength > 0,\\n \\\"DKG submitter precedence period length must be > 0\\\"\\n );\\n newSubmitterPrecedencePeriodLength = _newSubmitterPrecedencePeriodLength;\\n dkgSubmitterPrecedencePeriodLengthChangeInitiated = block.timestamp;\\n emit DkgSubmitterPrecedencePeriodLengthUpdateStarted(\\n _newSubmitterPrecedencePeriodLength,\\n block.timestamp\\n );\\n /* solhint-enable not-rely-on-time */\\n }\\n\\n /// @notice Finalizes the DKG submitter precedence period length update\\n /// process.\\n /// @dev Can be called only by the contract owner, after the governance\\n /// delay elapses.\\n function finalizeDkgSubmitterPrecedencePeriodLengthUpdate()\\n external\\n onlyOwner\\n onlyAfterGovernanceDelay(\\n dkgSubmitterPrecedencePeriodLengthChangeInitiated\\n )\\n {\\n emit DkgSubmitterPrecedencePeriodLengthUpdated(\\n newSubmitterPrecedencePeriodLength\\n );\\n // slither-disable-next-line reentrancy-no-eth\\n walletRegistry.updateDkgParameters(\\n walletRegistry.dkgParameters().seedTimeout,\\n walletRegistry.dkgParameters().resultChallengePeriodLength,\\n walletRegistry.dkgParameters().resultChallengeExtraGas,\\n walletRegistry.dkgParameters().resultSubmissionTimeout,\\n newSubmitterPrecedencePeriodLength\\n );\\n dkgSubmitterPrecedencePeriodLengthChangeInitiated = 0;\\n newSubmitterPrecedencePeriodLength = 0;\\n }\\n\\n /// @notice Withdraws rewards belonging to operators marked as ineligible\\n /// for sortition pool rewards.\\n /// @dev Can be called only by the contract owner.\\n /// @param recipient Recipient of withdrawn rewards.\\n function withdrawIneligibleRewards(address recipient) external onlyOwner {\\n walletRegistry.withdrawIneligibleRewards(recipient);\\n }\\n\\n /// @notice Get the time remaining until the governance delay can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingGovernanceDelayUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(governanceDelayChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the wallet registry governance can\\n /// be transferred.\\n /// @return Remaining time in seconds.\\n function getRemainingWalletRegistryGovernanceTransferDelayTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(walletRegistryGovernanceTransferInitiated);\\n }\\n\\n /// @notice Get the time remaining until the minimum authorization amount\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingMimimumAuthorizationUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(minimumAuthorizationChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the authorization decrease delay\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingAuthorizationDecreaseDelayUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(authorizationDecreaseDelayChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the authorization decrease change\\n /// period can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingAuthorizationDecreaseChangePeriodUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n authorizationDecreaseChangePeriodChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the malicious DKG result\\n /// slashing amount can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingMaliciousDkgResultSlashingAmountUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n maliciousDkgResultSlashingAmountChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the DKG malicious result\\n /// notification reward multiplier duration can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n maliciousDkgResultNotificationRewardMultiplierChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the sortition pool rewards ban\\n /// duration can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingSortitionPoolRewardsBanDurationUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n sortitionPoolRewardsBanDurationChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the DKG seed timeout can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgSeedTimeoutUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(dkgSeedTimeoutChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the DKG result challenge period\\n /// length can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgResultChallengePeriodLengthUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n dkgResultChallengePeriodLengthChangeInitiated\\n );\\n }\\n\\n function getRemainingDkgResultChallengeExtraGasUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(dkgResultChallengeExtraGasChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the DKG result submission timeout\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgResultSubmissionTimeoutUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(dkgResultSubmissionTimeoutChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the wallet owner can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingWalletOwnerUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(walletOwnerChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the wallet owner can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n dkgSubmitterPrecedencePeriodLengthChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the dkg result submission gas can\\n /// be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgResultSubmissionGasUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(dkgResultSubmissionGasChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the dkg result approval gas offset\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingDkgResultApprovalGasOffsetUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(dkgResultApprovalGasOffsetChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the operator inactivity gas offset\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingNotifyOperatorInactivityGasOffsetUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n notifyOperatorInactivityGasOffsetChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until the seed for DKG delivery timeout\\n /// gas offset can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingNotifySeedTimeoutGasOffsetUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(notifySeedTimeoutGasOffsetChangeInitiated);\\n }\\n\\n /// @notice Get the time remaining until the DKG timeout negative gas offset\\n /// can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return\\n getRemainingChangeTime(\\n notifyDkgTimeoutNegativeGasOffsetChangeInitiated\\n );\\n }\\n\\n /// @notice Get the time remaining until reimbursement pool can be updated.\\n /// @return Remaining time in seconds.\\n function getRemainingReimbursementPoolUpdateTime()\\n external\\n view\\n returns (uint256)\\n {\\n return getRemainingChangeTime(reimbursementPoolChangeInitiated);\\n }\\n\\n /// @notice Gets the time remaining until the governable parameter update\\n /// can be committed.\\n /// @param changeTimestamp Timestamp indicating the beginning of the change.\\n /// @return Remaining time in seconds.\\n function getRemainingChangeTime(uint256 changeTimestamp)\\n internal\\n view\\n returns (uint256)\\n {\\n require(changeTimestamp > 0, \\\"Change not initiated\\\");\\n /* solhint-disable-next-line not-rely-on-time */\\n uint256 elapsed = block.timestamp - changeTimestamp;\\n if (elapsed >= governanceDelay) {\\n return 0;\\n }\\n\\n return governanceDelay - elapsed;\\n }\\n}\\n\",\"keccak256\":\"0x3946c372d729b72af292ea63ad63cf286f676fc018067c2638a1bb36eb11d8df\",\"license\":\"GPL-3.0-only\"},\"contracts/api/IWalletOwner.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\ninterface IWalletOwner {\\n /// @notice Callback function executed once a new wallet is created.\\n /// @dev Should be callable only by the Wallet Registry.\\n /// @param walletID Wallet's unique identifier.\\n /// @param publicKeyY Wallet's public key's X coordinate.\\n /// @param publicKeyY Wallet's public key's Y coordinate.\\n function __ecdsaWalletCreatedCallback(\\n bytes32 walletID,\\n bytes32 publicKeyX,\\n bytes32 publicKeyY\\n ) external;\\n\\n /// @notice Callback function executed once a wallet heartbeat failure\\n /// is detected.\\n /// @dev Should be callable only by the Wallet Registry.\\n /// @param walletID Wallet's unique identifier.\\n /// @param publicKeyY Wallet's public key's X coordinate.\\n /// @param publicKeyY Wallet's public key's Y coordinate.\\n function __ecdsaWalletHeartbeatFailedCallback(\\n bytes32 walletID,\\n bytes32 publicKeyX,\\n bytes32 publicKeyY\\n ) external;\\n}\\n\",\"keccak256\":\"0x8d4654269ab20710e8a729c225c2c69edae7f01ddbd5e037ab591df65e32faa8\",\"license\":\"GPL-3.0-only\"},\"contracts/api/IWalletRegistry.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"../libraries/EcdsaDkg.sol\\\";\\n\\ninterface IWalletRegistry {\\n /// @notice Requests a new wallet creation.\\n /// @dev Only the Wallet Owner can call this function.\\n function requestNewWallet() external;\\n\\n /// @notice Closes an existing wallet.\\n /// @param walletID ID of the wallet.\\n /// @dev Only the Wallet Owner can call this function.\\n function closeWallet(bytes32 walletID) external;\\n\\n /// @notice Adds all signing group members of the wallet with the given ID\\n /// to the slashing queue of the staking contract. The notifier will\\n /// receive reward per each group member from the staking contract\\n /// notifiers treasury. The reward is scaled by the\\n /// `rewardMultiplier` provided as a parameter.\\n /// @param amount Amount of tokens to seize from each signing group member\\n /// @param rewardMultiplier Fraction of the staking contract notifiers\\n /// reward the notifier should receive; should be between [0, 100]\\n /// @param notifier Address of the misbehavior notifier\\n /// @param walletID ID of the wallet\\n /// @param walletMembersIDs Identifiers of the wallet signing group members\\n /// @dev Only the Wallet Owner can call this function.\\n /// Requirements:\\n /// - The expression `keccak256(abi.encode(walletMembersIDs))` must\\n /// be exactly the same as the hash stored under `membersIdsHash`\\n /// for the given `walletID`. Those IDs are not directly stored\\n /// in the contract for gas efficiency purposes but they can be\\n /// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`\\n /// events.\\n /// - `rewardMultiplier` must be between [0, 100].\\n /// - This function does revert if staking contract call reverts.\\n /// The calling code needs to handle the potential revert.\\n function seize(\\n uint96 amount,\\n uint256 rewardMultiplier,\\n address notifier,\\n bytes32 walletID,\\n uint32[] calldata walletMembersIDs\\n ) external;\\n\\n /// @notice Gets public key of a wallet with a given wallet ID.\\n /// The public key is returned in an uncompressed format as a 64-byte\\n /// concatenation of X and Y coordinates.\\n /// @param walletID ID of the wallet.\\n /// @return Uncompressed public key of the wallet.\\n function getWalletPublicKey(bytes32 walletID)\\n external\\n view\\n returns (bytes memory);\\n\\n /// @notice Check current wallet creation state.\\n function getWalletCreationState() external view returns (EcdsaDkg.State);\\n\\n /// @notice Checks whether the given operator is a member of the given\\n /// wallet signing group.\\n /// @param walletID ID of the wallet\\n /// @param walletMembersIDs Identifiers of the wallet signing group members\\n /// @param operator Address of the checked operator\\n /// @param walletMemberIndex Position of the operator in the wallet signing\\n /// group members list\\n /// @return True - if the operator is a member of the given wallet signing\\n /// group. False - otherwise.\\n /// @dev Requirements:\\n /// - The `operator` parameter must be an actual sortition pool operator.\\n /// - The expression `keccak256(abi.encode(walletMembersIDs))` must\\n /// be exactly the same as the hash stored under `membersIdsHash`\\n /// for the given `walletID`. Those IDs are not directly stored\\n /// in the contract for gas efficiency purposes but they can be\\n /// read from appropriate `DkgResultSubmitted` and `DkgResultApproved`\\n /// events.\\n /// - The `walletMemberIndex` must be in range [1, walletMembersIDs.length]\\n function isWalletMember(\\n bytes32 walletID,\\n uint32[] calldata walletMembersIDs,\\n address operator,\\n uint256 walletMemberIndex\\n ) external view returns (bool);\\n}\\n\",\"keccak256\":\"0xb97ece7c12601396fed705386a4e3337ee3a4809dca090a5acb62c2949337c68\",\"license\":\"GPL-3.0-only\"},\"contracts/libraries/EcdsaAuthorization.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n//\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@keep-network/sortition-pools/contracts/SortitionPool.sol\\\";\\nimport \\\"@threshold-network/solidity-contracts/contracts/staking/IStaking.sol\\\";\\n\\n/// @notice Library managing the state of stake authorizations for ECDSA\\n/// operator contract and the presence of operators in the sortition\\n/// pool based on the stake authorized for them.\\nlibrary EcdsaAuthorization {\\n struct Parameters {\\n // The minimum authorization required by ECDSA application so that\\n // operator can join the sortition pool and do the work.\\n uint96 minimumAuthorization;\\n // Authorization decrease delay in seconds between the time\\n // authorization decrease is requested and the time the authorization\\n // decrease can be approved. It is always the same value, no matter if\\n // authorization decrease amount is small, significant, or if it is\\n // a decrease to zero.\\n uint64 authorizationDecreaseDelay;\\n // The time period before the authorization decrease delay end,\\n // during which the authorization decrease request can be overwritten.\\n //\\n // When the request is overwritten, the authorization decrease delay is\\n // reset.\\n //\\n // For example, if `authorizationDecraseChangePeriod` is set to 4\\n // days, `authorizationDecreaseDelay` is set to 14 days, and someone\\n // requested authorization decrease, it means they can not\\n // request another decrease for the first 10 days. After 10 days pass,\\n // they can request again and overwrite the previous authorization\\n // decrease request. The delay time will reset for them and they\\n // will have to wait another 10 days to alter it and 14 days to\\n // approve it.\\n //\\n // This value protects against malicious operators who manipulate\\n // their weight by overwriting authorization decrease request, and\\n // lowering or increasing their eligible stake this way.\\n //\\n // If set to a value equal to `authorizationDecreaseDelay, it means\\n // that authorization decrease request can be always overwritten.\\n // If set to zero, it means authorization decrease request can not be\\n // overwritten until the delay end, and one needs to wait for the entire\\n // authorization decrease delay to approve their decrease and request\\n // for another one or to overwrite the pending one.\\n //\\n // (1) authorization decrease requested timestamp\\n // (2) from this moment authorization decrease request can be\\n // overwritten\\n // (3) from this moment authorization decrease request can be\\n // approved, assuming it was NOT overwritten in (2)\\n //\\n // (1) (2) (3)\\n // --x------------------------------x--------------------------x---->\\n // | \\\\________________________/\\n // | authorizationDecreaseChangePeriod\\n // \\\\______________________________________________________/\\n // authorizationDecreaseDelay\\n //\\n uint64 authorizationDecreaseChangePeriod;\\n // This struct doesn't contain `__gap` property as the structure is\\n // stored inside `Data` struct, that already have a gap that can be used\\n // on upgrade.\\n }\\n\\n struct AuthorizationDecrease {\\n uint96 decreasingBy; // amount\\n uint64 decreasingAt; // timestamp\\n }\\n\\n struct Data {\\n Parameters parameters;\\n mapping(address => address) stakingProviderToOperator;\\n mapping(address => address) operatorToStakingProvider;\\n mapping(address => AuthorizationDecrease) pendingDecreases;\\n // Reserved storage space in case we need to add more variables.\\n // See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n // slither-disable-next-line unused-state\\n uint256[46] __gap;\\n }\\n\\n event OperatorRegistered(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n event AuthorizationIncreased(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount\\n );\\n\\n event AuthorizationDecreaseRequested(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount,\\n uint64 decreasingAt\\n );\\n\\n event AuthorizationDecreaseApproved(address indexed stakingProvider);\\n\\n event InvoluntaryAuthorizationDecreaseFailed(\\n address indexed stakingProvider,\\n address indexed operator,\\n uint96 fromAmount,\\n uint96 toAmount\\n );\\n\\n event OperatorJoinedSortitionPool(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n event OperatorStatusUpdated(\\n address indexed stakingProvider,\\n address indexed operator\\n );\\n\\n /// @notice Sets the minimum authorization for ECDSA application. Without\\n /// at least the minimum authorization, staking provider is not\\n /// eligible to join and operate in the network.\\n function setMinimumAuthorization(\\n Data storage self,\\n uint96 _minimumAuthorization\\n ) internal {\\n self.parameters.minimumAuthorization = _minimumAuthorization;\\n }\\n\\n /// @notice Sets the authorization decrease delay. It is the time in seconds\\n /// that needs to pass between the time authorization decrease is\\n /// requested and the time the authorization decrease can be\\n /// approved, no matter the authorization decrease amount.\\n function setAuthorizationDecreaseDelay(\\n Data storage self,\\n uint64 _authorizationDecreaseDelay\\n ) internal {\\n self\\n .parameters\\n .authorizationDecreaseDelay = _authorizationDecreaseDelay;\\n }\\n\\n /// @notice Sets the authorization decrease change period. It is the time\\n /// period before the authorization decrease delay end,\\n /// during which the authorization decrease request can be\\n /// overwritten.\\n function setAuthorizationDecreaseChangePeriod(\\n Data storage self,\\n uint64 _authorizationDecreaseChangePeriod\\n ) internal {\\n self\\n .parameters\\n .authorizationDecreaseChangePeriod = _authorizationDecreaseChangePeriod;\\n }\\n\\n /// @notice Used by staking provider to set operator address that will\\n /// operate ECDSA node. The given staking provider can set operator\\n /// address only one time. The operator address can not be changed\\n /// and must be unique. Reverts if the operator is already set for\\n /// the staking provider or if the operator address is already in\\n /// use. Reverts if there is a pending authorization decrease for\\n /// the staking provider.\\n function registerOperator(Data storage self, address operator) internal {\\n address stakingProvider = msg.sender;\\n\\n require(operator != address(0), \\\"Operator can not be zero address\\\");\\n require(\\n self.stakingProviderToOperator[stakingProvider] == address(0),\\n \\\"Operator already set for the staking provider\\\"\\n );\\n require(\\n self.operatorToStakingProvider[operator] == address(0),\\n \\\"Operator address already in use\\\"\\n );\\n\\n // Authorization request for a staking provider who has not yet\\n // registered their operator can be approved immediately.\\n // We need to make sure that the approval happens before operator\\n // is registered to do not let the operator join the sortition pool\\n // with an unresolved authorization decrease request that can be\\n // approved at any point.\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n require(\\n decrease.decreasingAt == 0,\\n \\\"There is a pending authorization decrease request\\\"\\n );\\n\\n emit OperatorRegistered(stakingProvider, operator);\\n\\n self.stakingProviderToOperator[stakingProvider] = operator;\\n self.operatorToStakingProvider[operator] = stakingProvider;\\n }\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorized stake amount for the given staking provider increased.\\n ///\\n /// Reverts if the authorization amount is below the minimum.\\n ///\\n /// The function is not updating the sortition pool. Sortition pool\\n /// state needs to be updated by the operator with a call to\\n /// `joinSortitionPool` or `updateOperatorStatus`.\\n ///\\n /// @dev Should only be callable by T staking contract.\\n function authorizationIncreased(\\n Data storage self,\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) internal {\\n require(\\n toAmount >= self.parameters.minimumAuthorization,\\n \\\"Authorization below the minimum\\\"\\n );\\n\\n // Note that this function does not require the operator address to be\\n // set for the given staking provider. This allows the stake owner\\n // who is also an authorizer to increase the authorization before the\\n // staking provider sets the operator. This allows delegating stake\\n // and increasing authorization immediately one after another without\\n // having to wait for the staking provider to do their part.\\n\\n address operator = self.stakingProviderToOperator[stakingProvider];\\n emit AuthorizationIncreased(\\n stakingProvider,\\n operator,\\n fromAmount,\\n toAmount\\n );\\n }\\n\\n /// @notice Used by T staking contract to inform the application that the\\n /// authorization decrease for the given staking provider has been\\n /// requested.\\n ///\\n /// Reverts if the amount after deauthorization would be non-zero\\n /// and lower than the minimum authorization.\\n ///\\n /// Reverts if another authorization decrease request is pending for\\n /// the staking provider and not enough time passed since the\\n /// original request (see `authorizationDecreaseChangePeriod`).\\n ///\\n /// If the operator is not known (`registerOperator` was not called)\\n /// it lets to `approveAuthorizationDecrease` immediately. If the\\n /// operator is known (`registerOperator` was called), the operator\\n /// needs to update state of the sortition pool with a call to\\n /// `joinSortitionPool` or `updateOperatorStatus`. After the\\n /// sortition pool state is in sync, authorization decrease delay\\n /// starts.\\n ///\\n /// After authorization decrease delay passes, authorization\\n /// decrease request needs to be approved with a call to\\n /// `approveAuthorizationDecrease` function.\\n ///\\n /// If there is a pending authorization decrease request, it is\\n /// overwritten, but only if enough time passed since the original\\n /// request. Otherwise, the function reverts.\\n ///\\n /// @dev Should only be callable by T staking contract.\\n function authorizationDecreaseRequested(\\n Data storage self,\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) internal {\\n require(\\n toAmount == 0 || toAmount >= self.parameters.minimumAuthorization,\\n \\\"Authorization amount should be 0 or above the minimum\\\"\\n );\\n\\n address operator = self.stakingProviderToOperator[stakingProvider];\\n\\n uint64 decreasingAt;\\n\\n if (operator == address(0)) {\\n // Operator is not known. It means `registerOperator` was not\\n // called yet, and there is no chance the operator could\\n // call `joinSortitionPool`. We can let to approve authorization\\n // decrease immediately because that operator was never in the\\n // sortition pool.\\n\\n // solhint-disable-next-line not-rely-on-time\\n decreasingAt = uint64(block.timestamp);\\n } else {\\n // Operator is known. It means that this operator is or was in\\n // the sortition pool. Before authorization decrease delay starts,\\n // the operator needs to update the state of the sortition pool\\n // with a call to `joinSortitionPool` or `updateOperatorStatus`.\\n // For now, we set `decreasingAt` as \\\"never decreasing\\\" and let\\n // it be updated by `joinSortitionPool` or `updateOperatorStatus`\\n // once we know the sortition pool is in sync.\\n decreasingAt = type(uint64).max;\\n }\\n\\n uint96 decreasingBy = fromAmount - toAmount;\\n\\n AuthorizationDecrease storage decreaseRequest = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n uint64 pendingDecreaseAt = decreaseRequest.decreasingAt;\\n if (pendingDecreaseAt != 0 && pendingDecreaseAt != type(uint64).max) {\\n // If there is already a pending authorization decrease request for\\n // this staking provider and that request has been activated\\n // (sortition pool was updated), require enough time to pass before\\n // it can be overwritten.\\n require(\\n // solhint-disable-next-line not-rely-on-time\\n block.timestamp >=\\n pendingDecreaseAt -\\n self.parameters.authorizationDecreaseChangePeriod,\\n \\\"Not enough time passed since the original request\\\"\\n );\\n }\\n\\n decreaseRequest.decreasingBy = decreasingBy;\\n decreaseRequest.decreasingAt = decreasingAt;\\n\\n emit AuthorizationDecreaseRequested(\\n stakingProvider,\\n operator,\\n fromAmount,\\n toAmount,\\n decreasingAt\\n );\\n }\\n\\n /// @notice Approves the previously registered authorization decrease\\n /// request. Reverts if authorization decrease delay have not passed\\n /// yet or if the authorization decrease was not requested for the\\n /// given staking provider.\\n function approveAuthorizationDecrease(\\n Data storage self,\\n IStaking tokenStaking,\\n address stakingProvider\\n ) internal {\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n require(\\n decrease.decreasingAt > 0,\\n \\\"Authorization decrease not requested\\\"\\n );\\n require(\\n decrease.decreasingAt != type(uint64).max,\\n \\\"Authorization decrease request not activated\\\"\\n );\\n require(\\n // solhint-disable-next-line not-rely-on-time\\n block.timestamp >= decrease.decreasingAt,\\n \\\"Authorization decrease delay not passed\\\"\\n );\\n\\n emit AuthorizationDecreaseApproved(stakingProvider);\\n\\n // slither-disable-next-line unused-return\\n tokenStaking.approveAuthorizationDecrease(stakingProvider);\\n delete self.pendingDecreases[stakingProvider];\\n }\\n\\n /// @notice Used by T staking contract to inform the application the\\n /// authorization has been decreased for the given staking provider\\n /// involuntarily, as a result of slashing.\\n ///\\n /// If the operator is not known (`registerOperator` was not called)\\n /// the function does nothing. The operator was never in a sortition\\n /// pool so there is nothing to update.\\n ///\\n /// If the operator is known, sortition pool is unlocked, and the\\n /// operator is in the sortition pool, the sortition pool state is\\n /// updated. If the sortition pool is locked, update needs to be\\n /// postponed. Every other staker is incentivized to call\\n /// `updateOperatorStatus` for the problematic operator to increase\\n /// their own rewards in the pool.\\n ///\\n /// @dev Should only be callable by T staking contract.\\n function involuntaryAuthorizationDecrease(\\n Data storage self,\\n IStaking tokenStaking,\\n SortitionPool sortitionPool,\\n address stakingProvider,\\n uint96 fromAmount,\\n uint96 toAmount\\n ) internal {\\n address operator = self.stakingProviderToOperator[stakingProvider];\\n\\n if (operator == address(0)) {\\n // Operator is not known. It means `registerOperator` was not\\n // called yet, and there is no chance the operator could\\n // call `joinSortitionPool`. We can just ignore this update because\\n // operator was never in the sortition pool.\\n return;\\n } else {\\n // Operator is known. It means that this operator is or was in the\\n // sortition pool and the sortition pool may need to be updated.\\n //\\n // If the sortition pool is not locked and the operator is in the\\n // sortition pool, we are updating it.\\n //\\n // To keep stakes synchronized between applications when staking\\n // providers are slashed, without the risk of running out of gas,\\n // the staking contract queues up slashings and let users process\\n // the transactions. When an application slashes one or more staking\\n // providers, it adds them to the slashing queue on the staking\\n // contract. A queue entry contains the staking provider\\u2019s address\\n // and the amount they are due to be slashed.\\n //\\n // When there is at least one staking provider in the slashing\\n // queue, any account can submit a transaction processing one or\\n // more staking providers' slashings, and collecting a reward for\\n // doing so. A queued slashing is processed by updating the staking\\n // provider\\u2019s stake to the post-slashing amount, updating authorized\\n // amount for each affected application, and notifying all affected\\n // applications that the staking provider\\u2019s authorized stake has\\n // been reduced due to slashing.\\n //\\n // The entire idea is that the process transaction is expensive\\n // because each application needs to be updated, so the reward for\\n // the processor is hefty and comes from the slashed tokens.\\n // Practically, it means that if the sortition pool is unlocked, and\\n // can be updated, it should be updated because we already paid\\n // someone for updating it.\\n //\\n // If the sortition pool is locked, update needs to wait. Other\\n // sortition pool members are incentivized to call\\n // `updateOperatorStatus` for the problematic operator because they\\n // will increase their rewards this way.\\n if (sortitionPool.isOperatorInPool(operator)) {\\n if (sortitionPool.isLocked()) {\\n emit InvoluntaryAuthorizationDecreaseFailed(\\n stakingProvider,\\n operator,\\n fromAmount,\\n toAmount\\n );\\n } else {\\n updateOperatorStatus(\\n self,\\n tokenStaking,\\n sortitionPool,\\n operator\\n );\\n }\\n }\\n }\\n }\\n\\n /// @notice Lets the operator join the sortition pool. The operator address\\n /// must be known - before calling this function, it has to be\\n /// appointed by the staking provider by calling `registerOperator`.\\n /// Also, the operator must have the minimum authorization required\\n /// by ECDSA. Function reverts if there is no minimum stake\\n /// authorized or if the operator is not known. If there was an\\n /// authorization decrease requested, it is activated by starting\\n /// the authorization decrease delay.\\n function joinSortitionPool(\\n Data storage self,\\n IStaking tokenStaking,\\n SortitionPool sortitionPool\\n ) internal {\\n address operator = msg.sender;\\n\\n address stakingProvider = self.operatorToStakingProvider[operator];\\n require(stakingProvider != address(0), \\\"Unknown operator\\\");\\n\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n uint96 _eligibleStake = eligibleStake(\\n self,\\n tokenStaking,\\n stakingProvider,\\n decrease.decreasingBy\\n );\\n\\n require(_eligibleStake != 0, \\\"Authorization below the minimum\\\");\\n\\n emit OperatorJoinedSortitionPool(stakingProvider, operator);\\n\\n sortitionPool.insertOperator(operator, _eligibleStake);\\n\\n // If there is a pending authorization decrease request, activate it.\\n // At this point, the sortition pool state is up to date so the\\n // authorization decrease delay can start counting.\\n if (decrease.decreasingAt == type(uint64).max) {\\n decrease.decreasingAt =\\n // solhint-disable-next-line not-rely-on-time\\n uint64(block.timestamp) +\\n self.parameters.authorizationDecreaseDelay;\\n }\\n }\\n\\n /// @notice Updates status of the operator in the sortition pool. If there\\n /// was an authorization decrease requested, it is activated by\\n /// starting the authorization decrease delay.\\n /// Function reverts if the operator is not known.\\n function updateOperatorStatus(\\n Data storage self,\\n IStaking tokenStaking,\\n SortitionPool sortitionPool,\\n address operator\\n ) internal {\\n address stakingProvider = self.operatorToStakingProvider[operator];\\n require(stakingProvider != address(0), \\\"Unknown operator\\\");\\n\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n emit OperatorStatusUpdated(stakingProvider, operator);\\n\\n if (sortitionPool.isOperatorInPool(operator)) {\\n uint96 _eligibleStake = eligibleStake(\\n self,\\n tokenStaking,\\n stakingProvider,\\n decrease.decreasingBy\\n );\\n\\n sortitionPool.updateOperatorStatus(operator, _eligibleStake);\\n }\\n\\n // If there is a pending authorization decrease request, activate it.\\n // At this point, the sortition pool state is up to date so the\\n // authorization decrease delay can start counting.\\n if (decrease.decreasingAt == type(uint64).max) {\\n decrease.decreasingAt =\\n // solhint-disable-next-line not-rely-on-time\\n uint64(block.timestamp) +\\n self.parameters.authorizationDecreaseDelay;\\n }\\n }\\n\\n /// @notice Checks if the operator's authorized stake is in sync with\\n /// operator's weight in the sortition pool.\\n /// If the operator is not in the sortition pool and their\\n /// authorized stake is non-zero, function returns false.\\n function isOperatorUpToDate(\\n Data storage self,\\n IStaking tokenStaking,\\n SortitionPool sortitionPool,\\n address operator\\n ) internal view returns (bool) {\\n address stakingProvider = self.operatorToStakingProvider[operator];\\n require(stakingProvider != address(0), \\\"Unknown operator\\\");\\n\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n uint96 _eligibleStake = eligibleStake(\\n self,\\n tokenStaking,\\n stakingProvider,\\n decrease.decreasingBy\\n );\\n\\n if (!sortitionPool.isOperatorInPool(operator)) {\\n return _eligibleStake == 0;\\n } else {\\n return sortitionPool.isOperatorUpToDate(operator, _eligibleStake);\\n }\\n }\\n\\n /// @notice Returns the current value of the staking provider's eligible\\n /// stake. Eligible stake is defined as the currently authorized\\n /// stake minus the pending authorization decrease. Eligible stake\\n /// is what is used for operator's weight in the pool. If the\\n /// authorized stake minus the pending authorization decrease is\\n /// below the minimum authorization, eligible stake is 0.\\n /// @dev This function can be exposed to the public in contrast to the\\n /// second variant accepting `decreasingBy` as a parameter.\\n function eligibleStake(\\n Data storage self,\\n IStaking tokenStaking,\\n address stakingProvider\\n ) internal view returns (uint96) {\\n return\\n eligibleStake(\\n self,\\n tokenStaking,\\n stakingProvider,\\n pendingAuthorizationDecrease(self, stakingProvider)\\n );\\n }\\n\\n /// @notice Returns the current value of the staking provider's eligible\\n /// stake. Eligible stake is defined as the currently authorized\\n /// stake minus the pending authorization decrease. Eligible stake\\n /// is what is used for operator's weight in the pool. If the\\n /// authorized stake minus the pending authorization decrease is\\n /// below the minimum authorization, eligible stake is 0.\\n /// @dev This function is not intended to be exposes to the public.\\n /// `decreasingBy` must be fetched from `pendingDecreases` mapping and\\n /// it is passed as a parameter to optimize gas usage of functions that\\n /// call `eligibleStake` and need to use `AuthorizationDecrease`\\n /// fetched from `pendingDecreases` for some additional logic.\\n function eligibleStake(\\n Data storage self,\\n IStaking tokenStaking,\\n address stakingProvider,\\n uint96 decreasingBy\\n ) internal view returns (uint96) {\\n uint96 authorizedStake = tokenStaking.authorizedStake(\\n stakingProvider,\\n address(this)\\n );\\n\\n uint96 _eligibleStake = authorizedStake > decreasingBy\\n ? authorizedStake - decreasingBy\\n : 0;\\n\\n if (_eligibleStake < self.parameters.minimumAuthorization) {\\n return 0;\\n } else {\\n return _eligibleStake;\\n }\\n }\\n\\n /// @notice Returns the amount of stake that is pending authorization\\n /// decrease for the given staking provider. If no authorization\\n /// decrease has been requested, returns zero.\\n function pendingAuthorizationDecrease(\\n Data storage self,\\n address stakingProvider\\n ) internal view returns (uint96) {\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n return decrease.decreasingBy;\\n }\\n\\n /// @notice Returns the remaining time in seconds that needs to pass before\\n /// the requested authorization decrease can be approved.\\n /// If the sortition pool state was not updated yet by the operator\\n /// after requesting the authorization decrease, returns\\n /// `type(uint64).max`.\\n function remainingAuthorizationDecreaseDelay(\\n Data storage self,\\n address stakingProvider\\n ) internal view returns (uint64) {\\n AuthorizationDecrease storage decrease = self.pendingDecreases[\\n stakingProvider\\n ];\\n\\n if (decrease.decreasingAt == type(uint64).max) {\\n return type(uint64).max;\\n }\\n\\n // solhint-disable-next-line not-rely-on-time\\n uint64 _now = uint64(block.timestamp);\\n return _now > decrease.decreasingAt ? 0 : decrease.decreasingAt - _now;\\n }\\n}\\n\",\"keccak256\":\"0x93d893eeb11c6441a13481c0a4082f78a2acfa33d39de5024ebfb0a2e319bcb6\",\"license\":\"GPL-3.0-only\"},\"contracts/libraries/EcdsaDkg.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n//\\n\\n// Initial version copied from Keep Network Random Beacon:\\n// https://github.com/keep-network/keep-core/blob/5138c7628868dbeed3ae2164f76fccc6c1fbb9e8/solidity/random-beacon/contracts/libraries/DKG.sol\\n//\\n// With the following differences:\\n// - the group size was set to 100,\\n// - offchainDkgTimeout was removed,\\n// - submission eligibility verification is not performed on-chain,\\n// - submission eligibility delay was replaced with a submission timeout,\\n// - seed timeout notification requires seedTimeout period to pass.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol\\\";\\nimport \\\"@keep-network/sortition-pools/contracts/SortitionPool.sol\\\";\\nimport \\\"@keep-network/random-beacon/contracts/libraries/BytesLib.sol\\\";\\nimport \\\"../EcdsaDkgValidator.sol\\\";\\n\\nlibrary EcdsaDkg {\\n using BytesLib for bytes;\\n using ECDSAUpgradeable for bytes32;\\n\\n struct Parameters {\\n // Time in blocks during which a seed is expected to be delivered.\\n // DKG starts only after a seed is delivered. The time the contract\\n // awaits for a seed is not included in the DKG timeout.\\n uint256 seedTimeout;\\n // Time in blocks during which a submitted result can be challenged.\\n uint256 resultChallengePeriodLength;\\n // Extra gas required to be left at the end of the challenge DKG result\\n // transaction.\\n uint256 resultChallengeExtraGas;\\n // Time in blocks during which a result is expected to be submitted.\\n uint256 resultSubmissionTimeout;\\n // Time in blocks during which only the result submitter is allowed to\\n // approve it. Once this period ends and the submitter have not approved\\n // the result, anyone can do it.\\n uint256 submitterPrecedencePeriodLength;\\n // This struct doesn't contain `__gap` property as the structure is\\n // stored inside `Data` struct, that already have a gap that can be used\\n // on upgrade.\\n }\\n\\n struct Data {\\n // Address of the Sortition Pool contract.\\n SortitionPool sortitionPool;\\n // Address of the EcdsaDkgValidator contract.\\n EcdsaDkgValidator dkgValidator;\\n // DKG parameters. The parameters should persist between DKG executions.\\n // They should be updated with dedicated set functions only when DKG is not\\n // in progress.\\n Parameters parameters;\\n // Time in block at which DKG state was locked.\\n uint256 stateLockBlock;\\n // Time in blocks at which DKG started.\\n uint256 startBlock;\\n // Seed used to start DKG.\\n uint256 seed;\\n // Time in blocks that should be added to result submission eligibility\\n // delay calculation. It is used in case of a challenge to adjust\\n // DKG timeout calculation.\\n uint256 resultSubmissionStartBlockOffset;\\n // Hash of submitted DKG result.\\n bytes32 submittedResultHash;\\n // Block number from the moment of the DKG result submission.\\n uint256 submittedResultBlock;\\n // Reserved storage space in case we need to add more variables.\\n // See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n // slither-disable-next-line unused-state\\n uint256[38] __gap;\\n }\\n\\n /// @notice DKG result.\\n struct Result {\\n // Claimed submitter candidate group member index.\\n // Must be in range [1, groupSize].\\n uint256 submitterMemberIndex;\\n // Generated candidate group public key\\n bytes groupPubKey;\\n // Array of misbehaved members indices (disqualified or inactive).\\n // Indices must be in range [1, groupSize], unique, and sorted in ascending\\n // order.\\n uint8[] misbehavedMembersIndices;\\n // Concatenation of signatures from members supporting the result.\\n // The message to be signed by each member is keccak256 hash of the\\n // calculated group public key, misbehaved members indices and DKG\\n // start block. The calculated hash should be prefixed with prefixed with\\n // `\\\\x19Ethereum signed message:\\\\n` before signing, so the message to\\n // sign is:\\n // `\\\\x19Ethereum signed message:\\\\n${keccak256(\\n // groupPubKey, misbehavedMembersIndices, dkgStartBlock\\n // )}`\\n bytes signatures;\\n // Indices of members corresponding to each signature. Indices must be\\n // be in range [1, groupSize], unique, and sorted in ascending order.\\n uint256[] signingMembersIndices;\\n // Identifiers of candidate group members as outputted by the group\\n // selection protocol.\\n uint32[] members;\\n // Keccak256 hash of group members identifiers that actively took part\\n // in DKG (excluding IA/DQ members).\\n bytes32 membersHash;\\n // This struct doesn't contain `__gap` property as the structure is not\\n // stored, it is used as a function's calldata argument.\\n }\\n\\n /// @notice States for phases of group creation. The states doesn't include\\n /// timeouts which should be tracked and notified individually.\\n enum State {\\n // Group creation is not in progress. It is a state set after group creation\\n // completion either by timeout or by a result approval.\\n IDLE,\\n // Group creation is awaiting the seed and sortition pool is locked.\\n AWAITING_SEED,\\n // DKG protocol execution is in progress. A result is being calculated\\n // by the clients in this state and the contract awaits a result submission.\\n // This is a state to which group creation returns in case of a result\\n // challenge notification.\\n AWAITING_RESULT,\\n // DKG result was submitted and awaits an approval or a challenge. If a result\\n // gets challenge the state returns to `AWAITING_RESULT`. If a result gets\\n // approval the state changes to `IDLE`.\\n CHALLENGE\\n }\\n\\n /// @dev Size of a group in ECDSA wallet.\\n uint256 public constant groupSize = 100;\\n\\n event DkgStarted(uint256 indexed seed);\\n\\n // To recreate the members that actively took part in dkg, the selected members\\n // array should be filtered out from misbehavedMembersIndices.\\n event DkgResultSubmitted(\\n bytes32 indexed resultHash,\\n uint256 indexed seed,\\n Result result\\n );\\n\\n event DkgTimedOut();\\n\\n event DkgResultApproved(\\n bytes32 indexed resultHash,\\n address indexed approver\\n );\\n\\n event DkgResultChallenged(\\n bytes32 indexed resultHash,\\n address indexed challenger,\\n string reason\\n );\\n\\n event DkgStateLocked();\\n\\n event DkgSeedTimedOut();\\n\\n /// @notice Initializes SortitionPool and EcdsaDkgValidator addresses.\\n /// Can be performed only once.\\n /// @param _sortitionPool Sortition Pool reference\\n /// @param _dkgValidator EcdsaDkgValidator reference\\n function init(\\n Data storage self,\\n SortitionPool _sortitionPool,\\n EcdsaDkgValidator _dkgValidator\\n ) internal {\\n require(\\n address(self.sortitionPool) == address(0),\\n \\\"Sortition Pool address already set\\\"\\n );\\n\\n require(\\n address(self.dkgValidator) == address(0),\\n \\\"DKG Validator address already set\\\"\\n );\\n\\n self.sortitionPool = _sortitionPool;\\n self.dkgValidator = _dkgValidator;\\n }\\n\\n /// @notice Determines the current state of group creation. It doesn't take\\n /// timeouts into consideration. The timeouts should be tracked and\\n /// notified separately.\\n function currentState(Data storage self)\\n internal\\n view\\n returns (State state)\\n {\\n state = State.IDLE;\\n\\n if (self.sortitionPool.isLocked()) {\\n state = State.AWAITING_SEED;\\n\\n if (self.startBlock > 0) {\\n state = State.AWAITING_RESULT;\\n\\n if (self.submittedResultBlock > 0) {\\n state = State.CHALLENGE;\\n }\\n }\\n }\\n }\\n\\n /// @notice Locks the sortition pool and starts awaiting for the\\n /// group creation seed.\\n function lockState(Data storage self) internal {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n emit DkgStateLocked();\\n\\n self.sortitionPool.lock();\\n\\n self.stateLockBlock = block.number;\\n }\\n\\n function start(Data storage self, uint256 seed) internal {\\n require(\\n currentState(self) == State.AWAITING_SEED,\\n \\\"Current state is not AWAITING_SEED\\\"\\n );\\n\\n emit DkgStarted(seed);\\n\\n self.startBlock = block.number;\\n self.seed = seed;\\n }\\n\\n /// @notice Allows to submit a DKG result. The submitted result does not go\\n /// through a validation and before it gets accepted, it needs to\\n /// wait through the challenge period during which everyone has\\n /// a chance to challenge the result as invalid one. Submitter of\\n /// the result needs to be in the sortition pool and if the result\\n /// gets challenged, the submitter will get slashed.\\n function submitResult(Data storage self, Result calldata result) internal {\\n require(\\n currentState(self) == State.AWAITING_RESULT,\\n \\\"Current state is not AWAITING_RESULT\\\"\\n );\\n require(!hasDkgTimedOut(self), \\\"DKG timeout already passed\\\");\\n\\n SortitionPool sortitionPool = self.sortitionPool;\\n\\n // Submitter must be an operator in the sortition pool.\\n // Declared submitter's member index in the DKG result needs to match\\n // the address calling this function.\\n require(\\n sortitionPool.isOperatorInPool(msg.sender),\\n \\\"Submitter not in the sortition pool\\\"\\n );\\n require(\\n sortitionPool.getIDOperator(\\n result.members[result.submitterMemberIndex - 1]\\n ) == msg.sender,\\n \\\"Unexpected submitter index\\\"\\n );\\n\\n self.submittedResultHash = keccak256(abi.encode(result));\\n self.submittedResultBlock = block.number;\\n\\n emit DkgResultSubmitted(self.submittedResultHash, self.seed, result);\\n }\\n\\n /// @notice Checks if awaiting seed timed out.\\n /// @return True if awaiting seed timed out, false otherwise.\\n function hasSeedTimedOut(Data storage self) internal view returns (bool) {\\n return\\n currentState(self) == State.AWAITING_SEED &&\\n block.number > (self.stateLockBlock + self.parameters.seedTimeout);\\n }\\n\\n /// @notice Checks if DKG timed out. The DKG timeout period includes time required\\n /// for off-chain protocol execution and time for the result publication.\\n /// After this time a result cannot be submitted and DKG can be notified\\n /// about the timeout. DKG period is adjusted by result submission\\n /// offset that include blocks that were mined while invalid result\\n /// has been registered until it got challenged.\\n /// @return True if DKG timed out, false otherwise.\\n function hasDkgTimedOut(Data storage self) internal view returns (bool) {\\n return\\n currentState(self) == State.AWAITING_RESULT &&\\n block.number >\\n (self.startBlock +\\n self.resultSubmissionStartBlockOffset +\\n self.parameters.resultSubmissionTimeout);\\n }\\n\\n /// @notice Notifies about the seed was not delivered and restores the\\n /// initial DKG state (IDLE).\\n function notifySeedTimeout(Data storage self) internal {\\n require(hasSeedTimedOut(self), \\\"Awaiting seed has not timed out\\\");\\n\\n emit DkgSeedTimedOut();\\n\\n complete(self);\\n }\\n\\n /// @notice Notifies about DKG timeout.\\n function notifyDkgTimeout(Data storage self) internal {\\n require(hasDkgTimedOut(self), \\\"DKG has not timed out\\\");\\n\\n emit DkgTimedOut();\\n\\n complete(self);\\n }\\n\\n /// @notice Approves DKG result. Can be called when the challenge period for\\n /// the submitted result is finished. Considers the submitted result\\n /// as valid. For the first `submitterPrecedencePeriodLength`\\n /// blocks after the end of the challenge period can be called only\\n /// by the DKG result submitter. After that time, can be called by\\n /// anyone.\\n /// @dev Can be called after a challenge period for the submitted result.\\n /// @param result Result to approve. Must match the submitted result stored\\n /// during `submitResult`.\\n /// @return misbehavedMembers Identifiers of members who misbehaved during DKG.\\n function approveResult(Data storage self, Result calldata result)\\n internal\\n returns (uint32[] memory misbehavedMembers)\\n {\\n require(\\n currentState(self) == State.CHALLENGE,\\n \\\"Current state is not CHALLENGE\\\"\\n );\\n\\n uint256 challengePeriodEnd = self.submittedResultBlock +\\n self.parameters.resultChallengePeriodLength;\\n\\n require(\\n block.number > challengePeriodEnd,\\n \\\"Challenge period has not passed yet\\\"\\n );\\n\\n require(\\n keccak256(abi.encode(result)) == self.submittedResultHash,\\n \\\"Result under approval is different than the submitted one\\\"\\n );\\n\\n // Extract submitter member address. Submitter member index is in\\n // range [1, groupSize] so we need to -1 when fetching identifier from members\\n // array.\\n address submitterMember = self.sortitionPool.getIDOperator(\\n result.members[result.submitterMemberIndex - 1]\\n );\\n\\n require(\\n msg.sender == submitterMember ||\\n block.number >\\n challengePeriodEnd +\\n self.parameters.submitterPrecedencePeriodLength,\\n \\\"Only the DKG result submitter can approve the result at this moment\\\"\\n );\\n\\n // Extract misbehaved members identifiers. Misbehaved members indices\\n // are in range [1, groupSize], so we need to -1 when fetching identifiers from\\n // members array.\\n misbehavedMembers = new uint32[](\\n result.misbehavedMembersIndices.length\\n );\\n for (uint256 i = 0; i < result.misbehavedMembersIndices.length; i++) {\\n misbehavedMembers[i] = result.members[\\n result.misbehavedMembersIndices[i] - 1\\n ];\\n }\\n\\n emit DkgResultApproved(self.submittedResultHash, msg.sender);\\n\\n return misbehavedMembers;\\n }\\n\\n /// @notice Challenges DKG result. If the submitted result is proved to be\\n /// invalid it reverts the DKG back to the result submission phase.\\n /// @dev Can be called during a challenge period for the submitted result.\\n /// @param result Result to challenge. Must match the submitted result\\n /// stored during `submitResult`.\\n /// @return maliciousResultHash Hash of the malicious result.\\n /// @return maliciousSubmitter Identifier of the malicious submitter.\\n function challengeResult(Data storage self, Result calldata result)\\n internal\\n returns (bytes32 maliciousResultHash, uint32 maliciousSubmitter)\\n {\\n require(\\n currentState(self) == State.CHALLENGE,\\n \\\"Current state is not CHALLENGE\\\"\\n );\\n\\n require(\\n block.number <=\\n self.submittedResultBlock +\\n self.parameters.resultChallengePeriodLength,\\n \\\"Challenge period has already passed\\\"\\n );\\n\\n require(\\n keccak256(abi.encode(result)) == self.submittedResultHash,\\n \\\"Result under challenge is different than the submitted one\\\"\\n );\\n\\n // https://github.com/crytic/slither/issues/982\\n // slither-disable-next-line unused-return\\n try\\n self.dkgValidator.validate(result, self.seed, self.startBlock)\\n returns (\\n // slither-disable-next-line uninitialized-local,variable-scope\\n bool isValid,\\n // slither-disable-next-line uninitialized-local,variable-scope\\n string memory errorMsg\\n ) {\\n if (isValid) {\\n revert(\\\"unjustified challenge\\\");\\n }\\n\\n emit DkgResultChallenged(\\n self.submittedResultHash,\\n msg.sender,\\n errorMsg\\n );\\n } catch {\\n // if the validation reverted we consider the DKG result as invalid\\n emit DkgResultChallenged(\\n self.submittedResultHash,\\n msg.sender,\\n \\\"validation reverted\\\"\\n );\\n }\\n\\n // Consider result hash as malicious.\\n maliciousResultHash = self.submittedResultHash;\\n maliciousSubmitter = result.members[result.submitterMemberIndex - 1];\\n\\n // Adjust DKG result submission block start, so submission stage starts\\n // from the beginning.\\n self.resultSubmissionStartBlockOffset = block.number - self.startBlock;\\n\\n submittedResultCleanup(self);\\n\\n return (maliciousResultHash, maliciousSubmitter);\\n }\\n\\n /// @notice Due to EIP150, 1/64 of the gas is not forwarded to the call, and\\n /// will be kept to execute the remaining operations in the function\\n /// after the call inside the try-catch.\\n ///\\n /// To ensure there is no way for the caller to manipulate gas limit\\n /// in such a way that the call inside try-catch fails with out-of-gas\\n /// and the rest of the function is executed with the remaining\\n /// 1/64 of gas, we require an extra gas amount to be left at the\\n /// end of the call to the function challenging DKG result and\\n /// wrapping the call to EcdsaDkgValidator and TokenStaking\\n /// contracts inside a try-catch.\\n function requireChallengeExtraGas(Data storage self) internal view {\\n require(\\n gasleft() >= self.parameters.resultChallengeExtraGas,\\n \\\"Not enough extra gas left\\\"\\n );\\n }\\n\\n /// @notice Checks if DKG result is valid for the current DKG.\\n /// @param result DKG result.\\n /// @return True if the result is valid. If the result is invalid it returns\\n /// false and an error message.\\n function isResultValid(Data storage self, Result calldata result)\\n internal\\n view\\n returns (bool, string memory)\\n {\\n require(self.startBlock > 0, \\\"DKG has not been started\\\");\\n\\n return self.dkgValidator.validate(result, self.seed, self.startBlock);\\n }\\n\\n /// @notice Set setSeedTimeout parameter.\\n function setSeedTimeout(Data storage self, uint256 newSeedTimeout)\\n internal\\n {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n require(newSeedTimeout > 0, \\\"New value should be greater than zero\\\");\\n\\n self.parameters.seedTimeout = newSeedTimeout;\\n }\\n\\n /// @notice Set resultChallengePeriodLength parameter.\\n function setResultChallengePeriodLength(\\n Data storage self,\\n uint256 newResultChallengePeriodLength\\n ) internal {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n require(\\n newResultChallengePeriodLength > 0,\\n \\\"New value should be greater than zero\\\"\\n );\\n\\n self\\n .parameters\\n .resultChallengePeriodLength = newResultChallengePeriodLength;\\n }\\n\\n /// @notice Set resultChallengeExtraGas parameter.\\n function setResultChallengeExtraGas(\\n Data storage self,\\n uint256 newResultChallengeExtraGas\\n ) internal {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n self.parameters.resultChallengeExtraGas = newResultChallengeExtraGas;\\n }\\n\\n /// @notice Set resultSubmissionTimeout parameter.\\n function setResultSubmissionTimeout(\\n Data storage self,\\n uint256 newResultSubmissionTimeout\\n ) internal {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n require(\\n newResultSubmissionTimeout > 0,\\n \\\"New value should be greater than zero\\\"\\n );\\n\\n self.parameters.resultSubmissionTimeout = newResultSubmissionTimeout;\\n }\\n\\n /// @notice Set submitterPrecedencePeriodLength parameter.\\n function setSubmitterPrecedencePeriodLength(\\n Data storage self,\\n uint256 newSubmitterPrecedencePeriodLength\\n ) internal {\\n require(currentState(self) == State.IDLE, \\\"Current state is not IDLE\\\");\\n\\n require(\\n newSubmitterPrecedencePeriodLength <\\n self.parameters.resultSubmissionTimeout,\\n \\\"New value should be less than result submission period length\\\"\\n );\\n\\n self\\n .parameters\\n .submitterPrecedencePeriodLength = newSubmitterPrecedencePeriodLength;\\n }\\n\\n /// @notice Completes DKG by cleaning up state.\\n /// @dev Should be called after DKG times out or a result is approved.\\n function complete(Data storage self) internal {\\n delete self.startBlock;\\n delete self.seed;\\n delete self.resultSubmissionStartBlockOffset;\\n submittedResultCleanup(self);\\n self.sortitionPool.unlock();\\n }\\n\\n /// @notice Cleans up submitted result state either after DKG completion\\n /// (as part of `complete` method) or after justified challenge.\\n function submittedResultCleanup(Data storage self) private {\\n delete self.submittedResultHash;\\n delete self.submittedResultBlock;\\n }\\n}\\n\",\"keccak256\":\"0xd6c442e1db2dc95730443fb6496d47889a69bed2fbace466b27f9727484c25ec\",\"license\":\"GPL-3.0-only\"},\"contracts/libraries/EcdsaInactivity.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nimport \\\"@openzeppelin/contracts-upgradeable/utils/cryptography/ECDSAUpgradeable.sol\\\";\\n\\nimport \\\"@keep-network/random-beacon/contracts/libraries/BytesLib.sol\\\";\\nimport \\\"@keep-network/sortition-pools/contracts/SortitionPool.sol\\\";\\n\\nimport \\\"./Wallets.sol\\\";\\n\\nlibrary EcdsaInactivity {\\n using BytesLib for bytes;\\n using ECDSAUpgradeable for bytes32;\\n\\n struct Claim {\\n // ID of the wallet whose signing group is raising the inactivity claim.\\n bytes32 walletID;\\n // Indices of group members accused of being inactive. Indices must be in\\n // range [1, groupMembers.length], unique, and sorted in ascending order.\\n uint256[] inactiveMembersIndices;\\n // Indicates if inactivity claim is a wallet-wide heartbeat failure.\\n // If wallet failed a heartbeat, this is signalled to the wallet owner\\n // who may decide to move responsibilities to another wallet\\n // given that the wallet who failed the heartbeat is at risk of not\\n // being able to sign messages soon.\\n bool heartbeatFailed;\\n // Concatenation of signatures from members supporting the claim.\\n // The message to be signed by each member is keccak256 hash of the\\n // concatenation of the chain ID, inactivity claim nonce for the given\\n // wallet, wallet public key, inactive members indices, and boolean flag\\n // indicating if this is a wallet-wide heartbeat failure. The calculated\\n // hash should be prefixed with `\\\\x19Ethereum signed message:\\\\n` before\\n // signing, so the message to sign is:\\n // `\\\\x19Ethereum signed message:\\\\n${keccak256(\\n // chainID | nonce | walletPubKey | inactiveMembersIndices | heartbeatFailed\\n // )}`\\n bytes signatures;\\n // Indices of members corresponding to each signature. Indices must be\\n // in range [1, groupMembers.length], unique, and sorted in ascending\\n // order.\\n uint256[] signingMembersIndices;\\n // This struct doesn't contain `__gap` property as the structure is not\\n // stored, it is used as a function's calldata argument.\\n }\\n\\n /// @notice The minimum number of wallet signing group members needed to\\n /// interact according to the protocol to produce a valid inactivity\\n /// claim.\\n uint256 public constant groupThreshold = 51;\\n\\n /// @notice Size in bytes of a single signature produced by member\\n /// supporting the inactivity claim.\\n uint256 public constant signatureByteSize = 65;\\n\\n /// @notice Verifies the inactivity claim according to the rules defined in\\n /// `Claim` struct documentation. Reverts if verification fails.\\n /// @dev Wallet signing group members hash is validated upstream in\\n /// `WalletRegistry.notifyOperatorInactivity()`\\n /// @param sortitionPool Sortition pool reference\\n /// @param claim Inactivity claim\\n /// @param walletPubKey Public key of the wallet\\n /// @param nonce Current inactivity nonce for wallet used in the claim\\n /// @param groupMembers Identifiers of group members\\n /// @return inactiveMembers Identifiers of members who are inactive\\n function verifyClaim(\\n SortitionPool sortitionPool,\\n Claim calldata claim,\\n bytes memory walletPubKey,\\n uint256 nonce,\\n uint32[] calldata groupMembers\\n ) external view returns (uint32[] memory inactiveMembers) {\\n // Validate inactive members indices. Maximum indices count is equal to\\n // the group size and is not limited deliberately to leave a theoretical\\n // possibility to accuse more members than `groupSize - groupThreshold`.\\n validateMembersIndices(\\n claim.inactiveMembersIndices,\\n groupMembers.length\\n );\\n\\n // Validate signatures array is properly formed and number of\\n // signatures and signers is correct.\\n uint256 signaturesCount = claim.signatures.length / signatureByteSize;\\n require(claim.signatures.length != 0, \\\"No signatures provided\\\");\\n require(\\n claim.signatures.length % signatureByteSize == 0,\\n \\\"Malformed signatures array\\\"\\n );\\n require(\\n signaturesCount == claim.signingMembersIndices.length,\\n \\\"Unexpected signatures count\\\"\\n );\\n require(signaturesCount >= groupThreshold, \\\"Too few signatures\\\");\\n require(signaturesCount <= groupMembers.length, \\\"Too many signatures\\\");\\n\\n // Validate signing members indices. Note that `signingMembersIndices`\\n // were already partially validated during `signatures` parameter\\n // validation.\\n validateMembersIndices(\\n claim.signingMembersIndices,\\n groupMembers.length\\n );\\n\\n bytes32 signedMessageHash = keccak256(\\n abi.encode(\\n block.chainid,\\n nonce,\\n walletPubKey,\\n claim.inactiveMembersIndices,\\n claim.heartbeatFailed\\n )\\n ).toEthSignedMessageHash();\\n\\n address[] memory groupMembersAddresses = sortitionPool.getIDOperators(\\n groupMembers\\n );\\n\\n // Verify each signature.\\n bytes memory checkedSignature;\\n bool senderSignatureExists = false;\\n for (uint256 i = 0; i < signaturesCount; i++) {\\n uint256 memberIndex = claim.signingMembersIndices[i];\\n checkedSignature = claim.signatures.slice(\\n signatureByteSize * i,\\n signatureByteSize\\n );\\n address recoveredAddress = signedMessageHash.recover(\\n checkedSignature\\n );\\n\\n require(\\n groupMembersAddresses[memberIndex - 1] == recoveredAddress,\\n \\\"Invalid signature\\\"\\n );\\n\\n if (!senderSignatureExists && msg.sender == recoveredAddress) {\\n senderSignatureExists = true;\\n }\\n }\\n\\n require(senderSignatureExists, \\\"Sender must be claim signer\\\");\\n\\n inactiveMembers = new uint32[](claim.inactiveMembersIndices.length);\\n for (uint256 i = 0; i < claim.inactiveMembersIndices.length; i++) {\\n uint256 memberIndex = claim.inactiveMembersIndices[i];\\n inactiveMembers[i] = groupMembers[memberIndex - 1];\\n }\\n\\n return inactiveMembers;\\n }\\n\\n /// @notice Validates members indices array. Array is considered valid\\n /// if its size and each single index are in [1, groupSize] range,\\n /// indexes are unique, and sorted in an ascending order.\\n /// Reverts if validation fails.\\n /// @param indices Array to validate.\\n /// @param groupSize Group size used as reference.\\n function validateMembersIndices(\\n uint256[] calldata indices,\\n uint256 groupSize\\n ) internal pure {\\n require(\\n indices.length > 0 && indices.length <= groupSize,\\n \\\"Corrupted members indices\\\"\\n );\\n\\n // Check if first and last indices are in range [1, groupSize].\\n // This check combined with the loop below makes sure every single\\n // index is in the correct range.\\n require(\\n indices[0] > 0 && indices[indices.length - 1] <= groupSize,\\n \\\"Corrupted members indices\\\"\\n );\\n\\n for (uint256 i = 0; i < indices.length - 1; i++) {\\n // Check whether given index is smaller than the next one. This\\n // way we are sure indexes are ordered in the ascending order\\n // and there are no duplicates.\\n require(indices[i] < indices[i + 1], \\\"Corrupted members indices\\\");\\n }\\n }\\n}\\n\",\"keccak256\":\"0x5ce38a16c97fbf1320e507667bc3d324e863e17ce81dc81d7fd3674e5a221ad5\",\"license\":\"GPL-3.0-only\"},\"contracts/libraries/Wallets.sol\":{\"content\":\"// SPDX-License-Identifier: GPL-3.0-only\\n//\\n// \\u2593\\u2593\\u258c \\u2593\\u2593 \\u2590\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584\\u2584\\u2584\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\u2580\\u2580\\u2580 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2580\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2580\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2584 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u258c\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2588\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n// \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2590\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593 \\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\u2593\\n//\\n// Trust math, not hardware.\\n\\npragma solidity 0.8.17;\\n\\nlibrary Wallets {\\n struct Wallet {\\n // Keccak256 hash of group members identifiers array. Group members do not\\n // include operators selected by the sortition pool that misbehaved during DKG.\\n bytes32 membersIdsHash;\\n // Uncompressed ECDSA public key stored as X and Y coordinates (32 bytes each).\\n bytes32 publicKeyX;\\n bytes32 publicKeyY;\\n // This struct doesn't contain `__gap` property as the structure is stored\\n // in a mapping, mappings store values in different slots and they are\\n // not contiguous with other values.\\n }\\n\\n struct Data {\\n // Mapping of keccak256 hashes of wallet public keys to wallet details.\\n // Hash of public key is considered an unique wallet identifier.\\n mapping(bytes32 => Wallet) registry;\\n // Reserved storage space in case we need to add more variables.\\n // See https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps\\n // slither-disable-next-line unused-state\\n uint256[49] __gap;\\n }\\n\\n /// @notice Performs preliminary validation of a new group public key.\\n /// The group public key must be unique and have 64 bytes in length.\\n /// If the validation fails, the function reverts. This function\\n /// must be called first for a public key of a wallet added with\\n /// `addWallet` function.\\n /// @param publicKey Uncompressed public key of a new wallet.\\n function validatePublicKey(Data storage self, bytes calldata publicKey)\\n internal\\n view\\n {\\n require(publicKey.length == 64, \\\"Invalid length of the public key\\\");\\n\\n bytes32 walletID = keccak256(publicKey);\\n require(\\n self.registry[walletID].publicKeyX == bytes32(0),\\n \\\"Wallet with the given public key already exists\\\"\\n );\\n\\n bytes32 publicKeyX = bytes32(publicKey[:32]);\\n require(publicKeyX != bytes32(0), \\\"Wallet public key must be non-zero\\\");\\n }\\n\\n /// @notice Registers a new wallet. This function does not validate\\n /// parameters. The code calling this function must call\\n /// `validatePublicKey` first.\\n /// @dev Uses a public key hash as a unique identifier of a wallet.\\n /// @param membersIdsHash Keccak256 hash of group members identifiers array\\n /// @param publicKey Uncompressed public key\\n /// @return walletID Wallet's ID\\n /// @return publicKeyX Wallet's public key's X coordinate\\n /// @return publicKeyY Wallet's public key's Y coordinate\\n function addWallet(\\n Data storage self,\\n bytes32 membersIdsHash,\\n bytes calldata publicKey\\n )\\n internal\\n returns (\\n bytes32 walletID,\\n bytes32 publicKeyX,\\n bytes32 publicKeyY\\n )\\n {\\n walletID = keccak256(publicKey);\\n\\n publicKeyX = bytes32(publicKey[:32]);\\n publicKeyY = bytes32(publicKey[32:]);\\n\\n self.registry[walletID].membersIdsHash = membersIdsHash;\\n self.registry[walletID].publicKeyX = publicKeyX;\\n self.registry[walletID].publicKeyY = publicKeyY;\\n }\\n\\n /// @notice Deletes wallet with the given ID from the registry. Reverts\\n /// if wallet with the given ID has not been registered or if it\\n /// has already been closed.\\n function deleteWallet(Data storage self, bytes32 walletID) internal {\\n require(\\n isWalletRegistered(self, walletID),\\n \\\"Wallet with the given ID has not been registered\\\"\\n );\\n\\n delete self.registry[walletID];\\n }\\n\\n /// @notice Checks if a wallet with the given ID is registered.\\n /// @param walletID Wallet's ID\\n /// @return True if a wallet is registered, false otherwise\\n function isWalletRegistered(Data storage self, bytes32 walletID)\\n internal\\n view\\n returns (bool)\\n {\\n return self.registry[walletID].publicKeyX != bytes32(0);\\n }\\n\\n /// @notice Returns Keccak256 hash of the wallet signing group members\\n /// identifiers array. Group members do not include operators\\n /// selected by the sortition pool that misbehaved during DKG.\\n /// Reverts if wallet with the given ID is not registered.\\n /// @param walletID ID of the wallet\\n /// @return Wallet signing group members hash\\n function getWalletMembersIdsHash(Data storage self, bytes32 walletID)\\n internal\\n view\\n returns (bytes32)\\n {\\n require(\\n isWalletRegistered(self, walletID),\\n \\\"Wallet with the given ID has not been registered\\\"\\n );\\n\\n return self.registry[walletID].membersIdsHash;\\n }\\n\\n /// @notice Gets public key of a wallet with the given wallet ID.\\n /// The public key is returned as X and Y coordinates.\\n /// Reverts if wallet with the given ID is not registered.\\n /// @param walletID ID of the wallet\\n /// @return x Public key X coordinate\\n /// @return y Public key Y coordinate\\n function getWalletPublicKeyCoordinates(Data storage self, bytes32 walletID)\\n internal\\n view\\n returns (bytes32 x, bytes32 y)\\n {\\n require(\\n isWalletRegistered(self, walletID),\\n \\\"Wallet with the given ID has not been registered\\\"\\n );\\n\\n Wallet storage wallet = self.registry[walletID];\\n\\n return (wallet.publicKeyX, wallet.publicKeyY);\\n }\\n\\n /// @notice Gets public key of a wallet with the given wallet ID.\\n /// The public key is returned in an uncompressed format as a 64-byte\\n /// concatenation of X and Y coordinates.\\n /// Reverts if wallet with the given ID is not registered.\\n /// @param walletID ID of the wallet\\n /// @return Uncompressed public key of the wallet\\n function getWalletPublicKey(Data storage self, bytes32 walletID)\\n internal\\n view\\n returns (bytes memory)\\n {\\n (bytes32 x, bytes32 y) = getWalletPublicKeyCoordinates(self, walletID);\\n return bytes.concat(x, y);\\n }\\n}\\n\",\"keccak256\":\"0x807b0de1b072dfe26b856771b3c77a2f5ae1e60c7cff6686383f88a4355748e4\",\"license\":\"GPL-3.0-only\"}},\"version\":1}",
|
|
1995
|
+
"bytecode": "0x60a06040523480156200001157600080fd5b506040516200480d3803806200480d8339810160408190526200003491620000a6565b6200003f3362000056565b6001600160a01b03909116608052602955620000e2565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60008060408385031215620000ba57600080fd5b82516001600160a01b0381168114620000d257600080fd5b6020939093015192949293505050565b60805161459c6200027160003960008181610a7e01528181610c7d01528181610d3d01528181611012015281816110d101528181611252015281816114f101528181611520015281816115a90152818161162f015281816116b50152818161193501528181611a6d01528181611c2301528181611e1701528181611e4601528181611ecc01528181611f5501528181611fdb015281816121970152818161226101528181612386015281816125470152818161260f015281816127c60152818161286a0152818161296f015281816129a101528181612a2701528181612aad01528181612b3301528181612ce501528181612da501528181612ed301528181612f76015281816130c5015281816130f40152818161317a0152818161320001528181613286015281816134b00152818161357b015281816136a00152818161381f015281816138e801528181613a4d01528181613ba401528181613c6c01528181613d3501528181613e4201528181613e7101528181613ef701528181613f7d0152614006015261459c6000f3fe608060405234801561001057600080fd5b50600436106106745760003560e01c80637b81ef5211610351578063b1fae48b116101c3578063d4c44bf51161010f578063e93d9662116100ad578063f293fca811610087578063f293fca814610ba0578063f2fde38b14610ba9578063fddfe99c14610bbc578063fe3bb37014610bc557600080fd5b8063e93d966214610b88578063ec9d1d9614610b90578063f0bb6ce814610b9857600080fd5b8063de0ce4c9116100e9578063de0ce4c914610b5c578063df5ee8f614610b64578063e166e76714610b6d578063e1a7bf7714610b7557600080fd5b8063d4c44bf514610b37578063d5d1a9f514610b40578063dbc439c714610b5357600080fd5b8063c4eb46471161017c578063cd38c13711610156578063cd38c13714610b00578063cdfaeb9814610b13578063ce123d2814610b1c578063d24521aa14610b2f57600080fd5b8063c4eb464714610ae6578063c599447914610aef578063c97e8feb14610af857600080fd5b8063b1fae48b14610aa8578063b4f574bc14610ab1578063b766530814610ac4578063bba3293914610acc578063bf72174914610ad5578063c1b2ba9714610add57600080fd5b806392e473851161029d5780639f5e05661161023b578063a5b9ab4d11610215578063a5b9ab4d14610a5d578063a6d025f114610a66578063ab7aa6ad14610a79578063ae1a332514610aa057600080fd5b80639f5e056614610a45578063a01bc82814610a4d578063a37b138c14610a5557600080fd5b80639949d70e116102775780639949d70e14610a195780639cde7da914610a215780639de6bc9d14610a295780639ec67b3114610a3157600080fd5b806392e47385146109f557806395ba105d146109fd57806396fd955e14610a0657600080fd5b80638a4f77ef1161030a5780638da5cb5b116102e45780638da5cb5b146109c05780638df79fe0146109d15780638e0442f8146109da578063914adf8f146109ed57600080fd5b80638a4f77ef1461099d5780638b63cc22146109a55780638bc32f33146109b857600080fd5b80637b81ef521461096b5780637ef797641461097357806382e70cb81461097c578063883703771461098457806388a6f17e1461098d578063894ee9681461099557600080fd5b806348f60f21116104ea578063660f90311161043657806370a67534116103d457806375767edb116103ae57806375767edb14610926578063785180e71461092f578063798f02231461095a5780637ab18adf1461096257600080fd5b806370a6753414610902578063715018a61461090b57806374f0f1841461091357600080fd5b8063692be74511610410578063692be745146108cb5780636b5f2bff146108d45780636bc88be4146108e75780636d5a9972146108fa57600080fd5b8063660f903114610892578063663032cd146108a55780636795afe6146108b857600080fd5b8063542ced77116104a357806361038b911161047d57806361038b91146108655780636103b2d51461086e57806361d4b5ef14610877578063648392ac1461087f57600080fd5b8063542ced77146108415780635b6bd017146108545780635f735a101461085c57600080fd5b806348f60f21146107ef578063495cb121146108025780634ca107cc146108155780634cbcc7711461081e5780634cf11abc146108265780635203f3861461082e57600080fd5b80632f505f1f116105c45780633bf8a53811610562578063412bd7b41161053c578063412bd7b4146107cd57806341e6f6c2146107d5578063429cdaa8146107dd578063488a4b26146107e657600080fd5b80633bf8a538146107845780633edf74e7146107b15780633f04e1eb146107c457600080fd5b8063363388331161059e578063363388331461075857806337fa5d51146107615780633864d0b7146107745780633aa8582a1461077c57600080fd5b80632f505f1f1461073e578063345cdef5146107465780633611f0021461074f57600080fd5b80631ff566c711610631578063291a0afd1161060b578063291a0afd146106ef5780632b7021501461071a5780632c6ed2f9146107225780632f006f4e1461073557600080fd5b80631ff566c7146106cb578063209e80ea146106d457806326825a9d146106e757600080fd5b806306201e1c146106795780630825682014610683578063086a73191461069f57806309272b89146106a7578063152ba58f146106ba57806319f1103f146106c2575b600080fd5b610681610bd8565b005b61068c60065481565b6040519081526020015b60405180910390f35b61068c610dbc565b6106816106b53660046142e0565b610dce565b61068c610e6f565b61068c60125481565b61068c60025481565b6106816106e23660046142e0565b610e7c565b610681610ec6565b600554610702906001600160a01b031681565b6040516001600160a01b039091168152602001610696565b61068c610f6a565b602754610702906001600160a01b031681565b61068c60165481565b610681610f77565b61068c60215481565b61068c60195481565b61068c601c5481565b61068161076f3660046142e0565b611150565b61068161119a565b61068c6112c8565b6009546107989067ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610696565b6106816107bf3660046142e0565b6112d5565b61068c600f5481565b61068c61138a565b61068c611397565b61068c60155481565b61068c600c5481565b6106816107fd3660046142e0565b6113a4565b61068161081036600461430e565b6113ee565b61068c600a5481565b61068c611451565b61068161145e565b61068161083c3660046142e0565b6117b1565b61068161084f3660046142e0565b6117fb565b61068c611845565b61068c601f5481565b61068c60225481565b61068c60105481565b61068c611852565b61068161088d3660046142e0565b61185f565b6106816108a0366004614341565b6118a9565b6106816108b3366004614373565b61190e565b6106816108c63660046142e0565b611995565b61068c60115481565b6106816108e2366004614373565b6119df565b6106816108f5366004614373565b611a9c565b610681611b6b565b61068c60285481565b610681611c99565b610681610921366004614373565b611cad565b61068c60245481565b600d54610942906001600160601b031681565b6040516001600160601b039091168152602001610696565b610681611d84565b61068c600e5481565b61068c6120d7565b61068c60235481565b61068c6120e4565b61068c60085481565b61068c6120f1565b6106816120fe565b6106816122ce565b6106816109b33660046142e0565b612402565b6106816124ae565b6000546001600160a01b0316610702565b61068c60135481565b6106816109e83660046142e0565b61267d565b610681612731565b6106816128dc565b61068c60015481565b600754610942906001600160601b031681565b61068c612c2f565b61068c612c3c565b610681612c49565b600b546107989067ffffffffffffffff1681565b61068c612e24565b61068c612e31565b610681612e3e565b61068c601a5481565b610681610a743660046142e0565b612fe9565b6107027f000000000000000000000000000000000000000000000000000000000000000081565b610681613032565b61068c601e5481565b610681610abf3660046142e0565b613385565b610681613417565b61068c60295481565b6106816135e8565b61068c60205481565b61068c60255481565b61068c60145481565b61068c613716565b600354610702906001600160a01b031681565b61068c601d5481565b610681610b2a36600461430e565b613723565b610681613786565b61068c601b5481565b610681610b4e366004614373565b613955565b61068c60175481565b61068c613a1e565b61068c60185481565b61068c613a2b565b610681610b83366004614373565b613a38565b610681613bd3565b61068c613da2565b610681613daf565b61068c60265481565b610681610bb7366004614373565b614102565b61068c60045481565b610681610bd3366004614341565b61417b565b610be06141e0565b600c5460008111610c0c5760405162461bcd60e51b8152600401610c0390614390565b60405180910390fd5b602954610c1982426143be565b1015610c375760405162461bcd60e51b8152600401610c03906143e5565b600b5460405167ffffffffffffffff90911681527f6a7551372930a2bc4aec844a266609ca90cf9b805f875e92680e901b43d5273f9060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd919061441a565b50600b546040516301409c5360e71b81526001600160601b038416600482015267ffffffffffffffff8084166024830152909116604482015291935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a04e298090606401600060405180830381600087803b158015610d8957600080fd5b505af1158015610d9d573d6000803e3d6000fd5b50506000600c555050600b805467ffffffffffffffff19169055505050565b6000610dc960145461423a565b905090565b610dd66141e0565b60008111610e265760405162461bcd60e51b815260206004820152601c60248201527f444b4720736565642074696d656f7574206d757374206265203e2030000000006044820152606401610c03565b60138190554260148190556040805183815260208101929092527fbc7737817ddb27c31c172ff62448cc628417bd3f09268a2c51f57f44187e3bd891015b60405180910390a150565b6000610dc9601a5461423a565b610e846141e0565b60118190554260128190556040805183815260208101929092527f523803e7f157ab532da5ae1e1d19b71f16b18376cf65a301ef8e3f07076d6bfd9101610e64565b610ece6141e0565b60025460008111610ef15760405162461bcd60e51b8152600401610c0390614390565b602954610efe82426143be565b1015610f1c5760405162461bcd60e51b8152600401610c03906143e5565b7f657e578b1ed229f1e01ab5ce4700399f19ddd24b09b071ab9e72122f18aa7297600154604051610f4f91815260200190565b60405180910390a15060018054602955600060028190559055565b6000610dc960165461423a565b610f7f6141e0565b60085460008111610fa25760405162461bcd60e51b8152600401610c0390614390565b602954610faf82426143be565b1015610fcd5760405162461bcd60e51b8152600401610c03906143e5565b6007546040516001600160601b0390911681527fca5de5c00e5da52e22f64b23ecfa308e487441bcbd0f4b84657799102e3ee3719060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561106e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611092919061441a565b6007546040516301409c5360e71b81526001600160601b03909116600482015267ffffffffffffffff80841660248301528216604482015291945092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063a04e298090606401600060405180830381600087803b15801561111e57600080fd5b505af1158015611132573d6000803e3d6000fd5b505060006008555050600780546001600160601b0319169055505050565b6111586141e0565b60018190554260028190556040805183815260208101929092527f1ed485551399b30c188ed4d426c6c62d7b703b9fec6b486c70a3fe616c2707c89101610e64565b6111a26141e0565b600454600081116111c55760405162461bcd60e51b8152600401610c0390614390565b6029546111d282426143be565b10156111f05760405162461bcd60e51b8152600401610c03906143e5565b6003546040516001600160a01b0390911681527f7ce7971982677220afc24841083a42b116461c6c98a6521a9b868289e1666d129060200160405180910390a16003546040516334e2fffd60e21b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063d38bfff490602401600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b505060006004555050600380546001600160a01b031916905550565b6000610dc960245461423a565b6112dd6141e0565b600081116113485760405162461bcd60e51b815260206004820152603260248201527f444b47207375626d697474657220707265636564656e636520706572696f642060448201527106c656e677468206d757374206265203e20360741b6064820152608401610c03565b601b81905542601c8190556040805183815260208101929092527f69f992e32ba993676818a20dfe808b5d41e0db4bdd3a52917701443500a423ca9101610e64565b6000610dc9601e5461423a565b6000610dc960285461423a565b6113ac6141e0565b60258190554260268190556040805183815260208101929092527fd26d5cc88a80cc6d3228aa110a2cb1e12b4a013ea21da94387b5d61915d7f7ae9101610e64565b6113f66141e0565b600d80546001600160601b0319166001600160601b03831690811790915542600e8190556040805192835260208301919091527f979a8e091ff7fa7b1f1c4f4e47e25837fd8aca91b084443ae6dc2e9f4feb17569101610e64565b6000610dc960065461423a565b6114666141e0565b601654600081116114895760405162461bcd60e51b8152600401610c0390614390565b60295461149682426143be565b10156114b45760405162461bcd60e51b8152600401610c03906143e5565b7f54eb240e49fe7d2dc26863f9a2682d5834812e39417dbac77797c3b01b97395c6015546040516114e791815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190614467565b600001516015547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116299190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561168b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116af9190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611711573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117359190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b15801561178c57600080fd5b505af11580156117a0573d6000803e3d6000fd5b505060006016819055601555505050565b6117b96141e0565b60238190554260248190556040805183815260208101929092527f0d91b5f502e394889eb37e206aa19aaee391191261f63b3c60588cf2338536eb9101610e64565b6118036141e0565b601d81905542601e8190556040805183815260208101929092527fe7f67ed355ceb941da1b6600c508f5493967c944c9fee75936aaa986b9e0344c9101610e64565b6000610dc960125461423a565b6000610dc9600c5461423a565b6118676141e0565b60218190554260228190556040805183815260208101929092527f6ff3903999be3f8c1262f638998917b6d6c6f8097cb7cb9e60edaa1a5f2a66719101610e64565b6118b16141e0565b600b805467ffffffffffffffff191667ffffffffffffffff831690811790915542600c8190556040805192835260208301919091527f979c18cc9822195c2af34f89e0713a14edbd9713b32932c60471951cc1fa02db9101610e64565b6119166141e0565b60405163663032cd60e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063663032cd906024015b600060405180830381600087803b15801561197a57600080fd5b505af115801561198e573d6000803e3d6000fd5b5050505050565b61199d6141e0565b60178190554260188190556040805183815260208101929092527fff34014c09b30234094b14f309369c4b204ab5f24daa98f6922ac40a04768bf09101610e64565b6119e76141e0565b6001600160a01b038116611a4e5760405162461bcd60e51b815260206004820152602860248201527f4e65772072616e646f6d20626561636f6e20616464726573732063616e6e6f74604482015267206265207a65726f60c01b6064820152608401610c03565b604051636b5f2bff60e01b81526001600160a01b0382811660048301527f00000000000000000000000000000000000000000000000000000000000000001690636b5f2bff90602401611960565b611aa46141e0565b6001600160a01b038116611b105760405162461bcd60e51b815260206004820152602d60248201527f4e6577207265696d62757273656d656e7420706f6f6c2061646472657373206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610c03565b602780546001600160a01b0319166001600160a01b0383169081179091554260288190556040805192835260208301919091527fb0265ce862ecc921385ce2f0f4c7980f8d3ae43d5a9038377962102d5c089b679101610e64565b611b736141e0565b60285460008111611b965760405162461bcd60e51b8152600401610c0390614390565b602954611ba382426143be565b1015611bc15760405162461bcd60e51b8152600401610c03906143e5565b6027546040516001600160a01b0390911681527f0e2d2343d31b085b7c4e56d1c8a6ec79f7ab07460386f1c9a1756239fe2533ac9060200160405180910390a1602754604051633d9ada7360e11b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000090911690637b35b4e690602401600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b505060006028555050602780546001600160a01b031916905550565b611ca16141e0565b611cab6000614290565b565b611cb56141e0565b6001600160a01b038116611d295760405162461bcd60e51b815260206004820152603560248201527f4e65772077616c6c657420726567697374727920676f7665726e616e636520616044820152746464726573732063616e6e6f74206265207a65726f60581b6064820152608401610c03565b600380546001600160a01b0319166001600160a01b0383169081179091554260048190556040805192835260208301919091527f26e6ebbf5d35c12daf1a9570237759f5e8a16f2c2957dd17a6db89a08177276d9101610e64565b611d8c6141e0565b60185460008111611daf5760405162461bcd60e51b8152600401610c0390614390565b602954611dbc82426143be565b1015611dda5760405162461bcd60e51b8152600401610c03906143e5565b7ffc489bb20492c4590e5a1edb8e096301dd7e9c24843a5af9221ddafff010f0f0601754604051611e0d91815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec69190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4c9190614467565b602001516017547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611fb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fd59190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205b9190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b1580156120b257600080fd5b505af11580156120c6573d6000803e3d6000fd5b505060006018819055601755505050565b6000610dc960085461423a565b6000610dc9600a5461423a565b6000610dc960265461423a565b6121066141e0565b602254600081116121295760405162461bcd60e51b8152600401610c0390614390565b60295461213682426143be565b10156121545760405162461bcd60e51b8152600401610c03906143e5565b7fc02f8fddd9d337adf38d4f97d3ab8c91b69075b48db9bc25c461b0d02c3d409260215460405161218791815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa1580156121f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221791906144e5565b6021546040516332239c3d60e21b81526004810187905260248101869052604481019190915260648101839052608481018290529498509296509450909250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b1580156122a557600080fd5b505af11580156122b9573d6000803e3d6000fd5b50506000602281905560215550505050505050565b6122d66141e0565b600e54600081116122f95760405162461bcd60e51b8152600401610c0390614390565b60295461230682426143be565b10156123245760405162461bcd60e51b8152600401610c03906143e5565b600d546040516001600160601b0390911681527f729911080850beaa017f6f4aee63ab5ac1f41bc268fe06b9cfc0160a2c532ccd9060200160405180910390a1600d5460405163227fd44f60e01b81526001600160601b0390911660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063227fd44f90602401600060405180830381600087803b1580156123d257600080fd5b505af11580156123e6573d6000803e3d6000fd5b50506000600e555050600d80546001600160601b031916905550565b61240a6141e0565b6000811161246c5760405162461bcd60e51b815260206004820152602960248201527f444b4720726573756c74207375626d697373696f6e2074696d656f7574206d7560448201526807374206265203e20360bc1b6064820152608401610c03565b601981905542601a8190556040805183815260208101929092527f77bd6dceb389516c704e337d2e53bab8397e3fd1de7e3b852090742804ba13b49101610e64565b6124b66141e0565b601e54600081116124d95760405162461bcd60e51b8152600401610c0390614390565b6029546124e682426143be565b10156125045760405162461bcd60e51b8152600401610c03906143e5565b7ff71bf0b76dcaef665875c3a1d4959efda6ea75c7171f5fae1bd305f7c8509283601d5460405161253791815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906144e5565b601d546040516332239c3d60e21b8152600481019190915260248101859052604481018490526064810183905260848101829052939850919650945092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915063c88e70f49060a401600060405180830381600087803b15801561265457600080fd5b505af1158015612668573d6000803e3d6000fd5b50506000601e819055601d5550505050505050565b6126856141e0565b600a8110156126ef5760405162461bcd60e51b815260206004820152603060248201527f444b4720726573756c74206368616c6c656e676520706572696f64206c656e6760448201526f07468206d757374206265203e3d2031360841b6064820152608401610c03565b60158190554260168190556040805183815260208101929092527f4bc54f06db7242d34e1d1cdd7b4b33807a8210c54fc440ba45e6e5ffa04e083d9101610e64565b6127396141e0565b6012546000811161275c5760405162461bcd60e51b8152600401610c0390614390565b60295461276982426143be565b10156127875760405162461bcd60e51b8152600401610c03906143e5565b7f0945b46b311d9dd20cdadf139b3449fe2e50026e619f33cabedbd7461c4290766011546040516127ba91815260200190565b60405180910390a160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663529023016040518163ffffffff1660e01b81526004016040805180830381865afa158015612821573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614525565b50601154604051631b27b35960e21b81526004810183905260248101919091529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636c9ecd6490604401600060405180830381600087803b1580156128b657600080fd5b505af11580156128ca573d6000803e3d6000fd5b50506000601281905560115550505050565b6128e46141e0565b601454600081116129075760405162461bcd60e51b8152600401610c0390614390565b60295461291482426143be565b10156129325760405162461bcd60e51b8152600401610c03906143e5565b7f699d711e0fcec79bdd53b4d7dd22601054a0ab464fdd5c013acef3f60aa76df160135460405161296591815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a6013547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156129fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a219190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aa79190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2d9190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb39190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b158015612c0a57600080fd5b505af1158015612c1e573d6000803e3d6000fd5b505060006014819055601355505050565b6000610dc9600e5461423a565b6000610dc960185461423a565b612c516141e0565b600a5460008111612c745760405162461bcd60e51b8152600401610c0390614390565b602954612c8182426143be565b1015612c9f5760405162461bcd60e51b8152600401610c03906143e5565b60095460405167ffffffffffffffff90911681527fcc354ece588e8fa730a65a72ebb90039caf81a2a9efedf80e8124566d42a75e89060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d65919061441a565b506009546040516301409c5360e71b81526001600160601b038416600482015267ffffffffffffffff9182166024820152908216604482015291935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a04e298090606401600060405180830381600087803b158015612df157600080fd5b505af1158015612e05573d6000803e3d6000fd5b50506000600a5550506009805467ffffffffffffffff19169055505050565b6000610dc960045461423a565b6000610dc960025461423a565b612e466141e0565b60105460008111612e695760405162461bcd60e51b8152600401610c0390614390565b602954612e7682426143be565b1015612e945760405162461bcd60e51b8152600401610c03906143e5565b7ff972545d914a516609b7f99dd91f81c8490dd818618b8662d7211bb403b40ac5600f54604051612ec791815260200190565b60405180910390a160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663529023016040518163ffffffff1660e01b81526004016040805180830381865afa158015612f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f529190614525565b600f54604051631b27b35960e21b81526004810191909152602481018290529092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169150636c9ecd6490604401600060405180830381600087803b158015612fc357600080fd5b505af1158015612fd7573d6000803e3d6000fd5b505060006010819055600f5550505050565b612ff16141e0565b601f81905542602081815560408051848152918201929092527f8ff92b4fa51728d3b3bebd82f5bcfa8904b0278abbce025a1e33aaf9719fdb0d9101610e64565b61303a6141e0565b601c546000811161305d5760405162461bcd60e51b8152600401610c0390614390565b60295461306a82426143be565b10156130885760405162461bcd60e51b8152600401610c03906143e5565b7ffc88a5167b8569e72b62f4b76b3caae7699e46c7f6f16a8d011b135ac613acc4601b546040516130bb91815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131749190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156131d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fa9190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561325c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132809190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156132e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133069190614467565b60600151601b546040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b15801561336057600080fd5b505af1158015613374573d6000803e3d6000fd5b50506000601c819055601b55505050565b61338d6141e0565b60648111156133d55760405162461bcd60e51b815260206004820152601460248201527304d6178696d756d2076616c7565206973203130360641b6044820152606401610c03565b600f8190554260108190556040805183815260208101929092527f2083937d69f065ceb929d6773c5d9fb29a9b1b523d38988f0649d016fef90ca19101610e64565b61341f6141e0565b602454600081116134425760405162461bcd60e51b8152600401610c0390614390565b60295461344f82426143be565b101561346d5760405162461bcd60e51b8152600401610c03906143e5565b7f41a5ecec84878dee7030f74af5f0b3debf08544fce106ab7ae670617dce7c11d6023546040516134a091815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa15801561350c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353091906144e5565b6023546040516332239c3d60e21b8152600481018790526024810186905260448101859052606481019190915260848101829052949850929650909450909250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b1580156135bf57600080fd5b505af11580156135d3573d6000803e3d6000fd5b50506000602481905560235550505050505050565b6135f06141e0565b600654600081116136135760405162461bcd60e51b8152600401610c0390614390565b60295461362082426143be565b101561363e5760405162461bcd60e51b8152600401610c03906143e5565b6005546040516001600160a01b0390911681527fa1993af5a189ba5ad4155263c920cfee33ce0593a8eb231a13bb3ce6f39459e39060200160405180910390a160055460405163d0bcc0e360e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063d0bcc0e390602401600060405180830381600087803b1580156136e657600080fd5b505af11580156136fa573d6000803e3d6000fd5b505060006006555050600580546001600160a01b031916905550565b6000610dc960225461423a565b61372b6141e0565b600780546001600160601b0319166001600160601b0383169081179091554260088190556040805192835260208301919091527f456911403e756f0141f9a154095c7495b7002db4f6b26a7ff03c4f09335abc4b9101610e64565b61378e6141e0565b602054600081116137b15760405162461bcd60e51b8152600401610c0390614390565b6029546137be82426143be565b10156137dc5760405162461bcd60e51b8152600401610c03906143e5565b7f9eb4413d73f3cae81d9e8ab119d94a8d2cd6b2564117c30f2112b972dcf84f96601f5460405161380f91815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa15801561387b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061389f91906144e5565b601f546040516332239c3d60e21b815260048101879052602481019190915260448101849052606481018390526084810182905294985091965094509250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b15801561392c57600080fd5b505af1158015613940573d6000803e3d6000fd5b505060006020819055601f5550505050505050565b61395d6141e0565b6001600160a01b0381166139c35760405162461bcd60e51b815260206004820152602760248201527f4e65772077616c6c6574206f776e657220616464726573732063616e6e6f74206044820152666265207a65726f60c81b6064820152608401610c03565b600580546001600160a01b0319166001600160a01b0383169081179091554260068190556040805192835260208301919091527f5846df828808530e936deade5e664982029ee91c99d68236a8668e6b131d3fd89101610e64565b6000610dc9601c5461423a565b6000610dc960105461423a565b613a406141e0565b60006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631ae879e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015613aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613acd9190614549565b6001600160a01b031614613b235760405162461bcd60e51b815260206004820181905260248201527f57616c6c6574204f776e657220616c726561647920696e697469616c697a65646044820152606401610c03565b6001600160a01b038116613b855760405162461bcd60e51b815260206004820152602360248201527f57616c6c6574204f776e657220616464726573732063616e6e6f74206265207a60448201526265726f60e81b6064820152608401610c03565b60405163d0bcc0e360e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063d0bcc0e390602401611960565b613bdb6141e0565b60265460008111613bfe5760405162461bcd60e51b8152600401610c0390614390565b602954613c0b82426143be565b1015613c295760405162461bcd60e51b8152600401610c03906143e5565b7ff726b0e44d3e6afe8ee19a31e1cd23b021e741b0ac8eb91cdc912b6eb5555152602554604051613c5c91815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa158015613cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cec91906144e5565b506025546040516332239c3d60e21b8152600481018690526024810185905260448101849052606481018390526084810191909152939750919550935091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b158015613d7957600080fd5b505af1158015613d8d573d6000803e3d6000fd5b50506000602681905560255550505050505050565b6000610dc960205461423a565b613db76141e0565b601a5460008111613dda5760405162461bcd60e51b8152600401610c0390614390565b602954613de782426143be565b1015613e055760405162461bcd60e51b8152600401610c03906143e5565b7ff0db347eb933ec2636808975682b1fd63249be20775411ced58d2fd61e0fe742601954604051613e3891815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ef19190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613f53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f779190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ffd9190614467565b604001516019547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015614062573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140869190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b1580156140dd57600080fd5b505af11580156140f1573d6000803e3d6000fd5b50506000601a819055601955505050565b61410a6141e0565b6001600160a01b03811661416f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c03565b61417881614290565b50565b6141836141e0565b6009805467ffffffffffffffff191667ffffffffffffffff831690811790915542600a8190556040805192835260208301919091527f98f756aaf5ba8f60be58f0b035a3a5f54bdfbc5d1ada450c235b9e500625df389101610e64565b6000546001600160a01b03163314611cab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c03565b600080821161425b5760405162461bcd60e51b8152600401610c0390614390565b600061426783426143be565b9050602954811061427b5750600092915050565b8060295461428991906143be565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156142f257600080fd5b5035919050565b6001600160601b038116811461417857600080fd5b60006020828403121561432057600080fd5b8135614289816142f9565b67ffffffffffffffff8116811461417857600080fd5b60006020828403121561435357600080fd5b81356142898161432b565b6001600160a01b038116811461417857600080fd5b60006020828403121561438557600080fd5b81356142898161435e565b60208082526014908201527310da185b99d9481b9bdd081a5b9a5d1a585d195960621b604082015260600190565b818103818111156143df57634e487b7160e01b600052601160045260246000fd5b92915050565b6020808252818101527f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564604082015260600190565b60008060006060848603121561442f57600080fd5b835161443a816142f9565b602085015190935061444b8161432b565b604085015190925061445c8161432b565b809150509250925092565b600060a0828403121561447957600080fd5b60405160a0810181811067ffffffffffffffff821117156144aa57634e487b7160e01b600052604160045260246000fd5b806040525082518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b600080600080600060a086880312156144fd57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b6000806040838503121561453857600080fd5b505080516020909101519092909150565b60006020828403121561455b57600080fd5b81516142898161435e56fea2646970667358221220c1315453bb064763603bc0c5e3bf5cf0e06540377e5d5b11461e3c1fda263ee764736f6c63430008110033",
|
|
1996
|
+
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106106745760003560e01c80637b81ef5211610351578063b1fae48b116101c3578063d4c44bf51161010f578063e93d9662116100ad578063f293fca811610087578063f293fca814610ba0578063f2fde38b14610ba9578063fddfe99c14610bbc578063fe3bb37014610bc557600080fd5b8063e93d966214610b88578063ec9d1d9614610b90578063f0bb6ce814610b9857600080fd5b8063de0ce4c9116100e9578063de0ce4c914610b5c578063df5ee8f614610b64578063e166e76714610b6d578063e1a7bf7714610b7557600080fd5b8063d4c44bf514610b37578063d5d1a9f514610b40578063dbc439c714610b5357600080fd5b8063c4eb46471161017c578063cd38c13711610156578063cd38c13714610b00578063cdfaeb9814610b13578063ce123d2814610b1c578063d24521aa14610b2f57600080fd5b8063c4eb464714610ae6578063c599447914610aef578063c97e8feb14610af857600080fd5b8063b1fae48b14610aa8578063b4f574bc14610ab1578063b766530814610ac4578063bba3293914610acc578063bf72174914610ad5578063c1b2ba9714610add57600080fd5b806392e473851161029d5780639f5e05661161023b578063a5b9ab4d11610215578063a5b9ab4d14610a5d578063a6d025f114610a66578063ab7aa6ad14610a79578063ae1a332514610aa057600080fd5b80639f5e056614610a45578063a01bc82814610a4d578063a37b138c14610a5557600080fd5b80639949d70e116102775780639949d70e14610a195780639cde7da914610a215780639de6bc9d14610a295780639ec67b3114610a3157600080fd5b806392e47385146109f557806395ba105d146109fd57806396fd955e14610a0657600080fd5b80638a4f77ef1161030a5780638da5cb5b116102e45780638da5cb5b146109c05780638df79fe0146109d15780638e0442f8146109da578063914adf8f146109ed57600080fd5b80638a4f77ef1461099d5780638b63cc22146109a55780638bc32f33146109b857600080fd5b80637b81ef521461096b5780637ef797641461097357806382e70cb81461097c578063883703771461098457806388a6f17e1461098d578063894ee9681461099557600080fd5b806348f60f21116104ea578063660f90311161043657806370a67534116103d457806375767edb116103ae57806375767edb14610926578063785180e71461092f578063798f02231461095a5780637ab18adf1461096257600080fd5b806370a6753414610902578063715018a61461090b57806374f0f1841461091357600080fd5b8063692be74511610410578063692be745146108cb5780636b5f2bff146108d45780636bc88be4146108e75780636d5a9972146108fa57600080fd5b8063660f903114610892578063663032cd146108a55780636795afe6146108b857600080fd5b8063542ced77116104a357806361038b911161047d57806361038b91146108655780636103b2d51461086e57806361d4b5ef14610877578063648392ac1461087f57600080fd5b8063542ced77146108415780635b6bd017146108545780635f735a101461085c57600080fd5b806348f60f21146107ef578063495cb121146108025780634ca107cc146108155780634cbcc7711461081e5780634cf11abc146108265780635203f3861461082e57600080fd5b80632f505f1f116105c45780633bf8a53811610562578063412bd7b41161053c578063412bd7b4146107cd57806341e6f6c2146107d5578063429cdaa8146107dd578063488a4b26146107e657600080fd5b80633bf8a538146107845780633edf74e7146107b15780633f04e1eb146107c457600080fd5b8063363388331161059e578063363388331461075857806337fa5d51146107615780633864d0b7146107745780633aa8582a1461077c57600080fd5b80632f505f1f1461073e578063345cdef5146107465780633611f0021461074f57600080fd5b80631ff566c711610631578063291a0afd1161060b578063291a0afd146106ef5780632b7021501461071a5780632c6ed2f9146107225780632f006f4e1461073557600080fd5b80631ff566c7146106cb578063209e80ea146106d457806326825a9d146106e757600080fd5b806306201e1c146106795780630825682014610683578063086a73191461069f57806309272b89146106a7578063152ba58f146106ba57806319f1103f146106c2575b600080fd5b610681610bd8565b005b61068c60065481565b6040519081526020015b60405180910390f35b61068c610dbc565b6106816106b53660046142e0565b610dce565b61068c610e6f565b61068c60125481565b61068c60025481565b6106816106e23660046142e0565b610e7c565b610681610ec6565b600554610702906001600160a01b031681565b6040516001600160a01b039091168152602001610696565b61068c610f6a565b602754610702906001600160a01b031681565b61068c60165481565b610681610f77565b61068c60215481565b61068c60195481565b61068c601c5481565b61068161076f3660046142e0565b611150565b61068161119a565b61068c6112c8565b6009546107989067ffffffffffffffff1681565b60405167ffffffffffffffff9091168152602001610696565b6106816107bf3660046142e0565b6112d5565b61068c600f5481565b61068c61138a565b61068c611397565b61068c60155481565b61068c600c5481565b6106816107fd3660046142e0565b6113a4565b61068161081036600461430e565b6113ee565b61068c600a5481565b61068c611451565b61068161145e565b61068161083c3660046142e0565b6117b1565b61068161084f3660046142e0565b6117fb565b61068c611845565b61068c601f5481565b61068c60225481565b61068c60105481565b61068c611852565b61068161088d3660046142e0565b61185f565b6106816108a0366004614341565b6118a9565b6106816108b3366004614373565b61190e565b6106816108c63660046142e0565b611995565b61068c60115481565b6106816108e2366004614373565b6119df565b6106816108f5366004614373565b611a9c565b610681611b6b565b61068c60285481565b610681611c99565b610681610921366004614373565b611cad565b61068c60245481565b600d54610942906001600160601b031681565b6040516001600160601b039091168152602001610696565b610681611d84565b61068c600e5481565b61068c6120d7565b61068c60235481565b61068c6120e4565b61068c60085481565b61068c6120f1565b6106816120fe565b6106816122ce565b6106816109b33660046142e0565b612402565b6106816124ae565b6000546001600160a01b0316610702565b61068c60135481565b6106816109e83660046142e0565b61267d565b610681612731565b6106816128dc565b61068c60015481565b600754610942906001600160601b031681565b61068c612c2f565b61068c612c3c565b610681612c49565b600b546107989067ffffffffffffffff1681565b61068c612e24565b61068c612e31565b610681612e3e565b61068c601a5481565b610681610a743660046142e0565b612fe9565b6107027f000000000000000000000000000000000000000000000000000000000000000081565b610681613032565b61068c601e5481565b610681610abf3660046142e0565b613385565b610681613417565b61068c60295481565b6106816135e8565b61068c60205481565b61068c60255481565b61068c60145481565b61068c613716565b600354610702906001600160a01b031681565b61068c601d5481565b610681610b2a36600461430e565b613723565b610681613786565b61068c601b5481565b610681610b4e366004614373565b613955565b61068c60175481565b61068c613a1e565b61068c60185481565b61068c613a2b565b610681610b83366004614373565b613a38565b610681613bd3565b61068c613da2565b610681613daf565b61068c60265481565b610681610bb7366004614373565b614102565b61068c60045481565b610681610bd3366004614341565b61417b565b610be06141e0565b600c5460008111610c0c5760405162461bcd60e51b8152600401610c0390614390565b60405180910390fd5b602954610c1982426143be565b1015610c375760405162461bcd60e51b8152600401610c03906143e5565b600b5460405167ffffffffffffffff90911681527f6a7551372930a2bc4aec844a266609ca90cf9b805f875e92680e901b43d5273f9060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa158015610cd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cfd919061441a565b50600b546040516301409c5360e71b81526001600160601b038416600482015267ffffffffffffffff8084166024830152909116604482015291935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a04e298090606401600060405180830381600087803b158015610d8957600080fd5b505af1158015610d9d573d6000803e3d6000fd5b50506000600c555050600b805467ffffffffffffffff19169055505050565b6000610dc960145461423a565b905090565b610dd66141e0565b60008111610e265760405162461bcd60e51b815260206004820152601c60248201527f444b4720736565642074696d656f7574206d757374206265203e2030000000006044820152606401610c03565b60138190554260148190556040805183815260208101929092527fbc7737817ddb27c31c172ff62448cc628417bd3f09268a2c51f57f44187e3bd891015b60405180910390a150565b6000610dc9601a5461423a565b610e846141e0565b60118190554260128190556040805183815260208101929092527f523803e7f157ab532da5ae1e1d19b71f16b18376cf65a301ef8e3f07076d6bfd9101610e64565b610ece6141e0565b60025460008111610ef15760405162461bcd60e51b8152600401610c0390614390565b602954610efe82426143be565b1015610f1c5760405162461bcd60e51b8152600401610c03906143e5565b7f657e578b1ed229f1e01ab5ce4700399f19ddd24b09b071ab9e72122f18aa7297600154604051610f4f91815260200190565b60405180910390a15060018054602955600060028190559055565b6000610dc960165461423a565b610f7f6141e0565b60085460008111610fa25760405162461bcd60e51b8152600401610c0390614390565b602954610faf82426143be565b1015610fcd5760405162461bcd60e51b8152600401610c03906143e5565b6007546040516001600160601b0390911681527fca5de5c00e5da52e22f64b23ecfa308e487441bcbd0f4b84657799102e3ee3719060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa15801561106e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611092919061441a565b6007546040516301409c5360e71b81526001600160601b03909116600482015267ffffffffffffffff80841660248301528216604482015291945092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316915063a04e298090606401600060405180830381600087803b15801561111e57600080fd5b505af1158015611132573d6000803e3d6000fd5b505060006008555050600780546001600160601b0319169055505050565b6111586141e0565b60018190554260028190556040805183815260208101929092527f1ed485551399b30c188ed4d426c6c62d7b703b9fec6b486c70a3fe616c2707c89101610e64565b6111a26141e0565b600454600081116111c55760405162461bcd60e51b8152600401610c0390614390565b6029546111d282426143be565b10156111f05760405162461bcd60e51b8152600401610c03906143e5565b6003546040516001600160a01b0390911681527f7ce7971982677220afc24841083a42b116461c6c98a6521a9b868289e1666d129060200160405180910390a16003546040516334e2fffd60e21b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063d38bfff490602401600060405180830381600087803b15801561129857600080fd5b505af11580156112ac573d6000803e3d6000fd5b505060006004555050600380546001600160a01b031916905550565b6000610dc960245461423a565b6112dd6141e0565b600081116113485760405162461bcd60e51b815260206004820152603260248201527f444b47207375626d697474657220707265636564656e636520706572696f642060448201527106c656e677468206d757374206265203e20360741b6064820152608401610c03565b601b81905542601c8190556040805183815260208101929092527f69f992e32ba993676818a20dfe808b5d41e0db4bdd3a52917701443500a423ca9101610e64565b6000610dc9601e5461423a565b6000610dc960285461423a565b6113ac6141e0565b60258190554260268190556040805183815260208101929092527fd26d5cc88a80cc6d3228aa110a2cb1e12b4a013ea21da94387b5d61915d7f7ae9101610e64565b6113f66141e0565b600d80546001600160601b0319166001600160601b03831690811790915542600e8190556040805192835260208301919091527f979a8e091ff7fa7b1f1c4f4e47e25837fd8aca91b084443ae6dc2e9f4feb17569101610e64565b6000610dc960065461423a565b6114666141e0565b601654600081116114895760405162461bcd60e51b8152600401610c0390614390565b60295461149682426143be565b10156114b45760405162461bcd60e51b8152600401610c03906143e5565b7f54eb240e49fe7d2dc26863f9a2682d5834812e39417dbac77797c3b01b97395c6015546040516114e791815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561157c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115a09190614467565b600001516015547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611605573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116299190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561168b573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116af9190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611711573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906117359190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b15801561178c57600080fd5b505af11580156117a0573d6000803e3d6000fd5b505060006016819055601555505050565b6117b96141e0565b60238190554260248190556040805183815260208101929092527f0d91b5f502e394889eb37e206aa19aaee391191261f63b3c60588cf2338536eb9101610e64565b6118036141e0565b601d81905542601e8190556040805183815260208101929092527fe7f67ed355ceb941da1b6600c508f5493967c944c9fee75936aaa986b9e0344c9101610e64565b6000610dc960125461423a565b6000610dc9600c5461423a565b6118676141e0565b60218190554260228190556040805183815260208101929092527f6ff3903999be3f8c1262f638998917b6d6c6f8097cb7cb9e60edaa1a5f2a66719101610e64565b6118b16141e0565b600b805467ffffffffffffffff191667ffffffffffffffff831690811790915542600c8190556040805192835260208301919091527f979c18cc9822195c2af34f89e0713a14edbd9713b32932c60471951cc1fa02db9101610e64565b6119166141e0565b60405163663032cd60e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063663032cd906024015b600060405180830381600087803b15801561197a57600080fd5b505af115801561198e573d6000803e3d6000fd5b5050505050565b61199d6141e0565b60178190554260188190556040805183815260208101929092527fff34014c09b30234094b14f309369c4b204ab5f24daa98f6922ac40a04768bf09101610e64565b6119e76141e0565b6001600160a01b038116611a4e5760405162461bcd60e51b815260206004820152602860248201527f4e65772072616e646f6d20626561636f6e20616464726573732063616e6e6f74604482015267206265207a65726f60c01b6064820152608401610c03565b604051636b5f2bff60e01b81526001600160a01b0382811660048301527f00000000000000000000000000000000000000000000000000000000000000001690636b5f2bff90602401611960565b611aa46141e0565b6001600160a01b038116611b105760405162461bcd60e51b815260206004820152602d60248201527f4e6577207265696d62757273656d656e7420706f6f6c2061646472657373206360448201526c616e6e6f74206265207a65726f60981b6064820152608401610c03565b602780546001600160a01b0319166001600160a01b0383169081179091554260288190556040805192835260208301919091527fb0265ce862ecc921385ce2f0f4c7980f8d3ae43d5a9038377962102d5c089b679101610e64565b611b736141e0565b60285460008111611b965760405162461bcd60e51b8152600401610c0390614390565b602954611ba382426143be565b1015611bc15760405162461bcd60e51b8152600401610c03906143e5565b6027546040516001600160a01b0390911681527f0e2d2343d31b085b7c4e56d1c8a6ec79f7ab07460386f1c9a1756239fe2533ac9060200160405180910390a1602754604051633d9ada7360e11b81526001600160a01b0391821660048201527f000000000000000000000000000000000000000000000000000000000000000090911690637b35b4e690602401600060405180830381600087803b158015611c6957600080fd5b505af1158015611c7d573d6000803e3d6000fd5b505060006028555050602780546001600160a01b031916905550565b611ca16141e0565b611cab6000614290565b565b611cb56141e0565b6001600160a01b038116611d295760405162461bcd60e51b815260206004820152603560248201527f4e65772077616c6c657420726567697374727920676f7665726e616e636520616044820152746464726573732063616e6e6f74206265207a65726f60581b6064820152608401610c03565b600380546001600160a01b0319166001600160a01b0383169081179091554260048190556040805192835260208301919091527f26e6ebbf5d35c12daf1a9570237759f5e8a16f2c2957dd17a6db89a08177276d9101610e64565b611d8c6141e0565b60185460008111611daf5760405162461bcd60e51b8152600401610c0390614390565b602954611dbc82426143be565b1015611dda5760405162461bcd60e51b8152600401610c03906143e5565b7ffc489bb20492c4590e5a1edb8e096301dd7e9c24843a5af9221ddafff010f0f0601754604051611e0d91815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611ea2573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611ec69190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611f28573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611f4c9190614467565b602001516017547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015611fb1573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611fd59190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612037573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061205b9190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b1580156120b257600080fd5b505af11580156120c6573d6000803e3d6000fd5b505060006018819055601755505050565b6000610dc960085461423a565b6000610dc9600a5461423a565b6000610dc960265461423a565b6121066141e0565b602254600081116121295760405162461bcd60e51b8152600401610c0390614390565b60295461213682426143be565b10156121545760405162461bcd60e51b8152600401610c03906143e5565b7fc02f8fddd9d337adf38d4f97d3ab8c91b69075b48db9bc25c461b0d02c3d409260215460405161218791815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa1580156121f3573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061221791906144e5565b6021546040516332239c3d60e21b81526004810187905260248101869052604481019190915260648101839052608481018290529498509296509450909250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b1580156122a557600080fd5b505af11580156122b9573d6000803e3d6000fd5b50506000602281905560215550505050505050565b6122d66141e0565b600e54600081116122f95760405162461bcd60e51b8152600401610c0390614390565b60295461230682426143be565b10156123245760405162461bcd60e51b8152600401610c03906143e5565b600d546040516001600160601b0390911681527f729911080850beaa017f6f4aee63ab5ac1f41bc268fe06b9cfc0160a2c532ccd9060200160405180910390a1600d5460405163227fd44f60e01b81526001600160601b0390911660048201527f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063227fd44f90602401600060405180830381600087803b1580156123d257600080fd5b505af11580156123e6573d6000803e3d6000fd5b50506000600e555050600d80546001600160601b031916905550565b61240a6141e0565b6000811161246c5760405162461bcd60e51b815260206004820152602960248201527f444b4720726573756c74207375626d697373696f6e2074696d656f7574206d7560448201526807374206265203e20360bc1b6064820152608401610c03565b601981905542601a8190556040805183815260208101929092527f77bd6dceb389516c704e337d2e53bab8397e3fd1de7e3b852090742804ba13b49101610e64565b6124b66141e0565b601e54600081116124d95760405162461bcd60e51b8152600401610c0390614390565b6029546124e682426143be565b10156125045760405162461bcd60e51b8152600401610c03906143e5565b7ff71bf0b76dcaef665875c3a1d4959efda6ea75c7171f5fae1bd305f7c8509283601d5460405161253791815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa1580156125a3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906125c791906144e5565b601d546040516332239c3d60e21b8152600481019190915260248101859052604481018490526064810183905260848101829052939850919650945092506001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016915063c88e70f49060a401600060405180830381600087803b15801561265457600080fd5b505af1158015612668573d6000803e3d6000fd5b50506000601e819055601d5550505050505050565b6126856141e0565b600a8110156126ef5760405162461bcd60e51b815260206004820152603060248201527f444b4720726573756c74206368616c6c656e676520706572696f64206c656e6760448201526f07468206d757374206265203e3d2031360841b6064820152608401610c03565b60158190554260168190556040805183815260208101929092527f4bc54f06db7242d34e1d1cdd7b4b33807a8210c54fc440ba45e6e5ffa04e083d9101610e64565b6127396141e0565b6012546000811161275c5760405162461bcd60e51b8152600401610c0390614390565b60295461276982426143be565b10156127875760405162461bcd60e51b8152600401610c03906143e5565b7f0945b46b311d9dd20cdadf139b3449fe2e50026e619f33cabedbd7461c4290766011546040516127ba91815260200190565b60405180910390a160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663529023016040518163ffffffff1660e01b81526004016040805180830381865afa158015612821573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128459190614525565b50601154604051631b27b35960e21b81526004810183905260248101919091529091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031690636c9ecd6490604401600060405180830381600087803b1580156128b657600080fd5b505af11580156128ca573d6000803e3d6000fd5b50506000601281905560115550505050565b6128e46141e0565b601454600081116129075760405162461bcd60e51b8152600401610c0390614390565b60295461291482426143be565b10156129325760405162461bcd60e51b8152600401610c03906143e5565b7f699d711e0fcec79bdd53b4d7dd22601054a0ab464fdd5c013acef3f60aa76df160135460405161296591815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a6013547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156129fd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612a219190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612a83573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612aa79190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612b09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612b2d9190614467565b606001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015612b8f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612bb39190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b158015612c0a57600080fd5b505af1158015612c1e573d6000803e3d6000fd5b505060006014819055601355505050565b6000610dc9600e5461423a565b6000610dc960185461423a565b612c516141e0565b600a5460008111612c745760405162461bcd60e51b8152600401610c0390614390565b602954612c8182426143be565b1015612c9f5760405162461bcd60e51b8152600401610c03906143e5565b60095460405167ffffffffffffffff90911681527fcc354ece588e8fa730a65a72ebb90039caf81a2a9efedf80e8124566d42a75e89060200160405180910390a16000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316637b14729e6040518163ffffffff1660e01b8152600401606060405180830381865afa158015612d41573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612d65919061441a565b506009546040516301409c5360e71b81526001600160601b038416600482015267ffffffffffffffff9182166024820152908216604482015291935091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169063a04e298090606401600060405180830381600087803b158015612df157600080fd5b505af1158015612e05573d6000803e3d6000fd5b50506000600a5550506009805467ffffffffffffffff19169055505050565b6000610dc960045461423a565b6000610dc960025461423a565b612e466141e0565b60105460008111612e695760405162461bcd60e51b8152600401610c0390614390565b602954612e7682426143be565b1015612e945760405162461bcd60e51b8152600401610c03906143e5565b7ff972545d914a516609b7f99dd91f81c8490dd818618b8662d7211bb403b40ac5600f54604051612ec791815260200190565b60405180910390a160007f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663529023016040518163ffffffff1660e01b81526004016040805180830381865afa158015612f2e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190612f529190614525565b600f54604051631b27b35960e21b81526004810191909152602481018290529092507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03169150636c9ecd6490604401600060405180830381600087803b158015612fc357600080fd5b505af1158015612fd7573d6000803e3d6000fd5b505060006010819055600f5550505050565b612ff16141e0565b601f81905542602081815560408051848152918201929092527f8ff92b4fa51728d3b3bebd82f5bcfa8904b0278abbce025a1e33aaf9719fdb0d9101610e64565b61303a6141e0565b601c546000811161305d5760405162461bcd60e51b8152600401610c0390614390565b60295461306a82426143be565b10156130885760405162461bcd60e51b8152600401610c03906143e5565b7ffc88a5167b8569e72b62f4b76b3caae7699e46c7f6f16a8d011b135ac613acc4601b546040516130bb91815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613150573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131749190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156131d6573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906131fa9190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa15801561325c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906132809190614467565b604001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa1580156132e2573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906133069190614467565b60600151601b546040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b15801561336057600080fd5b505af1158015613374573d6000803e3d6000fd5b50506000601c819055601b55505050565b61338d6141e0565b60648111156133d55760405162461bcd60e51b815260206004820152601460248201527304d6178696d756d2076616c7565206973203130360641b6044820152606401610c03565b600f8190554260108190556040805183815260208101929092527f2083937d69f065ceb929d6773c5d9fb29a9b1b523d38988f0649d016fef90ca19101610e64565b61341f6141e0565b602454600081116134425760405162461bcd60e51b8152600401610c0390614390565b60295461344f82426143be565b101561346d5760405162461bcd60e51b8152600401610c03906143e5565b7f41a5ecec84878dee7030f74af5f0b3debf08544fce106ab7ae670617dce7c11d6023546040516134a091815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa15801561350c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061353091906144e5565b6023546040516332239c3d60e21b8152600481018790526024810186905260448101859052606481019190915260848101829052949850929650909450909250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b1580156135bf57600080fd5b505af11580156135d3573d6000803e3d6000fd5b50506000602481905560235550505050505050565b6135f06141e0565b600654600081116136135760405162461bcd60e51b8152600401610c0390614390565b60295461362082426143be565b101561363e5760405162461bcd60e51b8152600401610c03906143e5565b6005546040516001600160a01b0390911681527fa1993af5a189ba5ad4155263c920cfee33ce0593a8eb231a13bb3ce6f39459e39060200160405180910390a160055460405163d0bcc0e360e01b81526001600160a01b0391821660048201527f00000000000000000000000000000000000000000000000000000000000000009091169063d0bcc0e390602401600060405180830381600087803b1580156136e657600080fd5b505af11580156136fa573d6000803e3d6000fd5b505060006006555050600580546001600160a01b031916905550565b6000610dc960225461423a565b61372b6141e0565b600780546001600160601b0319166001600160601b0383169081179091554260088190556040805192835260208301919091527f456911403e756f0141f9a154095c7495b7002db4f6b26a7ff03c4f09335abc4b9101610e64565b61378e6141e0565b602054600081116137b15760405162461bcd60e51b8152600401610c0390614390565b6029546137be82426143be565b10156137dc5760405162461bcd60e51b8152600401610c03906143e5565b7f9eb4413d73f3cae81d9e8ab119d94a8d2cd6b2564117c30f2112b972dcf84f96601f5460405161380f91815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa15801561387b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061389f91906144e5565b601f546040516332239c3d60e21b815260048101879052602481019190915260448101849052606481018390526084810182905294985091965094509250506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b15801561392c57600080fd5b505af1158015613940573d6000803e3d6000fd5b505060006020819055601f5550505050505050565b61395d6141e0565b6001600160a01b0381166139c35760405162461bcd60e51b815260206004820152602760248201527f4e65772077616c6c6574206f776e657220616464726573732063616e6e6f74206044820152666265207a65726f60c81b6064820152608401610c03565b600580546001600160a01b0319166001600160a01b0383169081179091554260068190556040805192835260208301919091527f5846df828808530e936deade5e664982029ee91c99d68236a8668e6b131d3fd89101610e64565b6000610dc9601c5461423a565b6000610dc960105461423a565b613a406141e0565b60006001600160a01b03167f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316631ae879e86040518163ffffffff1660e01b8152600401602060405180830381865afa158015613aa9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613acd9190614549565b6001600160a01b031614613b235760405162461bcd60e51b815260206004820181905260248201527f57616c6c6574204f776e657220616c726561647920696e697469616c697a65646044820152606401610c03565b6001600160a01b038116613b855760405162461bcd60e51b815260206004820152602360248201527f57616c6c6574204f776e657220616464726573732063616e6e6f74206265207a60448201526265726f60e81b6064820152608401610c03565b60405163d0bcc0e360e01b81526001600160a01b0382811660048301527f0000000000000000000000000000000000000000000000000000000000000000169063d0bcc0e390602401611960565b613bdb6141e0565b60265460008111613bfe5760405162461bcd60e51b8152600401610c0390614390565b602954613c0b82426143be565b1015613c295760405162461bcd60e51b8152600401610c03906143e5565b7ff726b0e44d3e6afe8ee19a31e1cd23b021e741b0ac8eb91cdc912b6eb5555152602554604051613c5c91815260200190565b60405180910390a16000806000807f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166388a595906040518163ffffffff1660e01b815260040160a060405180830381865afa158015613cc8573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613cec91906144e5565b506025546040516332239c3d60e21b8152600481018690526024810185905260448101849052606481018390526084810191909152939750919550935091506001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000169063c88e70f49060a401600060405180830381600087803b158015613d7957600080fd5b505af1158015613d8d573d6000803e3d6000fd5b50506000602681905560255550505050505050565b6000610dc960205461423a565b613db76141e0565b601a5460008111613dda5760405162461bcd60e51b8152600401610c0390614390565b602954613de782426143be565b1015613e055760405162461bcd60e51b8152600401610c03906143e5565b7ff0db347eb933ec2636808975682b1fd63249be20775411ced58d2fd61e0fe742601954604051613e3891815260200190565b60405180910390a17f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316638dcbdf4a7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613ecd573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ef19190614467565b600001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613f53573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613f779190614467565b602001517f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015613fd9573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613ffd9190614467565b604001516019547f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166308aa090b6040518163ffffffff1660e01b815260040160a060405180830381865afa158015614062573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906140869190614467565b608001516040516001600160e01b031960e088901b1681526004810195909552602485019390935260448401919091526064830152608482015260a401600060405180830381600087803b1580156140dd57600080fd5b505af11580156140f1573d6000803e3d6000fd5b50506000601a819055601955505050565b61410a6141e0565b6001600160a01b03811661416f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610c03565b61417881614290565b50565b6141836141e0565b6009805467ffffffffffffffff191667ffffffffffffffff831690811790915542600a8190556040805192835260208301919091527f98f756aaf5ba8f60be58f0b035a3a5f54bdfbc5d1ada450c235b9e500625df389101610e64565b6000546001600160a01b03163314611cab5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610c03565b600080821161425b5760405162461bcd60e51b8152600401610c0390614390565b600061426783426143be565b9050602954811061427b5750600092915050565b8060295461428991906143be565b9392505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156142f257600080fd5b5035919050565b6001600160601b038116811461417857600080fd5b60006020828403121561432057600080fd5b8135614289816142f9565b67ffffffffffffffff8116811461417857600080fd5b60006020828403121561435357600080fd5b81356142898161432b565b6001600160a01b038116811461417857600080fd5b60006020828403121561438557600080fd5b81356142898161435e565b60208082526014908201527310da185b99d9481b9bdd081a5b9a5d1a585d195960621b604082015260600190565b818103818111156143df57634e487b7160e01b600052601160045260246000fd5b92915050565b6020808252818101527f476f7665726e616e63652064656c617920686173206e6f7420656c6170736564604082015260600190565b60008060006060848603121561442f57600080fd5b835161443a816142f9565b602085015190935061444b8161432b565b604085015190925061445c8161432b565b809150509250925092565b600060a0828403121561447957600080fd5b60405160a0810181811067ffffffffffffffff821117156144aa57634e487b7160e01b600052604160045260246000fd5b806040525082518152602083015160208201526040830151604082015260608301516060820152608083015160808201528091505092915050565b600080600080600060a086880312156144fd57600080fd5b5050835160208501516040860151606087015160809097015192989197509594509092509050565b6000806040838503121561453857600080fd5b505080516020909101519092909150565b60006020828403121561455b57600080fd5b81516142898161435e56fea2646970667358221220c1315453bb064763603bc0c5e3bf5cf0e06540377e5d5b11461e3c1fda263ee764736f6c63430008110033",
|
|
1997
|
+
"devdoc": {
|
|
1998
|
+
"kind": "dev",
|
|
1999
|
+
"methods": {
|
|
2000
|
+
"beginAuthorizationDecreaseChangePeriodUpdate(uint64)": {
|
|
2001
|
+
"details": "Can be called only by the contract owner.",
|
|
2002
|
+
"params": {
|
|
2003
|
+
"_newAuthorizationDecreaseChangePeriod": "New authorization decrease change period"
|
|
2004
|
+
}
|
|
2005
|
+
},
|
|
2006
|
+
"beginAuthorizationDecreaseDelayUpdate(uint64)": {
|
|
2007
|
+
"details": "Can be called only by the contract owner.",
|
|
2008
|
+
"params": {
|
|
2009
|
+
"_newAuthorizationDecreaseDelay": "New authorization decrease delay"
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"beginDkgResultApprovalGasOffsetUpdate(uint256)": {
|
|
2013
|
+
"details": "Can be called only by the contract owner.",
|
|
2014
|
+
"params": {
|
|
2015
|
+
"_newDkgResultApprovalGasOffset": "New DKG result approval gas."
|
|
2016
|
+
}
|
|
2017
|
+
},
|
|
2018
|
+
"beginDkgResultChallengeExtraGasUpdate(uint256)": {
|
|
2019
|
+
"details": "Can be called only by the contract owner.",
|
|
2020
|
+
"params": {
|
|
2021
|
+
"_newDkgResultChallengeExtraGas": "New DKG result challenge extra gas"
|
|
2022
|
+
}
|
|
2023
|
+
},
|
|
2024
|
+
"beginDkgResultChallengePeriodLengthUpdate(uint256)": {
|
|
2025
|
+
"details": "Can be called only by the contract owner.",
|
|
2026
|
+
"params": {
|
|
2027
|
+
"_newDkgResultChallengePeriodLength": "New DKG result challenge period length in blocks"
|
|
2028
|
+
}
|
|
2029
|
+
},
|
|
2030
|
+
"beginDkgResultSubmissionGasUpdate(uint256)": {
|
|
2031
|
+
"details": "Can be called only by the contract owner.",
|
|
2032
|
+
"params": {
|
|
2033
|
+
"_newDkgResultSubmissionGas": "New DKG result submission gas."
|
|
2034
|
+
}
|
|
2035
|
+
},
|
|
2036
|
+
"beginDkgResultSubmissionTimeoutUpdate(uint256)": {
|
|
2037
|
+
"details": "Can be called only by the contract owner.",
|
|
2038
|
+
"params": {
|
|
2039
|
+
"_newDkgResultSubmissionTimeout": "New DKG result submission timeout in blocks"
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"beginDkgSeedTimeoutUpdate(uint256)": {
|
|
2043
|
+
"details": "Can be called only by the contract owner.",
|
|
2044
|
+
"params": {
|
|
2045
|
+
"_newDkgSeedTimeout": "New DKG seed timeout in blocks"
|
|
2046
|
+
}
|
|
2047
|
+
},
|
|
2048
|
+
"beginDkgSubmitterPrecedencePeriodLengthUpdate(uint256)": {
|
|
2049
|
+
"details": "Can be called only by the contract owner.",
|
|
2050
|
+
"params": {
|
|
2051
|
+
"_newSubmitterPrecedencePeriodLength": "New DKG submitter precedence period length in blocks"
|
|
2052
|
+
}
|
|
2053
|
+
},
|
|
2054
|
+
"beginGovernanceDelayUpdate(uint256)": {
|
|
2055
|
+
"details": "Can be called only by the contract owner.",
|
|
2056
|
+
"params": {
|
|
2057
|
+
"_newGovernanceDelay": "New governance delay"
|
|
2058
|
+
}
|
|
2059
|
+
},
|
|
2060
|
+
"beginMaliciousDkgResultNotificationRewardMultiplierUpdate(uint256)": {
|
|
2061
|
+
"details": "Can be called only by the contract owner.",
|
|
2062
|
+
"params": {
|
|
2063
|
+
"_newMaliciousDkgResultNotificationRewardMultiplier": "New DKG malicious result notification reward multiplier."
|
|
2064
|
+
}
|
|
2065
|
+
},
|
|
2066
|
+
"beginMaliciousDkgResultSlashingAmountUpdate(uint96)": {
|
|
2067
|
+
"details": "Can be called only by the contract owner.",
|
|
2068
|
+
"params": {
|
|
2069
|
+
"_newMaliciousDkgResultSlashingAmount": "New malicious DKG result slashing amount"
|
|
2070
|
+
}
|
|
2071
|
+
},
|
|
2072
|
+
"beginMinimumAuthorizationUpdate(uint96)": {
|
|
2073
|
+
"details": "Can be called only by the contract owner.",
|
|
2074
|
+
"params": {
|
|
2075
|
+
"_newMinimumAuthorization": "New minimum authorization amount."
|
|
2076
|
+
}
|
|
2077
|
+
},
|
|
2078
|
+
"beginNotifyDkgTimeoutNegativeGasOffsetUpdate(uint256)": {
|
|
2079
|
+
"details": "Can be called only by the contract owner.",
|
|
2080
|
+
"params": {
|
|
2081
|
+
"_newNotifyDkgTimeoutNegativeGasOffset": "New DKG timeout negative gas notification gas offset"
|
|
2082
|
+
}
|
|
2083
|
+
},
|
|
2084
|
+
"beginNotifyOperatorInactivityGasOffsetUpdate(uint256)": {
|
|
2085
|
+
"details": "Can be called only by the contract owner.",
|
|
2086
|
+
"params": {
|
|
2087
|
+
"_newNotifyOperatorInactivityGasOffset": "New operator inactivity notification gas offset"
|
|
2088
|
+
}
|
|
2089
|
+
},
|
|
2090
|
+
"beginNotifySeedTimeoutGasOffsetUpdate(uint256)": {
|
|
2091
|
+
"details": "Can be called only by the contract owner.",
|
|
2092
|
+
"params": {
|
|
2093
|
+
"_newNotifySeedTimeoutGasOffset": "New seed for DKG delivery timeout notification gas offset"
|
|
2094
|
+
}
|
|
2095
|
+
},
|
|
2096
|
+
"beginReimbursementPoolUpdate(address)": {
|
|
2097
|
+
"details": "Can be called only by the contract owner.",
|
|
2098
|
+
"params": {
|
|
2099
|
+
"_newReimbursementPool": "New reimbursement pool."
|
|
2100
|
+
}
|
|
2101
|
+
},
|
|
2102
|
+
"beginSortitionPoolRewardsBanDurationUpdate(uint256)": {
|
|
2103
|
+
"details": "Can be called only by the contract owner.",
|
|
2104
|
+
"params": {
|
|
2105
|
+
"_newSortitionPoolRewardsBanDuration": "New sortition pool rewards ban duration."
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
"beginWalletOwnerUpdate(address)": {
|
|
2109
|
+
"details": "Can be called only by the contract owner.",
|
|
2110
|
+
"params": {
|
|
2111
|
+
"_newWalletOwner": "New wallet owner address"
|
|
2112
|
+
}
|
|
2113
|
+
},
|
|
2114
|
+
"beginWalletRegistryGovernanceTransfer(address)": {
|
|
2115
|
+
"details": "Can be called only by the contract owner."
|
|
2116
|
+
},
|
|
2117
|
+
"finalizeAuthorizationDecreaseChangePeriodUpdate()": {
|
|
2118
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2119
|
+
},
|
|
2120
|
+
"finalizeAuthorizationDecreaseDelayUpdate()": {
|
|
2121
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2122
|
+
},
|
|
2123
|
+
"finalizeDkgResultApprovalGasOffsetUpdate()": {
|
|
2124
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2125
|
+
},
|
|
2126
|
+
"finalizeDkgResultChallengeExtraGasUpdate()": {
|
|
2127
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2128
|
+
},
|
|
2129
|
+
"finalizeDkgResultChallengePeriodLengthUpdate()": {
|
|
2130
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2131
|
+
},
|
|
2132
|
+
"finalizeDkgResultSubmissionGasUpdate()": {
|
|
2133
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2134
|
+
},
|
|
2135
|
+
"finalizeDkgResultSubmissionTimeoutUpdate()": {
|
|
2136
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2137
|
+
},
|
|
2138
|
+
"finalizeDkgSeedTimeoutUpdate()": {
|
|
2139
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2140
|
+
},
|
|
2141
|
+
"finalizeDkgSubmitterPrecedencePeriodLengthUpdate()": {
|
|
2142
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2143
|
+
},
|
|
2144
|
+
"finalizeGovernanceDelayUpdate()": {
|
|
2145
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2146
|
+
},
|
|
2147
|
+
"finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate()": {
|
|
2148
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2149
|
+
},
|
|
2150
|
+
"finalizeMaliciousDkgResultSlashingAmountUpdate()": {
|
|
2151
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2152
|
+
},
|
|
2153
|
+
"finalizeMinimumAuthorizationUpdate()": {
|
|
2154
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2155
|
+
},
|
|
2156
|
+
"finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate()": {
|
|
2157
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2158
|
+
},
|
|
2159
|
+
"finalizeNotifyOperatorInactivityGasOffsetUpdate()": {
|
|
2160
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2161
|
+
},
|
|
2162
|
+
"finalizeNotifySeedTimeoutGasOffsetUpdate()": {
|
|
2163
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2164
|
+
},
|
|
2165
|
+
"finalizeReimbursementPoolUpdate()": {
|
|
2166
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2167
|
+
},
|
|
2168
|
+
"finalizeSortitionPoolRewardsBanDurationUpdate()": {
|
|
2169
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2170
|
+
},
|
|
2171
|
+
"finalizeWalletOwnerUpdate()": {
|
|
2172
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2173
|
+
},
|
|
2174
|
+
"finalizeWalletRegistryGovernanceTransfer()": {
|
|
2175
|
+
"details": "Can be called only by the contract owner, after the governance delay elapses."
|
|
2176
|
+
},
|
|
2177
|
+
"getRemainingAuthorizationDecreaseChangePeriodUpdateTime()": {
|
|
2178
|
+
"returns": {
|
|
2179
|
+
"_0": "Remaining time in seconds."
|
|
2180
|
+
}
|
|
2181
|
+
},
|
|
2182
|
+
"getRemainingAuthorizationDecreaseDelayUpdateTime()": {
|
|
2183
|
+
"returns": {
|
|
2184
|
+
"_0": "Remaining time in seconds."
|
|
2185
|
+
}
|
|
2186
|
+
},
|
|
2187
|
+
"getRemainingDkgResultApprovalGasOffsetUpdateTime()": {
|
|
2188
|
+
"returns": {
|
|
2189
|
+
"_0": "Remaining time in seconds."
|
|
2190
|
+
}
|
|
2191
|
+
},
|
|
2192
|
+
"getRemainingDkgResultChallengePeriodLengthUpdateTime()": {
|
|
2193
|
+
"returns": {
|
|
2194
|
+
"_0": "Remaining time in seconds."
|
|
2195
|
+
}
|
|
2196
|
+
},
|
|
2197
|
+
"getRemainingDkgResultSubmissionGasUpdateTime()": {
|
|
2198
|
+
"returns": {
|
|
2199
|
+
"_0": "Remaining time in seconds."
|
|
2200
|
+
}
|
|
2201
|
+
},
|
|
2202
|
+
"getRemainingDkgResultSubmissionTimeoutUpdateTime()": {
|
|
2203
|
+
"returns": {
|
|
2204
|
+
"_0": "Remaining time in seconds."
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"getRemainingDkgSeedTimeoutUpdateTime()": {
|
|
2208
|
+
"returns": {
|
|
2209
|
+
"_0": "Remaining time in seconds."
|
|
2210
|
+
}
|
|
2211
|
+
},
|
|
2212
|
+
"getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime()": {
|
|
2213
|
+
"returns": {
|
|
2214
|
+
"_0": "Remaining time in seconds."
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"getRemainingGovernanceDelayUpdateTime()": {
|
|
2218
|
+
"returns": {
|
|
2219
|
+
"_0": "Remaining time in seconds."
|
|
2220
|
+
}
|
|
2221
|
+
},
|
|
2222
|
+
"getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime()": {
|
|
2223
|
+
"returns": {
|
|
2224
|
+
"_0": "Remaining time in seconds."
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
"getRemainingMaliciousDkgResultSlashingAmountUpdateTime()": {
|
|
2228
|
+
"returns": {
|
|
2229
|
+
"_0": "Remaining time in seconds."
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2232
|
+
"getRemainingMimimumAuthorizationUpdateTime()": {
|
|
2233
|
+
"returns": {
|
|
2234
|
+
"_0": "Remaining time in seconds."
|
|
2235
|
+
}
|
|
2236
|
+
},
|
|
2237
|
+
"getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime()": {
|
|
2238
|
+
"returns": {
|
|
2239
|
+
"_0": "Remaining time in seconds."
|
|
2240
|
+
}
|
|
2241
|
+
},
|
|
2242
|
+
"getRemainingNotifyOperatorInactivityGasOffsetUpdateTime()": {
|
|
2243
|
+
"returns": {
|
|
2244
|
+
"_0": "Remaining time in seconds."
|
|
2245
|
+
}
|
|
2246
|
+
},
|
|
2247
|
+
"getRemainingNotifySeedTimeoutGasOffsetUpdateTime()": {
|
|
2248
|
+
"returns": {
|
|
2249
|
+
"_0": "Remaining time in seconds."
|
|
2250
|
+
}
|
|
2251
|
+
},
|
|
2252
|
+
"getRemainingReimbursementPoolUpdateTime()": {
|
|
2253
|
+
"returns": {
|
|
2254
|
+
"_0": "Remaining time in seconds."
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
"getRemainingSortitionPoolRewardsBanDurationUpdateTime()": {
|
|
2258
|
+
"returns": {
|
|
2259
|
+
"_0": "Remaining time in seconds."
|
|
2260
|
+
}
|
|
2261
|
+
},
|
|
2262
|
+
"getRemainingWalletOwnerUpdateTime()": {
|
|
2263
|
+
"returns": {
|
|
2264
|
+
"_0": "Remaining time in seconds."
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"getRemainingWalletRegistryGovernanceTransferDelayTime()": {
|
|
2268
|
+
"returns": {
|
|
2269
|
+
"_0": "Remaining time in seconds."
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
"initializeWalletOwner(address)": {
|
|
2273
|
+
"details": "Can be called only by the contract owner. It can be called only if walletOwner has not been set before. It doesn't enforce a governance delay for the initial update. Any subsequent updates should be performed with beginWalletOwnerUpdate/finalizeWalletOwnerUpdate with respect of a governance delay.",
|
|
2274
|
+
"params": {
|
|
2275
|
+
"_walletOwner": "The Wallet Owner's address"
|
|
2276
|
+
}
|
|
2277
|
+
},
|
|
2278
|
+
"owner()": {
|
|
2279
|
+
"details": "Returns the address of the current owner."
|
|
2280
|
+
},
|
|
2281
|
+
"renounceOwnership()": {
|
|
2282
|
+
"details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions anymore. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby removing any functionality that is only available to the owner."
|
|
2283
|
+
},
|
|
2284
|
+
"transferOwnership(address)": {
|
|
2285
|
+
"details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
|
|
2286
|
+
},
|
|
2287
|
+
"upgradeRandomBeacon(address)": {
|
|
2288
|
+
"details": "Can be called only by the contract owner.",
|
|
2289
|
+
"params": {
|
|
2290
|
+
"_newRandomBeacon": "New random beacon address"
|
|
2291
|
+
}
|
|
2292
|
+
},
|
|
2293
|
+
"withdrawIneligibleRewards(address)": {
|
|
2294
|
+
"details": "Can be called only by the contract owner.",
|
|
2295
|
+
"params": {
|
|
2296
|
+
"recipient": "Recipient of withdrawn rewards."
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
},
|
|
2300
|
+
"title": "Wallet Registry Governance",
|
|
2301
|
+
"version": 1
|
|
2302
|
+
},
|
|
2303
|
+
"userdoc": {
|
|
2304
|
+
"kind": "user",
|
|
2305
|
+
"methods": {
|
|
2306
|
+
"beginAuthorizationDecreaseChangePeriodUpdate(uint64)": {
|
|
2307
|
+
"notice": "Begins the authorization decrease change period update process."
|
|
2308
|
+
},
|
|
2309
|
+
"beginAuthorizationDecreaseDelayUpdate(uint64)": {
|
|
2310
|
+
"notice": "Begins the authorization decrease delay update process."
|
|
2311
|
+
},
|
|
2312
|
+
"beginDkgResultApprovalGasOffsetUpdate(uint256)": {
|
|
2313
|
+
"notice": "Begins the dkg approval gas offset update process."
|
|
2314
|
+
},
|
|
2315
|
+
"beginDkgResultChallengeExtraGasUpdate(uint256)": {
|
|
2316
|
+
"notice": "Begins the DKG result challenge extra gas update process."
|
|
2317
|
+
},
|
|
2318
|
+
"beginDkgResultChallengePeriodLengthUpdate(uint256)": {
|
|
2319
|
+
"notice": "Begins the DKG result challenge period length update process."
|
|
2320
|
+
},
|
|
2321
|
+
"beginDkgResultSubmissionGasUpdate(uint256)": {
|
|
2322
|
+
"notice": "Begins the dkg result submission gas update process."
|
|
2323
|
+
},
|
|
2324
|
+
"beginDkgResultSubmissionTimeoutUpdate(uint256)": {
|
|
2325
|
+
"notice": "Begins the DKG result submission timeout update process."
|
|
2326
|
+
},
|
|
2327
|
+
"beginDkgSeedTimeoutUpdate(uint256)": {
|
|
2328
|
+
"notice": "Begins the DKG seed timeout update process."
|
|
2329
|
+
},
|
|
2330
|
+
"beginDkgSubmitterPrecedencePeriodLengthUpdate(uint256)": {
|
|
2331
|
+
"notice": "Begins the DKG submitter precedence period length update process."
|
|
2332
|
+
},
|
|
2333
|
+
"beginGovernanceDelayUpdate(uint256)": {
|
|
2334
|
+
"notice": "Begins the governance delay update process."
|
|
2335
|
+
},
|
|
2336
|
+
"beginMaliciousDkgResultNotificationRewardMultiplierUpdate(uint256)": {
|
|
2337
|
+
"notice": "Begins the DKG malicious result notification reward multiplier update process."
|
|
2338
|
+
},
|
|
2339
|
+
"beginMaliciousDkgResultSlashingAmountUpdate(uint96)": {
|
|
2340
|
+
"notice": "Begins the malicious DKG result slashing amount update process."
|
|
2341
|
+
},
|
|
2342
|
+
"beginMinimumAuthorizationUpdate(uint96)": {
|
|
2343
|
+
"notice": "Begins the minimum authorization amount update process."
|
|
2344
|
+
},
|
|
2345
|
+
"beginNotifyDkgTimeoutNegativeGasOffsetUpdate(uint256)": {
|
|
2346
|
+
"notice": "Begins the notify DKG timeout negative gas offset update process."
|
|
2347
|
+
},
|
|
2348
|
+
"beginNotifyOperatorInactivityGasOffsetUpdate(uint256)": {
|
|
2349
|
+
"notice": "Begins the notify operator inactivity gas offset update process."
|
|
2350
|
+
},
|
|
2351
|
+
"beginNotifySeedTimeoutGasOffsetUpdate(uint256)": {
|
|
2352
|
+
"notice": "Begins the notify seed for DKG delivery timeout gas offset update process."
|
|
2353
|
+
},
|
|
2354
|
+
"beginReimbursementPoolUpdate(address)": {
|
|
2355
|
+
"notice": "Begins the reimbursement pool update process."
|
|
2356
|
+
},
|
|
2357
|
+
"beginSortitionPoolRewardsBanDurationUpdate(uint256)": {
|
|
2358
|
+
"notice": "Begins the sortition pool rewards ban duration update process."
|
|
2359
|
+
},
|
|
2360
|
+
"beginWalletOwnerUpdate(address)": {
|
|
2361
|
+
"notice": "Begins the wallet owner update process."
|
|
2362
|
+
},
|
|
2363
|
+
"beginWalletRegistryGovernanceTransfer(address)": {
|
|
2364
|
+
"notice": "Begins the wallet registry governance transfer process."
|
|
2365
|
+
},
|
|
2366
|
+
"finalizeAuthorizationDecreaseChangePeriodUpdate()": {
|
|
2367
|
+
"notice": "Finalizes the authorization decrease change period update process."
|
|
2368
|
+
},
|
|
2369
|
+
"finalizeAuthorizationDecreaseDelayUpdate()": {
|
|
2370
|
+
"notice": "Finalizes the authorization decrease delay update process."
|
|
2371
|
+
},
|
|
2372
|
+
"finalizeDkgResultApprovalGasOffsetUpdate()": {
|
|
2373
|
+
"notice": "Finalizes the dkg result approval gas offset update process."
|
|
2374
|
+
},
|
|
2375
|
+
"finalizeDkgResultChallengeExtraGasUpdate()": {
|
|
2376
|
+
"notice": "Finalizes the DKG result challenge extra gas update process."
|
|
2377
|
+
},
|
|
2378
|
+
"finalizeDkgResultChallengePeriodLengthUpdate()": {
|
|
2379
|
+
"notice": "Finalizes the DKG result challenge period length update process."
|
|
2380
|
+
},
|
|
2381
|
+
"finalizeDkgResultSubmissionGasUpdate()": {
|
|
2382
|
+
"notice": "Finalizes the dkg result submission gas update process."
|
|
2383
|
+
},
|
|
2384
|
+
"finalizeDkgResultSubmissionTimeoutUpdate()": {
|
|
2385
|
+
"notice": "Finalizes the DKG result submission timeout update process."
|
|
2386
|
+
},
|
|
2387
|
+
"finalizeDkgSeedTimeoutUpdate()": {
|
|
2388
|
+
"notice": "Finalizes the DKG seed timeout update process."
|
|
2389
|
+
},
|
|
2390
|
+
"finalizeDkgSubmitterPrecedencePeriodLengthUpdate()": {
|
|
2391
|
+
"notice": "Finalizes the DKG submitter precedence period length update process."
|
|
2392
|
+
},
|
|
2393
|
+
"finalizeGovernanceDelayUpdate()": {
|
|
2394
|
+
"notice": "Finalizes the governance delay update process."
|
|
2395
|
+
},
|
|
2396
|
+
"finalizeMaliciousDkgResultNotificationRewardMultiplierUpdate()": {
|
|
2397
|
+
"notice": "Finalizes the DKG malicious result notification reward multiplier update process."
|
|
2398
|
+
},
|
|
2399
|
+
"finalizeMaliciousDkgResultSlashingAmountUpdate()": {
|
|
2400
|
+
"notice": "Finalizes the malicious DKG result slashing amount update process."
|
|
2401
|
+
},
|
|
2402
|
+
"finalizeMinimumAuthorizationUpdate()": {
|
|
2403
|
+
"notice": "Finalizes the minimum authorization amount update process."
|
|
2404
|
+
},
|
|
2405
|
+
"finalizeNotifyDkgTimeoutNegativeGasOffsetUpdate()": {
|
|
2406
|
+
"notice": "Finalizes the notify DKG timeout negative gas offset update process."
|
|
2407
|
+
},
|
|
2408
|
+
"finalizeNotifyOperatorInactivityGasOffsetUpdate()": {
|
|
2409
|
+
"notice": "Finalizes the notify operator inactivity gas offset update process."
|
|
2410
|
+
},
|
|
2411
|
+
"finalizeNotifySeedTimeoutGasOffsetUpdate()": {
|
|
2412
|
+
"notice": "Finalizes the notify seed for DKG delivery timeout gas offset update process."
|
|
2413
|
+
},
|
|
2414
|
+
"finalizeReimbursementPoolUpdate()": {
|
|
2415
|
+
"notice": "Finalizes the reimbursement pool update process."
|
|
2416
|
+
},
|
|
2417
|
+
"finalizeSortitionPoolRewardsBanDurationUpdate()": {
|
|
2418
|
+
"notice": "Finalizes the sortition pool rewards ban duration update process."
|
|
2419
|
+
},
|
|
2420
|
+
"finalizeWalletOwnerUpdate()": {
|
|
2421
|
+
"notice": "Finalizes the wallet owner update process."
|
|
2422
|
+
},
|
|
2423
|
+
"finalizeWalletRegistryGovernanceTransfer()": {
|
|
2424
|
+
"notice": "Finalizes the wallet registry governance transfer process."
|
|
2425
|
+
},
|
|
2426
|
+
"getRemainingAuthorizationDecreaseChangePeriodUpdateTime()": {
|
|
2427
|
+
"notice": "Get the time remaining until the authorization decrease change period can be updated."
|
|
2428
|
+
},
|
|
2429
|
+
"getRemainingAuthorizationDecreaseDelayUpdateTime()": {
|
|
2430
|
+
"notice": "Get the time remaining until the authorization decrease delay can be updated."
|
|
2431
|
+
},
|
|
2432
|
+
"getRemainingDkgResultApprovalGasOffsetUpdateTime()": {
|
|
2433
|
+
"notice": "Get the time remaining until the dkg result approval gas offset can be updated."
|
|
2434
|
+
},
|
|
2435
|
+
"getRemainingDkgResultChallengePeriodLengthUpdateTime()": {
|
|
2436
|
+
"notice": "Get the time remaining until the DKG result challenge period length can be updated."
|
|
2437
|
+
},
|
|
2438
|
+
"getRemainingDkgResultSubmissionGasUpdateTime()": {
|
|
2439
|
+
"notice": "Get the time remaining until the dkg result submission gas can be updated."
|
|
2440
|
+
},
|
|
2441
|
+
"getRemainingDkgResultSubmissionTimeoutUpdateTime()": {
|
|
2442
|
+
"notice": "Get the time remaining until the DKG result submission timeout can be updated."
|
|
2443
|
+
},
|
|
2444
|
+
"getRemainingDkgSeedTimeoutUpdateTime()": {
|
|
2445
|
+
"notice": "Get the time remaining until the DKG seed timeout can be updated."
|
|
2446
|
+
},
|
|
2447
|
+
"getRemainingDkgSubmitterPrecedencePeriodLengthUpdateTime()": {
|
|
2448
|
+
"notice": "Get the time remaining until the wallet owner can be updated."
|
|
2449
|
+
},
|
|
2450
|
+
"getRemainingGovernanceDelayUpdateTime()": {
|
|
2451
|
+
"notice": "Get the time remaining until the governance delay can be updated."
|
|
2452
|
+
},
|
|
2453
|
+
"getRemainingMaliciousDkgResultNotificationRewardMultiplierUpdateTime()": {
|
|
2454
|
+
"notice": "Get the time remaining until the DKG malicious result notification reward multiplier duration can be updated."
|
|
2455
|
+
},
|
|
2456
|
+
"getRemainingMaliciousDkgResultSlashingAmountUpdateTime()": {
|
|
2457
|
+
"notice": "Get the time remaining until the malicious DKG result slashing amount can be updated."
|
|
2458
|
+
},
|
|
2459
|
+
"getRemainingMimimumAuthorizationUpdateTime()": {
|
|
2460
|
+
"notice": "Get the time remaining until the minimum authorization amount can be updated."
|
|
2461
|
+
},
|
|
2462
|
+
"getRemainingNotifyDkgTimeoutNegativeGasOffsetUpdateTime()": {
|
|
2463
|
+
"notice": "Get the time remaining until the DKG timeout negative gas offset can be updated."
|
|
2464
|
+
},
|
|
2465
|
+
"getRemainingNotifyOperatorInactivityGasOffsetUpdateTime()": {
|
|
2466
|
+
"notice": "Get the time remaining until the operator inactivity gas offset can be updated."
|
|
2467
|
+
},
|
|
2468
|
+
"getRemainingNotifySeedTimeoutGasOffsetUpdateTime()": {
|
|
2469
|
+
"notice": "Get the time remaining until the seed for DKG delivery timeout gas offset can be updated."
|
|
2470
|
+
},
|
|
2471
|
+
"getRemainingReimbursementPoolUpdateTime()": {
|
|
2472
|
+
"notice": "Get the time remaining until reimbursement pool can be updated."
|
|
2473
|
+
},
|
|
2474
|
+
"getRemainingSortitionPoolRewardsBanDurationUpdateTime()": {
|
|
2475
|
+
"notice": "Get the time remaining until the sortition pool rewards ban duration can be updated."
|
|
2476
|
+
},
|
|
2477
|
+
"getRemainingWalletOwnerUpdateTime()": {
|
|
2478
|
+
"notice": "Get the time remaining until the wallet owner can be updated."
|
|
2479
|
+
},
|
|
2480
|
+
"getRemainingWalletRegistryGovernanceTransferDelayTime()": {
|
|
2481
|
+
"notice": "Get the time remaining until the wallet registry governance can be transferred."
|
|
2482
|
+
},
|
|
2483
|
+
"initializeWalletOwner(address)": {
|
|
2484
|
+
"notice": "Initializes the Wallet Owner's address."
|
|
2485
|
+
},
|
|
2486
|
+
"upgradeRandomBeacon(address)": {
|
|
2487
|
+
"notice": "Upgrades the random beacon."
|
|
2488
|
+
},
|
|
2489
|
+
"withdrawIneligibleRewards(address)": {
|
|
2490
|
+
"notice": "Withdraws rewards belonging to operators marked as ineligible for sortition pool rewards."
|
|
2491
|
+
}
|
|
2492
|
+
},
|
|
2493
|
+
"notice": "Owns the `WalletRegistry` contract and is responsible for updating its governable parameters in respect to the governance delay.",
|
|
2494
|
+
"version": 1
|
|
2495
|
+
},
|
|
2496
|
+
"storageLayout": {
|
|
2497
|
+
"storage": [
|
|
2498
|
+
{
|
|
2499
|
+
"astId": 7320,
|
|
2500
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2501
|
+
"label": "_owner",
|
|
2502
|
+
"offset": 0,
|
|
2503
|
+
"slot": "0",
|
|
2504
|
+
"type": "t_address"
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
"astId": 15049,
|
|
2508
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2509
|
+
"label": "newGovernanceDelay",
|
|
2510
|
+
"offset": 0,
|
|
2511
|
+
"slot": "1",
|
|
2512
|
+
"type": "t_uint256"
|
|
2513
|
+
},
|
|
2514
|
+
{
|
|
2515
|
+
"astId": 15051,
|
|
2516
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2517
|
+
"label": "governanceDelayChangeInitiated",
|
|
2518
|
+
"offset": 0,
|
|
2519
|
+
"slot": "2",
|
|
2520
|
+
"type": "t_uint256"
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"astId": 15053,
|
|
2524
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2525
|
+
"label": "newWalletRegistryGovernance",
|
|
2526
|
+
"offset": 0,
|
|
2527
|
+
"slot": "3",
|
|
2528
|
+
"type": "t_address"
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
"astId": 15055,
|
|
2532
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2533
|
+
"label": "walletRegistryGovernanceTransferInitiated",
|
|
2534
|
+
"offset": 0,
|
|
2535
|
+
"slot": "4",
|
|
2536
|
+
"type": "t_uint256"
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
"astId": 15057,
|
|
2540
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2541
|
+
"label": "newWalletOwner",
|
|
2542
|
+
"offset": 0,
|
|
2543
|
+
"slot": "5",
|
|
2544
|
+
"type": "t_address"
|
|
2545
|
+
},
|
|
2546
|
+
{
|
|
2547
|
+
"astId": 15059,
|
|
2548
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2549
|
+
"label": "walletOwnerChangeInitiated",
|
|
2550
|
+
"offset": 0,
|
|
2551
|
+
"slot": "6",
|
|
2552
|
+
"type": "t_uint256"
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
"astId": 15061,
|
|
2556
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2557
|
+
"label": "newMinimumAuthorization",
|
|
2558
|
+
"offset": 0,
|
|
2559
|
+
"slot": "7",
|
|
2560
|
+
"type": "t_uint96"
|
|
2561
|
+
},
|
|
2562
|
+
{
|
|
2563
|
+
"astId": 15063,
|
|
2564
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2565
|
+
"label": "minimumAuthorizationChangeInitiated",
|
|
2566
|
+
"offset": 0,
|
|
2567
|
+
"slot": "8",
|
|
2568
|
+
"type": "t_uint256"
|
|
2569
|
+
},
|
|
2570
|
+
{
|
|
2571
|
+
"astId": 15065,
|
|
2572
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2573
|
+
"label": "newAuthorizationDecreaseDelay",
|
|
2574
|
+
"offset": 0,
|
|
2575
|
+
"slot": "9",
|
|
2576
|
+
"type": "t_uint64"
|
|
2577
|
+
},
|
|
2578
|
+
{
|
|
2579
|
+
"astId": 15067,
|
|
2580
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2581
|
+
"label": "authorizationDecreaseDelayChangeInitiated",
|
|
2582
|
+
"offset": 0,
|
|
2583
|
+
"slot": "10",
|
|
2584
|
+
"type": "t_uint256"
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"astId": 15069,
|
|
2588
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2589
|
+
"label": "newAuthorizationDecreaseChangePeriod",
|
|
2590
|
+
"offset": 0,
|
|
2591
|
+
"slot": "11",
|
|
2592
|
+
"type": "t_uint64"
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"astId": 15071,
|
|
2596
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2597
|
+
"label": "authorizationDecreaseChangePeriodChangeInitiated",
|
|
2598
|
+
"offset": 0,
|
|
2599
|
+
"slot": "12",
|
|
2600
|
+
"type": "t_uint256"
|
|
2601
|
+
},
|
|
2602
|
+
{
|
|
2603
|
+
"astId": 15073,
|
|
2604
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2605
|
+
"label": "newMaliciousDkgResultSlashingAmount",
|
|
2606
|
+
"offset": 0,
|
|
2607
|
+
"slot": "13",
|
|
2608
|
+
"type": "t_uint96"
|
|
2609
|
+
},
|
|
2610
|
+
{
|
|
2611
|
+
"astId": 15075,
|
|
2612
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2613
|
+
"label": "maliciousDkgResultSlashingAmountChangeInitiated",
|
|
2614
|
+
"offset": 0,
|
|
2615
|
+
"slot": "14",
|
|
2616
|
+
"type": "t_uint256"
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
"astId": 15077,
|
|
2620
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2621
|
+
"label": "newMaliciousDkgResultNotificationRewardMultiplier",
|
|
2622
|
+
"offset": 0,
|
|
2623
|
+
"slot": "15",
|
|
2624
|
+
"type": "t_uint256"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"astId": 15079,
|
|
2628
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2629
|
+
"label": "maliciousDkgResultNotificationRewardMultiplierChangeInitiated",
|
|
2630
|
+
"offset": 0,
|
|
2631
|
+
"slot": "16",
|
|
2632
|
+
"type": "t_uint256"
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
"astId": 15081,
|
|
2636
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2637
|
+
"label": "newSortitionPoolRewardsBanDuration",
|
|
2638
|
+
"offset": 0,
|
|
2639
|
+
"slot": "17",
|
|
2640
|
+
"type": "t_uint256"
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
"astId": 15083,
|
|
2644
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2645
|
+
"label": "sortitionPoolRewardsBanDurationChangeInitiated",
|
|
2646
|
+
"offset": 0,
|
|
2647
|
+
"slot": "18",
|
|
2648
|
+
"type": "t_uint256"
|
|
2649
|
+
},
|
|
2650
|
+
{
|
|
2651
|
+
"astId": 15085,
|
|
2652
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2653
|
+
"label": "newDkgSeedTimeout",
|
|
2654
|
+
"offset": 0,
|
|
2655
|
+
"slot": "19",
|
|
2656
|
+
"type": "t_uint256"
|
|
2657
|
+
},
|
|
2658
|
+
{
|
|
2659
|
+
"astId": 15087,
|
|
2660
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2661
|
+
"label": "dkgSeedTimeoutChangeInitiated",
|
|
2662
|
+
"offset": 0,
|
|
2663
|
+
"slot": "20",
|
|
2664
|
+
"type": "t_uint256"
|
|
2665
|
+
},
|
|
2666
|
+
{
|
|
2667
|
+
"astId": 15089,
|
|
2668
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2669
|
+
"label": "newDkgResultChallengePeriodLength",
|
|
2670
|
+
"offset": 0,
|
|
2671
|
+
"slot": "21",
|
|
2672
|
+
"type": "t_uint256"
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
"astId": 15091,
|
|
2676
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2677
|
+
"label": "dkgResultChallengePeriodLengthChangeInitiated",
|
|
2678
|
+
"offset": 0,
|
|
2679
|
+
"slot": "22",
|
|
2680
|
+
"type": "t_uint256"
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"astId": 15093,
|
|
2684
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2685
|
+
"label": "newDkgResultChallengeExtraGas",
|
|
2686
|
+
"offset": 0,
|
|
2687
|
+
"slot": "23",
|
|
2688
|
+
"type": "t_uint256"
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"astId": 15095,
|
|
2692
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2693
|
+
"label": "dkgResultChallengeExtraGasChangeInitiated",
|
|
2694
|
+
"offset": 0,
|
|
2695
|
+
"slot": "24",
|
|
2696
|
+
"type": "t_uint256"
|
|
2697
|
+
},
|
|
2698
|
+
{
|
|
2699
|
+
"astId": 15097,
|
|
2700
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2701
|
+
"label": "newDkgResultSubmissionTimeout",
|
|
2702
|
+
"offset": 0,
|
|
2703
|
+
"slot": "25",
|
|
2704
|
+
"type": "t_uint256"
|
|
2705
|
+
},
|
|
2706
|
+
{
|
|
2707
|
+
"astId": 15099,
|
|
2708
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2709
|
+
"label": "dkgResultSubmissionTimeoutChangeInitiated",
|
|
2710
|
+
"offset": 0,
|
|
2711
|
+
"slot": "26",
|
|
2712
|
+
"type": "t_uint256"
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
"astId": 15101,
|
|
2716
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2717
|
+
"label": "newSubmitterPrecedencePeriodLength",
|
|
2718
|
+
"offset": 0,
|
|
2719
|
+
"slot": "27",
|
|
2720
|
+
"type": "t_uint256"
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"astId": 15103,
|
|
2724
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2725
|
+
"label": "dkgSubmitterPrecedencePeriodLengthChangeInitiated",
|
|
2726
|
+
"offset": 0,
|
|
2727
|
+
"slot": "28",
|
|
2728
|
+
"type": "t_uint256"
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
"astId": 15105,
|
|
2732
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2733
|
+
"label": "newDkgResultSubmissionGas",
|
|
2734
|
+
"offset": 0,
|
|
2735
|
+
"slot": "29",
|
|
2736
|
+
"type": "t_uint256"
|
|
2737
|
+
},
|
|
2738
|
+
{
|
|
2739
|
+
"astId": 15107,
|
|
2740
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2741
|
+
"label": "dkgResultSubmissionGasChangeInitiated",
|
|
2742
|
+
"offset": 0,
|
|
2743
|
+
"slot": "30",
|
|
2744
|
+
"type": "t_uint256"
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
"astId": 15109,
|
|
2748
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2749
|
+
"label": "newDkgResultApprovalGasOffset",
|
|
2750
|
+
"offset": 0,
|
|
2751
|
+
"slot": "31",
|
|
2752
|
+
"type": "t_uint256"
|
|
2753
|
+
},
|
|
2754
|
+
{
|
|
2755
|
+
"astId": 15111,
|
|
2756
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2757
|
+
"label": "dkgResultApprovalGasOffsetChangeInitiated",
|
|
2758
|
+
"offset": 0,
|
|
2759
|
+
"slot": "32",
|
|
2760
|
+
"type": "t_uint256"
|
|
2761
|
+
},
|
|
2762
|
+
{
|
|
2763
|
+
"astId": 15113,
|
|
2764
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2765
|
+
"label": "newNotifyOperatorInactivityGasOffset",
|
|
2766
|
+
"offset": 0,
|
|
2767
|
+
"slot": "33",
|
|
2768
|
+
"type": "t_uint256"
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
"astId": 15115,
|
|
2772
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2773
|
+
"label": "notifyOperatorInactivityGasOffsetChangeInitiated",
|
|
2774
|
+
"offset": 0,
|
|
2775
|
+
"slot": "34",
|
|
2776
|
+
"type": "t_uint256"
|
|
2777
|
+
},
|
|
2778
|
+
{
|
|
2779
|
+
"astId": 15117,
|
|
2780
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2781
|
+
"label": "newNotifySeedTimeoutGasOffset",
|
|
2782
|
+
"offset": 0,
|
|
2783
|
+
"slot": "35",
|
|
2784
|
+
"type": "t_uint256"
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"astId": 15119,
|
|
2788
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2789
|
+
"label": "notifySeedTimeoutGasOffsetChangeInitiated",
|
|
2790
|
+
"offset": 0,
|
|
2791
|
+
"slot": "36",
|
|
2792
|
+
"type": "t_uint256"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"astId": 15121,
|
|
2796
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2797
|
+
"label": "newNotifyDkgTimeoutNegativeGasOffset",
|
|
2798
|
+
"offset": 0,
|
|
2799
|
+
"slot": "37",
|
|
2800
|
+
"type": "t_uint256"
|
|
2801
|
+
},
|
|
2802
|
+
{
|
|
2803
|
+
"astId": 15123,
|
|
2804
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2805
|
+
"label": "notifyDkgTimeoutNegativeGasOffsetChangeInitiated",
|
|
2806
|
+
"offset": 0,
|
|
2807
|
+
"slot": "38",
|
|
2808
|
+
"type": "t_uint256"
|
|
2809
|
+
},
|
|
2810
|
+
{
|
|
2811
|
+
"astId": 15125,
|
|
2812
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2813
|
+
"label": "newReimbursementPool",
|
|
2814
|
+
"offset": 0,
|
|
2815
|
+
"slot": "39",
|
|
2816
|
+
"type": "t_address_payable"
|
|
2817
|
+
},
|
|
2818
|
+
{
|
|
2819
|
+
"astId": 15127,
|
|
2820
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2821
|
+
"label": "reimbursementPoolChangeInitiated",
|
|
2822
|
+
"offset": 0,
|
|
2823
|
+
"slot": "40",
|
|
2824
|
+
"type": "t_uint256"
|
|
2825
|
+
},
|
|
2826
|
+
{
|
|
2827
|
+
"astId": 15132,
|
|
2828
|
+
"contract": "contracts/WalletRegistryGovernance.sol:WalletRegistryGovernance",
|
|
2829
|
+
"label": "governanceDelay",
|
|
2830
|
+
"offset": 0,
|
|
2831
|
+
"slot": "41",
|
|
2832
|
+
"type": "t_uint256"
|
|
2833
|
+
}
|
|
2834
|
+
],
|
|
2835
|
+
"types": {
|
|
2836
|
+
"t_address": {
|
|
2837
|
+
"encoding": "inplace",
|
|
2838
|
+
"label": "address",
|
|
2839
|
+
"numberOfBytes": "20"
|
|
2840
|
+
},
|
|
2841
|
+
"t_address_payable": {
|
|
2842
|
+
"encoding": "inplace",
|
|
2843
|
+
"label": "address payable",
|
|
2844
|
+
"numberOfBytes": "20"
|
|
2845
|
+
},
|
|
2846
|
+
"t_uint256": {
|
|
2847
|
+
"encoding": "inplace",
|
|
2848
|
+
"label": "uint256",
|
|
2849
|
+
"numberOfBytes": "32"
|
|
2850
|
+
},
|
|
2851
|
+
"t_uint64": {
|
|
2852
|
+
"encoding": "inplace",
|
|
2853
|
+
"label": "uint64",
|
|
2854
|
+
"numberOfBytes": "8"
|
|
2855
|
+
},
|
|
2856
|
+
"t_uint96": {
|
|
2857
|
+
"encoding": "inplace",
|
|
2858
|
+
"label": "uint96",
|
|
2859
|
+
"numberOfBytes": "12"
|
|
2860
|
+
}
|
|
2861
|
+
}
|
|
2862
|
+
}
|
|
2863
|
+
}
|