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

Implement smart-wallet and read-only UI #5594

Closed
wants to merge 25 commits into from
Closed

Conversation

michaelfig
Copy link
Member

closes: #5356

Description

Here's a (rather unimpressive) working demonstration of the smart wallet UI. Notice the zero-latency initialization of the view, and that it's currently read-only.

Screen.Recording.2022-06-14.at.3.11.50.PM.mov

Security Considerations

Documentation Considerations

Testing Considerations

Copy link
Member

@dckc dckc left a comment

Choose a reason for hiding this comment

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

found a critical problem

Comment on lines +252 to +256
const myAddressNameAdmin = E(namesByAddressAdmin).lookupAdmin(address);
const myWallet = E(zoe).startInstance(
smartWallet,
{},
{ agoricNames, bank, namesByAddress, myAddressNameAdmin, board },
Copy link
Member

Choose a reason for hiding this comment

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

Both the smartWallet contract an ag-solo use myAddressNameAdmin to set up depositFacet. There can be only one. This is why we see 0 invitations in xnet #5513 (comment) .

* marshaller?: ERef<Marshaller>,
* }} privateArgs
*/
export const start = async (zcf, privateArgs) => {
Copy link
Member

Choose a reason for hiding this comment

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

we need some test of this contract starting and the shape of its creatorFacet. I can help with that if you like.

@@ -582,6 +581,7 @@ export function makeWallet({

const getAttBrand = makeMemoizedGetter(() => E(getAttIssuer()).getBrand());

/** @typedef {any} AttestationTool */ /* @@@ TODO */
Copy link
Member

Choose a reason for hiding this comment

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

before landing or after?

@turadg turadg marked this pull request as draft June 30, 2022 20:59
@dckc
Copy link
Member

dckc commented Jul 7, 2022

overtaken by #5701 etc.

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.

Smart wallets can get balances with zero transactions (for small # of users)
3 participants