@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,40 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.BORG_json = exports.BORG_jsonAbi = void 0;
|
|
4
4
|
const viem_1 = require("viem");
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* BORG_json ABI
|
|
7
7
|
*
|
|
8
8
|
* This ABI is typed using viem's type system for full type safety.
|
|
9
9
|
*/
|
|
10
|
-
exports.
|
|
10
|
+
exports.BORG_jsonAbi = [
|
|
11
11
|
{
|
|
12
12
|
"inputs": [
|
|
13
|
+
{
|
|
14
|
+
"internalType": "uint8",
|
|
15
|
+
"name": "_feeDecimals",
|
|
16
|
+
"type": "uint8"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"internalType": "uint32",
|
|
20
|
+
"name": "_feePercentage",
|
|
21
|
+
"type": "uint32"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"internalType": "uint256",
|
|
25
|
+
"name": "_minTokensBeforeAddToLP",
|
|
26
|
+
"type": "uint256"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"internalType": "bool",
|
|
30
|
+
"name": "_swapAndAbsorbEnabled",
|
|
31
|
+
"type": "bool"
|
|
32
|
+
},
|
|
13
33
|
{
|
|
14
34
|
"internalType": "address",
|
|
15
|
-
"name": "
|
|
35
|
+
"name": "_presale",
|
|
16
36
|
"type": "address"
|
|
17
37
|
}
|
|
18
38
|
],
|
|
19
39
|
"stateMutability": "nonpayable",
|
|
20
40
|
"type": "constructor"
|
|
21
41
|
},
|
|
22
|
-
{
|
|
23
|
-
"inputs": [],
|
|
24
|
-
"name": "InvalidShortString",
|
|
25
|
-
"type": "error"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"inputs": [
|
|
29
|
-
{
|
|
30
|
-
"internalType": "string",
|
|
31
|
-
"name": "str",
|
|
32
|
-
"type": "string"
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"name": "StringTooLong",
|
|
36
|
-
"type": "error"
|
|
37
|
-
},
|
|
38
42
|
{
|
|
39
43
|
"anonymous": false,
|
|
40
44
|
"inputs": [
|
|
@@ -64,56 +68,89 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
64
68
|
"anonymous": false,
|
|
65
69
|
"inputs": [
|
|
66
70
|
{
|
|
67
|
-
"indexed":
|
|
68
|
-
"internalType": "
|
|
69
|
-
"name": "
|
|
70
|
-
"type": "
|
|
71
|
+
"indexed": false,
|
|
72
|
+
"internalType": "uint8",
|
|
73
|
+
"name": "feeDecimals",
|
|
74
|
+
"type": "uint8"
|
|
71
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"indexed": false,
|
|
78
|
+
"internalType": "uint32",
|
|
79
|
+
"name": "feePercentage",
|
|
80
|
+
"type": "uint32"
|
|
81
|
+
}
|
|
82
|
+
],
|
|
83
|
+
"name": "FeeUpdated",
|
|
84
|
+
"type": "event"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"anonymous": false,
|
|
88
|
+
"inputs": [
|
|
89
|
+
{
|
|
90
|
+
"indexed": false,
|
|
91
|
+
"internalType": "uint256",
|
|
92
|
+
"name": "minTokensBeforeAddToLP",
|
|
93
|
+
"type": "uint256"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"name": "MinTokensBeforeAddToLPUpdated",
|
|
97
|
+
"type": "event"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"anonymous": false,
|
|
101
|
+
"inputs": [
|
|
72
102
|
{
|
|
73
103
|
"indexed": true,
|
|
74
104
|
"internalType": "address",
|
|
75
|
-
"name": "
|
|
105
|
+
"name": "previousOwner",
|
|
76
106
|
"type": "address"
|
|
77
107
|
},
|
|
78
108
|
{
|
|
79
109
|
"indexed": true,
|
|
80
110
|
"internalType": "address",
|
|
81
|
-
"name": "
|
|
111
|
+
"name": "newOwner",
|
|
82
112
|
"type": "address"
|
|
83
113
|
}
|
|
84
114
|
],
|
|
85
|
-
"name": "
|
|
115
|
+
"name": "OwnershipTransferred",
|
|
86
116
|
"type": "event"
|
|
87
117
|
},
|
|
88
118
|
{
|
|
89
119
|
"anonymous": false,
|
|
90
120
|
"inputs": [
|
|
91
121
|
{
|
|
92
|
-
"indexed":
|
|
93
|
-
"internalType": "
|
|
94
|
-
"name": "
|
|
95
|
-
"type": "
|
|
122
|
+
"indexed": false,
|
|
123
|
+
"internalType": "uint256",
|
|
124
|
+
"name": "tokensSwapped",
|
|
125
|
+
"type": "uint256"
|
|
96
126
|
},
|
|
97
127
|
{
|
|
98
128
|
"indexed": false,
|
|
99
129
|
"internalType": "uint256",
|
|
100
|
-
"name": "
|
|
130
|
+
"name": "ethReceived",
|
|
101
131
|
"type": "uint256"
|
|
102
132
|
},
|
|
103
133
|
{
|
|
104
134
|
"indexed": false,
|
|
105
135
|
"internalType": "uint256",
|
|
106
|
-
"name": "
|
|
136
|
+
"name": "tokensIntoLiquidity",
|
|
107
137
|
"type": "uint256"
|
|
108
138
|
}
|
|
109
139
|
],
|
|
110
|
-
"name": "
|
|
140
|
+
"name": "SwapAndAbsorb",
|
|
111
141
|
"type": "event"
|
|
112
142
|
},
|
|
113
143
|
{
|
|
114
144
|
"anonymous": false,
|
|
115
|
-
"inputs": [
|
|
116
|
-
|
|
145
|
+
"inputs": [
|
|
146
|
+
{
|
|
147
|
+
"indexed": false,
|
|
148
|
+
"internalType": "bool",
|
|
149
|
+
"name": "enabled",
|
|
150
|
+
"type": "bool"
|
|
151
|
+
}
|
|
152
|
+
],
|
|
153
|
+
"name": "SwapAndAbsorbEnabledUpdated",
|
|
117
154
|
"type": "event"
|
|
118
155
|
},
|
|
119
156
|
{
|
|
@@ -143,12 +180,12 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
143
180
|
},
|
|
144
181
|
{
|
|
145
182
|
"inputs": [],
|
|
146
|
-
"name": "
|
|
183
|
+
"name": "_balanceOfLpTokens",
|
|
147
184
|
"outputs": [
|
|
148
185
|
{
|
|
149
|
-
"internalType": "
|
|
186
|
+
"internalType": "uint256",
|
|
150
187
|
"name": "",
|
|
151
|
-
"type": "
|
|
188
|
+
"type": "uint256"
|
|
152
189
|
}
|
|
153
190
|
],
|
|
154
191
|
"stateMutability": "view",
|
|
@@ -156,12 +193,75 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
156
193
|
},
|
|
157
194
|
{
|
|
158
195
|
"inputs": [],
|
|
159
|
-
"name": "
|
|
196
|
+
"name": "_burnPool",
|
|
160
197
|
"outputs": [
|
|
161
198
|
{
|
|
162
|
-
"internalType": "
|
|
199
|
+
"internalType": "address",
|
|
163
200
|
"name": "",
|
|
164
|
-
"type": "
|
|
201
|
+
"type": "address"
|
|
202
|
+
}
|
|
203
|
+
],
|
|
204
|
+
"stateMutability": "view",
|
|
205
|
+
"type": "function"
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
"inputs": [],
|
|
209
|
+
"name": "_totalBurnedLpTokens",
|
|
210
|
+
"outputs": [
|
|
211
|
+
{
|
|
212
|
+
"internalType": "uint256",
|
|
213
|
+
"name": "",
|
|
214
|
+
"type": "uint256"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"stateMutability": "view",
|
|
218
|
+
"type": "function"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"inputs": [],
|
|
222
|
+
"name": "_totalBurnedTokens",
|
|
223
|
+
"outputs": [
|
|
224
|
+
{
|
|
225
|
+
"internalType": "uint256",
|
|
226
|
+
"name": "",
|
|
227
|
+
"type": "uint256"
|
|
228
|
+
}
|
|
229
|
+
],
|
|
230
|
+
"stateMutability": "view",
|
|
231
|
+
"type": "function"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
"inputs": [
|
|
235
|
+
{
|
|
236
|
+
"internalType": "uint256",
|
|
237
|
+
"name": "tAmount",
|
|
238
|
+
"type": "uint256"
|
|
239
|
+
}
|
|
240
|
+
],
|
|
241
|
+
"name": "allocate",
|
|
242
|
+
"outputs": [],
|
|
243
|
+
"stateMutability": "nonpayable",
|
|
244
|
+
"type": "function"
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"inputs": [
|
|
248
|
+
{
|
|
249
|
+
"internalType": "uint256",
|
|
250
|
+
"name": "tAmount",
|
|
251
|
+
"type": "uint256"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"internalType": "bool",
|
|
255
|
+
"name": "deductTransferFee",
|
|
256
|
+
"type": "bool"
|
|
257
|
+
}
|
|
258
|
+
],
|
|
259
|
+
"name": "allocationFromToken",
|
|
260
|
+
"outputs": [
|
|
261
|
+
{
|
|
262
|
+
"internalType": "uint256",
|
|
263
|
+
"name": "",
|
|
264
|
+
"type": "uint256"
|
|
165
265
|
}
|
|
166
266
|
],
|
|
167
267
|
"stateMutability": "view",
|
|
@@ -237,30 +337,22 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
237
337
|
{
|
|
238
338
|
"inputs": [
|
|
239
339
|
{
|
|
240
|
-
"internalType": "
|
|
241
|
-
"name": "
|
|
242
|
-
"type": "
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"name": "burn",
|
|
246
|
-
"outputs": [],
|
|
247
|
-
"stateMutability": "nonpayable",
|
|
248
|
-
"type": "function"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"inputs": [
|
|
340
|
+
"internalType": "address",
|
|
341
|
+
"name": "_token",
|
|
342
|
+
"type": "address"
|
|
343
|
+
},
|
|
252
344
|
{
|
|
253
345
|
"internalType": "address",
|
|
254
|
-
"name": "
|
|
346
|
+
"name": "_to",
|
|
255
347
|
"type": "address"
|
|
256
348
|
},
|
|
257
349
|
{
|
|
258
350
|
"internalType": "uint256",
|
|
259
|
-
"name": "
|
|
351
|
+
"name": "_amount",
|
|
260
352
|
"type": "uint256"
|
|
261
353
|
}
|
|
262
354
|
],
|
|
263
|
-
"name": "
|
|
355
|
+
"name": "burnLiq",
|
|
264
356
|
"outputs": [],
|
|
265
357
|
"stateMutability": "nonpayable",
|
|
266
358
|
"type": "function"
|
|
@@ -268,50 +360,43 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
268
360
|
{
|
|
269
361
|
"inputs": [
|
|
270
362
|
{
|
|
271
|
-
"internalType": "
|
|
272
|
-
"name": "
|
|
273
|
-
"type": "
|
|
363
|
+
"internalType": "uint256",
|
|
364
|
+
"name": "_amount",
|
|
365
|
+
"type": "uint256"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
"internalType": "uint8",
|
|
369
|
+
"name": "_feeDecimals",
|
|
370
|
+
"type": "uint8"
|
|
274
371
|
},
|
|
275
372
|
{
|
|
276
373
|
"internalType": "uint32",
|
|
277
|
-
"name": "
|
|
374
|
+
"name": "_feePercentage",
|
|
278
375
|
"type": "uint32"
|
|
279
376
|
}
|
|
280
377
|
],
|
|
281
|
-
"name": "
|
|
378
|
+
"name": "calcTokenFee",
|
|
282
379
|
"outputs": [
|
|
283
380
|
{
|
|
284
|
-
"
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
"name": "fromBlock",
|
|
288
|
-
"type": "uint32"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"internalType": "uint224",
|
|
292
|
-
"name": "votes",
|
|
293
|
-
"type": "uint224"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"internalType": "struct ERC20Votes.Checkpoint",
|
|
297
|
-
"name": "",
|
|
298
|
-
"type": "tuple"
|
|
381
|
+
"internalType": "uint256",
|
|
382
|
+
"name": "locked",
|
|
383
|
+
"type": "uint256"
|
|
299
384
|
}
|
|
300
385
|
],
|
|
301
|
-
"stateMutability": "
|
|
386
|
+
"stateMutability": "pure",
|
|
302
387
|
"type": "function"
|
|
303
388
|
},
|
|
304
389
|
{
|
|
305
|
-
"inputs": [
|
|
306
|
-
"name": "clock",
|
|
307
|
-
"outputs": [
|
|
390
|
+
"inputs": [
|
|
308
391
|
{
|
|
309
|
-
"internalType": "
|
|
310
|
-
"name": "",
|
|
311
|
-
"type": "
|
|
392
|
+
"internalType": "uint256",
|
|
393
|
+
"name": "n",
|
|
394
|
+
"type": "uint256"
|
|
312
395
|
}
|
|
313
396
|
],
|
|
314
|
-
"
|
|
397
|
+
"name": "changeFeeDivider",
|
|
398
|
+
"outputs": [],
|
|
399
|
+
"stateMutability": "nonpayable",
|
|
315
400
|
"type": "function"
|
|
316
401
|
},
|
|
317
402
|
{
|
|
@@ -355,67 +440,36 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
355
440
|
"inputs": [
|
|
356
441
|
{
|
|
357
442
|
"internalType": "address",
|
|
358
|
-
"name": "
|
|
443
|
+
"name": "account",
|
|
359
444
|
"type": "address"
|
|
360
445
|
}
|
|
361
446
|
],
|
|
362
|
-
"name": "
|
|
447
|
+
"name": "excludeAccount",
|
|
363
448
|
"outputs": [],
|
|
364
449
|
"stateMutability": "nonpayable",
|
|
365
450
|
"type": "function"
|
|
366
451
|
},
|
|
367
452
|
{
|
|
368
|
-
"inputs": [
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
"name": "delegatee",
|
|
372
|
-
"type": "address"
|
|
373
|
-
},
|
|
374
|
-
{
|
|
375
|
-
"internalType": "uint256",
|
|
376
|
-
"name": "nonce",
|
|
377
|
-
"type": "uint256"
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
"internalType": "uint256",
|
|
381
|
-
"name": "expiry",
|
|
382
|
-
"type": "uint256"
|
|
383
|
-
},
|
|
453
|
+
"inputs": [],
|
|
454
|
+
"name": "feeDecimals",
|
|
455
|
+
"outputs": [
|
|
384
456
|
{
|
|
385
457
|
"internalType": "uint8",
|
|
386
|
-
"name": "
|
|
458
|
+
"name": "",
|
|
387
459
|
"type": "uint8"
|
|
388
|
-
},
|
|
389
|
-
{
|
|
390
|
-
"internalType": "bytes32",
|
|
391
|
-
"name": "r",
|
|
392
|
-
"type": "bytes32"
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
"internalType": "bytes32",
|
|
396
|
-
"name": "s",
|
|
397
|
-
"type": "bytes32"
|
|
398
460
|
}
|
|
399
461
|
],
|
|
400
|
-
"
|
|
401
|
-
"outputs": [],
|
|
402
|
-
"stateMutability": "nonpayable",
|
|
462
|
+
"stateMutability": "view",
|
|
403
463
|
"type": "function"
|
|
404
464
|
},
|
|
405
465
|
{
|
|
406
|
-
"inputs": [
|
|
407
|
-
|
|
408
|
-
"internalType": "address",
|
|
409
|
-
"name": "account",
|
|
410
|
-
"type": "address"
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
"name": "delegates",
|
|
466
|
+
"inputs": [],
|
|
467
|
+
"name": "feePercentage",
|
|
414
468
|
"outputs": [
|
|
415
469
|
{
|
|
416
|
-
"internalType": "
|
|
470
|
+
"internalType": "uint32",
|
|
417
471
|
"name": "",
|
|
418
|
-
"type": "
|
|
472
|
+
"type": "uint32"
|
|
419
473
|
}
|
|
420
474
|
],
|
|
421
475
|
"stateMutability": "view",
|
|
@@ -423,80 +477,70 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
423
477
|
},
|
|
424
478
|
{
|
|
425
479
|
"inputs": [],
|
|
426
|
-
"name": "
|
|
480
|
+
"name": "inSwapAndAbsorb",
|
|
427
481
|
"outputs": [
|
|
428
482
|
{
|
|
429
|
-
"internalType": "
|
|
430
|
-
"name": "
|
|
431
|
-
"type": "
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
"internalType": "string",
|
|
440
|
-
"name": "version",
|
|
441
|
-
"type": "string"
|
|
442
|
-
},
|
|
443
|
-
{
|
|
444
|
-
"internalType": "uint256",
|
|
445
|
-
"name": "chainId",
|
|
446
|
-
"type": "uint256"
|
|
447
|
-
},
|
|
483
|
+
"internalType": "bool",
|
|
484
|
+
"name": "",
|
|
485
|
+
"type": "bool"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
"stateMutability": "view",
|
|
489
|
+
"type": "function"
|
|
490
|
+
},
|
|
491
|
+
{
|
|
492
|
+
"inputs": [
|
|
448
493
|
{
|
|
449
494
|
"internalType": "address",
|
|
450
|
-
"name": "
|
|
495
|
+
"name": "account",
|
|
451
496
|
"type": "address"
|
|
452
|
-
},
|
|
453
|
-
{
|
|
454
|
-
"internalType": "bytes32",
|
|
455
|
-
"name": "salt",
|
|
456
|
-
"type": "bytes32"
|
|
457
|
-
},
|
|
458
|
-
{
|
|
459
|
-
"internalType": "uint256[]",
|
|
460
|
-
"name": "extensions",
|
|
461
|
-
"type": "uint256[]"
|
|
462
497
|
}
|
|
463
498
|
],
|
|
464
|
-
"
|
|
499
|
+
"name": "includeAccount",
|
|
500
|
+
"outputs": [],
|
|
501
|
+
"stateMutability": "nonpayable",
|
|
465
502
|
"type": "function"
|
|
466
503
|
},
|
|
467
504
|
{
|
|
468
505
|
"inputs": [
|
|
506
|
+
{
|
|
507
|
+
"internalType": "address",
|
|
508
|
+
"name": "spender",
|
|
509
|
+
"type": "address"
|
|
510
|
+
},
|
|
469
511
|
{
|
|
470
512
|
"internalType": "uint256",
|
|
471
|
-
"name": "
|
|
513
|
+
"name": "addedValue",
|
|
472
514
|
"type": "uint256"
|
|
473
515
|
}
|
|
474
516
|
],
|
|
475
|
-
"name": "
|
|
517
|
+
"name": "increaseAllowance",
|
|
476
518
|
"outputs": [
|
|
477
519
|
{
|
|
478
|
-
"internalType": "
|
|
520
|
+
"internalType": "bool",
|
|
479
521
|
"name": "",
|
|
480
|
-
"type": "
|
|
522
|
+
"type": "bool"
|
|
481
523
|
}
|
|
482
524
|
],
|
|
483
|
-
"stateMutability": "
|
|
525
|
+
"stateMutability": "nonpayable",
|
|
484
526
|
"type": "function"
|
|
485
527
|
},
|
|
486
528
|
{
|
|
487
|
-
"inputs": [
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
"name": "account",
|
|
491
|
-
"type": "address"
|
|
492
|
-
},
|
|
529
|
+
"inputs": [],
|
|
530
|
+
"name": "minTokensBeforeAddToLP",
|
|
531
|
+
"outputs": [
|
|
493
532
|
{
|
|
494
533
|
"internalType": "uint256",
|
|
495
|
-
"name": "
|
|
534
|
+
"name": "",
|
|
496
535
|
"type": "uint256"
|
|
497
536
|
}
|
|
498
537
|
],
|
|
499
|
-
"
|
|
538
|
+
"stateMutability": "view",
|
|
539
|
+
"type": "function"
|
|
540
|
+
},
|
|
541
|
+
{
|
|
542
|
+
"inputs": [],
|
|
543
|
+
"name": "minimumSupply",
|
|
500
544
|
"outputs": [
|
|
501
545
|
{
|
|
502
546
|
"internalType": "uint256",
|
|
@@ -508,38 +552,54 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
508
552
|
"type": "function"
|
|
509
553
|
},
|
|
510
554
|
{
|
|
511
|
-
"inputs": [
|
|
555
|
+
"inputs": [],
|
|
556
|
+
"name": "name",
|
|
557
|
+
"outputs": [
|
|
512
558
|
{
|
|
513
|
-
"internalType": "
|
|
514
|
-
"name": "
|
|
515
|
-
"type": "
|
|
559
|
+
"internalType": "string",
|
|
560
|
+
"name": "",
|
|
561
|
+
"type": "string"
|
|
516
562
|
}
|
|
517
563
|
],
|
|
518
|
-
"
|
|
564
|
+
"stateMutability": "view",
|
|
565
|
+
"type": "function"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"inputs": [],
|
|
569
|
+
"name": "owner",
|
|
519
570
|
"outputs": [
|
|
520
571
|
{
|
|
521
|
-
"internalType": "
|
|
572
|
+
"internalType": "address",
|
|
522
573
|
"name": "",
|
|
523
|
-
"type": "
|
|
574
|
+
"type": "address"
|
|
524
575
|
}
|
|
525
576
|
],
|
|
526
577
|
"stateMutability": "view",
|
|
527
578
|
"type": "function"
|
|
528
579
|
},
|
|
529
580
|
{
|
|
530
|
-
"inputs": [
|
|
581
|
+
"inputs": [],
|
|
582
|
+
"name": "presale",
|
|
583
|
+
"outputs": [
|
|
531
584
|
{
|
|
532
585
|
"internalType": "address",
|
|
533
|
-
"name": "
|
|
586
|
+
"name": "",
|
|
534
587
|
"type": "address"
|
|
535
|
-
},
|
|
536
|
-
{
|
|
537
|
-
"internalType": "uint256",
|
|
538
|
-
"name": "addedValue",
|
|
539
|
-
"type": "uint256"
|
|
540
588
|
}
|
|
541
589
|
],
|
|
542
|
-
"
|
|
590
|
+
"stateMutability": "view",
|
|
591
|
+
"type": "function"
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
"inputs": [],
|
|
595
|
+
"name": "renounceOwnership",
|
|
596
|
+
"outputs": [],
|
|
597
|
+
"stateMutability": "nonpayable",
|
|
598
|
+
"type": "function"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"inputs": [],
|
|
602
|
+
"name": "swapAndAbsorbEnabled",
|
|
543
603
|
"outputs": [
|
|
544
604
|
{
|
|
545
605
|
"internalType": "bool",
|
|
@@ -547,12 +607,12 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
547
607
|
"type": "bool"
|
|
548
608
|
}
|
|
549
609
|
],
|
|
550
|
-
"stateMutability": "
|
|
610
|
+
"stateMutability": "view",
|
|
551
611
|
"type": "function"
|
|
552
612
|
},
|
|
553
613
|
{
|
|
554
614
|
"inputs": [],
|
|
555
|
-
"name": "
|
|
615
|
+
"name": "symbol",
|
|
556
616
|
"outputs": [
|
|
557
617
|
{
|
|
558
618
|
"internalType": "string",
|
|
@@ -566,12 +626,25 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
566
626
|
{
|
|
567
627
|
"inputs": [
|
|
568
628
|
{
|
|
569
|
-
"internalType": "
|
|
570
|
-
"name": "
|
|
571
|
-
"type": "
|
|
629
|
+
"internalType": "uint256",
|
|
630
|
+
"name": "aAmount",
|
|
631
|
+
"type": "uint256"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"name": "tokenFromAllocation",
|
|
635
|
+
"outputs": [
|
|
636
|
+
{
|
|
637
|
+
"internalType": "uint256",
|
|
638
|
+
"name": "",
|
|
639
|
+
"type": "uint256"
|
|
572
640
|
}
|
|
573
641
|
],
|
|
574
|
-
"
|
|
642
|
+
"stateMutability": "view",
|
|
643
|
+
"type": "function"
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"inputs": [],
|
|
647
|
+
"name": "totalSupply",
|
|
575
648
|
"outputs": [
|
|
576
649
|
{
|
|
577
650
|
"internalType": "uint256",
|
|
@@ -586,72 +659,83 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
586
659
|
"inputs": [
|
|
587
660
|
{
|
|
588
661
|
"internalType": "address",
|
|
589
|
-
"name": "
|
|
662
|
+
"name": "recipient",
|
|
590
663
|
"type": "address"
|
|
664
|
+
},
|
|
665
|
+
{
|
|
666
|
+
"internalType": "uint256",
|
|
667
|
+
"name": "amount",
|
|
668
|
+
"type": "uint256"
|
|
591
669
|
}
|
|
592
670
|
],
|
|
593
|
-
"name": "
|
|
671
|
+
"name": "transfer",
|
|
594
672
|
"outputs": [
|
|
595
673
|
{
|
|
596
|
-
"internalType": "
|
|
674
|
+
"internalType": "bool",
|
|
597
675
|
"name": "",
|
|
598
|
-
"type": "
|
|
676
|
+
"type": "bool"
|
|
599
677
|
}
|
|
600
678
|
],
|
|
601
|
-
"stateMutability": "
|
|
679
|
+
"stateMutability": "nonpayable",
|
|
602
680
|
"type": "function"
|
|
603
681
|
},
|
|
604
682
|
{
|
|
605
683
|
"inputs": [
|
|
606
684
|
{
|
|
607
685
|
"internalType": "address",
|
|
608
|
-
"name": "
|
|
686
|
+
"name": "sender",
|
|
609
687
|
"type": "address"
|
|
610
688
|
},
|
|
611
689
|
{
|
|
612
690
|
"internalType": "address",
|
|
613
|
-
"name": "
|
|
691
|
+
"name": "recipient",
|
|
614
692
|
"type": "address"
|
|
615
693
|
},
|
|
616
694
|
{
|
|
617
695
|
"internalType": "uint256",
|
|
618
|
-
"name": "
|
|
619
|
-
"type": "uint256"
|
|
620
|
-
},
|
|
621
|
-
{
|
|
622
|
-
"internalType": "uint256",
|
|
623
|
-
"name": "deadline",
|
|
696
|
+
"name": "amount",
|
|
624
697
|
"type": "uint256"
|
|
625
|
-
}
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
"type": "uint8"
|
|
630
|
-
},
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"name": "transferFrom",
|
|
701
|
+
"outputs": [
|
|
631
702
|
{
|
|
632
|
-
"internalType": "
|
|
633
|
-
"name": "
|
|
634
|
-
"type": "
|
|
635
|
-
}
|
|
703
|
+
"internalType": "bool",
|
|
704
|
+
"name": "",
|
|
705
|
+
"type": "bool"
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"stateMutability": "nonpayable",
|
|
709
|
+
"type": "function"
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
"inputs": [
|
|
636
713
|
{
|
|
637
|
-
"internalType": "
|
|
638
|
-
"name": "
|
|
639
|
-
"type": "
|
|
714
|
+
"internalType": "address",
|
|
715
|
+
"name": "newOwner",
|
|
716
|
+
"type": "address"
|
|
640
717
|
}
|
|
641
718
|
],
|
|
642
|
-
"name": "
|
|
719
|
+
"name": "transferOwnership",
|
|
643
720
|
"outputs": [],
|
|
644
721
|
"stateMutability": "nonpayable",
|
|
645
722
|
"type": "function"
|
|
646
723
|
},
|
|
647
724
|
{
|
|
648
725
|
"inputs": [],
|
|
649
|
-
"name": "
|
|
726
|
+
"name": "unPauseTransferForever",
|
|
727
|
+
"outputs": [],
|
|
728
|
+
"stateMutability": "nonpayable",
|
|
729
|
+
"type": "function"
|
|
730
|
+
},
|
|
731
|
+
{
|
|
732
|
+
"inputs": [],
|
|
733
|
+
"name": "uniswapV2Pair",
|
|
650
734
|
"outputs": [
|
|
651
735
|
{
|
|
652
|
-
"internalType": "
|
|
736
|
+
"internalType": "address",
|
|
653
737
|
"name": "",
|
|
654
|
-
"type": "
|
|
738
|
+
"type": "address"
|
|
655
739
|
}
|
|
656
740
|
],
|
|
657
741
|
"stateMutability": "view",
|
|
@@ -659,12 +743,12 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
659
743
|
},
|
|
660
744
|
{
|
|
661
745
|
"inputs": [],
|
|
662
|
-
"name": "
|
|
746
|
+
"name": "uniswapV2Router",
|
|
663
747
|
"outputs": [
|
|
664
748
|
{
|
|
665
|
-
"internalType": "
|
|
749
|
+
"internalType": "contract IUniswapV2Router02",
|
|
666
750
|
"name": "",
|
|
667
|
-
"type": "
|
|
751
|
+
"type": "address"
|
|
668
752
|
}
|
|
669
753
|
],
|
|
670
754
|
"stateMutability": "view",
|
|
@@ -673,59 +757,82 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
673
757
|
{
|
|
674
758
|
"inputs": [
|
|
675
759
|
{
|
|
676
|
-
"internalType": "
|
|
677
|
-
"name": "
|
|
678
|
-
"type": "
|
|
760
|
+
"internalType": "uint8",
|
|
761
|
+
"name": "_feeDecimals",
|
|
762
|
+
"type": "uint8"
|
|
679
763
|
},
|
|
680
764
|
{
|
|
681
|
-
"internalType": "
|
|
682
|
-
"name": "
|
|
683
|
-
"type": "
|
|
765
|
+
"internalType": "uint32",
|
|
766
|
+
"name": "_feePercentage",
|
|
767
|
+
"type": "uint32"
|
|
684
768
|
}
|
|
685
769
|
],
|
|
686
|
-
"name": "
|
|
687
|
-
"outputs": [
|
|
770
|
+
"name": "updateFee",
|
|
771
|
+
"outputs": [],
|
|
772
|
+
"stateMutability": "nonpayable",
|
|
773
|
+
"type": "function"
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
"inputs": [
|
|
777
|
+
{
|
|
778
|
+
"internalType": "uint8",
|
|
779
|
+
"name": "absFeeDecimals",
|
|
780
|
+
"type": "uint8"
|
|
781
|
+
},
|
|
782
|
+
{
|
|
783
|
+
"internalType": "uint32",
|
|
784
|
+
"name": "absFeePercentage",
|
|
785
|
+
"type": "uint32"
|
|
786
|
+
},
|
|
787
|
+
{
|
|
788
|
+
"internalType": "uint256",
|
|
789
|
+
"name": "absFeeDivider",
|
|
790
|
+
"type": "uint256"
|
|
791
|
+
},
|
|
688
792
|
{
|
|
689
793
|
"internalType": "bool",
|
|
690
|
-
"name": "",
|
|
794
|
+
"name": "_enabled",
|
|
691
795
|
"type": "bool"
|
|
692
796
|
}
|
|
693
797
|
],
|
|
798
|
+
"name": "updateFeesAndSwapsEnabled",
|
|
799
|
+
"outputs": [],
|
|
694
800
|
"stateMutability": "nonpayable",
|
|
695
801
|
"type": "function"
|
|
696
802
|
},
|
|
697
803
|
{
|
|
698
804
|
"inputs": [
|
|
699
|
-
{
|
|
700
|
-
"internalType": "address",
|
|
701
|
-
"name": "from",
|
|
702
|
-
"type": "address"
|
|
703
|
-
},
|
|
704
|
-
{
|
|
705
|
-
"internalType": "address",
|
|
706
|
-
"name": "to",
|
|
707
|
-
"type": "address"
|
|
708
|
-
},
|
|
709
805
|
{
|
|
710
806
|
"internalType": "uint256",
|
|
711
|
-
"name": "
|
|
807
|
+
"name": "_minTokensBeforeAddToLP",
|
|
712
808
|
"type": "uint256"
|
|
713
809
|
}
|
|
714
810
|
],
|
|
715
|
-
"name": "
|
|
716
|
-
"outputs": [
|
|
811
|
+
"name": "updateMinTokensBeforeAddToLP",
|
|
812
|
+
"outputs": [],
|
|
813
|
+
"stateMutability": "nonpayable",
|
|
814
|
+
"type": "function"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
"inputs": [
|
|
717
818
|
{
|
|
718
819
|
"internalType": "bool",
|
|
719
|
-
"name": "",
|
|
820
|
+
"name": "_enabled",
|
|
720
821
|
"type": "bool"
|
|
721
822
|
}
|
|
722
823
|
],
|
|
824
|
+
"name": "updateSwapAndAbsorbEnabled",
|
|
825
|
+
"outputs": [],
|
|
723
826
|
"stateMutability": "nonpayable",
|
|
724
827
|
"type": "function"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"stateMutability": "payable",
|
|
831
|
+
"type": "receive"
|
|
725
832
|
}
|
|
726
833
|
];
|
|
727
834
|
/**
|
|
728
|
-
*
|
|
835
|
+
* BORG_json Contract Class
|
|
729
836
|
*
|
|
730
837
|
* Provides a class-based API similar to TypeChain for interacting with the contract.
|
|
731
838
|
*
|
|
@@ -733,12 +840,12 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
733
840
|
* ```typescript
|
|
734
841
|
* import { createPublicClient, createWalletClient, http } from 'viem';
|
|
735
842
|
* import { mainnet } from 'viem/chains';
|
|
736
|
-
* import {
|
|
843
|
+
* import { BORG_json } from 'BORG_json';
|
|
737
844
|
*
|
|
738
845
|
* const publicClient = createPublicClient({ chain: mainnet, transport: http() });
|
|
739
846
|
* const walletClient = createWalletClient({ chain: mainnet, transport: http() });
|
|
740
847
|
*
|
|
741
|
-
* const contract = new
|
|
848
|
+
* const contract = new BORG_json('0x...', { publicClient, walletClient });
|
|
742
849
|
*
|
|
743
850
|
* // Read functions
|
|
744
851
|
* const result = await contract.balanceOf('0x...');
|
|
@@ -756,13 +863,13 @@ exports.SwissBorgToken_jsonAbi = [
|
|
|
756
863
|
* });
|
|
757
864
|
* ```
|
|
758
865
|
*/
|
|
759
|
-
class
|
|
866
|
+
class BORG_json {
|
|
760
867
|
constructor(address, clients) {
|
|
761
868
|
this.contractAddress = address;
|
|
762
869
|
this.publicClient = clients.publicClient;
|
|
763
870
|
this.contract = (0, viem_1.getContract)({
|
|
764
871
|
address,
|
|
765
|
-
abi: exports.
|
|
872
|
+
abi: exports.BORG_jsonAbi,
|
|
766
873
|
client: {
|
|
767
874
|
public: clients.publicClient,
|
|
768
875
|
wallet: clients.walletClient,
|
|
@@ -782,18 +889,39 @@ class SwissBorgToken_json {
|
|
|
782
889
|
return this.contract;
|
|
783
890
|
}
|
|
784
891
|
/**
|
|
785
|
-
*
|
|
892
|
+
* _balanceOfLpTokens
|
|
893
|
+
* view
|
|
894
|
+
*/
|
|
895
|
+
async _balanceOfLpTokens() {
|
|
896
|
+
return this.contract.read._balanceOfLpTokens();
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* _burnPool
|
|
900
|
+
* view
|
|
901
|
+
*/
|
|
902
|
+
async _burnPool() {
|
|
903
|
+
return this.contract.read._burnPool();
|
|
904
|
+
}
|
|
905
|
+
/**
|
|
906
|
+
* _totalBurnedLpTokens
|
|
907
|
+
* view
|
|
908
|
+
*/
|
|
909
|
+
async _totalBurnedLpTokens() {
|
|
910
|
+
return this.contract.read._totalBurnedLpTokens();
|
|
911
|
+
}
|
|
912
|
+
/**
|
|
913
|
+
* _totalBurnedTokens
|
|
786
914
|
* view
|
|
787
915
|
*/
|
|
788
|
-
async
|
|
789
|
-
return this.contract.read.
|
|
916
|
+
async _totalBurnedTokens() {
|
|
917
|
+
return this.contract.read._totalBurnedTokens();
|
|
790
918
|
}
|
|
791
919
|
/**
|
|
792
|
-
*
|
|
920
|
+
* allocationFromToken
|
|
793
921
|
* view
|
|
794
922
|
*/
|
|
795
|
-
async
|
|
796
|
-
return this.contract.read.
|
|
923
|
+
async allocationFromToken(tAmount, deductTransferFee) {
|
|
924
|
+
return this.contract.read.allocationFromToken([tAmount, deductTransferFee]);
|
|
797
925
|
}
|
|
798
926
|
/**
|
|
799
927
|
* allowance
|
|
@@ -810,18 +938,11 @@ class SwissBorgToken_json {
|
|
|
810
938
|
return this.contract.read.balanceOf([account]);
|
|
811
939
|
}
|
|
812
940
|
/**
|
|
813
|
-
*
|
|
814
|
-
*
|
|
815
|
-
*/
|
|
816
|
-
async checkpoints(account, pos) {
|
|
817
|
-
return this.contract.read.checkpoints([account, pos]);
|
|
818
|
-
}
|
|
819
|
-
/**
|
|
820
|
-
* clock
|
|
821
|
-
* view
|
|
941
|
+
* calcTokenFee
|
|
942
|
+
* pure
|
|
822
943
|
*/
|
|
823
|
-
async
|
|
824
|
-
return this.contract.read.
|
|
944
|
+
async calcTokenFee(_amount, _feeDecimals, _feePercentage) {
|
|
945
|
+
return this.contract.read.calcTokenFee([_amount, _feeDecimals, _feePercentage]);
|
|
825
946
|
}
|
|
826
947
|
/**
|
|
827
948
|
* decimals
|
|
@@ -831,39 +952,39 @@ class SwissBorgToken_json {
|
|
|
831
952
|
return this.contract.read.decimals();
|
|
832
953
|
}
|
|
833
954
|
/**
|
|
834
|
-
*
|
|
955
|
+
* feeDecimals
|
|
835
956
|
* view
|
|
836
957
|
*/
|
|
837
|
-
async
|
|
838
|
-
return this.contract.read.
|
|
958
|
+
async feeDecimals() {
|
|
959
|
+
return this.contract.read.feeDecimals();
|
|
839
960
|
}
|
|
840
961
|
/**
|
|
841
|
-
*
|
|
962
|
+
* feePercentage
|
|
842
963
|
* view
|
|
843
964
|
*/
|
|
844
|
-
async
|
|
845
|
-
return this.contract.read.
|
|
965
|
+
async feePercentage() {
|
|
966
|
+
return this.contract.read.feePercentage();
|
|
846
967
|
}
|
|
847
968
|
/**
|
|
848
|
-
*
|
|
969
|
+
* inSwapAndAbsorb
|
|
849
970
|
* view
|
|
850
971
|
*/
|
|
851
|
-
async
|
|
852
|
-
return this.contract.read.
|
|
972
|
+
async inSwapAndAbsorb() {
|
|
973
|
+
return this.contract.read.inSwapAndAbsorb();
|
|
853
974
|
}
|
|
854
975
|
/**
|
|
855
|
-
*
|
|
976
|
+
* minTokensBeforeAddToLP
|
|
856
977
|
* view
|
|
857
978
|
*/
|
|
858
|
-
async
|
|
859
|
-
return this.contract.read.
|
|
979
|
+
async minTokensBeforeAddToLP() {
|
|
980
|
+
return this.contract.read.minTokensBeforeAddToLP();
|
|
860
981
|
}
|
|
861
982
|
/**
|
|
862
|
-
*
|
|
983
|
+
* minimumSupply
|
|
863
984
|
* view
|
|
864
985
|
*/
|
|
865
|
-
async
|
|
866
|
-
return this.contract.read.
|
|
986
|
+
async minimumSupply() {
|
|
987
|
+
return this.contract.read.minimumSupply();
|
|
867
988
|
}
|
|
868
989
|
/**
|
|
869
990
|
* name
|
|
@@ -873,18 +994,25 @@ class SwissBorgToken_json {
|
|
|
873
994
|
return this.contract.read.name();
|
|
874
995
|
}
|
|
875
996
|
/**
|
|
876
|
-
*
|
|
997
|
+
* owner
|
|
877
998
|
* view
|
|
878
999
|
*/
|
|
879
|
-
async
|
|
880
|
-
return this.contract.read.
|
|
1000
|
+
async owner() {
|
|
1001
|
+
return this.contract.read.owner();
|
|
881
1002
|
}
|
|
882
1003
|
/**
|
|
883
|
-
*
|
|
1004
|
+
* presale
|
|
884
1005
|
* view
|
|
885
1006
|
*/
|
|
886
|
-
async
|
|
887
|
-
return this.contract.read.
|
|
1007
|
+
async presale() {
|
|
1008
|
+
return this.contract.read.presale();
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* swapAndAbsorbEnabled
|
|
1012
|
+
* view
|
|
1013
|
+
*/
|
|
1014
|
+
async swapAndAbsorbEnabled() {
|
|
1015
|
+
return this.contract.read.swapAndAbsorbEnabled();
|
|
888
1016
|
}
|
|
889
1017
|
/**
|
|
890
1018
|
* symbol
|
|
@@ -893,6 +1021,13 @@ class SwissBorgToken_json {
|
|
|
893
1021
|
async symbol() {
|
|
894
1022
|
return this.contract.read.symbol();
|
|
895
1023
|
}
|
|
1024
|
+
/**
|
|
1025
|
+
* tokenFromAllocation
|
|
1026
|
+
* view
|
|
1027
|
+
*/
|
|
1028
|
+
async tokenFromAllocation(aAmount) {
|
|
1029
|
+
return this.contract.read.tokenFromAllocation([aAmount]);
|
|
1030
|
+
}
|
|
896
1031
|
/**
|
|
897
1032
|
* totalSupply
|
|
898
1033
|
* view
|
|
@@ -900,6 +1035,31 @@ class SwissBorgToken_json {
|
|
|
900
1035
|
async totalSupply() {
|
|
901
1036
|
return this.contract.read.totalSupply();
|
|
902
1037
|
}
|
|
1038
|
+
/**
|
|
1039
|
+
* uniswapV2Pair
|
|
1040
|
+
* view
|
|
1041
|
+
*/
|
|
1042
|
+
async uniswapV2Pair() {
|
|
1043
|
+
return this.contract.read.uniswapV2Pair();
|
|
1044
|
+
}
|
|
1045
|
+
/**
|
|
1046
|
+
* uniswapV2Router
|
|
1047
|
+
* view
|
|
1048
|
+
*/
|
|
1049
|
+
async uniswapV2Router() {
|
|
1050
|
+
return this.contract.read.uniswapV2Router();
|
|
1051
|
+
}
|
|
1052
|
+
/**
|
|
1053
|
+
* allocate
|
|
1054
|
+
* nonpayable
|
|
1055
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1056
|
+
*/
|
|
1057
|
+
async allocate(tAmount, options) {
|
|
1058
|
+
if (!this.contract.write) {
|
|
1059
|
+
throw new Error('Wallet client is required for write operations');
|
|
1060
|
+
}
|
|
1061
|
+
return this.contract.write.allocate([tAmount], options);
|
|
1062
|
+
}
|
|
903
1063
|
/**
|
|
904
1064
|
* approve
|
|
905
1065
|
* nonpayable
|
|
@@ -912,26 +1072,26 @@ class SwissBorgToken_json {
|
|
|
912
1072
|
return this.contract.write.approve([spender, amount], options);
|
|
913
1073
|
}
|
|
914
1074
|
/**
|
|
915
|
-
*
|
|
1075
|
+
* burnLiq
|
|
916
1076
|
* nonpayable
|
|
917
1077
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
918
1078
|
*/
|
|
919
|
-
async
|
|
1079
|
+
async burnLiq(_token, _to, _amount, options) {
|
|
920
1080
|
if (!this.contract.write) {
|
|
921
1081
|
throw new Error('Wallet client is required for write operations');
|
|
922
1082
|
}
|
|
923
|
-
return this.contract.write.
|
|
1083
|
+
return this.contract.write.burnLiq([_token, _to, _amount], options);
|
|
924
1084
|
}
|
|
925
1085
|
/**
|
|
926
|
-
*
|
|
1086
|
+
* changeFeeDivider
|
|
927
1087
|
* nonpayable
|
|
928
1088
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
929
1089
|
*/
|
|
930
|
-
async
|
|
1090
|
+
async changeFeeDivider(n, options) {
|
|
931
1091
|
if (!this.contract.write) {
|
|
932
1092
|
throw new Error('Wallet client is required for write operations');
|
|
933
1093
|
}
|
|
934
|
-
return this.contract.write.
|
|
1094
|
+
return this.contract.write.changeFeeDivider([n], options);
|
|
935
1095
|
}
|
|
936
1096
|
/**
|
|
937
1097
|
* decreaseAllowance
|
|
@@ -945,26 +1105,26 @@ class SwissBorgToken_json {
|
|
|
945
1105
|
return this.contract.write.decreaseAllowance([spender, subtractedValue], options);
|
|
946
1106
|
}
|
|
947
1107
|
/**
|
|
948
|
-
*
|
|
1108
|
+
* excludeAccount
|
|
949
1109
|
* nonpayable
|
|
950
1110
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
951
1111
|
*/
|
|
952
|
-
async
|
|
1112
|
+
async excludeAccount(account, options) {
|
|
953
1113
|
if (!this.contract.write) {
|
|
954
1114
|
throw new Error('Wallet client is required for write operations');
|
|
955
1115
|
}
|
|
956
|
-
return this.contract.write.
|
|
1116
|
+
return this.contract.write.excludeAccount([account], options);
|
|
957
1117
|
}
|
|
958
1118
|
/**
|
|
959
|
-
*
|
|
1119
|
+
* includeAccount
|
|
960
1120
|
* nonpayable
|
|
961
1121
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
962
1122
|
*/
|
|
963
|
-
async
|
|
1123
|
+
async includeAccount(account, options) {
|
|
964
1124
|
if (!this.contract.write) {
|
|
965
1125
|
throw new Error('Wallet client is required for write operations');
|
|
966
1126
|
}
|
|
967
|
-
return this.contract.write.
|
|
1127
|
+
return this.contract.write.includeAccount([account], options);
|
|
968
1128
|
}
|
|
969
1129
|
/**
|
|
970
1130
|
* increaseAllowance
|
|
@@ -978,37 +1138,103 @@ class SwissBorgToken_json {
|
|
|
978
1138
|
return this.contract.write.increaseAllowance([spender, addedValue], options);
|
|
979
1139
|
}
|
|
980
1140
|
/**
|
|
981
|
-
*
|
|
1141
|
+
* renounceOwnership
|
|
982
1142
|
* nonpayable
|
|
983
1143
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
984
1144
|
*/
|
|
985
|
-
async
|
|
1145
|
+
async renounceOwnership(options) {
|
|
986
1146
|
if (!this.contract.write) {
|
|
987
1147
|
throw new Error('Wallet client is required for write operations');
|
|
988
1148
|
}
|
|
989
|
-
return this.contract.write.
|
|
1149
|
+
return this.contract.write.renounceOwnership(options);
|
|
990
1150
|
}
|
|
991
1151
|
/**
|
|
992
1152
|
* transfer
|
|
993
1153
|
* nonpayable
|
|
994
1154
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
995
1155
|
*/
|
|
996
|
-
async transfer(
|
|
1156
|
+
async transfer(recipient, amount, options) {
|
|
997
1157
|
if (!this.contract.write) {
|
|
998
1158
|
throw new Error('Wallet client is required for write operations');
|
|
999
1159
|
}
|
|
1000
|
-
return this.contract.write.transfer([
|
|
1160
|
+
return this.contract.write.transfer([recipient, amount], options);
|
|
1001
1161
|
}
|
|
1002
1162
|
/**
|
|
1003
1163
|
* transferFrom
|
|
1004
1164
|
* nonpayable
|
|
1005
1165
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1006
1166
|
*/
|
|
1007
|
-
async transferFrom(
|
|
1167
|
+
async transferFrom(sender, recipient, amount, options) {
|
|
1168
|
+
if (!this.contract.write) {
|
|
1169
|
+
throw new Error('Wallet client is required for write operations');
|
|
1170
|
+
}
|
|
1171
|
+
return this.contract.write.transferFrom([sender, recipient, amount], options);
|
|
1172
|
+
}
|
|
1173
|
+
/**
|
|
1174
|
+
* transferOwnership
|
|
1175
|
+
* nonpayable
|
|
1176
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1177
|
+
*/
|
|
1178
|
+
async transferOwnership(newOwner, options) {
|
|
1179
|
+
if (!this.contract.write) {
|
|
1180
|
+
throw new Error('Wallet client is required for write operations');
|
|
1181
|
+
}
|
|
1182
|
+
return this.contract.write.transferOwnership([newOwner], options);
|
|
1183
|
+
}
|
|
1184
|
+
/**
|
|
1185
|
+
* unPauseTransferForever
|
|
1186
|
+
* nonpayable
|
|
1187
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1188
|
+
*/
|
|
1189
|
+
async unPauseTransferForever(options) {
|
|
1190
|
+
if (!this.contract.write) {
|
|
1191
|
+
throw new Error('Wallet client is required for write operations');
|
|
1192
|
+
}
|
|
1193
|
+
return this.contract.write.unPauseTransferForever(options);
|
|
1194
|
+
}
|
|
1195
|
+
/**
|
|
1196
|
+
* updateFee
|
|
1197
|
+
* nonpayable
|
|
1198
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1199
|
+
*/
|
|
1200
|
+
async updateFee(_feeDecimals, _feePercentage, options) {
|
|
1201
|
+
if (!this.contract.write) {
|
|
1202
|
+
throw new Error('Wallet client is required for write operations');
|
|
1203
|
+
}
|
|
1204
|
+
return this.contract.write.updateFee([_feeDecimals, _feePercentage], options);
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* updateFeesAndSwapsEnabled
|
|
1208
|
+
* nonpayable
|
|
1209
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1210
|
+
*/
|
|
1211
|
+
async updateFeesAndSwapsEnabled(absFeeDecimals, absFeePercentage, absFeeDivider, _enabled, options) {
|
|
1212
|
+
if (!this.contract.write) {
|
|
1213
|
+
throw new Error('Wallet client is required for write operations');
|
|
1214
|
+
}
|
|
1215
|
+
return this.contract.write.updateFeesAndSwapsEnabled([absFeeDecimals, absFeePercentage, absFeeDivider, _enabled], options);
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* updateMinTokensBeforeAddToLP
|
|
1219
|
+
* nonpayable
|
|
1220
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1221
|
+
*/
|
|
1222
|
+
async updateMinTokensBeforeAddToLP(_minTokensBeforeAddToLP, options) {
|
|
1223
|
+
if (!this.contract.write) {
|
|
1224
|
+
throw new Error('Wallet client is required for write operations');
|
|
1225
|
+
}
|
|
1226
|
+
return this.contract.write.updateMinTokensBeforeAddToLP([_minTokensBeforeAddToLP], options);
|
|
1227
|
+
}
|
|
1228
|
+
/**
|
|
1229
|
+
* updateSwapAndAbsorbEnabled
|
|
1230
|
+
* nonpayable
|
|
1231
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1232
|
+
*/
|
|
1233
|
+
async updateSwapAndAbsorbEnabled(_enabled, options) {
|
|
1008
1234
|
if (!this.contract.write) {
|
|
1009
1235
|
throw new Error('Wallet client is required for write operations');
|
|
1010
1236
|
}
|
|
1011
|
-
return this.contract.write.
|
|
1237
|
+
return this.contract.write.updateSwapAndAbsorbEnabled([_enabled], options);
|
|
1012
1238
|
}
|
|
1013
1239
|
/**
|
|
1014
1240
|
* Simulate contract write operations (dry-run without sending transaction)
|
|
@@ -1024,6 +1250,14 @@ class SwissBorgToken_json {
|
|
|
1024
1250
|
throw new Error('Public client is required for simulation');
|
|
1025
1251
|
}
|
|
1026
1252
|
return {
|
|
1253
|
+
/**
|
|
1254
|
+
* Simulate allocate
|
|
1255
|
+
* Returns gas estimate and result without sending transaction
|
|
1256
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1257
|
+
*/
|
|
1258
|
+
async allocate(tAmount, options) {
|
|
1259
|
+
return contract.simulate.allocate([tAmount], options);
|
|
1260
|
+
},
|
|
1027
1261
|
/**
|
|
1028
1262
|
* Simulate approve
|
|
1029
1263
|
* Returns gas estimate and result without sending transaction
|
|
@@ -1033,20 +1267,20 @@ class SwissBorgToken_json {
|
|
|
1033
1267
|
return contract.simulate.approve([spender, amount], options);
|
|
1034
1268
|
},
|
|
1035
1269
|
/**
|
|
1036
|
-
* Simulate
|
|
1270
|
+
* Simulate burnLiq
|
|
1037
1271
|
* Returns gas estimate and result without sending transaction
|
|
1038
1272
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1039
1273
|
*/
|
|
1040
|
-
async
|
|
1041
|
-
return contract.simulate.
|
|
1274
|
+
async burnLiq(_token, _to, _amount, options) {
|
|
1275
|
+
return contract.simulate.burnLiq([_token, _to, _amount], options);
|
|
1042
1276
|
},
|
|
1043
1277
|
/**
|
|
1044
|
-
* Simulate
|
|
1278
|
+
* Simulate changeFeeDivider
|
|
1045
1279
|
* Returns gas estimate and result without sending transaction
|
|
1046
1280
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1047
1281
|
*/
|
|
1048
|
-
async
|
|
1049
|
-
return contract.simulate.
|
|
1282
|
+
async changeFeeDivider(n, options) {
|
|
1283
|
+
return contract.simulate.changeFeeDivider([n], options);
|
|
1050
1284
|
},
|
|
1051
1285
|
/**
|
|
1052
1286
|
* Simulate decreaseAllowance
|
|
@@ -1057,20 +1291,20 @@ class SwissBorgToken_json {
|
|
|
1057
1291
|
return contract.simulate.decreaseAllowance([spender, subtractedValue], options);
|
|
1058
1292
|
},
|
|
1059
1293
|
/**
|
|
1060
|
-
* Simulate
|
|
1294
|
+
* Simulate excludeAccount
|
|
1061
1295
|
* Returns gas estimate and result without sending transaction
|
|
1062
1296
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1063
1297
|
*/
|
|
1064
|
-
async
|
|
1065
|
-
return contract.simulate.
|
|
1298
|
+
async excludeAccount(account, options) {
|
|
1299
|
+
return contract.simulate.excludeAccount([account], options);
|
|
1066
1300
|
},
|
|
1067
1301
|
/**
|
|
1068
|
-
* Simulate
|
|
1302
|
+
* Simulate includeAccount
|
|
1069
1303
|
* Returns gas estimate and result without sending transaction
|
|
1070
1304
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1071
1305
|
*/
|
|
1072
|
-
async
|
|
1073
|
-
return contract.simulate.
|
|
1306
|
+
async includeAccount(account, options) {
|
|
1307
|
+
return contract.simulate.includeAccount([account], options);
|
|
1074
1308
|
},
|
|
1075
1309
|
/**
|
|
1076
1310
|
* Simulate increaseAllowance
|
|
@@ -1081,28 +1315,76 @@ class SwissBorgToken_json {
|
|
|
1081
1315
|
return contract.simulate.increaseAllowance([spender, addedValue], options);
|
|
1082
1316
|
},
|
|
1083
1317
|
/**
|
|
1084
|
-
* Simulate
|
|
1318
|
+
* Simulate renounceOwnership
|
|
1085
1319
|
* Returns gas estimate and result without sending transaction
|
|
1086
1320
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1087
1321
|
*/
|
|
1088
|
-
async
|
|
1089
|
-
return contract.simulate.
|
|
1322
|
+
async renounceOwnership(options) {
|
|
1323
|
+
return contract.simulate.renounceOwnership(options);
|
|
1090
1324
|
},
|
|
1091
1325
|
/**
|
|
1092
1326
|
* Simulate transfer
|
|
1093
1327
|
* Returns gas estimate and result without sending transaction
|
|
1094
1328
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1095
1329
|
*/
|
|
1096
|
-
async transfer(
|
|
1097
|
-
return contract.simulate.transfer([
|
|
1330
|
+
async transfer(recipient, amount, options) {
|
|
1331
|
+
return contract.simulate.transfer([recipient, amount], options);
|
|
1098
1332
|
},
|
|
1099
1333
|
/**
|
|
1100
1334
|
* Simulate transferFrom
|
|
1101
1335
|
* Returns gas estimate and result without sending transaction
|
|
1102
1336
|
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1103
1337
|
*/
|
|
1104
|
-
async transferFrom(
|
|
1105
|
-
return contract.simulate.transferFrom([
|
|
1338
|
+
async transferFrom(sender, recipient, amount, options) {
|
|
1339
|
+
return contract.simulate.transferFrom([sender, recipient, amount], options);
|
|
1340
|
+
},
|
|
1341
|
+
/**
|
|
1342
|
+
* Simulate transferOwnership
|
|
1343
|
+
* Returns gas estimate and result without sending transaction
|
|
1344
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1345
|
+
*/
|
|
1346
|
+
async transferOwnership(newOwner, options) {
|
|
1347
|
+
return contract.simulate.transferOwnership([newOwner], options);
|
|
1348
|
+
},
|
|
1349
|
+
/**
|
|
1350
|
+
* Simulate unPauseTransferForever
|
|
1351
|
+
* Returns gas estimate and result without sending transaction
|
|
1352
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1353
|
+
*/
|
|
1354
|
+
async unPauseTransferForever(options) {
|
|
1355
|
+
return contract.simulate.unPauseTransferForever(options);
|
|
1356
|
+
},
|
|
1357
|
+
/**
|
|
1358
|
+
* Simulate updateFee
|
|
1359
|
+
* Returns gas estimate and result without sending transaction
|
|
1360
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1361
|
+
*/
|
|
1362
|
+
async updateFee(_feeDecimals, _feePercentage, options) {
|
|
1363
|
+
return contract.simulate.updateFee([_feeDecimals, _feePercentage], options);
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
* Simulate updateFeesAndSwapsEnabled
|
|
1367
|
+
* Returns gas estimate and result without sending transaction
|
|
1368
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1369
|
+
*/
|
|
1370
|
+
async updateFeesAndSwapsEnabled(absFeeDecimals, absFeePercentage, absFeeDivider, _enabled, options) {
|
|
1371
|
+
return contract.simulate.updateFeesAndSwapsEnabled([absFeeDecimals, absFeePercentage, absFeeDivider, _enabled], options);
|
|
1372
|
+
},
|
|
1373
|
+
/**
|
|
1374
|
+
* Simulate updateMinTokensBeforeAddToLP
|
|
1375
|
+
* Returns gas estimate and result without sending transaction
|
|
1376
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1377
|
+
*/
|
|
1378
|
+
async updateMinTokensBeforeAddToLP(_minTokensBeforeAddToLP, options) {
|
|
1379
|
+
return contract.simulate.updateMinTokensBeforeAddToLP([_minTokensBeforeAddToLP], options);
|
|
1380
|
+
},
|
|
1381
|
+
/**
|
|
1382
|
+
* Simulate updateSwapAndAbsorbEnabled
|
|
1383
|
+
* Returns gas estimate and result without sending transaction
|
|
1384
|
+
* @param options Optional transaction parameters (value, gas, nonce, etc.)
|
|
1385
|
+
*/
|
|
1386
|
+
async updateSwapAndAbsorbEnabled(_enabled, options) {
|
|
1387
|
+
return contract.simulate.updateSwapAndAbsorbEnabled([_enabled], options);
|
|
1106
1388
|
}
|
|
1107
1389
|
};
|
|
1108
1390
|
}
|
|
@@ -1129,7 +1411,7 @@ class SwissBorgToken_json {
|
|
|
1129
1411
|
Approval: (callback, filter) => {
|
|
1130
1412
|
return this.publicClient.watchContractEvent({
|
|
1131
1413
|
address: this.contractAddress,
|
|
1132
|
-
abi: exports.
|
|
1414
|
+
abi: exports.BORG_jsonAbi,
|
|
1133
1415
|
eventName: 'Approval',
|
|
1134
1416
|
args: filter,
|
|
1135
1417
|
onLogs: (logs) => {
|
|
@@ -1140,17 +1422,34 @@ class SwissBorgToken_json {
|
|
|
1140
1422
|
});
|
|
1141
1423
|
},
|
|
1142
1424
|
/**
|
|
1143
|
-
* Watch
|
|
1425
|
+
* Watch FeeUpdated events
|
|
1144
1426
|
* @param callback Function to call when event is emitted
|
|
1145
1427
|
* @param filter Optional filter for indexed parameters
|
|
1146
1428
|
* @returns Unwatch function to stop listening
|
|
1147
1429
|
*/
|
|
1148
|
-
|
|
1430
|
+
FeeUpdated: (callback) => {
|
|
1149
1431
|
return this.publicClient.watchContractEvent({
|
|
1150
1432
|
address: this.contractAddress,
|
|
1151
|
-
abi: exports.
|
|
1152
|
-
eventName: '
|
|
1153
|
-
|
|
1433
|
+
abi: exports.BORG_jsonAbi,
|
|
1434
|
+
eventName: 'FeeUpdated',
|
|
1435
|
+
onLogs: (logs) => {
|
|
1436
|
+
logs.forEach((log) => {
|
|
1437
|
+
callback(log.args);
|
|
1438
|
+
});
|
|
1439
|
+
},
|
|
1440
|
+
});
|
|
1441
|
+
},
|
|
1442
|
+
/**
|
|
1443
|
+
* Watch MinTokensBeforeAddToLPUpdated events
|
|
1444
|
+
* @param callback Function to call when event is emitted
|
|
1445
|
+
* @param filter Optional filter for indexed parameters
|
|
1446
|
+
* @returns Unwatch function to stop listening
|
|
1447
|
+
*/
|
|
1448
|
+
MinTokensBeforeAddToLPUpdated: (callback) => {
|
|
1449
|
+
return this.publicClient.watchContractEvent({
|
|
1450
|
+
address: this.contractAddress,
|
|
1451
|
+
abi: exports.BORG_jsonAbi,
|
|
1452
|
+
eventName: 'MinTokensBeforeAddToLPUpdated',
|
|
1154
1453
|
onLogs: (logs) => {
|
|
1155
1454
|
logs.forEach((log) => {
|
|
1156
1455
|
callback(log.args);
|
|
@@ -1159,16 +1458,16 @@ class SwissBorgToken_json {
|
|
|
1159
1458
|
});
|
|
1160
1459
|
},
|
|
1161
1460
|
/**
|
|
1162
|
-
* Watch
|
|
1461
|
+
* Watch OwnershipTransferred events
|
|
1163
1462
|
* @param callback Function to call when event is emitted
|
|
1164
1463
|
* @param filter Optional filter for indexed parameters
|
|
1165
1464
|
* @returns Unwatch function to stop listening
|
|
1166
1465
|
*/
|
|
1167
|
-
|
|
1466
|
+
OwnershipTransferred: (callback, filter) => {
|
|
1168
1467
|
return this.publicClient.watchContractEvent({
|
|
1169
1468
|
address: this.contractAddress,
|
|
1170
|
-
abi: exports.
|
|
1171
|
-
eventName: '
|
|
1469
|
+
abi: exports.BORG_jsonAbi,
|
|
1470
|
+
eventName: 'OwnershipTransferred',
|
|
1172
1471
|
args: filter,
|
|
1173
1472
|
onLogs: (logs) => {
|
|
1174
1473
|
logs.forEach((log) => {
|
|
@@ -1178,16 +1477,34 @@ class SwissBorgToken_json {
|
|
|
1178
1477
|
});
|
|
1179
1478
|
},
|
|
1180
1479
|
/**
|
|
1181
|
-
* Watch
|
|
1480
|
+
* Watch SwapAndAbsorb events
|
|
1481
|
+
* @param callback Function to call when event is emitted
|
|
1482
|
+
* @param filter Optional filter for indexed parameters
|
|
1483
|
+
* @returns Unwatch function to stop listening
|
|
1484
|
+
*/
|
|
1485
|
+
SwapAndAbsorb: (callback) => {
|
|
1486
|
+
return this.publicClient.watchContractEvent({
|
|
1487
|
+
address: this.contractAddress,
|
|
1488
|
+
abi: exports.BORG_jsonAbi,
|
|
1489
|
+
eventName: 'SwapAndAbsorb',
|
|
1490
|
+
onLogs: (logs) => {
|
|
1491
|
+
logs.forEach((log) => {
|
|
1492
|
+
callback(log.args);
|
|
1493
|
+
});
|
|
1494
|
+
},
|
|
1495
|
+
});
|
|
1496
|
+
},
|
|
1497
|
+
/**
|
|
1498
|
+
* Watch SwapAndAbsorbEnabledUpdated events
|
|
1182
1499
|
* @param callback Function to call when event is emitted
|
|
1183
1500
|
* @param filter Optional filter for indexed parameters
|
|
1184
1501
|
* @returns Unwatch function to stop listening
|
|
1185
1502
|
*/
|
|
1186
|
-
|
|
1503
|
+
SwapAndAbsorbEnabledUpdated: (callback) => {
|
|
1187
1504
|
return this.publicClient.watchContractEvent({
|
|
1188
1505
|
address: this.contractAddress,
|
|
1189
|
-
abi: exports.
|
|
1190
|
-
eventName: '
|
|
1506
|
+
abi: exports.BORG_jsonAbi,
|
|
1507
|
+
eventName: 'SwapAndAbsorbEnabledUpdated',
|
|
1191
1508
|
onLogs: (logs) => {
|
|
1192
1509
|
logs.forEach((log) => {
|
|
1193
1510
|
callback(log.args);
|
|
@@ -1204,7 +1521,7 @@ class SwissBorgToken_json {
|
|
|
1204
1521
|
Transfer: (callback, filter) => {
|
|
1205
1522
|
return this.publicClient.watchContractEvent({
|
|
1206
1523
|
address: this.contractAddress,
|
|
1207
|
-
abi: exports.
|
|
1524
|
+
abi: exports.BORG_jsonAbi,
|
|
1208
1525
|
eventName: 'Transfer',
|
|
1209
1526
|
args: filter,
|
|
1210
1527
|
onLogs: (logs) => {
|
|
@@ -1217,4 +1534,4 @@ class SwissBorgToken_json {
|
|
|
1217
1534
|
};
|
|
1218
1535
|
}
|
|
1219
1536
|
}
|
|
1220
|
-
exports.
|
|
1537
|
+
exports.BORG_json = BORG_json;
|