Skip to main content

· 2 min read
Benoit Rognier
Guillaume Duhamel

We present version 1.4.3 of Archetype language.

Added

Functions

Functions can now have side effects on storage. For example, it is now valid to write:

archetype function_side_effect

variable res : nat = 0

function set_res(v : nat) {
res := v
}

entry exec(value : nat) { set_res(value) }

· 3 min read
Benoit Rognier
Guillaume Duhamel

We are glad to present the new contract binding generation in TypeScript language. We consider this as a major improvement in the way we are working with Archetype and Michelson contracts.

Completium CLI now provides a simple command to generate the TypeScript binding:

completium-cli generate binding-ts mycontract.arl > mycontract.ts

· 2 min read
Benoit Rognier
Guillaume Duhamel

We present version 1.3.2 of Archetype language.

Added

update for set

update instruction adds or removes an element in a set.


· One min read
Benoit Rognier
Guillaume Duhamel

We present version 1.3.1 of Archetype language.

Added

Constant section

This new entrypoint's section constant allows the declaration of local constants to be used in other sections.


· 3 min read
Benoit Rognier

We present a new type of map called iterable_big_map, which has the scalability property of a big_map, and which can be iterated like a basic map.

This feature was suggested by Nomadic Labs. Thank you to Lucas Feli and Charles Delhinger for the algorithm.

Example

Consider the following declaration of an iterable big map between a nat key and a bytes value:

variable ibm : iterable_big_map<nat, bytes> = []