Skip to content

Add support for importing simulations from wallet. #12

Description

@MicahZoltu

The Interceptor (https://github.com/DarkFlorist/TheInterceptor) lets you build transaction stacks (list of transactions) in simulation mode, including while simulating operating from a SAFE. It would be awesome if a user is using Interceptor and they could click a button to import the current simulation stack. This is supported on The Interceptor's side via the JSON-RPC method interceptor_getSimulationStack. The returned value is a JSON array of transaction objects.

You can see an example implementation of this in Bouquet, https://github.com/DarkFlorist/bouquet/blob/main/app/ts/components/Import.tsx#L28-L41 and you can see the shape of the returned object https://github.com/DarkFlorist/bouquet/blob/main/app/ts/types/interceptorTypes.ts#L125-L137 (note: uses funtypes for encoding, but hopefully it is readable enough).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions