@taquito/rpc 23.0.3 → 24.0.0-beta.0
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/lib/rpc-client-interface.js +1 -1
- package/dist/lib/rpc-client-modules/rpc-cache.js +24 -38
- package/dist/lib/taquito-rpc.js +15 -35
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +43 -77
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +43 -77
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/rpc-client-interface.d.ts +4 -6
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +15 -26
- package/dist/types/taquito-rpc.d.ts +8 -19
- package/dist/types/types.d.ts +37 -15
- package/package.json +10 -8
|
@@ -8,7 +8,6 @@ var RPCMethodName;
|
|
|
8
8
|
RPCMethodName["GET_BAKING_RIGHTS"] = "getBakingRights";
|
|
9
9
|
RPCMethodName["GET_BALLOTS"] = "getBallots";
|
|
10
10
|
RPCMethodName["GET_BALLOT_LIST"] = "getBallotList";
|
|
11
|
-
RPCMethodName["GET_BIG_MAP_KEY"] = "getBigMapKey";
|
|
12
11
|
RPCMethodName["GET_BIG_MAP_EXPR"] = "getBigMapExpr";
|
|
13
12
|
RPCMethodName["GET_BLOCK_HASH"] = "getBlockHash";
|
|
14
13
|
RPCMethodName["GET_BLOCK"] = "getBlock";
|
|
@@ -56,4 +55,5 @@ var RPCMethodName;
|
|
|
56
55
|
RPCMethodName["GET_ALL_TICKET_BALANCES"] = "getAllTicketBalances";
|
|
57
56
|
RPCMethodName["GET_ADAPTIVE_ISSUANCE_LAUNCH_CYCLE"] = "getAdaptiveIssuanceLaunchCycle";
|
|
58
57
|
RPCMethodName["GET_PENDING_OPERATIONS"] = "getPendingOperations";
|
|
58
|
+
RPCMethodName["GET_DESTINATION_INDEX"] = "getDestinationIndex";
|
|
59
59
|
})(RPCMethodName || (exports.RPCMethodName = RPCMethodName = {}));
|
|
@@ -459,27 +459,6 @@ class RpcClientCache {
|
|
|
459
459
|
}
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
/**
|
|
463
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
464
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
465
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
466
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
467
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
468
|
-
*/
|
|
469
|
-
getBigMapKey(address_1, key_1) {
|
|
470
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = rpc_client_interface_2.defaultRPCOptions) {
|
|
471
|
-
this.validateAddress(address);
|
|
472
|
-
const keyUrl = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_BIG_MAP_KEY, [block, address], key);
|
|
473
|
-
if (this.has(keyUrl)) {
|
|
474
|
-
return this.get(keyUrl);
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
const response = this.rpcClient.getBigMapKey(address, key, { block });
|
|
478
|
-
this.put(keyUrl, response);
|
|
479
|
-
return response;
|
|
480
|
-
}
|
|
481
|
-
});
|
|
482
|
-
}
|
|
483
462
|
/**
|
|
484
463
|
* @param id Big Map ID
|
|
485
464
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -866,18 +845,6 @@ class RpcClientCache {
|
|
|
866
845
|
}
|
|
867
846
|
});
|
|
868
847
|
}
|
|
869
|
-
/**
|
|
870
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
871
|
-
* @param op Operation to run
|
|
872
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
873
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
874
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
875
|
-
*/
|
|
876
|
-
runOperation(op_1) {
|
|
877
|
-
return __awaiter(this, arguments, void 0, function* (op, { block } = rpc_client_interface_2.defaultRPCOptions) {
|
|
878
|
-
return this.rpcClient.runOperation(op, { block });
|
|
879
|
-
});
|
|
880
|
-
}
|
|
881
848
|
/**
|
|
882
849
|
* @param op Operation to simulate
|
|
883
850
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -1206,11 +1173,11 @@ class RpcClientCache {
|
|
|
1206
1173
|
});
|
|
1207
1174
|
}
|
|
1208
1175
|
/**
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1176
|
+
* @param delegate delegate address which we want to retrieve active staking parameters
|
|
1177
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1178
|
+
* @description Returns the currently active staking parameters for the given delegate
|
|
1179
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
|
|
1180
|
+
*/
|
|
1214
1181
|
getActiveStakingParameters(delegate_1) {
|
|
1215
1182
|
return __awaiter(this, arguments, void 0, function* (delegate, { block } = rpc_client_interface_2.defaultRPCOptions) {
|
|
1216
1183
|
this.validateAddress(delegate);
|
|
@@ -1245,5 +1212,24 @@ class RpcClientCache {
|
|
|
1245
1212
|
}
|
|
1246
1213
|
});
|
|
1247
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* @param destination address to retrieve the index for
|
|
1217
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1218
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
1219
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
1220
|
+
*/
|
|
1221
|
+
getDestinationIndex(destination_1) {
|
|
1222
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = rpc_client_interface_2.defaultRPCOptions) {
|
|
1223
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_DESTINATION_INDEX, [block, destination]);
|
|
1224
|
+
if (this.has(key)) {
|
|
1225
|
+
return this.get(key);
|
|
1226
|
+
}
|
|
1227
|
+
else {
|
|
1228
|
+
const response = this.rpcClient.getDestinationIndex(destination, { block });
|
|
1229
|
+
this.put(key, response);
|
|
1230
|
+
return response;
|
|
1231
|
+
}
|
|
1232
|
+
});
|
|
1233
|
+
}
|
|
1248
1234
|
}
|
|
1249
1235
|
exports.RpcClientCache = RpcClientCache;
|
package/dist/lib/taquito-rpc.js
CHANGED
|
@@ -389,22 +389,6 @@ class RpcClient {
|
|
|
389
389
|
return delegate;
|
|
390
390
|
});
|
|
391
391
|
}
|
|
392
|
-
/**
|
|
393
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
394
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
395
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
396
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
397
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
398
|
-
*/
|
|
399
|
-
getBigMapKey(address_1, key_1) {
|
|
400
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = rpc_client_interface_1.defaultRPCOptions) {
|
|
401
|
-
this.validateAddress(address);
|
|
402
|
-
return this.httpBackend.createRequest({
|
|
403
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/contracts/${address}/big_map_get`),
|
|
404
|
-
method: 'POST',
|
|
405
|
-
}, key);
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
392
|
/**
|
|
409
393
|
* @param id Big Map ID
|
|
410
394
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -775,25 +759,6 @@ class RpcClient {
|
|
|
775
759
|
return contractResponse;
|
|
776
760
|
});
|
|
777
761
|
}
|
|
778
|
-
/**
|
|
779
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
780
|
-
* @param op Operation to run
|
|
781
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
782
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
783
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
784
|
-
*/
|
|
785
|
-
runOperation(op_1) {
|
|
786
|
-
return __awaiter(this, arguments, void 0, function* (op, { block, version } = rpc_client_interface_1.defaultRPCOptions) {
|
|
787
|
-
const requestOptions = {
|
|
788
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/run_operation`),
|
|
789
|
-
method: 'POST',
|
|
790
|
-
};
|
|
791
|
-
if (version !== undefined) {
|
|
792
|
-
requestOptions.query = { version };
|
|
793
|
-
}
|
|
794
|
-
return yield this.httpBackend.createRequest(requestOptions, op);
|
|
795
|
-
});
|
|
796
|
-
}
|
|
797
762
|
/**
|
|
798
763
|
* @param op Operation to simulate
|
|
799
764
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -1104,5 +1069,20 @@ class RpcClient {
|
|
|
1104
1069
|
return response;
|
|
1105
1070
|
});
|
|
1106
1071
|
}
|
|
1072
|
+
/**
|
|
1073
|
+
* @param destination address to retrieve the index for
|
|
1074
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1075
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
1076
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
1077
|
+
*/
|
|
1078
|
+
getDestinationIndex(destination_1) {
|
|
1079
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = rpc_client_interface_1.defaultRPCOptions) {
|
|
1080
|
+
const response = yield this.httpBackend.createRequest({
|
|
1081
|
+
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/destination/${destination}/index`),
|
|
1082
|
+
method: 'GET',
|
|
1083
|
+
});
|
|
1084
|
+
return response;
|
|
1085
|
+
});
|
|
1086
|
+
}
|
|
1107
1087
|
}
|
|
1108
1088
|
exports.RpcClient = RpcClient;
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "
|
|
6
|
+
"commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
|
|
7
|
+
"version": "24.0.0-beta.0"
|
|
8
8
|
};
|
package/dist/taquito-rpc.es6.js
CHANGED
|
@@ -17,7 +17,7 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
|
17
17
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
18
18
|
PERFORMANCE OF THIS SOFTWARE.
|
|
19
19
|
***************************************************************************** */
|
|
20
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
20
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
function __rest(s, e) {
|
|
@@ -54,7 +54,6 @@ var RPCMethodName;
|
|
|
54
54
|
RPCMethodName["GET_BAKING_RIGHTS"] = "getBakingRights";
|
|
55
55
|
RPCMethodName["GET_BALLOTS"] = "getBallots";
|
|
56
56
|
RPCMethodName["GET_BALLOT_LIST"] = "getBallotList";
|
|
57
|
-
RPCMethodName["GET_BIG_MAP_KEY"] = "getBigMapKey";
|
|
58
57
|
RPCMethodName["GET_BIG_MAP_EXPR"] = "getBigMapExpr";
|
|
59
58
|
RPCMethodName["GET_BLOCK_HASH"] = "getBlockHash";
|
|
60
59
|
RPCMethodName["GET_BLOCK"] = "getBlock";
|
|
@@ -102,6 +101,7 @@ var RPCMethodName;
|
|
|
102
101
|
RPCMethodName["GET_ALL_TICKET_BALANCES"] = "getAllTicketBalances";
|
|
103
102
|
RPCMethodName["GET_ADAPTIVE_ISSUANCE_LAUNCH_CYCLE"] = "getAdaptiveIssuanceLaunchCycle";
|
|
104
103
|
RPCMethodName["GET_PENDING_OPERATIONS"] = "getPendingOperations";
|
|
104
|
+
RPCMethodName["GET_DESTINATION_INDEX"] = "getDestinationIndex";
|
|
105
105
|
})(RPCMethodName || (RPCMethodName = {}));
|
|
106
106
|
|
|
107
107
|
/**
|
|
@@ -567,27 +567,6 @@ class RpcClientCache {
|
|
|
567
567
|
}
|
|
568
568
|
});
|
|
569
569
|
}
|
|
570
|
-
/**
|
|
571
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
572
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
573
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
574
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
575
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
576
|
-
*/
|
|
577
|
-
getBigMapKey(address_1, key_1) {
|
|
578
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = defaultRPCOptions) {
|
|
579
|
-
this.validateAddress(address);
|
|
580
|
-
const keyUrl = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BIG_MAP_KEY, [block, address], key);
|
|
581
|
-
if (this.has(keyUrl)) {
|
|
582
|
-
return this.get(keyUrl);
|
|
583
|
-
}
|
|
584
|
-
else {
|
|
585
|
-
const response = this.rpcClient.getBigMapKey(address, key, { block });
|
|
586
|
-
this.put(keyUrl, response);
|
|
587
|
-
return response;
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
570
|
/**
|
|
592
571
|
* @param id Big Map ID
|
|
593
572
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -974,18 +953,6 @@ class RpcClientCache {
|
|
|
974
953
|
}
|
|
975
954
|
});
|
|
976
955
|
}
|
|
977
|
-
/**
|
|
978
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
979
|
-
* @param op Operation to run
|
|
980
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
981
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
982
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
983
|
-
*/
|
|
984
|
-
runOperation(op_1) {
|
|
985
|
-
return __awaiter(this, arguments, void 0, function* (op, { block } = defaultRPCOptions) {
|
|
986
|
-
return this.rpcClient.runOperation(op, { block });
|
|
987
|
-
});
|
|
988
|
-
}
|
|
989
956
|
/**
|
|
990
957
|
* @param op Operation to simulate
|
|
991
958
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -1314,11 +1281,11 @@ class RpcClientCache {
|
|
|
1314
1281
|
});
|
|
1315
1282
|
}
|
|
1316
1283
|
/**
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1284
|
+
* @param delegate delegate address which we want to retrieve active staking parameters
|
|
1285
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1286
|
+
* @description Returns the currently active staking parameters for the given delegate
|
|
1287
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
|
|
1288
|
+
*/
|
|
1322
1289
|
getActiveStakingParameters(delegate_1) {
|
|
1323
1290
|
return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
|
|
1324
1291
|
this.validateAddress(delegate);
|
|
@@ -1353,6 +1320,25 @@ class RpcClientCache {
|
|
|
1353
1320
|
}
|
|
1354
1321
|
});
|
|
1355
1322
|
}
|
|
1323
|
+
/**
|
|
1324
|
+
* @param destination address to retrieve the index for
|
|
1325
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1326
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
1327
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
1328
|
+
*/
|
|
1329
|
+
getDestinationIndex(destination_1) {
|
|
1330
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = defaultRPCOptions) {
|
|
1331
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_DESTINATION_INDEX, [block, destination]);
|
|
1332
|
+
if (this.has(key)) {
|
|
1333
|
+
return this.get(key);
|
|
1334
|
+
}
|
|
1335
|
+
else {
|
|
1336
|
+
const response = this.rpcClient.getDestinationIndex(destination, { block });
|
|
1337
|
+
this.put(key, response);
|
|
1338
|
+
return response;
|
|
1339
|
+
}
|
|
1340
|
+
});
|
|
1341
|
+
}
|
|
1356
1342
|
}
|
|
1357
1343
|
|
|
1358
1344
|
var OPERATION_METADATA;
|
|
@@ -1516,8 +1502,8 @@ var OpKind;
|
|
|
1516
1502
|
|
|
1517
1503
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1518
1504
|
const VERSION = {
|
|
1519
|
-
"commitHash": "
|
|
1520
|
-
"version": "
|
|
1505
|
+
"commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
|
|
1506
|
+
"version": "24.0.0-beta.0"
|
|
1521
1507
|
};
|
|
1522
1508
|
|
|
1523
1509
|
/***
|
|
@@ -1852,22 +1838,6 @@ class RpcClient {
|
|
|
1852
1838
|
return delegate;
|
|
1853
1839
|
});
|
|
1854
1840
|
}
|
|
1855
|
-
/**
|
|
1856
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
1857
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
1858
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1859
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
1860
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
1861
|
-
*/
|
|
1862
|
-
getBigMapKey(address_1, key_1) {
|
|
1863
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = defaultRPCOptions) {
|
|
1864
|
-
this.validateAddress(address);
|
|
1865
|
-
return this.httpBackend.createRequest({
|
|
1866
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/contracts/${address}/big_map_get`),
|
|
1867
|
-
method: 'POST',
|
|
1868
|
-
}, key);
|
|
1869
|
-
});
|
|
1870
|
-
}
|
|
1871
1841
|
/**
|
|
1872
1842
|
* @param id Big Map ID
|
|
1873
1843
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -2238,25 +2208,6 @@ class RpcClient {
|
|
|
2238
2208
|
return contractResponse;
|
|
2239
2209
|
});
|
|
2240
2210
|
}
|
|
2241
|
-
/**
|
|
2242
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
2243
|
-
* @param op Operation to run
|
|
2244
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
2245
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
2246
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
2247
|
-
*/
|
|
2248
|
-
runOperation(op_1) {
|
|
2249
|
-
return __awaiter(this, arguments, void 0, function* (op, { block, version } = defaultRPCOptions) {
|
|
2250
|
-
const requestOptions = {
|
|
2251
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/run_operation`),
|
|
2252
|
-
method: 'POST',
|
|
2253
|
-
};
|
|
2254
|
-
if (version !== undefined) {
|
|
2255
|
-
requestOptions.query = { version };
|
|
2256
|
-
}
|
|
2257
|
-
return yield this.httpBackend.createRequest(requestOptions, op);
|
|
2258
|
-
});
|
|
2259
|
-
}
|
|
2260
2211
|
/**
|
|
2261
2212
|
* @param op Operation to simulate
|
|
2262
2213
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -2567,6 +2518,21 @@ class RpcClient {
|
|
|
2567
2518
|
return response;
|
|
2568
2519
|
});
|
|
2569
2520
|
}
|
|
2521
|
+
/**
|
|
2522
|
+
* @param destination address to retrieve the index for
|
|
2523
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
2524
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
2525
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
2526
|
+
*/
|
|
2527
|
+
getDestinationIndex(destination_1) {
|
|
2528
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = defaultRPCOptions) {
|
|
2529
|
+
const response = yield this.httpBackend.createRequest({
|
|
2530
|
+
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/destination/${destination}/index`),
|
|
2531
|
+
method: 'GET',
|
|
2532
|
+
});
|
|
2533
|
+
return response;
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2570
2536
|
}
|
|
2571
2537
|
|
|
2572
2538
|
export { METADATA_BALANCE_UPDATES_CATEGORY, OPERATION_METADATA, OpKind, PvmKind, RpcClient, RpcClientCache, SmartRollupInputProofKind, SmartRollupRefutationOptions, SmartRollupRefuteGameEndedPlayerOutcomes, SmartRollupRefuteGameEndedReason, SmartRollupRefuteGameStatusOptions, SmartRollupRefuteRevealProofKind, VERSION, castToBigNumber, defaultChain, defaultRPCOptions };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-rpc.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-rpc.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
19
19
|
PERFORMANCE OF THIS SOFTWARE.
|
|
20
20
|
***************************************************************************** */
|
|
21
|
-
/* global Reflect, Promise, SuppressedError, Symbol */
|
|
21
|
+
/* global Reflect, Promise, SuppressedError, Symbol, Iterator */
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
function __rest(s, e) {
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
RPCMethodName["GET_BAKING_RIGHTS"] = "getBakingRights";
|
|
56
56
|
RPCMethodName["GET_BALLOTS"] = "getBallots";
|
|
57
57
|
RPCMethodName["GET_BALLOT_LIST"] = "getBallotList";
|
|
58
|
-
RPCMethodName["GET_BIG_MAP_KEY"] = "getBigMapKey";
|
|
59
58
|
RPCMethodName["GET_BIG_MAP_EXPR"] = "getBigMapExpr";
|
|
60
59
|
RPCMethodName["GET_BLOCK_HASH"] = "getBlockHash";
|
|
61
60
|
RPCMethodName["GET_BLOCK"] = "getBlock";
|
|
@@ -103,6 +102,7 @@
|
|
|
103
102
|
RPCMethodName["GET_ALL_TICKET_BALANCES"] = "getAllTicketBalances";
|
|
104
103
|
RPCMethodName["GET_ADAPTIVE_ISSUANCE_LAUNCH_CYCLE"] = "getAdaptiveIssuanceLaunchCycle";
|
|
105
104
|
RPCMethodName["GET_PENDING_OPERATIONS"] = "getPendingOperations";
|
|
105
|
+
RPCMethodName["GET_DESTINATION_INDEX"] = "getDestinationIndex";
|
|
106
106
|
})(RPCMethodName || (RPCMethodName = {}));
|
|
107
107
|
|
|
108
108
|
/**
|
|
@@ -568,27 +568,6 @@
|
|
|
568
568
|
}
|
|
569
569
|
});
|
|
570
570
|
}
|
|
571
|
-
/**
|
|
572
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
573
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
574
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
575
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
576
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
577
|
-
*/
|
|
578
|
-
getBigMapKey(address_1, key_1) {
|
|
579
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = defaultRPCOptions) {
|
|
580
|
-
this.validateAddress(address);
|
|
581
|
-
const keyUrl = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_BIG_MAP_KEY, [block, address], key);
|
|
582
|
-
if (this.has(keyUrl)) {
|
|
583
|
-
return this.get(keyUrl);
|
|
584
|
-
}
|
|
585
|
-
else {
|
|
586
|
-
const response = this.rpcClient.getBigMapKey(address, key, { block });
|
|
587
|
-
this.put(keyUrl, response);
|
|
588
|
-
return response;
|
|
589
|
-
}
|
|
590
|
-
});
|
|
591
|
-
}
|
|
592
571
|
/**
|
|
593
572
|
* @param id Big Map ID
|
|
594
573
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -975,18 +954,6 @@
|
|
|
975
954
|
}
|
|
976
955
|
});
|
|
977
956
|
}
|
|
978
|
-
/**
|
|
979
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
980
|
-
* @param op Operation to run
|
|
981
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
982
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
983
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
984
|
-
*/
|
|
985
|
-
runOperation(op_1) {
|
|
986
|
-
return __awaiter(this, arguments, void 0, function* (op, { block } = defaultRPCOptions) {
|
|
987
|
-
return this.rpcClient.runOperation(op, { block });
|
|
988
|
-
});
|
|
989
|
-
}
|
|
990
957
|
/**
|
|
991
958
|
* @param op Operation to simulate
|
|
992
959
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -1315,11 +1282,11 @@
|
|
|
1315
1282
|
});
|
|
1316
1283
|
}
|
|
1317
1284
|
/**
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1285
|
+
* @param delegate delegate address which we want to retrieve active staking parameters
|
|
1286
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1287
|
+
* @description Returns the currently active staking parameters for the given delegate
|
|
1288
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
|
|
1289
|
+
*/
|
|
1323
1290
|
getActiveStakingParameters(delegate_1) {
|
|
1324
1291
|
return __awaiter(this, arguments, void 0, function* (delegate, { block } = defaultRPCOptions) {
|
|
1325
1292
|
this.validateAddress(delegate);
|
|
@@ -1354,6 +1321,25 @@
|
|
|
1354
1321
|
}
|
|
1355
1322
|
});
|
|
1356
1323
|
}
|
|
1324
|
+
/**
|
|
1325
|
+
* @param destination address to retrieve the index for
|
|
1326
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1327
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
1328
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
1329
|
+
*/
|
|
1330
|
+
getDestinationIndex(destination_1) {
|
|
1331
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = defaultRPCOptions) {
|
|
1332
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_DESTINATION_INDEX, [block, destination]);
|
|
1333
|
+
if (this.has(key)) {
|
|
1334
|
+
return this.get(key);
|
|
1335
|
+
}
|
|
1336
|
+
else {
|
|
1337
|
+
const response = this.rpcClient.getDestinationIndex(destination, { block });
|
|
1338
|
+
this.put(key, response);
|
|
1339
|
+
return response;
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
}
|
|
1357
1343
|
}
|
|
1358
1344
|
|
|
1359
1345
|
exports.OPERATION_METADATA = void 0;
|
|
@@ -1517,8 +1503,8 @@
|
|
|
1517
1503
|
|
|
1518
1504
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1519
1505
|
const VERSION = {
|
|
1520
|
-
"commitHash": "
|
|
1521
|
-
"version": "
|
|
1506
|
+
"commitHash": "7912b77f57f943dff619383900bd46a7a593a244",
|
|
1507
|
+
"version": "24.0.0-beta.0"
|
|
1522
1508
|
};
|
|
1523
1509
|
|
|
1524
1510
|
/***
|
|
@@ -1853,22 +1839,6 @@
|
|
|
1853
1839
|
return delegate;
|
|
1854
1840
|
});
|
|
1855
1841
|
}
|
|
1856
|
-
/**
|
|
1857
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
1858
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
1859
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1860
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
1861
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
1862
|
-
*/
|
|
1863
|
-
getBigMapKey(address_1, key_1) {
|
|
1864
|
-
return __awaiter(this, arguments, void 0, function* (address, key, { block } = defaultRPCOptions) {
|
|
1865
|
-
this.validateAddress(address);
|
|
1866
|
-
return this.httpBackend.createRequest({
|
|
1867
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/contracts/${address}/big_map_get`),
|
|
1868
|
-
method: 'POST',
|
|
1869
|
-
}, key);
|
|
1870
|
-
});
|
|
1871
|
-
}
|
|
1872
1842
|
/**
|
|
1873
1843
|
* @param id Big Map ID
|
|
1874
1844
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -2239,25 +2209,6 @@
|
|
|
2239
2209
|
return contractResponse;
|
|
2240
2210
|
});
|
|
2241
2211
|
}
|
|
2242
|
-
/**
|
|
2243
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
2244
|
-
* @param op Operation to run
|
|
2245
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
2246
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
2247
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
2248
|
-
*/
|
|
2249
|
-
runOperation(op_1) {
|
|
2250
|
-
return __awaiter(this, arguments, void 0, function* (op, { block, version } = defaultRPCOptions) {
|
|
2251
|
-
const requestOptions = {
|
|
2252
|
-
url: this.createURL(`/chains/${this.chain}/blocks/${block}/helpers/scripts/run_operation`),
|
|
2253
|
-
method: 'POST',
|
|
2254
|
-
};
|
|
2255
|
-
if (version !== undefined) {
|
|
2256
|
-
requestOptions.query = { version };
|
|
2257
|
-
}
|
|
2258
|
-
return yield this.httpBackend.createRequest(requestOptions, op);
|
|
2259
|
-
});
|
|
2260
|
-
}
|
|
2261
2212
|
/**
|
|
2262
2213
|
* @param op Operation to simulate
|
|
2263
2214
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -2568,6 +2519,21 @@
|
|
|
2568
2519
|
return response;
|
|
2569
2520
|
});
|
|
2570
2521
|
}
|
|
2522
|
+
/**
|
|
2523
|
+
* @param destination address to retrieve the index for
|
|
2524
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
2525
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
2526
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
2527
|
+
*/
|
|
2528
|
+
getDestinationIndex(destination_1) {
|
|
2529
|
+
return __awaiter(this, arguments, void 0, function* (destination, { block } = defaultRPCOptions) {
|
|
2530
|
+
const response = yield this.httpBackend.createRequest({
|
|
2531
|
+
url: this.createURL(`/chains/${this.chain}/blocks/${block}/context/destination/${destination}/index`),
|
|
2532
|
+
method: 'GET',
|
|
2533
|
+
});
|
|
2534
|
+
return response;
|
|
2535
|
+
});
|
|
2536
|
+
}
|
|
2571
2537
|
}
|
|
2572
2538
|
|
|
2573
2539
|
exports.RpcClient = RpcClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taquito-rpc.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taquito-rpc.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse } from './types';
|
|
1
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse, DestinationIndexResponse } from './types';
|
|
3
2
|
export interface RPCOptions {
|
|
4
3
|
block: string;
|
|
5
4
|
version?: 1 | '1';
|
|
@@ -24,7 +23,6 @@ export interface RpcClientInterface {
|
|
|
24
23
|
getContract(address: string, options?: RPCOptions): Promise<ContractResponse>;
|
|
25
24
|
getManagerKey(address: string, options?: RPCOptions): Promise<ManagerKeyResponse>;
|
|
26
25
|
getDelegate(address: string, options?: RPCOptions): Promise<DelegateResponse>;
|
|
27
|
-
getBigMapKey(address: string, key: BigMapKey, options?: RPCOptions): Promise<BigMapGetResponse>;
|
|
28
26
|
getBigMapExpr(id: string, expr: string, options?: RPCOptions): Promise<BigMapResponse>;
|
|
29
27
|
getAllDelegates(args: AllDelegatesQueryArguments, options?: RPCOptions): Promise<string[]>;
|
|
30
28
|
getDelegates(address: string, options?: RPCOptions): Promise<DelegatesResponse>;
|
|
@@ -45,7 +43,6 @@ export interface RpcClientInterface {
|
|
|
45
43
|
injectOperation(signedOpBytes: string): Promise<OperationHash>;
|
|
46
44
|
preapplyOperations(ops: PreapplyParams, options?: RPCOptions): Promise<PreapplyResponse[]>;
|
|
47
45
|
getEntrypoints(contract: string, options?: RPCOptions): Promise<EntrypointsResponse>;
|
|
48
|
-
runOperation(op: RPCRunOperationParam, options?: RPCOptions): Promise<PreapplyResponse>;
|
|
49
46
|
simulateOperation(op: RPCSimulateOperationParam, options?: RPCOptions): Promise<PreapplyResponse>;
|
|
50
47
|
runCode(code: RPCRunCodeParam, options?: RPCOptions): Promise<RunCodeResult>;
|
|
51
48
|
runScriptView(viewScriptParams: RPCRunScriptViewParam, options?: RPCOptions): Promise<RunScriptViewResult>;
|
|
@@ -70,12 +67,12 @@ export interface RpcClientInterface {
|
|
|
70
67
|
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
71
68
|
getActiveStakingParameters(delegate: string, options?: RPCOptions): Promise<ActiveStakingParametersResponse>;
|
|
72
69
|
getPendingStakingParameters(delegate: string, options?: RPCOptions): Promise<PendingStakingParametersResponse>;
|
|
70
|
+
getDestinationIndex(destination: string, options?: RPCOptions): Promise<DestinationIndexResponse>;
|
|
73
71
|
}
|
|
74
72
|
export declare enum RPCMethodName {
|
|
75
73
|
GET_BAKING_RIGHTS = "getBakingRights",
|
|
76
74
|
GET_BALLOTS = "getBallots",
|
|
77
75
|
GET_BALLOT_LIST = "getBallotList",
|
|
78
|
-
GET_BIG_MAP_KEY = "getBigMapKey",
|
|
79
76
|
GET_BIG_MAP_EXPR = "getBigMapExpr",
|
|
80
77
|
GET_BLOCK_HASH = "getBlockHash",
|
|
81
78
|
GET_BLOCK = "getBlock",
|
|
@@ -122,5 +119,6 @@ export declare enum RPCMethodName {
|
|
|
122
119
|
GET_TICKET_BALANCE = "getTicketBalance",
|
|
123
120
|
GET_ALL_TICKET_BALANCES = "getAllTicketBalances",
|
|
124
121
|
GET_ADAPTIVE_ISSUANCE_LAUNCH_CYCLE = "getAdaptiveIssuanceLaunchCycle",
|
|
125
|
-
GET_PENDING_OPERATIONS = "getPendingOperations"
|
|
122
|
+
GET_PENDING_OPERATIONS = "getPendingOperations",
|
|
123
|
+
GET_DESTINATION_INDEX = "getDestinationIndex"
|
|
126
124
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import BigNumber from 'bignumber.js';
|
|
2
2
|
import { RpcClientInterface, RPCOptions } from '../rpc-client-interface';
|
|
3
|
-
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse,
|
|
3
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, DestinationIndexResponse, PendingStakingParametersResponse, ActiveStakingParametersResponse } from '../types';
|
|
4
4
|
interface CachedDataInterface {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
handle: () => void;
|
|
@@ -161,16 +161,6 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
161
161
|
getDelegate(address: string, { block }?: {
|
|
162
162
|
block: string;
|
|
163
163
|
}): Promise<DelegateResponse>;
|
|
164
|
-
/**
|
|
165
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
166
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
167
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
168
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
169
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
170
|
-
*/
|
|
171
|
-
getBigMapKey(address: string, key: BigMapKey, { block }?: {
|
|
172
|
-
block: string;
|
|
173
|
-
}): Promise<BigMapGetResponse>;
|
|
174
164
|
/**
|
|
175
165
|
* @param id Big Map ID
|
|
176
166
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -313,14 +303,6 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
313
303
|
* @version 005_PsBABY5H
|
|
314
304
|
*/
|
|
315
305
|
getEntrypoints(contract: string, { block }?: RPCOptions): Promise<EntrypointsResponse>;
|
|
316
|
-
/**
|
|
317
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
318
|
-
* @param op Operation to run
|
|
319
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
320
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
321
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
322
|
-
*/
|
|
323
|
-
runOperation(op: RPCRunOperationParam, { block }?: RPCOptions): Promise<PreapplyResponse>;
|
|
324
306
|
/**
|
|
325
307
|
* @param op Operation to simulate
|
|
326
308
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -462,18 +444,25 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
462
444
|
*/
|
|
463
445
|
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
464
446
|
/**
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
getActiveStakingParameters(delegate: string, { block }?: RPCOptions): Promise<
|
|
447
|
+
* @param delegate delegate address which we want to retrieve active staking parameters
|
|
448
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
449
|
+
* @description Returns the currently active staking parameters for the given delegate
|
|
450
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-active-staking-parameters
|
|
451
|
+
*/
|
|
452
|
+
getActiveStakingParameters(delegate: string, { block }?: RPCOptions): Promise<ActiveStakingParametersResponse>;
|
|
471
453
|
/**
|
|
472
454
|
* @param delegate delegate address which we want to retrieve pending staking parameters
|
|
473
455
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
474
456
|
* @description Returns the pending values for the given delegate's staking parameters
|
|
475
457
|
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
|
|
476
458
|
*/
|
|
477
|
-
getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<
|
|
459
|
+
getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<PendingStakingParametersResponse>;
|
|
460
|
+
/**
|
|
461
|
+
* @param destination address to retrieve the index for
|
|
462
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
463
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
464
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
465
|
+
*/
|
|
466
|
+
getDestinationIndex(destination: string, { block }?: RPCOptions): Promise<DestinationIndexResponse>;
|
|
478
467
|
}
|
|
479
468
|
export {};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { HttpBackend } from '@taquito/http-utils';
|
|
6
6
|
import BigNumber from 'bignumber.js';
|
|
7
7
|
import { RpcClientInterface, RPCOptions } from './rpc-client-interface';
|
|
8
|
-
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse,
|
|
8
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse, ActiveStakingParametersResponse, PendingStakingParametersResponse, DestinationIndexResponse } from './types';
|
|
9
9
|
export { castToBigNumber } from './utils/utils';
|
|
10
10
|
export { RPCOptions, defaultChain, defaultRPCOptions, RpcClientInterface, } from './rpc-client-interface';
|
|
11
11
|
export { RpcClientCache } from './rpc-client-modules/rpc-cache';
|
|
@@ -160,16 +160,6 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
160
160
|
getDelegate(address: string, { block }?: {
|
|
161
161
|
block: string;
|
|
162
162
|
}): Promise<DelegateResponse>;
|
|
163
|
-
/**
|
|
164
|
-
* @deprecated Deprecated in favor of getBigMapKeyByID
|
|
165
|
-
* @param address contract address from which we want to retrieve the big map key
|
|
166
|
-
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
167
|
-
* @description Access the value associated with a key in the big map storage of the contract.
|
|
168
|
-
* @see https://tezos.gitlab.io/active/rpc.html#post-block-id-context-contracts-contract-id-big-map-get
|
|
169
|
-
*/
|
|
170
|
-
getBigMapKey(address: string, key: BigMapKey, { block }?: {
|
|
171
|
-
block: string;
|
|
172
|
-
}): Promise<BigMapGetResponse>;
|
|
173
163
|
/**
|
|
174
164
|
* @param id Big Map ID
|
|
175
165
|
* @param expr Expression hash to query (A b58check encoded Blake2b hash of the expression (The expression can be packed using the pack_data method))
|
|
@@ -312,14 +302,6 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
312
302
|
* @version 005_PsBABY5H
|
|
313
303
|
*/
|
|
314
304
|
getEntrypoints(contract: string, { block }?: RPCOptions): Promise<EntrypointsResponse>;
|
|
315
|
-
/**
|
|
316
|
-
* @deprecated Deprecated in favor of simulateOperation
|
|
317
|
-
* @param op Operation to run
|
|
318
|
-
* @param options contains generic configuration for rpc calls to specified block and version
|
|
319
|
-
* @description Run an operation with the context of the given block and without signature checks and return the operation application result, including the consumed gas.
|
|
320
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/alpha-openapi.json
|
|
321
|
-
*/
|
|
322
|
-
runOperation(op: RPCRunOperationParam, { block, version }?: RPCOptions): Promise<PreapplyResponse>;
|
|
323
305
|
/**
|
|
324
306
|
* @param op Operation to simulate
|
|
325
307
|
* @param options contains generic configuration for rpc calls to specified block and version
|
|
@@ -481,4 +463,11 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
481
463
|
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-context-delegates-pkh-pending-staking-parameters
|
|
482
464
|
*/
|
|
483
465
|
getPendingStakingParameters(delegate: string, { block }?: RPCOptions): Promise<PendingStakingParametersResponse>;
|
|
466
|
+
/**
|
|
467
|
+
* @param destination address to retrieve the index for
|
|
468
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
469
|
+
* @description Returns the index assigned to the address if it was indexed by the opcode INDEX_ADDRESS, otherwise returns null
|
|
470
|
+
* @see https://octez.tezos.com/docs/alpha/rpc.html#get-block-id-context-destination-destination-id-index
|
|
471
|
+
*/
|
|
472
|
+
getDestinationIndex(destination: string, { block }?: RPCOptions): Promise<DestinationIndexResponse>;
|
|
484
473
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -158,6 +158,10 @@ export type PendingConsensusKey = {
|
|
|
158
158
|
cycle: number;
|
|
159
159
|
pkh: string;
|
|
160
160
|
};
|
|
161
|
+
export type ConsensusPower = {
|
|
162
|
+
slots: number;
|
|
163
|
+
baking_power: number;
|
|
164
|
+
};
|
|
161
165
|
export type VotingInfoResponse = {
|
|
162
166
|
voting_power?: string;
|
|
163
167
|
current_ballot?: BallotListResponseEnum;
|
|
@@ -197,7 +201,6 @@ export interface BlockFullHeader {
|
|
|
197
201
|
proof_of_work_nonce: string;
|
|
198
202
|
seed_nonce_hash?: string;
|
|
199
203
|
liquidity_baking_toggle_vote?: LiquidityBakingToggleVotes;
|
|
200
|
-
adaptive_issuance_vote?: AdaptiveIssuanceVote;
|
|
201
204
|
liquidity_baking_escape_vote?: boolean | LiquidityBakingToggleVotes;
|
|
202
205
|
signature: string;
|
|
203
206
|
}
|
|
@@ -594,7 +597,7 @@ export type OperationContents = OperationContentsAttestation | OperationContents
|
|
|
594
597
|
export interface OperationContentsAndResultMetadataExtended1 {
|
|
595
598
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
596
599
|
delegate: string;
|
|
597
|
-
consensus_power:
|
|
600
|
+
consensus_power: ConsensusPower | null;
|
|
598
601
|
consensus_key: string;
|
|
599
602
|
}
|
|
600
603
|
export interface OperationContentsAndResultMetadataExtended0 {
|
|
@@ -609,12 +612,12 @@ export interface OperationContentsAndResultMetadataAttestationsAggregate {
|
|
|
609
612
|
delegate: string;
|
|
610
613
|
consensus_pkh: string;
|
|
611
614
|
}[];
|
|
612
|
-
consensus_power:
|
|
615
|
+
consensus_power: ConsensusPower | null;
|
|
613
616
|
}
|
|
614
617
|
export interface OperationContentsAndResultMetadataPreattestation {
|
|
615
618
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
616
619
|
delegate: string;
|
|
617
|
-
consensus_power:
|
|
620
|
+
consensus_power: ConsensusPower | null;
|
|
618
621
|
consensus_key?: string;
|
|
619
622
|
}
|
|
620
623
|
export interface OperationContentsAndResultMetadataPreattestationsAggregate {
|
|
@@ -623,7 +626,7 @@ export interface OperationContentsAndResultMetadataPreattestationsAggregate {
|
|
|
623
626
|
delegate: string;
|
|
624
627
|
consensus_pkh: string;
|
|
625
628
|
}[];
|
|
626
|
-
consensus_power:
|
|
629
|
+
consensus_power: ConsensusPower | null;
|
|
627
630
|
}
|
|
628
631
|
export interface OperationContentsAndResultMetadataPreEndorsement {
|
|
629
632
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
@@ -1158,10 +1161,10 @@ export interface BakingRightsQueryArgumentsBase {
|
|
|
1158
1161
|
export interface BakingRightsResponseItem {
|
|
1159
1162
|
level: number;
|
|
1160
1163
|
delegate: string;
|
|
1161
|
-
priority?: number;
|
|
1162
1164
|
round?: number;
|
|
1163
1165
|
estimated_time?: Date;
|
|
1164
1166
|
consensus_key?: string;
|
|
1167
|
+
priority?: number;
|
|
1165
1168
|
}
|
|
1166
1169
|
export type BakingRightsResponse = BakingRightsResponseItem[];
|
|
1167
1170
|
export type AttestationRightsArgumentsDelegate = string | string[];
|
|
@@ -1176,15 +1179,16 @@ export interface AttestationRightsQueryArguments {
|
|
|
1176
1179
|
export interface AttestationRightsResponseItemDelegates {
|
|
1177
1180
|
delegate: string;
|
|
1178
1181
|
first_slot: number;
|
|
1179
|
-
|
|
1182
|
+
attesting_power: number;
|
|
1180
1183
|
consensus_key: string;
|
|
1184
|
+
attestation_power?: number;
|
|
1181
1185
|
}
|
|
1182
1186
|
export interface AttestationRightsResponseItem {
|
|
1183
1187
|
level: number;
|
|
1184
|
-
delegate?: string;
|
|
1185
1188
|
delegates?: AttestationRightsResponseItemDelegates[];
|
|
1186
|
-
slots?: number[];
|
|
1187
1189
|
estimated_time?: Date;
|
|
1190
|
+
delegate?: string;
|
|
1191
|
+
slots?: number[];
|
|
1188
1192
|
}
|
|
1189
1193
|
export type AttestationRightsResponse = AttestationRightsResponseItem[];
|
|
1190
1194
|
export type BallotListResponseEnum = 'nay' | 'yay' | 'pass';
|
|
@@ -1442,6 +1446,10 @@ export interface TicketUpdates {
|
|
|
1442
1446
|
export type TicketReceipt = TicketUpdates;
|
|
1443
1447
|
export type BatchOperationResult = OperationResultTransaction | OperationResultReveal | OperationResultDelegation | OperationResultOrigination | OperationResultIncreasePaidStorage | OperationResultRegisterGlobalConstant | OperationResultTransferTicket | OperationResultSmartRollupAddMessages | OperationResultSmartRollupOriginate | OperationResultUpdateConsensusKey;
|
|
1444
1448
|
export type OperationResult = OperationResultOrigination | OperationResultTransaction | OperationResultReveal | OperationResultDelegation | OperationResultIncreasePaidStorage | OperationResultRegisterGlobalConstant | OperationResultTransferTicket | OperationResultUpdateConsensusKey | OperationResultSmartRollupOriginate | OperationResultSmartRollupAddMessages | OperationResultSetDepositsLimit | OperationResultSmartRollupPublish | OperationResultSmartRollupCement | OperationResultSmartRollupRefute | OperationResultSmartRollupRecoverBond | OperationResultSmartRollupTimeout | OperationResultSmartRollupExecuteOutboxMessage | OperationResultDalPublishCommitment;
|
|
1449
|
+
export interface AddressRegistryDiff {
|
|
1450
|
+
address: string;
|
|
1451
|
+
index: string;
|
|
1452
|
+
}
|
|
1445
1453
|
export interface OperationResultTransaction {
|
|
1446
1454
|
status: OperationResultStatusEnum;
|
|
1447
1455
|
storage?: MichelsonV1Expression;
|
|
@@ -1458,6 +1466,7 @@ export interface OperationResultTransaction {
|
|
|
1458
1466
|
consumed_milligas?: string;
|
|
1459
1467
|
lazy_storage_diff?: LazyStorageDiff[];
|
|
1460
1468
|
ticket_hash?: string;
|
|
1469
|
+
address_registry_diff?: AddressRegistryDiff[];
|
|
1461
1470
|
}
|
|
1462
1471
|
export interface OperationResultReveal {
|
|
1463
1472
|
status: OperationResultStatusEnum;
|
|
@@ -1670,7 +1679,7 @@ export interface OperationContentsAndResultMetadataOrigination {
|
|
|
1670
1679
|
operation_result: OperationResultOrigination;
|
|
1671
1680
|
internal_operation_results?: InternalOperationResult[];
|
|
1672
1681
|
}
|
|
1673
|
-
export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto023 & ConstantsResponseProto022 & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
|
|
1682
|
+
export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto024 & ConstantsResponseProto023 & ConstantsResponseProto022 & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
|
|
1674
1683
|
export interface ConstantsResponseCommon {
|
|
1675
1684
|
proof_of_work_nonce_size: number;
|
|
1676
1685
|
nonce_length: number;
|
|
@@ -1698,6 +1707,9 @@ export type Ratio = {
|
|
|
1698
1707
|
numerator: number;
|
|
1699
1708
|
denominator: number;
|
|
1700
1709
|
};
|
|
1710
|
+
export interface ConstantsResponseProto024 extends Omit<ConstantsResponseProto023, 'all_bakers_attest_activation_level'> {
|
|
1711
|
+
all_bakers_attest_activation_threshold: Ratio;
|
|
1712
|
+
}
|
|
1701
1713
|
export type ConstantsResponseProto023 = ConstantsResponseProto022;
|
|
1702
1714
|
export interface ConstantsResponseProto022 extends Omit<ConstantsResponseProto021, 'adaptive_issuance_activation_vote_enable' | 'adaptive_issuance_force_activation' | 'adaptive_issuance_launch_ema_threshold' | 'autostaking_enable' | 'consensus_threshold' | 'issuance_weights' | 'dal_parametric' | 'max_slashing_period' | 'max_slashing_threshold' | 'ns_enable' | 'percentage_of_frozen_deposits_slashed_per_double_attestation'> {
|
|
1703
1715
|
aggregate_attestation: boolean;
|
|
@@ -2037,6 +2049,16 @@ export interface LevelInfo {
|
|
|
2037
2049
|
cycle_position: number;
|
|
2038
2050
|
expected_commitment: boolean;
|
|
2039
2051
|
}
|
|
2052
|
+
export interface Attestations {
|
|
2053
|
+
total_committee_power: number;
|
|
2054
|
+
threshold: number;
|
|
2055
|
+
recorded_power: number;
|
|
2056
|
+
}
|
|
2057
|
+
export interface PreAttestations {
|
|
2058
|
+
total_committee_power: number;
|
|
2059
|
+
threshold: number;
|
|
2060
|
+
recorded_power: number;
|
|
2061
|
+
}
|
|
2040
2062
|
export interface BlockMetadata {
|
|
2041
2063
|
protocol: string;
|
|
2042
2064
|
next_protocol: string;
|
|
@@ -2053,8 +2075,6 @@ export interface BlockMetadata {
|
|
|
2053
2075
|
deactivated?: string[];
|
|
2054
2076
|
balance_updates?: OperationBalanceUpdates;
|
|
2055
2077
|
liquidity_baking_toggle_ema?: number;
|
|
2056
|
-
adaptive_issuance_vote_ema?: number;
|
|
2057
|
-
adaptive_issuance_activation_cycle?: number;
|
|
2058
2078
|
implicit_operations_results?: SuccessfulManagerOperationResult[];
|
|
2059
2079
|
proposer_consensus_key?: string;
|
|
2060
2080
|
baker_consensus_key?: string;
|
|
@@ -2064,12 +2084,13 @@ export interface BlockMetadata {
|
|
|
2064
2084
|
voting_period_kind?: string;
|
|
2065
2085
|
consumed_gas?: string;
|
|
2066
2086
|
liquidity_baking_escape_ema?: number;
|
|
2087
|
+
all_bakers_attest_activation_level?: LevelInfo | null;
|
|
2088
|
+
attestations?: Attestations;
|
|
2089
|
+
preattestations?: PreAttestations;
|
|
2067
2090
|
}
|
|
2068
|
-
export
|
|
2091
|
+
export interface RPCSimulateOperationParam {
|
|
2069
2092
|
operation: OperationObject;
|
|
2070
2093
|
chain_id: string;
|
|
2071
|
-
};
|
|
2072
|
-
export interface RPCSimulateOperationParam extends RPCRunOperationParam {
|
|
2073
2094
|
blocks_before_activation?: number;
|
|
2074
2095
|
latency?: number;
|
|
2075
2096
|
}
|
|
@@ -2324,4 +2345,5 @@ export type PendingStakingParametersResponse = Array<{
|
|
|
2324
2345
|
edge_of_baking_over_staking_billionth: number;
|
|
2325
2346
|
};
|
|
2326
2347
|
}>;
|
|
2348
|
+
export type DestinationIndexResponse = string | null;
|
|
2327
2349
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "24.0.0-beta.0",
|
|
4
4
|
"description": "Provides low level methods, and types to invoke RPC calls from a Nomadic Tezos RPC node",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=20"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "jest --coverage",
|
|
@@ -66,15 +66,16 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/core": "^
|
|
70
|
-
"@taquito/http-utils": "^
|
|
71
|
-
"@taquito/utils": "^
|
|
72
|
-
"bignumber.js": "^9.1.2"
|
|
69
|
+
"@taquito/core": "^24.0.0-beta.0",
|
|
70
|
+
"@taquito/http-utils": "^24.0.0-beta.0",
|
|
71
|
+
"@taquito/utils": "^24.0.0-beta.0",
|
|
72
|
+
"bignumber.js": "^9.1.2",
|
|
73
|
+
"whatwg-url": "^15.1.0"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@types/bluebird": "^3.5.42",
|
|
76
77
|
"@types/jest": "^29.5.12",
|
|
77
|
-
"@types/node": "^
|
|
78
|
+
"@types/node": "^20",
|
|
78
79
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
79
80
|
"@typescript-eslint/parser": "^6.21.0",
|
|
80
81
|
"colors": "^1.4.0",
|
|
@@ -91,6 +92,7 @@
|
|
|
91
92
|
"rimraf": "^6.0.1",
|
|
92
93
|
"rollup": "^4.22.4",
|
|
93
94
|
"rollup-plugin-json": "^4.0.0",
|
|
95
|
+
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
94
96
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
95
97
|
"shelljs": "^0.8.5",
|
|
96
98
|
"ts-jest": "^29.2.3",
|
|
@@ -98,5 +100,5 @@
|
|
|
98
100
|
"ts-toolbelt": "^9.6.0",
|
|
99
101
|
"typescript": "~5.5.4"
|
|
100
102
|
},
|
|
101
|
-
"gitHead": "
|
|
103
|
+
"gitHead": "f212ea3edaf1fac34d738b5d00a9892ab7a3b721"
|
|
102
104
|
}
|