Use bigint for gasUsed and gasPrice in Transaction
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user