Skip to content

Commit

Permalink
rename empty chain-storage-proposal to base-inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Sep 22, 2023
1 parent 06ba46d commit b764824
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 514 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,5 @@ agoric/_agstate/yarn-links/
.vscode/
frontend/src/service/conf/defaults.js
frontend/src/service/conf/defaults.js
agoric/contract/src/proposal/chain-storage-proposal.js-clean.js

agoric/Makefile.paths.local
15 changes: 10 additions & 5 deletions agoric/README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,54 @@
# KREAd deploy steps
To succesfully run the below steps making use of the makefile, it is important to have a local file `Makefile.paths.local` filled in with the required paths and addresses, an example can be found in `Makefile.paths`.

To succesfully run the below steps making use of the makefile, it is important to have a local file `Makefile.paths.local` filled in with the required paths and addresses, an example can be found in `Makefile.paths`.

Steps to run:
ensure you are in the agoric folder otherwise cd to agoric folder
ensure you are in the agoric folder otherwise cd to agoric folder

```sh
cd agoric
```

run agoric install

```sh
agoric install
```

run chain from:

```sh
make local-testnet
```

run client for chain:

```sh
make client-local-testnet
```

create kread-bundle and publish it to chain (this step requires the `client-local-testnet` otherwise it has no address to bundle and publish from):

```sh
make kread-bundle
```

provision the account that is in the core eval proposal ('agoric1d33wj6vgjfdaefs6qzda8np8af6qfdzc433dsu')

```sh
make provision-fee-collector
```


Copy the bundle id returned from the previous step into `chain-storage-proposal.js` (located it `agoric/contract/src/proposal`) it's on line 346, `b1-YOUR_NEW_STRING`

create and vote on proposal

```sh
make proposal
```

The proposal logs some board_id information to chain-logs which can be used to verify it ran correctly.

Vstorage should contain the following after startup:

- kread bundle in bundles
- kread instance in agoricNames/instances
- KREAdCHARACTER and KREAdITEM brands in agoricNames/brands
Expand Down
3 changes: 1 addition & 2 deletions agoric/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@
"eslintIgnore": [
"characters.js",
"items.js",
"chain-storage-proposal.js",
"chain-storage-proposal.js-clean.js"
"*-clean.js"
]
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
/**
* @file
*
* This is a script for use with swingset.CoreEval.
*
* It's a script, not a module, so we can't use `import`.
* But E, Far, etc. are in scope, provided by the
* `new Compartment(globals)` call in
* `bridgeCoreEval()` in packages/vats/src/core/chain-behaviors.js
*/
// @ts-check
// uncomment the following line to typecheck, for example, in vs-code.
// import { E } from '@endo/far';

export const baseCharacters = [
[
1,
Expand Down
Loading

0 comments on commit b764824

Please sign in to comment.