@pump-fun/pump-sdk 1.31.0 → 1.32.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 +34 -0
- package/dist/esm/index.js +368 -285
- package/dist/index.d.mts +1973 -1353
- package/dist/index.d.ts +1973 -1353
- package/dist/index.js +368 -285
- package/package.json +1 -1
- package/src/idl/pump_fees.json +348 -284
- package/src/idl/pump_fees.ts +2496 -1897
- package/src/index.ts +1 -0
- package/src/sdk.ts +35 -1
package/dist/esm/index.js
CHANGED
|
@@ -16405,7 +16405,7 @@ var pump_fees_default = {
|
|
|
16405
16405
|
{
|
|
16406
16406
|
name: "reset_fee_sharing_config",
|
|
16407
16407
|
docs: [
|
|
16408
|
-
"Reset Fee Sharing Config
|
|
16408
|
+
"Reset Fee Sharing Config and distribute pending fees first"
|
|
16409
16409
|
],
|
|
16410
16410
|
discriminator: [
|
|
16411
16411
|
10,
|
|
@@ -16418,6 +16418,42 @@ var pump_fees_default = {
|
|
|
16418
16418
|
186
|
|
16419
16419
|
],
|
|
16420
16420
|
accounts: [
|
|
16421
|
+
{
|
|
16422
|
+
name: "new_admin"
|
|
16423
|
+
},
|
|
16424
|
+
{
|
|
16425
|
+
name: "event_authority",
|
|
16426
|
+
pda: {
|
|
16427
|
+
seeds: [
|
|
16428
|
+
{
|
|
16429
|
+
kind: "const",
|
|
16430
|
+
value: [
|
|
16431
|
+
95,
|
|
16432
|
+
95,
|
|
16433
|
+
101,
|
|
16434
|
+
118,
|
|
16435
|
+
101,
|
|
16436
|
+
110,
|
|
16437
|
+
116,
|
|
16438
|
+
95,
|
|
16439
|
+
97,
|
|
16440
|
+
117,
|
|
16441
|
+
116,
|
|
16442
|
+
104,
|
|
16443
|
+
111,
|
|
16444
|
+
114,
|
|
16445
|
+
105,
|
|
16446
|
+
116,
|
|
16447
|
+
121
|
|
16448
|
+
]
|
|
16449
|
+
}
|
|
16450
|
+
]
|
|
16451
|
+
}
|
|
16452
|
+
},
|
|
16453
|
+
{
|
|
16454
|
+
name: "program",
|
|
16455
|
+
address: "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
|
|
16456
|
+
},
|
|
16421
16457
|
{
|
|
16422
16458
|
name: "authority",
|
|
16423
16459
|
signer: true
|
|
@@ -16477,9 +16513,6 @@ var pump_fees_default = {
|
|
|
16477
16513
|
}
|
|
16478
16514
|
}
|
|
16479
16515
|
},
|
|
16480
|
-
{
|
|
16481
|
-
name: "new_admin"
|
|
16482
|
-
},
|
|
16483
16516
|
{
|
|
16484
16517
|
name: "mint",
|
|
16485
16518
|
relations: [
|
|
@@ -16518,74 +16551,97 @@ var pump_fees_default = {
|
|
|
16518
16551
|
}
|
|
16519
16552
|
},
|
|
16520
16553
|
{
|
|
16521
|
-
name: "
|
|
16554
|
+
name: "bonding_curve",
|
|
16522
16555
|
pda: {
|
|
16523
16556
|
seeds: [
|
|
16524
16557
|
{
|
|
16525
16558
|
kind: "const",
|
|
16526
16559
|
value: [
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
101,
|
|
16530
|
-
118,
|
|
16531
|
-
101,
|
|
16560
|
+
98,
|
|
16561
|
+
111,
|
|
16532
16562
|
110,
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16563
|
+
100,
|
|
16564
|
+
105,
|
|
16565
|
+
110,
|
|
16566
|
+
103,
|
|
16567
|
+
45,
|
|
16568
|
+
99,
|
|
16536
16569
|
117,
|
|
16537
|
-
116,
|
|
16538
|
-
104,
|
|
16539
|
-
111,
|
|
16540
16570
|
114,
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
121
|
|
16571
|
+
118,
|
|
16572
|
+
101
|
|
16544
16573
|
]
|
|
16574
|
+
},
|
|
16575
|
+
{
|
|
16576
|
+
kind: "account",
|
|
16577
|
+
path: "mint"
|
|
16545
16578
|
}
|
|
16546
|
-
]
|
|
16579
|
+
],
|
|
16580
|
+
program: {
|
|
16581
|
+
kind: "const",
|
|
16582
|
+
value: [
|
|
16583
|
+
1,
|
|
16584
|
+
86,
|
|
16585
|
+
224,
|
|
16586
|
+
246,
|
|
16587
|
+
147,
|
|
16588
|
+
102,
|
|
16589
|
+
90,
|
|
16590
|
+
207,
|
|
16591
|
+
68,
|
|
16592
|
+
219,
|
|
16593
|
+
21,
|
|
16594
|
+
104,
|
|
16595
|
+
191,
|
|
16596
|
+
23,
|
|
16597
|
+
91,
|
|
16598
|
+
170,
|
|
16599
|
+
81,
|
|
16600
|
+
137,
|
|
16601
|
+
203,
|
|
16602
|
+
151,
|
|
16603
|
+
245,
|
|
16604
|
+
210,
|
|
16605
|
+
255,
|
|
16606
|
+
59,
|
|
16607
|
+
101,
|
|
16608
|
+
93,
|
|
16609
|
+
43,
|
|
16610
|
+
182,
|
|
16611
|
+
253,
|
|
16612
|
+
109,
|
|
16613
|
+
24,
|
|
16614
|
+
176
|
|
16615
|
+
]
|
|
16616
|
+
}
|
|
16547
16617
|
}
|
|
16548
16618
|
},
|
|
16549
16619
|
{
|
|
16550
|
-
name: "
|
|
16551
|
-
|
|
16552
|
-
],
|
|
16553
|
-
args: []
|
|
16554
|
-
},
|
|
16555
|
-
{
|
|
16556
|
-
name: "revoke_fee_sharing_authority",
|
|
16557
|
-
docs: [
|
|
16558
|
-
"Revoke Fee Sharing Authority"
|
|
16559
|
-
],
|
|
16560
|
-
discriminator: [
|
|
16561
|
-
18,
|
|
16562
|
-
233,
|
|
16563
|
-
158,
|
|
16564
|
-
39,
|
|
16565
|
-
185,
|
|
16566
|
-
207,
|
|
16567
|
-
58,
|
|
16568
|
-
104
|
|
16569
|
-
],
|
|
16570
|
-
accounts: [
|
|
16571
|
-
{
|
|
16572
|
-
name: "authority",
|
|
16573
|
-
signer: true
|
|
16574
|
-
},
|
|
16575
|
-
{
|
|
16576
|
-
name: "global",
|
|
16620
|
+
name: "pump_creator_vault",
|
|
16621
|
+
writable: true,
|
|
16577
16622
|
pda: {
|
|
16578
16623
|
seeds: [
|
|
16579
16624
|
{
|
|
16580
16625
|
kind: "const",
|
|
16581
16626
|
value: [
|
|
16582
|
-
|
|
16583
|
-
|
|
16627
|
+
99,
|
|
16628
|
+
114,
|
|
16629
|
+
101,
|
|
16630
|
+
97,
|
|
16631
|
+
116,
|
|
16584
16632
|
111,
|
|
16585
|
-
|
|
16633
|
+
114,
|
|
16634
|
+
45,
|
|
16635
|
+
118,
|
|
16586
16636
|
97,
|
|
16587
|
-
|
|
16637
|
+
117,
|
|
16638
|
+
108,
|
|
16639
|
+
116
|
|
16588
16640
|
]
|
|
16641
|
+
},
|
|
16642
|
+
{
|
|
16643
|
+
kind: "account",
|
|
16644
|
+
path: "sharing_config"
|
|
16589
16645
|
}
|
|
16590
16646
|
],
|
|
16591
16647
|
program: {
|
|
@@ -16628,44 +16684,85 @@ var pump_fees_default = {
|
|
|
16628
16684
|
}
|
|
16629
16685
|
},
|
|
16630
16686
|
{
|
|
16631
|
-
name: "
|
|
16632
|
-
|
|
16633
|
-
"sharing_config"
|
|
16634
|
-
]
|
|
16687
|
+
name: "system_program",
|
|
16688
|
+
address: "11111111111111111111111111111111"
|
|
16635
16689
|
},
|
|
16636
16690
|
{
|
|
16637
|
-
name: "
|
|
16638
|
-
|
|
16691
|
+
name: "pump_program",
|
|
16692
|
+
address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
|
16693
|
+
},
|
|
16694
|
+
{
|
|
16695
|
+
name: "pump_event_authority",
|
|
16639
16696
|
pda: {
|
|
16640
16697
|
seeds: [
|
|
16641
16698
|
{
|
|
16642
16699
|
kind: "const",
|
|
16643
16700
|
value: [
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16701
|
+
95,
|
|
16702
|
+
95,
|
|
16703
|
+
101,
|
|
16704
|
+
118,
|
|
16705
|
+
101,
|
|
16649
16706
|
110,
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16707
|
+
116,
|
|
16708
|
+
95,
|
|
16709
|
+
97,
|
|
16710
|
+
117,
|
|
16711
|
+
116,
|
|
16712
|
+
104,
|
|
16653
16713
|
111,
|
|
16654
|
-
|
|
16655
|
-
102,
|
|
16714
|
+
114,
|
|
16656
16715
|
105,
|
|
16657
|
-
|
|
16716
|
+
116,
|
|
16717
|
+
121
|
|
16658
16718
|
]
|
|
16659
|
-
},
|
|
16660
|
-
{
|
|
16661
|
-
kind: "account",
|
|
16662
|
-
path: "mint"
|
|
16663
16719
|
}
|
|
16664
|
-
]
|
|
16720
|
+
],
|
|
16721
|
+
program: {
|
|
16722
|
+
kind: "const",
|
|
16723
|
+
value: [
|
|
16724
|
+
1,
|
|
16725
|
+
86,
|
|
16726
|
+
224,
|
|
16727
|
+
246,
|
|
16728
|
+
147,
|
|
16729
|
+
102,
|
|
16730
|
+
90,
|
|
16731
|
+
207,
|
|
16732
|
+
68,
|
|
16733
|
+
219,
|
|
16734
|
+
21,
|
|
16735
|
+
104,
|
|
16736
|
+
191,
|
|
16737
|
+
23,
|
|
16738
|
+
91,
|
|
16739
|
+
170,
|
|
16740
|
+
81,
|
|
16741
|
+
137,
|
|
16742
|
+
203,
|
|
16743
|
+
151,
|
|
16744
|
+
245,
|
|
16745
|
+
210,
|
|
16746
|
+
255,
|
|
16747
|
+
59,
|
|
16748
|
+
101,
|
|
16749
|
+
93,
|
|
16750
|
+
43,
|
|
16751
|
+
182,
|
|
16752
|
+
253,
|
|
16753
|
+
109,
|
|
16754
|
+
24,
|
|
16755
|
+
176
|
|
16756
|
+
]
|
|
16757
|
+
}
|
|
16665
16758
|
}
|
|
16666
16759
|
},
|
|
16667
16760
|
{
|
|
16668
|
-
name: "
|
|
16761
|
+
name: "pump_amm_program",
|
|
16762
|
+
address: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
|
|
16763
|
+
},
|
|
16764
|
+
{
|
|
16765
|
+
name: "amm_event_authority",
|
|
16669
16766
|
pda: {
|
|
16670
16767
|
seeds: [
|
|
16671
16768
|
{
|
|
@@ -16690,15 +16787,150 @@ var pump_fees_default = {
|
|
|
16690
16787
|
121
|
|
16691
16788
|
]
|
|
16692
16789
|
}
|
|
16693
|
-
]
|
|
16790
|
+
],
|
|
16791
|
+
program: {
|
|
16792
|
+
kind: "const",
|
|
16793
|
+
value: [
|
|
16794
|
+
12,
|
|
16795
|
+
20,
|
|
16796
|
+
222,
|
|
16797
|
+
252,
|
|
16798
|
+
130,
|
|
16799
|
+
94,
|
|
16800
|
+
198,
|
|
16801
|
+
118,
|
|
16802
|
+
148,
|
|
16803
|
+
37,
|
|
16804
|
+
8,
|
|
16805
|
+
24,
|
|
16806
|
+
187,
|
|
16807
|
+
101,
|
|
16808
|
+
64,
|
|
16809
|
+
101,
|
|
16810
|
+
244,
|
|
16811
|
+
41,
|
|
16812
|
+
141,
|
|
16813
|
+
49,
|
|
16814
|
+
86,
|
|
16815
|
+
213,
|
|
16816
|
+
113,
|
|
16817
|
+
180,
|
|
16818
|
+
212,
|
|
16819
|
+
248,
|
|
16820
|
+
9,
|
|
16821
|
+
12,
|
|
16822
|
+
24,
|
|
16823
|
+
233,
|
|
16824
|
+
168,
|
|
16825
|
+
99
|
|
16826
|
+
]
|
|
16827
|
+
}
|
|
16828
|
+
}
|
|
16829
|
+
},
|
|
16830
|
+
{
|
|
16831
|
+
name: "wsol_mint",
|
|
16832
|
+
address: "So11111111111111111111111111111111111111112"
|
|
16833
|
+
},
|
|
16834
|
+
{
|
|
16835
|
+
name: "token_program",
|
|
16836
|
+
address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
16837
|
+
},
|
|
16838
|
+
{
|
|
16839
|
+
name: "associated_token_program",
|
|
16840
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
16841
|
+
},
|
|
16842
|
+
{
|
|
16843
|
+
name: "coin_creator_vault_authority",
|
|
16844
|
+
writable: true,
|
|
16845
|
+
pda: {
|
|
16846
|
+
seeds: [
|
|
16847
|
+
{
|
|
16848
|
+
kind: "const",
|
|
16849
|
+
value: [
|
|
16850
|
+
99,
|
|
16851
|
+
114,
|
|
16852
|
+
101,
|
|
16853
|
+
97,
|
|
16854
|
+
116,
|
|
16855
|
+
111,
|
|
16856
|
+
114,
|
|
16857
|
+
95,
|
|
16858
|
+
118,
|
|
16859
|
+
97,
|
|
16860
|
+
117,
|
|
16861
|
+
108,
|
|
16862
|
+
116
|
|
16863
|
+
]
|
|
16864
|
+
},
|
|
16865
|
+
{
|
|
16866
|
+
kind: "account",
|
|
16867
|
+
path: "sharing_config"
|
|
16868
|
+
}
|
|
16869
|
+
],
|
|
16870
|
+
program: {
|
|
16871
|
+
kind: "const",
|
|
16872
|
+
value: [
|
|
16873
|
+
12,
|
|
16874
|
+
20,
|
|
16875
|
+
222,
|
|
16876
|
+
252,
|
|
16877
|
+
130,
|
|
16878
|
+
94,
|
|
16879
|
+
198,
|
|
16880
|
+
118,
|
|
16881
|
+
148,
|
|
16882
|
+
37,
|
|
16883
|
+
8,
|
|
16884
|
+
24,
|
|
16885
|
+
187,
|
|
16886
|
+
101,
|
|
16887
|
+
64,
|
|
16888
|
+
101,
|
|
16889
|
+
244,
|
|
16890
|
+
41,
|
|
16891
|
+
141,
|
|
16892
|
+
49,
|
|
16893
|
+
86,
|
|
16894
|
+
213,
|
|
16895
|
+
113,
|
|
16896
|
+
180,
|
|
16897
|
+
212,
|
|
16898
|
+
248,
|
|
16899
|
+
9,
|
|
16900
|
+
12,
|
|
16901
|
+
24,
|
|
16902
|
+
233,
|
|
16903
|
+
168,
|
|
16904
|
+
99
|
|
16905
|
+
]
|
|
16906
|
+
}
|
|
16694
16907
|
}
|
|
16695
16908
|
},
|
|
16696
16909
|
{
|
|
16697
|
-
name: "
|
|
16910
|
+
name: "coin_creator_vault_ata",
|
|
16911
|
+
writable: true
|
|
16698
16912
|
}
|
|
16699
16913
|
],
|
|
16700
16914
|
args: []
|
|
16701
16915
|
},
|
|
16916
|
+
{
|
|
16917
|
+
name: "revoke_fee_sharing_authority",
|
|
16918
|
+
docs: [
|
|
16919
|
+
"Revoke Fee Sharing Authority"
|
|
16920
|
+
],
|
|
16921
|
+
discriminator: [
|
|
16922
|
+
18,
|
|
16923
|
+
233,
|
|
16924
|
+
158,
|
|
16925
|
+
39,
|
|
16926
|
+
185,
|
|
16927
|
+
207,
|
|
16928
|
+
58,
|
|
16929
|
+
104
|
|
16930
|
+
],
|
|
16931
|
+
accounts: [],
|
|
16932
|
+
args: []
|
|
16933
|
+
},
|
|
16702
16934
|
{
|
|
16703
16935
|
name: "set_authority",
|
|
16704
16936
|
discriminator: [
|
|
@@ -17082,139 +17314,7 @@ var pump_fees_default = {
|
|
|
17082
17314
|
210,
|
|
17083
17315
|
96
|
|
17084
17316
|
],
|
|
17085
|
-
accounts: [
|
|
17086
|
-
{
|
|
17087
|
-
name: "authority",
|
|
17088
|
-
signer: true
|
|
17089
|
-
},
|
|
17090
|
-
{
|
|
17091
|
-
name: "global",
|
|
17092
|
-
pda: {
|
|
17093
|
-
seeds: [
|
|
17094
|
-
{
|
|
17095
|
-
kind: "const",
|
|
17096
|
-
value: [
|
|
17097
|
-
103,
|
|
17098
|
-
108,
|
|
17099
|
-
111,
|
|
17100
|
-
98,
|
|
17101
|
-
97,
|
|
17102
|
-
108
|
|
17103
|
-
]
|
|
17104
|
-
}
|
|
17105
|
-
],
|
|
17106
|
-
program: {
|
|
17107
|
-
kind: "const",
|
|
17108
|
-
value: [
|
|
17109
|
-
1,
|
|
17110
|
-
86,
|
|
17111
|
-
224,
|
|
17112
|
-
246,
|
|
17113
|
-
147,
|
|
17114
|
-
102,
|
|
17115
|
-
90,
|
|
17116
|
-
207,
|
|
17117
|
-
68,
|
|
17118
|
-
219,
|
|
17119
|
-
21,
|
|
17120
|
-
104,
|
|
17121
|
-
191,
|
|
17122
|
-
23,
|
|
17123
|
-
91,
|
|
17124
|
-
170,
|
|
17125
|
-
81,
|
|
17126
|
-
137,
|
|
17127
|
-
203,
|
|
17128
|
-
151,
|
|
17129
|
-
245,
|
|
17130
|
-
210,
|
|
17131
|
-
255,
|
|
17132
|
-
59,
|
|
17133
|
-
101,
|
|
17134
|
-
93,
|
|
17135
|
-
43,
|
|
17136
|
-
182,
|
|
17137
|
-
253,
|
|
17138
|
-
109,
|
|
17139
|
-
24,
|
|
17140
|
-
176
|
|
17141
|
-
]
|
|
17142
|
-
}
|
|
17143
|
-
}
|
|
17144
|
-
},
|
|
17145
|
-
{
|
|
17146
|
-
name: "mint",
|
|
17147
|
-
relations: [
|
|
17148
|
-
"sharing_config"
|
|
17149
|
-
]
|
|
17150
|
-
},
|
|
17151
|
-
{
|
|
17152
|
-
name: "sharing_config",
|
|
17153
|
-
writable: true,
|
|
17154
|
-
pda: {
|
|
17155
|
-
seeds: [
|
|
17156
|
-
{
|
|
17157
|
-
kind: "const",
|
|
17158
|
-
value: [
|
|
17159
|
-
115,
|
|
17160
|
-
104,
|
|
17161
|
-
97,
|
|
17162
|
-
114,
|
|
17163
|
-
105,
|
|
17164
|
-
110,
|
|
17165
|
-
103,
|
|
17166
|
-
45,
|
|
17167
|
-
99,
|
|
17168
|
-
111,
|
|
17169
|
-
110,
|
|
17170
|
-
102,
|
|
17171
|
-
105,
|
|
17172
|
-
103
|
|
17173
|
-
]
|
|
17174
|
-
},
|
|
17175
|
-
{
|
|
17176
|
-
kind: "account",
|
|
17177
|
-
path: "mint"
|
|
17178
|
-
}
|
|
17179
|
-
]
|
|
17180
|
-
}
|
|
17181
|
-
},
|
|
17182
|
-
{
|
|
17183
|
-
name: "new_admin"
|
|
17184
|
-
},
|
|
17185
|
-
{
|
|
17186
|
-
name: "event_authority",
|
|
17187
|
-
pda: {
|
|
17188
|
-
seeds: [
|
|
17189
|
-
{
|
|
17190
|
-
kind: "const",
|
|
17191
|
-
value: [
|
|
17192
|
-
95,
|
|
17193
|
-
95,
|
|
17194
|
-
101,
|
|
17195
|
-
118,
|
|
17196
|
-
101,
|
|
17197
|
-
110,
|
|
17198
|
-
116,
|
|
17199
|
-
95,
|
|
17200
|
-
97,
|
|
17201
|
-
117,
|
|
17202
|
-
116,
|
|
17203
|
-
104,
|
|
17204
|
-
111,
|
|
17205
|
-
114,
|
|
17206
|
-
105,
|
|
17207
|
-
116,
|
|
17208
|
-
121
|
|
17209
|
-
]
|
|
17210
|
-
}
|
|
17211
|
-
]
|
|
17212
|
-
}
|
|
17213
|
-
},
|
|
17214
|
-
{
|
|
17215
|
-
name: "program"
|
|
17216
|
-
}
|
|
17217
|
-
],
|
|
17317
|
+
accounts: [],
|
|
17218
17318
|
args: []
|
|
17219
17319
|
},
|
|
17220
17320
|
{
|
|
@@ -18184,19 +18284,6 @@ var pump_fees_default = {
|
|
|
18184
18284
|
243
|
|
18185
18285
|
]
|
|
18186
18286
|
},
|
|
18187
|
-
{
|
|
18188
|
-
name: "RevokeFeeSharingAuthorityEvent",
|
|
18189
|
-
discriminator: [
|
|
18190
|
-
114,
|
|
18191
|
-
23,
|
|
18192
|
-
101,
|
|
18193
|
-
60,
|
|
18194
|
-
14,
|
|
18195
|
-
190,
|
|
18196
|
-
153,
|
|
18197
|
-
62
|
|
18198
|
-
]
|
|
18199
|
-
},
|
|
18200
18287
|
{
|
|
18201
18288
|
name: "SetAuthorityEvent",
|
|
18202
18289
|
discriminator: [
|
|
@@ -18275,19 +18362,6 @@ var pump_fees_default = {
|
|
|
18275
18362
|
169
|
|
18276
18363
|
]
|
|
18277
18364
|
},
|
|
18278
|
-
{
|
|
18279
|
-
name: "TransferFeeSharingAuthorityEvent",
|
|
18280
|
-
discriminator: [
|
|
18281
|
-
124,
|
|
18282
|
-
143,
|
|
18283
|
-
198,
|
|
18284
|
-
245,
|
|
18285
|
-
77,
|
|
18286
|
-
184,
|
|
18287
|
-
8,
|
|
18288
|
-
236
|
|
18289
|
-
]
|
|
18290
|
-
},
|
|
18291
18365
|
{
|
|
18292
18366
|
name: "UpdateAdminEvent",
|
|
18293
18367
|
discriminator: [
|
|
@@ -18390,7 +18464,7 @@ var pump_fees_default = {
|
|
|
18390
18464
|
{
|
|
18391
18465
|
code: 6009,
|
|
18392
18466
|
name: "SharingConfigAdminRevoked",
|
|
18393
|
-
msg: "Sharing config
|
|
18467
|
+
msg: "Sharing config authority has been revoked - sharing config can only be updated once"
|
|
18394
18468
|
},
|
|
18395
18469
|
{
|
|
18396
18470
|
code: 6010,
|
|
@@ -18456,6 +18530,16 @@ var pump_fees_default = {
|
|
|
18456
18530
|
code: 6022,
|
|
18457
18531
|
name: "UserIdTooLong",
|
|
18458
18532
|
msg: "User ID exceeds maximum length"
|
|
18533
|
+
},
|
|
18534
|
+
{
|
|
18535
|
+
code: 6023,
|
|
18536
|
+
name: "DeprecatedInstruction",
|
|
18537
|
+
msg: "Instruction is deprecated"
|
|
18538
|
+
},
|
|
18539
|
+
{
|
|
18540
|
+
code: 6024,
|
|
18541
|
+
name: "FeeSharesAlreadyUpdated",
|
|
18542
|
+
msg: "Reward split can only be updated once"
|
|
18459
18543
|
}
|
|
18460
18544
|
],
|
|
18461
18545
|
types: [
|
|
@@ -18930,30 +19014,14 @@ var pump_fees_default = {
|
|
|
18930
19014
|
}
|
|
18931
19015
|
}
|
|
18932
19016
|
}
|
|
18933
|
-
}
|
|
18934
|
-
]
|
|
18935
|
-
}
|
|
18936
|
-
},
|
|
18937
|
-
{
|
|
18938
|
-
name: "RevokeFeeSharingAuthorityEvent",
|
|
18939
|
-
type: {
|
|
18940
|
-
kind: "struct",
|
|
18941
|
-
fields: [
|
|
18942
|
-
{
|
|
18943
|
-
name: "timestamp",
|
|
18944
|
-
type: "i64"
|
|
18945
|
-
},
|
|
18946
|
-
{
|
|
18947
|
-
name: "mint",
|
|
18948
|
-
type: "pubkey"
|
|
18949
19017
|
},
|
|
18950
19018
|
{
|
|
18951
|
-
name: "
|
|
18952
|
-
type: "
|
|
19019
|
+
name: "old_version",
|
|
19020
|
+
type: "u8"
|
|
18953
19021
|
},
|
|
18954
19022
|
{
|
|
18955
|
-
name: "
|
|
18956
|
-
type: "
|
|
19023
|
+
name: "new_version",
|
|
19024
|
+
type: "u8"
|
|
18957
19025
|
}
|
|
18958
19026
|
]
|
|
18959
19027
|
}
|
|
@@ -19216,34 +19284,6 @@ var pump_fees_default = {
|
|
|
19216
19284
|
]
|
|
19217
19285
|
}
|
|
19218
19286
|
},
|
|
19219
|
-
{
|
|
19220
|
-
name: "TransferFeeSharingAuthorityEvent",
|
|
19221
|
-
type: {
|
|
19222
|
-
kind: "struct",
|
|
19223
|
-
fields: [
|
|
19224
|
-
{
|
|
19225
|
-
name: "timestamp",
|
|
19226
|
-
type: "i64"
|
|
19227
|
-
},
|
|
19228
|
-
{
|
|
19229
|
-
name: "mint",
|
|
19230
|
-
type: "pubkey"
|
|
19231
|
-
},
|
|
19232
|
-
{
|
|
19233
|
-
name: "sharing_config",
|
|
19234
|
-
type: "pubkey"
|
|
19235
|
-
},
|
|
19236
|
-
{
|
|
19237
|
-
name: "old_admin",
|
|
19238
|
-
type: "pubkey"
|
|
19239
|
-
},
|
|
19240
|
-
{
|
|
19241
|
-
name: "new_admin",
|
|
19242
|
-
type: "pubkey"
|
|
19243
|
-
}
|
|
19244
|
-
]
|
|
19245
|
-
}
|
|
19246
|
-
},
|
|
19247
19287
|
{
|
|
19248
19288
|
name: "UpdateAdminEvent",
|
|
19249
19289
|
type: {
|
|
@@ -19332,6 +19372,10 @@ var pump_fees_default = {
|
|
|
19332
19372
|
}
|
|
19333
19373
|
}
|
|
19334
19374
|
}
|
|
19375
|
+
},
|
|
19376
|
+
{
|
|
19377
|
+
name: "version",
|
|
19378
|
+
type: "u8"
|
|
19335
19379
|
}
|
|
19336
19380
|
]
|
|
19337
19381
|
}
|
|
@@ -19372,6 +19416,16 @@ var pump_fees_default = {
|
|
|
19372
19416
|
}
|
|
19373
19417
|
],
|
|
19374
19418
|
constants: [
|
|
19419
|
+
{
|
|
19420
|
+
name: "AMM_CREATOR_VAULT_AUTHORITY_SEED",
|
|
19421
|
+
type: {
|
|
19422
|
+
array: [
|
|
19423
|
+
"u8",
|
|
19424
|
+
13
|
|
19425
|
+
]
|
|
19426
|
+
},
|
|
19427
|
+
value: "[99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116]"
|
|
19428
|
+
},
|
|
19375
19429
|
{
|
|
19376
19430
|
name: "FEE_CONFIG_SEED",
|
|
19377
19431
|
type: "bytes",
|
|
@@ -19387,6 +19441,16 @@ var pump_fees_default = {
|
|
|
19387
19441
|
},
|
|
19388
19442
|
value: "[102, 101, 101, 45, 112, 114, 111, 103, 114, 97, 109, 45, 103, 108, 111, 98, 97, 108]"
|
|
19389
19443
|
},
|
|
19444
|
+
{
|
|
19445
|
+
name: "PUMP_CREATOR_VAULT_SEED",
|
|
19446
|
+
type: {
|
|
19447
|
+
array: [
|
|
19448
|
+
"u8",
|
|
19449
|
+
13
|
|
19450
|
+
]
|
|
19451
|
+
},
|
|
19452
|
+
value: "[99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]"
|
|
19453
|
+
},
|
|
19390
19454
|
{
|
|
19391
19455
|
name: "PUMP_GLOBAL_SEED",
|
|
19392
19456
|
docs: [
|
|
@@ -20506,7 +20570,10 @@ var PumpSdk = class {
|
|
|
20506
20570
|
/**
|
|
20507
20571
|
* Updates the fee shares for a token's creator fee distribution.
|
|
20508
20572
|
*
|
|
20509
|
-
*
|
|
20573
|
+
* Important:
|
|
20574
|
+
* - Reward split updates are effectively one-time. Treat this as a single allowed
|
|
20575
|
+
* modification and verify the final split before submitting.
|
|
20576
|
+
*
|
|
20510
20577
|
* @param params.authority - The current authority that can modify the fee sharing config
|
|
20511
20578
|
* @param params.mint - The mint address of the token
|
|
20512
20579
|
* @param params.curShareholders - Array of current shareholders
|
|
@@ -20713,6 +20780,10 @@ var PumpSdk = class {
|
|
|
20713
20780
|
* Wrapper around `updateSharingConfig` that resolves social recipients and
|
|
20714
20781
|
* initializes any missing social recipient PDAs before updating fee shares.
|
|
20715
20782
|
*
|
|
20783
|
+
* Important:
|
|
20784
|
+
* - Reward split updates are effectively one-time. Treat this call as a single
|
|
20785
|
+
* allowed modification and verify the final split before submitting.
|
|
20786
|
+
*
|
|
20716
20787
|
* Requirements:
|
|
20717
20788
|
* - `authority` must sign the transaction.
|
|
20718
20789
|
*
|
|
@@ -20797,6 +20868,17 @@ function isCreatorUsingSharingConfig({
|
|
|
20797
20868
|
}) {
|
|
20798
20869
|
return feeSharingConfigPda(mint).equals(creator);
|
|
20799
20870
|
}
|
|
20871
|
+
function isSharingConfigEditable({
|
|
20872
|
+
sharingConfig
|
|
20873
|
+
}) {
|
|
20874
|
+
if (sharingConfig.version === 1) {
|
|
20875
|
+
return false;
|
|
20876
|
+
}
|
|
20877
|
+
if (sharingConfig.version === 2 && sharingConfig.adminRevoked) {
|
|
20878
|
+
return false;
|
|
20879
|
+
}
|
|
20880
|
+
return true;
|
|
20881
|
+
}
|
|
20800
20882
|
|
|
20801
20883
|
// src/pda.ts
|
|
20802
20884
|
var GLOBAL_PDA = pumpPda([import_buffer.Buffer.from("global")]);
|
|
@@ -20939,6 +21021,7 @@ export {
|
|
|
20939
21021
|
getSolVaultPda,
|
|
20940
21022
|
getTokenVaultPda,
|
|
20941
21023
|
isCreatorUsingSharingConfig,
|
|
21024
|
+
isSharingConfigEditable,
|
|
20942
21025
|
newBondingCurve,
|
|
20943
21026
|
platformToString,
|
|
20944
21027
|
pump_default as pumpIdl,
|