fcl-js icon indicating copy to clipboard operation
fcl-js copied to clipboard

[FLIP-934 Interaction Templates] Enable support for `InteractionTemplate`

Open JeffreyDoyle opened this issue 3 years ago • 0 comments

[FLIP-934 Interaction Templates] Enable support for InteractionTemplate to be passed into mutate and query

FLIP-934 proposes FCL be modified to consume an InteractionTemplate. FCL mutate and query should be modified to consume a template, and use information from that template in carrying out the underlying transaction or script. Should the template passed in be a reference to where a template is stored at an external location, FCL should retrieve the template using the data retrieval pattern proposed in https://github.com/onflow/fcl-js/issues/788. The template should be included in the transaction voucher sent to wallets during the signing process. Utilities should be created to perform common actions upon the data structure proposed in FLIP-934.

Expected Outcomes

  • [ ] FCL Query accepts InteractionTemplate passed into it.

  • [ ] FCL Mutate accepts InteractionTemplate passed into it.

  • [ ] InteractionTemplate hosted at external locations can be retrieved/resolved using mechanics proposed in https://github.com/onflow/fcl-js/issues/788.

  • [ ] InteractionTemplate are included in transaction voucher during signing process.

  • [ ] Utility to generate InteractionTemplate ID.

  • [ ] Utility to generate InteractionTemplateAudit ID.

  • [ ] Utility to generate InteractionTemplateInterface ID.

  • [ ] Utility to generate dependency pins for InteractionTemplate

  • [ ] Utility to verify dependency pin is same at latest block for InteractionTemplate

  • [ ] Utility to verify dependency pin is same for given block height for InteractionTemplate

  • [ ] Utility to verify InteractionTemplateAudit for InteractionTemplate

JeffreyDoyle avatar Jul 06 '22 13:07 JeffreyDoyle