@taquito/rpc 12.0.3 → 12.1.1

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.
@@ -49,3 +49,37 @@ export interface RpcClientInterface {
49
49
  getSaplingDiffByContract(contract: string, options?: RPCOptions): Promise<SaplingDiffResponse>;
50
50
  getProtocols(options?: RPCOptions): Promise<ProtocolsResponse>;
51
51
  }
52
+ export declare enum RPCMethodName {
53
+ GET_BAKING_RIGHTS = "getBakingRights",
54
+ GET_BALLOTS = "getBallots",
55
+ GET_BALLOT_LIST = "getBallotList",
56
+ GET_BIG_MAP_KEY = "getBigMapKey",
57
+ GET_BIG_MAP_EXPR = "getBigMapExpr",
58
+ GET_BLOCK_HASH = "getBlockHash",
59
+ GET_BLOCK = "getBlock",
60
+ GET_BLOCK_HEADER = "getBlockHeader",
61
+ GET_BLOCK_METADATA = "getBlockMetadata",
62
+ GET_BALANCE = "getBalance",
63
+ GET_CHAIN_ID = "getChainId",
64
+ GET_CONSTANTS = "getConstants",
65
+ GET_CONTRACT = "getContract",
66
+ GET_CURRENT_PERIOD = "getCurrentPeriod",
67
+ GET_CURRENT_PROPOSAL = "getCurrentProposal",
68
+ GET_CURRENT_QUORUM = "getCurrentQuorum",
69
+ GET_DELEGATE = "getDelegate",
70
+ GET_DELEGATES = "getDelegates",
71
+ GET_ENDORSING_RIGHTS = "getEndorsingRights",
72
+ GET_ENTRYPOINTS = "getEntrypoints",
73
+ GET_LIVE_BLOCKS = "getLiveBlocks",
74
+ GET_MANAGER_KEY = "getManagerKey",
75
+ GET_NORMALIZED_SCRIPT = "getNormalizedScript",
76
+ GET_PROPOSALS = "getProposals",
77
+ GET_PROTOCOLS = "getProtocols",
78
+ GET_SAPLING_DIFF_BY_CONTRACT = "getSaplingDiffByContract",
79
+ GET_SAPLING_DIFF_BY_ID = "getSaplingDiffById",
80
+ GET_SCRIPT = "getScript",
81
+ GET_STORAGE = "getStorage",
82
+ GET_SUCCESSOR_PERIOD = "getSuccessorPeriod",
83
+ GET_VOTES_LISTINGS = "getVotesListings",
84
+ PACK_DATA = "packData"
85
+ }
@@ -25,7 +25,7 @@ export interface DelegatesResponse {
25
25
  delegated_balance: BigNumber;
26
26
  deactivated: boolean;
27
27
  grace_period: number;
28
- voting_power?: number;
28
+ voting_power?: BigNumber;
29
29
  }
30
30
  interface Frozenbalancebycycle {
31
31
  cycle: number;
@@ -43,6 +43,7 @@ export declare type BigMapKey = {
43
43
  args?: object[];
44
44
  };
45
45
  };
