@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.js CHANGED
@@ -1068,6 +1068,99 @@ var pump_default = {
1068
1068
  ],
1069
1069
  args: []
1070
1070
  },
1071
+ {
1072
+ name: "close_user_volume_accumulator",
1073
+ discriminator: [
1074
+ 249,
1075
+ 69,
1076
+ 164,
1077
+ 218,
1078
+ 150,
1079
+ 103,
1080
+ 84,
1081
+ 138
1082
+ ],
1083
+ accounts: [
1084
+ {
1085
+ name: "user",
1086
+ writable: true,
1087
+ signer: true
1088
+ },
1089
+ {
1090
+ name: "user_volume_accumulator",
1091
+ writable: true,
1092
+ pda: {
1093
+ seeds: [
1094
+ {
1095
+ kind: "const",
1096
+ value: [
1097
+ 117,
1098
+ 115,
1099
+ 101,
1100
+ 114,
1101
+ 95,
1102
+ 118,
1103
+ 111,
1104
+ 108,
1105
+ 117,
1106
+ 109,
1107
+ 101,
1108
+ 95,
1109
+ 97,
1110
+ 99,
1111
+ 99,
1112
+ 117,
1113
+ 109,
1114
+ 117,
1115
+ 108,
1116
+ 97,
1117
+ 116,
1118
+ 111,
1119
+ 114
1120
+ ]
1121
+ },
1122
+ {
1123
+ kind: "account",
1124
+ path: "user"
1125
+ }
1126
+ ]
1127
+ }
1128
+ },
1129
+ {
1130
+ name: "event_authority",
1131
+ pda: {
1132
+ seeds: [
1133
+ {
1134
+ kind: "const",
1135
+ value: [
1136
+ 95,
1137
+ 95,
1138
+ 101,
1139
+ 118,
1140
+ 101,
1141
+ 110,
1142
+ 116,
1143
+ 95,
1144
+ 97,
1145
+ 117,
1146
+ 116,
1147
+ 104,
1148
+ 111,
1149
+ 114,
1150
+ 105,
1151
+ 116,
1152
+ 121
1153
+ ]
1154
+ }
1155
+ ]
1156
+ }
1157
+ },
1158
+ {
1159
+ name: "program"
1160
+ }
1161
+ ],
1162
+ args: []
1163
+ },
1071
1164
  {
1072
1165
  name: "collect_creator_fee",
1073
1166
  docs: [
@@ -1548,6 +1641,106 @@ var pump_default = {
1548
1641
  ],
1549
1642
  args: []
1550
1643
  },
1644
+ {
1645
+ name: "init_user_volume_accumulator",
1646
+ discriminator: [
1647
+ 94,
1648
+ 6,
1649
+ 202,
1650
+ 115,
1651
+ 255,
1652
+ 96,
1653
+ 232,
1654
+ 183
1655
+ ],
1656
+ accounts: [
1657
+ {
1658
+ name: "payer",
1659
+ writable: true,
1660
+ signer: true
1661
+ },
1662
+ {
1663
+ name: "user"
1664
+ },
1665
+ {
1666
+ name: "user_volume_accumulator",
1667
+ writable: true,
1668
+ pda: {
1669
+ seeds: [
1670
+ {
1671
+ kind: "const",
1672
+ value: [
1673
+ 117,
1674
+ 115,
1675
+ 101,
1676
+ 114,
1677
+ 95,
1678
+ 118,
1679
+ 111,
1680
+ 108,
1681
+ 117,
1682
+ 109,
1683
+ 101,
1684
+ 95,
1685
+ 97,
1686
+ 99,
1687
+ 99,
1688
+ 117,
1689
+ 109,
1690
+ 117,
1691
+ 108,
1692
+ 97,
1693
+ 116,
1694
+ 111,
1695
+ 114
1696
+ ]
1697
+ },
1698
+ {
1699
+ kind: "account",
1700
+ path: "user"
1701
+ }
1702
+ ]
1703
+ }
1704
+ },
1705
+ {
1706
+ name: "system_program",
1707
+ address: "11111111111111111111111111111111"
1708
+ },
1709
+ {
1710
+ name: "event_authority",
1711
+ pda: {
1712
+ seeds: [
1713
+ {
1714
+ kind: "const",
1715
+ value: [
1716
+ 95,
1717
+ 95,
1718
+ 101,
1719
+ 118,
1720
+ 101,
1721
+ 110,
1722
+ 116,
1723
+ 95,
1724
+ 97,
1725
+ 117,
1726
+ 116,
1727
+ 104,
1728
+ 111,
1729
+ 114,
1730
+ 105,
1731
+ 116,
1732
+ 121
1733
+ ]
1734
+ }
1735
+ ]
1736
+ }
1737
+ },
1738
+ {
1739
+ name: "program"
1740
+ }
1741
+ ],
1742
+ args: []
1743
+ },
1551
1744
  {
1552
1745
  name: "initialize",
1553
1746
  docs: [
@@ -3191,6 +3384,19 @@ var pump_default = {
3191
3384
  232
3192
3385
  ]
3193
3386
  },
3387
+ {
3388
+ name: "CloseUserVolumeAccumulatorEvent",
3389
+ discriminator: [
3390
+ 146,
3391
+ 159,
3392
+ 189,
3393
+ 172,
3394
+ 146,
3395
+ 88,
3396
+ 56,
3397
+ 244
3398
+ ]
3399
+ },
3194
3400
  {
3195
3401
  name: "CollectCreatorFeeEvent",
3196
3402
  discriminator: [
@@ -3256,6 +3462,19 @@ var pump_default = {
3256
3462
  124
3257
3463
  ]
3258
3464
  },
3465
+ {
3466
+ name: "InitUserVolumeAccumulatorEvent",
3467
+ discriminator: [
3468
+ 134,
3469
+ 36,
3470
+ 13,
3471
+ 72,
3472
+ 232,
3473
+ 101,
3474
+ 130,
3475
+ 216
3476
+ ]
3477
+ },
3259
3478
  {
3260
3479
  name: "SetCreatorEvent",
3261
3480
  discriminator: [
@@ -3669,6 +3888,22 @@ var pump_default = {
3669
3888
  ]
3670
3889
  }
3671
3890
  },
3891
+ {
3892
+ name: "CloseUserVolumeAccumulatorEvent",
3893
+ type: {
3894
+ kind: "struct",
3895
+ fields: [
3896
+ {
3897
+ name: "user",
3898
+ type: "pubkey"
3899
+ },
3900
+ {
3901
+ name: "timestamp",
3902
+ type: "i64"
3903
+ }
3904
+ ]
3905
+ }
3906
+ },
3672
3907
  {
3673
3908
  name: "CollectCreatorFeeEvent",
3674
3909
  type: {
@@ -3958,6 +4193,26 @@ var pump_default = {
3958
4193
  ]
3959
4194
  }
3960
4195
  },
4196
+ {
4197
+ name: "InitUserVolumeAccumulatorEvent",
4198
+ type: {
4199
+ kind: "struct",
4200
+ fields: [
4201
+ {
4202
+ name: "payer",
4203
+ type: "pubkey"
4204
+ },
4205
+ {
4206
+ name: "user",
4207
+ type: "pubkey"
4208
+ },
4209
+ {
4210
+ name: "timestamp",
4211
+ type: "i64"
4212
+ }
4213
+ ]
4214
+ }
4215
+ },
3961
4216
  {
3962
4217
  name: "SetCreatorEvent",
3963
4218
  type: {
@@ -4849,6 +5104,15 @@ var PumpSdk = class {
4849
5104
  setCreatorAuthority
4850
5105
  }).instruction();
4851
5106
  }
5107
+ async initUserVolumeAccumulator({
5108
+ payer,
5109
+ user
5110
+ }) {
5111
+ return await this.offlinePumpProgram.methods.initUserVolumeAccumulator().accountsPartial({ payer, user }).instruction();
5112
+ }
5113
+ async closeUserVolumeAccumulator(user) {
5114
+ return await this.offlinePumpProgram.methods.closeUserVolumeAccumulator().accountsPartial({ user }).instruction();
5115
+ }
4852
5116
  };
4853
5117
  function getFeeRecipient(global) {
4854
5118
  const feeRecipients = [global.feeRecipient, ...global.feeRecipients];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pump-fun/pump-sdk",
3
- "version": "1.9.3-devnet.1",
3
+ "version": "1.9.4-devnet.1",
4
4
  "description": "Pump Bonding Curve SDK",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/pump-fun/pump-sdk#readme",
package/src/idl/pump.json CHANGED
@@ -1012,6 +1012,99 @@
1012
1012
  ],
1013
1013
  "args": []
1014
1014
  },
1015
+ {
1016
+ "name": "close_user_volume_accumulator",
1017
+ "discriminator": [
1018
+ 249,
1019
+ 69,
1020
+ 164,
1021
+ 218,
1022
+ 150,
1023
+ 103,
1024
+ 84,
1025
+ 138
1026
+ ],
1027
+ "accounts": [
1028
+ {
1029
+ "name": "user",
1030
+ "writable": true,
1031
+ "signer": true
1032
+ },
1033
+ {
1034
+ "name": "user_volume_accumulator",
1035
+ "writable": true,
1036
+ "pda": {
1037
+ "seeds": [
1038
+ {
1039
+ "kind": "const",
1040
+ "value": [
1041
+ 117,
1042
+ 115,
1043
+ 101,
1044
+ 114,
1045
+ 95,
1046
+ 118,
1047
+ 111,
1048
+ 108,
1049
+ 117,
1050
+ 109,
1051
+ 101,
1052
+ 95,
1053
+ 97,
1054
+ 99,
1055
+ 99,
1056
+ 117,
1057
+ 109,
1058
+ 117,
1059
+ 108,
1060
+ 97,
1061
+ 116,
1062
+ 111,
1063
+ 114
1064
+ ]
1065
+ },
1066
+ {
1067
+ "kind": "account",
1068
+ "path": "user"
1069
+ }
1070
+ ]
1071
+ }
1072
+ },
1073
+ {
1074
+ "name": "event_authority",
1075
+ "pda": {
1076
+ "seeds": [
1077
+ {
1078
+ "kind": "const",
1079
+ "value": [
1080
+ 95,
1081
+ 95,
1082
+ 101,
1083
+ 118,
1084
+ 101,
1085
+ 110,
1086
+ 116,
1087
+ 95,
1088
+ 97,
1089
+ 117,
1090
+ 116,
1091
+ 104,
1092
+ 111,
1093
+ 114,
1094
+ 105,
1095
+ 116,
1096
+ 121
1097
+ ]
1098
+ }
1099
+ ]
1100
+ }
1101
+ },
1102
+ {
1103
+ "name": "program"
1104
+ }
1105
+ ],
1106
+ "args": []
1107
+ },
1015
1108
  {
1016
1109
  "name": "collect_creator_fee",
1017
1110
  "docs": [
@@ -1492,6 +1585,106 @@
1492
1585
  ],
1493
1586
  "args": []
1494
1587
  },
1588
+ {
1589
+ "name": "init_user_volume_accumulator",
1590
+ "discriminator": [
1591
+ 94,
1592
+ 6,
1593
+ 202,
1594
+ 115,
1595
+ 255,
1596
+ 96,
1597
+ 232,
1598
+ 183
1599
+ ],
1600
+ "accounts": [
1601
+ {
1602
+ "name": "payer",
1603
+ "writable": true,
1604
+ "signer": true
1605
+ },
1606
+ {
1607
+ "name": "user"
1608
+ },
1609
+ {
1610
+ "name": "user_volume_accumulator",
1611
+ "writable": true,
1612
+ "pda": {
1613
+ "seeds": [
1614
+ {
1615
+ "kind": "const",
1616
+ "value": [
1617
+ 117,
1618
+ 115,
1619
+ 101,
1620
+ 114,
1621
+ 95,
1622
+ 118,
1623
+ 111,
1624
+ 108,
1625
+ 117,
1626
+ 109,
1627
+ 101,
1628
+ 95,
1629
+ 97,
1630
+ 99,
1631
+ 99,
1632
+ 117,
1633
+ 109,
1634
+ 117,
1635
+ 108,
1636
+ 97,
1637
+ 116,
1638
+ 111,
1639
+ 114
1640
+ ]
1641
+ },
1642
+ {
1643
+ "kind": "account",
1644
+ "path": "user"
1645
+ }
1646
+ ]
1647
+ }
1648
+ },
1649
+ {
1650
+ "name": "system_program",
1651
+ "address": "11111111111111111111111111111111"
1652
+ },
1653
+ {
1654
+ "name": "event_authority",
1655
+ "pda": {
1656
+ "seeds": [
1657
+ {
1658
+ "kind": "const",
1659
+ "value": [
1660
+ 95,
1661
+ 95,
1662
+ 101,
1663
+ 118,
1664
+ 101,
1665
+ 110,
1666
+ 116,
1667
+ 95,
1668
+ 97,
1669
+ 117,
1670
+ 116,
1671
+ 104,
1672
+ 111,
1673
+ 114,
1674
+ 105,
1675
+ 116,
1676
+ 121
1677
+ ]
1678
+ }
1679
+ ]
1680
+ }
1681
+ },
1682
+ {
1683
+ "name": "program"
1684
+ }
1685
+ ],
1686
+ "args": []
1687
+ },
1495
1688
  {
1496
1689
  "name": "initialize",
1497
1690
  "docs": [
@@ -3135,6 +3328,19 @@
3135
3328
  232
3136
3329
  ]
3137
3330
  },
3331
+ {
3332
+ "name": "CloseUserVolumeAccumulatorEvent",
3333
+ "discriminator": [
3334
+ 146,
3335
+ 159,
3336
+ 189,
3337
+ 172,
3338
+ 146,
3339
+ 88,
3340
+ 56,
3341
+ 244
3342
+ ]
3343
+ },
3138
3344
  {
3139
3345
  "name": "CollectCreatorFeeEvent",
3140
3346
  "discriminator": [
@@ -3200,6 +3406,19 @@
3200
3406
  124
3201
3407
  ]
3202
3408
  },
3409
+ {
3410
+ "name": "InitUserVolumeAccumulatorEvent",
3411
+ "discriminator": [
3412
+ 134,
3413
+ 36,
3414
+ 13,
3415
+ 72,
3416
+ 232,
3417
+ 101,
3418
+ 130,
3419
+ 216
3420
+ ]
3421
+ },
3203
3422
  {
3204
3423
  "name": "SetCreatorEvent",
3205
3424
  "discriminator": [
@@ -3613,6 +3832,22 @@
3613
3832
  ]
3614
3833
  }
3615
3834
  },
