@taquito/wallet-connect 24.3.0-beta.0 → 24.3.0-beta.2
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/README.md +4 -1
- package/dist/lib/taquito/src/batch/constants.js +16 -0
- package/dist/lib/taquito/src/batch/rpc-batch-provider.js +327 -0
- package/dist/lib/taquito/src/constants.js +135 -0
- package/dist/lib/taquito/src/context.js +178 -0
- package/dist/lib/taquito/src/contract/big-map.js +57 -0
- package/dist/lib/taquito/src/contract/compose.js +6 -0
- package/dist/lib/taquito/src/contract/constants.js +4 -0
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-factory.js +18 -0
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-interface.js +2 -0
- package/dist/lib/taquito/src/contract/contract-methods/contract-method-object-param.js +72 -0
- package/dist/lib/taquito/src/contract/contract-methods/contract-on-chain-view.js +111 -0
- package/dist/lib/taquito/src/contract/contract.js +158 -0
- package/dist/lib/taquito/src/contract/errors.js +140 -0
- package/dist/lib/taquito/src/contract/index.js +30 -0
- package/dist/lib/taquito/src/contract/interface.js +2 -0
- package/dist/lib/taquito/src/contract/manager-lambda.js +71 -0
- package/dist/lib/taquito/src/contract/prepare.js +231 -0
- package/dist/lib/taquito/src/contract/rpc-contract-provider.js +675 -0
- package/dist/lib/taquito/src/contract/sapling-state-abstraction.js +24 -0
- package/dist/lib/taquito/src/contract/semantic.js +43 -0
- package/dist/lib/taquito/src/contract/view_lambda.js +27 -0
- package/dist/lib/taquito/src/errors.js +42 -0
- package/dist/lib/taquito/src/estimate/errors.js +16 -0
- package/dist/lib/taquito/src/estimate/estimate-provider-interface.js +2 -0
- package/dist/lib/taquito/src/estimate/estimate.js +176 -0
- package/dist/lib/taquito/src/estimate/index.js +20 -0
- package/dist/lib/taquito/src/estimate/rpc-estimate-provider.js +640 -0
- package/dist/lib/taquito/src/extension/extension.js +2 -0
- package/dist/lib/taquito/src/forger/composite-forger.js +32 -0
- package/dist/lib/taquito/src/forger/errors.js +30 -0
- package/dist/lib/taquito/src/forger/rpc-forger.js +12 -0
- package/dist/lib/taquito/src/forger/taquito-local-forger.js +21 -0
- package/dist/lib/taquito/src/global-constants/default-global-constants-provider.js +35 -0
- package/dist/lib/taquito/src/global-constants/errors.js +30 -0
- package/dist/lib/taquito/src/global-constants/interface-global-constants-provider.js +2 -0
- package/dist/lib/taquito/src/global-constants/noop-global-constants-provider.js +10 -0
- package/dist/lib/taquito/src/import-key.js +40 -0
- package/dist/lib/taquito/src/injector/helper.js +18 -0
- package/dist/lib/taquito/src/injector/interface.js +2 -0
- package/dist/lib/taquito/src/injector/rpc-injector.js +27 -0
- package/dist/lib/taquito/src/operations/ballot-operation.js +32 -0
- package/dist/lib/taquito/src/operations/batch-operation.js +69 -0
- package/dist/lib/taquito/src/operations/delegate-operation.js +54 -0
- package/dist/lib/taquito/src/operations/drain-delegate-operation.js +31 -0
- package/dist/lib/taquito/src/operations/errors.js +133 -0
- package/dist/lib/taquito/src/operations/failing-noop-operation.js +2 -0
- package/dist/lib/taquito/src/operations/increase-paid-storage-operation.js +49 -0
- package/dist/lib/taquito/src/operations/index.js +54 -0
- package/dist/lib/taquito/src/operations/operations.js +193 -0
- package/dist/lib/taquito/src/operations/origination-operation.js +78 -0
- package/dist/lib/taquito/src/operations/proposals-operation.js +29 -0
- package/dist/lib/taquito/src/operations/register-global-constant-operation.js +52 -0
- package/dist/lib/taquito/src/operations/reveal-operation.js +74 -0
- package/dist/lib/taquito/src/operations/smart-rollup-add-messages-operation.js +44 -0
- package/dist/lib/taquito/src/operations/smart-rollup-execute-outbox-message-operation.js +53 -0
- package/dist/lib/taquito/src/operations/smart-rollup-originate-operation.js +50 -0
- package/dist/lib/taquito/src/operations/transaction-operation.js +73 -0
- package/dist/lib/taquito/src/operations/transfer-ticket-operation.js +47 -0
- package/dist/lib/taquito/src/operations/types.js +88 -0
- package/dist/lib/taquito/src/operations/update-companion-key-operation.js +55 -0
- package/dist/lib/taquito/src/operations/update-consensus-key-operation.js +55 -0
- package/dist/lib/taquito/src/packer/interface.js +2 -0
- package/dist/lib/taquito/src/packer/michel-codec-packer.js +11 -0
- package/dist/lib/taquito/src/packer/rpc-packer.js +12 -0
- package/dist/lib/taquito/src/parser/interface.js +2 -0
- package/dist/lib/taquito/src/parser/michel-codec-parser.js +110 -0
- package/dist/lib/taquito/src/parser/noop-parser.js +9 -0
- package/dist/lib/taquito/src/prepare/index.js +18 -0
- package/dist/lib/taquito/src/prepare/interface.js +2 -0
- package/dist/lib/taquito/src/prepare/prepare-provider.js +1049 -0
- package/dist/lib/taquito/src/provider.js +363 -0
- package/dist/lib/taquito/src/read-provider/interface.js +2 -0
- package/dist/lib/taquito/src/read-provider/rpc-read-adapter.js +183 -0
- package/dist/lib/taquito/src/signer/errors.js +17 -0
- package/dist/lib/taquito/src/signer/noop.js +23 -0
- package/dist/lib/taquito/src/subscribe/create-observable-from-subscription.js +20 -0
- package/dist/lib/taquito/src/subscribe/errors.js +30 -0
- package/dist/lib/taquito/src/subscribe/filters.js +96 -0
- package/dist/lib/taquito/src/subscribe/interface.js +2 -0
- package/dist/lib/taquito/src/subscribe/observable-subscription.js +79 -0
- package/dist/lib/taquito/src/subscribe/polling-subcribe-provider.js +118 -0
- package/dist/lib/taquito/src/taquito.js +404 -0
- package/dist/lib/taquito/src/tz/interface.js +2 -0
- package/dist/lib/taquito/src/tz/rpc-tz-provider.js +46 -0
- package/dist/lib/taquito/src/version.js +8 -0
- package/dist/lib/taquito/src/wallet/batch-operation.js +71 -0
- package/dist/lib/taquito/src/wallet/delegation-operation.js +42 -0
- package/dist/lib/taquito/src/wallet/errors.js +40 -0
- package/dist/lib/taquito/src/wallet/increase-paid-storage-operation.js +42 -0
- package/dist/lib/taquito/src/wallet/index.js +25 -0
- package/dist/lib/taquito/src/wallet/interface.js +2 -0
- package/dist/lib/taquito/src/wallet/legacy.js +51 -0
- package/dist/lib/taquito/src/wallet/operation-factory.js +88 -0
- package/dist/lib/taquito/src/wallet/operation.js +221 -0
- package/dist/lib/taquito/src/wallet/origination-operation.js +53 -0
- package/dist/lib/taquito/src/wallet/receipt.js +46 -0
- package/dist/lib/taquito/src/wallet/register-global-constant-operation.js +45 -0
- package/dist/lib/taquito/src/wallet/transaction-operation.js +38 -0
- package/dist/lib/taquito/src/wallet/transfer-ticket-operation.js +38 -0
- package/dist/lib/taquito/src/wallet/wallet.js +445 -0
- package/dist/lib/taquito-core/src/errors.js +351 -0
- package/dist/lib/taquito-core/src/signer-interfaces.js +2 -0
- package/dist/lib/taquito-core/src/taquito-core.js +22 -0
- package/dist/lib/taquito-http-utils/src/errors.js +103 -0
- package/dist/lib/taquito-http-utils/src/status_code.js +322 -0
- package/dist/lib/taquito-http-utils/src/taquito-http-utils.js +308 -0
- package/dist/lib/taquito-http-utils/src/transport-errors.js +141 -0
- package/dist/lib/{version.js → taquito-http-utils/src/version.js} +2 -2
- package/dist/lib/taquito-local-forging/src/codec.js +543 -0
- package/dist/lib/taquito-local-forging/src/constants.js +291 -0
- package/dist/lib/taquito-local-forging/src/decoder.js +64 -0
- package/dist/lib/taquito-local-forging/src/encoder.js +63 -0
- package/dist/lib/taquito-local-forging/src/errors.js +179 -0
- package/dist/lib/taquito-local-forging/src/interface.js +2 -0
- package/dist/lib/taquito-local-forging/src/michelson/codec.js +283 -0
- package/dist/lib/taquito-local-forging/src/protocols.js +60 -0
- package/dist/lib/taquito-local-forging/src/schema/operation.js +259 -0
- package/dist/lib/taquito-local-forging/src/taquito-local-forging.js +117 -0
- package/dist/lib/taquito-local-forging/src/uint8array-consumer.js +35 -0
- package/dist/lib/taquito-local-forging/src/utils.js +18 -0
- package/dist/lib/taquito-local-forging/src/validator.js +57 -0
- package/dist/lib/taquito-local-forging/src/version.js +8 -0
- package/dist/lib/taquito-michel-codec/src/base58.js +255 -0
- package/dist/lib/taquito-michel-codec/src/binary.js +1271 -0
- package/dist/lib/taquito-michel-codec/src/errors.js +90 -0
- package/dist/lib/taquito-michel-codec/src/formatters.js +58 -0
- package/dist/lib/taquito-michel-codec/src/global-constants.js +12 -0
- package/dist/lib/taquito-michel-codec/src/macros.js +551 -0
- package/dist/lib/taquito-michel-codec/src/micheline-emitter.js +128 -0
- package/dist/lib/taquito-michel-codec/src/micheline-parser.js +402 -0
- package/dist/lib/taquito-michel-codec/src/micheline.js +5 -0
- package/dist/lib/taquito-michel-codec/src/michelson-contract.js +93 -0
- package/dist/lib/taquito-michel-codec/src/michelson-typecheck.js +1756 -0
- package/dist/lib/taquito-michel-codec/src/michelson-types.js +83 -0
- package/dist/lib/taquito-michel-codec/src/michelson-validator.js +833 -0
- package/dist/lib/taquito-michel-codec/src/scan.js +128 -0
- package/dist/lib/taquito-michel-codec/src/taquito-michel-codec.js +38 -0
- package/dist/lib/taquito-michel-codec/src/utils.js +323 -0
- package/dist/lib/taquito-michel-codec/src/version.js +8 -0
- package/dist/lib/taquito-michelson-encoder/src/constants.js +11 -0
- package/dist/lib/taquito-michelson-encoder/src/errors.js +38 -0
- package/dist/lib/taquito-michelson-encoder/src/michelson-map.js +201 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/errors.js +127 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/event-schema.js +52 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/parameter.js +113 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/storage.js +260 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/types.js +2 -0
- package/dist/lib/taquito-michelson-encoder/src/schema/view-schema.js +90 -0
- package/dist/lib/taquito-michelson-encoder/src/taquito-michelson-encoder.js +36 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/bigmap.js +130 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-fr.js +86 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g1.js +76 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/bls12-381-g2.js +76 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/chain-id.js +78 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/chest-key.js +74 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/chest.js +74 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/address.js +116 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bool.js +59 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/bytes.js +90 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/int.js +90 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/key_hash.js +90 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/mutez.js +90 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/nat.js +93 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/string.js +48 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/comparable/timestamp.js +66 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/constant.js +80 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/contract.js +86 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/createToken.js +35 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/key.js +97 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/lambda.js +55 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/list.js +85 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/map.js +112 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/never.js +61 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/operation.js +39 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/option.js +88 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/or.js +282 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/pair.js +233 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-state.js +84 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.js +74 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/sapling-transaction.js +74 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/set.js +82 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/signature.js +82 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/ticket-deprecated.js +92 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/ticket.js +92 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/token.js +100 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/tokens.js +75 -0
- package/dist/lib/taquito-michelson-encoder/src/tokens/unit.js +52 -0
- package/dist/lib/taquito-michelson-encoder/src/version.js +8 -0
- package/dist/lib/taquito-rpc/src/opkind.js +49 -0
- package/dist/lib/taquito-rpc/src/rpc-client-interface.js +60 -0
- package/dist/lib/taquito-rpc/src/rpc-client-modules/rpc-cache.js +1118 -0
- package/dist/lib/taquito-rpc/src/taquito-rpc.js +990 -0
- package/dist/lib/taquito-rpc/src/types.js +114 -0
- package/dist/lib/taquito-rpc/src/utils/utils.js +65 -0
- package/dist/lib/taquito-rpc/src/version.js +8 -0
- package/dist/lib/taquito-signer/src/bls-key.js +104 -0
- package/dist/lib/taquito-signer/src/derivation-tools/ecdsa.js +156 -0
- package/dist/lib/taquito-signer/src/derivation-tools/ed25519.js +82 -0
- package/dist/lib/taquito-signer/src/derivation-tools/index.js +79 -0
- package/dist/lib/taquito-signer/src/derivation-tools/types.js +4 -0
- package/dist/lib/taquito-signer/src/derivation-tools/utils.js +16 -0
- package/dist/lib/taquito-signer/src/ec-key.js +196 -0
- package/dist/lib/taquito-signer/src/ed-key.js +130 -0
- package/dist/lib/taquito-signer/src/errors.js +77 -0
- package/dist/lib/taquito-signer/src/helpers.js +44 -0
- package/dist/lib/taquito-signer/src/in-memory-signer.js +240 -0
- package/dist/lib/taquito-signer/src/key-interface.js +6 -0
- package/dist/lib/taquito-signer/src/taquito-signer.js +28 -0
- package/dist/lib/taquito-signer/src/version.js +8 -0
- package/dist/lib/taquito-utils/src/constants.js +203 -0
- package/dist/lib/taquito-utils/src/encoding.js +606 -0
- package/dist/lib/taquito-utils/src/errors.js +45 -0
- package/dist/lib/taquito-utils/src/format.js +29 -0
- package/dist/lib/taquito-utils/src/taquito-utils.js +42 -0
- package/dist/lib/taquito-utils/src/validators.js +236 -0
- package/dist/lib/taquito-utils/src/verify-signature.js +136 -0
- package/dist/lib/taquito-utils/src/version.js +8 -0
- package/dist/lib/{taquito-wallet-connect.js → taquito-wallet-connect/src/taquito-wallet-connect.js} +50 -33
- package/dist/lib/taquito-wallet-connect/src/version.js +8 -0
- package/dist/taquito-wallet-connect.es6.js +46 -32
- package/dist/taquito-wallet-connect.es6.js.map +1 -1
- package/dist/taquito-wallet-connect.umd.js +46 -32
- package/dist/taquito-wallet-connect.umd.js.map +1 -1
- package/dist/types/taquito/src/batch/constants.d.ts +3 -0
- package/dist/types/taquito/src/batch/rpc-batch-provider.d.ts +139 -0
- package/dist/types/taquito/src/constants.d.ts +81 -0
- package/dist/types/taquito/src/context.d.ts +100 -0
- package/dist/types/taquito/src/contract/big-map.d.ts +35 -0
- package/dist/types/taquito/src/contract/compose.d.ts +5 -0
- package/dist/types/taquito/src/contract/constants.d.ts +1 -0
- package/dist/types/taquito/src/contract/contract-methods/contract-method-factory.d.ts +14 -0
- package/dist/types/taquito/src/contract/contract-methods/contract-method-interface.d.ts +28 -0
- package/dist/types/taquito/src/contract/contract-methods/contract-method-object-param.d.ts +39 -0
- package/dist/types/taquito/src/contract/contract-methods/contract-on-chain-view.d.ts +43 -0
- package/dist/types/taquito/src/contract/contract.d.ts +75 -0
- package/dist/types/taquito/src/contract/errors.d.ts +83 -0
- package/dist/types/taquito/src/contract/index.d.ts +11 -0
- package/dist/types/taquito/src/contract/interface.d.ts +254 -0
- package/dist/types/taquito/src/contract/manager-lambda.d.ts +73 -0
- package/dist/types/taquito/src/contract/prepare.d.ts +18 -0
- package/dist/types/taquito/src/contract/rpc-contract-provider.d.ts +270 -0
- package/dist/types/taquito/src/contract/sapling-state-abstraction.d.ts +17 -0
- package/dist/types/taquito/src/contract/semantic.d.ts +7 -0
- package/dist/types/taquito/src/contract/view_lambda.d.ts +34 -0
- package/dist/types/taquito/src/errors.d.ts +26 -0
- package/dist/types/taquito/src/estimate/errors.d.ts +8 -0
- package/dist/types/taquito/src/estimate/estimate-provider-interface.d.ts +153 -0
- package/dist/types/taquito/src/estimate/estimate.d.ts +111 -0
- package/dist/types/taquito/src/estimate/index.d.ts +4 -0
- package/dist/types/taquito/src/estimate/rpc-estimate-provider.d.ts +174 -0
- package/dist/types/taquito/src/extension/extension.d.ts +4 -0
- package/dist/types/taquito/src/forger/composite-forger.d.ts +6 -0
- package/dist/types/taquito/src/forger/errors.d.ts +16 -0
- package/dist/types/taquito/src/forger/rpc-forger.d.ts +7 -0
- package/dist/types/taquito/src/forger/taquito-local-forger.d.ts +8 -0
- package/dist/types/taquito/src/global-constants/default-global-constants-provider.d.ts +18 -0
- package/dist/types/taquito/src/global-constants/errors.d.ts +16 -0
- package/dist/types/taquito/src/global-constants/interface-global-constants-provider.d.ts +11 -0
- package/dist/types/taquito/src/global-constants/noop-global-constants-provider.d.ts +5 -0
- package/dist/types/taquito/src/import-key.d.ts +13 -0
- package/dist/types/taquito/src/injector/helper.d.ts +2 -0
- package/dist/types/taquito/src/injector/interface.d.ts +5 -0
- package/dist/types/taquito/src/injector/rpc-injector.d.ts +7 -0
- package/dist/types/taquito/src/operations/ballot-operation.d.ts +18 -0
- package/dist/types/taquito/src/operations/batch-operation.d.ts +19 -0
- package/dist/types/taquito/src/operations/delegate-operation.d.ts +24 -0
- package/dist/types/taquito/src/operations/drain-delegate-operation.d.ts +17 -0
- package/dist/types/taquito/src/operations/errors.d.ts +50 -0
- package/dist/types/taquito/src/operations/failing-noop-operation.d.ts +17 -0
- package/dist/types/taquito/src/operations/increase-paid-storage-operation.d.ts +23 -0
- package/dist/types/taquito/src/operations/index.d.ts +18 -0
- package/dist/types/taquito/src/operations/operations.d.ts +35 -0
- package/dist/types/taquito/src/operations/origination-operation.d.ts +35 -0
- package/dist/types/taquito/src/operations/proposals-operation.d.ts +17 -0
- package/dist/types/taquito/src/operations/register-global-constant-operation.d.ts +25 -0
- package/dist/types/taquito/src/operations/reveal-operation.d.ts +25 -0
- package/dist/types/taquito/src/operations/smart-rollup-add-messages-operation.d.ts +20 -0
- package/dist/types/taquito/src/operations/smart-rollup-execute-outbox-message-operation.d.ts +24 -0
- package/dist/types/taquito/src/operations/smart-rollup-originate-operation.d.ts +23 -0
- package/dist/types/taquito/src/operations/transaction-operation.d.ts +28 -0
- package/dist/types/taquito/src/operations/transfer-ticket-operation.d.ts +22 -0
- package/dist/types/taquito/src/operations/types.d.ts +823 -0
- package/dist/types/taquito/src/operations/update-companion-key-operation.d.ts +23 -0
- package/dist/types/taquito/src/operations/update-consensus-key-operation.d.ts +23 -0
- package/dist/types/taquito/src/packer/interface.d.ts +4 -0
- package/dist/types/taquito/src/packer/michel-codec-packer.d.ts +5 -0
- package/dist/types/taquito/src/packer/rpc-packer.d.ts +8 -0
- package/dist/types/taquito/src/parser/interface.d.ts +4 -0
- package/dist/types/taquito/src/parser/michel-codec-parser.d.ts +16 -0
- package/dist/types/taquito/src/parser/noop-parser.d.ts +5 -0
- package/dist/types/taquito/src/prepare/index.d.ts +2 -0
- package/dist/types/taquito/src/prepare/interface.d.ts +152 -0
- package/dist/types/taquito/src/prepare/prepare-provider.d.ts +187 -0
- package/dist/types/taquito/src/provider.d.ts +50 -0
- package/dist/types/taquito/src/read-provider/interface.d.ts +132 -0
- package/dist/types/taquito/src/read-provider/rpc-read-adapter.d.ts +130 -0
- package/dist/types/taquito/src/signer/errors.d.ts +8 -0
- package/dist/types/taquito/src/signer/noop.d.ts +11 -0
- package/dist/types/taquito/src/subscribe/create-observable-from-subscription.d.ts +4 -0
- package/dist/types/taquito/src/subscribe/errors.d.ts +18 -0
- package/dist/types/taquito/src/subscribe/filters.d.ts +6 -0
- package/dist/types/taquito/src/subscribe/interface.d.ts +48 -0
- package/dist/types/taquito/src/subscribe/observable-subscription.d.ts +21 -0
- package/dist/types/taquito/src/subscribe/polling-subcribe-provider.d.ts +23 -0
- package/dist/types/taquito/src/taquito.d.ts +248 -0
- package/dist/types/taquito/src/tz/interface.d.ts +20 -0
- package/dist/types/taquito/src/tz/rpc-tz-provider.d.ts +13 -0
- package/dist/types/taquito/src/version.d.ts +4 -0
- package/dist/types/taquito/src/wallet/batch-operation.d.ts +13 -0
- package/dist/types/taquito/src/wallet/delegation-operation.d.ts +12 -0
- package/dist/types/taquito/src/wallet/errors.d.ts +24 -0
- package/dist/types/taquito/src/wallet/increase-paid-storage-operation.d.ts +12 -0
- package/dist/types/taquito/src/wallet/index.d.ts +9 -0
- package/dist/types/taquito/src/wallet/interface.d.ts +66 -0
- package/dist/types/taquito/src/wallet/legacy.d.ts +21 -0
- package/dist/types/taquito/src/wallet/operation-factory.d.ts +32 -0
- package/dist/types/taquito/src/wallet/operation.d.ts +55 -0
- package/dist/types/taquito/src/wallet/origination-operation.d.ts +14 -0
- package/dist/types/taquito/src/wallet/receipt.d.ts +16 -0
- package/dist/types/taquito/src/wallet/register-global-constant-operation.d.ts +13 -0
- package/dist/types/taquito/src/wallet/transaction-operation.d.ts +12 -0
- package/dist/types/taquito/src/wallet/transfer-ticket-operation.d.ts +12 -0
- package/dist/types/taquito/src/wallet/wallet.d.ts +196 -0
- package/dist/types/taquito-core/src/errors.d.ts +213 -0
- package/dist/types/taquito-core/src/signer-interfaces.d.ts +38 -0
- package/dist/types/taquito-core/src/taquito-core.d.ts +6 -0
- package/dist/types/taquito-http-utils/src/errors.d.ts +63 -0
- package/dist/types/taquito-http-utils/src/status_code.d.ts +318 -0
- package/dist/types/taquito-http-utils/src/taquito-http-utils.d.ts +58 -0
- package/dist/types/taquito-http-utils/src/transport-errors.d.ts +28 -0
- package/dist/types/taquito-local-forging/src/codec.d.ts +79 -0
- package/dist/types/taquito-local-forging/src/constants.d.ts +75 -0
- package/dist/types/taquito-local-forging/src/decoder.d.ts +5 -0
- package/dist/types/taquito-local-forging/src/encoder.d.ts +4 -0
- package/dist/types/taquito-local-forging/src/errors.d.ts +109 -0
- package/dist/types/taquito-local-forging/src/interface.d.ts +9 -0
- package/dist/types/taquito-local-forging/src/michelson/codec.d.ts +49 -0
- package/dist/types/taquito-local-forging/src/protocols.d.ts +27 -0
- package/dist/types/taquito-local-forging/src/schema/operation.d.ts +198 -0
- package/dist/types/taquito-local-forging/src/taquito-local-forging.d.ts +27 -0
- package/dist/types/taquito-local-forging/src/uint8array-consumer.d.ts +10 -0
- package/dist/types/taquito-local-forging/src/utils.d.ts +3 -0
- package/dist/types/taquito-local-forging/src/validator.d.ts +13 -0
- package/dist/types/taquito-local-forging/src/version.d.ts +4 -0
- package/dist/types/taquito-michel-codec/src/base58.d.ts +13 -0
- package/dist/types/taquito-michel-codec/src/binary.d.ts +127 -0
- package/dist/types/taquito-michel-codec/src/errors.d.ts +57 -0
- package/dist/types/taquito-michel-codec/src/formatters.d.ts +6 -0
- package/dist/types/taquito-michel-codec/src/global-constants.d.ts +3 -0
- package/dist/types/taquito-michel-codec/src/macros.d.ts +13 -0
- package/dist/types/taquito-michel-codec/src/micheline-emitter.d.ts +17 -0
- package/dist/types/taquito-michel-codec/src/micheline-parser.d.ts +130 -0
- package/dist/types/taquito-michel-codec/src/micheline.d.ts +44 -0
- package/dist/types/taquito-michel-codec/src/michelson-contract.d.ts +24 -0
- package/dist/types/taquito-michel-codec/src/michelson-typecheck.d.ts +38 -0
- package/dist/types/taquito-michel-codec/src/michelson-types.d.ts +147 -0
- package/dist/types/taquito-michel-codec/src/michelson-validator.d.ts +66 -0
- package/dist/types/taquito-michel-codec/src/scan.d.ts +26 -0
- package/dist/types/taquito-michel-codec/src/taquito-michel-codec.d.ts +16 -0
- package/dist/types/taquito-michel-codec/src/utils.d.ts +76 -0
- package/dist/types/taquito-michel-codec/src/version.d.ts +4 -0
- package/dist/types/taquito-michelson-encoder/src/constants.d.ts +8 -0
- package/dist/types/taquito-michelson-encoder/src/errors.d.ts +17 -0
- package/dist/types/taquito-michelson-encoder/src/michelson-map.d.ts +82 -0
- package/dist/types/taquito-michelson-encoder/src/schema/errors.d.ts +83 -0
- package/dist/types/taquito-michelson-encoder/src/schema/event-schema.d.ts +12 -0
- package/dist/types/taquito-michelson-encoder/src/schema/parameter.d.ts +54 -0
- package/dist/types/taquito-michelson-encoder/src/schema/storage.d.ts +97 -0
- package/dist/types/taquito-michelson-encoder/src/schema/types.d.ts +105 -0
- package/dist/types/taquito-michelson-encoder/src/schema/view-schema.d.ts +53 -0
- package/dist/types/taquito-michelson-encoder/src/taquito-michelson-encoder.d.ts +16 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/bigmap.d.ts +51 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-fr.d.ts +51 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g1.d.ts +47 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/bls12-381-g2.d.ts +47 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/chain-id.d.ts +51 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/chest-key.d.ts +47 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/chest.d.ts +47 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/address.d.ts +61 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bool.d.ts +32 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/bytes.d.ts +52 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/int.d.ts +56 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/key_hash.d.ts +55 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/mutez.d.ts +53 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/nat.d.ts +55 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/string.d.ts +31 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/comparable/timestamp.d.ts +34 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/constant.d.ts +51 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/contract.d.ts +48 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/createToken.d.ts +18 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/key.d.ts +55 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/lambda.d.ts +24 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/list.d.ts +46 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/map.d.ts +47 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/never.d.ts +41 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/operation.d.ts +24 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/option.d.ts +37 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/or.d.ts +53 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/pair.d.ts +50 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-state.d.ts +44 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction-deprecated.d.ts +40 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/sapling-transaction.d.ts +40 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/set.d.ts +43 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/signature.d.ts +53 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/ticket-deprecated.d.ts +38 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/ticket.d.ts +38 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/token.d.ts +68 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/tokens.d.ts +36 -0
- package/dist/types/taquito-michelson-encoder/src/tokens/unit.d.ts +34 -0
- package/dist/types/taquito-michelson-encoder/src/version.d.ts +4 -0
- package/dist/types/taquito-rpc/src/opkind.d.ts +45 -0
- package/dist/types/taquito-rpc/src/rpc-client-interface.d.ts +126 -0
- package/dist/types/taquito-rpc/src/rpc-client-modules/rpc-cache.d.ts +473 -0
- package/dist/types/taquito-rpc/src/taquito-rpc.d.ts +483 -0
- package/dist/types/taquito-rpc/src/types.d.ts +2362 -0
- package/dist/types/taquito-rpc/src/utils/utils.d.ts +14 -0
- package/dist/types/taquito-rpc/src/version.d.ts +4 -0
- package/dist/types/taquito-signer/src/bls-key.d.ts +21 -0
- package/dist/types/taquito-signer/src/derivation-tools/ecdsa.d.ts +49 -0
- package/dist/types/taquito-signer/src/derivation-tools/ed25519.d.ts +33 -0
- package/dist/types/taquito-signer/src/derivation-tools/index.d.ts +12 -0
- package/dist/types/taquito-signer/src/derivation-tools/types.d.ts +10 -0
- package/dist/types/taquito-signer/src/derivation-tools/utils.d.ts +1 -0
- package/dist/types/taquito-signer/src/ec-key.d.ts +42 -0
- package/dist/types/taquito-signer/src/ed-key.d.ts +39 -0
- package/dist/types/taquito-signer/src/errors.d.ts +51 -0
- package/dist/types/taquito-signer/src/helpers.d.ts +10 -0
- package/dist/types/taquito-signer/src/in-memory-signer.d.ts +56 -0
- package/dist/types/taquito-signer/src/key-interface.d.ts +37 -0
- package/dist/types/taquito-signer/src/taquito-signer.d.ts +10 -0
- package/dist/types/taquito-signer/src/version.d.ts +4 -0
- package/dist/types/taquito-utils/src/constants.d.ts +78 -0
- package/dist/types/taquito-utils/src/encoding.d.ts +184 -0
- package/dist/types/taquito-utils/src/errors.d.ts +20 -0
- package/dist/types/taquito-utils/src/format.d.ts +4 -0
- package/dist/types/taquito-utils/src/taquito-utils.d.ts +11 -0
- package/dist/types/taquito-utils/src/validators.d.ts +167 -0
- package/dist/types/taquito-utils/src/verify-signature.d.ts +22 -0
- package/dist/types/taquito-utils/src/version.d.ts +4 -0
- package/dist/types/{taquito-wallet-connect.d.ts → taquito-wallet-connect/src/taquito-wallet-connect.d.ts} +4 -2
- package/dist/types/taquito-wallet-connect/src/version.d.ts +4 -0
- package/package.json +9 -35
- /package/dist/lib/{errors.js → taquito-wallet-connect/src/errors.js} +0 -0
- /package/dist/lib/{types.js → taquito-wallet-connect/src/types.js} +0 -0
- /package/dist/types/{version.d.ts → taquito-http-utils/src/version.d.ts} +0 -0
- /package/dist/types/{errors.d.ts → taquito-wallet-connect/src/errors.d.ts} +0 -0
- /package/dist/types/{types.d.ts → taquito-wallet-connect/src/types.d.ts} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
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;
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
@@ -0,0 +1,72 @@
|
|
|
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;
|
|
@@ -0,0 +1,111 @@
|
|
|
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;
|
|
@@ -0,0 +1,158 @@
|
|
|
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;
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.InvalidBalanceError = exports.OriginationParameterError = exports.RevealOperationError = exports.InvalidViewSimulationContext = exports.validateAndExtractFailwith = exports.ViewSimulationError = exports.InvalidInitParameter = exports.InvalidCodeParameter = exports.InvalidDelegationSource = exports.InvalidParameterError = void 0;
|
|
4
|
+
const core_1 = require("@taquito/core");
|
|
5
|
+
/**
|
|
6
|
+
* @category Error
|
|
7
|
+
* Error that indicates invalid smart contract parameters being passed or used
|
|
8
|
+
*/
|
|
9
|
+
class InvalidParameterError extends core_1.ParameterValidationError {
|
|
10
|
+
constructor(smartContractMethodName, sigs, invalidParams) {
|
|
11
|
+
super();
|
|
12
|
+
this.smartContractMethodName = smartContractMethodName;
|
|
13
|
+
this.sigs = sigs;
|
|
14
|
+
this.invalidParams = invalidParams;
|
|
15
|
+
this.name = 'InvalidParameterError';
|
|
16
|
+
this.message = `${smartContractMethodName} Received ${invalidParams.length} arguments while expecting one of the following signatures (${JSON.stringify(sigs)})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.InvalidParameterError = InvalidParameterError;
|
|
20
|
+
/**
|
|
21
|
+
* @category Error
|
|
22
|
+
* Error that indicates an invalid delegation source contract address being passed or used
|
|
23
|
+
*/
|
|
24
|
+
class InvalidDelegationSource extends core_1.ParameterValidationError {
|
|
25
|
+
constructor(source) {
|
|
26
|
+
super();
|
|
27
|
+
this.source = source;
|
|
28
|
+
this.name = `InvalidDelegationSource`;
|
|
29
|
+
this.message = `Since Babylon delegation source can no longer be a contract address ${source}. Please use the smart contract abstraction to set your delegate.`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
exports.InvalidDelegationSource = InvalidDelegationSource;
|
|
33
|
+
/**
|
|
34
|
+
* @category Error
|
|
35
|
+
* Error that indicates an invalid smart contract code parameter being passed or used
|
|
36
|
+
*/
|
|
37
|
+
class InvalidCodeParameter extends core_1.ParameterValidationError {
|
|
38
|
+
constructor(message, data) {
|
|
39
|
+
super();
|
|
40
|
+
this.message = message;
|
|
41
|
+
this.data = data;
|
|
42
|
+
this.name = 'InvalidCodeParameter';
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.InvalidCodeParameter = InvalidCodeParameter;
|
|
46
|
+
/**
|
|
47
|
+
* @category Error
|
|
48
|
+
* Error that indicates invalid smart contract init parameter being passed or used
|
|
49
|
+
*/
|
|
50
|
+
class InvalidInitParameter extends core_1.ParameterValidationError {
|
|
51
|
+
constructor(message, data) {
|
|
52
|
+
super();
|
|
53
|
+
this.message = message;
|
|
54
|
+
this.data = data;
|
|
55
|
+
this.name = 'InvalidInitParameter';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
exports.InvalidInitParameter = InvalidInitParameter;
|
|
59
|
+
/**
|
|
60
|
+
* @category Error
|
|
61
|
+
* Error that indicates a failure when conducting a view simulation
|
|
62
|
+
*/
|
|
63
|
+
class ViewSimulationError extends core_1.RpcError {
|
|
64
|
+
constructor(message, viewName, failWith, cause) {
|
|
65
|
+
super();
|
|
66
|
+
this.message = message;
|
|
67
|
+
this.viewName = viewName;
|
|
68
|
+
this.failWith = failWith;
|
|
69
|
+
this.cause = cause;
|
|
70
|
+
this.name = 'ViewSimulationError';
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
exports.ViewSimulationError = ViewSimulationError;
|
|
74
|
+
const validateAndExtractFailwith = (error) => {
|
|
75
|
+
if (isJsonString(error.body)) {
|
|
76
|
+
const parsedError = JSON.parse(error.body);
|
|
77
|
+
if (Array.isArray(parsedError) && 'with' in parsedError[parsedError.length - 1]) {
|
|
78
|
+
return parsedError[parsedError.length - 1].with;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
exports.validateAndExtractFailwith = validateAndExtractFailwith;
|
|
83
|
+
const isJsonString = (str) => {
|
|
84
|
+
try {
|
|
85
|
+
JSON.parse(str);
|
|
86
|
+
}
|
|
87
|
+
catch (e) {
|
|
88
|
+
return false;
|
|
89
|
+
}
|
|
90
|
+
return true;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* @category Error
|
|
94
|
+
* Error that indicates invalid or unconfigured context when executing a view
|
|
95
|
+
*/
|
|
96
|
+
class InvalidViewSimulationContext extends core_1.ParameterValidationError {
|
|
97
|
+
constructor(info) {
|
|
98
|
+
super();
|
|
99
|
+
this.info = info;
|
|
100
|
+
this.name = 'InvalidViewSimulationContext';
|
|
101
|
+
this.message = `${info} Please configure the context of the view execution in the executeView method.`;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.InvalidViewSimulationContext = InvalidViewSimulationContext;
|
|
105
|
+
/**
|
|
106
|
+
* @category Error
|
|
107
|
+
* Error that indicates a mistake happening during the reveal operation
|
|
108
|
+
*/
|
|
109
|
+
class RevealOperationError extends core_1.RpcError {
|
|
110
|
+
constructor(message) {
|
|
111
|
+
super();
|
|
112
|
+
this.message = message;
|
|
113
|
+
this.name = 'RevealOperationError';
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.RevealOperationError = RevealOperationError;
|
|
117
|
+
/**
|
|
118
|
+
* @category Error
|
|
119
|
+
* Error that indicates a mistake in the parameters in the preparation of an Origination operation
|
|
120
|
+
*/
|
|
121
|
+
class OriginationParameterError extends core_1.ParameterValidationError {
|
|
122
|
+
constructor(message) {
|
|
123
|
+
super();
|
|
124
|
+
this.message = message;
|
|
125
|
+
this.name;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
exports.OriginationParameterError = OriginationParameterError;
|
|
129
|
+
/**
|
|
130
|
+
* @category Error
|
|
131
|
+
* Error that indicates an invalid balance being passed or used
|
|
132
|
+
*/
|
|
133
|
+
class InvalidBalanceError extends core_1.ParameterValidationError {
|
|
134
|
+
constructor(message) {
|
|
135
|
+
super();
|
|
136
|
+
this.message = message;
|
|
137
|
+
this.name = 'InvalidBalanceError';
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
exports.InvalidBalanceError = InvalidBalanceError;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.smartContractAbstractionSemantic = exports.compose = void 0;
|
|
18
|
+
__exportStar(require("./contract"), exports);
|
|
19
|
+
__exportStar(require("./errors"), exports);
|
|
20
|
+
__exportStar(require("./interface"), exports);
|
|
21
|
+
__exportStar(require("./manager-lambda"), exports);
|
|
22
|
+
__exportStar(require("./prepare"), exports);
|
|
23
|
+
__exportStar(require("./view_lambda"), exports);
|
|
24
|
+
var compose_1 = require("./compose");
|
|
25
|
+
Object.defineProperty(exports, "compose", { enumerable: true, get: function () { return compose_1.compose; } });
|
|
26
|
+
__exportStar(require("./contract-methods/contract-method-interface"), exports);
|
|
27
|
+
__exportStar(require("./contract-methods/contract-method-object-param"), exports);
|
|
28
|
+
__exportStar(require("./sapling-state-abstraction"), exports);
|
|
29
|
+
var semantic_1 = require("./semantic");
|
|
30
|
+
Object.defineProperty(exports, "smartContractAbstractionSemantic", { enumerable: true, get: function () { return semantic_1.smartContractAbstractionSemantic; } });
|