Skip to content

Commit

Permalink
schema and testnet deployment uploaded
Browse files Browse the repository at this point in the history
  • Loading branch information
FloppyDisck committed Nov 4, 2024
1 parent 919c633 commit a989564
Show file tree
Hide file tree
Showing 7 changed files with 643 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .archway/constantine-3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"deployments": [
{
"action": "instantiate",
"txhash": "5FBDAF3C3F6A7D76E867D9CEF0E1A2851D15650C57D0A9943A9A1CECAACDA2DF",
"wasm": {
"codeId": 3884
},
"contract": {
"name": "msig-launcher",
"version": "0.1.0",
"address": "archway1vcmrhn6wcwyskkz5gcmf0qexzmav23hydn3e3czcc64cxj3zp92q0k850a",
"admin": "archway1d4mz3n63m6gm608d2qctleersn2z2xumqjlj7z"
},
"msg": {
"code_ids": {
"main": 1,
"voting": 2,
"proposal": 3,
"pre_proposal": 4,
"cw4": 5
}
}
},
{
"action": "store",
"txhash": "7771A867F4CF647CC77EA0BACEA5F080F3F12452CBC00C6167C410187B15EF94",
"wasm": {
"codeId": 3884,
"checksum": "a99767c142894b2571c3af3699cdfd3bd3cb00c1032391b15eb8d4a861c1ed88"
},
"contract": {
"name": "msig-launcher",
"version": "0.1.0"
}
}
]
}
307 changes: 307 additions & 0 deletions schema/msig-launcher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,307 @@
{
"contract_name": "msig-launcher",
"contract_version": "0.1.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "InstantiateMsg",
"type": "object",
"required": [
"code_ids"
],
"properties": {
"code_ids": {
"$ref": "#/definitions/MSigCodeIds"
}
},
"additionalProperties": false,
"definitions": {
"MSigCodeIds": {
"type": "object",
"required": [
"cw4",
"main",
"pre_proposal",
"proposal",
"voting"
],
"properties": {
"cw4": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"main": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"pre_proposal": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"proposal": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"voting": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
}
},
"execute": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "ExecuteMsg",
"oneOf": [
{
"type": "object",
"required": [
"instantiate"
],
"properties": {
"instantiate": {
"type": "object",
"required": [
"description",
"max_voting_period",
"members",
"min_voting_period",
"name"
],
"properties": {
"description": {
"type": "string"
},
"image_url": {
"type": [
"string",
"null"
]
},
"max_voting_period": {
"description": "Time in seconds",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"members": {
"type": "array",
"items": {
"$ref": "#/definitions/Member"
}
},
"min_voting_period": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"name": {
"type": "string"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"Member": {
"description": "A group member has a weight associated with them. This may all be equal, or may have meaning in the app that makes use of the group (eg. voting power)",
"type": "object",
"required": [
"addr",
"weight"
],
"properties": {
"addr": {
"type": "string"
},
"weight": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
}
}
},
"query": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "QueryMsg",
"oneOf": [
{
"type": "object",
"required": [
"code_ids"
],
"properties": {
"code_ids": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"m_sigs"
],
"properties": {
"m_sigs": {
"type": "object",
"required": [
"pagination"
],
"properties": {
"pagination": {
"$ref": "#/definitions/Pagination"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
"Addr": {
"description": "A human readable address.\n\nIn Cosmos, this is typically bech32 encoded. But for multi-chain smart contracts no assumptions should be made other than being UTF-8 encoded and of reasonable length.\n\nThis type represents a validated address. It can be created in the following ways 1. Use `Addr::unchecked(input)` 2. Use `let checked: Addr = deps.api.addr_validate(input)?` 3. Use `let checked: Addr = deps.api.addr_humanize(canonical_addr)?` 4. Deserialize from JSON. This must only be done from JSON that was validated before such as a contract's state. `Addr` must not be used in messages sent by the user because this would result in unvalidated instances.\n\nThis type is immutable. If you really need to mutate it (Really? Are you sure?), create a mutable copy using `let mut mutable = Addr::to_string()` and operate on that `String` instance.",
"type": "string"
},
"Pagination": {
"type": "object",
"required": [
"user"
],
"properties": {
"limit": {
"type": [
"integer",
"null"
],
"format": "uint8",
"minimum": 0.0
},
"start_at": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
},
"user": {
"$ref": "#/definitions/Addr"
}
},
"additionalProperties": false
}
}
},
"migrate": null,
"sudo": null,
"responses": {
"code_ids": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MSigCodeIds",
"type": "object",
"required": [
"cw4",
"main",
"pre_proposal",
"proposal",
"voting"
],
"properties": {
"cw4": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"main": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"pre_proposal": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"proposal": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"voting": {
"type": "integer",
"format": "uint64",
"minimum": 0.0
}
}
},
"m_sigs": {
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "PageResult",
"type": "object",
"required": [
"data"
],
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/definitions/MSig"
}
},
"next": {
"type": [
"integer",
"null"
],
"format": "uint64",
"minimum": 0.0
}
},
"additionalProperties": false,
"definitions": {
"MSig": {
"type": "object",
"required": [
"cw4_contract",
"dao_dao_contract",
"pre_propose_contract",
"proposal_contract",
"voting_contract"
],
"properties": {
"cw4_contract": {
"type": "string"
},
"dao_dao_contract": {
"description": "Multisig creator",
"type": "string"
},
"pre_propose_contract": {
"type": "string"
},
"proposal_contract": {
"type": "string"
},
"voting_contract": {
"type": "string"
}
}
}
}
}
}
}
Loading

0 comments on commit a989564

Please sign in to comment.