-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(smart-wallet): create purses for new assets lazily
- subscribe for new vbank assets once, in walletFactory.js - provide a read-only registry of the assets - no change to RPC protocol: still publish all brand descriptors in all wallet states - refactor: clarify invitationIssuer promise - add invitationDisplayInfo to synchronously-provided SharedParams - refine typeguards, esp. M.any() => M.remotable('...') - hoist makeAssetRegistry() to module scope to reduce in-scope authority feat(smart-wallet): initialize with existing vbank assets - add anyBank to walletFactory terms so we can subscribe to vbank assets without waiting for creation of the 1st wallet - refine customTermsShape from M.not(M.undefined()) to M.eref(M.remotable()) - attenuate poolBank to {getAssetSubscription} - 'want stable' test: don't assume incremental updates include all assets; get the full current state to start with - constrain BrandDescriptor to take settled issuers, since publishing records that include promises doesn't let off-chain callers compare identities - losen addBrand() typeguard to allow M.eref(PurseShape) since we await the purse inside the function - static type for purseForBrand motivates tweak to keywordPaymentPromises - fixup: Promise<NameHub> isn't durable a promise for agoricNames isn't durable. so I need deeplyFulfilledObject after all. but the types don't work out. so back to deeplyFulfilled I guess
- Loading branch information
Showing
10 changed files
with
185 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.