Skip to content

Commit

Permalink
Remove unneeded files, generate Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeHartnell committed Sep 14, 2023
1 parent 2e9b705 commit 2ea443d
Show file tree
Hide file tree
Showing 13 changed files with 278 additions and 603 deletions.
62 changes: 62 additions & 0 deletions contracts/dao-dao-core/schema/dao-dao-core.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,21 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"InitialItem": {
"description": "Information about an item to be stored in the items list.",
"type": "object",
Expand All @@ -149,6 +164,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -170,6 +186,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand All @@ -184,6 +207,10 @@
}
},
"additionalProperties": false
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down Expand Up @@ -1159,6 +1186,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -1180,6 +1208,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -2014,6 +2049,21 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"MigrateParams": {
"type": "object",
"required": [
Expand Down Expand Up @@ -2096,6 +2146,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -2117,6 +2168,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -2209,6 +2267,10 @@
},
"additionalProperties": false
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
},
"V1CodeIds": {
"type": "object",
"required": [
Expand Down
58 changes: 58 additions & 0 deletions contracts/external/dao-migrator/schema/dao-migrator.json
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"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"
Expand Down Expand Up @@ -153,6 +168,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -174,6 +190,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -1175,6 +1198,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -1196,6 +1220,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -2077,11 +2108,27 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"ModuleInstantiateInfo": {
"description": "Information needed to instantiate a module.",
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -2103,6 +2150,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -2157,6 +2211,10 @@
"additionalProperties": false
}
]
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,21 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"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"
Expand Down Expand Up @@ -153,6 +168,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -174,6 +190,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -261,6 +284,10 @@
}
]
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
},
"VotingStrategy": {
"description": "Determines how many choices may be selected.",
"oneOf": [
Expand Down Expand Up @@ -1149,6 +1176,7 @@
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -1170,6 +1198,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -1991,11 +2026,27 @@
"description": "Binary is a wrapper around Vec<u8> to add base64 de/serialization with serde. It also adds some helper methods to help encode inline.\n\nThis is only needed as serde-json-{core,wasm} has a horrible encoding for Vec<u8>. See also <https://github.com/CosmWasm/cosmwasm/blob/main/docs/MESSAGE_TYPES.md>.",
"type": "string"
},
"Coin": {
"type": "object",
"required": [
"amount",
"denom"
],
"properties": {
"amount": {
"$ref": "#/definitions/Uint128"
},
"denom": {
"type": "string"
}
}
},
"ModuleInstantiateInfo": {
"description": "Information needed to instantiate a module.",
"type": "object",
"required": [
"code_id",
"funds",
"label",
"msg"
],
Expand All @@ -2017,6 +2068,13 @@
"format": "uint64",
"minimum": 0.0
},
"funds": {
"description": "Funds to be sent to the instantiated contract.",
"type": "array",
"items": {
"$ref": "#/definitions/Coin"
}
},
"label": {
"description": "Label for the instantiated contract.",
"type": "string"
Expand Down Expand Up @@ -2071,6 +2129,10 @@
"additionalProperties": false
}
]
},
"Uint128": {
"description": "A thin wrapper around u128 that is using strings for JSON encoding/decoding, such that the full u128 range can be used for clients that convert JSON numbers to floats, like JavaScript and jq.\n\n# Examples\n\nUse `from` to create instances of this and `u128` to get the value out:\n\n``` # use cosmwasm_std::Uint128; let a = Uint128::from(123u128); assert_eq!(a.u128(), 123);\n\nlet b = Uint128::from(42u64); assert_eq!(b.u128(), 42);\n\nlet c = Uint128::from(70u32); assert_eq!(c.u128(), 70); ```",
"type": "string"
}
}
},
Expand Down
Loading

0 comments on commit 2ea443d

Please sign in to comment.