@locuschain/lib 0.2.12 → 0.2.14
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/actions/wallet/directCall.d.cts +9 -8
- package/dist/actions/wallet/directCall.d.mts +9 -8
- package/dist/autogen/actions/debug/public/directCall.d.cts +4 -0
- package/dist/autogen/actions/debug/public/directCall.d.mts +4 -0
- package/dist/autogen/actions/debug/public/index.d.cts +1 -2
- package/dist/autogen/actions/debug/public/index.d.mts +1 -2
- package/dist/autogen/debugPublicActions.d.cts +0 -4
- package/dist/autogen/debugPublicActions.d.mts +0 -4
- package/dist/autogen/debugWalletActions.d.cts +2 -2
- package/dist/autogen/debugWalletActions.d.mts +2 -2
- package/dist/autogen/index.amd.js +2 -3
- package/dist/autogen/index.cjs.cjs +2 -3
- package/dist/autogen/index.esm.js +3 -4
- package/dist/autogen/rpc-api-spec.d.cts +2 -5
- package/dist/autogen/rpc-api-spec.d.mts +2 -5
- package/dist/autogen/types/rpc/index.d.cts +1 -3
- package/dist/autogen/types/rpc/index.d.mts +1 -3
- package/dist/autogen/types/rpc/{params-build-direct-call.d.cts → params-direct-call.d.cts} +3 -1
- package/dist/autogen/types/rpc/{params-build-direct-call.d.mts → params-direct-call.d.mts} +3 -1
- package/dist/autogen/types/rpc/rpc-direct-call-result.d.cts +3 -0
- package/dist/autogen/types/rpc/rpc-direct-call-result.d.mts +3 -0
- package/dist/autogen/wasm/lclib.wasm +0 -0
- package/dist/chunks/{debugWalletActions-BIr5g97C.js → debugWalletActions-CDdAz4_v.js} +20 -26
- package/dist/chunks/{debugWalletActions-Eu-0KUqt.js → debugWalletActions-D8kjrWXx.js} +20 -27
- package/dist/chunks/{debugWalletActions-DEdW7RNn.cjs → debugWalletActions-Ds4LGsQb.cjs} +20 -27
- package/dist/clients/createLocusPublicClient.d.cts +0 -2
- package/dist/clients/createLocusPublicClient.d.mts +0 -2
- package/dist/clients/createLocusWalletClient.d.cts +1 -1
- package/dist/clients/createLocusWalletClient.d.mts +1 -1
- package/dist/clients/index.amd.js +1 -1
- package/dist/clients/index.cjs.cjs +1 -1
- package/dist/clients/index.esm.js +1 -1
- package/dist/constant/index.amd.js +15 -0
- package/dist/constant/index.cjs.cjs +15 -0
- package/dist/constant/index.d.cts +12 -0
- package/dist/constant/index.d.mts +12 -0
- package/dist/constant/index.esm.js +15 -1
- package/dist/index.amd.js +2 -1
- package/dist/index.cjs.cjs +2 -1
- package/dist/index.esm.js +2 -2
- package/package.json +1 -1
- package/dist/autogen/actions/debug/public/buildDirectCall.d.cts +0 -4
- package/dist/autogen/actions/debug/public/buildDirectCall.d.mts +0 -4
- package/dist/autogen/actions/debug/public/submitDirectCall.d.cts +0 -4
- package/dist/autogen/actions/debug/public/submitDirectCall.d.mts +0 -4
- package/dist/autogen/types/rpc/params-submit-direct-call.d.cts +0 -4
- package/dist/autogen/types/rpc/params-submit-direct-call.d.mts +0 -4
- package/dist/autogen/types/rpc/rpc-build-direct-call-result.d.cts +0 -5
- package/dist/autogen/types/rpc/rpc-build-direct-call-result.d.mts +0 -5
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParamsDirectCall } from '../../autogen/types/rpc/params-direct-call.cjs';
|
|
2
2
|
import type { RpcDirectCallResult } from '../../autogen/types/rpc/rpc-direct-call-result.cjs';
|
|
3
3
|
import type { WalletClient } from '../../clients/types.cjs';
|
|
4
4
|
/**
|
|
5
5
|
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* 노드는 build·submit 을 단일 RPC `debug_directCall` 로 통합했다(sign 유무로 분기).
|
|
8
|
+
* 하지만 그 사이에 caller 서명이 끼어야 하므로("1 메서드 = 1 RPC" 형태가 아님)
|
|
9
|
+
* 같은 `debug_directCall` 을 두 번 호출하는 composite 로 묶는다:
|
|
10
|
+
* 1) directCall (sign 없이) — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
11
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey =
|
|
12
|
+
* 계정 normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
13
|
+
* 3) directCall (sign 부착) — { request, sign } 제출 → admit
|
|
13
14
|
*
|
|
14
15
|
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
15
16
|
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
16
17
|
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
17
18
|
*/
|
|
18
|
-
export declare function directCall(client: WalletClient, param:
|
|
19
|
+
export declare function directCall(client: WalletClient, param: Omit<ParamsDirectCall, 'request' | 'sign'>): Promise<RpcDirectCallResult>;
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParamsDirectCall } from '../../autogen/types/rpc/params-direct-call.mjs';
|
|
2
2
|
import type { RpcDirectCallResult } from '../../autogen/types/rpc/rpc-direct-call-result.mjs';
|
|
3
3
|
import type { WalletClient } from '../../clients/types.mjs';
|
|
4
4
|
/**
|
|
5
5
|
* [임시] caller-signed VME direct-call 전용 메서드.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
7
|
+
* 노드는 build·submit 을 단일 RPC `debug_directCall` 로 통합했다(sign 유무로 분기).
|
|
8
|
+
* 하지만 그 사이에 caller 서명이 끼어야 하므로("1 메서드 = 1 RPC" 형태가 아님)
|
|
9
|
+
* 같은 `debug_directCall` 을 두 번 호출하는 composite 로 묶는다:
|
|
10
|
+
* 1) directCall (sign 없이) — 노드가 KeyProof 를 채운 미서명 요청 + signableHash 반환
|
|
11
|
+
* 2) (signableHash 서명) — caller 의 normal 키로 서명 (노드는 KeyProof.Pkey =
|
|
12
|
+
* 계정 normal pkey 로 검증; 일반 tx 서명과 동일 primitive)
|
|
13
|
+
* 3) directCall (sign 부착) — { request, sign } 제출 → admit
|
|
13
14
|
*
|
|
14
15
|
* 표준 prepare→sign→send 헬퍼(_prepareTransaction 등)는 Locus tx 엔벨로프
|
|
15
16
|
* (hash/tx) 전제라 build/submit 의 다른 shape(signableHash/request)에 맞지 않아
|
|
16
17
|
* 별도 메서드로 둔다. autogen 이 아니므로 코드 재생성에도 보존된다.
|
|
17
18
|
*/
|
|
18
|
-
export declare function directCall(client: WalletClient, param:
|
|
19
|
+
export declare function directCall(client: WalletClient, param: Omit<ParamsDirectCall, 'request' | 'sign'>): Promise<RpcDirectCallResult>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ParamsDirectCall } from '../../../types/rpc/params-direct-call.cjs';
|
|
2
|
+
import { RpcDirectCallResult } from '../../../types/rpc/rpc-direct-call-result.cjs';
|
|
3
|
+
import type { Client } from '../../../../clients/types.cjs';
|
|
4
|
+
export declare function directCall(client: Client, param: ParamsDirectCall): Promise<RpcDirectCallResult>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ParamsDirectCall } from '../../../types/rpc/params-direct-call.mjs';
|
|
2
|
+
import { RpcDirectCallResult } from '../../../types/rpc/rpc-direct-call-result.mjs';
|
|
3
|
+
import type { Client } from '../../../../clients/types.mjs';
|
|
4
|
+
export declare function directCall(client: Client, param: ParamsDirectCall): Promise<RpcDirectCallResult>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './allHeights.cjs';
|
|
2
2
|
export * from './balanceGrantList.cjs';
|
|
3
3
|
export * from './balanceList.cjs';
|
|
4
|
-
export * from './buildDirectCall.cjs';
|
|
5
4
|
export * from './createAccount.cjs';
|
|
6
5
|
export * from './createNode.cjs';
|
|
6
|
+
export * from './directCall.cjs';
|
|
7
7
|
export * from './dumpAllAccounts.cjs';
|
|
8
8
|
export * from './echo.cjs';
|
|
9
9
|
export * from './gameChainCmd.cjs';
|
|
@@ -27,5 +27,4 @@ export * from './requestVme.cjs';
|
|
|
27
27
|
export * from './sendRawTransaction.cjs';
|
|
28
28
|
export * from './setImportAccountTx.cjs';
|
|
29
29
|
export * from './setReliableNode.cjs';
|
|
30
|
-
export * from './submitDirectCall.cjs';
|
|
31
30
|
export * from './viewVme.cjs';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export * from './allHeights.mjs';
|
|
2
2
|
export * from './balanceGrantList.mjs';
|
|
3
3
|
export * from './balanceList.mjs';
|
|
4
|
-
export * from './buildDirectCall.mjs';
|
|
5
4
|
export * from './createAccount.mjs';
|
|
6
5
|
export * from './createNode.mjs';
|
|
6
|
+
export * from './directCall.mjs';
|
|
7
7
|
export * from './dumpAllAccounts.mjs';
|
|
8
8
|
export * from './echo.mjs';
|
|
9
9
|
export * from './gameChainCmd.mjs';
|
|
@@ -27,5 +27,4 @@ export * from './requestVme.mjs';
|
|
|
27
27
|
export * from './sendRawTransaction.mjs';
|
|
28
28
|
export * from './setImportAccountTx.mjs';
|
|
29
29
|
export * from './setReliableNode.mjs';
|
|
30
|
-
export * from './submitDirectCall.mjs';
|
|
31
30
|
export * from './viewVme.mjs';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ParamsAccount } from './types/rpc/params-account.cjs';
|
|
2
2
|
import type { ParamsAccounts } from './types/rpc/params-accounts.cjs';
|
|
3
|
-
import type { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.cjs';
|
|
4
3
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.cjs';
|
|
5
4
|
import type { ParamsCreateNode } from './types/rpc/params-create-node.cjs';
|
|
6
5
|
import type { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.cjs';
|
|
@@ -13,14 +12,12 @@ import type { ParamsRequestVme } from './types/rpc/params-request-vme.cjs';
|
|
|
13
12
|
import type { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transaction.cjs';
|
|
14
13
|
import type { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.cjs';
|
|
15
14
|
import type { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.cjs';
|
|
16
|
-
import type { ParamsSubmitDirectCall } from './types/rpc/params-submit-direct-call.cjs';
|
|
17
15
|
import type { ParamsVmeLog } from './types/rpc/params-vme-log.cjs';
|
|
18
16
|
import type { Client } from '../clients/types.cjs';
|
|
19
17
|
export declare const debugPublicActions: (client: Client) => {
|
|
20
18
|
allHeights: () => Promise<import("../index.cjs").RpcAccountHeight[]>;
|
|
21
19
|
balanceGrantList: () => Promise<string[]>;
|
|
22
20
|
balanceList: () => Promise<string[]>;
|
|
23
|
-
buildDirectCall: (param: ParamsBuildDirectCall) => Promise<import("../index.cjs").RpcBuildDirectCallResult>;
|
|
24
21
|
createAccount: () => Promise<import("../index.cjs").RpcCreateAccountResult>;
|
|
25
22
|
createNode: (param: ParamsCreateNode) => Promise<import("../index.cjs").RpcCreateNodeResult>;
|
|
26
23
|
dumpAllAccounts: () => Promise<import("../index.cjs").ResultDumpAccounts>;
|
|
@@ -46,6 +43,5 @@ export declare const debugPublicActions: (client: Client) => {
|
|
|
46
43
|
sendRawTransaction: (params: ParamsSendRawTransaction) => Promise<import("../index.cjs").RpcSendRawTransactionResult>;
|
|
47
44
|
setImportAccountTx: (params: ParamsSetImportAccountTx) => Promise<import("../index.cjs").RpcSetImportAccountTxResult>;
|
|
48
45
|
setReliableNode: (param: ParamsSetReliableNode) => Promise<import("../index.cjs").RpcBoolResult>;
|
|
49
|
-
submitDirectCall: (param: ParamsSubmitDirectCall) => Promise<import("../index.cjs").RpcDirectCallResult>;
|
|
50
46
|
viewVme: (param: ParamsCallVme) => Promise<import("../index.cjs").RpcViewVmeResult>;
|
|
51
47
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { ParamsAccount } from './types/rpc/params-account.mjs';
|
|
2
2
|
import type { ParamsAccounts } from './types/rpc/params-accounts.mjs';
|
|
3
|
-
import type { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.mjs';
|
|
4
3
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.mjs';
|
|
5
4
|
import type { ParamsCreateNode } from './types/rpc/params-create-node.mjs';
|
|
6
5
|
import type { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.mjs';
|
|
@@ -13,14 +12,12 @@ import type { ParamsRequestVme } from './types/rpc/params-request-vme.mjs';
|
|
|
13
12
|
import type { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transaction.mjs';
|
|
14
13
|
import type { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.mjs';
|
|
15
14
|
import type { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.mjs';
|
|
16
|
-
import type { ParamsSubmitDirectCall } from './types/rpc/params-submit-direct-call.mjs';
|
|
17
15
|
import type { ParamsVmeLog } from './types/rpc/params-vme-log.mjs';
|
|
18
16
|
import type { Client } from '../clients/types.mjs';
|
|
19
17
|
export declare const debugPublicActions: (client: Client) => {
|
|
20
18
|
allHeights: () => Promise<import("../index.mjs").RpcAccountHeight[]>;
|
|
21
19
|
balanceGrantList: () => Promise<string[]>;
|
|
22
20
|
balanceList: () => Promise<string[]>;
|
|
23
|
-
buildDirectCall: (param: ParamsBuildDirectCall) => Promise<import("../index.mjs").RpcBuildDirectCallResult>;
|
|
24
21
|
createAccount: () => Promise<import("../index.mjs").RpcCreateAccountResult>;
|
|
25
22
|
createNode: (param: ParamsCreateNode) => Promise<import("../index.mjs").RpcCreateNodeResult>;
|
|
26
23
|
dumpAllAccounts: () => Promise<import("../index.mjs").ResultDumpAccounts>;
|
|
@@ -46,6 +43,5 @@ export declare const debugPublicActions: (client: Client) => {
|
|
|
46
43
|
sendRawTransaction: (params: ParamsSendRawTransaction) => Promise<import("../index.mjs").RpcSendRawTransactionResult>;
|
|
47
44
|
setImportAccountTx: (params: ParamsSetImportAccountTx) => Promise<import("../index.mjs").RpcSetImportAccountTxResult>;
|
|
48
45
|
setReliableNode: (param: ParamsSetReliableNode) => Promise<import("../index.mjs").RpcBoolResult>;
|
|
49
|
-
submitDirectCall: (param: ParamsSubmitDirectCall) => Promise<import("../index.mjs").RpcDirectCallResult>;
|
|
50
46
|
viewVme: (param: ParamsCallVme) => Promise<import("../index.mjs").RpcViewVmeResult>;
|
|
51
47
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParamsDirectCall } from './types/rpc/params-direct-call.cjs';
|
|
2
2
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.cjs';
|
|
3
3
|
import type { ParamsCreateContract } from './types/rpc/params-create-contract.cjs';
|
|
4
4
|
import type { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.cjs';
|
|
@@ -10,5 +10,5 @@ export declare const debugWalletActions: (client: WalletClient) => {
|
|
|
10
10
|
createContract: (param: ParamsCreateContract) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
11
11
|
createSynthAccount: (param: ParamsCreateSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
12
12
|
postDataToSynthAccount: (param: ParamsPostDataToSynthAccount) => Promise<import("../index.cjs").RpcCreateTxResult>;
|
|
13
|
-
directCall: (param:
|
|
13
|
+
directCall: (param: Omit<ParamsDirectCall, "request" | "sign">) => Promise<import("../index.cjs").RpcDirectCallResult>;
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ParamsDirectCall } from './types/rpc/params-direct-call.mjs';
|
|
2
2
|
import type { ParamsCallVme } from './types/rpc/params-call-vme.mjs';
|
|
3
3
|
import type { ParamsCreateContract } from './types/rpc/params-create-contract.mjs';
|
|
4
4
|
import type { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.mjs';
|
|
@@ -10,5 +10,5 @@ export declare const debugWalletActions: (client: WalletClient) => {
|
|
|
10
10
|
createContract: (param: ParamsCreateContract) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
11
11
|
createSynthAccount: (param: ParamsCreateSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
12
12
|
postDataToSynthAccount: (param: ParamsPostDataToSynthAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
|
|
13
|
-
directCall: (param:
|
|
13
|
+
directCall: (param: Omit<ParamsDirectCall, "request" | "sign">) => Promise<import("../index.mjs").RpcDirectCallResult>;
|
|
14
14
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-
|
|
1
|
+
define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-D8kjrWXx', '../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
|
|
|
@@ -7,13 +7,13 @@ define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-Eu-0
|
|
|
7
7
|
allHeights: debugWalletActions.allHeights,
|
|
8
8
|
balanceGrantList: debugWalletActions.balanceGrantList,
|
|
9
9
|
balanceList: debugWalletActions.balanceList,
|
|
10
|
-
buildDirectCall: debugWalletActions.buildDirectCall,
|
|
11
10
|
callContract: debugWalletActions.callContract,
|
|
12
11
|
callVme: debugWalletActions.callVme,
|
|
13
12
|
createAccount: debugWalletActions.createAccount,
|
|
14
13
|
createContract: debugWalletActions.createContract,
|
|
15
14
|
createNode: debugWalletActions.createNode,
|
|
16
15
|
createSynthAccount: debugWalletActions.createSynthAccount,
|
|
16
|
+
directCall: debugWalletActions.directCall,
|
|
17
17
|
dumpAllAccounts: debugWalletActions.dumpAllAccounts,
|
|
18
18
|
echo: debugWalletActions.echo,
|
|
19
19
|
gameChainCmd: debugWalletActions.gameChainCmd,
|
|
@@ -38,7 +38,6 @@ define(['exports', '../chunks/wasm-BQYfcIX8', '../chunks/debugWalletActions-Eu-0
|
|
|
38
38
|
sendRawTransaction: debugWalletActions.sendRawTransaction,
|
|
39
39
|
setImportAccountTx: debugWalletActions.setImportAccountTx,
|
|
40
40
|
setReliableNode: debugWalletActions.setReliableNode,
|
|
41
|
-
submitDirectCall: debugWalletActions.submitDirectCall,
|
|
42
41
|
viewVme: debugWalletActions.viewVme
|
|
43
42
|
});
|
|
44
43
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var wasm = require('../chunks/wasm-DDrQluVO.cjs');
|
|
4
|
-
var debugWalletActions = require('../chunks/debugWalletActions-
|
|
4
|
+
var debugWalletActions = require('../chunks/debugWalletActions-Ds4LGsQb.cjs');
|
|
5
5
|
require('../chunks/tslib.es6-Cfi3-HmA.cjs');
|
|
6
6
|
require('../chunks/rpc-DwWIkUva.cjs');
|
|
7
7
|
require('../chunks/base-Cy5SSYLF.cjs');
|
|
@@ -14,13 +14,13 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
14
14
|
allHeights: debugWalletActions.allHeights,
|
|
15
15
|
balanceGrantList: debugWalletActions.balanceGrantList,
|
|
16
16
|
balanceList: debugWalletActions.balanceList,
|
|
17
|
-
buildDirectCall: debugWalletActions.buildDirectCall,
|
|
18
17
|
callContract: debugWalletActions.callContract,
|
|
19
18
|
callVme: debugWalletActions.callVme,
|
|
20
19
|
createAccount: debugWalletActions.createAccount,
|
|
21
20
|
createContract: debugWalletActions.createContract,
|
|
22
21
|
createNode: debugWalletActions.createNode,
|
|
23
22
|
createSynthAccount: debugWalletActions.createSynthAccount,
|
|
23
|
+
directCall: debugWalletActions.directCall,
|
|
24
24
|
dumpAllAccounts: debugWalletActions.dumpAllAccounts,
|
|
25
25
|
echo: debugWalletActions.echo,
|
|
26
26
|
gameChainCmd: debugWalletActions.gameChainCmd,
|
|
@@ -45,7 +45,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
45
45
|
sendRawTransaction: debugWalletActions.sendRawTransaction,
|
|
46
46
|
setImportAccountTx: debugWalletActions.setImportAccountTx,
|
|
47
47
|
setReliableNode: debugWalletActions.setReliableNode,
|
|
48
|
-
submitDirectCall: debugWalletActions.submitDirectCall,
|
|
49
48
|
viewVme: debugWalletActions.viewVme
|
|
50
49
|
});
|
|
51
50
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
|
|
3
|
-
export {
|
|
2
|
+
import { a as allHeights, b as balanceGrantList, c as balanceList, d as callContract, e as callVme, f as createAccount, g as createContract, h as createNode, i as createSynthAccount, j as directCall, 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 viewVme } from '../chunks/debugWalletActions-CDdAz4_v.js';
|
|
3
|
+
export { J as acceptScript, K as accountHeightsToDownload, L as accountHeightsToUpload, M as becomeGuest, N as becomeHost, O as calculateAvailableByForward, P as calculateAvailableByForwardList, Q as changeKey, R as changeVkey, S as clientMessage, T as closeAccount, U as createAssetObject, V as createToken, W as createVme, X as debugPublicActions, Y as debugWalletActions, Z as downloadAccountTxs, _ as echo, $ as findDuplicateSubscriber, a0 as forwardAssetObject, a1 as forwardCoin, a2 as forwardToken, a3 as freezeAccount, a4 as generateLatestStoredDataProof, a5 as getAccountAssetList, a6 as getAccountAssetObject, a7 as getAccountDetail, a8 as getAccountHistory, a9 as getAccountTokenList, aa as getConciseNodeStatus, ab as getGenesisAccount, ac as getHomeTxDir, ad as getHomeTxFlushSeq, ae as getIdentityProof, af as getInactiveTxList, ag as getLaunchCommand, ah as getMontInfoList, ai as getNodeStatus, aj as getNodeVersion, ak as getOwnerBalance, al as getRoundState, am as getRoundStatesList, an as getShardOfAccount, ao as getSyncState, ap as getTx, aq as getWorldRoundState, ar as getWorldRoundStatesList, as as hasSystemToken, at as lockStake, au as makeTxProof, av as openAccount, aw as postData, ax as provideScript, ay as publicActions, az as queryAddress, aA as readTxListWitness, aB as requestDataTrade, aC as setHost, aD as shutdown, aE as subscribeAddress, aF as transfer, aG as transferAllRes, aH as transferAssetObject, aI as transferCoin, aJ as transferToken, aK as unlockStake, aL as upliftProofW, aM as uploadAccountTxs, aN as verifyAndSignChallenge, aO as verifyIdentityProof, aP as verifyLatestStoredDataProof, aQ as verifyProofW, aR as verifyTxListWitness, aS as waitHomeTxChange, aT as walletActions } from '../chunks/debugWalletActions-CDdAz4_v.js';
|
|
4
4
|
import '../chunks/tslib.es6-WQS2tr1v.js';
|
|
5
5
|
import '../chunks/rpc-BlPk44QH.js';
|
|
6
6
|
import '../chunks/base-BQXfRsuw.js';
|
|
@@ -13,13 +13,13 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
13
13
|
allHeights: allHeights,
|
|
14
14
|
balanceGrantList: balanceGrantList,
|
|
15
15
|
balanceList: balanceList,
|
|
16
|
-
buildDirectCall: buildDirectCall,
|
|
17
16
|
callContract: callContract,
|
|
18
17
|
callVme: callVme,
|
|
19
18
|
createAccount: createAccount,
|
|
20
19
|
createContract: createContract,
|
|
21
20
|
createNode: createNode,
|
|
22
21
|
createSynthAccount: createSynthAccount,
|
|
22
|
+
directCall: directCall,
|
|
23
23
|
dumpAllAccounts: dumpAllAccounts,
|
|
24
24
|
echo: echo,
|
|
25
25
|
gameChainCmd: gameChainCmd,
|
|
@@ -44,7 +44,6 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
44
44
|
sendRawTransaction: sendRawTransaction,
|
|
45
45
|
setImportAccountTx: setImportAccountTx,
|
|
46
46
|
setReliableNode: setReliableNode,
|
|
47
|
-
submitDirectCall: submitDirectCall,
|
|
48
47
|
viewVme: viewVme
|
|
49
48
|
});
|
|
50
49
|
|
|
@@ -16,7 +16,6 @@ import { ParamsAccount } from './types/rpc/params-account.cjs';
|
|
|
16
16
|
import { ParamsAccounts } from './types/rpc/params-accounts.cjs';
|
|
17
17
|
import { ParamsBecomeGuest } from './types/rpc/params-become-guest.cjs';
|
|
18
18
|
import { ParamsBecomeHost } from './types/rpc/params-become-host.cjs';
|
|
19
|
-
import { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.cjs';
|
|
20
19
|
import { ParamsCalculateAvailableByForwardList } from './types/rpc/params-calculate-available-by-forward-list.cjs';
|
|
21
20
|
import { ParamsCalculateAvailableByForward } from './types/rpc/params-calculate-available-by-forward.cjs';
|
|
22
21
|
import { ParamsCallVme } from './types/rpc/params-call-vme.cjs';
|
|
@@ -29,6 +28,7 @@ import { ParamsCreateNode } from './types/rpc/params-create-node.cjs';
|
|
|
29
28
|
import { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.cjs';
|
|
30
29
|
import { ParamsCreateToken } from './types/rpc/params-create-token.cjs';
|
|
31
30
|
import { ParamsCreateVme } from './types/rpc/params-create-vme.cjs';
|
|
31
|
+
import { ParamsDirectCall } from './types/rpc/params-direct-call.cjs';
|
|
32
32
|
import { ParamsDownloadAccountTxs } from './types/rpc/params-download-account-txs.cjs';
|
|
33
33
|
import { ParamsFindDuplicateSubscriber } from './types/rpc/params-find-duplicate-subscriber.cjs';
|
|
34
34
|
import { ParamsForwardAssetObject } from './types/rpc/params-forward-asset-object.cjs';
|
|
@@ -61,7 +61,6 @@ import { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transactio
|
|
|
61
61
|
import { ParamsSetHost } from './types/rpc/params-set-host.cjs';
|
|
62
62
|
import { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.cjs';
|
|
63
63
|
import { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.cjs';
|
|
64
|
-
import { ParamsSubmitDirectCall } from './types/rpc/params-submit-direct-call.cjs';
|
|
65
64
|
import { ParamsSubscribeAddress } from './types/rpc/params-subscribe-address.cjs';
|
|
66
65
|
import { ParamsTransferAllRes } from './types/rpc/params-transfer-all-res.cjs';
|
|
67
66
|
import { ParamsTransferAssetObject } from './types/rpc/params-transfer-asset-object.cjs';
|
|
@@ -81,7 +80,6 @@ import { ParamsWaitHomeTxChange } from './types/rpc/params-wait-home-tx-change.c
|
|
|
81
80
|
import { ResultDumpAccounts } from './types/rpc/result-dump-accounts.cjs';
|
|
82
81
|
import { RoundStateDetail } from './types/rpc/round-state-detail.cjs';
|
|
83
82
|
import { RpcBoolResult } from './types/rpc/rpc-bool-result.cjs';
|
|
84
|
-
import { RpcBuildDirectCallResult } from './types/rpc/rpc-build-direct-call-result.cjs';
|
|
85
83
|
import { RpcCalculateAvailableByForwardListResult } from './types/rpc/rpc-calculate-available-by-forward-list-result.cjs';
|
|
86
84
|
import { RpcCalculateAvailableByForwardResult } from './types/rpc/rpc-calculate-available-by-forward-result.cjs';
|
|
87
85
|
import { RpcCreateAccountResult } from './types/rpc/rpc-create-account-result.cjs';
|
|
@@ -139,13 +137,13 @@ export interface RpcApiSpec {
|
|
|
139
137
|
debug_allHeights(): Promise<RpcAccountHeight[]>;
|
|
140
138
|
debug_balanceGrantList(): Promise<string[]>;
|
|
141
139
|
debug_balanceList(): Promise<string[]>;
|
|
142
|
-
debug_buildDirectCall(param: ParamsBuildDirectCall): Promise<RpcBuildDirectCallResult>;
|
|
143
140
|
debug_callContract(param: ParamsCallVme): Promise<RpcCreateTxResult>;
|
|
144
141
|
debug_callVme(param: ParamsCallVme): Promise<RpcCreateTxResult>;
|
|
145
142
|
debug_createAccount(): Promise<RpcCreateAccountResult>;
|
|
146
143
|
debug_createContract(param: ParamsCreateContract): Promise<RpcCreateTxResult>;
|
|
147
144
|
debug_createNode(param: ParamsCreateNode): Promise<RpcCreateNodeResult>;
|
|
148
145
|
debug_createSynthAccount(param: ParamsCreateSynthAccount): Promise<RpcCreateTxResult>;
|
|
146
|
+
debug_directCall(param: ParamsDirectCall): Promise<RpcDirectCallResult>;
|
|
149
147
|
debug_dumpAllAccounts(): Promise<ResultDumpAccounts>;
|
|
150
148
|
debug_echo(str: string): Promise<string>;
|
|
151
149
|
debug_gameChainCmd(param: ParamsGameChainCmd): Promise<RpcGameChainCmdResult>;
|
|
@@ -170,7 +168,6 @@ export interface RpcApiSpec {
|
|
|
170
168
|
debug_sendRawTransaction(params: ParamsSendRawTransaction): Promise<RpcSendRawTransactionResult>;
|
|
171
169
|
debug_setImportAccountTx(params: ParamsSetImportAccountTx): Promise<RpcSetImportAccountTxResult>;
|
|
172
170
|
debug_setReliableNode(param: ParamsSetReliableNode): Promise<RpcBoolResult>;
|
|
173
|
-
debug_submitDirectCall(param: ParamsSubmitDirectCall): Promise<RpcDirectCallResult>;
|
|
174
171
|
debug_viewVme(param: ParamsCallVme): Promise<RpcViewVmeResult>;
|
|
175
172
|
locus_acceptScript(params: ParamsAcceptScript): Promise<RpcCreateTxResult>;
|
|
176
173
|
locus_accountHeightsToDownload(param: ParamsAccountHeights): Promise<HeightsResult>;
|
|
@@ -16,7 +16,6 @@ import { ParamsAccount } from './types/rpc/params-account.mjs';
|
|
|
16
16
|
import { ParamsAccounts } from './types/rpc/params-accounts.mjs';
|
|
17
17
|
import { ParamsBecomeGuest } from './types/rpc/params-become-guest.mjs';
|
|
18
18
|
import { ParamsBecomeHost } from './types/rpc/params-become-host.mjs';
|
|
19
|
-
import { ParamsBuildDirectCall } from './types/rpc/params-build-direct-call.mjs';
|
|
20
19
|
import { ParamsCalculateAvailableByForwardList } from './types/rpc/params-calculate-available-by-forward-list.mjs';
|
|
21
20
|
import { ParamsCalculateAvailableByForward } from './types/rpc/params-calculate-available-by-forward.mjs';
|
|
22
21
|
import { ParamsCallVme } from './types/rpc/params-call-vme.mjs';
|
|
@@ -29,6 +28,7 @@ import { ParamsCreateNode } from './types/rpc/params-create-node.mjs';
|
|
|
29
28
|
import { ParamsCreateSynthAccount } from './types/rpc/params-create-synth-account.mjs';
|
|
30
29
|
import { ParamsCreateToken } from './types/rpc/params-create-token.mjs';
|
|
31
30
|
import { ParamsCreateVme } from './types/rpc/params-create-vme.mjs';
|
|
31
|
+
import { ParamsDirectCall } from './types/rpc/params-direct-call.mjs';
|
|
32
32
|
import { ParamsDownloadAccountTxs } from './types/rpc/params-download-account-txs.mjs';
|
|
33
33
|
import { ParamsFindDuplicateSubscriber } from './types/rpc/params-find-duplicate-subscriber.mjs';
|
|
34
34
|
import { ParamsForwardAssetObject } from './types/rpc/params-forward-asset-object.mjs';
|
|
@@ -61,7 +61,6 @@ import { ParamsSendRawTransaction } from './types/rpc/params-send-raw-transactio
|
|
|
61
61
|
import { ParamsSetHost } from './types/rpc/params-set-host.mjs';
|
|
62
62
|
import { ParamsSetImportAccountTx } from './types/rpc/params-set-import-account-tx.mjs';
|
|
63
63
|
import { ParamsSetReliableNode } from './types/rpc/params-set-reliable-node.mjs';
|
|
64
|
-
import { ParamsSubmitDirectCall } from './types/rpc/params-submit-direct-call.mjs';
|
|
65
64
|
import { ParamsSubscribeAddress } from './types/rpc/params-subscribe-address.mjs';
|
|
66
65
|
import { ParamsTransferAllRes } from './types/rpc/params-transfer-all-res.mjs';
|
|
67
66
|
import { ParamsTransferAssetObject } from './types/rpc/params-transfer-asset-object.mjs';
|
|
@@ -81,7 +80,6 @@ import { ParamsWaitHomeTxChange } from './types/rpc/params-wait-home-tx-change.m
|
|
|
81
80
|
import { ResultDumpAccounts } from './types/rpc/result-dump-accounts.mjs';
|
|
82
81
|
import { RoundStateDetail } from './types/rpc/round-state-detail.mjs';
|
|
83
82
|
import { RpcBoolResult } from './types/rpc/rpc-bool-result.mjs';
|
|
84
|
-
import { RpcBuildDirectCallResult } from './types/rpc/rpc-build-direct-call-result.mjs';
|
|
85
83
|
import { RpcCalculateAvailableByForwardListResult } from './types/rpc/rpc-calculate-available-by-forward-list-result.mjs';
|
|
86
84
|
import { RpcCalculateAvailableByForwardResult } from './types/rpc/rpc-calculate-available-by-forward-result.mjs';
|
|
87
85
|
import { RpcCreateAccountResult } from './types/rpc/rpc-create-account-result.mjs';
|
|
@@ -139,13 +137,13 @@ export interface RpcApiSpec {
|
|
|
139
137
|
debug_allHeights(): Promise<RpcAccountHeight[]>;
|
|
140
138
|
debug_balanceGrantList(): Promise<string[]>;
|
|
141
139
|
debug_balanceList(): Promise<string[]>;
|
|
142
|
-
debug_buildDirectCall(param: ParamsBuildDirectCall): Promise<RpcBuildDirectCallResult>;
|
|
143
140
|
debug_callContract(param: ParamsCallVme): Promise<RpcCreateTxResult>;
|
|
144
141
|
debug_callVme(param: ParamsCallVme): Promise<RpcCreateTxResult>;
|
|
145
142
|
debug_createAccount(): Promise<RpcCreateAccountResult>;
|
|
146
143
|
debug_createContract(param: ParamsCreateContract): Promise<RpcCreateTxResult>;
|
|
147
144
|
debug_createNode(param: ParamsCreateNode): Promise<RpcCreateNodeResult>;
|
|
148
145
|
debug_createSynthAccount(param: ParamsCreateSynthAccount): Promise<RpcCreateTxResult>;
|
|
146
|
+
debug_directCall(param: ParamsDirectCall): Promise<RpcDirectCallResult>;
|
|
149
147
|
debug_dumpAllAccounts(): Promise<ResultDumpAccounts>;
|
|
150
148
|
debug_echo(str: string): Promise<string>;
|
|
151
149
|
debug_gameChainCmd(param: ParamsGameChainCmd): Promise<RpcGameChainCmdResult>;
|
|
@@ -170,7 +168,6 @@ export interface RpcApiSpec {
|
|
|
170
168
|
debug_sendRawTransaction(params: ParamsSendRawTransaction): Promise<RpcSendRawTransactionResult>;
|
|
171
169
|
debug_setImportAccountTx(params: ParamsSetImportAccountTx): Promise<RpcSetImportAccountTxResult>;
|
|
172
170
|
debug_setReliableNode(param: ParamsSetReliableNode): Promise<RpcBoolResult>;
|
|
173
|
-
debug_submitDirectCall(param: ParamsSubmitDirectCall): Promise<RpcDirectCallResult>;
|
|
174
171
|
debug_viewVme(param: ParamsCallVme): Promise<RpcViewVmeResult>;
|
|
175
172
|
locus_acceptScript(params: ParamsAcceptScript): Promise<RpcCreateTxResult>;
|
|
176
173
|
locus_accountHeightsToDownload(param: ParamsAccountHeights): Promise<HeightsResult>;
|
|
@@ -7,7 +7,6 @@ export * from './params-account-history.cjs';
|
|
|
7
7
|
export * from './params-accounts.cjs';
|
|
8
8
|
export * from './params-become-guest.cjs';
|
|
9
9
|
export * from './params-become-host.cjs';
|
|
10
|
-
export * from './params-build-direct-call.cjs';
|
|
11
10
|
export * from './params-calculate-available-by-forward.cjs';
|
|
12
11
|
export * from './params-calculate-available-by-forward-list.cjs';
|
|
13
12
|
export * from './params-call-vme.cjs';
|
|
@@ -20,6 +19,7 @@ export * from './params-create-node.cjs';
|
|
|
20
19
|
export * from './params-create-synth-account.cjs';
|
|
21
20
|
export * from './params-create-token.cjs';
|
|
22
21
|
export * from './params-create-vme.cjs';
|
|
22
|
+
export * from './params-direct-call.cjs';
|
|
23
23
|
export * from './params-download-account-txs.cjs';
|
|
24
24
|
export * from './params-find-duplicate-subscriber.cjs';
|
|
25
25
|
export * from './params-forward-asset-object.cjs';
|
|
@@ -52,7 +52,6 @@ export * from './params-send-raw-transaction.cjs';
|
|
|
52
52
|
export * from './params-set-host.cjs';
|
|
53
53
|
export * from './params-set-import-account-tx.cjs';
|
|
54
54
|
export * from './params-set-reliable-node.cjs';
|
|
55
|
-
export * from './params-submit-direct-call.cjs';
|
|
56
55
|
export * from './params-subscribe-address.cjs';
|
|
57
56
|
export * from './params-transfer.cjs';
|
|
58
57
|
export * from './params-transfer-all-res.cjs';
|
|
@@ -72,7 +71,6 @@ export * from './params-wait-home-tx-change.cjs';
|
|
|
72
71
|
export * from './result-dump-accounts.cjs';
|
|
73
72
|
export * from './round-state-detail.cjs';
|
|
74
73
|
export * from './rpc-bool-result.cjs';
|
|
75
|
-
export * from './rpc-build-direct-call-result.cjs';
|
|
76
74
|
export * from './rpc-calculate-available-by-forward-list-result.cjs';
|
|
77
75
|
export * from './rpc-calculate-available-by-forward-result.cjs';
|
|
78
76
|
export * from './rpc-create-account-result.cjs';
|
|
@@ -7,7 +7,6 @@ export * from './params-account-history.mjs';
|
|
|
7
7
|
export * from './params-accounts.mjs';
|
|
8
8
|
export * from './params-become-guest.mjs';
|
|
9
9
|
export * from './params-become-host.mjs';
|
|
10
|
-
export * from './params-build-direct-call.mjs';
|
|
11
10
|
export * from './params-calculate-available-by-forward.mjs';
|
|
12
11
|
export * from './params-calculate-available-by-forward-list.mjs';
|
|
13
12
|
export * from './params-call-vme.mjs';
|
|
@@ -20,6 +19,7 @@ export * from './params-create-node.mjs';
|
|
|
20
19
|
export * from './params-create-synth-account.mjs';
|
|
21
20
|
export * from './params-create-token.mjs';
|
|
22
21
|
export * from './params-create-vme.mjs';
|
|
22
|
+
export * from './params-direct-call.mjs';
|
|
23
23
|
export * from './params-download-account-txs.mjs';
|
|
24
24
|
export * from './params-find-duplicate-subscriber.mjs';
|
|
25
25
|
export * from './params-forward-asset-object.mjs';
|
|
@@ -52,7 +52,6 @@ export * from './params-send-raw-transaction.mjs';
|
|
|
52
52
|
export * from './params-set-host.mjs';
|
|
53
53
|
export * from './params-set-import-account-tx.mjs';
|
|
54
54
|
export * from './params-set-reliable-node.mjs';
|
|
55
|
-
export * from './params-submit-direct-call.mjs';
|
|
56
55
|
export * from './params-subscribe-address.mjs';
|
|
57
56
|
export * from './params-transfer.mjs';
|
|
58
57
|
export * from './params-transfer-all-res.mjs';
|
|
@@ -72,7 +71,6 @@ export * from './params-wait-home-tx-change.mjs';
|
|
|
72
71
|
export * from './result-dump-accounts.mjs';
|
|
73
72
|
export * from './round-state-detail.mjs';
|
|
74
73
|
export * from './rpc-bool-result.mjs';
|
|
75
|
-
export * from './rpc-build-direct-call-result.mjs';
|
|
76
74
|
export * from './rpc-calculate-available-by-forward-list-result.mjs';
|
|
77
75
|
export * from './rpc-calculate-available-by-forward-result.mjs';
|
|
78
76
|
export * from './rpc-create-account-result.mjs';
|
|
Binary file
|