@ref-finance/ref-sdk 1.1.7 → 1.1.8

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.
@@ -42,6 +42,7 @@ export declare const useSwap: (params: {
42
42
  onSwap: (transactionsRef: Transaction[]) => void;
43
43
  AccountId?: string | undefined;
44
44
  poolFetchingState?: "loading" | "end" | undefined;
45
+ referralId?: string | undefined;
45
46
  }) => SwapOutParams;
46
47
  export declare const TokenPriceContext: React.Context<Record<string, any> | null>;
47
48
  export declare const useTokenPriceList: () => Record<string, any>;
@@ -18,6 +18,7 @@ export interface SwapWidgetProps {
18
18
  };
19
19
  defaultTokenIn?: string;
20
20
  defaultTokenOut?: string;
21
+ referralId?: string;
21
22
  transactionState?: {
22
23
  state: 'success' | 'fail' | null;
23
24
  setState: (state: 'success' | 'fail' | null) => void;
@@ -1,9 +1,10 @@
1
1
  import { TokenMetadata, EstimateSwapView, Transaction } from '../types';
2
- export declare const instantSwap: ({ tokenIn, tokenOut, amountIn, slippageTolerance, swapTodos, AccountId, }: {
2
+ export declare const instantSwap: ({ tokenIn, tokenOut, amountIn, slippageTolerance, swapTodos, AccountId, referralId, }: {
3
3
  tokenIn: TokenMetadata;
4
4
  tokenOut: TokenMetadata;
5
5
  amountIn: string;
6
6
  slippageTolerance: number;
7
7
  swapTodos: EstimateSwapView[];
8
8
  AccountId: string;
9
+ referralId?: string | undefined;
9
10
  }) => Promise<Transaction[]>;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.7",
2
+ "version": "1.1.8",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",