Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: optimism -> op-mainnet in helios-ts/index.html #442

Merged
merged 1 commit into from
Nov 22, 2024
Merged
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
18 changes: 9 additions & 9 deletions helios-ts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,10 @@ <h2>Ethereum</h2>
<pre class="block-info" id="ethereum-syncing">Syncing...</pre>
</div>
</div>
<div class="panel" id="optimism-panel">
<div class="panel" id="op-mainnet-panel">
<h2>OP Mainnet</h2>
<div class="blocks" id="optimism-blocks">
<pre class="block-info syncing" id="optimism-syncing">Syncing...</pre>
<div class="blocks" id="op-mainnet-blocks">
<pre class="block-info syncing" id="op-mainnet-syncing">Syncing...</pre>
</div>
</div>
<div class="panel" id="base-panel">
Expand All @@ -111,10 +111,10 @@ <h2>Base</h2>

<script>
helios.init().then(() => {
let alcehmyKey = "<ALCHEMY_KEY>";
let alchemyKey = "<ALCHEMY_KEY>";

let configEthereum = {
executionRpc: "https://eth-mainnet.g.alchemy.com/v2/" + alcehmyKey,
executionRpc: "https://eth-mainnet.g.alchemy.com/v2/" + alchemyKey,
checkpoint: "0x0c78688807a28d205459f0433cc7962187cd2f49a96c31f298c089d8777c2a0e",
dbType: "localstorage"
};
Expand All @@ -124,18 +124,18 @@ <h2>Base</h2>
window.heliosEthereum = new ethers.providers.Web3Provider(ethereumProvider);
});

let configOptimsim = {
executionRpc: "https://opt-mainnet.g.alchemy.com/v2/" + alcehmyKey,
let configOpMainnet = {
executionRpc: "https://opt-mainnet.g.alchemy.com/v2/" + alchemyKey,
network: "op-mainnet",
};

let opMainnetProvider = new helios.HeliosProvider(configOptimsim, "opstack");
let opMainnetProvider = new helios.HeliosProvider(configOpMainnet, "opstack");
opMainnetProvider .sync().then(() => {
window.heliosOpMainnet = new ethers.providers.Web3Provider(opMainnetProvider);
});

let configBase = {
executionRpc: "https://base-mainnet.g.alchemy.com/v2/" + alcehmyKey,
executionRpc: "https://base-mainnet.g.alchemy.com/v2/" + alchemyKey,
network: "base",
};

Expand Down
Loading