0.2.8-u14.0 • Published 2 months ago

@agoric/same-structure v0.2.8-u14.0

Weekly downloads
1,814
License
Apache-2.0
Repository
github
Last release
2 months ago

Agoric Platform SDK

This repository contains most of the packages that make up the Agoric platform. If you want to build on top of this platform, you don't need this repository: instead you should follow our instructions for getting started with the Agoric SDK.

But if you are improving the platform itself, this is the repository to use.

Prerequisites

  • Git
  • Node.js (version 11 or higher)
  • Yarn (npm install -g yarn)

You don't need Golang if you just want to test contracts and run the "scenario3" simulator. Golang (1.13 or higher) is needed only if you want to build/debug Cosmos SDK support. (The 1.12 release will work, but it will modify packages/cosmic-swingset/go.mod upon each build (by adding a dependency upon appengine). The 1.13 release will leave the go.mod file correctly unmodified.

Any version of Yarn will do: the .yarnrc file should ensure that all commands use the specific checked-in version of Yarn (stored in .yarn/releases/), which we can update later with PRs in conjunction with any necessary compatibility fixes to our package.json files.

Build

From a new checkout of this repository, run:

  • yarn install
  • yarn build

When the yarn install is done, the top-level node_modules/ will contain all the shared dependencies, and each subproject's node_modules/ should contain only the dependencies that are unique to that subproject (e.g. when the version installed at the top level does not meet the subproject's constraints). Our goal is to remove all the unique-to-a-subproject deps.

When one subproject depends upon another, node_modules/ will contain a symlink to the subproject (e.g. ERTP depends upon marshal, so node_modules/@agoric/marshal is a symlink to packages/marshal).

