@pump-fun/pump-sdk 1.11.0 → 1.12.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 CHANGED
@@ -732,15 +732,10 @@ var pump_default = {
732
732
  },
733
733
  {
734
734
  kind: "account",
735
- path: "user_acc_target"
735
+ path: "user"
736
736
  }
737
737
  ]
738
738
  }
739
- },
740
- {
741
- name: "user_acc_target",
742
- writable: true,
743
- signer: true
744
739
  }
745
740
  ],
746
741
  args: [
@@ -751,6 +746,14 @@ var pump_default = {
751
746
  {
752
747
  name: "max_sol_cost",
753
748
  type: "u64"
749
+ },
750
+ {
751
+ name: "track_volume",
752
+ type: {
753
+ defined: {
754
+ name: "OptionBool"
755
+ }
756
+ }
754
757
  }
755
758
  ]
756
759
  },
@@ -4163,6 +4166,15 @@ var pump_default = {
4163
4166
  ]
4164
4167
  }
4165
4168
  },
4169
+ {
4170
+ name: "OptionBool",
4171
+ type: {
4172
+ kind: "struct",
4173
+ fields: [
4174
+ "bool"
4175
+ ]
4176
+ }
4177
+ },
4166
4178
  {
4167
4179
  name: "SetCreatorEvent",
4168
4180
  type: {
@@ -4376,6 +4388,10 @@ var pump_default = {
4376
4388
  {
4377
4389
  name: "creator_fee",
4378
4390
  type: "u64"
4391
+ },
4392
+ {
4393
+ name: "track_volume",
4394
+ type: "bool"
4379
4395
  }
4380
4396
  ]
4381
4397
  }
@@ -4806,14 +4822,14 @@ var PumpSdk = class {
4806
4822
  amount,
4807
4823
  solAmount.add(
4808
4824
  solAmount.mul(new BN3(Math.floor(slippage * 10))).div(new BN3(1e3))
4809
- )
4825
+ ),
4826
+ { 0: true }
4810
4827
  ).accountsPartial({
4811
4828
  feeRecipient: getFeeRecipient(global),
4812
4829
  mint,
4813
4830
  associatedUser,
4814
4831
  user,
4815
- creatorVault: creatorVaultPda(creator),
4816
- userAccTarget: user
4832
+ creatorVault: creatorVaultPda(creator)
4817
4833
  }).instruction();
4818
4834
  }
4819
4835
  async sellInstructions({
package/dist/index.d.mts CHANGED
@@ -741,15 +741,10 @@ type Pump = {
741
741
  },
742
742
  {
743
743
  "kind": "account";
744
- "path": "userAccTarget";
744
+ "path": "user";
745
745
  }
746
746
  ];
747
747
  };
748
- },
749
- {
750
- "name": "userAccTarget";
751
- "writable": true;
752
- "signer": true;
753
748
  }
754
749
  ];
755
750
  "args": [
@@ -760,6 +755,14 @@ type Pump = {
760
755
  {
761
756
  "name": "maxSolCost";
762
757
  "type": "u64";
758
+ },
759
+ {
760
+ "name": "trackVolume";
761
+ "type": {
762
+ "defined": {
763
+ "name": "optionBool";
764
+ };
765
+ };
763
766
  }
764
767
  ];
765
768
  },
@@ -4172,6 +4175,15 @@ type Pump = {
4172
4175
  ];
4173
4176
  };
4174
4177
  },
4178
+ {
4179
+ "name": "optionBool";
4180
+ "type": {
4181
+ "kind": "struct";
4182
+ "fields": [
4183
+ "bool"
4184
+ ];
4185
+ };
4186
+ },
4175
4187
  {
4176
4188
  "name": "setCreatorEvent";
4177
4189
  "type": {
@@ -4385,6 +4397,10 @@ type Pump = {
4385
4397
  {
4386
4398
  "name": "creatorFee";
4387
4399
  "type": "u64";
4400
+ },
4401
+ {
4402
+ "name": "trackVolume";
4403
+ "type": "bool";
4388
4404
  }
4389
4405
  ];
4390
4406
  };
@@ -5185,15 +5201,10 @@ var instructions = [
5185
5201
  },
5186
5202
  {
5187
5203
  kind: "account",
5188
- path: "user_acc_target"
5204
+ path: "user"
5189
5205
  }
5190
5206
  ]
