@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.
@@ -1219,7 +1219,7 @@ export type ExponentClmm = {
1219
1219
  ];
1220
1220
  "returns": {
1221
1221
  "defined": {
1222
- "name": "tradePtEvent";
1222
+ "name": "tradePtReturnData";
1223
1223
  };
1224
1224
  };
1225
1225
  },
@@ -1325,7 +1325,7 @@ export type ExponentClmm = {
1325
1325
  ];
1326
1326
  "returns": {
1327
1327
  "defined": {
1328
- "name": "tradePtEvent";
1328
+ "name": "tradePtReturnData";
1329
1329
  };
1330
1330
  };
1331
1331
  },
@@ -2371,6 +2371,19 @@ export type ExponentClmm = {
2371
2371
  174
2372
2372
  ];
2373
2373
  },
2374
+ {
2375
+ "name": "tradePtReturnData";
2376
+ "discriminator": [
2377
+ 26,
2378
+ 64,
2379
+ 30,
2380
+ 82,
2381
+ 98,
2382
+ 163,
2383
+ 184,
2384
+ 31
2385
+ ];
2386
+ },
2374
2387
  {
2375
2388
  "name": "withdrawLiquidityEvent";
2376
2389
  "discriminator": [
@@ -2669,6 +2682,41 @@ export type ExponentClmm = {
2669
2682
  "code": 6035;
2670
2683
  "name": "crossingEqualizationInvariantViolated";
2671
2684
  "msg": "Crossing equalization invariants were violated";
2685
+ },
2686
+ {
2687
+ "code": 6036;
2688
+ "name": "invalidSyExchangeRate";
2689
+ "msg": "SY exchange rate must be positive";
2690
+ },
2691
+ {
2692
+ "code": 6037;
2693
+ "name": "lpSupplyInvariantViolated";
2694
+ "msg": "LP supply does not match total position balances";
2695
+ },
2696
+ {
2697
+ "code": 6038;
2698
+ "name": "tickShareSupplyBelowMinimum";
2699
+ "msg": "Tick share supply must be zero or at least one";
2700
+ },
2701
+ {
2702
+ "code": 6039;
2703
+ "name": "tickImpliedApyAboveMaximum";
2704
+ "msg": "Tick implied APY exceeds the maximum";
2705
+ },
2706
+ {
2707
+ "code": 6040;
2708
+ "name": "invalidImpliedApy";
2709
+ "msg": "Implied APY is outside the supported range";
2710
+ },
2711
+ {
2712
+ "code": 6041;
2713
+ "name": "impliedApyChangeExceedsLimit";
2714
+ "msg": "Implied APY change exceeds the configured limit";
2715
+ },
2716
+ {
2717
+ "code": 6042;
2718
+ "name": "feeCollectionLimitExceeded";
2719
+ "msg": "Fee collection exceeds the configured limit";
2672
2720
  }
2673
2721
  ];
2674
2722
  "types": [
@@ -2984,12 +3032,44 @@ export type ExponentClmm = {
2984
3032
  "name": "tickSpace";
2985
3033
  "type": "u32";
2986
3034
  },
3035
+ {
3036
+ "name": "liquidityDepositCredit";
3037
+ "type": {
3038
+ "defined": {
3039
+ "name": "liquidityDepositCredit";
3040
+ };
3041
+ };
3042
+ },
3043
+ {
3044
+ "name": "lpSupplyAccounting";
3045
+ "type": {
3046
+ "defined": {
3047
+ "name": "lpSupplyAccounting";
3048
+ };
3049
+ };
3050
+ },
3051
+ {
3052
+ "name": "impliedApyChangeLimits";
3053
+ "type": {
3054
+ "defined": {
3055
+ "name": "impliedApyChangeLimits";
3056
+ };
3057
+ };
3058
+ },
3059
+ {
3060
+ "name": "feeCollectionLimits";
3061
+ "type": {
3062
+ "defined": {
3063
+ "name": "feeCollectionLimits";
3064
+ };
3065
+ };
3066
+ },
2987
3067
  {
2988
3068
  "name": "reserved";
2989
3069
  "type": {
2990
3070
  "array": [
2991
3071
  "u8",
2992
- 1024
3072
+ 846
2993
3073
  ];
2994
3074
  };
2995
3075
  }
@@ -3536,6 +3616,117 @@ export type ExponentClmm = {
3536
3616
  ];
3537
3617
  };
3538
3618
  },
