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
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __typeError = (msg) => {
|
|
3
|
+
throw TypeError(msg);
|
|
4
|
+
};
|
|
5
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
6
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
7
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
8
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
9
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
10
|
+
var _queue, _queue2;
|
|
11
|
+
class SerialQueue {
|
|
12
|
+
constructor() {
|
|
13
|
+
__privateAdd(this, _queue, []);
|
|
14
|
+
}
|
|
15
|
+
async runTask(task) {
|
|
16
|
+
return new Promise((resolve, reject) => {
|
|
17
|
+
__privateGet(this, _queue).push(() => {
|
|
18
|
+
task().finally(() => {
|
|
19
|
+
__privateGet(this, _queue).shift();
|
|
20
|
+
if (__privateGet(this, _queue).length > 0) {
|
|
21
|
+
__privateGet(this, _queue)[0]();
|
|
22
|
+
}
|
|
23
|
+
}).then(resolve, reject);
|
|
24
|
+
});
|
|
25
|
+
if (__privateGet(this, _queue).length === 1) {
|
|
26
|
+
__privateGet(this, _queue)[0]();
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
_queue = new WeakMap();
|
|
32
|
+
class ParallelQueue {
|
|
33
|
+
constructor(maxTasks) {
|
|
34
|
+
__privateAdd(this, _queue2, []);
|
|
35
|
+
__publicField(this, "activeTasks", 0);
|
|
36
|
+
__publicField(this, "maxTasks");
|
|
37
|
+
this.maxTasks = maxTasks;
|
|
38
|
+
}
|
|
39
|
+
runTask(task) {
|
|
40
|
+
return new Promise((resolve, reject) => {
|
|
41
|
+
if (this.activeTasks < this.maxTasks) {
|
|
42
|
+
this.activeTasks++;
|
|
43
|
+
task().finally(() => {
|
|
44
|
+
if (__privateGet(this, _queue2).length > 0) {
|
|
45
|
+
__privateGet(this, _queue2).shift()();
|
|
46
|
+
} else {
|
|
47
|
+
this.activeTasks--;
|
|
48
|
+
}
|
|
49
|
+
}).then(resolve, reject);
|
|
50
|
+
} else {
|
|
51
|
+
__privateGet(this, _queue2).push(() => {
|
|
52
|
+
task().finally(() => {
|
|
53
|
+
if (__privateGet(this, _queue2).length > 0) {
|
|
54
|
+
__privateGet(this, _queue2).shift()();
|
|
55
|
+
} else {
|
|
56
|
+
this.activeTasks--;
|
|
57
|
+
}
|
|
58
|
+
}).then(resolve, reject);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
_queue2 = new WeakMap();
|
|
65
|
+
export {
|
|
66
|
+
ParallelQueue,
|
|
67
|
+
SerialQueue
|
|
68
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { bcs } from "../../bcs/index.js";
|
|
2
|
+
import type { SuiClient, SuiTransactionBlockResponseOptions } from "../../client/index.js";
|
|
3
|
+
import type { Signer } from "../../cryptography/keypair.js";
|
|
4
|
+
import type { ObjectCacheOptions } from "../ObjectCache.js";
|
|
5
|
+
import { Transaction } from "../Transaction.js";
|
|
6
|
+
export declare class SerialTransactionExecutor {
|
|
7
|
+
#private;
|
|
8
|
+
constructor({ signer, defaultGasBudget, ...options }: Omit<ObjectCacheOptions, "address"> & {
|
|
9
|
+
client: SuiClient;
|
|
10
|
+
signer: Signer;
|
|
11
|
+
/** The gasBudget to use if the transaction has not defined it's own gasBudget, defaults to `50_000_000n` */
|
|
12
|
+
defaultGasBudget?: bigint;
|
|
13
|
+
});
|
|
14
|
+
applyEffects(effects: typeof bcs.TransactionEffects.$inferType): Promise<void>;
|
|
15
|
+
buildTransaction(transaction: Transaction): Promise<Uint8Array<ArrayBuffer>>;
|
|
16
|
+
resetCache(): Promise<void>;
|
|
17
|
+
waitForLastTransaction(): Promise<void>;
|
|
18
|
+
executeTransaction(transaction: Transaction | Uint8Array, options?: SuiTransactionBlockResponseOptions, additionalSignatures?: string[]): Promise<{
|
|
19
|
+
digest: string;
|
|
20
|
+
effects: string;
|
|
21
|
+
data: import("../../client/index.js").SuiTransactionBlockResponse;
|
|
22
|
+
}>;
|
|
23
|
+
}
|
|
24
|
+
export declare function getGasCoinFromEffects(effects: typeof bcs.TransactionEffects.$inferType): {
|
|
25
|
+
ref: {
|
|
26
|
+
objectId: string;
|
|
27
|
+
digest: string;
|
|
28
|
+
version: string;
|
|
29
|
+
};
|
|
30
|
+
owner: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
var __typeError = (msg) => {
|
|
2
|
+
throw TypeError(msg);
|
|
3
|
+
};
|
|
4
|
+
var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
|
|
5
|
+
var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj));
|
|
6
|
+
var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
7
|
+
var __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value);
|
|
8
|
+
var _queue, _signer, _cache, _defaultGasBudget, _cacheGasCoin, _buildTransaction;
|
|
9
|
+
import { toBase64 } from "@mysten/bcs";
|
|
10
|
+
import { isTransaction, Transaction } from "../Transaction.js";
|
|
11
|
+
import { CachingTransactionExecutor } from "./caching.js";
|
|
12
|
+
import { SerialQueue } from "./queue.js";
|
|
13
|
+
class SerialTransactionExecutor {
|
|
14
|
+
constructor({
|
|
15
|
+
signer,
|
|
16
|
+
defaultGasBudget = 50000000n,
|
|
17
|
+
...options
|
|
18
|
+
}) {
|
|
19
|
+
__privateAdd(this, _queue, new SerialQueue());
|
|
20
|
+
__privateAdd(this, _signer);
|
|
21
|
+
__privateAdd(this, _cache);
|
|
22
|
+
__privateAdd(this, _defaultGasBudget);
|
|
23
|
+
__privateAdd(this, _cacheGasCoin, async (effects) => {
|
|
24
|
+
if (!effects.V2) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const gasCoin = getGasCoinFromEffects(effects).ref;
|
|
28
|
+
if (gasCoin) {
|
|
29
|
+
__privateGet(this, _cache).cache.setCustom("gasCoin", gasCoin);
|
|
30
|
+
} else {
|
|
31
|
+
__privateGet(this, _cache).cache.deleteCustom("gasCoin");
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
__privateAdd(this, _buildTransaction, async (transaction) => {
|
|
35
|
+
const gasCoin = await __privateGet(this, _cache).cache.getCustom("gasCoin");
|
|
36
|
+
const copy = Transaction.from(transaction);
|
|
37
|
+
if (gasCoin) {
|
|
38
|
+
copy.setGasPayment([gasCoin]);
|
|
39
|
+
}
|
|
40
|
+
copy.setGasBudgetIfNotSet(__privateGet(this, _defaultGasBudget));
|
|
41
|
+
copy.setSenderIfNotSet(__privateGet(this, _signer).toWAddress());
|
|
42
|
+
return __privateGet(this, _cache).buildTransaction({ transaction: copy });
|
|
43
|
+
});
|
|
44
|
+
__privateSet(this, _signer, signer);
|
|
45
|
+
__privateSet(this, _defaultGasBudget, defaultGasBudget);
|
|
46
|
+
__privateSet(this, _cache, new CachingTransactionExecutor({
|
|
47
|
+
client: options.client,
|
|
48
|
+
cache: options.cache,
|
|
49
|
+
onEffects: (effects) => __privateGet(this, _cacheGasCoin).call(this, effects)
|
|
50
|
+
}));
|
|
51
|
+
}
|
|
52
|
+
async applyEffects(effects) {
|
|
53
|
+
return __privateGet(this, _cache).applyEffects(effects);
|
|
54
|
+
}
|
|
55
|
+
async buildTransaction(transaction) {
|
|
56
|
+
return __privateGet(this, _queue).runTask(() => __privateGet(this, _buildTransaction).call(this, transaction));
|
|
57
|
+
}
|
|
58
|
+
resetCache() {
|
|
59
|
+
return __privateGet(this, _cache).reset();
|
|
60
|
+
}
|
|
61
|
+
waitForLastTransaction() {
|
|
62
|
+
return __privateGet(this, _cache).waitForLastTransaction();
|
|
63
|
+
}
|
|
64
|
+
executeTransaction(transaction, options, additionalSignatures = []) {
|
|
65
|
+
return __privateGet(this, _queue).runTask(async () => {
|
|
66
|
+
const bytes = isTransaction(transaction) ? await __privateGet(this, _buildTransaction).call(this, transaction) : transaction;
|
|
67
|
+
const { signature } = await __privateGet(this, _signer).signTransaction(bytes);
|
|
68
|
+
const results = await __privateGet(this, _cache).executeTransaction({
|
|
69
|
+
signature: [signature, ...additionalSignatures],
|
|
70
|
+
transaction: bytes,
|
|
71
|
+
options
|
|
72
|
+
}).catch(async (error) => {
|
|
73
|
+
await this.resetCache();
|
|
74
|
+
throw error;
|
|
75
|
+
});
|
|
76
|
+
const effectsBytes = Uint8Array.from(results.rawEffects);
|
|
77
|
+
return {
|
|
78
|
+
digest: results.digest,
|
|
79
|
+
effects: toBase64(effectsBytes),
|
|
80
|
+
data: results
|
|
81
|
+
};
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
_queue = new WeakMap();
|
|
86
|
+
_signer = new WeakMap();
|
|
87
|
+
_cache = new WeakMap();
|
|
88
|
+
_defaultGasBudget = new WeakMap();
|
|
89
|
+
_cacheGasCoin = new WeakMap();
|
|
90
|
+
_buildTransaction = new WeakMap();
|
|
91
|
+
function getGasCoinFromEffects(effects) {
|
|
92
|
+
if (!effects.V2) {
|
|
93
|
+
throw new Error("Unexpected effects version");
|
|
94
|
+
}
|
|
95
|
+
const gasObjectChange = effects.V2.changedObjects[effects.V2.gasObjectIndex];
|
|
96
|
+
if (!gasObjectChange) {
|
|
97
|
+
throw new Error("Gas object not found in effects");
|
|
98
|
+
}
|
|
99
|
+
const [objectId, { outputState }] = gasObjectChange;
|
|
100
|
+
if (!outputState.ObjectWrite) {
|
|
101
|
+
throw new Error("Unexpected gas object state");
|
|
102
|
+
}
|
|
103
|
+
const [digest, owner] = outputState.ObjectWrite;
|
|
104
|
+
return {
|
|
105
|
+
ref: {
|
|
106
|
+
objectId,
|
|
107
|
+
digest,
|
|
108
|
+
version: effects.V2.lamportVersion
|
|
109
|
+
},
|
|
110
|
+
owner: owner.AddressOwner || owner.ObjectOwner
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
export {
|
|
114
|
+
SerialTransactionExecutor,
|
|
115
|
+
getGasCoinFromEffects
|
|
116
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { blake2b } from "@noble/hashes/blake2b";
|
|
2
|
+
function hashTypedData(typeTag, data) {
|
|
3
|
+
const typeTagBytes = Array.from(`${typeTag}::`).map((e) => e.charCodeAt(0));
|
|
4
|
+
const dataWithTag = new Uint8Array(typeTagBytes.length + data.length);
|
|
5
|
+
dataWithTag.set(typeTagBytes);
|
|
6
|
+
dataWithTag.set(data, typeTagBytes.length);
|
|
7
|
+
return blake2b(dataWithTag, { dkLen: 32 });
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
hashTypedData
|
|
11
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NamedPackagesOverrides } from "./plugins/NamedPackagesPlugin.js";
|
|
2
|
+
export { normalizedTypeToMoveTypeSignature, getPureBcsSchema, } from "./serializer.js";
|
|
3
|
+
export { Inputs } from "./Inputs.js";
|
|
4
|
+
export { Commands, type TransactionArgument, type TransactionInput, UpgradePolicy, } from "./Commands.js";
|
|
5
|
+
export { Transaction, isTransaction, type TransactionObjectInput, type TransactionObjectArgument, type TransactionResult, } from "./Transaction.js";
|
|
6
|
+
export { type SerializedTransactionDataV2 } from "./data/v2.js";
|
|
7
|
+
export { type SerializedTransactionDataV1 } from "./data/v1.js";
|
|
8
|
+
export type { TransactionData, Argument, ObjectRef, GasData, CallArg, Command, OpenMoveTypeSignature, OpenMoveTypeSignatureBody, } from "./data/internal.js";
|
|
9
|
+
export { TransactionDataBuilder } from "./TransactionData.js";
|
|
10
|
+
export { ObjectCache, AsyncCache } from "./ObjectCache.js";
|
|
11
|
+
export { SerialTransactionExecutor } from "./executor/serial.js";
|
|
12
|
+
export { ParallelTransactionExecutor } from "./executor/parallel.js";
|
|
13
|
+
export type { ParallelTransactionExecutorOptions } from "./executor/parallel.js";
|
|
14
|
+
export { coinWithBalance } from "./intents/CoinWithBalance.js";
|
|
15
|
+
export type { BuildTransactionOptions, SerializeTransactionOptions, TransactionPlugin, } from "./resolve.js";
|
|
16
|
+
export { Arguments } from "./Arguments.js";
|
|
17
|
+
export { namedPackagesPlugin, type NamedPackagesPluginOptions, } from "./plugins/NamedPackagesPlugin.js";
|
|
18
|
+
export type { NamedPackagesOverrides };
|
|
19
|
+
/** @deprecated Use NamedPackagesOverrides instead */
|
|
20
|
+
export type NamedPackagesPluginCache = NamedPackagesOverrides;
|
|
21
|
+
export { isArgument } from "./utils.js";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
normalizedTypeToMoveTypeSignature,
|
|
3
|
+
getPureBcsSchema
|
|
4
|
+
} from "./serializer.js";
|
|
5
|
+
import { Inputs } from "./Inputs.js";
|
|
6
|
+
import {
|
|
7
|
+
Commands,
|
|
8
|
+
UpgradePolicy
|
|
9
|
+
} from "./Commands.js";
|
|
10
|
+
import {
|
|
11
|
+
Transaction,
|
|
12
|
+
isTransaction
|
|
13
|
+
} from "./Transaction.js";
|
|
14
|
+
import { TransactionDataBuilder } from "./TransactionData.js";
|
|
15
|
+
import { ObjectCache, AsyncCache } from "./ObjectCache.js";
|
|
16
|
+
import { SerialTransactionExecutor } from "./executor/serial.js";
|
|
17
|
+
import { ParallelTransactionExecutor } from "./executor/parallel.js";
|
|
18
|
+
import { coinWithBalance } from "./intents/CoinWithBalance.js";
|
|
19
|
+
import { Arguments } from "./Arguments.js";
|
|
20
|
+
import {
|
|
21
|
+
namedPackagesPlugin
|
|
22
|
+
} from "./plugins/NamedPackagesPlugin.js";
|
|
23
|
+
import { isArgument } from "./utils.js";
|
|
24
|
+
export {
|
|
25
|
+
Arguments,
|
|
26
|
+
AsyncCache,
|
|
27
|
+
Commands,
|
|
28
|
+
Inputs,
|
|
29
|
+
ObjectCache,
|
|
30
|
+
ParallelTransactionExecutor,
|
|
31
|
+
SerialTransactionExecutor,
|
|
32
|
+
Transaction,
|
|
33
|
+
TransactionDataBuilder,
|
|
34
|
+
UpgradePolicy,
|
|
35
|
+
coinWithBalance,
|
|
36
|
+
getPureBcsSchema,
|
|
37
|
+
isArgument,
|
|
38
|
+
isTransaction,
|
|
39
|
+
namedPackagesPlugin,
|
|
40
|
+
normalizedTypeToMoveTypeSignature
|
|
41
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { SuiClient } from "../../client/index.js";
|
|
2
|
+
import type { BuildTransactionOptions } from "../resolve.js";
|
|
3
|
+
import type { Transaction, TransactionResult } from "../Transaction.js";
|
|
4
|
+
export declare function coinWithBalance({ type, balance, useGasCoin, }: {
|
|
5
|
+
balance: bigint | number;
|
|
6
|
+
type?: string;
|
|
7
|
+
useGasCoin?: boolean;
|
|
8
|
+
}): (tx: Transaction) => TransactionResult;
|
|
9
|
+
export declare function getSuiClient(options: BuildTransactionOptions): SuiClient;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { bigint, object, parse, string } from "valibot";
|
|
2
|
+
import { bcs } from "../../bcs/index.js";
|
|
3
|
+
import { normalizeStructTag } from "../../utils/sui-types.js";
|
|
4
|
+
import { Commands } from "../Commands.js";
|
|
5
|
+
import { Inputs } from "../Inputs.js";
|
|
6
|
+
import { getClient } from "../resolve.js";
|
|
7
|
+
const COIN_WITH_BALANCE = "CoinWithBalance";
|
|
8
|
+
const SUI_TYPE = normalizeStructTag("0x2::sui::SUI");
|
|
9
|
+
function coinWithBalance({
|
|
10
|
+
type = SUI_TYPE,
|
|
11
|
+
balance,
|
|
12
|
+
useGasCoin = true
|
|
13
|
+
}) {
|
|
14
|
+
let coinResult = null;
|
|
15
|
+
return (tx) => {
|
|
16
|
+
if (coinResult) {
|
|
17
|
+
return coinResult;
|
|
18
|
+
}
|
|
19
|
+
tx.addIntentResolver(COIN_WITH_BALANCE, resolveCoinBalance);
|
|
20
|
+
const coinType = type === "gas" ? type : normalizeStructTag(type);
|
|
21
|
+
coinResult = tx.add(
|
|
22
|
+
Commands.Intent({
|
|
23
|
+
name: COIN_WITH_BALANCE,
|
|
24
|
+
inputs: {},
|
|
25
|
+
data: {
|
|
26
|
+
type: coinType === SUI_TYPE && useGasCoin ? "gas" : coinType,
|
|
27
|
+
balance: BigInt(balance)
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
);
|
|
31
|
+
return coinResult;
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
const CoinWithBalanceData = object({
|
|
35
|
+
type: string(),
|
|
36
|
+
balance: bigint()
|
|
37
|
+
});
|
|
38
|
+
async function resolveCoinBalance(transactionData, buildOptions, next) {
|
|
39
|
+
const coinTypes = /* @__PURE__ */ new Set();
|
|
40
|
+
const totalByType = /* @__PURE__ */ new Map();
|
|
41
|
+
if (!transactionData.sender) {
|
|
42
|
+
throw new Error("Sender must be set to resolve CoinWithBalance");
|
|
43
|
+
}
|
|
44
|
+
for (const command of transactionData.commands) {
|
|
45
|
+
if (command.$kind === "$Intent" && command.$Intent.name === COIN_WITH_BALANCE) {
|
|
46
|
+
const { type, balance } = parse(
|
|
47
|
+
CoinWithBalanceData,
|
|
48
|
+
command.$Intent.data
|
|
49
|
+
);
|
|
50
|
+
if (type !== "gas" && balance > 0n) {
|
|
51
|
+
coinTypes.add(type);
|
|
52
|
+
}
|
|
53
|
+
totalByType.set(type, (totalByType.get(type) ?? 0n) + balance);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
const usedIds = /* @__PURE__ */ new Set();
|
|
57
|
+
for (const input of transactionData.inputs) {
|
|
58
|
+
if (input.Object?.ImmOrOwnedObject) {
|
|
59
|
+
usedIds.add(input.Object.ImmOrOwnedObject.objectId);
|
|
60
|
+
}
|
|
61
|
+
if (input.UnresolvedObject?.objectId) {
|
|
62
|
+
usedIds.add(input.UnresolvedObject.objectId);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const coinsByType = /* @__PURE__ */ new Map();
|
|
66
|
+
const client = getSuiClient(buildOptions);
|
|
67
|
+
await Promise.all(
|
|
68
|
+
[...coinTypes].map(async (coinType) => {
|
|
69
|
+
coinsByType.set(
|
|
70
|
+
coinType,
|
|
71
|
+
await getCoinsOfType({
|
|
72
|
+
coinType,
|
|
73
|
+
balance: totalByType.get(coinType),
|
|
74
|
+
client,
|
|
75
|
+
owner: transactionData.sender,
|
|
76
|
+
usedIds
|
|
77
|
+
})
|
|
78
|
+
);
|
|
79
|
+
})
|
|
80
|
+
);
|
|
81
|
+
const mergedCoins = /* @__PURE__ */ new Map();
|
|
82
|
+
mergedCoins.set("gas", { $kind: "GasCoin", GasCoin: true });
|
|
83
|
+
for (const [index, transaction] of transactionData.commands.entries()) {
|
|
84
|
+
if (transaction.$kind !== "$Intent" || transaction.$Intent.name !== COIN_WITH_BALANCE) {
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
const { type, balance } = transaction.$Intent.data;
|
|
88
|
+
if (balance === 0n && type !== "gas") {
|
|
89
|
+
transactionData.replaceCommand(
|
|
90
|
+
index,
|
|
91
|
+
Commands.MoveCall({
|
|
92
|
+
target: "0x2::coin::zero",
|
|
93
|
+
typeArguments: [type]
|
|
94
|
+
})
|
|
95
|
+
);
|
|
96
|
+
continue;
|
|
97
|
+
}
|
|
98
|
+
const commands = [];
|
|
99
|
+
if (!mergedCoins.has(type)) {
|
|
100
|
+
const [first, ...rest] = coinsByType.get(type).map(
|
|
101
|
+
(coin) => transactionData.addInput(
|
|
102
|
+
"object",
|
|
103
|
+
Inputs.ObjectRef({
|
|
104
|
+
objectId: coin.coinObjectId,
|
|
105
|
+
digest: coin.digest,
|
|
106
|
+
version: coin.version
|
|
107
|
+
})
|
|
108
|
+
)
|
|
109
|
+
);
|
|
110
|
+
if (rest.length > 0) {
|
|
111
|
+
commands.push(Commands.MergeCoins(first, rest));
|
|
112
|
+
}
|
|
113
|
+
mergedCoins.set(type, first);
|
|
114
|
+
}
|
|
115
|
+
commands.push(
|
|
116
|
+
Commands.SplitCoins(mergedCoins.get(type), [
|
|
117
|
+
transactionData.addInput(
|
|
118
|
+
"pure",
|
|
119
|
+
Inputs.Pure(bcs.u64().serialize(balance))
|
|
120
|
+
)
|
|
121
|
+
])
|
|
122
|
+
);
|
|
123
|
+
transactionData.replaceCommand(index, commands);
|
|
124
|
+
transactionData.mapArguments((arg) => {
|
|
125
|
+
if (arg.$kind === "Result" && arg.Result === index) {
|
|
126
|
+
return {
|
|
127
|
+
$kind: "NestedResult",
|
|
128
|
+
NestedResult: [index + commands.length - 1, 0]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
return arg;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
return next();
|
|
135
|
+
}
|
|
136
|
+
async function getCoinsOfType({
|
|
137
|
+
coinType,
|
|
138
|
+
balance,
|
|
139
|
+
client,
|
|
140
|
+
owner,
|
|
141
|
+
usedIds
|
|
142
|
+
}) {
|
|
143
|
+
let remainingBalance = balance;
|
|
144
|
+
const coins = [];
|
|
145
|
+
return loadMoreCoins();
|
|
146
|
+
async function loadMoreCoins(cursor = null) {
|
|
147
|
+
const { data, hasNextPage, nextCursor } = await client.getCoins({
|
|
148
|
+
owner,
|
|
149
|
+
coinType,
|
|
150
|
+
cursor
|
|
151
|
+
});
|
|
152
|
+
const sortedCoins = data.sort(
|
|
153
|
+
(a, b) => Number(BigInt(b.balance) - BigInt(a.balance))
|
|
154
|
+
);
|
|
155
|
+
for (const coin of sortedCoins) {
|
|
156
|
+
if (usedIds.has(coin.coinObjectId)) {
|
|
157
|
+
continue;
|
|
158
|
+
}
|
|
159
|
+
const coinBalance = BigInt(coin.balance);
|
|
160
|
+
coins.push(coin);
|
|
161
|
+
remainingBalance -= coinBalance;
|
|
162
|
+
if (remainingBalance <= 0) {
|
|
163
|
+
return coins;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
if (hasNextPage) {
|
|
167
|
+
return loadMoreCoins(nextCursor);
|
|
168
|
+
}
|
|
169
|
+
throw new Error(
|
|
170
|
+
`Not enough coins of type ${coinType} to satisfy requested balance`
|
|
171
|
+
);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
function getSuiClient(options) {
|
|
175
|
+
const client = getClient(options);
|
|
176
|
+
if (!client.jsonRpc) {
|
|
177
|
+
throw new Error(
|
|
178
|
+
`CoinWithBalance intent currently only works with SuiClient`
|
|
179
|
+
);
|
|
180
|
+
}
|
|
181
|
+
return client;
|
|
182
|
+
}
|
|
183
|
+
export {
|
|
184
|
+
coinWithBalance,
|
|
185
|
+
getSuiClient
|
|
186
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Transaction, TransactionObjectInput } from "./Transaction.js";
|
|
2
|
+
export declare function createObjectMethods<T>(makeObject: (value: TransactionObjectInput) => T): {
|
|
3
|
+
(value: TransactionObjectInput): T;
|
|
4
|
+
system(options?: {
|
|
5
|
+
mutable?: boolean;
|
|
6
|
+
}): T;
|
|
7
|
+
clock(): T;
|
|
8
|
+
random(): T;
|
|
9
|
+
denyList(options?: {
|
|
10
|
+
mutable?: boolean;
|
|
11
|
+
}): T;
|
|
12
|
+
registrar(options?: {
|
|
13
|
+
mutable?: boolean;
|
|
14
|
+
}): T;
|
|
15
|
+
mutRegistrar(): T;
|
|
16
|
+
entity(options?: {
|
|
17
|
+
mutable?: boolean;
|
|
18
|
+
}): T;
|
|
19
|
+
mutEntity(): T;
|
|
20
|
+
option({ type, value, }: {
|
|
21
|
+
type: string;
|
|
22
|
+
value: TransactionObjectInput | null;
|
|
23
|
+
}): (tx: Transaction) => import("./Transaction.js").TransactionResult;
|
|
24
|
+
};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Inputs } from "./Inputs.js";
|
|
2
|
+
function createObjectMethods(makeObject) {
|
|
3
|
+
function object(value) {
|
|
4
|
+
return makeObject(value);
|
|
5
|
+
}
|
|
6
|
+
object.system = (options) => {
|
|
7
|
+
const mutable = options?.mutable;
|
|
8
|
+
if (mutable !== void 0) {
|
|
9
|
+
return object(
|
|
10
|
+
Inputs.SharedObjectRef({
|
|
11
|
+
objectId: "0x5",
|
|
12
|
+
initialSharedVersion: 1,
|
|
13
|
+
mutable
|
|
14
|
+
})
|
|
15
|
+
);
|
|
16
|
+
}
|
|
17
|
+
return object({
|
|
18
|
+
$kind: "UnresolvedObject",
|
|
19
|
+
UnresolvedObject: {
|
|
20
|
+
objectId: "0x5",
|
|
21
|
+
initialSharedVersion: 1
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
object.clock = () => object(
|
|
26
|
+
Inputs.SharedObjectRef({
|
|
27
|
+
objectId: "0x6",
|
|
28
|
+
initialSharedVersion: 1,
|
|
29
|
+
mutable: false
|
|
30
|
+
})
|
|
31
|
+
);
|
|
32
|
+
object.random = () => object({
|
|
33
|
+
$kind: "UnresolvedObject",
|
|
34
|
+
UnresolvedObject: {
|
|
35
|
+
objectId: "0x8",
|
|
36
|
+
mutable: false
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
object.denyList = (options) => {
|
|
40
|
+
return object({
|
|
41
|
+
$kind: "UnresolvedObject",
|
|
42
|
+
UnresolvedObject: {
|
|
43
|
+
objectId: "0x403",
|
|
44
|
+
mutable: options?.mutable
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
object.registrar = (options) => {
|
|
49
|
+
return object({
|
|
50
|
+
$kind: "UnresolvedObject",
|
|
51
|
+
UnresolvedObject: {
|
|
52
|
+
objectId: "0xaaa",
|
|
53
|
+
mutable: options?.mutable
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
object.mutRegistrar = () => {
|
|
58
|
+
return object({
|
|
59
|
+
$kind: "UnresolvedObject",
|
|
60
|
+
UnresolvedObject: {
|
|
61
|
+
objectId: "0xaaa",
|
|
62
|
+
mutable: true
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
object.entity = (options) => {
|
|
67
|
+
return object({
|
|
68
|
+
$kind: "UnresolvedObject",
|
|
69
|
+
UnresolvedObject: {
|
|
70
|
+
objectId: "0xaab",
|
|
71
|
+
mutable: options?.mutable
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
object.mutEntity = () => {
|
|
76
|
+
return object({
|
|
77
|
+
$kind: "UnresolvedObject",
|
|
78
|
+
UnresolvedObject: {
|
|
79
|
+
objectId: "0xaab",
|
|
80
|
+
mutable: true
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
object.option = ({
|
|
85
|
+
type,
|
|
86
|
+
value
|
|
87
|
+
}) => (tx) => tx.moveCall({
|
|
88
|
+
typeArguments: [type],
|
|
89
|
+
target: `0x1::option::${value === null ? "none" : "some"}`,
|
|
90
|
+
arguments: value === null ? [] : [tx.object(value)]
|
|
91
|
+
});
|
|
92
|
+
return object;
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
createObjectMethods
|
|
96
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { BuildTransactionOptions } from "../resolve.js";
|
|
2
|
+
import type { TransactionDataBuilder } from "../TransactionData.js";
|
|
3
|
+
export type NamedPackagesPluginOptions = {
|
|
4
|
+
/**
|
|
5
|
+
* The URL of the MVR API to use for resolving names.
|
|
6
|
+
* @deprecated MVR support has been disabled
|
|
7
|
+
*/
|
|
8
|
+
url?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The number of names to resolve in each batch request.
|
|
11
|
+
* @deprecated MVR support has been disabled
|
|
12
|
+
*/
|
|
13
|
+
pageSize?: number;
|
|
14
|
+
/**
|
|
15
|
+
* Local overrides for the resolution plugin.
|
|
16
|
+
* @deprecated MVR support has been disabled
|
|
17
|
+
*/
|
|
18
|
+
overrides?: NamedPackagesOverrides;
|
|
19
|
+
};
|
|
20
|
+
export type NamedPackagesOverrides = {
|
|
21
|
+
packages?: Record<string, string>;
|
|
22
|
+
types?: Record<string, string>;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated MVR support has been disabled. This plugin now passes through without any name resolution.
|
|
26
|
+
*
|
|
27
|
+
* Previously added named resolution so that you could use .move names in your transactions.
|
|
28
|
+
* e.g. `@org/app::type::Type` would be resolved to `0x1234::type::Type`.
|
|
29
|
+
*/
|
|
30
|
+
export declare const namedPackagesPlugin: (_options?: NamedPackagesPluginOptions) => (_transactionData: TransactionDataBuilder, _buildOptions: BuildTransactionOptions, next: () => Promise<void>) => Promise<void>;
|
|
31
|
+
export declare function getClient(options: BuildTransactionOptions): import("../../index.js").ClientWithCoreApi;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const namedPackagesPlugin = (_options) => {
|
|
2
|
+
return async (_transactionData, _buildOptions, next) => {
|
|
3
|
+
await next();
|
|
4
|
+
};
|
|
5
|
+
};
|
|
6
|
+
function getClient(options) {
|
|
7
|
+
if (!options.client) {
|
|
8
|
+
throw new Error(
|
|
9
|
+
`No sui client passed to Transaction#build, but transaction data was not sufficient to build offline.`
|
|
10
|
+
);
|
|
11
|
+
}
|
|
12
|
+
return options.client;
|
|
13
|
+
}
|
|
14
|
+
export {
|
|
15
|
+
getClient,
|
|
16
|
+
namedPackagesPlugin
|
|
17
|
+
};
|