@airgap/coinlib-core 0.13.45-beta.1 → 0.13.45-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/Action.js +30 -83
- package/actions/Action.js.map +1 -1
- package/actions/LinkedAction.js +18 -82
- package/actions/LinkedAction.js.map +1 -1
- package/actions/RepeatableAction.js +20 -83
- package/actions/RepeatableAction.js.map +1 -1
- package/actions/SimpleAction.js +12 -74
- package/actions/SimpleAction.js.map +1 -1
- package/actions/StateMachine.js +16 -17
- package/actions/StateMachine.js.map +1 -1
- package/data/KeyPair.d.ts +0 -1
- package/data/Lazy.js +15 -64
- package/data/Lazy.js.map +1 -1
- package/data/RPCBody.js +3 -6
- 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 +88 -130
- 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 +57 -61
- 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 +1 -2
- 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 +8 -10
- 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 +22 -28
- 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 +9 -10
- 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 +10 -11
- 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 +7 -8
- 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 +61 -63
- 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 +61 -63
- 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 +2 -3
- 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 +47 -76
- 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 +46 -61
- 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 +61 -106
- 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 +95 -100
- 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 +46 -75
- 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 +45 -70
- 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 +58 -63
- 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 +30 -33
- 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 +18 -20
- 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 +5 -12
- 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 +75 -76
- 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 +115 -178
- 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 +6 -9
- 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 +78 -83
- 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 +27 -36
- 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 +25 -26
- 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 +14 -230
- package/dependencies/src/cosmjs/index.js +373 -480
- package/dependencies/src/cosmjs/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.js +15 -19
- 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 +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +37 -28
- 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 +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +38 -30
- 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 +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +33 -24
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +42 -34
- 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 +6 -10
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
- package/errors/coinlib-error.js +16 -37
- package/errors/coinlib-error.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.js +89 -148
- 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 +7 -54
- package/protocols/BlockExplorerProtocol.js.map +1 -1
- package/protocols/CryptoClient.js +19 -78
- package/protocols/CryptoClient.js.map +1 -1
- package/protocols/Ed25519CryptoClient.js +30 -98
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinSubProtocol.js +1 -1
- package/protocols/ICoinSubProtocol.js.map +1 -1
- package/protocols/NonExtendedProtocol.js +26 -29
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.js +9 -73
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.js +12 -76
- package/protocols/Sr25519CryptoClient.js.map +1 -1
- package/utils/AES.js +81 -132
- package/utils/AES.js.map +1 -1
- package/utils/ErrorWithData.js +5 -23
- package/utils/ErrorWithData.js.map +1 -1
- package/utils/Network.js +1 -1
- package/utils/Network.js.map +1 -1
- package/utils/ProtocolBlockExplorer.js +3 -4
- package/utils/ProtocolBlockExplorer.js.map +1 -1
- package/utils/ProtocolNetwork.js +11 -16
- package/utils/ProtocolNetwork.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +1 -1
- package/utils/ProtocolSymbols.js +6 -6
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/array.js +14 -15
- package/utils/array.js.map +1 -1
- package/utils/assert.js +8 -12
- package/utils/assert.js.map +1 -1
- package/utils/base64Check.d.ts +0 -1
- package/utils/base64Check.js +15 -15
- package/utils/base64Check.js.map +1 -1
- package/utils/blake2b.js +11 -14
- package/utils/blake2b.js.map +1 -1
- package/utils/buffer.d.ts +0 -1
- package/utils/buffer.js +1 -1
- package/utils/buffer.js.map +1 -1
- package/utils/cache.js +38 -87
- package/utils/cache.js.map +1 -1
- package/utils/error.js +2 -3
- package/utils/error.js.map +1 -1
- package/utils/hex.d.ts +1 -2
- package/utils/hex.js +31 -38
- package/utils/hex.js.map +1 -1
- package/utils/interfaces.js +3 -4
- package/utils/interfaces.js.map +1 -1
- package/utils/object.js +5 -7
- package/utils/object.js.map +1 -1
- package/utils/padStart.js +1 -2
- package/utils/padStart.js.map +1 -1
- package/utils/remote-data/HttpRemoteData.js +24 -107
- package/utils/remote-data/HttpRemoteData.js.map +1 -1
- package/utils/remote-data/IpfsRemoteData.js +32 -116
- package/utils/remote-data/IpfsRemoteData.js.map +1 -1
- package/utils/remote-data/RemoteData.d.ts +0 -1
- package/utils/remote-data/RemoteData.js +3 -4
- package/utils/remote-data/RemoteData.js.map +1 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
- package/utils/remote-data/RemoteDataFactory.js +13 -20
- package/utils/remote-data/RemoteDataFactory.js.map +1 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +0 -1
- package/utils/remote-data/Sha256RemoteData.js +44 -117
- package/utils/remote-data/Sha256RemoteData.js.map +1 -1
- package/utils/string.js +8 -9
- package/utils/string.js.map +1 -1
- package/utils/type.js +3 -4
- package/utils/type.js.map +1 -1
- package/utils/xxhash.d.ts +0 -1
- package/utils/xxhash.js +9 -11
- package/utils/xxhash.js.map +1 -1
- package/wallet/AirGapCoinWallet.js +64 -183
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +88 -201
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.js +48 -165
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.js +58 -145
- 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,82 +1,53 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.decoders = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
exports.decoders =
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
_a);
|
|
36
|
-
exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
|
|
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);
|
|
4
|
+
const codec_1 = require("./codec");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const codec_2 = require("./michelson/codec");
|
|
7
|
+
const operation_1 = require("./schema/operation");
|
|
8
|
+
const utils_1 = require("./utils");
|
|
9
|
+
exports.decoders = {
|
|
10
|
+
[constants_1.CODEC.SECRET]: (val) => (0, utils_1.toHexString)(val.consume(20)),
|
|
11
|
+
[constants_1.CODEC.RAW]: (val) => (0, utils_1.toHexString)(val.consume(32)),
|
|
12
|
+
[constants_1.CODEC.TZ1]: codec_1.tz1Decoder,
|
|
13
|
+
[constants_1.CODEC.BRANCH]: codec_1.branchDecoder,
|
|
14
|
+
[constants_1.CODEC.ZARITH]: codec_1.zarithDecoder,
|
|
15
|
+
[constants_1.CODEC.PUBLIC_KEY]: codec_1.publicKeyDecoder,
|
|
16
|
+
[constants_1.CODEC.PKH]: codec_1.pkhDecoder,
|
|
17
|
+
[constants_1.CODEC.DELEGATE]: codec_1.delegateDecoder,
|
|
18
|
+
[constants_1.CODEC.INT32]: codec_1.int32Decoder,
|
|
19
|
+
[constants_1.CODEC.SCRIPT]: codec_2.scriptDecoder,
|
|
20
|
+
[constants_1.CODEC.BALLOT_STATEMENT]: codec_1.ballotDecoder,
|
|
21
|
+
[constants_1.CODEC.PROPOSAL]: codec_1.proposalDecoder,
|
|
22
|
+
[constants_1.CODEC.PROPOSAL_ARR]: codec_1.proposalsDecoder,
|
|
23
|
+
[constants_1.CODEC.PARAMETERS]: codec_1.parametersDecoder,
|
|
24
|
+
[constants_1.CODEC.ADDRESS]: codec_1.addressDecoder,
|
|
25
|
+
[constants_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_1.smartContractAddressDecoder,
|
|
26
|
+
[constants_1.CODEC.VALUE]: codec_1.valueParameterDecoder,
|
|
27
|
+
[constants_1.CODEC.INT16]: codec_1.int16Decoder,
|
|
28
|
+
[constants_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_1.blockPayloadHashDecoder,
|
|
29
|
+
[constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameDecoder,
|
|
30
|
+
[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]: codec_1.txRollupOriginationParamDecoder,
|
|
31
|
+
[constants_1.CODEC.TX_ROLLUP_ID]: codec_1.txRollupIdDecoder,
|
|
32
|
+
[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]: codec_1.txRollupBatchContentDecoder,
|
|
33
|
+
[constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitDecoder,
|
|
80
34
|
};
|
|
35
|
+
exports.decoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationDecoder)(exports.decoders);
|
|
36
|
+
exports.decoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ActivationSchema)(val);
|
|
37
|
+
exports.decoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DelegationSchema)(val);
|
|
38
|
+
exports.decoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransactionSchema)(val);
|
|
39
|
+
exports.decoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.OriginationSchema)(val);
|
|
40
|
+
exports.decoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.BallotSchema)(val);
|
|
41
|
+
exports.decoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.EndorsementSchema)(val);
|
|
42
|
+
exports.decoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.SeedNonceRevelationSchema)(val);
|
|
43
|
+
exports.decoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ProposalsSchema)(val);
|
|
44
|
+
exports.decoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RevealSchema)(val);
|
|
45
|
+
exports.decoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.RegisterGlobalConstantSchema)(val);
|
|
46
|
+
exports.decoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TransferTicketSchema)(val);
|
|
47
|
+
exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupOriginationSchema)(val);
|
|
48
|
+
exports.decoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.TxRollupSubmitBatchSchema)(val);
|
|
49
|
+
exports.decoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.IncreasePaidStorageSchema)(val);
|
|
50
|
+
exports.decoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.UpdateConsensusKeySchema)(val);
|
|
51
|
+
exports.decoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.DrainDelegateSchema)(val);
|
|
81
52
|
exports.decoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaDecoder)(exports.decoders)(operation_1.ManagerOperationSchema);
|
|
82
53
|
//# 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":["../../../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yB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACtE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,wBAAwB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACrE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,qCAAyB,CAAC,CAAC,GAAG,CAAC,CAAC;AAC1D,gBAAQ,CAAC,iBAAK,CAAC,uBAAuB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CACpE,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,oCAAwB,CAAC,CAAC,GAAG,CAAC,CAAC;AACzD,gBAAQ,CAAC,iBAAK,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAuB,EAAE,EAAE,CAC9D,IAAA,yBAAa,EAAC,gBAAQ,CAAC,CAAC,+BAAmB,CAAC,CAAC,GAAG,CAAC,CAAC;AACpD,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/encoder.js
CHANGED
|
@@ -1,67 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.encoders = void 0;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.encoders =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
_a);
|
|
35
|
-
exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
|
|
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);
|
|
4
|
+
const codec_1 = require("./codec");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const codec_2 = require("./michelson/codec");
|
|
7
|
+
const operation_1 = require("./schema/operation");
|
|
8
|
+
exports.encoders = {
|
|
9
|
+
[constants_1.CODEC.SECRET]: (val) => val,
|
|
10
|
+
[constants_1.CODEC.RAW]: (val) => val,
|
|
11
|
+
[constants_1.CODEC.TZ1]: codec_1.tz1Encoder,
|
|
12
|
+
[constants_1.CODEC.BRANCH]: codec_1.branchEncoder,
|
|
13
|
+
[constants_1.CODEC.ZARITH]: codec_1.zarithEncoder,
|
|
14
|
+
[constants_1.CODEC.PUBLIC_KEY]: codec_1.publicKeyEncoder,
|
|
15
|
+
[constants_1.CODEC.PKH]: codec_1.pkhEncoder,
|
|
16
|
+
[constants_1.CODEC.DELEGATE]: codec_1.delegateEncoder,
|
|
17
|
+
[constants_1.CODEC.SCRIPT]: codec_2.scriptEncoder,
|
|
18
|
+
[constants_1.CODEC.BALLOT_STATEMENT]: codec_1.ballotEncoder,
|
|
19
|
+
[constants_1.CODEC.PROPOSAL]: codec_1.proposalEncoder,
|
|
20
|
+
[constants_1.CODEC.PROPOSAL_ARR]: codec_1.proposalsEncoder,
|
|
21
|
+
[constants_1.CODEC.INT32]: codec_1.int32Encoder,
|
|
22
|
+
[constants_1.CODEC.PARAMETERS]: codec_1.parametersEncoder,
|
|
23
|
+
[constants_1.CODEC.ADDRESS]: codec_1.addressEncoder,
|
|
24
|
+
[constants_1.CODEC.SMART_CONTRACT_ADDRESS]: codec_1.smartContractAddressEncoder,
|
|
25
|
+
[constants_1.CODEC.VALUE]: codec_1.valueParameterEncoder,
|
|
26
|
+
[constants_1.CODEC.INT16]: codec_1.int16Encoder,
|
|
27
|
+
[constants_1.CODEC.BLOCK_PAYLOAD_HASH]: codec_1.blockPayloadHashEncoder,
|
|
28
|
+
[constants_1.CODEC.ENTRYPOINT]: codec_1.entrypointNameEncoder,
|
|
29
|
+
[constants_1.CODEC.TX_ROLLUP_ORIGINATION_PARAM]: codec_1.txRollupOriginationParamEncoder,
|
|
30
|
+
[constants_1.CODEC.TX_ROLLUP_ID]: codec_1.txRollupIdEncoder,
|
|
31
|
+
[constants_1.CODEC.TX_ROLLUP_BATCH_CONTENT]: codec_1.txRollupBatchContentEncoder,
|
|
32
|
+
[constants_1.CODEC.BURN_LIMIT]: codec_1.burnLimitEncoder,
|
|
55
33
|
};
|
|
56
|
-
exports.encoders[constants_1.CODEC.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
exports.encoders[constants_1.CODEC.
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
exports.encoders[constants_1.CODEC.
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
exports.encoders[constants_1.CODEC.
|
|
34
|
+
exports.encoders[constants_1.CODEC.OPERATION] = (0, operation_1.operationEncoder)(exports.encoders);
|
|
35
|
+
exports.encoders[constants_1.CODEC.OP_ACTIVATE_ACCOUNT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ActivationSchema)(val);
|
|
36
|
+
exports.encoders[constants_1.CODEC.OP_DELEGATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DelegationSchema)(val);
|
|
37
|
+
exports.encoders[constants_1.CODEC.OP_TRANSACTION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransactionSchema)(val);
|
|
38
|
+
exports.encoders[constants_1.CODEC.OP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.OriginationSchema)(val);
|
|
39
|
+
exports.encoders[constants_1.CODEC.OP_BALLOT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.BallotSchema)(val);
|
|
40
|
+
exports.encoders[constants_1.CODEC.OP_ENDORSEMENT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.EndorsementSchema)(val);
|
|
41
|
+
exports.encoders[constants_1.CODEC.OP_SEED_NONCE_REVELATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.SeedNonceRevelationSchema)(val);
|
|
42
|
+
exports.encoders[constants_1.CODEC.OP_PROPOSALS] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ProposalsSchema)(val);
|
|
43
|
+
exports.encoders[constants_1.CODEC.OP_REVEAL] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RevealSchema)(val);
|
|
44
|
+
exports.encoders[constants_1.CODEC.OP_REGISTER_GLOBAL_CONSTANT] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.RegisterGlobalConstantSchema)(val);
|
|
45
|
+
exports.encoders[constants_1.CODEC.OP_TRANSFER_TICKET] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TransferTicketSchema)(val);
|
|
46
|
+
exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_ORIGINATION] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupOriginationSchema)(val);
|
|
47
|
+
exports.encoders[constants_1.CODEC.OP_TX_ROLLUP_SUBMIT_BATCH] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.TxRollupSubmitBatchSchema)(val);
|
|
48
|
+
exports.encoders[constants_1.CODEC.OP_INCREASE_PAID_STORAGE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.IncreasePaidStorageSchema)(val);
|
|
49
|
+
exports.encoders[constants_1.CODEC.OP_UPDATE_CONSENSUS_KEY] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.UpdateConsensusKeySchema)(val);
|
|
50
|
+
exports.encoders[constants_1.CODEC.OP_DRAIN_DELEGATE] = (val) => (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.DrainDelegateSchema)(val);
|
|
66
51
|
exports.encoders[constants_1.CODEC.MANAGER] = (0, operation_1.schemaEncoder)(exports.encoders)(operation_1.ManagerOperationSchema);
|
|
67
52
|
//# 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,mCAsBiB;AACjB,2CAAoC;AACpC,6CAAkD;AAClD,kDAoB4B;AAIf,QAAA,QAAQ,GAAoC;IACvD,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG;IACpC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG;IACjC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,UAAU,CAAC,EAAE,wBAAgB;IACpC,CAAC,iBAAK,CAAC,GAAG,CAAC,EAAE,kBAAU;IACvB,CAAC,iBAAK,CAAC,QAAQ,CAAC,EAAE,uBAAe;IACjC,CAAC,iBAAK,CAAC,MAAM,CAAC,EAAE,qBAAa;IAC7B,CAAC,iBAAK,CAAC,gB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
|
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
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.UnsupportedOperationError = exports.OperationEncodingError = exports.OperationDecodingError = exports.UnexpectedMichelsonValueError = exports.InvalidHexStringError = exports.DecodeBallotValueError = exports.InvalidBallotValueError = exports.OversizedEntryPointError = exports.InvalidOperationSchemaError = exports.InvalidBlockHashError = void 0;
|
|
19
|
-
|
|
4
|
+
const constants_1 = require("./constants");
|
|
20
5
|
/**
|
|
21
6
|
* @category Error
|
|
22
7
|
* @description Error that indicates an invalid block hash being passed or used
|
|
23
8
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
_this.name = 'InvalidBlockHashError';
|
|
30
|
-
return _this;
|
|
9
|
+
class InvalidBlockHashError extends Error {
|
|
10
|
+
constructor(message) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.message = message;
|
|
13
|
+
this.name = 'InvalidBlockHashError';
|
|
31
14
|
}
|
|
32
|
-
|
|
33
|
-
}(Error));
|
|
15
|
+
}
|
|
34
16
|
exports.InvalidBlockHashError = InvalidBlockHashError;
|
|
35
17
|
/**
|
|
36
18
|
* @category Error
|
|
37
19
|
* @description Error that indicates an invalid operation schema being passed or used
|
|
38
|
-
*/
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
_this.name = 'InvalidOperationSchemaError';
|
|
44
|
-
return _this;
|
|
20
|
+
*/ class InvalidOperationSchemaError extends Error {
|
|
21
|
+
constructor(message) {
|
|
22
|
+
super(message);
|
|
23
|
+
this.message = message;
|
|
24
|
+
this.name = 'InvalidOperationSchemaError';
|
|
45
25
|
}
|
|
46
|
-
|
|
47
|
-
}(Error));
|
|
26
|
+
}
|
|
48
27
|
exports.InvalidOperationSchemaError = InvalidOperationSchemaError;
|
|
49
28
|
/**
|
|
50
29
|
* @category Error
|
|
51
30
|
* @description Error that indicates an entrypoint exceeding maximum size
|
|
52
31
|
*/
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
_this.name = 'OversizedEntryPointError';
|
|
59
|
-
return _this;
|
|
32
|
+
class OversizedEntryPointError extends Error {
|
|
33
|
+
constructor(entrypoint) {
|
|
34
|
+
super(`Oversized entrypoint: ${entrypoint}. The maximum length of entrypoint is ${constants_1.ENTRYPOINT_MAX_LENGTH}`);
|
|
35
|
+
this.entrypoint = entrypoint;
|
|
36
|
+
this.name = 'OversizedEntryPointError';
|
|
60
37
|
}
|
|
61
|
-
|
|
62
|
-
}(Error));
|
|
38
|
+
}
|
|
63
39
|
exports.OversizedEntryPointError = OversizedEntryPointError;
|
|
64
40
|
/**
|
|
65
41
|
* @category Error
|
|
66
42
|
* @description Error that indicates an invalid ballot value
|
|
67
43
|
*/
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
_this.name = 'InvalidBallotValueError';
|
|
74
|
-
return _this;
|
|
44
|
+
class InvalidBallotValueError extends Error {
|
|
45
|
+
constructor(ballotValue) {
|
|
46
|
+
super(`The ballot value '${ballotValue}' is invalid`);
|
|
47
|
+
this.ballotValue = ballotValue;
|
|
48
|
+
this.name = 'InvalidBallotValueError';
|
|
75
49
|
}
|
|
76
|
-
|
|
77
|
-
}(Error));
|
|
50
|
+
}
|
|
78
51
|
exports.InvalidBallotValueError = InvalidBallotValueError;
|
|
79
52
|
/**
|
|
80
53
|
* @category Error
|
|
81
54
|
* @description Error that indicates a failure when trying to decode ballot value
|
|
82
55
|
*/
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
_this.name = 'DecodeBallotValueError';
|
|
89
|
-
return _this;
|
|
56
|
+
class DecodeBallotValueError extends Error {
|
|
57
|
+
constructor(ballotValue) {
|
|
58
|
+
super(`Failed to decode ballot value ${ballotValue}`);
|
|
59
|
+
this.ballotValue = ballotValue;
|
|
60
|
+
this.name = 'DecodeBallotValueError';
|
|
90
61
|
}
|
|
91
|
-
|
|
92
|
-
}(Error));
|
|
62
|
+
}
|
|
93
63
|
exports.DecodeBallotValueError = DecodeBallotValueError;
|
|
94
64
|
/**
|
|
95
65
|
* @category Error
|
|
96
66
|
* @description Error that indicates an invalid hex string have been passed or used
|
|
97
67
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
_this.name = 'InvalidHexStringError';
|
|
104
|
-
return _this;
|
|
68
|
+
class InvalidHexStringError extends Error {
|
|
69
|
+
constructor(hexString) {
|
|
70
|
+
super(`The hex string '${hexString}' is invalid`);
|
|
71
|
+
this.hexString = hexString;
|
|
72
|
+
this.name = 'InvalidHexStringError';
|
|
105
73
|
}
|
|
106
|
-
|
|
107
|
-
}(Error));
|
|
74
|
+
}
|
|
108
75
|
exports.InvalidHexStringError = InvalidHexStringError;
|
|
109
76
|
/**
|
|
110
77
|
* @category Error
|
|
111
78
|
* @description Error that indicates unexpected Michelson Value being passed or used
|
|
112
79
|
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
_this.name = 'UnexpectedMichelsonValueError';
|
|
119
|
-
return _this;
|
|
80
|
+
class UnexpectedMichelsonValueError extends Error {
|
|
81
|
+
constructor(value) {
|
|
82
|
+
super(`Failed to encode michelson value '${value}'`);
|
|
83
|
+
this.value = value;
|
|
84
|
+
this.name = 'UnexpectedMichelsonValueError';
|
|
120
85
|
}
|
|
121
|
-
|
|
122
|
-
}(Error));
|
|
86
|
+
}
|
|
123
87
|
exports.UnexpectedMichelsonValueError = UnexpectedMichelsonValueError;
|
|
124
88
|
/**
|
|
125
89
|
* @category Error
|
|
126
90
|
* @description Error that indicates a failure when trying to decode an operation
|
|
127
91
|
*/
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
_this.name = 'OperationDecodingError';
|
|
134
|
-
return _this;
|
|
92
|
+
class OperationDecodingError extends Error {
|
|
93
|
+
constructor(message) {
|
|
94
|
+
super(message);
|
|
95
|
+
this.message = message;
|
|
96
|
+
this.name = 'OperationDecodingError';
|
|
135
97
|
}
|
|
136
|
-
|
|
137
|
-
}(Error));
|
|
98
|
+
}
|
|
138
99
|
exports.OperationDecodingError = OperationDecodingError;
|
|
139
100
|
/**
|
|
140
101
|
* @category Error
|
|
141
102
|
* @description Error that indicates a failure when trying to encode an operation
|
|
142
103
|
*/
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
_this.name = 'OperationEncodingError';
|
|
149
|
-
return _this;
|
|
104
|
+
class OperationEncodingError extends Error {
|
|
105
|
+
constructor(message) {
|
|
106
|
+
super(message);
|
|
107
|
+
this.message = message;
|
|
108
|
+
this.name = 'OperationEncodingError';
|
|
150
109
|
}
|
|
151
|
-
|
|
152
|
-
}(Error));
|
|
110
|
+
}
|
|
153
111
|
exports.OperationEncodingError = OperationEncodingError;
|
|
154
112
|
/**
|
|
155
113
|
* @category Error
|
|
156
114
|
* @description Error that indicates an unsupported operation being passed or used
|
|
157
115
|
*/
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
_this.name = 'UnsupportedOperationError';
|
|
164
|
-
return _this;
|
|
116
|
+
class UnsupportedOperationError extends Error {
|
|
117
|
+
constructor(op) {
|
|
118
|
+
super(`The operation '${op}' is unsupported`);
|
|
119
|
+
this.op = op;
|
|
120
|
+
this.name = 'UnsupportedOperationError';
|
|
165
121
|
}
|
|
166
|
-
|
|
167
|
-
}(Error));
|
|
122
|
+
}
|
|
168
123
|
exports.UnsupportedOperationError = UnsupportedOperationError;
|
|
169
124
|
//# 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,2CAAoD;AAEpD;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,KAAK;IAE9C,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;QAD3B,SAAI,GAAG,uBAAuB,CAAC;IAGtC,CAAC;CACF;AALD,sDAKC;AAED;;;GAGG,CAAC,MAAa,2BAA4B,SAAQ,KAAK;IAExD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;QAD3B,SAAI,GAAG,6BAA6B,CAAC;IAG5C,CAAC;CACF;AALG,kEAKH;AAED;;;GAGG;AACH,MAAa,wBAAyB,SAAQ,KAAK;IAEjD,YAAmB,UAAkB;QACnC,KAAK,CACH,yBAAyB,UAAU,yCAAyC,iCAAqB,E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C,KAAK,CAAC,OAAO,CAAC,CAAC;QADE,YAAO,GAAP,OAAO,CAAQ;QAD3B,SAAI,GAAG,wBAAwB,CAAC;IAGvC,CAAC;CACF;AALD,wDAKC;AAED;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,KAAK;IAElD,YAAmB,EAAU;QAC3B,KAAK,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAAC;QAD7B,OAAE,GAAF,EAAE,CAAQ;QADtB,SAAI,GAAG,2BAA2B,CAAC;IAG1C,CAAC;CACF;AALD,8DAKC"}
|
|
@@ -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
|
|
4
|
+
export type PrimValue = {
|
|
5
5
|
prim: string;
|
|
6
6
|
args?: MichelsonValue[];
|
|
7
7
|
annots?: string[];
|
|
8
8
|
};
|
|
9
|
-
export
|
|
9
|
+
export type BytesValue = {
|
|
10
10
|
bytes: string;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type StringValue = {
|
|
13
13
|
string: string;
|
|
14
14
|
};
|
|
15
|
-
export
|
|
15
|
+
export type IntValue = {
|
|
16
16
|
int: string;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export 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<ArrayBufferLike>;
|
|
31
31
|
export declare const bytesEncoder: Encoder<BytesValue>;
|
|
32
32
|
export declare const bytesDecoder: Decoder;
|
|
33
33
|
export declare const stringEncoder: Encoder<StringValue>;
|