Skip to content

Commit

Permalink
update schema
Browse files Browse the repository at this point in the history
  • Loading branch information
larry0x committed Sep 13, 2022
1 parent 2e10714 commit 6dfb0c6
Show file tree
Hide file tree
Showing 43 changed files with 237 additions and 109 deletions.
10 changes: 7 additions & 3 deletions contracts/cw2981-royalties/schema/all_nft_info_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
]
}
},
"additionalProperties": false,
"definitions": {
"Approval": {
"type": "object",
Expand All @@ -44,7 +45,8 @@
"description": "Account that can transfer/send the token",
"type": "string"
}
}
},
"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)",
Expand Down Expand Up @@ -117,7 +119,8 @@
"null"
]
}
}
},
"additionalProperties": false
},
"OwnerOfResponse": {
"type": "object",
Expand All @@ -137,7 +140,8 @@
"description": "Owner of the token",
"type": "string"
}
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"royalty_payments": {
"type": "boolean"
}
}
},
"additionalProperties": false
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"symbol": {
"type": "string"
}
}
},
"additionalProperties": false
}
6 changes: 4 additions & 2 deletions contracts/cw2981-royalties/schema/cw2981_query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -35,7 +36,8 @@
],
"properties": {
"check_royalties": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
27 changes: 18 additions & 9 deletions contracts/cw2981-royalties/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -52,7 +53,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -87,7 +89,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -112,7 +115,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -143,7 +147,8 @@
"operator": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -164,7 +169,8 @@
"operator": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -198,7 +204,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -219,7 +226,8 @@
"msg": {
"$ref": "#/definitions/Empty"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -313,7 +321,8 @@
"null"
]
}
}
},
"additionalProperties": false
},
"Timestamp": {
"description": "A point in time in nanosecond precision.\n\nThis type can represent times from 1970-01-01T00:00:00Z to 2554-07-21T23:34:33Z.\n\n## Examples\n\n``` # use cosmwasm_std::Timestamp; let ts = Timestamp::from_nanos(1_000_000_202); assert_eq!(ts.nanos(), 1_000_000_202); assert_eq!(ts.seconds(), 1); assert_eq!(ts.subsec_nanos(), 202);\n\nlet ts = ts.plus_seconds(2); assert_eq!(ts.nanos(), 3_000_000_202); assert_eq!(ts.seconds(), 3); assert_eq!(ts.subsec_nanos(), 202); ```",
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/instantiate_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"description": "Symbol of the NFT contract",
"type": "string"
}
}
},
"additionalProperties": false
}
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/minter_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"minter": {
"type": "string"
}
}
},
"additionalProperties": false
}
1 change: 1 addition & 0 deletions contracts/cw2981-royalties/schema/nft_info_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
]
}
},
"additionalProperties": false,
"definitions": {
"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)",
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/num_tokens_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"format": "uint64",
"minimum": 0.0
}
}
},
"additionalProperties": false
}
4 changes: 3 additions & 1 deletion contracts/cw2981-royalties/schema/operators_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
}
}
},
"additionalProperties": false,
"definitions": {
"Approval": {
"type": "object",
Expand All @@ -33,7 +34,8 @@
"description": "Account that can transfer/send the token",
"type": "string"
}
}
},
"additionalProperties": false
},
"Expiration": {
"description": "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)",
Expand Down
4 changes: 3 additions & 1 deletion contracts/cw2981-royalties/schema/owner_of_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"type": "string"
}
},
"additionalProperties": false,
"definitions": {
"Approval": {
"type": "object",
Expand All @@ -39,7 +40,8 @@
"description": "Account that can transfer/send the token",
"type": "string"
}
}
},
"additionalProperties": false
},
"Expiration": {
"description": "Expiration represents a point in time when some event happens. It can compare with a BlockInfo and will return is_expired() == true once the condition is hit (and for every block in the future)",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -56,7 +57,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -83,7 +85,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -125,7 +128,8 @@
"null"
]
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -138,7 +142,8 @@
],
"properties": {
"num_tokens": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -151,7 +156,8 @@
],
"properties": {
"contract_info": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -172,7 +178,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -200,7 +207,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -235,7 +243,8 @@
"null"
]
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -264,7 +273,8 @@
"null"
]
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -276,7 +286,8 @@
],
"properties": {
"minter": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -297,7 +308,8 @@
"msg": {
"$ref": "#/definitions/Cw2981QueryMsg"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down Expand Up @@ -326,7 +338,8 @@
"token_id": {
"type": "string"
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
Expand All @@ -339,7 +352,8 @@
],
"properties": {
"check_royalties": {
"type": "object"
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"$ref": "#/definitions/Uint128"
}
},
"additionalProperties": false,
"definitions": {
"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); ```",
Expand Down
3 changes: 2 additions & 1 deletion contracts/cw2981-royalties/schema/tokens_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@
"type": "string"
}
}
}
},
"additionalProperties": false
}
Loading

0 comments on commit 6dfb0c6

Please sign in to comment.