From 732791aad139ec0497cb6ad38bf21be7bdad4c53 Mon Sep 17 00:00:00 2001 From: npty Date: Thu, 10 Oct 2024 19:49:57 +0700 Subject: [PATCH] feat: generate types for ITS, AxelarGateway, and VersionControl --- packages/sui/.gitignore | 8 + packages/sui/LICENSE | 201 + packages/sui/README.md | 8 + packages/sui/package.json | 45 + ...44ea28d16a4af51da8385a783f91e42312981.json | 3461 +++++++++++++ ...c963a8a899561609c5a5e170d6509605185e6.json | 170 + ...dfadaf0bc174885211345d14cbc19e212b5ba.json | 4534 +++++++++++++++++ packages/sui/src/types/AxelarGateway.ts | 3499 +++++++++++++ packages/sui/src/types/ITS.ts | 4478 ++++++++++++++++ packages/sui/src/types/VersionControl.ts | 204 + packages/sui/src/types/index.ts | 6 + packages/sui/vitest.config.ts | 17 + 12 files changed, 16631 insertions(+) create mode 100644 packages/sui/.gitignore create mode 100644 packages/sui/LICENSE create mode 100644 packages/sui/README.md create mode 100644 packages/sui/package.json create mode 100644 packages/sui/src/abis/0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.json create mode 100644 packages/sui/src/abis/0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.json create mode 100644 packages/sui/src/abis/0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba.json create mode 100644 packages/sui/src/types/AxelarGateway.ts create mode 100644 packages/sui/src/types/ITS.ts create mode 100644 packages/sui/src/types/VersionControl.ts create mode 100644 packages/sui/src/types/index.ts create mode 100644 packages/sui/vitest.config.ts diff --git a/packages/sui/.gitignore b/packages/sui/.gitignore new file mode 100644 index 000000000..b63b46056 --- /dev/null +++ b/packages/sui/.gitignore @@ -0,0 +1,8 @@ +# build artifacts +build/ +*.js +*.d.ts + +/contracts/ +/clients/ +/docs/ \ No newline at end of file diff --git a/packages/sui/LICENSE b/packages/sui/LICENSE new file mode 100644 index 000000000..265fb9b7a --- /dev/null +++ b/packages/sui/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright 2023 Axelar Network + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/packages/sui/README.md b/packages/sui/README.md new file mode 100644 index 000000000..26ed4ca53 --- /dev/null +++ b/packages/sui/README.md @@ -0,0 +1,8 @@ +# @axelarjs/sui + +[![NPM Version](https://img.shields.io/npm/v/%40axelarjs%2Fsui)](https://www.npmjs.com/package/@axelarjs/evm) +[![Changelog](https://img.shields.io/badge/changelog-Changesets-48B8F3.svg)](/packages/sui/CHANGELOG.md) +[![Typedoc](https://img.shields.io/badge/docs-Typedoc-C87BFF.svg)](https://axelarnetwork.github.io/axelarjs/sui) +[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](./LICENSE) + +Sui sdk for Axelar Network diff --git a/packages/sui/package.json b/packages/sui/package.json new file mode 100644 index 000000000..0c87f676e --- /dev/null +++ b/packages/sui/package.json @@ -0,0 +1,45 @@ +{ + "name": "@axelarjs/sui", + "version": "0.0.0", + "publishConfig": { + "access": "public" + }, + "description": "Sui clients & utils", + "repository": { + "type": "git", + "url": "git+https://github.com/axelarnetwork/axelarjs" + }, + "files": [ + "./types" + ], + "exports": { + ".": { + "import": "./build/module/index.js", + "require": "./build/commonjs/index.js" + }, + "./*": { + "import": "./build/module/*.js", + "require": "./build/commonjs/*.js" + } + }, + "scripts": { + "compile": "tsc", + "codegen:testnet": "pnpm typemove-sui --network testnet --target-dir=./src/types --abi-dir=./src/abis", + "codegen:mainnet": "pnpm typemove-sui --target-dir=./src/types --abi-dir=./src/abis" + }, + "keywords": [], + "author": "", + "license": "LicenseRef-LICENSE", + "dependencies": { + "@axelar-network/axelar-cgp-sui": "0.0.0-snapshot.48b321a", + "@typemove/sui": "^1.6.3" + }, + "devDependencies": { + "@types/node": "^20.11.30", + "@types/prettier": "^2.7.3", + "dotenv": "^16.4.5", + "prettier": "^3.2.5", + "typescript": "^5.4.3", + "vitest": "^1.4.0" + } +} diff --git a/packages/sui/src/abis/0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.json b/packages/sui/src/abis/0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.json new file mode 100644 index 000000000..bb87fd88d --- /dev/null +++ b/packages/sui/src/abis/0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.json @@ -0,0 +1,3461 @@ +[ + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "auth", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "AxelarSigners": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "epoch", + "type": "U64" + }, + { + "name": "epoch_by_signers_hash", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + "U64" + ] + } + } + }, + { + "name": "domain_separator", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + }, + { + "name": "minimum_rotation_delay", + "type": "U64" + }, + { + "name": "last_rotation_timestamp", + "type": "U64" + }, + { + "name": "previous_signers_retention", + "type": "U64" + } + ] + }, + "MessageToSign": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "domain_separator", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + }, + { + "name": "signers_hash", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + }, + { + "name": "data_hash", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + } + ] + }, + "rotate_signers": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + }, + "Bool" + ], + "return": [] + }, + "setup": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + "U64", + "U64", + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + } + ] + }, + "validate_proof": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Proof", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "bytes32", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "message" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "weighted_signers" + } + ], + "structs": { + "Bytes32": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "bytes", + "type": "Address" + } + ] + } + }, + "exposedFunctions": { + "default": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "from_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address" + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "from_bytes": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "length": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + } + ], + "return": [ + "U64" + ] + }, + "new": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address" + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "peel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "to_bytes": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ], + "return": [ + { + "Vector": "U8" + } + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "channel", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "ApprovedMessage": { + "abilities": { + "abilities": [] + }, + "typeParameters": [], + "fields": [ + { + "name": "source_chain", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "message_id", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "source_address", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "destination_id", + "type": "Address" + }, + { + "name": "payload", + "type": { + "Vector": "U8" + } + } + ] + }, + "Channel": { + "abilities": { + "abilities": [ + "Store", + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "consume_approved_message": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + } + ] + }, + "create_approved_message": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + } + ] + }, + "destroy": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + ], + "return": [] + }, + "id": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + } + ] + }, + "new": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + ] + }, + "to_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + } + ], + "return": [ + "Address" + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "discovery", + "friends": [], + "structs": { + "Function": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "package_id", + "type": "Address" + }, + { + "name": "module_name", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "name", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ] + }, + "MoveCall": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "function", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Function", + "typeArguments": [] + } + } + }, + { + "name": "arguments", + "type": { + "Vector": { + "Vector": "U8" + } + } + }, + { + "name": "type_arguments", + "type": { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + } + ] + }, + "RelayerDiscovery": { + "abilities": { + "abilities": [ + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + }, + { + "name": "configurations", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Transaction", + "typeArguments": [] + } + } + ] + } + } + } + ] + }, + "Transaction": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "is_final", + "type": "Bool" + }, + { + "name": "move_calls", + "type": { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "MoveCall", + "typeArguments": [] + } + } + } + } + ] + } + }, + "exposedFunctions": { + "get_transaction": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "RelayerDiscovery", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Transaction", + "typeArguments": [] + } + } + ] + }, + "new_function": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Function", + "typeArguments": [] + } + } + ] + }, + "new_function_from_bcs": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Function", + "typeArguments": [] + } + } + ] + }, + "new_move_call": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Function", + "typeArguments": [] + } + }, + { + "Vector": { + "Vector": "U8" + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "MoveCall", + "typeArguments": [] + } + } + ] + }, + "new_move_call_from_bcs": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "MoveCall", + "typeArguments": [] + } + } + ] + }, + "new_transaction": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Bool", + { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "MoveCall", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Transaction", + "typeArguments": [] + } + } + ] + }, + "new_transaction_from_bcs": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Transaction", + "typeArguments": [] + } + } + ] + }, + "package_id": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [], + "return": [ + "Address" + ] + }, + "register_transaction": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "RelayerDiscovery", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "discovery", + "name": "Transaction", + "typeArguments": [] + } + } + ], + "return": [] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "events", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "auth" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "channel" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "ChannelCreated": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": "Address" + } + ] + }, + "ChannelDestroyed": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": "Address" + } + ] + }, + "ContractCall": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "source_id", + "type": "Address" + }, + { + "name": "destination_chain", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "destination_address", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "payload", + "type": { + "Vector": "U8" + } + }, + { + "name": "payload_hash", + "type": "Address" + } + ] + }, + "MessageApproved": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "message", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + } + ] + }, + "MessageExecuted": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "message", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + } + ] + }, + "SignersRotated": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "epoch", + "type": "U64" + }, + { + "name": "signers_hash", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + }, + { + "name": "signers", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "channel_created": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address" + ], + "return": [] + }, + "channel_destroyed": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address" + ], + "return": [] + }, + "contract_call": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + "Address" + ], + "return": [] + }, + "message_approved": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + ], + "return": [] + }, + "message_executed": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + ], + "return": [] + }, + "signers_rotated": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "U64", + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + ], + "return": [] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway", + "friends": [], + "structs": { + "CreatorCap": { + "abilities": { + "abilities": [ + "Store", + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + } + ] + }, + "Gateway": { + "abilities": { + "abilities": [ + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + }, + { + "name": "inner", + "type": { + "Struct": { + "address": "0x2", + "module": "versioned", + "name": "Versioned", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "approve_messages": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + } + ], + "return": [] + }, + "is_message_approved": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "is_message_executed": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "prepare_message": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ] + }, + "rotate_signers": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "send_message": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ], + "return": [] + }, + "setup": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "CreatorCap", + "typeArguments": [] + } + }, + "Address", + "Address", + "U64", + "U64", + { + "Vector": "U8" + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "take_approved_message": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway", + "name": "Gateway", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + } + ] + } + } + }, + { + "fileFormatVersion": 7, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway" + } + ], + "structs": { + "Gateway_v0": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "operator", + "type": "Address" + }, + { + "name": "messages", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_status", + "name": "MessageStatus", + "typeArguments": [] + } + } + ] + } + } + }, + { + "name": "signers", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + } + }, + { + "name": "version_control", + "type": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "approve_messages": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + } + ], + "return": [] + }, + "is_message_approved": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "is_message_executed": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address", + { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_status", + "name": "MessageStatus", + "typeArguments": [] + } + } + ] + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "auth", + "name": "AxelarSigners", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + ] + }, + "rotate_signers": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "send_message": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + }, + "U64" + ], + "return": [] + }, + "take_approved_message": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + } + ] + }, + "version_control": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "gateway_v0", + "name": "Gateway_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "message", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "Message": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "source_chain", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "message_id", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "source_address", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "destination_id", + "type": "Address" + }, + { + "name": "payload_hash", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "command_id": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "hash": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "message_to_command_id": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "new": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "Address", + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + ] + }, + "peel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message", + "name": "Message", + "typeArguments": [] + } + } + ] + } + } + }, + { + "fileFormatVersion": 7, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "message_status", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": {}, + "exposedFunctions": { + "approved": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_status", + "name": "MessageStatus", + "typeArguments": [] + } + } + ] + }, + "executed": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_status", + "name": "MessageStatus", + "typeArguments": [] + } + } + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "message_ticket", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "MessageTicket": { + "abilities": { + "abilities": [] + }, + "typeParameters": [], + "fields": [ + { + "name": "source_id", + "type": "Address" + }, + { + "name": "destination_chain", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "destination_address", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "payload", + "type": { + "Vector": "U8" + } + }, + { + "name": "version", + "type": "U64" + } + ] + } + }, + "exposedFunctions": { + "destination_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "destination_chain": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "destroy": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ], + "return": [ + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + "U64" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + "U64" + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ] + }, + "payload": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Vector": "U8" + } + ] + }, + "source_id": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + } + ], + "return": [ + "Address" + ] + }, + "version": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + } + ], + "return": [ + "U64" + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "proof", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "auth" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + } + ], + "structs": { + "Proof": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "signers", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + }, + { + "name": "signatures", + "type": { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Signature", + "typeArguments": [] + } + } + } + } + ] + }, + "Signature": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "bytes", + "type": { + "Vector": "U8" + } + } + ] + } + }, + "exposedFunctions": { + "new_signature": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Signature", + "typeArguments": [] + } + } + ] + }, + "peel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Proof", + "typeArguments": [] + } + } + ] + }, + "peel_signature": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Signature", + "typeArguments": [] + } + } + ] + }, + "recover_pub_key": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Signature", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Vector": "U8" + } + } + ], + "return": [ + { + "Vector": "U8" + } + ] + }, + "signatures": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Proof", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Signature", + "typeArguments": [] + } + } + } + } + ] + }, + "signers": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Proof", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ] + }, + "validate": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "proof", + "name": "Proof", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + } + ], + "return": [] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "weighted_signer", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "weighted_signers" + } + ], + "structs": { + "WeightedSigner": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "pub_key", + "type": { + "Vector": "U8" + } + }, + { + "name": "weight", + "type": "U128" + } + ] + } + }, + "exposedFunctions": { + "default": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + ] + }, + "lt": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + ], + "return": [ + "Bool" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": "U8" + }, + "U128" + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + ] + }, + "peel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + ] + }, + "pub_key": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Vector": "U8" + } + ] + }, + "validate": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "weight": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + ], + "return": [ + "U128" + ] + } + } + }, + { + "fileFormatVersion": 6, + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "weighted_signers", + "friends": [ + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "auth" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "gateway_v0" + }, + { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "name": "proof" + } + ], + "structs": { + "WeightedSigners": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "signers", + "type": { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + }, + { + "name": "threshold", + "type": "U128" + }, + { + "name": "nonce", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "hash": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "nonce": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "bytes32", + "name": "Bytes32", + "typeArguments": [] + } + } + ] + }, + "peel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "bcs", + "name": "BCS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + ] + }, + "signers": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Vector": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signer", + "name": "WeightedSigner", + "typeArguments": [] + } + } + } + } + ] + }, + "threshold": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ], + "return": [ + "U128" + ] + }, + "validate": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "weighted_signers", + "name": "WeightedSigners", + "typeArguments": [] + } + } + } + ], + "return": [] + } + } + } +] \ No newline at end of file diff --git a/packages/sui/src/abis/0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.json b/packages/sui/src/abis/0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.json new file mode 100644 index 000000000..a6571c7a7 --- /dev/null +++ b/packages/sui/src/abis/0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.json @@ -0,0 +1,170 @@ +[ + { + "fileFormatVersion": 6, + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "name": "version_control", + "friends": [], + "structs": { + "VersionControl": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "allowed_functions", + "type": { + "Vector": { + "Struct": { + "address": "0x2", + "module": "vec_set", + "name": "VecSet", + "typeArguments": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + } + } + } + } + ] + } + }, + "exposedFunctions": { + "allowed_functions": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "MutableReference": { + "Vector": { + "Struct": { + "address": "0x2", + "module": "vec_set", + "name": "VecSet", + "typeArguments": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + } + } + } + } + ] + }, + "check": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + }, + "U64", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [] + }, + "new": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + ] + }, + "push_back": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [] + } + } + } +] \ No newline at end of file diff --git a/packages/sui/src/abis/0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba.json b/packages/sui/src/abis/0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba.json new file mode 100644 index 000000000..7500a7135 --- /dev/null +++ b/packages/sui/src/abis/0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba.json @@ -0,0 +1,4534 @@ +{ + "address_tracker": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "address_tracker", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its_v0" + } + ], + "structs": { + "InterchainAddressTracker": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "trusted_addresses", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + } + } + } + ] + } + }, + "exposedFunctions": { + "is_trusted_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + ] + }, + "remove_trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [] + }, + "set_trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [] + }, + "trusted_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ] + } + } + }, + "coin_data": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "coin_data", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its_v0" + } + ], + "structs": { + "CoinData": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "coin_management", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "name": "coin_info", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + } + }, + "exposedFunctions": { + "coin_info": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "coin_management_mut": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "coin_scaling": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + "U256" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + }, + "coin_info": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "coin_info", + "friends": [], + "structs": { + "CoinInfo": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "name", + "type": { + "Struct": { + "address": "0x1", + "module": "string", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "symbol", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "decimals", + "type": "U8" + }, + { + "name": "remote_decimals", + "type": "U8" + }, + { + "name": "metadata", + "type": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + } + ] + } + }, + "exposedFunctions": { + "decimals": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + "U8" + ] + }, + "from_info": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0x1", + "module": "string", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + "U8", + "U8" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "from_metadata": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + "U8" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "metadata": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + } + ] + }, + "name": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "string", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "remote_decimals": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + "U8" + ] + }, + "scaling": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + "U256" + ] + }, + "symbol": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + } + } + }, + "coin_management": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "coin_management", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + }, + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its_v0" + } + ], + "structs": { + "CoinManagement": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "treasury_cap", + "type": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + }, + { + "name": "balance", + "type": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + }, + { + "name": "distributor", + "type": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + "Address" + ] + } + } + }, + { + "name": "operator", + "type": { + "Struct": { + "address": "0x1", + "module": "option", + "name": "Option", + "typeArguments": [ + "Address" + ] + } + } + }, + { + "name": "flow_limit", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "flow_limit", + "name": "FlowLimit", + "typeArguments": [] + } + } + }, + { + "name": "scaling", + "type": "U256" + }, + { + "name": "dust", + "type": "U256" + } + ] + } + }, + "exposedFunctions": { + "add_distributor": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "Address" + ], + "return": [] + }, + "add_operator": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "Address" + ], + "return": [] + }, + "burn": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [] + }, + "give_coin": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "U256", + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "has_capability": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + "Bool" + ] + }, + "is_distributor": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "Address" + ], + "return": [ + "Bool" + ] + }, + "mint": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "U64", + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "new_locked": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "new_with_cap": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "set_flow_limit": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + "U64" + ], + "return": [] + }, + "set_scaling": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + "U256" + ], + "return": [] + }, + "take_balance": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + } + ], + "return": [ + "U256" + ] + } + } + }, + "discovery": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "discovery", + "friends": [], + "structs": {}, + "exposedFunctions": { + "call_info": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1", + "module": "transaction", + "name": "Transaction", + "typeArguments": [] + } + } + ] + }, + "interchain_transfer_info": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": "U8" + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + "Address", + "U64", + { + "Vector": "U8" + } + ] + }, + "register_transaction": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1", + "module": "discovery", + "name": "RelayerDiscovery", + "typeArguments": [] + } + } + } + ], + "return": [] + } + } + }, + "flow_limit": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "flow_limit", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "coin_management" + } + ], + "structs": { + "FlowLimit": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "flow_limit", + "type": "U64" + }, + { + "name": "flow_in", + "type": "U64" + }, + { + "name": "flow_out", + "type": "U64" + }, + { + "name": "current_epoch", + "type": "U64" + } + ] + } + }, + "exposedFunctions": { + "add_flow_in": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "flow_limit", + "name": "FlowLimit", + "typeArguments": [] + } + } + }, + "U64", + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "add_flow_out": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "flow_limit", + "name": "FlowLimit", + "typeArguments": [] + } + } + }, + "U64", + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "flow_limit", + "name": "FlowLimit", + "typeArguments": [] + } + } + ] + }, + "set_flow_limit": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "flow_limit", + "name": "FlowLimit", + "typeArguments": [] + } + } + }, + "U64" + ], + "return": [] + } + } + }, + "interchain_transfer_ticket": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "interchain_transfer_ticket", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + } + ], + "structs": { + "InterchainTransferTicket": { + "abilities": { + "abilities": [] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "token_id", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + }, + { + "name": "balance", + "type": { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "name": "source_address", + "type": "Address" + }, + { + "name": "destination_chain", + "type": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "name": "destination_address", + "type": { + "Vector": "U8" + } + }, + { + "name": "metadata", + "type": { + "Vector": "U8" + } + }, + { + "name": "version", + "type": "U64" + } + ] + } + }, + "exposedFunctions": { + "destroy": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "interchain_transfer_ticket", + "name": "InterchainTransferTicket", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + "U64" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x2", + "module": "balance", + "name": "Balance", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + "Address", + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + "U64" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "interchain_transfer_ticket", + "name": "InterchainTransferTicket", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + }, + "its": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "discovery" + } + ], + "structs": { + "CoinRegistered": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "token_id", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + } + ] + }, + "ITS": { + "abilities": { + "abilities": [ + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + }, + { + "name": "inner", + "type": { + "Struct": { + "address": "0x2", + "module": "versioned", + "name": "Versioned", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "burn_as_distributor": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [] + }, + "channel_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + } + ], + "return": [ + "Address" + ] + }, + "deploy_remote_interchain_token": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ] + }, + "give_unregistered_coin": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [] + }, + "mint_as_distributor": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + "U64", + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "mint_to_as_distributor": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + "Address", + "U64", + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "package_value": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ] + }, + "prepare_interchain_transfer": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "interchain_transfer_ticket", + "name": "InterchainTransferTicket", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "receive_deploy_interchain_token": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + } + ], + "return": [] + }, + "receive_interchain_transfer": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "receive_interchain_transfer_with_data": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "ApprovedMessage", + "typeArguments": [] + } + }, + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Vector": "U8" + }, + { + "Vector": "U8" + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "Coin", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "register_coin": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ] + }, + "register_transaction": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "MutableReference": { + "Struct": { + "address": "0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1", + "module": "discovery", + "name": "RelayerDiscovery", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1", + "module": "transaction", + "name": "Transaction", + "typeArguments": [] + } + } + ], + "return": [] + }, + "registered_coin_type": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "type_name", + "name": "TypeName", + "typeArguments": [] + } + } + } + ] + }, + "remove_trusted_addresses": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "owner_cap", + "name": "OwnerCap", + "typeArguments": [] + } + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "send_interchain_transfer": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "interchain_transfer_ticket", + "name": "InterchainTransferTicket", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Reference": { + "Struct": { + "address": "0x2", + "module": "clock", + "name": "Clock", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "message_ticket", + "name": "MessageTicket", + "typeArguments": [] + } + } + ] + }, + "set_trusted_addresses": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its", + "name": "ITS", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "owner_cap", + "name": "OwnerCap", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "trusted_addresses", + "name": "TrustedAddresses", + "typeArguments": [] + } + } + ], + "return": [] + } + } + }, + "its_v0": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its_v0", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "discovery" + }, + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + } + ], + "structs": { + "ITS_v0": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "channel", + "type": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + }, + { + "name": "address_tracker", + "type": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "address_tracker", + "name": "InterchainAddressTracker", + "typeArguments": [] + } + } + }, + { + "name": "unregistered_coin_types", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "UnregisteredTokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "type_name", + "name": "TypeName", + "typeArguments": [] + } + } + ] + } + } + }, + { + "name": "unregistered_coins", + "type": { + "Struct": { + "address": "0x2", + "module": "bag", + "name": "Bag", + "typeArguments": [] + } + } + }, + { + "name": "registered_coin_types", + "type": { + "Struct": { + "address": "0x2", + "module": "table", + "name": "Table", + "typeArguments": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "type_name", + "name": "TypeName", + "typeArguments": [] + } + } + ] + } + } + }, + { + "name": "registered_coins", + "type": { + "Struct": { + "address": "0x2", + "module": "bag", + "name": "Bag", + "typeArguments": [] + } + } + }, + { + "name": "relayer_discovery_id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + } + }, + { + "name": "version_control", + "type": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "add_registered_coin": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [] + }, + "add_unregistered_coin": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "UnregisteredTokenId", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [] + }, + "channel": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + } + ] + }, + "channel_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + "Address" + ] + }, + "channel_id": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + } + ] + }, + "channel_mut": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "MutableReference": { + "Struct": { + "address": "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981", + "module": "channel", + "name": "Channel", + "typeArguments": [] + } + } + } + ] + }, + "coin_data": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "coin_data_mut": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_data", + "name": "CoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "coin_info": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "coin_management_mut": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + }, + "is_trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + "Bool" + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + }, + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + ] + }, + "registered_coin_type": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "type_name", + "name": "TypeName", + "typeArguments": [] + } + } + } + ] + }, + "relayer_discovery_id": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "object", + "name": "ID", + "typeArguments": [] + } + } + ] + }, + "remove_trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [] + }, + "remove_trusted_addresses": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "remove_unregistered_coin": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "UnregisteredTokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "set_relayer_discovery_id": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1", + "module": "discovery", + "name": "RelayerDiscovery", + "typeArguments": [] + } + } + } + ], + "return": [] + }, + "set_trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [] + }, + "set_trusted_addresses": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "trusted_addresses", + "name": "TrustedAddresses", + "typeArguments": [] + } + } + ], + "return": [] + }, + "token_decimals": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + "U8" + ] + }, + "token_name": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "string", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "token_remote_decimals": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + "U8" + ] + }, + "token_symbol": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "trusted_address": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "unregistered_coin_type": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + "U8" + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "type_name", + "name": "TypeName", + "typeArguments": [] + } + } + } + ] + }, + "version_control": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Reference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ] + }, + "version_control_mut": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "its_v0", + "name": "ITS_v0", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "MutableReference": { + "Struct": { + "address": "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6", + "module": "version_control", + "name": "VersionControl", + "typeArguments": [] + } + } + } + ] + } + } + }, + "owner_cap": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "owner_cap", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + } + ], + "structs": { + "OwnerCap": { + "abilities": { + "abilities": [ + "Store", + "Key" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": { + "Struct": { + "address": "0x2", + "module": "object", + "name": "UID", + "typeArguments": [] + } + } + } + ] + } + }, + "exposedFunctions": { + "create": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "MutableReference": { + "Struct": { + "address": "0x2", + "module": "tx_context", + "name": "TxContext", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "owner_cap", + "name": "OwnerCap", + "typeArguments": [] + } + } + ] + } + } + }, + "token_id": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "token_id", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + } + ], + "structs": { + "TokenId": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": "Address" + } + ] + }, + "UnregisteredTokenId": { + "abilities": { + "abilities": [ + "Copy", + "Drop", + "Store" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "id", + "type": "Address" + } + ] + } + }, + "exposedFunctions": { + "from_address": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "Address" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ] + }, + "from_coin_data": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_info", + "name": "CoinInfo", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "coin_management", + "name": "CoinManagement", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ] + }, + "from_info": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "string", + "name": "String", + "typeArguments": [] + } + } + }, + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "Reference": "U8" + }, + { + "Reference": "Bool" + }, + { + "Reference": "Bool" + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ] + }, + "from_u256": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "U256" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + ] + }, + "to_u256": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "TokenId", + "typeArguments": [] + } + } + } + ], + "return": [ + "U256" + ] + }, + "unregistered_token_id": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + "U8" + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "token_id", + "name": "UnregisteredTokenId", + "typeArguments": [] + } + } + ] + } + } + }, + "trusted_addresses": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "trusted_addresses", + "friends": [], + "structs": { + "TrustedAddresses": { + "abilities": { + "abilities": [ + "Copy", + "Drop" + ] + }, + "typeParameters": [], + "fields": [ + { + "name": "trusted_chains", + "type": { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + }, + { + "name": "trusted_addresses", + "type": { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + } + ] + } + }, + "exposedFunctions": { + "destroy": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "trusted_addresses", + "name": "TrustedAddresses", + "typeArguments": [] + } + } + ], + "return": [ + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ] + }, + "new": { + "visibility": "Public", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "Vector": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "trusted_addresses", + "name": "TrustedAddresses", + "typeArguments": [] + } + } + ] + } + } + }, + "unregistered_coin_data": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "unregistered_coin_data", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its_v0" + } + ], + "structs": { + "UnregisteredCoinData": { + "abilities": { + "abilities": [ + "Store" + ] + }, + "typeParameters": [ + { + "constraints": { + "abilities": [] + }, + "isPhantom": true + } + ], + "fields": [ + { + "name": "treasury_cap", + "type": { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + }, + { + "name": "coin_metadata", + "type": { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + } + ] + } + }, + "exposedFunctions": { + "destroy": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "unregistered_coin_data", + "name": "UnregisteredCoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + }, + "new": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [ + { + "abilities": [] + } + ], + "parameters": [ + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "TreasuryCap", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + }, + { + "Struct": { + "address": "0x2", + "module": "coin", + "name": "CoinMetadata", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ], + "return": [ + { + "Struct": { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "module": "unregistered_coin_data", + "name": "UnregisteredCoinData", + "typeArguments": [ + { + "TypeParameter": 0 + } + ] + } + } + ] + } + } + }, + "utils": { + "fileFormatVersion": 6, + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "utils", + "friends": [ + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "coin_info" + }, + { + "address": "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + "name": "its" + } + ], + "structs": {}, + "exposedFunctions": { + "decode_metadata": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Vector": "U8" + } + ], + "return": [ + "U32", + { + "Vector": "U8" + } + ] + }, + "hash_coin_info": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + }, + { + "Reference": "U8" + } + ], + "return": [ + "Address" + ] + }, + "is_lowercase": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + "U8" + ], + "return": [ + "Bool" + ] + }, + "is_number": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + "U8" + ], + "return": [ + "Bool" + ] + }, + "is_uppercase": { + "visibility": "Private", + "isEntry": true, + "typeParameters": [], + "parameters": [ + "U8" + ], + "return": [ + "Bool" + ] + }, + "module_from_symbol": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + { + "Reference": { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + } + ], + "return": [ + { + "Struct": { + "address": "0x1", + "module": "ascii", + "name": "String", + "typeArguments": [] + } + } + ] + }, + "pow": { + "visibility": "Friend", + "isEntry": false, + "typeParameters": [], + "parameters": [ + "U256", + "U8" + ], + "return": [ + "U256" + ] + } + } + } +} \ No newline at end of file diff --git a/packages/sui/src/types/AxelarGateway.ts b/packages/sui/src/types/AxelarGateway.ts new file mode 100644 index 000000000..0bbe21f63 --- /dev/null +++ b/packages/sui/src/types/AxelarGateway.ts @@ -0,0 +1,3499 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +/* Generated types for 0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981, original address 0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981 */ + +import { SuiClient } from "@mysten/sui.js/client"; +import { + TransactionArgument, + TransactionBlock, + TransactionObjectArgument, +} from "@mysten/sui.js/transactions"; +import { ANY_TYPE, TypeDescriptor } from "@typemove/move"; +import { + defaultMoveCoder, + getMoveCoder, + MoveCoder, + transactionArgumentOrObject, + transactionArgumentOrPure, + transactionArgumentOrVec, + TypedDevInspectResults, + TypedEventInstance, + ZERO_ADDRESS, +} from "@typemove/sui"; +import { _0x1, _0x2 } from "@typemove/sui/builtin"; + +import * as _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6 from "./0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.js"; + +export namespace auth { + export interface AxelarSigners { + epoch: bigint; + epoch_by_signers_hash: _0x2.table.Table; + domain_separator: bytes32.Bytes32; + minimum_rotation_delay: bigint; + last_rotation_timestamp: bigint; + previous_signers_retention: bigint; + } + + export namespace AxelarSigners { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::AxelarSigners"; + + const TYPE = new TypeDescriptor(AxelarSigners.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MessageToSign { + domain_separator: bytes32.Bytes32; + signers_hash: bytes32.Bytes32; + data_hash: bytes32.Bytes32; + } + + export namespace MessageToSign { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::MessageToSign"; + + const TYPE = new TypeDescriptor(MessageToSign.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MessageToSignInstance + extends TypedEventInstance { + data_decoded: MessageToSign; + type_arguments: []; + } + + export namespace builder { + export function new_( + tx: TransactionBlock, + args: [] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::new", + arguments: _args, + }); + } + export function rotateSigners( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + Boolean | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::rotate_signers", + arguments: _args, + }); + } + export function setup( + tx: TransactionBlock, + args: [ + bytes32.Bytes32 | TransactionArgument, + bigint | TransactionArgument, + bigint | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrObject(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::setup", + arguments: _args, + }); + } + export function validateProof( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + proof.Proof | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::auth::validate_proof", + arguments: _args, + }); + } + } + export namespace view { + export async function new_( + client: SuiClient, + args: [] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [auth.AxelarSigners] + >(inspectRes); + } + export async function rotateSigners( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + Boolean | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.rotateSigners(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function setup( + client: SuiClient, + args: [ + bytes32.Bytes32 | TransactionArgument, + bigint | TransactionArgument, + bigint | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.setup(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [auth.AxelarSigners] + >(inspectRes); + } + export async function validateProof( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + proof.Proof | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.validateProof(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + } +} + +export namespace bytes32 { + export interface Bytes32 { + bytes: string; + } + + export namespace Bytes32 { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::Bytes32"; + + const TYPE = new TypeDescriptor(Bytes32.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface Bytes32Instance extends TypedEventInstance { + data_decoded: Bytes32; + type_arguments: []; + } + + export namespace builder { + export function default_( + tx: TransactionBlock, + args: [] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::default", + arguments: _args, + }); + } + export function fromAddress( + tx: TransactionBlock, + args: [string | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::from_address", + arguments: _args, + }); + } + export function fromBytes( + tx: TransactionBlock, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::from_bytes", + arguments: _args, + }); + } + export function length( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::length", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [string | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::new", + arguments: _args, + }); + } + export function peel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::peel", + arguments: _args, + }); + } + export function toBytes( + tx: TransactionBlock, + args: [bytes32.Bytes32 | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::bytes32::to_bytes", + arguments: _args, + }); + } + } + export namespace view { + export async function default_( + client: SuiClient, + args: [] + ): Promise> { + const tx = new TransactionBlock(); + builder.default_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function fromAddress( + client: SuiClient, + args: [string | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.fromAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function fromBytes( + client: SuiClient, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.fromBytes(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function length( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.length(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes + ); + } + export async function new_( + client: SuiClient, + args: [string | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function peel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function toBytes( + client: SuiClient, + args: [bytes32.Bytes32 | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.toBytes(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>( + inspectRes + ); + } + } +} + +export namespace channel { + export interface ApprovedMessage { + source_chain: _0x1.ascii.String; + message_id: _0x1.ascii.String; + source_address: _0x1.ascii.String; + destination_id: string; + payload: number[]; + } + + export namespace ApprovedMessage { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::ApprovedMessage"; + + const TYPE = new TypeDescriptor( + ApprovedMessage.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface Channel { + id: _0x2.object_.UID; + } + + export namespace Channel { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::Channel"; + + const TYPE = new TypeDescriptor(Channel.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function consumeApprovedMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + channel.ApprovedMessage | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::consume_approved_message", + arguments: _args, + }); + } + export function createApprovedMessage( + tx: TransactionBlock, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrVec(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::create_approved_message", + arguments: _args, + }); + } + export function destroy( + tx: TransactionBlock, + args: [channel.Channel | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::destroy", + arguments: _args, + }); + } + export function id( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::id", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::new", + arguments: _args, + }); + } + export function toAddress( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::channel::to_address", + arguments: _args, + }); + } + } + export namespace view { + export async function consumeApprovedMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + channel.ApprovedMessage | TransactionArgument, + ] + ): Promise< + TypedDevInspectResults< + [_0x1.ascii.String, _0x1.ascii.String, _0x1.ascii.String, number[]] + > + > { + const tx = new TransactionBlock(); + builder.consumeApprovedMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String, _0x1.ascii.String, _0x1.ascii.String, number[]] + >(inspectRes); + } + export async function createApprovedMessage( + client: SuiClient, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.createApprovedMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [channel.ApprovedMessage] + >(inspectRes); + } + export async function destroy( + client: SuiClient, + args: [channel.Channel | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.destroy(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function id( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.id(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.object_.ID] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [channel.Channel] + >(inspectRes); + } + export async function toAddress( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.toAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + } +} + +export namespace discovery { + export interface Function { + package_id: string; + module_name: _0x1.ascii.String; + name: _0x1.ascii.String; + } + + export namespace Function { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::Function"; + + const TYPE = new TypeDescriptor(Function.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface FunctionInstance extends TypedEventInstance { + data_decoded: Function; + type_arguments: []; + } + + export interface MoveCall { + function: discovery.Function; + arguments: number[][]; + type_arguments: _0x1.ascii.String[]; + } + + export namespace MoveCall { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::MoveCall"; + + const TYPE = new TypeDescriptor(MoveCall.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MoveCallInstance extends TypedEventInstance { + data_decoded: MoveCall; + type_arguments: []; + } + + export interface RelayerDiscovery { + id: _0x2.object_.UID; + configurations: _0x2.table.Table<_0x2.object_.ID, discovery.Transaction>; + } + + export namespace RelayerDiscovery { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::RelayerDiscovery"; + + const TYPE = new TypeDescriptor( + RelayerDiscovery.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface Transaction { + is_final: Boolean; + move_calls: discovery.MoveCall[]; + } + + export namespace Transaction { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::Transaction"; + + const TYPE = new TypeDescriptor(Transaction.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface TransactionInstance extends TypedEventInstance { + data_decoded: Transaction; + type_arguments: []; + } + + export namespace builder { + export function getTransaction( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.object_.ID | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::get_transaction", + arguments: _args, + }); + } + export function newFunction( + tx: TransactionBlock, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_function", + arguments: _args, + }); + } + export function newFunctionFromBcs( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_function_from_bcs", + arguments: _args, + }); + } + export function newMoveCall( + tx: TransactionBlock, + args: [ + discovery.Function | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_move_call", + arguments: _args, + }); + } + export function newMoveCallFromBcs( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_move_call_from_bcs", + arguments: _args, + }); + } + export function newTransaction( + tx: TransactionBlock, + args: [ + Boolean | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_transaction", + arguments: _args, + }); + } + export function newTransactionFromBcs( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::new_transaction_from_bcs", + arguments: _args, + }); + } + export function packageId( + tx: TransactionBlock, + args: [], + typeArguments: [TypeDescriptor | string] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::package_id", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function registerTransaction( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + discovery.Transaction | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::discovery::register_transaction", + arguments: _args, + }); + } + } + export namespace view { + export async function getTransaction( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.object_.ID | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.getTransaction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.Transaction] + >(inspectRes); + } + export async function newFunction( + client: SuiClient, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.newFunction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.Function] + >(inspectRes); + } + export async function newFunctionFromBcs( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.newFunctionFromBcs(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.Function] + >(inspectRes); + } + export async function newMoveCall( + client: SuiClient, + args: [ + discovery.Function | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.newMoveCall(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.MoveCall] + >(inspectRes); + } + export async function newMoveCallFromBcs( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.newMoveCallFromBcs(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.MoveCall] + >(inspectRes); + } + export async function newTransaction( + client: SuiClient, + args: [ + Boolean | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.newTransaction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.Transaction] + >(inspectRes); + } + export async function newTransactionFromBcs( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.newTransactionFromBcs(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [discovery.Transaction] + >(inspectRes); + } + export async function packageId( + client: SuiClient, + args: [], + typeArguments: [TypeDescriptor | string] + ): Promise> { + const tx = new TransactionBlock(); + builder.packageId(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function registerTransaction( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + discovery.Transaction | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.registerTransaction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + } +} + +export namespace events { + export interface ChannelCreated { + id: string; + } + + export namespace ChannelCreated { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::ChannelCreated"; + + const TYPE = new TypeDescriptor(ChannelCreated.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface ChannelCreatedInstance + extends TypedEventInstance { + data_decoded: ChannelCreated; + type_arguments: []; + } + + export interface ChannelDestroyed { + id: string; + } + + export namespace ChannelDestroyed { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::ChannelDestroyed"; + + const TYPE = new TypeDescriptor( + ChannelDestroyed.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface ChannelDestroyedInstance + extends TypedEventInstance { + data_decoded: ChannelDestroyed; + type_arguments: []; + } + + export interface ContractCall { + source_id: string; + destination_chain: _0x1.ascii.String; + destination_address: _0x1.ascii.String; + payload: number[]; + payload_hash: string; + } + + export namespace ContractCall { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::ContractCall"; + + const TYPE = new TypeDescriptor(ContractCall.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface ContractCallInstance + extends TypedEventInstance { + data_decoded: ContractCall; + type_arguments: []; + } + + export interface MessageApproved { + message: message.Message; + } + + export namespace MessageApproved { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::MessageApproved"; + + const TYPE = new TypeDescriptor( + MessageApproved.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MessageApprovedInstance + extends TypedEventInstance { + data_decoded: MessageApproved; + type_arguments: []; + } + + export interface MessageExecuted { + message: message.Message; + } + + export namespace MessageExecuted { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::MessageExecuted"; + + const TYPE = new TypeDescriptor( + MessageExecuted.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MessageExecutedInstance + extends TypedEventInstance { + data_decoded: MessageExecuted; + type_arguments: []; + } + + export interface SignersRotated { + epoch: bigint; + signers_hash: bytes32.Bytes32; + signers: weighted_signers.WeightedSigners; + } + + export namespace SignersRotated { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::SignersRotated"; + + const TYPE = new TypeDescriptor(SignersRotated.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface SignersRotatedInstance + extends TypedEventInstance { + data_decoded: SignersRotated; + type_arguments: []; + } + + export namespace builder { + export function channelCreated( + tx: TransactionBlock, + args: [string | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::channel_created", + arguments: _args, + }); + } + export function channelDestroyed( + tx: TransactionBlock, + args: [string | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::channel_destroyed", + arguments: _args, + }); + } + export function contractCall( + tx: TransactionBlock, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + string | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::contract_call", + arguments: _args, + }); + } + export function messageApproved( + tx: TransactionBlock, + args: [message.Message | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::message_approved", + arguments: _args, + }); + } + export function messageExecuted( + tx: TransactionBlock, + args: [message.Message | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::message_executed", + arguments: _args, + }); + } + export function signersRotated( + tx: TransactionBlock, + args: [ + bigint | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::events::signers_rotated", + arguments: _args, + }); + } + } + export namespace view { + export async function channelCreated( + client: SuiClient, + args: [string | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.channelCreated(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function channelDestroyed( + client: SuiClient, + args: [string | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.channelDestroyed(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function contractCall( + client: SuiClient, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + string | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.contractCall(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function messageApproved( + client: SuiClient, + args: [message.Message | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.messageApproved(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function messageExecuted( + client: SuiClient, + args: [message.Message | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.messageExecuted(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function signersRotated( + client: SuiClient, + args: [ + bigint | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + weighted_signers.WeightedSigners | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.signersRotated(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + } +} + +export namespace gateway { + export interface CreatorCap { + id: _0x2.object_.UID; + } + + export namespace CreatorCap { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::CreatorCap"; + + const TYPE = new TypeDescriptor(CreatorCap.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface Gateway { + id: _0x2.object_.UID; + inner: _0x2.versioned.Versioned; + } + + export namespace Gateway { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::Gateway"; + + const TYPE = new TypeDescriptor(Gateway.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function approveMessages( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::approve_messages", + arguments: _args, + }); + } + export function isMessageApproved( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + _args.push(transactionArgumentOrPure(args[5], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::is_message_approved", + arguments: _args, + }); + } + export function isMessageExecuted( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::is_message_executed", + arguments: _args, + }); + } + export function prepareMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::prepare_message", + arguments: _args, + }); + } + export function rotateSigners( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::rotate_signers", + arguments: _args, + }); + } + export function sendMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + message_ticket.MessageTicket | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::send_message", + arguments: _args, + }); + } + export function setup( + tx: TransactionBlock, + args: [ + gateway.CreatorCap | TransactionArgument, + string | TransactionArgument, + string | TransactionArgument, + bigint | TransactionArgument, + bigint | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + _args.push(transactionArgumentOrVec(args[5], tx)); + _args.push(transactionArgumentOrObject(args[6], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::setup", + arguments: _args, + }); + } + export function takeApprovedMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + _args.push(transactionArgumentOrVec(args[5], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway::take_approved_message", + arguments: _args, + }); + } + } + export namespace view { + export async function isMessageApproved( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.isMessageApproved(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + export async function isMessageExecuted( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.isMessageExecuted(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + export async function prepareMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.prepareMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message_ticket.MessageTicket] + >(inspectRes); + } + + export async function sendMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + message_ticket.MessageTicket | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.sendMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + + export async function takeApprovedMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.takeApprovedMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [channel.ApprovedMessage] + >(inspectRes); + } + } +} + +export namespace gateway_v0 { + export interface Gateway_v0 { + operator: string; + messages: _0x2.table.Table; + signers: auth.AxelarSigners; + version_control: _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl; + } + + export namespace Gateway_v0 { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::Gateway_v0"; + + const TYPE = new TypeDescriptor(Gateway_v0.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function approveMessages( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::approve_messages", + arguments: _args, + }); + } + export function isMessageApproved( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + _args.push(transactionArgumentOrPure(args[5], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::is_message_approved", + arguments: _args, + }); + } + export function isMessageExecuted( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::is_message_executed", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + string | TransactionArgument, + ( + | _0x2.table.Table + | TransactionArgument + ), + auth.AxelarSigners | TransactionArgument, + ( + | _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl + | TransactionArgument + ), + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::new", + arguments: _args, + }); + } + export function rotateSigners( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::rotate_signers", + arguments: _args, + }); + } + export function sendMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + message_ticket.MessageTicket | TransactionArgument, + bigint | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::send_message", + arguments: _args, + }); + } + export function takeApprovedMessage( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + _args.push(transactionArgumentOrVec(args[5], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::take_approved_message", + arguments: _args, + }); + } + export function versionControl( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::gateway_v0::version_control", + arguments: _args, + }); + } + } + export namespace view { + export async function approveMessages( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.approveMessages(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function isMessageApproved( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.isMessageApproved(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + export async function isMessageExecuted( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.isMessageExecuted(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + export async function new_( + client: SuiClient, + args: [ + string | TransactionArgument, + ( + | _0x2.table.Table + | TransactionArgument + ), + auth.AxelarSigners | TransactionArgument, + ( + | _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl + | TransactionArgument + ), + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [gateway_v0.Gateway_v0] + >(inspectRes); + } + export async function rotateSigners( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.rotateSigners(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function sendMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + message_ticket.MessageTicket | TransactionArgument, + bigint | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.sendMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function takeApprovedMessage( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.takeApprovedMessage(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [channel.ApprovedMessage] + >(inspectRes); + } + export async function versionControl( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.versionControl(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + } +} + +export namespace message { + export interface Message { + source_chain: _0x1.ascii.String; + message_id: _0x1.ascii.String; + source_address: _0x1.ascii.String; + destination_id: string; + payload_hash: bytes32.Bytes32; + } + + export namespace Message { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::Message"; + + const TYPE = new TypeDescriptor(Message.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface MessageInstance extends TypedEventInstance { + data_decoded: Message; + type_arguments: []; + } + + export namespace builder { + export function commandId( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::command_id", + arguments: _args, + }); + } + export function hash( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::hash", + arguments: _args, + }); + } + export function messageToCommandId( + tx: TransactionBlock, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::message_to_command_id", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::new", + arguments: _args, + }); + } + export function peel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message::peel", + arguments: _args, + }); + } + } + export namespace view { + export async function commandId( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.commandId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function hash( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.hash(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function messageToCommandId( + client: SuiClient, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.messageToCommandId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [ + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + string | TransactionArgument, + bytes32.Bytes32 | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message.Message] + >(inspectRes); + } + export async function peel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message.Message] + >(inspectRes); + } + } +} + +export namespace message_status { + export namespace builder { + export function approved( + tx: TransactionBlock, + args: [bytes32.Bytes32 | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_status::approved", + arguments: _args, + }); + } + export function executed( + tx: TransactionBlock, + args: [] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_status::executed", + arguments: _args, + }); + } + } + export namespace view { + export async function approved( + client: SuiClient, + args: [bytes32.Bytes32 | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.approved(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message_status.MessageStatus] + >(inspectRes); + } + export async function executed( + client: SuiClient, + args: [] + ): Promise> { + const tx = new TransactionBlock(); + builder.executed(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message_status.MessageStatus] + >(inspectRes); + } + } +} + +export namespace message_ticket { + export interface MessageTicket { + source_id: string; + destination_chain: _0x1.ascii.String; + destination_address: _0x1.ascii.String; + payload: number[]; + version: bigint; + } + + export namespace MessageTicket { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::MessageTicket"; + + const TYPE = new TypeDescriptor(MessageTicket.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function destinationAddress( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::destination_address", + arguments: _args, + }); + } + export function destinationChain( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::destination_chain", + arguments: _args, + }); + } + export function destroy( + tx: TransactionBlock, + args: [message_ticket.MessageTicket | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::destroy", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ] + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::new", + arguments: _args, + }); + } + export function payload( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::payload", + arguments: _args, + }); + } + export function sourceId( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::source_id", + arguments: _args, + }); + } + export function version( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::message_ticket::version", + arguments: _args, + }); + } + } + export namespace view { + export async function destinationAddress( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.destinationAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + export async function destinationChain( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.destinationChain(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + export async function destroy( + client: SuiClient, + args: [message_ticket.MessageTicket | TransactionArgument] + ): Promise< + TypedDevInspectResults< + [string, _0x1.ascii.String, _0x1.ascii.String, number[], bigint] + > + > { + const tx = new TransactionBlock(); + builder.destroy(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [string, _0x1.ascii.String, _0x1.ascii.String, number[], bigint] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [message_ticket.MessageTicket] + >(inspectRes); + } + export async function payload( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.payload(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>( + inspectRes + ); + } + export async function sourceId( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.sourceId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function version( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.version(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes + ); + } + } +} + +export namespace proof { + export interface Proof { + signers: weighted_signers.WeightedSigners; + signatures: proof.Signature[]; + } + + export namespace Proof { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::Proof"; + + const TYPE = new TypeDescriptor(Proof.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface ProofInstance extends TypedEventInstance { + data_decoded: Proof; + type_arguments: []; + } + + export interface Signature { + bytes: number[]; + } + + export namespace Signature { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::Signature"; + + const TYPE = new TypeDescriptor(Signature.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface SignatureInstance extends TypedEventInstance { + data_decoded: Signature; + type_arguments: []; + } + + export namespace builder { + export function newSignature( + tx: TransactionBlock, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::new_signature", + arguments: _args, + }); + } + export function peel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::peel", + arguments: _args, + }); + } + export function peelSignature( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::peel_signature", + arguments: _args, + }); + } + export function recoverPubKey( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::recover_pub_key", + arguments: _args, + }); + } + export function signatures( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::signatures", + arguments: _args, + }); + } + export function signers( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::signers", + arguments: _args, + }); + } + export function validate( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::proof::validate", + arguments: _args, + }); + } + } + export namespace view { + export async function newSignature( + client: SuiClient, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.newSignature(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [proof.Signature] + >(inspectRes); + } + export async function peel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[proof.Proof]>( + inspectRes + ); + } + export async function peelSignature( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peelSignature(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [proof.Signature] + >(inspectRes); + } + export async function recoverPubKey( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.recoverPubKey(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>( + inspectRes + ); + } + export async function signatures( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.signatures(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function signers( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.signers(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function validate( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.validate(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + } +} + +export namespace weighted_signer { + export interface WeightedSigner { + pub_key: number[]; + weight: bigint; + } + + export namespace WeightedSigner { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::WeightedSigner"; + + const TYPE = new TypeDescriptor(WeightedSigner.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface WeightedSignerInstance + extends TypedEventInstance { + data_decoded: WeightedSigner; + type_arguments: []; + } + + export namespace builder { + export function default_( + tx: TransactionBlock, + args: [] + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::default", + arguments: _args, + }); + } + export function lt( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::lt", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::new", + arguments: _args, + }); + } + export function peel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::peel", + arguments: _args, + }); + } + export function pubKey( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::pub_key", + arguments: _args, + }); + } + export function validate( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::validate", + arguments: _args, + }); + } + export function weight( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signer::weight", + arguments: _args, + }); + } + } + export namespace view { + export async function default_( + client: SuiClient, + args: [] + ): Promise> { + const tx = new TransactionBlock(); + builder.default_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [weighted_signer.WeightedSigner] + >(inspectRes); + } + export async function lt( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.lt(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes + ); + } + export async function new_( + client: SuiClient, + args: [ + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [weighted_signer.WeightedSigner] + >(inspectRes); + } + export async function peel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [weighted_signer.WeightedSigner] + >(inspectRes); + } + export async function pubKey( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.pubKey(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number[]]>( + inspectRes + ); + } + export async function validate( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.validate(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function weight( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.weight(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes + ); + } + } +} + +export namespace weighted_signers { + export interface WeightedSigners { + signers: weighted_signer.WeightedSigner[]; + threshold: bigint; + nonce: bytes32.Bytes32; + } + + export namespace WeightedSigners { + export const TYPE_QNAME = + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::WeightedSigners"; + + const TYPE = new TypeDescriptor( + WeightedSigners.TYPE_QNAME + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface WeightedSignersInstance + extends TypedEventInstance { + data_decoded: WeightedSigners; + type_arguments: []; + } + + export namespace builder { + export function hash( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::hash", + arguments: _args, + }); + } + export function nonce( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::nonce", + arguments: _args, + }); + } + export function peel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::peel", + arguments: _args, + }); + } + export function signers( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::signers", + arguments: _args, + }); + } + export function threshold( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::threshold", + arguments: _args, + }); + } + export function validate( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981::weighted_signers::validate", + arguments: _args, + }); + } + } + export namespace view { + export async function hash( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.hash(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function nonce( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.nonce(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [bytes32.Bytes32] + >(inspectRes); + } + export async function peel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.peel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [weighted_signers.WeightedSigners] + >(inspectRes); + } + export async function signers( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.signers(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function threshold( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.threshold(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes + ); + } + export async function validate( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.validate(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + } +} + +const MODULES = JSON.parse( + '[{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"auth","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"AxelarSigners":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"epoch_by_signers_hash","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},"U64"]}}},{"name":"domain_separator","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}},{"name":"minimum_rotation_delay","type":"U64"},{"name":"last_rotation_timestamp","type":"U64"},{"name":"previous_signers_retention","type":"U64"}]},"MessageToSign":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"domain_separator","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}},{"name":"signers_hash","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}},{"name":"data_hash","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}}]}},"exposedFunctions":{"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}}]},"rotate_signers":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}},"Bool"],"return":[]},"setup":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},"U64","U64",{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}}]},"validate_proof":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Proof","typeArguments":[]}}],"return":["Bool"]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"bytes32","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"message"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"weighted_signers"}],"structs":{"Bytes32":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":"Address"}]}},"exposedFunctions":{"default":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"from_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["Address"],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"from_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"length":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}}],"return":["U64"]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["Address"],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"peel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"to_bytes":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}],"return":[{"Vector":"U8"}]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"channel","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"ApprovedMessage":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"source_chain","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"message_id","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"source_address","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"destination_id","type":"Address"},{"name":"payload","type":{"Vector":"U8"}}]},"Channel":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]}},"exposedFunctions":{"consume_approved_message":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"}]},"create_approved_message":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}}]},"destroy":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}],"return":[]},"id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}]},"to_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}}],"return":["Address"]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"discovery","friends":[],"structs":{"Function":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"package_id","type":"Address"},{"name":"module_name","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"name","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]},"MoveCall":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"function","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Function","typeArguments":[]}}},{"name":"arguments","type":{"Vector":{"Vector":"U8"}}},{"name":"type_arguments","type":{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}}]},"RelayerDiscovery":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"configurations","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Transaction","typeArguments":[]}}]}}}]},"Transaction":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"is_final","type":"Bool"},{"name":"move_calls","type":{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"MoveCall","typeArguments":[]}}}}]}},"exposedFunctions":{"get_transaction":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"RelayerDiscovery","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Transaction","typeArguments":[]}}]},"new_function":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Function","typeArguments":[]}}]},"new_function_from_bcs":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Function","typeArguments":[]}}]},"new_move_call":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Function","typeArguments":[]}},{"Vector":{"Vector":"U8"}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"MoveCall","typeArguments":[]}}]},"new_move_call_from_bcs":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"MoveCall","typeArguments":[]}}]},"new_transaction":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["Bool",{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"MoveCall","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Transaction","typeArguments":[]}}]},"new_transaction_from_bcs":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Transaction","typeArguments":[]}}]},"package_id":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":["Address"]},"register_transaction":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"RelayerDiscovery","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"discovery","name":"Transaction","typeArguments":[]}}],"return":[]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"events","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"auth"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"channel"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"ChannelCreated":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"id","type":"Address"}]},"ChannelDestroyed":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"id","type":"Address"}]},"ContractCall":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"source_id","type":"Address"},{"name":"destination_chain","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"destination_address","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"payload","type":{"Vector":"U8"}},{"name":"payload_hash","type":"Address"}]},"MessageApproved":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"message","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}}]},"MessageExecuted":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"message","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}}]},"SignersRotated":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"epoch","type":"U64"},{"name":"signers_hash","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}},{"name":"signers","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}]}},"exposedFunctions":{"channel_created":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address"],"return":[]},"channel_destroyed":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address"],"return":[]},"contract_call":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},"Address"],"return":[]},"message_approved":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}],"return":[]},"message_executed":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}],"return":[]},"signers_rotated":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U64",{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}],"return":[]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway","friends":[],"structs":{"CreatorCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]},"Gateway":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"inner","type":{"Struct":{"address":"0x2","module":"versioned","name":"Versioned","typeArguments":[]}}}]}},"exposedFunctions":{"approve_messages":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"}],"return":[]},"is_message_approved":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}],"return":["Bool"]},"is_message_executed":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":["Bool"]},"prepare_message":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}]},"rotate_signers":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"send_message":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}],"return":[]},"setup":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"CreatorCap","typeArguments":[]}},"Address","Address","U64","U64",{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"take_approved_message":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway","name":"Gateway","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}}]}}},{"fileFormatVersion":7,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway"}],"structs":{"Gateway_v0":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"operator","type":"Address"},{"name":"messages","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_status","name":"MessageStatus","typeArguments":[]}}]}}},{"name":"signers","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}}},{"name":"version_control","type":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}]}},"exposedFunctions":{"approve_messages":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"}],"return":[]},"is_message_approved":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}],"return":["Bool"]},"is_message_executed":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":["Bool"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_status","name":"MessageStatus","typeArguments":[]}}]}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"auth","name":"AxelarSigners","typeArguments":[]}},{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}]},"rotate_signers":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"send_message":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}},"U64"],"return":[]},"take_approved_message":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}}]},"version_control":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"gateway_v0","name":"Gateway_v0","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"message","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"Message":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"source_chain","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"message_id","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"source_address","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"destination_id","type":"Address"},{"name":"payload_hash","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}}]}},"exposedFunctions":{"command_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"hash":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"message_to_command_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"Address",{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}]},"peel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message","name":"Message","typeArguments":[]}}]}}},{"fileFormatVersion":7,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"message_status","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{},"exposedFunctions":{"approved":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_status","name":"MessageStatus","typeArguments":[]}}]},"executed":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_status","name":"MessageStatus","typeArguments":[]}}]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"message_ticket","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"MessageTicket":{"abilities":{"abilities":[]},"typeParameters":[],"fields":[{"name":"source_id","type":"Address"},{"name":"destination_chain","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"destination_address","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"payload","type":{"Vector":"U8"}},{"name":"version","type":"U64"}]}},"exposedFunctions":{"destination_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"destination_chain":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"destroy":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}],"return":["Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},"U64"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},"U64"],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}]},"payload":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}}],"return":[{"Vector":"U8"}]},"source_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}}],"return":["Address"]},"version":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}}],"return":["U64"]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"proof","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"auth"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"}],"structs":{"Proof":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"signers","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}},{"name":"signatures","type":{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Signature","typeArguments":[]}}}}]},"Signature":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"bytes","type":{"Vector":"U8"}}]}},"exposedFunctions":{"new_signature":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Signature","typeArguments":[]}}]},"peel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Proof","typeArguments":[]}}]},"peel_signature":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Signature","typeArguments":[]}}]},"recover_pub_key":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Signature","typeArguments":[]}}},{"Reference":{"Vector":"U8"}}],"return":[{"Vector":"U8"}]},"signatures":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Proof","typeArguments":[]}}}],"return":[{"Reference":{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Signature","typeArguments":[]}}}}]},"signers":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Proof","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}]},"validate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"proof","name":"Proof","typeArguments":[]}}},{"Vector":"U8"}],"return":[]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"weighted_signer","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"weighted_signers"}],"structs":{"WeightedSigner":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"pub_key","type":{"Vector":"U8"}},{"name":"weight","type":"U128"}]}},"exposedFunctions":{"default":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}]},"lt":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}],"return":["Bool"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"},"U128"],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}]},"peel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}]},"pub_key":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}],"return":[{"Vector":"U8"}]},"validate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}],"return":[]},"weight":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}],"return":["U128"]}}},{"fileFormatVersion":6,"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"weighted_signers","friends":[{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"auth"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"gateway_v0"},{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","name":"proof"}],"structs":{"WeightedSigners":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"signers","type":{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}},{"name":"threshold","type":"U128"},{"name":"nonce","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}}]}},"exposedFunctions":{"hash":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"nonce":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"bytes32","name":"Bytes32","typeArguments":[]}}]},"peel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"bcs","name":"BCS","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}]},"signers":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}],"return":[{"Reference":{"Vector":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signer","name":"WeightedSigner","typeArguments":[]}}}}]},"threshold":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}],"return":["U128"]},"validate":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"weighted_signers","name":"WeightedSigners","typeArguments":[]}}}],"return":[]}}}]' +); + +export function loadAllTypes(coder: MoveCoder) { + _0x2.loadAllTypes(coder); + _0x1.loadAllTypes(coder); + _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.loadAllTypes( + coder + ); + for (const m of Object.values(MODULES)) { + coder.load( + m as any, + "0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981" + ); + } +} + +loadAllTypes(defaultMoveCoder()); diff --git a/packages/sui/src/types/ITS.ts b/packages/sui/src/types/ITS.ts new file mode 100644 index 000000000..1baa5cbd0 --- /dev/null +++ b/packages/sui/src/types/ITS.ts @@ -0,0 +1,4478 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +/* Generated types for 0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba, original address 0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba */ + +import { TypeDescriptor, ANY_TYPE } from "@typemove/move"; +import { MoveCoder, TypedEventInstance } from "@typemove/sui"; + +import { defaultMoveCoder } from "@typemove/sui"; + +import { + ZERO_ADDRESS, + TypedDevInspectResults, + getMoveCoder, +} from "@typemove/sui"; +import { + TransactionBlock, + TransactionArgument, + TransactionObjectArgument, +} from "@mysten/sui.js/transactions"; +import { SuiClient } from "@mysten/sui.js/client"; +import { + transactionArgumentOrObject, + transactionArgumentOrPure, + transactionArgumentOrVec, +} from "@typemove/sui"; + +import { _0x1 } from "@typemove/sui/builtin"; +import { _0x2 } from "@typemove/sui/builtin"; +import * as _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981 from "./0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.js"; +import * as _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6 from "./0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.js"; + +export namespace address_tracker { + export interface InterchainAddressTracker { + trusted_addresses: _0x2.table.Table<_0x1.ascii.String, _0x1.ascii.String>; + } + + export namespace InterchainAddressTracker { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::InterchainAddressTracker"; + + const TYPE = new TypeDescriptor( + InterchainAddressTracker.TYPE_QNAME, + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function isTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::is_trusted_address", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [], + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::new", + arguments: _args, + }); + } + export function removeTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::remove_trusted_address", + arguments: _args, + }); + } + export function setTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::set_trusted_address", + arguments: _args, + }); + } + export function trustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::address_tracker::trusted_address", + arguments: _args, + }); + } + } + export namespace view { + export async function isTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.isTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes, + ); + } + export async function new_( + client: SuiClient, + args: [], + ): Promise< + TypedDevInspectResults<[address_tracker.InterchainAddressTracker]> + > { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [address_tracker.InterchainAddressTracker] + >(inspectRes); + } + export async function removeTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.removeTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function setTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function trustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.trustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + } +} + +export namespace coin_data { + export interface CoinData { + coin_management: coin_management.CoinManagement; + coin_info: coin_info.CoinInfo; + } + + export namespace CoinData { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_data::CoinData"; + + const TYPE = new TypeDescriptor>(CoinData.TYPE_QNAME); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export namespace builder { + export function coinInfo( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_data::coin_info", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function coinManagementMut( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_data::coin_management_mut", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function coinScaling( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_data::coin_scaling", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function new_( + tx: TransactionBlock, + args: [ + coin_management.CoinManagement | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_data::new", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + } + export namespace view { + export async function coinInfo( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinInfo(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinManagementMut( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinManagementMut(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinScaling( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinScaling(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes, + ); + } + export async function new_( + client: SuiClient, + args: [ + coin_management.CoinManagement | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.new_(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [coin_data.CoinData] + >(inspectRes); + } + } +} + +export namespace coin_info { + export interface CoinInfo { + name: string; + symbol: _0x1.ascii.String; + decimals: number; + remote_decimals: number; + metadata: _0x1.option.Option<_0x2.coin.CoinMetadata>; + } + + export namespace CoinInfo { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::CoinInfo"; + + const TYPE = new TypeDescriptor>(CoinInfo.TYPE_QNAME); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export namespace builder { + export function decimals( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::decimals", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function fromInfo( + tx: TransactionBlock, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + number | TransactionArgument, + number | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::from_info", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function fromMetadata( + tx: TransactionBlock, + args: [ + _0x2.coin.CoinMetadata | TransactionArgument, + number | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::from_metadata", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function metadata( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::metadata", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function name( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::name", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function remoteDecimals( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::remote_decimals", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function scaling( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::scaling", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function symbol( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_info::symbol", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + } + export namespace view { + export async function decimals( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.decimals(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number]>( + inspectRes, + ); + } + export async function fromInfo( + client: SuiClient, + args: [ + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + number | TransactionArgument, + number | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.fromInfo(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [coin_info.CoinInfo] + >(inspectRes); + } + export async function fromMetadata( + client: SuiClient, + args: [ + _0x2.coin.CoinMetadata | TransactionArgument, + number | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.fromMetadata(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [coin_info.CoinInfo] + >(inspectRes); + } + export async function metadata( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.metadata(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function name( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.name(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function remoteDecimals( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.remoteDecimals(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number]>( + inspectRes, + ); + } + export async function scaling( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.scaling(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes, + ); + } + export async function symbol( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.symbol(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + } +} + +export namespace coin_management { + export interface CoinManagement { + treasury_cap: _0x1.option.Option<_0x2.coin.TreasuryCap>; + balance: _0x1.option.Option<_0x2.balance.Balance>; + distributor: _0x1.option.Option; + operator: _0x1.option.Option; + flow_limit: flow_limit.FlowLimit; + scaling: bigint; + dust: bigint; + } + + export namespace CoinManagement { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::CoinManagement"; + + const TYPE = new TypeDescriptor>( + CoinManagement.TYPE_QNAME, + ); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export namespace builder { + export function addDistributor( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::add_distributor", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function addOperator( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::add_operator", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function burn( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::burn", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function giveCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::give_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function hasCapability( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::has_capability", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function isDistributor( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::is_distributor", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function mint( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::mint", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function newLocked( + tx: TransactionBlock, + args: [], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::new_locked", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function newWithCap( + tx: TransactionBlock, + args: [_0x2.coin.TreasuryCap | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::new_with_cap", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function setFlowLimit( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::set_flow_limit", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function setScaling( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::set_scaling", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function takeBalance( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::coin_management::take_balance", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + } + export namespace view { + export async function addDistributor( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.addDistributor(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function addOperator( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.addOperator(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function burn( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.burn(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function giveCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.giveCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.coin.Coin] + >(inspectRes); + } + export async function hasCapability( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.hasCapability(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes, + ); + } + export async function isDistributor( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.isDistributor(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes, + ); + } + export async function mint( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.mint(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.coin.Coin] + >(inspectRes); + } + export async function newLocked( + client: SuiClient, + args: [], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.newLocked(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [coin_management.CoinManagement] + >(inspectRes); + } + export async function newWithCap( + client: SuiClient, + args: [_0x2.coin.TreasuryCap | TransactionArgument], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.newWithCap(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [coin_management.CoinManagement] + >(inspectRes); + } + export async function setFlowLimit( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.setFlowLimit(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function setScaling( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.setScaling(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function takeBalance( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.takeBalance(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes, + ); + } + } +} + +export namespace discovery { + export namespace builder { + export function callInfo( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::discovery::call_info", + arguments: _args, + }); + } + export function interchainTransferInfo( + tx: TransactionBlock, + args: [(string | TransactionObjectArgument)[] | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::discovery::interchain_transfer_info", + arguments: _args, + }); + } + export function registerTransaction( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::discovery::register_transaction", + arguments: _args, + }); + } + } + export namespace view { + export async function callInfo( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): Promise< + TypedDevInspectResults< + [ + _0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1.transaction.Transaction, + ] + > + > { + const tx = new TransactionBlock(); + builder.callInfo(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [ + _0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1.transaction.Transaction, + ] + >(inspectRes); + } + export async function interchainTransferInfo( + client: SuiClient, + args: [(string | TransactionObjectArgument)[] | TransactionArgument], + ): Promise< + TypedDevInspectResults<[token_id.TokenId, string, bigint, number[]]> + > { + const tx = new TransactionBlock(); + builder.interchainTransferInfo(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId, string, bigint, number[]] + >(inspectRes); + } + export async function registerTransaction( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.registerTransaction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + } +} + +export namespace flow_limit { + export interface FlowLimit { + flow_limit: bigint; + flow_in: bigint; + flow_out: bigint; + current_epoch: bigint; + } + + export namespace FlowLimit { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::flow_limit::FlowLimit"; + + const TYPE = new TypeDescriptor(FlowLimit.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface FlowLimitInstance extends TypedEventInstance { + data_decoded: FlowLimit; + type_arguments: []; + } + + export namespace builder { + export function addFlowIn( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::flow_limit::add_flow_in", + arguments: _args, + }); + } + export function addFlowOut( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::flow_limit::add_flow_out", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [], + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::flow_limit::new", + arguments: _args, + }); + } + export function setFlowLimit( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::flow_limit::set_flow_limit", + arguments: _args, + }); + } + } + export namespace view { + export async function addFlowIn( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.addFlowIn(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function addFlowOut( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.addFlowOut(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function new_( + client: SuiClient, + args: [], + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [flow_limit.FlowLimit] + >(inspectRes); + } + export async function setFlowLimit( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setFlowLimit(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + } +} + +export namespace interchain_transfer_ticket { + export interface InterchainTransferTicket { + token_id: token_id.TokenId; + balance: _0x2.balance.Balance; + source_address: string; + destination_chain: _0x1.ascii.String; + destination_address: number[]; + metadata: number[]; + version: bigint; + } + + export namespace InterchainTransferTicket { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::interchain_transfer_ticket::InterchainTransferTicket"; + + const TYPE = new TypeDescriptor>( + InterchainTransferTicket.TYPE_QNAME, + ); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export namespace builder { + export function destroy( + tx: TransactionBlock, + args: [ + | interchain_transfer_ticket.InterchainTransferTicket + | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::interchain_transfer_ticket::destroy", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function new_( + tx: TransactionBlock, + args: [ + token_id.TokenId | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrVec(args[4], tx)); + _args.push(transactionArgumentOrVec(args[5], tx)); + _args.push(transactionArgumentOrPure(args[6], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::interchain_transfer_ticket::new", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + } + export namespace view { + export async function destroy( + client: SuiClient, + args: [ + | interchain_transfer_ticket.InterchainTransferTicket + | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [ + token_id.TokenId, + _0x2.balance.Balance, + string, + _0x1.ascii.String, + number[], + number[], + bigint, + ] + > + > { + const tx = new TransactionBlock(); + builder.destroy(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [ + token_id.TokenId, + _0x2.balance.Balance, + string, + _0x1.ascii.String, + number[], + number[], + bigint, + ] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [ + token_id.TokenId | TransactionArgument, + _0x2.balance.Balance | TransactionArgument, + string | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [interchain_transfer_ticket.InterchainTransferTicket] + > + > { + const tx = new TransactionBlock(); + builder.new_(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [interchain_transfer_ticket.InterchainTransferTicket] + >(inspectRes); + } + } +} + +export namespace its { + export interface CoinRegistered { + token_id: token_id.TokenId; + } + + export namespace CoinRegistered { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::CoinRegistered"; + + const TYPE = new TypeDescriptor>( + CoinRegistered.TYPE_QNAME, + ); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export interface CoinRegisteredInstance + extends TypedEventInstance> { + data_decoded: CoinRegistered; + type_arguments: [string]; + } + + export interface ITS { + id: _0x2.object_.UID; + inner: _0x2.versioned.Versioned; + } + + export namespace ITS { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::ITS"; + + const TYPE = new TypeDescriptor(ITS.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function burnAsDistributor( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + _0x2.coin.Coin | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::burn_as_distributor", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function channelAddress( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::channel_address", + arguments: _args, + }); + } + export function deployRemoteInterchainToken( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::deploy_remote_interchain_token", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function giveUnregisteredCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::give_unregistered_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function mintAsDistributor( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::mint_as_distributor", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function mintToAsDistributor( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + string | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + _args.push(transactionArgumentOrPure(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::mint_to_as_distributor", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function packageValue( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::package_value", + arguments: _args, + }); + } + export function prepareInterchainTransfer( + tx: TransactionBlock, + args: [ + token_id.TokenId | TransactionArgument, + _0x2.coin.Coin | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrVec(args[3], tx)); + _args.push(transactionArgumentOrVec(args[4], tx)); + _args.push(transactionArgumentOrObject(args[5], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::prepare_interchain_transfer", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function receiveDeployInterchainToken( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::receive_deploy_interchain_token", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function receiveInterchainTransfer( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::receive_interchain_transfer", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function receiveInterchainTransferWithData( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + _args.push(transactionArgumentOrObject(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::receive_interchain_transfer_with_data", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function registerCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + coin_management.CoinManagement | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::register_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function registerTransaction( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ( + | _0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1.transaction.Transaction + | TransactionArgument + ), + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::register_transaction", + arguments: _args, + }); + } + export function registeredCoinType( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::registered_coin_type", + arguments: _args, + }); + } + export function removeTrustedAddresses( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrVec(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::remove_trusted_addresses", + arguments: _args, + }); + } + export function sendInterchainTransfer( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | interchain_transfer_ticket.InterchainTransferTicket + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::send_interchain_transfer", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function setTrustedAddresses( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + trusted_addresses.TrustedAddresses | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its::set_trusted_addresses", + arguments: _args, + }); + } + } + export namespace view { + export async function burnAsDistributor( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + _0x2.coin.Coin | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.burnAsDistributor(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function channelAddress( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.channelAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function deployRemoteInterchainToken( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [ + _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.message_ticket.MessageTicket, + ] + > + > { + const tx = new TransactionBlock(); + builder.deployRemoteInterchainToken(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [ + _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.message_ticket.MessageTicket, + ] + >(inspectRes); + } + export async function giveUnregisteredCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.giveUnregisteredCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function mintAsDistributor( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise]>> { + const tx = new TransactionBlock(); + builder.mintAsDistributor(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.coin.Coin] + >(inspectRes); + } + export async function mintToAsDistributor( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + string | TransactionArgument, + bigint | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.mintToAsDistributor(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function packageValue( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.packageValue(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function prepareInterchainTransfer( + client: SuiClient, + args: [ + token_id.TokenId | TransactionArgument, + _0x2.coin.Coin | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [interchain_transfer_ticket.InterchainTransferTicket] + > + > { + const tx = new TransactionBlock(); + builder.prepareInterchainTransfer(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [interchain_transfer_ticket.InterchainTransferTicket] + >(inspectRes); + } + export async function receiveDeployInterchainToken( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.receiveDeployInterchainToken(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function receiveInterchainTransfer( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.receiveInterchainTransfer(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function receiveInterchainTransferWithData( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.ApprovedMessage + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [_0x1.ascii.String, number[], number[], _0x2.coin.Coin] + > + > { + const tx = new TransactionBlock(); + builder.receiveInterchainTransferWithData(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String, number[], number[], _0x2.coin.Coin] + >(inspectRes); + } + export async function registerCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + coin_management.CoinManagement | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.registerCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId] + >(inspectRes); + } + export async function registerTransaction( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ( + | _0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1.transaction.Transaction + | TransactionArgument + ), + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.registerTransaction(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function registeredCoinType( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.registeredCoinType(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function removeTrustedAddresses( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.removeTrustedAddresses(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function sendInterchainTransfer( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + ( + | interchain_transfer_ticket.InterchainTransferTicket + | TransactionArgument + ), + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [ + _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.message_ticket.MessageTicket, + ] + > + > { + const tx = new TransactionBlock(); + builder.sendInterchainTransfer(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [ + _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.message_ticket.MessageTicket, + ] + >(inspectRes); + } + export async function setTrustedAddresses( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + trusted_addresses.TrustedAddresses | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setTrustedAddresses(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + } +} + +export namespace its_v0 { + export interface ITS_v0 { + channel: _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.channel.Channel; + address_tracker: address_tracker.InterchainAddressTracker; + unregistered_coin_types: _0x2.table.Table< + token_id.UnregisteredTokenId, + _0x1.type_name.TypeName + >; + unregistered_coins: _0x2.bag.Bag; + registered_coin_types: _0x2.table.Table< + token_id.TokenId, + _0x1.type_name.TypeName + >; + registered_coins: _0x2.bag.Bag; + relayer_discovery_id: _0x2.object_.ID; + version_control: _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl; + } + + export namespace ITS_v0 { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::ITS_v0"; + + const TYPE = new TypeDescriptor(ITS_v0.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function addRegisteredCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + coin_management.CoinManagement | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::add_registered_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function addUnregisteredCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.UnregisteredTokenId | TransactionArgument, + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + _args.push(transactionArgumentOrPure(args[3], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::add_unregistered_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function channel( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::channel", + arguments: _args, + }); + } + export function channelAddress( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::channel_address", + arguments: _args, + }); + } + export function channelId( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::channel_id", + arguments: _args, + }); + } + export function channelMut( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::channel_mut", + arguments: _args, + }); + } + export function coinData( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::coin_data", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function coinDataMut( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::coin_data_mut", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function coinInfo( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::coin_info", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function coinManagementMut( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::coin_management_mut", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function isTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::is_trusted_address", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + | _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl + | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::new", + arguments: _args, + }); + } + export function registeredCoinType( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::registered_coin_type", + arguments: _args, + }); + } + export function relayerDiscoveryId( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::relayer_discovery_id", + arguments: _args, + }); + } + export function removeTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::remove_trusted_address", + arguments: _args, + }); + } + export function removeTrustedAddresses( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::remove_trusted_addresses", + arguments: _args, + }); + } + export function removeUnregisteredCoin( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.UnregisteredTokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::remove_unregistered_coin", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function setRelayerDiscoveryId( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::set_relayer_discovery_id", + arguments: _args, + }); + } + export function setTrustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::set_trusted_address", + arguments: _args, + }); + } + export function setTrustedAddresses( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + trusted_addresses.TrustedAddresses | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::set_trusted_addresses", + arguments: _args, + }); + } + export function tokenDecimals( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::token_decimals", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function tokenName( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::token_name", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function tokenRemoteDecimals( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::token_remote_decimals", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function tokenSymbol( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::token_symbol", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function trustedAddress( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::trusted_address", + arguments: _args, + }); + } + export function unregisteredCoinType( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + number | TransactionArgument, + ], + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::unregistered_coin_type", + arguments: _args, + }); + } + export function versionControl( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::version_control", + arguments: _args, + }); + } + export function versionControlMut( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::its_v0::version_control_mut", + arguments: _args, + }); + } + } + export namespace view { + export async function addRegisteredCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + coin_management.CoinManagement | TransactionArgument, + coin_info.CoinInfo | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.addRegisteredCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function addUnregisteredCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.UnregisteredTokenId | TransactionArgument, + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.addUnregisteredCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function channel( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.channel(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function channelAddress( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.channelAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function channelId( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.channelId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.object_.ID] + >(inspectRes); + } + export async function channelMut( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.channelMut(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinData( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinData(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinDataMut( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinDataMut(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinInfo( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinInfo(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function coinManagementMut( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.coinManagementMut(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function isTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.isTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[Boolean]>( + inspectRes, + ); + } + export async function new_( + client: SuiClient, + args: [ + | _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.version_control.VersionControl + | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [its_v0.ITS_v0] + >(inspectRes); + } + export async function registeredCoinType( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.registeredCoinType(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function relayerDiscoveryId( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.relayerDiscoveryId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.object_.ID] + >(inspectRes); + } + export async function removeTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.removeTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function removeTrustedAddresses( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.removeTrustedAddresses(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function removeUnregisteredCoin( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.UnregisteredTokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [_0x2.coin.TreasuryCap, _0x2.coin.CoinMetadata] + > + > { + const tx = new TransactionBlock(); + builder.removeUnregisteredCoin(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.coin.TreasuryCap, _0x2.coin.CoinMetadata] + >(inspectRes); + } + export async function setRelayerDiscoveryId( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setRelayerDiscoveryId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function setTrustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setTrustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function setTrustedAddresses( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + trusted_addresses.TrustedAddresses | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.setTrustedAddresses(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes, + ); + } + export async function tokenDecimals( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.tokenDecimals(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number]>( + inspectRes, + ); + } + export async function tokenName( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.tokenName(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function tokenRemoteDecimals( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.tokenRemoteDecimals(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[number]>( + inspectRes, + ); + } + export async function tokenSymbol( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + token_id.TokenId | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.tokenSymbol(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + export async function trustedAddress( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.trustedAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + export async function unregisteredCoinType( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + number | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.unregisteredCoinType(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function versionControl( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.versionControl(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + export async function versionControlMut( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.versionControlMut(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + } +} + +export namespace owner_cap { + export interface OwnerCap { + id: _0x2.object_.UID; + } + + export namespace OwnerCap { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::owner_cap::OwnerCap"; + + const TYPE = new TypeDescriptor(OwnerCap.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export namespace builder { + export function create( + tx: TransactionBlock, + args: [], + ): TransactionArgument & [] { + const _args: any[] = []; + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::owner_cap::create", + arguments: _args, + }); + } + } + export namespace view { + export async function create( + client: SuiClient, + args: [], + ): Promise> { + const tx = new TransactionBlock(); + builder.create(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [owner_cap.OwnerCap] + >(inspectRes); + } + } +} + +export namespace token_id { + export interface TokenId { + id: string; + } + + export namespace TokenId { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::TokenId"; + + const TYPE = new TypeDescriptor(TokenId.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface TokenIdInstance extends TypedEventInstance { + data_decoded: TokenId; + type_arguments: []; + } + + export interface UnregisteredTokenId { + id: string; + } + + export namespace UnregisteredTokenId { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::UnregisteredTokenId"; + + const TYPE = new TypeDescriptor( + UnregisteredTokenId.TYPE_QNAME, + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface UnregisteredTokenIdInstance + extends TypedEventInstance { + data_decoded: UnregisteredTokenId; + type_arguments: []; + } + + export namespace builder { + export function fromAddress( + tx: TransactionBlock, + args: [string | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::from_address", + arguments: _args, + }); + } + export function fromCoinData( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::from_coin_data", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function fromInfo( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & + [ + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + TransactionArgument, + ] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + _args.push(transactionArgumentOrObject(args[2], tx)); + _args.push(transactionArgumentOrObject(args[3], tx)); + _args.push(transactionArgumentOrObject(args[4], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::from_info", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function fromU256( + tx: TransactionBlock, + args: [bigint | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::from_u256", + arguments: _args, + }); + } + export function toU256( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::to_u256", + arguments: _args, + }); + } + export function unregisteredTokenId( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + number | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::token_id::unregistered_token_id", + arguments: _args, + }); + } + } + export namespace view { + export async function fromAddress( + client: SuiClient, + args: [string | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.fromAddress(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId] + >(inspectRes); + } + export async function fromCoinData( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.fromCoinData(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId] + >(inspectRes); + } + export async function fromInfo( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise> { + const tx = new TransactionBlock(); + builder.fromInfo(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId] + >(inspectRes); + } + export async function fromU256( + client: SuiClient, + args: [bigint | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.fromU256(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.TokenId] + >(inspectRes); + } + export async function toU256( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.toU256(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes, + ); + } + export async function unregisteredTokenId( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + number | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.unregisteredTokenId(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [token_id.UnregisteredTokenId] + >(inspectRes); + } + } +} + +export namespace trusted_addresses { + export interface TrustedAddresses { + trusted_chains: _0x1.ascii.String[]; + trusted_addresses: _0x1.ascii.String[]; + } + + export namespace TrustedAddresses { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::trusted_addresses::TrustedAddresses"; + + const TYPE = new TypeDescriptor( + TrustedAddresses.TYPE_QNAME, + ); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface TrustedAddressesInstance + extends TypedEventInstance { + data_decoded: TrustedAddresses; + type_arguments: []; + } + + export namespace builder { + export function destroy( + tx: TransactionBlock, + args: [trusted_addresses.TrustedAddresses | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::trusted_addresses::destroy", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [ + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::trusted_addresses::new", + arguments: _args, + }); + } + } + export namespace view { + export async function destroy( + client: SuiClient, + args: [trusted_addresses.TrustedAddresses | TransactionArgument], + ): Promise< + TypedDevInspectResults<[_0x1.ascii.String[], _0x1.ascii.String[]]> + > { + const tx = new TransactionBlock(); + builder.destroy(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String[], _0x1.ascii.String[]] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [ + (string | TransactionObjectArgument)[] | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [trusted_addresses.TrustedAddresses] + >(inspectRes); + } + } +} + +export namespace unregistered_coin_data { + export interface UnregisteredCoinData { + treasury_cap: _0x2.coin.TreasuryCap; + coin_metadata: _0x2.coin.CoinMetadata; + } + + export namespace UnregisteredCoinData { + export const TYPE_QNAME = + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::unregistered_coin_data::UnregisteredCoinData"; + + const TYPE = new TypeDescriptor>( + UnregisteredCoinData.TYPE_QNAME, + ); + + export function type( + arg0: TypeDescriptor = ANY_TYPE, + ): TypeDescriptor> { + return TYPE.apply(arg0); + } + } + + export namespace builder { + export function destroy( + tx: TransactionBlock, + args: [ + unregistered_coin_data.UnregisteredCoinData | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::unregistered_coin_data::destroy", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + export function new_( + tx: TransactionBlock, + args: [ + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::unregistered_coin_data::new", + arguments: _args, + typeArguments: [ + typeof typeArguments[0] === "string" + ? typeArguments[0] + : typeArguments[0].getSignature(), + ], + }); + } + } + export namespace view { + export async function destroy( + client: SuiClient, + args: [ + unregistered_coin_data.UnregisteredCoinData | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults< + [_0x2.coin.TreasuryCap, _0x2.coin.CoinMetadata] + > + > { + const tx = new TransactionBlock(); + builder.destroy(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x2.coin.TreasuryCap, _0x2.coin.CoinMetadata] + >(inspectRes); + } + export async function new_( + client: SuiClient, + args: [ + _0x2.coin.TreasuryCap | TransactionArgument, + _0x2.coin.CoinMetadata | TransactionArgument, + ], + typeArguments: [TypeDescriptor | string], + ): Promise< + TypedDevInspectResults<[unregistered_coin_data.UnregisteredCoinData]> + > { + const tx = new TransactionBlock(); + builder.new_(tx, args, typeArguments); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [unregistered_coin_data.UnregisteredCoinData] + >(inspectRes); + } + } +} + +export namespace utils { + export namespace builder { + export function decodeMetadata( + tx: TransactionBlock, + args: [(string | TransactionObjectArgument)[] | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::decode_metadata", + arguments: _args, + }); + } + export function hashCoinInfo( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrObject(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::hash_coin_info", + arguments: _args, + }); + } + export function isLowercase( + tx: TransactionBlock, + args: [number | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::is_lowercase", + arguments: _args, + }); + } + export function isNumber( + tx: TransactionBlock, + args: [number | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::is_number", + arguments: _args, + }); + } + export function isUppercase( + tx: TransactionBlock, + args: [number | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::is_uppercase", + arguments: _args, + }); + } + export function moduleFromSymbol( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument], + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::module_from_symbol", + arguments: _args, + }); + } + export function pow( + tx: TransactionBlock, + args: [bigint | TransactionArgument, number | TransactionArgument], + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrPure(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba::utils::pow", + arguments: _args, + }); + } + } + export namespace view { + export async function decodeMetadata( + client: SuiClient, + args: [(string | TransactionObjectArgument)[] | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.decodeMetadata(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [number, number[]] + >(inspectRes); + } + export async function hashCoinInfo( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + string | TransactionObjectArgument | TransactionArgument, + ], + ): Promise> { + const tx = new TransactionBlock(); + builder.hashCoinInfo(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes, + ); + } + + export async function moduleFromSymbol( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.moduleFromSymbol(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [_0x1.ascii.String] + >(inspectRes); + } + export async function pow( + client: SuiClient, + args: [bigint | TransactionArgument, number | TransactionArgument], + ): Promise> { + const tx = new TransactionBlock(); + builder.pow(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[bigint]>( + inspectRes, + ); + } + } +} + +const MODULES = JSON.parse( + '{"address_tracker":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"address_tracker","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its_v0"}],"structs":{"InterchainAddressTracker":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"trusted_addresses","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}}]}},"exposedFunctions":{"is_trusted_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":["Bool"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}]},"remove_trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"set_trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"trusted_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]}}},"coin_data":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"coin_data","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its_v0"}],"structs":{"CoinData":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"coin_management","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},{"name":"coin_info","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}]}},"exposedFunctions":{"coin_info":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}]},"coin_management_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}}]},"coin_scaling":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}}],"return":["U256"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}]}}},"coin_info":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"coin_info","friends":[],"structs":{"CoinInfo":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"name","type":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"name":"symbol","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"decimals","type":"U8"},{"name":"remote_decimals","type":"U8"},{"name":"metadata","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}]}}}]}},"exposedFunctions":{"decimals":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":["U8"]},"from_info":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},"U8","U8"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}]},"from_metadata":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}},"U8"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}]},"metadata":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}]}}}]},"name":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"remote_decimals":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":["U8"]},"scaling":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":["U256"]},"symbol":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}},"coin_management":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"coin_management","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"},{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its_v0"}],"structs":{"CoinManagement":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"treasury_cap","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}}]}}},{"name":"balance","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":[{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}]}}},{"name":"distributor","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["Address"]}}},{"name":"operator","type":{"Struct":{"address":"0x1","module":"option","name":"Option","typeArguments":["Address"]}}},{"name":"flow_limit","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"flow_limit","name":"FlowLimit","typeArguments":[]}}},{"name":"scaling","type":"U256"},{"name":"dust","type":"U256"}]}},"exposedFunctions":{"add_distributor":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":[]},"add_operator":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":[]},"burn":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"give_coin":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"U256",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"has_capability":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}}],"return":["Bool"]},"is_distributor":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"Address"],"return":["Bool"]},"mint":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"new_locked":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}]},"new_with_cap":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}]},"set_flow_limit":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},"U64"],"return":[]},"set_scaling":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},"U256"],"return":[]},"take_balance":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":["U256"]}}},"discovery":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"discovery","friends":[],"structs":{},"exposedFunctions":{"call_info":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Vector":"U8"}],"return":[{"Struct":{"address":"0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1","module":"transaction","name":"Transaction","typeArguments":[]}}]},"interchain_transfer_info":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},"Address","U64",{"Vector":"U8"}]},"register_transaction":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1","module":"discovery","name":"RelayerDiscovery","typeArguments":[]}}}],"return":[]}}},"flow_limit":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"flow_limit","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"coin_management"}],"structs":{"FlowLimit":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"flow_limit","type":"U64"},{"name":"flow_in","type":"U64"},{"name":"flow_out","type":"U64"},{"name":"current_epoch","type":"U64"}]}},"exposedFunctions":{"add_flow_in":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"flow_limit","name":"FlowLimit","typeArguments":[]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[]},"add_flow_out":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"flow_limit","name":"FlowLimit","typeArguments":[]}}},"U64",{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"flow_limit","name":"FlowLimit","typeArguments":[]}}]},"set_flow_limit":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"flow_limit","name":"FlowLimit","typeArguments":[]}}},"U64"],"return":[]}}},"interchain_transfer_ticket":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"interchain_transfer_ticket","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"}],"structs":{"InterchainTransferTicket":{"abilities":{"abilities":[]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"token_id","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}},{"name":"balance","type":{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}}},{"name":"source_address","type":"Address"},{"name":"destination_chain","type":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"name":"destination_address","type":{"Vector":"U8"}},{"name":"metadata","type":{"Vector":"U8"}},{"name":"version","type":"U64"}]}},"exposedFunctions":{"destroy":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"interchain_transfer_ticket","name":"InterchainTransferTicket","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}},"Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},{"Vector":"U8"},"U64"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x2","module":"balance","name":"Balance","typeArguments":[{"TypeParameter":0}]}},"Address",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},{"Vector":"U8"},"U64"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"interchain_transfer_ticket","name":"InterchainTransferTicket","typeArguments":[{"TypeParameter":0}]}}]}}},"its":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"discovery"}],"structs":{"CoinRegistered":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"token_id","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}}]},"ITS":{"abilities":{"abilities":["Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}},{"name":"inner","type":{"Struct":{"address":"0x2","module":"versioned","name":"Versioned","typeArguments":[]}}}]}},"exposedFunctions":{"burn_as_distributor":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"channel_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}}],"return":["Address"]},"deploy_remote_interchain_token":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}]},"give_unregistered_coin":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"mint_as_distributor":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},"U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"mint_to_as_distributor":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},"Address","U64",{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"package_value":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}]},"prepare_interchain_transfer":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},{"Vector":"U8"},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"interchain_transfer_ticket","name":"InterchainTransferTicket","typeArguments":[{"TypeParameter":0}]}}]},"receive_deploy_interchain_token":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}}],"return":[]},"receive_interchain_transfer":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[]},"receive_interchain_transfer_with_data":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"ApprovedMessage","typeArguments":[]}},{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Vector":"U8"},{"Vector":"U8"},{"Struct":{"address":"0x2","module":"coin","name":"Coin","typeArguments":[{"TypeParameter":0}]}}]},"register_coin":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}]},"register_transaction":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"MutableReference":{"Struct":{"address":"0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1","module":"discovery","name":"RelayerDiscovery","typeArguments":[]}}},{"Struct":{"address":"0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1","module":"transaction","name":"Transaction","typeArguments":[]}}],"return":[]},"registered_coin_type":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}]},"remove_trusted_addresses":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"owner_cap","name":"OwnerCap","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[]},"send_interchain_transfer":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"interchain_transfer_ticket","name":"InterchainTransferTicket","typeArguments":[{"TypeParameter":0}]}},{"Reference":{"Struct":{"address":"0x2","module":"clock","name":"Clock","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"message_ticket","name":"MessageTicket","typeArguments":[]}}]},"set_trusted_addresses":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its","name":"ITS","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"owner_cap","name":"OwnerCap","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"trusted_addresses","name":"TrustedAddresses","typeArguments":[]}}],"return":[]}}},"its_v0":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its_v0","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"discovery"},{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"}],"structs":{"ITS_v0":{"abilities":{"abilities":["Store"]},"typeParameters":[],"fields":[{"name":"channel","type":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}},{"name":"address_tracker","type":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"address_tracker","name":"InterchainAddressTracker","typeArguments":[]}}},{"name":"unregistered_coin_types","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"UnregisteredTokenId","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]}}},{"name":"unregistered_coins","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}},{"name":"registered_coin_types","type":{"Struct":{"address":"0x2","module":"table","name":"Table","typeArguments":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}]}}},{"name":"registered_coins","type":{"Struct":{"address":"0x2","module":"bag","name":"Bag","typeArguments":[]}}},{"name":"relayer_discovery_id","type":{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}},{"name":"version_control","type":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}]}},"exposedFunctions":{"add_registered_coin":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"add_unregistered_coin":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"UnregisteredTokenId","typeArguments":[]}},{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}],"return":[]},"channel":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}}]},"channel_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":["Address"]},"channel_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"channel_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981","module":"channel","name":"Channel","typeArguments":[]}}}]},"coin_data":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}}]},"coin_data_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_data","name":"CoinData","typeArguments":[{"TypeParameter":0}]}}}]},"coin_info":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}}]},"coin_management_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}}]},"is_trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":["Bool"]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}},{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}]},"registered_coin_type":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}]},"relayer_discovery_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x2","module":"object","name":"ID","typeArguments":[]}}]},"remove_trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"remove_trusted_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[]},"remove_unregistered_coin":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"UnregisteredTokenId","typeArguments":[]}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}]},"set_relayer_discovery_id":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0xf7bb3530d09cb7a2da0bf63ec6000b6af0a89a8a3af77b2394d73a879a3651b1","module":"discovery","name":"RelayerDiscovery","typeArguments":[]}}}],"return":[]},"set_trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"set_trusted_addresses":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"trusted_addresses","name":"TrustedAddresses","typeArguments":[]}}],"return":[]},"token_decimals":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":["U8"]},"token_name":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}]},"token_remote_decimals":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":["U8"]},"token_symbol":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"trusted_address":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"unregistered_coin_type":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U8"],"return":[{"Reference":{"Struct":{"address":"0x1","module":"type_name","name":"TypeName","typeArguments":[]}}}]},"version_control":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"Reference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}]},"version_control_mut":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"its_v0","name":"ITS_v0","typeArguments":[]}}}],"return":[{"MutableReference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}]}}},"owner_cap":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"owner_cap","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"}],"structs":{"OwnerCap":{"abilities":{"abilities":["Store","Key"]},"typeParameters":[],"fields":[{"name":"id","type":{"Struct":{"address":"0x2","module":"object","name":"UID","typeArguments":[]}}}]}},"exposedFunctions":{"create":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0x2","module":"tx_context","name":"TxContext","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"owner_cap","name":"OwnerCap","typeArguments":[]}}]}}},"token_id":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"token_id","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"}],"structs":{"TokenId":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"id","type":"Address"}]},"UnregisteredTokenId":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"id","type":"Address"}]}},"exposedFunctions":{"from_address":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["Address"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}]},"from_coin_data":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_info","name":"CoinInfo","typeArguments":[{"TypeParameter":0}]}}},{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"coin_management","name":"CoinManagement","typeArguments":[{"TypeParameter":0}]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}]},"from_info":{"visibility":"Public","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"string","name":"String","typeArguments":[]}}},{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Reference":"U8"},{"Reference":"Bool"},{"Reference":"Bool"}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}]},"from_u256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":["U256"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}]},"to_u256":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"TokenId","typeArguments":[]}}}],"return":["U256"]},"unregistered_token_id":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},"U8"],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"token_id","name":"UnregisteredTokenId","typeArguments":[]}}]}}},"trusted_addresses":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"trusted_addresses","friends":[],"structs":{"TrustedAddresses":{"abilities":{"abilities":["Copy","Drop"]},"typeParameters":[],"fields":[{"name":"trusted_chains","type":{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}},{"name":"trusted_addresses","type":{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}}]}},"exposedFunctions":{"destroy":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"trusted_addresses","name":"TrustedAddresses","typeArguments":[]}}],"return":[{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"trusted_addresses","name":"TrustedAddresses","typeArguments":[]}}]}}},"unregistered_coin_data":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"unregistered_coin_data","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its_v0"}],"structs":{"UnregisteredCoinData":{"abilities":{"abilities":["Store"]},"typeParameters":[{"constraints":{"abilities":[]},"isPhantom":true}],"fields":[{"name":"treasury_cap","type":{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}}},{"name":"coin_metadata","type":{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}}]}},"exposedFunctions":{"destroy":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"unregistered_coin_data","name":"UnregisteredCoinData","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}]},"new":{"visibility":"Friend","isEntry":false,"typeParameters":[{"abilities":[]}],"parameters":[{"Struct":{"address":"0x2","module":"coin","name":"TreasuryCap","typeArguments":[{"TypeParameter":0}]}},{"Struct":{"address":"0x2","module":"coin","name":"CoinMetadata","typeArguments":[{"TypeParameter":0}]}}],"return":[{"Struct":{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","module":"unregistered_coin_data","name":"UnregisteredCoinData","typeArguments":[{"TypeParameter":0}]}}]}}},"utils":{"fileFormatVersion":6,"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"utils","friends":[{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"coin_info"},{"address":"0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba","name":"its"}],"structs":{},"exposedFunctions":{"decode_metadata":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Vector":"U8"}],"return":["U32",{"Vector":"U8"}]},"hash_coin_info":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}},{"Reference":"U8"}],"return":["Address"]},"is_lowercase":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"is_number":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"is_uppercase":{"visibility":"Private","isEntry":true,"typeParameters":[],"parameters":["U8"],"return":["Bool"]},"module_from_symbol":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]},"pow":{"visibility":"Friend","isEntry":false,"typeParameters":[],"parameters":["U256","U8"],"return":["U256"]}}}}', +); + +export function loadAllTypes(coder: MoveCoder) { + _0x1.loadAllTypes(coder); + _0x2.loadAllTypes(coder); + _0x5b63815164c78c7d16bf2170f3444ea28d16a4af51da8385a783f91e42312981.loadAllTypes( + coder, + ); + _0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6.loadAllTypes( + coder, + ); + for (const m of Object.values(MODULES)) { + coder.load( + m as any, + "0xac68abccc65eb435b5f69b3f81adfadaf0bc174885211345d14cbc19e212b5ba", + ); + } +} + +loadAllTypes(defaultMoveCoder()); diff --git a/packages/sui/src/types/VersionControl.ts b/packages/sui/src/types/VersionControl.ts new file mode 100644 index 000000000..13abc31e8 --- /dev/null +++ b/packages/sui/src/types/VersionControl.ts @@ -0,0 +1,204 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ + +/* Generated types for 0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6, original address 0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6 */ + +import { SuiClient } from "@mysten/sui.js/client"; +import { + TransactionArgument, + TransactionBlock, + TransactionObjectArgument, +} from "@mysten/sui.js/transactions"; +import { ANY_TYPE, TypeDescriptor } from "@typemove/move"; +import { + defaultMoveCoder, + getMoveCoder, + MoveCoder, + transactionArgumentOrObject, + transactionArgumentOrPure, + transactionArgumentOrVec, + TypedDevInspectResults, + TypedEventInstance, + ZERO_ADDRESS, +} from "@typemove/sui"; +import { _0x1, _0x2 } from "@typemove/sui/builtin"; + +export namespace version_control { + export interface VersionControl { + allowed_functions: _0x2.vec_set.VecSet<_0x1.ascii.String>[]; + } + + export namespace VersionControl { + export const TYPE_QNAME = + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6::version_control::VersionControl"; + + const TYPE = new TypeDescriptor(VersionControl.TYPE_QNAME); + + export function type(): TypeDescriptor { + return TYPE.apply(); + } + } + + export interface VersionControlInstance + extends TypedEventInstance { + data_decoded: VersionControl; + type_arguments: []; + } + + export namespace builder { + export function allowedFunctions( + tx: TransactionBlock, + args: [string | TransactionObjectArgument | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6::version_control::allowed_functions", + arguments: _args, + }); + } + export function check( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): TransactionArgument & + [TransactionArgument, TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrPure(args[1], tx)); + _args.push(transactionArgumentOrPure(args[2], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6::version_control::check", + arguments: _args, + }); + } + export function new_( + tx: TransactionBlock, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): TransactionArgument & [TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrVec(args[0], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6::version_control::new", + arguments: _args, + }); + } + export function pushBack( + tx: TransactionBlock, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): TransactionArgument & [TransactionArgument, TransactionArgument] { + const _args: any[] = []; + _args.push(transactionArgumentOrObject(args[0], tx)); + _args.push(transactionArgumentOrVec(args[1], tx)); + + // @ts-ignore + return tx.moveCall({ + target: + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6::version_control::push_back", + arguments: _args, + }); + } + } + export namespace view { + export async function allowedFunctions( + client: SuiClient, + args: [string | TransactionObjectArgument | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.allowedFunctions(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[string]>( + inspectRes + ); + } + export async function check( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + bigint | TransactionArgument, + _0x1.ascii.String | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.check(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + export async function new_( + client: SuiClient, + args: [(string | TransactionObjectArgument)[] | TransactionArgument] + ): Promise> { + const tx = new TransactionBlock(); + builder.new_(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult< + [version_control.VersionControl] + >(inspectRes); + } + export async function pushBack( + client: SuiClient, + args: [ + string | TransactionObjectArgument | TransactionArgument, + (string | TransactionObjectArgument)[] | TransactionArgument, + ] + ): Promise> { + const tx = new TransactionBlock(); + builder.pushBack(tx, args); + const inspectRes = await client.devInspectTransactionBlock({ + transactionBlock: tx, + sender: ZERO_ADDRESS, + }); + + return (await getMoveCoder(client)).decodeDevInspectResult<[]>( + inspectRes + ); + } + } +} + +const MODULES = JSON.parse( + '[{"fileFormatVersion":6,"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","name":"version_control","friends":[],"structs":{"VersionControl":{"abilities":{"abilities":["Copy","Drop","Store"]},"typeParameters":[],"fields":[{"name":"allowed_functions","type":{"Vector":{"Struct":{"address":"0x2","module":"vec_set","name":"VecSet","typeArguments":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}}}]}},"exposedFunctions":{"allowed_functions":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}}],"return":[{"MutableReference":{"Vector":{"Struct":{"address":"0x2","module":"vec_set","name":"VecSet","typeArguments":[{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}]}}}}]},"check":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Reference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}},"U64",{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}],"return":[]},"new":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"Vector":{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}}],"return":[{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}]},"push_back":{"visibility":"Public","isEntry":false,"typeParameters":[],"parameters":[{"MutableReference":{"Struct":{"address":"0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6","module":"version_control","name":"VersionControl","typeArguments":[]}}},{"Vector":{"Struct":{"address":"0x1","module":"ascii","name":"String","typeArguments":[]}}}],"return":[]}}}]' +); + +export function loadAllTypes(coder: MoveCoder) { + _0x1.loadAllTypes(coder); + _0x2.loadAllTypes(coder); + for (const m of Object.values(MODULES)) { + coder.load( + m as any, + "0xa246daa865d57f3f63529fb80ac963a8a899561609c5a5e170d6509605185e6" + ); + } +} + +loadAllTypes(defaultMoveCoder()); diff --git a/packages/sui/src/types/index.ts b/packages/sui/src/types/index.ts new file mode 100644 index 000000000..e660aa915 --- /dev/null +++ b/packages/sui/src/types/index.ts @@ -0,0 +1,6 @@ +/* Autogenerated file. Do not edit manually. */ +/* tslint:disable */ +/* eslint-disable */ +export * as ITS from "./ITS.js"; +export * as AxelarGateway from "./AxelarGateway.js"; +export * as VersionControl from "./VersionControl.js"; diff --git a/packages/sui/vitest.config.ts b/packages/sui/vitest.config.ts new file mode 100644 index 000000000..46367e445 --- /dev/null +++ b/packages/sui/vitest.config.ts @@ -0,0 +1,17 @@ +import { resolve } from "path"; +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + testTimeout: 300000, + environment: "node", + exclude: ["**/node_modules/**", "build/**", "**/*.js"], + globals: true, + setupFiles: ["dotenv/config"], + }, + resolve: { + alias: { + "~": resolve(__dirname, "./src"), + }, + }, +});