@layerzerolabs/protocol-stellar-v2 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.
Files changed (435) hide show
  1. package/.turbo/turbo-build.log +484 -337
  2. package/.turbo/turbo-lint.log +126 -56
  3. package/.turbo/turbo-test.log +1403 -984
  4. package/Cargo.lock +142 -3
  5. package/Cargo.toml +5 -1
  6. package/contracts/ERROR_SPEC.md +44 -0
  7. package/contracts/common-macros/src/auth.rs +113 -0
  8. package/contracts/common-macros/src/contract_ttl.rs +84 -0
  9. package/contracts/common-macros/src/lib.rs +219 -29
  10. package/contracts/common-macros/src/lz_contract.rs +83 -0
  11. package/contracts/common-macros/src/storage.rs +1 -1
  12. package/contracts/common-macros/src/tests/{ownable.rs → auth.rs} +48 -15
  13. package/contracts/common-macros/src/tests/contract_ttl.rs +662 -0
  14. package/contracts/common-macros/src/tests/mod.rs +3 -2
  15. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__auth__snapshot_generated_multisig_code.snap +20 -0
  16. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__auth__snapshot_generated_ownable_code.snap +24 -0
  17. 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
  18. 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} +26 -10
  19. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__contract_ttl__snapshot_generated_contracttrait_code.snap +69 -0
  20. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__storage__snapshot_generated_storage_code.snap +48 -48
  21. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__ttl_configurable__snapshot_generated_ttl_configurable_code.snap +7 -41
  22. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__upgradeable__snapshot_generated_upgradeable_code.snap +21 -0
  23. package/contracts/common-macros/src/tests/upgradeable.rs +31 -0
  24. package/contracts/common-macros/src/ttl_configurable.rs +21 -66
  25. package/contracts/common-macros/src/ttl_extendable.rs +36 -0
  26. package/contracts/common-macros/src/upgradeable.rs +76 -0
  27. package/contracts/common-macros/src/utils.rs +9 -0
  28. package/contracts/endpoint-v2/src/constants.rs +4 -4
  29. package/contracts/endpoint-v2/src/endpoint_v2.rs +58 -36
  30. package/contracts/endpoint-v2/src/errors.rs +4 -3
  31. package/contracts/endpoint-v2/src/events.rs +1 -1
  32. package/contracts/endpoint-v2/src/message_lib_manager.rs +18 -5
  33. package/contracts/endpoint-v2/src/messaging_channel.rs +11 -1
  34. package/contracts/endpoint-v2/src/messaging_composer.rs +11 -1
  35. package/contracts/endpoint-v2/src/storage.rs +1 -1
  36. package/contracts/endpoint-v2/src/tests/endpoint_setup.rs +175 -8
  37. package/contracts/endpoint-v2/src/tests/endpoint_v2/build_outbound_packet.rs +76 -0
  38. package/contracts/endpoint-v2/src/tests/endpoint_v2/clear.rs +342 -159
  39. package/contracts/endpoint-v2/src/tests/endpoint_v2/delegate.rs +3 -15
  40. package/contracts/endpoint-v2/src/tests/endpoint_v2/initializable.rs +20 -31
  41. package/contracts/endpoint-v2/src/tests/endpoint_v2/lz_receive_alert.rs +126 -164
  42. package/contracts/endpoint-v2/src/tests/endpoint_v2/mod.rs +1 -0
  43. package/contracts/endpoint-v2/src/tests/endpoint_v2/native_token.rs +0 -1
  44. package/contracts/endpoint-v2/src/tests/endpoint_v2/owner.rs +0 -1
  45. package/contracts/endpoint-v2/src/tests/endpoint_v2/pay_messaging_fees.rs +311 -304
  46. package/contracts/endpoint-v2/src/tests/endpoint_v2/quote.rs +423 -96
  47. package/contracts/endpoint-v2/src/tests/endpoint_v2/recover_token.rs +1 -1
  48. package/contracts/endpoint-v2/src/tests/endpoint_v2/require_oapp_auth.rs +47 -20
  49. package/contracts/endpoint-v2/src/tests/endpoint_v2/send.rs +373 -403
  50. package/contracts/endpoint-v2/src/tests/endpoint_v2/set_delegate.rs +96 -22
  51. package/contracts/endpoint-v2/src/tests/endpoint_v2/set_zro.rs +62 -10
  52. package/contracts/endpoint-v2/src/tests/endpoint_v2/transfer_ownership.rs +4 -4
  53. package/contracts/endpoint-v2/src/tests/endpoint_v2/ttl_config.rs +8 -11
  54. package/contracts/endpoint-v2/src/tests/endpoint_v2/verifiable.rs +81 -30
  55. package/contracts/endpoint-v2/src/tests/endpoint_v2/verify.rs +209 -76
  56. package/contracts/endpoint-v2/src/tests/endpoint_v2/zro.rs +0 -1
  57. package/contracts/endpoint-v2/src/tests/message_lib_manager/default_receive_library.rs +24 -0
  58. package/contracts/endpoint-v2/src/tests/message_lib_manager/default_receive_library_timeout.rs +40 -0
  59. package/contracts/endpoint-v2/src/tests/message_lib_manager/default_send_library.rs +24 -0
  60. package/contracts/endpoint-v2/src/tests/message_lib_manager/get_config.rs +108 -0
  61. package/contracts/endpoint-v2/src/tests/message_lib_manager/get_library_index.rs +52 -0
  62. package/contracts/endpoint-v2/src/tests/message_lib_manager/get_receive_library.rs +92 -0
  63. package/contracts/endpoint-v2/src/tests/message_lib_manager/get_registered_libraries.rs +74 -0
  64. package/contracts/endpoint-v2/src/tests/message_lib_manager/get_send_library.rs +83 -0
  65. package/contracts/endpoint-v2/src/tests/message_lib_manager/is_registered_library.rs +32 -0
  66. package/contracts/endpoint-v2/src/tests/message_lib_manager/is_supported_eid.rs +28 -0
  67. package/contracts/endpoint-v2/src/tests/message_lib_manager/is_valid_receive_library.rs +261 -0
  68. package/contracts/endpoint-v2/src/tests/message_lib_manager/mod.rs +16 -0
  69. package/contracts/endpoint-v2/src/tests/message_lib_manager/receive_library_timeout.rs +62 -0
  70. package/contracts/endpoint-v2/src/tests/message_lib_manager/register_library.rs +65 -43
  71. package/contracts/endpoint-v2/src/tests/message_lib_manager/registered_libraries_count.rs +42 -0
  72. package/contracts/endpoint-v2/src/tests/message_lib_manager/require_receive_lib_for_eid.rs +61 -0
  73. package/contracts/endpoint-v2/src/tests/message_lib_manager/require_registered.rs +4 -6
  74. package/contracts/endpoint-v2/src/tests/message_lib_manager/require_send_lib_for_eid.rs +59 -0
  75. package/contracts/endpoint-v2/src/tests/message_lib_manager/require_supported_eid.rs +16 -2
  76. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_config.rs +155 -51
  77. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_default_receive_lib_timeout.rs +114 -92
  78. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_default_receive_library.rs +235 -132
  79. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_default_send_library.rs +93 -87
  80. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_receive_library.rs +346 -245
  81. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_receive_library_timeout.rs +406 -60
  82. package/contracts/endpoint-v2/src/tests/message_lib_manager/set_send_library.rs +252 -78
  83. package/contracts/endpoint-v2/src/tests/message_lib_manager/timeout.rs +102 -0
  84. package/contracts/endpoint-v2/src/tests/messaging_channel/burn.rs +212 -273
  85. package/contracts/endpoint-v2/src/tests/messaging_channel/clear_payload.rs +203 -0
  86. package/contracts/endpoint-v2/src/tests/messaging_channel/inbound.rs +94 -0
  87. package/contracts/endpoint-v2/src/tests/messaging_channel/inbound_nonce.rs +78 -248
  88. package/contracts/endpoint-v2/src/tests/messaging_channel/inbound_payload_hash.rs +7 -282
  89. package/contracts/endpoint-v2/src/tests/messaging_channel/lazy_inbound_nonce.rs +6 -274
  90. package/contracts/endpoint-v2/src/tests/messaging_channel/mod.rs +3 -2
  91. package/contracts/endpoint-v2/src/tests/messaging_channel/next_guid.rs +86 -178
  92. package/contracts/endpoint-v2/src/tests/messaging_channel/nilify.rs +328 -212
  93. package/contracts/endpoint-v2/src/tests/messaging_channel/outbound.rs +68 -0
  94. package/contracts/endpoint-v2/src/tests/messaging_channel/outbound_nonce.rs +6 -209
  95. package/contracts/endpoint-v2/src/tests/messaging_channel/skip.rs +207 -159
  96. package/contracts/endpoint-v2/src/tests/messaging_composer/clear_compose.rs +142 -153
  97. package/contracts/endpoint-v2/src/tests/messaging_composer/compose_queue.rs +6 -179
  98. package/contracts/endpoint-v2/src/tests/messaging_composer/lz_compose_alert.rs +163 -221
  99. package/contracts/endpoint-v2/src/tests/messaging_composer/send_compose.rs +90 -121
  100. package/contracts/endpoint-v2/src/tests/mock.rs +18 -4
  101. package/contracts/endpoint-v2/src/tests/util/build_payload.rs +4 -70
  102. package/contracts/endpoint-v2/src/tests/util/compute_guid.rs +2 -1
  103. package/contracts/endpoint-v2/src/tests/util/keccak256.rs +17 -106
  104. package/contracts/layerzero-views/Cargo.toml +35 -0
  105. package/contracts/layerzero-views/src/errors.rs +10 -0
  106. package/contracts/layerzero-views/src/layerzero_view.rs +226 -0
  107. package/contracts/layerzero-views/src/lib.rs +38 -0
  108. package/contracts/layerzero-views/src/storage.rs +18 -0
  109. package/contracts/layerzero-views/src/tests/layerzero_view_tests.rs +423 -0
  110. package/contracts/layerzero-views/src/tests/mod.rs +4 -0
  111. package/contracts/layerzero-views/src/tests/setup.rs +377 -0
  112. package/contracts/layerzero-views/src/types.rs +50 -0
  113. package/contracts/macro-integration-tests/Cargo.toml +30 -0
  114. package/contracts/macro-integration-tests/src/lib.rs +1 -0
  115. package/contracts/macro-integration-tests/tests/runtime/ownable/initialization.rs +62 -0
  116. package/contracts/macro-integration-tests/tests/runtime/ownable/mod.rs +22 -0
  117. package/contracts/macro-integration-tests/tests/runtime/ownable/only_auth_guard.rs +97 -0
  118. package/contracts/macro-integration-tests/tests/runtime/ownable/ownership_transfer.rs +101 -0
  119. package/contracts/macro-integration-tests/tests/runtime/storage/keyed_roundtrip.rs +225 -0
  120. package/contracts/macro-integration-tests/tests/runtime/storage/mod.rs +4 -0
  121. package/contracts/macro-integration-tests/tests/runtime/storage/name_override_runtime.rs +52 -0
  122. package/contracts/macro-integration-tests/tests/runtime/storage/ttl_extension.rs +261 -0
  123. package/contracts/macro-integration-tests/tests/runtime/storage/unkeyed_roundtrip.rs +137 -0
  124. package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/configuration.rs +113 -0
  125. package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/freeze.rs +139 -0
  126. package/contracts/macro-integration-tests/tests/runtime/ttl_configurable/mod.rs +2 -0
  127. package/contracts/macro-integration-tests/tests/runtime.rs +5 -0
  128. package/contracts/macro-integration-tests/tests/ui/error/fail/attr_not_empty.rs +12 -0
  129. package/contracts/macro-integration-tests/tests/ui/error/fail/attr_not_empty.stderr +7 -0
  130. package/contracts/macro-integration-tests/tests/ui/error/fail/decreasing_discriminant.rs +12 -0
  131. package/contracts/macro-integration-tests/tests/ui/error/fail/decreasing_discriminant.stderr +7 -0
  132. package/contracts/macro-integration-tests/tests/ui/error/fail/non_int_discriminant.rs +21 -0
  133. package/contracts/macro-integration-tests/tests/ui/error/fail/non_int_discriminant.stderr +7 -0
  134. package/contracts/macro-integration-tests/tests/ui/error/fail/non_unit_variant.rs +13 -0
  135. package/contracts/macro-integration-tests/tests/ui/error/fail/non_unit_variant.stderr +7 -0
  136. package/contracts/macro-integration-tests/tests/ui/error/pass/attr_on_variant_allowed.rs +20 -0
  137. package/contracts/macro-integration-tests/tests/ui/error/pass/basic_auto_discriminants.rs +15 -0
  138. package/contracts/macro-integration-tests/tests/ui/error/pass/mixed_discriminants.rs +16 -0
  139. package/contracts/macro-integration-tests/tests/ui/ownable/fail/only_auth_missing_env.rs +22 -0
  140. package/contracts/macro-integration-tests/tests/ui/ownable/fail/only_auth_missing_env.stderr +16 -0
  141. package/contracts/macro-integration-tests/tests/ui/ownable/pass/minimal_contract.rs +26 -0
  142. package/contracts/macro-integration-tests/tests/ui/ownable/pass/namespacing_and_imports.rs +21 -0
  143. package/contracts/macro-integration-tests/tests/ui/ownable/pass/only_auth_env_param_variants.rs +46 -0
  144. package/contracts/macro-integration-tests/tests/ui/storage/fail/invalid_storage_type_param.rs +13 -0
  145. package/contracts/macro-integration-tests/tests/ui/storage/fail/invalid_storage_type_param.stderr +7 -0
  146. package/contracts/macro-integration-tests/tests/ui/storage/fail/missing_storage_type_param.rs +13 -0
  147. package/contracts/macro-integration-tests/tests/ui/storage/fail/missing_storage_type_param.stderr +7 -0
  148. package/contracts/macro-integration-tests/tests/ui/storage/fail/multiple_storage_kinds.rs +10 -0
  149. package/contracts/macro-integration-tests/tests/ui/storage/fail/multiple_storage_kinds.stderr +7 -0
  150. package/contracts/macro-integration-tests/tests/ui/storage/fail/multiple_type_params.rs +12 -0
  151. package/contracts/macro-integration-tests/tests/ui/storage/fail/multiple_type_params.stderr +7 -0
  152. package/contracts/macro-integration-tests/tests/ui/storage/fail/no_ttl_extension_on_non_persistent.rs +10 -0
  153. package/contracts/macro-integration-tests/tests/ui/storage/fail/no_ttl_extension_on_non_persistent.stderr +7 -0
  154. package/contracts/macro-integration-tests/tests/ui/storage/fail/non_enum_input.rs +10 -0
  155. package/contracts/macro-integration-tests/tests/ui/storage/fail/non_enum_input.stderr +7 -0
  156. package/contracts/macro-integration-tests/tests/ui/storage/fail/storage_attr_rejects_args.rs +12 -0
  157. package/contracts/macro-integration-tests/tests/ui/storage/fail/storage_attr_rejects_args.stderr +7 -0
  158. package/contracts/macro-integration-tests/tests/ui/storage/fail/tuple_variant_rejected.rs +13 -0
  159. package/contracts/macro-integration-tests/tests/ui/storage/fail/tuple_variant_rejected.stderr +7 -0
  160. package/contracts/macro-integration-tests/tests/ui/storage/fail/unknown_variant_attr.rs +13 -0
  161. package/contracts/macro-integration-tests/tests/ui/storage/fail/unknown_variant_attr.stderr +7 -0
  162. package/contracts/macro-integration-tests/tests/ui/storage/pass/default_value_on_variant.rs +14 -0
  163. package/contracts/macro-integration-tests/tests/ui/storage/pass/enum_instance_unit_basic.rs +14 -0
  164. package/contracts/macro-integration-tests/tests/ui/storage/pass/enum_persistent_named_fields_keyed.rs +16 -0
  165. package/contracts/macro-integration-tests/tests/ui/storage/pass/enum_temporary_unit_option.rs +15 -0
  166. package/contracts/macro-integration-tests/tests/ui/storage/pass/name_override.rs +14 -0
  167. package/contracts/macro-integration-tests/tests/ui/storage/pass/no_auto_ttl_extension.rs +19 -0
  168. package/contracts/macro-integration-tests/tests/ui/storage/pass/ttl_provider_basic.rs +15 -0
  169. package/contracts/macro-integration-tests/tests/ui/ttl_configurable/pass/minimal_contract.rs +44 -0
  170. package/contracts/macro-integration-tests/tests/ui_error.rs +11 -0
  171. package/contracts/macro-integration-tests/tests/ui_ownable.rs +11 -0
  172. package/contracts/macro-integration-tests/tests/ui_storage.rs +11 -0
  173. package/contracts/macro-integration-tests/tests/ui_ttl_configurable.rs +12 -0
  174. package/contracts/message-libs/blocked-message-lib/src/lib.rs +17 -17
  175. package/contracts/message-libs/message-lib-common/src/errors.rs +7 -2
  176. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/decode_packet_header.rs +64 -0
  177. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/encode_packet.rs +58 -0
  178. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/encode_packet_header.rs +138 -0
  179. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/mod.rs +6 -0
  180. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/payload.rs +30 -0
  181. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/payload_hash.rs +15 -0
  182. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1/test_helper.rs +39 -0
  183. package/contracts/message-libs/message-lib-common/src/tests/worker_options/append_dvn_option.rs +57 -0
  184. package/contracts/message-libs/message-lib-common/src/tests/worker_options/append_lz_receive_option.rs +49 -0
  185. package/contracts/message-libs/message-lib-common/src/tests/worker_options/append_native_drop_option.rs +73 -0
  186. package/contracts/message-libs/message-lib-common/src/tests/worker_options/convert_legacy_options.rs +280 -0
  187. package/contracts/message-libs/message-lib-common/src/tests/worker_options/extract_type_3_options.rs +126 -0
  188. package/contracts/message-libs/message-lib-common/src/tests/worker_options/left_pad_to_bytes32.rs +48 -0
  189. package/contracts/message-libs/message-lib-common/src/tests/worker_options/mod.rs +7 -0
  190. package/contracts/message-libs/message-lib-common/src/tests/worker_options/split_worker_options.rs +139 -0
  191. package/contracts/message-libs/message-lib-common/src/worker_options.rs +31 -1
  192. package/contracts/message-libs/simple-message-lib/src/simple_message_lib.rs +7 -9
  193. package/contracts/message-libs/treasury/src/errors.rs +2 -3
  194. package/contracts/message-libs/treasury/src/events.rs +1 -1
  195. package/contracts/message-libs/treasury/src/interfaces/zro_fee_lib.rs +2 -2
  196. package/contracts/message-libs/treasury/src/lib.rs +3 -3
  197. package/contracts/message-libs/treasury/src/storage.rs +3 -1
  198. package/contracts/message-libs/treasury/src/tests/treasury_tests.rs +1 -1
  199. package/contracts/message-libs/treasury/src/treasury.rs +23 -26
  200. package/contracts/message-libs/uln-302/Cargo.toml +1 -1
  201. package/contracts/message-libs/uln-302/src/errors.rs +0 -5
  202. package/contracts/message-libs/uln-302/src/events.rs +5 -6
  203. package/contracts/message-libs/uln-302/src/receive_uln.rs +37 -56
  204. package/contracts/message-libs/uln-302/src/send_uln.rs +112 -138
  205. package/contracts/message-libs/uln-302/src/storage.rs +5 -5
  206. package/contracts/message-libs/uln-302/src/tests/receive_uln302/effective_receive_uln_config.rs +5 -7
  207. package/contracts/message-libs/uln-302/src/tests/receive_uln302/set_default_receive_uln_configs.rs +3 -3
  208. package/contracts/message-libs/uln-302/src/tests/send_uln302/effective_send_uln_config.rs +6 -9
  209. package/contracts/message-libs/uln-302/src/tests/send_uln302/set_default_executor_configs.rs +2 -2
  210. package/contracts/message-libs/uln-302/src/tests/send_uln302/set_default_send_uln_configs.rs +3 -3
  211. package/contracts/message-libs/uln-302/src/tests/setup.rs +9 -0
  212. package/contracts/message-libs/uln-302/src/tests/testing_utils.rs +5 -0
  213. package/contracts/message-libs/uln-302/src/tests/uln302/get_app_receive_uln_config.rs +1 -2
  214. package/contracts/message-libs/uln-302/src/tests/uln302/get_app_send_uln_config.rs +1 -2
  215. package/contracts/message-libs/uln-302/src/tests/uln302/set_config.rs +37 -55
  216. package/contracts/message-libs/uln-302/src/uln302.rs +10 -25
  217. package/contracts/oapps/counter/Cargo.toml +14 -1
  218. package/contracts/oapps/counter/integration_tests/mod.rs +4 -1
  219. package/contracts/oapps/counter/integration_tests/setup_sml.rs +169 -0
  220. package/contracts/oapps/counter/integration_tests/setup_uln.rs +997 -0
  221. package/contracts/oapps/counter/integration_tests/signing.rs +62 -0
  222. package/contracts/oapps/counter/integration_tests/test_with_sml.rs +24 -55
  223. package/contracts/oapps/counter/integration_tests/test_with_uln.rs +314 -0
  224. package/contracts/oapps/counter/integration_tests/utils.rs +196 -53
  225. package/contracts/oapps/counter/src/counter.rs +67 -44
  226. package/contracts/oapps/counter/src/tests/mod.rs +0 -13
  227. package/contracts/oapps/counter/src/tests/test_counter.rs +5 -7
  228. package/contracts/oapps/oapp/src/errors.rs +5 -1
  229. package/contracts/oapps/oapp/src/macro_tests/test_macros.rs +318 -221
  230. package/contracts/oapps/oapp/src/oapp_core.rs +36 -21
  231. package/contracts/oapps/oapp/src/oapp_options_type3.rs +48 -12
  232. package/contracts/oapps/oapp/src/oapp_receiver.rs +106 -41
  233. package/contracts/oapps/oapp/src/oapp_sender.rs +26 -34
  234. package/contracts/oapps/oapp/src/tests/test_oapp_core.rs +9 -9
  235. package/contracts/oapps/oapp/src/tests/test_oapp_options_type3.rs +25 -18
  236. package/contracts/oapps/oapp/src/tests/test_oapp_receiver.rs +7 -8
  237. package/contracts/oapps/oapp/src/tests/test_oapp_sender.rs +14 -16
  238. package/contracts/oapps/oapp-macros/src/generators.rs +128 -0
  239. package/contracts/oapps/oapp-macros/src/lib.rs +211 -0
  240. package/contracts/oapps/oft/integration-tests/setup.rs +34 -9
  241. package/contracts/oapps/oft/integration-tests/utils.rs +1 -1
  242. package/contracts/oapps/oft/src/errors.rs +6 -1
  243. package/contracts/oapps/oft/src/extensions/oft_fee.rs +13 -13
  244. package/contracts/oapps/oft/src/extensions/pausable.rs +5 -5
  245. package/contracts/oapps/oft/src/extensions/rate_limiter.rs +23 -23
  246. package/contracts/oapps/oft/src/lib.rs +4 -2
  247. package/contracts/oapps/oft/src/oft.rs +31 -71
  248. package/contracts/oapps/oft/src/oft_impl.rs +201 -0
  249. package/contracts/oapps/oft/src/oft_types/lock_unlock.rs +2 -4
  250. package/contracts/oapps/oft/src/oft_types/mint_burn.rs +1 -4
  251. package/contracts/oapps/oft/src/storage.rs +2 -0
  252. package/contracts/oapps/oft/src/tests/extensions/setup.rs +60 -31
  253. package/contracts/oapps/oft/src/tests/extensions/test_oft_fee.rs +5 -3
  254. package/contracts/oapps/oft/src/tests/extensions/test_pausable.rs +5 -3
  255. package/contracts/oapps/oft/src/tests/extensions/test_rate_limiter.rs +6 -4
  256. package/contracts/oapps/oft/src/tests/test_decimals.rs +2 -2
  257. package/contracts/oapps/oft/src/tests/test_oft_msg_codec.rs +1 -2
  258. package/contracts/oapps/oft/src/tests/test_send.rs +4 -4
  259. package/contracts/oapps/oft/src/tests/test_utils.rs +122 -81
  260. package/contracts/oapps/oft/src/types.rs +20 -0
  261. package/contracts/oapps/oft-std/Cargo.toml +6 -0
  262. package/contracts/oapps/oft-std/integration-tests/extensions/mod.rs +3 -0
  263. package/contracts/oapps/oft-std/integration-tests/extensions/test_oft_fee.rs +157 -0
  264. package/contracts/oapps/oft-std/integration-tests/extensions/test_pausable.rs +162 -0
  265. package/contracts/oapps/oft-std/integration-tests/extensions/test_rate_limiter.rs +186 -0
  266. package/contracts/oapps/oft-std/integration-tests/mod.rs +3 -0
  267. package/contracts/oapps/{counter/integration_tests → oft-std/integration-tests}/setup.rs +76 -30
  268. package/contracts/oapps/oft-std/integration-tests/utils.rs +427 -0
  269. package/contracts/oapps/oft-std/src/lib.rs +12 -1
  270. package/contracts/oapps/oft-std/src/oft.rs +141 -26
  271. package/contracts/upgrader/Cargo.toml +19 -0
  272. package/contracts/upgrader/src/lib.rs +96 -0
  273. package/contracts/upgrader/src/tests/mod.rs +1 -0
  274. package/contracts/upgrader/src/tests/test_data/test_upgradeable_contract1.wasm +0 -0
  275. package/contracts/upgrader/src/tests/test_data/test_upgradeable_contract2.wasm +0 -0
  276. package/contracts/upgrader/src/tests/test_upgrader.rs +120 -0
  277. package/contracts/utils/src/auth.rs +44 -0
  278. package/contracts/utils/src/errors.rs +32 -5
  279. package/contracts/utils/src/lib.rs +5 -1
  280. package/contracts/utils/src/multisig.rs +211 -0
  281. package/contracts/utils/src/ownable.rs +50 -60
  282. package/contracts/utils/src/tests/buffer_reader.rs +6 -6
  283. package/contracts/utils/src/tests/buffer_writer.rs +6 -6
  284. package/contracts/utils/src/tests/bytes_ext.rs +2 -4
  285. package/contracts/utils/src/tests/mod.rs +4 -1
  286. package/contracts/utils/src/tests/multisig.rs +731 -0
  287. package/contracts/utils/src/tests/option_ext.rs +18 -0
  288. package/contracts/utils/src/tests/ownable.rs +22 -70
  289. package/contracts/utils/src/tests/ttl_configurable.rs +607 -0
  290. package/contracts/utils/src/tests/upgradeable.rs +290 -0
  291. package/contracts/utils/src/ttl_configurable.rs +153 -0
  292. package/contracts/utils/src/ttl_extendable.rs +27 -0
  293. package/contracts/utils/src/upgradeable.rs +56 -0
  294. package/contracts/workers/dvn/Cargo.toml +2 -2
  295. package/contracts/workers/dvn/src/auth.rs +24 -35
  296. package/contracts/workers/dvn/src/dvn.rs +23 -14
  297. package/contracts/workers/dvn/src/errors.rs +1 -7
  298. package/contracts/workers/dvn/src/events.rs +1 -14
  299. package/contracts/workers/dvn/src/interfaces/dvn.rs +2 -2
  300. package/contracts/workers/dvn/src/interfaces/mod.rs +0 -2
  301. package/contracts/workers/dvn/src/storage.rs +3 -13
  302. package/contracts/workers/dvn/src/tests/auth.rs +4 -4
  303. package/contracts/workers/dvn/src/tests/dvn.rs +1 -2
  304. package/contracts/workers/dvn/src/tests/multisig/set_signer.rs +7 -8
  305. package/contracts/workers/dvn/src/tests/multisig/set_threshold.rs +11 -8
  306. package/contracts/workers/dvn/src/tests/multisig/verify_signatures.rs +11 -12
  307. package/contracts/workers/dvn/src/tests/setup.rs +5 -5
  308. package/contracts/workers/dvn-fee-lib/Cargo.toml +0 -1
  309. package/contracts/workers/dvn-fee-lib/src/dvn_fee_lib.rs +45 -16
  310. package/contracts/workers/dvn-fee-lib/src/errors.rs +3 -2
  311. package/contracts/workers/dvn-fee-lib/src/lib.rs +5 -11
  312. package/contracts/workers/dvn-fee-lib/src/tests/dvn_fee_lib.rs +30 -16
  313. package/contracts/workers/executor/src/auth.rs +80 -16
  314. package/contracts/workers/executor/src/executor.rs +17 -29
  315. package/contracts/workers/executor/src/storage.rs +2 -9
  316. package/contracts/workers/executor-fee-lib/Cargo.toml +1 -1
  317. package/contracts/workers/executor-fee-lib/src/errors.rs +9 -7
  318. package/contracts/workers/executor-fee-lib/src/executor_fee_lib.rs +153 -121
  319. package/contracts/workers/executor-helper/Cargo.toml +1 -6
  320. package/contracts/workers/executor-helper/src/executor_helper.rs +53 -73
  321. package/contracts/workers/executor-helper/src/lib.rs +1 -7
  322. package/contracts/workers/price-feed/Cargo.toml +1 -2
  323. package/contracts/workers/price-feed/src/errors.rs +3 -2
  324. package/contracts/workers/price-feed/src/lib.rs +5 -6
  325. package/contracts/workers/price-feed/src/price_feed.rs +42 -23
  326. package/contracts/workers/worker/Cargo.toml +4 -0
  327. package/contracts/workers/worker/src/errors.rs +4 -0
  328. package/contracts/workers/worker/src/interfaces/price_feed.rs +3 -3
  329. package/contracts/workers/worker/src/lib.rs +2 -2
  330. package/contracts/workers/worker/src/tests/mod.rs +4 -0
  331. package/contracts/workers/worker/src/tests/setup.rs +147 -0
  332. package/contracts/workers/worker/src/tests/worker.rs +502 -0
  333. package/contracts/workers/worker/src/worker.rs +28 -30
  334. package/package.json +8 -5
  335. package/sdk/.turbo/turbo-build.log +1 -0
  336. package/sdk/.turbo/turbo-test.log +1009 -0
  337. package/sdk/dist/generated/bml.d.ts +104 -37
  338. package/sdk/dist/generated/bml.js +83 -42
  339. package/sdk/dist/generated/counter.d.ts +334 -175
  340. package/sdk/dist/generated/counter.js +109 -63
  341. package/sdk/dist/generated/dvn.d.ts +1985 -0
  342. package/sdk/dist/generated/dvn.js +326 -0
  343. package/sdk/dist/generated/dvn_fee_lib.d.ts +690 -0
  344. package/sdk/dist/generated/dvn_fee_lib.js +163 -0
  345. package/sdk/dist/generated/endpoint.d.ts +155 -46
  346. package/sdk/dist/generated/endpoint.js +93 -50
  347. package/sdk/dist/generated/executor.d.ts +1841 -0
  348. package/sdk/dist/generated/executor.js +312 -0
  349. package/sdk/dist/generated/executor_fee_lib.d.ts +1083 -0
  350. package/sdk/dist/generated/executor_fee_lib.js +255 -0
  351. package/sdk/dist/generated/executor_helper.d.ts +981 -0
  352. package/sdk/dist/generated/executor_helper.js +236 -0
  353. package/sdk/dist/generated/oft_std.d.ts +1722 -0
  354. package/sdk/dist/generated/oft_std.js +316 -0
  355. package/sdk/dist/generated/price_feed.d.ts +1077 -0
  356. package/sdk/dist/generated/price_feed.js +210 -0
  357. package/sdk/dist/generated/sml.d.ts +171 -56
  358. package/sdk/dist/generated/sml.js +111 -62
  359. package/sdk/dist/generated/treasury.d.ts +896 -0
  360. package/sdk/dist/generated/treasury.js +219 -0
  361. package/sdk/dist/generated/uln302.d.ts +175 -75
  362. package/sdk/dist/generated/uln302.js +126 -82
  363. package/sdk/dist/generated/upgrader.d.ts +70 -0
  364. package/sdk/dist/generated/upgrader.js +19 -0
  365. package/sdk/dist/index.d.ts +10 -0
  366. package/sdk/dist/index.js +14 -0
  367. package/sdk/dist/wasm/blocked-message-lib.d.ts +1 -0
  368. package/sdk/dist/wasm/blocked-message-lib.js +2 -0
  369. package/sdk/dist/wasm/counter.d.ts +1 -0
  370. package/sdk/dist/wasm/counter.js +2 -0
  371. package/sdk/dist/wasm/dvn-fee-lib.d.ts +1 -0
  372. package/sdk/dist/wasm/dvn-fee-lib.js +2 -0
  373. package/sdk/dist/wasm/dvn.d.ts +1 -0
  374. package/sdk/dist/wasm/dvn.js +2 -0
  375. package/sdk/dist/wasm/endpoint-v2.d.ts +1 -0
  376. package/sdk/dist/wasm/endpoint-v2.js +2 -0
  377. package/sdk/dist/wasm/executor-fee-lib.d.ts +1 -0
  378. package/sdk/dist/wasm/executor-fee-lib.js +2 -0
  379. package/sdk/dist/wasm/executor-helper.d.ts +1 -0
  380. package/sdk/dist/wasm/executor-helper.js +2 -0
  381. package/sdk/dist/wasm/executor.d.ts +1 -0
  382. package/sdk/dist/wasm/executor.js +2 -0
  383. package/sdk/dist/wasm/layerzero-views.d.ts +1 -0
  384. package/sdk/dist/wasm/layerzero-views.js +2 -0
  385. package/sdk/dist/wasm/oft-std.d.ts +1 -0
  386. package/sdk/dist/wasm/oft-std.js +2 -0
  387. package/sdk/dist/wasm/price-feed.d.ts +1 -0
  388. package/sdk/dist/wasm/price-feed.js +2 -0
  389. package/sdk/dist/wasm/simple-message-lib.d.ts +1 -0
  390. package/sdk/dist/wasm/simple-message-lib.js +2 -0
  391. package/sdk/dist/wasm/treasury.d.ts +1 -0
  392. package/sdk/dist/wasm/treasury.js +2 -0
  393. package/sdk/dist/wasm/uln302.d.ts +1 -0
  394. package/sdk/dist/wasm/uln302.js +2 -0
  395. package/sdk/dist/wasm/upgrader.d.ts +1 -0
  396. package/sdk/dist/wasm/upgrader.js +2 -0
  397. package/sdk/dist/wasm.d.ts +15 -0
  398. package/sdk/dist/wasm.js +15 -0
  399. package/sdk/package.json +7 -4
  400. package/sdk/src/index.ts +17 -0
  401. package/sdk/test/counter-sml.test.ts +376 -0
  402. package/sdk/test/counter-uln.test.ts +493 -0
  403. package/sdk/test/{oft.test.ts → oft-sml.test.ts} +187 -323
  404. package/sdk/test/suites/constants.ts +22 -2
  405. package/sdk/test/suites/dummyContractClient.ts +169 -0
  406. package/sdk/test/suites/globalSetup.ts +450 -0
  407. package/sdk/test/suites/localnet.ts +23 -6
  408. package/sdk/test/upgrader.test.ts +300 -0
  409. package/sdk/test/utils.ts +558 -85
  410. package/sdk/vitest.config.ts +21 -0
  411. package/tools/ts-bindings-gen/src/main.rs +12 -1
  412. package/turbo.json +2 -0
  413. package/contracts/common-macros/src/contract_impl.rs +0 -47
  414. package/contracts/common-macros/src/ownable.rs +0 -59
  415. package/contracts/common-macros/src/tests/contract_impl.rs +0 -381
  416. package/contracts/common-macros/src/tests/snapshots/common_macros__tests__ownable__snapshot_generated_ownable_code.snap +0 -32
  417. package/contracts/endpoint-v2/src/tests/messaging_channel/clear.rs +0 -316
  418. package/contracts/endpoint-v2/src/tests/messaging_channel/internal.rs +0 -388
  419. package/contracts/message-libs/message-lib-common/src/tests/packet_codec_v1.rs +0 -162
  420. package/contracts/message-libs/message-lib-common/src/tests/worker_options.rs +0 -319
  421. package/contracts/oapp-macros/src/lib.rs +0 -154
  422. package/contracts/oapp-macros/src/oapp_core.rs +0 -40
  423. package/contracts/oapp-macros/src/oapp_full.rs +0 -21
  424. package/contracts/oapp-macros/src/oapp_options_type3.rs +0 -31
  425. package/contracts/oapp-macros/src/oapp_receiver.rs +0 -48
  426. package/contracts/oapp-macros/src/oapp_sender.rs +0 -21
  427. package/contracts/oapp-macros/src/util.rs +0 -107
  428. package/contracts/oapps/oft/src/constants.rs +0 -5
  429. package/contracts/oapps/oft/src/default_oft_impl.rs +0 -146
  430. package/contracts/utils/src/tests/ttl.rs +0 -421
  431. package/contracts/utils/src/ttl.rs +0 -123
  432. package/contracts/workers/dvn/src/interfaces/multisig.rs +0 -56
  433. package/contracts/workers/dvn/src/multisig.rs +0 -153
  434. package/sdk/test/index.test.ts +0 -376
  435. /package/contracts/{oapp-macros → oapps/oapp-macros}/Cargo.toml +0 -0
