IntersectMBO / plutus-apps

The Plutus application platform
Apache License 2.0
305 stars 213 forks source link

Make plutus stateMachine compatible with RemoteWalletConfig #251

Open WilmsJochen opened 2 years ago

WilmsJochen commented 2 years ago

Describe the feature you'd like

When the PAB contains Statemachine contracts and is configured with:

walletServerConfig:
  tag: RemoteWalletConfig

I would expect that the transaction is not immediately submitted, but instead returns a transaction in the instance status response. This would enable remote wallets like Nami and Yoroi to initialize and update plutus pab statemachines.

Describe alternatives you've considered

In the Statemachine.hs file a check on PAB config can easily be added. Analog to the DemoContract in the plutus-pab-executables, yieldUnbalancedTx can be used to make the TX available in the status response.

ghost commented 2 years ago

Thanks for the issue!

That's a good idea. We'll take a look.

WilmsJochen commented 2 years ago

Do we have a timeline on when this function will be implemented ? At the moment my project is on hold because of this.