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