@gitmyabi-stg/degen 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/contracts/{DEGENOFT.d.ts → DegenFood.d.ts} +570 -1126
- package/contracts/DegenFood.js +1621 -0
- package/contracts/{DEGENOFT.ts → DegenFood.ts} +679 -1390
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
- package/contracts/DEGENOFT.js +0 -2358
|
@@ -1,98 +1,12 @@
|
|
|
1
1
|
import type { Abi, Address, PublicClient, WalletClient, GetContractReturnType } from 'viem';
|
|
2
2
|
import { getContract } from 'viem';
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* EnforcedOptionParam struct type
|
|
7
|
-
*/
|
|
8
|
-
export type EnforcedOptionParam = {
|
|
9
|
-
eid: bigint;
|
|
10
|
-
msgType: bigint;
|
|
11
|
-
options: `0x${string}`;
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Origin struct type
|
|
16
|
-
*/
|
|
17
|
-
export type Origin = {
|
|
18
|
-
srcEid: bigint;
|
|
19
|
-
sender: `0x${string}`;
|
|
20
|
-
nonce: bigint;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* InboundPacket struct type
|
|
25
|
-
*/
|
|
26
|
-
export type InboundPacket = {
|
|
27
|
-
origin: Origin;
|
|
28
|
-
dstEid: bigint;
|
|
29
|
-
receiver: `0x${string}`;
|
|
30
|
-
guid: `0x${string}`;
|
|
31
|
-
value: bigint;
|
|
32
|
-
executor: `0x${string}`;
|
|
33
|
-
message: `0x${string}`;
|
|
34
|
-
extraData: `0x${string}`;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* SendParam struct type
|
|
39
|
-
*/
|
|
40
|
-
export type SendParam = {
|
|
41
|
-
dstEid: bigint;
|
|
42
|
-
to: `0x${string}`;
|
|
43
|
-
amountLD: bigint;
|
|
44
|
-
minAmountLD: bigint;
|
|
45
|
-
extraOptions: `0x${string}`;
|
|
46
|
-
composeMsg: `0x${string}`;
|
|
47
|
-
oftCmd: `0x${string}`;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* OFTLimit struct type
|
|
52
|
-
*/
|
|
53
|
-
export type OFTLimit = {
|
|
54
|
-
minAmountLD: bigint;
|
|
55
|
-
maxAmountLD: bigint;
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
/**
|
|
59
|
-
* OFTFeeDetail struct type
|
|
60
|
-
*/
|
|
61
|
-
export type OFTFeeDetail = {
|
|
62
|
-
feeAmountLD: bigint;
|
|
63
|
-
description: string;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
4
|
/**
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export type OFTReceipt = {
|
|
70
|
-
amountSentLD: bigint;
|
|
71
|
-
amountReceivedLD: bigint;
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* MessagingFee struct type
|
|
76
|
-
*/
|
|
77
|
-
export type MessagingFee = {
|
|
78
|
-
nativeFee: bigint;
|
|
79
|
-
lzTokenFee: bigint;
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* MessagingReceipt struct type
|
|
84
|
-
*/
|
|
85
|
-
export type MessagingReceipt = {
|
|
86
|
-
guid: `0x${string}`;
|
|
87
|
-
nonce: bigint;
|
|
88
|
-
fee: MessagingFee;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* DEGENOFT ABI
|
|
5
|
+
* DegenFood ABI
|
|
92
6
|
*
|
|
93
7
|
* This ABI is typed using viem's type system for full type safety.
|
|
94
8
|
*/
|
|
95
|
-
export const
|
|
9
|
+
export const DegenFoodAbi = [
|
|
96
10
|
{
|
|
97
11
|
"inputs": [
|
|
98
12
|
{
|
|
@@ -105,277 +19,39 @@ export const DEGENOFTAbi = [
|
|
|
105
19
|
"name": "_symbol",
|
|
106
20
|
"type": "string"
|
|
107
21
|
},
|
|
108
|
-
{
|
|
109
|
-
"internalType": "address",
|
|
110
|
-
"name": "_lzEndpoint",
|
|
111
|
-
"type": "address"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"internalType": "address",
|
|
115
|
-
"name": "_delegate",
|
|
116
|
-
"type": "address"
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
"stateMutability": "nonpayable",
|
|
120
|
-
"type": "constructor"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"inputs": [
|
|
124
|
-
{
|
|
125
|
-
"internalType": "address",
|
|
126
|
-
"name": "target",
|
|
127
|
-
"type": "address"
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
"name": "AddressEmptyCode",
|
|
131
|
-
"type": "error"
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"inputs": [
|
|
135
|
-
{
|
|
136
|
-
"internalType": "address",
|
|
137
|
-
"name": "account",
|
|
138
|
-
"type": "address"
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
"name": "AddressInsufficientBalance",
|
|
142
|
-
"type": "error"
|
|
143
|
-
},
|
|
144
|
-
{
|
|
145
|
-
"inputs": [
|
|
146
|
-
{
|
|
147
|
-
"internalType": "address",
|
|
148
|
-
"name": "spender",
|
|
149
|
-
"type": "address"
|
|
150
|
-
},
|
|
151
|
-
{
|
|
152
|
-
"internalType": "uint256",
|
|
153
|
-
"name": "allowance",
|
|
154
|
-
"type": "uint256"
|
|
155
|
-
},
|
|
156
22
|
{
|
|
157
23
|
"internalType": "uint256",
|
|
158
|
-
"name": "
|
|
24
|
+
"name": "_totalSupplyInTokens",
|
|
159
25
|
"type": "uint256"
|
|
160
26
|
}
|
|
161
27
|
],
|
|
162
|
-
"
|
|
163
|
-
"type": "
|
|
28
|
+
"stateMutability": "nonpayable",
|
|
29
|
+
"type": "constructor"
|
|
164
30
|
},
|
|
165
31
|
{
|
|
32
|
+
"anonymous": false,
|
|
166
33
|
"inputs": [
|
|
167
34
|
{
|
|
35
|
+
"indexed": true,
|
|
168
36
|
"internalType": "address",
|
|
169
|
-
"name": "
|
|
37
|
+
"name": "owner",
|
|
170
38
|
"type": "address"
|
|
171
39
|
},
|
|
172
40
|
{
|
|
173
|
-
"
|
|
174
|
-
"name": "balance",
|
|
175
|
-
"type": "uint256"
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
"internalType": "uint256",
|
|
179
|
-
"name": "needed",
|
|
180
|
-
"type": "uint256"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"name": "ERC20InsufficientBalance",
|
|
184
|
-
"type": "error"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"inputs": [
|
|
188
|
-
{
|
|
189
|
-
"internalType": "address",
|
|
190
|
-
"name": "approver",
|
|
191
|
-
"type": "address"
|
|
192
|
-
}
|
|
193
|
-
],
|
|
194
|
-
"name": "ERC20InvalidApprover",
|
|
195
|
-
"type": "error"
|
|
196
|
-
},
|
|
197
|
-
{
|
|
198
|
-
"inputs": [
|
|
199
|
-
{
|
|
200
|
-
"internalType": "address",
|
|
201
|
-
"name": "receiver",
|
|
202
|
-
"type": "address"
|
|
203
|
-
}
|
|
204
|
-
],
|
|
205
|
-
"name": "ERC20InvalidReceiver",
|
|
206
|
-
"type": "error"
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
"inputs": [
|
|
210
|
-
{
|
|
211
|
-
"internalType": "address",
|
|
212
|
-
"name": "sender",
|
|
213
|
-
"type": "address"
|
|
214
|
-
}
|
|
215
|
-
],
|
|
216
|
-
"name": "ERC20InvalidSender",
|
|
217
|
-
"type": "error"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
"inputs": [
|
|
221
|
-
{
|
|
41
|
+
"indexed": true,
|
|
222
42
|
"internalType": "address",
|
|
223
43
|
"name": "spender",
|
|
224
44
|
"type": "address"
|
|
225
|
-
}
|
|
226
|
-
],
|
|
227
|
-
"name": "ERC20InvalidSpender",
|
|
228
|
-
"type": "error"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"inputs": [],
|
|
232
|
-
"name": "FailedInnerCall",
|
|
233
|
-
"type": "error"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"inputs": [],
|
|
237
|
-
"name": "InvalidDelegate",
|
|
238
|
-
"type": "error"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"inputs": [],
|
|
242
|
-
"name": "InvalidEndpointCall",
|
|
243
|
-
"type": "error"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"inputs": [],
|
|
247
|
-
"name": "InvalidLocalDecimals",
|
|
248
|
-
"type": "error"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"inputs": [
|
|
252
|
-
{
|
|
253
|
-
"internalType": "bytes",
|
|
254
|
-
"name": "options",
|
|
255
|
-
"type": "bytes"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
"name": "InvalidOptions",
|
|
259
|
-
"type": "error"
|
|
260
|
-
},
|
|
261
|
-
{
|
|
262
|
-
"inputs": [],
|
|
263
|
-
"name": "LzTokenUnavailable",
|
|
264
|
-
"type": "error"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"inputs": [
|
|
268
|
-
{
|
|
269
|
-
"internalType": "uint32",
|
|
270
|
-
"name": "eid",
|
|
271
|
-
"type": "uint32"
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"name": "NoPeer",
|
|
275
|
-
"type": "error"
|
|
276
|
-
},
|
|
277
|
-
{
|
|
278
|
-
"inputs": [
|
|
279
|
-
{
|
|
280
|
-
"internalType": "uint256",
|
|
281
|
-
"name": "msgValue",
|
|
282
|
-
"type": "uint256"
|
|
283
|
-
}
|
|
284
|
-
],
|
|
285
|
-
"name": "NotEnoughNative",
|
|
286
|
-
"type": "error"
|
|
287
|
-
},
|
|
288
|
-
{
|
|
289
|
-
"inputs": [
|
|
290
|
-
{
|
|
291
|
-
"internalType": "address",
|
|
292
|
-
"name": "addr",
|
|
293
|
-
"type": "address"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"name": "OnlyEndpoint",
|
|
297
|
-
"type": "error"
|
|
298
|
-
},
|
|
299
|
-
{
|
|
300
|
-
"inputs": [
|
|
301
|
-
{
|
|
302
|
-
"internalType": "uint32",
|
|
303
|
-
"name": "eid",
|
|
304
|
-
"type": "uint32"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"internalType": "bytes32",
|
|
308
|
-
"name": "sender",
|
|
309
|
-
"type": "bytes32"
|
|
310
|
-
}
|
|
311
|
-
],
|
|
312
|
-
"name": "OnlyPeer",
|
|
313
|
-
"type": "error"
|
|
314
|
-
},
|
|
315
|
-
{
|
|
316
|
-
"inputs": [],
|
|
317
|
-
"name": "OnlySelf",
|
|
318
|
-
"type": "error"
|
|
319
|
-
},
|
|
320
|
-
{
|
|
321
|
-
"inputs": [
|
|
322
|
-
{
|
|
323
|
-
"internalType": "address",
|
|
324
|
-
"name": "owner",
|
|
325
|
-
"type": "address"
|
|
326
|
-
}
|
|
327
|
-
],
|
|
328
|
-
"name": "OwnableInvalidOwner",
|
|
329
|
-
"type": "error"
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"inputs": [
|
|
333
|
-
{
|
|
334
|
-
"internalType": "address",
|
|
335
|
-
"name": "account",
|
|
336
|
-
"type": "address"
|
|
337
|
-
}
|
|
338
|
-
],
|
|
339
|
-
"name": "OwnableUnauthorizedAccount",
|
|
340
|
-
"type": "error"
|
|
341
|
-
},
|
|
342
|
-
{
|
|
343
|
-
"inputs": [
|
|
344
|
-
{
|
|
345
|
-
"internalType": "address",
|
|
346
|
-
"name": "token",
|
|
347
|
-
"type": "address"
|
|
348
|
-
}
|
|
349
|
-
],
|
|
350
|
-
"name": "SafeERC20FailedOperation",
|
|
351
|
-
"type": "error"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"inputs": [
|
|
355
|
-
{
|
|
356
|
-
"internalType": "bytes",
|
|
357
|
-
"name": "result",
|
|
358
|
-
"type": "bytes"
|
|
359
|
-
}
|
|
360
|
-
],
|
|
361
|
-
"name": "SimulationResult",
|
|
362
|
-
"type": "error"
|
|
363
|
-
},
|
|
364
|
-
{
|
|
365
|
-
"inputs": [
|
|
366
|
-
{
|
|
367
|
-
"internalType": "uint256",
|
|
368
|
-
"name": "amountLD",
|
|
369
|
-
"type": "uint256"
|
|
370
45
|
},
|
|
371
46
|
{
|
|
47
|
+
"indexed": false,
|
|
372
48
|
"internalType": "uint256",
|
|
373
|
-
"name": "
|
|
49
|
+
"name": "value",
|
|
374
50
|
"type": "uint256"
|
|
375
51
|
}
|
|
376
52
|
],
|
|
377
|
-
"name": "
|
|
378
|
-
"type": "
|
|
53
|
+
"name": "Approval",
|
|
54
|
+
"type": "event"
|
|
379
55
|
},
|
|
380
56
|
{
|
|
381
57
|
"anonymous": false,
|
|
@@ -383,53 +59,23 @@ export const DEGENOFTAbi = [
|
|
|
383
59
|
{
|
|
384
60
|
"indexed": true,
|
|
385
61
|
"internalType": "address",
|
|
386
|
-
"name": "
|
|
62
|
+
"name": "previousOwner",
|
|
387
63
|
"type": "address"
|
|
388
64
|
},
|
|
389
65
|
{
|
|
390
66
|
"indexed": true,
|
|
391
67
|
"internalType": "address",
|
|
392
|
-
"name": "
|
|
68
|
+
"name": "newOwner",
|
|
393
69
|
"type": "address"
|
|
394
|
-
},
|
|
395
|
-
{
|
|
396
|
-
"indexed": false,
|
|
397
|
-
"internalType": "uint256",
|
|
398
|
-
"name": "value",
|
|
399
|
-
"type": "uint256"
|
|
400
70
|
}
|
|
401
71
|
],
|
|
402
|
-
"name": "
|
|
72
|
+
"name": "OwnershipTransferred",
|
|
403
73
|
"type": "event"
|
|
404
74
|
},
|
|
405
75
|
{
|
|
406
76
|
"anonymous": false,
|
|
407
|
-
"inputs": [
|
|
408
|
-
|
|
409
|
-
"components": [
|
|
410
|
-
{
|
|
411
|
-
"internalType": "uint32",
|
|
412
|
-
"name": "eid",
|
|
413
|
-
"type": "uint32"
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
"internalType": "uint16",
|
|
417
|
-
"name": "msgType",
|
|
418
|
-
"type": "uint16"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
"internalType": "bytes",
|
|
422
|
-
"name": "options",
|
|
423
|
-
"type": "bytes"
|
|
424
|
-
}
|
|
425
|
-
],
|
|
426
|
-
"indexed": false,
|
|
427
|
-
"internalType": "struct EnforcedOptionParam[]",
|
|
428
|
-
"name": "_enforcedOptions",
|
|
429
|
-
"type": "tuple[]"
|
|
430
|
-
}
|
|
431
|
-
],
|
|
432
|
-
"name": "EnforcedOptionSet",
|
|
77
|
+
"inputs": [],
|
|
78
|
+
"name": "RemovedLimits",
|
|
433
79
|
"type": "event"
|
|
434
80
|
},
|
|
435
81
|
{
|
|
@@ -438,42 +84,36 @@ export const DEGENOFTAbi = [
|
|
|
438
84
|
{
|
|
439
85
|
"indexed": false,
|
|
440
86
|
"internalType": "address",
|
|
441
|
-
"name": "
|
|
87
|
+
"name": "_address",
|
|
442
88
|
"type": "address"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"indexed": false,
|
|
92
|
+
"internalType": "bool",
|
|
93
|
+
"name": "_isExempt",
|
|
94
|
+
"type": "bool"
|
|
443
95
|
}
|
|
444
96
|
],
|
|
445
|
-
"name": "
|
|
97
|
+
"name": "SetExemptFromFees",
|
|
446
98
|
"type": "event"
|
|
447
99
|
},
|
|
448
100
|
{
|
|
449
101
|
"anonymous": false,
|
|
450
102
|
"inputs": [
|
|
451
|
-
{
|
|
452
|
-
"indexed": true,
|
|
453
|
-
"internalType": "bytes32",
|
|
454
|
-
"name": "guid",
|
|
455
|
-
"type": "bytes32"
|
|
456
|
-
},
|
|
457
103
|
{
|
|
458
104
|
"indexed": false,
|
|
459
|
-
"internalType": "uint32",
|
|
460
|
-
"name": "srcEid",
|
|
461
|
-
"type": "uint32"
|
|
462
|
-
},
|
|
463
|
-
{
|
|
464
|
-
"indexed": true,
|
|
465
105
|
"internalType": "address",
|
|
466
|
-
"name": "
|
|
106
|
+
"name": "_address",
|
|
467
107
|
"type": "address"
|
|
468
108
|
},
|
|
469
109
|
{
|
|
470
110
|
"indexed": false,
|
|
471
|
-
"internalType": "
|
|
472
|
-
"name": "
|
|
473
|
-
"type": "
|
|
111
|
+
"internalType": "bool",
|
|
112
|
+
"name": "_isExempt",
|
|
113
|
+
"type": "bool"
|
|
474
114
|
}
|
|
475
115
|
],
|
|
476
|
-
"name": "
|
|
116
|
+
"name": "SetExemptFromLimits",
|
|
477
117
|
"type": "event"
|
|
478
118
|
},
|
|
479
119
|
{
|
|
@@ -481,55 +121,37 @@ export const DEGENOFTAbi = [
|
|
|
481
121
|
"inputs": [
|
|
482
122
|
{
|
|
483
123
|
"indexed": true,
|
|
484
|
-
"internalType": "
|
|
485
|
-
"name": "
|
|
486
|
-
"type": "
|
|
487
|
-
},
|
|
488
|
-
{
|
|
489
|
-
"indexed": false,
|
|
490
|
-
"internalType": "uint32",
|
|
491
|
-
"name": "dstEid",
|
|
492
|
-
"type": "uint32"
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "from",
|
|
126
|
+
"type": "address"
|
|
493
127
|
},
|
|
494
128
|
{
|
|
495
129
|
"indexed": true,
|
|
496
130
|
"internalType": "address",
|
|
497
|
-
"name": "
|
|
131
|
+
"name": "to",
|
|
498
132
|
"type": "address"
|
|
499
133
|
},
|
|
500
134
|
{
|
|
501
135
|
"indexed": false,
|
|
502
136
|
"internalType": "uint256",
|
|
503
|
-
"name": "
|
|
504
|
-
"type": "uint256"
|
|
505
|
-
},
|
|
506
|
-
{
|
|
507
|
-
"indexed": false,
|
|
508
|
-
"internalType": "uint256",
|
|
509
|
-
"name": "amountReceivedLD",
|
|
137
|
+
"name": "value",
|
|
510
138
|
"type": "uint256"
|
|
511
139
|
}
|
|
512
140
|
],
|
|
513
|
-
"name": "
|
|
141
|
+
"name": "Transfer",
|
|
514
142
|
"type": "event"
|
|
515
143
|
},
|
|
516
144
|
{
|
|
517
145
|
"anonymous": false,
|
|
518
146
|
"inputs": [
|
|
519
147
|
{
|
|
520
|
-
"indexed":
|
|
521
|
-
"internalType": "
|
|
522
|
-
"name": "
|
|
523
|
-
"type": "
|
|
524
|
-
},
|
|
525
|
-
{
|
|
526
|
-
"indexed": true,
|
|
527
|
-
"internalType": "address",
|
|
528
|
-
"name": "newOwner",
|
|
529
|
-
"type": "address"
|
|
148
|
+
"indexed": false,
|
|
149
|
+
"internalType": "uint256",
|
|
150
|
+
"name": "newAmt",
|
|
151
|
+
"type": "uint256"
|
|
530
152
|
}
|
|
531
153
|
],
|
|
532
|
-
"name": "
|
|
154
|
+
"name": "UpdatedBuyTax",
|
|
533
155
|
"type": "event"
|
|
534
156
|
},
|
|
535
157
|
{
|
|
@@ -537,18 +159,12 @@ export const DEGENOFTAbi = [
|
|
|
537
159
|
"inputs": [
|
|
538
160
|
{
|
|
539
161
|
"indexed": false,
|
|
540
|
-
"internalType": "
|
|
541
|
-
"name": "
|
|
542
|
-
"type": "
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
"indexed": false,
|
|
546
|
-
"internalType": "bytes32",
|
|
547
|
-
"name": "peer",
|
|
548
|
-
"type": "bytes32"
|
|
162
|
+
"internalType": "uint256",
|
|
163
|
+
"name": "newMax",
|
|
164
|
+
"type": "uint256"
|
|
549
165
|
}
|
|
550
166
|
],
|
|
551
|
-
"name": "
|
|
167
|
+
"name": "UpdatedMaxTransaction",
|
|
552
168
|
"type": "event"
|
|
553
169
|
},
|
|
554
170
|
{
|
|
@@ -556,96 +172,35 @@ export const DEGENOFTAbi = [
|
|
|
556
172
|
"inputs": [
|
|
557
173
|
{
|
|
558
174
|
"indexed": false,
|
|
559
|
-
"internalType": "
|
|
560
|
-
"name": "
|
|
561
|
-
"type": "
|
|
175
|
+
"internalType": "uint256",
|
|
176
|
+
"name": "newMax",
|
|
177
|
+
"type": "uint256"
|
|
562
178
|
}
|
|
563
179
|
],
|
|
564
|
-
"name": "
|
|
180
|
+
"name": "UpdatedMaxWallet",
|
|
565
181
|
"type": "event"
|
|
566
182
|
},
|
|
567
183
|
{
|
|
568
184
|
"anonymous": false,
|
|
569
185
|
"inputs": [
|
|
570
|
-
{
|
|
571
|
-
"indexed": true,
|
|
572
|
-
"internalType": "address",
|
|
573
|
-
"name": "from",
|
|
574
|
-
"type": "address"
|
|
575
|
-
},
|
|
576
|
-
{
|
|
577
|
-
"indexed": true,
|
|
578
|
-
"internalType": "address",
|
|
579
|
-
"name": "to",
|
|
580
|
-
"type": "address"
|
|
581
|
-
},
|
|
582
186
|
{
|
|
583
187
|
"indexed": false,
|
|
584
188
|
"internalType": "uint256",
|
|
585
|
-
"name": "
|
|
189
|
+
"name": "newAmt",
|
|
586
190
|
"type": "uint256"
|
|
587
191
|
}
|
|
588
192
|
],
|
|
589
|
-
"name": "
|
|
193
|
+
"name": "UpdatedSellTax",
|
|
590
194
|
"type": "event"
|
|
591
195
|
},
|
|
592
196
|
{
|
|
593
197
|
"inputs": [],
|
|
594
|
-
"name": "
|
|
595
|
-
"outputs": [
|
|
596
|
-
{
|
|
597
|
-
"internalType": "uint16",
|
|
598
|
-
"name": "",
|
|
599
|
-
"type": "uint16"
|
|
600
|
-
}
|
|
601
|
-
],
|
|
602
|
-
"stateMutability": "view",
|
|
603
|
-
"type": "function"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
"inputs": [],
|
|
607
|
-
"name": "SEND_AND_CALL",
|
|
608
|
-
"outputs": [
|
|
609
|
-
{
|
|
610
|
-
"internalType": "uint16",
|
|
611
|
-
"name": "",
|
|
612
|
-
"type": "uint16"
|
|
613
|
-
}
|
|
614
|
-
],
|
|
615
|
-
"stateMutability": "view",
|
|
616
|
-
"type": "function"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
"inputs": [
|
|
620
|
-
{
|
|
621
|
-
"components": [
|
|
622
|
-
{
|
|
623
|
-
"internalType": "uint32",
|
|
624
|
-
"name": "srcEid",
|
|
625
|
-
"type": "uint32"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
"internalType": "bytes32",
|
|
629
|
-
"name": "sender",
|
|
630
|
-
"type": "bytes32"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
"internalType": "uint64",
|
|
634
|
-
"name": "nonce",
|
|
635
|
-
"type": "uint64"
|
|
636
|
-
}
|
|
637
|
-
],
|
|
638
|
-
"internalType": "struct Origin",
|
|
639
|
-
"name": "origin",
|
|
640
|
-
"type": "tuple"
|
|
641
|
-
}
|
|
642
|
-
],
|
|
643
|
-
"name": "allowInitializePath",
|
|
198
|
+
"name": "FEE_DIVISOR",
|
|
644
199
|
"outputs": [
|
|
645
200
|
{
|
|
646
|
-
"internalType": "
|
|
201
|
+
"internalType": "uint256",
|
|
647
202
|
"name": "",
|
|
648
|
-
"type": "
|
|
203
|
+
"type": "uint256"
|
|
649
204
|
}
|
|
650
205
|
],
|
|
651
206
|
"stateMutability": "view",
|
|
@@ -675,19 +230,6 @@ export const DEGENOFTAbi = [
|
|
|
675
230
|
"stateMutability": "view",
|
|
676
231
|
"type": "function"
|
|
677
232
|
},
|
|
678
|
-
{
|
|
679
|
-
"inputs": [],
|
|
680
|
-
"name": "approvalRequired",
|
|
681
|
-
"outputs": [
|
|
682
|
-
{
|
|
683
|
-
"internalType": "bool",
|
|
684
|
-
"name": "",
|
|
685
|
-
"type": "bool"
|
|
686
|
-
}
|
|
687
|
-
],
|
|
688
|
-
"stateMutability": "pure",
|
|
689
|
-
"type": "function"
|
|
690
|
-
},
|
|
691
233
|
{
|
|
692
234
|
"inputs": [
|
|
693
235
|
{
|
|
@@ -697,7 +239,7 @@ export const DEGENOFTAbi = [
|
|
|
697
239
|
},
|
|
698
240
|
{
|
|
699
241
|
"internalType": "uint256",
|
|
700
|
-
"name": "
|
|
242
|
+
"name": "amount",
|
|
701
243
|
"type": "uint256"
|
|
702
244
|
}
|
|
703
245
|
],
|
|
@@ -731,38 +273,9 @@ export const DEGENOFTAbi = [
|
|
|
731
273
|
"stateMutability": "view",
|
|
732
274
|
"type": "function"
|
|
733
275
|
},
|
|
734
|
-
{
|
|
735
|
-
"inputs": [
|
|
736
|
-
{
|
|
737
|
-
"internalType": "uint32",
|
|
738
|
-
"name": "_eid",
|
|
739
|
-
"type": "uint32"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
"internalType": "uint16",
|
|
743
|
-
"name": "_msgType",
|
|
744
|
-
"type": "uint16"
|
|
745
|
-
},
|
|
746
|
-
{
|
|
747
|
-
"internalType": "bytes",
|
|
748
|
-
"name": "_extraOptions",
|
|
749
|
-
"type": "bytes"
|
|
750
|
-
}
|
|
751
|
-
],
|
|
752
|
-
"name": "combineOptions",
|
|
753
|
-
"outputs": [
|
|
754
|
-
{
|
|
755
|
-
"internalType": "bytes",
|
|
756
|
-
"name": "",
|
|
757
|
-
"type": "bytes"
|
|
758
|
-
}
|
|
759
|
-
],
|
|
760
|
-
"stateMutability": "view",
|
|
761
|
-
"type": "function"
|
|
762
|
-
},
|
|
763
276
|
{
|
|
764
277
|
"inputs": [],
|
|
765
|
-
"name": "
|
|
278
|
+
"name": "buyTotalTax",
|
|
766
279
|
"outputs": [
|
|
767
280
|
{
|
|
768
281
|
"internalType": "uint256",
|
|
@@ -786,79 +299,20 @@ export const DEGENOFTAbi = [
|
|
|
786
299
|
"stateMutability": "view",
|
|
787
300
|
"type": "function"
|
|
788
301
|
},
|
|
789
|
-
{
|
|
790
|
-
"inputs": [],
|
|
791
|
-
"name": "endpoint",
|
|
792
|
-
"outputs": [
|
|
793
|
-
{
|
|
794
|
-
"internalType": "contract ILayerZeroEndpointV2",
|
|
795
|
-
"name": "",
|
|
796
|
-
"type": "address"
|
|
797
|
-
}
|
|
798
|
-
],
|
|
799
|
-
"stateMutability": "view",
|
|
800
|
-
"type": "function"
|
|
801
|
-
},
|
|
802
302
|
{
|
|
803
303
|
"inputs": [
|
|
804
|
-
{
|
|
805
|
-
"internalType": "uint32",
|
|
806
|
-
"name": "eid",
|
|
807
|
-
"type": "uint32"
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
"internalType": "uint16",
|
|
811
|
-
"name": "msgType",
|
|
812
|
-
"type": "uint16"
|
|
813
|
-
}
|
|
814
|
-
],
|
|
815
|
-
"name": "enforcedOptions",
|
|
816
|
-
"outputs": [
|
|
817
|
-
{
|
|
818
|
-
"internalType": "bytes",
|
|
819
|
-
"name": "enforcedOption",
|
|
820
|
-
"type": "bytes"
|
|
821
|
-
}
|
|
822
|
-
],
|
|
823
|
-
"stateMutability": "view",
|
|
824
|
-
"type": "function"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"inputs": [
|
|
828
|
-
{
|
|
829
|
-
"components": [
|
|
830
|
-
{
|
|
831
|
-
"internalType": "uint32",
|
|
832
|
-
"name": "srcEid",
|
|
833
|
-
"type": "uint32"
|
|
834
|
-
},
|
|
835
|
-
{
|
|
836
|
-
"internalType": "bytes32",
|
|
837
|
-
"name": "sender",
|
|
838
|
-
"type": "bytes32"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
"internalType": "uint64",
|
|
842
|
-
"name": "nonce",
|
|
843
|
-
"type": "uint64"
|
|
844
|
-
}
|
|
845
|
-
],
|
|
846
|
-
"internalType": "struct Origin",
|
|
847
|
-
"name": "",
|
|
848
|
-
"type": "tuple"
|
|
849
|
-
},
|
|
850
|
-
{
|
|
851
|
-
"internalType": "bytes",
|
|
852
|
-
"name": "",
|
|
853
|
-
"type": "bytes"
|
|
854
|
-
},
|
|
855
304
|
{
|
|
856
305
|
"internalType": "address",
|
|
857
|
-
"name": "
|
|
306
|
+
"name": "spender",
|
|
858
307
|
"type": "address"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"internalType": "uint256",
|
|
311
|
+
"name": "subtractedValue",
|
|
312
|
+
"type": "uint256"
|
|
859
313
|
}
|
|
860
314
|
],
|
|
861
|
-
"name": "
|
|
315
|
+
"name": "decreaseAllowance",
|
|
862
316
|
"outputs": [
|
|
863
317
|
{
|
|
864
318
|
"internalType": "bool",
|
|
@@ -866,226 +320,85 @@ export const DEGENOFTAbi = [
|
|
|
866
320
|
"type": "bool"
|
|
867
321
|
}
|
|
868
322
|
],
|
|
869
|
-
"stateMutability": "
|
|
323
|
+
"stateMutability": "nonpayable",
|
|
870
324
|
"type": "function"
|
|
871
325
|
},
|
|
872
326
|
{
|
|
873
|
-
"inputs": [
|
|
874
|
-
|
|
875
|
-
"internalType": "uint32",
|
|
876
|
-
"name": "_eid",
|
|
877
|
-
"type": "uint32"
|
|
878
|
-
},
|
|
879
|
-
{
|
|
880
|
-
"internalType": "bytes32",
|
|
881
|
-
"name": "_peer",
|
|
882
|
-
"type": "bytes32"
|
|
883
|
-
}
|
|
884
|
-
],
|
|
885
|
-
"name": "isPeer",
|
|
327
|
+
"inputs": [],
|
|
328
|
+
"name": "dexRouter",
|
|
886
329
|
"outputs": [
|
|
887
330
|
{
|
|
888
|
-
"internalType": "
|
|
331
|
+
"internalType": "contract IDexRouter",
|
|
889
332
|
"name": "",
|
|
890
|
-
"type": "
|
|
333
|
+
"type": "address"
|
|
891
334
|
}
|
|
892
335
|
],
|
|
893
336
|
"stateMutability": "view",
|
|
894
337
|
"type": "function"
|
|
895
338
|
},
|
|
339
|
+
{
|
|
340
|
+
"inputs": [],
|
|
341
|
+
"name": "enableTrading",
|
|
342
|
+
"outputs": [],
|
|
343
|
+
"stateMutability": "nonpayable",
|
|
344
|
+
"type": "function"
|
|
345
|
+
},
|
|
896
346
|
{
|
|
897
347
|
"inputs": [
|
|
898
348
|
{
|
|
899
|
-
"
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
"name": "srcEid",
|
|
903
|
-
"type": "uint32"
|
|
904
|
-
},
|
|
905
|
-
{
|
|
906
|
-
"internalType": "bytes32",
|
|
907
|
-
"name": "sender",
|
|
908
|
-
"type": "bytes32"
|
|
909
|
-
},
|
|
910
|
-
{
|
|
911
|
-
"internalType": "uint64",
|
|
912
|
-
"name": "nonce",
|
|
913
|
-
"type": "uint64"
|
|
914
|
-
}
|
|
915
|
-
],
|
|
916
|
-
"internalType": "struct Origin",
|
|
917
|
-
"name": "_origin",
|
|
918
|
-
"type": "tuple"
|
|
349
|
+
"internalType": "uint8",
|
|
350
|
+
"name": "v",
|
|
351
|
+
"type": "uint8"
|
|
919
352
|
},
|
|
920
353
|
{
|
|
921
354
|
"internalType": "bytes32",
|
|
922
|
-
"name": "
|
|
355
|
+
"name": "r",
|
|
923
356
|
"type": "bytes32"
|
|
924
357
|
},
|
|
925
358
|
{
|
|
926
|
-
"internalType": "
|
|
927
|
-
"name": "
|
|
928
|
-
"type": "
|
|
929
|
-
},
|
|
930
|
-
{
|
|
931
|
-
"internalType": "address",
|
|
932
|
-
"name": "_executor",
|
|
933
|
-
"type": "address"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"internalType": "bytes",
|
|
937
|
-
"name": "_extraData",
|
|
938
|
-
"type": "bytes"
|
|
939
|
-
}
|
|
940
|
-
],
|
|
941
|
-
"name": "lzReceive",
|
|
942
|
-
"outputs": [],
|
|
943
|
-
"stateMutability": "payable",
|
|
944
|
-
"type": "function"
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
"inputs": [
|
|
948
|
-
{
|
|
949
|
-
"components": [
|
|
950
|
-
{
|
|
951
|
-
"components": [
|
|
952
|
-
{
|
|
953
|
-
"internalType": "uint32",
|
|
954
|
-
"name": "srcEid",
|
|
955
|
-
"type": "uint32"
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"internalType": "bytes32",
|
|
959
|
-
"name": "sender",
|
|
960
|
-
"type": "bytes32"
|
|
961
|
-
},
|
|
962
|
-
{
|
|
963
|
-
"internalType": "uint64",
|
|
964
|
-
"name": "nonce",
|
|
965
|
-
"type": "uint64"
|
|
966
|
-
}
|
|
967
|
-
],
|
|
968
|
-
"internalType": "struct Origin",
|
|
969
|
-
"name": "origin",
|
|
970
|
-
"type": "tuple"
|
|
971
|
-
},
|
|
972
|
-
{
|
|
973
|
-
"internalType": "uint32",
|
|
974
|
-
"name": "dstEid",
|
|
975
|
-
"type": "uint32"
|
|
976
|
-
},
|
|
977
|
-
{
|
|
978
|
-
"internalType": "address",
|
|
979
|
-
"name": "receiver",
|
|
980
|
-
"type": "address"
|
|
981
|
-
},
|
|
982
|
-
{
|
|
983
|
-
"internalType": "bytes32",
|
|
984
|
-
"name": "guid",
|
|
985
|
-
"type": "bytes32"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"internalType": "uint256",
|
|
989
|
-
"name": "value",
|
|
990
|
-
"type": "uint256"
|
|
991
|
-
},
|
|
992
|
-
{
|
|
993
|
-
"internalType": "address",
|
|
994
|
-
"name": "executor",
|
|
995
|
-
"type": "address"
|
|
996
|
-
},
|
|
997
|
-
{
|
|
998
|
-
"internalType": "bytes",
|
|
999
|
-
"name": "message",
|
|
1000
|
-
"type": "bytes"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
"internalType": "bytes",
|
|
1004
|
-
"name": "extraData",
|
|
1005
|
-
"type": "bytes"
|
|
1006
|
-
}
|
|
1007
|
-
],
|
|
1008
|
-
"internalType": "struct InboundPacket[]",
|
|
1009
|
-
"name": "_packets",
|
|
1010
|
-
"type": "tuple[]"
|
|
359
|
+
"internalType": "bytes32",
|
|
360
|
+
"name": "s",
|
|
361
|
+
"type": "bytes32"
|
|
1011
362
|
}
|
|
1012
363
|
],
|
|
1013
|
-
"name": "
|
|
364
|
+
"name": "enableTradingWithPermit",
|
|
1014
365
|
"outputs": [],
|
|
1015
|
-
"stateMutability": "
|
|
366
|
+
"stateMutability": "nonpayable",
|
|
1016
367
|
"type": "function"
|
|
1017
368
|
},
|
|
1018
369
|
{
|
|
1019
370
|
"inputs": [
|
|
1020
|
-
{
|
|
1021
|
-
"components": [
|
|
1022
|
-
{
|
|
1023
|
-
"internalType": "uint32",
|
|
1024
|
-
"name": "srcEid",
|
|
1025
|
-
"type": "uint32"
|
|
1026
|
-
},
|
|
1027
|
-
{
|
|
1028
|
-
"internalType": "bytes32",
|
|
1029
|
-
"name": "sender",
|
|
1030
|
-
"type": "bytes32"
|
|
1031
|
-
},
|
|
1032
|
-
{
|
|
1033
|
-
"internalType": "uint64",
|
|
1034
|
-
"name": "nonce",
|
|
1035
|
-
"type": "uint64"
|
|
1036
|
-
}
|
|
1037
|
-
],
|
|
1038
|
-
"internalType": "struct Origin",
|
|
1039
|
-
"name": "_origin",
|
|
1040
|
-
"type": "tuple"
|
|
1041
|
-
},
|
|
1042
|
-
{
|
|
1043
|
-
"internalType": "bytes32",
|
|
1044
|
-
"name": "_guid",
|
|
1045
|
-
"type": "bytes32"
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
"internalType": "bytes",
|
|
1049
|
-
"name": "_message",
|
|
1050
|
-
"type": "bytes"
|
|
1051
|
-
},
|
|
1052
371
|
{
|
|
1053
372
|
"internalType": "address",
|
|
1054
|
-
"name": "
|
|
373
|
+
"name": "",
|
|
1055
374
|
"type": "address"
|
|
1056
|
-
},
|
|
1057
|
-
{
|
|
1058
|
-
"internalType": "bytes",
|
|
1059
|
-
"name": "_extraData",
|
|
1060
|
-
"type": "bytes"
|
|
1061
375
|
}
|
|
1062
376
|
],
|
|
1063
|
-
"name": "
|
|
1064
|
-
"outputs": [],
|
|
1065
|
-
"stateMutability": "payable",
|
|
1066
|
-
"type": "function"
|
|
1067
|
-
},
|
|
1068
|
-
{
|
|
1069
|
-
"inputs": [],
|
|
1070
|
-
"name": "msgInspector",
|
|
377
|
+
"name": "exemptFromFees",
|
|
1071
378
|
"outputs": [
|
|
1072
379
|
{
|
|
1073
|
-
"internalType": "
|
|
380
|
+
"internalType": "bool",
|
|
1074
381
|
"name": "",
|
|
1075
|
-
"type": "
|
|
382
|
+
"type": "bool"
|
|
1076
383
|
}
|
|
1077
384
|
],
|
|
1078
385
|
"stateMutability": "view",
|
|
1079
386
|
"type": "function"
|
|
1080
387
|
},
|
|
1081
388
|
{
|
|
1082
|
-
"inputs": [
|
|
1083
|
-
|
|
389
|
+
"inputs": [
|
|
390
|
+
{
|
|
391
|
+
"internalType": "address",
|
|
392
|
+
"name": "",
|
|
393
|
+
"type": "address"
|
|
394
|
+
}
|
|
395
|
+
],
|
|
396
|
+
"name": "exemptFromLimits",
|
|
1084
397
|
"outputs": [
|
|
1085
398
|
{
|
|
1086
|
-
"internalType": "
|
|
399
|
+
"internalType": "bool",
|
|
1087
400
|
"name": "",
|
|
1088
|
-
"type": "
|
|
401
|
+
"type": "bool"
|
|
1089
402
|
}
|
|
1090
403
|
],
|
|
1091
404
|
"stateMutability": "view",
|
|
@@ -1094,79 +407,62 @@ export const DEGENOFTAbi = [
|
|
|
1094
407
|
{
|
|
1095
408
|
"inputs": [
|
|
1096
409
|
{
|
|
1097
|
-
"internalType": "
|
|
1098
|
-
"name": "",
|
|
1099
|
-
"type": "
|
|
410
|
+
"internalType": "address",
|
|
411
|
+
"name": "spender",
|
|
412
|
+
"type": "address"
|
|
1100
413
|
},
|
|
1101
414
|
{
|
|
1102
|
-
"internalType": "
|
|
1103
|
-
"name": "",
|
|
1104
|
-
"type": "
|
|
415
|
+
"internalType": "uint256",
|
|
416
|
+
"name": "addedValue",
|
|
417
|
+
"type": "uint256"
|
|
1105
418
|
}
|
|
1106
419
|
],
|
|
1107
|
-
"name": "
|
|
420
|
+
"name": "increaseAllowance",
|
|
1108
421
|
"outputs": [
|
|
1109
422
|
{
|
|
1110
|
-
"internalType": "
|
|
1111
|
-
"name": "
|
|
1112
|
-
"type": "
|
|
423
|
+
"internalType": "bool",
|
|
424
|
+
"name": "",
|
|
425
|
+
"type": "bool"
|
|
1113
426
|
}
|
|
1114
427
|
],
|
|
1115
|
-
"stateMutability": "
|
|
428
|
+
"stateMutability": "nonpayable",
|
|
1116
429
|
"type": "function"
|
|
1117
430
|
},
|
|
1118
431
|
{
|
|
1119
|
-
"inputs": [
|
|
1120
|
-
"name": "oApp",
|
|
1121
|
-
"outputs": [
|
|
432
|
+
"inputs": [
|
|
1122
433
|
{
|
|
1123
434
|
"internalType": "address",
|
|
1124
435
|
"name": "",
|
|
1125
436
|
"type": "address"
|
|
1126
437
|
}
|
|
1127
438
|
],
|
|
1128
|
-
"
|
|
1129
|
-
"type": "function"
|
|
1130
|
-
},
|
|
1131
|
-
{
|
|
1132
|
-
"inputs": [],
|
|
1133
|
-
"name": "oAppVersion",
|
|
439
|
+
"name": "isAMMPair",
|
|
1134
440
|
"outputs": [
|
|
1135
441
|
{
|
|
1136
|
-
"internalType": "
|
|
1137
|
-
"name": "
|
|
1138
|
-
"type": "
|
|
1139
|
-
},
|
|
1140
|
-
{
|
|
1141
|
-
"internalType": "uint64",
|
|
1142
|
-
"name": "receiverVersion",
|
|
1143
|
-
"type": "uint64"
|
|
442
|
+
"internalType": "bool",
|
|
443
|
+
"name": "",
|
|
444
|
+
"type": "bool"
|
|
1144
445
|
}
|
|
1145
446
|
],
|
|
1146
|
-
"stateMutability": "
|
|
447
|
+
"stateMutability": "view",
|
|
1147
448
|
"type": "function"
|
|
1148
449
|
},
|
|
1149
450
|
{
|
|
1150
451
|
"inputs": [],
|
|
1151
|
-
"name": "
|
|
452
|
+
"name": "limitsInEffect",
|
|
1152
453
|
"outputs": [
|
|
1153
454
|
{
|
|
1154
|
-
"internalType": "
|
|
1155
|
-
"name": "
|
|
1156
|
-
"type": "
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
"internalType": "uint64",
|
|
1160
|
-
"name": "version",
|
|
1161
|
-
"type": "uint64"
|
|
455
|
+
"internalType": "bool",
|
|
456
|
+
"name": "",
|
|
457
|
+
"type": "bool"
|
|
1162
458
|
}
|
|
1163
459
|
],
|
|
1164
|
-
"stateMutability": "
|
|
460
|
+
"stateMutability": "view",
|
|
1165
461
|
"type": "function"
|
|
1166
462
|
},
|
|
1167
463
|
{
|
|
1168
464
|
"inputs": [],
|
|
1169
|
-
"name": "
|
|
465
|
+
"name": "lpPair",
|
|
1170
466
|
"outputs": [
|
|
1171
467
|
{
|
|
1172
468
|
"internalType": "address",
|
|
@@ -1178,19 +474,13 @@ export const DEGENOFTAbi = [
|
|
|
1178
474
|
"type": "function"
|
|
1179
475
|
},
|
|
1180
476
|
{
|
|
1181
|
-
"inputs": [
|
|
1182
|
-
|
|
1183
|
-
"internalType": "uint32",
|
|
1184
|
-
"name": "eid",
|
|
1185
|
-
"type": "uint32"
|
|
1186
|
-
}
|
|
1187
|
-
],
|
|
1188
|
-
"name": "peers",
|
|
477
|
+
"inputs": [],
|
|
478
|
+
"name": "maxTransaction",
|
|
1189
479
|
"outputs": [
|
|
1190
480
|
{
|
|
1191
|
-
"internalType": "
|
|
1192
|
-
"name": "
|
|
1193
|
-
"type": "
|
|
481
|
+
"internalType": "uint256",
|
|
482
|
+
"name": "",
|
|
483
|
+
"type": "uint256"
|
|
1194
484
|
}
|
|
1195
485
|
],
|
|
1196
486
|
"stateMutability": "view",
|
|
@@ -1198,192 +488,50 @@ export const DEGENOFTAbi = [
|
|
|
1198
488
|
},
|
|
1199
489
|
{
|
|
1200
490
|
"inputs": [],
|
|
1201
|
-
"name": "
|
|
491
|
+
"name": "maxWallet",
|
|
1202
492
|
"outputs": [
|
|
1203
493
|
{
|
|
1204
|
-
"internalType": "
|
|
494
|
+
"internalType": "uint256",
|
|
1205
495
|
"name": "",
|
|
1206
|
-
"type": "
|
|
496
|
+
"type": "uint256"
|
|
1207
497
|
}
|
|
1208
498
|
],
|
|
1209
499
|
"stateMutability": "view",
|
|
1210
500
|
"type": "function"
|
|
1211
501
|
},
|
|
1212
502
|
{
|
|
1213
|
-
"inputs": [
|
|
1214
|
-
|
|
1215
|
-
"components": [
|
|
1216
|
-
{
|
|
1217
|
-
"internalType": "uint32",
|
|
1218
|
-
"name": "dstEid",
|
|
1219
|
-
"type": "uint32"
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
"internalType": "bytes32",
|
|
1223
|
-
"name": "to",
|
|
1224
|
-
"type": "bytes32"
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
"internalType": "uint256",
|
|
1228
|
-
"name": "amountLD",
|
|
1229
|
-
"type": "uint256"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"internalType": "uint256",
|
|
1233
|
-
"name": "minAmountLD",
|
|
1234
|
-
"type": "uint256"
|
|
1235
|
-
},
|
|
1236
|
-
{
|
|
1237
|
-
"internalType": "bytes",
|
|
1238
|
-
"name": "extraOptions",
|
|
1239
|
-
"type": "bytes"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
"internalType": "bytes",
|
|
1243
|
-
"name": "composeMsg",
|
|
1244
|
-
"type": "bytes"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
"internalType": "bytes",
|
|
1248
|
-
"name": "oftCmd",
|
|
1249
|
-
"type": "bytes"
|
|
1250
|
-
}
|
|
1251
|
-
],
|
|
1252
|
-
"internalType": "struct SendParam",
|
|
1253
|
-
"name": "_sendParam",
|
|
1254
|
-
"type": "tuple"
|
|
1255
|
-
}
|
|
1256
|
-
],
|
|
1257
|
-
"name": "quoteOFT",
|
|
503
|
+
"inputs": [],
|
|
504
|
+
"name": "name",
|
|
1258
505
|
"outputs": [
|
|
1259
506
|
{
|
|
1260
|
-
"
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
"name": "minAmountLD",
|
|
1264
|
-
"type": "uint256"
|
|
1265
|
-
},
|
|
1266
|
-
{
|
|
1267
|
-
"internalType": "uint256",
|
|
1268
|
-
"name": "maxAmountLD",
|
|
1269
|
-
"type": "uint256"
|
|
1270
|
-
}
|
|
1271
|
-
],
|
|
1272
|
-
"internalType": "struct OFTLimit",
|
|
1273
|
-
"name": "oftLimit",
|
|
1274
|
-
"type": "tuple"
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
"components": [
|
|
1278
|
-
{
|
|
1279
|
-
"internalType": "int256",
|
|
1280
|
-
"name": "feeAmountLD",
|
|
1281
|
-
"type": "int256"
|
|
1282
|
-
},
|
|
1283
|
-
{
|
|
1284
|
-
"internalType": "string",
|
|
1285
|
-
"name": "description",
|
|
1286
|
-
"type": "string"
|
|
1287
|
-
}
|
|
1288
|
-
],
|
|
1289
|
-
"internalType": "struct OFTFeeDetail[]",
|
|
1290
|
-
"name": "oftFeeDetails",
|
|
1291
|
-
"type": "tuple[]"
|
|
1292
|
-
},
|
|
1293
|
-
{
|
|
1294
|
-
"components": [
|
|
1295
|
-
{
|
|
1296
|
-
"internalType": "uint256",
|
|
1297
|
-
"name": "amountSentLD",
|
|
1298
|
-
"type": "uint256"
|
|
1299
|
-
},
|
|
1300
|
-
{
|
|
1301
|
-
"internalType": "uint256",
|
|
1302
|
-
"name": "amountReceivedLD",
|
|
1303
|
-
"type": "uint256"
|
|
1304
|
-
}
|
|
1305
|
-
],
|
|
1306
|
-
"internalType": "struct OFTReceipt",
|
|
1307
|
-
"name": "oftReceipt",
|
|
1308
|
-
"type": "tuple"
|
|
507
|
+
"internalType": "string",
|
|
508
|
+
"name": "",
|
|
509
|
+
"type": "string"
|
|
1309
510
|
}
|
|
1310
511
|
],
|
|
1311
512
|
"stateMutability": "view",
|
|
1312
513
|
"type": "function"
|
|
1313
514
|
},
|
|
1314
515
|
{
|
|
1315
|
-
"inputs": [
|
|
1316
|
-
|
|
1317
|
-
"components": [
|
|
1318
|
-
{
|
|
1319
|
-
"internalType": "uint32",
|
|
1320
|
-
"name": "dstEid",
|
|
1321
|
-
"type": "uint32"
|
|
1322
|
-
},
|
|
1323
|
-
{
|
|
1324
|
-
"internalType": "bytes32",
|
|
1325
|
-
"name": "to",
|
|
1326
|
-
"type": "bytes32"
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
"internalType": "uint256",
|
|
1330
|
-
"name": "amountLD",
|
|
1331
|
-
"type": "uint256"
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
"internalType": "uint256",
|
|
1335
|
-
"name": "minAmountLD",
|
|
1336
|
-
"type": "uint256"
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
"internalType": "bytes",
|
|
1340
|
-
"name": "extraOptions",
|
|
1341
|
-
"type": "bytes"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
"internalType": "bytes",
|
|
1345
|
-
"name": "composeMsg",
|
|
1346
|
-
"type": "bytes"
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
"internalType": "bytes",
|
|
1350
|
-
"name": "oftCmd",
|
|
1351
|
-
"type": "bytes"
|
|
1352
|
-
}
|
|
1353
|
-
],
|
|
1354
|
-
"internalType": "struct SendParam",
|
|
1355
|
-
"name": "_sendParam",
|
|
1356
|
-
"type": "tuple"
|
|
1357
|
-
},
|
|
1358
|
-
{
|
|
1359
|
-
"internalType": "bool",
|
|
1360
|
-
"name": "_payInLzToken",
|
|
1361
|
-
"type": "bool"
|
|
1362
|
-
}
|
|
1363
|
-
],
|
|
1364
|
-
"name": "quoteSend",
|
|
516
|
+
"inputs": [],
|
|
517
|
+
"name": "owner",
|
|
1365
518
|
"outputs": [
|
|
1366
519
|
{
|
|
1367
|
-
"
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
"name": "nativeFee",
|
|
1371
|
-
"type": "uint256"
|
|
1372
|
-
},
|
|
1373
|
-
{
|
|
1374
|
-
"internalType": "uint256",
|
|
1375
|
-
"name": "lzTokenFee",
|
|
1376
|
-
"type": "uint256"
|
|
1377
|
-
}
|
|
1378
|
-
],
|
|
1379
|
-
"internalType": "struct MessagingFee",
|
|
1380
|
-
"name": "msgFee",
|
|
1381
|
-
"type": "tuple"
|
|
520
|
+
"internalType": "address",
|
|
521
|
+
"name": "",
|
|
522
|
+
"type": "address"
|
|
1382
523
|
}
|
|
1383
524
|
],
|
|
1384
525
|
"stateMutability": "view",
|
|
1385
526
|
"type": "function"
|
|
1386
527
|
},
|
|
528
|
+
{
|
|
529
|
+
"inputs": [],
|
|
530
|
+
"name": "removeLimits",
|
|
531
|
+
"outputs": [],
|
|
532
|
+
"stateMutability": "nonpayable",
|
|
533
|
+
"type": "function"
|
|
534
|
+
},
|
|
1387
535
|
{
|
|
1388
536
|
"inputs": [],
|
|
1389
537
|
"name": "renounceOwnership",
|
|
@@ -1394,166 +542,48 @@ export const DEGENOFTAbi = [
|
|
|
1394
542
|
{
|
|
1395
543
|
"inputs": [
|
|
1396
544
|
{
|
|
1397
|
-
"
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
"name": "dstEid",
|
|
1401
|
-
"type": "uint32"
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
"internalType": "bytes32",
|
|
1405
|
-
"name": "to",
|
|
1406
|
-
"type": "bytes32"
|
|
1407
|
-
},
|
|
1408
|
-
{
|
|
1409
|
-
"internalType": "uint256",
|
|
1410
|
-
"name": "amountLD",
|
|
1411
|
-
"type": "uint256"
|
|
1412
|
-
},
|
|
1413
|
-
{
|
|
1414
|
-
"internalType": "uint256",
|
|
1415
|
-
"name": "minAmountLD",
|
|
1416
|
-
"type": "uint256"
|
|
1417
|
-
},
|
|
1418
|
-
{
|
|
1419
|
-
"internalType": "bytes",
|
|
1420
|
-
"name": "extraOptions",
|
|
1421
|
-
"type": "bytes"
|
|
1422
|
-
},
|
|
1423
|
-
{
|
|
1424
|
-
"internalType": "bytes",
|
|
1425
|
-
"name": "composeMsg",
|
|
1426
|
-
"type": "bytes"
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
"internalType": "bytes",
|
|
1430
|
-
"name": "oftCmd",
|
|
1431
|
-
"type": "bytes"
|
|
1432
|
-
}
|
|
1433
|
-
],
|
|
1434
|
-
"internalType": "struct SendParam",
|
|
1435
|
-
"name": "_sendParam",
|
|
1436
|
-
"type": "tuple"
|
|
1437
|
-
},
|
|
1438
|
-
{
|
|
1439
|
-
"components": [
|
|
1440
|
-
{
|
|
1441
|
-
"internalType": "uint256",
|
|
1442
|
-
"name": "nativeFee",
|
|
1443
|
-
"type": "uint256"
|
|
1444
|
-
},
|
|
1445
|
-
{
|
|
1446
|
-
"internalType": "uint256",
|
|
1447
|
-
"name": "lzTokenFee",
|
|
1448
|
-
"type": "uint256"
|
|
1449
|
-
}
|
|
1450
|
-
],
|
|
1451
|
-
"internalType": "struct MessagingFee",
|
|
1452
|
-
"name": "_fee",
|
|
1453
|
-
"type": "tuple"
|
|
545
|
+
"internalType": "address",
|
|
546
|
+
"name": "_token",
|
|
547
|
+
"type": "address"
|
|
1454
548
|
},
|
|
1455
549
|
{
|
|
1456
550
|
"internalType": "address",
|
|
1457
|
-
"name": "
|
|
551
|
+
"name": "_to",
|
|
1458
552
|
"type": "address"
|
|
1459
553
|
}
|
|
1460
554
|
],
|
|
1461
|
-
"name": "
|
|
555
|
+
"name": "rescueTokens",
|
|
556
|
+
"outputs": [],
|
|
557
|
+
"stateMutability": "nonpayable",
|
|
558
|
+
"type": "function"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"inputs": [],
|
|
562
|
+
"name": "sellTotalTax",
|
|
1462
563
|
"outputs": [
|
|
1463
564
|
{
|
|
1464
|
-
"
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
"name": "guid",
|
|
1468
|
-
"type": "bytes32"
|
|
1469
|
-
},
|
|
1470
|
-
{
|
|
1471
|
-
"internalType": "uint64",
|
|
1472
|
-
"name": "nonce",
|
|
1473
|
-
"type": "uint64"
|
|
1474
|
-
},
|
|
1475
|
-
{
|
|
1476
|
-
"components": [
|
|
1477
|
-
{
|
|
1478
|
-
"internalType": "uint256",
|
|
1479
|
-
"name": "nativeFee",
|
|
1480
|
-
"type": "uint256"
|
|
1481
|
-
},
|
|
1482
|
-
{
|
|
1483
|
-
"internalType": "uint256",
|
|
1484
|
-
"name": "lzTokenFee",
|
|
1485
|
-
"type": "uint256"
|
|
1486
|
-
}
|
|
1487
|
-
],
|
|
1488
|
-
"internalType": "struct MessagingFee",
|
|
1489
|
-
"name": "fee",
|
|
1490
|
-
"type": "tuple"
|
|
1491
|
-
}
|
|
1492
|
-
],
|
|
1493
|
-
"internalType": "struct MessagingReceipt",
|
|
1494
|
-
"name": "msgReceipt",
|
|
1495
|
-
"type": "tuple"
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
"components": [
|
|
1499
|
-
{
|
|
1500
|
-
"internalType": "uint256",
|
|
1501
|
-
"name": "amountSentLD",
|
|
1502
|
-
"type": "uint256"
|
|
1503
|
-
},
|
|
1504
|
-
{
|
|
1505
|
-
"internalType": "uint256",
|
|
1506
|
-
"name": "amountReceivedLD",
|
|
1507
|
-
"type": "uint256"
|
|
1508
|
-
}
|
|
1509
|
-
],
|
|
1510
|
-
"internalType": "struct OFTReceipt",
|
|
1511
|
-
"name": "oftReceipt",
|
|
1512
|
-
"type": "tuple"
|
|
565
|
+
"internalType": "uint256",
|
|
566
|
+
"name": "",
|
|
567
|
+
"type": "uint256"
|
|
1513
568
|
}
|
|
1514
569
|
],
|
|
1515
|
-
"stateMutability": "
|
|
570
|
+
"stateMutability": "view",
|
|
1516
571
|
"type": "function"
|
|
1517
572
|
},
|
|
1518
573
|
{
|
|
1519
574
|
"inputs": [
|
|
1520
575
|
{
|
|
1521
576
|
"internalType": "address",
|
|
1522
|
-
"name": "
|
|
577
|
+
"name": "_address",
|
|
1523
578
|
"type": "address"
|
|
1524
|
-
}
|
|
1525
|
-
],
|
|
1526
|
-
"name": "setDelegate",
|
|
1527
|
-
"outputs": [],
|
|
1528
|
-
"stateMutability": "nonpayable",
|
|
1529
|
-
"type": "function"
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
"inputs": [
|
|
579
|
+
},
|
|
1533
580
|
{
|
|
1534
|
-
"
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
"name": "eid",
|
|
1538
|
-
"type": "uint32"
|
|
1539
|
-
},
|
|
1540
|
-
{
|
|
1541
|
-
"internalType": "uint16",
|
|
1542
|
-
"name": "msgType",
|
|
1543
|
-
"type": "uint16"
|
|
1544
|
-
},
|
|
1545
|
-
{
|
|
1546
|
-
"internalType": "bytes",
|
|
1547
|
-
"name": "options",
|
|
1548
|
-
"type": "bytes"
|
|
1549
|
-
}
|
|
1550
|
-
],
|
|
1551
|
-
"internalType": "struct EnforcedOptionParam[]",
|
|
1552
|
-
"name": "_enforcedOptions",
|
|
1553
|
-
"type": "tuple[]"
|
|
581
|
+
"internalType": "bool",
|
|
582
|
+
"name": "_isExempt",
|
|
583
|
+
"type": "bool"
|
|
1554
584
|
}
|
|
1555
585
|
],
|
|
1556
|
-
"name": "
|
|
586
|
+
"name": "setExemptFromFees",
|
|
1557
587
|
"outputs": [],
|
|
1558
588
|
"stateMutability": "nonpayable",
|
|
1559
589
|
"type": "function"
|
|
@@ -1562,11 +592,16 @@ export const DEGENOFTAbi = [
|
|
|
1562
592
|
"inputs": [
|
|
1563
593
|
{
|
|
1564
594
|
"internalType": "address",
|
|
1565
|
-
"name": "
|
|
595
|
+
"name": "_address",
|
|
1566
596
|
"type": "address"
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"internalType": "bool",
|
|
600
|
+
"name": "_isExempt",
|
|
601
|
+
"type": "bool"
|
|
1567
602
|
}
|
|
1568
603
|
],
|
|
1569
|
-
"name": "
|
|
604
|
+
"name": "setExemptFromLimits",
|
|
1570
605
|
"outputs": [],
|
|
1571
606
|
"stateMutability": "nonpayable",
|
|
1572
607
|
"type": "function"
|
|
@@ -1574,45 +609,40 @@ export const DEGENOFTAbi = [
|
|
|
1574
609
|
{
|
|
1575
610
|
"inputs": [
|
|
1576
611
|
{
|
|
1577
|
-
"internalType": "
|
|
1578
|
-
"name": "
|
|
1579
|
-
"type": "
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
"internalType": "bytes32",
|
|
1583
|
-
"name": "_peer",
|
|
1584
|
-
"type": "bytes32"
|
|
612
|
+
"internalType": "uint256",
|
|
613
|
+
"name": "amountInWei",
|
|
614
|
+
"type": "uint256"
|
|
1585
615
|
}
|
|
1586
616
|
],
|
|
1587
|
-
"name": "
|
|
617
|
+
"name": "setSwapTokensAtAmt",
|
|
1588
618
|
"outputs": [],
|
|
1589
619
|
"stateMutability": "nonpayable",
|
|
1590
620
|
"type": "function"
|
|
1591
621
|
},
|
|
1592
622
|
{
|
|
1593
|
-
"inputs": [
|
|
623
|
+
"inputs": [],
|
|
624
|
+
"name": "swapEnabled",
|
|
625
|
+
"outputs": [
|
|
1594
626
|
{
|
|
1595
|
-
"internalType": "
|
|
1596
|
-
"name": "
|
|
1597
|
-
"type": "
|
|
627
|
+
"internalType": "bool",
|
|
628
|
+
"name": "",
|
|
629
|
+
"type": "bool"
|
|
1598
630
|
}
|
|
1599
631
|
],
|
|
1600
|
-
"
|
|
1601
|
-
"outputs": [],
|
|
1602
|
-
"stateMutability": "nonpayable",
|
|
632
|
+
"stateMutability": "view",
|
|
1603
633
|
"type": "function"
|
|
1604
634
|
},
|
|
1605
635
|
{
|
|
1606
636
|
"inputs": [],
|
|
1607
|
-
"name": "
|
|
637
|
+
"name": "swapTokensAtAmt",
|
|
1608
638
|
"outputs": [
|
|
1609
639
|
{
|
|
1610
|
-
"internalType": "
|
|
640
|
+
"internalType": "uint256",
|
|
1611
641
|
"name": "",
|
|
1612
|
-
"type": "
|
|
642
|
+
"type": "uint256"
|
|
1613
643
|
}
|
|
1614
644
|
],
|
|
1615
|
-
"stateMutability": "
|
|
645
|
+
"stateMutability": "view",
|
|
1616
646
|
"type": "function"
|
|
1617
647
|
},
|
|
1618
648
|
{
|
|
@@ -1630,7 +660,7 @@ export const DEGENOFTAbi = [
|
|
|
1630
660
|
},
|
|
1631
661
|
{
|
|
1632
662
|
"inputs": [],
|
|
1633
|
-
"name": "
|
|
663
|
+
"name": "taxReceiverAddress",
|
|
1634
664
|
"outputs": [
|
|
1635
665
|
{
|
|
1636
666
|
"internalType": "address",
|
|
@@ -1654,6 +684,19 @@ export const DEGENOFTAbi = [
|
|
|
1654
684
|
"stateMutability": "view",
|
|
1655
685
|
"type": "function"
|
|
1656
686
|
},
|
|
687
|
+
{
|
|
688
|
+
"inputs": [],
|
|
689
|
+
"name": "tradingActive",
|
|
690
|
+
"outputs": [
|
|
691
|
+
{
|
|
692
|
+
"internalType": "bool",
|
|
693
|
+
"name": "",
|
|
694
|
+
"type": "bool"
|
|
695
|
+
}
|
|
696
|
+
],
|
|
697
|
+
"stateMutability": "view",
|
|
698
|
+
"type": "function"
|
|
699
|
+
},
|
|
1657
700
|
{
|
|
1658
701
|
"inputs": [
|
|
1659
702
|
{
|
|
@@ -1663,7 +706,7 @@ export const DEGENOFTAbi = [
|
|
|
1663
706
|
},
|
|
1664
707
|
{
|
|
1665
708
|
"internalType": "uint256",
|
|
1666
|
-
"name": "
|
|
709
|
+
"name": "amount",
|
|
1667
710
|
"type": "uint256"
|
|
1668
711
|
}
|
|
1669
712
|
],
|
|
@@ -1692,7 +735,7 @@ export const DEGENOFTAbi = [
|
|
|
1692
735
|
},
|
|
1693
736
|
{
|
|
1694
737
|
"internalType": "uint256",
|
|
1695
|
-
"name": "
|
|
738
|
+
"name": "amount",
|
|
1696
739
|
"type": "uint256"
|
|
1697
740
|
}
|
|
1698
741
|
],
|
|
@@ -1719,23 +762,88 @@ export const DEGENOFTAbi = [
|
|
|
1719
762
|
"outputs": [],
|
|
1720
763
|
"stateMutability": "nonpayable",
|
|
1721
764
|
"type": "function"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"inputs": [
|
|
768
|
+
{
|
|
769
|
+
"internalType": "uint256",
|
|
770
|
+
"name": "_taxWithTwoDecimals",
|
|
771
|
+
"type": "uint256"
|
|
772
|
+
}
|
|
773
|
+
],
|
|
774
|
+
"name": "updateBuyTax",
|
|
775
|
+
"outputs": [],
|
|
776
|
+
"stateMutability": "nonpayable",
|
|
777
|
+
"type": "function"
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
"inputs": [
|
|
781
|
+
{
|
|
782
|
+
"internalType": "uint256",
|
|
783
|
+
"name": "newNumInTokens",
|
|
784
|
+
"type": "uint256"
|
|
785
|
+
}
|
|
786
|
+
],
|
|
787
|
+
"name": "updateMaxTransaction",
|
|
788
|
+
"outputs": [],
|
|
789
|
+
"stateMutability": "nonpayable",
|
|
790
|
+
"type": "function"
|
|
791
|
+
},
|
|
792
|
+
{
|
|
793
|
+
"inputs": [
|
|
794
|
+
{
|
|
795
|
+
"internalType": "uint256",
|
|
796
|
+
"name": "newNumInTokens",
|
|
797
|
+
"type": "uint256"
|
|
798
|
+
}
|
|
799
|
+
],
|
|
800
|
+
"name": "updateMaxWallet",
|
|
801
|
+
"outputs": [],
|
|
802
|
+
"stateMutability": "nonpayable",
|
|
803
|
+
"type": "function"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"inputs": [
|
|
807
|
+
{
|
|
808
|
+
"internalType": "uint256",
|
|
809
|
+
"name": "_taxWithTwoDecimals",
|
|
810
|
+
"type": "uint256"
|
|
811
|
+
}
|
|
812
|
+
],
|
|
813
|
+
"name": "updateSellTax",
|
|
814
|
+
"outputs": [],
|
|
815
|
+
"stateMutability": "nonpayable",
|
|
816
|
+
"type": "function"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"inputs": [
|
|
820
|
+
{
|
|
821
|
+
"internalType": "address",
|
|
822
|
+
"name": "_address",
|
|
823
|
+
"type": "address"
|
|
824
|
+
}
|
|
825
|
+
],
|
|
826
|
+
"name": "updateTaxAddress",
|
|
827
|
+
"outputs": [],
|
|
828
|
+
"stateMutability": "nonpayable",
|
|
829
|
+
"type": "function"
|
|
1722
830
|
}
|
|
1723
831
|
] as const satisfies Abi;
|
|
1724
832
|
|
|
1725
833
|
/**
|
|
1726
|
-
* Type-safe ABI for
|
|
834
|
+
* Type-safe ABI for DegenFood
|
|
1727
835
|
*/
|
|
1728
|
-
export type
|
|
836
|
+
export type DegenFoodAbi = typeof DegenFoodAbi;
|
|
1729
837
|
|
|
1730
838
|
/**
|
|
1731
|
-
* Contract instance type for
|
|
839
|
+
* Contract instance type for DegenFood
|
|
1732
840
|
*/
|
|
1733
841
|
// Use any for contract type to avoid complex viem type issues
|
|
1734
842
|
// The runtime behavior is type-safe through viem's ABI typing
|
|
1735
|
-
export type
|
|
843
|
+
export type DegenFoodContract = any;
|
|
1736
844
|
|
|
1737
845
|
/**
|
|
1738
|
-
*
|
|
846
|
+
* DegenFood Contract Class
|
|
1739
847
|
*
|
|
1740
848
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
1741
849
|
*
|
|
@@ -1743,12 +851,12 @@ export type DEGENOFTContract = any;
|
|
|
1743
851
|
* ```typescript
|
|
1744
852
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
1745
853
|
* import { mainnet } from 'viem/chains';
|
|
1746
|
-
* import {
|
|
854
|
+
* import { DegenFood } from 'DegenFood';
|
|
1747
855
|
*
|
|
1748
856
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
1749
857
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
1750
858
|
*
|
|
1751
|
-
* const contract = new
|
|
859
|
+
* const contract = new DegenFood('0x...', { publicClient, walletClient });
|
|
1752
860
|
*
|
|
1753
861
|
* // Read functions
|
|
1754
862
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -1766,8 +874,8 @@ export type DEGENOFTContract = any;
|
|
|
1766
874
|
* });
|
|
1767
875
|
* ```
|
|
1768
876
|
*/
|
|
1769
|
-
export class
|
|
1770
|
-
private contract:
|
|
877
|
+
export class DegenFood {
|
|
878
|
+
private contract: DegenFoodContract;
|
|
1771
879
|
private contractAddress: Address;
|
|
1772
880
|
private publicClient: PublicClient;
|
|
1773
881
|
|
|
@@ -1782,7 +890,7 @@ export class DEGENOFT {
|
|
|
1782
890
|
this.publicClient = clients.publicClient;
|
|
1783
891
|
this.contract = getContract({
|
|
1784
892
|
address,
|
|
1785
|
-
abi:
|
|
893
|
+
abi: DegenFoodAbi,
|
|
1786
894
|
client: {
|
|
1787
895
|
public: clients.publicClient,
|
|
1788
896
|
wallet: clients.walletClient,
|
|
@@ -1800,120 +908,112 @@ export class DEGENOFT {
|
|
|
1800
908
|
/**
|
|
1801
909
|
* Get the underlying viem contract instance.
|
|
1802
910
|
*/
|
|
1803
|
-
getContract():
|
|
911
|
+
getContract(): DegenFoodContract {
|
|
1804
912
|
return this.contract;
|
|
1805
913
|
}
|
|
1806
914
|
|
|
1807
915
|
/**
|
|
1808
|
-
*
|
|
916
|
+
* FEE_DIVISOR
|
|
1809
917
|
* view
|
|
1810
918
|
*/
|
|
1811
|
-
async
|
|
1812
|
-
return this.contract.read.
|
|
919
|
+
async FEE_DIVISOR(): Promise<bigint> {
|
|
920
|
+
return this.contract.read.FEE_DIVISOR() as Promise<bigint>;
|
|
1813
921
|
}
|
|
1814
922
|
|
|
1815
923
|
/**
|
|
1816
|
-
*
|
|
924
|
+
* allowance
|
|
1817
925
|
* view
|
|
1818
926
|
*/
|
|
1819
|
-
async
|
|
1820
|
-
return this.contract.read.
|
|
927
|
+
async allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint> {
|
|
928
|
+
return this.contract.read.allowance([owner, spender] as const) as Promise<bigint>;
|
|
1821
929
|
}
|
|
1822
930
|
|
|
1823
931
|
/**
|
|
1824
|
-
*
|
|
932
|
+
* balanceOf
|
|
1825
933
|
* view
|
|
1826
934
|
*/
|
|
1827
|
-
async
|
|
1828
|
-
return this.contract.read.
|
|
935
|
+
async balanceOf(account: `0x${string}`): Promise<bigint> {
|
|
936
|
+
return this.contract.read.balanceOf([account] as const) as Promise<bigint>;
|
|
1829
937
|
}
|
|
1830
938
|
|
|
1831
939
|
/**
|
|
1832
|
-
*
|
|
940
|
+
* buyTotalTax
|
|
1833
941
|
* view
|
|
1834
942
|
*/
|
|
1835
|
-
async
|
|
1836
|
-
return this.contract.read.
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
/**
|
|
1840
|
-
* approvalRequired
|
|
1841
|
-
* pure
|
|
1842
|
-
*/
|
|
1843
|
-
async approvalRequired(): Promise<boolean> {
|
|
1844
|
-
return this.contract.read.approvalRequired() as Promise<boolean>;
|
|
943
|
+
async buyTotalTax(): Promise<bigint> {
|
|
944
|
+
return this.contract.read.buyTotalTax() as Promise<bigint>;
|
|
1845
945
|
}
|
|
1846
946
|
|
|
1847
947
|
/**
|
|
1848
|
-
*
|
|
948
|
+
* decimals
|
|
1849
949
|
* view
|
|
1850
|
-
*/
|
|
1851
|
-
async
|
|
1852
|
-
return this.contract.read.
|
|
950
|
+
*/
|
|
951
|
+
async decimals(): Promise<bigint> {
|
|
952
|
+
return this.contract.read.decimals() as Promise<bigint>;
|
|
1853
953
|
}
|
|
1854
954
|
|
|
1855
955
|
/**
|
|
1856
|
-
*
|
|
956
|
+
* dexRouter
|
|
1857
957
|
* view
|
|
1858
958
|
*/
|
|
1859
|
-
async
|
|
1860
|
-
return this.contract.read.
|
|
959
|
+
async dexRouter(): Promise<`0x${string}`> {
|
|
960
|
+
return this.contract.read.dexRouter() as Promise<`0x${string}`>;
|
|
1861
961
|
}
|
|
1862
962
|
|
|
1863
963
|
/**
|
|
1864
|
-
*
|
|
964
|
+
* exemptFromFees
|
|
1865
965
|
* view
|
|
1866
966
|
*/
|
|
1867
|
-
async
|
|
1868
|
-
return this.contract.read.
|
|
967
|
+
async exemptFromFees(arg0: `0x${string}`): Promise<boolean> {
|
|
968
|
+
return this.contract.read.exemptFromFees([arg0] as const) as Promise<boolean>;
|
|
1869
969
|
}
|
|
1870
970
|
|
|
1871
971
|
/**
|
|
1872
|
-
*
|
|
972
|
+
* exemptFromLimits
|
|
1873
973
|
* view
|
|
1874
974
|
*/
|
|
1875
|
-
async
|
|
1876
|
-
return this.contract.read.
|
|
975
|
+
async exemptFromLimits(arg0: `0x${string}`): Promise<boolean> {
|
|
976
|
+
return this.contract.read.exemptFromLimits([arg0] as const) as Promise<boolean>;
|
|
1877
977
|
}
|
|
1878
978
|
|
|
1879
979
|
/**
|
|
1880
|
-
*
|
|
980
|
+
* isAMMPair
|
|
1881
981
|
* view
|
|
1882
982
|
*/
|
|
1883
|
-
async
|
|
1884
|
-
return this.contract.read.
|
|
983
|
+
async isAMMPair(arg0: `0x${string}`): Promise<boolean> {
|
|
984
|
+
return this.contract.read.isAMMPair([arg0] as const) as Promise<boolean>;
|
|
1885
985
|
}
|
|
1886
986
|
|
|
1887
987
|
/**
|
|
1888
|
-
*
|
|
988
|
+
* limitsInEffect
|
|
1889
989
|
* view
|
|
1890
990
|
*/
|
|
1891
|
-
async
|
|
1892
|
-
return this.contract.read.
|
|
991
|
+
async limitsInEffect(): Promise<boolean> {
|
|
992
|
+
return this.contract.read.limitsInEffect() as Promise<boolean>;
|
|
1893
993
|
}
|
|
1894
994
|
|
|
1895
995
|
/**
|
|
1896
|
-
*
|
|
996
|
+
* lpPair
|
|
1897
997
|
* view
|
|
1898
998
|
*/
|
|
1899
|
-
async
|
|
1900
|
-
return this.contract.read.
|
|
999
|
+
async lpPair(): Promise<`0x${string}`> {
|
|
1000
|
+
return this.contract.read.lpPair() as Promise<`0x${string}`>;
|
|
1901
1001
|
}
|
|
1902
1002
|
|
|
1903
1003
|
/**
|
|
1904
|
-
*
|
|
1004
|
+
* maxTransaction
|
|
1905
1005
|
* view
|
|
1906
1006
|
*/
|
|
1907
|
-
async
|
|
1908
|
-
return this.contract.read.
|
|
1007
|
+
async maxTransaction(): Promise<bigint> {
|
|
1008
|
+
return this.contract.read.maxTransaction() as Promise<bigint>;
|
|
1909
1009
|
}
|
|
1910
1010
|
|
|
1911
1011
|
/**
|
|
1912
|
-
*
|
|
1012
|
+
* maxWallet
|
|
1913
1013
|
* view
|
|
1914
1014
|
*/
|
|
1915
|
-
async
|
|
1916
|
-
return this.contract.read.
|
|
1015
|
+
async maxWallet(): Promise<bigint> {
|
|
1016
|
+
return this.contract.read.maxWallet() as Promise<bigint>;
|
|
1917
1017
|
}
|
|
1918
1018
|
|
|
1919
1019
|
/**
|
|
@@ -1925,115 +1025,190 @@ export class DEGENOFT {
|
|
|
1925
1025
|
}
|
|
1926
1026
|
|
|
1927
1027
|
/**
|
|
1928
|
-
*
|
|
1028
|
+
* owner
|
|
1929
1029
|
* view
|
|
1930
1030
|
*/
|
|
1931
|
-
async
|
|
1932
|
-
return this.contract.read.
|
|
1031
|
+
async owner(): Promise<`0x${string}`> {
|
|
1032
|
+
return this.contract.read.owner() as Promise<`0x${string}`>;
|
|
1933
1033
|
}
|
|
1934
1034
|
|
|
1935
1035
|
/**
|
|
1936
|
-
*
|
|
1036
|
+
* sellTotalTax
|
|
1937
1037
|
* view
|
|
1938
1038
|
*/
|
|
1939
|
-
async
|
|
1940
|
-
return this.contract.read.
|
|
1039
|
+
async sellTotalTax(): Promise<bigint> {
|
|
1040
|
+
return this.contract.read.sellTotalTax() as Promise<bigint>;
|
|
1941
1041
|
}
|
|
1942
1042
|
|
|
1943
1043
|
/**
|
|
1944
|
-
*
|
|
1945
|
-
*
|
|
1044
|
+
* swapEnabled
|
|
1045
|
+
* view
|
|
1946
1046
|
*/
|
|
1947
|
-
async
|
|
1948
|
-
return this.contract.read.
|
|
1047
|
+
async swapEnabled(): Promise<boolean> {
|
|
1048
|
+
return this.contract.read.swapEnabled() as Promise<boolean>;
|
|
1949
1049
|
}
|
|
1950
1050
|
|
|
1951
1051
|
/**
|
|
1952
|
-
*
|
|
1953
|
-
*
|
|
1052
|
+
* swapTokensAtAmt
|
|
1053
|
+
* view
|
|
1954
1054
|
*/
|
|
1955
|
-
async
|
|
1956
|
-
return this.contract.read.
|
|
1055
|
+
async swapTokensAtAmt(): Promise<bigint> {
|
|
1056
|
+
return this.contract.read.swapTokensAtAmt() as Promise<bigint>;
|
|
1957
1057
|
}
|
|
1958
1058
|
|
|
1959
1059
|
/**
|
|
1960
|
-
*
|
|
1060
|
+
* symbol
|
|
1961
1061
|
* view
|
|
1962
1062
|
*/
|
|
1963
|
-
async
|
|
1964
|
-
return this.contract.read.
|
|
1063
|
+
async symbol(): Promise<string> {
|
|
1064
|
+
return this.contract.read.symbol() as Promise<string>;
|
|
1965
1065
|
}
|
|
1966
1066
|
|
|
1967
1067
|
/**
|
|
1968
|
-
*
|
|
1068
|
+
* taxReceiverAddress
|
|
1969
1069
|
* view
|
|
1970
1070
|
*/
|
|
1971
|
-
async
|
|
1972
|
-
return this.contract.read.
|
|
1071
|
+
async taxReceiverAddress(): Promise<`0x${string}`> {
|
|
1072
|
+
return this.contract.read.taxReceiverAddress() as Promise<`0x${string}`>;
|
|
1973
1073
|
}
|
|
1974
1074
|
|
|
1975
1075
|
/**
|
|
1976
|
-
*
|
|
1076
|
+
* totalSupply
|
|
1977
1077
|
* view
|
|
1978
1078
|
*/
|
|
1979
|
-
async
|
|
1980
|
-
return this.contract.read.
|
|
1079
|
+
async totalSupply(): Promise<bigint> {
|
|
1080
|
+
return this.contract.read.totalSupply() as Promise<bigint>;
|
|
1981
1081
|
}
|
|
1982
1082
|
|
|
1983
1083
|
/**
|
|
1984
|
-
*
|
|
1084
|
+
* tradingActive
|
|
1985
1085
|
* view
|
|
1986
1086
|
*/
|
|
1987
|
-
async
|
|
1988
|
-
return this.contract.read.
|
|
1087
|
+
async tradingActive(): Promise<boolean> {
|
|
1088
|
+
return this.contract.read.tradingActive() as Promise<boolean>;
|
|
1989
1089
|
}
|
|
1990
1090
|
|
|
1991
1091
|
/**
|
|
1992
|
-
*
|
|
1993
|
-
*
|
|
1092
|
+
* approve
|
|
1093
|
+
* nonpayable
|
|
1094
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1994
1095
|
*/
|
|
1995
|
-
async
|
|
1996
|
-
|
|
1096
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
1097
|
+
accessList?: import('viem').AccessList;
|
|
1098
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1099
|
+
chain?: import('viem').Chain | null;
|
|
1100
|
+
dataSuffix?: `0x${string}`;
|
|
1101
|
+
gas?: bigint;
|
|
1102
|
+
gasPrice?: bigint;
|
|
1103
|
+
maxFeePerGas?: bigint;
|
|
1104
|
+
maxPriorityFeePerGas?: bigint;
|
|
1105
|
+
nonce?: number;
|
|
1106
|
+
value?: bigint;
|
|
1107
|
+
}): Promise<`0x${string}`> {
|
|
1108
|
+
if (!this.contract.write) {
|
|
1109
|
+
throw new Error('Wallet client is required for write operations');
|
|
1110
|
+
}
|
|
1111
|
+
return this.contract.write.approve([spender, amount] as const, options) as Promise<`0x${string}`>;
|
|
1997
1112
|
}
|
|
1998
1113
|
|
|
1999
1114
|
/**
|
|
2000
|
-
*
|
|
2001
|
-
*
|
|
1115
|
+
* decreaseAllowance
|
|
1116
|
+
* nonpayable
|
|
1117
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2002
1118
|
*/
|
|
2003
|
-
async
|
|
2004
|
-
|
|
1119
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
1120
|
+
accessList?: import('viem').AccessList;
|
|
1121
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1122
|
+
chain?: import('viem').Chain | null;
|
|
1123
|
+
dataSuffix?: `0x${string}`;
|
|
1124
|
+
gas?: bigint;
|
|
1125
|
+
gasPrice?: bigint;
|
|
1126
|
+
maxFeePerGas?: bigint;
|
|
1127
|
+
maxPriorityFeePerGas?: bigint;
|
|
1128
|
+
nonce?: number;
|
|
1129
|
+
value?: bigint;
|
|
1130
|
+
}): Promise<`0x${string}`> {
|
|
1131
|
+
if (!this.contract.write) {
|
|
1132
|
+
throw new Error('Wallet client is required for write operations');
|
|
1133
|
+
}
|
|
1134
|
+
return this.contract.write.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<`0x${string}`>;
|
|
2005
1135
|
}
|
|
2006
1136
|
|
|
2007
1137
|
/**
|
|
2008
|
-
*
|
|
2009
|
-
*
|
|
1138
|
+
* enableTrading
|
|
1139
|
+
* nonpayable
|
|
1140
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2010
1141
|
*/
|
|
2011
|
-
async
|
|
2012
|
-
|
|
1142
|
+
async enableTrading(options?: {
|
|
1143
|
+
accessList?: import('viem').AccessList;
|
|
1144
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1145
|
+
chain?: import('viem').Chain | null;
|
|
1146
|
+
dataSuffix?: `0x${string}`;
|
|
1147
|
+
gas?: bigint;
|
|
1148
|
+
gasPrice?: bigint;
|
|
1149
|
+
maxFeePerGas?: bigint;
|
|
1150
|
+
maxPriorityFeePerGas?: bigint;
|
|
1151
|
+
nonce?: number;
|
|
1152
|
+
value?: bigint;
|
|
1153
|
+
}): Promise<`0x${string}`> {
|
|
1154
|
+
if (!this.contract.write) {
|
|
1155
|
+
throw new Error('Wallet client is required for write operations');
|
|
1156
|
+
}
|
|
1157
|
+
return this.contract.write.enableTrading(options) as Promise<`0x${string}`>;
|
|
2013
1158
|
}
|
|
2014
1159
|
|
|
2015
1160
|
/**
|
|
2016
|
-
*
|
|
2017
|
-
*
|
|
1161
|
+
* enableTradingWithPermit
|
|
1162
|
+
* nonpayable
|
|
1163
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2018
1164
|
*/
|
|
2019
|
-
async
|
|
2020
|
-
|
|
1165
|
+
async enableTradingWithPermit(v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
1166
|
+
accessList?: import('viem').AccessList;
|
|
1167
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1168
|
+
chain?: import('viem').Chain | null;
|
|
1169
|
+
dataSuffix?: `0x${string}`;
|
|
1170
|
+
gas?: bigint;
|
|
1171
|
+
gasPrice?: bigint;
|
|
1172
|
+
maxFeePerGas?: bigint;
|
|
1173
|
+
maxPriorityFeePerGas?: bigint;
|
|
1174
|
+
nonce?: number;
|
|
1175
|
+
value?: bigint;
|
|
1176
|
+
}): Promise<`0x${string}`> {
|
|
1177
|
+
if (!this.contract.write) {
|
|
1178
|
+
throw new Error('Wallet client is required for write operations');
|
|
1179
|
+
}
|
|
1180
|
+
return this.contract.write.enableTradingWithPermit([v, r, s] as const, options) as Promise<`0x${string}`>;
|
|
2021
1181
|
}
|
|
2022
1182
|
|
|
2023
1183
|
/**
|
|
2024
|
-
*
|
|
2025
|
-
*
|
|
1184
|
+
* increaseAllowance
|
|
1185
|
+
* nonpayable
|
|
1186
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2026
1187
|
*/
|
|
2027
|
-
async
|
|
2028
|
-
|
|
1188
|
+
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
1189
|
+
accessList?: import('viem').AccessList;
|
|
1190
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1191
|
+
chain?: import('viem').Chain | null;
|
|
1192
|
+
dataSuffix?: `0x${string}`;
|
|
1193
|
+
gas?: bigint;
|
|
1194
|
+
gasPrice?: bigint;
|
|
1195
|
+
maxFeePerGas?: bigint;
|
|
1196
|
+
maxPriorityFeePerGas?: bigint;
|
|
1197
|
+
nonce?: number;
|
|
1198
|
+
value?: bigint;
|
|
1199
|
+
}): Promise<`0x${string}`> {
|
|
1200
|
+
if (!this.contract.write) {
|
|
1201
|
+
throw new Error('Wallet client is required for write operations');
|
|
1202
|
+
}
|
|
1203
|
+
return this.contract.write.increaseAllowance([spender, addedValue] as const, options) as Promise<`0x${string}`>;
|
|
2029
1204
|
}
|
|
2030
1205
|
|
|
2031
1206
|
/**
|
|
2032
|
-
*
|
|
1207
|
+
* removeLimits
|
|
2033
1208
|
* nonpayable
|
|
2034
1209
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2035
1210
|
*/
|
|
2036
|
-
async
|
|
1211
|
+
async removeLimits(options?: {
|
|
2037
1212
|
accessList?: import('viem').AccessList;
|
|
2038
1213
|
authorizationList?: import('viem').AuthorizationList;
|
|
2039
1214
|
chain?: import('viem').Chain | null;
|
|
@@ -2048,15 +1223,15 @@ export class DEGENOFT {
|
|
|
2048
1223
|
if (!this.contract.write) {
|
|
2049
1224
|
throw new Error('Wallet client is required for write operations');
|
|
2050
1225
|
}
|
|
2051
|
-
return this.contract.write.
|
|
1226
|
+
return this.contract.write.removeLimits(options) as Promise<`0x${string}`>;
|
|
2052
1227
|
}
|
|
2053
1228
|
|
|
2054
1229
|
/**
|
|
2055
|
-
*
|
|
2056
|
-
*
|
|
1230
|
+
* renounceOwnership
|
|
1231
|
+
* nonpayable
|
|
2057
1232
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2058
1233
|
*/
|
|
2059
|
-
async
|
|
1234
|
+
async renounceOwnership(options?: {
|
|
2060
1235
|
accessList?: import('viem').AccessList;
|
|
2061
1236
|
authorizationList?: import('viem').AuthorizationList;
|
|
2062
1237
|
chain?: import('viem').Chain | null;
|
|
@@ -2071,15 +1246,15 @@ export class DEGENOFT {
|
|
|
2071
1246
|
if (!this.contract.write) {
|
|
2072
1247
|
throw new Error('Wallet client is required for write operations');
|
|
2073
1248
|
}
|
|
2074
|
-
return this.contract.write.
|
|
1249
|
+
return this.contract.write.renounceOwnership(options) as Promise<`0x${string}`>;
|
|
2075
1250
|
}
|
|
2076
1251
|
|
|
2077
1252
|
/**
|
|
2078
|
-
*
|
|
2079
|
-
*
|
|
1253
|
+
* rescueTokens
|
|
1254
|
+
* nonpayable
|
|
2080
1255
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2081
1256
|
*/
|
|
2082
|
-
async
|
|
1257
|
+
async rescueTokens(_token: `0x${string}`, _to: `0x${string}`, options?: {
|
|
2083
1258
|
accessList?: import('viem').AccessList;
|
|
2084
1259
|
authorizationList?: import('viem').AuthorizationList;
|
|
2085
1260
|
chain?: import('viem').Chain | null;
|
|
@@ -2094,15 +1269,15 @@ export class DEGENOFT {
|
|
|
2094
1269
|
if (!this.contract.write) {
|
|
2095
1270
|
throw new Error('Wallet client is required for write operations');
|
|
2096
1271
|
}
|
|
2097
|
-
return this.contract.write.
|
|
1272
|
+
return this.contract.write.rescueTokens([_token, _to] as const, options) as Promise<`0x${string}`>;
|
|
2098
1273
|
}
|
|
2099
1274
|
|
|
2100
1275
|
/**
|
|
2101
|
-
*
|
|
2102
|
-
*
|
|
1276
|
+
* setExemptFromFees
|
|
1277
|
+
* nonpayable
|
|
2103
1278
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2104
1279
|
*/
|
|
2105
|
-
async
|
|
1280
|
+
async setExemptFromFees(_address: `0x${string}`, _isExempt: boolean, options?: {
|
|
2106
1281
|
accessList?: import('viem').AccessList;
|
|
2107
1282
|
authorizationList?: import('viem').AuthorizationList;
|
|
2108
1283
|
chain?: import('viem').Chain | null;
|
|
@@ -2117,15 +1292,15 @@ export class DEGENOFT {
|
|
|
2117
1292
|
if (!this.contract.write) {
|
|
2118
1293
|
throw new Error('Wallet client is required for write operations');
|
|
2119
1294
|
}
|
|
2120
|
-
return this.contract.write.
|
|
1295
|
+
return this.contract.write.setExemptFromFees([_address, _isExempt] as const, options) as Promise<`0x${string}`>;
|
|
2121
1296
|
}
|
|
2122
1297
|
|
|
2123
1298
|
/**
|
|
2124
|
-
*
|
|
1299
|
+
* setExemptFromLimits
|
|
2125
1300
|
* nonpayable
|
|
2126
1301
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2127
1302
|
*/
|
|
2128
|
-
async
|
|
1303
|
+
async setExemptFromLimits(_address: `0x${string}`, _isExempt: boolean, options?: {
|
|
2129
1304
|
accessList?: import('viem').AccessList;
|
|
2130
1305
|
authorizationList?: import('viem').AuthorizationList;
|
|
2131
1306
|
chain?: import('viem').Chain | null;
|
|
@@ -2140,15 +1315,15 @@ export class DEGENOFT {
|
|
|
2140
1315
|
if (!this.contract.write) {
|
|
2141
1316
|
throw new Error('Wallet client is required for write operations');
|
|
2142
1317
|
}
|
|
2143
|
-
return this.contract.write.
|
|
1318
|
+
return this.contract.write.setExemptFromLimits([_address, _isExempt] as const, options) as Promise<`0x${string}`>;
|
|
2144
1319
|
}
|
|
2145
1320
|
|
|
2146
1321
|
/**
|
|
2147
|
-
*
|
|
2148
|
-
*
|
|
1322
|
+
* setSwapTokensAtAmt
|
|
1323
|
+
* nonpayable
|
|
2149
1324
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2150
1325
|
*/
|
|
2151
|
-
async
|
|
1326
|
+
async setSwapTokensAtAmt(amountInWei: bigint, options?: {
|
|
2152
1327
|
accessList?: import('viem').AccessList;
|
|
2153
1328
|
authorizationList?: import('viem').AuthorizationList;
|
|
2154
1329
|
chain?: import('viem').Chain | null;
|
|
@@ -2163,15 +1338,15 @@ export class DEGENOFT {
|
|
|
2163
1338
|
if (!this.contract.write) {
|
|
2164
1339
|
throw new Error('Wallet client is required for write operations');
|
|
2165
1340
|
}
|
|
2166
|
-
return this.contract.write.
|
|
1341
|
+
return this.contract.write.setSwapTokensAtAmt([amountInWei] as const, options) as Promise<`0x${string}`>;
|
|
2167
1342
|
}
|
|
2168
1343
|
|
|
2169
1344
|
/**
|
|
2170
|
-
*
|
|
1345
|
+
* transfer
|
|
2171
1346
|
* nonpayable
|
|
2172
1347
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2173
1348
|
*/
|
|
2174
|
-
async
|
|
1349
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
2175
1350
|
accessList?: import('viem').AccessList;
|
|
2176
1351
|
authorizationList?: import('viem').AuthorizationList;
|
|
2177
1352
|
chain?: import('viem').Chain | null;
|
|
@@ -2186,15 +1361,15 @@ export class DEGENOFT {
|
|
|
2186
1361
|
if (!this.contract.write) {
|
|
2187
1362
|
throw new Error('Wallet client is required for write operations');
|
|
2188
1363
|
}
|
|
2189
|
-
return this.contract.write.
|
|
1364
|
+
return this.contract.write.transfer([to, amount] as const, options) as Promise<`0x${string}`>;
|
|
2190
1365
|
}
|
|
2191
1366
|
|
|
2192
1367
|
/**
|
|
2193
|
-
*
|
|
1368
|
+
* transferFrom
|
|
2194
1369
|
* nonpayable
|
|
2195
1370
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2196
1371
|
*/
|
|
2197
|
-
async
|
|
1372
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2198
1373
|
accessList?: import('viem').AccessList;
|
|
2199
1374
|
authorizationList?: import('viem').AuthorizationList;
|
|
2200
1375
|
chain?: import('viem').Chain | null;
|
|
@@ -2209,15 +1384,15 @@ export class DEGENOFT {
|
|
|
2209
1384
|
if (!this.contract.write) {
|
|
2210
1385
|
throw new Error('Wallet client is required for write operations');
|
|
2211
1386
|
}
|
|
2212
|
-
return this.contract.write.
|
|
1387
|
+
return this.contract.write.transferFrom([from, to, amount] as const, options) as Promise<`0x${string}`>;
|
|
2213
1388
|
}
|
|
2214
1389
|
|
|
2215
1390
|
/**
|
|
2216
|
-
*
|
|
1391
|
+
* transferOwnership
|
|
2217
1392
|
* nonpayable
|
|
2218
1393
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2219
1394
|
*/
|
|
2220
|
-
async
|
|
1395
|
+
async transferOwnership(newOwner: `0x${string}`, options?: {
|
|
2221
1396
|
accessList?: import('viem').AccessList;
|
|
2222
1397
|
authorizationList?: import('viem').AuthorizationList;
|
|
2223
1398
|
chain?: import('viem').Chain | null;
|
|
@@ -2232,15 +1407,15 @@ export class DEGENOFT {
|
|
|
2232
1407
|
if (!this.contract.write) {
|
|
2233
1408
|
throw new Error('Wallet client is required for write operations');
|
|
2234
1409
|
}
|
|
2235
|
-
return this.contract.write.
|
|
1410
|
+
return this.contract.write.transferOwnership([newOwner] as const, options) as Promise<`0x${string}`>;
|
|
2236
1411
|
}
|
|
2237
1412
|
|
|
2238
1413
|
/**
|
|
2239
|
-
*
|
|
1414
|
+
* updateBuyTax
|
|
2240
1415
|
* nonpayable
|
|
2241
1416
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2242
1417
|
*/
|
|
2243
|
-
async
|
|
1418
|
+
async updateBuyTax(_taxWithTwoDecimals: bigint, options?: {
|
|
2244
1419
|
accessList?: import('viem').AccessList;
|
|
2245
1420
|
authorizationList?: import('viem').AuthorizationList;
|
|
2246
1421
|
chain?: import('viem').Chain | null;
|
|
@@ -2255,15 +1430,15 @@ export class DEGENOFT {
|
|
|
2255
1430
|
if (!this.contract.write) {
|
|
2256
1431
|
throw new Error('Wallet client is required for write operations');
|
|
2257
1432
|
}
|
|
2258
|
-
return this.contract.write.
|
|
1433
|
+
return this.contract.write.updateBuyTax([_taxWithTwoDecimals] as const, options) as Promise<`0x${string}`>;
|
|
2259
1434
|
}
|
|
2260
1435
|
|
|
2261
1436
|
/**
|
|
2262
|
-
*
|
|
1437
|
+
* updateMaxTransaction
|
|
2263
1438
|
* nonpayable
|
|
2264
1439
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2265
1440
|
*/
|
|
2266
|
-
async
|
|
1441
|
+
async updateMaxTransaction(newNumInTokens: bigint, options?: {
|
|
2267
1442
|
accessList?: import('viem').AccessList;
|
|
2268
1443
|
authorizationList?: import('viem').AuthorizationList;
|
|
2269
1444
|
chain?: import('viem').Chain | null;
|
|
@@ -2278,15 +1453,15 @@ export class DEGENOFT {
|
|
|
2278
1453
|
if (!this.contract.write) {
|
|
2279
1454
|
throw new Error('Wallet client is required for write operations');
|
|
2280
1455
|
}
|
|
2281
|
-
return this.contract.write.
|
|
1456
|
+
return this.contract.write.updateMaxTransaction([newNumInTokens] as const, options) as Promise<`0x${string}`>;
|
|
2282
1457
|
}
|
|
2283
1458
|
|
|
2284
1459
|
/**
|
|
2285
|
-
*
|
|
1460
|
+
* updateMaxWallet
|
|
2286
1461
|
* nonpayable
|
|
2287
1462
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2288
1463
|
*/
|
|
2289
|
-
async
|
|
1464
|
+
async updateMaxWallet(newNumInTokens: bigint, options?: {
|
|
2290
1465
|
accessList?: import('viem').AccessList;
|
|
2291
1466
|
authorizationList?: import('viem').AuthorizationList;
|
|
2292
1467
|
chain?: import('viem').Chain | null;
|
|
@@ -2301,15 +1476,15 @@ export class DEGENOFT {
|
|
|
2301
1476
|
if (!this.contract.write) {
|
|
2302
1477
|
throw new Error('Wallet client is required for write operations');
|
|
2303
1478
|
}
|
|
2304
|
-
return this.contract.write.
|
|
1479
|
+
return this.contract.write.updateMaxWallet([newNumInTokens] as const, options) as Promise<`0x${string}`>;
|
|
2305
1480
|
}
|
|
2306
1481
|
|
|
2307
1482
|
/**
|
|
2308
|
-
*
|
|
1483
|
+
* updateSellTax
|
|
2309
1484
|
* nonpayable
|
|
2310
1485
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2311
1486
|
*/
|
|
2312
|
-
async
|
|
1487
|
+
async updateSellTax(_taxWithTwoDecimals: bigint, options?: {
|
|
2313
1488
|
accessList?: import('viem').AccessList;
|
|
2314
1489
|
authorizationList?: import('viem').AuthorizationList;
|
|
2315
1490
|
chain?: import('viem').Chain | null;
|
|
@@ -2324,15 +1499,15 @@ export class DEGENOFT {
|
|
|
2324
1499
|
if (!this.contract.write) {
|
|
2325
1500
|
throw new Error('Wallet client is required for write operations');
|
|
2326
1501
|
}
|
|
2327
|
-
return this.contract.write.
|
|
1502
|
+
return this.contract.write.updateSellTax([_taxWithTwoDecimals] as const, options) as Promise<`0x${string}`>;
|
|
2328
1503
|
}
|
|
2329
1504
|
|
|
2330
1505
|
/**
|
|
2331
|
-
*
|
|
1506
|
+
* updateTaxAddress
|
|
2332
1507
|
* nonpayable
|
|
2333
1508
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2334
1509
|
*/
|
|
2335
|
-
async
|
|
1510
|
+
async updateTaxAddress(_address: `0x${string}`, options?: {
|
|
2336
1511
|
accessList?: import('viem').AccessList;
|
|
2337
1512
|
authorizationList?: import('viem').AuthorizationList;
|
|
2338
1513
|
chain?: import('viem').Chain | null;
|
|
@@ -2347,7 +1522,7 @@ export class DEGENOFT {
|
|
|
2347
1522
|
if (!this.contract.write) {
|
|
2348
1523
|
throw new Error('Wallet client is required for write operations');
|
|
2349
1524
|
}
|
|
2350
|
-
return this.contract.write.
|
|
1525
|
+
return this.contract.write.updateTaxAddress([_address] as const, options) as Promise<`0x${string}`>;
|
|
2351
1526
|
}
|
|
2352
1527
|
|
|
2353
1528
|
|
|
@@ -2371,7 +1546,7 @@ export class DEGENOFT {
|
|
|
2371
1546
|
* Returns gas estimate and result without sending transaction
|
|
2372
1547
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2373
1548
|
*/
|
|
2374
|
-
async approve(spender: `0x${string}`,
|
|
1549
|
+
async approve(spender: `0x${string}`, amount: bigint, options?: {
|
|
2375
1550
|
accessList?: import('viem').AccessList;
|
|
2376
1551
|
authorizationList?: import('viem').AuthorizationList;
|
|
2377
1552
|
chain?: import('viem').Chain | null;
|
|
@@ -2383,14 +1558,14 @@ export class DEGENOFT {
|
|
|
2383
1558
|
nonce?: number;
|
|
2384
1559
|
value?: bigint;
|
|
2385
1560
|
}): Promise<boolean> {
|
|
2386
|
-
return contract.simulate.approve([spender,
|
|
1561
|
+
return contract.simulate.approve([spender, amount] as const, options) as Promise<boolean>;
|
|
2387
1562
|
},
|
|
2388
1563
|
/**
|
|
2389
|
-
* Simulate
|
|
1564
|
+
* Simulate decreaseAllowance
|
|
2390
1565
|
* Returns gas estimate and result without sending transaction
|
|
2391
1566
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2392
1567
|
*/
|
|
2393
|
-
async
|
|
1568
|
+
async decreaseAllowance(spender: `0x${string}`, subtractedValue: bigint, options?: {
|
|
2394
1569
|
accessList?: import('viem').AccessList;
|
|
2395
1570
|
authorizationList?: import('viem').AuthorizationList;
|
|
2396
1571
|
chain?: import('viem').Chain | null;
|
|
@@ -2401,15 +1576,15 @@ export class DEGENOFT {
|
|
|
2401
1576
|
maxPriorityFeePerGas?: bigint;
|
|
2402
1577
|
nonce?: number;
|
|
2403
1578
|
value?: bigint;
|
|
2404
|
-
}): Promise<
|
|
2405
|
-
return contract.simulate.
|
|
1579
|
+
}): Promise<boolean> {
|
|
1580
|
+
return contract.simulate.decreaseAllowance([spender, subtractedValue] as const, options) as Promise<boolean>;
|
|
2406
1581
|
},
|
|
2407
1582
|
/**
|
|
2408
|
-
* Simulate
|
|
1583
|
+
* Simulate enableTrading
|
|
2409
1584
|
* Returns gas estimate and result without sending transaction
|
|
2410
1585
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2411
1586
|
*/
|
|
2412
|
-
async
|
|
1587
|
+
async enableTrading(options?: {
|
|
2413
1588
|
accessList?: import('viem').AccessList;
|
|
2414
1589
|
authorizationList?: import('viem').AuthorizationList;
|
|
2415
1590
|
chain?: import('viem').Chain | null;
|
|
@@ -2421,14 +1596,14 @@ export class DEGENOFT {
|
|
|
2421
1596
|
nonce?: number;
|
|
2422
1597
|
value?: bigint;
|
|
2423
1598
|
}): Promise<void> {
|
|
2424
|
-
return contract.simulate.
|
|
1599
|
+
return contract.simulate.enableTrading(options) as Promise<void>;
|
|
2425
1600
|
},
|
|
2426
1601
|
/**
|
|
2427
|
-
* Simulate
|
|
1602
|
+
* Simulate enableTradingWithPermit
|
|
2428
1603
|
* Returns gas estimate and result without sending transaction
|
|
2429
1604
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2430
1605
|
*/
|
|
2431
|
-
async
|
|
1606
|
+
async enableTradingWithPermit(v: bigint, r: `0x${string}`, s: `0x${string}`, options?: {
|
|
2432
1607
|
accessList?: import('viem').AccessList;
|
|
2433
1608
|
authorizationList?: import('viem').AuthorizationList;
|
|
2434
1609
|
chain?: import('viem').Chain | null;
|
|
@@ -2440,14 +1615,14 @@ export class DEGENOFT {
|
|
|
2440
1615
|
nonce?: number;
|
|
2441
1616
|
value?: bigint;
|
|
2442
1617
|
}): Promise<void> {
|
|
2443
|
-
return contract.simulate.
|
|
1618
|
+
return contract.simulate.enableTradingWithPermit([v, r, s] as const, options) as Promise<void>;
|
|
2444
1619
|
},
|
|
2445
1620
|
/**
|
|
2446
|
-
* Simulate
|
|
1621
|
+
* Simulate increaseAllowance
|
|
2447
1622
|
* Returns gas estimate and result without sending transaction
|
|
2448
1623
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2449
1624
|
*/
|
|
2450
|
-
async
|
|
1625
|
+
async increaseAllowance(spender: `0x${string}`, addedValue: bigint, options?: {
|
|
2451
1626
|
accessList?: import('viem').AccessList;
|
|
2452
1627
|
authorizationList?: import('viem').AuthorizationList;
|
|
2453
1628
|
chain?: import('viem').Chain | null;
|
|
@@ -2458,15 +1633,15 @@ export class DEGENOFT {
|
|
|
2458
1633
|
maxPriorityFeePerGas?: bigint;
|
|
2459
1634
|
nonce?: number;
|
|
2460
1635
|
value?: bigint;
|
|
2461
|
-
}): Promise<
|
|
2462
|
-
return contract.simulate.
|
|
1636
|
+
}): Promise<boolean> {
|
|
1637
|
+
return contract.simulate.increaseAllowance([spender, addedValue] as const, options) as Promise<boolean>;
|
|
2463
1638
|
},
|
|
2464
1639
|
/**
|
|
2465
|
-
* Simulate
|
|
1640
|
+
* Simulate removeLimits
|
|
2466
1641
|
* Returns gas estimate and result without sending transaction
|
|
2467
1642
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2468
1643
|
*/
|
|
2469
|
-
async
|
|
1644
|
+
async removeLimits(options?: {
|
|
2470
1645
|
accessList?: import('viem').AccessList;
|
|
2471
1646
|
authorizationList?: import('viem').AuthorizationList;
|
|
2472
1647
|
chain?: import('viem').Chain | null;
|
|
@@ -2477,15 +1652,15 @@ export class DEGENOFT {
|
|
|
2477
1652
|
maxPriorityFeePerGas?: bigint;
|
|
2478
1653
|
nonce?: number;
|
|
2479
1654
|
value?: bigint;
|
|
2480
|
-
}): Promise<
|
|
2481
|
-
return contract.simulate.
|
|
1655
|
+
}): Promise<void> {
|
|
1656
|
+
return contract.simulate.removeLimits(options) as Promise<void>;
|
|
2482
1657
|
},
|
|
2483
1658
|
/**
|
|
2484
|
-
* Simulate
|
|
1659
|
+
* Simulate renounceOwnership
|
|
2485
1660
|
* Returns gas estimate and result without sending transaction
|
|
2486
1661
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2487
1662
|
*/
|
|
2488
|
-
async
|
|
1663
|
+
async renounceOwnership(options?: {
|
|
2489
1664
|
accessList?: import('viem').AccessList;
|
|
2490
1665
|
authorizationList?: import('viem').AuthorizationList;
|
|
2491
1666
|
chain?: import('viem').Chain | null;
|
|
@@ -2497,14 +1672,14 @@ export class DEGENOFT {
|
|
|
2497
1672
|
nonce?: number;
|
|
2498
1673
|
value?: bigint;
|
|
2499
1674
|
}): Promise<void> {
|
|
2500
|
-
return contract.simulate.
|
|
1675
|
+
return contract.simulate.renounceOwnership(options) as Promise<void>;
|
|
2501
1676
|
},
|
|
2502
1677
|
/**
|
|
2503
|
-
* Simulate
|
|
1678
|
+
* Simulate rescueTokens
|
|
2504
1679
|
* Returns gas estimate and result without sending transaction
|
|
2505
1680
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2506
1681
|
*/
|
|
2507
|
-
async
|
|
1682
|
+
async rescueTokens(_token: `0x${string}`, _to: `0x${string}`, options?: {
|
|
2508
1683
|
accessList?: import('viem').AccessList;
|
|
2509
1684
|
authorizationList?: import('viem').AuthorizationList;
|
|
2510
1685
|
chain?: import('viem').Chain | null;
|
|
@@ -2516,14 +1691,14 @@ export class DEGENOFT {
|
|
|
2516
1691
|
nonce?: number;
|
|
2517
1692
|
value?: bigint;
|
|
2518
1693
|
}): Promise<void> {
|
|
2519
|
-
return contract.simulate.
|
|
1694
|
+
return contract.simulate.rescueTokens([_token, _to] as const, options) as Promise<void>;
|
|
2520
1695
|
},
|
|
2521
1696
|
/**
|
|
2522
|
-
* Simulate
|
|
1697
|
+
* Simulate setExemptFromFees
|
|
2523
1698
|
* Returns gas estimate and result without sending transaction
|
|
2524
1699
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2525
1700
|
*/
|
|
2526
|
-
async
|
|
1701
|
+
async setExemptFromFees(_address: `0x${string}`, _isExempt: boolean, options?: {
|
|
2527
1702
|
accessList?: import('viem').AccessList;
|
|
2528
1703
|
authorizationList?: import('viem').AuthorizationList;
|
|
2529
1704
|
chain?: import('viem').Chain | null;
|
|
@@ -2535,14 +1710,14 @@ export class DEGENOFT {
|
|
|
2535
1710
|
nonce?: number;
|
|
2536
1711
|
value?: bigint;
|
|
2537
1712
|
}): Promise<void> {
|
|
2538
|
-
return contract.simulate.
|
|
1713
|
+
return contract.simulate.setExemptFromFees([_address, _isExempt] as const, options) as Promise<void>;
|
|
2539
1714
|
},
|
|
2540
1715
|
/**
|
|
2541
|
-
* Simulate
|
|
1716
|
+
* Simulate setExemptFromLimits
|
|
2542
1717
|
* Returns gas estimate and result without sending transaction
|
|
2543
1718
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2544
1719
|
*/
|
|
2545
|
-
async
|
|
1720
|
+
async setExemptFromLimits(_address: `0x${string}`, _isExempt: boolean, options?: {
|
|
2546
1721
|
accessList?: import('viem').AccessList;
|
|
2547
1722
|
authorizationList?: import('viem').AuthorizationList;
|
|
2548
1723
|
chain?: import('viem').Chain | null;
|
|
@@ -2554,14 +1729,14 @@ export class DEGENOFT {
|
|
|
2554
1729
|
nonce?: number;
|
|
2555
1730
|
value?: bigint;
|
|
2556
1731
|
}): Promise<void> {
|
|
2557
|
-
return contract.simulate.
|
|
1732
|
+
return contract.simulate.setExemptFromLimits([_address, _isExempt] as const, options) as Promise<void>;
|
|
2558
1733
|
},
|
|
2559
1734
|
/**
|
|
2560
|
-
* Simulate
|
|
1735
|
+
* Simulate setSwapTokensAtAmt
|
|
2561
1736
|
* Returns gas estimate and result without sending transaction
|
|
2562
1737
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2563
1738
|
*/
|
|
2564
|
-
async
|
|
1739
|
+
async setSwapTokensAtAmt(amountInWei: bigint, options?: {
|
|
2565
1740
|
accessList?: import('viem').AccessList;
|
|
2566
1741
|
authorizationList?: import('viem').AuthorizationList;
|
|
2567
1742
|
chain?: import('viem').Chain | null;
|
|
@@ -2573,14 +1748,14 @@ export class DEGENOFT {
|
|
|
2573
1748
|
nonce?: number;
|
|
2574
1749
|
value?: bigint;
|
|
2575
1750
|
}): Promise<void> {
|
|
2576
|
-
return contract.simulate.
|
|
1751
|
+
return contract.simulate.setSwapTokensAtAmt([amountInWei] as const, options) as Promise<void>;
|
|
2577
1752
|
},
|
|
2578
1753
|
/**
|
|
2579
1754
|
* Simulate transfer
|
|
2580
1755
|
* Returns gas estimate and result without sending transaction
|
|
2581
1756
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2582
1757
|
*/
|
|
2583
|
-
async transfer(to: `0x${string}`,
|
|
1758
|
+
async transfer(to: `0x${string}`, amount: bigint, options?: {
|
|
2584
1759
|
accessList?: import('viem').AccessList;
|
|
2585
1760
|
authorizationList?: import('viem').AuthorizationList;
|
|
2586
1761
|
chain?: import('viem').Chain | null;
|
|
@@ -2592,14 +1767,14 @@ export class DEGENOFT {
|
|
|
2592
1767
|
nonce?: number;
|
|
2593
1768
|
value?: bigint;
|
|
2594
1769
|
}): Promise<boolean> {
|
|
2595
|
-
return contract.simulate.transfer([to,
|
|
1770
|
+
return contract.simulate.transfer([to, amount] as const, options) as Promise<boolean>;
|
|
2596
1771
|
},
|
|
2597
1772
|
/**
|
|
2598
1773
|
* Simulate transferFrom
|
|
2599
1774
|
* Returns gas estimate and result without sending transaction
|
|
2600
1775
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
2601
1776
|
*/
|
|
2602
|
-
async transferFrom(from: `0x${string}`, to: `0x${string}`,
|
|
1777
|
+
async transferFrom(from: `0x${string}`, to: `0x${string}`, amount: bigint, options?: {
|
|
2603
1778
|
accessList?: import('viem').AccessList;
|
|
2604
1779
|
authorizationList?: import('viem').AuthorizationList;
|
|
2605
1780
|
chain?: import('viem').Chain | null;
|
|
@@ -2611,7 +1786,7 @@ export class DEGENOFT {
|
|
|
2611
1786
|
nonce?: number;
|
|
2612
1787
|
value?: bigint;
|
|
2613
1788
|
}): Promise<boolean> {
|
|
2614
|
-
return contract.simulate.transferFrom([from, to,
|
|
1789
|
+
return contract.simulate.transferFrom([from, to, amount] as const, options) as Promise<boolean>;
|
|
2615
1790
|
},
|
|
2616
1791
|
/**
|
|
2617
1792
|
* Simulate transferOwnership
|
|
@@ -2631,6 +1806,101 @@ export class DEGENOFT {
|
|
|
2631
1806
|
value?: bigint;
|
|
2632
1807
|
}): Promise<void> {
|
|
2633
1808
|
return contract.simulate.transferOwnership([newOwner] as const, options) as Promise<void>;
|
|
1809
|
+
},
|
|
1810
|
+
/**
|
|
1811
|
+
* Simulate updateBuyTax
|
|
1812
|
+
* Returns gas estimate and result without sending transaction
|
|
1813
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1814
|
+
*/
|
|
1815
|
+
async updateBuyTax(_taxWithTwoDecimals: bigint, options?: {
|
|
1816
|
+
accessList?: import('viem').AccessList;
|
|
1817
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1818
|
+
chain?: import('viem').Chain | null;
|
|
1819
|
+
dataSuffix?: `0x${string}`;
|
|
1820
|
+
gas?: bigint;
|
|
1821
|
+
gasPrice?: bigint;
|
|
1822
|
+
maxFeePerGas?: bigint;
|
|
1823
|
+
maxPriorityFeePerGas?: bigint;
|
|
1824
|
+
nonce?: number;
|
|
1825
|
+
value?: bigint;
|
|
1826
|
+
}): Promise<void> {
|
|
1827
|
+
return contract.simulate.updateBuyTax([_taxWithTwoDecimals] as const, options) as Promise<void>;
|
|
1828
|
+
},
|
|
1829
|
+
/**
|
|
1830
|
+
* Simulate updateMaxTransaction
|
|
1831
|
+
* Returns gas estimate and result without sending transaction
|
|
1832
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1833
|
+
*/
|
|
1834
|
+
async updateMaxTransaction(newNumInTokens: bigint, options?: {
|
|
1835
|
+
accessList?: import('viem').AccessList;
|
|
1836
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1837
|
+
chain?: import('viem').Chain | null;
|
|
1838
|
+
dataSuffix?: `0x${string}`;
|
|
1839
|
+
gas?: bigint;
|
|
1840
|
+
gasPrice?: bigint;
|
|
1841
|
+
maxFeePerGas?: bigint;
|
|
1842
|
+
maxPriorityFeePerGas?: bigint;
|
|
1843
|
+
nonce?: number;
|
|
1844
|
+
value?: bigint;
|
|
1845
|
+
}): Promise<void> {
|
|
1846
|
+
return contract.simulate.updateMaxTransaction([newNumInTokens] as const, options) as Promise<void>;
|
|
1847
|
+
},
|
|
1848
|
+
/**
|
|
1849
|
+
* Simulate updateMaxWallet
|
|
1850
|
+
* Returns gas estimate and result without sending transaction
|
|
1851
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1852
|
+
*/
|
|
1853
|
+
async updateMaxWallet(newNumInTokens: bigint, options?: {
|
|
1854
|
+
accessList?: import('viem').AccessList;
|
|
1855
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1856
|
+
chain?: import('viem').Chain | null;
|
|
1857
|
+
dataSuffix?: `0x${string}`;
|
|
1858
|
+
gas?: bigint;
|
|
1859
|
+
gasPrice?: bigint;
|
|
1860
|
+
maxFeePerGas?: bigint;
|
|
1861
|
+
maxPriorityFeePerGas?: bigint;
|
|
1862
|
+
nonce?: number;
|
|
1863
|
+
value?: bigint;
|
|
1864
|
+
}): Promise<void> {
|
|
1865
|
+
return contract.simulate.updateMaxWallet([newNumInTokens] as const, options) as Promise<void>;
|
|
1866
|
+
},
|
|
1867
|
+
/**
|
|
1868
|
+
* Simulate updateSellTax
|
|
1869
|
+
* Returns gas estimate and result without sending transaction
|
|
1870
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1871
|
+
*/
|
|
1872
|
+
async updateSellTax(_taxWithTwoDecimals: bigint, options?: {
|
|
1873
|
+
accessList?: import('viem').AccessList;
|
|
1874
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1875
|
+
chain?: import('viem').Chain | null;
|
|
1876
|
+
dataSuffix?: `0x${string}`;
|
|
1877
|
+
gas?: bigint;
|
|
1878
|
+
gasPrice?: bigint;
|
|
1879
|
+
maxFeePerGas?: bigint;
|
|
1880
|
+
maxPriorityFeePerGas?: bigint;
|
|
1881
|
+
nonce?: number;
|
|
1882
|
+
value?: bigint;
|
|
1883
|
+
}): Promise<void> {
|
|
1884
|
+
return contract.simulate.updateSellTax([_taxWithTwoDecimals] as const, options) as Promise<void>;
|
|
1885
|
+
},
|
|
1886
|
+
/**
|
|
1887
|
+
* Simulate updateTaxAddress
|
|
1888
|
+
* Returns gas estimate and result without sending transaction
|
|
1889
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1890
|
+
*/
|
|
1891
|
+
async updateTaxAddress(_address: `0x${string}`, options?: {
|
|
1892
|
+
accessList?: import('viem').AccessList;
|
|
1893
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1894
|
+
chain?: import('viem').Chain | null;
|
|
1895
|
+
dataSuffix?: `0x${string}`;
|
|
1896
|
+
gas?: bigint;
|
|
1897
|
+
gasPrice?: bigint;
|
|
1898
|
+
maxFeePerGas?: bigint;
|
|
1899
|
+
maxPriorityFeePerGas?: bigint;
|
|
1900
|
+
nonce?: number;
|
|
1901
|
+
value?: bigint;
|
|
1902
|
+
}): Promise<void> {
|
|
1903
|
+
return contract.simulate.updateTaxAddress([_address] as const, options) as Promise<void>;
|
|
2634
1904
|
}
|
|
2635
1905
|
};
|
|
2636
1906
|
}
|
|
@@ -2658,7 +1928,7 @@ export class DEGENOFT {
|
|
|
2658
1928
|
Approval: (callback: (event: { owner: `0x${string}`; spender: `0x${string}`; value: bigint }) => void, filter?: { owner?: `0x${string}` | `0x${string}`[] | null; spender?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
2659
1929
|
return this.publicClient.watchContractEvent({
|
|
2660
1930
|
address: this.contractAddress,
|
|
2661
|
-
abi:
|
|
1931
|
+
abi: DegenFoodAbi,
|
|
2662
1932
|
eventName: 'Approval',
|
|
2663
1933
|
args: filter as any,
|
|
2664
1934
|
onLogs: (logs: any[]) => {
|
|
@@ -2669,16 +1939,35 @@ export class DEGENOFT {
|
|
|
2669
1939
|
}) as () => void;
|
|
2670
1940
|
},
|
|
2671
1941
|
/**
|
|
2672
|
-
* Watch
|
|
1942
|
+
* Watch OwnershipTransferred events
|
|
1943
|
+
* @param callback Function to call when event is emitted
|
|
1944
|
+
* @param filter Optional filter for indexed parameters
|
|
1945
|
+
* @returns Unwatch function to stop listening
|
|
1946
|
+
*/
|
|
1947
|
+
OwnershipTransferred: (callback: (event: { previousOwner: `0x${string}`; newOwner: `0x${string}` }) => void, filter?: { previousOwner?: `0x${string}` | `0x${string}`[] | null; newOwner?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
1948
|
+
return this.publicClient.watchContractEvent({
|
|
1949
|
+
address: this.contractAddress,
|
|
1950
|
+
abi: DegenFoodAbi,
|
|
1951
|
+
eventName: 'OwnershipTransferred',
|
|
1952
|
+
args: filter as any,
|
|
1953
|
+
onLogs: (logs: any[]) => {
|
|
1954
|
+
logs.forEach((log: any) => {
|
|
1955
|
+
callback(log.args as any);
|
|
1956
|
+
});
|
|
1957
|
+
},
|
|
1958
|
+
}) as () => void;
|
|
1959
|
+
},
|
|
1960
|
+
/**
|
|
1961
|
+
* Watch RemovedLimits events
|
|
2673
1962
|
* @param callback Function to call when event is emitted
|
|
2674
1963
|
* @param filter Optional filter for indexed parameters
|
|
2675
1964
|
* @returns Unwatch function to stop listening
|
|
2676
1965
|
*/
|
|
2677
|
-
|
|
1966
|
+
RemovedLimits: (callback: (event: { }) => void) => {
|
|
2678
1967
|
return this.publicClient.watchContractEvent({
|
|
2679
1968
|
address: this.contractAddress,
|
|
2680
|
-
abi:
|
|
2681
|
-
eventName: '
|
|
1969
|
+
abi: DegenFoodAbi,
|
|
1970
|
+
eventName: 'RemovedLimits',
|
|
2682
1971
|
|
|
2683
1972
|
onLogs: (logs: any[]) => {
|
|
2684
1973
|
logs.forEach((log: any) => {
|
|
@@ -2688,16 +1977,16 @@ export class DEGENOFT {
|
|
|
2688
1977
|
}) as () => void;
|
|
2689
1978
|
},
|
|
2690
1979
|
/**
|
|
2691
|
-
* Watch
|
|
1980
|
+
* Watch SetExemptFromFees events
|
|
2692
1981
|
* @param callback Function to call when event is emitted
|
|
2693
1982
|
* @param filter Optional filter for indexed parameters
|
|
2694
1983
|
* @returns Unwatch function to stop listening
|
|
2695
1984
|
*/
|
|
2696
|
-
|
|
1985
|
+
SetExemptFromFees: (callback: (event: { _address: `0x${string}`; _isExempt: boolean }) => void) => {
|
|
2697
1986
|
return this.publicClient.watchContractEvent({
|
|
2698
1987
|
address: this.contractAddress,
|
|
2699
|
-
abi:
|
|
2700
|
-
eventName: '
|
|
1988
|
+
abi: DegenFoodAbi,
|
|
1989
|
+
eventName: 'SetExemptFromFees',
|
|
2701
1990
|
|
|
2702
1991
|
onLogs: (logs: any[]) => {
|
|
2703
1992
|
logs.forEach((log: any) => {
|
|
@@ -2707,17 +1996,17 @@ export class DEGENOFT {
|
|
|
2707
1996
|
}) as () => void;
|
|
2708
1997
|
},
|
|
2709
1998
|
/**
|
|
2710
|
-
* Watch
|
|
1999
|
+
* Watch SetExemptFromLimits events
|
|
2711
2000
|
* @param callback Function to call when event is emitted
|
|
2712
2001
|
* @param filter Optional filter for indexed parameters
|
|
2713
2002
|
* @returns Unwatch function to stop listening
|
|
2714
2003
|
*/
|
|
2715
|
-
|
|
2004
|
+
SetExemptFromLimits: (callback: (event: { _address: `0x${string}`; _isExempt: boolean }) => void) => {
|
|
2716
2005
|
return this.publicClient.watchContractEvent({
|
|
2717
2006
|
address: this.contractAddress,
|
|
2718
|
-
abi:
|
|
2719
|
-
eventName: '
|
|
2720
|
-
|
|
2007
|
+
abi: DegenFoodAbi,
|
|
2008
|
+
eventName: 'SetExemptFromLimits',
|
|
2009
|
+
|
|
2721
2010
|
onLogs: (logs: any[]) => {
|
|
2722
2011
|
logs.forEach((log: any) => {
|
|
2723
2012
|
callback(log.args as any);
|
|
@@ -2726,16 +2015,16 @@ export class DEGENOFT {
|
|
|
2726
2015
|
}) as () => void;
|
|
2727
2016
|
},
|
|
2728
2017
|
/**
|
|
2729
|
-
* Watch
|
|
2018
|
+
* Watch Transfer events
|
|
2730
2019
|
* @param callback Function to call when event is emitted
|
|
2731
2020
|
* @param filter Optional filter for indexed parameters
|
|
2732
2021
|
* @returns Unwatch function to stop listening
|
|
2733
2022
|
*/
|
|
2734
|
-
|
|
2023
|
+
Transfer: (callback: (event: { from: `0x${string}`; to: `0x${string}`; value: bigint }) => void, filter?: { from?: `0x${string}` | `0x${string}`[] | null; to?: `0x${string}` | `0x${string}`[] | null }) => {
|
|
2735
2024
|
return this.publicClient.watchContractEvent({
|
|
2736
2025
|
address: this.contractAddress,
|
|
2737
|
-
abi:
|
|
2738
|
-
eventName: '
|
|
2026
|
+
abi: DegenFoodAbi,
|
|
2027
|
+
eventName: 'Transfer',
|
|
2739
2028
|
args: filter as any,
|
|
2740
2029
|
onLogs: (logs: any[]) => {
|
|
2741
2030
|
logs.forEach((log: any) => {
|
|
@@ -2745,17 +2034,17 @@ export class DEGENOFT {
|
|
|
2745
2034
|
}) as () => void;
|
|
2746
2035
|
},
|
|
2747
2036
|
/**
|
|
2748
|
-
* Watch
|
|
2037
|
+
* Watch UpdatedBuyTax events
|
|
2749
2038
|
* @param callback Function to call when event is emitted
|
|
2750
2039
|
* @param filter Optional filter for indexed parameters
|
|
2751
2040
|
* @returns Unwatch function to stop listening
|
|
2752
2041
|
*/
|
|
2753
|
-
|
|
2042
|
+
UpdatedBuyTax: (callback: (event: { newAmt: bigint }) => void) => {
|
|
2754
2043
|
return this.publicClient.watchContractEvent({
|
|
2755
2044
|
address: this.contractAddress,
|
|
2756
|
-
abi:
|
|
2757
|
-
eventName: '
|
|
2758
|
-
|
|
2045
|
+
abi: DegenFoodAbi,
|
|
2046
|
+
eventName: 'UpdatedBuyTax',
|
|
2047
|
+
|
|
2759
2048
|
onLogs: (logs: any[]) => {
|
|
2760
2049
|
logs.forEach((log: any) => {
|
|
2761
2050
|
callback(log.args as any);
|
|
@@ -2764,16 +2053,16 @@ export class DEGENOFT {
|
|
|
2764
2053
|
}) as () => void;
|
|
2765
2054
|
},
|
|
2766
2055
|
/**
|
|
2767
|
-
* Watch
|
|
2056
|
+
* Watch UpdatedMaxTransaction events
|
|
2768
2057
|
* @param callback Function to call when event is emitted
|
|
2769
2058
|
* @param filter Optional filter for indexed parameters
|
|
2770
2059
|
* @returns Unwatch function to stop listening
|
|
2771
2060
|
*/
|
|
2772
|
-
|
|
2061
|
+
UpdatedMaxTransaction: (callback: (event: { newMax: bigint }) => void) => {
|
|
2773
2062
|
return this.publicClient.watchContractEvent({
|
|
2774
2063
|
address: this.contractAddress,
|
|
2775
|
-
abi:
|
|
2776
|
-
eventName: '
|
|
2064
|
+
abi: DegenFoodAbi,
|
|
2065
|
+
eventName: 'UpdatedMaxTransaction',
|
|
2777
2066
|
|
|
2778
2067
|
onLogs: (logs: any[]) => {
|
|
2779
2068
|
logs.forEach((log: any) => {
|
|
@@ -2783,16 +2072,16 @@ export class DEGENOFT {
|
|
|
2783
2072
|
}) as () => void;
|
|
2784
2073
|
},
|
|
2785
2074
|
/**
|
|
2786
|
-
* Watch
|
|
2075
|
+
* Watch UpdatedMaxWallet events
|
|
2787
2076
|
* @param callback Function to call when event is emitted
|
|
2788
2077
|
* @param filter Optional filter for indexed parameters
|
|
2789
2078
|
* @returns Unwatch function to stop listening
|
|
2790
2079
|
*/
|
|
2791
|
-
|
|
2080
|
+
UpdatedMaxWallet: (callback: (event: { newMax: bigint }) => void) => {
|
|
2792
2081
|
return this.publicClient.watchContractEvent({
|
|
2793
2082
|
address: this.contractAddress,
|
|
2794
|
-
abi:
|
|
2795
|
-
eventName: '
|
|
2083
|
+
abi: DegenFoodAbi,
|
|
2084
|
+
eventName: 'UpdatedMaxWallet',
|
|
2796
2085
|
|
|
2797
2086
|
onLogs: (logs: any[]) => {
|
|
2798
2087
|
logs.forEach((log: any) => {
|
|
@@ -2802,17 +2091,17 @@ export class DEGENOFT {
|
|
|
2802
2091
|
}) as () => void;
|
|
2803
2092
|
},
|
|
2804
2093
|
/**
|
|
2805
|
-
* Watch
|
|
2094
|
+
* Watch UpdatedSellTax events
|
|
2806
2095
|
* @param callback Function to call when event is emitted
|
|
2807
2096
|
* @param filter Optional filter for indexed parameters
|
|
2808
2097
|
* @returns Unwatch function to stop listening
|
|
2809
2098
|
*/
|
|
2810
|
-
|
|
2099
|
+
UpdatedSellTax: (callback: (event: { newAmt: bigint }) => void) => {
|
|
2811
2100
|
return this.publicClient.watchContractEvent({
|
|
2812
2101
|
address: this.contractAddress,
|
|
2813
|
-
abi:
|
|
2814
|
-
eventName: '
|
|
2815
|
-
|
|
2102
|
+
abi: DegenFoodAbi,
|
|
2103
|
+
eventName: 'UpdatedSellTax',
|
|
2104
|
+
|
|
2816
2105
|
onLogs: (logs: any[]) => {
|
|
2817
2106
|
logs.forEach((log: any) => {
|
|
2818
2107
|
callback(log.args as any);
|