Published
Edited
May 9, 2021
Insert cell
Insert cell
html`${taylor.eval( state.source, taylor.Env)}`
Insert cell
taylor._.read("(+ 4 5)")
Insert cell
//taylor._.eval(taylor._.read(state.source),taylor._.replEnv)
Insert cell
state.source
Insert cell
Insert cell
viewof tval2 = Text({label: "Contract Address", placeholder: "Enter the address", value: ""})
Insert cell
viewof tval3 = Textarea({placeholder: "ABI JSON for this contract.",value:"",rows: 3})
Insert cell
viewof tval4 = Textarea({placeholder: "JSON for input this mark.",value:"",rows: 3})
Insert cell
encodeURIComponent(JSON.stringify({placeholder: "Write mark code here.",value:"",rows: 3}).replace(/s/g, '+'))
Insert cell
{
state.source = '(+ 7 9)'
const editor = new Editor({
target: document.getElementById("md"), // DOM to render
props: {
value: state.source,
//plugins,
},
});

editor.$on('change', (e) => {
console.log(e.detail.value);
state.source = e.detail.value;
editor.$set({ value: e.detail.value });
});
}
Insert cell
{
//let provider;
window.ethereum.enable().then(state.provider = new ethers.providers.Web3Provider(window.ethereum));
const signer = state.provider.getSigner();
//console.log(provider)
}
Insert cell
state = ({provider:null, source:""})
Insert cell
ethers.providers
Insert cell
Insert cell
Insert cell
import {Textarea, Button, Text} from "@observablehq/inputs"
Insert cell
bytemd = require('bytemd@1.9.1/dist/index.js')
Insert cell
html`<link rel="stylesheet" href="https://unpkg.com/bytemd/dist/index.min.css" />
<link rel="stylesheet" href="https://unpkg.com/github-markdown-css" />`
Insert cell
Editor = bytemd.Editor
Insert cell
Viewer = bytemd.Viewer
Insert cell
taylor = require('@ark-us/taylor')
Insert cell
//ipfs = require('ipfs@0.54.5/dist/index.min.js')
Insert cell
IPFS = {
await import('https://unpkg.com/ipfs@0.53.2/dist/index.min.js')
return window.Ipfs;
}
Insert cell
ipfs = await IPFS.create()
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more