@niftykit/diamond 0.2.0 → 0.2.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.
Files changed (41) hide show
  1. package/dist/cjs/Diamond.js +4 -0
  2. package/dist/cjs/typechain-types/contracts/apps/erc20/ERC20AppFacet.js +2 -0
  3. package/dist/cjs/typechain-types/contracts/apps/erc20/index.js +2 -0
  4. package/dist/cjs/typechain-types/factories/apps/ape/ApeDropFacet__factory.js +15 -3
  5. package/dist/cjs/typechain-types/factories/apps/drop/DropFacet__factory.js +29 -4
  6. package/dist/cjs/typechain-types/factories/apps/edition/EditionFacet__factory.js +15 -21
  7. package/dist/cjs/typechain-types/factories/apps/erc20/ERC20AppFacet__factory.js +477 -0
  8. package/dist/cjs/typechain-types/factories/apps/erc20/index.js +8 -0
  9. package/dist/cjs/typechain-types/factories/diamond/BaseFacet__factory.js +46 -3
  10. package/dist/cjs/typechain-types/factories/diamond/BaseStorage__factory.js +2 -3
  11. package/dist/cjs/typechain-types/factories/diamond/DiamondCollection__factory.js +61 -40
  12. package/dist/cjs/typechain-types/factories/diamond/DiamondLoupeFacet__factory.js +1 -2
  13. package/dist/esm/Diamond.js +4 -0
  14. package/dist/esm/typechain-types/contracts/apps/erc20/ERC20AppFacet.js +1 -0
  15. package/dist/esm/typechain-types/contracts/apps/erc20/index.js +1 -0
  16. package/dist/esm/typechain-types/factories/apps/ape/ApeDropFacet__factory.js +15 -3
  17. package/dist/esm/typechain-types/factories/apps/drop/DropFacet__factory.js +29 -4
  18. package/dist/esm/typechain-types/factories/apps/edition/EditionFacet__factory.js +15 -21
  19. package/dist/esm/typechain-types/factories/apps/erc20/ERC20AppFacet__factory.js +474 -0
  20. package/dist/esm/typechain-types/factories/apps/erc20/index.js +4 -0
  21. package/dist/esm/typechain-types/factories/diamond/BaseFacet__factory.js +46 -3
  22. package/dist/esm/typechain-types/factories/diamond/BaseStorage__factory.js +2 -3
  23. package/dist/esm/typechain-types/factories/diamond/DiamondCollection__factory.js +62 -41
  24. package/dist/esm/typechain-types/factories/diamond/DiamondLoupeFacet__factory.js +1 -2
  25. package/dist/types/Diamond.d.ts +2 -0
  26. package/dist/types/typechain-types/contracts/apps/ape/ApeDropFacet.d.ts +9 -1
  27. package/dist/types/typechain-types/contracts/apps/edition/EditionFacet.d.ts +15 -24
  28. package/dist/types/typechain-types/contracts/apps/erc20/ERC20AppFacet.d.ts +317 -0
  29. package/dist/types/typechain-types/contracts/apps/erc20/index.d.ts +1 -0
  30. package/dist/types/typechain-types/contracts/diamond/BaseFacet.d.ts +48 -7
  31. package/dist/types/typechain-types/contracts/diamond/DiamondCollection.d.ts +39 -2
  32. package/dist/types/typechain-types/factories/apps/ape/ApeDropFacet__factory.d.ts +11 -1
  33. package/dist/types/typechain-types/factories/apps/drop/DropFacet__factory.d.ts +22 -2
  34. package/dist/types/typechain-types/factories/apps/edition/EditionFacet__factory.d.ts +11 -15
  35. package/dist/types/typechain-types/factories/apps/erc20/ERC20AppFacet__factory.d.ts +344 -0
  36. package/dist/types/typechain-types/factories/apps/erc20/index.d.ts +1 -0
  37. package/dist/types/typechain-types/factories/diamond/BaseFacet__factory.d.ts +35 -1
  38. package/dist/types/typechain-types/factories/diamond/BaseStorage__factory.d.ts +1 -1
  39. package/dist/types/typechain-types/factories/diamond/DiamondCollection__factory.d.ts +49 -32
  40. package/dist/umd/index.js +1 -1
  41. package/package.json +2 -2
