Skip to content

Commit

Permalink
Update Validators Page: Added Columns, Vouches Tab, and Stats Enhance…
Browse files Browse the repository at this point in the history
…ments (#58)
  • Loading branch information
soaresa authored Nov 8, 2024
1 parent 13f36c8 commit 4f922c5
Show file tree
Hide file tree
Showing 29 changed files with 1,502 additions and 340 deletions.
9 changes: 9 additions & 0 deletions api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,12 @@ NATS_SERVERS="127.0.0.1:4222"

DATA_API_HOST="https://data.0l.fyi"
DATABASE_URL="postgresql://olfyi:[email protected]:5432/olfyi?schema=public"

# Path to the json file containing validator handles
VALIDATOR_HANDLES_URL=https://raw.githubusercontent.com/user/repo/branch/path/to/validator-handle.json

# Path to the json file containing community wallets info
COMMUNITY_WALLETS_URL="https://raw.githubusercontent.com/soaresa/test_data/refs/heads/main/community-wallets.json"

# Path to the json file containing well known addresses info
KNOWN_ADDRESSES_URL="https://raw.githubusercontent.com/soaresa/test_data/refs/heads/main/known-addresses.json"
5 changes: 5 additions & 0 deletions api/nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@
"include": "**/*.sql",
"outDir": "dist/src/",
"watchAssets": true
},
{
"include": "assets/**/*",
"outDir": "dist/",
"watchAssets": true
}
]
}
Expand Down
166 changes: 61 additions & 105 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,13 @@
"d3-array": "^3.2.4",
"decimal.js": "^10.4.3",
"firebase-admin": "^12.1.1",
"fs": "^0.0.1-security",
"graphql": "^16.8.2",
"graphql-ws": "^5.16.0",
"lodash": "^4.17.21",
"maxmind": "^4.3.20",
"nats": "^2.26.0",
"path": "^0.12.7",
"qs": "^6.12.1",
"reflect-metadata": "^0.2.2",
"rxjs": "^7.8.1"
Expand Down
3 changes: 3 additions & 0 deletions api/src/config/config.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ export interface InfoConfig {
export interface OlConfig {
provider: string;
dataApiHost: string;
validatorHandlesUrl?: string | undefined;
communityWalletsUrl?: string | undefined;
knwonAddressesUrl?: string | undefined;
}

export interface S3Config {
Expand Down
3 changes: 3 additions & 0 deletions api/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default (): Config => {
ol: {
provider: 'https://rpc.0l.fyi',
dataApiHost: ENV.DATA_API_HOST!,
validatorHandlesUrl: ENV.VALIDATOR_HANDLES_URL || undefined,
communityWalletsUrl: ENV.COMMUNITY_WALLETS_URL || undefined,
knwonAddressesUrl: ENV.KNOWN_ADDRESSES_URL || undefined,
},

s3: {
Expand Down
Loading

0 comments on commit 4f922c5

Please sign in to comment.