Skip to content

Commit

Permalink
Update lake-primitives.md
Browse files Browse the repository at this point in the history
  • Loading branch information
bucanero committed Aug 31, 2023
1 parent 2bf0245 commit 1000e92
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docs/3.tutorials/indexer/lake-primitives.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class Block {
private _stateChanges: StateChange[]) {

}
... // helper methods and getters ommitted for brevity
... // helper methods and getters omitted for brevity
}
```

Expand All @@ -59,7 +59,7 @@ List of included `Transactions`, converted into `Receipts`.

```ts
export class Block {
... // constructor ommitted for brevity
... // constructor omitted for brevity
get blockHash(): string {}
get prevBlockHash(): string {}
get blockHeight(): number {}
Expand Down Expand Up @@ -162,7 +162,7 @@ export class BlockHeader {
readonly chunksIncluded: number,
readonly validatorProposals: ValidatorStakeView[]) {
}
... // helper method ommitted for brevity
... // helper method omitted for brevity
}
```

Expand All @@ -185,7 +185,7 @@ export class Receipt implements Events {
readonly executionOutcomeId?: string | undefined,
readonly logs: string[] = []) {
}
... // helper methods ommitted for brevity
... // helper methods omitted for brevity
}
```

Expand Down Expand Up @@ -227,7 +227,7 @@ Note: not all of the logs might be parsed as JSON Events (`Events`).

```ts
export class Receipt {
... // constructor ommitted for brevity
... // constructor omitted for brevity
get events(): Event[] {}

static fromOutcomeWithReceipt(outcomeWithReceipt: OutcomeWithReceipt): Receipt {}
Expand Down Expand Up @@ -261,15 +261,15 @@ export class Event {
readonly relatedReceiptId: string,
readonly rawEvent: RawEvent) {
}
... // helper methods ommitted for brevity
... // helper methods omitted for brevity
}
```

### `Event` Methods

```ts
export class Event {
... // constructor ommitted for brevity
... // constructor omitted for brevity
static fromLog(log: string): Event {}
}
```
Expand Down

0 comments on commit 1000e92

Please sign in to comment.