You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
This supports extending existing binary formats; e.g. adding new fields to tables.
Caution: binary extensions only operate correctly in certain locations.
ok: a non-embedded struct stored in a row may have binary extensions at its end
ok: an action may use binary extensions to add additional arguments to its end
ok: a struct with binary extensions may be used inside another struct, but only if the inner struct is the last field of the outer struct and the outer struct is allowed to contain binary extensions
not ok: a struct with binary extensions may not be used inside an array
not ok: a struct with binary extensions may not be used as a base of another struct
not ok: fields with types which don't end in $ following fields with types which do
not ok: $ used anywhere except in struct field types
ABI version string
eosio::abi/1.1
ABI Text format
Types may have a $ suffix. During binary-to-json conversion, fields with a $ type don't error out when end-of-data has been reached; instead they're omitted. During json-to-binary conversion, missing fields don't error out as long as no non-missing fields follow in the ABI. This omits the bytes from the output stream.
This supports extending existing binary formats; e.g. adding new fields to tables.
Caution: binary extensions only operate correctly in certain locations.
$
following fields with types which do$
used anywhere except in struct field typesABI version string
eosio::abi/1.1
ABI Text format
Types may have a
$
suffix. During binary-to-json conversion, fields with a$
type don't error out when end-of-data has been reached; instead they're omitted. During json-to-binary conversion, missing fields don't error out as long as no non-missing fields follow in the ABI. This omits the bytes from the output stream.e.g.
JSON representation
Missing fields aren't included; null isn't used. E.g. all of these are valid JSON representations of
my_table_struct
:ABI Binary format
$
can be included in type strings. No other changes.eosiolib
A new type tag (TBD) will identify these types. When an extension field is missing during deserialization, it will be left default-constructed.
The text was updated successfully, but these errors were encountered: