mirror of
https://github.com/chainstacklabs/pumpfun-bonkfun-bot.git
synced 2026-08-20 02:38:05 +00:00
feat: updated IDL from pump fun (volume accumulators)
This commit is contained in:
+304
-2
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user