@pump-fun/pump-sdk 1.9.3-devnet.1 → 1.9.4-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.d.mts CHANGED
@@ -1022,6 +1022,99 @@ type Pump = {
1022
1022
  ];
1023
1023
  "args": [];
1024
1024
  },
1025
+ {
1026
+ "name": "closeUserVolumeAccumulator";
1027
+ "discriminator": [
1028
+ 249,
1029
+ 69,
1030
+ 164,
1031
+ 218,
1032
+ 150,
1033
+ 103,
1034
+ 84,
1035
+ 138
1036
+ ];
1037
+ "accounts": [
1038
+ {
1039
+ "name": "user";
1040
+ "writable": true;
1041
+ "signer": true;
1042
+ },
1043
+ {
1044
+ "name": "userVolumeAccumulator";
1045
+ "writable": true;
1046
+ "pda": {
1047
+ "seeds": [
1048
+ {
1049
+ "kind": "const";
1050
+ "value": [
1051
+ 117,
1052
+ 115,
1053
+ 101,
1054
+ 114,
1055
+ 95,
1056
+ 118,
1057
+ 111,
1058
+ 108,
1059
+ 117,
1060
+ 109,
1061
+ 101,
1062
+ 95,
1063
+ 97,
1064
+ 99,
1065
+ 99,
1066
+ 117,
1067
+ 109,
1068
+ 117,
1069
+ 108,
1070
+ 97,
1071
+ 116,
1072
+ 111,
1073
+ 114
1074
+ ];
1075
+ },
1076
+ {
1077
+ "kind": "account";
1078
+ "path": "user";
1079
+ }
1080
+ ];
1081
+ };
1082
+ },
1083
+ {
1084
+ "name": "eventAuthority";
1085
+ "pda": {
1086
+ "seeds": [
1087
+ {
1088
+ "kind": "const";
1089
+ "value": [
1090
+ 95,
1091
+ 95,
1092
+ 101,
1093
+ 118,
1094
+ 101,
1095
+ 110,
1096
+ 116,
1097
+ 95,
1098
+ 97,
1099
+ 117,
1100
+ 116,
1101
+ 104,
1102
+ 111,
1103
+ 114,
1104
+ 105,
1105
+ 116,
1106
+ 121
1107
+ ];
1108
+ }
1109
+ ];
1110
+ };
1111
+ },
1112
+ {
1113
+ "name": "program";
1114
+ }
1115
+ ];
1116
+ "args": [];
1117
+ },
1025
1118
  {
1026
1119
  "name": "collectCreatorFee";
1027
1120
  "docs": [
@@ -1502,6 +1595,106 @@ type Pump = {
1502
1595
  ];
1503
1596
  "args": [];
1504
1597
  },
1598
+ {
1599
+ "name": "initUserVolumeAccumulator";
1600
+ "discriminator": [
1601
+ 94,
1602
+ 6,
1603
+ 202,
1604
+ 115,
1605
+ 255,
1606
+ 96,
1607
+ 232,
1608
+ 183
1609
+ ];
1610
+ "accounts": [
1611
+ {
1612
+ "name": "payer";
1613
+ "writable": true;
1614
+ "signer": true;
1615
+ },
1616
+ {
1617
+ "name": "user";
1618
+ },
1619
+ {
1620
+ "name": "userVolumeAccumulator";
1621
+ "writable": true;
1622
+ "pda": {
1623
+ "seeds": [
1624
+ {
1625
+ "kind": "const";
1626
+ "value": [
1627
+ 117,
1628
+ 115,
1629
+ 101,
1630
+ 114,
1631
+ 95,
1632
+ 118,
1633
+ 111,
1634
+ 108,
1635
+ 117,
1636
+ 109,
1637
+ 101,
1638
+ 95,
1639
+ 97,
1640
+ 99,
1641
+ 99,
1642
+ 117,
1643
+ 109,
1644
+ 117,
1645
+ 108,
1646
+ 97,
1647
+ 116,
1648
+ 111,
1649
+ 114
1650
+ ];
1651
+ },
1652
+ {
1653
+ "kind": "account";
1654
+ "path": "user";
1655
+ }
1656
+ ];
1657
+ };
1658
+ },
1659
+ {
1660
+ "name": "systemProgram";
1661
+ "address": "11111111111111111111111111111111";
1662
+ },
1663
+ {
1664
+ "name": "eventAuthority";
1665
+ "pda": {
1666
+ "seeds": [
1667
+ {
1668
+ "kind": "const";
1669
+ "value": [
1670
+ 95,
1671
+ 95,
1672
+ 101,
1673
+ 118,
1674
+ 101,
1675
+ 110,
1676
+ 116,
1677
+ 95,
1678
+ 97,
1679
+ 117,
1680
+ 116,
1681
+ 104,
1682
+ 111,
1683
+ 114,
1684
+ 105,
1685
+ 116,
1686
+ 121
1687
+ ];
1688
+ }
1689
+ ];
1690
+ };
1691
+ },
1692
+ {
1693
+ "name": "program";
1694
+ }
1695
+ ];
1696
+ "args": [];
1697
+ },
1505
1698
  {
1506
1699
  "name": "initialize";
1507
1700
  "docs": [
@@ -3145,6 +3338,19 @@ type Pump = {
3145
3338
  232
3146
3339
  ];
3147
3340
  },
3341
+ {
3342
+ "name": "closeUserVolumeAccumulatorEvent";
3343
+ "discriminator": [
3344
+ 146,
3345
+ 159,
3346
+ 189,
3347
+ 172,
3348
+ 146,
3349
+ 88,
3350
+ 56,
3351
+ 244
3352
+ ];
3353
+ },
3148
3354
  {
3149
3355
  "name": "collectCreatorFeeEvent";
3150
3356
  "discriminator": [
@@ -3210,6 +3416,19 @@ type Pump = {
3210
3416
  124
3211
3417
  ];
3212
3418
  },
3419
+ {
3420
+ "name": "initUserVolumeAccumulatorEvent";
3421
+ "discriminator": [
3422
+ 134,
3423
+ 36,
3424
+ 13,
3425
+ 72,
3426
+ 232,
3427
+ 101,
3428
+ 130,
3429
+ 216
3430
+ ];
3431
+ },
3213
3432
  {
3214
3433
  "name": "setCreatorEvent";
3215
3434
  "discriminator": [
@@ -3623,6 +3842,22 @@ type Pump = {
3623
3842
  ];
3624
3843
  };
3625
3844
  },
3845
+ {
3846
+ "name": "closeUserVolumeAccumulatorEvent";
3847
+ "type": {
3848
+ "kind": "struct";
3849
+ "fields": [
3850
+ {
3851
+ "name": "user";
3852
+ "type": "pubkey";
3853
+ },
3854
+ {
3855
+ "name": "timestamp";
3856
+ "type": "i64";
3857
+ }
3858
+ ];
3859
+ };
3860
+ },
3626
3861
  {
3627
3862
  "name": "collectCreatorFeeEvent";
3628
3863
  "type": {
@@ -3912,6 +4147,26 @@ type Pump = {
3912
4147
  ];
3913
4148
  };
3914
4149
  },
4150
+ {
4151
+ "name": "initUserVolumeAccumulatorEvent";
4152
+ "type": {
4153
+ "kind": "struct";
4154
+ "fields": [
4155
+ {
4156
+ "name": "payer";
4157
+ "type": "pubkey";
4158
+ },
4159
+ {
4160
+ "name": "user";
4161
+ "type": "pubkey";
4162
+ },
4163
+ {
4164
+ "name": "timestamp";
4165
+ "type": "i64";
4166
+ }
4167
+ ];
4168
+ };
4169
+ },
3915
4170
  {
3916
4171
  "name": "setCreatorEvent";
3917
4172
  "type": {
@@ -5207,6 +5462,100 @@ var instructions = [
5207
5462
  args: [
5208
5463
  ]
5209
5464
  },
5465
+ {
5466
+ name: "close_user_volume_accumulator",
5467
+ discriminator: [
5468
+ 249,
5469
+ 69,
5470
+ 164,
5471
+ 218,
5472
+ 150,
5473
+ 103,
5474
+ 84,
5475
+ 138
5476
+ ],
5477
+ accounts: [
5478
+ {
5479
+ name: "user",
5480
+ writable: true,
5481
+ signer: true
5482
+ },
5483
+ {
5484
+ name: "user_volume_accumulator",
5485
+ writable: true,
5486
+ pda: {
5487
+ seeds: [
5488
+ {
5489
+ kind: "const",
5490
+ value: [
5491
+ 117,
5492
+ 115,
5493
+ 101,
5494
+ 114,
5495
+ 95,
5496
+ 118,
5497
+ 111,
5498
+ 108,
5499
+ 117,
5500
+ 109,
5501
+ 101,
5502
+ 95,
5503
+ 97,
5504
+ 99,
5505
+ 99,
5506
+ 117,
5507
+ 109,
5508
+ 117,
5509
+ 108,
5510
+ 97,
5511
+ 116,
5512
+ 111,
5513
+ 114
5514
+ ]
5515
+ },
5516
+ {
5517
+ kind: "account",
5518
+ path: "user"
5519
+ }
5520
+ ]
5521
+ }
5522
+ },
5523
+ {
5524
+ name: "event_authority",
5525
+ pda: {
5526
+ seeds: [
5527
+ {
5528
+ kind: "const",
5529
+ value: [
5530
+ 95,
5531
+ 95,
5532
+ 101,
5533
+ 118,
5534
+ 101,
5535
+ 110,
5536
+ 116,
5537
+ 95,
5538
+ 97,
5539
+ 117,
5540
+ 116,
5541
+ 104,
5542
+ 111,
5543
+ 114,
5544
+ 105,
5545
+ 116,
5546
+ 121
5547
+ ]
5548
+ }
5549
+ ]
5550
+ }
5551
+ },
5552
+ {
5553
+ name: "program"
5554
+ }
5555
+ ],
5556
+ args: [
5557
+ ]
5558
+ },
5210
5559
  {
5211
5560
  name: "collect_creator_fee",
5212
5561
  docs: [
@@ -5689,6 +6038,107 @@ var instructions = [
5689
6038
  args: [
5690
6039
  ]
5691
6040
  },
6041
+ {
6042
+ name: "init_user_volume_accumulator",
6043
+ discriminator: [
6044
+ 94,
6045
+ 6,
6046
+ 202,
6047
+ 115,
6048
+ 255,
6049
+ 96,
6050
+ 232,
6051
+ 183
6052
+ ],
6053
+ accounts: [
6054
+ {
6055
+ name: "payer",
6056
+ writable: true,
6057
+ signer: true
6058
+ },
6059
+ {
6060
+ name: "user"
6061
+ },
6062
+ {
6063
+ name: "user_volume_accumulator",
6064
+ writable: true,
6065
+ pda: {
6066
+ seeds: [
6067
+ {
6068
+ kind: "const",
6069
+ value: [
6070
+ 117,
6071
+ 115,
6072
+ 101,
6073
+ 114,
6074
+ 95,
6075
+ 118,
6076
+ 111,
6077
+ 108,
6078
+ 117,
6079
+ 109,
6080
+ 101,
6081
+ 95,
6082
+ 97,
6083
+ 99,
6084
+ 99,
6085
+ 117,
6086
+ 109,
6087
+ 117,
6088
+ 108,
6089
+ 97,
6090
+ 116,
6091
+ 111,
6092
+ 114
6093
+ ]
6094
+ },
6095
+ {
6096
+ kind: "account",
6097
+ path: "user"
6098
+ }
6099
+ ]
6100
+ }
6101
+ },
6102
+ {
6103
+ name: "system_program",
6104
+ address: "11111111111111111111111111111111"
6105
+ },
6106
+ {
6107
+ name: "event_authority",
6108
+ pda: {
6109
+ seeds: [
6110
+ {
6111
+ kind: "const",
6112
+ value: [
6113
+ 95,
6114
+ 95,
6115
+ 101,
6116
+ 118,
6117
+ 101,
6118
+ 110,
6119
+ 116,
6120
+ 95,
6121
+ 97,
6122
+ 117,
6123
+ 116,
6124
+ 104,
6125
+ 111,
6126
+ 114,
6127
+ 105,
6128
+ 116,
6129
+ 121
6130
+ ]
6131
+ }
6132
+ ]
6133
+ }
6134
+ },
6135
+ {
6136
+ name: "program"
6137
+ }
6138
+ ],
6139
+ args: [
6140
+ ]
6141
+ },
5692
6142
  {
5693
6143
  name: "initialize",
5694
6144
  docs: [
@@ -7337,6 +7787,19 @@ var events = [
7337
7787
  232
7338
7788
  ]
7339
7789
  },
7790
+ {
7791
+ name: "CloseUserVolumeAccumulatorEvent",
7792
+ discriminator: [
7793
+ 146,
7794
+ 159,
7795
+ 189,
7796
+ 172,
7797
+ 146,
7798
+ 88,
7799
+ 56,
7800
+ 244
7801
+ ]
7802
+ },
7340
7803
  {
7341
7804
  name: "CollectCreatorFeeEvent",
7342
7805
  discriminator: [
@@ -7402,6 +7865,19 @@ var events = [
7402
7865
  124
7403
7866
  ]
7404
7867
  },
7868
+ {
7869
+ name: "InitUserVolumeAccumulatorEvent",
7870
+ discriminator: [
7871
+ 134,
7872
+ 36,
7873
+ 13,
7874
+ 72,
7875
+ 232,
7876
+ 101,
7877
+ 130,
7878
+ 216
7879
+ ]
7880
+ },
7405
7881
  {
7406
7882
  name: "SetCreatorEvent",
7407
7883
  discriminator: [
@@ -7815,6 +8291,22 @@ var types = [
7815
8291
  ]
7816
8292
  }
7817
8293
  },
8294
+ {
8295
+ name: "CloseUserVolumeAccumulatorEvent",
8296
+ type: {
8297
+ kind: "struct",
8298
+ fields: [
8299
+ {
8300
+ name: "user",
8301
+ type: "pubkey"
8302
+ },
8303
+ {
8304
+ name: "timestamp",
8305
+ type: "i64"
8306
+ }
8307
+ ]
8308
+ }
8309
+ },
7818
8310
  {
7819
8311
  name: "CollectCreatorFeeEvent",
7820
8312
  type: {
@@ -8104,6 +8596,26 @@ var types = [
8104
8596
  ]
8105
8597
  }
8106
8598
  },
8599
+ {
8600
+ name: "InitUserVolumeAccumulatorEvent",
8601
+ type: {
8602
+ kind: "struct",
8603
+ fields: [
8604
+ {
8605
+ name: "payer",
8606
+ type: "pubkey"
8607
+ },
8608
+ {
8609
+ name: "user",
8610
+ type: "pubkey"
8611
+ },
8612
+ {
8613
+ name: "timestamp",
8614
+ type: "i64"
8615
+ }
8616
+ ]
8617
+ }
8618
+ },
8107
8619
  {
8108
8620
  name: "SetCreatorEvent",
8109
8621
  type: {
@@ -8546,6 +9058,11 @@ declare class PumpSdk {
8546
9058
  setCreatorAuthority: PublicKey;
8547
9059
  creator: PublicKey;
8548
9060
  }): Promise<TransactionInstruction>;
9061
+ initUserVolumeAccumulator({ payer, user, }: {
9062
+ payer: PublicKey;
9063
+ user: PublicKey;
9064
+ }): Promise<TransactionInstruction>;
9065
+ closeUserVolumeAccumulator(user: PublicKey): Promise<TransactionInstruction>;
8549
9066
  }
8550
9067
 
8551
9068
  declare function totalUnclaimedTokens(globalVolumeAccumulator: GlobalVolumeAccumulator, userVolumeAccumulator: UserVolumeAccumulator, currentTimestamp?: number): BN;