Skip to content

Commit

Permalink
feat: remove Proofs Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
folex committed Nov 20, 2024
1 parent 18abd72 commit 45472a1
Show file tree
Hide file tree
Showing 16 changed files with 45 additions and 641 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
diff --git a/dist/client/config.d.ts b/dist/client/config.d.ts
index 2425167caa8b0f75217fe90db01527b1baad7b68..c74ebe6e930dd82d478b726e34e42a0baa1b128f 100644
--- a/dist/client/config.d.ts
+++ b/dist/client/config.d.ts
@@ -24,8 +24,8 @@ export declare const BLOCK_SCOUT_URLS: {
};
export declare const SUBGRAPH_VERSION = "0.22";
export declare const SUBGRAPH_URLS: {
- readonly mainnet: "https://subgraph.mainnet.fluence.dev/subgraphs/v0.22";
- readonly testnet: "https://subgraph.testnet.fluence.dev/subgraphs/v0.22";
+ readonly mainnet: "https://subgraph.mainnet.fluence.dev/subgraphs/name/fluence-deal-contracts-2bd115d4";
+ readonly testnet: "https://subgraph.testnet.fluence.dev/subgraphs/name/fluence-deal-contracts-2bd115d4";
readonly stage: "https://subgraph.stage.fluence.dev/subgraphs/v0.22";
readonly local: "http://localhost:8000/subgraphs/name/fluence-deal-contracts";
};
diff --git a/dist/client/config.js b/dist/client/config.js
index 81b322ce3436ea2d60935c67ac6ccb0c52657238..8ad032ce17cea644252e2bf84515fb2bc642f127 100644
--- a/dist/client/config.js
+++ b/dist/client/config.js
@@ -18,8 +18,8 @@ export const BLOCK_SCOUT_URLS = {
};
export const SUBGRAPH_VERSION = "0.22";
export const SUBGRAPH_URLS = {
- mainnet: `https://subgraph.mainnet.fluence.dev/subgraphs/v${SUBGRAPH_VERSION}`,
- testnet: `https://subgraph.testnet.fluence.dev/subgraphs/v${SUBGRAPH_VERSION}`,
+ mainnet: `https://subgraph.mainnet.fluence.dev/subgraphs/name/fluence-deal-contracts-2bd115d4`,
+ testnet: `https://subgraph.testnet.fluence.dev/subgraphs/name/fluence-deal-contracts-2bd115d4`,
stage: `https://subgraph.stage.fluence.dev/subgraphs/v${SUBGRAPH_VERSION}`,
local: "http://localhost:8000/subgraphs/name/fluence-deal-contracts",
};
2 changes: 2 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

npmRegistryServer: "https://npm.fluence.dev"

yarnPath: .yarn/releases/yarn-4.4.0.cjs
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@fluencelabs/deal-ts-clients": "patch:@fluencelabs/deal-ts-clients@npm%3A0.22.3#~/.yarn/patches/@fluencelabs-deal-ts-clients-npm-0.22.3-1617de2acc.patch",
"@fluencelabs/deal-ts-clients": "patch:@fluencelabs/deal-ts-clients@npm%3A0.23.1-release-please-0c89317-6961-1.0#~/.yarn/patches/@fluencelabs-deal-ts-clients-npm-0.23.1-release-please-0c89317-6961-1.0-8374c6c564.patch",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-aspect-ratio": "^1.0.3",
"@radix-ui/react-checkbox": "^1.0.4",
Expand Down
2 changes: 0 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { Deals } from './pages/deals'
import { OfferInfo } from './pages/offer'
import { Offers } from './pages/offers'
import { PeerInfo } from './pages/peer'
import { Proofs } from './pages/proofs'
import {
ProviderDeals,
ProviderInfo,
Expand Down Expand Up @@ -42,7 +41,6 @@ export const App: React.FC = () => {
<Route path={ROUTES.dealInfo} component={DealInfo} />
<Route path={ROUTES.capacities} component={Capacities} />
<Route path={ROUTES.capacityInfo} component={CapacityInfo} />
<Route path={ROUTES.proofs} component={Proofs} />
<Route path={ROUTES.peerInfo} component={PeerInfo} />
<Route path={ROUTES.computeUnitInfo} component={ComputeUnitInfo} />
<Route path={ROUTES.config} component={ConfigJson} />
Expand Down
5 changes: 0 additions & 5 deletions src/components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ const MENU: {
link: ROUTES.capacities,
routes: [ROUTES.capacities, ROUTES.capacityInfo],
},
{
title: 'Proofs',
link: ROUTES.proofs,
routes: [ROUTES.proofs, ROUTES.peerInfo],
},
]

export const Menu: React.FC = () => {
Expand Down
38 changes: 0 additions & 38 deletions src/components/ProofStatus.tsx

This file was deleted.

1 change: 0 additions & 1 deletion src/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export const ROUTES = {
dealInfo: '/deal/:id',
capacities: '/capacities',
capacityInfo: '/capacity/:id',
proofs: '/proofs',
peerInfo: '/peer/:id',
computeUnitInfo: '/compute-unit/:id',
config: '/config',
Expand Down
3 changes: 0 additions & 3 deletions src/pages/capacity/CapacityInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import { ROUTES } from '../../constants'
import { BLOCKSCOUT_URL } from '../../constants/config'

import { ListComputeUnitsTable } from './ListComputeUnitsTable'
import { ProofsTable } from './ProofsTable'

const Record: React.FC<{
title: ReactNode
Expand Down Expand Up @@ -327,8 +326,6 @@ export const CapacityInfo: React.FC = () => {
</ParametersRow>
<Space height="80px" />
<ListComputeUnitsTable capacityCommitmentId={id} />
<Space height="30px" />
<ProofsTable capacityCommitmentId={id} />
</Right>
</Content>
</>
Expand Down
189 changes: 0 additions & 189 deletions src/pages/capacity/ProofsTable.tsx

This file was deleted.

8 changes: 2 additions & 6 deletions src/pages/compute-unit/ComputeUnitInfo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ import { useApiQuery } from '../../hooks'

import { ROUTES } from '../../constants'

import { ComputeUnitProofsTable } from './ComputeUnitProofsTable'

export const ComputeUnitInfo: React.FC = () => {
const params = useParams()

Expand All @@ -34,7 +32,7 @@ export const ComputeUnitInfo: React.FC = () => {
return (
<NotFound
message="Not found compute unit"
link={ROUTES.providers}
link={ROUTES.capacities}
linkText="Go to providers page"
/>
)
Expand All @@ -46,7 +44,7 @@ export const ComputeUnitInfo: React.FC = () => {
items={[
{
label: 'Compute units',
path: '/proofs',
path: '/compute-unit',
},
{
label: id,
Expand Down Expand Up @@ -115,8 +113,6 @@ export const ComputeUnitInfo: React.FC = () => {
<Text size={12}>{computeUnit.peerId}</Text>
</Info>
</InfoRow>
<Space height="60px" />
<ComputeUnitProofsTable computeUnitId={id} />
</Right>
</Content>
</>
Expand Down
Loading

0 comments on commit 45472a1

Please sign in to comment.