@locuschain/lib 0.1.38 → 0.1.39
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/dist/accounts/index.amd.js +306 -0
- package/dist/accounts/index.cjs.cjs +2 -2
- package/dist/accounts/index.esm.js +2 -2
- package/dist/autogen/index.amd.js +151 -0
- package/dist/autogen/index.cjs.cjs +2 -2
- package/dist/autogen/index.esm.js +2 -2
- package/dist/chunks/account-BSrvZ7S8.js +77 -0
- package/dist/chunks/address-class-Dp7aNQb2.js +18 -0
- package/dist/chunks/base-B_kRRfsf.js +27 -0
- package/dist/chunks/debugWalletActions-BDz-h2tl.js +993 -0
- package/dist/chunks/{keystore-BFVSylSw.js → keystore-BMgBWq6G.js} +1 -1
- package/dist/chunks/{keystore-BbK5pVrh.cjs → keystore-CjcbAa1r.cjs} +1 -1
- package/dist/chunks/keystore-D7_ZZNzS.js +143 -0
- package/dist/chunks/{lclib-C2eG5HzD.js → lclib-BlnZKIGv.js} +43 -27
- package/dist/chunks/lclib-DBHaYcY8.js +3854 -0
- package/dist/chunks/{lclib-DuoOR0-Q.cjs → lclib-xRDGxtgw.cjs} +52 -36
- package/dist/chunks/rpc-C4n7t9y0.js +25 -0
- package/dist/chunks/transport-BBAz1kmP.js +30 -0
- package/dist/chunks/tslib.es6-D29rxPkW.js +37 -0
- package/dist/chunks/tx-type-CS4wIUJ8.js +68 -0
- package/dist/chunks/wasm-BCEa0JCQ.js +213 -0
- package/dist/chunks/{wasm-BtPcXTR4.js → wasm-C4WNl2YQ.js} +1 -1
- package/dist/chunks/{wasm-DTyHBxcY.cjs → wasm-D4S52Ifh.cjs} +1 -1
- package/dist/clients/index.amd.js +97 -0
- package/dist/clients/index.cjs.cjs +1 -1
- package/dist/clients/index.esm.js +1 -1
- package/dist/constant/index.amd.js +458 -0
- package/dist/contracts/index.amd.js +19640 -0
- package/dist/contracts/index.cjs.cjs +2 -2
- package/dist/contracts/index.esm.js +2 -2
- package/dist/errors/index.amd.js +17 -0
- package/dist/index.amd.js +43 -0
- package/dist/index.cjs.cjs +3 -3
- package/dist/index.esm.js +3 -3
- package/dist/transports/index.amd.js +98 -0
- package/dist/utils/index.amd.js +353 -0
- package/dist/utils/index.cjs.cjs +3 -3
- package/dist/utils/index.esm.js +4 -4
- package/dist/vite-plugin/index.amd.js +186 -0
- package/dist/vite-plugin/index.cjs.cjs +189 -0
- package/dist/vite-plugin/index.d.cts +46 -0
- package/dist/vite-plugin/index.d.mts +46 -0
- package/dist/vite-plugin/index.esm.js +183 -0
- package/dist/webpack-plugin/index.amd.js +101 -0
- package/dist/webpack-plugin/index.cjs.cjs +104 -0
- package/dist/webpack-plugin/index.d.cts +46 -0
- package/dist/webpack-plugin/index.d.mts +46 -0
- package/dist/webpack-plugin/index.esm.js +98 -0
- package/package.json +36 -6
- package/dist/index.umd.d.mts +0 -15
- package/dist/umd/index.umd.js +0 -26296
|
@@ -13,10 +13,10 @@ function AimerModule() {
|
|
|
13
13
|
var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
|
|
14
14
|
if (ENVIRONMENT_IS_NODE) {
|
|
15
15
|
const { createRequire } = yield import('node:module');
|
|
16
|
-
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
16
|
+
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
17
17
|
}
|
|
18
18
|
var quit_ = (status, toThrow) => { throw toThrow; };
|
|
19
|
-
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
19
|
+
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href));
|
|
20
20
|
var scriptDirectory = "";
|
|
21
21
|
function locateFile(path) { if (Module["locateFile"]) {
|
|
22
22
|
return Module["locateFile"](path, scriptDirectory);
|
|
@@ -83,7 +83,7 @@ function AimerModule() {
|
|
|
83
83
|
var wasmBinaryFile;
|
|
84
84
|
function findWasmBinary() { if (Module["locateFile"]) {
|
|
85
85
|
return locateFile("crypto_aimer.wasm");
|
|
86
|
-
} return new URL("crypto_aimer.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
86
|
+
} return new URL("crypto_aimer.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href))).href; }
|
|
87
87
|
function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
|
|
88
88
|
return new Uint8Array(wasmBinary);
|
|
89
89
|
} if (readBinary) {
|
|
@@ -335,9 +335,9 @@ function HaetaeModule() {
|
|
|
335
335
|
var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
|
|
336
336
|
if (ENVIRONMENT_IS_NODE) {
|
|
337
337
|
const { createRequire } = yield import('node:module');
|
|
338
|
-
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
338
|
+
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
339
339
|
}
|
|
340
|
-
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
340
|
+
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href));
|
|
341
341
|
var scriptDirectory = "";
|
|
342
342
|
function locateFile(path) { if (Module["locateFile"]) {
|
|
343
343
|
return Module["locateFile"](path, scriptDirectory);
|
|
@@ -405,7 +405,7 @@ function HaetaeModule() {
|
|
|
405
405
|
var wasmBinaryFile;
|
|
406
406
|
function findWasmBinary() { if (Module["locateFile"]) {
|
|
407
407
|
return locateFile("crypto_haetae.wasm");
|
|
408
|
-
} return new URL("crypto_haetae.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
408
|
+
} return new URL("crypto_haetae.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href))).href; }
|
|
409
409
|
function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
|
|
410
410
|
return new Uint8Array(wasmBinary);
|
|
411
411
|
} if (readBinary) {
|
|
@@ -1641,9 +1641,9 @@ function SmaugtModule() {
|
|
|
1641
1641
|
var ENVIRONMENT_IS_NODE = ((_b = (_a = globalThis.process) === null || _a === void 0 ? void 0 : _a.versions) === null || _b === void 0 ? void 0 : _b.node) && ((_c = globalThis.process) === null || _c === void 0 ? void 0 : _c.type) != "renderer";
|
|
1642
1642
|
if (ENVIRONMENT_IS_NODE) {
|
|
1643
1643
|
const { createRequire } = yield import('node:module');
|
|
1644
|
-
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
1644
|
+
var require$1 = createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
1645
1645
|
}
|
|
1646
|
-
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
1646
|
+
var _scriptName = (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href));
|
|
1647
1647
|
var scriptDirectory = "";
|
|
1648
1648
|
function locateFile(path) { if (Module["locateFile"]) {
|
|
1649
1649
|
return Module["locateFile"](path, scriptDirectory);
|
|
@@ -1711,7 +1711,7 @@ function SmaugtModule() {
|
|
|
1711
1711
|
var wasmBinaryFile;
|
|
1712
1712
|
function findWasmBinary() { if (Module["locateFile"]) {
|
|
1713
1713
|
return locateFile("crypto_smaugt.wasm");
|
|
1714
|
-
} return new URL("crypto_smaugt.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-
|
|
1714
|
+
} return new URL("crypto_smaugt.wasm", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href))).href; }
|
|
1715
1715
|
function getBinarySync(file) { if (file == wasmBinaryFile && wasmBinary) {
|
|
1716
1716
|
return new Uint8Array(wasmBinary);
|
|
1717
1717
|
} if (readBinary) {
|
|
@@ -3150,32 +3150,41 @@ globalThis.js_haetae_verify = function (sigBuf, msgBuf, pkBuf) {
|
|
|
3150
3150
|
haetaeC._free(pkPtr);
|
|
3151
3151
|
return { ret: ret };
|
|
3152
3152
|
};
|
|
3153
|
+
// 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
|
|
3154
|
+
// 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
|
|
3155
|
+
// override (baseUrl/urls) 가 없을 때만 사용된다.
|
|
3156
|
+
const DEFAULT_AIMER_URL = new URL('../autogen/wasm/crypto_aimer.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3157
|
+
const DEFAULT_SMAUGT_URL = new URL('../autogen/wasm/crypto_smaugt.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3158
|
+
const DEFAULT_HAETAE_URL = new URL('../autogen/wasm/crypto_haetae.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3153
3159
|
// AIMER / SMAUGT / HAETAE 의 .wasm 바이너리를 외부에서 받아와 Emscripten 모듈에 주입한다.
|
|
3154
3160
|
// Module({ wasmBinary }) 가 주어지면 글루는 자체 fetch 를 건너뛰고 그 바이트를 사용한다.
|
|
3155
3161
|
//
|
|
3156
3162
|
// opts:
|
|
3157
3163
|
// baseUrl?: URL | string — 기본은 이 파일이 위치한 디렉토리(=dist/utils/...) 기준 ./autogen/wasm/.
|
|
3158
|
-
// 번들 후 디렉토리 구조가 달라지면 호출자가 명시 주입해야 한다.
|
|
3159
3164
|
// urls?: { aimer, smaugt, haetae } — 개별 파일 override
|
|
3160
3165
|
// fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹)
|
|
3161
3166
|
function loadCryptoWasm() {
|
|
3162
3167
|
return tslib_es6.__awaiter(this, arguments, void 0, function* (opts = {}) {
|
|
3163
3168
|
var _a, _b, _c, _d;
|
|
3164
|
-
// opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
|
|
3165
|
-
// chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
|
|
3166
|
-
// 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
|
|
3167
|
-
// 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
|
|
3168
|
-
const base = opts.baseUrl
|
|
3169
|
-
? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
|
|
3170
|
-
: new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href)));
|
|
3171
3169
|
const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3170
|
+
// 우선순위: opts.urls.* > opts.baseUrl > 정적 리터럴
|
|
3171
|
+
const pick = (override, defaultUrl, name) => {
|
|
3172
|
+
if (override) {
|
|
3173
|
+
const base = opts.baseUrl
|
|
3174
|
+
? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
|
|
3175
|
+
: new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3176
|
+
return override instanceof URL ? override : new URL(override, base);
|
|
3177
|
+
}
|
|
3178
|
+
if (opts.baseUrl) {
|
|
3179
|
+
const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
|
|
3180
|
+
return new URL(name, base);
|
|
3181
|
+
}
|
|
3182
|
+
return defaultUrl;
|
|
3183
|
+
};
|
|
3175
3184
|
const [aimerBin, smaugtBin, haetaeBin] = yield Promise.all([
|
|
3176
|
-
get(
|
|
3177
|
-
get(
|
|
3178
|
-
get(
|
|
3185
|
+
get(pick((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.aimer, DEFAULT_AIMER_URL, 'crypto_aimer.wasm')),
|
|
3186
|
+
get(pick((_c = opts.urls) === null || _c === void 0 ? void 0 : _c.smaugt, DEFAULT_SMAUGT_URL, 'crypto_smaugt.wasm')),
|
|
3187
|
+
get(pick((_d = opts.urls) === null || _d === void 0 ? void 0 : _d.haetae, DEFAULT_HAETAE_URL, 'crypto_haetae.wasm')),
|
|
3179
3188
|
]);
|
|
3180
3189
|
aimerC = yield AimerModule({ wasmBinary: aimerBin });
|
|
3181
3190
|
smaugtC = yield SmaugtModule({ wasmBinary: smaugtBin });
|
|
@@ -3771,32 +3780,39 @@ if (globalThis[LCLIB_SEQ_KEY] === undefined) {
|
|
|
3771
3780
|
globalThis[LCLIB_SEQ_KEY] += 1;
|
|
3772
3781
|
const namespace = `wallet_${globalThis[LCLIB_SEQ_KEY]}`;
|
|
3773
3782
|
const lclibWasmConfig = { namespace };
|
|
3783
|
+
// 정적 리터럴 URL — Vite/Rollup/Webpack5 가 `new URL(<리터럴>, import.meta.url)` 패턴을
|
|
3784
|
+
// 정적 분석해서 사용자 빌드의 자산 그래프에 wasm 을 자동 등록할 수 있도록 모듈 최상위에서 선언.
|
|
3785
|
+
// override (baseUrl/urls) 가 없을 때만 사용된다.
|
|
3786
|
+
const DEFAULT_LCLIB_URL = new URL('../autogen/wasm/lclib.wasm', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3774
3787
|
// .wasm 바이너리 4 개(lclib + AIMER/SMAUGT/HAETAE) 를 외부 파일에서 fetch 해서 로드한다.
|
|
3775
3788
|
//
|
|
3776
3789
|
// opts:
|
|
3777
3790
|
// baseUrl?: URL | string — wasm 파일들이 놓인 베이스. 기본은 이 모듈 기준 ../autogen/wasm/.
|
|
3778
|
-
// 번들 배포 후 디렉토리 구조가 바뀌면 호출자가 명시 주입해야 한다.
|
|
3779
3791
|
// urls?: { lclib, aimer, smaugt, haetae } — 개별 파일 override (URL | string)
|
|
3780
3792
|
// fetcher?: (url: URL) => Promise<Uint8Array> — 완전 커스텀 (CDN/캐시/모킹/Node 정적 경로)
|
|
3781
3793
|
function load() {
|
|
3782
3794
|
return tslib_es6.__awaiter(this, arguments, void 0, function* (opts = {}) {
|
|
3783
3795
|
var _a, _b;
|
|
3784
3796
|
try {
|
|
3785
|
-
console.log('[lclib.load] opts.baseUrl =', JSON.stringify(opts.baseUrl), 'typeof =', typeof opts.baseUrl, 'import.meta.url =', JSON.stringify((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href))));
|
|
3786
|
-
// opts.baseUrl 이 주어지면 그대로 base 로 쓴다. import.meta.url 을 거치지 않는 이유:
|
|
3787
|
-
// chrome-extension MV3 의 production 번들 환경에서 import.meta.url 이 빈 문자열로
|
|
3788
|
-
// 치환될 수 있어 `new URL(abs, '')` 가 throw 한다. 호출자가 chrome.runtime.getURL()
|
|
3789
|
-
// 같은 absolute URL 을 명시 주입한 경우엔 base resolution 자체가 불필요.
|
|
3790
|
-
const base = opts.baseUrl
|
|
3791
|
-
? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
|
|
3792
|
-
: new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-DuoOR0-Q.cjs', document.baseURI).href)));
|
|
3793
3797
|
const get = (_a = opts.fetcher) !== null && _a !== void 0 ? _a : fetchWasmBytes;
|
|
3794
|
-
|
|
3795
|
-
|
|
3796
|
-
|
|
3798
|
+
// 우선순위: opts.urls.lclib > opts.baseUrl > 정적 리터럴
|
|
3799
|
+
let lclibUrl;
|
|
3800
|
+
if ((_b = opts.urls) === null || _b === void 0 ? void 0 : _b.lclib) {
|
|
3801
|
+
const base = opts.baseUrl
|
|
3802
|
+
? (opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl))
|
|
3803
|
+
: new URL('../autogen/wasm/', (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunks/lclib-xRDGxtgw.cjs', document.baseURI).href)));
|
|
3804
|
+
lclibUrl = opts.urls.lclib instanceof URL ? opts.urls.lclib : new URL(opts.urls.lclib, base);
|
|
3805
|
+
}
|
|
3806
|
+
else if (opts.baseUrl) {
|
|
3807
|
+
const base = opts.baseUrl instanceof URL ? opts.baseUrl : new URL(opts.baseUrl);
|
|
3808
|
+
lclibUrl = new URL('lclib.wasm', base);
|
|
3809
|
+
}
|
|
3810
|
+
else {
|
|
3811
|
+
lclibUrl = DEFAULT_LCLIB_URL;
|
|
3812
|
+
}
|
|
3797
3813
|
// crypto WASM 3 종과 Go lclib WASM 을 병렬로 다운로드.
|
|
3798
3814
|
const cryptoPromise = loadCryptoWasm(opts);
|
|
3799
|
-
const lclibBytesPromise = get(
|
|
3815
|
+
const lclibBytesPromise = get(lclibUrl);
|
|
3800
3816
|
let lclibBytes;
|
|
3801
3817
|
try {
|
|
3802
3818
|
[, lclibBytes] = yield Promise.all([cryptoPromise, lclibBytesPromise]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
define(['exports', './base-B_kRRfsf'], (function (exports, base) { 'use strict';
|
|
2
|
+
|
|
3
|
+
/** 요청을 전송하기 전에 로컬에서 검증을 통과하지 못한 경우. */
|
|
4
|
+
class RpcRequestError extends base.BaseError {
|
|
5
|
+
constructor(shortMessage, options = {}) {
|
|
6
|
+
super(shortMessage, options);
|
|
7
|
+
this.name = 'RpcRequestError';
|
|
8
|
+
this.method = options.method;
|
|
9
|
+
this.params = options.params;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
/** 노드가 JSON-RPC error envelope 를 반환한 경우. */
|
|
13
|
+
class RpcResponseError extends base.BaseError {
|
|
14
|
+
constructor(shortMessage, options) {
|
|
15
|
+
super(shortMessage, options);
|
|
16
|
+
this.name = 'RpcResponseError';
|
|
17
|
+
this.code = options.code;
|
|
18
|
+
this.method = options.method;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
exports.RpcRequestError = RpcRequestError;
|
|
23
|
+
exports.RpcResponseError = RpcResponseError;
|
|
24
|
+
|
|
25
|
+
}));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
define(['exports', './base-B_kRRfsf'], (function (exports, base) { 'use strict';
|
|
2
|
+
|
|
3
|
+
class HttpRequestError extends base.BaseError {
|
|
4
|
+
constructor(shortMessage, options = {}) {
|
|
5
|
+
super(shortMessage, options);
|
|
6
|
+
this.name = 'HttpRequestError';
|
|
7
|
+
this.url = options.url;
|
|
8
|
+
this.status = options.status;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
class TimeoutError extends base.BaseError {
|
|
12
|
+
constructor(shortMessage, options = {}) {
|
|
13
|
+
super(shortMessage, options);
|
|
14
|
+
this.name = 'TimeoutError';
|
|
15
|
+
this.url = options.url;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
class AbortedError extends base.BaseError {
|
|
19
|
+
constructor(shortMessage, options = {}) {
|
|
20
|
+
super(shortMessage, options);
|
|
21
|
+
this.name = 'AbortedError';
|
|
22
|
+
this.url = options.url;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
exports.AbortedError = AbortedError;
|
|
27
|
+
exports.HttpRequestError = HttpRequestError;
|
|
28
|
+
exports.TimeoutError = TimeoutError;
|
|
29
|
+
|
|
30
|
+
}));
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
define(['exports'], (function (exports) { 'use strict';
|
|
2
|
+
|
|
3
|
+
/******************************************************************************
|
|
4
|
+
Copyright (c) Microsoft Corporation.
|
|
5
|
+
|
|
6
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
7
|
+
purpose with or without fee is hereby granted.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
+
***************************************************************************** */
|
|
17
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
21
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
22
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
23
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
24
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
25
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
26
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
31
|
+
var e = new Error(message);
|
|
32
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.__awaiter = __awaiter;
|
|
36
|
+
|
|
37
|
+
}));
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
define(['exports'], (function (exports) { 'use strict';
|
|
2
|
+
|
|
3
|
+
// Automatically generated file. DO NOT EDIT.
|
|
4
|
+
const TxType = Object.freeze({
|
|
5
|
+
GENESIS_ACCOUNT: 'TX_GENESIS_ACCOUNT',
|
|
6
|
+
OPEN_ACCOUNT: 'TX_OPEN_ACCOUNT',
|
|
7
|
+
BECOME_HOST: 'TX_BECOME_HOST',
|
|
8
|
+
BECOME_GUEST: 'TX_BECOME_GUEST',
|
|
9
|
+
TRANSFER_COIN: 'TX_TRANSFER_COIN',
|
|
10
|
+
TRANSFER_COIN_FEE: 'TX_TRANSFER_COIN_FEE',
|
|
11
|
+
TRANSFER_COIN_EXPRESS: 'TX_TRANSFER_COIN_EXPRESS',
|
|
12
|
+
ACTIVATE_COIN: 'TX_ACTIVATE_COIN',
|
|
13
|
+
ACTIVATE_INCENTIVE: 'TX_ACTIVATE_INCENTIVE',
|
|
14
|
+
ACTIVATE_FOUNDATION_RESERVE: 'TX_ACTIVATE_FOUNDATION_RESERVE',
|
|
15
|
+
CHANGE_KEYPAIR: 'TX_CHANGE_KEYPAIR',
|
|
16
|
+
CHANGE_VKEY: 'TX_CHANGE_VKEY',
|
|
17
|
+
CHANGE_FOUNDATION_ACCOUNT: 'TX_CHANGE_FOUNDATION_ACCOUNT',
|
|
18
|
+
POST_DATA: 'TX_POST_DATA',
|
|
19
|
+
POST_DATA_FEE: 'TX_POST_DATA_FEE',
|
|
20
|
+
CREATE_TOKEN: 'TX_CREATE_TOKEN',
|
|
21
|
+
CREATE_TOKEN_FEE: 'TX_CREATE_TOKEN_FEE',
|
|
22
|
+
BURN_TOKEN: 'TX_BURN_TOKEN',
|
|
23
|
+
TRANSFER_TOKEN: 'TX_TRANSFER_TOKEN',
|
|
24
|
+
TRANSFER_TOKEN_FEE: 'TX_TRANSFER_TOKEN_FEE',
|
|
25
|
+
ACTIVATE_TOKEN: 'TX_ACTIVATE_TOKEN',
|
|
26
|
+
CREATE_ASSETOBJECT: 'TX_CREATE_ASSETOBJECT',
|
|
27
|
+
CREATE_ASSETOBJECT_FEE: 'TX_CREATE_ASSETOBJECT_FEE',
|
|
28
|
+
TRANSFER_ASSETOBJECT: 'TX_TRANSFER_ASSETOBJECT',
|
|
29
|
+
TRANSFER_ASSETOBJECT_FEE: 'TX_TRANSFER_ASSETOBJECT_FEE',
|
|
30
|
+
ACTIVATE_ASSETOBJECT: 'TX_ACTIVATE_ASSETOBJECT',
|
|
31
|
+
BURN_ASSETOBJECT: 'TX_BURN_ASSETOBJECT',
|
|
32
|
+
REVOKE: 'TX_REVOKE',
|
|
33
|
+
CLOSE_ACCOUNT: 'TX_CLOSE_ACCOUNT',
|
|
34
|
+
ACTIVATE_ALL_ASSETS: 'TX_ACTIVATE_ALL_ASSETS',
|
|
35
|
+
PROVIDE_SCRIPT: 'TX_PROVIDE_SCRIPT',
|
|
36
|
+
ACCEPT_SCRIPT: 'TX_ACCEPT_SCRIPT',
|
|
37
|
+
ACCEPT_SCRIPT_AFTER_TIMELOCK: 'TX_ACCEPT_SCRIPT_AFTER_TIMELOCK',
|
|
38
|
+
CREATE_SA: 'TX_CREATE_SA',
|
|
39
|
+
CREATE_SA_FEE: 'TX_CREATE_SA_FEE',
|
|
40
|
+
ACTIVATE_OPEN_SA: 'TX_ACTIVATE_OPEN_SA',
|
|
41
|
+
POST_DATA_SA: 'TX_POST_DATA_SA',
|
|
42
|
+
POST_DATA_SA_FEE: 'TX_POST_DATA_SA_FEE',
|
|
43
|
+
ACTIVATE_DATA_SA: 'TX_ACTIVATE_DATA_SA',
|
|
44
|
+
LOCK_STAKE_FOR_VME: 'TX_LOCK_STAKE_FOR_VME',
|
|
45
|
+
ACTIVATE_LOCK_STAKE_FOR_VME: 'TX_ACTIVATE_LOCK_STAKE_FOR_VME',
|
|
46
|
+
UNLOCK_STAKE: 'TX_UNLOCK_STAKE',
|
|
47
|
+
CREATE_VME: 'TX_CREATE_VME',
|
|
48
|
+
ACTIVATE_OPEN_VME: 'TX_ACTIVATE_OPEN_VME',
|
|
49
|
+
VME_BLOCK: 'TX_VME_BLOCK',
|
|
50
|
+
CREATE_CONTRACT: 'TX_CREATE_CONTRACT',
|
|
51
|
+
CREATE_CONTRACT_FEE: 'TX_CREATE_CONTRACT_FEE',
|
|
52
|
+
CALL_CONTRACT: 'TX_CALL_CONTRACT',
|
|
53
|
+
CALL_CONTRACT_FEE: 'TX_CALL_CONTRACT_FEE',
|
|
54
|
+
ACTIVATE_OPEN_CONTRACT: 'TX_ACTIVATE_OPEN_CONTRACT',
|
|
55
|
+
ACTIVATE_CALL_CONTRACT: 'TX_ACTIVATE_CALL_CONTRACT',
|
|
56
|
+
ACTIVATE_CONTRACT_TRANSFER: 'TX_ACTIVATE_CONTRACT_TRANSFER',
|
|
57
|
+
ACTIVATE_CONTRACT_RESULT: 'TX_ACTIVATE_CONTRACT_RESULT',
|
|
58
|
+
CONTRACT_TRANSFER_REWARD: 'TX_CONTRACT_TRANSFER_REWARD',
|
|
59
|
+
CONTRACT_BLANK_REWARD: 'TX_CONTRACT_BLANK_REWARD',
|
|
60
|
+
ACTIVATE_CONTRACT_REWARD: 'TX_ACTIVATE_CONTRACT_REWARD',
|
|
61
|
+
FREEZE_ACCOUNT: 'TX_FREEZE_ACCOUNT',
|
|
62
|
+
LEAD_VTX: 'TX_LEAD_VTX',
|
|
63
|
+
FINALIZE: 'TX_FINALIZE',
|
|
64
|
+
});
|
|
65
|
+
|
|
66
|
+
exports.TxType = TxType;
|
|
67
|
+
|
|
68
|
+
}));
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
define(['exports', './lclib-DBHaYcY8'], (function (exports, lclib) { 'use strict';
|
|
2
|
+
|
|
3
|
+
// Automatically generated file. DO NOT EDIT.
|
|
4
|
+
const callWasm = (cmd, params) => {
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
let callLclib = globalThis["CallLclib"];
|
|
7
|
+
// @ts-ignore
|
|
8
|
+
if (lclib.namespace && globalThis[lclib.namespace]) {
|
|
9
|
+
// @ts-ignore
|
|
10
|
+
callLclib = globalThis[lclib.namespace]["CallLclib"];
|
|
11
|
+
}
|
|
12
|
+
// @ts-ignore
|
|
13
|
+
if (typeof callLclib !== "function")
|
|
14
|
+
throw new Error("Wasm module is not loaded. Please call loadWasm or loadWasmSync first.");
|
|
15
|
+
// @ts-ignore
|
|
16
|
+
const resultString = callLclib(cmd, JSON.stringify(params));
|
|
17
|
+
const result = JSON.parse(resultString);
|
|
18
|
+
if (result.error && result.error.code != 0) {
|
|
19
|
+
const error = Object.assign(Object.assign({}, result.error), { message: result.error.message });
|
|
20
|
+
delete error.message;
|
|
21
|
+
throw error;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return result.result;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const calculateTxLinkHash = (params) => {
|
|
28
|
+
return callWasm('calculateTxLinkHash', [params]);
|
|
29
|
+
};
|
|
30
|
+
const compileCoreScript = (params) => {
|
|
31
|
+
return callWasm('compileCoreScript', [params]);
|
|
32
|
+
};
|
|
33
|
+
const convertAddressToData = (addrEncoded) => {
|
|
34
|
+
return callWasm('convertAddressToData', [addrEncoded]);
|
|
35
|
+
};
|
|
36
|
+
const convertAddressToHex = (addrEncoded) => {
|
|
37
|
+
return callWasm('convertAddressToHex', [addrEncoded]);
|
|
38
|
+
};
|
|
39
|
+
const convertBase32ToData = (encoded) => {
|
|
40
|
+
return callWasm('convertBase32ToData', [encoded]);
|
|
41
|
+
};
|
|
42
|
+
const convertBase32ToHex = (encoded) => {
|
|
43
|
+
return callWasm('convertBase32ToHex', [encoded]);
|
|
44
|
+
};
|
|
45
|
+
const convertCurrency = (params) => {
|
|
46
|
+
return callWasm('convertCurrency', [params]);
|
|
47
|
+
};
|
|
48
|
+
const convertDataTo = (value, retType) => {
|
|
49
|
+
return callWasm('convertDataTo', [value, retType]);
|
|
50
|
+
};
|
|
51
|
+
const convertDataToAddress = (str) => {
|
|
52
|
+
return callWasm('convertDataToAddress', [str]);
|
|
53
|
+
};
|
|
54
|
+
const convertDataToBase32 = (str) => {
|
|
55
|
+
return callWasm('convertDataToBase32', [str]);
|
|
56
|
+
};
|
|
57
|
+
const convertDataToHex = (str) => {
|
|
58
|
+
return callWasm('convertDataToHex', [str]);
|
|
59
|
+
};
|
|
60
|
+
const convertDataToString = (str) => {
|
|
61
|
+
return callWasm('convertDataToString', [str]);
|
|
62
|
+
};
|
|
63
|
+
const convertHexToAddress = (hexString) => {
|
|
64
|
+
return callWasm('convertHexToAddress', [hexString]);
|
|
65
|
+
};
|
|
66
|
+
const convertHexToBase32 = (hexString) => {
|
|
67
|
+
return callWasm('convertHexToBase32', [hexString]);
|
|
68
|
+
};
|
|
69
|
+
const convertHexToData = (encoded) => {
|
|
70
|
+
return callWasm('convertHexToData', [encoded]);
|
|
71
|
+
};
|
|
72
|
+
const convertStringToData = (raw) => {
|
|
73
|
+
return callWasm('convertStringToData', [raw]);
|
|
74
|
+
};
|
|
75
|
+
const convertToData = (value, valueType) => {
|
|
76
|
+
return callWasm('convertToData', [value, valueType]);
|
|
77
|
+
};
|
|
78
|
+
const createAccountAndKeystore = (params) => {
|
|
79
|
+
return callWasm('createAccountAndKeystore', [params]);
|
|
80
|
+
};
|
|
81
|
+
const createMasterKeystore = (params) => {
|
|
82
|
+
return callWasm('createMasterKeystore', [params]);
|
|
83
|
+
};
|
|
84
|
+
const createNormalKey = (params) => {
|
|
85
|
+
return callWasm('createNormalKey', [params]);
|
|
86
|
+
};
|
|
87
|
+
const createNormalKeystore = (params) => {
|
|
88
|
+
return callWasm('createNormalKeystore', [params]);
|
|
89
|
+
};
|
|
90
|
+
const decodeTxs = (params) => {
|
|
91
|
+
return callWasm('decodeTxs', [params]);
|
|
92
|
+
};
|
|
93
|
+
const deriveKeysFromMnemonic = (params) => {
|
|
94
|
+
return callWasm('deriveKeysFromMnemonic', [params]);
|
|
95
|
+
};
|
|
96
|
+
const deriveKeysFromMnemonicAndPath = (params) => {
|
|
97
|
+
return callWasm('deriveKeysFromMnemonicAndPath', [params]);
|
|
98
|
+
};
|
|
99
|
+
const disCompileCoreScript = (params) => {
|
|
100
|
+
return callWasm('disCompileCoreScript', [params]);
|
|
101
|
+
};
|
|
102
|
+
const encodeTxCurrency = (params) => {
|
|
103
|
+
return callWasm('encodeTxCurrency', [params]);
|
|
104
|
+
};
|
|
105
|
+
const encodeTxNumber = (params) => {
|
|
106
|
+
return callWasm('encodeTxNumber', [params]);
|
|
107
|
+
};
|
|
108
|
+
const generateMnemonic = (params) => {
|
|
109
|
+
return callWasm('generateMnemonic', [params]);
|
|
110
|
+
};
|
|
111
|
+
const generateMnemonicBySeed = (params) => {
|
|
112
|
+
return callWasm('generateMnemonicBySeed', [params]);
|
|
113
|
+
};
|
|
114
|
+
const getDefFromCoreScript = (params) => {
|
|
115
|
+
return callWasm('getDefFromCoreScript', [params]);
|
|
116
|
+
};
|
|
117
|
+
const getHomeShard = (params) => {
|
|
118
|
+
return callWasm('getHomeShard', [params]);
|
|
119
|
+
};
|
|
120
|
+
const getLibraryVersions = () => {
|
|
121
|
+
return callWasm('getLibraryVersions', []);
|
|
122
|
+
};
|
|
123
|
+
const gzipAndEncode = (str) => {
|
|
124
|
+
return callWasm('gzipAndEncode', [str]);
|
|
125
|
+
};
|
|
126
|
+
const hash = (params) => {
|
|
127
|
+
return callWasm('hash', [params]);
|
|
128
|
+
};
|
|
129
|
+
const isGrantConsumingTx = (txTypeStr) => {
|
|
130
|
+
return callWasm('isGrantConsumingTx', [txTypeStr]);
|
|
131
|
+
};
|
|
132
|
+
const loadMasterKeystore = (params) => {
|
|
133
|
+
return callWasm('loadMasterKeystore', [params]);
|
|
134
|
+
};
|
|
135
|
+
const loadNormalKeystore = (params) => {
|
|
136
|
+
return callWasm('loadNormalKeystore', [params]);
|
|
137
|
+
};
|
|
138
|
+
const makeCurrency = (params) => {
|
|
139
|
+
return callWasm('makeCurrency', [params]);
|
|
140
|
+
};
|
|
141
|
+
const sign = (param) => {
|
|
142
|
+
return callWasm('sign', [param]);
|
|
143
|
+
};
|
|
144
|
+
const signByMasterKey = (params) => {
|
|
145
|
+
return callWasm('signByMasterKey', [params]);
|
|
146
|
+
};
|
|
147
|
+
const signKeyBind = (params) => {
|
|
148
|
+
return callWasm('signKeyBind', [params]);
|
|
149
|
+
};
|
|
150
|
+
const testCoreScript = (params) => {
|
|
151
|
+
return callWasm('testCoreScript', [params]);
|
|
152
|
+
};
|
|
153
|
+
const verify = (params) => {
|
|
154
|
+
return callWasm('verify', [params]);
|
|
155
|
+
};
|
|
156
|
+
const verifyByMasterKey = (params) => {
|
|
157
|
+
return callWasm('verifyByMasterKey', [params]);
|
|
158
|
+
};
|
|
159
|
+
const verifyMerkleProof = (params) => {
|
|
160
|
+
return callWasm('verifyMerkleProof', [params]);
|
|
161
|
+
};
|
|
162
|
+
const verifyTx = (jsonTx) => {
|
|
163
|
+
return callWasm('verifyTx', [jsonTx]);
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
exports.calculateTxLinkHash = calculateTxLinkHash;
|
|
167
|
+
exports.compileCoreScript = compileCoreScript;
|
|
168
|
+
exports.convertAddressToData = convertAddressToData;
|
|
169
|
+
exports.convertAddressToHex = convertAddressToHex;
|
|
170
|
+
exports.convertBase32ToData = convertBase32ToData;
|
|
171
|
+
exports.convertBase32ToHex = convertBase32ToHex;
|
|
172
|
+
exports.convertCurrency = convertCurrency;
|
|
173
|
+
exports.convertDataTo = convertDataTo;
|
|
174
|
+
exports.convertDataToAddress = convertDataToAddress;
|
|
175
|
+
exports.convertDataToBase32 = convertDataToBase32;
|
|
176
|
+
exports.convertDataToHex = convertDataToHex;
|
|
177
|
+
exports.convertDataToString = convertDataToString;
|
|
178
|
+
exports.convertHexToAddress = convertHexToAddress;
|
|
179
|
+
exports.convertHexToBase32 = convertHexToBase32;
|
|
180
|
+
exports.convertHexToData = convertHexToData;
|
|
181
|
+
exports.convertStringToData = convertStringToData;
|
|
182
|
+
exports.convertToData = convertToData;
|
|
183
|
+
exports.createAccountAndKeystore = createAccountAndKeystore;
|
|
184
|
+
exports.createMasterKeystore = createMasterKeystore;
|
|
185
|
+
exports.createNormalKey = createNormalKey;
|
|
186
|
+
exports.createNormalKeystore = createNormalKeystore;
|
|
187
|
+
exports.decodeTxs = decodeTxs;
|
|
188
|
+
exports.deriveKeysFromMnemonic = deriveKeysFromMnemonic;
|
|
189
|
+
exports.deriveKeysFromMnemonicAndPath = deriveKeysFromMnemonicAndPath;
|
|
190
|
+
exports.disCompileCoreScript = disCompileCoreScript;
|
|
191
|
+
exports.encodeTxCurrency = encodeTxCurrency;
|
|
192
|
+
exports.encodeTxNumber = encodeTxNumber;
|
|
193
|
+
exports.generateMnemonic = generateMnemonic;
|
|
194
|
+
exports.generateMnemonicBySeed = generateMnemonicBySeed;
|
|
195
|
+
exports.getDefFromCoreScript = getDefFromCoreScript;
|
|
196
|
+
exports.getHomeShard = getHomeShard;
|
|
197
|
+
exports.getLibraryVersions = getLibraryVersions;
|
|
198
|
+
exports.gzipAndEncode = gzipAndEncode;
|
|
199
|
+
exports.hash = hash;
|
|
200
|
+
exports.isGrantConsumingTx = isGrantConsumingTx;
|
|
201
|
+
exports.loadMasterKeystore = loadMasterKeystore;
|
|
202
|
+
exports.loadNormalKeystore = loadNormalKeystore;
|
|
203
|
+
exports.makeCurrency = makeCurrency;
|
|
204
|
+
exports.sign = sign;
|
|
205
|
+
exports.signByMasterKey = signByMasterKey;
|
|
206
|
+
exports.signKeyBind = signKeyBind;
|
|
207
|
+
exports.testCoreScript = testCoreScript;
|
|
208
|
+
exports.verify = verify;
|
|
209
|
+
exports.verifyByMasterKey = verifyByMasterKey;
|
|
210
|
+
exports.verifyMerkleProof = verifyMerkleProof;
|
|
211
|
+
exports.verifyTx = verifyTx;
|
|
212
|
+
|
|
213
|
+
}));
|