Skip to content

How to make an offer from a dapp via the smart wallet? (InvitationSpec Patterns) #8082

Answered by dckc
samsiegart asked this question in Q&A
Discussion options

You must be logged in to vote

How to compose an OfferSpec - forms of InvitationSpec

@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, and proposalTemplate 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…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by dckc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants