@pump-fun/pump-sdk 1.9.1 → 1.9.2-devnet.2

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/src/idl/pump.json CHANGED
@@ -121,6 +121,98 @@
121
121
  }
122
122
  ]
123
123
  },
124
+ {
125
+ "name": "admin_set_idl_authority",
126
+ "discriminator": [
127
+ 8,
128
+ 217,
129
+ 96,
130
+ 231,
131
+ 144,
132
+ 104,
133
+ 192,
134
+ 5
135
+ ],
136
+ "accounts": [
137
+ {
138
+ "name": "authority",
139
+ "signer": true,
140
+ "relations": [
141
+ "global"
142
+ ]
143
+ },
144
+ {
145
+ "name": "global",
146
+ "pda": {
147
+ "seeds": [
148
+ {
149
+ "kind": "const",
150
+ "value": [
151
+ 103,
152
+ 108,
153
+ 111,
154
+ 98,
155
+ 97,
156
+ 108
157
+ ]
158
+ }
159
+ ]
160
+ }
161
+ },
162
+ {
163
+ "name": "idl_account",
164
+ "writable": true
165
+ },
166
+ {
167
+ "name": "system_program",
168
+ "address": "11111111111111111111111111111111"
169
+ },
170
+ {
171
+ "name": "program_signer",
172
+ "pda": {
173
+ "seeds": []
174
+ }
175
+ },
176
+ {
177
+ "name": "event_authority",
178
+ "pda": {
179
+ "seeds": [
180
+ {
181
+ "kind": "const",
182
+ "value": [
183
+ 95,
184
+ 95,
185
+ 101,
186
+ 118,
187
+ 101,
188
+ 110,
189
+ 116,
190
+ 95,
191
+ 97,
192
+ 117,
193
+ 116,
194
+ 104,
195
+ 111,
196
+ 114,
197
+ 105,
198
+ 116,
199
+ 121
200
+ ]
201
+ }
202
+ ]
203
+ }
204
+ },
205
+ {
206
+ "name": "program"
207
+ }
208
+ ],
209
+ "args": [
210
+ {
211
+ "name": "idl_authority",
212
+ "type": "pubkey"
213
+ }
214
+ ]
215
+ },
124
216
  {
125
217
  "name": "admin_update_token_incentives",
126
218
  "discriminator": [
@@ -143,7 +235,22 @@
143
235
  ]
144
236
  },
145
237
  {
146
- "name": "global"
238
+ "name": "global",
239
+ "pda": {
240
+ "seeds": [
241
+ {
242
+ "kind": "const",
243
+ "value": [
244
+ 103,
245
+ 108,
246
+ 111,
247
+ 98,
248
+ 97,
249
+ 108
250
+ ]
251
+ }
252
+ ]
253
+ }
147
254
  },
148
255
  {
149
256
  "name": "global_volume_accumulator",
@@ -2989,6 +3096,19 @@
2989
3096
  107
2990
3097
  ]
2991
3098
  },
3099
+ {
3100
+ "name": "AdminSetIdlAuthorityEvent",
3101
+ "discriminator": [
3102
+ 245,
3103
+ 59,
3104
+ 70,
3105
+ 34,
3106
+ 75,
3107
+ 185,
3108
+ 109,
3109
+ 92
3110
+ ]
3111
+ },
2992
3112
  {
2993
3113
  "name": "AdminUpdateTokenIncentivesEvent",
2994
3114
  "discriminator": [
@@ -3385,6 +3505,18 @@
3385
3505
  ]
3386
3506
  }
3387
3507
  },
