@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
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import type { BcsTypeOptions } from "./bcs-type.js";
|
|
2
|
-
import { BcsEnum, BcsStruct, BcsTuple, BcsType } from "./bcs-type.js";
|
|
3
|
-
import type { EnumInputShape, EnumOutputShape, InferBcsInput, InferBcsType, JoinString } from "./types.js";
|
|
4
|
-
declare function fixedArray<T extends BcsType<any>, Name extends string = string>(size: number, type: T, options?: BcsTypeOptions<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
|
|
5
|
-
length: number;
|
|
6
|
-
}, Name>): BcsType<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
|
|
7
|
-
length: number;
|
|
8
|
-
}, Name>;
|
|
9
|
-
declare function fixedArray<T, Input, Name extends string = string>(size: number, type: BcsType<T, Input>, options?: BcsTypeOptions<T[], Iterable<Input> & {
|
|
10
|
-
length: number;
|
|
11
|
-
}, Name>): BcsType<T[], Iterable<Input> & {
|
|
12
|
-
length: number;
|
|
13
|
-
}, Name>;
|
|
14
|
-
declare function option<T extends BcsType<any>>(type: T): BcsType<InferBcsType<T> | null, InferBcsInput<T> | null | undefined, `Option<${T["name"]}>`>;
|
|
15
|
-
declare function option<T, Input, Name extends string = string>(type: BcsType<T, Input, Name>): BcsType<T | null, Input | null | undefined>;
|
|
16
|
-
declare function vector<T extends BcsType<any>, Name extends string = `vector<${T["name"]}>`>(type: T, options?: BcsTypeOptions<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
|
|
17
|
-
length: number;
|
|
18
|
-
}, Name>): BcsType<InferBcsType<T>[], Iterable<InferBcsInput<T>> & {
|
|
19
|
-
length: number;
|
|
20
|
-
}, Name>;
|
|
21
|
-
declare function vector<T, Input, Name extends string = string>(type: BcsType<T, Input, Name>, options?: BcsTypeOptions<T[], Iterable<Input> & {
|
|
22
|
-
length: number;
|
|
23
|
-
}, `vector<${Name}>`>): BcsType<T[], Iterable<Input> & {
|
|
24
|
-
length: number;
|
|
25
|
-
}, `vector<${Name}>`>;
|
|
26
|
-
declare function map<K extends BcsType<any>, V extends BcsType<any>>(keyType: K, valueType: V): BcsType<Map<InferBcsType<K>, InferBcsType<V>>, Map<InferBcsInput<K>, InferBcsInput<V>>, `Map<${K["name"]}, ${V["name"]}>`>;
|
|
27
|
-
declare function map<K, V, InputK = K, InputV = V>(keyType: BcsType<K, InputK>, valueType: BcsType<V, InputV>): BcsType<Map<K, V>, Map<InputK, InputV>, `Map<${string}, ${string}>`>;
|
|
28
|
-
export declare const bcs: {
|
|
29
|
-
u8(options?: BcsTypeOptions<number>): BcsType<number, number, "u8">;
|
|
30
|
-
u16(options?: BcsTypeOptions<number>): BcsType<number, number, "u16">;
|
|
31
|
-
u32(options?: BcsTypeOptions<number>): BcsType<number, number, "u32">;
|
|
32
|
-
u64(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u64">;
|
|
33
|
-
u128(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u128">;
|
|
34
|
-
u256(options?: BcsTypeOptions<string, number | bigint | string>): BcsType<string, string | number | bigint, "u256">;
|
|
35
|
-
bool(options?: BcsTypeOptions<boolean>): BcsType<boolean, boolean, "bool">;
|
|
36
|
-
uleb128(options?: BcsTypeOptions<number>): BcsType<number, number, string>;
|
|
37
|
-
bytes<T extends number>(size: T, options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, `bytes[${T}]`>;
|
|
38
|
-
byteVector(options?: BcsTypeOptions<Uint8Array, Iterable<number>>): BcsType<Uint8Array<ArrayBufferLike>, Iterable<number>, "vector<u8>">;
|
|
39
|
-
string(options?: BcsTypeOptions<string>): BcsType<string, string, "string">;
|
|
40
|
-
fixedArray: typeof fixedArray;
|
|
41
|
-
option: typeof option;
|
|
42
|
-
vector: typeof vector;
|
|
43
|
-
tuple<const T extends readonly BcsType<any, any>[], const Name extends string = `(${JoinString<{ [K in keyof T]: T[K] extends BcsType<any, any, infer T_1 extends string> ? T_1 : never; }, ", ">})`>(fields: T, options?: BcsTypeOptions<{ -readonly [K_1 in keyof T]: T[K_1] extends BcsType<infer T_1, any> ? T_1 : never; }, { [K_1 in keyof T]: T[K_1] extends BcsType<any, infer T_1> ? T_1 : never; }, Name>): BcsTuple<T, Name>;
|
|
44
|
-
struct<T extends Record<string, BcsType<any>>, const Name extends string = string>(name: Name, fields: T, options?: Omit<BcsTypeOptions<{ [K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never; }, { [K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never; }>, "name">): BcsStruct<T, string>;
|
|
45
|
-
enum<T extends Record<string, BcsType<any> | null>, const Name extends string = string>(name: Name, fields: T, options?: Omit<BcsTypeOptions<EnumOutputShape<{ [K in keyof T]: T[K] extends BcsType<infer U, any, any> ? U : true; }>, EnumInputShape<{ [K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null; }>, Name>, "name">): BcsEnum<T, Name>;
|
|
46
|
-
map: typeof map;
|
|
47
|
-
lazy<T extends BcsType<any>>(cb: () => T): T;
|
|
48
|
-
};
|
|
49
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BcsEnum,BcsStruct,BcsTuple,BcsType,bigUIntBcsType,dynamicSizeBcsType,fixedSizeBcsType,lazyBcsType,stringLikeBcsType,uIntBcsType}from'./bcs-type.js';import{ulebEncode}from'./uleb.js';function fixedArray(a,b,c){return new BcsType({'read':d=>{const e=new Array(a);for(let f=0x0;f<a;f++){e[f]=b['read'](d);}return e;},'write':(d,e)=>{for(const f of d){b['write'](f,e);}},...c,'name':c?.['name']??b['name']+'['+a+']','validate':d=>{c?.['validate']?.(d);if(!d||typeof d!=='object'||!('length'in d))throw new TypeError('Expected\x20array,\x20found\x20'+typeof d);if(d['length']!==a)throw new TypeError('Expected\x20array\x20of\x20length\x20'+a+',\x20found\x20'+d['length']);}});}function option(a){return bcs['enum']('Option<'+a['name']+'>',{'None':null,'Some':a})['transform']({'input':b=>{if(b==null)return{'None':!![]};return{'Some':b};},'output':b=>{if(b['$kind']==='Some')return b['Some'];return null;}});}function vector(a,b){return new BcsType({'read':c=>{const d=c['readULEB'](),e=new Array(d);for(let f=0x0;f<d;f++){e[f]=a['read'](c);}return e;},'write':(c,d)=>{d['writeULEB'](c['length']);for(const e of c){a['write'](e,d);}},...b,'name':b?.['name']??'vector<'+a['name']+'>','validate':c=>{b?.['validate']?.(c);if(!c||typeof c!=='object'||!('length'in c))throw new TypeError('Expected\x20array,\x20found\x20'+typeof c);}});}function map(a,b){return bcs['vector'](bcs['tuple']([a,b]))['transform']({'name':'Map<'+a['name']+',\x20'+b['name']+'>','input':c=>{return[...c['entries']()];},'output':c=>{const d=new Map();for(const [e,f]of c){d['set'](e,f);}return d;}});}export const bcs={'u8'(a){return uIntBcsType({'readMethod':'read8','writeMethod':'write8','size':0x1,'maxValue':0x2**0x8-0x1,...a,'name':a?.['name']??'u8'});},'u16'(a){return uIntBcsType({'readMethod':'read16','writeMethod':'write16','size':0x2,'maxValue':0x2**0x10-0x1,...a,'name':a?.['name']??'u16'});},'u32'(a){return uIntBcsType({'readMethod':'read32','writeMethod':'write32','size':0x4,'maxValue':0x2**0x20-0x1,...a,'name':a?.['name']??'u32'});},'u64'(a){return bigUIntBcsType({'readMethod':'read64','writeMethod':'write64','size':0x8,'maxValue':0x2n**0x40n-0x1n,...a,'name':a?.['name']??'u64'});},'u128'(a){return bigUIntBcsType({'readMethod':'read128','writeMethod':'write128','size':0x10,'maxValue':0x2n**0x80n-0x1n,...a,'name':a?.['name']??'u128'});},'u256'(a){return bigUIntBcsType({'readMethod':'read256','writeMethod':'write256','size':0x20,'maxValue':0x2n**0x100n-0x1n,...a,'name':a?.['name']??'u256'});},'bool'(a){return fixedSizeBcsType({'size':0x1,'read':b=>b['read8']()===0x1,'write':(b,c)=>c['write8'](b?0x1:0x0),...a,'name':a?.['name']??'bool','validate':b=>{a?.['validate']?.(b);if(typeof b!=='boolean')throw new TypeError('Expected\x20boolean,\x20found\x20'+typeof b);}});},'uleb128'(a){return dynamicSizeBcsType({'read':b=>b['readULEB'](),'serialize':b=>{return Uint8Array['from'](ulebEncode(b));},...a,'name':a?.['name']??'uleb128'});},'bytes'(a,b){return fixedSizeBcsType({'size':a,'read':c=>c['readBytes'](a),'write':(c,d)=>{d['writeBytes'](new Uint8Array(c));},...b,'name':b?.['name']??'bytes['+a+']','validate':c=>{b?.['validate']?.(c);if(!c||typeof c!=='object'||!('length'in c))throw new TypeError('Expected\x20array,\x20found\x20'+typeof c);if(c['length']!==a)throw new TypeError('Expected\x20array\x20of\x20length\x20'+a+',\x20found\x20'+c['length']);}});},'byteVector'(a){return new BcsType({'read':b=>{const c=b['readULEB']();return b['readBytes'](c);},'write':(b,c)=>{const d=new Uint8Array(b);c['writeULEB'](d['length']),c['writeBytes'](d);},...a,'name':a?.['name']??'vector<u8>','serializedSize':b=>{const c='length'in b?b['length']:null;return c==null?null:ulebEncode(c)['length']+c;},'validate':b=>{a?.['validate']?.(b);if(!b||typeof b!=='object'||!('length'in b))throw new TypeError('Expected\x20array,\x20found\x20'+typeof b);}});},'string'(a){return stringLikeBcsType({'toBytes':b=>new TextEncoder()['encode'](b),'fromBytes':b=>new TextDecoder()['decode'](b),...a,'name':a?.['name']??'string'});},'fixedArray':fixedArray,'option':option,'vector':vector,'tuple'(a,b){return new BcsTuple({'fields':a,...b});},'struct'(a,b,c){return new BcsStruct({'name':a,'fields':b,...c});},'enum'(a,b,c){return new BcsEnum({'name':a,'fields':b,...c});},'map':map,'lazy'(a){return lazyBcsType(a);}};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex } from "../utils/index.js";
|
|
2
|
-
import type { BcsTypeOptions } from "./bcs-type.js";
|
|
3
|
-
import { BcsType, BcsStruct, BcsEnum, BcsTuple, isSerializedBcs, SerializedBcs } from "./bcs-type.js";
|
|
4
|
-
import { bcs } from "./bcs.js";
|
|
5
|
-
import { BcsReader } from "./reader.js";
|
|
6
|
-
import type { EnumInputShape, EnumOutputShape, EnumOutputShapeWithKeys, InferBcsInput, InferBcsType } from "./types.js";
|
|
7
|
-
import { decodeStr, encodeStr, splitGenericParameters } from "./utils.js";
|
|
8
|
-
import type { BcsWriterOptions } from "./writer.js";
|
|
9
|
-
import { BcsWriter } from "./writer.js";
|
|
10
|
-
export { bcs, BcsType, BcsStruct, BcsEnum, BcsTuple, type BcsTypeOptions, SerializedBcs, isSerializedBcs, toBase58, fromBase58, toBase64, fromBase64, toHex, fromHex, encodeStr, decodeStr, splitGenericParameters, BcsReader, BcsWriter, type BcsWriterOptions, type InferBcsInput, type InferBcsType, type EnumOutputShape, type EnumInputShape, type EnumOutputShapeWithKeys, };
|
|
11
|
-
export declare const toB58: (buffer: Uint8Array) => string;
|
|
12
|
-
export declare const fromB58: (str: string) => Uint8Array<ArrayBuffer>;
|
|
13
|
-
export declare const toB64: typeof toBase64;
|
|
14
|
-
export declare const fromB64: typeof fromBase64;
|
|
15
|
-
export declare const toHEX: typeof toHex;
|
|
16
|
-
export declare const fromHEX: typeof fromHex;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{toBase58,fromBase58,toBase64,fromBase64,toHex,fromHex}from'../utils/index.js';import{BcsType,BcsStruct,BcsEnum,BcsTuple,isSerializedBcs,SerializedBcs}from'./bcs-type.js';import{bcs}from'./bcs.js';import{BcsReader}from'./reader.js';import{decodeStr,encodeStr,splitGenericParameters}from'./utils.js';import{BcsWriter}from'./writer.js';export{bcs,BcsType,BcsStruct,BcsEnum,BcsTuple,SerializedBcs,isSerializedBcs,toBase58,fromBase58,toBase64,fromBase64,toHex,fromHex,encodeStr,decodeStr,splitGenericParameters,BcsReader,BcsWriter};export const toB58=toBase58;export const fromB58=fromBase58;export const toB64=toBase64;export const fromB64=fromBase64;export const toHEX=toHex;export const fromHEX=fromHex;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare class BcsReader {
|
|
2
|
-
private dataView;
|
|
3
|
-
private bytePosition;
|
|
4
|
-
constructor(data: Uint8Array);
|
|
5
|
-
shift(bytes: number): this;
|
|
6
|
-
read8(): number;
|
|
7
|
-
read16(): number;
|
|
8
|
-
read32(): number;
|
|
9
|
-
read64(): string;
|
|
10
|
-
read128(): string;
|
|
11
|
-
read256(): string;
|
|
12
|
-
readBytes(num: number): Uint8Array;
|
|
13
|
-
readULEB(): number;
|
|
14
|
-
readVec(cb: (reader: BcsReader, i: number, length: number) => any): any[];
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ulebDecode}from'./uleb.js';export class BcsReader{['dataView'];['bytePosition']=0x0;constructor(a){this['dataView']=new DataView(a['buffer'],a['byteOffset'],a['byteLength']);}['shift'](a){return this['bytePosition']+=a,this;}['read8'](){const a=this['dataView']['getUint8'](this['bytePosition']);return this['shift'](0x1),a;}['read16'](){const a=this['dataView']['getUint16'](this['bytePosition'],!![]);return this['shift'](0x2),a;}['read32'](){const a=this['dataView']['getUint32'](this['bytePosition'],!![]);return this['shift'](0x4),a;}['read64'](){const a=this['read32'](),b=this['read32'](),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x8,'0');return BigInt('0x'+c)['toString'](0xa);}['read128'](){const a=BigInt(this['read64']()),b=BigInt(this['read64']()),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x10,'0');return BigInt('0x'+c)['toString'](0xa);}['read256'](){const a=BigInt(this['read128']()),b=BigInt(this['read128']()),c=b['toString'](0x10)+a['toString'](0x10)['padStart'](0x20,'0');return BigInt('0x'+c)['toString'](0xa);}['readBytes'](a){const b=this['bytePosition']+this['dataView']['byteOffset'],c=new Uint8Array(this['dataView']['buffer'],b,a);return this['shift'](a),c;}['readULEB'](){const a=this['bytePosition']+this['dataView']['byteOffset'],b=new Uint8Array(this['dataView']['buffer'],a),{value:c,length:d}=ulebDecode(b);return this['shift'](d),c;}['readVec'](a){const b=this['readULEB'](),c=[];for(let d=0x0;d<b;d++){c['push'](a(this,d,b));}return c;}}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Simplify } from "../utils/index.js";
|
|
2
|
-
import type { BcsType } from "./bcs-type.js";
|
|
3
|
-
export type Encoding = "base58" | "base64" | "hex";
|
|
4
|
-
export type InferBcsType<T extends BcsType<any>> = T extends BcsType<infer U, any> ? U : never;
|
|
5
|
-
export type InferBcsInput<T extends BcsType<any, any>> = T extends BcsType<any, infer U> ? U : never;
|
|
6
|
-
export type EnumOutputShape<T extends Record<string, unknown>, Keys extends string = Extract<keyof T, string>, Values = T[keyof T] extends infer Type ? Type extends BcsType<infer U> ? U : never : never> = 0 extends Values ? EnumOutputShapeWithKeys<T, never> : 0n extends Values ? EnumOutputShapeWithKeys<T, never> : "" extends Values ? EnumOutputShapeWithKeys<T, never> : false extends Values ? EnumOutputShapeWithKeys<T, never> : EnumOutputShapeWithKeys<T, Keys>;
|
|
7
|
-
export type EnumOutputShapeWithKeys<T extends Record<string, unknown>, Keys extends string> = {
|
|
8
|
-
[K in keyof T]: Exclude<Keys, K> extends infer Empty extends string ? Simplify<{
|
|
9
|
-
[K2 in K]: T[K];
|
|
10
|
-
} & {
|
|
11
|
-
[K in Empty]?: never;
|
|
12
|
-
} & {
|
|
13
|
-
$kind: K;
|
|
14
|
-
}> : never;
|
|
15
|
-
}[keyof T];
|
|
16
|
-
export type EnumInputShape<T extends Record<string, unknown>> = {
|
|
17
|
-
[K in keyof T]: {
|
|
18
|
-
[K2 in K]: T[K];
|
|
19
|
-
};
|
|
20
|
-
}[keyof T];
|
|
21
|
-
export type JoinString<T, Sep extends string> = T extends readonly [
|
|
22
|
-
infer F extends string,
|
|
23
|
-
...infer R extends string[]
|
|
24
|
-
] ? [] extends R ? F : `${F}${Sep}${JoinString<R, Sep>}` : "";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function ulebEncode(a){let b=BigInt(a);const c=[];let d=0x0;if(b===0x0n)return[0x0];while(b>0x0){c[d]=Number(b&0x7fn),b>>=0x7n,b>0x0n&&(c[d]|=0x80),d+=0x1;}return c;}export function ulebDecode(a){let b=0x0n,c=0x0n,d=0x0;while(!![]){if(d>=a['length'])throw new Error('ULEB\x20decode\x20error:\x20buffer\x20overflow');const e=a[d];d+=0x1,b+=BigInt(e&0x7f)<<c;if((e&0x80)===0x0)break;c+=0x7n;}if(b>BigInt(Number['MAX_SAFE_INTEGER']))throw new Error('ULEB\x20decode\x20error:\x20value\x20exceeds\x20MAX_SAFE_INTEGER');return{'value':Number(b),'length':d};}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Encoding } from "./types.js";
|
|
2
|
-
export declare function encodeStr(data: Uint8Array, encoding: Encoding): string;
|
|
3
|
-
export declare function decodeStr(data: string, encoding: Encoding): Uint8Array;
|
|
4
|
-
export declare function splitGenericParameters(str: string, genericSeparators?: [string, string]): any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fromBase58,fromBase64,fromHex,toBase58,toBase64,toHex}from'../utils/index.js';export function encodeStr(a,b){switch(b){case'base58':return toBase58(a);case'base64':return toBase64(a);case'hex':return toHex(a);default:throw new Error('Unsupported\x20encoding,\x20supported\x20values\x20are:\x20base64,\x20hex');}}export function decodeStr(a,b){switch(b){case'base58':return fromBase58(a);case'base64':return fromBase64(a);case'hex':return fromHex(a);default:throw new Error('Unsupported\x20encoding,\x20supported\x20values\x20are:\x20base64,\x20hex');}}export function splitGenericParameters(a,b=['<','>']){const [c,d]=b,e=[];let f='',g=0x0;for(let h=0x0;h<a['length'];h++){const j=a[h];j===c&&g++;j===d&&g--;if(g===0x0&&j===','){e['push'](f['trim']()),f='';continue;}f+=j;}return e['push'](f['trim']()),e;}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Encoding } from "./types.js";
|
|
2
|
-
export interface BcsWriterOptions {
|
|
3
|
-
initialSize?: number;
|
|
4
|
-
maxSize?: number;
|
|
5
|
-
allocateSize?: number;
|
|
6
|
-
}
|
|
7
|
-
export declare class BcsWriter {
|
|
8
|
-
private dataView;
|
|
9
|
-
private bytePosition;
|
|
10
|
-
private size;
|
|
11
|
-
private maxSize;
|
|
12
|
-
private allocateSize;
|
|
13
|
-
constructor({ initialSize, maxSize, allocateSize, }?: BcsWriterOptions);
|
|
14
|
-
private ensureSizeOrGrow;
|
|
15
|
-
shift(bytes: number): this;
|
|
16
|
-
write8(value: number | bigint): this;
|
|
17
|
-
writeBytes(bytes: Uint8Array): this;
|
|
18
|
-
write16(value: number | bigint): this;
|
|
19
|
-
write32(value: number | bigint): this;
|
|
20
|
-
write64(value: number | bigint): this;
|
|
21
|
-
write128(value: number | bigint): this;
|
|
22
|
-
write256(value: number | bigint): this;
|
|
23
|
-
writeULEB(value: number): this;
|
|
24
|
-
writeVec(vector: any[], cb: (writer: BcsWriter, el: any, i: number, len: number) => void): this;
|
|
25
|
-
[Symbol.iterator](): Iterator<number, Iterable<number>>;
|
|
26
|
-
toBytes(): Uint8Array<ArrayBuffer>;
|
|
27
|
-
toString(encoding: Encoding): string;
|
|
28
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ulebEncode}from'./uleb.js';import{encodeStr}from'./utils.js';export class BcsWriter{['dataView'];['bytePosition']=0x0;['size'];['maxSize'];['allocateSize'];constructor({initialSize:initialSize=0x400,maxSize:maxSize=Infinity,allocateSize:allocateSize=0x400}={}){this['size']=initialSize,this['maxSize']=maxSize,this['allocateSize']=allocateSize,this['dataView']=new DataView(new ArrayBuffer(initialSize));}['ensureSizeOrGrow'](a){const b=this['bytePosition']+a;if(b>this['size']){const c=Math['min'](this['maxSize'],Math['max'](this['size']+b,this['size']+this['allocateSize']));if(b>c)throw new Error('Attempting\x20to\x20serialize\x20to\x20BCS,\x20but\x20buffer\x20does\x20not\x20have\x20enough\x20size.\x20Allocated\x20size:\x20'+this['size']+',\x20Max\x20size:\x20'+this['maxSize']+',\x20Required\x20size:\x20'+b);this['size']=c;const d=new ArrayBuffer(this['size']);new Uint8Array(d)['set'](new Uint8Array(this['dataView']['buffer'])),this['dataView']=new DataView(d);}}['shift'](a){return this['bytePosition']+=a,this;}['write8'](a){return this['ensureSizeOrGrow'](0x1),this['dataView']['setUint8'](this['bytePosition'],Number(a)),this['shift'](0x1);}['writeBytes'](a){this['ensureSizeOrGrow'](a['length']);for(let b=0x0;b<a['length'];b++){this['dataView']['setUint8'](this['bytePosition']+b,a[b]);}return this['shift'](a['length']);}['write16'](a){return this['ensureSizeOrGrow'](0x2),this['dataView']['setUint16'](this['bytePosition'],Number(a),!![]),this['shift'](0x2);}['write32'](a){return this['ensureSizeOrGrow'](0x4),this['dataView']['setUint32'](this['bytePosition'],Number(a),!![]),this['shift'](0x4);}['write64'](a){return toLittleEndian(BigInt(a),0x8)['forEach'](b=>this['write8'](b)),this;}['write128'](a){return toLittleEndian(BigInt(a),0x10)['forEach'](b=>this['write8'](b)),this;}['write256'](a){return toLittleEndian(BigInt(a),0x20)['forEach'](b=>this['write8'](b)),this;}['writeULEB'](a){return ulebEncode(a)['forEach'](b=>this['write8'](b)),this;}['writeVec'](a,b){return this['writeULEB'](a['length']),Array['from'](a)['forEach']((c,d)=>b(this,c,d,a['length'])),this;}*[Symbol['iterator']](){for(let a=0x0;a<this['bytePosition'];a++){yield this['dataView']['getUint8'](a);}return this['toBytes']();}['toBytes'](){return new Uint8Array(this['dataView']['buffer']['slice'](0x0,this['bytePosition']));}['toString'](a){return encodeStr(this['toBytes'](),a);}}function toLittleEndian(a,b){const c=new Uint8Array(b);let d=0x0;while(a>0x0){c[d]=Number(a%BigInt(0x100)),a=a/BigInt(0x100),d+=0x1;}return c;}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{base58}from'@scure/base';export const toBase58=a=>base58['encode'](a);export const fromBase58=a=>base58['decode'](a);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function fromBase64(a){return Uint8Array['from'](atob(a),b=>b['charCodeAt'](0x0));}const CHUNK_SIZE=0x2000;export function toBase64(a){if(a['length']<CHUNK_SIZE)return btoa(String['fromCharCode'](...a));let b='';for(var c=0x0;c<a['length'];c+=CHUNK_SIZE){const d=a['slice'](c,c+CHUNK_SIZE);b+=String['fromCharCode'](...d);}return btoa(b);}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function chunk<T>(array: readonly T[], size: number): T[][];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function chunk(a,b){return Array['from']({'length':Math['ceil'](a['length']/b)},(c,d)=>{return a['slice'](d*b,(d+0x1)*b);});}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
export declare class DataLoader<K, V, C = K> {
|
|
2
|
-
constructor(batchLoadFn: DataLoader.BatchLoadFn<K, V>, options?: DataLoader.Options<K, V, C>);
|
|
3
|
-
_batchLoadFn: DataLoader.BatchLoadFn<K, V>;
|
|
4
|
-
_maxBatchSize: number;
|
|
5
|
-
_batchScheduleFn: (cb: () => void) => void;
|
|
6
|
-
_cacheKeyFn: (key: K) => C;
|
|
7
|
-
_cacheMap: DataLoader.CacheMap<C, Promise<V>> | null;
|
|
8
|
-
_batch: Batch<K, V> | null;
|
|
9
|
-
load(key: K): Promise<V>;
|
|
10
|
-
loadMany(keys: ReadonlyArray<K>): Promise<Array<V | Error>>;
|
|
11
|
-
clear(key: K): this;
|
|
12
|
-
clearAll(): this;
|
|
13
|
-
prime(key: K, value: V | Promise<V> | Error): this;
|
|
14
|
-
name: string | null;
|
|
15
|
-
}
|
|
16
|
-
type Batch<K, V> = {
|
|
17
|
-
hasDispatched: boolean;
|
|
18
|
-
keys: Array<K>;
|
|
19
|
-
callbacks: Array<{
|
|
20
|
-
resolve: (value: V) => void;
|
|
21
|
-
reject: (error: Error) => void;
|
|
22
|
-
}>;
|
|
23
|
-
cacheHits?: Array<() => void>;
|
|
24
|
-
};
|
|
25
|
-
export declare namespace DataLoader {
|
|
26
|
-
type CacheMap<K, V> = {
|
|
27
|
-
get(key: K): V | void;
|
|
28
|
-
set(key: K, value: V): any;
|
|
29
|
-
delete(key: K): any;
|
|
30
|
-
clear(): any;
|
|
31
|
-
};
|
|
32
|
-
type BatchLoadFn<K, V> = (keys: ReadonlyArray<K>) => PromiseLike<ArrayLike<V | Error>>;
|
|
33
|
-
type Options<K, V, C = K> = {
|
|
34
|
-
batch?: boolean;
|
|
35
|
-
maxBatchSize?: number;
|
|
36
|
-
batchScheduleFn?: (callback: () => void) => void;
|
|
37
|
-
cache?: boolean;
|
|
38
|
-
cacheKeyFn?: (key: K) => C;
|
|
39
|
-
cacheMap?: CacheMap<C, Promise<V>> | null;
|
|
40
|
-
name?: string | null;
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export class DataLoader{constructor(a,b){if(typeof a!=='function')throw new TypeError('DataLoader\x20must\x20be\x20constructed\x20with\x20a\x20function\x20which\x20accepts\x20'+('Array<key>\x20and\x20returns\x20Promise<Array<value>>,\x20but\x20got:\x20'+a+'.'));this['_batchLoadFn']=a,this['_maxBatchSize']=getValidMaxBatchSize(b),this['_batchScheduleFn']=getValidBatchScheduleFn(b),this['_cacheKeyFn']=getValidCacheKeyFn(b),this['_cacheMap']=getValidCacheMap(b),this['_batch']=null,this['name']=getValidName(b);}['_batchLoadFn'];['_maxBatchSize'];['_batchScheduleFn'];['_cacheKeyFn'];['_cacheMap'];['_batch'];['load'](a){if(a===null||a===undefined)throw new TypeError('The\x20loader.load()\x20function\x20must\x20be\x20called\x20with\x20a\x20value,\x20but\x20got:\x20'+String(a)+'.');const b=getCurrentBatch(this),c=this['_cacheMap'];let d;if(c){d=this['_cacheKeyFn'](a);const f=c['get'](d);if(f){const g=b['cacheHits']||(b['cacheHits']=[]);return new Promise(h=>{g['push'](()=>{h(f);});});}}b['keys']['push'](a);const e=new Promise((h,i)=>{b['callbacks']['push']({'resolve':h,'reject':i});});return c&&c['set'](d,e),e;}['loadMany'](a){if(!isArrayLike(a))throw new TypeError('The\x20loader.loadMany()\x20function\x20must\x20be\x20called\x20with\x20Array<key>,\x20but\x20got:\x20'+a+'.');const b=[];for(let c=0x0;c<a['length'];c++){b['push'](this['load'](a[c])['catch'](d=>d));}return Promise['all'](b);}['clear'](a){const b=this['_cacheMap'];if(b){const c=this['_cacheKeyFn'](a);b['delete'](c);}return this;}['clearAll'](){const a=this['_cacheMap'];return a&&a['clear'](),this;}['prime'](a,b){const c=this['_cacheMap'];if(c){const d=this['_cacheKeyFn'](a);if(c['get'](d)===undefined){let e;b instanceof Error?(e=Promise['reject'](b),e['catch'](()=>{})):e=Promise['resolve'](b),c['set'](d,e);}}return this;}['name'];}const enqueuePostPromiseJob=typeof process==='object'&&typeof process['nextTick']==='function'?function(a){!resolvedPromise&&(resolvedPromise=Promise['resolve']()),resolvedPromise['then'](()=>{process['nextTick'](a);});}:typeof setImmediate==='function'?function(a){setImmediate(a);}:function(a){setTimeout(a);};let resolvedPromise;function getCurrentBatch(a){const b=a['_batch'];if(b!==null&&!b['hasDispatched']&&b['keys']['length']<a['_maxBatchSize'])return b;const c={'hasDispatched':![],'keys':[],'callbacks':[]};return a['_batch']=c,a['_batchScheduleFn'](()=>{dispatchBatch(a,c);}),c;}function dispatchBatch(a,b){b['hasDispatched']=!![];if(b['keys']['length']===0x0){resolveCacheHits(b);return;}let c;try{c=a['_batchLoadFn'](b['keys']);}catch(d){return failedDispatch(a,b,new TypeError('DataLoader\x20must\x20be\x20constructed\x20with\x20a\x20function\x20which\x20accepts\x20'+'Array<key>\x20and\x20returns\x20Promise<Array<value>>,\x20but\x20the\x20function\x20'+('errored\x20synchronously:\x20'+String(d)+'.')));}if(!c||typeof c['then']!=='function')return failedDispatch(a,b,new TypeError('DataLoader\x20must\x20be\x20constructed\x20with\x20a\x20function\x20which\x20accepts\x20'+'Array<key>\x20and\x20returns\x20Promise<Array<value>>,\x20but\x20the\x20function\x20did\x20'+('not\x20return\x20a\x20Promise:\x20'+String(c)+'.')));Promise['resolve'](c)['then'](f=>{if(!isArrayLike(f))throw new TypeError('DataLoader\x20must\x20be\x20constructed\x20with\x20a\x20function\x20which\x20accepts\x20'+'Array<key>\x20and\x20returns\x20Promise<Array<value>>,\x20but\x20the\x20function\x20did\x20'+('not\x20return\x20a\x20Promise\x20of\x20an\x20Array:\x20'+String(f)+'.'));if(f['length']!==b['keys']['length'])throw new TypeError('DataLoader\x20must\x20be\x20constructed\x20with\x20a\x20function\x20which\x20accepts\x20'+'Array<key>\x20and\x20returns\x20Promise<Array<value>>,\x20but\x20the\x20function\x20did\x20'+'not\x20return\x20a\x20Promise\x20of\x20an\x20Array\x20of\x20the\x20same\x20length\x20as\x20the\x20Array\x20'+'of\x20keys.'+('\x0a\x0aKeys:\x0a'+String(b['keys']))+('\x0a\x0aValues:\x0a'+String(f)));resolveCacheHits(b);for(let g=0x0;g<b['callbacks']['length'];g++){const h=f[g];h instanceof Error?b['callbacks'][g]['reject'](h):b['callbacks'][g]['resolve'](h);}})['catch'](f=>{failedDispatch(a,b,f);});}function failedDispatch(a,b,c){resolveCacheHits(b);for(let d=0x0;d<b['keys']['length'];d++){a['clear'](b['keys'][d]),b['callbacks'][d]['reject'](c);}}function resolveCacheHits(a){if(a['cacheHits'])for(let b=0x0;b<a['cacheHits']['length'];b++){a['cacheHits'][b]();}}function getValidMaxBatchSize(a){const b=!a||a['batch']!==![];if(!b)return 0x1;const c=a&&a['maxBatchSize'];if(c===undefined)return Infinity;if(typeof c!=='number'||c<0x1)throw new TypeError('maxBatchSize\x20must\x20be\x20a\x20positive\x20number:\x20'+c);return c;}function getValidBatchScheduleFn(a){const b=a&&a['batchScheduleFn'];if(b===undefined)return enqueuePostPromiseJob;if(typeof b!=='function')throw new TypeError('batchScheduleFn\x20must\x20be\x20a\x20function:\x20'+b);return b;}function getValidCacheKeyFn(a){const b=a&&a['cacheKeyFn'];if(b===undefined)return c=>c;if(typeof b!=='function')throw new TypeError('cacheKeyFn\x20must\x20be\x20a\x20function:\x20'+b);return b;}function getValidCacheMap(a){const b=!a||a['cache']!==![];if(!b)return null;const c=a&&a['cacheMap'];if(c===undefined)return new Map();if(c!==null){const d=['get','set','delete','clear'],e=d['filter'](f=>c&&typeof c[f]!=='function');if(e['length']!==0x0)throw new TypeError('Custom\x20cacheMap\x20missing\x20methods:\x20'+e['join'](',\x20'));}return c;}function getValidName(a){if(a&&a['name'])return a['name'];return null;}function isArrayLike(a){return typeof a==='object'&&a!==null&&'length'in a&&typeof a['length']==='number'&&(a['length']===0x0||a['length']>0x0&&Object['prototype']['hasOwnProperty']['call'](a,a['length']-0x1));}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function fromHex(a){const b=a['startsWith']('0x')?a['slice'](0x2):a,c=b['length']%0x2===0x0?b:'0'+b,d=c['match'](/[0-9a-fA-F]{2}/g)?.['map'](e=>parseInt(e,0x10))??[];if(d['length']!==c['length']/0x2)throw new Error('Invalid\x20hex\x20string\x20'+a);return Uint8Array['from'](d);}export function toHex(a){return a['reduce']((b,c)=>b+c['toString'](0x10)['padStart'](0x2,'0'),'');}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { fromBase58, toBase58 } from "./b58.js";
|
|
2
|
-
export { fromBase64, toBase64 } from "./b64.js";
|
|
3
|
-
export { fromHex, toHex } from "./hex.js";
|
|
4
|
-
export type { Simplify, UnionToIntersection } from "./types.js";
|
|
5
|
-
export { chunk } from "./chunk.js";
|
|
6
|
-
export { promiseWithResolvers, type PromiseWithResolvers, } from "./with-resolver.js";
|
|
7
|
-
export { DataLoader } from "./dataloader.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{fromBase58,toBase58}from'./b58.js';export{fromBase64,toBase64}from'./b64.js';export{fromHex,toHex}from'./hex.js';export{chunk}from'./chunk.js';export{promiseWithResolvers}from'./with-resolver.js';export{DataLoader}from'./dataloader.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export{};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function promiseWithResolvers(){let a,b;const c=new Promise((d,e)=>{a=d,b=e;});return{'promise':c,'resolve':a,'reject':b};}
|