Where is the UI and contract interface in the dapp-card-store template? #7634
-
Hey all, I am trying to implement a smart contract to mint NFTs in my app. I am using the For this, I need to know what all parts of the app invoke the contract so that I can rip the contract from the card dapp, and implemented it in my own. Unfortunately the point of interfacing between the contract and the UI in that template is a little bit convoluted, so I need help from the community and from the Agoric team in figuring this part out. My basic purpose is to take the contract and just transfer it over into my own app. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@dckc Any updates on this question? We have quite a bit of time on our end watching the videos but it is still not clear to us where the UI and contract interface is in the dapp-card-store template. Would really appreciate some help here. |
Beta Was this translation helpful? Give feedback.
The UI uses CapTP to interface with the contract through the ag-solo. For instance, here publicFacet is the public facet of the contract, which the UI uses to get an invitation. Then it sends that invitation to the ag-solo, which will present the offer in the wallet UI, and once approved, send it to zoe to execute.