@gobob/bob-sdk 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/gateway/client.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GatewayQuoteParams, GatewayQuote, Token, GatewayStrategyContract, GatewayOrder, GatewayStartOrder, EvmAddress,
|
|
1
|
+
import { GatewayQuoteParams, GatewayQuote, Token, GatewayStrategyContract, GatewayOrder, GatewayStartOrder, EvmAddress, GatewayTokensInfo } from "./types";
|
|
2
2
|
type Optional<T, K extends keyof T> = Omit<T, K> & Partial<T>;
|
|
3
3
|
export declare const MAINNET_GATEWAY_BASE_URL = "https://gateway-api-mainnet.gobob.xyz";
|
|
4
4
|
export declare const TESTNET_GATEWAY_BASE_URL = "https://gateway-api-testnet.gobob.xyz";
|
|
@@ -7,10 +7,10 @@ export declare class GatewayApiClient {
|
|
|
7
7
|
private baseUrl;
|
|
8
8
|
constructor(chainName: string);
|
|
9
9
|
getChains(): string[];
|
|
10
|
-
getQuote(params: Optional<GatewayQuoteParams, "amount" | "fromChain" | "fromToken" | "fromUserAddress" | "toUserAddress">): Promise<GatewayQuote &
|
|
10
|
+
getQuote(params: Optional<GatewayQuoteParams, "amount" | "fromChain" | "fromToken" | "fromUserAddress" | "toUserAddress">): Promise<GatewayQuote & GatewayTokensInfo>;
|
|
11
11
|
startOrder(gatewayQuote: GatewayQuote, params: Optional<GatewayQuoteParams, "toToken" | "amount">): Promise<GatewayStartOrder>;
|
|
12
12
|
finalizeOrder(uuid: string, bitcoinTxOrId: string): Promise<string>;
|
|
13
|
-
getOrders(userAddress: EvmAddress): Promise<(GatewayOrder & Optional<
|
|
13
|
+
getOrders(userAddress: EvmAddress): Promise<(GatewayOrder & Optional<GatewayTokensInfo, "outputToken">)[]>;
|
|
14
14
|
getStrategies(): Promise<GatewayStrategyContract[]>;
|
|
15
15
|
getTokenAddresses(includeStrategies?: boolean): Promise<EvmAddress[]>;
|
|
16
16
|
getTokens(includeStrategies?: boolean): Promise<Token[]>;
|
package/dist/gateway/types.d.ts
CHANGED
|
@@ -106,14 +106,14 @@ export type GatewayOrderResponse = {
|
|
|
106
106
|
txProofDifficultyFactor: number;
|
|
107
107
|
strategyAddress?: EvmAddress;
|
|
108
108
|
satsToConvertToEth: number;
|
|
109
|
-
outputEthAmount?:
|
|
109
|
+
outputEthAmount?: string;
|
|
110
110
|
outputTokenAddress?: EvmAddress;
|
|
111
|
-
outputTokenAmount?:
|
|
111
|
+
outputTokenAmount?: string;
|
|
112
112
|
};
|
|
113
113
|
export type GatewayOrder = Omit<GatewayOrderResponse & {
|
|
114
114
|
gasRefill: number;
|
|
115
115
|
}, "satsToConvertToEth">;
|
|
116
|
-
export type
|
|
116
|
+
export type GatewayTokensInfo = {
|
|
117
117
|
baseToken: Token;
|
|
118
118
|
outputToken: Token;
|
|
119
119
|
};
|