Skip to content

2.4.0

Latest
Compare
Choose a tag to compare
@AlexeyVavilin AlexeyVavilin released this 09 Nov 16:17
· 87 commits to master since this release
1f5cfa9

Version 2.4.0

New

  • ABI v2.4 specification implemented

  • Param in fields section extended with init: boolean

  • ref(T) – new type added

  • Default values for parameter types:

    • int<N>N zero bits.
    • uint<N>N zero bits.
    • varint<N>/varuint<N>x zero bits, where x = [log2(N)].
    • bool – equivalent to int<N>, where N = 1.
    • tuple(T1, T2, ..., Tn) – default values for each type, i.e. D(tuple(T1, T2, ..., Tn)) = tuple(D(T1), D(T2), ..., D(Tn)), where D is defined as a function that takes ABI type and returns the corresponding default value.
    • map(K,V) – 1 zero bit, i.e. b{0}.
    • cell – reference to an empty cell, i.e. ^EmptyCell.
    • addressaddr_none$00 constructor, i.e. 2 zero bits.
    • bytes – reference to an empty cell, i.e. ^EmptyCell.
    • string – reference to an empty cell, i.e. ^EmptyCell.
    • optional(T) – 1 zero bit, i.e. b{0}.
    • T[]x{00000000} b{0}, i.e. 33 zero bits.
    • T[k] – encoded as an array with k default values of type T
    • ref(T) – reference to a cell, cell is encoded as the default value of type T.

Breaking

  • data section in ABI JSON is removed.
  • fixedbytes type serialization changed. Now it is limited to 127 bytes and serialized into cell
    body instead of chained cells in current cell reference