@pump-fun/pump-sdk 1.20.0-devnet.1 → 1.20.0-devnet.3
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 +280 -16
- package/dist/index.d.mts +449 -5
- package/dist/index.d.ts +449 -5
- package/dist/index.js +279 -15
- package/package.json +1 -1
- package/src/bondingCurve.ts +1 -0
- package/src/idl/pump.json +216 -0
- package/src/idl/pump.ts +216 -0
- package/src/onlineSdk.ts +1 -1
- package/src/pda.ts +34 -2
- package/src/sdk.ts +31 -8
- package/src/state.ts +5 -0
package/dist/index.d.ts
CHANGED
|
@@ -2127,6 +2127,26 @@ type Pump = {
|
|
|
2127
2127
|
"name": "associatedTokenProgram";
|
|
2128
2128
|
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
2129
2129
|
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "mayhemProgramId";
|
|
2132
|
+
"writable": true;
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "globalParams";
|
|
2136
|
+
"writable": true;
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
"name": "solVault";
|
|
2140
|
+
"writable": true;
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
"name": "mayhemState";
|
|
2144
|
+
"writable": true;
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"name": "mayhemTokenVault";
|
|
2148
|
+
"writable": true;
|
|
2149
|
+
},
|
|
2130
2150
|
{
|
|
2131
2151
|
"name": "eventAuthority";
|
|
2132
2152
|
"pda": {
|
|
@@ -2176,6 +2196,10 @@ type Pump = {
|
|
|
2176
2196
|
{
|
|
2177
2197
|
"name": "creator";
|
|
2178
2198
|
"type": "pubkey";
|
|
2199
|
+
},
|
|
2200
|
+
{
|
|
2201
|
+
"name": "isMayhemMode";
|
|
2202
|
+
"type": "bool";
|
|
2179
2203
|
}
|
|
2180
2204
|
];
|
|
2181
2205
|
},
|
|
@@ -3673,6 +3697,90 @@ type Pump = {
|
|
|
3673
3697
|
}
|
|
3674
3698
|
];
|
|
3675
3699
|
},
|
|
3700
|
+
{
|
|
3701
|
+
"name": "setReservedFeeRecipient";
|
|
3702
|
+
"discriminator": [
|
|
3703
|
+
207,
|
|
3704
|
+
189,
|
|
3705
|
+
178,
|
|
3706
|
+
71,
|
|
3707
|
+
167,
|
|
3708
|
+
122,
|
|
3709
|
+
68,
|
|
3710
|
+
180
|
|
3711
|
+
];
|
|
3712
|
+
"accounts": [
|
|
3713
|
+
{
|
|
3714
|
+
"name": "global";
|
|
3715
|
+
"writable": true;
|
|
3716
|
+
"pda": {
|
|
3717
|
+
"seeds": [
|
|
3718
|
+
{
|
|
3719
|
+
"kind": "const";
|
|
3720
|
+
"value": [
|
|
3721
|
+
103,
|
|
3722
|
+
108,
|
|
3723
|
+
111,
|
|
3724
|
+
98,
|
|
3725
|
+
97,
|
|
3726
|
+
108
|
|
3727
|
+
];
|
|
3728
|
+
}
|
|
3729
|
+
];
|
|
3730
|
+
};
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"name": "authority";
|
|
3734
|
+
"writable": true;
|
|
3735
|
+
"signer": true;
|
|
3736
|
+
"relations": [
|
|
3737
|
+
"global"
|
|
3738
|
+
];
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"name": "eventAuthority";
|
|
3742
|
+
"pda": {
|
|
3743
|
+
"seeds": [
|
|
3744
|
+
{
|
|
3745
|
+
"kind": "const";
|
|
3746
|
+
"value": [
|
|
3747
|
+
95,
|
|
3748
|
+
95,
|
|
3749
|
+
101,
|
|
3750
|
+
118,
|
|
3751
|
+
101,
|
|
3752
|
+
110,
|
|
3753
|
+
116,
|
|
3754
|
+
95,
|
|
3755
|
+
97,
|
|
3756
|
+
117,
|
|
3757
|
+
116,
|
|
3758
|
+
104,
|
|
3759
|
+
111,
|
|
3760
|
+
114,
|
|
3761
|
+
105,
|
|
3762
|
+
116,
|
|
3763
|
+
121
|
|
3764
|
+
];
|
|
3765
|
+
}
|
|
3766
|
+
];
|
|
3767
|
+
};
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
"name": "program";
|
|
3771
|
+
}
|
|
3772
|
+
];
|
|
3773
|
+
"args": [
|
|
3774
|
+
{
|
|
3775
|
+
"name": "reservedFeeRecipient";
|
|
3776
|
+
"type": "pubkey";
|
|
3777
|
+
},
|
|
3778
|
+
{
|
|
3779
|
+
"name": "whitelistPda";
|
|
3780
|
+
"type": "pubkey";
|
|
3781
|
+
}
|
|
3782
|
+
];
|
|
3783
|
+
},
|
|
3676
3784
|
{
|
|
3677
3785
|
"name": "syncUserVolumeAccumulator";
|
|
3678
3786
|
"discriminator": [
|
|
@@ -3881,6 +3989,86 @@ type Pump = {
|
|
|
3881
3989
|
}
|
|
3882
3990
|
];
|
|
3883
3991
|
},
|
|
3992
|
+
{
|
|
3993
|
+
"name": "toggleMayhemMode";
|
|
3994
|
+
"discriminator": [
|
|
3995
|
+
1,
|
|
3996
|
+
9,
|
|
3997
|
+
111,
|
|
3998
|
+
208,
|
|
3999
|
+
100,
|
|
4000
|
+
31,
|
|
4001
|
+
255,
|
|
4002
|
+
163
|
|
4003
|
+
];
|
|
4004
|
+
"accounts": [
|
|
4005
|
+
{
|
|
4006
|
+
"name": "global";
|
|
4007
|
+
"writable": true;
|
|
4008
|
+
"pda": {
|
|
4009
|
+
"seeds": [
|
|
4010
|
+
{
|
|
4011
|
+
"kind": "const";
|
|
4012
|
+
"value": [
|
|
4013
|
+
103,
|
|
4014
|
+
108,
|
|
4015
|
+
111,
|
|
4016
|
+
98,
|
|
4017
|
+
97,
|
|
4018
|
+
108
|
|
4019
|
+
];
|
|
4020
|
+
}
|
|
4021
|
+
];
|
|
4022
|
+
};
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "authority";
|
|
4026
|
+
"writable": true;
|
|
4027
|
+
"signer": true;
|
|
4028
|
+
"relations": [
|
|
4029
|
+
"global"
|
|
4030
|
+
];
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
"name": "eventAuthority";
|
|
4034
|
+
"pda": {
|
|
4035
|
+
"seeds": [
|
|
4036
|
+
{
|
|
4037
|
+
"kind": "const";
|
|
4038
|
+
"value": [
|
|
4039
|
+
95,
|
|
4040
|
+
95,
|
|
4041
|
+
101,
|
|
4042
|
+
118,
|
|
4043
|
+
101,
|
|
4044
|
+
110,
|
|
4045
|
+
116,
|
|
4046
|
+
95,
|
|
4047
|
+
97,
|
|
4048
|
+
117,
|
|
4049
|
+
116,
|
|
4050
|
+
104,
|
|
4051
|
+
111,
|
|
4052
|
+
114,
|
|
4053
|
+
105,
|
|
4054
|
+
116,
|
|
4055
|
+
121
|
|
4056
|
+
];
|
|
4057
|
+
}
|
|
4058
|
+
];
|
|
4059
|
+
};
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
"name": "program";
|
|
4063
|
+
}
|
|
4064
|
+
];
|
|
4065
|
+
"args": [
|
|
4066
|
+
{
|
|
4067
|
+
"name": "enabled";
|
|
4068
|
+
"type": "bool";
|
|
4069
|
+
}
|
|
4070
|
+
];
|
|
4071
|
+
},
|
|
3884
4072
|
{
|
|
3885
4073
|
"name": "updateGlobalAuthority";
|
|
3886
4074
|
"discriminator": [
|
|
@@ -4471,6 +4659,14 @@ type Pump = {
|
|
|
4471
4659
|
{
|
|
4472
4660
|
"code": 6046;
|
|
4473
4661
|
"name": "createV2Disabled";
|
|
4662
|
+
},
|
|
4663
|
+
{
|
|
4664
|
+
"code": 6047;
|
|
4665
|
+
"name": "cpitializeMayhemFailed";
|
|
4666
|
+
},
|
|
4667
|
+
{
|
|
4668
|
+
"code": 6048;
|
|
4669
|
+
"name": "mayhemModeDisabled";
|
|
4474
4670
|
}
|
|
4475
4671
|
];
|
|
4476
4672
|
"types": [
|
|
@@ -4586,6 +4782,10 @@ type Pump = {
|
|
|
4586
4782
|
{
|
|
4587
4783
|
"name": "creator";
|
|
4588
4784
|
"type": "pubkey";
|
|
4785
|
+
},
|
|
4786
|
+
{
|
|
4787
|
+
"name": "isMayhemMode";
|
|
4788
|
+
"type": "bool";
|
|
4589
4789
|
}
|
|
4590
4790
|
];
|
|
4591
4791
|
};
|
|
@@ -4794,6 +4994,10 @@ type Pump = {
|
|
|
4794
4994
|
{
|
|
4795
4995
|
"name": "tokenProgram";
|
|
4796
4996
|
"type": "pubkey";
|
|
4997
|
+
},
|
|
4998
|
+
{
|
|
4999
|
+
"name": "isMayhemMode";
|
|
5000
|
+
"type": "bool";
|
|
4797
5001
|
}
|
|
4798
5002
|
];
|
|
4799
5003
|
};
|
|
@@ -4979,6 +5183,18 @@ type Pump = {
|
|
|
4979
5183
|
{
|
|
4980
5184
|
"name": "createV2Enabled";
|
|
4981
5185
|
"type": "bool";
|
|
5186
|
+
},
|
|
5187
|
+
{
|
|
5188
|
+
"name": "whitelistPda";
|
|
5189
|
+
"type": "pubkey";
|
|
5190
|
+
},
|
|
5191
|
+
{
|
|
5192
|
+
"name": "reservedFeeRecipient";
|
|
5193
|
+
"type": "pubkey";
|
|
5194
|
+
},
|
|
5195
|
+
{
|
|
5196
|
+
"name": "mayhemModeEnabled";
|
|
5197
|
+
"type": "bool";
|
|
4982
5198
|
}
|
|
4983
5199
|
];
|
|
4984
5200
|
};
|
|
@@ -7482,6 +7698,26 @@ var instructions = [
|
|
|
7482
7698
|
name: "associated_token_program",
|
|
7483
7699
|
address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
7484
7700
|
},
|
|
7701
|
+
{
|
|
7702
|
+
name: "mayhem_program_id",
|
|
7703
|
+
writable: true
|
|
7704
|
+
},
|
|
7705
|
+
{
|
|
7706
|
+
name: "global_params",
|
|
7707
|
+
writable: true
|
|
7708
|
+
},
|
|
7709
|
+
{
|
|
7710
|
+
name: "sol_vault",
|
|
7711
|
+
writable: true
|
|
7712
|
+
},
|
|
7713
|
+
{
|
|
7714
|
+
name: "mayhem_state",
|
|
7715
|
+
writable: true
|
|
7716
|
+
},
|
|
7717
|
+
{
|
|
7718
|
+
name: "mayhem_token_vault",
|
|
7719
|
+
writable: true
|
|
7720
|
+
},
|
|
7485
7721
|
{
|
|
7486
7722
|
name: "event_authority",
|
|
7487
7723
|
pda: {
|
|
@@ -7531,6 +7767,10 @@ var instructions = [
|
|
|
7531
7767
|
{
|
|
7532
7768
|
name: "creator",
|
|
7533
7769
|
type: "pubkey"
|
|
7770
|
+
},
|
|
7771
|
+
{
|
|
7772
|
+
name: "is_mayhem_mode",
|
|
7773
|
+
type: "bool"
|
|
7534
7774
|
}
|
|
7535
7775
|
]
|
|
7536
7776
|
},
|
|
@@ -9033,6 +9273,90 @@ var instructions = [
|
|
|
9033
9273
|
}
|
|
9034
9274
|
]
|
|
9035
9275
|
},
|
|
9276
|
+
{
|
|
9277
|
+
name: "set_reserved_fee_recipient",
|
|
9278
|
+
discriminator: [
|
|
9279
|
+
207,
|
|
9280
|
+
189,
|
|
9281
|
+
178,
|
|
9282
|
+
71,
|
|
9283
|
+
167,
|
|
9284
|
+
122,
|
|
9285
|
+
68,
|
|
9286
|
+
180
|
|
9287
|
+
],
|
|
9288
|
+
accounts: [
|
|
9289
|
+
{
|
|
9290
|
+
name: "global",
|
|
9291
|
+
writable: true,
|
|
9292
|
+
pda: {
|
|
9293
|
+
seeds: [
|
|
9294
|
+
{
|
|
9295
|
+
kind: "const",
|
|
9296
|
+
value: [
|
|
9297
|
+
103,
|
|
9298
|
+
108,
|
|
9299
|
+
111,
|
|
9300
|
+
98,
|
|
9301
|
+
97,
|
|
9302
|
+
108
|
|
9303
|
+
]
|
|
9304
|
+
}
|
|
9305
|
+
]
|
|
9306
|
+
}
|
|
9307
|
+
},
|
|
9308
|
+
{
|
|
9309
|
+
name: "authority",
|
|
9310
|
+
writable: true,
|
|
9311
|
+
signer: true,
|
|
9312
|
+
relations: [
|
|
9313
|
+
"global"
|
|
9314
|
+
]
|
|
9315
|
+
},
|
|
9316
|
+
{
|
|
9317
|
+
name: "event_authority",
|
|
9318
|
+
pda: {
|
|
9319
|
+
seeds: [
|
|
9320
|
+
{
|
|
9321
|
+
kind: "const",
|
|
9322
|
+
value: [
|
|
9323
|
+
95,
|
|
9324
|
+
95,
|
|
9325
|
+
101,
|
|
9326
|
+
118,
|
|
9327
|
+
101,
|
|
9328
|
+
110,
|
|
9329
|
+
116,
|
|
9330
|
+
95,
|
|
9331
|
+
97,
|
|
9332
|
+
117,
|
|
9333
|
+
116,
|
|
9334
|
+
104,
|
|
9335
|
+
111,
|
|
9336
|
+
114,
|
|
9337
|
+
105,
|
|
9338
|
+
116,
|
|
9339
|
+
121
|
|
9340
|
+
]
|
|
9341
|
+
}
|
|
9342
|
+
]
|
|
9343
|
+
}
|
|
9344
|
+
},
|
|
9345
|
+
{
|
|
9346
|
+
name: "program"
|
|
9347
|
+
}
|
|
9348
|
+
],
|
|
9349
|
+
args: [
|
|
9350
|
+
{
|
|
9351
|
+
name: "reserved_fee_recipient",
|
|
9352
|
+
type: "pubkey"
|
|
9353
|
+
},
|
|
9354
|
+
{
|
|
9355
|
+
name: "whitelist_pda",
|
|
9356
|
+
type: "pubkey"
|
|
9357
|
+
}
|
|
9358
|
+
]
|
|
9359
|
+
},
|
|
9036
9360
|
{
|
|
9037
9361
|
name: "sync_user_volume_accumulator",
|
|
9038
9362
|
discriminator: [
|
|
@@ -9242,6 +9566,86 @@ var instructions = [
|
|
|
9242
9566
|
}
|
|
9243
9567
|
]
|
|
9244
9568
|
},
|
|
9569
|
+
{
|
|
9570
|
+
name: "toggle_mayhem_mode",
|
|
9571
|
+
discriminator: [
|
|
9572
|
+
1,
|
|
9573
|
+
9,
|
|
9574
|
+
111,
|
|
9575
|
+
208,
|
|
9576
|
+
100,
|
|
9577
|
+
31,
|
|
9578
|
+
255,
|
|
9579
|
+
163
|
|
9580
|
+
],
|
|
9581
|
+
accounts: [
|
|
9582
|
+
{
|
|
9583
|
+
name: "global",
|
|
9584
|
+
writable: true,
|
|
9585
|
+
pda: {
|
|
9586
|
+
seeds: [
|
|
9587
|
+
{
|
|
9588
|
+
kind: "const",
|
|
9589
|
+
value: [
|
|
9590
|
+
103,
|
|
9591
|
+
108,
|
|
9592
|
+
111,
|
|
9593
|
+
98,
|
|
9594
|
+
97,
|
|
9595
|
+
108
|
|
9596
|
+
]
|
|
9597
|
+
}
|
|
9598
|
+
]
|
|
9599
|
+
}
|
|
9600
|
+
},
|
|
9601
|
+
{
|
|
9602
|
+
name: "authority",
|
|
9603
|
+
writable: true,
|
|
9604
|
+
signer: true,
|
|
9605
|
+
relations: [
|
|
9606
|
+
"global"
|
|
9607
|
+
]
|
|
9608
|
+
},
|
|
9609
|
+
{
|
|
9610
|
+
name: "event_authority",
|
|
9611
|
+
pda: {
|
|
9612
|
+
seeds: [
|
|
9613
|
+
{
|
|
9614
|
+
kind: "const",
|
|
9615
|
+
value: [
|
|
9616
|
+
95,
|
|
9617
|
+
95,
|
|
9618
|
+
101,
|
|
9619
|
+
118,
|
|
9620
|
+
101,
|
|
9621
|
+
110,
|
|
9622
|
+
116,
|
|
9623
|
+
95,
|
|
9624
|
+
97,
|
|
9625
|
+
117,
|
|
9626
|
+
116,
|
|
9627
|
+
104,
|
|
9628
|
+
111,
|
|
9629
|
+
114,
|
|
9630
|
+
105,
|
|
9631
|
+
116,
|
|
9632
|
+
121
|
|
9633
|
+
]
|
|
9634
|
+
}
|
|
9635
|
+
]
|
|
9636
|
+
}
|
|
9637
|
+
},
|
|
9638
|
+
{
|
|
9639
|
+
name: "program"
|
|
9640
|
+
}
|
|
9641
|
+
],
|
|
9642
|
+
args: [
|
|
9643
|
+
{
|
|
9644
|
+
name: "enabled",
|
|
9645
|
+
type: "bool"
|
|
9646
|
+
}
|
|
9647
|
+
]
|
|
9648
|
+
},
|
|
9245
9649
|
{
|
|
9246
9650
|
name: "update_global_authority",
|
|
9247
9651
|
discriminator: [
|
|
@@ -9833,6 +10237,14 @@ var errors = [
|
|
|
9833
10237
|
{
|
|
9834
10238
|
code: 6046,
|
|
9835
10239
|
name: "CreateV2Disabled"
|
|
10240
|
+
},
|
|
10241
|
+
{
|
|
10242
|
+
code: 6047,
|
|
10243
|
+
name: "CpitializeMayhemFailed"
|
|
10244
|
+
},
|
|
10245
|
+
{
|
|
10246
|
+
code: 6048,
|
|
10247
|
+
name: "MayhemModeDisabled"
|
|
9836
10248
|
}
|
|
9837
10249
|
];
|
|
9838
10250
|
var types = [
|
|
@@ -9948,6 +10360,10 @@ var types = [
|
|
|
9948
10360
|
{
|
|
9949
10361
|
name: "creator",
|
|
9950
10362
|
type: "pubkey"
|
|
10363
|
+
},
|
|
10364
|
+
{
|
|
10365
|
+
name: "is_mayhem_mode",
|
|
10366
|
+
type: "bool"
|
|
9951
10367
|
}
|
|
9952
10368
|
]
|
|
9953
10369
|
}
|
|
@@ -10156,6 +10572,10 @@ var types = [
|
|
|
10156
10572
|
{
|
|
10157
10573
|
name: "token_program",
|
|
10158
10574
|
type: "pubkey"
|
|
10575
|
+
},
|
|
10576
|
+
{
|
|
10577
|
+
name: "is_mayhem_mode",
|
|
10578
|
+
type: "bool"
|
|
10159
10579
|
}
|
|
10160
10580
|
]
|
|
10161
10581
|
}
|
|
@@ -10341,6 +10761,18 @@ var types = [
|
|
|
10341
10761
|
{
|
|
10342
10762
|
name: "create_v2_enabled",
|
|
10343
10763
|
type: "bool"
|
|
10764
|
+
},
|
|
10765
|
+
{
|
|
10766
|
+
name: "whitelist_pda",
|
|
10767
|
+
type: "pubkey"
|
|
10768
|
+
},
|
|
10769
|
+
{
|
|
10770
|
+
name: "reserved_fee_recipient",
|
|
10771
|
+
type: "pubkey"
|
|
10772
|
+
},
|
|
10773
|
+
{
|
|
10774
|
+
name: "mayhem_mode_enabled",
|
|
10775
|
+
type: "bool"
|
|
10344
10776
|
}
|
|
10345
10777
|
]
|
|
10346
10778
|
}
|
|
@@ -10747,6 +11179,10 @@ interface Global {
|
|
|
10747
11179
|
feeRecipients: PublicKey[];
|
|
10748
11180
|
setCreatorAuthority: PublicKey;
|
|
10749
11181
|
adminSetCreatorAuthority: PublicKey;
|
|
11182
|
+
createV2Enabled: boolean;
|
|
11183
|
+
whitelistPda: PublicKey;
|
|
11184
|
+
reservedFeeRecipient: PublicKey;
|
|
11185
|
+
mayhemModeEnabled: boolean;
|
|
10750
11186
|
}
|
|
10751
11187
|
interface BondingCurve {
|
|
10752
11188
|
virtualTokenReserves: BN;
|
|
@@ -10756,6 +11192,7 @@ interface BondingCurve {
|
|
|
10756
11192
|
tokenTotalSupply: BN;
|
|
10757
11193
|
complete: boolean;
|
|
10758
11194
|
creator: PublicKey;
|
|
11195
|
+
isMayhemMode: boolean;
|
|
10759
11196
|
}
|
|
10760
11197
|
interface GlobalVolumeAccumulator {
|
|
10761
11198
|
startTime: BN;
|
|
@@ -10830,11 +11267,15 @@ declare function pumpPoolAuthorityPda(mint: PublicKey): PublicKey;
|
|
|
10830
11267
|
declare const CANONICAL_POOL_INDEX = 0;
|
|
10831
11268
|
declare function canonicalPumpPoolPda(mint: PublicKey): PublicKey;
|
|
10832
11269
|
declare function userVolumeAccumulatorPda(user: PublicKey): PublicKey;
|
|
11270
|
+
declare const getGlobalParamsPda: () => PublicKey;
|
|
11271
|
+
declare const getMayhemStatePda: (mint: PublicKey) => PublicKey;
|
|
11272
|
+
declare const getSolVaultPda: () => PublicKey;
|
|
11273
|
+
declare const getTokenVaultPda: (mintPubkey: PublicKey) => PublicKey;
|
|
10833
11274
|
|
|
10834
11275
|
declare function getPumpProgram(connection: Connection): Program<Pump>;
|
|
10835
11276
|
declare const PUMP_PROGRAM_ID: PublicKey;
|
|
10836
11277
|
declare const PUMP_AMM_PROGRAM_ID: PublicKey;
|
|
10837
|
-
declare const BONDING_CURVE_NEW_SIZE =
|
|
11278
|
+
declare const BONDING_CURVE_NEW_SIZE = 151;
|
|
10838
11279
|
declare class PumpSdk {
|
|
10839
11280
|
private readonly offlinePumpProgram;
|
|
10840
11281
|
constructor();
|
|
@@ -10856,13 +11297,14 @@ declare class PumpSdk {
|
|
|
10856
11297
|
creator: PublicKey;
|
|
10857
11298
|
user: PublicKey;
|
|
10858
11299
|
}): Promise<TransactionInstruction>;
|
|
10859
|
-
createV2Instruction({ mint, name, symbol, uri, creator, user, }: {
|
|
11300
|
+
createV2Instruction({ mint, name, symbol, uri, creator, user, mayhemMode }: {
|
|
10860
11301
|
mint: PublicKey;
|
|
10861
11302
|
name: string;
|
|
10862
11303
|
symbol: string;
|
|
10863
11304
|
uri: string;
|
|
10864
11305
|
creator: PublicKey;
|
|
10865
11306
|
user: PublicKey;
|
|
11307
|
+
mayhemMode: boolean;
|
|
10866
11308
|
}): Promise<TransactionInstruction>;
|
|
10867
11309
|
buyInstructions({ global, bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo, mint, user, amount, solAmount, slippage, tokenProgram, }: {
|
|
10868
11310
|
global: Global;
|
|
@@ -10876,7 +11318,7 @@ declare class PumpSdk {
|
|
|
10876
11318
|
slippage: number;
|
|
10877
11319
|
tokenProgram: PublicKey;
|
|
10878
11320
|
}): Promise<TransactionInstruction[]>;
|
|
10879
|
-
createV2AndBuyInstructions({ global, mint, name, symbol, uri, creator, user, amount, solAmount, }: {
|
|
11321
|
+
createV2AndBuyInstructions({ global, mint, name, symbol, uri, creator, user, amount, solAmount, mayhemMode, }: {
|
|
10880
11322
|
global: Global;
|
|
10881
11323
|
mint: PublicKey;
|
|
10882
11324
|
name: string;
|
|
@@ -10886,6 +11328,7 @@ declare class PumpSdk {
|
|
|
10886
11328
|
user: PublicKey;
|
|
10887
11329
|
amount: BN;
|
|
10888
11330
|
solAmount: BN;
|
|
11331
|
+
mayhemMode: boolean;
|
|
10889
11332
|
}): Promise<TransactionInstruction[]>;
|
|
10890
11333
|
/**
|
|
10891
11334
|
* @deprecated Use `createV2AndBuyInstructions` instead.
|
|
@@ -10902,7 +11345,7 @@ declare class PumpSdk {
|
|
|
10902
11345
|
solAmount: BN;
|
|
10903
11346
|
}): Promise<TransactionInstruction[]>;
|
|
10904
11347
|
private buyInstruction;
|
|
10905
|
-
sellInstructions({ global, bondingCurveAccountInfo, bondingCurve, mint, user, amount, solAmount, slippage, tokenProgram, }: {
|
|
11348
|
+
sellInstructions({ global, bondingCurveAccountInfo, bondingCurve, mint, user, amount, solAmount, slippage, tokenProgram, mayhemMode }: {
|
|
10906
11349
|
global: Global;
|
|
10907
11350
|
bondingCurveAccountInfo: AccountInfo<Buffer>;
|
|
10908
11351
|
bondingCurve: BondingCurve;
|
|
@@ -10912,6 +11355,7 @@ declare class PumpSdk {
|
|
|
10912
11355
|
solAmount: BN;
|
|
10913
11356
|
slippage: number;
|
|
10914
11357
|
tokenProgram: PublicKey;
|
|
11358
|
+
mayhemMode: boolean;
|
|
10915
11359
|
}): Promise<TransactionInstruction[]>;
|
|
10916
11360
|
extendAccountInstruction({ account, user, }: {
|
|
10917
11361
|
account: PublicKey;
|
|
@@ -10998,4 +11442,4 @@ declare class OnlinePumpSdk {
|
|
|
10998
11442
|
declare function totalUnclaimedTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
10999
11443
|
declare function currentDayTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;
|
|
11000
11444
|
|
|
11001
|
-
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, PUMP_SDK, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuyTokenAmountFromSolAmount, getPumpProgram, getSellSolAmountFromTokenAmount, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };
|
|
11445
|
+
export { BONDING_CURVE_NEW_SIZE, type BondingCurve, CANONICAL_POOL_INDEX, type FeeConfig, GLOBAL_PDA, GLOBAL_VOLUME_ACCUMULATOR_PDA, type Global, type GlobalVolumeAccumulator, OnlinePumpSdk, PUMP_AMM_PROGRAM_ID, PUMP_FEE_CONFIG_PDA, PUMP_PROGRAM_ID, PUMP_SDK, type Pump, PumpSdk, type UserVolumeAccumulator, type UserVolumeAccumulatorTotalStats, bondingCurveMarketCap, bondingCurvePda, canonicalPumpPoolPda, creatorVaultPda, currentDayTokens, getBuySolAmountFromTokenAmount, getBuyTokenAmountFromSolAmount, getGlobalParamsPda, getMayhemStatePda, getPumpProgram, getSellSolAmountFromTokenAmount, getSolVaultPda, getTokenVaultPda, newBondingCurve, pump as pumpIdl, pumpPoolAuthorityPda, totalUnclaimedTokens, userVolumeAccumulatorPda };
|