@xelis/sdk 0.8.2 → 0.8.4
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 +1 -0
- package/dist/types/daemon/types.d.ts +2 -1
- package/dist/types/daemon/websocket.d.ts +1 -0
- package/package.json +3 -2
package/dist/cjs/daemon/rpc.js
CHANGED
|
@@ -137,6 +137,9 @@ var RPC = /** @class */ (function (_super) {
|
|
|
137
137
|
RPC.prototype.getSizeOnDisk = function () {
|
|
138
138
|
return this.post(types_js_1.RPCMethod.GetSizeOnDisk);
|
|
139
139
|
};
|
|
140
|
+
RPC.prototype.getAccountRegistrationTopoheight = function (address) {
|
|
141
|
+
return this.post(types_js_1.RPCMethod.GetAccountRegistrationTopoheight, { address: address });
|
|
142
|
+
};
|
|
140
143
|
return RPC;
|
|
141
144
|
}(rpc_js_1.RPC));
|
|
142
145
|
exports.RPC = RPC;
|
package/dist/cjs/daemon/types.js
CHANGED
|
@@ -54,6 +54,7 @@ var RPCMethod;
|
|
|
54
54
|
RPCMethod["GetDevFeeThresholds"] = "get_dev_fee_thresholds";
|
|
55
55
|
RPCMethod["GetSizeOnDisk"] = "get_size_on_disk";
|
|
56
56
|
RPCMethod["IsTxExecutedInBlock"] = "is_tx_executed_in_block";
|
|
57
|
+
RPCMethod["GetAccountRegistrationTopoheight"] = "get_account_registration_topoheight";
|
|
57
58
|
})(RPCMethod = exports.RPCMethod || (exports.RPCMethod = {}));
|
|
58
59
|
var RPCEvent;
|
|
59
60
|
(function (RPCEvent) {
|
|
@@ -220,6 +220,9 @@ var DaemonMethods = /** @class */ (function () {
|
|
|
220
220
|
DaemonMethods.prototype.getSizeOnDisk = function () {
|
|
221
221
|
return this.dataCall(types_js_1.RPCMethod.GetSizeOnDisk);
|
|
222
222
|
};
|
|
223
|
+
DaemonMethods.prototype.getAccountRegistrationTopoheight = function (address) {
|
|
224
|
+
return this.dataCall(types_js_1.RPCMethod.GetAccountRegistrationTopoheight, { address: address });
|
|
225
|
+
};
|
|
223
226
|
return DaemonMethods;
|
|
224
227
|
}());
|
|
225
228
|
exports.DaemonMethods = DaemonMethods;
|
package/dist/esm/daemon/rpc.js
CHANGED
|
@@ -134,6 +134,9 @@ var RPC = /** @class */ (function (_super) {
|
|
|
134
134
|
RPC.prototype.getSizeOnDisk = function () {
|
|
135
135
|
return this.post(RPCMethod.GetSizeOnDisk);
|
|
136
136
|
};
|
|
137
|
+
RPC.prototype.getAccountRegistrationTopoheight = function (address) {
|
|
138
|
+
return this.post(RPCMethod.GetAccountRegistrationTopoheight, { address: address });
|
|
139
|
+
};
|
|
137
140
|
return RPC;
|
|
138
141
|
}(BaseRPC));
|
|
139
142
|
export { RPC };
|
package/dist/esm/daemon/types.js
CHANGED
|
@@ -51,6 +51,7 @@ export var RPCMethod;
|
|
|
51
51
|
RPCMethod["GetDevFeeThresholds"] = "get_dev_fee_thresholds";
|
|
52
52
|
RPCMethod["GetSizeOnDisk"] = "get_size_on_disk";
|
|
53
53
|
RPCMethod["IsTxExecutedInBlock"] = "is_tx_executed_in_block";
|
|
54
|
+
RPCMethod["GetAccountRegistrationTopoheight"] = "get_account_registration_topoheight";
|
|
54
55
|
})(RPCMethod || (RPCMethod = {}));
|
|
55
56
|
export var RPCEvent;
|
|
56
57
|
(function (RPCEvent) {
|
|
@@ -217,6 +217,9 @@ var DaemonMethods = /** @class */ (function () {
|
|
|
217
217
|
DaemonMethods.prototype.getSizeOnDisk = function () {
|
|
218
218
|
return this.dataCall(RPCMethod.GetSizeOnDisk);
|
|
219
219
|
};
|
|
220
|
+
DaemonMethods.prototype.getAccountRegistrationTopoheight = function (address) {
|
|
221
|
+
return this.dataCall(RPCMethod.GetAccountRegistrationTopoheight, { address: address });
|
|
222
|
+
};
|
|
220
223
|
return DaemonMethods;
|
|
221
224
|
}());
|
|
222
225
|
export { DaemonMethods };
|
|
@@ -39,5 +39,6 @@ export declare class RPC extends BaseRPC {
|
|
|
39
39
|
isTxExecutedInBlock(params: IsTxExecutedInBlockParams): Promise<import("../lib/types.js").RPCResponse<boolean>>;
|
|
40
40
|
getDevFeeThresholds(): Promise<import("../lib/types.js").RPCResponse<DevFee[]>>;
|
|
41
41
|
getSizeOnDisk(): Promise<import("../lib/types.js").RPCResponse<DiskSize>>;
|
|
42
|
+
getAccountRegistrationTopoheight(address: String): Promise<import("../lib/types.js").RPCResponse<Number>>;
|
|
42
43
|
}
|
|
43
44
|
export default RPC;
|
|
@@ -330,7 +330,8 @@ export declare enum RPCMethod {
|
|
|
330
330
|
GetPeers = "get_peers",
|
|
331
331
|
GetDevFeeThresholds = "get_dev_fee_thresholds",
|
|
332
332
|
GetSizeOnDisk = "get_size_on_disk",
|
|
333
|
-
IsTxExecutedInBlock = "is_tx_executed_in_block"
|
|
333
|
+
IsTxExecutedInBlock = "is_tx_executed_in_block",
|
|
334
|
+
GetAccountRegistrationTopoheight = "get_account_registration_topoheight"
|
|
334
335
|
}
|
|
335
336
|
export declare enum RPCEvent {
|
|
336
337
|
NewBlock = "new_block",
|
|
@@ -57,6 +57,7 @@ export declare class DaemonMethods {
|
|
|
57
57
|
isTxExecutedInBlock(params: IsTxExecutedInBlockParams): Promise<boolean>;
|
|
58
58
|
getDevFeeThresholds(): Promise<DevFee[]>;
|
|
59
59
|
getSizeOnDisk(): Promise<DiskSize>;
|
|
60
|
+
getAccountRegistrationTopoheight(address: String): Promise<Number>;
|
|
60
61
|
}
|
|
61
62
|
export declare class WS extends BaseWS {
|
|
62
63
|
methods: DaemonMethods;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.8.
|
|
2
|
+
"version": "0.8.4",
|
|
3
3
|
"name": "@xelis/sdk",
|
|
4
4
|
"description": "Xelis software development kit for JS",
|
|
5
5
|
"exports": {
|
|
@@ -19,7 +19,8 @@
|
|
|
19
19
|
"test": "jest",
|
|
20
20
|
"compile": "tsc -b ./tsconfig.cjs.json ./tsconfig.esm.json ./tsconfig.types.json",
|
|
21
21
|
"clean": "rm -rf ./dist",
|
|
22
|
-
"build": "npm run clean && npm run compile && node create_esm_pkg.js"
|
|
22
|
+
"build": "npm run clean && npm run compile && node create_esm_pkg.js",
|
|
23
|
+
"prepublishOnly": "npm run build"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
26
|
"@types/jest": "^29.4.0",
|