5191
5207
  }
5192
- },
5193
- {
5194
- name: "user_acc_target",
5195
- writable: true,
5196
- signer: true
5197
5208
  }
5198
5209
  ],
5199
5210
  args: [
@@ -5204,6 +5215,14 @@ var instructions = [
5204
5215
  {
5205
5216
  name: "max_sol_cost",
5206
5217
  type: "u64"
5218
+ },
5219
+ {
5220
+ name: "track_volume",
5221
+ type: {
5222
+ defined: {
5223
+ name: "OptionBool"
5224
+ }
5225
+ }
5207
5226
  }
5208
5227
  ]
5209
5228
  },
@@ -8626,6 +8645,15 @@ var types = [
8626
8645
  ]
8627
8646
  }
8628
8647
  },
8648
+ {
8649
+ name: "OptionBool",
8650
+ type: {
8651
+ kind: "struct",
8652
+ fields: [
8653
+ "bool"
8654
+ ]
8655
+ }
8656
+ },
8629
8657
  {
8630
8658
  name: "SetCreatorEvent",
8631
8659
  type: {
@@ -8839,6 +8867,10 @@ var types = [
8839
8867
  {
8840
8868
  name: "creator_fee",
8841
8869
  type: "u64"
8870
+ },
8871
+ {
8872
+ name: "track_volume",
8873
+ type: "bool"
8842
8874
  }
8843
8875
  ]
8844
8876
  }
package/dist/index.d.ts CHANGED
@@ -741,15 +741,10 @@ type Pump = {
741
741
  },
742
742
  {
743
743
  "kind": "account";
744
- "path": "userAccTarget";
744
+ "path": "user";
745
745
  }
746
746
  ];
747
747
  };
748
- },
749
- {
750
- "name": "userAccTarget";
751
- "writable": true;
752
- "signer": true;
753
748
  }
754
749
  ];
755
750
  "args": [
@@ -760,6 +755,14 @@ type Pump = {
760
755
  {
761
756
  "name": "maxSolCost";
762
757
  "type": "u64";
758
+ },
759
+ {
760
+ "name": "trackVolume";
761
+ "type": {
762
+ "defined": {
763
+ "name": "optionBool";
764
+ };
765
+ };
763
766
  }
764
767
  ];
765
768
  },
@@ -4172,6 +4175,15 @@ type Pump = {
4172
4175
  ];
4173
4176
  };
4174
4177
  },
4178
+ {
4179
+ "name": "optionBool";
4180
+ "type": {
4181
+ "kind": "struct";
4182
+ "fields": [
4183
+ "bool"
4184
+ ];
4185
+ };
4186
+ },
4175
4187
  {
4176
4188
  "name": "setCreatorEvent";
4177
4189
  "type": {
@@ -4385,6 +4397,10 @@ type Pump = {
4385
4397
  {
4386
4398
  "name": "creatorFee";
4387
4399
  "type": "u64";
4400
+ },
4401
+ {
4402
+ "name": "trackVolume";
4403
+ "type": "bool";
4388
4404
  }
4389
4405
  ];
4390
4406
  };
@@ -5185,15 +5201,10 @@ var instructions = [
5185
5201
  },
5186
5202
  {
5187
5203
  kind: "account",
5188
- path: "user_acc_target"
5204
+ path: "user"
5189
5205
  }
5190
5206
  ]
5191
5207
  }
5192
- },
5193
- {
5194
- name: "user_acc_target",
5195
- writable: true,
5196
- signer: true
5197
5208
  }
5198
5209
  ],