Run yarn workspaces info to get a report on which subprojects (aka "workspaces") depend upon which others. The mismatchedWorkspaceDependencies section tells us when symlinks could not be used (generally because e.g. ERTP wants marshal@0.1.0, but packages/marshal/package.json says it's actually 0.2.0). We want to get rid of all mismatched dependencies.

The yarn build step generates kernel bundles.

Test

To run all unit tests (in all packages):

  • yarn test (from the top-level)

To run the unit tests of just a single package (e.g. eventual-send):

  • cd packages/eventual-send
  • yarn test

Run the larger demo

  • cd packages/cosmic-swingset
  • make scenario2-setup
  • make scenario2-run-chain (in one shell)
  • make scenario2-run-client (in a second shell)

Edit Loop

  • modify something in e.g. SwingSet/
  • run yarn build (at the top level or in SwingSet/)
  • re-run tests or setup/run-chain/run-client
  • repeat

Doing a yarn build in SwingSet creates the "kernel bundle", a single file that rolls up all the kernel sources. This bundle file is needed by callers (like cosmic-swingset) before they can invoke buildVatController. If you don't run yarn build, then changes to the SwingSet kernel code will be ignored.

Development Standards

  • All work should happen on branches. Single-commit branches can land on trunk without a separate merge, but multi-commit branches should have a separate merge commit. The merge commit subject should mention which packages were modified (e.g. (SwingSet,cosmic-swingset) merge 123-fix-persistence)
  • Keep the history tidy. Avoid overlapping branches. Rebase when necessary.
  • All work should have an Issue. All branches names should include the issue number as a prefix (e.g. 123-description). Use "Labels" on the Issues to mark which packages are affected.
  • Add user-visible changes to a new file in the changelogs/ directory, named after the Issue number. See the README in those directories for instructions.
  • Unless the issue spans multiple packages, each branch should only modify a single package.
  • Releases should be made from the package subdirectories, with a tag like SwingSet-v0.3.0 or eventual-send-v0.4.5. Retain mutual compatibility between all packages in the monorepo (run yarn workspaces info and make sure there are no mismatchedWorkspaceDependencies). Do not use post-release -dev.0 suffixes. Merge all the changelogs/* fragment files together and add to the NEWS.md file, then delete the fragments.

Adding a new package

To create a new (empty) package (e.g. spinning Zoe out from ERTP):

  • mkdir packages/zoe
  • add your sources/tests/etc to packages/zoe/src/ etc
  • populate a new packages/zoe/package.json, using other packages as a template
  • edit the top-level package.json to add packages/zoe to "workspaces"
  • run yarn install, and commit the resulting changes to yarn.lock
  • check the output of yarn workspaces info to make sure there are no mismatchedWorkspaceDependencies, adjust the new package's dependencies until they are correctly satisfied by the other local packages
  • edit .github/workflows/test-all-packages.yml to add a clause that tests the new package
  • commit everything to a new branch, push, check the GitHub Actions tab to make sure CI tested everything properly
  • merge with a PR
0.2.8-u14.0

2 months ago

0.2.8-u13.0

5 months ago

0.2.8-u12.0

6 months ago

0.2.8-dev-6f740a4.0

10 months ago

0.2.8-dev-6e5b422.0

10 months ago

0.2.8-dev-648d42f.0

10 months ago

0.2.8-dev-55ccfd2.0

10 months ago

0.2.8-dev-c50ca19.0

10 months ago

0.2.8-dev-dfc712f.0

10 months ago

0.2.8-dev-fb922d3.0

10 months ago

0.2.8-dev-284e2db.0

10 months ago

0.2.8-dev-8bcf6af.0

10 months ago

0.2.8-dev-e96a12a.0

10 months ago

0.2.8-u11.0

9 months ago

0.2.8-dev-8baf0aa.0

10 months ago

0.2.8-dev-22cbeb1.0

10 months ago

0.2.8-dev-bd1190d.0

10 months ago

0.2.8-u11wf.0

8 months ago

0.2.8-dev-8358d20.0

10 months ago

0.2.8-dev-1303537.0

10 months ago

0.2.8-dev-e90f87b.0

10 months ago

0.2.8-dev-f5f34f4.0

10 months ago

0.2.8-dev-afe8a6e.0

10 months ago

0.2.8-dev-5382a55.0

10 months ago

0.2.8-dev-6c6b5a0.0

10 months ago

0.2.8-dev-bcca849.0

10 months ago

0.2.8-dev-ff1e301.0

10 months ago

0.2.8-dev-aa8b3a1.0

10 months ago

0.2.8-dev-857e650.0

10 months ago

0.2.8-dev-35576e9.0

10 months ago

0.2.8-dev-af62279.0

10 months ago

0.2.8-dev-b6b074d.0

10 months ago

0.2.8-dev-3c22e86.0

10 months ago

0.2.8-dev-a6737cd.0

10 months ago

0.2.8-dev-f010e07.0

10 months ago

0.2.6-dev-effbf7f.0

11 months ago

0.2.8-dev-8690eb0.0

11 months ago

0.2.8-dev-2c5dd59.0

11 months ago

0.2.8-dev-3ae8bfc.0

11 months ago

0.2.8-dev-046eb05.0

11 months ago

0.2.6-dev-3b12eb6.0

11 months ago

0.2.8-dev-dcddffd.0

11 months ago

0.2.8-dev-39b1586.0

11 months ago

0.2.6-dev-d42f8d0.0

11 months ago

0.2.8-dev-7632299.0

11 months ago

0.2.6-dev-13c169c.0

11 months ago

0.2.8-dev-b020abe.0

11 months ago

0.2.6-dev-f9596b4.0

11 months ago

0.2.6-dev-c2ae5c0.0

11 months ago

0.2.8-dev-c50674b.0

11 months ago

0.2.8-dev-b8d6697.0

11 months ago

0.2.8-dev-8c14632.0

11 months ago

0.2.8-dev-ff36f02.0

11 months ago

0.2.8-dev-b05c226.0

11 months ago

0.2.8-dev-51ee28f.0

11 months ago

0.2.8-dev-779b73d.0

11 months ago

0.2.8-dev-056a064.0

11 months ago

0.2.8-dev-f581a7e.0

11 months ago

0.2.8-dev-13050c2.0

11 months ago

0.2.6-dev-72b0aa9.0

11 months ago

0.2.8-dev-4b79eb6.0

11 months ago

0.2.8-dev-590740f.0

11 months ago

0.2.8-dev-69236fd.0

11 months ago

0.2.6-dev-80bdc60.0

11 months ago

0.2.8-dev-4989f26.0

11 months ago

0.2.8-dev-657b621.0

11 months ago

0.2.8-dev-5736604.0

11 months ago

0.2.8-dev-2baa932.0

11 months ago

0.2.8-dev-3a87a12.0

11 months ago

0.2.8-dev-9f34f9d.0

11 months ago

0.2.6-dev-acefd94.0

11 months ago

0.2.8-dev-48da763.0

11 months ago

0.2.8-dev-6bce049.0

11 months ago

0.2.8-dev-dd19d79.0

11 months ago

0.2.8-dev-3353509.0

11 months ago

0.2.8-dev-26028d4.0

11 months ago

0.2.8-dev-696f0a8.0

11 months ago

0.2.8-dev-6fece09.0

11 months ago

0.2.8-dev-3f11ae4.0

11 months ago

0.2.8-dev-3c781f6.0

11 months ago

0.2.8-dev-2043349.0

11 months ago

0.2.8-dev-d589873.0

11 months ago

0.2.7

11 months ago

0.2.6-dev-74a0763.0

12 months ago

0.2.4-dev-cfa270b.0

12 months ago

0.2.4-dev-feb253e.0

12 months ago

0.2.5-dev-800c2bb.0

12 months ago

0.2.5-dev-d32a66a.0

12 months ago

0.2.6-dev-4a0bf28.0

12 months ago

0.2.4-dev-606cbd2.0

12 months ago

0.2.4-dev-f25bc81.0

12 months ago

0.2.4-dev-8c6e4b2.0

12 months ago

0.2.4-dev-c7c58c9.0

12 months ago

0.2.4-dev-5a3d014.0

12 months ago

0.2.4-dev-eb0553c.0

12 months ago

0.2.4-dev-177d1e6.0

12 months ago

0.2.4-dev-0ce9545.0

12 months ago

0.2.4-dev-f5c3733.0

12 months ago

0.2.4-dev-fa4a08d.0

12 months ago

0.2.6-dev-bf164a0.0

12 months ago

0.2.4-dev-ffb9433.0

12 months ago

0.2.6-dev-fb2c249.0

12 months ago

0.2.4-dev-ab850a4.0

12 months ago

0.2.4-dev-8d17cce.0

12 months ago

0.2.6-dev-bf4b59f.0

12 months ago

0.2.4-dev-09b993a.0

12 months ago

0.2.4-dev-0fc1914.0

12 months ago

0.2.4-dev-ca22069.0

12 months ago

0.2.4-dev-9d23380.0

12 months ago

0.2.4-dev-e816b60.0

12 months ago

0.2.4-dev-628de13.0

12 months ago

0.2.6

12 months ago

0.2.5

12 months ago

0.2.4

1 year ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.31

2 years ago

0.1.29-dev.1

2 years ago

0.1.29-dev.0

2 years ago

0.1.29-dev.2

2 years ago

0.1.29

2 years ago

0.1.28

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.14

3 years ago

0.1.15

3 years ago

0.1.13

3 years ago

0.1.12

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.5-dev.0

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2-dev.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.12

3 years ago

0.0.12-dev.0

4 years ago

0.0.11

4 years ago

0.0.11-dev.2

4 years ago

0.0.11-dev.1

4 years ago

0.0.11-dev.0

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago