@keep-network/tbtc-v2 1.2.0-dev.0 → 1.2.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/BLS.json +1 -1
- package/artifacts/Bank.json +8 -8
- package/artifacts/BeaconAuthorization.json +1 -1
- package/artifacts/BeaconDkg.json +1 -1
- package/artifacts/BeaconDkgValidator.json +1 -1
- package/artifacts/BeaconInactivity.json +1 -1
- package/artifacts/BeaconSortitionPool.json +3 -3
- package/artifacts/Bridge.json +5 -5
- package/artifacts/BridgeGovernance.json +2 -2
- package/artifacts/BridgeGovernanceParameters.json +2 -2
- package/artifacts/Deposit.json +2 -2
- package/artifacts/DepositSweep.json +2 -2
- package/artifacts/DonationVault.json +5 -5
- package/artifacts/EcdsaDkgValidator.json +1 -1
- package/artifacts/EcdsaInactivity.json +1 -1
- package/artifacts/EcdsaSortitionPool.json +3 -3
- 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/LightRelay.json +19 -19
- package/artifacts/MaintainerProxy.json +22 -22
- package/artifacts/MovingFunds.json +2 -2
- package/artifacts/NuCypherStakingEscrow.json +1 -1
- package/artifacts/NuCypherToken.json +2 -2
- package/artifacts/RandomBeacon.json +2 -2
- package/artifacts/RandomBeaconChaosnet.json +2 -2
- package/artifacts/RandomBeaconGovernance.json +2 -2
- package/artifacts/Redemption.json +2 -2
- package/artifacts/ReimbursementPool.json +2 -2
- package/artifacts/T.json +2 -2
- package/artifacts/TBTC.json +10 -10
- package/artifacts/TBTCToken.json +10 -10
- package/artifacts/TBTCVault.json +24 -24
- package/artifacts/TokenStaking.json +1 -1
- package/artifacts/TokenholderGovernor.json +9 -9
- package/artifacts/TokenholderTimelock.json +8 -8
- package/artifacts/VendingMachine.json +11 -11
- package/artifacts/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/VendingMachineV2.json +4 -4
- package/artifacts/VendingMachineV3.json +4 -4
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{b0025f1f7efe4824592ac0c9793776c3.json → 8445e3932e9b9683df0e9fb9258d7b11.json} +9 -0
- 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/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 +4 -0
- package/build/contracts/l2/L2WormholeGateway.sol/IWormholeTokenBridge.json +179 -0
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.dbg.json +4 -0
- package/build/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +430 -0
- 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/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 +389 -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 +1996 -1996
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaDkg.sol/EcdsaDkg.json +20 -20
- package/export/artifacts/@keep-network/ecdsa/contracts/libraries/EcdsaInactivity.sol/EcdsaInactivity.json +1846 -1846
- package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +571 -571
- package/export/artifacts/@keep-network/sortition-pools/contracts/Chaosnet.sol/Chaosnet.json +506 -506
- package/export/artifacts/@keep-network/sortition-pools/contracts/Rewards.sol/Rewards.json +23 -23
- package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionPool.sol/SortitionPool.json +2481 -2481
- package/export/artifacts/@keep-network/sortition-pools/contracts/SortitionTree.sol/SortitionTree.json +465 -465
- package/export/artifacts/@openzeppelin/contracts/proxy/ERC1967/ERC1967Proxy.sol/ERC1967Proxy.json +614 -614
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +640 -640
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1079 -1079
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +1945 -1945
- package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +696 -696
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +2613 -2613
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +779 -779
- package/export/artifacts/contracts/bank/Bank.sol/Bank.json +1949 -1949
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7365 -7365
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1359 -1359
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +1029 -1029
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +1181 -1181
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +3122 -3122
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +15104 -0
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2442 -2442
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1941 -1941
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1951 -1951
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8406 -8406
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1941 -1941
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +132 -132
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2066 -2066
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +354 -354
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +2370 -2370
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +1768 -1768
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +191 -191
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +8665 -0
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2949 -2949
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +866 -866
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +3525 -3525
- package/export/typechain/IWormholeTokenBridge.js +2 -0
- package/export/typechain/L2WormholeGateway.js +2 -0
- package/export/typechain/ReentrancyGuardUpgradeable.js +2 -0
- package/export/typechain/WormholeBridgeStub.js +2 -0
- package/export/typechain/factories/IWormholeTokenBridge__factory.js +190 -0
- package/export/typechain/factories/L2WormholeGateway__factory.js +509 -0
- package/export/typechain/factories/ReentrancyGuardUpgradeable__factory.js +35 -0
- package/export/typechain/factories/WormholeBridgeStub__factory.js +451 -0
- package/export/typechain/index.js +10 -2
- package/package.json +1 -1
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IWormholeTokenBridge__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "bytes",
|
|
13
|
+
name: "encodedVm",
|
|
14
|
+
type: "bytes",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "completeTransferWithPayload",
|
|
18
|
+
outputs: [
|
|
19
|
+
{
|
|
20
|
+
internalType: "bytes",
|
|
21
|
+
name: "",
|
|
22
|
+
type: "bytes",
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
stateMutability: "nonpayable",
|
|
26
|
+
type: "function",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
inputs: [
|
|
30
|
+
{
|
|
31
|
+
internalType: "bytes",
|
|
32
|
+
name: "encoded",
|
|
33
|
+
type: "bytes",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "parseTransferWithPayload",
|
|
37
|
+
outputs: [
|
|
38
|
+
{
|
|
39
|
+
components: [
|
|
40
|
+
{
|
|
41
|
+
internalType: "uint8",
|
|
42
|
+
name: "payloadID",
|
|
43
|
+
type: "uint8",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
internalType: "uint256",
|
|
47
|
+
name: "amount",
|
|
48
|
+
type: "uint256",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
internalType: "bytes32",
|
|
52
|
+
name: "tokenAddress",
|
|
53
|
+
type: "bytes32",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
internalType: "uint16",
|
|
57
|
+
name: "tokenChain",
|
|
58
|
+
type: "uint16",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
internalType: "bytes32",
|
|
62
|
+
name: "to",
|
|
63
|
+
type: "bytes32",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
internalType: "uint16",
|
|
67
|
+
name: "toChain",
|
|
68
|
+
type: "uint16",
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
internalType: "bytes32",
|
|
72
|
+
name: "fromAddress",
|
|
73
|
+
type: "bytes32",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
internalType: "bytes",
|
|
77
|
+
name: "payload",
|
|
78
|
+
type: "bytes",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
internalType: "struct IWormholeTokenBridge.TransferWithPayload",
|
|
82
|
+
name: "transfer",
|
|
83
|
+
type: "tuple",
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
stateMutability: "pure",
|
|
87
|
+
type: "function",
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
inputs: [
|
|
91
|
+
{
|
|
92
|
+
internalType: "address",
|
|
93
|
+
name: "token",
|
|
94
|
+
type: "address",
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
internalType: "uint256",
|
|
98
|
+
name: "amount",
|
|
99
|
+
type: "uint256",
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
internalType: "uint16",
|
|
103
|
+
name: "recipientChain",
|
|
104
|
+
type: "uint16",
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
internalType: "bytes32",
|
|
108
|
+
name: "recipient",
|
|
109
|
+
type: "bytes32",
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
internalType: "uint256",
|
|
113
|
+
name: "arbiterFee",
|
|
114
|
+
type: "uint256",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
internalType: "uint32",
|
|
118
|
+
name: "nonce",
|
|
119
|
+
type: "uint32",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "transferTokens",
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint64",
|
|
126
|
+
name: "sequence",
|
|
127
|
+
type: "uint64",
|
|
128
|
+
},
|
|
129
|
+
],
|
|
130
|
+
stateMutability: "payable",
|
|
131
|
+
type: "function",
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
inputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "address",
|
|
137
|
+
name: "token",
|
|
138
|
+
type: "address",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
internalType: "uint256",
|
|
142
|
+
name: "amount",
|
|
143
|
+
type: "uint256",
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
internalType: "uint16",
|
|
147
|
+
name: "recipientChain",
|
|
148
|
+
type: "uint16",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "bytes32",
|
|
152
|
+
name: "recipient",
|
|
153
|
+
type: "bytes32",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
internalType: "uint32",
|
|
157
|
+
name: "nonce",
|
|
158
|
+
type: "uint32",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "bytes",
|
|
162
|
+
name: "payload",
|
|
163
|
+
type: "bytes",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "transferTokensWithPayload",
|
|
167
|
+
outputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint64",
|
|
170
|
+
name: "sequence",
|
|
171
|
+
type: "uint64",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "payable",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
];
|
|
178
|
+
var IWormholeTokenBridge__factory = /** @class */ (function () {
|
|
179
|
+
function IWormholeTokenBridge__factory() {
|
|
180
|
+
}
|
|
181
|
+
IWormholeTokenBridge__factory.createInterface = function () {
|
|
182
|
+
return new ethers_1.utils.Interface(_abi);
|
|
183
|
+
};
|
|
184
|
+
IWormholeTokenBridge__factory.connect = function (address, signerOrProvider) {
|
|
185
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
186
|
+
};
|
|
187
|
+
IWormholeTokenBridge__factory.abi = _abi;
|
|
188
|
+
return IWormholeTokenBridge__factory;
|
|
189
|
+
}());
|
|
190
|
+
exports.IWormholeTokenBridge__factory = IWormholeTokenBridge__factory;
|