This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK and distributed via NPM
The Archetype plugin provides a task to compile Archetype smart contracts (.arl
) to Michelson .tz
files
- Node.js v16 or later
- Docker v0.8.2 or later
To install the Archetype plugin on a Taqueria project, navigate to the project folder and run:
taq install @taqueria/plugin-archetype
At this time, all Taqueria projects must also be initialized as node projects by running
npm init -y
from the root of your project directory
No additional configuration is available
The Archetype plugin exposes a compile
task in Taqueria which can target one, or all the Archetype contracts in the contracts
folder and compile them to Michelson .tz
files output to the artifacts
folder
The Archetype plugin's taq compile
task can be run with or without arguments. The basic syntax for the task is taq compile <file-name>
Running the compile
task with no options will result in all source Archetype smart contracts in the contracts
folder being compiled to Michelson files in the artifacts
folder. If you speficy an optional filename, only Archetype contracts matching the specified filename in the contracts
folder will be compiled
The
compile
task can be implemented by more than one compiler plugin installed on a project (Archetype, LIGO, SmartPY). If this is the case, you must use the--plugin Archetype
flag to specify a particular compiler. For exampletaq compile --plugin archetype
There are no additional options available for this plugin
This is a plugin developed for Taqueria built on NodeJS using the Taqueria Node SDK
Docker is used under the hood to provide a self contained environment for Archetype to prevent the need for it to be installed on the user's local machine
The plugin provides a single task compile
, used for compiling Archetype smart contracts to Michelson:
attribute | value |
---|---|
task | 'compile' |
command | 'compile [sourceFile] |
aliases | ['c', 'compile-archetype'] |