@pythnetwork/pyth-solana-receiver 0.11.0 → 0.13.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/PythSolanaReceiver.cjs +581 -0
- package/{lib → dist}/PythSolanaReceiver.d.ts +10 -10
- package/dist/address.cjs +61 -0
- package/{lib → dist}/address.d.ts +0 -1
- package/dist/compute_budget.cjs +46 -0
- package/{lib → dist}/compute_budget.d.ts +0 -1
- package/{lib/idl/pyth_push_oracle.js → dist/idl/pyth_push_oracle.cjs} +50 -37
- package/{lib → dist}/idl/pyth_push_oracle.d.ts +0 -1
- package/{lib/idl/pyth_solana_receiver.js → dist/idl/pyth_solana_receiver.cjs} +309 -236
- package/{lib → dist}/idl/pyth_solana_receiver.d.ts +79 -23
- package/{lib/idl/wormhole_core_bridge_solana.js → dist/idl/wormhole_core_bridge_solana.cjs} +607 -464
- package/{lib → dist}/idl/wormhole_core_bridge_solana.d.ts +0 -1
- package/dist/index.cjs +44 -0
- package/dist/index.d.ts +5 -0
- package/dist/package.json +1 -0
- package/dist/vaa.cjs +221 -0
- package/{lib → dist}/vaa.d.ts +6 -7
- package/package.json +52 -13
- package/lib/PythSolanaReceiver.d.ts.map +0 -1
- package/lib/PythSolanaReceiver.js +0 -633
- package/lib/address.d.ts.map +0 -1
- package/lib/address.js +0 -46
- package/lib/compute_budget.d.ts.map +0 -1
- package/lib/compute_budget.js +0 -35
- package/lib/idl/pyth_push_oracle.d.ts.map +0 -1
- package/lib/idl/pyth_solana_receiver.d.ts.map +0 -1
- package/lib/idl/wormhole_core_bridge_solana.d.ts.map +0 -1
- package/lib/index.d.ts +0 -6
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -17
- package/lib/vaa.d.ts.map +0 -1
- package/lib/vaa.js +0 -270
|
@@ -1,37 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "IDL", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return IDL;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
const IDL = {
|
|
5
12
|
version: "0.0.1-alpha.5",
|
|
6
13
|
name: "wormhole_core_bridge_solana",
|
|
7
14
|
constants: [
|
|
8
15
|
{
|
|
9
16
|
name: "SOLANA_CHAIN",
|
|
10
17
|
type: "u16",
|
|
11
|
-
value: "1"
|
|
18
|
+
value: "1"
|
|
12
19
|
},
|
|
13
20
|
{
|
|
14
21
|
name: "FEE_COLLECTOR_SEED_PREFIX",
|
|
15
22
|
type: "bytes",
|
|
16
|
-
value: "[102, 101, 101, 95, 99, 111, 108, 108, 101, 99, 116, 111, 114]"
|
|
23
|
+
value: "[102, 101, 101, 95, 99, 111, 108, 108, 101, 99, 116, 111, 114]"
|
|
17
24
|
},
|
|
18
25
|
{
|
|
19
26
|
name: "UPGRADE_SEED_PREFIX",
|
|
20
27
|
type: "bytes",
|
|
21
|
-
value: "[117, 112, 103, 114, 97, 100, 101]"
|
|
28
|
+
value: "[117, 112, 103, 114, 97, 100, 101]"
|
|
22
29
|
},
|
|
23
30
|
{
|
|
24
31
|
name: "PROGRAM_EMITTER_SEED_PREFIX",
|
|
25
32
|
type: "bytes",
|
|
26
|
-
value: "[101, 109, 105, 116, 116, 101, 114]"
|
|
33
|
+
value: "[101, 109, 105, 116, 116, 101, 114]"
|
|
27
34
|
},
|
|
28
35
|
{
|
|
29
36
|
name: "MAX_MESSAGE_PAYLOAD_SIZE",
|
|
30
37
|
type: {
|
|
31
|
-
defined: "usize"
|
|
38
|
+
defined: "usize"
|
|
32
39
|
},
|
|
33
|
-
value: "30 * 1_024"
|
|
34
|
-
}
|
|
40
|
+
value: "30 * 1_024"
|
|
41
|
+
}
|
|
35
42
|
],
|
|
36
43
|
instructions: [
|
|
37
44
|
{
|
|
@@ -52,7 +59,7 @@ exports.IDL = {
|
|
|
52
59
|
"",
|
|
53
60
|
"NOTE: If you wish to publish a small message (one where the data does not overflow the",
|
|
54
61
|
"Solana transaction size), it is recommended that you use an [sdk](crate::sdk::cpi) method to",
|
|
55
|
-
"either prepare your message or post a message as a program ID emitter."
|
|
62
|
+
"either prepare your message or post a message as a program ID emitter."
|
|
56
63
|
],
|
|
57
64
|
accounts: [
|
|
58
65
|
{
|
|
@@ -60,53 +67,57 @@ exports.IDL = {
|
|
|
60
67
|
isMut: false,
|
|
61
68
|
isSigner: true,
|
|
62
69
|
docs: [
|
|
63
|
-
"This authority is the only one who can write to the draft message account."
|
|
64
|
-
]
|
|
70
|
+
"This authority is the only one who can write to the draft message account."
|
|
71
|
+
]
|
|
65
72
|
},
|
|
66
73
|
{
|
|
67
74
|
name: "draftMessage",
|
|
68
75
|
isMut: true,
|
|
69
76
|
isSigner: false,
|
|
70
|
-
docs: [
|
|
71
|
-
|
|
77
|
+
docs: [
|
|
78
|
+
"Bridge."
|
|
79
|
+
]
|
|
80
|
+
}
|
|
72
81
|
],
|
|
73
82
|
args: [
|
|
74
83
|
{
|
|
75
84
|
name: "args",
|
|
76
85
|
type: {
|
|
77
|
-
defined: "InitMessageV1Args"
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
]
|
|
86
|
+
defined: "InitMessageV1Args"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
]
|
|
81
90
|
},
|
|
82
91
|
{
|
|
83
92
|
name: "writeMessageV1",
|
|
84
93
|
docs: [
|
|
85
94
|
"Processor used to write to a draft [PostedMessageV1](crate::state::PostedMessageV1) account.",
|
|
86
95
|
"This instruction requires an authority (the emitter authority) to interact with the message",
|
|
87
|
-
"account."
|
|
96
|
+
"account."
|
|
88
97
|
],
|
|
89
98
|
accounts: [
|
|
90
99
|
{
|
|
91
100
|
name: "emitterAuthority",
|
|
92
101
|
isMut: false,
|
|
93
|
-
isSigner: true
|
|
102
|
+
isSigner: true
|
|
94
103
|
},
|
|
95
104
|
{
|
|
96
105
|
name: "draftMessage",
|
|
97
106
|
isMut: true,
|
|
98
107
|
isSigner: false,
|
|
99
|
-
docs: [
|
|
100
|
-
|
|
108
|
+
docs: [
|
|
109
|
+
"only be published when the message is finalized."
|
|
110
|
+
]
|
|
111
|
+
}
|
|
101
112
|
],
|
|
102
113
|
args: [
|
|
103
114
|
{
|
|
104
115
|
name: "args",
|
|
105
116
|
type: {
|
|
106
|
-
defined: "WriteMessageV1Args"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
]
|
|
117
|
+
defined: "WriteMessageV1Args"
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
]
|
|
110
121
|
},
|
|
111
122
|
{
|
|
112
123
|
name: "finalizeMessageV1",
|
|
@@ -115,55 +126,59 @@ exports.IDL = {
|
|
|
115
126
|
"Once finalized, this message account cannot be written to again. A finalized message is the",
|
|
116
127
|
"only state the legacy post message instruction can accept before publishing. This",
|
|
117
128
|
"instruction requires an authority (the emitter authority) to interact with the message",
|
|
118
|
-
"account."
|
|
129
|
+
"account."
|
|
119
130
|
],
|
|
120
131
|
accounts: [
|
|
121
132
|
{
|
|
122
133
|
name: "emitterAuthority",
|
|
123
134
|
isMut: false,
|
|
124
|
-
isSigner: true
|
|
135
|
+
isSigner: true
|
|
125
136
|
},
|
|
126
137
|
{
|
|
127
138
|
name: "draftMessage",
|
|
128
139
|
isMut: true,
|
|
129
140
|
isSigner: false,
|
|
130
|
-
docs: [
|
|
131
|
-
|
|
141
|
+
docs: [
|
|
142
|
+
"only be published when the message is finalized."
|
|
143
|
+
]
|
|
144
|
+
}
|
|
132
145
|
],
|
|
133
|
-
args: []
|
|
146
|
+
args: []
|
|
134
147
|
},
|
|
135
148
|
{
|
|
136
149
|
name: "closeMessageV1",
|
|
137
150
|
docs: [
|
|
138
151
|
"Processor used to process a draft [PostedMessageV1](crate::state::PostedMessageV1) account.",
|
|
139
152
|
"This instruction requires an authority (the emitter authority) to interact with the message",
|
|
140
|
-
"account."
|
|
153
|
+
"account."
|
|
141
154
|
],
|
|
142
155
|
accounts: [
|
|
143
156
|
{
|
|
144
157
|
name: "emitterAuthority",
|
|
145
158
|
isMut: false,
|
|
146
|
-
isSigner: true
|
|
159
|
+
isSigner: true
|
|
147
160
|
},
|
|
148
161
|
{
|
|
149
162
|
name: "draftMessage",
|
|
150
163
|
isMut: true,
|
|
151
164
|
isSigner: false,
|
|
152
|
-
docs: [
|
|
165
|
+
docs: [
|
|
166
|
+
"only be published when the message is finalized."
|
|
167
|
+
]
|
|
153
168
|
},
|
|
154
169
|
{
|
|
155
170
|
name: "closeAccountDestination",
|
|
156
171
|
isMut: true,
|
|
157
|
-
isSigner: false
|
|
158
|
-
}
|
|
172
|
+
isSigner: false
|
|
173
|
+
}
|
|
159
174
|
],
|
|
160
|
-
args: []
|
|
175
|
+
args: []
|
|
161
176
|
},
|
|
162
177
|
{
|
|
163
178
|
name: "initEncodedVaa",
|
|
164
179
|
docs: [
|
|
165
180
|
"Processor used to intialize a created account as [EncodedVaa](crate::state::EncodedVaa). An",
|
|
166
|
-
"authority (the write authority) is established with this instruction."
|
|
181
|
+
"authority (the write authority) is established with this instruction."
|
|
167
182
|
],
|
|
168
183
|
accounts: [
|
|
169
184
|
{
|
|
@@ -171,23 +186,25 @@ exports.IDL = {
|
|
|
171
186
|
isMut: false,
|
|
172
187
|
isSigner: true,
|
|
173
188
|
docs: [
|
|
174
|
-
"The authority who can write to the VAA account when it is being processed."
|
|
175
|
-
]
|
|
189
|
+
"The authority who can write to the VAA account when it is being processed."
|
|
190
|
+
]
|
|
176
191
|
},
|
|
177
192
|
{
|
|
178
193
|
name: "encodedVaa",
|
|
179
194
|
isMut: true,
|
|
180
195
|
isSigner: false,
|
|
181
|
-
docs: [
|
|
182
|
-
|
|
196
|
+
docs: [
|
|
197
|
+
"Bridge."
|
|
198
|
+
]
|
|
199
|
+
}
|
|
183
200
|
],
|
|
184
|
-
args: []
|
|
201
|
+
args: []
|
|
185
202
|
},
|
|
186
203
|
{
|
|
187
204
|
name: "closeEncodedVaa",
|
|
188
205
|
docs: [
|
|
189
206
|
"Processor used to close an [EncodedVaa](crate::state::EncodedVaa). This instruction requires",
|
|
190
|
-
"an authority (the write authority) to interact witht he encoded VAA account."
|
|
207
|
+
"an authority (the write authority) to interact witht he encoded VAA account."
|
|
191
208
|
],
|
|
192
209
|
accounts: [
|
|
193
210
|
{
|
|
@@ -197,24 +214,26 @@ exports.IDL = {
|
|
|
197
214
|
docs: [
|
|
198
215
|
"This account is only required to be mutable for the `CloseVaaAccount` directive. This",
|
|
199
216
|
"authority is the same signer that originally created the VAA accounts, so he is the one that",
|
|
200
|
-
"will receive the lamports back for the closed accounts."
|
|
201
|
-
]
|
|
217
|
+
"will receive the lamports back for the closed accounts."
|
|
218
|
+
]
|
|
202
219
|
},
|
|
203
220
|
{
|
|
204
221
|
name: "encodedVaa",
|
|
205
222
|
isMut: true,
|
|
206
223
|
isSigner: false,
|
|
207
|
-
docs: [
|
|
208
|
-
|
|
224
|
+
docs: [
|
|
225
|
+
"written to and then verified."
|
|
226
|
+
]
|
|
227
|
+
}
|
|
209
228
|
],
|
|
210
|
-
args: []
|
|
229
|
+
args: []
|
|
211
230
|
},
|
|
212
231
|
{
|
|
213
232
|
name: "writeEncodedVaa",
|
|
214
233
|
docs: [
|
|
215
234
|
"Processor used to write to an [EncodedVaa](crate::state::EncodedVaa) account. This",
|
|
216
235
|
"instruction requires an authority (the write authority) to interact with the encoded VAA",
|
|
217
|
-
"account."
|
|
236
|
+
"account."
|
|
218
237
|
],
|
|
219
238
|
accounts: [
|
|
220
239
|
{
|
|
@@ -222,43 +241,47 @@ exports.IDL = {
|
|
|
222
241
|
isMut: false,
|
|
223
242
|
isSigner: true,
|
|
224
243
|
docs: [
|
|
225
|
-
"The only authority that can write to the encoded VAA account."
|
|
226
|
-
]
|
|
244
|
+
"The only authority that can write to the encoded VAA account."
|
|
245
|
+
]
|
|
227
246
|
},
|
|
228
247
|
{
|
|
229
248
|
name: "draftVaa",
|
|
230
249
|
isMut: true,
|
|
231
250
|
isSigner: false,
|
|
232
|
-
docs: [
|
|
233
|
-
|
|
251
|
+
docs: [
|
|
252
|
+
"written to and then verified."
|
|
253
|
+
]
|
|
254
|
+
}
|
|
234
255
|
],
|
|
235
256
|
args: [
|
|
236
257
|
{
|
|
237
258
|
name: "args",
|
|
238
259
|
type: {
|
|
239
|
-
defined: "WriteEncodedVaaArgs"
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
]
|
|
260
|
+
defined: "WriteEncodedVaaArgs"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
]
|
|
243
264
|
},
|
|
244
265
|
{
|
|
245
266
|
name: "verifyEncodedVaaV1",
|
|
246
267
|
docs: [
|
|
247
268
|
"Processor used to verify an [EncodedVaa](crate::state::EncodedVaa) account as a version 1",
|
|
248
269
|
"VAA (guardian signatures attesting to this observation). This instruction requires an",
|
|
249
|
-
"authority (the write authority) to interact with the encoded VAA account."
|
|
270
|
+
"authority (the write authority) to interact with the encoded VAA account."
|
|
250
271
|
],
|
|
251
272
|
accounts: [
|
|
252
273
|
{
|
|
253
274
|
name: "writeAuthority",
|
|
254
275
|
isMut: false,
|
|
255
|
-
isSigner: true
|
|
276
|
+
isSigner: true
|
|
256
277
|
},
|
|
257
278
|
{
|
|
258
279
|
name: "draftVaa",
|
|
259
280
|
isMut: true,
|
|
260
281
|
isSigner: false,
|
|
261
|
-
docs: [
|
|
282
|
+
docs: [
|
|
283
|
+
"written to and then verified."
|
|
284
|
+
]
|
|
262
285
|
},
|
|
263
286
|
{
|
|
264
287
|
name: "guardianSet",
|
|
@@ -266,11 +289,11 @@ exports.IDL = {
|
|
|
266
289
|
isSigner: false,
|
|
267
290
|
docs: [
|
|
268
291
|
"Guardian set account, which should be the same one that was used to attest for the VAA. The",
|
|
269
|
-
"signatures in the encoded VAA are verified against this guardian set."
|
|
270
|
-
]
|
|
271
|
-
}
|
|
292
|
+
"signatures in the encoded VAA are verified against this guardian set."
|
|
293
|
+
]
|
|
294
|
+
}
|
|
272
295
|
],
|
|
273
|
-
args: []
|
|
296
|
+
args: []
|
|
274
297
|
},
|
|
275
298
|
{
|
|
276
299
|
name: "postVaaV1",
|
|
@@ -280,7 +303,7 @@ exports.IDL = {
|
|
|
280
303
|
"",
|
|
281
304
|
"NOTE: Because the legacy verify signatures instruction was not required for the Posted VAA",
|
|
282
305
|
"account to exist, the encoded [SignatureSet](crate::state::SignatureSet) is the default",
|
|
283
|
-
"[Pubkey]."
|
|
306
|
+
"[Pubkey]."
|
|
284
307
|
],
|
|
285
308
|
accounts: [
|
|
286
309
|
{
|
|
@@ -289,8 +312,8 @@ exports.IDL = {
|
|
|
289
312
|
isSigner: true,
|
|
290
313
|
docs: [
|
|
291
314
|
"Payer to create the posted VAA account. This instruction allows anyone with an encoded VAA",
|
|
292
|
-
"to create a posted VAA account."
|
|
293
|
-
]
|
|
315
|
+
"to create a posted VAA account."
|
|
316
|
+
]
|
|
294
317
|
},
|
|
295
318
|
{
|
|
296
319
|
name: "encodedVaa",
|
|
@@ -304,39 +327,41 @@ exports.IDL = {
|
|
|
304
327
|
"allow a pathway to convert the encoded VAA into a posted VAA. However, the payload is",
|
|
305
328
|
"restricted to 9.5KB, which is much larger than what was possible with the old implementation",
|
|
306
329
|
"using the legacy post vaa instruction. The Core Bridge program will not support posting VAAs",
|
|
307
|
-
"larger than this payload size."
|
|
308
|
-
]
|
|
330
|
+
"larger than this payload size."
|
|
331
|
+
]
|
|
309
332
|
},
|
|
310
333
|
{
|
|
311
334
|
name: "postedVaa",
|
|
312
335
|
isMut: true,
|
|
313
|
-
isSigner: false
|
|
336
|
+
isSigner: false
|
|
314
337
|
},
|
|
315
338
|
{
|
|
316
339
|
name: "systemProgram",
|
|
317
340
|
isMut: false,
|
|
318
|
-
isSigner: false
|
|
319
|
-
}
|
|
341
|
+
isSigner: false
|
|
342
|
+
}
|
|
320
343
|
],
|
|
321
|
-
args: []
|
|
344
|
+
args: []
|
|
322
345
|
},
|
|
323
346
|
{
|
|
324
347
|
name: "closeSignatureSet",
|
|
325
348
|
docs: [
|
|
326
349
|
"Processor used to close a [SignatureSet](crate::state::SignatureSet), which was used to",
|
|
327
|
-
"verify the VAA using the legacy parse and verify procedure."
|
|
350
|
+
"verify the VAA using the legacy parse and verify procedure."
|
|
328
351
|
],
|
|
329
352
|
accounts: [
|
|
330
353
|
{
|
|
331
354
|
name: "solDestination",
|
|
332
355
|
isMut: true,
|
|
333
|
-
isSigner: true
|
|
356
|
+
isSigner: true
|
|
334
357
|
},
|
|
335
358
|
{
|
|
336
359
|
name: "postedVaa",
|
|
337
360
|
isMut: false,
|
|
338
361
|
isSigner: false,
|
|
339
|
-
docs: [
|
|
362
|
+
docs: [
|
|
363
|
+
"Posted VAA."
|
|
364
|
+
]
|
|
340
365
|
},
|
|
341
366
|
{
|
|
342
367
|
name: "signatureSet",
|
|
@@ -345,12 +370,12 @@ exports.IDL = {
|
|
|
345
370
|
docs: [
|
|
346
371
|
"Signature set that may have been used to create the posted VAA account. If the `post_vaa_v1`",
|
|
347
372
|
"instruction were used to create the posted VAA account, then the encoded signature set",
|
|
348
|
-
"pubkey would be all zeroes."
|
|
349
|
-
]
|
|
350
|
-
}
|
|
373
|
+
"pubkey would be all zeroes."
|
|
374
|
+
]
|
|
375
|
+
}
|
|
351
376
|
],
|
|
352
|
-
args: []
|
|
353
|
-
}
|
|
377
|
+
args: []
|
|
378
|
+
}
|
|
354
379
|
],
|
|
355
380
|
accounts: [
|
|
356
381
|
{
|
|
@@ -364,7 +389,7 @@ exports.IDL = {
|
|
|
364
389
|
"NOTE: The account schema is the same as legacy guardian sets, but this account now has a",
|
|
365
390
|
"discriminator generated by Anchor's [account] macro. When the Core Bridge program performs a",
|
|
366
391
|
"guardian set update with this implementation, guardian sets will now have this Anchor-generated",
|
|
367
|
-
"discriminator."
|
|
392
|
+
"discriminator."
|
|
368
393
|
],
|
|
369
394
|
type: {
|
|
370
395
|
kind: "struct",
|
|
@@ -372,39 +397,44 @@ exports.IDL = {
|
|
|
372
397
|
{
|
|
373
398
|
name: "index",
|
|
374
399
|
docs: [
|
|
375
|
-
"Index representing an incrementing version number for this guardian set."
|
|
400
|
+
"Index representing an incrementing version number for this guardian set."
|
|
376
401
|
],
|
|
377
|
-
type: "u32"
|
|
402
|
+
type: "u32"
|
|
378
403
|
},
|
|
379
404
|
{
|
|
380
405
|
name: "keys",
|
|
381
|
-
docs: [
|
|
406
|
+
docs: [
|
|
407
|
+
"Ethereum-style public keys."
|
|
408
|
+
],
|
|
382
409
|
type: {
|
|
383
410
|
vec: {
|
|
384
|
-
array: [
|
|
385
|
-
|
|
386
|
-
|
|
411
|
+
array: [
|
|
412
|
+
"u8",
|
|
413
|
+
20
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
}
|
|
387
417
|
},
|
|
388
418
|
{
|
|
389
419
|
name: "creationTime",
|
|
390
420
|
docs: [
|
|
391
|
-
"Timestamp representing the time this guardian became active."
|
|
421
|
+
"Timestamp representing the time this guardian became active."
|
|
392
422
|
],
|
|
393
423
|
type: {
|
|
394
|
-
defined: "Timestamp"
|
|
395
|
-
}
|
|
424
|
+
defined: "Timestamp"
|
|
425
|
+
}
|
|
396
426
|
},
|
|
397
427
|
{
|
|
398
428
|
name: "expirationTime",
|
|
399
429
|
docs: [
|
|
400
|
-
"Expiration time when VAAs issued by this set are no longer valid."
|
|
430
|
+
"Expiration time when VAAs issued by this set are no longer valid."
|
|
401
431
|
],
|
|
402
432
|
type: {
|
|
403
|
-
defined: "Timestamp"
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
]
|
|
407
|
-
}
|
|
433
|
+
defined: "Timestamp"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
}
|
|
408
438
|
},
|
|
409
439
|
{
|
|
410
440
|
name: "signatureSet",
|
|
@@ -417,32 +447,38 @@ exports.IDL = {
|
|
|
417
447
|
"NOTE: The account schema is the same as legacy signature sets, but this account now has a",
|
|
418
448
|
"discriminator generated by Anchor's [account] macro. When the Core Bridge program upgrades to",
|
|
419
449
|
"this implementation from the old one, integrators in the middle of verifying signatures will",
|
|
420
|
-
"have to use a new keypair for this account and try again."
|
|
450
|
+
"have to use a new keypair for this account and try again."
|
|
421
451
|
],
|
|
422
452
|
type: {
|
|
423
453
|
kind: "struct",
|
|
424
454
|
fields: [
|
|
425
455
|
{
|
|
426
456
|
name: "sigVerifySuccesses",
|
|
427
|
-
docs: [
|
|
457
|
+
docs: [
|
|
458
|
+
"Signatures of validators"
|
|
459
|
+
],
|
|
428
460
|
type: {
|
|
429
|
-
vec: "bool"
|
|
430
|
-
}
|
|
461
|
+
vec: "bool"
|
|
462
|
+
}
|
|
431
463
|
},
|
|
432
464
|
{
|
|
433
465
|
name: "messageHash",
|
|
434
|
-
docs: [
|
|
466
|
+
docs: [
|
|
467
|
+
"Hash of the VAA message body."
|
|
468
|
+
],
|
|
435
469
|
type: {
|
|
436
|
-
defined: "MessageHash"
|
|
437
|
-
}
|
|
470
|
+
defined: "MessageHash"
|
|
471
|
+
}
|
|
438
472
|
},
|
|
439
473
|
{
|
|
440
474
|
name: "guardianSetIndex",
|
|
441
|
-
docs: [
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
475
|
+
docs: [
|
|
476
|
+
"Index of the guardian set"
|
|
477
|
+
],
|
|
478
|
+
type: "u32"
|
|
479
|
+
}
|
|
480
|
+
]
|
|
481
|
+
}
|
|
446
482
|
},
|
|
447
483
|
{
|
|
448
484
|
name: "encodedVaa",
|
|
@@ -450,82 +486,97 @@ exports.IDL = {
|
|
|
450
486
|
"Account used to warehouse VAA buffer.",
|
|
451
487
|
"",
|
|
452
488
|
"NOTE: This account should not be used by an external application unless the header's status is",
|
|
453
|
-
"`Verified`. It is encouraged to use the `EncodedVaa` zero-copy account struct instead."
|
|
489
|
+
"`Verified`. It is encouraged to use the `EncodedVaa` zero-copy account struct instead."
|
|
454
490
|
],
|
|
455
491
|
type: {
|
|
456
492
|
kind: "struct",
|
|
457
493
|
fields: [
|
|
458
494
|
{
|
|
459
495
|
name: "header",
|
|
460
|
-
docs: [
|
|
496
|
+
docs: [
|
|
497
|
+
"Status, write authority and VAA version."
|
|
498
|
+
],
|
|
461
499
|
type: {
|
|
462
|
-
defined: "Header"
|
|
463
|
-
}
|
|
500
|
+
defined: "Header"
|
|
501
|
+
}
|
|
464
502
|
},
|
|
465
503
|
{
|
|
466
504
|
name: "buf",
|
|
467
|
-
docs: [
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
505
|
+
docs: [
|
|
506
|
+
"VAA buffer."
|
|
507
|
+
],
|
|
508
|
+
type: "bytes"
|
|
509
|
+
}
|
|
510
|
+
]
|
|
511
|
+
}
|
|
512
|
+
}
|
|
473
513
|
],
|
|
474
514
|
types: [
|
|
475
515
|
{
|
|
476
516
|
name: "InitializeArgs",
|
|
477
|
-
docs: [
|
|
517
|
+
docs: [
|
|
518
|
+
"Arguments used to initialize the Core Bridge program."
|
|
519
|
+
],
|
|
478
520
|
type: {
|
|
479
521
|
kind: "struct",
|
|
480
522
|
fields: [
|
|
481
523
|
{
|
|
482
524
|
name: "guardianSetTtlSeconds",
|
|
483
|
-
type: "u32"
|
|
525
|
+
type: "u32"
|
|
484
526
|
},
|
|
485
527
|
{
|
|
486
528
|
name: "feeLamports",
|
|
487
|
-
type: "u64"
|
|
529
|
+
type: "u64"
|
|
488
530
|
},
|
|
489
531
|
{
|
|
490
532
|
name: "initialGuardians",
|
|
491
533
|
type: {
|
|
492
534
|
vec: {
|
|
493
|
-
array: [
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
535
|
+
array: [
|
|
536
|
+
"u8",
|
|
537
|
+
20
|
|
538
|
+
]
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
]
|
|
543
|
+
}
|
|
499
544
|
},
|
|
500
545
|
{
|
|
501
546
|
name: "PostMessageArgs",
|
|
502
547
|
docs: [
|
|
503
548
|
"Arguments used to post a new Wormhole (Core Bridge) message either using",
|
|
504
549
|
"[post_message](crate::legacy::instruction::post_message) or",
|
|
505
|
-
"[post_message_unreliable](crate::legacy::instruction::post_message_unreliable)."
|
|
550
|
+
"[post_message_unreliable](crate::legacy::instruction::post_message_unreliable)."
|
|
506
551
|
],
|
|
507
552
|
type: {
|
|
508
553
|
kind: "struct",
|
|
509
554
|
fields: [
|
|
510
555
|
{
|
|
511
556
|
name: "nonce",
|
|
512
|
-
docs: [
|
|
513
|
-
|
|
557
|
+
docs: [
|
|
558
|
+
"Unique id for this message."
|
|
559
|
+
],
|
|
560
|
+
type: "u32"
|
|
514
561
|
},
|
|
515
562
|
{
|
|
516
563
|
name: "payload",
|
|
517
|
-
docs: [
|
|
518
|
-
|
|
564
|
+
docs: [
|
|
565
|
+
"Encoded message."
|
|
566
|
+
],
|
|
567
|
+
type: "bytes"
|
|
519
568
|
},
|
|
520
569
|
{
|
|
521
570
|
name: "commitment",
|
|
522
|
-
docs: [
|
|
571
|
+
docs: [
|
|
572
|
+
"Solana commitment level for Guardian observation."
|
|
573
|
+
],
|
|
523
574
|
type: {
|
|
524
|
-
defined: "Commitment"
|
|
525
|
-
}
|
|
526
|
-
}
|
|
527
|
-
]
|
|
528
|
-
}
|
|
575
|
+
defined: "Commitment"
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
]
|
|
579
|
+
}
|
|
529
580
|
},
|
|
530
581
|
{
|
|
531
582
|
name: "PostVaaArgs",
|
|
@@ -534,59 +585,79 @@ exports.IDL = {
|
|
|
534
585
|
"",
|
|
535
586
|
"NOTE: It is preferred to use the new process of verifying a VAA using the new Core Bridge Anchor",
|
|
536
587
|
"instructions. See [init_encoded_vaa](crate::wormhole_core_bridge_solana::init_encoded_vaa) and",
|
|
537
|
-
"[write_encoded_vaa](crate::wormhole_core_bridge_solana::write_encoded_vaa) for more info."
|
|
588
|
+
"[write_encoded_vaa](crate::wormhole_core_bridge_solana::write_encoded_vaa) for more info."
|
|
538
589
|
],
|
|
539
590
|
type: {
|
|
540
591
|
kind: "struct",
|
|
541
592
|
fields: [
|
|
542
593
|
{
|
|
543
594
|
name: "gap0",
|
|
544
|
-
docs: [
|
|
595
|
+
docs: [
|
|
596
|
+
"Unused data."
|
|
597
|
+
],
|
|
545
598
|
type: {
|
|
546
|
-
array: [
|
|
547
|
-
|
|
599
|
+
array: [
|
|
600
|
+
"u8",
|
|
601
|
+
5
|
|
602
|
+
]
|
|
603
|
+
}
|
|
548
604
|
},
|
|
549
605
|
{
|
|
550
606
|
name: "timestamp",
|
|
551
|
-
docs: [
|
|
552
|
-
|
|
607
|
+
docs: [
|
|
608
|
+
"Time the message was submitted."
|
|
609
|
+
],
|
|
610
|
+
type: "u32"
|
|
553
611
|
},
|
|
554
612
|
{
|
|
555
613
|
name: "nonce",
|
|
556
|
-
docs: [
|
|
557
|
-
|
|
614
|
+
docs: [
|
|
615
|
+
"Unique ID for this message."
|
|
616
|
+
],
|
|
617
|
+
type: "u32"
|
|
558
618
|
},
|
|
559
619
|
{
|
|
560
620
|
name: "emitterChain",
|
|
561
621
|
docs: [
|
|
562
|
-
"The Wormhole chain ID denoting the origin of this message."
|
|
622
|
+
"The Wormhole chain ID denoting the origin of this message."
|
|
563
623
|
],
|
|
564
|
-
type: "u16"
|
|
624
|
+
type: "u16"
|
|
565
625
|
},
|
|
566
626
|
{
|
|
567
627
|
name: "emitterAddress",
|
|
568
|
-
docs: [
|
|
628
|
+
docs: [
|
|
629
|
+
"Emitter of the message."
|
|
630
|
+
],
|
|
569
631
|
type: {
|
|
570
|
-
array: [
|
|
571
|
-
|
|
632
|
+
array: [
|
|
633
|
+
"u8",
|
|
634
|
+
32
|
|
635
|
+
]
|
|
636
|
+
}
|
|
572
637
|
},
|
|
573
638
|
{
|
|
574
639
|
name: "sequence",
|
|
575
|
-
docs: [
|
|
576
|
-
|
|
640
|
+
docs: [
|
|
641
|
+
"Sequence number of this message."
|
|
642
|
+
],
|
|
643
|
+
type: "u64"
|
|
577
644
|
},
|
|
578
645
|
{
|
|
579
646
|
name: "consistencyLevel",
|
|
580
|
-
docs: [
|
|
581
|
-
|
|
647
|
+
docs: [
|
|
648
|
+
"Level of consistency requested by the emitter."
|
|
649
|
+
],
|
|
650
|
+
type: "u8"
|
|
582
651
|
},
|
|
583
652
|
{
|
|
584
653
|
name: "payload",
|
|
585
|
-
docs: [
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
654
|
+
docs: [
|
|
655
|
+
"Message payload."
|
|
656
|
+
],
|
|
657
|
+
type: "bytes"
|
|
658
|
+
}
|
|
659
|
+
]
|
|
660
|
+
}
|
|
590
661
|
},
|
|
591
662
|
{
|
|
592
663
|
name: "VerifySignaturesArgs",
|
|
@@ -595,7 +666,7 @@ exports.IDL = {
|
|
|
595
666
|
"",
|
|
596
667
|
"NOTE: It is preferred to use the new process of verifying a VAA using the new Core Bridge Anchor",
|
|
597
668
|
"instructions. See [init_encoded_vaa](crate::wormhole_core_bridge_solana::init_encoded_vaa) and",
|
|
598
|
-
"[write_encoded_vaa](crate::wormhole_core_bridge_solana::write_encoded_vaa) for more info."
|
|
669
|
+
"[write_encoded_vaa](crate::wormhole_core_bridge_solana::write_encoded_vaa) for more info."
|
|
599
670
|
],
|
|
600
671
|
type: {
|
|
601
672
|
kind: "struct",
|
|
@@ -609,29 +680,34 @@ exports.IDL = {
|
|
|
609
680
|
"",
|
|
610
681
|
"NOTE: In the legacy implementation, this argument being a fixed-sized array of 19 only",
|
|
611
682
|
"allows the first 19 guardians of any size guardian set to be verified. Because of this, it",
|
|
612
|
-
"is absolutely important to use the new process of verifying a VAA."
|
|
683
|
+
"is absolutely important to use the new process of verifying a VAA."
|
|
613
684
|
],
|
|
614
685
|
type: {
|
|
615
|
-
array: [
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
686
|
+
array: [
|
|
687
|
+
"i8",
|
|
688
|
+
19
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
}
|
|
620
694
|
},
|
|
621
695
|
{
|
|
622
696
|
name: "EmptyArgs",
|
|
623
|
-
docs: [
|
|
697
|
+
docs: [
|
|
698
|
+
"Unit struct used to represent an empty instruction argument."
|
|
699
|
+
],
|
|
624
700
|
type: {
|
|
625
701
|
kind: "struct",
|
|
626
|
-
fields: []
|
|
627
|
-
}
|
|
702
|
+
fields: []
|
|
703
|
+
}
|
|
628
704
|
},
|
|
629
705
|
{
|
|
630
706
|
name: "Config",
|
|
631
707
|
docs: [
|
|
632
708
|
"Account used to store the current configuration of the bridge, including tracking Wormhole fee",
|
|
633
709
|
"payments. For governance decrees, the guardian set index is used to determine whether a decree",
|
|
634
|
-
"was attested for using the latest guardian set."
|
|
710
|
+
"was attested for using the latest guardian set."
|
|
635
711
|
],
|
|
636
712
|
type: {
|
|
637
713
|
kind: "struct",
|
|
@@ -639,45 +715,48 @@ exports.IDL = {
|
|
|
639
715
|
{
|
|
640
716
|
name: "guardianSetIndex",
|
|
641
717
|
docs: [
|
|
642
|
-
"The current guardian set index, used to decide which signature sets to accept."
|
|
718
|
+
"The current guardian set index, used to decide which signature sets to accept."
|
|
643
719
|
],
|
|
644
|
-
type: "u32"
|
|
720
|
+
type: "u32"
|
|
645
721
|
},
|
|
646
722
|
{
|
|
647
723
|
name: "gap0",
|
|
648
724
|
docs: [
|
|
649
725
|
"Gap. In the old implementation, this was an amount that kept track of message fees that",
|
|
650
|
-
"were paid to the program's fee collector."
|
|
726
|
+
"were paid to the program's fee collector."
|
|
651
727
|
],
|
|
652
728
|
type: {
|
|
653
|
-
array: [
|
|
654
|
-
|
|
729
|
+
array: [
|
|
730
|
+
"u8",
|
|
731
|
+
8
|
|
732
|
+
]
|
|
733
|
+
}
|
|
655
734
|
},
|
|
656
735
|
{
|
|
657
736
|
name: "guardianSetTtl",
|
|
658
737
|
docs: [
|
|
659
738
|
"Period for how long a guardian set is valid after it has been replaced by a new one. This",
|
|
660
739
|
"guarantees that VAAs issued by that set can still be submitted for a certain period. In",
|
|
661
|
-
"this period we still trust the old guardian set."
|
|
740
|
+
"this period we still trust the old guardian set."
|
|
662
741
|
],
|
|
663
742
|
type: {
|
|
664
|
-
defined: "Duration"
|
|
665
|
-
}
|
|
743
|
+
defined: "Duration"
|
|
744
|
+
}
|
|
666
745
|
},
|
|
667
746
|
{
|
|
668
747
|
name: "feeLamports",
|
|
669
748
|
docs: [
|
|
670
|
-
"Amount of lamports that needs to be paid to the protocol to post a message"
|
|
749
|
+
"Amount of lamports that needs to be paid to the protocol to post a message"
|
|
671
750
|
],
|
|
672
|
-
type: "u64"
|
|
673
|
-
}
|
|
674
|
-
]
|
|
675
|
-
}
|
|
751
|
+
type: "u64"
|
|
752
|
+
}
|
|
753
|
+
]
|
|
754
|
+
}
|
|
676
755
|
},
|
|
677
756
|
{
|
|
678
757
|
name: "LegacyEmitterSequence",
|
|
679
758
|
docs: [
|
|
680
|
-
"Account used to store the current sequence number for a given emitter."
|
|
759
|
+
"Account used to store the current sequence number for a given emitter."
|
|
681
760
|
],
|
|
682
761
|
type: {
|
|
683
762
|
kind: "struct",
|
|
@@ -685,12 +764,12 @@ exports.IDL = {
|
|
|
685
764
|
{
|
|
686
765
|
name: "value",
|
|
687
766
|
docs: [
|
|
688
|
-
"Current sequence number, which will be used the next time this emitter publishes a message."
|
|
767
|
+
"Current sequence number, which will be used the next time this emitter publishes a message."
|
|
689
768
|
],
|
|
690
|
-
type: "u64"
|
|
691
|
-
}
|
|
692
|
-
]
|
|
693
|
-
}
|
|
769
|
+
type: "u64"
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
}
|
|
694
773
|
},
|
|
695
774
|
{
|
|
696
775
|
name: "EmitterSequence",
|
|
@@ -700,57 +779,61 @@ exports.IDL = {
|
|
|
700
779
|
{
|
|
701
780
|
name: "legacy",
|
|
702
781
|
type: {
|
|
703
|
-
defined: "LegacyEmitterSequence"
|
|
704
|
-
}
|
|
782
|
+
defined: "LegacyEmitterSequence"
|
|
783
|
+
}
|
|
705
784
|
},
|
|
706
785
|
{
|
|
707
786
|
name: "bump",
|
|
708
|
-
type: "u8"
|
|
787
|
+
type: "u8"
|
|
709
788
|
},
|
|
710
789
|
{
|
|
711
790
|
name: "emitterType",
|
|
712
791
|
type: {
|
|
713
|
-
defined: "EmitterType"
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
]
|
|
717
|
-
}
|
|
792
|
+
defined: "EmitterType"
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
]
|
|
796
|
+
}
|
|
718
797
|
},
|
|
719
798
|
{
|
|
720
799
|
name: "PostedMessageV1Unreliable",
|
|
721
|
-
docs: [
|
|
800
|
+
docs: [
|
|
801
|
+
"Account used to store a published (reusable) Wormhole message."
|
|
802
|
+
],
|
|
722
803
|
type: {
|
|
723
804
|
kind: "struct",
|
|
724
805
|
fields: [
|
|
725
806
|
{
|
|
726
807
|
name: "data",
|
|
727
808
|
type: {
|
|
728
|
-
defined: "PostedMessageV1Data"
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
]
|
|
732
|
-
}
|
|
809
|
+
defined: "PostedMessageV1Data"
|
|
810
|
+
}
|
|
811
|
+
}
|
|
812
|
+
]
|
|
813
|
+
}
|
|
733
814
|
},
|
|
734
815
|
{
|
|
735
816
|
name: "PostedMessageV1Info",
|
|
736
817
|
docs: [
|
|
737
|
-
"Message metadata defining information about a published Wormhole message."
|
|
818
|
+
"Message metadata defining information about a published Wormhole message."
|
|
738
819
|
],
|
|
739
820
|
type: {
|
|
740
821
|
kind: "struct",
|
|
741
822
|
fields: [
|
|
742
823
|
{
|
|
743
824
|
name: "consistencyLevel",
|
|
744
|
-
docs: [
|
|
745
|
-
|
|
825
|
+
docs: [
|
|
826
|
+
"Level of consistency requested by the emitter."
|
|
827
|
+
],
|
|
828
|
+
type: "u8"
|
|
746
829
|
},
|
|
747
830
|
{
|
|
748
831
|
name: "emitterAuthority",
|
|
749
832
|
docs: [
|
|
750
833
|
"Authority used to write the message. This field is set to default when the message is",
|
|
751
|
-
"posted."
|
|
834
|
+
"posted."
|
|
752
835
|
],
|
|
753
|
-
type: "publicKey"
|
|
836
|
+
type: "publicKey"
|
|
754
837
|
},
|
|
755
838
|
{
|
|
756
839
|
name: "status",
|
|
@@ -758,35 +841,46 @@ exports.IDL = {
|
|
|
758
841
|
"If a message is being written to, this status is used to determine which state this",
|
|
759
842
|
"account is in (e.g. [MessageStatus::Writing] indicates that the emitter authority is still",
|
|
760
843
|
"writing its message to this account). When this message is posted, this value will be",
|
|
761
|
-
"set to [MessageStatus::Published]."
|
|
844
|
+
"set to [MessageStatus::Published]."
|
|
762
845
|
],
|
|
763
846
|
type: {
|
|
764
|
-
defined: "MessageStatus"
|
|
765
|
-
}
|
|
847
|
+
defined: "MessageStatus"
|
|
848
|
+
}
|
|
766
849
|
},
|
|
767
850
|
{
|
|
768
851
|
name: "gap0",
|
|
769
|
-
docs: [
|
|
852
|
+
docs: [
|
|
853
|
+
"No data is stored here."
|
|
854
|
+
],
|
|
770
855
|
type: {
|
|
771
|
-
array: [
|
|
772
|
-
|
|
856
|
+
array: [
|
|
857
|
+
"u8",
|
|
858
|
+
3
|
|
859
|
+
]
|
|
860
|
+
}
|
|
773
861
|
},
|
|
774
862
|
{
|
|
775
863
|
name: "postedTimestamp",
|
|
776
|
-
docs: [
|
|
864
|
+
docs: [
|
|
865
|
+
"Time the posted message was created."
|
|
866
|
+
],
|
|
777
867
|
type: {
|
|
778
|
-
defined: "Timestamp"
|
|
779
|
-
}
|
|
868
|
+
defined: "Timestamp"
|
|
869
|
+
}
|
|
780
870
|
},
|
|
781
871
|
{
|
|
782
872
|
name: "nonce",
|
|
783
|
-
docs: [
|
|
784
|
-
|
|
873
|
+
docs: [
|
|
874
|
+
"Unique id for this message."
|
|
875
|
+
],
|
|
876
|
+
type: "u32"
|
|
785
877
|
},
|
|
786
878
|
{
|
|
787
879
|
name: "sequence",
|
|
788
|
-
docs: [
|
|
789
|
-
|
|
880
|
+
docs: [
|
|
881
|
+
"Sequence number of this message."
|
|
882
|
+
],
|
|
883
|
+
type: "u64"
|
|
790
884
|
},
|
|
791
885
|
{
|
|
792
886
|
name: "solanaChainId",
|
|
@@ -794,45 +888,49 @@ exports.IDL = {
|
|
|
794
888
|
"Always `1`.",
|
|
795
889
|
"",
|
|
796
890
|
"NOTE: Saving this value is silly, but we are keeping it to be consistent with how the posted",
|
|
797
|
-
"message account is written."
|
|
891
|
+
"message account is written."
|
|
798
892
|
],
|
|
799
893
|
type: {
|
|
800
|
-
defined: "ChainIdSolanaOnly"
|
|
801
|
-
}
|
|
894
|
+
defined: "ChainIdSolanaOnly"
|
|
895
|
+
}
|
|
802
896
|
},
|
|
803
897
|
{
|
|
804
898
|
name: "emitter",
|
|
805
899
|
docs: [
|
|
806
|
-
"Emitter of the message. This may either be the emitter authority or a program ID."
|
|
900
|
+
"Emitter of the message. This may either be the emitter authority or a program ID."
|
|
807
901
|
],
|
|
808
|
-
type: "publicKey"
|
|
809
|
-
}
|
|
810
|
-
]
|
|
811
|
-
}
|
|
902
|
+
type: "publicKey"
|
|
903
|
+
}
|
|
904
|
+
]
|
|
905
|
+
}
|
|
812
906
|
},
|
|
813
907
|
{
|
|
814
908
|
name: "PostedMessageV1Data",
|
|
815
909
|
docs: [
|
|
816
910
|
"Underlying data for either [PostedMessageV1](crate::legacy::state::PostedMessageV1) or",
|
|
817
|
-
"[PostedMessageV1Unreliable](crate::legacy::state::PostedMessageV1Unreliable)."
|
|
911
|
+
"[PostedMessageV1Unreliable](crate::legacy::state::PostedMessageV1Unreliable)."
|
|
818
912
|
],
|
|
819
913
|
type: {
|
|
820
914
|
kind: "struct",
|
|
821
915
|
fields: [
|
|
822
916
|
{
|
|
823
917
|
name: "info",
|
|
824
|
-
docs: [
|
|
918
|
+
docs: [
|
|
919
|
+
"Message metadata."
|
|
920
|
+
],
|
|
825
921
|
type: {
|
|
826
|
-
defined: "PostedMessageV1Info"
|
|
827
|
-
}
|
|
922
|
+
defined: "PostedMessageV1Info"
|
|
923
|
+
}
|
|
828
924
|
},
|
|
829
925
|
{
|
|
830
926
|
name: "payload",
|
|
831
|
-
docs: [
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
927
|
+
docs: [
|
|
928
|
+
"Encoded message."
|
|
929
|
+
],
|
|
930
|
+
type: "bytes"
|
|
931
|
+
}
|
|
932
|
+
]
|
|
933
|
+
}
|
|
836
934
|
},
|
|
837
935
|
{
|
|
838
936
|
name: "PostedMessageV1",
|
|
@@ -840,49 +938,55 @@ exports.IDL = {
|
|
|
840
938
|
"Account used to store a published Wormhole message.",
|
|
841
939
|
"",
|
|
842
940
|
"NOTE: If your integration requires reusable message accounts, please see",
|
|
843
|
-
"[PostedMessageV1Unreliable](crate::legacy::state::PostedMessageV1Unreliable)."
|
|
941
|
+
"[PostedMessageV1Unreliable](crate::legacy::state::PostedMessageV1Unreliable)."
|
|
844
942
|
],
|
|
845
943
|
type: {
|
|
846
944
|
kind: "struct",
|
|
847
945
|
fields: [
|
|
848
946
|
{
|
|
849
947
|
name: "data",
|
|
850
|
-
docs: [
|
|
948
|
+
docs: [
|
|
949
|
+
"Message data."
|
|
950
|
+
],
|
|
851
951
|
type: {
|
|
852
|
-
defined: "PostedMessageV1Data"
|
|
853
|
-
}
|
|
854
|
-
}
|
|
855
|
-
]
|
|
856
|
-
}
|
|
952
|
+
defined: "PostedMessageV1Data"
|
|
953
|
+
}
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
}
|
|
857
957
|
},
|
|
858
958
|
{
|
|
859
959
|
name: "PostedVaaV1Info",
|
|
860
960
|
docs: [
|
|
861
961
|
"VAA metadata defining information about a Wormhole message attested for by an active guardian",
|
|
862
|
-
"set."
|
|
962
|
+
"set."
|
|
863
963
|
],
|
|
864
964
|
type: {
|
|
865
965
|
kind: "struct",
|
|
866
966
|
fields: [
|
|
867
967
|
{
|
|
868
968
|
name: "consistencyLevel",
|
|
869
|
-
docs: [
|
|
870
|
-
|
|
969
|
+
docs: [
|
|
970
|
+
"Level of consistency requested by the emitter."
|
|
971
|
+
],
|
|
972
|
+
type: "u8"
|
|
871
973
|
},
|
|
872
974
|
{
|
|
873
975
|
name: "timestamp",
|
|
874
|
-
docs: [
|
|
976
|
+
docs: [
|
|
977
|
+
"Time the message was submitted."
|
|
978
|
+
],
|
|
875
979
|
type: {
|
|
876
|
-
defined: "Timestamp"
|
|
877
|
-
}
|
|
980
|
+
defined: "Timestamp"
|
|
981
|
+
}
|
|
878
982
|
},
|
|
879
983
|
{
|
|
880
984
|
name: "signatureSet",
|
|
881
985
|
docs: [
|
|
882
986
|
"Pubkey of [SignatureSet](crate::state::SignatureSet) account that represents this VAA's",
|
|
883
|
-
"signature verification."
|
|
987
|
+
"signature verification."
|
|
884
988
|
],
|
|
885
|
-
type: "publicKey"
|
|
989
|
+
type: "publicKey"
|
|
886
990
|
},
|
|
887
991
|
{
|
|
888
992
|
name: "guardianSetIndex",
|
|
@@ -893,144 +997,169 @@ exports.IDL = {
|
|
|
893
997
|
"which is zero for VAA data (posted messages and VAAs resemble the same account schema). By",
|
|
894
998
|
"changing this to the guardian set index, we patch a bug with verifying governance VAAs for",
|
|
895
999
|
"the Core Bridge (other Core Bridge implementations require that the guardian set that",
|
|
896
|
-
"attested for the governance VAA is the current one)."
|
|
1000
|
+
"attested for the governance VAA is the current one)."
|
|
897
1001
|
],
|
|
898
|
-
type: "u32"
|
|
1002
|
+
type: "u32"
|
|
899
1003
|
},
|
|
900
1004
|
{
|
|
901
1005
|
name: "nonce",
|
|
902
|
-
docs: [
|
|
903
|
-
|
|
1006
|
+
docs: [
|
|
1007
|
+
"Unique ID for this message."
|
|
1008
|
+
],
|
|
1009
|
+
type: "u32"
|
|
904
1010
|
},
|
|
905
1011
|
{
|
|
906
1012
|
name: "sequence",
|
|
907
|
-
docs: [
|
|
908
|
-
|
|
1013
|
+
docs: [
|
|
1014
|
+
"Sequence number of this message."
|
|
1015
|
+
],
|
|
1016
|
+
type: "u64"
|
|
909
1017
|
},
|
|
910
1018
|
{
|
|
911
1019
|
name: "emitterChain",
|
|
912
1020
|
docs: [
|
|
913
|
-
"The Wormhole chain ID denoting the origin of this message."
|
|
1021
|
+
"The Wormhole chain ID denoting the origin of this message."
|
|
914
1022
|
],
|
|
915
|
-
type: "u16"
|
|
1023
|
+
type: "u16"
|
|
916
1024
|
},
|
|
917
1025
|
{
|
|
918
1026
|
name: "emitterAddress",
|
|
919
|
-
docs: [
|
|
1027
|
+
docs: [
|
|
1028
|
+
"Emitter of the message."
|
|
1029
|
+
],
|
|
920
1030
|
type: {
|
|
921
|
-
array: [
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
1031
|
+
array: [
|
|
1032
|
+
"u8",
|
|
1033
|
+
32
|
|
1034
|
+
]
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
}
|
|
926
1039
|
},
|
|
927
1040
|
{
|
|
928
1041
|
name: "PostedVaaV1",
|
|
929
|
-
docs: [
|
|
1042
|
+
docs: [
|
|
1043
|
+
"Account used to store a verified VAA."
|
|
1044
|
+
],
|
|
930
1045
|
type: {
|
|
931
1046
|
kind: "struct",
|
|
932
1047
|
fields: [
|
|
933
1048
|
{
|
|
934
1049
|
name: "info",
|
|
935
|
-
docs: [
|
|
1050
|
+
docs: [
|
|
1051
|
+
"VAA metadata."
|
|
1052
|
+
],
|
|
936
1053
|
type: {
|
|
937
|
-
defined: "PostedVaaV1Info"
|
|
938
|
-
}
|
|
1054
|
+
defined: "PostedVaaV1Info"
|
|
1055
|
+
}
|
|
939
1056
|
},
|
|
940
1057
|
{
|
|
941
1058
|
name: "payload",
|
|
942
|
-
docs: [
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1059
|
+
docs: [
|
|
1060
|
+
"Message payload."
|
|
1061
|
+
],
|
|
1062
|
+
type: "bytes"
|
|
1063
|
+
}
|
|
1064
|
+
]
|
|
1065
|
+
}
|
|
947
1066
|
},
|
|
948
1067
|
{
|
|
949
1068
|
name: "WriteEncodedVaaArgs",
|
|
950
1069
|
docs: [
|
|
951
1070
|
"Arguments for the [write_encoded_vaa](crate::wormhole_core_bridge_solana::write_encoded_vaa)",
|
|
952
|
-
"instruction."
|
|
1071
|
+
"instruction."
|
|
953
1072
|
],
|
|
954
1073
|
type: {
|
|
955
1074
|
kind: "struct",
|
|
956
1075
|
fields: [
|
|
957
1076
|
{
|
|
958
1077
|
name: "index",
|
|
959
|
-
docs: [
|
|
960
|
-
|
|
1078
|
+
docs: [
|
|
1079
|
+
"Index of VAA buffer."
|
|
1080
|
+
],
|
|
1081
|
+
type: "u32"
|
|
961
1082
|
},
|
|
962
1083
|
{
|
|
963
1084
|
name: "data",
|
|
964
1085
|
docs: [
|
|
965
|
-
"Data representing subset of VAA buffer starting at specified index."
|
|
1086
|
+
"Data representing subset of VAA buffer starting at specified index."
|
|
966
1087
|
],
|
|
967
|
-
type: "bytes"
|
|
968
|
-
}
|
|
969
|
-
]
|
|
970
|
-
}
|
|
1088
|
+
type: "bytes"
|
|
1089
|
+
}
|
|
1090
|
+
]
|
|
1091
|
+
}
|
|
971
1092
|
},
|
|
972
1093
|
{
|
|
973
1094
|
name: "InitMessageV1Args",
|
|
974
1095
|
docs: [
|
|
975
1096
|
"Arguments for the [init_message_v1](crate::wormhole_core_bridge_solana::init_message_v1)",
|
|
976
|
-
"instruction."
|
|
1097
|
+
"instruction."
|
|
977
1098
|
],
|
|
978
1099
|
type: {
|
|
979
1100
|
kind: "struct",
|
|
980
1101
|
fields: [
|
|
981
1102
|
{
|
|
982
1103
|
name: "nonce",
|
|
983
|
-
docs: [
|
|
984
|
-
|
|
1104
|
+
docs: [
|
|
1105
|
+
"Unique id for this message."
|
|
1106
|
+
],
|
|
1107
|
+
type: "u32"
|
|
985
1108
|
},
|
|
986
1109
|
{
|
|
987
1110
|
name: "commitment",
|
|
988
|
-
docs: [
|
|
1111
|
+
docs: [
|
|
1112
|
+
"Solana commitment level for Guardian observation."
|
|
1113
|
+
],
|
|
989
1114
|
type: {
|
|
990
|
-
defined: "Commitment"
|
|
991
|
-
}
|
|
1115
|
+
defined: "Commitment"
|
|
1116
|
+
}
|
|
992
1117
|
},
|
|
993
1118
|
{
|
|
994
1119
|
name: "cpiProgramId",
|
|
995
1120
|
docs: [
|
|
996
1121
|
"Optional program ID if the emitter address will be your program ID.",
|
|
997
1122
|
"",
|
|
998
|
-
'NOTE: If `Some(program_id)`, your emitter authority seeds to be \\[b"emitter\\].'
|
|
1123
|
+
'NOTE: If `Some(program_id)`, your emitter authority seeds to be \\[b"emitter\\].'
|
|
999
1124
|
],
|
|
1000
1125
|
type: {
|
|
1001
|
-
option: "publicKey"
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
]
|
|
1005
|
-
}
|
|
1126
|
+
option: "publicKey"
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
}
|
|
1006
1131
|
},
|
|
1007
1132
|
{
|
|
1008
1133
|
name: "WriteMessageV1Args",
|
|
1009
1134
|
docs: [
|
|
1010
1135
|
"Arguments for the [write_message_v1](crate::wormhole_core_bridge_solana::write_message_v1)",
|
|
1011
|
-
"instruction."
|
|
1136
|
+
"instruction."
|
|
1012
1137
|
],
|
|
1013
1138
|
type: {
|
|
1014
1139
|
kind: "struct",
|
|
1015
1140
|
fields: [
|
|
1016
1141
|
{
|
|
1017
1142
|
name: "index",
|
|
1018
|
-
docs: [
|
|
1019
|
-
|
|
1143
|
+
docs: [
|
|
1144
|
+
"Index of message buffer."
|
|
1145
|
+
],
|
|
1146
|
+
type: "u32"
|
|
1020
1147
|
},
|
|
1021
1148
|
{
|
|
1022
1149
|
name: "data",
|
|
1023
1150
|
docs: [
|
|
1024
|
-
"Data representing subset of message buffer starting at specified index."
|
|
1151
|
+
"Data representing subset of message buffer starting at specified index."
|
|
1025
1152
|
],
|
|
1026
|
-
type: "bytes"
|
|
1027
|
-
}
|
|
1028
|
-
]
|
|
1029
|
-
}
|
|
1153
|
+
type: "bytes"
|
|
1154
|
+
}
|
|
1155
|
+
]
|
|
1156
|
+
}
|
|
1030
1157
|
},
|
|
1031
1158
|
{
|
|
1032
1159
|
name: "Header",
|
|
1033
|
-
docs: [
|
|
1160
|
+
docs: [
|
|
1161
|
+
"`EncodedVaa` account header."
|
|
1162
|
+
],
|
|
1034
1163
|
type: {
|
|
1035
1164
|
kind: "struct",
|
|
1036
1165
|
fields: [
|
|
@@ -1038,90 +1167,97 @@ exports.IDL = {
|
|
|
1038
1167
|
name: "status",
|
|
1039
1168
|
docs: [
|
|
1040
1169
|
"Processing status. **This encoded VAA is only considered usable when this status is set",
|
|
1041
|
-
"to [Verified](ProcessingStatus::Verified).**"
|
|
1170
|
+
"to [Verified](ProcessingStatus::Verified).**"
|
|
1042
1171
|
],
|
|
1043
1172
|
type: {
|
|
1044
|
-
defined: "ProcessingStatus"
|
|
1045
|
-
}
|
|
1173
|
+
defined: "ProcessingStatus"
|
|
1174
|
+
}
|
|
1046
1175
|
},
|
|
1047
1176
|
{
|
|
1048
1177
|
name: "writeAuthority",
|
|
1049
|
-
docs: [
|
|
1050
|
-
|
|
1178
|
+
docs: [
|
|
1179
|
+
"The authority that has write privilege to this account."
|
|
1180
|
+
],
|
|
1181
|
+
type: "publicKey"
|
|
1051
1182
|
},
|
|
1052
1183
|
{
|
|
1053
1184
|
name: "version",
|
|
1054
1185
|
docs: [
|
|
1055
|
-
"VAA version. Only when the VAA is verified is this version set to a value."
|
|
1186
|
+
"VAA version. Only when the VAA is verified is this version set to a value."
|
|
1056
1187
|
],
|
|
1057
|
-
type: "u8"
|
|
1058
|
-
}
|
|
1059
|
-
]
|
|
1060
|
-
}
|
|
1188
|
+
type: "u8"
|
|
1189
|
+
}
|
|
1190
|
+
]
|
|
1191
|
+
}
|
|
1061
1192
|
},
|
|
1062
1193
|
{
|
|
1063
1194
|
name: "Timestamp",
|
|
1064
1195
|
docs: [
|
|
1065
1196
|
"This struct defines unix timestamp as u32 (as opposed to more modern systems that have adopted",
|
|
1066
1197
|
"i64). Methods for this struct are meant to convert Solana's clock type to this type assuming we",
|
|
1067
|
-
"are far from year 2038."
|
|
1198
|
+
"are far from year 2038."
|
|
1068
1199
|
],
|
|
1069
1200
|
type: {
|
|
1070
1201
|
kind: "struct",
|
|
1071
1202
|
fields: [
|
|
1072
1203
|
{
|
|
1073
1204
|
name: "value",
|
|
1074
|
-
type: "u32"
|
|
1075
|
-
}
|
|
1076
|
-
]
|
|
1077
|
-
}
|
|
1205
|
+
type: "u32"
|
|
1206
|
+
}
|
|
1207
|
+
]
|
|
1208
|
+
}
|
|
1078
1209
|
},
|
|
1079
1210
|
{
|
|
1080
1211
|
name: "Duration",
|
|
1081
1212
|
docs: [
|
|
1082
|
-
"To be used with the [Timestamp] type, this struct defines a duration in seconds."
|
|
1213
|
+
"To be used with the [Timestamp] type, this struct defines a duration in seconds."
|
|
1083
1214
|
],
|
|
1084
1215
|
type: {
|
|
1085
1216
|
kind: "struct",
|
|
1086
1217
|
fields: [
|
|
1087
1218
|
{
|
|
1088
1219
|
name: "seconds",
|
|
1089
|
-
type: "u32"
|
|
1090
|
-
}
|
|
1091
|
-
]
|
|
1092
|
-
}
|
|
1220
|
+
type: "u32"
|
|
1221
|
+
}
|
|
1222
|
+
]
|
|
1223
|
+
}
|
|
1093
1224
|
},
|
|
1094
1225
|
{
|
|
1095
1226
|
name: "MessageHash",
|
|
1096
|
-
docs: [
|
|
1227
|
+
docs: [
|
|
1228
|
+
"This type is used to represent a message hash (keccak)."
|
|
1229
|
+
],
|
|
1097
1230
|
type: {
|
|
1098
1231
|
kind: "struct",
|
|
1099
1232
|
fields: [
|
|
1100
1233
|
{
|
|
1101
1234
|
name: "bytes",
|
|
1102
1235
|
type: {
|
|
1103
|
-
array: [
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1236
|
+
array: [
|
|
1237
|
+
"u8",
|
|
1238
|
+
32
|
|
1239
|
+
]
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
]
|
|
1243
|
+
}
|
|
1108
1244
|
},
|
|
1109
1245
|
{
|
|
1110
1246
|
name: "ChainIdSolanaOnly",
|
|
1111
1247
|
docs: [
|
|
1112
1248
|
"This type is kind of silly. But because [PostedMessageV1](crate::state::PostedMessageV1) has the",
|
|
1113
1249
|
"emitter chain ID as a field, which is unnecessary since it is always Solana's chain ID, we use",
|
|
1114
|
-
"this type to guarantee that the encoded chain ID is always `1`."
|
|
1250
|
+
"this type to guarantee that the encoded chain ID is always `1`."
|
|
1115
1251
|
],
|
|
1116
1252
|
type: {
|
|
1117
1253
|
kind: "struct",
|
|
1118
1254
|
fields: [
|
|
1119
1255
|
{
|
|
1120
1256
|
name: "chainId",
|
|
1121
|
-
type: "u16"
|
|
1122
|
-
}
|
|
1123
|
-
]
|
|
1124
|
-
}
|
|
1257
|
+
type: "u16"
|
|
1258
|
+
}
|
|
1259
|
+
]
|
|
1260
|
+
}
|
|
1125
1261
|
},
|
|
1126
1262
|
{
|
|
1127
1263
|
name: "EmitterInfo",
|
|
@@ -1130,20 +1266,23 @@ exports.IDL = {
|
|
|
1130
1266
|
fields: [
|
|
1131
1267
|
{
|
|
1132
1268
|
name: "chain",
|
|
1133
|
-
type: "u16"
|
|
1269
|
+
type: "u16"
|
|
1134
1270
|
},
|
|
1135
1271
|
{
|
|
1136
1272
|
name: "address",
|
|
1137
1273
|
type: {
|
|
1138
|
-
array: [
|
|
1139
|
-
|
|
1274
|
+
array: [
|
|
1275
|
+
"u8",
|
|
1276
|
+
32
|
|
1277
|
+
]
|
|
1278
|
+
}
|
|
1140
1279
|
},
|
|
1141
1280
|
{
|
|
1142
1281
|
name: "sequence",
|
|
1143
|
-
type: "u64"
|
|
1144
|
-
}
|
|
1145
|
-
]
|
|
1146
|
-
}
|
|
1282
|
+
type: "u64"
|
|
1283
|
+
}
|
|
1284
|
+
]
|
|
1285
|
+
}
|
|
1147
1286
|
},
|
|
1148
1287
|
{
|
|
1149
1288
|
name: "LegacyInstruction",
|
|
@@ -1152,40 +1291,40 @@ exports.IDL = {
|
|
|
1152
1291
|
"",
|
|
1153
1292
|
"NOTE: No more instructions should be added to this enum. Instead, add them as Anchor instruction",
|
|
1154
1293
|
"handlers, which will inevitably live in",
|
|
1155
|
-
"[wormhole_core_bridge_solana](crate::wormhole_core_bridge_solana)."
|
|
1294
|
+
"[wormhole_core_bridge_solana](crate::wormhole_core_bridge_solana)."
|
|
1156
1295
|
],
|
|
1157
1296
|
type: {
|
|
1158
1297
|
kind: "enum",
|
|
1159
1298
|
variants: [
|
|
1160
1299
|
{
|
|
1161
|
-
name: "Initialize"
|
|
1300
|
+
name: "Initialize"
|
|
1162
1301
|
},
|
|
1163
1302
|
{
|
|
1164
|
-
name: "PostMessage"
|
|
1303
|
+
name: "PostMessage"
|
|
1165
1304
|
},
|
|
1166
1305
|
{
|
|
1167
|
-
name: "PostVaa"
|
|
1306
|
+
name: "PostVaa"
|
|
1168
1307
|
},
|
|
1169
1308
|
{
|
|
1170
|
-
name: "SetMessageFee"
|
|
1309
|
+
name: "SetMessageFee"
|
|
1171
1310
|
},
|
|
1172
1311
|
{
|
|
1173
|
-
name: "TransferFees"
|
|
1312
|
+
name: "TransferFees"
|
|
1174
1313
|
},
|
|
1175
1314
|
{
|
|
1176
|
-
name: "UpgradeContract"
|
|
1315
|
+
name: "UpgradeContract"
|
|
1177
1316
|
},
|
|
1178
1317
|
{
|
|
1179
|
-
name: "GuardianSetUpdate"
|
|
1318
|
+
name: "GuardianSetUpdate"
|
|
1180
1319
|
},
|
|
1181
1320
|
{
|
|
1182
|
-
name: "VerifySignatures"
|
|
1321
|
+
name: "VerifySignatures"
|
|
1183
1322
|
},
|
|
1184
1323
|
{
|
|
1185
|
-
name: "PostMessageUnreliable"
|
|
1186
|
-
}
|
|
1187
|
-
]
|
|
1188
|
-
}
|
|
1324
|
+
name: "PostMessageUnreliable"
|
|
1325
|
+
}
|
|
1326
|
+
]
|
|
1327
|
+
}
|
|
1189
1328
|
},
|
|
1190
1329
|
{
|
|
1191
1330
|
name: "EmitterType",
|
|
@@ -1193,41 +1332,43 @@ exports.IDL = {
|
|
|
1193
1332
|
kind: "enum",
|
|
1194
1333
|
variants: [
|
|
1195
1334
|
{
|
|
1196
|
-
name: "Unset"
|
|
1335
|
+
name: "Unset"
|
|
1197
1336
|
},
|
|
1198
1337
|
{
|
|
1199
|
-
name: "Legacy"
|
|
1338
|
+
name: "Legacy"
|
|
1200
1339
|
},
|
|
1201
1340
|
{
|
|
1202
|
-
name: "Executable"
|
|
1203
|
-
}
|
|
1204
|
-
]
|
|
1205
|
-
}
|
|
1341
|
+
name: "Executable"
|
|
1342
|
+
}
|
|
1343
|
+
]
|
|
1344
|
+
}
|
|
1206
1345
|
},
|
|
1207
1346
|
{
|
|
1208
1347
|
name: "MessageStatus",
|
|
1209
1348
|
docs: [
|
|
1210
1349
|
"Status of a message. When a message is posted, its status is",
|
|
1211
|
-
"[Published](MessageStatus::Published)."
|
|
1350
|
+
"[Published](MessageStatus::Published)."
|
|
1212
1351
|
],
|
|
1213
1352
|
type: {
|
|
1214
1353
|
kind: "enum",
|
|
1215
1354
|
variants: [
|
|
1216
1355
|
{
|
|
1217
|
-
name: "Published"
|
|
1356
|
+
name: "Published"
|
|
1218
1357
|
},
|
|
1219
1358
|
{
|
|
1220
|
-
name: "Writing"
|
|
1359
|
+
name: "Writing"
|
|
1221
1360
|
},
|
|
1222
1361
|
{
|
|
1223
|
-
name: "ReadyForPublishing"
|
|
1224
|
-
}
|
|
1225
|
-
]
|
|
1226
|
-
}
|
|
1362
|
+
name: "ReadyForPublishing"
|
|
1363
|
+
}
|
|
1364
|
+
]
|
|
1365
|
+
}
|
|
1227
1366
|
},
|
|
1228
1367
|
{
|
|
1229
1368
|
name: "PublishMessageDirective",
|
|
1230
|
-
docs: [
|
|
1369
|
+
docs: [
|
|
1370
|
+
"Directive used to determine how to post a Core Bridge message."
|
|
1371
|
+
],
|
|
1231
1372
|
type: {
|
|
1232
1373
|
kind: "enum",
|
|
1233
1374
|
variants: [
|
|
@@ -1236,66 +1377,68 @@ exports.IDL = {
|
|
|
1236
1377
|
fields: [
|
|
1237
1378
|
{
|
|
1238
1379
|
name: "nonce",
|
|
1239
|
-
type: "u32"
|
|
1380
|
+
type: "u32"
|
|
1240
1381
|
},
|
|
1241
1382
|
{
|
|
1242
1383
|
name: "payload",
|
|
1243
|
-
type: "bytes"
|
|
1384
|
+
type: "bytes"
|
|
1244
1385
|
},
|
|
1245
1386
|
{
|
|
1246
1387
|
name: "commitment",
|
|
1247
1388
|
type: {
|
|
1248
|
-
defined: "Commitment"
|
|
1249
|
-
}
|
|
1250
|
-
}
|
|
1251
|
-
]
|
|
1389
|
+
defined: "Commitment"
|
|
1390
|
+
}
|
|
1391
|
+
}
|
|
1392
|
+
]
|
|
1252
1393
|
},
|
|
1253
1394
|
{
|
|
1254
1395
|
name: "ProgramMessage",
|
|
1255
1396
|
fields: [
|
|
1256
1397
|
{
|
|
1257
1398
|
name: "programId",
|
|
1258
|
-
type: "publicKey"
|
|
1399
|
+
type: "publicKey"
|
|
1259
1400
|
},
|
|
1260
1401
|
{
|
|
1261
1402
|
name: "nonce",
|
|
1262
|
-
type: "u32"
|
|
1403
|
+
type: "u32"
|
|
1263
1404
|
},
|
|
1264
1405
|
{
|
|
1265
1406
|
name: "payload",
|
|
1266
|
-
type: "bytes"
|
|
1407
|
+
type: "bytes"
|
|
1267
1408
|
},
|
|
1268
1409
|
{
|
|
1269
1410
|
name: "commitment",
|
|
1270
1411
|
type: {
|
|
1271
|
-
defined: "Commitment"
|
|
1272
|
-
}
|
|
1273
|
-
}
|
|
1274
|
-
]
|
|
1412
|
+
defined: "Commitment"
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
]
|
|
1275
1416
|
},
|
|
1276
1417
|
{
|
|
1277
|
-
name: "PreparedMessage"
|
|
1278
|
-
}
|
|
1279
|
-
]
|
|
1280
|
-
}
|
|
1418
|
+
name: "PreparedMessage"
|
|
1419
|
+
}
|
|
1420
|
+
]
|
|
1421
|
+
}
|
|
1281
1422
|
},
|
|
1282
1423
|
{
|
|
1283
1424
|
name: "ProcessingStatus",
|
|
1284
|
-
docs: [
|
|
1425
|
+
docs: [
|
|
1426
|
+
"Encoded VAA's processing status."
|
|
1427
|
+
],
|
|
1285
1428
|
type: {
|
|
1286
1429
|
kind: "enum",
|
|
1287
1430
|
variants: [
|
|
1288
1431
|
{
|
|
1289
|
-
name: "Unset"
|
|
1432
|
+
name: "Unset"
|
|
1290
1433
|
},
|
|
1291
1434
|
{
|
|
1292
|
-
name: "Writing"
|
|
1435
|
+
name: "Writing"
|
|
1293
1436
|
},
|
|
1294
1437
|
{
|
|
1295
|
-
name: "Verified"
|
|
1296
|
-
}
|
|
1297
|
-
]
|
|
1298
|
-
}
|
|
1438
|
+
name: "Verified"
|
|
1439
|
+
}
|
|
1440
|
+
]
|
|
1441
|
+
}
|
|
1299
1442
|
},
|
|
1300
1443
|
{
|
|
1301
1444
|
name: "Commitment",
|
|
@@ -1303,306 +1446,306 @@ exports.IDL = {
|
|
|
1303
1446
|
"Representation of Solana's commitment levels. This enum is not exhaustive because Wormhole only",
|
|
1304
1447
|
"considers these two commitment levels in its Guardian observation.",
|
|
1305
1448
|
"",
|
|
1306
|
-
"See <https://docs.solana.com/cluster/commitments> for more info."
|
|
1449
|
+
"See <https://docs.solana.com/cluster/commitments> for more info."
|
|
1307
1450
|
],
|
|
1308
1451
|
type: {
|
|
1309
1452
|
kind: "enum",
|
|
1310
1453
|
variants: [
|
|
1311
1454
|
{
|
|
1312
|
-
name: "Confirmed"
|
|
1455
|
+
name: "Confirmed"
|
|
1313
1456
|
},
|
|
1314
1457
|
{
|
|
1315
|
-
name: "Finalized"
|
|
1316
|
-
}
|
|
1317
|
-
]
|
|
1318
|
-
}
|
|
1319
|
-
}
|
|
1458
|
+
name: "Finalized"
|
|
1459
|
+
}
|
|
1460
|
+
]
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1320
1463
|
],
|
|
1321
1464
|
errors: [
|
|
1322
1465
|
{
|
|
1323
1466
|
code: 6002,
|
|
1324
1467
|
name: "InvalidInstructionArgument",
|
|
1325
|
-
msg: "InvalidInstructionArgument"
|
|
1468
|
+
msg: "InvalidInstructionArgument"
|
|
1326
1469
|
},
|
|
1327
1470
|
{
|
|
1328
1471
|
code: 6003,
|
|
1329
1472
|
name: "AccountNotZeroed",
|
|
1330
|
-
msg: "AccountNotZeroed"
|
|
1473
|
+
msg: "AccountNotZeroed"
|
|
1331
1474
|
},
|
|
1332
1475
|
{
|
|
1333
1476
|
code: 6004,
|
|
1334
1477
|
name: "InvalidDataConversion",
|
|
1335
|
-
msg: "InvalidDataConversion"
|
|
1478
|
+
msg: "InvalidDataConversion"
|
|
1336
1479
|
},
|
|
1337
1480
|
{
|
|
1338
1481
|
code: 6006,
|
|
1339
1482
|
name: "U64Overflow",
|
|
1340
|
-
msg: "U64Overflow"
|
|
1483
|
+
msg: "U64Overflow"
|
|
1341
1484
|
},
|
|
1342
1485
|
{
|
|
1343
1486
|
code: 6008,
|
|
1344
1487
|
name: "InvalidComputeSize",
|
|
1345
|
-
msg: "InvalidComputeSize"
|
|
1488
|
+
msg: "InvalidComputeSize"
|
|
1346
1489
|
},
|
|
1347
1490
|
{
|
|
1348
1491
|
code: 6016,
|
|
1349
1492
|
name: "InvalidChain",
|
|
1350
|
-
msg: "InvalidChain"
|
|
1493
|
+
msg: "InvalidChain"
|
|
1351
1494
|
},
|
|
1352
1495
|
{
|
|
1353
1496
|
code: 6032,
|
|
1354
1497
|
name: "InvalidGovernanceEmitter",
|
|
1355
|
-
msg: "InvalidGovernanceEmitter"
|
|
1498
|
+
msg: "InvalidGovernanceEmitter"
|
|
1356
1499
|
},
|
|
1357
1500
|
{
|
|
1358
1501
|
code: 6034,
|
|
1359
1502
|
name: "InvalidGovernanceAction",
|
|
1360
|
-
msg: "InvalidGovernanceAction"
|
|
1503
|
+
msg: "InvalidGovernanceAction"
|
|
1361
1504
|
},
|
|
1362
1505
|
{
|
|
1363
1506
|
code: 6036,
|
|
1364
1507
|
name: "LatestGuardianSetRequired",
|
|
1365
|
-
msg: "LatestGuardianSetRequired"
|
|
1508
|
+
msg: "LatestGuardianSetRequired"
|
|
1366
1509
|
},
|
|
1367
1510
|
{
|
|
1368
1511
|
code: 6038,
|
|
1369
1512
|
name: "GovernanceForAnotherChain",
|
|
1370
|
-
msg: "GovernanceForAnotherChain"
|
|
1513
|
+
msg: "GovernanceForAnotherChain"
|
|
1371
1514
|
},
|
|
1372
1515
|
{
|
|
1373
1516
|
code: 6040,
|
|
1374
1517
|
name: "InvalidGovernanceVaa",
|
|
1375
|
-
msg: "InvalidGovernanceVaa"
|
|
1518
|
+
msg: "InvalidGovernanceVaa"
|
|
1376
1519
|
},
|
|
1377
1520
|
{
|
|
1378
1521
|
code: 6256,
|
|
1379
1522
|
name: "InsufficientFees",
|
|
1380
|
-
msg: "InsufficientFees"
|
|
1523
|
+
msg: "InsufficientFees"
|
|
1381
1524
|
},
|
|
1382
1525
|
{
|
|
1383
1526
|
code: 6258,
|
|
1384
1527
|
name: "EmitterMismatch",
|
|
1385
|
-
msg: "EmitterMismatch"
|
|
1528
|
+
msg: "EmitterMismatch"
|
|
1386
1529
|
},
|
|
1387
1530
|
{
|
|
1388
1531
|
code: 6260,
|
|
1389
1532
|
name: "NotReadyForPublishing",
|
|
1390
|
-
msg: "NotReadyForPublishing"
|
|
1533
|
+
msg: "NotReadyForPublishing"
|
|
1391
1534
|
},
|
|
1392
1535
|
{
|
|
1393
1536
|
code: 6262,
|
|
1394
1537
|
name: "InvalidPreparedMessage",
|
|
1395
|
-
msg: "InvalidPreparedMessage"
|
|
1538
|
+
msg: "InvalidPreparedMessage"
|
|
1396
1539
|
},
|
|
1397
1540
|
{
|
|
1398
1541
|
code: 6264,
|
|
1399
1542
|
name: "ExecutableEmitter",
|
|
1400
|
-
msg: "ExecutableEmitter"
|
|
1543
|
+
msg: "ExecutableEmitter"
|
|
1401
1544
|
},
|
|
1402
1545
|
{
|
|
1403
1546
|
code: 6266,
|
|
1404
1547
|
name: "LegacyEmitter",
|
|
1405
|
-
msg: "LegacyEmitter"
|
|
1548
|
+
msg: "LegacyEmitter"
|
|
1406
1549
|
},
|
|
1407
1550
|
{
|
|
1408
1551
|
code: 6512,
|
|
1409
1552
|
name: "InvalidSignatureSet",
|
|
1410
|
-
msg: "InvalidSignatureSet"
|
|
1553
|
+
msg: "InvalidSignatureSet"
|
|
1411
1554
|
},
|
|
1412
1555
|
{
|
|
1413
1556
|
code: 6514,
|
|
1414
1557
|
name: "InvalidMessageHash",
|
|
1415
|
-
msg: "InvalidMessageHash"
|
|
1558
|
+
msg: "InvalidMessageHash"
|
|
1416
1559
|
},
|
|
1417
1560
|
{
|
|
1418
1561
|
code: 6515,
|
|
1419
1562
|
name: "NoQuorum",
|
|
1420
|
-
msg: "NoQuorum"
|
|
1563
|
+
msg: "NoQuorum"
|
|
1421
1564
|
},
|
|
1422
1565
|
{
|
|
1423
1566
|
code: 6516,
|
|
1424
1567
|
name: "MessageMismatch",
|
|
1425
|
-
msg: "MessageMismatch"
|
|
1568
|
+
msg: "MessageMismatch"
|
|
1426
1569
|
},
|
|
1427
1570
|
{
|
|
1428
1571
|
code: 7024,
|
|
1429
1572
|
name: "NotEnoughLamports",
|
|
1430
|
-
msg: "NotEnoughLamports"
|
|
1573
|
+
msg: "NotEnoughLamports"
|
|
1431
1574
|
},
|
|
1432
1575
|
{
|
|
1433
1576
|
code: 7026,
|
|
1434
1577
|
name: "InvalidFeeRecipient",
|
|
1435
|
-
msg: "InvalidFeeRecipient"
|
|
1578
|
+
msg: "InvalidFeeRecipient"
|
|
1436
1579
|
},
|
|
1437
1580
|
{
|
|
1438
1581
|
code: 7280,
|
|
1439
1582
|
name: "ImplementationMismatch",
|
|
1440
|
-
msg: "ImplementationMismatch"
|
|
1583
|
+
msg: "ImplementationMismatch"
|
|
1441
1584
|
},
|
|
1442
1585
|
{
|
|
1443
1586
|
code: 7536,
|
|
1444
1587
|
name: "InvalidGuardianSetIndex",
|
|
1445
|
-
msg: "InvalidGuardianSetIndex"
|
|
1588
|
+
msg: "InvalidGuardianSetIndex"
|
|
1446
1589
|
},
|
|
1447
1590
|
{
|
|
1448
1591
|
code: 7792,
|
|
1449
1592
|
name: "GuardianSetMismatch",
|
|
1450
|
-
msg: "GuardianSetMismatch"
|
|
1593
|
+
msg: "GuardianSetMismatch"
|
|
1451
1594
|
},
|
|
1452
1595
|
{
|
|
1453
1596
|
code: 7794,
|
|
1454
1597
|
name: "InstructionAtWrongIndex",
|
|
1455
|
-
msg: "InstructionAtWrongIndex"
|
|
1598
|
+
msg: "InstructionAtWrongIndex"
|
|
1456
1599
|
},
|
|
1457
1600
|
{
|
|
1458
1601
|
code: 7795,
|
|
1459
1602
|
name: "EmptySigVerifyInstruction",
|
|
1460
|
-
msg: "EmptySigVerifyInstruction"
|
|
1603
|
+
msg: "EmptySigVerifyInstruction"
|
|
1461
1604
|
},
|
|
1462
1605
|
{
|
|
1463
1606
|
code: 7796,
|
|
1464
1607
|
name: "InvalidSigVerifyInstruction",
|
|
1465
|
-
msg: "InvalidSigVerifyInstruction"
|
|
1608
|
+
msg: "InvalidSigVerifyInstruction"
|
|
1466
1609
|
},
|
|
1467
1610
|
{
|
|
1468
1611
|
code: 7798,
|
|
1469
1612
|
name: "GuardianSetExpired",
|
|
1470
|
-
msg: "GuardianSetExpired"
|
|
1613
|
+
msg: "GuardianSetExpired"
|
|
1471
1614
|
},
|
|
1472
1615
|
{
|
|
1473
1616
|
code: 7800,
|
|
1474
1617
|
name: "InvalidGuardianKeyRecovery",
|
|
1475
|
-
msg: "InvalidGuardianKeyRecovery"
|
|
1618
|
+
msg: "InvalidGuardianKeyRecovery"
|
|
1476
1619
|
},
|
|
1477
1620
|
{
|
|
1478
1621
|
code: 7802,
|
|
1479
1622
|
name: "SignerIndicesMismatch",
|
|
1480
|
-
msg: "SignerIndicesMismatch"
|
|
1623
|
+
msg: "SignerIndicesMismatch"
|
|
1481
1624
|
},
|
|
1482
1625
|
{
|
|
1483
1626
|
code: 8048,
|
|
1484
1627
|
name: "PayloadSizeMismatch",
|
|
1485
|
-
msg: "PayloadSizeMismatch"
|
|
1628
|
+
msg: "PayloadSizeMismatch"
|
|
1486
1629
|
},
|
|
1487
1630
|
{
|
|
1488
1631
|
code: 10112,
|
|
1489
1632
|
name: "ZeroGuardians",
|
|
1490
|
-
msg: "ZeroGuardians"
|
|
1633
|
+
msg: "ZeroGuardians"
|
|
1491
1634
|
},
|
|
1492
1635
|
{
|
|
1493
1636
|
code: 10128,
|
|
1494
1637
|
name: "GuardianZeroAddress",
|
|
1495
|
-
msg: "GuardianZeroAddress"
|
|
1638
|
+
msg: "GuardianZeroAddress"
|
|
1496
1639
|
},
|
|
1497
1640
|
{
|
|
1498
1641
|
code: 10144,
|
|
1499
1642
|
name: "DuplicateGuardianAddress",
|
|
1500
|
-
msg: "DuplicateGuardianAddress"
|
|
1643
|
+
msg: "DuplicateGuardianAddress"
|
|
1501
1644
|
},
|
|
1502
1645
|
{
|
|
1503
1646
|
code: 10160,
|
|
1504
1647
|
name: "MessageAlreadyPublished",
|
|
1505
|
-
msg: "MessageAlreadyPublished"
|
|
1648
|
+
msg: "MessageAlreadyPublished"
|
|
1506
1649
|
},
|
|
1507
1650
|
{
|
|
1508
1651
|
code: 10176,
|
|
1509
1652
|
name: "VaaWritingDisallowed",
|
|
1510
|
-
msg: "VaaWritingDisallowed"
|
|
1653
|
+
msg: "VaaWritingDisallowed"
|
|
1511
1654
|
},
|
|
1512
1655
|
{
|
|
1513
1656
|
code: 10192,
|
|
1514
1657
|
name: "VaaAlreadyVerified",
|
|
1515
|
-
msg: "VaaAlreadyVerified"
|
|
1658
|
+
msg: "VaaAlreadyVerified"
|
|
1516
1659
|
},
|
|
1517
1660
|
{
|
|
1518
1661
|
code: 10208,
|
|
1519
1662
|
name: "InvalidGuardianIndex",
|
|
1520
|
-
msg: "InvalidGuardianIndex"
|
|
1663
|
+
msg: "InvalidGuardianIndex"
|
|
1521
1664
|
},
|
|
1522
1665
|
{
|
|
1523
1666
|
code: 10224,
|
|
1524
1667
|
name: "InvalidSignature",
|
|
1525
|
-
msg: "InvalidSignature"
|
|
1668
|
+
msg: "InvalidSignature"
|
|
1526
1669
|
},
|
|
1527
1670
|
{
|
|
1528
1671
|
code: 10256,
|
|
1529
1672
|
name: "UnverifiedVaa",
|
|
1530
|
-
msg: "UnverifiedVaa"
|
|
1673
|
+
msg: "UnverifiedVaa"
|
|
1531
1674
|
},
|
|
1532
1675
|
{
|
|
1533
1676
|
code: 10258,
|
|
1534
1677
|
name: "VaaStillProcessing",
|
|
1535
|
-
msg: "VaaStillProcessing"
|
|
1678
|
+
msg: "VaaStillProcessing"
|
|
1536
1679
|
},
|
|
1537
1680
|
{
|
|
1538
1681
|
code: 10260,
|
|
1539
1682
|
name: "InWritingStatus",
|
|
1540
|
-
msg: "InWritingStatus"
|
|
1683
|
+
msg: "InWritingStatus"
|
|
1541
1684
|
},
|
|
1542
1685
|
{
|
|
1543
1686
|
code: 10262,
|
|
1544
1687
|
name: "NotInWritingStatus",
|
|
1545
|
-
msg: "NotInWritingStatus"
|
|
1688
|
+
msg: "NotInWritingStatus"
|
|
1546
1689
|
},
|
|
1547
1690
|
{
|
|
1548
1691
|
code: 10264,
|
|
1549
1692
|
name: "InvalidMessageStatus",
|
|
1550
|
-
msg: "InvalidMessageStatus"
|
|
1693
|
+
msg: "InvalidMessageStatus"
|
|
1551
1694
|
},
|
|
1552
1695
|
{
|
|
1553
1696
|
code: 10266,
|
|
1554
1697
|
name: "HashNotComputed",
|
|
1555
|
-
msg: "HashNotComputed"
|
|
1698
|
+
msg: "HashNotComputed"
|
|
1556
1699
|
},
|
|
1557
1700
|
{
|
|
1558
1701
|
code: 10268,
|
|
1559
1702
|
name: "InvalidVaaVersion",
|
|
1560
|
-
msg: "InvalidVaaVersion"
|
|
1703
|
+
msg: "InvalidVaaVersion"
|
|
1561
1704
|
},
|
|
1562
1705
|
{
|
|
1563
1706
|
code: 10270,
|
|
1564
1707
|
name: "InvalidCreatedAccountSize",
|
|
1565
|
-
msg: "InvalidCreatedAccountSize"
|
|
1708
|
+
msg: "InvalidCreatedAccountSize"
|
|
1566
1709
|
},
|
|
1567
1710
|
{
|
|
1568
1711
|
code: 10272,
|
|
1569
1712
|
name: "DataOverflow",
|
|
1570
|
-
msg: "DataOverflow"
|
|
1713
|
+
msg: "DataOverflow"
|
|
1571
1714
|
},
|
|
1572
1715
|
{
|
|
1573
1716
|
code: 10274,
|
|
1574
1717
|
name: "ExceedsMaxPayloadSize",
|
|
1575
|
-
msg: "ExceedsMaxPayloadSize (30KB)"
|
|
1718
|
+
msg: "ExceedsMaxPayloadSize (30KB)"
|
|
1576
1719
|
},
|
|
1577
1720
|
{
|
|
1578
1721
|
code: 10276,
|
|
1579
1722
|
name: "CannotParseVaa",
|
|
1580
|
-
msg: "CannotParseVaa"
|
|
1723
|
+
msg: "CannotParseVaa"
|
|
1581
1724
|
},
|
|
1582
1725
|
{
|
|
1583
1726
|
code: 10278,
|
|
1584
1727
|
name: "EmitterAuthorityMismatch",
|
|
1585
|
-
msg: "EmitterAuthorityMismatch"
|
|
1728
|
+
msg: "EmitterAuthorityMismatch"
|
|
1586
1729
|
},
|
|
1587
1730
|
{
|
|
1588
1731
|
code: 10280,
|
|
1589
1732
|
name: "InvalidProgramEmitter",
|
|
1590
|
-
msg: "InvalidProgramEmitter"
|
|
1733
|
+
msg: "InvalidProgramEmitter"
|
|
1591
1734
|
},
|
|
1592
1735
|
{
|
|
1593
1736
|
code: 10282,
|
|
1594
1737
|
name: "WriteAuthorityMismatch",
|
|
1595
|
-
msg: "WriteAuthorityMismatch"
|
|
1738
|
+
msg: "WriteAuthorityMismatch"
|
|
1596
1739
|
},
|
|
1597
1740
|
{
|
|
1598
1741
|
code: 10284,
|
|
1599
1742
|
name: "PostedVaaPayloadTooLarge",
|
|
1600
|
-
msg: "PostedVaaPayloadTooLarge"
|
|
1743
|
+
msg: "PostedVaaPayloadTooLarge"
|
|
1601
1744
|
},
|
|
1602
1745
|
{
|
|
1603
1746
|
code: 10286,
|
|
1604
1747
|
name: "ExecutableDisallowed",
|
|
1605
|
-
msg: "ExecutableDisallowed"
|
|
1606
|
-
}
|
|
1607
|
-
]
|
|
1748
|
+
msg: "ExecutableDisallowed"
|
|
1749
|
+
}
|
|
1750
|
+
]
|
|
1608
1751
|
};
|