@xelis/sdk 0.9.10 → 0.9.11

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.
@@ -115,7 +115,7 @@ var DaemonMethods = /** @class */ (function () {
115
115
  DaemonMethods.prototype.getHeight = function () {
116
116
  return this.dataCall(types_1.RPCMethod.GetHeight);
117
117
  };
118
- DaemonMethods.prototype.getTopoHeight = function () {
118
+ DaemonMethods.prototype.getTopoheight = function () {
119
119
  return this.dataCall(types_1.RPCMethod.GetTopoheight);
120
120
  };
121
121
  DaemonMethods.prototype.getStableHeight = function () {
@@ -130,7 +130,7 @@ var DaemonMethods = /** @class */ (function () {
130
130
  DaemonMethods.prototype.getBlockTemplate = function (address) {
131
131
  return this.dataCall(types_1.RPCMethod.GetBlockTemplate, { address: address });
132
132
  };
133
- DaemonMethods.prototype.getBlockAtTopoHeight = function (params) {
133
+ DaemonMethods.prototype.getBlockAtTopoheight = function (params) {
134
134
  return this.dataCall(types_1.RPCMethod.GetBlockAtTopoheight, params);
135
135
  };
136
136
  DaemonMethods.prototype.getBlocksAtHeight = function (params) {
@@ -151,7 +151,7 @@ var DaemonMethods = /** @class */ (function () {
151
151
  DaemonMethods.prototype.hasBalance = function (params) {
152
152
  return this.dataCall(types_1.RPCMethod.HasBalance, params);
153
153
  };
154
- DaemonMethods.prototype.getBalanceAtTopoHeight = function (params) {
154
+ DaemonMethods.prototype.getBalanceAtTopoheight = function (params) {
155
155
  return this.dataCall(types_1.RPCMethod.GetBalanceAtTopoheight, params);
156
156
  };
157
157
  DaemonMethods.prototype.getInfo = function () {
@@ -112,7 +112,7 @@ var DaemonMethods = /** @class */ (function () {
112
112
  DaemonMethods.prototype.getHeight = function () {
113
113
  return this.dataCall(RPCMethod.GetHeight);
114
114
  };
115
- DaemonMethods.prototype.getTopoHeight = function () {
115
+ DaemonMethods.prototype.getTopoheight = function () {
116
116
  return this.dataCall(RPCMethod.GetTopoheight);
117
117
  };
118
118
  DaemonMethods.prototype.getStableHeight = function () {
@@ -127,7 +127,7 @@ var DaemonMethods = /** @class */ (function () {
127
127
  DaemonMethods.prototype.getBlockTemplate = function (address) {
128
128
  return this.dataCall(RPCMethod.GetBlockTemplate, { address: address });
129
129
  };
130
- DaemonMethods.prototype.getBlockAtTopoHeight = function (params) {
130
+ DaemonMethods.prototype.getBlockAtTopoheight = function (params) {
131
131
  return this.dataCall(RPCMethod.GetBlockAtTopoheight, params);
132
132
  };
133
133
  DaemonMethods.prototype.getBlocksAtHeight = function (params) {
@@ -148,7 +148,7 @@ var DaemonMethods = /** @class */ (function () {
148
148
  DaemonMethods.prototype.hasBalance = function (params) {
149
149
  return this.dataCall(RPCMethod.HasBalance, params);
150
150
  };
151
- DaemonMethods.prototype.getBalanceAtTopoHeight = function (params) {
151
+ DaemonMethods.prototype.getBalanceAtTopoheight = function (params) {
152
152
  return this.dataCall(RPCMethod.GetBalanceAtTopoheight, params);
153
153
  };
154
154
  DaemonMethods.prototype.getInfo = function () {
@@ -1,4 +1,4 @@
1
- import { Block, TopoHeightRangeParams, GetInfoResult, HeightRangeParams, GetBalanceResult, P2PStatusResult, GetBalanceParams, GetBalanceAtTopoHeightParams, GetAccountsParams, GetBlockAtTopoHeightParams, GetBlockByHashParams, GetBlocksAtHeightParams, GetTopBlockParams, GetNonceResult, GetNonceParams, GetAccountHistoryParams, AccounHistory, DevFee, DiskSize, HasBalanceParams, HasBalanceResult, AssetData, IsTxExecutedInBlockParams, GetAssetParams, GetPeersResult, GetBlockTemplateResult, VersionedBalance, VersionedNonce, GetNonceAtTopoheightParams, HasNonceParams, HasNonceResult, TransactionResponse, IsAccountRegisteredParams, GetMempoolCacheResult, GetDifficultyResult, ValidateAddressParams, ExtractKeyFromAddressParams, SubmitBlockParams, GetMinerWorkParams, GetMinerWorkResult, ValidateAddressResult, GetStableBalanceResult, GetAssetsParams, SplitAddressParams, SplitAddressResult } from './types';
1
+ import { Block, TopoheightRangeParams, GetInfoResult, HeightRangeParams, GetBalanceResult, P2PStatusResult, GetBalanceParams, GetBalanceAtTopoheightParams, GetAccountsParams, GetBlockAtTopoheightParams, GetBlockByHashParams, GetBlocksAtHeightParams, GetTopBlockParams, GetNonceResult, GetNonceParams, GetAccountHistoryParams, AccounHistory, DevFee, DiskSize, HasBalanceParams, HasBalanceResult, AssetData, IsTxExecutedInBlockParams, GetAssetParams, GetPeersResult, GetBlockTemplateResult, VersionedBalance, VersionedNonce, GetNonceAtTopoheightParams, HasNonceParams, HasNonceResult, TransactionResponse, IsAccountRegisteredParams, GetMempoolCacheResult, GetDifficultyResult, ValidateAddressParams, ExtractKeyFromAddressParams, SubmitBlockParams, GetMinerWorkParams, GetMinerWorkResult, ValidateAddressResult, GetStableBalanceResult, GetAssetsParams, SplitAddressParams, SplitAddressResult } from './types';
2
2
  import { RPC as BaseRPC } from '../lib/rpc';
3
3
  export declare class RPC extends BaseRPC {
4
4
  getVersion(): Promise<import("../lib/types").RPCResponse<string>>;
@@ -8,14 +8,14 @@ export declare class RPC extends BaseRPC {
8
8
  getStableTopoheight(): Promise<import("../lib/types").RPCResponse<number>>;
9
9
  getStableBalance(params: GetBalanceParams): Promise<import("../lib/types").RPCResponse<GetStableBalanceResult>>;
10
10
  getBlockTemplate(address: string): Promise<import("../lib/types").RPCResponse<GetBlockTemplateResult>>;
11
- getBlockAtTopoheight(params: GetBlockAtTopoHeightParams): Promise<import("../lib/types").RPCResponse<Block>>;
11
+ getBlockAtTopoheight(params: GetBlockAtTopoheightParams): Promise<import("../lib/types").RPCResponse<Block>>;
12
12
  getBlocksAtHeight(params: GetBlocksAtHeightParams): Promise<import("../lib/types").RPCResponse<Block[]>>;
13
13
  getBlockByHash(params: GetBlockByHashParams): Promise<import("../lib/types").RPCResponse<Block>>;
14
14
  getTopBlock(params?: GetTopBlockParams): Promise<import("../lib/types").RPCResponse<Block>>;
15
15
  submitBlock(params: SubmitBlockParams): Promise<import("../lib/types").RPCResponse<boolean>>;
16
16
  getBalance(params: GetBalanceParams): Promise<import("../lib/types").RPCResponse<GetBalanceResult>>;
17
17
  hasBalance(params: HasBalanceParams): Promise<import("../lib/types").RPCResponse<HasBalanceResult>>;
18
- getBalanceAtTopoheight(params: GetBalanceAtTopoHeightParams): Promise<import("../lib/types").RPCResponse<VersionedBalance>>;
18
+ getBalanceAtTopoheight(params: GetBalanceAtTopoheightParams): Promise<import("../lib/types").RPCResponse<VersionedBalance>>;
19
19
  getInfo(): Promise<import("../lib/types").RPCResponse<GetInfoResult>>;
20
20
  getNonce(params: GetNonceParams): Promise<import("../lib/types").RPCResponse<GetNonceResult>>;
21
21
  hasNonce(params: HasNonceParams): Promise<import("../lib/types").RPCResponse<HasNonceResult>>;
@@ -31,8 +31,8 @@ export declare class RPC extends BaseRPC {
31
31
  getPeers(): Promise<import("../lib/types").RPCResponse<GetPeersResult>>;
32
32
  getMemPool(): Promise<import("../lib/types").RPCResponse<TransactionResponse[]>>;
33
33
  getTips(): Promise<import("../lib/types").RPCResponse<string[]>>;
34
- getDAGOrder(params?: TopoHeightRangeParams): Promise<import("../lib/types").RPCResponse<string[]>>;
35
- getBlocksRangeByTopoheight(params: TopoHeightRangeParams): Promise<import("../lib/types").RPCResponse<Block[]>>;
34
+ getDAGOrder(params?: TopoheightRangeParams): Promise<import("../lib/types").RPCResponse<string[]>>;
35
+ getBlocksRangeByTopoheight(params: TopoheightRangeParams): Promise<import("../lib/types").RPCResponse<Block[]>>;
36
36
  getBlocksRangeByHeight(params: HeightRangeParams): Promise<import("../lib/types").RPCResponse<Block[]>>;
37
37
  getTransactions(txHashes: string[]): Promise<import("../lib/types").RPCResponse<TransactionResponse[]>>;
38
38
  getAccountHistory(params: GetAccountHistoryParams): Promise<import("../lib/types").RPCResponse<AccounHistory[]>>;
@@ -40,7 +40,7 @@ export interface GetBalanceParams {
40
40
  address: string;
41
41
  asset: string;
42
42
  }
43
- export interface GetBalanceAtTopoHeightParams {
43
+ export interface GetBalanceAtTopoheightParams {
44
44
  address: string;
45
45
  asset: string;
46
46
  topoheight: number;
@@ -93,7 +93,7 @@ export interface P2PStatusResult {
93
93
  median_topoheight: number;
94
94
  max_peers: number;
95
95
  }
96
- export interface TopoHeightRangeParams {
96
+ export interface TopoheightRangeParams {
97
97
  start_topoheight?: number;
98
98
  end_topoheight?: number;
99
99
  }
@@ -209,7 +209,7 @@ export interface GetAccountsParams {
209
209
  minimum_topoheight?: number;
210
210
  maximum_topoheight?: number;
211
211
  }
212
- export interface GetBlockAtTopoHeightParams {
212
+ export interface GetBlockAtTopoheightParams {
213
213
  topoheight: number;
214
214
  include_txs?: boolean;
215
215
  }
@@ -1,5 +1,5 @@
1
1
  import { MessageEvent } from 'ws';
2
- import { Block, GetInfoResult, GetPeersResult, RPCEventResult, TopoHeightRangeParams, P2PStatusResult, GetBalanceAtTopoHeightParams, GetBalanceResult, HeightRangeParams, BlockOrdered, GetBalanceParams, GetAccountsParams, GetBlockAtTopoHeightParams, GetBlockByHashParams, GetBlocksAtHeightParams, GetTopBlockParams, GetNonceParams, GetNonceResult, GetAccountHistoryParams, AccounHistory, Peer, PeerPeerListUpdated, PeerPeerDisconnected, DevFee, DiskSize, AssetWithData, AssetData, GetAssetParams, HasBalanceParams, HasBalanceResult, IsTxExecutedInBlockParams, BlockOrphaned, VersionedBalance, StableHeightChanged, HasNonceResult, HasNonceParams, TransactionResponse, IsAccountRegisteredParams, GetMempoolCacheResult, GetDifficultyResult, ValidateAddressParams, ExtractKeyFromAddressParams, SubmitBlockParams, GetMinerWorkParams, GetMinerWorkResult, ValidateAddressResult, TransactionExecuted, GetStableBalanceResult, GetAssetsParams, SplitAddressParams, SplitAddressResult } from './types';
2
+ import { Block, GetInfoResult, GetPeersResult, RPCEventResult, TopoheightRangeParams, P2PStatusResult, GetBalanceAtTopoheightParams, GetBalanceResult, HeightRangeParams, BlockOrdered, GetBalanceParams, GetAccountsParams, GetBlockAtTopoheightParams, GetBlockByHashParams, GetBlocksAtHeightParams, GetTopBlockParams, GetNonceParams, GetNonceResult, GetAccountHistoryParams, AccounHistory, Peer, PeerPeerListUpdated, PeerPeerDisconnected, DevFee, DiskSize, AssetWithData, AssetData, GetAssetParams, HasBalanceParams, HasBalanceResult, IsTxExecutedInBlockParams, BlockOrphaned, VersionedBalance, StableHeightChanged, HasNonceResult, HasNonceParams, TransactionResponse, IsAccountRegisteredParams, GetMempoolCacheResult, GetDifficultyResult, ValidateAddressParams, ExtractKeyFromAddressParams, SubmitBlockParams, GetMinerWorkParams, GetMinerWorkResult, ValidateAddressResult, TransactionExecuted, GetStableBalanceResult, GetAssetsParams, SplitAddressParams, SplitAddressResult } from './types';
3
3
  import { WS as BaseWS } from '../lib/websocket';
4
4
  export declare class DaemonMethods {
5
5
  ws: BaseWS;
@@ -22,19 +22,19 @@ export declare class DaemonMethods {
22
22
  onStableHeightChanged(onData: (msgEvent: MessageEvent, data?: StableHeightChanged & RPCEventResult, err?: Error) => void): Promise<() => Promise<void>>;
23
23
  getVersion(): Promise<string>;
24
24
  getHeight(): Promise<number>;
25
- getTopoHeight(): Promise<number>;
25
+ getTopoheight(): Promise<number>;
26
26
  getStableHeight(): Promise<number>;
27
27
  getStableTopoheight(): Promise<number>;
28
28
  getStableBalance(params: GetBalanceParams): Promise<GetStableBalanceResult>;
29
29
  getBlockTemplate(address: string): Promise<string>;
30
- getBlockAtTopoHeight(params: GetBlockAtTopoHeightParams): Promise<Block>;
30
+ getBlockAtTopoheight(params: GetBlockAtTopoheightParams): Promise<Block>;
31
31
  getBlocksAtHeight(params: GetBlocksAtHeightParams): Promise<Block[]>;
32
32
  getBlockByHash(params: GetBlockByHashParams): Promise<Block>;
33
33
  getTopBlock(params: GetTopBlockParams): Promise<Block>;
34
34
  submitBlock(params: SubmitBlockParams): Promise<boolean>;
35
35
  getBalance(params: GetBalanceParams): Promise<GetBalanceResult>;
36
36
  hasBalance(params: HasBalanceParams): Promise<HasBalanceResult>;
37
- getBalanceAtTopoHeight(params: GetBalanceAtTopoHeightParams): Promise<VersionedBalance>;
37
+ getBalanceAtTopoheight(params: GetBalanceAtTopoheightParams): Promise<VersionedBalance>;
38
38
  getInfo(): Promise<GetInfoResult>;
39
39
  getNonce(params: GetNonceParams): Promise<GetNonceResult>;
40
40
  hasNonce(params: HasNonceParams): Promise<HasNonceResult>;
@@ -49,8 +49,8 @@ export declare class DaemonMethods {
49
49
  getPeers(): Promise<GetPeersResult>;
50
50
  getMemPool(): Promise<TransactionResponse[]>;
51
51
  getTips(): Promise<string[]>;
52
- getDAGOrder(params: TopoHeightRangeParams): Promise<string[]>;
53
- getBlocksRangeByTopoheight(params: TopoHeightRangeParams): Promise<Block[]>;
52
+ getDAGOrder(params: TopoheightRangeParams): Promise<string[]>;
53
+ getBlocksRangeByTopoheight(params: TopoheightRangeParams): Promise<Block[]>;
54
54
  getBlocksRangeByHeight(params: HeightRangeParams): Promise<Block[]>;
55
55
  getTransactions(txHashes: string[]): Promise<TransactionResponse[]>;
56
56
  getAccountHistory(params: GetAccountHistoryParams): Promise<AccounHistory[]>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.9.10",
2
+ "version": "0.9.11",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {