accordproject / template-archive

Smart Legal Contracts & Templating System
https://accordproject.org/projects/cicero/
Apache License 2.0
280 stars 119 forks source link

Create a contract Instance directly from an archive #677

Open jeromesimeon opened 3 years ago

jeromesimeon commented 3 years ago

Feature Request 🛍️

Currently templates can be stored in an archive (./cta) and distributed but contract instances cannot. It would be very useful to give the ability to support instance-level archives for storage, exchange, etc.

Use Case

Ability to package a contract instance for distribution / reuse.

Possible Solution

toArchive and fromArchive methods on the TemplateInstance class

Context

Hrushi20 commented 2 years ago

Hey! Can I work on this issue? What exactly are contract instances and how are they different from ./cta archive files? Thank You