diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-11-08 07:56:35 +0800 |
---|---|---|
committer | Fred Carlsen <fred@sjelfull.no> | 2018-12-13 01:13:46 +0800 |
commit | d86f5c4fbdaea40402e059cdad7ccd7453f66f32 (patch) | |
tree | 4b0de5bc006f0c4de6bbd8174fec188909e1d5d3 | |
parent | 0a69752d20e8d6ba4c1016c57a79a31c07675231 (diff) | |
download | dexon-sol-tools-d86f5c4fbdaea40402e059cdad7ccd7453f66f32.tar.gz dexon-sol-tools-d86f5c4fbdaea40402e059cdad7ccd7453f66f32.tar.zst dexon-sol-tools-d86f5c4fbdaea40402e059cdad7ccd7453f66f32.zip |
Use bigint for gasUsed and gasPrice in Transaction
-rw-r--r-- | packages/pipeline/src/entities/Transaction.ts | 6 | ||||
-rw-r--r-- | packages/pipeline/src/index.ts | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/packages/pipeline/src/entities/Transaction.ts b/packages/pipeline/src/entities/Transaction.ts index d89d44746..8a68da813 100644 --- a/packages/pipeline/src/entities/Transaction.ts +++ b/packages/pipeline/src/entities/Transaction.ts @@ -6,6 +6,8 @@ export class Transaction { @PrimaryColumn() public blockHash!: string; @PrimaryColumn() public blockNumber!: number; - @Column() public gasUsed!: number; - @Column() public gasPrice!: number; + @Column({ type: 'bigint' }) + public gasUsed!: number; + @Column({ type: 'bigint' }) + public gasPrice!: number; } diff --git a/packages/pipeline/src/index.ts b/packages/pipeline/src/index.ts index b42256d87..165ff9780 100644 --- a/packages/pipeline/src/index.ts +++ b/packages/pipeline/src/index.ts @@ -28,9 +28,9 @@ let connection: Connection; const provider = web3Factory.getRpcProvider({ rpcUrl: 'https://mainnet.infura.io', }); - // await getExchangeEventsAsync(provider); - // await getBlockAsync(provider); - // await getTransactionAsync(provider); + await getExchangeEventsAsync(provider); + await getBlockAsync(provider); + await getTransactionAsync(provider); await getRelayers(RELAYER_REGISTRY_URL); process.exit(0); })(); |