diff --git a/Cargo.lock b/Cargo.lock index 6128b4f1c..6742e170e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -271,12 +271,12 @@ dependencies = [ "cw-admin-factory", "cw-utils 1.0.3", "cw20 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "dao-dao-core", "dao-interface", "dao-pre-propose-single", "dao-proposal-single", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "env_logger", "serde", @@ -663,7 +663,7 @@ dependencies = [ [[package]] name = "cw-admin-factory" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -789,7 +789,7 @@ dependencies = [ [[package]] name = "cw-denom" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -806,13 +806,13 @@ dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-multi-test", - "cw-paginate-storage 2.4.1", + "cw-paginate-storage 2.4.2", "cw-storage-plus 1.2.0", "cw-utils 1.0.3", "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "dao-dao-core", "dao-interface", "dao-voting-cw20-staked", @@ -821,7 +821,7 @@ dependencies = [ [[package]] name = "cw-hooks" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -888,7 +888,7 @@ dependencies = [ [[package]] name = "cw-paginate-storage" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-std", "cw-multi-test", @@ -898,7 +898,7 @@ dependencies = [ [[package]] name = "cw-payroll-factory" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -942,7 +942,7 @@ dependencies = [ [[package]] name = "cw-stake-tracker" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -995,7 +995,7 @@ dependencies = [ [[package]] name = "cw-token-swap" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1010,7 +1010,7 @@ dependencies = [ [[package]] name = "cw-tokenfactory-issuer" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1031,7 +1031,7 @@ dependencies = [ [[package]] name = "cw-tokenfactory-types" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1101,7 +1101,7 @@ dependencies = [ [[package]] name = "cw-vesting" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1124,7 +1124,7 @@ dependencies = [ [[package]] name = "cw-wormhole" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1291,7 +1291,7 @@ dependencies = [ [[package]] name = "cw20-stake" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1300,7 +1300,7 @@ dependencies = [ "cw-hooks", "cw-multi-test", "cw-ownable", - "cw-paginate-storage 2.4.1", + "cw-paginate-storage 2.4.2", "cw-storage-plus 1.2.0", "cw-utils 0.13.4", "cw-utils 1.0.3", @@ -1309,13 +1309,13 @@ dependencies = [ "cw20-base 1.1.2", "cw20-stake 0.2.6", "dao-hooks", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "thiserror", ] [[package]] name = "cw20-stake-external-rewards" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1329,7 +1329,7 @@ dependencies = [ "cw20 0.13.4", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "dao-hooks", "stake-cw20-external-rewards", "thiserror", @@ -1337,7 +1337,7 @@ dependencies = [ [[package]] name = "cw20-stake-reward-distributor" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1348,7 +1348,7 @@ dependencies = [ "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "stake-cw20-reward-distributor", "thiserror", ] @@ -1541,7 +1541,7 @@ dependencies = [ [[package]] name = "cw721-controllers" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1552,7 +1552,7 @@ dependencies = [ [[package]] name = "cw721-roles" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1574,7 +1574,7 @@ dependencies = [ [[package]] name = "dao-cw721-extensions" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1584,13 +1584,13 @@ dependencies = [ [[package]] name = "dao-dao-core" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-core", "cw-multi-test", - "cw-paginate-storage 2.4.1", + "cw-paginate-storage 2.4.2", "cw-storage-plus 1.2.0", "cw-utils 1.0.3", "cw2 1.1.2", @@ -1607,13 +1607,13 @@ dependencies = [ [[package]] name = "dao-dao-macros" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-hooks", "dao-interface", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "proc-macro2", "quote", "syn 1.0.109", @@ -1621,19 +1621,19 @@ dependencies = [ [[package]] name = "dao-hooks" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-hooks", "cw4 1.1.2", "dao-pre-propose-base", - "dao-voting 2.4.1", + "dao-voting 2.4.2", ] [[package]] name = "dao-interface" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1646,7 +1646,7 @@ dependencies = [ [[package]] name = "dao-migrator" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1663,7 +1663,7 @@ dependencies = [ "cw20 1.1.2", "cw20-base 1.1.2", "cw20-stake 0.2.6", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "cw20-staked-balance-voting", "cw4 0.13.4", "cw4-voting", @@ -1672,7 +1672,7 @@ dependencies = [ "dao-proposal-single", "dao-testing", "dao-voting 0.1.0", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw4", "thiserror", @@ -1680,13 +1680,13 @@ dependencies = [ [[package]] name = "dao-pre-propose-approval-single" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", "cw-denom", "cw-multi-test", - "cw-paginate-storage 2.4.1", + "cw-paginate-storage 2.4.2", "cw-storage-plus 1.2.0", "cw-utils 1.0.3", "cw2 1.1.2", @@ -1699,7 +1699,7 @@ dependencies = [ "dao-pre-propose-base", "dao-proposal-single", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw4", "thiserror", @@ -1707,7 +1707,7 @@ dependencies = [ [[package]] name = "dao-pre-propose-approver" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1726,14 +1726,14 @@ dependencies = [ "dao-pre-propose-base", "dao-proposal-single", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw4", ] [[package]] name = "dao-pre-propose-base" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1744,14 +1744,14 @@ dependencies = [ "cw-utils 1.0.3", "cw2 1.1.2", "dao-interface", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "serde", "thiserror", ] [[package]] name = "dao-pre-propose-multiple" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1768,14 +1768,14 @@ dependencies = [ "dao-pre-propose-base", "dao-proposal-multiple", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw4", ] [[package]] name = "dao-pre-propose-single" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1793,14 +1793,14 @@ dependencies = [ "dao-pre-propose-base", "dao-proposal-single", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw4", ] [[package]] name = "dao-proposal-condorcet" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1815,14 +1815,14 @@ dependencies = [ "dao-dao-macros", "dao-interface", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw4", "thiserror", ] [[package]] name = "dao-proposal-hook-counter" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1837,14 +1837,14 @@ dependencies = [ "dao-hooks", "dao-interface", "dao-proposal-single", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-balance", "thiserror", ] [[package]] name = "dao-proposal-multiple" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1857,7 +1857,7 @@ dependencies = [ "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "cw4 1.1.2", "cw4-group 1.1.2", "cw721-base 0.18.0", @@ -1868,7 +1868,7 @@ dependencies = [ "dao-pre-propose-multiple", "dao-testing", "dao-voting 0.1.0", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-balance", "dao-voting-cw20-staked", "dao-voting-cw4", @@ -1880,7 +1880,7 @@ dependencies = [ [[package]] name = "dao-proposal-single" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -1896,7 +1896,7 @@ dependencies = [ "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "cw4 1.1.2", "cw4-group 1.1.2", "cw721-base 0.18.0", @@ -1908,7 +1908,7 @@ dependencies = [ "dao-pre-propose-single", "dao-testing", "dao-voting 0.1.0", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-balance", "dao-voting-cw20-staked", "dao-voting-cw4", @@ -1919,7 +1919,7 @@ dependencies = [ [[package]] name = "dao-proposal-sudo" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1933,7 +1933,7 @@ dependencies = [ [[package]] name = "dao-test-custom-factory" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1947,13 +1947,13 @@ dependencies = [ "cw721-base 0.18.0", "dao-dao-macros", "dao-interface", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "thiserror", ] [[package]] name = "dao-testing" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -1967,7 +1967,7 @@ dependencies = [ "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "cw4 1.1.2", "cw4-group 1.1.2", "cw721-base 0.18.0", @@ -1980,7 +1980,7 @@ dependencies = [ "dao-proposal-single", "dao-test-custom-factory", "dao-voting 0.1.0", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-balance", "dao-voting-cw20-staked", "dao-voting-cw4", @@ -2009,7 +2009,7 @@ dependencies = [ [[package]] name = "dao-voting" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "dao-voting-cw20-balance" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -2041,7 +2041,7 @@ dependencies = [ [[package]] name = "dao-voting-cw20-staked" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -2051,16 +2051,16 @@ dependencies = [ "cw2 1.1.2", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "dao-dao-macros", "dao-interface", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "thiserror", ] [[package]] name = "dao-voting-cw4" -version = "2.4.1" +version = "2.4.2" dependencies = [ "cosmwasm-schema", "cosmwasm-std", @@ -2077,7 +2077,7 @@ dependencies = [ [[package]] name = "dao-voting-cw721-roles" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -2101,7 +2101,7 @@ dependencies = [ [[package]] name = "dao-voting-cw721-staked" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -2122,7 +2122,7 @@ dependencies = [ "dao-proposal-single", "dao-test-custom-factory", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "osmosis-std", "osmosis-test-tube", "serde", @@ -2131,7 +2131,7 @@ dependencies = [ [[package]] name = "dao-voting-token-staked" -version = "2.4.1" +version = "2.4.2" dependencies = [ "anyhow", "cosmwasm-schema", @@ -2151,7 +2151,7 @@ dependencies = [ "dao-proposal-single", "dao-test-custom-factory", "dao-testing", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "osmosis-std", "osmosis-test-tube", "serde", @@ -2839,7 +2839,7 @@ dependencies = [ "cw-vesting", "cw20 1.1.2", "cw20-base 1.1.2", - "cw20-stake 2.4.1", + "cw20-stake 2.4.2", "cw721 0.18.0", "cw721-base 0.18.0", "cw721-roles", @@ -2848,7 +2848,7 @@ dependencies = [ "dao-pre-propose-single", "dao-proposal-single", "dao-test-custom-factory", - "dao-voting 2.4.1", + "dao-voting 2.4.2", "dao-voting-cw20-staked", "dao-voting-cw721-staked", "env_logger", diff --git a/Cargo.toml b/Cargo.toml index df0b88c9b..cf72e327a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -17,7 +17,7 @@ resolver = "2" edition = "2021" license = "BSD-3-Clause" repository = "https://github.com/DA0-DA0/dao-contracts" -version = "2.4.1" +version = "2.4.2" [profile.release] codegen-units = 1 @@ -80,43 +80,43 @@ wynd-utils = "0.4" # optional owner. cw-ownable = "0.5" -cw-admin-factory = { path = "./contracts/external/cw-admin-factory", version = "2.4.1" } -cw-denom = { path = "./packages/cw-denom", version = "2.4.1" } -cw-hooks = { path = "./packages/cw-hooks", version = "2.4.1" } -cw-paginate-storage = { path = "./packages/cw-paginate-storage", version = "2.4.1" } -cw-payroll-factory = { path = "./contracts/external/cw-payroll-factory", version = "2.4.1" } -cw-stake-tracker = { path = "./packages/cw-stake-tracker", version = "2.4.1" } -cw-tokenfactory-issuer = { path = "./contracts/external/cw-tokenfactory-issuer", version = "2.4.1", default-features = false } -cw-tokenfactory-types = { path = "./packages/cw-tokenfactory-types", version = "2.4.1", default-features = false } -cw-vesting = { path = "./contracts/external/cw-vesting", version = "2.4.1" } -cw-wormhole = { path = "./packages/cw-wormhole", version = "2.4.1" } -cw20-stake = { path = "./contracts/staking/cw20-stake", version = "2.4.1" } -cw721-controllers = { path = "./packages/cw721-controllers", version = "2.4.1" } -cw721-roles = { path = "./contracts/external/cw721-roles", version = "2.4.1" } -dao-cw721-extensions = { path = "./packages/dao-cw721-extensions", version = "2.4.1" } -dao-dao-core = { path = "./contracts/dao-dao-core", version = "2.4.1" } -dao-dao-macros = { path = "./packages/dao-dao-macros", version = "2.4.1" } -dao-hooks = { path = "./packages/dao-hooks", version = "2.4.1" } -dao-interface = { path = "./packages/dao-interface", version = "2.4.1" } -dao-pre-propose-approval-single = { path = "./contracts/pre-propose/dao-pre-propose-approval-single", version = "2.4.1" } -dao-pre-propose-approver = { path = "./contracts/pre-propose/dao-pre-propose-approver", version = "2.4.1" } -dao-pre-propose-base = { path = "./packages/dao-pre-propose-base", version = "2.4.1" } -dao-pre-propose-multiple = { path = "./contracts/pre-propose/dao-pre-propose-multiple", version = "2.4.1" } -dao-pre-propose-single = { path = "./contracts/pre-propose/dao-pre-propose-single", version = "2.4.1" } -dao-proposal-condorcet = { path = "./contracts/proposal/dao-proposal-condorcet", version = "2.4.1" } -dao-proposal-hook-counter = { path = "./contracts/test/dao-proposal-hook-counter", version = "2.4.1" } -dao-proposal-multiple = { path = "./contracts/proposal/dao-proposal-multiple", version = "2.4.1" } -dao-proposal-single = { path = "./contracts/proposal/dao-proposal-single", version = "2.4.1" } -dao-proposal-sudo = { path = "./contracts/test/dao-proposal-sudo", version = "2.4.1" } -dao-test-custom-factory = { path = "./contracts/test/dao-test-custom-factory", version = "2.4.1" } -dao-testing = { path = "./packages/dao-testing", version = "2.4.1" } -dao-voting = { path = "./packages/dao-voting", version = "2.4.1" } -dao-voting-cw20-balance = { path = "./contracts/test/dao-voting-cw20-balance", version = "2.4.1" } -dao-voting-cw20-staked = { path = "./contracts/voting/dao-voting-cw20-staked", version = "2.4.1" } -dao-voting-cw4 = { path = "./contracts/voting/dao-voting-cw4", version = "2.4.1" } -dao-voting-cw721-roles = { path = "./contracts/voting/dao-voting-cw721-roles", version = "2.4.1" } -dao-voting-cw721-staked = { path = "./contracts/voting/dao-voting-cw721-staked", version = "2.4.1" } -dao-voting-token-staked = { path = "./contracts/voting/dao-voting-token-staked", version = "2.4.1" } +cw-admin-factory = { path = "./contracts/external/cw-admin-factory", version = "2.4.2" } +cw-denom = { path = "./packages/cw-denom", version = "2.4.2" } +cw-hooks = { path = "./packages/cw-hooks", version = "2.4.2" } +cw-paginate-storage = { path = "./packages/cw-paginate-storage", version = "2.4.2" } +cw-payroll-factory = { path = "./contracts/external/cw-payroll-factory", version = "2.4.2" } +cw-stake-tracker = { path = "./packages/cw-stake-tracker", version = "2.4.2" } +cw-tokenfactory-issuer = { path = "./contracts/external/cw-tokenfactory-issuer", version = "2.4.2", default-features = false } +cw-tokenfactory-types = { path = "./packages/cw-tokenfactory-types", version = "2.4.2", default-features = false } +cw-vesting = { path = "./contracts/external/cw-vesting", version = "2.4.2" } +cw-wormhole = { path = "./packages/cw-wormhole", version = "2.4.2" } +cw20-stake = { path = "./contracts/staking/cw20-stake", version = "2.4.2" } +cw721-controllers = { path = "./packages/cw721-controllers", version = "2.4.2" } +cw721-roles = { path = "./contracts/external/cw721-roles", version = "2.4.2" } +dao-cw721-extensions = { path = "./packages/dao-cw721-extensions", version = "2.4.2" } +dao-dao-core = { path = "./contracts/dao-dao-core", version = "2.4.2" } +dao-dao-macros = { path = "./packages/dao-dao-macros", version = "2.4.2" } +dao-hooks = { path = "./packages/dao-hooks", version = "2.4.2" } +dao-interface = { path = "./packages/dao-interface", version = "2.4.2" } +dao-pre-propose-approval-single = { path = "./contracts/pre-propose/dao-pre-propose-approval-single", version = "2.4.2" } +dao-pre-propose-approver = { path = "./contracts/pre-propose/dao-pre-propose-approver", version = "2.4.2" } +dao-pre-propose-base = { path = "./packages/dao-pre-propose-base", version = "2.4.2" } +dao-pre-propose-multiple = { path = "./contracts/pre-propose/dao-pre-propose-multiple", version = "2.4.2" } +dao-pre-propose-single = { path = "./contracts/pre-propose/dao-pre-propose-single", version = "2.4.2" } +dao-proposal-condorcet = { path = "./contracts/proposal/dao-proposal-condorcet", version = "2.4.2" } +dao-proposal-hook-counter = { path = "./contracts/test/dao-proposal-hook-counter", version = "2.4.2" } +dao-proposal-multiple = { path = "./contracts/proposal/dao-proposal-multiple", version = "2.4.2" } +dao-proposal-single = { path = "./contracts/proposal/dao-proposal-single", version = "2.4.2" } +dao-proposal-sudo = { path = "./contracts/test/dao-proposal-sudo", version = "2.4.2" } +dao-test-custom-factory = { path = "./contracts/test/dao-test-custom-factory", version = "2.4.2" } +dao-testing = { path = "./packages/dao-testing", version = "2.4.2" } +dao-voting = { path = "./packages/dao-voting", version = "2.4.2" } +dao-voting-cw20-balance = { path = "./contracts/test/dao-voting-cw20-balance", version = "2.4.2" } +dao-voting-cw20-staked = { path = "./contracts/voting/dao-voting-cw20-staked", version = "2.4.2" } +dao-voting-cw4 = { path = "./contracts/voting/dao-voting-cw4", version = "2.4.2" } +dao-voting-cw721-roles = { path = "./contracts/voting/dao-voting-cw721-roles", version = "2.4.2" } +dao-voting-cw721-staked = { path = "./contracts/voting/dao-voting-cw721-staked", version = "2.4.2" } +dao-voting-token-staked = { path = "./contracts/voting/dao-voting-token-staked", version = "2.4.2" } # v1 dependencies. used for state migrations. cw-core-v1 = { package = "cw-core", version = "0.1.0" } diff --git a/contracts/dao-dao-core/schema/dao-dao-core.json b/contracts/dao-dao-core/schema/dao-dao-core.json index 624208e82..1d92f7af7 100644 --- a/contracts/dao-dao-core/schema/dao-dao-core.json +++ b/contracts/dao-dao-core/schema/dao-dao-core.json @@ -1,6 +1,6 @@ { "contract_name": "dao-dao-core", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -17,10 +17,7 @@ "properties": { "admin": { "description": "Optional Admin with the ability to execute DAO messages directly. Useful for building SubDAOs controlled by a parent DAO. If no admin is specified the contract is set as its own admin so that the admin may be updated later by governance.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "automatically_add_cw20s": { "description": "If true the contract will automatically add received cw20 tokens to its treasury.", @@ -32,10 +29,7 @@ }, "dao_uri": { "description": "Implements the DAO Star standard: ", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "description": { "description": "A description of the core contract.", @@ -43,17 +37,11 @@ }, "image_url": { "description": "An image URL to describe the core module contract.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "initial_items": { "description": "The items to instantiate this DAO with. Items are arbitrary key-value pairs whose contents are controlled by governance.\n\nIt is an error to provide two items with the same key.", - "type": [ - "array", - "null" - ], + "type": ["array", "null"], "items": { "$ref": "#/definitions/InitialItem" } @@ -86,15 +74,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -108,9 +92,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -127,10 +109,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -143,10 +122,7 @@ "InitialItem": { "description": "Information about an item to be stored in the items list.", "type": "object", - "required": [ - "key", - "value" - ], + "required": ["key", "value"], "properties": { "key": { "description": "The name of the item.", @@ -162,12 +138,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -221,15 +192,11 @@ { "description": "Callable by the Admin, if one is configured. Executes messages in order.", "type": "object", - "required": [ - "execute_admin_msgs" - ], + "required": ["execute_admin_msgs"], "properties": { "execute_admin_msgs": { "type": "object", - "required": [ - "msgs" - ], + "required": ["msgs"], "properties": { "msgs": { "type": "array", @@ -246,15 +213,11 @@ { "description": "Callable by proposal modules. The DAO will execute the messages in the hook in order.", "type": "object", - "required": [ - "execute_proposal_hook" - ], + "required": ["execute_proposal_hook"], "properties": { "execute_proposal_hook": { "type": "object", - "required": [ - "msgs" - ], + "required": ["msgs"], "properties": { "msgs": { "type": "array", @@ -271,15 +234,11 @@ { "description": "Pauses the DAO for a set duration. When paused the DAO is unable to execute proposals", "type": "object", - "required": [ - "pause" - ], + "required": ["pause"], "properties": { "pause": { "type": "object", - "required": [ - "duration" - ], + "required": ["duration"], "properties": { "duration": { "$ref": "#/definitions/Duration" @@ -293,9 +252,7 @@ { "description": "Unpauses the DAO", "type": "object", - "required": [ - "unpause" - ], + "required": ["unpause"], "properties": { "unpause": { "type": "object", @@ -307,9 +264,7 @@ { "description": "Executed when the contract receives a cw20 token. Depending on the contract's configuration the contract will automatically add the token to its treasury.", "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -320,9 +275,7 @@ { "description": "Executed when the contract receives a cw721 token. Depending on the contract's configuration the contract will automatically add the token to its treasury.", "type": "object", - "required": [ - "receive_nft" - ], + "required": ["receive_nft"], "properties": { "receive_nft": { "$ref": "#/definitions/Cw721ReceiveMsg" @@ -333,15 +286,11 @@ { "description": "Removes an item from the governance contract's item map.", "type": "object", - "required": [ - "remove_item" - ], + "required": ["remove_item"], "properties": { "remove_item": { "type": "object", - "required": [ - "key" - ], + "required": ["key"], "properties": { "key": { "type": "string" @@ -355,16 +304,11 @@ { "description": "Adds an item to the governance contract's item map. If the item already exists the existing value is overridden. If the item does not exist a new item is added.", "type": "object", - "required": [ - "set_item" - ], + "required": ["set_item"], "properties": { "set_item": { "type": "object", - "required": [ - "key", - "value" - ], + "required": ["key", "value"], "properties": { "key": { "type": "string" @@ -381,18 +325,13 @@ { "description": "Callable by the admin of the contract. If ADMIN is None the admin is set as the contract itself so that it may be updated later by vote. If ADMIN is Some a new admin is proposed and that new admin may become the admin by executing the `AcceptAdminNomination` message.\n\nIf there is already a pending admin nomination the `WithdrawAdminNomination` message must be executed before a new admin may be nominated.", "type": "object", - "required": [ - "nominate_admin" - ], + "required": ["nominate_admin"], "properties": { "nominate_admin": { "type": "object", "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -403,9 +342,7 @@ { "description": "Callable by a nominated admin. Admins are nominated via the `NominateAdmin` message. Accepting a nomination will make the nominated address the new admin.\n\nRequiring that the new admin accepts the nomination before becoming the admin protects against a typo causing the admin to change to an invalid address.", "type": "object", - "required": [ - "accept_admin_nomination" - ], + "required": ["accept_admin_nomination"], "properties": { "accept_admin_nomination": { "type": "object", @@ -417,9 +354,7 @@ { "description": "Callable by the current admin. Withdraws the current admin nomination.", "type": "object", - "required": [ - "withdraw_admin_nomination" - ], + "required": ["withdraw_admin_nomination"], "properties": { "withdraw_admin_nomination": { "type": "object", @@ -431,15 +366,11 @@ { "description": "Callable by the core contract. Replaces the current governance contract config with the provided config.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "$ref": "#/definitions/Config" @@ -453,16 +384,11 @@ { "description": "Updates the list of cw20 tokens this contract has registered.", "type": "object", - "required": [ - "update_cw20_list" - ], + "required": ["update_cw20_list"], "properties": { "update_cw20_list": { "type": "object", - "required": [ - "to_add", - "to_remove" - ], + "required": ["to_add", "to_remove"], "properties": { "to_add": { "type": "array", @@ -485,16 +411,11 @@ { "description": "Updates the list of cw721 tokens this contract has registered.", "type": "object", - "required": [ - "update_cw721_list" - ], + "required": ["update_cw721_list"], "properties": { "update_cw721_list": { "type": "object", - "required": [ - "to_add", - "to_remove" - ], + "required": ["to_add", "to_remove"], "properties": { "to_add": { "type": "array", @@ -517,16 +438,11 @@ { "description": "Updates the governance contract's governance modules. Module instantiate info in `to_add` is used to create new modules and install them.", "type": "object", - "required": [ - "update_proposal_modules" - ], + "required": ["update_proposal_modules"], "properties": { "update_proposal_modules": { "type": "object", - "required": [ - "to_add", - "to_disable" - ], + "required": ["to_add", "to_disable"], "properties": { "to_add": { "description": "NOTE: the pre-propose-base package depends on it being the case that the core module instantiates its proposal module.", @@ -550,15 +466,11 @@ { "description": "Callable by the core contract. Replaces the current voting module with a new one instantiated by the governance contract.", "type": "object", - "required": [ - "update_voting_module" - ], + "required": ["update_voting_module"], "properties": { "update_voting_module": { "type": "object", - "required": [ - "module" - ], + "required": ["module"], "properties": { "module": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -572,16 +484,11 @@ { "description": "Update the core module to add/remove SubDAOs and their charters", "type": "object", - "required": [ - "update_sub_daos" - ], + "required": ["update_sub_daos"], "properties": { "update_sub_daos": { "type": "object", - "required": [ - "to_add", - "to_remove" - ], + "required": ["to_add", "to_remove"], "properties": { "to_add": { "type": "array", @@ -609,15 +516,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -631,9 +534,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -650,16 +551,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -678,15 +574,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -707,10 +599,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -740,10 +629,7 @@ }, "dao_uri": { "description": "The URI for the DAO as defined by the DAOstar standard ", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "description": { "description": "A description of the contract.", @@ -751,10 +637,7 @@ }, "image_url": { "description": "An optional image URL for displaying alongside the contract.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "name": { "description": "The name of the contract.", @@ -767,9 +650,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -779,9 +660,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -791,9 +670,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -803,9 +680,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -816,16 +691,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -840,9 +710,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -852,9 +720,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -864,9 +730,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -879,11 +743,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -900,11 +760,7 @@ "Cw721ReceiveMsg": { "description": "Cw721ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "msg", - "sender", - "token_id" - ], + "required": ["msg", "sender", "token_id"], "properties": { "msg": { "$ref": "#/definitions/Binary" @@ -924,15 +780,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -946,15 +798,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -972,9 +820,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -987,9 +833,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -1011,16 +855,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -1048,18 +887,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -1093,17 +925,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -1127,15 +953,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -1176,10 +998,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -1198,12 +1017,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -1250,16 +1064,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1275,16 +1084,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1300,17 +1104,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1330,9 +1128,7 @@ }, "SubDao": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "description": "The contract address of the SubDAO", @@ -1340,10 +1136,7 @@ }, "charter": { "description": "The purpose/constitution for the SubDAO", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1366,12 +1159,7 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -1379,17 +1167,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1416,24 +1198,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1466,17 +1238,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1503,16 +1269,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1528,15 +1289,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1557,9 +1314,7 @@ { "description": "Get's the DAO's admin. Returns `Addr`.", "type": "object", - "required": [ - "admin" - ], + "required": ["admin"], "properties": { "admin": { "type": "object", @@ -1571,9 +1326,7 @@ { "description": "Get's the currently nominated admin (if any).", "type": "object", - "required": [ - "admin_nomination" - ], + "required": ["admin_nomination"], "properties": { "admin_nomination": { "type": "object", @@ -1585,9 +1338,7 @@ { "description": "Gets the contract's config.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1599,26 +1350,18 @@ { "description": "Gets the token balance for each cw20 registered with the contract.", "type": "object", - "required": [ - "cw20_balances" - ], + "required": ["cw20_balances"], "properties": { "cw20_balances": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1629,26 +1372,18 @@ { "description": "Lists the addresses of the cw20 tokens in this contract's treasury.", "type": "object", - "required": [ - "cw20_token_list" - ], + "required": ["cw20_token_list"], "properties": { "cw20_token_list": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1659,26 +1394,18 @@ { "description": "Lists the addresses of the cw721 tokens in this contract's treasury.", "type": "object", - "required": [ - "cw721_token_list" - ], + "required": ["cw721_token_list"], "properties": { "cw721_token_list": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1689,9 +1416,7 @@ { "description": "Dumps all of the core contract's state in a single query. Useful for frontends as performance for queries is more limited by network times than compute times.", "type": "object", - "required": [ - "dump_state" - ], + "required": ["dump_state"], "properties": { "dump_state": { "type": "object", @@ -1703,15 +1428,11 @@ { "description": "Gets the address associated with an item key.", "type": "object", - "required": [ - "get_item" - ], + "required": ["get_item"], "properties": { "get_item": { "type": "object", - "required": [ - "key" - ], + "required": ["key"], "properties": { "key": { "type": "string" @@ -1725,26 +1446,18 @@ { "description": "Lists all of the items associted with the contract. For example, given the items `{ \"group\": \"foo\", \"subdao\": \"bar\"}` this query would return `[(\"group\", \"foo\"), (\"subdao\", \"bar\")]`.", "type": "object", - "required": [ - "list_items" - ], + "required": ["list_items"], "properties": { "list_items": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1755,9 +1468,7 @@ { "description": "Returns contract version info", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -1769,26 +1480,18 @@ { "description": "Gets all proposal modules associated with the contract.", "type": "object", - "required": [ - "proposal_modules" - ], + "required": ["proposal_modules"], "properties": { "proposal_modules": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1799,26 +1502,18 @@ { "description": "Gets the active proposal modules associated with the contract.", "type": "object", - "required": [ - "active_proposal_modules" - ], + "required": ["active_proposal_modules"], "properties": { "active_proposal_modules": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1829,9 +1524,7 @@ { "description": "Gets the number of active and total proposal modules registered with this module.", "type": "object", - "required": [ - "proposal_module_count" - ], + "required": ["proposal_module_count"], "properties": { "proposal_module_count": { "type": "object", @@ -1843,9 +1536,7 @@ { "description": "Returns information about if the contract is currently paused.", "type": "object", - "required": [ - "pause_info" - ], + "required": ["pause_info"], "properties": { "pause_info": { "type": "object", @@ -1857,9 +1548,7 @@ { "description": "Gets the contract's voting module.", "type": "object", - "required": [ - "voting_module" - ], + "required": ["voting_module"], "properties": { "voting_module": { "type": "object", @@ -1871,26 +1560,18 @@ { "description": "Returns all SubDAOs with their charters in a vec. start_after is bound exclusive and asks for a string address.", "type": "object", - "required": [ - "list_sub_daos" - ], + "required": ["list_sub_daos"], "properties": { "list_sub_daos": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1901,9 +1582,7 @@ { "description": "Implements the DAO Star standard: ", "type": "object", - "required": [ - "dao_u_r_i" - ], + "required": ["dao_u_r_i"], "properties": { "dao_u_r_i": { "type": "object", @@ -1915,24 +1594,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1945,18 +1617,13 @@ { "description": "Returns the total voting power at a given block height.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1974,18 +1641,13 @@ "oneOf": [ { "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", "properties": { "dao_uri": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "params": { "anyOf": [ @@ -2005,9 +1667,7 @@ }, { "type": "object", - "required": [ - "from_compatible" - ], + "required": ["from_compatible"], "properties": { "from_compatible": { "type": "object", @@ -2024,15 +1684,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -2046,9 +1702,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -2065,10 +1719,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -2080,10 +1731,7 @@ }, "MigrateParams": { "type": "object", - "required": [ - "migrator_code_id", - "params" - ], + "required": ["migrator_code_id", "params"], "properties": { "migrator_code_id": { "type": "integer", @@ -2125,16 +1773,11 @@ }, "MigrationModuleParams": { "type": "object", - "required": [ - "proposal_params" - ], + "required": ["proposal_params"], "properties": { "migrate_stake_cw20_manager": { "description": "Rather or not to migrate the stake_cw20 contract and its manager. If this is not set to true and a stake_cw20 contract is detected in the DAO's configuration the migration will be aborted.", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "proposal_params": { "type": "array", @@ -2158,12 +1801,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -2209,9 +1847,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -2223,15 +1859,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -2247,10 +1879,7 @@ "ProposalParams": { "description": "The params we need to provide for migration msgs", "type": "object", - "required": [ - "close_proposal_on_execution_failure", - "pre_propose_info" - ], + "required": ["close_proposal_on_execution_failure", "pre_propose_info"], "properties": { "close_proposal_on_execution_failure": { "type": "boolean" @@ -2263,9 +1892,7 @@ }, "SubDao": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "description": "The contract address of the SubDAO", @@ -2273,10 +1900,7 @@ }, "charter": { "description": "The purpose/constitution for the SubDAO", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -2368,11 +1992,7 @@ "ProposalModule": { "description": "Top level type describing a proposal module.", "type": "object", - "required": [ - "address", - "prefix", - "status" - ], + "required": ["address", "prefix", "status"], "properties": { "address": { "description": "The address of the proposal module.", @@ -2400,10 +2020,7 @@ "ProposalModuleStatus": { "description": "The status of a proposal module.", "type": "string", - "enum": [ - "enabled", - "disabled" - ] + "enum": ["enabled", "disabled"] } } }, @@ -2461,10 +2078,7 @@ }, "dao_uri": { "description": "The URI for the DAO as defined by the DAOstar standard ", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "description": { "description": "A description of the contract.", @@ -2472,10 +2086,7 @@ }, "image_url": { "description": "An optional image URL for displaying alongside the contract.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "name": { "description": "The name of the contract.", @@ -2489,10 +2100,7 @@ "title": "Cw20BalanceResponse", "description": "Returned by the `Cw20Balances` query.", "type": "object", - "required": [ - "addr", - "balance" - ], + "required": ["addr", "balance"], "properties": { "addr": { "description": "The address of the token.", @@ -2557,10 +2165,7 @@ "type": "object", "properties": { "dao_uri": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -2662,10 +2267,7 @@ }, "dao_uri": { "description": "The URI for the DAO as defined by the DAOstar standard ", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "description": { "description": "A description of the contract.", @@ -2673,10 +2275,7 @@ }, "image_url": { "description": "An optional image URL for displaying alongside the contract.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "name": { "description": "The name of the contract.", @@ -2687,10 +2286,7 @@ }, "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -2709,9 +2305,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -2724,9 +2318,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -2737,9 +2329,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -2755,15 +2345,11 @@ "oneOf": [ { "type": "object", - "required": [ - "paused" - ], + "required": ["paused"], "properties": { "paused": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -2776,9 +2362,7 @@ }, { "type": "object", - "required": [ - "unpaused" - ], + "required": ["unpaused"], "properties": { "unpaused": { "type": "object", @@ -2792,11 +2376,7 @@ "ProposalModule": { "description": "Top level type describing a proposal module.", "type": "object", - "required": [ - "address", - "prefix", - "status" - ], + "required": ["address", "prefix", "status"], "properties": { "address": { "description": "The address of the proposal module.", @@ -2824,10 +2404,7 @@ "ProposalModuleStatus": { "description": "The status of a proposal module.", "type": "string", - "enum": [ - "enabled", - "disabled" - ] + "enum": ["enabled", "disabled"] }, "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); ```", @@ -2851,10 +2428,7 @@ "properties": { "item": { "description": "`None` if no item with the provided key was found, `Some` otherwise.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -2863,9 +2437,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -2875,10 +2447,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -2911,9 +2480,7 @@ "definitions": { "SubDao": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "description": "The contract address of the SubDAO", @@ -2921,10 +2488,7 @@ }, "charter": { "description": "The purpose/constitution for the SubDAO", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -2938,15 +2502,11 @@ "oneOf": [ { "type": "object", - "required": [ - "paused" - ], + "required": ["paused"], "properties": { "paused": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -2959,9 +2519,7 @@ }, { "type": "object", - "required": [ - "unpaused" - ], + "required": ["unpaused"], "properties": { "unpaused": { "type": "object", @@ -2978,9 +2536,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -2993,9 +2549,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -3006,9 +2560,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -3072,11 +2624,7 @@ "ProposalModule": { "description": "Top level type describing a proposal module.", "type": "object", - "required": [ - "address", - "prefix", - "status" - ], + "required": ["address", "prefix", "status"], "properties": { "address": { "description": "The address of the proposal module.", @@ -3104,10 +2652,7 @@ "ProposalModuleStatus": { "description": "The status of a proposal module.", "type": "string", - "enum": [ - "enabled", - "disabled" - ] + "enum": ["enabled", "disabled"] } } }, @@ -3115,10 +2660,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -3147,10 +2689,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", diff --git a/contracts/external/cw-admin-factory/schema/cw-admin-factory.json b/contracts/external/cw-admin-factory/schema/cw-admin-factory.json index ea3566137..d3f59be5b 100644 --- a/contracts/external/cw-admin-factory/schema/cw-admin-factory.json +++ b/contracts/external/cw-admin-factory/schema/cw-admin-factory.json @@ -1,6 +1,6 @@ { "contract_name": "cw-admin-factory", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -9,10 +9,7 @@ "properties": { "admin": { "description": "The account allowed to execute this contract. If no admin, anyone can execute it.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -24,17 +21,11 @@ { "description": "Instantiates the target contract with the provided instantiate message and code id and updates the contract's admin to be itself.", "type": "object", - "required": [ - "instantiate_contract_with_self_admin" - ], + "required": ["instantiate_contract_with_self_admin"], "properties": { "instantiate_contract_with_self_admin": { "type": "object", - "required": [ - "code_id", - "instantiate_msg", - "label" - ], + "required": ["code_id", "instantiate_msg", "label"], "properties": { "code_id": { "type": "integer", @@ -67,9 +58,7 @@ "oneOf": [ { "type": "object", - "required": [ - "admin" - ], + "required": ["admin"], "properties": { "admin": { "type": "object", diff --git a/contracts/external/cw-payroll-factory/schema/cw-payroll-factory.json b/contracts/external/cw-payroll-factory/schema/cw-payroll-factory.json index 9023d619f..bef867af3 100644 --- a/contracts/external/cw-payroll-factory/schema/cw-payroll-factory.json +++ b/contracts/external/cw-payroll-factory/schema/cw-payroll-factory.json @@ -1,20 +1,15 @@ { "contract_name": "cw-payroll-factory", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "vesting_code_id" - ], + "required": ["vesting_code_id"], "properties": { "owner": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vesting_code_id": { "type": "integer", @@ -31,9 +26,7 @@ { "description": "Instantiates a new vesting contract that is funded by a cw20 token.", "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -44,16 +37,11 @@ { "description": "Instantiates a new vesting contract that is funded by a native token.", "type": "object", - "required": [ - "instantiate_native_payroll_contract" - ], + "required": ["instantiate_native_payroll_contract"], "properties": { "instantiate_native_payroll_contract": { "type": "object", - "required": [ - "instantiate_msg", - "label" - ], + "required": ["instantiate_msg", "label"], "properties": { "instantiate_msg": { "$ref": "#/definitions/InstantiateMsg" @@ -70,15 +58,11 @@ { "description": "Callable only by the current owner. Updates the code ID used while instantiating vesting contracts.", "type": "object", - "required": [ - "update_code_id" - ], + "required": ["update_code_id"], "properties": { "update_code_id": { "type": "object", - "required": [ - "vesting_code_id" - ], + "required": ["vesting_code_id"], "properties": { "vesting_code_id": { "type": "integer", @@ -94,9 +78,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -112,15 +94,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -144,16 +122,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -164,11 +138,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -188,9 +158,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -203,9 +171,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -216,9 +182,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -251,17 +215,11 @@ }, "description": { "description": "A description for the payment to provide more context.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "owner": { "description": "The optional owner address of the contract. If an owner is specified, the owner may cancel the vesting contract at any time and withdraw unvested funds.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "recipient": { "description": "The receiver address of the vesting tokens.", @@ -318,16 +276,12 @@ { "description": "Vests linearally from `0` to `total`.", "type": "string", - "enum": [ - "saturating_linear" - ] + "enum": ["saturating_linear"] }, { "description": "Vests by linearally interpolating between the provided (seconds, amount) points. The first amount must be zero and the last amount the total vesting amount. `seconds` are seconds since the vest start time.\n\nThere is a problem in the underlying Curve library that doesn't allow zero start values, so the first value of `seconds` must be > 1. To start at a particular time (if you need that level of percision), subtract one from the true start time, and make the first `seconds` value `1`.\n\n", "type": "object", - "required": [ - "piecewise_linear" - ], + "required": ["piecewise_linear"], "properties": { "piecewise_linear": { "type": "array", @@ -374,9 +328,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -387,9 +339,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -408,26 +358,18 @@ { "description": "Returns list of all vesting payment contracts", "type": "object", - "required": [ - "list_vesting_contracts" - ], + "required": ["list_vesting_contracts"], "properties": { "list_vesting_contracts": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -438,26 +380,18 @@ { "description": "Returns list of all vesting payment contracts in reverse", "type": "object", - "required": [ - "list_vesting_contracts_reverse" - ], + "required": ["list_vesting_contracts_reverse"], "properties": { "list_vesting_contracts_reverse": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_before": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -468,32 +402,22 @@ { "description": "Returns list of all vesting payment contracts by who instantiated them", "type": "object", - "required": [ - "list_vesting_contracts_by_instantiator" - ], + "required": ["list_vesting_contracts_by_instantiator"], "properties": { "list_vesting_contracts_by_instantiator": { "type": "object", - "required": [ - "instantiator" - ], + "required": ["instantiator"], "properties": { "instantiator": { "type": "string" }, "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -504,32 +428,22 @@ { "description": "Returns list of all vesting payment contracts by who instantiated them in reverse", "type": "object", - "required": [ - "list_vesting_contracts_by_instantiator_reverse" - ], + "required": ["list_vesting_contracts_by_instantiator_reverse"], "properties": { "list_vesting_contracts_by_instantiator_reverse": { "type": "object", - "required": [ - "instantiator" - ], + "required": ["instantiator"], "properties": { "instantiator": { "type": "string" }, "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_before": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -540,21 +454,14 @@ { "description": "Returns list of all vesting payment contracts by recipient", "type": "object", - "required": [ - "list_vesting_contracts_by_recipient" - ], + "required": ["list_vesting_contracts_by_recipient"], "properties": { "list_vesting_contracts_by_recipient": { "type": "object", - "required": [ - "recipient" - ], + "required": ["recipient"], "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, @@ -562,10 +469,7 @@ "type": "string" }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -576,21 +480,14 @@ { "description": "Returns list of all vesting payment contracts by recipient in reverse", "type": "object", - "required": [ - "list_vesting_contracts_by_recipient_reverse" - ], + "required": ["list_vesting_contracts_by_recipient_reverse"], "properties": { "list_vesting_contracts_by_recipient_reverse": { "type": "object", - "required": [ - "recipient" - ], + "required": ["recipient"], "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, @@ -598,10 +495,7 @@ "type": "string" }, "start_before": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -612,9 +506,7 @@ { "description": "Returns info about the contract ownership, if set", "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -626,9 +518,7 @@ { "description": "Returns the code ID currently being used to instantiate vesting contracts.", "type": "object", - "required": [ - "code_id" - ], + "required": ["code_id"], "properties": { "code_id": { "type": "object", @@ -659,11 +549,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -689,11 +575,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -719,11 +601,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -749,11 +627,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -779,11 +653,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -809,11 +679,7 @@ "definitions": { "VestingContract": { "type": "object", - "required": [ - "contract", - "instantiator", - "recipient" - ], + "required": ["contract", "instantiator", "recipient"], "properties": { "contract": { "type": "string" @@ -881,9 +747,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -896,9 +760,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -909,9 +771,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", diff --git a/contracts/external/cw-token-swap/schema/cw-token-swap.json b/contracts/external/cw-token-swap/schema/cw-token-swap.json index a6ce7f574..d3860bd7c 100644 --- a/contracts/external/cw-token-swap/schema/cw-token-swap.json +++ b/contracts/external/cw-token-swap/schema/cw-token-swap.json @@ -1,15 +1,12 @@ { "contract_name": "cw-token-swap", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "counterparty_one", - "counterparty_two" - ], + "required": ["counterparty_one", "counterparty_two"], "properties": { "counterparty_one": { "$ref": "#/definitions/Counterparty" @@ -23,10 +20,7 @@ "Counterparty": { "description": "Information about a counterparty in this escrow transaction and their promised funds.", "type": "object", - "required": [ - "address", - "promise" - ], + "required": ["address", "promise"], "properties": { "address": { "description": "The address of the counterparty.", @@ -49,16 +43,11 @@ { "description": "A native token.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -75,16 +64,11 @@ { "description": "A cw20 token.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "object", - "required": [ - "amount", - "contract_addr" - ], + "required": ["amount", "contract_addr"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -113,9 +97,7 @@ { "description": "Used to provide cw20 tokens to satisfy a funds promise.", "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -126,9 +108,7 @@ { "description": "Provides native tokens to satisfy a funds promise.", "type": "object", - "required": [ - "fund" - ], + "required": ["fund"], "properties": { "fund": { "type": "object", @@ -140,9 +120,7 @@ { "description": "Withdraws provided funds. Only allowed if the other counterparty has yet to provide their promised funds.", "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -160,11 +138,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -190,9 +164,7 @@ "oneOf": [ { "type": "object", - "required": [ - "status" - ], + "required": ["status"], "properties": { "status": { "type": "object", @@ -215,10 +187,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "StatusResponse", "type": "object", - "required": [ - "counterparty_one", - "counterparty_two" - ], + "required": ["counterparty_one", "counterparty_two"], "properties": { "counterparty_one": { "$ref": "#/definitions/CheckedCounterparty" @@ -235,11 +204,7 @@ }, "CheckedCounterparty": { "type": "object", - "required": [ - "address", - "promise", - "provided" - ], + "required": ["address", "promise", "provided"], "properties": { "address": { "$ref": "#/definitions/Addr" @@ -257,16 +222,11 @@ "oneOf": [ { "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -282,16 +242,11 @@ }, { "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "object", - "required": [ - "amount", - "contract_addr" - ], + "required": ["amount", "contract_addr"], "properties": { "amount": { "$ref": "#/definitions/Uint128" diff --git a/contracts/external/cw-tokenfactory-issuer/schema/cw-tokenfactory-issuer.json b/contracts/external/cw-tokenfactory-issuer/schema/cw-tokenfactory-issuer.json index 5a5ca6b86..d5be1154b 100644 --- a/contracts/external/cw-tokenfactory-issuer/schema/cw-tokenfactory-issuer.json +++ b/contracts/external/cw-tokenfactory-issuer/schema/cw-tokenfactory-issuer.json @@ -1,6 +1,6 @@ { "contract_name": "cw-tokenfactory-issuer", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -10,15 +10,11 @@ { "description": "`NewToken` will create a new token when instantiate the contract. Newly created token will have full denom as `factory//`. It will be attached to the contract setup the beforesend listener automatically.", "type": "object", - "required": [ - "new_token" - ], + "required": ["new_token"], "properties": { "new_token": { "type": "object", - "required": [ - "subdenom" - ], + "required": ["subdenom"], "properties": { "subdenom": { "description": "component of fulldenom (`factory//`).", @@ -33,15 +29,11 @@ { "description": "`ExistingToken` will use already created token. So to set this up, Token Factory admin for the existing token needs trasfer admin over to this contract, and optionally set the `BeforeSendHook` manually.", "type": "object", - "required": [ - "existing_token" - ], + "required": ["existing_token"], "properties": { "existing_token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "type": "string" @@ -62,16 +54,11 @@ { "description": "Allow adds the target address to the allowlist to be able to send or recieve tokens even if the token is frozen. Token Factory's BeforeSendHook listener must be set to this contract in order for this feature to work.\n\nThis functionality is intedended for DAOs who do not wish to have a their tokens liquid while bootstrapping their DAO. For example, a DAO may wish to white list a Token Staking contract (to allow users to stake their tokens in the DAO) or a Merkle Drop contract (to allow users to claim their tokens).", "type": "object", - "required": [ - "allow" - ], + "required": ["allow"], "properties": { "allow": { "type": "object", - "required": [ - "address", - "status" - ], + "required": ["address", "status"], "properties": { "address": { "type": "string" @@ -88,16 +75,11 @@ { "description": "Burn token to address. Burn allowance is required and wiil be deducted after successful burn.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount", - "from_address" - ], + "required": ["amount", "from_address"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -114,16 +96,11 @@ { "description": "Mint token to address. Mint allowance is required and wiil be deducted after successful mint.", "type": "object", - "required": [ - "mint" - ], + "required": ["mint"], "properties": { "mint": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -140,16 +117,11 @@ { "description": "Deny adds the target address to the denylist, whis prevents them from sending/receiving the token attached to this contract tokenfactory's BeforeSendHook listener must be set to this contract in order for this feature to work as intended.", "type": "object", - "required": [ - "deny" - ], + "required": ["deny"], "properties": { "deny": { "type": "object", - "required": [ - "address", - "status" - ], + "required": ["address", "status"], "properties": { "address": { "type": "string" @@ -166,15 +138,11 @@ { "description": "Block every token transfers of the token attached to this contract. Token Factory's BeforeSendHook listener must be set to this contract in order for this feature to work as intended.", "type": "object", - "required": [ - "freeze" - ], + "required": ["freeze"], "properties": { "freeze": { "type": "object", - "required": [ - "status" - ], + "required": ["status"], "properties": { "status": { "type": "boolean" @@ -188,17 +156,11 @@ { "description": "Force transfer token from one address to another.", "type": "object", - "required": [ - "force_transfer" - ], + "required": ["force_transfer"], "properties": { "force_transfer": { "type": "object", - "required": [ - "amount", - "from_address", - "to_address" - ], + "required": ["amount", "from_address", "to_address"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -218,15 +180,11 @@ { "description": "Attempt to SetBeforeSendHook on the token attached to this contract. This will fail if the chain does not support bank module hooks (many Token Factory implementations do not yet support).\n\nThis takes a cosmwasm_address as an argument, which is the address of the contract that will be called before every token transfer. Normally, this will be the issuer contract itself, though it can be a custom contract for greater flexibility.\n\nSetting the address to an empty string will remove the SetBeforeSendHook.\n\nThis method can only be called by the contract owner.", "type": "object", - "required": [ - "set_before_send_hook" - ], + "required": ["set_before_send_hook"], "properties": { "set_before_send_hook": { "type": "object", - "required": [ - "cosmwasm_address" - ], + "required": ["cosmwasm_address"], "properties": { "cosmwasm_address": { "type": "string" @@ -240,16 +198,11 @@ { "description": "Grant/revoke burn allowance.", "type": "object", - "required": [ - "set_burner_allowance" - ], + "required": ["set_burner_allowance"], "properties": { "set_burner_allowance": { "type": "object", - "required": [ - "address", - "allowance" - ], + "required": ["address", "allowance"], "properties": { "address": { "type": "string" @@ -266,15 +219,11 @@ { "description": "Set denom metadata. see: https://docs.cosmos.network/main/modules/bank#denom-metadata.", "type": "object", - "required": [ - "set_denom_metadata" - ], + "required": ["set_denom_metadata"], "properties": { "set_denom_metadata": { "type": "object", - "required": [ - "metadata" - ], + "required": ["metadata"], "properties": { "metadata": { "$ref": "#/definitions/Metadata" @@ -288,16 +237,11 @@ { "description": "Grant/revoke mint allowance.", "type": "object", - "required": [ - "set_minter_allowance" - ], + "required": ["set_minter_allowance"], "properties": { "set_minter_allowance": { "type": "object", - "required": [ - "address", - "allowance" - ], + "required": ["address", "allowance"], "properties": { "address": { "type": "string" @@ -314,15 +258,11 @@ { "description": "Updates the admin of the Token Factory token. Normally this is the cw-tokenfactory-issuer contract itself. This is intended to be used only if you seek to transfer ownership of the Token somewhere else (i.e. to another management contract).", "type": "object", - "required": [ - "update_token_factory_admin" - ], + "required": ["update_token_factory_admin"], "properties": { "update_token_factory_admin": { "type": "object", - "required": [ - "new_admin" - ], + "required": ["new_admin"], "properties": { "new_admin": { "type": "string" @@ -336,9 +276,7 @@ { "description": "Updates the owner of this contract who is allowed to call privileged methods. NOTE: this is separate from the Token Factory token admin, for this contract to work at all, it needs to the be the Token Factory token admin.\n\nNormally, the contract owner will be a DAO.\n\nThe `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -354,15 +292,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -386,27 +320,19 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, "DenomUnit": { "description": "DenomUnit represents a struct that describes a given denomination unit of the basic token.", "type": "object", - "required": [ - "aliases", - "denom", - "exponent" - ], + "required": ["aliases", "denom", "exponent"], "properties": { "aliases": { "description": "aliases is a list of string aliases for the given denom", @@ -433,9 +359,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -448,9 +372,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -461,9 +383,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -540,9 +460,7 @@ { "description": "Returns if token transfer is disabled. Response: IsFrozenResponse", "type": "object", - "required": [ - "is_frozen" - ], + "required": ["is_frozen"], "properties": { "is_frozen": { "type": "object", @@ -554,9 +472,7 @@ { "description": "Returns the token denom that this contract is the admin for. Response: DenomResponse", "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "type": "object", @@ -567,9 +483,7 @@ }, { "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -581,15 +495,11 @@ { "description": "Returns the burn allowance of the specified address. Response: AllowanceResponse", "type": "object", - "required": [ - "burn_allowance" - ], + "required": ["burn_allowance"], "properties": { "burn_allowance": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -603,26 +513,18 @@ { "description": "Enumerates over all burn allownances. Response: AllowancesResponse", "type": "object", - "required": [ - "burn_allowances" - ], + "required": ["burn_allowances"], "properties": { "burn_allowances": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -633,15 +535,11 @@ { "description": "Returns the mint allowance of the specified user. Response: AllowanceResponse", "type": "object", - "required": [ - "mint_allowance" - ], + "required": ["mint_allowance"], "properties": { "mint_allowance": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -655,26 +553,18 @@ { "description": "Enumerates over all mint allownances. Response: AllowancesResponse", "type": "object", - "required": [ - "mint_allowances" - ], + "required": ["mint_allowances"], "properties": { "mint_allowances": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -685,15 +575,11 @@ { "description": "Returns wether the user is on denylist or not. Response: StatusResponse", "type": "object", - "required": [ - "is_denied" - ], + "required": ["is_denied"], "properties": { "is_denied": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -707,26 +593,18 @@ { "description": "Enumerates over all addresses on the denylist. Response: DenylistResponse", "type": "object", - "required": [ - "denylist" - ], + "required": ["denylist"], "properties": { "denylist": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -737,15 +615,11 @@ { "description": "Returns wether the user is on the allowlist or not. Response: StatusResponse", "type": "object", - "required": [ - "is_allowed" - ], + "required": ["is_allowed"], "properties": { "is_allowed": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -759,26 +633,18 @@ { "description": "Enumerates over all addresses on the allowlist. Response: AllowlistResponse", "type": "object", - "required": [ - "allowlist" - ], + "required": ["allowlist"], "properties": { "allowlist": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -789,9 +655,7 @@ { "description": "Returns information about the BeforeSendHook for the token. Note: many Token Factory chains do not yet support this feature.\n\nThe information returned is: - Whether features in this contract that require MsgBeforeSendHook are enabled. - The address of the BeforeSendHook contract if configured.\n\nResponse: BeforeSendHookInfo", "type": "object", - "required": [ - "before_send_hook_info" - ], + "required": ["before_send_hook_info"], "properties": { "before_send_hook_info": { "type": "object", @@ -810,17 +674,11 @@ "oneOf": [ { "type": "object", - "required": [ - "block_before_send" - ], + "required": ["block_before_send"], "properties": { "block_before_send": { "type": "object", - "required": [ - "amount", - "from", - "to" - ], + "required": ["amount", "from", "to"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -841,10 +699,7 @@ "definitions": { "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -866,9 +721,7 @@ "title": "AllowlistResponse", "description": "Returns a list of addresses currently on the allowlist", "type": "object", - "required": [ - "allowlist" - ], + "required": ["allowlist"], "properties": { "allowlist": { "type": "array", @@ -882,10 +735,7 @@ "StatusInfo": { "description": "Account info for list queries related to allowlist and denylist", "type": "object", - "required": [ - "address", - "status" - ], + "required": ["address", "status"], "properties": { "address": { "type": "string" @@ -903,9 +753,7 @@ "title": "BeforeSendHookInfo", "description": "Whether or not features that require MsgBeforeSendHook are enabled Many Token Factory chains do not yet support MsgBeforeSendHook", "type": "object", - "required": [ - "advanced_features_enabled" - ], + "required": ["advanced_features_enabled"], "properties": { "advanced_features_enabled": { "description": "Whether or not features in this contract that require MsgBeforeSendHook are enabled.", @@ -913,10 +761,7 @@ }, "hook_contract_address": { "description": "The address of the contract that implements the BeforeSendHook interface. Most often this will be the cw_tokenfactory_issuer contract itself.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -926,9 +771,7 @@ "title": "AllowanceResponse", "description": "Returns a mint or burn allowance for a particular address, representing the amount of tokens the account is allowed to mint or burn", "type": "object", - "required": [ - "allowance" - ], + "required": ["allowance"], "properties": { "allowance": { "$ref": "#/definitions/Uint128" @@ -947,9 +790,7 @@ "title": "AllowancesResponse", "description": "Returns a list of all mint or burn allowances", "type": "object", - "required": [ - "allowances" - ], + "required": ["allowances"], "properties": { "allowances": { "type": "array", @@ -963,10 +804,7 @@ "AllowanceInfo": { "description": "Information about a particular account and its mint / burn allowances. Used in list queries.", "type": "object", - "required": [ - "address", - "allowance" - ], + "required": ["address", "allowance"], "properties": { "address": { "type": "string" @@ -988,9 +826,7 @@ "title": "DenomResponse", "description": "Returns the full denomination for the Token Factory token. For example: `factory/{contract address}/{subdenom}`", "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "type": "string" @@ -1003,9 +839,7 @@ "title": "DenylistResponse", "description": "Returns a list of addresses currently on the denylist.", "type": "object", - "required": [ - "denylist" - ], + "required": ["denylist"], "properties": { "denylist": { "type": "array", @@ -1019,10 +853,7 @@ "StatusInfo": { "description": "Account info for list queries related to allowlist and denylist", "type": "object", - "required": [ - "address", - "status" - ], + "required": ["address", "status"], "properties": { "address": { "type": "string" @@ -1040,9 +871,7 @@ "title": "StatusResponse", "description": "Whether a particular account is allowed or denied", "type": "object", - "required": [ - "status" - ], + "required": ["status"], "properties": { "status": { "type": "boolean" @@ -1055,9 +884,7 @@ "title": "StatusResponse", "description": "Whether a particular account is allowed or denied", "type": "object", - "required": [ - "status" - ], + "required": ["status"], "properties": { "status": { "type": "boolean" @@ -1070,9 +897,7 @@ "title": "IsFrozenResponse", "description": "Returns whether or not the Token Factory token is frozen and transfers are disabled.", "type": "object", - "required": [ - "is_frozen" - ], + "required": ["is_frozen"], "properties": { "is_frozen": { "type": "boolean" @@ -1085,9 +910,7 @@ "title": "AllowanceResponse", "description": "Returns a mint or burn allowance for a particular address, representing the amount of tokens the account is allowed to mint or burn", "type": "object", - "required": [ - "allowance" - ], + "required": ["allowance"], "properties": { "allowance": { "$ref": "#/definitions/Uint128" @@ -1106,9 +929,7 @@ "title": "AllowancesResponse", "description": "Returns a list of all mint or burn allowances", "type": "object", - "required": [ - "allowances" - ], + "required": ["allowances"], "properties": { "allowances": { "type": "array", @@ -1122,10 +943,7 @@ "AllowanceInfo": { "description": "Information about a particular account and its mint / burn allowances. Used in list queries.", "type": "object", - "required": [ - "address", - "allowance" - ], + "required": ["address", "allowance"], "properties": { "address": { "type": "string" @@ -1194,9 +1012,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1209,9 +1025,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1222,9 +1036,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", diff --git a/contracts/external/cw-vesting/schema/cw-vesting.json b/contracts/external/cw-vesting/schema/cw-vesting.json index 15fb7846e..feec5706b 100644 --- a/contracts/external/cw-vesting/schema/cw-vesting.json +++ b/contracts/external/cw-vesting/schema/cw-vesting.json @@ -1,6 +1,6 @@ { "contract_name": "cw-vesting", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -26,17 +26,11 @@ }, "description": { "description": "A description for the payment to provide more context.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "owner": { "description": "The optional owner address of the contract. If an owner is specified, the owner may cancel the vesting contract at any time and withdraw unvested funds.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "recipient": { "description": "The receiver address of the vesting tokens.", @@ -93,16 +87,12 @@ { "description": "Vests linearally from `0` to `total`.", "type": "string", - "enum": [ - "saturating_linear" - ] + "enum": ["saturating_linear"] }, { "description": "Vests by linearally interpolating between the provided (seconds, amount) points. The first amount must be zero and the last amount the total vesting amount. `seconds` are seconds since the vest start time.\n\nThere is a problem in the underlying Curve library that doesn't allow zero start values, so the first value of `seconds` must be > 1. To start at a particular time (if you need that level of percision), subtract one from the true start time, and make the first `seconds` value `1`.\n\n", "type": "object", - "required": [ - "piecewise_linear" - ], + "required": ["piecewise_linear"], "properties": { "piecewise_linear": { "type": "array", @@ -149,9 +139,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -162,9 +150,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -183,9 +169,7 @@ { "description": "Fund the contract with a cw20 token. The `msg` field must have the shape `{\"fund\":{}}`, and the amount sent must be the same as the amount to be vested (as set during instantiation). Anyone may call this method so long as the contract has not yet been funded.", "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -196,9 +180,7 @@ { "description": "Distribute vested tokens to the vest receiver. Anyone may call this method.", "type": "object", - "required": [ - "distribute" - ], + "required": ["distribute"], "properties": { "distribute": { "type": "object", @@ -223,9 +205,7 @@ { "description": "Cancels the vesting payment. The current amount vested becomes the total amount that will ever vest, and all pending and future staking rewards from tokens staked by this contract will be sent to the owner. Tote that canceling does not impact already vested tokens.\n\nUpon canceling, the contract will use any liquid tokens in the contract to settle pending payments to the vestee, and then returns the rest to the owner. Staked tokens are then split between the owner and the vestee according to the number of tokens that the vestee is entitled to.\n\nThe vestee will no longer receive staking rewards after cancelation, and may unbond and distribute (vested - claimed) tokens at their leisure. the owner will receive staking rewards and may unbond and withdraw (staked - (vested - claimed)) tokens at their leisure.", "type": "object", - "required": [ - "cancel" - ], + "required": ["cancel"], "properties": { "cancel": { "type": "object", @@ -237,16 +217,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address. Note: this only works with the native staking denom of a Cosmos chain. Only callable by Vesting Payment Recipient.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "description": "The amount to delegate.", @@ -269,17 +244,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L96). `delegator_address` is automatically filled with the current contract's address. Only callable by Vesting Payment Recipient.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -299,16 +268,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address. Only callable by Vesting Payment Recipient.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "description": "The amount to delegate", @@ -331,15 +295,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L31-L37). `delegator_address` is automatically filled with the current contract's address. Only callable by Vesting Payment Recipient.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -353,15 +313,11 @@ { "description": "This is translated to a [MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The validator to claim rewards for.", @@ -376,9 +332,7 @@ { "description": "If the owner cancels a payment and there are not enough liquid tokens to settle the owner may become entitled to some number of staked tokens. They may then unbond those tokens and then call this method to return them.", "type": "object", - "required": [ - "withdraw_canceled_payment" - ], + "required": ["withdraw_canceled_payment"], "properties": { "withdraw_canceled_payment": { "type": "object", @@ -403,18 +357,11 @@ { "description": "Registers a slash event bonded or unbonding tokens with the contract. Only callable by the owner as the contract is unable to verify that the slash actually occured. The owner is assumed to be honest.\n\nA future version of this contract may be able to permissionlessly take slashing evidence: ", "type": "object", - "required": [ - "register_slash" - ], + "required": ["register_slash"], "properties": { "register_slash": { "type": "object", - "required": [ - "amount", - "during_unbonding", - "time", - "validator" - ], + "required": ["amount", "during_unbonding", "time", "validator"], "properties": { "amount": { "description": "The number of tokens that THIS CONTRACT lost as a result of the slash. Note that this differs from the total amount slashed from the validator.", @@ -449,9 +396,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -467,15 +412,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -499,16 +440,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -519,11 +456,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -543,9 +476,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -558,9 +489,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -571,9 +500,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -609,9 +536,7 @@ { "description": "Get the current ownership.", "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -623,9 +548,7 @@ { "description": "Returns information about the vesting contract and the status of the payment.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -637,9 +560,7 @@ { "description": "Returns the number of tokens currently claimable by the vestee. This is the minimum of the number of unstaked tokens in the contract, and the number of tokens that have been vested at time t.", "type": "object", - "required": [ - "distributable" - ], + "required": ["distributable"], "properties": { "distributable": { "type": "object", @@ -664,9 +585,7 @@ { "description": "Gets the current value of `vested(t)`. If `t` is `None`, the current time is used.", "type": "object", - "required": [ - "vested" - ], + "required": ["vested"], "properties": { "vested": { "type": "object", @@ -690,9 +609,7 @@ { "description": "Gets the total amount that will ever vest, `max(vested(t))`.\n\nNote that if the contract is canceled at time c, this value will change to `vested(c)`. Thus, it can not be assumed to be constant over the contract's lifetime.", "type": "object", - "required": [ - "total_to_vest" - ], + "required": ["total_to_vest"], "properties": { "total_to_vest": { "type": "object", @@ -704,9 +621,7 @@ { "description": "Gets the amount of time between the vest starting, and it completing. Returns `None` if the vest has been cancelled.", "type": "object", - "required": [ - "vest_duration" - ], + "required": ["vest_duration"], "properties": { "vest_duration": { "type": "object", @@ -718,9 +633,7 @@ { "description": "Queries information about the contract's understanding of it's bonded and unbonding token balances. See the `StakeTrackerQuery` in `packages/cw-stake-tracker/lib.rs` for query methods and their return types.", "type": "object", - "required": [ - "stake" - ], + "required": ["stake"], "properties": { "stake": { "$ref": "#/definitions/StakeTrackerQuery" @@ -734,15 +647,11 @@ "oneOf": [ { "type": "object", - "required": [ - "cardinality" - ], + "required": ["cardinality"], "properties": { "cardinality": { "type": "object", - "required": [ - "t" - ], + "required": ["t"], "properties": { "t": { "$ref": "#/definitions/Timestamp" @@ -755,15 +664,11 @@ }, { "type": "object", - "required": [ - "total_staked" - ], + "required": ["total_staked"], "properties": { "total_staked": { "type": "object", - "required": [ - "t" - ], + "required": ["t"], "properties": { "t": { "$ref": "#/definitions/Timestamp" @@ -776,16 +681,11 @@ }, { "type": "object", - "required": [ - "validator_staked" - ], + "required": ["validator_staked"], "properties": { "validator_staked": { "type": "object", - "required": [ - "t", - "validator" - ], + "required": ["t", "validator"], "properties": { "t": { "$ref": "#/definitions/Timestamp" @@ -851,10 +751,7 @@ "$ref": "#/definitions/CheckedDenom" }, "description": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "recipient": { "$ref": "#/definitions/Addr" @@ -897,9 +794,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -910,9 +805,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -926,15 +819,11 @@ "oneOf": [ { "type": "object", - "required": [ - "constant" - ], + "required": ["constant"], "properties": { "constant": { "type": "object", - "required": [ - "y" - ], + "required": ["y"], "properties": { "y": { "$ref": "#/definitions/Uint128" @@ -946,9 +835,7 @@ }, { "type": "object", - "required": [ - "saturating_linear" - ], + "required": ["saturating_linear"], "properties": { "saturating_linear": { "$ref": "#/definitions/SaturatingLinear" @@ -958,9 +845,7 @@ }, { "type": "object", - "required": [ - "piecewise_linear" - ], + "required": ["piecewise_linear"], "properties": { "piecewise_linear": { "$ref": "#/definitions/PiecewiseLinear" @@ -973,9 +858,7 @@ "PiecewiseLinear": { "description": "This is a generalization of SaturatingLinear, steps must be arranged with increasing time (u64). Any point before first step gets the first value, after last step the last value. Otherwise, it is a linear interpolation between the two closest points. Vec of length 1 -> Constant Vec of length 2 -> SaturatingLinear", "type": "object", - "required": [ - "steps" - ], + "required": ["steps"], "properties": { "steps": { "type": "array", @@ -1000,12 +883,7 @@ "SaturatingLinear": { "description": "min_y for all x <= min_x, max_y for all x >= max_x, linear in between", "type": "object", - "required": [ - "max_x", - "max_y", - "min_x", - "min_y" - ], + "required": ["max_x", "max_y", "min_x", "min_y"], "properties": { "max_x": { "type": "integer", @@ -1029,22 +907,15 @@ "oneOf": [ { "type": "string", - "enum": [ - "unfunded", - "funded" - ] + "enum": ["unfunded", "funded"] }, { "type": "object", - "required": [ - "canceled" - ], + "required": ["canceled"], "properties": { "canceled": { "type": "object", - "required": [ - "owner_withdrawable" - ], + "required": ["owner_withdrawable"], "properties": { "owner_withdrawable": { "description": "owner_withdrawable(t). This is monotonically decreasing and will be zero once the owner has completed withdrawing their funds.", @@ -1132,9 +1003,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1147,9 +1016,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1160,9 +1027,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", diff --git a/contracts/external/cw721-roles/schema/cw721-roles.json b/contracts/external/cw721-roles/schema/cw721-roles.json index 384b9cd65..a2c647b8a 100644 --- a/contracts/external/cw721-roles/schema/cw721-roles.json +++ b/contracts/external/cw721-roles/schema/cw721-roles.json @@ -1,16 +1,12 @@ { "contract_name": "cw721-roles", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "minter", - "name", - "symbol" - ], + "required": ["minter", "name", "symbol"], "properties": { "minter": { "description": "The minter is the only one who can create new NFTs. This is designed for a base NFT that is controlled by an external program or contract. You will likely replace this with custom logic in custom NFTs", @@ -35,16 +31,11 @@ { "description": "Transfer is a base message to move a token to another account without triggering actions", "type": "object", - "required": [ - "transfer_nft" - ], + "required": ["transfer_nft"], "properties": { "transfer_nft": { "type": "object", - "required": [ - "recipient", - "token_id" - ], + "required": ["recipient", "token_id"], "properties": { "recipient": { "type": "string" @@ -61,17 +52,11 @@ { "description": "Send is a base message to transfer a token to a contract and trigger an action on the receiving contract.", "type": "object", - "required": [ - "send_nft" - ], + "required": ["send_nft"], "properties": { "send_nft": { "type": "object", - "required": [ - "contract", - "msg", - "token_id" - ], + "required": ["contract", "msg", "token_id"], "properties": { "contract": { "type": "string" @@ -91,16 +76,11 @@ { "description": "Allows operator to transfer / send the token from the owner's account. If expiration is set, then this allowance has a time/height limit", "type": "object", - "required": [ - "approve" - ], + "required": ["approve"], "properties": { "approve": { "type": "object", - "required": [ - "spender", - "token_id" - ], + "required": ["spender", "token_id"], "properties": { "expires": { "anyOf": [ @@ -127,16 +107,11 @@ { "description": "Remove previously granted Approval", "type": "object", - "required": [ - "revoke" - ], + "required": ["revoke"], "properties": { "revoke": { "type": "object", - "required": [ - "spender", - "token_id" - ], + "required": ["spender", "token_id"], "properties": { "spender": { "type": "string" @@ -153,15 +128,11 @@ { "description": "Allows operator to transfer / send any token from the owner's account. If expiration is set, then this allowance has a time/height limit", "type": "object", - "required": [ - "approve_all" - ], + "required": ["approve_all"], "properties": { "approve_all": { "type": "object", - "required": [ - "operator" - ], + "required": ["operator"], "properties": { "expires": { "anyOf": [ @@ -185,15 +156,11 @@ { "description": "Remove previously granted ApproveAll permission", "type": "object", - "required": [ - "revoke_all" - ], + "required": ["revoke_all"], "properties": { "revoke_all": { "type": "object", - "required": [ - "operator" - ], + "required": ["operator"], "properties": { "operator": { "type": "string" @@ -207,17 +174,11 @@ { "description": "Mint a new NFT, can only be called by the contract minter", "type": "object", - "required": [ - "mint" - ], + "required": ["mint"], "properties": { "mint": { "type": "object", - "required": [ - "extension", - "owner", - "token_id" - ], + "required": ["extension", "owner", "token_id"], "properties": { "extension": { "description": "Any custom extension used by this contract", @@ -237,10 +198,7 @@ }, "token_uri": { "description": "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -251,15 +209,11 @@ { "description": "Burn an NFT the sender has access to", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "token_id": { "type": "string" @@ -273,15 +227,11 @@ { "description": "Extension msg", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ExecuteExt" @@ -295,9 +245,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -313,15 +261,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -345,16 +289,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -367,15 +307,11 @@ { "description": "Add a new hook to be informed of all membership changes. Must be called by Admin", "type": "object", - "required": [ - "add_hook" - ], + "required": ["add_hook"], "properties": { "add_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -389,15 +325,11 @@ { "description": "Remove a hook. Must be called by Admin", "type": "object", - "required": [ - "remove_hook" - ], + "required": ["remove_hook"], "properties": { "remove_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -411,24 +343,17 @@ { "description": "Update the token_uri for a particular NFT. Must be called by minter / admin", "type": "object", - "required": [ - "update_token_uri" - ], + "required": ["update_token_uri"], "properties": { "update_token_uri": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "token_id": { "type": "string" }, "token_uri": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -439,16 +364,11 @@ { "description": "Updates the voting weight of a token. Must be called by minter / admin", "type": "object", - "required": [ - "update_token_weight" - ], + "required": ["update_token_weight"], "properties": { "update_token_weight": { "type": "object", - "required": [ - "token_id", - "weight" - ], + "required": ["token_id", "weight"], "properties": { "token_id": { "type": "string" @@ -467,21 +387,14 @@ { "description": "Udates the role of a token. Must be called by minter / admin", "type": "object", - "required": [ - "update_token_role" - ], + "required": ["update_token_role"], "properties": { "update_token_role": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "role": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "token_id": { "type": "string" @@ -500,9 +413,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -515,9 +426,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -528,9 +437,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -543,16 +450,11 @@ }, "MetadataExt": { "type": "object", - "required": [ - "weight" - ], + "required": ["weight"], "properties": { "role": { "description": "Optional on-chain role for this member, can be used by other contracts to enforce permissions", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "weight": { "description": "The voting weight of this role", @@ -584,22 +486,15 @@ { "description": "Return the owner of the given token, error if token does not exist", "type": "object", - "required": [ - "owner_of" - ], + "required": ["owner_of"], "properties": { "owner_of": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "include_expired": { "description": "unset or false will filter out expired approvals, you must set to true to see them", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "token_id": { "type": "string" @@ -613,22 +508,14 @@ { "description": "Return operator that can access all of the owner's tokens.", "type": "object", - "required": [ - "approval" - ], + "required": ["approval"], "properties": { "approval": { "type": "object", - "required": [ - "spender", - "token_id" - ], + "required": ["spender", "token_id"], "properties": { "include_expired": { - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "spender": { "type": "string" @@ -645,21 +532,14 @@ { "description": "Return approvals that a token has", "type": "object", - "required": [ - "approvals" - ], + "required": ["approvals"], "properties": { "approvals": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "include_expired": { - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "token_id": { "type": "string" @@ -673,22 +553,14 @@ { "description": "Return approval of a given operator for all tokens of an owner, error if not set", "type": "object", - "required": [ - "operator" - ], + "required": ["operator"], "properties": { "operator": { "type": "object", - "required": [ - "operator", - "owner" - ], + "required": ["operator", "owner"], "properties": { "include_expired": { - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "operator": { "type": "string" @@ -705,28 +577,18 @@ { "description": "List all operators that can access all of the owner's tokens", "type": "object", - "required": [ - "all_operators" - ], + "required": ["all_operators"], "properties": { "all_operators": { "type": "object", - "required": [ - "owner" - ], + "required": ["owner"], "properties": { "include_expired": { "description": "unset or false will filter out expired items, you must set to true to see them", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, @@ -734,10 +596,7 @@ "type": "string" }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -748,9 +607,7 @@ { "description": "Total number of tokens issued", "type": "object", - "required": [ - "num_tokens" - ], + "required": ["num_tokens"], "properties": { "num_tokens": { "type": "object", @@ -762,9 +619,7 @@ { "description": "With MetaData Extension. Returns top-level metadata about the contract", "type": "object", - "required": [ - "contract_info" - ], + "required": ["contract_info"], "properties": { "contract_info": { "type": "object", @@ -776,15 +631,11 @@ { "description": "With MetaData Extension. Returns metadata about one particular token, based on *ERC721 Metadata JSON Schema* but directly from the contract", "type": "object", - "required": [ - "nft_info" - ], + "required": ["nft_info"], "properties": { "nft_info": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "token_id": { "type": "string" @@ -798,22 +649,15 @@ { "description": "With MetaData Extension. Returns the result of both `NftInfo` and `OwnerOf` as one query as an optimization for clients", "type": "object", - "required": [ - "all_nft_info" - ], + "required": ["all_nft_info"], "properties": { "all_nft_info": { "type": "object", - "required": [ - "token_id" - ], + "required": ["token_id"], "properties": { "include_expired": { "description": "unset or false will filter out expired approvals, you must set to true to see them", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "token_id": { "type": "string" @@ -827,21 +671,14 @@ { "description": "With Enumerable extension. Returns all tokens owned by the given address, [] if unset.", "type": "object", - "required": [ - "tokens" - ], + "required": ["tokens"], "properties": { "tokens": { "type": "object", - "required": [ - "owner" - ], + "required": ["owner"], "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, @@ -849,10 +686,7 @@ "type": "string" }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -863,26 +697,18 @@ { "description": "With Enumerable extension. Requires pagination. Lists all token_ids controlled by the contract.", "type": "object", - "required": [ - "all_tokens" - ], + "required": ["all_tokens"], "properties": { "all_tokens": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -893,9 +719,7 @@ { "description": "Return the minter", "type": "object", - "required": [ - "minter" - ], + "required": ["minter"], "properties": { "minter": { "type": "object", @@ -907,15 +731,11 @@ { "description": "Extension query", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/QueryExt" @@ -929,9 +749,7 @@ { "description": "Query the contract's ownership information", "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -947,18 +765,13 @@ { "description": "Total weight at a given height", "type": "object", - "required": [ - "total_weight" - ], + "required": ["total_weight"], "properties": { "total_weight": { "type": "object", "properties": { "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -971,26 +784,18 @@ { "description": "Returns a list of Members", "type": "object", - "required": [ - "list_members" - ], + "required": ["list_members"], "properties": { "list_members": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1001,24 +806,17 @@ { "description": "Returns the weight of a certain member", "type": "object", - "required": [ - "member" - ], + "required": ["member"], "properties": { "member": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" }, "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1031,9 +829,7 @@ { "description": "Shows all registered hooks.", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "object", @@ -1053,10 +849,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "AllNftInfoResponse_for_QueryExt", "type": "object", - "required": [ - "access", - "info" - ], + "required": ["access", "info"], "properties": { "access": { "description": "Who can transfer the token", @@ -1079,10 +872,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1105,9 +895,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1120,9 +908,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1133,9 +919,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1148,9 +932,7 @@ }, "NftInfoResponse_for_QueryExt": { "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "description": "You can add any custom metadata here when you extend cw721-base", @@ -1162,20 +944,14 @@ }, "token_uri": { "description": "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false }, "OwnerOfResponse": { "type": "object", - "required": [ - "approvals", - "owner" - ], + "required": ["approvals", "owner"], "properties": { "approvals": { "description": "If set this address is approved to transfer/send the token as well", @@ -1196,18 +972,13 @@ { "description": "Total weight at a given height", "type": "object", - "required": [ - "total_weight" - ], + "required": ["total_weight"], "properties": { "total_weight": { "type": "object", "properties": { "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1220,26 +991,18 @@ { "description": "Returns a list of Members", "type": "object", - "required": [ - "list_members" - ], + "required": ["list_members"], "properties": { "list_members": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1250,24 +1013,17 @@ { "description": "Returns the weight of a certain member", "type": "object", - "required": [ - "member" - ], + "required": ["member"], "properties": { "member": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" }, "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1280,9 +1036,7 @@ { "description": "Shows all registered hooks.", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "object", @@ -1311,9 +1065,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OperatorsResponse", "type": "object", - "required": [ - "operators" - ], + "required": ["operators"], "properties": { "operators": { "type": "array", @@ -1326,10 +1078,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1352,9 +1101,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1367,9 +1114,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1380,9 +1125,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1411,9 +1154,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TokensResponse", "type": "object", - "required": [ - "tokens" - ], + "required": ["tokens"], "properties": { "tokens": { "description": "Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.", @@ -1429,9 +1170,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ApprovalResponse", "type": "object", - "required": [ - "approval" - ], + "required": ["approval"], "properties": { "approval": { "$ref": "#/definitions/Approval" @@ -1441,10 +1180,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1467,9 +1203,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1482,9 +1216,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1495,9 +1227,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1526,9 +1256,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ApprovalsResponse", "type": "object", - "required": [ - "approvals" - ], + "required": ["approvals"], "properties": { "approvals": { "type": "array", @@ -1541,10 +1269,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1567,9 +1292,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1582,9 +1305,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1595,9 +1316,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1626,10 +1345,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ContractInfoResponse", "type": "object", - "required": [ - "name", - "symbol" - ], + "required": ["name", "symbol"], "properties": { "name": { "type": "string" @@ -1652,10 +1368,7 @@ "type": "object", "properties": { "minter": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1664,9 +1377,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "NftInfoResponse_for_QueryExt", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "description": "You can add any custom metadata here when you extend cw721-base", @@ -1678,10 +1389,7 @@ }, "token_uri": { "description": "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false, @@ -1691,18 +1399,13 @@ { "description": "Total weight at a given height", "type": "object", - "required": [ - "total_weight" - ], + "required": ["total_weight"], "properties": { "total_weight": { "type": "object", "properties": { "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1715,26 +1418,18 @@ { "description": "Returns a list of Members", "type": "object", - "required": [ - "list_members" - ], + "required": ["list_members"], "properties": { "list_members": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1745,24 +1440,17 @@ { "description": "Returns the weight of a certain member", "type": "object", - "required": [ - "member" - ], + "required": ["member"], "properties": { "member": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" }, "at_height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1775,9 +1463,7 @@ { "description": "Shows all registered hooks.", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "object", @@ -1794,9 +1480,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "NumTokensResponse", "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "type": "integer", @@ -1810,9 +1494,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OperatorResponse", "type": "object", - "required": [ - "approval" - ], + "required": ["approval"], "properties": { "approval": { "$ref": "#/definitions/Approval" @@ -1822,10 +1504,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1848,9 +1527,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1863,9 +1540,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1876,9 +1551,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1907,10 +1580,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OwnerOfResponse", "type": "object", - "required": [ - "approvals", - "owner" - ], + "required": ["approvals", "owner"], "properties": { "approvals": { "description": "If set this address is approved to transfer/send the token as well", @@ -1928,10 +1598,7 @@ "definitions": { "Approval": { "type": "object", - "required": [ - "expires", - "spender" - ], + "required": ["expires", "spender"], "properties": { "expires": { "description": "When the Approval expires (maybe Expiration::never)", @@ -1954,9 +1621,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1969,9 +1634,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1982,9 +1645,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -2017,10 +1678,7 @@ "properties": { "owner": { "description": "The contract's current owner. `None` if the ownership has been renounced.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "pending_expiry": { "description": "The deadline for the pending owner to accept the ownership. `None` if there isn't a pending ownership transfer, or if a transfer exists and it doesn't have a deadline.", @@ -2035,10 +1693,7 @@ }, "pending_owner": { "description": "The account who has been proposed to take over the ownership. `None` if there isn't a pending ownership transfer.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false, @@ -2049,9 +1704,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -2064,9 +1717,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -2077,9 +1728,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -2108,9 +1757,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TokensResponse", "type": "object", - "required": [ - "tokens" - ], + "required": ["tokens"], "properties": { "tokens": { "description": "Contains all token_ids in lexicographical ordering If there are more than `limit`, use `start_after` in future queries to achieve pagination.", diff --git a/contracts/external/dao-migrator/schema/dao-migrator.json b/contracts/external/dao-migrator/schema/dao-migrator.json index e1398a568..b65cb4247 100644 --- a/contracts/external/dao-migrator/schema/dao-migrator.json +++ b/contracts/external/dao-migrator/schema/dao-migrator.json @@ -1,17 +1,12 @@ { "contract_name": "dao-migrator", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "migration_params", - "sub_daos", - "v1_code_ids", - "v2_code_ids" - ], + "required": ["migration_params", "sub_daos", "v1_code_ids", "v2_code_ids"], "properties": { "migration_params": { "$ref": "#/definitions/MigrationParams" @@ -37,15 +32,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -59,9 +50,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -78,10 +67,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -96,9 +82,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -111,9 +95,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -127,16 +109,11 @@ }, "MigrationParams": { "type": "object", - "required": [ - "proposal_params" - ], + "required": ["proposal_params"], "properties": { "migrate_stake_cw20_manager": { "description": "Rather or not to migrate the stake_cw20 contract and its manager. If this is not set to true and a stake_cw20 contract is detected in the DAO's configuration the migration will be aborted.", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "proposal_params": { "description": "List of (address, ProposalParams) where `address` is an address of a proposal module currently part of the DAO.", @@ -161,12 +138,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -212,9 +184,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -226,15 +196,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -250,10 +216,7 @@ "ProposalParams": { "description": "The params we need to provide for migration msgs", "type": "object", - "required": [ - "close_proposal_on_execution_failure", - "pre_propose_info" - ], + "required": ["close_proposal_on_execution_failure", "pre_propose_info"], "properties": { "close_proposal_on_execution_failure": { "type": "boolean" @@ -276,9 +239,7 @@ }, "SubDao": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "description": "The contract address of the SubDAO", @@ -286,10 +247,7 @@ }, "charter": { "description": "The purpose/constitution for the SubDAO", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -400,12 +358,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ExecuteMsg", "type": "object", - "required": [ - "migration_params", - "sub_daos", - "v1_code_ids", - "v2_code_ids" - ], + "required": ["migration_params", "sub_daos", "v1_code_ids", "v2_code_ids"], "properties": { "migration_params": { "$ref": "#/definitions/MigrationParams" @@ -431,15 +384,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -453,9 +402,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -472,10 +419,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -490,9 +434,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -505,9 +447,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -521,16 +461,11 @@ }, "MigrationParams": { "type": "object", - "required": [ - "proposal_params" - ], + "required": ["proposal_params"], "properties": { "migrate_stake_cw20_manager": { "description": "Rather or not to migrate the stake_cw20 contract and its manager. If this is not set to true and a stake_cw20 contract is detected in the DAO's configuration the migration will be aborted.", - "type": [ - "boolean", - "null" - ] + "type": ["boolean", "null"] }, "proposal_params": { "description": "List of (address, ProposalParams) where `address` is an address of a proposal module currently part of the DAO.", @@ -555,12 +490,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -606,9 +536,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -620,15 +548,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -644,10 +568,7 @@ "ProposalParams": { "description": "The params we need to provide for migration msgs", "type": "object", - "required": [ - "close_proposal_on_execution_failure", - "pre_propose_info" - ], + "required": ["close_proposal_on_execution_failure", "pre_propose_info"], "properties": { "close_proposal_on_execution_failure": { "type": "boolean" @@ -670,9 +591,7 @@ }, "SubDao": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "description": "The contract address of the SubDAO", @@ -680,10 +599,7 @@ }, "charter": { "description": "The purpose/constitution for the SubDAO", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false diff --git a/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json b/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json index 5a8ab208a..647016af0 100644 --- a/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json +++ b/contracts/pre-propose/dao-pre-propose-approval-single/schema/dao-pre-propose-approval-single.json @@ -1,15 +1,12 @@ { "contract_name": "dao-pre-propose-approval-single", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "extension", - "open_proposal_submission" - ], + "required": ["extension", "open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit requirements for this module. None if no deposit.", @@ -42,23 +39,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -68,15 +59,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -90,15 +77,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -113,9 +96,7 @@ }, "InstantiateExt": { "type": "object", - "required": [ - "approver" - ], + "required": ["approver"], "properties": { "approver": { "type": "string" @@ -133,9 +114,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -146,9 +125,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -161,11 +138,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -196,10 +169,7 @@ }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] } } }, @@ -210,15 +180,11 @@ { "description": "Creates a new proposal in the pre-propose module. MSG will be serialized and used as the proposal creation message.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ProposeMessage" @@ -232,15 +198,11 @@ { "description": "Updates the configuration of this module. This will completely override the existing configuration. This new configuration will only apply to proposals created after the config is updated. Only the DAO may execute this message.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "anyOf": [ @@ -264,9 +226,7 @@ { "description": "Withdraws funds inside of this contract to the message sender. The contracts entire balance for the specifed DENOM is withdrawn to the message sender. Only the DAO may call this method.\n\nThis is intended only as an escape hatch in the event of a critical bug in this contract or it's proposal module. Withdrawing funds will cause future attempts to return proposal deposits to fail their transactions as the contract will have insufficent balance to return them. In the case of `cw-proposal-single` this transaction failure will cause the module to remove the pre-propose module from its proposal hook receivers.\n\nMore likely than not, this should NEVER BE CALLED unless a bug in this contract or the proposal module it is associated with has caused it to stop receiving proposal hook messages, or if a critical security vulnerability has been found that allows an attacker to drain proposal deposits.", "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -291,15 +251,11 @@ { "description": "Extension message. Contracts that extend this one should put their custom execute logic here. The default implementation will do nothing if this variant is executed.", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ExecuteExt" @@ -313,15 +269,11 @@ { "description": "Adds a proposal submitted hook. Fires when a new proposal is submitted to the pre-propose contract. Only the DAO may call this method.", "type": "object", - "required": [ - "add_proposal_submitted_hook" - ], + "required": ["add_proposal_submitted_hook"], "properties": { "add_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -335,15 +287,11 @@ { "description": "Removes a proposal submitted hook. Only the DAO may call this method.", "type": "object", - "required": [ - "remove_proposal_submitted_hook" - ], + "required": ["remove_proposal_submitted_hook"], "properties": { "remove_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -357,16 +305,11 @@ { "description": "Handles proposal hook fired by the associated proposal module when a proposal is completed (ie executed or rejected). By default, the base contract will return deposits proposals, when they are closed, when proposals are executed, or, if it is refunding failed.", "type": "object", - "required": [ - "proposal_completed_hook" - ], + "required": ["proposal_completed_hook"], "properties": { "proposal_completed_hook": { "type": "object", - "required": [ - "new_status", - "proposal_id" - ], + "required": ["new_status", "proposal_id"], "properties": { "new_status": { "$ref": "#/definitions/Status" @@ -390,16 +333,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -418,15 +356,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -447,10 +381,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -464,9 +395,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -476,9 +405,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -488,9 +415,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -500,9 +425,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -513,16 +436,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -537,9 +455,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -549,9 +465,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -561,9 +475,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -578,23 +490,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -604,15 +510,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -626,15 +528,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -653,15 +551,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -675,15 +569,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -705,15 +595,11 @@ { "description": "Approve a proposal, only callable by approver", "type": "object", - "required": [ - "approve" - ], + "required": ["approve"], "properties": { "approve": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -729,15 +615,11 @@ { "description": "Reject a proposal, only callable by approver", "type": "object", - "required": [ - "reject" - ], + "required": ["reject"], "properties": { "reject": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -753,15 +635,11 @@ { "description": "Updates the approver, can only be called the current approver", "type": "object", - "required": [ - "update_approver" - ], + "required": ["update_approver"], "properties": { "update_approver": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -780,9 +658,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -795,9 +671,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -808,9 +682,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -827,16 +699,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -864,18 +731,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -909,17 +769,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -943,15 +797,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -992,10 +842,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -1015,17 +862,11 @@ "oneOf": [ { "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "description", - "msgs", - "title" - ], + "required": ["description", "msgs", "title"], "properties": { "description": { "type": "string" @@ -1059,16 +900,11 @@ }, "SingleChoiceAutoVote": { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The proposer's position on the proposal.", @@ -1087,16 +923,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1112,16 +943,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1137,17 +963,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1170,57 +990,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -1234,9 +1038,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -1262,9 +1064,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1275,9 +1075,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -1290,11 +1088,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -1328,41 +1122,27 @@ { "description": "Marks support for the proposal.", "type": "string", - "enum": [ - "yes" - ] + "enum": ["yes"] }, { "description": "Marks opposition to the proposal.", "type": "string", - "enum": [ - "no" - ] + "enum": ["no"] }, { "description": "Marks participation but does not count towards the ratio of support / opposed.", "type": "string", - "enum": [ - "abstain" - ] + "enum": ["abstain"] } ] }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -1370,17 +1150,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1407,24 +1181,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1457,17 +1221,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1494,16 +1252,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1519,15 +1272,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1548,9 +1297,7 @@ { "description": "Gets the proposal module that this pre propose module is associated with. Returns `Addr`.", "type": "object", - "required": [ - "proposal_module" - ], + "required": ["proposal_module"], "properties": { "proposal_module": { "type": "object", @@ -1562,9 +1309,7 @@ { "description": "Gets the DAO (dao-dao-core) module this contract is associated with. Returns `Addr`.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -1576,9 +1321,7 @@ { "description": "Gets the module's configuration.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1590,15 +1333,11 @@ { "description": "Gets the deposit info for the proposal identified by PROPOSAL_ID.", "type": "object", - "required": [ - "deposit_info" - ], + "required": ["deposit_info"], "properties": { "deposit_info": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -1614,9 +1353,7 @@ { "description": "Returns list of proposal submitted hooks.", "type": "object", - "required": [ - "proposal_submitted_hooks" - ], + "required": ["proposal_submitted_hooks"], "properties": { "proposal_submitted_hooks": { "type": "object", @@ -1628,15 +1365,11 @@ { "description": "Extension for queries. The default implementation will do nothing if queried for will return `Binary::default()`.", "type": "object", - "required": [ - "query_extension" - ], + "required": ["query_extension"], "properties": { "query_extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/QueryExt" @@ -1654,9 +1387,7 @@ { "description": "List the approver address", "type": "object", - "required": [ - "approver" - ], + "required": ["approver"], "properties": { "approver": { "type": "object", @@ -1668,15 +1399,11 @@ { "description": "Return whether or not the proposal is pending", "type": "object", - "required": [ - "is_pending" - ], + "required": ["is_pending"], "properties": { "is_pending": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1692,15 +1419,11 @@ { "description": "A proposal, pending or completed.", "type": "object", - "required": [ - "proposal" - ], + "required": ["proposal"], "properties": { "proposal": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1716,15 +1439,11 @@ { "description": "A pending proposal", "type": "object", - "required": [ - "pending_proposal" - ], + "required": ["pending_proposal"], "properties": { "pending_proposal": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1740,26 +1459,18 @@ { "description": "List of proposals awaiting approval", "type": "object", - "required": [ - "pending_proposals" - ], + "required": ["pending_proposals"], "properties": { "pending_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1771,26 +1482,18 @@ }, { "type": "object", - "required": [ - "reverse_pending_proposals" - ], + "required": ["reverse_pending_proposals"], "properties": { "reverse_pending_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_before": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1803,15 +1506,11 @@ { "description": "A completed proposal", "type": "object", - "required": [ - "completed_proposal" - ], + "required": ["completed_proposal"], "properties": { "completed_proposal": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1827,26 +1526,18 @@ { "description": "List of completed proposals", "type": "object", - "required": [ - "completed_proposals" - ], + "required": ["completed_proposals"], "properties": { "completed_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1858,26 +1549,18 @@ }, { "type": "object", - "required": [ - "reverse_completed_proposals" - ], + "required": ["reverse_completed_proposals"], "properties": { "reverse_completed_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_before": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1890,15 +1573,11 @@ { "description": "The completed approval ID for a created proposal ID.", "type": "object", - "required": [ - "completed_proposal_id_for_created_proposal_id" - ], + "required": ["completed_proposal_id_for_created_proposal_id"], "properties": { "completed_proposal_id_for_created_proposal_id": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1922,9 +1601,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit required to create a proposal. If `None`, no deposit is required.", @@ -1954,9 +1631,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1967,9 +1642,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -1982,11 +1655,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -2020,23 +1689,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -2056,9 +1719,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "DepositInfoResponse", "type": "object", - "required": [ - "proposer" - ], + "required": ["proposer"], "properties": { "deposit_info": { "description": "The deposit that has been paid for the specified proposal.", @@ -2092,9 +1753,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -2105,9 +1764,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -2120,11 +1777,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -2158,23 +1811,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -2194,9 +1841,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json index 1d560018f..08ecde0bc 100644 --- a/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json +++ b/contracts/pre-propose/dao-pre-propose-approver/schema/dao-pre-propose-approver.json @@ -1,14 +1,12 @@ { "contract_name": "dao-pre-propose-approver", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "pre_propose_approval_contract" - ], + "required": ["pre_propose_approval_contract"], "properties": { "pre_propose_approval_contract": { "type": "string" @@ -23,15 +21,11 @@ { "description": "Creates a new proposal in the pre-propose module. MSG will be serialized and used as the proposal creation message.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ApproverProposeMessage" @@ -45,15 +39,11 @@ { "description": "Updates the configuration of this module. This will completely override the existing configuration. This new configuration will only apply to proposals created after the config is updated. Only the DAO may execute this message.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "anyOf": [ @@ -77,9 +67,7 @@ { "description": "Withdraws funds inside of this contract to the message sender. The contracts entire balance for the specifed DENOM is withdrawn to the message sender. Only the DAO may call this method.\n\nThis is intended only as an escape hatch in the event of a critical bug in this contract or it's proposal module. Withdrawing funds will cause future attempts to return proposal deposits to fail their transactions as the contract will have insufficent balance to return them. In the case of `cw-proposal-single` this transaction failure will cause the module to remove the pre-propose module from its proposal hook receivers.\n\nMore likely than not, this should NEVER BE CALLED unless a bug in this contract or the proposal module it is associated with has caused it to stop receiving proposal hook messages, or if a critical security vulnerability has been found that allows an attacker to drain proposal deposits.", "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -104,15 +92,11 @@ { "description": "Extension message. Contracts that extend this one should put their custom execute logic here. The default implementation will do nothing if this variant is executed.", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ExecuteExt" @@ -126,15 +110,11 @@ { "description": "Adds a proposal submitted hook. Fires when a new proposal is submitted to the pre-propose contract. Only the DAO may call this method.", "type": "object", - "required": [ - "add_proposal_submitted_hook" - ], + "required": ["add_proposal_submitted_hook"], "properties": { "add_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -148,15 +128,11 @@ { "description": "Removes a proposal submitted hook. Only the DAO may call this method.", "type": "object", - "required": [ - "remove_proposal_submitted_hook" - ], + "required": ["remove_proposal_submitted_hook"], "properties": { "remove_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -170,16 +146,11 @@ { "description": "Handles proposal hook fired by the associated proposal module when a proposal is completed (ie executed or rejected). By default, the base contract will return deposits proposals, when they are closed, when proposals are executed, or, if it is refunding failed.", "type": "object", - "required": [ - "proposal_completed_hook" - ], + "required": ["proposal_completed_hook"], "properties": { "proposal_completed_hook": { "type": "object", - "required": [ - "new_status", - "proposal_id" - ], + "required": ["new_status", "proposal_id"], "properties": { "new_status": { "$ref": "#/definitions/Status" @@ -201,17 +172,11 @@ "oneOf": [ { "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "approval_id", - "description", - "title" - ], + "required": ["approval_id", "description", "title"], "properties": { "approval_id": { "type": "integer", @@ -237,23 +202,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -263,15 +222,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -285,15 +240,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -310,9 +261,7 @@ "oneOf": [ { "type": "object", - "required": [ - "reset_approver" - ], + "required": ["reset_approver"], "properties": { "reset_approver": { "type": "object", @@ -329,9 +278,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -344,9 +291,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -357,9 +302,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -375,57 +318,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -439,9 +366,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -467,9 +392,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -480,9 +403,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -495,11 +416,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -530,10 +447,7 @@ }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] } } }, @@ -544,9 +458,7 @@ { "description": "Gets the proposal module that this pre propose module is associated with. Returns `Addr`.", "type": "object", - "required": [ - "proposal_module" - ], + "required": ["proposal_module"], "properties": { "proposal_module": { "type": "object", @@ -558,9 +470,7 @@ { "description": "Gets the DAO (dao-dao-core) module this contract is associated with. Returns `Addr`.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -572,9 +482,7 @@ { "description": "Gets the module's configuration.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -586,15 +494,11 @@ { "description": "Gets the deposit info for the proposal identified by PROPOSAL_ID.", "type": "object", - "required": [ - "deposit_info" - ], + "required": ["deposit_info"], "properties": { "deposit_info": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -610,9 +514,7 @@ { "description": "Returns list of proposal submitted hooks.", "type": "object", - "required": [ - "proposal_submitted_hooks" - ], + "required": ["proposal_submitted_hooks"], "properties": { "proposal_submitted_hooks": { "type": "object", @@ -624,15 +526,11 @@ { "description": "Extension for queries. The default implementation will do nothing if queried for will return `Binary::default()`.", "type": "object", - "required": [ - "query_extension" - ], + "required": ["query_extension"], "properties": { "query_extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/QueryExt" @@ -649,9 +547,7 @@ "oneOf": [ { "type": "object", - "required": [ - "pre_propose_approval_contract" - ], + "required": ["pre_propose_approval_contract"], "properties": { "pre_propose_approval_contract": { "type": "object", @@ -662,15 +558,11 @@ }, { "type": "object", - "required": [ - "pre_propose_approval_id_for_approver_proposal_id" - ], + "required": ["pre_propose_approval_id_for_approver_proposal_id"], "properties": { "pre_propose_approval_id_for_approver_proposal_id": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -685,15 +577,11 @@ }, { "type": "object", - "required": [ - "approver_proposal_id_for_pre_propose_approval_id" - ], + "required": ["approver_proposal_id_for_pre_propose_approval_id"], "properties": { "approver_proposal_id_for_pre_propose_approval_id": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -717,9 +605,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit required to create a proposal. If `None`, no deposit is required.", @@ -749,9 +635,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -762,9 +646,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -777,11 +659,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -815,23 +693,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -851,9 +723,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "DepositInfoResponse", "type": "object", - "required": [ - "proposer" - ], + "required": ["proposer"], "properties": { "deposit_info": { "description": "The deposit that has been paid for the specified proposal.", @@ -887,9 +757,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -900,9 +768,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -915,11 +781,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -953,23 +815,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -989,9 +845,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json b/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json index c56f439a6..09a6a31ae 100644 --- a/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json +++ b/contracts/pre-propose/dao-pre-propose-multiple/schema/dao-pre-propose-multiple.json @@ -1,15 +1,12 @@ { "contract_name": "dao-pre-propose-multiple", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "extension", - "open_proposal_submission" - ], + "required": ["extension", "open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit requirements for this module. None if no deposit.", @@ -42,23 +39,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -68,15 +59,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -90,15 +77,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -125,9 +108,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -138,9 +119,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -153,11 +132,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -188,10 +163,7 @@ }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] } } }, @@ -202,15 +174,11 @@ { "description": "Creates a new proposal in the pre-propose module. MSG will be serialized and used as the proposal creation message.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ProposeMessage" @@ -224,15 +192,11 @@ { "description": "Updates the configuration of this module. This will completely override the existing configuration. This new configuration will only apply to proposals created after the config is updated. Only the DAO may execute this message.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "anyOf": [ @@ -256,9 +220,7 @@ { "description": "Withdraws funds inside of this contract to the message sender. The contracts entire balance for the specifed DENOM is withdrawn to the message sender. Only the DAO may call this method.\n\nThis is intended only as an escape hatch in the event of a critical bug in this contract or it's proposal module. Withdrawing funds will cause future attempts to return proposal deposits to fail their transactions as the contract will have insufficent balance to return them. In the case of `cw-proposal-single` this transaction failure will cause the module to remove the pre-propose module from its proposal hook receivers.\n\nMore likely than not, this should NEVER BE CALLED unless a bug in this contract or the proposal module it is associated with has caused it to stop receiving proposal hook messages, or if a critical security vulnerability has been found that allows an attacker to drain proposal deposits.", "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -283,15 +245,11 @@ { "description": "Extension message. Contracts that extend this one should put their custom execute logic here. The default implementation will do nothing if this variant is executed.", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/Empty" @@ -305,15 +263,11 @@ { "description": "Adds a proposal submitted hook. Fires when a new proposal is submitted to the pre-propose contract. Only the DAO may call this method.", "type": "object", - "required": [ - "add_proposal_submitted_hook" - ], + "required": ["add_proposal_submitted_hook"], "properties": { "add_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -327,15 +281,11 @@ { "description": "Removes a proposal submitted hook. Only the DAO may call this method.", "type": "object", - "required": [ - "remove_proposal_submitted_hook" - ], + "required": ["remove_proposal_submitted_hook"], "properties": { "remove_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -349,16 +299,11 @@ { "description": "Handles proposal hook fired by the associated proposal module when a proposal is completed (ie executed or rejected). By default, the base contract will return deposits proposals, when they are closed, when proposals are executed, or, if it is refunding failed.", "type": "object", - "required": [ - "proposal_completed_hook" - ], + "required": ["proposal_completed_hook"], "properties": { "proposal_completed_hook": { "type": "object", - "required": [ - "new_status", - "proposal_id" - ], + "required": ["new_status", "proposal_id"], "properties": { "new_status": { "$ref": "#/definitions/Status" @@ -382,16 +327,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -410,15 +350,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -439,10 +375,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -456,9 +389,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -468,9 +399,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -480,9 +409,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -492,9 +419,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -505,16 +430,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -529,9 +449,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -541,9 +459,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -553,9 +469,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -570,23 +484,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -596,15 +504,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -618,15 +522,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -645,15 +545,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -667,15 +563,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -698,9 +590,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -713,9 +603,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -726,9 +614,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -745,16 +631,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -782,18 +663,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -827,17 +701,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -861,15 +729,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -910,10 +774,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -931,16 +792,11 @@ }, "MultipleChoiceAutoVote": { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The proposer's position on the proposal.", @@ -956,11 +812,7 @@ "MultipleChoiceOption": { "description": "Unchecked multiple choice option", "type": "object", - "required": [ - "description", - "msgs", - "title" - ], + "required": ["description", "msgs", "title"], "properties": { "description": { "type": "string" @@ -980,9 +832,7 @@ "MultipleChoiceOptions": { "description": "Represents unchecked multiple choice options", "type": "object", - "required": [ - "options" - ], + "required": ["options"], "properties": { "options": { "type": "array", @@ -996,9 +846,7 @@ "MultipleChoiceVote": { "description": "A multiple choice vote, picking the desired option", "type": "object", - "required": [ - "option_id" - ], + "required": ["option_id"], "properties": { "option_id": { "type": "integer", @@ -1012,17 +860,11 @@ "oneOf": [ { "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "choices", - "description", - "title" - ], + "required": ["choices", "description", "title"], "properties": { "choices": { "$ref": "#/definitions/MultipleChoiceOptions" @@ -1057,16 +899,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1082,16 +919,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1107,17 +939,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1140,57 +966,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -1204,9 +1014,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -1232,9 +1040,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1245,9 +1051,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -1260,11 +1064,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -1295,19 +1095,11 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -1315,17 +1107,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1352,24 +1138,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1402,17 +1178,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1439,16 +1209,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1464,15 +1229,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1493,9 +1254,7 @@ { "description": "Gets the proposal module that this pre propose module is associated with. Returns `Addr`.", "type": "object", - "required": [ - "proposal_module" - ], + "required": ["proposal_module"], "properties": { "proposal_module": { "type": "object", @@ -1507,9 +1266,7 @@ { "description": "Gets the DAO (dao-dao-core) module this contract is associated with. Returns `Addr`.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -1521,9 +1278,7 @@ { "description": "Gets the module's configuration.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1535,15 +1290,11 @@ { "description": "Gets the deposit info for the proposal identified by PROPOSAL_ID.", "type": "object", - "required": [ - "deposit_info" - ], + "required": ["deposit_info"], "properties": { "deposit_info": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -1559,9 +1310,7 @@ { "description": "Returns list of proposal submitted hooks.", "type": "object", - "required": [ - "proposal_submitted_hooks" - ], + "required": ["proposal_submitted_hooks"], "properties": { "proposal_submitted_hooks": { "type": "object", @@ -1573,15 +1322,11 @@ { "description": "Extension for queries. The default implementation will do nothing if queried for will return `Binary::default()`.", "type": "object", - "required": [ - "query_extension" - ], + "required": ["query_extension"], "properties": { "query_extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/Empty" @@ -1607,9 +1352,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit required to create a proposal. If `None`, no deposit is required.", @@ -1639,9 +1382,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1652,9 +1393,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -1667,11 +1406,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -1705,23 +1440,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -1741,9 +1470,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "DepositInfoResponse", "type": "object", - "required": [ - "proposer" - ], + "required": ["proposer"], "properties": { "deposit_info": { "description": "The deposit that has been paid for the specified proposal.", @@ -1777,9 +1504,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1790,9 +1515,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -1805,11 +1528,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -1843,23 +1562,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -1879,9 +1592,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json b/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json index 49bdfdb73..aebf49953 100644 --- a/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json +++ b/contracts/pre-propose/dao-pre-propose-single/schema/dao-pre-propose-single.json @@ -1,15 +1,12 @@ { "contract_name": "dao-pre-propose-single", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "extension", - "open_proposal_submission" - ], + "required": ["extension", "open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit requirements for this module. None if no deposit.", @@ -42,23 +39,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -68,15 +59,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -90,15 +77,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -125,9 +108,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -138,9 +119,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -153,11 +132,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -188,10 +163,7 @@ }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] } } }, @@ -202,15 +174,11 @@ { "description": "Creates a new proposal in the pre-propose module. MSG will be serialized and used as the proposal creation message.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/ProposeMessage" @@ -224,15 +192,11 @@ { "description": "Updates the configuration of this module. This will completely override the existing configuration. This new configuration will only apply to proposals created after the config is updated. Only the DAO may execute this message.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "anyOf": [ @@ -256,9 +220,7 @@ { "description": "Withdraws funds inside of this contract to the message sender. The contracts entire balance for the specifed DENOM is withdrawn to the message sender. Only the DAO may call this method.\n\nThis is intended only as an escape hatch in the event of a critical bug in this contract or it's proposal module. Withdrawing funds will cause future attempts to return proposal deposits to fail their transactions as the contract will have insufficent balance to return them. In the case of `cw-proposal-single` this transaction failure will cause the module to remove the pre-propose module from its proposal hook receivers.\n\nMore likely than not, this should NEVER BE CALLED unless a bug in this contract or the proposal module it is associated with has caused it to stop receiving proposal hook messages, or if a critical security vulnerability has been found that allows an attacker to drain proposal deposits.", "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -283,15 +245,11 @@ { "description": "Extension message. Contracts that extend this one should put their custom execute logic here. The default implementation will do nothing if this variant is executed.", "type": "object", - "required": [ - "extension" - ], + "required": ["extension"], "properties": { "extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/Empty" @@ -305,15 +263,11 @@ { "description": "Adds a proposal submitted hook. Fires when a new proposal is submitted to the pre-propose contract. Only the DAO may call this method.", "type": "object", - "required": [ - "add_proposal_submitted_hook" - ], + "required": ["add_proposal_submitted_hook"], "properties": { "add_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -327,15 +281,11 @@ { "description": "Removes a proposal submitted hook. Only the DAO may call this method.", "type": "object", - "required": [ - "remove_proposal_submitted_hook" - ], + "required": ["remove_proposal_submitted_hook"], "properties": { "remove_proposal_submitted_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -349,16 +299,11 @@ { "description": "Handles proposal hook fired by the associated proposal module when a proposal is completed (ie executed or rejected). By default, the base contract will return deposits proposals, when they are closed, when proposals are executed, or, if it is refunding failed.", "type": "object", - "required": [ - "proposal_completed_hook" - ], + "required": ["proposal_completed_hook"], "properties": { "proposal_completed_hook": { "type": "object", - "required": [ - "new_status", - "proposal_id" - ], + "required": ["new_status", "proposal_id"], "properties": { "new_status": { "$ref": "#/definitions/Status" @@ -382,16 +327,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -410,15 +350,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -439,10 +375,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -456,9 +389,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -468,9 +399,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -480,9 +409,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -492,9 +419,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -505,16 +430,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -529,9 +449,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -541,9 +459,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -553,9 +469,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -570,23 +484,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -596,15 +504,11 @@ { "description": "Use a specific token address as the deposit token.", "type": "object", - "required": [ - "token" - ], + "required": ["token"], "properties": { "token": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "$ref": "#/definitions/UncheckedDenom" @@ -618,15 +522,11 @@ { "description": "Use the token native denom or cw20 contract address of the associated DAO's voting module. NOTE: in order to retrieve the token automatically via this variant, the voting module must either (1) use a native token and implement the `Denom {}` query type defined by `dao_dao_macros::native_token_query` OR (2) use a cw20 token and implement the `TokenContract {}` query type defined by `dao_dao_macros::cw20_token_query`. Failing to implement correctly will cause this option to fail to instantiate.", "type": "object", - "required": [ - "voting_module_token" - ], + "required": ["voting_module_token"], "properties": { "voting_module_token": { "type": "object", - "required": [ - "token_type" - ], + "required": ["token_type"], "properties": { "token_type": { "$ref": "#/definitions/VotingModuleTokenType" @@ -645,15 +545,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -667,15 +563,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -698,9 +590,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -713,9 +603,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -726,9 +614,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -745,16 +631,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -782,18 +663,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -827,17 +701,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -861,15 +729,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -910,10 +774,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -934,17 +795,11 @@ { "description": "The propose message used to make a proposal to this module. Note that this is identical to the propose message used by dao-proposal-single, except that it omits the `proposer` field which it fills in for the sender.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "description", - "msgs", - "title" - ], + "required": ["description", "msgs", "title"], "properties": { "description": { "type": "string" @@ -978,16 +833,11 @@ }, "SingleChoiceAutoVote": { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The proposer's position on the proposal.", @@ -1006,16 +856,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1031,16 +876,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1056,17 +896,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1089,57 +923,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -1153,9 +971,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -1181,9 +997,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1194,9 +1008,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "type": "string" @@ -1209,11 +1021,7 @@ "UncheckedDepositInfo": { "description": "Information about the deposit required to create a proposal.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. Must be a positive, non-zero number.", @@ -1247,41 +1055,27 @@ { "description": "Marks support for the proposal.", "type": "string", - "enum": [ - "yes" - ] + "enum": ["yes"] }, { "description": "Marks opposition to the proposal.", "type": "string", - "enum": [ - "no" - ] + "enum": ["no"] }, { "description": "Marks participation but does not count towards the ratio of support / opposed.", "type": "string", - "enum": [ - "abstain" - ] + "enum": ["abstain"] } ] }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingModuleTokenType": { "type": "string", - "enum": [ - "native", - "cw20" - ] + "enum": ["native", "cw20"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -1289,17 +1083,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1326,24 +1114,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1376,17 +1154,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1413,16 +1185,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1438,15 +1205,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1467,9 +1230,7 @@ { "description": "Gets the proposal module that this pre propose module is associated with. Returns `Addr`.", "type": "object", - "required": [ - "proposal_module" - ], + "required": ["proposal_module"], "properties": { "proposal_module": { "type": "object", @@ -1481,9 +1242,7 @@ { "description": "Gets the DAO (dao-dao-core) module this contract is associated with. Returns `Addr`.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -1495,9 +1254,7 @@ { "description": "Gets the module's configuration.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1509,15 +1266,11 @@ { "description": "Gets the deposit info for the proposal identified by PROPOSAL_ID.", "type": "object", - "required": [ - "deposit_info" - ], + "required": ["deposit_info"], "properties": { "deposit_info": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -1533,9 +1286,7 @@ { "description": "Returns list of proposal submitted hooks.", "type": "object", - "required": [ - "proposal_submitted_hooks" - ], + "required": ["proposal_submitted_hooks"], "properties": { "proposal_submitted_hooks": { "type": "object", @@ -1547,15 +1298,11 @@ { "description": "Extension for queries. The default implementation will do nothing if queried for will return `Binary::default()`.", "type": "object", - "required": [ - "query_extension" - ], + "required": ["query_extension"], "properties": { "query_extension": { "type": "object", - "required": [ - "msg" - ], + "required": ["msg"], "properties": { "msg": { "$ref": "#/definitions/Empty" @@ -1581,9 +1328,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "open_proposal_submission" - ], + "required": ["open_proposal_submission"], "properties": { "deposit_info": { "description": "Information about the deposit required to create a proposal. If `None`, no deposit is required.", @@ -1613,9 +1358,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1626,9 +1369,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -1641,11 +1382,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -1679,23 +1416,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -1715,9 +1446,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "DepositInfoResponse", "type": "object", - "required": [ - "proposer" - ], + "required": ["proposer"], "properties": { "deposit_info": { "description": "The deposit that has been paid for the specified proposal.", @@ -1751,9 +1480,7 @@ { "description": "A native (bank module) asset.", "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -1764,9 +1491,7 @@ { "description": "A cw20 asset.", "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -1779,11 +1504,7 @@ "CheckedDepositInfo": { "description": "Counterpart to the `DepositInfo` struct which has been processed. This type should never be constructed literally and should always by built by calling `into_checked` on a `DepositInfo` instance.", "type": "object", - "required": [ - "amount", - "denom", - "refund_policy" - ], + "required": ["amount", "denom", "refund_policy"], "properties": { "amount": { "description": "The number of tokens that must be deposited to create a proposal. This is validated to be non-zero if this struct is constructed by converted via the `into_checked` method on `DepositInfo`.", @@ -1817,23 +1538,17 @@ { "description": "Deposits should always be refunded.", "type": "string", - "enum": [ - "always" - ] + "enum": ["always"] }, { "description": "Deposits should only be refunded for passed proposals.", "type": "string", - "enum": [ - "only_passed" - ] + "enum": ["only_passed"] }, { "description": "Deposits should never be refunded.", "type": "string", - "enum": [ - "never" - ] + "enum": ["never"] } ] }, @@ -1853,9 +1568,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/proposal/dao-proposal-condorcet/schema/dao-proposal-condorcet.json b/contracts/proposal/dao-proposal-condorcet/schema/dao-proposal-condorcet.json index 144429f36..0b526d37e 100644 --- a/contracts/proposal/dao-proposal-condorcet/schema/dao-proposal-condorcet.json +++ b/contracts/proposal/dao-proposal-condorcet/schema/dao-proposal-condorcet.json @@ -1,6 +1,6 @@ { "contract_name": "dao-proposal-condorcet", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -43,9 +43,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -58,9 +56,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -78,9 +74,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -92,9 +86,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -112,15 +104,11 @@ "oneOf": [ { "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "type": "object", - "required": [ - "choices" - ], + "required": ["choices"], "properties": { "choices": { "type": "array", @@ -136,16 +124,11 @@ }, { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -168,15 +151,11 @@ }, { "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -191,15 +170,11 @@ }, { "type": "object", - "required": [ - "close" - ], + "required": ["close"], "properties": { "close": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -214,9 +189,7 @@ }, { "type": "object", - "required": [ - "set_config" - ], + "required": ["set_config"], "properties": { "set_config": { "$ref": "#/definitions/UncheckedConfig" @@ -232,16 +205,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -260,15 +228,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -289,9 +253,7 @@ }, "Choice": { "type": "object", - "required": [ - "msgs" - ], + "required": ["msgs"], "properties": { "msgs": { "type": "array", @@ -304,10 +266,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -321,9 +280,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -333,9 +290,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -345,9 +300,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -357,9 +310,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -370,16 +321,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -394,9 +340,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -406,9 +350,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -418,9 +360,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -440,15 +380,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -462,15 +398,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -488,9 +420,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -503,9 +433,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -527,16 +455,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -564,18 +487,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -609,17 +525,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -643,15 +553,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -692,10 +598,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -717,9 +620,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -731,9 +632,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -749,16 +648,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -774,16 +668,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -799,17 +688,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -875,12 +758,7 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -888,17 +766,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -925,24 +797,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -975,17 +837,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1012,16 +868,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1037,15 +888,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1065,15 +912,11 @@ "oneOf": [ { "type": "object", - "required": [ - "proposal" - ], + "required": ["proposal"], "properties": { "proposal": { "type": "object", - "required": [ - "id" - ], + "required": ["id"], "properties": { "id": { "type": "integer", @@ -1088,9 +931,7 @@ }, { "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1102,9 +943,7 @@ { "description": "Returns the address of the DAO this module belongs to", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -1116,9 +955,7 @@ { "description": "Returns contract version info", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -1130,9 +967,7 @@ { "description": "Returns the proposal ID that will be assigned to the next proposal created.", "type": "object", - "required": [ - "next_proposal_id" - ], + "required": ["next_proposal_id"], "properties": { "next_proposal_id": { "type": "object", @@ -1187,9 +1022,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -1202,9 +1035,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -1222,9 +1053,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -1236,9 +1065,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -1260,9 +1087,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -1272,10 +1097,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -1301,10 +1123,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ProposalResponse", "type": "object", - "required": [ - "proposal", - "tally" - ], + "required": ["proposal", "tally"], "properties": { "proposal": { "$ref": "#/definitions/Proposal" @@ -1325,16 +1144,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -1353,15 +1167,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -1385,15 +1195,11 @@ "oneOf": [ { "type": "string", - "enum": [ - "zero" - ] + "enum": ["zero"] }, { "type": "object", - "required": [ - "positive" - ], + "required": ["positive"], "properties": { "positive": { "$ref": "#/definitions/Uint128" @@ -1403,9 +1209,7 @@ }, { "type": "object", - "required": [ - "negative" - ], + "required": ["negative"], "properties": { "negative": { "$ref": "#/definitions/Uint128" @@ -1417,9 +1221,7 @@ }, "Choice": { "type": "object", - "required": [ - "msgs" - ], + "required": ["msgs"], "properties": { "msgs": { "type": "array", @@ -1432,10 +1234,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -1449,9 +1248,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -1461,9 +1258,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -1473,9 +1268,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -1485,9 +1278,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -1498,16 +1289,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -1522,9 +1308,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -1534,9 +1318,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -1546,9 +1328,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -1568,15 +1348,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -1590,15 +1366,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -1621,9 +1393,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -1636,9 +1406,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -1649,9 +1417,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -1668,16 +1434,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -1705,18 +1466,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -1750,17 +1504,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -1784,15 +1532,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -1833,10 +1577,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -1855,10 +1596,7 @@ "M": { "description": "M\n\nA NxN matrix for which M[x, y] == -M[y, x].\n\nIndicies may be incremented or decremented. When index (x, y) is incremented, index (y, x) is decremented with the reverse applying when decrementing an index.\n\nInvariant: indicies along the diagonal must never be incremented or decremented.\n\nThe contents of the matrix are not avaliable, though consumers may call the `stats` method which returns information about the first positive column, or the column closest to containing all positive values.", "type": "object", - "required": [ - "cells", - "n" - ], + "required": ["cells", "n"], "properties": { "cells": { "type": "array", @@ -1880,9 +1618,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -1894,9 +1630,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -1963,16 +1697,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1988,16 +1717,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -2013,17 +1737,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -2046,29 +1764,21 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has passed.", "type": "object", - "required": [ - "passed" - ], + "required": ["passed"], "properties": { "passed": { "type": "object", - "required": [ - "winner" - ], + "required": ["winner"], "properties": { "winner": { "type": "integer", @@ -2084,23 +1794,17 @@ { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] } ] }, @@ -2169,12 +1873,7 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -2182,17 +1881,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -2219,24 +1912,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -2269,17 +1952,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -2306,16 +1983,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -2331,15 +2003,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -2355,16 +2023,11 @@ "oneOf": [ { "type": "string", - "enum": [ - "never", - "none" - ] + "enum": ["never", "none"] }, { "type": "object", - "required": [ - "some" - ], + "required": ["some"], "properties": { "some": { "type": "integer", @@ -2376,9 +2039,7 @@ }, { "type": "object", - "required": [ - "undisputed" - ], + "required": ["undisputed"], "properties": { "undisputed": { "type": "integer", diff --git a/contracts/proposal/dao-proposal-multiple/schema/dao-proposal-multiple.json b/contracts/proposal/dao-proposal-multiple/schema/dao-proposal-multiple.json index 27c0b6bd3..4031476cf 100644 --- a/contracts/proposal/dao-proposal-multiple/schema/dao-proposal-multiple.json +++ b/contracts/proposal/dao-proposal-multiple/schema/dao-proposal-multiple.json @@ -1,6 +1,6 @@ { "contract_name": "dao-proposal-multiple", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -82,15 +82,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -104,9 +100,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -123,10 +117,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -145,9 +136,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -160,9 +149,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -177,12 +164,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -229,9 +211,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -243,9 +223,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -260,9 +238,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -274,15 +250,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -336,15 +308,11 @@ "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -366,9 +334,7 @@ { "description": "Creates a proposal in the governance module.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "$ref": "#/definitions/MultipleChoiceProposeMsg" @@ -379,16 +345,11 @@ { "description": "Votes on a proposal. Voting power is determined by the DAO's voting power module.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "description": "The ID of the proposal to vote on.", @@ -398,10 +359,7 @@ }, "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The senders position on the proposal.", @@ -420,15 +378,11 @@ { "description": "Causes the messages associated with a passed proposal to be executed by the DAO.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to execute.", @@ -445,15 +399,11 @@ { "description": "Callable only if veto is configured", "type": "object", - "required": [ - "veto" - ], + "required": ["veto"], "properties": { "veto": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to veto.", @@ -470,15 +420,11 @@ { "description": "Closes a proposal that has failed (either not passed or timed out). If applicable this will cause the proposal deposit associated wth said proposal to be returned.", "type": "object", - "required": [ - "close" - ], + "required": ["close"], "properties": { "close": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to close.", @@ -495,9 +441,7 @@ { "description": "Updates the governance module's config.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", @@ -573,15 +517,11 @@ { "description": "Updates the sender's rationale for their vote on the specified proposal. Errors if no vote vote has been cast.", "type": "object", - "required": [ - "update_rationale" - ], + "required": ["update_rationale"], "properties": { "update_rationale": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -589,10 +529,7 @@ "minimum": 0.0 }, "rationale": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -603,15 +540,11 @@ { "description": "Update's the proposal creation policy used for this module. Only the DAO may call this method.", "type": "object", - "required": [ - "update_pre_propose_info" - ], + "required": ["update_pre_propose_info"], "properties": { "update_pre_propose_info": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/PreProposeInfo" @@ -624,15 +557,11 @@ }, { "type": "object", - "required": [ - "add_proposal_hook" - ], + "required": ["add_proposal_hook"], "properties": { "add_proposal_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -645,15 +574,11 @@ }, { "type": "object", - "required": [ - "remove_proposal_hook" - ], + "required": ["remove_proposal_hook"], "properties": { "remove_proposal_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -666,15 +591,11 @@ }, { "type": "object", - "required": [ - "add_vote_hook" - ], + "required": ["add_vote_hook"], "properties": { "add_vote_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -687,15 +608,11 @@ }, { "type": "object", - "required": [ - "remove_vote_hook" - ], + "required": ["remove_vote_hook"], "properties": { "remove_vote_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -714,15 +631,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -736,9 +649,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -755,16 +666,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -783,15 +689,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -812,10 +714,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -829,9 +728,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -841,9 +738,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -853,9 +748,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -865,9 +758,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -878,16 +769,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -902,9 +788,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -914,9 +798,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -926,9 +808,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -948,15 +828,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -970,15 +846,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -996,9 +868,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -1011,9 +881,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -1035,16 +903,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -1072,18 +935,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -1117,17 +973,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -1151,15 +1001,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -1200,10 +1046,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -1222,12 +1065,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -1270,16 +1108,11 @@ }, "MultipleChoiceAutoVote": { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The proposer's position on the proposal.", @@ -1295,11 +1128,7 @@ "MultipleChoiceOption": { "description": "Unchecked multiple choice option", "type": "object", - "required": [ - "description", - "msgs", - "title" - ], + "required": ["description", "msgs", "title"], "properties": { "description": { "type": "string" @@ -1319,9 +1148,7 @@ "MultipleChoiceOptions": { "description": "Represents unchecked multiple choice options", "type": "object", - "required": [ - "options" - ], + "required": ["options"], "properties": { "options": { "type": "array", @@ -1335,11 +1162,7 @@ "MultipleChoiceProposeMsg": { "description": "The contents of a message to create a proposal in the multiple choice proposal module.\n\nWe break this type out of `ExecuteMsg` because we want pre-propose modules that interact with this contract to be able to get type checking on their propose messages.\n\nWe move this type to this package so that pre-propose modules can import it without importing dao-proposal-multiple with the library feature which (as it is not additive) cause the execute exports to not be included in wasm builds.", "type": "object", - "required": [ - "choices", - "description", - "title" - ], + "required": ["choices", "description", "title"], "properties": { "choices": { "description": "The multiple choices.", @@ -1355,10 +1178,7 @@ }, "proposer": { "description": "The address creating the proposal. If no pre-propose module is attached to this module this must always be None as the proposer is the sender of the propose message. If a pre-propose module is attached, this must be Some and will set the proposer of the proposal it creates.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "title": { "description": "The title of the proposal.", @@ -1381,9 +1201,7 @@ "MultipleChoiceVote": { "description": "A multiple choice vote, picking the desired option", "type": "object", - "required": [ - "option_id" - ], + "required": ["option_id"], "properties": { "option_id": { "type": "integer", @@ -1399,9 +1217,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -1413,9 +1229,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -1430,9 +1244,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -1444,15 +1256,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -1471,16 +1279,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1496,16 +1299,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1521,17 +1319,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1599,27 +1391,18 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingStrategy": { "description": "Determines how many choices may be selected.", "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -1638,17 +1421,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1675,24 +1452,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1725,17 +1492,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1762,16 +1523,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1787,15 +1543,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1816,9 +1568,7 @@ { "description": "Gets the governance module's config.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1830,15 +1580,11 @@ { "description": "Gets information about a proposal.", "type": "object", - "required": [ - "proposal" - ], + "required": ["proposal"], "properties": { "proposal": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -1854,26 +1600,18 @@ { "description": "Lists all the proposals that have been cast in this module.", "type": "object", - "required": [ - "list_proposals" - ], + "required": ["list_proposals"], "properties": { "list_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, "start_after": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1886,26 +1624,18 @@ { "description": "Lists all of the proposals that have been cast in this module in decending order of proposal ID.", "type": "object", - "required": [ - "reverse_proposals" - ], + "required": ["reverse_proposals"], "properties": { "reverse_proposals": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, "start_before": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1918,16 +1648,11 @@ { "description": "Returns a voters position on a proposal.", "type": "object", - "required": [ - "get_vote" - ], + "required": ["get_vote"], "properties": { "get_vote": { "type": "object", - "required": [ - "proposal_id", - "voter" - ], + "required": ["proposal_id", "voter"], "properties": { "proposal_id": { "type": "integer", @@ -1946,21 +1671,14 @@ { "description": "Lists all of the votes that have been cast on a proposal.", "type": "object", - "required": [ - "list_votes" - ], + "required": ["list_votes"], "properties": { "list_votes": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, @@ -1970,10 +1688,7 @@ "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -1984,9 +1699,7 @@ { "description": "Returns the number of proposals that have been created in this module.", "type": "object", - "required": [ - "proposal_count" - ], + "required": ["proposal_count"], "properties": { "proposal_count": { "type": "object", @@ -1998,9 +1711,7 @@ { "description": "Gets the current proposal creation policy for this module.", "type": "object", - "required": [ - "proposal_creation_policy" - ], + "required": ["proposal_creation_policy"], "properties": { "proposal_creation_policy": { "type": "object", @@ -2012,9 +1723,7 @@ { "description": "Lists all of the consumers of proposal hooks for this module.", "type": "object", - "required": [ - "proposal_hooks" - ], + "required": ["proposal_hooks"], "properties": { "proposal_hooks": { "type": "object", @@ -2026,9 +1735,7 @@ { "description": "Lists all of the consumers of vote hooks for this module.", "type": "object", - "required": [ - "vote_hooks" - ], + "required": ["vote_hooks"], "properties": { "vote_hooks": { "type": "object", @@ -2040,9 +1747,7 @@ { "description": "Returns the address of the DAO this module belongs to", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -2054,9 +1759,7 @@ { "description": "Returns contract version info", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -2068,9 +1771,7 @@ { "description": "Returns the proposal ID that will be assigned to the next proposal created.", "type": "object", - "required": [ - "next_proposal_id" - ], + "required": ["next_proposal_id"], "properties": { "next_proposal_id": { "type": "object", @@ -2087,9 +1788,7 @@ "oneOf": [ { "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", @@ -2129,9 +1828,7 @@ }, { "type": "object", - "required": [ - "from_compatible" - ], + "required": ["from_compatible"], "properties": { "from_compatible": { "type": "object", @@ -2148,15 +1845,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -2170,9 +1863,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -2189,10 +1880,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -2207,9 +1895,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -2222,9 +1908,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -2239,12 +1923,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -2290,9 +1969,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -2304,15 +1981,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -2453,9 +2126,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -2468,9 +2139,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -2488,9 +2157,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -2502,9 +2169,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -2551,15 +2216,11 @@ "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -2605,9 +2266,7 @@ "MultipleChoiceVote": { "description": "A multiple choice vote, picking the desired option", "type": "object", - "required": [ - "option_id" - ], + "required": ["option_id"], "properties": { "option_id": { "type": "integer", @@ -2624,11 +2283,7 @@ "VoteInfo": { "description": "Information about a vote that was cast.", "type": "object", - "required": [ - "power", - "vote", - "voter" - ], + "required": ["power", "vote", "voter"], "properties": { "power": { "description": "The voting power behind the vote.", @@ -2640,10 +2295,7 @@ }, "rationale": { "description": "The rationale behind the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "Position on the vote.", @@ -2670,9 +2322,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -2682,10 +2332,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -2704,9 +2351,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ProposalListResponse", "type": "object", - "required": [ - "proposals" - ], + "required": ["proposals"], "properties": { "proposals": { "type": "array", @@ -2727,16 +2372,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -2755,15 +2395,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -2822,10 +2458,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -2839,9 +2472,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -2851,9 +2482,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -2863,9 +2492,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -2875,9 +2502,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -2888,16 +2513,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -2912,9 +2532,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -2924,9 +2542,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -2936,9 +2552,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -2958,15 +2572,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -2980,15 +2590,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -3006,9 +2612,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -3021,9 +2625,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -3045,9 +2647,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -3060,9 +2660,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -3073,9 +2671,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -3092,16 +2688,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -3129,18 +2720,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -3174,17 +2758,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -3208,15 +2786,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -3257,10 +2831,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -3281,16 +2852,12 @@ "oneOf": [ { "type": "string", - "enum": [ - "standard" - ] + "enum": ["standard"] }, { "description": "Choice that represents selecting none of the options; still counts toward quorum and allows proposals with all bad options to be voted against.", "type": "string", - "enum": [ - "none" - ] + "enum": ["none"] } ] }, @@ -3410,9 +2977,7 @@ }, "MultipleChoiceVotes": { "type": "object", - "required": [ - "vote_weights" - ], + "required": ["vote_weights"], "properties": { "vote_weights": { "type": "array", @@ -3429,9 +2994,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -3443,9 +3006,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -3458,10 +3019,7 @@ "ProposalResponse": { "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "type": "integer", @@ -3480,16 +3038,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3505,16 +3058,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3530,17 +3078,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3563,57 +3105,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -3627,9 +3153,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -3683,27 +3207,18 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingStrategy": { "description": "Determines how many choices may be selected.", "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -3722,17 +3237,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -3759,24 +3268,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -3809,17 +3308,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -3846,16 +3339,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -3871,15 +3359,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -3897,9 +3381,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VoteListResponse", "type": "object", - "required": [ - "votes" - ], + "required": ["votes"], "properties": { "votes": { "type": "array", @@ -3917,9 +3399,7 @@ "MultipleChoiceVote": { "description": "A multiple choice vote, picking the desired option", "type": "object", - "required": [ - "option_id" - ], + "required": ["option_id"], "properties": { "option_id": { "type": "integer", @@ -3936,11 +3416,7 @@ "VoteInfo": { "description": "Information about a vote that was cast.", "type": "object", - "required": [ - "power", - "vote", - "voter" - ], + "required": ["power", "vote", "voter"], "properties": { "power": { "description": "The voting power behind the vote.", @@ -3952,10 +3428,7 @@ }, "rationale": { "description": "The rationale behind the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "Position on the vote.", @@ -3990,10 +3463,7 @@ "title": "ProposalResponse", "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "type": "integer", @@ -4016,16 +3486,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -4044,15 +3509,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -4111,10 +3572,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -4128,9 +3586,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -4140,9 +3596,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -4152,9 +3606,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -4164,9 +3616,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -4177,16 +3627,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -4201,9 +3646,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -4213,9 +3656,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -4225,9 +3666,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -4247,15 +3686,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -4269,15 +3704,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -4295,9 +3726,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -4310,9 +3739,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -4334,9 +3761,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -4349,9 +3774,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -4362,9 +3785,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -4381,16 +3802,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -4418,18 +3834,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -4463,17 +3872,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -4497,15 +3900,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -4546,10 +3945,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -4570,16 +3966,12 @@ "oneOf": [ { "type": "string", - "enum": [ - "standard" - ] + "enum": ["standard"] }, { "description": "Choice that represents selecting none of the options; still counts toward quorum and allows proposals with all bad options to be voted against.", "type": "string", - "enum": [ - "none" - ] + "enum": ["none"] } ] }, @@ -4699,9 +4091,7 @@ }, "MultipleChoiceVotes": { "type": "object", - "required": [ - "vote_weights" - ], + "required": ["vote_weights"], "properties": { "vote_weights": { "type": "array", @@ -4718,9 +4108,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -4732,9 +4120,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -4750,16 +4136,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4775,16 +4156,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4800,17 +4176,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4833,57 +4203,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -4897,9 +4251,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -4953,27 +4305,18 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingStrategy": { "description": "Determines how many choices may be selected.", "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -4992,17 +4335,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -5029,24 +4366,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -5079,17 +4406,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -5116,16 +4437,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -5141,15 +4457,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -5177,9 +4489,7 @@ { "description": "Anyone may create a proposal, free of charge.", "type": "object", - "required": [ - "anyone" - ], + "required": ["anyone"], "properties": { "anyone": { "type": "object", @@ -5191,15 +4501,11 @@ { "description": "Only ADDR may create proposals. It is expected that ADDR is a pre-propose module, though we only require that it is a valid address.", "type": "object", - "required": [ - "module" - ], + "required": ["module"], "properties": { "module": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "$ref": "#/definitions/Addr" @@ -5222,9 +4528,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", @@ -5239,9 +4543,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ProposalListResponse", "type": "object", - "required": [ - "proposals" - ], + "required": ["proposals"], "properties": { "proposals": { "type": "array", @@ -5262,16 +4564,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -5290,15 +4587,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -5357,10 +4650,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -5374,9 +4664,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -5386,9 +4674,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -5398,9 +4684,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -5410,9 +4694,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -5423,16 +4705,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -5447,9 +4724,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -5459,9 +4734,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -5471,9 +4744,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -5493,15 +4764,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -5515,15 +4782,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -5541,9 +4804,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -5556,9 +4817,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -5580,9 +4839,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -5595,9 +4852,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -5608,9 +4863,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -5627,16 +4880,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -5664,18 +4912,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -5709,17 +4950,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -5743,15 +4978,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -5792,10 +5023,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -5816,16 +5044,12 @@ "oneOf": [ { "type": "string", - "enum": [ - "standard" - ] + "enum": ["standard"] }, { "description": "Choice that represents selecting none of the options; still counts toward quorum and allows proposals with all bad options to be voted against.", "type": "string", - "enum": [ - "none" - ] + "enum": ["none"] } ] }, @@ -5945,9 +5169,7 @@ }, "MultipleChoiceVotes": { "type": "object", - "required": [ - "vote_weights" - ], + "required": ["vote_weights"], "properties": { "vote_weights": { "type": "array", @@ -5964,9 +5186,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -5978,9 +5198,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -5993,10 +5211,7 @@ "ProposalResponse": { "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "type": "integer", @@ -6015,16 +5230,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6040,16 +5250,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6065,17 +5270,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6098,57 +5297,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -6162,9 +5345,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -6218,27 +5399,18 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "VotingStrategy": { "description": "Determines how many choices may be selected.", "oneOf": [ { "type": "object", - "required": [ - "single_choice" - ], + "required": ["single_choice"], "properties": { "single_choice": { "type": "object", - "required": [ - "quorum" - ], + "required": ["quorum"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -6257,17 +5429,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -6294,24 +5460,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -6344,17 +5500,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -6381,16 +5531,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -6406,15 +5551,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -6432,9 +5573,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/proposal/dao-proposal-single/schema/dao-proposal-single.json b/contracts/proposal/dao-proposal-single/schema/dao-proposal-single.json index c5203092d..7f14ec6f5 100644 --- a/contracts/proposal/dao-proposal-single/schema/dao-proposal-single.json +++ b/contracts/proposal/dao-proposal-single/schema/dao-proposal-single.json @@ -1,6 +1,6 @@ { "contract_name": "dao-proposal-single", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", @@ -82,15 +82,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -104,9 +100,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -123,10 +117,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -145,9 +136,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -160,9 +149,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -177,12 +164,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -229,9 +211,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -243,9 +223,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -260,9 +238,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -274,15 +250,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -301,15 +273,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -323,16 +291,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -349,15 +312,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -415,9 +374,7 @@ { "description": "Creates a proposal in the module.", "type": "object", - "required": [ - "propose" - ], + "required": ["propose"], "properties": { "propose": { "$ref": "#/definitions/SingleChoiceProposeMsg" @@ -428,16 +385,11 @@ { "description": "Votes on a proposal. Voting power is determined by the DAO's voting power module.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "description": "The ID of the proposal to vote on.", @@ -447,10 +399,7 @@ }, "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The senders position on the proposal.", @@ -469,15 +418,11 @@ { "description": "Updates the sender's rationale for their vote on the specified proposal. Errors if no vote vote has been cast.", "type": "object", - "required": [ - "update_rationale" - ], + "required": ["update_rationale"], "properties": { "update_rationale": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -485,10 +430,7 @@ "minimum": 0.0 }, "rationale": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -499,15 +441,11 @@ { "description": "Causes the messages associated with a passed proposal to be executed by the DAO.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to execute.", @@ -524,15 +462,11 @@ { "description": "Callable only if veto is configured", "type": "object", - "required": [ - "veto" - ], + "required": ["veto"], "properties": { "veto": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to veto.", @@ -549,15 +483,11 @@ { "description": "Closes a proposal that has failed (either not passed or timed out). If applicable this will cause the proposal deposit associated wth said proposal to be returned.", "type": "object", - "required": [ - "close" - ], + "required": ["close"], "properties": { "close": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "description": "The ID of the proposal to close.", @@ -574,9 +504,7 @@ { "description": "Updates the governance module's config.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", @@ -652,15 +580,11 @@ { "description": "Update's the proposal creation policy used for this module. Only the DAO may call this method.", "type": "object", - "required": [ - "update_pre_propose_info" - ], + "required": ["update_pre_propose_info"], "properties": { "update_pre_propose_info": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/PreProposeInfo" @@ -674,15 +598,11 @@ { "description": "Adds an address as a consumer of proposal hooks. Consumers of proposal hooks have hook messages executed on them whenever the status of a proposal changes or a proposal is created. If a consumer contract errors when handling a hook message it will be removed from the list of consumers.", "type": "object", - "required": [ - "add_proposal_hook" - ], + "required": ["add_proposal_hook"], "properties": { "add_proposal_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -696,15 +616,11 @@ { "description": "Removes a consumer of proposal hooks.", "type": "object", - "required": [ - "remove_proposal_hook" - ], + "required": ["remove_proposal_hook"], "properties": { "remove_proposal_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -718,15 +634,11 @@ { "description": "Adds an address as a consumer of vote hooks. Consumers of vote hooks have hook messages executed on them whenever the a vote is cast. If a consumer contract errors when handling a hook message it will be removed from the list of consumers.", "type": "object", - "required": [ - "add_vote_hook" - ], + "required": ["add_vote_hook"], "properties": { "add_vote_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -740,15 +652,11 @@ { "description": "Removed a consumer of vote hooks.", "type": "object", - "required": [ - "remove_vote_hook" - ], + "required": ["remove_vote_hook"], "properties": { "remove_vote_hook": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -767,15 +675,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -789,9 +693,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -808,16 +710,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -836,15 +733,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -865,10 +758,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -882,9 +772,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -894,9 +782,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -906,9 +792,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -918,9 +802,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -931,16 +813,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -955,9 +832,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -967,9 +842,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -979,9 +852,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -1001,15 +872,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -1023,15 +890,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -1049,9 +912,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -1064,9 +925,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -1088,16 +947,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -1125,18 +979,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -1170,17 +1017,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -1204,15 +1045,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -1253,10 +1090,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -1275,12 +1109,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -1327,9 +1156,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -1341,9 +1168,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -1358,9 +1183,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -1372,15 +1195,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -1395,16 +1214,11 @@ }, "SingleChoiceAutoVote": { "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "rationale": { "description": "An optional rationale for why this vote was cast. This can be updated, set, or removed later by the address casting the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "The proposer's position on the proposal.", @@ -1420,11 +1234,7 @@ "SingleChoiceProposeMsg": { "description": "The contents of a message to create a proposal in the single choice proposal module.\n\nWe break this type out of `ExecuteMsg` because we want pre-propose modules that interact with this contract to be able to get type checking on their propose messages.\n\nWe move this type to this package so that pre-propose modules can import it without importing dao-proposal-single with the library feature which (as it is not additive) cause the execute exports to not be included in wasm builds.", "type": "object", - "required": [ - "description", - "msgs", - "title" - ], + "required": ["description", "msgs", "title"], "properties": { "description": { "description": "A description of the proposal.", @@ -1439,10 +1249,7 @@ }, "proposer": { "description": "The address creating the proposal. If no pre-propose module is attached to this module this must always be None as the proposer is the sender of the propose message. If a pre-propose module is attached, this must be Some and will set the proposer of the proposal it creates.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "title": { "description": "The title of the proposal.", @@ -1468,16 +1275,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1493,16 +1295,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1518,17 +1315,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -1552,15 +1343,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -1574,16 +1361,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -1600,15 +1382,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -1674,34 +1452,23 @@ { "description": "Marks support for the proposal.", "type": "string", - "enum": [ - "yes" - ] + "enum": ["yes"] }, { "description": "Marks opposition to the proposal.", "type": "string", - "enum": [ - "no" - ] + "enum": ["no"] }, { "description": "Marks participation but does not count towards the ratio of support / opposed.", "type": "string", - "enum": [ - "abstain" - ] + "enum": ["abstain"] } ] }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "WasmMsg": { "description": "The message types of the wasm module.\n\nSee https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto", @@ -1709,17 +1476,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -1746,24 +1507,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -1796,17 +1547,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -1833,16 +1578,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -1858,15 +1598,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -1887,9 +1623,7 @@ { "description": "Gets the proposal module's config.", "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -1901,15 +1635,11 @@ { "description": "Gets information about a proposal.", "type": "object", - "required": [ - "proposal" - ], + "required": ["proposal"], "properties": { "proposal": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "proposal_id": { "type": "integer", @@ -1925,28 +1655,20 @@ { "description": "Lists all the proposals that have been cast in this module.", "type": "object", - "required": [ - "list_proposals" - ], + "required": ["list_proposals"], "properties": { "list_proposals": { "type": "object", "properties": { "limit": { "description": "The maximum number of proposals to return as part of this query. If no limit is set a max of 30 proposals will be returned.", - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, "start_after": { "description": "The proposal ID to start listing proposals after. For example, if this is set to 2 proposals with IDs 3 and higher will be returned.", - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1959,28 +1681,20 @@ { "description": "Lists all of the proposals that have been cast in this module in decending order of proposal ID.", "type": "object", - "required": [ - "reverse_proposals" - ], + "required": ["reverse_proposals"], "properties": { "reverse_proposals": { "type": "object", "properties": { "limit": { "description": "The maximum number of proposals to return as part of this query. If no limit is set a max of 30 proposals will be returned.", - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, "start_before": { "description": "The proposal ID to start listing proposals before. For example, if this is set to 6 proposals with IDs 5 and lower will be returned.", - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -1993,16 +1707,11 @@ { "description": "Returns a voters position on a propsal.", "type": "object", - "required": [ - "get_vote" - ], + "required": ["get_vote"], "properties": { "get_vote": { "type": "object", - "required": [ - "proposal_id", - "voter" - ], + "required": ["proposal_id", "voter"], "properties": { "proposal_id": { "type": "integer", @@ -2021,22 +1730,15 @@ { "description": "Lists all of the votes that have been cast on a proposal.", "type": "object", - "required": [ - "list_votes" - ], + "required": ["list_votes"], "properties": { "list_votes": { "type": "object", - "required": [ - "proposal_id" - ], + "required": ["proposal_id"], "properties": { "limit": { "description": "The maximum number of votes to return in response to this query. If no limit is specified a max of 30 are returned.", - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 }, @@ -2048,10 +1750,7 @@ }, "start_after": { "description": "The voter to start listing votes after. Ordering is done alphabetically.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -2062,9 +1761,7 @@ { "description": "Returns the number of proposals that have been created in this module.", "type": "object", - "required": [ - "proposal_count" - ], + "required": ["proposal_count"], "properties": { "proposal_count": { "type": "object", @@ -2076,9 +1773,7 @@ { "description": "Gets the current proposal creation policy for this module.", "type": "object", - "required": [ - "proposal_creation_policy" - ], + "required": ["proposal_creation_policy"], "properties": { "proposal_creation_policy": { "type": "object", @@ -2090,9 +1785,7 @@ { "description": "Lists all of the consumers of proposal hooks for this module.", "type": "object", - "required": [ - "proposal_hooks" - ], + "required": ["proposal_hooks"], "properties": { "proposal_hooks": { "type": "object", @@ -2104,9 +1797,7 @@ { "description": "Lists all of the consumers of vote hooks for this module.", "type": "object", - "required": [ - "vote_hooks" - ], + "required": ["vote_hooks"], "properties": { "vote_hooks": { "type": "object", @@ -2118,9 +1809,7 @@ { "description": "Returns the address of the DAO this module belongs to", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -2132,9 +1821,7 @@ { "description": "Returns contract version info", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -2146,9 +1833,7 @@ { "description": "Returns the proposal ID that will be assigned to the next proposal created.", "type": "object", - "required": [ - "next_proposal_id" - ], + "required": ["next_proposal_id"], "properties": { "next_proposal_id": { "type": "object", @@ -2165,9 +1850,7 @@ "oneOf": [ { "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", @@ -2207,9 +1890,7 @@ }, { "type": "object", - "required": [ - "from_compatible" - ], + "required": ["from_compatible"], "properties": { "from_compatible": { "type": "object", @@ -2226,15 +1907,11 @@ { "description": "Set the admin to a specified address.", "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -2248,9 +1925,7 @@ { "description": "Sets the admin as the core module address.", "type": "object", - "required": [ - "core_module" - ], + "required": ["core_module"], "properties": { "core_module": { "type": "object", @@ -2267,10 +1942,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -2285,9 +1957,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -2300,9 +1970,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -2317,12 +1985,7 @@ "ModuleInstantiateInfo": { "description": "Information needed to instantiate a module.", "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { "description": "CosmWasm level admin of the instantiated contract. See: ", @@ -2368,9 +2031,7 @@ { "description": "Anyone may create a proposal free of charge.", "type": "object", - "required": [ - "anyone_may_propose" - ], + "required": ["anyone_may_propose"], "properties": { "anyone_may_propose": { "type": "object", @@ -2382,15 +2043,11 @@ { "description": "The module specified in INFO has exclusive rights to proposal creation.", "type": "object", - "required": [ - "module_may_propose" - ], + "required": ["module_may_propose"], "properties": { "module_may_propose": { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ModuleInstantiateInfo" @@ -2531,9 +2188,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -2546,9 +2201,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -2566,9 +2219,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -2580,9 +2231,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -2598,15 +2247,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -2620,16 +2265,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -2646,15 +2286,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -2744,34 +2380,24 @@ { "description": "Marks support for the proposal.", "type": "string", - "enum": [ - "yes" - ] + "enum": ["yes"] }, { "description": "Marks opposition to the proposal.", "type": "string", - "enum": [ - "no" - ] + "enum": ["no"] }, { "description": "Marks participation but does not count towards the ratio of support / opposed.", "type": "string", - "enum": [ - "abstain" - ] + "enum": ["abstain"] } ] }, "VoteInfo": { "description": "Information about a vote that was cast.", "type": "object", - "required": [ - "power", - "vote", - "voter" - ], + "required": ["power", "vote", "voter"], "properties": { "power": { "description": "The voting power behind the vote.", @@ -2783,10 +2409,7 @@ }, "rationale": { "description": "Address-specified rationale for the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "Position on the vote.", @@ -2813,9 +2436,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -2825,10 +2446,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -2848,9 +2466,7 @@ "title": "ProposalListResponse", "description": "A list of proposals returned by `ListProposals` and `ReverseProposals`.", "type": "object", - "required": [ - "proposals" - ], + "required": ["proposals"], "properties": { "proposals": { "type": "array", @@ -2871,16 +2487,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -2899,15 +2510,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -2928,10 +2535,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -2945,9 +2549,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -2957,9 +2559,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -2969,9 +2569,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -2981,9 +2579,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -2994,16 +2590,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -3018,9 +2609,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -3030,9 +2619,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -3042,9 +2629,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -3064,15 +2649,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -3086,15 +2667,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -3112,9 +2689,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -3127,9 +2702,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -3151,9 +2724,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -3166,9 +2737,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -3179,9 +2748,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -3198,16 +2765,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -3235,18 +2797,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -3280,17 +2835,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -3314,15 +2863,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -3363,10 +2908,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -3388,9 +2930,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -3402,9 +2942,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -3417,10 +2955,7 @@ "ProposalResponse": { "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "description": "The ID of the proposal being returned.", @@ -3554,16 +3089,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3579,16 +3109,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3604,17 +3129,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -3637,57 +3156,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -3701,9 +3204,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -3713,15 +3214,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -3735,16 +3232,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -3761,15 +3253,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -3832,20 +3320,11 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "Votes": { "type": "object", - "required": [ - "abstain", - "no", - "yes" - ], + "required": ["abstain", "no", "yes"], "properties": { "abstain": { "$ref": "#/definitions/Uint128" @@ -3865,17 +3344,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -3902,24 +3375,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -3952,17 +3415,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -3989,16 +3446,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -4014,15 +3466,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -4041,9 +3489,7 @@ "title": "VoteListResponse", "description": "Information about the votes for a proposal.", "type": "object", - "required": [ - "votes" - ], + "required": ["votes"], "properties": { "votes": { "type": "array", @@ -4067,34 +3513,24 @@ { "description": "Marks support for the proposal.", "type": "string", - "enum": [ - "yes" - ] + "enum": ["yes"] }, { "description": "Marks opposition to the proposal.", "type": "string", - "enum": [ - "no" - ] + "enum": ["no"] }, { "description": "Marks participation but does not count towards the ratio of support / opposed.", "type": "string", - "enum": [ - "abstain" - ] + "enum": ["abstain"] } ] }, "VoteInfo": { "description": "Information about a vote that was cast.", "type": "object", - "required": [ - "power", - "vote", - "voter" - ], + "required": ["power", "vote", "voter"], "properties": { "power": { "description": "The voting power behind the vote.", @@ -4106,10 +3542,7 @@ }, "rationale": { "description": "Address-specified rationale for the vote.", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "vote": { "description": "Position on the vote.", @@ -4144,10 +3577,7 @@ "title": "ProposalResponse", "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "description": "The ID of the proposal being returned.", @@ -4171,16 +3601,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -4199,15 +3624,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -4228,10 +3649,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -4245,9 +3663,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -4257,9 +3673,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -4269,9 +3683,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -4281,9 +3693,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -4294,16 +3704,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -4318,9 +3723,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -4330,9 +3733,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -4342,9 +3743,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -4364,15 +3763,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -4386,15 +3781,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -4412,9 +3803,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -4427,9 +3816,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -4451,9 +3838,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -4466,9 +3851,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -4479,9 +3862,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -4498,16 +3879,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -4535,18 +3911,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -4580,17 +3949,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -4614,15 +3977,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -4663,10 +4022,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -4688,9 +4044,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -4702,9 +4056,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -4834,16 +4186,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4859,16 +4206,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4884,17 +4226,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -4917,57 +4253,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -4981,9 +4301,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -4993,15 +4311,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -5015,16 +4329,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -5041,15 +4350,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -5112,20 +4417,11 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "Votes": { "type": "object", - "required": [ - "abstain", - "no", - "yes" - ], + "required": ["abstain", "no", "yes"], "properties": { "abstain": { "$ref": "#/definitions/Uint128" @@ -5145,17 +4441,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -5182,24 +4472,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -5232,17 +4512,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -5269,16 +4543,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -5294,15 +4563,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -5330,9 +4595,7 @@ { "description": "Anyone may create a proposal, free of charge.", "type": "object", - "required": [ - "anyone" - ], + "required": ["anyone"], "properties": { "anyone": { "type": "object", @@ -5344,15 +4607,11 @@ { "description": "Only ADDR may create proposals. It is expected that ADDR is a pre-propose module, though we only require that it is a valid address.", "type": "object", - "required": [ - "module" - ], + "required": ["module"], "properties": { "module": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "$ref": "#/definitions/Addr" @@ -5375,9 +4634,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", @@ -5393,9 +4650,7 @@ "title": "ProposalListResponse", "description": "A list of proposals returned by `ListProposals` and `ReverseProposals`.", "type": "object", - "required": [ - "proposals" - ], + "required": ["proposals"], "properties": { "proposals": { "type": "array", @@ -5416,16 +4671,11 @@ { "description": "Sends native tokens from the contract to the given address.\n\nThis is translated to a [MsgSend](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/bank/v1beta1/tx.proto#L19-L28). `from_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "send" - ], + "required": ["send"], "properties": { "send": { "type": "object", - "required": [ - "amount", - "to_address" - ], + "required": ["amount", "to_address"], "properties": { "amount": { "type": "array", @@ -5444,15 +4694,11 @@ { "description": "This will burn the given coins from the contract's account. There is no Cosmos SDK message that performs this, but it can be done by calling the bank keeper. Important if a contract controls significant token supply that must be retired.", "type": "object", - "required": [ - "burn" - ], + "required": ["burn"], "properties": { "burn": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "type": "array", @@ -5473,10 +4719,7 @@ }, "Coin": { "type": "object", - "required": [ - "amount", - "denom" - ], + "required": ["amount", "denom"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -5490,9 +4733,7 @@ "oneOf": [ { "type": "object", - "required": [ - "bank" - ], + "required": ["bank"], "properties": { "bank": { "$ref": "#/definitions/BankMsg" @@ -5502,9 +4743,7 @@ }, { "type": "object", - "required": [ - "custom" - ], + "required": ["custom"], "properties": { "custom": { "$ref": "#/definitions/Empty" @@ -5514,9 +4753,7 @@ }, { "type": "object", - "required": [ - "staking" - ], + "required": ["staking"], "properties": { "staking": { "$ref": "#/definitions/StakingMsg" @@ -5526,9 +4763,7 @@ }, { "type": "object", - "required": [ - "distribution" - ], + "required": ["distribution"], "properties": { "distribution": { "$ref": "#/definitions/DistributionMsg" @@ -5539,16 +4774,11 @@ { "description": "A Stargate message encoded the same way as a protobuf [Any](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/any.proto). This is the same structure as messages in `TxBody` from [ADR-020](https://github.com/cosmos/cosmos-sdk/blob/master/docs/architecture/adr-020-protobuf-transaction-encoding.md)", "type": "object", - "required": [ - "stargate" - ], + "required": ["stargate"], "properties": { "stargate": { "type": "object", - "required": [ - "type_url", - "value" - ], + "required": ["type_url", "value"], "properties": { "type_url": { "type": "string" @@ -5563,9 +4793,7 @@ }, { "type": "object", - "required": [ - "ibc" - ], + "required": ["ibc"], "properties": { "ibc": { "$ref": "#/definitions/IbcMsg" @@ -5575,9 +4803,7 @@ }, { "type": "object", - "required": [ - "wasm" - ], + "required": ["wasm"], "properties": { "wasm": { "$ref": "#/definitions/WasmMsg" @@ -5587,9 +4813,7 @@ }, { "type": "object", - "required": [ - "gov" - ], + "required": ["gov"], "properties": { "gov": { "$ref": "#/definitions/GovMsg" @@ -5609,15 +4833,11 @@ { "description": "This is translated to a [MsgSetWithdrawAddress](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L29-L37). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "set_withdraw_address" - ], + "required": ["set_withdraw_address"], "properties": { "set_withdraw_address": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "The `withdraw_address`", @@ -5631,15 +4851,11 @@ { "description": "This is translated to a [[MsgWithdrawDelegatorReward](https://github.com/cosmos/cosmos-sdk/blob/v0.42.4/proto/cosmos/distribution/v1beta1/tx.proto#L42-L50). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "withdraw_delegator_reward" - ], + "required": ["withdraw_delegator_reward"], "properties": { "withdraw_delegator_reward": { "type": "object", - "required": [ - "validator" - ], + "required": ["validator"], "properties": { "validator": { "description": "The `validator_address`", @@ -5657,9 +4873,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -5672,9 +4886,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -5696,9 +4908,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -5711,9 +4921,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -5724,9 +4932,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -5743,16 +4949,11 @@ { "description": "This maps directly to [MsgVote](https://github.com/cosmos/cosmos-sdk/blob/v0.42.5/proto/cosmos/gov/v1beta1/tx.proto#L46-L56) in the Cosmos SDK with voter set to the contract address.", "type": "object", - "required": [ - "vote" - ], + "required": ["vote"], "properties": { "vote": { "type": "object", - "required": [ - "proposal_id", - "vote" - ], + "required": ["proposal_id", "vote"], "properties": { "proposal_id": { "type": "integer", @@ -5780,18 +4981,11 @@ { "description": "Sends bank tokens owned by the contract to the given address on another chain. The channel must already be established between the ibctransfer module on this chain and a matching module on the remote chain. We cannot select the port_id, this is whatever the local chain has bound the ibctransfer module to.", "type": "object", - "required": [ - "transfer" - ], + "required": ["transfer"], "properties": { "transfer": { "type": "object", - "required": [ - "amount", - "channel_id", - "timeout", - "to_address" - ], + "required": ["amount", "channel_id", "timeout", "to_address"], "properties": { "amount": { "description": "packet data only supports one coin https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/ibc/applications/transfer/v1/transfer.proto#L11-L20", @@ -5825,17 +5019,11 @@ { "description": "Sends an IBC packet with given data over the existing channel. Data should be encoded in a format defined by the channel version, and the module on the other side should know how to parse this.", "type": "object", - "required": [ - "send_packet" - ], + "required": ["send_packet"], "properties": { "send_packet": { "type": "object", - "required": [ - "channel_id", - "data", - "timeout" - ], + "required": ["channel_id", "data", "timeout"], "properties": { "channel_id": { "type": "string" @@ -5859,15 +5047,11 @@ { "description": "This will close an existing channel that is owned by this contract. Port is auto-assigned to the contract's IBC port", "type": "object", - "required": [ - "close_channel" - ], + "required": ["close_channel"], "properties": { "close_channel": { "type": "object", - "required": [ - "channel_id" - ], + "required": ["channel_id"], "properties": { "channel_id": { "type": "string" @@ -5908,10 +5092,7 @@ "IbcTimeoutBlock": { "description": "IBCTimeoutHeight Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients. Ordering is (revision_number, timeout_height)", "type": "object", - "required": [ - "height", - "revision" - ], + "required": ["height", "revision"], "properties": { "height": { "description": "block height after which the packet times out. the height within the given revision", @@ -5933,9 +5114,7 @@ { "description": "The majority of voters must vote yes for the proposal to pass.", "type": "object", - "required": [ - "majority" - ], + "required": ["majority"], "properties": { "majority": { "type": "object", @@ -5947,9 +5126,7 @@ { "description": "A percentage of voting power >= percent must vote yes for the proposal to pass.", "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -5962,10 +5139,7 @@ "ProposalResponse": { "description": "Information about a proposal returned by proposal queries.", "type": "object", - "required": [ - "id", - "proposal" - ], + "required": ["id", "proposal"], "properties": { "id": { "description": "The ID of the proposal being returned.", @@ -6099,16 +5273,11 @@ { "description": "This is translated to a [MsgDelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L81-L90). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "delegate" - ], + "required": ["delegate"], "properties": { "delegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6124,16 +5293,11 @@ { "description": "This is translated to a [MsgUndelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L112-L121). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "undelegate" - ], + "required": ["undelegate"], "properties": { "undelegate": { "type": "object", - "required": [ - "amount", - "validator" - ], + "required": ["amount", "validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6149,17 +5313,11 @@ { "description": "This is translated to a [MsgBeginRedelegate](https://github.com/cosmos/cosmos-sdk/blob/v0.40.0/proto/cosmos/staking/v1beta1/tx.proto#L95-L105). `delegator_address` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "redelegate" - ], + "required": ["redelegate"], "properties": { "redelegate": { "type": "object", - "required": [ - "amount", - "dst_validator", - "src_validator" - ], + "required": ["amount", "dst_validator", "src_validator"], "properties": { "amount": { "$ref": "#/definitions/Coin" @@ -6182,57 +5340,41 @@ { "description": "The proposal is open for voting.", "type": "string", - "enum": [ - "open" - ] + "enum": ["open"] }, { "description": "The proposal has been rejected.", "type": "string", - "enum": [ - "rejected" - ] + "enum": ["rejected"] }, { "description": "The proposal has been passed but has not been executed.", "type": "string", - "enum": [ - "passed" - ] + "enum": ["passed"] }, { "description": "The proposal has been passed and executed.", "type": "string", - "enum": [ - "executed" - ] + "enum": ["executed"] }, { "description": "The proposal has failed or expired and has been closed. A proposal deposit refund has been issued if applicable.", "type": "string", - "enum": [ - "closed" - ] + "enum": ["closed"] }, { "description": "The proposal's execution failed.", "type": "string", - "enum": [ - "execution_failed" - ] + "enum": ["execution_failed"] }, { "description": "The proposal is timelocked. Only the configured vetoer can execute or veto until the timelock expires.", "type": "object", - "required": [ - "veto_timelock" - ], + "required": ["veto_timelock"], "properties": { "veto_timelock": { "type": "object", - "required": [ - "expiration" - ], + "required": ["expiration"], "properties": { "expiration": { "$ref": "#/definitions/Expiration" @@ -6246,9 +5388,7 @@ { "description": "The proposal has been vetoed.", "type": "string", - "enum": [ - "vetoed" - ] + "enum": ["vetoed"] } ] }, @@ -6258,15 +5398,11 @@ { "description": "Declares a percentage of the total weight that must cast Yes votes in order for a proposal to pass. See `ThresholdResponse::AbsolutePercentage` in the cw3 spec for details.", "type": "object", - "required": [ - "absolute_percentage" - ], + "required": ["absolute_percentage"], "properties": { "absolute_percentage": { "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "$ref": "#/definitions/PercentageThreshold" @@ -6280,16 +5416,11 @@ { "description": "Declares a `quorum` of the total votes that must participate in the election in order for the vote to be considered at all. See `ThresholdResponse::ThresholdQuorum` in the cw3 spec for details.", "type": "object", - "required": [ - "threshold_quorum" - ], + "required": ["threshold_quorum"], "properties": { "threshold_quorum": { "type": "object", - "required": [ - "quorum", - "threshold" - ], + "required": ["quorum", "threshold"], "properties": { "quorum": { "$ref": "#/definitions/PercentageThreshold" @@ -6306,15 +5437,11 @@ { "description": "An absolute number of votes needed for something to cross the threshold. Useful for multisig style voting.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "threshold" - ], + "required": ["threshold"], "properties": { "threshold": { "$ref": "#/definitions/Uint128" @@ -6377,20 +5504,11 @@ }, "VoteOption": { "type": "string", - "enum": [ - "yes", - "no", - "abstain", - "no_with_veto" - ] + "enum": ["yes", "no", "abstain", "no_with_veto"] }, "Votes": { "type": "object", - "required": [ - "abstain", - "no", - "yes" - ], + "required": ["abstain", "no", "yes"], "properties": { "abstain": { "$ref": "#/definitions/Uint128" @@ -6410,17 +5528,11 @@ { "description": "Dispatches a call to another contract at a known address (with known ABI).\n\nThis is translated to a [MsgExecuteContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L68-L78). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "execute" - ], + "required": ["execute"], "properties": { "execute": { "type": "object", - "required": [ - "contract_addr", - "funds", - "msg" - ], + "required": ["contract_addr", "funds", "msg"], "properties": { "contract_addr": { "type": "string" @@ -6447,24 +5559,14 @@ { "description": "Instantiates a new contracts from previously uploaded Wasm code.\n\nThe contract address is non-predictable. But it is guaranteed that when emitting the same Instantiate message multiple times, multiple instances on different addresses will be generated. See also Instantiate2.\n\nThis is translated to a [MsgInstantiateContract](https://github.com/CosmWasm/wasmd/blob/v0.29.2/proto/cosmwasm/wasm/v1/tx.proto#L53-L71). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "instantiate" - ], + "required": ["instantiate"], "properties": { "instantiate": { "type": "object", - "required": [ - "code_id", - "funds", - "label", - "msg" - ], + "required": ["code_id", "funds", "label", "msg"], "properties": { "admin": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "code_id": { "type": "integer", @@ -6497,17 +5599,11 @@ { "description": "Migrates a given contracts to use new wasm code. Passes a MigrateMsg to allow us to customize behavior.\n\nOnly the contract admin (as defined in wasmd), if any, is able to make this call.\n\nThis is translated to a [MsgMigrateContract](https://github.com/CosmWasm/wasmd/blob/v0.14.0/x/wasm/internal/types/tx.proto#L86-L96). `sender` is automatically filled with the current contract's address.", "type": "object", - "required": [ - "migrate" - ], + "required": ["migrate"], "properties": { "migrate": { "type": "object", - "required": [ - "contract_addr", - "msg", - "new_code_id" - ], + "required": ["contract_addr", "msg", "new_code_id"], "properties": { "contract_addr": { "type": "string" @@ -6534,16 +5630,11 @@ { "description": "Sets a new admin (for migrate) on the given contract. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "update_admin" - ], + "required": ["update_admin"], "properties": { "update_admin": { "type": "object", - "required": [ - "admin", - "contract_addr" - ], + "required": ["admin", "contract_addr"], "properties": { "admin": { "type": "string" @@ -6559,15 +5650,11 @@ { "description": "Clears the admin on the given contract, so no more migration possible. Fails if this contract is not currently admin of the target contract.", "type": "object", - "required": [ - "clear_admin" - ], + "required": ["clear_admin"], "properties": { "clear_admin": { "type": "object", - "required": [ - "contract_addr" - ], + "required": ["contract_addr"], "properties": { "contract_addr": { "type": "string" @@ -6585,9 +5672,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", diff --git a/contracts/staking/cw20-stake-external-rewards/schema/cw20-stake-external-rewards.json b/contracts/staking/cw20-stake-external-rewards/schema/cw20-stake-external-rewards.json index 3f2bf717f..096d9528a 100644 --- a/contracts/staking/cw20-stake-external-rewards/schema/cw20-stake-external-rewards.json +++ b/contracts/staking/cw20-stake-external-rewards/schema/cw20-stake-external-rewards.json @@ -1,22 +1,15 @@ { "contract_name": "cw20-stake-external-rewards", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "reward_duration", - "reward_token", - "staking_contract" - ], + "required": ["reward_duration", "reward_token", "staking_contract"], "properties": { "owner": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "reward_duration": { "type": "integer", @@ -40,9 +33,7 @@ "oneOf": [ { "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -52,9 +43,7 @@ }, { "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -72,9 +61,7 @@ "oneOf": [ { "type": "object", - "required": [ - "stake_change_hook" - ], + "required": ["stake_change_hook"], "properties": { "stake_change_hook": { "$ref": "#/definitions/StakeChangedHookMsg" @@ -84,9 +71,7 @@ }, { "type": "object", - "required": [ - "claim" - ], + "required": ["claim"], "properties": { "claim": { "type": "object", @@ -97,9 +82,7 @@ }, { "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -109,9 +92,7 @@ }, { "type": "object", - "required": [ - "fund" - ], + "required": ["fund"], "properties": { "fund": { "type": "object", @@ -122,15 +103,11 @@ }, { "type": "object", - "required": [ - "update_reward_duration" - ], + "required": ["update_reward_duration"], "properties": { "update_reward_duration": { "type": "object", - "required": [ - "new_duration" - ], + "required": ["new_duration"], "properties": { "new_duration": { "type": "integer", @@ -146,9 +123,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -164,15 +139,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -196,16 +167,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -220,11 +187,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -244,9 +207,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -259,9 +220,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -272,9 +231,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -290,16 +247,11 @@ "oneOf": [ { "type": "object", - "required": [ - "stake" - ], + "required": ["stake"], "properties": { "stake": { "type": "object", - "required": [ - "addr", - "amount" - ], + "required": ["addr", "amount"], "properties": { "addr": { "$ref": "#/definitions/Addr" @@ -315,16 +267,11 @@ }, { "type": "object", - "required": [ - "unstake" - ], + "required": ["unstake"], "properties": { "unstake": { "type": "object", - "required": [ - "addr", - "amount" - ], + "required": ["addr", "amount"], "properties": { "addr": { "$ref": "#/definitions/Addr" @@ -364,9 +311,7 @@ "oneOf": [ { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -377,15 +322,11 @@ }, { "type": "object", - "required": [ - "get_pending_rewards" - ], + "required": ["get_pending_rewards"], "properties": { "get_pending_rewards": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -398,9 +339,7 @@ }, { "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -418,9 +357,7 @@ { "description": "Migrates from version 0.2.6 to 2.0.0. The significant changes being the addition of a two-step ownership transfer using `cw_ownable` and the removal of the manager. Migrating will automatically remove the current manager.", "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", @@ -437,12 +374,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "PendingRewardsResponse", "type": "object", - "required": [ - "address", - "denom", - "last_update_block", - "pending_rewards" - ], + "required": ["address", "denom", "last_update_block", "pending_rewards"], "properties": { "address": { "type": "string" @@ -469,9 +401,7 @@ "oneOf": [ { "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -481,9 +411,7 @@ }, { "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -503,10 +431,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "config", - "reward" - ], + "required": ["config", "reward"], "properties": { "config": { "$ref": "#/definitions/Config" @@ -523,10 +448,7 @@ }, "Config": { "type": "object", - "required": [ - "reward_token", - "staking_contract" - ], + "required": ["reward_token", "staking_contract"], "properties": { "reward_token": { "$ref": "#/definitions/Denom" @@ -541,9 +463,7 @@ "oneOf": [ { "type": "object", - "required": [ - "native" - ], + "required": ["native"], "properties": { "native": { "type": "string" @@ -553,9 +473,7 @@ }, { "type": "object", - "required": [ - "cw20" - ], + "required": ["cw20"], "properties": { "cw20": { "$ref": "#/definitions/Addr" @@ -567,11 +485,7 @@ }, "RewardConfig": { "type": "object", - "required": [ - "period_finish", - "reward_duration", - "reward_rate" - ], + "required": ["period_finish", "reward_duration", "reward_rate"], "properties": { "period_finish": { "type": "integer", @@ -647,9 +561,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -662,9 +574,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -675,9 +585,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", diff --git a/contracts/staking/cw20-stake-reward-distributor/schema/cw20-stake-reward-distributor.json b/contracts/staking/cw20-stake-reward-distributor/schema/cw20-stake-reward-distributor.json index df367acc8..c742a3c7e 100644 --- a/contracts/staking/cw20-stake-reward-distributor/schema/cw20-stake-reward-distributor.json +++ b/contracts/staking/cw20-stake-reward-distributor/schema/cw20-stake-reward-distributor.json @@ -1,17 +1,12 @@ { "contract_name": "cw20-stake-reward-distributor", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "owner", - "reward_rate", - "reward_token", - "staking_addr" - ], + "required": ["owner", "reward_rate", "reward_token", "staking_addr"], "properties": { "owner": { "type": "string" @@ -40,17 +35,11 @@ "oneOf": [ { "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", - "required": [ - "reward_rate", - "reward_token", - "staking_addr" - ], + "required": ["reward_rate", "reward_token", "staking_addr"], "properties": { "reward_rate": { "$ref": "#/definitions/Uint128" @@ -69,9 +58,7 @@ }, { "type": "object", - "required": [ - "distribute" - ], + "required": ["distribute"], "properties": { "distribute": { "type": "object", @@ -82,9 +69,7 @@ }, { "type": "object", - "required": [ - "withdraw" - ], + "required": ["withdraw"], "properties": { "withdraw": { "type": "object", @@ -96,9 +81,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -114,15 +97,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -146,16 +125,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -165,9 +140,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -180,9 +153,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -193,9 +164,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -230,9 +199,7 @@ "oneOf": [ { "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -243,9 +210,7 @@ }, { "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -263,9 +228,7 @@ { "description": "Updates the contract from v1 -> v2. Version two implements a two step ownership transfer.", "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", @@ -282,11 +245,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "balance", - "config", - "last_payment_block" - ], + "required": ["balance", "config", "last_payment_block"], "properties": { "balance": { "$ref": "#/definitions/Uint128" @@ -308,11 +267,7 @@ }, "Config": { "type": "object", - "required": [ - "reward_rate", - "reward_token", - "staking_addr" - ], + "required": ["reward_rate", "reward_token", "staking_addr"], "properties": { "reward_rate": { "$ref": "#/definitions/Uint128" @@ -384,9 +339,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -399,9 +352,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -412,9 +363,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", diff --git a/contracts/staking/cw20-stake/schema/cw20-stake.json b/contracts/staking/cw20-stake/schema/cw20-stake.json index 1a6102810..c050f9a9d 100644 --- a/contracts/staking/cw20-stake/schema/cw20-stake.json +++ b/contracts/staking/cw20-stake/schema/cw20-stake.json @@ -1,20 +1,15 @@ { "contract_name": "cw20-stake", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "token_address" - ], + "required": ["token_address"], "properties": { "owner": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "token_address": { "type": "string" @@ -37,9 +32,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -52,9 +45,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -74,9 +65,7 @@ "oneOf": [ { "type": "object", - "required": [ - "receive" - ], + "required": ["receive"], "properties": { "receive": { "$ref": "#/definitions/Cw20ReceiveMsg" @@ -86,15 +75,11 @@ }, { "type": "object", - "required": [ - "unstake" - ], + "required": ["unstake"], "properties": { "unstake": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -107,9 +92,7 @@ }, { "type": "object", - "required": [ - "claim" - ], + "required": ["claim"], "properties": { "claim": { "type": "object", @@ -120,9 +103,7 @@ }, { "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", @@ -145,15 +126,11 @@ }, { "type": "object", - "required": [ - "add_hook" - ], + "required": ["add_hook"], "properties": { "add_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -166,15 +143,11 @@ }, { "type": "object", - "required": [ - "remove_hook" - ], + "required": ["remove_hook"], "properties": { "remove_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -188,9 +161,7 @@ { "description": "Update the contract's ownership. The `action` to be provided can be either to propose transferring ownership to an account, accept a pending ownership transfer, or renounce the ownership permanently.", "type": "object", - "required": [ - "update_ownership" - ], + "required": ["update_ownership"], "properties": { "update_ownership": { "$ref": "#/definitions/Action" @@ -206,15 +177,11 @@ { "description": "Propose to transfer the contract's ownership to another account, optionally with an expiry time.\n\nCan only be called by the contract's current owner.\n\nAny existing pending ownership transfer is overwritten.", "type": "object", - "required": [ - "transfer_ownership" - ], + "required": ["transfer_ownership"], "properties": { "transfer_ownership": { "type": "object", - "required": [ - "new_owner" - ], + "required": ["new_owner"], "properties": { "expiry": { "anyOf": [ @@ -238,16 +205,12 @@ { "description": "Accept the pending ownership transfer.\n\nCan only be called by the pending owner.", "type": "string", - "enum": [ - "accept_ownership" - ] + "enum": ["accept_ownership"] }, { "description": "Give up the contract's ownership and the possibility of appointing a new owner.\n\nCan only be invoked by the contract's current owner.\n\nAny existing pending ownership transfer is canceled.", "type": "string", - "enum": [ - "renounce_ownership" - ] + "enum": ["renounce_ownership"] } ] }, @@ -258,11 +221,7 @@ "Cw20ReceiveMsg": { "description": "Cw20ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "amount", - "msg", - "sender" - ], + "required": ["amount", "msg", "sender"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -281,9 +240,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -296,9 +253,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -316,9 +271,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -331,9 +284,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -344,9 +295,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -381,24 +330,17 @@ "oneOf": [ { "type": "object", - "required": [ - "staked_balance_at_height" - ], + "required": ["staked_balance_at_height"], "properties": { "staked_balance_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -410,18 +352,13 @@ }, { "type": "object", - "required": [ - "total_staked_at_height" - ], + "required": ["total_staked_at_height"], "properties": { "total_staked_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -433,15 +370,11 @@ }, { "type": "object", - "required": [ - "staked_value" - ], + "required": ["staked_value"], "properties": { "staked_value": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -454,9 +387,7 @@ }, { "type": "object", - "required": [ - "total_value" - ], + "required": ["total_value"], "properties": { "total_value": { "type": "object", @@ -467,9 +398,7 @@ }, { "type": "object", - "required": [ - "get_config" - ], + "required": ["get_config"], "properties": { "get_config": { "type": "object", @@ -480,15 +409,11 @@ }, { "type": "object", - "required": [ - "claims" - ], + "required": ["claims"], "properties": { "claims": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -501,9 +426,7 @@ }, { "type": "object", - "required": [ - "get_hooks" - ], + "required": ["get_hooks"], "properties": { "get_hooks": { "type": "object", @@ -514,26 +437,18 @@ }, { "type": "object", - "required": [ - "list_stakers" - ], + "required": ["list_stakers"], "properties": { "list_stakers": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -543,9 +458,7 @@ }, { "type": "object", - "required": [ - "ownership" - ], + "required": ["ownership"], "properties": { "ownership": { "type": "object", @@ -563,9 +476,7 @@ { "description": "Migrates the contract from version one to version two. This will remove the contract's current manager, and require a nomination -> acceptance flow for future ownership transfers.", "type": "object", - "required": [ - "from_v1" - ], + "required": ["from_v1"], "properties": { "from_v1": { "type": "object", @@ -582,9 +493,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ClaimsResponse", "type": "object", - "required": [ - "claims" - ], + "required": ["claims"], "properties": { "claims": { "type": "array", @@ -597,10 +506,7 @@ "definitions": { "Claim": { "type": "object", - "required": [ - "amount", - "release_at" - ], + "required": ["amount", "release_at"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -617,9 +523,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -632,9 +536,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -645,9 +547,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -680,9 +580,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "token_address" - ], + "required": ["token_address"], "properties": { "token_address": { "$ref": "#/definitions/Addr" @@ -709,9 +607,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -724,9 +620,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -744,9 +638,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "GetHooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", @@ -761,9 +653,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ListStakersResponse", "type": "object", - "required": [ - "stakers" - ], + "required": ["stakers"], "properties": { "stakers": { "type": "array", @@ -776,10 +666,7 @@ "definitions": { "StakerBalanceResponse": { "type": "object", - "required": [ - "address", - "balance" - ], + "required": ["address", "balance"], "properties": { "address": { "type": "string" @@ -848,9 +735,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -863,9 +748,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -876,9 +759,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -907,10 +788,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "StakedBalanceAtHeightResponse", "type": "object", - "required": [ - "balance", - "height" - ], + "required": ["balance", "height"], "properties": { "balance": { "$ref": "#/definitions/Uint128" @@ -933,9 +811,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "StakedValueResponse", "type": "object", - "required": [ - "value" - ], + "required": ["value"], "properties": { "value": { "$ref": "#/definitions/Uint128" @@ -953,10 +829,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalStakedAtHeightResponse", "type": "object", - "required": [ - "height", - "total" - ], + "required": ["height", "total"], "properties": { "height": { "type": "integer", @@ -979,9 +852,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalValueResponse", "type": "object", - "required": [ - "total" - ], + "required": ["total"], "properties": { "total": { "$ref": "#/definitions/Uint128" diff --git a/contracts/voting/dao-voting-cw20-staked/schema/dao-voting-cw20-staked.json b/contracts/voting/dao-voting-cw20-staked/schema/dao-voting-cw20-staked.json index fab44b7e6..e84354243 100644 --- a/contracts/voting/dao-voting-cw20-staked/schema/dao-voting-cw20-staked.json +++ b/contracts/voting/dao-voting-cw20-staked/schema/dao-voting-cw20-staked.json @@ -1,14 +1,12 @@ { "contract_name": "dao-voting-cw20-staked", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "token_info" - ], + "required": ["token_info"], "properties": { "active_threshold": { "description": "The number or percentage of tokens that must be staked for the DAO to be active", @@ -33,15 +31,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -55,15 +49,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -82,10 +72,7 @@ }, "Cw20Coin": { "type": "object", - "required": [ - "address", - "amount" - ], + "required": ["address", "amount"], "properties": { "address": { "type": "string" @@ -105,9 +92,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -120,9 +105,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -140,9 +123,7 @@ { "description": "Store the Logo as an SVG file. The content must conform to the spec at https://en.wikipedia.org/wiki/Scalable_Vector_Graphics (The contract should do some light-weight sanity-check validation)", "type": "object", - "required": [ - "svg" - ], + "required": ["svg"], "properties": { "svg": { "$ref": "#/definitions/Binary" @@ -153,9 +134,7 @@ { "description": "Store the Logo as a PNG file. This will likely only support up to 64x64 or so within the 5KB limit.", "type": "object", - "required": [ - "png" - ], + "required": ["png"], "properties": { "png": { "$ref": "#/definitions/Binary" @@ -169,10 +148,7 @@ "type": "object", "properties": { "description": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "logo": { "anyOf": [ @@ -185,16 +161,10 @@ ] }, "marketing": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "project": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -205,9 +175,7 @@ { "description": "A reference to an externally hosted logo. Must be a valid HTTP or HTTPS URL.", "type": "object", - "required": [ - "url" - ], + "required": ["url"], "properties": { "url": { "type": "string" @@ -218,9 +186,7 @@ { "description": "Logo content stored on the blockchain. Enforce maximum size of 5KB on all variants", "type": "object", - "required": [ - "embedded" - ], + "required": ["embedded"], "properties": { "embedded": { "$ref": "#/definitions/EmbeddedLogo" @@ -235,15 +201,11 @@ "oneOf": [ { "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "staking_contract_address" - ], + "required": ["staking_contract_address"], "properties": { "staking_contract_address": { "description": "Address of an already instantiated staking contract.", @@ -257,15 +219,11 @@ }, { "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "type": "object", - "required": [ - "staking_code_id" - ], + "required": ["staking_code_id"], "properties": { "staking_code_id": { "description": "Code ID for staking contract to instantiate.", @@ -296,16 +254,11 @@ "oneOf": [ { "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "address", - "staking_contract" - ], + "required": ["address", "staking_contract"], "properties": { "address": { "description": "Address of an already instantiated cw20 token contract.", @@ -327,9 +280,7 @@ }, { "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "type": "object", @@ -426,9 +377,7 @@ { "description": "Sets the active threshold to a new value. Only the instantiator this contract (a DAO most likely) may call this method.", "type": "object", - "required": [ - "update_active_threshold" - ], + "required": ["update_active_threshold"], "properties": { "update_active_threshold": { "type": "object", @@ -457,15 +406,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -479,15 +424,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -517,9 +458,7 @@ { "description": "Gets the address of the cw20-stake contract this voting module is wrapping.", "type": "object", - "required": [ - "staking_contract" - ], + "required": ["staking_contract"], "properties": { "staking_contract": { "type": "object", @@ -530,9 +469,7 @@ }, { "type": "object", - "required": [ - "active_threshold" - ], + "required": ["active_threshold"], "properties": { "active_threshold": { "type": "object", @@ -544,24 +481,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -574,18 +504,13 @@ { "description": "Returns the total voting power at a given block heigh.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -598,9 +523,7 @@ { "description": "Returns the address of the DAO this module belongs to.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -612,9 +535,7 @@ { "description": "Returns contract version info.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -625,9 +546,7 @@ }, { "type": "object", - "required": [ - "token_contract" - ], + "required": ["token_contract"], "properties": { "token_contract": { "type": "object", @@ -638,9 +557,7 @@ }, { "type": "object", - "required": [ - "is_active" - ], + "required": ["is_active"], "properties": { "is_active": { "type": "object", @@ -683,15 +600,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -705,15 +618,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -746,9 +655,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -758,10 +665,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -797,10 +701,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -823,10 +724,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", diff --git a/contracts/voting/dao-voting-cw4/schema/dao-voting-cw4.json b/contracts/voting/dao-voting-cw4/schema/dao-voting-cw4.json index 454003ecb..688f44cd9 100644 --- a/contracts/voting/dao-voting-cw4/schema/dao-voting-cw4.json +++ b/contracts/voting/dao-voting-cw4/schema/dao-voting-cw4.json @@ -1,14 +1,12 @@ { "contract_name": "dao-voting-cw4", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "group_contract" - ], + "required": ["group_contract"], "properties": { "group_contract": { "$ref": "#/definitions/GroupContract" @@ -20,15 +18,11 @@ "oneOf": [ { "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -41,16 +35,11 @@ }, { "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "type": "object", - "required": [ - "cw4_group_code_id", - "initial_members" - ], + "required": ["cw4_group_code_id", "initial_members"], "properties": { "cw4_group_code_id": { "type": "integer", @@ -74,10 +63,7 @@ "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" - ], + "required": ["addr", "weight"], "properties": { "addr": { "type": "string" @@ -104,9 +90,7 @@ "oneOf": [ { "type": "object", - "required": [ - "group_contract" - ], + "required": ["group_contract"], "properties": { "group_contract": { "type": "object", @@ -118,24 +102,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -148,18 +125,13 @@ { "description": "Returns the total voting power at a given block heigh.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -172,9 +144,7 @@ { "description": "Returns the address of the DAO this module belongs to.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -186,9 +156,7 @@ { "description": "Returns contract version info.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -223,9 +191,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -235,10 +201,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -257,10 +220,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -283,10 +243,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", diff --git a/contracts/voting/dao-voting-cw721-roles/schema/dao-voting-cw721-roles.json b/contracts/voting/dao-voting-cw721-roles/schema/dao-voting-cw721-roles.json index 8a97b5356..ba8de5399 100644 --- a/contracts/voting/dao-voting-cw721-roles/schema/dao-voting-cw721-roles.json +++ b/contracts/voting/dao-voting-cw721-roles/schema/dao-voting-cw721-roles.json @@ -1,14 +1,12 @@ { "contract_name": "dao-voting-cw721-roles", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "nft_contract" - ], + "required": ["nft_contract"], "properties": { "nft_contract": { "description": "Info about the associated NFT contract", @@ -23,16 +21,11 @@ "definitions": { "MetadataExt": { "type": "object", - "required": [ - "weight" - ], + "required": ["weight"], "properties": { "role": { "description": "Optional on-chain role for this member, can be used by other contracts to enforce permissions", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] }, "weight": { "description": "The voting weight of this role", @@ -47,15 +40,11 @@ "oneOf": [ { "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "Address of an already instantiated cw721-weighted-roles token contract.", @@ -69,9 +58,7 @@ }, { "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "type": "object", @@ -118,11 +105,7 @@ }, "NftMintMsg": { "type": "object", - "required": [ - "extension", - "owner", - "token_id" - ], + "required": ["extension", "owner", "token_id"], "properties": { "extension": { "description": "Any custom extension used by this contract", @@ -142,10 +125,7 @@ }, "token_uri": { "description": "Universal resource identifier for this NFT Should point to a JSON file that conforms to the ERC721 Metadata JSON Schema", - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -164,9 +144,7 @@ "oneOf": [ { "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -178,24 +156,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -208,18 +179,13 @@ { "description": "Returns the total voting power at a given block heigh.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -232,9 +198,7 @@ { "description": "Returns the address of the DAO this module belongs to.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -246,9 +210,7 @@ { "description": "Returns contract version info.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -266,9 +228,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "nft_address" - ], + "required": ["nft_address"], "properties": { "nft_address": { "$ref": "#/definitions/Addr" @@ -292,9 +252,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -304,10 +262,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -326,10 +281,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -352,10 +304,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", diff --git a/contracts/voting/dao-voting-cw721-staked/schema/dao-voting-cw721-staked.json b/contracts/voting/dao-voting-cw721-staked/schema/dao-voting-cw721-staked.json index 2c1212516..fc781b6d2 100644 --- a/contracts/voting/dao-voting-cw721-staked/schema/dao-voting-cw721-staked.json +++ b/contracts/voting/dao-voting-cw721-staked/schema/dao-voting-cw721-staked.json @@ -1,14 +1,12 @@ { "contract_name": "dao-voting-cw721-staked", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "nft_contract" - ], + "required": ["nft_contract"], "properties": { "active_threshold": { "description": "The number or percentage of tokens that must be staked for the DAO to be active", @@ -49,15 +47,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -71,15 +65,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -105,9 +95,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -120,9 +108,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -139,15 +125,11 @@ { "description": "Uses an existing cw721 or sg721 token contract.", "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "description": "Address of an already instantiated cw721 or sg721 token contract.", @@ -162,18 +144,11 @@ { "description": "Creates a new NFT collection used for staking and governance.", "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "type": "object", - "required": [ - "code_id", - "initial_nfts", - "label", - "msg" - ], + "required": ["code_id", "initial_nfts", "label", "msg"], "properties": { "code_id": { "description": "Code ID for cw721 token contract.", @@ -204,9 +179,7 @@ { "description": "Uses a factory contract that must return the address of the NFT contract. The binary must serialize to a `WasmMsg::Execute` message. Validation happens in the factory contract itself, so be sure to use a trusted factory contract.", "type": "object", - "required": [ - "factory" - ], + "required": ["factory"], "properties": { "factory": { "$ref": "#/definitions/Binary" @@ -229,9 +202,7 @@ { "description": "Used to stake NFTs. To stake a NFT send a cw721 send message to this contract with the NFT you would like to stake. The `msg` field is ignored.", "type": "object", - "required": [ - "receive_nft" - ], + "required": ["receive_nft"], "properties": { "receive_nft": { "$ref": "#/definitions/Cw721ReceiveMsg" @@ -242,15 +213,11 @@ { "description": "Unstakes the specified token_ids on behalf of the sender. token_ids must have unique values and have non-zero length.", "type": "object", - "required": [ - "unstake" - ], + "required": ["unstake"], "properties": { "unstake": { "type": "object", - "required": [ - "token_ids" - ], + "required": ["token_ids"], "properties": { "token_ids": { "type": "array", @@ -267,9 +234,7 @@ { "description": "Claim NFTs that have been unstaked for the specified duration.", "type": "object", - "required": [ - "claim_nfts" - ], + "required": ["claim_nfts"], "properties": { "claim_nfts": { "type": "object", @@ -281,9 +246,7 @@ { "description": "Updates the contract configuration, namely unstaking duration. Only callable by the DAO that initialized this voting contract.", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", @@ -307,15 +270,11 @@ { "description": "Adds a hook which is called on staking / unstaking events. Only callable by the DAO that initialized this voting contract.", "type": "object", - "required": [ - "add_hook" - ], + "required": ["add_hook"], "properties": { "add_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -329,15 +288,11 @@ { "description": "Removes a hook which is called on staking / unstaking events. Only callable by the DAO that initialized this voting contract.", "type": "object", - "required": [ - "remove_hook" - ], + "required": ["remove_hook"], "properties": { "remove_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -351,9 +306,7 @@ { "description": "Sets the active threshold to a new value. Only callable by the DAO that initialized this voting contract.", "type": "object", - "required": [ - "update_active_threshold" - ], + "required": ["update_active_threshold"], "properties": { "update_active_threshold": { "type": "object", @@ -382,15 +335,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -404,15 +353,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -432,11 +377,7 @@ "Cw721ReceiveMsg": { "description": "Cw721ReceiveMsg should be de/serialized under `Receive()` variant in a ExecuteMsg", "type": "object", - "required": [ - "msg", - "sender", - "token_id" - ], + "required": ["msg", "sender", "token_id"], "properties": { "msg": { "$ref": "#/definitions/Binary" @@ -459,9 +400,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -474,9 +413,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -500,9 +437,7 @@ "oneOf": [ { "type": "object", - "required": [ - "config" - ], + "required": ["config"], "properties": { "config": { "type": "object", @@ -513,15 +448,11 @@ }, { "type": "object", - "required": [ - "nft_claims" - ], + "required": ["nft_claims"], "properties": { "nft_claims": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -534,9 +465,7 @@ }, { "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "object", @@ -547,32 +476,22 @@ }, { "type": "object", - "required": [ - "staked_nfts" - ], + "required": ["staked_nfts"], "properties": { "staked_nfts": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -582,9 +501,7 @@ }, { "type": "object", - "required": [ - "active_threshold" - ], + "required": ["active_threshold"], "properties": { "active_threshold": { "type": "object", @@ -595,9 +512,7 @@ }, { "type": "object", - "required": [ - "is_active" - ], + "required": ["is_active"], "properties": { "is_active": { "type": "object", @@ -609,24 +524,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -639,18 +547,13 @@ { "description": "Returns the total voting power at a given block heigh.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -663,9 +566,7 @@ { "description": "Returns the address of the DAO this module belongs to.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -677,9 +578,7 @@ { "description": "Returns contract version info.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -717,15 +616,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -739,15 +634,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -774,9 +665,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "Config", "type": "object", - "required": [ - "nft_address" - ], + "required": ["nft_address"], "properties": { "nft_address": { "$ref": "#/definitions/Addr" @@ -803,9 +692,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -818,9 +705,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -844,9 +729,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "HooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", @@ -861,9 +744,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -873,10 +754,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -900,9 +778,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "NftClaimsResponse", "type": "object", - "required": [ - "nft_claims" - ], + "required": ["nft_claims"], "properties": { "nft_claims": { "type": "array", @@ -919,9 +795,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -934,9 +808,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -947,9 +819,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -962,10 +832,7 @@ }, "NftClaim": { "type": "object", - "required": [ - "release_at", - "token_id" - ], + "required": ["release_at", "token_id"], "properties": { "release_at": { "$ref": "#/definitions/Expiration" @@ -1002,10 +869,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -1028,10 +892,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", diff --git a/contracts/voting/dao-voting-token-staked/schema/dao-voting-token-staked.json b/contracts/voting/dao-voting-token-staked/schema/dao-voting-token-staked.json index aa5164874..edfb59416 100644 --- a/contracts/voting/dao-voting-token-staked/schema/dao-voting-token-staked.json +++ b/contracts/voting/dao-voting-token-staked/schema/dao-voting-token-staked.json @@ -1,14 +1,12 @@ { "contract_name": "dao-voting-token-staked", - "contract_version": "2.4.1", + "contract_version": "2.4.2", "idl_version": "1.0.0", "instantiate": { "$schema": "http://json-schema.org/draft-07/schema#", "title": "InstantiateMsg", "type": "object", - "required": [ - "token_info" - ], + "required": ["token_info"], "properties": { "active_threshold": { "description": "The number or percentage of tokens that must be staked for the DAO to be active", @@ -49,15 +47,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -71,15 +65,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -103,11 +93,7 @@ "DenomUnit": { "description": "DenomUnit represents a struct that describes a given denomination unit of the basic token.", "type": "object", - "required": [ - "aliases", - "denom", - "exponent" - ], + "required": ["aliases", "denom", "exponent"], "properties": { "aliases": { "description": "aliases is a list of string aliases for the given denom", @@ -133,9 +119,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -148,9 +132,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -164,10 +146,7 @@ }, "InitialBalance": { "type": "object", - "required": [ - "address", - "amount" - ], + "required": ["address", "amount"], "properties": { "address": { "type": "string" @@ -180,19 +159,11 @@ }, "NewDenomMetadata": { "type": "object", - "required": [ - "description", - "display", - "name", - "symbol" - ], + "required": ["description", "display", "name", "symbol"], "properties": { "additional_denom_units": { "description": "Used define additional units of the token (e.g. \"tiger\") These must have an exponent larger than 0.", - "type": [ - "array", - "null" - ], + "type": ["array", "null"], "items": { "$ref": "#/definitions/DenomUnit" } @@ -218,11 +189,7 @@ }, "NewTokenInfo": { "type": "object", - "required": [ - "initial_balances", - "subdenom", - "token_issuer_code_id" - ], + "required": ["initial_balances", "subdenom", "token_issuer_code_id"], "properties": { "initial_balances": { "description": "The initial balances to set for the token, cannot be empty.", @@ -271,15 +238,11 @@ { "description": "Uses an existing Token Factory token and creates a new issuer contract. Full setup, such as transferring ownership or setting up MsgSetBeforeSendHook, must be done manually.", "type": "object", - "required": [ - "existing" - ], + "required": ["existing"], "properties": { "existing": { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "description": "Token factory denom", @@ -294,9 +257,7 @@ { "description": "Creates a new Token Factory token via the issue contract with the DAO automatically setup as admin and owner.", "type": "object", - "required": [ - "new" - ], + "required": ["new"], "properties": { "new": { "$ref": "#/definitions/NewTokenInfo" @@ -307,9 +268,7 @@ { "description": "Uses a factory contract that must return the denom, optionally a Token Contract address. The binary must serialize to a `WasmMsg::Execute` message. Validation happens in the factory contract itself, so be sure to use a trusted factory contract.", "type": "object", - "required": [ - "factory" - ], + "required": ["factory"], "properties": { "factory": { "$ref": "#/definitions/Binary" @@ -332,9 +291,7 @@ { "description": "Stakes tokens with the contract to get voting power in the DAO", "type": "object", - "required": [ - "stake" - ], + "required": ["stake"], "properties": { "stake": { "type": "object", @@ -346,15 +303,11 @@ { "description": "Unstakes tokens so that they begin unbonding", "type": "object", - "required": [ - "unstake" - ], + "required": ["unstake"], "properties": { "unstake": { "type": "object", - "required": [ - "amount" - ], + "required": ["amount"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -368,9 +321,7 @@ { "description": "Updates the contract configuration", "type": "object", - "required": [ - "update_config" - ], + "required": ["update_config"], "properties": { "update_config": { "type": "object", @@ -394,9 +345,7 @@ { "description": "Claims unstaked tokens that have completed the unbonding period", "type": "object", - "required": [ - "claim" - ], + "required": ["claim"], "properties": { "claim": { "type": "object", @@ -408,9 +357,7 @@ { "description": "Sets the active threshold to a new value. Only the instantiator of this contract (a DAO most likely) may call this method.", "type": "object", - "required": [ - "update_active_threshold" - ], + "required": ["update_active_threshold"], "properties": { "update_active_threshold": { "type": "object", @@ -434,15 +381,11 @@ { "description": "Adds a hook that fires on staking / unstaking", "type": "object", - "required": [ - "add_hook" - ], + "required": ["add_hook"], "properties": { "add_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -456,15 +399,11 @@ { "description": "Removes a hook that fires on staking / unstaking", "type": "object", - "required": [ - "remove_hook" - ], + "required": ["remove_hook"], "properties": { "remove_hook": { "type": "object", - "required": [ - "addr" - ], + "required": ["addr"], "properties": { "addr": { "type": "string" @@ -483,15 +422,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -505,15 +440,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -535,9 +466,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -550,9 +479,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -576,9 +503,7 @@ "oneOf": [ { "type": "object", - "required": [ - "get_config" - ], + "required": ["get_config"], "properties": { "get_config": { "type": "object", @@ -589,15 +514,11 @@ }, { "type": "object", - "required": [ - "claims" - ], + "required": ["claims"], "properties": { "claims": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" @@ -610,26 +531,18 @@ }, { "type": "object", - "required": [ - "list_stakers" - ], + "required": ["list_stakers"], "properties": { "list_stakers": { "type": "object", "properties": { "limit": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint32", "minimum": 0.0 }, "start_after": { - "type": [ - "string", - "null" - ] + "type": ["string", "null"] } }, "additionalProperties": false @@ -639,9 +552,7 @@ }, { "type": "object", - "required": [ - "active_threshold" - ], + "required": ["active_threshold"], "properties": { "active_threshold": { "type": "object", @@ -652,9 +563,7 @@ }, { "type": "object", - "required": [ - "get_hooks" - ], + "required": ["get_hooks"], "properties": { "get_hooks": { "type": "object", @@ -665,9 +574,7 @@ }, { "type": "object", - "required": [ - "token_contract" - ], + "required": ["token_contract"], "properties": { "token_contract": { "type": "object", @@ -678,9 +585,7 @@ }, { "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "type": "object", @@ -691,9 +596,7 @@ }, { "type": "object", - "required": [ - "is_active" - ], + "required": ["is_active"], "properties": { "is_active": { "type": "object", @@ -705,24 +608,17 @@ { "description": "Returns the voting power for an address at a given height.", "type": "object", - "required": [ - "voting_power_at_height" - ], + "required": ["voting_power_at_height"], "properties": { "voting_power_at_height": { "type": "object", - "required": [ - "address" - ], + "required": ["address"], "properties": { "address": { "type": "string" }, "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -735,18 +631,13 @@ { "description": "Returns the total voting power at a given block heigh.", "type": "object", - "required": [ - "total_power_at_height" - ], + "required": ["total_power_at_height"], "properties": { "total_power_at_height": { "type": "object", "properties": { "height": { - "type": [ - "integer", - "null" - ], + "type": ["integer", "null"], "format": "uint64", "minimum": 0.0 } @@ -759,9 +650,7 @@ { "description": "Returns the address of the DAO this module belongs to.", "type": "object", - "required": [ - "dao" - ], + "required": ["dao"], "properties": { "dao": { "type": "object", @@ -773,9 +662,7 @@ { "description": "Returns contract version info.", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "type": "object", @@ -818,15 +705,11 @@ { "description": "The absolute number of tokens that must be staked for the module to be active.", "type": "object", - "required": [ - "absolute_count" - ], + "required": ["absolute_count"], "properties": { "absolute_count": { "type": "object", - "required": [ - "count" - ], + "required": ["count"], "properties": { "count": { "$ref": "#/definitions/Uint128" @@ -840,15 +723,11 @@ { "description": "The percentage of tokens that must be staked for the module to be active. Computed as `staked / total_supply`.", "type": "object", - "required": [ - "percentage" - ], + "required": ["percentage"], "properties": { "percentage": { "type": "object", - "required": [ - "percent" - ], + "required": ["percent"], "properties": { "percent": { "$ref": "#/definitions/Decimal" @@ -875,9 +754,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ClaimsResponse", "type": "object", - "required": [ - "claims" - ], + "required": ["claims"], "properties": { "claims": { "type": "array", @@ -890,10 +767,7 @@ "definitions": { "Claim": { "type": "object", - "required": [ - "amount", - "release_at" - ], + "required": ["amount", "release_at"], "properties": { "amount": { "$ref": "#/definitions/Uint128" @@ -910,9 +784,7 @@ { "description": "AtHeight will expire when `env.block.height` >= height", "type": "object", - "required": [ - "at_height" - ], + "required": ["at_height"], "properties": { "at_height": { "type": "integer", @@ -925,9 +797,7 @@ { "description": "AtTime will expire when `env.block.time` >= time", "type": "object", - "required": [ - "at_time" - ], + "required": ["at_time"], "properties": { "at_time": { "$ref": "#/definitions/Timestamp" @@ -938,9 +808,7 @@ { "description": "Never will never expire. Used to express the empty variant", "type": "object", - "required": [ - "never" - ], + "required": ["never"], "properties": { "never": { "type": "object", @@ -979,9 +847,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "DenomResponse", "type": "object", - "required": [ - "denom" - ], + "required": ["denom"], "properties": { "denom": { "type": "string" @@ -1012,9 +878,7 @@ "oneOf": [ { "type": "object", - "required": [ - "height" - ], + "required": ["height"], "properties": { "height": { "type": "integer", @@ -1027,9 +891,7 @@ { "description": "Time in seconds", "type": "object", - "required": [ - "time" - ], + "required": ["time"], "properties": { "time": { "type": "integer", @@ -1047,9 +909,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "GetHooksResponse", "type": "object", - "required": [ - "hooks" - ], + "required": ["hooks"], "properties": { "hooks": { "type": "array", @@ -1064,9 +924,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "InfoResponse", "type": "object", - "required": [ - "info" - ], + "required": ["info"], "properties": { "info": { "$ref": "#/definitions/ContractVersion" @@ -1076,10 +934,7 @@ "definitions": { "ContractVersion": { "type": "object", - "required": [ - "contract", - "version" - ], + "required": ["contract", "version"], "properties": { "contract": { "description": "contract is the crate name of the implementing contract, eg. `crate:cw20-base` we will use other prefixes for other languages, and their standard global namespacing", @@ -1103,9 +958,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "ListStakersResponse", "type": "object", - "required": [ - "stakers" - ], + "required": ["stakers"], "properties": { "stakers": { "type": "array", @@ -1118,10 +971,7 @@ "definitions": { "StakerBalanceResponse": { "type": "object", - "required": [ - "address", - "balance" - ], + "required": ["address", "balance"], "properties": { "address": { "type": "string" @@ -1160,10 +1010,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "TotalPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer", @@ -1186,10 +1033,7 @@ "$schema": "http://json-schema.org/draft-07/schema#", "title": "VotingPowerAtHeightResponse", "type": "object", - "required": [ - "height", - "power" - ], + "required": ["height", "power"], "properties": { "height": { "type": "integer",