Skip to content

Instantly share code, notes, and snippets.

View dckc's full-sized avatar

Dan Connolly dckc

View GitHub Profile
@dckc
dckc / 0-bundle-explorer.md
Last active October 13, 2023 23:05
Bundle Explorer for Agoric

serve up the .html and .js in a web server (using vs-code "go live" or python httpserver.py or whatever).

Paste a devnet tx id, hit explore.

screenshot of bundle explorer showing modules and their sizes

@dckc
dckc / mainnet1B-bundle-ids.md
Created August 23, 2023 15:03
Mainnet 1B bundle hashes

Current Bundle Hashes:

b0-5c790a966210b78de758fb442af542714ed96da09db76e0b31d6a237e555fd62
b0-e0d2dafc7e981947b42118e8c950837109683bae56f7b4f5bffa1b67e5c1e768
b1-039c67a6e86acfc64c3d8bce9a8a824d5674eda18680f8ecf071c59724798945b086c4bac2a6065bed7f79ca6ccc23e8f4a464dfe18f2e8eaa9719327107f15b
b1-0b2177975e88c7221b2fe635fdc75f518916ee42d959e9772dc77ef9775995f36cef50578a070708606e2c2431e66ee51d01147b10821aa5f1983e564697cccd
b1-11a6bb64dd4c81d879c7016e23a5e3d4d218f24b6ae2e196e235a2ca3b4838e069448d242027cbcda70ffef13ef42e8593edda383b5693f25a9a85430ca96fd7
b1-1bedaaafbc7ecb292a4ae481bcee4cce924a21309945e3c95ffcfe1897eb77fa27f132991da666e47cdae9024f4d3d288cce6d9c839a43ad2d8d97510b375203
b1-2371db1e41d6a45c0875abb782ff5fda33a65197a4ac6a859a8989419b325c00e6bf1f692fbcb8ddfeaeb059d44cfe070f522c43ba79744737a316a35ad6100a
/* eslint-disable no-await-in-loop */
// @ts-check
import { E } from '@endo/eventual-send';
import { AmountMath } from '@agoric/ertp';
const createVault = async (
vfPubP,
collaterals,
deposit,
debt,
Welcome to Agoric!
command[0]
1+1
history[0]
2
command[1]
home.LOADING
history[1]
["agoric","wallet"]
command[2]
digraph G {
subgraph cluster_client {
label = "client machine"
loadGen -> ag_solo
loadGen [ label="loadGen\n(node.js)"]
}
ag_solo -> RPC
@dckc
dckc / docker-compose.yml
Last active July 18, 2021 06:17
genode goa in docker
version: "3"
# depends on /usr/local/genode/tool/19.05
# https://genode.org/download/tool-chain
# usage:
# docker-compose run cpp-ide bash
# ref:
# https://genodians.org/nfeske/2019-11-25-goa
@dckc
dckc / xs-all-vats.md
Last active April 23, 2021 01:56
XS all the Vats!
Every 1.0s: pstree --arguments --show-pids --hide-threads 7822                                   jambox: Thu Apr 22 20:53:57 2021

bash,7822
  `-node,25408 /home/connolly/projects/agoric/agoric-sdk/packages/agoric-cli/bin/agoric --sdk start local-chain
      `-node,25439 /home/connolly/projects/agoric/agoric-sdk/packages/cosmic-swingset/bin/../lib/chain-entrypoint.js start...
          |-xsnap,25488 v1:board -l 10000000
          |-xsnap,25489 v11:bootstrap -l 10000000
          |-xsnap,25490 v2:host -l 10000000
[
{
"ExprPar": [
[
"got purse"
],
[
"got issuer"
],
[
$ npx ava
tokenized video
Rejected promise returned by test. Reason:
Error {
message: '"brand" not found: (an object)',
}

run python3 go.py with xsnap in $PATH

Observe that the 70th iteration is 10x slower than the 1st: ~0.5sec vs ~0.05sec.