@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a, _b;
|
|
2
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
4
|
exports.prefixLength = exports.prefix = exports.Prefix = void 0;
|
|
4
5
|
var Prefix;
|
|
@@ -46,81 +47,81 @@ var Prefix;
|
|
|
46
47
|
Prefix["TXMR"] = "txmr";
|
|
47
48
|
Prefix["TXRL"] = "txM";
|
|
48
49
|
Prefix["TXW"] = "txw";
|
|
49
|
-
})(Prefix
|
|
50
|
-
exports.prefix = {
|
|
51
|
-
[Prefix.TZ1]
|
|
52
|
-
[Prefix.TZ2]
|
|
53
|
-
[Prefix.TZ3]
|
|
54
|
-
[Prefix.TZ4]
|
|
55
|
-
[Prefix.KT]
|
|
56
|
-
[Prefix.KT1]
|
|
57
|
-
[Prefix.EDSK]
|
|
58
|
-
[Prefix.EDSK2]
|
|
59
|
-
[Prefix.SPSK]
|
|
60
|
-
[Prefix.P2SK]
|
|
61
|
-
[Prefix.EDPK]
|
|
62
|
-
[Prefix.SPPK]
|
|
63
|
-
[Prefix.P2PK]
|
|
64
|
-
[Prefix.BLPK]
|
|
65
|
-
[Prefix.EDESK]
|
|
66
|
-
[Prefix.SPESK]
|
|
67
|
-
[Prefix.P2ESK]
|
|
68
|
-
[Prefix.EDSIG]
|
|
69
|
-
[Prefix.SPSIG]
|
|
70
|
-
[Prefix.P2SIG]
|
|
71
|
-
[Prefix.SIG]
|
|
72
|
-
[Prefix.NET]
|
|
73
|
-
[Prefix.NCE]
|
|
74
|
-
[Prefix.B]
|
|
75
|
-
[Prefix.O]
|
|
76
|
-
[Prefix.LO]
|
|
77
|
-
[Prefix.LLO]
|
|
78
|
-
[Prefix.P]
|
|
79
|
-
[Prefix.CO]
|
|
80
|
-
[Prefix.ID]
|
|
81
|
-
[Prefix.EXPR]
|
|
50
|
+
})(Prefix = exports.Prefix || (exports.Prefix = {}));
|
|
51
|
+
exports.prefix = (_a = {},
|
|
52
|
+
_a[Prefix.TZ1] = new Uint8Array([6, 161, 159]),
|
|
53
|
+
_a[Prefix.TZ2] = new Uint8Array([6, 161, 161]),
|
|
54
|
+
_a[Prefix.TZ3] = new Uint8Array([6, 161, 164]),
|
|
55
|
+
_a[Prefix.TZ4] = new Uint8Array([6, 161, 166]),
|
|
56
|
+
_a[Prefix.KT] = new Uint8Array([2, 90, 121]),
|
|
57
|
+
_a[Prefix.KT1] = new Uint8Array([2, 90, 121]),
|
|
58
|
+
_a[Prefix.EDSK] = new Uint8Array([43, 246, 78, 7]),
|
|
59
|
+
_a[Prefix.EDSK2] = new Uint8Array([13, 15, 58, 7]),
|
|
60
|
+
_a[Prefix.SPSK] = new Uint8Array([17, 162, 224, 201]),
|
|
61
|
+
_a[Prefix.P2SK] = new Uint8Array([16, 81, 238, 189]),
|
|
62
|
+
_a[Prefix.EDPK] = new Uint8Array([13, 15, 37, 217]),
|
|
63
|
+
_a[Prefix.SPPK] = new Uint8Array([3, 254, 226, 86]),
|
|
64
|
+
_a[Prefix.P2PK] = new Uint8Array([3, 178, 139, 127]),
|
|
65
|
+
_a[Prefix.BLPK] = new Uint8Array([6, 149, 135, 204]),
|
|
66
|
+
_a[Prefix.EDESK] = new Uint8Array([7, 90, 60, 179, 41]),
|
|
67
|
+
_a[Prefix.SPESK] = new Uint8Array([0x09, 0xed, 0xf1, 0xae, 0x96]),
|
|
68
|
+
_a[Prefix.P2ESK] = new Uint8Array([0x09, 0x30, 0x39, 0x73, 0xab]),
|
|
69
|
+
_a[Prefix.EDSIG] = new Uint8Array([9, 245, 205, 134, 18]),
|
|
70
|
+
_a[Prefix.SPSIG] = new Uint8Array([13, 115, 101, 19, 63]),
|
|
71
|
+
_a[Prefix.P2SIG] = new Uint8Array([54, 240, 44, 52]),
|
|
72
|
+
_a[Prefix.SIG] = new Uint8Array([4, 130, 43]),
|
|
73
|
+
_a[Prefix.NET] = new Uint8Array([87, 82, 0]),
|
|
74
|
+
_a[Prefix.NCE] = new Uint8Array([69, 220, 169]),
|
|
75
|
+
_a[Prefix.B] = new Uint8Array([1, 52]),
|
|
76
|
+
_a[Prefix.O] = new Uint8Array([5, 116]),
|
|
77
|
+
_a[Prefix.LO] = new Uint8Array([133, 233]),
|
|
78
|
+
_a[Prefix.LLO] = new Uint8Array([29, 159, 109]),
|
|
79
|
+
_a[Prefix.P] = new Uint8Array([2, 170]),
|
|
80
|
+
_a[Prefix.CO] = new Uint8Array([79, 179]),
|
|
81
|
+
_a[Prefix.ID] = new Uint8Array([153, 103]),
|
|
82
|
+
_a[Prefix.EXPR] = new Uint8Array([13, 44, 64, 27]),
|
|
82
83
|
// Legacy prefix
|
|
83
|
-
[Prefix.TZ]
|
|
84
|
-
[Prefix.VH]
|
|
85
|
-
[Prefix.SASK]
|
|
86
|
-
[Prefix.ZET1]
|
|
87
|
-
[Prefix.TXR1]
|
|
88
|
-
[Prefix.TXI]
|
|
89
|
-
[Prefix.TXM]
|
|
90
|
-
[Prefix.TXC]
|
|
91
|
-
[Prefix.TXMR]
|
|
92
|
-
[Prefix.TXRL]
|
|
93
|
-
[Prefix.TXW]
|
|
94
|
-
|
|
95
|
-
exports.prefixLength = {
|
|
96
|
-
[Prefix.TZ1]
|
|
97
|
-
[Prefix.TZ2]
|
|
98
|
-
[Prefix.TZ3]
|
|
99
|
-
[Prefix.TZ4]
|
|
100
|
-
[Prefix.KT]
|
|
101
|
-
[Prefix.KT1]
|
|
102
|
-
[Prefix.EDPK]
|
|
103
|
-
[Prefix.SPPK]
|
|
104
|
-
[Prefix.P2PK]
|
|
84
|
+
_a[Prefix.TZ] = new Uint8Array([2, 90, 121]),
|
|
85
|
+
_a[Prefix.VH] = new Uint8Array([1, 106, 242]),
|
|
86
|
+
_a[Prefix.SASK] = new Uint8Array([11, 237, 20, 92]),
|
|
87
|
+
_a[Prefix.ZET1] = new Uint8Array([18, 71, 40, 223]),
|
|
88
|
+
_a[Prefix.TXR1] = new Uint8Array([1, 128, 120, 31]),
|
|
89
|
+
_a[Prefix.TXI] = new Uint8Array([79, 148, 196]),
|
|
90
|
+
_a[Prefix.TXM] = new Uint8Array([79, 149, 30]),
|
|
91
|
+
_a[Prefix.TXC] = new Uint8Array([79, 148, 17]),
|
|
92
|
+
_a[Prefix.TXMR] = new Uint8Array([18, 7, 206, 87]),
|
|
93
|
+
_a[Prefix.TXRL] = new Uint8Array([79, 146, 82]),
|
|
94
|
+
_a[Prefix.TXW] = new Uint8Array([79, 150, 72]),
|
|
95
|
+
_a);
|
|
96
|
+
exports.prefixLength = (_b = {},
|
|
97
|
+
_b[Prefix.TZ1] = 20,
|
|
98
|
+
_b[Prefix.TZ2] = 20,
|
|
99
|
+
_b[Prefix.TZ3] = 20,
|
|
100
|
+
_b[Prefix.TZ4] = 20,
|
|
101
|
+
_b[Prefix.KT] = 20,
|
|
102
|
+
_b[Prefix.KT1] = 20,
|
|
103
|
+
_b[Prefix.EDPK] = 32,
|
|
104
|
+
_b[Prefix.SPPK] = 33,
|
|
105
|
+
_b[Prefix.P2PK] = 33,
|
|
105
106
|
//working with value in comment for base58.ml line 445 but not consistent with the three above
|
|
106
|
-
[Prefix.BLPK]
|
|
107
|
-
[Prefix.EDSIG]
|
|
108
|
-
[Prefix.SPSIG]
|
|
109
|
-
[Prefix.P2SIG]
|
|
110
|
-
[Prefix.SIG]
|
|
111
|
-
[Prefix.NET]
|
|
112
|
-
[Prefix.B]
|
|
113
|
-
[Prefix.P]
|
|
114
|
-
[Prefix.O]
|
|
115
|
-
[Prefix.VH]
|
|
116
|
-
[Prefix.SASK]
|
|
117
|
-
[Prefix.ZET1]
|
|
118
|
-
[Prefix.TXR1]
|
|
119
|
-
[Prefix.TXI]
|
|
120
|
-
[Prefix.TXM]
|
|
121
|
-
[Prefix.TXC]
|
|
122
|
-
[Prefix.TXMR]
|
|
123
|
-
[Prefix.TXRL]
|
|
124
|
-
[Prefix.TXW]
|
|
125
|
-
|
|
107
|
+
_b[Prefix.BLPK] = 48,
|
|
108
|
+
_b[Prefix.EDSIG] = 64,
|
|
109
|
+
_b[Prefix.SPSIG] = 64,
|
|
110
|
+
_b[Prefix.P2SIG] = 64,
|
|
111
|
+
_b[Prefix.SIG] = 64,
|
|
112
|
+
_b[Prefix.NET] = 4,
|
|
113
|
+
_b[Prefix.B] = 32,
|
|
114
|
+
_b[Prefix.P] = 32,
|
|
115
|
+
_b[Prefix.O] = 32,
|
|
116
|
+
_b[Prefix.VH] = 32,
|
|
117
|
+
_b[Prefix.SASK] = 169,
|
|
118
|
+
_b[Prefix.ZET1] = 43,
|
|
119
|
+
_b[Prefix.TXR1] = 20,
|
|
120
|
+
_b[Prefix.TXI] = 32,
|
|
121
|
+
_b[Prefix.TXM] = 32,
|
|
122
|
+
_b[Prefix.TXC] = 32,
|
|
123
|
+
_b[Prefix.TXMR] = 32,
|
|
124
|
+
_b[Prefix.TXRL] = 32,
|
|
125
|
+
_b[Prefix.TXW] = 32,
|
|
126
|
+
_b);
|
|
126
127
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.ts"],"names":[],"mappings":";;;;AAAA,IAAY,MAqDX;AArDD,WAAY,MAAM;IAChB,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,mBAAS,CAAA;IACT,qBAAW,CAAA;IAEX,yBAAe,CAAA;IACf,uBAAa,CAAA;IACb,uBAAa,CAAA;IAEb,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,uBAAa,CAAA;IACb,uBAAa,CAAA;IAEb,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,yBAAe,CAAA;IAEf,uBAAa,CAAA;IACb,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,yBAAe,CAAA;IACf,qBAAW,CAAA;IAEX,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,iBAAO,CAAA;IACP,iBAAO,CAAA;IACP,mBAAS,CAAA;IACT,qBAAW,CAAA;IACX,iBAAO,CAAA;IACP,mBAAS,CAAA;IACT,mBAAS,CAAA;IAET,uBAAa,CAAA;IACb,mBAAS,CAAA;IAET,mBAAS,CAAA;IAET,uBAAa,CAAA;IACb,uBAAa,CAAA;IAEb,SAAS;IACT,uBAAa,CAAA;IACb,qBAAW,CAAA;IACX,qBAAW,CAAA;IACX,qBAAW,C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,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;IAEhB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,8FAA8F;IAC9F,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IAEjB,GAAC,MAAM,CAAC,KAAK,IAAG,EAAE;IAClB,GAAC,MAAM,CAAC,KAAK,IAAG,EAAE;IAClB,GAAC,MAAM,CAAC,KAAK,IAAG,EAAE;IAClB,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;IAChB,GAAC,MAAM,CAAC,GAAG,IAAG,CAAC;IACf,GAAC,MAAM,CAAC,CAAC,IAAG,EAAE;IACd,GAAC,MAAM,CAAC,CAAC,IAAG,EAAE;IACd,GAAC,MAAM,CAAC,CAAC,IAAG,EAAE;IACd,GAAC,MAAM,CAAC,EAAE,IAAG,EAAE;IACf,GAAC,MAAM,CAAC,IAAI,IAAG,GAAG;IAClB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;IAChB,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;IAChB,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;IAChB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,IAAI,IAAG,EAAE;IACjB,GAAC,MAAM,CAAC,GAAG,IAAG,EAAE;QAChB"}
|
|
@@ -1,207 +1,270 @@
|
|
|
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.InvalidHexStringError = exports.ValueConversionError = exports.ProhibitedActionError = exports.DeprecationError = exports.InvalidOperationKindError = exports.InvalidOperationHashError = exports.InvalidProtocolHashError = exports.InvalidBlockHashError = exports.InvalidKeyHashError = exports.InvalidChainIdError = exports.InvalidAddressError = exports.InvalidContractAddressError = exports.InvalidMessageError = exports.InvalidSignatureError = exports.InvalidPublicKeyError = exports.InvalidKeyError = void 0;
|
|
4
19
|
/**
|
|
5
20
|
* @category Error
|
|
6
21
|
* @description Error that indicates an invalid key being passed or used
|
|
7
22
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
23
|
+
var InvalidKeyError = /** @class */ (function (_super) {
|
|
24
|
+
__extends(InvalidKeyError, _super);
|
|
25
|
+
function InvalidKeyError(key, errorDetail) {
|
|
26
|
+
var _this = _super.call(this) || this;
|
|
27
|
+
_this.key = key;
|
|
28
|
+
_this.errorDetail = errorDetail;
|
|
29
|
+
_this.name = 'InvalidKeyError';
|
|
30
|
+
var baseMessage = "The key ".concat(key, " is invalid.");
|
|
31
|
+
_this.message = errorDetail ? "".concat(baseMessage, " ").concat(errorDetail) : baseMessage;
|
|
32
|
+
return _this;
|
|
33
|
+
}
|
|
34
|
+
return InvalidKeyError;
|
|
35
|
+
}(Error));
|
|
18
36
|
exports.InvalidKeyError = InvalidKeyError;
|
|
19
37
|
/**
|
|
20
38
|
* @category Error
|
|
21
39
|
* @description Error that indicates an Invalid Public Key being passed or used
|
|
22
40
|
*/
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
var InvalidPublicKeyError = /** @class */ (function (_super) {
|
|
42
|
+
__extends(InvalidPublicKeyError, _super);
|
|
43
|
+
function InvalidPublicKeyError(publicKey, errorDetail) {
|
|
44
|
+
var _this = _super.call(this) || this;
|
|
45
|
+
_this.publicKey = publicKey;
|
|
46
|
+
_this.name = 'InvalidPublicKeyError';
|
|
47
|
+
var baseMessage = "The public key '".concat(publicKey, "' is invalid.");
|
|
48
|
+
_this.message = errorDetail ? "".concat(baseMessage, " ").concat(errorDetail) : baseMessage;
|
|
49
|
+
return _this;
|
|
50
|
+
}
|
|
51
|
+
return InvalidPublicKeyError;
|
|
52
|
+
}(Error));
|
|
32
53
|
exports.InvalidPublicKeyError = InvalidPublicKeyError;
|
|
33
54
|
/**
|
|
34
55
|
* @category Error
|
|
35
56
|
* @description Error that indicates an invalid signature being passed or used
|
|
36
57
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
58
|
+
var InvalidSignatureError = /** @class */ (function (_super) {
|
|
59
|
+
__extends(InvalidSignatureError, _super);
|
|
60
|
+
function InvalidSignatureError(signature, errorDetail) {
|
|
61
|
+
var _this = _super.call(this) || this;
|
|
62
|
+
_this.signature = signature;
|
|
63
|
+
_this.name = 'InvalidSignatureError';
|
|
64
|
+
var baseMessage = "The signature '".concat(signature, "' is invalid.");
|
|
65
|
+
_this.message = errorDetail ? "".concat(baseMessage, " ").concat(errorDetail) : baseMessage;
|
|
66
|
+
return _this;
|
|
67
|
+
}
|
|
68
|
+
return InvalidSignatureError;
|
|
69
|
+
}(Error));
|
|
46
70
|
exports.InvalidSignatureError = InvalidSignatureError;
|
|
47
71
|
/**
|
|
48
72
|
* @category Error
|
|
49
73
|
* @description Error that indicates an invalid message being passed or used
|
|
50
74
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
75
|
+
var InvalidMessageError = /** @class */ (function (_super) {
|
|
76
|
+
__extends(InvalidMessageError, _super);
|
|
77
|
+
function InvalidMessageError(msg, errorDetail) {
|
|
78
|
+
var _this = _super.call(this) || this;
|
|
79
|
+
_this.msg = msg;
|
|
80
|
+
_this.errorDetail = errorDetail;
|
|
81
|
+
_this.name = 'InvalidMessageError';
|
|
82
|
+
var baseMessage = "The message '".concat(msg, "' is invalid.");
|
|
83
|
+
_this.message = errorDetail ? "".concat(baseMessage, " ").concat(errorDetail) : baseMessage;
|
|
84
|
+
return _this;
|
|
85
|
+
}
|
|
86
|
+
return InvalidMessageError;
|
|
87
|
+
}(Error));
|
|
61
88
|
exports.InvalidMessageError = InvalidMessageError;
|
|
62
89
|
/**
|
|
63
90
|
* @category Error
|
|
64
91
|
* @description Error that indicates an invalid contract address being passed or used
|
|
65
92
|
*/
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
this.contractAddress
|
|
70
|
-
|
|
93
|
+
var InvalidContractAddressError = /** @class */ (function (_super) {
|
|
94
|
+
__extends(InvalidContractAddressError, _super);
|
|
95
|
+
function InvalidContractAddressError(contractAddress) {
|
|
96
|
+
var _this = _super.call(this, "The contract address '".concat(contractAddress, "' is invalid")) || this;
|
|
97
|
+
_this.contractAddress = contractAddress;
|
|
98
|
+
_this.name = 'InvalidContractAddressError';
|
|
99
|
+
return _this;
|
|
71
100
|
}
|
|
72
|
-
|
|
101
|
+
return InvalidContractAddressError;
|
|
102
|
+
}(Error));
|
|
73
103
|
exports.InvalidContractAddressError = InvalidContractAddressError;
|
|
74
104
|
/**
|
|
75
105
|
* @category Error
|
|
76
106
|
* @description Error that indicates an invalid address being passed or used (both contract and implicit)
|
|
77
107
|
*/
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
108
|
+
var InvalidAddressError = /** @class */ (function (_super) {
|
|
109
|
+
__extends(InvalidAddressError, _super);
|
|
110
|
+
function InvalidAddressError(address, errorDetail) {
|
|
111
|
+
var _this = _super.call(this) || this;
|
|
112
|
+
_this.address = address;
|
|
113
|
+
_this.name = 'InvalidAddressError';
|
|
114
|
+
var baseMessage = "The address '".concat(address, "' is invalid.");
|
|
115
|
+
_this.message = errorDetail ? "".concat(baseMessage, " ").concat(errorDetail) : baseMessage;
|
|
116
|
+
return _this;
|
|
117
|
+
}
|
|
118
|
+
return InvalidAddressError;
|
|
119
|
+
}(Error));
|
|
87
120
|
exports.InvalidAddressError = InvalidAddressError;
|
|
88
121
|
/**
|
|
89
122
|
* @category Error
|
|
90
123
|
* @description Error that indicates an invalid chain id being passed or used
|
|
91
124
|
*/
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
this.chainId
|
|
96
|
-
|
|
125
|
+
var InvalidChainIdError = /** @class */ (function (_super) {
|
|
126
|
+
__extends(InvalidChainIdError, _super);
|
|
127
|
+
function InvalidChainIdError(chainId) {
|
|
128
|
+
var _this = _super.call(this, "The chain id '".concat(chainId, "' is invalid")) || this;
|
|
129
|
+
_this.chainId = chainId;
|
|
130
|
+
_this.name = 'InvalidChainIdError';
|
|
131
|
+
return _this;
|
|
97
132
|
}
|
|
98
|
-
|
|
133
|
+
return InvalidChainIdError;
|
|
134
|
+
}(Error));
|
|
99
135
|
exports.InvalidChainIdError = InvalidChainIdError;
|
|
100
136
|
/**
|
|
101
137
|
* @category Error
|
|
102
138
|
* @description Error that indicates an invalid key hash being passed or used
|
|
103
139
|
*/
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
this.keyHash
|
|
108
|
-
|
|
140
|
+
var InvalidKeyHashError = /** @class */ (function (_super) {
|
|
141
|
+
__extends(InvalidKeyHashError, _super);
|
|
142
|
+
function InvalidKeyHashError(keyHash) {
|
|
143
|
+
var _this = _super.call(this, "The public key hash '".concat(keyHash, "' is invalid")) || this;
|
|
144
|
+
_this.keyHash = keyHash;
|
|
145
|
+
_this.name = 'InvalidKeyHashError';
|
|
146
|
+
return _this;
|
|
109
147
|
}
|
|
110
|
-
|
|
148
|
+
return InvalidKeyHashError;
|
|
149
|
+
}(Error));
|
|
111
150
|
exports.InvalidKeyHashError = InvalidKeyHashError;
|
|
112
151
|
/**
|
|
113
152
|
* @category Error
|
|
114
153
|
* @description Error that indicates an invalid block hash being passed or used
|
|
115
|
-
*/
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
this.blockHash
|
|
119
|
-
|
|
154
|
+
*/ var InvalidBlockHashError = /** @class */ (function (_super) {
|
|
155
|
+
__extends(InvalidBlockHashError, _super);
|
|
156
|
+
function InvalidBlockHashError(blockHash) {
|
|
157
|
+
var _this = _super.call(this, "The block hash '".concat(blockHash, "' is invalid")) || this;
|
|
158
|
+
_this.blockHash = blockHash;
|
|
159
|
+
_this.name = 'InvalidBlockHashError';
|
|
160
|
+
return _this;
|
|
120
161
|
}
|
|
121
|
-
|
|
162
|
+
return InvalidBlockHashError;
|
|
163
|
+
}(Error));
|
|
122
164
|
exports.InvalidBlockHashError = InvalidBlockHashError;
|
|
123
165
|
/**
|
|
124
166
|
* @category Error
|
|
125
167
|
* @description Error that indicates invalid protocol hash being passed or used
|
|
126
168
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
this.protocolHash
|
|
131
|
-
|
|
169
|
+
var InvalidProtocolHashError = /** @class */ (function (_super) {
|
|
170
|
+
__extends(InvalidProtocolHashError, _super);
|
|
171
|
+
function InvalidProtocolHashError(protocolHash) {
|
|
172
|
+
var _this = _super.call(this, "The protocol hash '".concat(protocolHash, "' is invalid")) || this;
|
|
173
|
+
_this.protocolHash = protocolHash;
|
|
174
|
+
_this.name = 'InvalidProtocolHashError';
|
|
175
|
+
return _this;
|
|
132
176
|
}
|
|
133
|
-
|
|
177
|
+
return InvalidProtocolHashError;
|
|
178
|
+
}(Error));
|
|
134
179
|
exports.InvalidProtocolHashError = InvalidProtocolHashError;
|
|
135
180
|
/**
|
|
136
181
|
* @category Error
|
|
137
182
|
* @description Error that indicates an invalid operation hash being passed or used
|
|
138
|
-
*/
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
this.operationHash
|
|
142
|
-
|
|
183
|
+
*/ var InvalidOperationHashError = /** @class */ (function (_super) {
|
|
184
|
+
__extends(InvalidOperationHashError, _super);
|
|
185
|
+
function InvalidOperationHashError(operationHash) {
|
|
186
|
+
var _this = _super.call(this, "The operation hash '".concat(operationHash, "' is invalid")) || this;
|
|
187
|
+
_this.operationHash = operationHash;
|
|
188
|
+
_this.name = 'InvalidOperationHashError';
|
|
189
|
+
return _this;
|
|
143
190
|
}
|
|
144
|
-
|
|
191
|
+
return InvalidOperationHashError;
|
|
192
|
+
}(Error));
|
|
145
193
|
exports.InvalidOperationHashError = InvalidOperationHashError;
|
|
146
194
|
/**
|
|
147
195
|
* @category Error
|
|
148
196
|
* @description Error that indicates an invalid operation kind being passed or used
|
|
149
197
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
this.operationKind
|
|
154
|
-
|
|
198
|
+
var InvalidOperationKindError = /** @class */ (function (_super) {
|
|
199
|
+
__extends(InvalidOperationKindError, _super);
|
|
200
|
+
function InvalidOperationKindError(operationKind) {
|
|
201
|
+
var _this = _super.call(this, "The operation kind '".concat(operationKind, "' is unsupported")) || this;
|
|
202
|
+
_this.operationKind = operationKind;
|
|
203
|
+
_this.name = 'InvalidOperationKindError';
|
|
204
|
+
return _this;
|
|
155
205
|
}
|
|
156
|
-
|
|
206
|
+
return InvalidOperationKindError;
|
|
207
|
+
}(Error));
|
|
157
208
|
exports.InvalidOperationKindError = InvalidOperationKindError;
|
|
158
209
|
/**
|
|
159
210
|
* @category Error
|
|
160
211
|
* @description General error that indicates something is no longer supported and/or deprecated
|
|
161
212
|
*/
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
this
|
|
166
|
-
|
|
213
|
+
var DeprecationError = /** @class */ (function (_super) {
|
|
214
|
+
__extends(DeprecationError, _super);
|
|
215
|
+
function DeprecationError(message) {
|
|
216
|
+
var _this = _super.call(this, message) || this;
|
|
217
|
+
_this.message = message;
|
|
218
|
+
_this.name = 'DeprecationError';
|
|
219
|
+
return _this;
|
|
167
220
|
}
|
|
168
|
-
|
|
221
|
+
return DeprecationError;
|
|
222
|
+
}(Error));
|
|
169
223
|
exports.DeprecationError = DeprecationError;
|
|
170
224
|
/**
|
|
171
225
|
* @category Error
|
|
172
226
|
* @description General error that indicates an action is prohibited or not allowed
|
|
173
227
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
this
|
|
178
|
-
|
|
228
|
+
var ProhibitedActionError = /** @class */ (function (_super) {
|
|
229
|
+
__extends(ProhibitedActionError, _super);
|
|
230
|
+
function ProhibitedActionError(message) {
|
|
231
|
+
var _this = _super.call(this, message) || this;
|
|
232
|
+
_this.message = message;
|
|
233
|
+
_this.name = 'ProhibitedActionError';
|
|
234
|
+
return _this;
|
|
179
235
|
}
|
|
180
|
-
|
|
236
|
+
return ProhibitedActionError;
|
|
237
|
+
}(Error));
|
|
181
238
|
exports.ProhibitedActionError = ProhibitedActionError;
|
|
182
239
|
/**
|
|
183
240
|
* @category Error
|
|
184
241
|
* @description General error that indicates a failure when trying to convert data from one type to another
|
|
185
242
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
this.value
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
243
|
+
var ValueConversionError = /** @class */ (function (_super) {
|
|
244
|
+
__extends(ValueConversionError, _super);
|
|
245
|
+
function ValueConversionError(value, desiredType) {
|
|
246
|
+
var _this = _super.call(this, "Unable to convert ".concat(value, " to a ").concat(desiredType)) || this;
|
|
247
|
+
_this.value = value;
|
|
248
|
+
_this.desiredType = desiredType;
|
|
249
|
+
_this.name = 'ValueConversionError';
|
|
250
|
+
return _this;
|
|
251
|
+
}
|
|
252
|
+
return ValueConversionError;
|
|
253
|
+
}(Error));
|
|
194
254
|
exports.ValueConversionError = ValueConversionError;
|
|
195
255
|
/**
|
|
196
256
|
* @category Error
|
|
197
257
|
* @description Error that indicates an invalid hex string being passed or used
|
|
198
258
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
this
|
|
203
|
-
|
|
259
|
+
var InvalidHexStringError = /** @class */ (function (_super) {
|
|
260
|
+
__extends(InvalidHexStringError, _super);
|
|
261
|
+
function InvalidHexStringError(message) {
|
|
262
|
+
var _this = _super.call(this, message) || this;
|
|
263
|
+
_this.message = message;
|
|
264
|
+
_this.name = 'InvalidHexStringError';
|
|
265
|
+
return _this;
|
|
204
266
|
}
|
|
205
|
-
|
|
267
|
+
return InvalidHexStringError;
|
|
268
|
+
}(Error));
|
|
206
269
|
exports.InvalidHexStringError = InvalidHexStringError;
|
|
207
270
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH;IAAqC,mCAAK;IAExC,yB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ber';
|
|
2
|
-
type Format = 'tz' | 'mtz' | 'mutez';
|
|
2
|
+
declare type Format = 'tz' | 'mtz' | 'mutez';
|
|
3
3
|
export declare function format(from: Format | undefined, to: Format | undefined, amount: number | string | BigNumber): string | number | BigNumber;
|
|
4
4
|
export {};
|