Files
api/packages/api-contract/test/compare/ink_dns.test.json
T

204 lines
4.1 KiB
JSON

[
{
"displayName": "Header",
"namespace": "ink_storage::collections::stash",
"info": "Struct",
"sub": [
{
"info": "Plain",
"type": "u32",
"name": "last_vacant"
},
{
"info": "Plain",
"type": "u32",
"name": "len"
},
{
"info": "Plain",
"type": "u32",
"name": "len_entries"
}
],
"type": "{\"last_vacant\":\"u32\",\"len\":\"u32\",\"len_entries\":\"u32\"}"
},
{
"info": "Plain",
"type": "u32"
},
{
"displayName": "Entry",
"namespace": "ink_storage::collections::stash",
"sub": [
{
"displayName": "VacantEntry",
"namespace": "ink_storage::collections::stash",
"info": "Struct",
"sub": [
{
"info": "Plain",
"type": "u32",
"name": "next"
},
{
"info": "Plain",
"type": "u32",
"name": "prev"
}
],
"type": "{\"next\":\"u32\",\"prev\":\"u32\"}",
"name": "Vacant"
},
{
"displayName": "Hash",
"namespace": "ink_env::types",
"info": "Plain",
"type": "Hash",
"name": "Occupied"
}
],
"info": "Enum",
"type": "{\"_enum\":{\"Vacant\":\"VacantEntry\",\"Occupied\":\"Hash\"}}"
},
{
"displayName": "Hash",
"namespace": "ink_env::types",
"info": "Plain",
"type": "Hash"
},
{
"info": "VecFixed",
"length": 32,
"sub": {
"info": "Plain",
"type": "u8"
},
"type": "[u8;32]"
},
{
"info": "Plain",
"type": "u8"
},
{
"displayName": "VacantEntry",
"namespace": "ink_storage::collections::stash",
"info": "Struct",
"sub": [
{
"info": "Plain",
"type": "u32",
"name": "next"
},
{
"info": "Plain",
"type": "u32",
"name": "prev"
}
],
"type": "{\"next\":\"u32\",\"prev\":\"u32\"}"
},
{
"displayName": "ValueEntry",
"namespace": "ink_storage::collections::hashmap",
"sub": [
{
"displayName": "AccountId",
"namespace": "ink_env::types",
"info": "Plain",
"type": "AccountId",
"name": "value"
},
{
"info": "Plain",
"type": "u32",
"name": "key_index"
}
],
"info": "Struct",
"type": "{\"value\":\"AccountId\",\"key_index\":\"u32\"}"
},
{
"displayName": "AccountId",
"namespace": "ink_env::types",
"info": "Plain",
"type": "AccountId"
},
{
"displayName": "Result",
"sub": [
{
"name": "Ok",
"info": "Tuple",
"sub": [],
"type": "()"
},
{
"name": "Error",
"displayName": "Error",
"namespace": "dns::dns",
"info": "Enum",
"sub": [
{
"ext": {
"discriminant": 0
},
"info": "Plain",
"name": "NameAlreadyExists",
"type": "Null"
},
{
"ext": {
"discriminant": 1
},
"info": "Plain",
"name": "CallerIsNotOwner",
"type": "Null"
}
],
"type": "{\"_enum\":[\"NameAlreadyExists\",\"CallerIsNotOwner\"]}"
}
],
"info": "Result",
"type": "Result<(), Error>"
},
{
"info": "Tuple",
"sub": [],
"type": "()"
},
{
"displayName": "Error",
"namespace": "dns::dns",
"info": "Enum",
"sub": [
{
"ext": {
"discriminant": 0
},
"info": "Plain",
"name": "NameAlreadyExists",
"type": "Null"
},
{
"ext": {
"discriminant": 1
},
"info": "Plain",
"name": "CallerIsNotOwner",
"type": "Null"
}
],
"type": "{\"_enum\":[\"NameAlreadyExists\",\"CallerIsNotOwner\"]}"
},
{
"displayName": "Option",
"sub": {
"displayName": "AccountId",
"namespace": "ink_env::types",
"info": "Plain",
"type": "AccountId"
},
"info": "Option",
"type": "Option<AccountId>"
}
]