@logswap/sdk 0.5.71 → 0.5.72
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 +1 -1
- 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 +1 -1
- package/src/keys.ts +6 -5
- package/src/pools.ts +7 -6
- package/src/positions.ts +3 -2
package/src/generated.ts
CHANGED
|
@@ -13,7 +13,7 @@ export const cPoolManagerAbi = [
|
|
|
13
13
|
{
|
|
14
14
|
type: 'function',
|
|
15
15
|
inputs: [],
|
|
16
|
-
name: '
|
|
16
|
+
name: 'SWAP_FEE_TAX_MAX',
|
|
17
17
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
18
18
|
stateMutability: 'view',
|
|
19
19
|
},
|
|
@@ -67,7 +67,7 @@ export const cPoolManagerAbi = [
|
|
|
67
67
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
68
68
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
69
69
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
70
|
-
{ name: '
|
|
70
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
71
71
|
],
|
|
72
72
|
},
|
|
73
73
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -103,7 +103,7 @@ export const cPoolManagerAbi = [
|
|
|
103
103
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
104
104
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
105
105
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
106
|
-
{ name: '
|
|
106
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
107
107
|
],
|
|
108
108
|
},
|
|
109
109
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -131,7 +131,7 @@ export const cPoolManagerAbi = [
|
|
|
131
131
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
132
132
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
133
133
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
134
|
-
{ name: '
|
|
134
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
135
135
|
],
|
|
136
136
|
},
|
|
137
137
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -160,7 +160,7 @@ export const cPoolManagerAbi = [
|
|
|
160
160
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
161
161
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
162
162
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
163
|
-
{ name: '
|
|
163
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
164
164
|
],
|
|
165
165
|
},
|
|
166
166
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -254,7 +254,7 @@ export const cPoolManagerAbi = [
|
|
|
254
254
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
255
255
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
256
256
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
257
|
-
{ name: '
|
|
257
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
258
258
|
],
|
|
259
259
|
},
|
|
260
260
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -274,7 +274,7 @@ export const cPoolManagerAbi = [
|
|
|
274
274
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
275
275
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
276
276
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
277
|
-
{ name: '
|
|
277
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
278
278
|
],
|
|
279
279
|
},
|
|
280
280
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -295,7 +295,7 @@ export const cPoolManagerAbi = [
|
|
|
295
295
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
296
296
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
297
297
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
298
|
-
{ name: '
|
|
298
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
299
299
|
],
|
|
300
300
|
},
|
|
301
301
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -332,7 +332,7 @@ export const cPoolManagerAbi = [
|
|
|
332
332
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
333
333
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
334
334
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
335
|
-
{ name: '
|
|
335
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
336
336
|
],
|
|
337
337
|
},
|
|
338
338
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -376,25 +376,6 @@ export const cPoolManagerAbi = [
|
|
|
376
376
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
377
377
|
stateMutability: 'view',
|
|
378
378
|
},
|
|
379
|
-
{
|
|
380
|
-
type: 'function',
|
|
381
|
-
inputs: [
|
|
382
|
-
{
|
|
383
|
-
name: 'key',
|
|
384
|
-
internalType: 'struct PoolKey',
|
|
385
|
-
type: 'tuple',
|
|
386
|
-
components: [
|
|
387
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
388
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
389
|
-
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
390
|
-
{ name: 'phi', internalType: 'uint256', type: 'uint256' },
|
|
391
|
-
],
|
|
392
|
-
},
|
|
393
|
-
],
|
|
394
|
-
name: 'phiOf',
|
|
395
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
396
|
-
stateMutability: 'view',
|
|
397
|
-
},
|
|
398
379
|
{
|
|
399
380
|
type: 'function',
|
|
400
381
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -425,7 +406,7 @@ export const cPoolManagerAbi = [
|
|
|
425
406
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
426
407
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
427
408
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
428
|
-
{ name: '
|
|
409
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
429
410
|
],
|
|
430
411
|
},
|
|
431
412
|
{ name: 'exactIn', internalType: 'bool', type: 'bool' },
|
|
@@ -436,15 +417,6 @@ export const cPoolManagerAbi = [
|
|
|
436
417
|
outputs: [],
|
|
437
418
|
stateMutability: 'nonpayable',
|
|
438
419
|
},
|
|
439
|
-
{
|
|
440
|
-
type: 'function',
|
|
441
|
-
inputs: [
|
|
442
|
-
{ name: 'mintFeeProtocolCut', internalType: 'uint256', type: 'uint256' },
|
|
443
|
-
],
|
|
444
|
-
name: 'setFeeParams',
|
|
445
|
-
outputs: [],
|
|
446
|
-
stateMutability: 'nonpayable',
|
|
447
|
-
},
|
|
448
420
|
{
|
|
449
421
|
type: 'function',
|
|
450
422
|
inputs: [
|
|
@@ -455,6 +427,13 @@ export const cPoolManagerAbi = [
|
|
|
455
427
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
456
428
|
stateMutability: 'payable',
|
|
457
429
|
},
|
|
430
|
+
{
|
|
431
|
+
type: 'function',
|
|
432
|
+
inputs: [{ name: 'tax', internalType: 'uint256', type: 'uint256' }],
|
|
433
|
+
name: 'setSwapFeeTax',
|
|
434
|
+
outputs: [],
|
|
435
|
+
stateMutability: 'nonpayable',
|
|
436
|
+
},
|
|
458
437
|
{
|
|
459
438
|
type: 'function',
|
|
460
439
|
inputs: [],
|
|
@@ -480,7 +459,7 @@ export const cPoolManagerAbi = [
|
|
|
480
459
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
481
460
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
482
461
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
483
|
-
{ name: '
|
|
462
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
484
463
|
],
|
|
485
464
|
},
|
|
486
465
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -494,6 +473,32 @@ export const cPoolManagerAbi = [
|
|
|
494
473
|
],
|
|
495
474
|
stateMutability: 'nonpayable',
|
|
496
475
|
},
|
|
476
|
+
{
|
|
477
|
+
type: 'function',
|
|
478
|
+
inputs: [
|
|
479
|
+
{
|
|
480
|
+
name: 'key',
|
|
481
|
+
internalType: 'struct PoolKey',
|
|
482
|
+
type: 'tuple',
|
|
483
|
+
components: [
|
|
484
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
485
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
486
|
+
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
487
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
488
|
+
],
|
|
489
|
+
},
|
|
490
|
+
],
|
|
491
|
+
name: 'swapFeeOf',
|
|
492
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
493
|
+
stateMutability: 'view',
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
type: 'function',
|
|
497
|
+
inputs: [],
|
|
498
|
+
name: 'swapFeeTax',
|
|
499
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
500
|
+
stateMutability: 'view',
|
|
501
|
+
},
|
|
497
502
|
{
|
|
498
503
|
type: 'function',
|
|
499
504
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -591,7 +596,7 @@ export const cPoolManagerAbi = [
|
|
|
591
596
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
592
597
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
593
598
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
594
|
-
{ name: '
|
|
599
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
595
600
|
],
|
|
596
601
|
},
|
|
597
602
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -766,19 +771,6 @@ export const cPoolManagerAbi = [
|
|
|
766
771
|
],
|
|
767
772
|
name: 'CollectorProposed',
|
|
768
773
|
},
|
|
769
|
-
{
|
|
770
|
-
type: 'event',
|
|
771
|
-
anonymous: false,
|
|
772
|
-
inputs: [
|
|
773
|
-
{
|
|
774
|
-
name: 'mintFeeProtocolCut',
|
|
775
|
-
internalType: 'uint256',
|
|
776
|
-
type: 'uint256',
|
|
777
|
-
indexed: false,
|
|
778
|
-
},
|
|
779
|
-
],
|
|
780
|
-
name: 'FeeParamsSet',
|
|
781
|
-
},
|
|
782
774
|
{
|
|
783
775
|
type: 'event',
|
|
784
776
|
anonymous: false,
|
|
@@ -819,7 +811,12 @@ export const cPoolManagerAbi = [
|
|
|
819
811
|
type: 'int256',
|
|
820
812
|
indexed: false,
|
|
821
813
|
},
|
|
822
|
-
{
|
|
814
|
+
{
|
|
815
|
+
name: 'swapFee',
|
|
816
|
+
internalType: 'uint256',
|
|
817
|
+
type: 'uint256',
|
|
818
|
+
indexed: false,
|
|
819
|
+
},
|
|
823
820
|
{ name: 'x0', internalType: 'int256', type: 'int256', indexed: false },
|
|
824
821
|
],
|
|
825
822
|
name: 'Initialize',
|
|
@@ -928,7 +925,12 @@ export const cPoolManagerAbi = [
|
|
|
928
925
|
},
|
|
929
926
|
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
930
927
|
{ name: 'newX', internalType: 'int256', type: 'int256', indexed: false },
|
|
931
|
-
{
|
|
928
|
+
{
|
|
929
|
+
name: 'swapFee',
|
|
930
|
+
internalType: 'uint256',
|
|
931
|
+
type: 'uint256',
|
|
932
|
+
indexed: false,
|
|
933
|
+
},
|
|
932
934
|
{ name: 'F', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
933
935
|
{
|
|
934
936
|
name: 'bigSigma',
|
|
@@ -945,6 +947,14 @@ export const cPoolManagerAbi = [
|
|
|
945
947
|
],
|
|
946
948
|
name: 'Swap',
|
|
947
949
|
},
|
|
950
|
+
{
|
|
951
|
+
type: 'event',
|
|
952
|
+
anonymous: false,
|
|
953
|
+
inputs: [
|
|
954
|
+
{ name: 'tax', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
955
|
+
],
|
|
956
|
+
name: 'SwapFeeTaxSet',
|
|
957
|
+
},
|
|
948
958
|
{
|
|
949
959
|
type: 'event',
|
|
950
960
|
anonymous: false,
|
|
@@ -1093,27 +1103,6 @@ export const fPoolManagerAbi = [
|
|
|
1093
1103
|
],
|
|
1094
1104
|
stateMutability: 'nonpayable',
|
|
1095
1105
|
},
|
|
1096
|
-
{
|
|
1097
|
-
type: 'function',
|
|
1098
|
-
inputs: [],
|
|
1099
|
-
name: 'BURN_MAX',
|
|
1100
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1101
|
-
stateMutability: 'view',
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
type: 'function',
|
|
1105
|
-
inputs: [],
|
|
1106
|
-
name: 'MINT_FEE',
|
|
1107
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1108
|
-
stateMutability: 'view',
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
type: 'function',
|
|
1112
|
-
inputs: [],
|
|
1113
|
-
name: 'MINT_FEE_PROTOCOL_CUT',
|
|
1114
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1115
|
-
stateMutability: 'view',
|
|
1116
|
-
},
|
|
1117
1106
|
{
|
|
1118
1107
|
type: 'function',
|
|
1119
1108
|
inputs: [],
|
|
@@ -1160,20 +1149,6 @@ export const fPoolManagerAbi = [
|
|
|
1160
1149
|
outputs: [{ name: 'amount', internalType: 'uint256', type: 'uint256' }],
|
|
1161
1150
|
stateMutability: 'view',
|
|
1162
1151
|
},
|
|
1163
|
-
{
|
|
1164
|
-
type: 'function',
|
|
1165
|
-
inputs: [
|
|
1166
|
-
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
1167
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1168
|
-
],
|
|
1169
|
-
name: 'bundleOf',
|
|
1170
|
-
outputs: [
|
|
1171
|
-
{ name: 'supply', internalType: 'uint256', type: 'uint256' },
|
|
1172
|
-
{ name: 'quote', internalType: 'uint256', type: 'uint256' },
|
|
1173
|
-
{ name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1174
|
-
],
|
|
1175
|
-
stateMutability: 'view',
|
|
1176
|
-
},
|
|
1177
1152
|
{
|
|
1178
1153
|
type: 'function',
|
|
1179
1154
|
inputs: [
|
|
@@ -1221,13 +1196,6 @@ export const fPoolManagerAbi = [
|
|
|
1221
1196
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1222
1197
|
stateMutability: 'view',
|
|
1223
1198
|
},
|
|
1224
|
-
{
|
|
1225
|
-
type: 'function',
|
|
1226
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1227
|
-
name: 'compositeX',
|
|
1228
|
-
outputs: [{ name: 'X', internalType: 'int256', type: 'int256' }],
|
|
1229
|
-
stateMutability: 'view',
|
|
1230
|
-
},
|
|
1231
1199
|
{
|
|
1232
1200
|
type: 'function',
|
|
1233
1201
|
inputs: [{ name: 'id', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1247,55 +1215,40 @@ export const fPoolManagerAbi = [
|
|
|
1247
1215
|
},
|
|
1248
1216
|
{
|
|
1249
1217
|
type: 'function',
|
|
1250
|
-
inputs: [
|
|
1251
|
-
|
|
1252
|
-
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
1253
|
-
{ name: 'holder', internalType: 'address', type: 'address' },
|
|
1254
|
-
],
|
|
1255
|
-
name: 'dividendOf',
|
|
1218
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1219
|
+
name: 'dps',
|
|
1256
1220
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1257
1221
|
stateMutability: 'view',
|
|
1258
1222
|
},
|
|
1259
1223
|
{
|
|
1260
1224
|
type: 'function',
|
|
1261
|
-
inputs: [{ name: '', internalType: '
|
|
1262
|
-
name: '
|
|
1263
|
-
outputs: [{ name: '', internalType: '
|
|
1225
|
+
inputs: [{ name: 'slot', internalType: 'bytes32', type: 'bytes32' }],
|
|
1226
|
+
name: 'extsload',
|
|
1227
|
+
outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
1264
1228
|
stateMutability: 'view',
|
|
1265
1229
|
},
|
|
1266
1230
|
{
|
|
1267
1231
|
type: 'function',
|
|
1268
|
-
inputs: [
|
|
1269
|
-
|
|
1270
|
-
|
|
1232
|
+
inputs: [
|
|
1233
|
+
{ name: 'startSlot', internalType: 'bytes32', type: 'bytes32' },
|
|
1234
|
+
{ name: 'nSlots', internalType: 'uint256', type: 'uint256' },
|
|
1235
|
+
],
|
|
1236
|
+
name: 'extsload',
|
|
1237
|
+
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1271
1238
|
stateMutability: 'view',
|
|
1272
1239
|
},
|
|
1273
1240
|
{
|
|
1274
1241
|
type: 'function',
|
|
1275
|
-
inputs: [{ name: '
|
|
1276
|
-
name: '
|
|
1277
|
-
outputs: [
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1286
|
-
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
1287
|
-
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
1288
|
-
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
1289
|
-
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
1290
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
1291
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
1292
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
1293
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
1294
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
1295
|
-
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
1296
|
-
],
|
|
1297
|
-
},
|
|
1298
|
-
],
|
|
1242
|
+
inputs: [{ name: 'slots', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1243
|
+
name: 'extsload',
|
|
1244
|
+
outputs: [{ name: '', internalType: 'bytes32[]', type: 'bytes32[]' }],
|
|
1245
|
+
stateMutability: 'view',
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
type: 'function',
|
|
1249
|
+
inputs: [],
|
|
1250
|
+
name: 'feeCollector',
|
|
1251
|
+
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1299
1252
|
stateMutability: 'view',
|
|
1300
1253
|
},
|
|
1301
1254
|
{
|
|
@@ -1320,10 +1273,11 @@ export const fPoolManagerAbi = [
|
|
|
1320
1273
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
1321
1274
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
1322
1275
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
1323
|
-
{ name: '
|
|
1276
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
1324
1277
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
1325
1278
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
1326
1279
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
1280
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
1327
1281
|
],
|
|
1328
1282
|
},
|
|
1329
1283
|
],
|
|
@@ -1351,17 +1305,13 @@ export const fPoolManagerAbi = [
|
|
|
1351
1305
|
{
|
|
1352
1306
|
type: 'function',
|
|
1353
1307
|
inputs: [
|
|
1354
|
-
{ name: '
|
|
1355
|
-
{ name: '
|
|
1356
|
-
|
|
1357
|
-
name: 'legOf',
|
|
1358
|
-
outputs: [
|
|
1359
|
-
{ name: 'base', internalType: 'address', type: 'address' },
|
|
1360
|
-
{ name: 'weight', internalType: 'uint256', type: 'uint256' },
|
|
1361
|
-
{ name: 'x', internalType: 'int256', type: 'int256' },
|
|
1362
|
-
{ name: 'reserve', internalType: 'uint256', type: 'uint256' },
|
|
1308
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1309
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1310
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1363
1311
|
],
|
|
1364
|
-
|
|
1312
|
+
name: 'lock',
|
|
1313
|
+
outputs: [],
|
|
1314
|
+
stateMutability: 'nonpayable',
|
|
1365
1315
|
},
|
|
1366
1316
|
{
|
|
1367
1317
|
type: 'function',
|
|
@@ -1414,13 +1364,6 @@ export const fPoolManagerAbi = [
|
|
|
1414
1364
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
1415
1365
|
stateMutability: 'view',
|
|
1416
1366
|
},
|
|
1417
|
-
{
|
|
1418
|
-
type: 'function',
|
|
1419
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1420
|
-
name: 'phiB4B',
|
|
1421
|
-
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1422
|
-
stateMutability: 'view',
|
|
1423
|
-
},
|
|
1424
1367
|
{
|
|
1425
1368
|
type: 'function',
|
|
1426
1369
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1585,6 +1528,13 @@ export const fPoolManagerAbi = [
|
|
|
1585
1528
|
outputs: [{ name: 'amountOut', internalType: 'uint256', type: 'uint256' }],
|
|
1586
1529
|
stateMutability: 'nonpayable',
|
|
1587
1530
|
},
|
|
1531
|
+
{
|
|
1532
|
+
type: 'function',
|
|
1533
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1534
|
+
name: 'swapFeeB4B',
|
|
1535
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
1536
|
+
stateMutability: 'view',
|
|
1537
|
+
},
|
|
1588
1538
|
{
|
|
1589
1539
|
type: 'function',
|
|
1590
1540
|
inputs: [
|
|
@@ -1623,13 +1573,6 @@ export const fPoolManagerAbi = [
|
|
|
1623
1573
|
outputs: [],
|
|
1624
1574
|
stateMutability: 'nonpayable',
|
|
1625
1575
|
},
|
|
1626
|
-
{
|
|
1627
|
-
type: 'function',
|
|
1628
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
1629
|
-
name: 'theta',
|
|
1630
|
-
outputs: [{ name: '', internalType: 'int256', type: 'int256' }],
|
|
1631
|
-
stateMutability: 'view',
|
|
1632
|
-
},
|
|
1633
1576
|
{
|
|
1634
1577
|
type: 'function',
|
|
1635
1578
|
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -1662,16 +1605,21 @@ export const fPoolManagerAbi = [
|
|
|
1662
1605
|
},
|
|
1663
1606
|
{
|
|
1664
1607
|
type: 'function',
|
|
1665
|
-
inputs: [{ name: '
|
|
1666
|
-
name: '
|
|
1667
|
-
outputs: [{ name: '', internalType: '
|
|
1668
|
-
stateMutability: '
|
|
1608
|
+
inputs: [{ name: 'data', internalType: 'bytes', type: 'bytes' }],
|
|
1609
|
+
name: 'unlock',
|
|
1610
|
+
outputs: [{ name: 'result', internalType: 'bytes', type: 'bytes' }],
|
|
1611
|
+
stateMutability: 'nonpayable',
|
|
1669
1612
|
},
|
|
1670
1613
|
{
|
|
1671
1614
|
type: 'function',
|
|
1672
|
-
inputs: [
|
|
1615
|
+
inputs: [
|
|
1616
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
1617
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
1618
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
1619
|
+
{ name: 'to', internalType: 'address', type: 'address' },
|
|
1620
|
+
],
|
|
1673
1621
|
name: 'unlock',
|
|
1674
|
-
outputs: [
|
|
1622
|
+
outputs: [],
|
|
1675
1623
|
stateMutability: 'nonpayable',
|
|
1676
1624
|
},
|
|
1677
1625
|
{
|
|
@@ -1854,13 +1802,19 @@ export const fPoolManagerAbi = [
|
|
|
1854
1802
|
type: 'uint256[]',
|
|
1855
1803
|
indexed: false,
|
|
1856
1804
|
},
|
|
1857
|
-
{
|
|
1805
|
+
{
|
|
1806
|
+
name: 'swapFee',
|
|
1807
|
+
internalType: 'uint256',
|
|
1808
|
+
type: 'uint256',
|
|
1809
|
+
indexed: false,
|
|
1810
|
+
},
|
|
1858
1811
|
{
|
|
1859
1812
|
name: 'policy',
|
|
1860
1813
|
internalType: 'address',
|
|
1861
1814
|
type: 'address',
|
|
1862
1815
|
indexed: false,
|
|
1863
1816
|
},
|
|
1817
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24', indexed: false },
|
|
1864
1818
|
],
|
|
1865
1819
|
name: 'FInitialize',
|
|
1866
1820
|
},
|
|
@@ -2129,24 +2083,17 @@ export const fPoolManagerAbi = [
|
|
|
2129
2083
|
},
|
|
2130
2084
|
{ name: 'cut', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2131
2085
|
{
|
|
2132
|
-
name: '
|
|
2086
|
+
name: 'burnt',
|
|
2133
2087
|
internalType: 'uint256',
|
|
2134
2088
|
type: 'uint256',
|
|
2135
2089
|
indexed: false,
|
|
2136
2090
|
},
|
|
2137
2091
|
{
|
|
2138
|
-
name: '
|
|
2092
|
+
name: 'deepened',
|
|
2139
2093
|
internalType: 'uint256',
|
|
2140
2094
|
type: 'uint256',
|
|
2141
2095
|
indexed: false,
|
|
2142
2096
|
},
|
|
2143
|
-
{
|
|
2144
|
-
name: 'burn',
|
|
2145
|
-
internalType: 'uint256',
|
|
2146
|
-
type: 'uint256',
|
|
2147
|
-
indexed: false,
|
|
2148
|
-
},
|
|
2149
|
-
{ name: 'dL', internalType: 'uint256', type: 'uint256', indexed: false },
|
|
2150
2097
|
],
|
|
2151
2098
|
name: 'Regenerated',
|
|
2152
2099
|
},
|
|
@@ -2236,12 +2183,14 @@ export const fPoolManagerAbi = [
|
|
|
2236
2183
|
{ type: 'error', inputs: [], name: 'BadWeights' },
|
|
2237
2184
|
{ type: 'error', inputs: [], name: 'BalanceOverflow' },
|
|
2238
2185
|
{ type: 'error', inputs: [], name: 'BidNotEmpty' },
|
|
2186
|
+
{ type: 'error', inputs: [], name: 'CapReached' },
|
|
2239
2187
|
{ type: 'error', inputs: [], name: 'HarvestLimit' },
|
|
2240
2188
|
{ type: 'error', inputs: [], name: 'InsufficientBalance' },
|
|
2241
2189
|
{ type: 'error', inputs: [], name: 'InsufficientPermission' },
|
|
2242
2190
|
{ type: 'error', inputs: [], name: 'InsufficientQuote' },
|
|
2243
2191
|
{ type: 'error', inputs: [], name: 'InvalidToken' },
|
|
2244
2192
|
{ type: 'error', inputs: [], name: 'LegHeld' },
|
|
2193
|
+
{ type: 'error', inputs: [], name: 'Locked' },
|
|
2245
2194
|
{
|
|
2246
2195
|
type: 'error',
|
|
2247
2196
|
inputs: [{ name: 'index', internalType: 'uint256', type: 'uint256' }],
|
|
@@ -2281,34 +2230,6 @@ export const fPoolManagerAbi = [
|
|
|
2281
2230
|
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
2282
2231
|
|
|
2283
2232
|
export const ifPoolManagerMoveAbi = [
|
|
2284
|
-
{
|
|
2285
|
-
type: 'function',
|
|
2286
|
-
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2287
|
-
name: 'getPool',
|
|
2288
|
-
outputs: [
|
|
2289
|
-
{
|
|
2290
|
-
name: '',
|
|
2291
|
-
internalType: 'struct FPoolBase.Pool',
|
|
2292
|
-
type: 'tuple',
|
|
2293
|
-
components: [
|
|
2294
|
-
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2295
|
-
{ name: 'phi', internalType: 'uint96', type: 'uint96' },
|
|
2296
|
-
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2297
|
-
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2298
|
-
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2299
|
-
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2300
|
-
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2301
|
-
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2302
|
-
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2303
|
-
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2304
|
-
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2305
|
-
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2306
|
-
{ name: 'theta0', internalType: 'int256', type: 'int256' },
|
|
2307
|
-
],
|
|
2308
|
-
},
|
|
2309
|
-
],
|
|
2310
|
-
stateMutability: 'view',
|
|
2311
|
-
},
|
|
2312
2233
|
{
|
|
2313
2234
|
type: 'function',
|
|
2314
2235
|
inputs: [],
|
|
@@ -2368,7 +2289,7 @@ export const logswapLensAbi = [
|
|
|
2368
2289
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2369
2290
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2370
2291
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2371
|
-
{ name: '
|
|
2292
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2372
2293
|
],
|
|
2373
2294
|
},
|
|
2374
2295
|
],
|
|
@@ -2387,7 +2308,7 @@ export const logswapLensAbi = [
|
|
|
2387
2308
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2388
2309
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2389
2310
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2390
|
-
{ name: '
|
|
2311
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2391
2312
|
],
|
|
2392
2313
|
},
|
|
2393
2314
|
],
|
|
@@ -2395,6 +2316,20 @@ export const logswapLensAbi = [
|
|
|
2395
2316
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2396
2317
|
stateMutability: 'view',
|
|
2397
2318
|
},
|
|
2319
|
+
{
|
|
2320
|
+
type: 'function',
|
|
2321
|
+
inputs: [
|
|
2322
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2323
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2324
|
+
],
|
|
2325
|
+
name: 'fBundleOf',
|
|
2326
|
+
outputs: [
|
|
2327
|
+
{ name: 'supply', internalType: 'uint256', type: 'uint256' },
|
|
2328
|
+
{ name: 'quote', internalType: 'uint256', type: 'uint256' },
|
|
2329
|
+
{ name: 'base', internalType: 'uint256[]', type: 'uint256[]' },
|
|
2330
|
+
],
|
|
2331
|
+
stateMutability: 'view',
|
|
2332
|
+
},
|
|
2398
2333
|
{
|
|
2399
2334
|
type: 'function',
|
|
2400
2335
|
inputs: [
|
|
@@ -2418,6 +2353,31 @@ export const logswapLensAbi = [
|
|
|
2418
2353
|
],
|
|
2419
2354
|
stateMutability: 'view',
|
|
2420
2355
|
},
|
|
2356
|
+
{
|
|
2357
|
+
type: 'function',
|
|
2358
|
+
inputs: [
|
|
2359
|
+
{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' },
|
|
2360
|
+
{ name: 'gen', internalType: 'uint256', type: 'uint256' },
|
|
2361
|
+
{ name: 'holder', internalType: 'address', type: 'address' },
|
|
2362
|
+
],
|
|
2363
|
+
name: 'fDividendOf',
|
|
2364
|
+
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
2365
|
+
stateMutability: 'view',
|
|
2366
|
+
},
|
|
2367
|
+
{
|
|
2368
|
+
type: 'function',
|
|
2369
|
+
inputs: [
|
|
2370
|
+
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
2371
|
+
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
2372
|
+
],
|
|
2373
|
+
name: 'fLienOf',
|
|
2374
|
+
outputs: [
|
|
2375
|
+
{ name: 'locker', internalType: 'address', type: 'address' },
|
|
2376
|
+
{ name: 'amount', internalType: 'uint256', type: 'uint256' },
|
|
2377
|
+
{ name: 'owed', internalType: 'uint256', type: 'uint256' },
|
|
2378
|
+
],
|
|
2379
|
+
stateMutability: 'view',
|
|
2380
|
+
},
|
|
2421
2381
|
{
|
|
2422
2382
|
type: 'function',
|
|
2423
2383
|
inputs: [
|
|
@@ -2441,6 +2401,66 @@ export const logswapLensAbi = [
|
|
|
2441
2401
|
],
|
|
2442
2402
|
stateMutability: 'view',
|
|
2443
2403
|
},
|
|
2404
|
+
{
|
|
2405
|
+
type: 'function',
|
|
2406
|
+
inputs: [{ name: 'poolId', internalType: 'bytes32', type: 'bytes32' }],
|
|
2407
|
+
name: 'fPool',
|
|
2408
|
+
outputs: [
|
|
2409
|
+
{
|
|
2410
|
+
name: 'v',
|
|
2411
|
+
internalType: 'struct LogswapLens.FPoolView',
|
|
2412
|
+
type: 'tuple',
|
|
2413
|
+
components: [
|
|
2414
|
+
{
|
|
2415
|
+
name: 'pool',
|
|
2416
|
+
internalType: 'struct FPoolBase.Pool',
|
|
2417
|
+
type: 'tuple',
|
|
2418
|
+
components: [
|
|
2419
|
+
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2420
|
+
{ name: 'swapFee', internalType: 'uint96', type: 'uint96' },
|
|
2421
|
+
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2422
|
+
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2423
|
+
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2424
|
+
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2425
|
+
{
|
|
2426
|
+
name: 'restructureBlock',
|
|
2427
|
+
internalType: 'uint32',
|
|
2428
|
+
type: 'uint32',
|
|
2429
|
+
},
|
|
2430
|
+
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2431
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
2432
|
+
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2433
|
+
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2434
|
+
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2435
|
+
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2436
|
+
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2437
|
+
],
|
|
2438
|
+
},
|
|
2439
|
+
{ name: 'logFloor', internalType: 'int256', type: 'int256' },
|
|
2440
|
+
{ name: 'compositeX', internalType: 'int256', type: 'int256' },
|
|
2441
|
+
{ name: 'unharvested', internalType: 'uint256', type: 'uint256' },
|
|
2442
|
+
{
|
|
2443
|
+
name: 'legs',
|
|
2444
|
+
internalType: 'struct LogswapLens.FLeg[]',
|
|
2445
|
+
type: 'tuple[]',
|
|
2446
|
+
components: [
|
|
2447
|
+
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2448
|
+
{ name: 'weight', internalType: 'uint256', type: 'uint256' },
|
|
2449
|
+
{ name: 'x', internalType: 'int256', type: 'int256' },
|
|
2450
|
+
{ name: 'reserve', internalType: 'uint256', type: 'uint256' },
|
|
2451
|
+
{
|
|
2452
|
+
name: 'virtualReserve',
|
|
2453
|
+
internalType: 'uint256',
|
|
2454
|
+
type: 'uint256',
|
|
2455
|
+
},
|
|
2456
|
+
{ name: 'kappa', internalType: 'uint256', type: 'uint256' },
|
|
2457
|
+
],
|
|
2458
|
+
},
|
|
2459
|
+
],
|
|
2460
|
+
},
|
|
2461
|
+
],
|
|
2462
|
+
stateMutability: 'view',
|
|
2463
|
+
},
|
|
2444
2464
|
{
|
|
2445
2465
|
type: 'function',
|
|
2446
2466
|
inputs: [
|
|
@@ -2452,7 +2472,7 @@ export const logswapLensAbi = [
|
|
|
2452
2472
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2453
2473
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2454
2474
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2455
|
-
{ name: '
|
|
2475
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2456
2476
|
],
|
|
2457
2477
|
},
|
|
2458
2478
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2492,18 +2512,19 @@ export const logswapLensAbi = [
|
|
|
2492
2512
|
type: 'tuple[]',
|
|
2493
2513
|
components: [
|
|
2494
2514
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2495
|
-
{ name: '
|
|
2515
|
+
{ name: 'swapFee', internalType: 'uint96', type: 'uint96' },
|
|
2496
2516
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
2497
2517
|
{ name: 'seeded', internalType: 'bool', type: 'bool' },
|
|
2498
2518
|
{ name: 'gen', internalType: 'uint16', type: 'uint16' },
|
|
2499
2519
|
{ name: 'n', internalType: 'uint8', type: 'uint8' },
|
|
2500
2520
|
{ name: 'restructureBlock', internalType: 'uint32', type: 'uint32' },
|
|
2501
2521
|
{ name: 'asks', internalType: 'uint8', type: 'uint8' },
|
|
2522
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
2502
2523
|
{ name: 'Q', internalType: 'uint128', type: 'uint128' },
|
|
2503
2524
|
{ name: 'bigSigma', internalType: 'uint128', type: 'uint128' },
|
|
2504
2525
|
{ name: 'L', internalType: 'uint256', type: 'uint256' },
|
|
2505
2526
|
{ name: 'shares', internalType: 'uint256', type: 'uint256' },
|
|
2506
|
-
{ name: '
|
|
2527
|
+
{ name: 'refLogFloor', internalType: 'int256', type: 'int256' },
|
|
2507
2528
|
],
|
|
2508
2529
|
},
|
|
2509
2530
|
],
|
|
@@ -2547,7 +2568,7 @@ export const logswapLensAbi = [
|
|
|
2547
2568
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2548
2569
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2549
2570
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2550
|
-
{ name: '
|
|
2571
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2551
2572
|
],
|
|
2552
2573
|
},
|
|
2553
2574
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2583,7 +2604,7 @@ export const logswapLensAbi = [
|
|
|
2583
2604
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2584
2605
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2585
2606
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2586
|
-
{ name: '
|
|
2607
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2587
2608
|
],
|
|
2588
2609
|
},
|
|
2589
2610
|
{ name: 'floor', internalType: 'int256', type: 'int256' },
|
|
@@ -2603,7 +2624,7 @@ export const logswapLensAbi = [
|
|
|
2603
2624
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2604
2625
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2605
2626
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2606
|
-
{ name: '
|
|
2627
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2607
2628
|
],
|
|
2608
2629
|
},
|
|
2609
2630
|
],
|
|
@@ -2622,7 +2643,7 @@ export const logswapLensAbi = [
|
|
|
2622
2643
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2623
2644
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2624
2645
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2625
|
-
{ name: '
|
|
2646
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2626
2647
|
],
|
|
2627
2648
|
},
|
|
2628
2649
|
],
|
|
@@ -2641,7 +2662,7 @@ export const logswapLensAbi = [
|
|
|
2641
2662
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2642
2663
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2643
2664
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2644
|
-
{ name: '
|
|
2665
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2645
2666
|
],
|
|
2646
2667
|
},
|
|
2647
2668
|
{ name: 'id', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2667,7 +2688,7 @@ export const logswapLensAbi = [
|
|
|
2667
2688
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2668
2689
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2669
2690
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2670
|
-
{ name: '
|
|
2691
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2671
2692
|
],
|
|
2672
2693
|
},
|
|
2673
2694
|
],
|
|
@@ -2695,7 +2716,7 @@ export const logswapLensAbi = [
|
|
|
2695
2716
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2696
2717
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2697
2718
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2698
|
-
{ name: '
|
|
2719
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2699
2720
|
],
|
|
2700
2721
|
},
|
|
2701
2722
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2733,7 +2754,7 @@ export const logswapLensAbi = [
|
|
|
2733
2754
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2734
2755
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2735
2756
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2736
|
-
{ name: '
|
|
2757
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2737
2758
|
],
|
|
2738
2759
|
},
|
|
2739
2760
|
],
|
|
@@ -2752,7 +2773,7 @@ export const logswapLensAbi = [
|
|
|
2752
2773
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2753
2774
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2754
2775
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2755
|
-
{ name: '
|
|
2776
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2756
2777
|
],
|
|
2757
2778
|
},
|
|
2758
2779
|
{ name: 'owner', internalType: 'address', type: 'address' },
|
|
@@ -2785,7 +2806,7 @@ export const logswapLensAbi = [
|
|
|
2785
2806
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2786
2807
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2787
2808
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2788
|
-
{ name: '
|
|
2809
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2789
2810
|
],
|
|
2790
2811
|
},
|
|
2791
2812
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -2827,7 +2848,7 @@ export const logswapLensAbi = [
|
|
|
2827
2848
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2828
2849
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2829
2850
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2830
|
-
{ name: '
|
|
2851
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2831
2852
|
],
|
|
2832
2853
|
},
|
|
2833
2854
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2848,7 +2869,7 @@ export const logswapLensAbi = [
|
|
|
2848
2869
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2849
2870
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2850
2871
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2851
|
-
{ name: '
|
|
2872
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2852
2873
|
],
|
|
2853
2874
|
},
|
|
2854
2875
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -2869,7 +2890,7 @@ export const logswapLensAbi = [
|
|
|
2869
2890
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2870
2891
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2871
2892
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2872
|
-
{ name: '
|
|
2893
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2873
2894
|
],
|
|
2874
2895
|
},
|
|
2875
2896
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -2890,7 +2911,7 @@ export const logswapLensAbi = [
|
|
|
2890
2911
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2891
2912
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2892
2913
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2893
|
-
{ name: '
|
|
2914
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2894
2915
|
],
|
|
2895
2916
|
},
|
|
2896
2917
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -2947,7 +2968,7 @@ export const logswapLensAbi = [
|
|
|
2947
2968
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
2948
2969
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
2949
2970
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
2950
|
-
{ name: '
|
|
2971
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
2951
2972
|
],
|
|
2952
2973
|
},
|
|
2953
2974
|
],
|
|
@@ -2967,6 +2988,7 @@ export const logswapLensAbi = [
|
|
|
2967
2988
|
],
|
|
2968
2989
|
stateMutability: 'view',
|
|
2969
2990
|
},
|
|
2991
|
+
{ type: 'error', inputs: [], name: 'BadParam' },
|
|
2970
2992
|
{ type: 'error', inputs: [], name: 'BelowFloor' },
|
|
2971
2993
|
{ type: 'error', inputs: [], name: 'DrainsBase' },
|
|
2972
2994
|
{ type: 'error', inputs: [], name: 'InvalidShares' },
|
|
@@ -3037,7 +3059,7 @@ export const logswapRouterAbi = [
|
|
|
3037
3059
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3038
3060
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3039
3061
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3040
|
-
{ name: '
|
|
3062
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3041
3063
|
],
|
|
3042
3064
|
},
|
|
3043
3065
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3065,7 +3087,7 @@ export const logswapRouterAbi = [
|
|
|
3065
3087
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3066
3088
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3067
3089
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3068
|
-
{ name: '
|
|
3090
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3069
3091
|
],
|
|
3070
3092
|
},
|
|
3071
3093
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3087,7 +3109,7 @@ export const logswapRouterAbi = [
|
|
|
3087
3109
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3088
3110
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3089
3111
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3090
|
-
{ name: '
|
|
3112
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3091
3113
|
],
|
|
3092
3114
|
},
|
|
3093
3115
|
{ name: 'x0', internalType: 'int256', type: 'int256' },
|
|
@@ -3122,7 +3144,7 @@ export const logswapRouterAbi = [
|
|
|
3122
3144
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3123
3145
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3124
3146
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3125
|
-
{ name: '
|
|
3147
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3126
3148
|
],
|
|
3127
3149
|
},
|
|
3128
3150
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3150,7 +3172,7 @@ export const logswapRouterAbi = [
|
|
|
3150
3172
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3151
3173
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3152
3174
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3153
|
-
{ name: '
|
|
3175
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3154
3176
|
],
|
|
3155
3177
|
},
|
|
3156
3178
|
{ name: 'ids', internalType: 'uint256[]', type: 'uint256[]' },
|
|
@@ -3177,7 +3199,7 @@ export const logswapRouterAbi = [
|
|
|
3177
3199
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3178
3200
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3179
3201
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3180
|
-
{ name: '
|
|
3202
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3181
3203
|
],
|
|
3182
3204
|
},
|
|
3183
3205
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3215,7 +3237,7 @@ export const logswapRouterAbi = [
|
|
|
3215
3237
|
internalType: 'int256',
|
|
3216
3238
|
type: 'int256',
|
|
3217
3239
|
},
|
|
3218
|
-
{ name: '
|
|
3240
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3219
3241
|
],
|
|
3220
3242
|
},
|
|
3221
3243
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3246,7 +3268,7 @@ export const logswapRouterAbi = [
|
|
|
3246
3268
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3247
3269
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3248
3270
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3249
|
-
{ name: '
|
|
3271
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3250
3272
|
],
|
|
3251
3273
|
},
|
|
3252
3274
|
{ name: 'baseSide', internalType: 'bool', type: 'bool' },
|
|
@@ -3275,7 +3297,7 @@ export const logswapRouterAbi = [
|
|
|
3275
3297
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3276
3298
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3277
3299
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3278
|
-
{ name: '
|
|
3300
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3279
3301
|
],
|
|
3280
3302
|
},
|
|
3281
3303
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3360,7 +3382,7 @@ export const logswapRouterAbi = [
|
|
|
3360
3382
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3361
3383
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3362
3384
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3363
|
-
{ name: '
|
|
3385
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3364
3386
|
],
|
|
3365
3387
|
},
|
|
3366
3388
|
{ name: 'targetFloor', internalType: 'int256', type: 'int256' },
|
|
@@ -3389,7 +3411,7 @@ export const logswapRouterAbi = [
|
|
|
3389
3411
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3390
3412
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3391
3413
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3392
|
-
{ name: '
|
|
3414
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3393
3415
|
],
|
|
3394
3416
|
},
|
|
3395
3417
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3480,7 +3502,7 @@ export const logswapRouterAbi = [
|
|
|
3480
3502
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3481
3503
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3482
3504
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3483
|
-
{ name: '
|
|
3505
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3484
3506
|
],
|
|
3485
3507
|
},
|
|
3486
3508
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3509,7 +3531,7 @@ export const logswapRouterAbi = [
|
|
|
3509
3531
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3510
3532
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3511
3533
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3512
|
-
{ name: '
|
|
3534
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3513
3535
|
],
|
|
3514
3536
|
},
|
|
3515
3537
|
{ name: 'baseIn', internalType: 'bool', type: 'bool' },
|
|
@@ -3535,7 +3557,7 @@ export const logswapRouterAbi = [
|
|
|
3535
3557
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3536
3558
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3537
3559
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3538
|
-
{ name: '
|
|
3560
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3539
3561
|
],
|
|
3540
3562
|
},
|
|
3541
3563
|
{ name: 'baseOut', internalType: 'bool', type: 'bool' },
|
|
@@ -3566,7 +3588,7 @@ export const logswapRouterAbi = [
|
|
|
3566
3588
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3567
3589
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3568
3590
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3569
|
-
{ name: '
|
|
3591
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3570
3592
|
],
|
|
3571
3593
|
},
|
|
3572
3594
|
{ name: 'fromId', internalType: 'uint256', type: 'uint256' },
|
|
@@ -3598,7 +3620,7 @@ export const logswapRouterAbi = [
|
|
|
3598
3620
|
{ name: 'base', internalType: 'address', type: 'address' },
|
|
3599
3621
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3600
3622
|
{ name: 'tickSpacing', internalType: 'int256', type: 'int256' },
|
|
3601
|
-
{ name: '
|
|
3623
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3602
3624
|
],
|
|
3603
3625
|
},
|
|
3604
3626
|
{ name: 'fundWithBase', internalType: 'bool', type: 'bool' },
|
|
@@ -3738,6 +3760,20 @@ export const padPolicyAbi = [
|
|
|
3738
3760
|
outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3739
3761
|
stateMutability: 'view',
|
|
3740
3762
|
},
|
|
3763
|
+
{
|
|
3764
|
+
type: 'function',
|
|
3765
|
+
inputs: [],
|
|
3766
|
+
name: 'feeCurated',
|
|
3767
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3768
|
+
stateMutability: 'view',
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
type: 'function',
|
|
3772
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
3773
|
+
name: 'feeListed',
|
|
3774
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3775
|
+
stateMutability: 'view',
|
|
3776
|
+
},
|
|
3741
3777
|
{
|
|
3742
3778
|
type: 'function',
|
|
3743
3779
|
inputs: [],
|
|
@@ -3808,10 +3844,11 @@ export const padPolicyAbi = [
|
|
|
3808
3844
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
3809
3845
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
3810
3846
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
3811
|
-
{ name: '
|
|
3847
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
3812
3848
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
3813
3849
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
3814
3850
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
3851
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
3815
3852
|
],
|
|
3816
3853
|
},
|
|
3817
3854
|
],
|
|
@@ -3877,7 +3914,7 @@ export const padPolicyAbi = [
|
|
|
3877
3914
|
type: 'function',
|
|
3878
3915
|
inputs: [
|
|
3879
3916
|
{ name: 'creatorShare', internalType: 'uint256', type: 'uint256' },
|
|
3880
|
-
{ name: '
|
|
3917
|
+
{ name: 'burnShare', internalType: 'uint256', type: 'uint256' },
|
|
3881
3918
|
{ name: 'nonce', internalType: 'uint128', type: 'uint128' },
|
|
3882
3919
|
],
|
|
3883
3920
|
name: 'pack',
|
|
@@ -3922,6 +3959,23 @@ export const padPolicyAbi = [
|
|
|
3922
3959
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
3923
3960
|
stateMutability: 'view',
|
|
3924
3961
|
},
|
|
3962
|
+
{
|
|
3963
|
+
type: 'function',
|
|
3964
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
3965
|
+
name: 'setFeeCurated',
|
|
3966
|
+
outputs: [],
|
|
3967
|
+
stateMutability: 'nonpayable',
|
|
3968
|
+
},
|
|
3969
|
+
{
|
|
3970
|
+
type: 'function',
|
|
3971
|
+
inputs: [
|
|
3972
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
3973
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
3974
|
+
],
|
|
3975
|
+
name: 'setFeeListed',
|
|
3976
|
+
outputs: [],
|
|
3977
|
+
stateMutability: 'nonpayable',
|
|
3978
|
+
},
|
|
3925
3979
|
{
|
|
3926
3980
|
type: 'function',
|
|
3927
3981
|
inputs: [
|
|
@@ -3970,7 +4024,7 @@ export const padPolicyAbi = [
|
|
|
3970
4024
|
name: 'splitOf',
|
|
3971
4025
|
outputs: [
|
|
3972
4026
|
{ name: 'creatorShare', internalType: 'uint64', type: 'uint64' },
|
|
3973
|
-
{ name: '
|
|
4027
|
+
{ name: 'burnShare', internalType: 'uint64', type: 'uint64' },
|
|
3974
4028
|
{ name: 'protocolShare', internalType: 'uint64', type: 'uint64' },
|
|
3975
4029
|
],
|
|
3976
4030
|
stateMutability: 'view',
|
|
@@ -4036,6 +4090,23 @@ export const padPolicyAbi = [
|
|
|
4036
4090
|
],
|
|
4037
4091
|
name: 'AuthoritySet',
|
|
4038
4092
|
},
|
|
4093
|
+
{
|
|
4094
|
+
type: 'event',
|
|
4095
|
+
anonymous: false,
|
|
4096
|
+
inputs: [
|
|
4097
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4098
|
+
],
|
|
4099
|
+
name: 'FeeCuratedSet',
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
type: 'event',
|
|
4103
|
+
anonymous: false,
|
|
4104
|
+
inputs: [
|
|
4105
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4106
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4107
|
+
],
|
|
4108
|
+
name: 'FeeListed',
|
|
4109
|
+
},
|
|
4039
4110
|
{
|
|
4040
4111
|
type: 'event',
|
|
4041
4112
|
anonymous: false,
|
|
@@ -4158,7 +4229,7 @@ export const padPolicyAbi = [
|
|
|
4158
4229
|
indexed: false,
|
|
4159
4230
|
},
|
|
4160
4231
|
{
|
|
4161
|
-
name: '
|
|
4232
|
+
name: 'burnShare',
|
|
4162
4233
|
internalType: 'uint256',
|
|
4163
4234
|
type: 'uint256',
|
|
4164
4235
|
indexed: false,
|
|
@@ -4174,6 +4245,11 @@ export const padPolicyAbi = [
|
|
|
4174
4245
|
},
|
|
4175
4246
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4176
4247
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4248
|
+
{
|
|
4249
|
+
type: 'error',
|
|
4250
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4251
|
+
name: 'FeeNotListed',
|
|
4252
|
+
},
|
|
4177
4253
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4178
4254
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4179
4255
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -4227,6 +4303,20 @@ export const polPolicyAbi = [
|
|
|
4227
4303
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4228
4304
|
stateMutability: 'view',
|
|
4229
4305
|
},
|
|
4306
|
+
{
|
|
4307
|
+
type: 'function',
|
|
4308
|
+
inputs: [],
|
|
4309
|
+
name: 'feeCurated',
|
|
4310
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4311
|
+
stateMutability: 'view',
|
|
4312
|
+
},
|
|
4313
|
+
{
|
|
4314
|
+
type: 'function',
|
|
4315
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
4316
|
+
name: 'feeListed',
|
|
4317
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4318
|
+
stateMutability: 'view',
|
|
4319
|
+
},
|
|
4230
4320
|
{
|
|
4231
4321
|
type: 'function',
|
|
4232
4322
|
inputs: [],
|
|
@@ -4311,10 +4401,11 @@ export const polPolicyAbi = [
|
|
|
4311
4401
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4312
4402
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4313
4403
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4314
|
-
{ name: '
|
|
4404
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4315
4405
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4316
4406
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4317
4407
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4408
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
4318
4409
|
],
|
|
4319
4410
|
},
|
|
4320
4411
|
],
|
|
@@ -4407,6 +4498,23 @@ export const polPolicyAbi = [
|
|
|
4407
4498
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
4408
4499
|
stateMutability: 'view',
|
|
4409
4500
|
},
|
|
4501
|
+
{
|
|
4502
|
+
type: 'function',
|
|
4503
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
4504
|
+
name: 'setFeeCurated',
|
|
4505
|
+
outputs: [],
|
|
4506
|
+
stateMutability: 'nonpayable',
|
|
4507
|
+
},
|
|
4508
|
+
{
|
|
4509
|
+
type: 'function',
|
|
4510
|
+
inputs: [
|
|
4511
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
4512
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
4513
|
+
],
|
|
4514
|
+
name: 'setFeeListed',
|
|
4515
|
+
outputs: [],
|
|
4516
|
+
stateMutability: 'nonpayable',
|
|
4517
|
+
},
|
|
4410
4518
|
{
|
|
4411
4519
|
type: 'function',
|
|
4412
4520
|
inputs: [
|
|
@@ -4484,6 +4592,23 @@ export const polPolicyAbi = [
|
|
|
4484
4592
|
],
|
|
4485
4593
|
name: 'AuthoritySet',
|
|
4486
4594
|
},
|
|
4595
|
+
{
|
|
4596
|
+
type: 'event',
|
|
4597
|
+
anonymous: false,
|
|
4598
|
+
inputs: [
|
|
4599
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
4600
|
+
],
|
|
4601
|
+
name: 'FeeCuratedSet',
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
type: 'event',
|
|
4605
|
+
anonymous: false,
|
|
4606
|
+
inputs: [
|
|
4607
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
4608
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
4609
|
+
],
|
|
4610
|
+
name: 'FeeListed',
|
|
4611
|
+
},
|
|
4487
4612
|
{
|
|
4488
4613
|
type: 'event',
|
|
4489
4614
|
anonymous: false,
|
|
@@ -4546,6 +4671,11 @@ export const polPolicyAbi = [
|
|
|
4546
4671
|
},
|
|
4547
4672
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
4548
4673
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
4674
|
+
{
|
|
4675
|
+
type: 'error',
|
|
4676
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
4677
|
+
name: 'FeeNotListed',
|
|
4678
|
+
},
|
|
4549
4679
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
4550
4680
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
4551
4681
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -4626,10 +4756,11 @@ export const policyRegistryAbi = [
|
|
|
4626
4756
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
4627
4757
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
4628
4758
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
4629
|
-
{ name: '
|
|
4759
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
4630
4760
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
4631
4761
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
4632
4762
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
4763
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
4633
4764
|
],
|
|
4634
4765
|
},
|
|
4635
4766
|
{ name: 'to', internalType: 'address', type: 'address' },
|
|
@@ -4903,6 +5034,20 @@ export const privatePolicyAbi = [
|
|
|
4903
5034
|
outputs: [{ name: '', internalType: 'address', type: 'address' }],
|
|
4904
5035
|
stateMutability: 'view',
|
|
4905
5036
|
},
|
|
5037
|
+
{
|
|
5038
|
+
type: 'function',
|
|
5039
|
+
inputs: [],
|
|
5040
|
+
name: 'feeCurated',
|
|
5041
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5042
|
+
stateMutability: 'view',
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
type: 'function',
|
|
5046
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5047
|
+
name: 'feeListed',
|
|
5048
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5049
|
+
stateMutability: 'view',
|
|
5050
|
+
},
|
|
4906
5051
|
{
|
|
4907
5052
|
type: 'function',
|
|
4908
5053
|
inputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
|
|
@@ -5024,10 +5169,11 @@ export const privatePolicyAbi = [
|
|
|
5024
5169
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5025
5170
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5026
5171
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5027
|
-
{ name: '
|
|
5172
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5028
5173
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5029
5174
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5030
5175
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5176
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
5031
5177
|
],
|
|
5032
5178
|
},
|
|
5033
5179
|
],
|
|
@@ -5141,6 +5287,23 @@ export const privatePolicyAbi = [
|
|
|
5141
5287
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5142
5288
|
stateMutability: 'view',
|
|
5143
5289
|
},
|
|
5290
|
+
{
|
|
5291
|
+
type: 'function',
|
|
5292
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5293
|
+
name: 'setFeeCurated',
|
|
5294
|
+
outputs: [],
|
|
5295
|
+
stateMutability: 'nonpayable',
|
|
5296
|
+
},
|
|
5297
|
+
{
|
|
5298
|
+
type: 'function',
|
|
5299
|
+
inputs: [
|
|
5300
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
5301
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5302
|
+
],
|
|
5303
|
+
name: 'setFeeListed',
|
|
5304
|
+
outputs: [],
|
|
5305
|
+
stateMutability: 'nonpayable',
|
|
5306
|
+
},
|
|
5144
5307
|
{
|
|
5145
5308
|
type: 'function',
|
|
5146
5309
|
inputs: [
|
|
@@ -5241,6 +5404,23 @@ export const privatePolicyAbi = [
|
|
|
5241
5404
|
],
|
|
5242
5405
|
name: 'AuthoritySet',
|
|
5243
5406
|
},
|
|
5407
|
+
{
|
|
5408
|
+
type: 'event',
|
|
5409
|
+
anonymous: false,
|
|
5410
|
+
inputs: [
|
|
5411
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5412
|
+
],
|
|
5413
|
+
name: 'FeeCuratedSet',
|
|
5414
|
+
},
|
|
5415
|
+
{
|
|
5416
|
+
type: 'event',
|
|
5417
|
+
anonymous: false,
|
|
5418
|
+
inputs: [
|
|
5419
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
5420
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5421
|
+
],
|
|
5422
|
+
name: 'FeeListed',
|
|
5423
|
+
},
|
|
5244
5424
|
{
|
|
5245
5425
|
type: 'event',
|
|
5246
5426
|
anonymous: false,
|
|
@@ -5361,6 +5541,11 @@ export const privatePolicyAbi = [
|
|
|
5361
5541
|
},
|
|
5362
5542
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5363
5543
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5544
|
+
{
|
|
5545
|
+
type: 'error',
|
|
5546
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5547
|
+
name: 'FeeNotListed',
|
|
5548
|
+
},
|
|
5364
5549
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5365
5550
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5366
5551
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
@@ -5420,6 +5605,20 @@ export const publicPolicyAbi = [
|
|
|
5420
5605
|
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5421
5606
|
stateMutability: 'view',
|
|
5422
5607
|
},
|
|
5608
|
+
{
|
|
5609
|
+
type: 'function',
|
|
5610
|
+
inputs: [],
|
|
5611
|
+
name: 'feeCurated',
|
|
5612
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5613
|
+
stateMutability: 'view',
|
|
5614
|
+
},
|
|
5615
|
+
{
|
|
5616
|
+
type: 'function',
|
|
5617
|
+
inputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
|
|
5618
|
+
name: 'feeListed',
|
|
5619
|
+
outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
|
|
5620
|
+
stateMutability: 'view',
|
|
5621
|
+
},
|
|
5423
5622
|
{
|
|
5424
5623
|
type: 'function',
|
|
5425
5624
|
inputs: [],
|
|
@@ -5497,10 +5696,11 @@ export const publicPolicyAbi = [
|
|
|
5497
5696
|
{ name: 'quote', internalType: 'address', type: 'address' },
|
|
5498
5697
|
{ name: 'bases', internalType: 'address[]', type: 'address[]' },
|
|
5499
5698
|
{ name: 'weights', internalType: 'uint256[]', type: 'uint256[]' },
|
|
5500
|
-
{ name: '
|
|
5699
|
+
{ name: 'swapFee', internalType: 'uint256', type: 'uint256' },
|
|
5501
5700
|
{ name: 'policy', internalType: 'address', type: 'address' },
|
|
5502
5701
|
{ name: 'creator', internalType: 'address', type: 'address' },
|
|
5503
5702
|
{ name: 'salt', internalType: 'bytes32', type: 'bytes32' },
|
|
5703
|
+
{ name: 'cap', internalType: 'uint24', type: 'uint24' },
|
|
5504
5704
|
],
|
|
5505
5705
|
},
|
|
5506
5706
|
],
|
|
@@ -5600,6 +5800,23 @@ export const publicPolicyAbi = [
|
|
|
5600
5800
|
outputs: [],
|
|
5601
5801
|
stateMutability: 'nonpayable',
|
|
5602
5802
|
},
|
|
5803
|
+
{
|
|
5804
|
+
type: 'function',
|
|
5805
|
+
inputs: [{ name: 'curated', internalType: 'bool', type: 'bool' }],
|
|
5806
|
+
name: 'setFeeCurated',
|
|
5807
|
+
outputs: [],
|
|
5808
|
+
stateMutability: 'nonpayable',
|
|
5809
|
+
},
|
|
5810
|
+
{
|
|
5811
|
+
type: 'function',
|
|
5812
|
+
inputs: [
|
|
5813
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256' },
|
|
5814
|
+
{ name: 'listed', internalType: 'bool', type: 'bool' },
|
|
5815
|
+
],
|
|
5816
|
+
name: 'setFeeListed',
|
|
5817
|
+
outputs: [],
|
|
5818
|
+
stateMutability: 'nonpayable',
|
|
5819
|
+
},
|
|
5603
5820
|
{
|
|
5604
5821
|
type: 'function',
|
|
5605
5822
|
inputs: [
|
|
@@ -5685,6 +5902,23 @@ export const publicPolicyAbi = [
|
|
|
5685
5902
|
],
|
|
5686
5903
|
name: 'CuratedSet',
|
|
5687
5904
|
},
|
|
5905
|
+
{
|
|
5906
|
+
type: 'event',
|
|
5907
|
+
anonymous: false,
|
|
5908
|
+
inputs: [
|
|
5909
|
+
{ name: 'curated', internalType: 'bool', type: 'bool', indexed: false },
|
|
5910
|
+
],
|
|
5911
|
+
name: 'FeeCuratedSet',
|
|
5912
|
+
},
|
|
5913
|
+
{
|
|
5914
|
+
type: 'event',
|
|
5915
|
+
anonymous: false,
|
|
5916
|
+
inputs: [
|
|
5917
|
+
{ name: 'fee', internalType: 'uint256', type: 'uint256', indexed: true },
|
|
5918
|
+
{ name: 'listed', internalType: 'bool', type: 'bool', indexed: false },
|
|
5919
|
+
],
|
|
5920
|
+
name: 'FeeListed',
|
|
5921
|
+
},
|
|
5688
5922
|
{
|
|
5689
5923
|
type: 'event',
|
|
5690
5924
|
anonymous: false,
|
|
@@ -5742,8 +5976,14 @@ export const publicPolicyAbi = [
|
|
|
5742
5976
|
},
|
|
5743
5977
|
{ type: 'error', inputs: [], name: 'BadFee' },
|
|
5744
5978
|
{ type: 'error', inputs: [], name: 'BadRate' },
|
|
5979
|
+
{
|
|
5980
|
+
type: 'error',
|
|
5981
|
+
inputs: [{ name: 'fee', internalType: 'uint256', type: 'uint256' }],
|
|
5982
|
+
name: 'FeeNotListed',
|
|
5983
|
+
},
|
|
5745
5984
|
{ type: 'error', inputs: [], name: 'NoCreator' },
|
|
5746
5985
|
{ type: 'error', inputs: [], name: 'NotAuthority' },
|
|
5986
|
+
{ type: 'error', inputs: [], name: 'NotCanonical' },
|
|
5747
5987
|
{ type: 'error', inputs: [], name: 'NotCollector' },
|
|
5748
5988
|
{
|
|
5749
5989
|
type: 'error',
|