diff --git a/contracts/minter/schema/config_response.json b/contracts/minter/schema/config_response.json index 91275a306..b400751e2 100644 --- a/contracts/minter/schema/config_response.json +++ b/contracts/minter/schema/config_response.json @@ -14,7 +14,7 @@ ], "properties": { "admin": { - "$ref": "#/definitions/Addr" + "type": "string" }, "base_token_uri": { "type": "string" @@ -30,7 +30,7 @@ "minimum": 0.0 }, "sg721_address": { - "$ref": "#/definitions/Addr" + "type": "string" }, "sg721_code_id": { "type": "integer", @@ -44,21 +44,13 @@ "$ref": "#/definitions/Coin" }, "whitelist": { - "anyOf": [ - { - "$ref": "#/definitions/Addr" - }, - { - "type": "null" - } + "type": [ + "string", + "null" ] } }, "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" - }, "Coin": { "type": "object", "required": [ diff --git a/types/contracts/minter/config.d.ts b/types/contracts/minter/config.d.ts index 5f2009cf7..554f8cf51 100644 --- a/types/contracts/minter/config.d.ts +++ b/types/contracts/minter/config.d.ts @@ -1,4 +1,15 @@ -import { Addr, Coin, Timestamp } from "./shared-types"; +import { Coin, Timestamp } from "./shared-types"; + +/** + * A human readable address. + * + * In 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. + * + * This 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. + * + * This 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. + */ +export type Addr = string export interface Config { admin: Addr diff --git a/types/contracts/minter/config_response.d.ts b/types/contracts/minter/config_response.d.ts index 0be670077..0c2d1d91d 100644 --- a/types/contracts/minter/config_response.d.ts +++ b/types/contracts/minter/config_response.d.ts @@ -1,14 +1,14 @@ -import { Addr, Coin, Timestamp } from "./shared-types"; +import { Coin, Timestamp } from "./shared-types"; export interface ConfigResponse { -admin: Addr +admin: string base_token_uri: string num_tokens: number per_address_limit: number -sg721_address: Addr +sg721_address: string sg721_code_id: number start_time: Timestamp unit_price: Coin -whitelist?: (Addr | null) +whitelist?: (string | null) [k: string]: unknown } diff --git a/types/contracts/minter/shared-types.d.ts b/types/contracts/minter/shared-types.d.ts index e9042488e..cc2d8aeb7 100644 --- a/types/contracts/minter/shared-types.d.ts +++ b/types/contracts/minter/shared-types.d.ts @@ -1,13 +1,3 @@ -/** - * A human readable address. - * - * In 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. - * - * This 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. - * - * This 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. - */ -export type Addr = string; /** * A point in time in nanosecond precision. *