Commit c74efb6b authored by tom's avatar tom

no optional fields in api

parent af048c18
import type { AddressParam } from './addressParams'; import type { AddressParam } from './addressParams';
export interface InternalTransaction { export interface InternalTransaction {
error?: string; error: string | null;
success: boolean; success: boolean;
type: string; type: string;
transaction_hash: string; transaction_hash: string;
......
...@@ -6,7 +6,7 @@ export interface Log { ...@@ -6,7 +6,7 @@ export interface Log {
topics: Array<string>; topics: Array<string>;
data: string; data: string;
index: number; index: number;
decoded?: DecodedInput; decoded: DecodedInput | null;
} }
export interface LogsResponse { export interface LogsResponse {
......
...@@ -11,7 +11,7 @@ export interface RawTrace { ...@@ -11,7 +11,7 @@ export interface RawTrace {
gasUsed: string; gasUsed: string;
output: string; output: string;
}; };
error?: string; error: string | null;
subtraces: number; subtraces: number;
traceAddress: Array<number>; traceAddress: Array<number>;
type: string; type: string;
......
...@@ -6,7 +6,7 @@ export type Tokenlist = { ...@@ -6,7 +6,7 @@ export type Tokenlist = {
export type TokenlistItem = { export type TokenlistItem = {
balance: number; balance: number;
contractAddress: string; contractAddress: string;
decimals?: number; decimals: number | null;
id: number; id: number;
name: string; name: string;
symbol: string; symbol: string;
......
...@@ -20,20 +20,20 @@ export interface Transaction { ...@@ -20,20 +20,20 @@ export interface Transaction {
type: number; type: number;
gas_used: number; gas_used: number;
gas_limit: number; gas_limit: number;
max_fee_per_gas?: number; max_fee_per_gas: number | null;
max_priority_fee_per_gas?: number; max_priority_fee_per_gas: number | null;
priority_fee?: number; priority_fee: number | null;
base_fee_per_gas?: number; base_fee_per_gas: number | null;
tx_burnt_fee?: number; tx_burnt_fee: number | null;
nonce: number; nonce: number;
position: number; position: number;
revert_reason?: { revert_reason: {
raw: string; raw: string;
decoded: string; decoded: string;
}; } | null;
raw_input: string; raw_input: string;
decoded_input?: DecodedInput; decoded_input: DecodedInput | null;
token_transfers?: Array<TokenTransfer>; token_transfers: Array<TokenTransfer> | null;
token_transfers_overflow: boolean; token_transfers_overflow: boolean;
exchange_rate: number; 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