Skip to content

Commit

Permalink
Add fetchExchangeRates endpoint and fix linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushalrajbacancy committed Feb 28, 2024
1 parent 4dfe86a commit 8432467
Show file tree
Hide file tree
Showing 10 changed files with 2,011 additions and 2,015 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/@typescript-eslint',
],
env: {
node: true,
Expand All @@ -20,5 +19,6 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/camelcase': 'off',
'@typescript-eslint/ban-types': 'off'
},
};
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Changelog
## [1.5.3] - 2024-02-28
### New
- `PrimeDataUtils` has been added as a separate module, independent of the primeSdk, responsible for fetching data from REST APIs
- Added these endpoints into PrimeDataUtils: `getAccountBalances`, `getTransaction`, `getNftList`, `getAdvanceRoutesLiFi`, `getStepTransaction`, `getTokenLists`, `getTokenListTokens` and `fetchExchangeRates`
### Breaking changes
- Added new parameter named `chainId` in `getTokenLists` and `getTokenListTokens` endpoints

## [1.5.2] - 2024-02-12
### New
- Added `GenericBundler` and `EtherspotBundler` as bundlerProviders and removed bundlerUrl params from SdkOptions
Expand Down
4 changes: 2 additions & 2 deletions examples/18-exchange-rates.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { DataUtils, RateData, graphqlEndpoints } from '../src';
import { PrimeDataUtils, RateData } from '../src';
import * as dotenv from 'dotenv';

dotenv.config();

async function main(): Promise<void> {
// initializating Data service...
const dataService = new DataUtils('public-prime-testnet-key', graphqlEndpoints.QA)
const dataService = new PrimeDataUtils(process.env.DATA_API_KEY);

const ETH_AAVE_ADDR = '0x7Fc66500c84A76Ad7e9c93437bFc5Ac33E2DDaE9';
const ETH_MATIC_ADDR = '0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0';
Expand Down
Loading

0 comments on commit 8432467

Please sign in to comment.