@exponent-labs/exponent-clmm-idl 0.9.24 → 0.9.26
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/build/exponent_clmm.d.ts +301 -6
- package/build/exponent_clmm.json +301 -6
- package/build/index.d.ts +17 -2
- package/package.json +1 -1
- package/src/exponent_clmm.json +301 -6
- package/src/exponent_clmm.ts +301 -6
package/build/exponent_clmm.json
CHANGED
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
],
|
|
1214
1214
|
"returns": {
|
|
1215
1215
|
"defined": {
|
|
1216
|
-
"name": "
|
|
1216
|
+
"name": "TradePtReturnData"
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
1219
|
},
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
],
|
|
1320
1320
|
"returns": {
|
|
1321
1321
|
"defined": {
|
|
1322
|
-
"name": "
|
|
1322
|
+
"name": "TradePtReturnData"
|
|
1323
1323
|
}
|
|
1324
1324
|
}
|
|
1325
1325
|
},
|
|
@@ -2365,6 +2365,19 @@
|
|
|
2365
2365
|
174
|
|
2366
2366
|
]
|
|
2367
2367
|
},
|
|
2368
|
+
{
|
|
2369
|
+
"name": "TradePtReturnData",
|
|
2370
|
+
"discriminator": [
|
|
2371
|
+
26,
|
|
2372
|
+
64,
|
|
2373
|
+
30,
|
|
2374
|
+
82,
|
|
2375
|
+
98,
|
|
2376
|
+
163,
|
|
2377
|
+
184,
|
|
2378
|
+
31
|
|
2379
|
+
]
|
|
2380
|
+
},
|
|
2368
2381
|
{
|
|
2369
2382
|
"name": "WithdrawLiquidityEvent",
|
|
2370
2383
|
"discriminator": [
|
|
@@ -2663,6 +2676,41 @@
|
|
|
2663
2676
|
"code": 6035,
|
|
2664
2677
|
"name": "CrossingEqualizationInvariantViolated",
|
|
2665
2678
|
"msg": "Crossing equalization invariants were violated"
|
|
2679
|
+
},
|
|
2680
|
+
{
|
|
2681
|
+
"code": 6036,
|
|
2682
|
+
"name": "InvalidSyExchangeRate",
|
|
2683
|
+
"msg": "SY exchange rate must be positive"
|
|
2684
|
+
},
|
|
2685
|
+
{
|
|
2686
|
+
"code": 6037,
|
|
2687
|
+
"name": "LpSupplyInvariantViolated",
|
|
2688
|
+
"msg": "LP supply does not match total position balances"
|
|
2689
|
+
},
|
|
2690
|
+
{
|
|
2691
|
+
"code": 6038,
|
|
2692
|
+
"name": "TickShareSupplyBelowMinimum",
|
|
2693
|
+
"msg": "Tick share supply must be zero or at least one"
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
"code": 6039,
|
|
2697
|
+
"name": "TickImpliedApyAboveMaximum",
|
|
2698
|
+
"msg": "Tick implied APY exceeds the maximum"
|
|
2699
|
+
},
|
|
2700
|
+
{
|
|
2701
|
+
"code": 6040,
|
|
2702
|
+
"name": "InvalidImpliedApy",
|
|
2703
|
+
"msg": "Implied APY is outside the supported range"
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
"code": 6041,
|
|
2707
|
+
"name": "ImpliedApyChangeExceedsLimit",
|
|
2708
|
+
"msg": "Implied APY change exceeds the configured limit"
|
|
2709
|
+
},
|
|
2710
|
+
{
|
|
2711
|
+
"code": 6042,
|
|
2712
|
+
"name": "FeeCollectionLimitExceeded",
|
|
2713
|
+
"msg": "Fee collection exceeds the configured limit"
|
|
2666
2714
|
}
|
|
2667
2715
|
],
|
|
2668
2716
|
"types": [
|
|
@@ -2978,12 +3026,44 @@
|
|
|
2978
3026
|
"name": "tick_space",
|
|
2979
3027
|
"type": "u32"
|
|
2980
3028
|
},
|
|
3029
|
+
{
|
|
3030
|
+
"name": "liquidity_deposit_credit",
|
|
3031
|
+
"type": {
|
|
3032
|
+
"defined": {
|
|
3033
|
+
"name": "LiquidityDepositCredit"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
"name": "lp_supply_accounting",
|
|
3039
|
+
"type": {
|
|
3040
|
+
"defined": {
|
|
3041
|
+
"name": "LpSupplyAccounting"
|
|
3042
|
+
}
|
|
3043
|
+
}
|
|
3044
|
+
},
|
|
3045
|
+
{
|
|
3046
|
+
"name": "implied_apy_change_limits",
|
|
3047
|
+
"type": {
|
|
3048
|
+
"defined": {
|
|
3049
|
+
"name": "ImpliedApyChangeLimits"
|
|
3050
|
+
}
|
|
3051
|
+
}
|
|
3052
|
+
},
|
|
3053
|
+
{
|
|
3054
|
+
"name": "fee_collection_limits",
|
|
3055
|
+
"type": {
|
|
3056
|
+
"defined": {
|
|
3057
|
+
"name": "FeeCollectionLimits"
|
|
3058
|
+
}
|
|
3059
|
+
}
|
|
3060
|
+
},
|
|
2981
3061
|
{
|
|
2982
3062
|
"name": "_reserved",
|
|
2983
3063
|
"type": {
|
|
2984
3064
|
"array": [
|
|
2985
3065
|
"u8",
|
|
2986
|
-
|
|
3066
|
+
846
|
|
2987
3067
|
]
|
|
2988
3068
|
}
|
|
2989
3069
|
}
|
|
@@ -3530,6 +3610,117 @@
|
|
|
3530
3610
|
]
|
|
3531
3611
|
}
|
|
3532
3612
|
},
|
|
3613
|
+
{
|
|
3614
|
+
"name": "FeeCollectionLimits",
|
|
3615
|
+
"type": {
|
|
3616
|
+
"kind": "struct",
|
|
3617
|
+
"fields": [
|
|
3618
|
+
{
|
|
3619
|
+
"name": "max_pt_fees",
|
|
3620
|
+
"type": "u64"
|
|
3621
|
+
},
|
|
3622
|
+
{
|
|
3623
|
+
"name": "max_sy_fees",
|
|
3624
|
+
"type": "u64"
|
|
3625
|
+
},
|
|
3626
|
+
{
|
|
3627
|
+
"name": "refill_duration_seconds",
|
|
3628
|
+
"type": "u32"
|
|
3629
|
+
},
|
|
3630
|
+
{
|
|
3631
|
+
"name": "pt_remaining",
|
|
3632
|
+
"type": "u64"
|
|
3633
|
+
},
|
|
3634
|
+
{
|
|
3635
|
+
"name": "sy_remaining",
|
|
3636
|
+
"type": "u64"
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
"name": "last_updated_timestamp",
|
|
3640
|
+
"type": "u32"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"name": "pt_refill_remainder",
|
|
3644
|
+
"type": "u32"
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
"name": "sy_refill_remainder",
|
|
3648
|
+
"type": "u32"
|
|
3649
|
+
}
|
|
3650
|
+
]
|
|
3651
|
+
}
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
"name": "ImpliedApyChangeLimits",
|
|
3655
|
+
"type": {
|
|
3656
|
+
"kind": "struct",
|
|
3657
|
+
"fields": [
|
|
3658
|
+
{
|
|
3659
|
+
"name": "max_implied_apy_change",
|
|
3660
|
+
"docs": [
|
|
3661
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
3662
|
+
],
|
|
3663
|
+
"type": "u32"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
"name": "window_duration_seconds",
|
|
3667
|
+
"type": "u32"
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
"name": "epoch",
|
|
3671
|
+
"docs": [
|
|
3672
|
+
"Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
|
|
3673
|
+
],
|
|
3674
|
+
"type": "u64"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "previous_min",
|
|
3678
|
+
"type": "u64"
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "previous_max",
|
|
3682
|
+
"type": "u64"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "current_min",
|
|
3686
|
+
"type": "u64"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"name": "current_max",
|
|
3690
|
+
"type": "u64"
|
|
3691
|
+
}
|
|
3692
|
+
]
|
|
3693
|
+
}
|
|
3694
|
+
},
|
|
3695
|
+
{
|
|
3696
|
+
"name": "LiquidityDepositCredit",
|
|
3697
|
+
"type": {
|
|
3698
|
+
"kind": "struct",
|
|
3699
|
+
"fields": [
|
|
3700
|
+
{
|
|
3701
|
+
"name": "previous",
|
|
3702
|
+
"docs": [
|
|
3703
|
+
"Normalized deposit principal from the previous fixed withdrawal-limit epoch."
|
|
3704
|
+
],
|
|
3705
|
+
"type": "u128"
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
"name": "current",
|
|
3709
|
+
"docs": [
|
|
3710
|
+
"Normalized deposit principal from the current fixed withdrawal-limit epoch."
|
|
3711
|
+
],
|
|
3712
|
+
"type": "u128"
|
|
3713
|
+
},
|
|
3714
|
+
{
|
|
3715
|
+
"name": "epoch",
|
|
3716
|
+
"docs": [
|
|
3717
|
+
"Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
|
|
3718
|
+
],
|
|
3719
|
+
"type": "u64"
|
|
3720
|
+
}
|
|
3721
|
+
]
|
|
3722
|
+
}
|
|
3723
|
+
},
|
|
3533
3724
|
{
|
|
3534
3725
|
"name": "LiquidityNetBalanceLimits",
|
|
3535
3726
|
"type": {
|
|
@@ -3537,29 +3728,44 @@
|
|
|
3537
3728
|
"fields": [
|
|
3538
3729
|
{
|
|
3539
3730
|
"name": "window_start_timestamp",
|
|
3731
|
+
"docs": [
|
|
3732
|
+
"Last timestamp at which the withdrawal bucket was evaluated.",
|
|
3733
|
+
"",
|
|
3734
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3735
|
+
],
|
|
3540
3736
|
"type": "u32"
|
|
3541
3737
|
},
|
|
3542
3738
|
{
|
|
3543
3739
|
"name": "window_start_net_balance",
|
|
3740
|
+
"docs": [
|
|
3741
|
+
"Remaining normalized PT-equivalent withdrawal capacity.",
|
|
3742
|
+
"",
|
|
3743
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3744
|
+
],
|
|
3544
3745
|
"type": "u64"
|
|
3545
3746
|
},
|
|
3546
3747
|
{
|
|
3547
3748
|
"name": "max_net_balance_change_negative_percentage",
|
|
3548
3749
|
"docs": [
|
|
3549
|
-
"Maximum
|
|
3750
|
+
"Maximum withdrawal capacity in basis points of the market's normalized value."
|
|
3550
3751
|
],
|
|
3551
3752
|
"type": "u16"
|
|
3552
3753
|
},
|
|
3553
3754
|
{
|
|
3554
3755
|
"name": "max_net_balance_change_positive_percentage",
|
|
3555
3756
|
"docs": [
|
|
3556
|
-
"
|
|
3557
|
-
"
|
|
3757
|
+
"Fractional refill numerator carried between withdrawals.",
|
|
3758
|
+
"",
|
|
3759
|
+
"This prevents the realized refill rate from depending on how frequently withdrawals occur.",
|
|
3760
|
+
"The legacy field name is retained to preserve generated client compatibility."
|
|
3558
3761
|
],
|
|
3559
3762
|
"type": "u32"
|
|
3560
3763
|
},
|
|
3561
3764
|
{
|
|
3562
3765
|
"name": "window_duration_seconds",
|
|
3766
|
+
"docs": [
|
|
3767
|
+
"Time required for an empty withdrawal bucket to refill completely."
|
|
3768
|
+
],
|
|
3563
3769
|
"type": "u32"
|
|
3564
3770
|
}
|
|
3565
3771
|
]
|
|
@@ -3685,6 +3891,30 @@
|
|
|
3685
3891
|
]
|
|
3686
3892
|
}
|
|
3687
3893
|
},
|
|
3894
|
+
{
|
|
3895
|
+
"name": "LpSupplyAccounting",
|
|
3896
|
+
"type": {
|
|
3897
|
+
"kind": "struct",
|
|
3898
|
+
"fields": [
|
|
3899
|
+
{
|
|
3900
|
+
"name": "total_position_balance",
|
|
3901
|
+
"type": "u64"
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "tick_crossing_liquidity_delta",
|
|
3905
|
+
"type": "i128"
|
|
3906
|
+
},
|
|
3907
|
+
{
|
|
3908
|
+
"name": "position_crossing_liquidity_delta",
|
|
3909
|
+
"type": "i128"
|
|
3910
|
+
},
|
|
3911
|
+
{
|
|
3912
|
+
"name": "initialized",
|
|
3913
|
+
"type": "bool"
|
|
3914
|
+
}
|
|
3915
|
+
]
|
|
3916
|
+
}
|
|
3917
|
+
},
|
|
3688
3918
|
{
|
|
3689
3919
|
"name": "MarketAccrueEmissionEvent",
|
|
3690
3920
|
"type": {
|
|
@@ -3804,14 +4034,23 @@
|
|
|
3804
4034
|
"fields": [
|
|
3805
4035
|
{
|
|
3806
4036
|
"name": "max_net_balance_change_negative_percentage",
|
|
4037
|
+
"docs": [
|
|
4038
|
+
"Maximum normalized gross withdrawal, in basis points of market value."
|
|
4039
|
+
],
|
|
3807
4040
|
"type": "u16"
|
|
3808
4041
|
},
|
|
3809
4042
|
{
|
|
3810
4043
|
"name": "max_net_balance_change_positive_percentage",
|
|
4044
|
+
"docs": [
|
|
4045
|
+
"Retained for instruction compatibility. The token-bucket limiter does not use it."
|
|
4046
|
+
],
|
|
3811
4047
|
"type": "u32"
|
|
3812
4048
|
},
|
|
3813
4049
|
{
|
|
3814
4050
|
"name": "window_duration_seconds",
|
|
4051
|
+
"docs": [
|
|
4052
|
+
"Seconds required for an empty withdrawal bucket to refill completely."
|
|
4053
|
+
],
|
|
3815
4054
|
"type": "u32"
|
|
3816
4055
|
}
|
|
3817
4056
|
]
|
|
@@ -3839,6 +4078,39 @@
|
|
|
3839
4078
|
"fields": [
|
|
3840
4079
|
"u32"
|
|
3841
4080
|
]
|
|
4081
|
+
},
|
|
4082
|
+
{
|
|
4083
|
+
"name": "ChangeImpliedApyChangeLimits",
|
|
4084
|
+
"fields": [
|
|
4085
|
+
{
|
|
4086
|
+
"name": "max_implied_apy_change",
|
|
4087
|
+
"docs": [
|
|
4088
|
+
"Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
|
|
4089
|
+
],
|
|
4090
|
+
"type": "u32"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
"name": "window_duration_seconds",
|
|
4094
|
+
"type": "u32"
|
|
4095
|
+
}
|
|
4096
|
+
]
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "ChangeFeeCollectionLimits",
|
|
4100
|
+
"fields": [
|
|
4101
|
+
{
|
|
4102
|
+
"name": "max_pt_fees",
|
|
4103
|
+
"type": "u64"
|
|
4104
|
+
},
|
|
4105
|
+
{
|
|
4106
|
+
"name": "max_sy_fees",
|
|
4107
|
+
"type": "u64"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"name": "refill_duration_seconds",
|
|
4111
|
+
"type": "u32"
|
|
4112
|
+
}
|
|
4113
|
+
]
|
|
3842
4114
|
}
|
|
3843
4115
|
]
|
|
3844
4116
|
}
|
|
@@ -4156,6 +4428,13 @@
|
|
|
4156
4428
|
}
|
|
4157
4429
|
}
|
|
4158
4430
|
},
|
|
4431
|
+
{
|
|
4432
|
+
"name": "_self_cpi_status",
|
|
4433
|
+
"docs": [
|
|
4434
|
+
"Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
|
|
4435
|
+
],
|
|
4436
|
+
"type": "u8"
|
|
4437
|
+
},
|
|
4159
4438
|
{
|
|
4160
4439
|
"name": "financials",
|
|
4161
4440
|
"type": {
|
|
@@ -4952,6 +5231,22 @@
|
|
|
4952
5231
|
]
|
|
4953
5232
|
}
|
|
4954
5233
|
},
|
|
5234
|
+
{
|
|
5235
|
+
"name": "TradePtReturnData",
|
|
5236
|
+
"type": {
|
|
5237
|
+
"kind": "struct",
|
|
5238
|
+
"fields": [
|
|
5239
|
+
{
|
|
5240
|
+
"name": "amount_in",
|
|
5241
|
+
"type": "u64"
|
|
5242
|
+
},
|
|
5243
|
+
{
|
|
5244
|
+
"name": "amount_out",
|
|
5245
|
+
"type": "u64"
|
|
5246
|
+
}
|
|
5247
|
+
]
|
|
5248
|
+
}
|
|
5249
|
+
},
|
|
4955
5250
|
{
|
|
4956
5251
|
"name": "Vault",
|
|
4957
5252
|
"type": {
|
package/build/index.d.ts
CHANGED
|
@@ -368,10 +368,20 @@ export declare const IDL: {
|
|
|
368
368
|
name: string;
|
|
369
369
|
type: string;
|
|
370
370
|
docs?: undefined;
|
|
371
|
+
} | {
|
|
372
|
+
name: string;
|
|
373
|
+
type: {
|
|
374
|
+
defined: {
|
|
375
|
+
name: string;
|
|
376
|
+
};
|
|
377
|
+
array?: undefined;
|
|
378
|
+
};
|
|
379
|
+
docs?: undefined;
|
|
371
380
|
} | {
|
|
372
381
|
name: string;
|
|
373
382
|
type: {
|
|
374
383
|
array: (string | number)[];
|
|
384
|
+
defined?: undefined;
|
|
375
385
|
};
|
|
376
386
|
docs?: undefined;
|
|
377
387
|
})[];
|
|
@@ -456,10 +466,15 @@ export declare const IDL: {
|
|
|
456
466
|
}[];
|
|
457
467
|
} | {
|
|
458
468
|
name: string;
|
|
459
|
-
fields: {
|
|
469
|
+
fields: ({
|
|
460
470
|
name: string;
|
|
471
|
+
docs: string[];
|
|
461
472
|
type: string;
|
|
462
|
-
}
|
|
473
|
+
} | {
|
|
474
|
+
name: string;
|
|
475
|
+
type: string;
|
|
476
|
+
docs?: undefined;
|
|
477
|
+
})[];
|
|
463
478
|
})[];
|
|
464
479
|
fields?: undefined;
|
|
465
480
|
};
|