@meteora-ag/dynamic-bonding-curve-sdk 1.4.10 → 1.5.0
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 +1106 -326
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +929 -310
- package/dist/index.d.ts +929 -310
- package/dist/index.js +1123 -343
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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
|
-
|
|
5532
|
-
|
|
5533
|
-
|
|
5534
|
-
|
|
5535
|
-
partnerLockedLpPercentage: number;
|
|
5536
|
-
creatorLockedLpPercentage: number;
|
|
5537
|
-
creatorTradingFeePercentage: number;
|
|
5538
|
-
leftover: number;
|
|
5539
|
-
tokenUpdateAuthority: number;
|
|
5800
|
+
creatorTradingFeePercentage: number;
|
|
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
|
|
@@ -15049,7 +15383,7 @@ declare class FeeScheduler implements BaseFeeHandler {
|
|
|
15049
15383
|
reductionFactor: BN$1;
|
|
15050
15384
|
feeSchedulerMode: BaseFeeMode;
|
|
15051
15385
|
constructor(cliffFeeNumerator: BN$1, numberOfPeriod: number, periodFrequency: BN$1, reductionFactor: BN$1, feeSchedulerMode: BaseFeeMode);
|
|
15052
|
-
validate(
|
|
15386
|
+
validate(): boolean;
|
|
15053
15387
|
getBaseFeeNumeratorFromIncludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
|
|
15054
15388
|
getBaseFeeNumeratorFromExcludedFeeAmount(currentPoint: BN$1, activationPoint: BN$1): BN$1;
|
|
15055
15389
|
}
|
|
@@ -15216,7 +15550,7 @@ declare function getFeeNumeratorFromIncludedAmount(cliffFeeNumerator: BN$1, refe
|
|
|
15216
15550
|
var address = "dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN";
|
|
15217
15551
|
var metadata = {
|
|
15218
15552
|
name: "dynamic_bonding_curve",
|
|
15219
|
-
version: "0.1.
|
|
15553
|
+
version: "0.1.8",
|
|
15220
15554
|
spec: "0.1.0",
|
|
15221
15555
|
description: "Created with Anchor"
|
|
15222
15556
|
};
|
|
@@ -15293,10 +15627,7 @@ var instructions = [
|
|
|
15293
15627
|
},
|
|
15294
15628
|
{
|
|
15295
15629
|
name: "creator",
|
|
15296
|
-
signer: true
|
|
15297
|
-
relations: [
|
|
15298
|
-
"pool"
|
|
15299
|
-
]
|
|
15630
|
+
signer: true
|
|
15300
15631
|
},
|
|
15301
15632
|
{
|
|
15302
15633
|
name: "token_base_program",
|
|
@@ -15355,16 +15686,16 @@ var instructions = [
|
|
|
15355
15686
|
]
|
|
15356
15687
|
},
|
|
15357
15688
|
{
|
|
15358
|
-
name: "
|
|
15689
|
+
name: "claim_legacy_pool_creation_fee",
|
|
15359
15690
|
discriminator: [
|
|
15360
|
-
|
|
15361
|
-
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15366
|
-
|
|
15367
|
-
|
|
15691
|
+
96,
|
|
15692
|
+
11,
|
|
15693
|
+
187,
|
|
15694
|
+
225,
|
|
15695
|
+
54,
|
|
15696
|
+
117,
|
|
15697
|
+
161,
|
|
15698
|
+
134
|
|
15368
15699
|
],
|
|
15369
15700
|
accounts: [
|
|
15370
15701
|
{
|
|
@@ -15378,14 +15709,11 @@ var instructions = [
|
|
|
15378
15709
|
]
|
|
15379
15710
|
},
|
|
15380
15711
|
{
|
|
15381
|
-
name: "
|
|
15712
|
+
name: "signer",
|
|
15382
15713
|
docs: [
|
|
15383
15714
|
"Operator"
|
|
15384
15715
|
],
|
|
15385
|
-
signer: true
|
|
15386
|
-
relations: [
|
|
15387
|
-
"claim_fee_operator"
|
|
15388
|
-
]
|
|
15716
|
+
signer: true
|
|
15389
15717
|
},
|
|
15390
15718
|
{
|
|
15391
15719
|
name: "treasury",
|
|
@@ -15432,6 +15760,73 @@ var instructions = [
|
|
|
15432
15760
|
args: [
|
|
15433
15761
|
]
|
|
15434
15762
|
},
|
|
15763
|
+
{
|
|
15764
|
+
name: "claim_partner_pool_creation_fee",
|
|
15765
|
+
discriminator: [
|
|
15766
|
+
250,
|
|
15767
|
+
238,
|
|
15768
|
+
26,
|
|
15769
|
+
4,
|
|
15770
|
+
139,
|
|
15771
|
+
10,
|
|
15772
|
+
101,
|
|
15773
|
+
248
|
|
15774
|
+
],
|
|
15775
|
+
accounts: [
|
|
15776
|
+
{
|
|
15777
|
+
name: "config",
|
|
15778
|
+
relations: [
|
|
15779
|
+
"pool"
|
|
15780
|
+
]
|
|
15781
|
+
},
|
|
15782
|
+
{
|
|
15783
|
+
name: "pool",
|
|
15784
|
+
writable: true
|
|
15785
|
+
},
|
|
15786
|
+
{
|
|
15787
|
+
name: "fee_claimer",
|
|
15788
|
+
signer: true
|
|
15789
|
+
},
|
|
15790
|
+
{
|
|
15791
|
+
name: "fee_receiver",
|
|
15792
|
+
writable: true
|
|
15793
|
+
},
|
|
15794
|
+
{
|
|
15795
|
+
name: "event_authority",
|
|
15796
|
+
pda: {
|
|
15797
|
+
seeds: [
|
|
15798
|
+
{
|
|
15799
|
+
kind: "const",
|
|
15800
|
+
value: [
|
|
15801
|
+
95,
|
|
15802
|
+
95,
|
|
15803
|
+
101,
|
|
15804
|
+
118,
|
|
15805
|
+
101,
|
|
15806
|
+
110,
|
|
15807
|
+
116,
|
|
15808
|
+
95,
|
|
15809
|
+
97,
|
|
15810
|
+
117,
|
|
15811
|
+
116,
|
|
15812
|
+
104,
|
|
15813
|
+
111,
|
|
15814
|
+
114,
|
|
15815
|
+
105,
|
|
15816
|
+
116,
|
|
15817
|
+
121
|
|
15818
|
+
]
|
|
15819
|
+
}
|
|
15820
|
+
]
|
|
15821
|
+
}
|
|
15822
|
+
},
|
|
15823
|
+
{
|
|
15824
|
+
name: "program"
|
|
15825
|
+
}
|
|
15826
|
+
],
|
|
15827
|
+
args: [
|
|
15828
|
+
]
|
|
15829
|
+
},
|
|
15435
15830
|
{
|
|
15436
15831
|
name: "claim_protocol_fee",
|
|
15437
15832
|
discriminator: [
|
|
@@ -15690,14 +16085,11 @@ var instructions = [
|
|
|
15690
16085
|
]
|
|
15691
16086
|
},
|
|
15692
16087
|
{
|
|
15693
|
-
name: "
|
|
16088
|
+
name: "signer",
|
|
15694
16089
|
docs: [
|
|
15695
|
-
"
|
|
16090
|
+
"Signer"
|
|
15696
16091
|
],
|
|
15697
|
-
signer: true
|
|
15698
|
-
relations: [
|
|
15699
|
-
"claim_fee_operator"
|
|
15700
|
-
]
|
|
16092
|
+
signer: true
|
|
15701
16093
|
},
|
|
15702
16094
|
{
|
|
15703
16095
|
name: "token_base_program",
|
|
@@ -15747,6 +16139,83 @@ var instructions = [
|
|
|
15747
16139
|
args: [
|
|
15748
16140
|
]
|
|
15749
16141
|
},
|
|
16142
|
+
{
|
|
16143
|
+
name: "claim_protocol_pool_creation_fee",
|
|
16144
|
+
discriminator: [
|
|
16145
|
+
114,
|
|
16146
|
+
205,
|
|
16147
|
+
83,
|
|
16148
|
+
188,
|
|
16149
|
+
240,
|
|
16150
|
+
153,
|
|
16151
|
+
25,
|
|
16152
|
+
54
|
|
16153
|
+
],
|
|
16154
|
+
accounts: [
|
|
16155
|
+
{
|
|
16156
|
+
name: "config",
|
|
16157
|
+
relations: [
|
|
16158
|
+
"pool"
|
|
16159
|
+
]
|
|
16160
|
+
},
|
|
16161
|
+
{
|
|
16162
|
+
name: "pool",
|
|
16163
|
+
writable: true
|
|
16164
|
+
},
|
|
16165
|
+
{
|
|
16166
|
+
name: "claim_fee_operator",
|
|
16167
|
+
docs: [
|
|
16168
|
+
"Claim fee operator"
|
|
16169
|
+
]
|
|
16170
|
+
},
|
|
16171
|
+
{
|
|
16172
|
+
name: "signer",
|
|
16173
|
+
docs: [
|
|
16174
|
+
"Operator"
|
|
16175
|
+
],
|
|
16176
|
+
signer: true
|
|
16177
|
+
},
|
|
16178
|
+
{
|
|
16179
|
+
name: "treasury",
|
|
16180
|
+
writable: true,
|
|
16181
|
+
address: "4EWqcx3aNZmMetCnxwLYwyNjan6XLGp3Ca2W316vrSjv"
|
|
16182
|
+
},
|
|
16183
|
+
{
|
|
16184
|
+
name: "event_authority",
|
|
16185
|
+
pda: {
|
|
16186
|
+
seeds: [
|
|
16187
|
+
{
|
|
16188
|
+
kind: "const",
|
|
16189
|
+
value: [
|
|
16190
|
+
95,
|
|
16191
|
+
95,
|
|
16192
|
+
101,
|
|
16193
|
+
118,
|
|
16194
|
+
101,
|
|
16195
|
+
110,
|
|
16196
|
+
116,
|
|
16197
|
+
95,
|
|
16198
|
+
97,
|
|
16199
|
+
117,
|
|
16200
|
+
116,
|
|
16201
|
+
104,
|
|
16202
|
+
111,
|
|
16203
|
+
114,
|
|
16204
|
+
105,
|
|
16205
|
+
116,
|
|
16206
|
+
121
|
|
16207
|
+
]
|
|
16208
|
+
}
|
|
16209
|
+
]
|
|
16210
|
+
}
|
|
16211
|
+
},
|
|
16212
|
+
{
|
|
16213
|
+
name: "program"
|
|
16214
|
+
}
|
|
16215
|
+
],
|
|
16216
|
+
args: [
|
|
16217
|
+
]
|
|
16218
|
+
},
|
|
15750
16219
|
{
|
|
15751
16220
|
name: "claim_trading_fee",
|
|
15752
16221
|
discriminator: [
|
|
@@ -15828,10 +16297,7 @@ var instructions = [
|
|
|
15828
16297
|
},
|
|
15829
16298
|
{
|
|
15830
16299
|
name: "fee_claimer",
|
|
15831
|
-
signer: true
|
|
15832
|
-
relations: [
|
|
15833
|
-
"config"
|
|
15834
|
-
]
|
|
16300
|
+
signer: true
|
|
15835
16301
|
},
|
|
15836
16302
|
{
|
|
15837
16303
|
name: "token_base_program",
|
|
@@ -15890,16 +16356,16 @@ var instructions = [
|
|
|
15890
16356
|
]
|
|
15891
16357
|
},
|
|
15892
16358
|
{
|
|
15893
|
-
name: "
|
|
16359
|
+
name: "close_claim_protocol_fee_operator",
|
|
15894
16360
|
discriminator: [
|
|
15895
|
-
|
|
15896
|
-
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
|
|
15901
|
-
|
|
15902
|
-
|
|
16361
|
+
8,
|
|
16362
|
+
41,
|
|
16363
|
+
87,
|
|
16364
|
+
35,
|
|
16365
|
+
80,
|
|
16366
|
+
48,
|
|
16367
|
+
121,
|
|
16368
|
+
26
|
|
15903
16369
|
],
|
|
15904
16370
|
accounts: [
|
|
15905
16371
|
{
|
|
@@ -15911,7 +16377,7 @@ var instructions = [
|
|
|
15911
16377
|
writable: true
|
|
15912
16378
|
},
|
|
15913
16379
|
{
|
|
15914
|
-
name: "
|
|
16380
|
+
name: "signer",
|
|
15915
16381
|
signer: true
|
|
15916
16382
|
},
|
|
15917
16383
|
{
|
|
@@ -15951,19 +16417,16 @@ var instructions = [
|
|
|
15951
16417
|
]
|
|
15952
16418
|
},
|
|
15953
16419
|
{
|
|
15954
|
-
name: "
|
|
15955
|
-
docs: [
|
|
15956
|
-
"ADMIN FUNCTIONS_ ///"
|
|
15957
|
-
],
|
|
16420
|
+
name: "create_claim_protocol_fee_operator",
|
|
15958
16421
|
discriminator: [
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
16422
|
+
51,
|
|
16423
|
+
19,
|
|
16424
|
+
150,
|
|
16425
|
+
252,
|
|
16426
|
+
105,
|
|
16427
|
+
157,
|
|
16428
|
+
48,
|
|
16429
|
+
91
|
|
15967
16430
|
],
|
|
15968
16431
|
accounts: [
|
|
15969
16432
|
{
|
|
@@ -15995,10 +16458,14 @@ var instructions = [
|
|
|
15995
16458
|
}
|
|
15996
16459
|
},
|
|
15997
16460
|
{
|
|
15998
|
-
name: "operator"
|
|
16461
|
+
name: "operator"
|
|
16462
|
+
},
|
|
16463
|
+
{
|
|
16464
|
+
name: "signer",
|
|
16465
|
+
signer: true
|
|
15999
16466
|
},
|
|
16000
16467
|
{
|
|
16001
|
-
name: "
|
|
16468
|
+
name: "payer",
|
|
16002
16469
|
writable: true,
|
|
16003
16470
|
signer: true
|
|
16004
16471
|
},
|
|
@@ -16423,10 +16890,7 @@ var instructions = [
|
|
|
16423
16890
|
},
|
|
16424
16891
|
{
|
|
16425
16892
|
name: "creator",
|
|
16426
|
-
signer: true
|
|
16427
|
-
relations: [
|
|
16428
|
-
"virtual_pool"
|
|
16429
|
-
]
|
|
16893
|
+
signer: true
|
|
16430
16894
|
},
|
|
16431
16895
|
{
|
|
16432
16896
|
name: "payer",
|
|
@@ -16542,10 +17006,7 @@ var instructions = [
|
|
|
16542
17006
|
},
|
|
16543
17007
|
{
|
|
16544
17008
|
name: "creator",
|
|
16545
|
-
signer: true
|
|
16546
|
-
relations: [
|
|
16547
|
-
"virtual_pool"
|
|
16548
|
-
]
|
|
17009
|
+
signer: true
|
|
16549
17010
|
},
|
|
16550
17011
|
{
|
|
16551
17012
|
name: "token_quote_program",
|
|
@@ -17584,7 +18045,8 @@ var instructions = [
|
|
|
17584
18045
|
},
|
|
17585
18046
|
{
|
|
17586
18047
|
name: "first_position_nft_mint",
|
|
17587
|
-
writable: true
|
|
18048
|
+
writable: true,
|
|
18049
|
+
signer: true
|
|
17588
18050
|
},
|
|
17589
18051
|
{
|
|
17590
18052
|
name: "first_position_nft_account",
|
|
@@ -17597,6 +18059,7 @@ var instructions = [
|
|
|
17597
18059
|
{
|
|
17598
18060
|
name: "second_position_nft_mint",
|
|
17599
18061
|
writable: true,
|
|
18062
|
+
signer: true,
|
|
17600
18063
|
optional: true
|
|
17601
18064
|
},
|
|
17602
18065
|
{
|
|
@@ -17887,10 +18350,7 @@ var instructions = [
|
|
|
17887
18350
|
},
|
|
17888
18351
|
{
|
|
17889
18352
|
name: "fee_claimer",
|
|
17890
|
-
signer: true
|
|
17891
|
-
relations: [
|
|
17892
|
-
"config"
|
|
17893
|
-
]
|
|
18353
|
+
signer: true
|
|
17894
18354
|
},
|
|
17895
18355
|
{
|
|
17896
18356
|
name: "token_quote_program",
|
|
@@ -18073,6 +18533,19 @@ var instructions = [
|
|
|
18073
18533
|
"config"
|
|
18074
18534
|
]
|
|
18075
18535
|
},
|
|
18536
|
+
{
|
|
18537
|
+
name: "claim_fee_operator",
|
|
18538
|
+
docs: [
|
|
18539
|
+
"Claim fee operator"
|
|
18540
|
+
]
|
|
18541
|
+
},
|
|
18542
|
+
{
|
|
18543
|
+
name: "signer",
|
|
18544
|
+
docs: [
|
|
18545
|
+
"Signer"
|
|
18546
|
+
],
|
|
18547
|
+
signer: true
|
|
18548
|
+
},
|
|
18076
18549
|
{
|
|
18077
18550
|
name: "token_quote_program",
|
|
18078
18551
|
docs: [
|
|
@@ -18443,10 +18916,7 @@ var instructions = [
|
|
|
18443
18916
|
},
|
|
18444
18917
|
{
|
|
18445
18918
|
name: "creator",
|
|
18446
|
-
signer: true
|
|
18447
|
-
relations: [
|
|
18448
|
-
"virtual_pool"
|
|
18449
|
-
]
|
|
18919
|
+
signer: true
|
|
18450
18920
|
},
|
|
18451
18921
|
{
|
|
18452
18922
|
name: "new_creator"
|
|
@@ -18487,37 +18957,6 @@ var instructions = [
|
|
|
18487
18957
|
args: [
|
|
18488
18958
|
]
|
|
18489
18959
|
},
|
|
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
18960
|
{
|
|
18522
18961
|
name: "withdraw_leftover",
|
|
18523
18962
|
discriminator: [
|
|
@@ -19042,6 +19481,19 @@ var events = [
|
|
|
19042
19481
|
37
|
|
19043
19482
|
]
|
|
19044
19483
|
},
|
|
19484
|
+
{
|
|
19485
|
+
name: "EvtPartnerClaimPoolCreationFee",
|
|
19486
|
+
discriminator: [
|
|
19487
|
+
174,
|
|
19488
|
+
223,
|
|
19489
|
+
44,
|
|
19490
|
+
150,
|
|
19491
|
+
145,
|
|
19492
|
+
98,
|
|
19493
|
+
89,
|
|
19494
|
+
195
|
|
19495
|
+
]
|
|
19496
|
+
},
|
|
19045
19497
|
{
|
|
19046
19498
|
name: "EvtPartnerMetadata",
|
|
19047
19499
|
discriminator: [
|
|
@@ -19428,6 +19880,31 @@ var errors = [
|
|
|
19428
19880
|
code: 6050,
|
|
19429
19881
|
name: "AccountInvariantViolation",
|
|
19430
19882
|
msg: "Account invariant violation"
|
|
19883
|
+
},
|
|
19884
|
+
{
|
|
19885
|
+
code: 6051,
|
|
19886
|
+
name: "InvalidPoolCreationFee",
|
|
19887
|
+
msg: "Invalid pool creation fee"
|
|
19888
|
+
},
|
|
19889
|
+
{
|
|
19890
|
+
code: 6052,
|
|
19891
|
+
name: "PoolCreationFeeHasBeenClaimed",
|
|
19892
|
+
msg: "Pool creation fee has been claimed"
|
|
19893
|
+
},
|
|
19894
|
+
{
|
|
19895
|
+
code: 6053,
|
|
19896
|
+
name: "Unauthorized",
|
|
19897
|
+
msg: "Not permit to do this action"
|
|
19898
|
+
},
|
|
19899
|
+
{
|
|
19900
|
+
code: 6054,
|
|
19901
|
+
name: "ZeroPoolCreationFee",
|
|
19902
|
+
msg: "Pool creation fee is zero"
|
|
19903
|
+
},
|
|
19904
|
+
{
|
|
19905
|
+
code: 6055,
|
|
19906
|
+
name: "InvalidMigrationLockedLiquidity",
|
|
19907
|
+
msg: "Invalid migration locked liquidity"
|
|
19431
19908
|
}
|
|
19432
19909
|
];
|
|
19433
19910
|
var types = [
|
|
@@ -19613,19 +20090,19 @@ var types = [
|
|
|
19613
20090
|
type: "u8"
|
|
19614
20091
|
},
|
|
19615
20092
|
{
|
|
19616
|
-
name: "
|
|
20093
|
+
name: "partner_liquidity_percentage",
|
|
19617
20094
|
type: "u8"
|
|
19618
20095
|
},
|
|
19619
20096
|
{
|
|
19620
|
-
name: "
|
|
20097
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
19621
20098
|
type: "u8"
|
|
19622
20099
|
},
|
|
19623
20100
|
{
|
|
19624
|
-
name: "
|
|
20101
|
+
name: "creator_liquidity_percentage",
|
|
19625
20102
|
type: "u8"
|
|
19626
20103
|
},
|
|
19627
20104
|
{
|
|
19628
|
-
name: "
|
|
20105
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
19629
20106
|
type: "u8"
|
|
19630
20107
|
},
|
|
19631
20108
|
{
|
|
@@ -19682,6 +20159,29 @@ var types = [
|
|
|
19682
20159
|
}
|
|
19683
20160
|
}
|
|
19684
20161
|
},
|
|
20162
|
+
{
|
|
20163
|
+
name: "pool_creation_fee",
|
|
20164
|
+
docs: [
|
|
20165
|
+
"pool creation fee in SOL lamports value"
|
|
20166
|
+
],
|
|
20167
|
+
type: "u64"
|
|
20168
|
+
},
|
|
20169
|
+
{
|
|
20170
|
+
name: "partner_liquidity_vesting_info",
|
|
20171
|
+
type: {
|
|
20172
|
+
defined: {
|
|
20173
|
+
name: "LiquidityVestingInfoParams"
|
|
20174
|
+
}
|
|
20175
|
+
}
|
|
20176
|
+
},
|
|
20177
|
+
{
|
|
20178
|
+
name: "creator_liquidity_vesting_info",
|
|
20179
|
+
type: {
|
|
20180
|
+
defined: {
|
|
20181
|
+
name: "LiquidityVestingInfoParams"
|
|
20182
|
+
}
|
|
20183
|
+
}
|
|
20184
|
+
},
|
|
19685
20185
|
{
|
|
19686
20186
|
name: "padding",
|
|
19687
20187
|
docs: [
|
|
@@ -19689,8 +20189,8 @@ var types = [
|
|
|
19689
20189
|
],
|
|
19690
20190
|
type: {
|
|
19691
20191
|
array: [
|
|
19692
|
-
"
|
|
19693
|
-
|
|
20192
|
+
"u8",
|
|
20193
|
+
22
|
|
19694
20194
|
]
|
|
19695
20195
|
}
|
|
19696
20196
|
},
|
|
@@ -19893,7 +20393,7 @@ var types = [
|
|
|
19893
20393
|
type: "pubkey"
|
|
19894
20394
|
},
|
|
19895
20395
|
{
|
|
19896
|
-
name: "
|
|
20396
|
+
name: "receiver",
|
|
19897
20397
|
type: "pubkey"
|
|
19898
20398
|
},
|
|
19899
20399
|
{
|
|
@@ -20030,19 +20530,19 @@ var types = [
|
|
|
20030
20530
|
type: "u8"
|
|
20031
20531
|
},
|
|
20032
20532
|
{
|
|
20033
|
-
name: "
|
|
20533
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
20034
20534
|
type: "u8"
|
|
20035
20535
|
},
|
|
20036
20536
|
{
|
|
20037
|
-
name: "
|
|
20537
|
+
name: "partner_liquidity_percentage",
|
|
20038
20538
|
type: "u8"
|
|
20039
20539
|
},
|
|
20040
20540
|
{
|
|
20041
|
-
name: "
|
|
20541
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
20042
20542
|
type: "u8"
|
|
20043
20543
|
},
|
|
20044
20544
|
{
|
|
20045
|
-
name: "
|
|
20545
|
+
name: "creator_liquidity_percentage",
|
|
20046
20546
|
type: "u8"
|
|
20047
20547
|
},
|
|
20048
20548
|
{
|
|
@@ -20214,6 +20714,26 @@ var types = [
|
|
|
20214
20714
|
]
|
|
20215
20715
|
}
|
|
20216
20716
|
},
|
|
20717
|
+
{
|
|
20718
|
+
name: "EvtPartnerClaimPoolCreationFee",
|
|
20719
|
+
type: {
|
|
20720
|
+
kind: "struct",
|
|
20721
|
+
fields: [
|
|
20722
|
+
{
|
|
20723
|
+
name: "pool",
|
|
20724
|
+
type: "pubkey"
|
|
20725
|
+
},
|
|
20726
|
+
{
|
|
20727
|
+
name: "partner",
|
|
20728
|
+
type: "pubkey"
|
|
20729
|
+
},
|
|
20730
|
+
{
|
|
20731
|
+
name: "creation_fee",
|
|
20732
|
+
type: "u64"
|
|
20733
|
+
}
|
|
20734
|
+
]
|
|
20735
|
+
}
|
|
20736
|
+
},
|
|
20217
20737
|
{
|
|
20218
20738
|
name: "EvtPartnerMetadata",
|
|
20219
20739
|
docs: [
|
|
@@ -20516,6 +21036,79 @@ var types = [
|
|
|
20516
21036
|
]
|
|
20517
21037
|
}
|
|
20518
21038
|
},
|
|
21039
|
+
{
|
|
21040
|
+
name: "LiquidityVestingInfo",
|
|
21041
|
+
serialization: "bytemuck",
|
|
21042
|
+
repr: {
|
|
21043
|
+
kind: "c"
|
|
21044
|
+
},
|
|
21045
|
+
type: {
|
|
21046
|
+
kind: "struct",
|
|
21047
|
+
fields: [
|
|
21048
|
+
{
|
|
21049
|
+
name: "is_initialized",
|
|
21050
|
+
type: "u8"
|
|
21051
|
+
},
|
|
21052
|
+
{
|
|
21053
|
+
name: "vesting_percentage",
|
|
21054
|
+
type: "u8"
|
|
21055
|
+
},
|
|
21056
|
+
{
|
|
21057
|
+
name: "_padding",
|
|
21058
|
+
type: {
|
|
21059
|
+
array: [
|
|
21060
|
+
"u8",
|
|
21061
|
+
2
|
|
21062
|
+
]
|
|
21063
|
+
}
|
|
21064
|
+
},
|
|
21065
|
+
{
|
|
21066
|
+
name: "bps_per_period",
|
|
21067
|
+
type: "u16"
|
|
21068
|
+
},
|
|
21069
|
+
{
|
|
21070
|
+
name: "number_of_periods",
|
|
21071
|
+
type: "u16"
|
|
21072
|
+
},
|
|
21073
|
+
{
|
|
21074
|
+
name: "frequency",
|
|
21075
|
+
type: "u32"
|
|
21076
|
+
},
|
|
21077
|
+
{
|
|
21078
|
+
name: "cliff_duration_from_migration_time",
|
|
21079
|
+
type: "u32"
|
|
21080
|
+
}
|
|
21081
|
+
]
|
|
21082
|
+
}
|
|
21083
|
+
},
|
|
21084
|
+
{
|
|
21085
|
+
name: "LiquidityVestingInfoParams",
|
|
21086
|
+
type: {
|
|
21087
|
+
kind: "struct",
|
|
21088
|
+
fields: [
|
|
21089
|
+
{
|
|
21090
|
+
name: "vesting_percentage",
|
|
21091
|
+
type: "u8"
|
|
21092
|
+
},
|
|
21093
|
+
{
|
|
21094
|
+
name: "bps_per_period",
|
|
21095
|
+
type: "u16"
|
|
21096
|
+
},
|
|
21097
|
+
{
|
|
21098
|
+
name: "number_of_periods",
|
|
21099
|
+
type: "u16"
|
|
21100
|
+
},
|
|
21101
|
+
{
|
|
21102
|
+
name: "cliff_duration_from_migration_time",
|
|
21103
|
+
type: "u32"
|
|
21104
|
+
},
|
|
21105
|
+
{
|
|
21106
|
+
name: "frequency",
|
|
21107
|
+
type: "u32"
|
|
21108
|
+
}
|
|
21109
|
+
]
|
|
21110
|
+
}
|
|
21111
|
+
},
|
|
20519
21112
|
{
|
|
20520
21113
|
name: "LockEscrow",
|
|
20521
21114
|
docs: [
|
|
@@ -20646,7 +21239,7 @@ var types = [
|
|
|
20646
21239
|
{
|
|
20647
21240
|
name: "padding_0",
|
|
20648
21241
|
docs: [
|
|
20649
|
-
"!!! BE CAREFUL to use
|
|
21242
|
+
"!!! BE CAREFUL to use tombstone field, previous is pool creator"
|
|
20650
21243
|
],
|
|
20651
21244
|
type: {
|
|
20652
21245
|
array: [
|
|
@@ -20670,30 +21263,30 @@ var types = [
|
|
|
20670
21263
|
type: "pubkey"
|
|
20671
21264
|
},
|
|
20672
21265
|
{
|
|
20673
|
-
name: "
|
|
21266
|
+
name: "partner_locked_liquidity",
|
|
20674
21267
|
docs: [
|
|
20675
|
-
"partner locked
|
|
21268
|
+
"partner locked liquidity"
|
|
20676
21269
|
],
|
|
20677
21270
|
type: "u64"
|
|
20678
21271
|
},
|
|
20679
21272
|
{
|
|
20680
|
-
name: "
|
|
21273
|
+
name: "partner_liquidity",
|
|
20681
21274
|
docs: [
|
|
20682
|
-
"partner
|
|
21275
|
+
"partner liquidity"
|
|
20683
21276
|
],
|
|
20684
21277
|
type: "u64"
|
|
20685
21278
|
},
|
|
20686
21279
|
{
|
|
20687
|
-
name: "
|
|
21280
|
+
name: "creator_locked_liquidity",
|
|
20688
21281
|
docs: [
|
|
20689
|
-
"creator locked
|
|
21282
|
+
"creator locked liquidity"
|
|
20690
21283
|
],
|
|
20691
21284
|
type: "u64"
|
|
20692
21285
|
},
|
|
20693
21286
|
{
|
|
20694
|
-
name: "
|
|
21287
|
+
name: "creator_liquidity",
|
|
20695
21288
|
docs: [
|
|
20696
|
-
"creator
|
|
21289
|
+
"creator liquidity"
|
|
20697
21290
|
],
|
|
20698
21291
|
type: "u64"
|
|
20699
21292
|
},
|
|
@@ -20707,28 +21300,28 @@ var types = [
|
|
|
20707
21300
|
{
|
|
20708
21301
|
name: "creator_locked_status",
|
|
20709
21302
|
docs: [
|
|
20710
|
-
"flag to check whether
|
|
21303
|
+
"flag to check whether liquidity token is locked for creator"
|
|
20711
21304
|
],
|
|
20712
21305
|
type: "u8"
|
|
20713
21306
|
},
|
|
20714
21307
|
{
|
|
20715
21308
|
name: "partner_locked_status",
|
|
20716
21309
|
docs: [
|
|
20717
|
-
"flag to check whether
|
|
21310
|
+
"flag to check whether liquidity token is locked for partner"
|
|
20718
21311
|
],
|
|
20719
21312
|
type: "u8"
|
|
20720
21313
|
},
|
|
20721
21314
|
{
|
|
20722
21315
|
name: "creator_claim_status",
|
|
20723
21316
|
docs: [
|
|
20724
|
-
"flag to check whether creator has claimed
|
|
21317
|
+
"flag to check whether creator has claimed liquidity token"
|
|
20725
21318
|
],
|
|
20726
21319
|
type: "u8"
|
|
20727
21320
|
},
|
|
20728
21321
|
{
|
|
20729
21322
|
name: "partner_claim_status",
|
|
20730
21323
|
docs: [
|
|
20731
|
-
"flag to check whether partner has claimed
|
|
21324
|
+
"flag to check whether partner has claimed liquidity token"
|
|
20732
21325
|
],
|
|
20733
21326
|
type: "u8"
|
|
20734
21327
|
},
|
|
@@ -20875,6 +21468,41 @@ var types = [
|
|
|
20875
21468
|
}
|
|
20876
21469
|
}
|
|
20877
21470
|
},
|
|
21471
|
+
{
|
|
21472
|
+
name: "partner_liquidity_vesting_info",
|
|
21473
|
+
type: {
|
|
21474
|
+
defined: {
|
|
21475
|
+
name: "LiquidityVestingInfo"
|
|
21476
|
+
}
|
|
21477
|
+
}
|
|
21478
|
+
},
|
|
21479
|
+
{
|
|
21480
|
+
name: "creator_liquidity_vesting_info",
|
|
21481
|
+
type: {
|
|
21482
|
+
defined: {
|
|
21483
|
+
name: "LiquidityVestingInfo"
|
|
21484
|
+
}
|
|
21485
|
+
}
|
|
21486
|
+
},
|
|
21487
|
+
{
|
|
21488
|
+
name: "padding_0",
|
|
21489
|
+
docs: [
|
|
21490
|
+
"Padding for future use"
|
|
21491
|
+
],
|
|
21492
|
+
type: {
|
|
21493
|
+
array: [
|
|
21494
|
+
"u8",
|
|
21495
|
+
14
|
|
21496
|
+
]
|
|
21497
|
+
}
|
|
21498
|
+
},
|
|
21499
|
+
{
|
|
21500
|
+
name: "padding_1",
|
|
21501
|
+
docs: [
|
|
21502
|
+
"Previously was protocol and referral fee percent. Beware of tombstone."
|
|
21503
|
+
],
|
|
21504
|
+
type: "u16"
|
|
21505
|
+
},
|
|
20878
21506
|
{
|
|
20879
21507
|
name: "collect_fee_mode",
|
|
20880
21508
|
docs: [
|
|
@@ -20925,30 +21553,30 @@ var types = [
|
|
|
20925
21553
|
type: "u8"
|
|
20926
21554
|
},
|
|
20927
21555
|
{
|
|
20928
|
-
name: "
|
|
21556
|
+
name: "partner_permanent_locked_liquidity_percentage",
|
|
20929
21557
|
docs: [
|
|
20930
|
-
"partner locked
|
|
21558
|
+
"partner locked liquidity percentage"
|
|
20931
21559
|
],
|
|
20932
21560
|
type: "u8"
|
|
20933
21561
|
},
|
|
20934
21562
|
{
|
|
20935
|
-
name: "
|
|
21563
|
+
name: "partner_liquidity_percentage",
|
|
20936
21564
|
docs: [
|
|
20937
|
-
"partner
|
|
21565
|
+
"partner liquidity percentage"
|
|
20938
21566
|
],
|
|
20939
21567
|
type: "u8"
|
|
20940
21568
|
},
|
|
20941
21569
|
{
|
|
20942
|
-
name: "
|
|
21570
|
+
name: "creator_permanent_locked_liquidity_percentage",
|
|
20943
21571
|
docs: [
|
|
20944
21572
|
"creator post migration fee percentage"
|
|
20945
21573
|
],
|
|
20946
21574
|
type: "u8"
|
|
20947
21575
|
},
|
|
20948
21576
|
{
|
|
20949
|
-
name: "
|
|
21577
|
+
name: "creator_liquidity_percentage",
|
|
20950
21578
|
docs: [
|
|
20951
|
-
"creator
|
|
21579
|
+
"creator liquidity percentage"
|
|
20952
21580
|
],
|
|
20953
21581
|
type: "u8"
|
|
20954
21582
|
},
|
|
@@ -20995,10 +21623,7 @@ var types = [
|
|
|
20995
21623
|
type: "u8"
|
|
20996
21624
|
},
|
|
20997
21625
|
{
|
|
20998
|
-
name: "
|
|
20999
|
-
docs: [
|
|
21000
|
-
"padding 0"
|
|
21001
|
-
],
|
|
21626
|
+
name: "padding_2",
|
|
21002
21627
|
type: {
|
|
21003
21628
|
array: [
|
|
21004
21629
|
"u8",
|
|
@@ -21088,10 +21713,17 @@ var types = [
|
|
|
21088
21713
|
type: {
|
|
21089
21714
|
array: [
|
|
21090
21715
|
"u8",
|
|
21091
|
-
|
|
21716
|
+
4
|
|
21092
21717
|
]
|
|
21093
21718
|
}
|
|
21094
21719
|
},
|
|
21720
|
+
{
|
|
21721
|
+
name: "pool_creation_fee",
|
|
21722
|
+
docs: [
|
|
21723
|
+
"pool creation fee in lamports value"
|
|
21724
|
+
],
|
|
21725
|
+
type: "u64"
|
|
21726
|
+
},
|
|
21095
21727
|
{
|
|
21096
21728
|
name: "_padding_2",
|
|
21097
21729
|
docs: [
|
|
@@ -21211,32 +21843,6 @@ var types = [
|
|
|
21211
21843
|
name: "DynamicFeeConfig"
|
|
21212
21844
|
}
|
|
21213
21845
|
}
|
|
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
21846
|
}
|
|
21241
21847
|
]
|
|
21242
21848
|
}
|
|
@@ -21612,16 +22218,29 @@ var types = [
|
|
|
21612
22218
|
],
|
|
21613
22219
|
type: "u64"
|
|
21614
22220
|
},
|
|
22221
|
+
{
|
|
22222
|
+
name: "legacy_creation_fee_bits",
|
|
22223
|
+
docs: [
|
|
22224
|
+
"legacy creation fee bits, we dont use this now"
|
|
22225
|
+
],
|
|
22226
|
+
type: "u8"
|
|
22227
|
+
},
|
|
21615
22228
|
{
|
|
21616
22229
|
name: "creation_fee_bits",
|
|
22230
|
+
docs: [
|
|
22231
|
+
"pool creation fee claim status"
|
|
22232
|
+
],
|
|
21617
22233
|
type: "u8"
|
|
21618
22234
|
},
|
|
21619
22235
|
{
|
|
21620
22236
|
name: "_padding_0",
|
|
22237
|
+
docs: [
|
|
22238
|
+
"Padding for further use"
|
|
22239
|
+
],
|
|
21621
22240
|
type: {
|
|
21622
22241
|
array: [
|
|
21623
22242
|
"u8",
|
|
21624
|
-
|
|
22243
|
+
6
|
|
21625
22244
|
]
|
|
21626
22245
|
}
|
|
21627
22246
|
},
|
|
@@ -21739,4 +22358,4 @@ var idl = {
|
|
|
21739
22358
|
types: types
|
|
21740
22359
|
};
|
|
21741
22360
|
|
|
21742
|
-
export { ActivationType, BASE_ADDRESS,
|
|
22361
|
+
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 };
|