@xelis/sdk 0.11.24 → 0.11.25

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.
@@ -127,6 +127,9 @@ class RPC extends http_1.HttpRPC {
127
127
  getEstimatedFeeRates() {
128
128
  return this.request(types_1.RPCMethod.GetEstimatedFeeRates);
129
129
  }
130
+ getEstimatedFeePerKB() {
131
+ return this.request(types_1.RPCMethod.GetEstimatedFeePerKB);
132
+ }
130
133
  getDAGOrder(params) {
131
134
  return this.request(types_1.RPCMethod.GetDAGOrder, params);
132
135
  }
@@ -208,6 +211,12 @@ class RPC extends http_1.HttpRPC {
208
211
  getContractAssets(params) {
209
212
  return this.request(types_1.RPCMethod.GetContractAssets, params);
210
213
  }
214
+ getContracts(params) {
215
+ return this.request(types_1.RPCMethod.GetContracts, params);
216
+ }
217
+ getContractDataEntries(params) {
218
+ return this.request(types_1.RPCMethod.GetContractDataEntries, params);
219
+ }
211
220
  getP2PBlockPropagation(params) {
212
221
  return this.request(types_1.RPCMethod.GetP2PBlockPropagation, params);
213
222
  }
@@ -57,6 +57,7 @@ var RPCMethod;
57
57
  RPCMethod["GetMempoolSummary"] = "get_mempool_summary";
58
58
  RPCMethod["GetMempoolCache"] = "get_mempool_cache";
59
59
  RPCMethod["GetEstimatedFeeRates"] = "get_estimated_fee_rates";
60
+ RPCMethod["GetEstimatedFeePerKB"] = "get_estimated_fee_per_kb";
60
61
  RPCMethod["GetDAGOrder"] = "get_dag_order";
61
62
  RPCMethod["GetBlocksRangeByTopoheight"] = "get_blocks_range_by_topoheight";
62
63
  RPCMethod["GetBlocksRangeByHeight"] = "get_blocks_range_by_height";
@@ -84,6 +85,8 @@ var RPCMethod;
84
85
  RPCMethod["GetContractBalance"] = "get_contract_balance";
85
86
  RPCMethod["GetContractBalanceAtTopoheight"] = "get_contract_balance_at_topoheight";
86
87
  RPCMethod["GetContractAssets"] = "get_contract_assets";
88
+ RPCMethod["GetContracts"] = "get_contracts";
89
+ RPCMethod["GetContractDataEntries"] = "get_contract_data_entries";
87
90
  RPCMethod["GetP2PBlockPropagation"] = "get_p2p_block_propagation";
88
91
  RPCMethod["GetBlockTemplate"] = "get_block_template";
89
92
  RPCMethod["GetMinerWork"] = "get_miner_work";
@@ -140,6 +140,9 @@ class DaemonMethods {
140
140
  getEstimatedFeeRates() {
141
141
  return this.dataCall(types_1.RPCMethod.GetEstimatedFeeRates);
142
142
  }
143
+ getEstimatedFeePerKB() {
144
+ return this.dataCall(types_1.RPCMethod.GetEstimatedFeePerKB);
145
+ }
143
146
  getDAGOrder(params) {
144
147
  return this.dataCall(types_1.RPCMethod.GetDAGOrder, params);
145
148
  }
@@ -221,6 +224,12 @@ class DaemonMethods {
221
224
  getContractAssets(params) {
222
225
  return this.dataCall(types_1.RPCMethod.GetContractAssets, params);
223
226
  }
227
+ getContracts(params) {
228
+ return this.dataCall(types_1.RPCMethod.GetContracts, params);
229
+ }
230
+ getContractDataEntries(params) {
231
+ return this.dataCall(types_1.RPCMethod.GetContractDataEntries, params);
232
+ }
224
233
  getP2PBlockPropagation(params) {
225
234
  return this.dataCall(types_1.RPCMethod.GetP2PBlockPropagation, params);
226
235
  }
@@ -124,6 +124,9 @@ export class RPC extends HttpRPC {
124
124
  getEstimatedFeeRates() {
125
125
  return this.request(RPCMethod.GetEstimatedFeeRates);
126
126
  }
127
+ getEstimatedFeePerKB() {
128
+ return this.request(RPCMethod.GetEstimatedFeePerKB);
129
+ }
127
130
  getDAGOrder(params) {
128
131
  return this.request(RPCMethod.GetDAGOrder, params);
129
132
  }
@@ -205,6 +208,12 @@ export class RPC extends HttpRPC {
205
208
  getContractAssets(params) {
206
209
  return this.request(RPCMethod.GetContractAssets, params);
207
210
  }
211
+ getContracts(params) {
212
+ return this.request(RPCMethod.GetContracts, params);
213
+ }
214
+ getContractDataEntries(params) {
215
+ return this.request(RPCMethod.GetContractDataEntries, params);
216
+ }
208
217
  getP2PBlockPropagation(params) {
209
218
  return this.request(RPCMethod.GetP2PBlockPropagation, params);
210
219
  }
@@ -54,6 +54,7 @@ export var RPCMethod;
54
54
  RPCMethod["GetMempoolSummary"] = "get_mempool_summary";
55
55
  RPCMethod["GetMempoolCache"] = "get_mempool_cache";
56
56
  RPCMethod["GetEstimatedFeeRates"] = "get_estimated_fee_rates";
57
+ RPCMethod["GetEstimatedFeePerKB"] = "get_estimated_fee_per_kb";
57
58
  RPCMethod["GetDAGOrder"] = "get_dag_order";
58
59
  RPCMethod["GetBlocksRangeByTopoheight"] = "get_blocks_range_by_topoheight";
59
60
  RPCMethod["GetBlocksRangeByHeight"] = "get_blocks_range_by_height";
@@ -81,6 +82,8 @@ export var RPCMethod;
81
82
  RPCMethod["GetContractBalance"] = "get_contract_balance";
82
83
  RPCMethod["GetContractBalanceAtTopoheight"] = "get_contract_balance_at_topoheight";
83
84
  RPCMethod["GetContractAssets"] = "get_contract_assets";
85
+ RPCMethod["GetContracts"] = "get_contracts";
86
+ RPCMethod["GetContractDataEntries"] = "get_contract_data_entries";
84
87
  RPCMethod["GetP2PBlockPropagation"] = "get_p2p_block_propagation";
85
88
  RPCMethod["GetBlockTemplate"] = "get_block_template";
86
89
  RPCMethod["GetMinerWork"] = "get_miner_work";
@@ -137,6 +137,9 @@ export class DaemonMethods {
137
137
  getEstimatedFeeRates() {
138
138
  return this.dataCall(RPCMethod.GetEstimatedFeeRates);
139
139
  }
140
+ getEstimatedFeePerKB() {
141
+ return this.dataCall(RPCMethod.GetEstimatedFeePerKB);
142
+ }
140
143
  getDAGOrder(params) {
141
144
  return this.dataCall(RPCMethod.GetDAGOrder, params);
142
145
  }
@@ -218,6 +221,12 @@ export class DaemonMethods {
218
221
  getContractAssets(params) {
219
222
  return this.dataCall(RPCMethod.GetContractAssets, params);
220
223
  }
224
+ getContracts(params) {
225
+ return this.dataCall(RPCMethod.GetContracts, params);
226
+ }
227
+ getContractDataEntries(params) {
228
+ return this.dataCall(RPCMethod.GetContractDataEntries, params);
229
+ }
221
230
  getP2PBlockPropagation(params) {
222
231
  return this.dataCall(RPCMethod.GetP2PBlockPropagation, params);
223
232
  }
@@ -42,6 +42,7 @@ export declare class RPC extends HttpRPC {
42
42
  getMempoolSummary(params?: types.GetMempoolParams): Promise<types.GetMempoolSummaryResult>;
43
43
  getMempoolCache(address: String): Promise<types.GetMempoolCacheResult>;
44
44
  getEstimatedFeeRates(): Promise<types.FeeRatesEstimated>;
45
+ getEstimatedFeePerKB(): Promise<types.PredicatedBaseFeeResult>;
45
46
  getDAGOrder(params?: types.TopoheightRangeParams): Promise<string[]>;
46
47
  getBlocksRangeByTopoheight(params: types.TopoheightRangeParams): Promise<types.Block[]>;
47
48
  getBlocksRangeByHeight(params: types.HeightRangeParams): Promise<types.Block[]>;
@@ -69,6 +70,8 @@ export declare class RPC extends HttpRPC {
69
70
  getContractBalance(params: types.GetContractBalanceParams): Promise<types.GetContractBalanceResult>;
70
71
  getContractBalanceAtTopoheight(params: types.GetContractBalanceAtTopoheightParams): Promise<types.GetContractBalanceAtTopoheightResult>;
71
72
  getContractAssets(params: types.GetContractBalancesParams): Promise<string[]>;
73
+ getContracts(params: types.GetAccountsParams): Promise<string[]>;
74
+ getContractDataEntries(params: types.GetContractDataEntriesParams): Promise<unknown>;
72
75
  getP2PBlockPropagation(params: types.GetP2pBlockPropagationParams): Promise<types.P2pBlockPropagationResult>;
73
76
  getBlockTemplate(address: string): Promise<types.GetBlockTemplateResult>;
74
77
  getMinerWork(params: types.GetMinerWorkParams): Promise<types.GetMinerWorkResult>;
@@ -722,6 +722,17 @@ export interface ContractOutputs {
722
722
  caller: string;
723
723
  outputs: ContractLog[];
724
724
  }
725
+ export interface PredicatedBaseFeeResult {
726
+ fee_per_kb: number;
727
+ predicated_fee_per_kb: number;
728
+ }
729
+ export interface GetContractDataEntriesParams {
730
+ contract: string;
731
+ minimum_topoheight?: number;
732
+ maximum_topoheight?: number;
733
+ skip?: number;
734
+ maximum?: number;
735
+ }
725
736
  export declare enum RPCMethod {
726
737
  GetVersion = "get_version",
727
738
  GetHeight = "get_height",
@@ -764,6 +775,7 @@ export declare enum RPCMethod {
764
775
  GetMempoolSummary = "get_mempool_summary",
765
776
  GetMempoolCache = "get_mempool_cache",
766
777
  GetEstimatedFeeRates = "get_estimated_fee_rates",
778
+ GetEstimatedFeePerKB = "get_estimated_fee_per_kb",
767
779
  GetDAGOrder = "get_dag_order",
768
780
  GetBlocksRangeByTopoheight = "get_blocks_range_by_topoheight",
769
781
  GetBlocksRangeByHeight = "get_blocks_range_by_height",
@@ -791,6 +803,8 @@ export declare enum RPCMethod {
791
803
  GetContractBalance = "get_contract_balance",
792
804
  GetContractBalanceAtTopoheight = "get_contract_balance_at_topoheight",
793
805
  GetContractAssets = "get_contract_assets",
806
+ GetContracts = "get_contracts",
807
+ GetContractDataEntries = "get_contract_data_entries",
794
808
  GetP2PBlockPropagation = "get_p2p_block_propagation",
795
809
  GetBlockTemplate = "get_block_template",
796
810
  GetMinerWork = "get_miner_work",
@@ -70,6 +70,7 @@ export declare class DaemonMethods {
70
70
  getMempoolSummary(params?: types.GetMempoolParams): Promise<types.GetMempoolSummaryResult>;
71
71
  getMempoolCache(address: string): Promise<types.GetMempoolCacheResult>;
72
72
  getEstimatedFeeRates(): Promise<types.FeeRatesEstimated>;
73
+ getEstimatedFeePerKB(): Promise<types.PredicatedBaseFeeResult>;
73
74
  getDAGOrder(params: types.TopoheightRangeParams): Promise<string[]>;
74
75
  getBlocksRangeByTopoheight(params: types.TopoheightRangeParams): Promise<types.Block[]>;
75
76
  getBlocksRangeByHeight(params: types.HeightRangeParams): Promise<types.Block[]>;
@@ -97,6 +98,8 @@ export declare class DaemonMethods {
97
98
  getContractBalance(params: types.GetContractBalanceParams): Promise<types.GetContractBalanceResult>;
98
99
  getContractBalanceAtTopoheight(params: types.GetContractBalanceAtTopoheightParams): Promise<types.GetContractBalanceAtTopoheightResult>;
99
100
  getContractAssets(params: types.GetContractBalancesParams): Promise<string[]>;
101
+ getContracts(params: types.GetAccountsParams): Promise<string[]>;
102
+ getContractDataEntries(params: types.GetContractDataEntriesParams): Promise<unknown>;
100
103
  getP2PBlockPropagation(params: types.GetP2pBlockPropagationParams): Promise<types.P2pBlockPropagationResult>;
101
104
  getBlockTemplate(address: string): Promise<string>;
102
105
  getMinerWork(params: types.GetMinerWorkParams): Promise<types.GetMinerWorkResult>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.11.24",
2
+ "version": "0.11.25",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {