-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement queries for multiple return type eth_calls (#12)
* Implement multiple return type for ConditionalStarRelease eth_call * Generate ConditionalStarRelease watcher from codegen handling multiple return type * Generate azimuth watcher from codegen handling multiple return type * Upgrade watcher-ts package versions
- Loading branch information
Showing
30 changed files
with
641 additions
and
273 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// | ||
// Copyright 2021 Vulcanize, Inc. | ||
// | ||
|
||
import { Entity, PrimaryGeneratedColumn, Column, Index } from 'typeorm'; | ||
import { bigintTransformer } from '@cerc-io/util'; | ||
|
||
@Entity() | ||
@Index(['blockHash', 'contractAddress', '_point'], { unique: true }) | ||
export class GetKeys { | ||
@PrimaryGeneratedColumn() | ||
id!: number; | ||
|
||
@Column('varchar', { length: 66 }) | ||
blockHash!: string; | ||
|
||
@Column('integer') | ||
blockNumber!: number; | ||
|
||
@Column('varchar', { length: 42 }) | ||
contractAddress!: string; | ||
|
||
@Column('numeric', { transformer: bigintTransformer }) | ||
_point!: bigint; | ||
|
||
@Column('varchar') | ||
value!: string; | ||
|
||
@Column('text', { nullable: true }) | ||
proof!: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
query getKeys($blockHash: String!, $contractAddress: String!, $_point: BigInt!){ | ||
getKeys(blockHash: $blockHash, contractAddress: $contractAddress, _point: $_point){ | ||
value{ | ||
value0 | ||
value1 | ||
value2 | ||
value3 | ||
} | ||
proof{ | ||
data | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.