@unconfirmed/effect-sui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +10 -2
- package/dist/Address.d.ts +18 -0
- package/dist/Address.d.ts.map +1 -0
- package/dist/Address.js +33 -0
- package/dist/Address.js.map +1 -0
- package/dist/AddressAlias.d.ts +107 -0
- package/dist/AddressAlias.d.ts.map +1 -0
- package/dist/AddressAlias.js +104 -0
- package/dist/AddressAlias.js.map +1 -0
- package/dist/Bip32.d.ts +6 -0
- package/dist/Bip32.d.ts.map +1 -0
- package/dist/Bip32.js +34 -0
- package/dist/Bip32.js.map +1 -0
- package/dist/Chain.d.ts +23 -0
- package/dist/Chain.d.ts.map +1 -0
- package/dist/Chain.js +7 -0
- package/dist/Chain.js.map +1 -0
- package/dist/CheckpointData.d.ts +74 -0
- package/dist/CheckpointData.d.ts.map +1 -0
- package/dist/CheckpointData.js +48 -0
- package/dist/CheckpointData.js.map +1 -0
- package/dist/Checkpoints.d.ts +23 -0
- package/dist/Checkpoints.d.ts.map +1 -0
- package/dist/Checkpoints.js +7 -0
- package/dist/Checkpoints.js.map +1 -0
- package/dist/CoinReservation.d.ts +18 -0
- package/dist/CoinReservation.d.ts.map +1 -0
- package/dist/CoinReservation.js +58 -0
- package/dist/CoinReservation.js.map +1 -0
- package/dist/Coins.d.ts +42 -0
- package/dist/Coins.d.ts.map +1 -0
- package/dist/Coins.js +49 -0
- package/dist/Coins.js.map +1 -0
- package/dist/DynamicFields.d.ts +115 -0
- package/dist/DynamicFields.d.ts.map +1 -0
- package/dist/DynamicFields.js +101 -0
- package/dist/DynamicFields.js.map +1 -0
- package/dist/Ecdsa.d.ts +39 -0
- package/dist/Ecdsa.d.ts.map +1 -0
- package/dist/Ecdsa.js +76 -0
- package/dist/Ecdsa.js.map +1 -0
- package/dist/Ed25519.d.ts +22 -0
- package/dist/Ed25519.d.ts.map +1 -0
- package/dist/Ed25519.js +77 -0
- package/dist/Ed25519.js.map +1 -0
- package/dist/Events.d.ts +105 -0
- package/dist/Events.d.ts.map +1 -0
- package/dist/Events.js +51 -0
- package/dist/Events.js.map +1 -0
- package/dist/Hash.d.ts +16 -0
- package/dist/Hash.d.ts.map +1 -0
- package/dist/Hash.js +32 -0
- package/dist/Hash.js.map +1 -0
- package/dist/MlDsa65.d.ts +17 -0
- package/dist/MlDsa65.d.ts.map +1 -0
- package/dist/MlDsa65.js +84 -0
- package/dist/MlDsa65.js.map +1 -0
- package/dist/Mnemonic.d.ts +20 -0
- package/dist/Mnemonic.d.ts.map +1 -0
- package/dist/Mnemonic.js +71 -0
- package/dist/Mnemonic.js.map +1 -0
- package/dist/Move.d.ts +261 -0
- package/dist/Move.d.ts.map +1 -0
- package/dist/Move.js +232 -0
- package/dist/Move.js.map +1 -0
- package/dist/MultiSig.d.ts +106 -0
- package/dist/MultiSig.d.ts.map +1 -0
- package/dist/MultiSig.js +254 -0
- package/dist/MultiSig.js.map +1 -0
- package/dist/Objects.d.ts +95 -0
- package/dist/Objects.d.ts.map +1 -0
- package/dist/Objects.js +57 -0
- package/dist/Objects.js.map +1 -0
- package/dist/Packages.d.ts +49 -0
- package/dist/Packages.d.ts.map +1 -0
- package/dist/Packages.js +16 -0
- package/dist/Packages.js.map +1 -0
- package/dist/Passkey.d.ts +11 -0
- package/dist/Passkey.d.ts.map +1 -0
- package/dist/Passkey.js +11 -0
- package/dist/Passkey.js.map +1 -0
- package/dist/PrivateKey.d.ts +39 -0
- package/dist/PrivateKey.d.ts.map +1 -0
- package/dist/PrivateKey.js +118 -0
- package/dist/PrivateKey.js.map +1 -0
- package/dist/Ptb.d.ts +413 -0
- package/dist/Ptb.d.ts.map +1 -0
- package/dist/Ptb.js +338 -0
- package/dist/Ptb.js.map +1 -0
- package/dist/Resolve.d.ts +502 -0
- package/dist/Resolve.d.ts.map +1 -0
- package/dist/Resolve.js +1188 -0
- package/dist/Resolve.js.map +1 -0
- package/dist/RpcError.d.ts +19 -0
- package/dist/RpcError.d.ts.map +1 -0
- package/dist/RpcError.js +37 -0
- package/dist/RpcError.js.map +1 -0
- package/dist/Secp256k1.d.ts +11 -0
- package/dist/Secp256k1.d.ts.map +1 -0
- package/dist/Secp256k1.js +23 -0
- package/dist/Secp256k1.js.map +1 -0
- package/dist/Secp256r1.d.ts +11 -0
- package/dist/Secp256r1.d.ts.map +1 -0
- package/dist/Secp256r1.js +23 -0
- package/dist/Secp256r1.js.map +1 -0
- package/dist/SignatureScheme.d.ts +103 -0
- package/dist/SignatureScheme.d.ts.map +1 -0
- package/dist/SignatureScheme.js +93 -0
- package/dist/SignatureScheme.js.map +1 -0
- package/dist/Signer.d.ts +54 -0
- package/dist/Signer.d.ts.map +1 -0
- package/dist/Signer.js +31 -0
- package/dist/Signer.js.map +1 -0
- package/dist/Testing.d.ts +171 -0
- package/dist/Testing.d.ts.map +1 -0
- package/dist/Testing.js +531 -0
- package/dist/Testing.js.map +1 -0
- package/dist/TransactionData.d.ts +3218 -0
- package/dist/TransactionData.d.ts.map +1 -0
- package/dist/TransactionData.js +105 -0
- package/dist/TransactionData.js.map +1 -0
- package/dist/TransactionJson.d.ts +1544 -0
- package/dist/TransactionJson.d.ts.map +1 -0
- package/dist/TransactionJson.js +926 -0
- package/dist/TransactionJson.js.map +1 -0
- package/dist/Transactions.d.ts +181 -0
- package/dist/Transactions.d.ts.map +1 -0
- package/dist/Transactions.js +49 -0
- package/dist/Transactions.js.map +1 -0
- package/dist/Tx.d.ts +1419 -0
- package/dist/Tx.d.ts.map +1 -0
- package/dist/Tx.js +266 -0
- package/dist/Tx.js.map +1 -0
- package/dist/TypeTag.d.ts +42 -0
- package/dist/TypeTag.d.ts.map +1 -0
- package/dist/TypeTag.js +110 -0
- package/dist/TypeTag.js.map +1 -0
- package/dist/Verify.d.ts +23 -0
- package/dist/Verify.d.ts.map +1 -0
- package/dist/Verify.js +29 -0
- package/dist/Verify.js.map +1 -0
- package/dist/enoki/EnokiClient.d.ts +184 -0
- package/dist/enoki/EnokiClient.d.ts.map +1 -0
- package/dist/enoki/EnokiClient.js +105 -0
- package/dist/enoki/EnokiClient.js.map +1 -0
- package/dist/enoki/EnokiHttp.d.ts +33 -0
- package/dist/enoki/EnokiHttp.d.ts.map +1 -0
- package/dist/enoki/EnokiHttp.js +160 -0
- package/dist/enoki/EnokiHttp.js.map +1 -0
- package/dist/enoki/Sponsor.d.ts +119 -0
- package/dist/enoki/Sponsor.d.ts.map +1 -0
- package/dist/enoki/Sponsor.js +170 -0
- package/dist/enoki/Sponsor.js.map +1 -0
- package/dist/enoki/ZkLoginFlow.d.ts +84 -0
- package/dist/enoki/ZkLoginFlow.d.ts.map +1 -0
- package/dist/enoki/ZkLoginFlow.js +138 -0
- package/dist/enoki/ZkLoginFlow.js.map +1 -0
- package/dist/enoki/index.d.ts +9 -0
- package/dist/enoki/index.d.ts.map +1 -0
- package/dist/enoki/index.js +9 -0
- package/dist/enoki/index.js.map +1 -0
- package/dist/graphql/ChainGraphQL.d.ts +35 -0
- package/dist/graphql/ChainGraphQL.d.ts.map +1 -0
- package/dist/graphql/ChainGraphQL.js +62 -0
- package/dist/graphql/ChainGraphQL.js.map +1 -0
- package/dist/graphql/CheckpointDataGraphQL.d.ts +785 -0
- package/dist/graphql/CheckpointDataGraphQL.d.ts.map +1 -0
- package/dist/graphql/CheckpointDataGraphQL.js +157 -0
- package/dist/graphql/CheckpointDataGraphQL.js.map +1 -0
- package/dist/graphql/CheckpointsGraphQL.d.ts +91 -0
- package/dist/graphql/CheckpointsGraphQL.d.ts.map +1 -0
- package/dist/graphql/CheckpointsGraphQL.js +80 -0
- package/dist/graphql/CheckpointsGraphQL.js.map +1 -0
- package/dist/graphql/CoinsGraphQL.d.ts +81 -0
- package/dist/graphql/CoinsGraphQL.d.ts.map +1 -0
- package/dist/graphql/CoinsGraphQL.js +63 -0
- package/dist/graphql/CoinsGraphQL.js.map +1 -0
- package/dist/graphql/DynamicFieldsGraphQL.d.ts +94 -0
- package/dist/graphql/DynamicFieldsGraphQL.d.ts.map +1 -0
- package/dist/graphql/DynamicFieldsGraphQL.js +126 -0
- package/dist/graphql/DynamicFieldsGraphQL.js.map +1 -0
- package/dist/graphql/EventsGraphQL.d.ts +266 -0
- package/dist/graphql/EventsGraphQL.d.ts.map +1 -0
- package/dist/graphql/EventsGraphQL.js +249 -0
- package/dist/graphql/EventsGraphQL.js.map +1 -0
- package/dist/graphql/ObjectsGraphQL.d.ts +130 -0
- package/dist/graphql/ObjectsGraphQL.d.ts.map +1 -0
- package/dist/graphql/ObjectsGraphQL.js +79 -0
- package/dist/graphql/ObjectsGraphQL.js.map +1 -0
- package/dist/graphql/PackagesGraphQL.d.ts +82 -0
- package/dist/graphql/PackagesGraphQL.d.ts.map +1 -0
- package/dist/graphql/PackagesGraphQL.js +145 -0
- package/dist/graphql/PackagesGraphQL.js.map +1 -0
- package/dist/graphql/SuiGraphQL.d.ts +37 -0
- package/dist/graphql/SuiGraphQL.d.ts.map +1 -0
- package/dist/graphql/SuiGraphQL.js +47 -0
- package/dist/graphql/SuiGraphQL.js.map +1 -0
- package/dist/graphql/TransactionsGraphQL.d.ts +1309 -0
- package/dist/graphql/TransactionsGraphQL.d.ts.map +1 -0
- package/dist/graphql/TransactionsGraphQL.js +206 -0
- package/dist/graphql/TransactionsGraphQL.js.map +1 -0
- package/dist/graphql/convert.d.ts +505 -0
- package/dist/graphql/convert.d.ts.map +1 -0
- package/dist/graphql/convert.js +384 -0
- package/dist/graphql/convert.js.map +1 -0
- package/dist/graphql/index.d.ts +41 -0
- package/dist/graphql/index.d.ts.map +1 -0
- package/dist/graphql/index.js +20 -0
- package/dist/graphql/index.js.map +1 -0
- package/dist/graphql/merge.d.ts +8 -0
- package/dist/graphql/merge.d.ts.map +1 -0
- package/dist/graphql/merge.js +55 -0
- package/dist/graphql/merge.js.map +1 -0
- package/dist/graphql/paging.d.ts +219 -0
- package/dist/graphql/paging.d.ts.map +1 -0
- package/dist/graphql/paging.js +74 -0
- package/dist/graphql/paging.js.map +1 -0
- package/dist/graphql/subscription.d.ts +27 -0
- package/dist/graphql/subscription.d.ts.map +1 -0
- package/dist/graphql/subscription.js +47 -0
- package/dist/graphql/subscription.js.map +1 -0
- package/dist/graphql/tip.d.ts +31 -0
- package/dist/graphql/tip.d.ts.map +1 -0
- package/dist/graphql/tip.js +29 -0
- package/dist/graphql/tip.js.map +1 -0
- package/dist/grpc/ChainGrpc.d.ts +11 -0
- package/dist/grpc/ChainGrpc.d.ts.map +1 -0
- package/dist/grpc/ChainGrpc.js +40 -0
- package/dist/grpc/ChainGrpc.js.map +1 -0
- package/dist/grpc/CheckpointDataGrpc.d.ts +6 -0
- package/dist/grpc/CheckpointDataGrpc.d.ts.map +1 -0
- package/dist/grpc/CheckpointDataGrpc.js +27 -0
- package/dist/grpc/CheckpointDataGrpc.js.map +1 -0
- package/dist/grpc/CheckpointsGrpc.d.ts +6 -0
- package/dist/grpc/CheckpointsGrpc.d.ts.map +1 -0
- package/dist/grpc/CheckpointsGrpc.js +25 -0
- package/dist/grpc/CheckpointsGrpc.js.map +1 -0
- package/dist/grpc/CoinsGrpc.d.ts +7 -0
- package/dist/grpc/CoinsGrpc.d.ts.map +1 -0
- package/dist/grpc/CoinsGrpc.js +34 -0
- package/dist/grpc/CoinsGrpc.js.map +1 -0
- package/dist/grpc/DynamicFieldsGrpc.d.ts +11 -0
- package/dist/grpc/DynamicFieldsGrpc.d.ts.map +1 -0
- package/dist/grpc/DynamicFieldsGrpc.js +91 -0
- package/dist/grpc/DynamicFieldsGrpc.js.map +1 -0
- package/dist/grpc/EventsGrpc.d.ts +13 -0
- package/dist/grpc/EventsGrpc.d.ts.map +1 -0
- package/dist/grpc/EventsGrpc.js +88 -0
- package/dist/grpc/EventsGrpc.js.map +1 -0
- package/dist/grpc/GrpcWeb.d.ts +71 -0
- package/dist/grpc/GrpcWeb.d.ts.map +1 -0
- package/dist/grpc/GrpcWeb.js +243 -0
- package/dist/grpc/GrpcWeb.js.map +1 -0
- package/dist/grpc/ObjectsGrpc.d.ts +10 -0
- package/dist/grpc/ObjectsGrpc.d.ts.map +1 -0
- package/dist/grpc/ObjectsGrpc.js +72 -0
- package/dist/grpc/ObjectsGrpc.js.map +1 -0
- package/dist/grpc/PackagesGrpc.d.ts +9 -0
- package/dist/grpc/PackagesGrpc.d.ts.map +1 -0
- package/dist/grpc/PackagesGrpc.js +78 -0
- package/dist/grpc/PackagesGrpc.js.map +1 -0
- package/dist/grpc/Rpc.d.ts +46 -0
- package/dist/grpc/Rpc.d.ts.map +1 -0
- package/dist/grpc/Rpc.js +111 -0
- package/dist/grpc/Rpc.js.map +1 -0
- package/dist/grpc/TransactionsGrpc.d.ts +6 -0
- package/dist/grpc/TransactionsGrpc.d.ts.map +1 -0
- package/dist/grpc/TransactionsGrpc.js +56 -0
- package/dist/grpc/TransactionsGrpc.js.map +1 -0
- package/dist/grpc/cache.d.ts +7 -0
- package/dist/grpc/cache.d.ts.map +1 -0
- package/dist/grpc/cache.js +55 -0
- package/dist/grpc/cache.js.map +1 -0
- package/dist/grpc/convert.d.ts +43 -0
- package/dist/grpc/convert.d.ts.map +1 -0
- package/dist/grpc/convert.js +198 -0
- package/dist/grpc/convert.js.map +1 -0
- package/dist/grpc/generated/lean.d.ts +36 -0
- package/dist/grpc/generated/lean.d.ts.map +1 -0
- package/dist/grpc/generated/lean.js +205 -0
- package/dist/grpc/generated/lean.js.map +1 -0
- package/dist/grpc/generated/proto.d.ts +2000 -0
- package/dist/grpc/generated/proto.d.ts.map +1 -0
- package/dist/grpc/generated/proto.js +356 -0
- package/dist/grpc/generated/proto.js.map +1 -0
- package/dist/grpc/generated/rpc.d.ts +62 -0
- package/dist/grpc/generated/rpc.d.ts.map +1 -0
- package/dist/grpc/generated/rpc.js +324 -0
- package/dist/grpc/generated/rpc.js.map +1 -0
- package/dist/grpc/index.d.ts +58 -0
- package/dist/grpc/index.d.ts.map +1 -0
- package/dist/grpc/index.js +43 -0
- package/dist/grpc/index.js.map +1 -0
- package/dist/grpc/scan.d.ts +79 -0
- package/dist/grpc/scan.d.ts.map +1 -0
- package/dist/grpc/scan.js +126 -0
- package/dist/grpc/scan.js.map +1 -0
- package/dist/grpc/transaction.d.ts +9 -0
- package/dist/grpc/transaction.d.ts.map +1 -0
- package/dist/grpc/transaction.js +168 -0
- package/dist/grpc/transaction.js.map +1 -0
- package/dist/index.d.ts +36 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +36 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/allowances.d.ts +18 -0
- package/dist/internal/allowances.d.ts.map +1 -0
- package/dist/internal/allowances.js +194 -0
- package/dist/internal/allowances.js.map +1 -0
- package/dist/internal/mnemonic.d.ts +53 -0
- package/dist/internal/mnemonic.d.ts.map +1 -0
- package/dist/internal/mnemonic.js +66 -0
- package/dist/internal/mnemonic.js.map +1 -0
- package/dist/internal/passkey/BrowserProvider.d.ts +10 -0
- package/dist/internal/passkey/BrowserProvider.d.ts.map +1 -0
- package/dist/internal/passkey/BrowserProvider.js +101 -0
- package/dist/internal/passkey/BrowserProvider.js.map +1 -0
- package/dist/internal/passkey/Passkey.d.ts +104 -0
- package/dist/internal/passkey/Passkey.d.ts.map +1 -0
- package/dist/internal/passkey/Passkey.js +333 -0
- package/dist/internal/passkey/Passkey.js.map +1 -0
- package/dist/internal/passkey/SoftwareProvider.d.ts +23 -0
- package/dist/internal/passkey/SoftwareProvider.d.ts.map +1 -0
- package/dist/internal/passkey/SoftwareProvider.js +61 -0
- package/dist/internal/passkey/SoftwareProvider.js.map +1 -0
- package/dist/lifecycle/Evidence.d.ts +62 -0
- package/dist/lifecycle/Evidence.d.ts.map +1 -0
- package/dist/lifecycle/Evidence.js +30 -0
- package/dist/lifecycle/Evidence.js.map +1 -0
- package/dist/lifecycle/EvidenceGraphQL.d.ts +59 -0
- package/dist/lifecycle/EvidenceGraphQL.d.ts.map +1 -0
- package/dist/lifecycle/EvidenceGraphQL.js +53 -0
- package/dist/lifecycle/EvidenceGraphQL.js.map +1 -0
- package/dist/lifecycle/EvidenceGrpc.d.ts +4 -0
- package/dist/lifecycle/EvidenceGrpc.d.ts.map +1 -0
- package/dist/lifecycle/EvidenceGrpc.js +37 -0
- package/dist/lifecycle/EvidenceGrpc.js.map +1 -0
- package/dist/lifecycle/Journal.d.ts +69 -0
- package/dist/lifecycle/Journal.d.ts.map +1 -0
- package/dist/lifecycle/Journal.js +70 -0
- package/dist/lifecycle/Journal.js.map +1 -0
- package/dist/lifecycle/JournalEntry.d.ts +67 -0
- package/dist/lifecycle/JournalEntry.d.ts.map +1 -0
- package/dist/lifecycle/JournalEntry.js +45 -0
- package/dist/lifecycle/JournalEntry.js.map +1 -0
- package/dist/lifecycle/JournalKeyValueStore.d.ts +30 -0
- package/dist/lifecycle/JournalKeyValueStore.d.ts.map +1 -0
- package/dist/lifecycle/JournalKeyValueStore.js +217 -0
- package/dist/lifecycle/JournalKeyValueStore.js.map +1 -0
- package/dist/lifecycle/KeyValueStoreIndexedDb.d.ts +54 -0
- package/dist/lifecycle/KeyValueStoreIndexedDb.d.ts.map +1 -0
- package/dist/lifecycle/KeyValueStoreIndexedDb.js +321 -0
- package/dist/lifecycle/KeyValueStoreIndexedDb.js.map +1 -0
- package/dist/lifecycle/KeyValueStoreOpfs.d.ts +65 -0
- package/dist/lifecycle/KeyValueStoreOpfs.d.ts.map +1 -0
- package/dist/lifecycle/KeyValueStoreOpfs.js +207 -0
- package/dist/lifecycle/KeyValueStoreOpfs.js.map +1 -0
- package/dist/lifecycle/Lifecycle.d.ts +416 -0
- package/dist/lifecycle/Lifecycle.d.ts.map +1 -0
- package/dist/lifecycle/Lifecycle.js +666 -0
- package/dist/lifecycle/Lifecycle.js.map +1 -0
- package/dist/lifecycle/Outcome.d.ts +132 -0
- package/dist/lifecycle/Outcome.d.ts.map +1 -0
- package/dist/lifecycle/Outcome.js +106 -0
- package/dist/lifecycle/Outcome.js.map +1 -0
- package/dist/lifecycle/SenderLock.d.ts +37 -0
- package/dist/lifecycle/SenderLock.d.ts.map +1 -0
- package/dist/lifecycle/SenderLock.js +57 -0
- package/dist/lifecycle/SenderLock.js.map +1 -0
- package/dist/lifecycle/SenderLockWebLocks.d.ts +37 -0
- package/dist/lifecycle/SenderLockWebLocks.d.ts.map +1 -0
- package/dist/lifecycle/SenderLockWebLocks.js +100 -0
- package/dist/lifecycle/SenderLockWebLocks.js.map +1 -0
- package/dist/lifecycle/SignedTransaction.d.ts +55 -0
- package/dist/lifecycle/SignedTransaction.d.ts.map +1 -0
- package/dist/lifecycle/SignedTransaction.js +109 -0
- package/dist/lifecycle/SignedTransaction.js.map +1 -0
- package/dist/lifecycle/SubmitConfig.d.ts +44 -0
- package/dist/lifecycle/SubmitConfig.d.ts.map +1 -0
- package/dist/lifecycle/SubmitConfig.js +39 -0
- package/dist/lifecycle/SubmitConfig.js.map +1 -0
- package/dist/lifecycle/index.d.ts +13 -0
- package/dist/lifecycle/index.d.ts.map +1 -0
- package/dist/lifecycle/index.js +13 -0
- package/dist/lifecycle/index.js.map +1 -0
- package/dist/wallet/Features.d.ts +91 -0
- package/dist/wallet/Features.d.ts.map +1 -0
- package/dist/wallet/Features.js +14 -0
- package/dist/wallet/Features.js.map +1 -0
- package/dist/wallet/Wallet.d.ts +151 -0
- package/dist/wallet/Wallet.d.ts.map +1 -0
- package/dist/wallet/Wallet.js +399 -0
- package/dist/wallet/Wallet.js.map +1 -0
- package/dist/wallet/index.d.ts +6 -0
- package/dist/wallet/index.d.ts.map +1 -0
- package/dist/wallet/index.js +6 -0
- package/dist/wallet/index.js.map +1 -0
- package/dist/zklogin/AddressSeed.d.ts +40 -0
- package/dist/zklogin/AddressSeed.d.ts.map +1 -0
- package/dist/zklogin/AddressSeed.js +91 -0
- package/dist/zklogin/AddressSeed.js.map +1 -0
- package/dist/zklogin/Errors.d.ts +24 -0
- package/dist/zklogin/Errors.d.ts.map +1 -0
- package/dist/zklogin/Errors.js +25 -0
- package/dist/zklogin/Errors.js.map +1 -0
- package/dist/zklogin/Jwt.d.ts +51 -0
- package/dist/zklogin/Jwt.d.ts.map +1 -0
- package/dist/zklogin/Jwt.js +159 -0
- package/dist/zklogin/Jwt.js.map +1 -0
- package/dist/zklogin/Nonce.d.ts +9 -0
- package/dist/zklogin/Nonce.d.ts.map +1 -0
- package/dist/zklogin/Nonce.js +34 -0
- package/dist/zklogin/Nonce.js.map +1 -0
- package/dist/zklogin/Poseidon.d.ts +24 -0
- package/dist/zklogin/Poseidon.d.ts.map +1 -0
- package/dist/zklogin/Poseidon.js +54 -0
- package/dist/zklogin/Poseidon.js.map +1 -0
- package/dist/zklogin/PublicIdentifier.d.ts +49 -0
- package/dist/zklogin/PublicIdentifier.d.ts.map +1 -0
- package/dist/zklogin/PublicIdentifier.js +90 -0
- package/dist/zklogin/PublicIdentifier.js.map +1 -0
- package/dist/zklogin/Signature.d.ts +55 -0
- package/dist/zklogin/Signature.d.ts.map +1 -0
- package/dist/zklogin/Signature.js +70 -0
- package/dist/zklogin/Signature.js.map +1 -0
- package/dist/zklogin/ZkLogin.d.ts +41 -0
- package/dist/zklogin/ZkLogin.d.ts.map +1 -0
- package/dist/zklogin/ZkLogin.js +87 -0
- package/dist/zklogin/ZkLogin.js.map +1 -0
- package/dist/zklogin/ZkLoginAddress.d.ts +30 -0
- package/dist/zklogin/ZkLoginAddress.d.ts.map +1 -0
- package/dist/zklogin/ZkLoginAddress.js +31 -0
- package/dist/zklogin/ZkLoginAddress.js.map +1 -0
- package/dist/zklogin/ZkLoginVerifier.d.ts +37 -0
- package/dist/zklogin/ZkLoginVerifier.d.ts.map +1 -0
- package/dist/zklogin/ZkLoginVerifier.js +4 -0
- package/dist/zklogin/ZkLoginVerifier.js.map +1 -0
- package/dist/zklogin/ZkLoginVerifierGrpc.d.ts +12 -0
- package/dist/zklogin/ZkLoginVerifierGrpc.d.ts.map +1 -0
- package/dist/zklogin/ZkLoginVerifierGrpc.js +53 -0
- package/dist/zklogin/ZkLoginVerifierGrpc.js.map +1 -0
- package/dist/zklogin/index.d.ts +17 -0
- package/dist/zklogin/index.d.ts.map +1 -0
- package/dist/zklogin/index.js +17 -0
- package/dist/zklogin/index.js.map +1 -0
- package/dist/zklogin/internal/parse.d.ts +9 -0
- package/dist/zklogin/internal/parse.d.ts.map +1 -0
- package/dist/zklogin/internal/parse.js +33 -0
- package/dist/zklogin/internal/parse.js.map +1 -0
- package/dist/zklogin/internal/poseidon.d.ts +21 -0
- package/dist/zklogin/internal/poseidon.d.ts.map +1 -0
- package/dist/zklogin/internal/poseidon.js +40 -0
- package/dist/zklogin/internal/poseidon.js.map +1 -0
- package/package.json +69 -4
- package/src/Address.ts +45 -0
- package/src/AddressAlias.ts +160 -0
- package/src/Bip32.ts +37 -0
- package/src/Chain.ts +21 -0
- package/src/CheckpointData.ts +106 -0
- package/src/Checkpoints.ts +18 -0
- package/src/CoinReservation.ts +65 -0
- package/src/Coins.ts +86 -0
- package/src/DynamicFields.ts +179 -0
- package/src/Ecdsa.ts +103 -0
- package/src/Ed25519.ts +84 -0
- package/src/Events.ts +133 -0
- package/src/Hash.ts +39 -0
- package/src/MlDsa65.ts +92 -0
- package/src/Mnemonic.ts +109 -0
- package/src/Move.ts +440 -0
- package/src/MultiSig.ts +320 -0
- package/src/Objects.ts +112 -0
- package/src/Packages.ts +52 -0
- package/src/Passkey.ts +10 -0
- package/src/PrivateKey.ts +138 -0
- package/src/Ptb.ts +579 -0
- package/src/Resolve.ts +1367 -0
- package/src/RpcError.ts +41 -0
- package/src/Secp256k1.ts +29 -0
- package/src/Secp256r1.ts +29 -0
- package/src/SignatureScheme.ts +166 -0
- package/src/Signer.ts +62 -0
- package/src/Testing.ts +830 -0
- package/src/TransactionData.ts +134 -0
- package/src/TransactionJson.ts +1002 -0
- package/src/Transactions.ts +211 -0
- package/src/Tx.ts +367 -0
- package/src/TypeTag.ts +123 -0
- package/src/Verify.ts +42 -0
- package/src/enoki/EnokiClient.ts +204 -0
- package/src/enoki/EnokiHttp.ts +222 -0
- package/src/enoki/Sponsor.ts +280 -0
- package/src/enoki/ZkLoginFlow.ts +176 -0
- package/src/enoki/index.ts +8 -0
- package/src/graphql/ChainGraphQL.ts +76 -0
- package/src/graphql/CheckpointDataGraphQL.ts +191 -0
- package/src/graphql/CheckpointsGraphQL.ts +96 -0
- package/src/graphql/CoinsGraphQL.ts +85 -0
- package/src/graphql/DynamicFieldsGraphQL.ts +167 -0
- package/src/graphql/EventsGraphQL.ts +301 -0
- package/src/graphql/ObjectsGraphQL.ts +112 -0
- package/src/graphql/PackagesGraphQL.ts +173 -0
- package/src/graphql/SuiGraphQL.ts +77 -0
- package/src/graphql/TransactionsGraphQL.ts +292 -0
- package/src/graphql/convert.ts +450 -0
- package/src/graphql/index.ts +74 -0
- package/src/graphql/merge.ts +62 -0
- package/src/graphql/paging.ts +110 -0
- package/src/graphql/subscription.ts +58 -0
- package/src/graphql/tip.ts +38 -0
- package/src/grpc/ChainGrpc.ts +51 -0
- package/src/grpc/CheckpointDataGrpc.ts +47 -0
- package/src/grpc/CheckpointsGrpc.ts +37 -0
- package/src/grpc/CoinsGrpc.ts +50 -0
- package/src/grpc/DynamicFieldsGrpc.ts +128 -0
- package/src/grpc/EventsGrpc.ts +101 -0
- package/src/grpc/GrpcWeb.ts +343 -0
- package/src/grpc/ObjectsGrpc.ts +95 -0
- package/src/grpc/PackagesGrpc.ts +98 -0
- package/src/grpc/Rpc.ts +156 -0
- package/src/grpc/TransactionsGrpc.ts +88 -0
- package/src/grpc/cache.ts +68 -0
- package/src/grpc/convert.ts +227 -0
- package/src/grpc/generated/lean.ts +276 -0
- package/src/grpc/generated/proto.ts +2130 -0
- package/src/grpc/generated/rpc.ts +417 -0
- package/src/grpc/index.ts +97 -0
- package/src/grpc/scan.ts +183 -0
- package/src/grpc/transaction.ts +182 -0
- package/src/index.ts +35 -0
- package/src/internal/allowances.ts +238 -0
- package/src/internal/mnemonic.ts +99 -0
- package/src/internal/passkey/BrowserProvider.ts +131 -0
- package/src/internal/passkey/Passkey.ts +408 -0
- package/src/internal/passkey/SoftwareProvider.ts +90 -0
- package/src/lifecycle/Evidence.ts +85 -0
- package/src/lifecycle/EvidenceGraphQL.ts +67 -0
- package/src/lifecycle/EvidenceGrpc.ts +47 -0
- package/src/lifecycle/Journal.ts +117 -0
- package/src/lifecycle/JournalEntry.ts +68 -0
- package/src/lifecycle/JournalKeyValueStore.ts +276 -0
- package/src/lifecycle/KeyValueStoreIndexedDb.ts +361 -0
- package/src/lifecycle/KeyValueStoreOpfs.ts +230 -0
- package/src/lifecycle/Lifecycle.ts +990 -0
- package/src/lifecycle/Outcome.ts +130 -0
- package/src/lifecycle/SenderLock.ts +73 -0
- package/src/lifecycle/SenderLockWebLocks.ts +136 -0
- package/src/lifecycle/SignedTransaction.ts +133 -0
- package/src/lifecycle/SubmitConfig.ts +77 -0
- package/src/lifecycle/index.ts +12 -0
- package/src/wallet/Features.ts +114 -0
- package/src/wallet/Wallet.ts +550 -0
- package/src/wallet/index.ts +5 -0
- package/src/zklogin/AddressSeed.ts +130 -0
- package/src/zklogin/Errors.ts +27 -0
- package/src/zklogin/Jwt.ts +186 -0
- package/src/zklogin/Nonce.ts +46 -0
- package/src/zklogin/Poseidon.ts +62 -0
- package/src/zklogin/PublicIdentifier.ts +111 -0
- package/src/zklogin/Signature.ts +88 -0
- package/src/zklogin/ZkLogin.ts +145 -0
- package/src/zklogin/ZkLoginAddress.ts +72 -0
- package/src/zklogin/ZkLoginVerifier.ts +37 -0
- package/src/zklogin/ZkLoginVerifierGrpc.ts +66 -0
- package/src/zklogin/index.ts +16 -0
- package/src/zklogin/internal/parse.ts +30 -0
- package/src/zklogin/internal/poseidon.ts +47 -0
|
@@ -0,0 +1,2130 @@
|
|
|
1
|
+
// Generated by scripts/codegen-grpc.ts from proto/sui-rpc.binpb (MystenLabs/sui-apis). Do not edit.
|
|
2
|
+
// Field names are the proto names, as effect/protobuf keys them. Every field is optional:
|
|
3
|
+
// absent on encode means "unset", and the domain layer decodes responses with Schema.
|
|
4
|
+
// Types only (plus enum value tables); descriptors and method handles live in rpc.ts.
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
/** google.protobuf.NullValue */
|
|
8
|
+
export const NullValue = {
|
|
9
|
+
NULL_VALUE: 0
|
|
10
|
+
} as const
|
|
11
|
+
export type NullValue = (typeof NullValue)[keyof typeof NullValue]
|
|
12
|
+
|
|
13
|
+
/** google.protobuf.Struct */
|
|
14
|
+
export interface Struct {
|
|
15
|
+
readonly fields?: Readonly<Record<string, Value>>
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/** google.protobuf.Value */
|
|
19
|
+
export interface Value {
|
|
20
|
+
readonly kind?:
|
|
21
|
+
| { readonly _tag: "null_value"; readonly value: NullValue }
|
|
22
|
+
| { readonly _tag: "number_value"; readonly value: number }
|
|
23
|
+
| { readonly _tag: "string_value"; readonly value: string }
|
|
24
|
+
| { readonly _tag: "bool_value"; readonly value: boolean }
|
|
25
|
+
| { readonly _tag: "struct_value"; readonly value: Struct }
|
|
26
|
+
| { readonly _tag: "list_value"; readonly value: ListValue }
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/** google.protobuf.ListValue */
|
|
30
|
+
export interface ListValue {
|
|
31
|
+
readonly values?: ReadonlyArray<Value>
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
/** sui.rpc.v2.ProtocolConfig */
|
|
35
|
+
export interface ProtocolConfig {
|
|
36
|
+
readonly protocol_version?: bigint
|
|
37
|
+
readonly feature_flags?: Readonly<Record<string, boolean>>
|
|
38
|
+
readonly attributes?: Readonly<Record<string, string>>
|
|
39
|
+
readonly configs?: Readonly<Record<string, Value>>
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/** google.protobuf.FieldMask */
|
|
43
|
+
export interface FieldMask {
|
|
44
|
+
readonly paths?: ReadonlyArray<string>
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** google.protobuf.Timestamp */
|
|
48
|
+
export interface Timestamp {
|
|
49
|
+
readonly seconds?: bigint
|
|
50
|
+
readonly nanos?: number
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/** google.protobuf.Any */
|
|
54
|
+
export interface Any {
|
|
55
|
+
readonly type_url?: string
|
|
56
|
+
readonly value?: Uint8Array
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
/** google.rpc.Status */
|
|
60
|
+
export interface Status {
|
|
61
|
+
readonly code?: number
|
|
62
|
+
readonly message?: string
|
|
63
|
+
readonly details?: ReadonlyArray<Any>
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/** sui.rpc.v2.Bcs */
|
|
67
|
+
export interface Bcs {
|
|
68
|
+
readonly name?: string
|
|
69
|
+
readonly value?: Uint8Array
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
/** sui.rpc.v2.JwkId */
|
|
73
|
+
export interface JwkId {
|
|
74
|
+
readonly iss?: string
|
|
75
|
+
readonly kid?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** sui.rpc.v2.Jwk */
|
|
79
|
+
export interface Jwk {
|
|
80
|
+
readonly kty?: string
|
|
81
|
+
readonly e?: string
|
|
82
|
+
readonly n?: string
|
|
83
|
+
readonly alg?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** sui.rpc.v2.SignatureScheme */
|
|
87
|
+
export const SignatureScheme = {
|
|
88
|
+
ED25519: 0,
|
|
89
|
+
SECP256K1: 1,
|
|
90
|
+
SECP256R1: 2,
|
|
91
|
+
MULTISIG: 3,
|
|
92
|
+
BLS12381: 4,
|
|
93
|
+
ZKLOGIN: 5,
|
|
94
|
+
PASSKEY: 6,
|
|
95
|
+
MLDSA65: 7
|
|
96
|
+
} as const
|
|
97
|
+
export type SignatureScheme = (typeof SignatureScheme)[keyof typeof SignatureScheme]
|
|
98
|
+
|
|
99
|
+
/** sui.rpc.v2.UserSignature */
|
|
100
|
+
export interface UserSignature {
|
|
101
|
+
readonly bcs?: Bcs
|
|
102
|
+
readonly scheme?: SignatureScheme
|
|
103
|
+
readonly signature?:
|
|
104
|
+
| { readonly _tag: "simple"; readonly value: SimpleSignature }
|
|
105
|
+
| { readonly _tag: "multisig"; readonly value: MultisigAggregatedSignature }
|
|
106
|
+
| { readonly _tag: "zklogin"; readonly value: ZkLoginAuthenticator }
|
|
107
|
+
| { readonly _tag: "passkey"; readonly value: PasskeyAuthenticator }
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/** sui.rpc.v2.SimpleSignature */
|
|
111
|
+
export interface SimpleSignature {
|
|
112
|
+
readonly scheme?: SignatureScheme
|
|
113
|
+
readonly signature?: Uint8Array
|
|
114
|
+
readonly public_key?: Uint8Array
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** sui.rpc.v2.ZkLoginPublicIdentifier */
|
|
118
|
+
export interface ZkLoginPublicIdentifier {
|
|
119
|
+
readonly iss?: string
|
|
120
|
+
readonly address_seed?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/** sui.rpc.v2.MultisigMemberPublicKey */
|
|
124
|
+
export interface MultisigMemberPublicKey {
|
|
125
|
+
readonly scheme?: SignatureScheme
|
|
126
|
+
readonly public_key?: Uint8Array
|
|
127
|
+
readonly zklogin?: ZkLoginPublicIdentifier
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/** sui.rpc.v2.MultisigMember */
|
|
131
|
+
export interface MultisigMember {
|
|
132
|
+
readonly public_key?: MultisigMemberPublicKey
|
|
133
|
+
readonly weight?: number
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/** sui.rpc.v2.MultisigCommittee */
|
|
137
|
+
export interface MultisigCommittee {
|
|
138
|
+
readonly members?: ReadonlyArray<MultisigMember>
|
|
139
|
+
readonly threshold?: number
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** sui.rpc.v2.MultisigAggregatedSignature */
|
|
143
|
+
export interface MultisigAggregatedSignature {
|
|
144
|
+
readonly signatures?: ReadonlyArray<MultisigMemberSignature>
|
|
145
|
+
readonly bitmap?: number
|
|
146
|
+
readonly legacy_bitmap?: Uint8Array
|
|
147
|
+
readonly committee?: MultisigCommittee
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** sui.rpc.v2.MultisigMemberSignature */
|
|
151
|
+
export interface MultisigMemberSignature {
|
|
152
|
+
readonly scheme?: SignatureScheme
|
|
153
|
+
readonly signature?: Uint8Array
|
|
154
|
+
readonly zklogin?: ZkLoginAuthenticator
|
|
155
|
+
readonly passkey?: PasskeyAuthenticator
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/** sui.rpc.v2.ZkLoginAuthenticator */
|
|
159
|
+
export interface ZkLoginAuthenticator {
|
|
160
|
+
readonly inputs?: ZkLoginInputs
|
|
161
|
+
readonly max_epoch?: bigint
|
|
162
|
+
readonly signature?: SimpleSignature
|
|
163
|
+
readonly public_identifier?: ZkLoginPublicIdentifier
|
|
164
|
+
readonly jwk_id?: JwkId
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
/** sui.rpc.v2.ZkLoginInputs */
|
|
168
|
+
export interface ZkLoginInputs {
|
|
169
|
+
readonly proof_points?: ZkLoginProof
|
|
170
|
+
readonly iss_base64_details?: ZkLoginClaim
|
|
171
|
+
readonly header_base64?: string
|
|
172
|
+
readonly address_seed?: string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/** sui.rpc.v2.ZkLoginProof */
|
|
176
|
+
export interface ZkLoginProof {
|
|
177
|
+
readonly a?: CircomG1
|
|
178
|
+
readonly b?: CircomG2
|
|
179
|
+
readonly c?: CircomG1
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/** sui.rpc.v2.ZkLoginClaim */
|
|
183
|
+
export interface ZkLoginClaim {
|
|
184
|
+
readonly value?: string
|
|
185
|
+
readonly index_mod_4?: number
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/** sui.rpc.v2.CircomG1 */
|
|
189
|
+
export interface CircomG1 {
|
|
190
|
+
readonly e0?: string
|
|
191
|
+
readonly e1?: string
|
|
192
|
+
readonly e2?: string
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/** sui.rpc.v2.CircomG2 */
|
|
196
|
+
export interface CircomG2 {
|
|
197
|
+
readonly e00?: string
|
|
198
|
+
readonly e01?: string
|
|
199
|
+
readonly e10?: string
|
|
200
|
+
readonly e11?: string
|
|
201
|
+
readonly e20?: string
|
|
202
|
+
readonly e21?: string
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** sui.rpc.v2.PasskeyAuthenticator */
|
|
206
|
+
export interface PasskeyAuthenticator {
|
|
207
|
+
readonly authenticator_data?: Uint8Array
|
|
208
|
+
readonly client_data_json?: string
|
|
209
|
+
readonly signature?: SimpleSignature
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
/** sui.rpc.v2.ValidatorCommittee */
|
|
213
|
+
export interface ValidatorCommittee {
|
|
214
|
+
readonly epoch?: bigint
|
|
215
|
+
readonly members?: ReadonlyArray<ValidatorCommitteeMember>
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/** sui.rpc.v2.ValidatorCommitteeMember */
|
|
219
|
+
export interface ValidatorCommitteeMember {
|
|
220
|
+
readonly public_key?: Uint8Array
|
|
221
|
+
readonly weight?: bigint
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/** sui.rpc.v2.ValidatorAggregatedSignature */
|
|
225
|
+
export interface ValidatorAggregatedSignature {
|
|
226
|
+
readonly epoch?: bigint
|
|
227
|
+
readonly signature?: Uint8Array
|
|
228
|
+
readonly bitmap?: Uint8Array
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** sui.rpc.v2.CheckpointContents */
|
|
232
|
+
export interface CheckpointContents {
|
|
233
|
+
readonly bcs?: Bcs
|
|
234
|
+
readonly digest?: string
|
|
235
|
+
readonly version?: number
|
|
236
|
+
readonly transactions?: ReadonlyArray<CheckpointedTransactionInfo>
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
/** sui.rpc.v2.CheckpointedTransactionInfo */
|
|
240
|
+
export interface CheckpointedTransactionInfo {
|
|
241
|
+
readonly transaction?: string
|
|
242
|
+
readonly effects?: string
|
|
243
|
+
readonly signatures?: ReadonlyArray<UserSignature>
|
|
244
|
+
readonly address_aliases_versions?: ReadonlyArray<AddressAliasesVersion>
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/** sui.rpc.v2.AddressAliasesVersion */
|
|
248
|
+
export interface AddressAliasesVersion {
|
|
249
|
+
readonly version?: bigint
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/** sui.rpc.v2.GasCostSummary */
|
|
253
|
+
export interface GasCostSummary {
|
|
254
|
+
readonly computation_cost?: bigint
|
|
255
|
+
readonly storage_cost?: bigint
|
|
256
|
+
readonly storage_rebate?: bigint
|
|
257
|
+
readonly non_refundable_storage_fee?: bigint
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
/** sui.rpc.v2.CheckpointSummary */
|
|
261
|
+
export interface CheckpointSummary {
|
|
262
|
+
readonly bcs?: Bcs
|
|
263
|
+
readonly digest?: string
|
|
264
|
+
readonly epoch?: bigint
|
|
265
|
+
readonly sequence_number?: bigint
|
|
266
|
+
readonly total_network_transactions?: bigint
|
|
267
|
+
readonly content_digest?: string
|
|
268
|
+
readonly previous_digest?: string
|
|
269
|
+
readonly epoch_rolling_gas_cost_summary?: GasCostSummary
|
|
270
|
+
readonly timestamp?: Timestamp
|
|
271
|
+
readonly commitments?: ReadonlyArray<CheckpointCommitment>
|
|
272
|
+
readonly end_of_epoch_data?: EndOfEpochData
|
|
273
|
+
readonly version_specific_data?: Uint8Array
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/** sui.rpc.v2.EndOfEpochData */
|
|
277
|
+
export interface EndOfEpochData {
|
|
278
|
+
readonly next_epoch_committee?: ReadonlyArray<ValidatorCommitteeMember>
|
|
279
|
+
readonly next_epoch_protocol_version?: bigint
|
|
280
|
+
readonly epoch_commitments?: ReadonlyArray<CheckpointCommitment>
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/** sui.rpc.v2.CheckpointCommitment */
|
|
284
|
+
export interface CheckpointCommitment {
|
|
285
|
+
readonly kind?: CheckpointCommitment_CheckpointCommitmentKind
|
|
286
|
+
readonly digest?: string
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/** sui.rpc.v2.CheckpointCommitment.CheckpointCommitmentKind */
|
|
290
|
+
export const CheckpointCommitment_CheckpointCommitmentKind = {
|
|
291
|
+
CHECKPOINT_COMMITMENT_KIND_UNKNOWN: 0,
|
|
292
|
+
ECMH_LIVE_OBJECT_SET: 1,
|
|
293
|
+
CHECKPOINT_ARTIFACTS: 2
|
|
294
|
+
} as const
|
|
295
|
+
export type CheckpointCommitment_CheckpointCommitmentKind = (typeof CheckpointCommitment_CheckpointCommitmentKind)[keyof typeof CheckpointCommitment_CheckpointCommitmentKind]
|
|
296
|
+
|
|
297
|
+
/** sui.rpc.v2.BalanceChange */
|
|
298
|
+
export interface BalanceChange {
|
|
299
|
+
readonly address?: string
|
|
300
|
+
readonly coin_type?: string
|
|
301
|
+
readonly amount?: string
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
/** sui.rpc.v2.ExecutionStatus */
|
|
305
|
+
export interface ExecutionStatus {
|
|
306
|
+
readonly success?: boolean
|
|
307
|
+
readonly error?: ExecutionError
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/** sui.rpc.v2.ExecutionError */
|
|
311
|
+
export interface ExecutionError {
|
|
312
|
+
readonly description?: string
|
|
313
|
+
readonly command?: bigint
|
|
314
|
+
readonly kind?: ExecutionError_ExecutionErrorKind
|
|
315
|
+
readonly error_details?:
|
|
316
|
+
| { readonly _tag: "abort"; readonly value: MoveAbort }
|
|
317
|
+
| { readonly _tag: "size_error"; readonly value: SizeError }
|
|
318
|
+
| { readonly _tag: "command_argument_error"; readonly value: CommandArgumentError }
|
|
319
|
+
| { readonly _tag: "type_argument_error"; readonly value: TypeArgumentError }
|
|
320
|
+
| { readonly _tag: "package_upgrade_error"; readonly value: PackageUpgradeError }
|
|
321
|
+
| { readonly _tag: "index_error"; readonly value: IndexError }
|
|
322
|
+
| { readonly _tag: "object_id"; readonly value: string }
|
|
323
|
+
| { readonly _tag: "coin_deny_list_error"; readonly value: CoinDenyListError }
|
|
324
|
+
| { readonly _tag: "congested_objects"; readonly value: CongestedObjects }
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/** sui.rpc.v2.ExecutionError.ExecutionErrorKind */
|
|
328
|
+
export const ExecutionError_ExecutionErrorKind = {
|
|
329
|
+
EXECUTION_ERROR_KIND_UNKNOWN: 0,
|
|
330
|
+
INSUFFICIENT_GAS: 1,
|
|
331
|
+
INVALID_GAS_OBJECT: 2,
|
|
332
|
+
INVARIANT_VIOLATION: 3,
|
|
333
|
+
FEATURE_NOT_YET_SUPPORTED: 4,
|
|
334
|
+
OBJECT_TOO_BIG: 5,
|
|
335
|
+
PACKAGE_TOO_BIG: 6,
|
|
336
|
+
CIRCULAR_OBJECT_OWNERSHIP: 7,
|
|
337
|
+
INSUFFICIENT_COIN_BALANCE: 8,
|
|
338
|
+
COIN_BALANCE_OVERFLOW: 9,
|
|
339
|
+
PUBLISH_ERROR_NON_ZERO_ADDRESS: 10,
|
|
340
|
+
SUI_MOVE_VERIFICATION_ERROR: 11,
|
|
341
|
+
MOVE_PRIMITIVE_RUNTIME_ERROR: 12,
|
|
342
|
+
MOVE_ABORT: 13,
|
|
343
|
+
VM_VERIFICATION_OR_DESERIALIZATION_ERROR: 14,
|
|
344
|
+
VM_INVARIANT_VIOLATION: 15,
|
|
345
|
+
FUNCTION_NOT_FOUND: 16,
|
|
346
|
+
ARITY_MISMATCH: 17,
|
|
347
|
+
TYPE_ARITY_MISMATCH: 18,
|
|
348
|
+
NON_ENTRY_FUNCTION_INVOKED: 19,
|
|
349
|
+
COMMAND_ARGUMENT_ERROR: 20,
|
|
350
|
+
TYPE_ARGUMENT_ERROR: 21,
|
|
351
|
+
UNUSED_VALUE_WITHOUT_DROP: 22,
|
|
352
|
+
INVALID_PUBLIC_FUNCTION_RETURN_TYPE: 23,
|
|
353
|
+
INVALID_TRANSFER_OBJECT: 24,
|
|
354
|
+
EFFECTS_TOO_LARGE: 25,
|
|
355
|
+
PUBLISH_UPGRADE_MISSING_DEPENDENCY: 26,
|
|
356
|
+
PUBLISH_UPGRADE_DEPENDENCY_DOWNGRADE: 27,
|
|
357
|
+
PACKAGE_UPGRADE_ERROR: 28,
|
|
358
|
+
WRITTEN_OBJECTS_TOO_LARGE: 29,
|
|
359
|
+
CERTIFICATE_DENIED: 30,
|
|
360
|
+
SUI_MOVE_VERIFICATION_TIMEDOUT: 31,
|
|
361
|
+
CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED: 32,
|
|
362
|
+
INPUT_OBJECT_DELETED: 33,
|
|
363
|
+
EXECUTION_CANCELED_DUE_TO_CONSENSUS_OBJECT_CONGESTION: 34,
|
|
364
|
+
ADDRESS_DENIED_FOR_COIN: 35,
|
|
365
|
+
COIN_TYPE_GLOBAL_PAUSE: 36,
|
|
366
|
+
EXECUTION_CANCELED_DUE_TO_RANDOMNESS_UNAVAILABLE: 37,
|
|
367
|
+
MOVE_VECTOR_ELEM_TOO_BIG: 38,
|
|
368
|
+
MOVE_RAW_VALUE_TOO_BIG: 39,
|
|
369
|
+
INVALID_LINKAGE: 40,
|
|
370
|
+
INSUFFICIENT_FUNDS_FOR_WITHDRAW: 41,
|
|
371
|
+
NON_EXCLUSIVE_WRITE_INPUT_OBJECT_MODIFIED: 42,
|
|
372
|
+
TRANSACTION_EXPIRED: 43
|
|
373
|
+
} as const
|
|
374
|
+
export type ExecutionError_ExecutionErrorKind = (typeof ExecutionError_ExecutionErrorKind)[keyof typeof ExecutionError_ExecutionErrorKind]
|
|
375
|
+
|
|
376
|
+
/** sui.rpc.v2.MoveAbort */
|
|
377
|
+
export interface MoveAbort {
|
|
378
|
+
readonly abort_code?: bigint
|
|
379
|
+
readonly location?: MoveLocation
|
|
380
|
+
readonly clever_error?: CleverError
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
/** sui.rpc.v2.MoveLocation */
|
|
384
|
+
export interface MoveLocation {
|
|
385
|
+
readonly package?: string
|
|
386
|
+
readonly module?: string
|
|
387
|
+
readonly function?: number
|
|
388
|
+
readonly instruction?: number
|
|
389
|
+
readonly function_name?: string
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
/** sui.rpc.v2.CleverError */
|
|
393
|
+
export interface CleverError {
|
|
394
|
+
readonly error_code?: bigint
|
|
395
|
+
readonly line_number?: bigint
|
|
396
|
+
readonly constant_name?: string
|
|
397
|
+
readonly constant_type?: string
|
|
398
|
+
readonly value?:
|
|
399
|
+
| { readonly _tag: "rendered"; readonly value: string }
|
|
400
|
+
| { readonly _tag: "raw"; readonly value: Uint8Array }
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/** sui.rpc.v2.SizeError */
|
|
404
|
+
export interface SizeError {
|
|
405
|
+
readonly size?: bigint
|
|
406
|
+
readonly max_size?: bigint
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/** sui.rpc.v2.IndexError */
|
|
410
|
+
export interface IndexError {
|
|
411
|
+
readonly index?: number
|
|
412
|
+
readonly subresult?: number
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/** sui.rpc.v2.CoinDenyListError */
|
|
416
|
+
export interface CoinDenyListError {
|
|
417
|
+
readonly address?: string
|
|
418
|
+
readonly coin_type?: string
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/** sui.rpc.v2.CongestedObjects */
|
|
422
|
+
export interface CongestedObjects {
|
|
423
|
+
readonly objects?: ReadonlyArray<string>
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
/** sui.rpc.v2.CommandArgumentError */
|
|
427
|
+
export interface CommandArgumentError {
|
|
428
|
+
readonly argument?: number
|
|
429
|
+
readonly kind?: CommandArgumentError_CommandArgumentErrorKind
|
|
430
|
+
readonly index_error?: IndexError
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/** sui.rpc.v2.CommandArgumentError.CommandArgumentErrorKind */
|
|
434
|
+
export const CommandArgumentError_CommandArgumentErrorKind = {
|
|
435
|
+
COMMAND_ARGUMENT_ERROR_KIND_UNKNOWN: 0,
|
|
436
|
+
TYPE_MISMATCH: 1,
|
|
437
|
+
INVALID_BCS_BYTES: 2,
|
|
438
|
+
INVALID_USAGE_OF_PURE_ARGUMENT: 3,
|
|
439
|
+
INVALID_ARGUMENT_TO_PRIVATE_ENTRY_FUNCTION: 4,
|
|
440
|
+
INDEX_OUT_OF_BOUNDS: 5,
|
|
441
|
+
SECONDARY_INDEX_OUT_OF_BOUNDS: 6,
|
|
442
|
+
INVALID_RESULT_ARITY: 7,
|
|
443
|
+
INVALID_GAS_COIN_USAGE: 8,
|
|
444
|
+
INVALID_VALUE_USAGE: 9,
|
|
445
|
+
INVALID_OBJECT_BY_VALUE: 10,
|
|
446
|
+
INVALID_OBJECT_BY_MUT_REF: 11,
|
|
447
|
+
CONSENSUS_OBJECT_OPERATION_NOT_ALLOWED: 12,
|
|
448
|
+
INVALID_ARGUMENT_ARITY: 13,
|
|
449
|
+
INVALID_TRANSFER_OBJECT: 14,
|
|
450
|
+
INVALID_MAKE_MOVE_VEC_NON_OBJECT_ARGUMENT: 15,
|
|
451
|
+
ARGUMENT_WITHOUT_VALUE: 16,
|
|
452
|
+
CANNOT_MOVE_BORROWED_VALUE: 17,
|
|
453
|
+
CANNOT_WRITE_TO_EXTENDED_REFERENCE: 18,
|
|
454
|
+
INVALID_REFERENCE_ARGUMENT: 19,
|
|
455
|
+
INVALID_TX_CONTEXT: 20
|
|
456
|
+
} as const
|
|
457
|
+
export type CommandArgumentError_CommandArgumentErrorKind = (typeof CommandArgumentError_CommandArgumentErrorKind)[keyof typeof CommandArgumentError_CommandArgumentErrorKind]
|
|
458
|
+
|
|
459
|
+
/** sui.rpc.v2.PackageUpgradeError */
|
|
460
|
+
export interface PackageUpgradeError {
|
|
461
|
+
readonly kind?: PackageUpgradeError_PackageUpgradeErrorKind
|
|
462
|
+
readonly package_id?: string
|
|
463
|
+
readonly digest?: string
|
|
464
|
+
readonly policy?: number
|
|
465
|
+
readonly ticket_id?: string
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/** sui.rpc.v2.PackageUpgradeError.PackageUpgradeErrorKind */
|
|
469
|
+
export const PackageUpgradeError_PackageUpgradeErrorKind = {
|
|
470
|
+
PACKAGE_UPGRADE_ERROR_KIND_UNKNOWN: 0,
|
|
471
|
+
UNABLE_TO_FETCH_PACKAGE: 1,
|
|
472
|
+
NOT_A_PACKAGE: 2,
|
|
473
|
+
INCOMPATIBLE_UPGRADE: 3,
|
|
474
|
+
DIGEST_DOES_NOT_MATCH: 4,
|
|
475
|
+
UNKNOWN_UPGRADE_POLICY: 5,
|
|
476
|
+
PACKAGE_ID_DOES_NOT_MATCH: 6
|
|
477
|
+
} as const
|
|
478
|
+
export type PackageUpgradeError_PackageUpgradeErrorKind = (typeof PackageUpgradeError_PackageUpgradeErrorKind)[keyof typeof PackageUpgradeError_PackageUpgradeErrorKind]
|
|
479
|
+
|
|
480
|
+
/** sui.rpc.v2.TypeArgumentError */
|
|
481
|
+
export interface TypeArgumentError {
|
|
482
|
+
readonly type_argument?: number
|
|
483
|
+
readonly kind?: TypeArgumentError_TypeArgumentErrorKind
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
/** sui.rpc.v2.TypeArgumentError.TypeArgumentErrorKind */
|
|
487
|
+
export const TypeArgumentError_TypeArgumentErrorKind = {
|
|
488
|
+
TYPE_ARGUMENT_ERROR_KIND_UNKNOWN: 0,
|
|
489
|
+
TYPE_NOT_FOUND: 1,
|
|
490
|
+
CONSTRAINT_NOT_SATISFIED: 2
|
|
491
|
+
} as const
|
|
492
|
+
export type TypeArgumentError_TypeArgumentErrorKind = (typeof TypeArgumentError_TypeArgumentErrorKind)[keyof typeof TypeArgumentError_TypeArgumentErrorKind]
|
|
493
|
+
|
|
494
|
+
/** sui.rpc.v2.ObjectReference */
|
|
495
|
+
export interface ObjectReference {
|
|
496
|
+
readonly object_id?: string
|
|
497
|
+
readonly version?: bigint
|
|
498
|
+
readonly digest?: string
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
/** sui.rpc.v2.Owner */
|
|
502
|
+
export interface Owner {
|
|
503
|
+
readonly kind?: Owner_OwnerKind
|
|
504
|
+
readonly address?: string
|
|
505
|
+
readonly version?: bigint
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/** sui.rpc.v2.Owner.OwnerKind */
|
|
509
|
+
export const Owner_OwnerKind = {
|
|
510
|
+
OWNER_KIND_UNKNOWN: 0,
|
|
511
|
+
ADDRESS: 1,
|
|
512
|
+
OBJECT: 2,
|
|
513
|
+
SHARED: 3,
|
|
514
|
+
IMMUTABLE: 4,
|
|
515
|
+
CONSENSUS_ADDRESS: 5
|
|
516
|
+
} as const
|
|
517
|
+
export type Owner_OwnerKind = (typeof Owner_OwnerKind)[keyof typeof Owner_OwnerKind]
|
|
518
|
+
|
|
519
|
+
/** sui.rpc.v2.TransactionEffects */
|
|
520
|
+
export interface TransactionEffects {
|
|
521
|
+
readonly bcs?: Bcs
|
|
522
|
+
readonly digest?: string
|
|
523
|
+
readonly version?: number
|
|
524
|
+
readonly status?: ExecutionStatus
|
|
525
|
+
readonly epoch?: bigint
|
|
526
|
+
readonly gas_used?: GasCostSummary
|
|
527
|
+
readonly transaction_digest?: string
|
|
528
|
+
readonly gas_object?: ChangedObject
|
|
529
|
+
readonly events_digest?: string
|
|
530
|
+
readonly dependencies?: ReadonlyArray<string>
|
|
531
|
+
readonly lamport_version?: bigint
|
|
532
|
+
readonly changed_objects?: ReadonlyArray<ChangedObject>
|
|
533
|
+
readonly unchanged_consensus_objects?: ReadonlyArray<UnchangedConsensusObject>
|
|
534
|
+
readonly auxiliary_data_digest?: string
|
|
535
|
+
readonly unchanged_loaded_runtime_objects?: ReadonlyArray<ObjectReference>
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
/** sui.rpc.v2.ChangedObject */
|
|
539
|
+
export interface ChangedObject {
|
|
540
|
+
readonly object_id?: string
|
|
541
|
+
readonly input_state?: ChangedObject_InputObjectState
|
|
542
|
+
readonly input_version?: bigint
|
|
543
|
+
readonly input_digest?: string
|
|
544
|
+
readonly input_owner?: Owner
|
|
545
|
+
readonly output_state?: ChangedObject_OutputObjectState
|
|
546
|
+
readonly output_version?: bigint
|
|
547
|
+
readonly output_digest?: string
|
|
548
|
+
readonly output_owner?: Owner
|
|
549
|
+
readonly accumulator_write?: AccumulatorWrite
|
|
550
|
+
readonly id_operation?: ChangedObject_IdOperation
|
|
551
|
+
readonly object_type?: string
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** sui.rpc.v2.ChangedObject.InputObjectState */
|
|
555
|
+
export const ChangedObject_InputObjectState = {
|
|
556
|
+
INPUT_OBJECT_STATE_UNKNOWN: 0,
|
|
557
|
+
INPUT_OBJECT_STATE_DOES_NOT_EXIST: 1,
|
|
558
|
+
INPUT_OBJECT_STATE_EXISTS: 2
|
|
559
|
+
} as const
|
|
560
|
+
export type ChangedObject_InputObjectState = (typeof ChangedObject_InputObjectState)[keyof typeof ChangedObject_InputObjectState]
|
|
561
|
+
|
|
562
|
+
/** sui.rpc.v2.ChangedObject.OutputObjectState */
|
|
563
|
+
export const ChangedObject_OutputObjectState = {
|
|
564
|
+
OUTPUT_OBJECT_STATE_UNKNOWN: 0,
|
|
565
|
+
OUTPUT_OBJECT_STATE_DOES_NOT_EXIST: 1,
|
|
566
|
+
OUTPUT_OBJECT_STATE_OBJECT_WRITE: 2,
|
|
567
|
+
OUTPUT_OBJECT_STATE_PACKAGE_WRITE: 3,
|
|
568
|
+
OUTPUT_OBJECT_STATE_ACCUMULATOR_WRITE: 4
|
|
569
|
+
} as const
|
|
570
|
+
export type ChangedObject_OutputObjectState = (typeof ChangedObject_OutputObjectState)[keyof typeof ChangedObject_OutputObjectState]
|
|
571
|
+
|
|
572
|
+
/** sui.rpc.v2.ChangedObject.IdOperation */
|
|
573
|
+
export const ChangedObject_IdOperation = {
|
|
574
|
+
ID_OPERATION_UNKNOWN: 0,
|
|
575
|
+
NONE: 1,
|
|
576
|
+
CREATED: 2,
|
|
577
|
+
DELETED: 3
|
|
578
|
+
} as const
|
|
579
|
+
export type ChangedObject_IdOperation = (typeof ChangedObject_IdOperation)[keyof typeof ChangedObject_IdOperation]
|
|
580
|
+
|
|
581
|
+
/** sui.rpc.v2.EventDigestEntry */
|
|
582
|
+
export interface EventDigestEntry {
|
|
583
|
+
readonly event_index?: bigint
|
|
584
|
+
readonly digest?: string
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
/** sui.rpc.v2.AccumulatorWrite */
|
|
588
|
+
export interface AccumulatorWrite {
|
|
589
|
+
readonly address?: string
|
|
590
|
+
readonly accumulator_type?: string
|
|
591
|
+
readonly operation?: AccumulatorWrite_AccumulatorOperation
|
|
592
|
+
readonly value_kind?: AccumulatorWrite_AccumulatorValue
|
|
593
|
+
readonly integer_value?: bigint
|
|
594
|
+
readonly integer_tuple?: ReadonlyArray<bigint>
|
|
595
|
+
readonly event_digest_value?: ReadonlyArray<EventDigestEntry>
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/** sui.rpc.v2.AccumulatorWrite.AccumulatorOperation */
|
|
599
|
+
export const AccumulatorWrite_AccumulatorOperation = {
|
|
600
|
+
ACCUMULATOR_OPERATION_UNKNOWN: 0,
|
|
601
|
+
MERGE: 1,
|
|
602
|
+
SPLIT: 2
|
|
603
|
+
} as const
|
|
604
|
+
export type AccumulatorWrite_AccumulatorOperation = (typeof AccumulatorWrite_AccumulatorOperation)[keyof typeof AccumulatorWrite_AccumulatorOperation]
|
|
605
|
+
|
|
606
|
+
/** sui.rpc.v2.AccumulatorWrite.AccumulatorValue */
|
|
607
|
+
export const AccumulatorWrite_AccumulatorValue = {
|
|
608
|
+
ACCUMULATOR_VALUE_UNKNOWN: 0,
|
|
609
|
+
INTEGER: 1,
|
|
610
|
+
INTEGER_TUPLE: 2,
|
|
611
|
+
EVENT_DIGEST: 3
|
|
612
|
+
} as const
|
|
613
|
+
export type AccumulatorWrite_AccumulatorValue = (typeof AccumulatorWrite_AccumulatorValue)[keyof typeof AccumulatorWrite_AccumulatorValue]
|
|
614
|
+
|
|
615
|
+
/** sui.rpc.v2.UnchangedConsensusObject */
|
|
616
|
+
export interface UnchangedConsensusObject {
|
|
617
|
+
readonly kind?: UnchangedConsensusObject_UnchangedConsensusObjectKind
|
|
618
|
+
readonly object_id?: string
|
|
619
|
+
readonly version?: bigint
|
|
620
|
+
readonly digest?: string
|
|
621
|
+
readonly object_type?: string
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
/** sui.rpc.v2.UnchangedConsensusObject.UnchangedConsensusObjectKind */
|
|
625
|
+
export const UnchangedConsensusObject_UnchangedConsensusObjectKind = {
|
|
626
|
+
UNCHANGED_CONSENSUS_OBJECT_KIND_UNKNOWN: 0,
|
|
627
|
+
READ_ONLY_ROOT: 1,
|
|
628
|
+
MUTATE_CONSENSUS_STREAM_ENDED: 2,
|
|
629
|
+
READ_CONSENSUS_STREAM_ENDED: 3,
|
|
630
|
+
CANCELED: 4,
|
|
631
|
+
PER_EPOCH_CONFIG: 5
|
|
632
|
+
} as const
|
|
633
|
+
export type UnchangedConsensusObject_UnchangedConsensusObjectKind = (typeof UnchangedConsensusObject_UnchangedConsensusObjectKind)[keyof typeof UnchangedConsensusObject_UnchangedConsensusObjectKind]
|
|
634
|
+
|
|
635
|
+
/** sui.rpc.v2.TransactionEvents */
|
|
636
|
+
export interface TransactionEvents {
|
|
637
|
+
readonly bcs?: Bcs
|
|
638
|
+
readonly digest?: string
|
|
639
|
+
readonly events?: ReadonlyArray<Event>
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
/** sui.rpc.v2.Event */
|
|
643
|
+
export interface Event {
|
|
644
|
+
readonly package_id?: string
|
|
645
|
+
readonly module?: string
|
|
646
|
+
readonly sender?: string
|
|
647
|
+
readonly event_type?: string
|
|
648
|
+
readonly contents?: Bcs
|
|
649
|
+
readonly json?: Value
|
|
650
|
+
readonly checkpoint?: bigint
|
|
651
|
+
readonly transaction_digest?: string
|
|
652
|
+
readonly transaction_index?: bigint
|
|
653
|
+
readonly event_index?: number
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/** sui.rpc.v2.Ability */
|
|
657
|
+
export const Ability = {
|
|
658
|
+
ABILITY_UNKNOWN: 0,
|
|
659
|
+
COPY: 1,
|
|
660
|
+
DROP: 2,
|
|
661
|
+
STORE: 3,
|
|
662
|
+
KEY: 4
|
|
663
|
+
} as const
|
|
664
|
+
export type Ability = (typeof Ability)[keyof typeof Ability]
|
|
665
|
+
|
|
666
|
+
/** sui.rpc.v2.Package */
|
|
667
|
+
export interface Package {
|
|
668
|
+
readonly storage_id?: string
|
|
669
|
+
readonly original_id?: string
|
|
670
|
+
readonly version?: bigint
|
|
671
|
+
readonly modules?: ReadonlyArray<Module>
|
|
672
|
+
readonly type_origins?: ReadonlyArray<TypeOrigin>
|
|
673
|
+
readonly linkage?: ReadonlyArray<Linkage>
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
/** sui.rpc.v2.Module */
|
|
677
|
+
export interface Module {
|
|
678
|
+
readonly name?: string
|
|
679
|
+
readonly contents?: Uint8Array
|
|
680
|
+
readonly datatypes?: ReadonlyArray<DatatypeDescriptor>
|
|
681
|
+
readonly functions?: ReadonlyArray<FunctionDescriptor>
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
/** sui.rpc.v2.DatatypeDescriptor */
|
|
685
|
+
export interface DatatypeDescriptor {
|
|
686
|
+
readonly type_name?: string
|
|
687
|
+
readonly defining_id?: string
|
|
688
|
+
readonly module?: string
|
|
689
|
+
readonly name?: string
|
|
690
|
+
readonly abilities?: ReadonlyArray<Ability>
|
|
691
|
+
readonly type_parameters?: ReadonlyArray<TypeParameter>
|
|
692
|
+
readonly kind?: DatatypeDescriptor_DatatypeKind
|
|
693
|
+
readonly fields?: ReadonlyArray<FieldDescriptor>
|
|
694
|
+
readonly variants?: ReadonlyArray<VariantDescriptor>
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
/** sui.rpc.v2.DatatypeDescriptor.DatatypeKind */
|
|
698
|
+
export const DatatypeDescriptor_DatatypeKind = {
|
|
699
|
+
DATATYPE_KIND_UNKNOWN: 0,
|
|
700
|
+
STRUCT: 1,
|
|
701
|
+
ENUM: 2
|
|
702
|
+
} as const
|
|
703
|
+
export type DatatypeDescriptor_DatatypeKind = (typeof DatatypeDescriptor_DatatypeKind)[keyof typeof DatatypeDescriptor_DatatypeKind]
|
|
704
|
+
|
|
705
|
+
/** sui.rpc.v2.TypeParameter */
|
|
706
|
+
export interface TypeParameter {
|
|
707
|
+
readonly constraints?: ReadonlyArray<Ability>
|
|
708
|
+
readonly is_phantom?: boolean
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/** sui.rpc.v2.FieldDescriptor */
|
|
712
|
+
export interface FieldDescriptor {
|
|
713
|
+
readonly name?: string
|
|
714
|
+
readonly position?: number
|
|
715
|
+
readonly type?: OpenSignatureBody
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/** sui.rpc.v2.VariantDescriptor */
|
|
719
|
+
export interface VariantDescriptor {
|
|
720
|
+
readonly name?: string
|
|
721
|
+
readonly position?: number
|
|
722
|
+
readonly fields?: ReadonlyArray<FieldDescriptor>
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** sui.rpc.v2.OpenSignatureBody */
|
|
726
|
+
export interface OpenSignatureBody {
|
|
727
|
+
readonly type?: OpenSignatureBody_Type
|
|
728
|
+
readonly type_name?: string
|
|
729
|
+
readonly type_parameter_instantiation?: ReadonlyArray<OpenSignatureBody>
|
|
730
|
+
readonly type_parameter?: number
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
/** sui.rpc.v2.OpenSignatureBody.Type */
|
|
734
|
+
export const OpenSignatureBody_Type = {
|
|
735
|
+
TYPE_UNKNOWN: 0,
|
|
736
|
+
ADDRESS: 1,
|
|
737
|
+
BOOL: 2,
|
|
738
|
+
U8: 3,
|
|
739
|
+
U16: 4,
|
|
740
|
+
U32: 5,
|
|
741
|
+
U64: 6,
|
|
742
|
+
U128: 7,
|
|
743
|
+
U256: 8,
|
|
744
|
+
VECTOR: 9,
|
|
745
|
+
DATATYPE: 10,
|
|
746
|
+
TYPE_PARAMETER: 11
|
|
747
|
+
} as const
|
|
748
|
+
export type OpenSignatureBody_Type = (typeof OpenSignatureBody_Type)[keyof typeof OpenSignatureBody_Type]
|
|
749
|
+
|
|
750
|
+
/** sui.rpc.v2.FunctionDescriptor */
|
|
751
|
+
export interface FunctionDescriptor {
|
|
752
|
+
readonly name?: string
|
|
753
|
+
readonly visibility?: FunctionDescriptor_Visibility
|
|
754
|
+
readonly is_entry?: boolean
|
|
755
|
+
readonly type_parameters?: ReadonlyArray<TypeParameter>
|
|
756
|
+
readonly parameters?: ReadonlyArray<OpenSignature>
|
|
757
|
+
readonly returns?: ReadonlyArray<OpenSignature>
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
/** sui.rpc.v2.FunctionDescriptor.Visibility */
|
|
761
|
+
export const FunctionDescriptor_Visibility = {
|
|
762
|
+
VISIBILITY_UNKNOWN: 0,
|
|
763
|
+
PRIVATE: 1,
|
|
764
|
+
PUBLIC: 2,
|
|
765
|
+
FRIEND: 3
|
|
766
|
+
} as const
|
|
767
|
+
export type FunctionDescriptor_Visibility = (typeof FunctionDescriptor_Visibility)[keyof typeof FunctionDescriptor_Visibility]
|
|
768
|
+
|
|
769
|
+
/** sui.rpc.v2.OpenSignature */
|
|
770
|
+
export interface OpenSignature {
|
|
771
|
+
readonly reference?: OpenSignature_Reference
|
|
772
|
+
readonly body?: OpenSignatureBody
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** sui.rpc.v2.OpenSignature.Reference */
|
|
776
|
+
export const OpenSignature_Reference = {
|
|
777
|
+
REFERENCE_UNKNOWN: 0,
|
|
778
|
+
IMMUTABLE: 1,
|
|
779
|
+
MUTABLE: 2
|
|
780
|
+
} as const
|
|
781
|
+
export type OpenSignature_Reference = (typeof OpenSignature_Reference)[keyof typeof OpenSignature_Reference]
|
|
782
|
+
|
|
783
|
+
/** sui.rpc.v2.TypeOrigin */
|
|
784
|
+
export interface TypeOrigin {
|
|
785
|
+
readonly module_name?: string
|
|
786
|
+
readonly datatype_name?: string
|
|
787
|
+
readonly package_id?: string
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/** sui.rpc.v2.Linkage */
|
|
791
|
+
export interface Linkage {
|
|
792
|
+
readonly original_id?: string
|
|
793
|
+
readonly upgraded_id?: string
|
|
794
|
+
readonly upgraded_version?: bigint
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/** sui.rpc.v2.Object */
|
|
798
|
+
export interface ObjectMessage {
|
|
799
|
+
readonly bcs?: Bcs
|
|
800
|
+
readonly object_id?: string
|
|
801
|
+
readonly version?: bigint
|
|
802
|
+
readonly digest?: string
|
|
803
|
+
readonly owner?: Owner
|
|
804
|
+
readonly object_type?: string
|
|
805
|
+
readonly has_public_transfer?: boolean
|
|
806
|
+
readonly contents?: Bcs
|
|
807
|
+
readonly package?: Package
|
|
808
|
+
readonly previous_transaction?: string
|
|
809
|
+
readonly storage_rebate?: bigint
|
|
810
|
+
readonly json?: Value
|
|
811
|
+
readonly balance?: bigint
|
|
812
|
+
readonly display?: Display
|
|
813
|
+
}
|
|
814
|
+
|
|
815
|
+
/** sui.rpc.v2.ObjectSet */
|
|
816
|
+
export interface ObjectSet {
|
|
817
|
+
readonly objects?: ReadonlyArray<ObjectMessage>
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/** sui.rpc.v2.Display */
|
|
821
|
+
export interface Display {
|
|
822
|
+
readonly output?: Value
|
|
823
|
+
readonly errors?: Value
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
/** google.protobuf.Duration */
|
|
827
|
+
export interface Duration {
|
|
828
|
+
readonly seconds?: bigint
|
|
829
|
+
readonly nanos?: number
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
/** sui.rpc.v2.Argument */
|
|
833
|
+
export interface Argument {
|
|
834
|
+
readonly kind?: Argument_ArgumentKind
|
|
835
|
+
readonly input?: number
|
|
836
|
+
readonly result?: number
|
|
837
|
+
readonly subresult?: number
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
/** sui.rpc.v2.Argument.ArgumentKind */
|
|
841
|
+
export const Argument_ArgumentKind = {
|
|
842
|
+
ARGUMENT_KIND_UNKNOWN: 0,
|
|
843
|
+
GAS: 1,
|
|
844
|
+
INPUT: 2,
|
|
845
|
+
RESULT: 3
|
|
846
|
+
} as const
|
|
847
|
+
export type Argument_ArgumentKind = (typeof Argument_ArgumentKind)[keyof typeof Argument_ArgumentKind]
|
|
848
|
+
|
|
849
|
+
/** sui.rpc.v2.Input */
|
|
850
|
+
export interface Input {
|
|
851
|
+
readonly kind?: Input_InputKind
|
|
852
|
+
readonly pure?: Uint8Array
|
|
853
|
+
readonly object_id?: string
|
|
854
|
+
readonly version?: bigint
|
|
855
|
+
readonly digest?: string
|
|
856
|
+
readonly mutable?: boolean
|
|
857
|
+
readonly mutability?: Input_Mutability
|
|
858
|
+
readonly funds_withdrawal?: FundsWithdrawal
|
|
859
|
+
readonly literal?: Value
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
/** sui.rpc.v2.Input.InputKind */
|
|
863
|
+
export const Input_InputKind = {
|
|
864
|
+
INPUT_KIND_UNKNOWN: 0,
|
|
865
|
+
PURE: 1,
|
|
866
|
+
IMMUTABLE_OR_OWNED: 2,
|
|
867
|
+
SHARED: 3,
|
|
868
|
+
RECEIVING: 4,
|
|
869
|
+
FUNDS_WITHDRAWAL: 5
|
|
870
|
+
} as const
|
|
871
|
+
export type Input_InputKind = (typeof Input_InputKind)[keyof typeof Input_InputKind]
|
|
872
|
+
|
|
873
|
+
/** sui.rpc.v2.Input.Mutability */
|
|
874
|
+
export const Input_Mutability = {
|
|
875
|
+
MUTABILITY_UNKNOWN: 0,
|
|
876
|
+
IMMUTABLE: 1,
|
|
877
|
+
MUTABLE: 2,
|
|
878
|
+
NON_EXCLUSIVE_WRITE: 3
|
|
879
|
+
} as const
|
|
880
|
+
export type Input_Mutability = (typeof Input_Mutability)[keyof typeof Input_Mutability]
|
|
881
|
+
|
|
882
|
+
/** sui.rpc.v2.FundsWithdrawal */
|
|
883
|
+
export interface FundsWithdrawal {
|
|
884
|
+
readonly amount?: bigint
|
|
885
|
+
readonly coin_type?: string
|
|
886
|
+
readonly source?: FundsWithdrawal_Source
|
|
887
|
+
readonly funder?: string
|
|
888
|
+
readonly allowance?: string
|
|
889
|
+
readonly seized_from?: string
|
|
890
|
+
readonly seize_auth?: string
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
/** sui.rpc.v2.FundsWithdrawal.Source */
|
|
894
|
+
export const FundsWithdrawal_Source = {
|
|
895
|
+
SOURCE_UNKNOWN: 0,
|
|
896
|
+
SENDER: 1,
|
|
897
|
+
SPONSOR: 2,
|
|
898
|
+
SENDER_ALLOWANCE: 3,
|
|
899
|
+
FROZEN_ADDRESS: 4
|
|
900
|
+
} as const
|
|
901
|
+
export type FundsWithdrawal_Source = (typeof FundsWithdrawal_Source)[keyof typeof FundsWithdrawal_Source]
|
|
902
|
+
|
|
903
|
+
/** sui.rpc.v2.Transaction */
|
|
904
|
+
export interface Transaction {
|
|
905
|
+
readonly bcs?: Bcs
|
|
906
|
+
readonly digest?: string
|
|
907
|
+
readonly version?: number
|
|
908
|
+
readonly kind?: TransactionKind
|
|
909
|
+
readonly sender?: string
|
|
910
|
+
readonly gas_payment?: GasPayment
|
|
911
|
+
readonly expiration?: TransactionExpiration
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
/** sui.rpc.v2.GasPayment */
|
|
915
|
+
export interface GasPayment {
|
|
916
|
+
readonly objects?: ReadonlyArray<ObjectReference>
|
|
917
|
+
readonly owner?: string
|
|
918
|
+
readonly price?: bigint
|
|
919
|
+
readonly budget?: bigint
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/** sui.rpc.v2.TransactionExpiration */
|
|
923
|
+
export interface TransactionExpiration {
|
|
924
|
+
readonly kind?: TransactionExpiration_TransactionExpirationKind
|
|
925
|
+
readonly epoch?: bigint
|
|
926
|
+
readonly min_epoch?: bigint
|
|
927
|
+
readonly min_timestamp?: Timestamp
|
|
928
|
+
readonly max_timestamp?: Timestamp
|
|
929
|
+
readonly chain?: string
|
|
930
|
+
readonly nonce?: number
|
|
931
|
+
readonly allowed_proposers?: AllowedProposers
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/** sui.rpc.v2.TransactionExpiration.TransactionExpirationKind */
|
|
935
|
+
export const TransactionExpiration_TransactionExpirationKind = {
|
|
936
|
+
TRANSACTION_EXPIRATION_KIND_UNKNOWN: 0,
|
|
937
|
+
NONE: 1,
|
|
938
|
+
EPOCH: 2,
|
|
939
|
+
VALID_DURING: 3,
|
|
940
|
+
VALIDITY: 4
|
|
941
|
+
} as const
|
|
942
|
+
export type TransactionExpiration_TransactionExpirationKind = (typeof TransactionExpiration_TransactionExpirationKind)[keyof typeof TransactionExpiration_TransactionExpirationKind]
|
|
943
|
+
|
|
944
|
+
/** sui.rpc.v2.AllowedProposers */
|
|
945
|
+
export interface AllowedProposers {
|
|
946
|
+
readonly epoch?: bigint
|
|
947
|
+
readonly proposers?: ReadonlyArray<number>
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/** sui.rpc.v2.TransactionKind */
|
|
951
|
+
export interface TransactionKind {
|
|
952
|
+
readonly kind?: TransactionKind_Kind
|
|
953
|
+
readonly data?:
|
|
954
|
+
| { readonly _tag: "programmable_transaction"; readonly value: ProgrammableTransaction }
|
|
955
|
+
| { readonly _tag: "change_epoch"; readonly value: ChangeEpoch }
|
|
956
|
+
| { readonly _tag: "genesis"; readonly value: GenesisTransaction }
|
|
957
|
+
| { readonly _tag: "consensus_commit_prologue"; readonly value: ConsensusCommitPrologue }
|
|
958
|
+
| { readonly _tag: "authenticator_state_update"; readonly value: AuthenticatorStateUpdate }
|
|
959
|
+
| { readonly _tag: "end_of_epoch"; readonly value: EndOfEpochTransaction }
|
|
960
|
+
| { readonly _tag: "randomness_state_update"; readonly value: RandomnessStateUpdate }
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
/** sui.rpc.v2.TransactionKind.Kind */
|
|
964
|
+
export const TransactionKind_Kind = {
|
|
965
|
+
KIND_UNKNOWN: 0,
|
|
966
|
+
PROGRAMMABLE_TRANSACTION: 1,
|
|
967
|
+
CHANGE_EPOCH: 2,
|
|
968
|
+
GENESIS: 3,
|
|
969
|
+
CONSENSUS_COMMIT_PROLOGUE_V1: 4,
|
|
970
|
+
AUTHENTICATOR_STATE_UPDATE: 5,
|
|
971
|
+
END_OF_EPOCH: 6,
|
|
972
|
+
RANDOMNESS_STATE_UPDATE: 7,
|
|
973
|
+
CONSENSUS_COMMIT_PROLOGUE_V2: 8,
|
|
974
|
+
CONSENSUS_COMMIT_PROLOGUE_V3: 9,
|
|
975
|
+
CONSENSUS_COMMIT_PROLOGUE_V4: 10,
|
|
976
|
+
PROGRAMMABLE_SYSTEM_TRANSACTION: 11
|
|
977
|
+
} as const
|
|
978
|
+
export type TransactionKind_Kind = (typeof TransactionKind_Kind)[keyof typeof TransactionKind_Kind]
|
|
979
|
+
|
|
980
|
+
/** sui.rpc.v2.ProgrammableTransaction */
|
|
981
|
+
export interface ProgrammableTransaction {
|
|
982
|
+
readonly inputs?: ReadonlyArray<Input>
|
|
983
|
+
readonly commands?: ReadonlyArray<Command>
|
|
984
|
+
}
|
|
985
|
+
|
|
986
|
+
/** sui.rpc.v2.Command */
|
|
987
|
+
export interface Command {
|
|
988
|
+
readonly command?:
|
|
989
|
+
| { readonly _tag: "move_call"; readonly value: MoveCall }
|
|
990
|
+
| { readonly _tag: "transfer_objects"; readonly value: TransferObjects }
|
|
991
|
+
| { readonly _tag: "split_coins"; readonly value: SplitCoins }
|
|
992
|
+
| { readonly _tag: "merge_coins"; readonly value: MergeCoins }
|
|
993
|
+
| { readonly _tag: "publish"; readonly value: Publish }
|
|
994
|
+
| { readonly _tag: "make_move_vector"; readonly value: MakeMoveVector }
|
|
995
|
+
| { readonly _tag: "upgrade"; readonly value: Upgrade }
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
/** sui.rpc.v2.MoveCall */
|
|
999
|
+
export interface MoveCall {
|
|
1000
|
+
readonly package?: string
|
|
1001
|
+
readonly module?: string
|
|
1002
|
+
readonly function?: string
|
|
1003
|
+
readonly type_arguments?: ReadonlyArray<string>
|
|
1004
|
+
readonly arguments?: ReadonlyArray<Argument>
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
/** sui.rpc.v2.TransferObjects */
|
|
1008
|
+
export interface TransferObjects {
|
|
1009
|
+
readonly objects?: ReadonlyArray<Argument>
|
|
1010
|
+
readonly address?: Argument
|
|
1011
|
+
}
|
|
1012
|
+
|
|
1013
|
+
/** sui.rpc.v2.SplitCoins */
|
|
1014
|
+
export interface SplitCoins {
|
|
1015
|
+
readonly coin?: Argument
|
|
1016
|
+
readonly amounts?: ReadonlyArray<Argument>
|
|
1017
|
+
}
|
|
1018
|
+
|
|
1019
|
+
/** sui.rpc.v2.MergeCoins */
|
|
1020
|
+
export interface MergeCoins {
|
|
1021
|
+
readonly coin?: Argument
|
|
1022
|
+
readonly coins_to_merge?: ReadonlyArray<Argument>
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
/** sui.rpc.v2.Publish */
|
|
1026
|
+
export interface Publish {
|
|
1027
|
+
readonly modules?: ReadonlyArray<Uint8Array>
|
|
1028
|
+
readonly dependencies?: ReadonlyArray<string>
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
/** sui.rpc.v2.MakeMoveVector */
|
|
1032
|
+
export interface MakeMoveVector {
|
|
1033
|
+
readonly element_type?: string
|
|
1034
|
+
readonly elements?: ReadonlyArray<Argument>
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
/** sui.rpc.v2.Upgrade */
|
|
1038
|
+
export interface Upgrade {
|
|
1039
|
+
readonly modules?: ReadonlyArray<Uint8Array>
|
|
1040
|
+
readonly dependencies?: ReadonlyArray<string>
|
|
1041
|
+
readonly package?: string
|
|
1042
|
+
readonly ticket?: Argument
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/** sui.rpc.v2.RandomnessStateUpdate */
|
|
1046
|
+
export interface RandomnessStateUpdate {
|
|
1047
|
+
readonly epoch?: bigint
|
|
1048
|
+
readonly randomness_round?: bigint
|
|
1049
|
+
readonly random_bytes?: Uint8Array
|
|
1050
|
+
readonly randomness_object_initial_shared_version?: bigint
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
/** sui.rpc.v2.ChangeEpoch */
|
|
1054
|
+
export interface ChangeEpoch {
|
|
1055
|
+
readonly epoch?: bigint
|
|
1056
|
+
readonly protocol_version?: bigint
|
|
1057
|
+
readonly storage_charge?: bigint
|
|
1058
|
+
readonly computation_charge?: bigint
|
|
1059
|
+
readonly storage_rebate?: bigint
|
|
1060
|
+
readonly non_refundable_storage_fee?: bigint
|
|
1061
|
+
readonly epoch_start_timestamp?: Timestamp
|
|
1062
|
+
readonly system_packages?: ReadonlyArray<SystemPackage>
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
/** sui.rpc.v2.SystemPackage */
|
|
1066
|
+
export interface SystemPackage {
|
|
1067
|
+
readonly version?: bigint
|
|
1068
|
+
readonly modules?: ReadonlyArray<Uint8Array>
|
|
1069
|
+
readonly dependencies?: ReadonlyArray<string>
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
/** sui.rpc.v2.GenesisTransaction */
|
|
1073
|
+
export interface GenesisTransaction {
|
|
1074
|
+
readonly objects?: ReadonlyArray<ObjectMessage>
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
/** sui.rpc.v2.ConsensusCommitPrologue */
|
|
1078
|
+
export interface ConsensusCommitPrologue {
|
|
1079
|
+
readonly epoch?: bigint
|
|
1080
|
+
readonly round?: bigint
|
|
1081
|
+
readonly commit_timestamp?: Timestamp
|
|
1082
|
+
readonly consensus_commit_digest?: string
|
|
1083
|
+
readonly sub_dag_index?: bigint
|
|
1084
|
+
readonly consensus_determined_version_assignments?: ConsensusDeterminedVersionAssignments
|
|
1085
|
+
readonly additional_state_digest?: string
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/** sui.rpc.v2.VersionAssignment */
|
|
1089
|
+
export interface VersionAssignment {
|
|
1090
|
+
readonly object_id?: string
|
|
1091
|
+
readonly start_version?: bigint
|
|
1092
|
+
readonly version?: bigint
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
/** sui.rpc.v2.CanceledTransaction */
|
|
1096
|
+
export interface CanceledTransaction {
|
|
1097
|
+
readonly digest?: string
|
|
1098
|
+
readonly version_assignments?: ReadonlyArray<VersionAssignment>
|
|
1099
|
+
}
|
|
1100
|
+
|
|
1101
|
+
/** sui.rpc.v2.ConsensusDeterminedVersionAssignments */
|
|
1102
|
+
export interface ConsensusDeterminedVersionAssignments {
|
|
1103
|
+
readonly version?: number
|
|
1104
|
+
readonly canceled_transactions?: ReadonlyArray<CanceledTransaction>
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
/** sui.rpc.v2.AuthenticatorStateUpdate */
|
|
1108
|
+
export interface AuthenticatorStateUpdate {
|
|
1109
|
+
readonly epoch?: bigint
|
|
1110
|
+
readonly round?: bigint
|
|
1111
|
+
readonly new_active_jwks?: ReadonlyArray<ActiveJwk>
|
|
1112
|
+
readonly authenticator_object_initial_shared_version?: bigint
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/** sui.rpc.v2.ActiveJwk */
|
|
1116
|
+
export interface ActiveJwk {
|
|
1117
|
+
readonly id?: JwkId
|
|
1118
|
+
readonly jwk?: Jwk
|
|
1119
|
+
readonly epoch?: bigint
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1122
|
+
/** sui.rpc.v2.EndOfEpochTransaction */
|
|
1123
|
+
export interface EndOfEpochTransaction {
|
|
1124
|
+
readonly transactions?: ReadonlyArray<EndOfEpochTransactionKind>
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
/** sui.rpc.v2.EndOfEpochTransactionKind */
|
|
1128
|
+
export interface EndOfEpochTransactionKind {
|
|
1129
|
+
readonly kind?: EndOfEpochTransactionKind_Kind
|
|
1130
|
+
readonly data?:
|
|
1131
|
+
| { readonly _tag: "change_epoch"; readonly value: ChangeEpoch }
|
|
1132
|
+
| { readonly _tag: "authenticator_state_expire"; readonly value: AuthenticatorStateExpire }
|
|
1133
|
+
| { readonly _tag: "execution_time_observations"; readonly value: ExecutionTimeObservations }
|
|
1134
|
+
| { readonly _tag: "bridge_chain_id"; readonly value: string }
|
|
1135
|
+
| { readonly _tag: "bridge_object_version"; readonly value: bigint }
|
|
1136
|
+
| { readonly _tag: "storage_cost"; readonly value: bigint }
|
|
1137
|
+
}
|
|
1138
|
+
|
|
1139
|
+
/** sui.rpc.v2.EndOfEpochTransactionKind.Kind */
|
|
1140
|
+
export const EndOfEpochTransactionKind_Kind = {
|
|
1141
|
+
KIND_UNKNOWN: 0,
|
|
1142
|
+
CHANGE_EPOCH: 1,
|
|
1143
|
+
AUTHENTICATOR_STATE_CREATE: 2,
|
|
1144
|
+
AUTHENTICATOR_STATE_EXPIRE: 3,
|
|
1145
|
+
RANDOMNESS_STATE_CREATE: 4,
|
|
1146
|
+
DENY_LIST_STATE_CREATE: 5,
|
|
1147
|
+
BRIDGE_STATE_CREATE: 6,
|
|
1148
|
+
BRIDGE_COMMITTEE_INIT: 7,
|
|
1149
|
+
STORE_EXECUTION_TIME_OBSERVATIONS: 8,
|
|
1150
|
+
ACCUMULATOR_ROOT_CREATE: 9,
|
|
1151
|
+
COIN_REGISTRY_CREATE: 10,
|
|
1152
|
+
DISPLAY_REGISTRY_CREATE: 11,
|
|
1153
|
+
ADDRESS_ALIAS_STATE_CREATE: 12,
|
|
1154
|
+
WRITE_ACCUMULATOR_STORAGE_COST: 13,
|
|
1155
|
+
FORWARDING_ADDRESS_REGISTRY_CREATE: 14,
|
|
1156
|
+
FREEZE_LIST_CREATE: 15
|
|
1157
|
+
} as const
|
|
1158
|
+
export type EndOfEpochTransactionKind_Kind = (typeof EndOfEpochTransactionKind_Kind)[keyof typeof EndOfEpochTransactionKind_Kind]
|
|
1159
|
+
|
|
1160
|
+
/** sui.rpc.v2.AuthenticatorStateExpire */
|
|
1161
|
+
export interface AuthenticatorStateExpire {
|
|
1162
|
+
readonly min_epoch?: bigint
|
|
1163
|
+
readonly authenticator_object_initial_shared_version?: bigint
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
/** sui.rpc.v2.ExecutionTimeObservations */
|
|
1167
|
+
export interface ExecutionTimeObservations {
|
|
1168
|
+
readonly version?: number
|
|
1169
|
+
readonly observations?: ReadonlyArray<ExecutionTimeObservation>
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
/** sui.rpc.v2.ExecutionTimeObservation */
|
|
1173
|
+
export interface ExecutionTimeObservation {
|
|
1174
|
+
readonly kind?: ExecutionTimeObservation_ExecutionTimeObservationKind
|
|
1175
|
+
readonly move_entry_point?: MoveCall
|
|
1176
|
+
readonly validator_observations?: ReadonlyArray<ValidatorExecutionTimeObservation>
|
|
1177
|
+
}
|
|
1178
|
+
|
|
1179
|
+
/** sui.rpc.v2.ExecutionTimeObservation.ExecutionTimeObservationKind */
|
|
1180
|
+
export const ExecutionTimeObservation_ExecutionTimeObservationKind = {
|
|
1181
|
+
EXECUTION_TIME_OBSERVATION_KIND_UNKNOWN: 0,
|
|
1182
|
+
MOVE_ENTRY_POINT: 1,
|
|
1183
|
+
TRANSFER_OBJECTS: 2,
|
|
1184
|
+
SPLIT_COINS: 3,
|
|
1185
|
+
MERGE_COINS: 4,
|
|
1186
|
+
PUBLISH: 5,
|
|
1187
|
+
MAKE_MOVE_VECTOR: 6,
|
|
1188
|
+
UPGRADE: 7
|
|
1189
|
+
} as const
|
|
1190
|
+
export type ExecutionTimeObservation_ExecutionTimeObservationKind = (typeof ExecutionTimeObservation_ExecutionTimeObservationKind)[keyof typeof ExecutionTimeObservation_ExecutionTimeObservationKind]
|
|
1191
|
+
|
|
1192
|
+
/** sui.rpc.v2.ValidatorExecutionTimeObservation */
|
|
1193
|
+
export interface ValidatorExecutionTimeObservation {
|
|
1194
|
+
readonly validator?: Uint8Array
|
|
1195
|
+
readonly duration?: Duration
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/** sui.rpc.v2.ExecutedTransaction */
|
|
1199
|
+
export interface ExecutedTransaction {
|
|
1200
|
+
readonly digest?: string
|
|
1201
|
+
readonly transaction?: Transaction
|
|
1202
|
+
readonly signatures?: ReadonlyArray<UserSignature>
|
|
1203
|
+
readonly effects?: TransactionEffects
|
|
1204
|
+
readonly events?: TransactionEvents
|
|
1205
|
+
readonly checkpoint?: bigint
|
|
1206
|
+
readonly timestamp?: Timestamp
|
|
1207
|
+
readonly balance_changes?: ReadonlyArray<BalanceChange>
|
|
1208
|
+
readonly objects?: ObjectSet
|
|
1209
|
+
readonly transaction_index?: bigint
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
/** sui.rpc.v2.Checkpoint */
|
|
1213
|
+
export interface Checkpoint {
|
|
1214
|
+
readonly sequence_number?: bigint
|
|
1215
|
+
readonly digest?: string
|
|
1216
|
+
readonly summary?: CheckpointSummary
|
|
1217
|
+
readonly signature?: ValidatorAggregatedSignature
|
|
1218
|
+
readonly contents?: CheckpointContents
|
|
1219
|
+
readonly transactions?: ReadonlyArray<ExecutedTransaction>
|
|
1220
|
+
readonly objects?: ObjectSet
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
/** sui.rpc.v2.SystemState */
|
|
1224
|
+
export interface SystemState {
|
|
1225
|
+
readonly version?: bigint
|
|
1226
|
+
readonly epoch?: bigint
|
|
1227
|
+
readonly protocol_version?: bigint
|
|
1228
|
+
readonly validators?: ValidatorSet
|
|
1229
|
+
readonly storage_fund?: StorageFund
|
|
1230
|
+
readonly parameters?: SystemParameters
|
|
1231
|
+
readonly reference_gas_price?: bigint
|
|
1232
|
+
readonly validator_report_records?: ReadonlyArray<ValidatorReportRecord>
|
|
1233
|
+
readonly stake_subsidy?: StakeSubsidy
|
|
1234
|
+
readonly safe_mode?: boolean
|
|
1235
|
+
readonly safe_mode_storage_rewards?: bigint
|
|
1236
|
+
readonly safe_mode_computation_rewards?: bigint
|
|
1237
|
+
readonly safe_mode_storage_rebates?: bigint
|
|
1238
|
+
readonly safe_mode_non_refundable_storage_fee?: bigint
|
|
1239
|
+
readonly epoch_start_timestamp_ms?: bigint
|
|
1240
|
+
readonly extra_fields?: MoveTable
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
/** sui.rpc.v2.ValidatorReportRecord */
|
|
1244
|
+
export interface ValidatorReportRecord {
|
|
1245
|
+
readonly reported?: string
|
|
1246
|
+
readonly reporters?: ReadonlyArray<string>
|
|
1247
|
+
}
|
|
1248
|
+
|
|
1249
|
+
/** sui.rpc.v2.SystemParameters */
|
|
1250
|
+
export interface SystemParameters {
|
|
1251
|
+
readonly epoch_duration_ms?: bigint
|
|
1252
|
+
readonly stake_subsidy_start_epoch?: bigint
|
|
1253
|
+
readonly min_validator_count?: bigint
|
|
1254
|
+
readonly max_validator_count?: bigint
|
|
1255
|
+
readonly min_validator_joining_stake?: bigint
|
|
1256
|
+
readonly validator_low_stake_threshold?: bigint
|
|
1257
|
+
readonly validator_very_low_stake_threshold?: bigint
|
|
1258
|
+
readonly validator_low_stake_grace_period?: bigint
|
|
1259
|
+
readonly extra_fields?: MoveTable
|
|
1260
|
+
}
|
|
1261
|
+
|
|
1262
|
+
/** sui.rpc.v2.MoveTable */
|
|
1263
|
+
export interface MoveTable {
|
|
1264
|
+
readonly id?: string
|
|
1265
|
+
readonly size?: bigint
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/** sui.rpc.v2.StakeSubsidy */
|
|
1269
|
+
export interface StakeSubsidy {
|
|
1270
|
+
readonly balance?: bigint
|
|
1271
|
+
readonly distribution_counter?: bigint
|
|
1272
|
+
readonly current_distribution_amount?: bigint
|
|
1273
|
+
readonly stake_subsidy_period_length?: bigint
|
|
1274
|
+
readonly stake_subsidy_decrease_rate?: number
|
|
1275
|
+
readonly extra_fields?: MoveTable
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
/** sui.rpc.v2.StorageFund */
|
|
1279
|
+
export interface StorageFund {
|
|
1280
|
+
readonly total_object_storage_rebates?: bigint
|
|
1281
|
+
readonly non_refundable_balance?: bigint
|
|
1282
|
+
}
|
|
1283
|
+
|
|
1284
|
+
/** sui.rpc.v2.ValidatorSet */
|
|
1285
|
+
export interface ValidatorSet {
|
|
1286
|
+
readonly total_stake?: bigint
|
|
1287
|
+
readonly active_validators?: ReadonlyArray<Validator>
|
|
1288
|
+
readonly pending_active_validators?: MoveTable
|
|
1289
|
+
readonly pending_removals?: ReadonlyArray<bigint>
|
|
1290
|
+
readonly staking_pool_mappings?: MoveTable
|
|
1291
|
+
readonly inactive_validators?: MoveTable
|
|
1292
|
+
readonly validator_candidates?: MoveTable
|
|
1293
|
+
readonly at_risk_validators?: Readonly<Record<string, bigint>>
|
|
1294
|
+
readonly extra_fields?: MoveTable
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
/** sui.rpc.v2.Validator */
|
|
1298
|
+
export interface Validator {
|
|
1299
|
+
readonly name?: string
|
|
1300
|
+
readonly address?: string
|
|
1301
|
+
readonly description?: string
|
|
1302
|
+
readonly image_url?: string
|
|
1303
|
+
readonly project_url?: string
|
|
1304
|
+
readonly protocol_public_key?: Uint8Array
|
|
1305
|
+
readonly proof_of_possession?: Uint8Array
|
|
1306
|
+
readonly network_public_key?: Uint8Array
|
|
1307
|
+
readonly worker_public_key?: Uint8Array
|
|
1308
|
+
readonly network_address?: string
|
|
1309
|
+
readonly p2p_address?: string
|
|
1310
|
+
readonly primary_address?: string
|
|
1311
|
+
readonly worker_address?: string
|
|
1312
|
+
readonly next_epoch_protocol_public_key?: Uint8Array
|
|
1313
|
+
readonly next_epoch_proof_of_possession?: Uint8Array
|
|
1314
|
+
readonly next_epoch_network_public_key?: Uint8Array
|
|
1315
|
+
readonly next_epoch_worker_public_key?: Uint8Array
|
|
1316
|
+
readonly next_epoch_network_address?: string
|
|
1317
|
+
readonly next_epoch_p2p_address?: string
|
|
1318
|
+
readonly next_epoch_primary_address?: string
|
|
1319
|
+
readonly next_epoch_worker_address?: string
|
|
1320
|
+
readonly metadata_extra_fields?: MoveTable
|
|
1321
|
+
readonly voting_power?: bigint
|
|
1322
|
+
readonly operation_cap_id?: string
|
|
1323
|
+
readonly gas_price?: bigint
|
|
1324
|
+
readonly staking_pool?: StakingPool
|
|
1325
|
+
readonly commission_rate?: bigint
|
|
1326
|
+
readonly next_epoch_stake?: bigint
|
|
1327
|
+
readonly next_epoch_gas_price?: bigint
|
|
1328
|
+
readonly next_epoch_commission_rate?: bigint
|
|
1329
|
+
readonly extra_fields?: MoveTable
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
/** sui.rpc.v2.StakingPool */
|
|
1333
|
+
export interface StakingPool {
|
|
1334
|
+
readonly id?: string
|
|
1335
|
+
readonly activation_epoch?: bigint
|
|
1336
|
+
readonly deactivation_epoch?: bigint
|
|
1337
|
+
readonly sui_balance?: bigint
|
|
1338
|
+
readonly rewards_pool?: bigint
|
|
1339
|
+
readonly pool_token_balance?: bigint
|
|
1340
|
+
readonly exchange_rates?: MoveTable
|
|
1341
|
+
readonly pending_stake?: bigint
|
|
1342
|
+
readonly pending_total_sui_withdraw?: bigint
|
|
1343
|
+
readonly pending_pool_token_withdraw?: bigint
|
|
1344
|
+
readonly extra_fields?: MoveTable
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
/** sui.rpc.v2.Epoch */
|
|
1348
|
+
export interface Epoch {
|
|
1349
|
+
readonly epoch?: bigint
|
|
1350
|
+
readonly committee?: ValidatorCommittee
|
|
1351
|
+
readonly system_state?: SystemState
|
|
1352
|
+
readonly first_checkpoint?: bigint
|
|
1353
|
+
readonly last_checkpoint?: bigint
|
|
1354
|
+
readonly start?: Timestamp
|
|
1355
|
+
readonly end?: Timestamp
|
|
1356
|
+
readonly reference_gas_price?: bigint
|
|
1357
|
+
readonly protocol_config?: ProtocolConfig
|
|
1358
|
+
readonly transaction_start_inclusive?: bigint
|
|
1359
|
+
readonly transaction_end_exclusive?: bigint
|
|
1360
|
+
readonly ended_in_safe_mode?: boolean
|
|
1361
|
+
readonly system_epoch_info?: SystemEpochInfo
|
|
1362
|
+
readonly epoch_commitments?: ReadonlyArray<CheckpointCommitment>
|
|
1363
|
+
}
|
|
1364
|
+
|
|
1365
|
+
/** sui.rpc.v2.SystemEpochInfo */
|
|
1366
|
+
export interface SystemEpochInfo {
|
|
1367
|
+
readonly total_stake?: bigint
|
|
1368
|
+
readonly storage_fund_reinvestment?: bigint
|
|
1369
|
+
readonly storage_charge?: bigint
|
|
1370
|
+
readonly storage_rebate?: bigint
|
|
1371
|
+
readonly storage_fund_balance?: bigint
|
|
1372
|
+
readonly stake_subsidy_amount?: bigint
|
|
1373
|
+
readonly total_gas_fees?: bigint
|
|
1374
|
+
readonly total_stake_rewards_distributed?: bigint
|
|
1375
|
+
readonly leftover_storage_fund_inflow?: bigint
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
/** sui.rpc.v2.TransactionFilter */
|
|
1379
|
+
export interface TransactionFilter {
|
|
1380
|
+
readonly terms?: ReadonlyArray<TransactionTerm>
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
/** sui.rpc.v2.TransactionTerm */
|
|
1384
|
+
export interface TransactionTerm {
|
|
1385
|
+
readonly literals?: ReadonlyArray<TransactionLiteral>
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
/** sui.rpc.v2.TransactionLiteral */
|
|
1389
|
+
export interface TransactionLiteral {
|
|
1390
|
+
readonly negated?: boolean
|
|
1391
|
+
readonly predicate?:
|
|
1392
|
+
| { readonly _tag: "sender"; readonly value: SenderFilter }
|
|
1393
|
+
| { readonly _tag: "affected_address"; readonly value: AffectedAddressFilter }
|
|
1394
|
+
| { readonly _tag: "affected_object"; readonly value: AffectedObjectFilter }
|
|
1395
|
+
| { readonly _tag: "move_call"; readonly value: MoveCallFilter }
|
|
1396
|
+
| { readonly _tag: "emit_module"; readonly value: EmitModuleFilter }
|
|
1397
|
+
| { readonly _tag: "event_type"; readonly value: EventTypeFilter }
|
|
1398
|
+
| { readonly _tag: "event_stream_head"; readonly value: EventStreamHeadFilter }
|
|
1399
|
+
| { readonly _tag: "package_write"; readonly value: PackageWriteFilter }
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/** sui.rpc.v2.EventFilter */
|
|
1403
|
+
export interface EventFilter {
|
|
1404
|
+
readonly terms?: ReadonlyArray<EventTerm>
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/** sui.rpc.v2.EventTerm */
|
|
1408
|
+
export interface EventTerm {
|
|
1409
|
+
readonly literals?: ReadonlyArray<EventLiteral>
|
|
1410
|
+
}
|
|
1411
|
+
|
|
1412
|
+
/** sui.rpc.v2.EventLiteral */
|
|
1413
|
+
export interface EventLiteral {
|
|
1414
|
+
readonly negated?: boolean
|
|
1415
|
+
readonly predicate?:
|
|
1416
|
+
| { readonly _tag: "sender"; readonly value: SenderFilter }
|
|
1417
|
+
| { readonly _tag: "emit_module"; readonly value: EmitModuleFilter }
|
|
1418
|
+
| { readonly _tag: "event_type"; readonly value: EventTypeFilter }
|
|
1419
|
+
| { readonly _tag: "event_stream_head"; readonly value: EventStreamHeadFilter }
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/** sui.rpc.v2.SenderFilter */
|
|
1423
|
+
export interface SenderFilter {
|
|
1424
|
+
readonly address?: string
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
/** sui.rpc.v2.AffectedAddressFilter */
|
|
1428
|
+
export interface AffectedAddressFilter {
|
|
1429
|
+
readonly address?: string
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
/** sui.rpc.v2.AffectedObjectFilter */
|
|
1433
|
+
export interface AffectedObjectFilter {
|
|
1434
|
+
readonly object_id?: string
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/** sui.rpc.v2.MoveCallFilter */
|
|
1438
|
+
export interface MoveCallFilter {
|
|
1439
|
+
readonly function?: string
|
|
1440
|
+
}
|
|
1441
|
+
|
|
1442
|
+
/** sui.rpc.v2.EmitModuleFilter */
|
|
1443
|
+
export interface EmitModuleFilter {
|
|
1444
|
+
readonly module?: string
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
/** sui.rpc.v2.EventTypeFilter */
|
|
1448
|
+
export interface EventTypeFilter {
|
|
1449
|
+
readonly event_type?: string
|
|
1450
|
+
}
|
|
1451
|
+
|
|
1452
|
+
/** sui.rpc.v2.EventStreamHeadFilter */
|
|
1453
|
+
export interface EventStreamHeadFilter {
|
|
1454
|
+
readonly stream_id?: string
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
/** sui.rpc.v2.PackageWriteFilter */
|
|
1458
|
+
export interface PackageWriteFilter {
|
|
1459
|
+
|
|
1460
|
+
}
|
|
1461
|
+
|
|
1462
|
+
/** sui.rpc.v2.ObjectFilter */
|
|
1463
|
+
export interface ObjectFilter {
|
|
1464
|
+
readonly terms?: ReadonlyArray<ObjectTerm>
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/** sui.rpc.v2.ObjectTerm */
|
|
1468
|
+
export interface ObjectTerm {
|
|
1469
|
+
readonly literals?: ReadonlyArray<ObjectLiteral>
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
/** sui.rpc.v2.ObjectLiteral */
|
|
1473
|
+
export interface ObjectLiteral {
|
|
1474
|
+
readonly negated?: boolean
|
|
1475
|
+
readonly predicate?:
|
|
1476
|
+
| { readonly _tag: "object_type"; readonly value: ObjectTypeFilter }
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
/** sui.rpc.v2.ObjectTypeFilter */
|
|
1480
|
+
export interface ObjectTypeFilter {
|
|
1481
|
+
readonly object_type?: string
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
/** sui.rpc.v2.DynamicFieldFilter */
|
|
1485
|
+
export interface DynamicFieldFilter {
|
|
1486
|
+
readonly terms?: ReadonlyArray<DynamicFieldTerm>
|
|
1487
|
+
}
|
|
1488
|
+
|
|
1489
|
+
/** sui.rpc.v2.DynamicFieldTerm */
|
|
1490
|
+
export interface DynamicFieldTerm {
|
|
1491
|
+
readonly literals?: ReadonlyArray<DynamicFieldLiteral>
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
/** sui.rpc.v2.DynamicFieldLiteral */
|
|
1495
|
+
export interface DynamicFieldLiteral {
|
|
1496
|
+
readonly negated?: boolean
|
|
1497
|
+
readonly predicate?:
|
|
1498
|
+
| { readonly _tag: "name_type"; readonly value: DynamicFieldNameTypeFilter }
|
|
1499
|
+
| { readonly _tag: "dynamic_object_field"; readonly value: DynamicObjectFieldFilter }
|
|
1500
|
+
}
|
|
1501
|
+
|
|
1502
|
+
/** sui.rpc.v2.DynamicFieldNameTypeFilter */
|
|
1503
|
+
export interface DynamicFieldNameTypeFilter {
|
|
1504
|
+
readonly name_type?: string
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/** sui.rpc.v2.DynamicObjectFieldFilter */
|
|
1508
|
+
export interface DynamicObjectFieldFilter {
|
|
1509
|
+
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
/** sui.rpc.v2.Ordering */
|
|
1513
|
+
export const Ordering = {
|
|
1514
|
+
ORDERING_ASCENDING: 0,
|
|
1515
|
+
ORDERING_DESCENDING: 1
|
|
1516
|
+
} as const
|
|
1517
|
+
export type Ordering = (typeof Ordering)[keyof typeof Ordering]
|
|
1518
|
+
|
|
1519
|
+
/** sui.rpc.v2.QueryEndReason */
|
|
1520
|
+
export const QueryEndReason = {
|
|
1521
|
+
QUERY_END_REASON_UNKNOWN: 0,
|
|
1522
|
+
QUERY_END_REASON_ITEM_LIMIT: 1,
|
|
1523
|
+
QUERY_END_REASON_SCAN_LIMIT: 2,
|
|
1524
|
+
QUERY_END_REASON_CHECKPOINT_BOUND: 3,
|
|
1525
|
+
QUERY_END_REASON_CURSOR_BOUND: 4,
|
|
1526
|
+
QUERY_END_REASON_LEDGER_TIP: 5
|
|
1527
|
+
} as const
|
|
1528
|
+
export type QueryEndReason = (typeof QueryEndReason)[keyof typeof QueryEndReason]
|
|
1529
|
+
|
|
1530
|
+
/** sui.rpc.v2.QueryOptions */
|
|
1531
|
+
export interface QueryOptions {
|
|
1532
|
+
readonly limit?: number
|
|
1533
|
+
readonly after?: Uint8Array
|
|
1534
|
+
readonly before?: Uint8Array
|
|
1535
|
+
readonly ordering?: Ordering
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/** sui.rpc.v2.LedgerPosition */
|
|
1539
|
+
export interface LedgerPosition {
|
|
1540
|
+
readonly checkpoint?: bigint
|
|
1541
|
+
readonly transaction_index?: bigint
|
|
1542
|
+
readonly event_index?: number
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/** sui.rpc.v2.Watermark */
|
|
1546
|
+
export interface Watermark {
|
|
1547
|
+
readonly cursor?: Uint8Array
|
|
1548
|
+
readonly checkpoint?: bigint
|
|
1549
|
+
readonly cursor_position?: LedgerPosition
|
|
1550
|
+
}
|
|
1551
|
+
|
|
1552
|
+
/** sui.rpc.v2.QueryEnd */
|
|
1553
|
+
export interface QueryEnd {
|
|
1554
|
+
readonly reason?: QueryEndReason
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
/** sui.rpc.v2.GetServiceInfoRequest */
|
|
1558
|
+
export interface GetServiceInfoRequest {
|
|
1559
|
+
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/** sui.rpc.v2.GetServiceInfoResponse */
|
|
1563
|
+
export interface GetServiceInfoResponse {
|
|
1564
|
+
readonly chain_id?: string
|
|
1565
|
+
readonly chain?: string
|
|
1566
|
+
readonly epoch?: bigint
|
|
1567
|
+
readonly checkpoint_height?: bigint
|
|
1568
|
+
readonly timestamp?: Timestamp
|
|
1569
|
+
readonly lowest_available_checkpoint?: bigint
|
|
1570
|
+
readonly lowest_available_checkpoint_objects?: bigint
|
|
1571
|
+
readonly server?: string
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
/** sui.rpc.v2.GetObjectRequest */
|
|
1575
|
+
export interface GetObjectRequest {
|
|
1576
|
+
readonly object_id?: string
|
|
1577
|
+
readonly version?: bigint
|
|
1578
|
+
readonly read_mask?: FieldMask
|
|
1579
|
+
readonly at_checkpoint?: bigint
|
|
1580
|
+
readonly max_version?: bigint
|
|
1581
|
+
}
|
|
1582
|
+
|
|
1583
|
+
/** sui.rpc.v2.GetObjectResponse */
|
|
1584
|
+
export interface GetObjectResponse {
|
|
1585
|
+
readonly object?: ObjectMessage
|
|
1586
|
+
}
|
|
1587
|
+
|
|
1588
|
+
/** sui.rpc.v2.BatchGetObjectsRequest */
|
|
1589
|
+
export interface BatchGetObjectsRequest {
|
|
1590
|
+
readonly requests?: ReadonlyArray<GetObjectRequest>
|
|
1591
|
+
readonly read_mask?: FieldMask
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
/** sui.rpc.v2.BatchGetObjectsResponse */
|
|
1595
|
+
export interface BatchGetObjectsResponse {
|
|
1596
|
+
readonly objects?: ReadonlyArray<GetObjectResult>
|
|
1597
|
+
}
|
|
1598
|
+
|
|
1599
|
+
/** sui.rpc.v2.GetObjectResult */
|
|
1600
|
+
export interface GetObjectResult {
|
|
1601
|
+
readonly result?:
|
|
1602
|
+
| { readonly _tag: "object"; readonly value: ObjectMessage }
|
|
1603
|
+
| { readonly _tag: "error"; readonly value: Status }
|
|
1604
|
+
}
|
|
1605
|
+
|
|
1606
|
+
/** sui.rpc.v2.ListObjectVersionsRequest */
|
|
1607
|
+
export interface ListObjectVersionsRequest {
|
|
1608
|
+
readonly object_id?: string
|
|
1609
|
+
readonly read_mask?: FieldMask
|
|
1610
|
+
readonly options?: QueryOptions
|
|
1611
|
+
readonly start_version?: bigint
|
|
1612
|
+
readonly end_version?: bigint
|
|
1613
|
+
readonly removal_read_mask?: FieldMask
|
|
1614
|
+
readonly start_checkpoint?: bigint
|
|
1615
|
+
readonly end_checkpoint?: bigint
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/** sui.rpc.v2.ListObjectVersionsResponse */
|
|
1619
|
+
export interface ListObjectVersionsResponse {
|
|
1620
|
+
readonly cursor?: Uint8Array
|
|
1621
|
+
readonly end?: QueryEnd
|
|
1622
|
+
readonly item?:
|
|
1623
|
+
| { readonly _tag: "object"; readonly value: ObjectMessage }
|
|
1624
|
+
| { readonly _tag: "removal"; readonly value: ObjectRemoval }
|
|
1625
|
+
}
|
|
1626
|
+
|
|
1627
|
+
/** sui.rpc.v2.ObjectRemoval */
|
|
1628
|
+
export interface ObjectRemoval {
|
|
1629
|
+
readonly version?: bigint
|
|
1630
|
+
readonly kind?: ObjectRemoval_Kind
|
|
1631
|
+
readonly transaction?: string
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
/** sui.rpc.v2.ObjectRemoval.Kind */
|
|
1635
|
+
export const ObjectRemoval_Kind = {
|
|
1636
|
+
KIND_UNKNOWN: 0,
|
|
1637
|
+
DELETED: 1,
|
|
1638
|
+
WRAPPED: 2
|
|
1639
|
+
} as const
|
|
1640
|
+
export type ObjectRemoval_Kind = (typeof ObjectRemoval_Kind)[keyof typeof ObjectRemoval_Kind]
|
|
1641
|
+
|
|
1642
|
+
/** sui.rpc.v2.GetTransactionRequest */
|
|
1643
|
+
export interface GetTransactionRequest {
|
|
1644
|
+
readonly digest?: string
|
|
1645
|
+
readonly read_mask?: FieldMask
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1648
|
+
/** sui.rpc.v2.GetTransactionResponse */
|
|
1649
|
+
export interface GetTransactionResponse {
|
|
1650
|
+
readonly transaction?: ExecutedTransaction
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
/** sui.rpc.v2.BatchGetTransactionsRequest */
|
|
1654
|
+
export interface BatchGetTransactionsRequest {
|
|
1655
|
+
readonly digests?: ReadonlyArray<string>
|
|
1656
|
+
readonly read_mask?: FieldMask
|
|
1657
|
+
}
|
|
1658
|
+
|
|
1659
|
+
/** sui.rpc.v2.BatchGetTransactionsResponse */
|
|
1660
|
+
export interface BatchGetTransactionsResponse {
|
|
1661
|
+
readonly transactions?: ReadonlyArray<GetTransactionResult>
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
/** sui.rpc.v2.GetTransactionResult */
|
|
1665
|
+
export interface GetTransactionResult {
|
|
1666
|
+
readonly result?:
|
|
1667
|
+
| { readonly _tag: "transaction"; readonly value: ExecutedTransaction }
|
|
1668
|
+
| { readonly _tag: "error"; readonly value: Status }
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
/** sui.rpc.v2.GetCheckpointRequest */
|
|
1672
|
+
export interface GetCheckpointRequest {
|
|
1673
|
+
readonly read_mask?: FieldMask
|
|
1674
|
+
readonly checkpoint_id?:
|
|
1675
|
+
| { readonly _tag: "sequence_number"; readonly value: bigint }
|
|
1676
|
+
| { readonly _tag: "digest"; readonly value: string }
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/** sui.rpc.v2.GetCheckpointResponse */
|
|
1680
|
+
export interface GetCheckpointResponse {
|
|
1681
|
+
readonly checkpoint?: Checkpoint
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
/** sui.rpc.v2.GetEpochRequest */
|
|
1685
|
+
export interface GetEpochRequest {
|
|
1686
|
+
readonly epoch?: bigint
|
|
1687
|
+
readonly read_mask?: FieldMask
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/** sui.rpc.v2.GetEpochResponse */
|
|
1691
|
+
export interface GetEpochResponse {
|
|
1692
|
+
readonly epoch?: Epoch
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/** sui.rpc.v2.GetProtocolConfigRequest */
|
|
1696
|
+
export interface GetProtocolConfigRequest {
|
|
1697
|
+
readonly version?: bigint
|
|
1698
|
+
readonly read_mask?: FieldMask
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
/** sui.rpc.v2.GetProtocolConfigResponse */
|
|
1702
|
+
export interface GetProtocolConfigResponse {
|
|
1703
|
+
readonly protocol_config?: ProtocolConfig
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/** sui.rpc.v2.ListCheckpointsRequest */
|
|
1707
|
+
export interface ListCheckpointsRequest {
|
|
1708
|
+
readonly read_mask?: FieldMask
|
|
1709
|
+
readonly start_checkpoint?: bigint
|
|
1710
|
+
readonly end_checkpoint?: bigint
|
|
1711
|
+
readonly filter?: TransactionFilter
|
|
1712
|
+
readonly options?: QueryOptions
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
/** sui.rpc.v2.ListCheckpointsResponse */
|
|
1716
|
+
export interface ListCheckpointsResponse {
|
|
1717
|
+
readonly checkpoint?: Checkpoint
|
|
1718
|
+
readonly watermark?: Watermark
|
|
1719
|
+
readonly end?: QueryEnd
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
/** sui.rpc.v2.ListTransactionsRequest */
|
|
1723
|
+
export interface ListTransactionsRequest {
|
|
1724
|
+
readonly read_mask?: FieldMask
|
|
1725
|
+
readonly start_checkpoint?: bigint
|
|
1726
|
+
readonly end_checkpoint?: bigint
|
|
1727
|
+
readonly filter?: TransactionFilter
|
|
1728
|
+
readonly options?: QueryOptions
|
|
1729
|
+
readonly start_transaction_index?: bigint
|
|
1730
|
+
readonly end_transaction_index?: bigint
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
/** sui.rpc.v2.ListTransactionsResponse */
|
|
1734
|
+
export interface ListTransactionsResponse {
|
|
1735
|
+
readonly transaction?: ExecutedTransaction
|
|
1736
|
+
readonly watermark?: Watermark
|
|
1737
|
+
readonly end?: QueryEnd
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
/** sui.rpc.v2.ListEventsRequest */
|
|
1741
|
+
export interface ListEventsRequest {
|
|
1742
|
+
readonly read_mask?: FieldMask
|
|
1743
|
+
readonly start_checkpoint?: bigint
|
|
1744
|
+
readonly end_checkpoint?: bigint
|
|
1745
|
+
readonly filter?: EventFilter
|
|
1746
|
+
readonly options?: QueryOptions
|
|
1747
|
+
readonly start_transaction_index?: bigint
|
|
1748
|
+
readonly start_event_index?: number
|
|
1749
|
+
readonly end_transaction_index?: bigint
|
|
1750
|
+
readonly end_event_index?: number
|
|
1751
|
+
}
|
|
1752
|
+
|
|
1753
|
+
/** sui.rpc.v2.ListEventsResponse */
|
|
1754
|
+
export interface ListEventsResponse {
|
|
1755
|
+
readonly event?: Event
|
|
1756
|
+
readonly watermark?: Watermark
|
|
1757
|
+
readonly end?: QueryEnd
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
/** sui.rpc.v2.LookupNameRequest */
|
|
1761
|
+
export interface LookupNameRequest {
|
|
1762
|
+
readonly name?: string
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
/** sui.rpc.v2.LookupNameResponse */
|
|
1766
|
+
export interface LookupNameResponse {
|
|
1767
|
+
readonly record?: NameRecord
|
|
1768
|
+
}
|
|
1769
|
+
|
|
1770
|
+
/** sui.rpc.v2.ReverseLookupNameRequest */
|
|
1771
|
+
export interface ReverseLookupNameRequest {
|
|
1772
|
+
readonly address?: string
|
|
1773
|
+
}
|
|
1774
|
+
|
|
1775
|
+
/** sui.rpc.v2.ReverseLookupNameResponse */
|
|
1776
|
+
export interface ReverseLookupNameResponse {
|
|
1777
|
+
readonly record?: NameRecord
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
/** sui.rpc.v2.NameRecord */
|
|
1781
|
+
export interface NameRecord {
|
|
1782
|
+
readonly id?: string
|
|
1783
|
+
readonly name?: string
|
|
1784
|
+
readonly registration_nft_id?: string
|
|
1785
|
+
readonly expiration_timestamp?: Timestamp
|
|
1786
|
+
readonly target_address?: string
|
|
1787
|
+
readonly data?: Readonly<Record<string, string>>
|
|
1788
|
+
}
|
|
1789
|
+
|
|
1790
|
+
/** sui.rpc.v2.GetPackageRequest */
|
|
1791
|
+
export interface GetPackageRequest {
|
|
1792
|
+
readonly package_id?: string
|
|
1793
|
+
readonly selector?:
|
|
1794
|
+
| { readonly _tag: "version"; readonly value: bigint }
|
|
1795
|
+
| { readonly _tag: "at_checkpoint"; readonly value: bigint }
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/** sui.rpc.v2.GetPackageResponse */
|
|
1799
|
+
export interface GetPackageResponse {
|
|
1800
|
+
readonly package?: Package
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1803
|
+
/** sui.rpc.v2.GetDatatypeRequest */
|
|
1804
|
+
export interface GetDatatypeRequest {
|
|
1805
|
+
readonly package_id?: string
|
|
1806
|
+
readonly module_name?: string
|
|
1807
|
+
readonly name?: string
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/** sui.rpc.v2.GetDatatypeResponse */
|
|
1811
|
+
export interface GetDatatypeResponse {
|
|
1812
|
+
readonly datatype?: DatatypeDescriptor
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
/** sui.rpc.v2.GetFunctionRequest */
|
|
1816
|
+
export interface GetFunctionRequest {
|
|
1817
|
+
readonly package_id?: string
|
|
1818
|
+
readonly module_name?: string
|
|
1819
|
+
readonly name?: string
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
/** sui.rpc.v2.GetFunctionResponse */
|
|
1823
|
+
export interface GetFunctionResponse {
|
|
1824
|
+
readonly function?: FunctionDescriptor
|
|
1825
|
+
}
|
|
1826
|
+
|
|
1827
|
+
/** sui.rpc.v2.ListPackageVersionsRequest */
|
|
1828
|
+
export interface ListPackageVersionsRequest {
|
|
1829
|
+
readonly package_id?: string
|
|
1830
|
+
readonly page_size?: number
|
|
1831
|
+
readonly page_token?: Uint8Array
|
|
1832
|
+
readonly options?: QueryOptions
|
|
1833
|
+
readonly start_version?: bigint
|
|
1834
|
+
readonly end_version?: bigint
|
|
1835
|
+
readonly start_checkpoint?: bigint
|
|
1836
|
+
readonly end_checkpoint?: bigint
|
|
1837
|
+
}
|
|
1838
|
+
|
|
1839
|
+
/** sui.rpc.v2.ListPackageVersionsResponse */
|
|
1840
|
+
export interface ListPackageVersionsResponse {
|
|
1841
|
+
readonly versions?: ReadonlyArray<PackageVersion>
|
|
1842
|
+
readonly next_page_token?: Uint8Array
|
|
1843
|
+
readonly end?: QueryEnd
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
/** sui.rpc.v2.ListSystemPackagesRequest */
|
|
1847
|
+
export interface ListSystemPackagesRequest {
|
|
1848
|
+
readonly at_checkpoint?: bigint
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
/** sui.rpc.v2.ListSystemPackagesResponse */
|
|
1852
|
+
export interface ListSystemPackagesResponse {
|
|
1853
|
+
readonly system_packages?: ReadonlyArray<PackageVersion>
|
|
1854
|
+
}
|
|
1855
|
+
|
|
1856
|
+
/** sui.rpc.v2.PackageVersion */
|
|
1857
|
+
export interface PackageVersion {
|
|
1858
|
+
readonly package_id?: string
|
|
1859
|
+
readonly version?: bigint
|
|
1860
|
+
readonly checkpoint?: bigint
|
|
1861
|
+
readonly cursor?: Uint8Array
|
|
1862
|
+
readonly original_id?: string
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
/** sui.rpc.v2.GetCoinInfoRequest */
|
|
1866
|
+
export interface GetCoinInfoRequest {
|
|
1867
|
+
readonly coin_type?: string
|
|
1868
|
+
}
|
|
1869
|
+
|
|
1870
|
+
/** sui.rpc.v2.GetCoinInfoResponse */
|
|
1871
|
+
export interface GetCoinInfoResponse {
|
|
1872
|
+
readonly coin_type?: string
|
|
1873
|
+
readonly metadata?: CoinMetadata
|
|
1874
|
+
readonly treasury?: CoinTreasury
|
|
1875
|
+
readonly regulated_metadata?: RegulatedCoinMetadata
|
|
1876
|
+
}
|
|
1877
|
+
|
|
1878
|
+
/** sui.rpc.v2.CoinMetadata */
|
|
1879
|
+
export interface CoinMetadata {
|
|
1880
|
+
readonly id?: string
|
|
1881
|
+
readonly decimals?: number
|
|
1882
|
+
readonly name?: string
|
|
1883
|
+
readonly symbol?: string
|
|
1884
|
+
readonly description?: string
|
|
1885
|
+
readonly icon_url?: string
|
|
1886
|
+
readonly metadata_cap_id?: string
|
|
1887
|
+
readonly metadata_cap_state?: CoinMetadata_MetadataCapState
|
|
1888
|
+
}
|
|
1889
|
+
|
|
1890
|
+
/** sui.rpc.v2.CoinMetadata.MetadataCapState */
|
|
1891
|
+
export const CoinMetadata_MetadataCapState = {
|
|
1892
|
+
METADATA_CAP_STATE_UNKNOWN: 0,
|
|
1893
|
+
CLAIMED: 1,
|
|
1894
|
+
UNCLAIMED: 2,
|
|
1895
|
+
DELETED: 3
|
|
1896
|
+
} as const
|
|
1897
|
+
export type CoinMetadata_MetadataCapState = (typeof CoinMetadata_MetadataCapState)[keyof typeof CoinMetadata_MetadataCapState]
|
|
1898
|
+
|
|
1899
|
+
/** sui.rpc.v2.CoinTreasury */
|
|
1900
|
+
export interface CoinTreasury {
|
|
1901
|
+
readonly id?: string
|
|
1902
|
+
readonly total_supply?: bigint
|
|
1903
|
+
readonly supply_state?: CoinTreasury_SupplyState
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/** sui.rpc.v2.CoinTreasury.SupplyState */
|
|
1907
|
+
export const CoinTreasury_SupplyState = {
|
|
1908
|
+
SUPPLY_STATE_UNKNOWN: 0,
|
|
1909
|
+
FIXED: 1,
|
|
1910
|
+
BURN_ONLY: 2
|
|
1911
|
+
} as const
|
|
1912
|
+
export type CoinTreasury_SupplyState = (typeof CoinTreasury_SupplyState)[keyof typeof CoinTreasury_SupplyState]
|
|
1913
|
+
|
|
1914
|
+
/** sui.rpc.v2.RegulatedCoinMetadata */
|
|
1915
|
+
export interface RegulatedCoinMetadata {
|
|
1916
|
+
readonly id?: string
|
|
1917
|
+
readonly coin_metadata_object?: string
|
|
1918
|
+
readonly deny_cap_object?: string
|
|
1919
|
+
readonly allow_global_pause?: boolean
|
|
1920
|
+
readonly variant?: number
|
|
1921
|
+
readonly coin_regulated_state?: RegulatedCoinMetadata_CoinRegulatedState
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/** sui.rpc.v2.RegulatedCoinMetadata.CoinRegulatedState */
|
|
1925
|
+
export const RegulatedCoinMetadata_CoinRegulatedState = {
|
|
1926
|
+
COIN_REGULATED_STATE_UNKNOWN: 0,
|
|
1927
|
+
REGULATED: 1,
|
|
1928
|
+
UNREGULATED: 2
|
|
1929
|
+
} as const
|
|
1930
|
+
export type RegulatedCoinMetadata_CoinRegulatedState = (typeof RegulatedCoinMetadata_CoinRegulatedState)[keyof typeof RegulatedCoinMetadata_CoinRegulatedState]
|
|
1931
|
+
|
|
1932
|
+
/** sui.rpc.v2.GetBalanceRequest */
|
|
1933
|
+
export interface GetBalanceRequest {
|
|
1934
|
+
readonly owner?: string
|
|
1935
|
+
readonly coin_type?: string
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
/** sui.rpc.v2.GetBalanceResponse */
|
|
1939
|
+
export interface GetBalanceResponse {
|
|
1940
|
+
readonly balance?: Balance
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
/** sui.rpc.v2.ListBalancesRequest */
|
|
1944
|
+
export interface ListBalancesRequest {
|
|
1945
|
+
readonly owner?: string
|
|
1946
|
+
readonly page_size?: number
|
|
1947
|
+
readonly page_token?: Uint8Array
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/** sui.rpc.v2.ListBalancesResponse */
|
|
1951
|
+
export interface ListBalancesResponse {
|
|
1952
|
+
readonly balances?: ReadonlyArray<Balance>
|
|
1953
|
+
readonly next_page_token?: Uint8Array
|
|
1954
|
+
}
|
|
1955
|
+
|
|
1956
|
+
/** sui.rpc.v2.Balance */
|
|
1957
|
+
export interface Balance {
|
|
1958
|
+
readonly coin_type?: string
|
|
1959
|
+
readonly balance?: bigint
|
|
1960
|
+
readonly address_balance?: bigint
|
|
1961
|
+
readonly coin_balance?: bigint
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
/** sui.rpc.v2.ListDynamicFieldsRequest */
|
|
1965
|
+
export interface ListDynamicFieldsRequest {
|
|
1966
|
+
readonly parent?: string
|
|
1967
|
+
readonly page_size?: number
|
|
1968
|
+
readonly page_token?: Uint8Array
|
|
1969
|
+
readonly read_mask?: FieldMask
|
|
1970
|
+
readonly filter?: DynamicFieldFilter
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
/** sui.rpc.v2.ListDynamicFieldsResponse */
|
|
1974
|
+
export interface ListDynamicFieldsResponse {
|
|
1975
|
+
readonly dynamic_fields?: ReadonlyArray<DynamicField>
|
|
1976
|
+
readonly next_page_token?: Uint8Array
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
/** sui.rpc.v2.DynamicField */
|
|
1980
|
+
export interface DynamicField {
|
|
1981
|
+
readonly kind?: DynamicField_DynamicFieldKind
|
|
1982
|
+
readonly parent?: string
|
|
1983
|
+
readonly field_id?: string
|
|
1984
|
+
readonly field_object?: ObjectMessage
|
|
1985
|
+
readonly name?: Bcs
|
|
1986
|
+
readonly value?: Bcs
|
|
1987
|
+
readonly value_type?: string
|
|
1988
|
+
readonly child_id?: string
|
|
1989
|
+
readonly child_object?: ObjectMessage
|
|
1990
|
+
}
|
|
1991
|
+
|
|
1992
|
+
/** sui.rpc.v2.DynamicField.DynamicFieldKind */
|
|
1993
|
+
export const DynamicField_DynamicFieldKind = {
|
|
1994
|
+
DYNAMIC_FIELD_KIND_UNKNOWN: 0,
|
|
1995
|
+
FIELD: 1,
|
|
1996
|
+
OBJECT: 2
|
|
1997
|
+
} as const
|
|
1998
|
+
export type DynamicField_DynamicFieldKind = (typeof DynamicField_DynamicFieldKind)[keyof typeof DynamicField_DynamicFieldKind]
|
|
1999
|
+
|
|
2000
|
+
/** sui.rpc.v2.ListOwnedObjectsRequest */
|
|
2001
|
+
export interface ListOwnedObjectsRequest {
|
|
2002
|
+
readonly owner?: string
|
|
2003
|
+
readonly page_size?: number
|
|
2004
|
+
readonly page_token?: Uint8Array
|
|
2005
|
+
readonly read_mask?: FieldMask
|
|
2006
|
+
readonly object_type?: string
|
|
2007
|
+
readonly filter?: ObjectFilter
|
|
2008
|
+
}
|
|
2009
|
+
|
|
2010
|
+
/** sui.rpc.v2.ListOwnedObjectsResponse */
|
|
2011
|
+
export interface ListOwnedObjectsResponse {
|
|
2012
|
+
readonly objects?: ReadonlyArray<ObjectMessage>
|
|
2013
|
+
readonly next_page_token?: Uint8Array
|
|
2014
|
+
}
|
|
2015
|
+
|
|
2016
|
+
/** sui.rpc.v2.ExecuteTransactionRequest */
|
|
2017
|
+
export interface ExecuteTransactionRequest {
|
|
2018
|
+
readonly transaction?: Transaction
|
|
2019
|
+
readonly signatures?: ReadonlyArray<UserSignature>
|
|
2020
|
+
readonly read_mask?: FieldMask
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
/** sui.rpc.v2.ExecuteTransactionResponse */
|
|
2024
|
+
export interface ExecuteTransactionResponse {
|
|
2025
|
+
readonly transaction?: ExecutedTransaction
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
/** sui.rpc.v2.SimulateTransactionRequest */
|
|
2029
|
+
export interface SimulateTransactionRequest {
|
|
2030
|
+
readonly transaction?: Transaction
|
|
2031
|
+
readonly read_mask?: FieldMask
|
|
2032
|
+
readonly checks?: SimulateTransactionRequest_TransactionChecks
|
|
2033
|
+
readonly do_gas_selection?: boolean
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
/** sui.rpc.v2.SimulateTransactionRequest.TransactionChecks */
|
|
2037
|
+
export const SimulateTransactionRequest_TransactionChecks = {
|
|
2038
|
+
ENABLED: 0,
|
|
2039
|
+
DISABLED: 1
|
|
2040
|
+
} as const
|
|
2041
|
+
export type SimulateTransactionRequest_TransactionChecks = (typeof SimulateTransactionRequest_TransactionChecks)[keyof typeof SimulateTransactionRequest_TransactionChecks]
|
|
2042
|
+
|
|
2043
|
+
/** sui.rpc.v2.SimulateTransactionResponse */
|
|
2044
|
+
export interface SimulateTransactionResponse {
|
|
2045
|
+
readonly transaction?: ExecutedTransaction
|
|
2046
|
+
readonly command_outputs?: ReadonlyArray<CommandResult>
|
|
2047
|
+
readonly suggested_gas_price?: bigint
|
|
2048
|
+
}
|
|
2049
|
+
|
|
2050
|
+
/** sui.rpc.v2.CommandResult */
|
|
2051
|
+
export interface CommandResult {
|
|
2052
|
+
readonly return_values?: ReadonlyArray<CommandOutput>
|
|
2053
|
+
readonly mutated_by_ref?: ReadonlyArray<CommandOutput>
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/** sui.rpc.v2.CommandOutput */
|
|
2057
|
+
export interface CommandOutput {
|
|
2058
|
+
readonly argument?: Argument
|
|
2059
|
+
readonly value?: Bcs
|
|
2060
|
+
readonly json?: Value
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/** sui.rpc.v2.ErrorReason */
|
|
2064
|
+
export const ErrorReason = {
|
|
2065
|
+
ERROR_REASON_UNKNOWN: 0,
|
|
2066
|
+
FIELD_INVALID: 1,
|
|
2067
|
+
FIELD_MISSING: 2,
|
|
2068
|
+
INSUFFICIENT_GAS_BALANCE: 3,
|
|
2069
|
+
TRANSACTION_EXECUTION_FAILED: 4,
|
|
2070
|
+
ABOVE_LATEST_AVAILABLE: 5,
|
|
2071
|
+
BELOW_EARLIEST_AVAILABLE: 6,
|
|
2072
|
+
OBJECT_REMOVED: 7,
|
|
2073
|
+
NOT_SERVED_HERE: 8,
|
|
2074
|
+
NOT_READY: 9,
|
|
2075
|
+
VERSION_NOT_RETAINED: 10
|
|
2076
|
+
} as const
|
|
2077
|
+
export type ErrorReason = (typeof ErrorReason)[keyof typeof ErrorReason]
|
|
2078
|
+
|
|
2079
|
+
/** sui.rpc.v2.VerifySignatureRequest */
|
|
2080
|
+
export interface VerifySignatureRequest {
|
|
2081
|
+
readonly message?: Bcs
|
|
2082
|
+
readonly signature?: UserSignature
|
|
2083
|
+
readonly address?: string
|
|
2084
|
+
readonly jwks?: ReadonlyArray<ActiveJwk>
|
|
2085
|
+
readonly check_address_aliases?: boolean
|
|
2086
|
+
}
|
|
2087
|
+
|
|
2088
|
+
/** sui.rpc.v2.VerifySignatureResponse */
|
|
2089
|
+
export interface VerifySignatureResponse {
|
|
2090
|
+
readonly is_valid?: boolean
|
|
2091
|
+
readonly reason?: string
|
|
2092
|
+
readonly address_aliases_checked?: boolean
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
/** sui.rpc.v2.SubscribeCheckpointsRequest */
|
|
2096
|
+
export interface SubscribeCheckpointsRequest {
|
|
2097
|
+
readonly read_mask?: FieldMask
|
|
2098
|
+
readonly filter?: TransactionFilter
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
/** sui.rpc.v2.SubscribeCheckpointsResponse */
|
|
2102
|
+
export interface SubscribeCheckpointsResponse {
|
|
2103
|
+
readonly cursor?: bigint
|
|
2104
|
+
readonly checkpoint?: Checkpoint
|
|
2105
|
+
}
|
|
2106
|
+
|
|
2107
|
+
/** sui.rpc.v2.SubscribeTransactionsRequest */
|
|
2108
|
+
export interface SubscribeTransactionsRequest {
|
|
2109
|
+
readonly read_mask?: FieldMask
|
|
2110
|
+
readonly filter?: TransactionFilter
|
|
2111
|
+
}
|
|
2112
|
+
|
|
2113
|
+
/** sui.rpc.v2.SubscribeTransactionsResponse */
|
|
2114
|
+
export interface SubscribeTransactionsResponse {
|
|
2115
|
+
readonly transaction?: ExecutedTransaction
|
|
2116
|
+
readonly watermark?: Watermark
|
|
2117
|
+
}
|
|
2118
|
+
|
|
2119
|
+
/** sui.rpc.v2.SubscribeEventsRequest */
|
|
2120
|
+
export interface SubscribeEventsRequest {
|
|
2121
|
+
readonly read_mask?: FieldMask
|
|
2122
|
+
readonly filter?: EventFilter
|
|
2123
|
+
}
|
|
2124
|
+
|
|
2125
|
+
/** sui.rpc.v2.SubscribeEventsResponse */
|
|
2126
|
+
export interface SubscribeEventsResponse {
|
|
2127
|
+
readonly event?: Event
|
|
2128
|
+
readonly watermark?: Watermark
|
|
2129
|
+
}
|
|
2130
|
+
|