@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,324 @@
|
|
|
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.VendingMachineV2__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: true,
|
|
108
|
+
internalType: "address",
|
|
109
|
+
name: "previousOwner",
|
|
110
|
+
type: "address",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
indexed: true,
|
|
114
|
+
internalType: "address",
|
|
115
|
+
name: "newOwner",
|
|
116
|
+
type: "address",
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
name: "OwnershipTransferred",
|
|
120
|
+
type: "event",
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
anonymous: false,
|
|
124
|
+
inputs: [
|
|
125
|
+
{
|
|
126
|
+
indexed: false,
|
|
127
|
+
internalType: "address",
|
|
128
|
+
name: "token",
|
|
129
|
+
type: "address",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
indexed: false,
|
|
133
|
+
internalType: "address",
|
|
134
|
+
name: "to",
|
|
135
|
+
type: "address",
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
indexed: false,
|
|
139
|
+
internalType: "uint256",
|
|
140
|
+
name: "amount",
|
|
141
|
+
type: "uint256",
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
name: "Withdrawn",
|
|
145
|
+
type: "event",
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
inputs: [
|
|
149
|
+
{
|
|
150
|
+
internalType: "uint256",
|
|
151
|
+
name: "amount",
|
|
152
|
+
type: "uint256",
|
|
153
|
+
},
|
|
154
|
+
],
|
|
155
|
+
name: "depositTbtcV2",
|
|
156
|
+
outputs: [],
|
|
157
|
+
stateMutability: "nonpayable",
|
|
158
|
+
type: "function",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
inputs: [
|
|
162
|
+
{
|
|
163
|
+
internalType: "uint256",
|
|
164
|
+
name: "amount",
|
|
165
|
+
type: "uint256",
|
|
166
|
+
},
|
|
167
|
+
],
|
|
168
|
+
name: "exchange",
|
|
169
|
+
outputs: [],
|
|
170
|
+
stateMutability: "nonpayable",
|
|
171
|
+
type: "function",
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
inputs: [],
|
|
175
|
+
name: "owner",
|
|
176
|
+
outputs: [
|
|
177
|
+
{
|
|
178
|
+
internalType: "address",
|
|
179
|
+
name: "",
|
|
180
|
+
type: "address",
|
|
181
|
+
},
|
|
182
|
+
],
|
|
183
|
+
stateMutability: "view",
|
|
184
|
+
type: "function",
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
inputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "address",
|
|
190
|
+
name: "from",
|
|
191
|
+
type: "address",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
internalType: "uint256",
|
|
195
|
+
name: "amount",
|
|
196
|
+
type: "uint256",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
internalType: "address",
|
|
200
|
+
name: "token",
|
|
201
|
+
type: "address",
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
internalType: "bytes",
|
|
205
|
+
name: "",
|
|
206
|
+
type: "bytes",
|
|
207
|
+
},
|
|
208
|
+
],
|
|
209
|
+
name: "receiveApproval",
|
|
210
|
+
outputs: [],
|
|
211
|
+
stateMutability: "nonpayable",
|
|
212
|
+
type: "function",
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
inputs: [],
|
|
216
|
+
name: "renounceOwnership",
|
|
217
|
+
outputs: [],
|
|
218
|
+
stateMutability: "nonpayable",
|
|
219
|
+
type: "function",
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
inputs: [],
|
|
223
|
+
name: "tbtcV1",
|
|
224
|
+
outputs: [
|
|
225
|
+
{
|
|
226
|
+
internalType: "contract IERC20",
|
|
227
|
+
name: "",
|
|
228
|
+
type: "address",
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
stateMutability: "view",
|
|
232
|
+
type: "function",
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
inputs: [],
|
|
236
|
+
name: "tbtcV2",
|
|
237
|
+
outputs: [
|
|
238
|
+
{
|
|
239
|
+
internalType: "contract TBTC",
|
|
240
|
+
name: "",
|
|
241
|
+
type: "address",
|
|
242
|
+
},
|
|
243
|
+
],
|
|
244
|
+
stateMutability: "view",
|
|
245
|
+
type: "function",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
inputs: [
|
|
249
|
+
{
|
|
250
|
+
internalType: "address",
|
|
251
|
+
name: "newOwner",
|
|
252
|
+
type: "address",
|
|
253
|
+
},
|
|
254
|
+
],
|
|
255
|
+
name: "transferOwnership",
|
|
256
|
+
outputs: [],
|
|
257
|
+
stateMutability: "nonpayable",
|
|
258
|
+
type: "function",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
inputs: [
|
|
262
|
+
{
|
|
263
|
+
internalType: "contract IERC20",
|
|
264
|
+
name: "token",
|
|
265
|
+
type: "address",
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
internalType: "address",
|
|
269
|
+
name: "recipient",
|
|
270
|
+
type: "address",
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
internalType: "uint256",
|
|
274
|
+
name: "amount",
|
|
275
|
+
type: "uint256",
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
name: "withdrawFunds",
|
|
279
|
+
outputs: [],
|
|
280
|
+
stateMutability: "nonpayable",
|
|
281
|
+
type: "function",
|
|
282
|
+
},
|
|
283
|
+
];
|
|
284
|
+
var _bytecode = "0x60c060405234801561001057600080fd5b50604051610d8d380380610d8d83398101604081905261002f916100b7565b6100383361004f565b6001600160a01b039182166080521660a0526100f1565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b03811681146100b457600080fd5b50565b600080604083850312156100ca57600080fd5b82516100d58161009f565b60208401519092506100e68161009f565b809150509250929050565b60805160a051610c4e61013f600039600081816101440152818161036e0152818161055601526106c201526000818160c20152818161021b015281816102aa015261068d0152610c4e6000f3fe608060405234801561001057600080fd5b50600436106100a35760003560e01c80638da5cb5b1161007657806395de5a411161005b57806395de5a411461013f578063d46219ee14610166578063f2fde38b1461017957600080fd5b80638da5cb5b1461011b5780638f4ffcb11461012c57600080fd5b80631c20fadd146100a85780633678252f146100bd5780635355655914610100578063715018a614610113575b600080fd5b6100bb6100b6366004610a4d565b61018c565b005b6100e47f000000000000000000000000000000000000000000000000000000000000000081565b6040516001600160a01b03909116815260200160405180910390f35b6100bb61010e366004610a8e565b6101f8565b6100bb610205565b6000546001600160a01b03166100e4565b6100bb61013a366004610aa7565b610219565b6100e47f000000000000000000000000000000000000000000000000000000000000000081565b6100bb610174366004610a8e565b610328565b6100bb610187366004610b46565b610396565b610194610423565b604080516001600160a01b038086168252841660208201529081018290527fd1c19fbcd4551a5edfb66d43d2e337c04837afda3482b42bdf569a8fccdae5fb9060600160405180910390a16101f36001600160a01b038416838361047d565b505050565b6102023382610526565b50565b61020d610423565b61021760006106ed565b565b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316836001600160a01b03161461029f5760405162461bcd60e51b815260206004820152601460248201527f546f6b656e206973206e6f74207442544320763100000000000000000000000060448201526064015b60405180910390fd5b336001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016146103175760405162461bcd60e51b815260206004820152601b60248201527f4f6e6c7920744254432076312063616c6c657220616c6c6f77656400000000006044820152606401610296565b6103218585610526565b5050505050565b60408051338152602081018390527f2da466a7b24304f47e87fa2e1e5a81b9831ce54fec19055ce277ca2f39ba42c4910160405180910390a16102026001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016333084610755565b61039e610423565b6001600160a01b03811661041a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610296565b610202816106ed565b6000546001600160a01b031633146102175760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610296565b6040516001600160a01b0383166024820152604481018290526101f39084907fa9059cbb00000000000000000000000000000000000000000000000000000000906064015b60408051601f198184030181529190526020810180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff167fffffffff00000000000000000000000000000000000000000000000000000000909316929092179091526107ac565b6040517f70a0823100000000000000000000000000000000000000000000000000000000815230600482015281907f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316906370a0823190602401602060405180830381865afa1580156105a5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906105c99190610b6a565b101561063d5760405162461bcd60e51b815260206004820152603360248201527f4e6f7420656e6f756768207442544320763220617661696c61626c6520696e2060448201527f7468652056656e64696e67204d616368696e65000000000000000000000000006064820152608401610296565b816001600160a01b03167f6ea412b125ed242bc34c304877264761547306c2429c03d7fd1b477aa61a3f5d8260405161067891815260200190565b60405180910390a26106b56001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016833084610755565b6106e96001600160a01b037f000000000000000000000000000000000000000000000000000000000000000016838361047d565b5050565b600080546001600160a01b038381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6040516001600160a01b03808516602483015283166044820152606481018290526107a69085907f23b872dd00000000000000000000000000000000000000000000000000000000906084016104c2565b50505050565b6000610801826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166108919092919063ffffffff16565b8051909150156101f3578080602001905181019061081f9190610b83565b6101f35760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e60448201527f6f742073756363656564000000000000000000000000000000000000000000006064820152608401610296565b60606108a084846000856108a8565b949350505050565b6060824710156109205760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f60448201527f722063616c6c00000000000000000000000000000000000000000000000000006064820152608401610296565b600080866001600160a01b0316858760405161093c9190610bc9565b60006040518083038185875af1925050503d8060008114610979576040519150601f19603f3d011682016040523d82523d6000602084013e61097e565b606091505b509150915061098f8783838761099a565b979650505050505050565b60608315610a09578251600003610a02576001600160a01b0385163b610a025760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610296565b50816108a0565b6108a08383815115610a1e5781518083602001fd5b8060405162461bcd60e51b81526004016102969190610be5565b6001600160a01b038116811461020257600080fd5b600080600060608486031215610a6257600080fd5b8335610a6d81610a38565b92506020840135610a7d81610a38565b929592945050506040919091013590565b600060208284031215610aa057600080fd5b5035919050565b600080600080600060808688031215610abf57600080fd5b8535610aca81610a38565b9450602086013593506040860135610ae181610a38565b9250606086013567ffffffffffffffff80821115610afe57600080fd5b818801915088601f830112610b1257600080fd5b813581811115610b2157600080fd5b896020828501011115610b3357600080fd5b9699959850939650602001949392505050565b600060208284031215610b5857600080fd5b8135610b6381610a38565b9392505050565b600060208284031215610b7c57600080fd5b5051919050565b600060208284031215610b9557600080fd5b81518015158114610b6357600080fd5b60005b83811015610bc0578181015183820152602001610ba8565b50506000910152565b60008251610bdb818460208701610ba5565b9190910192915050565b6020815260008251806020840152610c04816040850160208701610ba5565b601f01601f1916919091016040019291505056fea264697066735822122065f1458fb9a48d2637951d85d5856300fd425b137d155180d7e136e86f0dde4164736f6c63430008110033";
|
|
285
|
+
var isSuperArgs = function (xs) { return xs.length > 1; };
|
|
286
|
+
var VendingMachineV2__factory = /** @class */ (function (_super) {
|
|
287
|
+
__extends(VendingMachineV2__factory, _super);
|
|
288
|
+
function VendingMachineV2__factory() {
|
|
289
|
+
var args = [];
|
|
290
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
291
|
+
args[_i] = arguments[_i];
|
|
292
|
+
}
|
|
293
|
+
var _this = this;
|
|
294
|
+
if (isSuperArgs(args)) {
|
|
295
|
+
_this = _super.apply(this, __spreadArray([], __read(args), false)) || this;
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
_this = _super.call(this, _abi, _bytecode, args[0]) || this;
|
|
299
|
+
}
|
|
300
|
+
return _this;
|
|
301
|
+
}
|
|
302
|
+
VendingMachineV2__factory.prototype.deploy = function (_tbtcV1, _tbtcV2, overrides) {
|
|
303
|
+
return _super.prototype.deploy.call(this, _tbtcV1, _tbtcV2, overrides || {});
|
|
304
|
+
};
|
|
305
|
+
VendingMachineV2__factory.prototype.getDeployTransaction = function (_tbtcV1, _tbtcV2, overrides) {
|
|
306
|
+
return _super.prototype.getDeployTransaction.call(this, _tbtcV1, _tbtcV2, overrides || {});
|
|
307
|
+
};
|
|
308
|
+
VendingMachineV2__factory.prototype.attach = function (address) {
|
|
309
|
+
return _super.prototype.attach.call(this, address);
|
|
310
|
+
};
|
|
311
|
+
VendingMachineV2__factory.prototype.connect = function (signer) {
|
|
312
|
+
return _super.prototype.connect.call(this, signer);
|
|
313
|
+
};
|
|
314
|
+
VendingMachineV2__factory.createInterface = function () {
|
|
315
|
+
return new ethers_1.utils.Interface(_abi);
|
|
316
|
+
};
|
|
317
|
+
VendingMachineV2__factory.connect = function (address, signerOrProvider) {
|
|
318
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
319
|
+
};
|
|
320
|
+
VendingMachineV2__factory.bytecode = _bytecode;
|
|
321
|
+
VendingMachineV2__factory.abi = _abi;
|
|
322
|
+
return VendingMachineV2__factory;
|
|
323
|
+
}(ethers_1.ContractFactory));
|
|
324
|
+
exports.VendingMachineV2__factory = VendingMachineV2__factory;
|