From c4604062e167eb2b7b2dbc91d109e9ed4b158ac6 Mon Sep 17 00:00:00 2001 From: str-mv Date: Tue, 04 Aug 2020 13:49:29 +0000 Subject: [PATCH] UI types update --- --- a/README.md +++ b/README.md @@ -81,3 +81,65 @@ ``` Additional CLI usage options are available and may be shown by running `cargo run -- --help`. + + +## UI custom types +``` +{ + "Schedule": { + "version": "u32", + "put_code_per_byte_cost": "Gas", + "grow_mem_cost": "Gas", + "regular_op_cost": "Gas", + "return_data_per_byte_cost": "Gas", + "event_data_per_byte_cost": "Gas", + "event_per_topic_cost": "Gas", + "event_base_cost": "Gas", + "call_base_cost": "Gas", + "instantiate_base_cost": "Gas", + "dispatch_base_cost": "Gas", + "sandbox_data_read_cost": "Gas", + "sandbox_data_write_cost": "Gas", + "transfer_cost": "Gas", + "instantiate_cost": "Gas", + "max_event_topics": "u32", + "max_stack_height": "u32", + "max_memory_pages": "u32", + "max_table_size": "u32", + "enable_println": "bool", + "max_subject_len": "u32" + }, + "CollectionMode": { + "_enum": { + "Invalid": null, + "NFT": "u32", + "Fungible": "u32", + "ReFungible": "(u32, u32)" + } + }, + "NftItemType": { + "Collection": "u64", + "Owner": "AccountId", + "Data": "Vec" + }, + "CollectionType": { + "Owner": "AccountId", + "Mode": "u8", + "ModeParam": "u32", + "Access": "u8", + "NextItemId": "u64", + "DecimalPoints": "u32", + "Name": "Vec", + "Description": "Vec", + "TokenPrefix": "Vec", + "CustomDataSize": "u32", + "OffchainSchema": "Vec", + "Sponsor": "AccountId", + "UnconfirmedSponsor": "AccountId" + }, + "RawData": "Vec", + "Address": "AccountId", + "LookupSource": "AccountId", + "Weight": "u64" +} +``` \ No newline at end of file --- a/smart_contract/ink-types-node-runtime/README.md +++ b/smart_contract/ink-types-node-runtime/README.md @@ -63,7 +63,7 @@ "Invalid": null, "NFT": "u32", "Fungible": "u32", - "ReFungible": null + "ReFungible": "(u32, u32)" } }, "NftItemType": { @@ -71,9 +71,7 @@ "Owner": "AccountId", "Data": "Vec" }, - - -"CollectionType": { + "CollectionType": { "Owner": "AccountId", "Mode": "u8", "ModeParam": "u32", -- gitstuff