@@ -0,0 +1,477 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.ERC20AppFacet__factory = void 0;
19
+ /* Autogenerated file. Do not edit manually. */
20
+ /* tslint:disable */
21
+ /* eslint-disable */
22
+ var ethers_1 = require("ethers");
23
+ var _abi = [
24
+ {
25
+ inputs: [],
26
+ name: "NewOwnerIsZeroAddress",
27
+ type: "error",
28
+ },
29
+ {
30
+ inputs: [],
31
+ name: "NoHandoverRequest",
32
+ type: "error",
33
+ },
34
+ {
35
+ inputs: [],
36
+ name: "Unauthorized",
37
+ type: "error",
38
+ },
39
+ {
40
+ anonymous: false,
41
+ inputs: [
42
+ {
43
+ indexed: true,
44
+ internalType: "address",
45
+ name: "owner",
46
+ type: "address",
47
+ },
48
+ {
49
+ indexed: true,
50
+ internalType: "address",
51
+ name: "approved",
52
+ type: "address",
53
+ },
54
+ {
55
+ indexed: true,
56
+ internalType: "uint256",
57
+ name: "tokenId",
58
+ type: "uint256",
59
+ },
60
+ ],
61
+ name: "Approval",
62
+ type: "event",
63
+ },
64
+ {
65
+ anonymous: false,
66
+ inputs: [
67
+ {
68
+ indexed: true,
69
+ internalType: "address",
70
+ name: "owner",
71
+ type: "address",
72
+ },
73
+ {
74
+ indexed: true,
75
+ internalType: "address",
76
+ name: "operator",
77
+ type: "address",
78
+ },
79
+ {
80
+ indexed: false,
81
+ internalType: "bool",
82
+ name: "approved",
83
+ type: "bool",
84
+ },
85
+ ],
86
+ name: "ApprovalForAll",
87
+ type: "event",
88
+ },
89
+ {
90
+ anonymous: false,
91
+ inputs: [
92
+ {
93
+ indexed: true,
94
+ internalType: "uint256",
95
+ name: "fromTokenId",
96
+ type: "uint256",
97
+ },
98
+ {
99
+ indexed: false,
100
+ internalType: "uint256",
101
+ name: "toTokenId",
102
+ type: "uint256",
103
+ },
104
+ {
105
+ indexed: true,
106
+ internalType: "address",
107
+ name: "from",
108
+ type: "address",
109
+ },
110
+ {
111
+ indexed: true,
112
+ internalType: "address",
113
+ name: "to",
114
+ type: "address",
115
+ },
116
+ ],
117
+ name: "ConsecutiveTransfer",
118
+ type: "event",
119
+ },
120
+ {
121
+ anonymous: false,
122
+ inputs: [
123
+ {
124
+ indexed: true,
125
+ internalType: "address",
126
+ name: "pendingOwner",
127
+ type: "address",
128
+ },
129
+ ],
130
+ name: "OwnershipHandoverCanceled",
131
+ type: "event",
132
+ },
133
+ {
134
+ anonymous: false,
135
+ inputs: [
136
+ {
137
+ indexed: true,
138
+ internalType: "address",
139
+ name: "pendingOwner",
140
+ type: "address",
141
+ },
142
+ ],
143
+ name: "OwnershipHandoverRequested",
144
+ type: "event",
145
+ },
146
+ {
147
+ anonymous: false,
148
+ inputs: [
149
+ {
150
+ indexed: true,
151
+ internalType: "address",
152
+ name: "oldOwner",
153
+ type: "address",
154
+ },
155
+ {
156
+ indexed: true,
157
+ internalType: "address",
158
+ name: "newOwner",
159
+ type: "address",
160
+ },
161
+ ],
162
+ name: "OwnershipTransferred",
163
+ type: "event",
164
+ },
165
+ {
166
+ anonymous: false,
167
+ inputs: [
168
+ {
169
+ indexed: true,
170
+ internalType: "address",
171
+ name: "user",
172
+ type: "address",
173
+ },
174
+ {
175
+ indexed: true,
176
+ internalType: "uint256",
177
+ name: "roles",
178
+ type: "uint256",
179
+ },
180
+ ],
181
+ name: "RolesUpdated",
182
+ type: "event",
183
+ },
184
+ {
185
+ anonymous: false,
186
+ inputs: [
187
+ {
188
+ indexed: true,
189
+ internalType: "address",
190
+ name: "from",
191
+ type: "address",
192
+ },
193
+ {
194
+ indexed: true,
195
+ internalType: "address",
196
+ name: "to",
197
+ type: "address",
198
+ },
199
+ {
200
+ indexed: true,
201
+ internalType: "uint256",
202
+ name: "tokenId",
203
+ type: "uint256",
204
+ },
205
+ ],
206
+ name: "Transfer",
207
+ type: "event",
208
+ },
209
+ {
210
+ inputs: [],
211
+ name: "erc20ActiveCoin",
212
+ outputs: [
213
+ {
214
+ internalType: "contract IERC20Upgradeable",
215
+ name: "",
216
+ type: "address",
217
+ },
218
+ ],
219
+ stateMutability: "view",
220
+ type: "function",
221
+ },
222
+ {
223
+ inputs: [
224
+ {
225
+ internalType: "uint256",
226
+ name: "index",
227
+ type: "uint256",
228
+ },
229
+ ],
230
+ name: "erc20CoinByIndex",
231
+ outputs: [
232
+ {
233
+ internalType: "contract IERC20Upgradeable",
234
+ name: "",
235
+ type: "address",
236
+ },
237
+ ],
238
+ stateMutability: "view",
239
+ type: "function",
240
+ },
241
+ {
242
+ inputs: [],
243
+ name: "erc20CoinsCount",
244
+ outputs: [
245
+ {
246
+ internalType: "uint256",
247
+ name: "",
248
+ type: "uint256",
249
+ },
250
+ ],
251
+ stateMutability: "view",
252
+ type: "function",
253
+ },
254
+ {
255
+ inputs: [],
256
+ name: "erc20MintFee",
257
+ outputs: [
258
+ {
259
+ internalType: "uint256",
260
+ name: "",
261
+ type: "uint256",
262
+ },
263
+ ],
264
+ stateMutability: "view",
265
+ type: "function",
266
+ },
267
+ {
268
+ inputs: [
269
+ {
270
+ internalType: "address",
271
+ name: "recipient",
272
+ type: "address",
273
+ },
274
+ {
275
+ internalType: "uint64",
276
+ name: "quantity",
277
+ type: "uint64",
278
+ },
279
+ ],
280
+ name: "erc20MintTo",
281
+ outputs: [],
282
+ stateMutability: "payable",
283
+ type: "function",
284
+ },
285
+ {
286
+ inputs: [],
287
+ name: "erc20PresaleActive",
288
+ outputs: [
289
+ {
290
+ internalType: "bool",
291
+ name: "",
292
+ type: "bool",
293
+ },
294
+ ],
295
+ stateMutability: "view",
296
+ type: "function",
297
+ },
298
+ {
299
+ inputs: [
300
+ {
301
+ internalType: "address",
302
+ name: "recipient",
303
+ type: "address",
304
+ },
305
+ {
306
+ internalType: "uint64",
307
+ name: "quantity",
308
+ type: "uint64",
309
+ },
310
+ {
311
+ internalType: "uint256",
312
+ name: "allowed",
313
+ type: "uint256",
314
+ },
315
+ {
316
+ internalType: "bytes32[]",
317
+ name: "proof",
318
+ type: "bytes32[]",
319
+ },
320
+ ],
321
+ name: "erc20PresaleMintTo",
322
+ outputs: [],
323
+ stateMutability: "payable",
324
+ type: "function",
325
+ },
326
+ {
327
+ inputs: [],
328
+ name: "erc20Price",
329
+ outputs: [
330
+ {
331
+ internalType: "uint256",
332
+ name: "",
333
+ type: "uint256",
334
+ },
335
+ ],
336
+ stateMutability: "view",
337
+ type: "function",
338
+ },
339
+ {
340
+ inputs: [
341
+ {
342
+ internalType: "address",
343
+ name: "tokenAddress",
344
+ type: "address",
345
+ },
346
+ ],
347
+ name: "erc20Revenue",
348
+ outputs: [
349
+ {
350
+ internalType: "uint256",
351
+ name: "",
352
+ type: "uint256",
353
+ },
354
+ ],
355
+ stateMutability: "view",
356
+ type: "function",
357
+ },
358
+ {
359
+ inputs: [],
360
+ name: "erc20SaleActive",
361
+ outputs: [
362
+ {
363
+ internalType: "bool",
364
+ name: "",
365
+ type: "bool",
366
+ },
367
+ ],
368
+ stateMutability: "view",
369
+ type: "function",
370
+ },
371
+ {
372
+ inputs: [
373
+ {
374
+ internalType: "address",
375
+ name: "tokenAddress",
376
+ type: "address",
377
+ },
378
+ ],
379
+ name: "erc20SetActiveCoin",
380
+ outputs: [],
381
+ stateMutability: "nonpayable",
382
+ type: "function",
383
+ },
384
+ {
385
+ inputs: [
386
+ {
387
+ internalType: "uint256",
388
+ name: "newMaxAmount",
389
+ type: "uint256",
390
+ },
391
+ {
392
+ internalType: "uint256",
393
+ name: "newMaxPerMint",
394
+ type: "uint256",
395
+ },
396
+ {
397
+ internalType: "uint256",
398
+ name: "newMaxPerWallet",
399
+ type: "uint256",
400
+ },
401
+ {
402
+ internalType: "uint256",
403
+ name: "newPrice",
404
+ type: "uint256",
405
+ },
406
+ {
407
+ internalType: "bool",
408
+ name: "presale",
409
+ type: "bool",
410
+ },
411
+ ],
412
+ name: "erc20StartSale",
413
+ outputs: [],
414
+ stateMutability: "nonpayable",
415
+ type: "function",
416
+ },
417
+ {
418
+ inputs: [],
419
+ name: "erc20StopSale",
420
+ outputs: [],
421
+ stateMutability: "nonpayable",
422
+ type: "function",
423
+ },
424
+ {
425
+ inputs: [
426
+ {
427
+ internalType: "address",
428
+ name: "tokenAddress",
429
+ type: "address",
430
+ },
431
+ ],
432
+ name: "erc20Withdraw",
433
+ outputs: [],
434
+ stateMutability: "nonpayable",
435
+ type: "function",
436
+ },
437
+ ];
438
+ var _bytecode = "0x608060405234801561001057600080fd5b506119d2806100206000396000f3fe6080604052600436106100dd5760003560e01c8063b694460f1161007f578063d4461d5111610059578063d4461d51146102f4578063f0769c3314610307578063f673e0b71461031a578063fef8ddda1461033a57600080fd5b8063b694460f14610225578063c936b23c1461024a578063d1b022bd1461029f57600080fd5b806356da1506116100bb57806356da15061461017d5780637081ff9b1461019d578063abee801f146101b2578063afab9bb7146101f157600080fd5b806315d11e81146100e25780634adccde5146101045780634fb58bab14610147575b600080fd5b3480156100ee57600080fd5b506101026100fd366004611604565b61034f565b005b34801561011057600080fd5b507fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68aa545b6040519081526020015b60405180910390f35b34801561015357600080fd5b5060008051602061193d83398151915254610100900460ff165b604051901515815260200161013e565b34801561018957600080fd5b50610102610198366004611604565b6104b5565b3480156101a957600080fd5b506101346105a5565b3480156101be57600080fd5b5060008051602061195d833981519152546001600160a01b03165b6040516001600160a01b03909116815260200161013e565b3480156101fd57600080fd5b507fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a954610134565b34801561023157600080fd5b5060008051602061193d8339815191525460ff1661016d565b34801561025657600080fd5b50610134610265366004611604565b6001600160a01b031660009081527fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a6602052604090205490565b3480156102ab57600080fd5b506101d96102ba366004611621565b60009081527fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a860205260409020546001600160a01b031690565b610102610302366004611656565b610658565b61010261031536600461168b565b61088b565b34801561032657600080fd5b50610102610335366004611738565b610b97565b34801561034657600080fd5b50610102610c4e565b600161035a81610c74565b6001600160a01b0382811660009081527fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a7602052604090205460008051602061195d8339815191529116806103e95760405162461bcd60e51b815260206004820152601060248201526f125b9d985b1a590818dbdb9d1c9858dd60821b60448201526064015b60405180910390fd5b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015610430573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906104549190611785565b9050600081116104925760405162461bcd60e51b8152602060048201526009602482015268302062616c616e636560b81b60448201526064016103e0565b6104ae61049d610caa565b6001600160a01b0384169083610cf0565b5050505050565b60026104c081610c74565b6001600160a01b0382811660009081527fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a7602052604090205460008051602061195d8339815191529116610571576001600160a01b0383166000818152600283016020908152604080832080546001600160a01b03199081168617909155600486018054855260038701909352908320805490911690931790925581548592909161056a836117b4565b9190505550505b6001600160a01b03928316600090815260028201602052604090205481546001600160a01b03191693169290921790915550565b7f45f38af8fd646bf817698fe2be76218d850d401ba88ffd7c9cd1b4f5c9a1db5a5460408051630317c2dd60e01b81526001600482015281516000936201000090046001600160a01b031692849283928592630317c2dd92602480820193918290030181865afa15801561061d573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061064191906117cd565b909250905061065081836117f1565b935050505090565b8060008051602061197d8339815191526001600160401b0382166106ae5760405162461bcd60e51b815260206004820152600d60248201526c05175616e74697479206973203609c1b60448201526064016103e0565b8060040154826001600160401b031611156107035760405162461bcd60e51b8152602060048201526015602482015274115e18d959591959081b585e081c195c881b5a5b9d605a1b60448201526064016103e0565b6000816003015411801561073557508060030154826001600160401b0316610729610d58565b61073391906117f1565b115b156107785760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b60448201526064016103e0565b60008051602061193d8339815191525460008051602061195d83398151915290610100900460ff16156107de5760405162461bcd60e51b815260206004820152600e60248201526d50726573616c652061637469766560901b60448201526064016103e0565b600681015460ff166108245760405162461bcd60e51b815260206004820152600f60248201526e53616c65206e6f742061637469766560881b60448201526064016103e0565b7f8463ba7c736160ca369a87f3f11bd6c808ec9f1e2f50ab84a0ca42b38156907d548461085087610da4565b61085a9190611804565b6001600160401b031611156108815760405162461bcd60e51b81526004016103e09061182b565b6104ae8486610de1565b8360008051602061197d8339815191526001600160401b0382166108e15760405162461bcd60e51b815260206004820152600d60248201526c05175616e74697479206973203609c1b60448201526064016103e0565b8060040154826001600160401b031611156109365760405162461bcd60e51b8152602060048201526015602482015274115e18d959591959081b585e081c195c881b5a5b9d605a1b60448201526064016103e0565b6000816003015411801561096857508060030154826001600160401b031661095c610d58565b61096691906117f1565b115b156109ab5760405162461bcd60e51b81526020600482015260136024820152724578636565646564206d617820737570706c7960681b60448201526064016103e0565b60008051602061197d83398151915260008051602061195d8339815191526000886109d58b610da4565b6109df9190611804565b6001600160401b031690508160060160019054906101000a900460ff16610a3d5760405162461bcd60e51b815260206004820152601260248201527150726573616c65206e6f742061637469766560701b60448201526064016103e0565b8260010154600003610a835760405162461bcd60e51b815260206004820152600f60248201526e141c995cd85b19481b9bdd081cd95d608a1b60448201526064016103e0565b8260050154811115610aa75760405162461bcd60e51b81526004016103e09061182b565b87811115610ac75760405162461bcd60e51b81526004016103e09061182b565b610b4387878080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050505060018501546040516bffffffffffffffffffffffff1960608f901b166020820152603481018c905260540160405160208183030381529060405280519060200120611057565b610b815760405162461bcd60e51b815260206004820152600f60248201526e141c995cd85b19481a5b9d985b1a59608a1b60448201526064016103e0565b610b8b898b610de1565b50505050505050505050565b6002610ba281610c74565b60008051602061195d833981519152805460008051602061197d833981519152906001600160a01b0316610c115760405162461bcd60e51b8152602060048201526016602482015275151bdad95b8810dbdb9d1c9858dd081b9bdd081cd95d60521b60448201526064016103e0565b6006820180549415156101000261ffff19909516949094176001179093556005908101939093555060038101949094556004840192909255910155565b6002610c5981610c74565b5060008051602061193d833981519152805461ffff19169055565b638b78c6d8600c5233600052806020600c205416610ca757638b78c6d819543314610ca7576382b429006000526004601cfd5b50565b7f45f38af8fd646bf817698fe2be76218d850d401ba88ffd7c9cd1b4f5c9a1db5e546000906001600160a01b03163303610ceb575060131936013560601c90565b503390565b6040516001600160a01b038316602482015260448101829052610d5390849063a9059cbb60e01b906064015b60408051601f198184030181529190526020810180516001600160e01b03166001600160e01b03199093169290921790915261106d565b505050565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c41547f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c4054036000190190565b6001600160a01b031660009081527f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c45602052604090205460c01c90565b7f45f38af8fd646bf817698fe2be76218d850d401ba88ffd7c9cd1b4f5c9a1db5a547fef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68aa5460008051602061195d833981519152916201000090046001600160a01b031690600090610e5c906001600160401b03871690611862565b604051630317c2dd60e01b81526001600160401b038716600482015290915060009081906001600160a01b03851690630317c2dd906024016040805180830381865afa158015610eb0573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ed491906117cd565b909250905034610ee482846117f1565b1115610f245760405162461bcd60e51b815260206004820152600f60248201526e15985b1d59481a5b98dbdc9c9958dd608a1b60448201526064016103e0565b610f2e8483611142565b8015610f9f57610f9f306001600160a01b0316638da5cb5b6040518163ffffffff1660e01b8152600401602060405180830381865afa158015610f75573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f999190611879565b82611142565b84546001600160a01b03908116600090815260018701602052604090208054850190558554610fd1911687308661125b565b61103b8688610fdf89610da4565b610fe99190611804565b6001600160a01b039190911660009081527f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c456020526040902080546001600160c01b031660c09290921b919091179055565b61104e86886001600160401b0316611299565b50505050505050565b60008261106485846113d4565b14949350505050565b60006110c2826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166114239092919063ffffffff16565b90508051600014806110e35750808060200190518101906110e39190611896565b610d535760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b60648201526084016103e0565b804710156111925760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016103e0565b6000826001600160a01b03168260405160006040518083038185875af1925050503d80600081146111df576040519150601f19603f3d011682016040523d82523d6000602084013e6111e4565b606091505b5050905080610d535760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016103e0565b6040516001600160a01b03808516602483015283166044820152606481018290526112939085906323b872dd60e01b90608401610d1c565b50505050565b7f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c405460008290036112d4576112d463b562e8dd60e01b61143a565b60008181527f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c44602090815260408083206001600160a01b0387164260a01b6001881460e11b1781179091558084527f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c45909252822080546801000000000000000186020190559081900361137057611370622e076360e81b61143a565b818301825b808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a481816001019150810361137557507f2569078dfb4b0305704d3008e7403993ae9601b85f7ae5e742de3de8f8011c405550505050565b600081815b845181101561141957611405828683815181106113f8576113f86118b3565b6020026020010151611444565b915080611411816117b4565b9150506113d9565b5090505b92915050565b60606114328484600085611476565b949350505050565b8060005260046000fd5b600081831061146057600082815260208490526040902061146f565b60008381526020839052604090205b9392505050565b6060824710156114d75760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b60648201526084016103e0565b600080866001600160a01b031685876040516114f391906118ed565b60006040518083038185875af1925050503d8060008114611530576040519150601f19603f3d011682016040523d82523d6000602084013e611535565b606091505b509150915061154687838387611551565b979650505050505050565b606083156115c05782516000036115b9576001600160a01b0385163b6115b95760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e747261637400000060448201526064016103e0565b5081611432565b61143283838151156115d55781518083602001fd5b8060405162461bcd60e51b81526004016103e09190611909565b6001600160a01b0381168114610ca757600080fd5b60006020828403121561161657600080fd5b813561146f816115ef565b60006020828403121561163357600080fd5b5035919050565b80356001600160401b038116811461165157600080fd5b919050565b6000806040838503121561166957600080fd5b8235611674816115ef565b91506116826020840161163a565b90509250929050565b6000806000806000608086880312156116a357600080fd5b85356116ae816115ef565b94506116bc6020870161163a565b93506040860135925060608601356001600160401b03808211156116df57600080fd5b818801915088601f8301126116f357600080fd5b81358181111561170257600080fd5b8960208260051b850101111561171757600080fd5b9699959850939650602001949392505050565b8015158114610ca757600080fd5b600080600080600060a0868803121561175057600080fd5b8535945060208601359350604086013592506060860135915060808601356117778161172a565b809150509295509295909350565b60006020828403121561179757600080fd5b5051919050565b634e487b7160e01b600052601160045260246000fd5b6000600182016117c6576117c661179e565b5060010190565b600080604083850312156117e057600080fd5b505080516020909101519092909150565b8082018082111561141d5761141d61179e565b6001600160401b038181168382160190808211156118245761182461179e565b5092915050565b60208082526017908201527f4578636565646564206d6178207065722077616c6c6574000000000000000000604082015260600190565b808202811582820484141761141d5761141d61179e565b60006020828403121561188b57600080fd5b815161146f816115ef565b6000602082840312156118a857600080fd5b815161146f8161172a565b634e487b7160e01b600052603260045260246000fd5b60005b838110156118e45781810151838201526020016118cc565b50506000910152565b600082516118ff8184602087016118c9565b9190910192915050565b60208152600082518060208401526119288160408501602087016118c9565b601f01601f1916919091016040019291505056feef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68abef3ade2c07aeb418fe70a697d77effdb47b5c3ae13994cfb24323e3d2e6a68a58463ba7c736160ca369a87f3f11bd6c808ec9f1e2f50ab84a0ca42b381569078a26469706673582212204ecf113b072f424189c1f34398dfb9b7c697c88536ce7d43c2576b950ae8141f64736f6c63430008130033";
439
+ var isSuperArgs = function (xs) { return xs.length > 1; };
440
+ var ERC20AppFacet__factory = exports.ERC20AppFacet__factory = /** @class */ (function (_super) {
441
+ __extends(ERC20AppFacet__factory, _super);
442
+ function ERC20AppFacet__factory() {
443
+ var args = [];
444
+ for (var _i = 0; _i < arguments.length; _i++) {
445
+ args[_i] = arguments[_i];
446
+ }
447
+ var _this = this;
448
+ if (isSuperArgs(args)) {
449
+ _this = _super.apply(this, args) || this;
450
+ }
451
+ else {
452
+ _this = _super.call(this, _abi, _bytecode, args[0]) || this;
453
+ }
454
+ return _this;
455
+ }
456
+ ERC20AppFacet__factory.prototype.deploy = function (overrides) {
457
+ return _super.prototype.deploy.call(this, overrides || {});
458
+ };
459
+ ERC20AppFacet__factory.prototype.getDeployTransaction = function (overrides) {
460
+ return _super.prototype.getDeployTransaction.call(this, overrides || {});
461
+ };
462
+ ERC20AppFacet__factory.prototype.attach = function (address) {
463
+ return _super.prototype.attach.call(this, address);
464
+ };
465
+ ERC20AppFacet__factory.prototype.connect = function (signer) {
466
+ return _super.prototype.connect.call(this, signer);
467
+ };
468
+ ERC20AppFacet__factory.createInterface = function () {
469
+ return new ethers_1.utils.Interface(_abi);
470
+ };
471
+ ERC20AppFacet__factory.connect = function (address, signerOrProvider) {
472
+ return new ethers_1.Contract(address, _abi, signerOrProvider);
473
+ };
474
+ ERC20AppFacet__factory.bytecode = _bytecode;
475
+ ERC20AppFacet__factory.abi = _abi;
476
+ return ERC20AppFacet__factory;
477
+ }(ethers_1.ContractFactory));
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ERC20AppFacet__factory = void 0;
4
+ /* Autogenerated file. Do not edit manually. */
5
+ /* tslint:disable */
6
+ /* eslint-disable */
7
+ var ERC20AppFacet__factory_1 = require("./ERC20AppFacet__factory");
8
+ Object.defineProperty(exports, "ERC20AppFacet__factory", { enumerable: true, get: function () { return ERC20AppFacet__factory_1.ERC20AppFacet__factory; } });