Files
khadhroony-bot3/idls/clmm.whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc.orca_whirlpool.V0_9_0.from_solscan.json
2026-07-30 10:27:06 +02:00

6730 lines
199 KiB
JSON

{
"address": "whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",
"metadata": {
"name": "whirlpool",
"version": "0.9.0",
"spec": "0.1.0"
},
"instructions": [
{
"name": "close_bundled_position",
"discriminator": [
41,
36,
216,
245,
27,
85,
103,
67
],
"accounts": [
{
"name": "bundled_position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
98,
117,
110,
100,
108,
101,
100,
95,
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_bundle.position_bundle_mint",
"account": "PositionBundle"
},
{
"kind": "arg",
"path": "bundle_index"
}
]
}
},
{
"name": "position_bundle",
"writable": true
},
{
"name": "position_bundle_token_account"
},
{
"name": "position_bundle_authority",
"signer": true
},
{
"name": "receiver",
"writable": true
}
],
"args": [
{
"name": "bundle_index",
"type": "u16"
}
]
},
{
"name": "close_position",
"discriminator": [
123,
134,
81,
0,
49,
68,
98,
98
],
"accounts": [
{
"name": "position_authority",
"signer": true
},
{
"name": "receiver",
"writable": true
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint",
"writable": true
},
{
"name": "position_token_account",
"writable": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"args": []
},
{
"name": "close_position_with_token_extensions",
"discriminator": [
1,
182,
135,
59,
155,
25,
99,
223
],
"accounts": [
{
"name": "position_authority",
"signer": true
},
{
"name": "receiver",
"writable": true
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint",
"writable": true
},
{
"name": "position_token_account",
"writable": true
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
}
],
"args": []
},
{
"name": "collect_fees",
"discriminator": [
164,
152,
207,
99,
30,
186,
19,
182
],
"accounts": [
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"args": []
},
{
"name": "collect_fees_v2",
"discriminator": [
207,
117,
95,
191,
229,
180,
226,
15
],
"accounts": [
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
}
],
"args": [
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "collect_protocol_fees",
"discriminator": [
22,
67,
23,
98,
150,
178,
70,
220
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "collect_protocol_fees_authority",
"signer": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "token_destination_a",
"writable": true
},
{
"name": "token_destination_b",
"writable": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"args": []
},
{
"name": "collect_protocol_fees_v2",
"discriminator": [
103,
128,
222,
134,
114,
200,
22,
200
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "collect_protocol_fees_authority",
"signer": true
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "token_destination_a",
"writable": true
},
{
"name": "token_destination_b",
"writable": true
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
}
],
"args": [
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "collect_reward",
"discriminator": [
70,
5,
132,
87,
86,
235,
177,
34
],
"accounts": [
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "reward_owner_account",
"writable": true
},
{
"name": "reward_vault",
"writable": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "collect_reward_v2",
"discriminator": [
177,
107,
37,
180,
160,
19,
49,
209
],
"accounts": [
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "reward_owner_account",
"writable": true
},
{
"name": "reward_mint"
},
{
"name": "reward_vault",
"writable": true
},
{
"name": "reward_token_program"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "decrease_liquidity",
"discriminator": [
160,
38,
208,
111,
104,
91,
44,
1
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_lower",
"writable": true
},
{
"name": "tick_array_upper",
"writable": true
}
],
"args": [
{
"name": "liquidity_amount",
"type": "u128"
},
{
"name": "token_min_a",
"type": "u64"
},
{
"name": "token_min_b",
"type": "u64"
}
]
},
{
"name": "decrease_liquidity_v2",
"discriminator": [
58,
127,
188,
62,
79,
82,
196,
96
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_lower",
"writable": true
},
{
"name": "tick_array_upper",
"writable": true
}
],
"args": [
{
"name": "liquidity_amount",
"type": "u128"
},
{
"name": "token_min_a",
"type": "u64"
},
{
"name": "token_min_b",
"type": "u64"
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "delete_position_bundle",
"discriminator": [
100,
25,
99,
2,
217,
239,
124,
173
],
"accounts": [
{
"name": "position_bundle",
"writable": true
},
{
"name": "position_bundle_mint",
"writable": true
},
{
"name": "position_bundle_token_account",
"writable": true
},
{
"name": "position_bundle_owner",
"signer": true
},
{
"name": "receiver",
"writable": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
}
],
"args": []
},
{
"name": "delete_token_badge",
"discriminator": [
53,
146,
68,
8,
18,
117,
17,
185
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpools_config_extension",
"token_badge"
]
},
{
"name": "whirlpools_config_extension"
},
{
"name": "token_badge_authority",
"signer": true
},
{
"name": "token_mint"
},
{
"name": "token_badge",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint"
}
]
}
},
{
"name": "receiver",
"writable": true
}
],
"args": []
},
{
"name": "idl_include",
"discriminator": [
223,
253,
121,
121,
60,
193,
129,
31
],
"accounts": [
{
"name": "tick_array"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "increase_liquidity",
"discriminator": [
46,
156,
243,
118,
13,
205,
251,
178
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_lower",
"writable": true
},
{
"name": "tick_array_upper",
"writable": true
}
],
"args": [
{
"name": "liquidity_amount",
"type": "u128"
},
{
"name": "token_max_a",
"type": "u64"
},
{
"name": "token_max_b",
"type": "u64"
}
]
},
{
"name": "increase_liquidity_by_token_amounts_v2",
"discriminator": [
239,
251,
9,
124,
210,
198,
53,
43
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_lower",
"writable": true
},
{
"name": "tick_array_upper",
"writable": true
}
],
"args": [
{
"name": "method",
"type": {
"defined": {
"name": "IncreaseLiquidityMethod"
}
}
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "increase_liquidity_v2",
"discriminator": [
133,
29,
89,
223,
69,
238,
176,
10
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_lower",
"writable": true
},
{
"name": "tick_array_upper",
"writable": true
}
],
"args": [
{
"name": "liquidity_amount",
"type": "u128"
},
{
"name": "token_max_a",
"type": "u64"
},
{
"name": "token_max_b",
"type": "u64"
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "initialize_adaptive_fee_tier",
"discriminator": [
77,
99,
208,
200,
141,
123,
117,
48
],
"accounts": [
{
"name": "whirlpools_config"
},
{
"name": "adaptive_fee_tier",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
102,
101,
101,
95,
116,
105,
101,
114
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "arg",
"path": "fee_tier_index"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "fee_tier_index",
"type": "u16"
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "initialize_pool_authority",
"type": "pubkey"
},
{
"name": "delegated_fee_authority",
"type": "pubkey"
},
{
"name": "default_base_fee_rate",
"type": "u16"
},
{
"name": "filter_period",
"type": "u16"
},
{
"name": "decay_period",
"type": "u16"
},
{
"name": "reduction_factor",
"type": "u16"
},
{
"name": "adaptive_fee_control_factor",
"type": "u32"
},
{
"name": "max_volatility_accumulator",
"type": "u32"
},
{
"name": "tick_group_size",
"type": "u16"
},
{
"name": "major_swap_threshold_ticks",
"type": "u16"
}
]
},
{
"name": "initialize_config",
"discriminator": [
208,
127,
21,
1,
194,
190,
196,
70
],
"accounts": [
{
"name": "config",
"writable": true,
"signer": true
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "fee_authority",
"type": "pubkey"
},
{
"name": "collect_protocol_fees_authority",
"type": "pubkey"
},
{
"name": "reward_emissions_super_authority",
"type": "pubkey"
},
{
"name": "default_protocol_fee_rate",
"type": "u16"
}
]
},
{
"name": "initialize_config_extension",
"discriminator": [
55,
9,
53,
9,
114,
57,
209,
52
],
"accounts": [
{
"name": "config"
},
{
"name": "config_extension",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
99,
111,
110,
102,
105,
103,
95,
101,
120,
116,
101,
110,
115,
105,
111,
110
]
},
{
"kind": "account",
"path": "config"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "initialize_dynamic_tick_array",
"discriminator": [
41,
33,
165,
200,
120,
231,
142,
50
],
"accounts": [
{
"name": "whirlpool"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "tick_array",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
105,
99,
107,
95,
97,
114,
114,
97,
121
]
},
{
"kind": "account",
"path": "whirlpool"
},
{
"kind": "arg",
"path": "start_tick_index"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "start_tick_index",
"type": "i32"
},
{
"name": "idempotent",
"type": "bool"
}
]
},
{
"name": "initialize_fee_tier",
"discriminator": [
183,
74,
156,
160,
112,
2,
42,
30
],
"accounts": [
{
"name": "config"
},
{
"name": "fee_tier",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
102,
101,
101,
95,
116,
105,
101,
114
]
},
{
"kind": "account",
"path": "config"
},
{
"kind": "arg",
"path": "tick_spacing"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "default_fee_rate",
"type": "u16"
}
]
},
{
"name": "initialize_pool",
"discriminator": [
95,
180,
10,
172,
84,
174,
232,
40
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"fee_tier"
]
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "whirlpool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
119,
104,
105,
114,
108,
112,
111,
111,
108
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_a"
},
{
"kind": "account",
"path": "token_mint_b"
},
{
"kind": "arg",
"path": "tick_spacing"
}
]
}
},
{
"name": "token_vault_a",
"writable": true,
"signer": true
},
{
"name": "token_vault_b",
"writable": true,
"signer": true
},
{
"name": "fee_tier"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "bumps",
"type": {
"defined": {
"name": "WhirlpoolBumps"
}
}
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "initial_sqrt_price",
"type": "u128"
}
]
},
{
"name": "initialize_pool_v2",
"discriminator": [
207,
45,
87,
242,
27,
63,
204,
67
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"fee_tier"
]
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_badge_a",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_a"
}
]
}
},
{
"name": "token_badge_b",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_b"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "whirlpool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
119,
104,
105,
114,
108,
112,
111,
111,
108
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_a"
},
{
"kind": "account",
"path": "token_mint_b"
},
{
"kind": "arg",
"path": "tick_spacing"
}
]
}
},
{
"name": "token_vault_a",
"writable": true,
"signer": true
},
{
"name": "token_vault_b",
"writable": true,
"signer": true
},
{
"name": "fee_tier"
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "initial_sqrt_price",
"type": "u128"
}
]
},
{
"name": "initialize_pool_with_adaptive_fee",
"discriminator": [
143,
94,
96,
76,
172,
124,
119,
199
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"adaptive_fee_tier"
]
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_badge_a",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_a"
}
]
}
},
{
"name": "token_badge_b",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_b"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "initialize_pool_authority",
"signer": true
},
{
"name": "whirlpool",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
119,
104,
105,
114,
108,
112,
111,
111,
108
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint_a"
},
{
"kind": "account",
"path": "token_mint_b"
},
{
"kind": "account",
"path": "adaptive_fee_tier.fee_tier_index",
"account": "AdaptiveFeeTier"
}
]
}
},
{
"name": "oracle",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool"
}
]
}
},
{
"name": "token_vault_a",
"writable": true,
"signer": true
},
{
"name": "token_vault_b",
"writable": true,
"signer": true
},
{
"name": "adaptive_fee_tier"
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "initial_sqrt_price",
"type": "u128"
},
{
"name": "trade_enable_timestamp",
"type": {
"option": "u64"
}
}
]
},
{
"name": "initialize_position_bundle",
"discriminator": [
117,
45,
241,
149,
24,
18,
194,
65
],
"accounts": [
{
"name": "position_bundle",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110,
95,
98,
117,
110,
100,
108,
101
]
},
{
"kind": "account",
"path": "position_bundle_mint"
}
]
}
},
{
"name": "position_bundle_mint",
"writable": true,
"signer": true
},
{
"name": "position_bundle_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "position_bundle_owner"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "position_bundle_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "position_bundle_owner"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
}
],
"args": []
},
{
"name": "initialize_position_bundle_with_metadata",
"discriminator": [
93,
124,
16,
179,
249,
131,
115,
245
],
"accounts": [
{
"name": "position_bundle",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110,
95,
98,
117,
110,
100,
108,
101
]
},
{
"kind": "account",
"path": "position_bundle_mint"
}
]
}
},
{
"name": "position_bundle_mint",
"writable": true,
"signer": true
},
{
"name": "position_bundle_metadata",
"writable": true
},
{
"name": "position_bundle_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "position_bundle_owner"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "position_bundle_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "position_bundle_owner"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "metadata_update_auth",
"address": "3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "metadata_program",
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
}
],
"args": []
},
{
"name": "initialize_reward",
"discriminator": [
95,
135,
192,
196,
242,
129,
230,
68
],
"accounts": [
{
"name": "reward_authority",
"signer": true
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_mint"
},
{
"name": "reward_vault",
"writable": true,
"signer": true
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "initialize_reward_v2",
"discriminator": [
91,
1,
77,
50,
235,
229,
133,
49
],
"accounts": [
{
"name": "reward_authority",
"signer": true
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_mint"
},
{
"name": "reward_token_badge",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpool.whirlpools_config",
"account": "Whirlpool"
},
{
"kind": "account",
"path": "reward_mint"
}
]
}
},
{
"name": "reward_vault",
"writable": true,
"signer": true
},
{
"name": "reward_token_program"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "initialize_tick_array",
"discriminator": [
11,
188,
193,
214,
141,
91,
149,
184
],
"accounts": [
{
"name": "whirlpool"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "tick_array",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
105,
99,
107,
95,
97,
114,
114,
97,
121
]
},
{
"kind": "account",
"path": "whirlpool"
},
{
"kind": "arg",
"path": "start_tick_index"
}
]
}
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "start_tick_index",
"type": "i32"
}
]
},
{
"name": "initialize_token_badge",
"discriminator": [
253,
77,
205,
95,
27,
224,
89,
223
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpools_config_extension"
]
},
{
"name": "whirlpools_config_extension"
},
{
"name": "token_badge_authority",
"signer": true
},
{
"name": "token_mint"
},
{
"name": "token_badge",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
116,
111,
107,
101,
110,
95,
98,
97,
100,
103,
101
]
},
{
"kind": "account",
"path": "whirlpools_config"
},
{
"kind": "account",
"path": "token_mint"
}
]
}
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": []
},
{
"name": "lock_position",
"discriminator": [
227,
62,
2,
252,
247,
10,
171,
185
],
"accounts": [
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "position_authority",
"signer": true
},
{
"name": "position",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint"
},
{
"name": "position_token_account",
"writable": true
},
{
"name": "lock_config",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
108,
111,
99,
107,
95,
99,
111,
110,
102,
105,
103
]
},
{
"kind": "account",
"path": "position"
}
]
}
},
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "lock_type",
"type": {
"defined": {
"name": "LockType"
}
}
}
]
},
{
"name": "migrate_repurpose_reward_authority_space",
"discriminator": [
214,
161,
248,
79,
152,
98,
172,
231
],
"accounts": [
{
"name": "whirlpool",
"writable": true
}
],
"args": []
},
{
"name": "open_bundled_position",
"discriminator": [
169,
113,
126,
171,
213,
172,
212,
49
],
"accounts": [
{
"name": "bundled_position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
98,
117,
110,
100,
108,
101,
100,
95,
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_bundle.position_bundle_mint",
"account": "PositionBundle"
},
{
"kind": "arg",
"path": "bundle_index"
}
]
}
},
{
"name": "position_bundle",
"writable": true
},
{
"name": "position_bundle_token_account"
},
{
"name": "position_bundle_authority",
"signer": true
},
{
"name": "whirlpool"
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
}
],
"args": [
{
"name": "bundle_index",
"type": "u16"
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
}
]
},
{
"name": "open_position",
"discriminator": [
135,
128,
47,
77,
15,
152,
240,
49
],
"accounts": [
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "owner"
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint",
"writable": true,
"signer": true
},
{
"name": "position_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "owner"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "position_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "whirlpool"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
}
],
"args": [
{
"name": "bumps",
"type": {
"defined": {
"name": "OpenPositionBumps"
}
}
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
}
]
},
{
"name": "open_position_with_metadata",
"discriminator": [
242,
29,
134,
48,
58,
110,
14,
60
],
"accounts": [
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "owner"
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint",
"writable": true,
"signer": true
},
{
"name": "position_metadata_account",
"writable": true
},
{
"name": "position_token_account",
"writable": true,
"pda": {
"seeds": [
{
"kind": "account",
"path": "owner"
},
{
"kind": "const",
"value": [
6,
221,
246,
225,
215,
101,
161,
147,
217,
203,
225,
70,
206,
235,
121,
172,
28,
180,
133,
237,
95,
91,
55,
145,
58,
140,
245,
133,
126,
255,
0,
169
]
},
{
"kind": "account",
"path": "position_mint"
}
],
"program": {
"kind": "const",
"value": [
140,
151,
37,
143,
78,
36,
137,
241,
187,
61,
16,
41,
20,
142,
13,
131,
11,
90,
19,
153,
218,
255,
16,
132,
4,
142,
123,
216,
219,
233,
248,
89
]
}
}
},
{
"name": "whirlpool"
},
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "rent",
"address": "SysvarRent111111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "metadata_program",
"address": "metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"
},
{
"name": "metadata_update_auth",
"address": "3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr"
}
],
"args": [
{
"name": "bumps",
"type": {
"defined": {
"name": "OpenPositionWithMetadataBumps"
}
}
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
}
]
},
{
"name": "open_position_with_token_extensions",
"discriminator": [
212,
47,
95,
92,
114,
102,
131,
250
],
"accounts": [
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "owner"
},
{
"name": "position",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
}
},
{
"name": "position_mint",
"writable": true,
"signer": true
},
{
"name": "position_token_account",
"writable": true
},
{
"name": "whirlpool"
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
},
{
"name": "associated_token_program",
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
},
{
"name": "metadata_update_auth",
"address": "3axbTs2z5GBy6usVbNVoqEgZMng3vZvMnAoX29BFfwhr"
}
],
"args": [
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
},
{
"name": "with_token_metadata_extension",
"type": "bool"
}
]
},
{
"name": "reposition_liquidity_v2",
"discriminator": [
191,
169,
224,
11,
131,
19,
158,
253
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
},
{
"name": "position_authority",
"signer": true
},
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "existing_tick_array_lower",
"writable": true
},
{
"name": "existing_tick_array_upper",
"writable": true
},
{
"name": "new_tick_array_lower",
"writable": true
},
{
"name": "new_tick_array_upper",
"writable": true
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "new_tick_lower_index",
"type": "i32"
},
{
"name": "new_tick_upper_index",
"type": "i32"
},
{
"name": "method",
"type": {
"defined": {
"name": "RepositionLiquidityMethod"
}
}
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "reset_position_range",
"discriminator": [
164,
123,
180,
141,
194,
100,
160,
175
],
"accounts": [
{
"name": "funder",
"writable": true,
"signer": true
},
{
"name": "position_authority",
"signer": true
},
{
"name": "whirlpool",
"relations": [
"position"
]
},
{
"name": "position",
"writable": true
},
{
"name": "position_token_account"
},
{
"name": "system_program",
"address": "11111111111111111111111111111111"
}
],
"args": [
{
"name": "new_tick_lower_index",
"type": "i32"
},
{
"name": "new_tick_upper_index",
"type": "i32"
}
]
},
{
"name": "set_adaptive_fee_constants",
"discriminator": [
133,
158,
212,
189,
237,
12,
73,
39
],
"accounts": [
{
"name": "whirlpool",
"relations": [
"oracle"
]
},
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "oracle",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "filter_period",
"type": {
"option": "u16"
}
},
{
"name": "decay_period",
"type": {
"option": "u16"
}
},
{
"name": "reduction_factor",
"type": {
"option": "u16"
}
},
{
"name": "adaptive_fee_control_factor",
"type": {
"option": "u32"
}
},
{
"name": "max_volatility_accumulator",
"type": {
"option": "u32"
}
},
{
"name": "tick_group_size",
"type": {
"option": "u16"
}
},
{
"name": "major_swap_threshold_ticks",
"type": {
"option": "u16"
}
}
]
},
{
"name": "set_collect_protocol_fees_authority",
"discriminator": [
34,
150,
93,
244,
139,
225,
233,
67
],
"accounts": [
{
"name": "whirlpools_config",
"writable": true
},
{
"name": "collect_protocol_fees_authority",
"signer": true
},
{
"name": "new_collect_protocol_fees_authority"
}
],
"args": []
},
{
"name": "set_config_extension_authority",
"discriminator": [
44,
94,
241,
116,
24,
188,
60,
143
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpools_config_extension"
]
},
{
"name": "whirlpools_config_extension",
"writable": true
},
{
"name": "config_extension_authority",
"signer": true
},
{
"name": "new_config_extension_authority"
}
],
"args": []
},
{
"name": "set_config_feature_flag",
"discriminator": [
71,
173,
228,
18,
67,
247,
210,
57
],
"accounts": [
{
"name": "whirlpools_config",
"writable": true
},
{
"name": "authority",
"signer": true
}
],
"args": [
{
"name": "feature_flag",
"type": {
"defined": {
"name": "ConfigFeatureFlag"
}
}
}
]
},
{
"name": "set_default_base_fee_rate",
"discriminator": [
229,
66,
84,
251,
164,
134,
183,
7
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"adaptive_fee_tier"
]
},
{
"name": "adaptive_fee_tier",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "default_base_fee_rate",
"type": "u16"
}
]
},
{
"name": "set_default_fee_rate",
"discriminator": [
118,
215,
214,
157,
182,
229,
208,
228
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"fee_tier"
]
},
{
"name": "fee_tier",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "default_fee_rate",
"type": "u16"
}
]
},
{
"name": "set_default_protocol_fee_rate",
"discriminator": [
107,
205,
249,
226,
151,
35,
86,
0
],
"accounts": [
{
"name": "whirlpools_config",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "default_protocol_fee_rate",
"type": "u16"
}
]
},
{
"name": "set_delegated_fee_authority",
"discriminator": [
193,
234,
231,
147,
138,
57,
3,
122
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"adaptive_fee_tier"
]
},
{
"name": "adaptive_fee_tier",
"writable": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "new_delegated_fee_authority"
}
],
"args": []
},
{
"name": "set_fee_authority",
"discriminator": [
31,
1,
50,
87,
237,
101,
97,
132
],
"accounts": [
{
"name": "whirlpools_config",
"writable": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "new_fee_authority"
}
],
"args": []
},
{
"name": "set_fee_rate",
"discriminator": [
53,
243,
137,
65,
8,
140,
158,
6
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "fee_rate",
"type": "u16"
}
]
},
{
"name": "set_fee_rate_by_delegated_fee_authority",
"discriminator": [
121,
121,
54,
114,
131,
230,
162,
104
],
"accounts": [
{
"name": "whirlpool",
"writable": true
},
{
"name": "adaptive_fee_tier"
},
{
"name": "delegated_fee_authority",
"signer": true
}
],
"args": [
{
"name": "fee_rate",
"type": "u16"
}
]
},
{
"name": "set_initialize_pool_authority",
"discriminator": [
125,
43,
127,
235,
149,
26,
106,
236
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"adaptive_fee_tier"
]
},
{
"name": "adaptive_fee_tier",
"writable": true
},
{
"name": "fee_authority",
"signer": true
},
{
"name": "new_initialize_pool_authority"
}
],
"args": []
},
{
"name": "set_preset_adaptive_fee_constants",
"discriminator": [
132,
185,
66,
148,
83,
88,
134,
198
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"adaptive_fee_tier"
]
},
{
"name": "adaptive_fee_tier",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "filter_period",
"type": "u16"
},
{
"name": "decay_period",
"type": "u16"
},
{
"name": "reduction_factor",
"type": "u16"
},
{
"name": "adaptive_fee_control_factor",
"type": "u32"
},
{
"name": "max_volatility_accumulator",
"type": "u32"
},
{
"name": "tick_group_size",
"type": "u16"
},
{
"name": "major_swap_threshold_ticks",
"type": "u16"
}
]
},
{
"name": "set_protocol_fee_rate",
"discriminator": [
95,
7,
4,
50,
154,
79,
156,
131
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "fee_authority",
"signer": true
}
],
"args": [
{
"name": "protocol_fee_rate",
"type": "u16"
}
]
},
{
"name": "set_reward_authority",
"discriminator": [
34,
39,
183,
252,
83,
28,
85,
127
],
"accounts": [
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_authority",
"signer": true
},
{
"name": "new_reward_authority"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "set_reward_authority_by_super_authority",
"discriminator": [
240,
154,
201,
198,
148,
93,
56,
25
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpool"
]
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_emissions_super_authority",
"signer": true
},
{
"name": "new_reward_authority"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
}
]
},
{
"name": "set_reward_emissions",
"discriminator": [
13,
197,
86,
168,
109,
176,
27,
244
],
"accounts": [
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_authority",
"signer": true
},
{
"name": "reward_vault"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
},
{
"name": "emissions_per_second_x64",
"type": "u128"
}
]
},
{
"name": "set_reward_emissions_super_authority",
"discriminator": [
207,
5,
200,
209,
122,
56,
82,
183
],
"accounts": [
{
"name": "whirlpools_config",
"writable": true
},
{
"name": "reward_emissions_super_authority",
"signer": true
},
{
"name": "new_reward_emissions_super_authority"
}
],
"args": []
},
{
"name": "set_reward_emissions_v2",
"discriminator": [
114,
228,
72,
32,
193,
48,
160,
102
],
"accounts": [
{
"name": "whirlpool",
"writable": true
},
{
"name": "reward_authority",
"signer": true
},
{
"name": "reward_vault"
}
],
"args": [
{
"name": "reward_index",
"type": "u8"
},
{
"name": "emissions_per_second_x64",
"type": "u128"
}
]
},
{
"name": "set_token_badge_attribute",
"discriminator": [
224,
88,
65,
33,
138,
147,
246,
137
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpools_config_extension",
"token_badge"
]
},
{
"name": "whirlpools_config_extension"
},
{
"name": "token_badge_authority",
"signer": true
},
{
"name": "token_mint",
"relations": [
"token_badge"
]
},
{
"name": "token_badge",
"writable": true
}
],
"args": [
{
"name": "attribute",
"type": {
"defined": {
"name": "TokenBadgeAttribute"
}
}
}
]
},
{
"name": "set_token_badge_authority",
"discriminator": [
207,
202,
4,
32,
205,
79,
13,
178
],
"accounts": [
{
"name": "whirlpools_config",
"relations": [
"whirlpools_config_extension"
]
},
{
"name": "whirlpools_config_extension",
"writable": true
},
{
"name": "config_extension_authority",
"signer": true
},
{
"name": "new_token_badge_authority"
}
],
"args": []
},
{
"name": "swap",
"discriminator": [
248,
198,
158,
145,
225,
117,
135,
200
],
"accounts": [
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "token_authority",
"signer": true
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_0",
"writable": true
},
{
"name": "tick_array_1",
"writable": true
},
{
"name": "tick_array_2",
"writable": true
},
{
"name": "oracle",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool"
}
]
}
}
],
"args": [
{
"name": "amount",
"type": "u64"
},
{
"name": "other_amount_threshold",
"type": "u64"
},
{
"name": "sqrt_price_limit",
"type": "u128"
},
{
"name": "amount_specified_is_input",
"type": "bool"
},
{
"name": "a_to_b",
"type": "bool"
}
]
},
{
"name": "swap_v2",
"discriminator": [
43,
4,
237,
11,
26,
201,
30,
98
],
"accounts": [
{
"name": "token_program_a"
},
{
"name": "token_program_b"
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
},
{
"name": "token_authority",
"signer": true
},
{
"name": "whirlpool",
"writable": true
},
{
"name": "token_mint_a"
},
{
"name": "token_mint_b"
},
{
"name": "token_owner_account_a",
"writable": true
},
{
"name": "token_vault_a",
"writable": true
},
{
"name": "token_owner_account_b",
"writable": true
},
{
"name": "token_vault_b",
"writable": true
},
{
"name": "tick_array_0",
"writable": true
},
{
"name": "tick_array_1",
"writable": true
},
{
"name": "tick_array_2",
"writable": true
},
{
"name": "oracle",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool"
}
]
}
}
],
"args": [
{
"name": "amount",
"type": "u64"
},
{
"name": "other_amount_threshold",
"type": "u64"
},
{
"name": "sqrt_price_limit",
"type": "u128"
},
{
"name": "amount_specified_is_input",
"type": "bool"
},
{
"name": "a_to_b",
"type": "bool"
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "transfer_locked_position",
"discriminator": [
179,
121,
229,
46,
67,
138,
194,
138
],
"accounts": [
{
"name": "position_authority",
"signer": true
},
{
"name": "receiver",
"writable": true
},
{
"name": "position",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
112,
111,
115,
105,
116,
105,
111,
110
]
},
{
"kind": "account",
"path": "position_mint"
}
]
},
"relations": [
"lock_config"
]
},
{
"name": "position_mint"
},
{
"name": "position_token_account",
"writable": true
},
{
"name": "destination_token_account",
"writable": true
},
{
"name": "lock_config",
"writable": true
},
{
"name": "token_2022_program",
"address": "TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb"
}
],
"args": []
},
{
"name": "two_hop_swap",
"discriminator": [
195,
96,
237,
108,
68,
162,
219,
230
],
"accounts": [
{
"name": "token_program",
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
},
{
"name": "token_authority",
"signer": true
},
{
"name": "whirlpool_one",
"writable": true
},
{
"name": "whirlpool_two",
"writable": true
},
{
"name": "token_owner_account_one_a",
"writable": true
},
{
"name": "token_vault_one_a",
"writable": true
},
{
"name": "token_owner_account_one_b",
"writable": true
},
{
"name": "token_vault_one_b",
"writable": true
},
{
"name": "token_owner_account_two_a",
"writable": true
},
{
"name": "token_vault_two_a",
"writable": true
},
{
"name": "token_owner_account_two_b",
"writable": true
},
{
"name": "token_vault_two_b",
"writable": true
},
{
"name": "tick_array_one_0",
"writable": true
},
{
"name": "tick_array_one_1",
"writable": true
},
{
"name": "tick_array_one_2",
"writable": true
},
{
"name": "tick_array_two_0",
"writable": true
},
{
"name": "tick_array_two_1",
"writable": true
},
{
"name": "tick_array_two_2",
"writable": true
},
{
"name": "oracle_one",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool_one"
}
]
}
},
{
"name": "oracle_two",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool_two"
}
]
}
}
],
"args": [
{
"name": "amount",
"type": "u64"
},
{
"name": "other_amount_threshold",
"type": "u64"
},
{
"name": "amount_specified_is_input",
"type": "bool"
},
{
"name": "a_to_b_one",
"type": "bool"
},
{
"name": "a_to_b_two",
"type": "bool"
},
{
"name": "sqrt_price_limit_one",
"type": "u128"
},
{
"name": "sqrt_price_limit_two",
"type": "u128"
}
]
},
{
"name": "two_hop_swap_v2",
"discriminator": [
186,
143,
209,
29,
254,
2,
194,
117
],
"accounts": [
{
"name": "whirlpool_one",
"writable": true
},
{
"name": "whirlpool_two",
"writable": true
},
{
"name": "token_mint_input"
},
{
"name": "token_mint_intermediate"
},
{
"name": "token_mint_output"
},
{
"name": "token_program_input"
},
{
"name": "token_program_intermediate"
},
{
"name": "token_program_output"
},
{
"name": "token_owner_account_input",
"writable": true
},
{
"name": "token_vault_one_input",
"writable": true
},
{
"name": "token_vault_one_intermediate",
"writable": true
},
{
"name": "token_vault_two_intermediate",
"writable": true
},
{
"name": "token_vault_two_output",
"writable": true
},
{
"name": "token_owner_account_output",
"writable": true
},
{
"name": "token_authority",
"signer": true
},
{
"name": "tick_array_one_0",
"writable": true
},
{
"name": "tick_array_one_1",
"writable": true
},
{
"name": "tick_array_one_2",
"writable": true
},
{
"name": "tick_array_two_0",
"writable": true
},
{
"name": "tick_array_two_1",
"writable": true
},
{
"name": "tick_array_two_2",
"writable": true
},
{
"name": "oracle_one",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool_one"
}
]
}
},
{
"name": "oracle_two",
"writable": true,
"pda": {
"seeds": [
{
"kind": "const",
"value": [
111,
114,
97,
99,
108,
101
]
},
{
"kind": "account",
"path": "whirlpool_two"
}
]
}
},
{
"name": "memo_program",
"address": "MemoSq4gqABAXKb96qnH8TysNcWxMyWCqXgDLGmfcHr"
}
],
"args": [
{
"name": "amount",
"type": "u64"
},
{
"name": "other_amount_threshold",
"type": "u64"
},
{
"name": "amount_specified_is_input",
"type": "bool"
},
{
"name": "a_to_b_one",
"type": "bool"
},
{
"name": "a_to_b_two",
"type": "bool"
},
{
"name": "sqrt_price_limit_one",
"type": "u128"
},
{
"name": "sqrt_price_limit_two",
"type": "u128"
},
{
"name": "remaining_accounts_info",
"type": {
"option": {
"defined": {
"name": "RemainingAccountsInfo"
}
}
}
}
]
},
{
"name": "update_fees_and_rewards",
"discriminator": [
154,
230,
250,
13,
236,
209,
75,
223
],
"accounts": [
{
"name": "whirlpool",
"writable": true,
"relations": [
"position"
]
},
{
"name": "position",
"writable": true
},
{
"name": "tick_array_lower"
},
{
"name": "tick_array_upper"
}
],
"args": []
}
],
"accounts": [
{
"name": "AdaptiveFeeTier",
"discriminator": [
147,
16,
144,
116,
47,
146,
149,
46
]
},
{
"name": "DynamicTickArray",
"discriminator": [
17,
216,
246,
142,
225,
199,
218,
56
]
},
{
"name": "FeeTier",
"discriminator": [
56,
75,
159,
76,
142,
68,
190,
105
]
},
{
"name": "LockConfig",
"discriminator": [
106,
47,
238,
159,
124,
12,
160,
192
]
},
{
"name": "Oracle",
"discriminator": [
139,
194,
131,
179,
140,
179,
229,
244
]
},
{
"name": "Position",
"discriminator": [
170,
188,
143,
228,
122,
64,
247,
208
]
},
{
"name": "PositionBundle",
"discriminator": [
129,
169,
175,
65,
185,
95,
32,
100
]
},
{
"name": "TickArray",
"discriminator": [
69,
97,
189,
190,
110,
7,
66,
187
]
},
{
"name": "TokenBadge",
"discriminator": [
116,
219,
204,
229,
249,
116,
255,
150
]
},
{
"name": "Whirlpool",
"discriminator": [
63,
149,
209,
12,
225,
128,
99,
9
]
},
{
"name": "WhirlpoolsConfig",
"discriminator": [
157,
20,
49,
224,
217,
87,
193,
254
]
},
{
"name": "WhirlpoolsConfigExtension",
"discriminator": [
2,
99,
215,
163,
240,
26,
153,
58
]
}
],
"events": [
{
"name": "LiquidityDecreased",
"discriminator": [
166,
1,
36,
71,
112,
202,
181,
171
]
},
{
"name": "LiquidityIncreased",
"discriminator": [
30,
7,
144,
181,
102,
254,
155,
161
]
},
{
"name": "LiquidityRepositioned",
"discriminator": [
95,
130,
181,
132,
251,
50,
195,
38
]
},
{
"name": "PoolInitialized",
"discriminator": [
100,
118,
173,
87,
12,
198,
254,
229
]
},
{
"name": "PositionOpened",
"discriminator": [
237,
175,
243,
230,
147,
117,
101,
121
]
},
{
"name": "Traded",
"discriminator": [
225,
202,
73,
175,
147,
43,
160,
150
]
}
],
"errors": [
{
"code": 6000,
"name": "InvalidEnum",
"msg": "Enum value could not be converted"
},
{
"code": 6001,
"name": "InvalidStartTick",
"msg": "Invalid start tick index provided."
},
{
"code": 6002,
"name": "TickArrayExistInPool",
"msg": "Tick-array already exists in this whirlpool"
},
{
"code": 6003,
"name": "TickArrayIndexOutofBounds",
"msg": "Attempt to search for a tick-array failed"
},
{
"code": 6004,
"name": "InvalidTickSpacing",
"msg": "Tick-spacing is not supported"
},
{
"code": 6005,
"name": "ClosePositionNotEmpty",
"msg": "Position is not empty It cannot be closed"
},
{
"code": 6006,
"name": "DivideByZero",
"msg": "Unable to divide by zero"
},
{
"code": 6007,
"name": "NumberCastError",
"msg": "Unable to cast number into BigInt"
},
{
"code": 6008,
"name": "NumberDownCastError",
"msg": "Unable to down cast number"
},
{
"code": 6009,
"name": "TickNotFound",
"msg": "Tick not found within tick array"
},
{
"code": 6010,
"name": "InvalidTickIndex",
"msg": "Provided tick index is either out of bounds or uninitializable"
},
{
"code": 6011,
"name": "SqrtPriceOutOfBounds",
"msg": "Provided sqrt price out of bounds"
},
{
"code": 6012,
"name": "LiquidityZero",
"msg": "Liquidity amount must be greater than zero"
},
{
"code": 6013,
"name": "LiquidityTooHigh",
"msg": "Liquidity amount must be less than i64::MAX"
},
{
"code": 6014,
"name": "LiquidityOverflow",
"msg": "Liquidity overflow"
},
{
"code": 6015,
"name": "LiquidityUnderflow",
"msg": "Liquidity underflow"
},
{
"code": 6016,
"name": "LiquidityNetError",
"msg": "Tick liquidity net underflowed or overflowed"
},
{
"code": 6017,
"name": "TokenMaxExceeded",
"msg": "Exceeded token max"
},
{
"code": 6018,
"name": "TokenMinSubceeded",
"msg": "Did not meet token min"
},
{
"code": 6019,
"name": "MissingOrInvalidDelegate",
"msg": "Position token account has a missing or invalid delegate"
},
{
"code": 6020,
"name": "InvalidPositionTokenAmount",
"msg": "Position token amount must be 1"
},
{
"code": 6021,
"name": "InvalidTimestampConversion",
"msg": "Timestamp should be convertible from i64 to u64"
},
{
"code": 6022,
"name": "InvalidTimestamp",
"msg": "Timestamp should be greater than the last updated timestamp"
},
{
"code": 6023,
"name": "InvalidTickArraySequence",
"msg": "Invalid tick array sequence provided for instruction."
},
{
"code": 6024,
"name": "InvalidTokenMintOrder",
"msg": "Token Mint in wrong order"
},
{
"code": 6025,
"name": "RewardNotInitialized",
"msg": "Reward not initialized"
},
{
"code": 6026,
"name": "InvalidRewardIndex",
"msg": "Invalid reward index"
},
{
"code": 6027,
"name": "RewardVaultAmountInsufficient",
"msg": "Reward vault requires amount to support emissions for at least one day"
},
{
"code": 6028,
"name": "FeeRateMaxExceeded",
"msg": "Exceeded max fee rate"
},
{
"code": 6029,
"name": "ProtocolFeeRateMaxExceeded",
"msg": "Exceeded max protocol fee rate"
},
{
"code": 6030,
"name": "MultiplicationShiftRightOverflow",
"msg": "Multiplication with shift right overflow"
},
{
"code": 6031,
"name": "MulDivOverflow",
"msg": "Muldiv overflow"
},
{
"code": 6032,
"name": "MulDivInvalidInput",
"msg": "Invalid div_u256 input"
},
{
"code": 6033,
"name": "MultiplicationOverflow",
"msg": "Multiplication overflow"
},
{
"code": 6034,
"name": "InvalidSqrtPriceLimitDirection",
"msg": "Provided SqrtPriceLimit not in the same direction as the swap."
},
{
"code": 6035,
"name": "ZeroTradableAmount",
"msg": "There are no tradable amount to swap."
},
{
"code": 6036,
"name": "AmountOutBelowMinimum",
"msg": "Amount out below minimum threshold"
},
{
"code": 6037,
"name": "AmountInAboveMaximum",
"msg": "Amount in above maximum threshold"
},
{
"code": 6038,
"name": "TickArraySequenceInvalidIndex",
"msg": "Invalid index for tick array sequence"
},
{
"code": 6039,
"name": "AmountCalcOverflow",
"msg": "Amount calculated overflows"
},
{
"code": 6040,
"name": "AmountRemainingOverflow",
"msg": "Amount remaining overflows"
},
{
"code": 6041,
"name": "InvalidIntermediaryMint",
"msg": "Invalid intermediary mint"
},
{
"code": 6042,
"name": "DuplicateTwoHopPool",
"msg": "Duplicate two hop pool"
},
{
"code": 6043,
"name": "InvalidBundleIndex",
"msg": "Bundle index is out of bounds"
},
{
"code": 6044,
"name": "BundledPositionAlreadyOpened",
"msg": "Position has already been opened"
},
{
"code": 6045,
"name": "BundledPositionAlreadyClosed",
"msg": "Position has already been closed"
},
{
"code": 6046,
"name": "PositionBundleNotDeletable",
"msg": "Unable to delete PositionBundle with open positions"
},
{
"code": 6047,
"name": "UnsupportedTokenMint",
"msg": "Token mint has unsupported attributes"
},
{
"code": 6048,
"name": "RemainingAccountsInvalidSlice",
"msg": "Invalid remaining accounts"
},
{
"code": 6049,
"name": "RemainingAccountsInsufficient",
"msg": "Insufficient remaining accounts"
},
{
"code": 6050,
"name": "NoExtraAccountsForTransferHook",
"msg": "Unable to call transfer hook without extra accounts"
},
{
"code": 6051,
"name": "IntermediateTokenAmountMismatch",
"msg": "Output and input amount mismatch"
},
{
"code": 6052,
"name": "TransferFeeCalculationError",
"msg": "Transfer fee calculation failed"
},
{
"code": 6053,
"name": "RemainingAccountsDuplicatedAccountsType",
"msg": "Same accounts type is provided more than once"
},
{
"code": 6054,
"name": "FullRangeOnlyPool",
"msg": "This whirlpool only supports full-range positions"
},
{
"code": 6055,
"name": "TooManySupplementalTickArrays",
"msg": "Too many supplemental tick arrays provided"
},
{
"code": 6056,
"name": "DifferentWhirlpoolTickArrayAccount",
"msg": "TickArray account for different whirlpool provided"
},
{
"code": 6057,
"name": "PartialFillError",
"msg": "Trade resulted in partial fill"
},
{
"code": 6058,
"name": "PositionNotLockable",
"msg": "Position is not lockable"
},
{
"code": 6059,
"name": "OperationNotAllowedOnLockedPosition",
"msg": "Operation not allowed on locked position"
},
{
"code": 6060,
"name": "SameTickRangeNotAllowed",
"msg": "Cannot reset position range with same tick range"
},
{
"code": 6061,
"name": "InvalidAdaptiveFeeConstants",
"msg": "Invalid adaptive fee constants"
},
{
"code": 6062,
"name": "InvalidFeeTierIndex",
"msg": "Invalid fee tier index"
},
{
"code": 6063,
"name": "InvalidTradeEnableTimestamp",
"msg": "Invalid trade enable timestamp"
},
{
"code": 6064,
"name": "TradeIsNotEnabled",
"msg": "Trade is not enabled yet"
},
{
"code": 6065,
"name": "RentCalculationError",
"msg": "Rent calculation error"
},
{
"code": 6066,
"name": "FeatureIsNotEnabled",
"msg": "Feature is not enabled"
},
{
"code": 6067,
"name": "PositionWithTokenExtensionsRequired",
"msg": "This whirlpool only supports open_position_with_token_extensions instruction"
},
{
"code": 6068,
"name": "AdaptiveFeeConstantsUnchanged",
"msg": "Provided adaptive fee constants are unchanged"
},
{
"code": 6069,
"name": "PriceSlippageOutOfBounds",
"msg": "Price outside slippage bounds"
}
],
"types": [
{
"name": "AccountsType",
"type": {
"kind": "enum",
"variants": [
{
"name": "TransferHookA"
},
{
"name": "TransferHookB"
},
{
"name": "TransferHookReward"
},
{
"name": "TransferHookInput"
},
{
"name": "TransferHookIntermediate"
},
{
"name": "TransferHookOutput"
},
{
"name": "SupplementalTickArrays"
},
{
"name": "SupplementalTickArraysOne"
},
{
"name": "SupplementalTickArraysTwo"
},
{
"name": "TransferHookDepositA"
},
{
"name": "TransferHookDepositB"
},
{
"name": "TransferHookWithdrawalA"
},
{
"name": "TransferHookWithdrawalB"
}
]
}
},
{
"name": "AdaptiveFeeConstants",
"serialization": "bytemuckunsafe",
"repr": {
"kind": "c",
"packed": true
},
"type": {
"kind": "struct",
"fields": [
{
"name": "filter_period",
"type": "u16"
},
{
"name": "decay_period",
"type": "u16"
},
{
"name": "reduction_factor",
"type": "u16"
},
{
"name": "adaptive_fee_control_factor",
"type": "u32"
},
{
"name": "max_volatility_accumulator",
"type": "u32"
},
{
"name": "tick_group_size",
"type": "u16"
},
{
"name": "major_swap_threshold_ticks",
"type": "u16"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
16
]
}
}
]
}
},
{
"name": "AdaptiveFeeTier",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "fee_tier_index",
"type": "u16"
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "initialize_pool_authority",
"type": "pubkey"
},
{
"name": "delegated_fee_authority",
"type": "pubkey"
},
{
"name": "default_base_fee_rate",
"type": "u16"
},
{
"name": "filter_period",
"type": "u16"
},
{
"name": "decay_period",
"type": "u16"
},
{
"name": "reduction_factor",
"type": "u16"
},
{
"name": "adaptive_fee_control_factor",
"type": "u32"
},
{
"name": "max_volatility_accumulator",
"type": "u32"
},
{
"name": "tick_group_size",
"type": "u16"
},
{
"name": "major_swap_threshold_ticks",
"type": "u16"
}
]
}
},
{
"name": "AdaptiveFeeVariables",
"serialization": "bytemuckunsafe",
"repr": {
"kind": "c",
"packed": true
},
"type": {
"kind": "struct",
"fields": [
{
"name": "last_reference_update_timestamp",
"type": "u64"
},
{
"name": "last_major_swap_timestamp",
"type": "u64"
},
{
"name": "volatility_reference",
"type": "u32"
},
{
"name": "tick_group_index_reference",
"type": "i32"
},
{
"name": "volatility_accumulator",
"type": "u32"
},
{
"name": "reserved",
"type": {
"array": [
"u8",
16
]
}
}
]
}
},
{
"name": "ConfigFeatureFlag",
"type": {
"kind": "enum",
"variants": [
{
"name": "TokenBadge",
"fields": [
"bool"
]
}
]
}
},
{
"name": "DynamicTick",
"type": {
"kind": "enum",
"variants": [
{
"name": "Uninitialized"
},
{
"name": "Initialized",
"fields": [
{
"defined": {
"name": "DynamicTickData"
}
}
]
}
]
}
},
{
"name": "DynamicTickArray",
"type": {
"kind": "struct",
"fields": [
{
"name": "start_tick_index",
"type": "i32"
},
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "tick_bitmap",
"type": "u128"
},
{
"name": "ticks",
"type": {
"array": [
{
"defined": {
"name": "DynamicTick"
}
},
88
]
}
}
]
}
},
{
"name": "DynamicTickData",
"type": {
"kind": "struct",
"fields": [
{
"name": "liquidity_net",
"type": "i128"
},
{
"name": "liquidity_gross",
"type": "u128"
},
{
"name": "fee_growth_outside_a",
"type": "u128"
},
{
"name": "fee_growth_outside_b",
"type": "u128"
},
{
"name": "reward_growths_outside",
"type": {
"array": [
"u128",
3
]
}
}
]
}
},
{
"name": "FeeTier",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "default_fee_rate",
"type": "u16"
}
]
}
},
{
"name": "IncreaseLiquidityMethod",
"type": {
"kind": "enum",
"variants": [
{
"name": "ByTokenAmounts",
"fields": [
{
"name": "token_max_a",
"type": "u64"
},
{
"name": "token_max_b",
"type": "u64"
},
{
"name": "min_sqrt_price",
"type": "u128"
},
{
"name": "max_sqrt_price",
"type": "u128"
}
]
}
]
}
},
{
"name": "LiquidityDecreased",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "position",
"type": "pubkey"
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
},
{
"name": "liquidity",
"type": "u128"
},
{
"name": "token_a_amount",
"type": "u64"
},
{
"name": "token_b_amount",
"type": "u64"
},
{
"name": "token_a_transfer_fee",
"type": "u64"
},
{
"name": "token_b_transfer_fee",
"type": "u64"
}
]
}
},
{
"name": "LiquidityIncreased",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "position",
"type": "pubkey"
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
},
{
"name": "liquidity",
"type": "u128"
},
{
"name": "token_a_amount",
"type": "u64"
},
{
"name": "token_b_amount",
"type": "u64"
},
{
"name": "token_a_transfer_fee",
"type": "u64"
},
{
"name": "token_b_transfer_fee",
"type": "u64"
}
]
}
},
{
"name": "LiquidityRepositioned",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "position",
"type": "pubkey"
},
{
"name": "existing_range_tick_lower_index",
"type": "i32"
},
{
"name": "existing_range_tick_upper_index",
"type": "i32"
},
{
"name": "new_range_tick_lower_index",
"type": "i32"
},
{
"name": "new_range_tick_upper_index",
"type": "i32"
},
{
"name": "existing_range_liquidity",
"type": "u128"
},
{
"name": "new_range_liquidity",
"type": "u128"
},
{
"name": "existing_range_token_a_amount",
"type": "u64"
},
{
"name": "existing_range_token_b_amount",
"type": "u64"
},
{
"name": "new_range_token_a_amount",
"type": "u64"
},
{
"name": "new_range_token_b_amount",
"type": "u64"
},
{
"name": "token_a_transfer_amount",
"type": "u64"
},
{
"name": "token_a_transfer_fee",
"type": "u64"
},
{
"name": "is_token_a_transfer_from_owner",
"type": "bool"
},
{
"name": "token_b_transfer_amount",
"type": "u64"
},
{
"name": "token_b_transfer_fee",
"type": "u64"
},
{
"name": "is_token_b_transfer_from_owner",
"type": "bool"
}
]
}
},
{
"name": "LockConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "position",
"type": "pubkey"
},
{
"name": "position_owner",
"type": "pubkey"
},
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "locked_timestamp",
"type": "u64"
},
{
"name": "lock_type",
"type": {
"defined": {
"name": "LockTypeLabel"
}
}
}
]
}
},
{
"name": "LockType",
"type": {
"kind": "enum",
"variants": [
{
"name": "Permanent"
}
]
}
},
{
"name": "LockTypeLabel",
"type": {
"kind": "enum",
"variants": [
{
"name": "Permanent"
}
]
}
},
{
"name": "OpenPositionBumps",
"type": {
"kind": "struct",
"fields": [
{
"name": "position_bump",
"type": "u8"
}
]
}
},
{
"name": "OpenPositionWithMetadataBumps",
"type": {
"kind": "struct",
"fields": [
{
"name": "position_bump",
"type": "u8"
},
{
"name": "metadata_bump",
"type": "u8"
}
]
}
},
{
"name": "Oracle",
"serialization": "bytemuckunsafe",
"repr": {
"kind": "c",
"packed": true
},
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "trade_enable_timestamp",
"type": "u64"
},
{
"name": "adaptive_fee_constants",
"type": {
"defined": {
"name": "AdaptiveFeeConstants"
}
}
},
{
"name": "adaptive_fee_variables",
"type": {
"defined": {
"name": "AdaptiveFeeVariables"
}
}
},
{
"name": "reserved",
"type": {
"array": [
"u8",
128
]
}
}
]
}
},
{
"name": "PoolInitialized",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "token_mint_a",
"type": "pubkey"
},
{
"name": "token_mint_b",
"type": "pubkey"
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "token_program_a",
"type": "pubkey"
},
{
"name": "token_program_b",
"type": "pubkey"
},
{
"name": "decimals_a",
"type": "u8"
},
{
"name": "decimals_b",
"type": "u8"
},
{
"name": "initial_sqrt_price",
"type": "u128"
}
]
}
},
{
"name": "Position",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "position_mint",
"type": "pubkey"
},
{
"name": "liquidity",
"type": "u128"
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
},
{
"name": "fee_growth_checkpoint_a",
"type": "u128"
},
{
"name": "fee_owed_a",
"type": "u64"
},
{
"name": "fee_growth_checkpoint_b",
"type": "u128"
},
{
"name": "fee_owed_b",
"type": "u64"
},
{
"name": "reward_infos",
"type": {
"array": [
{
"defined": {
"name": "PositionRewardInfo"
}
},
3
]
}
}
]
}
},
{
"name": "PositionBundle",
"type": {
"kind": "struct",
"fields": [
{
"name": "position_bundle_mint",
"type": "pubkey"
},
{
"name": "position_bitmap",
"type": {
"array": [
"u8",
32
]
}
}
]
}
},
{
"name": "PositionOpened",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "position",
"type": "pubkey"
},
{
"name": "tick_lower_index",
"type": "i32"
},
{
"name": "tick_upper_index",
"type": "i32"
}
]
}
},
{
"name": "PositionRewardInfo",
"type": {
"kind": "struct",
"fields": [
{
"name": "growth_inside_checkpoint",
"type": "u128"
},
{
"name": "amount_owed",
"type": "u64"
}
]
}
},
{
"name": "RemainingAccountsInfo",
"type": {
"kind": "struct",
"fields": [
{
"name": "slices",
"type": {
"vec": {
"defined": {
"name": "RemainingAccountsSlice"
}
}
}
}
]
}
},
{
"name": "RemainingAccountsSlice",
"type": {
"kind": "struct",
"fields": [
{
"name": "accounts_type",
"type": {
"defined": {
"name": "AccountsType"
}
}
},
{
"name": "length",
"type": "u8"
}
]
}
},
{
"name": "RepositionLiquidityMethod",
"type": {
"kind": "enum",
"variants": [
{
"name": "ByLiquidity",
"fields": [
{
"name": "new_liquidity_amount",
"type": "u128"
},
{
"name": "existing_range_token_min_a",
"type": "u64"
},
{
"name": "existing_range_token_min_b",
"type": "u64"
},
{
"name": "new_range_token_max_a",
"type": "u64"
},
{
"name": "new_range_token_max_b",
"type": "u64"
}
]
}
]
}
},
{
"name": "Tick",
"serialization": "bytemuckunsafe",
"repr": {
"kind": "c",
"packed": true
},
"type": {
"kind": "struct",
"fields": [
{
"name": "initialized",
"type": "bool"
},
{
"name": "liquidity_net",
"type": "i128"
},
{
"name": "liquidity_gross",
"type": "u128"
},
{
"name": "fee_growth_outside_a",
"type": "u128"
},
{
"name": "fee_growth_outside_b",
"type": "u128"
},
{
"name": "reward_growths_outside",
"type": {
"array": [
"u128",
3
]
}
}
]
}
},
{
"name": "TickArray",
"serialization": "bytemuckunsafe",
"repr": {
"kind": "c",
"packed": true
},
"type": {
"kind": "struct",
"fields": [
{
"name": "start_tick_index",
"type": "i32"
},
{
"name": "ticks",
"type": {
"array": [
{
"defined": {
"name": "Tick"
}
},
88
]
}
},
{
"name": "whirlpool",
"type": "pubkey"
}
]
}
},
{
"name": "TokenBadge",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "token_mint",
"type": "pubkey"
},
{
"name": "attribute_require_non_transferable_position",
"type": "bool"
}
]
}
},
{
"name": "TokenBadgeAttribute",
"type": {
"kind": "enum",
"variants": [
{
"name": "RequireNonTransferablePosition",
"fields": [
"bool"
]
}
]
}
},
{
"name": "Traded",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool",
"type": "pubkey"
},
{
"name": "a_to_b",
"type": "bool"
},
{
"name": "pre_sqrt_price",
"type": "u128"
},
{
"name": "post_sqrt_price",
"type": "u128"
},
{
"name": "input_amount",
"type": "u64"
},
{
"name": "output_amount",
"type": "u64"
},
{
"name": "input_transfer_fee",
"type": "u64"
},
{
"name": "output_transfer_fee",
"type": "u64"
},
{
"name": "lp_fee",
"type": "u64"
},
{
"name": "protocol_fee",
"type": "u64"
}
]
}
},
{
"name": "Whirlpool",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "whirlpool_bump",
"type": {
"array": [
"u8",
1
]
}
},
{
"name": "tick_spacing",
"type": "u16"
},
{
"name": "fee_tier_index_seed",
"type": {
"array": [
"u8",
2
]
}
},
{
"name": "fee_rate",
"type": "u16"
},
{
"name": "protocol_fee_rate",
"type": "u16"
},
{
"name": "liquidity",
"type": "u128"
},
{
"name": "sqrt_price",
"type": "u128"
},
{
"name": "tick_current_index",
"type": "i32"
},
{
"name": "protocol_fee_owed_a",
"type": "u64"
},
{
"name": "protocol_fee_owed_b",
"type": "u64"
},
{
"name": "token_mint_a",
"type": "pubkey"
},
{
"name": "token_vault_a",
"type": "pubkey"
},
{
"name": "fee_growth_global_a",
"type": "u128"
},
{
"name": "token_mint_b",
"type": "pubkey"
},
{
"name": "token_vault_b",
"type": "pubkey"
},
{
"name": "fee_growth_global_b",
"type": "u128"
},
{
"name": "reward_last_updated_timestamp",
"type": "u64"
},
{
"name": "reward_infos",
"type": {
"array": [
{
"defined": {
"name": "WhirlpoolRewardInfo"
}
},
3
]
}
}
]
}
},
{
"name": "WhirlpoolBumps",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpool_bump",
"type": "u8"
}
]
}
},
{
"name": "WhirlpoolRewardInfo",
"type": {
"kind": "struct",
"fields": [
{
"name": "mint",
"type": "pubkey"
},
{
"name": "vault",
"type": "pubkey"
},
{
"name": "extension",
"type": {
"array": [
"u8",
32
]
}
},
{
"name": "emissions_per_second_x64",
"type": "u128"
},
{
"name": "growth_global_x64",
"type": "u128"
}
]
}
},
{
"name": "WhirlpoolsConfig",
"type": {
"kind": "struct",
"fields": [
{
"name": "fee_authority",
"type": "pubkey"
},
{
"name": "collect_protocol_fees_authority",
"type": "pubkey"
},
{
"name": "reward_emissions_super_authority",
"type": "pubkey"
},
{
"name": "default_protocol_fee_rate",
"type": "u16"
},
{
"name": "feature_flags",
"type": "u16"
}
]
}
},
{
"name": "WhirlpoolsConfigExtension",
"type": {
"kind": "struct",
"fields": [
{
"name": "whirlpools_config",
"type": "pubkey"
},
{
"name": "config_extension_authority",
"type": "pubkey"
},
{
"name": "token_badge_authority",
"type": "pubkey"
}
]
}
}
]
}