-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
5,319 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} |
Oops, something went wrong.