From a8a3b08c7c219be1cb94b5dcd07f67d116971255 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 25 Jan 2025 04:52:13 +0000 Subject: [PATCH] Release 1.151.0 (packages/sources/token-balance) --- packages/sources/token-balance/CHANGELOG.md | 6 +++ packages/sources/token-balance/README.md | 56 ++++++++++++++++++--- packages/sources/token-balance/package.json | 2 +- 3 files changed, 56 insertions(+), 8 deletions(-) diff --git a/packages/sources/token-balance/CHANGELOG.md b/packages/sources/token-balance/CHANGELOG.md index 38be02d415..ab7d31491b 100644 --- a/packages/sources/token-balance/CHANGELOG.md +++ b/packages/sources/token-balance/CHANGELOG.md @@ -1,5 +1,11 @@ # @chainlink/token-balance-adapter +## 1.0.5 + +### Patch Changes + +- [#3637](https://github.com/smartcontractkit/external-adapters-js/pull/3637) [`68d4356`](https://github.com/smartcontractkit/external-adapters-js/commit/68d4356abe89ae7da7e3ac302c1094ed33897417) Thanks [@mxiao-cll](https://github.com/mxiao-cll)! - Add endpoint to handle JLP tokens on Solana for Solv + ## 1.0.4 ### Patch Changes diff --git a/packages/sources/token-balance/README.md b/packages/sources/token-balance/README.md index 3eb3e505f8..cdf0558e90 100644 --- a/packages/sources/token-balance/README.md +++ b/packages/sources/token-balance/README.md @@ -1,6 +1,6 @@ # TOKEN_BALANCE -![1.0.4](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/token-balance/package.json) ![v3](https://img.shields.io/badge/framework%20version-v3-blueviolet) +![1.0.5](https://img.shields.io/github/package-json/v/smartcontractkit/external-adapters-js?filename=packages/sources/token-balance/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. @@ -16,9 +16,13 @@ Additional env vars in the form `${NETWORK}_RPC_URL` and `${NETWORK}_RPC_CHAIN_I ## Environment Variables -| Required? | Name | Description | Type | Options | Default | -| :-------: | :-------------------: | :---------------------------------------------------------------------------------------: | :----: | :-----: | :-----: | -| | BACKGROUND_EXECUTE_MS | The amount of time the background execute should sleep before performing the next request | number | | `10000` | +| Required? | Name | Description | Type | Options | Default | +| :-------: | :-------------------: | :---------------------------------------------------------------------------------------: | :----: | :-----: | :---------: | +| | ARBITRUM_RPC_URL | RPC url of Arbitrum node | string | | `` | +| | ARBITRUM_RPC_CHAIN_ID | Arbitrum chain id | number | | `42161` | +| | SOLANA_RPC_URL | Solana Rpc Url | string | | `` | +| | SOLANA_COMMITMENT | Solana transaction commitment level | string | | `finalized` | +| | BACKGROUND_EXECUTE_MS | The amount of time the background execute should sleep before performing the next request | number | | `10000` | --- @@ -30,9 +34,9 @@ There are no rate limits for this adapter. ## Input Parameters -| Required? | Name | Description | Type | Options | Default | -| :-------: | :------: | :-----------------: | :----: | :------------------------------------------: | :-----: | -| | endpoint | The endpoint to use | string | [erc20](#evm-endpoint), [evm](#evm-endpoint) | `evm` | +| Required? | Name | Description | Type | Options | Default | +| :-------: | :------: | :-----------------: | :----: | :------------------------------------------------------------------------: | :-----: | +| | endpoint | The endpoint to use | string | [erc20](#evm-endpoint), [evm](#evm-endpoint), [solvjlp](#solvjlp-endpoint) | `evm` | ## Evm Endpoint @@ -77,4 +81,42 @@ Request: --- +## Solvjlp Endpoint + +`solvjlp` is the only supported name for this endpoint. + +### Input Params + +| Required? | Name | Aliases | Description | Type | Options | Default | Depends On | Not Valid With | +| :-------: | :-----------------------: | :-----: | :------------------------------: | :------: | :-----: | :------------------------------------------: | :--------: | :------------: | +| ✅ | addresses | | List of addresses to read | object[] | | | | | +| | addresses.token | | only JLP will be processed | string | | | | | +| ✅ | addresses.contractAddress | | Address of token contract | string | | | | | +| ✅ | addresses.wallets | | Array of wallets to sum balances | string[] | | | | | +| | jlpUsdContract | | JLP/USD price feed on arbitrum | string | | `0x702609AFaDda5b357bc7b0C5174645a4438A99F3` | | | +| | btcUsdContract | | BTC/USD price feed on arbitrum | string | | `0x6ce185860a4963106506C203335A2910413708e9` | | | + +### Example + +Request: + +```json +{ + "data": { + "endpoint": "solvjlp", + "addresses": [ + { + "token": "JLP", + "contractAddress": "27G8MtK7VtTcCHkpASjSDdkWWYfoqT6ggEuKidVJidD4", + "wallets": ["9P9MwtNknCNZkWLqgkuofM2b8FEDE8jNJxhnuSkHnhrf"] + } + ], + "jlpUsdContract": "0x702609AFaDda5b357bc7b0C5174645a4438A99F3", + "btcUsdContract": "0x6ce185860a4963106506C203335A2910413708e9" + } +} +``` + +--- + MIT License diff --git a/packages/sources/token-balance/package.json b/packages/sources/token-balance/package.json index 083c425bb0..eb588ad0e8 100644 --- a/packages/sources/token-balance/package.json +++ b/packages/sources/token-balance/package.json @@ -1,6 +1,6 @@ { "name": "@chainlink/token-balance-adapter", - "version": "1.0.4", + "version": "1.0.5", "description": "Chainlink token-balance adapter.", "keywords": [ "Chainlink",