@layerzerolabs/lz-v2-stellar-sdk 0.2.13 → 0.2.18
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/.turbo/turbo-build.log +1 -0
- package/.turbo/turbo-test.log +1009 -0
- package/dist/generated/bml.d.ts +104 -37
- package/dist/generated/bml.js +83 -42
- package/dist/generated/counter.d.ts +334 -175
- package/dist/generated/counter.js +109 -63
- package/dist/generated/dvn.d.ts +1985 -0
- package/dist/generated/dvn.js +326 -0
- package/dist/generated/dvn_fee_lib.d.ts +690 -0
- package/dist/generated/dvn_fee_lib.js +163 -0
- package/dist/generated/endpoint.d.ts +155 -46
- package/dist/generated/endpoint.js +93 -50
- package/dist/generated/executor.d.ts +1841 -0
- package/dist/generated/executor.js +312 -0
- package/dist/generated/executor_fee_lib.d.ts +1083 -0
- package/dist/generated/executor_fee_lib.js +255 -0
- package/dist/generated/executor_helper.d.ts +981 -0
- package/dist/generated/executor_helper.js +236 -0
- package/dist/generated/oft_std.d.ts +1722 -0
- package/dist/generated/oft_std.js +316 -0
- package/dist/generated/price_feed.d.ts +1077 -0
- package/dist/generated/price_feed.js +210 -0
- package/dist/generated/sml.d.ts +171 -56
- package/dist/generated/sml.js +111 -62
- package/dist/generated/treasury.d.ts +896 -0
- package/dist/generated/treasury.js +219 -0
- package/dist/generated/uln302.d.ts +175 -75
- package/dist/generated/uln302.js +126 -82
- package/dist/generated/upgrader.d.ts +70 -0
- package/dist/generated/upgrader.js +19 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +14 -0
- package/dist/wasm/blocked-message-lib.d.ts +1 -0
- package/dist/wasm/blocked-message-lib.js +2 -0
- package/dist/wasm/counter.d.ts +1 -0
- package/dist/wasm/counter.js +2 -0
- package/dist/wasm/dvn-fee-lib.d.ts +1 -0
- package/dist/wasm/dvn-fee-lib.js +2 -0
- package/dist/wasm/dvn.d.ts +1 -0
- package/dist/wasm/dvn.js +2 -0
- package/dist/wasm/endpoint-v2.d.ts +1 -0
- package/dist/wasm/endpoint-v2.js +2 -0
- package/dist/wasm/executor-fee-lib.d.ts +1 -0
- package/dist/wasm/executor-fee-lib.js +2 -0
- package/dist/wasm/executor-helper.d.ts +1 -0
- package/dist/wasm/executor-helper.js +2 -0
- package/dist/wasm/executor.d.ts +1 -0
- package/dist/wasm/executor.js +2 -0
- package/dist/wasm/layerzero-views.d.ts +1 -0
- package/dist/wasm/layerzero-views.js +2 -0
- package/dist/wasm/oft-std.d.ts +1 -0
- package/dist/wasm/oft-std.js +2 -0
- package/dist/wasm/price-feed.d.ts +1 -0
- package/dist/wasm/price-feed.js +2 -0
- package/dist/wasm/simple-message-lib.d.ts +1 -0
- package/dist/wasm/simple-message-lib.js +2 -0
- package/dist/wasm/treasury.d.ts +1 -0
- package/dist/wasm/treasury.js +2 -0
- package/dist/wasm/uln302.d.ts +1 -0
- package/dist/wasm/uln302.js +2 -0
- package/dist/wasm/upgrader.d.ts +1 -0
- package/dist/wasm/upgrader.js +2 -0
- package/dist/wasm.d.ts +15 -0
- package/dist/wasm.js +15 -0
- package/package.json +12 -9
- package/src/generated/bml.ts +117 -66
- package/src/generated/counter.ts +338 -191
- package/src/generated/dvn.ts +2036 -0
- package/src/generated/dvn_fee_lib.ts +693 -0
- package/src/generated/endpoint.ts +177 -80
- package/src/generated/executor.ts +228 -127
- package/src/generated/executor_fee_lib.ts +1072 -0
- package/src/generated/executor_helper.ts +163 -57
- package/src/generated/oft_std.ts +800 -246
- package/src/generated/price_feed.ts +1108 -0
- package/src/generated/sml.ts +194 -91
- package/src/generated/treasury.ts +943 -0
- package/src/generated/uln302.ts +211 -113
- package/src/generated/upgrader.ts +102 -0
- package/src/index.ts +17 -0
- package/src/wasm/blocked-message-lib.ts +2 -0
- package/src/wasm/counter.ts +2 -0
- package/src/wasm/dvn-fee-lib.ts +2 -0
- package/src/wasm/dvn.ts +2 -0
- package/src/wasm/endpoint-v2.ts +2 -0
- package/src/wasm/executor-fee-lib.ts +2 -0
- package/src/wasm/executor-helper.ts +2 -0
- package/src/wasm/executor.ts +2 -0
- package/src/wasm/layerzero-views.ts +2 -0
- package/src/wasm/oft-std.ts +2 -0
- package/src/wasm/price-feed.ts +2 -0
- package/src/wasm/simple-message-lib.ts +2 -0
- package/src/wasm/treasury.ts +2 -0
- package/src/wasm/uln302.ts +2 -0
- package/src/wasm/upgrader.ts +2 -0
- package/src/wasm.ts +15 -0
- package/test/counter-sml.test.ts +376 -0
- package/test/counter-uln.test.ts +493 -0
- package/test/{oft.test.ts → oft-sml.test.ts} +187 -323
- package/test/suites/constants.ts +22 -2
- package/test/suites/dummyContractClient.ts +169 -0
- package/test/suites/globalSetup.ts +450 -0
- package/test/suites/localnet.ts +23 -6
- package/test/upgrader.test.ts +300 -0
- package/test/utils.ts +558 -85
- package/vitest.config.ts +21 -0
- package/test/index.test.ts +0 -376
package/dist/generated/bml.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import type { u32, u64, i128 } from '@stellar/stellar-sdk/contract';
|
|
|
4
4
|
export * from '@stellar/stellar-sdk';
|
|
5
5
|
export * as contract from '@stellar/stellar-sdk/contract';
|
|
6
6
|
export * as rpc from '@stellar/stellar-sdk/rpc';
|
|
7
|
+
export type MigrationData = void;
|
|
7
8
|
export declare const EndpointError: {
|
|
8
9
|
1: {
|
|
9
10
|
message: string;
|
|
@@ -77,6 +78,9 @@ export declare const EndpointError: {
|
|
|
77
78
|
24: {
|
|
78
79
|
message: string;
|
|
79
80
|
};
|
|
81
|
+
25: {
|
|
82
|
+
message: string;
|
|
83
|
+
};
|
|
80
84
|
};
|
|
81
85
|
/**
|
|
82
86
|
* Parameters for sending a cross-chain message.
|
|
@@ -289,6 +293,9 @@ export interface FeesAndPacket {
|
|
|
289
293
|
*/
|
|
290
294
|
zro_fee_recipients: Array<FeeRecipient>;
|
|
291
295
|
}
|
|
296
|
+
/**
|
|
297
|
+
* BufferReaderError: 1000-1009
|
|
298
|
+
*/
|
|
292
299
|
export declare const BufferReaderError: {
|
|
293
300
|
1000: {
|
|
294
301
|
message: string;
|
|
@@ -297,41 +304,97 @@ export declare const BufferReaderError: {
|
|
|
297
304
|
message: string;
|
|
298
305
|
};
|
|
299
306
|
};
|
|
307
|
+
/**
|
|
308
|
+
* BufferWriterError: 1010-1019
|
|
309
|
+
*/
|
|
300
310
|
export declare const BufferWriterError: {
|
|
301
|
-
|
|
311
|
+
1010: {
|
|
302
312
|
message: string;
|
|
303
313
|
};
|
|
304
314
|
};
|
|
305
|
-
|
|
306
|
-
|
|
315
|
+
/**
|
|
316
|
+
* TtlConfigurableError: 1020-1029
|
|
317
|
+
*/
|
|
318
|
+
export declare const TtlConfigurableError: {
|
|
319
|
+
1020: {
|
|
307
320
|
message: string;
|
|
308
321
|
};
|
|
309
|
-
|
|
322
|
+
1021: {
|
|
310
323
|
message: string;
|
|
311
324
|
};
|
|
312
|
-
|
|
325
|
+
1022: {
|
|
313
326
|
message: string;
|
|
314
327
|
};
|
|
315
328
|
};
|
|
329
|
+
/**
|
|
330
|
+
* OwnableError: 1030-1039
|
|
331
|
+
*/
|
|
316
332
|
export declare const OwnableError: {
|
|
317
|
-
|
|
333
|
+
1030: {
|
|
318
334
|
message: string;
|
|
319
335
|
};
|
|
320
|
-
|
|
336
|
+
1031: {
|
|
321
337
|
message: string;
|
|
322
338
|
};
|
|
323
339
|
};
|
|
340
|
+
/**
|
|
341
|
+
* BytesExtError: 1040-1049
|
|
342
|
+
*/
|
|
324
343
|
export declare const BytesExtError: {
|
|
325
|
-
|
|
344
|
+
1040: {
|
|
345
|
+
message: string;
|
|
346
|
+
};
|
|
347
|
+
};
|
|
348
|
+
/**
|
|
349
|
+
* UpgradeableError: 1050-1059
|
|
350
|
+
*/
|
|
351
|
+
export declare const UpgradeableError: {
|
|
352
|
+
1050: {
|
|
353
|
+
message: string;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* MultisigError: 1060-1069
|
|
358
|
+
*/
|
|
359
|
+
export declare const MultisigError: {
|
|
360
|
+
1060: {
|
|
361
|
+
message: string;
|
|
362
|
+
};
|
|
363
|
+
1061: {
|
|
364
|
+
message: string;
|
|
365
|
+
};
|
|
366
|
+
1062: {
|
|
367
|
+
message: string;
|
|
368
|
+
};
|
|
369
|
+
1063: {
|
|
370
|
+
message: string;
|
|
371
|
+
};
|
|
372
|
+
1064: {
|
|
373
|
+
message: string;
|
|
374
|
+
};
|
|
375
|
+
1065: {
|
|
376
|
+
message: string;
|
|
377
|
+
};
|
|
378
|
+
1066: {
|
|
379
|
+
message: string;
|
|
380
|
+
};
|
|
381
|
+
1067: {
|
|
326
382
|
message: string;
|
|
327
383
|
};
|
|
328
384
|
};
|
|
329
|
-
export type
|
|
385
|
+
export type MultisigStorage = {
|
|
386
|
+
tag: "Signers";
|
|
387
|
+
values: void;
|
|
388
|
+
} | {
|
|
389
|
+
tag: "Threshold";
|
|
390
|
+
values: void;
|
|
391
|
+
};
|
|
392
|
+
export type OwnableStorage = {
|
|
330
393
|
tag: "Owner";
|
|
331
394
|
values: void;
|
|
332
395
|
};
|
|
333
396
|
/**
|
|
334
|
-
*
|
|
397
|
+
* TTL configuration: threshold (when to extend) and extend_to (target TTL).
|
|
335
398
|
*/
|
|
336
399
|
export interface TtlConfig {
|
|
337
400
|
/**
|
|
@@ -353,15 +416,18 @@ export type TtlConfigStorage = {
|
|
|
353
416
|
tag: "Persistent";
|
|
354
417
|
values: void;
|
|
355
418
|
};
|
|
419
|
+
export type UpgradeableStorage = {
|
|
420
|
+
tag: "Migrating";
|
|
421
|
+
values: void;
|
|
422
|
+
};
|
|
356
423
|
export interface Client {
|
|
357
424
|
/**
|
|
358
|
-
* Construct and simulate a
|
|
359
|
-
* Always panics - config
|
|
425
|
+
* 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.
|
|
426
|
+
* Always panics - config modification is not supported.
|
|
360
427
|
*/
|
|
361
|
-
|
|
362
|
-
eid: u32;
|
|
428
|
+
set_config: ({ oapp, param }: {
|
|
363
429
|
oapp: string;
|
|
364
|
-
|
|
430
|
+
param: Array<SetConfigParam>;
|
|
365
431
|
}, txnOptions?: {
|
|
366
432
|
/**
|
|
367
433
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -375,13 +441,15 @@ export interface Client {
|
|
|
375
441
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
376
442
|
*/
|
|
377
443
|
simulate?: boolean;
|
|
378
|
-
}) => Promise<AssembledTransaction<
|
|
444
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
379
445
|
/**
|
|
380
|
-
* Construct and simulate a
|
|
381
|
-
*
|
|
446
|
+
* 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.
|
|
447
|
+
* Always panics - config retrieval is not supported.
|
|
382
448
|
*/
|
|
383
|
-
|
|
449
|
+
get_config: ({ eid, oapp, config_type }: {
|
|
384
450
|
eid: u32;
|
|
451
|
+
oapp: string;
|
|
452
|
+
config_type: u32;
|
|
385
453
|
}, txnOptions?: {
|
|
386
454
|
/**
|
|
387
455
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
@@ -395,12 +463,14 @@ export interface Client {
|
|
|
395
463
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
396
464
|
*/
|
|
397
465
|
simulate?: boolean;
|
|
398
|
-
}) => Promise<AssembledTransaction<
|
|
466
|
+
}) => Promise<AssembledTransaction<Buffer>>;
|
|
399
467
|
/**
|
|
400
|
-
* Construct and simulate a
|
|
401
|
-
* Returns
|
|
468
|
+
* 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.
|
|
469
|
+
* Returns true for all EIDs to allow assignment as a blocking library.
|
|
402
470
|
*/
|
|
403
|
-
|
|
471
|
+
is_supported_eid: ({ eid }: {
|
|
472
|
+
eid: u32;
|
|
473
|
+
}, txnOptions?: {
|
|
404
474
|
/**
|
|
405
475
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
406
476
|
*/
|
|
@@ -413,15 +483,12 @@ export interface Client {
|
|
|
413
483
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
414
484
|
*/
|
|
415
485
|
simulate?: boolean;
|
|
416
|
-
}) => Promise<AssembledTransaction<
|
|
486
|
+
}) => Promise<AssembledTransaction<boolean>>;
|
|
417
487
|
/**
|
|
418
|
-
* Construct and simulate a
|
|
419
|
-
*
|
|
488
|
+
* 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.
|
|
489
|
+
* Returns max version to ensure it's recognized as a valid library.
|
|
420
490
|
*/
|
|
421
|
-
|
|
422
|
-
oapp: string;
|
|
423
|
-
param: Array<SetConfigParam>;
|
|
424
|
-
}, txnOptions?: {
|
|
491
|
+
version: (txnOptions?: {
|
|
425
492
|
/**
|
|
426
493
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
427
494
|
*/
|
|
@@ -434,12 +501,12 @@ export interface Client {
|
|
|
434
501
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
435
502
|
*/
|
|
436
503
|
simulate?: boolean;
|
|
437
|
-
}) => Promise<AssembledTransaction<
|
|
504
|
+
}) => Promise<AssembledTransaction<MessageLibVersion>>;
|
|
438
505
|
/**
|
|
439
|
-
* Construct and simulate a
|
|
440
|
-
* Returns
|
|
506
|
+
* 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.
|
|
507
|
+
* Returns SendAndReceive to indicate it can block both directions.
|
|
441
508
|
*/
|
|
442
|
-
|
|
509
|
+
message_lib_type: (txnOptions?: {
|
|
443
510
|
/**
|
|
444
511
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
445
512
|
*/
|
|
@@ -452,7 +519,7 @@ export interface Client {
|
|
|
452
519
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
453
520
|
*/
|
|
454
521
|
simulate?: boolean;
|
|
455
|
-
}) => Promise<AssembledTransaction<
|
|
522
|
+
}) => Promise<AssembledTransaction<MessageLibType>>;
|
|
456
523
|
/**
|
|
457
524
|
* 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.
|
|
458
525
|
* Always panics - quoting is blocked.
|
|
@@ -512,11 +579,11 @@ export declare class Client extends ContractClient {
|
|
|
512
579
|
}): Promise<AssembledTransaction<T>>;
|
|
513
580
|
constructor(options: ContractClientOptions);
|
|
514
581
|
readonly fromJSON: {
|
|
582
|
+
set_config: (json: string) => AssembledTransaction<null>;
|
|
515
583
|
get_config: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>>;
|
|
516
584
|
is_supported_eid: (json: string) => AssembledTransaction<boolean>;
|
|
517
|
-
message_lib_type: (json: string) => AssembledTransaction<MessageLibType>;
|
|
518
|
-
set_config: (json: string) => AssembledTransaction<null>;
|
|
519
585
|
version: (json: string) => AssembledTransaction<MessageLibVersion>;
|
|
586
|
+
message_lib_type: (json: string) => AssembledTransaction<MessageLibType>;
|
|
520
587
|
quote: (json: string) => AssembledTransaction<MessagingFee>;
|
|
521
588
|
send: (json: string) => AssembledTransaction<FeesAndPacket>;
|
|
522
589
|
};
|
package/dist/generated/bml.js
CHANGED
|
@@ -9,43 +9,78 @@ export const EndpointError = {
|
|
|
9
9
|
4: { message: "DefaultReceiveLibUnavailable" },
|
|
10
10
|
5: { message: "DefaultSendLibUnavailable" },
|
|
11
11
|
6: { message: "InsufficientNativeFee" },
|
|
12
|
-
7: { message: "
|
|
13
|
-
8: { message: "
|
|
14
|
-
9: { message: "
|
|
15
|
-
10: { message: "
|
|
16
|
-
11: { message: "
|
|
17
|
-
12: { message: "
|
|
18
|
-
13: { message: "
|
|
19
|
-
14: { message: "
|
|
20
|
-
15: { message: "
|
|
21
|
-
16: { message: "
|
|
22
|
-
17: { message: "
|
|
23
|
-
18: { message: "
|
|
24
|
-
19: { message: "
|
|
25
|
-
20: { message: "
|
|
26
|
-
21: { message: "
|
|
27
|
-
22: { message: "
|
|
28
|
-
23: { message: "
|
|
29
|
-
24: { message: "
|
|
12
|
+
7: { message: "InsufficientZroFee" },
|
|
13
|
+
8: { message: "InvalidFeeAmount" },
|
|
14
|
+
9: { message: "InvalidExpiry" },
|
|
15
|
+
10: { message: "InvalidIndex" },
|
|
16
|
+
11: { message: "InvalidNonce" },
|
|
17
|
+
12: { message: "InvalidPayloadHash" },
|
|
18
|
+
13: { message: "InvalidReceiveLibrary" },
|
|
19
|
+
14: { message: "OnlyNonDefaultLib" },
|
|
20
|
+
15: { message: "OnlyReceiveLib" },
|
|
21
|
+
16: { message: "OnlyRegisteredLib" },
|
|
22
|
+
17: { message: "OnlySendLib" },
|
|
23
|
+
18: { message: "PathNotInitializable" },
|
|
24
|
+
19: { message: "PathNotVerifiable" },
|
|
25
|
+
20: { message: "PayloadHashNotFound" },
|
|
26
|
+
21: { message: "SameValue" },
|
|
27
|
+
22: { message: "Unauthorized" },
|
|
28
|
+
23: { message: "UnsupportedEid" },
|
|
29
|
+
24: { message: "ZeroZroFee" },
|
|
30
|
+
25: { message: "ZroUnavailable" }
|
|
30
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* BufferReaderError: 1000-1009
|
|
34
|
+
*/
|
|
31
35
|
export const BufferReaderError = {
|
|
32
36
|
1000: { message: "InvalidLength" },
|
|
33
37
|
1001: { message: "InvalidAddressPayload" }
|
|
34
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* BufferWriterError: 1010-1019
|
|
41
|
+
*/
|
|
35
42
|
export const BufferWriterError = {
|
|
36
|
-
|
|
43
|
+
1010: { message: "InvalidAddressPayload" }
|
|
37
44
|
};
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
45
|
+
/**
|
|
46
|
+
* TtlConfigurableError: 1020-1029
|
|
47
|
+
*/
|
|
48
|
+
export const TtlConfigurableError = {
|
|
49
|
+
1020: { message: "InvalidTtlConfig" },
|
|
50
|
+
1021: { message: "TtlConfigFrozen" },
|
|
51
|
+
1022: { message: "TtlConfigAlreadyFrozen" }
|
|
42
52
|
};
|
|
53
|
+
/**
|
|
54
|
+
* OwnableError: 1030-1039
|
|
55
|
+
*/
|
|
43
56
|
export const OwnableError = {
|
|
44
|
-
|
|
45
|
-
|
|
57
|
+
1030: { message: "OwnerAlreadySet" },
|
|
58
|
+
1031: { message: "OwnerNotSet" }
|
|
46
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* BytesExtError: 1040-1049
|
|
62
|
+
*/
|
|
47
63
|
export const BytesExtError = {
|
|
48
|
-
|
|
64
|
+
1040: { message: "LengthMismatch" }
|
|
65
|
+
};
|
|
66
|
+
/**
|
|
67
|
+
* UpgradeableError: 1050-1059
|
|
68
|
+
*/
|
|
69
|
+
export const UpgradeableError = {
|
|
70
|
+
1050: { message: "MigrationNotAllowed" }
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* MultisigError: 1060-1069
|
|
74
|
+
*/
|
|
75
|
+
export const MultisigError = {
|
|
76
|
+
1060: { message: "AlreadyInitialized" },
|
|
77
|
+
1061: { message: "InvalidSigner" },
|
|
78
|
+
1062: { message: "SignatureError" },
|
|
79
|
+
1063: { message: "SignerAlreadyExists" },
|
|
80
|
+
1064: { message: "SignerNotFound" },
|
|
81
|
+
1065: { message: "TotalSignersLessThanThreshold" },
|
|
82
|
+
1066: { message: "UnsortedSigners" },
|
|
83
|
+
1067: { message: "ZeroThreshold" }
|
|
49
84
|
};
|
|
50
85
|
export class Client extends ContractClient {
|
|
51
86
|
options;
|
|
@@ -55,19 +90,19 @@ export class Client extends ContractClient {
|
|
|
55
90
|
return ContractClient.deploy(null, options);
|
|
56
91
|
}
|
|
57
92
|
constructor(options) {
|
|
58
|
-
super(new ContractSpec(["
|
|
93
|
+
super(new ContractSpec(["AAAAAAAAADVBbHdheXMgcGFuaWNzIC0gY29uZmlnIG1vZGlmaWNhdGlvbiBpcyBub3Qgc3VwcG9ydGVkLgAAAAAAAApzZXRfY29uZmlnAAAAAAACAAAAAAAAAARvYXBwAAAAEwAAAAAAAAAFcGFyYW0AAAAAAAPqAAAH0AAAAA5TZXRDb25maWdQYXJhbQAAAAAAAA==",
|
|
94
|
+
"AAAAAAAAADJBbHdheXMgcGFuaWNzIC0gY29uZmlnIHJldHJpZXZhbCBpcyBub3Qgc3VwcG9ydGVkLgAAAAAACmdldF9jb25maWcAAAAAAAMAAAAAAAAAA2VpZAAAAAAEAAAAAAAAAARvYXBwAAAAEwAAAAAAAAALY29uZmlnX3R5cGUAAAAABAAAAAEAAAAO",
|
|
59
95
|
"AAAAAAAAAERSZXR1cm5zIHRydWUgZm9yIGFsbCBFSURzIHRvIGFsbG93IGFzc2lnbm1lbnQgYXMgYSBibG9ja2luZyBsaWJyYXJ5LgAAABBpc19zdXBwb3J0ZWRfZWlkAAAAAQAAAAAAAAADZWlkAAAAAAQAAAABAAAAAQ==",
|
|
60
|
-
"AAAAAAAAAEBSZXR1cm5zIFNlbmRBbmRSZWNlaXZlIHRvIGluZGljYXRlIGl0IGNhbiBibG9jayBib3RoIGRpcmVjdGlvbnMuAAAAEG1lc3NhZ2VfbGliX3R5cGUAAAAAAAAAAQAAB9AAAAAOTWVzc2FnZUxpYlR5cGUAAA==",
|
|
61
|
-
"AAAAAAAAADVBbHdheXMgcGFuaWNzIC0gY29uZmlnIG1vZGlmaWNhdGlvbiBpcyBub3Qgc3VwcG9ydGVkLgAAAAAAAApzZXRfY29uZmlnAAAAAAACAAAAAAAAAARvYXBwAAAAEwAAAAAAAAAFcGFyYW0AAAAAAAPqA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AAAlUdGxDb25maWcAAAAAAAAAAAAAAg==",
|
|
108
|
-
"AAAABQAAACpFdmVudCBlbWl0dGVkIHdoZW4gVFRMIGNvbmZpZ3MgYXJlIGZyb3plbi4AAAAAAAAAAAAQVHRsQ29uZmlnc0Zyb3plbgAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg=="
|
|
147
|
+
"AAAABQAAACpFdmVudCBlbWl0dGVkIHdoZW4gVFRMIGNvbmZpZ3MgYXJlIGZyb3plbi4AAAAAAAAAAAAQVHRsQ29uZmlnc0Zyb3plbgAAAAEAAAASdHRsX2NvbmZpZ3NfZnJvemVuAAAAAAAAAAAAAg==",
|
|
148
|
+
"AAAAAgAAAAAAAAAAAAAAEFR0bENvbmZpZ1N0b3JhZ2UAAAADAAAAAAAAAAAAAAAGRnJvemVuAAAAAAAAAAAAAAAAAAhJbnN0YW5jZQAAAAAAAAAAAAAAClBlcnNpc3RlbnQAAA==",
|
|
149
|
+
"AAAAAgAAAAAAAAAAAAAAElVwZ3JhZGVhYmxlU3RvcmFnZQAAAAAAAQAAAAAAAAAAAAAACU1pZ3JhdGluZwAAAA=="]), options);
|
|
109
150
|
this.options = options;
|
|
110
151
|
}
|
|
111
152
|
fromJSON = {
|
|
153
|
+
set_config: (this.txFromJSON),
|
|
112
154
|
get_config: (this.txFromJSON),
|
|
113
155
|
is_supported_eid: (this.txFromJSON),
|
|
114
|
-
message_lib_type: (this.txFromJSON),
|
|
115
|
-
set_config: (this.txFromJSON),
|
|
116
156
|
version: (this.txFromJSON),
|
|
157
|
+
message_lib_type: (this.txFromJSON),
|
|
117
158
|
quote: (this.txFromJSON),
|
|
118
159
|
send: (this.txFromJSON)
|
|
119
160
|
};
|