@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,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Casts object/array items to BigNumber
|
|
3
|
-
* @param data input object or array
|
|
4
|
-
* @param keys keys for processing or all items if not defined
|
|
5
|
-
*
|
|
6
|
-
*/
|
|
7
|
-
export declare function castToBigNumber(data: any, keys?: any): object;
|
|
8
|
-
/**
|
|
9
|
-
* Casts object/array BigNumber items to strings for readability
|
|
10
|
-
* @param data input object or array
|
|
11
|
-
* @param keys keys for processing or all items if not defined
|
|
12
|
-
*
|
|
13
|
-
*/
|
|
14
|
-
export declare function castToString(data: any, keys?: any): object;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PublicKey, SigningKeyWithProofOfPossession } from './key-interface';
|
|
2
|
-
import { RawSignResult } from '@taquito/core';
|
|
3
|
-
export declare class BLSKey implements SigningKeyWithProofOfPossession {
|
|
4
|
-
#private;
|
|
5
|
-
constructor(key: string, decrypt?: (k: Uint8Array) => Uint8Array);
|
|
6
|
-
private sk;
|
|
7
|
-
private signDst;
|
|
8
|
-
sign(message: Uint8Array): RawSignResult;
|
|
9
|
-
provePossession(): RawSignResult;
|
|
10
|
-
publicKey(): PublicKey;
|
|
11
|
-
secretKey(): string;
|
|
12
|
-
}
|
|
13
|
-
export declare class BLSPublicKey implements PublicKey {
|
|
14
|
-
#private;
|
|
15
|
-
constructor(src: string | Uint8Array);
|
|
16
|
-
compare(other: PublicKey): number;
|
|
17
|
-
hash(): string;
|
|
18
|
-
bytes(): Uint8Array;
|
|
19
|
-
toProtocol(): Uint8Array;
|
|
20
|
-
toString(): string;
|
|
21
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { ExtendedPrivateKey } from './types';
|
|
2
|
-
import BN from 'bn.js';
|
|
3
|
-
export type CurveName = 'p256' | 'secp256k1';
|
|
4
|
-
export declare class PrivateKey implements ExtendedPrivateKey {
|
|
5
|
-
readonly priv: {
|
|
6
|
-
curve: CurveName;
|
|
7
|
-
secretKey: BN;
|
|
8
|
-
};
|
|
9
|
-
readonly chainCode: Uint8Array;
|
|
10
|
-
readonly keyPair: {
|
|
11
|
-
curve: CurveName;
|
|
12
|
-
secretKey: BN;
|
|
13
|
-
publicKey: Uint8Array;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @param priv { secretKey: BN, curve: 'p256' | 'secp256k1' }
|
|
18
|
-
* @param chainCode slice 32->n HMAC hash key and seedkey (first instance curve default seedKey. after hmac value slice 32->n)
|
|
19
|
-
*/
|
|
20
|
-
constructor(priv: {
|
|
21
|
-
curve: CurveName;
|
|
22
|
-
secretKey: BN;
|
|
23
|
-
}, chainCode: Uint8Array);
|
|
24
|
-
/**
|
|
25
|
-
* @param seedSrc result of Bip39.mnemonicToSeed
|
|
26
|
-
* @param curve known supported curve p256 or secp256k1
|
|
27
|
-
* @returns instance of PrivateKey non-HD keys derived
|
|
28
|
-
* @throws InvalidBitSize | InvalidCurveError | InvalidSeedLengthError
|
|
29
|
-
*/
|
|
30
|
-
static fromSeed(seedSrc: Uint8Array | string, curve: CurveName): PrivateKey;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @param index derivation path item pre-hardened if applicable ie: 44' -> 2^31 + 44
|
|
34
|
-
* @returns child PrivateKey of the current PrivateKey
|
|
35
|
-
*/
|
|
36
|
-
derive(index: number): PrivateKey;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param path pre-hardened (if applicable) derivation path items ie 44'/1729'/0/0 -> 2^31 + 44/2^31 + 1729/0/0
|
|
40
|
-
* @returns final child of the full HD keys derivation
|
|
41
|
-
*/
|
|
42
|
-
derivePath(path: Iterable<number>): PrivateKey;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @returns Uint8Array (if contains a private key)
|
|
46
|
-
* @throws InvalidKeyError
|
|
47
|
-
*/
|
|
48
|
-
bytes(): Uint8Array;
|
|
49
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { ExtendedPrivateKey } from './types';
|
|
2
|
-
export declare class PrivateKey implements ExtendedPrivateKey {
|
|
3
|
-
readonly priv: Uint8Array;
|
|
4
|
-
readonly chainCode: Uint8Array;
|
|
5
|
-
/**
|
|
6
|
-
*
|
|
7
|
-
* @param priv generated keypair 0->32 private key 32->n public key
|
|
8
|
-
* @param chainCode new HMAC hash with new key
|
|
9
|
-
*/
|
|
10
|
-
constructor(priv: Uint8Array, chainCode: Uint8Array);
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param seedSrc result of Bip39.mnemonicToSeed
|
|
14
|
-
* @returns instance of PrivateKey
|
|
15
|
-
* @throws InvalidSeedLengthError
|
|
16
|
-
*/
|
|
17
|
-
static fromSeed(seedSrc: Uint8Array | string): PrivateKey;
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @returns slice(0, 32) of current priv for new seed for next derived priv
|
|
21
|
-
*/
|
|
22
|
-
seed(): Uint8Array;
|
|
23
|
-
/**
|
|
24
|
-
\* @remarks index: current derivation path item ie: 1729'
|
|
25
|
-
* @returns derivation path child of original private key pair
|
|
26
|
-
*/
|
|
27
|
-
derive(index: number): PrivateKey;
|
|
28
|
-
/**
|
|
29
|
-
* @param path array of numbers pre adjusted for hardened paths ie: 44' -> 2^31 + 44
|
|
30
|
-
* @returns final child of full derivation path private key pair
|
|
31
|
-
*/
|
|
32
|
-
derivePath(path: Iterable<number>): PrivateKey;
|
|
33
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export * as ECDSA from './ecdsa';
|
|
2
|
-
export * as Ed25519 from './ed25519';
|
|
3
|
-
export * from './types';
|
|
4
|
-
export declare class Path extends Array<number> {
|
|
5
|
-
static from(iterable: Iterable<number> | ArrayLike<number>): Path;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
8
|
-
* @param s derivation path eg: 44'/1729'/0'/0'
|
|
9
|
-
* @returns applied hardened values
|
|
10
|
-
*/
|
|
11
|
-
static fromString(s: string): Path;
|
|
12
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const Hard = 2147483648;
|
|
2
|
-
export interface ExtendedKey {
|
|
3
|
-
readonly chainCode: Uint8Array;
|
|
4
|
-
derive(index: number): ExtendedKey;
|
|
5
|
-
derivePath(path: Iterable<number>): ExtendedKey;
|
|
6
|
-
}
|
|
7
|
-
export interface ExtendedPrivateKey extends ExtendedKey {
|
|
8
|
-
derive(index: number): ExtendedPrivateKey;
|
|
9
|
-
derivePath(path: number[]): ExtendedPrivateKey;
|
|
10
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseHex(s: string): Uint8Array;
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { SigningKey, PublicKey } from './key-interface';
|
|
2
|
-
import { RawSignResult } from '@taquito/core';
|
|
3
|
-
type Curve = 'p256' | 'secp256k1';
|
|
4
|
-
/**
|
|
5
|
-
* Provide signing logic for elliptic curve based key (tz2, tz3)
|
|
6
|
-
*/
|
|
7
|
-
export declare class ECKey implements SigningKey {
|
|
8
|
-
#private;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param key Encoded private key
|
|
12
|
-
* @param decrypt Decrypt function
|
|
13
|
-
* @throws InvalidKeyError
|
|
14
|
-
*/
|
|
15
|
-
constructor(key: string, decrypt?: (k: Uint8Array) => Uint8Array);
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param bytes Bytes to sign
|
|
19
|
-
* @param bytesHash Blake2b hash of the bytes to sign
|
|
20
|
-
*/
|
|
21
|
-
sign(bytes: Uint8Array): RawSignResult;
|
|
22
|
-
/**
|
|
23
|
-
* @returns Encoded public key
|
|
24
|
-
*/
|
|
25
|
-
publicKey(): PublicKey;
|
|
26
|
-
/**
|
|
27
|
-
* @returns Encoded private key
|
|
28
|
-
*/
|
|
29
|
-
secretKey(): string;
|
|
30
|
-
}
|
|
31
|
-
export declare class ECPublicKey implements PublicKey {
|
|
32
|
-
#private;
|
|
33
|
-
readonly curve: Curve;
|
|
34
|
-
constructor(src: string);
|
|
35
|
-
constructor(src: Uint8Array, curve: Curve);
|
|
36
|
-
compare(other: PublicKey): number;
|
|
37
|
-
hash(): string;
|
|
38
|
-
bytes(compress?: boolean): Uint8Array;
|
|
39
|
-
toProtocol(): Uint8Array;
|
|
40
|
-
toString(): string;
|
|
41
|
-
}
|
|
42
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { SigningKey, PublicKey } from './key-interface';
|
|
2
|
-
import { RawSignResult } from '@taquito/core';
|
|
3
|
-
/**
|
|
4
|
-
* Provide signing logic for ed25519 curve based key (tz1)
|
|
5
|
-
*/
|
|
6
|
-
export declare class EdKey implements SigningKey {
|
|
7
|
-
#private;
|
|
8
|
-
/**
|
|
9
|
-
*
|
|
10
|
-
* @param key Encoded private key
|
|
11
|
-
* @param encrypted Is the private key encrypted
|
|
12
|
-
* @param decrypt Decrypt function
|
|
13
|
-
* @throws InvalidKeyError
|
|
14
|
-
*/
|
|
15
|
-
constructor(key: string, decrypt?: (k: Uint8Array) => Uint8Array);
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param bytes Bytes to sign
|
|
19
|
-
* @param bytesHash Blake2b hash of the bytes to sign
|
|
20
|
-
*/
|
|
21
|
-
sign(bytes: Uint8Array): RawSignResult;
|
|
22
|
-
/**
|
|
23
|
-
* @returns Encoded public key
|
|
24
|
-
*/
|
|
25
|
-
publicKey(): PublicKey;
|
|
26
|
-
/**
|
|
27
|
-
* @returns Encoded private key
|
|
28
|
-
*/
|
|
29
|
-
secretKey(): string;
|
|
30
|
-
}
|
|
31
|
-
export declare class EdPublicKey implements PublicKey {
|
|
32
|
-
#private;
|
|
33
|
-
constructor(src: string | Uint8Array);
|
|
34
|
-
compare(other: PublicKey): number;
|
|
35
|
-
hash(): string;
|
|
36
|
-
bytes(): Uint8Array;
|
|
37
|
-
toProtocol(): Uint8Array;
|
|
38
|
-
toString(): string;
|
|
39
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { ParameterValidationError, UnsupportedActionError } from '@taquito/core';
|
|
2
|
-
/**
|
|
3
|
-
* @category Error
|
|
4
|
-
* Error that indicates an invalid Mnemonic being passed or used
|
|
5
|
-
*/
|
|
6
|
-
export declare class InvalidMnemonicError extends ParameterValidationError {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `new InvalidMnemonicError()` instead. The mnemonic argument is ignored for security reasons.
|
|
9
|
-
*/
|
|
10
|
-
constructor(_mnemonic: string);
|
|
11
|
-
constructor();
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @category Error
|
|
15
|
-
* Error that indicates a curve with incorrect bit size being passed or used
|
|
16
|
-
*/
|
|
17
|
-
export declare class InvalidBitSize extends ParameterValidationError {
|
|
18
|
-
readonly message: string;
|
|
19
|
-
constructor(message: string);
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @category Error
|
|
23
|
-
* Error that indicates an unsupported cureve being passed or used
|
|
24
|
-
*/
|
|
25
|
-
export declare class InvalidCurveError extends ParameterValidationError {
|
|
26
|
-
readonly message: string;
|
|
27
|
-
constructor(message: string);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* @category Error
|
|
31
|
-
* Error that indicates a seed with invalid length being passed or used
|
|
32
|
-
*/
|
|
33
|
-
export declare class InvalidSeedLengthError extends ParameterValidationError {
|
|
34
|
-
readonly seedLength: number;
|
|
35
|
-
constructor(seedLength: number);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* @category Error
|
|
39
|
-
* Error that indicates a feature still under developement
|
|
40
|
-
*/
|
|
41
|
-
export declare class ToBeImplemented extends UnsupportedActionError {
|
|
42
|
-
constructor();
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* @category Error
|
|
46
|
-
* Error that indicates an invalid passphrase being passed or used
|
|
47
|
-
*/
|
|
48
|
-
export declare class InvalidPassphraseError extends ParameterValidationError {
|
|
49
|
-
readonly message: string;
|
|
50
|
-
constructor(message: string);
|
|
51
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type Curves = 'ed25519' | 'secp256k1' | 'p256' | 'bip25519';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param seed bip39.mnemonicToSeed
|
|
5
|
-
* @param derivationPath Tezos Requirement 44'/1729' for HD key address default 44'/1729'/0'/0'
|
|
6
|
-
* @param curve 'ed25519' | 'secp256k1' | 'p256''
|
|
7
|
-
* @returns final Derivation of HD keys tezos Secret key
|
|
8
|
-
* @throws InvalidCurveError | ToBeImplemented
|
|
9
|
-
*/
|
|
10
|
-
export declare const generateSecretKey: (seed: Uint8Array, derivationPath: string, curve: Curves) => string;
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { Curves } from './helpers';
|
|
2
|
-
import { SignResult, RawSignResult, Signer } from '@taquito/core';
|
|
3
|
-
import { PublicKey } from './key-interface';
|
|
4
|
-
export interface FromMnemonicParams {
|
|
5
|
-
mnemonic: string;
|
|
6
|
-
password?: string;
|
|
7
|
-
derivationPath?: string;
|
|
8
|
-
curve?: Curves;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* A local implementation of the signer. Will represent a Tezos account and be able to produce signature in its behalf
|
|
12
|
-
*
|
|
13
|
-
* @remarks If running in production and dealing with tokens that have real value, it is strongly recommended to use a HSM backed signer so that private key material is not stored in memory or on disk
|
|
14
|
-
* @throws InvalidMnemonicError
|
|
15
|
-
*/
|
|
16
|
-
export declare class InMemorySigner implements Signer {
|
|
17
|
-
#private;
|
|
18
|
-
static fromFundraiser(email: string, password: string, mnemonic: string): InMemorySigner;
|
|
19
|
-
static fromSecretKey(key: string, passphrase?: string): Promise<InMemorySigner>;
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* Instantiation of an InMemorySigner instance from a mnemonic
|
|
23
|
-
* @returns InMemorySigner
|
|
24
|
-
* @throws InvalidMnemonicError
|
|
25
|
-
*/
|
|
26
|
-
static fromMnemonic({ mnemonic, password, derivationPath, curve, }: FromMnemonicParams): InMemorySigner;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @param key Encoded private key
|
|
30
|
-
* @param passphrase Passphrase to decrypt the private key if it is encrypted
|
|
31
|
-
* @throws InvalidKeyError
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
constructor(key: string, passphrase?: string);
|
|
35
|
-
/**
|
|
36
|
-
*
|
|
37
|
-
* @param message Bytes to sign
|
|
38
|
-
* @param watermark Watermark to append to the bytes
|
|
39
|
-
*/
|
|
40
|
-
sign(message: string | Uint8Array, watermark?: Uint8Array): Promise<SignResult>;
|
|
41
|
-
provePossession(): Promise<RawSignResult>;
|
|
42
|
-
get canProvePossession(): boolean;
|
|
43
|
-
/**
|
|
44
|
-
* @returns Encoded public key
|
|
45
|
-
*/
|
|
46
|
-
publicKey(): Promise<string>;
|
|
47
|
-
/**
|
|
48
|
-
* @returns Encoded public key hash
|
|
49
|
-
*/
|
|
50
|
-
publicKeyHash(): Promise<string>;
|
|
51
|
-
/**
|
|
52
|
-
* @returns Encoded private key
|
|
53
|
-
*/
|
|
54
|
-
secretKey(): Promise<string>;
|
|
55
|
-
}
|
|
56
|
-
export declare function publicKeyFromString(src: string): PublicKey;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { RawSignResult } from '@taquito/core';
|
|
2
|
-
export interface SigningKey {
|
|
3
|
-
sign(message: Uint8Array): RawSignResult;
|
|
4
|
-
publicKey(): PublicKey;
|
|
5
|
-
secretKey(): string;
|
|
6
|
-
provePossession?: () => RawSignResult;
|
|
7
|
-
}
|
|
8
|
-
export interface SigningKeyWithProofOfPossession extends SigningKey {
|
|
9
|
-
provePossession(): RawSignResult;
|
|
10
|
-
}
|
|
11
|
-
export declare function isPOP(k: SigningKey): k is SigningKeyWithProofOfPossession;
|
|
12
|
-
export interface PublicKey {
|
|
13
|
-
/**
|
|
14
|
-
* Compare two public keys of the same elliptic curve
|
|
15
|
-
* @param other the other PublicKey class to compare to
|
|
16
|
-
* @returns -1 if this public key is less than the other, 0 if they are equal, 1 if this public key is greater than the other
|
|
17
|
-
* @throws InvalidPublicKeyError
|
|
18
|
-
*/
|
|
19
|
-
compare(other: PublicKey): number;
|
|
20
|
-
/**
|
|
21
|
-
* Hash of the public key (tz1, tz2, tz3, tz4 addresses)
|
|
22
|
-
* @returns the hash of the public key
|
|
23
|
-
*/
|
|
24
|
-
hash(): string;
|
|
25
|
-
/**
|
|
26
|
-
* Get the bytes of the public key without prefix
|
|
27
|
-
* @param compress Whether to get the compressed format of the public key
|
|
28
|
-
* @default true
|
|
29
|
-
* @returns the bytes of the public key
|
|
30
|
-
*/
|
|
31
|
-
bytes(compress?: boolean): Uint8Array;
|
|
32
|
-
/**
|
|
33
|
-
* Get the bytes of the public key with prefix
|
|
34
|
-
* @returns the bytes of the public key
|
|
35
|
-
*/
|
|
36
|
-
toProtocol(): Uint8Array;
|
|
37
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module @taquito/signer
|
|
4
|
-
*/
|
|
5
|
-
export * from './in-memory-signer';
|
|
6
|
-
export { VERSION } from './version';
|
|
7
|
-
export * from './derivation-tools';
|
|
8
|
-
export * from './helpers';
|
|
9
|
-
export { InvalidPassphraseError } from './errors';
|
|
10
|
-
export { PublicKey } from './key-interface';
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* base58 name to prefix mapping
|
|
3
|
-
*/
|
|
4
|
-
export declare enum PrefixV2 {
|
|
5
|
-
BlockHash = "B",
|
|
6
|
-
OperationHash = "o",
|
|
7
|
-
OperationListHash = "Lo",
|
|
8
|
-
OperationListListHash = "LLo",
|
|
9
|
-
ProtocolHash = "P",
|
|
10
|
-
ContextHash = "Co",
|
|
11
|
-
BlockMetadataHash = "bm",
|
|
12
|
-
OperationMetadataHash = "r",
|
|
13
|
-
OperationMetadataListHash = "Lr",
|
|
14
|
-
OperationMetadataListListHash = "LLr",
|
|
15
|
-
Ed25519PublicKeyHash = "tz1",
|
|
16
|
-
Secp256k1PublicKeyHash = "tz2",
|
|
17
|
-
P256PublicKeyHash = "tz3",
|
|
18
|
-
ContractHash = "KT1",
|
|
19
|
-
BlindedPublicKeyHash = "btz1",
|
|
20
|
-
BLS12_381PublicKeyHash = "tz4",
|
|
21
|
-
TXRollupAddress = "txr1",
|
|
22
|
-
ZkRollupHash = "epx1",
|
|
23
|
-
ScRollupHash = "scr1",
|
|
24
|
-
SmartRollupHash = "sr1",
|
|
25
|
-
CryptoboxPublicKeyHash = "id",
|
|
26
|
-
Ed25519Seed = "edsk",
|
|
27
|
-
Ed25519PublicKey = "edpk",
|
|
28
|
-
Secp256k1SecretKey = "spsk",
|
|
29
|
-
P256SecretKey = "p2sk",
|
|
30
|
-
BLS12_381SecretKey = "BLsk",
|
|
31
|
-
ValueHash = "vh",
|
|
32
|
-
CycleNonce = "nce",
|
|
33
|
-
ScriptExpr = "expr",
|
|
34
|
-
InboxHash = "txi",
|
|
35
|
-
MessageHash = "txm",
|
|
36
|
-
CommitmentHash = "txc",
|
|
37
|
-
MessageResultHash = "txmr",
|
|
38
|
-
MessageResultListHash = "txM",
|
|
39
|
-
WithdrawListHash = "txw",
|
|
40
|
-
ScRollupStateHash = "scs1",
|
|
41
|
-
ScRollupCommitmentHash = "scc1",
|
|
42
|
-
SmartRollupStateHash = "srs1",
|
|
43
|
-
SmartRollupCommitmentHash = "src1",
|
|
44
|
-
Ed25519EncryptedSeed = "edesk",
|
|
45
|
-
Secp256k1EncryptedSecretKey = "spesk",
|
|
46
|
-
P256EncryptedSecretKey = "p2esk",
|
|
47
|
-
BLS12_381EncryptedSecretKey = "BLesk",
|
|
48
|
-
Secp256k1EncryptedScalar = "seesk",
|
|
49
|
-
Secp256k1PublicKey = "sppk",
|
|
50
|
-
P256PublicKey = "p2pk",
|
|
51
|
-
Secp256k1Scalar = "SSp",
|
|
52
|
-
Secp256k1Element = "GSp",
|
|
53
|
-
Ed25519SecretKey = "_edsk",
|
|
54
|
-
Ed25519Signature = "edsig",
|
|
55
|
-
Secp256k1Signature = "spsig1",
|
|
56
|
-
P256Signature = "p2sig",
|
|
57
|
-
GenericSignature = "sig",
|
|
58
|
-
ChainID = "Net",
|
|
59
|
-
SaplingSpendingKey = "sask",
|
|
60
|
-
EncryptedSaplingSpendingKey = "_sask",
|
|
61
|
-
SaplingAddress = "zet1",
|
|
62
|
-
GenericAggregateSignature = "asig",
|
|
63
|
-
BLS12_381Signature = "BLsig",
|
|
64
|
-
BLS12_381PublicKey = "BLpk",
|
|
65
|
-
SlotHeader = "sh"
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* base58 prefix to bytes mapping
|
|
69
|
-
*/
|
|
70
|
-
export declare const prefixV2: {
|
|
71
|
-
[key in PrefixV2]: Uint8Array;
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* base58 prefix to payload length mapping
|
|
75
|
-
*/
|
|
76
|
-
export declare const payloadLength: {
|
|
77
|
-
[key in PrefixV2]: number;
|
|
78
|
-
};
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module @taquito/utils
|
|
4
|
-
*/
|
|
5
|
-
import { Buffer } from 'buffer';
|
|
6
|
-
import { PrefixV2 } from './constants';
|
|
7
|
-
import BigNumber from 'bignumber.js';
|
|
8
|
-
/**
|
|
9
|
-
* list of prefixes that can be used to decode an address
|
|
10
|
-
*/
|
|
11
|
-
export declare const addressPrefixes: PrefixV2[];
|
|
12
|
-
/**
|
|
13
|
-
* list of prefixes that can be used to decode a public key
|
|
14
|
-
*/
|
|
15
|
-
export declare const publicKeyPrefixes: PrefixV2[];
|
|
16
|
-
/**
|
|
17
|
-
* list of prefixes that can be used to decode a public key hash
|
|
18
|
-
*/
|
|
19
|
-
export declare const publicKeyHashPrefixes: PrefixV2[];
|
|
20
|
-
/**
|
|
21
|
-
* list of prefixes that can be used to decode a signature
|
|
22
|
-
*/
|
|
23
|
-
export declare const signaturePrefixes: PrefixV2[];
|
|
24
|
-
/**
|
|
25
|
-
* Decodes Base58 string, looks for known prefix and strips it
|
|
26
|
-
* @param src Base58 string
|
|
27
|
-
* @returns Payload and prefix
|
|
28
|
-
* @example b58DecodeAndCheckPrefix('tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM') // returns [Uint8Array, PrefixV2.Ed25519PublicKeyHash]
|
|
29
|
-
* @example b58DecodeAndCheckPrefix('tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM', [PrefixV2.Ed25519PublicKeyHash]) // returns [Uint8Array, PrefixV2.Ed25519PublicKeyHash]
|
|
30
|
-
* @example b58DecodeAndCheckPrefix('tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM', [PrefixV2.Ed25519PublicKeyHash], true) // returns Uint8Array
|
|
31
|
-
*/
|
|
32
|
-
export declare function b58DecodeAndCheckPrefix<T extends readonly PrefixV2[]>(src: string, allowed?: T): [Uint8Array, T[number]];
|
|
33
|
-
export declare function b58DecodeAndCheckPrefix<T extends readonly PrefixV2[]>(src: string, allowed: T, payloadOnly: false): [Uint8Array, T[number]];
|
|
34
|
-
export declare function b58DecodeAndCheckPrefix<T extends readonly PrefixV2[]>(src: string, allowed: T, payloadOnly: true): Uint8Array;
|
|
35
|
-
/**
|
|
36
|
-
* Decode a Base58 public key and return its binary representation
|
|
37
|
-
* @param value Value to decode
|
|
38
|
-
* @param fmt optional format of the decoded return value, 'hex' or 'array'
|
|
39
|
-
* @returns string or Uint8Array of bytes
|
|
40
|
-
* @example b58DecodePublicKey('edpkuNjKKT48xBoT5asPrWdmuM1Yw8D93MwgFgVvtca8jb5pstzaCh') // return '0060842d4ba23a9940ef5dcf4404fdaa430cfaaccb5029fad06cb5ea894e4562ae'
|
|
41
|
-
*/
|
|
42
|
-
export declare function b58DecodePublicKey(value: string, fmt?: 'hex'): string;
|
|
43
|
-
export declare function b58DecodePublicKey(value: string, fmt: 'array'): Uint8Array;
|
|
44
|
-
/**
|
|
45
|
-
* Decode a Base58 public key hash and return its binary representation
|
|
46
|
-
* @param value Value to decode
|
|
47
|
-
* @param fmt optional format of the decoded return value, 'hex' or 'array'
|
|
48
|
-
* @returns string or Uint8Array of bytes
|
|
49
|
-
* @example b58DecodePublicKeyHash('tz2MVED1t9Jery77Bwm1m5YhUx8Wp5KWWRQe') // return '0001907d6a7e9f084df840d6e67ffa8db5464f87d4d1'
|
|
50
|
-
*/
|
|
51
|
-
export declare function b58DecodePublicKeyHash(value: string, fmt?: 'hex'): string;
|
|
52
|
-
export declare function b58DecodePublicKeyHash(value: string, fmt: 'array'): Uint8Array;
|
|
53
|
-
/**
|
|
54
|
-
* Decode a Base58 string and assert tz4 type
|
|
55
|
-
* @param value a bls address(tz4) to decode
|
|
56
|
-
* @param fmt optional format of the decoded return value, 'hex' or 'array'
|
|
57
|
-
* @returns string or Uint8Array of bytes
|
|
58
|
-
* @example b58DecodeBlsAddress('tz4QyWfEiv56CVDATV3DT3CDVhPaMKif2Ce8') // return 'af2dc3c40667abc0e89c0ef40171d22aed08d5eb'
|
|
59
|
-
*/
|
|
60
|
-
export declare function b58DecodeBlsAddress(value: string, fmt?: 'hex'): string;
|
|
61
|
-
export declare function b58DecodeBlsAddress(value: string, fmt: 'array'): Uint8Array;
|
|
62
|
-
/**
|
|
63
|
-
* Decode a Base58 contract ID and return its binary representation
|
|
64
|
-
* @param value Value to decode
|
|
65
|
-
* @param fmt optional format of the decoded return value, 'hex' or 'array'
|
|
66
|
-
* @returns string or Uint8Array of bytes
|
|
67
|
-
* @example b58DecodeAddress('tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM') // return '0000e96b9f8b19af9c7ffa0c0480e1977b295850961f'
|
|
68
|
-
*/
|
|
69
|
-
export declare function b58DecodeAddress(value: string, fmt?: 'hex'): string;
|
|
70
|
-
export declare function b58DecodeAddress(value: string, fmt: 'array'): Uint8Array;
|
|
71
|
-
/**
|
|
72
|
-
* Gets Tezos address (PKH) from Public Key
|
|
73
|
-
* @param publicKey Base58 Public Key
|
|
74
|
-
* @returns A string of the Tezos address (PKH) that was derived from the given Public Key
|
|
75
|
-
* @example getPkhfromPk('edpkuNjKKT48xBoT5asPrWdmuM1Yw8D93MwgFgVvtca8jb5pstzaCh') // return 'tz2MVED1t9Jery77Bwm1m5YhUx8Wp5KWWRQe'
|
|
76
|
-
*/
|
|
77
|
-
export declare function getPkhfromPk(publicKey: string): string;
|
|
78
|
-
/**
|
|
79
|
-
* Add the prefix to a hex string or Uint8Array and Base58 encode it
|
|
80
|
-
* @param value Value to Base58 encode
|
|
81
|
-
* @param pre prefix ID to append to the encoded string
|
|
82
|
-
* @example b58Encode('e96b9f8b19af9c7ffa0c0480e1977b295850961f', PrefixV2.Ed25519PublicKeyHash) // returns 'tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM'
|
|
83
|
-
*/
|
|
84
|
-
export declare function b58Encode(value: string | Uint8Array, pre: PrefixV2): string;
|
|
85
|
-
/**
|
|
86
|
-
* Parse binary public key and return Base58 representation
|
|
87
|
-
* @param value Binary key data
|
|
88
|
-
* @returns return prefixed public key
|
|
89
|
-
* @example encodeKey('02033aba7da4a2e7b5dd9f074555c118829aff16213ea1b65859686bd5fcfeaf3616') // return 'p2pk66xmhjiN7LpfrDGFwpxPtJxkLtPjQ6HUxJbKmRbxSR7RMpamDwi'
|
|
90
|
-
*/
|
|
91
|
-
export declare function encodeKey(value: string | Uint8Array): string;
|
|
92
|
-
/**
|
|
93
|
-
* Parse binary public key hash and return Base58 representation
|
|
94
|
-
* @param value Key hash to parse
|
|
95
|
-
* @returns return prefixed public key hash
|
|
96
|
-
* @example encodeKeyHash('0001907d6a7e9f084df840d6e67ffa8db5464f87d4d1') // return 'tz2MVED1t9Jery77Bwm1m5YhUx8Wp5KWWRQe'
|
|
97
|
-
*/
|
|
98
|
-
export declare function encodeKeyHash(value: string | Uint8Array): string;
|
|
99
|
-
/**
|
|
100
|
-
* Parse binary Contract ID and return Base58 representation
|
|
101
|
-
* @param value Address to parse (tz1, tz2, tz3, KT1, or sr1).
|
|
102
|
-
* @example encodeAddress('0000e96b9f8b19af9c7ffa0c0480e1977b295850961f') // return 'tz1gvF4cD2dDtqitL3ZTraggSR1Mju2BKFEM'
|
|
103
|
-
*/
|
|
104
|
-
export declare function encodeAddress(value: string | Uint8Array): string;
|
|
105
|
-
/**
|
|
106
|
-
* Base58 encode an address without predefined prefix
|
|
107
|
-
* @param value Address to base58 encode (tz4) hex dec
|
|
108
|
-
* @returns return address
|
|
109
|
-
* @example encodeBlsAddress('af2dc3c40667abc0e89c0ef40171d22aed08d5eb') // return 'tz4QyWfEiv56CVDATV3DT3CDVhPaMKif2Ce8'
|
|
110
|
-
*/
|
|
111
|
-
export declare function encodeBlsAddress(value: string): string;
|
|
112
|
-
/**
|
|
113
|
-
* convert a fragment of Michelson code in hex string to an 'expr' prefix + base58 encoded BLAKE2b hash string
|
|
114
|
-
* @param value a fragment of Michelson code in hex string
|
|
115
|
-
* @returns return 'expr' prefix + base58 encoded BLAKE2b hash
|
|
116
|
-
* @example encodeExpr('050a000000160000b2e19a9e74440d86c59f13dab8a18ff873e889ea') // return 'exprv6UsC1sN3Fk2XfgcJCL8NCerP5rCGy1PRESZAqr7L2JdzX55EN'
|
|
117
|
-
*/
|
|
118
|
-
export declare function encodeExpr(value: string): string;
|
|
119
|
-
/**
|
|
120
|
-
* convert a signed operation in hex string to an 'op' prefix + base58 encoded BLAKE2b hash string
|
|
121
|
-
* @param value signed operation in hex string
|
|
122
|
-
* @returns return 'op' prefix + base58 encoded BLAKE2b hash
|
|
123
|
-
* @example encodeOpHash('0f185d8a30061e8134c162dbb7a6c3ab8f5fdb153363ccd6149b49a33481156a6c00b2e19a9e74440d86c59f13dab8a18ff873e889eaa304ab05da13000001f1585a7384f36e45fb43dc37e8ce172bced3e05700ff0000000002002110c033f3a990c2e46a3d6054ecc2f74072aae7a34b5ac4d9ce9edc11c2410a97695682108951786f05b361da03b97245dc9897e1955e08b5b8d9e153b0bdeb0d') // return 'opapqvVXmebRTCFd2GQFydr4tJj3V5QocQuTmuhbatcHm4Seo2t'
|
|
124
|
-
*/
|
|
125
|
-
export declare function encodeOpHash(value: string): string;
|
|
126
|
-
/**
|
|
127
|
-
* Convert an hex string to a Uint8Array
|
|
128
|
-
* @param hex Hex string to convert
|
|
129
|
-
* @throws {@link ValueConversionError}
|
|
130
|
-
*/
|
|
131
|
-
export declare function hex2buf(hex: string): Uint8Array;
|
|
132
|
-
/**
|
|
133
|
-
* Merge 2 buffers together
|
|
134
|
-
* @param b1 First buffer
|
|
135
|
-
* @param b2 Second buffer
|
|
136
|
-
*/
|
|
137
|
-
export declare function mergebuf(b1: Uint8Array, b2: Uint8Array): Uint8Array;
|
|
138
|
-
/**
|
|
139
|
-
* Flatten a michelson json representation to an array
|
|
140
|
-
* @param s michelson json
|
|
141
|
-
*/
|
|
142
|
-
export declare function mic2arr(s: any): any;
|
|
143
|
-
/**
|
|
144
|
-
* Convert a Uint8Array to an hex string
|
|
145
|
-
* @param bytes Uint8Array to convert
|
|
146
|
-
*/
|
|
147
|
-
export declare function buf2hex(bytes: ArrayLike<number>): string;
|
|
148
|
-
/**
|
|
149
|
-
* Convert a string to a byte string representation
|
|
150
|
-
* @param str String to convert
|
|
151
|
-
*/
|
|
152
|
-
export declare function stringToBytes(str: string): string;
|
|
153
|
-
/**
|
|
154
|
-
* Convert byte string representation to string
|
|
155
|
-
* @param hex byte string to convert
|
|
156
|
-
*/
|
|
157
|
-
export declare function bytesToString(hex: string): string;
|
|
158
|
-
/**
|
|
159
|
-
* Convert hex string/UintArray/Buffer to bytes
|
|
160
|
-
* @param hex String value to convert to bytes
|
|
161
|
-
*/
|
|
162
|
-
export declare function hex2Bytes(hex: string): Buffer;
|
|
163
|
-
/**
|
|
164
|
-
* Converts a number or Bignumber to hexadecimal string
|
|
165
|
-
* @param val The value that will be converted to a hexadecimal string value
|
|
166
|
-
*/
|
|
167
|
-
export declare function toHexBuf(val: number | BigNumber, bitLength?: number): Buffer<ArrayBuffer>;
|
|
168
|
-
export declare function numToHexBuffer(val: number | BigNumber, bitLength?: number): Buffer<ArrayBuffer>;
|
|
169
|
-
/**
|
|
170
|
-
* Converts a number or BigNumber to a padded hexadecimal string
|
|
171
|
-
* @param val The value that will be converted into a padded hexadecimal string value
|
|
172
|
-
* @param bitLength The length of bits
|
|
173
|
-
*
|
|
174
|
-
*/
|
|
175
|
-
export declare function num2PaddedHex(val: number | BigNumber, bitLength?: number): string;
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* Strips the first 2 characters of a hex string (0x)
|
|
179
|
-
*
|
|
180
|
-
* @param hex string to strip prefix from
|
|
181
|
-
*/
|
|
182
|
-
export declare function stripHexPrefix(hex: string): string;
|
|
183
|
-
export declare function splitAddress(addr: string): [string, string | null];
|
|
184
|
-
export declare function compareArrays(a: ArrayLike<number>, b: ArrayLike<number>): number;
|