How to make an offer from a dapp via the smart wallet? (InvitationSpec Patterns) #8082
-
In the ... Is it called proposalTempalte (instead of proposal) due to logic in packages/wallet/api/lib-wallet.js? I am trying to figure out two things right now -
we are not blocked by this lack of capability (1) at the current moment. Was more so getting a lay of the land How does the smart-wallet app discover that a wallet has pending invitations active seats/facets? Or put another way, how does dapp-inter know my vault is mine? This is something I'm not quite able to figure out yet I guess I can also include invitations in the question bc that's the way it seems the econ commitee is started. Are these available in a purse for the Invitation issuer? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Calling a public facet without an offer is not yet supportedTo call a public facet without an offer would need ag-solo/mailbox access. no can do (yet) #5965 @0xpatrickdev wrote:
|
Beta Was this translation helpful? Give feedback.
-
How to compose an
|
Beta Was this translation helpful? Give feedback.
How to compose an
OfferSpec
- forms ofInvitationSpec
@samsiegart wrote:
lib-wallet is for ag-solo which might be a red herring.
packages/smart-wallet
handles the offer messages. But yes I think that's right,Proposal
is a specific zoe construct, andproposalTemplate
is used to construct the proposal.The smart wallet contract can handle an empty proposal if you just want to invoke a method with some args. We do this in dapp-econ-gov https://github.com/Agoric/dapp-econ-gov/blob/main/src/lib/wallet.ts#L137-L149C22
However, dapp-econ-gov doesn't go through the wallet UI like other dapps. It seems like the wallet UI is ignoring offerArgs sent from dapps, so it would require an update here
ht…