5199
5210
  args: [
@@ -5204,6 +5215,14 @@ var instructions = [
5204
5215
  {
5205
5216
  name: "max_sol_cost",
5206
5217
  type: "u64"
5218
+ },
5219
+ {
5220
+ name: "track_volume",
5221
+ type: {
5222
+ defined: {
5223
+ name: "OptionBool"
5224
+ }
5225
+ }
5207
5226
  }
5208
5227
  ]
5209
5228
  },
@@ -8626,6 +8645,15 @@ var types = [
8626
8645
  ]
8627
8646
  }
8628
8647
  },
8648
+ {
8649
+ name: "OptionBool",
8650
+ type: {
8651
+ kind: "struct",
8652
+ fields: [
8653
+ "bool"
8654
+ ]
8655
+ }
8656
+ },
8629
8657
  {
8630
8658
  name: "SetCreatorEvent",
8631
8659
  type: {
@@ -8839,6 +8867,10 @@ var types = [
8839
8867
  {
8840
8868
  name: "creator_fee",
8841
8869
  type: "u64"
8870
+ },
8871
+ {
8872
+ name: "track_volume",
8873
+ type: "bool"
8842
8874
  }
8843
8875
  ]
8844
8876
  }
package/dist/index.js CHANGED
@@ -787,15 +787,10 @@ var pump_default = {
787
787
  },
788
788
  {
789
789
  kind: "account",
790
- path: "user_acc_target"
790
+ path: "user"
791
791
  }
792
792
  ]
793
793
  }
794
- },
795
- {
796
- name: "user_acc_target",
797
- writable: true,
798
- signer: true
799
794
  }
800
795
  ],
801
796
  args: [
@@ -806,6 +801,14 @@ var pump_default = {
806
801
  {
807
802
  name: "max_sol_cost",
808
803
  type: "u64"
804
+ },
805
+ {
806
+ name: "track_volume",
807
+ type: {
808
+ defined: {
809
+ name: "OptionBool"
810
+ }
811
+ }
809
812
  }
810
813
  ]
811
814
  },
@@ -4218,6 +4221,15 @@ var pump_default = {
4218
4221
  ]
4219
4222
  }
4220
4223
  },
4224
+ {
4225
+ name: "OptionBool",
4226
+ type: {
4227
+ kind: "struct",
4228
+ fields: [
4229
+ "bool"
4230
+ ]
4231
+ }
4232
+ },
4221
4233
  {
4222
4234
  name: "SetCreatorEvent",
4223
4235
  type: {
@@ -4431,6 +4443,10 @@ var pump_default = {
4431
4443
  {
4432
4444
  name: "creator_fee",
4433
4445
  type: "u64"
4446
+ },
4447
+ {
4448
+ name: "track_volume",
4449
+ type: "bool"
4434
4450
  }
4435
4451
  ]
4436
4452
  }
@@ -4853,14 +4869,14 @@ var PumpSdk = class {
4853
4869
  amount,
4854
4870
  solAmount.add(
4855
4871
  solAmount.mul(new import_bn3.default(Math.floor(slippage * 10))).div(new import_bn3.default(1e3))
4856
- )
4872
+ ),
4873
+ { 0: true }
4857
4874
  ).accountsPartial({
4858
4875
  feeRecipient: getFeeRecipient(global),
4859
4876
  mint,
4860
4877
  associatedUser,
4861
4878
  user,
4862
- creatorVault: creatorVaultPda(creator),
4863
- userAccTarget: user
4879
+ creatorVault: creatorVaultPda(creator)
4864
4880
  }).instruction();
4865
4881
  }
4866
4882
  async sellInstructions({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.11.0",
3
+ "version": "1.12.0-devnet.1",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@coral-xyz/anchor": "^0.31.1",
42
- "@pump-fun/pump-swap-sdk": "^1.4.0",
42
+ "@pump-fun/pump-swap-sdk": "^1.5.1",
43
43
  "@solana/spl-token": "^0.4.13",
44
44
  "@solana/web3.js": "^1.98.2",
45
45
  "bn.js": "^5.2.2",
package/src/idl/pump.json CHANGED
@@ -731,15 +731,10 @@
731
731
  },
732
732
  {
733
733
  "kind": "account",
734
- "path": "user_acc_target"
734
+ "path": "user"
735
735
  }
736
736
  ]