3508
+ {
3509
+ "name": "AdminSetIdlAuthorityEvent",
3510
+ "type": {
3511
+ "kind": "struct",
3512
+ "fields": [
3513
+ {
3514
+ "name": "idl_authority",
3515
+ "type": "pubkey"
3516
+ }
3517
+ ]
3518
+ }
3519
+ },
3388
3520
  {
3389
3521
  "name": "AdminUpdateTokenIncentivesEvent",
3390
3522
  "type": {
@@ -3405,6 +3537,18 @@
3405
3537
  {
3406
3538
  "name": "token_supply_per_day",
3407
3539
  "type": "u64"
3540
+ },
3541
+ {
3542
+ "name": "mint",
3543
+ "type": "pubkey"
3544
+ },
3545
+ {
3546
+ "name": "seconds_in_a_day",
3547
+ "type": "i64"
3548
+ },
3549
+ {
3550
+ "name": "timestamp",
3551
+ "type": "i64"
3408
3552
  }
3409
3553
  ]
3410
3554
  }
@@ -3461,6 +3605,10 @@
3461
3605
  {
3462
3606
  "name": "amount",
3463
3607
  "type": "u64"
3608
+ },
3609
+ {
3610
+ "name": "timestamp",
3611
+ "type": "i64"
3464
3612
  }
3465
3613
  ]
3466
3614
  }
@@ -3891,6 +4039,10 @@
3891
4039
  {
3892
4040
  "name": "total_claimed_tokens_after",
3893
4041
  "type": "u64"
4042
+ },
4043
+ {
4044
+ "name": "timestamp",
4045
+ "type": "i64"
3894
4046
  }
3895
4047
  ]
3896
4048
  }
package/src/idl/pump.ts CHANGED
@@ -127,6 +127,98 @@ export type Pump = {
127
127
  }
128
128
  ]
129
129
  },
