-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1842f7e
Showing
225 changed files
with
41,847 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["next/babel"], | ||
"plugins": ["inline-react-svg"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
Oops, something went wrong.
1842f7e
There was a problem hiding this comment.
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