@taquito/rpc 22.0.0-beta.0 → 23.0.0-RC.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/opkind.js +4 -0
- package/dist/lib/rpc-client-interface.js +1 -0
- package/dist/lib/rpc-client-modules/rpc-cache.js +26 -2
- package/dist/lib/taquito-rpc.js +22 -3
- package/dist/lib/types.js +45 -8
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +101 -16
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +100 -15
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/opkind.d.ts +5 -1
- package/dist/types/rpc-client-interface.d.ts +4 -2
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +8 -2
- package/dist/types/taquito-rpc.d.ts +9 -3
- package/dist/types/types.d.ts +200 -27
- package/package.json +5 -5
package/dist/lib/opkind.js
CHANGED
|
@@ -42,4 +42,8 @@ var OpKind;
|
|
|
42
42
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
43
43
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
44
44
|
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
45
|
+
OpKind["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
46
|
+
OpKind["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
47
|
+
OpKind["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
48
|
+
OpKind["DOUBLE_CONSENSUS_OPERATION_EVIDENCE"] = "double_consensus_operation_evidence";
|
|
45
49
|
})(OpKind || (exports.OpKind = OpKind = {}));
|
|
@@ -41,6 +41,7 @@ var RPCMethodName;
|
|
|
41
41
|
RPCMethodName["GET_PROPOSALS"] = "getProposals";
|
|
42
42
|
RPCMethodName["GET_PROTOCOLS"] = "getProtocols";
|
|
43
43
|
RPCMethodName["GET_SAPLING_DIFF_BY_CONTRACT"] = "getSaplingDiffByContract";
|
|
44
|
+
RPCMethodName["GET_PROTOCOL_ACTIVATIONS"] = "getProtocolActivations";
|
|
44
45
|
RPCMethodName["GET_SAPLING_DIFF_BY_ID"] = "getSaplingDiffById";
|
|
45
46
|
RPCMethodName["GET_SCRIPT"] = "getScript";
|
|
46
47
|
RPCMethodName["GET_STORAGE"] = "getStorage";
|
|
@@ -86,13 +86,13 @@ class RpcClientCache {
|
|
|
86
86
|
validateAddress(address) {
|
|
87
87
|
const addressValidation = (0, utils_1.validateAddress)(address);
|
|
88
88
|
if (addressValidation !== utils_1.ValidationResult.VALID) {
|
|
89
|
-
throw new core_1.InvalidAddressError(address,
|
|
89
|
+
throw new core_1.InvalidAddressError(address, addressValidation);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
validateContract(address) {
|
|
93
93
|
const addressValidation = (0, utils_1.validateContractAddress)(address);
|
|
94
94
|
if (addressValidation !== utils_1.ValidationResult.VALID) {
|
|
95
|
-
throw new core_1.InvalidContractAddressError(address,
|
|
95
|
+
throw new core_1.InvalidContractAddressError(address, addressValidation);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
/**
|
|
@@ -1067,6 +1067,30 @@ class RpcClientCache {
|
|
|
1067
1067
|
}
|
|
1068
1068
|
});
|
|
1069
1069
|
}
|
|
1070
|
+
/**
|
|
1071
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1072
|
+
* @description get current and next protocol
|
|
1073
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
1074
|
+
*/
|
|
1075
|
+
getProtocolActivations() {
|
|
1076
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
1077
|
+
if (protocol) {
|
|
1078
|
+
const protocolValidation = (0, utils_1.validateProtocol)(protocol);
|
|
1079
|
+
if (protocolValidation !== utils_1.ValidationResult.VALID) {
|
|
1080
|
+
throw new utils_1.InvalidProtocolHashError(protocol, protocolValidation);
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
|
1084
|
+
if (this.has(key)) {
|
|
1085
|
+
return this.get(key);
|
|
1086
|
+
}
|
|
1087
|
+
else {
|
|
1088
|
+
const response = this.rpcClient.getProtocolActivations(protocol);
|
|
1089
|
+
this.put(key, response);
|
|
1090
|
+
return response;
|
|
1091
|
+
}
|
|
1092
|
+
});
|
|
1093
|
+
}
|
|
1070
1094
|
/**
|
|
1071
1095
|
* @param contract address of the contract we want to retrieve storage information of
|
|
1072
1096
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
package/dist/lib/taquito-rpc.js
CHANGED
|
@@ -88,13 +88,13 @@ class RpcClient {
|
|
|
88
88
|
validateAddress(address) {
|
|
89
89
|
const addressValidation = (0, utils_2.validateAddress)(address);
|
|
90
90
|
if (addressValidation !== utils_2.ValidationResult.VALID) {
|
|
91
|
-
throw new core_1.InvalidAddressError(address,
|
|
91
|
+
throw new core_1.InvalidAddressError(address, addressValidation);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
validateContract(address) {
|
|
95
95
|
const addressValidation = (0, utils_2.validateContractAddress)(address);
|
|
96
96
|
if (addressValidation !== utils_2.ValidationResult.VALID) {
|
|
97
|
-
throw new core_1.InvalidContractAddressError(address,
|
|
97
|
+
throw new core_1.InvalidContractAddressError(address, addressValidation);
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
@@ -969,6 +969,25 @@ class RpcClient {
|
|
|
969
969
|
});
|
|
970
970
|
});
|
|
971
971
|
}
|
|
972
|
+
/**
|
|
973
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
974
|
+
* @description get current and next protocol
|
|
975
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
976
|
+
*/
|
|
977
|
+
getProtocolActivations() {
|
|
978
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
979
|
+
if (protocol) {
|
|
980
|
+
const protocolValidation = (0, utils_2.validateProtocol)(protocol);
|
|
981
|
+
if (protocolValidation !== utils_2.ValidationResult.VALID) {
|
|
982
|
+
throw new utils_2.InvalidProtocolHashError(protocol, protocolValidation);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
return this.httpBackend.createRequest({
|
|
986
|
+
url: this.createURL(`/chains/${this.chain}/protocols/${protocol}`),
|
|
987
|
+
method: 'GET',
|
|
988
|
+
});
|
|
989
|
+
});
|
|
990
|
+
}
|
|
972
991
|
/**
|
|
973
992
|
* @param contract address of the contract we want to retrieve storage information of
|
|
974
993
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -1044,7 +1063,7 @@ class RpcClient {
|
|
|
1044
1063
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
1045
1064
|
* @param args has 5 optional properties
|
|
1046
1065
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
1047
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
1066
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rio-mempool-openapi.json
|
|
1048
1067
|
*/
|
|
1049
1068
|
getPendingOperations() {
|
|
1050
1069
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
package/dist/lib/types.js
CHANGED
|
@@ -7,34 +7,71 @@ var OPERATION_METADATA;
|
|
|
7
7
|
})(OPERATION_METADATA || (exports.OPERATION_METADATA = OPERATION_METADATA = {}));
|
|
8
8
|
var METADATA_BALANCE_UPDATES_CATEGORY;
|
|
9
9
|
(function (METADATA_BALANCE_UPDATES_CATEGORY) {
|
|
10
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ACTIVATION"] = "activation";
|
|
11
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION"] = "attestation";
|
|
12
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
13
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION_WITH_DAL"] = "attestation_with_dal";
|
|
14
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTING_REWARDS"] = "attesting rewards";
|
|
10
15
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_BONUSES"] = "baking bonuses";
|
|
11
16
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
|
|
17
|
+
METADATA_BALANCE_UPDATES_CATEGORY["BALLOT"] = "ballot";
|
|
12
18
|
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
|
|
13
19
|
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
|
|
14
20
|
METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
|
|
15
21
|
METADATA_BALANCE_UPDATES_CATEGORY["BURNED"] = "burned";
|
|
16
22
|
METADATA_BALANCE_UPDATES_CATEGORY["COMMITMENT"] = "commitment";
|
|
23
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ATTESTING_REWARDS"] = "dal attesting rewards";
|
|
24
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
25
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
17
26
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATE_DENOMINATOR"] = "delegate_denominator";
|
|
27
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATION"] = "delegation";
|
|
18
28
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATOR_NUMERATOR"] = "delegator_numerator";
|
|
19
29
|
METADATA_BALANCE_UPDATES_CATEGORY["DEPOSITS"] = "deposits";
|
|
20
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
30
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ATTESTATION_EVIDENCE"] = "double_attestation_evidence";
|
|
31
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_BAKING_EVIDENCE"] = "double_baking_evidence";
|
|
32
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ENDORSEMENT_EVIDENCE"] = "double_endorsement_evidence";
|
|
33
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREATTESTATION_EVIDENCE"] = "double_preattestation_evidence";
|
|
34
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREENDORSEMENT_EVIDENCE"] = "double_preendorsement_evidence";
|
|
35
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DRAIN_DELEGATE"] = "drain_delegate";
|
|
36
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT"] = "endorsement";
|
|
37
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT_WITH_DAL"] = "endorsement_with_dal";
|
|
38
|
+
METADATA_BALANCE_UPDATES_CATEGORY["EVENT"] = "event";
|
|
39
|
+
METADATA_BALANCE_UPDATES_CATEGORY["FAILING_NOOP"] = "failing_noop";
|
|
40
|
+
METADATA_BALANCE_UPDATES_CATEGORY["INCREASE_PAID_STORAGE"] = "increase_paid_storage";
|
|
21
41
|
METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
|
|
22
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ENDORSING_REWARDS"] = "lost endorsing rewards";
|
|
23
42
|
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ATTESTING_REWARDS"] = "lost attesting rewards";
|
|
43
|
+
METADATA_BALANCE_UPDATES_CATEGORY["LOST_DAL_ATTESTING_REWARDS"] = "lost dal attesting rewards";
|
|
24
44
|
METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
|
|
25
45
|
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation rewards";
|
|
46
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ORIGINATION"] = "origination";
|
|
47
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATION"] = "preattestation";
|
|
48
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
49
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREENDORSEMENT"] = "preendorsement";
|
|
50
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PROPOSALS"] = "proposals";
|
|
26
51
|
METADATA_BALANCE_UPDATES_CATEGORY["PUNISHMENTS"] = "punishments";
|
|
52
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
|
|
53
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REVEAL"] = "reveal";
|
|
54
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
|
|
55
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
|
|
56
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
|
|
57
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_CEMENT"] = "smart_rollup_cement";
|
|
58
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
|
|
59
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
|
|
60
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_PUBLISH"] = "smart_rollup_publish";
|
|
61
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_RECOVER_BOND"] = "smart_rollup_recover_bond";
|
|
27
62
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_PUNISHMENTS"] = "smart_rollup_refutation_punishments";
|
|
28
63
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_REWARDS"] = "smart_rollup_refutation_rewards";
|
|
64
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
65
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
29
66
|
METADATA_BALANCE_UPDATES_CATEGORY["STORAGE_FEES"] = "storage fees";
|
|
30
67
|
METADATA_BALANCE_UPDATES_CATEGORY["SUBSIDY"] = "subsidy";
|
|
68
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TICKET_UPDATES"] = "ticket_updates";
|
|
69
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSACTION"] = "transaction";
|
|
70
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSFER_TICKET"] = "transfer_ticket";
|
|
31
71
|
METADATA_BALANCE_UPDATES_CATEGORY["UNSTAKED_DEPOSITS"] = "unstaked_deposits";
|
|
32
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
33
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
34
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
35
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_FEES"] = "legacy_fees";
|
|
36
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_REWARDS"] = "legacy_rewards";
|
|
37
|
-
METADATA_BALANCE_UPDATES_CATEGORY["REWARDS"] = "rewards";
|
|
72
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
73
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
|
|
74
|
+
METADATA_BALANCE_UPDATES_CATEGORY["VDF_REVELATION"] = "vdf_revelation";
|
|
38
75
|
})(METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = METADATA_BALANCE_UPDATES_CATEGORY = {}));
|
|
39
76
|
var PvmKind;
|
|
40
77
|
(function (PvmKind) {
|
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": "13639ef56845fbb7e93bcbd37d3f6d0457b0872b",
|
|
7
|
+
"version": "23.0.0-RC.0"
|
|
8
8
|
};
|
package/dist/taquito-rpc.es6.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpBackend, HttpResponseError, STATUS_CODE } from '@taquito/http-utils';
|
|
2
2
|
import BigNumber from 'bignumber.js';
|
|
3
|
-
import { validateAddress, ValidationResult,
|
|
3
|
+
import { validateAddress, ValidationResult, validateContractAddress, validateProtocol, InvalidProtocolHashError } from '@taquito/utils';
|
|
4
4
|
import { InvalidAddressError, InvalidContractAddressError } from '@taquito/core';
|
|
5
5
|
|
|
6
6
|
/******************************************************************************
|
|
@@ -87,6 +87,7 @@ var RPCMethodName;
|
|
|
87
87
|
RPCMethodName["GET_PROPOSALS"] = "getProposals";
|
|
88
88
|
RPCMethodName["GET_PROTOCOLS"] = "getProtocols";
|
|
89
89
|
RPCMethodName["GET_SAPLING_DIFF_BY_CONTRACT"] = "getSaplingDiffByContract";
|
|
90
|
+
RPCMethodName["GET_PROTOCOL_ACTIVATIONS"] = "getProtocolActivations";
|
|
90
91
|
RPCMethodName["GET_SAPLING_DIFF_BY_ID"] = "getSaplingDiffById";
|
|
91
92
|
RPCMethodName["GET_SCRIPT"] = "getScript";
|
|
92
93
|
RPCMethodName["GET_STORAGE"] = "getStorage";
|
|
@@ -191,13 +192,13 @@ class RpcClientCache {
|
|
|
191
192
|
validateAddress(address) {
|
|
192
193
|
const addressValidation = validateAddress(address);
|
|
193
194
|
if (addressValidation !== ValidationResult.VALID) {
|
|
194
|
-
throw new InvalidAddressError(address,
|
|
195
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
195
196
|
}
|
|
196
197
|
}
|
|
197
198
|
validateContract(address) {
|
|
198
199
|
const addressValidation = validateContractAddress(address);
|
|
199
200
|
if (addressValidation !== ValidationResult.VALID) {
|
|
200
|
-
throw new InvalidContractAddressError(address,
|
|
201
|
+
throw new InvalidContractAddressError(address, addressValidation);
|
|
201
202
|
}
|
|
202
203
|
}
|
|
203
204
|
/**
|
|
@@ -1172,6 +1173,30 @@ class RpcClientCache {
|
|
|
1172
1173
|
}
|
|
1173
1174
|
});
|
|
1174
1175
|
}
|
|
1176
|
+
/**
|
|
1177
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1178
|
+
* @description get current and next protocol
|
|
1179
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
1180
|
+
*/
|
|
1181
|
+
getProtocolActivations() {
|
|
1182
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
1183
|
+
if (protocol) {
|
|
1184
|
+
const protocolValidation = validateProtocol(protocol);
|
|
1185
|
+
if (protocolValidation !== ValidationResult.VALID) {
|
|
1186
|
+
throw new InvalidProtocolHashError(protocol, protocolValidation);
|
|
1187
|
+
}
|
|
1188
|
+
}
|
|
1189
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
|
1190
|
+
if (this.has(key)) {
|
|
1191
|
+
return this.get(key);
|
|
1192
|
+
}
|
|
1193
|
+
else {
|
|
1194
|
+
const response = this.rpcClient.getProtocolActivations(protocol);
|
|
1195
|
+
this.put(key, response);
|
|
1196
|
+
return response;
|
|
1197
|
+
}
|
|
1198
|
+
});
|
|
1199
|
+
}
|
|
1175
1200
|
/**
|
|
1176
1201
|
* @param contract address of the contract we want to retrieve storage information of
|
|
1177
1202
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -1294,34 +1319,71 @@ var OPERATION_METADATA;
|
|
|
1294
1319
|
})(OPERATION_METADATA || (OPERATION_METADATA = {}));
|
|
1295
1320
|
var METADATA_BALANCE_UPDATES_CATEGORY;
|
|
1296
1321
|
(function (METADATA_BALANCE_UPDATES_CATEGORY) {
|
|
1322
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ACTIVATION"] = "activation";
|
|
1323
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION"] = "attestation";
|
|
1324
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
1325
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION_WITH_DAL"] = "attestation_with_dal";
|
|
1326
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTING_REWARDS"] = "attesting rewards";
|
|
1297
1327
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_BONUSES"] = "baking bonuses";
|
|
1298
1328
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
|
|
1329
|
+
METADATA_BALANCE_UPDATES_CATEGORY["BALLOT"] = "ballot";
|
|
1299
1330
|
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
|
|
1300
1331
|
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
|
|
1301
1332
|
METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
|
|
1302
1333
|
METADATA_BALANCE_UPDATES_CATEGORY["BURNED"] = "burned";
|
|
1303
1334
|
METADATA_BALANCE_UPDATES_CATEGORY["COMMITMENT"] = "commitment";
|
|
1335
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ATTESTING_REWARDS"] = "dal attesting rewards";
|
|
1336
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1337
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1304
1338
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATE_DENOMINATOR"] = "delegate_denominator";
|
|
1339
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATION"] = "delegation";
|
|
1305
1340
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATOR_NUMERATOR"] = "delegator_numerator";
|
|
1306
1341
|
METADATA_BALANCE_UPDATES_CATEGORY["DEPOSITS"] = "deposits";
|
|
1307
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1342
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ATTESTATION_EVIDENCE"] = "double_attestation_evidence";
|
|
1343
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_BAKING_EVIDENCE"] = "double_baking_evidence";
|
|
1344
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ENDORSEMENT_EVIDENCE"] = "double_endorsement_evidence";
|
|
1345
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREATTESTATION_EVIDENCE"] = "double_preattestation_evidence";
|
|
1346
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREENDORSEMENT_EVIDENCE"] = "double_preendorsement_evidence";
|
|
1347
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DRAIN_DELEGATE"] = "drain_delegate";
|
|
1348
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT"] = "endorsement";
|
|
1349
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT_WITH_DAL"] = "endorsement_with_dal";
|
|
1350
|
+
METADATA_BALANCE_UPDATES_CATEGORY["EVENT"] = "event";
|
|
1351
|
+
METADATA_BALANCE_UPDATES_CATEGORY["FAILING_NOOP"] = "failing_noop";
|
|
1352
|
+
METADATA_BALANCE_UPDATES_CATEGORY["INCREASE_PAID_STORAGE"] = "increase_paid_storage";
|
|
1308
1353
|
METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
|
|
1309
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ENDORSING_REWARDS"] = "lost endorsing rewards";
|
|
1310
1354
|
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ATTESTING_REWARDS"] = "lost attesting rewards";
|
|
1355
|
+
METADATA_BALANCE_UPDATES_CATEGORY["LOST_DAL_ATTESTING_REWARDS"] = "lost dal attesting rewards";
|
|
1311
1356
|
METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
|
|
1312
1357
|
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation rewards";
|
|
1358
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ORIGINATION"] = "origination";
|
|
1359
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATION"] = "preattestation";
|
|
1360
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
1361
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREENDORSEMENT"] = "preendorsement";
|
|
1362
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PROPOSALS"] = "proposals";
|
|
1313
1363
|
METADATA_BALANCE_UPDATES_CATEGORY["PUNISHMENTS"] = "punishments";
|
|
1364
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
|
|
1365
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REVEAL"] = "reveal";
|
|
1366
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
|
|
1367
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
|
|
1368
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
|
|
1369
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_CEMENT"] = "smart_rollup_cement";
|
|
1370
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
|
|
1371
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
|
|
1372
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_PUBLISH"] = "smart_rollup_publish";
|
|
1373
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_RECOVER_BOND"] = "smart_rollup_recover_bond";
|
|
1314
1374
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_PUNISHMENTS"] = "smart_rollup_refutation_punishments";
|
|
1315
1375
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_REWARDS"] = "smart_rollup_refutation_rewards";
|
|
1376
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
1377
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1316
1378
|
METADATA_BALANCE_UPDATES_CATEGORY["STORAGE_FEES"] = "storage fees";
|
|
1317
1379
|
METADATA_BALANCE_UPDATES_CATEGORY["SUBSIDY"] = "subsidy";
|
|
1380
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TICKET_UPDATES"] = "ticket_updates";
|
|
1381
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSACTION"] = "transaction";
|
|
1382
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSFER_TICKET"] = "transfer_ticket";
|
|
1318
1383
|
METADATA_BALANCE_UPDATES_CATEGORY["UNSTAKED_DEPOSITS"] = "unstaked_deposits";
|
|
1319
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1320
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1321
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1322
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_FEES"] = "legacy_fees";
|
|
1323
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_REWARDS"] = "legacy_rewards";
|
|
1324
|
-
METADATA_BALANCE_UPDATES_CATEGORY["REWARDS"] = "rewards";
|
|
1384
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
1385
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
|
|
1386
|
+
METADATA_BALANCE_UPDATES_CATEGORY["VDF_REVELATION"] = "vdf_revelation";
|
|
1325
1387
|
})(METADATA_BALANCE_UPDATES_CATEGORY || (METADATA_BALANCE_UPDATES_CATEGORY = {}));
|
|
1326
1388
|
var PvmKind;
|
|
1327
1389
|
(function (PvmKind) {
|
|
@@ -1404,12 +1466,16 @@ var OpKind;
|
|
|
1404
1466
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1405
1467
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1406
1468
|
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1469
|
+
OpKind["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
1470
|
+
OpKind["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
1471
|
+
OpKind["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
1472
|
+
OpKind["DOUBLE_CONSENSUS_OPERATION_EVIDENCE"] = "double_consensus_operation_evidence";
|
|
1407
1473
|
})(OpKind || (OpKind = {}));
|
|
1408
1474
|
|
|
1409
1475
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1410
1476
|
const VERSION = {
|
|
1411
|
-
"commitHash": "
|
|
1412
|
-
"version": "
|
|
1477
|
+
"commitHash": "13639ef56845fbb7e93bcbd37d3f6d0457b0872b",
|
|
1478
|
+
"version": "23.0.0-RC.0"
|
|
1413
1479
|
};
|
|
1414
1480
|
|
|
1415
1481
|
/***
|
|
@@ -1443,13 +1509,13 @@ class RpcClient {
|
|
|
1443
1509
|
validateAddress(address) {
|
|
1444
1510
|
const addressValidation = validateAddress(address);
|
|
1445
1511
|
if (addressValidation !== ValidationResult.VALID) {
|
|
1446
|
-
throw new InvalidAddressError(address,
|
|
1512
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
1447
1513
|
}
|
|
1448
1514
|
}
|
|
1449
1515
|
validateContract(address) {
|
|
1450
1516
|
const addressValidation = validateContractAddress(address);
|
|
1451
1517
|
if (addressValidation !== ValidationResult.VALID) {
|
|
1452
|
-
throw new InvalidContractAddressError(address,
|
|
1518
|
+
throw new InvalidContractAddressError(address, addressValidation);
|
|
1453
1519
|
}
|
|
1454
1520
|
}
|
|
1455
1521
|
/**
|
|
@@ -2324,6 +2390,25 @@ class RpcClient {
|
|
|
2324
2390
|
});
|
|
2325
2391
|
});
|
|
2326
2392
|
}
|
|
2393
|
+
/**
|
|
2394
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
2395
|
+
* @description get current and next protocol
|
|
2396
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
2397
|
+
*/
|
|
2398
|
+
getProtocolActivations() {
|
|
2399
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
2400
|
+
if (protocol) {
|
|
2401
|
+
const protocolValidation = validateProtocol(protocol);
|
|
2402
|
+
if (protocolValidation !== ValidationResult.VALID) {
|
|
2403
|
+
throw new InvalidProtocolHashError(protocol, protocolValidation);
|
|
2404
|
+
}
|
|
2405
|
+
}
|
|
2406
|
+
return this.httpBackend.createRequest({
|
|
2407
|
+
url: this.createURL(`/chains/${this.chain}/protocols/${protocol}`),
|
|
2408
|
+
method: 'GET',
|
|
2409
|
+
});
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2327
2412
|
/**
|
|
2328
2413
|
* @param contract address of the contract we want to retrieve storage information of
|
|
2329
2414
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -2399,7 +2484,7 @@ class RpcClient {
|
|
|
2399
2484
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
2400
2485
|
* @param args has 5 optional properties
|
|
2401
2486
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
2402
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
2487
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rio-mempool-openapi.json
|
|
2403
2488
|
*/
|
|
2404
2489
|
getPendingOperations() {
|
|
2405
2490
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
RPCMethodName["GET_PROPOSALS"] = "getProposals";
|
|
89
89
|
RPCMethodName["GET_PROTOCOLS"] = "getProtocols";
|
|
90
90
|
RPCMethodName["GET_SAPLING_DIFF_BY_CONTRACT"] = "getSaplingDiffByContract";
|
|
91
|
+
RPCMethodName["GET_PROTOCOL_ACTIVATIONS"] = "getProtocolActivations";
|
|
91
92
|
RPCMethodName["GET_SAPLING_DIFF_BY_ID"] = "getSaplingDiffById";
|
|
92
93
|
RPCMethodName["GET_SCRIPT"] = "getScript";
|
|
93
94
|
RPCMethodName["GET_STORAGE"] = "getStorage";
|
|
@@ -192,13 +193,13 @@
|
|
|
192
193
|
validateAddress(address) {
|
|
193
194
|
const addressValidation = utils.validateAddress(address);
|
|
194
195
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
195
|
-
throw new core.InvalidAddressError(address,
|
|
196
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
196
197
|
}
|
|
197
198
|
}
|
|
198
199
|
validateContract(address) {
|
|
199
200
|
const addressValidation = utils.validateContractAddress(address);
|
|
200
201
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
201
|
-
throw new core.InvalidContractAddressError(address,
|
|
202
|
+
throw new core.InvalidContractAddressError(address, addressValidation);
|
|
202
203
|
}
|
|
203
204
|
}
|
|
204
205
|
/**
|
|
@@ -1173,6 +1174,30 @@
|
|
|
1173
1174
|
}
|
|
1174
1175
|
});
|
|
1175
1176
|
}
|
|
1177
|
+
/**
|
|
1178
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
1179
|
+
* @description get current and next protocol
|
|
1180
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
1181
|
+
*/
|
|
1182
|
+
getProtocolActivations() {
|
|
1183
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
1184
|
+
if (protocol) {
|
|
1185
|
+
const protocolValidation = utils.validateProtocol(protocol);
|
|
1186
|
+
if (protocolValidation !== utils.ValidationResult.VALID) {
|
|
1187
|
+
throw new utils.InvalidProtocolHashError(protocol, protocolValidation);
|
|
1188
|
+
}
|
|
1189
|
+
}
|
|
1190
|
+
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
|
1191
|
+
if (this.has(key)) {
|
|
1192
|
+
return this.get(key);
|
|
1193
|
+
}
|
|
1194
|
+
else {
|
|
1195
|
+
const response = this.rpcClient.getProtocolActivations(protocol);
|
|
1196
|
+
this.put(key, response);
|
|
1197
|
+
return response;
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1176
1201
|
/**
|
|
1177
1202
|
* @param contract address of the contract we want to retrieve storage information of
|
|
1178
1203
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -1295,34 +1320,71 @@
|
|
|
1295
1320
|
})(exports.OPERATION_METADATA || (exports.OPERATION_METADATA = {}));
|
|
1296
1321
|
exports.METADATA_BALANCE_UPDATES_CATEGORY = void 0;
|
|
1297
1322
|
(function (METADATA_BALANCE_UPDATES_CATEGORY) {
|
|
1323
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ACTIVATION"] = "activation";
|
|
1324
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION"] = "attestation";
|
|
1325
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
1326
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTATION_WITH_DAL"] = "attestation_with_dal";
|
|
1327
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ATTESTING_REWARDS"] = "attesting rewards";
|
|
1298
1328
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_BONUSES"] = "baking bonuses";
|
|
1299
1329
|
METADATA_BALANCE_UPDATES_CATEGORY["BAKING_REWARDS"] = "baking rewards";
|
|
1330
|
+
METADATA_BALANCE_UPDATES_CATEGORY["BALLOT"] = "ballot";
|
|
1300
1331
|
METADATA_BALANCE_UPDATES_CATEGORY["BLOCK_FEES"] = "block fees";
|
|
1301
1332
|
METADATA_BALANCE_UPDATES_CATEGORY["BONDS"] = "bonds";
|
|
1302
1333
|
METADATA_BALANCE_UPDATES_CATEGORY["BOOTSTRAP"] = "bootstrap";
|
|
1303
1334
|
METADATA_BALANCE_UPDATES_CATEGORY["BURNED"] = "burned";
|
|
1304
1335
|
METADATA_BALANCE_UPDATES_CATEGORY["COMMITMENT"] = "commitment";
|
|
1336
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ATTESTING_REWARDS"] = "dal attesting rewards";
|
|
1337
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1338
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1305
1339
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATE_DENOMINATOR"] = "delegate_denominator";
|
|
1340
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATION"] = "delegation";
|
|
1306
1341
|
METADATA_BALANCE_UPDATES_CATEGORY["DELEGATOR_NUMERATOR"] = "delegator_numerator";
|
|
1307
1342
|
METADATA_BALANCE_UPDATES_CATEGORY["DEPOSITS"] = "deposits";
|
|
1308
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1343
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ATTESTATION_EVIDENCE"] = "double_attestation_evidence";
|
|
1344
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_BAKING_EVIDENCE"] = "double_baking_evidence";
|
|
1345
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_ENDORSEMENT_EVIDENCE"] = "double_endorsement_evidence";
|
|
1346
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREATTESTATION_EVIDENCE"] = "double_preattestation_evidence";
|
|
1347
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DOUBLE_PREENDORSEMENT_EVIDENCE"] = "double_preendorsement_evidence";
|
|
1348
|
+
METADATA_BALANCE_UPDATES_CATEGORY["DRAIN_DELEGATE"] = "drain_delegate";
|
|
1349
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT"] = "endorsement";
|
|
1350
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ENDORSEMENT_WITH_DAL"] = "endorsement_with_dal";
|
|
1351
|
+
METADATA_BALANCE_UPDATES_CATEGORY["EVENT"] = "event";
|
|
1352
|
+
METADATA_BALANCE_UPDATES_CATEGORY["FAILING_NOOP"] = "failing_noop";
|
|
1353
|
+
METADATA_BALANCE_UPDATES_CATEGORY["INCREASE_PAID_STORAGE"] = "increase_paid_storage";
|
|
1309
1354
|
METADATA_BALANCE_UPDATES_CATEGORY["INVOICE"] = "invoice";
|
|
1310
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ENDORSING_REWARDS"] = "lost endorsing rewards";
|
|
1311
1355
|
METADATA_BALANCE_UPDATES_CATEGORY["LOST_ATTESTING_REWARDS"] = "lost attesting rewards";
|
|
1356
|
+
METADATA_BALANCE_UPDATES_CATEGORY["LOST_DAL_ATTESTING_REWARDS"] = "lost dal attesting rewards";
|
|
1312
1357
|
METADATA_BALANCE_UPDATES_CATEGORY["MINTED"] = "minted";
|
|
1313
1358
|
METADATA_BALANCE_UPDATES_CATEGORY["NONCE_REVELATION_REWARDS"] = "nonce revelation rewards";
|
|
1359
|
+
METADATA_BALANCE_UPDATES_CATEGORY["ORIGINATION"] = "origination";
|
|
1360
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATION"] = "preattestation";
|
|
1361
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
1362
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PREENDORSEMENT"] = "preendorsement";
|
|
1363
|
+
METADATA_BALANCE_UPDATES_CATEGORY["PROPOSALS"] = "proposals";
|
|
1314
1364
|
METADATA_BALANCE_UPDATES_CATEGORY["PUNISHMENTS"] = "punishments";
|
|
1365
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REGISTER_GLOBAL_CONSTANT"] = "register_global_constant";
|
|
1366
|
+
METADATA_BALANCE_UPDATES_CATEGORY["REVEAL"] = "reveal";
|
|
1367
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SEED_NONCE_REVELATION"] = "seed_nonce_revelation";
|
|
1368
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SET_DEPOSITS_LIMIT"] = "set_deposits_limit";
|
|
1369
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ADD_MESSAGES"] = "smart_rollup_add_messages";
|
|
1370
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_CEMENT"] = "smart_rollup_cement";
|
|
1371
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE"] = "smart_rollup_execute_outbox_message";
|
|
1372
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_ORIGINATE"] = "smart_rollup_originate";
|
|
1373
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_PUBLISH"] = "smart_rollup_publish";
|
|
1374
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_RECOVER_BOND"] = "smart_rollup_recover_bond";
|
|
1315
1375
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_PUNISHMENTS"] = "smart_rollup_refutation_punishments";
|
|
1316
1376
|
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTATION_REWARDS"] = "smart_rollup_refutation_rewards";
|
|
1377
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_REFUTE"] = "smart_rollup_refute";
|
|
1378
|
+
METADATA_BALANCE_UPDATES_CATEGORY["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1317
1379
|
METADATA_BALANCE_UPDATES_CATEGORY["STORAGE_FEES"] = "storage fees";
|
|
1318
1380
|
METADATA_BALANCE_UPDATES_CATEGORY["SUBSIDY"] = "subsidy";
|
|
1381
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TICKET_UPDATES"] = "ticket_updates";
|
|
1382
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSACTION"] = "transaction";
|
|
1383
|
+
METADATA_BALANCE_UPDATES_CATEGORY["TRANSFER_TICKET"] = "transfer_ticket";
|
|
1319
1384
|
METADATA_BALANCE_UPDATES_CATEGORY["UNSTAKED_DEPOSITS"] = "unstaked_deposits";
|
|
1320
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1321
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1322
|
-
METADATA_BALANCE_UPDATES_CATEGORY["
|
|
1323
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_FEES"] = "legacy_fees";
|
|
1324
|
-
METADATA_BALANCE_UPDATES_CATEGORY["LEGACY_REWARDS"] = "legacy_rewards";
|
|
1325
|
-
METADATA_BALANCE_UPDATES_CATEGORY["REWARDS"] = "rewards";
|
|
1385
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
1386
|
+
METADATA_BALANCE_UPDATES_CATEGORY["UPDATE_CONSENSUS_KEY"] = "update_consensus_key";
|
|
1387
|
+
METADATA_BALANCE_UPDATES_CATEGORY["VDF_REVELATION"] = "vdf_revelation";
|
|
1326
1388
|
})(exports.METADATA_BALANCE_UPDATES_CATEGORY || (exports.METADATA_BALANCE_UPDATES_CATEGORY = {}));
|
|
1327
1389
|
exports.PvmKind = void 0;
|
|
1328
1390
|
(function (PvmKind) {
|
|
@@ -1405,12 +1467,16 @@
|
|
|
1405
1467
|
OpKind["SMART_ROLLUP_TIMEOUT"] = "smart_rollup_timeout";
|
|
1406
1468
|
OpKind["DAL_PUBLISH_COMMITMENT"] = "dal_publish_commitment";
|
|
1407
1469
|
OpKind["DAL_ENTRAPMENT_EVIDENCE"] = "dal_entrapment_evidence";
|
|
1470
|
+
OpKind["PREATTESTATIONS_AGGREGATE"] = "preattestations_aggregate";
|
|
1471
|
+
OpKind["ATTESTATIONS_AGGREGATE"] = "attestations_aggregate";
|
|
1472
|
+
OpKind["UPDATE_COMPANION_KEY"] = "update_companion_key";
|
|
1473
|
+
OpKind["DOUBLE_CONSENSUS_OPERATION_EVIDENCE"] = "double_consensus_operation_evidence";
|
|
1408
1474
|
})(exports.OpKind || (exports.OpKind = {}));
|
|
1409
1475
|
|
|
1410
1476
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1411
1477
|
const VERSION = {
|
|
1412
|
-
"commitHash": "
|
|
1413
|
-
"version": "
|
|
1478
|
+
"commitHash": "13639ef56845fbb7e93bcbd37d3f6d0457b0872b",
|
|
1479
|
+
"version": "23.0.0-RC.0"
|
|
1414
1480
|
};
|
|
1415
1481
|
|
|
1416
1482
|
/***
|
|
@@ -1444,13 +1510,13 @@
|
|
|
1444
1510
|
validateAddress(address) {
|
|
1445
1511
|
const addressValidation = utils.validateAddress(address);
|
|
1446
1512
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
1447
|
-
throw new core.InvalidAddressError(address,
|
|
1513
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
1448
1514
|
}
|
|
1449
1515
|
}
|
|
1450
1516
|
validateContract(address) {
|
|
1451
1517
|
const addressValidation = utils.validateContractAddress(address);
|
|
1452
1518
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
1453
|
-
throw new core.InvalidContractAddressError(address,
|
|
1519
|
+
throw new core.InvalidContractAddressError(address, addressValidation);
|
|
1454
1520
|
}
|
|
1455
1521
|
}
|
|
1456
1522
|
/**
|
|
@@ -2325,6 +2391,25 @@
|
|
|
2325
2391
|
});
|
|
2326
2392
|
});
|
|
2327
2393
|
}
|
|
2394
|
+
/**
|
|
2395
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
2396
|
+
* @description get current and next protocol
|
|
2397
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
2398
|
+
*/
|
|
2399
|
+
getProtocolActivations() {
|
|
2400
|
+
return __awaiter(this, arguments, void 0, function* (protocol = '') {
|
|
2401
|
+
if (protocol) {
|
|
2402
|
+
const protocolValidation = utils.validateProtocol(protocol);
|
|
2403
|
+
if (protocolValidation !== utils.ValidationResult.VALID) {
|
|
2404
|
+
throw new utils.InvalidProtocolHashError(protocol, protocolValidation);
|
|
2405
|
+
}
|
|
2406
|
+
}
|
|
2407
|
+
return this.httpBackend.createRequest({
|
|
2408
|
+
url: this.createURL(`/chains/${this.chain}/protocols/${protocol}`),
|
|
2409
|
+
method: 'GET',
|
|
2410
|
+
});
|
|
2411
|
+
});
|
|
2412
|
+
}
|
|
2328
2413
|
/**
|
|
2329
2414
|
* @param contract address of the contract we want to retrieve storage information of
|
|
2330
2415
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -2400,7 +2485,7 @@
|
|
|
2400
2485
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
2401
2486
|
* @param args has 5 optional properties
|
|
2402
2487
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
2403
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
2488
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rio-mempool-openapi.json
|
|
2404
2489
|
*/
|
|
2405
2490
|
getPendingOperations() {
|
|
2406
2491
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/types/opkind.d.ts
CHANGED
|
@@ -37,5 +37,9 @@ export declare enum OpKind {
|
|
|
37
37
|
SMART_ROLLUP_REFUTE = "smart_rollup_refute",
|
|
38
38
|
SMART_ROLLUP_TIMEOUT = "smart_rollup_timeout",
|
|
39
39
|
DAL_PUBLISH_COMMITMENT = "dal_publish_commitment",
|
|
40
|
-
DAL_ENTRAPMENT_EVIDENCE = "dal_entrapment_evidence"
|
|
40
|
+
DAL_ENTRAPMENT_EVIDENCE = "dal_entrapment_evidence",
|
|
41
|
+
PREATTESTATIONS_AGGREGATE = "preattestations_aggregate",
|
|
42
|
+
ATTESTATIONS_AGGREGATE = "attestations_aggregate",
|
|
43
|
+
UPDATE_COMPANION_KEY = "update_companion_key",
|
|
44
|
+
DOUBLE_CONSENSUS_OPERATION_EVIDENCE = "double_consensus_operation_evidence"
|
|
41
45
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BigNumber } from 'bignumber.js';
|
|
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,
|
|
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 } from './types';
|
|
3
3
|
export interface RPCOptions {
|
|
4
4
|
block: string;
|
|
5
5
|
version?: 1 | '1';
|
|
@@ -61,12 +61,13 @@ export interface RpcClientInterface {
|
|
|
61
61
|
getSaplingDiffById(id: string, options?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
62
62
|
getSaplingDiffByContract(contract: string, options?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
63
63
|
getProtocols(options?: RPCOptions): Promise<ProtocolsResponse>;
|
|
64
|
+
getProtocolActivations(protocol?: string): Promise<ProtocolActivationsResponse>;
|
|
64
65
|
getStorageUsedSpace(contract: string, options?: RPCOptions): Promise<string>;
|
|
65
66
|
getStoragePaidSpace(contract: string, options?: RPCOptions): Promise<string>;
|
|
66
67
|
getTicketBalance(contract: string, ticket: TicketTokenParams, options?: RPCOptions): Promise<string>;
|
|
67
68
|
getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>;
|
|
68
69
|
getAdaptiveIssuanceLaunchCycle(options?: RPCOptions): Promise<AILaunchCycleResponse>;
|
|
69
|
-
getPendingOperations(args: PendingOperationsQueryArguments): Promise<
|
|
70
|
+
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
70
71
|
}
|
|
71
72
|
export declare enum RPCMethodName {
|
|
72
73
|
GET_BAKING_RIGHTS = "getBakingRights",
|
|
@@ -105,6 +106,7 @@ export declare enum RPCMethodName {
|
|
|
105
106
|
GET_PROPOSALS = "getProposals",
|
|
106
107
|
GET_PROTOCOLS = "getProtocols",
|
|
107
108
|
GET_SAPLING_DIFF_BY_CONTRACT = "getSaplingDiffByContract",
|
|
109
|
+
GET_PROTOCOL_ACTIVATIONS = "getProtocolActivations",
|
|
108
110
|
GET_SAPLING_DIFF_BY_ID = "getSaplingDiffById",
|
|
109
111
|
GET_SCRIPT = "getScript",
|
|
110
112
|
GET_STORAGE = "getStorage",
|
|
@@ -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, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments,
|
|
3
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse } from '../types';
|
|
4
4
|
interface CachedDataInterface {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
handle: () => void;
|
|
@@ -409,6 +409,12 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
409
409
|
getProtocols({ block }?: {
|
|
410
410
|
block: string;
|
|
411
411
|
}): Promise<ProtocolsResponse>;
|
|
412
|
+
/**
|
|
413
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
414
|
+
* @description get current and next protocol
|
|
415
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
416
|
+
*/
|
|
417
|
+
getProtocolActivations(protocol?: string): Promise<ProtocolActivationsResponse>;
|
|
412
418
|
/**
|
|
413
419
|
* @param contract address of the contract we want to retrieve storage information of
|
|
414
420
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -454,6 +460,6 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
454
460
|
* @param args has 5 optional properties
|
|
455
461
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
|
|
456
462
|
*/
|
|
457
|
-
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<
|
|
463
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
458
464
|
}
|
|
459
465
|
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, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments,
|
|
8
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, UnstakeRequestsResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, AttestationRightsQueryArguments, AttestationRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments, ProtocolActivationsResponse } 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';
|
|
@@ -408,6 +408,12 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
408
408
|
getProtocols({ block }?: {
|
|
409
409
|
block: string;
|
|
410
410
|
}): Promise<ProtocolsResponse>;
|
|
411
|
+
/**
|
|
412
|
+
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
413
|
+
* @description get current and next protocol
|
|
414
|
+
* @see https://tezos.gitlab.io/active/rpc.html#get-block-id-protocols
|
|
415
|
+
*/
|
|
416
|
+
getProtocolActivations(protocol?: string): Promise<ProtocolActivationsResponse>;
|
|
411
417
|
/**
|
|
412
418
|
* @param contract address of the contract we want to retrieve storage information of
|
|
413
419
|
* @param options contains generic configuration for rpc calls to specified block (default to head)
|
|
@@ -458,7 +464,7 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
458
464
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
459
465
|
* @param args has 5 optional properties
|
|
460
466
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
461
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
467
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/rio-mempool-openapi.json
|
|
462
468
|
*/
|
|
463
|
-
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<
|
|
469
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
464
470
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -112,6 +112,17 @@ export interface DelegatesResponse {
|
|
|
112
112
|
pk: string;
|
|
113
113
|
}[];
|
|
114
114
|
};
|
|
115
|
+
companion_key?: {
|
|
116
|
+
active: {
|
|
117
|
+
pkh: string;
|
|
118
|
+
pk: string;
|
|
119
|
+
} | null;
|
|
120
|
+
pendings?: {
|
|
121
|
+
cycle: number;
|
|
122
|
+
pkh: string;
|
|
123
|
+
pk: string;
|
|
124
|
+
}[];
|
|
125
|
+
};
|
|
115
126
|
stakers?: {
|
|
116
127
|
staker: string;
|
|
117
128
|
frozen_deposits: string;
|
|
@@ -192,7 +203,7 @@ export interface BlockFullHeader {
|
|
|
192
203
|
}
|
|
193
204
|
export type InlinedAttestationKindEnum = OpKind.ATTESTATION;
|
|
194
205
|
export type InlinedEndorsementKindEnum = OpKind.ENDORSEMENT;
|
|
195
|
-
export type InlinedAttestationContents = OperationContentsAttestation | OperationContentsAttestationWithDal;
|
|
206
|
+
export type InlinedAttestationContents = OperationContentsPreattestation | OperationContentsAttestation | OperationContentsAttestationWithDal | OperationContentsPreattestationsAggregate | OperationContentsAttestationsAggregate;
|
|
196
207
|
export interface InlinedEndorsementContents {
|
|
197
208
|
kind: InlinedEndorsementKindEnum;
|
|
198
209
|
slot?: number;
|
|
@@ -354,6 +365,7 @@ export interface OperationContentsReveal {
|
|
|
354
365
|
gas_limit: string;
|
|
355
366
|
storage_limit: string;
|
|
356
367
|
public_key: string;
|
|
368
|
+
proof?: string;
|
|
357
369
|
}
|
|
358
370
|
export interface OperationContentsTransaction {
|
|
359
371
|
kind: OpKind.TRANSACTION;
|
|
@@ -419,6 +431,16 @@ export interface OperationContentsUpdateConsensusKey {
|
|
|
419
431
|
pk: string;
|
|
420
432
|
proof?: string;
|
|
421
433
|
}
|
|
434
|
+
export interface OperationContentsUpdateCompanionKey {
|
|
435
|
+
kind: OpKind.UPDATE_COMPANION_KEY;
|
|
436
|
+
source: string;
|
|
437
|
+
fee: string;
|
|
438
|
+
counter: string;
|
|
439
|
+
gas_limit: string;
|
|
440
|
+
storage_limit: string;
|
|
441
|
+
pk: string;
|
|
442
|
+
proof?: string;
|
|
443
|
+
}
|
|
422
444
|
export interface OperationContentsDrainDelegate {
|
|
423
445
|
kind: OpKind.DRAIN_DELEGATE;
|
|
424
446
|
consensus_key: string;
|
|
@@ -534,13 +556,41 @@ export interface OperationContentsDalPublishCommitment {
|
|
|
534
556
|
export interface OperationContentsDalEntrapmentEvidence {
|
|
535
557
|
kind: OpKind.DAL_ENTRAPMENT_EVIDENCE;
|
|
536
558
|
attestation: InlinedAttestation;
|
|
559
|
+
consensus_slot: number;
|
|
537
560
|
slot_index: number;
|
|
538
561
|
shard_with_proof: {
|
|
539
562
|
shard: (number | string[])[];
|
|
540
563
|
proof: string;
|
|
541
564
|
};
|
|
542
565
|
}
|
|
543
|
-
export
|
|
566
|
+
export interface OperationContentsPreattestationsAggregate {
|
|
567
|
+
kind: OpKind.PREATTESTATIONS_AGGREGATE;
|
|
568
|
+
consensus_content: {
|
|
569
|
+
level: number;
|
|
570
|
+
round: number;
|
|
571
|
+
block_payload_hash: string;
|
|
572
|
+
};
|
|
573
|
+
committee: number[];
|
|
574
|
+
}
|
|
575
|
+
export interface OperationContentsAttestationsAggregate {
|
|
576
|
+
kind: OpKind.ATTESTATIONS_AGGREGATE;
|
|
577
|
+
consensus_content: {
|
|
578
|
+
level: number;
|
|
579
|
+
round: number;
|
|
580
|
+
block_payload_hash: string;
|
|
581
|
+
};
|
|
582
|
+
committee: {
|
|
583
|
+
slot: number;
|
|
584
|
+
dal_attestation?: string;
|
|
585
|
+
}[];
|
|
586
|
+
}
|
|
587
|
+
export interface OperationContentsDoubleConsensusOperationEvidence {
|
|
588
|
+
kind: OpKind.DOUBLE_CONSENSUS_OPERATION_EVIDENCE;
|
|
589
|
+
slot: number;
|
|
590
|
+
op1: InlinedAttestation;
|
|
591
|
+
op2: InlinedAttestation;
|
|
592
|
+
}
|
|
593
|
+
export type OperationContents = OperationContentsAttestation | OperationContentsPreattestation | OperationContentsDoublePreattestation | OperationContentsEndorsement | OperationContentsPreEndorsement | OperationContentsDoublePreEndorsement | OperationContentsRevelation | OperationContentsVdfRevelation | OperationContentsDoubleAttestation | OperationContentsDoubleEndorsement | OperationContentsDoubleBaking | OperationContentsActivateAccount | OperationContentsProposals | OperationContentsBallot | OperationContentsReveal | OperationContentsTransaction | OperationContentsOrigination | OperationContentsDelegation | OperationContentsAttestationWithDal | OperationContentsEndorsementWithDal | OperationContentsFailingNoop | OperationContentsRegisterGlobalConstant | OperationContentsSetDepositsLimit | OperationContentsTransferTicket | OperationContentsUpdateConsensusKey | OperationContentsDrainDelegate | OperationContentsIncreasePaidStorage | OperationContentsSmartRollupOriginate | OperationContentsSmartRollupAddMessages | OperationContentsSmartRollupExecuteOutboxMessage | OperationContentsSmartRollupPublish | OperationContentsSmartRollupCement | OperationContentsSmartRollupRefute | OperationContentsSmartRollupRecoverBond | OperationContentsSmartRollupTimeout | OperationContentsDalEntrapmentEvidence | OperationContentsDalPublishCommitment | OperationContentsDoubleConsensusOperationEvidence | OperationContentsUpdateCompanionKey | OperationContentsPreattestationsAggregate | OperationContentsAttestationsAggregate;
|
|
544
594
|
export interface OperationContentsAndResultMetadataExtended1 {
|
|
545
595
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
546
596
|
delegate: string;
|
|
@@ -553,12 +603,28 @@ export interface OperationContentsAndResultMetadataExtended0 {
|
|
|
553
603
|
endorsement_power: number;
|
|
554
604
|
consensus_key?: string;
|
|
555
605
|
}
|
|
606
|
+
export interface OperationContentsAndResultMetadataAttestationsAggregate {
|
|
607
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
608
|
+
committee: {
|
|
609
|
+
delegate: string;
|
|
610
|
+
consensus_pkh: string;
|
|
611
|
+
}[];
|
|
612
|
+
consensus_power: number;
|
|
613
|
+
}
|
|
556
614
|
export interface OperationContentsAndResultMetadataPreattestation {
|
|
557
615
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
558
616
|
delegate: string;
|
|
559
617
|
consensus_power: number;
|
|
560
618
|
consensus_key?: string;
|
|
561
619
|
}
|
|
620
|
+
export interface OperationContentsAndResultMetadataPreattestationsAggregate {
|
|
621
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
622
|
+
committee: {
|
|
623
|
+
delegate: string;
|
|
624
|
+
consensus_pkh: string;
|
|
625
|
+
}[];
|
|
626
|
+
consensus_power: number;
|
|
627
|
+
}
|
|
562
628
|
export interface OperationContentsAndResultMetadataPreEndorsement {
|
|
563
629
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
564
630
|
delegate: string;
|
|
@@ -608,6 +674,11 @@ export interface OperationContentsAndResultMetadataUpdateConsensusKey {
|
|
|
608
674
|
operation_result: OperationResultUpdateConsensusKey;
|
|
609
675
|
internal_operation_results?: InternalOperationResult[];
|
|
610
676
|
}
|
|
677
|
+
export interface OperationContentsAndResultMetadataUpdateCompanionKey {
|
|
678
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
679
|
+
operation_result: OperationResultUpdateConsensusKey;
|
|
680
|
+
internal_operation_results?: InternalOperationResult[];
|
|
681
|
+
}
|
|
611
682
|
export interface OperationContentsAndResultMetadataDrainDelegate {
|
|
612
683
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
613
684
|
allocated_destination_contract?: boolean;
|
|
@@ -660,6 +731,24 @@ export interface OperationContentsAndResultMetadataDalPublishCommitment {
|
|
|
660
731
|
export interface OperationContentsAndResultMetadataDalEntrapmentEvidence {
|
|
661
732
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
662
733
|
}
|
|
734
|
+
export interface OperationContentsAndResultMetadataDoubleConsensusOperationEvidence {
|
|
735
|
+
punished_delegate: string;
|
|
736
|
+
rewarded_delegate: string;
|
|
737
|
+
misbehaviour: {
|
|
738
|
+
level: number;
|
|
739
|
+
round: number;
|
|
740
|
+
kind: 'attestation' | 'block' | 'preattestation';
|
|
741
|
+
};
|
|
742
|
+
}
|
|
743
|
+
export interface OperationContentsAndResultMetadataDoubleBaking {
|
|
744
|
+
punished_delegate: string;
|
|
745
|
+
rewarded_delegate: string;
|
|
746
|
+
misbehaviour: {
|
|
747
|
+
level: number;
|
|
748
|
+
round: number;
|
|
749
|
+
kind: 'attestation' | 'block' | 'preattestation';
|
|
750
|
+
};
|
|
751
|
+
}
|
|
663
752
|
export interface OperationContentsAndResultAttestation {
|
|
664
753
|
kind: OpKind.ATTESTATION;
|
|
665
754
|
block_payload_hash?: string;
|
|
@@ -668,6 +757,19 @@ export interface OperationContentsAndResultAttestation {
|
|
|
668
757
|
slot?: number;
|
|
669
758
|
metadata: OperationContentsAndResultMetadataExtended1;
|
|
670
759
|
}
|
|
760
|
+
export interface OperationContentsAndResultAttestationsAggregate {
|
|
761
|
+
kind: OpKind.ATTESTATIONS_AGGREGATE;
|
|
762
|
+
consensus_content: {
|
|
763
|
+
level: number;
|
|
764
|
+
round: number;
|
|
765
|
+
block_payload_hash: string;
|
|
766
|
+
};
|
|
767
|
+
committee: {
|
|
768
|
+
slot: number;
|
|
769
|
+
dal_attestation?: string;
|
|
770
|
+
}[];
|
|
771
|
+
metadata: OperationContentsAndResultMetadataAttestationsAggregate;
|
|
772
|
+
}
|
|
671
773
|
export interface OperationContentsAndResultEndorsement {
|
|
672
774
|
kind: OpKind.ENDORSEMENT;
|
|
673
775
|
block_payload_hash?: string;
|
|
@@ -684,6 +786,16 @@ export interface OperationContentsAndResultPreattestation {
|
|
|
684
786
|
block_payload_hash: string;
|
|
685
787
|
metadata: OperationContentsAndResultMetadataPreattestation;
|
|
686
788
|
}
|
|
789
|
+
export interface OperationContentsAndResultPreattestationsAggregate {
|
|
790
|
+
kind: OpKind.PREATTESTATIONS_AGGREGATE;
|
|
791
|
+
consensus_content: {
|
|
792
|
+
level: number;
|
|
793
|
+
round: number;
|
|
794
|
+
block_payload_hash: string;
|
|
795
|
+
};
|
|
796
|
+
committee: number[];
|
|
797
|
+
metadata: OperationContentsAndResultMetadataPreattestationsAggregate;
|
|
798
|
+
}
|
|
687
799
|
export interface OperationContentsAndResultPreEndorsement {
|
|
688
800
|
kind: OpKind.PREENDORSEMENT;
|
|
689
801
|
slot: number;
|
|
@@ -746,7 +858,7 @@ export interface OperationContentsAndResultDoubleBaking {
|
|
|
746
858
|
kind: OpKind.DOUBLE_BAKING_EVIDENCE;
|
|
747
859
|
bh1: BlockFullHeader;
|
|
748
860
|
bh2: BlockFullHeader;
|
|
749
|
-
metadata:
|
|
861
|
+
metadata: OperationContentsAndResultMetadataDoubleBaking;
|
|
750
862
|
}
|
|
751
863
|
export interface OperationContentsAndResultActivateAccount {
|
|
752
864
|
kind: OpKind.ACTIVATION;
|
|
@@ -775,6 +887,7 @@ export interface OperationContentsAndResultReveal {
|
|
|
775
887
|
gas_limit: string;
|
|
776
888
|
storage_limit: string;
|
|
777
889
|
public_key: string;
|
|
890
|
+
proof?: string;
|
|
778
891
|
metadata: OperationContentsAndResultMetadataReveal;
|
|
779
892
|
}
|
|
780
893
|
export interface OperationContentsAndResultTransaction {
|
|
@@ -845,6 +958,17 @@ export interface OperationContentsAndResultUpdateConsensusKey {
|
|
|
845
958
|
proof?: string;
|
|
846
959
|
metadata: OperationContentsAndResultMetadataUpdateConsensusKey;
|
|
847
960
|
}
|
|
961
|
+
export interface OperationContentsAndResultUpdateCompanionKey {
|
|
962
|
+
kind: OpKind.UPDATE_COMPANION_KEY;
|
|
963
|
+
source: string;
|
|
964
|
+
fee: string;
|
|
965
|
+
counter: string;
|
|
966
|
+
gas_limit: string;
|
|
967
|
+
storage_limit: string;
|
|
968
|
+
pk: string;
|
|
969
|
+
proof?: string;
|
|
970
|
+
metadata: OperationContentsAndResultMetadataUpdateCompanionKey;
|
|
971
|
+
}
|
|
848
972
|
export interface OperationContentsAndResultDrainDelegate {
|
|
849
973
|
kind: OpKind.DRAIN_DELEGATE;
|
|
850
974
|
consensus_key: string;
|
|
@@ -975,6 +1099,7 @@ export interface OperationContentsAndResultDalPublishCommitment {
|
|
|
975
1099
|
export interface OperationContentsAndResultDalEntrapmentEvidence {
|
|
976
1100
|
kind: OpKind.DAL_ENTRAPMENT_EVIDENCE;
|
|
977
1101
|
attestation: InlinedAttestation;
|
|
1102
|
+
consensus_slot: number;
|
|
978
1103
|
slot_index: number;
|
|
979
1104
|
shard_with_proof: {
|
|
980
1105
|
shard: (number | string[])[];
|
|
@@ -982,8 +1107,15 @@ export interface OperationContentsAndResultDalEntrapmentEvidence {
|
|
|
982
1107
|
};
|
|
983
1108
|
metadata: OperationContentsAndResultMetadataDalEntrapmentEvidence;
|
|
984
1109
|
}
|
|
985
|
-
export
|
|
986
|
-
|
|
1110
|
+
export interface OperationContentsAndResultDoubleConsensusOperationEvidence {
|
|
1111
|
+
kind: OpKind.DOUBLE_CONSENSUS_OPERATION_EVIDENCE;
|
|
1112
|
+
slot: number;
|
|
1113
|
+
op1: InlinedAttestation;
|
|
1114
|
+
op2: InlinedAttestation;
|
|
1115
|
+
metadata: OperationContentsAndResultMetadataDoubleConsensusOperationEvidence;
|
|
1116
|
+
}
|
|
1117
|
+
export type OperationContentsAndResult = OperationContentsAndResultAttestation | OperationContentsAndResultPreattestation | OperationContentsAndResultDoublePreattestation | OperationContentsAndResultEndorsement | OperationContentsAndResultPreEndorsement | OperationContentsAndResultDoublePreEndorsement | OperationContentsAndResultRevelation | OperationContentsAndResultDoubleEndorsement | OperationContentsAndResultDoubleAttestation | OperationContentsAndResultDoubleBaking | OperationContentsAndResultActivateAccount | OperationContentsAndResultProposals | OperationContentsAndResultBallot | OperationContentsAndResultReveal | OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultAttestationWithDal | OperationContentsAndResultEndorsementWithDal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultTransferTicket | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultDrainDelegate | OperationContentsAndResultVdfRevelation | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultSmartRollupPublish | OperationContentsAndResultSmartRollupCement | OperationContentsAndResultSmartRollupRefute | OperationContentsAndResultSmartRollupRecoverBond | OperationContentsAndResultSmartRollupTimeout | OperationContentsAndResultDalPublishCommitment | OperationContentsAndResultDalEntrapmentEvidence | OperationContentsAndResultDoubleConsensusOperationEvidence | OperationContentsAndResultUpdateCompanionKey | OperationContentsAndResultPreattestationsAggregate | OperationContentsAndResultAttestationsAggregate;
|
|
1118
|
+
export type OperationContentsAndResultWithFee = OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultReveal | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultTransferTicket | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultDalPublishCommitment | OperationContentsAndResultUpdateCompanionKey;
|
|
987
1119
|
export declare enum OPERATION_METADATA {
|
|
988
1120
|
TOO_LARGE = "too large"
|
|
989
1121
|
}
|
|
@@ -1188,6 +1320,7 @@ export interface OperationResultUpdateConsensusKey {
|
|
|
1188
1320
|
status: OperationResultStatusEnum;
|
|
1189
1321
|
consumed_milligas?: string;
|
|
1190
1322
|
errors?: TezosGenericOperationError[];
|
|
1323
|
+
kind?: boolean;
|
|
1191
1324
|
}
|
|
1192
1325
|
export interface OperationResultDelegation {
|
|
1193
1326
|
status: OperationResultStatusEnum;
|
|
@@ -1343,16 +1476,16 @@ export interface InternalOperationResult {
|
|
|
1343
1476
|
amount?: string;
|
|
1344
1477
|
destination?: string;
|
|
1345
1478
|
parameters?: TransactionOperationParameter;
|
|
1346
|
-
|
|
1479
|
+
result: InternalOperationResultEnum;
|
|
1347
1480
|
balance?: string;
|
|
1348
1481
|
delegate?: string;
|
|
1349
1482
|
script?: ScriptedContracts;
|
|
1350
|
-
value?: MichelsonV1Expression;
|
|
1351
|
-
limit?: string;
|
|
1352
|
-
result: InternalOperationResultEnum;
|
|
1353
1483
|
type?: MichelsonV1Expression;
|
|
1354
1484
|
tag?: string;
|
|
1355
1485
|
payload?: MichelsonV1Expression;
|
|
1486
|
+
public_key?: string;
|
|
1487
|
+
value?: MichelsonV1Expression;
|
|
1488
|
+
limit?: string;
|
|
1356
1489
|
}
|
|
1357
1490
|
export interface SuccessfulManagerOperationResult {
|
|
1358
1491
|
kind: SuccessfulManagerOperationResultKindEnum;
|
|
@@ -1366,36 +1499,73 @@ export interface SuccessfulManagerOperationResult {
|
|
|
1366
1499
|
paid_storage_size_diff?: string;
|
|
1367
1500
|
lazy_storage_diff?: LazyStorageDiff[];
|
|
1368
1501
|
}
|
|
1369
|
-
export type MetadataBalanceUpdatesKindEnum = 'contract' | '
|
|
1502
|
+
export type MetadataBalanceUpdatesKindEnum = 'contract' | 'accumulator' | 'freezer' | 'minted' | 'burned' | 'commitment' | 'staking';
|
|
1370
1503
|
export declare enum METADATA_BALANCE_UPDATES_CATEGORY {
|
|
1504
|
+
ACTIVATION = "activation",
|
|
1505
|
+
ATTESTATION = "attestation",
|
|
1506
|
+
ATTESTATIONS_AGGREGATE = "attestations_aggregate",
|
|
1507
|
+
ATTESTATION_WITH_DAL = "attestation_with_dal",
|
|
1508
|
+
ATTESTING_REWARDS = "attesting rewards",
|
|
1371
1509
|
BAKING_BONUSES = "baking bonuses",
|
|
1372
1510
|
BAKING_REWARDS = "baking rewards",
|
|
1511
|
+
BALLOT = "ballot",
|
|
1373
1512
|
BLOCK_FEES = "block fees",
|
|
1374
1513
|
BONDS = "bonds",
|
|
1375
1514
|
BOOTSTRAP = "bootstrap",
|
|
1376
1515
|
BURNED = "burned",
|
|
1377
1516
|
COMMITMENT = "commitment",
|
|
1517
|
+
DAL_ATTESTING_REWARDS = "dal attesting rewards",
|
|
1518
|
+
DAL_ENTRAPMENT_EVIDENCE = "dal_entrapment_evidence",
|
|
1519
|
+
DAL_PUBLISH_COMMITMENT = "dal_publish_commitment",
|
|
1378
1520
|
DELEGATE_DENOMINATOR = "delegate_denominator",
|
|
1521
|
+
DELEGATION = "delegation",
|
|
1379
1522
|
DELEGATOR_NUMERATOR = "delegator_numerator",
|
|
1380
1523
|
DEPOSITS = "deposits",
|
|
1381
|
-
|
|
1524
|
+
DOUBLE_ATTESTATION_EVIDENCE = "double_attestation_evidence",
|
|
1525
|
+
DOUBLE_BAKING_EVIDENCE = "double_baking_evidence",
|
|
1526
|
+
DOUBLE_ENDORSEMENT_EVIDENCE = "double_endorsement_evidence",
|
|
1527
|
+
DOUBLE_PREATTESTATION_EVIDENCE = "double_preattestation_evidence",
|
|
1528
|
+
DOUBLE_PREENDORSEMENT_EVIDENCE = "double_preendorsement_evidence",
|
|
1529
|
+
DRAIN_DELEGATE = "drain_delegate",
|
|
1530
|
+
ENDORSEMENT = "endorsement",
|
|
1531
|
+
ENDORSEMENT_WITH_DAL = "endorsement_with_dal",
|
|
1532
|
+
EVENT = "event",
|
|
1533
|
+
FAILING_NOOP = "failing_noop",
|
|
1534
|
+
INCREASE_PAID_STORAGE = "increase_paid_storage",
|
|
1382
1535
|
INVOICE = "invoice",
|
|
1383
|
-
LOST_ENDORSING_REWARDS = "lost endorsing rewards",
|
|
1384
1536
|
LOST_ATTESTING_REWARDS = "lost attesting rewards",
|
|
1537
|
+
LOST_DAL_ATTESTING_REWARDS = "lost dal attesting rewards",
|
|
1385
1538
|
MINTED = "minted",
|
|
1386
1539
|
NONCE_REVELATION_REWARDS = "nonce revelation rewards",
|
|
1540
|
+
ORIGINATION = "origination",
|
|
1541
|
+
PREATTESTATION = "preattestation",
|
|
1542
|
+
PREATTESTATIONS_AGGREGATE = "preattestations_aggregate",
|
|
1543
|
+
PREENDORSEMENT = "preendorsement",
|
|
1544
|
+
PROPOSALS = "proposals",
|
|
1387
1545
|
PUNISHMENTS = "punishments",
|
|
1546
|
+
REGISTER_GLOBAL_CONSTANT = "register_global_constant",
|
|
1547
|
+
REVEAL = "reveal",
|
|
1548
|
+
SEED_NONCE_REVELATION = "seed_nonce_revelation",
|
|
1549
|
+
SET_DEPOSITS_LIMIT = "set_deposits_limit",
|
|
1550
|
+
SMART_ROLLUP_ADD_MESSAGES = "smart_rollup_add_messages",
|
|
1551
|
+
SMART_ROLLUP_CEMENT = "smart_rollup_cement",
|
|
1552
|
+
SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message",
|
|
1553
|
+
SMART_ROLLUP_ORIGINATE = "smart_rollup_originate",
|
|
1554
|
+
SMART_ROLLUP_PUBLISH = "smart_rollup_publish",
|
|
1555
|
+
SMART_ROLLUP_RECOVER_BOND = "smart_rollup_recover_bond",
|
|
1388
1556
|
SMART_ROLLUP_REFUTATION_PUNISHMENTS = "smart_rollup_refutation_punishments",
|
|
1389
1557
|
SMART_ROLLUP_REFUTATION_REWARDS = "smart_rollup_refutation_rewards",
|
|
1558
|
+
SMART_ROLLUP_REFUTE = "smart_rollup_refute",
|
|
1559
|
+
SMART_ROLLUP_TIMEOUT = "smart_rollup_timeout",
|
|
1390
1560
|
STORAGE_FEES = "storage fees",
|
|
1391
1561
|
SUBSIDY = "subsidy",
|
|
1562
|
+
TICKET_UPDATES = "ticket_updates",
|
|
1563
|
+
TRANSACTION = "transaction",
|
|
1564
|
+
TRANSFER_TICKET = "transfer_ticket",
|
|
1392
1565
|
UNSTAKED_DEPOSITS = "unstaked_deposits",
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
LEGACY_FEES = "legacy_fees",
|
|
1397
|
-
LEGACY_REWARDS = "legacy_rewards",
|
|
1398
|
-
REWARDS = "rewards"
|
|
1566
|
+
UPDATE_COMPANION_KEY = "update_companion_key",
|
|
1567
|
+
UPDATE_CONSENSUS_KEY = "update_consensus_key",
|
|
1568
|
+
VDF_REVELATION = "vdf_revelation"
|
|
1399
1569
|
}
|
|
1400
1570
|
export type MetadataBalanceUpdatesCategoryEnum = METADATA_BALANCE_UPDATES_CATEGORY;
|
|
1401
1571
|
export type MetadataBalanceUpdatesOriginEnum = 'block' | 'migration' | 'subsidy' | 'simulation' | 'delayed_operation';
|
|
@@ -1500,7 +1670,7 @@ export interface OperationContentsAndResultMetadataOrigination {
|
|
|
1500
1670
|
operation_result: OperationResultOrigination;
|
|
1501
1671
|
internal_operation_results?: InternalOperationResult[];
|
|
1502
1672
|
}
|
|
1503
|
-
export type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto022 & ConstantsResponseProto021 & ConstantsResponseProto020 & ConstantsResponseProto019 & ConstantsResponseProto017 & ConstantsResponseProto016 & ConstantsResponseProto015 & ConstantsResponseProto014 & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
|
|
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;
|
|
1504
1674
|
export interface ConstantsResponseCommon {
|
|
1505
1675
|
proof_of_work_nonce_size: number;
|
|
1506
1676
|
nonce_length: number;
|
|
@@ -1528,6 +1698,7 @@ export type Ratio = {
|
|
|
1528
1698
|
numerator: number;
|
|
1529
1699
|
denominator: number;
|
|
1530
1700
|
};
|
|
1701
|
+
export type ConstantsResponseProto023 = ConstantsResponseProto022;
|
|
1531
1702
|
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'> {
|
|
1532
1703
|
aggregate_attestation: boolean;
|
|
1533
1704
|
all_bakers_attest_activation_level: null | number;
|
|
@@ -1837,6 +2008,7 @@ export interface ContractResponse {
|
|
|
1837
2008
|
script: ScriptedContracts;
|
|
1838
2009
|
counter?: string;
|
|
1839
2010
|
delegate?: string;
|
|
2011
|
+
revealed?: boolean;
|
|
1840
2012
|
}
|
|
1841
2013
|
export interface TestChainStatus {
|
|
1842
2014
|
status: 'not_running' | 'forking' | 'running';
|
|
@@ -1990,6 +2162,15 @@ export type ProtocolsResponse = {
|
|
|
1990
2162
|
protocol: string;
|
|
1991
2163
|
next_protocol: string;
|
|
1992
2164
|
};
|
|
2165
|
+
export type ProtocolActivationsResponse = ProtocolActivation[] | ProtocolActivation;
|
|
2166
|
+
export type ProtocolActivation = {
|
|
2167
|
+
protocol: string;
|
|
2168
|
+
proto_level: number;
|
|
2169
|
+
activation_block: {
|
|
2170
|
+
block_hash: string;
|
|
2171
|
+
level: number;
|
|
2172
|
+
};
|
|
2173
|
+
};
|
|
1993
2174
|
export type Next = {
|
|
1994
2175
|
next: number;
|
|
1995
2176
|
} | {
|
|
@@ -2015,14 +2196,6 @@ export interface PendingOperationsQueryArguments {
|
|
|
2015
2196
|
type FailedProcessedOperation = Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'> & {
|
|
2016
2197
|
error: TezosGenericOperationError[];
|
|
2017
2198
|
};
|
|
2018
|
-
export interface PendingOperationsV1 {
|
|
2019
|
-
applied: Pick<OperationEntry, 'hash' | 'branch' | 'contents' | 'signature'>[];
|
|
2020
|
-
refused: FailedProcessedOperation[];
|
|
2021
|
-
outdated: FailedProcessedOperation[];
|
|
2022
|
-
branch_refused: FailedProcessedOperation[];
|
|
2023
|
-
branch_delayed: FailedProcessedOperation[];
|
|
2024
|
-
unprocessed: Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'>[];
|
|
2025
|
-
}
|
|
2026
2199
|
export interface PendingOperationsV2 {
|
|
2027
2200
|
validated: Pick<OperationEntry, 'hash' | 'branch' | 'contents' | 'signature'>[];
|
|
2028
2201
|
refused: FailedProcessedOperation[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "23.0.0-RC.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",
|
|
@@ -66,9 +66,9 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/core": "^
|
|
70
|
-
"@taquito/http-utils": "^
|
|
71
|
-
"@taquito/utils": "^
|
|
69
|
+
"@taquito/core": "^23.0.0-RC.0",
|
|
70
|
+
"@taquito/http-utils": "^23.0.0-RC.0",
|
|
71
|
+
"@taquito/utils": "^23.0.0-RC.0",
|
|
72
72
|
"bignumber.js": "^9.1.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"ts-toolbelt": "^9.6.0",
|
|
99
99
|
"typescript": "~5.5.4"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "3bdb33e97e705d1c7090dd83e1b243e6e2a4d768"
|
|
102
102
|
}
|