feat: updated IDL from pump fun (volume accumulators)

This commit is contained in:
smypmsa
2025-08-14 08:11:21 +00:00
parent 093331874b
commit f061a75498
2 changed files with 718 additions and 4 deletions
+414 -2
View File
@@ -121,6 +121,98 @@
}
]
},
{
"name": "admin_set_idl_authority",
"discriminator": [
8,
217,
96,
231,
144,
104,
192,
5
],
"accounts": [
{
"name": "authority",
"signer": true,
"relations": [
"global"
]
},
{
"name": "global",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108
]
}
]
}
},
{
"name": "idl_account",
"writable": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "program_signer",
"pda": {
"seeds": []
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": [
{
"name": "idl_authority",
"type": "pubkey"
}
]
},
{
"name": "admin_update_token_incentives",
"discriminator": [
@@ -143,7 +235,22 @@
]
},
{
"name": "global"
"name": "global",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108
]
}
]
}
},
{
"name": "global_volume_accumulator",
@@ -624,10 +731,15 @@
},
{
"kind": "account",
"path": "user"
"path": "user_acc_target"
}
]
}
},
{
"name": "user_acc_target",
"writable": true,
"signer": true
}
],
"args": [
@@ -905,6 +1017,99 @@
],
"args": []
},
{
"name": "close_user_volume_accumulator",
"discriminator": [
249,
69,
164,
218,
150,
103,
84,
138
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "collect_creator_fee",
"docs": [
@@ -1385,6 +1590,106 @@
],
"args": []
},
{
"name": "init_user_volume_accumulator",
"discriminator": [
94,
6,
202,
115,
255,
96,
232,
183
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "initialize",
"docs": [
@@ -2989,6 +3294,19 @@
107
]
},
{
"name": "AdminSetIdlAuthorityEvent",
"discriminator": [
245,
59,
70,
34,
75,
185,
109,
92
]
},
{
"name": "AdminUpdateTokenIncentivesEvent",
"discriminator": [
@@ -3015,6 +3333,19 @@
232
]
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"discriminator": [
146,
159,
189,
172,
146,
88,
56,
244
]
},
{
"name": "CollectCreatorFeeEvent",
"discriminator": [
@@ -3080,6 +3411,19 @@
124
]
},
{
"name": "InitUserVolumeAccumulatorEvent",
"discriminator": [
134,
36,
13,
72,
232,
101,
130,
216
]
},
{
"name": "SetCreatorEvent",
"discriminator": [
@@ -3385,6 +3729,18 @@
]
}
},
{
"name": "AdminSetIdlAuthorityEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "idl_authority",
"type": "pubkey"
}
]
}
},
{
"name": "AdminUpdateTokenIncentivesEvent",
"type": {
@@ -3405,6 +3761,18 @@
{
"name": "token_supply_per_day",
"type": "u64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "seconds_in_a_day",
"type": "i64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
@@ -3461,6 +3829,26 @@
{
"name": "amount",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
@@ -3754,6 +4142,26 @@
]
}
},
{
"name": "InitUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "payer",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "SetCreatorEvent",
"type": {
@@ -3891,6 +4299,10 @@
{
"name": "total_claimed_tokens_after",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
+304 -2
View File
@@ -99,7 +99,29 @@
]
},
{
"name": "global_config"
"name": "global_config",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
103,
108,
111,
98,
97,
108,
95,
99,
111,
110,
102,
105,
103
]
}
]
}
},
{
"name": "global_volume_accumulator",
@@ -590,10 +612,15 @@
},
{
"kind": "account",
"path": "user"
"path": "user_acc_target"
}
]
}
},
{
"name": "user_acc_target",
"writable": true,
"signer": true
}
],
"args": [
@@ -871,6 +898,99 @@
],
"args": []
},
{
"name": "close_user_volume_accumulator",
"discriminator": [
249,
69,
164,
218,
150,
103,
84,
138
],
"accounts": [
{
"name": "user",
"writable": true,
"signer": true
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "collect_coin_creator_fee",
"discriminator": [
@@ -1731,6 +1851,106 @@
],
"args": []
},
{
"name": "init_user_volume_accumulator",
"discriminator": [
94,
6,
202,
115,
255,
96,
232,
183
],
"accounts": [
{
"name": "payer",
"writable": true,
"signer": true
},
{
"name": "user"
},
{
"name": "user_volume_accumulator",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
117,
115,
101,
114,
95,
118,
111,
108,
117,
109,
101,
95,
97,
99,
99,
117,
109,
117,
108,
97,
116,
111,
114
]
},
{
"kind": "account",
"path": "user"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "event_authority",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
95,
95,
101,
118,
101,
110,
116,
95,
97,
117,
116,
104,
111,
114,
105,
116,
121
]
}
]
}
},
{
"name": "program"
}
],
"args": []
},
{
"name": "sell",
"discriminator": [
@@ -2736,6 +2956,19 @@
232
]
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"discriminator": [
146,
159,
189,
172,
146,
88,
56,
244
]
},
{
"name": "CollectCoinCreatorFeeEvent",
"discriminator": [
@@ -2814,6 +3047,19 @@
124
]
},
{
"name": "InitUserVolumeAccumulatorEvent",
"discriminator": [
134,
36,
13,
72,
232,
101,
130,
216
]
},
{
"name": "SellEvent",
"discriminator": [
@@ -3117,6 +3363,18 @@
{
"name": "token_supply_per_day",
"type": "u64"
},
{
"name": "mint",
"type": "pubkey"
},
{
"name": "seconds_in_a_day",
"type": "i64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
@@ -3273,6 +3531,26 @@
{
"name": "amount",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "CloseUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
@@ -3679,6 +3957,26 @@
]
}
},
{
"name": "InitUserVolumeAccumulatorEvent",
"type": {
"kind": "struct",
"fields": [
{
"name": "payer",
"type": "pubkey"
},
{
"name": "user",
"type": "pubkey"
},
{
"name": "timestamp",
"type": "i64"
}
]
}
},
{
"name": "Pool",
"type": {
@@ -3902,6 +4200,10 @@
{
"name": "total_claimed_tokens_after",
"type": "u64"
},
{
"name": "timestamp",
"type": "i64"
}
]
}