From 545909fe950e6dbb93f62e0258a57adc7b90bddb Mon Sep 17 00:00:00 2001 From: mr-t Date: Mon, 29 Jan 2024 15:38:16 +0100 Subject: [PATCH] cargo schema --- packages/ics721/schema/ics721.json | 68 +++++++++++++++++++++++++ packages/ics721/schema/raw/execute.json | 68 +++++++++++++++++++++++++ 2 files changed, 136 insertions(+) diff --git a/packages/ics721/schema/ics721.json b/packages/ics721/schema/ics721.json index 7b5e8e18..56202f8d 100644 --- a/packages/ics721/schema/ics721.json +++ b/packages/ics721/schema/ics721.json @@ -174,6 +174,74 @@ } }, "additionalProperties": false + }, + { + "description": "Admin msg in case something goes wrong. As a minimum it clean up states (incoming channel and token metadata), and burn NFT if exists.", + "type": "object", + "required": [ + "admin_clean_and_burn_nft" + ], + "properties": { + "admin_clean_and_burn_nft": { + "type": "object", + "required": [ + "class_id", + "collection", + "owner", + "token_id" + ], + "properties": { + "class_id": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "token_id": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Admin msg in case something goes wrong. As a minimum it clean up state (outgoing channel), and transfer NFT if exists. - transfer NFT if exists", + "type": "object", + "required": [ + "admin_clean_and_unescrow_nft" + ], + "properties": { + "admin_clean_and_unescrow_nft": { + "type": "object", + "required": [ + "class_id", + "collection", + "recipient", + "token_id" + ], + "properties": { + "class_id": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "recipient": { + "type": "string" + }, + "token_id": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ], "definitions": { diff --git a/packages/ics721/schema/raw/execute.json b/packages/ics721/schema/raw/execute.json index 8347abe9..652ac4a3 100644 --- a/packages/ics721/schema/raw/execute.json +++ b/packages/ics721/schema/raw/execute.json @@ -41,6 +41,74 @@ } }, "additionalProperties": false + }, + { + "description": "Admin msg in case something goes wrong. As a minimum it clean up states (incoming channel and token metadata), and burn NFT if exists.", + "type": "object", + "required": [ + "admin_clean_and_burn_nft" + ], + "properties": { + "admin_clean_and_burn_nft": { + "type": "object", + "required": [ + "class_id", + "collection", + "owner", + "token_id" + ], + "properties": { + "class_id": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "owner": { + "type": "string" + }, + "token_id": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false + }, + { + "description": "Admin msg in case something goes wrong. As a minimum it clean up state (outgoing channel), and transfer NFT if exists. - transfer NFT if exists", + "type": "object", + "required": [ + "admin_clean_and_unescrow_nft" + ], + "properties": { + "admin_clean_and_unescrow_nft": { + "type": "object", + "required": [ + "class_id", + "collection", + "recipient", + "token_id" + ], + "properties": { + "class_id": { + "type": "string" + }, + "collection": { + "type": "string" + }, + "recipient": { + "type": "string" + }, + "token_id": { + "type": "string" + } + }, + "additionalProperties": false + } + }, + "additionalProperties": false } ], "definitions": {