-
Notifications
You must be signed in to change notification settings - Fork 308
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* yarn cache updated * GMX Glv EA * update * tests * fix unsupported assets error * fixes post review * ea-framework version update * READ regenerated * revert framework update * param override * framework update * update tsconfig.json * yarn update * comment setInterval to stop indefinite testing * skip Soak Test * changes post review * changes post review * package update * fix integration test --------- Co-authored-by: Karen Stepanyan <[email protected]>
- Loading branch information
1 parent
55df8b1
commit 1f07aa6
Showing
23 changed files
with
2,002 additions
and
0 deletions.
There are no files selected for viewing
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,5 @@ | ||
--- | ||
'@chainlink/glv-token-adapter': major | ||
--- | ||
|
||
GLV EA |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Empty file.
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,63 @@ | ||
# GLV | ||
|
||
![0.0.0](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/composites/glv-token/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet) | ||
|
||
This document was generated automatically. Please see [README Generator](../../scripts#readme-generator) for more info. | ||
|
||
## Environment Variables | ||
|
||
| Required? | Name | Description | Type | Options | Default | | ||
| :-------: | :-------------------------: | :---------------------------------------------------------------------------------------: | :----: | :-----: | :------------------------------------------: | | ||
| ✅ | ARBITRUM_RPC_URL | RPC url of Arbitrum node | string | | | | ||
| ✅ | ARBITRUM_CHAIN_ID | The chain id to connect to | number | | `42161` | | ||
| ✅ | DATASTORE_CONTRACT_ADDRESS | Address of Data Store contract | string | | `0xFD70de6b91282D8017aA4E741e9Ae325CAb992d8` | | ||
| ✅ | READER_CONTRACT_ADDRESS | Address of Reader contract | string | | `0x0537C767cDAC0726c76Bb89e92904fe28fd02fE1` | | ||
| ✅ | GLV_READER_CONTRACT_ADDRESS | Address of Glv Reader Contract | string | | `0x6a9505D0B44cFA863d9281EA5B0b34cB36243b45` | | ||
| ✅ | TIINGO_ADAPTER_URL | URL of Tiingo EA | string | | | | ||
| ✅ | NCFX_ADAPTER_URL | URL of NCFX EA | string | | | | ||
| ✅ | COINMETRICS_ADAPTER_URL | URL of Coinmetrics EA | string | | | | ||
| ✅ | MIN_REQUIRED_SOURCE_SUCCESS | Minimum number of source EAs that need to successfully return a value. | number | | `2` | | ||
| ✅ | MARKET_INFO_API | URL market meta data supported by Glv | string | | `https://arbitrum-api.gmxinfra.io/markets` | | ||
| ✅ | TOKEN_INFO_API | URL to token meta data supported by Glv | string | | `https://arbitrum-api.gmxinfra.io/tokens` | | ||
| | BACKGROUND_EXECUTE_MS | The amount of time the background execute should sleep before performing the next request | number | | `10000` | | ||
|
||
--- | ||
|
||
## Data Provider Rate Limits | ||
|
||
There are no rate limits for this adapter. | ||
|
||
--- | ||
|
||
## Input Parameters | ||
|
||
| Required? | Name | Description | Type | Options | Default | | ||
| :-------: | :------: | :-----------------: | :----: | :----------------------: | :-----: | | ||
| | endpoint | The endpoint to use | string | [price](#price-endpoint) | `price` | | ||
|
||
## Price Endpoint | ||
|
||
`price` is the only supported name for this endpoint. | ||
|
||
### Input Params | ||
|
||
| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With | | ||
| :-------: | :--: | :-----: | :------------------: | :----: | :-----: | :-----: | :--------: | :------------: | | ||
| ✅ | glv | | Glv contract address | string | | | | | | ||
|
||
### Example | ||
|
||
Request: | ||
|
||
```json | ||
{ | ||
"data": { | ||
"endpoint": "price", | ||
"glv": "0x528A5bac7E746C9A509A1f4F6dF58A03d44279F9" | ||
} | ||
} | ||
``` | ||
|
||
--- | ||
|
||
MIT License |
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,42 @@ | ||
{ | ||
"name": "@chainlink/glv-token-adapter", | ||
"version": "0.0.0", | ||
"description": "Chainlink glv-token adapter.", | ||
"keywords": [ | ||
"Chainlink", | ||
"LINK", | ||
"blockchain", | ||
"oracle", | ||
"glv-token" | ||
], | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"files": [ | ||
"dist" | ||
], | ||
"repository": { | ||
"url": "https://github.com/smartcontractkit/external-adapters-js", | ||
"type": "git" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"clean": "rm -rf dist && rm -f tsconfig.tsbuildinfo", | ||
"prepack": "yarn build", | ||
"build": "tsc -b", | ||
"server": "node -e 'require(\"./index.js\").server()'", | ||
"server:dist": "node -e 'require(\"./dist/index.js\").server()'", | ||
"start": "yarn server:dist" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "27.5.2", | ||
"@types/node": "16.18.119", | ||
"nock": "13.5.5", | ||
"typescript": "5.6.3" | ||
}, | ||
"dependencies": { | ||
"@chainlink/external-adapter-framework": "1.7.7", | ||
"decimal.js": "^10.3.1", | ||
"ethers": "^5.4.6", | ||
"tslib": "2.4.1" | ||
} | ||
} |
Oops, something went wrong.