From d7347dd5c02981d75bdbe376daed9f3c4cbdc9b6 Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Mon, 13 Feb 2023 14:05:02 +0100 Subject: [PATCH] Added JSONRPC 2.0 spec (#242) --- protocol/src/pubsub/spec.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 protocol/src/pubsub/spec.json diff --git a/protocol/src/pubsub/spec.json b/protocol/src/pubsub/spec.json new file mode 100644 index 000000000..d1a8f866e --- /dev/null +++ b/protocol/src/pubsub/spec.json @@ -0,0 +1,32 @@ +[ + { + "name": "pubsub_peer", + "returns": "String" + }, + { + "name": "pubsub_listen", + "params": { + "address": "Multiaddr" + }, + "returns": true + }, + { + "name": "pubsub_listeners", + "returns": ["Multiaddr"] + }, + { + "name": "pubsub_connect", + "params": { + "address": "Multiaddr" + }, + "returns": true + }, + { + "name": "pubsub_publish", + "params": { + "topic_name": "String", + "message": "String" + }, + "returns": true + } +]