Skip to content

Commit 3895f20

Browse files
committed
Re-generate schemas
1 parent 1f10b78 commit 3895f20

File tree

2 files changed

+58
-12
lines changed

2 files changed

+58
-12
lines changed

contracts/reflect/schema/raw/execute.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -532,12 +532,35 @@
532532
},
533533
"ReplyOn": {
534534
"description": "Use this to define when the contract gets a response callback. If you only need it for errors or success you can select just those in order to save gas.",
535-
"type": "string",
536-
"enum": [
537-
"always",
538-
"error",
539-
"success",
540-
"never"
535+
"oneOf": [
536+
{
537+
"description": "Always perform a callback after SubMsg is processed",
538+
"type": "string",
539+
"enum": [
540+
"always"
541+
]
542+
},
543+
{
544+
"description": "Only callback if SubMsg returned an error, no callback on success case",
545+
"type": "string",
546+
"enum": [
547+
"error"
548+
]
549+
},
550+
{
551+
"description": "Only callback if SubMsg was successful, no callback on error case",
552+
"type": "string",
553+
"enum": [
554+
"success"
555+
]
556+
},
557+
{
558+
"description": "Never make a callback - this is like the original CosmosMsg semantics",
559+
"type": "string",
560+
"enum": [
561+
"never"
562+
]
563+
}
541564
]
542565
},
543566
"StakingMsg": {

contracts/reflect/schema/reflect.json

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -542,12 +542,35 @@
542542
},
543543
"ReplyOn": {
544544
"description": "Use this to define when the contract gets a response callback. If you only need it for errors or success you can select just those in order to save gas.",
545-
"type": "string",
546-
"enum": [
547-
"always",
548-
"error",
549-
"success",
550-
"never"
545+
"oneOf": [
546+
{
547+
"description": "Always perform a callback after SubMsg is processed",
548+
"type": "string",
549+
"enum": [
550+
"always"
551+
]
552+
},
553+
{
554+
"description": "Only callback if SubMsg returned an error, no callback on success case",
555+
"type": "string",
556+
"enum": [
557+
"error"
558+
]
559+
},
560+
{
561+
"description": "Only callback if SubMsg was successful, no callback on error case",
562+
"type": "string",
563+
"enum": [
564+
"success"
565+
]
566+
},
567+
{
568+
"description": "Never make a callback - this is like the original CosmosMsg semantics",
569+
"type": "string",
570+
"enum": [
571+
"never"
572+
]
573+
}
551574
]
552575
},
553576
"StakingMsg": {

0 commit comments

Comments
 (0)