@keep-network/tbtc-v2 0.1.1-dev.85 → 0.1.1-dev.88
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/Bank.json +3 -3
- package/artifacts/Bridge.json +5 -5
- package/artifacts/Deposit.json +2 -2
- package/artifacts/DepositSweep.json +2 -2
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +2 -2
- package/artifacts/Fraud.json +2 -2
- package/artifacts/KeepRegistry.json +1 -1
- package/artifacts/KeepStake.json +2 -2
- package/artifacts/KeepToken.json +2 -2
- package/artifacts/KeepTokenStaking.json +1 -1
- package/artifacts/MovingFunds.json +2 -2
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeaconStub.json +1 -1
- package/artifacts/Redemption.json +2 -2
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/Relay.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +252 -52
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +3 -3
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{0f79d51f4c2e0d6bf7d919933c677b91.json → 27ac4a57be279323111e8884efd59d76.json} +10 -10
- 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/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/Wallets.sol/Wallets.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/TBTCVault.sol/TBTCVault.dbg.json +1 -1
- package/build/contracts/vault/TBTCVault.sol/TBTCVault.json +167 -18
- package/contracts/vault/TBTCVault.sol +120 -33
- package/deploy/{03_transfer_roles.ts → 03_transfer_vending_machine_roles.ts} +1 -1
- package/deploy/{08_transfer_ownership.ts → 08_transfer_bank_ownership.ts} +1 -1
- package/deploy/09_transfer_tbtc_vault_ownership.ts +15 -0
- package/deploy/{09_transfer_governance.ts → 10_transfer_bridge_governance.ts} +1 -1
- package/deploy/{10_transfer_proxy_admin_ownership.ts → 11_transfer_proxy_admin_ownership.ts} +0 -0
- package/deploy/{11_deploy_proxy_admin_with_deputy.ts → 12_deploy_proxy_admin_with_deputy.ts} +0 -0
- package/export.json +165 -16
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { HardhatRuntimeEnvironment } from "hardhat/types"
|
|
2
|
+
import { DeployFunction } from "hardhat-deploy/types"
|
|
3
|
+
|
|
4
|
+
const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
|
|
5
|
+
const { getNamedAccounts, helpers } = hre
|
|
6
|
+
const { deployer, governance } = await getNamedAccounts()
|
|
7
|
+
|
|
8
|
+
await helpers.ownable.transferOwnership("TBTCVault", governance, deployer)
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default func
|
|
12
|
+
|
|
13
|
+
func.tags = ["TransferTBTCVaultOwnership"]
|
|
14
|
+
func.dependencies = ["TBTCVault"]
|
|
15
|
+
func.runAtTheEnd = true
|
package/deploy/{10_transfer_proxy_admin_ownership.ts → 11_transfer_proxy_admin_ownership.ts}
RENAMED
|
File without changes
|
package/deploy/{11_deploy_proxy_admin_with_deputy.ts → 12_deploy_proxy_admin_with_deputy.ts}
RENAMED
|
File without changes
|
package/export.json
CHANGED
|
@@ -16830,19 +16830,38 @@
|
|
|
16830
16830
|
"anonymous": false,
|
|
16831
16831
|
"inputs": [
|
|
16832
16832
|
{
|
|
16833
|
-
"indexed":
|
|
16833
|
+
"indexed": true,
|
|
16834
16834
|
"internalType": "address",
|
|
16835
|
-
"name": "
|
|
16835
|
+
"name": "to",
|
|
16836
16836
|
"type": "address"
|
|
16837
16837
|
},
|
|
16838
16838
|
{
|
|
16839
16839
|
"indexed": false,
|
|
16840
|
+
"internalType": "uint256",
|
|
16841
|
+
"name": "amount",
|
|
16842
|
+
"type": "uint256"
|
|
16843
|
+
}
|
|
16844
|
+
],
|
|
16845
|
+
"name": "Minted",
|
|
16846
|
+
"type": "event"
|
|
16847
|
+
},
|
|
16848
|
+
{
|
|
16849
|
+
"anonymous": false,
|
|
16850
|
+
"inputs": [
|
|
16851
|
+
{
|
|
16852
|
+
"indexed": true,
|
|
16840
16853
|
"internalType": "address",
|
|
16841
|
-
"name": "
|
|
16854
|
+
"name": "previousOwner",
|
|
16855
|
+
"type": "address"
|
|
16856
|
+
},
|
|
16857
|
+
{
|
|
16858
|
+
"indexed": true,
|
|
16859
|
+
"internalType": "address",
|
|
16860
|
+
"name": "newOwner",
|
|
16842
16861
|
"type": "address"
|
|
16843
16862
|
}
|
|
16844
16863
|
],
|
|
16845
|
-
"name": "
|
|
16864
|
+
"name": "OwnershipTransferred",
|
|
16846
16865
|
"type": "event"
|
|
16847
16866
|
},
|
|
16848
16867
|
{
|
|
@@ -16851,7 +16870,7 @@
|
|
|
16851
16870
|
{
|
|
16852
16871
|
"indexed": true,
|
|
16853
16872
|
"internalType": "address",
|
|
16854
|
-
"name": "
|
|
16873
|
+
"name": "from",
|
|
16855
16874
|
"type": "address"
|
|
16856
16875
|
},
|
|
16857
16876
|
{
|
|
@@ -16861,28 +16880,54 @@
|
|
|
16861
16880
|
"type": "uint256"
|
|
16862
16881
|
}
|
|
16863
16882
|
],
|
|
16864
|
-
"name": "
|
|
16883
|
+
"name": "Unminted",
|
|
16865
16884
|
"type": "event"
|
|
16866
16885
|
},
|
|
16867
16886
|
{
|
|
16868
16887
|
"anonymous": false,
|
|
16869
16888
|
"inputs": [
|
|
16870
16889
|
{
|
|
16871
|
-
"indexed":
|
|
16890
|
+
"indexed": false,
|
|
16872
16891
|
"internalType": "address",
|
|
16873
|
-
"name": "
|
|
16892
|
+
"name": "newVault",
|
|
16893
|
+
"type": "address"
|
|
16894
|
+
}
|
|
16895
|
+
],
|
|
16896
|
+
"name": "UpgradeFinalized",
|
|
16897
|
+
"type": "event"
|
|
16898
|
+
},
|
|
16899
|
+
{
|
|
16900
|
+
"anonymous": false,
|
|
16901
|
+
"inputs": [
|
|
16902
|
+
{
|
|
16903
|
+
"indexed": false,
|
|
16904
|
+
"internalType": "address",
|
|
16905
|
+
"name": "newVault",
|
|
16874
16906
|
"type": "address"
|
|
16875
16907
|
},
|
|
16876
16908
|
{
|
|
16877
16909
|
"indexed": false,
|
|
16878
16910
|
"internalType": "uint256",
|
|
16879
|
-
"name": "
|
|
16911
|
+
"name": "timestamp",
|
|
16880
16912
|
"type": "uint256"
|
|
16881
16913
|
}
|
|
16882
16914
|
],
|
|
16883
|
-
"name": "
|
|
16915
|
+
"name": "UpgradeInitiated",
|
|
16884
16916
|
"type": "event"
|
|
16885
16917
|
},
|
|
16918
|
+
{
|
|
16919
|
+
"inputs": [],
|
|
16920
|
+
"name": "UPGRADE_GOVERNANCE_DELAY",
|
|
16921
|
+
"outputs": [
|
|
16922
|
+
{
|
|
16923
|
+
"internalType": "uint256",
|
|
16924
|
+
"name": "",
|
|
16925
|
+
"type": "uint256"
|
|
16926
|
+
}
|
|
16927
|
+
],
|
|
16928
|
+
"stateMutability": "view",
|
|
16929
|
+
"type": "function"
|
|
16930
|
+
},
|
|
16886
16931
|
{
|
|
16887
16932
|
"inputs": [],
|
|
16888
16933
|
"name": "bank",
|
|
@@ -16898,15 +16943,22 @@
|
|
|
16898
16943
|
},
|
|
16899
16944
|
{
|
|
16900
16945
|
"inputs": [],
|
|
16901
|
-
"name": "
|
|
16902
|
-
"outputs": [
|
|
16946
|
+
"name": "finalizeUpgrade",
|
|
16947
|
+
"outputs": [],
|
|
16948
|
+
"stateMutability": "nonpayable",
|
|
16949
|
+
"type": "function"
|
|
16950
|
+
},
|
|
16951
|
+
{
|
|
16952
|
+
"inputs": [
|
|
16903
16953
|
{
|
|
16904
16954
|
"internalType": "address",
|
|
16905
|
-
"name": "",
|
|
16955
|
+
"name": "_newVault",
|
|
16906
16956
|
"type": "address"
|
|
16907
16957
|
}
|
|
16908
16958
|
],
|
|
16909
|
-
"
|
|
16959
|
+
"name": "initiateUpgrade",
|
|
16960
|
+
"outputs": [],
|
|
16961
|
+
"stateMutability": "nonpayable",
|
|
16910
16962
|
"type": "function"
|
|
16911
16963
|
},
|
|
16912
16964
|
{
|
|
@@ -16922,6 +16974,32 @@
|
|
|
16922
16974
|
"stateMutability": "nonpayable",
|
|
16923
16975
|
"type": "function"
|
|
16924
16976
|
},
|
|
16977
|
+
{
|
|
16978
|
+
"inputs": [],
|
|
16979
|
+
"name": "newVault",
|
|
16980
|
+
"outputs": [
|
|
16981
|
+
{
|
|
16982
|
+
"internalType": "address",
|
|
16983
|
+
"name": "",
|
|
16984
|
+
"type": "address"
|
|
16985
|
+
}
|
|
16986
|
+
],
|
|
16987
|
+
"stateMutability": "view",
|
|
16988
|
+
"type": "function"
|
|
16989
|
+
},
|
|
16990
|
+
{
|
|
16991
|
+
"inputs": [],
|
|
16992
|
+
"name": "owner",
|
|
16993
|
+
"outputs": [
|
|
16994
|
+
{
|
|
16995
|
+
"internalType": "address",
|
|
16996
|
+
"name": "",
|
|
16997
|
+
"type": "address"
|
|
16998
|
+
}
|
|
16999
|
+
],
|
|
17000
|
+
"stateMutability": "view",
|
|
17001
|
+
"type": "function"
|
|
17002
|
+
},
|
|
16925
17003
|
{
|
|
16926
17004
|
"inputs": [
|
|
16927
17005
|
{
|
|
@@ -17014,6 +17092,29 @@
|
|
|
17014
17092
|
"stateMutability": "nonpayable",
|
|
17015
17093
|
"type": "function"
|
|
17016
17094
|
},
|
|
17095
|
+
{
|
|
17096
|
+
"inputs": [
|
|
17097
|
+
{
|
|
17098
|
+
"internalType": "contract IERC20",
|
|
17099
|
+
"name": "token",
|
|
17100
|
+
"type": "address"
|
|
17101
|
+
},
|
|
17102
|
+
{
|
|
17103
|
+
"internalType": "address",
|
|
17104
|
+
"name": "recipient",
|
|
17105
|
+
"type": "address"
|
|
17106
|
+
},
|
|
17107
|
+
{
|
|
17108
|
+
"internalType": "uint256",
|
|
17109
|
+
"name": "amount",
|
|
17110
|
+
"type": "uint256"
|
|
17111
|
+
}
|
|
17112
|
+
],
|
|
17113
|
+
"name": "recoverERC20FromToken",
|
|
17114
|
+
"outputs": [],
|
|
17115
|
+
"stateMutability": "nonpayable",
|
|
17116
|
+
"type": "function"
|
|
17117
|
+
},
|
|
17017
17118
|
{
|
|
17018
17119
|
"inputs": [
|
|
17019
17120
|
{
|
|
@@ -17042,6 +17143,41 @@
|
|
|
17042
17143
|
"stateMutability": "nonpayable",
|
|
17043
17144
|
"type": "function"
|
|
17044
17145
|
},
|
|
17146
|
+
{
|
|
17147
|
+
"inputs": [
|
|
17148
|
+
{
|
|
17149
|
+
"internalType": "contract IERC721",
|
|
17150
|
+
"name": "token",
|
|
17151
|
+
"type": "address"
|
|
17152
|
+
},
|
|
17153
|
+
{
|
|
17154
|
+
"internalType": "address",
|
|
17155
|
+
"name": "recipient",
|
|
17156
|
+
"type": "address"
|
|
17157
|
+
},
|
|
17158
|
+
{
|
|
17159
|
+
"internalType": "uint256",
|
|
17160
|
+
"name": "tokenId",
|
|
17161
|
+
"type": "uint256"
|
|
17162
|
+
},
|
|
17163
|
+
{
|
|
17164
|
+
"internalType": "bytes",
|
|
17165
|
+
"name": "data",
|
|
17166
|
+
"type": "bytes"
|
|
17167
|
+
}
|
|
17168
|
+
],
|
|
17169
|
+
"name": "recoverERC721FromToken",
|
|
17170
|
+
"outputs": [],
|
|
17171
|
+
"stateMutability": "nonpayable",
|
|
17172
|
+
"type": "function"
|
|
17173
|
+
},
|
|
17174
|
+
{
|
|
17175
|
+
"inputs": [],
|
|
17176
|
+
"name": "renounceOwnership",
|
|
17177
|
+
"outputs": [],
|
|
17178
|
+
"stateMutability": "nonpayable",
|
|
17179
|
+
"type": "function"
|
|
17180
|
+
},
|
|
17045
17181
|
{
|
|
17046
17182
|
"inputs": [],
|
|
17047
17183
|
"name": "tbtcToken",
|
|
@@ -17059,11 +17195,11 @@
|
|
|
17059
17195
|
"inputs": [
|
|
17060
17196
|
{
|
|
17061
17197
|
"internalType": "address",
|
|
17062
|
-
"name": "
|
|
17198
|
+
"name": "newOwner",
|
|
17063
17199
|
"type": "address"
|
|
17064
17200
|
}
|
|
17065
17201
|
],
|
|
17066
|
-
"name": "
|
|
17202
|
+
"name": "transferOwnership",
|
|
17067
17203
|
"outputs": [],
|
|
17068
17204
|
"stateMutability": "nonpayable",
|
|
17069
17205
|
"type": "function"
|
|
@@ -17098,6 +17234,19 @@
|
|
|
17098
17234
|
"outputs": [],
|
|
17099
17235
|
"stateMutability": "nonpayable",
|
|
17100
17236
|
"type": "function"
|
|
17237
|
+
},
|
|
17238
|
+
{
|
|
17239
|
+
"inputs": [],
|
|
17240
|
+
"name": "upgradeInitiatedTimestamp",
|
|
17241
|
+
"outputs": [
|
|
17242
|
+
{
|
|
17243
|
+
"internalType": "uint256",
|
|
17244
|
+
"name": "",
|
|
17245
|
+
"type": "uint256"
|
|
17246
|
+
}
|
|
17247
|
+
],
|
|
17248
|
+
"stateMutability": "view",
|
|
17249
|
+
"type": "function"
|
|
17101
17250
|
}
|
|
17102
17251
|
]
|
|
17103
17252
|
}
|