Skip to content

Commit 47185ac

Browse files
committed
chore: reverting changes as we have a separate PR for these:
#853
1 parent 39e6788 commit 47185ac

File tree

5 files changed

+0
-63
lines changed

5 files changed

+0
-63
lines changed

packages/lit-client/src/lib/LitClient/createLitClient.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,9 +715,6 @@ export const _createNagaLitClient = async (
715715
handshakeResult: _stateManager.getCallbackResult(),
716716
getMaxPricesForNodeProduct: networkModule.getMaxPricesForNodeProduct,
717717
getUserMaxPrice: networkModule.getUserMaxPrice,
718-
getFreshPriceFeedInfo: async () => {
719-
return await networkModule.getFreshPriceFeedInfo();
720-
},
721718
signSessionKey: _signSessionKey,
722719
signCustomSessionKey: _signCustomSessionKey,
723720
executeJs: _executeJs,

packages/networks/src/networks/vNaga/envs/naga-dev/naga-dev.module.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {
8080
} from './chain-manager/createChainManager';
8181
import { getMaxPricesForNodeProduct } from './pricing-manager/getMaxPricesForNodeProduct';
8282
import { getUserMaxPrice } from './pricing-manager/getUserMaxPrice';
83-
import { getPriceFeedInfo } from '../../LitChainClient/apis/highLevelApis/priceFeed/priceFeedApi';
8483
import { createReadOnlyContractsManager } from '../../LitChainClient/contract-manager/createContractsManager';
8584

8685
const MODULE_NAME = 'naga-dev';
@@ -324,20 +323,6 @@ const networkModuleObject = {
324323
networkModule: params.networkModule as LitNetworkModuleBase,
325324
});
326325
},
327-
328-
// Expose a fresh price feed fetcher (chain read; independent of state refresh)
329-
getFreshPriceFeedInfo: async () => {
330-
const { walletClient } = createReadOnlyContractsManager(networkConfig);
331-
const realmId = Number(networkConfig.networkSpecificConfigs?.realmId ?? 1);
332-
return await getPriceFeedInfo(
333-
{
334-
realmId,
335-
networkCtx: networkConfig as any,
336-
},
337-
walletClient
338-
);
339-
},
340-
341326
getMaxPricesForNodeProduct: getMaxPricesForNodeProduct,
342327
getUserMaxPrice: getUserMaxPrice,
343328
getVerifyReleaseId: () => verifyReleaseId,

packages/networks/src/networks/vNaga/envs/naga-local/naga-local.module.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {
8080
} from './chain-manager/createChainManager';
8181
import { getMaxPricesForNodeProduct } from './pricing-manager/getMaxPricesForNodeProduct';
8282
import { getUserMaxPrice } from './pricing-manager/getUserMaxPrice';
83-
import { getPriceFeedInfo } from '../../LitChainClient/apis/highLevelApis/priceFeed/priceFeedApi';
8483
import { createReadOnlyContractsManager } from '../../LitChainClient/contract-manager/createContractsManager';
8584

8685
const MODULE_NAME = 'naga-local';
@@ -324,20 +323,6 @@ const networkModuleObject = {
324323
networkModule: params.networkModule as LitNetworkModuleBase,
325324
});
326325
},
327-
328-
// Expose a fresh price feed fetcher (chain read; independent of state refresh)
329-
getFreshPriceFeedInfo: async () => {
330-
const { walletClient } = createReadOnlyContractsManager(networkConfig);
331-
const realmId = Number(networkConfig.networkSpecificConfigs?.realmId ?? 1);
332-
return await getPriceFeedInfo(
333-
{
334-
realmId,
335-
networkCtx: networkConfig as any,
336-
},
337-
walletClient
338-
);
339-
},
340-
341326
getMaxPricesForNodeProduct: getMaxPricesForNodeProduct,
342327
getUserMaxPrice: getUserMaxPrice,
343328
getVerifyReleaseId: () => verifyReleaseId,

packages/networks/src/networks/vNaga/envs/naga-staging/naga-staging.module.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {
8080
} from './chain-manager/createChainManager';
8181
import { getMaxPricesForNodeProduct } from './pricing-manager/getMaxPricesForNodeProduct';
8282
import { getUserMaxPrice } from './pricing-manager/getUserMaxPrice';
83-
import { getPriceFeedInfo } from '../../LitChainClient/apis/highLevelApis/priceFeed/priceFeedApi';
8483
import { createReadOnlyContractsManager } from '../../LitChainClient/contract-manager/createContractsManager';
8584

8685
const MODULE_NAME = 'naga-staging';
@@ -324,20 +323,6 @@ const networkModuleObject = {
324323
networkModule: params.networkModule as LitNetworkModuleBase,
325324
});
326325
},
327-
328-
// Expose a fresh price feed fetcher (chain read; independent of state refresh)
329-
getFreshPriceFeedInfo: async () => {
330-
const { walletClient } = createReadOnlyContractsManager(networkConfig);
331-
const realmId = Number(networkConfig.networkSpecificConfigs?.realmId ?? 1);
332-
return await getPriceFeedInfo(
333-
{
334-
realmId,
335-
networkCtx: networkConfig as any,
336-
},
337-
walletClient
338-
);
339-
},
340-
341326
getMaxPricesForNodeProduct: getMaxPricesForNodeProduct,
342327
getUserMaxPrice: getUserMaxPrice,
343328
getVerifyReleaseId: () => verifyReleaseId,

packages/networks/src/networks/vNaga/envs/naga-test/naga-test.module.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ import {
8080
} from './chain-manager/createChainManager';
8181
import { getMaxPricesForNodeProduct } from './pricing-manager/getMaxPricesForNodeProduct';
8282
import { getUserMaxPrice } from './pricing-manager/getUserMaxPrice';
83-
import { getPriceFeedInfo } from '../../LitChainClient/apis/highLevelApis/priceFeed/priceFeedApi';
8483
import { createReadOnlyContractsManager } from '../../LitChainClient/contract-manager/createContractsManager';
8584

8685
const MODULE_NAME = 'naga-test';
@@ -324,20 +323,6 @@ const networkModuleObject = {
324323
networkModule: params.networkModule as LitNetworkModuleBase,
325324
});
326325
},
327-
328-
// Expose a fresh price feed fetcher (chain read; independent of state refresh)
329-
getFreshPriceFeedInfo: async () => {
330-
const { walletClient } = createReadOnlyContractsManager(networkConfig);
331-
const realmId = Number(networkConfig.networkSpecificConfigs?.realmId ?? 1);
332-
return await getPriceFeedInfo(
333-
{
334-
realmId,
335-
networkCtx: networkConfig as any,
336-
},
337-
walletClient
338-
);
339-
},
340-
341326
getMaxPricesForNodeProduct: getMaxPricesForNodeProduct,
342327
getUserMaxPrice: getUserMaxPrice,
343328
getVerifyReleaseId: () => verifyReleaseId,

0 commit comments

Comments
 (0)