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

difftreelog

Update custom types

Greg Zaitsev2020-08-05parent: #a46b40b.patch.diff
in: master

2 files changed

modifiedREADME.mddiffbeforeafterboth
--- a/README.md
+++ b/README.md
@@ -122,6 +122,15 @@
     "Owner": "AccountId",
     "Data": "Vec<u8>"
   },
+  "Ownership": {
+    "owner": "AccountId",
+    "fraction": "u128"
+  },
+  "ReFungibleItemType": {
+    "Collection": u64,
+    "Owner": "Vec<Ownership<AccountId>>",
+    "Data": "Vec<u8>",
+  },
   "CollectionType": {
     "Owner": "AccountId",
     "Mode": "CollectionMode",
modifieddoc/application_development.mddiffbeforeafterboth
1818
19## Custom Types for JS API19## Custom Types for JS API
2020
21```
22{
23 "Schedule": {21See in root README
24 "version": "u32",
25 "put_code_per_byte_cost": "Gas",
26 "grow_mem_cost": "Gas",
27 "regular_op_cost": "Gas",
28 "return_data_per_byte_cost": "Gas",
29 "event_data_per_byte_cost": "Gas",
30 "event_per_topic_cost": "Gas",
31 "event_base_cost": "Gas",
32 "call_base_cost": "Gas",
33 "instantiate_base_cost": "Gas",
34 "dispatch_base_cost": "Gas",
35 "sandbox_data_read_cost": "Gas",
36 "sandbox_data_write_cost": "Gas",
37 "transfer_cost": "Gas",
38 "instantiate_cost": "Gas",
39 "max_event_topics": "u32",
40 "max_stack_height": "u32",
41 "max_memory_pages": "u32",
42 "max_table_size": "u32",
43 "enable_println": "bool",
44 "max_subject_len": "u32"
45 },
46 "NftItemType": {
47 "Collection": "u64",
48 "Owner": "AccountId",
49 "Data": "Vec<u8>"
50 },
51 "CollectionType": {
52 "Owner": "AccountId",
53 "NextItemId": "u64",
54 "Name": "Vec<u16>",
55 "Description": "Vec<u16>",
56 "TokenPrefix": "Vec<u8>",
57 "CustomDataSize": "u32",
58 "Sponsor": "AccountId",
59 "UnconfirmedSponsor": "AccountId"
60 },
61 "Address": "AccountId",
62 "LookupSource": "AccountId",
63 "Weight": "u64"
64}
65```
6622
67## NFT Palette Methods23## NFT Palette Methods
6824