From 8484aa77f543dd4482eeca19f4741fe74c6bf73e Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Mon, 01 Nov 2021 13:51:39 +0000 Subject: [PATCH] test: define rpc --- --- /dev/null +++ b/tests/src/substrate/rpc_defs.json @@ -0,0 +1,76 @@ +{ + "nft": { + "accountBalance": { + "description": "Get amount of different user tokens", + "params": [ + { + "name": "collectionId", + "type": "CollectionId" + }, + { + "name": "account", + "type": "CrossAccountId" + }, + { + "isOptional": true, + "name": "at", + "type": "Hash" + } + ], + "type": "u32" + }, + "adminlist": { + "description": "Get admin list", + "params": [ + { + "name": "collectionId", + "type": "CollectionId" + }, + { + "isOptional": true, + "name": "at", + "type": "Hash" + } + ], + "type": "Vec" + }, + "balance": { + "description": "Get amount of specific account token", + "params": [ + { + "name": "collectionId", + "type": "CollectionId" + }, + { + "name": "account", + "type": "CrossAccountId" + }, + { + "name": "tokenId", + "type": "TokenId" + }, + { + "isOptional": true, + "name": "at", + "type": "Hash" + } + ], + "type": "u128" + }, + "lastTokenId": { + "description": "Get last token id", + "params": [ + { + "name": "collectionId", + "type": "CollectionId" + }, + { + "isOptional": true, + "name": "at", + "type": "Hash" + } + ], + "type": "TokenId" + } + } +} -- gitstuff