@dzapio/sdk 2.0.3 → 2.0.4
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/index.d.ts +9 -7
- package/dist/index.js +1 -1
- package/dist/index.m.js +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/utils/decoder/swap/abis.d.ts +643 -0
- package/dist/utils/decoder/swap/inputDataDecoder.d.ts +14 -0
- package/dist/utils/index.d.ts +2 -4
- package/dist/utils/tokens.d.ts +3 -2
- package/package.json +1 -1
package/dist/utils/tokens.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { PriceService } from '../service/price';
|
|
2
|
-
import { ChainData, TokenInfo, TokenResponse } from '../types';
|
|
2
|
+
import { ChainData, HexString, TokenInfo, TokenResponse } from '../types';
|
|
3
3
|
export declare const isNativeCurrency: (address: string, chainConfig: ChainData) => boolean;
|
|
4
4
|
export declare const sortByBalanceInUsd: (tokenEntries: [string, TokenInfo][]) => TokenResponse;
|
|
5
5
|
export declare const updateTokenListPrices: (tokens: TokenResponse, chainId: number, chainConfig: ChainData, priceService: PriceService) => Promise<TokenResponse>;
|
|
6
6
|
export declare function isNonEVMChain(chainId: number, chainConfig: ChainData): boolean;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const getChecksumAddress: (address: string) => HexString;
|
|
8
|
+
export declare const formatToken: <T extends HexString | string = string>(token: T, nativeTokenAddress?: T) => T;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dzapio/sdk",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "A TypeScript/JavaScript SDK for interacting with the DZap protocol, providing utilities for DeFi operations including Swaps, Bridges, and Zaps.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"source": "src/index.ts",
|