Skip to content

Commit

Permalink
Update TransactionReceipt type to match backend types (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
thebrianchen authored Feb 14, 2022
1 parent fdbb26c commit 501e7ef
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions src/alchemy-apis/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { TransactionReceipt } from "web3-core";

export interface TokenAllowanceParams {
contract: string;
owner: string;
Expand Down Expand Up @@ -151,6 +149,36 @@ export interface TransactionReceiptsResponse {
receipts: TransactionReceipt[] | null;
}

export interface TransactionReceipt {
transactionHash: string;
blockHash: string;
blockNumber: string;
contractAddress: string | null;
cumulativeGasUsed: string;
effectiveGasPrice: string;
from: string;
gasUsed: string;
logs: Log[];
logsBloom: string;
root?: string;
status?: string;
to: string;
transactionIndex: string;
type: string;
}

export interface Log {
blockHash: string;
address: string;
logIndex: string;
data: string;
removed: boolean;
topics: string[];
blockNumber: string;
transactionHash: string;
transactionIndex: string;
}

export interface Nft {
contract: NftContract;
id: NftId;
Expand Down

0 comments on commit 501e7ef

Please sign in to comment.