Skip to content

Commit

Permalink
updated schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Oct 23, 2024
1 parent 895e56f commit 6f7891d
Show file tree
Hide file tree
Showing 4 changed files with 287 additions and 95 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -936,22 +936,8 @@
"migrate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MigrateMsg",
"oneOf": [
{
"description": "Migrate from v2.5.0",
"type": "object",
"required": [
"from_v250"
],
"properties": {
"from_v250": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
"type": "object",
"additionalProperties": false
},
"sudo": null,
"responses": {
Expand Down
35 changes: 28 additions & 7 deletions contracts/external/cw-admin-factory/schema/cw-admin-factory.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"properties": {
"admin": {
"description": "The account allowed to execute this contract. If no admin, anyone can execute it.",
"type": ["string", "null"]
"type": [
"string",
"null"
]
}
},
"additionalProperties": false
Expand All @@ -21,11 +24,17 @@
{
"description": "Instantiates the target contract with the provided instantiate message, code ID, and label and updates the contract's admin to be itself.",
"type": "object",
"required": ["instantiate_contract_with_self_admin"],
"required": [
"instantiate_contract_with_self_admin"
],
"properties": {
"instantiate_contract_with_self_admin": {
"type": "object",
"required": ["code_id", "instantiate_msg", "label"],
"required": [
"code_id",
"instantiate_msg",
"label"
],
"properties": {
"code_id": {
"type": "integer",
Expand All @@ -47,11 +56,18 @@
{
"description": "Instantiates the target contract with the provided instantiate message, code ID, label, and salt, via instantiate2 to give a predictable address, and updates the contract's admin to be itself.",
"type": "object",
"required": ["instantiate2_contract_with_self_admin"],
"required": [
"instantiate2_contract_with_self_admin"
],
"properties": {
"instantiate2_contract_with_self_admin": {
"type": "object",
"required": ["code_id", "instantiate_msg", "label", "salt"],
"required": [
"code_id",
"instantiate_msg",
"label",
"salt"
],
"properties": {
"code_id": {
"type": "integer",
Expand All @@ -60,7 +76,10 @@
},
"expect": {
"description": "Optionally specify the expected address and fail if it doesn't match the instantiated contract. This makes it easy for a consumer to validate that they are using the correct address elsewhere.",
"type": ["string", "null"]
"type": [
"string",
"null"
]
},
"instantiate_msg": {
"$ref": "#/definitions/Binary"
Expand Down Expand Up @@ -91,7 +110,9 @@
"oneOf": [
{
"type": "object",
"required": ["admin"],
"required": [
"admin"
],
"properties": {
"admin": {
"type": "object",
Expand Down
Loading

0 comments on commit 6f7891d

Please sign in to comment.