From 4371bb7334d40d15d16cdbd4d471fe3e09d6b844 Mon Sep 17 00:00:00 2001 From: German Date: Tue, 25 Apr 2023 14:07:02 +0100 Subject: [PATCH] Add `Environment` notion in metadata section (#220) * add environment notion in metadata * full stops --- docs/basics/metadata.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/basics/metadata.md b/docs/basics/metadata.md index b572b2d5e6..1f4b02b12b 100644 --- a/docs/basics/metadata.md +++ b/docs/basics/metadata.md @@ -171,6 +171,15 @@ The contract `spec` consists of the following **required** keys: - `args`: The parameters of the message. - `return_type`: The return type of the message. - `docs`: The message documentation. +- `environment`: Configuration of the types that the host blockchain operates with. +You can check default types in [Environment](https://use.ink/basics/chain-environment-types) section. + - `accountId`: The type describing an account address. + - `balance`: The type describing balance values. + - `blockNumber`: The type describing a block number. + - `chainExtension`: The type describing the chain extension for the environment. +For more information about usage and definition check [this section](https://use.ink/macros-attributes/chain-extension). + - `maxEventTopics`: The maximum number of supported event topics provided by the runtime. + - `timestamp`: the type describing a timestamp. - `events`: The events of the contract. - `label`: The label of the event. - `args`: The event arguments.