Sign inSign up

completium/archetype

By completium

•Updated almost 2 years ago

Archetype is an elegant general-purpose language to develop Smart Contracts on the Tezos blockchain.

Image
0

7.0K

completium/archetype repository overview

⁠Introduction

Archetype is an elegant generic-purpose language to develop Smart Contracts on the Tezos⁠ blockchain.

⚡️ It supports all Michelson⁠ features, but also provides exclusive high-level features for a precise and concise source code, that make contracts easier to develop, read and maintain.

⁠Documentation

The documentation is available here⁠.

The language Reference⁠ is organised in four parts (Declarations, Types⁠, Instructions and Expressions), on top of which are thematic articles (Language Basics, Asset⁠, State Machine⁠).

⁠Fast track

Consider the following contract:

archetype hello

variable msg : string = "Hello"

entry input(name : string) {
  msg += (length(msg) > 5 ? "," : "") + " " + name
}

Click on a language element to learn more:

archetype⁠ variable⁠ string⁠ entry⁠ +=⁠ length⁠ >⁠ ? :⁠ +⁠

Deploy contract with Completium CLI⁠:

completium-cli deploy hello.arl

Call contract's entrypoint input with argument "Archetype":

completium-cli call hello --arg '{ "name": "Archetype" }'

Tag summary

Content type

Image

Digest

sha256:9c4e49a08…

Size

73.7 MB

Last updated

almost 2 years ago

docker pull completium/archetype