@shogun-sdk/swap 0.0.2-test.27 → 0.0.2-test.28
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/core.d.cts +1 -1
- package/dist/core.d.ts +1 -1
- package/dist/{index-Qoc6Q9XN.d.ts → index-BYkOqhW8.d.ts} +17 -17
- package/dist/{index-CmsKzdEu.d.cts → index-CapCmdE-.d.cts} +17 -17
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/react.d.cts +2 -2
- package/dist/react.d.ts +2 -2
- package/package.json +1 -1
package/dist/core.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-CapCmdE-.cjs';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.cjs';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BYkOqhW8.js';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.js';
|
|
4
4
|
import '@solana/web3.js';
|
|
@@ -2,6 +2,17 @@ import { ChainID, QuoteResponse, ChainOrderStatus, TokenSearchResponse as TokenS
|
|
|
2
2
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.js';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
|
|
5
|
+
type ChainId$1 = ChainID;
|
|
6
|
+
interface SupportedChain {
|
|
7
|
+
id: ChainId$1;
|
|
8
|
+
name: string;
|
|
9
|
+
isEVM: boolean;
|
|
10
|
+
wrapped: string;
|
|
11
|
+
symbol: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
tokenAddress: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
/**
|
|
6
17
|
* Token metadata used in quotes.
|
|
7
18
|
* Provides address, decimals, and optional symbol.
|
|
@@ -26,9 +37,9 @@ type SwapQuoteParams = {
|
|
|
26
37
|
/** Token you’re swapping *to* */
|
|
27
38
|
tokenOut: QuoteTokenInfo;
|
|
28
39
|
/** The source chain ID — where the swap starts */
|
|
29
|
-
sourceChainId:
|
|
40
|
+
sourceChainId: ChainId$1;
|
|
30
41
|
/** The destination chain ID — where the swap ends */
|
|
31
|
-
destChainId:
|
|
42
|
+
destChainId: ChainId$1;
|
|
32
43
|
/** Input amount (smallest unit — wei, lamports, etc.) */
|
|
33
44
|
amount: string;
|
|
34
45
|
slippage?: number;
|
|
@@ -49,11 +60,11 @@ type SwapQuoteResponse = {
|
|
|
49
60
|
minStablecoinsAmount: bigint;
|
|
50
61
|
/** Metadata for input token (includes decimals & chain ID) */
|
|
51
62
|
tokenIn: QuoteTokenInfo & {
|
|
52
|
-
chainId:
|
|
63
|
+
chainId: ChainId$1;
|
|
53
64
|
};
|
|
54
65
|
/** Metadata for output token (includes decimals & chain ID) */
|
|
55
66
|
tokenOut: QuoteTokenInfo & {
|
|
56
|
-
chainId:
|
|
67
|
+
chainId: ChainId$1;
|
|
57
68
|
};
|
|
58
69
|
/**
|
|
59
70
|
* Derived: how many tokenOut for 1 tokenIn (raw, 1e18 scaled bigint)
|
|
@@ -340,7 +351,7 @@ declare enum OrderExecutionType {
|
|
|
340
351
|
* Public filtered enum — exposes only currently supported chains.
|
|
341
352
|
*
|
|
342
353
|
*/
|
|
343
|
-
declare const ChainId
|
|
354
|
+
declare const ChainId: Partial<Record<"Arbitrum" | "Optimism" | "Base" | "Hyperliquid" | "BSC" | "Solana" | "Sui", number>>;
|
|
344
355
|
/**
|
|
345
356
|
* Public chains — only currently supported ones.
|
|
346
357
|
*/
|
|
@@ -363,15 +374,4 @@ declare const SupportedChains: ({
|
|
|
363
374
|
})[];
|
|
364
375
|
declare const isEvmChain: typeof isEvmChain$1;
|
|
365
376
|
|
|
366
|
-
type ChainId
|
|
367
|
-
interface SupportedChain {
|
|
368
|
-
id: ChainId;
|
|
369
|
-
name: string;
|
|
370
|
-
isEVM: boolean;
|
|
371
|
-
wrapped: string;
|
|
372
|
-
symbol: string;
|
|
373
|
-
decimals: number;
|
|
374
|
-
tokenAddress: string;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export { type BalanceRequestParams as B, ChainId$1 as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
|
377
|
+
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
|
@@ -2,6 +2,17 @@ import { ChainID, QuoteResponse, ChainOrderStatus, TokenSearchResponse as TokenS
|
|
|
2
2
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.cjs';
|
|
3
3
|
import { WalletClient } from 'viem';
|
|
4
4
|
|
|
5
|
+
type ChainId$1 = ChainID;
|
|
6
|
+
interface SupportedChain {
|
|
7
|
+
id: ChainId$1;
|
|
8
|
+
name: string;
|
|
9
|
+
isEVM: boolean;
|
|
10
|
+
wrapped: string;
|
|
11
|
+
symbol: string;
|
|
12
|
+
decimals: number;
|
|
13
|
+
tokenAddress: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
5
16
|
/**
|
|
6
17
|
* Token metadata used in quotes.
|
|
7
18
|
* Provides address, decimals, and optional symbol.
|
|
@@ -26,9 +37,9 @@ type SwapQuoteParams = {
|
|
|
26
37
|
/** Token you’re swapping *to* */
|
|
27
38
|
tokenOut: QuoteTokenInfo;
|
|
28
39
|
/** The source chain ID — where the swap starts */
|
|
29
|
-
sourceChainId:
|
|
40
|
+
sourceChainId: ChainId$1;
|
|
30
41
|
/** The destination chain ID — where the swap ends */
|
|
31
|
-
destChainId:
|
|
42
|
+
destChainId: ChainId$1;
|
|
32
43
|
/** Input amount (smallest unit — wei, lamports, etc.) */
|
|
33
44
|
amount: string;
|
|
34
45
|
slippage?: number;
|
|
@@ -49,11 +60,11 @@ type SwapQuoteResponse = {
|
|
|
49
60
|
minStablecoinsAmount: bigint;
|
|
50
61
|
/** Metadata for input token (includes decimals & chain ID) */
|
|
51
62
|
tokenIn: QuoteTokenInfo & {
|
|
52
|
-
chainId:
|
|
63
|
+
chainId: ChainId$1;
|
|
53
64
|
};
|
|
54
65
|
/** Metadata for output token (includes decimals & chain ID) */
|
|
55
66
|
tokenOut: QuoteTokenInfo & {
|
|
56
|
-
chainId:
|
|
67
|
+
chainId: ChainId$1;
|
|
57
68
|
};
|
|
58
69
|
/**
|
|
59
70
|
* Derived: how many tokenOut for 1 tokenIn (raw, 1e18 scaled bigint)
|
|
@@ -340,7 +351,7 @@ declare enum OrderExecutionType {
|
|
|
340
351
|
* Public filtered enum — exposes only currently supported chains.
|
|
341
352
|
*
|
|
342
353
|
*/
|
|
343
|
-
declare const ChainId
|
|
354
|
+
declare const ChainId: Partial<Record<"Arbitrum" | "Optimism" | "Base" | "Hyperliquid" | "BSC" | "Solana" | "Sui", number>>;
|
|
344
355
|
/**
|
|
345
356
|
* Public chains — only currently supported ones.
|
|
346
357
|
*/
|
|
@@ -363,15 +374,4 @@ declare const SupportedChains: ({
|
|
|
363
374
|
})[];
|
|
364
375
|
declare const isEvmChain: typeof isEvmChain$1;
|
|
365
376
|
|
|
366
|
-
type ChainId
|
|
367
|
-
interface SupportedChain {
|
|
368
|
-
id: ChainId;
|
|
369
|
-
name: string;
|
|
370
|
-
isEVM: boolean;
|
|
371
|
-
wrapped: string;
|
|
372
|
-
symbol: string;
|
|
373
|
-
decimals: number;
|
|
374
|
-
tokenAddress: string;
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
export { type BalanceRequestParams as B, ChainId$1 as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
|
377
|
+
export { type BalanceRequestParams as B, ChainId as C, type ExecuteOrderParams as E, OrderExecutionType as O, type PlaceOrderResult as P, type SwapSDKConfig as S, type TokenInfo as T, SwapSDK as a, type SwapQuoteParams as b, type SwapQuoteResponse as c, type Stage as d, type BalanceResponse as e, buildQuoteParams as f, SupportedChains as g, type TokenBalance as h, isEvmChain as i, type SupportedChain as j };
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-CapCmdE-.cjs';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.cjs';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
1
|
+
export { B as BalanceRequestParams, e as BalanceResponse, C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, b as SwapQuoteParams, c as SwapQuoteResponse, a as SwapSDK, S as SwapSDKConfig, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BYkOqhW8.js';
|
|
2
2
|
import '@shogun-sdk/intents-sdk';
|
|
3
3
|
import './wallet-B9bKceyN.js';
|
|
4
4
|
import '@solana/web3.js';
|
package/dist/react.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-
|
|
3
|
-
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
2
|
+
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-CapCmdE-.cjs';
|
|
3
|
+
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-CapCmdE-.cjs';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.cjs';
|
|
6
6
|
import { ApiUserOrders } from '@shogun-sdk/intents-sdk';
|
package/dist/react.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-
|
|
3
|
-
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-
|
|
2
|
+
import { S as SwapSDKConfig, a as SwapSDK, b as SwapQuoteParams, c as SwapQuoteResponse, E as ExecuteOrderParams, d as Stage, P as PlaceOrderResult, T as TokenInfo, B as BalanceRequestParams, e as BalanceResponse } from './index-BYkOqhW8.js';
|
|
3
|
+
export { C as ChainId, O as OrderExecutionType, j as SupportedChain, g as SupportedChains, h as TokenBalance, f as buildQuoteParams, i as isEvmChain } from './index-BYkOqhW8.js';
|
|
4
4
|
import { WalletClient } from 'viem';
|
|
5
5
|
import { A as AdaptedWallet } from './wallet-B9bKceyN.js';
|
|
6
6
|
import { ApiUserOrders } from '@shogun-sdk/intents-sdk';
|