@taquito/wallet-connect 24.3.0-beta.2 → 24.3.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/{taquito-wallet-connect/src/taquito-wallet-connect.js → taquito-wallet-connect.js} +1 -4
- package/dist/lib/{taquito-http-utils/src/version.js → version.js} +2 -2
- package/package.json +5 -7
- package/dist/lib/taquito/src/batch/constants.js +0 -16
- package/dist/lib/taquito/src/batch/rpc-batch-provider.js +0 -327
- package/dist/lib/taquito/src/constants.js +0 -135
- package/dist/lib/taquito/src/context.js +0 -178
- package/dist/lib/taquito/src/contract/big-map.js +0 -57
- package/dist/lib/taquito/src/contract/compose.js +0 -6
- package/dist/lib/taquito/src/contract/constants.js +0 -4
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-factory.js +0 -18
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-interface.js +0 -2
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-object-param.js +0 -72
- package/dist/lib/taquito/src/contract/contract-methods/contract-on-chain-view.js +0 -111
- package/dist/lib/taquito/src/contract/contract.js +0 -158
- package/dist/lib/taquito/src/contract/errors.js +0 -140
- package/dist/lib/taquito/src/contract/index.js +0 -30
- package/dist/lib/taquito/src/contract/interface.js +0 -2
- package/dist/lib/taquito/src/contract/manager-lambda.js +0 -71
- package/dist/lib/taquito/src/contract/prepare.js +0 -231
- package/dist/lib/taquito/src/contract/rpc-contract-provider.js +0 -675
- package/dist/lib/taquito/src/contract/sapling-state-abstraction.js +0 -24
- package/dist/lib/taquito/src/contract/semantic.js +0 -43
- package/dist/lib/taquito/src/contract/view_lambda.js +0 -27
- package/dist/lib/taquito/src/errors.js +0 -42
- package/dist/lib/taquito/src/estimate/errors.js +0 -16
- package/dist/lib/taquito/src/estimate/estimate-provider-interface.js +0 -2
- package/dist/lib/taquito/src/estimate/estimate.js +0 -176
- package/dist/lib/taquito/src/estimate/index.js +0 -20
- package/dist/lib/taquito/src/estimate/rpc-estimate-provider.js +0 -640
- package/dist/lib/taquito/src/extension/extension.js +0 -2
- package/dist/lib/taquito/src/forger/composite-forger.js +0 -32
- package/dist/lib/taquito/src/forger/errors.js +0 -30
- package/dist/lib/taquito/src/forger/rpc-forger.js +0 -12
- package/dist/lib/taquito/src/forger/taquito-local-forger.js +0 -21
- package/dist/lib/taquito/src/global-constants/default-global-constants-provider.js +0 -35
- package/dist/lib/taquito/src/global-constants/errors.js +0 -30
- package/dist/lib/taquito/src/global-constants/interface-global-constants-provider.js +0 -2
- package/dist/lib/taquito/src/global-constants/noop-global-constants-provider.js +0 -10
- package/dist/lib/taquito/src/import-key.js +0 -40
- package/dist/lib/taquito/src/injector/helper.js +0 -18
- package/dist/lib/taquito/src/injector/interface.js +0 -2
- package/dist/lib/taquito/src/injector/rpc-injector.js +0 -27
- package/dist/lib/taquito/src/operations/ballot-operation.js +0 -32
- package/dist/lib/taquito/src/operations/batch-operation.js +0 -69
- package/dist/lib/taquito/src/operations/delegate-operation.js +0 -54
- package/dist/lib/taquito/src/operations/drain-delegate-operation.js +0 -31
- package/dist/lib/taquito/src/operations/errors.js +0 -133
- package/dist/lib/taquito/src/operations/failing-noop-operation.js +0 -2
- package/dist/lib/taquito/src/operations/increase-paid-storage-operation.js +0 -49
- package/dist/lib/taquito/src/operations/index.js +0 -54
- package/dist/lib/taquito/src/operations/operations.js +0 -193
- package/dist/lib/taquito/src/operations/origination-operation.js +0 -78
- package/dist/lib/taquito/src/operations/proposals-operation.js +0 -29
- package/dist/lib/taquito/src/operations/register-global-constant-operation.js +0 -52
- package/dist/lib/taquito/src/operations/reveal-operation.js +0 -74
- package/dist/lib/taquito/src/operations/smart-rollup-add-messages-operation.js +0 -44
- package/dist/lib/taquito/src/operations/smart-rollup-execute-outbox-message-operation.js +0 -53
- package/dist/lib/taquito/src/operations/smart-rollup-originate-operation.js +0 -50
- package/dist/lib/taquito/src/operations/transaction-operation.js +0 -73
- package/dist/lib/taquito/src/operations/transfer-ticket-operation.js +0 -47
- package/dist/lib/taquito/src/operations/types.js +0 -88
- package/dist/lib/taquito/src/operations/update-companion-key-operation.js +0 -55
- package/dist/lib/taquito/src/operations/update-consensus-key-operation.js +0 -55
- package/dist/lib/taquito/src/packer/interface.js +0 -2
- package/dist/lib/taquito/src/packer/michel-codec-packer.js +0 -11
- package/dist/lib/taquito/src/packer/rpc-packer.js +0 -12
- package/dist/lib/taquito/src/parser/interface.js +0 -2
- package/dist/lib/taquito/src/parser/michel-codec-parser.js +0 -110
- package/dist/lib/taquito/src/parser/noop-parser.js +0 -9
- package/dist/lib/taquito/src/prepare/index.js +0 -18
- package/dist/lib/taquito/src/prepare/interface.js +0 -2
- package/dist/lib/taquito/src/prepare/prepare-provider.js +0 -1049
- package/dist/lib/taquito/src/provider.js +0 -363
- package/dist/lib/taquito/src/read-provider/interface.js +0 -2
- package/dist/lib/taquito/src/read-provider/rpc-read-adapter.js +0 -183
- package/dist/lib/taquito/src/signer/errors.js +0 -17
- package/dist/lib/taquito/src/signer/noop.js +0 -23
- package/dist/lib/taquito/src/subscribe/create-observable-from-subscription.js +0 -20
- package/dist/lib/taquito/src/subscribe/errors.js +0 -30
- package/dist/lib/taquito/src/subscribe/filters.js +0 -96
- package/dist/lib/taquito/src/subscribe/interface.js +0 -2
- package/dist/lib/taquito/src/subscribe/observable-subscription.js +0 -79
- package/dist/lib/taquito/src/subscribe/polling-subcribe-provider.js +0 -118
- package/dist/lib/taquito/src/taquito.js +0 -404
- package/dist/lib/taquito/src/tz/interface.js +0 -2
- package/dist/lib/taquito/src/tz/rpc-tz-provider.js +0 -46
- package/dist/lib/taquito/src/version.js +0 -8
- package/dist/lib/taquito/src/wallet/batch-operation.js +0 -71
- package/dist/lib/taquito/src/wallet/delegation-operation.js +0 -42
- package/dist/lib/taquito/src/wallet/errors.js +0 -40
- package/dist/lib/taquito/src/wallet/increase-paid-storage-operation.js +0 -42
- package/dist/lib/taquito/src/wallet/index.js +0 -25
- package/dist/lib/taquito/src/wallet/interface.js +0 -2
- package/dist/lib/taquito/src/wallet/legacy.js +0 -51
- package/dist/lib/taquito/src/wallet/operation-factory.js +0 -88
- package/dist/lib/taquito/src/wallet/operation.js +0 -221
- package/dist/lib/taquito/src/wallet/origination-operation.js +0 -53
- package/dist/lib/taquito/src/wallet/receipt.js +0 -46
- package/dist/lib/taquito/src/wallet/register-global-constant-operation.js +0 -45
- package/dist/lib/taquito/src/wallet/transaction-operation.js +0 -38
- package/dist/lib/taquito/src/wallet/transfer-ticket-operation.js +0 -38
- package/dist/lib/taquito/src/wallet/wallet.js +0 -445
- package/dist/lib/taquito-core/src/errors.js +0 -351
- package/dist/lib/taquito-core/src/signer-interfaces.js +0 -2
- package/dist/lib/taquito-core/src/taquito-core.js +0 -22
- package/dist/lib/taquito-http-utils/src/errors.js +0 -103
- package/dist/lib/taquito-http-utils/src/status_code.js +0 -322
- package/dist/lib/taquito-http-utils/src/taquito-http-utils.js +0 -308
- package/dist/lib/taquito-http-utils/src/transport-errors.js +0 -141
- package/dist/lib/taquito-local-forging/src/codec.js +0 -543
- package/dist/lib/taquito-local-forging/src/constants.js +0 -291
- package/dist/lib/taquito-local-forging/src/decoder.js +0 -64
- package/dist/lib/taquito-local-forging/src/encoder.js +0 -63
- package/dist/lib/taquito-local-forging/src/errors.js +0 -179
- package/dist/lib/taquito-local-forging/src/interface.js +0 -2
- package/dist/lib/taquito-local-forging/src/michelson/codec.js +0 -283
- package/dist/lib/taquito-local-forging/src/protocols.js +0 -60
- package/dist/lib/taquito-local-forging/src/schema/operation.js +0 -259
- package/dist/lib/taquito-local-forging/src/taquito-local-forging.js +0 -117
- package/dist/lib/taquito-local-forging/src/uint8array-consumer.js +0 -35
- package/dist/lib/taquito-local-forging/src/utils.js +0 -18
- package/dist/lib/taquito-local-forging/src/validator.js +0 -57
- package/dist/lib/taquito-local-forging/src/version.js +0 -8
- package/dist/lib/taquito-michel-codec/src/base58.js +0 -255
- package/dist/lib/taquito-michel-codec/src/binary.js +0 -1271
- package/dist/lib/taquito-michel-codec/src/errors.js +0 -90
- package/dist/lib/taquito-michel-codec/src/formatters.js +0 -58
- package/dist/lib/taquito-michel-codec/src/global-constants.js +0 -12
- package/dist/lib/taquito-michel-codec/src/macros.js +0 -551
- package/dist/lib/taquito-michel-codec/src/micheline-emitter.js +0 -128
- package/dist/lib/taquito-michel-codec/src/micheline-parser.js +0 -402
- package/dist/lib/taquito-michel-codec/src/micheline.js +0 -5
- package/dist/lib/taquito-michel-codec/src/michelson-contract.js +0 -93
- package/dist/lib/taquito-michel-codec/src/michelson-typecheck.js +0 -1756
- package/dist/lib/taquito-michel-codec/src/michelson-types.js +0 -83
- package/dist/lib/taquito-michel-codec/src/michelson-validator.js +0 -833
- package/dist/lib/taquito-michel-codec/src/scan.js +0 -128
- package/dist/lib/taquito-michel-codec/src/taquito-michel-codec.js +0 -38
- package/dist/lib/taquito-michel-codec/src/utils.js +0 -323
- package/dist/lib/taquito-michel-codec/src/version.js +0 -8
- package/dist/lib/taquito-michelson-encoder/src/constants.js +0 -11
- package/dist/lib/taquito-michelson-encoder/src/errors.js +0 -38
- package/dist/lib/taquito-michelson-encoder/src/michelson-map.js +0 -201
- package/dist/lib/taquito-michelson-encoder/src/schema/errors.js +0 -127
- package/dist/lib/taquito-michelson-encoder/src/schema/event-schema.js +0 -52
- package/dist/lib/taquito-michelson-encoder/src/schema/parameter.js +0 -113
- package/dist/lib/taquito-michelson-encoder/src/schema/storage.js +0 -260
- package/dist/lib/taquito-michelson-encoder/src/schema/types.js +0 -2
- package/dist/lib/taquito-michelson-encoder/src/schema/view-schema.js +0 -90
- package/dist/lib/taquito-michelson-encoder/src/taquito-michelson-encoder.js +0 -36
- package/dist/lib/taquito-michelson-encoder/src/tokens/bigmap.js +0 -130
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-fr.js +0 -86
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g1.js +0 -76
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g2.js +0 -76
- package/dist/lib/taquito-michelson-encoder/src/tokens/chain-id.js +0 -78
- package/dist/lib/taquito-michelson-encoder/src/tokens/chest-key.js +0 -74
- package/dist/lib/taquito-michelson-encoder/src/tokens/chest.js +0 -74
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/address.js +0 -116
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bool.js +0 -59
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bytes.js +0 -90
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/int.js +0 -90
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/key_hash.js +0 -90
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/mutez.js +0 -90
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/nat.js +0 -93
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/string.js +0 -48
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/timestamp.js +0 -66
- package/dist/lib/taquito-michelson-encoder/src/tokens/constant.js +0 -80
- package/dist/lib/taquito-michelson-encoder/src/tokens/contract.js +0 -86
- package/dist/lib/taquito-michelson-encoder/src/tokens/createToken.js +0 -35
- package/dist/lib/taquito-michelson-encoder/src/tokens/key.js +0 -97
- package/dist/lib/taquito-michelson-encoder/src/tokens/lambda.js +0 -55
- package/dist/lib/taquito-michelson-encoder/src/tokens/list.js +0 -85
- package/dist/lib/taquito-michelson-encoder/src/tokens/map.js +0 -112
- package/dist/lib/taquito-michelson-encoder/src/tokens/never.js +0 -61
- package/dist/lib/taquito-michelson-encoder/src/tokens/operation.js +0 -39
- package/dist/lib/taquito-michelson-encoder/src/tokens/option.js +0 -88
- package/dist/lib/taquito-michelson-encoder/src/tokens/or.js +0 -282
- package/dist/lib/taquito-michelson-encoder/src/tokens/pair.js +0 -233
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-state.js +0 -84
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.js +0 -74
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction.js +0 -74
- package/dist/lib/taquito-michelson-encoder/src/tokens/set.js +0 -82
- package/dist/lib/taquito-michelson-encoder/src/tokens/signature.js +0 -82
- package/dist/lib/taquito-michelson-encoder/src/tokens/ticket-deprecated.js +0 -92
- package/dist/lib/taquito-michelson-encoder/src/tokens/ticket.js +0 -92
- package/dist/lib/taquito-michelson-encoder/src/tokens/token.js +0 -100
- package/dist/lib/taquito-michelson-encoder/src/tokens/tokens.js +0 -75
- package/dist/lib/taquito-michelson-encoder/src/tokens/unit.js +0 -52
- package/dist/lib/taquito-michelson-encoder/src/version.js +0 -8
- package/dist/lib/taquito-rpc/src/opkind.js +0 -49
- package/dist/lib/taquito-rpc/src/rpc-client-interface.js +0 -60
- package/dist/lib/taquito-rpc/src/rpc-client-modules/rpc-cache.js +0 -1118
- package/dist/lib/taquito-rpc/src/taquito-rpc.js +0 -990
- package/dist/lib/taquito-rpc/src/types.js +0 -114
- package/dist/lib/taquito-rpc/src/utils/utils.js +0 -65
- package/dist/lib/taquito-rpc/src/version.js +0 -8
- package/dist/lib/taquito-signer/src/bls-key.js +0 -104
- package/dist/lib/taquito-signer/src/derivation-tools/ecdsa.js +0 -156
- package/dist/lib/taquito-signer/src/derivation-tools/ed25519.js +0 -82
- package/dist/lib/taquito-signer/src/derivation-tools/index.js +0 -79
- package/dist/lib/taquito-signer/src/derivation-tools/types.js +0 -4
- package/dist/lib/taquito-signer/src/derivation-tools/utils.js +0 -16
- package/dist/lib/taquito-signer/src/ec-key.js +0 -196
- package/dist/lib/taquito-signer/src/ed-key.js +0 -130
- package/dist/lib/taquito-signer/src/errors.js +0 -77
- package/dist/lib/taquito-signer/src/helpers.js +0 -44
- package/dist/lib/taquito-signer/src/in-memory-signer.js +0 -240
- package/dist/lib/taquito-signer/src/key-interface.js +0 -6
- package/dist/lib/taquito-signer/src/taquito-signer.js +0 -28
- package/dist/lib/taquito-signer/src/version.js +0 -8
- package/dist/lib/taquito-utils/src/constants.js +0 -203
- package/dist/lib/taquito-utils/src/encoding.js +0 -606
- package/dist/lib/taquito-utils/src/errors.js +0 -45
- package/dist/lib/taquito-utils/src/format.js +0 -29
- package/dist/lib/taquito-utils/src/taquito-utils.js +0 -42
- package/dist/lib/taquito-utils/src/validators.js +0 -236
- package/dist/lib/taquito-utils/src/verify-signature.js +0 -136
- package/dist/lib/taquito-utils/src/version.js +0 -8
- package/dist/lib/taquito-wallet-connect/src/version.js +0 -8
- package/dist/types/taquito/src/batch/constants.d.ts +0 -3
- package/dist/types/taquito/src/batch/rpc-batch-provider.d.ts +0 -139
- package/dist/types/taquito/src/constants.d.ts +0 -81
- package/dist/types/taquito/src/context.d.ts +0 -100
- package/dist/types/taquito/src/contract/big-map.d.ts +0 -35
- package/dist/types/taquito/src/contract/compose.d.ts +0 -5
- package/dist/types/taquito/src/contract/constants.d.ts +0 -1
- package/dist/types/taquito/src/contract/contract-methods/contract-method-factory.d.ts +0 -14
- package/dist/types/taquito/src/contract/contract-methods/contract-method-interface.d.ts +0 -28
- package/dist/types/taquito/src/contract/contract-methods/contract-method-object-param.d.ts +0 -39
- package/dist/types/taquito/src/contract/contract-methods/contract-on-chain-view.d.ts +0 -43
- package/dist/types/taquito/src/contract/contract.d.ts +0 -75
- package/dist/types/taquito/src/contract/errors.d.ts +0 -83
- package/dist/types/taquito/src/contract/index.d.ts +0 -11
- package/dist/types/taquito/src/contract/interface.d.ts +0 -254
- package/dist/types/taquito/src/contract/manager-lambda.d.ts +0 -73
- package/dist/types/taquito/src/contract/prepare.d.ts +0 -18
- package/dist/types/taquito/src/contract/rpc-contract-provider.d.ts +0 -270
- package/dist/types/taquito/src/contract/sapling-state-abstraction.d.ts +0 -17
- package/dist/types/taquito/src/contract/semantic.d.ts +0 -7
- package/dist/types/taquito/src/contract/view_lambda.d.ts +0 -34
- package/dist/types/taquito/src/errors.d.ts +0 -26
- package/dist/types/taquito/src/estimate/errors.d.ts +0 -8
- package/dist/types/taquito/src/estimate/estimate-provider-interface.d.ts +0 -153
- package/dist/types/taquito/src/estimate/estimate.d.ts +0 -111
- package/dist/types/taquito/src/estimate/index.d.ts +0 -4
- package/dist/types/taquito/src/estimate/rpc-estimate-provider.d.ts +0 -174
- package/dist/types/taquito/src/extension/extension.d.ts +0 -4
- package/dist/types/taquito/src/forger/composite-forger.d.ts +0 -6
- package/dist/types/taquito/src/forger/errors.d.ts +0 -16
- package/dist/types/taquito/src/forger/rpc-forger.d.ts +0 -7
- package/dist/types/taquito/src/forger/taquito-local-forger.d.ts +0 -8
- package/dist/types/taquito/src/global-constants/default-global-constants-provider.d.ts +0 -18
- package/dist/types/taquito/src/global-constants/errors.d.ts +0 -16
- package/dist/types/taquito/src/global-constants/interface-global-constants-provider.d.ts +0 -11
- package/dist/types/taquito/src/global-constants/noop-global-constants-provider.d.ts +0 -5
- package/dist/types/taquito/src/import-key.d.ts +0 -13
- package/dist/types/taquito/src/injector/helper.d.ts +0 -2
- package/dist/types/taquito/src/injector/interface.d.ts +0 -5
- package/dist/types/taquito/src/injector/rpc-injector.d.ts +0 -7
- package/dist/types/taquito/src/operations/ballot-operation.d.ts +0 -18
- package/dist/types/taquito/src/operations/batch-operation.d.ts +0 -19
- package/dist/types/taquito/src/operations/delegate-operation.d.ts +0 -24
- package/dist/types/taquito/src/operations/drain-delegate-operation.d.ts +0 -17
- package/dist/types/taquito/src/operations/errors.d.ts +0 -50
- package/dist/types/taquito/src/operations/failing-noop-operation.d.ts +0 -17
- package/dist/types/taquito/src/operations/increase-paid-storage-operation.d.ts +0 -23
- package/dist/types/taquito/src/operations/index.d.ts +0 -18
- package/dist/types/taquito/src/operations/operations.d.ts +0 -35
- package/dist/types/taquito/src/operations/origination-operation.d.ts +0 -35
- package/dist/types/taquito/src/operations/proposals-operation.d.ts +0 -17
- package/dist/types/taquito/src/operations/register-global-constant-operation.d.ts +0 -25
- package/dist/types/taquito/src/operations/reveal-operation.d.ts +0 -25
- package/dist/types/taquito/src/operations/smart-rollup-add-messages-operation.d.ts +0 -20
- package/dist/types/taquito/src/operations/smart-rollup-execute-outbox-message-operation.d.ts +0 -24
- package/dist/types/taquito/src/operations/smart-rollup-originate-operation.d.ts +0 -23
- package/dist/types/taquito/src/operations/transaction-operation.d.ts +0 -28
- package/dist/types/taquito/src/operations/transfer-ticket-operation.d.ts +0 -22
- package/dist/types/taquito/src/operations/types.d.ts +0 -823
- package/dist/types/taquito/src/operations/update-companion-key-operation.d.ts +0 -23
- package/dist/types/taquito/src/operations/update-consensus-key-operation.d.ts +0 -23
- package/dist/types/taquito/src/packer/interface.d.ts +0 -4
- package/dist/types/taquito/src/packer/michel-codec-packer.d.ts +0 -5
- package/dist/types/taquito/src/packer/rpc-packer.d.ts +0 -8
- package/dist/types/taquito/src/parser/interface.d.ts +0 -4
- package/dist/types/taquito/src/parser/michel-codec-parser.d.ts +0 -16
- package/dist/types/taquito/src/parser/noop-parser.d.ts +0 -5
- package/dist/types/taquito/src/prepare/index.d.ts +0 -2
- package/dist/types/taquito/src/prepare/interface.d.ts +0 -152
- package/dist/types/taquito/src/prepare/prepare-provider.d.ts +0 -187
- package/dist/types/taquito/src/provider.d.ts +0 -50
- package/dist/types/taquito/src/read-provider/interface.d.ts +0 -132
- package/dist/types/taquito/src/read-provider/rpc-read-adapter.d.ts +0 -130
- package/dist/types/taquito/src/signer/errors.d.ts +0 -8
- package/dist/types/taquito/src/signer/noop.d.ts +0 -11
- package/dist/types/taquito/src/subscribe/create-observable-from-subscription.d.ts +0 -4
- package/dist/types/taquito/src/subscribe/errors.d.ts +0 -18
- package/dist/types/taquito/src/subscribe/filters.d.ts +0 -6
- package/dist/types/taquito/src/subscribe/interface.d.ts +0 -48
- package/dist/types/taquito/src/subscribe/observable-subscription.d.ts +0 -21
- package/dist/types/taquito/src/subscribe/polling-subcribe-provider.d.ts +0 -23
- package/dist/types/taquito/src/taquito.d.ts +0 -248
- package/dist/types/taquito/src/tz/interface.d.ts +0 -20
- package/dist/types/taquito/src/tz/rpc-tz-provider.d.ts +0 -13
- package/dist/types/taquito/src/version.d.ts +0 -4
- package/dist/types/taquito/src/wallet/batch-operation.d.ts +0 -13
- package/dist/types/taquito/src/wallet/delegation-operation.d.ts +0 -12
- package/dist/types/taquito/src/wallet/errors.d.ts +0 -24
- package/dist/types/taquito/src/wallet/increase-paid-storage-operation.d.ts +0 -12
- package/dist/types/taquito/src/wallet/index.d.ts +0 -9
- package/dist/types/taquito/src/wallet/interface.d.ts +0 -66
- package/dist/types/taquito/src/wallet/legacy.d.ts +0 -21
- package/dist/types/taquito/src/wallet/operation-factory.d.ts +0 -32
- package/dist/types/taquito/src/wallet/operation.d.ts +0 -55
- package/dist/types/taquito/src/wallet/origination-operation.d.ts +0 -14
- package/dist/types/taquito/src/wallet/receipt.d.ts +0 -16
- package/dist/types/taquito/src/wallet/register-global-constant-operation.d.ts +0 -13
- package/dist/types/taquito/src/wallet/transaction-operation.d.ts +0 -12
- package/dist/types/taquito/src/wallet/transfer-ticket-operation.d.ts +0 -12
- package/dist/types/taquito/src/wallet/wallet.d.ts +0 -196
- package/dist/types/taquito-core/src/errors.d.ts +0 -213
- package/dist/types/taquito-core/src/signer-interfaces.d.ts +0 -38
- package/dist/types/taquito-core/src/taquito-core.d.ts +0 -6
- package/dist/types/taquito-http-utils/src/errors.d.ts +0 -63
- package/dist/types/taquito-http-utils/src/status_code.d.ts +0 -318
- package/dist/types/taquito-http-utils/src/taquito-http-utils.d.ts +0 -58
- package/dist/types/taquito-http-utils/src/transport-errors.d.ts +0 -28
- package/dist/types/taquito-local-forging/src/codec.d.ts +0 -79
- package/dist/types/taquito-local-forging/src/constants.d.ts +0 -75
- package/dist/types/taquito-local-forging/src/decoder.d.ts +0 -5
- package/dist/types/taquito-local-forging/src/encoder.d.ts +0 -4
- package/dist/types/taquito-local-forging/src/errors.d.ts +0 -109
- package/dist/types/taquito-local-forging/src/interface.d.ts +0 -9
- package/dist/types/taquito-local-forging/src/michelson/codec.d.ts +0 -49
- package/dist/types/taquito-local-forging/src/protocols.d.ts +0 -27
- package/dist/types/taquito-local-forging/src/schema/operation.d.ts +0 -198
- package/dist/types/taquito-local-forging/src/taquito-local-forging.d.ts +0 -27
- package/dist/types/taquito-local-forging/src/uint8array-consumer.d.ts +0 -10
- package/dist/types/taquito-local-forging/src/utils.d.ts +0 -3
- package/dist/types/taquito-local-forging/src/validator.d.ts +0 -13
- package/dist/types/taquito-local-forging/src/version.d.ts +0 -4
- package/dist/types/taquito-michel-codec/src/base58.d.ts +0 -13
- package/dist/types/taquito-michel-codec/src/binary.d.ts +0 -127
- package/dist/types/taquito-michel-codec/src/errors.d.ts +0 -57
- package/dist/types/taquito-michel-codec/src/formatters.d.ts +0 -6
- package/dist/types/taquito-michel-codec/src/global-constants.d.ts +0 -3
- package/dist/types/taquito-michel-codec/src/macros.d.ts +0 -13
- package/dist/types/taquito-michel-codec/src/micheline-emitter.d.ts +0 -17
- package/dist/types/taquito-michel-codec/src/micheline-parser.d.ts +0 -130
- package/dist/types/taquito-michel-codec/src/micheline.d.ts +0 -44
- package/dist/types/taquito-michel-codec/src/michelson-contract.d.ts +0 -24
- package/dist/types/taquito-michel-codec/src/michelson-typecheck.d.ts +0 -38
- package/dist/types/taquito-michel-codec/src/michelson-types.d.ts +0 -147
- package/dist/types/taquito-michel-codec/src/michelson-validator.d.ts +0 -66
- package/dist/types/taquito-michel-codec/src/scan.d.ts +0 -26
- package/dist/types/taquito-michel-codec/src/taquito-michel-codec.d.ts +0 -16
- package/dist/types/taquito-michel-codec/src/utils.d.ts +0 -76
- package/dist/types/taquito-michel-codec/src/version.d.ts +0 -4
- package/dist/types/taquito-michelson-encoder/src/constants.d.ts +0 -8
- package/dist/types/taquito-michelson-encoder/src/errors.d.ts +0 -17
- package/dist/types/taquito-michelson-encoder/src/michelson-map.d.ts +0 -82
- package/dist/types/taquito-michelson-encoder/src/schema/errors.d.ts +0 -83
- package/dist/types/taquito-michelson-encoder/src/schema/event-schema.d.ts +0 -12
- package/dist/types/taquito-michelson-encoder/src/schema/parameter.d.ts +0 -54
- package/dist/types/taquito-michelson-encoder/src/schema/storage.d.ts +0 -97
- package/dist/types/taquito-michelson-encoder/src/schema/types.d.ts +0 -105
- package/dist/types/taquito-michelson-encoder/src/schema/view-schema.d.ts +0 -53
- package/dist/types/taquito-michelson-encoder/src/taquito-michelson-encoder.d.ts +0 -16
- package/dist/types/taquito-michelson-encoder/src/tokens/bigmap.d.ts +0 -51
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-fr.d.ts +0 -51
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g1.d.ts +0 -47
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g2.d.ts +0 -47
- package/dist/types/taquito-michelson-encoder/src/tokens/chain-id.d.ts +0 -51
- package/dist/types/taquito-michelson-encoder/src/tokens/chest-key.d.ts +0 -47
- package/dist/types/taquito-michelson-encoder/src/tokens/chest.d.ts +0 -47
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/address.d.ts +0 -61
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bool.d.ts +0 -32
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bytes.d.ts +0 -52
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/int.d.ts +0 -56
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/key_hash.d.ts +0 -55
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/mutez.d.ts +0 -53
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/nat.d.ts +0 -55
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/string.d.ts +0 -31
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/timestamp.d.ts +0 -34
- package/dist/types/taquito-michelson-encoder/src/tokens/constant.d.ts +0 -51
- package/dist/types/taquito-michelson-encoder/src/tokens/contract.d.ts +0 -48
- package/dist/types/taquito-michelson-encoder/src/tokens/createToken.d.ts +0 -18
- package/dist/types/taquito-michelson-encoder/src/tokens/key.d.ts +0 -55
- package/dist/types/taquito-michelson-encoder/src/tokens/lambda.d.ts +0 -24
- package/dist/types/taquito-michelson-encoder/src/tokens/list.d.ts +0 -46
- package/dist/types/taquito-michelson-encoder/src/tokens/map.d.ts +0 -47
- package/dist/types/taquito-michelson-encoder/src/tokens/never.d.ts +0 -41
- package/dist/types/taquito-michelson-encoder/src/tokens/operation.d.ts +0 -24
- package/dist/types/taquito-michelson-encoder/src/tokens/option.d.ts +0 -37
- package/dist/types/taquito-michelson-encoder/src/tokens/or.d.ts +0 -53
- package/dist/types/taquito-michelson-encoder/src/tokens/pair.d.ts +0 -50
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-state.d.ts +0 -44
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.d.ts +0 -40
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction.d.ts +0 -40
- package/dist/types/taquito-michelson-encoder/src/tokens/set.d.ts +0 -43
- package/dist/types/taquito-michelson-encoder/src/tokens/signature.d.ts +0 -53
- package/dist/types/taquito-michelson-encoder/src/tokens/ticket-deprecated.d.ts +0 -38
- package/dist/types/taquito-michelson-encoder/src/tokens/ticket.d.ts +0 -38
- package/dist/types/taquito-michelson-encoder/src/tokens/token.d.ts +0 -68
- package/dist/types/taquito-michelson-encoder/src/tokens/tokens.d.ts +0 -36
- package/dist/types/taquito-michelson-encoder/src/tokens/unit.d.ts +0 -34
- package/dist/types/taquito-michelson-encoder/src/version.d.ts +0 -4
- package/dist/types/taquito-rpc/src/opkind.d.ts +0 -45
- package/dist/types/taquito-rpc/src/rpc-client-interface.d.ts +0 -126
- package/dist/types/taquito-rpc/src/rpc-client-modules/rpc-cache.d.ts +0 -473
- package/dist/types/taquito-rpc/src/taquito-rpc.d.ts +0 -483
- package/dist/types/taquito-rpc/src/types.d.ts +0 -2362
- package/dist/types/taquito-rpc/src/utils/utils.d.ts +0 -14
- package/dist/types/taquito-rpc/src/version.d.ts +0 -4
- package/dist/types/taquito-signer/src/bls-key.d.ts +0 -21
- package/dist/types/taquito-signer/src/derivation-tools/ecdsa.d.ts +0 -49
- package/dist/types/taquito-signer/src/derivation-tools/ed25519.d.ts +0 -33
- package/dist/types/taquito-signer/src/derivation-tools/index.d.ts +0 -12
- package/dist/types/taquito-signer/src/derivation-tools/types.d.ts +0 -10
- package/dist/types/taquito-signer/src/derivation-tools/utils.d.ts +0 -1
- package/dist/types/taquito-signer/src/ec-key.d.ts +0 -42
- package/dist/types/taquito-signer/src/ed-key.d.ts +0 -39
- package/dist/types/taquito-signer/src/errors.d.ts +0 -51
- package/dist/types/taquito-signer/src/helpers.d.ts +0 -10
- package/dist/types/taquito-signer/src/in-memory-signer.d.ts +0 -56
- package/dist/types/taquito-signer/src/key-interface.d.ts +0 -37
- package/dist/types/taquito-signer/src/taquito-signer.d.ts +0 -10
- package/dist/types/taquito-signer/src/version.d.ts +0 -4
- package/dist/types/taquito-utils/src/constants.d.ts +0 -78
- package/dist/types/taquito-utils/src/encoding.d.ts +0 -184
- package/dist/types/taquito-utils/src/errors.d.ts +0 -20
- package/dist/types/taquito-utils/src/format.d.ts +0 -4
- package/dist/types/taquito-utils/src/taquito-utils.d.ts +0 -11
- package/dist/types/taquito-utils/src/validators.d.ts +0 -167
- package/dist/types/taquito-utils/src/verify-signature.d.ts +0 -22
- package/dist/types/taquito-utils/src/version.d.ts +0 -4
- package/dist/types/taquito-wallet-connect/src/version.d.ts +0 -4
- /package/dist/lib/{taquito-wallet-connect/src/errors.js → errors.js} +0 -0
- /package/dist/lib/{taquito-wallet-connect/src/types.js → types.js} +0 -0
- /package/dist/types/{taquito-wallet-connect/src/errors.d.ts → errors.d.ts} +0 -0
- /package/dist/types/{taquito-wallet-connect/src/taquito-wallet-connect.d.ts → taquito-wallet-connect.d.ts} +0 -0
- /package/dist/types/{taquito-wallet-connect/src/types.d.ts → types.d.ts} +0 -0
- /package/dist/types/{taquito-http-utils/src/version.d.ts → version.d.ts} +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SaplingTransactionToken = exports.SaplingTransactionValidationError = void 0;
|
|
4
|
-
const token_1 = require("./token");
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* Error that indicates a failure happening when parsing encoding/executing a Sapling Transaction
|
|
8
|
-
*/
|
|
9
|
-
class SaplingTransactionValidationError extends token_1.TokenValidationError {
|
|
10
|
-
constructor(value, token, message) {
|
|
11
|
-
super(value, token, message);
|
|
12
|
-
this.value = value;
|
|
13
|
-
this.token = token;
|
|
14
|
-
this.name = 'SaplingTransactionValidationError';
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.SaplingTransactionValidationError = SaplingTransactionValidationError;
|
|
18
|
-
class SaplingTransactionToken extends token_1.Token {
|
|
19
|
-
constructor(val, idx, fac) {
|
|
20
|
-
super(val, idx, fac);
|
|
21
|
-
this.val = val;
|
|
22
|
-
this.idx = idx;
|
|
23
|
-
this.fac = fac;
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @throws {@link SaplingTransactionValidationError}
|
|
27
|
-
*/
|
|
28
|
-
Execute(_val) {
|
|
29
|
-
throw new SaplingTransactionValidationError(_val, this, `There is no literal value for the sapling_transaction type. Got: ${JSON.stringify(_val)}.`);
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* @throws {@link SaplingTransactionValidationError}
|
|
33
|
-
*/
|
|
34
|
-
validateBytes(val) {
|
|
35
|
-
const bytes = /^(0x|0X)?([0-9a-fA-F]*$)/.exec(val);
|
|
36
|
-
if (bytes && bytes[2].length % 2 === 0) {
|
|
37
|
-
return bytes[2];
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
throw new SaplingTransactionValidationError(val, this, `Invalid bytes: ${JSON.stringify(val)}`);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
convertUint8ArrayToHexString(val) {
|
|
44
|
-
return val.constructor === Uint8Array ? Buffer.from(val).toString('hex') : val;
|
|
45
|
-
}
|
|
46
|
-
Encode(args) {
|
|
47
|
-
let val = args.pop();
|
|
48
|
-
val = this.validateBytes(this.convertUint8ArrayToHexString(val));
|
|
49
|
-
return { bytes: String(val).toString() };
|
|
50
|
-
}
|
|
51
|
-
EncodeObject(val, semantic) {
|
|
52
|
-
val = this.validateBytes(this.convertUint8ArrayToHexString(val));
|
|
53
|
-
if (semantic && semantic[SaplingTransactionToken.prim]) {
|
|
54
|
-
return semantic[SaplingTransactionToken.prim](val);
|
|
55
|
-
}
|
|
56
|
-
return { bytes: String(val).toString() };
|
|
57
|
-
}
|
|
58
|
-
generateSchema() {
|
|
59
|
-
return {
|
|
60
|
-
__michelsonType: SaplingTransactionToken.prim,
|
|
61
|
-
schema: {
|
|
62
|
-
memoSize: this.val.args[0]['int'],
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
67
|
-
if (SaplingTransactionToken.prim === tokenToFind) {
|
|
68
|
-
tokens.push(this);
|
|
69
|
-
}
|
|
70
|
-
return tokens;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.SaplingTransactionToken = SaplingTransactionToken;
|
|
74
|
-
SaplingTransactionToken.prim = 'sapling_transaction';
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetToken = exports.SetValidationError = void 0;
|
|
4
|
-
const token_1 = require("./token");
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* Error that indicates a failure happening when parsing encoding/executing a Set
|
|
8
|
-
*/
|
|
9
|
-
class SetValidationError extends token_1.TokenValidationError {
|
|
10
|
-
constructor(value, token, message) {
|
|
11
|
-
super(value, token, message);
|
|
12
|
-
this.value = value;
|
|
13
|
-
this.token = token;
|
|
14
|
-
this.name = 'SetValidationError';
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.SetValidationError = SetValidationError;
|
|
18
|
-
class SetToken extends token_1.Token {
|
|
19
|
-
constructor(val, idx, fac) {
|
|
20
|
-
super(val, idx, fac);
|
|
21
|
-
this.val = val;
|
|
22
|
-
this.idx = idx;
|
|
23
|
-
this.fac = fac;
|
|
24
|
-
}
|
|
25
|
-
get KeySchema() {
|
|
26
|
-
return this.createToken(this.val.args[0], 0);
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @throws {@link SetValidationError}
|
|
30
|
-
*/
|
|
31
|
-
validate(value) {
|
|
32
|
-
if (!Array.isArray(value)) {
|
|
33
|
-
throw new SetValidationError(value, this, `Value ${JSON.stringify(value)} is not an array`);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* @throws {@link SetValidationError}
|
|
38
|
-
*/
|
|
39
|
-
Encode(args) {
|
|
40
|
-
const val = args.pop();
|
|
41
|
-
this.validate(val);
|
|
42
|
-
return val
|
|
43
|
-
.sort((a, b) => this.KeySchema.compare(a, b))
|
|
44
|
-
.reduce((prev, current) => {
|
|
45
|
-
return [...prev, this.KeySchema.EncodeObject(current)];
|
|
46
|
-
}, []);
|
|
47
|
-
}
|
|
48
|
-
Execute(val, semantics) {
|
|
49
|
-
return val.reduce((prev, current) => {
|
|
50
|
-
return [...prev, this.KeySchema.Execute(current, semantics)];
|
|
51
|
-
}, []);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* @throws {@link SetValidationError}
|
|
55
|
-
*/
|
|
56
|
-
EncodeObject(args, semantic) {
|
|
57
|
-
this.validate(args);
|
|
58
|
-
if (semantic && semantic[SetToken.prim]) {
|
|
59
|
-
return semantic[SetToken.prim](args);
|
|
60
|
-
}
|
|
61
|
-
return args
|
|
62
|
-
.sort((a, b) => this.KeySchema.compare(a, b))
|
|
63
|
-
.reduce((prev, current) => {
|
|
64
|
-
return [...prev, this.KeySchema.EncodeObject(current)];
|
|
65
|
-
}, []);
|
|
66
|
-
}
|
|
67
|
-
generateSchema() {
|
|
68
|
-
return {
|
|
69
|
-
__michelsonType: SetToken.prim,
|
|
70
|
-
schema: this.KeySchema.generateSchema(),
|
|
71
|
-
};
|
|
72
|
-
}
|
|
73
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
74
|
-
if (SetToken.prim === tokenToFind) {
|
|
75
|
-
tokens.push(this);
|
|
76
|
-
}
|
|
77
|
-
this.KeySchema.findAndReturnTokens(tokenToFind, tokens);
|
|
78
|
-
return tokens;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.SetToken = SetToken;
|
|
82
|
-
SetToken.prim = 'set';
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SignatureToken = exports.SignatureValidationError = void 0;
|
|
4
|
-
const token_1 = require("./token");
|
|
5
|
-
const utils_1 = require("@taquito/utils");
|
|
6
|
-
/**
|
|
7
|
-
* @category Error
|
|
8
|
-
* Error that indicates a failure happening when parsing encoding/executing a Signature
|
|
9
|
-
*/
|
|
10
|
-
class SignatureValidationError extends token_1.TokenValidationError {
|
|
11
|
-
constructor(value, token, message) {
|
|
12
|
-
super(value, token, message);
|
|
13
|
-
this.value = value;
|
|
14
|
-
this.token = token;
|
|
15
|
-
this.name = 'SignatureValidationError';
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.SignatureValidationError = SignatureValidationError;
|
|
19
|
-
class SignatureToken extends token_1.ComparableToken {
|
|
20
|
-
constructor(val, idx, fac) {
|
|
21
|
-
super(val, idx, fac);
|
|
22
|
-
this.val = val;
|
|
23
|
-
this.idx = idx;
|
|
24
|
-
this.fac = fac;
|
|
25
|
-
}
|
|
26
|
-
Execute(val) {
|
|
27
|
-
if (val.string) {
|
|
28
|
-
return val.string;
|
|
29
|
-
}
|
|
30
|
-
// TODO decode the signature
|
|
31
|
-
return val.bytes;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @throws {@link SignatureValidationError}
|
|
35
|
-
*/
|
|
36
|
-
validate(value) {
|
|
37
|
-
if ((0, utils_1.validateSignature)(value) !== utils_1.ValidationResult.VALID) {
|
|
38
|
-
throw new SignatureValidationError(value, this, 'Signature is not valid');
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* @throws {@link SignatureValidationError}
|
|
43
|
-
*/
|
|
44
|
-
Encode(args) {
|
|
45
|
-
const val = args.pop();
|
|
46
|
-
this.validate(val);
|
|
47
|
-
return { string: val };
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* @throws {@link SignatureValidationError}
|
|
51
|
-
*/
|
|
52
|
-
EncodeObject(val, semantic) {
|
|
53
|
-
this.validate(val);
|
|
54
|
-
if (semantic && semantic[SignatureToken.prim]) {
|
|
55
|
-
return semantic[SignatureToken.prim](val);
|
|
56
|
-
}
|
|
57
|
-
return { string: val };
|
|
58
|
-
}
|
|
59
|
-
generateSchema() {
|
|
60
|
-
return {
|
|
61
|
-
__michelsonType: SignatureToken.prim,
|
|
62
|
-
schema: SignatureToken.prim,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
ToKey(val) {
|
|
66
|
-
return this.Execute(val);
|
|
67
|
-
}
|
|
68
|
-
ToBigMapKey(val) {
|
|
69
|
-
return {
|
|
70
|
-
key: { string: val },
|
|
71
|
-
type: { prim: SignatureToken.prim },
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
75
|
-
if (SignatureToken.prim === tokenToFind) {
|
|
76
|
-
tokens.push(this);
|
|
77
|
-
}
|
|
78
|
-
return tokens;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.SignatureToken = SignatureToken;
|
|
82
|
-
SignatureToken.prim = 'signature';
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketDeprecatedToken = exports.EncodeTicketDeprecatedError = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
const int_1 = require("./comparable/int");
|
|
6
|
-
const contract_1 = require("./contract");
|
|
7
|
-
const token_1 = require("./token");
|
|
8
|
-
/**
|
|
9
|
-
* @category Error
|
|
10
|
-
* Error that indicates a failure when encoding and sending a ticket to the blockchain
|
|
11
|
-
*/
|
|
12
|
-
class EncodeTicketDeprecatedError extends core_1.TaquitoError {
|
|
13
|
-
constructor() {
|
|
14
|
-
super();
|
|
15
|
-
this.name = 'TicketDeprecatedEncodeError';
|
|
16
|
-
this.message = 'Ticket_deprecated cannot be sent to the blockchain; they are created on-chain';
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.EncodeTicketDeprecatedError = EncodeTicketDeprecatedError;
|
|
20
|
-
const ticketerType = { prim: 'contract' };
|
|
21
|
-
const amountType = { prim: 'int' };
|
|
22
|
-
class TicketDeprecatedToken extends token_1.Token {
|
|
23
|
-
constructor(val, idx, fac) {
|
|
24
|
-
super(val, idx, fac);
|
|
25
|
-
this.val = val;
|
|
26
|
-
this.idx = idx;
|
|
27
|
-
this.fac = fac;
|
|
28
|
-
}
|
|
29
|
-
get valueToken() {
|
|
30
|
-
return this.createToken(this.val.args[0], this.idx);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @throws {@link EncodeTicketDeprecatedError}
|
|
34
|
-
*/
|
|
35
|
-
Encode(_args) {
|
|
36
|
-
throw new EncodeTicketDeprecatedError();
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @throws {@link EncodeTicketDeprecatedError}
|
|
40
|
-
*/
|
|
41
|
-
EncodeObject(args, semantic) {
|
|
42
|
-
if (semantic && semantic[TicketDeprecatedToken.prim]) {
|
|
43
|
-
return semantic[TicketDeprecatedToken.prim](args, this.val);
|
|
44
|
-
}
|
|
45
|
-
throw new EncodeTicketDeprecatedError();
|
|
46
|
-
}
|
|
47
|
-
Execute(val, semantics) {
|
|
48
|
-
if (semantics && semantics[TicketDeprecatedToken.prim]) {
|
|
49
|
-
return semantics[TicketDeprecatedToken.prim](val, this.val);
|
|
50
|
-
}
|
|
51
|
-
const ticketer = this.createToken(ticketerType, this.idx);
|
|
52
|
-
const value = this.valueToken;
|
|
53
|
-
const amount = this.createToken(amountType, this.idx);
|
|
54
|
-
if (undefined === val.args[2] && undefined !== val.args[1].args) {
|
|
55
|
-
return {
|
|
56
|
-
ticketer: ticketer.Execute(val.args[0], semantics),
|
|
57
|
-
value: value.Execute(val.args[1].args[0], semantics),
|
|
58
|
-
amount: amount.Execute(val.args[1].args[1], semantics),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
ticketer: ticketer.Execute(val.args[0], semantics),
|
|
63
|
-
value: value.Execute(val.args[1], semantics),
|
|
64
|
-
amount: amount.Execute(val.args[2], semantics),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
generateSchema() {
|
|
68
|
-
return {
|
|
69
|
-
__michelsonType: TicketDeprecatedToken.prim,
|
|
70
|
-
schema: {
|
|
71
|
-
value: this.valueToken.generateSchema(),
|
|
72
|
-
ticketer: {
|
|
73
|
-
__michelsonType: contract_1.ContractToken.prim,
|
|
74
|
-
schema: contract_1.ContractToken.prim,
|
|
75
|
-
},
|
|
76
|
-
amount: {
|
|
77
|
-
__michelsonType: int_1.IntToken.prim,
|
|
78
|
-
schema: int_1.IntToken.prim,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
84
|
-
if (TicketDeprecatedToken.prim === tokenToFind) {
|
|
85
|
-
tokens.push(this);
|
|
86
|
-
}
|
|
87
|
-
this.valueToken.findAndReturnTokens(tokenToFind, tokens);
|
|
88
|
-
return tokens;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.TicketDeprecatedToken = TicketDeprecatedToken;
|
|
92
|
-
TicketDeprecatedToken.prim = 'ticket_deprecated';
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TicketToken = exports.EncodeTicketError = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
const int_1 = require("./comparable/int");
|
|
6
|
-
const contract_1 = require("./contract");
|
|
7
|
-
const token_1 = require("./token");
|
|
8
|
-
/**
|
|
9
|
-
* @category Error
|
|
10
|
-
* Error that indicates a failure when encoding and sending a ticket to the blockchain
|
|
11
|
-
*/
|
|
12
|
-
class EncodeTicketError extends core_1.TaquitoError {
|
|
13
|
-
constructor() {
|
|
14
|
-
super();
|
|
15
|
-
this.name = 'TicketEncodeError';
|
|
16
|
-
this.message = 'Tickets cannot be sent to the blockchain; they are created on-chain';
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.EncodeTicketError = EncodeTicketError;
|
|
20
|
-
const ticketerType = { prim: 'contract' };
|
|
21
|
-
const amountType = { prim: 'int' };
|
|
22
|
-
class TicketToken extends token_1.Token {
|
|
23
|
-
constructor(val, idx, fac) {
|
|
24
|
-
super(val, idx, fac);
|
|
25
|
-
this.val = val;
|
|
26
|
-
this.idx = idx;
|
|
27
|
-
this.fac = fac;
|
|
28
|
-
}
|
|
29
|
-
get valueToken() {
|
|
30
|
-
return this.createToken(this.val.args[0], this.idx);
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* @throws {@link EncodeTicketError}
|
|
34
|
-
*/
|
|
35
|
-
Encode(_args) {
|
|
36
|
-
throw new EncodeTicketError();
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @throws {@link EncodeTicketError}
|
|
40
|
-
*/
|
|
41
|
-
EncodeObject(args, semantic) {
|
|
42
|
-
if (semantic && semantic[TicketToken.prim]) {
|
|
43
|
-
return semantic[TicketToken.prim](args, this.val);
|
|
44
|
-
}
|
|
45
|
-
throw new EncodeTicketError();
|
|
46
|
-
}
|
|
47
|
-
Execute(val, semantics) {
|
|
48
|
-
if (semantics && semantics[TicketToken.prim]) {
|
|
49
|
-
return semantics[TicketToken.prim](val, this.val);
|
|
50
|
-
}
|
|
51
|
-
const ticketer = this.createToken(ticketerType, this.idx);
|
|
52
|
-
const value = this.valueToken;
|
|
53
|
-
const amount = this.createToken(amountType, this.idx);
|
|
54
|
-
if (undefined === val.args[2] && undefined !== val.args[1].args) {
|
|
55
|
-
return {
|
|
56
|
-
ticketer: ticketer.Execute(val.args[0], semantics),
|
|
57
|
-
value: value.Execute(val.args[1].args[0], semantics),
|
|
58
|
-
amount: amount.Execute(val.args[1].args[1], semantics),
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
return {
|
|
62
|
-
ticketer: ticketer.Execute(val.args[0], semantics),
|
|
63
|
-
value: value.Execute(val.args[1], semantics),
|
|
64
|
-
amount: amount.Execute(val.args[2], semantics),
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
generateSchema() {
|
|
68
|
-
return {
|
|
69
|
-
__michelsonType: TicketToken.prim,
|
|
70
|
-
schema: {
|
|
71
|
-
value: this.valueToken.generateSchema(),
|
|
72
|
-
ticketer: {
|
|
73
|
-
__michelsonType: contract_1.ContractToken.prim,
|
|
74
|
-
schema: contract_1.ContractToken.prim,
|
|
75
|
-
},
|
|
76
|
-
amount: {
|
|
77
|
-
__michelsonType: int_1.IntToken.prim,
|
|
78
|
-
schema: int_1.IntToken.prim,
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
84
|
-
if (TicketToken.prim === tokenToFind) {
|
|
85
|
-
tokens.push(this);
|
|
86
|
-
}
|
|
87
|
-
this.valueToken.findAndReturnTokens(tokenToFind, tokens);
|
|
88
|
-
return tokens;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
exports.TicketToken = TicketToken;
|
|
92
|
-
TicketToken.prim = 'ticket';
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ComparableToken = exports.Token = exports.TokenValidationError = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* Error that indicates a failure when encoding invalid or incorrect data (e.g. if an address is expected but a number is received)
|
|
8
|
-
*/
|
|
9
|
-
class TokenValidationError extends core_1.TaquitoError {
|
|
10
|
-
constructor(value, token, baseMessage) {
|
|
11
|
-
super();
|
|
12
|
-
this.value = value;
|
|
13
|
-
this.token = token;
|
|
14
|
-
this.name = 'TokenValidationError';
|
|
15
|
-
const annot = this.token.annot();
|
|
16
|
-
const annotText = annot ? `[${annot}] ` : '';
|
|
17
|
-
this.message = `${annotText}${baseMessage}`;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.TokenValidationError = TokenValidationError;
|
|
21
|
-
class Token {
|
|
22
|
-
/**
|
|
23
|
-
* Gets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects, returns a value of type {@link FieldNumberingStrategy} that controls how field numbers are calculated
|
|
24
|
-
*/
|
|
25
|
-
static get fieldNumberingStrategy() {
|
|
26
|
-
return Token._fieldNumberingStrategy;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Sets the strategy used for field numbering in Token execute/encode/decode to convert Michelson values to/from javascript objects, accepts a value of type {@link FieldNumberingStrategy} that controls how field numbers are calculated
|
|
30
|
-
*/
|
|
31
|
-
static set fieldNumberingStrategy(value) {
|
|
32
|
-
Token._fieldNumberingStrategy = value;
|
|
33
|
-
}
|
|
34
|
-
constructor(val, idx, fac, parentTokenType) {
|
|
35
|
-
this.val = val;
|
|
36
|
-
this.idx = idx;
|
|
37
|
-
this.fac = fac;
|
|
38
|
-
this.parentTokenType = parentTokenType;
|
|
39
|
-
this.createToken = this.fac;
|
|
40
|
-
}
|
|
41
|
-
typeWithoutAnnotations() {
|
|
42
|
-
const handleMichelsonExpression = (val) => {
|
|
43
|
-
if (typeof val === 'object') {
|
|
44
|
-
if (Array.isArray(val)) {
|
|
45
|
-
const array = val;
|
|
46
|
-
return array.map((item) => handleMichelsonExpression(item));
|
|
47
|
-
}
|
|
48
|
-
const extended = val;
|
|
49
|
-
if (extended.args) {
|
|
50
|
-
return {
|
|
51
|
-
prim: extended.prim,
|
|
52
|
-
args: extended.args.map((x) => handleMichelsonExpression(x)),
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
else {
|
|
56
|
-
return {
|
|
57
|
-
prim: extended.prim,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return val;
|
|
62
|
-
};
|
|
63
|
-
const handleMichelsonExtended = (val) => {
|
|
64
|
-
if (val.args) {
|
|
65
|
-
return {
|
|
66
|
-
prim: val.prim,
|
|
67
|
-
args: val.args.map((x) => handleMichelsonExpression(x)),
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return {
|
|
72
|
-
prim: val.prim,
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
return handleMichelsonExtended(this.val);
|
|
77
|
-
}
|
|
78
|
-
annot() {
|
|
79
|
-
return (Array.isArray(this.val.annots) && this.val.annots.length > 0
|
|
80
|
-
? this.val.annots[0]
|
|
81
|
-
: String(this.idx)).replace(/(%|:)(_Liq_entry_)?/, '');
|
|
82
|
-
}
|
|
83
|
-
hasAnnotations() {
|
|
84
|
-
return Array.isArray(this.val.annots) && this.val.annots.length;
|
|
85
|
-
}
|
|
86
|
-
get tokenVal() {
|
|
87
|
-
return this.val;
|
|
88
|
-
}
|
|
89
|
-
ExtractSignature() {
|
|
90
|
-
return [[this.generateSchema()]];
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
exports.Token = Token;
|
|
94
|
-
Token._fieldNumberingStrategy = 'Latest';
|
|
95
|
-
class ComparableToken extends Token {
|
|
96
|
-
compare(o1, o2) {
|
|
97
|
-
return o1 < o2 ? -1 : o1 > o2 ? 1 : 0;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
exports.ComparableToken = ComparableToken;
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tokens = void 0;
|
|
4
|
-
const pair_1 = require("./pair");
|
|
5
|
-
const nat_1 = require("./comparable/nat");
|
|
6
|
-
const string_1 = require("./comparable/string");
|
|
7
|
-
const bigmap_1 = require("./bigmap");
|
|
8
|
-
const address_1 = require("./comparable/address");
|
|
9
|
-
const map_1 = require("./map");
|
|
10
|
-
const bool_1 = require("./comparable/bool");
|
|
11
|
-
const or_1 = require("./or");
|
|
12
|
-
const contract_1 = require("./contract");
|
|
13
|
-
const list_1 = require("./list");
|
|
14
|
-
const mutez_1 = require("./comparable/mutez");
|
|
15
|
-
const bytes_1 = require("./comparable/bytes");
|
|
16
|
-
const option_1 = require("./option");
|
|
17
|
-
const timestamp_1 = require("./comparable/timestamp");
|
|
18
|
-
const int_1 = require("./comparable/int");
|
|
19
|
-
const unit_1 = require("./unit");
|
|
20
|
-
const key_1 = require("./key");
|
|
21
|
-
const key_hash_1 = require("./comparable/key_hash");
|
|
22
|
-
const signature_1 = require("./signature");
|
|
23
|
-
const lambda_1 = require("./lambda");
|
|
24
|
-
const operation_1 = require("./operation");
|
|
25
|
-
const set_1 = require("./set");
|
|
26
|
-
const chain_id_1 = require("./chain-id");
|
|
27
|
-
const ticket_1 = require("./ticket");
|
|
28
|
-
const ticket_deprecated_1 = require("./ticket-deprecated");
|
|
29
|
-
const never_1 = require("./never");
|
|
30
|
-
const sapling_state_1 = require("./sapling-state");
|
|
31
|
-
const sapling_transaction_1 = require("./sapling-transaction");
|
|
32
|
-
const sapling_transaction_deprecated_1 = require("./sapling-transaction-deprecated");
|
|
33
|
-
const bls12_381_fr_1 = require("./bls12-381-fr");
|
|
34
|
-
const bls12_381_g1_1 = require("./bls12-381-g1");
|
|
35
|
-
const bls12_381_g2_1 = require("./bls12-381-g2");
|
|
36
|
-
const chest_1 = require("./chest");
|
|
37
|
-
const chest_key_1 = require("./chest-key");
|
|
38
|
-
const constant_1 = require("./constant");
|
|
39
|
-
exports.tokens = [
|
|
40
|
-
pair_1.PairToken,
|
|
41
|
-
nat_1.NatToken,
|
|
42
|
-
string_1.StringToken,
|
|
43
|
-
bigmap_1.BigMapToken,
|
|
44
|
-
address_1.AddressToken,
|
|
45
|
-
map_1.MapToken,
|
|
46
|
-
bool_1.BoolToken,
|
|
47
|
-
or_1.OrToken,
|
|
48
|
-
contract_1.ContractToken,
|
|
49
|
-
list_1.ListToken,
|
|
50
|
-
mutez_1.MutezToken,
|
|
51
|
-
bytes_1.BytesToken,
|
|
52
|
-
option_1.OptionToken,
|
|
53
|
-
timestamp_1.TimestampToken,
|
|
54
|
-
int_1.IntToken,
|
|
55
|
-
unit_1.UnitToken,
|
|
56
|
-
key_1.KeyToken,
|
|
57
|
-
key_hash_1.KeyHashToken,
|
|
58
|
-
signature_1.SignatureToken,
|
|
59
|
-
lambda_1.LambdaToken,
|
|
60
|
-
operation_1.OperationToken,
|
|
61
|
-
set_1.SetToken,
|
|
62
|
-
chain_id_1.ChainIDToken,
|
|
63
|
-
ticket_1.TicketToken,
|
|
64
|
-
ticket_deprecated_1.TicketDeprecatedToken,
|
|
65
|
-
never_1.NeverToken,
|
|
66
|
-
sapling_state_1.SaplingStateToken,
|
|
67
|
-
sapling_transaction_1.SaplingTransactionToken,
|
|
68
|
-
sapling_transaction_deprecated_1.SaplingTransactionDeprecatedToken,
|
|
69
|
-
bls12_381_fr_1.Bls12381frToken,
|
|
70
|
-
bls12_381_g1_1.Bls12381g1Token,
|
|
71
|
-
bls12_381_g2_1.Bls12381g2Token,
|
|
72
|
-
chest_1.ChestToken,
|
|
73
|
-
chest_key_1.ChestKeyToken,
|
|
74
|
-
constant_1.GlobalConstantToken,
|
|
75
|
-
];
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnitToken = void 0;
|
|
4
|
-
const token_1 = require("./token");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
|
-
class UnitToken extends token_1.ComparableToken {
|
|
7
|
-
constructor(val, idx, fac) {
|
|
8
|
-
super(val, idx, fac);
|
|
9
|
-
this.val = val;
|
|
10
|
-
this.idx = idx;
|
|
11
|
-
this.fac = fac;
|
|
12
|
-
}
|
|
13
|
-
Encode(args) {
|
|
14
|
-
args.pop();
|
|
15
|
-
return { prim: 'Unit' };
|
|
16
|
-
}
|
|
17
|
-
EncodeObject(val, semantic) {
|
|
18
|
-
if (semantic && semantic[UnitToken.prim]) {
|
|
19
|
-
return semantic[UnitToken.prim](val);
|
|
20
|
-
}
|
|
21
|
-
return { prim: 'Unit' };
|
|
22
|
-
}
|
|
23
|
-
Execute(_val) {
|
|
24
|
-
return constants_1.UnitValue;
|
|
25
|
-
}
|
|
26
|
-
generateSchema() {
|
|
27
|
-
return {
|
|
28
|
-
__michelsonType: UnitToken.prim,
|
|
29
|
-
schema: UnitToken.prim,
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
compare(_val1, _val2) {
|
|
33
|
-
return 0;
|
|
34
|
-
}
|
|
35
|
-
ToKey(_val) {
|
|
36
|
-
return constants_1.UnitValue;
|
|
37
|
-
}
|
|
38
|
-
ToBigMapKey(_val) {
|
|
39
|
-
return {
|
|
40
|
-
key: { prim: 'Unit' },
|
|
41
|
-
type: { prim: UnitToken.prim },
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
findAndReturnTokens(tokenToFind, tokens) {
|
|
45
|
-
if (UnitToken.prim === tokenToFind) {
|
|
46
|
-
tokens.push(this);
|
|
47
|
-
}
|
|
48
|
-
return tokens;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.UnitToken = UnitToken;
|
|
52
|
-
UnitToken.prim = 'unit';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VERSION = void 0;
|
|
4
|
-
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
|
-
exports.VERSION = {
|
|
6
|
-
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
7
|
-
"version": "24.3.0-beta.2"
|
|
8
|
-
};
|