@gitmyabi/borg 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/{SwissBorgToken_json.d.ts → BORG_json.d.ts} +668 -305
- package/contracts/{SwissBorgToken_json.js → BORG_json.js} +663 -346
- package/contracts/{SwissBorgToken_json.ts → BORG_json.ts} +863 -384
- package/contracts/index.d.ts +2 -2
- package/contracts/index.js +4 -4
- package/contracts/index.ts +2 -2
- package/package.json +3 -3
|
@@ -1,36 +1,33 @@
|
|
|
1
1
|
import type { Address, PublicClient, WalletClient } from 'viem';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
export type ERC20Votes_Checkpoint = {
|
|
6
|
-
fromBlock: bigint;
|
|
7
|
-
votes: bigint;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* SwissBorgToken_json ABI
|
|
3
|
+
* BORG_json ABI
|
|
11
4
|
*
|
|
12
5
|
* This ABI is typed using viem's type system for full type safety.
|
|
13
6
|
*/
|
|
14
|
-
export declare const
|
|
7
|
+
export declare const BORG_jsonAbi: readonly [{
|
|
15
8
|
readonly inputs: readonly [{
|
|
9
|
+
readonly internalType: "uint8";
|
|
10
|
+
readonly name: "_feeDecimals";
|
|
11
|
+
readonly type: "uint8";
|
|
12
|
+
}, {
|
|
13
|
+
readonly internalType: "uint32";
|
|
14
|
+
readonly name: "_feePercentage";
|
|
15
|
+
readonly type: "uint32";
|
|
16
|
+
}, {
|
|
17
|
+
readonly internalType: "uint256";
|
|
18
|
+
readonly name: "_minTokensBeforeAddToLP";
|
|
19
|
+
readonly type: "uint256";
|
|
20
|
+
}, {
|
|
21
|
+
readonly internalType: "bool";
|
|
22
|
+
readonly name: "_swapAndAbsorbEnabled";
|
|
23
|
+
readonly type: "bool";
|
|
24
|
+
}, {
|
|
16
25
|
readonly internalType: "address";
|
|
17
|
-
readonly name: "
|
|
26
|
+
readonly name: "_presale";
|
|
18
27
|
readonly type: "address";
|
|
19
28
|
}];
|
|
20
29
|
readonly stateMutability: "nonpayable";
|
|
21
30
|
readonly type: "constructor";
|
|
22
|
-
}, {
|
|
23
|
-
readonly inputs: readonly [];
|
|
24
|
-
readonly name: "InvalidShortString";
|
|
25
|
-
readonly type: "error";
|
|
26
|
-
}, {
|
|
27
|
-
readonly inputs: readonly [{
|
|
28
|
-
readonly internalType: "string";
|
|
29
|
-
readonly name: "str";
|
|
30
|
-
readonly type: "string";
|
|
31
|
-
}];
|
|
32
|
-
readonly name: "StringTooLong";
|
|
33
|
-
readonly type: "error";
|
|
34
31
|
}, {
|
|
35
32
|
readonly anonymous: false;
|
|
36
33
|
readonly inputs: readonly [{
|
|
@@ -54,47 +51,72 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
54
51
|
}, {
|
|
55
52
|
readonly anonymous: false;
|
|
56
53
|
readonly inputs: readonly [{
|
|
57
|
-
readonly indexed:
|
|
58
|
-
readonly internalType: "
|
|
59
|
-
readonly name: "
|
|
60
|
-
readonly type: "
|
|
54
|
+
readonly indexed: false;
|
|
55
|
+
readonly internalType: "uint8";
|
|
56
|
+
readonly name: "feeDecimals";
|
|
57
|
+
readonly type: "uint8";
|
|
61
58
|
}, {
|
|
59
|
+
readonly indexed: false;
|
|
60
|
+
readonly internalType: "uint32";
|
|
61
|
+
readonly name: "feePercentage";
|
|
62
|
+
readonly type: "uint32";
|
|
63
|
+
}];
|
|
64
|
+
readonly name: "FeeUpdated";
|
|
65
|
+
readonly type: "event";
|
|
66
|
+
}, {
|
|
67
|
+
readonly anonymous: false;
|
|
68
|
+
readonly inputs: readonly [{
|
|
69
|
+
readonly indexed: false;
|
|
70
|
+
readonly internalType: "uint256";
|
|
71
|
+
readonly name: "minTokensBeforeAddToLP";
|
|
72
|
+
readonly type: "uint256";
|
|
73
|
+
}];
|
|
74
|
+
readonly name: "MinTokensBeforeAddToLPUpdated";
|
|
75
|
+
readonly type: "event";
|
|
76
|
+
}, {
|
|
77
|
+
readonly anonymous: false;
|
|
78
|
+
readonly inputs: readonly [{
|
|
62
79
|
readonly indexed: true;
|
|
63
80
|
readonly internalType: "address";
|
|
64
|
-
readonly name: "
|
|
81
|
+
readonly name: "previousOwner";
|
|
65
82
|
readonly type: "address";
|
|
66
83
|
}, {
|
|
67
84
|
readonly indexed: true;
|
|
68
85
|
readonly internalType: "address";
|
|
69
|
-
readonly name: "
|
|
86
|
+
readonly name: "newOwner";
|
|
70
87
|
readonly type: "address";
|
|
71
88
|
}];
|
|
72
|
-
readonly name: "
|
|
89
|
+
readonly name: "OwnershipTransferred";
|
|
73
90
|
readonly type: "event";
|
|
74
91
|
}, {
|
|
75
92
|
readonly anonymous: false;
|
|
76
93
|
readonly inputs: readonly [{
|
|
77
|
-
readonly indexed:
|
|
78
|
-
readonly internalType: "
|
|
79
|
-
readonly name: "
|
|
80
|
-
readonly type: "
|
|
94
|
+
readonly indexed: false;
|
|
95
|
+
readonly internalType: "uint256";
|
|
96
|
+
readonly name: "tokensSwapped";
|
|
97
|
+
readonly type: "uint256";
|
|
81
98
|
}, {
|
|
82
99
|
readonly indexed: false;
|
|
83
100
|
readonly internalType: "uint256";
|
|
84
|
-
readonly name: "
|
|
101
|
+
readonly name: "ethReceived";
|
|
85
102
|
readonly type: "uint256";
|
|
86
103
|
}, {
|
|
87
104
|
readonly indexed: false;
|
|
88
105
|
readonly internalType: "uint256";
|
|
89
|
-
readonly name: "
|
|
106
|
+
readonly name: "tokensIntoLiquidity";
|
|
90
107
|
readonly type: "uint256";
|
|
91
108
|
}];
|
|
92
|
-
readonly name: "
|
|
109
|
+
readonly name: "SwapAndAbsorb";
|
|
93
110
|
readonly type: "event";
|
|
94
111
|
}, {
|
|
95
112
|
readonly anonymous: false;
|
|
96
|
-
readonly inputs: readonly [
|
|
97
|
-
|
|
113
|
+
readonly inputs: readonly [{
|
|
114
|
+
readonly indexed: false;
|
|
115
|
+
readonly internalType: "bool";
|
|
116
|
+
readonly name: "enabled";
|
|
117
|
+
readonly type: "bool";
|
|
118
|
+
}];
|
|
119
|
+
readonly name: "SwapAndAbsorbEnabledUpdated";
|
|
98
120
|
readonly type: "event";
|
|
99
121
|
}, {
|
|
100
122
|
readonly anonymous: false;
|
|
@@ -118,21 +140,69 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
118
140
|
readonly type: "event";
|
|
119
141
|
}, {
|
|
120
142
|
readonly inputs: readonly [];
|
|
121
|
-
readonly name: "
|
|
143
|
+
readonly name: "_balanceOfLpTokens";
|
|
122
144
|
readonly outputs: readonly [{
|
|
123
|
-
readonly internalType: "
|
|
145
|
+
readonly internalType: "uint256";
|
|
124
146
|
readonly name: "";
|
|
125
|
-
readonly type: "
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}];
|
|
149
|
+
readonly stateMutability: "view";
|
|
150
|
+
readonly type: "function";
|
|
151
|
+
}, {
|
|
152
|
+
readonly inputs: readonly [];
|
|
153
|
+
readonly name: "_burnPool";
|
|
154
|
+
readonly outputs: readonly [{
|
|
155
|
+
readonly internalType: "address";
|
|
156
|
+
readonly name: "";
|
|
157
|
+
readonly type: "address";
|
|
126
158
|
}];
|
|
127
159
|
readonly stateMutability: "view";
|
|
128
160
|
readonly type: "function";
|
|
129
161
|
}, {
|
|
130
162
|
readonly inputs: readonly [];
|
|
131
|
-
readonly name: "
|
|
163
|
+
readonly name: "_totalBurnedLpTokens";
|
|
164
|
+
readonly outputs: readonly [{
|
|
165
|
+
readonly internalType: "uint256";
|
|
166
|
+
readonly name: "";
|
|
167
|
+
readonly type: "uint256";
|
|
168
|
+
}];
|
|
169
|
+
readonly stateMutability: "view";
|
|
170
|
+
readonly type: "function";
|
|
171
|
+
}, {
|
|
172
|
+
readonly inputs: readonly [];
|
|
173
|
+
readonly name: "_totalBurnedTokens";
|
|
174
|
+
readonly outputs: readonly [{
|
|
175
|
+
readonly internalType: "uint256";
|
|
176
|
+
readonly name: "";
|
|
177
|
+
readonly type: "uint256";
|
|
178
|
+
}];
|
|
179
|
+
readonly stateMutability: "view";
|
|
180
|
+
readonly type: "function";
|
|
181
|
+
}, {
|
|
182
|
+
readonly inputs: readonly [{
|
|
183
|
+
readonly internalType: "uint256";
|
|
184
|
+
readonly name: "tAmount";
|
|
185
|
+
readonly type: "uint256";
|
|
186
|
+
}];
|
|
187
|
+
readonly name: "allocate";
|
|
188
|
+
readonly outputs: readonly [];
|
|
189
|
+
readonly stateMutability: "nonpayable";
|
|
190
|
+
readonly type: "function";
|
|
191
|
+
}, {
|
|
192
|
+
readonly inputs: readonly [{
|
|
193
|
+
readonly internalType: "uint256";
|
|
194
|
+
readonly name: "tAmount";
|
|
195
|
+
readonly type: "uint256";
|
|
196
|
+
}, {
|
|
197
|
+
readonly internalType: "bool";
|
|
198
|
+
readonly name: "deductTransferFee";
|
|
199
|
+
readonly type: "bool";
|
|
200
|
+
}];
|
|
201
|
+
readonly name: "allocationFromToken";
|
|
132
202
|
readonly outputs: readonly [{
|
|
133
|
-
readonly internalType: "
|
|
203
|
+
readonly internalType: "uint256";
|
|
134
204
|
readonly name: "";
|
|
135
|
-
readonly type: "
|
|
205
|
+
readonly type: "uint256";
|
|
136
206
|
}];
|
|
137
207
|
readonly stateMutability: "view";
|
|
138
208
|
readonly type: "function";
|
|
@@ -186,66 +256,55 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
186
256
|
}];
|
|
187
257
|
readonly stateMutability: "view";
|
|
188
258
|
readonly type: "function";
|
|
189
|
-
}, {
|
|
190
|
-
readonly inputs: readonly [{
|
|
191
|
-
readonly internalType: "uint256";
|
|
192
|
-
readonly name: "amount";
|
|
193
|
-
readonly type: "uint256";
|
|
194
|
-
}];
|
|
195
|
-
readonly name: "burn";
|
|
196
|
-
readonly outputs: readonly [];
|
|
197
|
-
readonly stateMutability: "nonpayable";
|
|
198
|
-
readonly type: "function";
|
|
199
259
|
}, {
|
|
200
260
|
readonly inputs: readonly [{
|
|
201
261
|
readonly internalType: "address";
|
|
202
|
-
readonly name: "
|
|
262
|
+
readonly name: "_token";
|
|
263
|
+
readonly type: "address";
|
|
264
|
+
}, {
|
|
265
|
+
readonly internalType: "address";
|
|
266
|
+
readonly name: "_to";
|
|
203
267
|
readonly type: "address";
|
|
204
268
|
}, {
|
|
205
269
|
readonly internalType: "uint256";
|
|
206
|
-
readonly name: "
|
|
270
|
+
readonly name: "_amount";
|
|
207
271
|
readonly type: "uint256";
|
|
208
272
|
}];
|
|
209
|
-
readonly name: "
|
|
273
|
+
readonly name: "burnLiq";
|
|
210
274
|
readonly outputs: readonly [];
|
|
211
275
|
readonly stateMutability: "nonpayable";
|
|
212
276
|
readonly type: "function";
|
|
213
277
|
}, {
|
|
214
278
|
readonly inputs: readonly [{
|
|
215
|
-
readonly internalType: "
|
|
216
|
-
readonly name: "
|
|
217
|
-
readonly type: "
|
|
279
|
+
readonly internalType: "uint256";
|
|
280
|
+
readonly name: "_amount";
|
|
281
|
+
readonly type: "uint256";
|
|
282
|
+
}, {
|
|
283
|
+
readonly internalType: "uint8";
|
|
284
|
+
readonly name: "_feeDecimals";
|
|
285
|
+
readonly type: "uint8";
|
|
218
286
|
}, {
|
|
219
287
|
readonly internalType: "uint32";
|
|
220
|
-
readonly name: "
|
|
288
|
+
readonly name: "_feePercentage";
|
|
221
289
|
readonly type: "uint32";
|
|
222
290
|
}];
|
|
223
|
-
readonly name: "
|
|
291
|
+
readonly name: "calcTokenFee";
|
|
224
292
|
readonly outputs: readonly [{
|
|
225
|
-
readonly
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
readonly type: "uint32";
|
|
229
|
-
}, {
|
|
230
|
-
readonly internalType: "uint224";
|
|
231
|
-
readonly name: "votes";
|
|
232
|
-
readonly type: "uint224";
|
|
233
|
-
}];
|
|
234
|
-
readonly internalType: "struct ERC20Votes.Checkpoint";
|
|
235
|
-
readonly name: "";
|
|
236
|
-
readonly type: "tuple";
|
|
293
|
+
readonly internalType: "uint256";
|
|
294
|
+
readonly name: "locked";
|
|
295
|
+
readonly type: "uint256";
|
|
237
296
|
}];
|
|
238
|
-
readonly stateMutability: "
|
|
297
|
+
readonly stateMutability: "pure";
|
|
239
298
|
readonly type: "function";
|
|
240
299
|
}, {
|
|
241
|
-
readonly inputs: readonly [
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
readonly
|
|
245
|
-
readonly name: "";
|
|
246
|
-
readonly type: "uint48";
|
|
300
|
+
readonly inputs: readonly [{
|
|
301
|
+
readonly internalType: "uint256";
|
|
302
|
+
readonly name: "n";
|
|
303
|
+
readonly type: "uint256";
|
|
247
304
|
}];
|
|
248
|
-
readonly
|
|
305
|
+
readonly name: "changeFeeDivider";
|
|
306
|
+
readonly outputs: readonly [];
|
|
307
|
+
readonly stateMutability: "nonpayable";
|
|
249
308
|
readonly type: "function";
|
|
250
309
|
}, {
|
|
251
310
|
readonly inputs: readonly [];
|
|
@@ -278,120 +337,40 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
278
337
|
}, {
|
|
279
338
|
readonly inputs: readonly [{
|
|
280
339
|
readonly internalType: "address";
|
|
281
|
-
readonly name: "
|
|
340
|
+
readonly name: "account";
|
|
282
341
|
readonly type: "address";
|
|
283
342
|
}];
|
|
284
|
-
readonly name: "
|
|
343
|
+
readonly name: "excludeAccount";
|
|
285
344
|
readonly outputs: readonly [];
|
|
286
345
|
readonly stateMutability: "nonpayable";
|
|
287
346
|
readonly type: "function";
|
|
288
347
|
}, {
|
|
289
|
-
readonly inputs: readonly [
|
|
290
|
-
|
|
291
|
-
readonly name: "delegatee";
|
|
292
|
-
readonly type: "address";
|
|
293
|
-
}, {
|
|
294
|
-
readonly internalType: "uint256";
|
|
295
|
-
readonly name: "nonce";
|
|
296
|
-
readonly type: "uint256";
|
|
297
|
-
}, {
|
|
298
|
-
readonly internalType: "uint256";
|
|
299
|
-
readonly name: "expiry";
|
|
300
|
-
readonly type: "uint256";
|
|
301
|
-
}, {
|
|
302
|
-
readonly internalType: "uint8";
|
|
303
|
-
readonly name: "v";
|
|
304
|
-
readonly type: "uint8";
|
|
305
|
-
}, {
|
|
306
|
-
readonly internalType: "bytes32";
|
|
307
|
-
readonly name: "r";
|
|
308
|
-
readonly type: "bytes32";
|
|
309
|
-
}, {
|
|
310
|
-
readonly internalType: "bytes32";
|
|
311
|
-
readonly name: "s";
|
|
312
|
-
readonly type: "bytes32";
|
|
313
|
-
}];
|
|
314
|
-
readonly name: "delegateBySig";
|
|
315
|
-
readonly outputs: readonly [];
|
|
316
|
-
readonly stateMutability: "nonpayable";
|
|
317
|
-
readonly type: "function";
|
|
318
|
-
}, {
|
|
319
|
-
readonly inputs: readonly [{
|
|
320
|
-
readonly internalType: "address";
|
|
321
|
-
readonly name: "account";
|
|
322
|
-
readonly type: "address";
|
|
323
|
-
}];
|
|
324
|
-
readonly name: "delegates";
|
|
348
|
+
readonly inputs: readonly [];
|
|
349
|
+
readonly name: "feeDecimals";
|
|
325
350
|
readonly outputs: readonly [{
|
|
326
|
-
readonly internalType: "
|
|
351
|
+
readonly internalType: "uint8";
|
|
327
352
|
readonly name: "";
|
|
328
|
-
readonly type: "
|
|
353
|
+
readonly type: "uint8";
|
|
329
354
|
}];
|
|
330
355
|
readonly stateMutability: "view";
|
|
331
356
|
readonly type: "function";
|
|
332
357
|
}, {
|
|
333
358
|
readonly inputs: readonly [];
|
|
334
|
-
readonly name: "
|
|
359
|
+
readonly name: "feePercentage";
|
|
335
360
|
readonly outputs: readonly [{
|
|
336
|
-
readonly internalType: "
|
|
337
|
-
readonly name: "fields";
|
|
338
|
-
readonly type: "bytes1";
|
|
339
|
-
}, {
|
|
340
|
-
readonly internalType: "string";
|
|
341
|
-
readonly name: "name";
|
|
342
|
-
readonly type: "string";
|
|
343
|
-
}, {
|
|
344
|
-
readonly internalType: "string";
|
|
345
|
-
readonly name: "version";
|
|
346
|
-
readonly type: "string";
|
|
347
|
-
}, {
|
|
348
|
-
readonly internalType: "uint256";
|
|
349
|
-
readonly name: "chainId";
|
|
350
|
-
readonly type: "uint256";
|
|
351
|
-
}, {
|
|
352
|
-
readonly internalType: "address";
|
|
353
|
-
readonly name: "verifyingContract";
|
|
354
|
-
readonly type: "address";
|
|
355
|
-
}, {
|
|
356
|
-
readonly internalType: "bytes32";
|
|
357
|
-
readonly name: "salt";
|
|
358
|
-
readonly type: "bytes32";
|
|
359
|
-
}, {
|
|
360
|
-
readonly internalType: "uint256[]";
|
|
361
|
-
readonly name: "extensions";
|
|
362
|
-
readonly type: "uint256[]";
|
|
363
|
-
}];
|
|
364
|
-
readonly stateMutability: "view";
|
|
365
|
-
readonly type: "function";
|
|
366
|
-
}, {
|
|
367
|
-
readonly inputs: readonly [{
|
|
368
|
-
readonly internalType: "uint256";
|
|
369
|
-
readonly name: "timepoint";
|
|
370
|
-
readonly type: "uint256";
|
|
371
|
-
}];
|
|
372
|
-
readonly name: "getPastTotalSupply";
|
|
373
|
-
readonly outputs: readonly [{
|
|
374
|
-
readonly internalType: "uint256";
|
|
361
|
+
readonly internalType: "uint32";
|
|
375
362
|
readonly name: "";
|
|
376
|
-
readonly type: "
|
|
363
|
+
readonly type: "uint32";
|
|
377
364
|
}];
|
|
378
365
|
readonly stateMutability: "view";
|
|
379
366
|
readonly type: "function";
|
|
380
367
|
}, {
|
|
381
|
-
readonly inputs: readonly [
|
|
382
|
-
|
|
383
|
-
readonly name: "account";
|
|
384
|
-
readonly type: "address";
|
|
385
|
-
}, {
|
|
386
|
-
readonly internalType: "uint256";
|
|
387
|
-
readonly name: "timepoint";
|
|
388
|
-
readonly type: "uint256";
|
|
389
|
-
}];
|
|
390
|
-
readonly name: "getPastVotes";
|
|
368
|
+
readonly inputs: readonly [];
|
|
369
|
+
readonly name: "inSwapAndAbsorb";
|
|
391
370
|
readonly outputs: readonly [{
|
|
392
|
-
readonly internalType: "
|
|
371
|
+
readonly internalType: "bool";
|
|
393
372
|
readonly name: "";
|
|
394
|
-
readonly type: "
|
|
373
|
+
readonly type: "bool";
|
|
395
374
|
}];
|
|
396
375
|
readonly stateMutability: "view";
|
|
397
376
|
readonly type: "function";
|
|
@@ -401,13 +380,9 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
401
380
|
readonly name: "account";
|
|
402
381
|
readonly type: "address";
|
|
403
382
|
}];
|
|
404
|
-
readonly name: "
|
|
405
|
-
readonly outputs: readonly [
|
|
406
|
-
|
|
407
|
-
readonly name: "";
|
|
408
|
-
readonly type: "uint256";
|
|
409
|
-
}];
|
|
410
|
-
readonly stateMutability: "view";
|
|
383
|
+
readonly name: "includeAccount";
|
|
384
|
+
readonly outputs: readonly [];
|
|
385
|
+
readonly stateMutability: "nonpayable";
|
|
411
386
|
readonly type: "function";
|
|
412
387
|
}, {
|
|
413
388
|
readonly inputs: readonly [{
|
|
@@ -429,21 +404,17 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
429
404
|
readonly type: "function";
|
|
430
405
|
}, {
|
|
431
406
|
readonly inputs: readonly [];
|
|
432
|
-
readonly name: "
|
|
407
|
+
readonly name: "minTokensBeforeAddToLP";
|
|
433
408
|
readonly outputs: readonly [{
|
|
434
|
-
readonly internalType: "
|
|
409
|
+
readonly internalType: "uint256";
|
|
435
410
|
readonly name: "";
|
|
436
|
-
readonly type: "
|
|
411
|
+
readonly type: "uint256";
|
|
437
412
|
}];
|
|
438
413
|
readonly stateMutability: "view";
|
|
439
414
|
readonly type: "function";
|
|
440
415
|
}, {
|
|
441
|
-
readonly inputs: readonly [
|
|
442
|
-
|
|
443
|
-
readonly name: "owner";
|
|
444
|
-
readonly type: "address";
|
|
445
|
-
}];
|
|
446
|
-
readonly name: "nonces";
|
|
416
|
+
readonly inputs: readonly [];
|
|
417
|
+
readonly name: "minimumSupply";
|
|
447
418
|
readonly outputs: readonly [{
|
|
448
419
|
readonly internalType: "uint256";
|
|
449
420
|
readonly name: "";
|
|
@@ -452,53 +423,51 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
452
423
|
readonly stateMutability: "view";
|
|
453
424
|
readonly type: "function";
|
|
454
425
|
}, {
|
|
455
|
-
readonly inputs: readonly [
|
|
456
|
-
|
|
457
|
-
readonly name: "account";
|
|
458
|
-
readonly type: "address";
|
|
459
|
-
}];
|
|
460
|
-
readonly name: "numCheckpoints";
|
|
426
|
+
readonly inputs: readonly [];
|
|
427
|
+
readonly name: "name";
|
|
461
428
|
readonly outputs: readonly [{
|
|
462
|
-
readonly internalType: "
|
|
429
|
+
readonly internalType: "string";
|
|
463
430
|
readonly name: "";
|
|
464
|
-
readonly type: "
|
|
431
|
+
readonly type: "string";
|
|
465
432
|
}];
|
|
466
433
|
readonly stateMutability: "view";
|
|
467
434
|
readonly type: "function";
|
|
468
435
|
}, {
|
|
469
|
-
readonly inputs: readonly [
|
|
436
|
+
readonly inputs: readonly [];
|
|
437
|
+
readonly name: "owner";
|
|
438
|
+
readonly outputs: readonly [{
|
|
470
439
|
readonly internalType: "address";
|
|
471
|
-
readonly name: "
|
|
440
|
+
readonly name: "";
|
|
472
441
|
readonly type: "address";
|
|
473
|
-
}
|
|
442
|
+
}];
|
|
443
|
+
readonly stateMutability: "view";
|
|
444
|
+
readonly type: "function";
|
|
445
|
+
}, {
|
|
446
|
+
readonly inputs: readonly [];
|
|
447
|
+
readonly name: "presale";
|
|
448
|
+
readonly outputs: readonly [{
|
|
474
449
|
readonly internalType: "address";
|
|
475
|
-
readonly name: "
|
|
450
|
+
readonly name: "";
|
|
476
451
|
readonly type: "address";
|
|
477
|
-
}, {
|
|
478
|
-
readonly internalType: "uint256";
|
|
479
|
-
readonly name: "value";
|
|
480
|
-
readonly type: "uint256";
|
|
481
|
-
}, {
|
|
482
|
-
readonly internalType: "uint256";
|
|
483
|
-
readonly name: "deadline";
|
|
484
|
-
readonly type: "uint256";
|
|
485
|
-
}, {
|
|
486
|
-
readonly internalType: "uint8";
|
|
487
|
-
readonly name: "v";
|
|
488
|
-
readonly type: "uint8";
|
|
489
|
-
}, {
|
|
490
|
-
readonly internalType: "bytes32";
|
|
491
|
-
readonly name: "r";
|
|
492
|
-
readonly type: "bytes32";
|
|
493
|
-
}, {
|
|
494
|
-
readonly internalType: "bytes32";
|
|
495
|
-
readonly name: "s";
|
|
496
|
-
readonly type: "bytes32";
|
|
497
452
|
}];
|
|
498
|
-
readonly
|
|
453
|
+
readonly stateMutability: "view";
|
|
454
|
+
readonly type: "function";
|
|
455
|
+
}, {
|
|
456
|
+
readonly inputs: readonly [];
|
|
457
|
+
readonly name: "renounceOwnership";
|
|
499
458
|
readonly outputs: readonly [];
|
|
500
459
|
readonly stateMutability: "nonpayable";
|
|
501
460
|
readonly type: "function";
|
|
461
|
+
}, {
|
|
462
|
+
readonly inputs: readonly [];
|
|
463
|
+
readonly name: "swapAndAbsorbEnabled";
|
|
464
|
+
readonly outputs: readonly [{
|
|
465
|
+
readonly internalType: "bool";
|
|
466
|
+
readonly name: "";
|
|
467
|
+
readonly type: "bool";
|
|
468
|
+
}];
|
|
469
|
+
readonly stateMutability: "view";
|
|
470
|
+
readonly type: "function";
|
|
502
471
|
}, {
|
|
503
472
|
readonly inputs: readonly [];
|
|
504
473
|
readonly name: "symbol";
|
|
@@ -509,6 +478,20 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
509
478
|
}];
|
|
510
479
|
readonly stateMutability: "view";
|
|
511
480
|
readonly type: "function";
|
|
481
|
+
}, {
|
|
482
|
+
readonly inputs: readonly [{
|
|
483
|
+
readonly internalType: "uint256";
|
|
484
|
+
readonly name: "aAmount";
|
|
485
|
+
readonly type: "uint256";
|
|
486
|
+
}];
|
|
487
|
+
readonly name: "tokenFromAllocation";
|
|
488
|
+
readonly outputs: readonly [{
|
|
489
|
+
readonly internalType: "uint256";
|
|
490
|
+
readonly name: "";
|
|
491
|
+
readonly type: "uint256";
|
|
492
|
+
}];
|
|
493
|
+
readonly stateMutability: "view";
|
|
494
|
+
readonly type: "function";
|
|
512
495
|
}, {
|
|
513
496
|
readonly inputs: readonly [];
|
|
514
497
|
readonly name: "totalSupply";
|
|
@@ -522,7 +505,7 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
522
505
|
}, {
|
|
523
506
|
readonly inputs: readonly [{
|
|
524
507
|
readonly internalType: "address";
|
|
525
|
-
readonly name: "
|
|
508
|
+
readonly name: "recipient";
|
|
526
509
|
readonly type: "address";
|
|
527
510
|
}, {
|
|
528
511
|
readonly internalType: "uint256";
|
|
@@ -540,11 +523,11 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
540
523
|
}, {
|
|
541
524
|
readonly inputs: readonly [{
|
|
542
525
|
readonly internalType: "address";
|
|
543
|
-
readonly name: "
|
|
526
|
+
readonly name: "sender";
|
|
544
527
|
readonly type: "address";
|
|
545
528
|
}, {
|
|
546
529
|
readonly internalType: "address";
|
|
547
|
-
readonly name: "
|
|
530
|
+
readonly name: "recipient";
|
|
548
531
|
readonly type: "address";
|
|
549
532
|
}, {
|
|
550
533
|
readonly internalType: "uint256";
|
|
@@ -554,22 +537,117 @@ export declare const SwissBorgToken_jsonAbi: readonly [{
|
|
|
554
537
|
readonly name: "transferFrom";
|
|
555
538
|
readonly outputs: readonly [{
|
|
556
539
|
readonly internalType: "bool";
|
|
557
|
-
readonly name: "";
|
|
540
|
+
readonly name: "";
|
|
541
|
+
readonly type: "bool";
|
|
542
|
+
}];
|
|
543
|
+
readonly stateMutability: "nonpayable";
|
|
544
|
+
readonly type: "function";
|
|
545
|
+
}, {
|
|
546
|
+
readonly inputs: readonly [{
|
|
547
|
+
readonly internalType: "address";
|
|
548
|
+
readonly name: "newOwner";
|
|
549
|
+
readonly type: "address";
|
|
550
|
+
}];
|
|
551
|
+
readonly name: "transferOwnership";
|
|
552
|
+
readonly outputs: readonly [];
|
|
553
|
+
readonly stateMutability: "nonpayable";
|
|
554
|
+
readonly type: "function";
|
|
555
|
+
}, {
|
|
556
|
+
readonly inputs: readonly [];
|
|
557
|
+
readonly name: "unPauseTransferForever";
|
|
558
|
+
readonly outputs: readonly [];
|
|
559
|
+
readonly stateMutability: "nonpayable";
|
|
560
|
+
readonly type: "function";
|
|
561
|
+
}, {
|
|
562
|
+
readonly inputs: readonly [];
|
|
563
|
+
readonly name: "uniswapV2Pair";
|
|
564
|
+
readonly outputs: readonly [{
|
|
565
|
+
readonly internalType: "address";
|
|
566
|
+
readonly name: "";
|
|
567
|
+
readonly type: "address";
|
|
568
|
+
}];
|
|
569
|
+
readonly stateMutability: "view";
|
|
570
|
+
readonly type: "function";
|
|
571
|
+
}, {
|
|
572
|
+
readonly inputs: readonly [];
|
|
573
|
+
readonly name: "uniswapV2Router";
|
|
574
|
+
readonly outputs: readonly [{
|
|
575
|
+
readonly internalType: "contract IUniswapV2Router02";
|
|
576
|
+
readonly name: "";
|
|
577
|
+
readonly type: "address";
|
|
578
|
+
}];
|
|
579
|
+
readonly stateMutability: "view";
|
|
580
|
+
readonly type: "function";
|
|
581
|
+
}, {
|
|
582
|
+
readonly inputs: readonly [{
|
|
583
|
+
readonly internalType: "uint8";
|
|
584
|
+
readonly name: "_feeDecimals";
|
|
585
|
+
readonly type: "uint8";
|
|
586
|
+
}, {
|
|
587
|
+
readonly internalType: "uint32";
|
|
588
|
+
readonly name: "_feePercentage";
|
|
589
|
+
readonly type: "uint32";
|
|
590
|
+
}];
|
|
591
|
+
readonly name: "updateFee";
|
|
592
|
+
readonly outputs: readonly [];
|
|
593
|
+
readonly stateMutability: "nonpayable";
|
|
594
|
+
readonly type: "function";
|
|
595
|
+
}, {
|
|
596
|
+
readonly inputs: readonly [{
|
|
597
|
+
readonly internalType: "uint8";
|
|
598
|
+
readonly name: "absFeeDecimals";
|
|
599
|
+
readonly type: "uint8";
|
|
600
|
+
}, {
|
|
601
|
+
readonly internalType: "uint32";
|
|
602
|
+
readonly name: "absFeePercentage";
|
|
603
|
+
readonly type: "uint32";
|
|
604
|
+
}, {
|
|
605
|
+
readonly internalType: "uint256";
|
|
606
|
+
readonly name: "absFeeDivider";
|
|
607
|
+
readonly type: "uint256";
|
|
608
|
+
}, {
|
|
609
|
+
readonly internalType: "bool";
|
|
610
|
+
readonly name: "_enabled";
|
|
611
|
+
readonly type: "bool";
|
|
612
|
+
}];
|
|
613
|
+
readonly name: "updateFeesAndSwapsEnabled";
|
|
614
|
+
readonly outputs: readonly [];
|
|
615
|
+
readonly stateMutability: "nonpayable";
|
|
616
|
+
readonly type: "function";
|
|
617
|
+
}, {
|
|
618
|
+
readonly inputs: readonly [{
|
|
619
|
+
readonly internalType: "uint256";
|
|
620
|
+
readonly name: "_minTokensBeforeAddToLP";
|
|
621
|
+
readonly type: "uint256";
|
|
622
|
+
}];
|
|
623
|
+
readonly name: "updateMinTokensBeforeAddToLP";
|
|
624
|
+
readonly outputs: readonly [];
|
|
625
|
+
readonly stateMutability: "nonpayable";
|
|
626
|
+
readonly type: "function";
|
|
627
|
+
}, {
|
|
628
|
+
readonly inputs: readonly [{
|
|
629
|
+
readonly internalType: "bool";
|
|
630
|
+
readonly name: "_enabled";
|
|
558
631
|
readonly type: "bool";
|
|
559
632
|
}];
|
|
633
|
+
readonly name: "updateSwapAndAbsorbEnabled";
|
|
634
|
+
readonly outputs: readonly [];
|
|
560
635
|
readonly stateMutability: "nonpayable";
|
|
561
636
|
readonly type: "function";
|
|
637
|
+
}, {
|
|
638
|
+
readonly stateMutability: "payable";
|
|
639
|
+
readonly type: "receive";
|
|
562
640
|
}];
|
|
563
641
|
/**
|
|
564
|
-
* Type-safe ABI for
|
|
642
|
+
* Type-safe ABI for BORG_json
|
|
565
643
|
*/
|
|
566
|
-
export type
|
|
644
|
+
export type BORG_jsonAbi = typeof BORG_jsonAbi;
|
|
567
645
|
/**
|
|
568
|
-
* Contract instance type for
|
|
646
|
+
* Contract instance type for BORG_json
|
|
569
647
|
*/
|
|
570
|
-
export type
|
|
648
|
+
export type BORG_jsonContract = any;
|
|
571
649
|
/**
|
|
572
|
-
*
|
|
650
|
+
* BORG_json Contract Class
|
|
573
651
|
*
|
|
574
652
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
575
653
|
*
|
|
@@ -577,12 +655,12 @@ export type SwissBorgToken_jsonContract = any;
|
|
|
577
655
|
* ```typescript
|
|
578
656
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
579
657
|
* import { mainnet } from 'viem/chains';
|
|
580
|
-
* import {
|
|
658
|
+
* import { BORG_json } from 'BORG_json';
|
|
581
659
|
*
|
|
582
660
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
583
661
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
584
662
|
*
|
|
585
|
-
* const contract = new
|
|
663
|
+
* const contract = new BORG_json('0x...', { publicClient, walletClient });
|
|
586
664
|
*
|
|
587
665
|
* // Read functions
|
|
588
666
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -600,7 +678,7 @@ export type SwissBorgToken_jsonContract = any;
|
|
|
600
678
|
* });
|
|
601
679
|
* ```
|
|
602
680
|
*/
|
|
603
|
-
export declare class
|
|
681
|
+
export declare class BORG_json {
|
|
604
682
|
private contract;
|
|
605
683
|
private contractAddress;
|
|
606
684
|
private publicClient;
|
|
@@ -615,92 +693,139 @@ export declare class SwissBorgToken_json {
|
|
|
615
693
|
/**
|
|
616
694
|
* Get the underlying viem contract instance
|
|
617
695
|
*/
|
|
618
|
-
getContract():
|
|
696
|
+
getContract(): BORG_jsonContract;
|
|
619
697
|
/**
|
|
620
|
-
*
|
|
698
|
+
* _balanceOfLpTokens
|
|
621
699
|
* view
|
|
622
700
|
*/
|
|
623
|
-
|
|
701
|
+
_balanceOfLpTokens(): Promise<bigint>;
|
|
624
702
|
/**
|
|
625
|
-
*
|
|
703
|
+
* _burnPool
|
|
626
704
|
* view
|
|
627
705
|
*/
|
|
628
|
-
|
|
706
|
+
_burnPool(): Promise<`0x${string}`>;
|
|
629
707
|
/**
|
|
630
|
-
*
|
|
708
|
+
* _totalBurnedLpTokens
|
|
631
709
|
* view
|
|
632
710
|
*/
|
|
633
|
-
|
|
711
|
+
_totalBurnedLpTokens(): Promise<bigint>;
|
|
634
712
|
/**
|
|
635
|
-
*
|
|
713
|
+
* _totalBurnedTokens
|
|
636
714
|
* view
|
|
637
715
|
*/
|
|
638
|
-
|
|
716
|
+
_totalBurnedTokens(): Promise<bigint>;
|
|
717
|
+
/**
|
|
718
|
+
* allocationFromToken
|
|
719
|
+
* view
|
|
720
|
+
*/
|
|
721
|
+
allocationFromToken(tAmount: bigint, deductTransferFee: boolean): Promise<bigint>;
|
|
639
722
|
/**
|
|
640
|
-
*
|
|
723
|
+
* allowance
|
|
641
724
|
* view
|
|
642
725
|
*/
|
|
643
|
-
|
|
726
|
+
allowance(owner: `0x${string}`, spender: `0x${string}`): Promise<bigint>;
|
|
644
727
|
/**
|
|
645
|
-
*
|
|
728
|
+
* balanceOf
|
|
646
729
|
* view
|
|
647
730
|
*/
|
|
648
|
-
|
|
731
|
+
balanceOf(account: `0x${string}`): Promise<bigint>;
|
|
732
|
+
/**
|
|
733
|
+
* calcTokenFee
|
|
734
|
+
* pure
|
|
735
|
+
*/
|
|
736
|
+
calcTokenFee(_amount: bigint, _feeDecimals: bigint, _feePercentage: bigint): Promise<bigint>;
|
|
649
737
|
/**
|
|
650
738
|
* decimals
|
|
651
739
|
* view
|
|
652
740
|
*/
|
|
653
741
|
decimals(): Promise<bigint>;
|
|
654
742
|
/**
|
|
655
|
-
*
|
|
743
|
+
* feeDecimals
|
|
656
744
|
* view
|
|
657
745
|
*/
|
|
658
|
-
|
|
746
|
+
feeDecimals(): Promise<bigint>;
|
|
659
747
|
/**
|
|
660
|
-
*
|
|
748
|
+
* feePercentage
|
|
661
749
|
* view
|
|
662
750
|
*/
|
|
663
|
-
|
|
751
|
+
feePercentage(): Promise<bigint>;
|
|
664
752
|
/**
|
|
665
|
-
*
|
|
753
|
+
* inSwapAndAbsorb
|
|
666
754
|
* view
|
|
667
755
|
*/
|
|
668
|
-
|
|
756
|
+
inSwapAndAbsorb(): Promise<boolean>;
|
|
669
757
|
/**
|
|
670
|
-
*
|
|
758
|
+
* minTokensBeforeAddToLP
|
|
671
759
|
* view
|
|
672
760
|
*/
|
|
673
|
-
|
|
761
|
+
minTokensBeforeAddToLP(): Promise<bigint>;
|
|
674
762
|
/**
|
|
675
|
-
*
|
|
763
|
+
* minimumSupply
|
|
676
764
|
* view
|
|
677
765
|
*/
|
|
678
|
-
|
|
766
|
+
minimumSupply(): Promise<bigint>;
|
|
679
767
|
/**
|
|
680
768
|
* name
|
|
681
769
|
* view
|
|
682
770
|
*/
|
|
683
771
|
name(): Promise<string>;
|
|
684
772
|
/**
|
|
685
|
-
*
|
|
773
|
+
* owner
|
|
774
|
+
* view
|
|
775
|
+
*/
|
|
776
|
+
owner(): Promise<`0x${string}`>;
|
|
777
|
+
/**
|
|
778
|
+
* presale
|
|
686
779
|
* view
|
|
687
780
|
*/
|
|
688
|
-
|
|
781
|
+
presale(): Promise<`0x${string}`>;
|
|
689
782
|
/**
|
|
690
|
-
*
|
|
783
|
+
* swapAndAbsorbEnabled
|
|
691
784
|
* view
|
|
692
785
|
*/
|
|
693
|
-
|
|
786
|
+
swapAndAbsorbEnabled(): Promise<boolean>;
|
|
694
787
|
/**
|
|
695
788
|
* symbol
|
|
696
789
|
* view
|
|
697
790
|
*/
|
|
698
791
|
symbol(): Promise<string>;
|
|
792
|
+
/**
|
|
793
|
+
* tokenFromAllocation
|
|
794
|
+
* view
|
|
795
|
+
*/
|
|
796
|
+
tokenFromAllocation(aAmount: bigint): Promise<bigint>;
|
|
699
797
|
/**
|
|
700
798
|
* totalSupply
|
|
701
799
|
* view
|
|
702
800
|
*/
|
|
703
801
|
totalSupply(): Promise<bigint>;
|
|
802
|
+
/**
|
|
803
|
+
* uniswapV2Pair
|
|
804
|
+
* view
|
|
805
|
+
*/
|
|
806
|
+
uniswapV2Pair(): Promise<`0x${string}`>;
|
|
807
|
+
/**
|
|
808
|
+
* uniswapV2Router
|
|
809
|
+
* view
|
|
810
|
+
*/
|
|
811
|
+
uniswapV2Router(): Promise<`0x${string}`>;
|
|
812
|
+
/**
|
|
813
|
+
* allocate
|
|
814
|
+
* nonpayable
|
|
815
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
816
|
+
*/
|
|
817
|
+
allocate(tAmount: bigint, options?: {
|
|
818
|
+
accessList?: import('viem').AccessList;
|
|
819
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
820
|
+
chain?: import('viem').Chain | null;
|
|
821
|
+
dataSuffix?: `0x${string}`;
|
|
822
|
+
gas?: bigint;
|
|
823
|
+
gasPrice?: bigint;
|
|
824
|
+
maxFeePerGas?: bigint;
|
|
825
|
+
maxPriorityFeePerGas?: bigint;
|
|
826
|
+
nonce?: number;
|
|
827
|
+
value?: bigint;
|
|
828
|
+
}): Promise<`0x${string}`>;
|
|
704
829
|
/**
|
|
705
830
|
* approve
|
|
706
831
|
* nonpayable
|
|
@@ -719,11 +844,11 @@ export declare class SwissBorgToken_json {
|
|
|
719
844
|
value?: bigint;
|
|
720
845
|
}): Promise<`0x${string}`>;
|
|
721
846
|
/**
|
|
722
|
-
*
|
|
847
|
+
* burnLiq
|
|
723
848
|
* nonpayable
|
|
724
849
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
725
850
|
*/
|
|
726
|
-
|
|
851
|
+
burnLiq(_token: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
|
|
727
852
|
accessList?: import('viem').AccessList;
|
|
728
853
|
authorizationList?: import('viem').AuthorizationList;
|
|
729
854
|
chain?: import('viem').Chain | null;
|
|
@@ -736,11 +861,11 @@ export declare class SwissBorgToken_json {
|
|
|
736
861
|
value?: bigint;
|
|
737
862
|
}): Promise<`0x${string}`>;
|
|
738
863
|
/**
|
|
739
|
-
*
|
|
864
|
+
* changeFeeDivider
|
|
740
865
|
* nonpayable
|
|
741
866
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
742
867
|
*/
|
|
743
|
-
|
|
868
|
+
changeFeeDivider(n: bigint, options?: {
|
|
744
869
|
accessList?: import('viem').AccessList;
|
|
745
870
|
authorizationList?: import('viem').AuthorizationList;
|
|
746
871
|
chain?: import('viem').Chain | null;
|
|
@@ -770,11 +895,11 @@ export declare class SwissBorgToken_json {
|
|
|
770
895
|
value?: bigint;
|
|
771
896
|
}): Promise<`0x${string}`>;
|
|
772
897
|
/**
|
|
773
|
-
*
|
|
898
|
+
* excludeAccount
|
|
774
899
|
* nonpayable
|
|
775
900
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
776
901
|
*/
|
|
777
|
-
|
|
902
|
+
excludeAccount(account: `0x${string}`, options?: {
|
|
778
903
|
accessList?: import('viem').AccessList;
|
|
779
904
|
authorizationList?: import('viem').AuthorizationList;
|
|
780
905
|
chain?: import('viem').Chain | null;
|
|
@@ -787,11 +912,11 @@ export declare class SwissBorgToken_json {
|
|
|
787
912
|
value?: bigint;
|
|
788
913
|
}): Promise<`0x${string}`>;
|
|
789
914
|
/**
|
|
790
|
-
*
|
|
915
|
+
* includeAccount
|
|
791
916
|
* nonpayable
|
|
792
917
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
793
918
|
*/
|
|
794
|
-
|
|
919
|
+
includeAccount(account: `0x${string}`, options?: {
|
|
795
920
|
accessList?: import('viem').AccessList;
|
|
796
921
|
authorizationList?: import('viem').AuthorizationList;
|
|
797
922
|
chain?: import('viem').Chain | null;
|
|
@@ -821,11 +946,11 @@ export declare class SwissBorgToken_json {
|
|
|
821
946
|
value?: bigint;
|
|
822
947
|
}): Promise<`0x${string}`>;
|
|
823
948
|
/**
|
|
824
|
-
*
|
|
949
|
+
* renounceOwnership
|
|
825
950
|
* nonpayable
|
|
826
951
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
827
952
|
*/
|
|
828
|
-
|
|
953
|
+
renounceOwnership(options?: {
|
|
829
954
|
accessList?: import('viem').AccessList;
|
|
830
955
|
authorizationList?: import('viem').AuthorizationList;
|
|
831
956
|
chain?: import('viem').Chain | null;
|
|
@@ -842,7 +967,7 @@ export declare class SwissBorgToken_json {
|
|
|
842
967
|
* nonpayable
|
|
843
968
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
844
969
|
*/
|
|
845
|
-
transfer(
|
|
970
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
846
971
|
accessList?: import('viem').AccessList;
|
|
847
972
|
authorizationList?: import('viem').AuthorizationList;
|
|
848
973
|
chain?: import('viem').Chain | null;
|
|
@@ -859,7 +984,109 @@ export declare class SwissBorgToken_json {
|
|
|
859
984
|
* nonpayable
|
|
860
985
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
861
986
|
*/
|
|
862
|
-
transferFrom(
|
|
987
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
988
|
+
accessList?: import('viem').AccessList;
|
|
989
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
990
|
+
chain?: import('viem').Chain | null;
|
|
991
|
+
dataSuffix?: `0x${string}`;
|
|
992
|
+
gas?: bigint;
|
|
993
|
+
gasPrice?: bigint;
|
|
994
|
+
maxFeePerGas?: bigint;
|
|
995
|
+
maxPriorityFeePerGas?: bigint;
|
|
996
|
+
nonce?: number;
|
|
997
|
+
value?: bigint;
|
|
998
|
+
}): Promise<`0x${string}`>;
|
|
999
|
+
/**
|
|
1000
|
+
* transferOwnership
|
|
1001
|
+
* nonpayable
|
|
1002
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1003
|
+
*/
|
|
1004
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1005
|
+
accessList?: import('viem').AccessList;
|
|
1006
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1007
|
+
chain?: import('viem').Chain | null;
|
|
1008
|
+
dataSuffix?: `0x${string}`;
|
|
1009
|
+
gas?: bigint;
|
|
1010
|
+
gasPrice?: bigint;
|
|
1011
|
+
maxFeePerGas?: bigint;
|
|
1012
|
+
maxPriorityFeePerGas?: bigint;
|
|
1013
|
+
nonce?: number;
|
|
1014
|
+
value?: bigint;
|
|
1015
|
+
}): Promise<`0x${string}`>;
|
|
1016
|
+
/**
|
|
1017
|
+
* unPauseTransferForever
|
|
1018
|
+
* nonpayable
|
|
1019
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1020
|
+
*/
|
|
1021
|
+
unPauseTransferForever(options?: {
|
|
1022
|
+
accessList?: import('viem').AccessList;
|
|
1023
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1024
|
+
chain?: import('viem').Chain | null;
|
|
1025
|
+
dataSuffix?: `0x${string}`;
|
|
1026
|
+
gas?: bigint;
|
|
1027
|
+
gasPrice?: bigint;
|
|
1028
|
+
maxFeePerGas?: bigint;
|
|
1029
|
+
maxPriorityFeePerGas?: bigint;
|
|
1030
|
+
nonce?: number;
|
|
1031
|
+
value?: bigint;
|
|
1032
|
+
}): Promise<`0x${string}`>;
|
|
1033
|
+
/**
|
|
1034
|
+
* updateFee
|
|
1035
|
+
* nonpayable
|
|
1036
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1037
|
+
*/
|
|
1038
|
+
updateFee(_feeDecimals: bigint, _feePercentage: bigint, options?: {
|
|
1039
|
+
accessList?: import('viem').AccessList;
|
|
1040
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1041
|
+
chain?: import('viem').Chain | null;
|
|
1042
|
+
dataSuffix?: `0x${string}`;
|
|
1043
|
+
gas?: bigint;
|
|
1044
|
+
gasPrice?: bigint;
|
|
1045
|
+
maxFeePerGas?: bigint;
|
|
1046
|
+
maxPriorityFeePerGas?: bigint;
|
|
1047
|
+
nonce?: number;
|
|
1048
|
+
value?: bigint;
|
|
1049
|
+
}): Promise<`0x${string}`>;
|
|
1050
|
+
/**
|
|
1051
|
+
* updateFeesAndSwapsEnabled
|
|
1052
|
+
* nonpayable
|
|
1053
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1054
|
+
*/
|
|
1055
|
+
updateFeesAndSwapsEnabled(absFeeDecimals: bigint, absFeePercentage: bigint, absFeeDivider: bigint, _enabled: boolean, options?: {
|
|
1056
|
+
accessList?: import('viem').AccessList;
|
|
1057
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1058
|
+
chain?: import('viem').Chain | null;
|
|
1059
|
+
dataSuffix?: `0x${string}`;
|
|
1060
|
+
gas?: bigint;
|
|
1061
|
+
gasPrice?: bigint;
|
|
1062
|
+
maxFeePerGas?: bigint;
|
|
1063
|
+
maxPriorityFeePerGas?: bigint;
|
|
1064
|
+
nonce?: number;
|
|
1065
|
+
value?: bigint;
|
|
1066
|
+
}): Promise<`0x${string}`>;
|
|
1067
|
+
/**
|
|
1068
|
+
* updateMinTokensBeforeAddToLP
|
|
1069
|
+
* nonpayable
|
|
1070
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1071
|
+
*/
|
|
1072
|
+
updateMinTokensBeforeAddToLP(_minTokensBeforeAddToLP: bigint, options?: {
|
|
1073
|
+
accessList?: import('viem').AccessList;
|
|
1074
|
+
authorizationList?: import('viem').AuthorizationList;
|
|
1075
|
+
chain?: import('viem').Chain | null;
|
|
1076
|
+
dataSuffix?: `0x${string}`;
|
|
1077
|
+
gas?: bigint;
|
|
1078
|
+
gasPrice?: bigint;
|
|
1079
|
+
maxFeePerGas?: bigint;
|
|
1080
|
+
maxPriorityFeePerGas?: bigint;
|
|
1081
|
+
nonce?: number;
|
|
1082
|
+
value?: bigint;
|
|
1083
|
+
}): Promise<`0x${string}`>;
|
|
1084
|
+
/**
|
|
1085
|
+
* updateSwapAndAbsorbEnabled
|
|
1086
|
+
* nonpayable
|
|
1087
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1088
|
+
*/
|
|
1089
|
+
updateSwapAndAbsorbEnabled(_enabled: boolean, options?: {
|
|
863
1090
|
accessList?: import('viem').AccessList;
|
|
864
1091
|
authorizationList?: import('viem').AuthorizationList;
|
|
865
1092
|
chain?: import('viem').Chain | null;
|
|
@@ -880,6 +1107,23 @@ export declare class SwissBorgToken_json {
|
|
|
880
1107
|
* console.log('Would succeed:', result.result);
|
|
881
1108
|
*/
|
|
882
1109
|
get simulate(): {
|
|
1110
|
+
/**
|
|
1111
|
+
* Simulate allocate
|
|
1112
|
+
* Returns gas estimate and result without sending transaction
|
|
1113
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1114
|
+
*/
|
|
1115
|
+
allocate(tAmount: bigint, options?: {
|
|
1116
|
+
accessList?: import("viem").AccessList;
|
|
1117
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1118
|
+
chain?: import("viem").Chain | null;
|
|
1119
|
+
dataSuffix?: `0x${string}`;
|
|
1120
|
+
gas?: bigint;
|
|
1121
|
+
gasPrice?: bigint;
|
|
1122
|
+
maxFeePerGas?: bigint;
|
|
1123
|
+
maxPriorityFeePerGas?: bigint;
|
|
1124
|
+
nonce?: number;
|
|
1125
|
+
value?: bigint;
|
|
1126
|
+
}): Promise<void>;
|
|
883
1127
|
/**
|
|
884
1128
|
* Simulate approve
|
|
885
1129
|
* Returns gas estimate and result without sending transaction
|
|
@@ -898,11 +1142,11 @@ export declare class SwissBorgToken_json {
|
|
|
898
1142
|
value?: bigint;
|
|
899
1143
|
}): Promise<boolean>;
|
|
900
1144
|
/**
|
|
901
|
-
* Simulate
|
|
1145
|
+
* Simulate burnLiq
|
|
902
1146
|
* Returns gas estimate and result without sending transaction
|
|
903
1147
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
904
1148
|
*/
|
|
905
|
-
|
|
1149
|
+
burnLiq(_token: `0x${string}`, _to: `0x${string}`, _amount: bigint, options?: {
|
|
906
1150
|
accessList?: import("viem").AccessList;
|
|
907
1151
|
authorizationList?: import("viem").AuthorizationList;
|
|
908
1152
|
chain?: import("viem").Chain | null;
|
|
@@ -915,11 +1159,11 @@ export declare class SwissBorgToken_json {
|
|
|
915
1159
|
value?: bigint;
|
|
916
1160
|
}): Promise<void>;
|
|
917
1161
|
/**
|
|
918
|
-
* Simulate
|
|
1162
|
+
* Simulate changeFeeDivider
|
|
919
1163
|
* Returns gas estimate and result without sending transaction
|
|
920
1164
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
921
1165
|
*/
|
|
922
|
-
|
|
1166
|
+
changeFeeDivider(n: bigint, options?: {
|
|
923
1167
|
accessList?: import("viem").AccessList;
|
|
924
1168
|
authorizationList?: import("viem").AuthorizationList;
|
|
925
1169
|
chain?: import("viem").Chain | null;
|
|
@@ -949,11 +1193,11 @@ export declare class SwissBorgToken_json {
|
|
|
949
1193
|
value?: bigint;
|
|
950
1194
|
}): Promise<boolean>;
|
|
951
1195
|
/**
|
|
952
|
-
* Simulate
|
|
1196
|
+
* Simulate excludeAccount
|
|
953
1197
|
* Returns gas estimate and result without sending transaction
|
|
954
1198
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
955
1199
|
*/
|
|
956
|
-
|
|
1200
|
+
excludeAccount(account: `0x${string}`, options?: {
|
|
957
1201
|
accessList?: import("viem").AccessList;
|
|
958
1202
|
authorizationList?: import("viem").AuthorizationList;
|
|
959
1203
|
chain?: import("viem").Chain | null;
|
|
@@ -966,11 +1210,11 @@ export declare class SwissBorgToken_json {
|
|
|
966
1210
|
value?: bigint;
|
|
967
1211
|
}): Promise<void>;
|
|
968
1212
|
/**
|
|
969
|
-
* Simulate
|
|
1213
|
+
* Simulate includeAccount
|
|
970
1214
|
* Returns gas estimate and result without sending transaction
|
|
971
1215
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
972
1216
|
*/
|
|
973
|
-
|
|
1217
|
+
includeAccount(account: `0x${string}`, options?: {
|
|
974
1218
|
accessList?: import("viem").AccessList;
|
|
975
1219
|
authorizationList?: import("viem").AuthorizationList;
|
|
976
1220
|
chain?: import("viem").Chain | null;
|
|
@@ -1000,11 +1244,11 @@ export declare class SwissBorgToken_json {
|
|
|
1000
1244
|
value?: bigint;
|
|
1001
1245
|
}): Promise<boolean>;
|
|
1002
1246
|
/**
|
|
1003
|
-
* Simulate
|
|
1247
|
+
* Simulate renounceOwnership
|
|
1004
1248
|
* Returns gas estimate and result without sending transaction
|
|
1005
1249
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1006
1250
|
*/
|
|
1007
|
-
|
|
1251
|
+
renounceOwnership(options?: {
|
|
1008
1252
|
accessList?: import("viem").AccessList;
|
|
1009
1253
|
authorizationList?: import("viem").AuthorizationList;
|
|
1010
1254
|
chain?: import("viem").Chain | null;
|
|
@@ -1021,7 +1265,7 @@ export declare class SwissBorgToken_json {
|
|
|
1021
1265
|
* Returns gas estimate and result without sending transaction
|
|
1022
1266
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1023
1267
|
*/
|
|
1024
|
-
transfer(
|
|
1268
|
+
transfer(recipient: `0x${string}`, amount: bigint, options?: {
|
|
1025
1269
|
accessList?: import("viem").AccessList;
|
|
1026
1270
|
authorizationList?: import("viem").AuthorizationList;
|
|
1027
1271
|
chain?: import("viem").Chain | null;
|
|
@@ -1038,7 +1282,7 @@ export declare class SwissBorgToken_json {
|
|
|
1038
1282
|
* Returns gas estimate and result without sending transaction
|
|
1039
1283
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1040
1284
|
*/
|
|
1041
|
-
transferFrom(
|
|
1285
|
+
transferFrom(sender: `0x${string}`, recipient: `0x${string}`, amount: bigint, options?: {
|
|
1042
1286
|
accessList?: import("viem").AccessList;
|
|
1043
1287
|
authorizationList?: import("viem").AuthorizationList;
|
|
1044
1288
|
chain?: import("viem").Chain | null;
|
|
@@ -1050,6 +1294,108 @@ export declare class SwissBorgToken_json {
|
|
|
1050
1294
|
nonce?: number;
|
|
1051
1295
|
value?: bigint;
|
|
1052
1296
|
}): Promise<boolean>;
|
|
1297
|
+
/**
|
|
1298
|
+
* Simulate transferOwnership
|
|
1299
|
+
* Returns gas estimate and result without sending transaction
|
|
1300
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1301
|
+
*/
|
|
1302
|
+
transferOwnership(newOwner: `0x${string}`, options?: {
|
|
1303
|
+
accessList?: import("viem").AccessList;
|
|
1304
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1305
|
+
chain?: import("viem").Chain | null;
|
|
1306
|
+
dataSuffix?: `0x${string}`;
|
|
1307
|
+
gas?: bigint;
|
|
1308
|
+
gasPrice?: bigint;
|
|
1309
|
+
maxFeePerGas?: bigint;
|
|
1310
|
+
maxPriorityFeePerGas?: bigint;
|
|
1311
|
+
nonce?: number;
|
|
1312
|
+
value?: bigint;
|
|
1313
|
+
}): Promise<void>;
|
|
1314
|
+
/**
|
|
1315
|
+
* Simulate unPauseTransferForever
|
|
1316
|
+
* Returns gas estimate and result without sending transaction
|
|
1317
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1318
|
+
*/
|
|
1319
|
+
unPauseTransferForever(options?: {
|
|
1320
|
+
accessList?: import("viem").AccessList;
|
|
1321
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1322
|
+
chain?: import("viem").Chain | null;
|
|
1323
|
+
dataSuffix?: `0x${string}`;
|
|
1324
|
+
gas?: bigint;
|
|
1325
|
+
gasPrice?: bigint;
|
|
1326
|
+
maxFeePerGas?: bigint;
|
|
1327
|
+
maxPriorityFeePerGas?: bigint;
|
|
1328
|
+
nonce?: number;
|
|
1329
|
+
value?: bigint;
|
|
1330
|
+
}): Promise<void>;
|
|
1331
|
+
/**
|
|
1332
|
+
* Simulate updateFee
|
|
1333
|
+
* Returns gas estimate and result without sending transaction
|
|
1334
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1335
|
+
*/
|
|
1336
|
+
updateFee(_feeDecimals: bigint, _feePercentage: bigint, options?: {
|
|
1337
|
+
accessList?: import("viem").AccessList;
|
|
1338
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1339
|
+
chain?: import("viem").Chain | null;
|
|
1340
|
+
dataSuffix?: `0x${string}`;
|
|
1341
|
+
gas?: bigint;
|
|
1342
|
+
gasPrice?: bigint;
|
|
1343
|
+
maxFeePerGas?: bigint;
|
|
1344
|
+
maxPriorityFeePerGas?: bigint;
|
|
1345
|
+
nonce?: number;
|
|
1346
|
+
value?: bigint;
|
|
1347
|
+
}): Promise<void>;
|
|
1348
|
+
/**
|
|
1349
|
+
* Simulate updateFeesAndSwapsEnabled
|
|
1350
|
+
* Returns gas estimate and result without sending transaction
|
|
1351
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1352
|
+
*/
|
|
1353
|
+
updateFeesAndSwapsEnabled(absFeeDecimals: bigint, absFeePercentage: bigint, absFeeDivider: bigint, _enabled: boolean, options?: {
|
|
1354
|
+
accessList?: import("viem").AccessList;
|
|
1355
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1356
|
+
chain?: import("viem").Chain | null;
|
|
1357
|
+
dataSuffix?: `0x${string}`;
|
|
1358
|
+
gas?: bigint;
|
|
1359
|
+
gasPrice?: bigint;
|
|
1360
|
+
maxFeePerGas?: bigint;
|
|
1361
|
+
maxPriorityFeePerGas?: bigint;
|
|
1362
|
+
nonce?: number;
|
|
1363
|
+
value?: bigint;
|
|
1364
|
+
}): Promise<void>;
|
|
1365
|
+
/**
|
|
1366
|
+
* Simulate updateMinTokensBeforeAddToLP
|
|
1367
|
+
* Returns gas estimate and result without sending transaction
|
|
1368
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1369
|
+
*/
|
|
1370
|
+
updateMinTokensBeforeAddToLP(_minTokensBeforeAddToLP: bigint, options?: {
|
|
1371
|
+
accessList?: import("viem").AccessList;
|
|
1372
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1373
|
+
chain?: import("viem").Chain | null;
|
|
1374
|
+
dataSuffix?: `0x${string}`;
|
|
1375
|
+
gas?: bigint;
|
|
1376
|
+
gasPrice?: bigint;
|
|
1377
|
+
maxFeePerGas?: bigint;
|
|
1378
|
+
maxPriorityFeePerGas?: bigint;
|
|
1379
|
+
nonce?: number;
|
|
1380
|
+
value?: bigint;
|
|
1381
|
+
}): Promise<void>;
|
|
1382
|
+
/**
|
|
1383
|
+
* Simulate updateSwapAndAbsorbEnabled
|
|
1384
|
+
* Returns gas estimate and result without sending transaction
|
|
1385
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1386
|
+
*/
|
|
1387
|
+
updateSwapAndAbsorbEnabled(_enabled: boolean, options?: {
|
|
1388
|
+
accessList?: import("viem").AccessList;
|
|
1389
|
+
authorizationList?: import("viem").AuthorizationList;
|
|
1390
|
+
chain?: import("viem").Chain | null;
|
|
1391
|
+
dataSuffix?: `0x${string}`;
|
|
1392
|
+
gas?: bigint;
|
|
1393
|
+
gasPrice?: bigint;
|
|
1394
|
+
maxFeePerGas?: bigint;
|
|
1395
|
+
maxPriorityFeePerGas?: bigint;
|
|
1396
|
+
nonce?: number;
|
|
1397
|
+
value?: bigint;
|
|
1398
|
+
}): Promise<void>;
|
|
1053
1399
|
};
|
|
1054
1400
|
/**
|
|
1055
1401
|
* Watch contract events
|
|
@@ -1079,40 +1425,57 @@ export declare class SwissBorgToken_json {
|
|
|
1079
1425
|
spender: `0x${string}`;
|
|
1080
1426
|
}) => () => void;
|
|
1081
1427
|
/**
|
|
1082
|
-
* Watch
|
|
1428
|
+
* Watch FeeUpdated events
|
|
1083
1429
|
* @param callback Function to call when event is emitted
|
|
1084
1430
|
* @param filter Optional filter for indexed parameters
|
|
1085
1431
|
* @returns Unwatch function to stop listening
|
|
1086
1432
|
*/
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1433
|
+
FeeUpdated: (callback: (event: {
|
|
1434
|
+
feeDecimals: bigint;
|
|
1435
|
+
feePercentage: bigint;
|
|
1436
|
+
}) => void) => () => void;
|
|
1437
|
+
/**
|
|
1438
|
+
* Watch MinTokensBeforeAddToLPUpdated events
|
|
1439
|
+
* @param callback Function to call when event is emitted
|
|
1440
|
+
* @param filter Optional filter for indexed parameters
|
|
1441
|
+
* @returns Unwatch function to stop listening
|
|
1442
|
+
*/
|
|
1443
|
+
MinTokensBeforeAddToLPUpdated: (callback: (event: {
|
|
1444
|
+
minTokensBeforeAddToLP: bigint;
|
|
1445
|
+
}) => void) => () => void;
|
|
1096
1446
|
/**
|
|
1097
|
-
* Watch
|
|
1447
|
+
* Watch OwnershipTransferred events
|
|
1098
1448
|
* @param callback Function to call when event is emitted
|
|
1099
1449
|
* @param filter Optional filter for indexed parameters
|
|
1100
1450
|
* @returns Unwatch function to stop listening
|
|
1101
1451
|
*/
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
newBalance: bigint;
|
|
1452
|
+
OwnershipTransferred: (callback: (event: {
|
|
1453
|
+
previousOwner: `0x${string}`;
|
|
1454
|
+
newOwner: `0x${string}`;
|
|
1106
1455
|
}) => void, filter?: {
|
|
1107
|
-
|
|
1456
|
+
previousOwner: `0x${string}`;
|
|
1457
|
+
newOwner: `0x${string}`;
|
|
1108
1458
|
}) => () => void;
|
|
1109
1459
|
/**
|
|
1110
|
-
* Watch
|
|
1460
|
+
* Watch SwapAndAbsorb events
|
|
1461
|
+
* @param callback Function to call when event is emitted
|
|
1462
|
+
* @param filter Optional filter for indexed parameters
|
|
1463
|
+
* @returns Unwatch function to stop listening
|
|
1464
|
+
*/
|
|
1465
|
+
SwapAndAbsorb: (callback: (event: {
|
|
1466
|
+
tokensSwapped: bigint;
|
|
1467
|
+
ethReceived: bigint;
|
|
1468
|
+
tokensIntoLiquidity: bigint;
|
|
1469
|
+
}) => void) => () => void;
|
|
1470
|
+
/**
|
|
1471
|
+
* Watch SwapAndAbsorbEnabledUpdated events
|
|
1111
1472
|
* @param callback Function to call when event is emitted
|
|
1112
1473
|
* @param filter Optional filter for indexed parameters
|
|
1113
1474
|
* @returns Unwatch function to stop listening
|
|
1114
1475
|
*/
|
|
1115
|
-
|
|
1476
|
+
SwapAndAbsorbEnabledUpdated: (callback: (event: {
|
|
1477
|
+
enabled: boolean;
|
|
1478
|
+
}) => void) => () => void;
|
|
1116
1479
|
/**
|
|
1117
1480
|
* Watch Transfer events
|
|
1118
1481
|
* @param callback Function to call when event is emitted
|