Skip to main content

@taqueria/plugin-archetype

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

Requirements

  • Node.js v16.3 or later
  • Docker v0.8.6 or later

Installation

To install the Archetype plugin on a Taqueria project, navigate to the project folder and run:

taq install @taqueria/plugin-archetype

Configuration

No additional configuration is available

Usage

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

Running the Compile Task

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

caution

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 example taq compile --plugin archetype

Options

There are no additional options available for this plugin

Plugin Architecture

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:

attributevalue
task'compile'
command'compile [sourceFile]
aliases['c', 'compile-archetype']