3619
+ {
3620
+ "name": "feeCollectionLimits";
3621
+ "type": {
3622
+ "kind": "struct";
3623
+ "fields": [
3624
+ {
3625
+ "name": "maxPtFees";
3626
+ "type": "u64";
3627
+ },
3628
+ {
3629
+ "name": "maxSyFees";
3630
+ "type": "u64";
3631
+ },
3632
+ {
3633
+ "name": "refillDurationSeconds";
3634
+ "type": "u32";
3635
+ },
3636
+ {
3637
+ "name": "ptRemaining";
3638
+ "type": "u64";
3639
+ },
3640
+ {
3641
+ "name": "syRemaining";
3642
+ "type": "u64";
3643
+ },
3644
+ {
3645
+ "name": "lastUpdatedTimestamp";
3646
+ "type": "u32";
3647
+ },
3648
+ {
3649
+ "name": "ptRefillRemainder";
3650
+ "type": "u32";
3651
+ },
3652
+ {
3653
+ "name": "syRefillRemainder";
3654
+ "type": "u32";
3655
+ }
3656
+ ];
3657
+ };
3658
+ },
3659
+ {
3660
+ "name": "impliedApyChangeLimits";
3661
+ "type": {
3662
+ "kind": "struct";
3663
+ "fields": [
3664
+ {
3665
+ "name": "maxImpliedApyChange";
3666
+ "docs": [
3667
+ "Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
3668
+ ];
3669
+ "type": "u32";
3670
+ },
3671
+ {
3672
+ "name": "windowDurationSeconds";
3673
+ "type": "u32";
3674
+ },
3675
+ {
3676
+ "name": "epoch";
3677
+ "docs": [
3678
+ "Current fixed APY-limit epoch plus one. Zero marks uninitialized state."
3679
+ ];
3680
+ "type": "u64";
3681
+ },
3682
+ {
3683
+ "name": "previousMin";
3684
+ "type": "u64";
3685
+ },
3686
+ {
3687
+ "name": "previousMax";
3688
+ "type": "u64";
3689
+ },
3690
+ {
3691
+ "name": "currentMin";
3692
+ "type": "u64";
3693
+ },
3694
+ {
3695
+ "name": "currentMax";
3696
+ "type": "u64";
3697
+ }
3698
+ ];
3699
+ };
3700
+ },
3701
+ {
3702
+ "name": "liquidityDepositCredit";
3703
+ "type": {
3704
+ "kind": "struct";
3705
+ "fields": [
3706
+ {
3707
+ "name": "previous";
3708
+ "docs": [
3709
+ "Normalized deposit principal from the previous fixed withdrawal-limit epoch."
3710
+ ];
3711
+ "type": "u128";
3712
+ },
3713
+ {
3714
+ "name": "current";
3715
+ "docs": [
3716
+ "Normalized deposit principal from the current fixed withdrawal-limit epoch."
3717
+ ];
3718
+ "type": "u128";
3719
+ },
3720
+ {
3721
+ "name": "epoch";
3722
+ "docs": [
3723
+ "Current fixed withdrawal-limit epoch plus one. Zero marks uninitialized state."
3724
+ ];
3725
+ "type": "u64";
3726
+ }
3727
+ ];
3728
+ };
3729
+ },
3539
3730
  {
3540
3731
  "name": "liquidityNetBalanceLimits";
3541
3732
  "type": {
@@ -3543,29 +3734,44 @@ export type ExponentClmm = {
3543
3734
  "fields": [
3544
3735
  {
3545
3736
  "name": "windowStartTimestamp";
3737
+ "docs": [
3738
+ "Last timestamp at which the withdrawal bucket was evaluated.",
3739
+ "",
3740
+ "The legacy field name is retained to preserve generated client compatibility."
3741
+ ];
3546
3742
  "type": "u32";
3547
3743
  },
3548
3744
  {
3549
3745
  "name": "windowStartNetBalance";
3746
+ "docs": [
3747
+ "Remaining normalized PT-equivalent withdrawal capacity.",
3748
+ "",
3749
+ "The legacy field name is retained to preserve generated client compatibility."
3750
+ ];
3550
3751
  "type": "u64";
3551
3752
  },
3552
3753
  {
3553
3754
  "name": "maxNetBalanceChangeNegativePercentage";
3554
3755
  "docs": [
3555
- "Maximum allowed negative change in basis points (10000 = 100%)"
3756
+ "Maximum withdrawal capacity in basis points of the market's normalized value."
3556
3757
  ];
3557
3758
  "type": "u16";
3558
3759
  },
3559
3760
  {
3560
3761
  "name": "maxNetBalanceChangePositivePercentage";
3561
3762
  "docs": [
3562
- "Maximum allowed positive change in basis points (10000 = 100%)",
3563
- "Using u32 to allow for very large increases (up to ~429,496%)"
3763
+ "Fractional refill numerator carried between withdrawals.",
3764
+ "",
3765
+ "This prevents the realized refill rate from depending on how frequently withdrawals occur.",
3766
+ "The legacy field name is retained to preserve generated client compatibility."
3564
3767
  ];
3565
3768
  "type": "u32";
3566
3769
  },
3567
3770
  {
3568
3771
  "name": "windowDurationSeconds";
3772
+ "docs": [
3773
+ "Time required for an empty withdrawal bucket to refill completely."
3774
+ ];
3569
3775
  "type": "u32";
3570
3776
  }
3571
3777
  ];
@@ -3691,6 +3897,30 @@ export type ExponentClmm = {
3691
3897
  ];
3692
3898
  };
3693
3899
  },
3900
+ {
3901
+ "name": "lpSupplyAccounting";
3902
+ "type": {
3903
+ "kind": "struct";
3904
+ "fields": [
3905
+ {
3906
+ "name": "totalPositionBalance";
3907
+ "type": "u64";
3908
+ },
3909
+ {
3910
+ "name": "tickCrossingLiquidityDelta";
3911
+ "type": "i128";
3912
+ },
3913
+ {
3914
+ "name": "positionCrossingLiquidityDelta";
3915
+ "type": "i128";
3916
+ },
3917
+ {
3918
+ "name": "initialized";
3919
+ "type": "bool";
3920
+ }
3921
+ ];
3922
+ };
3923
+ },
3694
3924
  {
3695
3925
  "name": "marketAccrueEmissionEvent";
3696
3926
  "type": {
@@ -3810,14 +4040,23 @@ export type ExponentClmm = {
3810
4040
  "fields": [
3811
4041
  {
3812
4042
  "name": "maxNetBalanceChangeNegativePercentage";
4043
+ "docs": [
4044
+ "Maximum normalized gross withdrawal, in basis points of market value."
4045
+ ];
3813
4046
  "type": "u16";
3814
4047
  },
3815
4048
  {
3816
4049
  "name": "maxNetBalanceChangePositivePercentage";
4050
+ "docs": [
4051
+ "Retained for instruction compatibility. The token-bucket limiter does not use it."
4052
+ ];
3817
4053
  "type": "u32";
3818
4054
  },
3819
4055
  {
3820
4056
  "name": "windowDurationSeconds";
4057
+ "docs": [
4058
+ "Seconds required for an empty withdrawal bucket to refill completely."
4059
+ ];
3821
4060
  "type": "u32";
3822
4061
  }
3823
4062
  ];
@@ -3845,6 +4084,39 @@ export type ExponentClmm = {
3845
4084
  "fields": [
3846
4085
  "u32"
3847
4086
  ];
4087
+ },
4088
+ {
4089
+ "name": "changeImpliedApyChangeLimits";
4090
+ "fields": [
4091
+ {
4092
+ "name": "maxImpliedApyChange";
4093
+ "docs": [
4094
+ "Maximum APY range in tick-key units. 10,000 units equal one APY percentage point."
4095
+ ];
4096
+ "type": "u32";
4097
+ },
4098
+ {
4099
+ "name": "windowDurationSeconds";
4100
+ "type": "u32";
4101
+ }
4102
+ ];
4103
+ },
4104
+ {
4105
+ "name": "changeFeeCollectionLimits";
4106
+ "fields": [
4107
+ {
4108
+ "name": "maxPtFees";
4109
+ "type": "u64";
4110
+ },
4111
+ {
4112
+ "name": "maxSyFees";
4113
+ "type": "u64";
4114
+ },
4115
+ {
4116
+ "name": "refillDurationSeconds";
4117
+ "type": "u32";
4118
+ }
4119
+ ];
3848
4120
  }
3849
4121
  ];
3850
4122
  };
@@ -4162,6 +4434,13 @@ export type ExponentClmm = {
4162
4434
  };
4163
4435
  };
4164
4436
  },
4437
+ {
4438
+ "name": "selfCpiStatus";
4439
+ "docs": [
4440
+ "Reserved for dev's `self_cpi_status` so later deployments preserve account offsets."
4441
+ ];
4442
+ "type": "u8";
4443
+ },
4165
4444
  {
4166
4445
  "name": "financials";
4167
4446
  "type": {
@@ -4958,6 +5237,22 @@ export type ExponentClmm = {
4958
5237
  ];
4959
5238
  };
4960
5239
  },
5240
+ {
5241
+ "name": "tradePtReturnData";
5242
+ "type": {
5243
+ "kind": "struct";
5244
+ "fields": [
5245
+ {
5246
+ "name": "amountIn";
5247
+ "type": "u64";
5248
+ },
5249
+ {
5250
+ "name": "amountOut";
5251
+ "type": "u64";
5252
+ }
5253
+ ];
5254
+ };
5255
+ },
4961
5256
  {
4962
5257
  "name": "vault";
4963
5258
  "type": {