@pump-fun/pump-sdk 1.19.0-devnet.1 → 1.20.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/index.js CHANGED
@@ -2338,41 +2338,8 @@ var pump_default = {
2338
2338
  path: "bonding_curve"
2339
2339
  },
2340
2340
  {
2341
- kind: "const",
2342
- value: [
2343
- 6,
2344
- 221,
2345
- 246,
2346
- 225,
2347
- 215,
2348
- 101,
2349
- 161,
2350
- 147,
2351
- 217,
2352
- 203,
2353
- 225,
2354
- 70,
2355
- 206,
2356
- 235,
2357
- 121,
2358
- 172,
2359
- 28,
2360
- 180,
2361
- 133,
2362
- 237,
2363
- 95,
2364
- 91,
2365
- 55,
2366
- 145,
2367
- 58,
2368
- 140,
2369
- 245,
2370
- 133,
2371
- 126,
2372
- 255,
2373
- 0,
2374
- 169
2375
- ]
2341
+ kind: "account",
2342
+ path: "token_program"
2376
2343
  },
2377
2344
  {
2378
2345
  kind: "account",
@@ -2432,8 +2399,7 @@ var pump_default = {
2432
2399
  address: "11111111111111111111111111111111"
2433
2400
  },
2434
2401
  {
2435
- name: "token_program",
2436
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2402
+ name: "token_program"
2437
2403
  },
2438
2404
  {
2439
2405
  name: "creator_vault",
@@ -2754,41 +2720,8 @@ var pump_default = {
2754
2720
  path: "bonding_curve"
2755
2721
  },
2756
2722
  {
2757
- kind: "const",
2758
- value: [
2759
- 6,
2760
- 221,
2761
- 246,
2762
- 225,
2763
- 215,
2764
- 101,
2765
- 161,
2766
- 147,
2767
- 217,
2768
- 203,
2769
- 225,
2770
- 70,
2771
- 206,
2772
- 235,
2773
- 121,
2774
- 172,
2775
- 28,
2776
- 180,
2777
- 133,
2778
- 237,
2779
- 95,
2780
- 91,
2781
- 55,
2782
- 145,
2783
- 58,
2784
- 140,
2785
- 245,
2786
- 133,
2787
- 126,
2788
- 255,
2789
- 0,
2790
- 169
2791
- ]
2723
+ kind: "account",
2724
+ path: "token_program"
2792
2725
  },
2793
2726
  {
2794
2727
  kind: "account",
@@ -2848,8 +2781,7 @@ var pump_default = {
2848
2781
  address: "11111111111111111111111111111111"
2849
2782
  },
2850
2783
  {
2851
- name: "token_program",
2852
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
2784
+ name: "token_program"
2853
2785
  },
2854
2786
  {
2855
2787
  name: "creator_vault",
@@ -3772,14 +3704,239 @@ var pump_default = {
3772
3704
  ]
3773
3705
  },
3774
3706
  {
3775
- kind: "account",
3776
- path: "mint"
3707
+ kind: "account",
3708
+ path: "mint"
3709
+ }
3710
+ ],
3711
+ program: {
3712
+ kind: "account",
3713
+ path: "mpl_token_metadata"
3714
+ }
3715
+ }
3716
+ },
3717
+ {
3718
+ name: "user",
3719
+ writable: true,
3720
+ signer: true
3721
+ },
3722
+ {
3723
+ name: "system_program",
3724
+ address: "11111111111111111111111111111111"
3725
+ },
3726
+ {
3727
+ name: "token_program",
3728
+ address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3729
+ },
3730
+ {
3731
+ name: "associated_token_program",
3732
+ address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3733
+ },
3734
+ {
3735
+ name: "rent",
3736
+ address: "SysvarRent111111111111111111111111111111111"
3737
+ },
3738
+ {
3739
+ name: "event_authority",
3740
+ pda: {
3741
+ seeds: [
3742
+ {
3743
+ kind: "const",
3744
+ value: [
3745
+ 95,
3746
+ 95,
3747
+ 101,
3748
+ 118,
3749
+ 101,
3750
+ 110,
3751
+ 116,
3752
+ 95,
3753
+ 97,
3754
+ 117,
3755
+ 116,
3756
+ 104,
3757
+ 111,
3758
+ 114,
3759
+ 105,
3760
+ 116,
3761
+ 121
3762
+ ]
3763
+ }
3764
+ ]
3765
+ }
3766
+ },
3767
+ {
3768
+ name: "program"
3769
+ }
3770
+ ],
3771
+ args: [
3772
+ {
3773
+ name: "name",
3774
+ type: "string"
3775
+ },
3776
+ {
3777
+ name: "symbol",
3778
+ type: "string"
3779
+ },
3780
+ {
3781
+ name: "uri",
3782
+ type: "string"
3783
+ },
3784
+ {
3785
+ name: "creator",
3786
+ type: "pubkey"
3787
+ }
3788
+ ]
3789
+ },
3790
+ {
3791
+ name: "create_v2",
3792
+ docs: [
3793
+ "Creates a new spl-22 coin and bonding curve."
3794
+ ],
3795
+ discriminator: [
3796
+ 214,
3797
+ 144,
3798
+ 76,
3799
+ 236,
3800
+ 95,
3801
+ 139,
3802
+ 49,
3803
+ 180
3804
+ ],
3805
+ accounts: [
3806
+ {
3807
+ name: "mint",
3808
+ writable: true,
3809
+ signer: true
3810
+ },
3811
+ {
3812
+ name: "mint_authority",
3813
+ pda: {
3814
+ seeds: [
3815
+ {
3816
+ kind: "const",
3817
+ value: [
3818
+ 109,
3819
+ 105,
3820
+ 110,
3821
+ 116,
3822
+ 45,
3823
+ 97,
3824
+ 117,
3825
+ 116,
3826
+ 104,
3827
+ 111,
3828
+ 114,
3829
+ 105,
3830
+ 116,
3831
+ 121
3832
+ ]
3833
+ }
3834
+ ]
3835
+ }
3836
+ },
3837
+ {
3838
+ name: "bonding_curve",
3839
+ writable: true,
3840
+ pda: {
3841
+ seeds: [
3842
+ {
3843
+ kind: "const",
3844
+ value: [
3845
+ 98,
3846
+ 111,
3847
+ 110,
3848
+ 100,
3849
+ 105,
3850
+ 110,
3851
+ 103,
3852
+ 45,
3853
+ 99,
3854
+ 117,
3855
+ 114,
3856
+ 118,
3857
+ 101
3858
+ ]
3859
+ },
3860
+ {
3861
+ kind: "account",
3862
+ path: "mint"
3863
+ }
3864
+ ]
3865
+ }
3866
+ },
3867
+ {
3868
+ name: "associated_bonding_curve",
3869
+ writable: true,
3870
+ pda: {
3871
+ seeds: [
3872
+ {
3873
+ kind: "account",
3874
+ path: "bonding_curve"
3875
+ },
3876
+ {
3877
+ kind: "account",
3878
+ path: "token_program"
3879
+ },
3880
+ {
3881
+ kind: "account",
3882
+ path: "mint"
3883
+ }
3884
+ ],
3885
+ program: {
3886
+ kind: "const",
3887
+ value: [
3888
+ 140,
3889
+ 151,
3890
+ 37,
3891
+ 143,
3892
+ 78,
3893
+ 36,
3894
+ 137,
3895
+ 241,
3896
+ 187,
3897
+ 61,
3898
+ 16,
3899
+ 41,
3900
+ 20,
3901
+ 142,
3902
+ 13,
3903
+ 131,
3904
+ 11,
3905
+ 90,
3906
+ 19,
3907
+ 153,
3908
+ 218,
3909
+ 255,
3910
+ 16,
3911
+ 132,
3912
+ 4,
3913
+ 142,
3914
+ 123,
3915
+ 216,
3916
+ 219,
3917
+ 233,
3918
+ 248,
3919
+ 89
3920
+ ]
3921
+ }
3922
+ }
3923
+ },
3924
+ {
3925
+ name: "global",
3926
+ pda: {
3927
+ seeds: [
3928
+ {
3929
+ kind: "const",
3930
+ value: [
3931
+ 103,
3932
+ 108,
3933
+ 111,
3934
+ 98,
3935
+ 97,
3936
+ 108
3937
+ ]
3777
3938
  }
3778
- ],
3779
- program: {
3780
- kind: "account",
3781
- path: "mpl_token_metadata"
3782
- }
3939
+ ]
3783
3940
  }
3784
3941
  },
3785
3942
  {
@@ -3793,16 +3950,12 @@ var pump_default = {
3793
3950
  },
3794
3951
  {
3795
3952
  name: "token_program",
3796
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
3953
+ address: "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
3797
3954
  },
3798
3955
  {
3799
3956
  name: "associated_token_program",
3800
3957
  address: "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
3801
3958
  },
3802
- {
3803
- name: "rent",
3804
- address: "SysvarRent111111111111111111111111111111111"
3805
- },
3806
3959
  {
3807
3960
  name: "event_authority",
3808
3961
  pda: {
@@ -4149,41 +4302,8 @@ var pump_default = {
4149
4302
  path: "bonding_curve"
4150
4303
  },
4151
4304
  {
4152
- kind: "const",
4153
- value: [
4154
- 6,
4155
- 221,
4156
- 246,
4157
- 225,
4158
- 215,
4159
- 101,
4160
- 161,
4161
- 147,
4162
- 217,
4163
- 203,
4164
- 225,
4165
- 70,
4166
- 206,
4167
- 235,
4168
- 121,
4169
- 172,
4170
- 28,
4171
- 180,
4172
- 133,
4173
- 237,
4174
- 95,
4175
- 91,
4176
- 55,
4177
- 145,
4178
- 58,
4179
- 140,
4180
- 245,
4181
- 133,
4182
- 126,
4183
- 255,
4184
- 0,
4185
- 169
4186
- ]
4305
+ kind: "account",
4306
+ path: "mint"
4187
4307
  },
4188
4308
  {
4189
4309
  kind: "account",
@@ -4327,7 +4447,7 @@ var pump_default = {
4327
4447
  },
4328
4448
  {
4329
4449
  kind: "account",
4330
- path: "token_program"
4450
+ path: "mint"
4331
4451
  },
4332
4452
  {
4333
4453
  kind: "account",
@@ -4465,7 +4585,7 @@ var pump_default = {
4465
4585
  },
4466
4586
  {
4467
4587
  kind: "account",
4468
- path: "token_program"
4588
+ path: "mint"
4469
4589
  },
4470
4590
  {
4471
4591
  kind: "account",
@@ -4659,41 +4779,8 @@ var pump_default = {
4659
4779
  path: "bonding_curve"
4660
4780
  },
4661
4781
  {
4662
- kind: "const",
4663
- value: [
4664
- 6,
4665
- 221,
4666
- 246,
4667
- 225,
4668
- 215,
4669
- 101,
4670
- 161,
4671
- 147,
4672
- 217,
4673
- 203,
4674
- 225,
4675
- 70,
4676
- 206,
4677
- 235,
4678
- 121,
4679
- 172,
4680
- 28,
4681
- 180,
4682
- 133,
4683
- 237,
4684
- 95,
4685
- 91,
4686
- 55,
4687
- 145,
4688
- 58,
4689
- 140,
4690
- 245,
4691
- 133,
4692
- 126,
4693
- 255,
4694
- 0,
4695
- 169
4696
- ]
4782
+ kind: "account",
4783
+ path: "token_program"
4697
4784
  },
4698
4785
  {
4699
4786
  kind: "account",
@@ -4784,8 +4871,7 @@ var pump_default = {
4784
4871
  }
4785
4872
  },
4786
4873
  {
4787
- name: "token_program",
4788
- address: "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
4874
+ name: "token_program"
4789
4875
  },
4790
4876
  {
4791
4877
  name: "event_authority",
@@ -5544,6 +5630,86 @@ var pump_default = {
5544
5630
  ],
5545
5631
  args: []
5546
5632
  },
5633
+ {
5634
+ name: "toggle_create_v2",
5635
+ discriminator: [
5636
+ 28,
5637
+ 255,
5638
+ 230,
5639
+ 240,
5640
+ 172,
5641
+ 107,
5642
+ 203,
5643
+ 171
5644
+ ],
5645
+ accounts: [
5646
+ {
5647
+ name: "global",
5648
+ writable: true,
5649
+ pda: {
5650
+ seeds: [
5651
+ {
5652
+ kind: "const",
5653
+ value: [
5654
+ 103,
5655
+ 108,
5656
+ 111,
5657
+ 98,
5658
+ 97,
5659
+ 108
5660
+ ]
5661
+ }
5662
+ ]
5663
+ }
5664
+ },
5665
+ {
5666
+ name: "authority",
5667
+ writable: true,
5668
+ signer: true,
5669
+ relations: [
5670
+ "global"
5671
+ ]
5672
+ },
5673
+ {
5674
+ name: "event_authority",
5675
+ pda: {
5676
+ seeds: [
5677
+ {
5678
+ kind: "const",
5679
+ value: [
5680
+ 95,
5681
+ 95,
5682
+ 101,
5683
+ 118,
5684
+ 101,
5685
+ 110,
5686
+ 116,
5687
+ 95,
5688
+ 97,
5689
+ 117,
5690
+ 116,
5691
+ 104,
5692
+ 111,
5693
+ 114,
5694
+ 105,
5695
+ 116,
5696
+ 121
5697
+ ]
5698
+ }
5699
+ ]
5700
+ }
5701
+ },
5702
+ {
5703
+ name: "program"
5704
+ }
5705
+ ],
5706
+ args: [
5707
+ {
5708
+ name: "enabled",
5709
+ type: "bool"
5710
+ }
5711
+ ]
5712
+ },
5547
5713
  {
5548
5714
  name: "update_global_authority",
5549
5715
  discriminator: [
@@ -6118,6 +6284,22 @@ var pump_default = {
6118
6284
  code: 6042,
6119
6285
  name: "BuySlippageBelowMinTokensOut",
6120
6286
  msg: "Slippage: Would buy less tokens than expected min_tokens_out"
6287
+ },
6288
+ {
6289
+ code: 6043,
6290
+ name: "NameTooLong"
6291
+ },
6292
+ {
6293
+ code: 6044,
6294
+ name: "SymbolTooLong"
6295
+ },
6296
+ {
6297
+ code: 6045,
6298
+ name: "UriTooLong"
6299
+ },
6300
+ {
6301
+ code: 6046,
6302
+ name: "CreateV2Disabled"
6121
6303
  }
6122
6304
  ],
6123
6305
  types: [
@@ -6437,6 +6619,10 @@ var pump_default = {
6437
6619
  {
6438
6620
  name: "token_total_supply",
6439
6621
  type: "u64"
6622
+ },
6623
+ {
6624
+ name: "token_program",
6625
+ type: "pubkey"
6440
6626
  }
6441
6627
  ]
6442
6628
  }
@@ -6618,6 +6804,10 @@ var pump_default = {
6618
6804
  {
6619
6805
  name: "admin_set_creator_authority",
6620
6806
  type: "pubkey"
6807
+ },
6808
+ {
6809
+ name: "create_v2_enabled",
6810
+ type: "bool"
6621
6811
  }
6622
6812
  ]
6623
6813
  }
@@ -7335,10 +7525,10 @@ var OnlinePumpSdk = class {
7335
7525
  bondingCurvePda(mint)
7336
7526
  );
7337
7527
  }
7338
- async fetchBuyState(mint, user) {
7528
+ async fetchBuyState(mint, user, tokenProgram = import_spl_token.TOKEN_PROGRAM_ID) {
7339
7529
  const [bondingCurveAccountInfo, associatedUserAccountInfo] = await this.connection.getMultipleAccountsInfo([
7340
7530
  bondingCurvePda(mint),
7341
- (0, import_spl_token.getAssociatedTokenAddressSync)(mint, user, true)
7531
+ (0, import_spl_token.getAssociatedTokenAddressSync)(mint, user, true, tokenProgram)
7342
7532
  ]);
7343
7533
  if (!bondingCurveAccountInfo) {
7344
7534
  throw new Error(
@@ -7348,10 +7538,10 @@ var OnlinePumpSdk = class {
7348
7538
  const bondingCurve = PUMP_SDK.decodeBondingCurve(bondingCurveAccountInfo);
7349
7539
  return { bondingCurveAccountInfo, bondingCurve, associatedUserAccountInfo };
7350
7540
  }
7351
- async fetchSellState(mint, user) {
7541
+ async fetchSellState(mint, user, tokenProgram = import_spl_token.TOKEN_PROGRAM_ID) {
7352
7542
  const [bondingCurveAccountInfo, associatedUserAccountInfo] = await this.connection.getMultipleAccountsInfo([
7353
7543
  bondingCurvePda(mint),
7354
- (0, import_spl_token.getAssociatedTokenAddressSync)(mint, user, true)
7544
+ (0, import_spl_token.getAssociatedTokenAddressSync)(mint, user, true, tokenProgram)
7355
7545
  ]);
7356
7546
  if (!bondingCurveAccountInfo) {
7357
7547
  throw new Error(
@@ -7657,6 +7847,9 @@ var PumpSdk = class {
7657
7847
  return null;
7658
7848
  }
7659
7849
  }
7850
+ /**
7851
+ * @deprecated Use `createInstructionV2` instead.
7852
+ */
7660
7853
  async createInstruction({
7661
7854
  mint,
7662
7855
  name,
@@ -7667,7 +7860,22 @@ var PumpSdk = class {
7667
7860
  }) {
7668
7861
  return await this.offlinePumpProgram.methods.create(name, symbol, uri, creator).accountsPartial({
7669
7862
  mint,
7670
- user
7863
+ user,
7864
+ tokenProgram: import_spl_token2.TOKEN_PROGRAM_ID
7865
+ }).instruction();
7866
+ }
7867
+ async createV2Instruction({
7868
+ mint,
7869
+ name,
7870
+ symbol,
7871
+ uri,
7872
+ creator,
7873
+ user
7874
+ }) {
7875
+ return await this.offlinePumpProgram.methods.createV2(name, symbol, uri, creator).accountsPartial({
7876
+ mint,
7877
+ user,
7878
+ tokenProgram: import_spl_token2.TOKEN_2022_PROGRAM_ID
7671
7879
  }).instruction();
7672
7880
  }
7673
7881
  async buyInstructions({
@@ -7679,7 +7887,8 @@ var PumpSdk = class {
7679
7887
  user,
7680
7888
  amount,
7681
7889
  solAmount,
7682
- slippage
7890
+ slippage,
7891
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7683
7892
  }) {
7684
7893
  const instructions = [];
7685
7894
  if (bondingCurveAccountInfo.data.length < BONDING_CURVE_NEW_SIZE) {
@@ -7690,14 +7899,15 @@ var PumpSdk = class {
7690
7899
  })
7691
7900
  );
7692
7901
  }
7693
- const associatedUser = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true);
7902
+ const associatedUser = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true, tokenProgram);
7694
7903
  if (!associatedUserAccountInfo) {
7695
7904
  instructions.push(
7696
7905
  (0, import_spl_token2.createAssociatedTokenAccountIdempotentInstruction)(
7697
7906
  user,
7698
7907
  associatedUser,
7699
7908
  user,
7700
- mint
7909
+ mint,
7910
+ tokenProgram
7701
7911
  )
7702
7912
  );
7703
7913
  }
@@ -7710,11 +7920,53 @@ var PumpSdk = class {
7710
7920
  associatedUser,
7711
7921
  amount,
7712
7922
  solAmount,
7713
- slippage
7923
+ slippage,
7924
+ tokenProgram
7714
7925
  })
7715
7926
  );
7716
7927
  return instructions;
7717
7928
  }
7929
+ async createV2AndBuyInstructions({
7930
+ global,
7931
+ mint,
7932
+ name,
7933
+ symbol,
7934
+ uri,
7935
+ creator,
7936
+ user,
7937
+ amount,
7938
+ solAmount
7939
+ }) {
7940
+ const associatedUser = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true, import_spl_token2.TOKEN_2022_PROGRAM_ID);
7941
+ return [
7942
+ await this.createV2Instruction({ mint, name, symbol, uri, creator, user }),
7943
+ await this.extendAccountInstruction({
7944
+ account: bondingCurvePda(mint),
7945
+ user
7946
+ }),
7947
+ (0, import_spl_token2.createAssociatedTokenAccountIdempotentInstruction)(
7948
+ user,
7949
+ associatedUser,
7950
+ user,
7951
+ mint,
7952
+ import_spl_token2.TOKEN_2022_PROGRAM_ID
7953
+ ),
7954
+ await this.buyInstruction({
7955
+ global,
7956
+ mint,
7957
+ creator,
7958
+ user,
7959
+ associatedUser,
7960
+ amount,
7961
+ solAmount,
7962
+ slippage: 1,
7963
+ tokenProgram: import_spl_token2.TOKEN_2022_PROGRAM_ID
7964
+ })
7965
+ ];
7966
+ }
7967
+ /**
7968
+ * @deprecated Use `createV2AndBuyInstructions` instead.
7969
+ */
7718
7970
  async createAndBuyInstructions({
7719
7971
  global,
7720
7972
  mint,
@@ -7759,7 +8011,8 @@ var PumpSdk = class {
7759
8011
  associatedUser,
7760
8012
  amount,
7761
8013
  solAmount,
7762
- slippage
8014
+ slippage,
8015
+ tokenProgram
7763
8016
  }) {
7764
8017
  return await this.getBuyInstructionInternal({
7765
8018
  user,
@@ -7770,7 +8023,8 @@ var PumpSdk = class {
7770
8023
  amount,
7771
8024
  solAmount: solAmount.add(
7772
8025
  solAmount.mul(new import_bn5.default(Math.floor(slippage * 10))).div(new import_bn5.default(1e3))
7773
- )
8026
+ ),
8027
+ tokenProgram
7774
8028
  });
7775
8029
  }
7776
8030
  async sellInstructions({
@@ -7781,7 +8035,8 @@ var PumpSdk = class {
7781
8035
  user,
7782
8036
  amount,
7783
8037
  solAmount,
7784
- slippage
8038
+ slippage,
8039
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7785
8040
  }) {
7786
8041
  const instructions = [];
7787
8042
  if (bondingCurveAccountInfo.data.length < BONDING_CURVE_NEW_SIZE) {
@@ -7801,7 +8056,8 @@ var PumpSdk = class {
7801
8056
  amount,
7802
8057
  solAmount: solAmount.sub(
7803
8058
  solAmount.mul(new import_bn5.default(Math.floor(slippage * 10))).div(new import_bn5.default(1e3))
7804
- )
8059
+ ),
8060
+ tokenProgram
7805
8061
  })
7806
8062
  );
7807
8063
  return instructions;
@@ -7818,12 +8074,22 @@ var PumpSdk = class {
7818
8074
  async migrateInstruction({
7819
8075
  withdrawAuthority,
7820
8076
  mint,
7821
- user
8077
+ user,
8078
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7822
8079
  }) {
8080
+ const bondingCurve = bondingCurvePda(mint);
8081
+ const associatedBondingCurve = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, bondingCurve, true, tokenProgram);
8082
+ const poolAuthority = pumpPoolAuthorityPda(mint);
8083
+ const poolAuthorityMintAccount = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, poolAuthority, true, tokenProgram);
8084
+ const pool = canonicalPumpPoolPda(mint);
8085
+ const poolBaseTokenAccount = (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, pool, true, tokenProgram);
7823
8086
  return this.offlinePumpProgram.methods.migrate().accountsPartial({
7824
8087
  mint,
7825
8088
  user,
7826
- withdrawAuthority
8089
+ withdrawAuthority,
8090
+ associatedBondingCurve,
8091
+ poolAuthorityMintAccount,
8092
+ poolBaseTokenAccount
7827
8093
  }).instruction();
7828
8094
  }
7829
8095
  async syncUserVolumeAccumulator(user) {
@@ -7860,11 +8126,12 @@ var PumpSdk = class {
7860
8126
  creator,
7861
8127
  amount,
7862
8128
  solAmount,
7863
- feeRecipient = getStaticRandomFeeRecipient()
8129
+ feeRecipient = getStaticRandomFeeRecipient(),
8130
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7864
8131
  }) {
7865
8132
  return await this.getBuyInstructionInternal({
7866
8133
  user,
7867
- associatedUser: (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true),
8134
+ associatedUser: (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true, tokenProgram),
7868
8135
  mint,
7869
8136
  creator,
7870
8137
  feeRecipient,
@@ -7879,14 +8146,16 @@ var PumpSdk = class {
7879
8146
  creator,
7880
8147
  feeRecipient,
7881
8148
  amount,
7882
- solAmount
8149
+ solAmount,
8150
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7883
8151
  }) {
7884
8152
  return await this.offlinePumpProgram.methods.buy(amount, solAmount, { 0: true }).accountsPartial({
7885
8153
  feeRecipient,
7886
8154
  mint,
7887
8155
  associatedUser,
7888
8156
  user,
7889
- creatorVault: creatorVaultPda(creator)
8157
+ creatorVault: creatorVaultPda(creator),
8158
+ tokenProgram
7890
8159
  }).instruction();
7891
8160
  }
7892
8161
  async getSellInstructionRaw({
@@ -7895,7 +8164,8 @@ var PumpSdk = class {
7895
8164
  creator,
7896
8165
  amount,
7897
8166
  solAmount,
7898
- feeRecipient = getStaticRandomFeeRecipient()
8167
+ feeRecipient = getStaticRandomFeeRecipient(),
8168
+ tokenProgram = import_spl_token2.TOKEN_PROGRAM_ID
7899
8169
  }) {
7900
8170
  return await this.getSellInstructionInternal({
7901
8171
  user,
@@ -7903,7 +8173,8 @@ var PumpSdk = class {
7903
8173
  creator,
7904
8174
  feeRecipient,
7905
8175
  amount,
7906
- solAmount
8176
+ solAmount,
8177
+ tokenProgram
7907
8178
  });
7908
8179
  }
7909
8180
  async getSellInstructionInternal({
@@ -7912,14 +8183,16 @@ var PumpSdk = class {
7912
8183
  creator,
7913
8184
  feeRecipient,
7914
8185
  amount,
7915
- solAmount
8186
+ solAmount,
8187
+ tokenProgram
7916
8188
  }) {
7917
8189
  return await this.offlinePumpProgram.methods.sell(amount, solAmount).accountsPartial({
7918
8190
  feeRecipient,
7919
8191
  mint,
7920
- associatedUser: (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true),
8192
+ associatedUser: (0, import_spl_token2.getAssociatedTokenAddressSync)(mint, user, true, tokenProgram),
7921
8193
  user,
7922
- creatorVault: creatorVaultPda(creator)
8194
+ creatorVault: creatorVaultPda(creator),
8195
+ tokenProgram
7923
8196
  }).instruction();
7924
8197
  }
7925
8198
  };