@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,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnspecifiedForgerError = exports.ForgingMismatchError = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* Error that indicates CompositeForger.forge() results doesn't match each other
|
|
8
|
-
*/
|
|
9
|
-
class ForgingMismatchError extends core_1.TaquitoError {
|
|
10
|
-
constructor(results) {
|
|
11
|
-
super();
|
|
12
|
-
this.results = results;
|
|
13
|
-
this.name = 'ForgingMismatchError';
|
|
14
|
-
this.message = `Forging mismatch error`;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.ForgingMismatchError = ForgingMismatchError;
|
|
18
|
-
/**
|
|
19
|
-
* @category Error
|
|
20
|
-
* Error that indicates no forger has been configured for CompositeForger
|
|
21
|
-
*/
|
|
22
|
-
class UnspecifiedForgerError extends core_1.TezosToolkitConfigError {
|
|
23
|
-
constructor() {
|
|
24
|
-
super();
|
|
25
|
-
this.name = 'UnspecifiedForgerError';
|
|
26
|
-
this.message =
|
|
27
|
-
'No forger has been configured. Please configure new CompositeForger([rpcForger, localForger]) with your TezosToolkit instance.';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.UnspecifiedForgerError = UnspecifiedForgerError;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RpcForger = void 0;
|
|
4
|
-
class RpcForger {
|
|
5
|
-
constructor(context) {
|
|
6
|
-
this.context = context;
|
|
7
|
-
}
|
|
8
|
-
forge({ branch, contents }) {
|
|
9
|
-
return this.context.rpc.forgeOperations({ branch, contents });
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
exports.RpcForger = RpcForger;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TaquitoLocalForger = void 0;
|
|
4
|
-
const local_forging_1 = require("@taquito/local-forging");
|
|
5
|
-
class TaquitoLocalForger {
|
|
6
|
-
constructor(context) {
|
|
7
|
-
this.context = context;
|
|
8
|
-
}
|
|
9
|
-
async getNextProto() {
|
|
10
|
-
if (!this.context.proto) {
|
|
11
|
-
const nextProto = await this.context.readProvider.getNextProtocol('head');
|
|
12
|
-
this.context.proto = nextProto;
|
|
13
|
-
}
|
|
14
|
-
return this.context.proto;
|
|
15
|
-
}
|
|
16
|
-
async forge({ branch, contents }) {
|
|
17
|
-
const forger = new local_forging_1.LocalForger(await this.getNextProto());
|
|
18
|
-
return forger.forge({ branch, contents });
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
exports.TaquitoLocalForger = TaquitoLocalForger;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultGlobalConstantsProvider = void 0;
|
|
4
|
-
const errors_1 = require("./errors");
|
|
5
|
-
class DefaultGlobalConstantsProvider {
|
|
6
|
-
constructor() {
|
|
7
|
-
this._globalConstantsLibrary = {};
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* Allows to load global constant hashes and their corresponding Michelson JSON values
|
|
12
|
-
*/
|
|
13
|
-
loadGlobalConstant(globalConstant) {
|
|
14
|
-
for (const hash in globalConstant) {
|
|
15
|
-
Object.assign(this._globalConstantsLibrary, {
|
|
16
|
-
[hash]: globalConstant[hash],
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* Retrieve the Michelson value of a global constant based on its hash
|
|
23
|
-
*
|
|
24
|
-
* @param hash a string representing the global constant hash
|
|
25
|
-
* @returns Expr, the JSON Michelson value
|
|
26
|
-
*/
|
|
27
|
-
async getGlobalConstantByHash(hash) {
|
|
28
|
-
const value = this._globalConstantsLibrary[hash];
|
|
29
|
-
if (!value) {
|
|
30
|
-
throw new errors_1.GlobalConstantNotFound(hash);
|
|
31
|
-
}
|
|
32
|
-
return value;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.DefaultGlobalConstantsProvider = DefaultGlobalConstantsProvider;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnconfiguredGlobalConstantsProviderError = exports.GlobalConstantNotFound = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
/**
|
|
6
|
-
* @category Error
|
|
7
|
-
* Error that indicates that a global constant does not exist
|
|
8
|
-
*/
|
|
9
|
-
class GlobalConstantNotFound extends core_1.TaquitoError {
|
|
10
|
-
constructor(hash) {
|
|
11
|
-
super();
|
|
12
|
-
this.hash = hash;
|
|
13
|
-
this.name = 'GlobalConstantNotFound';
|
|
14
|
-
this.message = `Please load the value associated with the constant ${hash} using the loadGlobalConstant method of the DefaultGlobalConstantsProvider.`;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.GlobalConstantNotFound = GlobalConstantNotFound;
|
|
18
|
-
/**
|
|
19
|
-
* @category Error
|
|
20
|
-
* Error that indicates the global constant provider not being configured under TezosToolkit
|
|
21
|
-
*/
|
|
22
|
-
class UnconfiguredGlobalConstantsProviderError extends core_1.TezosToolkitConfigError {
|
|
23
|
-
constructor() {
|
|
24
|
-
super();
|
|
25
|
-
this.name = 'UnconfiguredGlobalConstantsProviderError';
|
|
26
|
-
this.message =
|
|
27
|
-
'No global constants provider has been configured. Please configure one by calling setGlobalConstantsProvider({globalConstantsProvider}) on your TezosToolkit instance.';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.UnconfiguredGlobalConstantsProviderError = UnconfiguredGlobalConstantsProviderError;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NoopGlobalConstantsProvider = void 0;
|
|
4
|
-
const errors_1 = require("./errors");
|
|
5
|
-
class NoopGlobalConstantsProvider {
|
|
6
|
-
async getGlobalConstantByHash(_hash) {
|
|
7
|
-
throw new errors_1.UnconfiguredGlobalConstantsProviderError();
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.NoopGlobalConstantsProvider = NoopGlobalConstantsProvider;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.importKey = importKey;
|
|
4
|
-
const signer_1 = require("@taquito/signer");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* Import a key to sign operation with the side-effect of setting the Tezos instance to use the InMemorySigner provider
|
|
8
|
-
*
|
|
9
|
-
* @remarks The JSON faucets are no longer available on https://teztnets.com/
|
|
10
|
-
* @param toolkit The toolkit instance to attach a signer
|
|
11
|
-
* @param privateKeyOrEmail Key to load in memory
|
|
12
|
-
* @param passphrase If the key is encrypted passphrase to decrypt it
|
|
13
|
-
* @param mnemonic Faucet mnemonic
|
|
14
|
-
* @param secret Faucet secret
|
|
15
|
-
*/
|
|
16
|
-
async function importKey(toolkit, privateKeyOrEmail, passphrase, mnemonic, secret) {
|
|
17
|
-
if (privateKeyOrEmail && passphrase && mnemonic && secret) {
|
|
18
|
-
const signer = signer_1.InMemorySigner.fromFundraiser(privateKeyOrEmail, passphrase, mnemonic);
|
|
19
|
-
toolkit.setProvider({ signer });
|
|
20
|
-
const pkh = await signer.publicKeyHash();
|
|
21
|
-
let op;
|
|
22
|
-
try {
|
|
23
|
-
op = await toolkit.tz.activate(pkh, secret);
|
|
24
|
-
}
|
|
25
|
-
catch (ex) {
|
|
26
|
-
const isInvalidActivationError = ex && ex.body && /Invalid activation/.test(ex.body);
|
|
27
|
-
if (!isInvalidActivationError) {
|
|
28
|
-
throw ex;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
if (op) {
|
|
32
|
-
await op.confirmation();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
// Fallback to regular import
|
|
37
|
-
const signer = await signer_1.InMemorySigner.fromSecretKey(privateKeyOrEmail, passphrase);
|
|
38
|
-
toolkit.setProvider({ signer });
|
|
39
|
-
}
|
|
40
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.formatErrorMessage = formatErrorMessage;
|
|
4
|
-
const http_utils_1 = require("@taquito/http-utils");
|
|
5
|
-
function formatErrorMessage(error, stringToReplace) {
|
|
6
|
-
const body = JSON.parse(error.body);
|
|
7
|
-
if (body[0] && body[0].kind && body[0].msg) {
|
|
8
|
-
const newBody = JSON.stringify({
|
|
9
|
-
kind: body[0].kind,
|
|
10
|
-
id: body[0].id,
|
|
11
|
-
msg: body[0].msg.replace(stringToReplace, ''),
|
|
12
|
-
});
|
|
13
|
-
return new http_utils_1.HttpResponseError(`Http error response: (${error.status}) ${newBody}`, error.status, error.statusText, newBody, error.url);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return error;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RpcInjector = void 0;
|
|
4
|
-
const helper_1 = require("./helper");
|
|
5
|
-
const http_utils_1 = require("@taquito/http-utils");
|
|
6
|
-
class RpcInjector {
|
|
7
|
-
constructor(context) {
|
|
8
|
-
this.context = context;
|
|
9
|
-
}
|
|
10
|
-
async inject(signedOperationBytes) {
|
|
11
|
-
let hash;
|
|
12
|
-
try {
|
|
13
|
-
hash = await this.context.rpc.injectOperation(signedOperationBytes);
|
|
14
|
-
}
|
|
15
|
-
catch (error) {
|
|
16
|
-
const stringToStrip = '. You may want to use --replace to provide adequate fee and replace it';
|
|
17
|
-
if (error instanceof http_utils_1.HttpResponseError && error.message.includes(stringToStrip)) {
|
|
18
|
-
throw (0, helper_1.formatErrorMessage)(error, stringToStrip);
|
|
19
|
-
}
|
|
20
|
-
else {
|
|
21
|
-
throw error;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return hash;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
exports.RpcInjector = RpcInjector;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BallotOperation = void 0;
|
|
4
|
-
const operations_1 = require("./operations");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* BallotOperation provides utility functions to fetch a new operation of kind ballot
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
class BallotOperation extends operations_1.Operation {
|
|
11
|
-
constructor(hash, params, source, raw, results, context) {
|
|
12
|
-
super(hash, raw, results, context);
|
|
13
|
-
this.params = params;
|
|
14
|
-
this.source = source;
|
|
15
|
-
}
|
|
16
|
-
get operationResults() {
|
|
17
|
-
const ballotOp = Array.isArray(this.results) &&
|
|
18
|
-
this.results.find((op) => op.kind === 'ballot');
|
|
19
|
-
const result = ballotOp;
|
|
20
|
-
return result ? result : undefined;
|
|
21
|
-
}
|
|
22
|
-
get period() {
|
|
23
|
-
return this.operationResults?.period;
|
|
24
|
-
}
|
|
25
|
-
get proposal() {
|
|
26
|
-
return this.params.proposal;
|
|
27
|
-
}
|
|
28
|
-
get ballot() {
|
|
29
|
-
return this.params.ballot;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.BallotOperation = BallotOperation;
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.BatchOperation = void 0;
|
|
7
|
-
const bignumber_js_1 = __importDefault(require("bignumber.js"));
|
|
8
|
-
const constants_1 = require("../batch/constants");
|
|
9
|
-
const errors_1 = require("./errors");
|
|
10
|
-
const operations_1 = require("./operations");
|
|
11
|
-
const types_1 = require("./types");
|
|
12
|
-
class BatchOperation extends operations_1.Operation {
|
|
13
|
-
constructor(hash, params, source, raw, results, context) {
|
|
14
|
-
super(hash, raw, results, context);
|
|
15
|
-
this.params = params;
|
|
16
|
-
this.source = source;
|
|
17
|
-
}
|
|
18
|
-
sumProp(arr, prop) {
|
|
19
|
-
return arr.reduce((prev, current) => {
|
|
20
|
-
return prop in current ? Number(current[prop]) + prev : prev;
|
|
21
|
-
}, 0);
|
|
22
|
-
}
|
|
23
|
-
getOriginatedContractAddresses() {
|
|
24
|
-
const originationOpResults = this.results.filter((x) => x.kind === 'origination');
|
|
25
|
-
let addresses = [];
|
|
26
|
-
for (const res of originationOpResults) {
|
|
27
|
-
if (res.metadata.operation_result.originated_contracts) {
|
|
28
|
-
addresses = [...addresses, ...res.metadata.operation_result.originated_contracts];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return addresses;
|
|
32
|
-
}
|
|
33
|
-
get status() {
|
|
34
|
-
return (this.results
|
|
35
|
-
.filter((result) => constants_1.BATCH_KINDS.indexOf(result.kind) !== -1)
|
|
36
|
-
.map((result) => {
|
|
37
|
-
if ((0, types_1.hasMetadataWithResult)(result)) {
|
|
38
|
-
const opResult = result.metadata.operation_result;
|
|
39
|
-
return opResult.status;
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
return 'unknown';
|
|
43
|
-
}
|
|
44
|
-
})[0] || 'unknown');
|
|
45
|
-
}
|
|
46
|
-
get fee() {
|
|
47
|
-
return this.sumProp(this.params, 'fee');
|
|
48
|
-
}
|
|
49
|
-
get gasLimit() {
|
|
50
|
-
return this.sumProp(this.params, 'gas_limit');
|
|
51
|
-
}
|
|
52
|
-
get storageLimit() {
|
|
53
|
-
return this.sumProp(this.params, 'storage_limit');
|
|
54
|
-
}
|
|
55
|
-
get consumedGas() {
|
|
56
|
-
bignumber_js_1.default.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: bignumber_js_1.default.ROUND_UP });
|
|
57
|
-
return new bignumber_js_1.default(this.consumedMilliGas).dividedBy(1000).toString();
|
|
58
|
-
}
|
|
59
|
-
get consumedMilliGas() {
|
|
60
|
-
return String(this.sumProp((0, errors_1.flattenOperationResult)({ contents: this.results }), 'consumed_milligas'));
|
|
61
|
-
}
|
|
62
|
-
get storageDiff() {
|
|
63
|
-
return String(this.sumProp((0, errors_1.flattenOperationResult)({ contents: this.results }), 'paid_storage_size_diff'));
|
|
64
|
-
}
|
|
65
|
-
get errors() {
|
|
66
|
-
return (0, errors_1.flattenErrors)({ contents: this.results });
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
exports.BatchOperation = BatchOperation;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DelegateOperation = void 0;
|
|
4
|
-
const bignumber_js_1 = require("bignumber.js");
|
|
5
|
-
const operations_1 = require("./operations");
|
|
6
|
-
/**
|
|
7
|
-
* Delegation operation provide utility function to fetch newly issued delegation
|
|
8
|
-
*
|
|
9
|
-
* @remarks Currently support only one delegation per operation
|
|
10
|
-
*/
|
|
11
|
-
class DelegateOperation extends operations_1.Operation {
|
|
12
|
-
constructor(hash, params, source, raw, results, context) {
|
|
13
|
-
super(hash, raw, results, context);
|
|
14
|
-
this.params = params;
|
|
15
|
-
this.source = source;
|
|
16
|
-
}
|
|
17
|
-
get operationResults() {
|
|
18
|
-
const delegationOp = Array.isArray(this.results) &&
|
|
19
|
-
this.results.find((op) => op.kind === 'delegation');
|
|
20
|
-
const result = delegationOp && delegationOp.metadata && delegationOp.metadata.operation_result;
|
|
21
|
-
return result ? result : undefined;
|
|
22
|
-
}
|
|
23
|
-
get status() {
|
|
24
|
-
return this.operationResults?.status ?? 'unknown';
|
|
25
|
-
}
|
|
26
|
-
get delegate() {
|
|
27
|
-
return this.params.delegate;
|
|
28
|
-
}
|
|
29
|
-
get isRegisterOperation() {
|
|
30
|
-
return this.delegate === this.source;
|
|
31
|
-
}
|
|
32
|
-
get fee() {
|
|
33
|
-
return Number(this.params.fee);
|
|
34
|
-
}
|
|
35
|
-
get gasLimit() {
|
|
36
|
-
return Number(this.params.gas_limit);
|
|
37
|
-
}
|
|
38
|
-
get storageLimit() {
|
|
39
|
-
return Number(this.params.storage_limit);
|
|
40
|
-
}
|
|
41
|
-
get consumedGas() {
|
|
42
|
-
bignumber_js_1.BigNumber.config({ DECIMAL_PLACES: 0, ROUNDING_MODE: bignumber_js_1.BigNumber.ROUND_UP });
|
|
43
|
-
return this.consumedMilliGas
|
|
44
|
-
? new bignumber_js_1.BigNumber(this.consumedMilliGas).dividedBy(1000).toString()
|
|
45
|
-
: undefined;
|
|
46
|
-
}
|
|
47
|
-
get consumedMilliGas() {
|
|
48
|
-
return this.operationResults?.consumed_milligas;
|
|
49
|
-
}
|
|
50
|
-
get errors() {
|
|
51
|
-
return this.operationResults?.errors;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
exports.DelegateOperation = DelegateOperation;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DrainDelegateOperation = void 0;
|
|
4
|
-
const operations_1 = require("./operations");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* DrainDelegateOperation provides utility functions to fetch a new operation of kind drain_delegate
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
class DrainDelegateOperation extends operations_1.Operation {
|
|
11
|
-
constructor(hash, params, raw, results, context) {
|
|
12
|
-
super(hash, raw, results, context);
|
|
13
|
-
this.params = params;
|
|
14
|
-
}
|
|
15
|
-
get operationResults() {
|
|
16
|
-
const drainDelegateOp = Array.isArray(this.results) &&
|
|
17
|
-
this.results.find((op) => op.kind === 'drain_delegate');
|
|
18
|
-
const result = drainDelegateOp && drainDelegateOp.metadata && drainDelegateOp.metadata.balance_updates;
|
|
19
|
-
return result ? result : undefined;
|
|
20
|
-
}
|
|
21
|
-
get consensusKey() {
|
|
22
|
-
return this.params.consensus_key;
|
|
23
|
-
}
|
|
24
|
-
get delegate() {
|
|
25
|
-
return this.params.delegate;
|
|
26
|
-
}
|
|
27
|
-
get destination() {
|
|
28
|
-
return this.params.destination;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.DrainDelegateOperation = DrainDelegateOperation;
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.InvalidEstimateValueError = exports.OriginationOperationError = exports.flattenErrors = exports.flattenOperationResult = exports.TezosPreapplyFailureError = exports.TezosOperationError = void 0;
|
|
4
|
-
const core_1 = require("@taquito/core");
|
|
5
|
-
const types_1 = require("./types");
|
|
6
|
-
const isErrorWithMessage = (error) => {
|
|
7
|
-
return 'with' in error;
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* @category Error
|
|
11
|
-
* Generic tezos error that will be thrown when a mistake occurs when doing an operation; more details here https://tezos.gitlab.io/api/errors.html
|
|
12
|
-
*/
|
|
13
|
-
class TezosOperationError extends core_1.RpcError {
|
|
14
|
-
constructor(errors, errorDetails, operationsWithResults) {
|
|
15
|
-
super();
|
|
16
|
-
this.errors = errors;
|
|
17
|
-
this.errorDetails = errorDetails;
|
|
18
|
-
this.operationsWithResults = operationsWithResults;
|
|
19
|
-
this.name = 'TezosOperationError';
|
|
20
|
-
// Last error is 'often' the one with more detail
|
|
21
|
-
this.lastError = errors[errors.length - 1];
|
|
22
|
-
this.message = `(${this.kind}) ${this.id}`;
|
|
23
|
-
if (isErrorWithMessage(this.lastError)) {
|
|
24
|
-
if (this.lastError.with.string) {
|
|
25
|
-
this.message = this.lastError.with.string;
|
|
26
|
-
}
|
|
27
|
-
else if (this.lastError.with.int) {
|
|
28
|
-
this.message = this.lastError.with.int;
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
this.message = JSON.stringify(this.lastError.with);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
get id() {
|
|
36
|
-
return this.lastError.id;
|
|
37
|
-
}
|
|
38
|
-
get kind() {
|
|
39
|
-
return this.lastError.kind;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.TezosOperationError = TezosOperationError;
|
|
43
|
-
/**
|
|
44
|
-
* @category Error
|
|
45
|
-
* Tezos error that will be thrown when a mistake happens during the preapply stage
|
|
46
|
-
*/
|
|
47
|
-
class TezosPreapplyFailureError extends Error {
|
|
48
|
-
constructor(result) {
|
|
49
|
-
super();
|
|
50
|
-
this.result = result;
|
|
51
|
-
this.name = 'TezosPreapplyFailureError';
|
|
52
|
-
this.message = 'Preapply returned an unexpected result';
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
exports.TezosPreapplyFailureError = TezosPreapplyFailureError;
|
|
56
|
-
// Flatten all operation content results and internal operation results into a single array
|
|
57
|
-
// Some cases where we can have multiple operation results or internal operation results are:
|
|
58
|
-
// - When an operation includes a reveal operation
|
|
59
|
-
// - When an operation is made using the batch API
|
|
60
|
-
// - Smart contract call can contains internal operation results when they call other smart contract internally or originate contracts
|
|
61
|
-
const flattenOperationResult = (response) => {
|
|
62
|
-
const results = Array.isArray(response) ? response : [response];
|
|
63
|
-
const returnedResults = [];
|
|
64
|
-
for (let i = 0; i < results.length; i++) {
|
|
65
|
-
for (let j = 0; j < results[i].contents.length; j++) {
|
|
66
|
-
const content = results[i].contents[j];
|
|
67
|
-
if ((0, types_1.hasMetadataWithResult)(content) && 'fee' in content) {
|
|
68
|
-
returnedResults.push({
|
|
69
|
-
fee: content.fee,
|
|
70
|
-
...content.metadata.operation_result,
|
|
71
|
-
});
|
|
72
|
-
if (Array.isArray(content.metadata.internal_operation_results)) {
|
|
73
|
-
content.metadata.internal_operation_results.forEach((x) => returnedResults.push(x.result));
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return returnedResults;
|
|
79
|
-
};
|
|
80
|
-
exports.flattenOperationResult = flattenOperationResult;
|
|
81
|
-
/***
|
|
82
|
-
* Flatten all error from preapply response (including internal error)
|
|
83
|
-
*/
|
|
84
|
-
const flattenErrors = (response, status = 'failed') => {
|
|
85
|
-
const results = Array.isArray(response) ? response : [response];
|
|
86
|
-
let errors = [];
|
|
87
|
-
// Transaction that do not fail will be backtracked in case one failure occur
|
|
88
|
-
for (let i = 0; i < results.length; i++) {
|
|
89
|
-
for (let j = 0; j < results[i].contents.length; j++) {
|
|
90
|
-
const content = results[i].contents[j];
|
|
91
|
-
if ((0, types_1.hasMetadata)(content)) {
|
|
92
|
-
if ((0, types_1.hasMetadataWithResult)(content) &&
|
|
93
|
-
content.metadata.operation_result.status === status) {
|
|
94
|
-
errors = errors.concat(content.metadata.operation_result.errors || []);
|
|
95
|
-
}
|
|
96
|
-
if ((0, types_1.hasMetadataWithInternalOperationResult)(content) &&
|
|
97
|
-
Array.isArray(content.metadata.internal_operation_results)) {
|
|
98
|
-
for (const internalResult of content.metadata.internal_operation_results) {
|
|
99
|
-
if ('result' in internalResult && internalResult.result.status === status) {
|
|
100
|
-
errors = errors.concat(internalResult.result.errors || []);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
return errors;
|
|
108
|
-
};
|
|
109
|
-
exports.flattenErrors = flattenErrors;
|
|
110
|
-
/**
|
|
111
|
-
* @category Error
|
|
112
|
-
* Error that indicates a general failure happening during an origination operation.
|
|
113
|
-
*/
|
|
114
|
-
class OriginationOperationError extends core_1.TaquitoError {
|
|
115
|
-
constructor(message) {
|
|
116
|
-
super();
|
|
117
|
-
this.message = message;
|
|
118
|
-
this.name = 'OriginationOperationError';
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
exports.OriginationOperationError = OriginationOperationError;
|
|
122
|
-
/**
|
|
123
|
-
* @category Error
|
|
124
|
-
* Error that indicates an invalid estimate value being passed
|
|
125
|
-
*/
|
|
126
|
-
class InvalidEstimateValueError extends core_1.ParameterValidationError {
|
|
127
|
-
constructor(message) {
|
|
128
|
-
super();
|
|
129
|
-
this.message = message;
|
|
130
|
-
this.name = 'InvalidEstimateValueError';
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
exports.InvalidEstimateValueError = InvalidEstimateValueError;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IncreasePaidStorageOperation = void 0;
|
|
4
|
-
const operations_1 = require("./operations");
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* IncreasePaidStorageOperation provides utility functions to fetch a new operation of kind increase_paid_storage
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
class IncreasePaidStorageOperation extends operations_1.Operation {
|
|
11
|
-
constructor(hash, params, source, raw, results, context) {
|
|
12
|
-
super(hash, raw, results, context);
|
|
13
|
-
this.params = params;
|
|
14
|
-
this.source = source;
|
|
15
|
-
}
|
|
16
|
-
get operationResults() {
|
|
17
|
-
const increasePaidStorageOp = Array.isArray(this.results) &&
|
|
18
|
-
this.results.find((op) => op.kind === 'increase_paid_storage');
|
|
19
|
-
const result = increasePaidStorageOp &&
|
|
20
|
-
increasePaidStorageOp.metadata &&
|
|
21
|
-
increasePaidStorageOp.metadata.operation_result;
|
|
22
|
-
return result ? result : undefined;
|
|
23
|
-
}
|
|
24
|
-
get status() {
|
|
25
|
-
return this.operationResults?.status ?? 'unknown';
|
|
26
|
-
}
|
|
27
|
-
get fee() {
|
|
28
|
-
return Number(this.params.fee);
|
|
29
|
-
}
|
|
30
|
-
get gasLimit() {
|
|
31
|
-
return Number(this.params.gas_limit);
|
|
32
|
-
}
|
|
33
|
-
get storageLimit() {
|
|
34
|
-
return Number(this.params.storage_limit);
|
|
35
|
-
}
|
|
36
|
-
get errors() {
|
|
37
|
-
return this.operationResults?.errors;
|
|
38
|
-
}
|
|
39
|
-
get consumedMilliGas() {
|
|
40
|
-
return this.operationResults?.consumed_milligas;
|
|
41
|
-
}
|
|
42
|
-
get amount() {
|
|
43
|
-
return this.params.amount;
|
|
44
|
-
}
|
|
45
|
-
get destination() {
|
|
46
|
-
return this.params.destination;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.IncreasePaidStorageOperation = IncreasePaidStorageOperation;
|