@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,178 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Context = exports.defaultConfigConfirmation = void 0;
|
|
4
|
-
const rpc_1 = require("@taquito/rpc");
|
|
5
|
-
const rpc_injector_1 = require("./injector/rpc-injector");
|
|
6
|
-
const noop_1 = require("./signer/noop");
|
|
7
|
-
const operation_factory_1 = require("./wallet/operation-factory");
|
|
8
|
-
const rpc_tz_provider_1 = require("./tz/rpc-tz-provider");
|
|
9
|
-
const rpc_estimate_provider_1 = require("./estimate/rpc-estimate-provider");
|
|
10
|
-
const rpc_contract_provider_1 = require("./contract/rpc-contract-provider");
|
|
11
|
-
const rpc_batch_provider_1 = require("./batch/rpc-batch-provider");
|
|
12
|
-
const wallet_1 = require("./wallet");
|
|
13
|
-
const michel_codec_parser_1 = require("./parser/michel-codec-parser");
|
|
14
|
-
const rpc_packer_1 = require("./packer/rpc-packer");
|
|
15
|
-
const rxjs_1 = require("rxjs");
|
|
16
|
-
const noop_global_constants_provider_1 = require("./global-constants/noop-global-constants-provider");
|
|
17
|
-
const rpc_read_adapter_1 = require("./read-provider/rpc-read-adapter");
|
|
18
|
-
const polling_subcribe_provider_1 = require("./subscribe/polling-subcribe-provider");
|
|
19
|
-
const taquito_local_forger_1 = require("./forger/taquito-local-forger");
|
|
20
|
-
const prepare_provider_1 = require("./prepare/prepare-provider");
|
|
21
|
-
exports.defaultConfigConfirmation = {
|
|
22
|
-
defaultConfirmationCount: 1,
|
|
23
|
-
confirmationPollingTimeoutSecond: 180,
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Encapsulate common service used throughout different part of the library
|
|
27
|
-
*/
|
|
28
|
-
class Context {
|
|
29
|
-
constructor(_rpc, _signer = new noop_1.NoopSigner(), _proto, _config = new rxjs_1.BehaviorSubject({
|
|
30
|
-
...exports.defaultConfigConfirmation,
|
|
31
|
-
}), forger, injector, packer, wallet, parser, globalConstantsProvider, readProvider, stream) {
|
|
32
|
-
this._rpc = _rpc;
|
|
33
|
-
this._signer = _signer;
|
|
34
|
-
this._proto = _proto;
|
|
35
|
-
this._config = _config;
|
|
36
|
-
this.providerDecorator = [];
|
|
37
|
-
this.tz = new rpc_tz_provider_1.RpcTzProvider(this);
|
|
38
|
-
this.estimate = new rpc_estimate_provider_1.RPCEstimateProvider(this);
|
|
39
|
-
this.contract = new rpc_contract_provider_1.RpcContractProvider(this, this.estimate);
|
|
40
|
-
this.prepare = new prepare_provider_1.PrepareProvider(this);
|
|
41
|
-
this.batch = new rpc_batch_provider_1.RPCBatchProvider(this, this.estimate);
|
|
42
|
-
this.wallet = new wallet_1.Wallet(this);
|
|
43
|
-
/**
|
|
44
|
-
* Applies the decorators on a cloned instance of the context and returned this cloned instance.
|
|
45
|
-
* The decorators are functions that inject logic into the context.
|
|
46
|
-
* They are provided by the extensions set on the TezosToolkit by calling the registerProviderDecorator method.
|
|
47
|
-
*/
|
|
48
|
-
this.withExtensions = () => {
|
|
49
|
-
let clonedContext = this.clone();
|
|
50
|
-
this.providerDecorator.forEach((decorator) => {
|
|
51
|
-
clonedContext = decorator(clonedContext);
|
|
52
|
-
});
|
|
53
|
-
return clonedContext;
|
|
54
|
-
};
|
|
55
|
-
if (typeof this._rpc === 'string') {
|
|
56
|
-
this._rpcClient = new rpc_1.RpcClient(this._rpc);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
this._rpcClient = this._rpc;
|
|
60
|
-
}
|
|
61
|
-
this._forger = forger ? forger : new taquito_local_forger_1.TaquitoLocalForger(this);
|
|
62
|
-
this._injector = injector ? injector : new rpc_injector_1.RpcInjector(this);
|
|
63
|
-
this.operationFactory = new operation_factory_1.OperationFactory(this);
|
|
64
|
-
this._walletProvider = wallet ? wallet : new wallet_1.LegacyWalletProvider(this);
|
|
65
|
-
this._parser = parser ? parser : new michel_codec_parser_1.MichelCodecParser(this);
|
|
66
|
-
this._packer = packer ? packer : new rpc_packer_1.RpcPacker(this);
|
|
67
|
-
this._globalConstantsProvider = globalConstantsProvider
|
|
68
|
-
? globalConstantsProvider
|
|
69
|
-
: new noop_global_constants_provider_1.NoopGlobalConstantsProvider();
|
|
70
|
-
this._readProvider = readProvider ? readProvider : new rpc_read_adapter_1.RpcReadAdapter(this._rpcClient);
|
|
71
|
-
this._stream = stream ? stream : new polling_subcribe_provider_1.PollingSubscribeProvider(this);
|
|
72
|
-
}
|
|
73
|
-
get config() {
|
|
74
|
-
return this._config.getValue();
|
|
75
|
-
}
|
|
76
|
-
set config(value) {
|
|
77
|
-
this._config.next({
|
|
78
|
-
...value,
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
setPartialConfig(value) {
|
|
82
|
-
this._config.next({
|
|
83
|
-
...this._config.getValue(),
|
|
84
|
-
...value,
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
get rpc() {
|
|
88
|
-
return this._rpcClient;
|
|
89
|
-
}
|
|
90
|
-
set rpc(value) {
|
|
91
|
-
this._rpcClient = value;
|
|
92
|
-
}
|
|
93
|
-
get injector() {
|
|
94
|
-
return this._injector;
|
|
95
|
-
}
|
|
96
|
-
set injector(value) {
|
|
97
|
-
this._injector = value;
|
|
98
|
-
}
|
|
99
|
-
get forger() {
|
|
100
|
-
return this._forger;
|
|
101
|
-
}
|
|
102
|
-
set forger(value) {
|
|
103
|
-
this._forger = value;
|
|
104
|
-
}
|
|
105
|
-
get signer() {
|
|
106
|
-
return this._signer;
|
|
107
|
-
}
|
|
108
|
-
set signer(value) {
|
|
109
|
-
this._signer = value;
|
|
110
|
-
}
|
|
111
|
-
get walletProvider() {
|
|
112
|
-
return this._walletProvider;
|
|
113
|
-
}
|
|
114
|
-
set walletProvider(value) {
|
|
115
|
-
this._walletProvider = value;
|
|
116
|
-
}
|
|
117
|
-
set proto(value) {
|
|
118
|
-
this._proto = value;
|
|
119
|
-
}
|
|
120
|
-
get proto() {
|
|
121
|
-
return this._proto;
|
|
122
|
-
}
|
|
123
|
-
get parser() {
|
|
124
|
-
return this._parser;
|
|
125
|
-
}
|
|
126
|
-
set parser(value) {
|
|
127
|
-
this._parser = value;
|
|
128
|
-
}
|
|
129
|
-
get packer() {
|
|
130
|
-
return this._packer;
|
|
131
|
-
}
|
|
132
|
-
set packer(value) {
|
|
133
|
-
this._packer = value;
|
|
134
|
-
}
|
|
135
|
-
get globalConstantsProvider() {
|
|
136
|
-
return this._globalConstantsProvider;
|
|
137
|
-
}
|
|
138
|
-
set globalConstantsProvider(value) {
|
|
139
|
-
this._globalConstantsProvider = value;
|
|
140
|
-
}
|
|
141
|
-
get readProvider() {
|
|
142
|
-
return this._readProvider;
|
|
143
|
-
}
|
|
144
|
-
set readProvider(value) {
|
|
145
|
-
this._readProvider = value;
|
|
146
|
-
}
|
|
147
|
-
get stream() {
|
|
148
|
-
return this._stream;
|
|
149
|
-
}
|
|
150
|
-
set stream(value) {
|
|
151
|
-
this._stream = value;
|
|
152
|
-
}
|
|
153
|
-
async isAnyProtocolActive(protocol = []) {
|
|
154
|
-
if (this._proto) {
|
|
155
|
-
return protocol.includes(this._proto);
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
const next_protocol = await this.readProvider.getNextProtocol('head');
|
|
159
|
-
return protocol.includes(next_protocol);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
isAnySignerConfigured() {
|
|
163
|
-
return !(this.signer instanceof noop_1.NoopSigner);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Create a copy of the current context. Useful when you have long running operation and you do not want a context change to affect the operation
|
|
167
|
-
*/
|
|
168
|
-
clone() {
|
|
169
|
-
return new Context(this.rpc, this.signer, this.proto, this._config, this.forger, this._injector, this.packer, this._walletProvider, this._parser, this._globalConstantsProvider, this._readProvider, this._stream);
|
|
170
|
-
}
|
|
171
|
-
/**
|
|
172
|
-
* Allows extensions set on the TezosToolkit to inject logic into the context
|
|
173
|
-
*/
|
|
174
|
-
registerProviderDecorator(fx) {
|
|
175
|
-
this.providerDecorator.push(fx);
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
exports.Context = Context;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BigMapAbstraction = void 0;
|
|
4
|
-
const http_utils_1 = require("@taquito/http-utils");
|
|
5
|
-
class BigMapAbstraction {
|
|
6
|
-
constructor(id, schema, provider) {
|
|
7
|
-
this.id = id;
|
|
8
|
-
this.schema = schema;
|
|
9
|
-
this.provider = provider;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* Fetch one value in a big map
|
|
14
|
-
*
|
|
15
|
-
* @param keyToEncode Key to query (will be encoded properly according to the schema)
|
|
16
|
-
* @param block optional block level to fetch the values from (head will be use by default)
|
|
17
|
-
* @returns Return a well formatted json object of a big map value or undefined if the key is not found in the big map
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
async get(keyToEncode, block) {
|
|
21
|
-
try {
|
|
22
|
-
const id = await this.provider.getBigMapKeyByID(this.id.toString(), keyToEncode, this.schema, block);
|
|
23
|
-
return id;
|
|
24
|
-
}
|
|
25
|
-
catch (e) {
|
|
26
|
-
if (e instanceof http_utils_1.HttpResponseError && e.status === http_utils_1.STATUS_CODE.NOT_FOUND) {
|
|
27
|
-
return undefined;
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
throw e;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* Fetch multiple values in a big map
|
|
37
|
-
* All values will be fetched on the same block level. If a block is specified in the request, the values will be fetched at it.
|
|
38
|
-
* Otherwise, a first request will be done to the node to fetch the level of the head and all values will be fetched at this level.
|
|
39
|
-
* If one of the keys does not exist in the big map, its value will be set to undefined.
|
|
40
|
-
*
|
|
41
|
-
* @param keysToEncode Array of keys to query (will be encoded properly according to the schema)
|
|
42
|
-
* @param block optional block level to fetch the values from
|
|
43
|
-
* @param batchSize optional batch size representing the number of requests to execute in parallel
|
|
44
|
-
* @returns A MichelsonMap containing the keys queried in the big map and their value in a well-formatted JSON object format
|
|
45
|
-
*
|
|
46
|
-
*/
|
|
47
|
-
async getMultipleValues(keysToEncode, block, batchSize = 5) {
|
|
48
|
-
return this.provider.getBigMapKeysByID(this.id.toString(), keysToEncode, this.schema, block, batchSize);
|
|
49
|
-
}
|
|
50
|
-
toJSON() {
|
|
51
|
-
return this.id.toString();
|
|
52
|
-
}
|
|
53
|
-
toString() {
|
|
54
|
-
return this.id.toString();
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
exports.BigMapAbstraction = BigMapAbstraction;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.compose = compose;
|
|
4
|
-
function compose(functioncomposer1, functioncomposer2) {
|
|
5
|
-
return (contractAbstraction, context) => functioncomposer2(functioncomposer1(contractAbstraction, context), context);
|
|
6
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContractMethodFactory = void 0;
|
|
4
|
-
const contract_method_object_param_1 = require("./contract-method-object-param");
|
|
5
|
-
const contract_on_chain_view_1 = require("./contract-on-chain-view");
|
|
6
|
-
class ContractMethodFactory {
|
|
7
|
-
constructor(provider, contractAddress) {
|
|
8
|
-
this.provider = provider;
|
|
9
|
-
this.contractAddress = contractAddress;
|
|
10
|
-
}
|
|
11
|
-
createContractMethodObjectParam(smartContractMethodSchema, smartContractMethodName, args, isMultipleEntrypoint = true, isAnonymous = false) {
|
|
12
|
-
return new contract_method_object_param_1.ContractMethodObject(this.provider, this.contractAddress, smartContractMethodSchema, smartContractMethodName, args, isMultipleEntrypoint, isAnonymous);
|
|
13
|
-
}
|
|
14
|
-
createContractViewObjectParam(rpc, readProvider, smartContractViewSchema, contractStorageType, viewArgs) {
|
|
15
|
-
return new contract_on_chain_view_1.OnChainView(rpc, readProvider, this.contractAddress, smartContractViewSchema, contractStorageType, viewArgs);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.ContractMethodFactory = ContractMethodFactory;
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContractMethodObject = void 0;
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
/**
|
|
6
|
-
* Utility class to send smart contract operation
|
|
7
|
-
* The format for the arguments is the object representation
|
|
8
|
-
*/
|
|
9
|
-
class ContractMethodObject {
|
|
10
|
-
constructor(provider, address, parameterSchema, name, args = 'unit', isMultipleEntrypoint = true, isAnonymous = false) {
|
|
11
|
-
this.provider = provider;
|
|
12
|
-
this.address = address;
|
|
13
|
-
this.parameterSchema = parameterSchema;
|
|
14
|
-
this.name = name;
|
|
15
|
-
this.args = args;
|
|
16
|
-
this.isMultipleEntrypoint = isMultipleEntrypoint;
|
|
17
|
-
this.isAnonymous = isAnonymous;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Get the signature of the smart contract method
|
|
21
|
-
*/
|
|
22
|
-
getSignature() {
|
|
23
|
-
const generatedSchema = this.parameterSchema.generateSchema();
|
|
24
|
-
if (this.isAnonymous) {
|
|
25
|
-
const schemaObj = generatedSchema.schema;
|
|
26
|
-
return schemaObj?.[this.name];
|
|
27
|
-
}
|
|
28
|
-
return generatedSchema;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* Send the smart contract operation
|
|
33
|
-
*
|
|
34
|
-
* @param params generic operation parameter
|
|
35
|
-
*/
|
|
36
|
-
send(params = {}) {
|
|
37
|
-
// provider is either ContractProvider | Wallet but pkh method is unique to Wallet
|
|
38
|
-
if (this.provider && 'pkh' in this.provider) {
|
|
39
|
-
return this.provider
|
|
40
|
-
.transfer(this.toTransferParams(params))
|
|
41
|
-
.send();
|
|
42
|
-
}
|
|
43
|
-
else {
|
|
44
|
-
return this.provider.transfer(this.toTransferParams(params));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
*
|
|
49
|
-
* Create transfer params to be used with TezosToolkit.contract.transfer methods
|
|
50
|
-
*
|
|
51
|
-
* @param params generic transfer operation parameters
|
|
52
|
-
*/
|
|
53
|
-
toTransferParams({ fee, gasLimit, storageLimit, source, amount = 0, mutez = false, } = {}) {
|
|
54
|
-
const fullTransferParams = {
|
|
55
|
-
to: this.address,
|
|
56
|
-
amount,
|
|
57
|
-
fee,
|
|
58
|
-
mutez,
|
|
59
|
-
source,
|
|
60
|
-
gasLimit,
|
|
61
|
-
storageLimit,
|
|
62
|
-
parameter: {
|
|
63
|
-
entrypoint: this.isMultipleEntrypoint ? this.name : constants_1.DEFAULT_SMART_CONTRACT_METHOD_NAME,
|
|
64
|
-
value: this.isAnonymous
|
|
65
|
-
? this.parameterSchema.EncodeObject({ [this.name]: this.args })
|
|
66
|
-
: this.parameterSchema.EncodeObject(this.args),
|
|
67
|
-
},
|
|
68
|
-
};
|
|
69
|
-
return fullTransferParams;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
exports.ContractMethodObject = ContractMethodObject;
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OnChainView = void 0;
|
|
4
|
-
const utils_1 = require("@taquito/utils");
|
|
5
|
-
const errors_1 = require("../errors");
|
|
6
|
-
const core_1 = require("@taquito/core");
|
|
7
|
-
class OnChainView {
|
|
8
|
-
constructor(_rpc, _readProvider, _contractAddress, _smartContractViewSchema, _contractStorageType, _args = 'Unit') {
|
|
9
|
-
this._rpc = _rpc;
|
|
10
|
-
this._readProvider = _readProvider;
|
|
11
|
-
this._contractAddress = _contractAddress;
|
|
12
|
-
this._smartContractViewSchema = _smartContractViewSchema;
|
|
13
|
-
this._contractStorageType = _contractStorageType;
|
|
14
|
-
this._args = _args;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Get the signature of the smart contract view
|
|
18
|
-
*/
|
|
19
|
-
getSignature() {
|
|
20
|
-
return {
|
|
21
|
-
parameter: this._smartContractViewSchema.extractArgsSchema(),
|
|
22
|
-
result: this._smartContractViewSchema.extractResultSchema(),
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Get the result of the view simulation
|
|
27
|
-
* @param executionContext.source the public key hash of the account who initialized this view execution.
|
|
28
|
-
* @param executionContext.viewCaller the contract address which is the caller of view.
|
|
29
|
-
*/
|
|
30
|
-
async executeView(executionContext) {
|
|
31
|
-
this.verifyContextExecution(executionContext);
|
|
32
|
-
const chainId = await this._readProvider.getChainId();
|
|
33
|
-
const viewArgs = this.transformArgsToMichelson();
|
|
34
|
-
const scriptView = {
|
|
35
|
-
contract: this._contractAddress,
|
|
36
|
-
view: this._smartContractViewSchema.viewName,
|
|
37
|
-
input: viewArgs,
|
|
38
|
-
chain_id: chainId,
|
|
39
|
-
source: executionContext.viewCaller,
|
|
40
|
-
};
|
|
41
|
-
if (executionContext.source) {
|
|
42
|
-
scriptView.payer = executionContext.source;
|
|
43
|
-
}
|
|
44
|
-
return this.executeViewAndDecodeResult(scriptView);
|
|
45
|
-
}
|
|
46
|
-
verifyContextExecution(executionContext) {
|
|
47
|
-
if (executionContext.source &&
|
|
48
|
-
(0, utils_1.validateAddress)(executionContext.source) !== utils_1.ValidationResult.VALID) {
|
|
49
|
-
throw new errors_1.InvalidViewSimulationContext(`The source account who initialized the view execution is invalid: ${executionContext.source}.`);
|
|
50
|
-
}
|
|
51
|
-
if (!executionContext.viewCaller ||
|
|
52
|
-
(0, utils_1.validateAddress)(executionContext.viewCaller) !== utils_1.ValidationResult.VALID) {
|
|
53
|
-
throw new errors_1.InvalidViewSimulationContext(`The contract which is the caller of view is invalid: ${executionContext.viewCaller}.`);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
transformArgsToMichelson() {
|
|
57
|
-
try {
|
|
58
|
-
return this._smartContractViewSchema.encodeViewArgs(this._args);
|
|
59
|
-
}
|
|
60
|
-
catch (error) {
|
|
61
|
-
throw new core_1.InvalidViewParameterError(this._smartContractViewSchema.viewName, this.getSignature(), this._args, error);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
/**
|
|
65
|
-
* Loops through the view's instructions and replace BALANCE, SENDER, SELF_ADDRESS and AMOUNT with Michelson expressions that match the current context, if applicable.
|
|
66
|
-
*
|
|
67
|
-
* Certain specific instructions have different semantics in view:
|
|
68
|
-
* BALANCE represents the current amount of mutez held by the contract where view is;
|
|
69
|
-
* SENDER represents the contract which is the caller of view;
|
|
70
|
-
* SELF_ADDRESS represents the contract where view is;
|
|
71
|
-
* AMOUNT is always 0 mutez.
|
|
72
|
-
*
|
|
73
|
-
*/
|
|
74
|
-
adaptViewCodeToContext(instructions, viewCaller, contractBalance) {
|
|
75
|
-
const instructionsToReplace = {
|
|
76
|
-
BALANCE: [{ prim: 'PUSH', args: [{ prim: 'mutez' }, { int: contractBalance }] }],
|
|
77
|
-
SENDER: [{ prim: 'PUSH', args: [{ prim: 'address' }, { string: viewCaller }] }],
|
|
78
|
-
SELF_ADDRESS: [
|
|
79
|
-
{ prim: 'PUSH', args: [{ prim: 'address' }, { string: this._contractAddress }] },
|
|
80
|
-
],
|
|
81
|
-
AMOUNT: [{ prim: 'PUSH', args: [{ prim: 'mutez' }, { int: '0' }] }],
|
|
82
|
-
};
|
|
83
|
-
instructions.forEach((inst, i) => {
|
|
84
|
-
if (inst.prim in instructionsToReplace) {
|
|
85
|
-
instructions[i] = Object(instructionsToReplace)[inst.prim];
|
|
86
|
-
}
|
|
87
|
-
if (inst.args && inst.args.length !== 0) {
|
|
88
|
-
this.adaptViewCodeToContext(inst.args, viewCaller, contractBalance);
|
|
89
|
-
}
|
|
90
|
-
else if (Array.isArray(inst)) {
|
|
91
|
-
this.adaptViewCodeToContext(inst, viewCaller, contractBalance);
|
|
92
|
-
}
|
|
93
|
-
});
|
|
94
|
-
return instructions;
|
|
95
|
-
}
|
|
96
|
-
async executeViewAndDecodeResult(viewScript) {
|
|
97
|
-
let storage;
|
|
98
|
-
try {
|
|
99
|
-
storage = (await this._rpc.runScriptView(viewScript))
|
|
100
|
-
.data;
|
|
101
|
-
}
|
|
102
|
-
catch (error) {
|
|
103
|
-
const failWith = (0, errors_1.validateAndExtractFailwith)(error);
|
|
104
|
-
throw failWith
|
|
105
|
-
? new errors_1.ViewSimulationError(`The simulation of the on-chain view named ${this._smartContractViewSchema.viewName} failed with: ${JSON.stringify(failWith)}`, this._smartContractViewSchema.viewName, failWith, error)
|
|
106
|
-
: error;
|
|
107
|
-
}
|
|
108
|
-
return this._smartContractViewSchema.decodeViewResult(storage);
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
exports.OnChainView = OnChainView;
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ContractAbstraction = exports.ContractView = exports.DEFAULT_SMART_CONTRACT_METHOD_NAME = void 0;
|
|
4
|
-
const michelson_encoder_1 = require("@taquito/michelson-encoder");
|
|
5
|
-
const utils_1 = require("@taquito/utils");
|
|
6
|
-
const contract_method_factory_1 = require("./contract-methods/contract-method-factory");
|
|
7
|
-
const errors_1 = require("./errors");
|
|
8
|
-
const core_1 = require("@taquito/core");
|
|
9
|
-
const constants_1 = require("./constants");
|
|
10
|
-
Object.defineProperty(exports, "DEFAULT_SMART_CONTRACT_METHOD_NAME", { enumerable: true, get: function () { return constants_1.DEFAULT_SMART_CONTRACT_METHOD_NAME; } });
|
|
11
|
-
/**
|
|
12
|
-
* Utility class to retrieve data from a smart contract's storage without incurring fees via a contract's view method
|
|
13
|
-
*/
|
|
14
|
-
class ContractView {
|
|
15
|
-
constructor(currentContract, name, callbackParametersSchema, parameterSchema, args, rpc, readProvider) {
|
|
16
|
-
this.currentContract = currentContract;
|
|
17
|
-
this.name = name;
|
|
18
|
-
this.callbackParametersSchema = callbackParametersSchema;
|
|
19
|
-
this.parameterSchema = parameterSchema;
|
|
20
|
-
this.args = args;
|
|
21
|
-
this.rpc = rpc;
|
|
22
|
-
this.readProvider = readProvider;
|
|
23
|
-
}
|
|
24
|
-
async read(chainId) {
|
|
25
|
-
const chainIdValidation = (0, utils_1.validateChain)(chainId ?? '');
|
|
26
|
-
if ((0, utils_1.validateContractAddress)(chainId ?? '') == utils_1.ValidationResult.VALID) {
|
|
27
|
-
throw new core_1.DeprecationError(`Since version 12, the lambda view no longer depends on a lambda contract. The read method no longer accepts a contract address as a parameter.`);
|
|
28
|
-
}
|
|
29
|
-
else if (chainId && chainIdValidation !== utils_1.ValidationResult.VALID) {
|
|
30
|
-
throw new core_1.InvalidChainIdError(chainId, chainIdValidation);
|
|
31
|
-
}
|
|
32
|
-
const arg = this.parameterSchema.Encode(...this.args);
|
|
33
|
-
const result = await this.rpc.runView({
|
|
34
|
-
contract: this.currentContract.address,
|
|
35
|
-
entrypoint: this.name,
|
|
36
|
-
input: arg,
|
|
37
|
-
chain_id: chainId ? chainId : await this.readProvider.getChainId(),
|
|
38
|
-
});
|
|
39
|
-
return this.callbackParametersSchema.Execute(result.data);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.ContractView = ContractView;
|
|
43
|
-
const validateArgs = (args, schema, name) => {
|
|
44
|
-
const sigs = schema.ExtractSignatures();
|
|
45
|
-
if (!sigs.find((x) => x.length === args.length)) {
|
|
46
|
-
throw new errors_1.InvalidParameterError(name, sigs, args);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
// lambda view tzip4
|
|
50
|
-
const isView = (entrypoint) => {
|
|
51
|
-
let isView = false;
|
|
52
|
-
if ('prim' in entrypoint && entrypoint.prim === 'pair' && entrypoint.args) {
|
|
53
|
-
const lastElement = entrypoint.args[entrypoint.args.length - 1];
|
|
54
|
-
if ('prim' in lastElement && lastElement.prim === 'contract') {
|
|
55
|
-
isView = true;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
return isView;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Smart contract abstraction
|
|
62
|
-
*/
|
|
63
|
-
class ContractAbstraction {
|
|
64
|
-
constructor(address, script, provider, storageProvider, entrypoints, rpc, readProvider) {
|
|
65
|
-
this.address = address;
|
|
66
|
-
this.script = script;
|
|
67
|
-
this.storageProvider = storageProvider;
|
|
68
|
-
this.entrypoints = entrypoints;
|
|
69
|
-
this.rpc = rpc;
|
|
70
|
-
this.readProvider = readProvider;
|
|
71
|
-
/**
|
|
72
|
-
* Contains methods that are implemented by the target Tezos Smart Contract, and offers the user to call the Smart Contract methods as if they were native TS/JS methods.
|
|
73
|
-
* `methodsObject` serves the exact same purpose as the `methods` member. The difference is that it allows passing the parameter in an object format when calling the smart contract method (instead of the flattened representation)
|
|
74
|
-
* NB: if the contract contains annotation it will include named properties; if not it will be indexed by a number.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
this.methodsObject = {};
|
|
78
|
-
/**
|
|
79
|
-
* Contains lamda views (tzip4) that are implemented by the target Tezos Smart Contract, and offers the user to call the lambda views as if they were native TS/JS methods.
|
|
80
|
-
* NB: These are the view defined in the tzip4 standard, not the views introduced by the Hangzhou protocol.
|
|
81
|
-
*/
|
|
82
|
-
this.views = {};
|
|
83
|
-
/**
|
|
84
|
-
* Contains on-chain views that are defined by the target Tezos Smart Contract, and offers the user to simulate the views execution as if they were native TS/JS methods.
|
|
85
|
-
* NB: the expected format for the parameter when calling a smart contract view is the object format (same format as for the storage) and not the flattened representation.
|
|
86
|
-
*
|
|
87
|
-
*/
|
|
88
|
-
this.contractViews = {};
|
|
89
|
-
this.contractMethodFactory = new contract_method_factory_1.ContractMethodFactory(provider, address);
|
|
90
|
-
this.schema = michelson_encoder_1.Schema.fromRPCResponse({ script: this.script });
|
|
91
|
-
this.parameterSchema = michelson_encoder_1.ParameterSchema.fromRPCResponse({ script: this.script });
|
|
92
|
-
this.viewSchema = michelson_encoder_1.ViewSchema.fromRPCResponse({ script: this.script });
|
|
93
|
-
if (this.viewSchema.length !== 0) {
|
|
94
|
-
this._initializeOnChainViews(this, rpc, this.readProvider, this.viewSchema);
|
|
95
|
-
}
|
|
96
|
-
this.eventSchema = michelson_encoder_1.EventSchema.fromRPCResponse({ script: this.script });
|
|
97
|
-
this._initializeMethods(this, this.entrypoints.entrypoints, this.rpc, this.readProvider);
|
|
98
|
-
}
|
|
99
|
-
_initializeMethods(currentContract, entrypoints, rpc, readProvider) {
|
|
100
|
-
const parameterSchema = this.parameterSchema;
|
|
101
|
-
const keys = Object.keys(entrypoints);
|
|
102
|
-
if (parameterSchema.isMultipleEntryPoint) {
|
|
103
|
-
keys.forEach((smartContractMethodName) => {
|
|
104
|
-
const smartContractMethodSchema = new michelson_encoder_1.ParameterSchema(entrypoints[smartContractMethodName]);
|
|
105
|
-
this.methodsObject[smartContractMethodName] = function (args) {
|
|
106
|
-
return currentContract.contractMethodFactory.createContractMethodObjectParam(smartContractMethodSchema, smartContractMethodName, args);
|
|
107
|
-
};
|
|
108
|
-
if (isView(entrypoints[smartContractMethodName])) {
|
|
109
|
-
const view = function (...args) {
|
|
110
|
-
const entrypointParamWithoutCallback = entrypoints[smartContractMethodName]
|
|
111
|
-
.args[0];
|
|
112
|
-
const smartContractMethodSchemaWithoutCallback = new michelson_encoder_1.ParameterSchema(entrypointParamWithoutCallback);
|
|
113
|
-
const parametersCallback = entrypoints[smartContractMethodName].args[1]
|
|
114
|
-
.args[0];
|
|
115
|
-
const smartContractMethodCallbackSchema = new michelson_encoder_1.ParameterSchema(parametersCallback);
|
|
116
|
-
validateArgs(args, smartContractMethodSchemaWithoutCallback, smartContractMethodName);
|
|
117
|
-
return new ContractView(currentContract, smartContractMethodName, smartContractMethodCallbackSchema, smartContractMethodSchemaWithoutCallback, args, rpc, readProvider);
|
|
118
|
-
};
|
|
119
|
-
this.views[smartContractMethodName] = view;
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
// Deal with methods with no annotations which were not discovered by the RPC endpoint
|
|
123
|
-
// Methods with no annotations are discovered using parameter schema
|
|
124
|
-
const generatedSchema = parameterSchema.generateSchema();
|
|
125
|
-
const schemaKeys = generatedSchema.schema && typeof generatedSchema.schema === 'object'
|
|
126
|
-
? Object.keys(generatedSchema.schema)
|
|
127
|
-
: [];
|
|
128
|
-
const anonymousMethods = schemaKeys.filter((key) => Object.keys(entrypoints).indexOf(key) === -1);
|
|
129
|
-
anonymousMethods.forEach((smartContractMethodName) => {
|
|
130
|
-
this.methodsObject[smartContractMethodName] = function (args) {
|
|
131
|
-
return currentContract.contractMethodFactory.createContractMethodObjectParam(parameterSchema, smartContractMethodName, args, false, true);
|
|
132
|
-
};
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
const smartContractMethodSchema = this.parameterSchema;
|
|
137
|
-
this.methodsObject[constants_1.DEFAULT_SMART_CONTRACT_METHOD_NAME] =
|
|
138
|
-
function (args) {
|
|
139
|
-
return currentContract.contractMethodFactory.createContractMethodObjectParam(smartContractMethodSchema, constants_1.DEFAULT_SMART_CONTRACT_METHOD_NAME, args, false);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
_initializeOnChainViews(currentContract, rpc, readProvider, allContractViews) {
|
|
144
|
-
const storageType = this.schema.val;
|
|
145
|
-
allContractViews.forEach((viewSchema) => {
|
|
146
|
-
this.contractViews[viewSchema.viewName] = function (args) {
|
|
147
|
-
return currentContract.contractMethodFactory.createContractViewObjectParam(rpc, readProvider, viewSchema, storageType, args);
|
|
148
|
-
};
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Return a friendly representation of the smart contract storage
|
|
153
|
-
*/
|
|
154
|
-
storage() {
|
|
155
|
-
return this.storageProvider.getStorage(this.address, this.schema);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
exports.ContractAbstraction = ContractAbstraction;
|