Skip to main content

· 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> = []

· 3 min read
Benoit Rognier
info

Edit : from version 1.3.5, the event sink mechansim is now replaced by native protocol's events from Kathmandu.

We present the new instruction emit to emit an event, in a similar an event is emitted in languages like solidity.

This feature was suggested by Nomadic Labs.

An event is declared with the event keyword, similarly to a record:

event HighestBidIncreased {
bidder : address;
amount : tez
}