@keep-network/tbtc-v2 1.6.0-dev.15 → 1.6.0-dev.17
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 +3 -3
- 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 +3 -3
- 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/LightRelay.json +18 -18
- package/artifacts/LightRelayMaintainerProxy.json +8 -8
- package/artifacts/MaintainerProxy.json +19 -19
- package/artifacts/MovingFunds.json +2 -2
- 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 +3 -3
- package/artifacts/TBTCToken.json +3 -3
- package/artifacts/TBTCVault.json +23 -23
- 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/VendingMachineNuCypher.json +1 -1
- package/artifacts/VendingMachineV2.json +3 -3
- package/artifacts/VendingMachineV3.json +3 -3
- package/artifacts/WalletProposalValidator.json +2 -2
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{1788e81ec23cfa014c2c13441f296723.json → d86f3b9c8cafe2e77604a4fc30b88b09.json} +12 -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/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 +4 -0
- package/build/contracts/integrator/AbstractTBTCDepositor.sol/AbstractTBTCDepositor.json +113 -0
- package/build/contracts/integrator/IBridge.sol/IBridge.dbg.json +4 -0
- package/build/contracts/integrator/IBridge.sol/IBridge.json +172 -0
- package/build/contracts/integrator/IBridge.sol/IBridgeTypes.dbg.json +4 -0
- package/build/contracts/integrator/IBridge.sol/IBridgeTypes.json +10 -0
- package/build/contracts/integrator/ITBTCVault.sol/ITBTCVault.dbg.json +4 -0
- package/build/contracts/integrator/ITBTCVault.sol/ITBTCVault.json +48 -0
- 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/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/integrator/AbstractTBTCDepositor.sol +321 -0
- package/contracts/integrator/IBridge.sol +80 -0
- package/contracts/integrator/ITBTCVault.sol +28 -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 +1986 -1986
- 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 +1836 -1836
- package/export/artifacts/@keep-network/random-beacon/contracts/ReimbursementPool.sol/ReimbursementPool.json +545 -545
- 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 +2456 -2456
- 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 +568 -568
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/ProxyAdmin.sol/ProxyAdmin.json +603 -603
- package/export/artifacts/@openzeppelin/contracts/proxy/transparent/TransparentUpgradeableProxy.sol/TransparentUpgradeableProxy.json +1001 -1001
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +1877 -1877
- package/export/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/ERC20Upgradeable.sol/ERC20Upgradeable.json +654 -654
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/ERC20WithPermit.sol/ERC20WithPermit.json +2534 -2534
- package/export/artifacts/@thesis/solidity-contracts/contracts/token/MisfundRecovery.sol/MisfundRecovery.json +736 -736
- package/export/artifacts/contracts/bank/Bank.sol/Bank.json +1872 -1872
- package/export/artifacts/contracts/bridge/Bridge.sol/Bridge.json +7234 -7234
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1257 -1257
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +972 -972
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +1122 -1122
- package/export/artifacts/contracts/bridge/WalletProposalValidator.sol/WalletProposalValidator.json +5028 -5028
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +3002 -3002
- package/export/artifacts/contracts/l2/L2WormholeGateway.sol/L2WormholeGateway.json +2490 -2490
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2456 -2456
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1922 -1922
- package/export/artifacts/contracts/relay/LightRelayMaintainerProxy.sol/LightRelayMaintainerProxy.json +1013 -1013
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1874 -1874
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8259 -8259
- package/export/artifacts/contracts/test/HeartbeatStub.sol/HeartbeatStub.json +130 -130
- package/export/artifacts/contracts/test/LightRelayStub.sol/LightRelayStub.json +2047 -2047
- package/export/artifacts/contracts/test/ReceiveApprovalStub.sol/ReceiveApprovalStub.json +354 -354
- package/export/artifacts/contracts/test/SepoliaLightRelay.sol/SepoliaLightRelay.json +1924 -1924
- package/export/artifacts/contracts/test/SystemTestRelay.sol/SystemTestRelay.json +568 -568
- package/export/artifacts/contracts/test/TestBitcoinTx.sol/TestBitcoinTx.json +1249 -1249
- package/export/artifacts/contracts/test/TestERC20.sol/TestERC20.json +2291 -2291
- package/export/artifacts/contracts/test/TestERC721.sol/TestERC721.json +1698 -1698
- package/export/artifacts/contracts/test/TestEcdsaLib.sol/TestEcdsaLib.json +189 -189
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockBridge.json +6631 -0
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/MockTBTCVault.json +1523 -0
- package/export/artifacts/contracts/test/TestTBTCDepositor.sol/TestTBTCDepositor.json +11156 -0
- package/export/artifacts/contracts/test/WormholeBridgeStub.sol/WormholeBridgeStub.json +1447 -1447
- package/export/artifacts/contracts/token/TBTC.sol/TBTC.json +2847 -2847
- package/export/artifacts/contracts/vault/DonationVault.sol/DonationVault.json +858 -858
- package/export/artifacts/contracts/vault/TBTCVault.sol/TBTCVault.json +3489 -3489
- package/export/typechain/AbstractTBTCDepositor.js +2 -0
- package/export/typechain/IBridge.js +2 -0
- package/export/typechain/ITBTCVault.js +2 -0
- package/export/typechain/MockBridge.js +2 -0
- package/export/typechain/MockTBTCVault.js +2 -0
- package/export/typechain/TestTBTCDepositor.js +2 -0
- package/export/typechain/factories/AbstractTBTCDepositor__factory.js +124 -0
- package/export/typechain/factories/IBridge__factory.js +183 -0
- package/export/typechain/factories/ITBTCVault__factory.js +59 -0
- package/export/typechain/factories/MockBridge__factory.js +303 -0
- package/export/typechain/factories/MockTBTCVault__factory.js +166 -0
- package/export/typechain/factories/TestTBTCDepositor__factory.js +362 -0
- package/export/typechain/index.js +14 -1
- package/package.json +1 -1
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
18
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
|
+
if (!m) return o;
|
|
20
|
+
var i = m.call(o), r, ar = [], e;
|
|
21
|
+
try {
|
|
22
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
23
|
+
}
|
|
24
|
+
catch (error) { e = { error: error }; }
|
|
25
|
+
finally {
|
|
26
|
+
try {
|
|
27
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
+
}
|
|
29
|
+
finally { if (e) throw e.error; }
|
|
30
|
+
}
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
+
if (ar || !(i in from)) {
|
|
36
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
+
ar[i] = from[i];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.MockBridge__factory = void 0;
|
|
44
|
+
/* Autogenerated file. Do not edit manually. */
|
|
45
|
+
/* tslint:disable */
|
|
46
|
+
/* eslint-disable */
|
|
47
|
+
var ethers_1 = require("ethers");
|
|
48
|
+
var _abi = [
|
|
49
|
+
{
|
|
50
|
+
anonymous: false,
|
|
51
|
+
inputs: [
|
|
52
|
+
{
|
|
53
|
+
indexed: false,
|
|
54
|
+
internalType: "uint256",
|
|
55
|
+
name: "depositKey",
|
|
56
|
+
type: "uint256",
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
name: "DepositRevealed",
|
|
60
|
+
type: "event",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [],
|
|
64
|
+
name: "depositParameters",
|
|
65
|
+
outputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "uint64",
|
|
68
|
+
name: "depositDustThreshold",
|
|
69
|
+
type: "uint64",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "uint64",
|
|
73
|
+
name: "depositTreasuryFeeDivisor",
|
|
74
|
+
type: "uint64",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
internalType: "uint64",
|
|
78
|
+
name: "depositTxMaxFee",
|
|
79
|
+
type: "uint64",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
internalType: "uint32",
|
|
83
|
+
name: "depositRevealAheadPeriod",
|
|
84
|
+
type: "uint32",
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
stateMutability: "view",
|
|
88
|
+
type: "function",
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
inputs: [
|
|
92
|
+
{
|
|
93
|
+
internalType: "uint256",
|
|
94
|
+
name: "depositKey",
|
|
95
|
+
type: "uint256",
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
name: "deposits",
|
|
99
|
+
outputs: [
|
|
100
|
+
{
|
|
101
|
+
components: [
|
|
102
|
+
{
|
|
103
|
+
internalType: "address",
|
|
104
|
+
name: "depositor",
|
|
105
|
+
type: "address",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
internalType: "uint64",
|
|
109
|
+
name: "amount",
|
|
110
|
+
type: "uint64",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
internalType: "uint32",
|
|
114
|
+
name: "revealedAt",
|
|
115
|
+
type: "uint32",
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
internalType: "address",
|
|
119
|
+
name: "vault",
|
|
120
|
+
type: "address",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint64",
|
|
124
|
+
name: "treasuryFee",
|
|
125
|
+
type: "uint64",
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
internalType: "uint32",
|
|
129
|
+
name: "sweptAt",
|
|
130
|
+
type: "uint32",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
internalType: "bytes32",
|
|
134
|
+
name: "extraData",
|
|
135
|
+
type: "bytes32",
|
|
136
|
+
},
|
|
137
|
+
],
|
|
138
|
+
internalType: "struct IBridgeTypes.DepositRequest",
|
|
139
|
+
name: "",
|
|
140
|
+
type: "tuple",
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
stateMutability: "view",
|
|
144
|
+
type: "function",
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
inputs: [
|
|
148
|
+
{
|
|
149
|
+
components: [
|
|
150
|
+
{
|
|
151
|
+
internalType: "bytes4",
|
|
152
|
+
name: "version",
|
|
153
|
+
type: "bytes4",
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
internalType: "bytes",
|
|
157
|
+
name: "inputVector",
|
|
158
|
+
type: "bytes",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
internalType: "bytes",
|
|
162
|
+
name: "outputVector",
|
|
163
|
+
type: "bytes",
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
internalType: "bytes4",
|
|
167
|
+
name: "locktime",
|
|
168
|
+
type: "bytes4",
|
|
169
|
+
},
|
|
170
|
+
],
|
|
171
|
+
internalType: "struct IBridgeTypes.BitcoinTxInfo",
|
|
172
|
+
name: "fundingTx",
|
|
173
|
+
type: "tuple",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
components: [
|
|
177
|
+
{
|
|
178
|
+
internalType: "uint32",
|
|
179
|
+
name: "fundingOutputIndex",
|
|
180
|
+
type: "uint32",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
internalType: "bytes8",
|
|
184
|
+
name: "blindingFactor",
|
|
185
|
+
type: "bytes8",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
internalType: "bytes20",
|
|
189
|
+
name: "walletPubKeyHash",
|
|
190
|
+
type: "bytes20",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "bytes20",
|
|
194
|
+
name: "refundPubKeyHash",
|
|
195
|
+
type: "bytes20",
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
internalType: "bytes4",
|
|
199
|
+
name: "refundLocktime",
|
|
200
|
+
type: "bytes4",
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
internalType: "address",
|
|
204
|
+
name: "vault",
|
|
205
|
+
type: "address",
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
internalType: "struct IBridgeTypes.DepositRevealInfo",
|
|
209
|
+
name: "reveal",
|
|
210
|
+
type: "tuple",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "bytes32",
|
|
214
|
+
name: "extraData",
|
|
215
|
+
type: "bytes32",
|
|
216
|
+
},
|
|
217
|
+
],
|
|
218
|
+
name: "revealDepositWithExtraData",
|
|
219
|
+
outputs: [],
|
|
220
|
+
stateMutability: "nonpayable",
|
|
221
|
+
type: "function",
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
inputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "uint64",
|
|
227
|
+
name: "value",
|
|
228
|
+
type: "uint64",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
name: "setDepositTreasuryFeeDivisor",
|
|
232
|
+
outputs: [],
|
|
233
|
+
stateMutability: "nonpayable",
|
|
234
|
+
type: "function",
|
|
235
|
+
},
|
|
236
|
+
{
|
|
237
|
+
inputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "uint64",
|
|
240
|
+
name: "value",
|
|
241
|
+
type: "uint64",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
name: "setDepositTxMaxFee",
|
|
245
|
+
outputs: [],
|
|
246
|
+
stateMutability: "nonpayable",
|
|
247
|
+
type: "function",
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
inputs: [
|
|
251
|
+
{
|
|
252
|
+
internalType: "uint256",
|
|
253
|
+
name: "depositKey",
|
|
254
|
+
type: "uint256",
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
name: "sweepDeposit",
|
|
258
|
+
outputs: [],
|
|
259
|
+
stateMutability: "nonpayable",
|
|
260
|
+
type: "function",
|
|
261
|
+
},
|
|
262
|
+
];
|
|
263
|
+
var _bytecode = "0x6080604052600180546001600160801b0319166903e8000000000000003217905534801561002c57600080fd5b50610fc38061003c6000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c8063b036c1ee11610050578063b036c1ee14610218578063bc8d07ca1461026d578063c42b64d01461028057600080fd5b80630bce769d1461007757806386f01439146100ab578063b02c43d0146100be575b600080fd5b6100a9610085366004610d39565b6001805467ffffffffffffffff191667ffffffffffffffff92909216919091179055565b005b6100a96100b9366004610d63565b6102c1565b61018f6100cc366004610dcc565b6040805160e081018252600080825260208201819052918101829052606081018290526080810182905260a0810182905260c08101919091525060009081526020818152604091829020825160e08101845281546001600160a01b03808216835267ffffffffffffffff600160a01b80840482169685019690965263ffffffff600160e01b9384900481169785019790975260018501549182166060850152948104909416608083015290920490921660a082015260029091015460c082015290565b60405161020f9190600060e0820190506001600160a01b03808451168352602084015167ffffffffffffffff80821660208601526040860151915063ffffffff80831660408701528360608801511660608701528160808801511660808701528060a08801511660a08701525050505060c083015160c083015292915050565b60405180910390f35b6100a9610226366004610d39565b6001805467ffffffffffffffff90921668010000000000000000027fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff909216919091179055565b6100a961027b366004610dcc565b6105ff565b600154604080516000808252602082018190526801000000000000000090930467ffffffffffffffff1691810191909152606081019190915260800161020f565b60006103266102d36020860186610de5565b6102e06020870187610e0f565b6102ed6040890189610e0f565b6102fd60808b0160608c01610de5565b60405160200161031296959493929190610e56565b604051602081830303815290604052610718565b90506000816103386020860186610e98565b60405160200161035f92919091825260e01b6001600160e01b031916602082015260240190565b60408051808303601f190181529181528151602092830120600081815292839052912054909150600160e01b900463ffffffff16156103e55760405162461bcd60e51b815260206004820152601860248201527f4465706f73697420616c72656164792072657665616c6564000000000000000060448201526064015b60405180910390fd5b60006104476103f76020870187610e98565b63ffffffff1661040a6040890189610e0f565b8080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929392505061073f9050565b9050600061045482610923565b6040805160e0810182526000606082018190526080820181905260a080830182905260c08084019290925233835267ffffffffffffffff851660208401524263ffffffff1693830193909352929350916104b391908901908901610ebe565b6001600160a01b0316606082015260015467ffffffffffffffff166104d95760006104f0565b6001546104f09067ffffffffffffffff1683610efd565b67ffffffffffffffff90811660808301908152600060a0840181815260c085018a8152888352602083815260409384902087518154838a0151878b01516001600160a01b039384166001600160e01b031993841617600160a01b928c168302177bffffffffffffffffffffffffffffffffffffffffffffffffffffffff908116600160e01b63ffffffff938416810291909117875560608e01516001880180549d519b51919097169c9095169b909b1798909b1690910296909617909816979094169095029590951790915551600290920191909155518581527f629cb19e19d844f2e8dd8aa5de26f5072bb49e6286c5206ebd7302da1dabc417910160405180910390a15050505050505050565b600081815260208190526040812054600160e01b900463ffffffff1690036106695760405162461bcd60e51b815260206004820152601460248201527f4465706f736974206e6f742072657665616c656400000000000000000000000060448201526064016103dc565b600081815260208190526040902060010154600160e01b900463ffffffff16156106d55760405162461bcd60e51b815260206004820152601560248201527f4465706f73697420616c7265616479207377657074000000000000000000000060448201526064016103dc565b600090815260208190526040902060010180547bffffffffffffffffffffffffffffffffffffffffffffffffffffffff16600160e01b4263ffffffff1602179055565b60006020600083516020850160025afa50602060006020600060025afa5050600051919050565b606060008061074d856109a2565b9092509050600182016107c85760405162461bcd60e51b815260206004820152602260248201527f52656164206f76657272756e20647572696e6720566172496e7420706172736960448201527f6e6700000000000000000000000000000000000000000000000000000000000060648201526084016103dc565b8084106108175760405162461bcd60e51b815260206004820152601160248201527f566f75742072656164206f76657272756e00000000000000000000000000000060448201526064016103dc565b600080610825846001610f32565b905060005b868110156108ad5761083c88836109b9565b9250600019830361088f5760405162461bcd60e51b815260206004820152601a60248201527f42616420566172496e7420696e207363726970745075626b657900000000000060448201526064016103dc565b6108998383610f32565b9150806108a581610f45565b91505061082a565b506108b887826109b9565b9150600019820361090b5760405162461bcd60e51b815260206004820152601a60248201527f42616420566172496e7420696e207363726970745075626b657900000000000060448201526064016103dc565b610916878284610a26565b9450505050505b92915050565b60008061092f83610af4565b60c01c9050600061099a8264ff000000ff600882811c91821665ff000000ff009390911b92831617601090811b67ffffffffffffffff1666ff00ff00ff00ff9290921667ff00ff00ff00ff009093169290921790911c65ffff0000ffff1617602081811c91901b1790565b949350505050565b6000806109b0836000610b00565b91509150915091565b60006109c6826009610f32565b835110156109d7575060001961091d565b6000806109ee856109e9866008610f32565b610b00565b909250905060018201610a07576000199250505061091d565b80610a13836009610f32565b610a1d9190610f32565b95945050505050565b606081600003610a455750604080516020810190915260008152610aed565b6000610a518385610f32565b90508381118015610a63575080855110155b610aaf5760405162461bcd60e51b815260206004820152601360248201527f536c696365206f7574206f6620626f756e64730000000000000000000000000060448201526064016103dc565b604051915082604083010160405282825283850182038460208701018481015b80821015610ae857815183830152602082019150610acf565b505050505b9392505050565b600061091d8282610ca4565b6000806000610b0f8585610cb3565b90508060ff16600003610b44576000858581518110610b3057610b30610f5e565b016020015190935060f81c9150610c9d9050565b83610b50826001610f74565b60ff16610b5d9190610f32565b85511015610b745760001960009250925050610c9d565b60008160ff16600203610bb857610bad610b99610b92876001610f32565b8890610ca4565b62ffff0060e882901c1660f89190911c1790565b61ffff169050610c93565b8160ff16600403610c0757610bfa610bd4610b92876001610f32565b60d881901c63ff00ff001662ff00ff60e89290921c9190911617601081811b91901c1790565b63ffffffff169050610c93565b8160ff16600803610c9357610c86610c23610b92876001610f32565b60c01c64ff000000ff600882811c91821665ff000000ff009390911b92831617601090811b67ffffffffffffffff1666ff00ff00ff00ff9290921667ff00ff00ff00ff009093169290921790911c65ffff0000ffff1617602081811c91901b1790565b67ffffffffffffffff1690505b60ff909116925090505b9250929050565b6000610aed8383016020015190565b6000828281518110610cc757610cc7610f5e565b016020015160f81c60ff03610cde5750600861091d565b828281518110610cf057610cf0610f5e565b016020015160f81c60fe03610d075750600461091d565b828281518110610d1957610d19610f5e565b016020015160f81c60fd03610d305750600261091d565b50600092915050565b600060208284031215610d4b57600080fd5b813567ffffffffffffffff81168114610aed57600080fd5b6000806000838503610100811215610d7a57600080fd5b843567ffffffffffffffff811115610d9157600080fd5b850160808188031215610da357600080fd5b935060c0601f1982011215610db757600080fd5b5060208401915060e084013590509250925092565b600060208284031215610dde57600080fd5b5035919050565b600060208284031215610df757600080fd5b81356001600160e01b031981168114610aed57600080fd5b6000808335601e19843603018112610e2657600080fd5b83018035915067ffffffffffffffff821115610e4157600080fd5b602001915036819003821315610c9d57600080fd5b60006001600160e01b03198089168352868860048501378683016004810160008152868882375093169390920160048101939093525050600801949350505050565b600060208284031215610eaa57600080fd5b813563ffffffff81168114610aed57600080fd5b600060208284031215610ed057600080fd5b81356001600160a01b0381168114610aed57600080fd5b634e487b7160e01b600052601160045260246000fd5b600067ffffffffffffffff80841680610f2657634e487b7160e01b600052601260045260246000fd5b92169190910492915050565b8082018082111561091d5761091d610ee7565b600060018201610f5757610f57610ee7565b5060010190565b634e487b7160e01b600052603260045260246000fd5b60ff818116838216019081111561091d5761091d610ee756fea2646970667358221220aa1ce51ee20ed217c787fff9c60fd1c735c8780b3af9545469c71cf537dea8af64736f6c63430008110033";
|
|
264
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
265
|
+
var MockBridge__factory = /** @class */ (function (_super) {
|
|
266
|
+
__extends(MockBridge__factory, _super);
|
|
267
|
+
function MockBridge__factory() {
|
|
268
|
+
var args = [];
|
|
269
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
270
|
+
args[_i] = arguments[_i];
|
|
271
|
+
}
|
|
272
|
+
var _this = this;
|
|
273
|
+
if (isSuperArgs(args)) {
|
|
274
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
278
|
+
}
|
|
279
|
+
return _this;
|
|
280
|
+
}
|
|
281
|
+
MockBridge__factory.prototype.deploy = function (overrides) {
|
|
282
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
283
|
+
};
|
|
284
|
+
MockBridge__factory.prototype.getDeployTransaction = function (overrides) {
|
|
285
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
286
|
+
};
|
|
287
|
+
MockBridge__factory.prototype.attach = function (address) {
|
|
288
|
+
return _super.prototype.attach.call(this, address);
|
|
289
|
+
};
|
|
290
|
+
MockBridge__factory.prototype.connect = function (signer) {
|
|
291
|
+
return _super.prototype.connect.call(this, signer);
|
|
292
|
+
};
|
|
293
|
+
MockBridge__factory.createInterface = function () {
|
|
294
|
+
return new ethers_1.utils.Interface(_abi);
|
|
295
|
+
};
|
|
296
|
+
MockBridge__factory.connect = function (address, signerOrProvider) {
|
|
297
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
298
|
+
};
|
|
299
|
+
MockBridge__factory.bytecode = _bytecode;
|
|
300
|
+
MockBridge__factory.abi = _abi;
|
|
301
|
+
return MockBridge__factory;
|
|
302
|
+
}(ethers_1.ContractFactory));
|
|
303
|
+
exports.MockBridge__factory = MockBridge__factory;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
var __read = (this && this.__read) || function (o, n) {
|
|
18
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
19
|
+
if (!m) return o;
|
|
20
|
+
var i = m.call(o), r, ar = [], e;
|
|
21
|
+
try {
|
|
22
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
23
|
+
}
|
|
24
|
+
catch (error) { e = { error: error }; }
|
|
25
|
+
finally {
|
|
26
|
+
try {
|
|
27
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
28
|
+
}
|
|
29
|
+
finally { if (e) throw e.error; }
|
|
30
|
+
}
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
34
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
35
|
+
if (ar || !(i in from)) {
|
|
36
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
37
|
+
ar[i] = from[i];
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.MockTBTCVault__factory = void 0;
|
|
44
|
+
/* Autogenerated file. Do not edit manually. */
|
|
45
|
+
/* tslint:disable */
|
|
46
|
+
/* eslint-disable */
|
|
47
|
+
var ethers_1 = require("ethers");
|
|
48
|
+
var _abi = [
|
|
49
|
+
{
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
internalType: "uint256",
|
|
53
|
+
name: "depositKey",
|
|
54
|
+
type: "uint256",
|
|
55
|
+
},
|
|
56
|
+
],
|
|
57
|
+
name: "createOptimisticMintingRequest",
|
|
58
|
+
outputs: [],
|
|
59
|
+
stateMutability: "nonpayable",
|
|
60
|
+
type: "function",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
inputs: [
|
|
64
|
+
{
|
|
65
|
+
internalType: "uint256",
|
|
66
|
+
name: "depositKey",
|
|
67
|
+
type: "uint256",
|
|
68
|
+
},
|
|
69
|
+
],
|
|
70
|
+
name: "finalizeOptimisticMintingRequest",
|
|
71
|
+
outputs: [],
|
|
72
|
+
stateMutability: "nonpayable",
|
|
73
|
+
type: "function",
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
inputs: [],
|
|
77
|
+
name: "optimisticMintingFeeDivisor",
|
|
78
|
+
outputs: [
|
|
79
|
+
{
|
|
80
|
+
internalType: "uint32",
|
|
81
|
+
name: "",
|
|
82
|
+
type: "uint32",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
stateMutability: "view",
|
|
86
|
+
type: "function",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
internalType: "uint256",
|
|
92
|
+
name: "depositKey",
|
|
93
|
+
type: "uint256",
|
|
94
|
+
},
|
|
95
|
+
],
|
|
96
|
+
name: "optimisticMintingRequests",
|
|
97
|
+
outputs: [
|
|
98
|
+
{
|
|
99
|
+
internalType: "uint64",
|
|
100
|
+
name: "requestedAt",
|
|
101
|
+
type: "uint64",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
internalType: "uint64",
|
|
105
|
+
name: "finalizedAt",
|
|
106
|
+
type: "uint64",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
stateMutability: "nonpayable",
|
|
110
|
+
type: "function",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "uint32",
|
|
116
|
+
name: "value",
|
|
117
|
+
type: "uint32",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
name: "setOptimisticMintingFeeDivisor",
|
|
121
|
+
outputs: [],
|
|
122
|
+
stateMutability: "nonpayable",
|
|
123
|
+
type: "function",
|
|
124
|
+
},
|
|
125
|
+
];
|
|
126
|
+
var _bytecode = "0x60806040526001805463ffffffff1916606417905534801561002057600080fd5b5061038f806100306000396000f3fe608060405234801561001057600080fd5b50600436106100675760003560e01c80636c626aa4116100505780636c626aa4146100ab578063d5b0b0ce1461011a578063db4aa6cb1461014457600080fd5b806309b53f511461006c578063477ffd6514610096575b600080fd5b60015461007c9063ffffffff1681565b60405163ffffffff90911681526020015b60405180910390f35b6100a96100a4366004610313565b610157565b005b6100f96100b9366004610313565b6000908152602081815260409182902082518084019093525467ffffffffffffffff80821680855268010000000000000000909204169290910182905291565b6040805167ffffffffffffffff93841681529290911660208301520161008d565b6100a961012836600461032c565b6001805463ffffffff191663ffffffff92909216919091179055565b6100a9610152366004610313565b6101ed565b60008181526020819052604090205467ffffffffffffffff16156101c25760405162461bcd60e51b815260206004820152601660248201527f5265717565737420616c7265616479206578697374730000000000000000000060448201526064015b60405180910390fd5b6000908152602081905260409020805467ffffffffffffffff19164267ffffffffffffffff16179055565b60008181526020819052604081205467ffffffffffffffff1690036102545760405162461bcd60e51b815260206004820152601660248201527f5265717565737420646f6573206e6f742065786973740000000000000000000060448201526064016101b9565b60008181526020819052604090205468010000000000000000900467ffffffffffffffff16156102c65760405162461bcd60e51b815260206004820152601960248201527f5265717565737420616c72656164792066696e616c697a65640000000000000060448201526064016101b9565b600090815260208190526040902080547fffffffffffffffffffffffffffffffff0000000000000000ffffffffffffffff16680100000000000000004267ffffffffffffffff1602179055565b60006020828403121561032557600080fd5b5035919050565b60006020828403121561033e57600080fd5b813563ffffffff8116811461035257600080fd5b939250505056fea26469706673582212209b80a52859a14296f29043520eaa881083b71df713f690391d2f86716c670ce164736f6c63430008110033";
|
|
127
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
128
|
+
var MockTBTCVault__factory = /** @class */ (function (_super) {
|
|
129
|
+
__extends(MockTBTCVault__factory, _super);
|
|
130
|
+
function MockTBTCVault__factory() {
|
|
131
|
+
var args = [];
|
|
132
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
133
|
+
args[_i] = arguments[_i];
|
|
134
|
+
}
|
|
135
|
+
var _this = this;
|
|
136
|
+
if (isSuperArgs(args)) {
|
|
137
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
141
|
+
}
|
|
142
|
+
return _this;
|
|
143
|
+
}
|
|
144
|
+
MockTBTCVault__factory.prototype.deploy = function (overrides) {
|
|
145
|
+
return _super.prototype.deploy.call(this, overrides || {});
|
|
146
|
+
};
|
|
147
|
+
MockTBTCVault__factory.prototype.getDeployTransaction = function (overrides) {
|
|
148
|
+
return _super.prototype.getDeployTransaction.call(this, overrides || {});
|
|
149
|
+
};
|
|
150
|
+
MockTBTCVault__factory.prototype.attach = function (address) {
|
|
151
|
+
return _super.prototype.attach.call(this, address);
|
|
152
|
+
};
|
|
153
|
+
MockTBTCVault__factory.prototype.connect = function (signer) {
|
|
154
|
+
return _super.prototype.connect.call(this, signer);
|
|
155
|
+
};
|
|
156
|
+
MockTBTCVault__factory.createInterface = function () {
|
|
157
|
+
return new ethers_1.utils.Interface(_abi);
|
|
158
|
+
};
|
|
159
|
+
MockTBTCVault__factory.connect = function (address, signerOrProvider) {
|
|
160
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
161
|
+
};
|
|
162
|
+
MockTBTCVault__factory.bytecode = _bytecode;
|
|
163
|
+
MockTBTCVault__factory.abi = _abi;
|
|
164
|
+
return MockTBTCVault__factory;
|
|
165
|
+
}(ethers_1.ContractFactory));
|
|
166
|
+
exports.MockTBTCVault__factory = MockTBTCVault__factory;
|