Skip to content

Commit

Permalink
Release 1.151.0 (packages/sources/token-balance)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 25, 2025
1 parent e3d02a1 commit a8a3b08
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 8 deletions.
6 changes: 6 additions & 0 deletions packages/sources/token-balance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
56 changes: 49 additions & 7 deletions packages/sources/token-balance/README.md
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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` |

---

Expand All @@ -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

Expand Down Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/sources/token-balance/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chainlink/token-balance-adapter",
"version": "1.0.4",
"version": "1.0.5",
"description": "Chainlink token-balance adapter.",
"keywords": [
"Chainlink",
Expand Down

0 comments on commit a8a3b08

Please sign in to comment.