https://github.com/oraichain/deno-scripts
https://github.com/oraichain/deno-scripts
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/oraichain/deno-scripts
- Owner: oraichain
- Archived: true
- Created: 2022-01-09T04:28:51.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-05-13T03:54:26.000Z (about 2 years ago)
- Last Synced: 2025-02-28T12:18:51.854Z (3 months ago)
- Language: JavaScript
- Size: 23.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Oraichain Deno Script
## Document
Notes: Script run from another process, so input in pricefeed as kucoin, gate, ... is a stringify. Follow `Run Locally` to execute the command.
## Run Locally
1. `pricefeed`
```bash
deno run --allow-net --unstable ./src/pricefeed/coinbase.js WyJCVEMiLCAiRVRIIiwgIkJOQiIsICJYUlAiLCAiRE9HRSIsICJVU0RUIiwgIkxJTksiLCAiVU5JIiwgIlVTREMiLCAiQlVTRCIsICJPUkFJIiwgIkRBSSIsICJTT0wiLCAiTUFUSUMiLCAiU1VTSEkiLCAiRE9UIiwgIkxVTkEiLCAiSUNQIiwgIlhMTSIsICJBVE9NIiwgIkFBVkUiLCAiVEhFVEEiLCAiRU9TIiwgIkNBS0UiLCAiQVhTIiwgIkFMR08iLCAiTUtSIiwgIktTTSIsICJYVFoiLCAiRklMIiwgIkFNUCIsICJSVU5FIiwgIkNPTVAiXQ==# where the input is an array of paremters in base64. The base64 above is decoded to: ["BTC", "ETH", "BNB", "XRP", "DOGE", "USDT", "LINK", "UNI", "USDC", "BUSD", "ORAI", "DAI", "SOL", "MATIC", "SUSHI", "DOT", "LUNA", "ICP", "XLM", "ATOM", "AAVE", "THETA", "EOS", "CAKE", "AXS", "ALGO", "MKR", "KSM", "XTZ", "FIL", "AMP", "RUNE", "COMP"]
# the result returned from the script should be a single console.log form printing a string.
```