Skip to content

Commit

Permalink
schema
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Feb 26, 2025
1 parent a27de9f commit b72f8e2
Show file tree
Hide file tree
Showing 10 changed files with 283 additions and 22 deletions.
51 changes: 45 additions & 6 deletions contracts/dao-dao-core/schema/dao-dao-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -645,7 +644,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -661,6 +663,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -2040,7 +2053,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -2064,7 +2076,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -2080,6 +2095,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -3083,7 +3109,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -3107,7 +3132,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -3123,6 +3151,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,17 @@
"format": "uint64",
"minimum": 0.0
},
"staking_salt": {
"description": "Optionally instantiate the staking contract via instantiate2 using this salt.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
},
"unstaking_duration": {
"description": "See corresponding field in cw20-stake's instantiation. This will be used when instantiating the new staking contract.",
"anyOf": [
Expand Down Expand Up @@ -387,11 +398,33 @@
"name": {
"type": "string"
},
"salt": {
"description": "Optionally instantiate the token via instantiate2 using this salt.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
},
"staking_code_id": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"staking_salt": {
"description": "Optionally instantiate the staking contract via instantiate2 using this salt.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
},
"symbol": {
"type": "string"
},
Expand Down
34 changes: 30 additions & 4 deletions contracts/external/dao-migrator/schema/dao-migrator.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -187,7 +186,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -203,6 +205,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -557,7 +570,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -581,7 +593,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -597,6 +612,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -210,7 +209,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -226,6 +228,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -1283,7 +1296,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -1307,7 +1319,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -1323,6 +1338,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -2383,7 +2409,6 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -2407,7 +2432,10 @@
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"type": [
"array",
"null"
],
"items": {
"$ref": "#/definitions/Coin"
}
Expand All @@ -2423,6 +2451,17 @@
"$ref": "#/definitions/Binary"
}
]
},
"salt": {
"description": "Salt to use with instantiate2, if defined. Otherwise uses normal instantiate.",
"anyOf": [
{
"$ref": "#/definitions/Binary"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down
Loading

0 comments on commit b72f8e2

Please sign in to comment.