@locuschain/lib 0.2.1 → 0.2.2

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.
Files changed (34) hide show
  1. package/dist/autogen/actions/wallet/freezeAccount.d.mts +4 -0
  2. package/dist/autogen/actions/wallet/index.d.mts +1 -0
  3. package/dist/autogen/index.amd.js +2 -1
  4. package/dist/autogen/index.cjs.cjs +2 -1
  5. package/dist/autogen/index.esm.js +2 -2
  6. package/dist/autogen/rpc-api-spec.d.mts +2 -0
  7. package/dist/autogen/types/rpc/index.d.mts +1 -0
  8. package/dist/autogen/types/rpc/params-freeze-account.d.mts +5 -0
  9. package/dist/autogen/types/rpc/rpc-get-account-detail-result.d.mts +1 -0
  10. package/dist/autogen/walletActions.d.mts +2 -0
  11. package/dist/autogen/wasm/lclib.wasm +0 -0
  12. package/dist/chunks/{debugWalletActions-D5-Ds7Hl.js → debugWalletActions-B96f4kZc.js} +11 -1
  13. package/dist/chunks/{debugWalletActions-BDz-h2tl.js → debugWalletActions-BfX1doiz.js} +11 -0
  14. package/dist/chunks/{debugWalletActions-6qjkZVq9.cjs → debugWalletActions-iCZ1H6xc.cjs} +11 -0
  15. package/dist/chunks/ethers.esm.min-BBQs5Urm.cjs +10217 -0
  16. package/dist/chunks/ethers.esm.min-CiOJmj8w.js +10215 -0
  17. package/dist/chunks/ethers.esm.min-wXex1HuX.js +10217 -0
  18. package/dist/clients/createLocusWalletClient.d.mts +1 -0
  19. package/dist/clients/index.amd.js +1 -1
  20. package/dist/clients/index.cjs.cjs +1 -1
  21. package/dist/clients/index.esm.js +1 -1
  22. package/dist/contracts/index.amd.js +2 -10214
  23. package/dist/contracts/index.cjs.cjs +2 -10213
  24. package/dist/contracts/index.esm.js +1 -10212
  25. package/dist/index.amd.js +1 -1
  26. package/dist/index.cjs.cjs +2 -1
  27. package/dist/index.esm.js +2 -1
  28. package/dist/utils/abi.d.mts +88 -0
  29. package/dist/utils/index.amd.js +146 -1
  30. package/dist/utils/index.cjs.cjs +146 -0
  31. package/dist/utils/index.d.cts +1 -0
  32. package/dist/utils/index.d.mts +1 -0
  33. package/dist/utils/index.esm.js +140 -3
  34. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import { ParamsFreezeAccount } from '../../types/rpc/params-freeze-account.mjs';
2
+ import { RpcCreateTxResult } from '../../types/rpc/rpc-create-tx-result.mjs';
3
+ import type { WalletClient } from '../../../clients/types.mjs';
4
+ export declare function freezeAccount(client: WalletClient, params: ParamsFreezeAccount): Promise<RpcCreateTxResult>;
@@ -7,6 +7,7 @@ export * from './closeAccount.mjs';
7
7
  export * from './createAssetObject.mjs';
8
8
  export * from './createToken.mjs';
9
9
  export * from './createVme.mjs';
10
+ export * from './freezeAccount.mjs';
10
11
  export * from './lockStake.mjs';
11
12
  export * from './openAccount.mjs';
12
13
  export * from './postData.mjs';
