Skip to content

Commit

Permalink
Updated dao-migrator schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahSaso committed Dec 2, 2023
1 parent 3d8d5c1 commit d26b731
Showing 1 changed file with 152 additions and 0 deletions.
152 changes: 152 additions & 0 deletions contracts/external/dao-migrator/schema/dao-migrator.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,40 @@
}
}
},
"Duration": {
"description": "Duration is a delta of time. You can add it to a BlockInfo or Expiration to move that further in the future. Note that an height-based Duration and a time-based Expiration cannot be combined",
"oneOf": [
{
"type": "object",
"required": [
"height"
],
"properties": {
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
},
{
"description": "Time in seconds",
"type": "object",
"required": [
"time"
],
"properties": {
"time": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
]
},
"MigrationParams": {
"type": "object",
"required": [
Expand Down Expand Up @@ -226,6 +260,16 @@
},
"pre_propose_info": {
"$ref": "#/definitions/PreProposeInfo"
},
"veto": {
"anyOf": [
{
"$ref": "#/definitions/VetoConfig"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -317,6 +361,38 @@
}
},
"additionalProperties": false
},
"VetoConfig": {
"type": "object",
"required": [
"early_execute",
"timelock_duration",
"veto_before_passed",
"vetoer"
],
"properties": {
"early_execute": {
"description": "Whether or not the vetoer can execute a proposal early before the timelock duration has expired",
"type": "boolean"
},
"timelock_duration": {
"description": "The time duration to delay proposal execution for.",
"allOf": [
{
"$ref": "#/definitions/Duration"
}
]
},
"veto_before_passed": {
"description": "Whether or not the vetoer can veto a proposal before it passes.",
"type": "boolean"
},
"vetoer": {
"description": "The address able to veto proposals.",
"type": "string"
}
},
"additionalProperties": false
}
}
},
Expand Down Expand Up @@ -409,6 +485,40 @@
}
}
},
"Duration": {
"description": "Duration is a delta of time. You can add it to a BlockInfo or Expiration to move that further in the future. Note that an height-based Duration and a time-based Expiration cannot be combined",
"oneOf": [
{
"type": "object",
"required": [
"height"
],
"properties": {
"height": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
},
{
"description": "Time in seconds",
"type": "object",
"required": [
"time"
],
"properties": {
"time": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false
}
]
},
"MigrationParams": {
"type": "object",
"required": [
Expand Down Expand Up @@ -544,6 +654,16 @@
},
"pre_propose_info": {
"$ref": "#/definitions/PreProposeInfo"
},
"veto": {
"anyOf": [
{
"$ref": "#/definitions/VetoConfig"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
Expand Down Expand Up @@ -635,6 +755,38 @@
}
},
"additionalProperties": false
},
"VetoConfig": {
"type": "object",
"required": [
"early_execute",
"timelock_duration",
"veto_before_passed",
"vetoer"
],
"properties": {
"early_execute": {
"description": "Whether or not the vetoer can execute a proposal early before the timelock duration has expired",
"type": "boolean"
},
"timelock_duration": {
"description": "The time duration to delay proposal execution for.",
"allOf": [
{
"$ref": "#/definitions/Duration"
}
]
},
"veto_before_passed": {
"description": "Whether or not the vetoer can veto a proposal before it passes.",
"type": "boolean"
},
"vetoer": {
"description": "The address able to veto proposals.",
"type": "string"
}
},
"additionalProperties": false
}
}
},
Expand Down

0 comments on commit d26b731

Please sign in to comment.