@logswap/sdk 0.5.71 → 0.5.73
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 +21 -2
- package/dist/admin.d.ts +38 -16
- package/dist/admin.js +47 -18
- package/dist/client.d.ts +7 -2
- package/dist/client.js +15 -2
- package/dist/fees.d.ts +1 -1
- package/dist/fees.js +2 -2
- package/dist/fpool.d.ts +203 -26
- package/dist/fpool.js +186 -107
- package/dist/generated.d.ts +812 -446
- package/dist/generated.js +486 -246
- package/dist/indexer.js +2 -2
- package/dist/keys.d.ts +4 -3
- package/dist/keys.js +3 -3
- package/dist/pools.d.ts +5 -4
- package/dist/pools.js +7 -6
- package/dist/positions.d.ts +3 -2
- package/dist/positions.js +3 -2
- package/package.json +1 -1
- package/src/admin.ts +51 -18
- package/src/client.ts +15 -2
- package/src/fees.ts +2 -2
- package/src/fpool.ts +244 -146
- package/src/generated.ts +486 -246
- package/src/indexer.ts +3 -3
- package/src/keys.ts +6 -5
- package/src/pools.ts +7 -6
- package/src/positions.ts +3 -2
package/dist/generated.js
CHANGED
|
@@ -12,7 +12,7 @@ export const cPoolManagerAbi = [
|
|
|
12
12
|
{
|
|
13
13
|
type: 'function',
|
|
14
14
|
inputs: [],
|
|
15
|
-
name: '
|
|
15
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
16
16
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
17
17
|
stateMutability: 'view',
|
|
18
18
|
},
|
|
@@ -66,7 +66,7 @@ export const cPoolManagerAbi = [
|
|
|
66
66
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
67
67
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
68
68
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
69
|
-
{ name: '
|
|
69
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
70
70
|
],
|
|
71
71
|
},
|
|
72
72
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -102,7 +102,7 @@ export const cPoolManagerAbi = [
|
|
|
102
102
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
103
103
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
104
104
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
105
|
-
{ name: '
|
|
105
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
106
106
|
],
|
|
107
107
|
},
|
|
108
108
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -130,7 +130,7 @@ export const cPoolManagerAbi = [
|
|
|
130
130
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
131
131
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
132
132
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
133
|
-
{ name: '
|
|
133
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
134
134
|
],
|
|
135
135
|
},
|
|
136
136
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -159,7 +159,7 @@ export const cPoolManagerAbi = [
|
|
|
159
159
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
160
160
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
161
161
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
162
|
-
{ name: '
|
|
162
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
163
163
|
],
|
|
164
164
|
},
|
|
165
165
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -253,7 +253,7 @@ export const cPoolManagerAbi = [
|
|
|
253
253
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
254
254
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
255
255
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
256
|
-
{ name: '
|
|
256
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
257
257
|
],
|
|
258
258
|
},
|
|
259
259
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -273,7 +273,7 @@ export const cPoolManagerAbi = [
|
|
|
273
273
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
274
274
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
275
275
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
276
|
-
{ name: '
|
|
276
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
277
277
|
],
|
|
278
278
|
},
|
|
279
279
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -294,7 +294,7 @@ export const cPoolManagerAbi = [
|
|
|
294
294
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
295
295
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
296
296
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
297
|
-
{ name: '
|
|
297
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
298
298
|
],
|
|
299
299
|
},
|
|
300
300
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -331,7 +331,7 @@ export const cPoolManagerAbi = [
|
|
|
331
331
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
332
332
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
333
333
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
334
|
-
{ name: '
|
|
334
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
335
335
|
],
|
|
336
336
|
},
|
|
337
337
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -375,25 +375,6 @@ export const cPoolManagerAbi = [
|
|
|
375
375
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
376
376
|
stateMutability: 'view',
|
|
377
377
|
},
|
|
378
|
-
{
|
|
379
|
-
type: 'function',
|
|
380
|
-
inputs: [
|
|
381
|
-
{
|
|
382
|
-
name: 'key',
|
|
383
|
-
internalType: 'struct PoolKey',
|
|
384
|
-
type: 'tuple',
|
|
385
|
-
components: [
|
|
386
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
387
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
388
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
389
|
-
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
390
|
-
],
|
|
391
|
-
},
|
|
392
|
-
],
|
|
393
|
-
name: 'phiOf',
|
|
394
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
395
|
-
stateMutability: 'view',
|
|
396
|
-
},
|
|
397
378
|
{
|
|
398
379
|
type: 'function',
|
|
399
380
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -424,7 +405,7 @@ export const cPoolManagerAbi = [
|
|
|
424
405
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
425
406
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
426
407
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
427
|
-
{ name: '
|
|
408
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
428
409
|
],
|
|
429
410
|
},
|
|
430
411
|
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
@@ -435,15 +416,6 @@ export const cPoolManagerAbi = [
|
|
|
435
416
|
outputs: [],
|
|
436
417
|
stateMutability: 'nonpayable',
|
|
437
418
|
},
|
|
438
|
-
{
|
|
439
|
-
type: 'function',
|
|
440
|
-
inputs: [
|
|
441
|
-
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
442
|
-
],
|
|
443
|
-
name: 'setFeeParams',
|
|
444
|
-
outputs: [],
|
|
445
|
-
stateMutability: 'nonpayable',
|
|
446
|
-
},
|
|
447
419
|
{
|
|
448
420
|
type: 'function',
|
|
449
421
|
inputs: [
|
|
@@ -454,6 +426,13 @@ export const cPoolManagerAbi = [
|
|
|
454
426
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
455
427
|
stateMutability: 'payable',
|
|
456
428
|
},
|
|
429
|
+
{
|
|
430
|
+
type: 'function',
|
|
431
|
+
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
432
|
+
name: 'setSwapFeeTax',
|
|
433
|
+
outputs: [],
|
|
434
|
+
stateMutability: 'nonpayable',
|
|
435
|
+
},
|
|
457
436
|
{
|
|
458
437
|
type: 'function',
|
|
459
438
|
inputs: [],
|
|
@@ -479,7 +458,7 @@ export const cPoolManagerAbi = [
|
|
|
479
458
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
480
459
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
481
460
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
482
|
-
{ name: '
|
|
461
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
483
462
|
],
|
|
484
463
|
},
|
|
485
464
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -493,6 +472,32 @@ export const cPoolManagerAbi = [
|
|
|
493
472
|
],
|
|
494
473
|
stateMutability: 'nonpayable',
|
|
495
474
|
},
|
|
475
|
+
{
|
|
476
|
+
type: 'function',
|
|
477
|
+
inputs: [
|
|
478
|
+
{
|
|
479
|
+
name: 'key',
|
|
480
|
+
internalType: 'struct PoolKey',
|
|
481
|
+
type: 'tuple',
|
|
482
|
+
components: [
|
|
483
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
484
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
485
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
486
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
487
|
+
],
|
|
488
|
+
},
|
|
489
|
+
],
|
|
490
|
+
name: 'swapFeeOf',
|
|
491
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
492
|
+
stateMutability: 'view',
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
type: 'function',
|
|
496
|
+
inputs: [],
|
|
497
|
+
name: 'swapFeeTax',
|
|
498
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
499
|
+
stateMutability: 'view',
|
|
500
|
+
},
|
|
496
501
|
{
|
|
497
502
|
type: 'function',
|
|
498
503
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -590,7 +595,7 @@ export const cPoolManagerAbi = [
|
|
|
590
595
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
591
596
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
592
597
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
593
|
-
{ name: '
|
|
598
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
594
599
|
],
|
|
595
600
|
},
|
|
596
601
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -765,19 +770,6 @@ export const cPoolManagerAbi = [
|
|
|
765
770
|
],
|
|
766
771
|
name: 'CollectorProposed',
|
|
767
772
|
},
|
|
768
|
-
{
|
|
769
|
-
type: 'event',
|
|
770
|
-
anonymous: false,
|
|
771
|
-
inputs: [
|
|
772
|
-
{
|
|
773
|
-
name: 'mintFeeProtocolCut',
|
|
774
|
-
internalType: 'uint256',
|
|
775
|
-
type: 'uint256',
|
|
776
|
-
indexed: false,
|
|
777
|
-
},
|
|
778
|
-
],
|
|
779
|
-
name: 'FeeParamsSet',
|
|
780
|
-
},
|
|
781
773
|
{
|
|
782
774
|
type: 'event',
|
|
783
775
|
anonymous: false,
|
|
@@ -818,7 +810,12 @@ export const cPoolManagerAbi = [
|
|
|
818
810
|
type: 'int256',
|
|
819
811
|
indexed: false,
|
|
820
812
|
},
|
|
821
|
-
{
|
|
813
|
+
{
|
|
814
|
+
name: 'swapFee',
|
|
815
|
+
internalType: 'uint256',
|
|
816
|
+
type: 'uint256',
|
|
817
|
+
indexed: false,
|
|
818
|
+
},
|
|
822
819
|
{ name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
|
|
823
820
|
],
|
|
824
821
|
name: 'Initialize',
|
|
@@ -927,7 +924,12 @@ export const cPoolManagerAbi = [
|
|
|
927
924
|
},
|
|
928
925
|
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
929
926
|
{ name: 'newX', internalType: 'int256', type: 'int256', indexed: false },
|
|
930
|
-
{
|
|
927
|
+
{
|
|
928
|
+
name: 'swapFee',
|
|
929
|
+
internalType: 'uint256',
|
|
930
|
+
type: 'uint256',
|
|
931
|
+
indexed: false,
|
|
932
|
+
},
|
|
931
933
|
{ name: 'F', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
932
934
|
{
|
|
933
935
|
name: 'bigSigma',
|
|
@@ -944,6 +946,14 @@ export const cPoolManagerAbi = [
|
|
|
944
946
|
],
|
|
945
947
|
name: 'Swap',
|
|
946
948
|
},
|
|
949
|
+
{
|
|
950
|
+
type: 'event',
|
|
951
|
+
anonymous: false,
|
|
952
|
+
inputs: [
|
|
953
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
954
|
+
],
|
|
955
|
+
name: 'SwapFeeTaxSet',
|
|
956
|
+
},
|
|
947
957
|
{
|
|
948
958
|
type: 'event',
|
|
949
959
|
anonymous: false,
|
|
@@ -1090,27 +1100,6 @@ export const fPoolManagerAbi = [
|
|
|
1090
1100
|
],
|
|
1091
1101
|
stateMutability: 'nonpayable',
|
|
1092
1102
|
},
|
|
1093
|
-
{
|
|
1094
|
-
type: 'function',
|
|
1095
|
-
inputs: [],
|
|
1096
|
-
name: 'BURN_MAX',
|
|
1097
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1098
|
-
stateMutability: 'view',
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
type: 'function',
|
|
1102
|
-
inputs: [],
|
|
1103
|
-
name: 'MINT_FEE',
|
|
1104
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1105
|
-
stateMutability: 'view',
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
type: 'function',
|
|
1109
|
-
inputs: [],
|
|
1110
|
-
name: 'MINT_FEE_PROTOCOL_CUT',
|
|
1111
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1112
|
-
stateMutability: 'view',
|
|
1113
|
-
},
|
|
1114
1103
|
{
|
|
1115
1104
|
type: 'function',
|
|
1116
1105
|
inputs: [],
|
|
@@ -1157,20 +1146,6 @@ export const fPoolManagerAbi = [
|
|
|
1157
1146
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1158
1147
|
stateMutability: 'view',
|
|
1159
1148
|
},
|
|
1160
|
-
{
|
|
1161
|
-
type: 'function',
|
|
1162
|
-
inputs: [
|
|
1163
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1164
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1165
|
-
],
|
|
1166
|
-
name: 'bundleOf',
|
|
1167
|
-
outputs: [
|
|
1168
|
-
{ name: 'supply', internalType: 'uint256', type: 'uint256' },
|
|
1169
|
-
{ name: 'quote', internalType: 'uint256', type: 'uint256' },
|
|
1170
|
-
{ name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1171
|
-
],
|
|
1172
|
-
stateMutability: 'view',
|
|
1173
|
-
},
|
|
1174
1149
|
{
|
|
1175
1150
|
type: 'function',
|
|
1176
1151
|
inputs: [
|
|
@@ -1218,13 +1193,6 @@ export const fPoolManagerAbi = [
|
|
|
1218
1193
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1219
1194
|
stateMutability: 'view',
|
|
1220
1195
|
},
|
|
1221
|
-
{
|
|
1222
|
-
type: 'function',
|
|
1223
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1224
|
-
name: 'compositeX',
|
|
1225
|
-
outputs: [{ name: 'X', internalType: 'int256', type: 'int256' }],
|
|
1226
|
-
stateMutability: 'view',
|
|
1227
|
-
},
|
|
1228
1196
|
{
|
|
1229
1197
|
type: 'function',
|
|
1230
1198
|
inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1244,55 +1212,40 @@ export const fPoolManagerAbi = [
|
|
|
1244
1212
|
},
|
|
1245
1213
|
{
|
|
1246
1214
|
type: 'function',
|
|
1247
|
-
inputs: [
|
|
1248
|
-
|
|
1249
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1250
|
-
{ name: 'holder', internalType: 'address', type: 'address' },
|
|
1251
|
-
],
|
|
1252
|
-
name: 'dividendOf',
|
|
1215
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1216
|
+
name: 'dps',
|
|
1253
1217
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1254
1218
|
stateMutability: 'view',
|
|
1255
1219
|
},
|
|
1256
1220
|
{
|
|
1257
1221
|
type: 'function',
|
|
1258
|
-
inputs: [{ name: '', internalType: '
|
|
1259
|
-
name: '
|
|
1260
|
-
outputs: [{ name: '', internalType: '
|
|
1222
|
+
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
1223
|
+
name: 'extsload',
|
|
1224
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1261
1225
|
stateMutability: 'view',
|
|
1262
1226
|
},
|
|
1263
1227
|
{
|
|
1264
1228
|
type: 'function',
|
|
1265
|
-
inputs: [
|
|
1266
|
-
|
|
1267
|
-
|
|
1229
|
+
inputs: [
|
|
1230
|
+
{ name: 'startSlot', internalType: 'bytes32', type: 'bytes32' },
|
|
1231
|
+
{ name: 'nSlots', internalType: 'uint256', type: 'uint256' },
|
|
1232
|
+
],
|
|
1233
|
+
name: 'extsload',
|
|
1234
|
+
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1268
1235
|
stateMutability: 'view',
|
|
1269
1236
|
},
|
|
1270
1237
|
{
|
|
1271
1238
|
type: 'function',
|
|
1272
|
-
inputs: [{ name: '
|
|
1273
|
-
name: '
|
|
1274
|
-
outputs: [
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1283
|
-
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1284
|
-
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1285
|
-
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
1286
|
-
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
1287
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1288
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
1289
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
1290
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1291
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1292
|
-
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1293
|
-
],
|
|
1294
|
-
},
|
|
1295
|
-
],
|
|
1239
|
+
inputs: [{ name: 'slots', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1240
|
+
name: 'extsload',
|
|
1241
|
+
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1242
|
+
stateMutability: 'view',
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
type: 'function',
|
|
1246
|
+
inputs: [],
|
|
1247
|
+
name: 'feeCollector',
|
|
1248
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1296
1249
|
stateMutability: 'view',
|
|
1297
1250
|
},
|
|
1298
1251
|
{
|
|
@@ -1317,10 +1270,11 @@ export const fPoolManagerAbi = [
|
|
|
1317
1270
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1318
1271
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1319
1272
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1320
|
-
{ name: '
|
|
1273
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
1321
1274
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1322
1275
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1323
1276
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1277
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
1324
1278
|
],
|
|
1325
1279
|
},
|
|
1326
1280
|
],
|
|
@@ -1348,17 +1302,13 @@ export const fPoolManagerAbi = [
|
|
|
1348
1302
|
{
|
|
1349
1303
|
type: 'function',
|
|
1350
1304
|
inputs: [
|
|
1351
|
-
{ name: '
|
|
1352
|
-
{ name: '
|
|
1353
|
-
|
|
1354
|
-
name: 'legOf',
|
|
1355
|
-
outputs: [
|
|
1356
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1357
|
-
{ name: 'weight', internalType: 'uint256', type: 'uint256' },
|
|
1358
|
-
{ name: 'x', internalType: 'int256', type: 'int256' },
|
|
1359
|
-
{ name: 'reserve', internalType: 'uint256', type: 'uint256' },
|
|
1305
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1306
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1307
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1360
1308
|
],
|
|
1361
|
-
|
|
1309
|
+
name: 'lock',
|
|
1310
|
+
outputs: [],
|
|
1311
|
+
stateMutability: 'nonpayable',
|
|
1362
1312
|
},
|
|
1363
1313
|
{
|
|
1364
1314
|
type: 'function',
|
|
@@ -1411,13 +1361,6 @@ export const fPoolManagerAbi = [
|
|
|
1411
1361
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1412
1362
|
stateMutability: 'view',
|
|
1413
1363
|
},
|
|
1414
|
-
{
|
|
1415
|
-
type: 'function',
|
|
1416
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1417
|
-
name: 'phiB4B',
|
|
1418
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1419
|
-
stateMutability: 'view',
|
|
1420
|
-
},
|
|
1421
1364
|
{
|
|
1422
1365
|
type: 'function',
|
|
1423
1366
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1582,6 +1525,13 @@ export const fPoolManagerAbi = [
|
|
|
1582
1525
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
1583
1526
|
stateMutability: 'nonpayable',
|
|
1584
1527
|
},
|
|
1528
|
+
{
|
|
1529
|
+
type: 'function',
|
|
1530
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1531
|
+
name: 'swapFeeB4B',
|
|
1532
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1533
|
+
stateMutability: 'view',
|
|
1534
|
+
},
|
|
1585
1535
|
{
|
|
1586
1536
|
type: 'function',
|
|
1587
1537
|
inputs: [
|
|
@@ -1620,13 +1570,6 @@ export const fPoolManagerAbi = [
|
|
|
1620
1570
|
outputs: [],
|
|
1621
1571
|
stateMutability: 'nonpayable',
|
|
1622
1572
|
},
|
|
1623
|
-
{
|
|
1624
|
-
type: 'function',
|
|
1625
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1626
|
-
name: 'theta',
|
|
1627
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1628
|
-
stateMutability: 'view',
|
|
1629
|
-
},
|
|
1630
1573
|
{
|
|
1631
1574
|
type: 'function',
|
|
1632
1575
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1659,16 +1602,21 @@ export const fPoolManagerAbi = [
|
|
|
1659
1602
|
},
|
|
1660
1603
|
{
|
|
1661
1604
|
type: 'function',
|
|
1662
|
-
inputs: [{ name: '
|
|
1663
|
-
name: '
|
|
1664
|
-
outputs: [{ name: '', internalType: '
|
|
1665
|
-
stateMutability: '
|
|
1605
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
1606
|
+
name: 'unlock',
|
|
1607
|
+
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1608
|
+
stateMutability: 'nonpayable',
|
|
1666
1609
|
},
|
|
1667
1610
|
{
|
|
1668
1611
|
type: 'function',
|
|
1669
|
-
inputs: [
|
|
1612
|
+
inputs: [
|
|
1613
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1614
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1615
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1616
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1617
|
+
],
|
|
1670
1618
|
name: 'unlock',
|
|
1671
|
-
outputs: [
|
|
1619
|
+
outputs: [],
|
|
1672
1620
|
stateMutability: 'nonpayable',
|
|
1673
1621
|
},
|
|
1674
1622
|
{
|
|
@@ -1851,13 +1799,19 @@ export const fPoolManagerAbi = [
|
|
|
1851
1799
|
type: 'uint256[]',
|
|
1852
1800
|
indexed: false,
|
|
1853
1801
|
},
|
|
1854
|
-
{
|
|
1802
|
+
{
|
|
1803
|
+
name: 'swapFee',
|
|
1804
|
+
internalType: 'uint256',
|
|
1805
|
+
type: 'uint256',
|
|
1806
|
+
indexed: false,
|
|
1807
|
+
},
|
|
1855
1808
|
{
|
|
1856
1809
|
name: 'policy',
|
|
1857
1810
|
internalType: 'address',
|
|
1858
1811
|
type: 'address',
|
|
1859
1812
|
indexed: false,
|
|
1860
1813
|
},
|
|
1814
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24', indexed: false },
|
|
1861
1815
|
],
|
|
1862
1816
|
name: 'FInitialize',
|
|
1863
1817
|
},
|
|
@@ -2126,24 +2080,17 @@ export const fPoolManagerAbi = [
|
|
|
2126
2080
|
},
|
|
2127
2081
|
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2128
2082
|
{
|
|
2129
|
-
name: '
|
|
2083
|
+
name: 'burnt',
|
|
2130
2084
|
internalType: 'uint256',
|
|
2131
2085
|
type: 'uint256',
|
|
2132
2086
|
indexed: false,
|
|
2133
2087
|
},
|
|
2134
2088
|
{
|
|
2135
|
-
name: '
|
|
2089
|
+
name: 'deepened',
|
|
2136
2090
|
internalType: 'uint256',
|
|
2137
2091
|
type: 'uint256',
|
|
2138
2092
|
indexed: false,
|
|
2139
2093
|
},
|
|
2140
|
-
{
|
|
2141
|
-
name: 'burn',
|
|
2142
|
-
internalType: 'uint256',
|
|
2143
|
-
type: 'uint256',
|
|
2144
|
-
indexed: false,
|
|
2145
|
-
},
|
|
2146
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2147
2094
|
],
|
|
2148
2095
|
name: 'Regenerated',
|
|
2149
2096
|
},
|
|
@@ -2233,12 +2180,14 @@ export const fPoolManagerAbi = [
|
|
|
2233
2180
|
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2234
2181
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2235
2182
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2183
|
+
{ type: 'error', inputs: [], name: 'CapReached' },
|
|
2236
2184
|
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2237
2185
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2238
2186
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2239
2187
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2240
2188
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2241
2189
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2190
|
+
{ type: 'error', inputs: [], name: 'Locked' },
|
|
2242
2191
|
{
|
|
2243
2192
|
type: 'error',
|
|
2244
2193
|
inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -2276,34 +2225,6 @@ export const fPoolManagerAbi = [
|
|
|
2276
2225
|
// IFPoolManagerMove
|
|
2277
2226
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2278
2227
|
export const ifPoolManagerMoveAbi = [
|
|
2279
|
-
{
|
|
2280
|
-
type: 'function',
|
|
2281
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2282
|
-
name: 'getPool',
|
|
2283
|
-
outputs: [
|
|
2284
|
-
{
|
|
2285
|
-
name: '',
|
|
2286
|
-
internalType: 'struct FPoolBase.Pool',
|
|
2287
|
-
type: 'tuple',
|
|
2288
|
-
components: [
|
|
2289
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2290
|
-
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2291
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2292
|
-
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2293
|
-
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2294
|
-
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2295
|
-
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2296
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2297
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2298
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2299
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2300
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2301
|
-
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2302
|
-
],
|
|
2303
|
-
},
|
|
2304
|
-
],
|
|
2305
|
-
stateMutability: 'view',
|
|
2306
|
-
},
|
|
2307
2228
|
{
|
|
2308
2229
|
type: 'function',
|
|
2309
2230
|
inputs: [],
|
|
@@ -2361,7 +2282,7 @@ export const logswapLensAbi = [
|
|
|
2361
2282
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2362
2283
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2363
2284
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2364
|
-
{ name: '
|
|
2285
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2365
2286
|
],
|
|
2366
2287
|
},
|
|
2367
2288
|
],
|
|
@@ -2380,7 +2301,7 @@ export const logswapLensAbi = [
|
|
|
2380
2301
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2381
2302
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2382
2303
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2383
|
-
{ name: '
|
|
2304
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2384
2305
|
],
|
|
2385
2306
|
},
|
|
2386
2307
|
],
|
|
@@ -2388,6 +2309,20 @@ export const logswapLensAbi = [
|
|
|
2388
2309
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2389
2310
|
stateMutability: 'view',
|
|
2390
2311
|
},
|
|
2312
|
+
{
|
|
2313
|
+
type: 'function',
|
|
2314
|
+
inputs: [
|
|
2315
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2316
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2317
|
+
],
|
|
2318
|
+
name: 'fBundleOf',
|
|
2319
|
+
outputs: [
|
|
2320
|
+
{ name: 'supply', internalType: 'uint256', type: 'uint256' },
|
|
2321
|
+
{ name: 'quote', internalType: 'uint256', type: 'uint256' },
|
|
2322
|
+
{ name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2323
|
+
],
|
|
2324
|
+
stateMutability: 'view',
|
|
2325
|
+
},
|
|
2391
2326
|
{
|
|
2392
2327
|
type: 'function',
|
|
2393
2328
|
inputs: [
|
|
@@ -2411,6 +2346,31 @@ export const logswapLensAbi = [
|
|
|
2411
2346
|
],
|
|
2412
2347
|
stateMutability: 'view',
|
|
2413
2348
|
},
|
|
2349
|
+
{
|
|
2350
|
+
type: 'function',
|
|
2351
|
+
inputs: [
|
|
2352
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2353
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2354
|
+
{ name: 'holder', internalType: 'address', type: 'address' },
|
|
2355
|
+
],
|
|
2356
|
+
name: 'fDividendOf',
|
|
2357
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2358
|
+
stateMutability: 'view',
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
type: 'function',
|
|
2362
|
+
inputs: [
|
|
2363
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2364
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
2365
|
+
],
|
|
2366
|
+
name: 'fLienOf',
|
|
2367
|
+
outputs: [
|
|
2368
|
+
{ name: 'locker', internalType: 'address', type: 'address' },
|
|
2369
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2370
|
+
{ name: 'owed', internalType: 'uint256', type: 'uint256' },
|
|
2371
|
+
],
|
|
2372
|
+
stateMutability: 'view',
|
|
2373
|
+
},
|
|
2414
2374
|
{
|
|
2415
2375
|
type: 'function',
|
|
2416
2376
|
inputs: [
|
|
@@ -2434,6 +2394,66 @@ export const logswapLensAbi = [
|
|
|
2434
2394
|
],
|
|
2435
2395
|
stateMutability: 'view',
|
|
2436
2396
|
},
|
|
2397
|
+
{
|
|
2398
|
+
type: 'function',
|
|
2399
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2400
|
+
name: 'fPool',
|
|
2401
|
+
outputs: [
|
|
2402
|
+
{
|
|
2403
|
+
name: 'v',
|
|
2404
|
+
internalType: 'struct LogswapLens.FPoolView',
|
|
2405
|
+
type: 'tuple',
|
|
2406
|
+
components: [
|
|
2407
|
+
{
|
|
2408
|
+
name: 'pool',
|
|
2409
|
+
internalType: 'struct FPoolBase.Pool',
|
|
2410
|
+
type: 'tuple',
|
|
2411
|
+
components: [
|
|
2412
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2413
|
+
{ name: 'swapFee', internalType: 'uint96', type: 'uint96' },
|
|
2414
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2415
|
+
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2416
|
+
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2417
|
+
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2418
|
+
{
|
|
2419
|
+
name: 'restructureBlock',
|
|
2420
|
+
internalType: 'uint32',
|
|
2421
|
+
type: 'uint32',
|
|
2422
|
+
},
|
|
2423
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2424
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
2425
|
+
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2426
|
+
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2427
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2428
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2429
|
+
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2430
|
+
],
|
|
2431
|
+
},
|
|
2432
|
+
{ name: 'logFloor', internalType: 'int256', type: 'int256' },
|
|
2433
|
+
{ name: 'compositeX', internalType: 'int256', type: 'int256' },
|
|
2434
|
+
{ name: 'unharvested', internalType: 'uint256', type: 'uint256' },
|
|
2435
|
+
{
|
|
2436
|
+
name: 'legs',
|
|
2437
|
+
internalType: 'struct LogswapLens.FLeg[]',
|
|
2438
|
+
type: 'tuple[]',
|
|
2439
|
+
components: [
|
|
2440
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2441
|
+
{ name: 'weight', internalType: 'uint256', type: 'uint256' },
|
|
2442
|
+
{ name: 'x', internalType: 'int256', type: 'int256' },
|
|
2443
|
+
{ name: 'reserve', internalType: 'uint256', type: 'uint256' },
|
|
2444
|
+
{
|
|
2445
|
+
name: 'virtualReserve',
|
|
2446
|
+
internalType: 'uint256',
|
|
2447
|
+
type: 'uint256',
|
|
2448
|
+
},
|
|
2449
|
+
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2450
|
+
],
|
|
2451
|
+
},
|
|
2452
|
+
],
|
|
2453
|
+
},
|
|
2454
|
+
],
|
|
2455
|
+
stateMutability: 'view',
|
|
2456
|
+
},
|
|
2437
2457
|
{
|
|
2438
2458
|
type: 'function',
|
|
2439
2459
|
inputs: [
|
|
@@ -2445,7 +2465,7 @@ export const logswapLensAbi = [
|
|
|
2445
2465
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2446
2466
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2447
2467
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2448
|
-
{ name: '
|
|
2468
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2449
2469
|
],
|
|
2450
2470
|
},
|
|
2451
2471
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2485,18 +2505,19 @@ export const logswapLensAbi = [
|
|
|
2485
2505
|
type: 'tuple[]',
|
|
2486
2506
|
components: [
|
|
2487
2507
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2488
|
-
{ name: '
|
|
2508
|
+
{ name: 'swapFee', internalType: 'uint96', type: 'uint96' },
|
|
2489
2509
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2490
2510
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2491
2511
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2492
2512
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2493
2513
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2494
2514
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2515
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
2495
2516
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2496
2517
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2497
2518
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2498
2519
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2499
|
-
{ name: '
|
|
2520
|
+
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2500
2521
|
],
|
|
2501
2522
|
},
|
|
2502
2523
|
],
|
|
@@ -2540,7 +2561,7 @@ export const logswapLensAbi = [
|
|
|
2540
2561
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2541
2562
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2542
2563
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2543
|
-
{ name: '
|
|
2564
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2544
2565
|
],
|
|
2545
2566
|
},
|
|
2546
2567
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2576,7 +2597,7 @@ export const logswapLensAbi = [
|
|
|
2576
2597
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2577
2598
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2578
2599
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2579
|
-
{ name: '
|
|
2600
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2580
2601
|
],
|
|
2581
2602
|
},
|
|
2582
2603
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2596,7 +2617,7 @@ export const logswapLensAbi = [
|
|
|
2596
2617
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2597
2618
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2598
2619
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2599
|
-
{ name: '
|
|
2620
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2600
2621
|
],
|
|
2601
2622
|
},
|
|
2602
2623
|
],
|
|
@@ -2615,7 +2636,7 @@ export const logswapLensAbi = [
|
|
|
2615
2636
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2616
2637
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2617
2638
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2618
|
-
{ name: '
|
|
2639
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2619
2640
|
],
|
|
2620
2641
|
},
|
|
2621
2642
|
],
|
|
@@ -2634,7 +2655,7 @@ export const logswapLensAbi = [
|
|
|
2634
2655
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2635
2656
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2636
2657
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2637
|
-
{ name: '
|
|
2658
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2638
2659
|
],
|
|
2639
2660
|
},
|
|
2640
2661
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2660,7 +2681,7 @@ export const logswapLensAbi = [
|
|
|
2660
2681
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2661
2682
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2662
2683
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2663
|
-
{ name: '
|
|
2684
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2664
2685
|
],
|
|
2665
2686
|
},
|
|
2666
2687
|
],
|
|
@@ -2688,7 +2709,7 @@ export const logswapLensAbi = [
|
|
|
2688
2709
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2689
2710
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2690
2711
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2691
|
-
{ name: '
|
|
2712
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2692
2713
|
],
|
|
2693
2714
|
},
|
|
2694
2715
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2726,7 +2747,7 @@ export const logswapLensAbi = [
|
|
|
2726
2747
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2727
2748
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2728
2749
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2729
|
-
{ name: '
|
|
2750
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2730
2751
|
],
|
|
2731
2752
|
},
|
|
2732
2753
|
],
|
|
@@ -2745,7 +2766,7 @@ export const logswapLensAbi = [
|
|
|
2745
2766
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2746
2767
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2747
2768
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2748
|
-
{ name: '
|
|
2769
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2749
2770
|
],
|
|
2750
2771
|
},
|
|
2751
2772
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2778,7 +2799,7 @@ export const logswapLensAbi = [
|
|
|
2778
2799
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2779
2800
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2780
2801
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2781
|
-
{ name: '
|
|
2802
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2782
2803
|
],
|
|
2783
2804
|
},
|
|
2784
2805
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -2820,7 +2841,7 @@ export const logswapLensAbi = [
|
|
|
2820
2841
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2821
2842
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2822
2843
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2823
|
-
{ name: '
|
|
2844
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2824
2845
|
],
|
|
2825
2846
|
},
|
|
2826
2847
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2841,7 +2862,7 @@ export const logswapLensAbi = [
|
|
|
2841
2862
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2842
2863
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2843
2864
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2844
|
-
{ name: '
|
|
2865
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2845
2866
|
],
|
|
2846
2867
|
},
|
|
2847
2868
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2862,7 +2883,7 @@ export const logswapLensAbi = [
|
|
|
2862
2883
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2863
2884
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2864
2885
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2865
|
-
{ name: '
|
|
2886
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2866
2887
|
],
|
|
2867
2888
|
},
|
|
2868
2889
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -2883,7 +2904,7 @@ export const logswapLensAbi = [
|
|
|
2883
2904
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2884
2905
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2885
2906
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2886
|
-
{ name: '
|
|
2907
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2887
2908
|
],
|
|
2888
2909
|
},
|
|
2889
2910
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2940,7 +2961,7 @@ export const logswapLensAbi = [
|
|
|
2940
2961
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2941
2962
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2942
2963
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2943
|
-
{ name: '
|
|
2964
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2944
2965
|
],
|
|
2945
2966
|
},
|
|
2946
2967
|
],
|
|
@@ -2960,6 +2981,7 @@ export const logswapLensAbi = [
|
|
|
2960
2981
|
],
|
|
2961
2982
|
stateMutability: 'view',
|
|
2962
2983
|
},
|
|
2984
|
+
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2963
2985
|
{ type: 'error', inputs: [], name: 'BelowFloor' },
|
|
2964
2986
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
2965
2987
|
{ type: 'error', inputs: [], name: 'InvalidShares' },
|
|
@@ -3028,7 +3050,7 @@ export const logswapRouterAbi = [
|
|
|
3028
3050
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3029
3051
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3030
3052
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3031
|
-
{ name: '
|
|
3053
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3032
3054
|
],
|
|
3033
3055
|
},
|
|
3034
3056
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3056,7 +3078,7 @@ export const logswapRouterAbi = [
|
|
|
3056
3078
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3057
3079
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3058
3080
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3059
|
-
{ name: '
|
|
3081
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3060
3082
|
],
|
|
3061
3083
|
},
|
|
3062
3084
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3078,7 +3100,7 @@ export const logswapRouterAbi = [
|
|
|
3078
3100
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3079
3101
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3080
3102
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3081
|
-
{ name: '
|
|
3103
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3082
3104
|
],
|
|
3083
3105
|
},
|
|
3084
3106
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -3113,7 +3135,7 @@ export const logswapRouterAbi = [
|
|
|
3113
3135
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3114
3136
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3115
3137
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3116
|
-
{ name: '
|
|
3138
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3117
3139
|
],
|
|
3118
3140
|
},
|
|
3119
3141
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3141,7 +3163,7 @@ export const logswapRouterAbi = [
|
|
|
3141
3163
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3142
3164
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3143
3165
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3144
|
-
{ name: '
|
|
3166
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3145
3167
|
],
|
|
3146
3168
|
},
|
|
3147
3169
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3168,7 +3190,7 @@ export const logswapRouterAbi = [
|
|
|
3168
3190
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3169
3191
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3170
3192
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3171
|
-
{ name: '
|
|
3193
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3172
3194
|
],
|
|
3173
3195
|
},
|
|
3174
3196
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3206,7 +3228,7 @@ export const logswapRouterAbi = [
|
|
|
3206
3228
|
internalType: 'int256',
|
|
3207
3229
|
type: 'int256',
|
|
3208
3230
|
},
|
|
3209
|
-
{ name: '
|
|
3231
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3210
3232
|
],
|
|
3211
3233
|
},
|
|
3212
3234
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3237,7 +3259,7 @@ export const logswapRouterAbi = [
|
|
|
3237
3259
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3238
3260
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3239
3261
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3240
|
-
{ name: '
|
|
3262
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3241
3263
|
],
|
|
3242
3264
|
},
|
|
3243
3265
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -3266,7 +3288,7 @@ export const logswapRouterAbi = [
|
|
|
3266
3288
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3267
3289
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3268
3290
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3269
|
-
{ name: '
|
|
3291
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3270
3292
|
],
|
|
3271
3293
|
},
|
|
3272
3294
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3351,7 +3373,7 @@ export const logswapRouterAbi = [
|
|
|
3351
3373
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3352
3374
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3353
3375
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3354
|
-
{ name: '
|
|
3376
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3355
3377
|
],
|
|
3356
3378
|
},
|
|
3357
3379
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3380,7 +3402,7 @@ export const logswapRouterAbi = [
|
|
|
3380
3402
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3381
3403
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3382
3404
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3383
|
-
{ name: '
|
|
3405
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3384
3406
|
],
|
|
3385
3407
|
},
|
|
3386
3408
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3471,7 +3493,7 @@ export const logswapRouterAbi = [
|
|
|
3471
3493
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3472
3494
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3473
3495
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3474
|
-
{ name: '
|
|
3496
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3475
3497
|
],
|
|
3476
3498
|
},
|
|
3477
3499
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3500,7 +3522,7 @@ export const logswapRouterAbi = [
|
|
|
3500
3522
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3501
3523
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3502
3524
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3503
|
-
{ name: '
|
|
3525
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3504
3526
|
],
|
|
3505
3527
|
},
|
|
3506
3528
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3526,7 +3548,7 @@ export const logswapRouterAbi = [
|
|
|
3526
3548
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3527
3549
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3528
3550
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3529
|
-
{ name: '
|
|
3551
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3530
3552
|
],
|
|
3531
3553
|
},
|
|
3532
3554
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3557,7 +3579,7 @@ export const logswapRouterAbi = [
|
|
|
3557
3579
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3558
3580
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3559
3581
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3560
|
-
{ name: '
|
|
3582
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3561
3583
|
],
|
|
3562
3584
|
},
|
|
3563
3585
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3589,7 +3611,7 @@ export const logswapRouterAbi = [
|
|
|
3589
3611
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3590
3612
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3591
3613
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3592
|
-
{ name: '
|
|
3614
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3593
3615
|
],
|
|
3594
3616
|
},
|
|
3595
3617
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
@@ -3727,6 +3749,20 @@ export const padPolicyAbi = [
|
|
|
3727
3749
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3728
3750
|
stateMutability: 'view',
|
|
3729
3751
|
},
|
|
3752
|
+
{
|
|
3753
|
+
type: 'function',
|
|
3754
|
+
inputs: [],
|
|
3755
|
+
name: 'feeCurated',
|
|
3756
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3757
|
+
stateMutability: 'view',
|
|
3758
|
+
},
|
|
3759
|
+
{
|
|
3760
|
+
type: 'function',
|
|
3761
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3762
|
+
name: 'feeListed',
|
|
3763
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3764
|
+
stateMutability: 'view',
|
|
3765
|
+
},
|
|
3730
3766
|
{
|
|
3731
3767
|
type: 'function',
|
|
3732
3768
|
inputs: [],
|
|
@@ -3797,10 +3833,11 @@ export const padPolicyAbi = [
|
|
|
3797
3833
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3798
3834
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3799
3835
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3800
|
-
{ name: '
|
|
3836
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3801
3837
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3802
3838
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3803
3839
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3840
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
3804
3841
|
],
|
|
3805
3842
|
},
|
|
3806
3843
|
],
|
|
@@ -3866,7 +3903,7 @@ export const padPolicyAbi = [
|
|
|
3866
3903
|
type: 'function',
|
|
3867
3904
|
inputs: [
|
|
3868
3905
|
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3869
|
-
{ name: '
|
|
3906
|
+
{ name: 'burnShare', internalType: 'uint256', type: 'uint256' },
|
|
3870
3907
|
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3871
3908
|
],
|
|
3872
3909
|
name: 'pack',
|
|
@@ -3911,6 +3948,23 @@ export const padPolicyAbi = [
|
|
|
3911
3948
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3912
3949
|
stateMutability: 'view',
|
|
3913
3950
|
},
|
|
3951
|
+
{
|
|
3952
|
+
type: 'function',
|
|
3953
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
3954
|
+
name: 'setFeeCurated',
|
|
3955
|
+
outputs: [],
|
|
3956
|
+
stateMutability: 'nonpayable',
|
|
3957
|
+
},
|
|
3958
|
+
{
|
|
3959
|
+
type: 'function',
|
|
3960
|
+
inputs: [
|
|
3961
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
3962
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3963
|
+
],
|
|
3964
|
+
name: 'setFeeListed',
|
|
3965
|
+
outputs: [],
|
|
3966
|
+
stateMutability: 'nonpayable',
|
|
3967
|
+
},
|
|
3914
3968
|
{
|
|
3915
3969
|
type: 'function',
|
|
3916
3970
|
inputs: [
|
|
@@ -3959,7 +4013,7 @@ export const padPolicyAbi = [
|
|
|
3959
4013
|
name: 'splitOf',
|
|
3960
4014
|
outputs: [
|
|
3961
4015
|
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
3962
|
-
{ name: '
|
|
4016
|
+
{ name: 'burnShare', internalType: 'uint64', type: 'uint64' },
|
|
3963
4017
|
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
3964
4018
|
],
|
|
3965
4019
|
stateMutability: 'view',
|
|
@@ -4025,6 +4079,23 @@ export const padPolicyAbi = [
|
|
|
4025
4079
|
],
|
|
4026
4080
|
name: 'AuthoritySet',
|
|
4027
4081
|
},
|
|
4082
|
+
{
|
|
4083
|
+
type: 'event',
|
|
4084
|
+
anonymous: false,
|
|
4085
|
+
inputs: [
|
|
4086
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4087
|
+
],
|
|
4088
|
+
name: 'FeeCuratedSet',
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
type: 'event',
|
|
4092
|
+
anonymous: false,
|
|
4093
|
+
inputs: [
|
|
4094
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4095
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4096
|
+
],
|
|
4097
|
+
name: 'FeeListed',
|
|
4098
|
+
},
|
|
4028
4099
|
{
|
|
4029
4100
|
type: 'event',
|
|
4030
4101
|
anonymous: false,
|
|
@@ -4147,7 +4218,7 @@ export const padPolicyAbi = [
|
|
|
4147
4218
|
indexed: false,
|
|
4148
4219
|
},
|
|
4149
4220
|
{
|
|
4150
|
-
name: '
|
|
4221
|
+
name: 'burnShare',
|
|
4151
4222
|
internalType: 'uint256',
|
|
4152
4223
|
type: 'uint256',
|
|
4153
4224
|
indexed: false,
|
|
@@ -4163,6 +4234,11 @@ export const padPolicyAbi = [
|
|
|
4163
4234
|
},
|
|
4164
4235
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4165
4236
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4237
|
+
{
|
|
4238
|
+
type: 'error',
|
|
4239
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4240
|
+
name: 'FeeNotListed',
|
|
4241
|
+
},
|
|
4166
4242
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4167
4243
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4168
4244
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -4214,6 +4290,20 @@ export const polPolicyAbi = [
|
|
|
4214
4290
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4215
4291
|
stateMutability: 'view',
|
|
4216
4292
|
},
|
|
4293
|
+
{
|
|
4294
|
+
type: 'function',
|
|
4295
|
+
inputs: [],
|
|
4296
|
+
name: 'feeCurated',
|
|
4297
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4298
|
+
stateMutability: 'view',
|
|
4299
|
+
},
|
|
4300
|
+
{
|
|
4301
|
+
type: 'function',
|
|
4302
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4303
|
+
name: 'feeListed',
|
|
4304
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4305
|
+
stateMutability: 'view',
|
|
4306
|
+
},
|
|
4217
4307
|
{
|
|
4218
4308
|
type: 'function',
|
|
4219
4309
|
inputs: [],
|
|
@@ -4298,10 +4388,11 @@ export const polPolicyAbi = [
|
|
|
4298
4388
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4299
4389
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4300
4390
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4301
|
-
{ name: '
|
|
4391
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4302
4392
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4303
4393
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4304
4394
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4395
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
4305
4396
|
],
|
|
4306
4397
|
},
|
|
4307
4398
|
],
|
|
@@ -4394,6 +4485,23 @@ export const polPolicyAbi = [
|
|
|
4394
4485
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4395
4486
|
stateMutability: 'view',
|
|
4396
4487
|
},
|
|
4488
|
+
{
|
|
4489
|
+
type: 'function',
|
|
4490
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4491
|
+
name: 'setFeeCurated',
|
|
4492
|
+
outputs: [],
|
|
4493
|
+
stateMutability: 'nonpayable',
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
type: 'function',
|
|
4497
|
+
inputs: [
|
|
4498
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4499
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4500
|
+
],
|
|
4501
|
+
name: 'setFeeListed',
|
|
4502
|
+
outputs: [],
|
|
4503
|
+
stateMutability: 'nonpayable',
|
|
4504
|
+
},
|
|
4397
4505
|
{
|
|
4398
4506
|
type: 'function',
|
|
4399
4507
|
inputs: [
|
|
@@ -4471,6 +4579,23 @@ export const polPolicyAbi = [
|
|
|
4471
4579
|
],
|
|
4472
4580
|
name: 'AuthoritySet',
|
|
4473
4581
|
},
|
|
4582
|
+
{
|
|
4583
|
+
type: 'event',
|
|
4584
|
+
anonymous: false,
|
|
4585
|
+
inputs: [
|
|
4586
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4587
|
+
],
|
|
4588
|
+
name: 'FeeCuratedSet',
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
type: 'event',
|
|
4592
|
+
anonymous: false,
|
|
4593
|
+
inputs: [
|
|
4594
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4595
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4596
|
+
],
|
|
4597
|
+
name: 'FeeListed',
|
|
4598
|
+
},
|
|
4474
4599
|
{
|
|
4475
4600
|
type: 'event',
|
|
4476
4601
|
anonymous: false,
|
|
@@ -4533,6 +4658,11 @@ export const polPolicyAbi = [
|
|
|
4533
4658
|
},
|
|
4534
4659
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4535
4660
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4661
|
+
{
|
|
4662
|
+
type: 'error',
|
|
4663
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4664
|
+
name: 'FeeNotListed',
|
|
4665
|
+
},
|
|
4536
4666
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4537
4667
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4538
4668
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -4611,10 +4741,11 @@ export const policyRegistryAbi = [
|
|
|
4611
4741
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4612
4742
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4613
4743
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4614
|
-
{ name: '
|
|
4744
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4615
4745
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4616
4746
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4617
4747
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4748
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
4618
4749
|
],
|
|
4619
4750
|
},
|
|
4620
4751
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -4886,6 +5017,20 @@ export const privatePolicyAbi = [
|
|
|
4886
5017
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4887
5018
|
stateMutability: 'view',
|
|
4888
5019
|
},
|
|
5020
|
+
{
|
|
5021
|
+
type: 'function',
|
|
5022
|
+
inputs: [],
|
|
5023
|
+
name: 'feeCurated',
|
|
5024
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5025
|
+
stateMutability: 'view',
|
|
5026
|
+
},
|
|
5027
|
+
{
|
|
5028
|
+
type: 'function',
|
|
5029
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5030
|
+
name: 'feeListed',
|
|
5031
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5032
|
+
stateMutability: 'view',
|
|
5033
|
+
},
|
|
4889
5034
|
{
|
|
4890
5035
|
type: 'function',
|
|
4891
5036
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5007,10 +5152,11 @@ export const privatePolicyAbi = [
|
|
|
5007
5152
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5008
5153
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5009
5154
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5010
|
-
{ name: '
|
|
5155
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5011
5156
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5012
5157
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5013
5158
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5159
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
5014
5160
|
],
|
|
5015
5161
|
},
|
|
5016
5162
|
],
|
|
@@ -5124,6 +5270,23 @@ export const privatePolicyAbi = [
|
|
|
5124
5270
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5125
5271
|
stateMutability: 'view',
|
|
5126
5272
|
},
|
|
5273
|
+
{
|
|
5274
|
+
type: 'function',
|
|
5275
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5276
|
+
name: 'setFeeCurated',
|
|
5277
|
+
outputs: [],
|
|
5278
|
+
stateMutability: 'nonpayable',
|
|
5279
|
+
},
|
|
5280
|
+
{
|
|
5281
|
+
type: 'function',
|
|
5282
|
+
inputs: [
|
|
5283
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
5284
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5285
|
+
],
|
|
5286
|
+
name: 'setFeeListed',
|
|
5287
|
+
outputs: [],
|
|
5288
|
+
stateMutability: 'nonpayable',
|
|
5289
|
+
},
|
|
5127
5290
|
{
|
|
5128
5291
|
type: 'function',
|
|
5129
5292
|
inputs: [
|
|
@@ -5224,6 +5387,23 @@ export const privatePolicyAbi = [
|
|
|
5224
5387
|
],
|
|
5225
5388
|
name: 'AuthoritySet',
|
|
5226
5389
|
},
|
|
5390
|
+
{
|
|
5391
|
+
type: 'event',
|
|
5392
|
+
anonymous: false,
|
|
5393
|
+
inputs: [
|
|
5394
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5395
|
+
],
|
|
5396
|
+
name: 'FeeCuratedSet',
|
|
5397
|
+
},
|
|
5398
|
+
{
|
|
5399
|
+
type: 'event',
|
|
5400
|
+
anonymous: false,
|
|
5401
|
+
inputs: [
|
|
5402
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
5403
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5404
|
+
],
|
|
5405
|
+
name: 'FeeListed',
|
|
5406
|
+
},
|
|
5227
5407
|
{
|
|
5228
5408
|
type: 'event',
|
|
5229
5409
|
anonymous: false,
|
|
@@ -5344,6 +5524,11 @@ export const privatePolicyAbi = [
|
|
|
5344
5524
|
},
|
|
5345
5525
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5346
5526
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5527
|
+
{
|
|
5528
|
+
type: 'error',
|
|
5529
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5530
|
+
name: 'FeeNotListed',
|
|
5531
|
+
},
|
|
5347
5532
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5348
5533
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5349
5534
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -5401,6 +5586,20 @@ export const publicPolicyAbi = [
|
|
|
5401
5586
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5402
5587
|
stateMutability: 'view',
|
|
5403
5588
|
},
|
|
5589
|
+
{
|
|
5590
|
+
type: 'function',
|
|
5591
|
+
inputs: [],
|
|
5592
|
+
name: 'feeCurated',
|
|
5593
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5594
|
+
stateMutability: 'view',
|
|
5595
|
+
},
|
|
5596
|
+
{
|
|
5597
|
+
type: 'function',
|
|
5598
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5599
|
+
name: 'feeListed',
|
|
5600
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5601
|
+
stateMutability: 'view',
|
|
5602
|
+
},
|
|
5404
5603
|
{
|
|
5405
5604
|
type: 'function',
|
|
5406
5605
|
inputs: [],
|
|
@@ -5478,10 +5677,11 @@ export const publicPolicyAbi = [
|
|
|
5478
5677
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5479
5678
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5480
5679
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5481
|
-
{ name: '
|
|
5680
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5482
5681
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5483
5682
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5484
5683
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5684
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
5485
5685
|
],
|
|
5486
5686
|
},
|
|
5487
5687
|
],
|
|
@@ -5581,6 +5781,23 @@ export const publicPolicyAbi = [
|
|
|
5581
5781
|
outputs: [],
|
|
5582
5782
|
stateMutability: 'nonpayable',
|
|
5583
5783
|
},
|
|
5784
|
+
{
|
|
5785
|
+
type: 'function',
|
|
5786
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5787
|
+
name: 'setFeeCurated',
|
|
5788
|
+
outputs: [],
|
|
5789
|
+
stateMutability: 'nonpayable',
|
|
5790
|
+
},
|
|
5791
|
+
{
|
|
5792
|
+
type: 'function',
|
|
5793
|
+
inputs: [
|
|
5794
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
5795
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5796
|
+
],
|
|
5797
|
+
name: 'setFeeListed',
|
|
5798
|
+
outputs: [],
|
|
5799
|
+
stateMutability: 'nonpayable',
|
|
5800
|
+
},
|
|
5584
5801
|
{
|
|
5585
5802
|
type: 'function',
|
|
5586
5803
|
inputs: [
|
|
@@ -5666,6 +5883,23 @@ export const publicPolicyAbi = [
|
|
|
5666
5883
|
],
|
|
5667
5884
|
name: 'CuratedSet',
|
|
5668
5885
|
},
|
|
5886
|
+
{
|
|
5887
|
+
type: 'event',
|
|
5888
|
+
anonymous: false,
|
|
5889
|
+
inputs: [
|
|
5890
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5891
|
+
],
|
|
5892
|
+
name: 'FeeCuratedSet',
|
|
5893
|
+
},
|
|
5894
|
+
{
|
|
5895
|
+
type: 'event',
|
|
5896
|
+
anonymous: false,
|
|
5897
|
+
inputs: [
|
|
5898
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
5899
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5900
|
+
],
|
|
5901
|
+
name: 'FeeListed',
|
|
5902
|
+
},
|
|
5669
5903
|
{
|
|
5670
5904
|
type: 'event',
|
|
5671
5905
|
anonymous: false,
|
|
@@ -5723,8 +5957,14 @@ export const publicPolicyAbi = [
|
|
|
5723
5957
|
},
|
|
5724
5958
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5725
5959
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5960
|
+
{
|
|
5961
|
+
type: 'error',
|
|
5962
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5963
|
+
name: 'FeeNotListed',
|
|
5964
|
+
},
|
|
5726
5965
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5727
5966
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5967
|
+
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
5728
5968
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5729
5969
|
{
|
|
5730
5970
|
type: 'error',
|