@xelis/sdk 0.11.23 → 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
  }
@@ -139,8 +142,8 @@ class RPC extends http_1.HttpRPC {
139
142
  getAccountHistory(params) {
140
143
  return this.request(types_1.RPCMethod.GetAccountHistory, params);
141
144
  }
142
- getAccountAssets(address) {
143
- return this.request(types_1.RPCMethod.GetAccountAssets, { address });
145
+ getAccountAssets(params) {
146
+ return this.request(types_1.RPCMethod.GetAccountAssets, params);
144
147
  }
145
148
  getAccounts(params) {
146
149
  return this.request(types_1.RPCMethod.GetAccounts, params);
@@ -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
  }
@@ -152,8 +155,8 @@ class DaemonMethods {
152
155
  getAccountHistory(params) {
153
156
  return this.dataCall(types_1.RPCMethod.GetAccountHistory, params);
154
157
  }
155
- getAccountAssets(address) {
156
- return this.dataCall(types_1.RPCMethod.GetAccountAssets, { address });
158
+ getAccountAssets(params) {
159
+ return this.dataCall(types_1.RPCMethod.GetAccountAssets, params);
157
160
  }
158
161
  getAccounts(params) {
159
162
  return this.dataCall(types_1.RPCMethod.GetAccounts, params);
@@ -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
  }
@@ -136,8 +139,8 @@ export class RPC extends HttpRPC {
136
139
  getAccountHistory(params) {
137
140
  return this.request(RPCMethod.GetAccountHistory, params);
138
141
  }
139
- getAccountAssets(address) {
140
- return this.request(RPCMethod.GetAccountAssets, { address });
142
+ getAccountAssets(params) {
143
+ return this.request(RPCMethod.GetAccountAssets, params);
141
144
  }
142
145
  getAccounts(params) {
143
146
  return this.request(RPCMethod.GetAccounts, params);
@@ -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
  }
@@ -149,8 +152,8 @@ export class DaemonMethods {
149
152
  getAccountHistory(params) {
150
153
  return this.dataCall(RPCMethod.GetAccountHistory, params);
151
154
  }
152
- getAccountAssets(address) {
153
- return this.dataCall(RPCMethod.GetAccountAssets, { address });
155
+ getAccountAssets(params) {
156
+ return this.dataCall(RPCMethod.GetAccountAssets, params);
154
157
  }
155
158
  getAccounts(params) {
156
159
  return this.dataCall(RPCMethod.GetAccounts, params);
@@ -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,11 +42,12 @@ 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[]>;
48
49
  getAccountHistory(params: types.GetAccountHistoryParams): Promise<types.AccountHistory[]>;
49
- getAccountAssets(address: string): Promise<string[]>;
50
+ getAccountAssets(params: types.GetAccountAssetsParams): Promise<string[]>;
50
51
  getAccounts(params: types.GetAccountsParams): Promise<string[]>;
51
52
  isAccountRegistered(params: types.IsAccountRegisteredParams): Promise<boolean>;
52
53
  getAccountRegistrationTopoheight(address: String): Promise<number>;
@@ -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>;
@@ -259,6 +259,11 @@ export interface GetAccountsParams {
259
259
  minimum_topoheight?: number;
260
260
  maximum_topoheight?: number;
261
261
  }
262
+ export interface GetAccountAssetsParams {
263
+ address: string;
264
+ skip?: number;
265
+ maximum?: number;
266
+ }
262
267
  export interface GetBlockAtTopoheightParams {
263
268
  topoheight: number;
264
269
  include_txs?: boolean;
@@ -717,6 +722,17 @@ export interface ContractOutputs {
717
722
  caller: string;
718
723
  outputs: ContractLog[];
719
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
+ }
720
736
  export declare enum RPCMethod {
721
737
  GetVersion = "get_version",
722
738
  GetHeight = "get_height",
@@ -759,6 +775,7 @@ export declare enum RPCMethod {
759
775
  GetMempoolSummary = "get_mempool_summary",
760
776
  GetMempoolCache = "get_mempool_cache",
761
777
  GetEstimatedFeeRates = "get_estimated_fee_rates",
778
+ GetEstimatedFeePerKB = "get_estimated_fee_per_kb",
762
779
  GetDAGOrder = "get_dag_order",
763
780
  GetBlocksRangeByTopoheight = "get_blocks_range_by_topoheight",
764
781
  GetBlocksRangeByHeight = "get_blocks_range_by_height",
@@ -786,6 +803,8 @@ export declare enum RPCMethod {
786
803
  GetContractBalance = "get_contract_balance",
787
804
  GetContractBalanceAtTopoheight = "get_contract_balance_at_topoheight",
788
805
  GetContractAssets = "get_contract_assets",
806
+ GetContracts = "get_contracts",
807
+ GetContractDataEntries = "get_contract_data_entries",
789
808
  GetP2PBlockPropagation = "get_p2p_block_propagation",
790
809
  GetBlockTemplate = "get_block_template",
791
810
  GetMinerWork = "get_miner_work",
@@ -54,7 +54,7 @@ export declare class DaemonMethods {
54
54
  getNonceAtTopoheight(params: types.GetNonceAtTopoheightParams): Promise<types.VersionedNonce>;
55
55
  getAsset(params: types.GetAssetParams): Promise<types.AssetData>;
56
56
  getAssetSupply(params: types.GetAssetParams): Promise<types.GetAssetSupplyResult>;
57
- getAssets(params?: types.GetAssetsParams): Promise<string[]>;
57
+ getAssets(params?: types.GetAssetsParams): Promise<types.AssetWithData[]>;
58
58
  countAssets(): Promise<number>;
59
59
  countTransactions(): Promise<number>;
60
60
  countAccounts(): Promise<number>;
@@ -70,11 +70,12 @@ 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[]>;
76
77
  getAccountHistory(params: types.GetAccountHistoryParams): Promise<types.AccountHistory[]>;
77
- getAccountAssets(address: string): Promise<string[]>;
78
+ getAccountAssets(params: types.GetAccountAssetsParams): Promise<string[]>;
78
79
  getAccounts(params: types.GetAccountsParams): Promise<string[]>;
79
80
  isAccountRegistered(params: types.IsAccountRegisteredParams): Promise<boolean>;
80
81
  getAccountRegistrationTopoheight(address: String): Promise<number>;
@@ -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.23",
2
+ "version": "0.11.25",
3
3
  "name": "@xelis/sdk",
4
4
  "description": "Xelis software development kit for JS",
5
5
  "exports": {