Skip to content

Commit

Permalink
Merge pull request #271 from convergence-rfq/dev-add-automation-base-…
Browse files Browse the repository at this point in the history
…asset-script

changelog cli
  • Loading branch information
pindaroso authored Feb 22, 2024
2 parents 73bff4e + 46d0763 commit 72def01
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
12 changes: 12 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @convergence-rfq/cli

## 4.5.32

### Patch Changes

- add additional mint address check for addJupiterTokens check

## 4.5.31

### Patch Changes

- add update base assets command

## 4.5.30

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@convergence-rfq/cli",
"description": "Official Convergence CLI",
"version": "4.5.30",
"version": "4.5.32",
"license": "MIT",
"publishConfig": {
"access": "public"
Expand Down
6 changes: 5 additions & 1 deletion packages/cli/src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -507,11 +507,15 @@ export const addBaseAssetsFromJupiter = async (opts: Opts) => {
// eslint-disable-next-line no-console
console.log('Base assets:', baseAssets);
const baseAssetsSymbols = baseAssets.map((b) => b.ticker);
const baseAssetAddresses = baseAssets.map((b) => b.address.toBase58());
const res = await fetch('https://token.jup.ag/all');
const jupTokens: JupTokenList[] = await res.json();
const jupTokensToAdd = jupTokens.filter(
(t) => !baseAssetsSymbols.includes(t.symbol)
(t) =>
!baseAssetsSymbols.includes(t.symbol) &&
!baseAssetAddresses.includes(t.address)
);

let baseAssetIndexToStart = Math.max(...baseAssets.map((b) => b.index)) + 1;
// eslint-disable-next-line no-console
console.log('last baseAssetIndex', baseAssetIndexToStart - 1);
Expand Down

0 comments on commit 72def01

Please sign in to comment.