@taquito/rpc 21.0.0-beta.1 → 21.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/version.js +2 -2
- package/dist/taquito-rpc.es6.js +2 -2
- package/dist/taquito-rpc.umd.js +2 -2
- package/dist/types/rpc-client-interface.d.ts +2 -2
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +2 -2
- package/dist/types/taquito-rpc.d.ts +2 -2
- package/dist/types/types.d.ts +10 -1
- package/package.json +7 -7
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": "21.0.0
|
|
6
|
+
"commitHash": "8f78637e9787ae942916332501f41b35d6b98f2d",
|
|
7
|
+
"version": "21.0.0"
|
|
8
8
|
};
|
package/dist/taquito-rpc.es6.js
CHANGED
|
@@ -1407,8 +1407,8 @@ var OpKind;
|
|
|
1407
1407
|
|
|
1408
1408
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1409
1409
|
const VERSION = {
|
|
1410
|
-
"commitHash": "
|
|
1411
|
-
"version": "21.0.0
|
|
1410
|
+
"commitHash": "8f78637e9787ae942916332501f41b35d6b98f2d",
|
|
1411
|
+
"version": "21.0.0"
|
|
1412
1412
|
};
|
|
1413
1413
|
|
|
1414
1414
|
/***
|
package/dist/taquito-rpc.umd.js
CHANGED
|
@@ -1408,8 +1408,8 @@
|
|
|
1408
1408
|
|
|
1409
1409
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
1410
1410
|
const VERSION = {
|
|
1411
|
-
"commitHash": "
|
|
1412
|
-
"version": "21.0.0
|
|
1411
|
+
"commitHash": "8f78637e9787ae942916332501f41b35d6b98f2d",
|
|
1412
|
+
"version": "21.0.0"
|
|
1413
1413
|
};
|
|
1414
1414
|
|
|
1415
1415
|
/***
|
|
@@ -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, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } from './types';
|
|
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, PendingOperationsV1, PendingOperationsV2, PendingOperationsQueryArguments, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } from './types';
|
|
3
3
|
export interface RPCOptions {
|
|
4
4
|
block: string;
|
|
5
5
|
version?: 1 | '1';
|
|
@@ -66,7 +66,7 @@ export interface RpcClientInterface {
|
|
|
66
66
|
getTicketBalance(contract: string, ticket: TicketTokenParams, options?: RPCOptions): Promise<string>;
|
|
67
67
|
getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>;
|
|
68
68
|
getAdaptiveIssuanceLaunchCycle(options?: RPCOptions): Promise<AILaunchCycleResponse>;
|
|
69
|
-
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
69
|
+
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
|
|
70
70
|
}
|
|
71
71
|
export declare enum RPCMethodName {
|
|
72
72
|
GET_BAKING_RIGHTS = "getBakingRights",
|
|
@@ -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, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } from '../types';
|
|
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, PendingOperationsV1, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } from '../types';
|
|
4
4
|
interface CachedDataInterface {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
handle: () => void;
|
|
@@ -454,6 +454,6 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
454
454
|
* @param args has 5 optional properties
|
|
455
455
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
|
|
456
456
|
*/
|
|
457
|
-
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
457
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
|
|
458
458
|
}
|
|
459
459
|
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, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } from './types';
|
|
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, PendingOperationsV1, PendingOperationsV2, RPCSimulateOperationParam, AILaunchCycleResponse, AllDelegatesQueryArguments } 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';
|
|
@@ -460,5 +460,5 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
460
460
|
* @default args { version: '2', validated: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined, source: undefined, operationHash: undefined }
|
|
461
461
|
* @see https://gitlab.com/tezos/tezos/-/blob/master/docs/api/paris-mempool-openapi-rc.json
|
|
462
462
|
*/
|
|
463
|
-
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV2>;
|
|
463
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperationsV1 | PendingOperationsV2>;
|
|
464
464
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1881,8 +1881,9 @@ export type LastRemovedCommitmentHashes = {
|
|
|
1881
1881
|
commitment_hash: string;
|
|
1882
1882
|
};
|
|
1883
1883
|
export interface PendingOperationsQueryArguments {
|
|
1884
|
-
version?:
|
|
1884
|
+
version?: 1 | 2 | '1' | '2';
|
|
1885
1885
|
validated?: boolean;
|
|
1886
|
+
applied?: boolean;
|
|
1886
1887
|
refused?: boolean;
|
|
1887
1888
|
outdated?: boolean;
|
|
1888
1889
|
branchRefused?: boolean;
|
|
@@ -1894,6 +1895,14 @@ export interface PendingOperationsQueryArguments {
|
|
|
1894
1895
|
type FailedProcessedOperation = Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'> & {
|
|
1895
1896
|
error: TezosGenericOperationError[];
|
|
1896
1897
|
};
|
|
1898
|
+
export interface PendingOperationsV1 {
|
|
1899
|
+
applied: Pick<OperationEntry, 'hash' | 'branch' | 'contents' | 'signature'>[];
|
|
1900
|
+
refused: FailedProcessedOperation[];
|
|
1901
|
+
outdated: FailedProcessedOperation[];
|
|
1902
|
+
branch_refused: FailedProcessedOperation[];
|
|
1903
|
+
branch_delayed: FailedProcessedOperation[];
|
|
1904
|
+
unprocessed: Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'>[];
|
|
1905
|
+
}
|
|
1897
1906
|
export interface PendingOperationsV2 {
|
|
1898
1907
|
validated: Pick<OperationEntry, 'hash' | 'branch' | 'contents' | 'signature'>[];
|
|
1899
1908
|
refused: FailedProcessedOperation[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "21.0.0
|
|
3
|
+
"version": "21.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",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"license": "Apache-2.0",
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=18"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"test": "jest --coverage",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
68
|
"dependencies": {
|
|
69
|
-
"@taquito/core": "^21.0.0
|
|
70
|
-
"@taquito/http-utils": "^21.0.0
|
|
71
|
-
"@taquito/utils": "^21.0.0
|
|
69
|
+
"@taquito/core": "^21.0.0",
|
|
70
|
+
"@taquito/http-utils": "^21.0.0",
|
|
71
|
+
"@taquito/utils": "^21.0.0",
|
|
72
72
|
"bignumber.js": "^9.1.2"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@types/bluebird": "^3.5.42",
|
|
76
76
|
"@types/jest": "^29.5.12",
|
|
77
|
-
"@types/node": "^
|
|
77
|
+
"@types/node": "^18",
|
|
78
78
|
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
79
79
|
"@typescript-eslint/parser": "^6.21.0",
|
|
80
80
|
"colors": "^1.4.0",
|
|
@@ -98,5 +98,5 @@
|
|
|
98
98
|
"ts-toolbelt": "^9.6.0",
|
|
99
99
|
"typescript": "~5.5.4"
|
|
100
100
|
},
|
|
101
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "655216b13995860187b1a1baf3c87e90b4fd69cb"
|
|
102
102
|
}
|