@airgap/coinlib-core 0.13.45-beta.3 → 0.13.45-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/Action.js +83 -30
- package/actions/Action.js.map +1 -1
- package/actions/LinkedAction.js +82 -18
- package/actions/LinkedAction.js.map +1 -1
- package/actions/RepeatableAction.js +83 -20
- package/actions/RepeatableAction.js.map +1 -1
- package/actions/SimpleAction.js +74 -12
- package/actions/SimpleAction.js.map +1 -1
- package/actions/StateMachine.js +17 -16
- package/actions/StateMachine.js.map +1 -1
- package/data/KeyPair.d.ts +1 -0
- package/data/Lazy.js +64 -15
- package/data/Lazy.js.map +1 -1
- package/data/RPCBody.js +6 -3
- package/data/RPCBody.js.map +1 -1
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +12 -12
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +130 -88
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -1
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +3 -3
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +61 -57
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -1
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +96 -96
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +2 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -1
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +10 -8
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +28 -22
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +10 -9
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +11 -10
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +8 -7
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -1
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +3 -3
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +63 -61
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +4 -4
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +63 -61
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +3 -2
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +111 -111
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +15 -15
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +76 -47
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +61 -46
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +106 -61
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +6 -6
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +100 -95
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +33 -33
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +9 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +75 -46
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +70 -45
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +41 -41
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +4 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +63 -58
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +33 -30
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +20 -18
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +12 -5
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +13 -13
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +78 -78
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +45 -45
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +76 -75
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +178 -115
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +9 -6
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +83 -78
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +36 -27
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +26 -25
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -1
- package/dependencies/src/cosmjs/index.d.ts +230 -14
- package/dependencies/src/cosmjs/index.js +480 -373
- package/dependencies/src/cosmjs/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.js +19 -15
- package/dependencies/src/eciesjs-0.3.9/src/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +28 -37
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +30 -38
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +24 -33
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +34 -42
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +10 -6
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
- package/errors/coinlib-error.d.ts +2 -1
- package/errors/coinlib-error.js +38 -16
- package/errors/coinlib-error.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.js +148 -89
- package/errors/index.js.map +1 -1
- package/index.js +19 -19
- package/index.js.map +1 -1
- package/interfaces/IAirGapSignedTransaction.d.ts +1 -1
- package/interfaces/IAirGapTransaction.js +3 -3
- package/interfaces/IAirGapTransaction.js.map +1 -1
- package/networks.js +9 -9
- package/networks.js.map +1 -1
- package/package.json +1 -1
- package/protocols/BlockExplorerProtocol.js +54 -7
- package/protocols/BlockExplorerProtocol.js.map +1 -1
- package/protocols/CryptoClient.js +78 -19
- package/protocols/CryptoClient.js.map +1 -1
- package/protocols/Ed25519CryptoClient.js +98 -30
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinSubProtocol.js +1 -1
- package/protocols/ICoinSubProtocol.js.map +1 -1
- package/protocols/NonExtendedProtocol.js +29 -26
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.js +73 -9
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.js +76 -12
- package/protocols/Sr25519CryptoClient.js.map +1 -1
- package/utils/AES.js +132 -81
- package/utils/AES.js.map +1 -1
- package/utils/ErrorWithData.js +23 -5
- package/utils/ErrorWithData.js.map +1 -1
- package/utils/Network.js +1 -1
- package/utils/Network.js.map +1 -1
- package/utils/ProtocolBlockExplorer.js +4 -3
- package/utils/ProtocolBlockExplorer.js.map +1 -1
- package/utils/ProtocolNetwork.js +16 -11
- package/utils/ProtocolNetwork.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +3 -1
- package/utils/ProtocolSymbols.js +8 -6
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/array.js +15 -14
- package/utils/array.js.map +1 -1
- package/utils/assert.js +12 -8
- package/utils/assert.js.map +1 -1
- package/utils/base64Check.d.ts +1 -0
- package/utils/base64Check.js +15 -15
- package/utils/base64Check.js.map +1 -1
- package/utils/blake2b.js +14 -11
- package/utils/blake2b.js.map +1 -1
- package/utils/buffer.d.ts +1 -0
- package/utils/buffer.js +1 -1
- package/utils/buffer.js.map +1 -1
- package/utils/cache.js +87 -38
- package/utils/cache.js.map +1 -1
- package/utils/error.js +3 -2
- package/utils/error.js.map +1 -1
- package/utils/hex.d.ts +2 -1
- package/utils/hex.js +38 -31
- package/utils/hex.js.map +1 -1
- package/utils/interfaces.js +4 -3
- package/utils/interfaces.js.map +1 -1
- package/utils/object.js +7 -5
- package/utils/object.js.map +1 -1
- package/utils/padStart.js +2 -1
- package/utils/padStart.js.map +1 -1
- package/utils/remote-data/HttpRemoteData.js +107 -24
- package/utils/remote-data/HttpRemoteData.js.map +1 -1
- package/utils/remote-data/IpfsRemoteData.js +116 -32
- package/utils/remote-data/IpfsRemoteData.js.map +1 -1
- package/utils/remote-data/RemoteData.d.ts +1 -0
- package/utils/remote-data/RemoteData.js +4 -3
- package/utils/remote-data/RemoteData.js.map +1 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
- package/utils/remote-data/RemoteDataFactory.js +20 -13
- package/utils/remote-data/RemoteDataFactory.js.map +1 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +1 -0
- package/utils/remote-data/Sha256RemoteData.js +117 -44
- package/utils/remote-data/Sha256RemoteData.js.map +1 -1
- package/utils/string.js +9 -8
- package/utils/string.js.map +1 -1
- package/utils/type.js +4 -3
- package/utils/type.js.map +1 -1
- package/utils/xxhash.d.ts +1 -0
- package/utils/xxhash.js +11 -9
- package/utils/xxhash.js.map +1 -1
- package/wallet/AirGapCoinWallet.js +183 -64
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +201 -88
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.js +165 -48
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.js +145 -58
- package/wallet/AirGapWallet.js.map +1 -1
package/data/Lazy.js
CHANGED
|
@@ -1,34 +1,83 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (_) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
2
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
39
|
exports.LazyAsync = exports.Lazy = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
40
|
+
var Lazy = /** @class */ (function () {
|
|
41
|
+
function Lazy(init) {
|
|
6
42
|
this.init = init;
|
|
7
43
|
this.isInitialized = false;
|
|
8
44
|
this.value = undefined;
|
|
9
45
|
}
|
|
10
|
-
get() {
|
|
46
|
+
Lazy.prototype.get = function () {
|
|
11
47
|
if (!this.isInitialized) {
|
|
12
48
|
this.value = this.init();
|
|
13
49
|
this.isInitialized = true;
|
|
14
50
|
}
|
|
15
51
|
return this.value;
|
|
16
|
-
}
|
|
17
|
-
|
|
52
|
+
};
|
|
53
|
+
return Lazy;
|
|
54
|
+
}());
|
|
18
55
|
exports.Lazy = Lazy;
|
|
19
|
-
|
|
20
|
-
|
|
56
|
+
var LazyAsync = /** @class */ (function () {
|
|
57
|
+
function LazyAsync(init) {
|
|
21
58
|
this.init = init;
|
|
22
59
|
this.isInitialized = false;
|
|
23
60
|
this.value = undefined;
|
|
24
61
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
this
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
62
|
+
LazyAsync.prototype.get = function () {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
+
var _a;
|
|
65
|
+
return __generator(this, function (_b) {
|
|
66
|
+
switch (_b.label) {
|
|
67
|
+
case 0:
|
|
68
|
+
if (!!this.isInitialized) return [3 /*break*/, 2];
|
|
69
|
+
_a = this;
|
|
70
|
+
return [4 /*yield*/, this.init()];
|
|
71
|
+
case 1:
|
|
72
|
+
_a.value = _b.sent();
|
|
73
|
+
this.isInitialized = true;
|
|
74
|
+
_b.label = 2;
|
|
75
|
+
case 2: return [2 /*return*/, this.value];
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
return LazyAsync;
|
|
81
|
+
}());
|
|
33
82
|
exports.LazyAsync = LazyAsync;
|
|
34
83
|
//# sourceMappingURL=Lazy.js.map
|
package/data/Lazy.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lazy.js","sourceRoot":"","sources":["../../src/data/Lazy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lazy.js","sourceRoot":"","sources":["../../src/data/Lazy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;IAKE,cAA6B,IAAa;QAAb,SAAI,GAAJ,IAAI,CAAS;QAJlC,kBAAa,GAAY,KAAK,CAAA;QAE9B,UAAK,GAAO,SAAS,CAAA;IAEgB,CAAC;IAEvC,kBAAG,GAAV;QACE,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE;YACvB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,EAAE,CAAA;YACxB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;SAC1B;QAED,OAAO,IAAI,CAAC,KAAU,CAAA;IACxB,CAAC;IACH,WAAC;AAAD,CAAC,AAfD,IAeC;AAfY,oBAAI;AAiBjB;IAKE,mBAA6B,IAAsB;QAAtB,SAAI,GAAJ,IAAI,CAAkB;QAJ3C,kBAAa,GAAY,KAAK,CAAA;QAE9B,UAAK,GAAO,SAAS,CAAA;IAEyB,CAAC;IAE1C,uBAAG,GAAhB;;;;;;6BACM,CAAC,IAAI,CAAC,aAAa,EAAnB,wBAAmB;wBACrB,KAAA,IAAI,CAAA;wBAAS,qBAAM,IAAI,CAAC,IAAI,EAAE,EAAA;;wBAA9B,GAAK,KAAK,GAAG,SAAiB,CAAA;wBAC9B,IAAI,CAAC,aAAa,GAAG,IAAI,CAAA;;4BAG3B,sBAAO,IAAI,CAAC,KAAU,EAAA;;;;KACvB;IACH,gBAAC;AAAD,CAAC,AAfD,IAeC;AAfY,8BAAS"}
|
package/data/RPCBody.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RPCBody = void 0;
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
var RPCBody = /** @class */ (function () {
|
|
5
|
+
function RPCBody(method, params, id, jsonrpc) {
|
|
6
|
+
if (id === void 0) { id = 1; }
|
|
7
|
+
if (jsonrpc === void 0) { jsonrpc = '2.0'; }
|
|
6
8
|
this.method = method;
|
|
7
9
|
this.params = params;
|
|
8
10
|
this.id = id;
|
|
9
11
|
this.jsonrpc = jsonrpc;
|
|
10
12
|
}
|
|
11
|
-
|
|
13
|
+
return RPCBody;
|
|
14
|
+
}());
|
|
12
15
|
exports.RPCBody = RPCBody;
|
|
13
16
|
//# sourceMappingURL=RPCBody.js.map
|
package/data/RPCBody.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RPCBody.js","sourceRoot":"","sources":["../../src/data/RPCBody.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"RPCBody.js","sourceRoot":"","sources":["../../src/data/RPCBody.ts"],"names":[],"mappings":";;;AAAA;IACE,iBACkB,MAAc,EACd,MAAa,EACb,EAAc,EACd,OAAuB;QADvB,mBAAA,EAAA,MAAc;QACd,wBAAA,EAAA,eAAuB;QAHvB,WAAM,GAAN,MAAM,CAAQ;QACd,WAAM,GAAN,MAAM,CAAO;QACb,OAAE,GAAF,EAAE,CAAY;QACd,YAAO,GAAP,OAAO,CAAgB;IACtC,CAAC;IACN,cAAC;AAAD,CAAC,AAPD,IAOC;AAPY,0BAAO"}
|
|
@@ -26,7 +26,7 @@ export declare function readUint16LE(array: Uint8Array, offset?: number): number
|
|
|
26
26
|
*
|
|
27
27
|
* Returns the output byte array.
|
|
28
28
|
*/
|
|
29
|
-
export declare function writeUint16BE(value: number, out?: Uint8Array
|
|
29
|
+
export declare function writeUint16BE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
30
30
|
export declare const writeInt16BE: typeof writeUint16BE;
|
|
31
31
|
/**
|
|
32
32
|
* Writes 2-byte little-endian representation of 16-bit unsigned
|
|
@@ -36,7 +36,7 @@ export declare const writeInt16BE: typeof writeUint16BE;
|
|
|
36
36
|
*
|
|
37
37
|
* Returns the output byte array.
|
|
38
38
|
*/
|
|
39
|
-
export declare function writeUint16LE(value: number, out?: Uint8Array
|
|
39
|
+
export declare function writeUint16LE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
40
40
|
export declare const writeInt16LE: typeof writeUint16LE;
|
|
41
41
|
/**
|
|
42
42
|
* Reads 4 bytes from array starting at offset as big-endian
|
|
@@ -66,7 +66,7 @@ export declare function readUint32LE(array: Uint8Array, offset?: number): number
|
|
|
66
66
|
*
|
|
67
67
|
* Returns the output byte array.
|
|
68
68
|
*/
|
|
69
|
-
export declare function writeUint32BE(value: number, out?: Uint8Array
|
|
69
|
+
export declare function writeUint32BE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
70
70
|
export declare const writeInt32BE: typeof writeUint32BE;
|
|
71
71
|
/**
|
|
72
72
|
* Writes 4-byte little-endian representation of 32-bit unsigned
|
|
@@ -76,7 +76,7 @@ export declare const writeInt32BE: typeof writeUint32BE;
|
|
|
76
76
|
*
|
|
77
77
|
* Returns the output byte array.
|
|
78
78
|
*/
|
|
79
|
-
export declare function writeUint32LE(value: number, out?: Uint8Array
|
|
79
|
+
export declare function writeUint32LE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
80
80
|
export declare const writeInt32LE: typeof writeUint32LE;
|
|
81
81
|
/**
|
|
82
82
|
* Reads 8 bytes from array starting at offset as big-endian
|
|
@@ -122,7 +122,7 @@ export declare function readUint64LE(array: Uint8Array, offset?: number): number
|
|
|
122
122
|
*
|
|
123
123
|
* Returns the output byte array.
|
|
124
124
|
*/
|
|
125
|
-
export declare function writeUint64BE(value: number, out?: Uint8Array
|
|
125
|
+
export declare function writeUint64BE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
126
126
|
export declare const writeInt64BE: typeof writeUint64BE;
|
|
127
127
|
/**
|
|
128
128
|
* Writes 8-byte little-endian representation of 64-bit unsigned
|
|
@@ -134,7 +134,7 @@ export declare const writeInt64BE: typeof writeUint64BE;
|
|
|
134
134
|
*
|
|
135
135
|
* Returns the output byte array.
|
|
136
136
|
*/
|
|
137
|
-
export declare function writeUint64LE(value: number, out?: Uint8Array
|
|
137
|
+
export declare function writeUint64LE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
138
138
|
export declare const writeInt64LE: typeof writeUint64LE;
|
|
139
139
|
/**
|
|
140
140
|
* Reads bytes from array starting at offset as big-endian
|
|
@@ -160,7 +160,7 @@ export declare function readUintLE(bitLength: number, array: Uint8Array, offset?
|
|
|
160
160
|
*
|
|
161
161
|
* Returns the output byte array.
|
|
162
162
|
*/
|
|
163
|
-
export declare function writeUintBE(bitLength: number, value: number, out?: Uint8Array
|
|
163
|
+
export declare function writeUintBE(bitLength: number, value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
164
164
|
/**
|
|
165
165
|
* Writes a little-endian representation of bitLen-bit unsigned
|
|
166
166
|
* value to array starting at offset.
|
|
@@ -171,7 +171,7 @@ export declare function writeUintBE(bitLength: number, value: number, out?: Uint
|
|
|
171
171
|
*
|
|
172
172
|
* Returns the output byte array.
|
|
173
173
|
*/
|
|
174
|
-
export declare function writeUintLE(bitLength: number, value: number, out?: Uint8Array
|
|
174
|
+
export declare function writeUintLE(bitLength: number, value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
175
175
|
/**
|
|
176
176
|
* Reads 4 bytes from array starting at offset as big-endian
|
|
177
177
|
* 32-bit floating-point number and returns it.
|
|
@@ -200,7 +200,7 @@ export declare function readFloat64LE(array: Uint8Array, offset?: number): numbe
|
|
|
200
200
|
*
|
|
201
201
|
* Returns the output byte array.
|
|
202
202
|
*/
|
|
203
|
-
export declare function writeFloat32BE(value: number, out?: Uint8Array
|
|
203
|
+
export declare function writeFloat32BE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
204
204
|
/**
|
|
205
205
|
* Writes 4-byte little-endian floating-point representation of value
|
|
206
206
|
* to byte array starting at offset.
|
|
@@ -209,7 +209,7 @@ export declare function writeFloat32BE(value: number, out?: Uint8Array<ArrayBuff
|
|
|
209
209
|
*
|
|
210
210
|
* Returns the output byte array.
|
|
211
211
|
*/
|
|
212
|
-
export declare function writeFloat32LE(value: number, out?: Uint8Array
|
|
212
|
+
export declare function writeFloat32LE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
213
213
|
/**
|
|
214
214
|
* Writes 8-byte big-endian floating-point representation of value
|
|
215
215
|
* to byte array starting at offset.
|
|
@@ -218,7 +218,7 @@ export declare function writeFloat32LE(value: number, out?: Uint8Array<ArrayBuff
|
|
|
218
218
|
*
|
|
219
219
|
* Returns the output byte array.
|
|
220
220
|
*/
|
|
221
|
-
export declare function writeFloat64BE(value: number, out?: Uint8Array
|
|
221
|
+
export declare function writeFloat64BE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|
|
222
222
|
/**
|
|
223
223
|
* Writes 8-byte little-endian floating-point representation of value
|
|
224
224
|
* to byte array starting at offset.
|
|
@@ -227,4 +227,4 @@ export declare function writeFloat64BE(value: number, out?: Uint8Array<ArrayBuff
|
|
|
227
227
|
*
|
|
228
228
|
* Returns the output byte array.
|
|
229
229
|
*/
|
|
230
|
-
export declare function writeFloat64LE(value: number, out?: Uint8Array
|
|
230
|
+
export declare function writeFloat64LE(value: number, out?: Uint8Array, offset?: number): Uint8Array;
|