Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Commit

Permalink
chore: Review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
evaporei committed Oct 6, 2021
1 parent 1dea703 commit 90185b5
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions chain/near.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ export namespace near {

export type Balance = BigInt

export type StateRoot = CryptoHash

export type Gas = u64

export type ShardId = u64
Expand Down Expand Up @@ -117,7 +115,7 @@ export namespace near {

export class StakeAction {
constructor(
public stake: BigInt,
public stake: Balance,
public publicKey: PublicKey,
) {}
}
Expand Down Expand Up @@ -306,15 +304,12 @@ export namespace near {
public outcomeRoot: CryptoHash,
public chunksIncluded: u64,
public challengesRoot: CryptoHash,
public timestamp: u64,
public timestampNanosec: u64,
public randomValue: CryptoHash,
public validatorProposals: Array<ValidatorStake>,
public chunkMask: Array<bool>,
public gasPrice: Balance,
public blockOrdinal: NumBlocks,// Always zero when version < V3
// public rentPaid: Balance,// TODO: uncomment once in sf proto definition
public validatorReward: Balance,
public totalSupply: Balance,
public challengesResult: Array<SlashedValidator>,
public lastFinalBlock: CryptoHash,
Expand Down Expand Up @@ -344,7 +339,7 @@ export namespace near {
constructor(
public accountId: AccountId,
public publicKey: PublicKey,
public stake: BigInt,
public stake: Balance,
) {}
}

Expand All @@ -353,15 +348,14 @@ export namespace near {
public chunkHash: CryptoHash,
public signature: Signature,
public prevBlockHash: CryptoHash,
public prevStateRoot: StateRoot,
public prevStateRoot: CryptoHash,
public encodedMerkleRoot: CryptoHash,
public encodedLength: u64,
public heightCreated: BlockHeight,
public heightIncluded: BlockHeight,
public shardId: ShardId,
public gasUsed: Gas,
public gasLimit: Gas,
public validatorReward: Balance,
public balanceBurnt: Balance,
public outgoingReceiptsRoot: CryptoHash,
public txRoot: CryptoHash,
Expand All @@ -371,7 +365,7 @@ export namespace near {

export class Block {
constructor(
public author: string,
public author: AccountId,
public header: BlockHeader,
public chunks: Array<ChunkHeader>,
) {}
Expand Down

0 comments on commit 90185b5

Please sign in to comment.