Skip to content

Commit

Permalink
redo this
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Sep 18, 2024
1 parent bda45e7 commit 7d784f2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions frontend/pages/api/v1/all_locked_accounts.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { PythBalance } from '@pythnetwork/staking/app/pythBalance'
import { STAKING_ADDRESS } from '@pythnetwork/staking/app/constants'
import { getAllLockedCustodyAccounts } from '@pythnetwork/staking/app/api_utils'
import { PythBalance } from '@pythnetwork/staking'
import { STAKING_ADDRESS } from '@pythnetwork/staking'
import { getAllLockedCustodyAccounts } from '@pythnetwork/staking'
import { Connection, Keypair, PublicKey } from '@solana/web3.js'
import { Program, AnchorProvider } from '@coral-xyz/anchor'
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet'
Expand Down
6 changes: 3 additions & 3 deletions frontend/pages/api/v1/cmc/supply.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { PythBalance } from '@pythnetwork/staking/app/pythBalance'
import { STAKING_ADDRESS } from '@pythnetwork/staking/app/constants'
import { PythBalance } from '@pythnetwork/staking'
import { STAKING_ADDRESS } from '@pythnetwork/staking'
import { Connection, Keypair } from '@solana/web3.js'
import { Program, AnchorProvider, IdlTypes, BN } from '@coral-xyz/anchor'
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet'
Expand All @@ -13,7 +13,7 @@ import {
ONE_YEAR,
getConfig,
getCurrentlyLockedAmount,
} from '@pythnetwork/staking/app/api_utils'
} from '@pythnetwork/staking'

const RPC_URL = process.env.BACKEND_ENDPOINT!
const connection = new Connection(RPC_URL)
Expand Down
4 changes: 2 additions & 2 deletions frontend/pages/api/v1/locked_accounts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NextApiRequest, NextApiResponse } from 'next'
import { STAKING_ADDRESS } from '@pythnetwork/staking/app/constants'
import { STAKING_ADDRESS } from '@pythnetwork/staking'
import { Connection, Keypair, PublicKey } from '@solana/web3.js'
import { Program, AnchorProvider } from '@coral-xyz/anchor'
import NodeWallet from '@coral-xyz/anchor/dist/cjs/nodewallet'
Expand All @@ -10,7 +10,7 @@ import { TOKEN_PROGRAM_ID } from '@solana/spl-token'
import {
getStakeAccountDetails,
getStakeAccountsByOwner,
} from '@pythnetwork/staking/app/api_utils'
} from '@pythnetwork/staking'

const connection = new Connection(process.env.BACKEND_ENDPOINT!)
const provider = new AnchorProvider(
Expand Down

0 comments on commit 7d784f2

Please sign in to comment.