diff --git a/proto/cosmos/accesscontrol/constants.proto b/proto/cosmos/accesscontrol/constants.proto index 8650c51c8..b54fe0571 100644 --- a/proto/cosmos/accesscontrol/constants.proto +++ b/proto/cosmos/accesscontrol/constants.proto @@ -37,5 +37,23 @@ 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 + 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_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_UNBONDING = 39; // child of KV_STAKING } - diff --git a/types/accesscontrol/constants.pb.go b/types/accesscontrol/constants.pb.go index f6e73d83d..9aa898806 100644 --- a/types/accesscontrol/constants.pb.go +++ b/types/accesscontrol/constants.pb.go @@ -79,27 +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_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{ @@ -124,30 +143,68 @@ 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", + 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_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_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, + "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 { @@ -169,36 +226,50 @@ 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, 0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, 0xfe, 0x74, 0x3b, 0x6b, - 0x86, 0x66, 0xde, 0xda, 0x15, 0x2c, 0x5d, 0x5e, 0x46, 0x1f, 0x3e, 0xb7, 0xe2, 0xbb, 0xa5, 0xfe, - 0xaf, 0x71, 0xb3, 0xfc, 0xb6, 0x68, 0xaf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x19, 0x28, 0x3f, - 0x93, 0x90, 0x02, 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, 0x4e, + 0xb6, 0xf8, 0xff, 0xbd, 0x3f, 0xf9, 0xfe, 0x24, 0x1e, 0x3c, 0x8f, 0xd3, 0xec, 0x2a, 0xcd, 0x5a, + 0xe3, 0x38, 0x4e, 0xb2, 0x2c, 0x4e, 0x27, 0xf9, 0x2c, 0x7d, 0xd7, 0x8a, 0xd3, 0x49, 0x96, 0x8f, + 0x27, 0x79, 0xd6, 0x9c, 0xce, 0xd2, 0x3c, 0x25, 0xc7, 0x0b, 0xaa, 0xf9, 0x1f, 0xaa, 0xf9, 0xdb, + 0xcb, 0xcb, 0x24, 0x1f, 0xbf, 0x3c, 0xff, 0x01, 0x80, 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7, 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 e80d4d07c..938055762 100644 --- a/types/accesscontrol/resource.go +++ b/types/accesscontrol/resource.go @@ -14,24 +14,73 @@ var ResourceTree = map[ResourceType]TreeNode{ ResourceType_KV_ORACLE, ResourceType_KV_STAKING, ResourceType_KV_WASM, - ResourceType_KV_TOKENFACTORY, 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_VALIDATION_POWER, + ResourceType_KV_STAKING_TOTAL_POWER, + ResourceType_KV_STAKING_VALIDATORS_CON_ADDR, + 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_UNBONDING, + }}, + 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_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_AUTH: {ResourceType_KV, []ResourceType{}}, + 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_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_UNBONDING: {ResourceType_KV_STAKING, []ResourceType{}}, } // This returns a slice of all resource types that are dependent to a specific resource type