Skip to content

Commit

Permalink
fix: gasBalance result
Browse files Browse the repository at this point in the history
  • Loading branch information
faramozzayw committed Dec 4, 2023
1 parent 772ae8a commit c311def
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/client/core-api/core-api.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ export interface ChainDetailsDTO {
confirmations: number;
}

export enum AddressStatus {
OK = "OK",
INVALID = "INVALID",
FORBIDDEN = "FORBIDDEN",
UNINITIALIZED = "UNINITIALIZED",
CONTRACT_ADDRESS = "CONTRACT_ADDRESS",
}

export interface TokenDTO {
symbol: string;
name: string;
Expand Down Expand Up @@ -73,7 +81,8 @@ export interface ReceiveTransactionCostResponse {
}

export interface GasBalanceResponse {
gasBalance: string;
gasBalance: string | null;
status: AddressStatus;
}

export interface TransferStatusResponse {
Expand Down
1 change: 1 addition & 0 deletions src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export {
TransferStatusResponse,
BridgeTransaction,
GasBalanceResponse,
AddressStatus,
} from "../client/core-api/core-api.model";
export { ChainSymbol, ChainType } from "../chains/index";
export { RawBridgeTransactionBuilder } from "../services/bridge/raw-bridge-transaction-builder";
Expand Down

0 comments on commit c311def

Please sign in to comment.