@calp-pro/dex-db 1.0.3 → 1.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/index.d.ts +11 -0
- package/package.json +1 -1
package/index.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type pair = [string, string, string]
|
|
2
|
+
|
|
3
|
+
export interface dex_db_instance {
|
|
4
|
+
index: (pair: pair) => void
|
|
5
|
+
find_pairs_with_token: (token: string) => string[]
|
|
6
|
+
find_pairs_with_tokens: (token_a: string, token_b: string) => string[]
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export function dex_db(pairs?: pair[]): dex_db_instance
|
|
10
|
+
|
|
11
|
+
export default dex_db
|