46
+ export declare type LiquidityBakingToggleVotes = 'on' | 'off' | 'pass';
46
47
  export interface BlockFullHeader {
47
48
  level: number;
48
49
  proto: number;
@@ -57,7 +58,7 @@ export interface BlockFullHeader {
57
58
  priority: number;
58
59
  proof_of_work_nonce: string;
59
60
  seed_nonce_hash?: string;
60
- liquidity_baking_escape_vote?: boolean;
61
+ liquidity_baking_escape_vote?: boolean | LiquidityBakingToggleVotes;
61
62
  signature: string;
62
63
  }
63
64
  export declare type InlinedEndorsementKindEnum = OpKind.ENDORSEMENT;
@@ -431,19 +432,20 @@ export interface BallotListResponseItem {
431
432
  }
432
433
  export declare type BallotListResponse = BallotListResponseItem[];
433
434
  export interface BallotsResponse {
434
- yay: number;
435
- nay: number;
436
- pass: number;
435
+ yay: BigNumber;
436
+ nay: BigNumber;
437
+ pass: BigNumber;
437
438
  }
438
439
  export declare type PeriodKindResponse = 'proposal' | 'testing_vote' | 'testing' | 'promotion_vote' | 'exploration' | 'cooldown' | 'promotion' | 'adoption';
439
440
  export declare type CurrentProposalResponse = string | null;
440
441
  export declare type CurrentQuorumResponse = number;
441
442
  export interface VotesListingsResponseItem {
442
443
  pkh: string;
443
- rolls: number;
444
+ rolls?: number;
445
+ voting_power?: BigNumber;
444
446
  }
445
447
  export declare type VotesListingsResponse = VotesListingsResponseItem[];
446
- export declare type ProposalsResponseItem = [string, number];
448
+ export declare type ProposalsResponseItem = [string, BigNumber];
447
449
  export declare type ProposalsResponse = ProposalsResponseItem[];
448
450
  export interface BlockHeaderResponse {
449
451
  protocol: string;
@@ -461,7 +463,7 @@ export interface BlockHeaderResponse {
461
463
  payload_round?: number;
462
464
  priority?: number;
463
465
  proof_of_work_nonce: string;
464
- liquidity_baking_escape_vote?: boolean;
466
+ liquidity_baking_escape_vote?: boolean | LiquidityBakingToggleVotes;
465
467
  signature: string;
466
468
  }
467
469
  export interface PackDataParams {
@@ -545,6 +547,7 @@ export interface OperationResultRegisterGlobalConstant {
545
547
  storage_size?: string;
546
548
  global_address?: string;
547
549
  errors?: TezosGenericOperationError[];
550
+ consumed_milligas?: string;
548
551
  }
549
552
  export interface ContractBigMapDiffItem {
550
553
  key_hash?: string;
@@ -716,7 +719,7 @@ export interface OperationContentsAndResultMetadataOrigination {
716
719
  operation_result: OperationResultOrigination;
717
720
  internal_operation_results?: InternalOperationResult[];
718
721
  }
719
- export declare type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
722
+ export declare type ConstantsResponse = ConstantsResponseCommon & ConstantsResponseProto013 & ConstantsResponseProto012 & ConstantsResponseProto011 & ConstantsResponseProto010 & ConstantsResponseProto009 & ConstantsResponseProto008 & ConstantsResponseProto007 & ConstantsResponseProto006 & ConstantsResponseProto005 & ConstantsResponseProto004 & ConstantsResponseProto003 & ConstantsResponseProto001And002;
720
723
  export interface ConstantsResponseCommon {
721
724
  proof_of_work_nonce_size: number;
722
725
  nonce_length: number;
@@ -744,6 +747,34 @@ export declare type Ratio = {
744
747
  numerator: number;
745
748
  denominator: number;
746
749
  };
750
+ export interface ConstantsResponseProto013 extends Omit<ConstantsResponseProto012, 'blocks_per_voting_period' | 'cache_layout'> {
751
+ cache_layout_size?: number;
752
+ cache_sampler_state_cycles?: number;
753
+ cache_script_size?: number;
754
+ cache_stake_distribution_cycles?: number;
755
+ cycles_per_voting_period?: number;
756
+ liquidity_baking_toggle_ema_threshold?: number;
757
+ initial_seed?: string;
758
+ tx_rollup_enable?: boolean;
759
+ tx_rollup_origination_size?: number;
760
+ tx_rollup_hard_size_limit_per_inbox?: number;
761
+ tx_rollup_hard_size_limit_per_message?: number;
762
+ tx_rollup_max_withdrawals_per_batch?: number;
763
+ tx_rollup_commitment_bond?: BigNumber;
764
+ tx_rollup_finality_period?: number;
765
+ tx_rollup_withdraw_period?: number;
766
+ tx_rollup_max_inboxes_count?: number;
767
+ tx_rollup_max_messages_per_inbox?: number;
768
+ tx_rollup_max_commitments_count?: number;
769
+ tx_rollup_cost_per_byte_ema_factor?: number;
770
+ tx_rollup_max_ticket_payload_size?: number;
771
+ tx_rollup_rejection_max_proof_size?: number;
772
+ tx_rollup_sunset_level?: number;
773
+ sc_rollup_enable?: boolean;
774
+ sc_rollup_origination_size?: number;
775
+ sc_rollup_challenge_window_in_blocks?: number;
776
+ sc_rollup_max_available_messages?: number;
777
+ }
747
778
  export interface ConstantsResponseProto012 extends Omit<ConstantsResponseProto011, 'baking_reward_per_endorsement' | 'initial_endorsers' | 'delay_per_missing_endorsement' | 'test_chain_duration' | 'blocks_per_roll_snapshot' | 'time_between_blocks' | 'endorsers_per_block' | 'block_security_deposit' | 'endorsement_security_deposit' | 'endorsement_reward'> {
748
779
  blocks_per_stake_snapshot?: number;
749
780
  baking_reward_fixed_portion?: BigNumber;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/rpc",
3
- "version": "12.0.3",
3
+ "version": "12.1.1",
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": "^12.0.3",
71
- "@taquito/utils": "^12.0.3",
70
+ "@taquito/http-utils": "^12.1.1",
71
+ "@taquito/utils": "^12.1.1",
72
72
  "bignumber.js": "^9.0.2"
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": "b8cd241cd9e19a15c487ab56a149e92ac3713ee9"
102
+ "gitHead": "e97d6f77d990f91b4e407f4e7b7f8f3785edb2ba"
103
103
  }