@@ -1,4 +1,4 @@
1
- define(['exports', '../chunks/wasm-CkFW222S', '../chunks/debugWalletActions-BDz-h2tl', '../chunks/lclib-Bv86gksL', '../chunks/tslib.es6-D29rxPkW', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8'], (function (exports, wasm, debugWalletActions, lclib, tslib_es6, rpc, base, account) { 'use strict';
1
+ define(['exports', '../chunks/wasm-CkFW222S', '../chunks/debugWalletActions-BfX1doiz', '../chunks/lclib-Bv86gksL', '../chunks/tslib.es6-D29rxPkW', '../chunks/rpc-C4n7t9y0', '../chunks/base-B_kRRfsf', '../chunks/account-BSrvZ7S8'], (function (exports, wasm, debugWalletActions, lclib, tslib_es6, rpc, base, account) { 'use strict';
2
2
 
3
3
  // Automatically generated file. DO NOT EDIT.
4
4
 
@@ -103,6 +103,7 @@ define(['exports', '../chunks/wasm-CkFW222S', '../chunks/debugWalletActions-BDz-
103
103
  exports.downloadAccountTxs = debugWalletActions.downloadAccountTxs;
104
104
  exports.echo = debugWalletActions.echo$1;
105
105
  exports.findDuplicateSubscriber = debugWalletActions.findDuplicateSubscriber;
106
+ exports.freezeAccount = debugWalletActions.freezeAccount;
106
107
  exports.generateLatestStoredDataProof = debugWalletActions.generateLatestStoredDataProof;
107
108
  exports.getAccountAssetList = debugWalletActions.getAccountAssetList;
108
109
  exports.getAccountAssetObject = debugWalletActions.getAccountAssetObject;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var wasm = require('../chunks/wasm-BYOKRR31.cjs');
4
- var debugWalletActions = require('../chunks/debugWalletActions-6qjkZVq9.cjs');
4
+ var debugWalletActions = require('../chunks/debugWalletActions-iCZ1H6xc.cjs');
5
5
  require('../chunks/lclib-rGyKpClJ.cjs');
6
6
  require('../chunks/tslib.es6-Cfi3-HmA.cjs');
7
7
  require('../chunks/rpc-DwWIkUva.cjs');
@@ -111,6 +111,7 @@ exports.debugWalletActions = debugWalletActions.debugWalletActions;
111
111
  exports.downloadAccountTxs = debugWalletActions.downloadAccountTxs;
112
112
  exports.echo = debugWalletActions.echo$1;
113
113
  exports.findDuplicateSubscriber = debugWalletActions.findDuplicateSubscriber;
114
+ exports.freezeAccount = debugWalletActions.freezeAccount;
114
115
  exports.generateLatestStoredDataProof = debugWalletActions.generateLatestStoredDataProof;
115
116
  exports.getAccountAssetList = debugWalletActions.getAccountAssetList;
116
117
  exports.getAccountAssetObject = debugWalletActions.getAccountAssetObject;
@@ -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 decodeTxs, y as deriveKeysFromMnemonic, z as deriveKeysFromMnemonicAndPath, A as disCompileCoreScript, B as encodeTxCurrency, C as encodeTxNumber, D as generateMnemonic, E as generateMnemonicBySeed, F as getDefFromCoreScript, G as getHomeShard, H as getLibraryVersions, I as gzipAndEncode, J as hash, K as isGrantConsumingTx, l as loadMasterKeystore, a as loadNormalKeystore, L as makeCurrency, M as sign, N as signByMasterKey, O as signKeyBind, P as testCoreScript, Q as verify, R as verifyByMasterKey, S as verifyMerkleProof, T as verifyTx } from '../chunks/wasm-CLXJDrJA.js';
2
- import { a as allHeights, b as balanceGrantList, c as balanceList, d as callContract, e as createAccount, f as createContract, g as createNode, h as createSynthAccount, i as dumpAllAccounts, j as echo, k as gameChainCmd, l as getAccountsBalances, m as getAccountsHeights, n as getContractLog, o as getGuestsInfo, p as getHomeShard, q as getImportAccount, r as getImportAccountLog, s as getKeys, t as getNodeBlocks, u as getPeerPool, v as getPeersInfo, w as importAccount, x as initReliableNodes, y as noArgsRets, z as nodeCmd, A as postDataToSynthAccount, B as removeHoldTxs, C as requestVme, D as sendRawTransaction, E as setImportAccountTx, F as setReliableNode, G as viewContract } from '../chunks/debugWalletActions-D5-Ds7Hl.js';
3
- export { H as acceptScript, I as accountHeightsToDownload, J as accountHeightsToUpload, K as becomeGuest, L as becomeHost, M as calculateSpentByExpress, N as changeKey, O as changeVkey, P as clientMessage, Q as closeAccount, R as createAssetObject, S as createToken, T as createVme, U as debugPublicActions, V as debugWalletActions, W as downloadAccountTxs, X as echo, Y as findDuplicateSubscriber, Z as generateLatestStoredDataProof, _ as getAccountAssetList, $ as getAccountAssetObject, a0 as getAccountDetail, a1 as getAccountHistory, a2 as getAccountTokenList, a3 as getConciseNodeStatus, a4 as getGenesisAccount, a5 as getIdentityProof, a6 as getInactiveTxList, a7 as getMontInfoList, a8 as getNodeStatus, a9 as getOwnerBalance, aa as getRoundState, ab as getRoundStatesList, ac as getShardOfAccount, ad as getSyncState, ae as getTx, af as getWorldRoundState, ag as getWorldRoundStatesList, ah as hasSystemToken, ai as lockStake, aj as makeTxProof, ak as openAccount, al as postData, am as provideScript, an as publicActions, ao as queryAddress, ap as readTxListWitness, aq as requestDataTrade, ar as setHost, as as subscribeAddress, at as transferAssetObject, au as transferCoin, av as transferCoinExpress, aw as transferToken, ax as unlockStake, ay as uploadAccountTxs, az as verifyAndSignChallenge, aA as verifyIdentityProof, aB as verifyLatestStoredDataProof, aC as verifyTxListWitness, aD as walletActions } from '../chunks/debugWalletActions-D5-Ds7Hl.js';
2
+ import { a as allHeights, b as balanceGrantList, c as balanceList, d as callContract, e as createAccount, f as createContract, g as createNode, h as createSynthAccount, i as dumpAllAccounts, j as echo, k as gameChainCmd, l as getAccountsBalances, m as getAccountsHeights, n as getContractLog, o as getGuestsInfo, p as getHomeShard, q as getImportAccount, r as getImportAccountLog, s as getKeys, t as getNodeBlocks, u as getPeerPool, v as getPeersInfo, w as importAccount, x as initReliableNodes, y as noArgsRets, z as nodeCmd, A as postDataToSynthAccount, B as removeHoldTxs, C as requestVme, D as sendRawTransaction, E as setImportAccountTx, F as setReliableNode, G as viewContract } from '../chunks/debugWalletActions-B96f4kZc.js';
3
+ export { H as acceptScript, I as accountHeightsToDownload, J as accountHeightsToUpload, K as becomeGuest, L as becomeHost, M as calculateSpentByExpress, N as changeKey, O as changeVkey, P as clientMessage, Q as closeAccount, R as createAssetObject, S as createToken, T as createVme, U as debugPublicActions, V as debugWalletActions, W as downloadAccountTxs, X as echo, Y as findDuplicateSubscriber, Z as freezeAccount, _ as generateLatestStoredDataProof, $ as getAccountAssetList, a0 as getAccountAssetObject, a1 as getAccountDetail, a2 as getAccountHistory, a3 as getAccountTokenList, a4 as getConciseNodeStatus, a5 as getGenesisAccount, a6 as getIdentityProof, a7 as getInactiveTxList, a8 as getMontInfoList, a9 as getNodeStatus, aa as getOwnerBalance, ab as getRoundState, ac as getRoundStatesList, ad as getShardOfAccount, ae as getSyncState, af as getTx, ag as getWorldRoundState, ah as getWorldRoundStatesList, ai as hasSystemToken, aj as lockStake, ak as makeTxProof, al as openAccount, am as postData, an as provideScript, ao as publicActions, ap as queryAddress, aq as readTxListWitness, ar as requestDataTrade, as as setHost, at as subscribeAddress, au as transferAssetObject, av as transferCoin, aw as transferCoinExpress, ax as transferToken, ay as unlockStake, az as uploadAccountTxs, aA as verifyAndSignChallenge, aB as verifyIdentityProof, aC as verifyLatestStoredDataProof, aD as verifyTxListWitness, aE as walletActions } from '../chunks/debugWalletActions-B96f4kZc.js';
4
4
  import '../chunks/lclib-j2x9RvDY.js';
5
5
  import '../chunks/tslib.es6-WQS2tr1v.js';
6
6
  import '../chunks/rpc-BlPk44QH.js';
@@ -31,6 +31,7 @@ import { ParamsCreateToken } from './types/rpc/params-create-token.mjs';
31
31
  import { ParamsCreateVme } from './types/rpc/params-create-vme.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
+ import { ParamsFreezeAccount } from './types/rpc/params-freeze-account.mjs';
34
35
  import { ParamsGameChainCmd } from './types/rpc/params-game-chain-cmd.mjs';
35
36
  import { ParamsGenerateLatestStoredDataProof } from './types/rpc/params-generate-latest-stored-data-proof.mjs';
36
37
  import { ParamsGetAssetList } from './types/rpc/params-get-asset-list.mjs';
@@ -164,6 +165,7 @@ export interface RpcApiSpec {
164
165
  locus_downloadAccountTxs(param: ParamsDownloadAccountTxs): Promise<OutputDownloadAccountTxs>;
165
166
  locus_echo(str: string): Promise<string>;
166
167
  locus_findDuplicateSubscriber(params: ParamsFindDuplicateSubscriber): Promise<RpcFindDuplicateSubscriberResult>;
168
+ locus_freezeAccount(params: ParamsFreezeAccount): Promise<RpcCreateTxResult>;
167
169
  locus_generateLatestStoredDataProof(params: ParamsGenerateLatestStoredDataProof): Promise<RpcGenerateLatestStoredDataProofResult>;
168
170
  locus_getAccountAssetList(params: ParamsGetAssetList): Promise<RpcGetAccountAssetListResult>;
169
171
  locus_getAccountAssetObject(params: ParamsGetAssetObjects): Promise<RpcGetAccountAssetObjectResult>;
@@ -21,6 +21,7 @@ export * from './params-create-token.mjs';
21
21
  export * from './params-create-vme.mjs';
22
22
  export * from './params-download-account-txs.mjs';
23
23
  export * from './params-find-duplicate-subscriber.mjs';
24
+ export * from './params-freeze-account.mjs';
24
25
  export * from './params-game-chain-cmd.mjs';
25
26
  export * from './params-generate-latest-stored-data-proof.mjs';
26
27
  export * from './params-get-asset-list.mjs';
@@ -0,0 +1,5 @@
1
+ export type ParamsFreezeAccount = {
2
+ account: string;
3
+ sign: string;
4
+ signedHeight: number;
5
+ };
@@ -7,4 +7,5 @@ export type RpcGetAccountDetailResult = {
7
7
  publicKey: string;
8
8
  txChainHeight: number;
9
9
  txLink: string;
10
+ frozen: boolean;
10
11
  };
@@ -8,6 +8,7 @@ import type { ParamsCloseAccount } from './types/rpc/params-close-account.mjs';
8
8
  import type { ParamsCreateAssetObject } from './types/rpc/params-create-asset-object.mjs';
9
9
  import type { ParamsCreateToken } from './types/rpc/params-create-token.mjs';
10
10
  import type { ParamsCreateVme } from './types/rpc/params-create-vme.mjs';
11
+ import type { ParamsFreezeAccount } from './types/rpc/params-freeze-account.mjs';
11
12
  import type { ParamsLockStake } from './types/rpc/params-lock-stake.mjs';
12
13
  import type { ParamsOpenAccount } from './types/rpc/params-open-account.mjs';
13
14
  import type { ParamsProvideScript } from './types/rpc/params-provide-script.mjs';
@@ -28,6 +29,7 @@ export declare const walletActions: (client: WalletClient) => {
28
29
  createAssetObject: (param: ParamsCreateAssetObject) => Promise<import("../index.mjs").RpcCreateTxResult>;
29
30
  createToken: (param: ParamsCreateToken) => Promise<import("../index.mjs").RpcCreateTxResult>;
30
31
  createVme: (param: ParamsCreateVme) => Promise<import("../index.mjs").RpcCreateTxResult>;
32
+ freezeAccount: (params: ParamsFreezeAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
31
33
  lockStake: (params: ParamsLockStake) => Promise<import("../index.mjs").RpcCreateTxResult>;
32
34
  openAccount: (param: ParamsOpenAccount) => Promise<import("../index.mjs").RpcCreateTxResult>;
33
35
  postData: (params: InputParamsDataTransfer) => Promise<import("../index.mjs").RpcCreateTxResult>;
Binary file
@@ -504,6 +504,15 @@ function createVme(client, param) {
504
504
  });
505
505
  }
506
506
 
507
+ // Automatically generated file. DO NOT EDIT.
508
+ function freezeAccount(client, params) {
509
+ return __awaiter(this, void 0, void 0, function* () {
510
+ const prepared = yield _prepareTransaction(client, { method: 'locus_freezeAccount', params: [params] });
511
+ const signed = yield _signLocusTransaction(client.account, prepared);
512
+ return _sendPreparedTransaction(client, signed);
513
+ });
514
+ }
515
+
507
516
  // Automatically generated file. DO NOT EDIT.
508
517
  function lockStake(client, params) {
509
518
  return __awaiter(this, void 0, void 0, function* () {
@@ -605,6 +614,7 @@ const walletActions = (client) => ({
605
614
  createAssetObject: (param) => createAssetObject(client, param),
606
615
  createToken: (param) => createToken(client, param),
607
616
  createVme: (param) => createVme(client, param),
617
+ freezeAccount: (params) => freezeAccount(client, params),
608
618
  lockStake: (params) => lockStake(client, params),
609
619
  openAccount: (param) => openAccount(client, param),
610
620
  postData: (params) => postData(client, params),
@@ -897,4 +907,4 @@ const debugWalletActions = (client) => ({
897
907
  postDataToSynthAccount: (param) => postDataToSynthAccount(client, param),
898
908
  });
899
909
 
900
- export { getAccountAssetObject as $, postDataToSynthAccount as A, removeHoldTxs as B, requestVme as C, sendRawTransaction as D, setImportAccountTx as E, setReliableNode as F, viewContract as G, acceptScript as H, accountHeightsToDownload as I, accountHeightsToUpload as J, becomeGuest as K, becomeHost as L, calculateSpentByExpress as M, changeKey as N, changeVkey as O, clientMessage as P, closeAccount as Q, createAssetObject as R, createToken as S, createVme as T, debugPublicActions as U, debugWalletActions as V, downloadAccountTxs as W, echo$1 as X, findDuplicateSubscriber as Y, generateLatestStoredDataProof as Z, getAccountAssetList as _, allHeights as a, getAccountDetail as a0, getAccountHistory as a1, getAccountTokenList as a2, getConciseNodeStatus as a3, getGenesisAccount as a4, getIdentityProof as a5, getInactiveTxList as a6, getMontInfoList as a7, getNodeStatus as a8, getOwnerBalance as a9, verifyIdentityProof as aA, verifyLatestStoredDataProof as aB, verifyTxListWitness as aC, walletActions as aD, getRoundState as aa, getRoundStatesList as ab, getShardOfAccount as ac, getSyncState as ad, getTx as ae, getWorldRoundState as af, getWorldRoundStatesList as ag, hasSystemToken as ah, lockStake as ai, makeTxProof as aj, openAccount as ak, postData as al, provideScript as am, publicActions as an, queryAddress as ao, readTxListWitness as ap, requestDataTrade as aq, setHost as ar, subscribeAddress as as, transferAssetObject as at, transferCoin as au, transferCoinExpress as av, transferToken as aw, unlockStake as ax, uploadAccountTxs as ay, verifyAndSignChallenge as az, balanceGrantList as b, balanceList as c, callContract as d, createAccount as e, createContract as f, createNode as g, createSynthAccount as h, dumpAllAccounts as i, echo as j, gameChainCmd as k, getAccountsBalances as l, getAccountsHeights as m, getContractLog as n, getGuestsInfo as o, getHomeShard as p, getImportAccount as q, getImportAccountLog as r, getKeys as s, getNodeBlocks as t, getPeerPool as u, getPeersInfo as v, importAccount as w, initReliableNodes as x, noArgsRets as y, nodeCmd as z };
910
+ export { getAccountAssetList as $, postDataToSynthAccount as A, removeHoldTxs as B, requestVme as C, sendRawTransaction as D, setImportAccountTx as E, setReliableNode as F, viewContract as G, acceptScript as H, accountHeightsToDownload as I, accountHeightsToUpload as J, becomeGuest as K, becomeHost as L, calculateSpentByExpress as M, changeKey as N, changeVkey as O, clientMessage as P, closeAccount as Q, createAssetObject as R, createToken as S, createVme as T, debugPublicActions as U, debugWalletActions as V, downloadAccountTxs as W, echo$1 as X, findDuplicateSubscriber as Y, freezeAccount as Z, generateLatestStoredDataProof as _, allHeights as a, getAccountAssetObject as a0, getAccountDetail as a1, getAccountHistory as a2, getAccountTokenList as a3, getConciseNodeStatus as a4, getGenesisAccount as a5, getIdentityProof as a6, getInactiveTxList as a7, getMontInfoList as a8, getNodeStatus as a9, verifyAndSignChallenge as aA, verifyIdentityProof as aB, verifyLatestStoredDataProof as aC, verifyTxListWitness as aD, walletActions as aE, getOwnerBalance as aa, getRoundState as ab, getRoundStatesList as ac, getShardOfAccount as ad, getSyncState as ae, getTx as af, getWorldRoundState as ag, getWorldRoundStatesList as ah, hasSystemToken as ai, lockStake as aj, makeTxProof as ak, openAccount as al, postData as am, provideScript as an, publicActions as ao, queryAddress as ap, readTxListWitness as aq, requestDataTrade as ar, setHost as as, subscribeAddress as at, transferAssetObject as au, transferCoin as av, transferCoinExpress as aw, transferToken as ax, unlockStake as ay, uploadAccountTxs as az, balanceGrantList as b, balanceList as c, callContract as d, createAccount as e, createContract as f, createNode as g, createSynthAccount as h, dumpAllAccounts as i, echo as j, gameChainCmd as k, getAccountsBalances as l, getAccountsHeights as m, getContractLog as n, getGuestsInfo as o, getHomeShard as p, getImportAccount as q, getImportAccountLog as r, getKeys as s, getNodeBlocks as t, getPeerPool as u, getPeersInfo as v, importAccount as w, initReliableNodes as x, noArgsRets as y, nodeCmd as z };
@@ -502,6 +502,15 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
502
502
  });
503
503
  }
504
504
 
505
+ // Automatically generated file. DO NOT EDIT.
506
+ function freezeAccount(client, params) {
507
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
508
+ const prepared = yield _prepareTransaction(client, { method: 'locus_freezeAccount', params: [params] });
509
+ const signed = yield _signLocusTransaction(client.account, prepared);
510
+ return _sendPreparedTransaction(client, signed);
511
+ });
512
+ }
513
+
505
514
  // Automatically generated file. DO NOT EDIT.
506
515
  function lockStake(client, params) {
507
516
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
@@ -603,6 +612,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
603
612
  createAssetObject: (param) => createAssetObject(client, param),
604
613
  createToken: (param) => createToken(client, param),
605
614
  createVme: (param) => createVme(client, param),
615
+ freezeAccount: (params) => freezeAccount(client, params),
606
616
  lockStake: (params) => lockStake(client, params),
607
617
  openAccount: (param) => openAccount(client, param),
608
618
  postData: (params) => postData(client, params),
@@ -923,6 +933,7 @@ define(['exports', './tslib.es6-D29rxPkW', './rpc-C4n7t9y0', './account-BSrvZ7S8
923
933
  exports.echo = echo;
924
934
  exports.echo$1 = echo$1;
925
935
  exports.findDuplicateSubscriber = findDuplicateSubscriber;
936
+ exports.freezeAccount = freezeAccount;
926
937
  exports.gameChainCmd = gameChainCmd;
927
938
  exports.generateLatestStoredDataProof = generateLatestStoredDataProof;
928
939
  exports.getAccountAssetList = getAccountAssetList;
@@ -506,6 +506,15 @@ function createVme(client, param) {
506
506
  });
507
507
  }
508
508
 
509
+ // Automatically generated file. DO NOT EDIT.
510
+ function freezeAccount(client, params) {
511
+ return tslib_es6.__awaiter(this, void 0, void 0, function* () {
512
+ const prepared = yield _prepareTransaction(client, { method: 'locus_freezeAccount', params: [params] });
513
+ const signed = yield _signLocusTransaction(client.account, prepared);
514
+ return _sendPreparedTransaction(client, signed);
515
+ });
516
+ }
517
+
509
518
  // Automatically generated file. DO NOT EDIT.
510
519
  function lockStake(client, params) {
511
520
  return tslib_es6.__awaiter(this, void 0, void 0, function* () {
@@ -607,6 +616,7 @@ const walletActions = (client) => ({
607
616
  createAssetObject: (param) => createAssetObject(client, param),
608
617
  createToken: (param) => createToken(client, param),
609
618
  createVme: (param) => createVme(client, param),
619
+ freezeAccount: (params) => freezeAccount(client, params),
610
620
  lockStake: (params) => lockStake(client, params),
611
621
  openAccount: (param) => openAccount(client, param),
612
622
  postData: (params) => postData(client, params),
@@ -927,6 +937,7 @@ exports.dumpAllAccounts = dumpAllAccounts;
927
937
  exports.echo = echo;
928
938
  exports.echo$1 = echo$1;
929
939
  exports.findDuplicateSubscriber = findDuplicateSubscriber;
940
+ exports.freezeAccount = freezeAccount;
930
941
  exports.gameChainCmd = gameChainCmd;
931
942
  exports.generateLatestStoredDataProof = generateLatestStoredDataProof;
932
943
  exports.getAccountAssetList = getAccountAssetList;