@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
package/dist/lib/{taquito-wallet-connect/src/taquito-wallet-connect.js → taquito-wallet-connect.js}
RENAMED
|
@@ -17,12 +17,9 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
17
17
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
22
|
-
};
|
|
23
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
21
|
exports.WalletConnect = void 0;
|
|
25
|
-
const sign_client_1 =
|
|
22
|
+
const sign_client_1 = require("@walletconnect/sign-client");
|
|
26
23
|
const modal_1 = require("@walletconnect/modal");
|
|
27
24
|
const taquito_1 = require("@taquito/taquito");
|
|
28
25
|
const utils_1 = require("@walletconnect/utils");
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "24.3.0-beta.
|
|
6
|
+
"commitHash": "a312cd3f4fc0ab0fb3351bfffe6ad855772cb077",
|
|
7
|
+
"version": "24.3.0-beta.3"
|
|
8
8
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/wallet-connect",
|
|
3
|
-
"version": "24.3.0-beta.
|
|
3
|
+
"version": "24.3.0-beta.3",
|
|
4
4
|
"description": "WalletConnect integration for Taquito applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"taquito",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"module": "dist/taquito-wallet-connect.es6.js",
|
|
15
15
|
"typings": "dist/types/taquito-wallet-connect.d.ts",
|
|
16
16
|
"files": [
|
|
17
|
-
"signature.json",
|
|
18
17
|
"dist"
|
|
19
18
|
],
|
|
20
19
|
"publishConfig": {
|
|
@@ -56,7 +55,7 @@
|
|
|
56
55
|
]
|
|
57
56
|
},
|
|
58
57
|
"dependencies": {
|
|
59
|
-
"@taquito/taquito": "^24.3.0-beta.
|
|
58
|
+
"@taquito/taquito": "^24.3.0-beta.3",
|
|
60
59
|
"@walletconnect/modal": "^2.7.0",
|
|
61
60
|
"@walletconnect/sign-client": "^2.23.9",
|
|
62
61
|
"@walletconnect/types": "^2.23.9",
|
|
@@ -64,14 +63,13 @@
|
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@types/bluebird": "^3.5.42",
|
|
67
|
-
"@types/chrome": "0.
|
|
66
|
+
"@types/chrome": "0.1.40",
|
|
68
67
|
"@types/node": "^22.0.0",
|
|
69
68
|
"@types/pino": "^7.0.5",
|
|
70
69
|
"@types/ws": "^8.5.12",
|
|
71
70
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
72
71
|
"@typescript-eslint/parser": "^6.21.0",
|
|
73
72
|
"colors": "^1.4.0",
|
|
74
|
-
"coveralls": "^3.1.1",
|
|
75
73
|
"cross-env": "^7.0.3",
|
|
76
74
|
"eslint": "^8.57.0",
|
|
77
75
|
"lint-staged": "^15.2.7",
|
|
@@ -80,10 +78,10 @@
|
|
|
80
78
|
"prompt": "^1.3.0",
|
|
81
79
|
"replace-in-file": "^8.1.0",
|
|
82
80
|
"rimraf": "^6.0.1",
|
|
83
|
-
"rollup": "^4.
|
|
81
|
+
"rollup": "^4.60.1",
|
|
84
82
|
"rollup-plugin-json": "^4.0.0",
|
|
85
83
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
86
|
-
"rollup-plugin-typescript2": "^0.
|
|
84
|
+
"rollup-plugin-typescript2": "^0.37.0",
|
|
87
85
|
"shelljs": "^0.8.5",
|
|
88
86
|
"ts-node": "^10.9.2",
|
|
89
87
|
"ts-toolbelt": "^9.6.0",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BATCH_KINDS = void 0;
|
|
4
|
-
const rpc_1 = require("@taquito/rpc");
|
|
5
|
-
exports.BATCH_KINDS = [
|
|
6
|
-
rpc_1.OpKind.ACTIVATION,
|
|
7
|
-
rpc_1.OpKind.ORIGINATION,
|
|
8
|
-
rpc_1.OpKind.TRANSACTION,
|
|
9
|
-
rpc_1.OpKind.DELEGATION,
|
|
10
|
-
rpc_1.OpKind.REGISTER_GLOBAL_CONSTANT,
|
|
11
|
-
rpc_1.OpKind.INCREASE_PAID_STORAGE,
|
|
12
|
-
rpc_1.OpKind.TRANSFER_TICKET,
|
|
13
|
-
rpc_1.OpKind.SMART_ROLLUP_ADD_MESSAGES,
|
|
14
|
-
rpc_1.OpKind.SMART_ROLLUP_ORIGINATE,
|
|
15
|
-
rpc_1.OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE,
|
|
16
|
-
];
|
|
@@ -1,327 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RPCBatchProvider = exports.OperationBatch = exports.BATCH_KINDS = void 0;
|
|
4
|
-
const prepare_1 = require("../contract/prepare");
|
|
5
|
-
const batch_operation_1 = require("../operations/batch-operation");
|
|
6
|
-
const rpc_1 = require("@taquito/rpc");
|
|
7
|
-
const utils_1 = require("@taquito/utils");
|
|
8
|
-
const core_1 = require("@taquito/core");
|
|
9
|
-
const provider_1 = require("../provider");
|
|
10
|
-
const prepare_2 = require("../prepare");
|
|
11
|
-
var constants_1 = require("./constants");
|
|
12
|
-
Object.defineProperty(exports, "BATCH_KINDS", { enumerable: true, get: function () { return constants_1.BATCH_KINDS; } });
|
|
13
|
-
class OperationBatch extends provider_1.Provider {
|
|
14
|
-
constructor(context, estimator) {
|
|
15
|
-
super(context);
|
|
16
|
-
this.estimator = estimator;
|
|
17
|
-
this.operations = [];
|
|
18
|
-
this.prepare = new prepare_2.PrepareProvider(this.context);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* Add a transaction operation to the batch
|
|
23
|
-
*
|
|
24
|
-
* @param params Transfer operation parameter
|
|
25
|
-
*/
|
|
26
|
-
withTransfer(params) {
|
|
27
|
-
const toValidation = (0, utils_1.validateAddress)(params.to);
|
|
28
|
-
if (params.amount < 0) {
|
|
29
|
-
throw new core_1.InvalidAmountError(params.amount.toString());
|
|
30
|
-
}
|
|
31
|
-
if (toValidation !== utils_1.ValidationResult.VALID) {
|
|
32
|
-
throw new core_1.InvalidAddressError(params.to, toValidation);
|
|
33
|
-
}
|
|
34
|
-
this.operations.push({ kind: rpc_1.OpKind.TRANSACTION, ...params });
|
|
35
|
-
return this;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* Transfer tickets from a Tezos address (tz1,tz2 or tz3) to a smart contract address( KT1)
|
|
40
|
-
*
|
|
41
|
-
* @param params Transfer operation parameter
|
|
42
|
-
*/
|
|
43
|
-
withTransferTicket(params) {
|
|
44
|
-
const destinationValidation = (0, utils_1.validateAddress)(params.destination);
|
|
45
|
-
if (destinationValidation !== utils_1.ValidationResult.VALID) {
|
|
46
|
-
throw new core_1.InvalidAddressError(params.destination, destinationValidation);
|
|
47
|
-
}
|
|
48
|
-
this.operations.push({ kind: rpc_1.OpKind.TRANSFER_TICKET, ...params });
|
|
49
|
-
return this;
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* Add a contract call to the batch
|
|
54
|
-
*
|
|
55
|
-
* @param params Call a contract method
|
|
56
|
-
* @param options Generic operation parameters
|
|
57
|
-
*/
|
|
58
|
-
withContractCall(params, options = {}) {
|
|
59
|
-
return this.withTransfer(params.toTransferParams(options));
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* Add a delegation operation to the batch
|
|
64
|
-
*
|
|
65
|
-
* @param params Delegation operation parameter
|
|
66
|
-
*/
|
|
67
|
-
withDelegation(params) {
|
|
68
|
-
const sourceValidation = (0, utils_1.validateAddress)(params.source ?? '');
|
|
69
|
-
if (params.source && sourceValidation !== utils_1.ValidationResult.VALID) {
|
|
70
|
-
throw new core_1.InvalidAddressError(params.source, sourceValidation);
|
|
71
|
-
}
|
|
72
|
-
const delegateValidation = (0, utils_1.validateAddress)(params.delegate ?? '');
|
|
73
|
-
if (params.delegate && delegateValidation !== utils_1.ValidationResult.VALID) {
|
|
74
|
-
throw new core_1.InvalidAddressError(params.delegate, delegateValidation);
|
|
75
|
-
}
|
|
76
|
-
this.operations.push({ kind: rpc_1.OpKind.DELEGATION, ...params });
|
|
77
|
-
return this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* Add an activation operation to the batch
|
|
82
|
-
*
|
|
83
|
-
* @param params Activation operation parameter
|
|
84
|
-
* @throws InvalidKeyHashError
|
|
85
|
-
*/
|
|
86
|
-
withActivation({ pkh, secret }) {
|
|
87
|
-
const pkhValidation = (0, utils_1.validateKeyHash)(pkh);
|
|
88
|
-
if (pkhValidation !== utils_1.ValidationResult.VALID) {
|
|
89
|
-
throw new core_1.InvalidKeyHashError(pkh, pkhValidation);
|
|
90
|
-
}
|
|
91
|
-
this.operations.push({ kind: rpc_1.OpKind.ACTIVATION, pkh, secret });
|
|
92
|
-
return this;
|
|
93
|
-
}
|
|
94
|
-
/**
|
|
95
|
-
*
|
|
96
|
-
* Add an origination operation to the batch
|
|
97
|
-
*
|
|
98
|
-
* @param params Origination operation parameter
|
|
99
|
-
*/
|
|
100
|
-
withOrigination(params) {
|
|
101
|
-
this.operations.push({ kind: rpc_1.OpKind.ORIGINATION, ...params });
|
|
102
|
-
return this;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* Add a register a global constant operation to the batch
|
|
107
|
-
*
|
|
108
|
-
* @param params RegisterGlobalConstant operation parameter
|
|
109
|
-
*/
|
|
110
|
-
withRegisterGlobalConstant(params) {
|
|
111
|
-
this.operations.push({ kind: rpc_1.OpKind.REGISTER_GLOBAL_CONSTANT, ...params });
|
|
112
|
-
return this;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
*
|
|
116
|
-
* Add an increase paid storage operation to the batch
|
|
117
|
-
*
|
|
118
|
-
* @param params IncreasePaidStorage operation parameter
|
|
119
|
-
*/
|
|
120
|
-
withIncreasePaidStorage(params) {
|
|
121
|
-
this.operations.push({ kind: rpc_1.OpKind.INCREASE_PAID_STORAGE, ...params });
|
|
122
|
-
return this;
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
*
|
|
126
|
-
* Add a update consensus key operation to the batch
|
|
127
|
-
*
|
|
128
|
-
* @param params UpdateConsensusKey operation parameter
|
|
129
|
-
*/
|
|
130
|
-
withUpdateConsensusKey(params) {
|
|
131
|
-
const [, pkPrefix] = (0, utils_1.b58DecodeAndCheckPrefix)(params.pk, utils_1.publicKeyPrefixes);
|
|
132
|
-
if (pkPrefix === utils_1.PrefixV2.BLS12_381PublicKey) {
|
|
133
|
-
if (!params.proof) {
|
|
134
|
-
throw new core_1.InvalidProofError('Proof is required to set a bls account as consensus key ');
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
if (params.proof) {
|
|
139
|
-
throw new core_1.ProhibitedActionError('Proof field is only allowed for a bls account as consensus key');
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
this.operations.push({ kind: rpc_1.OpKind.UPDATE_CONSENSUS_KEY, ...params });
|
|
143
|
-
return this;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
*
|
|
147
|
-
* Add a update companion key operation to the batch
|
|
148
|
-
*
|
|
149
|
-
* @param params UpdateCompanionKey operation parameter
|
|
150
|
-
*/
|
|
151
|
-
withUpdateCompanionKey(params) {
|
|
152
|
-
const [, pkPrefix] = (0, utils_1.b58DecodeAndCheckPrefix)(params.pk, utils_1.publicKeyPrefixes);
|
|
153
|
-
if (pkPrefix !== utils_1.PrefixV2.BLS12_381PublicKey) {
|
|
154
|
-
throw new core_1.ProhibitedActionError('companion key must be a bls account');
|
|
155
|
-
}
|
|
156
|
-
if (!params.proof) {
|
|
157
|
-
throw new core_1.InvalidProofError('Proof is required to set a bls account as companion key ');
|
|
158
|
-
}
|
|
159
|
-
this.operations.push({ kind: rpc_1.OpKind.UPDATE_COMPANION_KEY, ...params });
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* Add a smart rollup add messages operation to the batch
|
|
165
|
-
*
|
|
166
|
-
* @param params Rollup origination operation parameter
|
|
167
|
-
*/
|
|
168
|
-
withSmartRollupAddMessages(params) {
|
|
169
|
-
this.operations.push({ kind: rpc_1.OpKind.SMART_ROLLUP_ADD_MESSAGES, ...params });
|
|
170
|
-
return this;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* Add a smart rollup originate operation to the batch
|
|
175
|
-
*
|
|
176
|
-
* @param params Smart Rollup Originate operation parameter
|
|
177
|
-
*/
|
|
178
|
-
withSmartRollupOriginate(params) {
|
|
179
|
-
this.operations.push({ kind: rpc_1.OpKind.SMART_ROLLUP_ORIGINATE, ...params });
|
|
180
|
-
return this;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* Add a smart rollup execute outbox message to the batch
|
|
185
|
-
*
|
|
186
|
-
* @param params Smart Rollup Execute Outbox Message operation parameter
|
|
187
|
-
*/
|
|
188
|
-
withSmartRollupExecuteOutboxMessage(params) {
|
|
189
|
-
this.operations.push({ kind: rpc_1.OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE, ...params });
|
|
190
|
-
return this;
|
|
191
|
-
}
|
|
192
|
-
async getRPCOp(param) {
|
|
193
|
-
switch (param.kind) {
|
|
194
|
-
case rpc_1.OpKind.TRANSACTION:
|
|
195
|
-
return (0, prepare_1.createTransferOperation)({
|
|
196
|
-
...param,
|
|
197
|
-
});
|
|
198
|
-
case rpc_1.OpKind.ORIGINATION:
|
|
199
|
-
return (0, prepare_1.createOriginationOperation)(await this.context.parser.prepareCodeOrigination({
|
|
200
|
-
...param,
|
|
201
|
-
}));
|
|
202
|
-
case rpc_1.OpKind.DELEGATION:
|
|
203
|
-
return (0, prepare_1.createSetDelegateOperation)({
|
|
204
|
-
...param,
|
|
205
|
-
});
|
|
206
|
-
case rpc_1.OpKind.REGISTER_GLOBAL_CONSTANT:
|
|
207
|
-
return (0, prepare_1.createRegisterGlobalConstantOperation)({
|
|
208
|
-
...param,
|
|
209
|
-
});
|
|
210
|
-
case rpc_1.OpKind.INCREASE_PAID_STORAGE:
|
|
211
|
-
return (0, prepare_1.createIncreasePaidStorageOperation)({
|
|
212
|
-
...param,
|
|
213
|
-
});
|
|
214
|
-
case rpc_1.OpKind.UPDATE_CONSENSUS_KEY:
|
|
215
|
-
return (0, prepare_1.createUpdateConsensusKeyOperation)({
|
|
216
|
-
...param,
|
|
217
|
-
});
|
|
218
|
-
case rpc_1.OpKind.UPDATE_COMPANION_KEY:
|
|
219
|
-
return (0, prepare_1.createUpdateCompanionKeyOperation)({
|
|
220
|
-
...param,
|
|
221
|
-
});
|
|
222
|
-
case rpc_1.OpKind.TRANSFER_TICKET:
|
|
223
|
-
return (0, prepare_1.createTransferTicketOperation)({
|
|
224
|
-
...param,
|
|
225
|
-
});
|
|
226
|
-
case rpc_1.OpKind.SMART_ROLLUP_ADD_MESSAGES:
|
|
227
|
-
return (0, prepare_1.createSmartRollupAddMessagesOperation)({
|
|
228
|
-
...param,
|
|
229
|
-
});
|
|
230
|
-
case rpc_1.OpKind.SMART_ROLLUP_ORIGINATE:
|
|
231
|
-
return (0, prepare_1.createSmartRollupOriginateOperation)({
|
|
232
|
-
...param,
|
|
233
|
-
});
|
|
234
|
-
case rpc_1.OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE:
|
|
235
|
-
return (0, prepare_1.createSmartRollupExecuteOutboxMessageOperation)({
|
|
236
|
-
...param,
|
|
237
|
-
});
|
|
238
|
-
default:
|
|
239
|
-
throw new core_1.InvalidOperationKindError(JSON.stringify(param.kind));
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
/**
|
|
243
|
-
*
|
|
244
|
-
* Add a group operation to the batch. Operation will be applied in the order they are in the params array
|
|
245
|
-
*
|
|
246
|
-
* @param params Operations parameter
|
|
247
|
-
* @throws InvalidOperationKindError
|
|
248
|
-
*/
|
|
249
|
-
with(params) {
|
|
250
|
-
for (const param of params) {
|
|
251
|
-
switch (param.kind) {
|
|
252
|
-
case rpc_1.OpKind.TRANSACTION:
|
|
253
|
-
this.withTransfer(param);
|
|
254
|
-
break;
|
|
255
|
-
case rpc_1.OpKind.ORIGINATION:
|
|
256
|
-
this.withOrigination(param);
|
|
257
|
-
break;
|
|
258
|
-
case rpc_1.OpKind.DELEGATION:
|
|
259
|
-
this.withDelegation(param);
|
|
260
|
-
break;
|
|
261
|
-
case rpc_1.OpKind.ACTIVATION:
|
|
262
|
-
this.withActivation(param);
|
|
263
|
-
break;
|
|
264
|
-
case rpc_1.OpKind.REGISTER_GLOBAL_CONSTANT:
|
|
265
|
-
this.withRegisterGlobalConstant(param);
|
|
266
|
-
break;
|
|
267
|
-
case rpc_1.OpKind.INCREASE_PAID_STORAGE:
|
|
268
|
-
this.withIncreasePaidStorage(param);
|
|
269
|
-
break;
|
|
270
|
-
case rpc_1.OpKind.TRANSFER_TICKET:
|
|
271
|
-
this.withTransferTicket(param);
|
|
272
|
-
break;
|
|
273
|
-
case rpc_1.OpKind.SMART_ROLLUP_ADD_MESSAGES:
|
|
274
|
-
this.withSmartRollupAddMessages(param);
|
|
275
|
-
break;
|
|
276
|
-
case rpc_1.OpKind.SMART_ROLLUP_ORIGINATE:
|
|
277
|
-
this.withSmartRollupOriginate(param);
|
|
278
|
-
break;
|
|
279
|
-
case rpc_1.OpKind.SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE:
|
|
280
|
-
this.withSmartRollupExecuteOutboxMessage(param);
|
|
281
|
-
break;
|
|
282
|
-
default:
|
|
283
|
-
throw new core_1.InvalidOperationKindError(JSON.stringify(param.kind));
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
return this;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
*
|
|
290
|
-
* Forge and Inject the operation batch
|
|
291
|
-
*
|
|
292
|
-
* @param params Optionally specify the source of the operation
|
|
293
|
-
*/
|
|
294
|
-
async send(params) {
|
|
295
|
-
const publicKeyHash = await this.signer.publicKeyHash();
|
|
296
|
-
const source = (params && params.source) || publicKeyHash;
|
|
297
|
-
const estimates = await this.estimator.batch(this.operations);
|
|
298
|
-
if (estimates.length !== this.operations.length) {
|
|
299
|
-
estimates.shift();
|
|
300
|
-
}
|
|
301
|
-
const preparedOp = await this.prepare.batch(this.operations, estimates);
|
|
302
|
-
const opBytes = await this.forge(preparedOp);
|
|
303
|
-
const { hash, context, forgedBytes, opResponse } = await this.signAndInject(opBytes);
|
|
304
|
-
return new batch_operation_1.BatchOperation(hash, preparedOp.opOb.contents, source, forgedBytes, opResponse, context);
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
exports.OperationBatch = OperationBatch;
|
|
308
|
-
class RPCBatchProvider {
|
|
309
|
-
constructor(context, estimator) {
|
|
310
|
-
this.context = context;
|
|
311
|
-
this.estimator = estimator;
|
|
312
|
-
}
|
|
313
|
-
/***
|
|
314
|
-
*
|
|
315
|
-
* Batch a group of operation together. Operations will be applied in the order in which they are added to the batch
|
|
316
|
-
*
|
|
317
|
-
* @param params List of operation to batch together
|
|
318
|
-
*/
|
|
319
|
-
batch(params) {
|
|
320
|
-
const batch = new OperationBatch(this.context, this.estimator);
|
|
321
|
-
if (Array.isArray(params)) {
|
|
322
|
-
batch.with(params);
|
|
323
|
-
}
|
|
324
|
-
return batch;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
exports.RPCBatchProvider = RPCBatchProvider;
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRevealFeeInternal = exports.getRevealFee = exports.getRevealGasLimit = exports.ChainIds = exports.protocols = exports.Protocols = exports.COST_PER_BYTE = exports.ORIGINATION_SIZE = exports.REVEAL_STORAGE_LIMIT = void 0;
|
|
4
|
-
// value is based on octez-client reveal operation gasLimit of each address type in Tallinn Protocol
|
|
5
|
-
const REVEAL_GAS_LIMIT = {
|
|
6
|
-
TZ1: 171,
|
|
7
|
-
TZ2: 157,
|
|
8
|
-
TZ3: 447,
|
|
9
|
-
TZ4: 3252,
|
|
10
|
-
};
|
|
11
|
-
// value is based on octez-client reveal operation fee of each address type in Tallinn Protocol
|
|
12
|
-
const REVEAL_FEE = {
|
|
13
|
-
TZ1: 278,
|
|
14
|
-
TZ2: 277,
|
|
15
|
-
TZ3: 306,
|
|
16
|
-
TZ4: 736,
|
|
17
|
-
};
|
|
18
|
-
// value is based on octez-client reveal operation storageLimit of all address type in Tallinn Protocol
|
|
19
|
-
exports.REVEAL_STORAGE_LIMIT = 0;
|
|
20
|
-
// protocol constants in Tallinn Protocol
|
|
21
|
-
// NOTE: When updating constants here, also check:
|
|
22
|
-
// website/src/config/tezos-constants.mjs (documentation constants, versioned by doc version)
|
|
23
|
-
exports.ORIGINATION_SIZE = 257;
|
|
24
|
-
// protocol constants in Tallinn Protocol
|
|
25
|
-
exports.COST_PER_BYTE = 250;
|
|
26
|
-
var Protocols;
|
|
27
|
-
(function (Protocols) {
|
|
28
|
-
Protocols["Pt24m4xi"] = "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd";
|
|
29
|
-
Protocols["PsBABY5H"] = "PsBABY5HQTSkA4297zNHfsZNKtxULfL18y95qb3m53QJiXGmrbU";
|
|
30
|
-
Protocols["PsBabyM1"] = "PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS";
|
|
31
|
-
Protocols["PsCARTHA"] = "PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb";
|
|
32
|
-
Protocols["PsDELPH1"] = "PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo";
|
|
33
|
-
Protocols["PtEdo2Zk"] = "PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA";
|
|
34
|
-
Protocols["PsFLorena"] = "PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i";
|
|
35
|
-
Protocols["PtGRANADs"] = "PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV";
|
|
36
|
-
Protocols["PtHangz2"] = "PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx";
|
|
37
|
-
Protocols["PsiThaCa"] = "PsiThaCaT47Zboaw71QWScM8sXeMM7bbQFncK9FLqYc6EKdpjVP";
|
|
38
|
-
Protocols["Psithaca2"] = "Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A";
|
|
39
|
-
Protocols["PtJakart2"] = "PtJakart2xVj7pYXJBXrqHgd82rdkLey5ZeeGwDgPp9rhQUbSqY";
|
|
40
|
-
Protocols["PtKathman"] = "PtKathmankSpLLDALzWw7CGD2j2MtyveTwboEYokqUCP4a1LxMg";
|
|
41
|
-
Protocols["PtLimaPtL"] = "PtLimaPtLMwfNinJi9rCfDPWea8dFgTZ1MeJ9f1m2SRic6ayiwW";
|
|
42
|
-
Protocols["PtMumbaii"] = "PtMumbaiiFFEGbew1rRjzSPyzRbA51Tm3RVZL5suHPxSZYDhCEc";
|
|
43
|
-
Protocols["PtMumbai2"] = "PtMumbai2TmsJHNGRkD8v8YDbtao7BLUC3wjASn1inAKLFCjaH1";
|
|
44
|
-
Protocols["PtNairobi"] = "PtNairobiyssHuh87hEhfVBGCVrK3WnS8Z2FT4ymB5tAa4r1nQf";
|
|
45
|
-
Protocols["ProxfordY"] = "ProxfordYmVfjWnRcgjWH36fW6PArwqykTFzotUxRs6gmTcZDuH";
|
|
46
|
-
Protocols["PtParisBx"] = "PtParisBxoLz5gzMmn3d9WBQNoPSZakgnkMC2VNuQ3KXfUtUQeZ";
|
|
47
|
-
Protocols["PsParisCZ"] = "PsParisCZo7KAh1Z1smVd9ZMZ1HHn5gkzbM94V3PLCpknFWhUAi";
|
|
48
|
-
Protocols["PsQuebecn"] = "PsQuebecnLByd3JwTiGadoG4nGWi3HYiLXUjkibeFV8dCFeVMUg";
|
|
49
|
-
Protocols["PsRiotuma"] = "PsRiotumaAMotcRoDWW1bysEhQy2n1M5fy8JgRp8jjRfHGmfeA7";
|
|
50
|
-
Protocols["PtSeouLou"] = "PtSeouLouXkxhg39oWzjxDWaCydNfR3RxCUrNe4Q9Ro8BTehcbh";
|
|
51
|
-
Protocols["PtTALLiNt"] = "PtTALLiNtPec7mE7yY4m3k26J8Qukef3E3ehzhfXgFZKGtDdAXu";
|
|
52
|
-
Protocols["ProtoALpha"] = "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK";
|
|
53
|
-
})(Protocols || (exports.Protocols = Protocols = {}));
|
|
54
|
-
exports.protocols = {
|
|
55
|
-
'004': [Protocols.Pt24m4xi],
|
|
56
|
-
'005': [Protocols.PsBABY5H, Protocols.PsBabyM1],
|
|
57
|
-
'006': [Protocols.PsCARTHA],
|
|
58
|
-
'007': [Protocols.PsDELPH1],
|
|
59
|
-
'008': [Protocols.PtEdo2Zk], // edonet v2
|
|
60
|
-
'009': [Protocols.PsFLorena],
|
|
61
|
-
'010': [Protocols.PtGRANADs],
|
|
62
|
-
'011': [Protocols.PtHangz2], // hangzhou v2,
|
|
63
|
-
'012': [Protocols.PsiThaCa, Protocols.Psithaca2],
|
|
64
|
-
'013': [Protocols.PtJakart2],
|
|
65
|
-
'014': [Protocols.PtKathman],
|
|
66
|
-
'015': [Protocols.PtLimaPtL],
|
|
67
|
-
'016': [Protocols.PtMumbai2], // mumbai v2
|
|
68
|
-
'017': [Protocols.PtNairobi],
|
|
69
|
-
'019': [Protocols.ProxfordY],
|
|
70
|
-
'020': [Protocols.PtParisBx, Protocols.PsParisCZ],
|
|
71
|
-
'021': [Protocols.PsQuebecn],
|
|
72
|
-
'022': [Protocols.PsRiotuma],
|
|
73
|
-
'023': [Protocols.PtSeouLou],
|
|
74
|
-
'024': [Protocols.PtTALLiNt],
|
|
75
|
-
'025': [Protocols.ProtoALpha],
|
|
76
|
-
};
|
|
77
|
-
var ChainIds;
|
|
78
|
-
(function (ChainIds) {
|
|
79
|
-
ChainIds["MAINNET"] = "NetXdQprcVkpaWU";
|
|
80
|
-
ChainIds["GHOSTNET"] = "NetXnHfVqm9iesp";
|
|
81
|
-
ChainIds["SHADOWNET"] = "NetXsqzbfFenSTS";
|
|
82
|
-
ChainIds["CARTHAGENET"] = "NetXjD3HPJJjmcd";
|
|
83
|
-
ChainIds["DELPHINET"] = "NetXm8tYqnMWky1";
|
|
84
|
-
ChainIds["EDONET"] = "NetXSgo1ZT2DRUG";
|
|
85
|
-
ChainIds["FLORENCENET"] = "NetXxkAx4woPLyu";
|
|
86
|
-
ChainIds["GRANADANET"] = "NetXz969SFaFn8k";
|
|
87
|
-
ChainIds["HANGZHOUNET"] = "NetXZSsxBpMQeAT";
|
|
88
|
-
ChainIds["ITHACANET"] = "NetXbhmtAbMukLc";
|
|
89
|
-
ChainIds["JAKARTANET2"] = "NetXLH1uAxK7CCh";
|
|
90
|
-
ChainIds["KATHMANDUNET"] = "NetXazhm4yetmff";
|
|
91
|
-
ChainIds["LIMANET"] = "NetXizpkH94bocH";
|
|
92
|
-
ChainIds["MUMBAINET"] = "NetXQw6nWSnrJ5t";
|
|
93
|
-
ChainIds["MUMBAINET2"] = "NetXgbcrNtXD2yA";
|
|
94
|
-
ChainIds["NAIROBINET"] = "NetXyuzvDo2Ugzb";
|
|
95
|
-
ChainIds["OXFORDNET2"] = "NetXxWsskGahzQB";
|
|
96
|
-
ChainIds["PARISBNET"] = "NetXo8SqH1c38SS";
|
|
97
|
-
ChainIds["PARISCNET"] = "NetXXWAHLEvre9b";
|
|
98
|
-
ChainIds["QUEBECNET"] = "NetXuTeGinLEqxp";
|
|
99
|
-
ChainIds["RIONET"] = "NetXPdgaoabtBth";
|
|
100
|
-
ChainIds["SEOULNET"] = "NetXd56aBs1aeW3";
|
|
101
|
-
ChainIds["TALLINNNET"] = "NetXe8DbhW9A1eS";
|
|
102
|
-
})(ChainIds || (exports.ChainIds = ChainIds = {}));
|
|
103
|
-
const getRevealGasLimit = (address) => Math.round((getRevealGasLimitInternal(address) * 37) / 10);
|
|
104
|
-
exports.getRevealGasLimit = getRevealGasLimit;
|
|
105
|
-
const getRevealGasLimitInternal = (address) => {
|
|
106
|
-
switch (address.substring(0, 3)) {
|
|
107
|
-
case 'tz1':
|
|
108
|
-
return REVEAL_GAS_LIMIT.TZ1;
|
|
109
|
-
case 'tz2':
|
|
110
|
-
return REVEAL_GAS_LIMIT.TZ2;
|
|
111
|
-
case 'tz3':
|
|
112
|
-
return REVEAL_GAS_LIMIT.TZ3;
|
|
113
|
-
case 'tz4':
|
|
114
|
-
return REVEAL_GAS_LIMIT.TZ4;
|
|
115
|
-
default:
|
|
116
|
-
throw new Error(`Cannot estimate reveal gas limit for ${address}`);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
const getRevealFee = (address) => Math.round(((0, exports.getRevealFeeInternal)(address) * 12) / 10);
|
|
120
|
-
exports.getRevealFee = getRevealFee;
|
|
121
|
-
const getRevealFeeInternal = (address) => {
|
|
122
|
-
switch (address.substring(0, 3)) {
|
|
123
|
-
case 'tz1':
|
|
124
|
-
return REVEAL_FEE.TZ1;
|
|
125
|
-
case 'tz2':
|
|
126
|
-
return REVEAL_FEE.TZ2;
|
|
127
|
-
case 'tz3':
|
|
128
|
-
return REVEAL_FEE.TZ3;
|
|
129
|
-
case 'tz4':
|
|
130
|
-
return REVEAL_FEE.TZ4 * 1.7;
|
|
131
|
-
default:
|
|
132
|
-
throw new Error(`Cannot estimate reveal fee for ${address}`);
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
exports.getRevealFeeInternal = getRevealFeeInternal;
|