@wowok/wowok 2.2.16 → 2.3.1
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/dist/esm/Transaction-CnEnSz1Q.mjs +1 -0
- package/dist/esm/arb-2vqYhvkj.mjs +1 -0
- package/dist/esm/base-Diz77Zc6.mjs +1 -0
- package/dist/esm/bcs/index.d.mts +3 -0
- package/dist/esm/bcs/index.mjs +1 -0
- package/dist/esm/bcs-DDXHXJXy.mjs +1 -0
- package/dist/esm/cache-DTr3MtXv.d.mts +38 -0
- package/dist/esm/call-57y0AfFd.mjs +1 -0
- package/dist/esm/chunk-D7D4PA-g.mjs +1 -0
- package/dist/esm/client/index.d.mts +3 -0
- package/dist/esm/client/index.mjs +1 -0
- package/dist/esm/client-BgCe6jlf.mjs +1 -0
- package/dist/esm/common-DAjh24WX.mjs +1 -0
- package/dist/esm/config-lfC3m3Qq.d.mts +22 -0
- package/dist/esm/cryptography/index.d.mts +2 -0
- package/dist/esm/cryptography/index.mjs +1 -0
- package/dist/esm/ed25519-DZsBW8ka.mjs +1 -0
- package/dist/esm/effects-lLpKpzCX.mjs +1 -0
- package/dist/esm/falcon512-DqfhrRs6.mjs +1 -0
- package/dist/esm/faucet/index.d.mts +2 -0
- package/dist/esm/faucet/index.mjs +1 -0
- package/dist/esm/faucet-BhrCl1M5.mjs +1 -0
- package/dist/esm/graphql/index.d.mts +2 -0
- package/dist/esm/graphql/index.mjs +1 -0
- package/dist/esm/graphql/schema/index.d.mts +10 -0
- package/dist/esm/graphql/schema/index.mjs +1 -0
- package/dist/esm/graphql--097PLGc.mjs +1 -0
- package/dist/esm/grpc/index.d.mts +2 -0
- package/dist/esm/grpc/index.mjs +1 -0
- package/dist/esm/grpc-DELIRSmn.mjs +1 -0
- package/dist/esm/index-B-cxGU73.d.mts +3059 -0
- package/dist/esm/index-CGqMj3cG.d.mts +67 -0
- package/dist/esm/index-D8z18cO-.d.mts +19933 -0
- package/dist/esm/index-uCW4oBx-.d.mts +24 -0
- package/dist/esm/index.d.mts +9 -0
- package/dist/esm/index.mjs +1 -0
- package/dist/esm/jsonRpc/index.d.mts +2 -0
- package/dist/esm/jsonRpc/index.mjs +1 -0
- package/dist/esm/jsonRpc-BpByny_f.mjs +1 -0
- package/dist/esm/keypair-1v1DkI3F.mjs +1 -0
- package/dist/esm/keypairs/ed25519/index.d.mts +2 -0
- package/dist/esm/keypairs/ed25519/index.mjs +1 -0
- package/dist/esm/keypairs/falcon512/index.d.mts +2 -0
- package/dist/esm/keypairs/falcon512/index.mjs +1 -0
- package/dist/esm/keypairs/passkey/index.d.mts +2 -0
- package/dist/esm/keypairs/passkey/index.mjs +1 -0
- package/dist/esm/keypairs/secp256k1/index.d.mts +2 -0
- package/dist/esm/keypairs/secp256k1/index.mjs +1 -0
- package/dist/esm/keypairs/secp256r1/index.d.mts +2 -0
- package/dist/esm/keypairs/secp256r1/index.mjs +1 -0
- package/dist/esm/local-CjihK7WF.mjs +1 -0
- package/dist/esm/local-CtSmnSPu.d.mts +101 -0
- package/dist/esm/messenger-C8iIIH8a.mjs +1 -0
- package/dist/esm/messenger-api-CTTyAaH7.mjs +1 -0
- package/dist/esm/mnemonics-C6qlqegr.mjs +1 -0
- package/dist/esm/multisig/index.d.mts +2 -0
- package/dist/esm/multisig/index.mjs +1 -0
- package/dist/esm/network-DeigCh6J.mjs +1 -0
- package/dist/esm/object-CYKpq_cj.mjs +1 -0
- package/dist/esm/passkey-Dh6btBAD.mjs +1 -0
- package/dist/esm/pqxdh-CKkqzvPb.d.mts +42 -0
- package/dist/esm/proof-C5WiT6s8.mjs +1 -0
- package/dist/esm/publickey-6O2imwxm.mjs +1 -0
- package/dist/esm/publickey-BPT9QiGv.mjs +1 -0
- package/dist/esm/publickey-Bf71fssx.mjs +1 -0
- package/dist/esm/publickey-C6fyN2VZ.mjs +1 -0
- package/dist/esm/publickey-CltJ4l8n.mjs +1 -0
- package/dist/esm/publickey-qLbcTInT.mjs +1 -0
- package/dist/esm/received-DbaY6EZw.mjs +1 -0
- package/dist/esm/secp256k1-BZUdTK1D.mjs +1 -0
- package/dist/esm/secp256r1-COXOSFIF.mjs +1 -0
- package/dist/esm/service-BQ3NbWhf.mjs +1 -0
- package/dist/esm/sui-types-CuBKFvrd.mjs +1 -0
- package/dist/esm/transactions/index.d.mts +2 -0
- package/dist/esm/transactions/index.mjs +1 -0
- package/dist/esm/transactions-D9q2j6ZA.mjs +1 -0
- package/dist/esm/type-tag-serializer-BOCNO96r.d.mts +68 -0
- package/dist/esm/types-CiFC9IV5.d.mts +74 -0
- package/dist/esm/util-JBmJ6s-D.mjs +1 -0
- package/dist/esm/utils/index.d.mts +3 -0
- package/dist/esm/utils/index.mjs +1 -0
- package/dist/esm/utils-IlS3fpdQ.mjs +1 -0
- package/dist/esm/verify/index.d.mts +2 -0
- package/dist/esm/verify/index.mjs +1 -0
- package/dist/esm/w/call/allocation.d.mts +2 -0
- package/dist/esm/w/call/allocation.mjs +1 -0
- package/dist/esm/w/call/arbitration.d.mts +2 -0
- package/dist/esm/w/call/arbitration.mjs +1 -0
- package/dist/esm/w/call/base.d.mts +2 -0
- package/dist/esm/w/call/base.mjs +1 -0
- package/dist/esm/w/call/demand.d.mts +2 -0
- package/dist/esm/w/call/demand.mjs +1 -0
- package/dist/esm/w/call/guard.d.mts +2 -0
- package/dist/esm/w/call/guard.mjs +1 -0
- package/dist/esm/w/call/index.d.mts +2 -0
- package/dist/esm/w/call/index.mjs +1 -0
- package/dist/esm/w/call/machine.d.mts +2 -0
- package/dist/esm/w/call/machine.mjs +1 -0
- package/dist/esm/w/call/passport.d.mts +2 -0
- package/dist/esm/w/call/passport.mjs +1 -0
- package/dist/esm/w/call/payment.d.mts +2 -0
- package/dist/esm/w/call/payment.mjs +1 -0
- package/dist/esm/w/call/permission.d.mts +2 -0
- package/dist/esm/w/call/permission.mjs +1 -0
- package/dist/esm/w/call/progress.d.mts +2 -0
- package/dist/esm/w/call/progress.mjs +1 -0
- package/dist/esm/w/call/repository.d.mts +2 -0
- package/dist/esm/w/call/repository.mjs +1 -0
- package/dist/esm/w/call/reward.d.mts +2 -0
- package/dist/esm/w/call/reward.mjs +1 -0
- package/dist/esm/w/call/service.d.mts +2 -0
- package/dist/esm/w/call/service.mjs +1 -0
- package/dist/esm/w/call/treasury.d.mts +2 -0
- package/dist/esm/w/call/treasury.mjs +1 -0
- package/dist/esm/w/common.d.mts +2 -0
- package/dist/esm/w/common.mjs +1 -0
- package/dist/esm/w/index.d.mts +5 -0
- package/dist/esm/w/index.mjs +1 -0
- package/dist/esm/w/local/account.d.mts +2 -0
- package/dist/esm/w/local/account.mjs +1 -0
- package/dist/esm/w/local/cache.d.mts +2 -0
- package/dist/esm/w/local/cache.mjs +1 -0
- package/dist/esm/w/local/config.d.mts +2 -0
- package/dist/esm/w/local/config.mjs +1 -0
- package/dist/esm/w/local/index.d.mts +5 -0
- package/dist/esm/w/local/index.mjs +1 -0
- package/dist/esm/w/local/local.d.mts +2 -0
- package/dist/esm/w/local/local.mjs +1 -0
- package/dist/esm/w/local/storage.d.mts +53 -0
- package/dist/esm/w/local/storage.mjs +1 -0
- package/dist/esm/w/local/token.d.mts +2 -0
- package/dist/esm/w/local/token.mjs +1 -0
- package/dist/esm/w/local/util.d.mts +9 -0
- package/dist/esm/w/local/util.mjs +1 -0
- package/dist/esm/w/local/wip.d.mts +2 -0
- package/dist/esm/w/local/wip.mjs +1 -0
- package/dist/esm/w/messenger/crypto.d.mts +271 -0
- package/dist/esm/w/messenger/crypto.mjs +1 -0
- package/dist/esm/w/messenger/index.d.mts +2 -0
- package/dist/esm/w/messenger/index.mjs +1 -0
- package/dist/esm/w/messenger/messenger-api.d.mts +2 -0
- package/dist/esm/w/messenger/messenger-api.mjs +1 -0
- package/dist/esm/w/messenger/messenger.d.mts +2 -0
- package/dist/esm/w/messenger/messenger.mjs +1 -0
- package/dist/esm/w/messenger/pq/crypto.d.mts +43 -0
- package/dist/esm/w/messenger/pq/crypto.mjs +1 -0
- package/dist/esm/w/messenger/pq/erasure.d.mts +19 -0
- package/dist/esm/w/messenger/pq/erasure.mjs +1 -0
- package/dist/esm/w/messenger/pq/index.d.mts +10 -0
- package/dist/esm/w/messenger/pq/index.mjs +1 -0
- package/dist/esm/w/messenger/pq/keycombiner.d.mts +4 -0
- package/dist/esm/w/messenger/pq/keycombiner.mjs +1 -0
- package/dist/esm/w/messenger/pq/pqxdh.d.mts +2 -0
- package/dist/esm/w/messenger/pq/pqxdh.mjs +1 -0
- package/dist/esm/w/messenger/pq/ratchet.d.mts +16 -0
- package/dist/esm/w/messenger/pq/ratchet.mjs +1 -0
- package/dist/esm/w/messenger/pq/session.d.mts +46 -0
- package/dist/esm/w/messenger/pq/session.mjs +1 -0
- package/dist/esm/w/messenger/pq/spqr.d.mts +27 -0
- package/dist/esm/w/messenger/pq/spqr.mjs +1 -0
- package/dist/esm/w/messenger/pq/store-adapter.d.mts +35 -0
- package/dist/esm/w/messenger/pq/store-adapter.mjs +1 -0
- package/dist/esm/w/messenger/pq/types.d.mts +189 -0
- package/dist/esm/w/messenger/pq/types.mjs +1 -0
- package/dist/esm/w/messenger/storage.d.mts +256 -0
- package/dist/esm/w/messenger/storage.mjs +1 -0
- package/dist/esm/w/messenger/types.d.mts +2 -0
- package/dist/esm/w/messenger/types.mjs +1 -0
- package/dist/esm/w/query/index.d.mts +2 -0
- package/dist/esm/w/query/index.mjs +1 -0
- package/dist/esm/w/query/object.d.mts +2 -0
- package/dist/esm/w/query/object.mjs +1 -0
- package/dist/esm/wip-NbB1ChbI.d.mts +229 -0
- package/package.json +142 -152
- package/dist/cjs/_deps/bcs/bcs-type.d.ts +0 -127
- package/dist/cjs/_deps/bcs/bcs-type.js +0 -1
- package/dist/cjs/_deps/bcs/bcs.d.ts +0 -49
- package/dist/cjs/_deps/bcs/bcs.js +0 -1
- package/dist/cjs/_deps/bcs/index.d.ts +0 -16
- package/dist/cjs/_deps/bcs/index.js +0 -1
- package/dist/cjs/_deps/bcs/reader.d.ts +0 -15
- package/dist/cjs/_deps/bcs/reader.js +0 -1
- package/dist/cjs/_deps/bcs/types.d.ts +0 -24
- package/dist/cjs/_deps/bcs/types.js +0 -1
- package/dist/cjs/_deps/bcs/uleb.d.ts +0 -5
- package/dist/cjs/_deps/bcs/uleb.js +0 -1
- package/dist/cjs/_deps/bcs/utils.d.ts +0 -4
- package/dist/cjs/_deps/bcs/utils.js +0 -1
- package/dist/cjs/_deps/bcs/writer.d.ts +0 -28
- package/dist/cjs/_deps/bcs/writer.js +0 -1
- package/dist/cjs/_deps/utils/b58.d.ts +0 -2
- package/dist/cjs/_deps/utils/b58.js +0 -1
- package/dist/cjs/_deps/utils/b64.d.ts +0 -2
- package/dist/cjs/_deps/utils/b64.js +0 -1
- package/dist/cjs/_deps/utils/chunk.d.ts +0 -1
- package/dist/cjs/_deps/utils/chunk.js +0 -1
- package/dist/cjs/_deps/utils/dataloader.d.ts +0 -43
- package/dist/cjs/_deps/utils/dataloader.js +0 -1
- package/dist/cjs/_deps/utils/hex.d.ts +0 -2
- package/dist/cjs/_deps/utils/hex.js +0 -1
- package/dist/cjs/_deps/utils/index.d.ts +0 -7
- package/dist/cjs/_deps/utils/index.js +0 -1
- package/dist/cjs/_deps/utils/types.d.ts +0 -4
- package/dist/cjs/_deps/utils/types.js +0 -1
- package/dist/cjs/_deps/utils/with-resolver.d.ts +0 -6
- package/dist/cjs/_deps/utils/with-resolver.js +0 -1
- package/dist/cjs/bcs/bcs.d.ts +0 -1927
- package/dist/cjs/bcs/bcs.js +0 -1
- package/dist/cjs/bcs/effects.d.ts +0 -579
- package/dist/cjs/bcs/effects.js +0 -1
- package/dist/cjs/bcs/index.d.ts +0 -6
- package/dist/cjs/bcs/index.js +0 -1
- package/dist/cjs/bcs/pure.d.ts +0 -22
- package/dist/cjs/bcs/pure.js +0 -1
- package/dist/cjs/bcs/type-tag-serializer.d.ts +0 -7
- package/dist/cjs/bcs/type-tag-serializer.js +0 -1
- package/dist/cjs/bcs/types.d.ts +0 -65
- package/dist/cjs/bcs/types.js +0 -1
- package/dist/cjs/client/index.d.ts +0 -5
- package/dist/cjs/client/index.js +0 -1
- package/dist/cjs/client/network.d.ts +0 -5
- package/dist/cjs/client/network.js +0 -1
- package/dist/cjs/cryptography/index.d.ts +0 -7
- package/dist/cjs/cryptography/index.js +0 -1
- package/dist/cjs/cryptography/intent.d.ts +0 -3
- package/dist/cjs/cryptography/intent.js +0 -1
- package/dist/cjs/cryptography/keypair.d.ts +0 -39
- package/dist/cjs/cryptography/keypair.js +0 -1
- package/dist/cjs/cryptography/mnemonics.d.ts +0 -4
- package/dist/cjs/cryptography/mnemonics.js +0 -1
- package/dist/cjs/cryptography/publickey.d.ts +0 -25
- package/dist/cjs/cryptography/publickey.js +0 -1
- package/dist/cjs/cryptography/signature-scheme.d.ts +0 -13
- package/dist/cjs/cryptography/signature-scheme.js +0 -1
- package/dist/cjs/cryptography/signature.d.ts +0 -21
- package/dist/cjs/cryptography/signature.js +0 -1
- package/dist/cjs/experimental/cache.d.ts +0 -12
- package/dist/cjs/experimental/cache.js +0 -1
- package/dist/cjs/experimental/client.d.ts +0 -12
- package/dist/cjs/experimental/client.js +0 -1
- package/dist/cjs/experimental/core.d.ts +0 -31
- package/dist/cjs/experimental/core.js +0 -1
- package/dist/cjs/experimental/errors.d.ts +0 -8
- package/dist/cjs/experimental/errors.js +0 -1
- package/dist/cjs/experimental/index.d.ts +0 -7
- package/dist/cjs/experimental/index.js +0 -1
- package/dist/cjs/experimental/persistent-storage.d.ts +0 -36
- package/dist/cjs/experimental/persistent-storage.js +0 -1
- package/dist/cjs/experimental/persistent-storage.test.d.ts +0 -1
- package/dist/cjs/experimental/persistent-storage.test.js +0 -1
- package/dist/cjs/experimental/transports/utils.d.ts +0 -3
- package/dist/cjs/experimental/transports/utils.js +0 -1
- package/dist/cjs/experimental/types.d.ts +0 -361
- package/dist/cjs/experimental/types.js +0 -1
- package/dist/cjs/faucet/faucet.d.ts +0 -57
- package/dist/cjs/faucet/faucet.js +0 -1
- package/dist/cjs/faucet/index.d.ts +0 -1
- package/dist/cjs/faucet/index.js +0 -1
- package/dist/cjs/grpc/client.d.ts +0 -30
- package/dist/cjs/grpc/client.js +0 -1
- package/dist/cjs/grpc/core.d.ts +0 -28
- package/dist/cjs/grpc/core.js +0 -1
- package/dist/cjs/grpc/index.d.ts +0 -4
- package/dist/cjs/grpc/index.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +0 -29
- package/dist/cjs/grpc/proto/google/protobuf/any.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +0 -23
- package/dist/cjs/grpc/proto/google/protobuf/duration.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +0 -16
- package/dist/cjs/grpc/proto/google/protobuf/empty.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +0 -22
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +0 -72
- package/dist/cjs/grpc/proto/google/protobuf/struct.js +0 -1
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +0 -26
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +0 -1
- package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +0 -166
- package/dist/cjs/grpc/proto/google/rpc/error_details.js +0 -1
- package/dist/cjs/grpc/proto/google/rpc/status.d.ts +0 -20
- package/dist/cjs/grpc/proto/google/rpc/status.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.d.ts +0 -18
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.d.ts +0 -11
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.d.ts +0 -10
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +0 -20
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +0 -23
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +0 -46
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.d.ts +0 -81
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.d.ts +0 -21
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.d.ts +0 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.d.ts +0 -25
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +0 -24
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.d.ts +0 -220
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +0 -12
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.d.ts +0 -23
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +0 -43
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.d.ts +0 -160
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.d.ts +0 -150
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +0 -31
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.d.ts +0 -78
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.d.ts +0 -32
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.d.ts +0 -11
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.d.ts +0 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.d.ts +0 -15
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.d.ts +0 -105
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +0 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +0 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +0 -23
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +0 -35
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.d.ts +0 -172
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +0 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.d.ts +0 -21
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.d.ts +0 -146
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.d.ts +0 -338
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +0 -23
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +0 -66
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +0 -1
- package/dist/cjs/index.d.ts +0 -25
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/jsonRpc/client.d.ts +0 -121
- package/dist/cjs/jsonRpc/client.js +0 -1
- package/dist/cjs/jsonRpc/core.d.ts +0 -87
- package/dist/cjs/jsonRpc/core.js +0 -1
- package/dist/cjs/jsonRpc/errors.d.ts +0 -12
- package/dist/cjs/jsonRpc/errors.js +0 -1
- package/dist/cjs/jsonRpc/http-transport.d.ts +0 -39
- package/dist/cjs/jsonRpc/http-transport.js +0 -1
- package/dist/cjs/jsonRpc/index.d.ts +0 -4
- package/dist/cjs/jsonRpc/index.js +0 -1
- package/dist/cjs/jsonRpc/json-rpc-resolver.d.ts +0 -4
- package/dist/cjs/jsonRpc/json-rpc-resolver.js +0 -1
- package/dist/cjs/jsonRpc/rpc-websocket-client.d.ts +0 -28
- package/dist/cjs/jsonRpc/rpc-websocket-client.js +0 -1
- package/dist/cjs/jsonRpc/types/chain.d.ts +0 -94
- package/dist/cjs/jsonRpc/types/chain.js +0 -1
- package/dist/cjs/jsonRpc/types/changes.d.ts +0 -19
- package/dist/cjs/jsonRpc/types/changes.js +0 -1
- package/dist/cjs/jsonRpc/types/coins.d.ts +0 -6
- package/dist/cjs/jsonRpc/types/coins.js +0 -1
- package/dist/cjs/jsonRpc/types/common.d.ts +0 -2
- package/dist/cjs/jsonRpc/types/common.js +0 -1
- package/dist/cjs/jsonRpc/types/generated.d.ts +0 -932
- package/dist/cjs/jsonRpc/types/generated.js +0 -1
- package/dist/cjs/jsonRpc/types/generated_old.d.ts +0 -954
- package/dist/cjs/jsonRpc/types/generated_old.js +0 -1
- package/dist/cjs/jsonRpc/types/index.d.ts +0 -6
- package/dist/cjs/jsonRpc/types/index.js +0 -1
- package/dist/cjs/jsonRpc/types/params.d.ts +0 -303
- package/dist/cjs/jsonRpc/types/params.js +0 -1
- package/dist/cjs/keypairs/falcon512/index.d.ts +0 -2
- package/dist/cjs/keypairs/falcon512/index.js +0 -1
- package/dist/cjs/keypairs/falcon512/keypair.d.ts +0 -19
- package/dist/cjs/keypairs/falcon512/keypair.js +0 -1
- package/dist/cjs/keypairs/falcon512/publickey.d.ts +0 -11
- package/dist/cjs/keypairs/falcon512/publickey.js +0 -1
- package/dist/cjs/keypairs/index.d.ts +0 -1
- package/dist/cjs/keypairs/index.js +0 -1
- package/dist/cjs/multisig/index.d.ts +0 -2
- package/dist/cjs/multisig/index.js +0 -1
- package/dist/cjs/multisig/publickey.d.ts +0 -44
- package/dist/cjs/multisig/publickey.js +0 -1
- package/dist/cjs/multisig/signer.d.ts +0 -19
- package/dist/cjs/multisig/signer.js +0 -1
- package/dist/cjs/transactions/Arguments.d.ts +0 -57
- package/dist/cjs/transactions/Arguments.js +0 -1
- package/dist/cjs/transactions/Commands.d.ts +0 -54
- package/dist/cjs/transactions/Commands.js +0 -1
- package/dist/cjs/transactions/Inputs.d.ts +0 -22
- package/dist/cjs/transactions/Inputs.js +0 -1
- package/dist/cjs/transactions/ObjectCache.d.ts +0 -83
- package/dist/cjs/transactions/ObjectCache.js +0 -1
- package/dist/cjs/transactions/Transaction.d.ts +0 -654
- package/dist/cjs/transactions/Transaction.js +0 -1
- package/dist/cjs/transactions/TransactionData.d.ts +0 -67
- package/dist/cjs/transactions/TransactionData.js +0 -1
- package/dist/cjs/transactions/__tests__/Transaction.test.d.ts +0 -1
- package/dist/cjs/transactions/__tests__/Transaction.test.js +0 -1
- package/dist/cjs/transactions/__tests__/bcs.test.d.ts +0 -1
- package/dist/cjs/transactions/__tests__/bcs.test.js +0 -1
- package/dist/cjs/transactions/data/internal.d.ts +0 -1010
- package/dist/cjs/transactions/data/internal.js +0 -1
- package/dist/cjs/transactions/data/v1.d.ts +0 -312
- package/dist/cjs/transactions/data/v1.js +0 -1
- package/dist/cjs/transactions/data/v2.d.ts +0 -153
- package/dist/cjs/transactions/data/v2.js +0 -1
- package/dist/cjs/transactions/executor/caching.d.ts +0 -27
- package/dist/cjs/transactions/executor/caching.js +0 -1
- package/dist/cjs/transactions/executor/parallel.d.ts +0 -26
- package/dist/cjs/transactions/executor/parallel.js +0 -1
- package/dist/cjs/transactions/executor/queue.d.ts +0 -11
- package/dist/cjs/transactions/executor/queue.js +0 -1
- package/dist/cjs/transactions/executor/serial.d.ts +0 -30
- package/dist/cjs/transactions/executor/serial.js +0 -1
- package/dist/cjs/transactions/hash.d.ts +0 -1
- package/dist/cjs/transactions/hash.js +0 -1
- package/dist/cjs/transactions/index.d.ts +0 -20
- package/dist/cjs/transactions/index.js +0 -1
- package/dist/cjs/transactions/intents/CoinWithBalance.d.ts +0 -9
- package/dist/cjs/transactions/intents/CoinWithBalance.js +0 -1
- package/dist/cjs/transactions/object.d.ts +0 -24
- package/dist/cjs/transactions/object.js +0 -1
- package/dist/cjs/transactions/plugins/NamedPackagesPlugin.d.ts +0 -13
- package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js +0 -1
- package/dist/cjs/transactions/pure.d.ts +0 -20
- package/dist/cjs/transactions/pure.js +0 -1
- package/dist/cjs/transactions/resolve.d.ts +0 -13
- package/dist/cjs/transactions/resolve.js +0 -1
- package/dist/cjs/transactions/serializer.d.ts +0 -7
- package/dist/cjs/transactions/serializer.js +0 -1
- package/dist/cjs/transactions/utils.d.ts +0 -10
- package/dist/cjs/transactions/utils.js +0 -1
- package/dist/cjs/utils/constants.d.ts +0 -11
- package/dist/cjs/utils/constants.js +0 -1
- package/dist/cjs/utils/derived-objects.d.ts +0 -2
- package/dist/cjs/utils/derived-objects.js +0 -1
- package/dist/cjs/utils/dynamic-fields.d.ts +0 -2
- package/dist/cjs/utils/dynamic-fields.js +0 -1
- package/dist/cjs/utils/format.d.ts +0 -2
- package/dist/cjs/utils/format.js +0 -1
- package/dist/cjs/utils/index.d.ts +0 -8
- package/dist/cjs/utils/index.js +0 -1
- package/dist/cjs/utils/move-registry.d.ts +0 -2
- package/dist/cjs/utils/move-registry.js +0 -1
- package/dist/cjs/utils/wow-types.d.ts +0 -14
- package/dist/cjs/utils/wow-types.js +0 -1
- package/dist/cjs/verify/index.d.ts +0 -1
- package/dist/cjs/verify/index.js +0 -1
- package/dist/cjs/verify/verify.d.ts +0 -16
- package/dist/cjs/verify/verify.js +0 -1
- package/dist/cjs/version.d.ts +0 -2
- package/dist/cjs/version.js +0 -1
- package/dist/cjs/w/call/allocation.d.ts +0 -35
- package/dist/cjs/w/call/allocation.js +0 -1
- package/dist/cjs/w/call/arb.d.ts +0 -17
- package/dist/cjs/w/call/arb.js +0 -1
- package/dist/cjs/w/call/arbitration.d.ts +0 -106
- package/dist/cjs/w/call/arbitration.js +0 -1
- package/dist/cjs/w/call/base.d.ts +0 -43
- package/dist/cjs/w/call/base.js +0 -1
- package/dist/cjs/w/call/contact.d.ts +0 -45
- package/dist/cjs/w/call/contact.js +0 -1
- package/dist/cjs/w/call/demand.d.ts +0 -79
- package/dist/cjs/w/call/demand.js +0 -1
- package/dist/cjs/w/call/entity.d.ts +0 -33
- package/dist/cjs/w/call/entity.js +0 -1
- package/dist/cjs/w/call/guard-ins.d.ts +0 -29
- package/dist/cjs/w/call/guard-ins.js +0 -1
- package/dist/cjs/w/call/guard.d.ts +0 -350
- package/dist/cjs/w/call/guard.js +0 -1
- package/dist/cjs/w/call/index.d.ts +0 -37
- package/dist/cjs/w/call/index.js +0 -1
- package/dist/cjs/w/call/machine.d.ts +0 -124
- package/dist/cjs/w/call/machine.js +0 -1
- package/dist/cjs/w/call/order.d.ts +0 -73
- package/dist/cjs/w/call/order.js +0 -1
- package/dist/cjs/w/call/passport.d.ts +0 -24
- package/dist/cjs/w/call/passport.js +0 -1
- package/dist/cjs/w/call/payment.d.ts +0 -27
- package/dist/cjs/w/call/payment.js +0 -1
- package/dist/cjs/w/call/permission.d.ts +0 -202
- package/dist/cjs/w/call/permission.js +0 -1
- package/dist/cjs/w/call/personal.d.ts +0 -51
- package/dist/cjs/w/call/personal.js +0 -1
- package/dist/cjs/w/call/progress.d.ts +0 -95
- package/dist/cjs/w/call/progress.js +0 -1
- package/dist/cjs/w/call/proof.d.ts +0 -27
- package/dist/cjs/w/call/proof.js +0 -1
- package/dist/cjs/w/call/repository.d.ts +0 -97
- package/dist/cjs/w/call/repository.js +0 -1
- package/dist/cjs/w/call/resource.d.ts +0 -27
- package/dist/cjs/w/call/resource.js +0 -1
- package/dist/cjs/w/call/reward.d.ts +0 -52
- package/dist/cjs/w/call/reward.js +0 -1
- package/dist/cjs/w/call/service.d.ts +0 -186
- package/dist/cjs/w/call/service.js +0 -1
- package/dist/cjs/w/call/treasury.d.ts +0 -77
- package/dist/cjs/w/call/treasury.js +0 -1
- package/dist/cjs/w/call/util.d.ts +0 -13
- package/dist/cjs/w/call/util.js +0 -1
- package/dist/cjs/w/common.d.ts +0 -344
- package/dist/cjs/w/common.js +0 -1
- package/dist/cjs/w/exception.d.ts +0 -83
- package/dist/cjs/w/exception.js +0 -1
- package/dist/cjs/w/index.d.ts +0 -8
- package/dist/cjs/w/index.js +0 -1
- package/dist/cjs/w/local/account.d.ts +0 -99
- package/dist/cjs/w/local/account.js +0 -1
- package/dist/cjs/w/local/cache.d.ts +0 -35
- package/dist/cjs/w/local/cache.js +0 -1
- package/dist/cjs/w/local/config.d.ts +0 -12
- package/dist/cjs/w/local/config.js +0 -1
- package/dist/cjs/w/local/index.d.ts +0 -199
- package/dist/cjs/w/local/index.js +0 -1
- package/dist/cjs/w/local/local.d.ts +0 -96
- package/dist/cjs/w/local/local.js +0 -1
- package/dist/cjs/w/local/storage.d.ts +0 -41
- package/dist/cjs/w/local/storage.js +0 -1
- package/dist/cjs/w/local/token.d.ts +0 -19
- package/dist/cjs/w/local/token.js +0 -1
- package/dist/cjs/w/local/util.d.ts +0 -1
- package/dist/cjs/w/local/util.js +0 -1
- package/dist/cjs/w/local/wip.d.ts +0 -135
- package/dist/cjs/w/local/wip.js +0 -1
- package/dist/cjs/w/messenger/crypto.d.ts +0 -88
- package/dist/cjs/w/messenger/crypto.js +0 -1
- package/dist/cjs/w/messenger/index.d.ts +0 -5
- package/dist/cjs/w/messenger/index.js +0 -1
- package/dist/cjs/w/messenger/messenger-api.d.ts +0 -140
- package/dist/cjs/w/messenger/messenger-api.js +0 -1
- package/dist/cjs/w/messenger/messenger-manager.d.ts +0 -85
- package/dist/cjs/w/messenger/messenger-manager.js +0 -1
- package/dist/cjs/w/messenger/messenger.d.ts +0 -92
- package/dist/cjs/w/messenger/messenger.js +0 -1
- package/dist/cjs/w/messenger/pq/crypto.d.ts +0 -39
- package/dist/cjs/w/messenger/pq/crypto.js +0 -1
- package/dist/cjs/w/messenger/pq/erasure.d.ts +0 -17
- package/dist/cjs/w/messenger/pq/erasure.js +0 -1
- package/dist/cjs/w/messenger/pq/index.d.ts +0 -9
- package/dist/cjs/w/messenger/pq/index.js +0 -1
- package/dist/cjs/w/messenger/pq/keycombiner.d.ts +0 -1
- package/dist/cjs/w/messenger/pq/keycombiner.js +0 -1
- package/dist/cjs/w/messenger/pq/pqxdh.d.ts +0 -38
- package/dist/cjs/w/messenger/pq/pqxdh.js +0 -1
- package/dist/cjs/w/messenger/pq/ratchet.d.ts +0 -12
- package/dist/cjs/w/messenger/pq/ratchet.js +0 -1
- package/dist/cjs/w/messenger/pq/session.d.ts +0 -41
- package/dist/cjs/w/messenger/pq/session.js +0 -1
- package/dist/cjs/w/messenger/pq/spqr.d.ts +0 -23
- package/dist/cjs/w/messenger/pq/spqr.js +0 -1
- package/dist/cjs/w/messenger/pq/store-adapter.d.ts +0 -31
- package/dist/cjs/w/messenger/pq/store-adapter.js +0 -1
- package/dist/cjs/w/messenger/pq/types.d.ts +0 -180
- package/dist/cjs/w/messenger/pq/types.js +0 -1
- package/dist/cjs/w/messenger/server.d.ts +0 -48
- package/dist/cjs/w/messenger/server.js +0 -1
- package/dist/cjs/w/messenger/session.d.ts +0 -65
- package/dist/cjs/w/messenger/session.js +0 -1
- package/dist/cjs/w/messenger/storage.d.ts +0 -110
- package/dist/cjs/w/messenger/storage.js +0 -1
- package/dist/cjs/w/messenger/templates/wts-html-template.d.ts +0 -30
- package/dist/cjs/w/messenger/templates/wts-html-template.js +0 -1
- package/dist/cjs/w/messenger/types.d.ts +0 -647
- package/dist/cjs/w/messenger/types.js +0 -1
- package/dist/cjs/w/messenger/utils.d.ts +0 -1
- package/dist/cjs/w/messenger/utils.js +0 -1
- package/dist/cjs/w/query/bult-in.d.ts +0 -62
- package/dist/cjs/w/query/bult-in.js +0 -1
- package/dist/cjs/w/query/event.d.ts +0 -76
- package/dist/cjs/w/query/event.js +0 -1
- package/dist/cjs/w/query/index.d.ts +0 -5
- package/dist/cjs/w/query/index.js +0 -1
- package/dist/cjs/w/query/object.d.ts +0 -626
- package/dist/cjs/w/query/object.js +0 -1
- package/dist/cjs/w/query/received.d.ts +0 -30
- package/dist/cjs/w/query/received.js +0 -1
- package/dist/cjs/w/query/util.d.ts +0 -4
- package/dist/cjs/w/query/util.js +0 -1
- package/dist/cjs/w/util.d.ts +0 -16
- package/dist/cjs/w/util.js +0 -1
- package/dist/esm/_deps/bcs/bcs-type.d.ts +0 -127
- package/dist/esm/_deps/bcs/bcs-type.js +0 -1
- package/dist/esm/_deps/bcs/bcs.d.ts +0 -49
- package/dist/esm/_deps/bcs/bcs.js +0 -1
- package/dist/esm/_deps/bcs/index.d.ts +0 -16
- package/dist/esm/_deps/bcs/index.js +0 -1
- package/dist/esm/_deps/bcs/reader.d.ts +0 -15
- package/dist/esm/_deps/bcs/reader.js +0 -1
- package/dist/esm/_deps/bcs/types.d.ts +0 -24
- package/dist/esm/_deps/bcs/types.js +0 -1
- package/dist/esm/_deps/bcs/uleb.d.ts +0 -5
- package/dist/esm/_deps/bcs/uleb.js +0 -1
- package/dist/esm/_deps/bcs/utils.d.ts +0 -4
- package/dist/esm/_deps/bcs/utils.js +0 -1
- package/dist/esm/_deps/bcs/writer.d.ts +0 -28
- package/dist/esm/_deps/bcs/writer.js +0 -1
- package/dist/esm/_deps/utils/b58.d.ts +0 -2
- package/dist/esm/_deps/utils/b58.js +0 -1
- package/dist/esm/_deps/utils/b64.d.ts +0 -2
- package/dist/esm/_deps/utils/b64.js +0 -1
- package/dist/esm/_deps/utils/chunk.d.ts +0 -1
- package/dist/esm/_deps/utils/chunk.js +0 -1
- package/dist/esm/_deps/utils/dataloader.d.ts +0 -43
- package/dist/esm/_deps/utils/dataloader.js +0 -1
- package/dist/esm/_deps/utils/hex.d.ts +0 -2
- package/dist/esm/_deps/utils/hex.js +0 -1
- package/dist/esm/_deps/utils/index.d.ts +0 -7
- package/dist/esm/_deps/utils/index.js +0 -1
- package/dist/esm/_deps/utils/types.d.ts +0 -4
- package/dist/esm/_deps/utils/types.js +0 -1
- package/dist/esm/_deps/utils/with-resolver.d.ts +0 -6
- package/dist/esm/_deps/utils/with-resolver.js +0 -1
- package/dist/esm/bcs/bcs.d.ts +0 -1927
- package/dist/esm/bcs/bcs.js +0 -1
- package/dist/esm/bcs/effects.d.ts +0 -579
- package/dist/esm/bcs/effects.js +0 -1
- package/dist/esm/bcs/index.d.ts +0 -6
- package/dist/esm/bcs/index.js +0 -1
- package/dist/esm/bcs/pure.d.ts +0 -22
- package/dist/esm/bcs/pure.js +0 -1
- package/dist/esm/bcs/type-tag-serializer.d.ts +0 -7
- package/dist/esm/bcs/type-tag-serializer.js +0 -1
- package/dist/esm/bcs/types.d.ts +0 -65
- package/dist/esm/bcs/types.js +0 -1
- package/dist/esm/client/index.d.ts +0 -5
- package/dist/esm/client/index.js +0 -1
- package/dist/esm/client/network.d.ts +0 -5
- package/dist/esm/client/network.js +0 -1
- package/dist/esm/cryptography/index.d.ts +0 -7
- package/dist/esm/cryptography/index.js +0 -1
- package/dist/esm/cryptography/intent.d.ts +0 -3
- package/dist/esm/cryptography/intent.js +0 -1
- package/dist/esm/cryptography/keypair.d.ts +0 -39
- package/dist/esm/cryptography/keypair.js +0 -1
- package/dist/esm/cryptography/mnemonics.d.ts +0 -4
- package/dist/esm/cryptography/mnemonics.js +0 -1
- package/dist/esm/cryptography/publickey.d.ts +0 -25
- package/dist/esm/cryptography/publickey.js +0 -1
- package/dist/esm/cryptography/signature-scheme.d.ts +0 -13
- package/dist/esm/cryptography/signature-scheme.js +0 -1
- package/dist/esm/cryptography/signature.d.ts +0 -21
- package/dist/esm/cryptography/signature.js +0 -1
- package/dist/esm/experimental/cache.d.ts +0 -12
- package/dist/esm/experimental/cache.js +0 -1
- package/dist/esm/experimental/client.d.ts +0 -12
- package/dist/esm/experimental/client.js +0 -1
- package/dist/esm/experimental/core.d.ts +0 -31
- package/dist/esm/experimental/core.js +0 -1
- package/dist/esm/experimental/errors.d.ts +0 -8
- package/dist/esm/experimental/errors.js +0 -1
- package/dist/esm/experimental/index.d.ts +0 -7
- package/dist/esm/experimental/index.js +0 -1
- package/dist/esm/experimental/persistent-storage.d.ts +0 -36
- package/dist/esm/experimental/persistent-storage.js +0 -1
- package/dist/esm/experimental/persistent-storage.test.d.ts +0 -1
- package/dist/esm/experimental/persistent-storage.test.js +0 -1
- package/dist/esm/experimental/transports/utils.d.ts +0 -3
- package/dist/esm/experimental/transports/utils.js +0 -1
- package/dist/esm/experimental/types.d.ts +0 -361
- package/dist/esm/experimental/types.js +0 -1
- package/dist/esm/faucet/faucet.d.ts +0 -57
- package/dist/esm/faucet/faucet.js +0 -1
- package/dist/esm/faucet/index.d.ts +0 -1
- package/dist/esm/faucet/index.js +0 -1
- package/dist/esm/grpc/client.d.ts +0 -30
- package/dist/esm/grpc/client.js +0 -1
- package/dist/esm/grpc/core.d.ts +0 -28
- package/dist/esm/grpc/core.js +0 -1
- package/dist/esm/grpc/index.d.ts +0 -4
- package/dist/esm/grpc/index.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/any.d.ts +0 -29
- package/dist/esm/grpc/proto/google/protobuf/any.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +0 -23
- package/dist/esm/grpc/proto/google/protobuf/duration.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +0 -16
- package/dist/esm/grpc/proto/google/protobuf/empty.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +0 -22
- package/dist/esm/grpc/proto/google/protobuf/field_mask.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +0 -72
- package/dist/esm/grpc/proto/google/protobuf/struct.js +0 -1
- package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +0 -26
- package/dist/esm/grpc/proto/google/protobuf/timestamp.js +0 -1
- package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +0 -166
- package/dist/esm/grpc/proto/google/rpc/error_details.js +0 -1
- package/dist/esm/grpc/proto/google/rpc/status.d.ts +0 -20
- package/dist/esm/grpc/proto/google/rpc/status.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +0 -18
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +0 -11
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +0 -10
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +0 -20
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +0 -23
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +0 -46
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +0 -81
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +0 -21
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.d.ts +0 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +0 -25
- package/dist/esm/grpc/proto/sui/rpc/v2/event.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +0 -24
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +0 -220
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +0 -12
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +0 -23
- package/dist/esm/grpc/proto/sui/rpc/v2/input.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +0 -43
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +0 -160
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +0 -150
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +0 -31
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +0 -78
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +0 -32
- package/dist/esm/grpc/proto/sui/rpc/v2/object.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +0 -11
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +0 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +0 -15
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +0 -105
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.d.ts +0 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +0 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +0 -23
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +0 -35
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +0 -172
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +0 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +0 -21
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +0 -146
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +0 -338
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +0 -23
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +0 -66
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +0 -1
- package/dist/esm/index.d.ts +0 -25
- package/dist/esm/index.js +0 -1
- package/dist/esm/jsonRpc/client.d.ts +0 -121
- package/dist/esm/jsonRpc/client.js +0 -1
- package/dist/esm/jsonRpc/core.d.ts +0 -87
- package/dist/esm/jsonRpc/core.js +0 -1
- package/dist/esm/jsonRpc/errors.d.ts +0 -12
- package/dist/esm/jsonRpc/errors.js +0 -1
- package/dist/esm/jsonRpc/http-transport.d.ts +0 -39
- package/dist/esm/jsonRpc/http-transport.js +0 -1
- package/dist/esm/jsonRpc/index.d.ts +0 -4
- package/dist/esm/jsonRpc/index.js +0 -1
- package/dist/esm/jsonRpc/json-rpc-resolver.d.ts +0 -4
- package/dist/esm/jsonRpc/json-rpc-resolver.js +0 -1
- package/dist/esm/jsonRpc/rpc-websocket-client.d.ts +0 -28
- package/dist/esm/jsonRpc/rpc-websocket-client.js +0 -1
- package/dist/esm/jsonRpc/types/chain.d.ts +0 -94
- package/dist/esm/jsonRpc/types/chain.js +0 -1
- package/dist/esm/jsonRpc/types/changes.d.ts +0 -19
- package/dist/esm/jsonRpc/types/changes.js +0 -1
- package/dist/esm/jsonRpc/types/coins.d.ts +0 -6
- package/dist/esm/jsonRpc/types/coins.js +0 -1
- package/dist/esm/jsonRpc/types/common.d.ts +0 -2
- package/dist/esm/jsonRpc/types/common.js +0 -1
- package/dist/esm/jsonRpc/types/generated.d.ts +0 -932
- package/dist/esm/jsonRpc/types/generated.js +0 -1
- package/dist/esm/jsonRpc/types/generated_old.d.ts +0 -954
- package/dist/esm/jsonRpc/types/generated_old.js +0 -1
- package/dist/esm/jsonRpc/types/index.d.ts +0 -6
- package/dist/esm/jsonRpc/types/index.js +0 -1
- package/dist/esm/jsonRpc/types/params.d.ts +0 -303
- package/dist/esm/jsonRpc/types/params.js +0 -1
- package/dist/esm/keypairs/falcon512/index.d.ts +0 -2
- package/dist/esm/keypairs/falcon512/index.js +0 -1
- package/dist/esm/keypairs/falcon512/keypair.d.ts +0 -19
- package/dist/esm/keypairs/falcon512/keypair.js +0 -1
- package/dist/esm/keypairs/falcon512/publickey.d.ts +0 -11
- package/dist/esm/keypairs/falcon512/publickey.js +0 -1
- package/dist/esm/keypairs/index.d.ts +0 -1
- package/dist/esm/keypairs/index.js +0 -1
- package/dist/esm/multisig/index.d.ts +0 -2
- package/dist/esm/multisig/index.js +0 -1
- package/dist/esm/multisig/publickey.d.ts +0 -44
- package/dist/esm/multisig/publickey.js +0 -1
- package/dist/esm/multisig/signer.d.ts +0 -19
- package/dist/esm/multisig/signer.js +0 -1
- package/dist/esm/transactions/Arguments.d.ts +0 -57
- package/dist/esm/transactions/Arguments.js +0 -1
- package/dist/esm/transactions/Commands.d.ts +0 -54
- package/dist/esm/transactions/Commands.js +0 -1
- package/dist/esm/transactions/Inputs.d.ts +0 -22
- package/dist/esm/transactions/Inputs.js +0 -1
- package/dist/esm/transactions/ObjectCache.d.ts +0 -83
- package/dist/esm/transactions/ObjectCache.js +0 -1
- package/dist/esm/transactions/Transaction.d.ts +0 -654
- package/dist/esm/transactions/Transaction.js +0 -1
- package/dist/esm/transactions/TransactionData.d.ts +0 -67
- package/dist/esm/transactions/TransactionData.js +0 -1
- package/dist/esm/transactions/__tests__/Transaction.test.d.ts +0 -1
- package/dist/esm/transactions/__tests__/Transaction.test.js +0 -1
- package/dist/esm/transactions/__tests__/bcs.test.d.ts +0 -1
- package/dist/esm/transactions/__tests__/bcs.test.js +0 -1
- package/dist/esm/transactions/data/internal.d.ts +0 -1010
- package/dist/esm/transactions/data/internal.js +0 -1
- package/dist/esm/transactions/data/v1.d.ts +0 -312
- package/dist/esm/transactions/data/v1.js +0 -1
- package/dist/esm/transactions/data/v2.d.ts +0 -153
- package/dist/esm/transactions/data/v2.js +0 -1
- package/dist/esm/transactions/executor/caching.d.ts +0 -27
- package/dist/esm/transactions/executor/caching.js +0 -1
- package/dist/esm/transactions/executor/parallel.d.ts +0 -26
- package/dist/esm/transactions/executor/parallel.js +0 -1
- package/dist/esm/transactions/executor/queue.d.ts +0 -11
- package/dist/esm/transactions/executor/queue.js +0 -1
- package/dist/esm/transactions/executor/serial.d.ts +0 -30
- package/dist/esm/transactions/executor/serial.js +0 -1
- package/dist/esm/transactions/hash.d.ts +0 -1
- package/dist/esm/transactions/hash.js +0 -1
- package/dist/esm/transactions/index.d.ts +0 -20
- package/dist/esm/transactions/index.js +0 -1
- package/dist/esm/transactions/intents/CoinWithBalance.d.ts +0 -9
- package/dist/esm/transactions/intents/CoinWithBalance.js +0 -1
- package/dist/esm/transactions/object.d.ts +0 -24
- package/dist/esm/transactions/object.js +0 -1
- package/dist/esm/transactions/plugins/NamedPackagesPlugin.d.ts +0 -13
- package/dist/esm/transactions/plugins/NamedPackagesPlugin.js +0 -1
- package/dist/esm/transactions/pure.d.ts +0 -20
- package/dist/esm/transactions/pure.js +0 -1
- package/dist/esm/transactions/resolve.d.ts +0 -13
- package/dist/esm/transactions/resolve.js +0 -1
- package/dist/esm/transactions/serializer.d.ts +0 -7
- package/dist/esm/transactions/serializer.js +0 -1
- package/dist/esm/transactions/utils.d.ts +0 -10
- package/dist/esm/transactions/utils.js +0 -1
- package/dist/esm/utils/constants.d.ts +0 -11
- package/dist/esm/utils/constants.js +0 -1
- package/dist/esm/utils/derived-objects.d.ts +0 -2
- package/dist/esm/utils/derived-objects.js +0 -1
- package/dist/esm/utils/dynamic-fields.d.ts +0 -2
- package/dist/esm/utils/dynamic-fields.js +0 -1
- package/dist/esm/utils/format.d.ts +0 -2
- package/dist/esm/utils/format.js +0 -1
- package/dist/esm/utils/index.d.ts +0 -8
- package/dist/esm/utils/index.js +0 -1
- package/dist/esm/utils/move-registry.d.ts +0 -2
- package/dist/esm/utils/move-registry.js +0 -1
- package/dist/esm/utils/wow-types.d.ts +0 -14
- package/dist/esm/utils/wow-types.js +0 -1
- package/dist/esm/verify/index.d.ts +0 -1
- package/dist/esm/verify/index.js +0 -1
- package/dist/esm/verify/verify.d.ts +0 -16
- package/dist/esm/verify/verify.js +0 -1
- package/dist/esm/version.d.ts +0 -2
- package/dist/esm/version.js +0 -1
- package/dist/esm/w/call/allocation.d.ts +0 -35
- package/dist/esm/w/call/allocation.js +0 -1
- package/dist/esm/w/call/arb.d.ts +0 -17
- package/dist/esm/w/call/arb.js +0 -1
- package/dist/esm/w/call/arbitration.d.ts +0 -106
- package/dist/esm/w/call/arbitration.js +0 -1
- package/dist/esm/w/call/base.d.ts +0 -43
- package/dist/esm/w/call/base.js +0 -1
- package/dist/esm/w/call/contact.d.ts +0 -45
- package/dist/esm/w/call/contact.js +0 -1
- package/dist/esm/w/call/demand.d.ts +0 -79
- package/dist/esm/w/call/demand.js +0 -1
- package/dist/esm/w/call/entity.d.ts +0 -33
- package/dist/esm/w/call/entity.js +0 -1
- package/dist/esm/w/call/guard-ins.d.ts +0 -29
- package/dist/esm/w/call/guard-ins.js +0 -1
- package/dist/esm/w/call/guard.d.ts +0 -350
- package/dist/esm/w/call/guard.js +0 -1
- package/dist/esm/w/call/index.d.ts +0 -37
- package/dist/esm/w/call/index.js +0 -1
- package/dist/esm/w/call/machine.d.ts +0 -124
- package/dist/esm/w/call/machine.js +0 -1
- package/dist/esm/w/call/order.d.ts +0 -73
- package/dist/esm/w/call/order.js +0 -1
- package/dist/esm/w/call/passport.d.ts +0 -24
- package/dist/esm/w/call/passport.js +0 -1
- package/dist/esm/w/call/payment.d.ts +0 -27
- package/dist/esm/w/call/payment.js +0 -1
- package/dist/esm/w/call/permission.d.ts +0 -202
- package/dist/esm/w/call/permission.js +0 -1
- package/dist/esm/w/call/personal.d.ts +0 -51
- package/dist/esm/w/call/personal.js +0 -1
- package/dist/esm/w/call/progress.d.ts +0 -95
- package/dist/esm/w/call/progress.js +0 -1
- package/dist/esm/w/call/proof.d.ts +0 -27
- package/dist/esm/w/call/proof.js +0 -1
- package/dist/esm/w/call/repository.d.ts +0 -97
- package/dist/esm/w/call/repository.js +0 -1
- package/dist/esm/w/call/resource.d.ts +0 -27
- package/dist/esm/w/call/resource.js +0 -1
- package/dist/esm/w/call/reward.d.ts +0 -52
- package/dist/esm/w/call/reward.js +0 -1
- package/dist/esm/w/call/service.d.ts +0 -186
- package/dist/esm/w/call/service.js +0 -1
- package/dist/esm/w/call/treasury.d.ts +0 -77
- package/dist/esm/w/call/treasury.js +0 -1
- package/dist/esm/w/call/util.d.ts +0 -13
- package/dist/esm/w/call/util.js +0 -1
- package/dist/esm/w/common.d.ts +0 -344
- package/dist/esm/w/common.js +0 -1
- package/dist/esm/w/exception.d.ts +0 -83
- package/dist/esm/w/exception.js +0 -1
- package/dist/esm/w/index.d.ts +0 -8
- package/dist/esm/w/index.js +0 -1
- package/dist/esm/w/local/account.d.ts +0 -99
- package/dist/esm/w/local/account.js +0 -1
- package/dist/esm/w/local/cache.d.ts +0 -35
- package/dist/esm/w/local/cache.js +0 -1
- package/dist/esm/w/local/config.d.ts +0 -12
- package/dist/esm/w/local/config.js +0 -1
- package/dist/esm/w/local/index.d.ts +0 -199
- package/dist/esm/w/local/index.js +0 -1
- package/dist/esm/w/local/local.d.ts +0 -96
- package/dist/esm/w/local/local.js +0 -1
- package/dist/esm/w/local/storage.d.ts +0 -41
- package/dist/esm/w/local/storage.js +0 -1
- package/dist/esm/w/local/token.d.ts +0 -19
- package/dist/esm/w/local/token.js +0 -1
- package/dist/esm/w/local/util.d.ts +0 -1
- package/dist/esm/w/local/util.js +0 -1
- package/dist/esm/w/local/wip.d.ts +0 -135
- package/dist/esm/w/local/wip.js +0 -1
- package/dist/esm/w/messenger/crypto.d.ts +0 -88
- package/dist/esm/w/messenger/crypto.js +0 -1
- package/dist/esm/w/messenger/index.d.ts +0 -5
- package/dist/esm/w/messenger/index.js +0 -1
- package/dist/esm/w/messenger/messenger-api.d.ts +0 -140
- package/dist/esm/w/messenger/messenger-api.js +0 -1
- package/dist/esm/w/messenger/messenger-manager.d.ts +0 -85
- package/dist/esm/w/messenger/messenger-manager.js +0 -1
- package/dist/esm/w/messenger/messenger.d.ts +0 -92
- package/dist/esm/w/messenger/messenger.js +0 -1
- package/dist/esm/w/messenger/pq/crypto.d.ts +0 -39
- package/dist/esm/w/messenger/pq/crypto.js +0 -1
- package/dist/esm/w/messenger/pq/erasure.d.ts +0 -17
- package/dist/esm/w/messenger/pq/erasure.js +0 -1
- package/dist/esm/w/messenger/pq/index.d.ts +0 -9
- package/dist/esm/w/messenger/pq/index.js +0 -1
- package/dist/esm/w/messenger/pq/keycombiner.d.ts +0 -1
- package/dist/esm/w/messenger/pq/keycombiner.js +0 -1
- package/dist/esm/w/messenger/pq/pqxdh.d.ts +0 -38
- package/dist/esm/w/messenger/pq/pqxdh.js +0 -1
- package/dist/esm/w/messenger/pq/ratchet.d.ts +0 -12
- package/dist/esm/w/messenger/pq/ratchet.js +0 -1
- package/dist/esm/w/messenger/pq/session.d.ts +0 -41
- package/dist/esm/w/messenger/pq/session.js +0 -1
- package/dist/esm/w/messenger/pq/spqr.d.ts +0 -23
- package/dist/esm/w/messenger/pq/spqr.js +0 -1
- package/dist/esm/w/messenger/pq/store-adapter.d.ts +0 -31
- package/dist/esm/w/messenger/pq/store-adapter.js +0 -1
- package/dist/esm/w/messenger/pq/types.d.ts +0 -180
- package/dist/esm/w/messenger/pq/types.js +0 -1
- package/dist/esm/w/messenger/server.d.ts +0 -48
- package/dist/esm/w/messenger/server.js +0 -1
- package/dist/esm/w/messenger/session.d.ts +0 -65
- package/dist/esm/w/messenger/session.js +0 -1
- package/dist/esm/w/messenger/storage.d.ts +0 -110
- package/dist/esm/w/messenger/storage.js +0 -1
- package/dist/esm/w/messenger/templates/wts-html-template.d.ts +0 -30
- package/dist/esm/w/messenger/templates/wts-html-template.js +0 -1
- package/dist/esm/w/messenger/types.d.ts +0 -647
- package/dist/esm/w/messenger/types.js +0 -1
- package/dist/esm/w/messenger/utils.d.ts +0 -1
- package/dist/esm/w/messenger/utils.js +0 -1
- package/dist/esm/w/query/bult-in.d.ts +0 -62
- package/dist/esm/w/query/bult-in.js +0 -1
- package/dist/esm/w/query/event.d.ts +0 -76
- package/dist/esm/w/query/event.js +0 -1
- package/dist/esm/w/query/index.d.ts +0 -5
- package/dist/esm/w/query/index.js +0 -1
- package/dist/esm/w/query/object.d.ts +0 -626
- package/dist/esm/w/query/object.js +0 -1
- package/dist/esm/w/query/received.d.ts +0 -30
- package/dist/esm/w/query/received.js +0 -1
- package/dist/esm/w/query/util.d.ts +0 -4
- package/dist/esm/w/query/util.js +0 -1
- package/dist/esm/w/util.d.ts +0 -16
- package/dist/esm/w/util.js +0 -1
package/dist/cjs/w/common.d.ts
DELETED
|
@@ -1,344 +0,0 @@
|
|
|
1
|
-
import type { Transaction, TransactionArgument, TransactionObjectArgument, TransactionResult } from "../transactions/index.js";
|
|
2
|
-
import type { ENTRYPOINT } from "../client/network.js";
|
|
3
|
-
import type { AccountOrMark_Address, ManyAccountOrMark_Address } from "./local/index.js";
|
|
4
|
-
export type AddressResult = TransactionResult | TransactionObjectArgument;
|
|
5
|
-
export type ObjectResult = TransactionResult | string | TransactionObjectArgument;
|
|
6
|
-
export type PermissionAddress = AddressResult;
|
|
7
|
-
export type PermissionObject = ObjectResult;
|
|
8
|
-
export type RepositoryAddress = AddressResult;
|
|
9
|
-
export type RepositoryObject = ObjectResult;
|
|
10
|
-
export type GuardAddress = AddressResult;
|
|
11
|
-
export type GuardObject = ObjectResult;
|
|
12
|
-
export type MachineAddress = AddressResult;
|
|
13
|
-
export type MachineObject = ObjectResult;
|
|
14
|
-
export type ContactAddress = AddressResult;
|
|
15
|
-
export type ContactObject = ObjectResult;
|
|
16
|
-
export type PassportObject = TransactionResult;
|
|
17
|
-
export type DemandAddress = AddressResult;
|
|
18
|
-
export type DemandObject = ObjectResult;
|
|
19
|
-
export type ServiceObject = ObjectResult;
|
|
20
|
-
export type ServiceAddress = AddressResult;
|
|
21
|
-
export type ArbitrationObject = ObjectResult;
|
|
22
|
-
export type ArbitrationAddress = AddressResult;
|
|
23
|
-
export type ArbObject = ObjectResult;
|
|
24
|
-
export type ArbAddress = AddressResult;
|
|
25
|
-
export type ProgressObject = ObjectResult;
|
|
26
|
-
export type ProgressAddress = AddressResult;
|
|
27
|
-
export type TreasuryObject = ObjectResult;
|
|
28
|
-
export type TreasuryAddress = AddressResult;
|
|
29
|
-
export type OrderObject = ObjectResult;
|
|
30
|
-
export type OrderAddress = AddressResult;
|
|
31
|
-
export type DiscountObject = ObjectResult;
|
|
32
|
-
export type CoinObject = TransactionObjectArgument;
|
|
33
|
-
export type ResourceObject = ObjectResult;
|
|
34
|
-
export type ResourceAddress = AddressResult;
|
|
35
|
-
export type PaymentObject = ObjectResult;
|
|
36
|
-
export type PaymentAddress = AddressResult;
|
|
37
|
-
export type AllocationObject = TransactionObjectArgument;
|
|
38
|
-
export type AllocationAddress = AddressResult;
|
|
39
|
-
export type RewardObject = ObjectResult;
|
|
40
|
-
export type RewardAddress = AddressResult;
|
|
41
|
-
export type ReceivedObject = ObjectResult;
|
|
42
|
-
export type ProofAddress = AddressResult;
|
|
43
|
-
export type CoinWrapperObject = TransactionResult;
|
|
44
|
-
export type PaymentInfoObject = TransactionObjectArgument;
|
|
45
|
-
export type TxObject = ObjectResult | PassportObject | CoinWrapperObject;
|
|
46
|
-
export type TxAddress = string | TransactionResult | TransactionObjectArgument;
|
|
47
|
-
export type TxString = string | TransactionArgument;
|
|
48
|
-
export type TxNumber = number | TransactionArgument | bigint | string;
|
|
49
|
-
export type TxAddressVec = Array<string> | TransactionResult;
|
|
50
|
-
export type TxNumberVec = Array<number | bigint | string> | TransactionResult;
|
|
51
|
-
export declare enum ValueType {
|
|
52
|
-
Bool = 0,
|
|
53
|
-
Address = 1,
|
|
54
|
-
String = 2,
|
|
55
|
-
U8 = 3,
|
|
56
|
-
U16 = 4,
|
|
57
|
-
U32 = 5,
|
|
58
|
-
U64 = 6,
|
|
59
|
-
U128 = 7,
|
|
60
|
-
U256 = 8,
|
|
61
|
-
VecBool = 9,
|
|
62
|
-
VecAddress = 10,
|
|
63
|
-
VecString = 11,
|
|
64
|
-
VecU8 = 12,
|
|
65
|
-
VecU16 = 13,
|
|
66
|
-
VecU32 = 14,
|
|
67
|
-
VecU64 = 15,
|
|
68
|
-
VecU128 = 16,
|
|
69
|
-
VecU256 = 17,
|
|
70
|
-
VecVecU8 = 18,
|
|
71
|
-
Value = 19
|
|
72
|
-
}
|
|
73
|
-
export interface ValueContainer<T extends ValueType = ValueType> {
|
|
74
|
-
valueType: T;
|
|
75
|
-
value: ValueTypeToType[T];
|
|
76
|
-
}
|
|
77
|
-
export declare const createValueContainer: <T extends ValueType>(valueType: T, value: ValueTypeToType[T]) => ValueContainer<T>;
|
|
78
|
-
export type ValueTypeToType = {
|
|
79
|
-
[ValueType.Bool]: boolean;
|
|
80
|
-
[ValueType.Address]: AccountOrMark_Address | string;
|
|
81
|
-
[ValueType.String]: string;
|
|
82
|
-
[ValueType.U8]: number;
|
|
83
|
-
[ValueType.U16]: number;
|
|
84
|
-
[ValueType.U32]: number;
|
|
85
|
-
[ValueType.U64]: bigint | number;
|
|
86
|
-
[ValueType.U128]: bigint;
|
|
87
|
-
[ValueType.U256]: bigint;
|
|
88
|
-
[ValueType.VecBool]: boolean[];
|
|
89
|
-
[ValueType.VecAddress]: ManyAccountOrMark_Address | string[];
|
|
90
|
-
[ValueType.VecString]: string[];
|
|
91
|
-
[ValueType.VecU8]: number[] | Uint8Array;
|
|
92
|
-
[ValueType.VecU16]: number[];
|
|
93
|
-
[ValueType.VecU32]: number[];
|
|
94
|
-
[ValueType.VecU64]: (bigint | number)[];
|
|
95
|
-
[ValueType.VecU128]: bigint[];
|
|
96
|
-
[ValueType.VecU256]: bigint[];
|
|
97
|
-
[ValueType.VecVecU8]: (number[] | Uint8Array)[];
|
|
98
|
-
[ValueType.Value]: ValueContainer;
|
|
99
|
-
};
|
|
100
|
-
export type SupportedValue = ValueTypeToType[keyof ValueTypeToType];
|
|
101
|
-
export type ValueTypeInput = ValueType | string;
|
|
102
|
-
export declare const parseValueType: (input: ValueTypeInput) => ValueType;
|
|
103
|
-
export declare const valueTypeToString: (type: ValueType) => string;
|
|
104
|
-
export declare const isValidValueTypeInput: (input: unknown) => input is ValueTypeInput;
|
|
105
|
-
export declare enum OperatorType {
|
|
106
|
-
TypeQuery = 40,
|
|
107
|
-
TypeNumberAdd = 200,
|
|
108
|
-
TypeNumberSubtract = 201,
|
|
109
|
-
TypeNumberMultiply = 202,
|
|
110
|
-
TypeNumberDivide = 203,
|
|
111
|
-
TypeNumberMod = 204,
|
|
112
|
-
TypeNumberAddress = 205,
|
|
113
|
-
TypeNumberString = 206,
|
|
114
|
-
TypeAddressNumber = 207,
|
|
115
|
-
TypeStringNumber = 208,
|
|
116
|
-
TypeSafeU8 = 220,
|
|
117
|
-
TypeSafeU16 = 221,
|
|
118
|
-
TypeSafeU32 = 222,
|
|
119
|
-
TypeSafeU64 = 223,
|
|
120
|
-
TypeSafeU128 = 224,
|
|
121
|
-
TypeSafeU256 = 225,
|
|
122
|
-
TypeStringLength = 61,
|
|
123
|
-
TypeStringIndexof = 62,
|
|
124
|
-
TypeStringNocaseIndexof = 63,
|
|
125
|
-
TypeStringContains = 64,
|
|
126
|
-
TypeStringNocaseContains = 65,
|
|
127
|
-
TypeStringNocaseEqual = 66,
|
|
128
|
-
TypedValueType = 70,
|
|
129
|
-
TypedValueVecLength = 71,
|
|
130
|
-
TypedValueVecContains_Bool = 72,
|
|
131
|
-
TypedValueVecContains_Address = 73,
|
|
132
|
-
TypedValueVecContains_String = 74,
|
|
133
|
-
TypedValueVecContains_StringNoCase = 75,
|
|
134
|
-
TypedValueVecContains_Number = 76,
|
|
135
|
-
TypedValueVecContains_U8 = 82,
|
|
136
|
-
TypedValueVecContains_U16 = 83,
|
|
137
|
-
TypedValueVecContains_U32 = 84,
|
|
138
|
-
TypedValueVecContains_U64 = 85,
|
|
139
|
-
TypedValueVecContains_U128 = 86,
|
|
140
|
-
TypedValueVecContains_U256 = 87,
|
|
141
|
-
TypedValueVecIndexOf_Bool = 77,
|
|
142
|
-
TypedValueVecIndexOf_Address = 78,
|
|
143
|
-
TypedValueVecIndexOf_String = 79,
|
|
144
|
-
TypedValueVecIndexOf_StringNoCase = 80,
|
|
145
|
-
TypedValueVecIndexOf_Number = 81,
|
|
146
|
-
TypeLogicEqual = 90,
|
|
147
|
-
TypeLogicAsU256Greater = 91,
|
|
148
|
-
TypeLogicAsU256GreaterEqual = 92,
|
|
149
|
-
TypeLogicAsU256Lesser = 93,
|
|
150
|
-
TypeLogicAsU256LesserEqual = 94,
|
|
151
|
-
TypeLogicAsU256Equal = 95,
|
|
152
|
-
TypeLogicAnd = 96,
|
|
153
|
-
TypeLogicOr = 97,
|
|
154
|
-
TypeLogicNot = 98
|
|
155
|
-
}
|
|
156
|
-
export declare enum WitnessType {
|
|
157
|
-
TypeOrderProgress = 100,
|
|
158
|
-
TypeOrderMachine = 101,
|
|
159
|
-
TypeOrderService = 102,
|
|
160
|
-
TypeProgressMachine = 103,
|
|
161
|
-
TypeArbOrder = 104,
|
|
162
|
-
TypeArbArbitration = 105,
|
|
163
|
-
TypeArbProgress = 106,
|
|
164
|
-
TypeArbMachine = 107,
|
|
165
|
-
TypeArbService = 108
|
|
166
|
-
}
|
|
167
|
-
export declare const isWitnessType: (type: number | WitnessType | undefined | null) => type is WitnessType;
|
|
168
|
-
export declare enum ContextType {
|
|
169
|
-
TypeSigner = 45,
|
|
170
|
-
TypeClock = 46,
|
|
171
|
-
TypeGuard = 47,
|
|
172
|
-
TypeConstant = 48
|
|
173
|
-
}
|
|
174
|
-
export declare enum Modules {
|
|
175
|
-
Machine = "machine",
|
|
176
|
-
Progress = "progress",
|
|
177
|
-
Repository = "repository",
|
|
178
|
-
Permission = "permission",
|
|
179
|
-
Passport = "passport",
|
|
180
|
-
Guard = "guard",
|
|
181
|
-
Demand = "demand",
|
|
182
|
-
Order = "order",
|
|
183
|
-
Service = "service",
|
|
184
|
-
Resource = "resource",
|
|
185
|
-
Entity = "entity",
|
|
186
|
-
Wowok = "wowok",
|
|
187
|
-
Treasury = "treasury",
|
|
188
|
-
Payment = "payment",
|
|
189
|
-
Arbitration = "arbitration",
|
|
190
|
-
Arb = "arb",
|
|
191
|
-
Allocation = "allocation"
|
|
192
|
-
}
|
|
193
|
-
export declare const PackageAddress = "0x2";
|
|
194
|
-
export declare const GasTokenType = "0x2::wow::WOW";
|
|
195
|
-
export declare const GasCoinType = "0x2::coin::Coin<0x2::wow::WOW>";
|
|
196
|
-
export declare const RegistrarAddress = "0xaaa";
|
|
197
|
-
export declare const EntityAddress = "0xaab";
|
|
198
|
-
export declare const MAX_ENV_PERMISSION_GUARD_COUNT = 4;
|
|
199
|
-
export declare const isGasTokenType: (token_type: string) => boolean;
|
|
200
|
-
export declare const isValidValueType: (valueType: number) => boolean;
|
|
201
|
-
export declare const isThisPackage: (type: string) => boolean;
|
|
202
|
-
export declare const isValidArray: <T>(arr: T[], validator: (item: T) => boolean) => boolean;
|
|
203
|
-
export declare const isValidU8: (value: number | bigint | string) => boolean;
|
|
204
|
-
export declare const isValidU16: (value: number | bigint | string) => boolean;
|
|
205
|
-
export declare const isValidU64: (value: number | bigint | string) => boolean;
|
|
206
|
-
export declare const isValidU128: (value: number | bigint | string) => boolean;
|
|
207
|
-
export declare const isValidU256: (value: number | bigint | string) => boolean;
|
|
208
|
-
export declare const isValidU32: (value: number | bigint | string) => boolean;
|
|
209
|
-
export declare const IsBcsStringLength: (str: string, max_len: number) => boolean;
|
|
210
|
-
export declare const MAX_DESCRIPTION_LENGTH = 4000;
|
|
211
|
-
export declare const MAX_NAME_LENGTH = 64;
|
|
212
|
-
export declare const MAX_LONG_NAME_LENGTH = 256;
|
|
213
|
-
export declare const MAX_GUARD_TABLE_ITEM_LENGTH = 256;
|
|
214
|
-
export declare const MAX_INPUT_SIZE = 1024;
|
|
215
|
-
export declare const MAX_TABLE_SIZE = 40000;
|
|
216
|
-
export declare const MAX_DEPENDED_COUNT = 4;
|
|
217
|
-
export declare const MAX_MULTI_OPERANDS = 8;
|
|
218
|
-
export declare const isValidDescription: (description: string) => boolean;
|
|
219
|
-
export declare const isValidName: (name: string) => boolean;
|
|
220
|
-
export declare const isValidLongName: (name: string) => boolean;
|
|
221
|
-
export declare const isValidHttpUrl: (url: string) => boolean;
|
|
222
|
-
export declare const isValueTypeNumber: (valueType: ValueType | number) => boolean;
|
|
223
|
-
export declare const toTxObject: (tx: Transaction, arg: TxObject) => TransactionObjectArgument;
|
|
224
|
-
export declare const toTxString: (tx: Transaction, arg: TxString) => TransactionArgument;
|
|
225
|
-
export declare const toTxU8: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
226
|
-
export declare const toTxU16: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
227
|
-
export declare const toTxU32: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
228
|
-
export declare const toTxU128: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
229
|
-
export declare const toTxU256: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
230
|
-
export declare const toTxU64: (tx: Transaction, arg: TxNumber) => TransactionArgument;
|
|
231
|
-
export declare const toTxAddress: (tx: Transaction, arg: TxAddress) => TransactionArgument;
|
|
232
|
-
export declare const toTxAddressVec: (tx: Transaction, arg: TxAddressVec, max_len: number) => TransactionArgument;
|
|
233
|
-
export declare const toTxU16Vec: (tx: Transaction, arg: TxNumberVec, max_len: number) => TransactionArgument;
|
|
234
|
-
export declare const object_name_from_type: (type_repr: string | null | undefined) => string | undefined;
|
|
235
|
-
export interface ObjectModuleAndName {
|
|
236
|
-
module: string;
|
|
237
|
-
name: string;
|
|
238
|
-
}
|
|
239
|
-
export declare const object_module_and_name_from_type: (type_repr: string | null | undefined) => ObjectModuleAndName | undefined;
|
|
240
|
-
export interface NamedObject {
|
|
241
|
-
name?: string;
|
|
242
|
-
tags?: string[];
|
|
243
|
-
replaceExistName?: boolean;
|
|
244
|
-
onChain?: boolean;
|
|
245
|
-
}
|
|
246
|
-
export interface NamedObjectWithDescription extends NamedObject {
|
|
247
|
-
description?: string;
|
|
248
|
-
}
|
|
249
|
-
export interface NamedObjectWithPermission extends NamedObject {
|
|
250
|
-
permission?: DescriptionObject;
|
|
251
|
-
}
|
|
252
|
-
export interface TypeNamedObjectWithPermission extends NamedObjectWithPermission {
|
|
253
|
-
type_parameter: string;
|
|
254
|
-
}
|
|
255
|
-
export interface TypeNamedObject extends NamedObject {
|
|
256
|
-
type_parameter: string;
|
|
257
|
-
}
|
|
258
|
-
export type TypedPermissionObject = string | TypeNamedObjectWithPermission;
|
|
259
|
-
export type TypedDescriptionObject = string | TypeNamedObject;
|
|
260
|
-
export type WithPermissionObject = string | NamedObjectWithPermission;
|
|
261
|
-
export type NormalObject = string | NamedObject;
|
|
262
|
-
export type DescriptionObject = string | NamedObjectWithDescription;
|
|
263
|
-
export type WObject = TypedPermissionObject | TypedDescriptionObject | PermissionObject | NormalObject | DescriptionObject;
|
|
264
|
-
export declare const GetObjectExisted: (object?: WObject) => Promise<string | undefined>;
|
|
265
|
-
export declare const GetObjectDescription: (object?: WObject) => string | undefined;
|
|
266
|
-
export declare const GetObject: (object?: WObject) => NamedObjectWithPermission | TypeNamedObjectWithPermission | NamedObjectWithDescription | TypeNamedObject | undefined;
|
|
267
|
-
export declare const MAX_PERMISSION_GUARD_COUNT = 4;
|
|
268
|
-
export interface CallEnv {
|
|
269
|
-
network?: ENTRYPOINT;
|
|
270
|
-
account?: string | null;
|
|
271
|
-
permission_guard?: string[];
|
|
272
|
-
no_cache?: boolean;
|
|
273
|
-
referrer?: string | null;
|
|
274
|
-
}
|
|
275
|
-
export declare const CoinWrapPrefix = "0x2::payment::CoinWrapper";
|
|
276
|
-
export type BalanceType = number | bigint | string;
|
|
277
|
-
export declare const IsValidBalance: (balance: BalanceType) => boolean;
|
|
278
|
-
export declare const IsValidEndpoint: (endpoint?: string | null | undefined) => boolean;
|
|
279
|
-
export declare const IsValidArgType: (arg_type: string | null | undefined) => boolean;
|
|
280
|
-
export type CoinParam = {
|
|
281
|
-
coin: CoinObject | string;
|
|
282
|
-
} | {
|
|
283
|
-
balance: BalanceType;
|
|
284
|
-
};
|
|
285
|
-
export declare enum RecipientType {
|
|
286
|
-
GuardIdentifier = 0,
|
|
287
|
-
Entity = 1,
|
|
288
|
-
Signer = 2
|
|
289
|
-
}
|
|
290
|
-
export type Recipient = {
|
|
291
|
-
GuardIdentifier: number;
|
|
292
|
-
} | {
|
|
293
|
-
Entity: AccountOrMark_Address;
|
|
294
|
-
} | {
|
|
295
|
-
Signer: null;
|
|
296
|
-
};
|
|
297
|
-
export type ObjectWithType = {
|
|
298
|
-
object: string;
|
|
299
|
-
type: string;
|
|
300
|
-
};
|
|
301
|
-
export declare function serviceFn(name: string): string;
|
|
302
|
-
export declare function demandFn(name: string): string;
|
|
303
|
-
export declare function machineFn(name: string): string;
|
|
304
|
-
export declare function contactFn(name: string): string;
|
|
305
|
-
export declare function treasuryFn(name: string): string;
|
|
306
|
-
export declare function arbitrationFn(name: string): string;
|
|
307
|
-
export declare function repositoryFn(name: string): string;
|
|
308
|
-
export declare function rewardFn(name: string): string;
|
|
309
|
-
export declare enum ObjectType {
|
|
310
|
-
Permission = "Permission",
|
|
311
|
-
Repository = "Repository",
|
|
312
|
-
Arb = "Arb",
|
|
313
|
-
Arbitration = "Arbitration",
|
|
314
|
-
Service = "Service",
|
|
315
|
-
Machine = "Machine",
|
|
316
|
-
Order = "Order",
|
|
317
|
-
Progress = "Progress",
|
|
318
|
-
Payment = "Payment",
|
|
319
|
-
Treasury = "Treasury",
|
|
320
|
-
Guard = "Guard",
|
|
321
|
-
Demand = "Demand",
|
|
322
|
-
Passport = "Passport",
|
|
323
|
-
Allocation = "Allocation",
|
|
324
|
-
Resource = "Resource",
|
|
325
|
-
Reward = "Reward",
|
|
326
|
-
Discount = "Discount",
|
|
327
|
-
EntityRegistrar = "EntityRegistrar",
|
|
328
|
-
EntityLinker = "EntityLinker",
|
|
329
|
-
Proof = "Proof",
|
|
330
|
-
Contact = "Contact",
|
|
331
|
-
WReceivedObject = "WReceivedObject",
|
|
332
|
-
TableItem_ProgressHistory = "TableItem_ProgressHistory",
|
|
333
|
-
TableItem_PermissionPerm = "TableItem_PermissionPerm",
|
|
334
|
-
TableItem_DemandPresenter = "TableItem_DemandPresenter",
|
|
335
|
-
TableItem_MachineNode = "TableItem_MachineNode",
|
|
336
|
-
TableItem_TreasuryHistory = "TableItem_TreasuryHistory",
|
|
337
|
-
TableItem_RepositoryData = "TableItem_RepositoryData",
|
|
338
|
-
TableItem_RewardRecord = "TableItem_RewardRecord",
|
|
339
|
-
TableItem_EntityLinker = "TableItem_EntityLinker",
|
|
340
|
-
TableItem_AddressMark = "TableItem_AddressMark",
|
|
341
|
-
TableItem_EntityRegistrar = "TableItem_EntityRegistrar"
|
|
342
|
-
}
|
|
343
|
-
export declare const ENTITY_LINKER_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aaa";
|
|
344
|
-
export declare const ENTITY_REGISTRAR_ADDRESS = "0x0000000000000000000000000000000000000000000000000000000000000aab";
|
package/dist/cjs/w/common.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{bcs}from'../bcs/index.js';import{W_ERROR,WErrors}from'./exception.js';import{LocalMark}from'./local/local.js';export var ValueType;(function(a){a[a['Bool']=0x0]='Bool',a[a['Address']=0x1]='Address',a[a['String']=0x2]='String',a[a['U8']=0x3]='U8',a[a['U16']=0x4]='U16',a[a['U32']=0x5]='U32',a[a['U64']=0x6]='U64',a[a['U128']=0x7]='U128',a[a['U256']=0x8]='U256',a[a['VecBool']=0x9]='VecBool',a[a['VecAddress']=0xa]='VecAddress',a[a['VecString']=0xb]='VecString',a[a['VecU8']=0xc]='VecU8',a[a['VecU16']=0xd]='VecU16',a[a['VecU32']=0xe]='VecU32',a[a['VecU64']=0xf]='VecU64',a[a['VecU128']=0x10]='VecU128',a[a['VecU256']=0x11]='VecU256',a[a['VecVecU8']=0x12]='VecVecU8',a[a['Value']=0x13]='Value';}(ValueType||(ValueType={})));export const createValueContainer=(a,b)=>{return{'valueType':a,'value':b};};export const parseValueType=a=>{if(typeof a==='number'){if(a>=0x0&&a<=0x13)return a;throw new Error('Invalid\x20ValueType\x20number:\x20'+a+'.\x20Valid\x20range:\x200-19');}const b=Object['keys'](ValueType)['filter'](e=>isNaN(Number(e))),c=a['toLowerCase'](),d=b['find'](e=>e['toLowerCase']()===c);if(d===undefined)throw new Error('Invalid\x20ValueType\x20string:\x20\x22'+a+'\x22.\x20Valid\x20values:\x20'+b['join'](',\x20'));return ValueType[d];};export const valueTypeToString=a=>{return ValueType[a];};export const isValidValueTypeInput=a=>{if(typeof a==='number')return a>=0x0&&a<=0x13;if(typeof a==='string'){const b=a['toUpperCase'](),c=ValueType[b];return typeof c==='number';}return![];};export var OperatorType;(function(a){a[a['TypeQuery']=0x28]='TypeQuery',a[a['TypeNumberAdd']=0xc8]='TypeNumberAdd',a[a['TypeNumberSubtract']=0xc9]='TypeNumberSubtract',a[a['TypeNumberMultiply']=0xca]='TypeNumberMultiply',a[a['TypeNumberDivide']=0xcb]='TypeNumberDivide',a[a['TypeNumberMod']=0xcc]='TypeNumberMod',a[a['TypeNumberAddress']=0xcd]='TypeNumberAddress',a[a['TypeNumberString']=0xce]='TypeNumberString',a[a['TypeAddressNumber']=0xcf]='TypeAddressNumber',a[a['TypeStringNumber']=0xd0]='TypeStringNumber',a[a['TypeSafeU8']=0xdc]='TypeSafeU8',a[a['TypeSafeU16']=0xdd]='TypeSafeU16',a[a['TypeSafeU32']=0xde]='TypeSafeU32',a[a['TypeSafeU64']=0xdf]='TypeSafeU64',a[a['TypeSafeU128']=0xe0]='TypeSafeU128',a[a['TypeSafeU256']=0xe1]='TypeSafeU256',a[a['TypeStringLength']=0x3d]='TypeStringLength',a[a['TypeStringIndexof']=0x3e]='TypeStringIndexof',a[a['TypeStringNocaseIndexof']=0x3f]='TypeStringNocaseIndexof',a[a['TypeStringContains']=0x40]='TypeStringContains',a[a['TypeStringNocaseContains']=0x41]='TypeStringNocaseContains',a[a['TypeStringNocaseEqual']=0x42]='TypeStringNocaseEqual',a[a['TypedValueType']=0x46]='TypedValueType',a[a['TypedValueVecLength']=0x47]='TypedValueVecLength',a[a['TypedValueVecContains_Bool']=0x48]='TypedValueVecContains_Bool',a[a['TypedValueVecContains_Address']=0x49]='TypedValueVecContains_Address',a[a['TypedValueVecContains_String']=0x4a]='TypedValueVecContains_String',a[a['TypedValueVecContains_StringNoCase']=0x4b]='TypedValueVecContains_StringNoCase',a[a['TypedValueVecContains_Number']=0x4c]='TypedValueVecContains_Number',a[a['TypedValueVecContains_U8']=0x52]='TypedValueVecContains_U8',a[a['TypedValueVecContains_U16']=0x53]='TypedValueVecContains_U16',a[a['TypedValueVecContains_U32']=0x54]='TypedValueVecContains_U32',a[a['TypedValueVecContains_U64']=0x55]='TypedValueVecContains_U64',a[a['TypedValueVecContains_U128']=0x56]='TypedValueVecContains_U128',a[a['TypedValueVecContains_U256']=0x57]='TypedValueVecContains_U256',a[a['TypedValueVecIndexOf_Bool']=0x4d]='TypedValueVecIndexOf_Bool',a[a['TypedValueVecIndexOf_Address']=0x4e]='TypedValueVecIndexOf_Address',a[a['TypedValueVecIndexOf_String']=0x4f]='TypedValueVecIndexOf_String',a[a['TypedValueVecIndexOf_StringNoCase']=0x50]='TypedValueVecIndexOf_StringNoCase',a[a['TypedValueVecIndexOf_Number']=0x51]='TypedValueVecIndexOf_Number',a[a['TypeLogicEqual']=0x5a]='TypeLogicEqual',a[a['TypeLogicAsU256Greater']=0x5b]='TypeLogicAsU256Greater',a[a['TypeLogicAsU256GreaterEqual']=0x5c]='TypeLogicAsU256GreaterEqual',a[a['TypeLogicAsU256Lesser']=0x5d]='TypeLogicAsU256Lesser',a[a['TypeLogicAsU256LesserEqual']=0x5e]='TypeLogicAsU256LesserEqual',a[a['TypeLogicAsU256Equal']=0x5f]='TypeLogicAsU256Equal',a[a['TypeLogicAnd']=0x60]='TypeLogicAnd',a[a['TypeLogicOr']=0x61]='TypeLogicOr',a[a['TypeLogicNot']=0x62]='TypeLogicNot';}(OperatorType||(OperatorType={})));export var WitnessType;(function(a){a[a['TypeOrderProgress']=0x64]='TypeOrderProgress',a[a['TypeOrderMachine']=0x65]='TypeOrderMachine',a[a['TypeOrderService']=0x66]='TypeOrderService',a[a['TypeProgressMachine']=0x67]='TypeProgressMachine',a[a['TypeArbOrder']=0x68]='TypeArbOrder',a[a['TypeArbArbitration']=0x69]='TypeArbArbitration',a[a['TypeArbProgress']=0x6a]='TypeArbProgress',a[a['TypeArbMachine']=0x6b]='TypeArbMachine',a[a['TypeArbService']=0x6c]='TypeArbService';}(WitnessType||(WitnessType={})));export const isWitnessType=a=>{return a!=null&&a>=WitnessType['TypeOrderProgress']&&a<=WitnessType['TypeArbService'];};export var ContextType;(function(a){a[a['TypeSigner']=0x2d]='TypeSigner',a[a['TypeClock']=0x2e]='TypeClock',a[a['TypeGuard']=0x2f]='TypeGuard',a[a['TypeConstant']=0x30]='TypeConstant';}(ContextType||(ContextType={})));export var Modules;(function(a){a['Machine']='machine',a['Progress']='progress',a['Repository']='repository',a['Permission']='permission',a['Passport']='passport',a['Guard']='guard',a['Demand']='demand',a['Order']='order',a['Service']='service',a['Resource']='resource',a['Entity']='entity',a['Wowok']='wowok',a['Treasury']='treasury',a['Payment']='payment',a['Arbitration']='arbitration',a['Arb']='arb',a['Allocation']='allocation';}(Modules||(Modules={})));export const PackageAddress='0x2';export const GasTokenType='0x2::wow::WOW';export const GasCoinType='0x2::coin::Coin<0x2::wow::WOW>';export const RegistrarAddress='0xaaa';export const EntityAddress='0xaab';export const MAX_ENV_PERMISSION_GUARD_COUNT=0x4;export const isGasTokenType=a=>{return a===GasTokenType;};export const isValidValueType=a=>{return a>=ValueType['Bool']&&a<=ValueType['Value'];};export const isThisPackage=a=>{return a['startsWith']('0x2::');};export const isValidArray=(a,b)=>{if(!Array['isArray'](a))return![];return a['every'](c=>b(c));};export const isValidU8=a=>{if(typeof a==='string'){const b=parseInt(a,0xa);return!isNaN(b)&&Number['isInteger'](b)&&b>=0x0&&b<=0xff;}if(typeof a==='bigint')return a>=0x0n&&a<=0xffn;return Number['isInteger'](a)&&a>=0x0&&a<=0xff;};export const isValidU16=a=>{if(typeof a==='string'){const b=parseInt(a,0xa);return!isNaN(b)&&Number['isInteger'](b)&&b>=0x0&&b<=0xffff;}if(typeof a==='bigint')return a>=0x0n&&a<=0xffffn;return Number['isInteger'](a)&&a>=0x0&&a<=0xffff;};export const isValidU64=a=>{if(typeof a==='string'){if(a['length']>0xf)try{const b=BigInt(a);return b>=0x0n&&b<=0xffffffffffffffffn;}catch{return![];}else{const c=parseInt(a,0xa);return!isNaN(c)&&Number['isInteger'](c)&&c>=0x0&&c<=Number['MAX_SAFE_INTEGER'];}}if(typeof a==='bigint')return a>=0x0n&&a<=0xffffffffffffffffn;return Number['isInteger'](a)&&a>=0x0&&a<=Number['MAX_SAFE_INTEGER'];};export const isValidU128=a=>{if(typeof a==='string')try{const b=BigInt(a);return b>=0x0n&&b<=0xffffffffffffffffffffffffffffffffn;}catch{return![];}if(typeof a==='bigint')return a>=0x0n&&a<=0xffffffffffffffffffffffffffffffffn;return Number['isInteger'](a)&&a>=0x0&&a<=Number['MAX_SAFE_INTEGER'];};export const isValidU256=a=>{if(typeof a==='string')try{const b=BigInt(a);return b>=0x0n&&b<=0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn;}catch{return![];}if(typeof a==='bigint')return a>=0x0n&&a<=0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffn;return Number['isInteger'](a)&&a>=0x0&&a<=Number['MAX_SAFE_INTEGER'];};export const isValidU32=a=>{if(typeof a==='string'){const b=parseInt(a,0xa);return!isNaN(b)&&Number['isInteger'](b)&&b>=0x0&&b<=0xffffffff;}if(typeof a==='bigint')return a>=0x0n&&a<=0xffffffffn;return Number['isInteger'](a)&&a>=0x0&&a<=0xffffffff;};export const IsBcsStringLength=(a,b)=>{return bcs['string']()['serialize'](a)['toBytes']()['length']<=b;};export const MAX_DESCRIPTION_LENGTH=0xfa0;export const MAX_NAME_LENGTH=0x40;export const MAX_LONG_NAME_LENGTH=0x100;export const MAX_GUARD_TABLE_ITEM_LENGTH=0x100;export const MAX_INPUT_SIZE=0x400;export const MAX_TABLE_SIZE=0x9c40;export const MAX_DEPENDED_COUNT=0x4;export const MAX_MULTI_OPERANDS=0x8;export const isValidDescription=a=>{return IsBcsStringLength(a,MAX_DESCRIPTION_LENGTH);};export const isValidName=a=>{return IsBcsStringLength(a,MAX_NAME_LENGTH)&&!a['toLowerCase']()['startsWith']('0x');};export const isValidLongName=a=>{return IsBcsStringLength(a,MAX_LONG_NAME_LENGTH);};export const isValidHttpUrl=a=>{try{const b=new URL(a);return b['protocol']==='http:'||b['protocol']==='https:'||b['protocol']==='ipfs:';}catch(c){return![];}};export const isValueTypeNumber=a=>{return a===ValueType['U8']||a===ValueType['U16']||a===ValueType['U32']||a===ValueType['U64']||a===ValueType['U128']||a===ValueType['U256'];};export const toTxObject=(a,b)=>{if(typeof b==='string')return a['object'](b);return b;};export const toTxString=(a,b)=>{if(b===undefined||b===null)return a['pure']['string']('');if(typeof b==='string')return a['pure']['string'](b);return b;};export const toTxU8=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU8(b)&&W_ERROR(WErrors['IsValidU8'],'Invalid\x20U8\x20value:\x20'+b),a['pure']['u8'](Number(b));return b;};export const toTxU16=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU16(b)&&W_ERROR(WErrors['IsValidU16'],'Invalid\x20U16\x20value:\x20'+b),a['pure']['u16'](Number(b));return b;};export const toTxU32=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU32(b)&&W_ERROR(WErrors['IsValidU32'],'Invalid\x20U32\x20value:\x20'+b),a['pure']['u32'](Number(b));return b;};export const toTxU128=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU128(b)&&W_ERROR(WErrors['IsValidU128'],'Invalid\x20U128\x20value:\x20'+b),a['pure']['u128'](b);return b;};export const toTxU256=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU256(b)&&W_ERROR(WErrors['IsValidU256'],'Invalid\x20U256\x20value:\x20'+b),a['pure']['u256'](b);return b;};export const toTxU64=(a,b)=>{if(typeof b==='string'||typeof b==='number'||typeof b==='bigint')return!isValidU64(b)&&W_ERROR(WErrors['IsValidU64'],'Invalid\x20U64\x20value:\x20'+b),a['pure']['u64'](b);return b;};export const toTxAddress=(a,b)=>{if(typeof b==='string')return a['pure']['address'](b);return b;};export const toTxAddressVec=(a,b,c)=>{if(Array['isArray'](b))return b['length']>c&&W_ERROR(WErrors['AddressCountExceeded'],'Invalid\x20AddressVec\x20length:\x20'+b['length']),a['pure']['vector']('address',b);return b;};export const toTxU16Vec=(a,b,c)=>{if(Array['isArray'](b))return b['length']>c&&W_ERROR(WErrors['NumberCountExceeded'],'Invalid\x20U16Vec\x20length:\x20'+b['length']),a['pure']['vector']('u16',b['map'](d=>{return!isValidU16(d)&&W_ERROR(WErrors['IsValidU16'],'Invalid\x20U16\x20value:\x20'+d),Number(d);}));return b;};export const object_name_from_type=a=>{if(!a)return undefined;let b=a['indexOf']('::');if(b>0x0&&a['slice'](0x0,b)==='0x2'){b=a['indexOf']('<');b>0x0&&(a=a['slice'](0x0,b));const c=a['lastIndexOf']('::');if(c>0x0)return a['slice'](c+0x2);}return undefined;};export const object_module_and_name_from_type=a=>{if(!a)return undefined;let b=a['indexOf']('::');if(b>0x0&&a['slice'](0x0,b)==='0x2'){b=a['indexOf']('<');b>0x0&&(a=a['slice'](0x0,b));const c=a['lastIndexOf']('::');if(c>0x0){const d=a['slice'](b+0x2,c),e=a['slice'](c+0x2);return{'module':d,'name':e};}}return undefined;};function isTypeNamedObjectWithPermission(a){return a!=null&&typeof a==='object'&&'type_parameter'in a&&typeof a['type_parameter']==='string';}function isNamedObjectWithPermission(a){return a!=null&&typeof a==='object'&&'permission'in a;}function isNamedObject(a){return a!=null&&typeof a==='object';}function isNamedObjectWithDescription(a){return a!=null&&typeof a==='object'&&'description'in a;}function isTypeNamedObjectWithDescription(a){return a!=null&&typeof a==='object'&&'type_parameter'in a&&typeof a['type_parameter']==='string';}export const GetObjectExisted=async a=>{if(typeof a==='string')return await LocalMark['Instance']()['get_address'](a);return undefined;};export const GetObjectDescription=a=>{return isNamedObjectWithDescription(a)?a['description']:undefined;};export const GetObject=a=>{if(isTypeNamedObjectWithPermission(a))return a;else{if(isTypeNamedObjectWithDescription(a))return a;else{if(isNamedObjectWithPermission(a))return a;else{if(isNamedObject(a))return a;}}}return undefined;};export const MAX_PERMISSION_GUARD_COUNT=0x4;export const CoinWrapPrefix=PackageAddress+'::payment::CoinWrapper';export const IsValidBalance=a=>{return isValidU64(a);};export const IsValidEndpoint=a=>{return a&&IsBcsStringLength(a,0x400);};export const IsValidArgType=a=>{if(a){const b=a['split']('::');if(b['length']>=0x3)return!![];}return![];};export var RecipientType;(function(a){a[a['GuardIdentifier']=0x0]='GuardIdentifier',a[a['Entity']=0x1]='Entity',a[a['Signer']=0x2]='Signer';}(RecipientType||(RecipientType={})));export function serviceFn(a){return PackageAddress+'::service::'+a;}export function demandFn(a){return PackageAddress+'::demand::'+a;}export function machineFn(a){return PackageAddress+'::machine::'+a;}export function contactFn(a){return PackageAddress+'::contact::'+a;}export function treasuryFn(a){return PackageAddress+'::treasury::'+a;}export function arbitrationFn(a){return PackageAddress+'::arbitration::'+a;}export function repositoryFn(a){return PackageAddress+'::repository::'+a;}export function rewardFn(a){return PackageAddress+'::reward::'+a;}export var ObjectType;(function(a){a['Permission']='Permission',a['Repository']='Repository',a['Arb']='Arb',a['Arbitration']='Arbitration',a['Service']='Service',a['Machine']='Machine',a['Order']='Order',a['Progress']='Progress',a['Payment']='Payment',a['Treasury']='Treasury',a['Guard']='Guard',a['Demand']='Demand',a['Passport']='Passport',a['Allocation']='Allocation',a['Resource']='Resource',a['Reward']='Reward',a['Discount']='Discount',a['EntityRegistrar']='EntityRegistrar',a['EntityLinker']='EntityLinker',a['Proof']='Proof',a['Contact']='Contact',a['WReceivedObject']='WReceivedObject',a['TableItem_ProgressHistory']='TableItem_ProgressHistory',a['TableItem_PermissionPerm']='TableItem_PermissionPerm',a['TableItem_DemandPresenter']='TableItem_DemandPresenter',a['TableItem_MachineNode']='TableItem_MachineNode',a['TableItem_TreasuryHistory']='TableItem_TreasuryHistory',a['TableItem_RepositoryData']='TableItem_RepositoryData',a['TableItem_RewardRecord']='TableItem_RewardRecord',a['TableItem_EntityLinker']='TableItem_EntityLinker',a['TableItem_AddressMark']='TableItem_AddressMark',a['TableItem_EntityRegistrar']='TableItem_EntityRegistrar';}(ObjectType||(ObjectType={})));export const ENTITY_LINKER_ADDRESS='0x0000000000000000000000000000000000000000000000000000000000000aaa';export const ENTITY_REGISTRAR_ADDRESS='0x0000000000000000000000000000000000000000000000000000000000000aab';
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export declare enum WErrors {
|
|
2
|
-
AccountNotFound = "account not found",
|
|
3
|
-
AddressNotFound = "address not found",
|
|
4
|
-
IsValidDescription = "invalid description",
|
|
5
|
-
IsValidName = "invalid name",
|
|
6
|
-
IsValidName_AllowEmpty = "invalid name",
|
|
7
|
-
IsValidEndpoint = "invalid endpoint",
|
|
8
|
-
IsValidAddress = "invalid address",
|
|
9
|
-
IsValidArgType = "invalid argument type",
|
|
10
|
-
IsValidTokenType = "invalid token type",
|
|
11
|
-
IsValidUint = "invalid uint",
|
|
12
|
-
IsValidInt = "invalid int",
|
|
13
|
-
IsValidU8 = "invalid u8",
|
|
14
|
-
IsValidU16 = "invalid u16",
|
|
15
|
-
IsValidU32 = "invalid u32",
|
|
16
|
-
IsValidU64 = "invalid u64",
|
|
17
|
-
IsValidU128 = "invalid u128",
|
|
18
|
-
IsValidU256 = "invalid u256",
|
|
19
|
-
IsValidRate = "invalid rate[0-10000]",
|
|
20
|
-
IsValidArray = "invalid array",
|
|
21
|
-
IsValidObjects = "invalid objects",
|
|
22
|
-
AllInvalid = "one valid at least",
|
|
23
|
-
InvalidParam = "invalid parameter",
|
|
24
|
-
IsValidPermissionIndex = "invalid permission index",
|
|
25
|
-
IsValidKey = "invalid key",
|
|
26
|
-
Fail = "fail",
|
|
27
|
-
IsValidIdentifier = "identifier invalid",
|
|
28
|
-
IsValidHttpUrl = "invalid url",
|
|
29
|
-
IsValidBizPermissionIndex = "invalid biz-permission id[1000 - 65535]",
|
|
30
|
-
BcsTypeInvalid = "invalid bcs type",
|
|
31
|
-
IsValidServiceItemName = "invalid service item name",
|
|
32
|
-
IsValidCoinType = "not the coin type",
|
|
33
|
-
IsValidGuardIdentifier = "guard identifier invalid",
|
|
34
|
-
NoPermission = "no permission",
|
|
35
|
-
IsValidValue = "invalid value",
|
|
36
|
-
IsValidValueType = "invalid value type",
|
|
37
|
-
IsValidLocation = "invalid location",
|
|
38
|
-
NetworkInvalid = "protocol network not specified",
|
|
39
|
-
WitnessTypeInvalid = "witness type invalid",
|
|
40
|
-
AddressCountExceeded = "address count exceeded",
|
|
41
|
-
NumberCountExceeded = "number count exceeded",
|
|
42
|
-
NewGuardCheckFailed = "new guard check failed",
|
|
43
|
-
GuardTableItemLengthExceeded = "guard table item length exceeded",
|
|
44
|
-
AccountPersistentStorageNotSet = "account persistent storage not set",
|
|
45
|
-
AccountPersistentStorageNotFound = "account persistent storage not found",
|
|
46
|
-
AccountNameExist = "account name exist",
|
|
47
|
-
ConfigPersistentStorageNotSet = "config persistent storage not set",
|
|
48
|
-
TokenNotFoundLocally = "token not found",
|
|
49
|
-
LocalMarkNameExist = "local mark name exist",
|
|
50
|
-
MaxObjectsPerQuery = "max objects per query",
|
|
51
|
-
ResourceTagCountExceeded = "resource tag count exceeded",
|
|
52
|
-
ParseObjectContentFailed = "parse object content failed"
|
|
53
|
-
}
|
|
54
|
-
export declare class WException extends Error {
|
|
55
|
-
readonly code: WErrors;
|
|
56
|
-
readonly details?: any;
|
|
57
|
-
constructor(error: WErrors, details?: any);
|
|
58
|
-
getErrorMessage(): string;
|
|
59
|
-
getErrorCode(): WErrors;
|
|
60
|
-
getDetails(): any;
|
|
61
|
-
}
|
|
62
|
-
export declare const W_ERROR: (error: WErrors, details?: any) => never;
|
|
63
|
-
export type WResult<T> = {
|
|
64
|
-
success: true;
|
|
65
|
-
data: T;
|
|
66
|
-
} | {
|
|
67
|
-
success: false;
|
|
68
|
-
error: WException;
|
|
69
|
-
};
|
|
70
|
-
export declare const W_SUCCESS: <T>(data: T) => WResult<T>;
|
|
71
|
-
export declare const W_FAILURE: (error: WErrors, details?: any) => WResult<any>;
|
|
72
|
-
export declare function WValidate<T extends (...args: any[]) => any>(fn: T): T;
|
|
73
|
-
export declare const W_SAFE: <T>(fn: () => T, error?: WErrors, details?: any) => WResult<T>;
|
|
74
|
-
export declare const W_ENSURE: (condition: boolean, error: WErrors, details?: any) => void;
|
|
75
|
-
export declare const W_VALIDATE_PARAM: (param: any, validator: (value: any) => boolean, error: WErrors, details?: any) => void;
|
|
76
|
-
export interface MoveModuleError {
|
|
77
|
-
module: string;
|
|
78
|
-
code: number;
|
|
79
|
-
description: string;
|
|
80
|
-
}
|
|
81
|
-
export declare const MoveErrors: MoveModuleError[];
|
|
82
|
-
export declare function getMoveErrorDescription(module: string, code: number): string | null;
|
|
83
|
-
export declare function enrichMoveError(errorMessage: string): string;
|
package/dist/cjs/w/exception.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export var WErrors;(function(a){a['AccountNotFound']='account\x20not\x20found',a['AddressNotFound']='address\x20not\x20found',a['IsValidDescription']='invalid\x20description',a['IsValidName']='invalid\x20name',a['IsValidName_AllowEmpty']='invalid\x20name',a['IsValidEndpoint']='invalid\x20endpoint',a['IsValidAddress']='invalid\x20address',a['IsValidArgType']='invalid\x20argument\x20type',a['IsValidTokenType']='invalid\x20token\x20type',a['IsValidUint']='invalid\x20uint',a['IsValidInt']='invalid\x20int',a['IsValidU8']='invalid\x20u8',a['IsValidU16']='invalid\x20u16',a['IsValidU32']='invalid\x20u32',a['IsValidU64']='invalid\x20u64',a['IsValidU128']='invalid\x20u128',a['IsValidU256']='invalid\x20u256',a['IsValidRate']='invalid\x20rate[0-10000]',a['IsValidArray']='invalid\x20array',a['IsValidObjects']='invalid\x20objects',a['AllInvalid']='one\x20valid\x20at\x20least',a['InvalidParam']='invalid\x20parameter',a['IsValidPermissionIndex']='invalid\x20permission\x20index',a['IsValidKey']='invalid\x20key',a['Fail']='fail',a['IsValidIdentifier']='identifier\x20invalid',a['IsValidHttpUrl']='invalid\x20url',a['IsValidBizPermissionIndex']='invalid\x20biz-permission\x20id[1000\x20-\x2065535]',a['BcsTypeInvalid']='invalid\x20bcs\x20type',a['IsValidServiceItemName']='invalid\x20service\x20item\x20name',a['IsValidCoinType']='not\x20the\x20coin\x20type',a['IsValidGuardIdentifier']='guard\x20identifier\x20invalid',a['NoPermission']='no\x20permission',a['IsValidValue']='invalid\x20value',a['IsValidValueType']='invalid\x20value\x20type',a['IsValidLocation']='invalid\x20location',a['NetworkInvalid']='protocol\x20network\x20not\x20specified',a['WitnessTypeInvalid']='witness\x20type\x20invalid',a['AddressCountExceeded']='address\x20count\x20exceeded',a['NumberCountExceeded']='number\x20count\x20exceeded',a['NewGuardCheckFailed']='new\x20guard\x20check\x20failed',a['GuardTableItemLengthExceeded']='guard\x20table\x20item\x20length\x20exceeded',a['AccountPersistentStorageNotSet']='account\x20persistent\x20storage\x20not\x20set',a['AccountPersistentStorageNotFound']='account\x20persistent\x20storage\x20not\x20found',a['AccountNameExist']='account\x20name\x20exist',a['ConfigPersistentStorageNotSet']='config\x20persistent\x20storage\x20not\x20set',a['TokenNotFoundLocally']='token\x20not\x20found',a['LocalMarkNameExist']='local\x20mark\x20name\x20exist',a['MaxObjectsPerQuery']='max\x20objects\x20per\x20query',a['ResourceTagCountExceeded']='resource\x20tag\x20count\x20exceeded',a['ParseObjectContentFailed']='parse\x20object\x20content\x20failed';}(WErrors||(WErrors={})));export class WException extends Error{['code'];['details'];constructor(a,b){const c=a['toString']()+(b?':'+b:'');super(c),this['code']=a,this['details']=b,Object['setPrototypeOf'](this,WException['prototype']);}['getErrorMessage'](){return this['message'];}['getErrorCode'](){return this['code'];}['getDetails'](){return this['details'];}}export const W_ERROR=(a,b)=>{throw new WException(a,b);};export const W_SUCCESS=a=>({'success':!![],'data':a});export const W_FAILURE=(a,b)=>({'success':![],'error':new WException(a,b)});export function WValidate(a){return function(...b){try{return a['apply'](this,b);}catch(c){if(c instanceof WException)throw c;throw new WException(WErrors['Fail'],c);}};}export const W_SAFE=(a,b,c)=>{try{const d=a();return W_SUCCESS(d);}catch(e){if(e instanceof WException)return W_FAILURE(e['code'],e['details']);return W_FAILURE(b||WErrors['Fail'],c||e);}};export const W_ENSURE=(a,b,c)=>{!a&&W_ERROR(b,c);};export const W_VALIDATE_PARAM=(a,b,c,d)=>{!b(a)&&W_ERROR(c,d);};export const MoveErrors=[{'module':'service','code':0x1,'description':'Maximum\x20sale\x20count\x20exceeded'},{'module':'service','code':0x2,'description':'Maximum\x20repository\x20count\x20exceeded'},{'module':'service','code':0x3,'description':'Maximum\x20arbitration\x20count\x20exceeded'},{'module':'service','code':0x4,'description':'Maximum\x20WIP\x20length\x20exceeded'},{'module':'service','code':0x5,'description':'Maximum\x20WIP\x20hash\x20length\x20exceeded'},{'module':'service','code':0x6,'description':'Service\x20already\x20published'},{'module':'service','code':0x7,'description':'Service\x20not\x20published'},{'module':'service','code':0x8,'description':'Invalid\x20off-on\x20discount\x20rates'},{'module':'service','code':0x9,'description':'Maximum\x20discount\x20count\x20per\x20operation\x20exceeded'},{'module':'service','code':0xa,'description':'Discount\x20not\x20transferable'},{'module':'service','code':0xb,'description':'Discount\x20receiver\x20empty'},{'module':'service','code':0xc,'description':'Discount\x20count\x20empty'},{'module':'service','code':0xd,'description':'Maximum\x20discount\x20receiver\x20per\x20operation\x20exceeded'},{'module':'service','code':0xe,'description':'Maximum\x20total\x20discount\x20count\x20exceeded'},{'module':'service','code':0xf,'description':'Service\x20discount\x20does\x20not\x20match'},{'module':'service','code':0x10,'description':'Stock\x20not\x20enough'},{'module':'service','code':0x11,'description':'Invalid\x20quote'},{'module':'service','code':0x12,'description':'Buyer\x20guard\x20passport\x20required'},{'module':'service','code':0x13,'description':'Service\x20is\x20paused'},{'module':'service','code':0x14,'description':'Coin\x20not\x20enough'},{'module':'service','code':0x15,'description':'Maximum\x20required\x20info\x20size\x20exceeded'},{'module':'service','code':0x16,'description':'Machine\x20does\x20not\x20match'},{'module':'service','code':0x17,'description':'No\x20allocator\x20configured'},{'module':'service','code':0x18,'description':'Critical\x20setting\x20lock\x20duration\x20not\x20exceeded.\x20After\x20Service\x20is\x20published,\x20modifications\x20to\x20\x27order_allocators\x27,\x20\x27rewards\x27,\x20\x27arbitrations\x27,\x20\x27machine\x27,\x20and\x20withdrawal\x20from\x20\x27compensation_fund\x27\x20must\x20exceed\x20the\x20\x27setting_lock_duration\x27\x20lock\x20time'},{'module':'service','code':0x19,'description':'Arbitration\x20not\x20set\x20with\x20compensation\x20fund'},{'module':'service','code':0x1a,'description':'Order\x20service\x20does\x20not\x20match'},{'module':'service','code':0x1b,'description':'Compensation\x20does\x20not\x20match'},{'module':'service','code':0x1c,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'service','code':0x1d,'description':'Invalid\x20discount\x20type'},{'module':'service','code':0x1e,'description':'Invalid\x20timestamp\x20ms\x20end'},{'module':'service','code':0x1f,'description':'WIP\x20hash\x20not\x20match'},{'module':'service','code':0x20,'description':'Sale\x20item\x20not\x20found'},{'module':'permission','code':0x1,'description':'Not\x20the\x20builder'},{'module':'permission','code':0x2,'description':'Not\x20admin'},{'module':'permission','code':0x3,'description':'Address\x20count\x20in\x20permission\x20exceeded\x20limit'},{'module':'permission','code':0x4,'description':'Permission\x20count\x20exceeded\x20limit'},{'module':'permission','code':0x5,'description':'Permission\x20denied'},{'module':'permission','code':0x6,'description':'Admin\x20count\x20exceeded\x20limit'},{'module':'permission','code':0x7,'description':'Permission\x20index\x20not\x20found'},{'module':'permission','code':0x8,'description':'Permission\x20does\x20not\x20match'},{'module':'permission','code':0x9,'description':'Not\x20user\x20address'},{'module':'passport','code':0x1,'description':'Guard\x20count\x20exceeded\x20limit'},{'module':'passport','code':0x2,'description':'Relies\x20guard\x20not\x20added'},{'module':'passport','code':0x3,'description':'Submission\x20size\x20exceeded\x20limit'},{'module':'passport','code':0x4,'description':'Already\x20verified'},{'module':'passport','code':0x5,'description':'Not\x20verified'},{'module':'passport','code':0x6,'description':'Not\x20impact\x20guard'},{'module':'passport','code':0x7,'description':'Verification\x20failed'},{'module':'passport','code':0x8,'description':'Transaction\x20does\x20not\x20match'},{'module':'passport','code':0x9,'description':'Impact\x20guard\x20not\x20found'},{'module':'passport','code':0xa,'description':'Submission\x20not\x20found'},{'module':'passport','code':0xb,'description':'Digest\x20not\x20match'},{'module':'reward','code':0x1,'description':'Guard\x20locked\x20time\x20not\x20increasing'},{'module':'reward','code':0x2,'description':'Guard\x20expired'},{'module':'reward','code':0x3,'description':'Guard\x20count\x20exceeded\x20limit'},{'module':'reward','code':0x4,'description':'Recipient\x20identifier\x20not\x20address\x20type'},{'module':'reward','code':0x5,'description':'Amount\x20not\x20u64\x20type'},{'module':'reward','code':0x6,'description':'Insufficient\x20balance'},{'module':'reward','code':0x7,'description':'Guard\x20not\x20found'},{'module':'reward','code':0x8,'description':'Record\x20count\x20exceeded\x20limit'},{'module':'reward','code':0xa,'description':'Invalid\x20guard\x20locked\x20time'},{'module':'reward','code':0xb,'description':'Guard\x20locked\x20time\x20invalid'},{'module':'reward','code':0xc,'description':'Store\x20from\x20ID\x20not\x20compatible'},{'module':'arbitration','code':0x1,'description':'Guard\x20identifier\x20not\x20number\x20type'},{'module':'arbitration','code':0x2,'description':'Voting\x20guard\x20already\x20used'},{'module':'arbitration','code':0x3,'description':'Arbitration\x20does\x20not\x20match'},{'module':'arbitration','code':0x4,'description':'Arbitration\x20is\x20paused'},{'module':'arbitration','code':0x5,'description':'Fee\x20not\x20enough'},{'module':'arbitration','code':0x6,'description':'Passport\x20required'},{'module':'arbitration','code':0x7,'description':'Guard\x20identifier\x20number\x20invalid'},{'module':'arbitration','code':0x8,'description':'Voting\x20guard\x20not\x20found'},{'module':'arbitration','code':0x9,'description':'Maximum\x20voting\x20guard\x20count\x20exceeded'},{'module':'demand','code':0x1,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'demand','code':0x2,'description':'Maximum\x20guard\x20count\x20exceeded'},{'module':'demand','code':0x3,'description':'Passport\x20required'},{'module':'demand','code':0x4,'description':'Guard\x20not\x20found'},{'module':'progress','code':0x1,'description':'Maximum\x20context\x20repository\x20count\x20exceeded'},{'module':'progress','code':0x2,'description':'Maximum\x20named\x20operator\x20count\x20exceeded'},{'module':'progress','code':0x3,'description':'Maximum\x20named\x20operator\x20address\x20count\x20exceeded'},{'module':'progress','code':0x4,'description':'Machine\x20does\x20not\x20match'},{'module':'progress','code':0x5,'description':'Task\x20already\x20set'},{'module':'progress','code':0x6,'description':'Not\x20the\x20holder'},{'module':'progress','code':0x7,'description':'Forward\x20already\x20accomplished'},{'module':'progress','code':0x8,'description':'Permission\x20not\x20defined\x20when\x20hold'},{'module':'progress','code':0x9,'description':'Passport\x20required'},{'module':'progress','code':0xa,'description':'Order\x20does\x20not\x20match'},{'module':'guard','code':0x1,'description':'Input\x20empty'},{'module':'guard','code':0x2,'description':'Input\x20size\x20exceeded\x20limit'},{'module':'guard','code':0x3,'description':'Table\x20size\x20exceeded\x20limit'},{'module':'guard','code':0x5,'description':'Dependent\x20count\x20exceeded\x20limit'},{'module':'guard','code':0x6,'description':'Not\x20dependent\x20guard'},{'module':'guard','code':0x7,'description':'Guard\x20cannot\x20depend\x20on\x20itself'},{'module':'guard','code':0x8,'description':'Guard\x20IDs\x20parse\x20error'},{'module':'guard','code':0x9,'description':'Guard\x20IDs\x20type\x20error'},{'module':'guard','code':0xa,'description':'ID\x20value\x20count\x20not\x20equal\x20to\x20guard\x20count'},{'module':'guard','code':0xb,'description':'Submission\x20ID\x20not\x20found'},{'module':'guard','code':0xc,'description':'Submission\x20value\x20type\x20error'},{'module':'order','code':0x1,'description':'Not\x20the\x20owner'},{'module':'order','code':0x2,'description':'Maximum\x20agent\x20count\x20exceeded'},{'module':'order','code':0x3,'description':'Progress\x20not\x20specified'},{'module':'order','code':0x5,'description':'No\x20operation\x20permission'},{'module':'order','code':0x6,'description':'Maximum\x20dispute\x20count\x20exceeded'},{'module':'order','code':0x7,'description':'Order\x20already\x20claimed'},{'module':'order','code':0x8,'description':'Invalid\x20customer\x20info'},{'module':'order','code':0x9,'description':'Allocation\x20not\x20specified'},{'module':'order','code':0xa,'description':'Allocation\x20already\x20specified'},{'module':'order','code':0xb,'description':'Progress\x20already\x20specified'},{'module':'machine','code':0x1,'description':'Maximum\x20consensus\x20repositories\x20exceeded'},{'module':'machine','code':0x2,'description':'Machine\x20not\x20published'},{'module':'machine','code':0x3,'description':'Machine\x20already\x20published'},{'module':'machine','code':0x4,'description':'Maximum\x20forward\x20order\x20count\x20exceeded'},{'module':'machine','code':0x5,'description':'Maximum\x20node\x20count\x20exceeded'},{'module':'machine','code':0x6,'description':'Duplicate\x20forward\x20name'},{'module':'machine','code':0x7,'description':'Duplicate\x20node\x20previous'},{'module':'machine','code':0x8,'description':'Old\x20node\x20name\x20does\x20not\x20exist'},{'module':'machine','code':0x9,'description':'New\x20node\x20name\x20already\x20exists'},{'module':'machine','code':0xa,'description':'Node\x20not\x20found'},{'module':'machine','code':0xb,'description':'Machine\x20is\x20paused'},{'module':'machine','code':0xc,'description':'Retained\x20submission\x20error'},{'module':'machine','code':0xd,'description':'Info\x20not\x20found'},{'module':'machine','code':0xe,'description':'Permission\x20not\x20defined'},{'module':'machine','code':0xf,'description':'Maximum\x20node\x20pair\x20count\x20exceeded'},{'module':'machine','code':0x10,'description':'Maximum\x20forward\x20count\x20exceeded'},{'module':'treasury','code':0x1,'description':'Maximum\x20external\x20deposit\x20guard\x20count\x20exceeded'},{'module':'treasury','code':0x2,'description':'Maximum\x20external\x20withdraw\x20guard\x20count\x20exceeded'},{'module':'treasury','code':0x3,'description':'External\x20deposit\x20guard\x20not\x20found'},{'module':'treasury','code':0x4,'description':'External\x20withdraw\x20guard\x20not\x20found'},{'module':'treasury','code':0x5,'description':'Identifier\x20not\x20number\x20type'},{'module':'treasury','code':0x6,'description':'Deposit\x20insufficient\x20amount'},{'module':'treasury','code':0x7,'description':'Withdraw\x20insufficient\x20amount'},{'module':'treasury','code':0x8,'description':'Store\x20from\x20ID\x20not\x20compatible'},{'module':'arb','code':0x1,'description':'Maximum\x20proposition\x20count\x20exceeded'},{'module':'arb','code':0x2,'description':'Arbitration\x20order\x20does\x20not\x20match'},{'module':'arb','code':0x3,'description':'Status\x20does\x20not\x20match'},{'module':'arb','code':0x4,'description':'Voting\x20deadline\x20not\x20passed'},{'module':'arb','code':0x5,'description':'Proposition\x20not\x20found'},{'module':'arb','code':0x6,'description':'Maximum\x20voter\x20count\x20exceeded'},{'module':'arb','code':0x7,'description':'Voting\x20deadline\x20passed'},{'module':'arb','code':0x8,'description':'Withdraw\x20duration\x20time\x20not\x20passed'},{'module':'repository','code':0x1,'description':'Policy\x20description\x20length\x20exceeded'},{'module':'repository','code':0x2,'description':'Policy\x20guard\x20count\x20exceeded'},{'module':'repository','code':0x3,'description':'Policy\x20count\x20exceeded'},{'module':'repository','code':0x4,'description':'Data\x20size\x20exceeded\x20limit'},{'module':'repository','code':0x5,'description':'ID\x20count\x20exceeded\x20limit'},{'module':'repository','code':0x6,'description':'Quantities\x20not\x20equal'},{'module':'repository','code':0x7,'description':'Policy\x20not\x20found'},{'module':'repository','code':0x8,'description':'Policy\x20ID\x20from\x20none'},{'module':'repository','code':0x9,'description':'Passport\x20required'},{'module':'repository','code':0xa,'description':'Data\x20type\x20does\x20not\x20match'},{'module':'repository','code':0xb,'description':'Guard\x20specified\x20ID\x20from\x20submission'},{'module':'repository','code':0xc,'description':'Not\x20impact\x20guard\x20in\x20passport'},{'module':'repository','code':0xd,'description':'Guard\x20specified\x20not\x20in\x20policy'},{'module':'repository','code':0xe,'description':'ID\x20vector\x20not\x20enough'},{'module':'repository','code':0xf,'description':'Data\x20vector\x20not\x20enough'},{'module':'repository','code':0x10,'description':'Invalid\x20ID\x20in\x20guard\x20table'},{'module':'repository','code':0x11,'description':'Invalid\x20data\x20in\x20guard\x20table'},{'module':'repository','code':0x12,'description':'Invalid\x20ID\x20from'},{'module':'repository','code':0x13,'description':'Maximum\x20reward\x20count\x20exceeded'},{'module':'repository','code':0x14,'description':'Guard\x20not\x20specified\x20ID\x20from\x20submission'},{'module':'repository','code':0x15,'description':'Need\x20dependent\x20guard'},{'module':'common','code':0x1,'description':'Name\x20length\x20exceeded\x20limit'},{'module':'common','code':0x2,'description':'Name\x20is\x20empty'},{'module':'common','code':0x3,'description':'Description\x20length\x20exceeded\x20limit'},{'module':'common','code':0x6,'description':'Invalid\x20value\x20type'},{'module':'common','code':0x7,'description':'Address\x20type\x20does\x20not\x20match'},{'module':'common','code':0x8,'description':'Number\x20type\x20does\x20not\x20match'},{'module':'common','code':0x9,'description':'Invalid\x20data\x20value'},{'module':'common','code':0xa,'description':'Invalid\x20string\x20value'},{'module':'common','code':0xb,'description':'Long\x20name\x20length\x20exceeded\x20limit'},{'module':'common','code':0xc,'description':'Not\x20u64\x20type'},{'module':'common','code':0xd,'description':'Invalid\x20service\x20object\x20type'},{'module':'resource','code':0x1,'description':'Tags\x20count\x20exceeded\x20limit'},{'module':'allocation','code':0x1,'description':'Recipient\x20identifier\x20not\x20address\x20type'},{'module':'allocation','code':0x2,'description':'Allocator\x20count\x20exceeded'},{'module':'allocation','code':0x3,'description':'No\x20allocator'},{'module':'allocation','code':0x4,'description':'Rate\x20not\x2010000'},{'module':'allocation','code':0x5,'description':'Multiple\x20surplus'},{'module':'allocation','code':0x6,'description':'Rate\x20exceeds\x2010000'},{'module':'allocation','code':0x7,'description':'Insufficient\x20balance'},{'module':'allocation','code':0x8,'description':'Allocators\x20empty'},{'module':'allocation','code':0x9,'description':'No\x20payment\x20info'},{'module':'allocation','code':0xa,'description':'Sharing\x20count\x20exceeded'},{'module':'allocation','code':0xb,'description':'Sharing\x20mode\x20invalid'},{'module':'allocation','code':0xc,'description':'Amount\x20below\x20threshold'},{'module':'allocation','code':0xd,'description':'Amount\x20exceeds\x20max'},{'module':'proof','code':0x1,'description':'Maximum\x20proof\x20size\x20exceeded'},{'module':'proof','code':0x2,'description':'Maximum\x20server\x20pubkey\x20size\x20exceeded'},{'module':'proof','code':0x3,'description':'Maximum\x20server\x20signature\x20size\x20exceeded'},{'module':'payment','code':0x1,'description':'Recipient\x20count\x20exceeded'},{'module':'payment','code':0x2,'description':'Vector\x20count\x20not\x20equal'},{'module':'payment','code':0x3,'description':'Payment\x20not\x20match'},{'module':'payment','code':0x4,'description':'Recipient\x20empty'},{'module':'contact','code':0x1,'description':'IM\x20count\x20exceeded'},{'module':'registrar','code':0x0,'description':'Not\x20system\x20address'},{'module':'registrar','code':0x1,'description':'Record\x20count\x20exceeded'},{'module':'registrar','code':0x2,'description':'Record\x20length\x20exceeded'},{'module':'registrar','code':0x3,'description':'Record\x20type\x20empty'},{'module':'transfer','code':0x0,'description':'Shared\x20non-new\x20object'},{'module':'transfer','code':0x1,'description':'BCS\x20serialization\x20failure'},{'module':'transfer','code':0x2,'description':'Receiving\x20object\x20type\x20mismatch'},{'module':'transfer','code':0x3,'description':'Unable\x20to\x20receive\x20object'},{'module':'transfer','code':0x4,'description':'Shared\x20object\x20operation\x20not\x20supported'},{'module':'transfer','code':0x5,'description':'Operation\x20not\x20supported'},{'module':'transfer','code':0x6,'description':'Invalid\x20party\x20permissions'},{'module':'tx_context','code':0x0,'description':'Bad\x20transaction\x20hash\x20length'},{'module':'coin','code':0x0,'description':'Bad\x20witness'},{'module':'coin','code':0x1,'description':'Invalid\x20argument'},{'module':'coin','code':0x2,'description':'Not\x20enough\x20balance'},{'module':'coin','code':0x3,'description':'Global\x20pause\x20not\x20allowed'},{'module':'borrow','code':0x0,'description':'Wrong\x20borrow'},{'module':'borrow','code':0x1,'description':'Wrong\x20value'},{'module':'bcs','code':0x0,'description':'Out\x20of\x20range'},{'module':'bcs','code':0x1,'description':'Not\x20bool'},{'module':'bcs','code':0x2,'description':'Length\x20out\x20of\x20range'},{'module':'balance','code':0x0,'description':'Non-zero\x20balance'},{'module':'balance','code':0x1,'description':'Overflow'},{'module':'balance','code':0x2,'description':'Not\x20enough'},{'module':'balance','code':0x3,'description':'Not\x20system\x20address'},{'module':'balance','code':0x4,'description':'Not\x20WOW'},{'module':'parent_table','code':0x0,'description':'Parent\x20table\x20not\x20match'},{'module':'parent_table_vec','code':0x0,'description':'Index\x20out\x20of\x20bound'},{'module':'parent_linked_table','code':0x0,'description':'Table\x20is\x20empty'},{'module':'parent_linked_table','code':0x1,'description':'Table\x20not\x20match'}];export function getMoveErrorDescription(a,b){const c=MoveErrors['find'](d=>d['module']===a&&d['code']===b);return c?c['description']:null;}export function enrichMoveError(a){if(!a||typeof a!=='string')return a;const b=/MoveAbort\([^,]+,\s*(\d+)\)/,c=/name:\s*Identifier\("([^"]+)"\)/,d=/address:\s*([0-9a-fA-Fx]+)/,e=a['match'](b),f=a['match'](c),g=a['match'](d),h='0x0000000000000000000000000000000000000000000000000000000000000002';if(e&&f&&g){const i=parseInt(e[0x1],0xa),j=f[0x1]['toLowerCase'](),k=g[0x1]['toLowerCase']();if(k===h||k==='0x2'){const l=MoveErrors['find'](m=>m['module']['toLowerCase']()===j&&m['code']===i);if(l)return'Error\x20Description:\x20'+l['description']+'\x0a'+a;}}return a;}
|
package/dist/cjs/w/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export * from "./common.js";
|
|
2
|
-
export * from "./exception.js";
|
|
3
|
-
export * from "./util.js";
|
|
4
|
-
export * from "./call/index.js";
|
|
5
|
-
export * from "./local/index.js";
|
|
6
|
-
export * from "./query/index.js";
|
|
7
|
-
export * from "./messenger/index.js";
|
|
8
|
-
export * from "../client/network.js";
|
package/dist/cjs/w/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export*from'./common.js';export*from'./exception.js';export*from'./util.js';export*from'./call/index.js';export*from'./local/index.js';export*from'./query/index.js';export*from'./messenger/index.js';export*from'../client/network.js';
|