@keep-network/tbtc-v2 1.0.3-dev.1 → 1.0.3-dev.2
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/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 +18 -18
- package/artifacts/MaintainerProxy.json +19 -19
- 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 +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/VendingMachineKeep.json +1 -1
- package/artifacts/VendingMachineNuCypher.json +1 -1
- package/artifacts/VendingMachineV2.json +360 -0
- package/artifacts/VendingMachineV3.json +405 -0
- package/artifacts/WalletRegistry.json +5 -5
- package/artifacts/WalletRegistryGovernance.json +2 -2
- package/artifacts/Wallets.json +2 -2
- package/artifacts/solcInputs/{5835b0a74f2a5433fcfb8074d31a6e8a.json → b0025f1f7efe4824592ac0c9793776c3.json} +6 -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 +4 -0
- package/build/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +245 -0
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.dbg.json +4 -0
- package/build/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +282 -0
- 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/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/bridge/VendingMachineV2.sol +114 -0
- package/contracts/bridge/VendingMachineV3.sol +134 -0
- package/deploy/24_transfer_tbtc_ownership.ts +7 -14
- package/deploy/30_deploy_vending_machine_v2.ts +34 -0
- package/deploy/31_deploy_vending_machine_v3.ts +34 -0
- package/deploy/32_transfer_vending_machine_v2_ownership.ts +19 -0
- package/deploy/33_transfer_vending_machine_v3_ownership.ts +19 -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 +7083 -7083
- package/export/artifacts/contracts/bridge/VendingMachine.sol/VendingMachine.json +1257 -1257
- package/export/artifacts/contracts/bridge/VendingMachineV2.sol/VendingMachineV2.json +6199 -0
- package/export/artifacts/contracts/bridge/VendingMachineV3.sol/VendingMachineV3.json +7151 -0
- package/export/artifacts/contracts/l2/L2TBTC.sol/L2TBTC.json +3002 -3002
- package/export/artifacts/contracts/maintainer/MaintainerProxy.sol/MaintainerProxy.json +2393 -2393
- package/export/artifacts/contracts/relay/LightRelay.sol/LightRelay.json +1922 -1922
- package/export/artifacts/contracts/test/BankStub.sol/BankStub.json +1874 -1874
- package/export/artifacts/contracts/test/BridgeStub.sol/BridgeStub.json +8122 -8122
- package/export/artifacts/contracts/test/GoerliLightRelay.sol/GoerliLightRelay.json +1922 -1922
- 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/SystemTestRelay.sol/SystemTestRelay.json +568 -568
- 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/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 +3476 -3476
- package/export/deploy/24_transfer_tbtc_ownership.js +14 -14
- package/export/deploy/30_deploy_vending_machine_v2.js +86 -0
- package/export/deploy/31_deploy_vending_machine_v3.js +86 -0
- package/export/deploy/32_transfer_vending_machine_v2_ownership.js +60 -0
- package/export/deploy/33_transfer_vending_machine_v3_ownership.js +60 -0
- package/export/hardhat.config.js +5 -0
- package/export/typechain/VendingMachineV2.js +2 -0
- package/export/typechain/VendingMachineV3.js +2 -0
- package/export/typechain/factories/VendingMachineV2__factory.js +324 -0
- package/export/typechain/factories/VendingMachineV3__factory.js +361 -0
- package/export/typechain/index.js +5 -1
- package/package.json +1 -1
|
@@ -0,0 +1,361 @@
|
|
|
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.VendingMachineV3__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: "contract IERC20",
|
|
53
|
+
name: "_tbtcV1",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
internalType: "contract TBTC",
|
|
58
|
+
name: "_tbtcV2",
|
|
59
|
+
type: "address",
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
stateMutability: "nonpayable",
|
|
63
|
+
type: "constructor",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
anonymous: false,
|
|
67
|
+
inputs: [
|
|
68
|
+
{
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "address",
|
|
71
|
+
name: "from",
|
|
72
|
+
type: "address",
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
indexed: false,
|
|
76
|
+
internalType: "uint256",
|
|
77
|
+
name: "amount",
|
|
78
|
+
type: "uint256",
|
|
79
|
+
},
|
|
80
|
+
],
|
|
81
|
+
name: "Deposited",
|
|
82
|
+
type: "event",
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
anonymous: false,
|
|
86
|
+
inputs: [
|
|
87
|
+
{
|
|
88
|
+
indexed: true,
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "to",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
indexed: false,
|
|
95
|
+
internalType: "uint256",
|
|
96
|
+
name: "amount",
|
|
97
|
+
type: "uint256",
|
|
98
|
+
},
|
|
99
|
+
],
|
|
100
|
+
name: "Exchanged",
|
|
101
|
+
type: "event",
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
anonymous: false,
|
|
105
|
+
inputs: [
|
|
106
|
+
{
|
|
107
|
+
indexed: false,
|
|
108
|
+
internalType: "address",
|
|
109
|
+
name: "token",
|
|
110
|
+
type: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: false,
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "to",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
indexed: false,
|
|
120
|
+
internalType: "uint256",
|
|
121
|
+
name: "amount",
|
|
122
|
+
type: "uint256",
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
name: "FundsRecovered",
|
|
126
|
+
type: "event",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
anonymous: false,
|
|
130
|
+
inputs: [
|
|
131
|
+
{
|
|
132
|
+
indexed: true,
|
|
133
|
+
internalType: "address",
|
|
134
|
+
name: "previousOwner",
|
|
135
|
+
type: "address",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
indexed: true,
|
|
139
|
+
internalType: "address",
|
|
140
|
+
name: "newOwner",
|
|
141
|
+
type: "address",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "OwnershipTransferred",
|
|
145
|
+
type: "event",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
anonymous: false,
|
|
149
|
+
inputs: [
|
|
150
|
+
{
|
|
151
|
+
indexed: false,
|
|
152
|
+
internalType: "address",
|
|
153
|
+
name: "to",
|
|
154
|
+
type: "address",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
indexed: false,
|
|
158
|
+
internalType: "uint256",
|
|
159
|
+
name: "amount",
|
|
160
|
+
type: "uint256",
|
|
161
|
+
},
|
|
162
|
+
],
|
|
163
|
+
name: "TbtcV2Withdrawn",
|
|
164
|
+
type: "event",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
inputs: [
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "amount",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
name: "depositTbtcV2",
|
|
175
|
+
outputs: [],
|
|
176
|
+
stateMutability: "nonpayable",
|
|
177
|
+
type: "function",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
inputs: [
|
|
181
|
+
{
|
|
182
|
+
internalType: "uint256",
|
|
183
|
+
name: "amount",
|
|
184
|
+
type: "uint256",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
name: "exchange",
|
|
188
|
+
outputs: [],
|
|
189
|
+
stateMutability: "nonpayable",
|
|
190
|
+
type: "function",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
inputs: [],
|
|
194
|
+
name: "owner",
|
|
195
|
+
outputs: [
|
|
196
|
+
{
|
|
197
|
+
internalType: "address",
|
|
198
|
+
name: "",
|
|
199
|
+
type: "address",
|
|
200
|
+
},
|
|
201
|
+
],
|
|
202
|
+
stateMutability: "view",
|
|
203
|
+
type: "function",
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
inputs: [
|
|
207
|
+
{
|
|
208
|
+
internalType: "address",
|
|
209
|
+
name: "from",
|
|
210
|
+
type: "address",
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
internalType: "uint256",
|
|
214
|
+
name: "amount",
|
|
215
|
+
type: "uint256",
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
internalType: "address",
|
|
219
|
+
name: "token",
|
|
220
|
+
type: "address",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
internalType: "bytes",
|
|
224
|
+
name: "",
|
|
225
|
+
type: "bytes",
|
|
226
|
+
},
|
|
227
|
+
],
|
|
228
|
+
name: "receiveApproval",
|
|
229
|
+
outputs: [],
|
|
230
|
+
stateMutability: "nonpayable",
|
|
231
|
+
type: "function",
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
inputs: [
|
|
235
|
+
{
|
|
236
|
+
internalType: "contract IERC20",
|
|
237
|
+
name: "token",
|
|
238
|
+
type: "address",
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
internalType: "address",
|
|
242
|
+
name: "recipient",
|
|
243
|
+
type: "address",
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
internalType: "uint256",
|
|
247
|
+
name: "amount",
|
|
248
|
+
type: "uint256",
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
name: "recoverFunds",
|
|
252
|
+
outputs: [],
|
|
253
|
+
stateMutability: "nonpayable",
|
|
254
|
+
type: "function",
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
inputs: [],
|
|
258
|
+
name: "renounceOwnership",
|
|
259
|
+
outputs: [],
|
|
260
|
+
stateMutability: "nonpayable",
|
|
261
|
+
type: "function",
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
inputs: [],
|
|
265
|
+
name: "tbtcV1",
|
|
266
|
+
outputs: [
|
|
267
|
+
{
|
|
268
|
+
internalType: "contract IERC20",
|
|
269
|
+
name: "",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
],
|
|
273
|
+
stateMutability: "view",
|
|
274
|
+
type: "function",
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
inputs: [],
|
|
278
|
+
name: "tbtcV2",
|
|
279
|
+
outputs: [
|
|
280
|
+
{
|
|
281
|
+
internalType: "contract TBTC",
|
|
282
|
+
name: "",
|
|
283
|
+
type: "address",
|
|
284
|
+
},
|
|
285
|
+
],
|
|
286
|
+
stateMutability: "view",
|
|
287
|
+
type: "function",
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
inputs: [
|
|
291
|
+
{
|
|
292
|
+
internalType: "address",
|
|
293
|
+
name: "newOwner",
|
|
294
|
+
type: "address",
|
|
295
|
+
},
|
|
296
|
+
],
|
|
297
|
+
name: "transferOwnership",
|
|
298
|
+
outputs: [],
|
|
299
|
+
stateMutability: "nonpayable",
|
|
300
|
+
type: "function",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
inputs: [
|
|
304
|
+
{
|
|
305
|
+
internalType: "address",
|
|
306
|
+
name: "recipient",
|
|
307
|
+
type: "address",
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
internalType: "uint256",
|
|
311
|
+
name: "amount",
|
|
312
|
+
type: "uint256",
|
|
313
|
+
},
|
|
314
|
+
],
|
|
315
|
+
name: "withdrawTbtcV2",
|
|
316
|
+
outputs: [],
|
|
317
|
+
stateMutability: "nonpayable",
|
|
318
|
+
type: "function",
|
|
319
|
+
},
|
|
320
|
+
];
|
|
321
|
+
var _bytecode = "0x60c060405234801561001057600080fd5b506040516110d93803806110d983398101604081905261002f916100b7565b6100383361004f565b6001600160a01b039182166080521660a0526100f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100b457600080fd5b50565b600080604083850312156100ca57600080fd5b82516100d58161009f565b60208401519092506100e68161009f565b809150509250929050565b60805160a051610f7e61015b60003960008181610172015281816101d101528181610312015281816104d40152818161064f0152818161071b015261088701526000818160c801528181610391015281816105010152818161058b01526108520152610f7e6000f3fe608060405234801561001057600080fd5b50600436106100be5760003560e01c80638da5cb5b1161007657806395de5a411161005b57806395de5a411461016d578063d46219ee14610194578063f2fde38b146101a757600080fd5b80638da5cb5b146101495780638f4ffcb11461015a57600080fd5b80635d3590d5116100a75780635d3590d51461011b578063715018a61461012e5780638a9636141461013657600080fd5b80633678252f146100c35780635355655914610106575b600080fd5b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b610119610114366004610cfc565b6101ba565b005b610119610129366004610d2a565b6101c7565b6101196102df565b610119610144366004610d6b565b6102f3565b6000546001600160a01b03166100ea565b610119610168366004610d97565b6104ff565b6100ea7f000000000000000000000000000000000000000000000000000000000000000081565b6101196101a2366004610cfc565b610609565b6101196101b5366004610e36565b610677565b6101c43382610704565b50565b6101cf6108ae565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03160361027b5760405162461bcd60e51b815260206004820152603f60248201527f7442544320763220746f6b656e732063616e206e6f74206265207265636f766560448201527f7265642c2075736520776974686472617754627463563220696e73746561640060648201526084015b60405180910390fd5b604080516001600160a01b038086168252841660208201529081018290527f13e06184555481b6d2cb327155e8d2e1d0b1f0252a7fe6621e32cf99881488359060600160405180910390a16102da6001600160a01b0384168383610908565b505050565b6102e76108ae565b6102f160006109b1565b565b6102fb6108ae565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa158015610361573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103859190610e5a565b61038f9190610e73565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b03166318160ddd6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156103ed573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104119190610e5a565b11156104855760405162461bcd60e51b815260206004820152602160248201527f74425443207631206d757374206e6f74206265206c65667420756e6261636b6560448201527f64000000000000000000000000000000000000000000000000000000000000006064820152608401610272565b604080516001600160a01b0384168152602081018390527f203ed6b401d271b305e85b1c1421e1aef411cb0acb1bcd87f625547e090261ad910160405180910390a16104fb6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383610908565b5050565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b0316146105805760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f7420744254432076310000000000000000000000006044820152606401610272565b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146105f85760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920744254432076312063616c6c657220616c6c6f77656400000000006044820152606401610272565b6106028585610704565b5050505050565b60408051338152602081018390527f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4910160405180910390a16101c46001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610a19565b61067f6108ae565b6001600160a01b0381166106fb5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610272565b6101c4816109b1565b6040516370a0823160e01b815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa15801561076a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061078e9190610e5a565b10156108025760405162461bcd60e51b815260206004820152603360248201527f4e6f7420656e6f756768207442544320763220617661696c61626c6520696e2060448201527f7468652056656e64696e67204d616368696e65000000000000000000000000006064820152608401610272565b816001600160a01b03167f6ea412b125ed242bc34c304877264761547306c2429c03d7fd1b477aa61a3f5d8260405161083d91815260200190565b60405180910390a261087a6001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016833084610a19565b6104fb6001600160a01b037f0000000000000000000000000000000000000000000000000000000000000000168383610908565b6000546001600160a01b031633146102f15760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610272565b6040516001600160a01b0383166024820152604481018290526102da9084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff0000000000000000000000000000000000000000000000000000000090931692909217909152610a70565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b0380851660248301528316604482015260648101829052610a6a9085907f23b872dd000000000000000000000000000000000000000000000000000000009060840161094d565b50505050565b6000610ac5826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b0316610b559092919063ffffffff16565b8051909150156102da5780806020019051810190610ae39190610eb3565b6102da5760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610272565b6060610b648484600085610b6c565b949350505050565b606082471015610be45760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610272565b600080866001600160a01b03168587604051610c009190610ef9565b60006040518083038185875af1925050503d8060008114610c3d576040519150601f19603f3d011682016040523d82523d6000602084013e610c42565b606091505b5091509150610c5387838387610c5e565b979650505050505050565b60608315610ccd578251600003610cc6576001600160a01b0385163b610cc65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610272565b5081610b64565b610b648383815115610ce25781518083602001fd5b8060405162461bcd60e51b81526004016102729190610f15565b600060208284031215610d0e57600080fd5b5035919050565b6001600160a01b03811681146101c457600080fd5b600080600060608486031215610d3f57600080fd5b8335610d4a81610d15565b92506020840135610d5a81610d15565b929592945050506040919091013590565b60008060408385031215610d7e57600080fd5b8235610d8981610d15565b946020939093013593505050565b600080600080600060808688031215610daf57600080fd5b8535610dba81610d15565b9450602086013593506040860135610dd181610d15565b9250606086013567ffffffffffffffff80821115610dee57600080fd5b818801915088601f830112610e0257600080fd5b813581811115610e1157600080fd5b896020828501011115610e2357600080fd5b9699959850939650602001949392505050565b600060208284031215610e4857600080fd5b8135610e5381610d15565b9392505050565b600060208284031215610e6c57600080fd5b5051919050565b81810381811115610ead577f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b92915050565b600060208284031215610ec557600080fd5b81518015158114610e5357600080fd5b60005b83811015610ef0578181015183820152602001610ed8565b50506000910152565b60008251610f0b818460208701610ed5565b9190910192915050565b6020815260008251806020840152610f34816040850160208701610ed5565b601f01601f1916919091016040019291505056fea26469706673582212200db484236e1da91f5f13f8216e7ca3faf20d1d632427f6e63f6ba0cffb70a3e864736f6c63430008110033";
|
|
322
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
323
|
+
var VendingMachineV3__factory = /** @class */ (function (_super) {
|
|
324
|
+
__extends(VendingMachineV3__factory, _super);
|
|
325
|
+
function VendingMachineV3__factory() {
|
|
326
|
+
var args = [];
|
|
327
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
328
|
+
args[_i] = arguments[_i];
|
|
329
|
+
}
|
|
330
|
+
var _this = this;
|
|
331
|
+
if (isSuperArgs(args)) {
|
|
332
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
336
|
+
}
|
|
337
|
+
return _this;
|
|
338
|
+
}
|
|
339
|
+
VendingMachineV3__factory.prototype.deploy = function (_tbtcV1, _tbtcV2, overrides) {
|
|
340
|
+
return _super.prototype.deploy.call(this, _tbtcV1, _tbtcV2, overrides || {});
|
|
341
|
+
};
|
|
342
|
+
VendingMachineV3__factory.prototype.getDeployTransaction = function (_tbtcV1, _tbtcV2, overrides) {
|
|
343
|
+
return _super.prototype.getDeployTransaction.call(this, _tbtcV1, _tbtcV2, overrides || {});
|
|
344
|
+
};
|
|
345
|
+
VendingMachineV3__factory.prototype.attach = function (address) {
|
|
346
|
+
return _super.prototype.attach.call(this, address);
|
|
347
|
+
};
|
|
348
|
+
VendingMachineV3__factory.prototype.connect = function (signer) {
|
|
349
|
+
return _super.prototype.connect.call(this, signer);
|
|
350
|
+
};
|
|
351
|
+
VendingMachineV3__factory.createInterface = function () {
|
|
352
|
+
return new ethers_1.utils.Interface(_abi);
|
|
353
|
+
};
|
|
354
|
+
VendingMachineV3__factory.connect = function (address, signerOrProvider) {
|
|
355
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
356
|
+
};
|
|
357
|
+
VendingMachineV3__factory.bytecode = _bytecode;
|
|
358
|
+
VendingMachineV3__factory.abi = _abi;
|
|
359
|
+
return VendingMachineV3__factory;
|
|
360
|
+
}(ethers_1.ContractFactory));
|
|
361
|
+
exports.VendingMachineV3__factory = VendingMachineV3__factory;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IERC20WithPermit__factory = exports.IApproveAndCall__factory = exports.ERC20WithPermit__factory = exports.IERC165__factory = exports.ERC165__factory = exports.IERC721Receiver__factory = exports.IERC721__factory = exports.IERC721Metadata__factory = exports.ERC721__factory = exports.IERC20__factory = exports.IERC20Metadata__factory = exports.IERC20Permit__factory = exports.TransparentUpgradeableProxy__factory = exports.ProxyAdmin__factory = exports.Proxy__factory = exports.ERC1967Upgrade__factory = exports.ERC1967Proxy__factory = exports.IBeacon__factory = exports.IERC1822Proxiable__factory = exports.Ownable__factory = exports.IERC165Upgradeable__factory = exports.EIP712Upgradeable__factory = exports.ContextUpgradeable__factory = exports.IERC721Upgradeable__factory = exports.IERC20Upgradeable__factory = exports.IERC20MetadataUpgradeable__factory = exports.ERC20BurnableUpgradeable__factory = exports.IERC20PermitUpgradeable__factory = exports.ERC20PermitUpgradeable__factory = exports.ERC20Upgradeable__factory = exports.PausableUpgradeable__factory = exports.Initializable__factory = exports.OwnableUpgradeable__factory = exports.SortitionTree__factory = exports.SortitionPool__factory = exports.Rewards__factory = exports.Chaosnet__factory = exports.ReimbursementPool__factory = exports.Reimbursable__factory = exports.Governable__factory = exports.IRandomBeaconConsumer__factory = exports.IRandomBeacon__factory = exports.WalletRegistry__factory = exports.EcdsaInactivity__factory = exports.EcdsaDkg__factory = exports.EcdsaAuthorization__factory = exports.EcdsaDkgValidator__factory = exports.IWalletRegistry__factory = exports.IWalletOwner__factory = exports.BTCUtils__factory = void 0;
|
|
4
|
-
exports.TBTCVault__factory = exports.TBTCOptimisticMinting__factory = exports.IVault__factory = exports.DonationVault__factory = exports.TBTC__factory = exports.TestERC721__factory = exports.TestERC20__factory = exports.TestEcdsaLib__factory = exports.SystemTestRelay__factory = exports.ReceiveApprovalStub__factory = exports.LightRelayStub__factory = exports.HeartbeatStub__factory = exports.GoerliLightRelay__factory = exports.BridgeStub__factory = exports.BankStub__factory = exports.LightRelay__factory = exports.ILightRelay__factory = exports.MaintainerProxy__factory = exports.L2TBTC__factory = exports.Wallets__factory = exports.VendingMachine__factory = exports.Redemption__factory = exports.MovingFunds__factory = exports.IRelay__factory = exports.Fraud__factory = exports.DepositSweep__factory = exports.Deposit__factory = exports.BridgeState__factory = exports.BridgeGovernanceParameters__factory = exports.BridgeGovernance__factory = exports.Bridge__factory = exports.IReceiveBalanceApproval__factory = exports.Bank__factory = exports.IStaking__factory = exports.IApplication__factory = exports.MisfundRecovery__factory = exports.IReceiveApproval__factory = void 0;
|
|
4
|
+
exports.TBTCVault__factory = exports.TBTCOptimisticMinting__factory = exports.IVault__factory = exports.DonationVault__factory = exports.TBTC__factory = exports.TestERC721__factory = exports.TestERC20__factory = exports.TestEcdsaLib__factory = exports.SystemTestRelay__factory = exports.ReceiveApprovalStub__factory = exports.LightRelayStub__factory = exports.HeartbeatStub__factory = exports.GoerliLightRelay__factory = exports.BridgeStub__factory = exports.BankStub__factory = exports.LightRelay__factory = exports.ILightRelay__factory = exports.MaintainerProxy__factory = exports.L2TBTC__factory = exports.Wallets__factory = exports.VendingMachineV3__factory = exports.VendingMachineV2__factory = exports.VendingMachine__factory = exports.Redemption__factory = exports.MovingFunds__factory = exports.IRelay__factory = exports.Fraud__factory = exports.DepositSweep__factory = exports.Deposit__factory = exports.BridgeState__factory = exports.BridgeGovernanceParameters__factory = exports.BridgeGovernance__factory = exports.Bridge__factory = exports.IReceiveBalanceApproval__factory = exports.Bank__factory = exports.IStaking__factory = exports.IApplication__factory = exports.MisfundRecovery__factory = exports.IReceiveApproval__factory = void 0;
|
|
5
5
|
var BTCUtils__factory_1 = require("./factories/BTCUtils__factory");
|
|
6
6
|
Object.defineProperty(exports, "BTCUtils__factory", { enumerable: true, get: function () { return BTCUtils__factory_1.BTCUtils__factory; } });
|
|
7
7
|
var IWalletOwner__factory_1 = require("./factories/IWalletOwner__factory");
|
|
@@ -136,6 +136,10 @@ var Redemption__factory_1 = require("./factories/Redemption__factory");
|
|
|
136
136
|
Object.defineProperty(exports, "Redemption__factory", { enumerable: true, get: function () { return Redemption__factory_1.Redemption__factory; } });
|
|
137
137
|
var VendingMachine__factory_1 = require("./factories/VendingMachine__factory");
|
|
138
138
|
Object.defineProperty(exports, "VendingMachine__factory", { enumerable: true, get: function () { return VendingMachine__factory_1.VendingMachine__factory; } });
|
|
139
|
+
var VendingMachineV2__factory_1 = require("./factories/VendingMachineV2__factory");
|
|
140
|
+
Object.defineProperty(exports, "VendingMachineV2__factory", { enumerable: true, get: function () { return VendingMachineV2__factory_1.VendingMachineV2__factory; } });
|
|
141
|
+
var VendingMachineV3__factory_1 = require("./factories/VendingMachineV3__factory");
|
|
142
|
+
Object.defineProperty(exports, "VendingMachineV3__factory", { enumerable: true, get: function () { return VendingMachineV3__factory_1.VendingMachineV3__factory; } });
|
|
139
143
|
var Wallets__factory_1 = require("./factories/Wallets__factory");
|
|
140
144
|
Object.defineProperty(exports, "Wallets__factory", { enumerable: true, get: function () { return Wallets__factory_1.Wallets__factory; } });
|
|
141
145
|
var L2TBTC__factory_1 = require("./factories/L2TBTC__factory");
|
package/package.json
CHANGED