@xelis/sdk 0.9.11 → 0.10.1

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.
Files changed (53) hide show
  1. package/dist/cjs/address/address.js +55 -0
  2. package/dist/cjs/address/bech32.js +167 -0
  3. package/dist/cjs/config.js +4 -2
  4. package/dist/cjs/daemon/rpc.js +122 -71
  5. package/dist/cjs/daemon/types.js +44 -24
  6. package/dist/cjs/daemon/websocket.js +129 -105
  7. package/dist/cjs/data/element.js +84 -0
  8. package/dist/cjs/data/value.js +327 -0
  9. package/dist/cjs/{lib/rpc.js → rpc/http.js} +68 -18
  10. package/dist/cjs/rpc/parse_json/parse_json.js +15 -0
  11. package/dist/cjs/{lib → rpc}/websocket.js +119 -79
  12. package/dist/cjs/wallet/rpc.js +81 -70
  13. package/dist/cjs/wallet/types.js +44 -1
  14. package/dist/cjs/wallet/websocket.js +77 -14
  15. package/dist/cjs/xswd/websocket.js +3 -3
  16. package/dist/esm/address/address.js +53 -0
  17. package/dist/esm/address/bech32.js +161 -0
  18. package/dist/esm/config.js +3 -1
  19. package/dist/esm/daemon/rpc.js +122 -71
  20. package/dist/esm/daemon/types.js +44 -24
  21. package/dist/esm/daemon/websocket.js +130 -106
  22. package/dist/esm/data/element.js +81 -0
  23. package/dist/esm/data/value.js +324 -0
  24. package/dist/esm/{lib/rpc.js → rpc/http.js} +67 -17
  25. package/dist/esm/rpc/parse_json/parse_json.js +8 -0
  26. package/dist/esm/{lib → rpc}/websocket.js +118 -78
  27. package/dist/esm/wallet/rpc.js +81 -70
  28. package/dist/esm/wallet/types.js +43 -0
  29. package/dist/esm/wallet/websocket.js +77 -14
  30. package/dist/esm/xswd/websocket.js +3 -3
  31. package/dist/types/address/address.d.ts +12 -0
  32. package/dist/types/address/bech32.d.ts +6 -0
  33. package/dist/types/config.d.ts +2 -0
  34. package/dist/types/daemon/rpc.d.ts +68 -51
  35. package/dist/types/daemon/types.d.ts +216 -44
  36. package/dist/types/daemon/websocket.d.ts +77 -56
  37. package/dist/types/data/element.d.ts +20 -0
  38. package/dist/types/data/value.d.ts +50 -0
  39. package/dist/types/rpc/http.d.ts +9 -0
  40. package/dist/types/rpc/parse_json/parse_json.d.ts +1 -0
  41. package/dist/types/{lib → rpc}/websocket.d.ts +14 -10
  42. package/dist/types/wallet/rpc.d.ts +45 -26
  43. package/dist/types/wallet/types.d.ts +244 -21
  44. package/dist/types/wallet/websocket.d.ts +47 -22
  45. package/dist/types/xswd/websocket.d.ts +3 -3
  46. package/package.json +5 -4
  47. package/dist/cjs/lib/parse_data.js +0 -15
  48. package/dist/esm/lib/parse_data.js +0 -11
  49. package/dist/types/lib/parse_data.d.ts +0 -1
  50. package/dist/types/lib/rpc.d.ts +0 -7
  51. /package/dist/cjs/{lib → rpc}/types.js +0 -0
  52. /package/dist/esm/{lib → rpc}/types.js +0 -0
  53. /package/dist/types/{lib → rpc}/types.d.ts +0 -0
@@ -14,157 +14,208 @@ var __extends = (this && this.__extends) || (function () {
14
14
  };
15
15
  })();
16
16
  import { RPCMethod } from './types.js';
17
- import { RPC as BaseRPC } from '../lib/rpc.js';
17
+ import { HttpRPC } from '../rpc/http.js';
18
18
  var RPC = /** @class */ (function (_super) {
19
19
  __extends(RPC, _super);
20
20
  function RPC() {
21
21
  return _super !== null && _super.apply(this, arguments) || this;
22
22
  }
23
23
  RPC.prototype.getVersion = function () {
24
- return this.post(RPCMethod.GetVersion);
24
+ return this.request(RPCMethod.GetVersion);
25
25
  };
26
26
  RPC.prototype.getHeight = function () {
27
- return this.post(RPCMethod.GetHeight);
27
+ return this.request(RPCMethod.GetHeight);
28
28
  };
29
29
  RPC.prototype.getTopoheight = function () {
30
- return this.post(RPCMethod.GetTopoheight);
30
+ return this.request(RPCMethod.GetTopoheight);
31
+ };
32
+ RPC.prototype.getPrunedTopoheight = function () {
33
+ return this.request(RPCMethod.GetPrunedTopoheight);
34
+ };
35
+ RPC.prototype.getInfo = function () {
36
+ return this.request(RPCMethod.GetInfo);
37
+ };
38
+ RPC.prototype.getDifficulty = function () {
39
+ return this.request(RPCMethod.GetDifficulty);
40
+ };
41
+ RPC.prototype.getTips = function () {
42
+ return this.request(RPCMethod.GetTips);
43
+ };
44
+ RPC.prototype.getDevFeeThresholds = function () {
45
+ return this.request(RPCMethod.GetDevFeeThresholds);
46
+ };
47
+ RPC.prototype.getSizeOnDisk = function () {
48
+ return this.request(RPCMethod.GetSizeOnDisk);
31
49
  };
32
50
  RPC.prototype.getStableHeight = function () {
33
- return this.post(RPCMethod.GetStableHeight);
51
+ return this.request(RPCMethod.GetStableHeight);
34
52
  };
35
53
  RPC.prototype.getStableTopoheight = function () {
36
- return this.post(RPCMethod.GetStableTopoheight);
54
+ return this.request(RPCMethod.GetStableTopoheight);
37
55
  };
38
- RPC.prototype.getStableBalance = function (params) {
39
- return this.post(RPCMethod.GetStableBalance, params);
40
- };
41
- RPC.prototype.getBlockTemplate = function (address) {
42
- return this.post(RPCMethod.GetBlockTemplate, { address: address });
56
+ RPC.prototype.getHardForks = function () {
57
+ return this.request(RPCMethod.GetHardForks);
43
58
  };
44
59
  RPC.prototype.getBlockAtTopoheight = function (params) {
45
- return this.post(RPCMethod.GetBlockAtTopoheight, params);
60
+ return this.request(RPCMethod.GetBlockAtTopoheight, params);
46
61
  };
47
62
  RPC.prototype.getBlocksAtHeight = function (params) {
48
- return this.post(RPCMethod.GetBlocksAtHeight, params);
63
+ return this.request(RPCMethod.GetBlocksAtHeight, params);
49
64
  };
50
65
  RPC.prototype.getBlockByHash = function (params) {
51
- return this.post(RPCMethod.GetBlockByHash, params);
66
+ return this.request(RPCMethod.GetBlockByHash, params);
52
67
  };
53
68
  RPC.prototype.getTopBlock = function (params) {
54
- return this.post(RPCMethod.GetTopBlock, params);
55
- };
56
- RPC.prototype.submitBlock = function (params) {
57
- return this.post(RPCMethod.SubmitBlock, params);
69
+ return this.request(RPCMethod.GetTopBlock, params);
58
70
  };
59
71
  RPC.prototype.getBalance = function (params) {
60
- return this.post(RPCMethod.GetBalance, params);
72
+ return this.request(RPCMethod.GetBalance, params);
73
+ };
74
+ RPC.prototype.getStableBalance = function (params) {
75
+ return this.request(RPCMethod.GetStableBalance, params);
61
76
  };
62
77
  RPC.prototype.hasBalance = function (params) {
63
- return this.post(RPCMethod.HasBalance, params);
78
+ return this.request(RPCMethod.HasBalance, params);
64
79
  };
65
80
  RPC.prototype.getBalanceAtTopoheight = function (params) {
66
- return this.post(RPCMethod.GetBalanceAtTopoheight, params);
67
- };
68
- RPC.prototype.getInfo = function () {
69
- return this.post(RPCMethod.GetInfo);
81
+ return this.request(RPCMethod.GetBalanceAtTopoheight, params);
70
82
  };
71
83
  RPC.prototype.getNonce = function (params) {
72
- return this.post(RPCMethod.GetNonce, params);
84
+ return this.request(RPCMethod.GetNonce, params);
73
85
  };
74
86
  RPC.prototype.hasNonce = function (params) {
75
- return this.post(RPCMethod.HasNonce, params);
87
+ return this.request(RPCMethod.HasNonce, params);
76
88
  };
77
89
  RPC.prototype.getNonceAtTopoheight = function (params) {
78
- return this.post(RPCMethod.GetNonceAtTopoheight, params);
90
+ return this.request(RPCMethod.GetNonceAtTopoheight, params);
79
91
  };
80
92
  RPC.prototype.getAsset = function (params) {
81
- return this.post(RPCMethod.GetAsset, params);
93
+ return this.request(RPCMethod.GetAsset, params);
82
94
  };
83
95
  RPC.prototype.getAssets = function (params) {
84
- return this.post(RPCMethod.GetAssets, params);
96
+ return this.request(RPCMethod.GetAssets, params);
85
97
  };
86
98
  RPC.prototype.countAssets = function () {
87
- return this.post(RPCMethod.CountAssets);
99
+ return this.request(RPCMethod.CountAssets);
100
+ };
101
+ RPC.prototype.countTransactions = function () {
102
+ return this.request(RPCMethod.CountTransactions);
88
103
  };
89
104
  RPC.prototype.countAccounts = function () {
90
- return this.post(RPCMethod.CountAccounts);
105
+ return this.request(RPCMethod.CountAccounts);
91
106
  };
92
- RPC.prototype.countTransactions = function () {
93
- return this.post(RPCMethod.CountTransactions);
107
+ RPC.prototype.countContracts = function () {
108
+ return this.request(RPCMethod.CountContracts);
94
109
  };
95
110
  RPC.prototype.submitTransaction = function (hexData) {
96
- return this.post(RPCMethod.SubmitTransaction, { data: hexData });
111
+ return this.request(RPCMethod.SubmitTransaction, { data: hexData });
112
+ };
113
+ RPC.prototype.getTransationExecutor = function (hash) {
114
+ return this.request(RPCMethod.GetTransactionExecutor, { hash: hash });
97
115
  };
98
116
  RPC.prototype.getTransaction = function (hash) {
99
- return this.post(RPCMethod.GetTransaction, { hash: hash });
117
+ return this.request(RPCMethod.GetTransaction, { hash: hash });
118
+ };
119
+ RPC.prototype.getTransactions = function (txHashes) {
120
+ return this.request(RPCMethod.GetTransactions, { tx_hashes: txHashes });
121
+ };
122
+ RPC.prototype.isTxExecutedInBlock = function (params) {
123
+ return this.request(RPCMethod.IsTxExecutedInBlock, params);
100
124
  };
101
125
  RPC.prototype.p2pStatus = function () {
102
- return this.post(RPCMethod.P2PStatus);
126
+ return this.request(RPCMethod.P2PStatus);
103
127
  };
104
128
  RPC.prototype.getPeers = function () {
105
- return this.post(RPCMethod.GetPeers);
129
+ return this.request(RPCMethod.GetPeers);
106
130
  };
107
131
  RPC.prototype.getMemPool = function () {
108
- return this.post(RPCMethod.GetMempool);
132
+ return this.request(RPCMethod.GetMempool);
109
133
  };
110
- RPC.prototype.getTips = function () {
111
- return this.post(RPCMethod.GetTips);
134
+ RPC.prototype.getMempoolCache = function (address) {
135
+ return this.request(RPCMethod.GetMempoolCache, { address: address });
136
+ };
137
+ RPC.prototype.getEstimatedFeeRates = function () {
138
+ return this.request(RPCMethod.GetEstimatedFeeRates);
112
139
  };
113
140
  RPC.prototype.getDAGOrder = function (params) {
114
- return this.post(RPCMethod.GetDAGOrder, params);
141
+ return this.request(RPCMethod.GetDAGOrder, params);
115
142
  };
116
143
  RPC.prototype.getBlocksRangeByTopoheight = function (params) {
117
- return this.post(RPCMethod.GetBlocksRangeByTopoheight, params);
144
+ return this.request(RPCMethod.GetBlocksRangeByTopoheight, params);
118
145
  };
119
146
  RPC.prototype.getBlocksRangeByHeight = function (params) {
120
- return this.post(RPCMethod.GetBlocksRangeByHeight, params);
121
- };
122
- RPC.prototype.getTransactions = function (txHashes) {
123
- return this.post(RPCMethod.GetTransactions, { tx_hashes: txHashes });
147
+ return this.request(RPCMethod.GetBlocksRangeByHeight, params);
124
148
  };
125
149
  RPC.prototype.getAccountHistory = function (params) {
126
- return this.post(RPCMethod.GetAccountHistory, params);
150
+ return this.request(RPCMethod.GetAccountHistory, params);
127
151
  };
128
152
  RPC.prototype.getAccountAssets = function (address) {
129
- return this.post(RPCMethod.GetAccountAssets, { address: address });
153
+ return this.request(RPCMethod.GetAccountAssets, { address: address });
130
154
  };
131
155
  RPC.prototype.getAccounts = function (params) {
132
- return this.post(RPCMethod.GetAccounts, params);
156
+ return this.request(RPCMethod.GetAccounts, params);
133
157
  };
134
- RPC.prototype.isTxExecutedInBlock = function (params) {
135
- return this.post(RPCMethod.IsTxExecutedInBlock, params);
158
+ RPC.prototype.isAccountRegistered = function (params) {
159
+ return this.request(RPCMethod.IsAccountRegistered, params);
136
160
  };
137
- RPC.prototype.getDevFeeThresholds = function () {
138
- return this.post(RPCMethod.GetDevFeeThresholds);
161
+ RPC.prototype.getAccountRegistrationTopoheight = function (address) {
162
+ return this.request(RPCMethod.GetAccountRegistrationTopoheight, { address: address });
139
163
  };
140
- RPC.prototype.getSizeOnDisk = function () {
141
- return this.post(RPCMethod.GetSizeOnDisk);
164
+ RPC.prototype.validateAddress = function (params) {
165
+ return this.request(RPCMethod.ValidateAddress, params);
142
166
  };
143
- RPC.prototype.getAccountRegistrationTopoheight = function (address) {
144
- return this.post(RPCMethod.GetAccountRegistrationTopoheight, { address: address });
167
+ RPC.prototype.splitAddress = function (params) {
168
+ return this.request(RPCMethod.SplitAddress, params);
145
169
  };
146
- RPC.prototype.isAccountRegistered = function (params) {
147
- return this.post(RPCMethod.IsAccountRegistered, params);
170
+ RPC.prototype.extractKeyFromAddress = function (params) {
171
+ return this.request(RPCMethod.ExtractKeyFromAddress, params);
148
172
  };
149
- RPC.prototype.getMempoolCache = function (address) {
150
- return this.post(RPCMethod.GetMempoolCache, { address: address });
173
+ RPC.prototype.makeIntegratedAddress = function (params) {
174
+ return this.request(RPCMethod.MakeIntegratedAddress, params);
151
175
  };
152
- RPC.prototype.getDifficulty = function () {
153
- return this.post(RPCMethod.GetDifficulty);
176
+ RPC.prototype.decryptExtraData = function (params) {
177
+ return this.request(RPCMethod.DecryptExtraData, params);
154
178
  };
155
- RPC.prototype.validateAddress = function (params) {
156
- return this.post(RPCMethod.ValidateAddress, params);
179
+ RPC.prototype.getMultisigAtTopoheight = function (params) {
180
+ return this.request(RPCMethod.GetMultisigAtTopoheight, params);
157
181
  };
158
- RPC.prototype.extractKeyFromAddress = function (params) {
159
- return this.post(RPCMethod.ExtractKeyFromAddress, params);
182
+ RPC.prototype.getMultisig = function (params) {
183
+ return this.request(RPCMethod.GetMultisig, params);
184
+ };
185
+ RPC.prototype.hasMultisig = function (params) {
186
+ return this.request(RPCMethod.HasMultisig, params);
187
+ };
188
+ RPC.prototype.hasMultisigAtTopoheight = function (params) {
189
+ return this.request(RPCMethod.HasMultisigAtTopoheight, params);
190
+ };
191
+ RPC.prototype.getContractOutputs = function (params) {
192
+ return this.request(RPCMethod.GetContractOutputs, params);
193
+ };
194
+ RPC.prototype.getContractModule = function (params) {
195
+ return this.request(RPCMethod.GetContractModule, params);
196
+ };
197
+ RPC.prototype.getContractData = function (params) {
198
+ return this.request(RPCMethod.GetContractData, params);
199
+ };
200
+ RPC.prototype.getContractDataAtTopoheight = function (params) {
201
+ return this.request(RPCMethod.GetContractDataAtTopoheight, params);
202
+ };
203
+ RPC.prototype.getContractBalance = function (params) {
204
+ return this.request(RPCMethod.GetContractBalance, params);
205
+ };
206
+ RPC.prototype.getContractBalanceAtTopoheight = function (params) {
207
+ return this.request(RPCMethod.GetContractBalanceAtTopoheight, params);
208
+ };
209
+ RPC.prototype.getBlockTemplate = function (address) {
210
+ return this.request(RPCMethod.GetBlockTemplate, { address: address });
160
211
  };
161
212
  RPC.prototype.getMinerWork = function (params) {
162
- return this.post(RPCMethod.GetMinerWork, params);
213
+ return this.request(RPCMethod.GetMinerWork, params);
163
214
  };
164
- RPC.prototype.splitAddress = function (params) {
165
- return this.post(RPCMethod.SplitAddress, params);
215
+ RPC.prototype.submitBlock = function (params) {
216
+ return this.request(RPCMethod.SubmitBlock, params);
166
217
  };
167
218
  return RPC;
168
- }(BaseRPC));
219
+ }(HttpRPC));
169
220
  export { RPC };
170
221
  export default RPC;
@@ -14,53 +14,70 @@ export var BlockType;
14
14
  export var RPCMethod;
15
15
  (function (RPCMethod) {
16
16
  RPCMethod["GetVersion"] = "get_version";
17
- RPCMethod["GetInfo"] = "get_info";
18
17
  RPCMethod["GetHeight"] = "get_height";
19
18
  RPCMethod["GetTopoheight"] = "get_topoheight";
19
+ RPCMethod["GetPrunedTopoheight"] = "get_pruned_topoheight";
20
+ RPCMethod["GetInfo"] = "get_info";
21
+ RPCMethod["GetDifficulty"] = "get_difficulty";
22
+ RPCMethod["GetTips"] = "get_tips";
23
+ RPCMethod["GetDevFeeThresholds"] = "get_dev_fee_thresholds";
24
+ RPCMethod["GetSizeOnDisk"] = "get_size_on_disk";
20
25
  RPCMethod["GetStableHeight"] = "get_stable_height";
21
26
  RPCMethod["GetStableTopoheight"] = "get_stable_topoheight";
22
- RPCMethod["GetStableBalance"] = "get_stable_balance";
23
- RPCMethod["GetBlockTemplate"] = "get_block_template";
27
+ RPCMethod["GetHardForks"] = "get_hard_forks";
24
28
  RPCMethod["GetBlockAtTopoheight"] = "get_block_at_topoheight";
25
29
  RPCMethod["GetBlocksAtHeight"] = "get_blocks_at_height";
26
30
  RPCMethod["GetBlockByHash"] = "get_block_by_hash";
27
31
  RPCMethod["GetTopBlock"] = "get_top_block";
28
- RPCMethod["GetNonce"] = "get_nonce";
29
- RPCMethod["GetNonceAtTopoheight"] = "get_nonce_at_topoheight";
30
- RPCMethod["HasNonce"] = "has_nonce";
31
32
  RPCMethod["GetBalance"] = "get_balance";
33
+ RPCMethod["GetStableBalance"] = "get_stable_balance";
32
34
  RPCMethod["HasBalance"] = "has_balance";
33
35
  RPCMethod["GetBalanceAtTopoheight"] = "get_balance_at_topoheight";
36
+ RPCMethod["GetNonce"] = "get_nonce";
37
+ RPCMethod["HasNonce"] = "has_nonce";
38
+ RPCMethod["GetNonceAtTopoheight"] = "get_nonce_at_topoheight";
34
39
  RPCMethod["GetAsset"] = "get_asset";
35
40
  RPCMethod["GetAssets"] = "get_assets";
36
41
  RPCMethod["CountAssets"] = "count_assets";
37
42
  RPCMethod["CountTransactions"] = "count_transactions";
38
- RPCMethod["GetTips"] = "get_tips";
39
- RPCMethod["P2PStatus"] = "p2p_status";
40
- RPCMethod["GetDAGOrder"] = "get_dag_order";
41
- RPCMethod["GetMempool"] = "get_mempool";
43
+ RPCMethod["CountAccounts"] = "count_accounts";
44
+ RPCMethod["CountContracts"] = "count_contracts";
45
+ RPCMethod["SubmitTransaction"] = "submit_transaction";
46
+ RPCMethod["GetTransactionExecutor"] = "get_transaction_executor";
42
47
  RPCMethod["GetTransaction"] = "get_transaction";
43
48
  RPCMethod["GetTransactions"] = "get_transactions";
49
+ RPCMethod["IsTxExecutedInBlock"] = "is_tx_executed_in_block";
50
+ RPCMethod["P2PStatus"] = "p2p_status";
51
+ RPCMethod["GetPeers"] = "get_peers";
52
+ RPCMethod["GetMempool"] = "get_mempool";
53
+ RPCMethod["GetMempoolCache"] = "get_mempool_cache";
54
+ RPCMethod["GetEstimatedFeeRates"] = "get_estimated_fee_rates";
55
+ RPCMethod["GetDAGOrder"] = "get_dag_order";
44
56
  RPCMethod["GetBlocksRangeByTopoheight"] = "get_blocks_range_by_topoheight";
45
57
  RPCMethod["GetBlocksRangeByHeight"] = "get_blocks_range_by_height";
46
- RPCMethod["GetAccounts"] = "get_accounts";
47
- RPCMethod["SubmitBlock"] = "submit_block";
48
- RPCMethod["SubmitTransaction"] = "submit_transaction";
49
- RPCMethod["CountAccounts"] = "count_accounts";
50
58
  RPCMethod["GetAccountHistory"] = "get_account_history";
51
59
  RPCMethod["GetAccountAssets"] = "get_account_assets";
52
- RPCMethod["GetPeers"] = "get_peers";
53
- RPCMethod["GetDevFeeThresholds"] = "get_dev_fee_thresholds";
54
- RPCMethod["GetSizeOnDisk"] = "get_size_on_disk";
55
- RPCMethod["IsTxExecutedInBlock"] = "is_tx_executed_in_block";
56
- RPCMethod["GetAccountRegistrationTopoheight"] = "get_account_registration_topoheight";
60
+ RPCMethod["GetAccounts"] = "get_accounts";
57
61
  RPCMethod["IsAccountRegistered"] = "is_account_registered";
58
- RPCMethod["GetMempoolCache"] = "get_mempool_cache";
59
- RPCMethod["GetDifficulty"] = "get_difficulty";
62
+ RPCMethod["GetAccountRegistrationTopoheight"] = "get_account_registration_topoheight";
60
63
  RPCMethod["ValidateAddress"] = "validate_address";
64
+ RPCMethod["SplitAddress"] = "split_address";
61
65
  RPCMethod["ExtractKeyFromAddress"] = "extract_key_from_address";
66
+ RPCMethod["MakeIntegratedAddress"] = "make_integrated_address";
67
+ RPCMethod["DecryptExtraData"] = "decrypt_extra_data";
68
+ RPCMethod["GetMultisigAtTopoheight"] = "get_multisig_at_topoheight";
69
+ RPCMethod["GetMultisig"] = "get_multisig";
70
+ RPCMethod["HasMultisig"] = "has_multisig";
71
+ RPCMethod["HasMultisigAtTopoheight"] = "has_multisig_at_topoheight";
72
+ RPCMethod["GetContractOutputs"] = "get_contract_outputs";
73
+ RPCMethod["GetContractModule"] = "get_contract_module";
74
+ RPCMethod["GetContractData"] = "get_contract_data";
75
+ RPCMethod["GetContractDataAtTopoheight"] = "get_contract_data_at_topoheight";
76
+ RPCMethod["GetContractBalance"] = "get_contract_balance";
77
+ RPCMethod["GetContractBalanceAtTopoheight"] = "get_contract_balance_at_topoheight";
78
+ RPCMethod["GetBlockTemplate"] = "get_block_template";
62
79
  RPCMethod["GetMinerWork"] = "get_miner_work";
63
- RPCMethod["SplitAddress"] = "split_address";
80
+ RPCMethod["SubmitBlock"] = "submit_block";
64
81
  })(RPCMethod || (RPCMethod = {}));
65
82
  export var RPCEvent;
66
83
  (function (RPCEvent) {
@@ -68,14 +85,17 @@ export var RPCEvent;
68
85
  RPCEvent["BlockOrdered"] = "block_ordered";
69
86
  RPCEvent["BlockOrphaned"] = "block_orphaned";
70
87
  RPCEvent["StableHeightChanged"] = "stable_height_changed";
88
+ RPCEvent["StableTopoHeightChanged"] = "stable_topo_height_changed";
71
89
  RPCEvent["TransactionOrphaned"] = "transaction_orphaned";
72
90
  RPCEvent["TransactionAddedInMempool"] = "transaction_added_in_mempool";
73
91
  RPCEvent["TransactionExecuted"] = "transaction_executed";
74
- RPCEvent["TransactionSCResult"] = "transaction_sc_result";
92
+ RPCEvent["InvokeContract"] = "invoke_contract";
93
+ RPCEvent["DeployContract"] = "deploy_contract";
75
94
  RPCEvent["NewAsset"] = "new_asset";
76
95
  RPCEvent["PeerConnected"] = "peer_connected";
77
96
  RPCEvent["PeerDisconnected"] = "peer_disconnected";
78
- RPCEvent["PeerPeerListUpdated"] = "peer_peer_list_updated";
79
97
  RPCEvent["PeerStateUpdated"] = "peer_state_updated";
98
+ RPCEvent["PeerPeerListUpdated"] = "peer_peer_list_updated";
80
99
  RPCEvent["PeerPeerDisconnected"] = "peer_peer_disconnected";
100
+ RPCEvent["NewBlockTemplate"] = "new_block_template";
81
101
  })(RPCEvent || (RPCEvent = {}));