Skip to content

Commit

Permalink
chore: update types
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaccoSordo committed Aug 15, 2024
1 parent 84d5328 commit 95a77bf
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 9 deletions.
10 changes: 8 additions & 2 deletions packages/beacon-types/src/types/tezos/TezosBlockHeader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ export interface TezosBlockHeader {
level: number
proto: number
predecessor: string
timestamp: string
timestamp: Date | string
validation_pass: number
operations_hash: string
fitness: string[]
context: string
priority: number
payload_hash?: string
payload_round?: number
priority?: number
proof_of_work_nonce: string
seed_nonce_hash?: string
liquidity_baking_toggle_vote?: 'on' | 'off' | 'pass'
adaptive_issuance_vote?: 'on' | 'off' | 'pass'
liquidity_baking_escape_vote?: boolean | 'on' | 'off' | 'pass'
signature: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export interface InlinedEndorsement {
export interface InlinedEndorsementContents extends TezosBaseOperation {
kind: TezosOperationType.ENDORSEMENT
level: string
slot?: number
round?: number
block_payload_hash?: string
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,7 @@ import { TezosBaseOperation, TezosOperationType } from '../../..'
export interface TezosEndorsementOperation extends TezosBaseOperation {
kind: TezosOperationType.ENDORSEMENT
level: string
slot?: number
round?: number
block_payload_hash?: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { TezosBaseOperation, TezosOperationType } from '../../..'
*/
export interface TezosProposalOperation extends TezosBaseOperation {
kind: TezosOperationType.PROPOSALS
source: string
period: string
proposals: string[]
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import { TezosBaseOperation, TezosOperationType } from '../../..'
*/
export interface TezosSeedNonceRevelationOperation extends TezosBaseOperation {
kind: TezosOperationType.SEED_NONCE_REVELATION
level: string
level: number
nonce: string
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ import { TezosBaseOperation } from '../TezosBaseOperation'

export interface TezosSmartRollupCementOperation extends TezosBaseOperation {
kind: TezosOperationType.SMART_ROLLUP_CEMENT
source: string
fee: string
counter: string
gas_limit: string
storage_limit: string
rollup: string
source: string;
fee: string;
counter: string;
gas_limit: string;
storage_limit: string;
rollup: string;
commitment: string;
}

0 comments on commit 95a77bf

Please sign in to comment.