https://github.com/abstractsdk/abstract-name-service
https://github.com/abstractsdk/abstract-name-service
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abstractsdk/abstract-name-service
- Owner: AbstractSDK
- License: mit
- Created: 2022-12-16T10:02:50.000Z (over 3 years ago)
- Default Branch: mainline
- Last Pushed: 2024-08-26T13:26:38.000Z (almost 2 years ago)
- Last Synced: 2024-08-26T15:43:40.984Z (almost 2 years ago)
- Language: TypeScript
- Size: 1000 KB
- Stars: 2
- Watchers: 0
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Abstract Name Service Scraper
## Commands
- `pnpm install` - Install dependencies
- `pnpm run dev` - Run development server to listen for changes
- `pnpm run build` - Build the project
- `pnpm run start` - Run the built project (will run [app.ts](./src/scrape.ts))
- `pnpm run lint` - Run linter
- `pnpm run format` - Run formatter
- `pnpm run test` - Run tests (lol)
- `pnpm test:watch` to run tests in watch (loop) mode
- `pnpm test:coverage` to see the tests coverage report.
## Scraping
```bash
nr scrape --chains terra juno osmosis
```
# Naming Convention Reference
## Contracts
Staking contracts are stored in the CONTRACTS data structure in ANS.
Key:
```
{
protocol: 'junoswap',
contract: 'staking/juno,osmo',
}
```
Value:
```
junoxxxx
```
## Assets
### Cw20 / Native / Cw1155
Assets are stored in the ASSETS data structure in ANS.
Key:
```
dao
```
Value:
```
{
"cw20": "juno1lqhg97uxqlm7qhl4dylm2ynzf6z8r3px9epc23epkcu3703tal7qwj6vun"
}
```
### IBC
IBC Tokens are stored with the key `ORIGIN_CHAIN>ASSET_NAME`, for example:
Key:
```
terra>ustc
```
Value:
```
{
"native": "ibc/2DA4136457810BCB9DAAB620CA67BC342B17C3C70151CA70490A170DF7C9CB27"
}
```
This can be chained to express multi-hopped assets `ORIGIN_CHAIN>INTERMEDIATE_CHAIN>ASSET_NAME`.
### LP Tokens
Key:
```
"junoswap/crab,junox"
```
Value:
```
{
"cw20": "juno1lgsnuhss0s9swc3ykeh32r8z60gses0dhawzl2wtdeatncrqm3jq8vfpn2"
}
```