From 7d784f27a47d91137ce9dd98eb20d1ca1ed668f7 Mon Sep 17 00:00:00 2001 From: Guillermo Bescos Date: Wed, 18 Sep 2024 17:06:21 +0100 Subject: [PATCH] redo this --- frontend/pages/api/v1/all_locked_accounts.ts | 6 +++--- frontend/pages/api/v1/cmc/supply.ts | 6 +++--- frontend/pages/api/v1/locked_accounts.ts | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/frontend/pages/api/v1/all_locked_accounts.ts b/frontend/pages/api/v1/all_locked_accounts.ts index 4701cea86..f96d3218e 100644 --- a/frontend/pages/api/v1/all_locked_accounts.ts +++ b/frontend/pages/api/v1/all_locked_accounts.ts @@ -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' diff --git a/frontend/pages/api/v1/cmc/supply.ts b/frontend/pages/api/v1/cmc/supply.ts index 0aed0663e..982a39cbc 100644 --- a/frontend/pages/api/v1/cmc/supply.ts +++ b/frontend/pages/api/v1/cmc/supply.ts @@ -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' @@ -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) diff --git a/frontend/pages/api/v1/locked_accounts.ts b/frontend/pages/api/v1/locked_accounts.ts index f114a8921..dfac8e695 100644 --- a/frontend/pages/api/v1/locked_accounts.ts +++ b/frontend/pages/api/v1/locked_accounts.ts @@ -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' @@ -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(