@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.
Files changed (2) hide show
  1. package/index.d.ts +11 -0
  2. 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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calp-pro/dex-db",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Database designed for handle relation pair/pool address to token0 & token1 addresses",
5
5
  "keywords": [
6
6
  "DEX",