@hawksightco/hawk-sdk 1.3.149 → 1.3.150

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.
@@ -8,937 +8,1045 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.IDL = void 0;
10
10
  exports.IDL = {
11
- address: 'JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4',
12
- metadata: {
13
- name: 'jupiter',
14
- version: '0.1.0',
15
- spec: '0.1.0',
16
- description: 'Jupiter aggregator program',
11
+ "address": "JUP6LkbZbjS1jKKwapdHNy74zcZ3tLUZoi5QNyVTaV4",
12
+ "metadata": {
13
+ "name": "jupiter",
14
+ "version": "0.1.0",
15
+ "spec": "0.1.0",
16
+ "description": "Jupiter aggregator program"
17
17
  },
18
- instructions: [
18
+ "instructions": [
19
19
  {
20
- name: 'claim',
21
- discriminator: [62, 198, 214, 193, 213, 159, 108, 210],
22
- accounts: [
20
+ "name": "claim",
21
+ "discriminator": [62, 198, 214, 193, 213, 159, 108, 210],
22
+ "accounts": [
23
23
  {
24
- name: 'wallet',
25
- writable: true,
26
- address: '7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP',
24
+ "name": "wallet",
25
+ "writable": true,
26
+ "address": "7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP"
27
27
  },
28
- { name: 'program_authority', writable: true },
29
- { name: 'system_program', address: '11111111111111111111111111111111' },
28
+ { "name": "program_authority", "writable": true },
29
+ {
30
+ "name": "system_program",
31
+ "address": "11111111111111111111111111111111"
32
+ }
30
33
  ],
31
- args: [{ name: 'id', type: 'u8' }],
32
- returns: 'u64',
34
+ "args": [{ "name": "id", "type": "u8" }],
35
+ "returns": "u64"
33
36
  },
34
37
  {
35
- name: 'claim_token',
36
- discriminator: [116, 206, 27, 191, 166, 19, 0, 73],
37
- accounts: [
38
- { name: 'payer', writable: true, signer: true },
38
+ "name": "claim_token",
39
+ "discriminator": [116, 206, 27, 191, 166, 19, 0, 73],
40
+ "accounts": [
41
+ { "name": "payer", "writable": true, "signer": true },
39
42
  {
40
- name: 'wallet',
41
- address: '7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP',
43
+ "name": "wallet",
44
+ "address": "7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP"
42
45
  },
43
- { name: 'program_authority' },
44
- { name: 'program_token_account', writable: true },
45
- {
46
- name: 'destination_token_account',
47
- writable: true,
48
- pda: {
49
- seeds: [
50
- { kind: 'account', path: 'wallet' },
51
- { kind: 'account', path: 'token_program' },
52
- { kind: 'account', path: 'mint' },
46
+ { "name": "program_authority" },
47
+ { "name": "program_token_account", "writable": true },
48
+ {
49
+ "name": "destination_token_account",
50
+ "writable": true,
51
+ "pda": {
52
+ "seeds": [
53
+ { "kind": "account", "path": "wallet" },
54
+ { "kind": "account", "path": "token_program" },
55
+ { "kind": "account", "path": "mint" }
53
56
  ],
54
- program: {
55
- kind: 'const',
56
- value: [
57
+ "program": {
58
+ "kind": "const",
59
+ "value": [
57
60
  140, 151, 37, 143, 78, 36, 137, 241, 187, 61, 16, 41, 20, 142,
58
61
  13, 131, 11, 90, 19, 153, 218, 255, 16, 132, 4, 142, 123, 216,
59
- 219, 233, 248, 89,
60
- ],
61
- },
62
- },
62
+ 219, 233, 248, 89
63
+ ]
64
+ }
65
+ }
63
66
  },
64
- { name: 'mint' },
65
- { name: 'token_program' },
67
+ { "name": "mint" },
68
+ { "name": "token_program" },
66
69
  {
67
- name: 'associated_token_program',
68
- address: 'ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL',
70
+ "name": "associated_token_program",
71
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
69
72
  },
70
- { name: 'system_program', address: '11111111111111111111111111111111' },
73
+ {
74
+ "name": "system_program",
75
+ "address": "11111111111111111111111111111111"
76
+ }
71
77
  ],
72
- args: [{ name: 'id', type: 'u8' }],
73
- returns: 'u64',
78
+ "args": [{ "name": "id", "type": "u8" }],
79
+ "returns": "u64"
74
80
  },
75
81
  {
76
- name: 'close_token',
77
- discriminator: [26, 74, 236, 151, 104, 64, 183, 249],
78
- accounts: [
82
+ "name": "close_token",
83
+ "discriminator": [26, 74, 236, 151, 104, 64, 183, 249],
84
+ "accounts": [
79
85
  {
80
- name: 'operator',
81
- signer: true,
82
- address: '9RAufBfjGQjDfrwxeyKmZWPADHSb8HcoqCdrmpqvCr1g',
86
+ "name": "operator",
87
+ "signer": true,
88
+ "address": "9RAufBfjGQjDfrwxeyKmZWPADHSb8HcoqCdrmpqvCr1g"
83
89
  },
84
90
  {
85
- name: 'wallet',
86
- writable: true,
87
- address: '7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP',
91
+ "name": "wallet",
92
+ "writable": true,
93
+ "address": "7JQeyNK55fkUPUmEotupBFpiBGpgEQYLe8Ht1VdSfxcP"
88
94
  },
89
- { name: 'program_authority' },
90
- { name: 'program_token_account', writable: true },
91
- { name: 'mint', writable: true },
92
- { name: 'token_program' },
93
- ],
94
- args: [
95
- { name: 'id', type: 'u8' },
96
- { name: 'burn_all', type: 'bool' },
95
+ { "name": "program_authority" },
96
+ { "name": "program_token_account", "writable": true },
97
+ { "name": "mint", "writable": true },
98
+ { "name": "token_program" }
97
99
  ],
100
+ "args": [
101
+ { "name": "id", "type": "u8" },
102
+ { "name": "burn_all", "type": "bool" }
103
+ ]
98
104
  },
99
105
  {
100
- name: 'create_token_ledger',
101
- discriminator: [232, 242, 197, 253, 240, 143, 129, 52],
102
- accounts: [
103
- { name: 'token_ledger', writable: true, signer: true },
104
- { name: 'payer', writable: true, signer: true },
105
- { name: 'system_program', address: '11111111111111111111111111111111' },
106
+ "name": "create_token_ledger",
107
+ "discriminator": [232, 242, 197, 253, 240, 143, 129, 52],
108
+ "accounts": [
109
+ { "name": "token_ledger", "writable": true, "signer": true },
110
+ { "name": "payer", "writable": true, "signer": true },
111
+ {
112
+ "name": "system_program",
113
+ "address": "11111111111111111111111111111111"
114
+ }
106
115
  ],
107
- args: [],
116
+ "args": []
108
117
  },
109
118
  {
110
- name: 'create_token_account',
111
- discriminator: [147, 241, 123, 100, 244, 132, 174, 118],
112
- accounts: [
113
- { name: 'token_account', writable: true },
114
- { name: 'user', writable: true, signer: true },
115
- { name: 'mint' },
116
- { name: 'token_program' },
117
- { name: 'system_program', address: '11111111111111111111111111111111' },
119
+ "name": "create_token_account",
120
+ "discriminator": [147, 241, 123, 100, 244, 132, 174, 118],
121
+ "accounts": [
122
+ { "name": "token_account", "writable": true },
123
+ { "name": "user", "writable": true, "signer": true },
124
+ { "name": "mint" },
125
+ { "name": "token_program" },
126
+ {
127
+ "name": "system_program",
128
+ "address": "11111111111111111111111111111111"
129
+ }
118
130
  ],
119
- args: [{ name: 'bump', type: 'u8' }],
120
- },
121
- {
122
- name: 'exact_out_route',
123
- discriminator: [208, 51, 239, 151, 123, 43, 237, 92],
124
- accounts: [
125
- { name: 'token_program' },
126
- { name: 'user_transfer_authority', signer: true },
127
- { name: 'user_source_token_account', writable: true },
128
- { name: 'user_destination_token_account', writable: true },
129
- { name: 'destination_token_account', writable: true, optional: true },
130
- { name: 'source_mint' },
131
- { name: 'destination_mint' },
132
- { name: 'platform_fee_account', writable: true, optional: true },
133
- { name: 'token_2022_program', optional: true },
134
- {
135
- name: 'event_authority',
136
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
131
+ "args": [{ "name": "bump", "type": "u8" }]
132
+ },
133
+ {
134
+ "name": "exact_out_route",
135
+ "discriminator": [208, 51, 239, 151, 123, 43, 237, 92],
136
+ "accounts": [
137
+ { "name": "token_program" },
138
+ { "name": "user_transfer_authority", "signer": true },
139
+ { "name": "user_source_token_account", "writable": true },
140
+ { "name": "user_destination_token_account", "writable": true },
141
+ {
142
+ "name": "destination_token_account",
143
+ "writable": true,
144
+ "optional": true
145
+ },
146
+ { "name": "source_mint" },
147
+ { "name": "destination_mint" },
148
+ { "name": "platform_fee_account", "writable": true, "optional": true },
149
+ { "name": "token_2022_program", "optional": true },
150
+ {
151
+ "name": "event_authority",
152
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
137
153
  },
138
- { name: 'program' },
154
+ { "name": "program" }
139
155
  ],
140
- args: [
156
+ "args": [
141
157
  {
142
- name: 'route_plan',
143
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
158
+ "name": "route_plan",
159
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
144
160
  },
145
- { name: 'out_amount', type: 'u64' },
146
- { name: 'quoted_in_amount', type: 'u64' },
147
- { name: 'slippage_bps', type: 'u16' },
148
- { name: 'platform_fee_bps', type: 'u8' },
161
+ { "name": "out_amount", "type": "u64" },
162
+ { "name": "quoted_in_amount", "type": "u64" },
163
+ { "name": "slippage_bps", "type": "u16" },
164
+ { "name": "platform_fee_bps", "type": "u8" }
149
165
  ],
150
- returns: 'u64',
151
- },
152
- {
153
- name: 'route',
154
- discriminator: [229, 23, 203, 151, 122, 227, 173, 42],
155
- accounts: [
156
- { name: 'token_program' },
157
- { name: 'user_transfer_authority', signer: true },
158
- { name: 'user_source_token_account', writable: true },
159
- { name: 'user_destination_token_account', writable: true },
160
- { name: 'destination_token_account', writable: true, optional: true },
161
- { name: 'destination_mint' },
162
- { name: 'platform_fee_account', writable: true, optional: true },
163
- {
164
- name: 'event_authority',
165
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
166
+ "returns": "u64"
167
+ },
168
+ {
169
+ "name": "route",
170
+ "discriminator": [229, 23, 203, 151, 122, 227, 173, 42],
171
+ "accounts": [
172
+ { "name": "token_program" },
173
+ { "name": "user_transfer_authority", "signer": true },
174
+ { "name": "user_source_token_account", "writable": true },
175
+ { "name": "user_destination_token_account", "writable": true },
176
+ {
177
+ "name": "destination_token_account",
178
+ "writable": true,
179
+ "optional": true
180
+ },
181
+ { "name": "destination_mint" },
182
+ { "name": "platform_fee_account", "writable": true, "optional": true },
183
+ {
184
+ "name": "event_authority",
185
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
166
186
  },
167
- { name: 'program' },
187
+ { "name": "program" }
168
188
  ],
169
- args: [
189
+ "args": [
170
190
  {
171
- name: 'route_plan',
172
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
191
+ "name": "route_plan",
192
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
173
193
  },
174
- { name: 'in_amount', type: 'u64' },
175
- { name: 'quoted_out_amount', type: 'u64' },
176
- { name: 'slippage_bps', type: 'u16' },
177
- { name: 'platform_fee_bps', type: 'u8' },
194
+ { "name": "in_amount", "type": "u64" },
195
+ { "name": "quoted_out_amount", "type": "u64" },
196
+ { "name": "slippage_bps", "type": "u16" },
197
+ { "name": "platform_fee_bps", "type": "u8" }
178
198
  ],
179
- returns: 'u64',
180
- },
181
- {
182
- name: 'route_with_token_ledger',
183
- discriminator: [150, 86, 71, 116, 167, 93, 14, 104],
184
- accounts: [
185
- { name: 'token_program' },
186
- { name: 'user_transfer_authority', signer: true },
187
- { name: 'user_source_token_account', writable: true },
188
- { name: 'user_destination_token_account', writable: true },
189
- { name: 'destination_token_account', writable: true, optional: true },
190
- { name: 'destination_mint' },
191
- { name: 'platform_fee_account', writable: true, optional: true },
192
- { name: 'token_ledger' },
193
- {
194
- name: 'event_authority',
195
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
199
+ "returns": "u64"
200
+ },
201
+ {
202
+ "name": "route_with_token_ledger",
203
+ "discriminator": [150, 86, 71, 116, 167, 93, 14, 104],
204
+ "accounts": [
205
+ { "name": "token_program" },
206
+ { "name": "user_transfer_authority", "signer": true },
207
+ { "name": "user_source_token_account", "writable": true },
208
+ { "name": "user_destination_token_account", "writable": true },
209
+ {
210
+ "name": "destination_token_account",
211
+ "writable": true,
212
+ "optional": true
213
+ },
214
+ { "name": "destination_mint" },
215
+ { "name": "platform_fee_account", "writable": true, "optional": true },
216
+ { "name": "token_ledger" },
217
+ {
218
+ "name": "event_authority",
219
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
196
220
  },
197
- { name: 'program' },
221
+ { "name": "program" }
198
222
  ],
199
- args: [
223
+ "args": [
200
224
  {
201
- name: 'route_plan',
202
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
225
+ "name": "route_plan",
226
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
203
227
  },
204
- { name: 'quoted_out_amount', type: 'u64' },
205
- { name: 'slippage_bps', type: 'u16' },
206
- { name: 'platform_fee_bps', type: 'u8' },
228
+ { "name": "quoted_out_amount", "type": "u64" },
229
+ { "name": "slippage_bps", "type": "u16" },
230
+ { "name": "platform_fee_bps", "type": "u8" }
207
231
  ],
208
- returns: 'u64',
232
+ "returns": "u64"
209
233
  },
210
234
  {
211
- name: 'set_token_ledger',
212
- discriminator: [228, 85, 185, 112, 78, 79, 77, 2],
213
- accounts: [
214
- { name: 'token_ledger', writable: true },
215
- { name: 'token_account' },
235
+ "name": "set_token_ledger",
236
+ "discriminator": [228, 85, 185, 112, 78, 79, 77, 2],
237
+ "accounts": [
238
+ { "name": "token_ledger", "writable": true },
239
+ { "name": "token_account" }
216
240
  ],
217
- args: [],
218
- },
219
- {
220
- name: 'shared_accounts_exact_out_route',
221
- discriminator: [176, 209, 105, 168, 154, 125, 69, 62],
222
- accounts: [
223
- { name: 'token_program' },
224
- { name: 'program_authority' },
225
- { name: 'user_transfer_authority', signer: true },
226
- { name: 'source_token_account', writable: true },
227
- { name: 'program_source_token_account', writable: true },
228
- { name: 'program_destination_token_account', writable: true },
229
- { name: 'destination_token_account', writable: true },
230
- { name: 'source_mint' },
231
- { name: 'destination_mint' },
232
- { name: 'platform_fee_account', writable: true, optional: true },
233
- { name: 'token_2022_program', optional: true },
234
- {
235
- name: 'event_authority',
236
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
241
+ "args": []
242
+ },
243
+ {
244
+ "name": "shared_accounts_exact_out_route",
245
+ "discriminator": [176, 209, 105, 168, 154, 125, 69, 62],
246
+ "accounts": [
247
+ { "name": "token_program" },
248
+ { "name": "program_authority" },
249
+ { "name": "user_transfer_authority", "signer": true },
250
+ { "name": "source_token_account", "writable": true },
251
+ { "name": "program_source_token_account", "writable": true },
252
+ { "name": "program_destination_token_account", "writable": true },
253
+ { "name": "destination_token_account", "writable": true },
254
+ { "name": "source_mint" },
255
+ { "name": "destination_mint" },
256
+ { "name": "platform_fee_account", "writable": true, "optional": true },
257
+ { "name": "token_2022_program", "optional": true },
258
+ {
259
+ "name": "event_authority",
260
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
237
261
  },
238
- { name: 'program' },
262
+ { "name": "program" }
239
263
  ],
240
- args: [
241
- { name: 'id', type: 'u8' },
264
+ "args": [
265
+ { "name": "id", "type": "u8" },
242
266
  {
243
- name: 'route_plan',
244
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
267
+ "name": "route_plan",
268
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
245
269
  },
246
- { name: 'out_amount', type: 'u64' },
247
- { name: 'quoted_in_amount', type: 'u64' },
248
- { name: 'slippage_bps', type: 'u16' },
249
- { name: 'platform_fee_bps', type: 'u8' },
270
+ { "name": "out_amount", "type": "u64" },
271
+ { "name": "quoted_in_amount", "type": "u64" },
272
+ { "name": "slippage_bps", "type": "u16" },
273
+ { "name": "platform_fee_bps", "type": "u8" }
250
274
  ],
251
- returns: 'u64',
252
- },
253
- {
254
- name: 'shared_accounts_route',
255
- discriminator: [193, 32, 155, 51, 65, 214, 156, 129],
256
- accounts: [
257
- { name: 'token_program' },
258
- { name: 'program_authority' },
259
- { name: 'user_transfer_authority', signer: true },
260
- { name: 'source_token_account', writable: true },
261
- { name: 'program_source_token_account', writable: true },
262
- { name: 'program_destination_token_account', writable: true },
263
- { name: 'destination_token_account', writable: true },
264
- { name: 'source_mint' },
265
- { name: 'destination_mint' },
266
- { name: 'platform_fee_account', writable: true, optional: true },
267
- { name: 'token_2022_program', optional: true },
268
- {
269
- name: 'event_authority',
270
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
275
+ "returns": "u64"
276
+ },
277
+ {
278
+ "name": "shared_accounts_route",
279
+ "discriminator": [193, 32, 155, 51, 65, 214, 156, 129],
280
+ "accounts": [
281
+ { "name": "token_program" },
282
+ { "name": "program_authority" },
283
+ { "name": "user_transfer_authority", "signer": true },
284
+ { "name": "source_token_account", "writable": true },
285
+ { "name": "program_source_token_account", "writable": true },
286
+ { "name": "program_destination_token_account", "writable": true },
287
+ { "name": "destination_token_account", "writable": true },
288
+ { "name": "source_mint" },
289
+ { "name": "destination_mint" },
290
+ { "name": "platform_fee_account", "writable": true, "optional": true },
291
+ { "name": "token_2022_program", "optional": true },
292
+ {
293
+ "name": "event_authority",
294
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
271
295
  },
272
- { name: 'program' },
296
+ { "name": "program" }
273
297
  ],
274
- args: [
275
- { name: 'id', type: 'u8' },
298
+ "args": [
299
+ { "name": "id", "type": "u8" },
276
300
  {
277
- name: 'route_plan',
278
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
301
+ "name": "route_plan",
302
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
279
303
  },
280
- { name: 'in_amount', type: 'u64' },
281
- { name: 'quoted_out_amount', type: 'u64' },
282
- { name: 'slippage_bps', type: 'u16' },
283
- { name: 'platform_fee_bps', type: 'u8' },
304
+ { "name": "in_amount", "type": "u64" },
305
+ { "name": "quoted_out_amount", "type": "u64" },
306
+ { "name": "slippage_bps", "type": "u16" },
307
+ { "name": "platform_fee_bps", "type": "u8" }
284
308
  ],
285
- returns: 'u64',
286
- },
287
- {
288
- name: 'shared_accounts_route_with_token_ledger',
289
- discriminator: [230, 121, 143, 80, 119, 159, 106, 170],
290
- accounts: [
291
- { name: 'token_program' },
292
- { name: 'program_authority' },
293
- { name: 'user_transfer_authority', signer: true },
294
- { name: 'source_token_account', writable: true },
295
- { name: 'program_source_token_account', writable: true },
296
- { name: 'program_destination_token_account', writable: true },
297
- { name: 'destination_token_account', writable: true },
298
- { name: 'source_mint' },
299
- { name: 'destination_mint' },
300
- { name: 'platform_fee_account', writable: true, optional: true },
301
- { name: 'token_2022_program', optional: true },
302
- { name: 'token_ledger' },
303
- {
304
- name: 'event_authority',
305
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
309
+ "returns": "u64"
310
+ },
311
+ {
312
+ "name": "shared_accounts_route_with_token_ledger",
313
+ "discriminator": [230, 121, 143, 80, 119, 159, 106, 170],
314
+ "accounts": [
315
+ { "name": "token_program" },
316
+ { "name": "program_authority" },
317
+ { "name": "user_transfer_authority", "signer": true },
318
+ { "name": "source_token_account", "writable": true },
319
+ { "name": "program_source_token_account", "writable": true },
320
+ { "name": "program_destination_token_account", "writable": true },
321
+ { "name": "destination_token_account", "writable": true },
322
+ { "name": "source_mint" },
323
+ { "name": "destination_mint" },
324
+ { "name": "platform_fee_account", "writable": true, "optional": true },
325
+ { "name": "token_2022_program", "optional": true },
326
+ { "name": "token_ledger" },
327
+ {
328
+ "name": "event_authority",
329
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
306
330
  },
307
- { name: 'program' },
331
+ { "name": "program" }
308
332
  ],
309
- args: [
310
- { name: 'id', type: 'u8' },
333
+ "args": [
334
+ { "name": "id", "type": "u8" },
311
335
  {
312
- name: 'route_plan',
313
- type: { vec: { defined: { name: 'RoutePlanStep' } } },
336
+ "name": "route_plan",
337
+ "type": { "vec": { "defined": { "name": "RoutePlanStep" } } }
314
338
  },
315
- { name: 'quoted_out_amount', type: 'u64' },
316
- { name: 'slippage_bps', type: 'u16' },
317
- { name: 'platform_fee_bps', type: 'u8' },
339
+ { "name": "quoted_out_amount", "type": "u64" },
340
+ { "name": "slippage_bps", "type": "u16" },
341
+ { "name": "platform_fee_bps", "type": "u8" }
318
342
  ],
319
- returns: 'u64',
320
- },
321
- {
322
- name: 'exact_out_route_v2',
323
- discriminator: [157, 138, 184, 82, 21, 244, 243, 36],
324
- accounts: [
325
- { name: 'user_transfer_authority', signer: true },
326
- { name: 'user_source_token_account', writable: true },
327
- { name: 'user_destination_token_account', writable: true },
328
- { name: 'source_mint' },
329
- { name: 'destination_mint' },
330
- { name: 'source_token_program' },
331
- { name: 'destination_token_program' },
332
- { name: 'destination_token_account', writable: true, optional: true },
333
- {
334
- name: 'event_authority',
335
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
343
+ "returns": "u64"
344
+ },
345
+ {
346
+ "name": "exact_out_route_v2",
347
+ "discriminator": [157, 138, 184, 82, 21, 244, 243, 36],
348
+ "accounts": [
349
+ { "name": "user_transfer_authority", "signer": true },
350
+ { "name": "user_source_token_account", "writable": true },
351
+ { "name": "user_destination_token_account", "writable": true },
352
+ { "name": "source_mint" },
353
+ { "name": "destination_mint" },
354
+ { "name": "source_token_program" },
355
+ { "name": "destination_token_program" },
356
+ {
357
+ "name": "destination_token_account",
358
+ "writable": true,
359
+ "optional": true
336
360
  },
337
- { name: 'program' },
338
- ],
339
- args: [
340
- { name: 'out_amount', type: 'u64' },
341
- { name: 'quoted_in_amount', type: 'u64' },
342
- { name: 'slippage_bps', type: 'u16' },
343
- { name: 'platform_fee_bps', type: 'u16' },
344
- { name: 'positive_slippage_bps', type: 'u16' },
345
- {
346
- name: 'route_plan',
347
- type: { vec: { defined: { name: 'RoutePlanStepV2' } } },
361
+ {
362
+ "name": "event_authority",
363
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
348
364
  },
365
+ { "name": "program" }
349
366
  ],
350
- returns: 'u64',
351
- },
352
- {
353
- name: 'route_v2',
354
- discriminator: [187, 100, 250, 204, 49, 196, 175, 20],
355
- accounts: [
356
- { name: 'user_transfer_authority', signer: true },
357
- { name: 'user_source_token_account', writable: true },
358
- { name: 'user_destination_token_account', writable: true },
359
- { name: 'source_mint' },
360
- { name: 'destination_mint' },
361
- { name: 'source_token_program' },
362
- { name: 'destination_token_program' },
363
- { name: 'destination_token_account', writable: true, optional: true },
364
- {
365
- name: 'event_authority',
366
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
367
- },
368
- { name: 'program' },
367
+ "args": [
368
+ { "name": "out_amount", "type": "u64" },
369
+ { "name": "quoted_in_amount", "type": "u64" },
370
+ { "name": "slippage_bps", "type": "u16" },
371
+ { "name": "platform_fee_bps", "type": "u16" },
372
+ { "name": "positive_slippage_bps", "type": "u16" },
373
+ {
374
+ "name": "route_plan",
375
+ "type": { "vec": { "defined": { "name": "RoutePlanStepV2" } } }
376
+ }
369
377
  ],
370
- args: [
371
- { name: 'in_amount', type: 'u64' },
372
- { name: 'quoted_out_amount', type: 'u64' },
373
- { name: 'slippage_bps', type: 'u16' },
374
- { name: 'platform_fee_bps', type: 'u16' },
375
- { name: 'positive_slippage_bps', type: 'u16' },
376
- {
377
- name: 'route_plan',
378
- type: { vec: { defined: { name: 'RoutePlanStepV2' } } },
378
+ "returns": "u64"
379
+ },
380
+ {
381
+ "name": "route_v2",
382
+ "discriminator": [187, 100, 250, 204, 49, 196, 175, 20],
383
+ "accounts": [
384
+ { "name": "user_transfer_authority", "signer": true },
385
+ { "name": "user_source_token_account", "writable": true },
386
+ { "name": "user_destination_token_account", "writable": true },
387
+ { "name": "source_mint" },
388
+ { "name": "destination_mint" },
389
+ { "name": "source_token_program" },
390
+ { "name": "destination_token_program" },
391
+ {
392
+ "name": "destination_token_account",
393
+ "writable": true,
394
+ "optional": true
379
395
  },
380
- ],
381
- returns: 'u64',
382
- },
383
- {
384
- name: 'shared_accounts_exact_out_route_v2',
385
- discriminator: [53, 96, 229, 202, 216, 187, 250, 24],
386
- accounts: [
387
- { name: 'program_authority' },
388
- { name: 'user_transfer_authority', signer: true },
389
- { name: 'source_token_account', writable: true },
390
- { name: 'program_source_token_account', writable: true },
391
- { name: 'program_destination_token_account', writable: true },
392
- { name: 'destination_token_account', writable: true },
393
- { name: 'source_mint' },
394
- { name: 'destination_mint' },
395
- { name: 'source_token_program' },
396
- { name: 'destination_token_program' },
397
- {
398
- name: 'event_authority',
399
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
396
+ {
397
+ "name": "event_authority",
398
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
400
399
  },
401
- { name: 'program' },
400
+ { "name": "program" }
402
401
  ],
403
- args: [
404
- { name: 'id', type: 'u8' },
405
- { name: 'out_amount', type: 'u64' },
406
- { name: 'quoted_in_amount', type: 'u64' },
407
- { name: 'slippage_bps', type: 'u16' },
408
- { name: 'platform_fee_bps', type: 'u16' },
409
- { name: 'positive_slippage_bps', type: 'u16' },
410
- {
411
- name: 'route_plan',
412
- type: { vec: { defined: { name: 'RoutePlanStepV2' } } },
413
- },
402
+ "args": [
403
+ { "name": "in_amount", "type": "u64" },
404
+ { "name": "quoted_out_amount", "type": "u64" },
405
+ { "name": "slippage_bps", "type": "u16" },
406
+ { "name": "platform_fee_bps", "type": "u16" },
407
+ { "name": "positive_slippage_bps", "type": "u16" },
408
+ {
409
+ "name": "route_plan",
410
+ "type": { "vec": { "defined": { "name": "RoutePlanStepV2" } } }
411
+ }
414
412
  ],
415
- returns: 'u64',
416
- },
417
- {
418
- name: 'shared_accounts_route_v2',
419
- discriminator: [209, 152, 83, 147, 124, 254, 216, 233],
420
- accounts: [
421
- { name: 'program_authority' },
422
- { name: 'user_transfer_authority', signer: true },
423
- { name: 'source_token_account', writable: true },
424
- { name: 'program_source_token_account', writable: true },
425
- { name: 'program_destination_token_account', writable: true },
426
- { name: 'destination_token_account', writable: true },
427
- { name: 'source_mint' },
428
- { name: 'destination_mint' },
429
- { name: 'source_token_program' },
430
- { name: 'destination_token_program' },
431
- {
432
- name: 'event_authority',
433
- address: 'D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf',
413
+ "returns": "u64"
414
+ },
415
+ {
416
+ "name": "shared_accounts_exact_out_route_v2",
417
+ "discriminator": [53, 96, 229, 202, 216, 187, 250, 24],
418
+ "accounts": [
419
+ { "name": "program_authority" },
420
+ { "name": "user_transfer_authority", "signer": true },
421
+ { "name": "source_token_account", "writable": true },
422
+ { "name": "program_source_token_account", "writable": true },
423
+ { "name": "program_destination_token_account", "writable": true },
424
+ { "name": "destination_token_account", "writable": true },
425
+ { "name": "source_mint" },
426
+ { "name": "destination_mint" },
427
+ { "name": "source_token_program" },
428
+ { "name": "destination_token_program" },
429
+ {
430
+ "name": "event_authority",
431
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
434
432
  },
435
- { name: 'program' },
433
+ { "name": "program" }
436
434
  ],
437
- args: [
438
- { name: 'id', type: 'u8' },
439
- { name: 'in_amount', type: 'u64' },
440
- { name: 'quoted_out_amount', type: 'u64' },
441
- { name: 'slippage_bps', type: 'u16' },
442
- { name: 'platform_fee_bps', type: 'u16' },
443
- { name: 'positive_slippage_bps', type: 'u16' },
444
- {
445
- name: 'route_plan',
446
- type: { vec: { defined: { name: 'RoutePlanStepV2' } } },
447
- },
435
+ "args": [
436
+ { "name": "id", "type": "u8" },
437
+ { "name": "out_amount", "type": "u64" },
438
+ { "name": "quoted_in_amount", "type": "u64" },
439
+ { "name": "slippage_bps", "type": "u16" },
440
+ { "name": "platform_fee_bps", "type": "u16" },
441
+ { "name": "positive_slippage_bps", "type": "u16" },
442
+ {
443
+ "name": "route_plan",
444
+ "type": { "vec": { "defined": { "name": "RoutePlanStepV2" } } }
445
+ }
448
446
  ],
449
- returns: 'u64',
447
+ "returns": "u64"
450
448
  },
449
+ {
450
+ "name": "shared_accounts_route_v2",
451
+ "discriminator": [209, 152, 83, 147, 124, 254, 216, 233],
452
+ "accounts": [
453
+ { "name": "program_authority" },
454
+ { "name": "user_transfer_authority", "signer": true },
455
+ { "name": "source_token_account", "writable": true },
456
+ { "name": "program_source_token_account", "writable": true },
457
+ { "name": "program_destination_token_account", "writable": true },
458
+ { "name": "destination_token_account", "writable": true },
459
+ { "name": "source_mint" },
460
+ { "name": "destination_mint" },
461
+ { "name": "source_token_program" },
462
+ { "name": "destination_token_program" },
463
+ {
464
+ "name": "event_authority",
465
+ "address": "D8cy77BBepLMngZx6ZukaTff5hCt1HrWyKk3Hnd9oitf"
466
+ },
467
+ { "name": "program" }
468
+ ],
469
+ "args": [
470
+ { "name": "id", "type": "u8" },
471
+ { "name": "in_amount", "type": "u64" },
472
+ { "name": "quoted_out_amount", "type": "u64" },
473
+ { "name": "slippage_bps", "type": "u16" },
474
+ { "name": "platform_fee_bps", "type": "u16" },
475
+ { "name": "positive_slippage_bps", "type": "u16" },
476
+ {
477
+ "name": "route_plan",
478
+ "type": { "vec": { "defined": { "name": "RoutePlanStepV2" } } }
479
+ }
480
+ ],
481
+ "returns": "u64"
482
+ }
451
483
  ],
452
- accounts: [
453
- { name: 'TokenLedger', discriminator: [156, 247, 9, 188, 54, 108, 85, 77] },
484
+ "accounts": [
485
+ {
486
+ "name": "TokenLedger",
487
+ "discriminator": [156, 247, 9, 188, 54, 108, 85, 77]
488
+ }
454
489
  ],
455
- events: [
456
- { name: 'FeeEvent', discriminator: [73, 79, 78, 127, 184, 213, 13, 220] },
457
- { name: 'SwapEvent', discriminator: [64, 198, 205, 232, 38, 8, 113, 226] },
490
+ "events": [
491
+ {
492
+ "name": "FeeEvent",
493
+ "discriminator": [73, 79, 78, 127, 184, 213, 13, 220]
494
+ },
458
495
  {
459
- name: 'SwapsEvent',
460
- discriminator: [152, 47, 78, 235, 192, 96, 110, 106],
496
+ "name": "SwapEvent",
497
+ "discriminator": [64, 198, 205, 232, 38, 8, 113, 226]
461
498
  },
499
+ {
500
+ "name": "SwapsEvent",
501
+ "discriminator": [152, 47, 78, 235, 192, 96, 110, 106]
502
+ }
462
503
  ],
463
- errors: [
464
- { code: 6000, name: 'EmptyRoute', msg: 'Empty route' },
504
+ "errors": [
505
+ { "code": 6000, "name": "EmptyRoute", "msg": "Empty route" },
506
+ {
507
+ "code": 6001,
508
+ "name": "SlippageToleranceExceeded",
509
+ "msg": "Slippage tolerance exceeded"
510
+ },
511
+ {
512
+ "code": 6002,
513
+ "name": "InvalidCalculation",
514
+ "msg": "Invalid calculation"
515
+ },
516
+ {
517
+ "code": 6003,
518
+ "name": "MissingPlatformFeeAccount",
519
+ "msg": "Missing platform fee account"
520
+ },
521
+ { "code": 6004, "name": "InvalidSlippage", "msg": "Invalid slippage" },
465
522
  {
466
- code: 6001,
467
- name: 'SlippageToleranceExceeded',
468
- msg: 'Slippage tolerance exceeded',
523
+ "code": 6005,
524
+ "name": "NotEnoughPercent",
525
+ "msg": "Not enough percent to 100"
469
526
  },
470
- { code: 6002, name: 'InvalidCalculation', msg: 'Invalid calculation' },
471
527
  {
472
- code: 6003,
473
- name: 'MissingPlatformFeeAccount',
474
- msg: 'Missing platform fee account',
528
+ "code": 6006,
529
+ "name": "InvalidInputIndex",
530
+ "msg": "Token input index is invalid"
475
531
  },
476
- { code: 6004, name: 'InvalidSlippage', msg: 'Invalid slippage' },
477
- { code: 6005, name: 'NotEnoughPercent', msg: 'Not enough percent to 100' },
478
532
  {
479
- code: 6006,
480
- name: 'InvalidInputIndex',
481
- msg: 'Token input index is invalid',
533
+ "code": 6007,
534
+ "name": "InvalidOutputIndex",
535
+ "msg": "Token output index is invalid"
482
536
  },
483
537
  {
484
- code: 6007,
485
- name: 'InvalidOutputIndex',
486
- msg: 'Token output index is invalid',
538
+ "code": 6008,
539
+ "name": "NotEnoughAccountKeys",
540
+ "msg": "Not Enough Account keys"
487
541
  },
488
542
  {
489
- code: 6008,
490
- name: 'NotEnoughAccountKeys',
491
- msg: 'Not Enough Account keys',
543
+ "code": 6009,
544
+ "name": "NonZeroMinimumOutAmountNotSupported",
545
+ "msg": "Non zero minimum out amount not supported"
492
546
  },
547
+ { "code": 6010, "name": "InvalidRoutePlan", "msg": "Invalid route plan" },
493
548
  {
494
- code: 6009,
495
- name: 'NonZeroMinimumOutAmountNotSupported',
496
- msg: 'Non zero minimum out amount not supported',
549
+ "code": 6011,
550
+ "name": "InvalidReferralAuthority",
551
+ "msg": "Invalid referral authority"
497
552
  },
498
- { code: 6010, name: 'InvalidRoutePlan', msg: 'Invalid route plan' },
499
553
  {
500
- code: 6011,
501
- name: 'InvalidReferralAuthority',
502
- msg: 'Invalid referral authority',
554
+ "code": 6012,
555
+ "name": "LedgerTokenAccountDoesNotMatch",
556
+ "msg": "Token account doesn't match the ledger"
503
557
  },
504
558
  {
505
- code: 6012,
506
- name: 'LedgerTokenAccountDoesNotMatch',
507
- msg: "Token account doesn't match the ledger",
559
+ "code": 6013,
560
+ "name": "InvalidTokenLedger",
561
+ "msg": "Invalid token ledger"
508
562
  },
509
- { code: 6013, name: 'InvalidTokenLedger', msg: 'Invalid token ledger' },
510
563
  {
511
- code: 6014,
512
- name: 'IncorrectTokenProgramID',
513
- msg: 'Token program ID is invalid',
564
+ "code": 6014,
565
+ "name": "IncorrectTokenProgramID",
566
+ "msg": "Token program ID is invalid"
514
567
  },
515
568
  {
516
- code: 6015,
517
- name: 'TokenProgramNotProvided',
518
- msg: 'Token program not provided',
569
+ "code": 6015,
570
+ "name": "TokenProgramNotProvided",
571
+ "msg": "Token program not provided"
519
572
  },
520
- { code: 6016, name: 'SwapNotSupported', msg: 'Swap not supported' },
573
+ { "code": 6016, "name": "SwapNotSupported", "msg": "Swap not supported" },
521
574
  {
522
- code: 6017,
523
- name: 'ExactOutAmountNotMatched',
524
- msg: "Exact out amount doesn't match",
575
+ "code": 6017,
576
+ "name": "ExactOutAmountNotMatched",
577
+ "msg": "Exact out amount doesn't match"
525
578
  },
526
579
  {
527
- code: 6018,
528
- name: 'SourceAndDestinationMintCannotBeTheSame',
529
- msg: 'Source mint and destination mint cannot the same',
580
+ "code": 6018,
581
+ "name": "SourceAndDestinationMintCannotBeTheSame",
582
+ "msg": "Source mint and destination mint cannot the same"
530
583
  },
531
- { code: 6019, name: 'InvalidMint', msg: 'Invalid mint' },
584
+ { "code": 6019, "name": "InvalidMint", "msg": "Invalid mint" },
532
585
  {
533
- code: 6020,
534
- name: 'InvalidProgramAuthority',
535
- msg: 'Invalid program authority',
586
+ "code": 6020,
587
+ "name": "InvalidProgramAuthority",
588
+ "msg": "Invalid program authority"
536
589
  },
537
590
  {
538
- code: 6021,
539
- name: 'InvalidOutputTokenAccount',
540
- msg: 'Invalid output token account',
591
+ "code": 6021,
592
+ "name": "InvalidOutputTokenAccount",
593
+ "msg": "Invalid output token account"
541
594
  },
542
- { code: 6022, name: 'InvalidFeeWallet', msg: 'Invalid fee wallet' },
543
- { code: 6023, name: 'InvalidAuthority', msg: 'Invalid authority' },
544
- { code: 6024, name: 'InsufficientFunds', msg: 'Insufficient funds' },
545
- { code: 6025, name: 'InvalidTokenAccount', msg: 'Invalid token account' },
595
+ { "code": 6022, "name": "InvalidFeeWallet", "msg": "Invalid fee wallet" },
596
+ { "code": 6023, "name": "InvalidAuthority", "msg": "Invalid authority" },
597
+ { "code": 6024, "name": "InsufficientFunds", "msg": "Insufficient funds" },
546
598
  {
547
- code: 6026,
548
- name: 'BondingCurveAlreadyCompleted',
549
- msg: 'Bonding curve already completed',
599
+ "code": 6025,
600
+ "name": "InvalidTokenAccount",
601
+ "msg": "Invalid token account"
550
602
  },
603
+ {
604
+ "code": 6026,
605
+ "name": "BondingCurveAlreadyCompleted",
606
+ "msg": "Bonding curve already completed"
607
+ }
551
608
  ],
552
- types: [
553
- {
554
- name: 'FeeEvent',
555
- type: {
556
- kind: 'struct',
557
- fields: [
558
- { name: 'account', type: 'pubkey' },
559
- { name: 'mint', type: 'pubkey' },
560
- { name: 'amount', type: 'u64' },
561
- ],
562
- },
563
- },
564
- {
565
- name: 'RemainingAccountsInfo',
566
- type: {
567
- kind: 'struct',
568
- fields: [
569
- {
570
- name: 'slices',
571
- type: { vec: { defined: { name: 'RemainingAccountsSlice' } } },
572
- },
573
- ],
574
- },
575
- },
576
- {
577
- name: 'RemainingAccountsSlice',
578
- type: {
579
- kind: 'struct',
580
- fields: [
581
- { name: 'accounts_type', type: 'u8' },
582
- { name: 'length', type: 'u8' },
583
- ],
584
- },
585
- },
586
- {
587
- name: 'AccountsType',
588
- type: {
589
- kind: 'enum',
590
- variants: [
591
- { name: 'TransferHookA' },
592
- { name: 'TransferHookB' },
593
- { name: 'TransferHookReward' },
594
- { name: 'TransferHookInput' },
595
- { name: 'TransferHookIntermediate' },
596
- { name: 'TransferHookOutput' },
597
- { name: 'SupplementalTickArrays' },
598
- { name: 'SupplementalTickArraysOne' },
599
- { name: 'SupplementalTickArraysTwo' },
600
- ],
601
- },
602
- },
603
- {
604
- name: 'DefiTunaAccountsType',
605
- type: {
606
- kind: 'enum',
607
- variants: [
608
- { name: 'TransferHookA' },
609
- { name: 'TransferHookB' },
610
- { name: 'TransferHookInput' },
611
- { name: 'TransferHookIntermediate' },
612
- { name: 'TransferHookOutput' },
613
- { name: 'SupplementalTickArrays' },
614
- { name: 'SupplementalTickArraysOne' },
615
- { name: 'SupplementalTickArraysTwo' },
616
- ],
617
- },
618
- },
619
- {
620
- name: 'RoutePlanStep',
621
- type: {
622
- kind: 'struct',
623
- fields: [
624
- { name: 'swap', type: { defined: { name: 'Swap' } } },
625
- { name: 'percent', type: 'u8' },
626
- { name: 'input_index', type: 'u8' },
627
- { name: 'output_index', type: 'u8' },
628
- ],
629
- },
630
- },
631
- {
632
- name: 'RoutePlanStepV2',
633
- type: {
634
- kind: 'struct',
635
- fields: [
636
- { name: 'swap', type: { defined: { name: 'Swap' } } },
637
- { name: 'bps', type: 'u16' },
638
- { name: 'input_index', type: 'u8' },
639
- { name: 'output_index', type: 'u8' },
640
- ],
641
- },
642
- },
643
- {
644
- name: 'Side',
645
- type: { kind: 'enum', variants: [{ name: 'Bid' }, { name: 'Ask' }] },
646
- },
647
- {
648
- name: 'Swap',
649
- type: {
650
- kind: 'enum',
651
- variants: [
652
- { name: 'Saber' },
653
- { name: 'SaberAddDecimalsDeposit' },
654
- { name: 'SaberAddDecimalsWithdraw' },
655
- { name: 'TokenSwap' },
656
- { name: 'Sencha' },
657
- { name: 'Step' },
658
- { name: 'Cropper' },
659
- { name: 'Raydium' },
660
- { name: 'Crema', fields: [{ name: 'a_to_b', type: 'bool' }] },
661
- { name: 'Lifinity' },
662
- { name: 'Mercurial' },
663
- { name: 'Cykura' },
664
- {
665
- name: 'Serum',
666
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
667
- },
668
- { name: 'MarinadeDeposit' },
669
- { name: 'MarinadeUnstake' },
670
- {
671
- name: 'Aldrin',
672
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
673
- },
674
- {
675
- name: 'AldrinV2',
676
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
677
- },
678
- { name: 'Whirlpool', fields: [{ name: 'a_to_b', type: 'bool' }] },
679
- { name: 'Invariant', fields: [{ name: 'x_to_y', type: 'bool' }] },
680
- { name: 'Meteora' },
681
- { name: 'GooseFX' },
682
- { name: 'DeltaFi', fields: [{ name: 'stable', type: 'bool' }] },
683
- { name: 'Balansol' },
684
- { name: 'MarcoPolo', fields: [{ name: 'x_to_y', type: 'bool' }] },
685
- {
686
- name: 'Dradex',
687
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
688
- },
689
- { name: 'LifinityV2' },
690
- { name: 'RaydiumClmm' },
691
- {
692
- name: 'Openbook',
693
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
694
- },
695
- {
696
- name: 'Phoenix',
697
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
698
- },
699
- {
700
- name: 'Symmetry',
701
- fields: [
702
- { name: 'from_token_id', type: 'u64' },
703
- { name: 'to_token_id', type: 'u64' },
704
- ],
609
+ "types": [
610
+ {
611
+ "name": "FeeEvent",
612
+ "type": {
613
+ "kind": "struct",
614
+ "fields": [
615
+ { "name": "account", "type": "pubkey" },
616
+ { "name": "mint", "type": "pubkey" },
617
+ { "name": "amount", "type": "u64" }
618
+ ]
619
+ }
620
+ },
621
+ {
622
+ "name": "RemainingAccountsInfo",
623
+ "type": {
624
+ "kind": "struct",
625
+ "fields": [
626
+ {
627
+ "name": "slices",
628
+ "type": {
629
+ "vec": { "defined": { "name": "RemainingAccountsSlice" } }
630
+ }
631
+ }
632
+ ]
633
+ }
634
+ },
635
+ {
636
+ "name": "RemainingAccountsSlice",
637
+ "type": {
638
+ "kind": "struct",
639
+ "fields": [
640
+ { "name": "accounts_type", "type": "u8" },
641
+ { "name": "length", "type": "u8" }
642
+ ]
643
+ }
644
+ },
645
+ {
646
+ "name": "AccountsType",
647
+ "type": {
648
+ "kind": "enum",
649
+ "variants": [
650
+ { "name": "TransferHookA" },
651
+ { "name": "TransferHookB" },
652
+ { "name": "TransferHookReward" },
653
+ { "name": "TransferHookInput" },
654
+ { "name": "TransferHookIntermediate" },
655
+ { "name": "TransferHookOutput" },
656
+ { "name": "SupplementalTickArrays" },
657
+ { "name": "SupplementalTickArraysOne" },
658
+ { "name": "SupplementalTickArraysTwo" }
659
+ ]
660
+ }
661
+ },
662
+ {
663
+ "name": "DefiTunaAccountsType",
664
+ "type": {
665
+ "kind": "enum",
666
+ "variants": [
667
+ { "name": "TransferHookA" },
668
+ { "name": "TransferHookB" },
669
+ { "name": "TransferHookInput" },
670
+ { "name": "TransferHookIntermediate" },
671
+ { "name": "TransferHookOutput" },
672
+ { "name": "SupplementalTickArrays" },
673
+ { "name": "SupplementalTickArraysOne" },
674
+ { "name": "SupplementalTickArraysTwo" }
675
+ ]
676
+ }
677
+ },
678
+ {
679
+ "name": "RoutePlanStep",
680
+ "type": {
681
+ "kind": "struct",
682
+ "fields": [
683
+ { "name": "swap", "type": { "defined": { "name": "Swap" } } },
684
+ { "name": "percent", "type": "u8" },
685
+ { "name": "input_index", "type": "u8" },
686
+ { "name": "output_index", "type": "u8" }
687
+ ]
688
+ }
689
+ },
690
+ {
691
+ "name": "RoutePlanStepV2",
692
+ "type": {
693
+ "kind": "struct",
694
+ "fields": [
695
+ { "name": "swap", "type": { "defined": { "name": "Swap" } } },
696
+ { "name": "bps", "type": "u16" },
697
+ { "name": "input_index", "type": "u8" },
698
+ { "name": "output_index", "type": "u8" }
699
+ ]
700
+ }
701
+ },
702
+ {
703
+ "name": "Side",
704
+ "type": {
705
+ "kind": "enum",
706
+ "variants": [{ "name": "Bid" }, { "name": "Ask" }]
707
+ }
708
+ },
709
+ {
710
+ "name": "Swap",
711
+ "type": {
712
+ "kind": "enum",
713
+ "variants": [
714
+ { "name": "Saber" },
715
+ { "name": "SaberAddDecimalsDeposit" },
716
+ { "name": "SaberAddDecimalsWithdraw" },
717
+ { "name": "TokenSwap" },
718
+ { "name": "Sencha" },
719
+ { "name": "Step" },
720
+ { "name": "Cropper" },
721
+ { "name": "Raydium" },
722
+ { "name": "Crema", "fields": [{ "name": "a_to_b", "type": "bool" }] },
723
+ { "name": "Lifinity" },
724
+ { "name": "Mercurial" },
725
+ { "name": "Cykura" },
726
+ {
727
+ "name": "Serum",
728
+ "fields": [
729
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
730
+ ]
705
731
  },
706
- { name: 'TokenSwapV2' },
707
- { name: 'HeliumTreasuryManagementRedeemV0' },
708
- { name: 'StakeDexStakeWrappedSol' },
732
+ { "name": "MarinadeDeposit" },
733
+ { "name": "MarinadeUnstake" },
709
734
  {
710
- name: 'StakeDexSwapViaStake',
711
- fields: [{ name: 'bridge_stake_seed', type: 'u32' }],
735
+ "name": "Aldrin",
736
+ "fields": [
737
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
738
+ ]
712
739
  },
713
- { name: 'GooseFXV2' },
714
- { name: 'Perps' },
715
- { name: 'PerpsAddLiquidity' },
716
- { name: 'PerpsRemoveLiquidity' },
717
- { name: 'MeteoraDlmm' },
718
740
  {
719
- name: 'OpenBookV2',
720
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
741
+ "name": "AldrinV2",
742
+ "fields": [
743
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
744
+ ]
721
745
  },
722
- { name: 'RaydiumClmmV2' },
723
746
  {
724
- name: 'StakeDexPrefundWithdrawStakeAndDepositStake',
725
- fields: [{ name: 'bridge_stake_seed', type: 'u32' }],
747
+ "name": "Whirlpool",
748
+ "fields": [{ "name": "a_to_b", "type": "bool" }]
726
749
  },
727
750
  {
728
- name: 'Clone',
729
- fields: [
730
- { name: 'pool_index', type: 'u8' },
731
- { name: 'quantity_is_input', type: 'bool' },
732
- { name: 'quantity_is_collateral', type: 'bool' },
733
- ],
751
+ "name": "Invariant",
752
+ "fields": [{ "name": "x_to_y", "type": "bool" }]
734
753
  },
754
+ { "name": "Meteora" },
755
+ { "name": "GooseFX" },
735
756
  {
736
- name: 'SanctumS',
737
- fields: [
738
- { name: 'src_lst_value_calc_accs', type: 'u8' },
739
- { name: 'dst_lst_value_calc_accs', type: 'u8' },
740
- { name: 'src_lst_index', type: 'u32' },
741
- { name: 'dst_lst_index', type: 'u32' },
742
- ],
757
+ "name": "DeltaFi",
758
+ "fields": [{ "name": "stable", "type": "bool" }]
743
759
  },
760
+ { "name": "Balansol" },
744
761
  {
745
- name: 'SanctumSAddLiquidity',
746
- fields: [
747
- { name: 'lst_value_calc_accs', type: 'u8' },
748
- { name: 'lst_index', type: 'u32' },
749
- ],
762
+ "name": "MarcoPolo",
763
+ "fields": [{ "name": "x_to_y", "type": "bool" }]
750
764
  },
751
765
  {
752
- name: 'SanctumSRemoveLiquidity',
753
- fields: [
754
- { name: 'lst_value_calc_accs', type: 'u8' },
755
- { name: 'lst_index', type: 'u32' },
756
- ],
766
+ "name": "Dradex",
767
+ "fields": [
768
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
769
+ ]
770
+ },
771
+ { "name": "LifinityV2" },
772
+ { "name": "RaydiumClmm" },
773
+ {
774
+ "name": "Openbook",
775
+ "fields": [
776
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
777
+ ]
778
+ },
779
+ {
780
+ "name": "Phoenix",
781
+ "fields": [
782
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
783
+ ]
784
+ },
785
+ {
786
+ "name": "Symmetry",
787
+ "fields": [
788
+ { "name": "from_token_id", "type": "u64" },
789
+ { "name": "to_token_id", "type": "u64" }
790
+ ]
791
+ },
792
+ { "name": "TokenSwapV2" },
793
+ { "name": "HeliumTreasuryManagementRedeemV0" },
794
+ { "name": "StakeDexStakeWrappedSol" },
795
+ {
796
+ "name": "StakeDexSwapViaStake",
797
+ "fields": [{ "name": "bridge_stake_seed", "type": "u32" }]
798
+ },
799
+ { "name": "GooseFXV2" },
800
+ { "name": "Perps" },
801
+ { "name": "PerpsAddLiquidity" },
802
+ { "name": "PerpsRemoveLiquidity" },
803
+ { "name": "MeteoraDlmm" },
804
+ {
805
+ "name": "OpenBookV2",
806
+ "fields": [
807
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
808
+ ]
809
+ },
810
+ { "name": "RaydiumClmmV2" },
811
+ {
812
+ "name": "StakeDexPrefundWithdrawStakeAndDepositStake",
813
+ "fields": [{ "name": "bridge_stake_seed", "type": "u32" }]
814
+ },
815
+ {
816
+ "name": "Clone",
817
+ "fields": [
818
+ { "name": "pool_index", "type": "u8" },
819
+ { "name": "quantity_is_input", "type": "bool" },
820
+ { "name": "quantity_is_collateral", "type": "bool" }
821
+ ]
822
+ },
823
+ {
824
+ "name": "SanctumS",
825
+ "fields": [
826
+ { "name": "src_lst_value_calc_accs", "type": "u8" },
827
+ { "name": "dst_lst_value_calc_accs", "type": "u8" },
828
+ { "name": "src_lst_index", "type": "u32" },
829
+ { "name": "dst_lst_index", "type": "u32" }
830
+ ]
831
+ },
832
+ {
833
+ "name": "SanctumSAddLiquidity",
834
+ "fields": [
835
+ { "name": "lst_value_calc_accs", "type": "u8" },
836
+ { "name": "lst_index", "type": "u32" }
837
+ ]
757
838
  },
758
- { name: 'RaydiumCP' },
759
839
  {
760
- name: 'WhirlpoolSwapV2',
761
- fields: [
762
- { name: 'a_to_b', type: 'bool' },
840
+ "name": "SanctumSRemoveLiquidity",
841
+ "fields": [
842
+ { "name": "lst_value_calc_accs", "type": "u8" },
843
+ { "name": "lst_index", "type": "u32" }
844
+ ]
845
+ },
846
+ { "name": "RaydiumCP" },
847
+ {
848
+ "name": "WhirlpoolSwapV2",
849
+ "fields": [
850
+ { "name": "a_to_b", "type": "bool" },
763
851
  {
764
- name: 'remaining_accounts_info',
765
- type: {
766
- option: { defined: { name: 'RemainingAccountsInfo' } },
767
- },
768
- },
769
- ],
852
+ "name": "remaining_accounts_info",
853
+ "type": {
854
+ "option": { "defined": { "name": "RemainingAccountsInfo" } }
855
+ }
856
+ }
857
+ ]
770
858
  },
771
- { name: 'OneIntro' },
772
- { name: 'PumpWrappedBuy' },
773
- { name: 'PumpWrappedSell' },
774
- { name: 'PerpsV2' },
775
- { name: 'PerpsV2AddLiquidity' },
776
- { name: 'PerpsV2RemoveLiquidity' },
777
- { name: 'MoonshotWrappedBuy' },
778
- { name: 'MoonshotWrappedSell' },
779
- { name: 'StabbleStableSwap' },
780
- { name: 'StabbleWeightedSwap' },
781
- { name: 'Obric', fields: [{ name: 'x_to_y', type: 'bool' }] },
782
- { name: 'FoxBuyFromEstimatedCost' },
783
- { name: 'FoxClaimPartial', fields: [{ name: 'is_y', type: 'bool' }] },
784
- {
785
- name: 'SolFi',
786
- fields: [{ name: 'is_quote_to_base', type: 'bool' }],
787
- },
788
- { name: 'SolayerDelegateNoInit' },
789
- { name: 'SolayerUndelegateNoInit' },
790
- {
791
- name: 'TokenMill',
792
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
793
- },
794
- { name: 'DaosFunBuy' },
795
- { name: 'DaosFunSell' },
796
- { name: 'ZeroFi' },
797
- { name: 'StakeDexWithdrawWrappedSol' },
798
- { name: 'VirtualsBuy' },
799
- { name: 'VirtualsSell' },
800
- {
801
- name: 'Perena',
802
- fields: [
803
- { name: 'in_index', type: 'u8' },
804
- { name: 'out_index', type: 'u8' },
805
- ],
859
+ { "name": "OneIntro" },
860
+ { "name": "PumpWrappedBuy" },
861
+ { "name": "PumpWrappedSell" },
862
+ { "name": "PerpsV2" },
863
+ { "name": "PerpsV2AddLiquidity" },
864
+ { "name": "PerpsV2RemoveLiquidity" },
865
+ { "name": "MoonshotWrappedBuy" },
866
+ { "name": "MoonshotWrappedSell" },
867
+ { "name": "StabbleStableSwap" },
868
+ { "name": "StabbleWeightedSwap" },
869
+ { "name": "Obric", "fields": [{ "name": "x_to_y", "type": "bool" }] },
870
+ { "name": "FoxBuyFromEstimatedCost" },
871
+ {
872
+ "name": "FoxClaimPartial",
873
+ "fields": [{ "name": "is_y", "type": "bool" }]
874
+ },
875
+ {
876
+ "name": "SolFi",
877
+ "fields": [{ "name": "is_quote_to_base", "type": "bool" }]
806
878
  },
807
- { name: 'PumpSwapBuy' },
808
- { name: 'PumpSwapSell' },
809
- { name: 'Gamma' },
879
+ { "name": "SolayerDelegateNoInit" },
880
+ { "name": "SolayerUndelegateNoInit" },
810
881
  {
811
- name: 'MeteoraDlmmSwapV2',
812
- fields: [
882
+ "name": "TokenMill",
883
+ "fields": [
884
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
885
+ ]
886
+ },
887
+ { "name": "DaosFunBuy" },
888
+ { "name": "DaosFunSell" },
889
+ { "name": "ZeroFi" },
890
+ { "name": "StakeDexWithdrawWrappedSol" },
891
+ { "name": "VirtualsBuy" },
892
+ { "name": "VirtualsSell" },
893
+ {
894
+ "name": "Perena",
895
+ "fields": [
896
+ { "name": "in_index", "type": "u8" },
897
+ { "name": "out_index", "type": "u8" }
898
+ ]
899
+ },
900
+ { "name": "PumpSwapBuy" },
901
+ { "name": "PumpSwapSell" },
902
+ { "name": "Gamma" },
903
+ {
904
+ "name": "MeteoraDlmmSwapV2",
905
+ "fields": [
813
906
  {
814
- name: 'remaining_accounts_info',
815
- type: { defined: { name: 'RemainingAccountsInfo' } },
816
- },
817
- ],
907
+ "name": "remaining_accounts_info",
908
+ "type": { "defined": { "name": "RemainingAccountsInfo" } }
909
+ }
910
+ ]
818
911
  },
819
- { name: 'Woofi' },
820
- { name: 'MeteoraDammV2' },
821
- { name: 'MeteoraDynamicBondingCurveSwap' },
822
- { name: 'StabbleStableSwapV2' },
823
- { name: 'StabbleWeightedSwapV2' },
912
+ { "name": "Woofi" },
913
+ { "name": "MeteoraDammV2" },
914
+ { "name": "MeteoraDynamicBondingCurveSwap" },
915
+ { "name": "StabbleStableSwapV2" },
916
+ { "name": "StabbleWeightedSwapV2" },
824
917
  {
825
- name: 'RaydiumLaunchlabBuy',
826
- fields: [{ name: 'share_fee_rate', type: 'u64' }],
918
+ "name": "RaydiumLaunchlabBuy",
919
+ "fields": [{ "name": "share_fee_rate", "type": "u64" }]
827
920
  },
828
921
  {
829
- name: 'RaydiumLaunchlabSell',
830
- fields: [{ name: 'share_fee_rate', type: 'u64' }],
922
+ "name": "RaydiumLaunchlabSell",
923
+ "fields": [{ "name": "share_fee_rate", "type": "u64" }]
831
924
  },
832
- { name: 'BoopdotfunWrappedBuy' },
833
- { name: 'BoopdotfunWrappedSell' },
925
+ { "name": "BoopdotfunWrappedBuy" },
926
+ { "name": "BoopdotfunWrappedSell" },
834
927
  {
835
- name: 'Plasma',
836
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
928
+ "name": "Plasma",
929
+ "fields": [
930
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
931
+ ]
837
932
  },
838
933
  {
839
- name: 'GoonFi',
840
- fields: [
841
- { name: 'is_bid', type: 'bool' },
842
- { name: 'blacklist_bump', type: 'u8' },
843
- ],
934
+ "name": "GoonFi",
935
+ "fields": [
936
+ { "name": "is_bid", "type": "bool" },
937
+ { "name": "blacklist_bump", "type": "u8" }
938
+ ]
844
939
  },
845
940
  {
846
- name: 'HumidiFi',
847
- fields: [
848
- { name: 'swap_id', type: 'u64' },
849
- { name: 'is_base_to_quote', type: 'bool' },
850
- ],
941
+ "name": "HumidiFi",
942
+ "fields": [
943
+ { "name": "swap_id", "type": "u64" },
944
+ { "name": "is_base_to_quote", "type": "bool" }
945
+ ]
946
+ },
947
+ { "name": "MeteoraDynamicBondingCurveSwapWithRemainingAccounts" },
948
+ {
949
+ "name": "TesseraV",
950
+ "fields": [
951
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
952
+ ]
851
953
  },
852
- { name: 'MeteoraDynamicBondingCurveSwapWithRemainingAccounts' },
954
+ { "name": "PumpWrappedBuyV2" },
955
+ { "name": "PumpWrappedSellV2" },
956
+ { "name": "PumpSwapBuyV2" },
957
+ { "name": "PumpSwapSellV2" },
853
958
  {
854
- name: 'TesseraV',
855
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
959
+ "name": "Heaven",
960
+ "fields": [{ "name": "a_to_b", "type": "bool" }]
856
961
  },
857
- { name: 'PumpWrappedBuyV2' },
858
- { name: 'PumpWrappedSellV2' },
859
- { name: 'PumpSwapBuyV2' },
860
- { name: 'PumpSwapSellV2' },
861
- { name: 'Heaven', fields: [{ name: 'a_to_b', type: 'bool' }] },
862
962
  {
863
- name: 'SolFiV2',
864
- fields: [{ name: 'is_quote_to_base', type: 'bool' }],
963
+ "name": "SolFiV2",
964
+ "fields": [{ "name": "is_quote_to_base", "type": "bool" }]
865
965
  },
866
- { name: 'Aquifer' },
867
- { name: 'PumpWrappedBuyV3' },
868
- { name: 'PumpWrappedSellV3' },
869
- { name: 'PumpSwapBuyV3' },
870
- { name: 'PumpSwapSellV3' },
871
- { name: 'JupiterLendDeposit' },
872
- { name: 'JupiterLendRedeem' },
966
+ { "name": "Aquifer" },
967
+ { "name": "PumpWrappedBuyV3" },
968
+ { "name": "PumpWrappedSellV3" },
969
+ { "name": "PumpSwapBuyV3" },
970
+ { "name": "PumpSwapSellV3" },
971
+ { "name": "JupiterLendDeposit" },
972
+ { "name": "JupiterLendRedeem" },
873
973
  {
874
- name: 'DefiTuna',
875
- fields: [
876
- { name: 'a_to_b', type: 'bool' },
974
+ "name": "DefiTuna",
975
+ "fields": [
976
+ { "name": "a_to_b", "type": "bool" },
877
977
  {
878
- name: 'remaining_accounts_info',
879
- type: {
880
- option: { defined: { name: 'RemainingAccountsInfo' } },
881
- },
882
- },
883
- ],
978
+ "name": "remaining_accounts_info",
979
+ "type": {
980
+ "option": { "defined": { "name": "RemainingAccountsInfo" } }
981
+ }
982
+ }
983
+ ]
984
+ },
985
+ {
986
+ "name": "AlphaQ",
987
+ "fields": [{ "name": "a_to_b", "type": "bool" }]
988
+ },
989
+ { "name": "RaydiumV2" },
990
+ {
991
+ "name": "SarosDlmm",
992
+ "fields": [{ "name": "swap_for_y", "type": "bool" }]
884
993
  },
885
- { name: 'AlphaQ', fields: [{ name: 'a_to_b', type: 'bool' }] },
886
- { name: 'RaydiumV2' },
887
- { name: 'SarosDlmm', fields: [{ name: 'swap_for_y', type: 'bool' }] },
888
994
  {
889
- name: 'Futarchy',
890
- fields: [{ name: 'side', type: { defined: { name: 'Side' } } }],
995
+ "name": "Futarchy",
996
+ "fields": [
997
+ { "name": "side", "type": { "defined": { "name": "Side" } } }
998
+ ]
891
999
  },
892
- { name: 'MeteoraDammV2WithRemainingAccounts' },
893
- ],
894
- },
1000
+ { "name": "MeteoraDammV2WithRemainingAccounts" }
1001
+ ]
1002
+ }
895
1003
  },
896
1004
  {
897
- name: 'SwapEvent',
898
- type: {
899
- kind: 'struct',
900
- fields: [
901
- { name: 'amm', type: 'pubkey' },
902
- { name: 'input_mint', type: 'pubkey' },
903
- { name: 'input_amount', type: 'u64' },
904
- { name: 'output_mint', type: 'pubkey' },
905
- { name: 'output_amount', type: 'u64' },
906
- ],
907
- },
1005
+ "name": "SwapEvent",
1006
+ "type": {
1007
+ "kind": "struct",
1008
+ "fields": [
1009
+ { "name": "amm", "type": "pubkey" },
1010
+ { "name": "input_mint", "type": "pubkey" },
1011
+ { "name": "input_amount", "type": "u64" },
1012
+ { "name": "output_mint", "type": "pubkey" },
1013
+ { "name": "output_amount", "type": "u64" }
1014
+ ]
1015
+ }
908
1016
  },
909
1017
  {
910
- name: 'SwapEventV2',
911
- type: {
912
- kind: 'struct',
913
- fields: [
914
- { name: 'input_mint', type: 'pubkey' },
915
- { name: 'input_amount', type: 'u64' },
916
- { name: 'output_mint', type: 'pubkey' },
917
- { name: 'output_amount', type: 'u64' },
918
- ],
919
- },
1018
+ "name": "SwapEventV2",
1019
+ "type": {
1020
+ "kind": "struct",
1021
+ "fields": [
1022
+ { "name": "input_mint", "type": "pubkey" },
1023
+ { "name": "input_amount", "type": "u64" },
1024
+ { "name": "output_mint", "type": "pubkey" },
1025
+ { "name": "output_amount", "type": "u64" }
1026
+ ]
1027
+ }
920
1028
  },
921
1029
  {
922
- name: 'SwapsEvent',
923
- type: {
924
- kind: 'struct',
925
- fields: [
1030
+ "name": "SwapsEvent",
1031
+ "type": {
1032
+ "kind": "struct",
1033
+ "fields": [
926
1034
  {
927
- name: 'swap_events',
928
- type: { vec: { defined: { name: 'SwapEventV2' } } },
929
- },
930
- ],
931
- },
1035
+ "name": "swap_events",
1036
+ "type": { "vec": { "defined": { "name": "SwapEventV2" } } }
1037
+ }
1038
+ ]
1039
+ }
932
1040
  },
933
1041
  {
934
- name: 'TokenLedger',
935
- type: {
936
- kind: 'struct',
937
- fields: [
938
- { name: 'token_account', type: 'pubkey' },
939
- { name: 'amount', type: 'u64' },
940
- ],
941
- },
942
- },
943
- ],
1042
+ "name": "TokenLedger",
1043
+ "type": {
1044
+ "kind": "struct",
1045
+ "fields": [
1046
+ { "name": "token_account", "type": "pubkey" },
1047
+ { "name": "amount", "type": "u64" }
1048
+ ]
1049
+ }
1050
+ }
1051
+ ]
944
1052
  };