@airgap/coinlib-core 0.13.45-beta.3 → 0.13.45-beta.4
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/actions/Action.js +83 -30
- package/actions/Action.js.map +1 -1
- package/actions/LinkedAction.js +82 -18
- package/actions/LinkedAction.js.map +1 -1
- package/actions/RepeatableAction.js +83 -20
- package/actions/RepeatableAction.js.map +1 -1
- package/actions/SimpleAction.js +74 -12
- package/actions/SimpleAction.js.map +1 -1
- package/actions/StateMachine.js +17 -16
- package/actions/StateMachine.js.map +1 -1
- package/data/KeyPair.d.ts +1 -0
- package/data/Lazy.js +64 -15
- package/data/Lazy.js.map +1 -1
- package/data/RPCBody.js +6 -3
- package/data/RPCBody.js.map +1 -1
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +12 -12
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +130 -88
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -1
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +3 -3
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +61 -57
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -1
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +96 -96
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +2 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -1
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +10 -8
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +28 -22
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +10 -9
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +11 -10
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +8 -7
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -1
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +3 -3
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +63 -61
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +4 -4
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +63 -61
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +3 -2
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +111 -111
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +15 -15
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +76 -47
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +61 -46
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +106 -61
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +6 -6
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +100 -95
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +33 -33
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +9 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +75 -46
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +70 -45
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +41 -41
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +4 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +63 -58
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +33 -30
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +20 -18
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +12 -5
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +13 -13
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +78 -78
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +45 -45
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +76 -75
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +178 -115
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +9 -6
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +83 -78
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +36 -27
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +26 -25
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -1
- package/dependencies/src/cosmjs/index.d.ts +230 -14
- package/dependencies/src/cosmjs/index.js +480 -373
- package/dependencies/src/cosmjs/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.js +19 -15
- package/dependencies/src/eciesjs-0.3.9/src/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +28 -37
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +30 -38
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +24 -33
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +34 -42
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +10 -6
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
- package/errors/coinlib-error.d.ts +2 -1
- package/errors/coinlib-error.js +38 -16
- package/errors/coinlib-error.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.js +148 -89
- package/errors/index.js.map +1 -1
- package/index.js +19 -19
- package/index.js.map +1 -1
- package/interfaces/IAirGapSignedTransaction.d.ts +1 -1
- package/interfaces/IAirGapTransaction.js +3 -3
- package/interfaces/IAirGapTransaction.js.map +1 -1
- package/networks.js +9 -9
- package/networks.js.map +1 -1
- package/package.json +1 -1
- package/protocols/BlockExplorerProtocol.js +54 -7
- package/protocols/BlockExplorerProtocol.js.map +1 -1
- package/protocols/CryptoClient.js +78 -19
- package/protocols/CryptoClient.js.map +1 -1
- package/protocols/Ed25519CryptoClient.js +98 -30
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinSubProtocol.js +1 -1
- package/protocols/ICoinSubProtocol.js.map +1 -1
- package/protocols/NonExtendedProtocol.js +29 -26
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.js +73 -9
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.js +76 -12
- package/protocols/Sr25519CryptoClient.js.map +1 -1
- package/utils/AES.js +132 -81
- package/utils/AES.js.map +1 -1
- package/utils/ErrorWithData.js +23 -5
- package/utils/ErrorWithData.js.map +1 -1
- package/utils/Network.js +1 -1
- package/utils/Network.js.map +1 -1
- package/utils/ProtocolBlockExplorer.js +4 -3
- package/utils/ProtocolBlockExplorer.js.map +1 -1
- package/utils/ProtocolNetwork.js +16 -11
- package/utils/ProtocolNetwork.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +3 -1
- package/utils/ProtocolSymbols.js +8 -6
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/array.js +15 -14
- package/utils/array.js.map +1 -1
- package/utils/assert.js +12 -8
- package/utils/assert.js.map +1 -1
- package/utils/base64Check.d.ts +1 -0
- package/utils/base64Check.js +15 -15
- package/utils/base64Check.js.map +1 -1
- package/utils/blake2b.js +14 -11
- package/utils/blake2b.js.map +1 -1
- package/utils/buffer.d.ts +1 -0
- package/utils/buffer.js +1 -1
- package/utils/buffer.js.map +1 -1
- package/utils/cache.js +87 -38
- package/utils/cache.js.map +1 -1
- package/utils/error.js +3 -2
- package/utils/error.js.map +1 -1
- package/utils/hex.d.ts +2 -1
- package/utils/hex.js +38 -31
- package/utils/hex.js.map +1 -1
- package/utils/interfaces.js +4 -3
- package/utils/interfaces.js.map +1 -1
- package/utils/object.js +7 -5
- package/utils/object.js.map +1 -1
- package/utils/padStart.js +2 -1
- package/utils/padStart.js.map +1 -1
- package/utils/remote-data/HttpRemoteData.js +107 -24
- package/utils/remote-data/HttpRemoteData.js.map +1 -1
- package/utils/remote-data/IpfsRemoteData.js +116 -32
- package/utils/remote-data/IpfsRemoteData.js.map +1 -1
- package/utils/remote-data/RemoteData.d.ts +1 -0
- package/utils/remote-data/RemoteData.js +4 -3
- package/utils/remote-data/RemoteData.js.map +1 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
- package/utils/remote-data/RemoteDataFactory.js +20 -13
- package/utils/remote-data/RemoteDataFactory.js.map +1 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +1 -0
- package/utils/remote-data/Sha256RemoteData.js +117 -44
- package/utils/remote-data/Sha256RemoteData.js.map +1 -1
- package/utils/string.js +9 -8
- package/utils/string.js.map +1 -1
- package/utils/type.js +4 -3
- package/utils/type.js.map +1 -1
- package/utils/xxhash.d.ts +1 -0
- package/utils/xxhash.js +11 -9
- package/utils/xxhash.js.map +1 -1
- package/wallet/AirGapCoinWallet.js +183 -64
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +201 -88
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.js +165 -48
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.js +145 -58
- package/wallet/AirGapWallet.js.map +1 -1
package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js
CHANGED
|
@@ -1,53 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.decoders = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.decoders = {
|
|
10
|
-
[constants_1.CODEC.SECRET]
|
|
11
|
-
[constants_1.CODEC.RAW]
|
|
12
|
-
[constants_1.CODEC.TZ1]
|
|
13
|
-
[constants_1.CODEC.BRANCH]
|
|
14
|
-
[constants_1.CODEC.ZARITH]
|
|
15
|
-
[constants_1.CODEC.PUBLIC_KEY]
|
|
16
|
-
[constants_1.CODEC.PKH]
|
|
17
|
-
[constants_1.CODEC.DELEGATE]
|
|
18
|
-
[constants_1.CODEC.INT32]
|
|
19
|
-
[constants_1.CODEC.SCRIPT]
|
|
20
|
-
[constants_1.CODEC.BALLOT_STATEMENT]
|
|
21
|
-
[constants_1.CODEC.PROPOSAL]
|
|
22
|
-
[constants_1.CODEC.PROPOSAL_ARR]
|
|
23
|
-
[constants_1.CODEC.PARAMETERS]
|
|
24
|
-
[constants_1.CODEC.ADDRESS]
|
|
25
|
-
[constants_1.CODEC.SMART_CONTRACT_ADDRESS]
|
|
26
|
-
[constants_1.CODEC.VALUE]
|
|
27
|
-
[constants_1.CODEC.INT16]
|
|
28
|
-
[constants_1.CODEC.BLOCK_PAYLOAD_HASH]
|
|
29
|
-
[constants_1.CODEC.ENTRYPOINT]
|
|
30
|
-
[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]
|
|
31
|
-
[constants_1.CODEC.TX_ROLLUP_ID]
|
|
32
|
-
[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]
|
|
33
|
-
[constants_1.CODEC.BURN_LIMIT]
|
|
34
|
-
|
|
5
|
+
var codec_1 = require("./codec");
|
|
6
|
+
var constants_1 = require("./constants");
|
|
7
|
+
var codec_2 = require("./michelson/codec");
|
|
8
|
+
var operation_1 = require("./schema/operation");
|
|
9
|
+
var utils_1 = require("./utils");
|
|
10
|
+
exports.decoders = (_a = {},
|
|
11
|
+
_a[constants_1.CODEC.SECRET] = function (val) { return (0, utils_1.toHexString)(val.consume(20)); },
|
|
12
|
+
_a[constants_1.CODEC.RAW] = function (val) { return (0, utils_1.toHexString)(val.consume(32)); },
|
|
13
|
+
_a[constants_1.CODEC.TZ1] = codec_1.tz1Decoder,
|
|
14
|
+
_a[constants_1.CODEC.BRANCH] = codec_1.branchDecoder,
|
|
15
|
+
_a[constants_1.CODEC.ZARITH] = codec_1.zarithDecoder,
|
|
16
|
+
_a[constants_1.CODEC.PUBLIC_KEY] = codec_1.publicKeyDecoder,
|
|
17
|
+
_a[constants_1.CODEC.PKH] = codec_1.pkhDecoder,
|
|
18
|
+
_a[constants_1.CODEC.DELEGATE] = codec_1.delegateDecoder,
|
|
19
|
+
_a[constants_1.CODEC.INT32] = codec_1.int32Decoder,
|
|
20
|
+
_a[constants_1.CODEC.SCRIPT] = codec_2.scriptDecoder,
|
|
21
|
+
_a[constants_1.CODEC.BALLOT_STATEMENT] = codec_1.ballotDecoder,
|
|
22
|
+
_a[constants_1.CODEC.PROPOSAL] = codec_1.proposalDecoder,
|
|
23
|
+
_a[constants_1.CODEC.PROPOSAL_ARR] = codec_1.proposalsDecoder,
|
|
24
|
+
_a[constants_1.CODEC.PARAMETERS] = codec_1.parametersDecoder,
|
|
25
|
+
_a[constants_1.CODEC.ADDRESS] = codec_1.addressDecoder,
|
|
26
|
+
_a[constants_1.CODEC.SMART_CONTRACT_ADDRESS] = codec_1.smartContractAddressDecoder,
|
|
27
|
+
_a[constants_1.CODEC.VALUE] = codec_1.valueParameterDecoder,
|
|
28
|
+
_a[constants_1.CODEC.INT16] = codec_1.int16Decoder,
|
|
29
|
+
_a[constants_1.CODEC.BLOCK_PAYLOAD_HASH] = codec_1.blockPayloadHashDecoder,
|
|
30
|
+
_a[constants_1.CODEC.ENTRYPOINT] = codec_1.entrypointNameDecoder,
|
|
31
|
+
_a[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM] = codec_1.txRollupOriginationParamDecoder,
|
|
32
|
+
_a[constants_1.CODEC.TX_ROLLUP_ID] = codec_1.txRollupIdDecoder,
|
|
33
|
+
_a[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT] = codec_1.txRollupBatchContentDecoder,
|
|
34
|
+
_a[constants_1.CODEC.BURN_LIMIT] = codec_1.burnLimitDecoder,
|
|
35
|
+
_a);
|
|
35
36
|
exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
|
|
36
|
-
exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val)
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
exports.decoders[constants_1.CODEC.
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
exports.decoders[constants_1.CODEC.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
exports.decoders[constants_1.CODEC.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
exports.decoders[constants_1.CODEC.
|
|
49
|
-
exports.decoders[constants_1.CODEC.
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = function (val) {
|
|
38
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
|
|
39
|
+
};
|
|
40
|
+
exports.decoders[constants_1.CODEC.OP_DELEGATION] = function (val) {
|
|
41
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DelegationSchema)(val);
|
|
42
|
+
};
|
|
43
|
+
exports.decoders[constants_1.CODEC.OP_TRANSACTION] = function (val) {
|
|
44
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransactionSchema)(val);
|
|
45
|
+
};
|
|
46
|
+
exports.decoders[constants_1.CODEC.OP_ORIGINATION] = function (val) {
|
|
47
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
|
|
48
|
+
};
|
|
49
|
+
exports.decoders[constants_1.CODEC.OP_BALLOT] = function (val) { return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val); };
|
|
50
|
+
exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = function (val) {
|
|
51
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
|
|
52
|
+
};
|
|
53
|
+
exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = function (val) {
|
|
54
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
|
|
55
|
+
};
|
|
56
|
+
exports.decoders[constants_1.CODEC.OP_PROPOSALS] = function (val) {
|
|
57
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
|
|
58
|
+
};
|
|
59
|
+
exports.decoders[constants_1.CODEC.OP_REVEAL] = function (val) { return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val); };
|
|
60
|
+
exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = function (val) {
|
|
61
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
|
|
62
|
+
};
|
|
63
|
+
exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = function (val) {
|
|
64
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransferTicketSchema)(val);
|
|
65
|
+
};
|
|
66
|
+
exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = function (val) {
|
|
67
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
|
|
68
|
+
};
|
|
69
|
+
exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = function (val) {
|
|
70
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
|
|
71
|
+
};
|
|
72
|
+
exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = function (val) {
|
|
73
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
|
|
74
|
+
};
|
|
75
|
+
exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = function (val) {
|
|
76
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
|
|
77
|
+
};
|
|
78
|
+
exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = function (val) {
|
|
79
|
+
return (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DrainDelegateSchema)(val);
|
|
80
|
+
};
|
|
52
81
|
exports.decoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ManagerOperationSchema);
|
|
53
82
|
//# sourceMappingURL=decoder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"decoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.ts"],"names":[],"mappings":";;;;AAAA,iCAsBiB;AACjB,yCAAoC;AACpC,2CAAkD;AAClD,gDAoB4B;AAE5B,iCAAsC;AAIzB,QAAA,QAAQ;IACnB,GAAC,iBAAK,CAAC,MAAM,IAAG,UAAC,GAAG,IAAK,OAAA,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAA5B,CAA4B;IACrD,GAAC,iBAAK,CAAC,GAAG,IAAG,UAAC,GAAG,IAAK,OAAA,IAAA,mBAAW,EAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,EAA5B,CAA4B;IAClD,GAAC,iBAAK,CAAC,GAAG,IAAG,kBAAU;IACvB,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa;IAC7B,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa;IAC7B,GAAC,iBAAK,CAAC,UAAU,IAAG,wBAAgB;IACpC,GAAC,iBAAK,CAAC,GAAG,IAAG,kBAAU;IACvB,GAAC,iBAAK,CAAC,QAAQ,IAAG,uBAAe;IACjC,GAAC,iBAAK,CAAC,KAAK,IAAG,oBAA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ito-local-forging/src/encoder.js
CHANGED
|
@@ -1,52 +1,67 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.encoders = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
exports.encoders = {
|
|
9
|
-
[constants_1.CODEC.SECRET]
|
|
10
|
-
[constants_1.CODEC.RAW]
|
|
11
|
-
[constants_1.CODEC.TZ1]
|
|
12
|
-
[constants_1.CODEC.BRANCH]
|
|
13
|
-
[constants_1.CODEC.ZARITH]
|
|
14
|
-
[constants_1.CODEC.PUBLIC_KEY]
|
|
15
|
-
[constants_1.CODEC.PKH]
|
|
16
|
-
[constants_1.CODEC.DELEGATE]
|
|
17
|
-
[constants_1.CODEC.SCRIPT]
|
|
18
|
-
[constants_1.CODEC.BALLOT_STATEMENT]
|
|
19
|
-
[constants_1.CODEC.PROPOSAL]
|
|
20
|
-
[constants_1.CODEC.PROPOSAL_ARR]
|
|
21
|
-
[constants_1.CODEC.INT32]
|
|
22
|
-
[constants_1.CODEC.PARAMETERS]
|
|
23
|
-
[constants_1.CODEC.ADDRESS]
|
|
24
|
-
[constants_1.CODEC.SMART_CONTRACT_ADDRESS]
|
|
25
|
-
[constants_1.CODEC.VALUE]
|
|
26
|
-
[constants_1.CODEC.INT16]
|
|
27
|
-
[constants_1.CODEC.BLOCK_PAYLOAD_HASH]
|
|
28
|
-
[constants_1.CODEC.ENTRYPOINT]
|
|
29
|
-
[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]
|
|
30
|
-
[constants_1.CODEC.TX_ROLLUP_ID]
|
|
31
|
-
[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]
|
|
32
|
-
[constants_1.CODEC.BURN_LIMIT]
|
|
33
|
-
|
|
5
|
+
var codec_1 = require("./codec");
|
|
6
|
+
var constants_1 = require("./constants");
|
|
7
|
+
var codec_2 = require("./michelson/codec");
|
|
8
|
+
var operation_1 = require("./schema/operation");
|
|
9
|
+
exports.encoders = (_a = {},
|
|
10
|
+
_a[constants_1.CODEC.SECRET] = function (val) { return val; },
|
|
11
|
+
_a[constants_1.CODEC.RAW] = function (val) { return val; },
|
|
12
|
+
_a[constants_1.CODEC.TZ1] = codec_1.tz1Encoder,
|
|
13
|
+
_a[constants_1.CODEC.BRANCH] = codec_1.branchEncoder,
|
|
14
|
+
_a[constants_1.CODEC.ZARITH] = codec_1.zarithEncoder,
|
|
15
|
+
_a[constants_1.CODEC.PUBLIC_KEY] = codec_1.publicKeyEncoder,
|
|
16
|
+
_a[constants_1.CODEC.PKH] = codec_1.pkhEncoder,
|
|
17
|
+
_a[constants_1.CODEC.DELEGATE] = codec_1.delegateEncoder,
|
|
18
|
+
_a[constants_1.CODEC.SCRIPT] = codec_2.scriptEncoder,
|
|
19
|
+
_a[constants_1.CODEC.BALLOT_STATEMENT] = codec_1.ballotEncoder,
|
|
20
|
+
_a[constants_1.CODEC.PROPOSAL] = codec_1.proposalEncoder,
|
|
21
|
+
_a[constants_1.CODEC.PROPOSAL_ARR] = codec_1.proposalsEncoder,
|
|
22
|
+
_a[constants_1.CODEC.INT32] = codec_1.int32Encoder,
|
|
23
|
+
_a[constants_1.CODEC.PARAMETERS] = codec_1.parametersEncoder,
|
|
24
|
+
_a[constants_1.CODEC.ADDRESS] = codec_1.addressEncoder,
|
|
25
|
+
_a[constants_1.CODEC.SMART_CONTRACT_ADDRESS] = codec_1.smartContractAddressEncoder,
|
|
26
|
+
_a[constants_1.CODEC.VALUE] = codec_1.valueParameterEncoder,
|
|
27
|
+
_a[constants_1.CODEC.INT16] = codec_1.int16Encoder,
|
|
28
|
+
_a[constants_1.CODEC.BLOCK_PAYLOAD_HASH] = codec_1.blockPayloadHashEncoder,
|
|
29
|
+
_a[constants_1.CODEC.ENTRYPOINT] = codec_1.entrypointNameEncoder,
|
|
30
|
+
_a[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM] = codec_1.txRollupOriginationParamEncoder,
|
|
31
|
+
_a[constants_1.CODEC.TX_ROLLUP_ID] = codec_1.txRollupIdEncoder,
|
|
32
|
+
_a[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT] = codec_1.txRollupBatchContentEncoder,
|
|
33
|
+
_a[constants_1.CODEC.BURN_LIMIT] = codec_1.burnLimitEncoder,
|
|
34
|
+
_a);
|
|
34
35
|
exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
|
|
35
|
-
exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val)
|
|
36
|
-
exports.encoders[constants_1.CODEC.OP_DELEGATION] = (val)
|
|
37
|
-
exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val)
|
|
38
|
-
exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val)
|
|
39
|
-
exports.encoders[constants_1.CODEC.OP_BALLOT] = (val)
|
|
40
|
-
exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val)
|
|
41
|
-
exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val)
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
exports.encoders[constants_1.CODEC.
|
|
45
|
-
exports.encoders[constants_1.CODEC.
|
|
46
|
-
exports.encoders[constants_1.CODEC.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
exports.encoders[constants_1.CODEC.
|
|
50
|
-
|
|
36
|
+
exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val); };
|
|
37
|
+
exports.encoders[constants_1.CODEC.OP_DELEGATION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DelegationSchema)(val); };
|
|
38
|
+
exports.encoders[constants_1.CODEC.OP_TRANSACTION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransactionSchema)(val); };
|
|
39
|
+
exports.encoders[constants_1.CODEC.OP_ORIGINATION] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val); };
|
|
40
|
+
exports.encoders[constants_1.CODEC.OP_BALLOT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val); };
|
|
41
|
+
exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val); };
|
|
42
|
+
exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = function (val) {
|
|
43
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
|
|
44
|
+
};
|
|
45
|
+
exports.encoders[constants_1.CODEC.OP_PROPOSALS] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val); };
|
|
46
|
+
exports.encoders[constants_1.CODEC.OP_REVEAL] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val); };
|
|
47
|
+
exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = function (val) {
|
|
48
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
|
|
49
|
+
};
|
|
50
|
+
exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = function (val) {
|
|
51
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransferTicketSchema)(val);
|
|
52
|
+
};
|
|
53
|
+
exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = function (val) {
|
|
54
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
|
|
55
|
+
};
|
|
56
|
+
exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = function (val) {
|
|
57
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
|
|
58
|
+
};
|
|
59
|
+
exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = function (val) {
|
|
60
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
|
|
61
|
+
};
|
|
62
|
+
exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = function (val) {
|
|
63
|
+
return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
|
|
64
|
+
};
|
|
65
|
+
exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = function (val) { return (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DrainDelegateSchema)(val); };
|
|
51
66
|
exports.encoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ManagerOperationSchema);
|
|
52
67
|
//# sourceMappingURL=encoder.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"encoder.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.ts"],"names":[],"mappings":";;;;AAAA,iCAsBiB;AACjB,yCAAoC;AACpC,2CAAkD;AAClD,gDAoB4B;AAIf,QAAA,QAAQ;IACnB,GAAC,iBAAK,CAAC,MAAM,IAAG,UAAC,GAAW,IAAK,OAAA,GAAG,EAAH,CAAG;IACpC,GAAC,iBAAK,CAAC,GAAG,IAAG,UAAC,GAAW,IAAK,OAAA,GAAG,EAAH,CAAG;IACjC,GAAC,iBAAK,CAAC,GAAG,IAAG,kBAAU;IACvB,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa;IAC7B,GAAC,iBAAK,CAAC,MAAM,IAAG,qBAAa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AAG,CAAC,EAAjD,CAAiD,CAAC;AACpG,gBAAQ,CAAC,iBAAK,CAAC,OAAO,CAAC,GAAG,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,kCAAsB,CAAC,CAAC"}
|
package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js
CHANGED
|
@@ -1,124 +1,169 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
2
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
18
|
exports.UnsupportedOperationError = exports.OperationEncodingError = exports.OperationDecodingError = exports.UnexpectedMichelsonValueError = exports.InvalidHexStringError = exports.DecodeBallotValueError = exports.InvalidBallotValueError = exports.OversizedEntryPointError = exports.InvalidOperationSchemaError = exports.InvalidBlockHashError = void 0;
|
|
4
|
-
|
|
19
|
+
var constants_1 = require("./constants");
|
|
5
20
|
/**
|
|
6
21
|
* @category Error
|
|
7
22
|
* @description Error that indicates an invalid block hash being passed or used
|
|
8
23
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this
|
|
13
|
-
|
|
24
|
+
var InvalidBlockHashError = /** @class */ (function (_super) {
|
|
25
|
+
__extends(InvalidBlockHashError, _super);
|
|
26
|
+
function InvalidBlockHashError(message) {
|
|
27
|
+
var _this = _super.call(this, message) || this;
|
|
28
|
+
_this.message = message;
|
|
29
|
+
_this.name = 'InvalidBlockHashError';
|
|
30
|
+
return _this;
|
|
14
31
|
}
|
|
15
|
-
|
|
32
|
+
return InvalidBlockHashError;
|
|
33
|
+
}(Error));
|
|
16
34
|
exports.InvalidBlockHashError = InvalidBlockHashError;
|
|
17
35
|
/**
|
|
18
36
|
* @category Error
|
|
19
37
|
* @description Error that indicates an invalid operation schema being passed or used
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this
|
|
24
|
-
|
|
38
|
+
*/ var InvalidOperationSchemaError = /** @class */ (function (_super) {
|
|
39
|
+
__extends(InvalidOperationSchemaError, _super);
|
|
40
|
+
function InvalidOperationSchemaError(message) {
|
|
41
|
+
var _this = _super.call(this, message) || this;
|
|
42
|
+
_this.message = message;
|
|
43
|
+
_this.name = 'InvalidOperationSchemaError';
|
|
44
|
+
return _this;
|
|
25
45
|
}
|
|
26
|
-
|
|
46
|
+
return InvalidOperationSchemaError;
|
|
47
|
+
}(Error));
|
|
27
48
|
exports.InvalidOperationSchemaError = InvalidOperationSchemaError;
|
|
28
49
|
/**
|
|
29
50
|
* @category Error
|
|
30
51
|
* @description Error that indicates an entrypoint exceeding maximum size
|
|
31
52
|
*/
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
this.entrypoint
|
|
36
|
-
|
|
53
|
+
var OversizedEntryPointError = /** @class */ (function (_super) {
|
|
54
|
+
__extends(OversizedEntryPointError, _super);
|
|
55
|
+
function OversizedEntryPointError(entrypoint) {
|
|
56
|
+
var _this = _super.call(this, "Oversized entrypoint: ".concat(entrypoint, ". The maximum length of entrypoint is ").concat(constants_1.ENTRYPOINT_MAX_LENGTH)) || this;
|
|
57
|
+
_this.entrypoint = entrypoint;
|
|
58
|
+
_this.name = 'OversizedEntryPointError';
|
|
59
|
+
return _this;
|
|
37
60
|
}
|
|
38
|
-
|
|
61
|
+
return OversizedEntryPointError;
|
|
62
|
+
}(Error));
|
|
39
63
|
exports.OversizedEntryPointError = OversizedEntryPointError;
|
|
40
64
|
/**
|
|
41
65
|
* @category Error
|
|
42
66
|
* @description Error that indicates an invalid ballot value
|
|
43
67
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
this.ballotValue
|
|
48
|
-
|
|
68
|
+
var InvalidBallotValueError = /** @class */ (function (_super) {
|
|
69
|
+
__extends(InvalidBallotValueError, _super);
|
|
70
|
+
function InvalidBallotValueError(ballotValue) {
|
|
71
|
+
var _this = _super.call(this, "The ballot value '".concat(ballotValue, "' is invalid")) || this;
|
|
72
|
+
_this.ballotValue = ballotValue;
|
|
73
|
+
_this.name = 'InvalidBallotValueError';
|
|
74
|
+
return _this;
|
|
49
75
|
}
|
|
50
|
-
|
|
76
|
+
return InvalidBallotValueError;
|
|
77
|
+
}(Error));
|
|
51
78
|
exports.InvalidBallotValueError = InvalidBallotValueError;
|
|
52
79
|
/**
|
|
53
80
|
* @category Error
|
|
54
81
|
* @description Error that indicates a failure when trying to decode ballot value
|
|
55
82
|
*/
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
this.ballotValue
|
|
60
|
-
|
|
83
|
+
var DecodeBallotValueError = /** @class */ (function (_super) {
|
|
84
|
+
__extends(DecodeBallotValueError, _super);
|
|
85
|
+
function DecodeBallotValueError(ballotValue) {
|
|
86
|
+
var _this = _super.call(this, "Failed to decode ballot value ".concat(ballotValue)) || this;
|
|
87
|
+
_this.ballotValue = ballotValue;
|
|
88
|
+
_this.name = 'DecodeBallotValueError';
|
|
89
|
+
return _this;
|
|
61
90
|
}
|
|
62
|
-
|
|
91
|
+
return DecodeBallotValueError;
|
|
92
|
+
}(Error));
|
|
63
93
|
exports.DecodeBallotValueError = DecodeBallotValueError;
|
|
64
94
|
/**
|
|
65
95
|
* @category Error
|
|
66
96
|
* @description Error that indicates an invalid hex string have been passed or used
|
|
67
97
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
this.hexString
|
|
72
|
-
|
|
98
|
+
var InvalidHexStringError = /** @class */ (function (_super) {
|
|
99
|
+
__extends(InvalidHexStringError, _super);
|
|
100
|
+
function InvalidHexStringError(hexString) {
|
|
101
|
+
var _this = _super.call(this, "The hex string '".concat(hexString, "' is invalid")) || this;
|
|
102
|
+
_this.hexString = hexString;
|
|
103
|
+
_this.name = 'InvalidHexStringError';
|
|
104
|
+
return _this;
|
|
73
105
|
}
|
|
74
|
-
|
|
106
|
+
return InvalidHexStringError;
|
|
107
|
+
}(Error));
|
|
75
108
|
exports.InvalidHexStringError = InvalidHexStringError;
|
|
76
109
|
/**
|
|
77
110
|
* @category Error
|
|
78
111
|
* @description Error that indicates unexpected Michelson Value being passed or used
|
|
79
112
|
*/
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this.value
|
|
84
|
-
|
|
113
|
+
var UnexpectedMichelsonValueError = /** @class */ (function (_super) {
|
|
114
|
+
__extends(UnexpectedMichelsonValueError, _super);
|
|
115
|
+
function UnexpectedMichelsonValueError(value) {
|
|
116
|
+
var _this = _super.call(this, "Failed to encode michelson value '".concat(value, "'")) || this;
|
|
117
|
+
_this.value = value;
|
|
118
|
+
_this.name = 'UnexpectedMichelsonValueError';
|
|
119
|
+
return _this;
|
|
85
120
|
}
|
|
86
|
-
|
|
121
|
+
return UnexpectedMichelsonValueError;
|
|
122
|
+
}(Error));
|
|
87
123
|
exports.UnexpectedMichelsonValueError = UnexpectedMichelsonValueError;
|
|
88
124
|
/**
|
|
89
125
|
* @category Error
|
|
90
126
|
* @description Error that indicates a failure when trying to decode an operation
|
|
91
127
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this
|
|
96
|
-
|
|
128
|
+
var OperationDecodingError = /** @class */ (function (_super) {
|
|
129
|
+
__extends(OperationDecodingError, _super);
|
|
130
|
+
function OperationDecodingError(message) {
|
|
131
|
+
var _this = _super.call(this, message) || this;
|
|
132
|
+
_this.message = message;
|
|
133
|
+
_this.name = 'OperationDecodingError';
|
|
134
|
+
return _this;
|
|
97
135
|
}
|
|
98
|
-
|
|
136
|
+
return OperationDecodingError;
|
|
137
|
+
}(Error));
|
|
99
138
|
exports.OperationDecodingError = OperationDecodingError;
|
|
100
139
|
/**
|
|
101
140
|
* @category Error
|
|
102
141
|
* @description Error that indicates a failure when trying to encode an operation
|
|
103
142
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this
|
|
108
|
-
|
|
143
|
+
var OperationEncodingError = /** @class */ (function (_super) {
|
|
144
|
+
__extends(OperationEncodingError, _super);
|
|
145
|
+
function OperationEncodingError(message) {
|
|
146
|
+
var _this = _super.call(this, message) || this;
|
|
147
|
+
_this.message = message;
|
|
148
|
+
_this.name = 'OperationEncodingError';
|
|
149
|
+
return _this;
|
|
109
150
|
}
|
|
110
|
-
|
|
151
|
+
return OperationEncodingError;
|
|
152
|
+
}(Error));
|
|
111
153
|
exports.OperationEncodingError = OperationEncodingError;
|
|
112
154
|
/**
|
|
113
155
|
* @category Error
|
|
114
156
|
* @description Error that indicates an unsupported operation being passed or used
|
|
115
157
|
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
this.op
|
|
120
|
-
|
|
158
|
+
var UnsupportedOperationError = /** @class */ (function (_super) {
|
|
159
|
+
__extends(UnsupportedOperationError, _super);
|
|
160
|
+
function UnsupportedOperationError(op) {
|
|
161
|
+
var _this = _super.call(this, "The operation '".concat(op, "' is unsupported")) || this;
|
|
162
|
+
_this.op = op;
|
|
163
|
+
_this.name = 'UnsupportedOperationError';
|
|
164
|
+
return _this;
|
|
121
165
|
}
|
|
122
|
-
|
|
166
|
+
return UnsupportedOperationError;
|
|
167
|
+
}(Error));
|
|
123
168
|
exports.UnsupportedOperationError = UnsupportedOperationError;
|
|
124
169
|
//# sourceMappingURL=error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,yCAAoD;AAEpD;;;GAGG;AACH;IAA2C,yCAAK;IAE9C,+BAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,uBAAuB,CAAC;;IAGtC,CAAC;IACH,4BAAC;AAAD,CAAC,AALD,CAA2C,KAAK,GAK/C;AALY,sDAAqB;AAOlC;;;GAGG,CAAC;IAAiD,+CAAK;IAExD,qCAAmB,OAAe;QAAlC,YACE,kBAAM,OAAO,CAAC,SACf;QAFkB,aAAO,GAAP,OAAO,CAAQ;QAD3B,UAAI,GAAG,6BAA6B,CAAC;;IAG5C,CAAC;IACH,kCAAC;AAAD,CAAC,AALG,CAAiD,KAAK,GAKzD;AALgB,kEAA2B;AAO5C;;;GAGG;AACH;IAA8C,4CAAK;IAEjD,kCAAmB,UAAkB;QAArC,YACE,kBACE,gCAAyB,UAAU,mDAAyC,iCAAqB,CAAE,CACpG,SACF;QAJkB,gBAAU,GAAV,UAAU,CAAQ;QAD9B,UAAI,GAAG,0BAA0B,CAAC;;IAKzC,CAAC;IACH,+BAAC;AAAD,CAAC,AAPD,CAA8C,KAAK,GAOlD;AAPY,4DAAwB;AASrC;;;GAGG;AACH;IAA6C,2CAAK;IAEhD,iCAAmB,WAAmB;QAAtC,YACE,kBAAM,4BAAqB,WAAW,iBAAc,CAAC,SACtD;QAFkB,iBAAW,GAAX,WAAW,CAA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QAD3B,UAAI,GAAG,wBAAwB,CAAC;;IAGvC,CAAC;IACH,6BAAC;AAAD,CAAC,AALD,CAA4C,KAAK,GAKhD;AALY,wDAAsB;AAOnC;;;GAGG;AACH;IAA+C,6CAAK;IAElD,mCAAmB,EAAU;QAA7B,YACE,kBAAM,yBAAkB,EAAE,qBAAkB,CAAC,SAC9C;QAFkB,QAAE,GAAF,EAAE,CAAQ;QADtB,UAAI,GAAG,2BAA2B,CAAC;;IAG1C,CAAC;IACH,gCAAC;AAAD,CAAC,AALD,CAA+C,KAAK,GAKnD;AALY,8DAAyB"}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { Decoder } from '../decoder';
|
|
2
2
|
import { Uint8ArrayConsumer } from '../uint8array-consumer';
|
|
3
3
|
import { Encoder } from '../taquito-local-forging';
|
|
4
|
-
export type PrimValue = {
|
|
4
|
+
export declare type PrimValue = {
|
|
5
5
|
prim: string;
|
|
6
6
|
args?: MichelsonValue[];
|
|
7
7
|
annots?: string[];
|
|
8
8
|
};
|
|
9
|
-
export type BytesValue = {
|
|
9
|
+
export declare type BytesValue = {
|
|
10
10
|
bytes: string;
|
|
11
11
|
};
|
|
12
|
-
export type StringValue = {
|
|
12
|
+
export declare type StringValue = {
|
|
13
13
|
string: string;
|
|
14
14
|
};
|
|
15
|
-
export type IntValue = {
|
|
15
|
+
export declare type IntValue = {
|
|
16
16
|
int: string;
|
|
17
17
|
};
|
|
18
|
-
export type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
|
|
18
|
+
export declare type MichelsonValue = PrimValue | BytesValue | StringValue | IntValue | (PrimValue | BytesValue | StringValue | IntValue)[];
|
|
19
19
|
export declare const isPrim: (value: MichelsonValue) => value is PrimValue;
|
|
20
20
|
export declare const isBytes: (value: MichelsonValue) => value is BytesValue;
|
|
21
21
|
export declare const isString: (value: MichelsonValue) => value is StringValue;
|
|
@@ -27,7 +27,7 @@ export declare const scriptEncoder: Encoder<{
|
|
|
27
27
|
export declare const scriptDecoder: Decoder;
|
|
28
28
|
export declare const valueEncoder: Encoder<MichelsonValue>;
|
|
29
29
|
export declare const valueDecoder: Decoder;
|
|
30
|
-
export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array
|
|
30
|
+
export declare const extractRequiredLen: (value: Uint8ArrayConsumer, bytesLength?: number) => Uint8Array;
|
|
31
31
|
export declare const bytesEncoder: Encoder<BytesValue>;
|
|
32
32
|
export declare const bytesDecoder: Decoder;
|
|
33
33
|
export declare const stringEncoder: Encoder<StringValue>;
|