@meteora-ag/dynamic-bonding-curve-sdk 1.4.10 → 1.5.1
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 +13 -5
- package/dist/index.cjs +1126 -327
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +929 -309
- package/dist/index.d.ts +929 -309
- package/dist/index.js +1143 -344
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ type DynamicBondingCurve = {
|
|
|
13
13
|
address: 'dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN';
|
|
14
14
|
metadata: {
|
|
15
15
|
name: 'dynamicBondingCurve';
|
|
16
|
-
version: '0.1.
|
|
16
|
+
version: '0.1.8';
|
|
17
17
|
spec: '0.1.0';
|
|
18
18
|
description: 'Created with Anchor';
|
|
19
19
|
};
|
|
@@ -64,7 +64,6 @@ type DynamicBondingCurve = {
|
|
|
64
64
|
{
|
|
65
65
|
name: 'creator';
|
|
66
66
|
signer: true;
|
|
67
|
-
relations: ['pool'];
|
|
68
67
|
},
|
|
69
68
|
{
|
|
70
69
|
name: 'tokenBaseProgram';
|
|
@@ -119,8 +118,8 @@ type DynamicBondingCurve = {
|
|
|
119
118
|
];
|
|
120
119
|
},
|
|
121
120
|
{
|
|
122
|
-
name: '
|
|
123
|
-
discriminator: [
|
|
121
|
+
name: 'claimLegacyPoolCreationFee';
|
|
122
|
+
discriminator: [96, 11, 187, 225, 54, 117, 161, 134];
|
|
124
123
|
accounts: [
|
|
125
124
|
{
|
|
126
125
|
name: 'pool';
|
|
@@ -131,10 +130,9 @@ type DynamicBondingCurve = {
|
|
|
131
130
|
docs: ['Claim fee operator'];
|
|
132
131
|
},
|
|
133
132
|
{
|
|
134
|
-
name: '
|
|
133
|
+
name: 'signer';
|
|
135
134
|
docs: ['Operator'];
|
|
136
135
|
signer: true;
|
|
137
|
-
relations: ['claimFeeOperator'];
|
|
138
136
|
},
|
|
139
137
|
{
|
|
140
138
|
name: 'treasury';
|
|
@@ -180,6 +178,61 @@ type DynamicBondingCurve = {
|
|
|
180
178
|
];
|
|
181
179
|
args: [];
|
|
182
180
|
},
|
|
181
|
+
{
|
|
182
|
+
name: 'claimPartnerPoolCreationFee';
|
|
183
|
+
discriminator: [250, 238, 26, 4, 139, 10, 101, 248];
|
|
184
|
+
accounts: [
|
|
185
|
+
{
|
|
186
|
+
name: 'config';
|
|
187
|
+
relations: ['pool'];
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: 'pool';
|
|
191
|
+
writable: true;
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'feeClaimer';
|
|
195
|
+
signer: true;
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: 'feeReceiver';
|
|
199
|
+
writable: true;
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: 'eventAuthority';
|
|
203
|
+
pda: {
|
|
204
|
+
seeds: [
|
|
205
|
+
{
|
|
206
|
+
kind: 'const';
|
|
207
|
+
value: [
|
|
208
|
+
95,
|
|
209
|
+
95,
|
|
210
|
+
101,
|
|
211
|
+
118,
|
|
212
|
+
101,
|
|
213
|
+
110,
|
|
214
|
+
116,
|
|
215
|
+
95,
|
|
216
|
+
97,
|
|
217
|
+
117,
|
|
218
|
+
116,
|
|
219
|
+
104,
|
|
220
|
+
111,
|
|
221
|
+
114,
|
|
222
|
+
105,
|
|
223
|
+
116,
|
|
224
|
+
121
|
|
225
|
+
];
|
|
226
|
+
}
|
|
227
|
+
];
|
|
228
|
+
};
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: 'program';
|
|
232
|
+
}
|
|
233
|
+
];
|
|
234
|
+
args: [];
|
|
235
|
+
},
|
|
183
236
|
{
|
|
184
237
|
name: 'claimProtocolFee';
|
|
185
238
|
discriminator: [165, 228, 133, 48, 99, 249, 255, 33];
|
|
@@ -405,10 +458,9 @@ type DynamicBondingCurve = {
|
|
|
405
458
|
docs: ['Claim fee operator'];
|
|
406
459
|
},
|
|
407
460
|
{
|
|
408
|
-
name: '
|
|
409
|
-
docs: ['
|
|
461
|
+
name: 'signer';
|
|
462
|
+
docs: ['Signer'];
|
|
410
463
|
signer: true;
|
|
411
|
-
relations: ['claimFeeOperator'];
|
|
412
464
|
},
|
|
413
465
|
{
|
|
414
466
|
name: 'tokenBaseProgram';
|
|
@@ -453,6 +505,67 @@ type DynamicBondingCurve = {
|
|
|
453
505
|
];
|
|
454
506
|
args: [];
|
|
455
507
|
},
|
|
508
|
+
{
|
|
509
|
+
name: 'claimProtocolPoolCreationFee';
|
|
510
|
+
discriminator: [114, 205, 83, 188, 240, 153, 25, 54];
|
|
511
|
+
accounts: [
|
|
512
|
+
{
|
|
513
|
+
name: 'config';
|
|
514
|
+
relations: ['pool'];
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
name: 'pool';
|
|
518
|
+
writable: true;
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
name: 'claimFeeOperator';
|
|
522
|
+
docs: ['Claim fee operator'];
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
name: 'signer';
|
|
526
|
+
docs: ['Operator'];
|
|
527
|
+
signer: true;
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
name: 'treasury';
|
|
531
|
+
writable: true;
|
|
532
|
+
address: '4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv';
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
name: 'eventAuthority';
|
|
536
|
+
pda: {
|
|
537
|
+
seeds: [
|
|
538
|
+
{
|
|
539
|
+
kind: 'const';
|
|
540
|
+
value: [
|
|
541
|
+
95,
|
|
542
|
+
95,
|
|
543
|
+
101,
|
|
544
|
+
118,
|
|
545
|
+
101,
|
|
546
|
+
110,
|
|
547
|
+
116,
|
|
548
|
+
95,
|
|
549
|
+
97,
|
|
550
|
+
117,
|
|
551
|
+
116,
|
|
552
|
+
104,
|
|
553
|
+
111,
|
|
554
|
+
114,
|
|
555
|
+
105,
|
|
556
|
+
116,
|
|
557
|
+
121
|
|
558
|
+
];
|
|
559
|
+
}
|
|
560
|
+
];
|
|
561
|
+
};
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
name: 'program';
|
|
565
|
+
}
|
|
566
|
+
];
|
|
567
|
+
args: [];
|
|
568
|
+
},
|
|
456
569
|
{
|
|
457
570
|
name: 'claimTradingFee';
|
|
458
571
|
discriminator: [8, 236, 89, 49, 152, 125, 177, 81];
|
|
@@ -504,7 +617,6 @@ type DynamicBondingCurve = {
|
|
|
504
617
|
{
|
|
505
618
|
name: 'feeClaimer';
|
|
506
619
|
signer: true;
|
|
507
|
-
relations: ['config'];
|
|
508
620
|
},
|
|
509
621
|
{
|
|
510
622
|
name: 'tokenBaseProgram';
|
|
@@ -559,8 +671,8 @@ type DynamicBondingCurve = {
|
|
|
559
671
|
];
|
|
560
672
|
},
|
|
561
673
|
{
|
|
562
|
-
name: '
|
|
563
|
-
discriminator: [
|
|
674
|
+
name: 'closeClaimProtocolFeeOperator';
|
|
675
|
+
discriminator: [8, 41, 87, 35, 80, 48, 121, 26];
|
|
564
676
|
accounts: [
|
|
565
677
|
{
|
|
566
678
|
name: 'claimFeeOperator';
|
|
@@ -571,7 +683,7 @@ type DynamicBondingCurve = {
|
|
|
571
683
|
writable: true;
|
|
572
684
|
},
|
|
573
685
|
{
|
|
574
|
-
name: '
|
|
686
|
+
name: 'signer';
|
|
575
687
|
signer: true;
|
|
576
688
|
},
|
|
577
689
|
{
|
|
@@ -610,9 +722,8 @@ type DynamicBondingCurve = {
|
|
|
610
722
|
args: [];
|
|
611
723
|
},
|
|
612
724
|
{
|
|
613
|
-
name: '
|
|
614
|
-
|
|
615
|
-
discriminator: [169, 62, 207, 107, 58, 187, 162, 109];
|
|
725
|
+
name: 'createClaimProtocolFeeOperator';
|
|
726
|
+
discriminator: [51, 19, 150, 252, 105, 157, 48, 91];
|
|
616
727
|
accounts: [
|
|
617
728
|
{
|
|
618
729
|
name: 'claimFeeOperator';
|
|
@@ -646,7 +757,11 @@ type DynamicBondingCurve = {
|
|
|
646
757
|
name: 'operator';
|
|
647
758
|
},
|
|
648
759
|
{
|
|
649
|
-
name: '
|
|
760
|
+
name: 'signer';
|
|
761
|
+
signer: true;
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
name: 'payer';
|
|
650
765
|
writable: true;
|
|
651
766
|
signer: true;
|
|
652
767
|
},
|
|
@@ -1003,7 +1118,6 @@ type DynamicBondingCurve = {
|
|
|
1003
1118
|
{
|
|
1004
1119
|
name: 'creator';
|
|
1005
1120
|
signer: true;
|
|
1006
|
-
relations: ['virtualPool'];
|
|
1007
1121
|
},
|
|
1008
1122
|
{
|
|
1009
1123
|
name: 'payer';
|
|
@@ -1095,7 +1209,6 @@ type DynamicBondingCurve = {
|
|
|
1095
1209
|
{
|
|
1096
1210
|
name: 'creator';
|
|
1097
1211
|
signer: true;
|
|
1098
|
-
relations: ['virtualPool'];
|
|
1099
1212
|
},
|
|
1100
1213
|
{
|
|
1101
1214
|
name: 'tokenQuoteProgram';
|
|
@@ -2001,6 +2114,7 @@ type DynamicBondingCurve = {
|
|
|
2001
2114
|
{
|
|
2002
2115
|
name: 'firstPositionNftMint';
|
|
2003
2116
|
writable: true;
|
|
2117
|
+
signer: true;
|
|
2004
2118
|
},
|
|
2005
2119
|
{
|
|
2006
2120
|
name: 'firstPositionNftAccount';
|
|
@@ -2013,6 +2127,7 @@ type DynamicBondingCurve = {
|
|
|
2013
2127
|
{
|
|
2014
2128
|
name: 'secondPositionNftMint';
|
|
2015
2129
|
writable: true;
|
|
2130
|
+
signer: true;
|
|
2016
2131
|
optional: true;
|
|
2017
2132
|
},
|
|
2018
2133
|
{
|
|
@@ -2244,7 +2359,6 @@ type DynamicBondingCurve = {
|
|
|
2244
2359
|
{
|
|
2245
2360
|
name: 'feeClaimer';
|
|
2246
2361
|
signer: true;
|
|
2247
|
-
relations: ['config'];
|
|
2248
2362
|
},
|
|
2249
2363
|
{
|
|
2250
2364
|
name: 'tokenQuoteProgram';
|
|
@@ -2403,6 +2517,15 @@ type DynamicBondingCurve = {
|
|
|
2403
2517
|
docs: ['The mint of token'];
|
|
2404
2518
|
relations: ['config'];
|
|
2405
2519
|
},
|
|
2520
|
+
{
|
|
2521
|
+
name: 'claimFeeOperator';
|
|
2522
|
+
docs: ['Claim fee operator'];
|
|
2523
|
+
},
|
|
2524
|
+
{
|
|
2525
|
+
name: 'signer';
|
|
2526
|
+
docs: ['Signer'];
|
|
2527
|
+
signer: true;
|
|
2528
|
+
},
|
|
2406
2529
|
{
|
|
2407
2530
|
name: 'tokenQuoteProgram';
|
|
2408
2531
|
docs: ['Token b program'];
|
|
@@ -2680,7 +2803,6 @@ type DynamicBondingCurve = {
|
|
|
2680
2803
|
{
|
|
2681
2804
|
name: 'creator';
|
|
2682
2805
|
signer: true;
|
|
2683
|
-
relations: ['virtualPool'];
|
|
2684
2806
|
},
|
|
2685
2807
|
{
|
|
2686
2808
|
name: 'newCreator';
|
|
@@ -2720,27 +2842,6 @@ type DynamicBondingCurve = {
|
|
|
2720
2842
|
];
|
|
2721
2843
|
args: [];
|
|
2722
2844
|
},
|
|
2723
|
-
{
|
|
2724
|
-
name: 'withdrawLamportsFromPoolAuthority';
|
|
2725
|
-
discriminator: [20, 185, 242, 240, 129, 24, 212, 194];
|
|
2726
|
-
accounts: [
|
|
2727
|
-
{
|
|
2728
|
-
name: 'poolAuthority';
|
|
2729
|
-
writable: true;
|
|
2730
|
-
address: 'FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM';
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
name: 'receiver';
|
|
2734
|
-
writable: true;
|
|
2735
|
-
address: '4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv';
|
|
2736
|
-
},
|
|
2737
|
-
{
|
|
2738
|
-
name: 'systemProgram';
|
|
2739
|
-
address: '11111111111111111111111111111111';
|
|
2740
|
-
}
|
|
2741
|
-
];
|
|
2742
|
-
args: [];
|
|
2743
|
-
},
|
|
2744
2845
|
{
|
|
2745
2846
|
name: 'withdrawLeftover';
|
|
2746
2847
|
discriminator: [20, 198, 202, 237, 235, 243, 183, 66];
|
|
@@ -3034,6 +3135,10 @@ type DynamicBondingCurve = {
|
|
|
3034
3135
|
name: 'evtInitializePool';
|
|
3035
3136
|
discriminator: [228, 50, 246, 85, 203, 66, 134, 37];
|
|
3036
3137
|
},
|
|
3138
|
+
{
|
|
3139
|
+
name: 'evtPartnerClaimPoolCreationFee';
|
|
3140
|
+
discriminator: [174, 223, 44, 150, 145, 98, 89, 195];
|
|
3141
|
+
},
|
|
3037
3142
|
{
|
|
3038
3143
|
name: 'evtPartnerMetadata';
|
|
3039
3144
|
discriminator: [200, 127, 6, 55, 13, 32, 8, 150];
|
|
@@ -3330,6 +3435,31 @@ type DynamicBondingCurve = {
|
|
|
3330
3435
|
code: 6050;
|
|
3331
3436
|
name: 'accountInvariantViolation';
|
|
3332
3437
|
msg: 'Account invariant violation';
|
|
3438
|
+
},
|
|
3439
|
+
{
|
|
3440
|
+
code: 6051;
|
|
3441
|
+
name: 'invalidPoolCreationFee';
|
|
3442
|
+
msg: 'Invalid pool creation fee';
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
code: 6052;
|
|
3446
|
+
name: 'poolCreationFeeHasBeenClaimed';
|
|
3447
|
+
msg: 'Pool creation fee has been claimed';
|
|
3448
|
+
},
|
|
3449
|
+
{
|
|
3450
|
+
code: 6053;
|
|
3451
|
+
name: 'unauthorized';
|
|
3452
|
+
msg: 'Not permit to do this action';
|
|
3453
|
+
},
|
|
3454
|
+
{
|
|
3455
|
+
code: 6054;
|
|
3456
|
+
name: 'zeroPoolCreationFee';
|
|
3457
|
+
msg: 'Pool creation fee is zero';
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
code: 6055;
|
|
3461
|
+
name: 'invalidMigrationLockedLiquidity';
|
|
3462
|
+
msg: 'Invalid migration locked liquidity';
|
|
3333
3463
|
}
|
|
3334
3464
|
];
|
|
3335
3465
|
types: [
|
|
@@ -3500,19 +3630,19 @@ type DynamicBondingCurve = {
|
|
|
3500
3630
|
type: 'u8';
|
|
3501
3631
|
},
|
|
3502
3632
|
{
|
|
3503
|
-
name: '
|
|
3633
|
+
name: 'partnerLiquidityPercentage';
|
|
3504
3634
|
type: 'u8';
|
|
3505
3635
|
},
|
|
3506
3636
|
{
|
|
3507
|
-
name: '
|
|
3637
|
+
name: 'partnerPermanentLockedLiquidityPercentage';
|
|
3508
3638
|
type: 'u8';
|
|
3509
3639
|
},
|
|
3510
3640
|
{
|
|
3511
|
-
name: '
|
|
3641
|
+
name: 'creatorLiquidityPercentage';
|
|
3512
3642
|
type: 'u8';
|
|
3513
3643
|
},
|
|
3514
3644
|
{
|
|
3515
|
-
name: '
|
|
3645
|
+
name: 'creatorPermanentLockedLiquidityPercentage';
|
|
3516
3646
|
type: 'u8';
|
|
3517
3647
|
},
|
|
3518
3648
|
{
|
|
@@ -3569,11 +3699,32 @@ type DynamicBondingCurve = {
|
|
|
3569
3699
|
};
|
|
3570
3700
|
};
|
|
3571
3701
|
},
|
|
3702
|
+
{
|
|
3703
|
+
name: 'poolCreationFee';
|
|
3704
|
+
docs: ['pool creation fee in SOL lamports value'];
|
|
3705
|
+
type: 'u64';
|
|
3706
|
+
},
|
|
3707
|
+
{
|
|
3708
|
+
name: 'partnerLiquidityVestingInfo';
|
|
3709
|
+
type: {
|
|
3710
|
+
defined: {
|
|
3711
|
+
name: 'liquidityVestingInfoParams';
|
|
3712
|
+
};
|
|
3713
|
+
};
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
name: 'creatorLiquidityVestingInfo';
|
|
3717
|
+
type: {
|
|
3718
|
+
defined: {
|
|
3719
|
+
name: 'liquidityVestingInfoParams';
|
|
3720
|
+
};
|
|
3721
|
+
};
|
|
3722
|
+
},
|
|
3572
3723
|
{
|
|
3573
3724
|
name: 'padding';
|
|
3574
3725
|
docs: ['padding for future use'];
|
|
3575
3726
|
type: {
|
|
3576
|
-
array: ['
|
|
3727
|
+
array: ['u8', 22];
|
|
3577
3728
|
};
|
|
3578
3729
|
},
|
|
3579
3730
|
{
|
|
@@ -3763,7 +3914,7 @@ type DynamicBondingCurve = {
|
|
|
3763
3914
|
type: 'pubkey';
|
|
3764
3915
|
},
|
|
3765
3916
|
{
|
|
3766
|
-
name: '
|
|
3917
|
+
name: 'receiver';
|
|
3767
3918
|
type: 'pubkey';
|
|
3768
3919
|
},
|
|
3769
3920
|
{
|
|
@@ -3894,19 +4045,19 @@ type DynamicBondingCurve = {
|
|
|
3894
4045
|
type: 'u8';
|
|
3895
4046
|
},
|
|
3896
4047
|
{
|
|
3897
|
-
name: '
|
|
4048
|
+
name: 'partnerPermanentLockedLiquidityPercentage';
|
|
3898
4049
|
type: 'u8';
|
|
3899
4050
|
},
|
|
3900
4051
|
{
|
|
3901
|
-
name: '
|
|
4052
|
+
name: 'partnerLiquidityPercentage';
|
|
3902
4053
|
type: 'u8';
|
|
3903
4054
|
},
|
|
3904
4055
|
{
|
|
3905
|
-
name: '
|
|
4056
|
+
name: 'creatorPermanentLockedLiquidityPercentage';
|
|
3906
4057
|
type: 'u8';
|
|
3907
4058
|
},
|
|
3908
4059
|
{
|
|
3909
|
-
name: '
|
|
4060
|
+
name: 'creatorLiquidityPercentage';
|
|
3910
4061
|
type: 'u8';
|
|
3911
4062
|
},
|
|
3912
4063
|
{
|
|
@@ -4078,6 +4229,26 @@ type DynamicBondingCurve = {
|
|
|
4078
4229
|
];
|
|
4079
4230
|
};
|
|
4080
4231
|
},
|
|
4232
|
+
{
|
|
4233
|
+
name: 'evtPartnerClaimPoolCreationFee';
|
|
4234
|
+
type: {
|
|
4235
|
+
kind: 'struct';
|
|
4236
|
+
fields: [
|
|
4237
|
+
{
|
|
4238
|
+
name: 'pool';
|
|
4239
|
+
type: 'pubkey';
|
|
4240
|
+
},
|
|
4241
|
+
{
|
|
4242
|
+
name: 'partner';
|
|
4243
|
+
type: 'pubkey';
|
|
4244
|
+
},
|
|
4245
|
+
{
|
|
4246
|
+
name: 'creationFee';
|
|
4247
|
+
type: 'u64';
|
|
4248
|
+
}
|
|
4249
|
+
];
|
|
4250
|
+
};
|
|
4251
|
+
},
|
|
4081
4252
|
{
|
|
4082
4253
|
name: 'evtPartnerMetadata';
|
|
4083
4254
|
docs: ['Create partner metadata'];
|
|
@@ -4376,6 +4547,76 @@ type DynamicBondingCurve = {
|
|
|
4376
4547
|
];
|
|
4377
4548
|
};
|
|
4378
4549
|
},
|
|
4550
|
+
{
|
|
4551
|
+
name: 'liquidityVestingInfo';
|
|
4552
|
+
serialization: 'bytemuck';
|
|
4553
|
+
repr: {
|
|
4554
|
+
kind: 'c';
|
|
4555
|
+
};
|
|
4556
|
+
type: {
|
|
4557
|
+
kind: 'struct';
|
|
4558
|
+
fields: [
|
|
4559
|
+
{
|
|
4560
|
+
name: 'isInitialized';
|
|
4561
|
+
type: 'u8';
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: 'vestingPercentage';
|
|
4565
|
+
type: 'u8';
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
name: 'padding';
|
|
4569
|
+
type: {
|
|
4570
|
+
array: ['u8', 2];
|
|
4571
|
+
};
|
|
4572
|
+
},
|
|
4573
|
+
{
|
|
4574
|
+
name: 'bpsPerPeriod';
|
|
4575
|
+
type: 'u16';
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
name: 'numberOfPeriods';
|
|
4579
|
+
type: 'u16';
|
|
4580
|
+
},
|
|
4581
|
+
{
|
|
4582
|
+
name: 'frequency';
|
|
4583
|
+
type: 'u32';
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
name: 'cliffDurationFromMigrationTime';
|
|
4587
|
+
type: 'u32';
|
|
4588
|
+
}
|
|
4589
|
+
];
|
|
4590
|
+
};
|
|
4591
|
+
},
|
|
4592
|
+
{
|
|
4593
|
+
name: 'liquidityVestingInfoParams';
|
|
4594
|
+
type: {
|
|
4595
|
+
kind: 'struct';
|
|
4596
|
+
fields: [
|
|
4597
|
+
{
|
|
4598
|
+
name: 'vestingPercentage';
|
|
4599
|
+
type: 'u8';
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
name: 'bpsPerPeriod';
|
|
4603
|
+
type: 'u16';
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
name: 'numberOfPeriods';
|
|
4607
|
+
type: 'u16';
|
|
4608
|
+
},
|
|
4609
|
+
{
|
|
4610
|
+
name: 'cliffDurationFromMigrationTime';
|
|
4611
|
+
type: 'u32';
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
name: 'frequency';
|
|
4615
|
+
type: 'u32';
|
|
4616
|
+
}
|
|
4617
|
+
];
|
|
4618
|
+
};
|
|
4619
|
+
},
|
|
4379
4620
|
{
|
|
4380
4621
|
name: 'lockEscrow';
|
|
4381
4622
|
docs: ['State of lock escrow account'];
|
|
@@ -4502,7 +4743,7 @@ type DynamicBondingCurve = {
|
|
|
4502
4743
|
{
|
|
4503
4744
|
name: 'padding0';
|
|
4504
4745
|
docs: [
|
|
4505
|
-
'!!! BE CAREFUL to use
|
|
4746
|
+
'!!! BE CAREFUL to use tombstone field, previous is pool creator'
|
|
4506
4747
|
];
|
|
4507
4748
|
type: {
|
|
4508
4749
|
array: ['u8', 32];
|
|
@@ -4519,23 +4760,23 @@ type DynamicBondingCurve = {
|
|
|
4519
4760
|
type: 'pubkey';
|
|
4520
4761
|
},
|
|
4521
4762
|
{
|
|
4522
|
-
name: '
|
|
4523
|
-
docs: ['partner locked
|
|
4763
|
+
name: 'partnerLockedLiquidity';
|
|
4764
|
+
docs: ['partner locked liquidity'];
|
|
4524
4765
|
type: 'u64';
|
|
4525
4766
|
},
|
|
4526
4767
|
{
|
|
4527
|
-
name: '
|
|
4528
|
-
docs: ['partner
|
|
4768
|
+
name: 'partnerLiquidity';
|
|
4769
|
+
docs: ['partner liquidity'];
|
|
4529
4770
|
type: 'u64';
|
|
4530
4771
|
},
|
|
4531
4772
|
{
|
|
4532
|
-
name: '
|
|
4533
|
-
docs: ['creator locked
|
|
4773
|
+
name: 'creatorLockedLiquidity';
|
|
4774
|
+
docs: ['creator locked liquidity'];
|
|
4534
4775
|
type: 'u64';
|
|
4535
4776
|
},
|
|
4536
4777
|
{
|
|
4537
|
-
name: '
|
|
4538
|
-
docs: ['creator
|
|
4778
|
+
name: 'creatorLiquidity';
|
|
4779
|
+
docs: ['creator liquidity'];
|
|
4539
4780
|
type: 'u64';
|
|
4540
4781
|
},
|
|
4541
4782
|
{
|
|
@@ -4545,25 +4786,29 @@ type DynamicBondingCurve = {
|
|
|
4545
4786
|
},
|
|
4546
4787
|
{
|
|
4547
4788
|
name: 'creatorLockedStatus';
|
|
4548
|
-
docs: [
|
|
4789
|
+
docs: [
|
|
4790
|
+
'flag to check whether liquidity token is locked for creator'
|
|
4791
|
+
];
|
|
4549
4792
|
type: 'u8';
|
|
4550
4793
|
},
|
|
4551
4794
|
{
|
|
4552
4795
|
name: 'partnerLockedStatus';
|
|
4553
|
-
docs: [
|
|
4796
|
+
docs: [
|
|
4797
|
+
'flag to check whether liquidity token is locked for partner'
|
|
4798
|
+
];
|
|
4554
4799
|
type: 'u8';
|
|
4555
4800
|
},
|
|
4556
4801
|
{
|
|
4557
4802
|
name: 'creatorClaimStatus';
|
|
4558
4803
|
docs: [
|
|
4559
|
-
'flag to check whether creator has claimed
|
|
4804
|
+
'flag to check whether creator has claimed liquidity token'
|
|
4560
4805
|
];
|
|
4561
4806
|
type: 'u8';
|
|
4562
4807
|
},
|
|
4563
4808
|
{
|
|
4564
4809
|
name: 'partnerClaimStatus';
|
|
4565
4810
|
docs: [
|
|
4566
|
-
'flag to check whether partner has claimed
|
|
4811
|
+
'flag to check whether partner has claimed liquidity token'
|
|
4567
4812
|
];
|
|
4568
4813
|
type: 'u8';
|
|
4569
4814
|
},
|
|
@@ -4684,6 +4929,36 @@ type DynamicBondingCurve = {
|
|
|
4684
4929
|
};
|
|
4685
4930
|
};
|
|
4686
4931
|
},
|
|
4932
|
+
{
|
|
4933
|
+
name: 'partnerLiquidityVestingInfo';
|
|
4934
|
+
type: {
|
|
4935
|
+
defined: {
|
|
4936
|
+
name: 'liquidityVestingInfo';
|
|
4937
|
+
};
|
|
4938
|
+
};
|
|
4939
|
+
},
|
|
4940
|
+
{
|
|
4941
|
+
name: 'creatorLiquidityVestingInfo';
|
|
4942
|
+
type: {
|
|
4943
|
+
defined: {
|
|
4944
|
+
name: 'liquidityVestingInfo';
|
|
4945
|
+
};
|
|
4946
|
+
};
|
|
4947
|
+
},
|
|
4948
|
+
{
|
|
4949
|
+
name: 'padding0';
|
|
4950
|
+
docs: ['Padding for future use'];
|
|
4951
|
+
type: {
|
|
4952
|
+
array: ['u8', 14];
|
|
4953
|
+
};
|
|
4954
|
+
},
|
|
4955
|
+
{
|
|
4956
|
+
name: 'padding1';
|
|
4957
|
+
docs: [
|
|
4958
|
+
'Previously was protocol and referral fee percent. Beware of tombstone.'
|
|
4959
|
+
];
|
|
4960
|
+
type: 'u16';
|
|
4961
|
+
},
|
|
4687
4962
|
{
|
|
4688
4963
|
name: 'collectFeeMode';
|
|
4689
4964
|
docs: ['Collect fee mode'];
|
|
@@ -4720,23 +4995,23 @@ type DynamicBondingCurve = {
|
|
|
4720
4995
|
type: 'u8';
|
|
4721
4996
|
},
|
|
4722
4997
|
{
|
|
4723
|
-
name: '
|
|
4724
|
-
docs: ['partner locked
|
|
4998
|
+
name: 'partnerPermanentLockedLiquidityPercentage';
|
|
4999
|
+
docs: ['partner locked liquidity percentage'];
|
|
4725
5000
|
type: 'u8';
|
|
4726
5001
|
},
|
|
4727
5002
|
{
|
|
4728
|
-
name: '
|
|
4729
|
-
docs: ['partner
|
|
5003
|
+
name: 'partnerLiquidityPercentage';
|
|
5004
|
+
docs: ['partner liquidity percentage'];
|
|
4730
5005
|
type: 'u8';
|
|
4731
5006
|
},
|
|
4732
5007
|
{
|
|
4733
|
-
name: '
|
|
5008
|
+
name: 'creatorPermanentLockedLiquidityPercentage';
|
|
4734
5009
|
docs: ['creator post migration fee percentage'];
|
|
4735
5010
|
type: 'u8';
|
|
4736
5011
|
},
|
|
4737
5012
|
{
|
|
4738
|
-
name: '
|
|
4739
|
-
docs: ['creator
|
|
5013
|
+
name: 'creatorLiquidityPercentage';
|
|
5014
|
+
docs: ['creator liquidity percentage'];
|
|
4740
5015
|
type: 'u8';
|
|
4741
5016
|
},
|
|
4742
5017
|
{
|
|
@@ -4772,8 +5047,7 @@ type DynamicBondingCurve = {
|
|
|
4772
5047
|
type: 'u8';
|
|
4773
5048
|
},
|
|
4774
5049
|
{
|
|
4775
|
-
name: '
|
|
4776
|
-
docs: ['padding 0'];
|
|
5050
|
+
name: 'padding2';
|
|
4777
5051
|
type: {
|
|
4778
5052
|
array: ['u8', 7];
|
|
4779
5053
|
};
|
|
@@ -4836,9 +5110,14 @@ type DynamicBondingCurve = {
|
|
|
4836
5110
|
name: 'padding1';
|
|
4837
5111
|
docs: ['padding 1'];
|
|
4838
5112
|
type: {
|
|
4839
|
-
array: ['u8',
|
|
5113
|
+
array: ['u8', 4];
|
|
4840
5114
|
};
|
|
4841
5115
|
},
|
|
5116
|
+
{
|
|
5117
|
+
name: 'poolCreationFee';
|
|
5118
|
+
docs: ['pool creation fee in lamports value'];
|
|
5119
|
+
type: 'u64';
|
|
5120
|
+
},
|
|
4842
5121
|
{
|
|
4843
5122
|
name: 'padding2';
|
|
4844
5123
|
docs: ['padding 2'];
|
|
@@ -4946,26 +5225,6 @@ type DynamicBondingCurve = {
|
|
|
4946
5225
|
name: 'dynamicFeeConfig';
|
|
4947
5226
|
};
|
|
4948
5227
|
};
|
|
4949
|
-
},
|
|
4950
|
-
{
|
|
4951
|
-
name: 'padding0';
|
|
4952
|
-
type: {
|
|
4953
|
-
array: ['u64', 5];
|
|
4954
|
-
};
|
|
4955
|
-
},
|
|
4956
|
-
{
|
|
4957
|
-
name: 'padding1';
|
|
4958
|
-
type: {
|
|
4959
|
-
array: ['u8', 6];
|
|
4960
|
-
};
|
|
4961
|
-
},
|
|
4962
|
-
{
|
|
4963
|
-
name: 'protocolFeePercent';
|
|
4964
|
-
type: 'u8';
|
|
4965
|
-
},
|
|
4966
|
-
{
|
|
4967
|
-
name: 'referralFeePercent';
|
|
4968
|
-
type: 'u8';
|
|
4969
5228
|
}
|
|
4970
5229
|
];
|
|
4971
5230
|
};
|
|
@@ -5285,14 +5544,21 @@ type DynamicBondingCurve = {
|
|
|
5285
5544
|
docs: ['creator quote fee'];
|
|
5286
5545
|
type: 'u64';
|
|
5287
5546
|
},
|
|
5547
|
+
{
|
|
5548
|
+
name: 'legacyCreationFeeBits';
|
|
5549
|
+
docs: ['legacy creation fee bits, we dont use this now'];
|
|
5550
|
+
type: 'u8';
|
|
5551
|
+
},
|
|
5288
5552
|
{
|
|
5289
5553
|
name: 'creationFeeBits';
|
|
5554
|
+
docs: ['pool creation fee claim status'];
|
|
5290
5555
|
type: 'u8';
|
|
5291
5556
|
},
|
|
5292
5557
|
{
|
|
5293
5558
|
name: 'padding0';
|
|
5559
|
+
docs: ['Padding for further use'];
|
|
5294
5560
|
type: {
|
|
5295
|
-
array: ['u8',
|
|
5561
|
+
array: ['u8', 6];
|
|
5296
5562
|
};
|
|
5297
5563
|
},
|
|
5298
5564
|
{
|
|
@@ -5397,7 +5663,7 @@ declare class DynamicBondingCurveProgram {
|
|
|
5397
5663
|
}
|
|
5398
5664
|
|
|
5399
5665
|
type DynamicCurveProgram = Program<DynamicBondingCurve>;
|
|
5400
|
-
type CreateConfigAccounts = Accounts<DynamicBondingCurve['instructions']['
|
|
5666
|
+
type CreateConfigAccounts = Accounts<DynamicBondingCurve['instructions']['8']>['createConfig'];
|
|
5401
5667
|
type ConfigParameters = IdlTypes<DynamicBondingCurve>['configParameters'];
|
|
5402
5668
|
type LockedVestingParameters = IdlTypes<DynamicBondingCurve>['lockedVestingParams'];
|
|
5403
5669
|
type InitializePoolParameters = IdlTypes<DynamicBondingCurve>['initializePoolParameters'];
|
|
@@ -5412,6 +5678,7 @@ type MigratedPoolFee = IdlTypes<DynamicBondingCurve>['migratedPoolFee'];
|
|
|
5412
5678
|
type SwapResult = IdlTypes<DynamicBondingCurve>['swapResult'];
|
|
5413
5679
|
type SwapResult2 = IdlTypes<DynamicBondingCurve>['swapResult2'];
|
|
5414
5680
|
type CreatePartnerMetadataParameters = IdlTypes<DynamicBondingCurve>['createPartnerMetadataParameters'];
|
|
5681
|
+
type LiquidityVestingInfoParameters = IdlTypes<DynamicBondingCurve>['liquidityVestingInfoParams'];
|
|
5415
5682
|
type PoolConfig = IdlAccounts<DynamicBondingCurve>['poolConfig'];
|
|
5416
5683
|
type VirtualPool = IdlAccounts<DynamicBondingCurve>['virtualPool'];
|
|
5417
5684
|
type MeteoraDammMigrationMetadata = IdlAccounts<DynamicBondingCurve>['meteoraDammMigrationMetadata'];
|
|
@@ -5520,27 +5787,30 @@ type BaseFeeParams = {
|
|
|
5520
5787
|
};
|
|
5521
5788
|
type BuildCurveBaseParams = {
|
|
5522
5789
|
totalTokenSupply: number;
|
|
5523
|
-
|
|
5790
|
+
tokenType: TokenType;
|
|
5524
5791
|
tokenBaseDecimal: TokenDecimal;
|
|
5525
5792
|
tokenQuoteDecimal: TokenDecimal;
|
|
5526
|
-
|
|
5793
|
+
tokenUpdateAuthority: number;
|
|
5794
|
+
lockedVestingParams: LockedVestingParams;
|
|
5795
|
+
leftover: number;
|
|
5527
5796
|
baseFeeParams: BaseFeeParams;
|
|
5528
5797
|
dynamicFeeEnabled: boolean;
|
|
5529
5798
|
activationType: ActivationType;
|
|
5530
5799
|
collectFeeMode: CollectFeeMode;
|
|
5531
|
-
migrationFeeOption: MigrationFeeOption;
|
|
5532
|
-
tokenType: TokenType;
|
|
5533
|
-
partnerLpPercentage: number;
|
|
5534
|
-
creatorLpPercentage: number;
|
|
5535
|
-
partnerLockedLpPercentage: number;
|
|
5536
|
-
creatorLockedLpPercentage: number;
|
|
5537
5800
|
creatorTradingFeePercentage: number;
|
|
5538
|
-
|
|
5539
|
-
|
|
5801
|
+
poolCreationFee: number;
|
|
5802
|
+
migrationOption: MigrationOption;
|
|
5803
|
+
migrationFeeOption: MigrationFeeOption;
|
|
5540
5804
|
migrationFee: {
|
|
5541
5805
|
feePercentage: number;
|
|
5542
5806
|
creatorFeePercentage: number;
|
|
5543
5807
|
};
|
|
5808
|
+
partnerPermanentLockedLiquidityPercentage: number;
|
|
5809
|
+
partnerLiquidityPercentage: number;
|
|
5810
|
+
creatorPermanentLockedLiquidityPercentage: number;
|
|
5811
|
+
creatorLiquidityPercentage: number;
|
|
5812
|
+
partnerLiquidityVestingInfoParams?: LiquidityVestingInfoParams;
|
|
5813
|
+
creatorLiquidityVestingInfoParams?: LiquidityVestingInfoParams;
|
|
5544
5814
|
migratedPoolFee?: {
|
|
5545
5815
|
collectFeeMode: CollectFeeMode;
|
|
5546
5816
|
dynamicFee: DammV2DynamicFeeMode;
|
|
@@ -5813,6 +6083,17 @@ type WithdrawMigrationFeeParams = {
|
|
|
5813
6083
|
virtualPool: PublicKey;
|
|
5814
6084
|
sender: PublicKey;
|
|
5815
6085
|
};
|
|
6086
|
+
type ClaimPartnerPoolCreationFeeParams = {
|
|
6087
|
+
virtualPool: PublicKey;
|
|
6088
|
+
feeReceiver: PublicKey;
|
|
6089
|
+
};
|
|
6090
|
+
type LiquidityVestingInfoParams = {
|
|
6091
|
+
vestingPercentage: number;
|
|
6092
|
+
bpsPerPeriod: number;
|
|
6093
|
+
numberOfPeriods: number;
|
|
6094
|
+
cliffDurationFromMigrationTime: number;
|
|
6095
|
+
totalDuration: number;
|
|
6096
|
+
};
|
|
5816
6097
|
interface BaseFeeHandler {
|
|
5817
6098
|
validate(collectFeeMode: CollectFeeMode, activationType: ActivationType): boolean;
|
|
5818
6099
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN, activationPoint: BN, tradeDirection: TradeDirection, includedFeeAmount: BN): BN;
|
|
@@ -6015,6 +6296,12 @@ declare class PartnerService extends DynamicBondingCurveProgram {
|
|
|
6015
6296
|
* @returns A partner withdraw migration fee transaction
|
|
6016
6297
|
*/
|
|
6017
6298
|
partnerWithdrawMigrationFee(params: WithdrawMigrationFeeParams): Promise<Transaction>;
|
|
6299
|
+
/**
|
|
6300
|
+
* Claim partner pool creation fee
|
|
6301
|
+
* @param params - The claim partner pool creation fee parameters
|
|
6302
|
+
* @returns A claim partner pool creation fee transaction
|
|
6303
|
+
*/
|
|
6304
|
+
claimPartnerPoolCreationFee(params: ClaimPartnerPoolCreationFeeParams): Promise<Transaction>;
|
|
6018
6305
|
}
|
|
6019
6306
|
|
|
6020
6307
|
declare class PoolService extends DynamicBondingCurveProgram {
|
|
@@ -6472,49 +6759,54 @@ declare class DynamicBondingCurveClient {
|
|
|
6472
6759
|
static create(connection: Connection, commitment?: Commitment): DynamicBondingCurveClient;
|
|
6473
6760
|
}
|
|
6474
6761
|
|
|
6475
|
-
declare const
|
|
6476
|
-
declare const
|
|
6477
|
-
declare const U64_MAX: BN$1;
|
|
6478
|
-
declare const U16_MAX = 65535;
|
|
6479
|
-
declare const MIN_SQRT_PRICE: BN$1;
|
|
6480
|
-
declare const MAX_SQRT_PRICE: BN$1;
|
|
6762
|
+
declare const MAX_CURVE_POINT = 16;
|
|
6763
|
+
declare const OFFSET = 64;
|
|
6481
6764
|
declare const RESOLUTION = 64;
|
|
6482
6765
|
declare const ONE_Q64: BN$1;
|
|
6483
6766
|
declare const FEE_DENOMINATOR = 1000000000;
|
|
6767
|
+
declare const MAX_BASIS_POINT = 10000;
|
|
6768
|
+
declare const U16_MAX = 65535;
|
|
6769
|
+
declare const U64_MAX: BN$1;
|
|
6770
|
+
declare const U128_MAX: BN$1;
|
|
6771
|
+
declare const MIN_SQRT_PRICE: BN$1;
|
|
6772
|
+
declare const MAX_SQRT_PRICE: BN$1;
|
|
6484
6773
|
declare const MIN_FEE_BPS = 25;
|
|
6485
6774
|
declare const MAX_FEE_BPS = 9900;
|
|
6486
6775
|
declare const MIN_FEE_NUMERATOR = 2500000;
|
|
6487
6776
|
declare const MAX_FEE_NUMERATOR = 990000000;
|
|
6488
|
-
declare const BASIS_POINT_MAX = 10000;
|
|
6489
|
-
declare const MAX_CURVE_POINT = 16;
|
|
6490
|
-
declare const PARTNER_SURPLUS_SHARE = 80;
|
|
6491
|
-
declare const SWAP_BUFFER_PERCENTAGE = 25;
|
|
6492
|
-
declare const MAX_MIGRATION_FEE_PERCENTAGE = 99;
|
|
6493
|
-
declare const MAX_CREATOR_MIGRATION_FEE_PERCENTAGE = 100;
|
|
6494
6777
|
declare const MAX_RATE_LIMITER_DURATION_IN_SECONDS = 43200;
|
|
6495
6778
|
declare const MAX_RATE_LIMITER_DURATION_IN_SLOTS = 108000;
|
|
6496
|
-
declare const SLOT_DURATION = 400;
|
|
6497
|
-
declare const TIMESTAMP_DURATION = 1000;
|
|
6498
|
-
declare const DYNAMIC_BONDING_CURVE_PROGRAM_ID: PublicKey;
|
|
6499
|
-
declare const METAPLEX_PROGRAM_ID: PublicKey;
|
|
6500
|
-
declare const DAMM_V1_PROGRAM_ID: PublicKey;
|
|
6501
|
-
declare const DAMM_V2_PROGRAM_ID: PublicKey;
|
|
6502
|
-
declare const VAULT_PROGRAM_ID: PublicKey;
|
|
6503
|
-
declare const LOCKER_PROGRAM_ID: PublicKey;
|
|
6504
|
-
declare const BASE_ADDRESS: PublicKey;
|
|
6505
6779
|
declare const DYNAMIC_FEE_FILTER_PERIOD_DEFAULT = 10;
|
|
6506
6780
|
declare const DYNAMIC_FEE_DECAY_PERIOD_DEFAULT = 120;
|
|
6507
6781
|
declare const DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT = 5000;
|
|
6508
|
-
declare const MAX_DYNAMIC_FEE_PERCENTAGE = 20;
|
|
6509
6782
|
declare const DYNAMIC_FEE_SCALING_FACTOR: BN$1;
|
|
6510
6783
|
declare const DYNAMIC_FEE_ROUNDING_OFFSET: BN$1;
|
|
6511
6784
|
declare const BIN_STEP_BPS_DEFAULT = 1;
|
|
6512
6785
|
declare const BIN_STEP_BPS_U128_DEFAULT: BN$1;
|
|
6513
|
-
declare const
|
|
6786
|
+
declare const MAX_PRICE_CHANGE_PERCENTAGE_DEFAULT = 20;
|
|
6787
|
+
declare const PROTOCOL_FEE_PERCENT = 20;
|
|
6788
|
+
declare const HOST_FEE_PERCENT = 20;
|
|
6789
|
+
declare const SWAP_BUFFER_PERCENTAGE = 25;
|
|
6790
|
+
declare const MAX_MIGRATION_FEE_PERCENTAGE = 99;
|
|
6791
|
+
declare const MAX_CREATOR_MIGRATION_FEE_PERCENTAGE = 100;
|
|
6792
|
+
declare const MIN_LOCKED_LIQUIDITY_BPS = 1000;
|
|
6793
|
+
declare const SECONDS_PER_DAY = 86400;
|
|
6794
|
+
declare const MAX_LOCK_DURATION_IN_SECONDS = 63072000;
|
|
6795
|
+
declare const PROTOCOL_POOL_CREATION_FEE_PERCENT = 10;
|
|
6796
|
+
declare const MIN_POOL_CREATION_FEE = 1000000;
|
|
6797
|
+
declare const MAX_POOL_CREATION_FEE = 100000000000;
|
|
6514
6798
|
declare const MIN_MIGRATED_POOL_FEE_BPS = 10;
|
|
6515
6799
|
declare const MAX_MIGRATED_POOL_FEE_BPS = 1000;
|
|
6800
|
+
declare const DYNAMIC_BONDING_CURVE_PROGRAM_ID: PublicKey;
|
|
6801
|
+
declare const METAPLEX_PROGRAM_ID: PublicKey;
|
|
6802
|
+
declare const DAMM_V1_PROGRAM_ID: PublicKey;
|
|
6803
|
+
declare const DAMM_V2_PROGRAM_ID: PublicKey;
|
|
6804
|
+
declare const VAULT_PROGRAM_ID: PublicKey;
|
|
6805
|
+
declare const LOCKER_PROGRAM_ID: PublicKey;
|
|
6806
|
+
declare const BASE_ADDRESS: PublicKey;
|
|
6516
6807
|
declare const DAMM_V1_MIGRATION_FEE_ADDRESS: PublicKey[];
|
|
6517
6808
|
declare const DAMM_V2_MIGRATION_FEE_ADDRESS: PublicKey[];
|
|
6809
|
+
declare const DEFAULT_LIQUIDITY_VESTING_INFO_PARAMS: LiquidityVestingInfoParams;
|
|
6518
6810
|
|
|
6519
6811
|
/**
|
|
6520
6812
|
* Get the first key
|
|
@@ -6769,7 +7061,7 @@ declare function getRateLimiterParams(baseFeeBps: number, feeIncrementBps: numbe
|
|
|
6769
7061
|
* @param maxPriceChangeBps - The max price change in basis points
|
|
6770
7062
|
* @returns The dynamic fee parameters
|
|
6771
7063
|
*/
|
|
6772
|
-
declare function getDynamicFeeParams(baseFeeBps: number,
|
|
7064
|
+
declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangePercentage?: number): DynamicFeeParameters;
|
|
6773
7065
|
/**
|
|
6774
7066
|
* Calculate the locked vesting parameters
|
|
6775
7067
|
* @param totalLockedVestingAmount - The total vesting amount
|
|
@@ -6781,13 +7073,8 @@ declare function getDynamicFeeParams(baseFeeBps: number, maxPriceChangeBps?: num
|
|
|
6781
7073
|
* @returns The locked vesting parameters
|
|
6782
7074
|
* total_locked_vesting_amount = cliff_unlock_amount + (amount_per_period * number_of_period)
|
|
6783
7075
|
*/
|
|
6784
|
-
declare function getLockedVestingParams(totalLockedVestingAmount: number, numberOfVestingPeriod: number, cliffUnlockAmount: number, totalVestingDuration: number, cliffDurationFromMigrationTime: number, tokenBaseDecimal: TokenDecimal):
|
|
6785
|
-
|
|
6786
|
-
cliffDurationFromMigrationTime: BN$1;
|
|
6787
|
-
frequency: BN$1;
|
|
6788
|
-
numberOfPeriod: BN$1;
|
|
6789
|
-
cliffUnlockAmount: BN$1;
|
|
6790
|
-
};
|
|
7076
|
+
declare function getLockedVestingParams(totalLockedVestingAmount: number, numberOfVestingPeriod: number, cliffUnlockAmount: number, totalVestingDuration: number, cliffDurationFromMigrationTime: number, tokenBaseDecimal: TokenDecimal): LockedVestingParameters;
|
|
7077
|
+
declare const getLiquidityVestingInfoParams: (vestingPercentage: number, bpsPerPeriod: number, numberOfPeriods: number, cliffDurationFromMigrationTime: number, totalDuration: number) => LiquidityVestingInfoParameters;
|
|
6791
7078
|
/**
|
|
6792
7079
|
* Get the two curve
|
|
6793
7080
|
* @param migrationSqrPrice - The migration sqrt price
|
|
@@ -6885,6 +7172,23 @@ declare function getCurrentPoint(connection: Connection, activationType: Activat
|
|
|
6885
7172
|
* @returns The amount in lamports
|
|
6886
7173
|
*/
|
|
6887
7174
|
declare function prepareSwapAmountParam(amount: number, mintAddress: PublicKey, connection: Connection): Promise<BN$1>;
|
|
7175
|
+
/**
|
|
7176
|
+
* Calculate the locked liquidity BPS for a single vesting info at a given time.
|
|
7177
|
+
* @param vestingInfo - The liquidity vesting info parameters
|
|
7178
|
+
* @param nSeconds - Number of seconds after migration
|
|
7179
|
+
* @returns The locked liquidity in BPS (basis points)
|
|
7180
|
+
*/
|
|
7181
|
+
declare function getVestingLockedLiquidityBpsAtNSeconds(vestingInfo: LiquidityVestingInfoParameters | undefined, nSeconds: number): number;
|
|
7182
|
+
/**
|
|
7183
|
+
* Calculate the locked liquidity BPS at a given time (in seconds) after migration
|
|
7184
|
+
* @param partnerPermanentLockedLiquidityPercentage - Partner's permanently locked liquidity percentage
|
|
7185
|
+
* @param creatorPermanentLockedLiquidityPercentage - Creator's permanently locked liquidity percentage
|
|
7186
|
+
* @param partnerLiquidityVestingInfo - Partner's liquidity vesting info (optional)
|
|
7187
|
+
* @param creatorLiquidityVestingInfo - Creator's liquidity vesting info (optional)
|
|
7188
|
+
* @param elapsedSeconds - Number of seconds after migration
|
|
7189
|
+
* @returns The total locked liquidity in BPS (basis points)
|
|
7190
|
+
*/
|
|
7191
|
+
declare function calculateLockedLiquidityBpsAtTime(partnerPermanentLockedLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, creatorLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, elapsedSeconds: number): number;
|
|
6888
7192
|
|
|
6889
7193
|
/**
|
|
6890
7194
|
* Derive DBC event authority
|
|
@@ -7077,6 +7381,12 @@ declare function deriveDammV1ProtocolFeeAddress(mint: PublicKey, pool: PublicKey
|
|
|
7077
7381
|
* @returns The base key for the locker
|
|
7078
7382
|
*/
|
|
7079
7383
|
declare function deriveBaseKeyForLocker(virtualPool: PublicKey): PublicKey;
|
|
7384
|
+
/**
|
|
7385
|
+
* Derive DAMM V2 position vesting account
|
|
7386
|
+
* @param position - The position
|
|
7387
|
+
* @returns The DAMM V2 position vesting account
|
|
7388
|
+
*/
|
|
7389
|
+
declare function deriveDammV2PositionVestingAccount(position: PublicKey): PublicKey;
|
|
7080
7390
|
|
|
7081
7391
|
/**
|
|
7082
7392
|
* Convert a number or string to a BN value in lamports
|
|
@@ -7200,13 +7510,15 @@ declare function validateMigrationFeeOption(migrationFeeOption: MigrationFeeOpti
|
|
|
7200
7510
|
declare function validateTokenDecimals(tokenDecimal: TokenDecimal): boolean;
|
|
7201
7511
|
/**
|
|
7202
7512
|
* Validate the LP percentages
|
|
7203
|
-
* @param
|
|
7204
|
-
* @param
|
|
7205
|
-
* @param
|
|
7206
|
-
* @param
|
|
7513
|
+
* @param partnerLiquidityPercentage - The partner liquidity percentage
|
|
7514
|
+
* @param partnerPermanentLockedLiquidityPercentage - The partner permanent locked liquidity percentage
|
|
7515
|
+
* @param creatorLiquidityPercentage - The creator liquidity percentage
|
|
7516
|
+
* @param creatorPermanentLockedLiquidityPercentage - The creator permanent locked liquidity percentage
|
|
7517
|
+
* @param partnerVestingPercentage - The partner vesting percentage (optional, defaults to 0)
|
|
7518
|
+
* @param creatorVestingPercentage - The creator vesting percentage (optional, defaults to 0)
|
|
7207
7519
|
* @returns true if the LP percentages are valid, false otherwise
|
|
7208
7520
|
*/
|
|
7209
|
-
declare function validateLPPercentages(
|
|
7521
|
+
declare function validateLPPercentages(partnerLiquidityPercentage: number, partnerPermanentLockedLiquidityPercentage: number, creatorLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerVestingPercentage: number, creatorVestingPercentage: number): boolean;
|
|
7210
7522
|
/**
|
|
7211
7523
|
* Validate the curve
|
|
7212
7524
|
* @param curve - The curve
|
|
@@ -7237,6 +7549,28 @@ declare function validateTokenSupply(tokenSupply: {
|
|
|
7237
7549
|
* @returns true if the token update authority option is valid, false otherwise
|
|
7238
7550
|
*/
|
|
7239
7551
|
declare function validateTokenUpdateAuthorityOptions(option: TokenUpdateAuthorityOption): boolean;
|
|
7552
|
+
/**
|
|
7553
|
+
* Validate pool creation fee
|
|
7554
|
+
* @param poolCreationFee - The pool creation fee in lamports
|
|
7555
|
+
* @returns true if the pool creation fee is valid, false otherwise
|
|
7556
|
+
*/
|
|
7557
|
+
declare function validatePoolCreationFee(poolCreationFee: BN$1): boolean;
|
|
7558
|
+
/**
|
|
7559
|
+
* Validate the liquidity vesting info parameters
|
|
7560
|
+
* @param vestingInfo - The liquidity vesting info parameters
|
|
7561
|
+
* @returns true if valid, false otherwise
|
|
7562
|
+
*/
|
|
7563
|
+
declare function validateLiquidityVestingInfo(vestingInfo: LiquidityVestingInfoParameters): boolean;
|
|
7564
|
+
/**
|
|
7565
|
+
* Validate that the minimum locked liquidity requirement is met at day 1
|
|
7566
|
+
* The program requires at least MIN_LOCKED_LIQUIDITY_BPS (1000 = 10%) to be locked at SECONDS_PER_DAY (86400 seconds) after migration.
|
|
7567
|
+
* @param partnerPermanentLockedLiquidityPercentage - Partner's permanently locked liquidity percentage
|
|
7568
|
+
* @param creatorPermanentLockedLiquidityPercentage - Creator's permanently locked liquidity percentage
|
|
7569
|
+
* @param partnerLiquidityVestingInfo - Partner's liquidity vesting info (optional)
|
|
7570
|
+
* @param creatorLiquidityVestingInfo - Creator's liquidity vesting info (optional)
|
|
7571
|
+
* @returns true if the minimum locked liquidity requirement is met, false otherwise
|
|
7572
|
+
*/
|
|
7573
|
+
declare function validateMinimumLockedLiquidity(partnerPermanentLockedLiquidityPercentage: number, creatorPermanentLockedLiquidityPercentage: number, partnerLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined, creatorLiquidityVestingInfo: LiquidityVestingInfoParameters | undefined): boolean;
|
|
7240
7574
|
declare function validateMigratedPoolFee(migratedPoolFee: MigratedPoolFee, migrationOption?: MigrationOption, migrationFeeOption?: MigrationFeeOption): boolean;
|
|
7241
7575
|
/**
|
|
7242
7576
|
* Validate the config parameters
|
|
@@ -14923,6 +15257,7 @@ declare function calculateBaseToQuoteFromAmountIn(configState: {
|
|
|
14923
15257
|
sqrtPrice: BN$1;
|
|
14924
15258
|
liquidity: BN$1;
|
|
14925
15259
|
}>;
|
|
15260
|
+
sqrtStartPrice: BN$1;
|
|
14926
15261
|
}, currentSqrtPrice: BN$1, amountIn: BN$1): SwapAmount;
|
|
14927
15262
|
/**
|
|
14928
15263
|
* Calculate output amount from quote to base from amount in
|
|
@@ -15049,7 +15384,7 @@ declare class FeeScheduler implements BaseFeeHandler {
|
|
|
15049
15384
|
reductionFactor: BN$1;
|
|
15050
15385
|
feeSchedulerMode: BaseFeeMode;
|
|
15051
15386
|
constructor(cliffFeeNumerator: BN$1, numberOfPeriod: number, periodFrequency: BN$1, reductionFactor: BN$1, feeSchedulerMode: BaseFeeMode);
|
|
15052
|
-
validate(
|
|
15387
|
+
validate(): boolean;
|
|
15053
15388
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
|
|
15054
15389
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
|
|
15055
15390
|
}
|
|
@@ -15216,7 +15551,7 @@ declare function getFeeNumeratorFromIncludedAmount(cliffFeeNumerator: BN$1, refe
|
|
|
15216
15551
|
var address = "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN";
|
|
15217
15552
|
var metadata = {
|
|
15218
15553
|
name: "dynamic_bonding_curve",
|
|
15219
|
-
version: "0.1.
|
|
15554
|
+
version: "0.1.8",
|
|
15220
15555
|
spec: "0.1.0",
|
|
15221
15556
|
description: "Created with Anchor"
|
|
15222
15557
|
};
|
|
@@ -15293,10 +15628,7 @@ var instructions = [
|
|
|
15293
15628
|
},
|
|
15294
15629
|
{
|
|
15295
15630
|
name: "creator",
|
|
15296
|
-
signer: true
|
|
15297
|
-
relations: [
|
|
15298
|
-
"pool"
|
|
15299
|
-
]
|
|
15631
|
+
signer: true
|
|
15300
15632
|
},
|
|
15301
15633
|
{
|
|
15302
15634
|
name: "token_base_program",
|
|
@@ -15355,16 +15687,16 @@ var instructions = [
|
|
|
15355
15687
|
]
|
|
15356
15688
|
},
|
|
15357
15689
|
{
|
|
15358
|
-
name: "
|
|
15690
|
+
name: "claim_legacy_pool_creation_fee",
|
|
15359
15691
|
discriminator: [
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15692
|
+
96,
|
|
15693
|
+
11,
|
|
15694
|
+
187,
|
|
15695
|
+
225,
|
|
15696
|
+
54,
|
|
15697
|
+
117,
|
|
15698
|
+
161,
|
|
15699
|
+
134
|
|
15368
15700
|
],
|
|
15369
15701
|
accounts: [
|
|
15370
15702
|
{
|
|
@@ -15378,14 +15710,11 @@ var instructions = [
|
|
|
15378
15710
|
]
|
|
15379
15711
|
},
|
|
15380
15712
|
{
|
|
15381
|
-
name: "
|
|
15713
|
+
name: "signer",
|
|
15382
15714
|
docs: [
|
|
15383
15715
|
"Operator"
|
|
15384
15716
|
],
|
|
15385
|
-
signer: true
|
|
15386
|
-
relations: [
|
|
15387
|
-
"claim_fee_operator"
|
|
15388
|
-
]
|
|
15717
|
+
signer: true
|
|
15389
15718
|
},
|
|
15390
15719
|
{
|
|
15391
15720
|
name: "treasury",
|
|
@@ -15432,6 +15761,73 @@ var instructions = [
|
|
|
15432
15761
|
args: [
|
|
15433
15762
|
]
|
|
15434
15763
|
},
|
|
15764
|
+
{
|
|
15765
|
+
name: "claim_partner_pool_creation_fee",
|
|
15766
|
+
discriminator: [
|
|
15767
|
+
250,
|
|
15768
|
+
238,
|
|
15769
|
+
26,
|
|
15770
|
+
4,
|
|
15771
|
+
139,
|
|
15772
|
+
10,
|
|
15773
|
+
101,
|
|
15774
|
+
248
|
|
15775
|
+
],
|
|
15776
|
+
accounts: [
|
|
15777
|
+
{
|
|
15778
|
+
name: "config",
|
|
15779
|
+
relations: [
|
|
15780
|
+
"pool"
|
|
15781
|
+
]
|
|
15782
|
+
},
|
|
15783
|
+
{
|
|
15784
|
+
name: "pool",
|
|
15785
|
+
writable: true
|
|
15786
|
+
},
|
|
15787
|
+
{
|
|
15788
|
+
name: "fee_claimer",
|
|
15789
|
+
signer: true
|
|
15790
|
+
},
|
|
15791
|
+
{
|
|
15792
|
+
name: "fee_receiver",
|
|
15793
|
+
writable: true
|
|
15794
|
+
},
|
|
15795
|
+
{
|
|
15796
|
+
name: "event_authority",
|
|
15797
|
+
pda: {
|
|
15798
|
+
seeds: [
|
|
15799
|
+
{
|
|
15800
|
+
kind: "const",
|
|
15801
|
+
value: [
|
|
15802
|
+
95,
|
|
15803
|
+
95,
|
|
15804
|
+
101,
|
|
15805
|
+
118,
|
|
15806
|
+
101,
|
|
15807
|
+
110,
|
|
15808
|
+
116,
|
|
15809
|
+
95,
|
|
15810
|
+
97,
|
|
15811
|
+
117,
|
|
15812
|
+
116,
|
|
15813
|
+
104,
|
|
15814
|
+
111,
|
|
15815
|
+
114,
|
|
15816
|
+
105,
|
|
15817
|
+
116,
|
|
15818
|
+
121
|
|
15819
|
+
]
|
|
15820
|
+
}
|
|
15821
|
+
]
|
|
15822
|
+
}
|
|
15823
|
+
},
|
|
15824
|
+
{
|
|
15825
|
+
name: "program"
|
|
15826
|
+
}
|
|
15827
|
+
],
|
|
15828
|
+
args: [
|
|
15829
|
+
]
|
|
15830
|
+
},
|
|
15435
15831
|
{
|
|
15436
15832
|
name: "claim_protocol_fee",
|
|
15437
15833
|
discriminator: [
|
|
@@ -15690,14 +16086,11 @@ var instructions = [
|
|
|
15690
16086
|
]
|
|
15691
16087
|
},
|
|
15692
16088
|
{
|
|
15693
|
-
name: "
|
|
16089
|
+
name: "signer",
|
|
15694
16090
|
docs: [
|
|
15695
|
-
"
|
|
16091
|
+
"Signer"
|
|
15696
16092
|
],
|
|
15697
|
-
signer: true
|
|
15698
|
-
relations: [
|
|
15699
|
-
"claim_fee_operator"
|
|
15700
|
-
]
|
|
16093
|
+
signer: true
|
|
15701
16094
|
},
|
|
15702
16095
|
{
|
|
15703
16096
|
name: "token_base_program",
|
|
@@ -15747,6 +16140,83 @@ var instructions = [
|
|
|
15747
16140
|
args: [
|
|
15748
16141
|
]
|
|
15749
16142
|
},
|
|
16143
|
+
{
|
|
16144
|
+
name: "claim_protocol_pool_creation_fee",
|
|
16145
|
+
discriminator: [
|
|
16146
|
+
114,
|
|
16147
|
+
205,
|
|
16148
|
+
83,
|
|
16149
|
+
188,
|
|
16150
|
+
240,
|
|
16151
|
+
153,
|
|
16152
|
+
25,
|
|
16153
|
+
54
|
|
16154
|
+
],
|
|
16155
|
+
accounts: [
|
|
16156
|
+
{
|
|
16157
|
+
name: "config",
|
|
16158
|
+
relations: [
|
|
16159
|
+
"pool"
|
|
16160
|
+
]
|
|
16161
|
+
},
|
|
16162
|
+
{
|
|
16163
|
+
name: "pool",
|
|
16164
|
+
writable: true
|
|
16165
|
+
},
|
|
16166
|
+
{
|
|
16167
|
+
name: "claim_fee_operator",
|
|
16168
|
+
docs: [
|
|
16169
|
+
"Claim fee operator"
|
|
16170
|
+
]
|
|
16171
|
+
},
|
|
16172
|
+
{
|
|
16173
|
+
name: "signer",
|
|
16174
|
+
docs: [
|
|
16175
|
+
"Operator"
|
|
16176
|
+
],
|
|
16177
|
+
signer: true
|
|
16178
|
+
},
|
|
16179
|
+
{
|
|
16180
|
+
name: "treasury",
|
|
16181
|
+
writable: true,
|
|
16182
|
+
address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
|
|
16183
|
+
},
|
|
16184
|
+
{
|
|
16185
|
+
name: "event_authority",
|
|
16186
|
+
pda: {
|
|
16187
|
+
seeds: [
|
|
16188
|
+
{
|
|
16189
|
+
kind: "const",
|
|
16190
|
+
value: [
|
|
16191
|
+
95,
|
|
16192
|
+
95,
|
|
16193
|
+
101,
|
|
16194
|
+
118,
|
|
16195
|
+
101,
|
|
16196
|
+
110,
|
|
16197
|
+
116,
|
|
16198
|
+
95,
|
|
16199
|
+
97,
|
|
16200
|
+
117,
|
|
16201
|
+
116,
|
|
16202
|
+
104,
|
|
16203
|
+
111,
|
|
16204
|
+
114,
|
|
16205
|
+
105,
|
|
16206
|
+
116,
|
|
16207
|
+
121
|
|
16208
|
+
]
|
|
16209
|
+
}
|
|
16210
|
+
]
|
|
16211
|
+
}
|
|
16212
|
+
},
|
|
16213
|
+
{
|
|
16214
|
+
name: "program"
|
|
16215
|
+
}
|
|
16216
|
+
],
|
|
16217
|
+
args: [
|
|
16218
|
+
]
|
|
16219
|
+
},
|
|
15750
16220
|
{
|
|
15751
16221
|
name: "claim_trading_fee",
|
|
15752
16222
|
discriminator: [
|
|
@@ -15828,10 +16298,7 @@ var instructions = [
|
|
|
15828
16298
|
},
|
|
15829
16299
|
{
|
|
15830
16300
|
name: "fee_claimer",
|
|
15831
|
-
signer: true
|
|
15832
|
-
relations: [
|
|
15833
|
-
"config"
|
|
15834
|
-
]
|
|
16301
|
+
signer: true
|
|
15835
16302
|
},
|
|
15836
16303
|
{
|
|
15837
16304
|
name: "token_base_program",
|
|
@@ -15890,16 +16357,16 @@ var instructions = [
|
|
|
15890
16357
|
]
|
|
15891
16358
|
},
|
|
15892
16359
|
{
|
|
15893
|
-
name: "
|
|
16360
|
+
name: "close_claim_protocol_fee_operator",
|
|
15894
16361
|
discriminator: [
|
|
15895
|
-
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
16362
|
+
8,
|
|
16363
|
+
41,
|
|
16364
|
+
87,
|
|
16365
|
+
35,
|
|
16366
|
+
80,
|
|
16367
|
+
48,
|
|
16368
|
+
121,
|
|
16369
|
+
26
|
|
15903
16370
|
],
|
|
15904
16371
|
accounts: [
|
|
15905
16372
|
{
|
|
@@ -15911,7 +16378,7 @@ var instructions = [
|
|
|
15911
16378
|
writable: true
|
|
15912
16379
|
},
|
|
15913
16380
|
{
|
|
15914
|
-
name: "
|
|
16381
|
+
name: "signer",
|
|
15915
16382
|
signer: true
|
|
15916
16383
|
},
|
|
15917
16384
|
{
|
|
@@ -15951,19 +16418,16 @@ var instructions = [
|
|
|
15951
16418
|
]
|
|
15952
16419
|
},
|
|
15953
16420
|
{
|
|
15954
|
-
name: "
|
|
15955
|
-
docs: [
|
|
15956
|
-
"ADMIN FUNCTIONS_ ///"
|
|
15957
|
-
],
|
|
16421
|
+
name: "create_claim_protocol_fee_operator",
|
|
15958
16422
|
discriminator: [
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
16423
|
+
51,
|
|
16424
|
+
19,
|
|
16425
|
+
150,
|
|
16426
|
+
252,
|
|
16427
|
+
105,
|
|
16428
|
+
157,
|
|
16429
|
+
48,
|
|
16430
|
+
91
|
|
15967
16431
|
],
|
|
15968
16432
|
accounts: [
|
|
15969
16433
|
{
|
|
@@ -15995,10 +16459,14 @@ var instructions = [
|
|
|
15995
16459
|
}
|
|
15996
16460
|
},
|
|
15997
16461
|
{
|
|
15998
|
-
name: "operator"
|
|
16462
|
+
name: "operator"
|
|
16463
|
+
},
|
|
16464
|
+
{
|
|
16465
|
+
name: "signer",
|
|
16466
|
+
signer: true
|
|
15999
16467
|
},
|
|
16000
16468
|
{
|
|
16001
|
-
name: "
|
|
16469
|
+
name: "payer",
|
|
16002
16470
|
writable: true,
|
|
16003
16471
|
signer: true
|
|
16004
16472
|
},
|
|
@@ -16423,10 +16891,7 @@ var instructions = [
|
|
|
16423
16891
|
},
|
|
16424
16892
|
{
|
|
16425
16893
|
name: "creator",
|
|
16426
|
-
signer: true
|
|
16427
|
-
relations: [
|
|
16428
|
-
"virtual_pool"
|
|
16429
|
-
]
|
|
16894
|
+
signer: true
|
|
16430
16895
|
},
|
|
16431
16896
|
{
|
|
16432
16897
|
name: "payer",
|
|
@@ -16542,10 +17007,7 @@ var instructions = [
|
|
|
16542
17007
|
},
|
|
16543
17008
|
{
|
|
16544
17009
|
name: "creator",
|
|
16545
|
-
signer: true
|
|
16546
|
-
relations: [
|
|
16547
|
-
"virtual_pool"
|
|
16548
|
-
]
|
|
17010
|
+
signer: true
|
|
16549
17011
|
},
|
|
16550
17012
|
{
|
|
16551
17013
|
name: "token_quote_program",
|
|
@@ -17584,7 +18046,8 @@ var instructions = [
|
|
|
17584
18046
|
},
|
|
17585
18047
|
{
|
|
17586
18048
|
name: "first_position_nft_mint",
|
|
17587
|
-
writable: true
|
|
18049
|
+
writable: true,
|
|
18050
|
+
signer: true
|
|
17588
18051
|
},
|
|
17589
18052
|
{
|
|
17590
18053
|
name: "first_position_nft_account",
|
|
@@ -17597,6 +18060,7 @@ var instructions = [
|
|
|
17597
18060
|
{
|
|
17598
18061
|
name: "second_position_nft_mint",
|
|
17599
18062
|
writable: true,
|
|
18063
|
+
signer: true,
|
|
17600
18064
|
optional: true
|
|
17601
18065
|
},
|
|
17602
18066
|
{
|
|
@@ -17887,10 +18351,7 @@ var instructions = [
|
|
|
17887
18351
|
},
|
|
17888
18352
|
{
|
|
17889
18353
|
name: "fee_claimer",
|
|
17890
|
-
signer: true
|
|
17891
|
-
relations: [
|
|
17892
|
-
"config"
|
|
17893
|
-
]
|
|
18354
|
+
signer: true
|
|
17894
18355
|
},
|
|
17895
18356
|
{
|
|
17896
18357
|
name: "token_quote_program",
|
|
@@ -18073,6 +18534,19 @@ var instructions = [
|
|
|
18073
18534
|
"config"
|
|
18074
18535
|
]
|
|
18075
18536
|
},
|
|
18537
|
+
{
|
|
18538
|
+
name: "claim_fee_operator",
|
|
18539
|
+
docs: [
|
|
18540
|
+
"Claim fee operator"
|
|
18541
|
+
]
|
|
18542
|
+
},
|
|
18543
|
+
{
|
|
18544
|
+
name: "signer",
|
|
18545
|
+
docs: [
|
|
18546
|
+
"Signer"
|
|
18547
|
+
],
|
|
18548
|
+
signer: true
|
|
18549
|
+
},
|
|
18076
18550
|
{
|
|
18077
18551
|
name: "token_quote_program",
|
|
18078
18552
|
docs: [
|
|
@@ -18443,10 +18917,7 @@ var instructions = [
|
|
|
18443
18917
|
},
|
|
18444
18918
|
{
|
|
18445
18919
|
name: "creator",
|
|
18446
|
-
signer: true
|
|
18447
|
-
relations: [
|
|
18448
|
-
"virtual_pool"
|
|
18449
|
-
]
|
|
18920
|
+
signer: true
|
|
18450
18921
|
},
|
|
18451
18922
|
{
|
|
18452
18923
|
name: "new_creator"
|
|
@@ -18487,37 +18958,6 @@ var instructions = [
|
|
|
18487
18958
|
args: [
|
|
18488
18959
|
]
|
|
18489
18960
|
},
|
|
18490
|
-
{
|
|
18491
|
-
name: "withdraw_lamports_from_pool_authority",
|
|
18492
|
-
discriminator: [
|
|
18493
|
-
20,
|
|
18494
|
-
185,
|
|
18495
|
-
242,
|
|
18496
|
-
240,
|
|
18497
|
-
129,
|
|
18498
|
-
24,
|
|
18499
|
-
212,
|
|
18500
|
-
194
|
|
18501
|
-
],
|
|
18502
|
-
accounts: [
|
|
18503
|
-
{
|
|
18504
|
-
name: "pool_authority",
|
|
18505
|
-
writable: true,
|
|
18506
|
-
address: "FhVo3mqL8PW5pH5U2CN4XE33DokiyZnUwuGpH2hmHLuM"
|
|
18507
|
-
},
|
|
18508
|
-
{
|
|
18509
|
-
name: "receiver",
|
|
18510
|
-
writable: true,
|
|
18511
|
-
address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
|
|
18512
|
-
},
|
|
18513
|
-
{
|
|
18514
|
-
name: "system_program",
|
|
18515
|
-
address: "11111111111111111111111111111111"
|
|
18516
|
-
}
|
|
18517
|
-
],
|
|
18518
|
-
args: [
|
|
18519
|
-
]
|
|
18520
|
-
},
|
|
18521
18961
|
{
|
|
18522
18962
|
name: "withdraw_leftover",
|
|
18523
18963
|
discriminator: [
|
|
@@ -19042,6 +19482,19 @@ var events = [
|
|
|
19042
19482
|
37
|
|
19043
19483
|
]
|
|
19044
19484
|
},
|
|
19485
|
+
{
|
|
19486
|
+
name: "EvtPartnerClaimPoolCreationFee",
|
|
19487
|
+
discriminator: [
|
|
19488
|
+
174,
|
|
19489
|
+
223,
|
|
19490
|
+
44,
|
|
19491
|
+
150,
|
|
19492
|
+
145,
|
|
19493
|
+
98,
|
|
19494
|
+
89,
|
|
19495
|
+
195
|
|
19496
|
+
]
|
|
19497
|
+
},
|
|
19045
19498
|
{
|
|
19046
19499
|
name: "EvtPartnerMetadata",
|
|
19047
19500
|
discriminator: [
|
|
@@ -19428,6 +19881,31 @@ var errors = [
|
|
|
19428
19881
|
code: 6050,
|
|
19429
19882
|
name: "AccountInvariantViolation",
|
|
19430
19883
|
msg: "Account invariant violation"
|
|
19884
|
+
},
|
|
19885
|
+
{
|
|
19886
|
+
code: 6051,
|
|
19887
|
+
name: "InvalidPoolCreationFee",
|
|
19888
|
+
msg: "Invalid pool creation fee"
|
|
19889
|
+
},
|
|
19890
|
+
{
|
|
19891
|
+
code: 6052,
|
|
19892
|
+
name: "PoolCreationFeeHasBeenClaimed",
|
|
19893
|
+
msg: "Pool creation fee has been claimed"
|
|
19894
|
+
},
|
|
19895
|
+
{
|
|
19896
|
+
code: 6053,
|
|
19897
|
+
name: "Unauthorized",
|
|
19898
|
+
msg: "Not permit to do this action"
|
|
19899
|
+
},
|
|
19900
|
+
{
|
|
19901
|
+
code: 6054,
|
|
19902
|
+
name: "ZeroPoolCreationFee",
|
|
19903
|
+
msg: "Pool creation fee is zero"
|
|
19904
|
+
},
|
|
19905
|
+
{
|
|
19906
|
+
code: 6055,
|
|
19907
|
+
name: "InvalidMigrationLockedLiquidity",
|
|
19908
|
+
msg: "Invalid migration locked liquidity"
|
|
19431
19909
|
}
|
|
19432
19910
|
];
|
|
19433
19911
|
var types = [
|
|
@@ -19613,19 +20091,19 @@ var types = [
|
|
|
19613
20091
|
type: "u8"
|
|
19614
20092
|
},
|
|
19615
20093
|
{
|
|
19616
|
-
name: "
|
|
20094
|
+
name: "partner_liquidity_percentage",
|
|
19617
20095
|
type: "u8"
|
|
19618
20096
|
},
|
|
19619
20097
|
{
|
|
19620
|
-
name: "
|
|
20098
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
19621
20099
|
type: "u8"
|
|
19622
20100
|
},
|
|
19623
20101
|
{
|
|
19624
|
-
name: "
|
|
20102
|
+
name: "creator_liquidity_percentage",
|
|
19625
20103
|
type: "u8"
|
|
19626
20104
|
},
|
|
19627
20105
|
{
|
|
19628
|
-
name: "
|
|
20106
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
19629
20107
|
type: "u8"
|
|
19630
20108
|
},
|
|
19631
20109
|
{
|
|
@@ -19682,6 +20160,29 @@ var types = [
|
|
|
19682
20160
|
}
|
|
19683
20161
|
}
|
|
19684
20162
|
},
|
|
20163
|
+
{
|
|
20164
|
+
name: "pool_creation_fee",
|
|
20165
|
+
docs: [
|
|
20166
|
+
"pool creation fee in SOL lamports value"
|
|
20167
|
+
],
|
|
20168
|
+
type: "u64"
|
|
20169
|
+
},
|
|
20170
|
+
{
|
|
20171
|
+
name: "partner_liquidity_vesting_info",
|
|
20172
|
+
type: {
|
|
20173
|
+
defined: {
|
|
20174
|
+
name: "LiquidityVestingInfoParams"
|
|
20175
|
+
}
|
|
20176
|
+
}
|
|
20177
|
+
},
|
|
20178
|
+
{
|
|
20179
|
+
name: "creator_liquidity_vesting_info",
|
|
20180
|
+
type: {
|
|
20181
|
+
defined: {
|
|
20182
|
+
name: "LiquidityVestingInfoParams"
|
|
20183
|
+
}
|
|
20184
|
+
}
|
|
20185
|
+
},
|
|
19685
20186
|
{
|
|
19686
20187
|
name: "padding",
|
|
19687
20188
|
docs: [
|
|
@@ -19689,8 +20190,8 @@ var types = [
|
|
|
19689
20190
|
],
|
|
19690
20191
|
type: {
|
|
19691
20192
|
array: [
|
|
19692
|
-
"
|
|
19693
|
-
|
|
20193
|
+
"u8",
|
|
20194
|
+
22
|
|
19694
20195
|
]
|
|
19695
20196
|
}
|
|
19696
20197
|
},
|
|
@@ -19893,7 +20394,7 @@ var types = [
|
|
|
19893
20394
|
type: "pubkey"
|
|
19894
20395
|
},
|
|
19895
20396
|
{
|
|
19896
|
-
name: "
|
|
20397
|
+
name: "receiver",
|
|
19897
20398
|
type: "pubkey"
|
|
19898
20399
|
},
|
|
19899
20400
|
{
|
|
@@ -20030,19 +20531,19 @@ var types = [
|
|
|
20030
20531
|
type: "u8"
|
|
20031
20532
|
},
|
|
20032
20533
|
{
|
|
20033
|
-
name: "
|
|
20534
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
20034
20535
|
type: "u8"
|
|
20035
20536
|
},
|
|
20036
20537
|
{
|
|
20037
|
-
name: "
|
|
20538
|
+
name: "partner_liquidity_percentage",
|
|
20038
20539
|
type: "u8"
|
|
20039
20540
|
},
|
|
20040
20541
|
{
|
|
20041
|
-
name: "
|
|
20542
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
20042
20543
|
type: "u8"
|
|
20043
20544
|
},
|
|
20044
20545
|
{
|
|
20045
|
-
name: "
|
|
20546
|
+
name: "creator_liquidity_percentage",
|
|
20046
20547
|
type: "u8"
|
|
20047
20548
|
},
|
|
20048
20549
|
{
|
|
@@ -20214,6 +20715,26 @@ var types = [
|
|
|
20214
20715
|
]
|
|
20215
20716
|
}
|
|
20216
20717
|
},
|
|
20718
|
+
{
|
|
20719
|
+
name: "EvtPartnerClaimPoolCreationFee",
|
|
20720
|
+
type: {
|
|
20721
|
+
kind: "struct",
|
|
20722
|
+
fields: [
|
|
20723
|
+
{
|
|
20724
|
+
name: "pool",
|
|
20725
|
+
type: "pubkey"
|
|
20726
|
+
},
|
|
20727
|
+
{
|
|
20728
|
+
name: "partner",
|
|
20729
|
+
type: "pubkey"
|
|
20730
|
+
},
|
|
20731
|
+
{
|
|
20732
|
+
name: "creation_fee",
|
|
20733
|
+
type: "u64"
|
|
20734
|
+
}
|
|
20735
|
+
]
|
|
20736
|
+
}
|
|
20737
|
+
},
|
|
20217
20738
|
{
|
|
20218
20739
|
name: "EvtPartnerMetadata",
|
|
20219
20740
|
docs: [
|
|
@@ -20516,6 +21037,79 @@ var types = [
|
|
|
20516
21037
|
]
|
|
20517
21038
|
}
|
|
20518
21039
|
},
|
|
21040
|
+
{
|
|
21041
|
+
name: "LiquidityVestingInfo",
|
|
21042
|
+
serialization: "bytemuck",
|
|
21043
|
+
repr: {
|
|
21044
|
+
kind: "c"
|
|
21045
|
+
},
|
|
21046
|
+
type: {
|
|
21047
|
+
kind: "struct",
|
|
21048
|
+
fields: [
|
|
21049
|
+
{
|
|
21050
|
+
name: "is_initialized",
|
|
21051
|
+
type: "u8"
|
|
21052
|
+
},
|
|
21053
|
+
{
|
|
21054
|
+
name: "vesting_percentage",
|
|
21055
|
+
type: "u8"
|
|
21056
|
+
},
|
|
21057
|
+
{
|
|
21058
|
+
name: "_padding",
|
|
21059
|
+
type: {
|
|
21060
|
+
array: [
|
|
21061
|
+
"u8",
|
|
21062
|
+
2
|
|
21063
|
+
]
|
|
21064
|
+
}
|
|
21065
|
+
},
|
|
21066
|
+
{
|
|
21067
|
+
name: "bps_per_period",
|
|
21068
|
+
type: "u16"
|
|
21069
|
+
},
|
|
21070
|
+
{
|
|
21071
|
+
name: "number_of_periods",
|
|
21072
|
+
type: "u16"
|
|
21073
|
+
},
|
|
21074
|
+
{
|
|
21075
|
+
name: "frequency",
|
|
21076
|
+
type: "u32"
|
|
21077
|
+
},
|
|
21078
|
+
{
|
|
21079
|
+
name: "cliff_duration_from_migration_time",
|
|
21080
|
+
type: "u32"
|
|
21081
|
+
}
|
|
21082
|
+
]
|
|
21083
|
+
}
|
|
21084
|
+
},
|
|
21085
|
+
{
|
|
21086
|
+
name: "LiquidityVestingInfoParams",
|
|
21087
|
+
type: {
|
|
21088
|
+
kind: "struct",
|
|
21089
|
+
fields: [
|
|
21090
|
+
{
|
|
21091
|
+
name: "vesting_percentage",
|
|
21092
|
+
type: "u8"
|
|
21093
|
+
},
|
|
21094
|
+
{
|
|
21095
|
+
name: "bps_per_period",
|
|
21096
|
+
type: "u16"
|
|
21097
|
+
},
|
|
21098
|
+
{
|
|
21099
|
+
name: "number_of_periods",
|
|
21100
|
+
type: "u16"
|
|
21101
|
+
},
|
|
21102
|
+
{
|
|
21103
|
+
name: "cliff_duration_from_migration_time",
|
|
21104
|
+
type: "u32"
|
|
21105
|
+
},
|
|
21106
|
+
{
|
|
21107
|
+
name: "frequency",
|
|
21108
|
+
type: "u32"
|
|
21109
|
+
}
|
|
21110
|
+
]
|
|
21111
|
+
}
|
|
21112
|
+
},
|
|
20519
21113
|
{
|
|
20520
21114
|
name: "LockEscrow",
|
|
20521
21115
|
docs: [
|
|
@@ -20646,7 +21240,7 @@ var types = [
|
|
|
20646
21240
|
{
|
|
20647
21241
|
name: "padding_0",
|
|
20648
21242
|
docs: [
|
|
20649
|
-
"!!! BE CAREFUL to use
|
|
21243
|
+
"!!! BE CAREFUL to use tombstone field, previous is pool creator"
|
|
20650
21244
|
],
|
|
20651
21245
|
type: {
|
|
20652
21246
|
array: [
|
|
@@ -20670,30 +21264,30 @@ var types = [
|
|
|
20670
21264
|
type: "pubkey"
|
|
20671
21265
|
},
|
|
20672
21266
|
{
|
|
20673
|
-
name: "
|
|
21267
|
+
name: "partner_locked_liquidity",
|
|
20674
21268
|
docs: [
|
|
20675
|
-
"partner locked
|
|
21269
|
+
"partner locked liquidity"
|
|
20676
21270
|
],
|
|
20677
21271
|
type: "u64"
|
|
20678
21272
|
},
|
|
20679
21273
|
{
|
|
20680
|
-
name: "
|
|
21274
|
+
name: "partner_liquidity",
|
|
20681
21275
|
docs: [
|
|
20682
|
-
"partner
|
|
21276
|
+
"partner liquidity"
|
|
20683
21277
|
],
|
|
20684
21278
|
type: "u64"
|
|
20685
21279
|
},
|
|
20686
21280
|
{
|
|
20687
|
-
name: "
|
|
21281
|
+
name: "creator_locked_liquidity",
|
|
20688
21282
|
docs: [
|
|
20689
|
-
"creator locked
|
|
21283
|
+
"creator locked liquidity"
|
|
20690
21284
|
],
|
|
20691
21285
|
type: "u64"
|
|
20692
21286
|
},
|
|
20693
21287
|
{
|
|
20694
|
-
name: "
|
|
21288
|
+
name: "creator_liquidity",
|
|
20695
21289
|
docs: [
|
|
20696
|
-
"creator
|
|
21290
|
+
"creator liquidity"
|
|
20697
21291
|
],
|
|
20698
21292
|
type: "u64"
|
|
20699
21293
|
},
|
|
@@ -20707,28 +21301,28 @@ var types = [
|
|
|
20707
21301
|
{
|
|
20708
21302
|
name: "creator_locked_status",
|
|
20709
21303
|
docs: [
|
|
20710
|
-
"flag to check whether
|
|
21304
|
+
"flag to check whether liquidity token is locked for creator"
|
|
20711
21305
|
],
|
|
20712
21306
|
type: "u8"
|
|
20713
21307
|
},
|
|
20714
21308
|
{
|
|
20715
21309
|
name: "partner_locked_status",
|
|
20716
21310
|
docs: [
|
|
20717
|
-
"flag to check whether
|
|
21311
|
+
"flag to check whether liquidity token is locked for partner"
|
|
20718
21312
|
],
|
|
20719
21313
|
type: "u8"
|
|
20720
21314
|
},
|
|
20721
21315
|
{
|
|
20722
21316
|
name: "creator_claim_status",
|
|
20723
21317
|
docs: [
|
|
20724
|
-
"flag to check whether creator has claimed
|
|
21318
|
+
"flag to check whether creator has claimed liquidity token"
|
|
20725
21319
|
],
|
|
20726
21320
|
type: "u8"
|
|
20727
21321
|
},
|
|
20728
21322
|
{
|
|
20729
21323
|
name: "partner_claim_status",
|
|
20730
21324
|
docs: [
|
|
20731
|
-
"flag to check whether partner has claimed
|
|
21325
|
+
"flag to check whether partner has claimed liquidity token"
|
|
20732
21326
|
],
|
|
20733
21327
|
type: "u8"
|
|
20734
21328
|
},
|
|
@@ -20875,6 +21469,41 @@ var types = [
|
|
|
20875
21469
|
}
|
|
20876
21470
|
}
|
|
20877
21471
|
},
|
|
21472
|
+
{
|
|
21473
|
+
name: "partner_liquidity_vesting_info",
|
|
21474
|
+
type: {
|
|
21475
|
+
defined: {
|
|
21476
|
+
name: "LiquidityVestingInfo"
|
|
21477
|
+
}
|
|
21478
|
+
}
|
|
21479
|
+
},
|
|
21480
|
+
{
|
|
21481
|
+
name: "creator_liquidity_vesting_info",
|
|
21482
|
+
type: {
|
|
21483
|
+
defined: {
|
|
21484
|
+
name: "LiquidityVestingInfo"
|
|
21485
|
+
}
|
|
21486
|
+
}
|
|
21487
|
+
},
|
|
21488
|
+
{
|
|
21489
|
+
name: "padding_0",
|
|
21490
|
+
docs: [
|
|
21491
|
+
"Padding for future use"
|
|
21492
|
+
],
|
|
21493
|
+
type: {
|
|
21494
|
+
array: [
|
|
21495
|
+
"u8",
|
|
21496
|
+
14
|
|
21497
|
+
]
|
|
21498
|
+
}
|
|
21499
|
+
},
|
|
21500
|
+
{
|
|
21501
|
+
name: "padding_1",
|
|
21502
|
+
docs: [
|
|
21503
|
+
"Previously was protocol and referral fee percent. Beware of tombstone."
|
|
21504
|
+
],
|
|
21505
|
+
type: "u16"
|
|
21506
|
+
},
|
|
20878
21507
|
{
|
|
20879
21508
|
name: "collect_fee_mode",
|
|
20880
21509
|
docs: [
|
|
@@ -20925,30 +21554,30 @@ var types = [
|
|
|
20925
21554
|
type: "u8"
|
|
20926
21555
|
},
|
|
20927
21556
|
{
|
|
20928
|
-
name: "
|
|
21557
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
20929
21558
|
docs: [
|
|
20930
|
-
"partner locked
|
|
21559
|
+
"partner locked liquidity percentage"
|
|
20931
21560
|
],
|
|
20932
21561
|
type: "u8"
|
|
20933
21562
|
},
|
|
20934
21563
|
{
|
|
20935
|
-
name: "
|
|
21564
|
+
name: "partner_liquidity_percentage",
|
|
20936
21565
|
docs: [
|
|
20937
|
-
"partner
|
|
21566
|
+
"partner liquidity percentage"
|
|
20938
21567
|
],
|
|
20939
21568
|
type: "u8"
|
|
20940
21569
|
},
|
|
20941
21570
|
{
|
|
20942
|
-
name: "
|
|
21571
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
20943
21572
|
docs: [
|
|
20944
21573
|
"creator post migration fee percentage"
|
|
20945
21574
|
],
|
|
20946
21575
|
type: "u8"
|
|
20947
21576
|
},
|
|
20948
21577
|
{
|
|
20949
|
-
name: "
|
|
21578
|
+
name: "creator_liquidity_percentage",
|
|
20950
21579
|
docs: [
|
|
20951
|
-
"creator
|
|
21580
|
+
"creator liquidity percentage"
|
|
20952
21581
|
],
|
|
20953
21582
|
type: "u8"
|
|
20954
21583
|
},
|
|
@@ -20995,10 +21624,7 @@ var types = [
|
|
|
20995
21624
|
type: "u8"
|
|
20996
21625
|
},
|
|
20997
21626
|
{
|
|
20998
|
-
name: "
|
|
20999
|
-
docs: [
|
|
21000
|
-
"padding 0"
|
|
21001
|
-
],
|
|
21627
|
+
name: "padding_2",
|
|
21002
21628
|
type: {
|
|
21003
21629
|
array: [
|
|
21004
21630
|
"u8",
|
|
@@ -21088,10 +21714,17 @@ var types = [
|
|
|
21088
21714
|
type: {
|
|
21089
21715
|
array: [
|
|
21090
21716
|
"u8",
|
|
21091
|
-
|
|
21717
|
+
4
|
|
21092
21718
|
]
|
|
21093
21719
|
}
|
|
21094
21720
|
},
|
|
21721
|
+
{
|
|
21722
|
+
name: "pool_creation_fee",
|
|
21723
|
+
docs: [
|
|
21724
|
+
"pool creation fee in lamports value"
|
|
21725
|
+
],
|
|
21726
|
+
type: "u64"
|
|
21727
|
+
},
|
|
21095
21728
|
{
|
|
21096
21729
|
name: "_padding_2",
|
|
21097
21730
|
docs: [
|
|
@@ -21211,32 +21844,6 @@ var types = [
|
|
|
21211
21844
|
name: "DynamicFeeConfig"
|
|
21212
21845
|
}
|
|
21213
21846
|
}
|
|
21214
|
-
},
|
|
21215
|
-
{
|
|
21216
|
-
name: "padding_0",
|
|
21217
|
-
type: {
|
|
21218
|
-
array: [
|
|
21219
|
-
"u64",
|
|
21220
|
-
5
|
|
21221
|
-
]
|
|
21222
|
-
}
|
|
21223
|
-
},
|
|
21224
|
-
{
|
|
21225
|
-
name: "padding_1",
|
|
21226
|
-
type: {
|
|
21227
|
-
array: [
|
|
21228
|
-
"u8",
|
|
21229
|
-
6
|
|
21230
|
-
]
|
|
21231
|
-
}
|
|
21232
|
-
},
|
|
21233
|
-
{
|
|
21234
|
-
name: "protocol_fee_percent",
|
|
21235
|
-
type: "u8"
|
|
21236
|
-
},
|
|
21237
|
-
{
|
|
21238
|
-
name: "referral_fee_percent",
|
|
21239
|
-
type: "u8"
|
|
21240
21847
|
}
|
|
21241
21848
|
]
|
|
21242
21849
|
}
|
|
@@ -21612,16 +22219,29 @@ var types = [
|
|
|
21612
22219
|
],
|
|
21613
22220
|
type: "u64"
|
|
21614
22221
|
},
|
|
22222
|
+
{
|
|
22223
|
+
name: "legacy_creation_fee_bits",
|
|
22224
|
+
docs: [
|
|
22225
|
+
"legacy creation fee bits, we dont use this now"
|
|
22226
|
+
],
|
|
22227
|
+
type: "u8"
|
|
22228
|
+
},
|
|
21615
22229
|
{
|
|
21616
22230
|
name: "creation_fee_bits",
|
|
22231
|
+
docs: [
|
|
22232
|
+
"pool creation fee claim status"
|
|
22233
|
+
],
|
|
21617
22234
|
type: "u8"
|
|
21618
22235
|
},
|
|
21619
22236
|
{
|
|
21620
22237
|
name: "_padding_0",
|
|
22238
|
+
docs: [
|
|
22239
|
+
"Padding for further use"
|
|
22240
|
+
],
|
|
21621
22241
|
type: {
|
|
21622
22242
|
array: [
|
|
21623
22243
|
"u8",
|
|
21624
|
-
|
|
22244
|
+
6
|
|
21625
22245
|
]
|
|
21626
22246
|
}
|
|
21627
22247
|
},
|
|
@@ -21739,4 +22359,4 @@ var idl = {
|
|
|
21739
22359
|
types: types
|
|
21740
22360
|
};
|
|
21741
22361
|
|
|
21742
|
-
export { ActivationType, BASE_ADDRESS,
|
|
22362
|
+
export { ActivationType, BASE_ADDRESS, BIN_STEP_BPS_DEFAULT, BIN_STEP_BPS_U128_DEFAULT, type BaseFee, type BaseFeeConfig, type BaseFeeHandler, BaseFeeMode, type BaseFeeParams, type BuildCurveBaseParams, type BuildCurveParams, type BuildCurveWithCustomSqrtPricesParams, type BuildCurveWithLiquidityWeightsParams, type BuildCurveWithMarketCapParams, type BuildCurveWithMidPriceParams, type BuildCurveWithTwoSegmentsParams, type ClaimCreatorTradingFee2Params, type ClaimCreatorTradingFeeParams, type ClaimCreatorTradingFeeWithQuoteMintNotSolParams, type ClaimCreatorTradingFeeWithQuoteMintSolParams, type ClaimPartnerPoolCreationFeeParams, type ClaimPartnerTradingFeeWithQuoteMintNotSolParams, type ClaimPartnerTradingFeeWithQuoteMintSolParams, type ClaimTradingFee2Params, type ClaimTradingFeeParams, CollectFeeMode, type ConfigParameters, type CreateConfigAccounts, type CreateConfigAndPoolParams, type CreateConfigAndPoolWithFirstBuyParams, type CreateConfigParams, type CreateDammV1MigrationMetadataParams, type CreateLockerParams, type CreatePartnerMetadataParameters, type CreatePartnerMetadataParams, type CreatePoolParams, type CreatePoolWithFirstBuyParams, type CreatePoolWithPartnerAndCreatorFirstBuyParams, type CreateVirtualPoolMetadataParams, type CreatorFirstBuyParams, CreatorService, type CreatorWithdrawSurplusParams, DAMM_V1_MIGRATION_FEE_ADDRESS, DAMM_V1_PROGRAM_ID, DAMM_V2_MIGRATION_FEE_ADDRESS, DAMM_V2_PROGRAM_ID, DEFAULT_LIQUIDITY_VESTING_INFO_PARAMS, DYNAMIC_BONDING_CURVE_PROGRAM_ID, DYNAMIC_FEE_DECAY_PERIOD_DEFAULT, DYNAMIC_FEE_FILTER_PERIOD_DEFAULT, DYNAMIC_FEE_REDUCTION_FACTOR_DEFAULT, DYNAMIC_FEE_ROUNDING_OFFSET, DYNAMIC_FEE_SCALING_FACTOR, type DammLpTokenParams, DammV2DynamicFeeMode, DynamicBondingCurveClient, idl as DynamicBondingCurveIdl, DynamicBondingCurveProgram, type DynamicBondingCurve as DynamicBondingCurveTypes, type DynamicCurveProgram, type DynamicFeeConfig, type DynamicFeeParameters, FEE_DENOMINATOR, type FeeMode, type FeeOnAmountResult, FeeRateLimiter, type FeeResult, FeeScheduler, type FeeSchedulerParams, type FirstBuyParams, HOST_FEE_PERCENT, type InitializePoolBaseParams, type InitializePoolParameters, LOCKER_PROGRAM_ID, type LiquidityDistributionParameters, type LiquidityVestingInfoParameters, type LiquidityVestingInfoParams, type LockEscrow, type LockedVestingParameters, type LockedVestingParams, MAX_BASIS_POINT, MAX_CREATOR_MIGRATION_FEE_PERCENTAGE, MAX_CURVE_POINT, MAX_FEE_BPS, MAX_FEE_NUMERATOR, MAX_LOCK_DURATION_IN_SECONDS, MAX_MIGRATED_POOL_FEE_BPS, MAX_MIGRATION_FEE_PERCENTAGE, MAX_POOL_CREATION_FEE, MAX_PRICE_CHANGE_PERCENTAGE_DEFAULT, MAX_RATE_LIMITER_DURATION_IN_SECONDS, MAX_RATE_LIMITER_DURATION_IN_SLOTS, MAX_SQRT_PRICE, METAPLEX_PROGRAM_ID, MIN_FEE_BPS, MIN_FEE_NUMERATOR, MIN_LOCKED_LIQUIDITY_BPS, MIN_MIGRATED_POOL_FEE_BPS, MIN_POOL_CREATION_FEE, MIN_SQRT_PRICE, type MeteoraDammMigrationMetadata, type MigrateToDammV1Params, type MigrateToDammV2Params, type MigrateToDammV2Response, type MigratedPoolFee, MigrationFeeOption, MigrationOption, MigrationService, OFFSET, ONE_Q64, PROTOCOL_FEE_PERCENT, PROTOCOL_POOL_CREATION_FEE_PERCENT, type PartnerFirstBuyParams, type PartnerMetadata, PartnerService, type PartnerWithdrawSurplusParams, type PoolConfig, type PoolFeeParameters, type PoolFees, type PoolFeesConfig, PoolService, type PreCreatePoolParams, type PrepareSwapParams, RESOLUTION, type RateLimiterParams, Rounding, SECONDS_PER_DAY, SWAP_BUFFER_PERCENTAGE, SafeMath, StateService, type Swap2Params, type SwapAmount, SwapMode, type SwapParams, type SwapQuote2Params, type SwapQuote2Result, type SwapQuoteParams, type SwapQuoteResult, type SwapResult, type SwapResult2, TokenDecimal, TokenType, TokenUpdateAuthorityOption, TradeDirection, type TransferPoolCreatorParams, U128_MAX, U16_MAX, U64_MAX, VAULT_PROGRAM_ID, type VirtualPool, type VirtualPoolMetadata, type VolatilityTracker, type WithdrawLeftoverParams, type WithdrawMigrationFeeParams, bpsToFeeNumerator, buildCurve, buildCurveWithCustomSqrtPrices, buildCurveWithLiquidityWeights, buildCurveWithMarketCap, buildCurveWithMidPrice, buildCurveWithTwoSegments, calculateAdjustedPercentageSupplyOnMigration, calculateBaseToQuoteFromAmountIn, calculateBaseToQuoteFromAmountOut, calculateFeeSchedulerEndingBaseFeeBps, calculateLockedLiquidityBpsAtTime, calculateQuoteToBaseFromAmountIn, calculateQuoteToBaseFromAmountOut, checkRateLimiterApplied, cleanUpTokenAccountTx, convertDecimalToBN, convertToLamports, createDammV1Program, createDammV2Program, createDbcProgram, createInitializePermissionlessDynamicVaultIx, createLockEscrowIx, createProgramAccountFilter, createSqrtPrices, createVaultProgram, deriveBaseKeyForLocker, deriveDammV1EventAuthority, deriveDammV1LockEscrowAddress, deriveDammV1LpMintAddress, deriveDammV1MigrationMetadataAddress, deriveDammV1PoolAddress, deriveDammV1PoolAuthority, deriveDammV1ProtocolFeeAddress, deriveDammV1VaultLPAddress, deriveDammV2EventAuthority, deriveDammV2LockEscrowAddress, deriveDammV2MigrationMetadataAddress, deriveDammV2PoolAddress, deriveDammV2PoolAuthority, deriveDammV2PositionVestingAccount, deriveDammV2TokenVaultAddress, deriveDbcEventAuthority, deriveDbcPoolAddress, deriveDbcPoolAuthority, deriveDbcPoolMetadata, deriveDbcTokenVaultAddress, deriveEscrow, deriveLockerEventAuthority, deriveMintMetadata, derivePartnerMetadata, derivePositionAddress, derivePositionNftAccount, deriveTokenVaultKey, deriveVaultAddress, deriveVaultLpMintAddress, deriveVaultPdas, feeNumeratorToBps, findAssociatedTokenAddress, fromDecimalToBN, getAccountCreationTimestamp, getAccountCreationTimestamps, getAccountData, getBaseFeeHandler, getBaseFeeNumerator, getBaseFeeNumeratorByPeriod, getBaseFeeParams, getBaseTokenForSwap, getCheckedAmounts, getCurrentPoint, getCurveBreakdown, getDeltaAmountBaseUnsigned, getDeltaAmountBaseUnsigned256, getDeltaAmountBaseUnsignedUnchecked, getDeltaAmountQuoteUnsigned, getDeltaAmountQuoteUnsigned256, getDeltaAmountQuoteUnsignedUnchecked, getDynamicFeeParams, getExcludedFeeAmount, getFeeMode, getFeeNumeratorFromExcludedAmount, getFeeNumeratorFromIncludedAmount, getFeeNumeratorOnExponentialFeeScheduler, getFeeNumeratorOnLinearFeeScheduler, getFeeOnAmount, getFeeSchedulerParams, getFirstCurve, getFirstKey, getIncludedFeeAmount, getInitialLiquidityFromDeltaBase, getInitialLiquidityFromDeltaQuote, getLiquidity, getLiquidityVestingInfoParams, getLockedVestingParams, getMaxBaseFeeNumerator, getMaxIndex, getMaxOutAmountWithMinBaseFee, getMigratedPoolFeeParams, getMigrationBaseToken, getMigrationQuoteAmount, getMigrationQuoteAmountFromMigrationQuoteThreshold, getMigrationQuoteThresholdFromMigrationQuoteAmount, getMigrationThresholdPrice, getMinBaseFeeNumerator, getNextSqrtPriceFromBaseAmountInRoundingUp, getNextSqrtPriceFromBaseAmountOutRoundingUp, getNextSqrtPriceFromInput, getNextSqrtPriceFromOutput, getNextSqrtPriceFromQuoteAmountInRoundingDown, getNextSqrtPriceFromQuoteAmountOutRoundingDown, getOrCreateATAInstruction, getPercentageSupplyOnMigration, getPriceFromSqrtPrice, getQuoteReserveFromNextSqrtPrice, getRateLimiterExcludedFeeAmount, getRateLimiterParams, getSecondKey, getSqrtPriceFromMarketCap, getSqrtPriceFromPrice, getSwapAmountWithBuffer, getSwapResult, getSwapResultFromExactInput, getSwapResultFromExactOutput, getSwapResultFromPartialInput, getTokenDecimals, getTokenProgram, getTokenType, getTokenomics, getTotalFeeNumerator, getTotalFeeNumeratorFromExcludedFeeAmount, getTotalFeeNumeratorFromIncludedFeeAmount, getTotalSupplyFromCurve, getTotalTokenSupply, getTotalVestingAmount, getTwoCurve, getVariableFeeNumerator, getVestingLockedLiquidityBpsAtNSeconds, isDefaultLockedVesting, isDynamicFeeEnabled, isNativeSol, isNonZeroRateLimiter, isRateLimiterApplied, isZeroRateLimiter, mulDiv, mulShr, pow, prepareSwapAmountParam, prepareTokenAccountTx, splitFees, sqrt, swapQuote, swapQuoteExactIn, swapQuoteExactOut, swapQuotePartialFill, toNumerator, unwrapSOLInstruction, validateActivationType, validateBalance, validateBaseTokenType, validateCollectFeeMode, validateConfigParameters, validateCurve, validateFeeRateLimiter, validateFeeScheduler, validateLPPercentages, validateLiquidityVestingInfo, validateMigratedPoolFee, validateMigrationAndTokenType, validateMigrationFee, validateMigrationFeeOption, validateMinimumLockedLiquidity, validatePoolCreationFee, validatePoolFees, validateSwapAmount, validateTokenDecimals, validateTokenSupply, validateTokenUpdateAuthorityOptions, wrapSOLInstruction };
|