Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export default (): Config => {
},

ol: {
provider: 'https://rpc.0l.fyi',
provider: ENV.RPC_PROVIDER_URL!,
dataApiHost: ENV.DATA_API_HOST!,
validatorHandlesUrl: ENV.VALIDATOR_HANDLES_URL || undefined,
communityWalletsUrl: ENV.COMMUNITY_WALLETS_URL || undefined,
Expand Down
4 changes: 2 additions & 2 deletions web-app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
<meta property="og:title" content="0L Explorer" />
<meta property="og:description" content="Open Libra chain explorer" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://0l.fyi" />
<meta property="og:image" content="https://0l.fyi/logo.svg" />
<meta property="og:url" content="https://scan.openlibra.world" />
<meta property="og:image" content="https://scan.openlibra.world/logo.svg" />
<meta property="og:site_name" content="0L Explorer" />
</head>
<body class="h-full">
Expand Down
9 changes: 5 additions & 4 deletions web-app/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ const localhost = {
dataApiHost: DATA_API_HOST,
};

// TODO: make these URLs configurable
const configMap = new Map<string, Config>([
[
'0l.fyi',
'scan.openlibra.world',
{
apiHost: 'https://api.0l.fyi',
dataApiHost: 'https://data.0l.fyi',
apiHost: 'https://api.scan.openlibra.world',
dataApiHost: 'https://data.scan.openlibra.world',
},
],
[
Expand All @@ -36,4 +37,4 @@ const configMap = new Map<string, Config>([
],
]);

export const config = configMap.get(window.location.hostname) ?? configMap.get('0l.fyi')!;
export const config = configMap.get(window.location.hostname) ?? configMap.get('scan.openlibra.world')!;
2 changes: 1 addition & 1 deletion web-app/src/modules/aptos/Provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import aptosContext from './context';

const AptosProvider: FC<PropsWithChildren> = ({ children }) => {
const client = useMemo(() => {
return new AptosClient('https://rpc.0l.fyi');
return new AptosClient('https://rpc.scan.openlibra.world');
}, []);

return <aptosContext.Provider value={client}>{children}</aptosContext.Provider>;
Expand Down
Loading