@taquito/rpc 12.1.0 → 13.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/opkind.js +9 -0
- package/dist/lib/opkind.js.map +1 -1
- package/dist/lib/rpc-client-interface.js +38 -1
- package/dist/lib/rpc-client-interface.js.map +1 -1
- package/dist/lib/rpc-client-modules/rpc-cache.js +156 -79
- package/dist/lib/rpc-client-modules/rpc-cache.js.map +1 -1
- package/dist/lib/taquito-rpc.js +36 -0
- package/dist/lib/taquito-rpc.js.map +1 -1
- package/dist/lib/types.js +8 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +211 -46
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +210 -45
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/opkind.d.ts +10 -1
- package/dist/types/rpc-client-interface.d.ts +39 -1
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +7 -1
- package/dist/types/taquito-rpc.d.ts +26 -1
- package/dist/types/types.d.ts +487 -17
- package/package.json +4 -4
package/dist/types/opkind.d.ts
CHANGED
|
@@ -15,5 +15,14 @@ export declare enum OpKind {
|
|
|
15
15
|
PROPOSALS = "proposals",
|
|
16
16
|
BALLOT = "ballot",
|
|
17
17
|
FAILING_NOOP = "failing_noop",
|
|
18
|
-
REGISTER_GLOBAL_CONSTANT = "register_global_constant"
|
|
18
|
+
REGISTER_GLOBAL_CONSTANT = "register_global_constant",
|
|
19
|
+
TX_ROLLUP_ORIGINATION = "tx_rollup_origination",
|
|
20
|
+
TX_ROLLUP_SUBMIT_BATCH = "tx_rollup_submit_batch",
|
|
21
|
+
TX_ROLLUP_COMMIT = "tx_rollup_commit",
|
|
22
|
+
TX_ROLLUP_RETURN_BOND = "tx_rollup_return_bond",
|
|
23
|
+
TX_ROLLUP_FINALIZE_COMMITMENT = "tx_rollup_finalize_commitment",
|
|
24
|
+
TX_ROLLUP_REMOVE_COMMITMENT = "tx_rollup_remove_commitment",
|
|
25
|
+
TX_ROLLUP_REJECTION = "tx_rollup_rejection",
|
|
26
|
+
TX_ROLLUP_DISPATCH_TICKETS = "tx_rollup_dispatch_tickets",
|
|
27
|
+
TRANSFER_TICKET = "transfer_ticket"
|
|
19
28
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BigNumber } from 'bignumber.js';
|
|
2
|
-
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult } from './types';
|
|
2
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult } from './types';
|
|
3
3
|
export interface RPCOptions {
|
|
4
4
|
block: string;
|
|
5
5
|
}
|
|
@@ -48,4 +48,42 @@ export interface RpcClientInterface {
|
|
|
48
48
|
getSaplingDiffById(id: string, options?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
49
49
|
getSaplingDiffByContract(contract: string, options?: RPCOptions): Promise<SaplingDiffResponse>;
|
|
50
50
|
getProtocols(options?: RPCOptions): Promise<ProtocolsResponse>;
|
|
51
|
+
getTxRollupState(txRollupId: string, options?: RPCOptions): Promise<TxRollupStateResponse>;
|
|
52
|
+
getTxRollupInbox(txRollupId: string, blockLevel: string, options?: RPCOptions): Promise<TxRollupInboxResponse | null>;
|
|
53
|
+
}
|
|
54
|
+
export declare enum RPCMethodName {
|
|
55
|
+
GET_BAKING_RIGHTS = "getBakingRights",
|
|
56
|
+
GET_BALLOTS = "getBallots",
|
|
57
|
+
GET_BALLOT_LIST = "getBallotList",
|
|
58
|
+
GET_BIG_MAP_KEY = "getBigMapKey",
|
|
59
|
+
GET_BIG_MAP_EXPR = "getBigMapExpr",
|
|
60
|
+
GET_BLOCK_HASH = "getBlockHash",
|
|
61
|
+
GET_BLOCK = "getBlock",
|
|
62
|
+
GET_BLOCK_HEADER = "getBlockHeader",
|
|
63
|
+
GET_BLOCK_METADATA = "getBlockMetadata",
|
|
64
|
+
GET_BALANCE = "getBalance",
|
|
65
|
+
GET_CHAIN_ID = "getChainId",
|
|
66
|
+
GET_CONSTANTS = "getConstants",
|
|
67
|
+
GET_CONTRACT = "getContract",
|
|
68
|
+
GET_CURRENT_PERIOD = "getCurrentPeriod",
|
|
69
|
+
GET_CURRENT_PROPOSAL = "getCurrentProposal",
|
|
70
|
+
GET_CURRENT_QUORUM = "getCurrentQuorum",
|
|
71
|
+
GET_DELEGATE = "getDelegate",
|
|
72
|
+
GET_DELEGATES = "getDelegates",
|
|
73
|
+
GET_ENDORSING_RIGHTS = "getEndorsingRights",
|
|
74
|
+
GET_ENTRYPOINTS = "getEntrypoints",
|
|
75
|
+
GET_LIVE_BLOCKS = "getLiveBlocks",
|
|
76
|
+
GET_MANAGER_KEY = "getManagerKey",
|
|
77
|
+
GET_NORMALIZED_SCRIPT = "getNormalizedScript",
|
|
78
|
+
GET_PROPOSALS = "getProposals",
|
|
79
|
+
GET_PROTOCOLS = "getProtocols",
|
|
80
|
+
GET_SAPLING_DIFF_BY_CONTRACT = "getSaplingDiffByContract",
|
|
81
|
+
GET_SAPLING_DIFF_BY_ID = "getSaplingDiffById",
|
|
82
|
+
GET_SCRIPT = "getScript",
|
|
83
|
+
GET_STORAGE = "getStorage",
|
|
84
|
+
GET_SUCCESSOR_PERIOD = "getSuccessorPeriod",
|
|
85
|
+
GET_TX_ROLLUP_INBOX = "getTxRollupInbox",
|
|
86
|
+
GET_TX_ROLLUP_STATE = "getTxRollupState",
|
|
87
|
+
GET_VOTES_LISTINGS = "getVotesListings",
|
|
88
|
+
PACK_DATA = "packData"
|
|
51
89
|
}
|
|
@@ -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, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult } from '../types';
|
|
3
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult } from '../types';
|
|
4
4
|
interface CachedDataInterface {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
handle: () => void;
|
|
@@ -422,5 +422,11 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
422
422
|
getProtocols({ block }?: {
|
|
423
423
|
block: string;
|
|
424
424
|
}): Promise<ProtocolsResponse>;
|
|
425
|
+
getTxRollupState(txRollupId: string, { block }?: {
|
|
426
|
+
block: string;
|
|
427
|
+
}): Promise<TxRollupStateResponse>;
|
|
428
|
+
getTxRollupInbox(txRollupId: string, blockLevel: string, { block }?: {
|
|
429
|
+
block: string;
|
|
430
|
+
}): Promise<TxRollupInboxResponse | null>;
|
|
425
431
|
}
|
|
426
432
|
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, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult } from './types';
|
|
8
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RunCodeResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TxRollupStateResponse, TxRollupInboxResponse } 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';
|
|
@@ -424,4 +424,29 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
424
424
|
getProtocols({ block }?: {
|
|
425
425
|
block: string;
|
|
426
426
|
}): Promise<ProtocolsResponse>;
|
|
427
|
+
/**
|
|
428
|
+
*
|
|
429
|
+
* @param tx_rollup_id the transaction rollup ID
|
|
430
|
+
* @param options contains generic configuration for rpc calls
|
|
431
|
+
*
|
|
432
|
+
* @description Access the state of a rollup
|
|
433
|
+
*
|
|
434
|
+
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-state
|
|
435
|
+
*/
|
|
436
|
+
getTxRollupState(txRollupId: string, { block }?: {
|
|
437
|
+
block: string;
|
|
438
|
+
}): Promise<TxRollupStateResponse>;
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @param tx_rollup_id the transaction rollup ID
|
|
442
|
+
* @param block_level the block level
|
|
443
|
+
* @param options contains generic configuration for rpc calls
|
|
444
|
+
*
|
|
445
|
+
* @description Access the inbox of a transaction rollup
|
|
446
|
+
*
|
|
447
|
+
* @see https://tezos.gitlab.io/jakarta/rpc.html#get-block-id-context-tx-rollup-tx-rollup-id-inbox-block-level
|
|
448
|
+
*/
|
|
449
|
+
getTxRollupInbox(txRollupId: string, blockLevel: string, { block }?: {
|
|
450
|
+
block: string;
|
|
451
|
+
}): Promise<TxRollupInboxResponse | null>;
|
|
427
452
|
}
|