Skip to content

Commit

Permalink
cargo schema
Browse files Browse the repository at this point in the history
  • Loading branch information
taitruong committed Jan 29, 2024
1 parent dc32c5f commit 545909f
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 0 deletions.
68 changes: 68 additions & 0 deletions packages/ics721/schema/ics721.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
68 changes: 68 additions & 0 deletions packages/ics721/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 545909f

Please sign in to comment.