@argent/x-shared 1.34.5 → 1.35.0
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/bips-CP71ZN9a.js +1 -0
- package/dist/bips-zBtnMbia.mjs +114 -0
- package/dist/chains/starknet/address.d.ts +2 -2
- package/dist/errors/swap.d.ts +12 -0
- package/dist/features/swap/index.d.ts +3 -0
- package/dist/features/swap/models/index.d.ts +3 -0
- package/dist/features/swap/models/order.model.d.ts +48 -0
- package/dist/features/swap/models/quote.model.d.ts +82 -0
- package/dist/features/swap/models/trade.model.d.ts +186 -0
- package/dist/features/swap/services/implementation.d.ts +14 -0
- package/dist/features/swap/services/index.d.ts +2 -0
- package/dist/features/swap/services/interface.d.ts +8 -0
- package/dist/features/swap/services/order.mock.d.ts +7 -0
- package/dist/features/swap/services/quote.mock.d.ts +29 -0
- package/dist/features/swap/tests/token.mock.d.ts +2 -0
- package/dist/features/swap/tests/trade.mock.d.ts +2 -0
- package/dist/features/swap/tests/walletAccount.mock.d.ts +43 -0
- package/dist/features/swap/utils/index.d.ts +2 -0
- package/dist/features/swap/utils/slippage.d.ts +16 -0
- package/dist/features/swap/utils/totalFee.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +1326 -1407
- package/dist/nfts/BackendNftService.d.ts +2 -4
- package/dist/nfts/INFTService.d.ts +1 -1
- package/dist/simulation.js +1 -1
- package/dist/simulation.mjs +101 -100
- package/dist/swap.d.ts +2 -0
- package/dist/swap.js +1 -0
- package/dist/swap.mjs +183 -0
- package/dist/tokens/service/implementation.d.ts +3 -3
- package/dist/tokens/service/interface.d.ts +2 -2
- package/dist/tokens/service/types/defiPosition.model.d.ts +117 -0
- package/dist/tokens/service/types/index.d.ts +1 -0
- package/dist/tokens/service/types/{token.model.d.ts → webToken.model.d.ts} +27 -18
- package/dist/transactionVersion-CACUj2ch.mjs +793 -0
- package/dist/transactionVersion-CaRQ5Df4.js +1 -0
- package/dist/utils/bips.d.ts +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/webToken.model-Cl4dvcmj.mjs +1881 -0
- package/dist/webToken.model-Dsd8Rd3e.js +1 -0
- package/package.json +9 -2
- package/dist/transactionVersion-CL9JUEKt.js +0 -1
- package/dist/transactionVersion-CpEa4gsg.mjs +0 -2661
|
@@ -2,7 +2,7 @@ import { default as retry } from 'async-retry';
|
|
|
2
2
|
import { ArgentBackendNetworkId } from '../../backend';
|
|
3
3
|
import { Address } from '../../chains/starknet/address';
|
|
4
4
|
import { ApiDefiDecompositionSchema, ApiTokenInfo } from './types/backend.model';
|
|
5
|
-
import {
|
|
5
|
+
import { WebBaseTokenWithBalance } from './types/webToken.model';
|
|
6
6
|
export type SelectorFn<T> = (value: T) => boolean;
|
|
7
7
|
export interface ITokenServiceDefiDecomposition {
|
|
8
8
|
fetchDefiDecomposition: (address: Address) => Promise<ApiDefiDecompositionSchema[]>;
|
|
@@ -17,6 +17,6 @@ export interface ITokenServiceWeb extends ITokenServiceDefiDecomposition {
|
|
|
17
17
|
* fetchTokensInfoFromBackend: Fetch tokens info from backend
|
|
18
18
|
* fetchDefiDecomposition: Fetch DeFi decomposition for given account from backend
|
|
19
19
|
*/
|
|
20
|
-
fetchAddressTokenBalancesFromBackend: (address: Address, network: ArgentBackendNetworkId, opts?: retry.Options) => Promise<
|
|
20
|
+
fetchAddressTokenBalancesFromBackend: (address: Address, network: ArgentBackendNetworkId, opts?: retry.Options) => Promise<WebBaseTokenWithBalance[]>;
|
|
21
21
|
fetchTokensInfoFromBackend(tokenAddress?: Address): Promise<ApiTokenInfo[] | undefined>;
|
|
22
22
|
}
|