Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/flat-pumas-watch.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/silly-pumpkins-wait.md

This file was deleted.

4 changes: 2 additions & 2 deletions MASTERLIST.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chainlink/external-adapters-js",
"version": "1.228.0",
"version": "1.229.0",
"license": "MIT",
"private": true,
"workspaces": [
Expand Down
10 changes: 10 additions & 0 deletions packages/sources/token-balance/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @chainlink/token-balance-adapter

## 3.3.0

### Minor Changes

- [#4303](https://github.com/smartcontractkit/external-adapters-js/pull/4303) [`a63b398`](https://github.com/smartcontractkit/external-adapters-js/commit/a63b398fd7394a9349b620cba4902a8a69a7b2c4) Thanks [@dskloetc](https://github.com/dskloetc)! - Add solanaMulti endpoint

### Patch Changes

- [#4299](https://github.com/smartcontractkit/external-adapters-js/pull/4299) [`c925208`](https://github.com/smartcontractkit/external-adapters-js/commit/c9252088de1e1d8770bb525bfc0b78e40578faab) Thanks [@dskloetc](https://github.com/dskloetc)! - Filter out non-solana networks in solvJlp endpoint

## 3.2.3

### Patch Changes
Expand Down
70 changes: 58 additions & 12 deletions packages/sources/token-balance/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# TOKEN_BALANCE

![3.2.3](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)
![3.3.0](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 Down Expand Up @@ -38,9 +38,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), [etherfi](#etherfi-endpoint), [evm](#evm-endpoint), [solana-balance](#solana-balance-endpoint), [solana](#solana-endpoint), [solvjlp](#solvjlp-endpoint), [tbill](#tbill-endpoint), [xrp](#xrp-endpoint), [xrpl](#xrpl-endpoint) | `evm` |
| Required? | Name | Description | Type | Options | Default |
| :-------: | :------: | :-----------------: | :----: | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :-----: |
| | endpoint | The endpoint to use | string | [erc20](#evm-endpoint), [etherfi](#etherfi-endpoint), [evm](#evm-endpoint), [solana-balance](#solana-balance-endpoint), [solana](#solana-endpoint), [solanamulti](#solanamulti-endpoint), [solvjlp](#solvjlp-endpoint), [tbill](#tbill-endpoint), [xrp](#xrp-endpoint), [xrpl](#xrpl-endpoint) | `evm` |

## Evm Endpoint

Expand Down Expand Up @@ -91,14 +91,15 @@ Request:

### 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` | | |
| 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.network | | Addresses with a networks other than SOLANA will be filtered out | 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

Expand Down Expand Up @@ -302,6 +303,51 @@ Request:

---

## Solanamulti Endpoint

`solanamulti` 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 in the format returned by the multichainAddress endpoint por-address-list. | object[] | | | | |
| ✅ | addresses.token | | Token the address is associated with to filter addresses by token | string | | | | |
| ✅ | addresses.network | | Addresses with a network other than SOLANA will be ignored | string | | | | |
| ✅ | addresses.contractAddress | | Address of token contract | string | | | | |
| ✅ | addresses.wallets | | Array of wallets to sum balances | string[] | | | | |
| ✅ | token | | Token symbol used to filter addresses | string | | | | |
| | priceOracle | | Configuration of the on-chain price oracle that provides real-time token valuations. | object | | | | |
| ✅ | priceOracle.contractAddress | | Contract address of the price oracle used to fetch token price data. | string | | | | |
| ✅ | priceOracle.network | | Blockchain network of the price oracle contract (e.g., ETHEREUM, ARBITRUM). | string | | | | |

### Example

Request:

```json
{
"data": {
"endpoint": "solanamulti",
"addresses": [
{
"token": "WBTC",
"network": "SOLANA",
"contractAddress": "3NZ9JMVBmGAqocybic2c7LQCJScmgsAZ6vQqTDzcqmJh",
"wallets": ["EXrqY7jLTLp83H38L8Zw3GvGkk1KoQbYTckPGBghwD8X"]
}
],
"token": "WBTC",
"priceOracle": {
"contractAddress": "0xfdFD9C85aD200c506Cf9e21F1FD8dd01932FBB23",
"network": "ETHEREUM"
}
}
}
```

---

## Solana-balance Endpoint

`solana-balance` is the only supported name for this endpoint.
Expand Down
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": "3.2.3",
"version": "3.3.0",
"description": "Chainlink token-balance adapter.",
"keywords": [
"Chainlink",
Expand Down
Loading