Skip to content

Commit

Permalink
fix: adding missing rpc types (#2987)
Browse files Browse the repository at this point in the history
fix #2971, fix #2979, fix #2978
  • Loading branch information
hui-an-yang authored Jun 12, 2024
1 parent a7e5391 commit 19ff26c
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion packages/taquito-rpc/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1633,6 +1633,7 @@ export enum METADATA_BALANCE_UPDATES_CATEGORY {
ENDORSING_REWARDS = 'endorsing rewards',
INVOICE = 'invoice',
LOST_ENDORSING_REWARDS = 'lost endorsing rewards',
LOST_ATTESTING_REWARDS = 'lost attesting rewards',
MINTED = 'minted',
NONCE_REVELATION_REWARDS = 'nonce revelation rewards',
PUNISHMENTS = 'punishments',
Expand All @@ -1641,6 +1642,12 @@ export enum METADATA_BALANCE_UPDATES_CATEGORY {
STORAGE_FEES = 'storage fees',
SUBSIDY = 'subsidy',
UNSTAKED_DEPOSITS = 'unstaked_deposits',
DOUBLE_SIGNING_EVIDENCE_REWARDS = 'double signing evidence rewards',
FEES = 'fees',
LEGACY_DEPOSITS = 'legacy_deposits',
LEGACY_FEES = 'legacy_fees',
LEGACY_REWARDS = 'legacy_rewards',
REWARDS = 'rewards',
}

export type MetadataBalanceUpdatesCategoryEnum = METADATA_BALANCE_UPDATES_CATEGORY;
Expand All @@ -1652,7 +1659,7 @@ export type MetadataBalanceUpdatesOriginEnum =
| 'simulation'
| 'delayed_operation';

export type FrozenStaker = SingleStaker | SharedStaker | Baker;
export type FrozenStaker = SingleStaker | SharedStaker | Baker | Baker_edge;

export type Staker = SingleStaker | SharedStaker;

Expand All @@ -1669,6 +1676,10 @@ export interface Baker {
baker: string;
}

export interface Baker_edge {
baker_edge: string;
}

export interface OperationMetadataBalanceUpdates {
kind: MetadataBalanceUpdatesKindEnum;
contract?: string;
Expand All @@ -1683,6 +1694,7 @@ export interface OperationMetadataBalanceUpdates {
bond_id?: BondId;
cycle?: number;
delegator?: string;
delayed_operation_hash?: string;
}

export type OperationResultStatusEnum = 'applied' | 'failed' | 'skipped' | 'backtracked';
Expand Down

0 comments on commit 19ff26c

Please sign in to comment.