106 lines
2.1 KiB
JSON
106 lines
2.1 KiB
JSON
{
|
|
"metadataVersion": "0.1.0",
|
|
"source": {
|
|
"hash": "0xb6b5fa9791b27da76f1046de45d57bb835a8dfc44f21b223d8d6bb88e5eb5141",
|
|
"language": "ink! 3.0.0-rc1",
|
|
"compiler": "rustc 1.48.0-nightly"
|
|
},
|
|
"contract": {
|
|
"name": "flipper",
|
|
"version": "3.0.0-rc1",
|
|
"authors": [
|
|
"Parity Technologies <admin@parity.io>"
|
|
]
|
|
},
|
|
"spec": {
|
|
"constructors": [
|
|
{
|
|
"args": [
|
|
{
|
|
"name": "init_value",
|
|
"type": {
|
|
"displayName": [
|
|
"bool"
|
|
],
|
|
"type": 1
|
|
}
|
|
}
|
|
],
|
|
"docs": [
|
|
" Creates a new flipper smart contract initialized with the given value."
|
|
],
|
|
"name": [
|
|
"new"
|
|
],
|
|
"selector": "0xd183512b"
|
|
},
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Creates a new flipper smart contract initialized to `false`."
|
|
],
|
|
"name": [
|
|
"default"
|
|
],
|
|
"selector": "0x6a3712e2"
|
|
}
|
|
],
|
|
"docs": [],
|
|
"events": [],
|
|
"messages": [
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Flips the current value of the Flipper's bool."
|
|
],
|
|
"mutates": true,
|
|
"name": [
|
|
"flip"
|
|
],
|
|
"payable": false,
|
|
"returnType": null,
|
|
"selector": "0xc096a5f3"
|
|
},
|
|
{
|
|
"args": [],
|
|
"docs": [
|
|
" Returns the current value of the Flipper's bool."
|
|
],
|
|
"mutates": false,
|
|
"name": [
|
|
"get"
|
|
],
|
|
"payable": false,
|
|
"returnType": {
|
|
"displayName": [
|
|
"bool"
|
|
],
|
|
"type": 1
|
|
},
|
|
"selector": "0x1e5ca456"
|
|
}
|
|
]
|
|
},
|
|
"storage": {
|
|
"struct": {
|
|
"fields": [
|
|
{
|
|
"layout": {
|
|
"cell": {
|
|
"key": "0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
"ty": 1
|
|
}
|
|
},
|
|
"name": "value"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"types": [
|
|
{
|
|
"def": {
|
|
"primitive": "bool"
|
|
}
|
|
}
|
|
]
|
|
} |