@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/index.js
CHANGED
|
@@ -1856,6 +1856,7 @@ __export(index_exports, {
|
|
|
1856
1856
|
getSolVaultPda: () => getSolVaultPda,
|
|
1857
1857
|
getTokenVaultPda: () => getTokenVaultPda,
|
|
1858
1858
|
isCreatorUsingSharingConfig: () => isCreatorUsingSharingConfig,
|
|
1859
|
+
isSharingConfigEditable: () => isSharingConfigEditable,
|
|
1859
1860
|
newBondingCurve: () => newBondingCurve,
|
|
1860
1861
|
platformToString: () => platformToString,
|
|
1861
1862
|
pumpIdl: () => pump_default,
|
|
@@ -16451,7 +16452,7 @@ var pump_fees_default = {
|
|
|
16451
16452
|
{
|
|
16452
16453
|
name: "reset_fee_sharing_config",
|
|
16453
16454
|
docs: [
|
|
16454
|
-
"Reset Fee Sharing Config
|
|
16455
|
+
"Reset Fee Sharing Config and distribute pending fees first"
|
|
16455
16456
|
],
|
|
16456
16457
|
discriminator: [
|
|
16457
16458
|
10,
|
|
@@ -16464,6 +16465,42 @@ var pump_fees_default = {
|
|
|
16464
16465
|
186
|
|
16465
16466
|
],
|
|
16466
16467
|
accounts: [
|
|
16468
|
+
{
|
|
16469
|
+
name: "new_admin"
|
|
16470
|
+
},
|
|
16471
|
+
{
|
|
16472
|
+
name: "event_authority",
|
|
16473
|
+
pda: {
|
|
16474
|
+
seeds: [
|
|
16475
|
+
{
|
|
16476
|
+
kind: "const",
|
|
16477
|
+
value: [
|
|
16478
|
+
95,
|
|
16479
|
+
95,
|
|
16480
|
+
101,
|
|
16481
|
+
118,
|
|
16482
|
+
101,
|
|
16483
|
+
110,
|
|
16484
|
+
116,
|
|
16485
|
+
95,
|
|
16486
|
+
97,
|
|
16487
|
+
117,
|
|
16488
|
+
116,
|
|
16489
|
+
104,
|
|
16490
|
+
111,
|
|
16491
|
+
114,
|
|
16492
|
+
105,
|
|
16493
|
+
116,
|
|
16494
|
+
121
|
|
16495
|
+
]
|
|
16496
|
+
}
|
|
16497
|
+
]
|
|
16498
|
+
}
|
|
16499
|
+
},
|
|
16500
|
+
{
|
|
16501
|
+
name: "program",
|
|
16502
|
+
address: "pfeeUxB6jkeY1Hxd7CsFCAjcbHA9rWtchMGdZ6VojVZ"
|
|
16503
|
+
},
|
|
16467
16504
|
{
|
|
16468
16505
|
name: "authority",
|
|
16469
16506
|
signer: true
|
|
@@ -16523,9 +16560,6 @@ var pump_fees_default = {
|
|
|
16523
16560
|
}
|
|
16524
16561
|
}
|
|
16525
16562
|
},
|
|
16526
|
-
{
|
|
16527
|
-
name: "new_admin"
|
|
16528
|
-
},
|
|
16529
16563
|
{
|
|
16530
16564
|
name: "mint",
|
|
16531
16565
|
relations: [
|
|
@@ -16564,74 +16598,97 @@ var pump_fees_default = {
|
|
|
16564
16598
|
}
|
|
16565
16599
|
},
|
|
16566
16600
|
{
|
|
16567
|
-
name: "
|
|
16601
|
+
name: "bonding_curve",
|
|
16568
16602
|
pda: {
|
|
16569
16603
|
seeds: [
|
|
16570
16604
|
{
|
|
16571
16605
|
kind: "const",
|
|
16572
16606
|
value: [
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
101,
|
|
16576
|
-
118,
|
|
16577
|
-
101,
|
|
16607
|
+
98,
|
|
16608
|
+
111,
|
|
16578
16609
|
110,
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16610
|
+
100,
|
|
16611
|
+
105,
|
|
16612
|
+
110,
|
|
16613
|
+
103,
|
|
16614
|
+
45,
|
|
16615
|
+
99,
|
|
16582
16616
|
117,
|
|
16583
|
-
116,
|
|
16584
|
-
104,
|
|
16585
|
-
111,
|
|
16586
16617
|
114,
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
121
|
|
16618
|
+
118,
|
|
16619
|
+
101
|
|
16590
16620
|
]
|
|
16621
|
+
},
|
|
16622
|
+
{
|
|
16623
|
+
kind: "account",
|
|
16624
|
+
path: "mint"
|
|
16591
16625
|
}
|
|
16592
|
-
]
|
|
16626
|
+
],
|
|
16627
|
+
program: {
|
|
16628
|
+
kind: "const",
|
|
16629
|
+
value: [
|
|
16630
|
+
1,
|
|
16631
|
+
86,
|
|
16632
|
+
224,
|
|
16633
|
+
246,
|
|
16634
|
+
147,
|
|
16635
|
+
102,
|
|
16636
|
+
90,
|
|
16637
|
+
207,
|
|
16638
|
+
68,
|
|
16639
|
+
219,
|
|
16640
|
+
21,
|
|
16641
|
+
104,
|
|
16642
|
+
191,
|
|
16643
|
+
23,
|
|
16644
|
+
91,
|
|
16645
|
+
170,
|
|
16646
|
+
81,
|
|
16647
|
+
137,
|
|
16648
|
+
203,
|
|
16649
|
+
151,
|
|
16650
|
+
245,
|
|
16651
|
+
210,
|
|
16652
|
+
255,
|
|
16653
|
+
59,
|
|
16654
|
+
101,
|
|
16655
|
+
93,
|
|
16656
|
+
43,
|
|
16657
|
+
182,
|
|
16658
|
+
253,
|
|
16659
|
+
109,
|
|
16660
|
+
24,
|
|
16661
|
+
176
|
|
16662
|
+
]
|
|
16663
|
+
}
|
|
16593
16664
|
}
|
|
16594
16665
|
},
|
|
16595
16666
|
{
|
|
16596
|
-
name: "
|
|
16597
|
-
|
|
16598
|
-
],
|
|
16599
|
-
args: []
|
|
16600
|
-
},
|
|
16601
|
-
{
|
|
16602
|
-
name: "revoke_fee_sharing_authority",
|
|
16603
|
-
docs: [
|
|
16604
|
-
"Revoke Fee Sharing Authority"
|
|
16605
|
-
],
|
|
16606
|
-
discriminator: [
|
|
16607
|
-
18,
|
|
16608
|
-
233,
|
|
16609
|
-
158,
|
|
16610
|
-
39,
|
|
16611
|
-
185,
|
|
16612
|
-
207,
|
|
16613
|
-
58,
|
|
16614
|
-
104
|
|
16615
|
-
],
|
|
16616
|
-
accounts: [
|
|
16617
|
-
{
|
|
16618
|
-
name: "authority",
|
|
16619
|
-
signer: true
|
|
16620
|
-
},
|
|
16621
|
-
{
|
|
16622
|
-
name: "global",
|
|
16667
|
+
name: "pump_creator_vault",
|
|
16668
|
+
writable: true,
|
|
16623
16669
|
pda: {
|
|
16624
16670
|
seeds: [
|
|
16625
16671
|
{
|
|
16626
16672
|
kind: "const",
|
|
16627
16673
|
value: [
|
|
16628
|
-
|
|
16629
|
-
|
|
16674
|
+
99,
|
|
16675
|
+
114,
|
|
16676
|
+
101,
|
|
16677
|
+
97,
|
|
16678
|
+
116,
|
|
16630
16679
|
111,
|
|
16631
|
-
|
|
16680
|
+
114,
|
|
16681
|
+
45,
|
|
16682
|
+
118,
|
|
16632
16683
|
97,
|
|
16633
|
-
|
|
16684
|
+
117,
|
|
16685
|
+
108,
|
|
16686
|
+
116
|
|
16634
16687
|
]
|
|
16688
|
+
},
|
|
16689
|
+
{
|
|
16690
|
+
kind: "account",
|
|
16691
|
+
path: "sharing_config"
|
|
16635
16692
|
}
|
|
16636
16693
|
],
|
|
16637
16694
|
program: {
|
|
@@ -16674,44 +16731,85 @@ var pump_fees_default = {
|
|
|
16674
16731
|
}
|
|
16675
16732
|
},
|
|
16676
16733
|
{
|
|
16677
|
-
name: "
|
|
16678
|
-
|
|
16679
|
-
"sharing_config"
|
|
16680
|
-
]
|
|
16734
|
+
name: "system_program",
|
|
16735
|
+
address: "11111111111111111111111111111111"
|
|
16681
16736
|
},
|
|
16682
16737
|
{
|
|
16683
|
-
name: "
|
|
16684
|
-
|
|
16738
|
+
name: "pump_program",
|
|
16739
|
+
address: "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
|
|
16740
|
+
},
|
|
16741
|
+
{
|
|
16742
|
+
name: "pump_event_authority",
|
|
16685
16743
|
pda: {
|
|
16686
16744
|
seeds: [
|
|
16687
16745
|
{
|
|
16688
16746
|
kind: "const",
|
|
16689
16747
|
value: [
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16748
|
+
95,
|
|
16749
|
+
95,
|
|
16750
|
+
101,
|
|
16751
|
+
118,
|
|
16752
|
+
101,
|
|
16695
16753
|
110,
|
|
16696
|
-
|
|
16697
|
-
|
|
16698
|
-
|
|
16754
|
+
116,
|
|
16755
|
+
95,
|
|
16756
|
+
97,
|
|
16757
|
+
117,
|
|
16758
|
+
116,
|
|
16759
|
+
104,
|
|
16699
16760
|
111,
|
|
16700
|
-
|
|
16701
|
-
102,
|
|
16761
|
+
114,
|
|
16702
16762
|
105,
|
|
16703
|
-
|
|
16763
|
+
116,
|
|
16764
|
+
121
|
|
16704
16765
|
]
|
|
16705
|
-
},
|
|
16706
|
-
{
|
|
16707
|
-
kind: "account",
|
|
16708
|
-
path: "mint"
|
|
16709
16766
|
}
|
|
16710
|
-
]
|
|
16767
|
+
],
|
|
16768
|
+
program: {
|
|
16769
|
+
kind: "const",
|
|
16770
|
+
value: [
|
|
16771
|
+
1,
|
|
16772
|
+
86,
|
|
16773
|
+
224,
|
|
16774
|
+
246,
|
|
16775
|
+
147,
|
|
16776
|
+
102,
|
|
16777
|
+
90,
|
|
16778
|
+
207,
|
|
16779
|
+
68,
|
|
16780
|
+
219,
|
|
16781
|
+
21,
|
|
16782
|
+
104,
|
|
16783
|
+
191,
|
|
16784
|
+
23,
|
|
16785
|
+
91,
|
|
16786
|
+
170,
|
|
16787
|
+
81,
|
|
16788
|
+
137,
|
|
16789
|
+
203,
|
|
16790
|
+
151,
|
|
16791
|
+
245,
|
|
16792
|
+
210,
|
|
16793
|
+
255,
|
|
16794
|
+
59,
|
|
16795
|
+
101,
|
|
16796
|
+
93,
|
|
16797
|
+
43,
|
|
16798
|
+
182,
|
|
16799
|
+
253,
|
|
16800
|
+
109,
|
|
16801
|
+
24,
|
|
16802
|
+
176
|
|
16803
|
+
]
|
|
16804
|
+
}
|
|
16711
16805
|
}
|
|
16712
16806
|
},
|
|
16713
16807
|
{
|
|
16714
|
-
name: "
|
|
16808
|
+
name: "pump_amm_program",
|
|
16809
|
+
address: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA"
|
|
16810
|
+
},
|
|
16811
|
+
{
|
|
16812
|
+
name: "amm_event_authority",
|
|
16715
16813
|
pda: {
|
|
16716
16814
|
seeds: [
|
|
16717
16815
|
{
|
|
@@ -16736,15 +16834,150 @@ var pump_fees_default = {
|
|
|
16736
16834
|
121
|
|
16737
16835
|
]
|
|
16738
16836
|
}
|
|
16739
|
-
]
|
|
16837
|
+
],
|
|
16838
|
+
program: {
|
|
16839
|
+
kind: "const",
|
|
16840
|
+
value: [
|
|
16841
|
+
12,
|
|
16842
|
+
20,
|
|
16843
|
+
222,
|
|
16844
|
+
252,
|
|
16845
|
+
130,
|
|
16846
|
+
94,
|
|
16847
|
+
198,
|
|
16848
|
+
118,
|
|
16849
|
+
148,
|
|
16850
|
+
37,
|
|
16851
|
+
8,
|
|
16852
|
+
24,
|
|
16853
|
+
187,
|
|
16854
|
+
101,
|
|
16855
|
+
64,
|
|
16856
|
+
101,
|
|
16857
|
+
244,
|
|
16858
|
+
41,
|
|
16859
|
+
141,
|
|
16860
|
+
49,
|
|
16861
|
+
86,
|
|
16862
|
+
213,
|
|
16863
|
+
113,
|
|
16864
|
+
180,
|
|
16865
|
+
212,
|
|
16866
|
+
248,
|
|
16867
|
+
9,
|
|
16868
|
+
12,
|
|
16869
|
+
24,
|
|
16870
|
+
233,
|
|
16871
|
+
168,
|
|
16872
|
+
99
|
|
16873
|
+
]
|
|
16874
|
+
}
|
|
16875
|
+
}
|
|
16876
|
+
},
|
|
16877
|
+
{
|
|
16878
|
+
name: "wsol_mint",
|
|
16879
|
+
address: "So11111111111111111111111111111111111111112"
|
|
16880
|
+
},
|
|
16881
|
+
{
|
|
16882
|
+
name: "token_program",
|
|
16883
|
+
address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
16884
|
+
},
|
|
16885
|
+
{
|
|
16886
|
+
name: "associated_token_program",
|
|
16887
|
+
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
16888
|
+
},
|
|
16889
|
+
{
|
|
16890
|
+
name: "coin_creator_vault_authority",
|
|
16891
|
+
writable: true,
|
|
16892
|
+
pda: {
|
|
16893
|
+
seeds: [
|
|
16894
|
+
{
|
|
16895
|
+
kind: "const",
|
|
16896
|
+
value: [
|
|
16897
|
+
99,
|
|
16898
|
+
114,
|
|
16899
|
+
101,
|
|
16900
|
+
97,
|
|
16901
|
+
116,
|
|
16902
|
+
111,
|
|
16903
|
+
114,
|
|
16904
|
+
95,
|
|
16905
|
+
118,
|
|
16906
|
+
97,
|
|
16907
|
+
117,
|
|
16908
|
+
108,
|
|
16909
|
+
116
|
|
16910
|
+
]
|
|
16911
|
+
},
|
|
16912
|
+
{
|
|
16913
|
+
kind: "account",
|
|
16914
|
+
path: "sharing_config"
|
|
16915
|
+
}
|
|
16916
|
+
],
|
|
16917
|
+
program: {
|
|
16918
|
+
kind: "const",
|
|
16919
|
+
value: [
|
|
16920
|
+
12,
|
|
16921
|
+
20,
|
|
16922
|
+
222,
|
|
16923
|
+
252,
|
|
16924
|
+
130,
|
|
16925
|
+
94,
|
|
16926
|
+
198,
|
|
16927
|
+
118,
|
|
16928
|
+
148,
|
|
16929
|
+
37,
|
|
16930
|
+
8,
|
|
16931
|
+
24,
|
|
16932
|
+
187,
|
|
16933
|
+
101,
|
|
16934
|
+
64,
|
|
16935
|
+
101,
|
|
16936
|
+
244,
|
|
16937
|
+
41,
|
|
16938
|
+
141,
|
|
16939
|
+
49,
|
|
16940
|
+
86,
|
|
16941
|
+
213,
|
|
16942
|
+
113,
|
|
16943
|
+
180,
|
|
16944
|
+
212,
|
|
16945
|
+
248,
|
|
16946
|
+
9,
|
|
16947
|
+
12,
|
|
16948
|
+
24,
|
|
16949
|
+
233,
|
|
16950
|
+
168,
|
|
16951
|
+
99
|
|
16952
|
+
]
|
|
16953
|
+
}
|
|
16740
16954
|
}
|
|
16741
16955
|
},
|
|
16742
16956
|
{
|
|
16743
|
-
name: "
|
|
16957
|
+
name: "coin_creator_vault_ata",
|
|
16958
|
+
writable: true
|
|
16744
16959
|
}
|
|
16745
16960
|
],
|
|
16746
16961
|
args: []
|
|
16747
16962
|
},
|
|
16963
|
+
{
|
|
16964
|
+
name: "revoke_fee_sharing_authority",
|
|
16965
|
+
docs: [
|
|
16966
|
+
"Revoke Fee Sharing Authority"
|
|
16967
|
+
],
|
|
16968
|
+
discriminator: [
|
|
16969
|
+
18,
|
|
16970
|
+
233,
|
|
16971
|
+
158,
|
|
16972
|
+
39,
|
|
16973
|
+
185,
|
|
16974
|
+
207,
|
|
16975
|
+
58,
|
|
16976
|
+
104
|
|
16977
|
+
],
|
|
16978
|
+
accounts: [],
|
|
16979
|
+
args: []
|
|
16980
|
+
},
|
|
16748
16981
|
{
|
|
16749
16982
|
name: "set_authority",
|
|
16750
16983
|
discriminator: [
|
|
@@ -17128,139 +17361,7 @@ var pump_fees_default = {
|
|
|
17128
17361
|
210,
|
|
17129
17362
|
96
|
|
17130
17363
|
],
|
|
17131
|
-
accounts: [
|
|
17132
|
-
{
|
|
17133
|
-
name: "authority",
|
|
17134
|
-
signer: true
|
|
17135
|
-
},
|
|
17136
|
-
{
|
|
17137
|
-
name: "global",
|
|
17138
|
-
pda: {
|
|
17139
|
-
seeds: [
|
|
17140
|
-
{
|
|
17141
|
-
kind: "const",
|
|
17142
|
-
value: [
|
|
17143
|
-
103,
|
|
17144
|
-
108,
|
|
17145
|
-
111,
|
|
17146
|
-
98,
|
|
17147
|
-
97,
|
|
17148
|
-
108
|
|
17149
|
-
]
|
|
17150
|
-
}
|
|
17151
|
-
],
|
|
17152
|
-
program: {
|
|
17153
|
-
kind: "const",
|
|
17154
|
-
value: [
|
|
17155
|
-
1,
|
|
17156
|
-
86,
|
|
17157
|
-
224,
|
|
17158
|
-
246,
|
|
17159
|
-
147,
|
|
17160
|
-
102,
|
|
17161
|
-
90,
|
|
17162
|
-
207,
|
|
17163
|
-
68,
|
|
17164
|
-
219,
|
|
17165
|
-
21,
|
|
17166
|
-
104,
|
|
17167
|
-
191,
|
|
17168
|
-
23,
|
|
17169
|
-
91,
|
|
17170
|
-
170,
|
|
17171
|
-
81,
|
|
17172
|
-
137,
|
|
17173
|
-
203,
|
|
17174
|
-
151,
|
|
17175
|
-
245,
|
|
17176
|
-
210,
|
|
17177
|
-
255,
|
|
17178
|
-
59,
|
|
17179
|
-
101,
|
|
17180
|
-
93,
|
|
17181
|
-
43,
|
|
17182
|
-
182,
|
|
17183
|
-
253,
|
|
17184
|
-
109,
|
|
17185
|
-
24,
|
|
17186
|
-
176
|
|
17187
|
-
]
|
|
17188
|
-
}
|
|
17189
|
-
}
|
|
17190
|
-
},
|
|
17191
|
-
{
|
|
17192
|
-
name: "mint",
|
|
17193
|
-
relations: [
|
|
17194
|
-
"sharing_config"
|
|
17195
|
-
]
|
|
17196
|
-
},
|
|
17197
|
-
{
|
|
17198
|
-
name: "sharing_config",
|
|
17199
|
-
writable: true,
|
|
17200
|
-
pda: {
|
|
17201
|
-
seeds: [
|
|
17202
|
-
{
|
|
17203
|
-
kind: "const",
|
|
17204
|
-
value: [
|
|
17205
|
-
115,
|
|
17206
|
-
104,
|
|
17207
|
-
97,
|
|
17208
|
-
114,
|
|
17209
|
-
105,
|
|
17210
|
-
110,
|
|
17211
|
-
103,
|
|
17212
|
-
45,
|
|
17213
|
-
99,
|
|
17214
|
-
111,
|
|
17215
|
-
110,
|
|
17216
|
-
102,
|
|
17217
|
-
105,
|
|
17218
|
-
103
|
|
17219
|
-
]
|
|
17220
|
-
},
|
|
17221
|
-
{
|
|
17222
|
-
kind: "account",
|
|
17223
|
-
path: "mint"
|
|
17224
|
-
}
|
|
17225
|
-
]
|
|
17226
|
-
}
|
|
17227
|
-
},
|
|
17228
|
-
{
|
|
17229
|
-
name: "new_admin"
|
|
17230
|
-
},
|
|
17231
|
-
{
|
|
17232
|
-
name: "event_authority",
|
|
17233
|
-
pda: {
|
|
17234
|
-
seeds: [
|
|
17235
|
-
{
|
|
17236
|
-
kind: "const",
|
|
17237
|
-
value: [
|
|
17238
|
-
95,
|
|
17239
|
-
95,
|
|
17240
|
-
101,
|
|
17241
|
-
118,
|
|
17242
|
-
101,
|
|
17243
|
-
110,
|
|
17244
|
-
116,
|
|
17245
|
-
95,
|
|
17246
|
-
97,
|
|
17247
|
-
117,
|
|
17248
|
-
116,
|
|
17249
|
-
104,
|
|
17250
|
-
111,
|
|
17251
|
-
114,
|
|
17252
|
-
105,
|
|
17253
|
-
116,
|
|
17254
|
-
121
|
|
17255
|
-
]
|
|
17256
|
-
}
|
|
17257
|
-
]
|
|
17258
|
-
}
|
|
17259
|
-
},
|
|
17260
|
-
{
|
|
17261
|
-
name: "program"
|
|
17262
|
-
}
|
|
17263
|
-
],
|
|
17364
|
+
accounts: [],
|
|
17264
17365
|
args: []
|
|
17265
17366
|
},
|
|
17266
17367
|
{
|
|
@@ -18230,19 +18331,6 @@ var pump_fees_default = {
|
|
|
18230
18331
|
243
|
|
18231
18332
|
]
|
|
18232
18333
|
},
|
|
18233
|
-
{
|
|
18234
|
-
name: "RevokeFeeSharingAuthorityEvent",
|
|
18235
|
-
discriminator: [
|
|
18236
|
-
114,
|
|
18237
|
-
23,
|
|
18238
|
-
101,
|
|
18239
|
-
60,
|
|
18240
|
-
14,
|
|
18241
|
-
190,
|
|
18242
|
-
153,
|
|
18243
|
-
62
|
|
18244
|
-
]
|
|
18245
|
-
},
|
|
18246
18334
|
{
|
|
18247
18335
|
name: "SetAuthorityEvent",
|
|
18248
18336
|
discriminator: [
|
|
@@ -18321,19 +18409,6 @@ var pump_fees_default = {
|
|
|
18321
18409
|
169
|
|
18322
18410
|
]
|
|
18323
18411
|
},
|
|
18324
|
-
{
|
|
18325
|
-
name: "TransferFeeSharingAuthorityEvent",
|
|
18326
|
-
discriminator: [
|
|
18327
|
-
124,
|
|
18328
|
-
143,
|
|
18329
|
-
198,
|
|
18330
|
-
245,
|
|
18331
|
-
77,
|
|
18332
|
-
184,
|
|
18333
|
-
8,
|
|
18334
|
-
236
|
|
18335
|
-
]
|
|
18336
|
-
},
|
|
18337
18412
|
{
|
|
18338
18413
|
name: "UpdateAdminEvent",
|
|
18339
18414
|
discriminator: [
|
|
@@ -18436,7 +18511,7 @@ var pump_fees_default = {
|
|
|
18436
18511
|
{
|
|
18437
18512
|
code: 6009,
|
|
18438
18513
|
name: "SharingConfigAdminRevoked",
|
|
18439
|
-
msg: "Sharing config
|
|
18514
|
+
msg: "Sharing config authority has been revoked - sharing config can only be updated once"
|
|
18440
18515
|
},
|
|
18441
18516
|
{
|
|
18442
18517
|
code: 6010,
|
|
@@ -18502,6 +18577,16 @@ var pump_fees_default = {
|
|
|
18502
18577
|
code: 6022,
|
|
18503
18578
|
name: "UserIdTooLong",
|
|
18504
18579
|
msg: "User ID exceeds maximum length"
|
|
18580
|
+
},
|
|
18581
|
+
{
|
|
18582
|
+
code: 6023,
|
|
18583
|
+
name: "DeprecatedInstruction",
|
|
18584
|
+
msg: "Instruction is deprecated"
|
|
18585
|
+
},
|
|
18586
|
+
{
|
|
18587
|
+
code: 6024,
|
|
18588
|
+
name: "FeeSharesAlreadyUpdated",
|
|
18589
|
+
msg: "Reward split can only be updated once"
|
|
18505
18590
|
}
|
|
18506
18591
|
],
|
|
18507
18592
|
types: [
|
|
@@ -18976,30 +19061,14 @@ var pump_fees_default = {
|
|
|
18976
19061
|
}
|
|
18977
19062
|
}
|
|
18978
19063
|
}
|
|
18979
|
-
}
|
|
18980
|
-
]
|
|
18981
|
-
}
|
|
18982
|
-
},
|
|
18983
|
-
{
|
|
18984
|
-
name: "RevokeFeeSharingAuthorityEvent",
|
|
18985
|
-
type: {
|
|
18986
|
-
kind: "struct",
|
|
18987
|
-
fields: [
|
|
18988
|
-
{
|
|
18989
|
-
name: "timestamp",
|
|
18990
|
-
type: "i64"
|
|
18991
|
-
},
|
|
18992
|
-
{
|
|
18993
|
-
name: "mint",
|
|
18994
|
-
type: "pubkey"
|
|
18995
19064
|
},
|
|
18996
19065
|
{
|
|
18997
|
-
name: "
|
|
18998
|
-
type: "
|
|
19066
|
+
name: "old_version",
|
|
19067
|
+
type: "u8"
|
|
18999
19068
|
},
|
|
19000
19069
|
{
|
|
19001
|
-
name: "
|
|
19002
|
-
type: "
|
|
19070
|
+
name: "new_version",
|
|
19071
|
+
type: "u8"
|
|
19003
19072
|
}
|
|
19004
19073
|
]
|
|
19005
19074
|
}
|
|
@@ -19262,34 +19331,6 @@ var pump_fees_default = {
|
|
|
19262
19331
|
]
|
|
19263
19332
|
}
|
|
19264
19333
|
},
|
|
19265
|
-
{
|
|
19266
|
-
name: "TransferFeeSharingAuthorityEvent",
|
|
19267
|
-
type: {
|
|
19268
|
-
kind: "struct",
|
|
19269
|
-
fields: [
|
|
19270
|
-
{
|
|
19271
|
-
name: "timestamp",
|
|
19272
|
-
type: "i64"
|
|
19273
|
-
},
|
|
19274
|
-
{
|
|
19275
|
-
name: "mint",
|
|
19276
|
-
type: "pubkey"
|
|
19277
|
-
},
|
|
19278
|
-
{
|
|
19279
|
-
name: "sharing_config",
|
|
19280
|
-
type: "pubkey"
|
|
19281
|
-
},
|
|
19282
|
-
{
|
|
19283
|
-
name: "old_admin",
|
|
19284
|
-
type: "pubkey"
|
|
19285
|
-
},
|
|
19286
|
-
{
|
|
19287
|
-
name: "new_admin",
|
|
19288
|
-
type: "pubkey"
|
|
19289
|
-
}
|
|
19290
|
-
]
|
|
19291
|
-
}
|
|
19292
|
-
},
|
|
19293
19334
|
{
|
|
19294
19335
|
name: "UpdateAdminEvent",
|
|
19295
19336
|
type: {
|
|
@@ -19378,6 +19419,10 @@ var pump_fees_default = {
|
|
|
19378
19419
|
}
|
|
19379
19420
|
}
|
|
19380
19421
|
}
|
|
19422
|
+
},
|
|
19423
|
+
{
|
|
19424
|
+
name: "version",
|
|
19425
|
+
type: "u8"
|
|
19381
19426
|
}
|
|
19382
19427
|
]
|
|
19383
19428
|
}
|
|
@@ -19418,6 +19463,16 @@ var pump_fees_default = {
|
|
|
19418
19463
|
}
|
|
19419
19464
|
],
|
|
19420
19465
|
constants: [
|
|
19466
|
+
{
|
|
19467
|
+
name: "AMM_CREATOR_VAULT_AUTHORITY_SEED",
|
|
19468
|
+
type: {
|
|
19469
|
+
array: [
|
|
19470
|
+
"u8",
|
|
19471
|
+
13
|
|
19472
|
+
]
|
|
19473
|
+
},
|
|
19474
|
+
value: "[99, 114, 101, 97, 116, 111, 114, 95, 118, 97, 117, 108, 116]"
|
|
19475
|
+
},
|
|
19421
19476
|
{
|
|
19422
19477
|
name: "FEE_CONFIG_SEED",
|
|
19423
19478
|
type: "bytes",
|
|
@@ -19433,6 +19488,16 @@ var pump_fees_default = {
|
|
|
19433
19488
|
},
|
|
19434
19489
|
value: "[102, 101, 101, 45, 112, 114, 111, 103, 114, 97, 109, 45, 103, 108, 111, 98, 97, 108]"
|
|
19435
19490
|
},
|
|
19491
|
+
{
|
|
19492
|
+
name: "PUMP_CREATOR_VAULT_SEED",
|
|
19493
|
+
type: {
|
|
19494
|
+
array: [
|
|
19495
|
+
"u8",
|
|
19496
|
+
13
|
|
19497
|
+
]
|
|
19498
|
+
},
|
|
19499
|
+
value: "[99, 114, 101, 97, 116, 111, 114, 45, 118, 97, 117, 108, 116]"
|
|
19500
|
+
},
|
|
19436
19501
|
{
|
|
19437
19502
|
name: "PUMP_GLOBAL_SEED",
|
|
19438
19503
|
docs: [
|
|
@@ -20537,7 +20602,10 @@ var PumpSdk = class {
|
|
|
20537
20602
|
/**
|
|
20538
20603
|
* Updates the fee shares for a token's creator fee distribution.
|
|
20539
20604
|
*
|
|
20540
|
-
*
|
|
20605
|
+
* Important:
|
|
20606
|
+
* - Reward split updates are effectively one-time. Treat this as a single allowed
|
|
20607
|
+
* modification and verify the final split before submitting.
|
|
20608
|
+
*
|
|
20541
20609
|
* @param params.authority - The current authority that can modify the fee sharing config
|
|
20542
20610
|
* @param params.mint - The mint address of the token
|
|
20543
20611
|
* @param params.curShareholders - Array of current shareholders
|
|
@@ -20744,6 +20812,10 @@ var PumpSdk = class {
|
|
|
20744
20812
|
* Wrapper around `updateSharingConfig` that resolves social recipients and
|
|
20745
20813
|
* initializes any missing social recipient PDAs before updating fee shares.
|
|
20746
20814
|
*
|
|
20815
|
+
* Important:
|
|
20816
|
+
* - Reward split updates are effectively one-time. Treat this call as a single
|
|
20817
|
+
* allowed modification and verify the final split before submitting.
|
|
20818
|
+
*
|
|
20747
20819
|
* Requirements:
|
|
20748
20820
|
* - `authority` must sign the transaction.
|
|
20749
20821
|
*
|
|
@@ -20828,6 +20900,17 @@ function isCreatorUsingSharingConfig({
|
|
|
20828
20900
|
}) {
|
|
20829
20901
|
return feeSharingConfigPda(mint).equals(creator);
|
|
20830
20902
|
}
|
|
20903
|
+
function isSharingConfigEditable({
|
|
20904
|
+
sharingConfig
|
|
20905
|
+
}) {
|
|
20906
|
+
if (sharingConfig.version === 1) {
|
|
20907
|
+
return false;
|
|
20908
|
+
}
|
|
20909
|
+
if (sharingConfig.version === 2 && sharingConfig.adminRevoked) {
|
|
20910
|
+
return false;
|
|
20911
|
+
}
|
|
20912
|
+
return true;
|
|
20913
|
+
}
|
|
20831
20914
|
|
|
20832
20915
|
// src/pda.ts
|
|
20833
20916
|
var GLOBAL_PDA = (0, import_pump_swap_sdk3.pumpPda)([import_buffer.Buffer.from("global")]);
|