737
737
  }
738
- },
739
- {
740
- "name": "user_acc_target",
741
- "writable": true,
742
- "signer": true
743
738
  }
744
739
  ],
745
740
  "args": [
@@ -750,6 +745,14 @@
750
745
  {
751
746
  "name": "max_sol_cost",
752
747
  "type": "u64"
748
+ },
749
+ {
750
+ "name": "track_volume",
751
+ "type": {
752
+ "defined": {
753
+ "name": "OptionBool"
754
+ }
755
+ }
753
756
  }
754
757
  ]
755
758
  },
@@ -4162,6 +4165,15 @@
4162
4165
  ]
4163
4166
  }
4164
4167
  },
4168
+ {
4169
+ "name": "OptionBool",
4170
+ "type": {
4171
+ "kind": "struct",
4172
+ "fields": [
4173
+ "bool"
4174
+ ]
4175
+ }
4176
+ },
4165
4177
  {
4166
4178
  "name": "SetCreatorEvent",
4167
4179
  "type": {
@@ -4375,6 +4387,10 @@
4375
4387
  {
4376
4388
  "name": "creator_fee",
4377
4389
  "type": "u64"
4390
+ },
4391
+ {
4392
+ "name": "track_volume",
4393
+ "type": "bool"
4378
4394
  }
4379
4395
  ]
4380
4396
  }
package/src/idl/pump.ts CHANGED
@@ -737,15 +737,10 @@ export type Pump = {
737
737
  },
738
738
  {
739
739
  "kind": "account",
740
- "path": "userAccTarget"
740
+ "path": "user"
741
741
  }
742
742
  ]
743
743
  }
744
- },
745
- {
746
- "name": "userAccTarget",
747
- "writable": true,
748
- "signer": true
749
744
  }
750
745
  ],
751
746
  "args": [
@@ -756,6 +751,14 @@ export type Pump = {
756
751
  {
757
752
  "name": "maxSolCost",
758
753
  "type": "u64"
754
+ },
755
+ {
756
+ "name": "trackVolume",
757
+ "type": {
758
+ "defined": {
759
+ "name": "optionBool"
760
+ }
761
+ }
759
762
  }
760
763
  ]
761
764
  },
@@ -4168,6 +4171,15 @@ export type Pump = {
4168
4171
  ]
4169
4172
  }
4170
4173
  },
4174
+ {
4175
+ "name": "optionBool",
4176
+ "type": {
4177
+ "kind": "struct",
4178
+ "fields": [
4179
+ "bool"
4180
+ ]
4181
+ }
4182
+ },
4171
4183
  {
4172
4184
  "name": "setCreatorEvent",
4173
4185
  "type": {
@@ -4381,6 +4393,10 @@ export type Pump = {
4381
4393
  {
4382
4394
  "name": "creatorFee",
4383
4395
  "type": "u64"
4396
+ },
4397
+ {
4398
+ "name": "trackVolume",
4399
+ "type": "bool"
4384
4400
  }
4385
4401
  ]
4386
4402
  }
package/src/sdk.ts CHANGED
@@ -329,6 +329,7 @@ export class PumpSdk {
329
329
  solAmount.add(
330
330
  solAmount.mul(new BN(Math.floor(slippage * 10))).div(new BN(1000)),
331
331
  ),
332
+ { 0: true },
332
333
  )
333
334
  .accountsPartial({
334
335
  feeRecipient: getFeeRecipient(global),
@@ -336,7 +337,6 @@ export class PumpSdk {
336
337
  associatedUser,
337
338
  user,
338
339
  creatorVault: creatorVaultPda(creator),
339
- userAccTarget: user,
340
340
  })
341
341
  .instruction();
342
342
  }