mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-05-21 14:28:58 +08:00
add OpenAPI docs for RPC endpoints, update /v2/pox return based on PR feedback
This commit is contained in:
134
docs/rpc/api/core-node/get-contract-interface.example.json
Normal file
134
docs/rpc/api/core-node/get-contract-interface.example.json
Normal file
@@ -0,0 +1,134 @@
|
||||
{
|
||||
"functions": [
|
||||
{
|
||||
"name": "get-value",
|
||||
"access": "public",
|
||||
"args": [
|
||||
{
|
||||
"name": "key",
|
||||
"type": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"type": {
|
||||
"response": {
|
||||
"ok": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
},
|
||||
"error": "int128"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "set-value",
|
||||
"access": "public",
|
||||
"args": [
|
||||
{
|
||||
"name": "key",
|
||||
"type": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"outputs": {
|
||||
"type": {
|
||||
"response": {
|
||||
"ok": "uint128",
|
||||
"error": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "test-emit-event",
|
||||
"access": "public",
|
||||
"args": [],
|
||||
"outputs": {
|
||||
"type": {
|
||||
"response": {
|
||||
"ok": "uint128",
|
||||
"error": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "test-event-types",
|
||||
"access": "public",
|
||||
"args": [],
|
||||
"outputs": {
|
||||
"type": {
|
||||
"response": {
|
||||
"ok": "uint128",
|
||||
"error": "none"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"variables": [
|
||||
{
|
||||
"name": "recipient",
|
||||
"type": "principal",
|
||||
"access": "constant"
|
||||
},
|
||||
{
|
||||
"name": "sender",
|
||||
"type": "principal",
|
||||
"access": "constant"
|
||||
}
|
||||
],
|
||||
"maps": [
|
||||
{
|
||||
"name": "store",
|
||||
"key": [
|
||||
{
|
||||
"name": "key",
|
||||
"type": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"value": [
|
||||
{
|
||||
"name": "value",
|
||||
"type": {
|
||||
"buffer": {
|
||||
"length": 32
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"fungible_tokens": [
|
||||
{
|
||||
"name": "novel-token-19"
|
||||
}
|
||||
],
|
||||
"non_fungible_tokens": [
|
||||
{
|
||||
"name": "hello-nft",
|
||||
"type": "uint128"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user