Skip to main content

originate

Overview

Taq originate is used to originate one or many Michelson smart contracts to one or more sandboxes or networks. Before originating a contract, you must define the initial storage value for the contract in the environment you are originating to. Instructions for this can be found here

Taqueria Environments are used to specify the target for origination

The task expects the Michelson files to be in the /artifacts directory

note

Contracts must be added to the Contract Registry (taq add-contract example.mligo) in order to be originated

Plugin Implementations

This task is implemented by the following plugins:

Plugin NameDescription
@taqueria/plugin-taquitoOriginates contracts to a target environment

Command

taq originate [path]

Task Details

Task NameCommandTypeDescription
originatetaq originate [path]Plugin - TaquitoOriginates one, or all contracts in a project

Command-Line Arguments

ArgumentRequiredShortflagDescriptionExample Usage
<path>NoPath to one or more Michelson files to originatetaq originate my-contract.tz
--envNo-eThe environment to target for originationtaq originate -env testing

Usage

DescriptionCommandBehaviour
Originate all contractstaq originateOriginates all Michelson files in the /artifacts directory to the default environment
Originate one contracttaq originate [path]Originates the contract at the given path to the default environment
Originate to an environmenttaq originate --env [envName]Originates all contracts in the /artifacts directory to the environment named [envName]

Supported Filetypes

TypeExtension
Michelson.tz