From e8d0e4032f16959e30d8e7cd2fc75cce3c966271 Mon Sep 17 00:00:00 2001 From: Greg Zaitsev Date: Wed, 05 Aug 2020 12:27:18 +0000 Subject: [PATCH] Update custom types --- --- a/README.md +++ b/README.md @@ -122,6 +122,15 @@ "Owner": "AccountId", "Data": "Vec" }, + "Ownership": { + "owner": "AccountId", + "fraction": "u128" + }, + "ReFungibleItemType": { + "Collection": u64, + "Owner": "Vec>", + "Data": "Vec", + }, "CollectionType": { "Owner": "AccountId", "Mode": "CollectionMode", --- a/doc/application_development.md +++ b/doc/application_development.md @@ -18,51 +18,7 @@ ## Custom Types for JS API -``` -{ - "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" - }, - "NftItemType": { - "Collection": "u64", - "Owner": "AccountId", - "Data": "Vec" - }, - "CollectionType": { - "Owner": "AccountId", - "NextItemId": "u64", - "Name": "Vec", - "Description": "Vec", - "TokenPrefix": "Vec", - "CustomDataSize": "u32", - "Sponsor": "AccountId", - "UnconfirmedSponsor": "AccountId" - }, - "Address": "AccountId", - "LookupSource": "AccountId", - "Weight": "u64" -} -``` +See in root README ## NFT Palette Methods -- gitstuff