--- /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" + } + } +}