@chainlink/ccip-sdk 1.3.0 → 1.4.0
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/dist/api/index.d.ts +17 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +17 -6
- package/dist/api/index.js.map +1 -1
- package/dist/aptos/index.d.ts +7 -1
- package/dist/aptos/index.d.ts.map +1 -1
- package/dist/aptos/index.js +20 -0
- package/dist/aptos/index.js.map +1 -1
- package/dist/chain.d.ts +64 -6
- package/dist/chain.d.ts.map +1 -1
- package/dist/chain.js +37 -2
- package/dist/chain.js.map +1 -1
- package/dist/errors/recovery.js +1 -1
- package/dist/errors/specialized.d.ts +17 -3
- package/dist/errors/specialized.d.ts.map +1 -1
- package/dist/errors/specialized.js +17 -3
- package/dist/errors/specialized.js.map +1 -1
- package/dist/evm/const.d.ts.map +1 -1
- package/dist/evm/const.js +3 -0
- package/dist/evm/const.js.map +1 -1
- package/dist/evm/errors.d.ts.map +1 -1
- package/dist/evm/errors.js +20 -5
- package/dist/evm/errors.js.map +1 -1
- package/dist/evm/index.d.ts +11 -2
- package/dist/evm/index.d.ts.map +1 -1
- package/dist/evm/index.js +65 -14
- package/dist/evm/index.js.map +1 -1
- package/dist/gas.d.ts +2 -1
- package/dist/gas.d.ts.map +1 -1
- package/dist/gas.js +2 -1
- package/dist/gas.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/offchain.d.ts +1 -0
- package/dist/offchain.d.ts.map +1 -1
- package/dist/offchain.js +1 -0
- package/dist/offchain.js.map +1 -1
- package/dist/requests.d.ts +6 -5
- package/dist/requests.d.ts.map +1 -1
- package/dist/requests.js +6 -5
- package/dist/requests.js.map +1 -1
- package/dist/solana/idl/1.6.0/FEE_QUOTER.d.ts +1719 -0
- package/dist/solana/idl/1.6.0/FEE_QUOTER.d.ts.map +1 -0
- package/dist/solana/idl/1.6.0/FEE_QUOTER.js +1719 -0
- package/dist/solana/idl/1.6.0/FEE_QUOTER.js.map +1 -0
- package/dist/solana/index.d.ts +17 -1
- package/dist/solana/index.d.ts.map +1 -1
- package/dist/solana/index.js +37 -9
- package/dist/solana/index.js.map +1 -1
- package/dist/solana/utils.d.ts +6 -3
- package/dist/solana/utils.d.ts.map +1 -1
- package/dist/solana/utils.js +17 -16
- package/dist/solana/utils.js.map +1 -1
- package/dist/sui/index.d.ts +1 -1
- package/dist/sui/index.d.ts.map +1 -1
- package/dist/sui/index.js +1 -1
- package/dist/sui/index.js.map +1 -1
- package/dist/ton/index.d.ts +11 -9
- package/dist/ton/index.d.ts.map +1 -1
- package/dist/ton/index.js +11 -9
- package/dist/ton/index.js.map +1 -1
- package/dist/ton/send.d.ts +7 -0
- package/dist/ton/send.d.ts.map +1 -1
- package/dist/ton/send.js +7 -0
- package/dist/ton/send.js.map +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.d.ts.map +1 -1
- package/dist/utils.d.ts +9 -2
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +16 -5
- package/dist/utils.js.map +1 -1
- package/package.json +7 -7
- package/src/api/index.ts +17 -6
- package/src/aptos/index.ts +31 -0
- package/src/chain.ts +67 -7
- package/src/errors/recovery.ts +1 -1
- package/src/errors/specialized.ts +17 -3
- package/src/evm/const.ts +3 -0
- package/src/evm/errors.ts +22 -5
- package/src/evm/index.ts +102 -13
- package/src/gas.ts +2 -1
- package/src/index.ts +1 -0
- package/src/offchain.ts +1 -0
- package/src/requests.ts +6 -5
- package/src/solana/idl/1.6.0/FEE_QUOTER.ts +3440 -0
- package/src/solana/index.ts +55 -10
- package/src/solana/utils.ts +29 -19
- package/src/sui/index.ts +1 -1
- package/src/ton/index.ts +11 -9
- package/src/ton/send.ts +7 -0
- package/src/types.ts +1 -1
- package/src/utils.ts +19 -6
|
@@ -0,0 +1,1719 @@
|
|
|
1
|
+
export type FeeQuoter = {
|
|
2
|
+
version: '1.6.1';
|
|
3
|
+
name: 'fee_quoter';
|
|
4
|
+
instructions: [
|
|
5
|
+
{
|
|
6
|
+
name: 'initialize';
|
|
7
|
+
docs: [
|
|
8
|
+
'Initializes the Fee Quoter.',
|
|
9
|
+
'',
|
|
10
|
+
'The initialization is responsibility of Admin, nothing more than calling this method should be done first.',
|
|
11
|
+
'',
|
|
12
|
+
'# Arguments',
|
|
13
|
+
'',
|
|
14
|
+
'* `ctx` - The context containing the accounts required for initialization.',
|
|
15
|
+
'* `max_fee_juels_per_msg` - The maximum fee in juels that can be charged per message.',
|
|
16
|
+
'* `onramp` - The public key of the onramp.',
|
|
17
|
+
'',
|
|
18
|
+
'The function also uses the link_token_mint account from the context.'
|
|
19
|
+
];
|
|
20
|
+
accounts: [
|
|
21
|
+
{
|
|
22
|
+
name: 'config';
|
|
23
|
+
isMut: true;
|
|
24
|
+
isSigner: false;
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'linkTokenMint';
|
|
28
|
+
isMut: false;
|
|
29
|
+
isSigner: false;
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'authority';
|
|
33
|
+
isMut: true;
|
|
34
|
+
isSigner: true;
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'systemProgram';
|
|
38
|
+
isMut: false;
|
|
39
|
+
isSigner: false;
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'program';
|
|
43
|
+
isMut: false;
|
|
44
|
+
isSigner: false;
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'programData';
|
|
48
|
+
isMut: false;
|
|
49
|
+
isSigner: false;
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
args: [
|
|
53
|
+
{
|
|
54
|
+
name: 'maxFeeJuelsPerMsg';
|
|
55
|
+
type: 'u128';
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: 'onramp';
|
|
59
|
+
type: 'publicKey';
|
|
60
|
+
}
|
|
61
|
+
];
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: 'typeVersion';
|
|
65
|
+
docs: [
|
|
66
|
+
'Returns the program type (name) and version.',
|
|
67
|
+
'Used by offchain code to easily determine which program & version is being interacted with.',
|
|
68
|
+
'',
|
|
69
|
+
'# Arguments',
|
|
70
|
+
'* `ctx` - The context'
|
|
71
|
+
];
|
|
72
|
+
accounts: [
|
|
73
|
+
{
|
|
74
|
+
name: 'clock';
|
|
75
|
+
isMut: false;
|
|
76
|
+
isSigner: false;
|
|
77
|
+
}
|
|
78
|
+
];
|
|
79
|
+
args: [];
|
|
80
|
+
returns: 'string';
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'transferOwnership';
|
|
84
|
+
docs: [
|
|
85
|
+
'Transfers the ownership of the fee quoter to a new proposed owner.',
|
|
86
|
+
'',
|
|
87
|
+
'Shared func signature with other programs',
|
|
88
|
+
'',
|
|
89
|
+
'# Arguments',
|
|
90
|
+
'',
|
|
91
|
+
'* `ctx` - The context containing the accounts required for the transfer.',
|
|
92
|
+
'* `proposed_owner` - The public key of the new proposed owner.'
|
|
93
|
+
];
|
|
94
|
+
accounts: [
|
|
95
|
+
{
|
|
96
|
+
name: 'config';
|
|
97
|
+
isMut: true;
|
|
98
|
+
isSigner: false;
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: 'authority';
|
|
102
|
+
isMut: false;
|
|
103
|
+
isSigner: true;
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
args: [
|
|
107
|
+
{
|
|
108
|
+
name: 'newOwner';
|
|
109
|
+
type: 'publicKey';
|
|
110
|
+
}
|
|
111
|
+
];
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: 'acceptOwnership';
|
|
115
|
+
docs: [
|
|
116
|
+
'Accepts the ownership of the fee quoter by the proposed owner.',
|
|
117
|
+
'',
|
|
118
|
+
'Shared func signature with other programs',
|
|
119
|
+
'',
|
|
120
|
+
'# Arguments',
|
|
121
|
+
'',
|
|
122
|
+
'* `ctx` - The context containing the accounts required for accepting ownership.',
|
|
123
|
+
'The new owner must be a signer of the transaction.'
|
|
124
|
+
];
|
|
125
|
+
accounts: [
|
|
126
|
+
{
|
|
127
|
+
name: 'config';
|
|
128
|
+
isMut: true;
|
|
129
|
+
isSigner: false;
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
name: 'authority';
|
|
133
|
+
isMut: false;
|
|
134
|
+
isSigner: true;
|
|
135
|
+
}
|
|
136
|
+
];
|
|
137
|
+
args: [];
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
name: 'setDefaultCodeVersion';
|
|
141
|
+
docs: [
|
|
142
|
+
'Sets the default code version to be used. This is then used by the slim routing layer to determine',
|
|
143
|
+
'which version of the versioned business logic module (`instructions`) to use. Only the admin may set this.',
|
|
144
|
+
'',
|
|
145
|
+
'Shared func signature with other programs',
|
|
146
|
+
'',
|
|
147
|
+
'# Arguments',
|
|
148
|
+
'',
|
|
149
|
+
'* `ctx` - The context containing the accounts required for updating the configuration.',
|
|
150
|
+
'* `code_version` - The new code version to be set as default.'
|
|
151
|
+
];
|
|
152
|
+
accounts: [
|
|
153
|
+
{
|
|
154
|
+
name: 'config';
|
|
155
|
+
isMut: true;
|
|
156
|
+
isSigner: false;
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: 'authority';
|
|
160
|
+
isMut: false;
|
|
161
|
+
isSigner: true;
|
|
162
|
+
}
|
|
163
|
+
];
|
|
164
|
+
args: [
|
|
165
|
+
{
|
|
166
|
+
name: 'codeVersion';
|
|
167
|
+
type: {
|
|
168
|
+
defined: 'CodeVersion';
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
];
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'setMaxFeeJuelsPerMsg';
|
|
175
|
+
docs: [
|
|
176
|
+
'Sets the max_fee_juels_per_msg, which is an upper bound on how much can be billed for any message.',
|
|
177
|
+
'(1 juels = 1e-18 LINK)',
|
|
178
|
+
'',
|
|
179
|
+
'Only the admin may set this.',
|
|
180
|
+
'',
|
|
181
|
+
'# Arguments',
|
|
182
|
+
'',
|
|
183
|
+
'* `ctx` - The context containing the accounts required for updating the configuration.',
|
|
184
|
+
'* `max_fee_juels_per_msg` - The new value for the max_feel_juels_per_msg config.'
|
|
185
|
+
];
|
|
186
|
+
accounts: [
|
|
187
|
+
{
|
|
188
|
+
name: 'config';
|
|
189
|
+
isMut: true;
|
|
190
|
+
isSigner: false;
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
name: 'authority';
|
|
194
|
+
isMut: false;
|
|
195
|
+
isSigner: true;
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
args: [
|
|
199
|
+
{
|
|
200
|
+
name: 'maxFeeJuelsPerMsg';
|
|
201
|
+
type: 'u128';
|
|
202
|
+
}
|
|
203
|
+
];
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
name: 'setLinkTokenMint';
|
|
207
|
+
docs: [
|
|
208
|
+
'Sets the link_token_mint and updates the link_token_local_decimals.',
|
|
209
|
+
'',
|
|
210
|
+
'Only the admin may set this.',
|
|
211
|
+
'',
|
|
212
|
+
'# Arguments',
|
|
213
|
+
'',
|
|
214
|
+
'* `ctx` - The context containing the accounts required for updating the configuration.'
|
|
215
|
+
];
|
|
216
|
+
accounts: [
|
|
217
|
+
{
|
|
218
|
+
name: 'config';
|
|
219
|
+
isMut: true;
|
|
220
|
+
isSigner: false;
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
name: 'linkTokenMint';
|
|
224
|
+
isMut: false;
|
|
225
|
+
isSigner: false;
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
name: 'authority';
|
|
229
|
+
isMut: false;
|
|
230
|
+
isSigner: true;
|
|
231
|
+
}
|
|
232
|
+
];
|
|
233
|
+
args: [];
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
name: 'addBillingTokenConfig';
|
|
237
|
+
docs: [
|
|
238
|
+
'Adds a billing token configuration.',
|
|
239
|
+
'Only CCIP Admin can add a billing token configuration.',
|
|
240
|
+
'',
|
|
241
|
+
'# Arguments',
|
|
242
|
+
'',
|
|
243
|
+
'* `ctx` - The context containing the accounts required for adding the billing token configuration.',
|
|
244
|
+
'* `config` - The billing token configuration to be added.'
|
|
245
|
+
];
|
|
246
|
+
accounts: [
|
|
247
|
+
{
|
|
248
|
+
name: 'config';
|
|
249
|
+
isMut: false;
|
|
250
|
+
isSigner: false;
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: 'billingTokenConfig';
|
|
254
|
+
isMut: true;
|
|
255
|
+
isSigner: false;
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
name: 'tokenProgram';
|
|
259
|
+
isMut: false;
|
|
260
|
+
isSigner: false;
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
name: 'feeTokenMint';
|
|
264
|
+
isMut: false;
|
|
265
|
+
isSigner: false;
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: 'feeTokenReceiver';
|
|
269
|
+
isMut: true;
|
|
270
|
+
isSigner: false;
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
name: 'authority';
|
|
274
|
+
isMut: true;
|
|
275
|
+
isSigner: true;
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: 'feeBillingSigner';
|
|
279
|
+
isMut: false;
|
|
280
|
+
isSigner: false;
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
name: 'associatedTokenProgram';
|
|
284
|
+
isMut: false;
|
|
285
|
+
isSigner: false;
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: 'systemProgram';
|
|
289
|
+
isMut: false;
|
|
290
|
+
isSigner: false;
|
|
291
|
+
}
|
|
292
|
+
];
|
|
293
|
+
args: [
|
|
294
|
+
{
|
|
295
|
+
name: 'config';
|
|
296
|
+
type: {
|
|
297
|
+
defined: 'BillingTokenConfig';
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
];
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: 'updateBillingTokenConfig';
|
|
304
|
+
docs: [
|
|
305
|
+
'Updates the billing token configuration.',
|
|
306
|
+
'Only CCIP Admin can update a billing token configuration.',
|
|
307
|
+
'',
|
|
308
|
+
'# Arguments',
|
|
309
|
+
'',
|
|
310
|
+
'* `ctx` - The context containing the accounts required for updating the billing token configuration.',
|
|
311
|
+
'* `config` - The new billing token configuration.'
|
|
312
|
+
];
|
|
313
|
+
accounts: [
|
|
314
|
+
{
|
|
315
|
+
name: 'config';
|
|
316
|
+
isMut: false;
|
|
317
|
+
isSigner: false;
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
name: 'billingTokenConfig';
|
|
321
|
+
isMut: true;
|
|
322
|
+
isSigner: false;
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
name: 'authority';
|
|
326
|
+
isMut: false;
|
|
327
|
+
isSigner: true;
|
|
328
|
+
}
|
|
329
|
+
];
|
|
330
|
+
args: [
|
|
331
|
+
{
|
|
332
|
+
name: 'config';
|
|
333
|
+
type: {
|
|
334
|
+
defined: 'BillingTokenConfig';
|
|
335
|
+
};
|
|
336
|
+
}
|
|
337
|
+
];
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
name: 'addDestChain';
|
|
341
|
+
docs: [
|
|
342
|
+
'Adds a new destination chain selector to the fee quoter.',
|
|
343
|
+
'',
|
|
344
|
+
'The Admin needs to add any new chain supported.',
|
|
345
|
+
"When adding a new chain, the Admin needs to specify if it's enabled or not.",
|
|
346
|
+
'',
|
|
347
|
+
'# Arguments',
|
|
348
|
+
'',
|
|
349
|
+
'* `ctx` - The context containing the accounts required for adding the chain selector.',
|
|
350
|
+
'* `chain_selector` - The new chain selector to be added.',
|
|
351
|
+
'* `dest_chain_config` - The configuration for the chain as destination.'
|
|
352
|
+
];
|
|
353
|
+
accounts: [
|
|
354
|
+
{
|
|
355
|
+
name: 'config';
|
|
356
|
+
isMut: false;
|
|
357
|
+
isSigner: false;
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
name: 'destChain';
|
|
361
|
+
isMut: true;
|
|
362
|
+
isSigner: false;
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: 'authority';
|
|
366
|
+
isMut: true;
|
|
367
|
+
isSigner: true;
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: 'systemProgram';
|
|
371
|
+
isMut: false;
|
|
372
|
+
isSigner: false;
|
|
373
|
+
}
|
|
374
|
+
];
|
|
375
|
+
args: [
|
|
376
|
+
{
|
|
377
|
+
name: 'chainSelector';
|
|
378
|
+
type: 'u64';
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
name: 'destChainConfig';
|
|
382
|
+
type: {
|
|
383
|
+
defined: 'DestChainConfig';
|
|
384
|
+
};
|
|
385
|
+
}
|
|
386
|
+
];
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
name: 'disableDestChain';
|
|
390
|
+
docs: [
|
|
391
|
+
'Disables the destination chain selector.',
|
|
392
|
+
'',
|
|
393
|
+
'The Admin is the only one able to disable the chain selector as destination. This method is thought of as an emergency kill-switch.',
|
|
394
|
+
'',
|
|
395
|
+
'# Arguments',
|
|
396
|
+
'',
|
|
397
|
+
'* `ctx` - The context containing the accounts required for disabling the chain selector.',
|
|
398
|
+
'* `chain_selector` - The destination chain selector to be disabled.'
|
|
399
|
+
];
|
|
400
|
+
accounts: [
|
|
401
|
+
{
|
|
402
|
+
name: 'config';
|
|
403
|
+
isMut: false;
|
|
404
|
+
isSigner: false;
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
name: 'destChain';
|
|
408
|
+
isMut: true;
|
|
409
|
+
isSigner: false;
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: 'authority';
|
|
413
|
+
isMut: true;
|
|
414
|
+
isSigner: true;
|
|
415
|
+
}
|
|
416
|
+
];
|
|
417
|
+
args: [
|
|
418
|
+
{
|
|
419
|
+
name: 'chainSelector';
|
|
420
|
+
type: 'u64';
|
|
421
|
+
}
|
|
422
|
+
];
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
name: 'updateDestChainConfig';
|
|
426
|
+
docs: [
|
|
427
|
+
'Updates the configuration of the destination chain selector.',
|
|
428
|
+
'',
|
|
429
|
+
'The Admin is the only one able to update the destination chain config.',
|
|
430
|
+
'',
|
|
431
|
+
'# Arguments',
|
|
432
|
+
'',
|
|
433
|
+
'* `ctx` - The context containing the accounts required for updating the chain selector.',
|
|
434
|
+
'* `chain_selector` - The destination chain selector to be updated.',
|
|
435
|
+
'* `dest_chain_config` - The new configuration for the destination chain.'
|
|
436
|
+
];
|
|
437
|
+
accounts: [
|
|
438
|
+
{
|
|
439
|
+
name: 'config';
|
|
440
|
+
isMut: false;
|
|
441
|
+
isSigner: false;
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
name: 'destChain';
|
|
445
|
+
isMut: true;
|
|
446
|
+
isSigner: false;
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
name: 'authority';
|
|
450
|
+
isMut: true;
|
|
451
|
+
isSigner: true;
|
|
452
|
+
}
|
|
453
|
+
];
|
|
454
|
+
args: [
|
|
455
|
+
{
|
|
456
|
+
name: 'chainSelector';
|
|
457
|
+
type: 'u64';
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
name: 'destChainConfig';
|
|
461
|
+
type: {
|
|
462
|
+
defined: 'DestChainConfig';
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
];
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
name: 'setTokenTransferFeeConfig';
|
|
469
|
+
docs: [
|
|
470
|
+
"Sets the token transfer fee configuration for a particular token when it's transferred to a particular dest chain.",
|
|
471
|
+
"It is an upsert, initializing the per-chain-per-token config account if it doesn't exist",
|
|
472
|
+
'and overwriting it if it does.',
|
|
473
|
+
'',
|
|
474
|
+
'Only the Admin can perform this operation.',
|
|
475
|
+
'',
|
|
476
|
+
'# Arguments',
|
|
477
|
+
'',
|
|
478
|
+
'* `ctx` - The context containing the accounts required for setting the token billing configuration.',
|
|
479
|
+
'* `chain_selector` - The chain selector.',
|
|
480
|
+
'* `mint` - The public key of the token mint.',
|
|
481
|
+
'* `cfg` - The token transfer fee configuration.'
|
|
482
|
+
];
|
|
483
|
+
accounts: [
|
|
484
|
+
{
|
|
485
|
+
name: 'config';
|
|
486
|
+
isMut: false;
|
|
487
|
+
isSigner: false;
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
name: 'perChainPerTokenConfig';
|
|
491
|
+
isMut: true;
|
|
492
|
+
isSigner: false;
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
name: 'authority';
|
|
496
|
+
isMut: true;
|
|
497
|
+
isSigner: true;
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: 'systemProgram';
|
|
501
|
+
isMut: false;
|
|
502
|
+
isSigner: false;
|
|
503
|
+
}
|
|
504
|
+
];
|
|
505
|
+
args: [
|
|
506
|
+
{
|
|
507
|
+
name: 'chainSelector';
|
|
508
|
+
type: 'u64';
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
name: 'mint';
|
|
512
|
+
type: 'publicKey';
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
name: 'cfg';
|
|
516
|
+
type: {
|
|
517
|
+
defined: 'TokenTransferFeeConfig';
|
|
518
|
+
};
|
|
519
|
+
}
|
|
520
|
+
];
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: 'addPriceUpdater';
|
|
524
|
+
docs: [
|
|
525
|
+
'Add a price updater address to the list of allowed price updaters.',
|
|
526
|
+
'On price updates, the fee quoter will check the that caller is allowed.',
|
|
527
|
+
'',
|
|
528
|
+
'# Arguments',
|
|
529
|
+
'',
|
|
530
|
+
'* `ctx` - The context containing the accounts required for this operation.',
|
|
531
|
+
'* `price_updater` - The price updater address.'
|
|
532
|
+
];
|
|
533
|
+
accounts: [
|
|
534
|
+
{
|
|
535
|
+
name: 'allowedPriceUpdater';
|
|
536
|
+
isMut: true;
|
|
537
|
+
isSigner: false;
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
name: 'config';
|
|
541
|
+
isMut: false;
|
|
542
|
+
isSigner: false;
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
name: 'authority';
|
|
546
|
+
isMut: true;
|
|
547
|
+
isSigner: true;
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
name: 'systemProgram';
|
|
551
|
+
isMut: false;
|
|
552
|
+
isSigner: false;
|
|
553
|
+
}
|
|
554
|
+
];
|
|
555
|
+
args: [
|
|
556
|
+
{
|
|
557
|
+
name: 'priceUpdater';
|
|
558
|
+
type: 'publicKey';
|
|
559
|
+
}
|
|
560
|
+
];
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: 'removePriceUpdater';
|
|
564
|
+
docs: [
|
|
565
|
+
'Remove a price updater address from the list of allowed price updaters.',
|
|
566
|
+
'',
|
|
567
|
+
'# Arguments',
|
|
568
|
+
'',
|
|
569
|
+
'* `ctx` - The context containing the accounts required for this operation.',
|
|
570
|
+
'* `price_updater` - The price updater address.'
|
|
571
|
+
];
|
|
572
|
+
accounts: [
|
|
573
|
+
{
|
|
574
|
+
name: 'allowedPriceUpdater';
|
|
575
|
+
isMut: true;
|
|
576
|
+
isSigner: false;
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
name: 'config';
|
|
580
|
+
isMut: false;
|
|
581
|
+
isSigner: false;
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: 'authority';
|
|
585
|
+
isMut: true;
|
|
586
|
+
isSigner: true;
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
name: 'systemProgram';
|
|
590
|
+
isMut: false;
|
|
591
|
+
isSigner: false;
|
|
592
|
+
}
|
|
593
|
+
];
|
|
594
|
+
args: [
|
|
595
|
+
{
|
|
596
|
+
name: 'priceUpdater';
|
|
597
|
+
type: 'publicKey';
|
|
598
|
+
}
|
|
599
|
+
];
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
name: 'getFee';
|
|
603
|
+
docs: [
|
|
604
|
+
'Calculates the fee for sending a message to the destination chain.',
|
|
605
|
+
'',
|
|
606
|
+
'# Arguments',
|
|
607
|
+
'',
|
|
608
|
+
'* `ctx` - The context containing the accounts required for the fee calculation.',
|
|
609
|
+
'* `dest_chain_selector` - The chain selector for the destination chain.',
|
|
610
|
+
'* `message` - The message to be sent.',
|
|
611
|
+
'',
|
|
612
|
+
'# Additional accounts',
|
|
613
|
+
'',
|
|
614
|
+
'In addition to the fixed amount of accounts defined in the `GetFee` context,',
|
|
615
|
+
'the following accounts must be provided:',
|
|
616
|
+
'',
|
|
617
|
+
'* First, the billing token config accounts for each token sent with the message, sequentially.',
|
|
618
|
+
'For each token with no billing config account (i.e. tokens that cannot be possibly used as fee',
|
|
619
|
+
'tokens, which also have no BPS fees enabled) the ZERO address must be provided instead.',
|
|
620
|
+
'* Then, the per chain / per token config of every token sent with the message, sequentially',
|
|
621
|
+
'in the same order.',
|
|
622
|
+
'',
|
|
623
|
+
'# Returns',
|
|
624
|
+
'',
|
|
625
|
+
'GetFeeResult struct with:',
|
|
626
|
+
'- the fee token mint address,',
|
|
627
|
+
'- the fee amount of said token,',
|
|
628
|
+
'- the fee value in juels,',
|
|
629
|
+
'- additional data required when performing the cross-chain transfer of tokens in that message',
|
|
630
|
+
'- deserialized and processed extra args'
|
|
631
|
+
];
|
|
632
|
+
accounts: [
|
|
633
|
+
{
|
|
634
|
+
name: 'config';
|
|
635
|
+
isMut: false;
|
|
636
|
+
isSigner: false;
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
name: 'destChain';
|
|
640
|
+
isMut: false;
|
|
641
|
+
isSigner: false;
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
name: 'billingTokenConfig';
|
|
645
|
+
isMut: false;
|
|
646
|
+
isSigner: false;
|
|
647
|
+
},
|
|
648
|
+
{
|
|
649
|
+
name: 'linkTokenConfig';
|
|
650
|
+
isMut: false;
|
|
651
|
+
isSigner: false;
|
|
652
|
+
}
|
|
653
|
+
];
|
|
654
|
+
args: [
|
|
655
|
+
{
|
|
656
|
+
name: 'destChainSelector';
|
|
657
|
+
type: 'u64';
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
name: 'message';
|
|
661
|
+
type: {
|
|
662
|
+
defined: 'SVM2AnyMessage';
|
|
663
|
+
};
|
|
664
|
+
}
|
|
665
|
+
];
|
|
666
|
+
returns: {
|
|
667
|
+
defined: 'GetFeeResult';
|
|
668
|
+
};
|
|
669
|
+
},
|
|
670
|
+
{
|
|
671
|
+
name: 'updatePrices';
|
|
672
|
+
docs: [
|
|
673
|
+
'Updates prices for tokens and gas. This method may only be called by an allowed price updater.',
|
|
674
|
+
'',
|
|
675
|
+
'# Arguments',
|
|
676
|
+
'',
|
|
677
|
+
'* `ctx` - The context containing the accounts always required for the price updates',
|
|
678
|
+
'* `token_updates` - Vector of token price updates',
|
|
679
|
+
'* `gas_updates` - Vector of gas price updates',
|
|
680
|
+
'',
|
|
681
|
+
'# Additional accounts',
|
|
682
|
+
'',
|
|
683
|
+
'In addition to the fixed amount of accounts defined in the `UpdatePrices` context,',
|
|
684
|
+
'the following accounts must be provided:',
|
|
685
|
+
'',
|
|
686
|
+
'* First, the billing token config accounts for each token whose price is being updated, in the same order',
|
|
687
|
+
'as the token_updates vector.',
|
|
688
|
+
'* Then, the dest chain accounts of every chain whose gas price is being updated, in the same order as the',
|
|
689
|
+
'gas_updates vector.'
|
|
690
|
+
];
|
|
691
|
+
accounts: [
|
|
692
|
+
{
|
|
693
|
+
name: 'authority';
|
|
694
|
+
isMut: false;
|
|
695
|
+
isSigner: true;
|
|
696
|
+
},
|
|
697
|
+
{
|
|
698
|
+
name: 'allowedPriceUpdater';
|
|
699
|
+
isMut: false;
|
|
700
|
+
isSigner: false;
|
|
701
|
+
docs: [
|
|
702
|
+
'was added by the owner as an allowed price updater. The constraints enforced guarantee that it is the right PDA',
|
|
703
|
+
'and that it was initialized.'
|
|
704
|
+
];
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
name: 'config';
|
|
708
|
+
isMut: false;
|
|
709
|
+
isSigner: false;
|
|
710
|
+
}
|
|
711
|
+
];
|
|
712
|
+
args: [
|
|
713
|
+
{
|
|
714
|
+
name: 'tokenUpdates';
|
|
715
|
+
type: {
|
|
716
|
+
vec: {
|
|
717
|
+
defined: 'TokenPriceUpdate';
|
|
718
|
+
};
|
|
719
|
+
};
|
|
720
|
+
},
|
|
721
|
+
{
|
|
722
|
+
name: 'gasUpdates';
|
|
723
|
+
type: {
|
|
724
|
+
vec: {
|
|
725
|
+
defined: 'GasPriceUpdate';
|
|
726
|
+
};
|
|
727
|
+
};
|
|
728
|
+
}
|
|
729
|
+
];
|
|
730
|
+
}
|
|
731
|
+
];
|
|
732
|
+
accounts: [
|
|
733
|
+
{
|
|
734
|
+
name: 'config';
|
|
735
|
+
type: {
|
|
736
|
+
kind: 'struct';
|
|
737
|
+
fields: [
|
|
738
|
+
{
|
|
739
|
+
name: 'version';
|
|
740
|
+
type: 'u8';
|
|
741
|
+
},
|
|
742
|
+
{
|
|
743
|
+
name: 'owner';
|
|
744
|
+
type: 'publicKey';
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: 'proposedOwner';
|
|
748
|
+
type: 'publicKey';
|
|
749
|
+
},
|
|
750
|
+
{
|
|
751
|
+
name: 'maxFeeJuelsPerMsg';
|
|
752
|
+
type: 'u128';
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
name: 'linkTokenMint';
|
|
756
|
+
type: 'publicKey';
|
|
757
|
+
},
|
|
758
|
+
{
|
|
759
|
+
name: 'linkTokenLocalDecimals';
|
|
760
|
+
type: 'u8';
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
name: 'onramp';
|
|
764
|
+
type: 'publicKey';
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
name: 'defaultCodeVersion';
|
|
768
|
+
type: {
|
|
769
|
+
defined: 'CodeVersion';
|
|
770
|
+
};
|
|
771
|
+
}
|
|
772
|
+
];
|
|
773
|
+
};
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
name: 'destChain';
|
|
777
|
+
type: {
|
|
778
|
+
kind: 'struct';
|
|
779
|
+
fields: [
|
|
780
|
+
{
|
|
781
|
+
name: 'version';
|
|
782
|
+
type: 'u8';
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
name: 'chainSelector';
|
|
786
|
+
type: 'u64';
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
name: 'state';
|
|
790
|
+
type: {
|
|
791
|
+
defined: 'DestChainState';
|
|
792
|
+
};
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
name: 'config';
|
|
796
|
+
type: {
|
|
797
|
+
defined: 'DestChainConfig';
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
];
|
|
801
|
+
};
|
|
802
|
+
},
|
|
803
|
+
{
|
|
804
|
+
name: 'billingTokenConfigWrapper';
|
|
805
|
+
type: {
|
|
806
|
+
kind: 'struct';
|
|
807
|
+
fields: [
|
|
808
|
+
{
|
|
809
|
+
name: 'version';
|
|
810
|
+
type: 'u8';
|
|
811
|
+
},
|
|
812
|
+
{
|
|
813
|
+
name: 'config';
|
|
814
|
+
type: {
|
|
815
|
+
defined: 'BillingTokenConfig';
|
|
816
|
+
};
|
|
817
|
+
}
|
|
818
|
+
];
|
|
819
|
+
};
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
name: 'perChainPerTokenConfig';
|
|
823
|
+
type: {
|
|
824
|
+
kind: 'struct';
|
|
825
|
+
fields: [
|
|
826
|
+
{
|
|
827
|
+
name: 'version';
|
|
828
|
+
type: 'u8';
|
|
829
|
+
},
|
|
830
|
+
{
|
|
831
|
+
name: 'chainSelector';
|
|
832
|
+
type: 'u64';
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
name: 'mint';
|
|
836
|
+
type: 'publicKey';
|
|
837
|
+
},
|
|
838
|
+
{
|
|
839
|
+
name: 'tokenTransferConfig';
|
|
840
|
+
type: {
|
|
841
|
+
defined: 'TokenTransferFeeConfig';
|
|
842
|
+
};
|
|
843
|
+
}
|
|
844
|
+
];
|
|
845
|
+
};
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
name: 'allowedPriceUpdater';
|
|
849
|
+
type: {
|
|
850
|
+
kind: 'struct';
|
|
851
|
+
fields: [];
|
|
852
|
+
};
|
|
853
|
+
}
|
|
854
|
+
];
|
|
855
|
+
types: [
|
|
856
|
+
{
|
|
857
|
+
name: 'TokenPriceUpdate';
|
|
858
|
+
type: {
|
|
859
|
+
kind: 'struct';
|
|
860
|
+
fields: [
|
|
861
|
+
{
|
|
862
|
+
name: 'sourceToken';
|
|
863
|
+
type: 'publicKey';
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
name: 'usdPerToken';
|
|
867
|
+
type: {
|
|
868
|
+
array: ['u8', 28];
|
|
869
|
+
};
|
|
870
|
+
}
|
|
871
|
+
];
|
|
872
|
+
};
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
name: 'GasPriceUpdate';
|
|
876
|
+
docs: ['Gas price for a given chain in USD; its value may contain tightly packed fields.'];
|
|
877
|
+
type: {
|
|
878
|
+
kind: 'struct';
|
|
879
|
+
fields: [
|
|
880
|
+
{
|
|
881
|
+
name: 'destChainSelector';
|
|
882
|
+
type: 'u64';
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
name: 'usdPerUnitGas';
|
|
886
|
+
type: {
|
|
887
|
+
array: ['u8', 28];
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
];
|
|
891
|
+
};
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
name: 'GenericExtraArgsV2';
|
|
895
|
+
type: {
|
|
896
|
+
kind: 'struct';
|
|
897
|
+
fields: [
|
|
898
|
+
{
|
|
899
|
+
name: 'gasLimit';
|
|
900
|
+
type: 'u128';
|
|
901
|
+
},
|
|
902
|
+
{
|
|
903
|
+
name: 'allowOutOfOrderExecution';
|
|
904
|
+
type: 'bool';
|
|
905
|
+
}
|
|
906
|
+
];
|
|
907
|
+
};
|
|
908
|
+
},
|
|
909
|
+
{
|
|
910
|
+
name: 'SVMExtraArgsV1';
|
|
911
|
+
type: {
|
|
912
|
+
kind: 'struct';
|
|
913
|
+
fields: [
|
|
914
|
+
{
|
|
915
|
+
name: 'computeUnits';
|
|
916
|
+
type: 'u32';
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
name: 'accountIsWritableBitmap';
|
|
920
|
+
type: 'u64';
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: 'allowOutOfOrderExecution';
|
|
924
|
+
type: 'bool';
|
|
925
|
+
},
|
|
926
|
+
{
|
|
927
|
+
name: 'tokenReceiver';
|
|
928
|
+
type: {
|
|
929
|
+
array: ['u8', 32];
|
|
930
|
+
};
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
name: 'accounts';
|
|
934
|
+
type: {
|
|
935
|
+
vec: {
|
|
936
|
+
array: ['u8', 32];
|
|
937
|
+
};
|
|
938
|
+
};
|
|
939
|
+
}
|
|
940
|
+
];
|
|
941
|
+
};
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
name: 'SVM2AnyMessage';
|
|
945
|
+
type: {
|
|
946
|
+
kind: 'struct';
|
|
947
|
+
fields: [
|
|
948
|
+
{
|
|
949
|
+
name: 'receiver';
|
|
950
|
+
type: 'bytes';
|
|
951
|
+
},
|
|
952
|
+
{
|
|
953
|
+
name: 'data';
|
|
954
|
+
type: 'bytes';
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
name: 'tokenAmounts';
|
|
958
|
+
type: {
|
|
959
|
+
vec: {
|
|
960
|
+
defined: 'SVMTokenAmount';
|
|
961
|
+
};
|
|
962
|
+
};
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
name: 'feeToken';
|
|
966
|
+
type: 'publicKey';
|
|
967
|
+
},
|
|
968
|
+
{
|
|
969
|
+
name: 'extraArgs';
|
|
970
|
+
type: 'bytes';
|
|
971
|
+
}
|
|
972
|
+
];
|
|
973
|
+
};
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
name: 'SVMTokenAmount';
|
|
977
|
+
type: {
|
|
978
|
+
kind: 'struct';
|
|
979
|
+
fields: [
|
|
980
|
+
{
|
|
981
|
+
name: 'token';
|
|
982
|
+
type: 'publicKey';
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
name: 'amount';
|
|
986
|
+
type: 'u64';
|
|
987
|
+
}
|
|
988
|
+
];
|
|
989
|
+
};
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
name: 'TokenTransferAdditionalData';
|
|
993
|
+
type: {
|
|
994
|
+
kind: 'struct';
|
|
995
|
+
fields: [
|
|
996
|
+
{
|
|
997
|
+
name: 'destBytesOverhead';
|
|
998
|
+
type: 'u32';
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
name: 'destGasOverhead';
|
|
1002
|
+
type: 'u32';
|
|
1003
|
+
}
|
|
1004
|
+
];
|
|
1005
|
+
};
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
name: 'GetFeeResult';
|
|
1009
|
+
type: {
|
|
1010
|
+
kind: 'struct';
|
|
1011
|
+
fields: [
|
|
1012
|
+
{
|
|
1013
|
+
name: 'token';
|
|
1014
|
+
type: 'publicKey';
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: 'amount';
|
|
1018
|
+
type: 'u64';
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
name: 'juels';
|
|
1022
|
+
type: 'u128';
|
|
1023
|
+
},
|
|
1024
|
+
{
|
|
1025
|
+
name: 'tokenTransferAdditionalData';
|
|
1026
|
+
type: {
|
|
1027
|
+
vec: {
|
|
1028
|
+
defined: 'TokenTransferAdditionalData';
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
},
|
|
1032
|
+
{
|
|
1033
|
+
name: 'processedExtraArgs';
|
|
1034
|
+
type: {
|
|
1035
|
+
defined: 'ProcessedExtraArgs';
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
];
|
|
1039
|
+
};
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
name: 'ProcessedExtraArgs';
|
|
1043
|
+
type: {
|
|
1044
|
+
kind: 'struct';
|
|
1045
|
+
fields: [
|
|
1046
|
+
{
|
|
1047
|
+
name: 'bytes';
|
|
1048
|
+
type: 'bytes';
|
|
1049
|
+
},
|
|
1050
|
+
{
|
|
1051
|
+
name: 'gasLimit';
|
|
1052
|
+
type: 'u128';
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
name: 'allowOutOfOrderExecution';
|
|
1056
|
+
type: 'bool';
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
name: 'tokenReceiver';
|
|
1060
|
+
type: {
|
|
1061
|
+
option: 'bytes';
|
|
1062
|
+
};
|
|
1063
|
+
}
|
|
1064
|
+
];
|
|
1065
|
+
};
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
name: 'DestChainConfig';
|
|
1069
|
+
type: {
|
|
1070
|
+
kind: 'struct';
|
|
1071
|
+
fields: [
|
|
1072
|
+
{
|
|
1073
|
+
name: 'isEnabled';
|
|
1074
|
+
type: 'bool';
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
name: 'laneCodeVersion';
|
|
1078
|
+
type: {
|
|
1079
|
+
defined: 'CodeVersion';
|
|
1080
|
+
};
|
|
1081
|
+
},
|
|
1082
|
+
{
|
|
1083
|
+
name: 'maxNumberOfTokensPerMsg';
|
|
1084
|
+
type: 'u16';
|
|
1085
|
+
},
|
|
1086
|
+
{
|
|
1087
|
+
name: 'maxDataBytes';
|
|
1088
|
+
type: 'u32';
|
|
1089
|
+
},
|
|
1090
|
+
{
|
|
1091
|
+
name: 'maxPerMsgGasLimit';
|
|
1092
|
+
type: 'u32';
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
name: 'destGasOverhead';
|
|
1096
|
+
type: 'u32';
|
|
1097
|
+
},
|
|
1098
|
+
{
|
|
1099
|
+
name: 'destGasPerPayloadByteBase';
|
|
1100
|
+
type: 'u32';
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: 'destGasPerPayloadByteHigh';
|
|
1104
|
+
type: 'u32';
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
name: 'destGasPerPayloadByteThreshold';
|
|
1108
|
+
type: 'u32';
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
name: 'destDataAvailabilityOverheadGas';
|
|
1112
|
+
type: 'u32';
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
name: 'destGasPerDataAvailabilityByte';
|
|
1116
|
+
type: 'u16';
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: 'destDataAvailabilityMultiplierBps';
|
|
1120
|
+
type: 'u16';
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
name: 'defaultTokenFeeUsdcents';
|
|
1124
|
+
type: 'u16';
|
|
1125
|
+
},
|
|
1126
|
+
{
|
|
1127
|
+
name: 'defaultTokenDestGasOverhead';
|
|
1128
|
+
type: 'u32';
|
|
1129
|
+
},
|
|
1130
|
+
{
|
|
1131
|
+
name: 'defaultTxGasLimit';
|
|
1132
|
+
type: 'u32';
|
|
1133
|
+
},
|
|
1134
|
+
{
|
|
1135
|
+
name: 'gasMultiplierWeiPerEth';
|
|
1136
|
+
type: 'u64';
|
|
1137
|
+
},
|
|
1138
|
+
{
|
|
1139
|
+
name: 'networkFeeUsdcents';
|
|
1140
|
+
type: 'u32';
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
name: 'gasPriceStalenessThreshold';
|
|
1144
|
+
type: 'u32';
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
name: 'enforceOutOfOrder';
|
|
1148
|
+
type: 'bool';
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
name: 'chainFamilySelector';
|
|
1152
|
+
type: {
|
|
1153
|
+
array: ['u8', 4];
|
|
1154
|
+
};
|
|
1155
|
+
}
|
|
1156
|
+
];
|
|
1157
|
+
};
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
name: 'DestChainState';
|
|
1161
|
+
type: {
|
|
1162
|
+
kind: 'struct';
|
|
1163
|
+
fields: [
|
|
1164
|
+
{
|
|
1165
|
+
name: 'usdPerUnitGas';
|
|
1166
|
+
type: {
|
|
1167
|
+
defined: 'TimestampedPackedU224';
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
];
|
|
1171
|
+
};
|
|
1172
|
+
},
|
|
1173
|
+
{
|
|
1174
|
+
name: 'TimestampedPackedU224';
|
|
1175
|
+
type: {
|
|
1176
|
+
kind: 'struct';
|
|
1177
|
+
fields: [
|
|
1178
|
+
{
|
|
1179
|
+
name: 'value';
|
|
1180
|
+
type: {
|
|
1181
|
+
array: ['u8', 28];
|
|
1182
|
+
};
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
name: 'timestamp';
|
|
1186
|
+
type: 'i64';
|
|
1187
|
+
}
|
|
1188
|
+
];
|
|
1189
|
+
};
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
name: 'BillingTokenConfig';
|
|
1193
|
+
type: {
|
|
1194
|
+
kind: 'struct';
|
|
1195
|
+
fields: [
|
|
1196
|
+
{
|
|
1197
|
+
name: 'enabled';
|
|
1198
|
+
type: 'bool';
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
name: 'mint';
|
|
1202
|
+
type: 'publicKey';
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
name: 'usdPerToken';
|
|
1206
|
+
type: {
|
|
1207
|
+
defined: 'TimestampedPackedU224';
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
name: 'premiumMultiplierWeiPerEth';
|
|
1212
|
+
type: 'u64';
|
|
1213
|
+
}
|
|
1214
|
+
];
|
|
1215
|
+
};
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
name: 'TokenTransferFeeConfig';
|
|
1219
|
+
type: {
|
|
1220
|
+
kind: 'struct';
|
|
1221
|
+
fields: [
|
|
1222
|
+
{
|
|
1223
|
+
name: 'minFeeUsdcents';
|
|
1224
|
+
type: 'u32';
|
|
1225
|
+
},
|
|
1226
|
+
{
|
|
1227
|
+
name: 'maxFeeUsdcents';
|
|
1228
|
+
type: 'u32';
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
name: 'deciBps';
|
|
1232
|
+
type: 'u16';
|
|
1233
|
+
},
|
|
1234
|
+
{
|
|
1235
|
+
name: 'destGasOverhead';
|
|
1236
|
+
type: 'u32';
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
name: 'destBytesOverhead';
|
|
1240
|
+
type: 'u32';
|
|
1241
|
+
},
|
|
1242
|
+
{
|
|
1243
|
+
name: 'isEnabled';
|
|
1244
|
+
type: 'bool';
|
|
1245
|
+
}
|
|
1246
|
+
];
|
|
1247
|
+
};
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
name: 'CodeVersion';
|
|
1251
|
+
type: {
|
|
1252
|
+
kind: 'enum';
|
|
1253
|
+
variants: [
|
|
1254
|
+
{
|
|
1255
|
+
name: 'Default';
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
name: 'V1';
|
|
1259
|
+
}
|
|
1260
|
+
];
|
|
1261
|
+
};
|
|
1262
|
+
}
|
|
1263
|
+
];
|
|
1264
|
+
events: [
|
|
1265
|
+
{
|
|
1266
|
+
name: 'ConfigSet';
|
|
1267
|
+
fields: [
|
|
1268
|
+
{
|
|
1269
|
+
name: 'maxFeeJuelsPerMsg';
|
|
1270
|
+
type: 'u128';
|
|
1271
|
+
index: false;
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
name: 'linkTokenMint';
|
|
1275
|
+
type: 'publicKey';
|
|
1276
|
+
index: false;
|
|
1277
|
+
},
|
|
1278
|
+
{
|
|
1279
|
+
name: 'linkTokenLocalDecimals';
|
|
1280
|
+
type: 'u8';
|
|
1281
|
+
index: false;
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
name: 'onramp';
|
|
1285
|
+
type: 'publicKey';
|
|
1286
|
+
index: false;
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
name: 'defaultCodeVersion';
|
|
1290
|
+
type: {
|
|
1291
|
+
defined: 'CodeVersion';
|
|
1292
|
+
};
|
|
1293
|
+
index: false;
|
|
1294
|
+
}
|
|
1295
|
+
];
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
name: 'FeeTokenAdded';
|
|
1299
|
+
fields: [
|
|
1300
|
+
{
|
|
1301
|
+
name: 'feeToken';
|
|
1302
|
+
type: 'publicKey';
|
|
1303
|
+
index: false;
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
name: 'enabled';
|
|
1307
|
+
type: 'bool';
|
|
1308
|
+
index: false;
|
|
1309
|
+
}
|
|
1310
|
+
];
|
|
1311
|
+
},
|
|
1312
|
+
{
|
|
1313
|
+
name: 'FeeTokenEnabled';
|
|
1314
|
+
fields: [
|
|
1315
|
+
{
|
|
1316
|
+
name: 'feeToken';
|
|
1317
|
+
type: 'publicKey';
|
|
1318
|
+
index: false;
|
|
1319
|
+
}
|
|
1320
|
+
];
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
name: 'FeeTokenDisabled';
|
|
1324
|
+
fields: [
|
|
1325
|
+
{
|
|
1326
|
+
name: 'feeToken';
|
|
1327
|
+
type: 'publicKey';
|
|
1328
|
+
index: false;
|
|
1329
|
+
}
|
|
1330
|
+
];
|
|
1331
|
+
},
|
|
1332
|
+
{
|
|
1333
|
+
name: 'FeeTokenRemoved';
|
|
1334
|
+
fields: [
|
|
1335
|
+
{
|
|
1336
|
+
name: 'feeToken';
|
|
1337
|
+
type: 'publicKey';
|
|
1338
|
+
index: false;
|
|
1339
|
+
}
|
|
1340
|
+
];
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
name: 'DestChainAdded';
|
|
1344
|
+
fields: [
|
|
1345
|
+
{
|
|
1346
|
+
name: 'destChainSelector';
|
|
1347
|
+
type: 'u64';
|
|
1348
|
+
index: false;
|
|
1349
|
+
},
|
|
1350
|
+
{
|
|
1351
|
+
name: 'destChainConfig';
|
|
1352
|
+
type: {
|
|
1353
|
+
defined: 'DestChainConfig';
|
|
1354
|
+
};
|
|
1355
|
+
index: false;
|
|
1356
|
+
}
|
|
1357
|
+
];
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
name: 'DestChainConfigUpdated';
|
|
1361
|
+
fields: [
|
|
1362
|
+
{
|
|
1363
|
+
name: 'destChainSelector';
|
|
1364
|
+
type: 'u64';
|
|
1365
|
+
index: false;
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
name: 'destChainConfig';
|
|
1369
|
+
type: {
|
|
1370
|
+
defined: 'DestChainConfig';
|
|
1371
|
+
};
|
|
1372
|
+
index: false;
|
|
1373
|
+
}
|
|
1374
|
+
];
|
|
1375
|
+
},
|
|
1376
|
+
{
|
|
1377
|
+
name: 'OwnershipTransferRequested';
|
|
1378
|
+
fields: [
|
|
1379
|
+
{
|
|
1380
|
+
name: 'from';
|
|
1381
|
+
type: 'publicKey';
|
|
1382
|
+
index: false;
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
name: 'to';
|
|
1386
|
+
type: 'publicKey';
|
|
1387
|
+
index: false;
|
|
1388
|
+
}
|
|
1389
|
+
];
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
name: 'OwnershipTransferred';
|
|
1393
|
+
fields: [
|
|
1394
|
+
{
|
|
1395
|
+
name: 'from';
|
|
1396
|
+
type: 'publicKey';
|
|
1397
|
+
index: false;
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
name: 'to';
|
|
1401
|
+
type: 'publicKey';
|
|
1402
|
+
index: false;
|
|
1403
|
+
}
|
|
1404
|
+
];
|
|
1405
|
+
},
|
|
1406
|
+
{
|
|
1407
|
+
name: 'UsdPerUnitGasUpdated';
|
|
1408
|
+
fields: [
|
|
1409
|
+
{
|
|
1410
|
+
name: 'destChain';
|
|
1411
|
+
type: 'u64';
|
|
1412
|
+
index: false;
|
|
1413
|
+
},
|
|
1414
|
+
{
|
|
1415
|
+
name: 'value';
|
|
1416
|
+
type: {
|
|
1417
|
+
array: ['u8', 28];
|
|
1418
|
+
};
|
|
1419
|
+
index: false;
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
name: 'timestamp';
|
|
1423
|
+
type: 'i64';
|
|
1424
|
+
index: false;
|
|
1425
|
+
}
|
|
1426
|
+
];
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
name: 'UsdPerTokenUpdated';
|
|
1430
|
+
fields: [
|
|
1431
|
+
{
|
|
1432
|
+
name: 'token';
|
|
1433
|
+
type: 'publicKey';
|
|
1434
|
+
index: false;
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
name: 'value';
|
|
1438
|
+
type: {
|
|
1439
|
+
array: ['u8', 28];
|
|
1440
|
+
};
|
|
1441
|
+
index: false;
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
name: 'timestamp';
|
|
1445
|
+
type: 'i64';
|
|
1446
|
+
index: false;
|
|
1447
|
+
}
|
|
1448
|
+
];
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: 'TokenPriceUpdateIgnored';
|
|
1452
|
+
fields: [
|
|
1453
|
+
{
|
|
1454
|
+
name: 'token';
|
|
1455
|
+
type: 'publicKey';
|
|
1456
|
+
index: false;
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
name: 'value';
|
|
1460
|
+
type: {
|
|
1461
|
+
array: ['u8', 28];
|
|
1462
|
+
};
|
|
1463
|
+
index: false;
|
|
1464
|
+
}
|
|
1465
|
+
];
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
name: 'TokenTransferFeeConfigUpdated';
|
|
1469
|
+
fields: [
|
|
1470
|
+
{
|
|
1471
|
+
name: 'destChainSelector';
|
|
1472
|
+
type: 'u64';
|
|
1473
|
+
index: false;
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
name: 'token';
|
|
1477
|
+
type: 'publicKey';
|
|
1478
|
+
index: false;
|
|
1479
|
+
},
|
|
1480
|
+
{
|
|
1481
|
+
name: 'tokenTransferFeeConfig';
|
|
1482
|
+
type: {
|
|
1483
|
+
defined: 'TokenTransferFeeConfig';
|
|
1484
|
+
};
|
|
1485
|
+
index: false;
|
|
1486
|
+
}
|
|
1487
|
+
];
|
|
1488
|
+
},
|
|
1489
|
+
{
|
|
1490
|
+
name: 'PremiumMultiplierWeiPerEthUpdated';
|
|
1491
|
+
fields: [
|
|
1492
|
+
{
|
|
1493
|
+
name: 'token';
|
|
1494
|
+
type: 'publicKey';
|
|
1495
|
+
index: false;
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
name: 'premiumMultiplierWeiPerEth';
|
|
1499
|
+
type: 'u64';
|
|
1500
|
+
index: false;
|
|
1501
|
+
}
|
|
1502
|
+
];
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
name: 'PriceUpdaterAdded';
|
|
1506
|
+
fields: [
|
|
1507
|
+
{
|
|
1508
|
+
name: 'priceUpdater';
|
|
1509
|
+
type: 'publicKey';
|
|
1510
|
+
index: false;
|
|
1511
|
+
}
|
|
1512
|
+
];
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
name: 'PriceUpdaterRemoved';
|
|
1516
|
+
fields: [
|
|
1517
|
+
{
|
|
1518
|
+
name: 'priceUpdater';
|
|
1519
|
+
type: 'publicKey';
|
|
1520
|
+
index: false;
|
|
1521
|
+
}
|
|
1522
|
+
];
|
|
1523
|
+
}
|
|
1524
|
+
];
|
|
1525
|
+
errors: [
|
|
1526
|
+
{
|
|
1527
|
+
code: 8000;
|
|
1528
|
+
name: 'Unauthorized';
|
|
1529
|
+
msg: 'The signer is unauthorized';
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
code: 8001;
|
|
1533
|
+
name: 'InvalidInputs';
|
|
1534
|
+
msg: 'Invalid inputs';
|
|
1535
|
+
},
|
|
1536
|
+
{
|
|
1537
|
+
code: 8002;
|
|
1538
|
+
name: 'ZeroGasLimit';
|
|
1539
|
+
msg: 'Gas limit is zero';
|
|
1540
|
+
},
|
|
1541
|
+
{
|
|
1542
|
+
code: 8003;
|
|
1543
|
+
name: 'DefaultGasLimitExceedsMaximum';
|
|
1544
|
+
msg: 'Default gas limit exceeds the maximum';
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
code: 8004;
|
|
1548
|
+
name: 'InvalidVersion';
|
|
1549
|
+
msg: 'Invalid version of the onchain state';
|
|
1550
|
+
},
|
|
1551
|
+
{
|
|
1552
|
+
code: 8005;
|
|
1553
|
+
name: 'RedundantOwnerProposal';
|
|
1554
|
+
msg: 'Proposed owner is the current owner';
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
code: 8006;
|
|
1558
|
+
name: 'InvalidInputsMissingWritable';
|
|
1559
|
+
msg: 'Account should be writable';
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
code: 8007;
|
|
1563
|
+
name: 'InvalidInputsChainSelector';
|
|
1564
|
+
msg: 'Chain selector is invalid';
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
code: 8008;
|
|
1568
|
+
name: 'InvalidInputsMint';
|
|
1569
|
+
msg: 'Mint account input is invalid';
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
code: 8009;
|
|
1573
|
+
name: 'InvalidInputsMintOwner';
|
|
1574
|
+
msg: 'Mint account input has an invalid owner';
|
|
1575
|
+
},
|
|
1576
|
+
{
|
|
1577
|
+
code: 8010;
|
|
1578
|
+
name: 'InvalidInputsTokenConfigAccount';
|
|
1579
|
+
msg: 'Token config account is invalid';
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
code: 8011;
|
|
1583
|
+
name: 'InvalidInputsMissingExtraArgs';
|
|
1584
|
+
msg: 'Missing extra args in message to SVM receiver';
|
|
1585
|
+
},
|
|
1586
|
+
{
|
|
1587
|
+
code: 8012;
|
|
1588
|
+
name: 'InvalidInputsMissingDataAfterExtraArgs';
|
|
1589
|
+
msg: 'Missing data after extra args tag';
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
code: 8013;
|
|
1593
|
+
name: 'InvalidInputsDestChainStateAccount';
|
|
1594
|
+
msg: 'Destination chain state account is invalid';
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
code: 8014;
|
|
1598
|
+
name: 'InvalidInputsPerChainPerTokenConfig';
|
|
1599
|
+
msg: 'Per chain per token config account is invalid';
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
code: 8015;
|
|
1603
|
+
name: 'InvalidInputsBillingTokenConfig';
|
|
1604
|
+
msg: 'Billing token config account is invalid';
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
code: 8016;
|
|
1608
|
+
name: 'InvalidInputsAccountCount';
|
|
1609
|
+
msg: 'Number of accounts provided is incorrect';
|
|
1610
|
+
},
|
|
1611
|
+
{
|
|
1612
|
+
code: 8017;
|
|
1613
|
+
name: 'InvalidInputsNoUpdates';
|
|
1614
|
+
msg: 'No price or gas update provided';
|
|
1615
|
+
},
|
|
1616
|
+
{
|
|
1617
|
+
code: 8018;
|
|
1618
|
+
name: 'InvalidInputsTokenAccounts';
|
|
1619
|
+
msg: 'Invalid token accounts';
|
|
1620
|
+
},
|
|
1621
|
+
{
|
|
1622
|
+
code: 8019;
|
|
1623
|
+
name: 'DestinationChainDisabled';
|
|
1624
|
+
msg: 'Destination chain disabled';
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
code: 8020;
|
|
1628
|
+
name: 'FeeTokenDisabled';
|
|
1629
|
+
msg: 'Fee token disabled';
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
code: 8021;
|
|
1633
|
+
name: 'MessageTooLarge';
|
|
1634
|
+
msg: 'Message exceeds maximum data size';
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
code: 8022;
|
|
1638
|
+
name: 'UnsupportedNumberOfTokens';
|
|
1639
|
+
msg: 'Message contains an unsupported number of tokens';
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
code: 8023;
|
|
1643
|
+
name: 'InvalidTokenPrice';
|
|
1644
|
+
msg: 'Invalid token price';
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
code: 8024;
|
|
1648
|
+
name: 'StaleGasPrice';
|
|
1649
|
+
msg: 'Stale gas price';
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
code: 8025;
|
|
1653
|
+
name: 'InvalidInputsMissingTokenConfig';
|
|
1654
|
+
msg: 'Inputs are missing token configuration';
|
|
1655
|
+
},
|
|
1656
|
+
{
|
|
1657
|
+
code: 8026;
|
|
1658
|
+
name: 'MessageFeeTooHigh';
|
|
1659
|
+
msg: 'Message fee is too high';
|
|
1660
|
+
},
|
|
1661
|
+
{
|
|
1662
|
+
code: 8027;
|
|
1663
|
+
name: 'MessageGasLimitTooHigh';
|
|
1664
|
+
msg: 'Message gas limit too high';
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
code: 8028;
|
|
1668
|
+
name: 'ExtraArgOutOfOrderExecutionMustBeTrue';
|
|
1669
|
+
msg: 'Extra arg out of order execution must be true';
|
|
1670
|
+
},
|
|
1671
|
+
{
|
|
1672
|
+
code: 8029;
|
|
1673
|
+
name: 'InvalidExtraArgsTag';
|
|
1674
|
+
msg: 'Invalid extra args tag';
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
code: 8030;
|
|
1678
|
+
name: 'InvalidExtraArgsAccounts';
|
|
1679
|
+
msg: 'Invalid amount of accounts in extra args';
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
code: 8031;
|
|
1683
|
+
name: 'InvalidExtraArgsWritabilityBitmap';
|
|
1684
|
+
msg: 'Invalid writability bitmap in extra args';
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
code: 8032;
|
|
1688
|
+
name: 'InvalidTokenReceiver';
|
|
1689
|
+
msg: 'Invalid token receiver';
|
|
1690
|
+
},
|
|
1691
|
+
{
|
|
1692
|
+
code: 8033;
|
|
1693
|
+
name: 'UnauthorizedPriceUpdater';
|
|
1694
|
+
msg: 'The caller is not an authorized price updater';
|
|
1695
|
+
},
|
|
1696
|
+
{
|
|
1697
|
+
code: 8034;
|
|
1698
|
+
name: 'InvalidTokenTransferFeeMaxMin';
|
|
1699
|
+
msg: 'Minimum token transfer fee exceeds maximum';
|
|
1700
|
+
},
|
|
1701
|
+
{
|
|
1702
|
+
code: 8035;
|
|
1703
|
+
name: 'InvalidTokenTransferFeeDestBytesOverhead';
|
|
1704
|
+
msg: 'Insufficient dest bytes overhead on transfer fee config';
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
code: 8036;
|
|
1708
|
+
name: 'InvalidCodeVersion';
|
|
1709
|
+
msg: 'Invalid code version';
|
|
1710
|
+
},
|
|
1711
|
+
{
|
|
1712
|
+
code: 8037;
|
|
1713
|
+
name: 'DefaultOwnerProposal';
|
|
1714
|
+
msg: 'Proposed owner is the default pubkey';
|
|
1715
|
+
}
|
|
1716
|
+
];
|
|
1717
|
+
};
|
|
1718
|
+
export declare const IDL: FeeQuoter;
|
|
1719
|
+
//# sourceMappingURL=FEE_QUOTER.d.ts.map
|