@layerzerolabs/protocol-stellar-v2 0.2.15 → 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 +350 -309
- package/.turbo/turbo-lint.log +146 -108
- package/.turbo/turbo-test.log +1423 -1238
- package/Cargo.lock +12 -0
- package/Cargo.toml +3 -0
- package/contracts/ERROR_SPEC.md +44 -0
- package/contracts/common-macros/src/auth.rs +113 -0
- package/contracts/common-macros/src/contract_ttl.rs +84 -0
- package/contracts/common-macros/src/lib.rs +181 -30
- package/contracts/common-macros/src/lz_contract.rs +83 -0
- package/contracts/common-macros/src/tests/{ownable.rs → auth.rs} +48 -15
- package/contracts/common-macros/src/tests/contract_ttl.rs +662 -0
- package/contracts/common-macros/src/tests/mod.rs +2 -2
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__auth__snapshot_generated_multisig_code.snap +20 -0
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__auth__snapshot_generated_ownable_code.snap +24 -0
- package/contracts/common-macros/src/tests/snapshots/{common_macros__tests__ownable__snapshot_only_owner_preserves_function_signature.snap → common_macros__tests__auth__snapshot_only_auth_preserves_function_signature.snap} +4 -4
- package/contracts/common-macros/src/tests/snapshots/{common_macros__tests__contract_impl__snapshot_generated_contract_impl_code.snap → common_macros__tests__contract_ttl__snapshot_generated_contractimpl_code.snap} +3 -3
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__contract_ttl__snapshot_generated_contracttrait_code.snap +69 -0
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__ttl_configurable__snapshot_generated_ttl_configurable_code.snap +7 -21
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__upgradeable__snapshot_generated_upgradeable_code.snap +2 -2
- package/contracts/common-macros/src/ttl_configurable.rs +19 -34
- package/contracts/common-macros/src/ttl_extendable.rs +36 -0
- package/contracts/common-macros/src/upgradeable.rs +5 -5
- package/contracts/common-macros/src/utils.rs +9 -0
- package/contracts/endpoint-v2/src/constants.rs +4 -4
- package/contracts/endpoint-v2/src/endpoint_v2.rs +38 -40
- package/contracts/endpoint-v2/src/errors.rs +4 -3
- package/contracts/endpoint-v2/src/events.rs +1 -1
- package/contracts/endpoint-v2/src/message_lib_manager.rs +18 -5
- package/contracts/endpoint-v2/src/messaging_channel.rs +11 -1
- package/contracts/endpoint-v2/src/messaging_composer.rs +11 -1
- package/contracts/endpoint-v2/src/storage.rs +1 -1
- package/contracts/endpoint-v2/src/tests/endpoint_v2/pay_messaging_fees.rs +3 -3
- package/contracts/endpoint-v2/src/tests/endpoint_v2/quote.rs +1 -1
- package/contracts/endpoint-v2/src/tests/endpoint_v2/require_oapp_auth.rs +2 -2
- package/contracts/endpoint-v2/src/tests/endpoint_v2/send.rs +3 -3
- package/contracts/endpoint-v2/src/tests/endpoint_v2/set_zro.rs +4 -4
- package/contracts/endpoint-v2/src/tests/message_lib_manager/require_receive_lib_for_eid.rs +3 -3
- package/contracts/endpoint-v2/src/tests/message_lib_manager/require_registered.rs +1 -1
- package/contracts/endpoint-v2/src/tests/message_lib_manager/require_send_lib_for_eid.rs +3 -3
- package/contracts/endpoint-v2/src/tests/message_lib_manager/require_supported_eid.rs +1 -1
- package/contracts/endpoint-v2/src/tests/messaging_channel/clear_payload.rs +4 -4
- package/contracts/endpoint-v2/src/tests/messaging_channel/inbound.rs +1 -1
- package/contracts/layerzero-views/src/layerzero_view.rs +3 -6
- package/contracts/macro-integration-tests/tests/runtime/ownable/mod.rs +2 -2
- package/contracts/macro-integration-tests/tests/runtime/ownable/{only_owner_guard.rs → only_auth_guard.rs} +1 -1
- package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/configuration.rs +1 -1
- package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/freeze.rs +1 -1
- package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/mod.rs +0 -1
- package/contracts/macro-integration-tests/tests/ui/ownable/fail/{only_owner_missing_env.rs → only_auth_missing_env.rs} +3 -3
- package/contracts/macro-integration-tests/tests/ui/ownable/fail/{only_owner_missing_env.stderr → only_auth_missing_env.stderr} +4 -4
- package/contracts/macro-integration-tests/tests/ui/ownable/pass/namespacing_and_imports.rs +2 -3
- package/contracts/macro-integration-tests/tests/ui/ownable/pass/{only_owner_env_param_variants.rs → only_auth_env_param_variants.rs} +9 -9
- package/contracts/macro-integration-tests/tests/ui/ttl_configurable/pass/minimal_contract.rs +6 -6
- package/contracts/message-libs/message-lib-common/src/errors.rs +7 -2
- package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/decode_packet_header.rs +3 -3
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/append_lz_receive_option.rs +1 -2
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/append_native_drop_option.rs +1 -2
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/convert_legacy_options.rs +9 -9
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/extract_type_3_options.rs +1 -1
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/left_pad_to_bytes32.rs +1 -1
- package/contracts/message-libs/message-lib-common/src/tests/worker_options/split_worker_options.rs +2 -2
- package/contracts/message-libs/simple-message-lib/src/simple_message_lib.rs +7 -9
- package/contracts/message-libs/treasury/src/errors.rs +2 -2
- package/contracts/message-libs/treasury/src/events.rs +1 -1
- package/contracts/message-libs/treasury/src/interfaces/zro_fee_lib.rs +2 -2
- package/contracts/message-libs/treasury/src/storage.rs +1 -1
- package/contracts/message-libs/treasury/src/tests/treasury_tests.rs +1 -1
- package/contracts/message-libs/treasury/src/treasury.rs +14 -16
- package/contracts/message-libs/uln-302/src/receive_uln.rs +13 -2
- package/contracts/message-libs/uln-302/src/send_uln.rs +23 -3
- package/contracts/message-libs/uln-302/src/uln302.rs +6 -24
- package/contracts/oapps/counter/Cargo.toml +14 -1
- package/contracts/oapps/counter/integration_tests/mod.rs +4 -1
- package/contracts/oapps/counter/integration_tests/{setup.rs → setup_sml.rs} +48 -80
- package/contracts/oapps/counter/integration_tests/setup_uln.rs +997 -0
- package/contracts/oapps/counter/integration_tests/signing.rs +62 -0
- package/contracts/oapps/counter/integration_tests/test_with_sml.rs +24 -55
- package/contracts/oapps/counter/integration_tests/test_with_uln.rs +314 -0
- package/contracts/oapps/counter/integration_tests/utils.rs +196 -53
- package/contracts/oapps/counter/src/counter.rs +67 -43
- package/contracts/oapps/counter/src/tests/mod.rs +0 -13
- package/contracts/oapps/counter/src/tests/test_counter.rs +5 -7
- package/contracts/oapps/oapp/src/errors.rs +5 -1
- package/contracts/oapps/oapp/src/macro_tests/test_macros.rs +93 -78
- package/contracts/oapps/oapp/src/oapp_core.rs +36 -21
- package/contracts/oapps/oapp/src/oapp_options_type3.rs +48 -12
- package/contracts/oapps/oapp/src/oapp_receiver.rs +106 -41
- package/contracts/oapps/oapp/src/oapp_sender.rs +26 -34
- package/contracts/oapps/oapp/src/tests/test_oapp_core.rs +9 -8
- package/contracts/oapps/oapp/src/tests/test_oapp_options_type3.rs +25 -17
- package/contracts/oapps/oapp/src/tests/test_oapp_receiver.rs +7 -7
- package/contracts/oapps/oapp/src/tests/test_oapp_sender.rs +14 -15
- package/contracts/oapps/oapp-macros/src/generators.rs +128 -0
- package/contracts/oapps/oapp-macros/src/lib.rs +113 -56
- package/contracts/oapps/oft/integration-tests/setup.rs +25 -7
- package/contracts/oapps/oft/src/errors.rs +6 -1
- package/contracts/oapps/oft/src/extensions/oft_fee.rs +8 -8
- package/contracts/oapps/oft/src/extensions/pausable.rs +4 -4
- package/contracts/oapps/oft/src/extensions/rate_limiter.rs +5 -5
- package/contracts/oapps/oft/src/lib.rs +4 -2
- package/contracts/oapps/oft/src/oft.rs +24 -64
- package/contracts/oapps/oft/src/oft_impl.rs +201 -0
- package/contracts/oapps/oft/src/oft_types/lock_unlock.rs +1 -3
- package/contracts/oapps/oft/src/oft_types/mint_burn.rs +1 -4
- package/contracts/oapps/oft/src/storage.rs +2 -0
- package/contracts/oapps/oft/src/tests/extensions/setup.rs +36 -22
- package/contracts/oapps/oft/src/tests/extensions/test_oft_fee.rs +5 -3
- package/contracts/oapps/oft/src/tests/extensions/test_pausable.rs +5 -3
- package/contracts/oapps/oft/src/tests/extensions/test_rate_limiter.rs +5 -3
- package/contracts/oapps/oft/src/tests/test_decimals.rs +2 -2
- package/contracts/oapps/oft/src/tests/test_oft_msg_codec.rs +1 -2
- package/contracts/oapps/oft/src/tests/test_utils.rs +45 -23
- package/contracts/oapps/oft/src/types.rs +20 -0
- package/contracts/oapps/oft-std/integration-tests/setup.rs +4 -2
- package/contracts/oapps/oft-std/src/oft.rs +24 -6
- package/contracts/upgrader/src/lib.rs +4 -4
- package/contracts/utils/src/auth.rs +44 -0
- package/contracts/utils/src/errors.rs +27 -5
- package/contracts/utils/src/lib.rs +3 -0
- package/contracts/utils/src/multisig.rs +211 -0
- package/contracts/utils/src/ownable.rs +12 -10
- package/contracts/utils/src/tests/buffer_reader.rs +6 -6
- package/contracts/utils/src/tests/buffer_writer.rs +6 -6
- package/contracts/utils/src/tests/bytes_ext.rs +2 -4
- package/contracts/utils/src/tests/mod.rs +1 -0
- package/contracts/utils/src/tests/multisig.rs +731 -0
- package/contracts/utils/src/tests/option_ext.rs +2 -5
- package/contracts/utils/src/tests/ownable.rs +16 -5
- package/contracts/utils/src/tests/ttl_configurable.rs +27 -16
- package/contracts/utils/src/tests/upgradeable.rs +4 -2
- package/contracts/utils/src/ttl_configurable.rs +23 -8
- package/contracts/utils/src/ttl_extendable.rs +27 -0
- package/contracts/utils/src/upgradeable.rs +2 -0
- package/contracts/workers/dvn/Cargo.toml +1 -1
- package/contracts/workers/dvn/src/auth.rs +7 -7
- package/contracts/workers/dvn/src/dvn.rs +10 -38
- package/contracts/workers/dvn/src/errors.rs +0 -7
- package/contracts/workers/dvn/src/events.rs +1 -14
- package/contracts/workers/dvn/src/interfaces/dvn.rs +2 -2
- package/contracts/workers/dvn/src/interfaces/mod.rs +0 -2
- package/contracts/workers/dvn/src/storage.rs +3 -13
- package/contracts/workers/dvn/src/tests/auth.rs +4 -4
- package/contracts/workers/dvn/src/tests/dvn.rs +1 -2
- package/contracts/workers/dvn/src/tests/multisig/set_signer.rs +7 -8
- package/contracts/workers/dvn/src/tests/multisig/set_threshold.rs +11 -8
- package/contracts/workers/dvn/src/tests/multisig/verify_signatures.rs +11 -12
- package/contracts/workers/dvn/src/tests/setup.rs +5 -5
- package/contracts/workers/dvn-fee-lib/Cargo.toml +1 -1
- package/contracts/workers/dvn-fee-lib/src/dvn_fee_lib.rs +3 -6
- package/contracts/workers/executor/src/auth.rs +80 -16
- package/contracts/workers/executor/src/executor.rs +5 -31
- package/contracts/workers/executor/src/storage.rs +2 -9
- package/contracts/workers/executor-fee-lib/Cargo.toml +1 -1
- package/contracts/workers/executor-fee-lib/src/executor_fee_lib.rs +3 -6
- package/contracts/workers/executor-helper/Cargo.toml +1 -1
- package/contracts/workers/executor-helper/src/executor_helper.rs +53 -73
- package/contracts/workers/price-feed/Cargo.toml +1 -1
- package/contracts/workers/price-feed/src/price_feed.rs +7 -10
- package/contracts/workers/worker/src/errors.rs +4 -0
- package/contracts/workers/worker/src/tests/worker.rs +7 -6
- package/contracts/workers/worker/src/worker.rs +20 -16
- package/package.json +8 -5
- package/sdk/.turbo/turbo-build.log +1 -0
- package/sdk/.turbo/turbo-test.log +1009 -0
- package/sdk/dist/generated/bml.d.ts +65 -8
- package/sdk/dist/generated/bml.js +70 -34
- package/sdk/dist/generated/counter.d.ts +167 -42
- package/sdk/dist/generated/counter.js +86 -45
- package/sdk/dist/generated/dvn.d.ts +282 -229
- package/sdk/dist/generated/dvn.js +119 -81
- package/sdk/dist/generated/dvn_fee_lib.d.ts +142 -67
- package/sdk/dist/generated/dvn_fee_lib.js +64 -24
- package/sdk/dist/generated/endpoint.d.ts +97 -22
- package/sdk/dist/generated/endpoint.js +75 -37
- package/sdk/dist/generated/executor.d.ts +117 -85
- package/sdk/dist/generated/executor.js +102 -59
- package/sdk/dist/generated/executor_fee_lib.d.ts +162 -78
- package/sdk/dist/generated/executor_fee_lib.js +104 -57
- package/sdk/dist/generated/executor_helper.d.ts +133 -21
- package/sdk/dist/generated/executor_helper.js +99 -50
- package/sdk/dist/generated/oft_std.d.ts +233 -55
- package/sdk/dist/generated/oft_std.js +99 -54
- package/sdk/dist/generated/price_feed.d.ts +142 -67
- package/sdk/dist/generated/price_feed.js +64 -24
- package/sdk/dist/generated/sml.d.ts +113 -32
- package/sdk/dist/generated/sml.js +93 -49
- package/sdk/dist/generated/treasury.d.ts +896 -0
- package/sdk/dist/generated/treasury.js +219 -0
- package/sdk/dist/generated/uln302.d.ts +113 -32
- package/sdk/dist/generated/uln302.js +93 -49
- package/sdk/dist/generated/upgrader.d.ts +2 -2
- package/sdk/dist/generated/upgrader.js +1 -1
- package/sdk/dist/index.d.ts +2 -0
- package/sdk/dist/index.js +3 -0
- package/sdk/dist/wasm/blocked-message-lib.d.ts +1 -0
- package/sdk/dist/wasm/blocked-message-lib.js +2 -0
- package/sdk/dist/wasm/counter.d.ts +1 -0
- package/sdk/dist/wasm/counter.js +2 -0
- package/sdk/dist/wasm/dvn-fee-lib.d.ts +1 -0
- package/sdk/dist/wasm/dvn-fee-lib.js +2 -0
- package/sdk/dist/wasm/dvn.d.ts +1 -0
- package/sdk/dist/wasm/dvn.js +2 -0
- package/sdk/dist/wasm/endpoint-v2.d.ts +1 -0
- package/sdk/dist/wasm/endpoint-v2.js +2 -0
- package/sdk/dist/wasm/executor-fee-lib.d.ts +1 -0
- package/sdk/dist/wasm/executor-fee-lib.js +2 -0
- package/sdk/dist/wasm/executor-helper.d.ts +1 -0
- package/sdk/dist/wasm/executor-helper.js +2 -0
- package/sdk/dist/wasm/executor.d.ts +1 -0
- package/sdk/dist/wasm/executor.js +2 -0
- package/sdk/dist/wasm/layerzero-views.d.ts +1 -0
- package/sdk/dist/wasm/layerzero-views.js +2 -0
- package/sdk/dist/wasm/oft-std.d.ts +1 -0
- package/sdk/dist/wasm/oft-std.js +2 -0
- package/sdk/dist/wasm/price-feed.d.ts +1 -0
- package/sdk/dist/wasm/price-feed.js +2 -0
- package/sdk/dist/wasm/simple-message-lib.d.ts +1 -0
- package/sdk/dist/wasm/simple-message-lib.js +2 -0
- package/sdk/dist/wasm/treasury.d.ts +1 -0
- package/sdk/dist/wasm/treasury.js +2 -0
- package/sdk/dist/wasm/uln302.d.ts +1 -0
- package/sdk/dist/wasm/uln302.js +2 -0
- package/sdk/dist/wasm/upgrader.d.ts +1 -0
- package/sdk/dist/wasm/upgrader.js +2 -0
- package/sdk/dist/wasm.d.ts +15 -0
- package/sdk/dist/wasm.js +15 -0
- package/sdk/package.json +4 -2
- package/sdk/src/index.ts +4 -0
- package/sdk/test/counter-sml.test.ts +376 -0
- package/sdk/test/counter-uln.test.ts +493 -0
- package/sdk/test/{oft.test.ts → oft-sml.test.ts} +185 -310
- package/sdk/test/suites/constants.ts +22 -2
- package/sdk/test/suites/globalSetup.ts +450 -0
- package/sdk/test/suites/localnet.ts +23 -6
- package/sdk/test/upgrader.test.ts +7 -16
- package/sdk/test/utils.ts +558 -85
- package/sdk/vitest.config.ts +21 -0
- package/tools/ts-bindings-gen/src/main.rs +1 -0
- package/turbo.json +2 -0
- package/contracts/common-macros/src/contract_impl.rs +0 -52
- package/contracts/common-macros/src/ownable.rs +0 -41
- package/contracts/common-macros/src/tests/contract_impl.rs +0 -386
- package/contracts/common-macros/src/tests/snapshots/common_macros__tests__ownable__snapshot_generated_ownable_code.snap +0 -12
- package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/extend_instance_ttl.rs +0 -50
- package/contracts/oapps/oapp-macros/src/oapp_core.rs +0 -41
- package/contracts/oapps/oapp-macros/src/oapp_full.rs +0 -21
- package/contracts/oapps/oapp-macros/src/oapp_options_type3.rs +0 -31
- package/contracts/oapps/oapp-macros/src/oapp_receiver.rs +0 -48
- package/contracts/oapps/oapp-macros/src/oapp_sender.rs +0 -21
- package/contracts/oapps/oapp-macros/src/util.rs +0 -107
- package/contracts/oapps/oft/src/constants.rs +0 -5
- package/contracts/oapps/oft/src/default_oft_impl.rs +0 -152
- package/contracts/workers/dvn/src/interfaces/multisig.rs +0 -56
- package/contracts/workers/dvn/src/multisig.rs +0 -157
- package/sdk/test/index.test.ts +0 -375
- /package/sdk/test/suites/{testUpgradeable.ts → dummyContractClient.ts} +0 -0
|
@@ -27,27 +27,6 @@ export declare const DvnError: {
|
|
|
27
27
|
7: {
|
|
28
28
|
message: string;
|
|
29
29
|
};
|
|
30
|
-
8: {
|
|
31
|
-
message: string;
|
|
32
|
-
};
|
|
33
|
-
9: {
|
|
34
|
-
message: string;
|
|
35
|
-
};
|
|
36
|
-
10: {
|
|
37
|
-
message: string;
|
|
38
|
-
};
|
|
39
|
-
11: {
|
|
40
|
-
message: string;
|
|
41
|
-
};
|
|
42
|
-
12: {
|
|
43
|
-
message: string;
|
|
44
|
-
};
|
|
45
|
-
13: {
|
|
46
|
-
message: string;
|
|
47
|
-
};
|
|
48
|
-
14: {
|
|
49
|
-
message: string;
|
|
50
|
-
};
|
|
51
30
|
};
|
|
52
31
|
/**
|
|
53
32
|
* Configuration for a destination chain.
|
|
@@ -133,12 +112,6 @@ export type Sender = {
|
|
|
133
112
|
values: readonly [Buffer, Buffer];
|
|
134
113
|
};
|
|
135
114
|
export type DvnStorage = {
|
|
136
|
-
tag: "Signers";
|
|
137
|
-
values: void;
|
|
138
|
-
} | {
|
|
139
|
-
tag: "Threshold";
|
|
140
|
-
values: void;
|
|
141
|
-
} | {
|
|
142
115
|
tag: "Vid";
|
|
143
116
|
values: void;
|
|
144
117
|
} | {
|
|
@@ -221,6 +194,9 @@ export declare const EndpointError: {
|
|
|
221
194
|
24: {
|
|
222
195
|
message: string;
|
|
223
196
|
};
|
|
197
|
+
25: {
|
|
198
|
+
message: string;
|
|
199
|
+
};
|
|
224
200
|
};
|
|
225
201
|
/**
|
|
226
202
|
* Parameters for sending a cross-chain message.
|
|
@@ -433,43 +409,52 @@ export interface FeesAndPacket {
|
|
|
433
409
|
*/
|
|
434
410
|
zro_fee_recipients: Array<FeeRecipient>;
|
|
435
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* PacketCodecV1Error: 1100-1109
|
|
414
|
+
*/
|
|
436
415
|
export declare const PacketCodecV1Error: {
|
|
437
|
-
|
|
416
|
+
1100: {
|
|
438
417
|
message: string;
|
|
439
418
|
};
|
|
440
|
-
|
|
419
|
+
1101: {
|
|
441
420
|
message: string;
|
|
442
421
|
};
|
|
443
422
|
};
|
|
423
|
+
/**
|
|
424
|
+
* WorkerOptionsError: 1110-1119
|
|
425
|
+
*/
|
|
444
426
|
export declare const WorkerOptionsError: {
|
|
445
|
-
|
|
427
|
+
1110: {
|
|
446
428
|
message: string;
|
|
447
429
|
};
|
|
448
|
-
|
|
430
|
+
1111: {
|
|
449
431
|
message: string;
|
|
450
432
|
};
|
|
451
|
-
|
|
433
|
+
1112: {
|
|
452
434
|
message: string;
|
|
453
435
|
};
|
|
454
|
-
|
|
436
|
+
1113: {
|
|
455
437
|
message: string;
|
|
456
438
|
};
|
|
457
|
-
|
|
439
|
+
1114: {
|
|
458
440
|
message: string;
|
|
459
441
|
};
|
|
460
|
-
|
|
442
|
+
1115: {
|
|
461
443
|
message: string;
|
|
462
444
|
};
|
|
463
|
-
|
|
445
|
+
1116: {
|
|
464
446
|
message: string;
|
|
465
447
|
};
|
|
466
|
-
|
|
448
|
+
1117: {
|
|
467
449
|
message: string;
|
|
468
450
|
};
|
|
469
|
-
|
|
451
|
+
1118: {
|
|
470
452
|
message: string;
|
|
471
453
|
};
|
|
472
454
|
};
|
|
455
|
+
/**
|
|
456
|
+
* BufferReaderError: 1000-1009
|
|
457
|
+
*/
|
|
473
458
|
export declare const BufferReaderError: {
|
|
474
459
|
1000: {
|
|
475
460
|
message: string;
|
|
@@ -478,40 +463,91 @@ export declare const BufferReaderError: {
|
|
|
478
463
|
message: string;
|
|
479
464
|
};
|
|
480
465
|
};
|
|
466
|
+
/**
|
|
467
|
+
* BufferWriterError: 1010-1019
|
|
468
|
+
*/
|
|
481
469
|
export declare const BufferWriterError: {
|
|
482
|
-
|
|
470
|
+
1010: {
|
|
483
471
|
message: string;
|
|
484
472
|
};
|
|
485
473
|
};
|
|
474
|
+
/**
|
|
475
|
+
* TtlConfigurableError: 1020-1029
|
|
476
|
+
*/
|
|
486
477
|
export declare const TtlConfigurableError: {
|
|
487
|
-
|
|
478
|
+
1020: {
|
|
488
479
|
message: string;
|
|
489
480
|
};
|
|
490
|
-
|
|
481
|
+
1021: {
|
|
491
482
|
message: string;
|
|
492
483
|
};
|
|
493
|
-
|
|
484
|
+
1022: {
|
|
494
485
|
message: string;
|
|
495
486
|
};
|
|
496
487
|
};
|
|
488
|
+
/**
|
|
489
|
+
* OwnableError: 1030-1039
|
|
490
|
+
*/
|
|
497
491
|
export declare const OwnableError: {
|
|
498
|
-
|
|
492
|
+
1030: {
|
|
499
493
|
message: string;
|
|
500
494
|
};
|
|
501
|
-
|
|
495
|
+
1031: {
|
|
502
496
|
message: string;
|
|
503
497
|
};
|
|
504
498
|
};
|
|
499
|
+
/**
|
|
500
|
+
* BytesExtError: 1040-1049
|
|
501
|
+
*/
|
|
505
502
|
export declare const BytesExtError: {
|
|
506
|
-
|
|
503
|
+
1040: {
|
|
507
504
|
message: string;
|
|
508
505
|
};
|
|
509
506
|
};
|
|
507
|
+
/**
|
|
508
|
+
* UpgradeableError: 1050-1059
|
|
509
|
+
*/
|
|
510
510
|
export declare const UpgradeableError: {
|
|
511
|
-
|
|
511
|
+
1050: {
|
|
512
|
+
message: string;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* MultisigError: 1060-1069
|
|
517
|
+
*/
|
|
518
|
+
export declare const MultisigError: {
|
|
519
|
+
1060: {
|
|
520
|
+
message: string;
|
|
521
|
+
};
|
|
522
|
+
1061: {
|
|
523
|
+
message: string;
|
|
524
|
+
};
|
|
525
|
+
1062: {
|
|
526
|
+
message: string;
|
|
527
|
+
};
|
|
528
|
+
1063: {
|
|
529
|
+
message: string;
|
|
530
|
+
};
|
|
531
|
+
1064: {
|
|
532
|
+
message: string;
|
|
533
|
+
};
|
|
534
|
+
1065: {
|
|
535
|
+
message: string;
|
|
536
|
+
};
|
|
537
|
+
1066: {
|
|
538
|
+
message: string;
|
|
539
|
+
};
|
|
540
|
+
1067: {
|
|
512
541
|
message: string;
|
|
513
542
|
};
|
|
514
543
|
};
|
|
544
|
+
export type MultisigStorage = {
|
|
545
|
+
tag: "Signers";
|
|
546
|
+
values: void;
|
|
547
|
+
} | {
|
|
548
|
+
tag: "Threshold";
|
|
549
|
+
values: void;
|
|
550
|
+
};
|
|
515
551
|
export type OwnableStorage = {
|
|
516
552
|
tag: "Owner";
|
|
517
553
|
values: void;
|
|
@@ -543,6 +579,9 @@ export type UpgradeableStorage = {
|
|
|
543
579
|
tag: "Migrating";
|
|
544
580
|
values: void;
|
|
545
581
|
};
|
|
582
|
+
/**
|
|
583
|
+
* WorkerError: 1200-1299
|
|
584
|
+
*/
|
|
546
585
|
export declare const WorkerError: {
|
|
547
586
|
1200: {
|
|
548
587
|
message: string;
|
|
@@ -800,168 +839,6 @@ export type WorkerStorage = {
|
|
|
800
839
|
values: void;
|
|
801
840
|
};
|
|
802
841
|
export interface Client {
|
|
803
|
-
/**
|
|
804
|
-
* Construct and simulate a set_signer 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.
|
|
805
|
-
* Adds or removes a signer. Requires multisig approval.
|
|
806
|
-
*/
|
|
807
|
-
set_signer: ({ signer, active }: {
|
|
808
|
-
signer: Buffer;
|
|
809
|
-
active: boolean;
|
|
810
|
-
}, txnOptions?: {
|
|
811
|
-
/**
|
|
812
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
813
|
-
*/
|
|
814
|
-
fee?: number;
|
|
815
|
-
/**
|
|
816
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
817
|
-
*/
|
|
818
|
-
timeoutInSeconds?: number;
|
|
819
|
-
/**
|
|
820
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
821
|
-
*/
|
|
822
|
-
simulate?: boolean;
|
|
823
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
824
|
-
/**
|
|
825
|
-
* Construct and simulate a set_threshold 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.
|
|
826
|
-
* Updates the signature threshold. Requires multisig approval.
|
|
827
|
-
*/
|
|
828
|
-
set_threshold: ({ threshold }: {
|
|
829
|
-
threshold: u32;
|
|
830
|
-
}, txnOptions?: {
|
|
831
|
-
/**
|
|
832
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
833
|
-
*/
|
|
834
|
-
fee?: number;
|
|
835
|
-
/**
|
|
836
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
837
|
-
*/
|
|
838
|
-
timeoutInSeconds?: number;
|
|
839
|
-
/**
|
|
840
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
841
|
-
*/
|
|
842
|
-
simulate?: boolean;
|
|
843
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
844
|
-
/**
|
|
845
|
-
* Construct and simulate a get_signers 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.
|
|
846
|
-
* Returns the list of all registered signers.
|
|
847
|
-
*/
|
|
848
|
-
get_signers: (txnOptions?: {
|
|
849
|
-
/**
|
|
850
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
851
|
-
*/
|
|
852
|
-
fee?: number;
|
|
853
|
-
/**
|
|
854
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
855
|
-
*/
|
|
856
|
-
timeoutInSeconds?: number;
|
|
857
|
-
/**
|
|
858
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
859
|
-
*/
|
|
860
|
-
simulate?: boolean;
|
|
861
|
-
}) => Promise<AssembledTransaction<Array<Buffer>>>;
|
|
862
|
-
/**
|
|
863
|
-
* Construct and simulate a total_signers 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.
|
|
864
|
-
* Returns the total number of registered signers.
|
|
865
|
-
*/
|
|
866
|
-
total_signers: (txnOptions?: {
|
|
867
|
-
/**
|
|
868
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
869
|
-
*/
|
|
870
|
-
fee?: number;
|
|
871
|
-
/**
|
|
872
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
873
|
-
*/
|
|
874
|
-
timeoutInSeconds?: number;
|
|
875
|
-
/**
|
|
876
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
877
|
-
*/
|
|
878
|
-
simulate?: boolean;
|
|
879
|
-
}) => Promise<AssembledTransaction<u32>>;
|
|
880
|
-
/**
|
|
881
|
-
* Construct and simulate a is_signer 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.
|
|
882
|
-
* Checks if an address is a registered signer.
|
|
883
|
-
*/
|
|
884
|
-
is_signer: ({ signer }: {
|
|
885
|
-
signer: Buffer;
|
|
886
|
-
}, txnOptions?: {
|
|
887
|
-
/**
|
|
888
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
889
|
-
*/
|
|
890
|
-
fee?: number;
|
|
891
|
-
/**
|
|
892
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
893
|
-
*/
|
|
894
|
-
timeoutInSeconds?: number;
|
|
895
|
-
/**
|
|
896
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
897
|
-
*/
|
|
898
|
-
simulate?: boolean;
|
|
899
|
-
}) => Promise<AssembledTransaction<boolean>>;
|
|
900
|
-
/**
|
|
901
|
-
* Construct and simulate a threshold 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.
|
|
902
|
-
* Returns the current signature threshold.
|
|
903
|
-
*/
|
|
904
|
-
threshold: (txnOptions?: {
|
|
905
|
-
/**
|
|
906
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
907
|
-
*/
|
|
908
|
-
fee?: number;
|
|
909
|
-
/**
|
|
910
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
911
|
-
*/
|
|
912
|
-
timeoutInSeconds?: number;
|
|
913
|
-
/**
|
|
914
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
915
|
-
*/
|
|
916
|
-
simulate?: boolean;
|
|
917
|
-
}) => Promise<AssembledTransaction<u32>>;
|
|
918
|
-
/**
|
|
919
|
-
* Construct and simulate a verify_signatures 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.
|
|
920
|
-
* Verifies signatures against the current threshold.
|
|
921
|
-
*/
|
|
922
|
-
verify_signatures: ({ hash, signatures }: {
|
|
923
|
-
hash: Buffer;
|
|
924
|
-
signatures: Array<Buffer>;
|
|
925
|
-
}, txnOptions?: {
|
|
926
|
-
/**
|
|
927
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
928
|
-
*/
|
|
929
|
-
fee?: number;
|
|
930
|
-
/**
|
|
931
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
932
|
-
*/
|
|
933
|
-
timeoutInSeconds?: number;
|
|
934
|
-
/**
|
|
935
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
936
|
-
*/
|
|
937
|
-
simulate?: boolean;
|
|
938
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
939
|
-
/**
|
|
940
|
-
* Construct and simulate a verify_n_signatures 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.
|
|
941
|
-
* Verifies that at least `threshold` valid signatures exist for the given hash.
|
|
942
|
-
*
|
|
943
|
-
* Signatures must be:
|
|
944
|
-
* - From registered signers
|
|
945
|
-
* - Sorted by signer address (ascending, no duplicates)
|
|
946
|
-
*/
|
|
947
|
-
verify_n_signatures: ({ hash, signatures, threshold }: {
|
|
948
|
-
hash: Buffer;
|
|
949
|
-
signatures: Array<Buffer>;
|
|
950
|
-
threshold: u32;
|
|
951
|
-
}, txnOptions?: {
|
|
952
|
-
/**
|
|
953
|
-
* The fee to pay for the transaction. Default: BASE_FEE
|
|
954
|
-
*/
|
|
955
|
-
fee?: number;
|
|
956
|
-
/**
|
|
957
|
-
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
958
|
-
*/
|
|
959
|
-
timeoutInSeconds?: number;
|
|
960
|
-
/**
|
|
961
|
-
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
962
|
-
*/
|
|
963
|
-
simulate?: boolean;
|
|
964
|
-
}) => Promise<AssembledTransaction<null>>;
|
|
965
842
|
/**
|
|
966
843
|
* Construct and simulate a set_paused 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.
|
|
967
844
|
* Sets the paused state of the worker.
|
|
@@ -1738,18 +1615,9 @@ export interface Client {
|
|
|
1738
1615
|
simulate?: boolean;
|
|
1739
1616
|
}) => Promise<AssembledTransaction<null>>;
|
|
1740
1617
|
/**
|
|
1741
|
-
* Construct and simulate a
|
|
1742
|
-
* Extends the instance TTL.
|
|
1743
|
-
*
|
|
1744
|
-
* # Arguments
|
|
1745
|
-
*
|
|
1746
|
-
* * `threshold` - The threshold to extend the TTL.
|
|
1747
|
-
* * `extend_to` - The TTL to extend to.
|
|
1618
|
+
* Construct and simulate a authorizer 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.
|
|
1748
1619
|
*/
|
|
1749
|
-
|
|
1750
|
-
threshold: u32;
|
|
1751
|
-
extend_to: u32;
|
|
1752
|
-
}, txnOptions?: {
|
|
1620
|
+
authorizer: (txnOptions?: {
|
|
1753
1621
|
/**
|
|
1754
1622
|
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1755
1623
|
*/
|
|
@@ -1762,7 +1630,7 @@ export interface Client {
|
|
|
1762
1630
|
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1763
1631
|
*/
|
|
1764
1632
|
simulate?: boolean;
|
|
1765
|
-
}) => Promise<AssembledTransaction<
|
|
1633
|
+
}) => Promise<AssembledTransaction<string>>;
|
|
1766
1634
|
/**
|
|
1767
1635
|
* Construct and simulate a set_ttl_configs 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.
|
|
1768
1636
|
* Sets TTL configs for instance and persistent storage.
|
|
@@ -1855,6 +1723,190 @@ export interface Client {
|
|
|
1855
1723
|
*/
|
|
1856
1724
|
simulate?: boolean;
|
|
1857
1725
|
}) => Promise<AssembledTransaction<boolean>>;
|
|
1726
|
+
/**
|
|
1727
|
+
* Construct and simulate a extend_instance_ttl 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.
|
|
1728
|
+
* Extends the instance TTL.
|
|
1729
|
+
*
|
|
1730
|
+
* # Arguments
|
|
1731
|
+
*
|
|
1732
|
+
* * `threshold` - The threshold to extend the TTL (if current TTL is below this, extend).
|
|
1733
|
+
* * `extend_to` - The TTL to extend to.
|
|
1734
|
+
*/
|
|
1735
|
+
extend_instance_ttl: ({ threshold, extend_to }: {
|
|
1736
|
+
threshold: u32;
|
|
1737
|
+
extend_to: u32;
|
|
1738
|
+
}, txnOptions?: {
|
|
1739
|
+
/**
|
|
1740
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1741
|
+
*/
|
|
1742
|
+
fee?: number;
|
|
1743
|
+
/**
|
|
1744
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1745
|
+
*/
|
|
1746
|
+
timeoutInSeconds?: number;
|
|
1747
|
+
/**
|
|
1748
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1749
|
+
*/
|
|
1750
|
+
simulate?: boolean;
|
|
1751
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
1752
|
+
/**
|
|
1753
|
+
* Construct and simulate a set_signer 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.
|
|
1754
|
+
* Adds or removes a signer from the multisig. Requires owner authorization.
|
|
1755
|
+
*/
|
|
1756
|
+
set_signer: ({ signer, active }: {
|
|
1757
|
+
signer: Buffer;
|
|
1758
|
+
active: boolean;
|
|
1759
|
+
}, txnOptions?: {
|
|
1760
|
+
/**
|
|
1761
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1762
|
+
*/
|
|
1763
|
+
fee?: number;
|
|
1764
|
+
/**
|
|
1765
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1766
|
+
*/
|
|
1767
|
+
timeoutInSeconds?: number;
|
|
1768
|
+
/**
|
|
1769
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1770
|
+
*/
|
|
1771
|
+
simulate?: boolean;
|
|
1772
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
1773
|
+
/**
|
|
1774
|
+
* Construct and simulate a set_threshold 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.
|
|
1775
|
+
* Sets the signature threshold (quorum). Requires owner authorization.
|
|
1776
|
+
*/
|
|
1777
|
+
set_threshold: ({ threshold }: {
|
|
1778
|
+
threshold: u32;
|
|
1779
|
+
}, txnOptions?: {
|
|
1780
|
+
/**
|
|
1781
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1782
|
+
*/
|
|
1783
|
+
fee?: number;
|
|
1784
|
+
/**
|
|
1785
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1786
|
+
*/
|
|
1787
|
+
timeoutInSeconds?: number;
|
|
1788
|
+
/**
|
|
1789
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1790
|
+
*/
|
|
1791
|
+
simulate?: boolean;
|
|
1792
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
1793
|
+
/**
|
|
1794
|
+
* Construct and simulate a get_signers 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.
|
|
1795
|
+
* Returns all registered signers.
|
|
1796
|
+
*/
|
|
1797
|
+
get_signers: (txnOptions?: {
|
|
1798
|
+
/**
|
|
1799
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1800
|
+
*/
|
|
1801
|
+
fee?: number;
|
|
1802
|
+
/**
|
|
1803
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1804
|
+
*/
|
|
1805
|
+
timeoutInSeconds?: number;
|
|
1806
|
+
/**
|
|
1807
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1808
|
+
*/
|
|
1809
|
+
simulate?: boolean;
|
|
1810
|
+
}) => Promise<AssembledTransaction<Array<Buffer>>>;
|
|
1811
|
+
/**
|
|
1812
|
+
* Construct and simulate a total_signers 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.
|
|
1813
|
+
* Returns the total number of registered signers.
|
|
1814
|
+
*/
|
|
1815
|
+
total_signers: (txnOptions?: {
|
|
1816
|
+
/**
|
|
1817
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1818
|
+
*/
|
|
1819
|
+
fee?: number;
|
|
1820
|
+
/**
|
|
1821
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1822
|
+
*/
|
|
1823
|
+
timeoutInSeconds?: number;
|
|
1824
|
+
/**
|
|
1825
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1826
|
+
*/
|
|
1827
|
+
simulate?: boolean;
|
|
1828
|
+
}) => Promise<AssembledTransaction<u32>>;
|
|
1829
|
+
/**
|
|
1830
|
+
* Construct and simulate a is_signer 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.
|
|
1831
|
+
* Checks if an address is a registered signer.
|
|
1832
|
+
*/
|
|
1833
|
+
is_signer: ({ signer }: {
|
|
1834
|
+
signer: Buffer;
|
|
1835
|
+
}, txnOptions?: {
|
|
1836
|
+
/**
|
|
1837
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1838
|
+
*/
|
|
1839
|
+
fee?: number;
|
|
1840
|
+
/**
|
|
1841
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1842
|
+
*/
|
|
1843
|
+
timeoutInSeconds?: number;
|
|
1844
|
+
/**
|
|
1845
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1846
|
+
*/
|
|
1847
|
+
simulate?: boolean;
|
|
1848
|
+
}) => Promise<AssembledTransaction<boolean>>;
|
|
1849
|
+
/**
|
|
1850
|
+
* Construct and simulate a threshold 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.
|
|
1851
|
+
* Returns the current signature threshold (quorum).
|
|
1852
|
+
*/
|
|
1853
|
+
threshold: (txnOptions?: {
|
|
1854
|
+
/**
|
|
1855
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1856
|
+
*/
|
|
1857
|
+
fee?: number;
|
|
1858
|
+
/**
|
|
1859
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1860
|
+
*/
|
|
1861
|
+
timeoutInSeconds?: number;
|
|
1862
|
+
/**
|
|
1863
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1864
|
+
*/
|
|
1865
|
+
simulate?: boolean;
|
|
1866
|
+
}) => Promise<AssembledTransaction<u32>>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Construct and simulate a verify_signatures 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.
|
|
1869
|
+
* Verifies signatures against the configured threshold.
|
|
1870
|
+
*/
|
|
1871
|
+
verify_signatures: ({ digest, signatures }: {
|
|
1872
|
+
digest: Buffer;
|
|
1873
|
+
signatures: Array<Buffer>;
|
|
1874
|
+
}, txnOptions?: {
|
|
1875
|
+
/**
|
|
1876
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1877
|
+
*/
|
|
1878
|
+
fee?: number;
|
|
1879
|
+
/**
|
|
1880
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1881
|
+
*/
|
|
1882
|
+
timeoutInSeconds?: number;
|
|
1883
|
+
/**
|
|
1884
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1885
|
+
*/
|
|
1886
|
+
simulate?: boolean;
|
|
1887
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Construct and simulate a verify_n_signatures 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.
|
|
1890
|
+
* Verifies signatures against a custom threshold.
|
|
1891
|
+
*/
|
|
1892
|
+
verify_n_signatures: ({ digest, signatures, threshold }: {
|
|
1893
|
+
digest: Buffer;
|
|
1894
|
+
signatures: Array<Buffer>;
|
|
1895
|
+
threshold: u32;
|
|
1896
|
+
}, txnOptions?: {
|
|
1897
|
+
/**
|
|
1898
|
+
* The fee to pay for the transaction. Default: BASE_FEE
|
|
1899
|
+
*/
|
|
1900
|
+
fee?: number;
|
|
1901
|
+
/**
|
|
1902
|
+
* The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
|
|
1903
|
+
*/
|
|
1904
|
+
timeoutInSeconds?: number;
|
|
1905
|
+
/**
|
|
1906
|
+
* Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
|
|
1907
|
+
*/
|
|
1908
|
+
simulate?: boolean;
|
|
1909
|
+
}) => Promise<AssembledTransaction<null>>;
|
|
1858
1910
|
}
|
|
1859
1911
|
export declare class Client extends ContractClient {
|
|
1860
1912
|
readonly options: ContractClientOptions;
|
|
@@ -1882,14 +1934,6 @@ export declare class Client extends ContractClient {
|
|
|
1882
1934
|
}): Promise<AssembledTransaction<T>>;
|
|
1883
1935
|
constructor(options: ContractClientOptions);
|
|
1884
1936
|
readonly fromJSON: {
|
|
1885
|
-
set_signer: (json: string) => AssembledTransaction<null>;
|
|
1886
|
-
set_threshold: (json: string) => AssembledTransaction<null>;
|
|
1887
|
-
get_signers: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>[]>;
|
|
1888
|
-
total_signers: (json: string) => AssembledTransaction<number>;
|
|
1889
|
-
is_signer: (json: string) => AssembledTransaction<boolean>;
|
|
1890
|
-
threshold: (json: string) => AssembledTransaction<number>;
|
|
1891
|
-
verify_signatures: (json: string) => AssembledTransaction<null>;
|
|
1892
|
-
verify_n_signatures: (json: string) => AssembledTransaction<null>;
|
|
1893
1937
|
set_paused: (json: string) => AssembledTransaction<null>;
|
|
1894
1938
|
set_supported_message_lib: (json: string) => AssembledTransaction<null>;
|
|
1895
1939
|
set_allowlist: (json: string) => AssembledTransaction<null>;
|
|
@@ -1923,10 +1967,19 @@ export declare class Client extends ContractClient {
|
|
|
1923
1967
|
quorum_change_admin: (json: string) => AssembledTransaction<null>;
|
|
1924
1968
|
upgrade: (json: string) => AssembledTransaction<null>;
|
|
1925
1969
|
migrate: (json: string) => AssembledTransaction<null>;
|
|
1926
|
-
|
|
1970
|
+
authorizer: (json: string) => AssembledTransaction<string>;
|
|
1927
1971
|
set_ttl_configs: (json: string) => AssembledTransaction<null>;
|
|
1928
1972
|
ttl_configs: (json: string) => AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>;
|
|
1929
1973
|
freeze_ttl_configs: (json: string) => AssembledTransaction<null>;
|
|
1930
1974
|
is_ttl_configs_frozen: (json: string) => AssembledTransaction<boolean>;
|
|
1975
|
+
extend_instance_ttl: (json: string) => AssembledTransaction<null>;
|
|
1976
|
+
set_signer: (json: string) => AssembledTransaction<null>;
|
|
1977
|
+
set_threshold: (json: string) => AssembledTransaction<null>;
|
|
1978
|
+
get_signers: (json: string) => AssembledTransaction<Buffer<ArrayBufferLike>[]>;
|
|
1979
|
+
total_signers: (json: string) => AssembledTransaction<number>;
|
|
1980
|
+
is_signer: (json: string) => AssembledTransaction<boolean>;
|
|
1981
|
+
threshold: (json: string) => AssembledTransaction<number>;
|
|
1982
|
+
verify_signatures: (json: string) => AssembledTransaction<null>;
|
|
1983
|
+
verify_n_signatures: (json: string) => AssembledTransaction<null>;
|
|
1931
1984
|
};
|
|
1932
1985
|
}
|