@logswap/sdk 0.5.99 → 0.5.100
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 +46 -31
- package/dist/actions.d.ts +8 -8
- package/dist/actions.js +8 -8
- package/dist/client.d.ts +2 -2
- package/dist/client.js +11 -2
- package/dist/fees.js +2 -24
- package/dist/fpool.d.ts +10 -6
- package/dist/fpool.js +12 -23
- package/dist/generated.d.ts +84 -47
- package/dist/generated.js +88 -37
- package/dist/history.d.ts +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/liquidity.d.ts +2 -1
- package/dist/liquidity.js +2 -1
- package/dist/positions.js +2 -13
- package/package.json +1 -1
- package/src/actions.ts +12 -12
- package/src/client.ts +11 -2
- package/src/fees.ts +2 -22
- package/src/fpool.ts +16 -24
- package/src/generated.ts +88 -37
- package/src/history.ts +1 -1
- package/src/index.ts +0 -1
- package/src/liquidity.ts +2 -1
- package/src/positions.ts +3 -14
- package/dist/views.d.ts +0 -281
- package/dist/views.js +0 -188
- package/src/views.ts +0 -480
package/dist/generated.d.ts
CHANGED
|
@@ -1489,6 +1489,10 @@ export declare const managerCAbi: readonly [{
|
|
|
1489
1489
|
readonly name: "poolId";
|
|
1490
1490
|
readonly internalType: "bytes32";
|
|
1491
1491
|
readonly type: "bytes32";
|
|
1492
|
+
}, {
|
|
1493
|
+
readonly name: "payer";
|
|
1494
|
+
readonly internalType: "address";
|
|
1495
|
+
readonly type: "address";
|
|
1492
1496
|
}, {
|
|
1493
1497
|
readonly name: "to";
|
|
1494
1498
|
readonly internalType: "address";
|
|
@@ -1911,15 +1915,15 @@ export declare const managerCAbi: readonly [{
|
|
|
1911
1915
|
readonly type: "event";
|
|
1912
1916
|
readonly anonymous: false;
|
|
1913
1917
|
readonly inputs: readonly [{
|
|
1914
|
-
readonly name: "id";
|
|
1915
|
-
readonly internalType: "uint256";
|
|
1916
|
-
readonly type: "uint256";
|
|
1917
|
-
readonly indexed: true;
|
|
1918
|
-
}, {
|
|
1919
1918
|
readonly name: "poolId";
|
|
1920
1919
|
readonly internalType: "bytes32";
|
|
1921
1920
|
readonly type: "bytes32";
|
|
1922
1921
|
readonly indexed: true;
|
|
1922
|
+
}, {
|
|
1923
|
+
readonly name: "id";
|
|
1924
|
+
readonly internalType: "uint256";
|
|
1925
|
+
readonly type: "uint256";
|
|
1926
|
+
readonly indexed: true;
|
|
1923
1927
|
}, {
|
|
1924
1928
|
readonly name: "floor";
|
|
1925
1929
|
readonly internalType: "int256";
|
|
@@ -1946,7 +1950,7 @@ export declare const managerCAbi: readonly [{
|
|
|
1946
1950
|
readonly type: "bytes32";
|
|
1947
1951
|
readonly indexed: true;
|
|
1948
1952
|
}, {
|
|
1949
|
-
readonly name: "
|
|
1953
|
+
readonly name: "owner";
|
|
1950
1954
|
readonly internalType: "address";
|
|
1951
1955
|
readonly type: "address";
|
|
1952
1956
|
readonly indexed: true;
|
|
@@ -2071,7 +2075,7 @@ export declare const managerCAbi: readonly [{
|
|
|
2071
2075
|
readonly type: "bytes32";
|
|
2072
2076
|
readonly indexed: true;
|
|
2073
2077
|
}, {
|
|
2074
|
-
readonly name: "
|
|
2078
|
+
readonly name: "owner";
|
|
2075
2079
|
readonly internalType: "address";
|
|
2076
2080
|
readonly type: "address";
|
|
2077
2081
|
readonly indexed: true;
|
|
@@ -2120,6 +2124,16 @@ export declare const managerCAbi: readonly [{
|
|
|
2120
2124
|
readonly internalType: "uint256";
|
|
2121
2125
|
readonly type: "uint256";
|
|
2122
2126
|
readonly indexed: true;
|
|
2127
|
+
}, {
|
|
2128
|
+
readonly name: "sender";
|
|
2129
|
+
readonly internalType: "address";
|
|
2130
|
+
readonly type: "address";
|
|
2131
|
+
readonly indexed: false;
|
|
2132
|
+
}, {
|
|
2133
|
+
readonly name: "payer";
|
|
2134
|
+
readonly internalType: "address";
|
|
2135
|
+
readonly type: "address";
|
|
2136
|
+
readonly indexed: false;
|
|
2123
2137
|
}, {
|
|
2124
2138
|
readonly name: "shares";
|
|
2125
2139
|
readonly internalType: "uint256";
|
|
@@ -2146,7 +2160,7 @@ export declare const managerCAbi: readonly [{
|
|
|
2146
2160
|
readonly type: "bytes32";
|
|
2147
2161
|
readonly indexed: true;
|
|
2148
2162
|
}, {
|
|
2149
|
-
readonly name: "
|
|
2163
|
+
readonly name: "owner";
|
|
2150
2164
|
readonly internalType: "address";
|
|
2151
2165
|
readonly type: "address";
|
|
2152
2166
|
readonly indexed: true;
|
|
@@ -2195,6 +2209,11 @@ export declare const managerCAbi: readonly [{
|
|
|
2195
2209
|
readonly internalType: "bytes32";
|
|
2196
2210
|
readonly type: "bytes32";
|
|
2197
2211
|
readonly indexed: true;
|
|
2212
|
+
}, {
|
|
2213
|
+
readonly name: "sender";
|
|
2214
|
+
readonly internalType: "address";
|
|
2215
|
+
readonly type: "address";
|
|
2216
|
+
readonly indexed: true;
|
|
2198
2217
|
}, {
|
|
2199
2218
|
readonly name: "to";
|
|
2200
2219
|
readonly internalType: "address";
|
|
@@ -2652,6 +2671,10 @@ export declare const managerFAbi: readonly [{
|
|
|
2652
2671
|
readonly name: "gen";
|
|
2653
2672
|
readonly internalType: "uint256";
|
|
2654
2673
|
readonly type: "uint256";
|
|
2674
|
+
}, {
|
|
2675
|
+
readonly name: "owner";
|
|
2676
|
+
readonly internalType: "address";
|
|
2677
|
+
readonly type: "address";
|
|
2655
2678
|
}, {
|
|
2656
2679
|
readonly name: "to";
|
|
2657
2680
|
readonly internalType: "address";
|
|
@@ -2978,6 +3001,10 @@ export declare const managerFAbi: readonly [{
|
|
|
2978
3001
|
readonly name: "poolId";
|
|
2979
3002
|
readonly internalType: "bytes32";
|
|
2980
3003
|
readonly type: "bytes32";
|
|
3004
|
+
}, {
|
|
3005
|
+
readonly name: "payer";
|
|
3006
|
+
readonly internalType: "address";
|
|
3007
|
+
readonly type: "address";
|
|
2981
3008
|
}, {
|
|
2982
3009
|
readonly name: "to";
|
|
2983
3010
|
readonly internalType: "address";
|
|
@@ -3469,7 +3496,7 @@ export declare const managerFAbi: readonly [{
|
|
|
3469
3496
|
readonly type: "uint256";
|
|
3470
3497
|
readonly indexed: true;
|
|
3471
3498
|
}, {
|
|
3472
|
-
readonly name: "
|
|
3499
|
+
readonly name: "owner";
|
|
3473
3500
|
readonly internalType: "address";
|
|
3474
3501
|
readonly type: "address";
|
|
3475
3502
|
readonly indexed: true;
|
|
@@ -3518,6 +3545,11 @@ export declare const managerFAbi: readonly [{
|
|
|
3518
3545
|
readonly internalType: "uint256";
|
|
3519
3546
|
readonly type: "uint256";
|
|
3520
3547
|
readonly indexed: true;
|
|
3548
|
+
}, {
|
|
3549
|
+
readonly name: "operator";
|
|
3550
|
+
readonly internalType: "address";
|
|
3551
|
+
readonly type: "address";
|
|
3552
|
+
readonly indexed: true;
|
|
3521
3553
|
}, {
|
|
3522
3554
|
readonly name: "supply";
|
|
3523
3555
|
readonly internalType: "uint256";
|
|
@@ -3543,6 +3575,11 @@ export declare const managerFAbi: readonly [{
|
|
|
3543
3575
|
readonly internalType: "address";
|
|
3544
3576
|
readonly type: "address";
|
|
3545
3577
|
readonly indexed: true;
|
|
3578
|
+
}, {
|
|
3579
|
+
readonly name: "operator";
|
|
3580
|
+
readonly internalType: "address";
|
|
3581
|
+
readonly type: "address";
|
|
3582
|
+
readonly indexed: true;
|
|
3546
3583
|
}, {
|
|
3547
3584
|
readonly name: "gen";
|
|
3548
3585
|
readonly internalType: "uint256";
|
|
@@ -3653,6 +3690,11 @@ export declare const managerFAbi: readonly [{
|
|
|
3653
3690
|
readonly internalType: "uint256";
|
|
3654
3691
|
readonly type: "uint256";
|
|
3655
3692
|
readonly indexed: true;
|
|
3693
|
+
}, {
|
|
3694
|
+
readonly name: "operator";
|
|
3695
|
+
readonly internalType: "address";
|
|
3696
|
+
readonly type: "address";
|
|
3697
|
+
readonly indexed: true;
|
|
3656
3698
|
}, {
|
|
3657
3699
|
readonly name: "quoteAmount";
|
|
3658
3700
|
readonly internalType: "uint256";
|
|
@@ -3717,10 +3759,15 @@ export declare const managerFAbi: readonly [{
|
|
|
3717
3759
|
readonly type: "address";
|
|
3718
3760
|
readonly indexed: true;
|
|
3719
3761
|
}, {
|
|
3720
|
-
readonly name: "
|
|
3762
|
+
readonly name: "creator";
|
|
3721
3763
|
readonly internalType: "address";
|
|
3722
3764
|
readonly type: "address";
|
|
3723
3765
|
readonly indexed: true;
|
|
3766
|
+
}, {
|
|
3767
|
+
readonly name: "policy";
|
|
3768
|
+
readonly internalType: "address";
|
|
3769
|
+
readonly type: "address";
|
|
3770
|
+
readonly indexed: false;
|
|
3724
3771
|
}, {
|
|
3725
3772
|
readonly name: "bases";
|
|
3726
3773
|
readonly internalType: "address[]";
|
|
@@ -3767,7 +3814,7 @@ export declare const managerFAbi: readonly [{
|
|
|
3767
3814
|
readonly type: "bytes32";
|
|
3768
3815
|
readonly indexed: true;
|
|
3769
3816
|
}, {
|
|
3770
|
-
readonly name: "
|
|
3817
|
+
readonly name: "owner";
|
|
3771
3818
|
readonly internalType: "address";
|
|
3772
3819
|
readonly type: "address";
|
|
3773
3820
|
readonly indexed: true;
|
|
@@ -3775,7 +3822,7 @@ export declare const managerFAbi: readonly [{
|
|
|
3775
3822
|
readonly name: "gen";
|
|
3776
3823
|
readonly internalType: "uint256";
|
|
3777
3824
|
readonly type: "uint256";
|
|
3778
|
-
readonly indexed:
|
|
3825
|
+
readonly indexed: true;
|
|
3779
3826
|
}, {
|
|
3780
3827
|
readonly name: "L";
|
|
3781
3828
|
readonly internalType: "uint256";
|
|
@@ -3820,6 +3867,16 @@ export declare const managerFAbi: readonly [{
|
|
|
3820
3867
|
readonly name: "gen";
|
|
3821
3868
|
readonly internalType: "uint256";
|
|
3822
3869
|
readonly type: "uint256";
|
|
3870
|
+
readonly indexed: true;
|
|
3871
|
+
}, {
|
|
3872
|
+
readonly name: "sender";
|
|
3873
|
+
readonly internalType: "address";
|
|
3874
|
+
readonly type: "address";
|
|
3875
|
+
readonly indexed: false;
|
|
3876
|
+
}, {
|
|
3877
|
+
readonly name: "payer";
|
|
3878
|
+
readonly internalType: "address";
|
|
3879
|
+
readonly type: "address";
|
|
3823
3880
|
readonly indexed: false;
|
|
3824
3881
|
}, {
|
|
3825
3882
|
readonly name: "L";
|
|
@@ -5577,7 +5634,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5577
5634
|
readonly internalType: "uint256";
|
|
5578
5635
|
readonly type: "uint256";
|
|
5579
5636
|
}, {
|
|
5580
|
-
readonly name: "
|
|
5637
|
+
readonly name: "to";
|
|
5581
5638
|
readonly internalType: "address";
|
|
5582
5639
|
readonly type: "address";
|
|
5583
5640
|
}, {
|
|
@@ -5611,7 +5668,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5611
5668
|
readonly internalType: "uint256[]";
|
|
5612
5669
|
readonly type: "uint256[]";
|
|
5613
5670
|
}, {
|
|
5614
|
-
readonly name: "
|
|
5671
|
+
readonly name: "to";
|
|
5615
5672
|
readonly internalType: "address";
|
|
5616
5673
|
readonly type: "address";
|
|
5617
5674
|
}, {
|
|
@@ -5686,7 +5743,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5686
5743
|
readonly internalType: "uint256";
|
|
5687
5744
|
readonly type: "uint256";
|
|
5688
5745
|
}, {
|
|
5689
|
-
readonly name: "
|
|
5746
|
+
readonly name: "to";
|
|
5690
5747
|
readonly internalType: "address";
|
|
5691
5748
|
readonly type: "address";
|
|
5692
5749
|
}, {
|
|
@@ -5741,7 +5798,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5741
5798
|
readonly internalType: "uint256[]";
|
|
5742
5799
|
readonly type: "uint256[]";
|
|
5743
5800
|
}, {
|
|
5744
|
-
readonly name: "
|
|
5801
|
+
readonly name: "to";
|
|
5745
5802
|
readonly internalType: "address";
|
|
5746
5803
|
readonly type: "address";
|
|
5747
5804
|
}];
|
|
@@ -5806,7 +5863,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5806
5863
|
readonly internalType: "uint256";
|
|
5807
5864
|
readonly type: "uint256";
|
|
5808
5865
|
}, {
|
|
5809
|
-
readonly name: "
|
|
5866
|
+
readonly name: "to";
|
|
5810
5867
|
readonly internalType: "address";
|
|
5811
5868
|
readonly type: "address";
|
|
5812
5869
|
}, {
|
|
@@ -5864,7 +5921,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5864
5921
|
readonly internalType: "uint256";
|
|
5865
5922
|
readonly type: "uint256";
|
|
5866
5923
|
}, {
|
|
5867
|
-
readonly name: "
|
|
5924
|
+
readonly name: "to";
|
|
5868
5925
|
readonly internalType: "address";
|
|
5869
5926
|
readonly type: "address";
|
|
5870
5927
|
}, {
|
|
@@ -5964,7 +6021,7 @@ export declare const routerCAbi: readonly [{
|
|
|
5964
6021
|
readonly internalType: "uint256";
|
|
5965
6022
|
readonly type: "uint256";
|
|
5966
6023
|
}, {
|
|
5967
|
-
readonly name: "
|
|
6024
|
+
readonly name: "to";
|
|
5968
6025
|
readonly internalType: "address";
|
|
5969
6026
|
readonly type: "address";
|
|
5970
6027
|
}, {
|
|
@@ -6011,7 +6068,7 @@ export declare const routerCAbi: readonly [{
|
|
|
6011
6068
|
readonly internalType: "uint256";
|
|
6012
6069
|
readonly type: "uint256";
|
|
6013
6070
|
}, {
|
|
6014
|
-
readonly name: "
|
|
6071
|
+
readonly name: "to";
|
|
6015
6072
|
readonly internalType: "address";
|
|
6016
6073
|
readonly type: "address";
|
|
6017
6074
|
}, {
|
|
@@ -6053,7 +6110,7 @@ export declare const routerCAbi: readonly [{
|
|
|
6053
6110
|
readonly internalType: "uint256";
|
|
6054
6111
|
readonly type: "uint256";
|
|
6055
6112
|
}, {
|
|
6056
|
-
readonly name: "
|
|
6113
|
+
readonly name: "to";
|
|
6057
6114
|
readonly internalType: "address";
|
|
6058
6115
|
readonly type: "address";
|
|
6059
6116
|
}, {
|
|
@@ -6125,7 +6182,7 @@ export declare const routerCAbi: readonly [{
|
|
|
6125
6182
|
readonly internalType: "uint256";
|
|
6126
6183
|
readonly type: "uint256";
|
|
6127
6184
|
}, {
|
|
6128
|
-
readonly name: "
|
|
6185
|
+
readonly name: "to";
|
|
6129
6186
|
readonly internalType: "address";
|
|
6130
6187
|
readonly type: "address";
|
|
6131
6188
|
}, {
|
|
@@ -6201,7 +6258,7 @@ export declare const routerCAbi: readonly [{
|
|
|
6201
6258
|
readonly internalType: "uint256";
|
|
6202
6259
|
readonly type: "uint256";
|
|
6203
6260
|
}, {
|
|
6204
|
-
readonly name: "
|
|
6261
|
+
readonly name: "to";
|
|
6205
6262
|
readonly internalType: "address";
|
|
6206
6263
|
readonly type: "address";
|
|
6207
6264
|
}, {
|
|
@@ -6220,16 +6277,6 @@ export declare const routerCAbi: readonly [{
|
|
|
6220
6277
|
readonly type: "uint256";
|
|
6221
6278
|
}];
|
|
6222
6279
|
readonly stateMutability: "nonpayable";
|
|
6223
|
-
}, {
|
|
6224
|
-
readonly type: "event";
|
|
6225
|
-
readonly anonymous: false;
|
|
6226
|
-
readonly inputs: readonly [{
|
|
6227
|
-
readonly name: "user";
|
|
6228
|
-
readonly internalType: "address";
|
|
6229
|
-
readonly type: "address";
|
|
6230
|
-
readonly indexed: true;
|
|
6231
|
-
}];
|
|
6232
|
-
readonly name: "RouterCall";
|
|
6233
6280
|
}, {
|
|
6234
6281
|
readonly type: "error";
|
|
6235
6282
|
readonly inputs: readonly [];
|
|
@@ -6573,24 +6620,10 @@ export declare const routerFAbi: readonly [{
|
|
|
6573
6620
|
readonly type: "uint256";
|
|
6574
6621
|
}];
|
|
6575
6622
|
readonly stateMutability: "nonpayable";
|
|
6576
|
-
}, {
|
|
6577
|
-
readonly type: "event";
|
|
6578
|
-
readonly anonymous: false;
|
|
6579
|
-
readonly inputs: readonly [{
|
|
6580
|
-
readonly name: "user";
|
|
6581
|
-
readonly internalType: "address";
|
|
6582
|
-
readonly type: "address";
|
|
6583
|
-
readonly indexed: true;
|
|
6584
|
-
}];
|
|
6585
|
-
readonly name: "RouterCall";
|
|
6586
6623
|
}, {
|
|
6587
6624
|
readonly type: "error";
|
|
6588
6625
|
readonly inputs: readonly [];
|
|
6589
6626
|
readonly name: "BadRecipient";
|
|
6590
|
-
}, {
|
|
6591
|
-
readonly type: "error";
|
|
6592
|
-
readonly inputs: readonly [];
|
|
6593
|
-
readonly name: "BadToken";
|
|
6594
6627
|
}, {
|
|
6595
6628
|
readonly type: "error";
|
|
6596
6629
|
readonly inputs: readonly [];
|
|
@@ -6623,6 +6656,10 @@ export declare const routerFAbi: readonly [{
|
|
|
6623
6656
|
readonly type: "error";
|
|
6624
6657
|
readonly inputs: readonly [];
|
|
6625
6658
|
readonly name: "UnsupportedOp";
|
|
6659
|
+
}, {
|
|
6660
|
+
readonly type: "error";
|
|
6661
|
+
readonly inputs: readonly [];
|
|
6662
|
+
readonly name: "WrongToken";
|
|
6626
6663
|
}, {
|
|
6627
6664
|
readonly type: "error";
|
|
6628
6665
|
readonly inputs: readonly [];
|