@layerzerolabs/lz-v2-stellar-sdk 0.2.8

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.
@@ -0,0 +1,4 @@
1
+
2
+ > @layerzerolabs/lz-v2-stellar-sdk@0.0.1 build /home/runner/work/monorepo-internal/monorepo-internal/contracts/protocol/stellar/sdk
3
+ > tsc
4
+
@@ -0,0 +1,452 @@
1
+ import { Buffer } from "buffer";
2
+ import { AssembledTransaction, Client as ContractClient, ClientOptions as ContractClientOptions, MethodOptions } from '@stellar/stellar-sdk/contract';
3
+ import type { u32, u64, i128 } from '@stellar/stellar-sdk/contract';
4
+ export * from '@stellar/stellar-sdk';
5
+ export * as contract from '@stellar/stellar-sdk/contract';
6
+ export * as rpc from '@stellar/stellar-sdk/rpc';
7
+ /**
8
+ * Parameters for sending a cross-chain message.
9
+ */
10
+ export interface MessagingParams {
11
+ /**
12
+ * Destination endpoint ID (chain identifier).
13
+ */
14
+ dst_eid: u32;
15
+ /**
16
+ * The message payload to send.
17
+ */
18
+ message: Buffer;
19
+ /**
20
+ * Encoded executor and DVN options.
21
+ */
22
+ options: Buffer;
23
+ /**
24
+ * Whether to pay fees in ZRO token instead of native token.
25
+ */
26
+ pay_in_zro: boolean;
27
+ /**
28
+ * Receiver address on the destination chain (32 bytes).
29
+ */
30
+ receiver: Buffer;
31
+ }
32
+ /**
33
+ * Source message information identifying where a cross-chain message came from.
34
+ */
35
+ export interface Origin {
36
+ /**
37
+ * Nonce for this pathway.
38
+ */
39
+ nonce: u64;
40
+ /**
41
+ * Sender address on the source chain (32 bytes).
42
+ */
43
+ sender: Buffer;
44
+ /**
45
+ * Source endpoint ID (chain identifier).
46
+ */
47
+ src_eid: u32;
48
+ }
49
+ /**
50
+ * Fee structure for cross-chain messaging.
51
+ */
52
+ export interface MessagingFee {
53
+ /**
54
+ * Fee paid in native token (XLM).
55
+ */
56
+ native_fee: i128;
57
+ /**
58
+ * Fee paid in ZRO token (LayerZero token).
59
+ */
60
+ zro_fee: i128;
61
+ }
62
+ /**
63
+ * Receipt returned after successfully sending a cross-chain message.
64
+ */
65
+ export interface MessagingReceipt {
66
+ /**
67
+ * The fees charged for sending the message.
68
+ */
69
+ fee: MessagingFee;
70
+ /**
71
+ * Globally unique identifier for the message.
72
+ */
73
+ guid: Buffer;
74
+ /**
75
+ * The outbound nonce for this pathway.
76
+ */
77
+ nonce: u64;
78
+ }
79
+ /**
80
+ * Type of message library indicating supported operations.
81
+ */
82
+ export type MessageLibType = {
83
+ tag: "Send";
84
+ values: void;
85
+ } | {
86
+ tag: "Receive";
87
+ values: void;
88
+ } | {
89
+ tag: "SendAndReceive";
90
+ values: void;
91
+ };
92
+ /**
93
+ * Version information for a message library.
94
+ *
95
+ * Note: `minor` and `endpoint_version` use `u32` instead of `u8` because Stellar does not
96
+ * support `u8` types in contract interface functions.
97
+ */
98
+ export interface MessageLibVersion {
99
+ /**
100
+ * Endpoint version (should not exceed u8::MAX = 255).
101
+ */
102
+ endpoint_version: u32;
103
+ /**
104
+ * Major version number.
105
+ */
106
+ major: u64;
107
+ /**
108
+ * Minor version number (should not exceed u8::MAX = 255).
109
+ */
110
+ minor: u32;
111
+ }
112
+ /**
113
+ * Timeout configuration for receive library transitions.
114
+ */
115
+ export interface Timeout {
116
+ /**
117
+ * Unix timestamp when the timeout expires.
118
+ */
119
+ expiry: u64;
120
+ /**
121
+ * The new library address to transition to.
122
+ */
123
+ lib: string;
124
+ }
125
+ /**
126
+ * Parameters for setting message library configuration.
127
+ */
128
+ export interface SetConfigParam {
129
+ /**
130
+ * XDR-encoded configuration data.
131
+ */
132
+ config: Buffer;
133
+ /**
134
+ * The type of configuration (e.g., executor, ULN).
135
+ */
136
+ config_type: u32;
137
+ /**
138
+ * The endpoint ID this config applies to.
139
+ */
140
+ eid: u32;
141
+ }
142
+ /**
143
+ * Resolved library information with default status.
144
+ */
145
+ export interface ResolvedLibrary {
146
+ /**
147
+ * Whether this is the default library (true) or OApp-specific (false).
148
+ */
149
+ is_default: boolean;
150
+ /**
151
+ * The resolved library address.
152
+ */
153
+ lib: string;
154
+ }
155
+ /**
156
+ * Outbound packet containing all information for cross-chain transmission.
157
+ */
158
+ export interface OutboundPacket {
159
+ /**
160
+ * Destination endpoint ID.
161
+ */
162
+ dst_eid: u32;
163
+ /**
164
+ * Globally unique identifier for this message.
165
+ */
166
+ guid: Buffer;
167
+ /**
168
+ * The message payload.
169
+ */
170
+ message: Buffer;
171
+ /**
172
+ * Outbound nonce for this pathway.
173
+ */
174
+ nonce: u64;
175
+ /**
176
+ * Receiver address on destination chain (32 bytes).
177
+ */
178
+ receiver: Buffer;
179
+ /**
180
+ * Sender address on source chain.
181
+ */
182
+ sender: string;
183
+ /**
184
+ * Source endpoint ID.
185
+ */
186
+ src_eid: u32;
187
+ }
188
+ /**
189
+ * A fee recipient with the amount to be paid.
190
+ */
191
+ export interface FeeRecipient {
192
+ /**
193
+ * Address to receive the fee.
194
+ */
195
+ address: string;
196
+ /**
197
+ * Amount of fee to pay.
198
+ */
199
+ amount: i128;
200
+ }
201
+ /**
202
+ * Result of send operation containing fees and encoded packet.
203
+ */
204
+ export interface FeesAndPacket {
205
+ /**
206
+ * The encoded packet ready for transmission.
207
+ */
208
+ encoded_packet: Buffer;
209
+ /**
210
+ * List of native token fee recipients (executor, DVNs, treasury).
211
+ */
212
+ native_fee_recipients: Array<FeeRecipient>;
213
+ /**
214
+ * List of ZRO token fee recipients (treasury).
215
+ */
216
+ zro_fee_recipients: Array<FeeRecipient>;
217
+ }
218
+ export declare const BufferReaderError: {
219
+ 10000: {
220
+ message: string;
221
+ };
222
+ 10001: {
223
+ message: string;
224
+ };
225
+ };
226
+ export declare const BufferWriterError: {
227
+ 10100: {
228
+ message: string;
229
+ };
230
+ };
231
+ export declare const TtlError: {
232
+ 10200: {
233
+ message: string;
234
+ };
235
+ 10201: {
236
+ message: string;
237
+ };
238
+ 10202: {
239
+ message: string;
240
+ };
241
+ };
242
+ export declare const OwnableError: {
243
+ 10300: {
244
+ message: string;
245
+ };
246
+ 10301: {
247
+ message: string;
248
+ };
249
+ };
250
+ export declare const BytesExtError: {
251
+ 10400: {
252
+ message: string;
253
+ };
254
+ };
255
+ export type DefaultOwnableStorage = {
256
+ tag: "Owner";
257
+ values: void;
258
+ };
259
+ /**
260
+ * A pair of TTL values: threshold (when to trigger extension) and extend_to (target TTL).
261
+ */
262
+ export interface TtlConfig {
263
+ /**
264
+ * Target TTL after extension (in ledgers).
265
+ */
266
+ extend_to: u32;
267
+ /**
268
+ * TTL threshold that triggers extension (in ledgers).
269
+ */
270
+ threshold: u32;
271
+ }
272
+ export type TtlConfigData = {
273
+ tag: "Frozen";
274
+ values: void;
275
+ } | {
276
+ tag: "Instance";
277
+ values: void;
278
+ } | {
279
+ tag: "Persistent";
280
+ values: void;
281
+ } | {
282
+ tag: "Temporary";
283
+ values: void;
284
+ };
285
+ export interface Client {
286
+ /**
287
+ * Construct and simulate a get_config transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
288
+ * Always panics - config retrieval is not supported.
289
+ */
290
+ get_config: ({ eid, oapp, config_type }: {
291
+ eid: u32;
292
+ oapp: string;
293
+ config_type: u32;
294
+ }, txnOptions?: {
295
+ /**
296
+ * The fee to pay for the transaction. Default: BASE_FEE
297
+ */
298
+ fee?: number;
299
+ /**
300
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
301
+ */
302
+ timeoutInSeconds?: number;
303
+ /**
304
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
305
+ */
306
+ simulate?: boolean;
307
+ }) => Promise<AssembledTransaction<Buffer>>;
308
+ /**
309
+ * Construct and simulate a is_supported_eid transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
310
+ * Returns true for all EIDs to allow assignment as a blocking library.
311
+ */
312
+ is_supported_eid: ({ eid }: {
313
+ eid: u32;
314
+ }, txnOptions?: {
315
+ /**
316
+ * The fee to pay for the transaction. Default: BASE_FEE
317
+ */
318
+ fee?: number;
319
+ /**
320
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
321
+ */
322
+ timeoutInSeconds?: number;
323
+ /**
324
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
325
+ */
326
+ simulate?: boolean;
327
+ }) => Promise<AssembledTransaction<boolean>>;
328
+ /**
329
+ * Construct and simulate a message_lib_type transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
330
+ * Returns SendAndReceive to indicate it can block both directions.
331
+ */
332
+ message_lib_type: (txnOptions?: {
333
+ /**
334
+ * The fee to pay for the transaction. Default: BASE_FEE
335
+ */
336
+ fee?: number;
337
+ /**
338
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
339
+ */
340
+ timeoutInSeconds?: number;
341
+ /**
342
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
343
+ */
344
+ simulate?: boolean;
345
+ }) => Promise<AssembledTransaction<MessageLibType>>;
346
+ /**
347
+ * Construct and simulate a set_config transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
348
+ * Always panics - config modification is not supported.
349
+ */
350
+ set_config: ({ oapp, param }: {
351
+ oapp: string;
352
+ param: Array<SetConfigParam>;
353
+ }, txnOptions?: {
354
+ /**
355
+ * The fee to pay for the transaction. Default: BASE_FEE
356
+ */
357
+ fee?: number;
358
+ /**
359
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
360
+ */
361
+ timeoutInSeconds?: number;
362
+ /**
363
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
364
+ */
365
+ simulate?: boolean;
366
+ }) => Promise<AssembledTransaction<null>>;
367
+ /**
368
+ * Construct and simulate a version transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
369
+ * Returns max version to ensure it's recognized as a valid library.
370
+ */
371
+ version: (txnOptions?: {
372
+ /**
373
+ * The fee to pay for the transaction. Default: BASE_FEE
374
+ */
375
+ fee?: number;
376
+ /**
377
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
378
+ */
379
+ timeoutInSeconds?: number;
380
+ /**
381
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
382
+ */
383
+ simulate?: boolean;
384
+ }) => Promise<AssembledTransaction<MessageLibVersion>>;
385
+ /**
386
+ * Construct and simulate a quote transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
387
+ * Always panics - quoting is blocked.
388
+ */
389
+ quote: ({ packet, options, pay_in_zro }: {
390
+ packet: OutboundPacket;
391
+ options: Buffer;
392
+ pay_in_zro: boolean;
393
+ }, txnOptions?: {
394
+ /**
395
+ * The fee to pay for the transaction. Default: BASE_FEE
396
+ */
397
+ fee?: number;
398
+ /**
399
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
400
+ */
401
+ timeoutInSeconds?: number;
402
+ /**
403
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
404
+ */
405
+ simulate?: boolean;
406
+ }) => Promise<AssembledTransaction<MessagingFee>>;
407
+ /**
408
+ * Construct and simulate a send transaction. Returns an `AssembledTransaction` object which will have a `result` field containing the result of the simulation. If this transaction changes contract state, you will need to call `signAndSend()` on the returned object.
409
+ * Always panics - sending is blocked.
410
+ */
411
+ send: ({ packet, options, pay_in_zro }: {
412
+ packet: OutboundPacket;
413
+ options: Buffer;
414
+ pay_in_zro: boolean;
415
+ }, txnOptions?: {
416
+ /**
417
+ * The fee to pay for the transaction. Default: BASE_FEE
418
+ */
419
+ fee?: number;
420
+ /**
421
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
422
+ */
423
+ timeoutInSeconds?: number;
424
+ /**
425
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
426
+ */
427
+ simulate?: boolean;
428
+ }) => Promise<AssembledTransaction<FeesAndPacket>>;
429
+ }
430
+ export declare class Client extends ContractClient {
431
+ readonly options: ContractClientOptions;
432
+ static deploy<T = Client>(
433
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
434
+ options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
435
+ /** The hash of the Wasm blob, which must already be installed on-chain. */
436
+ wasmHash: Buffer | string;
437
+ /** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
438
+ salt?: Buffer | Uint8Array;
439
+ /** The format used to decode `wasmHash`, if it's provided as a string. */
440
+ format?: "hex" | "base64";
441
+ }): Promise<AssembledTransaction<T>>;
442
+ constructor(options: ContractClientOptions);
443
+ readonly fromJSON: {
444
+ get_config: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>>;
445
+ is_supported_eid: (json: string) => AssembledTransaction<boolean>;
446
+ message_lib_type: (json: string) => AssembledTransaction<MessageLibType>;
447
+ set_config: (json: string) => AssembledTransaction<null>;
448
+ version: (json: string) => AssembledTransaction<MessageLibVersion>;
449
+ quote: (json: string) => AssembledTransaction<MessagingFee>;
450
+ send: (json: string) => AssembledTransaction<FeesAndPacket>;
451
+ };
452
+ }
@@ -0,0 +1,72 @@
1
+ import { Client as ContractClient, Spec as ContractSpec, } from '@stellar/stellar-sdk/contract';
2
+ export * from '@stellar/stellar-sdk';
3
+ export * as contract from '@stellar/stellar-sdk/contract';
4
+ export * as rpc from '@stellar/stellar-sdk/rpc';
5
+ export const BufferReaderError = {
6
+ 10000: { message: "InvalidLength" },
7
+ 10001: { message: "InvalidAddressPayload" }
8
+ };
9
+ export const BufferWriterError = {
10
+ 10100: { message: "InvalidAddressPayload" }
11
+ };
12
+ export const TtlError = {
13
+ 10200: { message: "InvalidTtlConfig" },
14
+ 10201: { message: "TtlConfigFrozen" },
15
+ 10202: { message: "TtlConfigAlreadyFrozen" }
16
+ };
17
+ export const OwnableError = {
18
+ 10300: { message: "OwnerAlreadySet" },
19
+ 10301: { message: "OwnerNotSet" }
20
+ };
21
+ export const BytesExtError = {
22
+ 10400: { message: "LengthMismatch" }
23
+ };
24
+ export class Client extends ContractClient {
25
+ options;
26
+ static async deploy(
27
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
28
+ options) {
29
+ return ContractClient.deploy(null, options);
30
+ }
31
+ constructor(options) {
32
+ super(new ContractSpec(["AAAAAAAAADJBbHdheXMgcGFuaWNzIC0gY29uZmlnIHJldHJpZXZhbCBpcyBub3Qgc3VwcG9ydGVkLgAAAAAACmdldF9jb25maWcAAAAAAAMAAAAAAAAAA2VpZAAAAAAEAAAAAAAAAARvYXBwAAAAEwAAAAAAAAALY29uZmlnX3R5cGUAAAAABAAAAAEAAAAO",
33
+ "AAAAAAAAAERSZXR1cm5zIHRydWUgZm9yIGFsbCBFSURzIHRvIGFsbG93IGFzc2lnbm1lbnQgYXMgYSBibG9ja2luZyBsaWJyYXJ5LgAAABBpc19zdXBwb3J0ZWRfZWlkAAAAAQAAAAAAAAADZWlkAAAAAAQAAAABAAAAAQ==",
34
+ "AAAAAAAAAEBSZXR1cm5zIFNlbmRBbmRSZWNlaXZlIHRvIGluZGljYXRlIGl0IGNhbiBibG9jayBib3RoIGRpcmVjdGlvbnMuAAAAEG1lc3NhZ2VfbGliX3R5cGUAAAAAAAAAAQAAB9AAAAAOTWVzc2FnZUxpYlR5cGUAAA==",
35
+ "AAAAAAAAADVBbHdheXMgcGFuaWNzIC0gY29uZmlnIG1vZGlmaWNhdGlvbiBpcyBub3Qgc3VwcG9ydGVkLgAAAAAAAApzZXRfY29uZmlnAAAAAAACAAAAAAAAAARvYXBwAAAAEwAAAAAAAAAFcGFyYW0AAAAA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zZmVycmVkAAAAAgAAAAAAAAAJb2xkX293bmVyAAAAAAAAEwAAAAAAAAAAAAAACW5ld19vd25lcgAAAAAAABMAAAAAAAAAAg==",
57
+ "AAAABQAAACpFdmVudCBlbWl0dGVkIHdoZW4gb3duZXJzaGlwIGlzIHJlbm91bmNlZC4AAAAAAAAAAAAST3duZXJzaGlwUmVub3VuY2VkAAAAAAABAAAAEk93bmVyc2hpcFJlbm91bmNlZAAAAAAAAQAAAAAAAAAJb2xkX293bmVyAAAAAAAAEwAAAAAAAAAC",
58
+ "AAAAAgAAAAAAAAAAAAAAFURlZmF1bHRPd25hYmxlU3RvcmFnZQAAAAAAAAEAAAAAAAAAAAAAAAVPd25lcgAAAA==",
59
+ "AAAAAQAAAFdBIHBhaXIgb2YgVFRMIHZhbHVlczogdGhyZXNob2xkICh3aGVuIHRvIHRyaWdnZXIgZXh0ZW5zaW9uKSBhbmQgZXh0ZW5kX3RvICh0YXJnZXQgVFRMKS4AAAAAAAAAAAlUdGxDb25maWcAAAAAAAACAAAAKFRhcmdldCBUVEwgYWZ0ZXIgZXh0ZW5zaW9uIChpbiBsZWRnZXJzKS4AAAAJZXh0ZW5kX3RvAAAAAAAABAAAADNUVEwgdGhyZXNob2xkIHRoYXQgdHJpZ2dlcnMgZXh0ZW5zaW9uIChpbiBsZWRnZXJzKS4AAAAACXRocmVzaG9sZAAAAAAAAAQ=",
60
+ "AAAAAgAAAAAAAAAAAAAADVR0bENvbmZpZ0RhdGEAAAAAAAAEAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAAAAAAAAAAAAAAAACVRlbXBvcmFyeQAAAA=="]), options);
61
+ this.options = options;
62
+ }
63
+ fromJSON = {
64
+ get_config: (this.txFromJSON),
65
+ is_supported_eid: (this.txFromJSON),
66
+ message_lib_type: (this.txFromJSON),
67
+ set_config: (this.txFromJSON),
68
+ version: (this.txFromJSON),
69
+ quote: (this.txFromJSON),
70
+ send: (this.txFromJSON)
71
+ };
72
+ }