Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(cosmic-swingset): add board, use board in mailboxAdmin #1167

Merged
merged 2 commits into from
Jun 9, 2020

Conversation

katelynsills
Copy link
Contributor

@katelynsills katelynsills commented Jun 9, 2020

Closes #1166

This PR adds the "board", a registry-like vat which allows users to add a value and get a key for that value. The key is a non-human-readable string and can be shared widely. Users can retrieve a value by giving the board the key. Keys and values are in a bidirectional one-to-one mapping. If a user attempts to add a value that has already been added, they get the old id.

This PR changes the mailbox vat to use the board rather than the registry.

Unit tests are added for the board, and tests of home.board and home.mailboxAdmin are also added.

With this PR, users can now send and receive payments, but they can't use the wallet UI to do so yet. They can use deploy scripts or the REPL.

Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! It's nice to see a two-way mapping in the board. That's a really useful feature we had taken out of the registry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add board to replace some of the registry functionality
2 participants