@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.
- package/dist/cjs/address/address.js +55 -0
- package/dist/cjs/address/bech32.js +167 -0
- package/dist/cjs/config.js +4 -2
- package/dist/cjs/daemon/rpc.js +122 -71
- package/dist/cjs/daemon/types.js +44 -24
- package/dist/cjs/daemon/websocket.js +129 -105
- package/dist/cjs/data/element.js +84 -0
- package/dist/cjs/data/value.js +327 -0
- package/dist/cjs/{lib/rpc.js → rpc/http.js} +68 -18
- package/dist/cjs/rpc/parse_json/parse_json.js +15 -0
- package/dist/cjs/{lib → rpc}/websocket.js +119 -79
- package/dist/cjs/wallet/rpc.js +81 -70
- package/dist/cjs/wallet/types.js +44 -1
- package/dist/cjs/wallet/websocket.js +77 -14
- package/dist/cjs/xswd/websocket.js +3 -3
- package/dist/esm/address/address.js +53 -0
- package/dist/esm/address/bech32.js +161 -0
- package/dist/esm/config.js +3 -1
- package/dist/esm/daemon/rpc.js +122 -71
- package/dist/esm/daemon/types.js +44 -24
- package/dist/esm/daemon/websocket.js +130 -106
- package/dist/esm/data/element.js +81 -0
- package/dist/esm/data/value.js +324 -0
- package/dist/esm/{lib/rpc.js → rpc/http.js} +67 -17
- package/dist/esm/rpc/parse_json/parse_json.js +8 -0
- package/dist/esm/{lib → rpc}/websocket.js +118 -78
- package/dist/esm/wallet/rpc.js +81 -70
- package/dist/esm/wallet/types.js +43 -0
- package/dist/esm/wallet/websocket.js +77 -14
- package/dist/esm/xswd/websocket.js +3 -3
- package/dist/types/address/address.d.ts +12 -0
- package/dist/types/address/bech32.d.ts +6 -0
- package/dist/types/config.d.ts +2 -0
- package/dist/types/daemon/rpc.d.ts +68 -51
- package/dist/types/daemon/types.d.ts +216 -44
- package/dist/types/daemon/websocket.d.ts +77 -56
- package/dist/types/data/element.d.ts +20 -0
- package/dist/types/data/value.d.ts +50 -0
- package/dist/types/rpc/http.d.ts +9 -0
- package/dist/types/rpc/parse_json/parse_json.d.ts +1 -0
- package/dist/types/{lib → rpc}/websocket.d.ts +14 -10
- package/dist/types/wallet/rpc.d.ts +45 -26
- package/dist/types/wallet/types.d.ts +244 -21
- package/dist/types/wallet/websocket.d.ts +47 -22
- package/dist/types/xswd/websocket.d.ts +3 -3
- package/package.json +5 -4
- package/dist/cjs/lib/parse_data.js +0 -15
- package/dist/esm/lib/parse_data.js +0 -11
- package/dist/types/lib/parse_data.d.ts +0 -1
- package/dist/types/lib/rpc.d.ts +0 -7
- /package/dist/cjs/{lib → rpc}/types.js +0 -0
- /package/dist/esm/{lib → rpc}/types.js +0 -0
- /package/dist/types/{lib → rpc}/types.d.ts +0 -0
package/dist/esm/daemon/rpc.js
CHANGED
|
@@ -14,157 +14,208 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
14
14
|
};
|
|
15
15
|
})();
|
|
16
16
|
import { RPCMethod } from './types.js';
|
|
17
|
-
import {
|
|
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.
|
|
24
|
+
return this.request(RPCMethod.GetVersion);
|
|
25
25
|
};
|
|
26
26
|
RPC.prototype.getHeight = function () {
|
|
27
|
-
return this.
|
|
27
|
+
return this.request(RPCMethod.GetHeight);
|
|
28
28
|
};
|
|
29
29
|
RPC.prototype.getTopoheight = function () {
|
|
30
|
-
return this.
|
|
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.
|
|
51
|
+
return this.request(RPCMethod.GetStableHeight);
|
|
34
52
|
};
|
|
35
53
|
RPC.prototype.getStableTopoheight = function () {
|
|
36
|
-
return this.
|
|
54
|
+
return this.request(RPCMethod.GetStableTopoheight);
|
|
37
55
|
};
|
|
38
|
-
RPC.prototype.
|
|
39
|
-
return this.
|
|
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.
|
|
60
|
+
return this.request(RPCMethod.GetBlockAtTopoheight, params);
|
|
46
61
|
};
|
|
47
62
|
RPC.prototype.getBlocksAtHeight = function (params) {
|
|
48
|
-
return this.
|
|
63
|
+
return this.request(RPCMethod.GetBlocksAtHeight, params);
|
|
49
64
|
};
|
|
50
65
|
RPC.prototype.getBlockByHash = function (params) {
|
|
51
|
-
return this.
|
|
66
|
+
return this.request(RPCMethod.GetBlockByHash, params);
|
|
52
67
|
};
|
|
53
68
|
RPC.prototype.getTopBlock = function (params) {
|
|
54
|
-
return this.
|
|
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.
|
|
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.
|
|
78
|
+
return this.request(RPCMethod.HasBalance, params);
|
|
64
79
|
};
|
|
65
80
|
RPC.prototype.getBalanceAtTopoheight = function (params) {
|
|
66
|
-
return this.
|
|
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.
|
|
84
|
+
return this.request(RPCMethod.GetNonce, params);
|
|
73
85
|
};
|
|
74
86
|
RPC.prototype.hasNonce = function (params) {
|
|
75
|
-
return this.
|
|
87
|
+
return this.request(RPCMethod.HasNonce, params);
|
|
76
88
|
};
|
|
77
89
|
RPC.prototype.getNonceAtTopoheight = function (params) {
|
|
78
|
-
return this.
|
|
90
|
+
return this.request(RPCMethod.GetNonceAtTopoheight, params);
|
|
79
91
|
};
|
|
80
92
|
RPC.prototype.getAsset = function (params) {
|
|
81
|
-
return this.
|
|
93
|
+
return this.request(RPCMethod.GetAsset, params);
|
|
82
94
|
};
|
|
83
95
|
RPC.prototype.getAssets = function (params) {
|
|
84
|
-
return this.
|
|
96
|
+
return this.request(RPCMethod.GetAssets, params);
|
|
85
97
|
};
|
|
86
98
|
RPC.prototype.countAssets = function () {
|
|
87
|
-
return this.
|
|
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.
|
|
105
|
+
return this.request(RPCMethod.CountAccounts);
|
|
91
106
|
};
|
|
92
|
-
RPC.prototype.
|
|
93
|
-
return this.
|
|
107
|
+
RPC.prototype.countContracts = function () {
|
|
108
|
+
return this.request(RPCMethod.CountContracts);
|
|
94
109
|
};
|
|
95
110
|
RPC.prototype.submitTransaction = function (hexData) {
|
|
96
|
-
return this.
|
|
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.
|
|
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.
|
|
126
|
+
return this.request(RPCMethod.P2PStatus);
|
|
103
127
|
};
|
|
104
128
|
RPC.prototype.getPeers = function () {
|
|
105
|
-
return this.
|
|
129
|
+
return this.request(RPCMethod.GetPeers);
|
|
106
130
|
};
|
|
107
131
|
RPC.prototype.getMemPool = function () {
|
|
108
|
-
return this.
|
|
132
|
+
return this.request(RPCMethod.GetMempool);
|
|
109
133
|
};
|
|
110
|
-
RPC.prototype.
|
|
111
|
-
return this.
|
|
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.
|
|
141
|
+
return this.request(RPCMethod.GetDAGOrder, params);
|
|
115
142
|
};
|
|
116
143
|
RPC.prototype.getBlocksRangeByTopoheight = function (params) {
|
|
117
|
-
return this.
|
|
144
|
+
return this.request(RPCMethod.GetBlocksRangeByTopoheight, params);
|
|
118
145
|
};
|
|
119
146
|
RPC.prototype.getBlocksRangeByHeight = function (params) {
|
|
120
|
-
return this.
|
|
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.
|
|
150
|
+
return this.request(RPCMethod.GetAccountHistory, params);
|
|
127
151
|
};
|
|
128
152
|
RPC.prototype.getAccountAssets = function (address) {
|
|
129
|
-
return this.
|
|
153
|
+
return this.request(RPCMethod.GetAccountAssets, { address: address });
|
|
130
154
|
};
|
|
131
155
|
RPC.prototype.getAccounts = function (params) {
|
|
132
|
-
return this.
|
|
156
|
+
return this.request(RPCMethod.GetAccounts, params);
|
|
133
157
|
};
|
|
134
|
-
RPC.prototype.
|
|
135
|
-
return this.
|
|
158
|
+
RPC.prototype.isAccountRegistered = function (params) {
|
|
159
|
+
return this.request(RPCMethod.IsAccountRegistered, params);
|
|
136
160
|
};
|
|
137
|
-
RPC.prototype.
|
|
138
|
-
return this.
|
|
161
|
+
RPC.prototype.getAccountRegistrationTopoheight = function (address) {
|
|
162
|
+
return this.request(RPCMethod.GetAccountRegistrationTopoheight, { address: address });
|
|
139
163
|
};
|
|
140
|
-
RPC.prototype.
|
|
141
|
-
return this.
|
|
164
|
+
RPC.prototype.validateAddress = function (params) {
|
|
165
|
+
return this.request(RPCMethod.ValidateAddress, params);
|
|
142
166
|
};
|
|
143
|
-
RPC.prototype.
|
|
144
|
-
return this.
|
|
167
|
+
RPC.prototype.splitAddress = function (params) {
|
|
168
|
+
return this.request(RPCMethod.SplitAddress, params);
|
|
145
169
|
};
|
|
146
|
-
RPC.prototype.
|
|
147
|
-
return this.
|
|
170
|
+
RPC.prototype.extractKeyFromAddress = function (params) {
|
|
171
|
+
return this.request(RPCMethod.ExtractKeyFromAddress, params);
|
|
148
172
|
};
|
|
149
|
-
RPC.prototype.
|
|
150
|
-
return this.
|
|
173
|
+
RPC.prototype.makeIntegratedAddress = function (params) {
|
|
174
|
+
return this.request(RPCMethod.MakeIntegratedAddress, params);
|
|
151
175
|
};
|
|
152
|
-
RPC.prototype.
|
|
153
|
-
return this.
|
|
176
|
+
RPC.prototype.decryptExtraData = function (params) {
|
|
177
|
+
return this.request(RPCMethod.DecryptExtraData, params);
|
|
154
178
|
};
|
|
155
|
-
RPC.prototype.
|
|
156
|
-
return this.
|
|
179
|
+
RPC.prototype.getMultisigAtTopoheight = function (params) {
|
|
180
|
+
return this.request(RPCMethod.GetMultisigAtTopoheight, params);
|
|
157
181
|
};
|
|
158
|
-
RPC.prototype.
|
|
159
|
-
return this.
|
|
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.
|
|
213
|
+
return this.request(RPCMethod.GetMinerWork, params);
|
|
163
214
|
};
|
|
164
|
-
RPC.prototype.
|
|
165
|
-
return this.
|
|
215
|
+
RPC.prototype.submitBlock = function (params) {
|
|
216
|
+
return this.request(RPCMethod.SubmitBlock, params);
|
|
166
217
|
};
|
|
167
218
|
return RPC;
|
|
168
|
-
}(
|
|
219
|
+
}(HttpRPC));
|
|
169
220
|
export { RPC };
|
|
170
221
|
export default RPC;
|
package/dist/esm/daemon/types.js
CHANGED
|
@@ -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["
|
|
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["
|
|
39
|
-
RPCMethod["
|
|
40
|
-
RPCMethod["
|
|
41
|
-
RPCMethod["
|
|
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["
|
|
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["
|
|
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["
|
|
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["
|
|
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 = {}));
|