@pump-fun/pump-sdk 1.20.0 → 1.21.0-devnet.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +59 -18
- package/dist/index.d.mts +113 -32
- package/dist/index.d.ts +113 -32
- package/dist/index.js +59 -18
- package/package.json +1 -1
- package/src/idl/pump.json +56 -16
- package/src/idl/pump.ts +56 -16
- package/src/sdk.ts +5 -4
- package/src/state.ts +1 -0
package/dist/esm/index.js
CHANGED
|
@@ -2431,7 +2431,6 @@ var pump_default = {
|
|
|
2431
2431
|
},
|
|
2432
2432
|
{
|
|
2433
2433
|
name: "global_volume_accumulator",
|
|
2434
|
-
writable: true,
|
|
2435
2434
|
pda: {
|
|
2436
2435
|
seeds: [
|
|
2437
2436
|
{
|
|
@@ -2813,7 +2812,6 @@ var pump_default = {
|
|
|
2813
2812
|
},
|
|
2814
2813
|
{
|
|
2815
2814
|
name: "global_volume_accumulator",
|
|
2816
|
-
writable: true,
|
|
2817
2815
|
pda: {
|
|
2818
2816
|
seeds: [
|
|
2819
2817
|
{
|
|
@@ -5667,16 +5665,16 @@ var pump_default = {
|
|
|
5667
5665
|
]
|
|
5668
5666
|
},
|
|
5669
5667
|
{
|
|
5670
|
-
name: "
|
|
5668
|
+
name: "set_reserved_fee_recipients",
|
|
5671
5669
|
discriminator: [
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5670
|
+
111,
|
|
5671
|
+
172,
|
|
5672
|
+
162,
|
|
5673
|
+
232,
|
|
5674
|
+
114,
|
|
5675
|
+
89,
|
|
5676
|
+
213,
|
|
5677
|
+
142
|
|
5680
5678
|
],
|
|
5681
5679
|
accounts: [
|
|
5682
5680
|
{
|
|
@@ -5700,7 +5698,6 @@ var pump_default = {
|
|
|
5700
5698
|
},
|
|
5701
5699
|
{
|
|
5702
5700
|
name: "authority",
|
|
5703
|
-
writable: true,
|
|
5704
5701
|
signer: true,
|
|
5705
5702
|
relations: [
|
|
5706
5703
|
"global"
|
|
@@ -5740,10 +5737,6 @@ var pump_default = {
|
|
|
5740
5737
|
}
|
|
5741
5738
|
],
|
|
5742
5739
|
args: [
|
|
5743
|
-
{
|
|
5744
|
-
name: "reserved_fee_recipient",
|
|
5745
|
-
type: "pubkey"
|
|
5746
|
-
},
|
|
5747
5740
|
{
|
|
5748
5741
|
name: "whitelist_pda",
|
|
5749
5742
|
type: "pubkey"
|
|
@@ -6327,6 +6320,19 @@ var pump_default = {
|
|
|
6327
6320
|
216
|
|
6328
6321
|
]
|
|
6329
6322
|
},
|
|
6323
|
+
{
|
|
6324
|
+
name: "ReservedFeeRecipientsEvent",
|
|
6325
|
+
discriminator: [
|
|
6326
|
+
43,
|
|
6327
|
+
188,
|
|
6328
|
+
250,
|
|
6329
|
+
18,
|
|
6330
|
+
221,
|
|
6331
|
+
75,
|
|
6332
|
+
187,
|
|
6333
|
+
95
|
|
6334
|
+
]
|
|
6335
|
+
},
|
|
6330
6336
|
{
|
|
6331
6337
|
name: "SetCreatorEvent",
|
|
6332
6338
|
discriminator: [
|
|
@@ -7164,6 +7170,15 @@ var pump_default = {
|
|
|
7164
7170
|
{
|
|
7165
7171
|
name: "mayhem_mode_enabled",
|
|
7166
7172
|
type: "bool"
|
|
7173
|
+
},
|
|
7174
|
+
{
|
|
7175
|
+
name: "reserved_fee_recipients",
|
|
7176
|
+
type: {
|
|
7177
|
+
array: [
|
|
7178
|
+
"pubkey",
|
|
7179
|
+
7
|
|
7180
|
+
]
|
|
7181
|
+
}
|
|
7167
7182
|
}
|
|
7168
7183
|
]
|
|
7169
7184
|
}
|
|
@@ -7239,6 +7254,31 @@ var pump_default = {
|
|
|
7239
7254
|
]
|
|
7240
7255
|
}
|
|
7241
7256
|
},
|
|
7257
|
+
{
|
|
7258
|
+
name: "ReservedFeeRecipientsEvent",
|
|
7259
|
+
type: {
|
|
7260
|
+
kind: "struct",
|
|
7261
|
+
fields: [
|
|
7262
|
+
{
|
|
7263
|
+
name: "timestamp",
|
|
7264
|
+
type: "i64"
|
|
7265
|
+
},
|
|
7266
|
+
{
|
|
7267
|
+
name: "reserved_fee_recipient",
|
|
7268
|
+
type: "pubkey"
|
|
7269
|
+
},
|
|
7270
|
+
{
|
|
7271
|
+
name: "reserved_fee_recipients",
|
|
7272
|
+
type: {
|
|
7273
|
+
array: [
|
|
7274
|
+
"pubkey",
|
|
7275
|
+
7
|
|
7276
|
+
]
|
|
7277
|
+
}
|
|
7278
|
+
}
|
|
7279
|
+
]
|
|
7280
|
+
}
|
|
7281
|
+
},
|
|
7242
7282
|
{
|
|
7243
7283
|
name: "SetCreatorEvent",
|
|
7244
7284
|
type: {
|
|
@@ -8593,10 +8633,11 @@ var PumpSdk = class {
|
|
|
8593
8633
|
var PUMP_SDK = new PumpSdk();
|
|
8594
8634
|
function getFeeRecipient(global, mayhemMode) {
|
|
8595
8635
|
if (!mayhemMode) {
|
|
8596
|
-
const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
|
|
8636
|
+
const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.reservedFeeRecipients];
|
|
8597
8637
|
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
8598
8638
|
} else {
|
|
8599
|
-
|
|
8639
|
+
const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
|
|
8640
|
+
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
8600
8641
|
}
|
|
8601
8642
|
}
|
|
8602
8643
|
|
package/dist/index.d.mts
CHANGED
|
@@ -638,7 +638,6 @@ type Pump = {
|
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"name": "globalVolumeAccumulator";
|
|
641
|
-
"writable": true;
|
|
642
641
|
"pda": {
|
|
643
642
|
"seeds": [
|
|
644
643
|
{
|
|
@@ -1020,7 +1019,6 @@ type Pump = {
|
|
|
1020
1019
|
},
|
|
1021
1020
|
{
|
|
1022
1021
|
"name": "globalVolumeAccumulator";
|
|
1023
|
-
"writable": true;
|
|
1024
1022
|
"pda": {
|
|
1025
1023
|
"seeds": [
|
|
1026
1024
|
{
|
|
@@ -3874,16 +3872,16 @@ type Pump = {
|
|
|
3874
3872
|
];
|
|
3875
3873
|
},
|
|
3876
3874
|
{
|
|
3877
|
-
"name": "
|
|
3875
|
+
"name": "setReservedFeeRecipients";
|
|
3878
3876
|
"discriminator": [
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3877
|
+
111,
|
|
3878
|
+
172,
|
|
3879
|
+
162,
|
|
3880
|
+
232,
|
|
3881
|
+
114,
|
|
3882
|
+
89,
|
|
3883
|
+
213,
|
|
3884
|
+
142
|
|
3887
3885
|
];
|
|
3888
3886
|
"accounts": [
|
|
3889
3887
|
{
|
|
@@ -3907,7 +3905,6 @@ type Pump = {
|
|
|
3907
3905
|
},
|
|
3908
3906
|
{
|
|
3909
3907
|
"name": "authority";
|
|
3910
|
-
"writable": true;
|
|
3911
3908
|
"signer": true;
|
|
3912
3909
|
"relations": [
|
|
3913
3910
|
"global"
|
|
@@ -3947,10 +3944,6 @@ type Pump = {
|
|
|
3947
3944
|
}
|
|
3948
3945
|
];
|
|
3949
3946
|
"args": [
|
|
3950
|
-
{
|
|
3951
|
-
"name": "reservedFeeRecipient";
|
|
3952
|
-
"type": "pubkey";
|
|
3953
|
-
},
|
|
3954
3947
|
{
|
|
3955
3948
|
"name": "whitelistPda";
|
|
3956
3949
|
"type": "pubkey";
|
|
@@ -4534,6 +4527,19 @@ type Pump = {
|
|
|
4534
4527
|
216
|
|
4535
4528
|
];
|
|
4536
4529
|
},
|
|
4530
|
+
{
|
|
4531
|
+
"name": "reservedFeeRecipientsEvent";
|
|
4532
|
+
"discriminator": [
|
|
4533
|
+
43,
|
|
4534
|
+
188,
|
|
4535
|
+
250,
|
|
4536
|
+
18,
|
|
4537
|
+
221,
|
|
4538
|
+
75,
|
|
4539
|
+
187,
|
|
4540
|
+
95
|
|
4541
|
+
];
|
|
4542
|
+
},
|
|
4537
4543
|
{
|
|
4538
4544
|
"name": "setCreatorEvent";
|
|
4539
4545
|
"discriminator": [
|
|
@@ -5371,6 +5377,15 @@ type Pump = {
|
|
|
5371
5377
|
{
|
|
5372
5378
|
"name": "mayhemModeEnabled";
|
|
5373
5379
|
"type": "bool";
|
|
5380
|
+
},
|
|
5381
|
+
{
|
|
5382
|
+
"name": "reservedFeeRecipients";
|
|
5383
|
+
"type": {
|
|
5384
|
+
"array": [
|
|
5385
|
+
"pubkey",
|
|
5386
|
+
7
|
|
5387
|
+
];
|
|
5388
|
+
};
|
|
5374
5389
|
}
|
|
5375
5390
|
];
|
|
5376
5391
|
};
|
|
@@ -5446,6 +5461,31 @@ type Pump = {
|
|
|
5446
5461
|
];
|
|
5447
5462
|
};
|
|
5448
5463
|
},
|
|
5464
|
+
{
|
|
5465
|
+
"name": "reservedFeeRecipientsEvent";
|
|
5466
|
+
"type": {
|
|
5467
|
+
"kind": "struct";
|
|
5468
|
+
"fields": [
|
|
5469
|
+
{
|
|
5470
|
+
"name": "timestamp";
|
|
5471
|
+
"type": "i64";
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
"name": "reservedFeeRecipient";
|
|
5475
|
+
"type": "pubkey";
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
"name": "reservedFeeRecipients";
|
|
5479
|
+
"type": {
|
|
5480
|
+
"array": [
|
|
5481
|
+
"pubkey",
|
|
5482
|
+
7
|
|
5483
|
+
];
|
|
5484
|
+
};
|
|
5485
|
+
}
|
|
5486
|
+
];
|
|
5487
|
+
};
|
|
5488
|
+
},
|
|
5449
5489
|
{
|
|
5450
5490
|
"name": "setCreatorEvent";
|
|
5451
5491
|
"type": {
|
|
@@ -6382,7 +6422,6 @@ var instructions = [
|
|
|
6382
6422
|
},
|
|
6383
6423
|
{
|
|
6384
6424
|
name: "global_volume_accumulator",
|
|
6385
|
-
writable: true,
|
|
6386
6425
|
pda: {
|
|
6387
6426
|
seeds: [
|
|
6388
6427
|
{
|
|
@@ -6764,7 +6803,6 @@ var instructions = [
|
|
|
6764
6803
|
},
|
|
6765
6804
|
{
|
|
6766
6805
|
name: "global_volume_accumulator",
|
|
6767
|
-
writable: true,
|
|
6768
6806
|
pda: {
|
|
6769
6807
|
seeds: [
|
|
6770
6808
|
{
|
|
@@ -9626,16 +9664,16 @@ var instructions = [
|
|
|
9626
9664
|
]
|
|
9627
9665
|
},
|
|
9628
9666
|
{
|
|
9629
|
-
name: "
|
|
9667
|
+
name: "set_reserved_fee_recipients",
|
|
9630
9668
|
discriminator: [
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9669
|
+
111,
|
|
9670
|
+
172,
|
|
9671
|
+
162,
|
|
9672
|
+
232,
|
|
9673
|
+
114,
|
|
9674
|
+
89,
|
|
9675
|
+
213,
|
|
9676
|
+
142
|
|
9639
9677
|
],
|
|
9640
9678
|
accounts: [
|
|
9641
9679
|
{
|
|
@@ -9659,7 +9697,6 @@ var instructions = [
|
|
|
9659
9697
|
},
|
|
9660
9698
|
{
|
|
9661
9699
|
name: "authority",
|
|
9662
|
-
writable: true,
|
|
9663
9700
|
signer: true,
|
|
9664
9701
|
relations: [
|
|
9665
9702
|
"global"
|
|
@@ -9699,10 +9736,6 @@ var instructions = [
|
|
|
9699
9736
|
}
|
|
9700
9737
|
],
|
|
9701
9738
|
args: [
|
|
9702
|
-
{
|
|
9703
|
-
name: "reserved_fee_recipient",
|
|
9704
|
-
type: "pubkey"
|
|
9705
|
-
},
|
|
9706
9739
|
{
|
|
9707
9740
|
name: "whitelist_pda",
|
|
9708
9741
|
type: "pubkey"
|
|
@@ -10288,6 +10321,19 @@ var events = [
|
|
|
10288
10321
|
216
|
|
10289
10322
|
]
|
|
10290
10323
|
},
|
|
10324
|
+
{
|
|
10325
|
+
name: "ReservedFeeRecipientsEvent",
|
|
10326
|
+
discriminator: [
|
|
10327
|
+
43,
|
|
10328
|
+
188,
|
|
10329
|
+
250,
|
|
10330
|
+
18,
|
|
10331
|
+
221,
|
|
10332
|
+
75,
|
|
10333
|
+
187,
|
|
10334
|
+
95
|
|
10335
|
+
]
|
|
10336
|
+
},
|
|
10291
10337
|
{
|
|
10292
10338
|
name: "SetCreatorEvent",
|
|
10293
10339
|
discriminator: [
|
|
@@ -11125,6 +11171,15 @@ var types = [
|
|
|
11125
11171
|
{
|
|
11126
11172
|
name: "mayhem_mode_enabled",
|
|
11127
11173
|
type: "bool"
|
|
11174
|
+
},
|
|
11175
|
+
{
|
|
11176
|
+
name: "reserved_fee_recipients",
|
|
11177
|
+
type: {
|
|
11178
|
+
array: [
|
|
11179
|
+
"pubkey",
|
|
11180
|
+
7
|
|
11181
|
+
]
|
|
11182
|
+
}
|
|
11128
11183
|
}
|
|
11129
11184
|
]
|
|
11130
11185
|
}
|
|
@@ -11200,6 +11255,31 @@ var types = [
|
|
|
11200
11255
|
]
|
|
11201
11256
|
}
|
|
11202
11257
|
},
|
|
11258
|
+
{
|
|
11259
|
+
name: "ReservedFeeRecipientsEvent",
|
|
11260
|
+
type: {
|
|
11261
|
+
kind: "struct",
|
|
11262
|
+
fields: [
|
|
11263
|
+
{
|
|
11264
|
+
name: "timestamp",
|
|
11265
|
+
type: "i64"
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
name: "reserved_fee_recipient",
|
|
11269
|
+
type: "pubkey"
|
|
11270
|
+
},
|
|
11271
|
+
{
|
|
11272
|
+
name: "reserved_fee_recipients",
|
|
11273
|
+
type: {
|
|
11274
|
+
array: [
|
|
11275
|
+
"pubkey",
|
|
11276
|
+
7
|
|
11277
|
+
]
|
|
11278
|
+
}
|
|
11279
|
+
}
|
|
11280
|
+
]
|
|
11281
|
+
}
|
|
11282
|
+
},
|
|
11203
11283
|
{
|
|
11204
11284
|
name: "SetCreatorEvent",
|
|
11205
11285
|
type: {
|
|
@@ -11535,6 +11615,7 @@ interface Global {
|
|
|
11535
11615
|
whitelistPda: PublicKey;
|
|
11536
11616
|
reservedFeeRecipient: PublicKey;
|
|
11537
11617
|
mayhemModeEnabled: boolean;
|
|
11618
|
+
reservedFeeRecipients: PublicKey[];
|
|
11538
11619
|
}
|
|
11539
11620
|
interface BondingCurve {
|
|
11540
11621
|
virtualTokenReserves: BN;
|
package/dist/index.d.ts
CHANGED
|
@@ -638,7 +638,6 @@ type Pump = {
|
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
640
|
"name": "globalVolumeAccumulator";
|
|
641
|
-
"writable": true;
|
|
642
641
|
"pda": {
|
|
643
642
|
"seeds": [
|
|
644
643
|
{
|
|
@@ -1020,7 +1019,6 @@ type Pump = {
|
|
|
1020
1019
|
},
|
|
1021
1020
|
{
|
|
1022
1021
|
"name": "globalVolumeAccumulator";
|
|
1023
|
-
"writable": true;
|
|
1024
1022
|
"pda": {
|
|
1025
1023
|
"seeds": [
|
|
1026
1024
|
{
|
|
@@ -3874,16 +3872,16 @@ type Pump = {
|
|
|
3874
3872
|
];
|
|
3875
3873
|
},
|
|
3876
3874
|
{
|
|
3877
|
-
"name": "
|
|
3875
|
+
"name": "setReservedFeeRecipients";
|
|
3878
3876
|
"discriminator": [
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3877
|
+
111,
|
|
3878
|
+
172,
|
|
3879
|
+
162,
|
|
3880
|
+
232,
|
|
3881
|
+
114,
|
|
3882
|
+
89,
|
|
3883
|
+
213,
|
|
3884
|
+
142
|
|
3887
3885
|
];
|
|
3888
3886
|
"accounts": [
|
|
3889
3887
|
{
|
|
@@ -3907,7 +3905,6 @@ type Pump = {
|
|
|
3907
3905
|
},
|
|
3908
3906
|
{
|
|
3909
3907
|
"name": "authority";
|
|
3910
|
-
"writable": true;
|
|
3911
3908
|
"signer": true;
|
|
3912
3909
|
"relations": [
|
|
3913
3910
|
"global"
|
|
@@ -3947,10 +3944,6 @@ type Pump = {
|
|
|
3947
3944
|
}
|
|
3948
3945
|
];
|
|
3949
3946
|
"args": [
|
|
3950
|
-
{
|
|
3951
|
-
"name": "reservedFeeRecipient";
|
|
3952
|
-
"type": "pubkey";
|
|
3953
|
-
},
|
|
3954
3947
|
{
|
|
3955
3948
|
"name": "whitelistPda";
|
|
3956
3949
|
"type": "pubkey";
|
|
@@ -4534,6 +4527,19 @@ type Pump = {
|
|
|
4534
4527
|
216
|
|
4535
4528
|
];
|
|
4536
4529
|
},
|
|
4530
|
+
{
|
|
4531
|
+
"name": "reservedFeeRecipientsEvent";
|
|
4532
|
+
"discriminator": [
|
|
4533
|
+
43,
|
|
4534
|
+
188,
|
|
4535
|
+
250,
|
|
4536
|
+
18,
|
|
4537
|
+
221,
|
|
4538
|
+
75,
|
|
4539
|
+
187,
|
|
4540
|
+
95
|
|
4541
|
+
];
|
|
4542
|
+
},
|
|
4537
4543
|
{
|
|
4538
4544
|
"name": "setCreatorEvent";
|
|
4539
4545
|
"discriminator": [
|
|
@@ -5371,6 +5377,15 @@ type Pump = {
|
|
|
5371
5377
|
{
|
|
5372
5378
|
"name": "mayhemModeEnabled";
|
|
5373
5379
|
"type": "bool";
|
|
5380
|
+
},
|
|
5381
|
+
{
|
|
5382
|
+
"name": "reservedFeeRecipients";
|
|
5383
|
+
"type": {
|
|
5384
|
+
"array": [
|
|
5385
|
+
"pubkey",
|
|
5386
|
+
7
|
|
5387
|
+
];
|
|
5388
|
+
};
|
|
5374
5389
|
}
|
|
5375
5390
|
];
|
|
5376
5391
|
};
|
|
@@ -5446,6 +5461,31 @@ type Pump = {
|
|
|
5446
5461
|
];
|
|
5447
5462
|
};
|
|
5448
5463
|
},
|
|
5464
|
+
{
|
|
5465
|
+
"name": "reservedFeeRecipientsEvent";
|
|
5466
|
+
"type": {
|
|
5467
|
+
"kind": "struct";
|
|
5468
|
+
"fields": [
|
|
5469
|
+
{
|
|
5470
|
+
"name": "timestamp";
|
|
5471
|
+
"type": "i64";
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
"name": "reservedFeeRecipient";
|
|
5475
|
+
"type": "pubkey";
|
|
5476
|
+
},
|
|
5477
|
+
{
|
|
5478
|
+
"name": "reservedFeeRecipients";
|
|
5479
|
+
"type": {
|
|
5480
|
+
"array": [
|
|
5481
|
+
"pubkey",
|
|
5482
|
+
7
|
|
5483
|
+
];
|
|
5484
|
+
};
|
|
5485
|
+
}
|
|
5486
|
+
];
|
|
5487
|
+
};
|
|
5488
|
+
},
|
|
5449
5489
|
{
|
|
5450
5490
|
"name": "setCreatorEvent";
|
|
5451
5491
|
"type": {
|
|
@@ -6382,7 +6422,6 @@ var instructions = [
|
|
|
6382
6422
|
},
|
|
6383
6423
|
{
|
|
6384
6424
|
name: "global_volume_accumulator",
|
|
6385
|
-
writable: true,
|
|
6386
6425
|
pda: {
|
|
6387
6426
|
seeds: [
|
|
6388
6427
|
{
|
|
@@ -6764,7 +6803,6 @@ var instructions = [
|
|
|
6764
6803
|
},
|
|
6765
6804
|
{
|
|
6766
6805
|
name: "global_volume_accumulator",
|
|
6767
|
-
writable: true,
|
|
6768
6806
|
pda: {
|
|
6769
6807
|
seeds: [
|
|
6770
6808
|
{
|
|
@@ -9626,16 +9664,16 @@ var instructions = [
|
|
|
9626
9664
|
]
|
|
9627
9665
|
},
|
|
9628
9666
|
{
|
|
9629
|
-
name: "
|
|
9667
|
+
name: "set_reserved_fee_recipients",
|
|
9630
9668
|
discriminator: [
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9669
|
+
111,
|
|
9670
|
+
172,
|
|
9671
|
+
162,
|
|
9672
|
+
232,
|
|
9673
|
+
114,
|
|
9674
|
+
89,
|
|
9675
|
+
213,
|
|
9676
|
+
142
|
|
9639
9677
|
],
|
|
9640
9678
|
accounts: [
|
|
9641
9679
|
{
|
|
@@ -9659,7 +9697,6 @@ var instructions = [
|
|
|
9659
9697
|
},
|
|
9660
9698
|
{
|
|
9661
9699
|
name: "authority",
|
|
9662
|
-
writable: true,
|
|
9663
9700
|
signer: true,
|
|
9664
9701
|
relations: [
|
|
9665
9702
|
"global"
|
|
@@ -9699,10 +9736,6 @@ var instructions = [
|
|
|
9699
9736
|
}
|
|
9700
9737
|
],
|
|
9701
9738
|
args: [
|
|
9702
|
-
{
|
|
9703
|
-
name: "reserved_fee_recipient",
|
|
9704
|
-
type: "pubkey"
|
|
9705
|
-
},
|
|
9706
9739
|
{
|
|
9707
9740
|
name: "whitelist_pda",
|
|
9708
9741
|
type: "pubkey"
|
|
@@ -10288,6 +10321,19 @@ var events = [
|
|
|
10288
10321
|
216
|
|
10289
10322
|
]
|
|
10290
10323
|
},
|
|
10324
|
+
{
|
|
10325
|
+
name: "ReservedFeeRecipientsEvent",
|
|
10326
|
+
discriminator: [
|
|
10327
|
+
43,
|
|
10328
|
+
188,
|
|
10329
|
+
250,
|
|
10330
|
+
18,
|
|
10331
|
+
221,
|
|
10332
|
+
75,
|
|
10333
|
+
187,
|
|
10334
|
+
95
|
|
10335
|
+
]
|
|
10336
|
+
},
|
|
10291
10337
|
{
|
|
10292
10338
|
name: "SetCreatorEvent",
|
|
10293
10339
|
discriminator: [
|
|
@@ -11125,6 +11171,15 @@ var types = [
|
|
|
11125
11171
|
{
|
|
11126
11172
|
name: "mayhem_mode_enabled",
|
|
11127
11173
|
type: "bool"
|
|
11174
|
+
},
|
|
11175
|
+
{
|
|
11176
|
+
name: "reserved_fee_recipients",
|
|
11177
|
+
type: {
|
|
11178
|
+
array: [
|
|
11179
|
+
"pubkey",
|
|
11180
|
+
7
|
|
11181
|
+
]
|
|
11182
|
+
}
|
|
11128
11183
|
}
|
|
11129
11184
|
]
|
|
11130
11185
|
}
|
|
@@ -11200,6 +11255,31 @@ var types = [
|
|
|
11200
11255
|
]
|
|
11201
11256
|
}
|
|
11202
11257
|
},
|
|
11258
|
+
{
|
|
11259
|
+
name: "ReservedFeeRecipientsEvent",
|
|
11260
|
+
type: {
|
|
11261
|
+
kind: "struct",
|
|
11262
|
+
fields: [
|
|
11263
|
+
{
|
|
11264
|
+
name: "timestamp",
|
|
11265
|
+
type: "i64"
|
|
11266
|
+
},
|
|
11267
|
+
{
|
|
11268
|
+
name: "reserved_fee_recipient",
|
|
11269
|
+
type: "pubkey"
|
|
11270
|
+
},
|
|
11271
|
+
{
|
|
11272
|
+
name: "reserved_fee_recipients",
|
|
11273
|
+
type: {
|
|
11274
|
+
array: [
|
|
11275
|
+
"pubkey",
|
|
11276
|
+
7
|
|
11277
|
+
]
|
|
11278
|
+
}
|
|
11279
|
+
}
|
|
11280
|
+
]
|
|
11281
|
+
}
|
|
11282
|
+
},
|
|
11203
11283
|
{
|
|
11204
11284
|
name: "SetCreatorEvent",
|
|
11205
11285
|
type: {
|
|
@@ -11535,6 +11615,7 @@ interface Global {
|
|
|
11535
11615
|
whitelistPda: PublicKey;
|
|
11536
11616
|
reservedFeeRecipient: PublicKey;
|
|
11537
11617
|
mayhemModeEnabled: boolean;
|
|
11618
|
+
reservedFeeRecipients: PublicKey[];
|
|
11538
11619
|
}
|
|
11539
11620
|
interface BondingCurve {
|
|
11540
11621
|
virtualTokenReserves: BN;
|
package/dist/index.js
CHANGED
|
@@ -2471,7 +2471,6 @@ var pump_default = {
|
|
|
2471
2471
|
},
|
|
2472
2472
|
{
|
|
2473
2473
|
name: "global_volume_accumulator",
|
|
2474
|
-
writable: true,
|
|
2475
2474
|
pda: {
|
|
2476
2475
|
seeds: [
|
|
2477
2476
|
{
|
|
@@ -2853,7 +2852,6 @@ var pump_default = {
|
|
|
2853
2852
|
},
|
|
2854
2853
|
{
|
|
2855
2854
|
name: "global_volume_accumulator",
|
|
2856
|
-
writable: true,
|
|
2857
2855
|
pda: {
|
|
2858
2856
|
seeds: [
|
|
2859
2857
|
{
|
|
@@ -5707,16 +5705,16 @@ var pump_default = {
|
|
|
5707
5705
|
]
|
|
5708
5706
|
},
|
|
5709
5707
|
{
|
|
5710
|
-
name: "
|
|
5708
|
+
name: "set_reserved_fee_recipients",
|
|
5711
5709
|
discriminator: [
|
|
5712
|
-
|
|
5713
|
-
|
|
5714
|
-
|
|
5715
|
-
|
|
5716
|
-
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5710
|
+
111,
|
|
5711
|
+
172,
|
|
5712
|
+
162,
|
|
5713
|
+
232,
|
|
5714
|
+
114,
|
|
5715
|
+
89,
|
|
5716
|
+
213,
|
|
5717
|
+
142
|
|
5720
5718
|
],
|
|
5721
5719
|
accounts: [
|
|
5722
5720
|
{
|
|
@@ -5740,7 +5738,6 @@ var pump_default = {
|
|
|
5740
5738
|
},
|
|
5741
5739
|
{
|
|
5742
5740
|
name: "authority",
|
|
5743
|
-
writable: true,
|
|
5744
5741
|
signer: true,
|
|
5745
5742
|
relations: [
|
|
5746
5743
|
"global"
|
|
@@ -5780,10 +5777,6 @@ var pump_default = {
|
|
|
5780
5777
|
}
|
|
5781
5778
|
],
|
|
5782
5779
|
args: [
|
|
5783
|
-
{
|
|
5784
|
-
name: "reserved_fee_recipient",
|
|
5785
|
-
type: "pubkey"
|
|
5786
|
-
},
|
|
5787
5780
|
{
|
|
5788
5781
|
name: "whitelist_pda",
|
|
5789
5782
|
type: "pubkey"
|
|
@@ -6367,6 +6360,19 @@ var pump_default = {
|
|
|
6367
6360
|
216
|
|
6368
6361
|
]
|
|
6369
6362
|
},
|
|
6363
|
+
{
|
|
6364
|
+
name: "ReservedFeeRecipientsEvent",
|
|
6365
|
+
discriminator: [
|
|
6366
|
+
43,
|
|
6367
|
+
188,
|
|
6368
|
+
250,
|
|
6369
|
+
18,
|
|
6370
|
+
221,
|
|
6371
|
+
75,
|
|
6372
|
+
187,
|
|
6373
|
+
95
|
|
6374
|
+
]
|
|
6375
|
+
},
|
|
6370
6376
|
{
|
|
6371
6377
|
name: "SetCreatorEvent",
|
|
6372
6378
|
discriminator: [
|
|
@@ -7204,6 +7210,15 @@ var pump_default = {
|
|
|
7204
7210
|
{
|
|
7205
7211
|
name: "mayhem_mode_enabled",
|
|
7206
7212
|
type: "bool"
|
|
7213
|
+
},
|
|
7214
|
+
{
|
|
7215
|
+
name: "reserved_fee_recipients",
|
|
7216
|
+
type: {
|
|
7217
|
+
array: [
|
|
7218
|
+
"pubkey",
|
|
7219
|
+
7
|
|
7220
|
+
]
|
|
7221
|
+
}
|
|
7207
7222
|
}
|
|
7208
7223
|
]
|
|
7209
7224
|
}
|
|
@@ -7279,6 +7294,31 @@ var pump_default = {
|
|
|
7279
7294
|
]
|
|
7280
7295
|
}
|
|
7281
7296
|
},
|
|
7297
|
+
{
|
|
7298
|
+
name: "ReservedFeeRecipientsEvent",
|
|
7299
|
+
type: {
|
|
7300
|
+
kind: "struct",
|
|
7301
|
+
fields: [
|
|
7302
|
+
{
|
|
7303
|
+
name: "timestamp",
|
|
7304
|
+
type: "i64"
|
|
7305
|
+
},
|
|
7306
|
+
{
|
|
7307
|
+
name: "reserved_fee_recipient",
|
|
7308
|
+
type: "pubkey"
|
|
7309
|
+
},
|
|
7310
|
+
{
|
|
7311
|
+
name: "reserved_fee_recipients",
|
|
7312
|
+
type: {
|
|
7313
|
+
array: [
|
|
7314
|
+
"pubkey",
|
|
7315
|
+
7
|
|
7316
|
+
]
|
|
7317
|
+
}
|
|
7318
|
+
}
|
|
7319
|
+
]
|
|
7320
|
+
}
|
|
7321
|
+
},
|
|
7282
7322
|
{
|
|
7283
7323
|
name: "SetCreatorEvent",
|
|
7284
7324
|
type: {
|
|
@@ -8613,10 +8653,11 @@ var PumpSdk = class {
|
|
|
8613
8653
|
var PUMP_SDK = new PumpSdk();
|
|
8614
8654
|
function getFeeRecipient(global, mayhemMode) {
|
|
8615
8655
|
if (!mayhemMode) {
|
|
8616
|
-
const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
|
|
8656
|
+
const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.reservedFeeRecipients];
|
|
8617
8657
|
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
8618
8658
|
} else {
|
|
8619
|
-
|
|
8659
|
+
const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
|
|
8660
|
+
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
8620
8661
|
}
|
|
8621
8662
|
}
|
|
8622
8663
|
|
package/package.json
CHANGED
package/src/idl/pump.json
CHANGED
|
@@ -627,7 +627,6 @@
|
|
|
627
627
|
},
|
|
628
628
|
{
|
|
629
629
|
"name": "global_volume_accumulator",
|
|
630
|
-
"writable": true,
|
|
631
630
|
"pda": {
|
|
632
631
|
"seeds": [
|
|
633
632
|
{
|
|
@@ -1009,7 +1008,6 @@
|
|
|
1009
1008
|
},
|
|
1010
1009
|
{
|
|
1011
1010
|
"name": "global_volume_accumulator",
|
|
1012
|
-
"writable": true,
|
|
1013
1011
|
"pda": {
|
|
1014
1012
|
"seeds": [
|
|
1015
1013
|
{
|
|
@@ -3863,16 +3861,16 @@
|
|
|
3863
3861
|
]
|
|
3864
3862
|
},
|
|
3865
3863
|
{
|
|
3866
|
-
"name": "
|
|
3864
|
+
"name": "set_reserved_fee_recipients",
|
|
3867
3865
|
"discriminator": [
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3866
|
+
111,
|
|
3867
|
+
172,
|
|
3868
|
+
162,
|
|
3869
|
+
232,
|
|
3870
|
+
114,
|
|
3871
|
+
89,
|
|
3872
|
+
213,
|
|
3873
|
+
142
|
|
3876
3874
|
],
|
|
3877
3875
|
"accounts": [
|
|
3878
3876
|
{
|
|
@@ -3896,7 +3894,6 @@
|
|
|
3896
3894
|
},
|
|
3897
3895
|
{
|
|
3898
3896
|
"name": "authority",
|
|
3899
|
-
"writable": true,
|
|
3900
3897
|
"signer": true,
|
|
3901
3898
|
"relations": [
|
|
3902
3899
|
"global"
|
|
@@ -3936,10 +3933,6 @@
|
|
|
3936
3933
|
}
|
|
3937
3934
|
],
|
|
3938
3935
|
"args": [
|
|
3939
|
-
{
|
|
3940
|
-
"name": "reserved_fee_recipient",
|
|
3941
|
-
"type": "pubkey"
|
|
3942
|
-
},
|
|
3943
3936
|
{
|
|
3944
3937
|
"name": "whitelist_pda",
|
|
3945
3938
|
"type": "pubkey"
|
|
@@ -4523,6 +4516,19 @@
|
|
|
4523
4516
|
216
|
|
4524
4517
|
]
|
|
4525
4518
|
},
|
|
4519
|
+
{
|
|
4520
|
+
"name": "ReservedFeeRecipientsEvent",
|
|
4521
|
+
"discriminator": [
|
|
4522
|
+
43,
|
|
4523
|
+
188,
|
|
4524
|
+
250,
|
|
4525
|
+
18,
|
|
4526
|
+
221,
|
|
4527
|
+
75,
|
|
4528
|
+
187,
|
|
4529
|
+
95
|
|
4530
|
+
]
|
|
4531
|
+
},
|
|
4526
4532
|
{
|
|
4527
4533
|
"name": "SetCreatorEvent",
|
|
4528
4534
|
"discriminator": [
|
|
@@ -5360,6 +5366,15 @@
|
|
|
5360
5366
|
{
|
|
5361
5367
|
"name": "mayhem_mode_enabled",
|
|
5362
5368
|
"type": "bool"
|
|
5369
|
+
},
|
|
5370
|
+
{
|
|
5371
|
+
"name": "reserved_fee_recipients",
|
|
5372
|
+
"type": {
|
|
5373
|
+
"array": [
|
|
5374
|
+
"pubkey",
|
|
5375
|
+
7
|
|
5376
|
+
]
|
|
5377
|
+
}
|
|
5363
5378
|
}
|
|
5364
5379
|
]
|
|
5365
5380
|
}
|
|
@@ -5435,6 +5450,31 @@
|
|
|
5435
5450
|
]
|
|
5436
5451
|
}
|
|
5437
5452
|
},
|
|
5453
|
+
{
|
|
5454
|
+
"name": "ReservedFeeRecipientsEvent",
|
|
5455
|
+
"type": {
|
|
5456
|
+
"kind": "struct",
|
|
5457
|
+
"fields": [
|
|
5458
|
+
{
|
|
5459
|
+
"name": "timestamp",
|
|
5460
|
+
"type": "i64"
|
|
5461
|
+
},
|
|
5462
|
+
{
|
|
5463
|
+
"name": "reserved_fee_recipient",
|
|
5464
|
+
"type": "pubkey"
|
|
5465
|
+
},
|
|
5466
|
+
{
|
|
5467
|
+
"name": "reserved_fee_recipients",
|
|
5468
|
+
"type": {
|
|
5469
|
+
"array": [
|
|
5470
|
+
"pubkey",
|
|
5471
|
+
7
|
|
5472
|
+
]
|
|
5473
|
+
}
|
|
5474
|
+
}
|
|
5475
|
+
]
|
|
5476
|
+
}
|
|
5477
|
+
},
|
|
5438
5478
|
{
|
|
5439
5479
|
"name": "SetCreatorEvent",
|
|
5440
5480
|
"type": {
|
package/src/idl/pump.ts
CHANGED
|
@@ -633,7 +633,6 @@ export type Pump = {
|
|
|
633
633
|
},
|
|
634
634
|
{
|
|
635
635
|
"name": "globalVolumeAccumulator",
|
|
636
|
-
"writable": true,
|
|
637
636
|
"pda": {
|
|
638
637
|
"seeds": [
|
|
639
638
|
{
|
|
@@ -1015,7 +1014,6 @@ export type Pump = {
|
|
|
1015
1014
|
},
|
|
1016
1015
|
{
|
|
1017
1016
|
"name": "globalVolumeAccumulator",
|
|
1018
|
-
"writable": true,
|
|
1019
1017
|
"pda": {
|
|
1020
1018
|
"seeds": [
|
|
1021
1019
|
{
|
|
@@ -3869,16 +3867,16 @@ export type Pump = {
|
|
|
3869
3867
|
]
|
|
3870
3868
|
},
|
|
3871
3869
|
{
|
|
3872
|
-
"name": "
|
|
3870
|
+
"name": "setReservedFeeRecipients",
|
|
3873
3871
|
"discriminator": [
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3872
|
+
111,
|
|
3873
|
+
172,
|
|
3874
|
+
162,
|
|
3875
|
+
232,
|
|
3876
|
+
114,
|
|
3877
|
+
89,
|
|
3878
|
+
213,
|
|
3879
|
+
142
|
|
3882
3880
|
],
|
|
3883
3881
|
"accounts": [
|
|
3884
3882
|
{
|
|
@@ -3902,7 +3900,6 @@ export type Pump = {
|
|
|
3902
3900
|
},
|
|
3903
3901
|
{
|
|
3904
3902
|
"name": "authority",
|
|
3905
|
-
"writable": true,
|
|
3906
3903
|
"signer": true,
|
|
3907
3904
|
"relations": [
|
|
3908
3905
|
"global"
|
|
@@ -3942,10 +3939,6 @@ export type Pump = {
|
|
|
3942
3939
|
}
|
|
3943
3940
|
],
|
|
3944
3941
|
"args": [
|
|
3945
|
-
{
|
|
3946
|
-
"name": "reservedFeeRecipient",
|
|
3947
|
-
"type": "pubkey"
|
|
3948
|
-
},
|
|
3949
3942
|
{
|
|
3950
3943
|
"name": "whitelistPda",
|
|
3951
3944
|
"type": "pubkey"
|
|
@@ -4529,6 +4522,19 @@ export type Pump = {
|
|
|
4529
4522
|
216
|
|
4530
4523
|
]
|
|
4531
4524
|
},
|
|
4525
|
+
{
|
|
4526
|
+
"name": "reservedFeeRecipientsEvent",
|
|
4527
|
+
"discriminator": [
|
|
4528
|
+
43,
|
|
4529
|
+
188,
|
|
4530
|
+
250,
|
|
4531
|
+
18,
|
|
4532
|
+
221,
|
|
4533
|
+
75,
|
|
4534
|
+
187,
|
|
4535
|
+
95
|
|
4536
|
+
]
|
|
4537
|
+
},
|
|
4532
4538
|
{
|
|
4533
4539
|
"name": "setCreatorEvent",
|
|
4534
4540
|
"discriminator": [
|
|
@@ -5366,6 +5372,15 @@ export type Pump = {
|
|
|
5366
5372
|
{
|
|
5367
5373
|
"name": "mayhemModeEnabled",
|
|
5368
5374
|
"type": "bool"
|
|
5375
|
+
},
|
|
5376
|
+
{
|
|
5377
|
+
"name": "reservedFeeRecipients",
|
|
5378
|
+
"type": {
|
|
5379
|
+
"array": [
|
|
5380
|
+
"pubkey",
|
|
5381
|
+
7
|
|
5382
|
+
]
|
|
5383
|
+
}
|
|
5369
5384
|
}
|
|
5370
5385
|
]
|
|
5371
5386
|
}
|
|
@@ -5441,6 +5456,31 @@ export type Pump = {
|
|
|
5441
5456
|
]
|
|
5442
5457
|
}
|
|
5443
5458
|
},
|
|
5459
|
+
{
|
|
5460
|
+
"name": "reservedFeeRecipientsEvent",
|
|
5461
|
+
"type": {
|
|
5462
|
+
"kind": "struct",
|
|
5463
|
+
"fields": [
|
|
5464
|
+
{
|
|
5465
|
+
"name": "timestamp",
|
|
5466
|
+
"type": "i64"
|
|
5467
|
+
},
|
|
5468
|
+
{
|
|
5469
|
+
"name": "reservedFeeRecipient",
|
|
5470
|
+
"type": "pubkey"
|
|
5471
|
+
},
|
|
5472
|
+
{
|
|
5473
|
+
"name": "reservedFeeRecipients",
|
|
5474
|
+
"type": {
|
|
5475
|
+
"array": [
|
|
5476
|
+
"pubkey",
|
|
5477
|
+
7
|
|
5478
|
+
]
|
|
5479
|
+
}
|
|
5480
|
+
}
|
|
5481
|
+
]
|
|
5482
|
+
}
|
|
5483
|
+
},
|
|
5444
5484
|
{
|
|
5445
5485
|
"name": "setCreatorEvent",
|
|
5446
5486
|
"type": {
|
package/src/sdk.ts
CHANGED
|
@@ -670,11 +670,12 @@ export class PumpSdk {
|
|
|
670
670
|
export const PUMP_SDK = new PumpSdk();
|
|
671
671
|
|
|
672
672
|
export function getFeeRecipient(global: Global, mayhemMode: boolean): PublicKey {
|
|
673
|
-
if (!mayhemMode){
|
|
674
|
-
|
|
675
|
-
|
|
673
|
+
if (!mayhemMode) {
|
|
674
|
+
const feeRecipients = [global.feeRecipient, ...global.feeRecipients, ...global.reservedFeeRecipients];
|
|
675
|
+
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
676
676
|
}
|
|
677
677
|
else {
|
|
678
|
-
|
|
678
|
+
const feeRecipients = [global.reservedFeeRecipient, ...global.reservedFeeRecipients];
|
|
679
|
+
return feeRecipients[Math.floor(Math.random() * feeRecipients.length)];
|
|
679
680
|
}
|
|
680
681
|
}
|