@across-protocol/contracts 6.0.0-beta.3 → 6.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +57 -0
- package/dist/src/svm/assets/idl/index.d.ts +5 -7
- package/dist/src/svm/assets/idl/index.js +6 -14
- package/dist/src/svm/assets/index.d.ts +2 -3
- package/dist/src/svm/assets/index.js +0 -1
- package/dist/src/svm/web3-v1/cctpV2Helpers.d.ts +36 -36
- package/package.json +12 -8
- package/svm/idl/multicall_handler.json +31 -0
- package/svm/idl/sponsored_cctp_src_periphery.json +1982 -0
- package/svm/idl/svm_spoke.json +3930 -0
- package/dist/src/svm/assets/idl/test.json +0 -243
- package/dist/src/svm/assets/test.d.ts +0 -249
- package/dist/src/svm/assets/test.js +0 -2
|
@@ -0,0 +1,1982 @@
|
|
|
1
|
+
{
|
|
2
|
+
"address": "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS",
|
|
3
|
+
"metadata": {
|
|
4
|
+
"name": "sponsored_cctp_src_periphery",
|
|
5
|
+
"version": "0.1.0",
|
|
6
|
+
"spec": "0.1.0",
|
|
7
|
+
"description": "Created with Anchor"
|
|
8
|
+
},
|
|
9
|
+
"docs": [
|
|
10
|
+
"# Across Sponsored CCTP Source Periphery",
|
|
11
|
+
"",
|
|
12
|
+
"Source chain periphery program for users to interact with to start a sponsored or a non-sponsored flow that allows",
|
|
13
|
+
"custom Across-supported flows on destination chain. Uses Circle's CCTPv2 as an underlying bridge"
|
|
14
|
+
],
|
|
15
|
+
"instructions": [
|
|
16
|
+
{
|
|
17
|
+
"name": "deposit_for_burn",
|
|
18
|
+
"docs": [
|
|
19
|
+
"Verifies a sponsored CCTP quote, records its nonce, and burns the user's tokens via CCTPv2 with hook data.",
|
|
20
|
+
"",
|
|
21
|
+
"The user's depositor ATA is burned via `deposit_for_burn_with_hook` CPI on the CCTPv2. The rent cost for the",
|
|
22
|
+
"per-quote `used_nonce` PDA is refunded to the signer from the `rent_fund` and `rent_fund` also funds the",
|
|
23
|
+
"creation of CCTP `MessageSent` event account.",
|
|
24
|
+
"On success, this emits a `SponsoredDepositForBurn` event to be consumed by offchain infrastructure. This also",
|
|
25
|
+
"emits a `CreatedEventAccount` event containing the address of the created CCTP `MessageSent` event account that",
|
|
26
|
+
"can be reclaimed later using the `reclaim_event_account` instruction.",
|
|
27
|
+
"",
|
|
28
|
+
"Required Accounts:",
|
|
29
|
+
"- signer (Signer, Writable): The user authorizing the burn.",
|
|
30
|
+
"- state (Account): Program state PDA. Seed: [\"state\"].",
|
|
31
|
+
"- rent_fund (SystemAccount, Writable): PDA used to sponsor rent and event accounts. Seed: [\"rent_fund\"].",
|
|
32
|
+
"- minimum_deposit (Account): Minimum deposit state PDA. Seed: [\"minimum_deposit\", burn_token.key()].",
|
|
33
|
+
"- used_nonce (Account, Writable, Init): Per-quote nonce PDA. Seed: [\"used_nonce\", nonce].",
|
|
34
|
+
"- rent_claim (Optional Account, Writable, Init-If-Needed): Optional PDA to accrue rent_fund debt to the user.",
|
|
35
|
+
"Seed: [\"rent_claim\", signer.key()].",
|
|
36
|
+
"- depositor_token_account (InterfaceAccount<TokenAccount>, Writable): Signer ATA of the burn token.",
|
|
37
|
+
"- burn_token (InterfaceAccount<Mint>, Mutable): Mint of the token to burn. Must match quote.burn_token.",
|
|
38
|
+
"- denylist_account (Unchecked): CCTP denylist PDA, validated within CCTP.",
|
|
39
|
+
"- token_messenger_minter_sender_authority (Unchecked): CCTP sender authority PDA.",
|
|
40
|
+
"- message_transmitter (Unchecked, Mutable): CCTP MessageTransmitter account.",
|
|
41
|
+
"- token_messenger (Unchecked): CCTP TokenMessenger account.",
|
|
42
|
+
"- remote_token_messenger (Unchecked): Remote TokenMessenger account for destination domain.",
|
|
43
|
+
"- token_minter (Unchecked): CCTP TokenMinter account.",
|
|
44
|
+
"- local_token (Unchecked, Mutable): Local token account (CCTP).",
|
|
45
|
+
"- cctp_event_authority (Unchecked): CCTP event authority account.",
|
|
46
|
+
"- message_sent_event_data (Signer, Mutable): Fresh account to store CCTP MessageSent event data.",
|
|
47
|
+
"- message_transmitter_program (Program): CCTPv2 MessageTransmitter program.",
|
|
48
|
+
"- token_messenger_minter_program (Program): CCTPv2 TokenMessengerMinter program.",
|
|
49
|
+
"- token_program (Interface): SPL token program.",
|
|
50
|
+
"- system_program (Program): System program.",
|
|
51
|
+
"",
|
|
52
|
+
"Parameters:",
|
|
53
|
+
"- quote: SponsoredCCTPQuote struct serialized by Anchor:",
|
|
54
|
+
"- source_domain: CCTP domain ID of the source chain.",
|
|
55
|
+
"- destination_domain: CCTP domain ID of the destination chain.",
|
|
56
|
+
"- mint_recipient: The recipient of the minted tokens on the destination chain.",
|
|
57
|
+
"- amount: The amount of tokens that the user pays on the source chain.",
|
|
58
|
+
"- burn_token: The token that will be burned on the source chain.",
|
|
59
|
+
"- destination_caller: The caller of the destination chain.",
|
|
60
|
+
"- max_fee: Maximum fee to pay on the destination domain, specified in units of burn_token.",
|
|
61
|
+
"- min_finality_threshold: Minimum finality threshold before allowed to attest.",
|
|
62
|
+
"- nonce: Nonce is used to prevent replay attacks.",
|
|
63
|
+
"- deadline: Timestamp of the quote after which it can no longer be used.",
|
|
64
|
+
"- max_bps_to_sponsor: The maximum basis points of the amount that can be sponsored.",
|
|
65
|
+
"- max_user_slippage_bps: Slippage tolerance for the fees on the destination. Used in swap flow, enforced on",
|
|
66
|
+
"destination.",
|
|
67
|
+
"- final_recipient: The final recipient of the sponsored deposit. This is needed as the mint_recipient will be",
|
|
68
|
+
"the handler contract address instead of the final recipient.",
|
|
69
|
+
"- final_token: The final token that final recipient will receive. This is needed as it can be different from",
|
|
70
|
+
"the burn_token in which case we perform a swap on the destination chain.",
|
|
71
|
+
"- execution_mode: Execution mode: DirectToCore (0), ArbitraryActionsToCore (1), or ArbitraryActionsToEVM (2).",
|
|
72
|
+
"- action_data: Encoded action data for arbitrary execution. Empty for DirectToCore mode.",
|
|
73
|
+
"- signature: 65-byte EVM signature authorizing the quote by the trusted signer.",
|
|
74
|
+
"",
|
|
75
|
+
"Notes:",
|
|
76
|
+
"- The upgrade authority must have set the valid EVM signer for this instruction to succeed.",
|
|
77
|
+
"- The operator of this program must have funded the `rent_fund` PDA with sufficient lamports to cover",
|
|
78
|
+
"rent for the `used_nonce` PDA and the CCTP `MessageSent` event account."
|
|
79
|
+
],
|
|
80
|
+
"discriminator": [
|
|
81
|
+
215,
|
|
82
|
+
60,
|
|
83
|
+
61,
|
|
84
|
+
46,
|
|
85
|
+
114,
|
|
86
|
+
55,
|
|
87
|
+
128,
|
|
88
|
+
176
|
|
89
|
+
],
|
|
90
|
+
"accounts": [
|
|
91
|
+
{
|
|
92
|
+
"name": "signer",
|
|
93
|
+
"writable": true,
|
|
94
|
+
"signer": true
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
"name": "state",
|
|
98
|
+
"pda": {
|
|
99
|
+
"seeds": [
|
|
100
|
+
{
|
|
101
|
+
"kind": "const",
|
|
102
|
+
"value": [
|
|
103
|
+
115,
|
|
104
|
+
116,
|
|
105
|
+
97,
|
|
106
|
+
116,
|
|
107
|
+
101
|
|
108
|
+
]
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "rent_fund",
|
|
115
|
+
"writable": true,
|
|
116
|
+
"pda": {
|
|
117
|
+
"seeds": [
|
|
118
|
+
{
|
|
119
|
+
"kind": "const",
|
|
120
|
+
"value": [
|
|
121
|
+
114,
|
|
122
|
+
101,
|
|
123
|
+
110,
|
|
124
|
+
116,
|
|
125
|
+
95,
|
|
126
|
+
102,
|
|
127
|
+
117,
|
|
128
|
+
110,
|
|
129
|
+
100
|
|
130
|
+
]
|
|
131
|
+
}
|
|
132
|
+
]
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"name": "minimum_deposit",
|
|
137
|
+
"pda": {
|
|
138
|
+
"seeds": [
|
|
139
|
+
{
|
|
140
|
+
"kind": "const",
|
|
141
|
+
"value": [
|
|
142
|
+
109,
|
|
143
|
+
105,
|
|
144
|
+
110,
|
|
145
|
+
105,
|
|
146
|
+
109,
|
|
147
|
+
117,
|
|
148
|
+
109,
|
|
149
|
+
95,
|
|
150
|
+
100,
|
|
151
|
+
101,
|
|
152
|
+
112,
|
|
153
|
+
111,
|
|
154
|
+
115,
|
|
155
|
+
105,
|
|
156
|
+
116
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"kind": "account",
|
|
161
|
+
"path": "burn_token"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "used_nonce",
|
|
168
|
+
"writable": true,
|
|
169
|
+
"pda": {
|
|
170
|
+
"seeds": [
|
|
171
|
+
{
|
|
172
|
+
"kind": "const",
|
|
173
|
+
"value": [
|
|
174
|
+
117,
|
|
175
|
+
115,
|
|
176
|
+
101,
|
|
177
|
+
100,
|
|
178
|
+
95,
|
|
179
|
+
110,
|
|
180
|
+
111,
|
|
181
|
+
110,
|
|
182
|
+
99,
|
|
183
|
+
101
|
|
184
|
+
]
|
|
185
|
+
},
|
|
186
|
+
{
|
|
187
|
+
"kind": "arg",
|
|
188
|
+
"path": "params.quote.nonce"
|
|
189
|
+
}
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"name": "rent_claim",
|
|
195
|
+
"writable": true,
|
|
196
|
+
"optional": true,
|
|
197
|
+
"pda": {
|
|
198
|
+
"seeds": [
|
|
199
|
+
{
|
|
200
|
+
"kind": "const",
|
|
201
|
+
"value": [
|
|
202
|
+
114,
|
|
203
|
+
101,
|
|
204
|
+
110,
|
|
205
|
+
116,
|
|
206
|
+
95,
|
|
207
|
+
99,
|
|
208
|
+
108,
|
|
209
|
+
97,
|
|
210
|
+
105,
|
|
211
|
+
109
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "account",
|
|
216
|
+
"path": "signer"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
"name": "depositor_token_account",
|
|
223
|
+
"writable": true,
|
|
224
|
+
"pda": {
|
|
225
|
+
"seeds": [
|
|
226
|
+
{
|
|
227
|
+
"kind": "account",
|
|
228
|
+
"path": "signer"
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
"kind": "account",
|
|
232
|
+
"path": "token_program"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"kind": "account",
|
|
236
|
+
"path": "burn_token"
|
|
237
|
+
}
|
|
238
|
+
],
|
|
239
|
+
"program": {
|
|
240
|
+
"kind": "const",
|
|
241
|
+
"value": [
|
|
242
|
+
140,
|
|
243
|
+
151,
|
|
244
|
+
37,
|
|
245
|
+
143,
|
|
246
|
+
78,
|
|
247
|
+
36,
|
|
248
|
+
137,
|
|
249
|
+
241,
|
|
250
|
+
187,
|
|
251
|
+
61,
|
|
252
|
+
16,
|
|
253
|
+
41,
|
|
254
|
+
20,
|
|
255
|
+
142,
|
|
256
|
+
13,
|
|
257
|
+
131,
|
|
258
|
+
11,
|
|
259
|
+
90,
|
|
260
|
+
19,
|
|
261
|
+
153,
|
|
262
|
+
218,
|
|
263
|
+
255,
|
|
264
|
+
16,
|
|
265
|
+
132,
|
|
266
|
+
4,
|
|
267
|
+
142,
|
|
268
|
+
123,
|
|
269
|
+
216,
|
|
270
|
+
219,
|
|
271
|
+
233,
|
|
272
|
+
248,
|
|
273
|
+
89
|
|
274
|
+
]
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"name": "burn_token",
|
|
280
|
+
"writable": true
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"name": "denylist_account"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
"name": "token_messenger_minter_sender_authority"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "message_transmitter",
|
|
290
|
+
"writable": true
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "token_messenger"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"name": "remote_token_messenger"
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"name": "token_minter"
|
|
300
|
+
},
|
|
301
|
+
{
|
|
302
|
+
"name": "local_token",
|
|
303
|
+
"writable": true
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"name": "cctp_event_authority"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"name": "message_sent_event_data",
|
|
310
|
+
"writable": true,
|
|
311
|
+
"signer": true
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "message_transmitter_program",
|
|
315
|
+
"address": "CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "token_messenger_minter_program",
|
|
319
|
+
"address": "CCTPV2vPZJS2u2BBsUoscuikbYjnpFmbFsvVuJdgUMQe"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "token_program"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"name": "system_program",
|
|
326
|
+
"address": "11111111111111111111111111111111"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"name": "event_authority",
|
|
330
|
+
"pda": {
|
|
331
|
+
"seeds": [
|
|
332
|
+
{
|
|
333
|
+
"kind": "const",
|
|
334
|
+
"value": [
|
|
335
|
+
95,
|
|
336
|
+
95,
|
|
337
|
+
101,
|
|
338
|
+
118,
|
|
339
|
+
101,
|
|
340
|
+
110,
|
|
341
|
+
116,
|
|
342
|
+
95,
|
|
343
|
+
97,
|
|
344
|
+
117,
|
|
345
|
+
116,
|
|
346
|
+
104,
|
|
347
|
+
111,
|
|
348
|
+
114,
|
|
349
|
+
105,
|
|
350
|
+
116,
|
|
351
|
+
121
|
|
352
|
+
]
|
|
353
|
+
}
|
|
354
|
+
]
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
"name": "program"
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
"args": [
|
|
362
|
+
{
|
|
363
|
+
"name": "params",
|
|
364
|
+
"type": {
|
|
365
|
+
"defined": {
|
|
366
|
+
"name": "DepositForBurnParams"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
]
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
"name": "get_used_nonce_close_info",
|
|
374
|
+
"docs": [
|
|
375
|
+
"Returns whether a `used_nonce` PDA can be closed now and the timestamp after which it can be closed.",
|
|
376
|
+
"",
|
|
377
|
+
"This is a convenience \"view\" helper for off-chain systems to determine when rent can be reclaimed for a",
|
|
378
|
+
"specific quote nonce.",
|
|
379
|
+
"",
|
|
380
|
+
"Required Accounts:",
|
|
381
|
+
"- state (Account): Program state PDA. Seed: [\"state\"].",
|
|
382
|
+
"- used_nonce (Account): The `used_nonce` PDA. Seed: [\"used_nonce\", nonce].",
|
|
383
|
+
"",
|
|
384
|
+
"Parameters:",
|
|
385
|
+
"- _params.nonce: The 32-byte nonce identifying the PDA to check.",
|
|
386
|
+
"",
|
|
387
|
+
"Returns:",
|
|
388
|
+
"- UsedNonceCloseInfo { can_close_after, can_close_now }"
|
|
389
|
+
],
|
|
390
|
+
"discriminator": [
|
|
391
|
+
19,
|
|
392
|
+
183,
|
|
393
|
+
42,
|
|
394
|
+
151,
|
|
395
|
+
118,
|
|
396
|
+
234,
|
|
397
|
+
57,
|
|
398
|
+
92
|
|
399
|
+
],
|
|
400
|
+
"accounts": [
|
|
401
|
+
{
|
|
402
|
+
"name": "state",
|
|
403
|
+
"pda": {
|
|
404
|
+
"seeds": [
|
|
405
|
+
{
|
|
406
|
+
"kind": "const",
|
|
407
|
+
"value": [
|
|
408
|
+
115,
|
|
409
|
+
116,
|
|
410
|
+
97,
|
|
411
|
+
116,
|
|
412
|
+
101
|
|
413
|
+
]
|
|
414
|
+
}
|
|
415
|
+
]
|
|
416
|
+
}
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"name": "used_nonce",
|
|
420
|
+
"pda": {
|
|
421
|
+
"seeds": [
|
|
422
|
+
{
|
|
423
|
+
"kind": "const",
|
|
424
|
+
"value": [
|
|
425
|
+
117,
|
|
426
|
+
115,
|
|
427
|
+
101,
|
|
428
|
+
100,
|
|
429
|
+
95,
|
|
430
|
+
110,
|
|
431
|
+
111,
|
|
432
|
+
110,
|
|
433
|
+
99,
|
|
434
|
+
101
|
|
435
|
+
]
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
"kind": "arg",
|
|
439
|
+
"path": "_params.nonce"
|
|
440
|
+
}
|
|
441
|
+
]
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"args": [
|
|
446
|
+
{
|
|
447
|
+
"name": "_params",
|
|
448
|
+
"type": {
|
|
449
|
+
"defined": {
|
|
450
|
+
"name": "UsedNonceAccountParams"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"returns": {
|
|
456
|
+
"defined": {
|
|
457
|
+
"name": "UsedNonceCloseInfo"
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
"name": "initialize",
|
|
463
|
+
"docs": [
|
|
464
|
+
"Initializes immutable program state and sets the trusted EVM quote signer.",
|
|
465
|
+
"",
|
|
466
|
+
"This can only be called once by the upgrade authority. It stores the local CCTP source domain and the",
|
|
467
|
+
"quote `signer` that must authorize sponsored deposits.",
|
|
468
|
+
"",
|
|
469
|
+
"Required Accounts:",
|
|
470
|
+
"- signer (Signer, Writable): Must be the program upgrade authority.",
|
|
471
|
+
"- state (Writable): Program state PDA. Seed: [\"state\"].",
|
|
472
|
+
"- program_data (Account): Program data account to verify the upgrade authority.",
|
|
473
|
+
"- this_program (Program): This program account, used to resolve `programdata_address`.",
|
|
474
|
+
"- system_program (Program): System program for account creation.",
|
|
475
|
+
"",
|
|
476
|
+
"Parameters:",
|
|
477
|
+
"- source_domain: CCTP domain for this chain (e.g., 5 for Solana).",
|
|
478
|
+
"- signer: EVM address (encoded as `Pubkey`) authorized to sign sponsored quotes."
|
|
479
|
+
],
|
|
480
|
+
"discriminator": [
|
|
481
|
+
175,
|
|
482
|
+
175,
|
|
483
|
+
109,
|
|
484
|
+
31,
|
|
485
|
+
13,
|
|
486
|
+
152,
|
|
487
|
+
155,
|
|
488
|
+
237
|
|
489
|
+
],
|
|
490
|
+
"accounts": [
|
|
491
|
+
{
|
|
492
|
+
"name": "signer",
|
|
493
|
+
"writable": true,
|
|
494
|
+
"signer": true
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "state",
|
|
498
|
+
"writable": true,
|
|
499
|
+
"pda": {
|
|
500
|
+
"seeds": [
|
|
501
|
+
{
|
|
502
|
+
"kind": "const",
|
|
503
|
+
"value": [
|
|
504
|
+
115,
|
|
505
|
+
116,
|
|
506
|
+
97,
|
|
507
|
+
116,
|
|
508
|
+
101
|
|
509
|
+
]
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "program_data"
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
"name": "this_program",
|
|
519
|
+
"address": "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"name": "system_program",
|
|
523
|
+
"address": "11111111111111111111111111111111"
|
|
524
|
+
}
|
|
525
|
+
],
|
|
526
|
+
"args": [
|
|
527
|
+
{
|
|
528
|
+
"name": "params",
|
|
529
|
+
"type": {
|
|
530
|
+
"defined": {
|
|
531
|
+
"name": "InitializeParams"
|
|
532
|
+
}
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
]
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "reclaim_event_account",
|
|
539
|
+
"docs": [
|
|
540
|
+
"Reclaims the CCTP `MessageSent` event account, returning rent to the rent fund.",
|
|
541
|
+
"",
|
|
542
|
+
"Required Accounts:",
|
|
543
|
+
"- rent_fund (SystemAccount, Writable): PDA to receive reclaimed lamports. Seed: [\"rent_fund\"].",
|
|
544
|
+
"- message_transmitter (Unchecked, Mutable): CCTP MessageTransmitter account.",
|
|
545
|
+
"- message_sent_event_data (Account, Mutable): The `MessageSent` event account created during `deposit_for_burn`.",
|
|
546
|
+
"- message_transmitter_program (Program): CCTPv2 MessageTransmitter program.",
|
|
547
|
+
"",
|
|
548
|
+
"Parameters:",
|
|
549
|
+
"- params: Parameters struct required to construct reclaim_event_account instruction on the CCTPv2.",
|
|
550
|
+
"- attestation: Attestation obtained from the CCTP attestation service.",
|
|
551
|
+
"- nonce: bytes32 from the attested destination message.",
|
|
552
|
+
"- finality_threshold_executed: uint32 BE encoded from the attested destination message.",
|
|
553
|
+
"- fee_executed: uint256 BE encoded from the attested destination message body.",
|
|
554
|
+
"- expiration_block: uint256 BE encoded from the attested destination message body.",
|
|
555
|
+
"",
|
|
556
|
+
"Notes:",
|
|
557
|
+
"- This can only be called after the CCTP attestation service has processed the message and sufficient time has",
|
|
558
|
+
"passed since the `MessageSent` event was created. The operator can track the closable accounts from the",
|
|
559
|
+
"emitted `CreatedEventAccount` events and using the `EVENT_ACCOUNT_WINDOW_SECONDS` set in CCTP program."
|
|
560
|
+
],
|
|
561
|
+
"discriminator": [
|
|
562
|
+
94,
|
|
563
|
+
198,
|
|
564
|
+
180,
|
|
565
|
+
159,
|
|
566
|
+
131,
|
|
567
|
+
236,
|
|
568
|
+
15,
|
|
569
|
+
174
|
|
570
|
+
],
|
|
571
|
+
"accounts": [
|
|
572
|
+
{
|
|
573
|
+
"name": "rent_fund",
|
|
574
|
+
"writable": true,
|
|
575
|
+
"pda": {
|
|
576
|
+
"seeds": [
|
|
577
|
+
{
|
|
578
|
+
"kind": "const",
|
|
579
|
+
"value": [
|
|
580
|
+
114,
|
|
581
|
+
101,
|
|
582
|
+
110,
|
|
583
|
+
116,
|
|
584
|
+
95,
|
|
585
|
+
102,
|
|
586
|
+
117,
|
|
587
|
+
110,
|
|
588
|
+
100
|
|
589
|
+
]
|
|
590
|
+
}
|
|
591
|
+
]
|
|
592
|
+
}
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
"name": "message_transmitter",
|
|
596
|
+
"writable": true
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"name": "message_sent_event_data",
|
|
600
|
+
"writable": true
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "message_transmitter_program",
|
|
604
|
+
"address": "CCTPV2Sm4AdWt5296sk4P66VBZ7bEhcARwFaaS9YPbeC"
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "event_authority",
|
|
608
|
+
"pda": {
|
|
609
|
+
"seeds": [
|
|
610
|
+
{
|
|
611
|
+
"kind": "const",
|
|
612
|
+
"value": [
|
|
613
|
+
95,
|
|
614
|
+
95,
|
|
615
|
+
101,
|
|
616
|
+
118,
|
|
617
|
+
101,
|
|
618
|
+
110,
|
|
619
|
+
116,
|
|
620
|
+
95,
|
|
621
|
+
97,
|
|
622
|
+
117,
|
|
623
|
+
116,
|
|
624
|
+
104,
|
|
625
|
+
111,
|
|
626
|
+
114,
|
|
627
|
+
105,
|
|
628
|
+
116,
|
|
629
|
+
121
|
|
630
|
+
]
|
|
631
|
+
}
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"name": "program"
|
|
637
|
+
}
|
|
638
|
+
],
|
|
639
|
+
"args": [
|
|
640
|
+
{
|
|
641
|
+
"name": "params",
|
|
642
|
+
"type": {
|
|
643
|
+
"defined": {
|
|
644
|
+
"name": "ReclaimEventAccountParams"
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
]
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
"name": "reclaim_used_nonce_account",
|
|
652
|
+
"docs": [
|
|
653
|
+
"Closes a `used_nonce` PDA once its quote deadline has passed, returning rent to the rent fund.",
|
|
654
|
+
"",
|
|
655
|
+
"Required Accounts:",
|
|
656
|
+
"- state (Account): Program state PDA. Seed: [\"state\"]. Used to fetch current time.",
|
|
657
|
+
"- rent_fund (SystemAccount, Writable): PDA receiving lamports upon close. Seed: [\"rent_fund\"].",
|
|
658
|
+
"- used_nonce (Account, Writable, Close=rent_fund): PDA to close. Seed: [\"used_nonce\", nonce].",
|
|
659
|
+
"",
|
|
660
|
+
"Parameters:",
|
|
661
|
+
"- params.nonce: The 32-byte nonce identifying the PDA to close.",
|
|
662
|
+
"",
|
|
663
|
+
"Notes:",
|
|
664
|
+
"- This can only be called after the quote's deadline has passed. The operator can track closable `used_nonce`",
|
|
665
|
+
"accounts from the emitted `SponsoredDepositForBurn` events (`quote_nonce` and `quote_deadline`) and using the",
|
|
666
|
+
"`get_used_nonce_close_info` helper."
|
|
667
|
+
],
|
|
668
|
+
"discriminator": [
|
|
669
|
+
153,
|
|
670
|
+
152,
|
|
671
|
+
111,
|
|
672
|
+
172,
|
|
673
|
+
156,
|
|
674
|
+
104,
|
|
675
|
+
116,
|
|
676
|
+
3
|
|
677
|
+
],
|
|
678
|
+
"accounts": [
|
|
679
|
+
{
|
|
680
|
+
"name": "state",
|
|
681
|
+
"pda": {
|
|
682
|
+
"seeds": [
|
|
683
|
+
{
|
|
684
|
+
"kind": "const",
|
|
685
|
+
"value": [
|
|
686
|
+
115,
|
|
687
|
+
116,
|
|
688
|
+
97,
|
|
689
|
+
116,
|
|
690
|
+
101
|
|
691
|
+
]
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"name": "rent_fund",
|
|
698
|
+
"writable": true,
|
|
699
|
+
"pda": {
|
|
700
|
+
"seeds": [
|
|
701
|
+
{
|
|
702
|
+
"kind": "const",
|
|
703
|
+
"value": [
|
|
704
|
+
114,
|
|
705
|
+
101,
|
|
706
|
+
110,
|
|
707
|
+
116,
|
|
708
|
+
95,
|
|
709
|
+
102,
|
|
710
|
+
117,
|
|
711
|
+
110,
|
|
712
|
+
100
|
|
713
|
+
]
|
|
714
|
+
}
|
|
715
|
+
]
|
|
716
|
+
}
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"name": "used_nonce",
|
|
720
|
+
"writable": true,
|
|
721
|
+
"pda": {
|
|
722
|
+
"seeds": [
|
|
723
|
+
{
|
|
724
|
+
"kind": "const",
|
|
725
|
+
"value": [
|
|
726
|
+
117,
|
|
727
|
+
115,
|
|
728
|
+
101,
|
|
729
|
+
100,
|
|
730
|
+
95,
|
|
731
|
+
110,
|
|
732
|
+
111,
|
|
733
|
+
110,
|
|
734
|
+
99,
|
|
735
|
+
101
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "arg",
|
|
740
|
+
"path": "params.nonce"
|
|
741
|
+
}
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
},
|
|
745
|
+
{
|
|
746
|
+
"name": "event_authority",
|
|
747
|
+
"pda": {
|
|
748
|
+
"seeds": [
|
|
749
|
+
{
|
|
750
|
+
"kind": "const",
|
|
751
|
+
"value": [
|
|
752
|
+
95,
|
|
753
|
+
95,
|
|
754
|
+
101,
|
|
755
|
+
118,
|
|
756
|
+
101,
|
|
757
|
+
110,
|
|
758
|
+
116,
|
|
759
|
+
95,
|
|
760
|
+
97,
|
|
761
|
+
117,
|
|
762
|
+
116,
|
|
763
|
+
104,
|
|
764
|
+
111,
|
|
765
|
+
114,
|
|
766
|
+
105,
|
|
767
|
+
116,
|
|
768
|
+
121
|
|
769
|
+
]
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"name": "program"
|
|
776
|
+
}
|
|
777
|
+
],
|
|
778
|
+
"args": [
|
|
779
|
+
{
|
|
780
|
+
"name": "params",
|
|
781
|
+
"type": {
|
|
782
|
+
"defined": {
|
|
783
|
+
"name": "UsedNonceAccountParams"
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
]
|
|
788
|
+
},
|
|
789
|
+
{
|
|
790
|
+
"name": "repay_rent_fund_debt",
|
|
791
|
+
"docs": [
|
|
792
|
+
"Repays rent_fund liability for a user if rent_fund had insufficient balance at the time of deposit.",
|
|
793
|
+
"",
|
|
794
|
+
"Required Accounts:",
|
|
795
|
+
"- rent_fund (SystemAccount, Writable): PDA used to sponsor rent and event accounts. Seed: [\"rent_fund\"].",
|
|
796
|
+
"- recipient (Unchecked, Writable): The user account to repay rent fund debt to.",
|
|
797
|
+
"- rent_claim (Account, Writable, Close=recipient): PDA with accrued rent_fund debt to the user.",
|
|
798
|
+
"Seed: [\"rent_claim\", recipient.key()].",
|
|
799
|
+
"- system_program (Program): System program."
|
|
800
|
+
],
|
|
801
|
+
"discriminator": [
|
|
802
|
+
111,
|
|
803
|
+
95,
|
|
804
|
+
222,
|
|
805
|
+
174,
|
|
806
|
+
241,
|
|
807
|
+
41,
|
|
808
|
+
61,
|
|
809
|
+
78
|
|
810
|
+
],
|
|
811
|
+
"accounts": [
|
|
812
|
+
{
|
|
813
|
+
"name": "rent_fund",
|
|
814
|
+
"writable": true,
|
|
815
|
+
"pda": {
|
|
816
|
+
"seeds": [
|
|
817
|
+
{
|
|
818
|
+
"kind": "const",
|
|
819
|
+
"value": [
|
|
820
|
+
114,
|
|
821
|
+
101,
|
|
822
|
+
110,
|
|
823
|
+
116,
|
|
824
|
+
95,
|
|
825
|
+
102,
|
|
826
|
+
117,
|
|
827
|
+
110,
|
|
828
|
+
100
|
|
829
|
+
]
|
|
830
|
+
}
|
|
831
|
+
]
|
|
832
|
+
}
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
"name": "recipient",
|
|
836
|
+
"writable": true
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
"name": "rent_claim",
|
|
840
|
+
"writable": true,
|
|
841
|
+
"pda": {
|
|
842
|
+
"seeds": [
|
|
843
|
+
{
|
|
844
|
+
"kind": "const",
|
|
845
|
+
"value": [
|
|
846
|
+
114,
|
|
847
|
+
101,
|
|
848
|
+
110,
|
|
849
|
+
116,
|
|
850
|
+
95,
|
|
851
|
+
99,
|
|
852
|
+
108,
|
|
853
|
+
97,
|
|
854
|
+
105,
|
|
855
|
+
109
|
|
856
|
+
]
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "account",
|
|
860
|
+
"path": "recipient"
|
|
861
|
+
}
|
|
862
|
+
]
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
"name": "system_program",
|
|
867
|
+
"address": "11111111111111111111111111111111"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"name": "event_authority",
|
|
871
|
+
"pda": {
|
|
872
|
+
"seeds": [
|
|
873
|
+
{
|
|
874
|
+
"kind": "const",
|
|
875
|
+
"value": [
|
|
876
|
+
95,
|
|
877
|
+
95,
|
|
878
|
+
101,
|
|
879
|
+
118,
|
|
880
|
+
101,
|
|
881
|
+
110,
|
|
882
|
+
116,
|
|
883
|
+
95,
|
|
884
|
+
97,
|
|
885
|
+
117,
|
|
886
|
+
116,
|
|
887
|
+
104,
|
|
888
|
+
111,
|
|
889
|
+
114,
|
|
890
|
+
105,
|
|
891
|
+
116,
|
|
892
|
+
121
|
|
893
|
+
]
|
|
894
|
+
}
|
|
895
|
+
]
|
|
896
|
+
}
|
|
897
|
+
},
|
|
898
|
+
{
|
|
899
|
+
"name": "program"
|
|
900
|
+
}
|
|
901
|
+
],
|
|
902
|
+
"args": []
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
"name": "set_current_time",
|
|
906
|
+
"docs": [
|
|
907
|
+
"Sets the current time in test mode. No-op on mainnet builds.",
|
|
908
|
+
"",
|
|
909
|
+
"Required Accounts:",
|
|
910
|
+
"- state (Writable): Program state PDA. Seed: [\"state\"].",
|
|
911
|
+
"- signer (Signer): Any signer. Only enabled when built with `--features test`.",
|
|
912
|
+
"",
|
|
913
|
+
"Parameters:",
|
|
914
|
+
"- new_time: New unix timestamp to set for tests."
|
|
915
|
+
],
|
|
916
|
+
"discriminator": [
|
|
917
|
+
69,
|
|
918
|
+
100,
|
|
919
|
+
169,
|
|
920
|
+
193,
|
|
921
|
+
125,
|
|
922
|
+
0,
|
|
923
|
+
150,
|
|
924
|
+
69
|
|
925
|
+
],
|
|
926
|
+
"accounts": [
|
|
927
|
+
{
|
|
928
|
+
"name": "state",
|
|
929
|
+
"writable": true,
|
|
930
|
+
"pda": {
|
|
931
|
+
"seeds": [
|
|
932
|
+
{
|
|
933
|
+
"kind": "const",
|
|
934
|
+
"value": [
|
|
935
|
+
115,
|
|
936
|
+
116,
|
|
937
|
+
97,
|
|
938
|
+
116,
|
|
939
|
+
101
|
|
940
|
+
]
|
|
941
|
+
}
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"name": "signer",
|
|
947
|
+
"signer": true
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
"args": [
|
|
951
|
+
{
|
|
952
|
+
"name": "params",
|
|
953
|
+
"type": {
|
|
954
|
+
"defined": {
|
|
955
|
+
"name": "SetCurrentTimeParams"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
]
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"name": "set_minimum_deposit_amount",
|
|
963
|
+
"docs": [
|
|
964
|
+
"Updates the minimum deposit amount for a given burn token.",
|
|
965
|
+
"",
|
|
966
|
+
"Only callable by the upgrade authority. This must be set at least once for a supported burn token as otherwise",
|
|
967
|
+
"deposits would be blocked.",
|
|
968
|
+
"",
|
|
969
|
+
"Required Accounts:",
|
|
970
|
+
"- signer (Signer, Writable): Must be the program upgrade authority.",
|
|
971
|
+
"- minimum_deposit (Writable): Minimum deposit state PDA. Seed: [\"minimum_deposit\", burn_token.key()].",
|
|
972
|
+
"- burn_token: Supported burn token for which the minimum deposit amount is being set.",
|
|
973
|
+
"- program_data (Account): Program data account to verify the upgrade authority.",
|
|
974
|
+
"- this_program (Program): This program account, used to resolve `programdata_address`.",
|
|
975
|
+
"- system_program (Program): System program for transfers.",
|
|
976
|
+
"",
|
|
977
|
+
"Parameters:",
|
|
978
|
+
"- amount: New minimum deposit amount for a given burn token."
|
|
979
|
+
],
|
|
980
|
+
"discriminator": [
|
|
981
|
+
176,
|
|
982
|
+
4,
|
|
983
|
+
74,
|
|
984
|
+
229,
|
|
985
|
+
206,
|
|
986
|
+
148,
|
|
987
|
+
151,
|
|
988
|
+
138
|
|
989
|
+
],
|
|
990
|
+
"accounts": [
|
|
991
|
+
{
|
|
992
|
+
"name": "signer",
|
|
993
|
+
"writable": true,
|
|
994
|
+
"signer": true
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "minimum_deposit",
|
|
998
|
+
"writable": true,
|
|
999
|
+
"pda": {
|
|
1000
|
+
"seeds": [
|
|
1001
|
+
{
|
|
1002
|
+
"kind": "const",
|
|
1003
|
+
"value": [
|
|
1004
|
+
109,
|
|
1005
|
+
105,
|
|
1006
|
+
110,
|
|
1007
|
+
105,
|
|
1008
|
+
109,
|
|
1009
|
+
117,
|
|
1010
|
+
109,
|
|
1011
|
+
95,
|
|
1012
|
+
100,
|
|
1013
|
+
101,
|
|
1014
|
+
112,
|
|
1015
|
+
111,
|
|
1016
|
+
115,
|
|
1017
|
+
105,
|
|
1018
|
+
116
|
|
1019
|
+
]
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"kind": "account",
|
|
1023
|
+
"path": "burn_token"
|
|
1024
|
+
}
|
|
1025
|
+
]
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"name": "burn_token"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "program_data"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
"name": "this_program",
|
|
1036
|
+
"address": "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS"
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
"name": "system_program",
|
|
1040
|
+
"address": "11111111111111111111111111111111"
|
|
1041
|
+
}
|
|
1042
|
+
],
|
|
1043
|
+
"args": [
|
|
1044
|
+
{
|
|
1045
|
+
"name": "params",
|
|
1046
|
+
"type": {
|
|
1047
|
+
"defined": {
|
|
1048
|
+
"name": "SetMinimumDepositAmountParams"
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
]
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
"name": "set_signer",
|
|
1056
|
+
"docs": [
|
|
1057
|
+
"Updates the trusted EVM quote signer.",
|
|
1058
|
+
"",
|
|
1059
|
+
"Only callable by the upgrade authority. Setting this to an invalid address (including `Pubkey::default()`) will",
|
|
1060
|
+
"effectively disable deposits.",
|
|
1061
|
+
"",
|
|
1062
|
+
"Required Accounts:",
|
|
1063
|
+
"- signer (Signer, Writable): Must be the program upgrade authority.",
|
|
1064
|
+
"- state (Writable): Program state PDA. Seed: [\"state\"].",
|
|
1065
|
+
"- program_data (Account): Program data account to verify the upgrade authority.",
|
|
1066
|
+
"- this_program (Program): This program account, used to resolve `programdata_address`.",
|
|
1067
|
+
"",
|
|
1068
|
+
"Parameters:",
|
|
1069
|
+
"- new_signer: New EVM signer address (encoded as `Pubkey`)."
|
|
1070
|
+
],
|
|
1071
|
+
"discriminator": [
|
|
1072
|
+
127,
|
|
1073
|
+
120,
|
|
1074
|
+
252,
|
|
1075
|
+
184,
|
|
1076
|
+
97,
|
|
1077
|
+
4,
|
|
1078
|
+
88,
|
|
1079
|
+
68
|
|
1080
|
+
],
|
|
1081
|
+
"accounts": [
|
|
1082
|
+
{
|
|
1083
|
+
"name": "signer",
|
|
1084
|
+
"writable": true,
|
|
1085
|
+
"signer": true
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "state",
|
|
1089
|
+
"writable": true,
|
|
1090
|
+
"pda": {
|
|
1091
|
+
"seeds": [
|
|
1092
|
+
{
|
|
1093
|
+
"kind": "const",
|
|
1094
|
+
"value": [
|
|
1095
|
+
115,
|
|
1096
|
+
116,
|
|
1097
|
+
97,
|
|
1098
|
+
116,
|
|
1099
|
+
101
|
|
1100
|
+
]
|
|
1101
|
+
}
|
|
1102
|
+
]
|
|
1103
|
+
}
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"name": "program_data"
|
|
1107
|
+
},
|
|
1108
|
+
{
|
|
1109
|
+
"name": "this_program",
|
|
1110
|
+
"address": "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS"
|
|
1111
|
+
}
|
|
1112
|
+
],
|
|
1113
|
+
"args": [
|
|
1114
|
+
{
|
|
1115
|
+
"name": "params",
|
|
1116
|
+
"type": {
|
|
1117
|
+
"defined": {
|
|
1118
|
+
"name": "SetSignerParams"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
]
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"name": "withdraw_rent_fund",
|
|
1126
|
+
"docs": [
|
|
1127
|
+
"Withdraws lamports from the rent fund PDA to an arbitrary recipient.",
|
|
1128
|
+
"",
|
|
1129
|
+
"The rent fund is used to sponsor temporary account creation (e.g., CCTP event accounts or per-quote nonce PDAs).",
|
|
1130
|
+
"Only callable by the upgrade authority.",
|
|
1131
|
+
"",
|
|
1132
|
+
"Required Accounts:",
|
|
1133
|
+
"- signer (Signer, Writable): Must be the program upgrade authority.",
|
|
1134
|
+
"- rent_fund (SystemAccount, Writable): PDA holding lamports used for rent sponsorship. Seed: [\"rent_fund\"].",
|
|
1135
|
+
"- recipient (UncheckedAccount, Writable): Destination account for the withdrawn lamports.",
|
|
1136
|
+
"- program_data (Account): Program data account to verify the upgrade authority.",
|
|
1137
|
+
"- this_program (Program): This program account, used to resolve `programdata_address`.",
|
|
1138
|
+
"- system_program (Program): System program for transfers.",
|
|
1139
|
+
"",
|
|
1140
|
+
"Parameters:",
|
|
1141
|
+
"- amount: Amount of lamports to transfer to the recipient."
|
|
1142
|
+
],
|
|
1143
|
+
"discriminator": [
|
|
1144
|
+
153,
|
|
1145
|
+
28,
|
|
1146
|
+
108,
|
|
1147
|
+
116,
|
|
1148
|
+
132,
|
|
1149
|
+
70,
|
|
1150
|
+
161,
|
|
1151
|
+
125
|
|
1152
|
+
],
|
|
1153
|
+
"accounts": [
|
|
1154
|
+
{
|
|
1155
|
+
"name": "signer",
|
|
1156
|
+
"writable": true,
|
|
1157
|
+
"signer": true
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"name": "rent_fund",
|
|
1161
|
+
"writable": true,
|
|
1162
|
+
"pda": {
|
|
1163
|
+
"seeds": [
|
|
1164
|
+
{
|
|
1165
|
+
"kind": "const",
|
|
1166
|
+
"value": [
|
|
1167
|
+
114,
|
|
1168
|
+
101,
|
|
1169
|
+
110,
|
|
1170
|
+
116,
|
|
1171
|
+
95,
|
|
1172
|
+
102,
|
|
1173
|
+
117,
|
|
1174
|
+
110,
|
|
1175
|
+
100
|
|
1176
|
+
]
|
|
1177
|
+
}
|
|
1178
|
+
]
|
|
1179
|
+
}
|
|
1180
|
+
},
|
|
1181
|
+
{
|
|
1182
|
+
"name": "recipient",
|
|
1183
|
+
"writable": true
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"name": "program_data"
|
|
1187
|
+
},
|
|
1188
|
+
{
|
|
1189
|
+
"name": "this_program",
|
|
1190
|
+
"address": "FsD4uqAyXiAcQapVTokNvdz1ZC5hMHjY6a93nYmEqZQS"
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"name": "system_program",
|
|
1194
|
+
"address": "11111111111111111111111111111111"
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
"args": [
|
|
1198
|
+
{
|
|
1199
|
+
"name": "params",
|
|
1200
|
+
"type": {
|
|
1201
|
+
"defined": {
|
|
1202
|
+
"name": "WithdrawRentFundParams"
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
]
|
|
1207
|
+
}
|
|
1208
|
+
],
|
|
1209
|
+
"accounts": [
|
|
1210
|
+
{
|
|
1211
|
+
"name": "MinimumDeposit",
|
|
1212
|
+
"discriminator": [
|
|
1213
|
+
218,
|
|
1214
|
+
139,
|
|
1215
|
+
120,
|
|
1216
|
+
202,
|
|
1217
|
+
3,
|
|
1218
|
+
12,
|
|
1219
|
+
233,
|
|
1220
|
+
65
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "RentClaim",
|
|
1225
|
+
"discriminator": [
|
|
1226
|
+
13,
|
|
1227
|
+
5,
|
|
1228
|
+
183,
|
|
1229
|
+
82,
|
|
1230
|
+
60,
|
|
1231
|
+
122,
|
|
1232
|
+
72,
|
|
1233
|
+
11
|
|
1234
|
+
]
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"name": "State",
|
|
1238
|
+
"discriminator": [
|
|
1239
|
+
216,
|
|
1240
|
+
146,
|
|
1241
|
+
107,
|
|
1242
|
+
94,
|
|
1243
|
+
104,
|
|
1244
|
+
75,
|
|
1245
|
+
182,
|
|
1246
|
+
177
|
|
1247
|
+
]
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "UsedNonce",
|
|
1251
|
+
"discriminator": [
|
|
1252
|
+
212,
|
|
1253
|
+
222,
|
|
1254
|
+
157,
|
|
1255
|
+
252,
|
|
1256
|
+
130,
|
|
1257
|
+
71,
|
|
1258
|
+
179,
|
|
1259
|
+
238
|
|
1260
|
+
]
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
"events": [
|
|
1264
|
+
{
|
|
1265
|
+
"name": "AccruedRentFundLiability",
|
|
1266
|
+
"discriminator": [
|
|
1267
|
+
56,
|
|
1268
|
+
17,
|
|
1269
|
+
203,
|
|
1270
|
+
169,
|
|
1271
|
+
27,
|
|
1272
|
+
139,
|
|
1273
|
+
36,
|
|
1274
|
+
225
|
|
1275
|
+
]
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"name": "CreatedEventAccount",
|
|
1279
|
+
"discriminator": [
|
|
1280
|
+
178,
|
|
1281
|
+
224,
|
|
1282
|
+
189,
|
|
1283
|
+
92,
|
|
1284
|
+
50,
|
|
1285
|
+
100,
|
|
1286
|
+
128,
|
|
1287
|
+
204
|
|
1288
|
+
]
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"name": "MinimumDepositAmountSet",
|
|
1292
|
+
"discriminator": [
|
|
1293
|
+
134,
|
|
1294
|
+
237,
|
|
1295
|
+
176,
|
|
1296
|
+
205,
|
|
1297
|
+
21,
|
|
1298
|
+
44,
|
|
1299
|
+
95,
|
|
1300
|
+
177
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"name": "ReclaimedEventAccount",
|
|
1305
|
+
"discriminator": [
|
|
1306
|
+
210,
|
|
1307
|
+
180,
|
|
1308
|
+
74,
|
|
1309
|
+
27,
|
|
1310
|
+
92,
|
|
1311
|
+
74,
|
|
1312
|
+
46,
|
|
1313
|
+
216
|
|
1314
|
+
]
|
|
1315
|
+
},
|
|
1316
|
+
{
|
|
1317
|
+
"name": "ReclaimedUsedNonceAccount",
|
|
1318
|
+
"discriminator": [
|
|
1319
|
+
6,
|
|
1320
|
+
199,
|
|
1321
|
+
109,
|
|
1322
|
+
7,
|
|
1323
|
+
58,
|
|
1324
|
+
150,
|
|
1325
|
+
119,
|
|
1326
|
+
103
|
|
1327
|
+
]
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"name": "RepaidRentFundDebt",
|
|
1331
|
+
"discriminator": [
|
|
1332
|
+
134,
|
|
1333
|
+
86,
|
|
1334
|
+
59,
|
|
1335
|
+
173,
|
|
1336
|
+
10,
|
|
1337
|
+
250,
|
|
1338
|
+
191,
|
|
1339
|
+
190
|
|
1340
|
+
]
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "SignerSet",
|
|
1344
|
+
"discriminator": [
|
|
1345
|
+
137,
|
|
1346
|
+
203,
|
|
1347
|
+
187,
|
|
1348
|
+
74,
|
|
1349
|
+
141,
|
|
1350
|
+
187,
|
|
1351
|
+
226,
|
|
1352
|
+
95
|
|
1353
|
+
]
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "SponsoredDepositForBurn",
|
|
1357
|
+
"discriminator": [
|
|
1358
|
+
55,
|
|
1359
|
+
106,
|
|
1360
|
+
70,
|
|
1361
|
+
41,
|
|
1362
|
+
59,
|
|
1363
|
+
102,
|
|
1364
|
+
172,
|
|
1365
|
+
42
|
|
1366
|
+
]
|
|
1367
|
+
},
|
|
1368
|
+
{
|
|
1369
|
+
"name": "WithdrawnRentFund",
|
|
1370
|
+
"discriminator": [
|
|
1371
|
+
110,
|
|
1372
|
+
180,
|
|
1373
|
+
127,
|
|
1374
|
+
254,
|
|
1375
|
+
32,
|
|
1376
|
+
122,
|
|
1377
|
+
209,
|
|
1378
|
+
22
|
|
1379
|
+
]
|
|
1380
|
+
}
|
|
1381
|
+
],
|
|
1382
|
+
"errors": [
|
|
1383
|
+
{
|
|
1384
|
+
"code": 6000,
|
|
1385
|
+
"name": "InvalidSignature",
|
|
1386
|
+
"msg": "Invalid quote signature"
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"code": 6001,
|
|
1390
|
+
"name": "InvalidDeadline",
|
|
1391
|
+
"msg": "Invalid quote deadline"
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
"code": 6002,
|
|
1395
|
+
"name": "InvalidSourceDomain",
|
|
1396
|
+
"msg": "Invalid source domain"
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"code": 7000,
|
|
1400
|
+
"name": "NotUpgradeAuthority",
|
|
1401
|
+
"msg": "Only the upgrade authority can call this instruction"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"code": 7001,
|
|
1405
|
+
"name": "InvalidProgramData",
|
|
1406
|
+
"msg": "Invalid program data account"
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"code": 7002,
|
|
1410
|
+
"name": "CannotSetCurrentTime",
|
|
1411
|
+
"msg": "Cannot set time if not in test mode"
|
|
1412
|
+
},
|
|
1413
|
+
{
|
|
1414
|
+
"code": 7003,
|
|
1415
|
+
"name": "InvalidBurnToken",
|
|
1416
|
+
"msg": "Invalid burn_token key"
|
|
1417
|
+
},
|
|
1418
|
+
{
|
|
1419
|
+
"code": 7004,
|
|
1420
|
+
"name": "AmountNotPositive",
|
|
1421
|
+
"msg": "Amount must be greater than 0"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"code": 7005,
|
|
1425
|
+
"name": "QuoteDeadlineNotPassed",
|
|
1426
|
+
"msg": "The quote deadline has not passed!"
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"code": 7006,
|
|
1430
|
+
"name": "SignerUnchanged",
|
|
1431
|
+
"msg": "New signer unchanged"
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"code": 7007,
|
|
1435
|
+
"name": "DepositAmountBelowMinimum",
|
|
1436
|
+
"msg": "Deposit amount below minimum"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
"code": 7008,
|
|
1440
|
+
"name": "MissingRentClaimAccount",
|
|
1441
|
+
"msg": "Missing rent claim account"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"code": 7009,
|
|
1445
|
+
"name": "RentClaimOverflow",
|
|
1446
|
+
"msg": "Rent claim amount overflow"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"code": 7010,
|
|
1450
|
+
"name": "InvalidRecipientKey",
|
|
1451
|
+
"msg": "Invalid recipient key"
|
|
1452
|
+
},
|
|
1453
|
+
{
|
|
1454
|
+
"code": 8000,
|
|
1455
|
+
"name": "MalformedMessage",
|
|
1456
|
+
"msg": "Malformed V2 burn message"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
"code": 8001,
|
|
1460
|
+
"name": "InvalidMessageVersion",
|
|
1461
|
+
"msg": "Invalid message version"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"code": 8002,
|
|
1465
|
+
"name": "InvalidMessageBodyVersion",
|
|
1466
|
+
"msg": "Invalid message body version"
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
"types": [
|
|
1470
|
+
{
|
|
1471
|
+
"name": "AccruedRentFundLiability",
|
|
1472
|
+
"type": {
|
|
1473
|
+
"kind": "struct",
|
|
1474
|
+
"fields": [
|
|
1475
|
+
{
|
|
1476
|
+
"name": "user",
|
|
1477
|
+
"type": "pubkey"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"name": "amount",
|
|
1481
|
+
"type": "u64"
|
|
1482
|
+
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "total_user_claim",
|
|
1485
|
+
"type": "u64"
|
|
1486
|
+
}
|
|
1487
|
+
]
|
|
1488
|
+
}
|
|
1489
|
+
},
|
|
1490
|
+
{
|
|
1491
|
+
"name": "CreatedEventAccount",
|
|
1492
|
+
"type": {
|
|
1493
|
+
"kind": "struct",
|
|
1494
|
+
"fields": [
|
|
1495
|
+
{
|
|
1496
|
+
"name": "message_sent_event_data",
|
|
1497
|
+
"type": "pubkey"
|
|
1498
|
+
}
|
|
1499
|
+
]
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"name": "DepositForBurnParams",
|
|
1504
|
+
"type": {
|
|
1505
|
+
"kind": "struct",
|
|
1506
|
+
"fields": [
|
|
1507
|
+
{
|
|
1508
|
+
"name": "quote",
|
|
1509
|
+
"type": {
|
|
1510
|
+
"defined": {
|
|
1511
|
+
"name": "SponsoredCCTPQuote"
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"name": "signature",
|
|
1517
|
+
"type": {
|
|
1518
|
+
"array": [
|
|
1519
|
+
"u8",
|
|
1520
|
+
65
|
|
1521
|
+
]
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
]
|
|
1525
|
+
}
|
|
1526
|
+
},
|
|
1527
|
+
{
|
|
1528
|
+
"name": "InitializeParams",
|
|
1529
|
+
"type": {
|
|
1530
|
+
"kind": "struct",
|
|
1531
|
+
"fields": [
|
|
1532
|
+
{
|
|
1533
|
+
"name": "source_domain",
|
|
1534
|
+
"type": "u32"
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
"name": "signer",
|
|
1538
|
+
"type": "pubkey"
|
|
1539
|
+
}
|
|
1540
|
+
]
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"name": "MessageSent",
|
|
1545
|
+
"type": {
|
|
1546
|
+
"kind": "struct",
|
|
1547
|
+
"fields": [
|
|
1548
|
+
{
|
|
1549
|
+
"name": "rent_payer",
|
|
1550
|
+
"type": "pubkey"
|
|
1551
|
+
},
|
|
1552
|
+
{
|
|
1553
|
+
"name": "created_at",
|
|
1554
|
+
"type": "i64"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"name": "message",
|
|
1558
|
+
"type": "bytes"
|
|
1559
|
+
}
|
|
1560
|
+
]
|
|
1561
|
+
}
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"name": "MinimumDeposit",
|
|
1565
|
+
"type": {
|
|
1566
|
+
"kind": "struct",
|
|
1567
|
+
"fields": [
|
|
1568
|
+
{
|
|
1569
|
+
"name": "amount",
|
|
1570
|
+
"type": "u64"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
"name": "bump",
|
|
1574
|
+
"type": "u8"
|
|
1575
|
+
}
|
|
1576
|
+
]
|
|
1577
|
+
}
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"name": "MinimumDepositAmountSet",
|
|
1581
|
+
"type": {
|
|
1582
|
+
"kind": "struct",
|
|
1583
|
+
"fields": [
|
|
1584
|
+
{
|
|
1585
|
+
"name": "amount",
|
|
1586
|
+
"type": "u64"
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
"name": "burn_token",
|
|
1590
|
+
"type": "pubkey"
|
|
1591
|
+
}
|
|
1592
|
+
]
|
|
1593
|
+
}
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
"name": "ReclaimEventAccountParams",
|
|
1597
|
+
"type": {
|
|
1598
|
+
"kind": "struct",
|
|
1599
|
+
"fields": [
|
|
1600
|
+
{
|
|
1601
|
+
"name": "attestation",
|
|
1602
|
+
"type": "bytes"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"name": "nonce",
|
|
1606
|
+
"type": {
|
|
1607
|
+
"array": [
|
|
1608
|
+
"u8",
|
|
1609
|
+
32
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"name": "finality_threshold_executed",
|
|
1615
|
+
"type": {
|
|
1616
|
+
"array": [
|
|
1617
|
+
"u8",
|
|
1618
|
+
4
|
|
1619
|
+
]
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
{
|
|
1623
|
+
"name": "fee_executed",
|
|
1624
|
+
"type": {
|
|
1625
|
+
"array": [
|
|
1626
|
+
"u8",
|
|
1627
|
+
32
|
|
1628
|
+
]
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"name": "expiration_block",
|
|
1633
|
+
"type": {
|
|
1634
|
+
"array": [
|
|
1635
|
+
"u8",
|
|
1636
|
+
32
|
|
1637
|
+
]
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
]
|
|
1641
|
+
}
|
|
1642
|
+
},
|
|
1643
|
+
{
|
|
1644
|
+
"name": "ReclaimedEventAccount",
|
|
1645
|
+
"type": {
|
|
1646
|
+
"kind": "struct",
|
|
1647
|
+
"fields": [
|
|
1648
|
+
{
|
|
1649
|
+
"name": "message_sent_event_data",
|
|
1650
|
+
"type": "pubkey"
|
|
1651
|
+
}
|
|
1652
|
+
]
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
{
|
|
1656
|
+
"name": "ReclaimedUsedNonceAccount",
|
|
1657
|
+
"type": {
|
|
1658
|
+
"kind": "struct",
|
|
1659
|
+
"fields": [
|
|
1660
|
+
{
|
|
1661
|
+
"name": "nonce",
|
|
1662
|
+
"type": "bytes"
|
|
1663
|
+
},
|
|
1664
|
+
{
|
|
1665
|
+
"name": "used_nonce",
|
|
1666
|
+
"type": "pubkey"
|
|
1667
|
+
}
|
|
1668
|
+
]
|
|
1669
|
+
}
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
"name": "RentClaim",
|
|
1673
|
+
"type": {
|
|
1674
|
+
"kind": "struct",
|
|
1675
|
+
"fields": [
|
|
1676
|
+
{
|
|
1677
|
+
"name": "amount",
|
|
1678
|
+
"type": "u64"
|
|
1679
|
+
}
|
|
1680
|
+
]
|
|
1681
|
+
}
|
|
1682
|
+
},
|
|
1683
|
+
{
|
|
1684
|
+
"name": "RepaidRentFundDebt",
|
|
1685
|
+
"type": {
|
|
1686
|
+
"kind": "struct",
|
|
1687
|
+
"fields": [
|
|
1688
|
+
{
|
|
1689
|
+
"name": "user",
|
|
1690
|
+
"type": "pubkey"
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"name": "amount",
|
|
1694
|
+
"type": "u64"
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
"name": "remaining_user_claim",
|
|
1698
|
+
"type": "u64"
|
|
1699
|
+
}
|
|
1700
|
+
]
|
|
1701
|
+
}
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
"name": "SetCurrentTimeParams",
|
|
1705
|
+
"type": {
|
|
1706
|
+
"kind": "struct",
|
|
1707
|
+
"fields": [
|
|
1708
|
+
{
|
|
1709
|
+
"name": "new_time",
|
|
1710
|
+
"type": "u64"
|
|
1711
|
+
}
|
|
1712
|
+
]
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
{
|
|
1716
|
+
"name": "SetMinimumDepositAmountParams",
|
|
1717
|
+
"type": {
|
|
1718
|
+
"kind": "struct",
|
|
1719
|
+
"fields": [
|
|
1720
|
+
{
|
|
1721
|
+
"name": "amount",
|
|
1722
|
+
"type": "u64"
|
|
1723
|
+
}
|
|
1724
|
+
]
|
|
1725
|
+
}
|
|
1726
|
+
},
|
|
1727
|
+
{
|
|
1728
|
+
"name": "SetSignerParams",
|
|
1729
|
+
"type": {
|
|
1730
|
+
"kind": "struct",
|
|
1731
|
+
"fields": [
|
|
1732
|
+
{
|
|
1733
|
+
"name": "new_signer",
|
|
1734
|
+
"type": "pubkey"
|
|
1735
|
+
}
|
|
1736
|
+
]
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
{
|
|
1740
|
+
"name": "SignerSet",
|
|
1741
|
+
"type": {
|
|
1742
|
+
"kind": "struct",
|
|
1743
|
+
"fields": [
|
|
1744
|
+
{
|
|
1745
|
+
"name": "old_signer",
|
|
1746
|
+
"type": "pubkey"
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
"name": "new_signer",
|
|
1750
|
+
"type": "pubkey"
|
|
1751
|
+
}
|
|
1752
|
+
]
|
|
1753
|
+
}
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"name": "SponsoredCCTPQuote",
|
|
1757
|
+
"type": {
|
|
1758
|
+
"kind": "struct",
|
|
1759
|
+
"fields": [
|
|
1760
|
+
{
|
|
1761
|
+
"name": "source_domain",
|
|
1762
|
+
"type": "u32"
|
|
1763
|
+
},
|
|
1764
|
+
{
|
|
1765
|
+
"name": "destination_domain",
|
|
1766
|
+
"type": "u32"
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"name": "mint_recipient",
|
|
1770
|
+
"type": "pubkey"
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
"name": "amount",
|
|
1774
|
+
"type": "u64"
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
"name": "burn_token",
|
|
1778
|
+
"type": "pubkey"
|
|
1779
|
+
},
|
|
1780
|
+
{
|
|
1781
|
+
"name": "destination_caller",
|
|
1782
|
+
"type": "pubkey"
|
|
1783
|
+
},
|
|
1784
|
+
{
|
|
1785
|
+
"name": "max_fee",
|
|
1786
|
+
"type": "u64"
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
"name": "min_finality_threshold",
|
|
1790
|
+
"type": "u32"
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
"name": "nonce",
|
|
1794
|
+
"type": {
|
|
1795
|
+
"array": [
|
|
1796
|
+
"u8",
|
|
1797
|
+
32
|
|
1798
|
+
]
|
|
1799
|
+
}
|
|
1800
|
+
},
|
|
1801
|
+
{
|
|
1802
|
+
"name": "deadline",
|
|
1803
|
+
"type": "u64"
|
|
1804
|
+
},
|
|
1805
|
+
{
|
|
1806
|
+
"name": "max_bps_to_sponsor",
|
|
1807
|
+
"type": "u64"
|
|
1808
|
+
},
|
|
1809
|
+
{
|
|
1810
|
+
"name": "max_user_slippage_bps",
|
|
1811
|
+
"type": "u64"
|
|
1812
|
+
},
|
|
1813
|
+
{
|
|
1814
|
+
"name": "final_recipient",
|
|
1815
|
+
"type": "pubkey"
|
|
1816
|
+
},
|
|
1817
|
+
{
|
|
1818
|
+
"name": "final_token",
|
|
1819
|
+
"type": "pubkey"
|
|
1820
|
+
},
|
|
1821
|
+
{
|
|
1822
|
+
"name": "destination_dex",
|
|
1823
|
+
"type": "u32"
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"name": "account_creation_mode",
|
|
1827
|
+
"type": "u8"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "execution_mode",
|
|
1831
|
+
"type": "u8"
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"name": "action_data",
|
|
1835
|
+
"type": "bytes"
|
|
1836
|
+
}
|
|
1837
|
+
]
|
|
1838
|
+
}
|
|
1839
|
+
},
|
|
1840
|
+
{
|
|
1841
|
+
"name": "SponsoredDepositForBurn",
|
|
1842
|
+
"type": {
|
|
1843
|
+
"kind": "struct",
|
|
1844
|
+
"fields": [
|
|
1845
|
+
{
|
|
1846
|
+
"name": "quote_nonce",
|
|
1847
|
+
"type": "bytes"
|
|
1848
|
+
},
|
|
1849
|
+
{
|
|
1850
|
+
"name": "origin_sender",
|
|
1851
|
+
"type": "pubkey"
|
|
1852
|
+
},
|
|
1853
|
+
{
|
|
1854
|
+
"name": "final_recipient",
|
|
1855
|
+
"type": "pubkey"
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"name": "quote_deadline",
|
|
1859
|
+
"type": "u64"
|
|
1860
|
+
},
|
|
1861
|
+
{
|
|
1862
|
+
"name": "max_bps_to_sponsor",
|
|
1863
|
+
"type": "u64"
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
"name": "max_user_slippage_bps",
|
|
1867
|
+
"type": "u64"
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
"name": "final_token",
|
|
1871
|
+
"type": "pubkey"
|
|
1872
|
+
},
|
|
1873
|
+
{
|
|
1874
|
+
"name": "destination_dex",
|
|
1875
|
+
"type": "u32"
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"name": "account_creation_mode",
|
|
1879
|
+
"type": "u8"
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"name": "signature",
|
|
1883
|
+
"type": "bytes"
|
|
1884
|
+
}
|
|
1885
|
+
]
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
"name": "State",
|
|
1890
|
+
"type": {
|
|
1891
|
+
"kind": "struct",
|
|
1892
|
+
"fields": [
|
|
1893
|
+
{
|
|
1894
|
+
"name": "source_domain",
|
|
1895
|
+
"type": "u32"
|
|
1896
|
+
},
|
|
1897
|
+
{
|
|
1898
|
+
"name": "signer",
|
|
1899
|
+
"type": "pubkey"
|
|
1900
|
+
},
|
|
1901
|
+
{
|
|
1902
|
+
"name": "bump",
|
|
1903
|
+
"type": "u8"
|
|
1904
|
+
}
|
|
1905
|
+
]
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
"name": "UsedNonce",
|
|
1910
|
+
"type": {
|
|
1911
|
+
"kind": "struct",
|
|
1912
|
+
"fields": [
|
|
1913
|
+
{
|
|
1914
|
+
"name": "quote_deadline",
|
|
1915
|
+
"type": "u64"
|
|
1916
|
+
}
|
|
1917
|
+
]
|
|
1918
|
+
}
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"name": "UsedNonceAccountParams",
|
|
1922
|
+
"type": {
|
|
1923
|
+
"kind": "struct",
|
|
1924
|
+
"fields": [
|
|
1925
|
+
{
|
|
1926
|
+
"name": "nonce",
|
|
1927
|
+
"type": {
|
|
1928
|
+
"array": [
|
|
1929
|
+
"u8",
|
|
1930
|
+
32
|
|
1931
|
+
]
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
]
|
|
1935
|
+
}
|
|
1936
|
+
},
|
|
1937
|
+
{
|
|
1938
|
+
"name": "UsedNonceCloseInfo",
|
|
1939
|
+
"type": {
|
|
1940
|
+
"kind": "struct",
|
|
1941
|
+
"fields": [
|
|
1942
|
+
{
|
|
1943
|
+
"name": "can_close_after",
|
|
1944
|
+
"type": "u64"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "can_close_now",
|
|
1948
|
+
"type": "bool"
|
|
1949
|
+
}
|
|
1950
|
+
]
|
|
1951
|
+
}
|
|
1952
|
+
},
|
|
1953
|
+
{
|
|
1954
|
+
"name": "WithdrawRentFundParams",
|
|
1955
|
+
"type": {
|
|
1956
|
+
"kind": "struct",
|
|
1957
|
+
"fields": [
|
|
1958
|
+
{
|
|
1959
|
+
"name": "amount",
|
|
1960
|
+
"type": "u64"
|
|
1961
|
+
}
|
|
1962
|
+
]
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "WithdrawnRentFund",
|
|
1967
|
+
"type": {
|
|
1968
|
+
"kind": "struct",
|
|
1969
|
+
"fields": [
|
|
1970
|
+
{
|
|
1971
|
+
"name": "amount",
|
|
1972
|
+
"type": "u64"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "recipient",
|
|
1976
|
+
"type": "pubkey"
|
|
1977
|
+
}
|
|
1978
|
+
]
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
]
|
|
1982
|
+
}
|