Skip to content

Commit

Permalink
Add challenge 0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Oct 12, 2023
1 parent 61f8558 commit 99b79b0
Show file tree
Hide file tree
Showing 18 changed files with 5,319 additions and 0 deletions.
826 changes: 826 additions & 0 deletions abstract/challenge/0.2/execute_msg.json

Large diffs are not rendered by default.

155 changes: 155 additions & 0 deletions abstract/challenge/0.2/instantiate_msg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"required": [
"base",
"module"
],
"properties": {
"base": {
"description": "base instantiate information",
"allOf": [
{
"$ref": "#/definitions/BaseInstantiateMsg"
}
]
},
"module": {
"description": "custom instantiate msg",
"allOf": [
{
"$ref": "#/definitions/ChallengeInstantiateMsg"
}
]
}
},
"additionalProperties": false,
"definitions": {
"BaseInstantiateMsg": {
"description": "Used by Module Factory to instantiate App",
"type": "object",
"required": [
"ans_host_address",
"version_control_address"
],
"properties": {
"ans_host_address": {
"type": "string"
},
"version_control_address": {
"type": "string"
}
},
"additionalProperties": false
},
"ChallengeInstantiateMsg": {
"description": "Challenge instantiate message",
"type": "object",
"required": [
"vote_config"
],
"properties": {
"vote_config": {
"description": "Config for [`SimpleVoting`](abstract_core::objects::voting::SimpleVoting) object",
"allOf": [
{
"$ref": "#/definitions/VoteConfig"
}
]
}
},
"additionalProperties": false
},
"Decimal": {
"description": "A fixed-point decimal value with 18 fractional digits, i.e. Decimal(1_000_000_000_000_000_000) == 1.0\n\nThe greatest possible value that can be represented is 340282366920938463463.374607431768211455 (which is (2^128 - 1) / 10^18)",
"type": "string"
},
"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
}
]
},
"Threshold": {
"oneOf": [
{
"type": "object",
"required": [
"majority"
],
"properties": {
"majority": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"percentage"
],
"properties": {
"percentage": {
"$ref": "#/definitions/Decimal"
}
},
"additionalProperties": false
}
]
},
"VoteConfig": {
"type": "object",
"required": [
"threshold"
],
"properties": {
"threshold": {
"$ref": "#/definitions/Threshold"
},
"veto_duration": {
"description": "Veto duration after the first vote None disables veto",
"anyOf": [
{
"$ref": "#/definitions/Duration"
},
{
"type": "null"
}
]
}
},
"additionalProperties": false
}
}
}
38 changes: 38 additions & 0 deletions abstract/challenge/0.2/migrate_msg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MigrateMsg",
"type": "object",
"required": [
"base",
"module"
],
"properties": {
"base": {
"description": "base migrate information",
"allOf": [
{
"$ref": "#/definitions/BaseMigrateMsg"
}
]
},
"module": {
"description": "custom migrate msg",
"allOf": [
{
"$ref": "#/definitions/Empty"
}
]
}
},
"additionalProperties": false,
"definitions": {
"BaseMigrateMsg": {
"type": "object",
"additionalProperties": false
},
"Empty": {
"description": "An empty struct that serves as a placeholder in different places, such as contracts that don't set a custom message.\n\nIt is designed to be expressable in correct JSON and JSON Schema but contains no meaningful data. Previously we used enums without cases, but those cannot represented as valid JSON Schema (https://github.com/CosmWasm/cosmwasm/issues/451)",
"type": "object"
}
}
}
Loading

0 comments on commit 99b79b0

Please sign in to comment.