{ "registry": { "strings": [ "SharedVec", "shared_vec", "normal", "mutators", "HashMap", "ink_core", "storage", "collections", "hash_map", "impls", "AccountId", "env", "srml", "types", "Access", "begin", "Option", "None", "Some", "end", "len", "Value", "value", "cell", "SyncCell", "sync_cell", "Key", "key", "entries", "SyncChunk", "chunk", "sync_chunk", "Entry", "Occupied", "OccupiedEntry", "val", "Removed", "cells_key", "vec", "Vec", "cells", "on_deploy", "push", "i32", "Result", "Ok", "Err", "register", "mutator", "set", "at", "u32", "to", "get", "Mutate", "Push", "Register" ], "types": [ { "id": { "custom.name": 1, "custom.namespace": [ 2, 3 ], "custom.params": [] }, "def": { "struct.fields": [ { "name": 4, "type": 2 }, { "name": 39, "type": 15 } ] } }, { "id": { "custom.name": 5, "custom.namespace": [ 6, 7, 8, 9, 10 ], "custom.params": [ 3, 6 ] }, "def": { "struct.fields": [ { "name": 21, "type": 9 }, { "name": 29, "type": 12 } ] } }, { "id": { "custom.name": 11, "custom.namespace": [ 6, 12, 13, 14 ], "custom.params": [] }, "def": { "tuple_struct.types": [ 4 ] } }, { "id": { "array.len": 32, "array.type": 5 }, "def": "builtin" }, { "id": "u8", "def": "builtin" }, { "id": { "custom.name": 15, "custom.namespace": [ 2 ], "custom.params": [] }, "def": { "struct.fields": [ { "name": 16, "type": 7 }, { "name": 20, "type": 7 } ] } }, { "id": { "custom.name": 17, "custom.namespace": [], "custom.params": [ 8 ] }, "def": { "enum.variants": [ { "unit_variant.name": 18 }, { "tuple_struct_variant.name": 19, "tuple_struct_variant.types": [ 8 ] } ] } }, { "id": "u32", "def": "builtin" }, { "id": { "custom.name": 22, "custom.namespace": [ 6, 7, 23 ], "custom.params": [ 8 ] }, "def": { "struct.fields": [ { "name": 24, "type": 10 } ] } }, { "id": { "custom.name": 25, "custom.namespace": [ 6, 7, 24, 26 ], "custom.params": [ 8 ] }, "def": { "struct.fields": [ { "name": 24, "type": 11 } ] } }, { "id": { "custom.name": 27, "custom.namespace": [ 6, 7, 28 ], "custom.params": [] }, "def": { "tuple_struct.types": [ 4 ] } }, { "id": { "custom.name": 30, "custom.namespace": [ 6, 7, 31, 32, 31 ], "custom.params": [ 13 ] }, "def": { "struct.fields": [ { "name": 38, "type": 11 } ] } }, { "id": { "custom.name": 33, "custom.namespace": [ 6, 7, 8, 9, 10 ], "custom.params": [ 3, 6 ] }, "def": { "enum.variants": [ { "tuple_struct_variant.name": 34, "tuple_struct_variant.types": [ 14 ] }, { "unit_variant.name": 37 } ] } }, { "id": { "custom.name": 35, "custom.namespace": [ 6, 7, 8, 9, 10 ], "custom.params": [ 3, 6 ] }, "def": { "struct.fields": [ { "name": 28, "type": 3 }, { "name": 36, "type": 6 } ] } }, { "id": { "custom.name": 40, "custom.namespace": [ 6, 7, 8, 39, 10 ], "custom.params": [ 16 ] }, "def": { "struct.fields": [ { "name": 21, "type": 9 }, { "name": 41, "type": 17 } ] } }, { "id": "i32", "def": "builtin" }, { "id": { "custom.name": 30, "custom.namespace": [ 6, 7, 31, 32, 31 ], "custom.params": [ 16 ] }, "def": { "struct.fields": [ { "name": 38, "type": 11 } ] } }, { "id": { "custom.name": 45, "custom.namespace": [], "custom.params": [ 19, 8 ] }, "def": { "enum.variants": [ { "tuple_struct_variant.name": 46, "tuple_struct_variant.types": [ 19 ] }, { "tuple_struct_variant.name": 47, "tuple_struct_variant.types": [ 8 ] } ] } }, { "id": [], "def": "builtin" }, { "id": { "custom.name": 45, "custom.namespace": [], "custom.params": [ 16, 8 ] }, "def": { "enum.variants": [ { "tuple_struct_variant.name": 46, "tuple_struct_variant.types": [ 16 ] }, { "tuple_struct_variant.name": 47, "tuple_struct_variant.types": [ 8 ] } ] } }, { "id": { "custom.name": 17, "custom.namespace": [], "custom.params": [ 16 ] }, "def": { "enum.variants": [ { "unit_variant.name": 18 }, { "tuple_struct_variant.name": 19, "tuple_struct_variant.types": [ 16 ] } ] } } ] }, "storage": { "struct.type": 1, "struct.fields": [ { "name": 4, "layout": { "struct.type": 2, "struct.fields": [ { "name": 21, "layout": { "struct.type": 9, "struct.fields": [ { "name": 24, "layout": { "range.offset": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], "range.len": 1, "range.elem_type": 8 } } ] } }, { "name": 29, "layout": { "range.offset": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 ], "range.len": 4294967295, "range.elem_type": 13 } } ] } }, { "name": 39, "layout": { "struct.type": 15, "struct.fields": [ { "name": 21, "layout": { "struct.type": 9, "struct.fields": [ { "name": 24, "layout": { "range.offset": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ], "range.len": 1, "range.elem_type": 8 } } ] } }, { "name": 41, "layout": { "range.offset": [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 ], "range.len": 4294967295, "range.elem_type": 16 } } ] } } ] }, "contract": { "name": 1, "constructors": [ { "name": 42, "selector": 0, "args": [], "docs": [ "Initializes the value to the initial value." ] } ], "messages": [ { "name": 43, "selector": 865577567, "mutates": true, "args": [ { "name": 23, "type": { "ty": 16, "display_name": [ 44 ] } } ], "return_type": { "ty": 18, "display_name": [ 45 ] }, "docs": [ "Pushes a new value to the shared vector.", "", "# Errors", "", "- If the caller does not have unlimited access rights." ] }, { "name": 48, "selector": 572030971, "mutates": true, "args": [ { "name": 49, "type": { "ty": 3, "display_name": [ 11 ] } }, { "name": 16, "type": { "ty": 7, "display_name": [ 17 ] } }, { "name": 20, "type": { "ty": 7, "display_name": [ 17 ] } } ], "return_type": { "ty": 18, "display_name": [ 45 ] }, "docs": [ "Registers a new user with the given access rights.", "", "Can also be used to change access rights of an already existing user.", "", "# Errors", "", "- If the caller does not have unlimited access rights." ] }, { "name": 50, "selector": 2028185770, "mutates": true, "args": [ { "name": 51, "type": { "ty": 8, "display_name": [ 52 ] } }, { "name": 53, "type": { "ty": 16, "display_name": [ 44 ] } } ], "return_type": { "ty": 20, "display_name": [ 45 ] }, "docs": [ "Sets the value at the given position to the given value.", "", "Returns the previous value.", "", "# Errors", "", "- If the given position is out of bounds.", "- If the caller does not have the required access rights." ] }, { "name": 54, "selector": 4266279973, "mutates": false, "args": [ { "name": 51, "type": { "ty": 8, "display_name": [ 52 ] } } ], "return_type": { "ty": 21, "display_name": [ 17 ] }, "docs": [ "Returns the value of the shared vector at the given position", "or `None` if the access is out of bounds." ] }, { "name": 21, "selector": 1403873684, "mutates": false, "args": [], "return_type": { "ty": 8, "display_name": [ 52 ] }, "docs": [ "Returns the length of the shared vector." ] } ], "events": [ { "name": 55, "args": [ { "name": 51, "indexed": false, "type": { "ty": 8, "display_name": [ 52 ] } }, { "name": 23, "indexed": false, "type": { "ty": 16, "display_name": [ 44 ] } } ], "docs": [ "Fires whenever a mutator changes the vector." ] }, { "name": 56, "args": [ { "name": 49, "indexed": false, "type": { "ty": 3, "display_name": [ 11 ] } }, { "name": 23, "indexed": false, "type": { "ty": 16, "display_name": [ 44 ] } } ], "docs": [ "Fires whenever a mutator pushes the vector successfully." ] }, { "name": 57, "args": [ { "name": 49, "indexed": false, "type": { "ty": 3, "display_name": [ 11 ] } }, { "name": 16, "indexed": false, "type": { "ty": 7, "display_name": [ 17 ] } }, { "name": 20, "indexed": false, "type": { "ty": 7, "display_name": [ 17 ] } } ], "docs": [ "Fires whenever a new mutator is registered", "or when a mutators access rights are changed." ] } ], "docs": [] } }