@locuschain/lib 0.2.10 → 0.2.12
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 +1 -1
- package/dist/accounts/index.cjs.cjs +2 -3
- package/dist/accounts/index.esm.js +2 -3
- package/dist/actions/wallet/directCall.d.cts +18 -0
- package/dist/actions/wallet/directCall.d.mts +18 -0
- package/dist/autogen/debugWalletActions.d.cts +2 -0
- package/dist/autogen/debugWalletActions.d.mts +2 -0
- package/dist/autogen/index.amd.js +1 -1
- package/dist/autogen/index.cjs.cjs +2 -3
- package/dist/autogen/index.esm.js +3 -4
- package/dist/autogen/types/common/index.d.cts +0 -2
- package/dist/autogen/types/common/index.d.mts +0 -2
- package/dist/autogen/types/common/tx-base.d.cts +2 -1
- package/dist/autogen/types/common/tx-base.d.mts +2 -1
- package/dist/autogen/types/consts/tx-type.d.cts +10 -10
- package/dist/autogen/types/consts/tx-type.d.mts +10 -10
- package/dist/autogen/types/consts/tx-types.d.cts +10 -10
- package/dist/autogen/types/consts/tx-types.d.mts +10 -10
- package/dist/autogen/types/tx/tx-restore-res-hash.d.cts +5 -4
- package/dist/autogen/types/tx/tx-restore-res-hash.d.mts +5 -4
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/chunks/{debugWalletActions-LMoV1T5I.js → debugWalletActions-BIr5g97C.js} +32 -0
- package/dist/chunks/{debugWalletActions-BWSVjiFW.cjs → debugWalletActions-DEdW7RNn.cjs} +32 -0
- package/dist/chunks/{debugWalletActions-DoZUAnEj.js → debugWalletActions-Eu-0KUqt.js} +32 -1
- package/dist/chunks/{keystore-JnuLzkLn.js → keystore-BaRONuW-.js} +1 -1
- package/dist/chunks/{keystore-DS8JZhXs.cjs → keystore-DcTOPfuF.cjs} +1 -1
- package/dist/chunks/{keystore-BPU22XT-.js → keystore-Dz4yB829.js} +1 -1
- package/dist/chunks/{tx-type-Dyjdmlv8.js → tx-type-BFIIZuLV.js} +10 -10
- package/dist/chunks/{tx-type-CKrHKEwY.cjs → tx-type-BPfUG6kE.cjs} +10 -10
- package/dist/chunks/{tx-type-CXyml-9n.js → tx-type-nqiwUdYa.js} +10 -10
- package/dist/chunks/{lclib-j2x9RvDY.js → wasm-B1dWd6ix.js} +174 -1
- package/dist/chunks/{lclib-Bv86gksL.js → wasm-BQYfcIX8.js} +222 -1
- package/dist/chunks/{lclib-rGyKpClJ.cjs → wasm-DDrQluVO.cjs} +237 -16
- package/dist/clients/createLocusWalletClient.d.cts +1 -0
- package/dist/clients/createLocusWalletClient.d.mts +1 -0
- package/dist/clients/index.amd.js +1 -1
- package/dist/clients/index.cjs.cjs +2 -2
- package/dist/clients/index.esm.js +2 -2
- package/dist/constant/index.amd.js +37 -37
- package/dist/constant/index.cjs.cjs +37 -37
- package/dist/constant/index.d.cts +20 -20
- package/dist/constant/index.d.mts +20 -20
- package/dist/constant/index.esm.js +37 -37
- package/dist/contracts/index.amd.js +1 -1
- package/dist/contracts/index.cjs.cjs +1 -2
- package/dist/contracts/index.esm.js +1 -2
- package/dist/index.amd.js +1 -1
- package/dist/index.cjs.cjs +4 -5
- package/dist/index.esm.js +4 -5
- package/dist/utils/index.amd.js +2 -2
- package/dist/utils/index.cjs.cjs +4 -5
- package/dist/utils/index.esm.js +4 -5
- package/package.json +2 -2
- package/dist/autogen/types/common/asset-object-transfer.d.cts +0 -6
- package/dist/autogen/types/common/asset-object-transfer.d.mts +0 -6
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.cts +0 -9
- package/dist/autogen/types/common/tx-restore-res-hash-proof.d.mts +0 -9
- package/dist/chunks/wasm-CU215LGW.js +0 -175
- package/dist/chunks/wasm-dbtq7eri.cjs +0 -225
- package/dist/chunks/wasm-gROtmFm6.js +0 -225
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/tx-type-
|
|
1
|
+
define(['exports', '../chunks/tslib.es6-D29rxPkW', '../chunks/tx-type-BFIIZuLV', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8', '../chunks/wasm-BQYfcIX8'], (function (exports, tslib_es6, txType, base, account, wasm) { 'use strict';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var tslib_es6 = require('../chunks/tslib.es6-Cfi3-HmA.cjs');
|
|
4
|
-
var txType = require('../chunks/tx-type-
|
|
4
|
+
var txType = require('../chunks/tx-type-BPfUG6kE.cjs');
|
|
5
5
|
var base = require('../chunks/base-Cy5SSYLF.cjs');
|
|
6
6
|
var account = require('../chunks/account-BAsiKnSL.cjs');
|
|
7
|
-
var wasm = require('../chunks/wasm-
|
|
8
|
-
require('../chunks/lclib-rGyKpClJ.cjs');
|
|
7
|
+
var wasm = require('../chunks/wasm-DDrQluVO.cjs');
|
|
9
8
|
|
|
10
9
|
/**
|
|
11
10
|
* 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { _ as __awaiter } from '../chunks/tslib.es6-WQS2tr1v.js';
|
|
2
|
-
import { T as TxType } from '../chunks/tx-type-
|
|
2
|
+
import { T as TxType } from '../chunks/tx-type-nqiwUdYa.js';
|
|
3
3
|
import { B as BaseError } from '../chunks/base-BQXfRsuw.js';
|
|
4
4
|
import { a as SignKeyBindUnsupportedError, S as SignFailedError, D as DegenerateKeyError } from '../chunks/account-FZT9LH_s.js';
|
|
5
|
-
import { R as signKeyBind, Q as signByMasterKey, P as sign, A as deriveKeysFromMnemonicAndPath, z as deriveKeysFromMnemonic } from '../chunks/wasm-
|
|
6
|
-
import '../chunks/lclib-j2x9RvDY.js';
|
|
5
|
+
import { R as signKeyBind, Q as signByMasterKey, P as sign, A as deriveKeysFromMnemonicAndPath, z as deriveKeysFromMnemonic } from '../chunks/wasm-B1dWd6ix.js';
|
|
7
6
|
|
|
8
7
|
/**
|
|
9
8
|
* 메인 서명을 master 키로 생성하는 TX 타입 집합 (signByMasterKey WASM 호출).
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ParamsBuildDirectCall } from '../../autogen/types/rpc/params-build-direct-call.cjs';
|
|
2
|
+
import type { RpcDirectCallResult } from '../../autogen/types/rpc/rpc-direct-call-result.cjs';
|
|
3
|
+
import type { WalletClient } from '../../clients/types.cjs';
|
|
4
|
+
/**
|
|
5
|
+
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
6
|
+
*
|
|
7
|
+
* 기존 autogen 액션은 "1 메서드 = 1 RPC" 형태인데, direct-call 은
|
|
8
|
+
* 1) debug_buildDirectCall — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
9
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey = 계정
|
|
10
|
+
* normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
11
|
+
* 3) debug_submitDirectCall — { request, sign } 제출 → admit
|
|
12
|
+
* 처럼 RPC 2번 + 중간 서명이 필요해 한 메서드로 묶는다.
|
|
13
|
+
*
|
|
14
|
+
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
15
|
+
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
16
|
+
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
17
|
+
*/
|
|
18
|
+
export declare function directCall(client: WalletClient, param: ParamsBuildDirectCall): Promise<RpcDirectCallResult>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ParamsBuildDirectCall } from '../../autogen/types/rpc/params-build-direct-call.mjs';
|
|
2
|
+
import type { RpcDirectCallResult } from '../../autogen/types/rpc/rpc-direct-call-result.mjs';
|
|
3
|
+
import type { WalletClient } from '../../clients/types.mjs';
|
|
4
|
+
/**
|
|
5
|
+
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
6
|
+
*
|
|
7
|
+
* 기존 autogen 액션은 "1 메서드 = 1 RPC" 형태인데, direct-call 은
|
|
8
|
+
* 1) debug_buildDirectCall — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
9
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey = 계정
|
|
10
|
+
* normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
11
|
+
* 3) debug_submitDirectCall — { request, sign } 제출 → admit
|
|
12
|
+
* 처럼 RPC 2번 + 중간 서명이 필요해 한 메서드로 묶는다.
|
|
13
|
+
*
|
|
14
|
+
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
15
|
+
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
16
|
+
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
17
|
+
*/
|
|
18
|
+
export declare function directCall(client: WalletClient, param: ParamsBuildDirectCall): Promise<RpcDirectCallResult>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.cjs';
|
|
1
2
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.cjs';
|
|
2
3
|
import type { ParamsCreateContract } from './types/rpc/params-create-contract.cjs';
|
|
3
4
|
import type { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.cjs';
|
|
@@ -9,4 +10,5 @@ export declare const debugWalletActions: (client: WalletClient) => {
|
|
|
9
10
|
createContract: (param: ParamsCreateContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
10
11
|
createSynthAccount: (param: ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
11
12
|
postDataToSynthAccount: (param: ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
13
|
+
directCall: (param: ParamsBuildDirectCall) => Promise<import("../index.cjs").RpcDirectCallResult>;
|
|
12
14
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.mjs';
|
|
1
2
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.mjs';
|
|
2
3
|
import type { ParamsCreateContract } from './types/rpc/params-create-contract.mjs';
|
|
3
4
|
import type { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.mjs';
|
|
@@ -9,4 +10,5 @@ export declare const debugWalletActions: (client: WalletClient) => {
|
|
|
9
10
|
createContract: (param: ParamsCreateContract) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
10
11
|
createSynthAccount: (param: ParamsCreateSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
11
12
|
postDataToSynthAccount: (param: ParamsPostDataToSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
13
|
+
directCall: (param: ParamsBuildDirectCall) => Promise<import("../index.mjs").RpcDirectCallResult>;
|
|
12
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/wasm-
|
|
1
|
+
define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-Eu-0KUqt', '../chunks/tslib.es6-D29rxPkW', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8'], (function (exports, wasm, debugWalletActions, tslib_es6, rpc, base, account) { 'use strict';
|
|
2
2
|
|
|
3
3
|
// Automatically generated file. DO NOT EDIT.
|
|
4
4
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var wasm = require('../chunks/wasm-
|
|
4
|
-
var debugWalletActions = require('../chunks/debugWalletActions-
|
|
5
|
-
require('../chunks/lclib-rGyKpClJ.cjs');
|
|
3
|
+
var wasm = require('../chunks/wasm-DDrQluVO.cjs');
|
|
4
|
+
var debugWalletActions = require('../chunks/debugWalletActions-DEdW7RNn.cjs');
|
|
6
5
|
require('../chunks/tslib.es6-Cfi3-HmA.cjs');
|
|
7
6
|
require('../chunks/rpc-DwWIkUva.cjs');
|
|
8
7
|
require('../chunks/base-Cy5SSYLF.cjs');
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
export { b as calculateTxLinkHash, d as compileCoreScript, e as convertAddressToData, f as convertAddressToHex, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeSubId, y as decodeTxs, z as deriveKeysFromMnemonic, A as deriveKeysFromMnemonicAndPath, B as disCompileCoreScript, C as encodeFuncData, D as encodeSubId, E as encodeTxCurrency, F as encodeTxNumber, G as generateMnemonic, H as generateMnemonicBySeed, I as getDefFromCoreScript, J as getHomeShard, K as getLibraryVersions, L as gzipAndEncode, M as hash, N as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, O as makeCurrency, P as sign, Q as signByMasterKey, R as signKeyBind, S as testCoreScript, T as verify, U as verifyByMasterKey, V as verifyMerkleProof, W as verifyTx } from '../chunks/wasm-
|
|
2
|
-
import { a as allHeights, b as balanceGrantList, c as balanceList, d as buildDirectCall, e as callContract, f as callVme, g as createAccount, h as createContract, i as createNode, j as createSynthAccount, k as dumpAllAccounts, l as echo, m as gameChainCmd, n as getAccountsBalances, o as getAccountsHeights, p as getGuestsInfo, q as getHomeShard, r as getImportAccount, s as getImportAccountLog, t as getKeys, u as getNodeBlocks, v as getPeerPool, w as getPeersInfo, x as getVmeLog, y as importAccount, z as initReliableNodes, A as noArgsRets, B as nodeCmd, C as postDataToSynthAccount, D as removeHomeTxs, E as requestVme, F as sendRawTransaction, G as setImportAccountTx, H as setReliableNode, I as submitDirectCall, J as viewVme } from '../chunks/debugWalletActions-
|
|
3
|
-
export { K as acceptScript, L as accountHeightsToDownload, M as accountHeightsToUpload, N as becomeGuest, O as becomeHost, P as calculateAvailableByForward, Q as calculateAvailableByForwardList, R as changeKey, S as changeVkey, T as clientMessage, U as closeAccount, V as createAssetObject, W as createToken, X as createVme, Y as debugPublicActions, Z as debugWalletActions, _ as downloadAccountTxs, $ as echo, a0 as findDuplicateSubscriber, a1 as forwardAssetObject, a2 as forwardCoin, a3 as forwardToken, a4 as freezeAccount, a5 as generateLatestStoredDataProof, a6 as getAccountAssetList, a7 as getAccountAssetObject, a8 as getAccountDetail, a9 as getAccountHistory, aa as getAccountTokenList, ab as getConciseNodeStatus, ac as getGenesisAccount, ad as getHomeTxDir, ae as getHomeTxFlushSeq, af as getIdentityProof, ag as getInactiveTxList, ah as getLaunchCommand, ai as getMontInfoList, aj as getNodeStatus, ak as getNodeVersion, al as getOwnerBalance, am as getRoundState, an as getRoundStatesList, ao as getShardOfAccount, ap as getSyncState, aq as getTx, ar as getWorldRoundState, as as getWorldRoundStatesList, at as hasSystemToken, au as lockStake, av as makeTxProof, aw as openAccount, ax as postData, ay as provideScript, az as publicActions, aA as queryAddress, aB as readTxListWitness, aC as requestDataTrade, aD as setHost, aE as shutdown, aF as subscribeAddress, aG as transfer, aH as transferAllRes, aI as transferAssetObject, aJ as transferCoin, aK as transferToken, aL as unlockStake, aM as upliftProofW, aN as uploadAccountTxs, aO as verifyAndSignChallenge, aP as verifyIdentityProof, aQ as verifyLatestStoredDataProof, aR as verifyProofW, aS as verifyTxListWitness, aT as waitHomeTxChange, aU as walletActions } from '../chunks/debugWalletActions-
|
|
4
|
-
import '../chunks/lclib-j2x9RvDY.js';
|
|
1
|
+
export { b as calculateTxLinkHash, d as compileCoreScript, e as convertAddressToData, f as convertAddressToHex, g as convertBase32ToData, h as convertBase32ToHex, i as convertCurrency, j as convertDataTo, k as convertDataToAddress, m as convertDataToBase32, n as convertDataToHex, o as convertDataToString, p as convertHexToAddress, q as convertHexToBase32, r as convertHexToData, s as convertStringToData, t as convertToData, c as createAccountAndKeystore, u as createMasterKeystore, v as createNormalKey, w as createNormalKeystore, x as decodeSubId, y as decodeTxs, z as deriveKeysFromMnemonic, A as deriveKeysFromMnemonicAndPath, B as disCompileCoreScript, C as encodeFuncData, D as encodeSubId, E as encodeTxCurrency, F as encodeTxNumber, G as generateMnemonic, H as generateMnemonicBySeed, I as getDefFromCoreScript, J as getHomeShard, K as getLibraryVersions, L as gzipAndEncode, M as hash, N as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, O as makeCurrency, P as sign, Q as signByMasterKey, R as signKeyBind, S as testCoreScript, T as verify, U as verifyByMasterKey, V as verifyMerkleProof, W as verifyTx } from '../chunks/wasm-B1dWd6ix.js';
|
|
2
|
+
import { a as allHeights, b as balanceGrantList, c as balanceList, d as buildDirectCall, e as callContract, f as callVme, g as createAccount, h as createContract, i as createNode, j as createSynthAccount, k as dumpAllAccounts, l as echo, m as gameChainCmd, n as getAccountsBalances, o as getAccountsHeights, p as getGuestsInfo, q as getHomeShard, r as getImportAccount, s as getImportAccountLog, t as getKeys, u as getNodeBlocks, v as getPeerPool, w as getPeersInfo, x as getVmeLog, y as importAccount, z as initReliableNodes, A as noArgsRets, B as nodeCmd, C as postDataToSynthAccount, D as removeHomeTxs, E as requestVme, F as sendRawTransaction, G as setImportAccountTx, H as setReliableNode, I as submitDirectCall, J as viewVme } from '../chunks/debugWalletActions-BIr5g97C.js';
|
|
3
|
+
export { K as acceptScript, L as accountHeightsToDownload, M as accountHeightsToUpload, N as becomeGuest, O as becomeHost, P as calculateAvailableByForward, Q as calculateAvailableByForwardList, R as changeKey, S as changeVkey, T as clientMessage, U as closeAccount, V as createAssetObject, W as createToken, X as createVme, Y as debugPublicActions, Z as debugWalletActions, _ as downloadAccountTxs, $ as echo, a0 as findDuplicateSubscriber, a1 as forwardAssetObject, a2 as forwardCoin, a3 as forwardToken, a4 as freezeAccount, a5 as generateLatestStoredDataProof, a6 as getAccountAssetList, a7 as getAccountAssetObject, a8 as getAccountDetail, a9 as getAccountHistory, aa as getAccountTokenList, ab as getConciseNodeStatus, ac as getGenesisAccount, ad as getHomeTxDir, ae as getHomeTxFlushSeq, af as getIdentityProof, ag as getInactiveTxList, ah as getLaunchCommand, ai as getMontInfoList, aj as getNodeStatus, ak as getNodeVersion, al as getOwnerBalance, am as getRoundState, an as getRoundStatesList, ao as getShardOfAccount, ap as getSyncState, aq as getTx, ar as getWorldRoundState, as as getWorldRoundStatesList, at as hasSystemToken, au as lockStake, av as makeTxProof, aw as openAccount, ax as postData, ay as provideScript, az as publicActions, aA as queryAddress, aB as readTxListWitness, aC as requestDataTrade, aD as setHost, aE as shutdown, aF as subscribeAddress, aG as transfer, aH as transferAllRes, aI as transferAssetObject, aJ as transferCoin, aK as transferToken, aL as unlockStake, aM as upliftProofW, aN as uploadAccountTxs, aO as verifyAndSignChallenge, aP as verifyIdentityProof, aQ as verifyLatestStoredDataProof, aR as verifyProofW, aS as verifyTxListWitness, aT as waitHomeTxChange, aU as walletActions } from '../chunks/debugWalletActions-BIr5g97C.js';
|
|
5
4
|
import '../chunks/tslib.es6-WQS2tr1v.js';
|
|
6
5
|
import '../chunks/rpc-BlPk44QH.js';
|
|
7
6
|
import '../chunks/base-BQXfRsuw.js';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './addr-tx-proof.cjs';
|
|
2
2
|
export * from './asset-object.cjs';
|
|
3
3
|
export * from './asset-object-meta.cjs';
|
|
4
|
-
export * from './asset-object-transfer.cjs';
|
|
5
4
|
export * from './asset-transfer-info.cjs';
|
|
6
5
|
export * from './base-meta.cjs';
|
|
7
6
|
export * from './caller-key-proof.cjs';
|
|
@@ -46,7 +45,6 @@ export * from './tx-key-nround.cjs';
|
|
|
46
45
|
export * from './tx-meta.cjs';
|
|
47
46
|
export * from './tx-no-signature.cjs';
|
|
48
47
|
export * from './tx-recv-set-meta.cjs';
|
|
49
|
-
export * from './tx-restore-res-hash-proof.cjs';
|
|
50
48
|
export * from './tx-sign-key.cjs';
|
|
51
49
|
export * from './tx-signature.cjs';
|
|
52
50
|
export * from './tx-vsignature.cjs';
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export * from './addr-tx-proof.mjs';
|
|
2
2
|
export * from './asset-object.mjs';
|
|
3
3
|
export * from './asset-object-meta.mjs';
|
|
4
|
-
export * from './asset-object-transfer.mjs';
|
|
5
4
|
export * from './asset-transfer-info.mjs';
|
|
6
5
|
export * from './base-meta.mjs';
|
|
7
6
|
export * from './caller-key-proof.mjs';
|
|
@@ -46,7 +45,6 @@ export * from './tx-key-nround.mjs';
|
|
|
46
45
|
export * from './tx-meta.mjs';
|
|
47
46
|
export * from './tx-no-signature.mjs';
|
|
48
47
|
export * from './tx-recv-set-meta.mjs';
|
|
49
|
-
export * from './tx-restore-res-hash-proof.mjs';
|
|
50
48
|
export * from './tx-sign-key.mjs';
|
|
51
49
|
export * from './tx-signature.mjs';
|
|
52
50
|
export * from './tx-vsignature.mjs';
|
|
@@ -4,7 +4,7 @@ export declare const TxType: Readonly<{
|
|
|
4
4
|
readonly BECOME_HOST: "TX_BECOME_HOST";
|
|
5
5
|
readonly BECOME_GUEST: "TX_BECOME_GUEST";
|
|
6
6
|
readonly TRANSFER_COIN: "TX_TRANSFER_COIN";
|
|
7
|
-
readonly
|
|
7
|
+
readonly TRANSFER_COIN_G: "TX_TRANSFER_COIN_G";
|
|
8
8
|
readonly FORWARD_COIN: "TX_FORWARD_COIN";
|
|
9
9
|
readonly ACTIVATE_COIN: "TX_ACTIVATE_COIN";
|
|
10
10
|
readonly ACTIVATE_INCENTIVE: "TX_ACTIVATE_INCENTIVE";
|
|
@@ -13,23 +13,23 @@ export declare const TxType: Readonly<{
|
|
|
13
13
|
readonly CHANGE_VKEY: "TX_CHANGE_VKEY";
|
|
14
14
|
readonly CHANGE_FOUNDATION_ACCOUNT: "TX_CHANGE_FOUNDATION_ACCOUNT";
|
|
15
15
|
readonly POST_DATA: "TX_POST_DATA";
|
|
16
|
-
readonly
|
|
16
|
+
readonly POST_DATA_G: "TX_POST_DATA_G";
|
|
17
17
|
readonly CREATE_TOKEN: "TX_CREATE_TOKEN";
|
|
18
|
-
readonly
|
|
18
|
+
readonly CREATE_TOKEN_G: "TX_CREATE_TOKEN_G";
|
|
19
19
|
readonly BURN_TOKEN: "TX_BURN_TOKEN";
|
|
20
20
|
readonly TRANSFER_TOKEN: "TX_TRANSFER_TOKEN";
|
|
21
|
-
readonly
|
|
21
|
+
readonly TRANSFER_TOKEN_G: "TX_TRANSFER_TOKEN_G";
|
|
22
22
|
readonly FORWARD_TOKEN: "TX_FORWARD_TOKEN";
|
|
23
23
|
readonly ACTIVATE_TOKEN: "TX_ACTIVATE_TOKEN";
|
|
24
24
|
readonly CREATE_ASSETOBJECT: "TX_CREATE_ASSETOBJECT";
|
|
25
|
-
readonly
|
|
25
|
+
readonly CREATE_ASSETOBJECT_G: "TX_CREATE_ASSETOBJECT_G";
|
|
26
26
|
readonly TRANSFER_ASSETOBJECT: "TX_TRANSFER_ASSETOBJECT";
|
|
27
|
-
readonly
|
|
27
|
+
readonly TRANSFER_ASSETOBJECT_G: "TX_TRANSFER_ASSETOBJECT_G";
|
|
28
28
|
readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
|
|
29
29
|
readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
|
|
30
30
|
readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
|
|
31
31
|
readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
|
|
32
|
-
readonly
|
|
32
|
+
readonly TRANSFER_ALL_RES_G: "TX_TRANSFER_ALL_RES_G";
|
|
33
33
|
readonly REVOKE: "TX_REVOKE";
|
|
34
34
|
readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
|
|
35
35
|
readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
|
|
@@ -37,10 +37,10 @@ export declare const TxType: Readonly<{
|
|
|
37
37
|
readonly ACCEPT_SCRIPT: "TX_ACCEPT_SCRIPT";
|
|
38
38
|
readonly ACCEPT_SCRIPT_AFTER_TIMELOCK: "TX_ACCEPT_SCRIPT_AFTER_TIMELOCK";
|
|
39
39
|
readonly CREATE_SA: "TX_CREATE_SA";
|
|
40
|
-
readonly
|
|
40
|
+
readonly CREATE_SA_G: "TX_CREATE_SA_G";
|
|
41
41
|
readonly ACTIVATE_OPEN_SA: "TX_ACTIVATE_OPEN_SA";
|
|
42
42
|
readonly POST_DATA_SA: "TX_POST_DATA_SA";
|
|
43
|
-
readonly
|
|
43
|
+
readonly POST_DATA_SA_G: "TX_POST_DATA_SA_G";
|
|
44
44
|
readonly ACTIVATE_DATA_SA: "TX_ACTIVATE_DATA_SA";
|
|
45
45
|
readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
|
|
46
46
|
readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
|
|
@@ -49,7 +49,7 @@ export declare const TxType: Readonly<{
|
|
|
49
49
|
readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
|
|
50
50
|
readonly VME_BLOCK: "TX_VME_BLOCK";
|
|
51
51
|
readonly CALL_VME: "TX_CALL_VME";
|
|
52
|
-
readonly
|
|
52
|
+
readonly CALL_VME_G: "TX_CALL_VME_G";
|
|
53
53
|
readonly ACTIVATE_VME_TRANSFER: "TX_ACTIVATE_VME_TRANSFER";
|
|
54
54
|
readonly ACTIVATE_VME_RESULT: "TX_ACTIVATE_VME_RESULT";
|
|
55
55
|
readonly VME_TRANSFER_REWARD: "TX_VME_TRANSFER_REWARD";
|
|
@@ -4,7 +4,7 @@ export declare const TxType: Readonly<{
|
|
|
4
4
|
readonly BECOME_HOST: "TX_BECOME_HOST";
|
|
5
5
|
readonly BECOME_GUEST: "TX_BECOME_GUEST";
|
|
6
6
|
readonly TRANSFER_COIN: "TX_TRANSFER_COIN";
|
|
7
|
-
readonly
|
|
7
|
+
readonly TRANSFER_COIN_G: "TX_TRANSFER_COIN_G";
|
|
8
8
|
readonly FORWARD_COIN: "TX_FORWARD_COIN";
|
|
9
9
|
readonly ACTIVATE_COIN: "TX_ACTIVATE_COIN";
|
|
10
10
|
readonly ACTIVATE_INCENTIVE: "TX_ACTIVATE_INCENTIVE";
|
|
@@ -13,23 +13,23 @@ export declare const TxType: Readonly<{
|
|
|
13
13
|
readonly CHANGE_VKEY: "TX_CHANGE_VKEY";
|
|
14
14
|
readonly CHANGE_FOUNDATION_ACCOUNT: "TX_CHANGE_FOUNDATION_ACCOUNT";
|
|
15
15
|
readonly POST_DATA: "TX_POST_DATA";
|
|
16
|
-
readonly
|
|
16
|
+
readonly POST_DATA_G: "TX_POST_DATA_G";
|
|
17
17
|
readonly CREATE_TOKEN: "TX_CREATE_TOKEN";
|
|
18
|
-
readonly
|
|
18
|
+
readonly CREATE_TOKEN_G: "TX_CREATE_TOKEN_G";
|
|
19
19
|
readonly BURN_TOKEN: "TX_BURN_TOKEN";
|
|
20
20
|
readonly TRANSFER_TOKEN: "TX_TRANSFER_TOKEN";
|
|
21
|
-
readonly
|
|
21
|
+
readonly TRANSFER_TOKEN_G: "TX_TRANSFER_TOKEN_G";
|
|
22
22
|
readonly FORWARD_TOKEN: "TX_FORWARD_TOKEN";
|
|
23
23
|
readonly ACTIVATE_TOKEN: "TX_ACTIVATE_TOKEN";
|
|
24
24
|
readonly CREATE_ASSETOBJECT: "TX_CREATE_ASSETOBJECT";
|
|
25
|
-
readonly
|
|
25
|
+
readonly CREATE_ASSETOBJECT_G: "TX_CREATE_ASSETOBJECT_G";
|
|
26
26
|
readonly TRANSFER_ASSETOBJECT: "TX_TRANSFER_ASSETOBJECT";
|
|
27
|
-
readonly
|
|
27
|
+
readonly TRANSFER_ASSETOBJECT_G: "TX_TRANSFER_ASSETOBJECT_G";
|
|
28
28
|
readonly FORWARD_ASSETOBJECT: "TX_FORWARD_ASSETOBJECT";
|
|
29
29
|
readonly ACTIVATE_ASSETOBJECT: "TX_ACTIVATE_ASSETOBJECT";
|
|
30
30
|
readonly BURN_ASSETOBJECT: "TX_BURN_ASSETOBJECT";
|
|
31
31
|
readonly TRANSFER_ALL_RES: "TX_TRANSFER_ALL_RES";
|
|
32
|
-
readonly
|
|
32
|
+
readonly TRANSFER_ALL_RES_G: "TX_TRANSFER_ALL_RES_G";
|
|
33
33
|
readonly REVOKE: "TX_REVOKE";
|
|
34
34
|
readonly CLOSE_ACCOUNT: "TX_CLOSE_ACCOUNT";
|
|
35
35
|
readonly ACTIVATE_ALL_RES: "TX_ACTIVATE_ALL_RES";
|
|
@@ -37,10 +37,10 @@ export declare const TxType: Readonly<{
|
|
|
37
37
|
readonly ACCEPT_SCRIPT: "TX_ACCEPT_SCRIPT";
|
|
38
38
|
readonly ACCEPT_SCRIPT_AFTER_TIMELOCK: "TX_ACCEPT_SCRIPT_AFTER_TIMELOCK";
|
|
39
39
|
readonly CREATE_SA: "TX_CREATE_SA";
|
|
40
|
-
readonly
|
|
40
|
+
readonly CREATE_SA_G: "TX_CREATE_SA_G";
|
|
41
41
|
readonly ACTIVATE_OPEN_SA: "TX_ACTIVATE_OPEN_SA";
|
|
42
42
|
readonly POST_DATA_SA: "TX_POST_DATA_SA";
|
|
43
|
-
readonly
|
|
43
|
+
readonly POST_DATA_SA_G: "TX_POST_DATA_SA_G";
|
|
44
44
|
readonly ACTIVATE_DATA_SA: "TX_ACTIVATE_DATA_SA";
|
|
45
45
|
readonly LOCK_STAKE_FOR_VME: "TX_LOCK_STAKE_FOR_VME";
|
|
46
46
|
readonly ACTIVATE_LOCK_STAKE_FOR_VME: "TX_ACTIVATE_LOCK_STAKE_FOR_VME";
|
|
@@ -49,7 +49,7 @@ export declare const TxType: Readonly<{
|
|
|
49
49
|
readonly ACTIVATE_OPEN_VME: "TX_ACTIVATE_OPEN_VME";
|
|
50
50
|
readonly VME_BLOCK: "TX_VME_BLOCK";
|
|
51
51
|
readonly CALL_VME: "TX_CALL_VME";
|
|
52
|
-
readonly
|
|
52
|
+
readonly CALL_VME_G: "TX_CALL_VME_G";
|
|
53
53
|
readonly ACTIVATE_VME_TRANSFER: "TX_ACTIVATE_VME_TRANSFER";
|
|
54
54
|
readonly ACTIVATE_VME_RESULT: "TX_ACTIVATE_VME_RESULT";
|
|
55
55
|
readonly VME_TRANSFER_REWARD: "TX_VME_TRANSFER_REWARD";
|
|
@@ -139,7 +139,7 @@ export declare const TxTypes: {
|
|
|
139
139
|
useGrant: boolean;
|
|
140
140
|
useFee: boolean;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
TX_CALL_VME_G: {
|
|
143
143
|
fee: string;
|
|
144
144
|
grant: number;
|
|
145
145
|
sizeBased: boolean;
|
|
@@ -181,7 +181,7 @@ export declare const TxTypes: {
|
|
|
181
181
|
useGrant: boolean;
|
|
182
182
|
useFee: boolean;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
TX_CREATE_ASSETOBJECT_G: {
|
|
185
185
|
fee: string;
|
|
186
186
|
grant: number;
|
|
187
187
|
sizeBased: boolean;
|
|
@@ -195,7 +195,7 @@ export declare const TxTypes: {
|
|
|
195
195
|
useGrant: boolean;
|
|
196
196
|
useFee: boolean;
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
TX_CREATE_SA_G: {
|
|
199
199
|
fee: string;
|
|
200
200
|
grant: number;
|
|
201
201
|
sizeBased: boolean;
|
|
@@ -209,7 +209,7 @@ export declare const TxTypes: {
|
|
|
209
209
|
useGrant: boolean;
|
|
210
210
|
useFee: boolean;
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
TX_CREATE_TOKEN_G: {
|
|
213
213
|
fee: string;
|
|
214
214
|
grant: number;
|
|
215
215
|
sizeBased: boolean;
|
|
@@ -300,7 +300,7 @@ export declare const TxTypes: {
|
|
|
300
300
|
useGrant: boolean;
|
|
301
301
|
useFee: boolean;
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
TX_POST_DATA_G: {
|
|
304
304
|
fee: string;
|
|
305
305
|
grant: number;
|
|
306
306
|
sizeBased: boolean;
|
|
@@ -314,7 +314,7 @@ export declare const TxTypes: {
|
|
|
314
314
|
useGrant: boolean;
|
|
315
315
|
useFee: boolean;
|
|
316
316
|
};
|
|
317
|
-
|
|
317
|
+
TX_POST_DATA_SA_G: {
|
|
318
318
|
fee: string;
|
|
319
319
|
grant: number;
|
|
320
320
|
sizeBased: boolean;
|
|
@@ -349,7 +349,7 @@ export declare const TxTypes: {
|
|
|
349
349
|
useGrant: boolean;
|
|
350
350
|
useFee: boolean;
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
TX_TRANSFER_ALL_RES_G: {
|
|
353
353
|
fee: string;
|
|
354
354
|
grant: number;
|
|
355
355
|
sizeBased: boolean;
|
|
@@ -363,7 +363,7 @@ export declare const TxTypes: {
|
|
|
363
363
|
useGrant: boolean;
|
|
364
364
|
useFee: boolean;
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
TX_TRANSFER_ASSETOBJECT_G: {
|
|
367
367
|
fee: string;
|
|
368
368
|
grant: number;
|
|
369
369
|
sizeBased: boolean;
|
|
@@ -377,7 +377,7 @@ export declare const TxTypes: {
|
|
|
377
377
|
useGrant: boolean;
|
|
378
378
|
useFee: boolean;
|
|
379
379
|
};
|
|
380
|
-
|
|
380
|
+
TX_TRANSFER_COIN_G: {
|
|
381
381
|
fee: string;
|
|
382
382
|
grant: number;
|
|
383
383
|
sizeBased: boolean;
|
|
@@ -391,7 +391,7 @@ export declare const TxTypes: {
|
|
|
391
391
|
useGrant: boolean;
|
|
392
392
|
useFee: boolean;
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
TX_TRANSFER_TOKEN_G: {
|
|
395
395
|
fee: string;
|
|
396
396
|
grant: number;
|
|
397
397
|
sizeBased: boolean;
|
|
@@ -139,7 +139,7 @@ export declare const TxTypes: {
|
|
|
139
139
|
useGrant: boolean;
|
|
140
140
|
useFee: boolean;
|
|
141
141
|
};
|
|
142
|
-
|
|
142
|
+
TX_CALL_VME_G: {
|
|
143
143
|
fee: string;
|
|
144
144
|
grant: number;
|
|
145
145
|
sizeBased: boolean;
|
|
@@ -181,7 +181,7 @@ export declare const TxTypes: {
|
|
|
181
181
|
useGrant: boolean;
|
|
182
182
|
useFee: boolean;
|
|
183
183
|
};
|
|
184
|
-
|
|
184
|
+
TX_CREATE_ASSETOBJECT_G: {
|
|
185
185
|
fee: string;
|
|
186
186
|
grant: number;
|
|
187
187
|
sizeBased: boolean;
|
|
@@ -195,7 +195,7 @@ export declare const TxTypes: {
|
|
|
195
195
|
useGrant: boolean;
|
|
196
196
|
useFee: boolean;
|
|
197
197
|
};
|
|
198
|
-
|
|
198
|
+
TX_CREATE_SA_G: {
|
|
199
199
|
fee: string;
|
|
200
200
|
grant: number;
|
|
201
201
|
sizeBased: boolean;
|
|
@@ -209,7 +209,7 @@ export declare const TxTypes: {
|
|
|
209
209
|
useGrant: boolean;
|
|
210
210
|
useFee: boolean;
|
|
211
211
|
};
|
|
212
|
-
|
|
212
|
+
TX_CREATE_TOKEN_G: {
|
|
213
213
|
fee: string;
|
|
214
214
|
grant: number;
|
|
215
215
|
sizeBased: boolean;
|
|
@@ -300,7 +300,7 @@ export declare const TxTypes: {
|
|
|
300
300
|
useGrant: boolean;
|
|
301
301
|
useFee: boolean;
|
|
302
302
|
};
|
|
303
|
-
|
|
303
|
+
TX_POST_DATA_G: {
|
|
304
304
|
fee: string;
|
|
305
305
|
grant: number;
|
|
306
306
|
sizeBased: boolean;
|
|
@@ -314,7 +314,7 @@ export declare const TxTypes: {
|
|
|
314
314
|
useGrant: boolean;
|
|
315
315
|
useFee: boolean;
|
|
316
316
|
};
|
|
317
|
-
|
|
317
|
+
TX_POST_DATA_SA_G: {
|
|
318
318
|
fee: string;
|
|
319
319
|
grant: number;
|
|
320
320
|
sizeBased: boolean;
|
|
@@ -349,7 +349,7 @@ export declare const TxTypes: {
|
|
|
349
349
|
useGrant: boolean;
|
|
350
350
|
useFee: boolean;
|
|
351
351
|
};
|
|
352
|
-
|
|
352
|
+
TX_TRANSFER_ALL_RES_G: {
|
|
353
353
|
fee: string;
|
|
354
354
|
grant: number;
|
|
355
355
|
sizeBased: boolean;
|
|
@@ -363,7 +363,7 @@ export declare const TxTypes: {
|
|
|
363
363
|
useGrant: boolean;
|
|
364
364
|
useFee: boolean;
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
TX_TRANSFER_ASSETOBJECT_G: {
|
|
367
367
|
fee: string;
|
|
368
368
|
grant: number;
|
|
369
369
|
sizeBased: boolean;
|
|
@@ -377,7 +377,7 @@ export declare const TxTypes: {
|
|
|
377
377
|
useGrant: boolean;
|
|
378
378
|
useFee: boolean;
|
|
379
379
|
};
|
|
380
|
-
|
|
380
|
+
TX_TRANSFER_COIN_G: {
|
|
381
381
|
fee: string;
|
|
382
382
|
grant: number;
|
|
383
383
|
sizeBased: boolean;
|
|
@@ -391,7 +391,7 @@ export declare const TxTypes: {
|
|
|
391
391
|
useGrant: boolean;
|
|
392
392
|
useFee: boolean;
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
TX_TRANSFER_TOKEN_G: {
|
|
395
395
|
fee: string;
|
|
396
396
|
grant: number;
|
|
397
397
|
sizeBased: boolean;
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TokenValueAB } from '../common/token-value-ab.cjs';
|
|
1
|
+
import { TokenValuePair } from '../common/token-value-pair.cjs';
|
|
3
2
|
import { TxBase } from '../common/tx-base.cjs';
|
|
4
3
|
import { TxSignature } from '../common/tx-signature.cjs';
|
|
5
4
|
export type TxRestoreResHash = TxBase & TxSignature & {
|
|
5
|
+
mode: number;
|
|
6
6
|
balance: string;
|
|
7
7
|
backupFrom: number;
|
|
8
8
|
backupTo: number;
|
|
9
|
-
tokenBalances:
|
|
9
|
+
tokenBalances: TokenValuePair[];
|
|
10
10
|
tokenHash: string;
|
|
11
|
-
|
|
11
|
+
assets: string[];
|
|
12
|
+
assetHash: string;
|
|
12
13
|
};
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { TokenValueAB } from '../common/token-value-ab.mjs';
|
|
1
|
+
import { TokenValuePair } from '../common/token-value-pair.mjs';
|
|
3
2
|
import { TxBase } from '../common/tx-base.mjs';
|
|
4
3
|
import { TxSignature } from '../common/tx-signature.mjs';
|
|
5
4
|
export type TxRestoreResHash = TxBase & TxSignature & {
|
|
5
|
+
mode: number;
|
|
6
6
|
balance: string;
|
|
7
7
|
backupFrom: number;
|
|
8
8
|
backupTo: number;
|
|
9
|
-
tokenBalances:
|
|
9
|
+
tokenBalances: TokenValuePair[];
|
|
10
10
|
tokenHash: string;
|
|
11
|
-
|
|
11
|
+
assets: string[];
|
|
12
|
+
assetHash: string;
|
|
12
13
|
};
|
|
Binary file
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { _ as __awaiter } from './tslib.es6-WQS2tr1v.js';
|
|
2
2
|
import { R as RpcRequestError } from './rpc-BlPk44QH.js';
|
|
3
3
|
import { I as InvalidTxResultError, A as AccountRequiredError } from './account-FZT9LH_s.js';
|
|
4
|
+
import { r as convertHexToData } from './wasm-B1dWd6ix.js';
|
|
4
5
|
|
|
5
6
|
// Automatically generated file. DO NOT EDIT.
|
|
6
7
|
function accountHeightsToDownload(client, param) {
|
|
@@ -1036,6 +1037,36 @@ function postDataToSynthAccount(client, param) {
|
|
|
1036
1037
|
});
|
|
1037
1038
|
}
|
|
1038
1039
|
|
|
1040
|
+
/**
|
|
1041
|
+
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
1042
|
+
*
|
|
1043
|
+
* 기존 autogen 액션은 "1 메서드 = 1 RPC" 형태인데, direct-call 은
|
|
1044
|
+
* 1) debug_buildDirectCall — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
1045
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey = 계정
|
|
1046
|
+
* normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
1047
|
+
* 3) debug_submitDirectCall — { request, sign } 제출 → admit
|
|
1048
|
+
* 처럼 RPC 2번 + 중간 서명이 필요해 한 메서드로 묶는다.
|
|
1049
|
+
*
|
|
1050
|
+
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
1051
|
+
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
1052
|
+
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
1053
|
+
*/
|
|
1054
|
+
function directCall(client, param) {
|
|
1055
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1056
|
+
if (!client.account)
|
|
1057
|
+
throw new AccountRequiredError('debug_buildDirectCall');
|
|
1058
|
+
const built = yield buildDirectCall(client, param);
|
|
1059
|
+
// signableHash 는 node 가 hex(hex.EncodeToString)로 주지만, WASM sign 은 일반 tx 처럼
|
|
1060
|
+
// "Data"(base64) 메시지를 기대한다(Digest.EncodeToString = base64). hex 그대로 서명하면
|
|
1061
|
+
// 서명 바이트가 어긋나 노드의 KeyProof.Pkey 검증에 실패하므로 base64 로 변환 후 서명.
|
|
1062
|
+
const sign = yield client.account.signMessage({
|
|
1063
|
+
message: convertHexToData(built.signableHash),
|
|
1064
|
+
role: 'normal',
|
|
1065
|
+
});
|
|
1066
|
+
return submitDirectCall(client, { request: built.request, sign });
|
|
1067
|
+
});
|
|
1068
|
+
}
|
|
1069
|
+
|
|
1039
1070
|
// Automatically generated file. DO NOT EDIT.
|
|
1040
1071
|
const debugWalletActions = (client) => ({
|
|
1041
1072
|
callContract: (param) => callContract(client, param),
|
|
@@ -1043,6 +1074,7 @@ const debugWalletActions = (client) => ({
|
|
|
1043
1074
|
createContract: (param) => createContract(client, param),
|
|
1044
1075
|
createSynthAccount: (param) => createSynthAccount(client, param),
|
|
1045
1076
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
1077
|
+
directCall: (param) => directCall(client, param),
|
|
1046
1078
|
});
|
|
1047
1079
|
|
|
1048
1080
|
export { echo$1 as $, noArgsRets as A, nodeCmd as B, postDataToSynthAccount as C, removeHomeTxs as D, requestVme as E, sendRawTransaction as F, setImportAccountTx as G, setReliableNode as H, submitDirectCall as I, viewVme as J, acceptScript as K, accountHeightsToDownload as L, accountHeightsToUpload as M, becomeGuest as N, becomeHost as O, calculateAvailableByForward as P, calculateAvailableByForwardList as Q, changeKey as R, changeVkey as S, clientMessage as T, closeAccount as U, createAssetObject as V, createToken as W, createVme as X, debugPublicActions as Y, debugWalletActions as Z, downloadAccountTxs as _, allHeights as a, findDuplicateSubscriber as a0, forwardAssetObject as a1, forwardCoin as a2, forwardToken as a3, freezeAccount as a4, generateLatestStoredDataProof as a5, getAccountAssetList as a6, getAccountAssetObject as a7, getAccountDetail as a8, getAccountHistory as a9, queryAddress as aA, readTxListWitness as aB, requestDataTrade as aC, setHost as aD, shutdown as aE, subscribeAddress as aF, transfer as aG, transferAllRes as aH, transferAssetObject as aI, transferCoin as aJ, transferToken as aK, unlockStake as aL, upliftProofW as aM, uploadAccountTxs as aN, verifyAndSignChallenge as aO, verifyIdentityProof as aP, verifyLatestStoredDataProof as aQ, verifyProofW as aR, verifyTxListWitness as aS, waitHomeTxChange as aT, walletActions as aU, getAccountTokenList as aa, getConciseNodeStatus as ab, getGenesisAccount as ac, getHomeTxDir as ad, getHomeTxFlushSeq as ae, getIdentityProof as af, getInactiveTxList as ag, getLaunchCommand as ah, getMontInfoList as ai, getNodeStatus as aj, getNodeVersion as ak, getOwnerBalance as al, getRoundState as am, getRoundStatesList as an, getShardOfAccount as ao, getSyncState as ap, getTx as aq, getWorldRoundState as ar, getWorldRoundStatesList as as, hasSystemToken as at, lockStake as au, makeTxProof as av, openAccount as aw, postData as ax, provideScript as ay, publicActions as az, balanceGrantList as b, balanceList as c, buildDirectCall as d, callContract as e, callVme as f, createAccount as g, createContract as h, createNode as i, createSynthAccount as j, dumpAllAccounts as k, echo as l, gameChainCmd as m, getAccountsBalances as n, getAccountsHeights as o, getGuestsInfo as p, getHomeShard as q, getImportAccount as r, getImportAccountLog as s, getKeys as t, getNodeBlocks as u, getPeerPool as v, getPeersInfo as w, getVmeLog as x, importAccount as y, initReliableNodes as z };
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
var tslib_es6 = require('./tslib.es6-Cfi3-HmA.cjs');
|
|
4
4
|
var rpc = require('./rpc-DwWIkUva.cjs');
|
|
5
5
|
var account = require('./account-BAsiKnSL.cjs');
|
|
6
|
+
var wasm = require('./wasm-DDrQluVO.cjs');
|
|
6
7
|
|
|
7
8
|
// Automatically generated file. DO NOT EDIT.
|
|
8
9
|
function accountHeightsToDownload(client, param) {
|
|
@@ -1038,6 +1039,36 @@ function postDataToSynthAccount(client, param) {
|
|
|
1038
1039
|
});
|
|
1039
1040
|
}
|
|
1040
1041
|
|
|
1042
|
+
/**
|
|
1043
|
+
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
1044
|
+
*
|
|
1045
|
+
* 기존 autogen 액션은 "1 메서드 = 1 RPC" 형태인데, direct-call 은
|
|
1046
|
+
* 1) debug_buildDirectCall — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
1047
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey = 계정
|
|
1048
|
+
* normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
1049
|
+
* 3) debug_submitDirectCall — { request, sign } 제출 → admit
|
|
1050
|
+
* 처럼 RPC 2번 + 중간 서명이 필요해 한 메서드로 묶는다.
|
|
1051
|
+
*
|
|
1052
|
+
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
1053
|
+
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
1054
|
+
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
1055
|
+
*/
|
|
1056
|
+
function directCall(client, param) {
|
|
1057
|
+
return tslib_es6.__awaiter(this, void 0, void 0, function* () {
|
|
1058
|
+
if (!client.account)
|
|
1059
|
+
throw new account.AccountRequiredError('debug_buildDirectCall');
|
|
1060
|
+
const built = yield buildDirectCall(client, param);
|
|
1061
|
+
// signableHash 는 node 가 hex(hex.EncodeToString)로 주지만, WASM sign 은 일반 tx 처럼
|
|
1062
|
+
// "Data"(base64) 메시지를 기대한다(Digest.EncodeToString = base64). hex 그대로 서명하면
|
|
1063
|
+
// 서명 바이트가 어긋나 노드의 KeyProof.Pkey 검증에 실패하므로 base64 로 변환 후 서명.
|
|
1064
|
+
const sign = yield client.account.signMessage({
|
|
1065
|
+
message: wasm.convertHexToData(built.signableHash),
|
|
1066
|
+
role: 'normal',
|
|
1067
|
+
});
|
|
1068
|
+
return submitDirectCall(client, { request: built.request, sign });
|
|
1069
|
+
});
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1041
1072
|
// Automatically generated file. DO NOT EDIT.
|
|
1042
1073
|
const debugWalletActions = (client) => ({
|
|
1043
1074
|
callContract: (param) => callContract(client, param),
|
|
@@ -1045,6 +1076,7 @@ const debugWalletActions = (client) => ({
|
|
|
1045
1076
|
createContract: (param) => createContract(client, param),
|
|
1046
1077
|
createSynthAccount: (param) => createSynthAccount(client, param),
|
|
1047
1078
|
postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
|
|
1079
|
+
directCall: (param) => directCall(client, param),
|
|
1048
1080
|
});
|
|
1049
1081
|
|
|
1050
1082
|
exports.acceptScript = acceptScript;
|