@gera2ld/lib-dex 0.0.1
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/README.md +3 -0
- package/dist/common/abis/index.d.ts +2 -0
- package/dist/common/constants.d.ts +9 -0
- package/dist/common/evm.d.ts +1 -0
- package/dist/common/index.d.ts +4 -0
- package/dist/common/types.d.ts +13 -0
- package/dist/common/util.d.ts +21 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +17853 -0
- package/dist/node/index.d.ts +1 -0
- package/dist/node/index.js +23 -0
- package/dist/node/wallets/index.d.ts +1 -0
- package/dist/node/wallets/solana/index.d.ts +3 -0
- package/dist/prices/coingecko.d.ts +5 -0
- package/dist/prices/coingecko.integration.d.ts +1 -0
- package/dist/prices/index.d.ts +7 -0
- package/dist/prices/lifi.d.ts +4 -0
- package/dist/quotes/1inch/index.d.ts +60 -0
- package/dist/quotes/1inch/index.integration.d.ts +1 -0
- package/dist/quotes/base.d.ts +43 -0
- package/dist/quotes/deprecated-0x/index.d.ts +46 -0
- package/dist/quotes/deprecated-0x/types.d.ts +56 -0
- package/dist/quotes/index.d.ts +22 -0
- package/dist/quotes/jupiter/index.d.ts +2 -0
- package/dist/quotes/jupiter/metis.d.ts +35 -0
- package/dist/quotes/jupiter/metis.integration.d.ts +1 -0
- package/dist/quotes/jupiter/metis.types.d.ts +35 -0
- package/dist/quotes/jupiter/ultra.d.ts +44 -0
- package/dist/quotes/jupiter/ultra.integration.d.ts +1 -0
- package/dist/quotes/jupiter/ultra.types.d.ts +20 -0
- package/dist/quotes/kyberswap/index.d.ts +39 -0
- package/dist/quotes/kyberswap/index.integration.d.ts +1 -0
- package/dist/quotes/kyberswap/types.d.ts +18 -0
- package/dist/quotes/lifi/index.d.ts +36 -0
- package/dist/quotes/lifi/types.d.ts +53 -0
- package/dist/quotes/lifi/util.d.ts +6 -0
- package/dist/quotes/odos/index.d.ts +32 -0
- package/dist/quotes/odos/index.integration.d.ts +1 -0
- package/dist/quotes/odos/types.d.ts +21 -0
- package/dist/quotes/paraswap/index.d.ts +39 -0
- package/dist/quotes/paraswap/types.d.ts +25 -0
- package/dist/quotes/types.d.ts +36 -0
- package/dist/tokens/chain/evm.d.ts +2 -0
- package/dist/tokens/chain/index.d.ts +5 -0
- package/dist/tokens/chain/solana.d.ts +2 -0
- package/dist/tokens/constants.d.ts +2 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/lifi.d.ts +4 -0
- package/dist/transactions/evm/ankr.d.ts +70 -0
- package/dist/transactions/evm/ankr.integration.d.ts +1 -0
- package/dist/transactions/evm/index.d.ts +2 -0
- package/dist/transactions/evm/wallet.d.ts +21 -0
- package/dist/transactions/index.d.ts +6 -0
- package/dist/transactions/index.integration.d.ts +1 -0
- package/dist/transactions/solana/index.d.ts +1 -0
- package/dist/transactions/solana/wallet.d.ts +38 -0
- package/dist/transactions/solana/wallet.integration.d.ts +1 -0
- package/dist/transactions/types.d.ts +15 -0
- package/dist/trezor/index.d.ts +12 -0
- package/dist/trezor/util.d.ts +9 -0
- package/dist/wallets/common.d.ts +2 -0
- package/dist/wallets/evm/client.d.ts +25 -0
- package/dist/wallets/evm/index.d.ts +2 -0
- package/dist/wallets/evm/wallet.d.ts +71 -0
- package/dist/wallets/index.d.ts +4 -0
- package/dist/wallets/solana/index.d.ts +2 -0
- package/dist/wallets/solana/util/connection.d.ts +6 -0
- package/dist/wallets/solana/wallet.d.ts +55 -0
- package/dist/wallets/types.d.ts +34 -0
- package/package.json +47 -0
package/README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface IChainConfig {
|
|
2
|
+
id: number;
|
|
3
|
+
ankrChainName?: string;
|
|
4
|
+
txUrl: (hash: string) => string;
|
|
5
|
+
gasToken: string;
|
|
6
|
+
wrappedAddress: string;
|
|
7
|
+
}
|
|
8
|
+
export type ISupportedChains = 'AVA' | 'ARB' | 'POL' | 'SOL';
|
|
9
|
+
export declare const ChainConfig: Record<ISupportedChains, IChainConfig>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function replaceEvmZeroAddress(address: string): string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Logger } from '@gera2ld/common';
|
|
2
|
+
export declare const logger: Logger;
|
|
3
|
+
export declare const loggedRequest: <T = unknown>(this: unknown, url: string | URL, options?: import("@gera2ld/common").IRequestOptions | undefined) => {
|
|
4
|
+
arrayBuffer(): Promise<ArrayBuffer>;
|
|
5
|
+
blob(): Promise<Blob>;
|
|
6
|
+
json<U = T>(): Promise<U>;
|
|
7
|
+
text(): Promise<string>;
|
|
8
|
+
abort(): void;
|
|
9
|
+
};
|
|
10
|
+
export declare class TransactionError extends Error {
|
|
11
|
+
readonly data: {
|
|
12
|
+
type: 'fatal' | 'transient';
|
|
13
|
+
code?: string;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
constructor(data: {
|
|
17
|
+
type: 'fatal' | 'transient';
|
|
18
|
+
code?: string;
|
|
19
|
+
message: string;
|
|
20
|
+
});
|
|
21
|
+
}
|