@aurigami/sdk 1.18.4 → 1.18.6

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.
@@ -122,3 +122,5 @@ export declare const REFERRAL_CAMPAIGNS: {
122
122
  };
123
123
  export declare const CACHE_TIMEOUT: number;
124
124
  export declare const SD_INCENTIVE_IN_SD = 83.35;
125
+ export declare const STADER_ETH: string;
126
+ export declare const USDT_ETH: string;
@@ -0,0 +1,5 @@
1
+ export declare function getSwapInfo(tokenIn: string, tokenOut: string, amountIn: string, onAurora?: boolean): Promise<KyberApiResponse>;
2
+ export declare type KyberApiResponse = {
3
+ inputAmount: string;
4
+ outputAmount: string;
5
+ };
@@ -0,0 +1,21 @@
1
+ export declare function getQuoteOneInch(fromTokenAddress: string, toTokenAddress: string, amount: string): Promise<OneInchApiResponse>;
2
+ export declare type OneInchApiResponse = {
3
+ fromToken: {
4
+ symbol: string;
5
+ name: string;
6
+ decimals: number;
7
+ address: string;
8
+ logoURI: string;
9
+ tags: string[];
10
+ };
11
+ toToken: {
12
+ symbol: string;
13
+ name: string;
14
+ decimals: number;
15
+ address: string;
16
+ logoURI: string;
17
+ tags: string[];
18
+ };
19
+ toTokenAmount: string;
20
+ fromTokenAmount: string;
21
+ };
@@ -2,6 +2,13 @@ import BigNumber from 'bignumber.js';
2
2
  import { BigNumber as BN, providers } from 'ethers';
3
3
  import { TokenAmount } from '../entities/tokenAmount';
4
4
  import { Address, TokenValuation } from '../types';
5
+ export declare function prepareParamsAggregator(address: string, provider: providers.Provider): Promise<{
6
+ tokenInQuantity: string;
7
+ usdtAddress: string;
8
+ usdtDecimal: number;
9
+ }>;
10
+ export declare function fetchPriceFromOneInch(address: string, provider: providers.Provider): Promise<BigNumber>;
11
+ export declare function fetchPriceFromKyberSwap(address: string, provider: providers.Provider, onAurora?: boolean): Promise<BigNumber>;
5
12
  export declare function fetchPriceFromDefiLlamaAPI(id: string): Promise<BigNumber>;
6
13
  export declare function fetchPriceFromCoingeckoAPI(id: string): Promise<BigNumber>;
7
14
  export declare function fetchPriceFromDefiLlama(id: Address): Promise<BigNumber>;