130
+ {
131
+ "name": "adminSetIdlAuthority",
132
+ "discriminator": [
133
+ 8,
134
+ 217,
135
+ 96,
136
+ 231,
137
+ 144,
138
+ 104,
139
+ 192,
140
+ 5
141
+ ],
142
+ "accounts": [
143
+ {
144
+ "name": "authority",
145
+ "signer": true,
146
+ "relations": [
147
+ "global"
148
+ ]
149
+ },
150
+ {
151
+ "name": "global",
152
+ "pda": {
153
+ "seeds": [
154
+ {
155
+ "kind": "const",
156
+ "value": [
157
+ 103,
158
+ 108,
159
+ 111,
160
+ 98,
161
+ 97,
162
+ 108
163
+ ]
164
+ }
165
+ ]
166
+ }
167
+ },
168
+ {
169
+ "name": "idlAccount",
170
+ "writable": true
171
+ },
172
+ {
173
+ "name": "systemProgram",
174
+ "address": "11111111111111111111111111111111"
175
+ },
176
+ {
177
+ "name": "programSigner",
178
+ "pda": {
179
+ "seeds": []
180
+ }
181
+ },
182
+ {
183
+ "name": "eventAuthority",
184
+ "pda": {
185
+ "seeds": [
186
+ {
187
+ "kind": "const",
188
+ "value": [
189
+ 95,
190
+ 95,
191
+ 101,
192
+ 118,
193
+ 101,
194
+ 110,
195
+ 116,
196
+ 95,
197
+ 97,
198
+ 117,
199
+ 116,
200
+ 104,
201
+ 111,
202
+ 114,
203
+ 105,
204
+ 116,
205
+ 121
206
+ ]
207
+ }
208
+ ]
209
+ }
210
+ },
211
+ {
212
+ "name": "program"
213
+ }
214
+ ],
215
+ "args": [
216
+ {
217
+ "name": "idlAuthority",
218
+ "type": "pubkey"
219
+ }
220
+ ]
221
+ },
130
222
  {
131
223
  "name": "adminUpdateTokenIncentives",
132
224
  "discriminator": [
@@ -149,7 +241,22 @@ export type Pump = {
149
241
  ]
150
242
  },
151
243
  {
152
- "name": "global"
244
+ "name": "global",
245
+ "pda": {
246
+ "seeds": [
247
+ {
248
+ "kind": "const",
249
+ "value": [
250
+ 103,
251
+ 108,
252
+ 111,
253
+ 98,
254
+ 97,
255
+ 108
256
+ ]
257
+ }
258
+ ]
259
+ }
153
260
  },
154
261
  {
155
262
  "name": "globalVolumeAccumulator",
@@ -2995,6 +3102,19 @@ export type Pump = {
2995
3102
  107
2996
3103
  ]
2997
3104
  },
3105
+ {
3106
+ "name": "adminSetIdlAuthorityEvent",
3107
+ "discriminator": [
3108
+ 245,
3109
+ 59,
3110
+ 70,
3111
+ 34,
3112
+ 75,
3113
+ 185,
3114
+ 109,
3115
+ 92
3116
+ ]
3117
+ },
2998
3118
  {
2999
3119
  "name": "adminUpdateTokenIncentivesEvent",
3000
3120
  "discriminator": [
@@ -3391,6 +3511,18 @@ export type Pump = {
3391
3511
  ]
3392
3512
  }
3393
3513
  },
3514
+ {
3515
+ "name": "adminSetIdlAuthorityEvent",
3516
+ "type": {
3517
+ "kind": "struct",
3518
+ "fields": [
3519
+ {
3520
+ "name": "idlAuthority",
3521
+ "type": "pubkey"
3522
+ }
3523
+ ]
3524
+ }
3525
+ },
3394
3526
  {
3395
3527
  "name": "adminUpdateTokenIncentivesEvent",
3396
3528
  "type": {
@@ -3411,6 +3543,18 @@ export type Pump = {
3411
3543
  {
3412
3544
  "name": "tokenSupplyPerDay",
3413
3545
  "type": "u64"
3546
+ },
3547
+ {
3548
+ "name": "mint",
3549
+ "type": "pubkey"
3550
+ },
3551
+ {
3552
+ "name": "secondsInADay",
3553
+ "type": "i64"
3554
+ },
3555
+ {
3556
+ "name": "timestamp",
3557
+ "type": "i64"
3414
3558
  }
3415
3559
  ]
3416
3560
  }
@@ -3467,6 +3611,10 @@ export type Pump = {
3467
3611
  {
3468
3612
  "name": "amount",
3469
3613
  "type": "u64"
3614
+ },
3615
+ {
3616
+ "name": "timestamp",
3617
+ "type": "i64"
3470
3618
  }
3471
3619
  ]
3472
3620
  }
@@ -3897,6 +4045,10 @@ export type Pump = {
3897
4045
  {
3898
4046
  "name": "totalClaimedTokensAfter",
3899
4047
  "type": "u64"
4048
+ },
4049
+ {
4050
+ "name": "timestamp",
4051
+ "type": "i64"
3900
4052
  }
3901
4053
  ]
3902
4054
  }
package/src/sdk.ts CHANGED
@@ -457,11 +457,11 @@ export class PumpSdk {
457
457
  }
458
458
 
459
459
  async migrateInstruction({
460
- global,
460
+ withdrawAuthority,
461
461
  mint,
462
462
  user,
463
463
  }: {
464
- global: Global;
464
+ withdrawAuthority: PublicKey;
465
465
  mint: PublicKey;
466
466
  user: PublicKey;
467
467
  }): Promise<TransactionInstruction> {
@@ -470,8 +470,7 @@ export class PumpSdk {
470
470
  .accountsPartial({
471
471
  mint,
472
472
  user,
473
- pumpAmm: this.pumpAmmSdk.programId(),
474
- withdrawAuthority: global.withdrawAuthority,
473
+ withdrawAuthority,
475
474
  })
476
475
  .instruction();
477
476
  }
@@ -580,7 +579,6 @@ export class PumpSdk {
580
579
  tokenSupplyPerDay,
581
580
  )
582
581
  .accountsPartial({
583
- global: this.globalPda(),
584
582
  authority,
585
583
  mint,
586
584
  tokenProgram,