From c311def7d4f4b01a802a89aacb4d6fbe33c0ebbe Mon Sep 17 00:00:00 2001 From: faramo_zayw Date: Mon, 4 Dec 2023 15:48:12 +0200 Subject: [PATCH] fix: gasBalance result --- src/client/core-api/core-api.model.ts | 11 ++++++++++- src/models/index.ts | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/client/core-api/core-api.model.ts b/src/client/core-api/core-api.model.ts index 37e7e3c4..4d86d895 100644 --- a/src/client/core-api/core-api.model.ts +++ b/src/client/core-api/core-api.model.ts @@ -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; @@ -73,7 +81,8 @@ export interface ReceiveTransactionCostResponse { } export interface GasBalanceResponse { - gasBalance: string; + gasBalance: string | null; + status: AddressStatus; } export interface TransferStatusResponse { diff --git a/src/models/index.ts b/src/models/index.ts index e0fdf6d5..df116439 100644 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -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";