Skip to content

Commit

Permalink
Update schema files
Browse files Browse the repository at this point in the history
  • Loading branch information
MightOfOaks committed Dec 7, 2023
1 parent ad72c9f commit 451c6ac
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
"airdrop_mint_fee_bps",
"airdrop_mint_price",
"dev_fee_address",
"max_per_address_limit"
"max_per_address_limit",
"max_token_limit"
],
"properties": {
"airdrop_mint_fee_bps": {
Expand All @@ -104,6 +105,11 @@
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"max_token_limit": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
Expand Down
18 changes: 16 additions & 2 deletions contracts/minters/open-edition-minter/schema/config_response.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"type": "object",
"required": [
"admin",
"end_time",
"factory",
"mint_price",
"nft_data",
Expand All @@ -18,7 +17,14 @@
"type": "string"
},
"end_time": {
"$ref": "#/definitions/Timestamp"
"anyOf": [
{
"$ref": "#/definitions/Timestamp"
},
{
"type": "null"
}
]
},
"factory": {
"type": "string"
Expand All @@ -29,6 +35,14 @@
"nft_data": {
"$ref": "#/definitions/NftData"
},
"num_tokens": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"payment_address": {
"anyOf": [
{
Expand Down
13 changes: 13 additions & 0 deletions contracts/minters/open-edition-minter/schema/execute_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,19 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"burn_remaining"
],
"properties": {
"burn_remaining": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down
26 changes: 23 additions & 3 deletions contracts/minters/open-edition-minter/schema/instantiate_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,22 +294,36 @@
"OpenEditionMinterInitMsgExtension": {
"type": "object",
"required": [
"end_time",
"mint_price",
"nft_data",
"per_address_limit",
"start_time"
],
"properties": {
"end_time": {
"$ref": "#/definitions/Timestamp"
"anyOf": [
{
"$ref": "#/definitions/Timestamp"
},
{
"type": "null"
}
]
},
"mint_price": {
"$ref": "#/definitions/Coin"
},
"nft_data": {
"$ref": "#/definitions/NftData"
},
"num_tokens": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"payment_address": {
"type": [
"string",
Expand All @@ -333,7 +347,8 @@
"airdrop_mint_fee_bps",
"airdrop_mint_price",
"dev_fee_address",
"max_per_address_limit"
"max_per_address_limit",
"max_token_limit"
],
"properties": {
"airdrop_mint_fee_bps": {
Expand All @@ -351,6 +366,11 @@
"type": "integer",
"format": "uint32",
"minimum": 0.0
},
"max_token_limit": {
"type": "integer",
"format": "uint32",
"minimum": 0.0
}
},
"additionalProperties": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MintableNumTokensResponse",
"type": "object",
"required": [
"count"
],
"properties": {
"count": {
"type": "integer",
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"type": "object",
"required": [
"admin",
"end_time",
"nft_data",
"per_address_limit",
"start_time"
Expand All @@ -60,11 +59,26 @@
"$ref": "#/definitions/Addr"
},
"end_time": {
"$ref": "#/definitions/Timestamp"
"anyOf": [
{
"$ref": "#/definitions/Timestamp"
},
{
"type": "null"
}
]
},
"nft_data": {
"$ref": "#/definitions/NftData"
},
"num_tokens": {
"type": [
"integer",
"null"
],
"format": "uint32",
"minimum": 0.0
},
"payment_address": {
"anyOf": [
{
Expand Down
13 changes: 13 additions & 0 deletions contracts/minters/open-edition-minter/schema/query_msg.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,19 @@
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"mintable_num_tokens"
],
"properties": {
"mintable_num_tokens": {
"type": "object",
"additionalProperties": false
}
},
"additionalProperties": false
}
]
}

0 comments on commit 451c6ac

Please sign in to comment.