@taquito/rpc 23.0.0-beta.0 → 23.0.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-modules/rpc-cache.js +3 -3
- package/dist/lib/taquito-rpc.js +4 -4
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +10 -10
- package/dist/taquito-rpc.umd.js +9 -9
- package/dist/types/taquito-rpc.d.ts +1 -1
- package/dist/types/types.d.ts +1 -0
- package/package.json +5 -5
|
@@ -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
|
/**
|
|
@@ -1077,7 +1077,7 @@ class RpcClientCache {
|
|
|
1077
1077
|
if (protocol) {
|
|
1078
1078
|
const protocolValidation = (0, utils_1.validateProtocol)(protocol);
|
|
1079
1079
|
if (protocolValidation !== utils_1.ValidationResult.VALID) {
|
|
1080
|
-
throw new
|
|
1080
|
+
throw new utils_1.InvalidProtocolHashError(protocol, protocolValidation);
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), rpc_client_interface_1.RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
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
|
/**
|
|
@@ -979,7 +979,7 @@ class RpcClient {
|
|
|
979
979
|
if (protocol) {
|
|
980
980
|
const protocolValidation = (0, utils_2.validateProtocol)(protocol);
|
|
981
981
|
if (protocolValidation !== utils_2.ValidationResult.VALID) {
|
|
982
|
-
throw new
|
|
982
|
+
throw new utils_2.InvalidProtocolHashError(protocol, protocolValidation);
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
return this.httpBackend.createRequest({
|
|
@@ -1063,7 +1063,7 @@ class RpcClient {
|
|
|
1063
1063
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
1064
1064
|
* @param args has 5 optional properties
|
|
1065
1065
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
1066
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
1066
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/seoul-mempool-openapi.json
|
|
1067
1067
|
*/
|
|
1068
1068
|
getPendingOperations() {
|
|
1069
1069
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
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": "23.0.0
|
|
6
|
+
"commitHash": "9065acc1b41ec205a49e64b54ef89f50bafa6210",
|
|
7
|
+
"version": "23.0.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
|
/******************************************************************************
|
|
@@ -192,13 +192,13 @@ class RpcClientCache {
|
|
|
192
192
|
validateAddress(address) {
|
|
193
193
|
const addressValidation = validateAddress(address);
|
|
194
194
|
if (addressValidation !== ValidationResult.VALID) {
|
|
195
|
-
throw new InvalidAddressError(address,
|
|
195
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
validateContract(address) {
|
|
199
199
|
const addressValidation = validateContractAddress(address);
|
|
200
200
|
if (addressValidation !== ValidationResult.VALID) {
|
|
201
|
-
throw new InvalidContractAddressError(address,
|
|
201
|
+
throw new InvalidContractAddressError(address, addressValidation);
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
@@ -1183,7 +1183,7 @@ class RpcClientCache {
|
|
|
1183
1183
|
if (protocol) {
|
|
1184
1184
|
const protocolValidation = validateProtocol(protocol);
|
|
1185
1185
|
if (protocolValidation !== ValidationResult.VALID) {
|
|
1186
|
-
throw new
|
|
1186
|
+
throw new InvalidProtocolHashError(protocol, protocolValidation);
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
1189
|
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
|
@@ -1474,8 +1474,8 @@ var OpKind;
|
|
|
1474
1474
|
|
|
1475
1475
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1476
1476
|
const VERSION = {
|
|
1477
|
-
"commitHash": "
|
|
1478
|
-
"version": "23.0.0
|
|
1477
|
+
"commitHash": "9065acc1b41ec205a49e64b54ef89f50bafa6210",
|
|
1478
|
+
"version": "23.0.0"
|
|
1479
1479
|
};
|
|
1480
1480
|
|
|
1481
1481
|
/***
|
|
@@ -1509,13 +1509,13 @@ class RpcClient {
|
|
|
1509
1509
|
validateAddress(address) {
|
|
1510
1510
|
const addressValidation = validateAddress(address);
|
|
1511
1511
|
if (addressValidation !== ValidationResult.VALID) {
|
|
1512
|
-
throw new InvalidAddressError(address,
|
|
1512
|
+
throw new InvalidAddressError(address, addressValidation);
|
|
1513
1513
|
}
|
|
1514
1514
|
}
|
|
1515
1515
|
validateContract(address) {
|
|
1516
1516
|
const addressValidation = validateContractAddress(address);
|
|
1517
1517
|
if (addressValidation !== ValidationResult.VALID) {
|
|
1518
|
-
throw new InvalidContractAddressError(address,
|
|
1518
|
+
throw new InvalidContractAddressError(address, addressValidation);
|
|
1519
1519
|
}
|
|
1520
1520
|
}
|
|
1521
1521
|
/**
|
|
@@ -2400,7 +2400,7 @@ class RpcClient {
|
|
|
2400
2400
|
if (protocol) {
|
|
2401
2401
|
const protocolValidation = validateProtocol(protocol);
|
|
2402
2402
|
if (protocolValidation !== ValidationResult.VALID) {
|
|
2403
|
-
throw new
|
|
2403
|
+
throw new InvalidProtocolHashError(protocol, protocolValidation);
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
return this.httpBackend.createRequest({
|
|
@@ -2484,7 +2484,7 @@ class RpcClient {
|
|
|
2484
2484
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
2485
2485
|
* @param args has 5 optional properties
|
|
2486
2486
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
2487
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
2487
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/seoul-mempool-openapi.json
|
|
2488
2488
|
*/
|
|
2489
2489
|
getPendingOperations() {
|
|
2490
2490
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -193,13 +193,13 @@
|
|
|
193
193
|
validateAddress(address) {
|
|
194
194
|
const addressValidation = utils.validateAddress(address);
|
|
195
195
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
196
|
-
throw new core.InvalidAddressError(address,
|
|
196
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
validateContract(address) {
|
|
200
200
|
const addressValidation = utils.validateContractAddress(address);
|
|
201
201
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
202
|
-
throw new core.InvalidContractAddressError(address,
|
|
202
|
+
throw new core.InvalidContractAddressError(address, addressValidation);
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
/**
|
|
@@ -1184,7 +1184,7 @@
|
|
|
1184
1184
|
if (protocol) {
|
|
1185
1185
|
const protocolValidation = utils.validateProtocol(protocol);
|
|
1186
1186
|
if (protocolValidation !== utils.ValidationResult.VALID) {
|
|
1187
|
-
throw new
|
|
1187
|
+
throw new utils.InvalidProtocolHashError(protocol, protocolValidation);
|
|
1188
1188
|
}
|
|
1189
1189
|
}
|
|
1190
1190
|
const key = this.formatCacheKey(this.rpcClient.getRpcUrl(), RPCMethodName.GET_PROTOCOL_ACTIVATIONS, [protocol]);
|
|
@@ -1475,8 +1475,8 @@
|
|
|
1475
1475
|
|
|
1476
1476
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1477
1477
|
const VERSION = {
|
|
1478
|
-
"commitHash": "
|
|
1479
|
-
"version": "23.0.0
|
|
1478
|
+
"commitHash": "9065acc1b41ec205a49e64b54ef89f50bafa6210",
|
|
1479
|
+
"version": "23.0.0"
|
|
1480
1480
|
};
|
|
1481
1481
|
|
|
1482
1482
|
/***
|
|
@@ -1510,13 +1510,13 @@
|
|
|
1510
1510
|
validateAddress(address) {
|
|
1511
1511
|
const addressValidation = utils.validateAddress(address);
|
|
1512
1512
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
1513
|
-
throw new core.InvalidAddressError(address,
|
|
1513
|
+
throw new core.InvalidAddressError(address, addressValidation);
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
1516
|
validateContract(address) {
|
|
1517
1517
|
const addressValidation = utils.validateContractAddress(address);
|
|
1518
1518
|
if (addressValidation !== utils.ValidationResult.VALID) {
|
|
1519
|
-
throw new core.InvalidContractAddressError(address,
|
|
1519
|
+
throw new core.InvalidContractAddressError(address, addressValidation);
|
|
1520
1520
|
}
|
|
1521
1521
|
}
|
|
1522
1522
|
/**
|
|
@@ -2401,7 +2401,7 @@
|
|
|
2401
2401
|
if (protocol) {
|
|
2402
2402
|
const protocolValidation = utils.validateProtocol(protocol);
|
|
2403
2403
|
if (protocolValidation !== utils.ValidationResult.VALID) {
|
|
2404
|
-
throw new
|
|
2404
|
+
throw new utils.InvalidProtocolHashError(protocol, protocolValidation);
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
return this.httpBackend.createRequest({
|
|
@@ -2485,7 +2485,7 @@
|
|
|
2485
2485
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
2486
2486
|
* @param args has 5 optional properties
|
|
2487
2487
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
2488
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
2488
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/seoul-mempool-openapi.json
|
|
2489
2489
|
*/
|
|
2490
2490
|
getPendingOperations() {
|
|
2491
2491
|
return __awaiter(this, arguments, void 0, function* (args = {}) {
|
|
@@ -464,7 +464,7 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
464
464
|
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
465
465
|
* @param args has 5 optional properties
|
|
466
466
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
467
|
-
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/
|
|
467
|
+
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/seoul-mempool-openapi.json
|
|
468
468
|
*/
|
|
469
469
|
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
470
470
|
}
|
package/dist/types/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "23.0.0
|
|
3
|
+
"version": "23.0.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": "^23.0.0
|
|
70
|
-
"@taquito/http-utils": "^23.0.0
|
|
71
|
-
"@taquito/utils": "^23.0.0
|
|
69
|
+
"@taquito/core": "^23.0.0",
|
|
70
|
+
"@taquito/http-utils": "^23.0.0",
|
|
71
|
+
"@taquito/utils": "^23.0.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": "4ac77876be144da54f292e639b5b977a13642de9"
|
|
102
102
|
}
|