Skip to content

Commit

Permalink
style: markdown lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Mar 11, 2024
1 parent 8da7a99 commit 18ef04f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions main/guides/coreeval/local-testnet.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
For a local agoric blockchain:

1. Ensure that you have [started your local agoric blockchain](../getting-started/#starting-a-local-agoric-blockchain):
use `yarn docker:logs` to check that your chain is running; if not, use `yarn start:docker` to start it.
use `yarn docker:logs` to check that your chain is running; if not, use `yarn start:docker` to start it.

2. Build the transaction contents with `cd contract; yarn build:deployer`; _details below_.

Expand All @@ -19,15 +19,15 @@ _Mainnet deployment is out of scope of this document; see [Mainnet 2 Deployment

## Bundling Core Eval Scripts with `build:deployer` and `rollup.config.mjs`

Core eval scripts are evaluated, not loaded as modules; so any `import` or `export` declarations are syntax errors. In **dapp-agoric-basics**, we use [rollup](https://rollupjs.org/) to support developing
Core eval scripts are evaluated, not loaded as modules; so any `import` or `export` declarations are syntax errors. In **dapp-agoric-basics**, we use [rollup](https://rollupjs.org/) to support developing
a core-eval script and permit as a module:

- `import { E } from '@endo/far'`
A bundle strips this declaration during bundling
since the core-eval scope includes exports of `@endo/far`.
- `bundleID = ...` is replaced using updated/cached bundle hash
- `main` is appended as the script completion value
- the `permit` export is emitted to a `.json` file
- `import { E } from '@endo/far'`
A bundle strips this declaration during bundling
since the core-eval scope includes exports of `@endo/far`.
- `bundleID = ...` is replaced using updated/cached bundle hash
- `main` is appended as the script completion value
- the `permit` export is emitted to a `.json` file

See [rollup.config.mjs](https://github.com/Agoric/dapp-agoric-basics/blob/dc-vote-fee/contract/rollup.config.mjs) for details on using the
`moduleToScript`, `configureBundleID`, and `emitPermit` rollup plug-ins.
Expand Down Expand Up @@ -58,9 +58,9 @@ To submit transactions to get the contract and core eval script and permit on ch

Installing a contract costs 0.02IST per kilobyte.

On a local chain, use `yarn docker:make mint100` to get 100 IST, which should be enough. _`mint100` works by sending some ATOM from a "whale" account and using the ATOM to open a vault._
On a local chain, use `yarn docker:make mint100` to get 100 IST, which should be enough. _`mint100` works by sending some ATOM from a "whale" account and using the ATOM to open a vault._

On devnet, use the [devnet faucet](https://devnet.faucet.agoric.net/) to get 25IST. You might need to use 2 or 3 times.
On devnet, use the [devnet faucet](https://devnet.faucet.agoric.net/) to get 25IST. You might need to use 2 or 3 times.

### Installing, submitting with **cosgov** Web UI

Expand Down

0 comments on commit 18ef04f

Please sign in to comment.