Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsoffer committed Feb 14, 2022
0 parents commit 1842f7e
Show file tree
Hide file tree
Showing 225 changed files with 41,847 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"presets": ["next/babel"],
"plugins": ["inline-react-svg"]
}
10 changes: 10 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CHANGEFEED_ACCESS_TOKEN=
GITHUB_ACCESS_TOKEN=
LIVEPEER_COM_API_ADMIN_TOKEN=
API_TOKEN=

NEXT_PUBLIC_ETHERSCAN_API_KEY=
NEXT_PUBLIC_GA_TRACKING_ID=
NEXT_PUBLIC_NETWORK=MAINNET
NEXT_PUBLIC_INFURA_KEY=
NEXT_PUBLIC_THREEBOX_ENABLED=
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
44 changes: 44 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# vercel
.vercel

# https://github.com/hashicorp/next-mdx-enhanced#installation
.mdx-data

/dist

.parcel-cache

# local env files
.env
.env.build
.env.rinkeby
.env.local
.env.development.local
.env.test.local
.env.production.local
16 changes: 16 additions & 0 deletions @types/custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
declare module "*.svg" {
const content: any;
export default content;
}
declare module "*.png";
declare module "*.jpg";
declare module "*.jpeg";
declare module "*.gif";

declare module "graphql-type-json";
declare module "front-matter";

declare module "*.gql" {
const content: any;
export default content;
}
108 changes: 108 additions & 0 deletions @types/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
export interface Account {
id: string;
tokenBalance: string;
ethBalance: string;
allowance: string;
}

export interface Transcoder {
id: string;
active?: boolean;
status?: string;
lastRewardRound?: Round;
rewardCut?: string;
feeShare?: string;
activationRound?: string;
deactivationRound?: string;
totalStake?: string;
pools?: [Pool];
delegators?: [Delegator];
delegator?: Delegator;
}

export interface Delegator {
id: string;
delegate?: Transcoder;
startRound?: number;
lastClaimRound?: Round;
bondedAmount?: string;
pendingStake?: string;
status?: string;
fees?: string;
delegatedAmount?: string;
allowance?: string;
unbondingLocks?: [UnbondingLock];
}

export interface ThreeBoxSpace {
id: string;
did: string;
name: string;
website: string;
description: string;
image: string;
addressLinks: Array;
defaultProfile: string;
}

export interface Round {
id: string;
initialized?: boolean;
length?: string;
timestamp?: string;
lastInitializedRound?: Round;
startBlock?: string;
pools?: [Pool];
mintableTokens?: string;
}

export interface Pool {
id: string;
round?: Round;
transcoder?: Transcoder;
fees?: string;
rewardTokens?: string;
totalStake?: string;
rewardCut?: string;
feeShare?: string;
}

export interface UnbondingLock {
id: string;
unbondingLockId?: number;
withdrawRound?: number;
delegator?: Delegator;
delegate?: Transcoder;
amount?: string;
withdrawRound?: number;
}

export interface Protocol {
totalSupply?: string;
totalBondedToken?: string;
paused?: boolean;
targetBondingRate?: string;
transcoderPoolMaxSize?: string;
maxEarningsClaimsRounds?: string;
}

export interface Transaction {
id: string;
hash?: string;
blockNumber?: string;
timestamp?: string;
to?: string;
from?: string;
gasUsed?: string;
gasPrice?: string;
}

type TableCellProps = {
children?: ReactNode;
href?: string;
target?: string;
cell?: Cell;
as?: ElementType<any>;
onClick?: MouseEventHandler<HTMLButtonElement>;
css?: SxStyleProp;
};
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Livepeer Explorer

## Getting started

1. Rename .env.example to .env
2. Install it and run:

```bash
yarn
yarn dev
```

## Developing on Arbitrum Rinkeby

Set `NEXT_PUBLIC_NETWORK` to `ARBITRUM_RINKEBY` inside `.env`
Loading

1 comment on commit 1842f7e

@vercel
Copy link

@vercel vercel bot commented on 1842f7e Feb 14, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

explorer-arbitrum-one – ./

explorer-blush.vercel.app
explorer-livepeer.vercel.app
beta.explorer.livepeer.org
explorer-git-main-livepeer.vercel.app

Please sign in to comment.