Skip to content

Instantly share code, notes, and snippets.

@jeluard
jeluard / README.md
Created February 13, 2024 16:42
Towards better alternate runtime environment support

Towards better alternate runtime environment support (e.g. browser, Bun, React Native, ...)

Focus first on light-client / prover and their dependencies.

NodeJS dependencies

A number of node modules are used in both modules or their dependencies. This forces non node consumers to shim/polyfill those methods, which is not ideal. Some of the dependencies ship with polyfill, adding to the confusion. Unless specified, it should be assumed that lodestar libs do not depend on env specific modules.

@jeluard
jeluard / README.md
Last active January 23, 2024 10:53
Beacon-APIs Test Cases

Introduce a method to embed Test Cases in the specification

It is desirable to have a way to define valid Test Cases in the specification.

This would allow to:

  • fully clarify the specification and detail expected outcome
  • improve implementations compatibility
  • allow for automated tests of implementations
@jeluard
jeluard / index.html
Last active March 1, 2024 10:46
[object Object]
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title></title>
<script type="module">
import Web3 from "https://esm.sh/web3@4.4.0";
import {createVerifiedExecutionProvider, LCTransport} from "https://esm.sh/@lodestar/prover@1.14.0";
const {provider, proofProvider} = createVerifiedExecutionProvider(
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title></title>
<script type="module">
import {ApiError, getClient} from "https://esm.sh/@lodestar/api@1.14.0";
import {createChainForkConfig} from "https://esm.sh/@lodestar/config@1.14.0";
import {networksChainConfig} from "https://esm.sh/@lodestar/config@1.14.0/networks";
import {
export function hello() {
return "world";
}
@jeluard
jeluard / parcel.log
Created December 1, 2022 08:53
Parcel tree-shaking
yarn run v1.22.19
$ rm -rf .parcel-cache dist node_modules yarn.lock
✨ Done in 2.52s.
yarn install v1.22.19
info No lockfile found.
[1/4] 🔍 Resolving packages...
warning parcel > @parcel/config-default > @parcel/optimizer-htmlnano > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
warning " > react-iconly@2.2.5" has incorrect peer dependency "react@^16.8.6 || ^17".
@jeluard
jeluard / index.html
Last active November 11, 2022 20:24
<!DOCTYPE html>
<title>Estaminet</title>
<script type="module" src="https://esm.sh/estaminet?bundle"></script>
<es-uniques-item-media provider="statemine" collection="11" item="1"></es-uniques-item-media>
@jeluard
jeluard / playground.marlowe
Created December 1, 2020 11:29
Test Marlowe
When [
(Case
(Deposit
(Role "alice")
(Role "alice")
(Token "" "")
(Constant 450))
(When [
(Case
(Choice

In general very few concepts are clearly modeled in the codebase. UI and logic blocks are mostly intertweened and the seperation is not clear.

Logic

Wallet

Collectibles Request Send

WASM on status


What

Have some WASM code dynamically loaded and running in status