Skip to content

Instantly share code, notes, and snippets.

@zone117x
Last active June 21, 2019 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zone117x/d8e9ed24947cf0579f09c295fb67bc07 to your computer and use it in GitHub Desktop.
Save zone117x/d8e9ed24947cf0579f09c295fb67bc07 to your computer and use it in GitHub Desktop.
clarity-contract-interface-json
{
"functions": [
{
"name": "f00",
"access": "private",
"args": [
{
"name": "a1",
"type": "int128"
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f01",
"access": "private",
"args": [
{
"name": "a1",
"type": "bool"
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f02",
"access": "private",
"args": [
{
"name": "a1",
"type": "principal"
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f03",
"access": "private",
"args": [
{
"name": "a1",
"type": {
"buffer": {
"length": 54
}
}
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f04",
"access": "private",
"args": [
{
"name": "a1",
"type": {
"tuple": [
{
"name": "tname1",
"type": "bool"
},
{
"name": "tname2",
"type": "int128"
}
]
}
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f05",
"access": "private",
"args": [
{
"name": "a1",
"type": {
"list": {
"type": "int128",
"length": 7,
"dimension": 6
}
}
}
],
"outputs": {
"type": "bool"
}
},
{
"name": "f06",
"access": "private",
"args": [],
"outputs": {
"type": "int128"
}
},
{
"name": "f07",
"access": "private",
"args": [],
"outputs": {
"type": "bool"
}
},
{
"name": "f08",
"access": "private",
"args": [],
"outputs": {
"type": "principal"
}
},
{
"name": "f09",
"access": "private",
"args": [],
"outputs": {
"type": {
"buffer": {
"length": 4
}
}
}
},
{
"name": "f10",
"access": "private",
"args": [],
"outputs": {
"type": {
"tuple": [
{
"name": "tn1",
"type": "bool"
},
{
"name": "tn2",
"type": "int128"
},
{
"name": "tn3",
"type": {
"buffer": {
"length": 1
}
}
}
]
}
}
},
{
"name": "f11",
"access": "private",
"args": [],
"outputs": {
"type": {
"optional": {
"tuple": [
{
"name": "owner",
"type": "principal"
}
]
}
}
}
},
{
"name": "f12",
"access": "private",
"args": [],
"outputs": {
"type": {
"response": {
"ok": "int128",
"error": "none"
}
}
}
},
{
"name": "f13",
"access": "private",
"args": [],
"outputs": {
"type": {
"response": {
"ok": "none",
"error": "int128"
}
}
}
},
{
"name": "f14",
"access": "private",
"args": [],
"outputs": {
"type": {
"response": {
"ok": "int128",
"error": "int128"
}
}
}
},
{
"name": "f15",
"access": "private",
"args": [],
"outputs": {
"type": {
"list": {
"type": "int128",
"length": 3,
"dimension": 1
}
}
}
},
{
"name": "f16",
"access": "private",
"args": [],
"outputs": {
"type": {
"list": {
"type": "int128",
"length": 2,
"dimension": 3
}
}
}
}
],
"maps": [
{
"name": "name-map",
"key_name": "name",
"key_type": "int128",
"value_name": "owner",
"value_type": "principal"
}
],
"variables": [
{
"name": "var1",
"access": "constant",
"type": "principal"
},
{
"name": "var2",
"access": "constant",
"type": "bool"
},
{
"name": "var3",
"access": "constant",
"type": "int128"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment