@taquito/rpc 16.0.1 → 16.1.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 +5 -0
- package/dist/lib/opkind.js.map +1 -1
- package/dist/lib/rpc-client-interface.js +2 -0
- package/dist/lib/rpc-client-interface.js.map +1 -1
- package/dist/lib/rpc-client-modules/rpc-cache.js +38 -0
- package/dist/lib/rpc-client-modules/rpc-cache.js.map +1 -1
- package/dist/lib/taquito-rpc.js +29 -0
- package/dist/lib/taquito-rpc.js.map +1 -1
- package/dist/lib/types.js +38 -1
- package/dist/lib/types.js.map +1 -1
- package/dist/lib/version.js +2 -2
- package/dist/taquito-rpc.es6.js +115 -4
- package/dist/taquito-rpc.es6.js.map +1 -1
- package/dist/taquito-rpc.umd.js +114 -3
- package/dist/taquito-rpc.umd.js.map +1 -1
- package/dist/types/opkind.d.ts +6 -1
- package/dist/types/rpc-client-interface.d.ts +6 -2
- package/dist/types/rpc-client-modules/rpc-cache.d.ts +15 -1
- package/dist/types/taquito-rpc.d.ts +17 -1
- package/dist/types/types.d.ts +307 -14
- package/package.json +4 -4
package/dist/types/opkind.d.ts
CHANGED
|
@@ -33,5 +33,10 @@ export declare enum OpKind {
|
|
|
33
33
|
TICKET_UPDATES = "ticket_updates",
|
|
34
34
|
SMART_ROLLUP_ORIGINATE = "smart_rollup_originate",
|
|
35
35
|
SMART_ROLLUP_ADD_MESSAGES = "smart_rollup_add_messages",
|
|
36
|
-
SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message"
|
|
36
|
+
SMART_ROLLUP_EXECUTE_OUTBOX_MESSAGE = "smart_rollup_execute_outbox_message",
|
|
37
|
+
SMART_ROLLUP_PUBLISH = "smart_rollup_publish",
|
|
38
|
+
SMART_ROLLUP_CEMENT = "smart_rollup_cement",
|
|
39
|
+
SMART_ROLLUP_RECOVER_BOND = "smart_rollup_recover_bond",
|
|
40
|
+
SMART_ROLLUP_REFUTE = "smart_rollup_refute",
|
|
41
|
+
SMART_ROLLUP_TIMEOUT = "smart_rollup_timeout"
|
|
37
42
|
}
|
|
@@ -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, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances } 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, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingInfoResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperations, PendingOperationsQueryArguments, OriginationProofParams } from './types';
|
|
3
3
|
export interface RPCOptions {
|
|
4
4
|
block: string;
|
|
5
5
|
}
|
|
@@ -56,6 +56,8 @@ export interface RpcClientInterface {
|
|
|
56
56
|
getStoragePaidSpace(contract: string, options?: RPCOptions): Promise<string>;
|
|
57
57
|
getTicketBalance(contract: string, ticket: TicketTokenParams, options?: RPCOptions): Promise<string>;
|
|
58
58
|
getAllTicketBalances(contract: string, options?: RPCOptions): Promise<AllTicketBalances>;
|
|
59
|
+
getPendingOperations(args: PendingOperationsQueryArguments): Promise<PendingOperations>;
|
|
60
|
+
getOriginationProof(params: OriginationProofParams, options?: RPCOptions): Promise<string>;
|
|
59
61
|
}
|
|
60
62
|
export declare enum RPCMethodName {
|
|
61
63
|
GET_BAKING_RIGHTS = "getBakingRights",
|
|
@@ -96,5 +98,7 @@ export declare enum RPCMethodName {
|
|
|
96
98
|
GET_STORAGE_USED_SPACE = "getStorageUsedSpace",
|
|
97
99
|
GET_STORAGE_PAID_SPACE = "getStoragePaidSpace",
|
|
98
100
|
GET_TICKET_BALANCE = "getTicketBalance",
|
|
99
|
-
GET_ALL_TICKET_BALANCES = "getAllTicketBalances"
|
|
101
|
+
GET_ALL_TICKET_BALANCES = "getAllTicketBalances",
|
|
102
|
+
GET_PENDING_OPERATIONS = "getPendingOperations",
|
|
103
|
+
GET_ORIGINATION_PROOF = "getOriginationProof"
|
|
100
104
|
}
|
|
@@ -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, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances } from '../types';
|
|
3
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunScriptViewParam, RPCRunViewParam, RunCodeResult, RunScriptViewResult, RunViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, TxRollupInboxResponse, TxRollupStateResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams } from '../types';
|
|
4
4
|
interface CachedDataInterface {
|
|
5
5
|
[key: string]: {
|
|
6
6
|
handle: () => void;
|
|
@@ -490,5 +490,19 @@ export declare class RpcClientCache implements RpcClientInterface {
|
|
|
490
490
|
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
|
|
491
491
|
*/
|
|
492
492
|
getAllTicketBalances(contract: string, { block }?: RPCOptions): Promise<AllTicketBalances>;
|
|
493
|
+
/**
|
|
494
|
+
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
495
|
+
* @param args has 5 optional properties. We support version 1 with new encoding as version 0 will be deprecated soon. The rest of the properties is to filter pending operations response
|
|
496
|
+
* @default args { version: '1', applied: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
|
|
497
|
+
* @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4
|
|
498
|
+
*/
|
|
499
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperations>;
|
|
500
|
+
/**
|
|
501
|
+
*
|
|
502
|
+
* @param params contains the PVM kind and kernel to generate the origination proof from
|
|
503
|
+
* @description rpc call to generate the origination proof needed for the smart rollup originate operation
|
|
504
|
+
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
|
|
505
|
+
*/
|
|
506
|
+
getOriginationProof(params: OriginationProofParams, { block }?: RPCOptions): Promise<string>;
|
|
493
507
|
}
|
|
494
508
|
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, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TxRollupStateResponse, TxRollupInboxResponse, TicketTokenParams, AllTicketBalances } from './types';
|
|
8
|
+
import { BakingRightsQueryArguments, BakingRightsResponse, BalanceResponse, BallotListResponse, BallotsResponse, BigMapGetResponse, BigMapKey, BigMapResponse, BlockHeaderResponse, BlockMetadata, BlockResponse, ConstantsResponse, ContractResponse, CurrentProposalResponse, CurrentQuorumResponse, DelegateResponse, DelegatesResponse, VotingInfoResponse, EndorsingRightsQueryArguments, EndorsingRightsResponse, EntrypointsResponse, ForgeOperationsParams, ManagerKeyResponse, OperationHash, PackDataParams, PreapplyParams, PreapplyResponse, ProposalsResponse, ProtocolsResponse, RPCRunCodeParam, RPCRunOperationParam, RPCRunViewParam, RPCRunScriptViewParam, RunCodeResult, RunViewResult, RunScriptViewResult, SaplingDiffResponse, ScriptResponse, StorageResponse, UnparsingMode, VotesListingsResponse, VotingPeriodBlockResult, TxRollupStateResponse, TxRollupInboxResponse, TicketTokenParams, AllTicketBalances, PendingOperationsQueryArguments, PendingOperations, OriginationProofParams } 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';
|
|
@@ -515,4 +515,20 @@ export declare class RpcClient implements RpcClientInterface {
|
|
|
515
515
|
getAllTicketBalances(contract: string, { block }?: {
|
|
516
516
|
block: string;
|
|
517
517
|
}): Promise<AllTicketBalances>;
|
|
518
|
+
/**
|
|
519
|
+
* @description List the prevalidated operations in mempool (accessibility of mempool depends on each rpc endpoint)
|
|
520
|
+
* @param args has 5 optional properties. We support version 1 with new encoding as version 0 will be deprecated soon. The rest of the properties is to filter pending operations response
|
|
521
|
+
* @default args { version: '1', applied: true, refused: true, outdated, true, branchRefused: true, branchDelayed: true, validationPass: undefined }
|
|
522
|
+
* @see https://tezos.gitlab.io/CHANGES.html?highlight=pending_operations#id4
|
|
523
|
+
*/
|
|
524
|
+
getPendingOperations(args?: PendingOperationsQueryArguments): Promise<PendingOperations>;
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @param params contains the PVM kind and kernel to generate the origination proof from
|
|
528
|
+
* @description rpc call to generate the origination proof needed for a smart rollup originate operation
|
|
529
|
+
* @see https://tezos.gitlab.io/protocols/016_mumbai.html#rpc-changes
|
|
530
|
+
*/
|
|
531
|
+
getOriginationProof(params: OriginationProofParams, { block }?: {
|
|
532
|
+
block: string;
|
|
533
|
+
}): Promise<string>;
|
|
518
534
|
}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -428,7 +428,7 @@ export interface OperationContentsSmartRollupOriginate {
|
|
|
428
428
|
counter: string;
|
|
429
429
|
gas_limit: string;
|
|
430
430
|
storage_limit: string;
|
|
431
|
-
pvm_kind:
|
|
431
|
+
pvm_kind: PvmKind;
|
|
432
432
|
kernel: string;
|
|
433
433
|
origination_proof: string;
|
|
434
434
|
parameters_ty: MichelsonV1Expression;
|
|
@@ -453,7 +453,58 @@ export interface OperationContentsSmartRollupExecuteOutboxMessage {
|
|
|
453
453
|
cemented_commitment: string;
|
|
454
454
|
output_proof: string;
|
|
455
455
|
}
|
|
456
|
-
export
|
|
456
|
+
export interface OperationContentsSmartRollupPublish {
|
|
457
|
+
kind: OpKind.SMART_ROLLUP_PUBLISH;
|
|
458
|
+
source: string;
|
|
459
|
+
fee: string;
|
|
460
|
+
counter: string;
|
|
461
|
+
gas_limit: string;
|
|
462
|
+
storage_limit: string;
|
|
463
|
+
rollup: string;
|
|
464
|
+
commitment: SmartRollupPublishCommitment;
|
|
465
|
+
}
|
|
466
|
+
export interface OperationContentsSmartRollupCement {
|
|
467
|
+
kind: OpKind.SMART_ROLLUP_CEMENT;
|
|
468
|
+
source: string;
|
|
469
|
+
fee: string;
|
|
470
|
+
counter: string;
|
|
471
|
+
gas_limit: string;
|
|
472
|
+
storage_limit: string;
|
|
473
|
+
rollup: string;
|
|
474
|
+
commitment: string;
|
|
475
|
+
}
|
|
476
|
+
export interface OperationContentsSmartRollupRefute {
|
|
477
|
+
kind: OpKind.SMART_ROLLUP_REFUTE;
|
|
478
|
+
source: string;
|
|
479
|
+
fee: string;
|
|
480
|
+
counter: string;
|
|
481
|
+
gas_limit: string;
|
|
482
|
+
storage_limit: string;
|
|
483
|
+
rollup: string;
|
|
484
|
+
opponent: string;
|
|
485
|
+
refutation: SmartRollupRefutation;
|
|
486
|
+
}
|
|
487
|
+
export interface OperationContentsSmartRollupRecoverBond {
|
|
488
|
+
kind: OpKind.SMART_ROLLUP_RECOVER_BOND;
|
|
489
|
+
source: string;
|
|
490
|
+
fee: string;
|
|
491
|
+
counter: string;
|
|
492
|
+
gas_limit: string;
|
|
493
|
+
storage_limit: string;
|
|
494
|
+
rollup: string;
|
|
495
|
+
staker: string;
|
|
496
|
+
}
|
|
497
|
+
export interface OperationContentsSmartRollupTimeout {
|
|
498
|
+
kind: OpKind.SMART_ROLLUP_TIMEOUT;
|
|
499
|
+
source: string;
|
|
500
|
+
fee: string;
|
|
501
|
+
counter: string;
|
|
502
|
+
gas_limit: string;
|
|
503
|
+
storage_limit: string;
|
|
504
|
+
rollup: string;
|
|
505
|
+
stakers: SmartRollupTimeoutStakers;
|
|
506
|
+
}
|
|
507
|
+
export declare type OperationContents = OperationContentsEndorsement | OperationContentsPreEndorsement | OperationContentsDoublePreEndorsement | OperationContentsRevelation | OperationContentsVdfRevelation | OperationContentsDoubleEndorsement | OperationContentsDoubleBaking | OperationContentsActivateAccount | OperationContentsProposals | OperationContentsBallot | OperationContentsReveal | OperationContentsTransaction | OperationContentsOrigination | OperationContentsDelegation | OperationContentsEndorsementWithSlot | OperationContentsFailingNoop | OperationContentsRegisterGlobalConstant | OperationContentsSetDepositsLimit | OperationContentsTxRollupOrigination | OperationContentsTxRollupSubmitBatch | OperationContentsTxRollupCommit | OperationContentsTxRollupReturnBond | OperationContentsTxRollupFinalizeCommitment | OperationContentsTxRollupRemoveCommitment | OperationContentsTxRollupRejection | OperationContentsTransferTicket | OperationContentsUpdateConsensusKey | OperationContentsDrainDelegate | OperationContentsIncreasePaidStorage | OperationContentsSmartRollupOriginate | OperationContentsSmartRollupAddMessages | OperationContentsSmartRollupExecuteOutboxMessage | OperationContentsSmartRollupPublish | OperationContentsSmartRollupCement | OperationContentsSmartRollupRefute | OperationContentsSmartRollupRecoverBond | OperationContentsSmartRollupTimeout;
|
|
457
508
|
export interface OperationContentsAndResultMetadataExtended {
|
|
458
509
|
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
459
510
|
delegate: string;
|
|
@@ -569,6 +620,31 @@ export interface OperationContentsAndResultMetadataSmartRollupExecuteOutboxMessa
|
|
|
569
620
|
operation_result: OperationResultSmartRollupExecuteOutboxMessage;
|
|
570
621
|
internal_operation_results?: InternalOperationResult[];
|
|
571
622
|
}
|
|
623
|
+
export interface OperationContentsAndResultMetadataSmartRollupPublish {
|
|
624
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
625
|
+
operation_result: OperationResultSmartRollupPublish;
|
|
626
|
+
internal_operation_results?: InternalOperationResult[];
|
|
627
|
+
}
|
|
628
|
+
export interface OperationContentsAndResultMetadataSmartRollupCement {
|
|
629
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
630
|
+
operation_result: OperationResultSmartRollupCement;
|
|
631
|
+
internal_operation_results?: InternalOperationResult[];
|
|
632
|
+
}
|
|
633
|
+
export interface OperationContentsAndResultMetadataSmartRollupRefute {
|
|
634
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
635
|
+
operation_result: OperationResultSmartRollupRefute;
|
|
636
|
+
internal_operation_results?: InternalOperationResult[];
|
|
637
|
+
}
|
|
638
|
+
export interface OperationContentsAndResultMetadataSmartRollupRecoverBond {
|
|
639
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
640
|
+
operation_result: OperationResultSmartRollupRecoverBond;
|
|
641
|
+
internal_operation_results?: InternalOperationResult[];
|
|
642
|
+
}
|
|
643
|
+
export interface OperationContentsAndResultMetadataSmartRollupTimeout {
|
|
644
|
+
balance_updates?: OperationMetadataBalanceUpdates[];
|
|
645
|
+
operation_result: OperationResultSmartRollupTimeout;
|
|
646
|
+
internal_operation_results?: InternalOperationResult[];
|
|
647
|
+
}
|
|
572
648
|
export interface OperationContentsAndResultEndorsement {
|
|
573
649
|
kind: OpKind.ENDORSEMENT;
|
|
574
650
|
block_payload_hash?: string;
|
|
@@ -839,7 +915,7 @@ export interface OperationContentsAndResultSmartRollupOriginate {
|
|
|
839
915
|
counter: string;
|
|
840
916
|
gas_limit: string;
|
|
841
917
|
storage_limit: string;
|
|
842
|
-
pvm_kind:
|
|
918
|
+
pvm_kind: PvmKind;
|
|
843
919
|
kernel: string;
|
|
844
920
|
origination_proof: string;
|
|
845
921
|
parameters_ty: MichelsonV1Expression;
|
|
@@ -867,7 +943,63 @@ export interface OperationContentsAndResultSmartRollupExecuteOutboxMessage {
|
|
|
867
943
|
output_proof: string;
|
|
868
944
|
metadata: OperationContentsAndResultMetadataSmartRollupExecuteOutboxMessage;
|
|
869
945
|
}
|
|
870
|
-
export
|
|
946
|
+
export interface OperationContentsAndResultSmartRollupPublish {
|
|
947
|
+
kind: OpKind.SMART_ROLLUP_PUBLISH;
|
|
948
|
+
source: string;
|
|
949
|
+
fee: string;
|
|
950
|
+
counter: string;
|
|
951
|
+
gas_limit: string;
|
|
952
|
+
storage_limit: string;
|
|
953
|
+
rollup: string;
|
|
954
|
+
commitment: SmartRollupPublishCommitment;
|
|
955
|
+
metadata: OperationContentsAndResultMetadataSmartRollupPublish;
|
|
956
|
+
}
|
|
957
|
+
export interface OperationContentsAndResultSmartRollupCement {
|
|
958
|
+
kind: OpKind.SMART_ROLLUP_CEMENT;
|
|
959
|
+
source: string;
|
|
960
|
+
fee: string;
|
|
961
|
+
counter: string;
|
|
962
|
+
gas_limit: string;
|
|
963
|
+
storage_limit: string;
|
|
964
|
+
rollup: string;
|
|
965
|
+
commitment: string;
|
|
966
|
+
metadata: OperationContentsAndResultMetadataSmartRollupCement;
|
|
967
|
+
}
|
|
968
|
+
export interface OperationContentsAndResultSmartRollupRefute {
|
|
969
|
+
kind: OpKind.SMART_ROLLUP_REFUTE;
|
|
970
|
+
source: string;
|
|
971
|
+
fee: string;
|
|
972
|
+
counter: string;
|
|
973
|
+
gas_limit: string;
|
|
974
|
+
storage_limit: string;
|
|
975
|
+
rollup: string;
|
|
976
|
+
opponent: string;
|
|
977
|
+
refutation: SmartRollupRefutation;
|
|
978
|
+
metadata: OperationContentsAndResultMetadataSmartRollupRefute;
|
|
979
|
+
}
|
|
980
|
+
export interface OperationContentsAndResultSmartRollupRecoverBond {
|
|
981
|
+
kind: OpKind.SMART_ROLLUP_RECOVER_BOND;
|
|
982
|
+
source: string;
|
|
983
|
+
fee: string;
|
|
984
|
+
counter: string;
|
|
985
|
+
gas_limit: string;
|
|
986
|
+
storage_limit: string;
|
|
987
|
+
rollup: string;
|
|
988
|
+
staker: string;
|
|
989
|
+
metadata: OperationContentsAndResultMetadataSmartRollupRecoverBond;
|
|
990
|
+
}
|
|
991
|
+
export interface OperationContentsAndResultSmartRollupTimeout {
|
|
992
|
+
kind: OpKind.SMART_ROLLUP_TIMEOUT;
|
|
993
|
+
source: string;
|
|
994
|
+
fee: string;
|
|
995
|
+
counter: string;
|
|
996
|
+
gas_limit: string;
|
|
997
|
+
storage_limit: string;
|
|
998
|
+
rollup: string;
|
|
999
|
+
stakers: SmartRollupTimeoutStakers;
|
|
1000
|
+
metadata: OperationContentsAndResultMetadataSmartRollupTimeout;
|
|
1001
|
+
}
|
|
1002
|
+
export declare type OperationContentsAndResult = OperationContentsAndResultEndorsement | OperationContentsAndResultPreEndorsement | OperationContentsAndResultDoublePreEndorsement | OperationContentsAndResultRevelation | OperationContentsAndResultDoubleEndorsement | OperationContentsAndResultDoubleBaking | OperationContentsAndResultActivateAccount | OperationContentsAndResultProposals | OperationContentsAndResultBallot | OperationContentsAndResultReveal | OperationContentsAndResultTransaction | OperationContentsAndResultOrigination | OperationContentsAndResultDelegation | OperationContentsAndResultEndorsementWithSlot | OperationContentsAndResultRegisterGlobalConstant | OperationContentsAndResultSetDepositsLimit | OperationContentsAndResultTxRollupOrigination | OperationContentsAndResultTxRollupSubmitBatch | OperationContentsAndResultTxRollupCommit | OperationContentsAndResultTxRollupDispatchTickets | OperationContentsAndResultTxRollupReturnBond | OperationContentsAndResultTxRollupFinalizeCommitment | OperationContentsAndResultTxRollupRemoveCommitment | OperationContentsAndResultTxRollupRejection | OperationContentsAndResultTransferTicket | OperationContentsAndResultIncreasePaidStorage | OperationContentsAndResultUpdateConsensusKey | OperationContentsAndResultDrainDelegate | OperationContentsAndResultVdfRevelation | OperationContentsAndResultSmartRollupOriginate | OperationContentsAndResultSmartRollupAddMessages | OperationContentsAndResultSmartRollupExecuteOutboxMessage | OperationContentsAndResultSmartRollupPublish | OperationContentsAndResultSmartRollupCement | OperationContentsAndResultSmartRollupRefute | OperationContentsAndResultSmartRollupRecoverBond | OperationContentsAndResultSmartRollupTimeout;
|
|
871
1003
|
export declare enum OPERATION_METADATA {
|
|
872
1004
|
TOO_LARGE = "too large"
|
|
873
1005
|
}
|
|
@@ -1027,10 +1159,10 @@ export interface ScriptedContracts {
|
|
|
1027
1159
|
storage: MichelsonV1Expression;
|
|
1028
1160
|
}
|
|
1029
1161
|
export declare type BondId = {
|
|
1030
|
-
|
|
1162
|
+
smart_rollup?: never;
|
|
1031
1163
|
tx_rollup: string;
|
|
1032
1164
|
} | {
|
|
1033
|
-
|
|
1165
|
+
smart_rollup: string;
|
|
1034
1166
|
tx_rollup?: never;
|
|
1035
1167
|
};
|
|
1036
1168
|
export interface OperationBalanceUpdatesItem {
|
|
@@ -1159,9 +1291,9 @@ export interface OperationResultRegisterGlobalConstant {
|
|
|
1159
1291
|
}
|
|
1160
1292
|
export interface OperationResultSmartRollupOriginate {
|
|
1161
1293
|
status: OperationResultStatusEnum;
|
|
1162
|
-
balance_updates
|
|
1163
|
-
address
|
|
1164
|
-
genesis_commitment_hash
|
|
1294
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1295
|
+
address?: string;
|
|
1296
|
+
genesis_commitment_hash?: string;
|
|
1165
1297
|
consumed_milligas?: string;
|
|
1166
1298
|
size: string;
|
|
1167
1299
|
errors?: TezosGenericOperationError[];
|
|
@@ -1173,12 +1305,46 @@ export interface OperationResultSmartRollupAddMessages {
|
|
|
1173
1305
|
}
|
|
1174
1306
|
export interface OperationResultSmartRollupExecuteOutboxMessage {
|
|
1175
1307
|
status: OperationResultStatusEnum;
|
|
1176
|
-
balance_updates
|
|
1177
|
-
ticket_updates
|
|
1308
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1309
|
+
ticket_updates?: TicketUpdates[];
|
|
1178
1310
|
consumed_milligas?: string;
|
|
1179
1311
|
paid_storage_size_diff?: string;
|
|
1180
1312
|
errors?: TezosGenericOperationError[];
|
|
1181
1313
|
}
|
|
1314
|
+
export interface OperationResultSmartRollupPublish {
|
|
1315
|
+
status: OperationResultStatusEnum;
|
|
1316
|
+
consumed_milligas?: string;
|
|
1317
|
+
staked_hash?: string;
|
|
1318
|
+
published_at_level?: number;
|
|
1319
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1320
|
+
errors?: TezosGenericOperationError[];
|
|
1321
|
+
}
|
|
1322
|
+
export interface OperationResultSmartRollupCement {
|
|
1323
|
+
status: OperationResultStatusEnum;
|
|
1324
|
+
consumed_milligas?: string;
|
|
1325
|
+
inbox_level?: number;
|
|
1326
|
+
errors?: TezosGenericOperationError[];
|
|
1327
|
+
}
|
|
1328
|
+
export interface OperationResultSmartRollupRefute {
|
|
1329
|
+
status: OperationResultStatusEnum;
|
|
1330
|
+
consumed_milligas?: string;
|
|
1331
|
+
game_status?: SmartRollupGameStatus;
|
|
1332
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1333
|
+
errors?: TezosGenericOperationError[];
|
|
1334
|
+
}
|
|
1335
|
+
export interface OperationResultSmartRollupRecoverBond {
|
|
1336
|
+
status: OperationResultStatusEnum;
|
|
1337
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1338
|
+
consumed_milligas?: string;
|
|
1339
|
+
errors?: TezosGenericOperationError[];
|
|
1340
|
+
}
|
|
1341
|
+
export interface OperationResultSmartRollupTimeout {
|
|
1342
|
+
status: OperationResultStatusEnum;
|
|
1343
|
+
consumed_milligas?: string;
|
|
1344
|
+
game_status?: SmartRollupGameStatus;
|
|
1345
|
+
balance_updates?: OperationBalanceUpdates;
|
|
1346
|
+
errors?: TezosGenericOperationError[];
|
|
1347
|
+
}
|
|
1182
1348
|
export interface ContractBigMapDiffItem {
|
|
1183
1349
|
key_hash?: string;
|
|
1184
1350
|
key?: MichelsonV1Expression;
|
|
@@ -1506,13 +1672,13 @@ export interface ConstantsResponseProto011 extends ConstantsResponseProto010 {
|
|
|
1506
1672
|
max_micheline_bytes_limit?: number;
|
|
1507
1673
|
cache_layout?: BigNumber[];
|
|
1508
1674
|
}
|
|
1509
|
-
export interface ConstantsResponseProto010 extends
|
|
1675
|
+
export interface ConstantsResponseProto010 extends ConstantsResponseProto009 {
|
|
1510
1676
|
minimal_block_delay?: BigNumber;
|
|
1511
1677
|
liquidity_baking_subsidy?: BigNumber;
|
|
1512
1678
|
liquidity_baking_sunset_level?: number;
|
|
1513
1679
|
liquidity_baking_escape_ema_threshold?: number;
|
|
1514
1680
|
}
|
|
1515
|
-
export interface ConstantsResponseProto009 extends
|
|
1681
|
+
export interface ConstantsResponseProto009 extends ConstantsResponseProto008 {
|
|
1516
1682
|
}
|
|
1517
1683
|
export interface ConstantsResponseProto008 extends ConstantsResponseProto007 {
|
|
1518
1684
|
}
|
|
@@ -1720,5 +1886,132 @@ export interface TxRollupInboxResponse {
|
|
|
1720
1886
|
cumulated_size: number;
|
|
1721
1887
|
merkle_root: string;
|
|
1722
1888
|
}
|
|
1723
|
-
export
|
|
1889
|
+
export interface PendingOperationsQueryArguments {
|
|
1890
|
+
version?: '1';
|
|
1891
|
+
applied?: boolean;
|
|
1892
|
+
refused?: boolean;
|
|
1893
|
+
outdated?: boolean;
|
|
1894
|
+
branchRefused?: boolean;
|
|
1895
|
+
branchDelayed?: boolean;
|
|
1896
|
+
validationPass?: '0' | '1' | '2' | '3';
|
|
1897
|
+
}
|
|
1898
|
+
declare type FailedProcessedOperation = Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'> & {
|
|
1899
|
+
error: TezosGenericOperationError[];
|
|
1900
|
+
};
|
|
1901
|
+
export interface PendingOperations {
|
|
1902
|
+
applied: Pick<OperationEntry, 'hash' | 'branch' | 'contents' | 'signature'>[];
|
|
1903
|
+
refused: FailedProcessedOperation[];
|
|
1904
|
+
outdated: FailedProcessedOperation[];
|
|
1905
|
+
branch_refused: FailedProcessedOperation[];
|
|
1906
|
+
branch_delayed: FailedProcessedOperation[];
|
|
1907
|
+
unprocessed: Pick<OperationEntry, 'hash' | 'protocol' | 'branch' | 'contents' | 'signature'>[];
|
|
1908
|
+
}
|
|
1909
|
+
export declare enum PvmKind {
|
|
1910
|
+
WASM2 = "wasm_2_0_0",
|
|
1911
|
+
ARITH = "arith"
|
|
1912
|
+
}
|
|
1913
|
+
export interface OriginationProofParams {
|
|
1914
|
+
kind: PvmKind;
|
|
1915
|
+
kernel: string;
|
|
1916
|
+
}
|
|
1917
|
+
export interface SmartRollupPublishCommitment {
|
|
1918
|
+
compressed_state: string;
|
|
1919
|
+
inbox_level: number;
|
|
1920
|
+
predecessor: string;
|
|
1921
|
+
number_of_ticks: number;
|
|
1922
|
+
}
|
|
1923
|
+
export declare enum SmartRollupRefutationOptions {
|
|
1924
|
+
START = "start",
|
|
1925
|
+
MOVE = "move"
|
|
1926
|
+
}
|
|
1927
|
+
export declare type SmartRollupRefutation = SmartRollupRefutationStart | SmartRollupRefutationMove;
|
|
1928
|
+
export interface SmartRollupRefutationStart {
|
|
1929
|
+
refutation_kind: SmartRollupRefutationOptions.START;
|
|
1930
|
+
player_commitment_hash: string;
|
|
1931
|
+
opponent_commitment_hash: string;
|
|
1932
|
+
}
|
|
1933
|
+
export interface SmartRollupRefutationMove {
|
|
1934
|
+
refutation_kind: SmartRollupRefutationOptions.MOVE;
|
|
1935
|
+
choice: number;
|
|
1936
|
+
step: SmartRollupRefutationMoveStep;
|
|
1937
|
+
}
|
|
1938
|
+
export declare type SmartRollupRefutationMoveStep = SmartRollupRefutationMoveStepDissection[] | SmartRollupRefutationMoveStepProof;
|
|
1939
|
+
export interface SmartRollupRefutationMoveStepDissection {
|
|
1940
|
+
state?: string;
|
|
1941
|
+
tick: number;
|
|
1942
|
+
}
|
|
1943
|
+
export interface SmartRollupRefutationMoveStepProof {
|
|
1944
|
+
pvm_step: string;
|
|
1945
|
+
input_proof?: SmartRollupRefutationMoveInputProof;
|
|
1946
|
+
}
|
|
1947
|
+
export declare enum SmartRollupInputProofKind {
|
|
1948
|
+
INBOX_PROOF = "inbox_proof",
|
|
1949
|
+
REVEAL_PROOF = "reveal_proof",
|
|
1950
|
+
FIRST_INPUT = "first_input"
|
|
1951
|
+
}
|
|
1952
|
+
export interface SmartRollupRefutationMoveInputProofInbox {
|
|
1953
|
+
input_proof_kind: SmartRollupInputProofKind.INBOX_PROOF;
|
|
1954
|
+
level: number;
|
|
1955
|
+
message_counter: string;
|
|
1956
|
+
serialized_proof: string;
|
|
1957
|
+
}
|
|
1958
|
+
export interface SmartRollupRefutationMoveInputProofReveal {
|
|
1959
|
+
input_proof_kind: SmartRollupInputProofKind.REVEAL_PROOF;
|
|
1960
|
+
reveal_proof: SmartRollupRefuteRevealProofOptions;
|
|
1961
|
+
}
|
|
1962
|
+
export interface SmartRollupRefutationMoveInputProofFirstInput {
|
|
1963
|
+
input_proof_kind: SmartRollupInputProofKind.FIRST_INPUT;
|
|
1964
|
+
}
|
|
1965
|
+
export declare type SmartRollupRefutationMoveInputProof = SmartRollupRefutationMoveInputProofInbox | SmartRollupRefutationMoveInputProofReveal | SmartRollupRefutationMoveInputProofFirstInput;
|
|
1966
|
+
export declare enum SmartRollupRefuteRevealProofKind {
|
|
1967
|
+
RAW_DATA_PROOF = "raw_data_proof",
|
|
1968
|
+
METADATA_PROOF = "metadata_proof",
|
|
1969
|
+
DAL_PAGE_PROOF = "dal_page_proof"
|
|
1970
|
+
}
|
|
1971
|
+
export interface SmartRollupRefuteRevealProofRaw {
|
|
1972
|
+
reveal_proof_kind: SmartRollupRefuteRevealProofKind.RAW_DATA_PROOF;
|
|
1973
|
+
raw_data: string;
|
|
1974
|
+
}
|
|
1975
|
+
export interface SmartRollupRefuteRevealProofMetadata {
|
|
1976
|
+
reveal_proof_kind: SmartRollupRefuteRevealProofKind.METADATA_PROOF;
|
|
1977
|
+
}
|
|
1978
|
+
export interface SmartRollupRefuteRevealProofDalPage {
|
|
1979
|
+
reveal_proof_kind: SmartRollupRefuteRevealProofKind.DAL_PAGE_PROOF;
|
|
1980
|
+
dal_page_id: {
|
|
1981
|
+
published_level: number;
|
|
1982
|
+
slot_index: number;
|
|
1983
|
+
page_index: number;
|
|
1984
|
+
};
|
|
1985
|
+
dal_proof: string;
|
|
1986
|
+
}
|
|
1987
|
+
export declare type SmartRollupRefuteRevealProofOptions = SmartRollupRefuteRevealProofRaw | SmartRollupRefuteRevealProofMetadata | SmartRollupRefuteRevealProofDalPage;
|
|
1988
|
+
export declare type SmartRollupGameStatus = SmartRollupRefuteGameStatusOptions.ONGOING | SmartRollupRefuteGameStatusEnded;
|
|
1989
|
+
export declare enum SmartRollupRefuteGameStatusOptions {
|
|
1990
|
+
ONGOING = "ongoing",
|
|
1991
|
+
ENDED = "ended"
|
|
1992
|
+
}
|
|
1993
|
+
export interface SmartRollupRefuteGameStatusEnded {
|
|
1994
|
+
result: SmartRollupRefuteGameStatusResult;
|
|
1995
|
+
}
|
|
1996
|
+
export declare type SmartRollupRefuteGameStatusResult = SmartRollupRefuteGameEndedResultLoser | SmartRollupRefuteGameEndedResultDraw;
|
|
1997
|
+
export interface SmartRollupRefuteGameEndedResultLoser {
|
|
1998
|
+
kind: SmartRollupRefuteGameEndedPlayerOutcomes.LOSER;
|
|
1999
|
+
reason: SmartRollupRefuteGameEndedReason;
|
|
2000
|
+
player: string;
|
|
2001
|
+
}
|
|
2002
|
+
export interface SmartRollupRefuteGameEndedResultDraw {
|
|
2003
|
+
kind: SmartRollupRefuteGameEndedPlayerOutcomes.DRAW;
|
|
2004
|
+
}
|
|
2005
|
+
export declare enum SmartRollupRefuteGameEndedPlayerOutcomes {
|
|
2006
|
+
LOSER = "loser",
|
|
2007
|
+
DRAW = "draw"
|
|
2008
|
+
}
|
|
2009
|
+
export declare enum SmartRollupRefuteGameEndedReason {
|
|
2010
|
+
CONFLICT_RESOLVED = "conflict_resolved",
|
|
2011
|
+
TIMEOUT = "timeout"
|
|
2012
|
+
}
|
|
2013
|
+
export interface SmartRollupTimeoutStakers {
|
|
2014
|
+
alice: string;
|
|
2015
|
+
bob: string;
|
|
2016
|
+
}
|
|
1724
2017
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/rpc",
|
|
3
|
-
"version": "16.0
|
|
3
|
+
"version": "16.1.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",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
]
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@taquito/http-utils": "^16.0
|
|
71
|
-
"@taquito/utils": "^16.0
|
|
70
|
+
"@taquito/http-utils": "^16.1.0",
|
|
71
|
+
"@taquito/utils": "^16.1.0",
|
|
72
72
|
"bignumber.js": "^9.1.0"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
@@ -99,5 +99,5 @@
|
|
|
99
99
|
"ts-toolbelt": "^9.6.0",
|
|
100
100
|
"typescript": "~4.1.5"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "3159559187f1356b23fb04ffa3f4263bbda8c5bf"
|
|
103
103
|
}
|