Skip to content

Instantly share code, notes, and snippets.

@ayeteng
Created May 14, 2020 10:00
Show Gist options
  • Save ayeteng/de26d00930ff29435f0f717576232192 to your computer and use it in GitHub Desktop.
Save ayeteng/de26d00930ff29435f0f717576232192 to your computer and use it in GitHub Desktop.
flipper metadata.json
{
"registry": {
"strings": [
"Storage",
"flipper",
"__ink_private",
"__ink_storage",
"value",
"Value",
"ink_core",
"storage",
"cell",
"SyncCell",
"sync_cell",
"Key",
"ink_primitives",
"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
}
]
}
},
{
"id": {
"custom.name": 6,
"custom.namespace": [
7,
8,
5
],
"custom.params": [
3
]
},
"def": {
"struct.fields": [
{
"name": 9,
"type": 4
}
]
}
},
{
"id": "bool",
"def": "builtin"
},
{
"id": {
"custom.name": 10,
"custom.namespace": [
7,
8,
9,
11
],
"custom.params": [
3
]
},
"def": {
"struct.fields": [
{
"name": 9,
"type": 5
}
]
}
},
{
"id": {
"custom.name": 12,
"custom.namespace": [
13
],
"custom.params": []
},
"def": {
"tuple_struct.types": [
6
]
}
},
{
"id": {
"array.len": 32,
"array.type": 7
},
"def": "builtin"
},
{
"id": "u8",
"def": "builtin"
}
]
},
"storage": {
"struct.type": 1,
"struct.fields": [
{
"name": 5,
"layout": {
"struct.type": 2,
"struct.fields": [
{
"name": 9,
"layout": {
"range.offset": "0x0000000000000000000000000000000000000000000000000000000000000000",
"range.len": 1,
"range.elem_type": 3
}
}
]
}
}
]
},
"contract": {
"name": 2,
"constructors": [
{
"name": 14,
"selector": "[\"0x5E\",\"0xBD\",\"0x88\",\"0xD6\"]",
"args": [
{
"name": 15,
"type": {
"ty": 3,
"display_name": [
16
]
}
}
],
"docs": [
"Constructor that initializes the `bool` value to the given `init_value`."
]
},
{
"name": 17,
"selector": "[\"0x02\",\"0x22\",\"0xFF\",\"0x18\"]",
"args": [],
"docs": [
"Constructor that initializes the `bool` value to `false`.",
"",
"Constructors can delegate to other constructors."
]
}
],
"messages": [
{
"name": 18,
"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": 19,
"selector": "[\"0x25\",\"0x44\",\"0x4A\",\"0xFE\"]",
"mutates": false,
"args": [],
"return_type": {
"ty": 3,
"display_name": [
16
]
},
"docs": [
"Simply returns the current value of our `bool`."
]
}
],
"events": [],
"docs": []
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment