@keep-network/tbtc-v2 1.5.0-goerli.0 → 1.5.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/Bank.json +23 -23
- package/artifacts/Bridge.json +26 -39
- package/artifacts/BridgeGovernance.json +25 -25
- package/artifacts/BridgeGovernanceParameters.json +10 -10
- package/artifacts/Deposit.json +14 -14
- package/artifacts/DepositSweep.json +13 -13
- package/artifacts/DonationVault.json +14 -14
- package/artifacts/Fraud.json +13 -13
- package/artifacts/LightRelay.json +52 -70
- package/artifacts/LightRelayMaintainerProxy.json +28 -28
- package/artifacts/MaintainerProxy.json +47 -47
- package/artifacts/MovingFunds.json +13 -13
- package/artifacts/Redemption.json +13 -13
- package/artifacts/TBTC.json +36 -37
- package/artifacts/TBTCVault.json +47 -47
- package/artifacts/VendingMachine.json +34 -35
- package/artifacts/VendingMachineV2.json +360 -0
- package/artifacts/VendingMachineV3.json +405 -0
- package/artifacts/WalletCoordinator.json +58 -20
- package/artifacts/Wallets.json +13 -13
- package/artifacts/solcInputs/7cc3eda3cb3ff2522d18b5e7b31ea228.json +102 -0
- package/artifacts/solcInputs/802132f7da69a8a4226cb9424480847b.json +218 -0
- package/artifacts/solcInputs/{f862bd134ddc06352fa5be0644481600.json → 887fad6b16575ba42183543c324eeb0e.json} +6 -6
- package/artifacts/solcInputs/{037e4828b80945fc4739f966d98aa575.json → b0025f1f7efe4824592ac0c9793776c3.json} +3 -18
- package/artifacts/solcInputs/{bd85e9d9f3c6834572e1a00ba6963ba0.json → d71d4b4434e6669852eaf643ebd2a7bc.json} +2 -2
- package/artifacts/solcInputs/{deff85fc9ae9b5be07226c67809262df.json → fccb130292c8c7cc958ab4fa31a3e180.json} +3 -3
- package/build/contracts/GovernanceUtils.sol/GovernanceUtils.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/OutboundTx.dbg.json +1 -1
- package/build/contracts/bridge/Redemption.sol/Redemption.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/WalletCoordinator.sol/WalletCoordinator.dbg.json +1 -1
- package/build/contracts/bridge/Wallets.sol/Wallets.dbg.json +1 -1
- package/build/contracts/l2/L2TBTC.sol/L2TBTC.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +1 -1
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +2 -15
- 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/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/L2WormholeGateway.sol +7 -27
- package/deploy/81_upgrade_wallet_coordinator_v2.ts +99 -0
- package/export/artifacts/@keep-network/bitcoin-spv-sol/contracts/BTCUtils.sol/BTCUtils.json +20 -20
- package/export/artifacts/@keep-network/ecdsa/contracts/EcdsaDkgValidator.sol/EcdsaDkgValidator.json +2010 -2010
- package/export/artifacts/@keep-network/ecdsa/contracts/WalletRegistry.sol/WalletRegistry.json +383 -383
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +22 -22
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +1859 -1859
- package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +598 -598
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7381 -7381
- 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/bridge/WalletCoordinator.sol/WalletCoordinator.json +5563 -5563
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +40 -40
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +3064 -3532
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2454 -2454
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1941 -1941
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +1044 -1044
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +2 -2
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8422 -8422
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1943 -1943
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +2 -2
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2066 -2066
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +7 -7
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
- 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/WormholeBridgeStub.sol/WormholeBridgeStub.json +42 -42
- 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 +3525 -3525
- package/export/deploy/81_upgrade_wallet_coordinator_v2.js +140 -0
- package/export/hardhat.config.js +7 -0
- package/export/typechain/factories/EcdsaAuthorization__factory.js +1 -1
- package/export/typechain/factories/IStaking__factory.js +13 -0
- package/export/typechain/factories/L2WormholeGateway__factory.js +1 -14
- package/export/typechain/factories/WalletRegistry__factory.js +1 -1
- package/export/typechain/factories/WormholeBridgeStub__factory.js +1 -1
- package/export.json +267 -0
- package/package.json +5 -4
- package/artifacts/.DS_Store +0 -0
- 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/37_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_reimbursement_pool.js +0 -70
- package/export/deploy/40_authorize_light_relay_maintainer_proxy_in_light_relay.js +0 -66
package/export.json
CHANGED
|
@@ -11385,6 +11385,79 @@
|
|
|
11385
11385
|
"name": "OwnershipTransferred",
|
|
11386
11386
|
"type": "event"
|
|
11387
11387
|
},
|
|
11388
|
+
{
|
|
11389
|
+
"anonymous": false,
|
|
11390
|
+
"inputs": [
|
|
11391
|
+
{
|
|
11392
|
+
"indexed": false,
|
|
11393
|
+
"internalType": "uint32",
|
|
11394
|
+
"name": "redemptionProposalValidity",
|
|
11395
|
+
"type": "uint32"
|
|
11396
|
+
},
|
|
11397
|
+
{
|
|
11398
|
+
"indexed": false,
|
|
11399
|
+
"internalType": "uint32",
|
|
11400
|
+
"name": "redemptionRequestMinAge",
|
|
11401
|
+
"type": "uint32"
|
|
11402
|
+
},
|
|
11403
|
+
{
|
|
11404
|
+
"indexed": false,
|
|
11405
|
+
"internalType": "uint32",
|
|
11406
|
+
"name": "redemptionRequestTimeoutSafetyMargin",
|
|
11407
|
+
"type": "uint32"
|
|
11408
|
+
},
|
|
11409
|
+
{
|
|
11410
|
+
"indexed": false,
|
|
11411
|
+
"internalType": "uint16",
|
|
11412
|
+
"name": "redemptionMaxSize",
|
|
11413
|
+
"type": "uint16"
|
|
11414
|
+
},
|
|
11415
|
+
{
|
|
11416
|
+
"indexed": false,
|
|
11417
|
+
"internalType": "uint32",
|
|
11418
|
+
"name": "redemptionProposalSubmissionGasOffset",
|
|
11419
|
+
"type": "uint32"
|
|
11420
|
+
}
|
|
11421
|
+
],
|
|
11422
|
+
"name": "RedemptionProposalParametersUpdated",
|
|
11423
|
+
"type": "event"
|
|
11424
|
+
},
|
|
11425
|
+
{
|
|
11426
|
+
"anonymous": false,
|
|
11427
|
+
"inputs": [
|
|
11428
|
+
{
|
|
11429
|
+
"components": [
|
|
11430
|
+
{
|
|
11431
|
+
"internalType": "bytes20",
|
|
11432
|
+
"name": "walletPubKeyHash",
|
|
11433
|
+
"type": "bytes20"
|
|
11434
|
+
},
|
|
11435
|
+
{
|
|
11436
|
+
"internalType": "bytes[]",
|
|
11437
|
+
"name": "redeemersOutputScripts",
|
|
11438
|
+
"type": "bytes[]"
|
|
11439
|
+
},
|
|
11440
|
+
{
|
|
11441
|
+
"internalType": "uint256",
|
|
11442
|
+
"name": "redemptionTxFee",
|
|
11443
|
+
"type": "uint256"
|
|
11444
|
+
}
|
|
11445
|
+
],
|
|
11446
|
+
"indexed": false,
|
|
11447
|
+
"internalType": "struct WalletCoordinator.RedemptionProposal",
|
|
11448
|
+
"name": "proposal",
|
|
11449
|
+
"type": "tuple"
|
|
11450
|
+
},
|
|
11451
|
+
{
|
|
11452
|
+
"indexed": true,
|
|
11453
|
+
"internalType": "address",
|
|
11454
|
+
"name": "coordinator",
|
|
11455
|
+
"type": "address"
|
|
11456
|
+
}
|
|
11457
|
+
],
|
|
11458
|
+
"name": "RedemptionProposalSubmitted",
|
|
11459
|
+
"type": "event"
|
|
11460
|
+
},
|
|
11388
11461
|
{
|
|
11389
11462
|
"anonymous": false,
|
|
11390
11463
|
"inputs": [
|
|
@@ -11573,6 +11646,71 @@
|
|
|
11573
11646
|
"stateMutability": "view",
|
|
11574
11647
|
"type": "function"
|
|
11575
11648
|
},
|
|
11649
|
+
{
|
|
11650
|
+
"inputs": [],
|
|
11651
|
+
"name": "redemptionMaxSize",
|
|
11652
|
+
"outputs": [
|
|
11653
|
+
{
|
|
11654
|
+
"internalType": "uint16",
|
|
11655
|
+
"name": "",
|
|
11656
|
+
"type": "uint16"
|
|
11657
|
+
}
|
|
11658
|
+
],
|
|
11659
|
+
"stateMutability": "view",
|
|
11660
|
+
"type": "function"
|
|
11661
|
+
},
|
|
11662
|
+
{
|
|
11663
|
+
"inputs": [],
|
|
11664
|
+
"name": "redemptionProposalSubmissionGasOffset",
|
|
11665
|
+
"outputs": [
|
|
11666
|
+
{
|
|
11667
|
+
"internalType": "uint32",
|
|
11668
|
+
"name": "",
|
|
11669
|
+
"type": "uint32"
|
|
11670
|
+
}
|
|
11671
|
+
],
|
|
11672
|
+
"stateMutability": "view",
|
|
11673
|
+
"type": "function"
|
|
11674
|
+
},
|
|
11675
|
+
{
|
|
11676
|
+
"inputs": [],
|
|
11677
|
+
"name": "redemptionProposalValidity",
|
|
11678
|
+
"outputs": [
|
|
11679
|
+
{
|
|
11680
|
+
"internalType": "uint32",
|
|
11681
|
+
"name": "",
|
|
11682
|
+
"type": "uint32"
|
|
11683
|
+
}
|
|
11684
|
+
],
|
|
11685
|
+
"stateMutability": "view",
|
|
11686
|
+
"type": "function"
|
|
11687
|
+
},
|
|
11688
|
+
{
|
|
11689
|
+
"inputs": [],
|
|
11690
|
+
"name": "redemptionRequestMinAge",
|
|
11691
|
+
"outputs": [
|
|
11692
|
+
{
|
|
11693
|
+
"internalType": "uint32",
|
|
11694
|
+
"name": "",
|
|
11695
|
+
"type": "uint32"
|
|
11696
|
+
}
|
|
11697
|
+
],
|
|
11698
|
+
"stateMutability": "view",
|
|
11699
|
+
"type": "function"
|
|
11700
|
+
},
|
|
11701
|
+
{
|
|
11702
|
+
"inputs": [],
|
|
11703
|
+
"name": "redemptionRequestTimeoutSafetyMargin",
|
|
11704
|
+
"outputs": [
|
|
11705
|
+
{
|
|
11706
|
+
"internalType": "uint32",
|
|
11707
|
+
"name": "",
|
|
11708
|
+
"type": "uint32"
|
|
11709
|
+
}
|
|
11710
|
+
],
|
|
11711
|
+
"stateMutability": "view",
|
|
11712
|
+
"type": "function"
|
|
11713
|
+
},
|
|
11576
11714
|
{
|
|
11577
11715
|
"inputs": [],
|
|
11578
11716
|
"name": "reimbursementPool",
|
|
@@ -11736,6 +11874,66 @@
|
|
|
11736
11874
|
"stateMutability": "nonpayable",
|
|
11737
11875
|
"type": "function"
|
|
11738
11876
|
},
|
|
11877
|
+
{
|
|
11878
|
+
"inputs": [
|
|
11879
|
+
{
|
|
11880
|
+
"components": [
|
|
11881
|
+
{
|
|
11882
|
+
"internalType": "bytes20",
|
|
11883
|
+
"name": "walletPubKeyHash",
|
|
11884
|
+
"type": "bytes20"
|
|
11885
|
+
},
|
|
11886
|
+
{
|
|
11887
|
+
"internalType": "bytes[]",
|
|
11888
|
+
"name": "redeemersOutputScripts",
|
|
11889
|
+
"type": "bytes[]"
|
|
11890
|
+
},
|
|
11891
|
+
{
|
|
11892
|
+
"internalType": "uint256",
|
|
11893
|
+
"name": "redemptionTxFee",
|
|
11894
|
+
"type": "uint256"
|
|
11895
|
+
}
|
|
11896
|
+
],
|
|
11897
|
+
"internalType": "struct WalletCoordinator.RedemptionProposal",
|
|
11898
|
+
"name": "proposal",
|
|
11899
|
+
"type": "tuple"
|
|
11900
|
+
}
|
|
11901
|
+
],
|
|
11902
|
+
"name": "submitRedemptionProposal",
|
|
11903
|
+
"outputs": [],
|
|
11904
|
+
"stateMutability": "nonpayable",
|
|
11905
|
+
"type": "function"
|
|
11906
|
+
},
|
|
11907
|
+
{
|
|
11908
|
+
"inputs": [
|
|
11909
|
+
{
|
|
11910
|
+
"components": [
|
|
11911
|
+
{
|
|
11912
|
+
"internalType": "bytes20",
|
|
11913
|
+
"name": "walletPubKeyHash",
|
|
11914
|
+
"type": "bytes20"
|
|
11915
|
+
},
|
|
11916
|
+
{
|
|
11917
|
+
"internalType": "bytes[]",
|
|
11918
|
+
"name": "redeemersOutputScripts",
|
|
11919
|
+
"type": "bytes[]"
|
|
11920
|
+
},
|
|
11921
|
+
{
|
|
11922
|
+
"internalType": "uint256",
|
|
11923
|
+
"name": "redemptionTxFee",
|
|
11924
|
+
"type": "uint256"
|
|
11925
|
+
}
|
|
11926
|
+
],
|
|
11927
|
+
"internalType": "struct WalletCoordinator.RedemptionProposal",
|
|
11928
|
+
"name": "proposal",
|
|
11929
|
+
"type": "tuple"
|
|
11930
|
+
}
|
|
11931
|
+
],
|
|
11932
|
+
"name": "submitRedemptionProposalWithReimbursement",
|
|
11933
|
+
"outputs": [],
|
|
11934
|
+
"stateMutability": "nonpayable",
|
|
11935
|
+
"type": "function"
|
|
11936
|
+
},
|
|
11739
11937
|
{
|
|
11740
11938
|
"inputs": [
|
|
11741
11939
|
{
|
|
@@ -11813,6 +12011,39 @@
|
|
|
11813
12011
|
"stateMutability": "nonpayable",
|
|
11814
12012
|
"type": "function"
|
|
11815
12013
|
},
|
|
12014
|
+
{
|
|
12015
|
+
"inputs": [
|
|
12016
|
+
{
|
|
12017
|
+
"internalType": "uint32",
|
|
12018
|
+
"name": "_redemptionProposalValidity",
|
|
12019
|
+
"type": "uint32"
|
|
12020
|
+
},
|
|
12021
|
+
{
|
|
12022
|
+
"internalType": "uint32",
|
|
12023
|
+
"name": "_redemptionRequestMinAge",
|
|
12024
|
+
"type": "uint32"
|
|
12025
|
+
},
|
|
12026
|
+
{
|
|
12027
|
+
"internalType": "uint32",
|
|
12028
|
+
"name": "_redemptionRequestTimeoutSafetyMargin",
|
|
12029
|
+
"type": "uint32"
|
|
12030
|
+
},
|
|
12031
|
+
{
|
|
12032
|
+
"internalType": "uint16",
|
|
12033
|
+
"name": "_redemptionMaxSize",
|
|
12034
|
+
"type": "uint16"
|
|
12035
|
+
},
|
|
12036
|
+
{
|
|
12037
|
+
"internalType": "uint32",
|
|
12038
|
+
"name": "_redemptionProposalSubmissionGasOffset",
|
|
12039
|
+
"type": "uint32"
|
|
12040
|
+
}
|
|
12041
|
+
],
|
|
12042
|
+
"name": "updateRedemptionProposalParameters",
|
|
12043
|
+
"outputs": [],
|
|
12044
|
+
"stateMutability": "nonpayable",
|
|
12045
|
+
"type": "function"
|
|
12046
|
+
},
|
|
11816
12047
|
{
|
|
11817
12048
|
"inputs": [
|
|
11818
12049
|
{
|
|
@@ -11933,6 +12164,42 @@
|
|
|
11933
12164
|
"stateMutability": "view",
|
|
11934
12165
|
"type": "function"
|
|
11935
12166
|
},
|
|
12167
|
+
{
|
|
12168
|
+
"inputs": [
|
|
12169
|
+
{
|
|
12170
|
+
"components": [
|
|
12171
|
+
{
|
|
12172
|
+
"internalType": "bytes20",
|
|
12173
|
+
"name": "walletPubKeyHash",
|
|
12174
|
+
"type": "bytes20"
|
|
12175
|
+
},
|
|
12176
|
+
{
|
|
12177
|
+
"internalType": "bytes[]",
|
|
12178
|
+
"name": "redeemersOutputScripts",
|
|
12179
|
+
"type": "bytes[]"
|
|
12180
|
+
},
|
|
12181
|
+
{
|
|
12182
|
+
"internalType": "uint256",
|
|
12183
|
+
"name": "redemptionTxFee",
|
|
12184
|
+
"type": "uint256"
|
|
12185
|
+
}
|
|
12186
|
+
],
|
|
12187
|
+
"internalType": "struct WalletCoordinator.RedemptionProposal",
|
|
12188
|
+
"name": "proposal",
|
|
12189
|
+
"type": "tuple"
|
|
12190
|
+
}
|
|
12191
|
+
],
|
|
12192
|
+
"name": "validateRedemptionProposal",
|
|
12193
|
+
"outputs": [
|
|
12194
|
+
{
|
|
12195
|
+
"internalType": "bool",
|
|
12196
|
+
"name": "",
|
|
12197
|
+
"type": "bool"
|
|
12198
|
+
}
|
|
12199
|
+
],
|
|
12200
|
+
"stateMutability": "view",
|
|
12201
|
+
"type": "function"
|
|
12202
|
+
},
|
|
11936
12203
|
{
|
|
11937
12204
|
"inputs": [
|
|
11938
12205
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keep-network/tbtc-v2",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"files": [
|
|
6
6
|
"artifacts/",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@keep-network/bitcoin-spv-sol": "3.4.0-solc-0.8",
|
|
35
|
-
"@keep-network/ecdsa": "
|
|
36
|
-
"@keep-network/random-beacon": "
|
|
37
|
-
"@keep-network/tbtc": "
|
|
35
|
+
"@keep-network/ecdsa": "2.0.0",
|
|
36
|
+
"@keep-network/random-beacon": "2.0.0",
|
|
37
|
+
"@keep-network/tbtc": "1.1.0",
|
|
38
38
|
"@openzeppelin/contracts": "^4.8.1",
|
|
39
39
|
"@openzeppelin/contracts-upgradeable": "^4.8.1",
|
|
40
40
|
"@thesis/solidity-contracts": "github:thesis/solidity-contracts#4985bcf"
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
"prettier-plugin-solidity": "^1.0.0-beta.19",
|
|
70
70
|
"solhint": "^3.3.7",
|
|
71
71
|
"solhint-config-keep": "github:keep-network/solhint-config-keep",
|
|
72
|
+
"solidity-docgen": "^0.6.0-beta.34",
|
|
72
73
|
"ts-node": "^10.4.0",
|
|
73
74
|
"typechain": "^6.1.0",
|
|
74
75
|
"typescript": "^4.5.4"
|
package/artifacts/.DS_Store
DELETED
|
Binary file
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var func = function (hre) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
41
|
-
var getNamedAccounts, helpers, _a, deployer, governance;
|
|
42
|
-
return __generator(this, function (_b) {
|
|
43
|
-
switch (_b.label) {
|
|
44
|
-
case 0:
|
|
45
|
-
getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
|
|
46
|
-
return [4 /*yield*/, getNamedAccounts()];
|
|
47
|
-
case 1:
|
|
48
|
-
_a = _b.sent(), deployer = _a.deployer, governance = _a.governance;
|
|
49
|
-
return [4 /*yield*/, helpers.ownable.transferOwnership("WalletCoordinator", governance, deployer)];
|
|
50
|
-
case 2:
|
|
51
|
-
_b.sent();
|
|
52
|
-
return [2 /*return*/];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
exports.default = func;
|
|
58
|
-
func.tags = ["TransferWalletCoordinatorOwnership"];
|
|
59
|
-
func.dependencies = ["WalletCoordinator"];
|
|
60
|
-
func.runAtTheEnd = true;
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var func = function (hre) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
41
|
-
var deployments, getNamedAccounts, helpers, deploy, deployer, ReimbursementPool, LightRelay, lightRelayMaintainerProxy;
|
|
42
|
-
return __generator(this, function (_a) {
|
|
43
|
-
switch (_a.label) {
|
|
44
|
-
case 0:
|
|
45
|
-
deployments = hre.deployments, getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
|
|
46
|
-
deploy = deployments.deploy;
|
|
47
|
-
return [4 /*yield*/, getNamedAccounts()];
|
|
48
|
-
case 1:
|
|
49
|
-
deployer = (_a.sent()).deployer;
|
|
50
|
-
return [4 /*yield*/, deployments.get("ReimbursementPool")];
|
|
51
|
-
case 2:
|
|
52
|
-
ReimbursementPool = _a.sent();
|
|
53
|
-
return [4 /*yield*/, deployments.get("LightRelay")];
|
|
54
|
-
case 3:
|
|
55
|
-
LightRelay = _a.sent();
|
|
56
|
-
return [4 /*yield*/, deploy("LightRelayMaintainerProxy", {
|
|
57
|
-
contract: "LightRelayMaintainerProxy",
|
|
58
|
-
from: deployer,
|
|
59
|
-
args: [LightRelay.address, ReimbursementPool.address],
|
|
60
|
-
log: true,
|
|
61
|
-
waitConfirmations: 1,
|
|
62
|
-
})];
|
|
63
|
-
case 4:
|
|
64
|
-
lightRelayMaintainerProxy = _a.sent();
|
|
65
|
-
if (!hre.network.tags.etherscan) return [3 /*break*/, 6];
|
|
66
|
-
return [4 /*yield*/, helpers.etherscan.verify(lightRelayMaintainerProxy)];
|
|
67
|
-
case 5:
|
|
68
|
-
_a.sent();
|
|
69
|
-
_a.label = 6;
|
|
70
|
-
case 6:
|
|
71
|
-
if (!hre.network.tags.tenderly) return [3 /*break*/, 8];
|
|
72
|
-
return [4 /*yield*/, hre.tenderly.verify({
|
|
73
|
-
name: "LightRelayMaintainerProxy",
|
|
74
|
-
address: lightRelayMaintainerProxy.address,
|
|
75
|
-
})];
|
|
76
|
-
case 7:
|
|
77
|
-
_a.sent();
|
|
78
|
-
_a.label = 8;
|
|
79
|
-
case 8: return [2 /*return*/];
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
});
|
|
83
|
-
};
|
|
84
|
-
exports.default = func;
|
|
85
|
-
func.tags = ["LightRelayMaintainerProxy"];
|
|
86
|
-
func.dependencies = ["LightRelay", "ReimbursementPool"];
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var hardhat_1 = require("hardhat");
|
|
40
|
-
var func = function (hre) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
42
|
-
var getNamedAccounts, deployments, execute, deployer, relayMaintainerMainnet;
|
|
43
|
-
return __generator(this, function (_a) {
|
|
44
|
-
switch (_a.label) {
|
|
45
|
-
case 0:
|
|
46
|
-
getNamedAccounts = hre.getNamedAccounts, deployments = hre.deployments;
|
|
47
|
-
execute = deployments.execute;
|
|
48
|
-
return [4 /*yield*/, getNamedAccounts()];
|
|
49
|
-
case 1:
|
|
50
|
-
deployer = (_a.sent()).deployer;
|
|
51
|
-
relayMaintainerMainnet = hardhat_1.ethers.utils.getAddress("0xCb6Ed7E78d27FDff28127F9CbD61d861F09a2324");
|
|
52
|
-
return [4 /*yield*/, execute("LightRelayMaintainerProxy", { from: deployer, log: true, waitConfirmations: 1 }, "authorize", relayMaintainerMainnet)];
|
|
53
|
-
case 2:
|
|
54
|
-
_a.sent();
|
|
55
|
-
return [2 /*return*/];
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
exports.default = func;
|
|
61
|
-
func.tags = ["LightRelayMaintainerProxyAuthorizeMaintainer"];
|
|
62
|
-
func.dependencies = ["LightRelayMaintainerProxy"];
|
|
63
|
-
func.skip = function (hre) { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
64
|
-
return [2 /*return*/, hre.network.name !== "mainnet"];
|
|
65
|
-
}); }); };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
-
function step(op) {
|
|
16
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
-
while (_) try {
|
|
18
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
-
switch (op[0]) {
|
|
21
|
-
case 0: case 1: t = op; break;
|
|
22
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
-
default:
|
|
26
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
-
if (t[2]) _.ops.pop();
|
|
31
|
-
_.trys.pop(); continue;
|
|
32
|
-
}
|
|
33
|
-
op = body.call(thisArg, _);
|
|
34
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
var func = function (hre) {
|
|
40
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
41
|
-
var getNamedAccounts, helpers, _a, deployer, governance;
|
|
42
|
-
return __generator(this, function (_b) {
|
|
43
|
-
switch (_b.label) {
|
|
44
|
-
case 0:
|
|
45
|
-
getNamedAccounts = hre.getNamedAccounts, helpers = hre.helpers;
|
|
46
|
-
return [4 /*yield*/, getNamedAccounts()];
|
|
47
|
-
case 1:
|
|
48
|
-
_a = _b.sent(), deployer = _a.deployer, governance = _a.governance;
|
|
49
|
-
return [4 /*yield*/, helpers.ownable.transferOwnership("LightRelayMaintainerProxy", governance, deployer)];
|
|
50
|
-
case 2:
|
|
51
|
-
_b.sent();
|
|
52
|
-
return [2 /*return*/];
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
};
|
|
57
|
-
exports.default = func;
|
|
58
|
-
func.tags = ["TransferLightRelayMaintainerProxyOwnership"];
|
|
59
|
-
func.dependencies = ["LightRelayMaintainerProxy"];
|
|
60
|
-
func.runAtTheEnd = true;
|