Skip to content

Commit

Permalink
using latest sdk version
Browse files Browse the repository at this point in the history
  • Loading branch information
aalavandhan committed Jun 27, 2024
1 parent 1257645 commit 5c8a243
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"@ampleforthorg/sdk": "1.0.32",
"@ampleforthorg/sdk": "1.0.33",
"@apollo/client": "^3.3.16",
"@craco/craco": "^6.1.2",
"@headlessui/react": "^1.4.1",
Expand Down
6 changes: 1 addition & 5 deletions frontend/src/utils/ampleforth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@ import { RewardSchedule, SignerOrProvider } from '../types'
import * as ls from './cache'
import { DAY_IN_MS } from '../constants'

const AMPLEFORTH_CORE_GRAPHQL_ENDPOINT = "https://web-api.ampleforth.org/graph-cache/ampleforth-core"
const getClient = (chainId) => {
const endpoint = (chainId === 1) ? AMPLEFORTH_CORE_GRAPHQL_ENDPOINT : queries.graphHostedURL(chainId);
return queries.initializeClient(endpoint)
}
const getClient = (chainId) => queries.initializeClient(queries.graphHostedURL(chainId))

const loadXCRebasesFromCache = async (controller: entities.XCController, chainId: number) =>
ls.computeAndCache<entities.XCRebaseData[]>(
Expand Down
8 changes: 4 additions & 4 deletions frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
resolved "https://registry.yarnpkg.com/@0no-co/graphql.web/-/graphql.web-1.0.7.tgz#c7a762c887b3482a79ffa68f63de5e96059a62e4"
integrity sha512-E3Qku4mTzdrlwVWGPxklDnME5ANrEGetvYw4i2GCRlppWXXE4QD66j7pwb8HelZwS6LnqEChhrSOGCXpbiu6MQ==

"@ampleforthorg/[email protected].32":
version "1.0.32"
resolved "https://registry.yarnpkg.com/@ampleforthorg/sdk/-/sdk-1.0.32.tgz#04df04c69a388b0e18531222c29baa59ed288963"
integrity sha512-q05O05sc8cd/pW+nuh7WsqCKT4rcw/ff+FI9JUtcl4q4R0VL2VGhIn8+RIUQMkRfeDI4huFduRL1RrdWkaEBRg==
"@ampleforthorg/[email protected].33":
version "1.0.33"
resolved "https://registry.yarnpkg.com/@ampleforthorg/sdk/-/sdk-1.0.33.tgz#736cd6efdb52ae407eb0cd0df742c60a3696b0b5"
integrity sha512-5yDqqZYiZo8AWUltX/zeHql0CCp2oOapGJeBFHnTBcKnSWWKbrRCnXlu7T/LGerRo1ETEYSXb+BYJwx448pOmw==
dependencies:
"@types/bignumber.js" "^5.0.0"
"@typescript-eslint/eslint-plugin" "^4.29.0"
Expand Down

0 comments on commit 5c8a243

Please sign in to comment.