fcl-js
fcl-js copied to clipboard
[FLIP-934 Interaction Templates] Enable support for `InteractionTemplate`
[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
InteractionTemplatepassed into it. -
[ ] FCL Mutate accepts
InteractionTemplatepassed into it. -
[ ]
InteractionTemplatehosted at external locations can be retrieved/resolved using mechanics proposed in https://github.com/onflow/fcl-js/issues/788. -
[ ]
InteractionTemplateare included in transaction voucher during signing process. -
[ ] Utility to generate
InteractionTemplateID. -
[ ] Utility to generate
InteractionTemplateAuditID. -
[ ] Utility to generate
InteractionTemplateInterfaceID. -
[ ] 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
InteractionTemplateAuditforInteractionTemplate