@wowok/wowok 2.2.15 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +19 -131
- package/dist/esm/Transaction-CnEnSz1Q.mjs +1 -0
- package/dist/esm/arb-CagzFZxJ.mjs +1 -0
- package/dist/esm/base-D8AaE_L_.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-m4aejmaZ.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-CemVXFCQ.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-Cr18BjHj.mjs +1 -0
- package/dist/esm/effects-lLpKpzCX.mjs +1 -0
- package/dist/esm/falcon512-B6ErgixE.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-BmTcxH0T.mjs +1 -0
- package/dist/esm/grpc/index.d.mts +2 -0
- package/dist/esm/grpc/index.mjs +1 -0
- package/dist/esm/grpc-CaNjTFmZ.mjs +1 -0
- package/dist/esm/index-BLNJgAaK.d.mts +19933 -0
- package/dist/esm/index-CGqMj3cG.d.mts +67 -0
- package/dist/esm/index-o_aMVwsK.d.mts +3059 -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-pjdbzQn9.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-BpPg0lCq.mjs +1 -0
- package/dist/esm/messenger-api-DARYcgg2.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-C7vil_Yf.mjs +1 -0
- package/dist/esm/passkey-bvgZyTnX.mjs +1 -0
- package/dist/esm/pqxdh-CKkqzvPb.d.mts +42 -0
- package/dist/esm/proof-Ca-_jIfs.mjs +1 -0
- package/dist/esm/publickey-6O2imwxm.mjs +1 -0
- package/dist/esm/publickey-AyBlZ-hX.mjs +1 -0
- package/dist/esm/publickey-BPT9QiGv.mjs +1 -0
- package/dist/esm/publickey-C6fyN2VZ.mjs +1 -0
- package/dist/esm/publickey-CdxwYhbs.mjs +1 -0
- package/dist/esm/publickey-qLbcTInT.mjs +1 -0
- package/dist/esm/received-jO4cTTKx.mjs +1 -0
- package/dist/esm/secp256k1-De_NDSy_.mjs +1 -0
- package/dist/esm/secp256r1-B5M33SkY.mjs +1 -0
- package/dist/esm/service-c6cDIKSG.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-CQWQwC9c.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 -154
- package/NOTICE +0 -114
- package/THIRD_PARTY_LICENSES/APACHE_LICENSE.txt +0 -196
- package/THIRD_PARTY_LICENSES/MIT_LICENSE.txt +0 -58
- 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 -954
- package/dist/cjs/jsonRpc/types/generated.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 -954
- package/dist/esm/jsonRpc/types/generated.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,196 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
APACHE LICENSE 2.0
|
|
3
|
-
================================================================================
|
|
4
|
-
|
|
5
|
-
The following software components are licensed under the Apache License 2.0:
|
|
6
|
-
|
|
7
|
-
1. @mysten/bcs, @mysten/utils
|
|
8
|
-
Copyright (c) Mysten Labs, Inc.
|
|
9
|
-
Source: https://github.com/MystenLabs/sui
|
|
10
|
-
|
|
11
|
-
2. @protobuf-ts/grpcweb-transport, @protobuf-ts/runtime, @protobuf-ts/runtime-rpc
|
|
12
|
-
Copyright (c) Timo Stamm
|
|
13
|
-
Source: https://github.com/timostamm/protobuf-ts
|
|
14
|
-
|
|
15
|
-
================================================================================
|
|
16
|
-
|
|
17
|
-
Apache License
|
|
18
|
-
Version 2.0, January 2004
|
|
19
|
-
http://www.apache.org/licenses/
|
|
20
|
-
|
|
21
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
22
|
-
|
|
23
|
-
1. Definitions.
|
|
24
|
-
|
|
25
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
26
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
27
|
-
|
|
28
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
29
|
-
the copyright owner that is granting the License.
|
|
30
|
-
|
|
31
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
32
|
-
other entities that control, are controlled by, or are under common
|
|
33
|
-
control with that entity. For the purposes of this definition,
|
|
34
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
35
|
-
direction or management of such entity, whether by contract or
|
|
36
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
37
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
38
|
-
|
|
39
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
40
|
-
exercising permissions granted by this License.
|
|
41
|
-
|
|
42
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
43
|
-
including but not limited to software source code, documentation
|
|
44
|
-
source, and configuration files.
|
|
45
|
-
|
|
46
|
-
"Object" form shall mean any form resulting from mechanical
|
|
47
|
-
transformation or translation of a Source form, including but
|
|
48
|
-
not limited to compiled object code, generated documentation,
|
|
49
|
-
and conversions to other media types.
|
|
50
|
-
|
|
51
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
52
|
-
Object form, made available under the License, as indicated by a
|
|
53
|
-
copyright notice that is included in or attached to the work
|
|
54
|
-
(an example is provided in the Appendix below).
|
|
55
|
-
|
|
56
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
57
|
-
form, that is based on (or derived from) the Work and for which the
|
|
58
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
59
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
60
|
-
of this License, Derivative Works shall not include works that remain
|
|
61
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
62
|
-
the Work and Derivative Works thereof.
|
|
63
|
-
|
|
64
|
-
"Contribution" shall mean any work of authorship, including
|
|
65
|
-
the original version of the Work and any modifications or additions
|
|
66
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
67
|
-
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
68
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
69
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
70
|
-
means any form of electronic, verbal, or written communication sent
|
|
71
|
-
to the Licensor or its representatives, including but not limited to
|
|
72
|
-
communication on electronic mailing lists, source code control systems,
|
|
73
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
74
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
75
|
-
excluding communication that is conspicuously marked or otherwise
|
|
76
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
77
|
-
|
|
78
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
79
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
80
|
-
subsequently incorporated within the Work.
|
|
81
|
-
|
|
82
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
83
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
84
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
85
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
86
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
87
|
-
Work and such Derivative Works in Source or Object form.
|
|
88
|
-
|
|
89
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
90
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
91
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
92
|
-
(except as stated in this section) patent license to make, have made,
|
|
93
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
94
|
-
where such license applies only to those patent claims licensable
|
|
95
|
-
by such Contributor that are necessarily infringed by their
|
|
96
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
97
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
98
|
-
institute patent litigation against any entity (including a
|
|
99
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
100
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
101
|
-
or contributory patent infringement, then any patent licenses
|
|
102
|
-
granted to You under this License for that Work shall terminate
|
|
103
|
-
as of the date such litigation is filed.
|
|
104
|
-
|
|
105
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
106
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
107
|
-
modifications, and in Source or Object form, provided that You
|
|
108
|
-
meet the following conditions:
|
|
109
|
-
|
|
110
|
-
(a) You must give any other recipients of the Work or
|
|
111
|
-
Derivative Works a copy of this License; and
|
|
112
|
-
|
|
113
|
-
(b) You must cause any modified files to carry prominent notices
|
|
114
|
-
stating that You changed the files; and
|
|
115
|
-
|
|
116
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
117
|
-
that You distribute, all copyright, patent, trademark, and
|
|
118
|
-
attribution notices from the Source form of the Work,
|
|
119
|
-
excluding those notices that do not pertain to any part of
|
|
120
|
-
the Derivative Works; and
|
|
121
|
-
|
|
122
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
123
|
-
distribution, then any Derivative Works that You distribute must
|
|
124
|
-
include a readable copy of the attribution notices contained
|
|
125
|
-
within such NOTICE file, excluding those notices that do not
|
|
126
|
-
pertain to any part of the Derivative Works, in at least one
|
|
127
|
-
of the following places: within a NOTICE text file distributed
|
|
128
|
-
as part of the Derivative Works; within the Source form or
|
|
129
|
-
documentation, if provided along with the Derivative Works; or,
|
|
130
|
-
within a display generated by the Derivative Works, if and
|
|
131
|
-
wherever such third-party notices normally appear. The contents
|
|
132
|
-
of the NOTICE file are for informational purposes only and
|
|
133
|
-
do not modify the License. You may add Your own attribution
|
|
134
|
-
notices within Derivative Works that You distribute, alongside
|
|
135
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
136
|
-
that such additional attribution notices cannot be construed
|
|
137
|
-
as modifying the License.
|
|
138
|
-
|
|
139
|
-
You may add Your own copyright statement to Your modifications and
|
|
140
|
-
may provide additional or different license terms and conditions
|
|
141
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
142
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
143
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
144
|
-
the conditions stated in this License.
|
|
145
|
-
|
|
146
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
147
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
148
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
149
|
-
this License, without any additional terms or conditions.
|
|
150
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
151
|
-
the terms of any separate license agreement you may have executed
|
|
152
|
-
with Licensor regarding such Contributions.
|
|
153
|
-
|
|
154
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
155
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
156
|
-
except as required for reasonable and customary use in describing the
|
|
157
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
158
|
-
|
|
159
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
160
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
161
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
162
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
163
|
-
implied, including, without limitation, any warranties or conditions
|
|
164
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
165
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
166
|
-
appropriateness of using or redistributing the Work and assume any
|
|
167
|
-
risks associated with Your exercise of permissions under this License.
|
|
168
|
-
|
|
169
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
170
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
171
|
-
unless required by applicable law (such as deliberate and grossly
|
|
172
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
173
|
-
liable to You for damages, including any direct, indirect, special,
|
|
174
|
-
incidental, or consequential damages of any character arising as a
|
|
175
|
-
result of this License or out of the use or inability to use the
|
|
176
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
177
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
178
|
-
other commercial damages or losses), even if such Contributor
|
|
179
|
-
has been advised of the possibility of such damages.
|
|
180
|
-
|
|
181
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
182
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
183
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
184
|
-
or other liability obligations and/or rights consistent with this
|
|
185
|
-
License. However, in accepting such obligations, You may act only
|
|
186
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
187
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
188
|
-
defend, and hold each Contributor harmless for any liability
|
|
189
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
190
|
-
of your accepting any such warranty or additional liability.
|
|
191
|
-
|
|
192
|
-
END OF TERMS AND CONDITIONS
|
|
193
|
-
|
|
194
|
-
================================================================================
|
|
195
|
-
END OF APACHE LICENSE 2.0
|
|
196
|
-
================================================================================
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
================================================================================
|
|
2
|
-
MIT LICENSE
|
|
3
|
-
================================================================================
|
|
4
|
-
|
|
5
|
-
The following software components are licensed under the MIT License:
|
|
6
|
-
|
|
7
|
-
1. @noble/curves (https://github.com/paulmillr/noble-curves)
|
|
8
|
-
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
9
|
-
|
|
10
|
-
2. @noble/hashes (https://github.com/paulmillr/noble-hashes)
|
|
11
|
-
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
12
|
-
|
|
13
|
-
3. @noble/post-quantum (https://github.com/paulmillr/noble-post-quantum)
|
|
14
|
-
Copyright (c) 2023 Paul Miller (https://paulmillr.com)
|
|
15
|
-
|
|
16
|
-
4. @scure/base (https://github.com/paulmillr/scure-base)
|
|
17
|
-
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
18
|
-
|
|
19
|
-
5. @scure/bip32 (https://github.com/paulmillr/scure-bip32)
|
|
20
|
-
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
21
|
-
|
|
22
|
-
6. @scure/bip39 (https://github.com/paulmillr/scure-bip39)
|
|
23
|
-
Copyright (c) 2022 Paul Miller (https://paulmillr.com)
|
|
24
|
-
|
|
25
|
-
7. libsql (https://github.com/tursodatabase/libsql)
|
|
26
|
-
Copyright (c) Turso and contributors
|
|
27
|
-
|
|
28
|
-
8. lodash (https://github.com/lodash/lodash)
|
|
29
|
-
Copyright (c) OpenJS Foundation and other contributors
|
|
30
|
-
|
|
31
|
-
9. valibot (https://github.com/fabian-hiller/valibot)
|
|
32
|
-
Copyright (c) 2023 Fabian Hiller
|
|
33
|
-
|
|
34
|
-
================================================================================
|
|
35
|
-
|
|
36
|
-
MIT License
|
|
37
|
-
|
|
38
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
39
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
40
|
-
in the Software without restriction, including without limitation the rights
|
|
41
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
42
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
43
|
-
furnished to do so, subject to the following conditions:
|
|
44
|
-
|
|
45
|
-
The above copyright notice and this permission notice shall be included in all
|
|
46
|
-
copies or substantial portions of the Software.
|
|
47
|
-
|
|
48
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
49
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
50
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
51
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
52
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
53
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
54
|
-
SOFTWARE.
|
|
55
|
-
|
|
56
|
-
================================================================================
|
|
57
|
-
END OF MIT LICENSE
|
|
58
|
-
================================================================================
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { BcsReader } from "./reader.js";
|
|
2
|
-
import type { BcsWriterOptions } from "./writer.js";
|
|
3
|
-
import { BcsWriter } from "./writer.js";
|
|
4
|
-
import type { EnumInputShape, EnumOutputShape, JoinString } from "./types.js";
|
|
5
|
-
export interface BcsTypeOptions<T, Input = T, Name extends string = string> {
|
|
6
|
-
name?: Name;
|
|
7
|
-
validate?: (value: Input) => void;
|
|
8
|
-
}
|
|
9
|
-
export declare class BcsType<T, Input = T, const Name extends string = string> {
|
|
10
|
-
#private;
|
|
11
|
-
$inferType: T;
|
|
12
|
-
$inferInput: Input;
|
|
13
|
-
name: Name;
|
|
14
|
-
read: (reader: BcsReader) => T;
|
|
15
|
-
serializedSize: (value: Input, options?: BcsWriterOptions) => number | null;
|
|
16
|
-
validate: (value: Input) => void;
|
|
17
|
-
constructor(options: {
|
|
18
|
-
name: Name;
|
|
19
|
-
read: (reader: BcsReader) => T;
|
|
20
|
-
write: (value: Input, writer: BcsWriter) => void;
|
|
21
|
-
serialize?: (value: Input, options?: BcsWriterOptions) => Uint8Array<ArrayBuffer>;
|
|
22
|
-
serializedSize?: (value: Input) => number | null;
|
|
23
|
-
validate?: (value: Input) => void;
|
|
24
|
-
} & BcsTypeOptions<T, Input, Name>);
|
|
25
|
-
write(value: Input, writer: BcsWriter): void;
|
|
26
|
-
serialize(value: Input, options?: BcsWriterOptions): SerializedBcs<T, Input>;
|
|
27
|
-
parse(bytes: Uint8Array): T;
|
|
28
|
-
fromHex(hex: string): T;
|
|
29
|
-
fromBase58(b64: string): T;
|
|
30
|
-
fromBase64(b64: string): T;
|
|
31
|
-
transform<T2 = T, Input2 = Input, NewName extends string = Name>({ name, input, output, validate, }: {
|
|
32
|
-
input?: (val: Input2) => Input;
|
|
33
|
-
output?: (value: T) => T2;
|
|
34
|
-
} & BcsTypeOptions<T2, Input2, NewName>): BcsType<T2, Input2, NewName>;
|
|
35
|
-
}
|
|
36
|
-
declare const SERIALIZED_BCS_BRAND: never;
|
|
37
|
-
export declare function isSerializedBcs(obj: unknown): obj is SerializedBcs<unknown>;
|
|
38
|
-
export declare class SerializedBcs<T, Input = T> {
|
|
39
|
-
#private;
|
|
40
|
-
[SERIALIZED_BCS_BRAND]: boolean;
|
|
41
|
-
constructor(schema: BcsType<T, Input>, bytes: Uint8Array<ArrayBuffer>);
|
|
42
|
-
toBytes(): Uint8Array<ArrayBuffer>;
|
|
43
|
-
toHex(): string;
|
|
44
|
-
toBase64(): string;
|
|
45
|
-
toBase58(): string;
|
|
46
|
-
parse(): T;
|
|
47
|
-
}
|
|
48
|
-
export declare function fixedSizeBcsType<T, Input = T, const Name extends string = string>({ size, ...options }: {
|
|
49
|
-
name: Name;
|
|
50
|
-
size: number;
|
|
51
|
-
read: (reader: BcsReader) => T;
|
|
52
|
-
write: (value: Input, writer: BcsWriter) => void;
|
|
53
|
-
} & BcsTypeOptions<T, Input, Name>): BcsType<T, Input, Name>;
|
|
54
|
-
export declare function uIntBcsType<const Name extends string = string>({ readMethod, writeMethod, ...options }: {
|
|
55
|
-
name: Name;
|
|
56
|
-
size: number;
|
|
57
|
-
readMethod: `read${8 | 16 | 32}`;
|
|
58
|
-
writeMethod: `write${8 | 16 | 32}`;
|
|
59
|
-
maxValue: number;
|
|
60
|
-
} & BcsTypeOptions<number, number, Name>): BcsType<number, number, Name>;
|
|
61
|
-
export declare function bigUIntBcsType<const Name extends string = string>({ readMethod, writeMethod, ...options }: {
|
|
62
|
-
name: Name;
|
|
63
|
-
size: number;
|
|
64
|
-
readMethod: `read${64 | 128 | 256}`;
|
|
65
|
-
writeMethod: `write${64 | 128 | 256}`;
|
|
66
|
-
maxValue: bigint;
|
|
67
|
-
} & BcsTypeOptions<string, string | number | bigint>): BcsType<string, string | number | bigint, Name>;
|
|
68
|
-
export declare function dynamicSizeBcsType<T, Input = T, const Name extends string = string>({ serialize, ...options }: {
|
|
69
|
-
name: Name;
|
|
70
|
-
read: (reader: BcsReader) => T;
|
|
71
|
-
serialize: (value: Input, options?: BcsWriterOptions) => Uint8Array<ArrayBuffer>;
|
|
72
|
-
} & BcsTypeOptions<T, Input>): BcsType<T, Input, string>;
|
|
73
|
-
export declare function stringLikeBcsType<const Name extends string = string>({ toBytes, fromBytes, ...options }: {
|
|
74
|
-
name: Name;
|
|
75
|
-
toBytes: (value: string) => Uint8Array;
|
|
76
|
-
fromBytes: (bytes: Uint8Array) => string;
|
|
77
|
-
serializedSize?: (value: string) => number | null;
|
|
78
|
-
} & BcsTypeOptions<string, string, Name>): BcsType<string, string, Name>;
|
|
79
|
-
export declare function lazyBcsType<T, Input>(cb: () => BcsType<T, Input>): BcsType<T, Input, string>;
|
|
80
|
-
export interface BcsStructOptions<T extends Record<string, BcsType<any>>, Name extends string = string> extends Omit<BcsTypeOptions<{
|
|
81
|
-
[K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never;
|
|
82
|
-
}, {
|
|
83
|
-
[K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never;
|
|
84
|
-
}, Name>, "name"> {
|
|
85
|
-
name: Name;
|
|
86
|
-
fields: T;
|
|
87
|
-
}
|
|
88
|
-
export declare class BcsStruct<T extends Record<string, BcsType<any>>, const Name extends string = string> extends BcsType<{
|
|
89
|
-
[K in keyof T]: T[K] extends BcsType<infer U, any> ? U : never;
|
|
90
|
-
}, {
|
|
91
|
-
[K in keyof T]: T[K] extends BcsType<any, infer U> ? U : never;
|
|
92
|
-
}, Name> {
|
|
93
|
-
constructor({ name, fields, ...options }: BcsStructOptions<T, Name>);
|
|
94
|
-
}
|
|
95
|
-
export interface BcsEnumOptions<T extends Record<string, BcsType<any> | null>, Name extends string = string> extends Omit<BcsTypeOptions<EnumOutputShape<{
|
|
96
|
-
[K in keyof T]: T[K] extends BcsType<infer U, any, any> ? U : true;
|
|
97
|
-
}>, EnumInputShape<{
|
|
98
|
-
[K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null;
|
|
99
|
-
}>, Name>, "name"> {
|
|
100
|
-
name: Name;
|
|
101
|
-
fields: T;
|
|
102
|
-
}
|
|
103
|
-
export declare class BcsEnum<T extends Record<string, BcsType<any> | null>, const Name extends string = string> extends BcsType<EnumOutputShape<{
|
|
104
|
-
[K in keyof T]: T[K] extends BcsType<infer U, any> ? U : true;
|
|
105
|
-
}>, EnumInputShape<{
|
|
106
|
-
[K in keyof T]: T[K] extends BcsType<any, infer U, any> ? U : boolean | object | null;
|
|
107
|
-
}>, Name> {
|
|
108
|
-
constructor({ fields, ...options }: BcsEnumOptions<T, Name>);
|
|
109
|
-
}
|
|
110
|
-
export interface BcsTupleOptions<T extends readonly BcsType<any>[], Name extends string> extends Omit<BcsTypeOptions<{
|
|
111
|
-
-readonly [K in keyof T]: T[K] extends BcsType<infer T, any> ? T : never;
|
|
112
|
-
}, {
|
|
113
|
-
[K in keyof T]: T[K] extends BcsType<any, infer T> ? T : never;
|
|
114
|
-
}, Name>, "name"> {
|
|
115
|
-
name?: Name;
|
|
116
|
-
fields: T;
|
|
117
|
-
}
|
|
118
|
-
export declare class BcsTuple<const T extends readonly BcsType<any>[], const Name extends string = `(${JoinString<{
|
|
119
|
-
[K in keyof T]: T[K] extends BcsType<any, any, infer T> ? T : never;
|
|
120
|
-
}, ", ">})`> extends BcsType<{
|
|
121
|
-
-readonly [K in keyof T]: T[K] extends BcsType<infer T, any> ? T : never;
|
|
122
|
-
}, {
|
|
123
|
-
[K in keyof T]: T[K] extends BcsType<any, infer T> ? T : never;
|
|
124
|
-
}, Name> {
|
|
125
|
-
constructor({ fields, name, ...options }: BcsTupleOptions<T, Name>);
|
|
126
|
-
}
|
|
127
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{fromBase58,fromBase64,toBase58,toBase64,fromHex,toHex}from'../utils/index.js';import{BcsReader}from'./reader.js';import{ulebEncode}from'./uleb.js';import{BcsWriter}from'./writer.js';export class BcsType{['$inferType'];['$inferInput'];['name'];['read'];['serializedSize'];['validate'];#write;#serialize;constructor(a){this['name']=a['name'],this['read']=a['read'],this['serializedSize']=a['serializedSize']??(()=>null),this.#write=a['write'],this.#serialize=a['serialize']??((b,c)=>{const d=new BcsWriter({'initialSize':this['serializedSize'](b)??undefined,...c});return this.#write(b,d),d['toBytes']();}),this['validate']=a['validate']??(()=>{});}['write'](a,b){this['validate'](a),this.#write(a,b);}['serialize'](a,b){return this['validate'](a),new SerializedBcs(this,this.#serialize(a,b));}['parse'](a){const b=new BcsReader(a);return this['read'](b);}['fromHex'](a){return this['parse'](fromHex(a));}['fromBase58'](a){return this['parse'](fromBase58(a));}['fromBase64'](a){return this['parse'](fromBase64(a));}['transform']({name:a,input:b,output:c,validate:d}){return new BcsType({'name':a??this['name'],'read':e=>c?c(this['read'](e)):this['read'](e),'write':(e,f)=>this.#write(b?b(e):e,f),'serializedSize':e=>this['serializedSize'](b?b(e):e),'serialize':(e,f)=>this.#serialize(b?b(e):e,f),'validate':e=>{d?.(e),this['validate'](b?b(e):e);}});}}const SERIALIZED_BCS_BRAND=Symbol['for']('@mysten/serialized-bcs');export function isSerializedBcs(a){return!!a&&typeof a==='object'&&a[SERIALIZED_BCS_BRAND]===!![];}export class SerializedBcs{#schema;#bytes;get[SERIALIZED_BCS_BRAND](){return!![];}constructor(a,b){this.#schema=a,this.#bytes=b;}['toBytes'](){return this.#bytes;}['toHex'](){return toHex(this.#bytes);}['toBase64'](){return toBase64(this.#bytes);}['toBase58'](){return toBase58(this.#bytes);}['parse'](){return this.#schema['parse'](this.#bytes);}}export function fixedSizeBcsType({size:a,...b}){return new BcsType({...b,'serializedSize':()=>a});}export function uIntBcsType({readMethod:a,writeMethod:b,...c}){return fixedSizeBcsType({...c,'read':d=>d[a](),'write':(d,e)=>e[b](d),'validate':d=>{if(d<0x0||d>c['maxValue'])throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+d+'.\x20Expected\x20value\x20in\x20range\x200-'+c['maxValue']);c['validate']?.(d);}});}export function bigUIntBcsType({readMethod:a,writeMethod:b,...c}){return fixedSizeBcsType({...c,'read':d=>d[a](),'write':(d,e)=>e[b](BigInt(d)),'validate':d=>{const e=BigInt(d);if(e<0x0||e>c['maxValue'])throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+e+'.\x20Expected\x20value\x20in\x20range\x200-'+c['maxValue']);c['validate']?.(e);}});}export function dynamicSizeBcsType({serialize:a,...b}){const c=new BcsType({...b,'serialize':a,'write':(d,e)=>{for(const f of c['serialize'](d)['toBytes']()){e['write8'](f);}}});return c;}export function stringLikeBcsType({toBytes:a,fromBytes:b,...c}){return new BcsType({...c,'read':d=>{const e=d['readULEB'](),f=d['readBytes'](e);return b(f);},'write':(d,e)=>{const f=a(d);e['writeULEB'](f['length']);for(let g=0x0;g<f['length'];g++){e['write8'](f[g]);}},'serialize':d=>{const e=a(d),f=ulebEncode(e['length']),g=new Uint8Array(f['length']+e['length']);return g['set'](f,0x0),g['set'](e,f['length']),g;},'validate':d=>{if(typeof d!=='string')throw new TypeError('Invalid\x20'+c['name']+'\x20value:\x20'+d+'.\x20Expected\x20string');c['validate']?.(d);}});}export function lazyBcsType(a){let b=null;function c(){return!b&&(b=a()),b;}return new BcsType({'name':'lazy','read':d=>c()['read'](d),'serializedSize':d=>c()['serializedSize'](d),'write':(d,e)=>c()['write'](d,e),'serialize':(d,e)=>c()['serialize'](d,e)['toBytes']()});}export class BcsStruct extends BcsType{constructor({name:a,fields:b,...c}){const d=Object['entries'](b);super({'name':a,'serializedSize':e=>{let f=0x0;for(const [g,h]of d){const i=h['serializedSize'](e[g]);if(i==null)return null;f+=i;}return f;},'read':e=>{const f={};for(const [g,h]of d){f[g]=h['read'](e);}return f;},'write':(e,f)=>{for(const [g,h]of d){h['write'](e[g],f);}},...c,'validate':e=>{c?.['validate']?.(e);if(typeof e!=='object'||e==null)throw new TypeError('Expected\x20object,\x20found\x20'+typeof e);}});}}export class BcsEnum extends BcsType{constructor({fields:a,...b}){const c=Object['entries'](a);super({'read':d=>{const e=d['readULEB'](),f=c[e];if(!f)throw new TypeError('Unknown\x20value\x20'+e+'\x20for\x20enum\x20'+b['name']);const [g,h]=f;return{[g]:h?.['read'](d)??!![],'$kind':g};},'write':(d,e)=>{const [f,g]=Object['entries'](d)['filter'](([h])=>Object['hasOwn'](a,h))[0x0];for(let h=0x0;h<c['length'];h++){const [j,k]=c[h];if(j===f){e['writeULEB'](h),k?.['write'](g,e);return;}}},...b,'validate':d=>{b?.['validate']?.(d);if(typeof d!=='object'||d==null)throw new TypeError('Expected\x20object,\x20found\x20'+typeof d);const e=Object['keys'](d)['filter'](g=>d[g]!==undefined&&Object['hasOwn'](a,g));if(e['length']!==0x1)throw new TypeError('Expected\x20object\x20with\x20one\x20key,\x20but\x20found\x20'+e['length']+'\x20for\x20type\x20'+b['name']+'}');const [f]=e;if(!Object['hasOwn'](a,f))throw new TypeError('Invalid\x20enum\x20variant\x20'+f);}});}}export class BcsTuple extends BcsType{constructor({fields:a,name:b,...c}){super({'name':b??'('+a['map'](d=>d['name'])['join'](',\x20')+')','serializedSize':d=>{let e=0x0;for(let f=0x0;f<a['length'];f++){const g=a[f]['serializedSize'](d[f]);if(g==null)return null;e+=g;}return e;},'read':d=>{const e=[];for(const f of a){e['push'](f['read'](d));}return e;},'write':(d,e)=>{for(let f=0x0;f<a['length'];f++){a[f]['write'](d[f],e);}},...c,'validate':d=>{c?.['validate']?.(d);if(!Array['isArray'](d))throw new TypeError('Expected\x20array,\x20found\x20'+typeof d);if(d['length']!==a['length'])throw new TypeError('Expected\x20array\x20of\x20length\x20'+a['length']+',\x20found\x20'+d['length']);}});}}
|
|
@@ -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);});}
|