3835
+ {
3836
+ "name": "CloseUserVolumeAccumulatorEvent",
3837
+ "type": {
3838
+ "kind": "struct",
3839
+ "fields": [
3840
+ {
3841
+ "name": "user",
3842
+ "type": "pubkey"
3843
+ },
3844
+ {
3845
+ "name": "timestamp",
3846
+ "type": "i64"
3847
+ }
3848
+ ]
3849
+ }
3850
+ },
3616
3851
  {
3617
3852
  "name": "CollectCreatorFeeEvent",
3618
3853
  "type": {
@@ -3902,6 +4137,26 @@
3902
4137
  ]
3903
4138
  }
3904
4139
  },
4140
+ {
4141
+ "name": "InitUserVolumeAccumulatorEvent",
4142
+ "type": {
4143
+ "kind": "struct",
4144
+ "fields": [
4145
+ {
4146
+ "name": "payer",
4147
+ "type": "pubkey"
4148
+ },
4149
+ {
4150
+ "name": "user",
4151
+ "type": "pubkey"
4152
+ },
4153
+ {
4154
+ "name": "timestamp",
4155
+ "type": "i64"
4156
+ }
4157
+ ]
4158
+ }
4159
+ },
3905
4160
  {
3906
4161
  "name": "SetCreatorEvent",
3907
4162
  "type": {