468 lines
8.8 KiB
JSON
468 lines
8.8 KiB
JSON
{
|
|
"registry": {
|
|
"strings": [
|
|
"StorageAndEnv",
|
|
"app",
|
|
"__ink_private",
|
|
"__ink_storage",
|
|
"__storage",
|
|
"Storage",
|
|
"value",
|
|
"Value",
|
|
"ink_core",
|
|
"storage",
|
|
"cell",
|
|
"SyncCell",
|
|
"sync_cell",
|
|
"Key",
|
|
"key",
|
|
"name",
|
|
"vec",
|
|
"Vec",
|
|
"elems",
|
|
"__env",
|
|
"EnvAccess",
|
|
"env2",
|
|
"env_access",
|
|
"immutable",
|
|
"TestEnv",
|
|
"test",
|
|
"accessor",
|
|
"DefaultSrmlTypes",
|
|
"types",
|
|
"access",
|
|
"EnvAccessMut",
|
|
"mutable",
|
|
"env",
|
|
"PhantomData",
|
|
"buffer",
|
|
"has_interacted",
|
|
"has_returned_value",
|
|
"new",
|
|
"init_value",
|
|
"bool",
|
|
"default",
|
|
"flip",
|
|
"get"
|
|
],
|
|
"types": [
|
|
{
|
|
"id": {
|
|
"custom.name": 1,
|
|
"custom.namespace": [
|
|
2,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"custom.params": []
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 5,
|
|
"type": 2
|
|
},
|
|
{
|
|
"name": 20,
|
|
"type": 14
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 6,
|
|
"custom.namespace": [
|
|
2,
|
|
2,
|
|
3,
|
|
4
|
|
],
|
|
"custom.params": []
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 7,
|
|
"type": 3
|
|
},
|
|
{
|
|
"name": 16,
|
|
"type": 9
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 8,
|
|
"custom.namespace": [
|
|
9,
|
|
10,
|
|
7
|
|
],
|
|
"custom.params": [
|
|
4
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"type": 5
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "bool",
|
|
"def": "builtin"
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 12,
|
|
"custom.namespace": [
|
|
9,
|
|
10,
|
|
11,
|
|
13
|
|
],
|
|
"custom.params": [
|
|
4
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"type": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 14,
|
|
"custom.namespace": [
|
|
9,
|
|
10,
|
|
15
|
|
],
|
|
"custom.params": []
|
|
},
|
|
"def": {
|
|
"tuple_struct.types": [
|
|
7
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"array.len": 32,
|
|
"array.type": 8
|
|
},
|
|
"def": "builtin"
|
|
},
|
|
{
|
|
"id": "u8",
|
|
"def": "builtin"
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 8,
|
|
"custom.namespace": [
|
|
9,
|
|
10,
|
|
7
|
|
],
|
|
"custom.params": [
|
|
10
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"type": 13
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "str",
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 17,
|
|
"type": 11
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 18,
|
|
"custom.namespace": [],
|
|
"custom.params": [
|
|
8
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 19,
|
|
"type": 12
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"slice.type": 8
|
|
},
|
|
"def": "builtin"
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 12,
|
|
"custom.namespace": [
|
|
9,
|
|
10,
|
|
11,
|
|
13
|
|
],
|
|
"custom.params": [
|
|
10
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"type": 6
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 21,
|
|
"custom.namespace": [
|
|
9,
|
|
22,
|
|
23,
|
|
24
|
|
],
|
|
"custom.params": [
|
|
15
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 30,
|
|
"type": 17
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 25,
|
|
"custom.namespace": [
|
|
9,
|
|
22,
|
|
26,
|
|
27
|
|
],
|
|
"custom.params": [
|
|
16
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": []
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 28,
|
|
"custom.namespace": [
|
|
9,
|
|
22,
|
|
29
|
|
],
|
|
"custom.params": []
|
|
},
|
|
"def": {
|
|
"clike_enum.variants": []
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 31,
|
|
"custom.namespace": [
|
|
9,
|
|
22,
|
|
23,
|
|
32
|
|
],
|
|
"custom.params": [
|
|
15
|
|
]
|
|
},
|
|
"def": {
|
|
"struct.fields": [
|
|
{
|
|
"name": 33,
|
|
"type": 18
|
|
},
|
|
{
|
|
"name": 35,
|
|
"type": 11
|
|
},
|
|
{
|
|
"name": 36,
|
|
"type": 4
|
|
},
|
|
{
|
|
"name": 37,
|
|
"type": 4
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": {
|
|
"custom.name": 34,
|
|
"custom.namespace": [],
|
|
"custom.params": [
|
|
15
|
|
]
|
|
},
|
|
"def": {
|
|
"tuple_struct.types": []
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"struct.type": 1,
|
|
"struct.fields": [
|
|
{
|
|
"name": 10,
|
|
"layout": {
|
|
"struct.type": 2,
|
|
"struct.fields": [
|
|
{
|
|
"name": 7,
|
|
"layout": {
|
|
"struct.type": 3,
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"layout": {
|
|
"range.offset": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"range.len": 1,
|
|
"range.elem_type": 4
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": 16,
|
|
"layout": {
|
|
"struct.type": 9,
|
|
"struct.fields": [
|
|
{
|
|
"name": 11,
|
|
"layout": {
|
|
"range.offset": "0x0000000000000000000000000000000000000000000000000000000000000001",
|
|
"range.len": 1,
|
|
"range.elem_type": 10
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"contract": {
|
|
"name": 2,
|
|
"constructors": [
|
|
{
|
|
"name": 38,
|
|
"selector": "[\"0x5E\",\"0xBD\",\"0x88\",\"0xD6\"]",
|
|
"args": [
|
|
{
|
|
"name": 16,
|
|
"type": {
|
|
"ty": 11,
|
|
"display_name": [
|
|
18
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"name": 39,
|
|
"type": {
|
|
"ty": 4,
|
|
"display_name": [
|
|
40
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"docs": [
|
|
"Constructor that initializes the `bool` value to the given `init_value`."
|
|
]
|
|
},
|
|
{
|
|
"name": 41,
|
|
"selector": "[\"0x02\",\"0x22\",\"0xFF\",\"0x18\"]",
|
|
"args": [],
|
|
"docs": [
|
|
"Constructor that initializes the `bool` value to `false`.",
|
|
"",
|
|
"Constructors can delegate to other constructors."
|
|
]
|
|
}
|
|
],
|
|
"messages": [
|
|
{
|
|
"name": 42,
|
|
"selector": "[\"0x8C\",\"0x97\",\"0xDB\",\"0x39\"]",
|
|
"mutates": true,
|
|
"args": [],
|
|
"return_type": null,
|
|
"docs": [
|
|
"A message that can be called on instantiated contracts.",
|
|
"This one flips the value of the stored `bool` from `true`",
|
|
"to `false` and vice versa."
|
|
]
|
|
},
|
|
{
|
|
"name": 43,
|
|
"selector": "[\"0x25\",\"0x44\",\"0x4A\",\"0xFE\"]",
|
|
"mutates": false,
|
|
"args": [],
|
|
"return_type": {
|
|
"ty": 4,
|
|
"display_name": [
|
|
40
|
|
]
|
|
},
|
|
"docs": [
|
|
"Simply returns the current value of our `bool`."
|
|
]
|
|
}
|
|
],
|
|
"events": [],
|
|
"docs": []
|
|
}
|
|
}
|