@xelis/sdk 0.9.9 → 0.9.10
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/cjs/daemon/rpc.js +3 -0
- package/dist/cjs/daemon/types.js +1 -0
- package/dist/cjs/daemon/websocket.js +3 -0
- package/dist/esm/daemon/rpc.js +3 -0
- package/dist/esm/daemon/types.js +1 -0
- package/dist/esm/daemon/websocket.js +3 -0
- package/dist/types/daemon/rpc.d.ts +2 -1
- package/dist/types/daemon/types.d.ts +9 -1
- package/dist/types/daemon/websocket.d.ts +2 -1
- package/dist/types/wallet/rpc.d.ts +2 -2
- package/dist/types/wallet/types.d.ts +0 -7
- package/dist/types/wallet/websocket.d.ts +2 -2
- package/package.json +1 -1
package/dist/cjs/daemon/rpc.js
CHANGED
|
@@ -164,6 +164,9 @@ var RPC = /** @class */ (function (_super) {
|
|
|
164
164
|
RPC.prototype.getMinerWork = function (params) {
|
|
165
165
|
return this.post(types_1.RPCMethod.GetMinerWork, params);
|
|
166
166
|
};
|
|
167
|
+
RPC.prototype.splitAddress = function (params) {
|
|
168
|
+
return this.post(types_1.RPCMethod.SplitAddress, params);
|
|
169
|
+
};
|
|
167
170
|
return RPC;
|
|
168
171
|
}(rpc_1.RPC));
|
|
169
172
|
exports.RPC = RPC;
|
package/dist/cjs/daemon/types.js
CHANGED
|
@@ -63,6 +63,7 @@ var RPCMethod;
|
|
|
63
63
|
RPCMethod["ValidateAddress"] = "validate_address";
|
|
64
64
|
RPCMethod["ExtractKeyFromAddress"] = "extract_key_from_address";
|
|
65
65
|
RPCMethod["GetMinerWork"] = "get_miner_work";
|
|
66
|
+
RPCMethod["SplitAddress"] = "split_address";
|
|
66
67
|
})(RPCMethod = exports.RPCMethod || (exports.RPCMethod = {}));
|
|
67
68
|
var RPCEvent;
|
|
68
69
|
(function (RPCEvent) {
|
|
@@ -247,6 +247,9 @@ var DaemonMethods = /** @class */ (function () {
|
|
|
247
247
|
DaemonMethods.prototype.getMinerWork = function (params) {
|
|
248
248
|
return this.dataCall(types_1.RPCMethod.GetMinerWork, params);
|
|
249
249
|
};
|
|
250
|
+
DaemonMethods.prototype.splitAddress = function (params) {
|
|
251
|
+
return this.dataCall(types_1.RPCMethod.SplitAddress, params);
|
|
252
|
+
};
|
|
250
253
|
return DaemonMethods;
|
|
251
254
|
}());
|
|
252
255
|
exports.DaemonMethods = DaemonMethods;
|
package/dist/esm/daemon/rpc.js
CHANGED
|
@@ -161,6 +161,9 @@ var RPC = /** @class */ (function (_super) {
|
|
|
161
161
|
RPC.prototype.getMinerWork = function (params) {
|
|
162
162
|
return this.post(RPCMethod.GetMinerWork, params);
|
|
163
163
|
};
|
|
164
|
+
RPC.prototype.splitAddress = function (params) {
|
|
165
|
+
return this.post(RPCMethod.SplitAddress, params);
|
|
166
|
+
};
|
|
164
167
|
return RPC;
|
|
165
168
|
}(BaseRPC));
|
|
166
169
|
export { RPC };
|
package/dist/esm/daemon/types.js
CHANGED
|
@@ -60,6 +60,7 @@ export var RPCMethod;
|
|
|
60
60
|
RPCMethod["ValidateAddress"] = "validate_address";
|
|
61
61
|
RPCMethod["ExtractKeyFromAddress"] = "extract_key_from_address";
|
|
62
62
|
RPCMethod["GetMinerWork"] = "get_miner_work";
|
|
63
|
+
RPCMethod["SplitAddress"] = "split_address";
|
|
63
64
|
})(RPCMethod || (RPCMethod = {}));
|
|
64
65
|
export var RPCEvent;
|
|
65
66
|
(function (RPCEvent) {
|
|
@@ -244,6 +244,9 @@ var DaemonMethods = /** @class */ (function () {
|
|
|
244
244
|
DaemonMethods.prototype.getMinerWork = function (params) {
|
|
245
245
|
return this.dataCall(RPCMethod.GetMinerWork, params);
|
|
246
246
|
};
|
|
247
|
+
DaemonMethods.prototype.splitAddress = function (params) {
|
|
248
|
+
return this.dataCall(RPCMethod.SplitAddress, params);
|
|
249
|
+
};
|
|
247
250
|
return DaemonMethods;
|
|
248
251
|
}());
|
|
249
252
|
export { DaemonMethods };
|
|
@@ -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 } 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>>;
|
|
@@ -48,5 +48,6 @@ export declare class RPC extends BaseRPC {
|
|
|
48
48
|
validateAddress(params: ValidateAddressParams): Promise<import("../lib/types").RPCResponse<ValidateAddressResult>>;
|
|
49
49
|
extractKeyFromAddress(params: ExtractKeyFromAddressParams): Promise<import("../lib/types").RPCResponse<string | number[]>>;
|
|
50
50
|
getMinerWork(params: GetMinerWorkParams): Promise<import("../lib/types").RPCResponse<GetMinerWorkResult>>;
|
|
51
|
+
splitAddress(params: SplitAddressParams): Promise<import("../lib/types").RPCResponse<SplitAddressResult>>;
|
|
51
52
|
}
|
|
52
53
|
export default RPC;
|
|
@@ -353,6 +353,13 @@ export interface GetMinerWorkResult {
|
|
|
353
353
|
difficulty: string;
|
|
354
354
|
topoheight: number;
|
|
355
355
|
}
|
|
356
|
+
export interface SplitAddressParams {
|
|
357
|
+
address: string;
|
|
358
|
+
}
|
|
359
|
+
export interface SplitAddressResult {
|
|
360
|
+
address: string;
|
|
361
|
+
integrated_data: string;
|
|
362
|
+
}
|
|
356
363
|
export declare enum RPCMethod {
|
|
357
364
|
GetVersion = "get_version",
|
|
358
365
|
GetInfo = "get_info",
|
|
@@ -400,7 +407,8 @@ export declare enum RPCMethod {
|
|
|
400
407
|
GetDifficulty = "get_difficulty",
|
|
401
408
|
ValidateAddress = "validate_address",
|
|
402
409
|
ExtractKeyFromAddress = "extract_key_from_address",
|
|
403
|
-
GetMinerWork = "get_miner_work"
|
|
410
|
+
GetMinerWork = "get_miner_work",
|
|
411
|
+
SplitAddress = "split_address"
|
|
404
412
|
}
|
|
405
413
|
export declare enum RPCEvent {
|
|
406
414
|
NewBlock = "new_block",
|
|
@@ -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 } 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;
|
|
@@ -66,6 +66,7 @@ export declare class DaemonMethods {
|
|
|
66
66
|
validateAddress(params: ValidateAddressParams): Promise<ValidateAddressResult>;
|
|
67
67
|
extractKeyFromAddress(params: ExtractKeyFromAddressParams): Promise<string | number[]>;
|
|
68
68
|
getMinerWork(params: GetMinerWorkParams): Promise<GetMinerWorkResult>;
|
|
69
|
+
splitAddress(params: SplitAddressParams): Promise<SplitAddressResult>;
|
|
69
70
|
}
|
|
70
71
|
export declare class WS extends BaseWS {
|
|
71
72
|
methods: DaemonMethods;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GetAssetParams, HasBalanceResult } from '../daemon/types';
|
|
2
|
-
import { GetAddressParams,
|
|
1
|
+
import { GetAssetParams, HasBalanceResult, SplitAddressParams, SplitAddressResult } from '../daemon/types';
|
|
2
|
+
import { GetAddressParams, BuildTransactionParams, BuildTransactionResult, ListTransactionParams, Signature, TransactionEntry, RescanParams, SetOnlineModeParams, EstimateFeesParams } from './types';
|
|
3
3
|
import { RPC as BaseRPC } from '../lib/rpc';
|
|
4
4
|
import { RPCResponse } from '../lib/types';
|
|
5
5
|
export declare class RPC extends BaseRPC {
|
|
@@ -2,13 +2,6 @@ import { Transaction } from '../daemon/types';
|
|
|
2
2
|
export interface GetAddressParams {
|
|
3
3
|
integrated_data?: string;
|
|
4
4
|
}
|
|
5
|
-
export interface SplitAddressParams {
|
|
6
|
-
address: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SplitAddressResult {
|
|
9
|
-
address: string;
|
|
10
|
-
integrated_data: string;
|
|
11
|
-
}
|
|
12
5
|
export interface FeeBuilder {
|
|
13
6
|
multiplier?: number;
|
|
14
7
|
value?: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WS as BaseWS } from '../lib/websocket';
|
|
2
2
|
import { MessageEvent } from 'ws';
|
|
3
|
-
import { AssetWithData, GetAssetParams, RPCEventResult } from '../daemon/types';
|
|
4
|
-
import { BuildTransactionParams, BuildTransactionResult, GetAddressParams, ListTransactionParams,
|
|
3
|
+
import { AssetWithData, GetAssetParams, RPCEventResult, SplitAddressParams, SplitAddressResult } from '../daemon/types';
|
|
4
|
+
import { BuildTransactionParams, BuildTransactionResult, GetAddressParams, ListTransactionParams, Signature, RescanParams, SetOnlineModeParams, EstimateFeesParams, TransactionEntry, BalanceChangedResult, NewTopoheightResult, RescanResult } from './types';
|
|
5
5
|
export declare class WalletMethods {
|
|
6
6
|
ws: BaseWS;
|
|
7
7
|
prefix: string;
|
package/package.json
CHANGED