@@ -0,0 +1,1083 @@
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, u128, i128, Option } 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
+ export type MigrationData = void;
8
+ export declare const ExecutorFeeLibError: {
9
+ 1: {
10
+ message: string;
11
+ };
12
+ 2: {
13
+ message: string;
14
+ };
15
+ 3: {
16
+ message: string;
17
+ };
18
+ 4: {
19
+ message: string;
20
+ };
21
+ 5: {
22
+ message: string;
23
+ };
24
+ 6: {
25
+ message: string;
26
+ };
27
+ 7: {
28
+ message: string;
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
+ };
46
+ export declare const EndpointError: {
47
+ 1: {
48
+ message: string;
49
+ };
50
+ 2: {
51
+ message: string;
52
+ };
53
+ 3: {
54
+ message: string;
55
+ };
56
+ 4: {
57
+ message: string;
58
+ };
59
+ 5: {
60
+ message: string;
61
+ };
62
+ 6: {
63
+ message: string;
64
+ };
65
+ 7: {
66
+ message: string;
67
+ };
68
+ 8: {
69
+ message: string;
70
+ };
71
+ 9: {
72
+ message: string;
73
+ };
74
+ 10: {
75
+ message: string;
76
+ };
77
+ 11: {
78
+ message: string;
79
+ };
80
+ 12: {
81
+ message: string;
82
+ };
83
+ 13: {
84
+ message: string;
85
+ };
86
+ 14: {
87
+ message: string;
88
+ };
89
+ 15: {
90
+ message: string;
91
+ };
92
+ 16: {
93
+ message: string;
94
+ };
95
+ 17: {
96
+ message: string;
97
+ };
98
+ 18: {
99
+ message: string;
100
+ };
101
+ 19: {
102
+ message: string;
103
+ };
104
+ 20: {
105
+ message: string;
106
+ };
107
+ 21: {
108
+ message: string;
109
+ };
110
+ 22: {
111
+ message: string;
112
+ };
113
+ 23: {
114
+ message: string;
115
+ };
116
+ 24: {
117
+ message: string;
118
+ };
119
+ 25: {
120
+ message: string;
121
+ };
122
+ };
123
+ /**
124
+ * Parameters for sending a cross-chain message.
125
+ */
126
+ export interface MessagingParams {
127
+ /**
128
+ * Destination endpoint ID (chain identifier).
129
+ */
130
+ dst_eid: u32;
131
+ /**
132
+ * The message payload to send.
133
+ */
134
+ message: Buffer;
135
+ /**
136
+ * Encoded executor and DVN options.
137
+ */
138
+ options: Buffer;
139
+ /**
140
+ * Whether to pay fees in ZRO token instead of native token.
141
+ */
142
+ pay_in_zro: boolean;
143
+ /**
144
+ * Receiver address on the destination chain (32 bytes).
145
+ */
146
+ receiver: Buffer;
147
+ }
148
+ /**
149
+ * Source message information identifying where a cross-chain message came from.
150
+ */
151
+ export interface Origin {
152
+ /**
153
+ * Nonce for this pathway.
154
+ */
155
+ nonce: u64;
156
+ /**
157
+ * Sender address on the source chain (32 bytes).
158
+ */
159
+ sender: Buffer;
160
+ /**
161
+ * Source endpoint ID (chain identifier).
162
+ */
163
+ src_eid: u32;
164
+ }
165
+ /**
166
+ * Fee structure for cross-chain messaging.
167
+ */
168
+ export interface MessagingFee {
169
+ /**
170
+ * Fee paid in native token (XLM).
171
+ */
172
+ native_fee: i128;
173
+ /**
174
+ * Fee paid in ZRO token (LayerZero token).
175
+ */
176
+ zro_fee: i128;
177
+ }
178
+ /**
179
+ * Receipt returned after successfully sending a cross-chain message.
180
+ */
181
+ export interface MessagingReceipt {
182
+ /**
183
+ * The fees charged for sending the message.
184
+ */
185
+ fee: MessagingFee;
186
+ /**
187
+ * Globally unique identifier for the message.
188
+ */
189
+ guid: Buffer;
190
+ /**
191
+ * The outbound nonce for this pathway.
192
+ */
193
+ nonce: u64;
194
+ }
195
+ /**
196
+ * Type of message library indicating supported operations.
197
+ */
198
+ export type MessageLibType = {
199
+ tag: "Send";
200
+ values: void;
201
+ } | {
202
+ tag: "Receive";
203
+ values: void;
204
+ } | {
205
+ tag: "SendAndReceive";
206
+ values: void;
207
+ };
208
+ /**
209
+ * Version information for a message library.
210
+ *
211
+ * Note: `minor` and `endpoint_version` use `u32` instead of `u8` because Stellar does not
212
+ * support `u8` types in contract interface functions.
213
+ */
214
+ export interface MessageLibVersion {
215
+ /**
216
+ * Endpoint version (should not exceed u8::MAX = 255).
217
+ */
218
+ endpoint_version: u32;
219
+ /**
220
+ * Major version number.
221
+ */
222
+ major: u64;
223
+ /**
224
+ * Minor version number (should not exceed u8::MAX = 255).
225
+ */
226
+ minor: u32;
227
+ }
228
+ /**
229
+ * Timeout configuration for receive library transitions.
230
+ */
231
+ export interface Timeout {
232
+ /**
233
+ * Unix timestamp when the timeout expires.
234
+ */
235
+ expiry: u64;
236
+ /**
237
+ * The new library address to transition to.
238
+ */
239
+ lib: string;
240
+ }
241
+ /**
242
+ * Parameters for setting message library configuration.
243
+ */
244
+ export interface SetConfigParam {
245
+ /**
246
+ * XDR-encoded configuration data.
247
+ */
248
+ config: Buffer;
249
+ /**
250
+ * The type of configuration (e.g., executor, ULN).
251
+ */
252
+ config_type: u32;
253
+ /**
254
+ * The endpoint ID this config applies to.
255
+ */
256
+ eid: u32;
257
+ }
258
+ /**
259
+ * Resolved library information with default status.
260
+ */
261
+ export interface ResolvedLibrary {
262
+ /**
263
+ * Whether this is the default library (true) or OApp-specific (false).
264
+ */
265
+ is_default: boolean;
266
+ /**
267
+ * The resolved library address.
268
+ */
269
+ lib: string;
270
+ }
271
+ /**
272
+ * Outbound packet containing all information for cross-chain transmission.
273
+ */
274
+ export interface OutboundPacket {
275
+ /**
276
+ * Destination endpoint ID.
277
+ */
278
+ dst_eid: u32;
279
+ /**
280
+ * Globally unique identifier for this message.
281
+ */
282
+ guid: Buffer;
283
+ /**
284
+ * The message payload.
285
+ */
286
+ message: Buffer;
287
+ /**
288
+ * Outbound nonce for this pathway.
289
+ */
290
+ nonce: u64;
291
+ /**
292
+ * Receiver address on destination chain (32 bytes).
293
+ */
294
+ receiver: Buffer;
295
+ /**
296
+ * Sender address on source chain.
297
+ */
298
+ sender: string;
299
+ /**
300
+ * Source endpoint ID.
301
+ */
302
+ src_eid: u32;
303
+ }
304
+ /**
305
+ * A fee recipient with the amount to be paid.
306
+ */
307
+ export interface FeeRecipient {
308
+ /**
309
+ * Amount of fee to pay.
310
+ */
311
+ amount: i128;
312
+ /**
313
+ * The address to send the fee to.
314
+ */
315
+ to: string;
316
+ }
317
+ /**
318
+ * Result of send operation containing fees and encoded packet.
319
+ */
320
+ export interface FeesAndPacket {
321
+ /**
322
+ * The encoded packet ready for transmission.
323
+ */
324
+ encoded_packet: Buffer;
325
+ /**
326
+ * List of native token fee recipients (executor, DVNs, treasury).
327
+ */
328
+ native_fee_recipients: Array<FeeRecipient>;
329
+ /**
330
+ * List of ZRO token fee recipients (treasury).
331
+ */
332
+ zro_fee_recipients: Array<FeeRecipient>;
333
+ }
334
+ /**
335
+ * PacketCodecV1Error: 1100-1109
336
+ */
337
+ export declare const PacketCodecV1Error: {
338
+ 1100: {
339
+ message: string;
340
+ };
341
+ 1101: {
342
+ message: string;
343
+ };
344
+ };
345
+ /**
346
+ * WorkerOptionsError: 1110-1119
347
+ */
348
+ export declare const WorkerOptionsError: {
349
+ 1110: {
350
+ message: string;
351
+ };
352
+ 1111: {
353
+ message: string;
354
+ };
355
+ 1112: {
356
+ message: string;
357
+ };
358
+ 1113: {
359
+ message: string;
360
+ };
361
+ 1114: {
362
+ message: string;
363
+ };
364
+ 1115: {
365
+ message: string;
366
+ };
367
+ 1116: {
368
+ message: string;
369
+ };
370
+ 1117: {
371
+ message: string;
372
+ };
373
+ 1118: {
374
+ message: string;
375
+ };
376
+ };
377
+ /**
378
+ * BufferReaderError: 1000-1009
379
+ */
380
+ export declare const BufferReaderError: {
381
+ 1000: {
382
+ message: string;
383
+ };
384
+ 1001: {
385
+ message: string;
386
+ };
387
+ };
388
+ /**
389
+ * BufferWriterError: 1010-1019
390
+ */
391
+ export declare const BufferWriterError: {
392
+ 1010: {
393
+ message: string;
394
+ };
395
+ };
396
+ /**
397
+ * TtlConfigurableError: 1020-1029
398
+ */
399
+ export declare const TtlConfigurableError: {
400
+ 1020: {
401
+ message: string;
402
+ };
403
+ 1021: {
404
+ message: string;
405
+ };
406
+ 1022: {
407
+ message: string;
408
+ };
409
+ };
410
+ /**
411
+ * OwnableError: 1030-1039
412
+ */
413
+ export declare const OwnableError: {
414
+ 1030: {
415
+ message: string;
416
+ };
417
+ 1031: {
418
+ message: string;
419
+ };
420
+ };
421
+ /**
422
+ * BytesExtError: 1040-1049
423
+ */
424
+ export declare const BytesExtError: {
425
+ 1040: {
426
+ message: string;
427
+ };
428
+ };
429
+ /**
430
+ * UpgradeableError: 1050-1059
431
+ */
432
+ export declare const UpgradeableError: {
433
+ 1050: {
434
+ message: string;
435
+ };
436
+ };
437
+ /**
438
+ * MultisigError: 1060-1069
439
+ */
440
+ export declare const MultisigError: {
441
+ 1060: {
442
+ message: string;
443
+ };
444
+ 1061: {
445
+ message: string;
446
+ };
447
+ 1062: {
448
+ message: string;
449
+ };
450
+ 1063: {
451
+ message: string;
452
+ };
453
+ 1064: {
454
+ message: string;
455
+ };
456
+ 1065: {
457
+ message: string;
458
+ };
459
+ 1066: {
460
+ message: string;
461
+ };
462
+ 1067: {
463
+ message: string;
464
+ };
465
+ };
466
+ export type MultisigStorage = {
467
+ tag: "Signers";
468
+ values: void;
469
+ } | {
470
+ tag: "Threshold";
471
+ values: void;
472
+ };
473
+ export type OwnableStorage = {
474
+ tag: "Owner";
475
+ values: void;
476
+ };
477
+ /**
478
+ * TTL configuration: threshold (when to extend) and extend_to (target TTL).
479
+ */
480
+ export interface TtlConfig {
481
+ /**
482
+ * Target TTL after extension (in ledgers).
483
+ */
484
+ extend_to: u32;
485
+ /**
486
+ * TTL threshold that triggers extension (in ledgers).
487
+ */
488
+ threshold: u32;
489
+ }
490
+ export type TtlConfigStorage = {
491
+ tag: "Frozen";
492
+ values: void;
493
+ } | {
494
+ tag: "Instance";
495
+ values: void;
496
+ } | {
497
+ tag: "Persistent";
498
+ values: void;
499
+ };
500
+ export type UpgradeableStorage = {
501
+ tag: "Migrating";
502
+ values: void;
503
+ };
504
+ /**
505
+ * WorkerError: 1200-1299
506
+ */
507
+ export declare const WorkerError: {
508
+ 1200: {
509
+ message: string;
510
+ };
511
+ 1201: {
512
+ message: string;
513
+ };
514
+ 1202: {
515
+ message: string;
516
+ };
517
+ 1203: {
518
+ message: string;
519
+ };
520
+ 1204: {
521
+ message: string;
522
+ };
523
+ 1205: {
524
+ message: string;
525
+ };
526
+ 1206: {
527
+ message: string;
528
+ };
529
+ 1207: {
530
+ message: string;
531
+ };
532
+ 1208: {
533
+ message: string;
534
+ };
535
+ 1209: {
536
+ message: string;
537
+ };
538
+ 1210: {
539
+ message: string;
540
+ };
541
+ 1211: {
542
+ message: string;
543
+ };
544
+ 1212: {
545
+ message: string;
546
+ };
547
+ 1213: {
548
+ message: string;
549
+ };
550
+ 1214: {
551
+ message: string;
552
+ };
553
+ 1215: {
554
+ message: string;
555
+ };
556
+ 1216: {
557
+ message: string;
558
+ };
559
+ 1217: {
560
+ message: string;
561
+ };
562
+ 1218: {
563
+ message: string;
564
+ };
565
+ };
566
+ /**
567
+ * Parameters for DVN fee calculation.
568
+ *
569
+ * Contains all inputs needed by the fee library to calculate verification fees
570
+ * for cross-chain messages. Includes message parameters, common configuration,
571
+ * and destination-specific settings.
572
+ */
573
+ export interface DvnFeeParams {
574
+ /**
575
+ * Number of block confirmations required.
576
+ */
577
+ confirmations: u64;
578
+ /**
579
+ * Default fee multiplier in basis points (used if no dst-specific multiplier).
580
+ */
581
+ default_multiplier_bps: u32;
582
+ /**
583
+ * Destination endpoint ID (chain identifier).
584
+ */
585
+ dst_eid: u32;
586
+ /**
587
+ * Minimum fee margin in USD (scaled).
588
+ */
589
+ floor_margin_usd: u128;
590
+ /**
591
+ * ============================================================================================
592
+ * Destination-Specific Configuration
593
+ * ============================================================================================
594
+ * Gas estimate for verification on destination chain.
595
+ */
596
+ gas: u128;
597
+ /**
598
+ * Destination-specific fee multiplier in basis points (0 = use default).
599
+ */
600
+ multiplier_bps: u32;
601
+ /**
602
+ * DVN options
603
+ */
604
+ options: Buffer;
605
+ /**
606
+ * ============================================================================================
607
+ * Common Configuration
608
+ * ============================================================================================
609
+ * Price feed contract address for gas price and exchange rate data.
610
+ */
611
+ price_feed: string;
612
+ /**
613
+ * Number of required signatures (quorum).
614
+ */
615
+ quorum: u32;
616
+ /**
617
+ * ============================================================================================
618
+ * Message Parameters
619
+ * ============================================================================================
620
+ * The OApp sender address.
621
+ */
622
+ sender: string;
623
+ }
624
+ /**
625
+ * Parameters for executor fee calculation.
626
+ *
627
+ * Contains all inputs needed by the fee library to calculate execution fees
628
+ * for cross-chain messages. Includes message parameters, common configuration,
629
+ * and destination-specific settings.
630
+ */
631
+ export interface FeeParams {
632
+ /**
633
+ * Size of the message calldata in bytes.
634
+ */
635
+ calldata_size: u32;
636
+ /**
637
+ * Default fee multiplier in basis points (used if no dst-specific multiplier).
638
+ */
639
+ default_multiplier_bps: u32;
640
+ /**
641
+ * Destination endpoint ID (chain identifier).
642
+ */
643
+ dst_eid: u32;
644
+ /**
645
+ * Minimum fee margin in USD (scaled).
646
+ */
647
+ floor_margin_usd: u128;
648
+ /**
649
+ * Base gas for each lzCompose call on destination chain.
650
+ */
651
+ lz_compose_base_gas: u64;
652
+ /**
653
+ * ============================================================================================
654
+ * Destination-Specific Configuration
655
+ * ============================================================================================
656
+ * Base gas for lzReceive execution on destination chain.
657
+ */
658
+ lz_receive_base_gas: u64;
659
+ /**
660
+ * Destination-specific fee multiplier in basis points (0 = use default).
661
+ */
662
+ multiplier_bps: u32;
663
+ /**
664
+ * Maximum native token value that can be sent.
665
+ */
666
+ native_cap: u128;
667
+ /**
668
+ * Encoded executor options (lzReceive gas, lzCompose, nativeDrop, etc.).
669
+ */
670
+ options: Buffer;
671
+ /**
672
+ * ============================================================================================
673
+ * Common Configuration
674
+ * ============================================================================================
675
+ * Price feed contract address for gas price and exchange rate data.
676
+ */
677
+ price_feed: string;
678
+ /**
679
+ * ============================================================================================
680
+ * Message Parameters
681
+ * ============================================================================================
682
+ * The OApp sender address.
683
+ */
684
+ sender: string;
685
+ }
686
+ /**
687
+ * Gas price information for a destination endpoint.
688
+ *
689
+ * Contains the exchange rate and gas costs needed for cross-chain fee calculations.
690
+ */
691
+ export interface Price {
692
+ /**
693
+ * Gas cost per byte of calldata on the destination chain.
694
+ */
695
+ gas_per_byte: u32;
696
+ /**
697
+ * Gas price in the smallest unit (wei for EVM, stroops for Stellar).
698
+ */
699
+ gas_price_in_unit: u64;
700
+ /**
701
+ * Price ratio = (remote native token price / local native token price) * PRICE_RATIO_DENOMINATOR.
702
+ * Used to convert destination chain gas costs to source chain native token.
703
+ */
704
+ price_ratio: u128;
705
+ }
706
+ /**
707
+ * Fee estimation result with detailed breakdown.
708
+ *
709
+ * Contains the calculated fee and all intermediate values used in the calculation.
710
+ */
711
+ export interface FeeEstimate {
712
+ /**
713
+ * Source chain native token price in USD (scaled).
714
+ */
715
+ native_price_usd: u128;
716
+ /**
717
+ * Price ratio used for the calculation.
718
+ */
719
+ price_ratio: u128;
720
+ /**
721
+ * Denominator for the price ratio (typically 10^20).
722
+ */
723
+ price_ratio_denominator: u128;
724
+ /**
725
+ * Total gas fee in source chain native token units.
726
+ */
727
+ total_gas_fee: i128;
728
+ }
729
+ export type WorkerStorage = {
730
+ tag: "Paused";
731
+ values: void;
732
+ } | {
733
+ tag: "DepositAddress";
734
+ values: void;
735
+ } | {
736
+ tag: "PriceFeed";
737
+ values: void;
738
+ } | {
739
+ tag: "WorkerFeeLib";
740
+ values: void;
741
+ } | {
742
+ tag: "DefaultMultiplierBps";
743
+ values: void;
744
+ } | {
745
+ tag: "SupportedOptionTypes";
746
+ values: readonly [u32];
747
+ } | {
748
+ tag: "MessageLibs";
749
+ values: void;
750
+ } | {
751
+ tag: "Allowlist";
752
+ values: readonly [string];
753
+ } | {
754
+ tag: "Denylist";
755
+ values: readonly [string];
756
+ } | {
757
+ tag: "AllowlistSize";
758
+ values: void;
759
+ } | {
760
+ tag: "Admins";
761
+ values: void;
762
+ };
763
+ export interface Client {
764
+ /**
765
+ * Construct and simulate a upgrade 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.
766
+ */
767
+ upgrade: ({ new_wasm_hash }: {
768
+ new_wasm_hash: Buffer;
769
+ }, txnOptions?: {
770
+ /**
771
+ * The fee to pay for the transaction. Default: BASE_FEE
772
+ */
773
+ fee?: number;
774
+ /**
775
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
776
+ */
777
+ timeoutInSeconds?: number;
778
+ /**
779
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
780
+ */
781
+ simulate?: boolean;
782
+ }) => Promise<AssembledTransaction<null>>;
783
+ /**
784
+ * Construct and simulate a migrate 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.
785
+ */
786
+ migrate: ({ migration_data }: {
787
+ migration_data: MigrationData;
788
+ }, txnOptions?: {
789
+ /**
790
+ * The fee to pay for the transaction. Default: BASE_FEE
791
+ */
792
+ fee?: number;
793
+ /**
794
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
795
+ */
796
+ timeoutInSeconds?: number;
797
+ /**
798
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
799
+ */
800
+ simulate?: boolean;
801
+ }) => Promise<AssembledTransaction<null>>;
802
+ /**
803
+ * 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.
804
+ */
805
+ authorizer: (txnOptions?: {
806
+ /**
807
+ * The fee to pay for the transaction. Default: BASE_FEE
808
+ */
809
+ fee?: number;
810
+ /**
811
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
812
+ */
813
+ timeoutInSeconds?: number;
814
+ /**
815
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
816
+ */
817
+ simulate?: boolean;
818
+ }) => Promise<AssembledTransaction<string>>;
819
+ /**
820
+ * Construct and simulate a get_fee 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.
821
+ * Calculates the total execution fee for a cross-chain message.
822
+ *
823
+ * Decodes executor options, estimates gas fees from the price feed, applies
824
+ * multipliers and margins, and converts native token values. Returns the
825
+ * total fee in native tokens.
826
+ *
827
+ * # Arguments
828
+ * * `executor` - Executor contract address (unused, kept for interface compatibility)
829
+ * * `params` - Fee calculation parameters
830
+ *
831
+ * # Returns
832
+ * Total execution fee in native tokens.
833
+ *
834
+ * # Errors
835
+ * * `EidNotSupported` - If destination endpoint is not supported (lz_receive_base_gas is 0)
836
+ * * Various executor option parsing errors (see `parse_executor_options`)
837
+ */
838
+ get_fee: ({ executor, params }: {
839
+ executor: string;
840
+ params: FeeParams;
841
+ }, txnOptions?: {
842
+ /**
843
+ * The fee to pay for the transaction. Default: BASE_FEE
844
+ */
845
+ fee?: number;
846
+ /**
847
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
848
+ */
849
+ timeoutInSeconds?: number;
850
+ /**
851
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
852
+ */
853
+ simulate?: boolean;
854
+ }) => Promise<AssembledTransaction<i128>>;
855
+ /**
856
+ * 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.
857
+ * Returns the version of the fee library.
858
+ *
859
+ * # Returns
860
+ * Tuple of (major_version, minor_version).
861
+ */
862
+ version: (txnOptions?: {
863
+ /**
864
+ * The fee to pay for the transaction. Default: BASE_FEE
865
+ */
866
+ fee?: number;
867
+ /**
868
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
869
+ */
870
+ timeoutInSeconds?: number;
871
+ /**
872
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
873
+ */
874
+ simulate?: boolean;
875
+ }) => Promise<AssembledTransaction<readonly [u64, u32]>>;
876
+ /**
877
+ * 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.
878
+ * Sets TTL configs for instance and persistent storage.
879
+ *
880
+ * - `None` values remove the corresponding config (disables auto-extension for that type)
881
+ * - Validates that `threshold <= extend_to <= MAX_TTL`
882
+ *
883
+ * # Arguments
884
+ * - `instance` - TTL config for instance storage
885
+ * - `persistent` - TTL config for persistent storage
886
+ *
887
+ * # Panics
888
+ * - `TtlConfigFrozen` if configs are frozen
889
+ * - `InvalidTtlConfig` if validation fails
890
+ */
891
+ set_ttl_configs: ({ instance, persistent }: {
892
+ instance: Option<TtlConfig>;
893
+ persistent: Option<TtlConfig>;
894
+ }, txnOptions?: {
895
+ /**
896
+ * The fee to pay for the transaction. Default: BASE_FEE
897
+ */
898
+ fee?: number;
899
+ /**
900
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
901
+ */
902
+ timeoutInSeconds?: number;
903
+ /**
904
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
905
+ */
906
+ simulate?: boolean;
907
+ }) => Promise<AssembledTransaction<null>>;
908
+ /**
909
+ * Construct and simulate a 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.
910
+ * Returns the current TTL configs as (instance_config, persistent_config).
911
+ */
912
+ ttl_configs: (txnOptions?: {
913
+ /**
914
+ * The fee to pay for the transaction. Default: BASE_FEE
915
+ */
916
+ fee?: number;
917
+ /**
918
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
919
+ */
920
+ timeoutInSeconds?: number;
921
+ /**
922
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
923
+ */
924
+ simulate?: boolean;
925
+ }) => Promise<AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>>;
926
+ /**
927
+ * Construct and simulate a freeze_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.
928
+ * Permanently freezes TTL configs, preventing any future modifications.
929
+ *
930
+ * This is irreversible and provides immutability guarantees to users.
931
+ * Emits `TtlConfigsFrozen` event.
932
+ *
933
+ * # Panics
934
+ * - `TtlConfigAlreadyFrozen` if already frozen
935
+ */
936
+ freeze_ttl_configs: (txnOptions?: {
937
+ /**
938
+ * The fee to pay for the transaction. Default: BASE_FEE
939
+ */
940
+ fee?: number;
941
+ /**
942
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
943
+ */
944
+ timeoutInSeconds?: number;
945
+ /**
946
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
947
+ */
948
+ simulate?: boolean;
949
+ }) => Promise<AssembledTransaction<null>>;
950
+ /**
951
+ * Construct and simulate a is_ttl_configs_frozen 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.
952
+ * Returns whether TTL configs are frozen.
953
+ */
954
+ is_ttl_configs_frozen: (txnOptions?: {
955
+ /**
956
+ * The fee to pay for the transaction. Default: BASE_FEE
957
+ */
958
+ fee?: number;
959
+ /**
960
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
961
+ */
962
+ timeoutInSeconds?: number;
963
+ /**
964
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
965
+ */
966
+ simulate?: boolean;
967
+ }) => Promise<AssembledTransaction<boolean>>;
968
+ /**
969
+ * 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.
970
+ * Extends the instance TTL.
971
+ *
972
+ * # Arguments
973
+ *
974
+ * * `threshold` - The threshold to extend the TTL (if current TTL is below this, extend).
975
+ * * `extend_to` - The TTL to extend to.
976
+ */
977
+ extend_instance_ttl: ({ threshold, extend_to }: {
978
+ threshold: u32;
979
+ extend_to: u32;
980
+ }, txnOptions?: {
981
+ /**
982
+ * The fee to pay for the transaction. Default: BASE_FEE
983
+ */
984
+ fee?: number;
985
+ /**
986
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
987
+ */
988
+ timeoutInSeconds?: number;
989
+ /**
990
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
991
+ */
992
+ simulate?: boolean;
993
+ }) => Promise<AssembledTransaction<null>>;
994
+ /**
995
+ * Construct and simulate a owner 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.
996
+ * Returns the current owner address, or None if no owner is set.
997
+ */
998
+ owner: (txnOptions?: {
999
+ /**
1000
+ * The fee to pay for the transaction. Default: BASE_FEE
1001
+ */
1002
+ fee?: number;
1003
+ /**
1004
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1005
+ */
1006
+ timeoutInSeconds?: number;
1007
+ /**
1008
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1009
+ */
1010
+ simulate?: boolean;
1011
+ }) => Promise<AssembledTransaction<Option<string>>>;
1012
+ /**
1013
+ * Construct and simulate a transfer_ownership 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.
1014
+ * Transfers ownership to a new address. Requires current owner authorization.
1015
+ */
1016
+ transfer_ownership: ({ new_owner }: {
1017
+ new_owner: string;
1018
+ }, txnOptions?: {
1019
+ /**
1020
+ * The fee to pay for the transaction. Default: BASE_FEE
1021
+ */
1022
+ fee?: number;
1023
+ /**
1024
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1025
+ */
1026
+ timeoutInSeconds?: number;
1027
+ /**
1028
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1029
+ */
1030
+ simulate?: boolean;
1031
+ }) => Promise<AssembledTransaction<null>>;
1032
+ /**
1033
+ * Construct and simulate a renounce_ownership 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.
1034
+ * Permanently renounces ownership. Requires current owner authorization.
1035
+ */
1036
+ renounce_ownership: (txnOptions?: {
1037
+ /**
1038
+ * The fee to pay for the transaction. Default: BASE_FEE
1039
+ */
1040
+ fee?: number;
1041
+ /**
1042
+ * The maximum amount of time to wait for the transaction to complete. Default: DEFAULT_TIMEOUT
1043
+ */
1044
+ timeoutInSeconds?: number;
1045
+ /**
1046
+ * Whether to automatically simulate the transaction when constructing the AssembledTransaction. Default: true
1047
+ */
1048
+ simulate?: boolean;
1049
+ }) => Promise<AssembledTransaction<null>>;
1050
+ }
1051
+ export declare class Client extends ContractClient {
1052
+ readonly options: ContractClientOptions;
1053
+ static deploy<T = Client>(
1054
+ /** Constructor/Initialization Args for the contract's `__constructor` method */
1055
+ { owner }: {
1056
+ owner: string;
1057
+ },
1058
+ /** Options for initializing a Client as well as for calling a method, with extras specific to deploying. */
1059
+ options: MethodOptions & Omit<ContractClientOptions, "contractId"> & {
1060
+ /** The hash of the Wasm blob, which must already be installed on-chain. */
1061
+ wasmHash: Buffer | string;
1062
+ /** Salt used to generate the contract's ID. Passed through to {@link Operation.createCustomContract}. Default: random. */
1063
+ salt?: Buffer | Uint8Array;
1064
+ /** The format used to decode `wasmHash`, if it's provided as a string. */
1065
+ format?: "hex" | "base64";
1066
+ }): Promise<AssembledTransaction<T>>;
1067
+ constructor(options: ContractClientOptions);
1068
+ readonly fromJSON: {
1069
+ upgrade: (json: string) => AssembledTransaction<null>;
1070
+ migrate: (json: string) => AssembledTransaction<null>;
1071
+ authorizer: (json: string) => AssembledTransaction<string>;
1072
+ get_fee: (json: string) => AssembledTransaction<bigint>;
1073
+ version: (json: string) => AssembledTransaction<readonly [bigint, number]>;
1074
+ set_ttl_configs: (json: string) => AssembledTransaction<null>;
1075
+ ttl_configs: (json: string) => AssembledTransaction<readonly [Option<TtlConfig>, Option<TtlConfig>]>;
1076
+ freeze_ttl_configs: (json: string) => AssembledTransaction<null>;
1077
+ is_ttl_configs_frozen: (json: string) => AssembledTransaction<boolean>;
1078
+ extend_instance_ttl: (json: string) => AssembledTransaction<null>;
1079
+ owner: (json: string) => AssembledTransaction<Option<string>>;
1080
+ transfer_ownership: (json: string) => AssembledTransaction<null>;
1081
+ renounce_ownership: (json: string) => AssembledTransaction<null>;
1082
+ };
1083
+ }