@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,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* @packageDocumentation
|
|
4
|
-
* @module @taquito/utils
|
|
5
|
-
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.format = exports.POP_DST = exports.BLS12_381_DST = exports.verifySignature = exports.payloadLength = exports.PrefixV2 = exports.VERSION = void 0;
|
|
22
|
-
// Re-export everything from encoding
|
|
23
|
-
__exportStar(require("./encoding"), exports);
|
|
24
|
-
// Re-export everything from validators
|
|
25
|
-
__exportStar(require("./validators"), exports);
|
|
26
|
-
// Re-export version
|
|
27
|
-
var version_1 = require("./version");
|
|
28
|
-
Object.defineProperty(exports, "VERSION", { enumerable: true, get: function () { return version_1.VERSION; } });
|
|
29
|
-
// Re-export constants
|
|
30
|
-
var constants_1 = require("./constants");
|
|
31
|
-
Object.defineProperty(exports, "PrefixV2", { enumerable: true, get: function () { return constants_1.PrefixV2; } });
|
|
32
|
-
Object.defineProperty(exports, "payloadLength", { enumerable: true, get: function () { return constants_1.payloadLength; } });
|
|
33
|
-
// Re-export from verify-signature
|
|
34
|
-
var verify_signature_1 = require("./verify-signature");
|
|
35
|
-
Object.defineProperty(exports, "verifySignature", { enumerable: true, get: function () { return verify_signature_1.verifySignature; } });
|
|
36
|
-
Object.defineProperty(exports, "BLS12_381_DST", { enumerable: true, get: function () { return verify_signature_1.BLS12_381_DST; } });
|
|
37
|
-
Object.defineProperty(exports, "POP_DST", { enumerable: true, get: function () { return verify_signature_1.POP_DST; } });
|
|
38
|
-
// Re-export errors
|
|
39
|
-
__exportStar(require("./errors"), exports);
|
|
40
|
-
// Re-export format
|
|
41
|
-
var format_1 = require("./format");
|
|
42
|
-
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return format_1.format; } });
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ValidationResult = void 0;
|
|
4
|
-
exports.isValidPrefixedValue = isValidPrefixedValue;
|
|
5
|
-
exports.validateAddress = validateAddress;
|
|
6
|
-
exports.validateChain = validateChain;
|
|
7
|
-
exports.validateContractAddress = validateContractAddress;
|
|
8
|
-
exports.validateKeyHash = validateKeyHash;
|
|
9
|
-
exports.validateSignature = validateSignature;
|
|
10
|
-
exports.validatePublicKey = validatePublicKey;
|
|
11
|
-
exports.validateOperation = validateOperation;
|
|
12
|
-
exports.validateProtocol = validateProtocol;
|
|
13
|
-
exports.validateBlock = validateBlock;
|
|
14
|
-
exports.validateSpendingKey = validateSpendingKey;
|
|
15
|
-
exports.validateSmartRollupAddress = validateSmartRollupAddress;
|
|
16
|
-
const constants_1 = require("./constants");
|
|
17
|
-
const encoding_1 = require("./encoding");
|
|
18
|
-
const core_1 = require("@taquito/core");
|
|
19
|
-
var core_2 = require("@taquito/core");
|
|
20
|
-
Object.defineProperty(exports, "ValidationResult", { enumerable: true, get: function () { return core_2.ValidationResult; } });
|
|
21
|
-
/**
|
|
22
|
-
* Used to check if a value has one of the allowed prefixes.
|
|
23
|
-
* @returns true if the value has one of the allowed prefixes, false otherwise
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
* import { isValidPrefixedValue } from '@taquito/utils';
|
|
27
|
-
* const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'
|
|
28
|
-
* const isValid = isValidPrefixedValue(value, [PrefixV2.Ed25519PublicKeyHash])
|
|
29
|
-
* console.log(isValid) // true
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
function isValidPrefixedValue(value, prefixes) {
|
|
33
|
-
return validatePrefixedValue(value, prefixes) === core_1.ValidationResult.VALID;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* This function is called by the validation functions ([[validateAddress]], [[validateChain]], [[validateContractAddress]], [[validateKeyHash]], [[validateSignature]], [[validatePublicKey]]).
|
|
37
|
-
* Verify if the value can be decoded or return `1` (INVALID_CHECKSUM) / `5` (INVALID_ENCODING), then check if the prefix is valid or allowed or return `0` (NO_PREFIX_MATCHED) / `4` (PREFIX_NOT_ALLOWED)
|
|
38
|
-
* If all checks pass, return `3` (VALID).
|
|
39
|
-
* @param value Value to validate
|
|
40
|
-
* @param prefixes prefix the value should have
|
|
41
|
-
* @returns 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
42
|
-
* @example
|
|
43
|
-
* ```
|
|
44
|
-
* import { validatePrefixedValue } from '@taquito/utils';
|
|
45
|
-
* const value = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'
|
|
46
|
-
* const validation = validatePrefixedValue(value, [PrefixV2.Ed25519PublicKeyHash])
|
|
47
|
-
* console.log(validation) // 3
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
function validatePrefixedValue(value, prefixes) {
|
|
51
|
-
try {
|
|
52
|
-
(0, encoding_1.b58DecodeAndCheckPrefix)(value, prefixes);
|
|
53
|
-
}
|
|
54
|
-
catch (err) {
|
|
55
|
-
if (err instanceof core_1.ParameterValidationError && err.result !== undefined) {
|
|
56
|
-
return err.result;
|
|
57
|
-
}
|
|
58
|
-
return core_1.ValidationResult.OTHER;
|
|
59
|
-
}
|
|
60
|
-
return core_1.ValidationResult.VALID;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Used to check if an address or a contract address is valid.
|
|
64
|
-
*
|
|
65
|
-
* @returns
|
|
66
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```
|
|
70
|
-
* import { validateAddress } from '@taquito/utils';
|
|
71
|
-
* const pkh = 'tz1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'
|
|
72
|
-
* const validation = validateAddress(pkh)
|
|
73
|
-
* console.log(validation)
|
|
74
|
-
* // This example return 3 which correspond to VALID
|
|
75
|
-
* ```
|
|
76
|
-
*/
|
|
77
|
-
function validateAddress(value) {
|
|
78
|
-
const [addr] = (0, encoding_1.splitAddress)(value ?? '');
|
|
79
|
-
return validatePrefixedValue(addr, encoding_1.addressPrefixes);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Used to check if a chain id is valid.
|
|
83
|
-
*
|
|
84
|
-
* @returns
|
|
85
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```
|
|
89
|
-
* import { validateChain } from '@taquito/utils';
|
|
90
|
-
* const chainId = 'NetXdQprcVkpaWU'
|
|
91
|
-
* const validation = validateChain(chainId)
|
|
92
|
-
* console.log(validation)
|
|
93
|
-
* // This example return 3 which correspond to VALID
|
|
94
|
-
* ```
|
|
95
|
-
*/
|
|
96
|
-
function validateChain(value) {
|
|
97
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.ChainID]);
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Used to check if a contract address is valid.
|
|
101
|
-
*
|
|
102
|
-
* @returns
|
|
103
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
104
|
-
*
|
|
105
|
-
* @example
|
|
106
|
-
* ```
|
|
107
|
-
* import { validateContractAddress } from '@taquito/utils';
|
|
108
|
-
* const contractAddress = 'KT1JVErLYTgtY8uGGZ4mso2npTSxqVLDRVbC'
|
|
109
|
-
* const validation = validateContractAddress(contractAddress)
|
|
110
|
-
* console.log(validation)
|
|
111
|
-
* // This example return 3 which correspond to VALID
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
function validateContractAddress(value) {
|
|
115
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.ContractHash]);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Used to check if a key hash is valid.
|
|
119
|
-
*
|
|
120
|
-
* @returns
|
|
121
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
122
|
-
*
|
|
123
|
-
* @example
|
|
124
|
-
* ```
|
|
125
|
-
* import { validateKeyHash } from '@taquito/utils';
|
|
126
|
-
* const keyHashWithoutPrefix = '1L9r8mWmRPndRhuvMCWESLGSVeFzQ9NAWx'
|
|
127
|
-
* const validation = validateKeyHash(keyHashWithoutPrefix)
|
|
128
|
-
* console.log(validation)
|
|
129
|
-
* // This example return 0 which correspond to NO_PREFIX_MATCHED
|
|
130
|
-
* ```
|
|
131
|
-
*/
|
|
132
|
-
function validateKeyHash(value) {
|
|
133
|
-
return validatePrefixedValue(value, encoding_1.publicKeyHashPrefixes);
|
|
134
|
-
}
|
|
135
|
-
/**
|
|
136
|
-
* Used to check if a signature is valid.
|
|
137
|
-
*
|
|
138
|
-
* @returns
|
|
139
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
140
|
-
*
|
|
141
|
-
* @example
|
|
142
|
-
* ```
|
|
143
|
-
* import { validateSignature } from '@taquito/utils';
|
|
144
|
-
* const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'
|
|
145
|
-
* const validation = validateSignature(signature)
|
|
146
|
-
* console.log(validation)
|
|
147
|
-
* // This example return 3 which correspond to VALID
|
|
148
|
-
* ```
|
|
149
|
-
*/
|
|
150
|
-
function validateSignature(value) {
|
|
151
|
-
return validatePrefixedValue(value, encoding_1.signaturePrefixes);
|
|
152
|
-
}
|
|
153
|
-
/**
|
|
154
|
-
* Used to check if a public key is valid.
|
|
155
|
-
*
|
|
156
|
-
* @returns
|
|
157
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
158
|
-
*
|
|
159
|
-
* @example
|
|
160
|
-
* ```
|
|
161
|
-
* import { validatePublicKey } from '@taquito/utils';
|
|
162
|
-
* const publicKey = 'edpkvS5QFv7KRGfa3b87gg9DBpxSm3NpSwnjhUjNBQrRUUR66F7C9g'
|
|
163
|
-
* const validation = validatePublicKey(publicKey)
|
|
164
|
-
* console.log(validation)
|
|
165
|
-
* // This example return 3 which correspond to VALID
|
|
166
|
-
* ```
|
|
167
|
-
*/
|
|
168
|
-
function validatePublicKey(value) {
|
|
169
|
-
return validatePrefixedValue(value, encoding_1.publicKeyPrefixes);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Used to check if an operation hash is valid.
|
|
173
|
-
*
|
|
174
|
-
* @returns
|
|
175
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
176
|
-
*
|
|
177
|
-
* @example
|
|
178
|
-
* ```
|
|
179
|
-
* import { validateOperation } from '@taquito/utils';
|
|
180
|
-
* const operationHash = 'oo6JPEAy8VuMRGaFuMmLNFFGdJgiaKfnmT1CpHJfKP3Ye5ZahiP'
|
|
181
|
-
* const validation = validateOperation(operationHash)
|
|
182
|
-
* console.log(validation)
|
|
183
|
-
* // This example return 3 which correspond to VALID
|
|
184
|
-
* ```
|
|
185
|
-
*/
|
|
186
|
-
function validateOperation(value) {
|
|
187
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.OperationHash]);
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Used to check if a protocol hash is valid.
|
|
191
|
-
*
|
|
192
|
-
* @returns
|
|
193
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
194
|
-
*
|
|
195
|
-
* @example
|
|
196
|
-
* ```
|
|
197
|
-
* import { validateProtocol } from '@taquito/utils';
|
|
198
|
-
* const protocolHash = 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'
|
|
199
|
-
* const validation = validateProtocol(protocolHash)
|
|
200
|
-
* console.log(validation)
|
|
201
|
-
* // This example return 3 which correspond to VALID
|
|
202
|
-
* ```
|
|
203
|
-
*/
|
|
204
|
-
function validateProtocol(value) {
|
|
205
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.ProtocolHash]);
|
|
206
|
-
}
|
|
207
|
-
/**
|
|
208
|
-
* Used to check if a block hash is valid.
|
|
209
|
-
*
|
|
210
|
-
* @returns
|
|
211
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
212
|
-
*
|
|
213
|
-
* @example
|
|
214
|
-
* ```
|
|
215
|
-
* import { validateBlock } from '@taquito/utils';
|
|
216
|
-
* const blockHash = 'PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx'
|
|
217
|
-
* const validation = validateBlock(blockHash)
|
|
218
|
-
* console.log(validation)
|
|
219
|
-
* // This example return 3 which correspond to VALID
|
|
220
|
-
* ```
|
|
221
|
-
*/
|
|
222
|
-
function validateBlock(value) {
|
|
223
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.BlockHash]);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Used to check if a spending key is valid.
|
|
227
|
-
* @returns
|
|
228
|
-
* 0 = NO_PREFIX_MATCHED, 1 = INVALID_CHECKSUM, 2 = INVALID_LENGTH, 3 = VALID, 4 = PREFIX_NOT_ALLOWED, 5 = INVALID_ENCODING, 6 = OTHER,
|
|
229
|
-
*
|
|
230
|
-
*/
|
|
231
|
-
function validateSpendingKey(value) {
|
|
232
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.SaplingSpendingKey]);
|
|
233
|
-
}
|
|
234
|
-
function validateSmartRollupAddress(value) {
|
|
235
|
-
return validatePrefixedValue(value, [constants_1.PrefixV2.SmartRollupHash]);
|
|
236
|
-
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.POP_DST = exports.BLS12_381_DST = void 0;
|
|
4
|
-
exports.verifySignature = verifySignature;
|
|
5
|
-
const ed25519_1 = require("@noble/curves/ed25519");
|
|
6
|
-
const blake2_js_1 = require("@noble/hashes/blake2.js");
|
|
7
|
-
const encoding_1 = require("./encoding");
|
|
8
|
-
const constants_1 = require("./constants");
|
|
9
|
-
const secp256k1_1 = require("@noble/curves/secp256k1");
|
|
10
|
-
const nist_1 = require("@noble/curves/nist");
|
|
11
|
-
const core_1 = require("@taquito/core");
|
|
12
|
-
const bls12_381_1 = require("@noble/curves/bls12-381");
|
|
13
|
-
exports.BLS12_381_DST = 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_';
|
|
14
|
-
exports.POP_DST = 'BLS_POP_BLS12381G2_XMD:SHA-256_SSWU_RO_POP_';
|
|
15
|
-
/**
|
|
16
|
-
* Verify signature of a payload
|
|
17
|
-
* @param message The forged message including the magic byte (11 for block, 12 for preattestation, 13 for attestation, 3 for generic, 5 for the PACK format of michelson) in string or Uint8Array
|
|
18
|
-
* @param publicKey The public key to verify the signature against
|
|
19
|
-
* @param signature The signature to verify
|
|
20
|
-
* @param watermark Optional if not included in the message
|
|
21
|
-
* @param pop Optional if verifying proof of possession signature
|
|
22
|
-
* @returns A boolean indicating if the signature matches
|
|
23
|
-
* @throws InvalidPublicKeyError | InvalidSignatureError | InvalidMessageError
|
|
24
|
-
* @example
|
|
25
|
-
* ```
|
|
26
|
-
* const message = '03d0c10e3ed11d7c6e3357f6ef335bab9e8f2bd54d0ce20c482e241191a6e4b8ce6c01be917311d9ac46959750e405d57e268e2ed9e174a80794fbd504e12a4a000141eb3781afed2f69679ff2bbe1c5375950b0e40d00ff000000005e05050505050507070100000024747a32526773486e74516b72794670707352466261313652546656503539684b72654a4d07070100000024747a315a6672455263414c42776d4171776f6e525859565142445439426a4e6a42484a750001';
|
|
27
|
-
* const pk = 'sppk7c7hkPj47yjYFEHX85q46sFJGw6RBrqoVSHwAJAT4e14KJwzoey';
|
|
28
|
-
* const sig = 'spsig1cdLkp1RLgUHAp13aRFkZ6MQDPp7xCnjAExGL3MBSdMDmT6JgQSX8cufyDgJRM3sinFtiCzLbsyP6d365EHoNevxhT47nx'
|
|
29
|
-
*
|
|
30
|
-
* const response = verifySignature(message, pk, sig);
|
|
31
|
-
* ```
|
|
32
|
-
*
|
|
33
|
-
*/
|
|
34
|
-
function verifySignature(message, publicKey, signature, watermark, pop) {
|
|
35
|
-
const [pk, pre] = (() => {
|
|
36
|
-
try {
|
|
37
|
-
return (0, encoding_1.b58DecodeAndCheckPrefix)(publicKey, encoding_1.publicKeyPrefixes);
|
|
38
|
-
}
|
|
39
|
-
catch (err) {
|
|
40
|
-
if (err instanceof core_1.ParameterValidationError) {
|
|
41
|
-
throw new core_1.InvalidPublicKeyError(publicKey, err.result);
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
throw err;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
})();
|
|
48
|
-
const sig = (() => {
|
|
49
|
-
try {
|
|
50
|
-
const [sig] = (0, encoding_1.b58DecodeAndCheckPrefix)(signature, encoding_1.signaturePrefixes);
|
|
51
|
-
return sig;
|
|
52
|
-
}
|
|
53
|
-
catch (err) {
|
|
54
|
-
if (err instanceof core_1.ParameterValidationError) {
|
|
55
|
-
throw new core_1.InvalidSignatureError(signature, err.result);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
throw err;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
})();
|
|
62
|
-
let msg;
|
|
63
|
-
if (typeof message === 'string') {
|
|
64
|
-
msg = (0, encoding_1.hex2buf)(message);
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
msg = message;
|
|
68
|
-
}
|
|
69
|
-
if (msg.length === 0) {
|
|
70
|
-
throw new core_1.InvalidMessageError((0, encoding_1.buf2hex)(msg), `can't be empty`);
|
|
71
|
-
}
|
|
72
|
-
if (typeof watermark !== 'undefined') {
|
|
73
|
-
msg = (0, encoding_1.mergebuf)(watermark, msg);
|
|
74
|
-
}
|
|
75
|
-
if (pop) {
|
|
76
|
-
return verifyBLSPopSignature(sig, msg, pk);
|
|
77
|
-
}
|
|
78
|
-
else {
|
|
79
|
-
switch (pre) {
|
|
80
|
-
case constants_1.PrefixV2.P256PublicKey:
|
|
81
|
-
return verifyP2Signature(sig, msg, pk);
|
|
82
|
-
case constants_1.PrefixV2.Secp256k1PublicKey:
|
|
83
|
-
return verifySpSignature(sig, msg, pk);
|
|
84
|
-
case constants_1.PrefixV2.Ed25519PublicKey:
|
|
85
|
-
return verifyEdSignature(sig, msg, pk);
|
|
86
|
-
default:
|
|
87
|
-
return verifyBLSSignature(sig, msg, pk);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
function verifyEdSignature(sig, msg, publicKey) {
|
|
92
|
-
const hash = (0, blake2_js_1.blake2b)(msg, { dkLen: 32 });
|
|
93
|
-
try {
|
|
94
|
-
return ed25519_1.ed25519.verify(sig, hash, publicKey);
|
|
95
|
-
}
|
|
96
|
-
catch {
|
|
97
|
-
return false;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
function verifySpSignature(sig, msg, publicKey) {
|
|
101
|
-
const hash = (0, blake2_js_1.blake2b)(msg, { dkLen: 32 });
|
|
102
|
-
try {
|
|
103
|
-
return secp256k1_1.secp256k1.verify(sig, hash, publicKey);
|
|
104
|
-
}
|
|
105
|
-
catch {
|
|
106
|
-
return false;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
function verifyP2Signature(sig, msg, publicKey) {
|
|
110
|
-
const hash = (0, blake2_js_1.blake2b)(msg, { dkLen: 32 });
|
|
111
|
-
try {
|
|
112
|
-
return nist_1.p256.verify(sig, hash, publicKey);
|
|
113
|
-
}
|
|
114
|
-
catch {
|
|
115
|
-
return false;
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const bls = bls12_381_1.bls12_381.longSignatures; // AKA MinPK
|
|
119
|
-
function verifyBLSSignature(sig, msg, publicKey) {
|
|
120
|
-
try {
|
|
121
|
-
const point = bls.hash(msg, exports.BLS12_381_DST);
|
|
122
|
-
return bls.verify(sig, point, publicKey);
|
|
123
|
-
}
|
|
124
|
-
catch {
|
|
125
|
-
return false;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
function verifyBLSPopSignature(sig, msg, publicKey) {
|
|
129
|
-
try {
|
|
130
|
-
const point = bls.hash(msg, exports.POP_DST);
|
|
131
|
-
return bls.verify(sig, point, publicKey);
|
|
132
|
-
}
|
|
133
|
-
catch {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VERSION = void 0;
|
|
4
|
-
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
|
-
exports.VERSION = {
|
|
6
|
-
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
7
|
-
"version": "24.3.0-beta.2"
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VERSION = void 0;
|
|
4
|
-
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
|
-
exports.VERSION = {
|
|
6
|
-
"commitHash": "fb73f1546d3dff2fbba7741ca6006680212bef16",
|
|
7
|
-
"version": "24.3.0-beta.2"
|
|
8
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { OpKind } from '@taquito/rpc';
|
|
2
|
-
export declare const BATCH_KINDS: OpKind[];
|
|
3
|
-
export type BatchKinds = OpKind.ACTIVATION | OpKind.ORIGINATION | OpKind.TRANSACTION | OpKind.DELEGATION | OpKind.REGISTER_GLOBAL_CONSTANT | OpKind.INCREASE_PAID_STORAGE | OpKind.TRANSFER_TICKET | OpKind.SMART_ROLLUP_ADD_MESSAGES | OpKind.SMART_ROLLUP_ORIGINATE | OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE;
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { Context } from '../context';
|
|
2
|
-
import { ContractStorageType, DefaultContractType } from '../contract/contract';
|
|
3
|
-
import { SendParams } from '../contract/contract-methods/contract-method-interface';
|
|
4
|
-
import { ContractProvider } from '../contract/interface';
|
|
5
|
-
import { BatchOperation } from '../operations/batch-operation';
|
|
6
|
-
import { ActivationParams, DelegateParams, OriginateParams, TransferParams, ParamsWithKind, RegisterGlobalConstantParams, TransferTicketParams, IncreasePaidStorageParams, SmartRollupAddMessagesParams, SmartRollupOriginateParams, SmartRollupExecuteOutboxMessageParams, UpdateConsensusKeyParams, UpdateCompanionKeyParams } from '../operations/types';
|
|
7
|
-
import { ContractMethodObject } from '../contract/contract-methods/contract-method-object-param';
|
|
8
|
-
import { EstimationProvider } from '../estimate/estimate-provider-interface';
|
|
9
|
-
import { Provider } from '../provider';
|
|
10
|
-
export { BATCH_KINDS, BatchKinds } from './constants';
|
|
11
|
-
export declare class OperationBatch extends Provider {
|
|
12
|
-
private estimator;
|
|
13
|
-
private operations;
|
|
14
|
-
constructor(context: Context, estimator: EstimationProvider);
|
|
15
|
-
private prepare;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* Add a transaction operation to the batch
|
|
19
|
-
*
|
|
20
|
-
* @param params Transfer operation parameter
|
|
21
|
-
*/
|
|
22
|
-
withTransfer(params: TransferParams): this;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* Transfer tickets from a Tezos address (tz1,tz2 or tz3) to a smart contract address( KT1)
|
|
26
|
-
*
|
|
27
|
-
* @param params Transfer operation parameter
|
|
28
|
-
*/
|
|
29
|
-
withTransferTicket(params: TransferTicketParams): this;
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* Add a contract call to the batch
|
|
33
|
-
*
|
|
34
|
-
* @param params Call a contract method
|
|
35
|
-
* @param options Generic operation parameters
|
|
36
|
-
*/
|
|
37
|
-
withContractCall(params: ContractMethodObject<ContractProvider>, options?: Partial<SendParams>): this;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* Add a delegation operation to the batch
|
|
41
|
-
*
|
|
42
|
-
* @param params Delegation operation parameter
|
|
43
|
-
*/
|
|
44
|
-
withDelegation(params: DelegateParams): this;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* Add an activation operation to the batch
|
|
48
|
-
*
|
|
49
|
-
* @param params Activation operation parameter
|
|
50
|
-
* @throws InvalidKeyHashError
|
|
51
|
-
*/
|
|
52
|
-
withActivation({ pkh, secret }: ActivationParams): this;
|
|
53
|
-
/**
|
|
54
|
-
*
|
|
55
|
-
* Add an origination operation to the batch
|
|
56
|
-
*
|
|
57
|
-
* @param params Origination operation parameter
|
|
58
|
-
*/
|
|
59
|
-
withOrigination<TContract extends DefaultContractType = DefaultContractType>(params: OriginateParams<ContractStorageType<TContract>>): this;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* Add a register a global constant operation to the batch
|
|
63
|
-
*
|
|
64
|
-
* @param params RegisterGlobalConstant operation parameter
|
|
65
|
-
*/
|
|
66
|
-
withRegisterGlobalConstant(params: RegisterGlobalConstantParams): this;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* Add an increase paid storage operation to the batch
|
|
70
|
-
*
|
|
71
|
-
* @param params IncreasePaidStorage operation parameter
|
|
72
|
-
*/
|
|
73
|
-
withIncreasePaidStorage(params: IncreasePaidStorageParams): this;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* Add a update consensus key operation to the batch
|
|
77
|
-
*
|
|
78
|
-
* @param params UpdateConsensusKey operation parameter
|
|
79
|
-
*/
|
|
80
|
-
withUpdateConsensusKey(params: UpdateConsensusKeyParams): this;
|
|
81
|
-
/**
|
|
82
|
-
*
|
|
83
|
-
* Add a update companion key operation to the batch
|
|
84
|
-
*
|
|
85
|
-
* @param params UpdateCompanionKey operation parameter
|
|
86
|
-
*/
|
|
87
|
-
withUpdateCompanionKey(params: UpdateCompanionKeyParams): this;
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* Add a smart rollup add messages operation to the batch
|
|
91
|
-
*
|
|
92
|
-
* @param params Rollup origination operation parameter
|
|
93
|
-
*/
|
|
94
|
-
withSmartRollupAddMessages(params: SmartRollupAddMessagesParams): this;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* Add a smart rollup originate operation to the batch
|
|
98
|
-
*
|
|
99
|
-
* @param params Smart Rollup Originate operation parameter
|
|
100
|
-
*/
|
|
101
|
-
withSmartRollupOriginate(params: SmartRollupOriginateParams): this;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* Add a smart rollup execute outbox message to the batch
|
|
105
|
-
*
|
|
106
|
-
* @param params Smart Rollup Execute Outbox Message operation parameter
|
|
107
|
-
*/
|
|
108
|
-
withSmartRollupExecuteOutboxMessage(params: SmartRollupExecuteOutboxMessageParams): this;
|
|
109
|
-
getRPCOp(param: ParamsWithKind): Promise<import("../operations/types").RPCTransferOperation | import("../operations/types").RPCOriginationOperation | import("../operations/types").RPCDelegateOperation | import("../operations/types").RPCRegisterGlobalConstantOperation | import("../operations/types").RPCIncreasePaidStorageOperation | import("../operations/types").RPCUpdateConsensusKeyOperation | import("../operations/types").RPCUpdateCompanionKeyOperation | import("../operations/types").RPCTransferTicketOperation | import("../operations/types").RPCSmartRollupAddMessagesOperation | import("../operations/types").RPCSmartRollupOriginateOperation | import("../operations/types").RPCSmartRollupOutboxMessageOperation>;
|
|
110
|
-
/**
|
|
111
|
-
*
|
|
112
|
-
* Add a group operation to the batch. Operation will be applied in the order they are in the params array
|
|
113
|
-
*
|
|
114
|
-
* @param params Operations parameter
|
|
115
|
-
* @throws InvalidOperationKindError
|
|
116
|
-
*/
|
|
117
|
-
with(params: ParamsWithKind[]): this;
|
|
118
|
-
/**
|
|
119
|
-
*
|
|
120
|
-
* Forge and Inject the operation batch
|
|
121
|
-
*
|
|
122
|
-
* @param params Optionally specify the source of the operation
|
|
123
|
-
*/
|
|
124
|
-
send(params?: {
|
|
125
|
-
source?: string;
|
|
126
|
-
}): Promise<BatchOperation>;
|
|
127
|
-
}
|
|
128
|
-
export declare class RPCBatchProvider {
|
|
129
|
-
private context;
|
|
130
|
-
private estimator;
|
|
131
|
-
constructor(context: Context, estimator: EstimationProvider);
|
|
132
|
-
/***
|
|
133
|
-
*
|
|
134
|
-
* Batch a group of operation together. Operations will be applied in the order in which they are added to the batch
|
|
135
|
-
*
|
|
136
|
-
* @param params List of operation to batch together
|
|
137
|
-
*/
|
|
138
|
-
batch(params?: ParamsWithKind[]): OperationBatch;
|
|
139
|
-
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
export declare const REVEAL_STORAGE_LIMIT = 0;
|
|
2
|
-
export declare const ORIGINATION_SIZE = 257;
|
|
3
|
-
export declare const COST_PER_BYTE = 250;
|
|
4
|
-
export declare enum Protocols {
|
|
5
|
-
Pt24m4xi = "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",
|
|
6
|
-
PsBABY5H = "PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU",
|
|
7
|
-
PsBabyM1 = "PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS",
|
|
8
|
-
PsCARTHA = "PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb",
|
|
9
|
-
PsDELPH1 = "PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo",
|
|
10
|
-
PtEdo2Zk = "PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA",
|
|
11
|
-
PsFLorena = "PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i",
|
|
12
|
-
PtGRANADs = "PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV",
|
|
13
|
-
PtHangz2 = "PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx",
|
|
14
|
-
PsiThaCa = "PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP",
|
|
15
|
-
Psithaca2 = "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A",
|
|
16
|
-
PtJakart2 = "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY",
|
|
17
|
-
PtKathman = "PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg",
|
|
18
|
-
PtLimaPtL = "PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW",
|
|
19
|
-
PtMumbaii = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc",
|
|
20
|
-
PtMumbai2 = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1",
|
|
21
|
-
PtNairobi = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf",
|
|
22
|
-
ProxfordY = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH",
|
|
23
|
-
PtParisBx = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ",
|
|
24
|
-
PsParisCZ = "PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi",
|
|
25
|
-
PsQuebecn = "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg",
|
|
26
|
-
PsRiotuma = "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7",
|
|
27
|
-
PtSeouLou = "PtSeouLouXkxhg39oWzjxDWaCydNfR3RxCUrNe4Q9Ro8BTehcbh",
|
|
28
|
-
PtTALLiNt = "PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu",
|
|
29
|
-
ProtoALpha = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK"
|
|
30
|
-
}
|
|
31
|
-
export declare const protocols: {
|
|
32
|
-
'004': Protocols[];
|
|
33
|
-
'005': Protocols[];
|
|
34
|
-
'006': Protocols[];
|
|
35
|
-
'007': Protocols[];
|
|
36
|
-
'008': Protocols[];
|
|
37
|
-
'009': Protocols[];
|
|
38
|
-
'010': Protocols[];
|
|
39
|
-
'011': Protocols[];
|
|
40
|
-
'012': Protocols[];
|
|
41
|
-
'013': Protocols[];
|
|
42
|
-
'014': Protocols[];
|
|
43
|
-
'015': Protocols[];
|
|
44
|
-
'016': Protocols[];
|
|
45
|
-
'017': Protocols[];
|
|
46
|
-
'019': Protocols[];
|
|
47
|
-
'020': Protocols[];
|
|
48
|
-
'021': Protocols[];
|
|
49
|
-
'022': Protocols[];
|
|
50
|
-
'023': Protocols[];
|
|
51
|
-
'024': Protocols[];
|
|
52
|
-
'025': Protocols[];
|
|
53
|
-
};
|
|
54
|
-
export declare enum ChainIds {
|
|
55
|
-
MAINNET = "NetXdQprcVkpaWU",
|
|
56
|
-
GHOSTNET = "NetXnHfVqm9iesp",
|
|
57
|
-
SHADOWNET = "NetXsqzbfFenSTS",
|
|
58
|
-
CARTHAGENET = "NetXjD3HPJJjmcd",
|
|
59
|
-
DELPHINET = "NetXm8tYqnMWky1",
|
|
60
|
-
EDONET = "NetXSgo1ZT2DRUG",
|
|
61
|
-
FLORENCENET = "NetXxkAx4woPLyu",
|
|
62
|
-
GRANADANET = "NetXz969SFaFn8k",
|
|
63
|
-
HANGZHOUNET = "NetXZSsxBpMQeAT",
|
|
64
|
-
ITHACANET = "NetXbhmtAbMukLc",
|
|
65
|
-
JAKARTANET2 = "NetXLH1uAxK7CCh",
|
|
66
|
-
KATHMANDUNET = "NetXazhm4yetmff",
|
|
67
|
-
LIMANET = "NetXizpkH94bocH",
|
|
68
|
-
MUMBAINET = "NetXQw6nWSnrJ5t",
|
|
69
|
-
MUMBAINET2 = "NetXgbcrNtXD2yA",
|
|
70
|
-
NAIROBINET = "NetXyuzvDo2Ugzb",
|
|
71
|
-
OXFORDNET2 = "NetXxWsskGahzQB",
|
|
72
|
-
PARISBNET = "NetXo8SqH1c38SS",
|
|
73
|
-
PARISCNET = "NetXXWAHLEvre9b",
|
|
74
|
-
QUEBECNET = "NetXuTeGinLEqxp",
|
|
75
|
-
RIONET = "NetXPdgaoabtBth",
|
|
76
|
-
SEOULNET = "NetXd56aBs1aeW3",
|
|
77
|
-
TALLINNNET = "NetXe8DbhW9A1eS"
|
|
78
|
-
}
|
|
79
|
-
export declare const getRevealGasLimit: (address: string) => number;
|
|
80
|
-
export declare const getRevealFee: (address: string) => number;
|
|
81
|
-
export declare const getRevealFeeInternal: (address: string) => number;
|