diff --git a/.changeset/flat-pumas-watch.md b/.changeset/flat-pumas-watch.md deleted file mode 100644 index a79ac442fa..0000000000 --- a/.changeset/flat-pumas-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@chainlink/token-balance-adapter': patch ---- - -Filter out non-solana networks in solvJlp endpoint diff --git a/.changeset/silly-pumpkins-wait.md b/.changeset/silly-pumpkins-wait.md deleted file mode 100644 index 82c70f8890..0000000000 --- a/.changeset/silly-pumpkins-wait.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@chainlink/token-balance-adapter': minor ---- - -Add solanaMulti endpoint diff --git a/MASTERLIST.md b/MASTERLIST.md index 88f28d7807..2be2682ecb 100644 --- a/MASTERLIST.md +++ b/MASTERLIST.md @@ -1,4 +1,4 @@ -## Release 1.228.0 +## Release 1.229.0 This document was generated automatically. Please see [Master List Generator](./packages/scripts#master-list-generator) for more info. @@ -206,7 +206,7 @@ This document was generated automatically. Please see [Master List Generator](./ | [tiingo-state](packages/sources/tiingo-state/README.md) | `0.2.1` | `source` | v3 | Unknown | `external-adapter-framework` | `API_KEY (✅)`, `SECONDARY_WS_API_ENDPOINT`, `WS_API_ENDPOINT` | `crypto`, `price`, `state` | `price` | | [✅](packages/sources/tiingo-state/test/unit) | [✅](packages/sources/tiingo-state/test/integration) | | | [token-allocation](packages/targets/token-allocation/README.md) | `1.14.2` | `non-deployable` | v2 | Unknown | `amberdata-adapter`, `blocksize-capital-adapter`, `cfbenchmarks-adapter`, `coinapi-adapter`, `coingecko-adapter`, `coinmarketcap-adapter`, `coinmetrics-adapter`, `coinpaprika-adapter`, `coinranking-adapter`, `cryptocompare-adapter`, `finage-adapter`, `kaiko-adapter`, `ncfx-adapter`, `tiingo-adapter` | `AMBERDATA_ADAPTER_URL`, `BLOCKSIZE_CAPITAL_ADAPTER_URL`, `CFBENCHMARKS_ADAPTER_URL`, `COINAPI_ADAPTER_URL`, `COINGECKO_ADAPTER_URL`, `COINMARKETCAP_ADAPTER_URL`, `COINMETRICS_ADAPTER_URL`, `COINPAPRIKA_ADAPTER_URL`, `COINRANKING_ADAPTER_URL`, `CRYPTOCOMPARE_ADAPTER_URL`, `DEFAULT_METHOD`, `DEFAULT_QUOTE`, `DEFAULT_SOURCE`, `FINAGE_ADAPTER_URL`, `KAIKO_ADAPTER_URL`, `NCFX_ADAPTER_URL`, `TIINGO_ADAPTER_URL` | Unknown | Unknown | | [✅](packages/non-deployable/token-allocation/test/unit) | [✅](packages/non-deployable/token-allocation/test/integration) | [✅](packages/non-deployable/token-allocation/test/e2e) | | [token-allocation-test](packages/targets/token-allocation-test/README.md) | `0.0.31` | `non-deployable` | v3 | Unknown | `external-adapter-framework` | Unknown | Unknown | Unknown | Unknown | | [✅](packages/non-deployable/token-allocation-test/test/integration) | | -| [token-balance](packages/sources/token-balance/README.md) | `3.2.3` | `source` | v3 | Unknown | `external-adapter-framework` | `ARBITRUM_RPC_CHAIN_ID`, `ARBITRUM_RPC_URL`, `BACKGROUND_EXECUTE_MS`, `ETHEREUM_RPC_CHAIN_ID`, `ETHEREUM_RPC_URL`, `GROUP_SIZE`, `SOLANA_COMMITMENT`, `SOLANA_RPC_URL`, `XRPL_RPC_URL` | `erc20`, `etherfi`, `evm`, `solana`, `solana-balance`, `solanamulti`, `solvjlp`, `tbill`, `xrp`, `xrpl` | `evm` | | [✅](packages/sources/token-balance/test/unit) | [✅](packages/sources/token-balance/test/integration) | | +| [token-balance](packages/sources/token-balance/README.md) | `3.3.0` | `source` | v3 | Unknown | `external-adapter-framework` | `ARBITRUM_RPC_CHAIN_ID`, `ARBITRUM_RPC_URL`, `BACKGROUND_EXECUTE_MS`, `ETHEREUM_RPC_CHAIN_ID`, `ETHEREUM_RPC_URL`, `GROUP_SIZE`, `SOLANA_COMMITMENT`, `SOLANA_RPC_URL`, `XRPL_RPC_URL` | `erc20`, `etherfi`, `evm`, `solana`, `solana-balance`, `solanamulti`, `solvjlp`, `tbill`, `xrp`, `xrpl` | `evm` | | [✅](packages/sources/token-balance/test/unit) | [✅](packages/sources/token-balance/test/integration) | | | [tp](packages/sources/tp/README.md) | `1.10.0` | `source` | v3 | Unknown | `external-adapter-framework` | `WS_API_ENDPOINT`, `WS_API_PASSWORD (✅)`, `WS_API_USERNAME (✅)` | `commodities`, `forex`, `price` | `price` | ✅ | [✅](packages/sources/tp/test/unit) | [✅](packages/sources/tp/test/integration) | | | [tradermade](packages/sources/tradermade/README.md) | `2.1.29` | `source` | v3 | `https://marketdata.tradermade.com/api/v1/live` | `external-adapter-framework` | `API_ENDPOINT`, `API_KEY (✅)`, `WS_API_ENDPOINT`, `WS_API_KEY`, `WS_ENABLED` | `batch`, `commodities`, `forex`, `live`, `stock` | `live` | ✅ | [✅](packages/sources/tradermade/test/unit) | [✅](packages/sources/tradermade/test/integration) | | | [tradinghours](packages/sources/tradinghours/README.md) | `0.4.0` | `source` | v3 | `https://api.tradinghours.com` | `external-adapter-framework` | `API_ENDPOINT`, `API_KEY (✅)` | `euronext_milan-market-status`, `euronext_paris-market-status`, `forex-market-status`, `lse-market-status`, `market-status`, `metals-market-status`, `nyse-market-status`, `six-market-status`, `wti-market-status`, `xetra-market-status` | `market-status` | | [✅](packages/sources/tradinghours/test/unit) | [✅](packages/sources/tradinghours/test/integration) | | diff --git a/package.json b/package.json index 00216f8f6a..ee168dcb37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chainlink/external-adapters-js", - "version": "1.228.0", + "version": "1.229.0", "license": "MIT", "private": true, "workspaces": [ diff --git a/packages/sources/token-balance/CHANGELOG.md b/packages/sources/token-balance/CHANGELOG.md index 01baca10fb..a4db0dc117 100644 --- a/packages/sources/token-balance/CHANGELOG.md +++ b/packages/sources/token-balance/CHANGELOG.md @@ -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 diff --git a/packages/sources/token-balance/README.md b/packages/sources/token-balance/README.md index a2763a7642..9ab6bf2fac 100644 --- a/packages/sources/token-balance/README.md +++ b/packages/sources/token-balance/README.md @@ -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. @@ -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 @@ -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 @@ -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. diff --git a/packages/sources/token-balance/package.json b/packages/sources/token-balance/package.json index c9b4d5cf59..54434dd6cc 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": "3.2.3", + "version": "3.3.0", "description": "Chainlink token-balance adapter.", "keywords": [ "Chainlink",