Commit c74efb6b authored by tom's avatar tom

no optional fields in api

parent af048c18
import type { AddressParam } from './addressParams';
export interface InternalTransaction {
error?: string;
error: string | null;
success: boolean;
type: string;
transaction_hash: string;
......
......@@ -6,7 +6,7 @@ export interface Log {
topics: Array<string>;
data: string;
index: number;
decoded?: DecodedInput;
decoded: DecodedInput | null;
}
export interface LogsResponse {
......
......@@ -11,7 +11,7 @@ export interface RawTrace {
gasUsed: string;
output: string;
};
error?: string;
error: string | null;
subtraces: number;
traceAddress: Array<number>;
type: string;
......
......@@ -6,7 +6,7 @@ export type Tokenlist = {
export type TokenlistItem = {
balance: number;
contractAddress: string;
decimals?: number;
decimals: number | null;
id: number;
name: string;
symbol: string;
......
......@@ -20,20 +20,20 @@ export interface Transaction {
type: number;
gas_used: number;
gas_limit: number;
max_fee_per_gas?: number;
max_priority_fee_per_gas?: number;
priority_fee?: number;
base_fee_per_gas?: number;
tx_burnt_fee?: number;
max_fee_per_gas: number | null;
max_priority_fee_per_gas: number | null;
priority_fee: number | null;
base_fee_per_gas: number | null;
tx_burnt_fee: number | null;
nonce: number;
position: number;
revert_reason?: {
revert_reason: {
raw: string;
decoded: string;
};
} | null;
raw_input: string;
decoded_input?: DecodedInput;
token_transfers?: Array<TokenTransfer>;
decoded_input: DecodedInput | null;
token_transfers: Array<TokenTransfer> | null;
token_transfers_overflow: boolean;
exchange_rate: number;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment