git.delta.rocks / unique-network / refs/commits / c4604062e167

difftreelog

UI types update

str-mv2020-08-04parent: #175b00b.patch.diff
in: master

2 files changed

modifiedREADME.mddiffbeforeafterboth
--- 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<u8>"
+  },
+  "CollectionType": {
+    "Owner": "AccountId",
+    "Mode": "u8",
+    "ModeParam": "u32",
+    "Access": "u8",
+    "NextItemId": "u64",
+    "DecimalPoints": "u32",
+    "Name": "Vec<u16>",
+    "Description": "Vec<u16>",
+    "TokenPrefix": "Vec<u8>",
+    "CustomDataSize": "u32",
+    "OffchainSchema": "Vec<u8>",
+    "Sponsor": "AccountId",
+    "UnconfirmedSponsor": "AccountId"
+  },
+  "RawData": "Vec<u8>",
+  "Address": "AccountId",
+  "LookupSource": "AccountId",
+  "Weight": "u64"
+}
+```
\ No newline at end of file
modifiedsmart_contract/ink-types-node-runtime/README.mddiffbeforeafterboth
63 "Invalid": null,63 "Invalid": null,
64 "NFT": "u32",64 "NFT": "u32",
65 "Fungible": "u32",65 "Fungible": "u32",
66 "ReFungible": null66 "ReFungible": "(u32, u32)"
67 }67 }
68 },68 },
69 "NftItemType": {69 "NftItemType": {
70 "Collection": "u64",70 "Collection": "u64",
71 "Owner": "AccountId",71 "Owner": "AccountId",
72 "Data": "Vec<u8>"72 "Data": "Vec<u8>"
73 },73 },
74 74 "CollectionType": {
75
76"CollectionType": {
77 "Owner": "AccountId",75 "Owner": "AccountId",
78 "Mode": "u8",76 "Mode": "u8",
79 "ModeParam": "u32",77 "ModeParam": "u32",