wowok 1.8.2 → 2.1.9
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/README.md +4 -33
- package/dist/cjs/bcs/bcs.d.ts +1973 -0
- package/dist/cjs/bcs/bcs.js +327 -0
- package/dist/cjs/bcs/effects.d.ts +579 -0
- package/dist/cjs/bcs/effects.js +231 -0
- package/dist/cjs/bcs/index.d.ts +2589 -0
- package/dist/cjs/bcs/index.js +79 -0
- package/dist/cjs/bcs/pure.d.ts +22 -0
- package/dist/cjs/bcs/pure.js +62 -0
- package/dist/cjs/bcs/type-tag-serializer.d.ts +7 -0
- package/dist/cjs/bcs/type-tag-serializer.js +124 -0
- package/dist/cjs/bcs/types.d.ts +114 -0
- package/dist/cjs/bcs/types.js +26 -0
- package/dist/cjs/client/index.d.ts +5 -0
- package/dist/cjs/client/index.js +34 -0
- package/dist/cjs/client/network.d.ts +5 -0
- package/dist/cjs/client/network.js +43 -0
- package/dist/cjs/cryptography/index.d.ts +7 -0
- package/dist/cjs/cryptography/index.js +46 -0
- package/dist/cjs/cryptography/intent.d.ts +6 -0
- package/dist/cjs/cryptography/intent.js +34 -0
- package/dist/cjs/cryptography/keypair.d.ts +73 -0
- package/dist/cjs/cryptography/keypair.js +125 -0
- package/dist/cjs/cryptography/mnemonics.d.ts +27 -0
- package/dist/cjs/cryptography/mnemonics.js +50 -0
- package/dist/cjs/cryptography/publickey.d.ts +67 -0
- package/dist/cjs/cryptography/publickey.js +142 -0
- package/dist/cjs/cryptography/signature-scheme.d.ts +24 -0
- package/dist/cjs/cryptography/signature-scheme.js +47 -0
- package/dist/cjs/cryptography/signature.d.ts +62 -0
- package/dist/cjs/cryptography/signature.js +71 -0
- package/dist/cjs/experimental/cache.d.ts +12 -0
- package/dist/cjs/experimental/client.d.ts +12 -0
- package/dist/cjs/experimental/core.d.ts +33 -0
- package/dist/cjs/experimental/errors.d.ts +8 -0
- package/dist/cjs/experimental/index.d.ts +7 -0
- package/dist/cjs/experimental/persistent-storage.d.ts +134 -0
- package/dist/cjs/experimental/persistent-storage.test.d.ts +5 -0
- package/dist/cjs/experimental/transports/utils.d.ts +3 -0
- package/dist/cjs/experimental/types.d.ts +367 -0
- package/dist/cjs/faucet/faucet.d.ts +66 -0
- package/dist/cjs/faucet/faucet.js +138 -0
- package/dist/cjs/faucet/index.d.ts +1 -0
- package/dist/cjs/faucet/index.js +29 -0
- package/dist/cjs/graphql/client.js +98 -0
- package/dist/cjs/graphql/core.js +506 -0
- package/dist/cjs/graphql/generated/2024.1/tada-env.js +13141 -0
- package/dist/cjs/graphql/generated/2024.1/tsconfig.tada.js +11 -0
- package/dist/cjs/graphql/generated/2024.4/tada-env.js +13287 -0
- package/dist/cjs/graphql/generated/2024.4/tsconfig.tada.js +11 -0
- package/dist/cjs/graphql/generated/latest/tada-env.js +12925 -0
- package/dist/cjs/graphql/generated/latest/tsconfig.tada.js +11 -0
- package/dist/cjs/graphql/generated/queries.js +807 -0
- package/dist/cjs/graphql/index.js +25 -0
- package/dist/cjs/graphql/schemas/2024.1/index.js +28 -0
- package/dist/cjs/graphql/schemas/2024.4/index.js +28 -0
- package/dist/cjs/graphql/schemas/latest/index.js +28 -0
- package/dist/cjs/graphql/types.js +16 -0
- package/dist/cjs/grpc/client.d.ts +32 -0
- package/dist/cjs/grpc/client.js +64 -0
- package/dist/cjs/grpc/core.d.ts +28 -0
- package/dist/cjs/grpc/core.js +645 -0
- package/dist/cjs/grpc/index.d.ts +4 -0
- package/dist/cjs/grpc/index.js +26 -0
- package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +173 -0
- package/dist/cjs/grpc/proto/google/protobuf/any.js +138 -0
- package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +104 -0
- package/dist/cjs/grpc/proto/google/protobuf/duration.js +94 -0
- package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +25 -0
- package/dist/cjs/grpc/proto/google/protobuf/empty.js +30 -0
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +231 -0
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +77 -0
- package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +169 -0
- package/dist/cjs/grpc/proto/google/protobuf/struct.js +224 -0
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +145 -0
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +134 -0
- package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +525 -0
- package/dist/cjs/grpc/proto/google/rpc/error_details.js +317 -0
- package/dist/cjs/grpc/proto/google/rpc/status.d.ts +46 -0
- package/dist/cjs/grpc/proto/google/rpc/status.js +52 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.d.ts +66 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +70 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.d.ts +34 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js +52 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.d.ts +30 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js +45 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +68 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +77 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +74 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +84 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +195 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +170 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.d.ts +338 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +300 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.d.ts +62 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +87 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.d.ts +17 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js +29 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.d.ts +88 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +86 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +80 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +87 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.d.ts +843 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +519 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +41 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +63 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.d.ts +98 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +85 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.d.ts +70 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js +81 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +95 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +122 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.d.ts +420 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +368 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.d.ts +579 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +485 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +61 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +81 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.d.ts +229 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +241 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.d.ts +41 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js +55 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.d.ts +144 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js +141 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.d.ts +127 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +114 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.d.ts +34 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +53 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.d.ts +61 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +63 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.d.ts +30 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +61 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.d.ts +630 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +541 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +40 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js +33 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +35 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +50 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +79 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +90 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +71 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +88 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.d.ts +690 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +546 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +55 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +54 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.d.ts +57 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +65 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.d.ts +684 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +740 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.d.ts +1321 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +1005 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +41 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +49 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +184 -0
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +177 -0
- package/dist/cjs/index.d.ts +25 -0
- package/dist/cjs/index.js +93 -0
- package/dist/cjs/jsonRpc/client.d.ts +261 -0
- package/dist/cjs/jsonRpc/client.js +747 -0
- package/dist/cjs/jsonRpc/core.d.ts +87 -0
- package/dist/cjs/jsonRpc/core.js +638 -0
- package/dist/cjs/jsonRpc/errors.d.ts +12 -0
- package/dist/cjs/jsonRpc/errors.js +65 -0
- package/dist/cjs/jsonRpc/http-transport.d.ts +42 -0
- package/dist/cjs/jsonRpc/http-transport.js +121 -0
- package/dist/cjs/jsonRpc/index.d.ts +4 -0
- package/dist/cjs/jsonRpc/index.js +31 -0
- package/dist/cjs/jsonRpc/json-rpc-resolver.d.ts +4 -0
- package/dist/cjs/jsonRpc/json-rpc-resolver.js +321 -0
- package/dist/cjs/jsonRpc/rpc-websocket-client.d.ts +43 -0
- package/dist/cjs/jsonRpc/rpc-websocket-client.js +220 -0
- package/dist/cjs/jsonRpc/types/chain.d.ts +99 -0
- package/dist/cjs/jsonRpc/types/chain.js +16 -0
- package/dist/cjs/jsonRpc/types/changes.d.ts +19 -0
- package/dist/cjs/jsonRpc/types/changes.js +16 -0
- package/dist/cjs/jsonRpc/types/coins.d.ts +6 -0
- package/dist/cjs/jsonRpc/types/coins.js +16 -0
- package/dist/cjs/jsonRpc/types/common.d.ts +2 -0
- package/dist/cjs/jsonRpc/types/common.js +16 -0
- package/dist/cjs/jsonRpc/types/generated.d.ts +1492 -0
- package/dist/cjs/jsonRpc/types/generated.js +16 -0
- package/dist/cjs/jsonRpc/types/index.d.ts +6 -0
- package/dist/cjs/jsonRpc/types/index.js +16 -0
- package/dist/cjs/jsonRpc/types/params.d.ts +656 -0
- package/dist/cjs/jsonRpc/types/params.js +16 -0
- package/dist/cjs/keypairs/ed25519/ed25519-hd-key.d.ts +8 -0
- package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js +82 -0
- package/dist/cjs/keypairs/ed25519/index.d.ts +2 -0
- package/dist/cjs/keypairs/ed25519/index.js +27 -0
- package/dist/cjs/keypairs/ed25519/keypair.d.ts +74 -0
- package/dist/cjs/keypairs/ed25519/keypair.js +169 -0
- package/dist/cjs/keypairs/ed25519/publickey.d.ts +30 -0
- package/dist/cjs/keypairs/ed25519/publickey.js +90 -0
- package/dist/cjs/keypairs/index.d.ts +4 -0
- package/dist/cjs/keypairs/index.js +21 -0
- package/dist/cjs/keypairs/passkey/index.d.ts +3 -0
- package/dist/cjs/keypairs/passkey/index.js +28 -0
- package/dist/cjs/keypairs/passkey/keypair.d.ts +113 -0
- package/dist/cjs/keypairs/passkey/keypair.js +268 -0
- package/dist/cjs/keypairs/passkey/publickey.d.ts +72 -0
- package/dist/cjs/keypairs/passkey/publickey.js +175 -0
- package/dist/cjs/keypairs/passkey/types.d.ts +12 -0
- package/dist/cjs/keypairs/passkey/types.js +16 -0
- package/dist/cjs/keypairs/secp256k1/index.d.ts +2 -0
- package/dist/cjs/keypairs/secp256k1/index.js +27 -0
- package/dist/cjs/keypairs/secp256k1/keypair.d.ts +73 -0
- package/dist/cjs/keypairs/secp256k1/keypair.js +159 -0
- package/dist/cjs/keypairs/secp256k1/publickey.d.ts +30 -0
- package/dist/cjs/keypairs/secp256k1/publickey.js +95 -0
- package/dist/cjs/keypairs/secp256r1/index.d.ts +2 -0
- package/dist/cjs/keypairs/secp256r1/index.js +27 -0
- package/dist/cjs/keypairs/secp256r1/keypair.d.ts +73 -0
- package/dist/cjs/keypairs/secp256r1/keypair.js +155 -0
- package/dist/cjs/keypairs/secp256r1/publickey.d.ts +30 -0
- package/dist/cjs/keypairs/secp256r1/publickey.js +96 -0
- package/dist/cjs/multisig/index.d.ts +2 -0
- package/dist/cjs/multisig/index.js +27 -0
- package/dist/cjs/multisig/publickey.d.ts +79 -0
- package/dist/cjs/multisig/publickey.js +296 -0
- package/dist/cjs/multisig/signer.d.ts +20 -0
- package/dist/cjs/multisig/signer.js +114 -0
- package/dist/cjs/package.json +5 -0
- package/dist/cjs/transactions/Arguments.d.ts +57 -0
- package/dist/cjs/transactions/Arguments.js +36 -0
- package/dist/cjs/transactions/Commands.d.ts +57 -0
- package/dist/cjs/transactions/Commands.js +143 -0
- package/dist/cjs/transactions/Inputs.d.ts +22 -0
- package/dist/cjs/transactions/Inputs.js +87 -0
- package/dist/cjs/transactions/ObjectCache.d.ts +83 -0
- package/dist/cjs/transactions/ObjectCache.js +251 -0
- package/dist/cjs/transactions/Transaction.d.ts +710 -0
- package/dist/cjs/transactions/Transaction.js +742 -0
- package/dist/cjs/transactions/TransactionData.d.ts +73 -0
- package/dist/cjs/transactions/TransactionData.js +472 -0
- package/dist/cjs/transactions/__tests__/Transaction.test.d.ts +1 -0
- package/dist/cjs/transactions/__tests__/bcs.test.d.ts +1 -0
- package/dist/cjs/transactions/data/internal.d.ts +1010 -0
- package/dist/cjs/transactions/data/internal.js +230 -0
- package/dist/cjs/transactions/data/v1.d.ts +312 -0
- package/dist/cjs/transactions/data/v1.js +538 -0
- package/dist/cjs/transactions/data/v2.d.ts +153 -0
- package/dist/cjs/transactions/data/v2.js +124 -0
- package/dist/cjs/transactions/executor/caching.d.ts +31 -0
- package/dist/cjs/transactions/executor/caching.js +118 -0
- package/dist/cjs/transactions/executor/parallel.d.ts +37 -0
- package/dist/cjs/transactions/executor/parallel.js +395 -0
- package/dist/cjs/transactions/executor/queue.d.ts +11 -0
- package/dist/cjs/transactions/executor/queue.js +87 -0
- package/dist/cjs/transactions/executor/serial.d.ts +31 -0
- package/dist/cjs/transactions/executor/serial.js +136 -0
- package/dist/cjs/transactions/hash.d.ts +7 -0
- package/dist/cjs/transactions/hash.js +31 -0
- package/dist/cjs/transactions/index.d.ts +21 -0
- package/dist/cjs/transactions/index.js +50 -0
- package/dist/cjs/transactions/intents/CoinWithBalance.d.ts +9 -0
- package/dist/cjs/transactions/intents/CoinWithBalance.js +206 -0
- package/dist/cjs/transactions/object.d.ts +24 -0
- package/dist/cjs/transactions/object.js +116 -0
- package/dist/cjs/transactions/plugins/NamedPackagesPlugin.d.ts +31 -0
- package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js +37 -0
- package/dist/cjs/transactions/pure.d.ts +20 -0
- package/dist/cjs/transactions/pure.js +64 -0
- package/dist/cjs/transactions/resolve.d.ts +13 -0
- package/dist/cjs/transactions/resolve.js +103 -0
- package/dist/cjs/transactions/serializer.d.ts +7 -0
- package/dist/cjs/transactions/serializer.js +189 -0
- package/dist/cjs/transactions/utils.d.ts +10 -0
- package/dist/cjs/transactions/utils.js +143 -0
- package/dist/cjs/utils/constants.d.ts +17 -0
- package/dist/cjs/utils/constants.js +57 -0
- package/dist/cjs/utils/derived-objects.d.ts +5 -0
- package/dist/cjs/utils/derived-objects.js +33 -0
- package/dist/cjs/utils/dynamic-fields.d.ts +2 -0
- package/dist/cjs/utils/dynamic-fields.js +40 -0
- package/dist/cjs/utils/format.d.ts +2 -0
- package/dist/cjs/utils/format.js +35 -0
- package/dist/cjs/utils/index.d.ts +8 -0
- package/dist/cjs/utils/index.js +65 -0
- package/dist/cjs/utils/move-registry.d.ts +6 -0
- package/dist/cjs/utils/move-registry.js +44 -0
- package/dist/cjs/utils/sui-types.d.ts +26 -0
- package/dist/cjs/utils/sui-types.js +90 -0
- package/dist/cjs/utils/suins.d.ts +2 -0
- package/dist/cjs/utils/suins.js +56 -0
- package/dist/cjs/verify/index.d.ts +1 -0
- package/dist/cjs/verify/index.js +28 -0
- package/dist/cjs/verify/verify.d.ts +16 -0
- package/dist/cjs/verify/verify.js +125 -0
- package/dist/cjs/version.d.ts +2 -0
- package/dist/cjs/version.js +26 -0
- package/dist/cjs/w/call/allocation.d.ts +35 -0
- package/dist/cjs/w/call/allocation.js +439 -0
- package/dist/cjs/w/call/arb.d.ts +17 -0
- package/dist/cjs/w/call/arb.js +149 -0
- package/dist/cjs/w/call/arbitration.d.ts +106 -0
- package/dist/cjs/w/call/arbitration.js +1623 -0
- package/dist/cjs/w/call/base.d.ts +42 -0
- package/dist/cjs/w/call/base.js +363 -0
- package/dist/cjs/w/call/contact.d.ts +45 -0
- package/dist/cjs/w/call/contact.js +479 -0
- package/dist/cjs/w/call/demand.d.ts +79 -0
- package/dist/cjs/w/call/demand.js +872 -0
- package/dist/cjs/w/call/entity.d.ts +33 -0
- package/dist/cjs/w/call/entity.js +230 -0
- package/dist/cjs/w/call/guard-ins.d.ts +31 -0
- package/dist/cjs/w/call/guard-ins.js +4391 -0
- package/dist/cjs/w/call/guard.d.ts +254 -0
- package/dist/cjs/w/call/guard.js +1210 -0
- package/dist/cjs/w/call/index.d.ts +37 -0
- package/dist/cjs/w/call/index.js +71 -0
- package/dist/cjs/w/call/machine.d.ts +124 -0
- package/dist/cjs/w/call/machine.js +1486 -0
- package/dist/cjs/w/call/order.d.ts +73 -0
- package/dist/cjs/w/call/order.js +485 -0
- package/dist/cjs/w/call/passport.d.ts +24 -0
- package/dist/cjs/w/call/passport.js +281 -0
- package/dist/cjs/w/call/payment.d.ts +27 -0
- package/dist/cjs/w/call/payment.js +241 -0
- package/dist/cjs/w/call/permission.d.ts +222 -0
- package/dist/cjs/w/call/permission.js +1368 -0
- package/dist/cjs/w/call/personal.d.ts +51 -0
- package/dist/cjs/w/call/personal.js +184 -0
- package/dist/cjs/w/call/progress.d.ts +94 -0
- package/dist/cjs/w/call/progress.js +833 -0
- package/dist/cjs/w/call/proof.d.ts +27 -0
- package/dist/cjs/w/call/proof.js +124 -0
- package/dist/cjs/w/call/repository.d.ts +97 -0
- package/dist/cjs/w/call/repository.js +1324 -0
- package/dist/cjs/w/call/resource.d.ts +27 -0
- package/dist/cjs/w/call/resource.js +149 -0
- package/dist/cjs/w/call/reward.d.ts +52 -0
- package/dist/cjs/w/call/reward.js +879 -0
- package/dist/cjs/w/call/service.d.ts +184 -0
- package/dist/cjs/w/call/service.js +2468 -0
- package/dist/cjs/w/call/treasury.d.ts +77 -0
- package/dist/cjs/w/call/treasury.js +1192 -0
- package/dist/cjs/w/call/util.d.ts +12 -0
- package/dist/cjs/w/call/util.js +661 -0
- package/dist/cjs/w/common.d.ts +359 -0
- package/dist/cjs/w/common.js +625 -0
- package/dist/cjs/w/exception.d.ts +82 -0
- package/dist/cjs/w/exception.js +604 -0
- package/dist/cjs/w/index.d.ts +8 -0
- package/dist/cjs/w/index.js +25 -0
- package/dist/cjs/w/local/.eslintrc.js +15 -0
- package/dist/cjs/w/local/account.d.ts +134 -0
- package/dist/cjs/w/local/account.js +770 -0
- package/dist/cjs/w/local/cache.d.ts +35 -0
- package/dist/cjs/w/local/cache.js +181 -0
- package/dist/cjs/w/local/config.d.ts +15 -0
- package/dist/cjs/w/local/config.js +83 -0
- package/dist/cjs/w/local/index.d.ts +193 -0
- package/dist/cjs/w/local/index.js +322 -0
- package/dist/cjs/w/local/local.d.ts +93 -0
- package/dist/cjs/w/local/local.js +673 -0
- package/dist/cjs/w/local/storage.d.ts +61 -0
- package/dist/cjs/w/local/storage.js +219 -0
- package/dist/cjs/w/local/token.d.ts +22 -0
- package/dist/cjs/w/local/token.js +182 -0
- package/dist/cjs/w/local/util.d.ts +5 -0
- package/dist/cjs/w/local/util.js +57 -0
- package/dist/cjs/w/local/wip.d.ts +218 -0
- package/dist/cjs/w/local/wip.js +911 -0
- package/dist/cjs/w/messenger/.eslintrc.js +15 -0
- package/dist/cjs/w/messenger/crypto.d.ts +269 -0
- package/dist/cjs/w/messenger/crypto.js +448 -0
- package/dist/cjs/w/messenger/index.d.ts +23 -0
- package/dist/cjs/w/messenger/index.js +37 -0
- package/dist/cjs/w/messenger/messenger-api.d.ts +225 -0
- package/dist/cjs/w/messenger/messenger-api.js +1247 -0
- package/dist/cjs/w/messenger/messenger-manager.d.ts +80 -0
- package/dist/cjs/w/messenger/messenger-manager.js +1143 -0
- package/dist/cjs/w/messenger/messenger.d.ts +231 -0
- package/dist/cjs/w/messenger/messenger.js +1512 -0
- package/dist/cjs/w/messenger/server.d.ts +134 -0
- package/dist/cjs/w/messenger/server.js +535 -0
- package/dist/cjs/w/messenger/session.d.ts +78 -0
- package/dist/cjs/w/messenger/session.js +418 -0
- package/dist/cjs/w/messenger/storage.d.ts +192 -0
- package/dist/cjs/w/messenger/storage.js +964 -0
- package/dist/cjs/w/messenger/types.d.ts +705 -0
- package/dist/cjs/w/messenger/types.js +107 -0
- package/dist/cjs/w/messenger/utils.d.ts +15 -0
- package/dist/cjs/w/messenger/utils.js +37 -0
- package/dist/cjs/w/query/bult-in.d.ts +73 -0
- package/dist/cjs/w/query/bult-in.js +121 -0
- package/dist/cjs/w/query/event.d.ts +82 -0
- package/dist/cjs/w/query/event.js +157 -0
- package/dist/cjs/w/query/index.d.ts +5 -0
- package/dist/cjs/w/query/index.js +22 -0
- package/dist/cjs/w/query/object.d.ts +658 -0
- package/dist/cjs/w/query/object.js +1671 -0
- package/dist/cjs/w/query/received.d.ts +34 -0
- package/dist/cjs/w/query/received.js +93 -0
- package/dist/cjs/w/query/util.d.ts +5 -0
- package/dist/cjs/w/query/util.js +82 -0
- package/dist/cjs/w/util.d.ts +19 -0
- package/dist/cjs/w/util.js +715 -0
- package/dist/cjs/zklogin/address.js +93 -0
- package/dist/cjs/zklogin/bcs.js +41 -0
- package/dist/cjs/zklogin/index.js +45 -0
- package/dist/cjs/zklogin/jwt-decode.js +88 -0
- package/dist/cjs/zklogin/jwt-utils.js +128 -0
- package/dist/cjs/zklogin/nonce.js +60 -0
- package/dist/cjs/zklogin/poseidon.js +64 -0
- package/dist/cjs/zklogin/publickey.js +281 -0
- package/dist/cjs/zklogin/signature.js +57 -0
- package/dist/cjs/zklogin/utils.js +98 -0
- package/dist/esm/bcs/bcs.d.ts +1973 -0
- package/dist/esm/bcs/bcs.js +319 -0
- package/dist/esm/bcs/effects.d.ts +579 -0
- package/dist/esm/bcs/effects.js +211 -0
- package/dist/esm/bcs/index.d.ts +2589 -0
- package/dist/esm/bcs/index.js +98 -0
- package/dist/esm/bcs/pure.d.ts +22 -0
- package/dist/esm/bcs/pure.js +42 -0
- package/dist/esm/bcs/type-tag-serializer.d.ts +7 -0
- package/dist/esm/bcs/type-tag-serializer.js +104 -0
- package/dist/esm/bcs/types.d.ts +114 -0
- package/dist/esm/bcs/types.js +6 -0
- package/dist/esm/client/index.d.ts +5 -0
- package/dist/esm/client/index.js +23 -0
- package/dist/esm/client/network.d.ts +5 -0
- package/dist/esm/client/network.js +23 -0
- package/dist/esm/cryptography/index.d.ts +7 -0
- package/dist/esm/cryptography/index.js +46 -0
- package/dist/esm/cryptography/intent.d.ts +6 -0
- package/dist/esm/cryptography/intent.js +14 -0
- package/dist/esm/cryptography/keypair.d.ts +73 -0
- package/dist/esm/cryptography/keypair.js +108 -0
- package/dist/esm/cryptography/mnemonics.d.ts +27 -0
- package/dist/esm/cryptography/mnemonics.js +30 -0
- package/dist/esm/cryptography/publickey.d.ts +67 -0
- package/dist/esm/cryptography/publickey.js +125 -0
- package/dist/esm/cryptography/signature-scheme.d.ts +24 -0
- package/dist/esm/cryptography/signature-scheme.js +27 -0
- package/dist/esm/cryptography/signature.d.ts +62 -0
- package/dist/esm/cryptography/signature.js +54 -0
- package/dist/esm/experimental/cache.d.ts +12 -0
- package/dist/esm/experimental/client.d.ts +12 -0
- package/dist/esm/experimental/core.d.ts +33 -0
- package/dist/esm/experimental/errors.d.ts +8 -0
- package/dist/esm/experimental/index.d.ts +7 -0
- package/dist/esm/experimental/persistent-storage.d.ts +134 -0
- package/dist/esm/experimental/persistent-storage.test.d.ts +5 -0
- package/dist/esm/experimental/transports/utils.d.ts +3 -0
- package/dist/esm/experimental/types.d.ts +367 -0
- package/dist/esm/faucet/faucet.d.ts +66 -0
- package/dist/esm/faucet/faucet.js +118 -0
- package/dist/esm/faucet/index.d.ts +1 -0
- package/dist/esm/faucet/index.js +16 -0
- package/dist/esm/graphql/client.js +79 -0
- package/dist/esm/graphql/core.js +505 -0
- package/dist/esm/graphql/generated/2024.1/tada-env.js +13121 -0
- package/dist/esm/graphql/generated/2024.1/tsconfig.tada.js +16 -0
- package/dist/esm/graphql/generated/2024.4/tada-env.js +13267 -0
- package/dist/esm/graphql/generated/2024.4/tsconfig.tada.js +16 -0
- package/dist/esm/graphql/generated/latest/tada-env.js +12905 -0
- package/dist/esm/graphql/generated/latest/tsconfig.tada.js +16 -0
- package/dist/esm/graphql/generated/queries.js +788 -0
- package/dist/esm/graphql/index.js +8 -0
- package/dist/esm/graphql/schemas/2024.1/index.js +8 -0
- package/dist/esm/graphql/schemas/2024.4/index.js +8 -0
- package/dist/esm/graphql/schemas/latest/index.js +8 -0
- package/dist/esm/graphql/types.js +0 -0
- package/dist/esm/grpc/client.d.ts +32 -0
- package/dist/esm/grpc/client.js +45 -0
- package/dist/esm/grpc/core.d.ts +28 -0
- package/dist/esm/grpc/core.js +634 -0
- package/dist/esm/grpc/index.d.ts +4 -0
- package/dist/esm/grpc/index.js +6 -0
- package/dist/esm/grpc/proto/google/protobuf/any.d.ts +173 -0
- package/dist/esm/grpc/proto/google/protobuf/any.js +118 -0
- package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +104 -0
- package/dist/esm/grpc/proto/google/protobuf/duration.js +74 -0
- package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +25 -0
- package/dist/esm/grpc/proto/google/protobuf/empty.js +10 -0
- package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +231 -0
- package/dist/esm/grpc/proto/google/protobuf/field_mask.js +57 -0
- package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +169 -0
- package/dist/esm/grpc/proto/google/protobuf/struct.js +204 -0
- package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +145 -0
- package/dist/esm/grpc/proto/google/protobuf/timestamp.js +114 -0
- package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +525 -0
- package/dist/esm/grpc/proto/google/rpc/error_details.js +297 -0
- package/dist/esm/grpc/proto/google/rpc/status.d.ts +46 -0
- package/dist/esm/grpc/proto/google/rpc/status.js +32 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +66 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +50 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +34 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js +32 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +30 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js +25 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +68 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +57 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +74 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +64 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +195 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +150 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +338 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +280 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +62 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +67 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.d.ts +17 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js +9 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +88 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/event.js +66 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +80 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +67 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +843 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +499 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +41 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +43 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +98 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/input.js +65 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/jwk.d.ts +70 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js +61 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +95 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +103 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +420 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +348 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +579 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +465 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +61 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +62 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +229 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +221 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.d.ts +41 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js +36 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.d.ts +144 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js +121 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +127 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/object.js +94 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +34 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +33 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +61 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +43 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +30 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +41 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +630 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +521 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +40 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js +13 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +35 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +31 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +79 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +70 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +71 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +69 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +690 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +526 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +55 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +35 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +57 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +45 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +684 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +720 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +1321 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +985 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +41 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +30 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +184 -0
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +157 -0
- package/dist/esm/index.d.ts +25 -0
- package/dist/esm/index.js +119 -0
- package/dist/esm/jsonRpc/client.d.ts +261 -0
- package/dist/esm/jsonRpc/client.js +734 -0
- package/dist/esm/jsonRpc/core.d.ts +87 -0
- package/dist/esm/jsonRpc/core.js +621 -0
- package/dist/esm/jsonRpc/errors.d.ts +12 -0
- package/dist/esm/jsonRpc/errors.js +46 -0
- package/dist/esm/jsonRpc/http-transport.d.ts +42 -0
- package/dist/esm/jsonRpc/http-transport.js +101 -0
- package/dist/esm/jsonRpc/index.d.ts +4 -0
- package/dist/esm/jsonRpc/index.js +20 -0
- package/dist/esm/jsonRpc/json-rpc-resolver.d.ts +4 -0
- package/dist/esm/jsonRpc/json-rpc-resolver.js +309 -0
- package/dist/esm/jsonRpc/rpc-websocket-client.d.ts +43 -0
- package/dist/esm/jsonRpc/rpc-websocket-client.js +201 -0
- package/dist/esm/jsonRpc/types/chain.d.ts +99 -0
- package/dist/esm/jsonRpc/types/chain.js +0 -0
- package/dist/esm/jsonRpc/types/changes.d.ts +19 -0
- package/dist/esm/jsonRpc/types/changes.js +0 -0
- package/dist/esm/jsonRpc/types/coins.d.ts +6 -0
- package/dist/esm/jsonRpc/types/coins.js +0 -0
- package/dist/esm/jsonRpc/types/common.d.ts +2 -0
- package/dist/esm/jsonRpc/types/common.js +0 -0
- package/dist/esm/jsonRpc/types/generated.d.ts +1492 -0
- package/dist/esm/jsonRpc/types/generated.js +0 -0
- package/dist/esm/jsonRpc/types/index.d.ts +6 -0
- package/dist/esm/jsonRpc/types/index.js +0 -0
- package/dist/esm/jsonRpc/types/params.d.ts +656 -0
- package/dist/esm/jsonRpc/types/params.js +0 -0
- package/dist/esm/keypairs/ed25519/ed25519-hd-key.d.ts +8 -0
- package/dist/esm/keypairs/ed25519/ed25519-hd-key.js +62 -0
- package/dist/esm/keypairs/ed25519/index.d.ts +2 -0
- package/dist/esm/keypairs/ed25519/index.js +10 -0
- package/dist/esm/keypairs/ed25519/keypair.d.ts +74 -0
- package/dist/esm/keypairs/ed25519/keypair.js +158 -0
- package/dist/esm/keypairs/ed25519/publickey.d.ts +30 -0
- package/dist/esm/keypairs/ed25519/publickey.js +75 -0
- package/dist/esm/keypairs/index.d.ts +4 -0
- package/dist/esm/keypairs/index.js +4 -0
- package/dist/esm/keypairs/passkey/index.d.ts +3 -0
- package/dist/esm/keypairs/passkey/index.js +12 -0
- package/dist/esm/keypairs/passkey/keypair.d.ts +113 -0
- package/dist/esm/keypairs/passkey/keypair.js +258 -0
- package/dist/esm/keypairs/passkey/publickey.d.ts +72 -0
- package/dist/esm/keypairs/passkey/publickey.js +156 -0
- package/dist/esm/keypairs/passkey/types.d.ts +12 -0
- package/dist/esm/keypairs/passkey/types.js +0 -0
- package/dist/esm/keypairs/secp256k1/index.d.ts +2 -0
- package/dist/esm/keypairs/secp256k1/index.js +10 -0
- package/dist/esm/keypairs/secp256k1/keypair.d.ts +73 -0
- package/dist/esm/keypairs/secp256k1/keypair.js +147 -0
- package/dist/esm/keypairs/secp256k1/publickey.d.ts +30 -0
- package/dist/esm/keypairs/secp256k1/publickey.js +80 -0
- package/dist/esm/keypairs/secp256r1/index.d.ts +2 -0
- package/dist/esm/keypairs/secp256r1/index.js +10 -0
- package/dist/esm/keypairs/secp256r1/keypair.d.ts +73 -0
- package/dist/esm/keypairs/secp256r1/keypair.js +143 -0
- package/dist/esm/keypairs/secp256r1/publickey.d.ts +30 -0
- package/dist/esm/keypairs/secp256r1/publickey.js +77 -0
- package/dist/esm/multisig/index.d.ts +2 -0
- package/dist/esm/multisig/index.js +10 -0
- package/dist/esm/multisig/publickey.d.ts +79 -0
- package/dist/esm/multisig/publickey.js +280 -0
- package/dist/esm/multisig/signer.d.ts +20 -0
- package/dist/esm/multisig/signer.js +94 -0
- package/dist/esm/package.json +5 -0
- package/dist/esm/transactions/Arguments.d.ts +57 -0
- package/dist/esm/transactions/Arguments.js +16 -0
- package/dist/esm/transactions/Commands.d.ts +57 -0
- package/dist/esm/transactions/Commands.js +123 -0
- package/dist/esm/transactions/Inputs.d.ts +22 -0
- package/dist/esm/transactions/Inputs.js +67 -0
- package/dist/esm/transactions/ObjectCache.d.ts +83 -0
- package/dist/esm/transactions/ObjectCache.js +231 -0
- package/dist/esm/transactions/Transaction.d.ts +710 -0
- package/dist/esm/transactions/Transaction.js +731 -0
- package/dist/esm/transactions/TransactionData.d.ts +73 -0
- package/dist/esm/transactions/TransactionData.js +453 -0
- package/dist/esm/transactions/__tests__/Transaction.test.d.ts +1 -0
- package/dist/esm/transactions/__tests__/bcs.test.d.ts +1 -0
- package/dist/esm/transactions/data/internal.d.ts +1010 -0
- package/dist/esm/transactions/data/internal.js +232 -0
- package/dist/esm/transactions/data/v1.d.ts +312 -0
- package/dist/esm/transactions/data/v1.js +542 -0
- package/dist/esm/transactions/data/v2.d.ts +153 -0
- package/dist/esm/transactions/data/v2.js +126 -0
- package/dist/esm/transactions/executor/caching.d.ts +31 -0
- package/dist/esm/transactions/executor/caching.js +99 -0
- package/dist/esm/transactions/executor/parallel.d.ts +37 -0
- package/dist/esm/transactions/executor/parallel.js +375 -0
- package/dist/esm/transactions/executor/queue.d.ts +11 -0
- package/dist/esm/transactions/executor/queue.js +68 -0
- package/dist/esm/transactions/executor/serial.d.ts +31 -0
- package/dist/esm/transactions/executor/serial.js +116 -0
- package/dist/esm/transactions/hash.d.ts +7 -0
- package/dist/esm/transactions/hash.js +11 -0
- package/dist/esm/transactions/index.d.ts +21 -0
- package/dist/esm/transactions/index.js +41 -0
- package/dist/esm/transactions/intents/CoinWithBalance.d.ts +9 -0
- package/dist/esm/transactions/intents/CoinWithBalance.js +186 -0
- package/dist/esm/transactions/object.d.ts +24 -0
- package/dist/esm/transactions/object.js +96 -0
- package/dist/esm/transactions/plugins/NamedPackagesPlugin.d.ts +31 -0
- package/dist/esm/transactions/plugins/NamedPackagesPlugin.js +17 -0
- package/dist/esm/transactions/pure.d.ts +20 -0
- package/dist/esm/transactions/pure.js +44 -0
- package/dist/esm/transactions/resolve.d.ts +13 -0
- package/dist/esm/transactions/resolve.js +83 -0
- package/dist/esm/transactions/serializer.d.ts +7 -0
- package/dist/esm/transactions/serializer.js +169 -0
- package/dist/esm/transactions/utils.d.ts +10 -0
- package/dist/esm/transactions/utils.js +123 -0
- package/dist/esm/utils/constants.d.ts +17 -0
- package/dist/esm/utils/constants.js +37 -0
- package/dist/esm/utils/derived-objects.d.ts +5 -0
- package/dist/esm/utils/derived-objects.js +13 -0
- package/dist/esm/utils/dynamic-fields.d.ts +2 -0
- package/dist/esm/utils/dynamic-fields.js +20 -0
- package/dist/esm/utils/format.d.ts +2 -0
- package/dist/esm/utils/format.js +15 -0
- package/dist/esm/utils/index.d.ts +8 -0
- package/dist/esm/utils/index.js +76 -0
- package/dist/esm/utils/move-registry.d.ts +6 -0
- package/dist/esm/utils/move-registry.js +24 -0
- package/dist/esm/utils/sui-types.d.ts +26 -0
- package/dist/esm/utils/sui-types.js +70 -0
- package/dist/esm/utils/suins.d.ts +2 -0
- package/dist/esm/utils/suins.js +36 -0
- package/dist/esm/verify/index.d.ts +1 -0
- package/dist/esm/verify/index.js +14 -0
- package/dist/esm/verify/verify.d.ts +16 -0
- package/dist/esm/verify/verify.js +108 -0
- package/dist/esm/version.d.ts +2 -0
- package/dist/esm/version.js +6 -0
- package/dist/esm/w/call/allocation.d.ts +35 -0
- package/dist/esm/w/call/allocation.js +433 -0
- package/dist/esm/w/call/arb.d.ts +17 -0
- package/dist/esm/w/call/arb.js +138 -0
- package/dist/esm/w/call/arbitration.d.ts +106 -0
- package/dist/esm/w/call/arbitration.js +1620 -0
- package/dist/esm/w/call/base.d.ts +42 -0
- package/dist/esm/w/call/base.js +350 -0
- package/dist/esm/w/call/contact.d.ts +45 -0
- package/dist/esm/w/call/contact.js +474 -0
- package/dist/esm/w/call/demand.d.ts +79 -0
- package/dist/esm/w/call/demand.js +869 -0
- package/dist/esm/w/call/entity.d.ts +33 -0
- package/dist/esm/w/call/entity.js +220 -0
- package/dist/esm/w/call/guard-ins.d.ts +31 -0
- package/dist/esm/w/call/guard-ins.js +4371 -0
- package/dist/esm/w/call/guard.d.ts +254 -0
- package/dist/esm/w/call/guard.js +1202 -0
- package/dist/esm/w/call/index.d.ts +37 -0
- package/dist/esm/w/call/index.js +57 -0
- package/dist/esm/w/call/machine.d.ts +124 -0
- package/dist/esm/w/call/machine.js +1492 -0
- package/dist/esm/w/call/order.d.ts +73 -0
- package/dist/esm/w/call/order.js +481 -0
- package/dist/esm/w/call/passport.d.ts +24 -0
- package/dist/esm/w/call/passport.js +266 -0
- package/dist/esm/w/call/payment.d.ts +27 -0
- package/dist/esm/w/call/payment.js +233 -0
- package/dist/esm/w/call/permission.d.ts +222 -0
- package/dist/esm/w/call/permission.js +1375 -0
- package/dist/esm/w/call/personal.d.ts +51 -0
- package/dist/esm/w/call/personal.js +177 -0
- package/dist/esm/w/call/progress.d.ts +94 -0
- package/dist/esm/w/call/progress.js +827 -0
- package/dist/esm/w/call/proof.d.ts +27 -0
- package/dist/esm/w/call/proof.js +110 -0
- package/dist/esm/w/call/repository.d.ts +97 -0
- package/dist/esm/w/call/repository.js +1325 -0
- package/dist/esm/w/call/resource.d.ts +27 -0
- package/dist/esm/w/call/resource.js +135 -0
- package/dist/esm/w/call/reward.d.ts +52 -0
- package/dist/esm/w/call/reward.js +874 -0
- package/dist/esm/w/call/service.d.ts +184 -0
- package/dist/esm/w/call/service.js +2472 -0
- package/dist/esm/w/call/treasury.d.ts +77 -0
- package/dist/esm/w/call/treasury.js +1186 -0
- package/dist/esm/w/call/util.d.ts +12 -0
- package/dist/esm/w/call/util.js +646 -0
- package/dist/esm/w/common.d.ts +359 -0
- package/dist/esm/w/common.js +605 -0
- package/dist/esm/w/exception.d.ts +82 -0
- package/dist/esm/w/exception.js +585 -0
- package/dist/esm/w/index.d.ts +8 -0
- package/dist/esm/w/index.js +8 -0
- package/dist/esm/w/local/.eslintrc.js +23 -0
- package/dist/esm/w/local/account.d.ts +134 -0
- package/dist/esm/w/local/account.js +746 -0
- package/dist/esm/w/local/cache.d.ts +35 -0
- package/dist/esm/w/local/cache.js +162 -0
- package/dist/esm/w/local/config.d.ts +15 -0
- package/dist/esm/w/local/config.js +64 -0
- package/dist/esm/w/local/index.d.ts +193 -0
- package/dist/esm/w/local/index.js +301 -0
- package/dist/esm/w/local/local.d.ts +93 -0
- package/dist/esm/w/local/local.js +654 -0
- package/dist/esm/w/local/storage.d.ts +61 -0
- package/dist/esm/w/local/storage.js +190 -0
- package/dist/esm/w/local/token.d.ts +22 -0
- package/dist/esm/w/local/token.js +163 -0
- package/dist/esm/w/local/util.d.ts +5 -0
- package/dist/esm/w/local/util.js +27 -0
- package/dist/esm/w/local/wip.d.ts +218 -0
- package/dist/esm/w/local/wip.js +882 -0
- package/dist/esm/w/messenger/.eslintrc.js +23 -0
- package/dist/esm/w/messenger/crypto.d.ts +269 -0
- package/dist/esm/w/messenger/crypto.js +428 -0
- package/dist/esm/w/messenger/index.d.ts +23 -0
- package/dist/esm/w/messenger/index.js +25 -0
- package/dist/esm/w/messenger/messenger-api.d.ts +225 -0
- package/dist/esm/w/messenger/messenger-api.js +1228 -0
- package/dist/esm/w/messenger/messenger-manager.d.ts +80 -0
- package/dist/esm/w/messenger/messenger-manager.js +1118 -0
- package/dist/esm/w/messenger/messenger.d.ts +231 -0
- package/dist/esm/w/messenger/messenger.js +1492 -0
- package/dist/esm/w/messenger/server.d.ts +134 -0
- package/dist/esm/w/messenger/server.js +520 -0
- package/dist/esm/w/messenger/session.d.ts +78 -0
- package/dist/esm/w/messenger/session.js +415 -0
- package/dist/esm/w/messenger/storage.d.ts +192 -0
- package/dist/esm/w/messenger/storage.js +935 -0
- package/dist/esm/w/messenger/types.d.ts +705 -0
- package/dist/esm/w/messenger/types.js +88 -0
- package/dist/esm/w/messenger/utils.d.ts +15 -0
- package/dist/esm/w/messenger/utils.js +17 -0
- package/dist/esm/w/query/bult-in.d.ts +73 -0
- package/dist/esm/w/query/bult-in.js +112 -0
- package/dist/esm/w/query/event.d.ts +82 -0
- package/dist/esm/w/query/event.js +137 -0
- package/dist/esm/w/query/index.d.ts +5 -0
- package/dist/esm/w/query/index.js +5 -0
- package/dist/esm/w/query/object.d.ts +658 -0
- package/dist/esm/w/query/object.js +1648 -0
- package/dist/esm/w/query/received.d.ts +34 -0
- package/dist/esm/w/query/received.js +73 -0
- package/dist/esm/w/query/util.d.ts +5 -0
- package/dist/esm/w/query/util.js +62 -0
- package/dist/esm/w/util.d.ts +19 -0
- package/dist/esm/w/util.js +710 -0
- package/dist/esm/zklogin/address.js +78 -0
- package/dist/esm/zklogin/bcs.js +21 -0
- package/dist/esm/zklogin/index.js +38 -0
- package/dist/esm/zklogin/jwt-decode.js +68 -0
- package/dist/esm/zklogin/jwt-utils.js +108 -0
- package/dist/esm/zklogin/nonce.js +40 -0
- package/dist/esm/zklogin/poseidon.js +61 -0
- package/dist/esm/zklogin/publickey.js +265 -0
- package/dist/esm/zklogin/signature.js +37 -0
- package/dist/esm/zklogin/utils.js +78 -0
- package/dist/tsconfig.esm.tsbuildinfo +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/package.json +295 -61
- package/dist/arbitration.d.ts +0 -65
- package/dist/arbitration.d.ts.map +0 -1
- package/dist/arbitration.js +0 -517
- package/dist/arbitration.js.map +0 -1
- package/dist/demand.d.ts +0 -27
- package/dist/demand.d.ts.map +0 -1
- package/dist/demand.js +0 -266
- package/dist/demand.js.map +0 -1
- package/dist/entity.d.ts +0 -46
- package/dist/entity.d.ts.map +0 -1
- package/dist/entity.js +0 -146
- package/dist/entity.js.map +0 -1
- package/dist/exception.d.ts +0 -37
- package/dist/exception.d.ts.map +0 -1
- package/dist/exception.js +0 -41
- package/dist/exception.js.map +0 -1
- package/dist/guard.d.ts +0 -110
- package/dist/guard.d.ts.map +0 -1
- package/dist/guard.js +0 -936
- package/dist/guard.js.map +0 -1
- package/dist/index.d.ts +0 -40
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -28
- package/dist/index.js.map +0 -1
- package/dist/machine.d.ts +0 -68
- package/dist/machine.d.ts.map +0 -1
- package/dist/machine.js +0 -520
- package/dist/machine.js.map +0 -1
- package/dist/passport.d.ts +0 -129
- package/dist/passport.d.ts.map +0 -1
- package/dist/passport.js +0 -1233
- package/dist/passport.js.map +0 -1
- package/dist/payment.d.ts +0 -28
- package/dist/payment.d.ts.map +0 -1
- package/dist/payment.js +0 -60
- package/dist/payment.js.map +0 -1
- package/dist/permission.d.ts +0 -155
- package/dist/permission.d.ts.map +0 -1
- package/dist/permission.js +0 -462
- package/dist/permission.js.map +0 -1
- package/dist/progress.d.ts +0 -66
- package/dist/progress.d.ts.map +0 -1
- package/dist/progress.js +0 -311
- package/dist/progress.js.map +0 -1
- package/dist/protocol.d.ts +0 -247
- package/dist/protocol.d.ts.map +0 -1
- package/dist/protocol.js +0 -726
- package/dist/protocol.js.map +0 -1
- package/dist/repository.d.ts +0 -94
- package/dist/repository.d.ts.map +0 -1
- package/dist/repository.js +0 -783
- package/dist/repository.js.map +0 -1
- package/dist/resource.d.ts +0 -36
- package/dist/resource.d.ts.map +0 -1
- package/dist/resource.js +0 -129
- package/dist/resource.js.map +0 -1
- package/dist/service.d.ts +0 -144
- package/dist/service.d.ts.map +0 -1
- package/dist/service.js +0 -1303
- package/dist/service.js.map +0 -1
- package/dist/treasury.d.ts +0 -55
- package/dist/treasury.d.ts.map +0 -1
- package/dist/treasury.js +0 -393
- package/dist/treasury.js.map +0 -1
- package/dist/utils.d.ts +0 -94
- package/dist/utils.d.ts.map +0 -1
- package/dist/utils.js +0 -582
- package/dist/utils.js.map +0 -1
- package/dist/wowok.d.ts +0 -15
- package/dist/wowok.d.ts.map +0 -1
- package/dist/wowok.js +0 -66
- package/dist/wowok.js.map +0 -1
package/dist/progress.js
DELETED
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import { Protocol } from './protocol.js';
|
|
2
|
-
import { Machine } from './machine.js';
|
|
3
|
-
import { array_unique, IsValidName, IsValidAddress, IsValidArray, IsValidInt, IsValidDesription, IsValidU8 } from './utils.js';
|
|
4
|
-
import { ERROR, Errors } from './exception.js';
|
|
5
|
-
import { IsValidGuardIdentifier } from './guard.js';
|
|
6
|
-
export class Progress {
|
|
7
|
-
get_object() { return this.object; }
|
|
8
|
-
constructor(txb, machine, permission) {
|
|
9
|
-
this.permission = permission;
|
|
10
|
-
this.txb = txb;
|
|
11
|
-
this.machine = machine;
|
|
12
|
-
this.object = '';
|
|
13
|
-
}
|
|
14
|
-
static From(txb, machine, permission, object) {
|
|
15
|
-
let p = new Progress(txb, machine, permission);
|
|
16
|
-
p.object = Protocol.TXB_OBJECT(txb, object);
|
|
17
|
-
return p;
|
|
18
|
-
}
|
|
19
|
-
static New(txb, machine, permission, task, passport) {
|
|
20
|
-
if (!Protocol.IsValidObjects([machine, permission])) {
|
|
21
|
-
ERROR(Errors.IsValidObjects, 'machine & permission');
|
|
22
|
-
}
|
|
23
|
-
let p = new Progress(txb, machine, permission);
|
|
24
|
-
let t = txb.pure.option('address', task ? task : undefined);
|
|
25
|
-
if (passport) {
|
|
26
|
-
p.object = txb.moveCall({
|
|
27
|
-
target: Protocol.Instance().progressFn('new_with_passport'),
|
|
28
|
-
arguments: [passport, t, Protocol.TXB_OBJECT(txb, machine), Protocol.TXB_OBJECT(txb, permission)],
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
p.object = txb.moveCall({
|
|
33
|
-
target: Protocol.Instance().progressFn('new'),
|
|
34
|
-
arguments: [t, Protocol.TXB_OBJECT(txb, machine), Protocol.TXB_OBJECT(txb, permission)],
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
return p;
|
|
38
|
-
}
|
|
39
|
-
launch() {
|
|
40
|
-
return this.txb.moveCall({
|
|
41
|
-
target: Protocol.Instance().progressFn('create'),
|
|
42
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object)],
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
set_namedOperator(name, addresses, passport) {
|
|
46
|
-
if (!IsValidName(name)) {
|
|
47
|
-
ERROR(Errors.IsValidName, 'name');
|
|
48
|
-
}
|
|
49
|
-
if (name === Machine.OPERATOR_ORDER_PAYER) {
|
|
50
|
-
ERROR(Errors.InvalidParam, 'name cannot be ' + Machine.OPERATOR_ORDER_PAYER);
|
|
51
|
-
}
|
|
52
|
-
if (addresses.length > Progress.MAX_NAMED_OPERATOR_COUNT || !IsValidArray(addresses, IsValidAddress)) {
|
|
53
|
-
ERROR(Errors.InvalidParam, 'addresses');
|
|
54
|
-
}
|
|
55
|
-
if (passport) {
|
|
56
|
-
this.txb.moveCall({
|
|
57
|
-
target: Protocol.Instance().progressFn('namedOperator_set_with_passport'),
|
|
58
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object), this.txb.pure.string(name),
|
|
59
|
-
this.txb.pure.vector('address', array_unique(addresses)),
|
|
60
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
this.txb.moveCall({
|
|
65
|
-
target: Protocol.Instance().progressFn('namedOperator_set'),
|
|
66
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), this.txb.pure.string(name),
|
|
67
|
-
this.txb.pure.vector('address', array_unique(addresses)),
|
|
68
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
bind_task(task_address, passport) {
|
|
73
|
-
if (!IsValidAddress(task_address)) {
|
|
74
|
-
ERROR(Errors.IsValidAddress);
|
|
75
|
-
}
|
|
76
|
-
if (passport) {
|
|
77
|
-
this.txb.moveCall({
|
|
78
|
-
target: Protocol.Instance().progressFn('task_set_with_passport'),
|
|
79
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object),
|
|
80
|
-
this.txb.pure.address(task_address), Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
this.txb.moveCall({
|
|
85
|
-
target: Protocol.Instance().progressFn('task_set'),
|
|
86
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), this.txb.pure.address(task_address),
|
|
87
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
set_context_repository(repository, passport) {
|
|
92
|
-
if (repository && !Protocol.IsValidObjects([repository])) {
|
|
93
|
-
ERROR(Errors.IsValidObjects, 'repository');
|
|
94
|
-
}
|
|
95
|
-
if (passport) {
|
|
96
|
-
if (repository) {
|
|
97
|
-
this.txb.moveCall({
|
|
98
|
-
target: Protocol.Instance().progressFn('context_repository_set_with_passport'),
|
|
99
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, repository),
|
|
100
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
else {
|
|
104
|
-
this.txb.moveCall({
|
|
105
|
-
target: Protocol.Instance().progressFn('context_repository_none_with_passport'),
|
|
106
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object),
|
|
107
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
else {
|
|
112
|
-
if (repository) {
|
|
113
|
-
this.txb.moveCall({
|
|
114
|
-
target: Protocol.Instance().progressFn('context_repository_set'),
|
|
115
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, repository),
|
|
116
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
this.txb.moveCall({
|
|
121
|
-
target: Protocol.Instance().progressFn('context_repository_none'),
|
|
122
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
unhold(next, passport) {
|
|
128
|
-
if (!Progress.IsValidProgressNext(next)) {
|
|
129
|
-
ERROR(Errors.InvalidParam, 'unhold');
|
|
130
|
-
}
|
|
131
|
-
const clock = this.txb.sharedObjectRef(Protocol.CLOCK_OBJECT);
|
|
132
|
-
if (passport) {
|
|
133
|
-
this.txb.moveCall({
|
|
134
|
-
target: Protocol.Instance().progressFn('unhold_with_passport'),
|
|
135
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object),
|
|
136
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), this.txb.pure.string(next.next_node_name),
|
|
137
|
-
this.txb.pure.string(next.forward), Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
this.txb.moveCall({
|
|
142
|
-
target: Protocol.Instance().progressFn('unhold'),
|
|
143
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine),
|
|
144
|
-
this.txb.pure.string(next.next_node_name), this.txb.pure.string(next.forward),
|
|
145
|
-
Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
146
|
-
});
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
parent_none(passport) {
|
|
150
|
-
if (passport) {
|
|
151
|
-
this.txb.moveCall({
|
|
152
|
-
target: Protocol.Instance().progressFn('parent_none_with_passport'),
|
|
153
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object),
|
|
154
|
-
Protocol.TXB_OBJECT(this.txb, this.machine), Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
this.txb.moveCall({
|
|
159
|
-
target: Protocol.Instance().progressFn('parent_none'),
|
|
160
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine),
|
|
161
|
-
Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
parent(parent, passport) {
|
|
166
|
-
if (!IsValidAddress(parent.parent_id) || !IsValidInt(parent.parent_session_id)) {
|
|
167
|
-
ERROR(Errors.InvalidParam, 'parent');
|
|
168
|
-
}
|
|
169
|
-
if (!parent.operation.next_node_name || !parent.operation.forward) {
|
|
170
|
-
ERROR(Errors.InvalidParam, 'parent');
|
|
171
|
-
}
|
|
172
|
-
if (passport) {
|
|
173
|
-
this.txb.moveCall({
|
|
174
|
-
target: Protocol.Instance().progressFn('parent_set_with_passport'),
|
|
175
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine),
|
|
176
|
-
this.txb.object(parent.parent_id),
|
|
177
|
-
this.txb.pure.u64(parent.parent_session_id),
|
|
178
|
-
this.txb.pure.string(parent.operation.next_node_name),
|
|
179
|
-
this.txb.pure.string(parent.operation.forward),
|
|
180
|
-
Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
this.txb.moveCall({
|
|
185
|
-
target: Protocol.Instance().progressFn('parent_set'),
|
|
186
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine),
|
|
187
|
-
this.txb.object(parent.parent_id),
|
|
188
|
-
this.txb.pure.u64(parent.parent_session_id),
|
|
189
|
-
this.txb.pure.string(parent.operation.next_node_name),
|
|
190
|
-
this.txb.pure.string(parent.operation.forward),
|
|
191
|
-
Protocol.TXB_OBJECT(this.txb, this.permission)],
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
next(next, deliverable, passport) {
|
|
196
|
-
if (!IsValidDesription(deliverable)) {
|
|
197
|
-
ERROR(Errors.InvalidParam, `next.deliverable too long ${deliverable}`);
|
|
198
|
-
}
|
|
199
|
-
if (!Progress.IsValidProgressNext(next)) {
|
|
200
|
-
ERROR(Errors.InvalidParam, 'next.next');
|
|
201
|
-
}
|
|
202
|
-
const clock = this.txb.sharedObjectRef(Protocol.CLOCK_OBJECT);
|
|
203
|
-
if (passport) {
|
|
204
|
-
return this.txb.moveCall({
|
|
205
|
-
target: Protocol.Instance().progressFn('next_with_passport'),
|
|
206
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine),
|
|
207
|
-
this.txb.pure.string(next.next_node_name),
|
|
208
|
-
this.txb.pure.string(next.forward), this.txb.pure.string(deliverable),
|
|
209
|
-
Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
else {
|
|
213
|
-
return this.txb.moveCall({
|
|
214
|
-
target: Protocol.Instance().progressFn('next'),
|
|
215
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine), this.txb.pure.string(next.next_node_name),
|
|
216
|
-
this.txb.pure.string(next.forward), this.txb.pure.string(deliverable),
|
|
217
|
-
Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
hold(next, hold, passport) {
|
|
222
|
-
if (!Progress.IsValidProgressNext(next)) {
|
|
223
|
-
ERROR(Errors.InvalidParam, 'hold');
|
|
224
|
-
}
|
|
225
|
-
const clock = this.txb.sharedObjectRef(Protocol.CLOCK_OBJECT);
|
|
226
|
-
if (passport) {
|
|
227
|
-
return this.txb.moveCall({
|
|
228
|
-
target: Protocol.Instance().progressFn('hold_with_passport'),
|
|
229
|
-
arguments: [passport, Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine), this.txb.pure.string(next.next_node_name),
|
|
230
|
-
this.txb.pure.string(next.forward), this.txb.pure.bool(hold), Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
231
|
-
});
|
|
232
|
-
}
|
|
233
|
-
else {
|
|
234
|
-
return this.txb.moveCall({
|
|
235
|
-
target: Protocol.Instance().progressFn('hold'),
|
|
236
|
-
arguments: [Protocol.TXB_OBJECT(this.txb, this.object), Protocol.TXB_OBJECT(this.txb, this.machine), this.txb.pure.string(next.next_node_name),
|
|
237
|
-
this.txb.pure.string(next.forward), this.txb.pure.bool(hold), Protocol.TXB_OBJECT(this.txb, this.permission), this.txb.object(clock)],
|
|
238
|
-
});
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
static witness(txb, progress, guard_index, identifier, passport) {
|
|
242
|
-
if (identifier.length === 0)
|
|
243
|
-
return;
|
|
244
|
-
if (!Protocol.IsValidObjects([progress, passport])) {
|
|
245
|
-
ERROR(Errors.InvalidParam, `Progress.witness progress or passport invalid ${progress} ${passport}`);
|
|
246
|
-
}
|
|
247
|
-
if (!IsValidU8(guard_index)) {
|
|
248
|
-
ERROR(Errors.InvalidParam, `Progress.witness.guard ${guard_index}`);
|
|
249
|
-
}
|
|
250
|
-
identifier.forEach(v => {
|
|
251
|
-
if (!IsValidGuardIdentifier(v)) {
|
|
252
|
-
ERROR(Errors.IsValidIndentifier, `Progress.witness.identifier ${v}`);
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
return txb.moveCall({
|
|
256
|
-
target: Protocol.Instance().progressFn('witness'),
|
|
257
|
-
arguments: [passport, txb.pure.u8(guard_index), txb.pure.vector('u8', identifier), Protocol.TXB_OBJECT(txb, progress)],
|
|
258
|
-
});
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
/* static QueryForwardPermission = async (progress:ProgressObject, machine:MachineObject, sender:string, next_node:string, forward:string): Promise<ForwardPermission | undefined> => {
|
|
262
|
-
if (!progress || !machine || !next_node || !forward) { // prior_node maybe ''
|
|
263
|
-
ERROR(Errors.InvalidParam, 'QueryForwardPermission');
|
|
264
|
-
return ;
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
const txb = new TransactionBlock();
|
|
268
|
-
txb.moveCall({
|
|
269
|
-
target:Protocol.Instance().progressFn('QueryPermission') as FnCallType,
|
|
270
|
-
arguments:[Protocol.TXB_OBJECT(txb, progress), Protocol.TXB_OBJECT(txb, machine),
|
|
271
|
-
txb.pure.string(next_node), txb.pure.string(forward)],
|
|
272
|
-
});
|
|
273
|
-
|
|
274
|
-
const res = await Protocol.Client().devInspectTransactionBlock({sender:sender, transactionBlock:txb});
|
|
275
|
-
if (res.results?.length === 1 && res.results[0].returnValues?.length === 3) {
|
|
276
|
-
const bSuccess = bcs.bool().parse(Uint8Array.from(res.results[0].returnValues[0][0]));
|
|
277
|
-
const guard = bcs.option(bcs.Address).parse(Uint8Array.from(res.results[0].returnValues[1][0]));
|
|
278
|
-
const permission = bcs.option(bcs.u16()).parse(Uint8Array.from(res.results[0].returnValues[2][0]));
|
|
279
|
-
return {bSuccess:bSuccess, guard:guard ?? undefined, permission_index:permission != null ? (parseInt(permission) as PermissionIndexType):undefined}
|
|
280
|
-
}
|
|
281
|
-
} */
|
|
282
|
-
Progress.DeSessions = (session) => {
|
|
283
|
-
let sessions = [];
|
|
284
|
-
session?.fields?.contents?.forEach((v) => {
|
|
285
|
-
//console.log(v)
|
|
286
|
-
let s = { next_node: v.fields.key, holders: [], weights: v.fields.value.fields.weights, threshold: v.fields.value.fields.threshold };
|
|
287
|
-
v.fields.value.fields.forwards.fields.contents.forEach((i) => {
|
|
288
|
-
s.holders.push({ forward: i.fields.key, accomplished: i.fields.value.fields.accomplished, time: i.fields.value.fields.time,
|
|
289
|
-
who: i.fields.value.fields.who, deliverable: { msg: i.fields.value.fields.msg, orders: i.fields.value.fields.orders ?? [] },
|
|
290
|
-
});
|
|
291
|
-
});
|
|
292
|
-
sessions.push(s);
|
|
293
|
-
});
|
|
294
|
-
return sessions;
|
|
295
|
-
};
|
|
296
|
-
Progress.DeHistories = (fields) => {
|
|
297
|
-
return fields?.map((v) => {
|
|
298
|
-
return Progress.DeHistory(v?.data?.content?.fields);
|
|
299
|
-
});
|
|
300
|
-
};
|
|
301
|
-
Progress.DeHistory = (data) => {
|
|
302
|
-
return { id: parseInt(data?.name), node: data?.value?.fields?.node, next_node: data?.value?.fields?.next_node,
|
|
303
|
-
sessions: Progress.DeSessions(data?.value.fields?.session), time: data?.value?.fields?.time
|
|
304
|
-
};
|
|
305
|
-
};
|
|
306
|
-
Progress.MAX_NAMED_OPERATOR_COUNT = 40;
|
|
307
|
-
Progress.MAX_DELEVERABLE_ORDER_COUNT = 20;
|
|
308
|
-
Progress.IsValidProgressNext = (next) => {
|
|
309
|
-
return IsValidName(next.forward) && IsValidName(next.next_node_name);
|
|
310
|
-
};
|
|
311
|
-
//# sourceMappingURL=progress.js.map
|
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S,EAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS;QACrG,QAAQ,EAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI;KAC3F,CAAA;AACP,CAAC,CAAA;AAEM,iCAAwB,GAAG,EAAE,CAAC;AAC9B,oCAA2B,GAAG,EAAE,CAAC;AACjC,4BAAmB,GAAG,CAAC,IAAiB,EAAE,EAAE;IAC/C,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,IAAK,WAAW,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC1E,CAAC,CAAA"}
|
package/dist/protocol.d.ts
DELETED
|
@@ -1,247 +0,0 @@
|
|
|
1
|
-
import { SuiClient, SuiObjectResponse, SuiObjectDataOptions, SuiTransactionBlockResponseOptions, SuiTransactionBlockResponse, CoinMetadata } from '@mysten/sui/client';
|
|
2
|
-
import { Transaction as TransactionBlock, TransactionResult, TransactionArgument } from '@mysten/sui/transactions';
|
|
3
|
-
import { GuardConstant } from './guard.js';
|
|
4
|
-
export declare enum MODULES {
|
|
5
|
-
machine = "machine",
|
|
6
|
-
progress = "progress",
|
|
7
|
-
repository = "repository",
|
|
8
|
-
permission = "permission",
|
|
9
|
-
passport = "passport",
|
|
10
|
-
guard = "guard",
|
|
11
|
-
demand = "demand",
|
|
12
|
-
order = "order",
|
|
13
|
-
service = "service",
|
|
14
|
-
resource = "resource",
|
|
15
|
-
entity = "entity",
|
|
16
|
-
wowok = "wowok",
|
|
17
|
-
treasury = "treasury",
|
|
18
|
-
payment = "payment",
|
|
19
|
-
arbitration = "arbitration",
|
|
20
|
-
arb = "arb"
|
|
21
|
-
}
|
|
22
|
-
export type PermissionAddress = TransactionResult;
|
|
23
|
-
export type PermissionObject = TransactionResult | string | TransactionArgument;
|
|
24
|
-
export type RepositoryAddress = TransactionResult;
|
|
25
|
-
export type RepositoryObject = TransactionResult | string | TransactionArgument;
|
|
26
|
-
export type GuardAddress = TransactionResult;
|
|
27
|
-
export type GuardObject = TransactionResult | string | TransactionArgument;
|
|
28
|
-
export type MachineAddress = TransactionResult;
|
|
29
|
-
export type MachineObject = TransactionResult | string | TransactionArgument;
|
|
30
|
-
export type PassportObject = TransactionResult;
|
|
31
|
-
export type DemandAddress = TransactionResult;
|
|
32
|
-
export type DemandObject = TransactionResult | string | TransactionArgument;
|
|
33
|
-
export type ServiceObject = TransactionResult | string | TransactionArgument;
|
|
34
|
-
export type ServiceAddress = TransactionResult;
|
|
35
|
-
export type ArbitrationObject = TransactionResult | string | TransactionArgument;
|
|
36
|
-
export type ArbitrationAddress = TransactionResult;
|
|
37
|
-
export type ArbObject = TransactionResult | string | TransactionArgument;
|
|
38
|
-
export type ArbAddress = TransactionResult;
|
|
39
|
-
export type ProgressObject = TransactionResult | string | TransactionArgument;
|
|
40
|
-
export type ProgressAddress = TransactionResult;
|
|
41
|
-
export type TreasuryObject = TransactionResult | string | TransactionArgument;
|
|
42
|
-
export type TreasuryAddress = TransactionResult;
|
|
43
|
-
export type OrderObject = TransactionResult | string | TransactionArgument;
|
|
44
|
-
export type OrderAddress = TransactionResult;
|
|
45
|
-
export type DiscountObject = TransactionResult | string | TransactionArgument;
|
|
46
|
-
export type CoinObject = TransactionResult | string | TransactionArgument;
|
|
47
|
-
export type ResourceObject = TransactionResult | string | TransactionArgument;
|
|
48
|
-
export type ResourceAddress = TransactionResult;
|
|
49
|
-
export type EntityObject = TransactionResult | string | TransactionArgument;
|
|
50
|
-
export type EntityAddress = TransactionResult;
|
|
51
|
-
export type PaymentObject = TransactionResult | string | TransactionArgument;
|
|
52
|
-
export type PaymentAddress = TransactionResult;
|
|
53
|
-
export type ReceivedObject = TransactionResult | string | TransactionArgument;
|
|
54
|
-
export type CoinWrapperObject = TransactionResult;
|
|
55
|
-
export type TxbAddress = string | TransactionResult;
|
|
56
|
-
export type TxbObject = string | TransactionResult | TransactionArgument | GuardObject | RepositoryObject | PermissionObject | MachineObject | PassportObject | DemandObject | ServiceObject | OrderObject | DiscountObject | DemandObject | ResourceObject | EntityObject | ArbitrationObject | ArbObject | TreasuryObject;
|
|
57
|
-
export type WowokObject = TransactionResult;
|
|
58
|
-
export type FnCallType = `${string}::${string}::${string}`;
|
|
59
|
-
export declare enum OperatorType {
|
|
60
|
-
TYPE_QUERY = 1,// query wowok object
|
|
61
|
-
TYPE_NUMBER_ADD = 2,
|
|
62
|
-
TYPE_NUMBER_SUBTRACT = 3,
|
|
63
|
-
TYPE_NUMBER_MULTIPLY = 4,
|
|
64
|
-
TYPE_NUMBER_DEVIDE = 5,
|
|
65
|
-
TYPE_NUMBER_MOD = 6,
|
|
66
|
-
TYPE_NUMBER_ADDRESS = 7,
|
|
67
|
-
TYPE_STRING_LOWERCASE = 8,// string to lowercase
|
|
68
|
-
TYPE_LOGIC_AS_U256_GREATER = 11,
|
|
69
|
-
TYPE_LOGIC_AS_U256_GREATER_EQUAL = 12,
|
|
70
|
-
TYPE_LOGIC_AS_U256_LESSER = 13,
|
|
71
|
-
TYPE_LOGIC_AS_U256_LESSER_EQUAL = 14,
|
|
72
|
-
TYPE_LOGIC_AS_U256_EQUAL = 15,
|
|
73
|
-
TYPE_LOGIC_EQUAL = 16,// TYPE&DATA(vector<u8>) MUST BE EQUAL
|
|
74
|
-
TYPE_LOGIC_HAS_SUBSTRING = 17,// SUBSTRING
|
|
75
|
-
TYPE_LOGIC_NOT = 18,// NOT
|
|
76
|
-
TYPE_LOGIC_AND = 19,// AND
|
|
77
|
-
TYPE_LOGIC_OR = 20,// OR
|
|
78
|
-
TYPE_SAFE_U8 = 21,// convert number to u8
|
|
79
|
-
TYPE_SAFE_U16 = 22,// convert number to u16
|
|
80
|
-
TYPE_SAFE_U64 = 23
|
|
81
|
-
}
|
|
82
|
-
export declare const LogicsInfo: (string | OperatorType)[][];
|
|
83
|
-
export declare enum ValueType {
|
|
84
|
-
TYPE_BOOL = 100,
|
|
85
|
-
TYPE_ADDRESS = 101,
|
|
86
|
-
TYPE_STRING = 102,
|
|
87
|
-
TYPE_U8 = 103,
|
|
88
|
-
TYPE_U16 = 104,
|
|
89
|
-
TYPE_U64 = 105,
|
|
90
|
-
TYPE_U128 = 106,
|
|
91
|
-
TYPE_U256 = 107,
|
|
92
|
-
TYPE_VEC_BOOL = 108,
|
|
93
|
-
TYPE_VEC_ADDRESS = 109,
|
|
94
|
-
TYPE_VEC_STRING = 110,
|
|
95
|
-
TYPE_VEC_U8 = 111,
|
|
96
|
-
TYPE_VEC_U16 = 112,
|
|
97
|
-
TYPE_VEC_U64 = 113,
|
|
98
|
-
TYPE_VEC_U128 = 114,
|
|
99
|
-
TYPE_VEC_U256 = 115,
|
|
100
|
-
TYPE_VEC_VEC_U8 = 116
|
|
101
|
-
}
|
|
102
|
-
export declare enum RepositoryValueType {
|
|
103
|
-
Address = 200,
|
|
104
|
-
Address_Vec = 201,
|
|
105
|
-
PositiveNumber = 202,
|
|
106
|
-
PositiveNumber_Vec = 203,
|
|
107
|
-
String = 204,
|
|
108
|
-
String_Vec = 205,
|
|
109
|
-
Bool = 206
|
|
110
|
-
}
|
|
111
|
-
export declare const RepositoryValueTypeInfo: {
|
|
112
|
-
type: RepositoryValueType;
|
|
113
|
-
name: string;
|
|
114
|
-
description: string;
|
|
115
|
-
info: string;
|
|
116
|
-
}[];
|
|
117
|
-
export declare const OperatorTypeArray: number[];
|
|
118
|
-
export declare const ValueTypeArray: number[];
|
|
119
|
-
export declare const IsValidOperatorType: (type: number) => boolean;
|
|
120
|
-
export declare const IsValidValueType: (type: number) => boolean;
|
|
121
|
-
export declare const IsNumberType: (type: ValueType | any) => boolean;
|
|
122
|
-
export declare enum ContextType {
|
|
123
|
-
TYPE_SIGNER = 60,// address type; the signer address on verifying
|
|
124
|
-
TYPE_CLOCK = 61,// u64 type; On-chain time at validation
|
|
125
|
-
TYPE_GUARD = 62,// address type; the address of the guard being verified
|
|
126
|
-
TYPE_CONSTANT = 80,
|
|
127
|
-
TYPE_ORDER_PROGRESS = 30,
|
|
128
|
-
TYPE_ORDER_MACHINE = 31,
|
|
129
|
-
TYPE_ORDER_SERVICE = 32,
|
|
130
|
-
TYPE_PROGRESS_MACHINE = 33,
|
|
131
|
-
TYPE_ARB_ORDER = 34,
|
|
132
|
-
TYPE_ARB_ARBITRATION = 35,
|
|
133
|
-
TYPE_ARB_PROGRESS = 36,
|
|
134
|
-
TYPE_ARB_MACHINE = 37,
|
|
135
|
-
TYPE_ARB_SERVICE = 38
|
|
136
|
-
}
|
|
137
|
-
export declare const IsContextWitness: (type?: number | any) => boolean;
|
|
138
|
-
export declare const ContextWitnessRetType: (type?: number | any) => ValueType | undefined;
|
|
139
|
-
export type WitnessType = ContextType.TYPE_PROGRESS_MACHINE | ContextType.TYPE_ARB_ARBITRATION | ContextType.TYPE_ARB_MACHINE | ContextType.TYPE_ARB_ORDER | ContextType.TYPE_ARB_PROGRESS | ContextType.TYPE_ARB_SERVICE | ContextType.TYPE_ORDER_MACHINE | ContextType.TYPE_ORDER_PROGRESS | ContextType.TYPE_ORDER_SERVICE;
|
|
140
|
-
export declare const WitnessObjectModule: (type: WitnessType) => MODULES;
|
|
141
|
-
export declare const WitnessForModule: (type: WitnessType) => MODULES;
|
|
142
|
-
interface ValueTypeString {
|
|
143
|
-
type: ValueType | ContextType;
|
|
144
|
-
name: string;
|
|
145
|
-
description: string;
|
|
146
|
-
validator?: (value: any) => boolean;
|
|
147
|
-
}
|
|
148
|
-
export declare const SER_VALUE: ValueTypeString[];
|
|
149
|
-
export type Data_Type = ValueType | OperatorType | ContextType;
|
|
150
|
-
export declare enum ENTRYPOINT {
|
|
151
|
-
suimain = "sui mainnet",// sui mainnet
|
|
152
|
-
suitest = "sui testnet",// sui testnet
|
|
153
|
-
wowokmain = "wowok mainnet",// wowok mainnet
|
|
154
|
-
wowoktest = "wowok testnet"
|
|
155
|
-
}
|
|
156
|
-
export interface CoinTypeInfo extends CoinMetadata {
|
|
157
|
-
alias?: string;
|
|
158
|
-
type: string; /** type name for the coin (e.g., 0x168da5bf1f48dafc111b0a488fa454aca95e0b5e::usdc::USDC) */
|
|
159
|
-
}
|
|
160
|
-
export interface NetworkInfo {
|
|
161
|
-
network: ENTRYPOINT;
|
|
162
|
-
url: string;
|
|
163
|
-
}
|
|
164
|
-
export declare class Protocol {
|
|
165
|
-
protected network?: ENTRYPOINT;
|
|
166
|
-
protected packages: Map<string, string>;
|
|
167
|
-
protected signer: string;
|
|
168
|
-
protected wowok_object: string;
|
|
169
|
-
protected entity_object: string;
|
|
170
|
-
protected treasury_cap: string;
|
|
171
|
-
protected oracle_object: string;
|
|
172
|
-
protected txb: TransactionBlock | undefined;
|
|
173
|
-
protected static _instance: Protocol;
|
|
174
|
-
constructor();
|
|
175
|
-
static Instance(network?: ENTRYPOINT, def?: ENTRYPOINT): Protocol;
|
|
176
|
-
static Client(network?: ENTRYPOINT): SuiClient;
|
|
177
|
-
use_network(network: ENTRYPOINT): void;
|
|
178
|
-
package(type: string): string;
|
|
179
|
-
objectWowok(): string;
|
|
180
|
-
objectEntity(): string;
|
|
181
|
-
objectOracle(): string;
|
|
182
|
-
objectTreasuryCap(): string;
|
|
183
|
-
IsNetworkValid(): boolean;
|
|
184
|
-
networkEntrypoint(): ENTRYPOINT | undefined;
|
|
185
|
-
networkUrl(network?: ENTRYPOINT): NetworkInfo | undefined;
|
|
186
|
-
IsPlatformToken(token?: string, network?: ENTRYPOINT): boolean;
|
|
187
|
-
platformToken(network?: ENTRYPOINT): string;
|
|
188
|
-
machineFn: (fn: any) => string;
|
|
189
|
-
baseMachineFn: (fn: any) => string;
|
|
190
|
-
progressFn: (fn: any) => string;
|
|
191
|
-
baseRepositoryFn: (fn: any) => string;
|
|
192
|
-
repositoryFn: (fn: any) => string;
|
|
193
|
-
permissionFn: (fn: any) => string;
|
|
194
|
-
passportFn: (fn: any) => string;
|
|
195
|
-
demandFn: (fn: any) => string;
|
|
196
|
-
orderFn: (fn: any) => string;
|
|
197
|
-
serviceFn: (fn: any) => string;
|
|
198
|
-
resourceFn: (fn: any) => string;
|
|
199
|
-
entityFn: (fn: any) => string;
|
|
200
|
-
wowokFn: (fn: any) => string;
|
|
201
|
-
treasuryFn: (fn: any) => string;
|
|
202
|
-
paymentFn: (fn: any) => string;
|
|
203
|
-
guardFn: (fn: any) => string;
|
|
204
|
-
baseWowokFn: (fn: any) => string;
|
|
205
|
-
arbitrationFn: (fn: any) => string;
|
|
206
|
-
arbFn: (fn: any) => string;
|
|
207
|
-
query: (objects: Query_Param[], options?: SuiObjectDataOptions, network?: ENTRYPOINT) => Promise<SuiObjectResponse[]>;
|
|
208
|
-
query_raw: (objects: string[], options?: SuiObjectDataOptions, network?: ENTRYPOINT) => Promise<SuiObjectResponse[]>;
|
|
209
|
-
new_session: () => TransactionBlock;
|
|
210
|
-
sessionCurrent: () => TransactionBlock;
|
|
211
|
-
sign_excute: (exes: ((protocol: Protocol, param: any) => void)[], priv_key: string, param?: any, options?: SuiTransactionBlockResponseOptions, network?: ENTRYPOINT) => Promise<SuiTransactionBlockResponse>;
|
|
212
|
-
static SUI_TOKEN_TYPE: string;
|
|
213
|
-
static SUI_COIN_TYPE: string;
|
|
214
|
-
WOWOK_TOKEN_TYPE: () => string;
|
|
215
|
-
WOWOK_COIN_TYPE: () => string;
|
|
216
|
-
COINS_TYPE: () => CoinTypeInfo[];
|
|
217
|
-
update_coinType: (coinType: CoinTypeInfo, network?: ENTRYPOINT) => void;
|
|
218
|
-
explorerUrl: (objectid: string, type?: "object" | "txblock" | "account") => string;
|
|
219
|
-
CoinTypes_Testnet: CoinTypeInfo[];
|
|
220
|
-
CoinTypes_Mainnet: CoinTypeInfo[];
|
|
221
|
-
coinTypeInfo: (token_type: string, handler: (info: CoinTypeInfo) => void, network?: ENTRYPOINT) => CoinTypeInfo | "loading";
|
|
222
|
-
static CLOCK_OBJECT: {
|
|
223
|
-
objectId: string;
|
|
224
|
-
mutable: boolean;
|
|
225
|
-
initialSharedVersion: number;
|
|
226
|
-
};
|
|
227
|
-
static TXB_OBJECT(txb: TransactionBlock, arg: TxbObject): TransactionArgument;
|
|
228
|
-
static IsValidObjects: (arr: TxbObject[]) => boolean;
|
|
229
|
-
WOWOK_OBJECTS_TYPE: () => string[];
|
|
230
|
-
WOWOK_OBJECTS_PREFIX_TYPE: () => string[];
|
|
231
|
-
hasPackage(pack: string): boolean;
|
|
232
|
-
object_name_from_type_repr: (type_repr: string) => string;
|
|
233
|
-
module_object_name_from_type_repr: (type_repr: string) => string;
|
|
234
|
-
}
|
|
235
|
-
export declare class RpcResultParser {
|
|
236
|
-
static Object_Type_Extra: () => string[];
|
|
237
|
-
static objectids_from_response: (protocol: Protocol, response: SuiTransactionBlockResponse, concat_result?: Map<string, TxbObject[]>) => Map<string, TxbObject[]>;
|
|
238
|
-
}
|
|
239
|
-
export type Query_Param = {
|
|
240
|
-
objectid: string;
|
|
241
|
-
callback: (protocol: Protocol, response: SuiObjectResponse, param: Query_Param, option: SuiObjectDataOptions) => void;
|
|
242
|
-
parser?: (result: any[], guardid: string, chain_sense_bsc: Uint8Array, constant?: GuardConstant) => boolean;
|
|
243
|
-
data?: any;
|
|
244
|
-
constants?: GuardConstant;
|
|
245
|
-
};
|
|
246
|
-
export {};
|
|
247
|
-
//# sourceMappingURL=protocol.d.ts.map
|
package/dist/protocol.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../src/protocol.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,kCAAkC,EAC3F,2BAA2B,EAAE,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAEzE,OAAO,EAAE,WAAW,IAAI,gBAAgB,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAEnH,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;A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