-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[935] Migration to spark-ts-sdk (#2)
* feat: moving to sdk * merged * feat: update sdk version * feat: update matcher * fix: build * fix: correct server * added contract id in .env file * added predev script --------- Co-authored-by: alexey <[email protected]> Co-authored-by: Paul <[email protected]> Co-authored-by: Paul <[email protected]>
- Loading branch information
1 parent
87d2577
commit 5a2b2a6
Showing
74 changed files
with
2,462 additions
and
26,486 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { BETA_TOKENS } from "@compolabs/spark-ts-sdk"; | ||
|
||
interface Asset { | ||
address: string; | ||
symbol: string; | ||
decimals: number; | ||
} | ||
|
||
export const TOKENS_LIST: Asset[] = Object.values(BETA_TOKENS).map( | ||
({ decimals, assetId, symbol }) => ({ | ||
address: assetId, | ||
symbol, | ||
decimals, | ||
}) | ||
); | ||
|
||
export const TOKENS_BY_SYMBOL: Record<string, Asset> = TOKENS_LIST.reduce( | ||
(acc, t) => ({ ...acc, [t.symbol]: t }), | ||
{} | ||
); | ||
|
||
export const TOKENS_BY_ASSET_ID: Record<string, Asset> = TOKENS_LIST.reduce( | ||
(acc, t) => ({ ...acc, [t.address.toLowerCase()]: t }), | ||
{} | ||
); | ||
|
||
export const INDEXER_URL = "https://indexer.spark-defi.com"; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.