2023-02-09 19:32:17 +00:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en-US">
|
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>hello-wasm example</title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2023-02-10 17:47:57 +00:00
|
|
|
<script src="./dist/lib.js"></script>
|
2023-02-09 19:32:17 +00:00
|
|
|
<script src="https://cdn.ethers.io/lib/ethers-5.2.umd.min.js"></script>
|
|
|
|
<script>
|
2023-02-10 17:47:57 +00:00
|
|
|
const config = {
|
2023-03-17 03:18:00 +00:00
|
|
|
executionRpc:"http://localhost:9001/proxy",
|
2023-02-10 17:47:57 +00:00
|
|
|
consensusRpc: "http://localhost:9002/proxy",
|
|
|
|
checkpoint: "0x372342db81e3a42527e08dc19e33cd4f91f440f45b9ddb0a9865d407eceb08e4",
|
|
|
|
};
|
2023-02-09 19:32:17 +00:00
|
|
|
|
2023-02-10 17:47:57 +00:00
|
|
|
helios.createHeliosProvider(config).then(heliosProvider => {
|
2023-02-09 19:32:17 +00:00
|
|
|
heliosProvider.sync().then(() => {
|
|
|
|
window.provider = new ethers.providers.Web3Provider(heliosProvider);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|