From e8854982747686e7921307e9b54f1d41ce967e9e Mon Sep 17 00:00:00 2001 From: Brandon Weng Date: Fri, 28 Oct 2022 16:58:43 -0400 Subject: [PATCH 1/9] protos --- proto/cosmos/accesscontrol/constants.proto | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/proto/cosmos/accesscontrol/constants.proto b/proto/cosmos/accesscontrol/constants.proto index 8650c51c8..88d31f842 100644 --- a/proto/cosmos/accesscontrol/constants.proto +++ b/proto/cosmos/accesscontrol/constants.proto @@ -37,5 +37,9 @@ enum ResourceType { KV_BANK_SUPPLY = 18; // child of KV KV_BANK_DENOM = 19; // child of KV KV_BANK_BALANCES = 20; // child of KV + KV_TOKENFACTORY_DENOM = 21; // child of KV_TOKENFACTORY + KV_TOKENFACTORY_METADATA = 22; // child of KV_TOKENFACTORY + KV_TOKENFACTORY_ADMIN = 23; // child of KV_TOKENFACTORY + KV_TOKENFACTORY_CREATOR = 24; // child of KV_TOKENFACTORY } From 41517ff4f745c516e1a469ae3e2abfe7366b44b8 Mon Sep 17 00:00:00 2001 From: Brandon Weng Date: Fri, 28 Oct 2022 17:08:59 -0400 Subject: [PATCH 2/9] constants --- types/accesscontrol/constants.pb.go | 78 +++++++++++++++++------------ 1 file changed, 46 insertions(+), 32 deletions(-) diff --git a/types/accesscontrol/constants.pb.go b/types/accesscontrol/constants.pb.go index f6e73d83d..9a65a12d4 100644 --- a/types/accesscontrol/constants.pb.go +++ b/types/accesscontrol/constants.pb.go @@ -100,6 +100,10 @@ const ( ResourceType_KV_BANK_SUPPLY ResourceType = 18 ResourceType_KV_BANK_DENOM ResourceType = 19 ResourceType_KV_BANK_BALANCES ResourceType = 20 + ResourceType_KV_TOKENFACTORY_DENOM ResourceType = 21 + ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 + ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 + ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 ) var ResourceType_name = map[int32]string{ @@ -124,6 +128,10 @@ var ResourceType_name = map[int32]string{ 18: "KV_BANK_SUPPLY", 19: "KV_BANK_DENOM", 20: "KV_BANK_BALANCES", + 21: "KV_TOKENFACTORY_DENOM", + 22: "KV_TOKENFACTORY_METADATA", + 23: "KV_TOKENFACTORY_ADMIN", + 24: "KV_TOKENFACTORY_CREATOR", } var ResourceType_value = map[string]int32{ @@ -148,6 +156,10 @@ var ResourceType_value = map[string]int32{ "KV_BANK_SUPPLY": 18, "KV_BANK_DENOM": 19, "KV_BANK_BALANCES": 20, + "KV_TOKENFACTORY_DENOM": 21, + "KV_TOKENFACTORY_METADATA": 22, + "KV_TOKENFACTORY_ADMIN": 23, + "KV_TOKENFACTORY_CREATOR": 24, } func (x ResourceType) String() string { @@ -169,36 +181,38 @@ func init() { } var fileDescriptor_36568f7561081112 = []byte{ - // 485 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x5c, 0x52, 0x4d, 0x73, 0x12, 0x31, - 0x18, 0x66, 0x0b, 0xe5, 0xe3, 0x2d, 0xd0, 0x97, 0x94, 0x3a, 0xd6, 0x8f, 0x3d, 0x79, 0x62, 0x46, - 0xb0, 0xe3, 0xcd, 0x5b, 0x60, 0x53, 0x4a, 0x17, 0x12, 0xdc, 0x0d, 0x8b, 0x78, 0xc9, 0xc0, 0x9a, - 0xd1, 0x8e, 0x85, 0x30, 0xec, 0xd6, 0xb1, 0xff, 0xc0, 0xa3, 0x3f, 0xcb, 0x63, 0x8f, 0x1e, 0x1d, - 0xf8, 0x23, 0xce, 0xb2, 0x54, 0xd4, 0x53, 0x92, 0xe7, 0x2b, 0x6f, 0x32, 0x0f, 0xbc, 0x08, 0x4d, - 0x34, 0x37, 0x51, 0x6b, 0x1a, 0x86, 0x3a, 0x8a, 0x42, 0xb3, 0x88, 0x57, 0xe6, 0xa6, 0x15, 0x9a, - 0x45, 0x14, 0x4f, 0x17, 0x71, 0xd4, 0x5c, 0xae, 0x4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xb6, 0x68, 0xaf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x19, 0x28, 0x3f, - 0x93, 0x90, 0x02, 0x00, 0x00, + // 527 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x4d, 0x6f, 0xda, 0x4e, + 0x10, 0xc6, 0x71, 0x48, 0x08, 0x99, 0xbc, 0x4d, 0x36, 0xef, 0xff, 0xe4, 0xef, 0x53, 0x4f, 0x91, + 0x0a, 0x8d, 0x7a, 0xeb, 0x6d, 0xb1, 0x37, 0xc4, 0x31, 0xde, 0xa5, 0xeb, 0xc5, 0x94, 0x5e, 0x56, + 0xe0, 0x5a, 0x6d, 0xd4, 0x80, 0x11, 0x76, 0xaa, 0xe6, 0x5b, 0xf4, 0x63, 0xf5, 0x98, 0x63, 0x8f, + 0x15, 0x7c, 0x8a, 0xde, 0x2a, 0x63, 0xa7, 0xa4, 0xa8, 0x27, 0xdb, 0xf3, 0x7b, 0x9e, 0xc7, 0x33, + 0xa3, 0x81, 0x17, 0x61, 0x9c, 0x0c, 0xe3, 0xa4, 0xde, 0x0f, 0xc3, 0x28, 0x49, 0xc2, 0x78, 0x94, + 0x4e, 0xe2, 0xbb, 0x7a, 0x18, 0x8f, 0x92, 0xb4, 0x3f, 0x4a, 0x93, 0xda, 0x78, 0x12, 0xa7, 0x31, + 0x39, 0xcf, 0x55, 0xb5, 0xbf, 0x54, 0xb5, 0x2f, 0x97, 0x83, 0x28, 0xed, 0x5f, 0x5e, 0xbc, 0x01, + 0xa0, 0x73, 0xa0, 0x1e, 0xc6, 0x11, 0xd9, 0x84, 0xf5, 0x0e, 0x77, 0xb9, 0xe8, 0x72, 0x2c, 0x91, + 0x2a, 0xac, 0x4a, 0x46, 0x6d, 0x34, 0xc8, 0x06, 0xac, 0x75, 0xa5, 0xa3, 0x18, 0xae, 0x10, 0x80, + 0x8a, 0x25, 0x3c, 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568999a2649851b4a63d26ca4 Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 28 Oct 2022 17:07:58 -0400 Subject: [PATCH 3/9] asd --- types/accesscontrol/resource.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/accesscontrol/resource.go b/types/accesscontrol/resource.go index e80d4d07c..d00ba2f7b 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -14,7 +14,6 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_ORACLE, ResourceType_KV_STAKING, ResourceType_KV_WASM, - ResourceType_KV_TOKENFACTORY, ResourceType_KV_AUTH, }}, ResourceType_Mem: {ResourceType_ANY, []ResourceType{ResourceType_DexMem}}, @@ -30,7 +29,10 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_ORACLE_AGGREGATE_VOTES: {ResourceType_KV_ORACLE, []ResourceType{}}, ResourceType_KV_ORACLE_FEEDERS: {ResourceType_KV_ORACLE, []ResourceType{}}, ResourceType_KV_DEX: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ResourceType_KV_BANK_BALANCES, ResourceType_KV_BANK_DENOM, ResourceType_KV_BANK_SUPPLY}}, + ResourceType_KV_BANK_SUPPLY: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_BANK_BALANCES: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_BANK_DENOM: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, ResourceType_KV_AUTH: {ResourceType_KV, []ResourceType{}}, } From b7d498b18737a6a2ce2899851e3603d2f138668d Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 28 Oct 2022 17:40:11 -0400 Subject: [PATCH 4/9] Protos --- types/accesscontrol/resource.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/accesscontrol/resource.go b/types/accesscontrol/resource.go index d00ba2f7b..f5d043464 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -29,10 +29,11 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_ORACLE_AGGREGATE_VOTES: {ResourceType_KV_ORACLE, []ResourceType{}}, ResourceType_KV_ORACLE_FEEDERS: {ResourceType_KV_ORACLE, []ResourceType{}}, ResourceType_KV_DEX: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ResourceType_KV_BANK_BALANCES, ResourceType_KV_BANK_DENOM, ResourceType_KV_BANK_SUPPLY}}, - ResourceType_KV_BANK_SUPPLY: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_BANK_BALANCES: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_BANK_DENOM: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ResourceType_KV_TOKENFACTORY_DENOM, ResourceType_KV_TOKENFACTORY_METADATA, ResourceType_KV_TOKENFACTORY_ADMIN, ResourceType_KV_TOKENFACTORY_CREATOR}}, + ResourceType_KV_TOKENFACTORY_DENOM: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_METADATA: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_ADMIN: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_CREATOR: {ResourceType_KV, []ResourceType{}}, ResourceType_KV_AUTH: {ResourceType_KV, []ResourceType{}}, } From 5582e9bd29aad87fe26e0401bf8fadef646a33c0 Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 28 Oct 2022 18:13:21 -0400 Subject: [PATCH 5/9] fix: --- types/accesscontrol/resource.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/accesscontrol/resource.go b/types/accesscontrol/resource.go index f5d043464..c2e2c38e0 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -15,6 +15,7 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_STAKING, ResourceType_KV_WASM, ResourceType_KV_AUTH, + ResourceType_KV_TOKENFACTORY, }}, ResourceType_Mem: {ResourceType_ANY, []ResourceType{ResourceType_DexMem}}, ResourceType_DexMem: {ResourceType_Mem, []ResourceType{}}, @@ -30,10 +31,10 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_ORACLE_FEEDERS: {ResourceType_KV_ORACLE, []ResourceType{}}, ResourceType_KV_DEX: {ResourceType_KV, []ResourceType{}}, ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ResourceType_KV_TOKENFACTORY_DENOM, ResourceType_KV_TOKENFACTORY_METADATA, ResourceType_KV_TOKENFACTORY_ADMIN, ResourceType_KV_TOKENFACTORY_CREATOR}}, - ResourceType_KV_TOKENFACTORY_DENOM: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_METADATA: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_ADMIN: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_CREATOR: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_DENOM: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_METADATA: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_ADMIN: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_CREATOR: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, ResourceType_KV_AUTH: {ResourceType_KV, []ResourceType{}}, } From 558816095b950d20bfa5efce7a0db13048c49c1f Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 28 Oct 2022 19:09:02 -0400 Subject: [PATCH 6/9] more protos --- proto/cosmos/accesscontrol/constants.proto | 16 +++++++++++++++- types/accesscontrol/constants.pb.go | 7 +++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/proto/cosmos/accesscontrol/constants.proto b/proto/cosmos/accesscontrol/constants.proto index 88d31f842..bfa18da95 100644 --- a/proto/cosmos/accesscontrol/constants.proto +++ b/proto/cosmos/accesscontrol/constants.proto @@ -41,5 +41,19 @@ enum ResourceType { KV_TOKENFACTORY_METADATA = 22; // child of KV_TOKENFACTORY KV_TOKENFACTORY_ADMIN = 23; // child of KV_TOKENFACTORY KV_TOKENFACTORY_CREATOR = 24; // child of KV_TOKENFACTORY + KV_ORACLE_EXCHANGE_RATE = 25; // child of KV_ORACLE + KV_ORACLE_VOTE_PENALTY_COUNTER = 26; // child of KV_ORACLE + KV_ORACLE_PRICE_SNAPSHOT = 27; // child of KV_ORACLE + KV_STAKING_VALIDATION_POWER = 28; // child of KV_STAKING + KV_STAKING_TOTAL_POWER = 29; // child of KV_STAKING + KV_STAKING_VALIDATORS_CON_ADDR = 30; // child of KV_STAKING + KV_STAKING_UNBOUNDING_DELEGATION = 31; // child of KV_STAKING + KV_STAKING_UNBOUNDING_DELEGATION_VAL = 32; // child of KV_STAKING + KV_STAKING_REDELEGATION = 33; // child of KV_STAKING + KV_STAKING_REDELEGATION_VAL_SRC = 34; // child of KV_STAKING + KV_STAKING_REDELEGATION_VAL_DST = 35; // child of KV_STAKING + KV_STAKING_REDELEGATION_QUEUE = 36; // child of KV_STAKING + KV_STAKING_VALIDATOR_QUEUE = 37; // child of KV_STAKING + KV_STAKING_HISTORICAL_INFO = 38; // child of KV_STAKING + KV_STAKING_UNBOUNDING = 39; // child of KV_STAKING } - diff --git a/types/accesscontrol/constants.pb.go b/types/accesscontrol/constants.pb.go index 9a65a12d4..78db2f9f0 100644 --- a/types/accesscontrol/constants.pb.go +++ b/types/accesscontrol/constants.pb.go @@ -104,6 +104,13 @@ const ( ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ) var ResourceType_name = map[int32]string{ From b43d7db2e98cfcfdeda35d5b9c6c53965d7f7300 Mon Sep 17 00:00:00 2001 From: Brandon Weng Date: Fri, 28 Oct 2022 19:11:25 -0400 Subject: [PATCH 7/9] geernerate --- types/accesscontrol/constants.pb.go | 232 +++++++++++++++++----------- 1 file changed, 141 insertions(+), 91 deletions(-) diff --git a/types/accesscontrol/constants.pb.go b/types/accesscontrol/constants.pb.go index 78db2f9f0..57ef869ae 100644 --- a/types/accesscontrol/constants.pb.go +++ b/types/accesscontrol/constants.pb.go @@ -79,38 +79,46 @@ func (AccessOperationSelectorType) EnumDescriptor() ([]byte, []int) { type ResourceType int32 const ( - ResourceType_ANY ResourceType = 0 - ResourceType_KV ResourceType = 1 - ResourceType_Mem ResourceType = 2 - ResourceType_DexMem ResourceType = 3 - ResourceType_KV_BANK ResourceType = 4 - ResourceType_KV_STAKING ResourceType = 5 - ResourceType_KV_WASM ResourceType = 6 - ResourceType_KV_ORACLE ResourceType = 7 - ResourceType_KV_DEX ResourceType = 8 - ResourceType_KV_EPOCH ResourceType = 9 - ResourceType_KV_TOKENFACTORY ResourceType = 10 - ResourceType_KV_ORACLE_VOTE_TARGETS ResourceType = 11 - ResourceType_KV_ORACLE_AGGREGATE_VOTES ResourceType = 12 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_STAKING_DELEGATION ResourceType = 14 - ResourceType_KV_STAKING_VALIDATOR ResourceType = 15 - ResourceType_KV_AUTH ResourceType = 16 - ResourceType_KV_AUTH_ADDRESS_STORE ResourceType = 17 - ResourceType_KV_BANK_SUPPLY ResourceType = 18 - ResourceType_KV_BANK_DENOM ResourceType = 19 - ResourceType_KV_BANK_BALANCES ResourceType = 20 - ResourceType_KV_TOKENFACTORY_DENOM ResourceType = 21 - ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 - ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 - ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - + ResourceType_ANY ResourceType = 0 + ResourceType_KV ResourceType = 1 + ResourceType_Mem ResourceType = 2 + ResourceType_DexMem ResourceType = 3 + ResourceType_KV_BANK ResourceType = 4 + ResourceType_KV_STAKING ResourceType = 5 + ResourceType_KV_WASM ResourceType = 6 + ResourceType_KV_ORACLE ResourceType = 7 + ResourceType_KV_DEX ResourceType = 8 + ResourceType_KV_EPOCH ResourceType = 9 + ResourceType_KV_TOKENFACTORY ResourceType = 10 + ResourceType_KV_ORACLE_VOTE_TARGETS ResourceType = 11 + ResourceType_KV_ORACLE_AGGREGATE_VOTES ResourceType = 12 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_STAKING_DELEGATION ResourceType = 14 + ResourceType_KV_STAKING_VALIDATOR ResourceType = 15 + ResourceType_KV_AUTH ResourceType = 16 + ResourceType_KV_AUTH_ADDRESS_STORE ResourceType = 17 + ResourceType_KV_BANK_SUPPLY ResourceType = 18 + ResourceType_KV_BANK_DENOM ResourceType = 19 + ResourceType_KV_BANK_BALANCES ResourceType = 20 + ResourceType_KV_TOKENFACTORY_DENOM ResourceType = 21 + ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 + ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 + ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 + ResourceType_KV_ORACLE_EXCHANGE_RATE ResourceType = 25 + ResourceType_KV_ORACLE_VOTE_PENALTY_COUNTER ResourceType = 26 + ResourceType_KV_ORACLE_PRICE_SNAPSHOT ResourceType = 27 + ResourceType_KV_STAKING_VALIDATION_POWER ResourceType = 28 + ResourceType_KV_STAKING_TOTAL_POWER ResourceType = 29 + ResourceType_KV_STAKING_VALIDATORS_CON_ADDR ResourceType = 30 + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION ResourceType = 31 + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL ResourceType = 32 + ResourceType_KV_STAKING_REDELEGATION ResourceType = 33 + ResourceType_KV_STAKING_REDELEGATION_VAL_SRC ResourceType = 34 + ResourceType_KV_STAKING_REDELEGATION_VAL_DST ResourceType = 35 + ResourceType_KV_STAKING_REDELEGATION_QUEUE ResourceType = 36 + ResourceType_KV_STAKING_VALIDATOR_QUEUE ResourceType = 37 + ResourceType_KV_STAKING_HISTORICAL_INFO ResourceType = 38 + ResourceType_KV_STAKING_UNBOUNDING ResourceType = 39 ) var ResourceType_name = map[int32]string{ @@ -139,34 +147,64 @@ var ResourceType_name = map[int32]string{ 22: "KV_TOKENFACTORY_METADATA", 23: "KV_TOKENFACTORY_ADMIN", 24: "KV_TOKENFACTORY_CREATOR", + 25: "KV_ORACLE_EXCHANGE_RATE", + 26: "KV_ORACLE_VOTE_PENALTY_COUNTER", + 27: "KV_ORACLE_PRICE_SNAPSHOT", + 28: "KV_STAKING_VALIDATION_POWER", + 29: "KV_STAKING_TOTAL_POWER", + 30: "KV_STAKING_VALIDATORS_CON_ADDR", + 31: "KV_STAKING_UNBOUNDING_DELEGATION", + 32: "KV_STAKING_UNBOUNDING_DELEGATION_VAL", + 33: "KV_STAKING_REDELEGATION", + 34: "KV_STAKING_REDELEGATION_VAL_SRC", + 35: "KV_STAKING_REDELEGATION_VAL_DST", + 36: "KV_STAKING_REDELEGATION_QUEUE", + 37: "KV_STAKING_VALIDATOR_QUEUE", + 38: "KV_STAKING_HISTORICAL_INFO", + 39: "KV_STAKING_UNBOUNDING", } var ResourceType_value = map[string]int32{ - "ANY": 0, - "KV": 1, - "Mem": 2, - "DexMem": 3, - "KV_BANK": 4, - "KV_STAKING": 5, - "KV_WASM": 6, - "KV_ORACLE": 7, - "KV_DEX": 8, - "KV_EPOCH": 9, - "KV_TOKENFACTORY": 10, - "KV_ORACLE_VOTE_TARGETS": 11, - "KV_ORACLE_AGGREGATE_VOTES": 12, - "KV_ORACLE_FEEDERS": 13, - "KV_STAKING_DELEGATION": 14, - "KV_STAKING_VALIDATOR": 15, - "KV_AUTH": 16, - "KV_AUTH_ADDRESS_STORE": 17, - "KV_BANK_SUPPLY": 18, - "KV_BANK_DENOM": 19, - "KV_BANK_BALANCES": 20, - "KV_TOKENFACTORY_DENOM": 21, - "KV_TOKENFACTORY_METADATA": 22, - "KV_TOKENFACTORY_ADMIN": 23, - "KV_TOKENFACTORY_CREATOR": 24, + "ANY": 0, + "KV": 1, + "Mem": 2, + "DexMem": 3, + "KV_BANK": 4, + "KV_STAKING": 5, + "KV_WASM": 6, + "KV_ORACLE": 7, + "KV_DEX": 8, + "KV_EPOCH": 9, + "KV_TOKENFACTORY": 10, + "KV_ORACLE_VOTE_TARGETS": 11, + "KV_ORACLE_AGGREGATE_VOTES": 12, + "KV_ORACLE_FEEDERS": 13, + "KV_STAKING_DELEGATION": 14, + "KV_STAKING_VALIDATOR": 15, + "KV_AUTH": 16, + "KV_AUTH_ADDRESS_STORE": 17, + "KV_BANK_SUPPLY": 18, + "KV_BANK_DENOM": 19, + "KV_BANK_BALANCES": 20, + "KV_TOKENFACTORY_DENOM": 21, + "KV_TOKENFACTORY_METADATA": 22, + "KV_TOKENFACTORY_ADMIN": 23, + "KV_TOKENFACTORY_CREATOR": 24, + "KV_ORACLE_EXCHANGE_RATE": 25, + "KV_ORACLE_VOTE_PENALTY_COUNTER": 26, + "KV_ORACLE_PRICE_SNAPSHOT": 27, + "KV_STAKING_VALIDATION_POWER": 28, + "KV_STAKING_TOTAL_POWER": 29, + "KV_STAKING_VALIDATORS_CON_ADDR": 30, + "KV_STAKING_UNBOUNDING_DELEGATION": 31, + "KV_STAKING_UNBOUNDING_DELEGATION_VAL": 32, + "KV_STAKING_REDELEGATION": 33, + "KV_STAKING_REDELEGATION_VAL_SRC": 34, + "KV_STAKING_REDELEGATION_VAL_DST": 35, + "KV_STAKING_REDELEGATION_QUEUE": 36, + "KV_STAKING_VALIDATOR_QUEUE": 37, + "KV_STAKING_HISTORICAL_INFO": 38, + "KV_STAKING_UNBOUNDING": 39, } func (x ResourceType) String() string { @@ -188,38 +226,50 @@ func init() { } var fileDescriptor_36568f7561081112 = []byte{ - // 527 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x92, 0x4d, 0x6f, 0xda, 0x4e, - 0x10, 0xc6, 0x71, 0x48, 0x08, 0x99, 0xbc, 0x4d, 0x36, 0xef, 0xff, 0xe4, 0xef, 0x53, 0x4f, 0x91, - 0x0a, 0x8d, 0x7a, 0xeb, 0x6d, 0xb1, 0x37, 0xc4, 0x31, 0xde, 0xa5, 0xeb, 0xc5, 0x94, 0x5e, 0x56, - 0xe0, 0x5a, 0x6d, 0xd4, 0x80, 0x11, 0x76, 0xaa, 0xe6, 0x5b, 0xf4, 0x63, 0xf5, 0x98, 0x63, 0x8f, - 0x15, 0x7c, 0x8a, 0xde, 0x2a, 0x63, 0xa7, 0xa4, 0xa8, 0x27, 0xdb, 0xf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 0x19, 0xa9, 0xed, 0x39, 0x1c, 0x8f, - 0xc9, 0x19, 0x1c, 0x2f, 0x23, 0x4b, 0xb2, 0xf9, 0x54, 0x27, 0x8d, 0x9b, 0xef, 0x53, 0xd3, 0x78, - 0x9c, 0x9a, 0xc6, 0xcf, 0xa9, 0x69, 0x7c, 0x9b, 0x99, 0xa5, 0xc7, 0x99, 0x59, 0xfa, 0x31, 0x33, - 0x4b, 0xef, 0x5f, 0x7d, 0xbc, 0x4d, 0x3f, 0xdd, 0x0f, 0x6a, 0x61, 0x3c, 0xac, 0x17, 0x17, 0x9d, - 0x3f, 0x5e, 0x26, 0x1f, 0x3e, 0xd7, 0xd3, 0x87, 0x71, 0xb4, 0x74, 0xe2, 0x83, 0xca, 0xfc, 0xb2, - 0x5f, 0xff, 0x0e, 0x00, 0x00, 0xff, 0xff, 0xac, 0xfd, 0x16, 0x8b, 0x01, 0x03, 0x00, 0x00, + // 708 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcb, 0x72, 0xdb, 0x36, + 0x14, 0x86, 0xa5, 0xd8, 0xf1, 0xe5, 0xc4, 0x76, 0x8e, 0x11, 0x3b, 0xb1, 0x2d, 0x9b, 0xce, 0x45, + 0xbd, 0x8c, 0x67, 0x2a, 0x35, 0xd3, 0x5d, 0x77, 0x10, 0x09, 0x4b, 0x0c, 0x29, 0x40, 0x01, 0x40, + 0x2a, 0xea, 0x06, 0x23, 0xb3, 0x9c, 0x36, 0xd3, 0x58, 0xd4, 0x88, 0x4c, 0xa7, 0x79, 0x8b, 0x3e, + 0x56, 0x97, 0x59, 0x76, 0xd9, 0xb1, 0xf7, 0x7d, 0x86, 0x0e, 0x25, 0xa8, 0x52, 0x94, 0x64, 0xb2, + 0x92, 0x88, 0xff, 0x3b, 0x3f, 0x70, 0x7e, 0x60, 0x0e, 0xd4, 0x93, 0x2c, 0xbf, 0xce, 0xf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x8d, 0x53, + 0x7d, 0x7f, 0xe3, 0x54, 0xff, 0xb9, 0x71, 0xaa, 0x7f, 0xde, 0x3a, 0x95, 0xf7, 0xb7, 0x4e, 0xe5, + 0xef, 0x5b, 0xa7, 0xf2, 0xd3, 0xf7, 0xbf, 0xbc, 0x2e, 0x7e, 0x7d, 0x7b, 0xd5, 0x48, 0xb2, 0xeb, + 0xa6, 0x1d, 0x63, 0xb3, 0x9f, 0xef, 0xf2, 0x9f, 0x7f, 0x6b, 0x16, 0xef, 0xc6, 0xe9, 0xca, 0x5c, + 0xbb, 0xda, 0x98, 0x8e, 0xb3, 0x1f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xec, 0x68, 0x94, 0x00, + 0xf6, 0x04, 0x00, 0x00, } From b7394e5cfca3bd0cd627ec2d025715603a9f1d64 Mon Sep 17 00:00:00 2001 From: Brandon Weng <18161326+BrandonWeng@users.noreply.github.com> Date: Fri, 28 Oct 2022 19:23:22 -0400 Subject: [PATCH 8/9] Add Staking and Oracle too --- types/accesscontrol/resource.go | 83 +++++++++++++++++++++++++-------- 1 file changed, 64 insertions(+), 19 deletions(-) diff --git a/types/accesscontrol/resource.go b/types/accesscontrol/resource.go index c2e2c38e0..63adea364 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -17,25 +17,70 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_AUTH, ResourceType_KV_TOKENFACTORY, }}, - ResourceType_Mem: {ResourceType_ANY, []ResourceType{ResourceType_DexMem}}, - ResourceType_DexMem: {ResourceType_Mem, []ResourceType{}}, - ResourceType_KV_BANK: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_STAKING: {ResourceType_KV, []ResourceType{ResourceType_KV_STAKING_DELEGATION, ResourceType_KV_STAKING_VALIDATOR}}, - ResourceType_KV_STAKING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, - ResourceType_KV_STAKING_VALIDATOR: {ResourceType_KV_STAKING, []ResourceType{}}, - ResourceType_KV_WASM: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_EPOCH: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_ORACLE: {ResourceType_KV, []ResourceType{ResourceType_KV_ORACLE_AGGREGATE_VOTES, ResourceType_KV_ORACLE_VOTE_TARGETS, ResourceType_KV_ORACLE_FEEDERS}}, - ResourceType_KV_ORACLE_VOTE_TARGETS: {ResourceType_KV_ORACLE, []ResourceType{}}, - ResourceType_KV_ORACLE_AGGREGATE_VOTES: {ResourceType_KV_ORACLE, []ResourceType{}}, - ResourceType_KV_ORACLE_FEEDERS: {ResourceType_KV_ORACLE, []ResourceType{}}, - ResourceType_KV_DEX: {ResourceType_KV, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ResourceType_KV_TOKENFACTORY_DENOM, ResourceType_KV_TOKENFACTORY_METADATA, ResourceType_KV_TOKENFACTORY_ADMIN, ResourceType_KV_TOKENFACTORY_CREATOR}}, - ResourceType_KV_TOKENFACTORY_DENOM: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_METADATA: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_ADMIN: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_TOKENFACTORY_CREATOR: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, - ResourceType_KV_AUTH: {ResourceType_KV, []ResourceType{}}, + ResourceType_Mem: {ResourceType_ANY, []ResourceType{ResourceType_DexMem}}, + ResourceType_DexMem: {ResourceType_Mem, []ResourceType{}}, + ResourceType_KV_BANK: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_STAKING: {ResourceType_KV, []ResourceType{ + ResourceType_KV_STAKING_DELEGATION, + ResourceType_KV_STAKING_VALIDATOR, + ResourceType_KV_STAKING_VALIDATION_POWER, + ResourceType_KV_STAKING_TOTAL_POWER, + ResourceType_KV_STAKING_VALIDATORS_CON_ADDR, + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION, + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL, + ResourceType_KV_STAKING_REDELEGATION, + ResourceType_KV_STAKING_REDELEGATION_VAL_SRC, + ResourceType_KV_STAKING_REDELEGATION_VAL_DST, + ResourceType_KV_STAKING_REDELEGATION_QUEUE, + ResourceType_KV_STAKING_VALIDATOR_QUEUE, + ResourceType_KV_STAKING_HISTORICAL_INFO, + ResourceType_KV_STAKING_UNBOUNDING, + }}, + ResourceType_KV_STAKING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_VALIDATOR: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_WASM: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_EPOCH: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_ORACLE: {ResourceType_KV, []ResourceType{ + ResourceType_KV_ORACLE_AGGREGATE_VOTES, + ResourceType_KV_ORACLE_VOTE_TARGETS, + ResourceType_KV_ORACLE_FEEDERS, + ResourceType_KV_ORACLE_EXCHANGE_RATE, + ResourceType_KV_ORACLE_VOTE_PENALTY_COUNTER, + ResourceType_KV_ORACLE_PRICE_SNAPSHOT, + }}, + ResourceType_KV_ORACLE_VOTE_TARGETS: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_ORACLE_AGGREGATE_VOTES: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_ORACLE_FEEDERS: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_DEX: {ResourceType_KV, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY: {ResourceType_KV, []ResourceType{ + ResourceType_KV_TOKENFACTORY_DENOM, + ResourceType_KV_TOKENFACTORY_METADATA, + ResourceType_KV_TOKENFACTORY_ADMIN, + ResourceType_KV_TOKENFACTORY_CREATOR, + }}, + ResourceType_KV_TOKENFACTORY_DENOM: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_METADATA: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_ADMIN: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_TOKENFACTORY_CREATOR: {ResourceType_KV_TOKENFACTORY, []ResourceType{}}, + ResourceType_KV_AUTH: {ResourceType_KV, []ResourceType{ + ResourceType_KV_AUTH_ADDRESS_STORE, + }}, + ResourceType_KV_AUTH_ADDRESS_STORE: {ResourceType_KV_AUTH, []ResourceType{}}, + ResourceType_KV_ORACLE_EXCHANGE_RATE: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_ORACLE_VOTE_PENALTY_COUNTER: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_ORACLE_PRICE_SNAPSHOT: {ResourceType_KV_ORACLE, []ResourceType{}}, + ResourceType_KV_STAKING_VALIDATION_POWER: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_TOTAL_POWER: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_VALIDATORS_CON_ADDR: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_REDELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_REDELEGATION_VAL_SRC: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_REDELEGATION_VAL_DST: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_REDELEGATION_QUEUE: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_VALIDATOR_QUEUE: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_HISTORICAL_INFO: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBOUNDING: {ResourceType_KV_STAKING, []ResourceType{}}, } // This returns a slice of all resource types that are dependent to a specific resource type From 71154e6c48163c1b74add5ba8c50cf2075243736 Mon Sep 17 00:00:00 2001 From: Brandon Weng Date: Fri, 28 Oct 2022 20:52:51 -0400 Subject: [PATCH 9/9] typo --- proto/cosmos/accesscontrol/constants.proto | 6 +- types/accesscontrol/constants.pb.go | 258 ++++++++++----------- types/accesscontrol/resource.go | 12 +- 3 files changed, 138 insertions(+), 138 deletions(-) diff --git a/proto/cosmos/accesscontrol/constants.proto b/proto/cosmos/accesscontrol/constants.proto index bfa18da95..b54fe0571 100644 --- a/proto/cosmos/accesscontrol/constants.proto +++ b/proto/cosmos/accesscontrol/constants.proto @@ -47,13 +47,13 @@ enum ResourceType { KV_STAKING_VALIDATION_POWER = 28; // child of KV_STAKING KV_STAKING_TOTAL_POWER = 29; // child of KV_STAKING KV_STAKING_VALIDATORS_CON_ADDR = 30; // child of KV_STAKING - KV_STAKING_UNBOUNDING_DELEGATION = 31; // child of KV_STAKING - KV_STAKING_UNBOUNDING_DELEGATION_VAL = 32; // child of KV_STAKING + KV_STAKING_UNBONDING_DELEGATION = 31; // child of KV_STAKING + KV_STAKING_UNBONDING_DELEGATION_VAL = 32; // child of KV_STAKING KV_STAKING_REDELEGATION = 33; // child of KV_STAKING KV_STAKING_REDELEGATION_VAL_SRC = 34; // child of KV_STAKING KV_STAKING_REDELEGATION_VAL_DST = 35; // child of KV_STAKING KV_STAKING_REDELEGATION_QUEUE = 36; // child of KV_STAKING KV_STAKING_VALIDATOR_QUEUE = 37; // child of KV_STAKING KV_STAKING_HISTORICAL_INFO = 38; // child of KV_STAKING - KV_STAKING_UNBOUNDING = 39; // child of KV_STAKING + KV_STAKING_UNBONDING = 39; // child of KV_STAKING } diff --git a/types/accesscontrol/constants.pb.go b/types/accesscontrol/constants.pb.go index 57ef869ae..9aa898806 100644 --- a/types/accesscontrol/constants.pb.go +++ b/types/accesscontrol/constants.pb.go @@ -79,46 +79,46 @@ func (AccessOperationSelectorType) EnumDescriptor() ([]byte, []int) { type ResourceType int32 const ( - ResourceType_ANY ResourceType = 0 - ResourceType_KV ResourceType = 1 - ResourceType_Mem ResourceType = 2 - ResourceType_DexMem ResourceType = 3 - ResourceType_KV_BANK ResourceType = 4 - ResourceType_KV_STAKING ResourceType = 5 - ResourceType_KV_WASM ResourceType = 6 - ResourceType_KV_ORACLE ResourceType = 7 - ResourceType_KV_DEX ResourceType = 8 - ResourceType_KV_EPOCH ResourceType = 9 - ResourceType_KV_TOKENFACTORY ResourceType = 10 - ResourceType_KV_ORACLE_VOTE_TARGETS ResourceType = 11 - ResourceType_KV_ORACLE_AGGREGATE_VOTES ResourceType = 12 - ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 - ResourceType_KV_STAKING_DELEGATION ResourceType = 14 - ResourceType_KV_STAKING_VALIDATOR ResourceType = 15 - ResourceType_KV_AUTH ResourceType = 16 - ResourceType_KV_AUTH_ADDRESS_STORE ResourceType = 17 - ResourceType_KV_BANK_SUPPLY ResourceType = 18 - ResourceType_KV_BANK_DENOM ResourceType = 19 - ResourceType_KV_BANK_BALANCES ResourceType = 20 - ResourceType_KV_TOKENFACTORY_DENOM ResourceType = 21 - ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 - ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 - ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 - ResourceType_KV_ORACLE_EXCHANGE_RATE ResourceType = 25 - ResourceType_KV_ORACLE_VOTE_PENALTY_COUNTER ResourceType = 26 - ResourceType_KV_ORACLE_PRICE_SNAPSHOT ResourceType = 27 - ResourceType_KV_STAKING_VALIDATION_POWER ResourceType = 28 - ResourceType_KV_STAKING_TOTAL_POWER ResourceType = 29 - ResourceType_KV_STAKING_VALIDATORS_CON_ADDR ResourceType = 30 - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION ResourceType = 31 - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL ResourceType = 32 - ResourceType_KV_STAKING_REDELEGATION ResourceType = 33 - ResourceType_KV_STAKING_REDELEGATION_VAL_SRC ResourceType = 34 - ResourceType_KV_STAKING_REDELEGATION_VAL_DST ResourceType = 35 - ResourceType_KV_STAKING_REDELEGATION_QUEUE ResourceType = 36 - ResourceType_KV_STAKING_VALIDATOR_QUEUE ResourceType = 37 - ResourceType_KV_STAKING_HISTORICAL_INFO ResourceType = 38 - ResourceType_KV_STAKING_UNBOUNDING ResourceType = 39 + ResourceType_ANY ResourceType = 0 + ResourceType_KV ResourceType = 1 + ResourceType_Mem ResourceType = 2 + ResourceType_DexMem ResourceType = 3 + ResourceType_KV_BANK ResourceType = 4 + ResourceType_KV_STAKING ResourceType = 5 + ResourceType_KV_WASM ResourceType = 6 + ResourceType_KV_ORACLE ResourceType = 7 + ResourceType_KV_DEX ResourceType = 8 + ResourceType_KV_EPOCH ResourceType = 9 + ResourceType_KV_TOKENFACTORY ResourceType = 10 + ResourceType_KV_ORACLE_VOTE_TARGETS ResourceType = 11 + ResourceType_KV_ORACLE_AGGREGATE_VOTES ResourceType = 12 + ResourceType_KV_ORACLE_FEEDERS ResourceType = 13 + ResourceType_KV_STAKING_DELEGATION ResourceType = 14 + ResourceType_KV_STAKING_VALIDATOR ResourceType = 15 + ResourceType_KV_AUTH ResourceType = 16 + ResourceType_KV_AUTH_ADDRESS_STORE ResourceType = 17 + ResourceType_KV_BANK_SUPPLY ResourceType = 18 + ResourceType_KV_BANK_DENOM ResourceType = 19 + ResourceType_KV_BANK_BALANCES ResourceType = 20 + ResourceType_KV_TOKENFACTORY_DENOM ResourceType = 21 + ResourceType_KV_TOKENFACTORY_METADATA ResourceType = 22 + ResourceType_KV_TOKENFACTORY_ADMIN ResourceType = 23 + ResourceType_KV_TOKENFACTORY_CREATOR ResourceType = 24 + ResourceType_KV_ORACLE_EXCHANGE_RATE ResourceType = 25 + ResourceType_KV_ORACLE_VOTE_PENALTY_COUNTER ResourceType = 26 + ResourceType_KV_ORACLE_PRICE_SNAPSHOT ResourceType = 27 + ResourceType_KV_STAKING_VALIDATION_POWER ResourceType = 28 + ResourceType_KV_STAKING_TOTAL_POWER ResourceType = 29 + ResourceType_KV_STAKING_VALIDATORS_CON_ADDR ResourceType = 30 + ResourceType_KV_STAKING_UNBONDING_DELEGATION ResourceType = 31 + ResourceType_KV_STAKING_UNBONDING_DELEGATION_VAL ResourceType = 32 + ResourceType_KV_STAKING_REDELEGATION ResourceType = 33 + ResourceType_KV_STAKING_REDELEGATION_VAL_SRC ResourceType = 34 + ResourceType_KV_STAKING_REDELEGATION_VAL_DST ResourceType = 35 + ResourceType_KV_STAKING_REDELEGATION_QUEUE ResourceType = 36 + ResourceType_KV_STAKING_VALIDATOR_QUEUE ResourceType = 37 + ResourceType_KV_STAKING_HISTORICAL_INFO ResourceType = 38 + ResourceType_KV_STAKING_UNBONDING ResourceType = 39 ) var ResourceType_name = map[int32]string{ @@ -153,58 +153,58 @@ var ResourceType_name = map[int32]string{ 28: "KV_STAKING_VALIDATION_POWER", 29: "KV_STAKING_TOTAL_POWER", 30: "KV_STAKING_VALIDATORS_CON_ADDR", - 31: "KV_STAKING_UNBOUNDING_DELEGATION", - 32: "KV_STAKING_UNBOUNDING_DELEGATION_VAL", + 31: "KV_STAKING_UNBONDING_DELEGATION", + 32: "KV_STAKING_UNBONDING_DELEGATION_VAL", 33: "KV_STAKING_REDELEGATION", 34: "KV_STAKING_REDELEGATION_VAL_SRC", 35: "KV_STAKING_REDELEGATION_VAL_DST", 36: "KV_STAKING_REDELEGATION_QUEUE", 37: "KV_STAKING_VALIDATOR_QUEUE", 38: "KV_STAKING_HISTORICAL_INFO", - 39: "KV_STAKING_UNBOUNDING", + 39: "KV_STAKING_UNBONDING", } var ResourceType_value = map[string]int32{ - "ANY": 0, - "KV": 1, - "Mem": 2, - "DexMem": 3, - "KV_BANK": 4, - "KV_STAKING": 5, - "KV_WASM": 6, - "KV_ORACLE": 7, - "KV_DEX": 8, - "KV_EPOCH": 9, - "KV_TOKENFACTORY": 10, - "KV_ORACLE_VOTE_TARGETS": 11, - "KV_ORACLE_AGGREGATE_VOTES": 12, - "KV_ORACLE_FEEDERS": 13, - "KV_STAKING_DELEGATION": 14, - "KV_STAKING_VALIDATOR": 15, - "KV_AUTH": 16, - "KV_AUTH_ADDRESS_STORE": 17, - "KV_BANK_SUPPLY": 18, - "KV_BANK_DENOM": 19, - "KV_BANK_BALANCES": 20, - "KV_TOKENFACTORY_DENOM": 21, - "KV_TOKENFACTORY_METADATA": 22, - "KV_TOKENFACTORY_ADMIN": 23, - "KV_TOKENFACTORY_CREATOR": 24, - "KV_ORACLE_EXCHANGE_RATE": 25, - "KV_ORACLE_VOTE_PENALTY_COUNTER": 26, - "KV_ORACLE_PRICE_SNAPSHOT": 27, - "KV_STAKING_VALIDATION_POWER": 28, - "KV_STAKING_TOTAL_POWER": 29, - "KV_STAKING_VALIDATORS_CON_ADDR": 30, - "KV_STAKING_UNBOUNDING_DELEGATION": 31, - "KV_STAKING_UNBOUNDING_DELEGATION_VAL": 32, - "KV_STAKING_REDELEGATION": 33, - "KV_STAKING_REDELEGATION_VAL_SRC": 34, - "KV_STAKING_REDELEGATION_VAL_DST": 35, - "KV_STAKING_REDELEGATION_QUEUE": 36, - "KV_STAKING_VALIDATOR_QUEUE": 37, - "KV_STAKING_HISTORICAL_INFO": 38, - "KV_STAKING_UNBOUNDING": 39, + "ANY": 0, + "KV": 1, + "Mem": 2, + "DexMem": 3, + "KV_BANK": 4, + "KV_STAKING": 5, + "KV_WASM": 6, + "KV_ORACLE": 7, + "KV_DEX": 8, + "KV_EPOCH": 9, + "KV_TOKENFACTORY": 10, + "KV_ORACLE_VOTE_TARGETS": 11, + "KV_ORACLE_AGGREGATE_VOTES": 12, + "KV_ORACLE_FEEDERS": 13, + "KV_STAKING_DELEGATION": 14, + "KV_STAKING_VALIDATOR": 15, + "KV_AUTH": 16, + "KV_AUTH_ADDRESS_STORE": 17, + "KV_BANK_SUPPLY": 18, + "KV_BANK_DENOM": 19, + "KV_BANK_BALANCES": 20, + "KV_TOKENFACTORY_DENOM": 21, + "KV_TOKENFACTORY_METADATA": 22, + "KV_TOKENFACTORY_ADMIN": 23, + "KV_TOKENFACTORY_CREATOR": 24, + "KV_ORACLE_EXCHANGE_RATE": 25, + "KV_ORACLE_VOTE_PENALTY_COUNTER": 26, + "KV_ORACLE_PRICE_SNAPSHOT": 27, + "KV_STAKING_VALIDATION_POWER": 28, + "KV_STAKING_TOTAL_POWER": 29, + "KV_STAKING_VALIDATORS_CON_ADDR": 30, + "KV_STAKING_UNBONDING_DELEGATION": 31, + "KV_STAKING_UNBONDING_DELEGATION_VAL": 32, + "KV_STAKING_REDELEGATION": 33, + "KV_STAKING_REDELEGATION_VAL_SRC": 34, + "KV_STAKING_REDELEGATION_VAL_DST": 35, + "KV_STAKING_REDELEGATION_QUEUE": 36, + "KV_STAKING_VALIDATOR_QUEUE": 37, + "KV_STAKING_HISTORICAL_INFO": 38, + "KV_STAKING_UNBONDING": 39, } func (x ResourceType) String() string { @@ -226,50 +226,50 @@ func init() { } var fileDescriptor_36568f7561081112 = []byte{ - // 708 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0xcb, 0x72, 0xdb, 0x36, - 0x14, 0x86, 0xa5, 0xd8, 0xf1, 0xe5, 0xc4, 0x76, 0x8e, 0x11, 0x3b, 0xb1, 0x2d, 0x9b, 0xce, 0x45, - 0xbd, 0x8c, 0x67, 0x2a, 0x35, 0xd3, 0x5d, 0x77, 0x10, 0x09, 0x4b, 0x0c, 0x29, 0x40, 0x01, 0x40, - 0x2a, 0xea, 0x06, 0x23, 0xb3, 0x9c, 0x36, 0xd3, 0x58, 0xd4, 0x88, 0x4c, 0xa7, 0x79, 0x8b, 0x3e, - 0x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 0xba, 0xb7, 0xfa, 0x57, 0x2b, 0x7a, 0xc7, 0x2f, 0xdf, 0x9f, 0xef, 0xd2, 0xd0, 0xf8, - 0xfc, 0x52, 0xe0, 0xd7, 0x2b, 0x8f, 0x7c, 0xd1, 0x33, 0x7e, 0xd3, 0x7a, 0xf1, 0xd7, 0x8d, 0x53, - 0x7d, 0x7f, 0xe3, 0x54, 0xff, 0xb9, 0x71, 0xaa, 0x7f, 0xde, 0x3a, 0x95, 0xf7, 0xb7, 0x4e, 0xe5, - 0xef, 0x5b, 0xa7, 0xf2, 0xd3, 0xf7, 0xbf, 0xbc, 0x2e, 0x7e, 0x7d, 0x7b, 0xd5, 0x48, 0xb2, 0xeb, - 0xa6, 0x1d, 0x63, 0xb3, 0x9f, 0xef, 0xf2, 0x9f, 0x7f, 0x6b, 0x16, 0xef, 0xc6, 0xe9, 0xca, 0x5c, - 0xbb, 0xda, 0x98, 0x8e, 0xb3, 0x1f, 0xfe, 0x0b, 0x00, 0x00, 0xff, 0xff, 0xec, 0x68, 0x94, 0x00, - 0xf6, 0x04, 0x00, 0x00, + // 706 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x94, 0x41, 0x6f, 0xdb, 0x36, + 0x14, 0xc7, 0xed, 0x26, 0x8d, 0x9d, 0xd7, 0x24, 0x7d, 0x61, 0x93, 0x36, 0x89, 0x13, 0x65, 0x6d, + 0xba, 0x15, 0x08, 0x30, 0x7b, 0xc5, 0x6e, 0xbb, 0xd1, 0x12, 0x63, 0xab, 0x92, 0x49, 0x97, 0xa4, + 0xe5, 0x7a, 0x17, 0xc2, 0xd1, 0x84, 0xad, 0x58, 0x63, 0x19, 0x96, 0x3a, 0xac, 0xdf, 0x62, 0x1f, + 0x6b, 0xc7, 0x1e, 0x77, 0x1c, 0x92, 0xe3, 0xbe, 0xc4, 0x20, 0x9b, 0x6e, 0x3c, 0xb5, 0x43, 0x4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x34, 0x3e, 0xbf, 0x10, + 0xf8, 0x4d, 0xe9, 0x1d, 0x7f, 0x6a, 0x19, 0x5f, 0xb4, 0x5f, 0xfd, 0x79, 0xed, 0x54, 0x3f, 0x5e, + 0x3b, 0xd5, 0xbf, 0xaf, 0x9d, 0xea, 0x1f, 0x37, 0x4e, 0xe5, 0xe3, 0x8d, 0x53, 0xf9, 0xeb, 0xc6, + 0xa9, 0xfc, 0xf8, 0xdd, 0xcf, 0x6f, 0xf3, 0x5f, 0xde, 0x5f, 0x36, 0xe3, 0xf4, 0xaa, 0x65, 0x67, + 0xd8, 0xe2, 0xe7, 0xdb, 0xec, 0xa7, 0x5f, 0x5b, 0xf9, 0x87, 0x69, 0x52, 0x1a, 0x6a, 0x97, 0x1b, + 0xf3, 0x59, 0xf6, 0xfd, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x78, 0x8d, 0x21, 0xda, 0xf3, 0x04, + 0x00, 0x00, } diff --git a/types/accesscontrol/resource.go b/types/accesscontrol/resource.go index 63adea364..938055762 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -26,15 +26,15 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_STAKING_VALIDATION_POWER, ResourceType_KV_STAKING_TOTAL_POWER, ResourceType_KV_STAKING_VALIDATORS_CON_ADDR, - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION, - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL, + ResourceType_KV_STAKING_UNBONDING_DELEGATION, + ResourceType_KV_STAKING_UNBONDING_DELEGATION_VAL, ResourceType_KV_STAKING_REDELEGATION, ResourceType_KV_STAKING_REDELEGATION_VAL_SRC, ResourceType_KV_STAKING_REDELEGATION_VAL_DST, ResourceType_KV_STAKING_REDELEGATION_QUEUE, ResourceType_KV_STAKING_VALIDATOR_QUEUE, ResourceType_KV_STAKING_HISTORICAL_INFO, - ResourceType_KV_STAKING_UNBOUNDING, + ResourceType_KV_STAKING_UNBONDING, }}, ResourceType_KV_STAKING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_VALIDATOR: {ResourceType_KV_STAKING, []ResourceType{}}, @@ -72,15 +72,15 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_STAKING_VALIDATION_POWER: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_TOTAL_POWER: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_VALIDATORS_CON_ADDR: {ResourceType_KV_STAKING, []ResourceType{}}, - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, - ResourceType_KV_STAKING_UNBOUNDING_DELEGATION_VAL: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBONDING_DELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBONDING_DELEGATION_VAL: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_REDELEGATION: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_REDELEGATION_VAL_SRC: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_REDELEGATION_VAL_DST: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_REDELEGATION_QUEUE: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_VALIDATOR_QUEUE: {ResourceType_KV_STAKING, []ResourceType{}}, ResourceType_KV_STAKING_HISTORICAL_INFO: {ResourceType_KV_STAKING, []ResourceType{}}, - ResourceType_KV_STAKING_UNBOUNDING: {ResourceType_KV_STAKING, []ResourceType{}}, + ResourceType_KV_STAKING_UNBONDING: {ResourceType_KV_STAKING, []ResourceType{}}, } // This returns a slice of all resource types that are dependent to a specific resource type