accesscontrol

package
v0.45.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2025 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ANTE_MSG_INDEX = int(-1)

We generate dependencies on a per message basis for a trnasaction, but antehandlers also use resources. As a result we use -1 for the ante handler index (used as map key) to indicate that it is prior to msgs in the tx

Variables

View Source
var (
	ErrInvalidLengthAccesscontrol        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccesscontrol          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccesscontrol = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLegacy        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLegacy          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLegacy = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	EmptyPrefix   = []byte{}
	ParentNodeKey = "ParentNode"
)
View Source
var AccessOperationSelectorType_name = map[int32]string{
	0: "NONE",
	1: "JQ",
	2: "JQ_BECH32_ADDRESS",
	3: "JQ_LENGTH_PREFIXED_ADDRESS",
	4: "SENDER_BECH32_ADDRESS",
	5: "SENDER_LENGTH_PREFIXED_ADDRESS",
	6: "CONTRACT_ADDRESS",
	7: "JQ_MESSAGE_CONDITIONAL",
	8: "CONSTANT_STRING_TO_HEX",
	9: "CONTRACT_REFERENCE",
}
View Source
var AccessOperationSelectorType_value = map[string]int32{
	"NONE":                           0,
	"JQ":                             1,
	"JQ_BECH32_ADDRESS":              2,
	"JQ_LENGTH_PREFIXED_ADDRESS":     3,
	"SENDER_BECH32_ADDRESS":          4,
	"SENDER_LENGTH_PREFIXED_ADDRESS": 5,
	"CONTRACT_ADDRESS":               6,
	"JQ_MESSAGE_CONDITIONAL":         7,
	"CONSTANT_STRING_TO_HEX":         8,
	"CONTRACT_REFERENCE":             9,
}
View Source
var AccessType_name = map[int32]string{
	0: "UNKNOWN",
	1: "READ",
	2: "WRITE",
	3: "COMMIT",
}
View Source
var AccessType_value = map[string]int32{
	"UNKNOWN": 0,
	"READ":    1,
	"WRITE":   2,
	"COMMIT":  3,
}
View Source
var (
	// Param Store Values can only be set during genesis and updated
	// through a gov proposal and those are always processed sequentially
	ConcurrentSafeIdentifiers = map[string]bool{
		"bank/SendEnabled":        true,
		"bank/DefaultSendEnabled": true,
		"staking/BondDenom":       true,
		"staking/UnbondingTime":   true,
	}
)
View Source
var ResourceTree = map[ResourceType]TreeNode{
	ResourceType_ANY: {ResourceType_ANY, []ResourceType{ResourceType_KV, ResourceType_Mem}},
	ResourceType_KV: {ResourceType_ANY, []ResourceType{
		ResourceType_KV_BANK,
		ResourceType_KV_EPOCH,
		ResourceType_KV_ORACLE,
		ResourceType_KV_STAKING,
		ResourceType_KV_WASM,
		ResourceType_KV_AUTH,
		ResourceType_KV_TOKENFACTORY,
		ResourceType_KV_DISTRIBUTION,
		ResourceType_KV_ACCESSCONTROL,
		ResourceType_KV_AUTHZ,
		ResourceType_KV_FEEGRANT,
		ResourceType_KV_SLASHING,
		ResourceType_KV_BANK_DEFERRED,
		ResourceType_KV_EVM,
	}},
	ResourceType_Mem: {ResourceType_ANY, []ResourceType{}},
	ResourceType_KV_BANK: {ResourceType_KV, []ResourceType{
		ResourceType_KV_BANK_SUPPLY,
		ResourceType_KV_BANK_DENOM,
		ResourceType_KV_BANK_BALANCES,
		ResourceType_KV_BANK_WEI_BALANCE,
	}},
	ResourceType_KV_BANK_SUPPLY:                   {ResourceType_KV_BANK, []ResourceType{}},
	ResourceType_KV_BANK_DENOM:                    {ResourceType_KV_BANK, []ResourceType{}},
	ResourceType_KV_BANK_BALANCES:                 {ResourceType_KV_BANK, []ResourceType{}},
	ResourceType_KV_BANK_DEFERRED:                 {ResourceType_KV, []ResourceType{ResourceType_KV_BANK_DEFERRED_MODULE_TX_INDEX}},
	ResourceType_KV_BANK_DEFERRED_MODULE_TX_INDEX: {ResourceType_KV_BANK_DEFERRED, []ResourceType{}},
	ResourceType_KV_BANK_WEI_BALANCE:              {ResourceType_KV_BANK, []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_VALIDATORS_BY_POWER,
	}},
	ResourceType_KV_STAKING_DELEGATION:               {ResourceType_KV_STAKING, []ResourceType{}},
	ResourceType_KV_STAKING_VALIDATOR:                {ResourceType_KV_STAKING, []ResourceType{}},
	ResourceType_KV_STAKING_VALIDATORS_BY_POWER:      {ResourceType_KV_STAKING, []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{}},
	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_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_GLOBAL_ACCOUNT_NUMBER,
	}},
	ResourceType_KV_AUTH_ADDRESS_STORE:          {ResourceType_KV_AUTH, []ResourceType{}},
	ResourceType_KV_AUTH_GLOBAL_ACCOUNT_NUMBER:  {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_DISTRIBUTION: {ResourceType_KV, []ResourceType{
		ResourceType_KV_DISTRIBUTION_FEE_POOL,
		ResourceType_KV_DISTRIBUTION_PROPOSER_KEY,
		ResourceType_KV_DISTRIBUTION_OUTSTANDING_REWARDS,
		ResourceType_KV_DISTRIBUTION_DELEGATOR_WITHDRAW_ADDR,
		ResourceType_KV_DISTRIBUTION_DELEGATOR_STARTING_INFO,
		ResourceType_KV_DISTRIBUTION_VAL_HISTORICAL_REWARDS,
		ResourceType_KV_DISTRIBUTION_VAL_CURRENT_REWARDS,
		ResourceType_KV_DISTRIBUTION_VAL_ACCUM_COMMISSION,
		ResourceType_KV_DISTRIBUTION_SLASH_EVENT,
	}},
	ResourceType_KV_DISTRIBUTION_FEE_POOL:                {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_PROPOSER_KEY:            {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_OUTSTANDING_REWARDS:     {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_DELEGATOR_WITHDRAW_ADDR: {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_DELEGATOR_STARTING_INFO: {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_VAL_HISTORICAL_REWARDS:  {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_VAL_CURRENT_REWARDS:     {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_VAL_ACCUM_COMMISSION:    {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_DISTRIBUTION_SLASH_EVENT:             {ResourceType_KV_DISTRIBUTION, []ResourceType{}},
	ResourceType_KV_ACCESSCONTROL: {ResourceType_KV, []ResourceType{
		ResourceType_KV_ACCESSCONTROL_WASM_DEPENDENCY_MAPPING,
	}},
	ResourceType_KV_ACCESSCONTROL_WASM_DEPENDENCY_MAPPING: {ResourceType_KV_ACCESSCONTROL, []ResourceType{}},
	ResourceType_KV_WASM: {ResourceType_KV, []ResourceType{
		ResourceType_KV_WASM_CODE,
		ResourceType_KV_WASM_CONTRACT_ADDRESS,
		ResourceType_KV_WASM_CONTRACT_STORE,
		ResourceType_KV_WASM_SEQUENCE_KEY,
		ResourceType_KV_WASM_CONTRACT_CODE_HISTORY,
		ResourceType_KV_WASM_CONTRACT_BY_CODE_ID,
		ResourceType_KV_WASM_PINNED_CODE_INDEX,
	}},
	ResourceType_KV_WASM_CODE:                         {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_CONTRACT_ADDRESS:             {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_CONTRACT_STORE:               {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_SEQUENCE_KEY:                 {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_CONTRACT_CODE_HISTORY:        {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_CONTRACT_BY_CODE_ID:          {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_WASM_PINNED_CODE_INDEX:            {ResourceType_KV_WASM, []ResourceType{}},
	ResourceType_KV_AUTHZ:                             {ResourceType_KV, []ResourceType{}},
	ResourceType_KV_FEEGRANT:                          {ResourceType_KV, []ResourceType{ResourceType_KV_FEEGRANT_ALLOWANCE}},
	ResourceType_KV_FEEGRANT_ALLOWANCE:                {ResourceType_KV_FEEGRANT, []ResourceType{}},
	ResourceType_KV_SLASHING:                          {ResourceType_KV, []ResourceType{ResourceType_KV_SLASHING_VAL_SIGNING_INFO, ResourceType_KV_SLASHING_ADDR_PUBKEY_RELATION_KEY}},
	ResourceType_KV_SLASHING_VAL_SIGNING_INFO:         {ResourceType_KV_SLASHING, []ResourceType{}},
	ResourceType_KV_SLASHING_ADDR_PUBKEY_RELATION_KEY: {ResourceType_KV_SLASHING, []ResourceType{}},
	ResourceType_KV_EVM: {ResourceType_KV, []ResourceType{
		ResourceType_KV_EVM_BALANCE,
		ResourceType_KV_EVM_TRANSIENT,
		ResourceType_KV_EVM_ACCOUNT_TRANSIENT,
		ResourceType_KV_EVM_MODULE_TRANSIENT,
		ResourceType_KV_EVM_NONCE,
		ResourceType_KV_EVM_RECEIPT,
		ResourceType_KV_EVM_S2E,
		ResourceType_KV_EVM_E2S,
		ResourceType_KV_EVM_CODE_HASH,
		ResourceType_KV_EVM_CODE,
		ResourceType_KV_EVM_CODE_SIZE,
	}},
	ResourceType_KV_EVM_BALANCE:           {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_TRANSIENT:         {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_ACCOUNT_TRANSIENT: {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_MODULE_TRANSIENT:  {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_NONCE:             {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_RECEIPT:           {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_S2E:               {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_E2S:               {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_CODE_HASH:         {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_CODE:              {ResourceType_KV_EVM, []ResourceType{}},
	ResourceType_KV_EVM_CODE_SIZE:         {ResourceType_KV_EVM, []ResourceType{}},
}
View Source
var ResourceType_name = map[int32]string{
	0:   "ANY",
	1:   "KV",
	2:   "Mem",
	4:   "KV_BANK",
	5:   "KV_STAKING",
	6:   "KV_WASM",
	7:   "KV_ORACLE",
	9:   "KV_EPOCH",
	10:  "KV_TOKENFACTORY",
	11:  "KV_ORACLE_VOTE_TARGETS",
	12:  "KV_ORACLE_AGGREGATE_VOTES",
	13:  "KV_ORACLE_FEEDERS",
	14:  "KV_STAKING_DELEGATION",
	15:  "KV_STAKING_VALIDATOR",
	16:  "KV_AUTH",
	17:  "KV_AUTH_ADDRESS_STORE",
	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",
	41:  "KV_STAKING_VALIDATORS_BY_POWER",
	40:  "KV_DISTRIBUTION",
	42:  "KV_DISTRIBUTION_FEE_POOL",
	43:  "KV_DISTRIBUTION_PROPOSER_KEY",
	44:  "KV_DISTRIBUTION_OUTSTANDING_REWARDS",
	45:  "KV_DISTRIBUTION_DELEGATOR_WITHDRAW_ADDR",
	46:  "KV_DISTRIBUTION_DELEGATOR_STARTING_INFO",
	47:  "KV_DISTRIBUTION_VAL_HISTORICAL_REWARDS",
	48:  "KV_DISTRIBUTION_VAL_CURRENT_REWARDS",
	49:  "KV_DISTRIBUTION_VAL_ACCUM_COMMISSION",
	50:  "KV_DISTRIBUTION_SLASH_EVENT",
	71:  "KV_ACCESSCONTROL",
	72:  "KV_ACCESSCONTROL_WASM_DEPENDENCY_MAPPING",
	73:  "KV_WASM_CODE",
	74:  "KV_WASM_CONTRACT_ADDRESS",
	75:  "KV_WASM_CONTRACT_STORE",
	76:  "KV_WASM_SEQUENCE_KEY",
	77:  "KV_WASM_CONTRACT_CODE_HISTORY",
	78:  "KV_WASM_CONTRACT_BY_CODE_ID",
	79:  "KV_WASM_PINNED_CODE_INDEX",
	80:  "KV_AUTH_GLOBAL_ACCOUNT_NUMBER",
	81:  "KV_AUTHZ",
	82:  "KV_FEEGRANT",
	83:  "KV_FEEGRANT_ALLOWANCE",
	84:  "KV_SLASHING",
	85:  "KV_SLASHING_VAL_SIGNING_INFO",
	86:  "KV_SLASHING_ADDR_PUBKEY_RELATION_KEY",
	93:  "KV_BANK_DEFERRED",
	95:  "KV_BANK_DEFERRED_MODULE_TX_INDEX",
	96:  "KV_EVM",
	97:  "KV_EVM_BALANCE",
	98:  "KV_EVM_TRANSIENT",
	99:  "KV_EVM_ACCOUNT_TRANSIENT",
	100: "KV_EVM_MODULE_TRANSIENT",
	101: "KV_EVM_NONCE",
	102: "KV_EVM_RECEIPT",
	103: "KV_EVM_S2E",
	104: "KV_EVM_E2S",
	105: "KV_EVM_CODE_HASH",
	106: "KV_EVM_CODE",
	107: "KV_EVM_CODE_SIZE",
	108: "KV_BANK_WEI_BALANCE",
	111: "KV_CT",
	112: "KV_CT_ACCOUNT",
}
View Source
var ResourceType_value = map[string]int32{
	"ANY":                                      0,
	"KV":                                       1,
	"Mem":                                      2,
	"KV_BANK":                                  4,
	"KV_STAKING":                               5,
	"KV_WASM":                                  6,
	"KV_ORACLE":                                7,
	"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,
	"KV_STAKING_VALIDATORS_BY_POWER":           41,
	"KV_DISTRIBUTION":                          40,
	"KV_DISTRIBUTION_FEE_POOL":                 42,
	"KV_DISTRIBUTION_PROPOSER_KEY":             43,
	"KV_DISTRIBUTION_OUTSTANDING_REWARDS":      44,
	"KV_DISTRIBUTION_DELEGATOR_WITHDRAW_ADDR":  45,
	"KV_DISTRIBUTION_DELEGATOR_STARTING_INFO":  46,
	"KV_DISTRIBUTION_VAL_HISTORICAL_REWARDS":   47,
	"KV_DISTRIBUTION_VAL_CURRENT_REWARDS":      48,
	"KV_DISTRIBUTION_VAL_ACCUM_COMMISSION":     49,
	"KV_DISTRIBUTION_SLASH_EVENT":              50,
	"KV_ACCESSCONTROL":                         71,
	"KV_ACCESSCONTROL_WASM_DEPENDENCY_MAPPING": 72,
	"KV_WASM_CODE":                             73,
	"KV_WASM_CONTRACT_ADDRESS":                 74,
	"KV_WASM_CONTRACT_STORE":                   75,
	"KV_WASM_SEQUENCE_KEY":                     76,
	"KV_WASM_CONTRACT_CODE_HISTORY":            77,
	"KV_WASM_CONTRACT_BY_CODE_ID":              78,
	"KV_WASM_PINNED_CODE_INDEX":                79,
	"KV_AUTH_GLOBAL_ACCOUNT_NUMBER":            80,
	"KV_AUTHZ":                                 81,
	"KV_FEEGRANT":                              82,
	"KV_FEEGRANT_ALLOWANCE":                    83,
	"KV_SLASHING":                              84,
	"KV_SLASHING_VAL_SIGNING_INFO":             85,
	"KV_SLASHING_ADDR_PUBKEY_RELATION_KEY":     86,
	"KV_BANK_DEFERRED":                         93,
	"KV_BANK_DEFERRED_MODULE_TX_INDEX":         95,
	"KV_EVM":                                   96,
	"KV_EVM_BALANCE":                           97,
	"KV_EVM_TRANSIENT":                         98,
	"KV_EVM_ACCOUNT_TRANSIENT":                 99,
	"KV_EVM_MODULE_TRANSIENT":                  100,
	"KV_EVM_NONCE":                             101,
	"KV_EVM_RECEIPT":                           102,
	"KV_EVM_S2E":                               103,
	"KV_EVM_E2S":                               104,
	"KV_EVM_CODE_HASH":                         105,
	"KV_EVM_CODE":                              106,
	"KV_EVM_CODE_SIZE":                         107,
	"KV_BANK_WEI_BALANCE":                      108,
	"KV_CT":                                    111,
	"KV_CT_ACCOUNT":                            112,
}
View Source
var WasmMessageSubtype_name = map[int32]string{
	0: "QUERY",
	1: "EXECUTE",
}
View Source
var WasmMessageSubtype_value = map[string]int32{
	"QUERY":   0,
	"EXECUTE": 1,
}

Functions

func IsDefaultSynchronousAccessOps

func IsDefaultSynchronousAccessOps(accessOps []AccessOperation) bool

func SendAllSignalsForTx

func SendAllSignalsForTx(messageIndexToAccessOpsChannelMapping MessageAccessOpsChannelMapping)

func WaitForAllSignalsForTx

func WaitForAllSignalsForTx(messageIndexToAccessOpsChannelMapping MessageAccessOpsChannelMapping)

Types

type AccessOperation

type AccessOperation struct {
	AccessType         AccessType   `` /* 137-byte string literal not displayed */
	ResourceType       ResourceType `` /* 145-byte string literal not displayed */
	IdentifierTemplate string       `protobuf:"bytes,3,opt,name=identifier_template,json=identifierTemplate,proto3" json:"identifier_template,omitempty"`
}

func SynchronousAccessOps

func SynchronousAccessOps() []AccessOperation

func (*AccessOperation) Descriptor

func (*AccessOperation) Descriptor() ([]byte, []int)

func (*AccessOperation) GetAccessType

func (m *AccessOperation) GetAccessType() AccessType

func (*AccessOperation) GetIdentifierTemplate

func (m *AccessOperation) GetIdentifierTemplate() string

func (*AccessOperation) GetResourceIDTemplate

func (a *AccessOperation) GetResourceIDTemplate(args []any) string

func (*AccessOperation) GetResourceType

func (m *AccessOperation) GetResourceType() ResourceType

func (*AccessOperation) GetString

func (a *AccessOperation) GetString()

func (*AccessOperation) Marshal

func (m *AccessOperation) Marshal() (dAtA []byte, err error)

func (*AccessOperation) MarshalTo

func (m *AccessOperation) MarshalTo(dAtA []byte) (int, error)

func (*AccessOperation) MarshalToSizedBuffer

func (m *AccessOperation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AccessOperation) ProtoMessage

func (*AccessOperation) ProtoMessage()

func (*AccessOperation) Reset

func (m *AccessOperation) Reset()

func (*AccessOperation) Size

func (m *AccessOperation) Size() (n int)

func (*AccessOperation) String

func (m *AccessOperation) String() string

func (*AccessOperation) Unmarshal

func (m *AccessOperation) Unmarshal(dAtA []byte) error

func (*AccessOperation) XXX_DiscardUnknown

func (m *AccessOperation) XXX_DiscardUnknown()

func (*AccessOperation) XXX_Marshal

func (m *AccessOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AccessOperation) XXX_Merge

func (m *AccessOperation) XXX_Merge(src proto.Message)

func (*AccessOperation) XXX_Size

func (m *AccessOperation) XXX_Size() int

func (*AccessOperation) XXX_Unmarshal

func (m *AccessOperation) XXX_Unmarshal(b []byte) error

type AccessOperationSelectorType

type AccessOperationSelectorType int32
const (
	AccessOperationSelectorType_NONE                           AccessOperationSelectorType = 0
	AccessOperationSelectorType_JQ                             AccessOperationSelectorType = 1
	AccessOperationSelectorType_JQ_BECH32_ADDRESS              AccessOperationSelectorType = 2
	AccessOperationSelectorType_JQ_LENGTH_PREFIXED_ADDRESS     AccessOperationSelectorType = 3
	AccessOperationSelectorType_SENDER_BECH32_ADDRESS          AccessOperationSelectorType = 4
	AccessOperationSelectorType_SENDER_LENGTH_PREFIXED_ADDRESS AccessOperationSelectorType = 5
	AccessOperationSelectorType_CONTRACT_ADDRESS               AccessOperationSelectorType = 6
	AccessOperationSelectorType_JQ_MESSAGE_CONDITIONAL         AccessOperationSelectorType = 7
	AccessOperationSelectorType_CONSTANT_STRING_TO_HEX         AccessOperationSelectorType = 8
	AccessOperationSelectorType_CONTRACT_REFERENCE             AccessOperationSelectorType = 9
)

func (AccessOperationSelectorType) EnumDescriptor

func (AccessOperationSelectorType) EnumDescriptor() ([]byte, []int)

func (AccessOperationSelectorType) String

type AccessOpsChannelMapping

type AccessOpsChannelMapping = map[AccessOperation][]chan interface{}

Alias for Map of AccessOperation -> Channel

type AccessType

type AccessType int32
const (
	AccessType_UNKNOWN AccessType = 0
	AccessType_READ    AccessType = 1
	AccessType_WRITE   AccessType = 2
	AccessType_COMMIT  AccessType = 3
)

func AccessTypeStringToEnum

func AccessTypeStringToEnum(accessType string) AccessType

func (AccessType) EnumDescriptor

func (AccessType) EnumDescriptor() ([]byte, []int)

func (AccessType) String

func (x AccessType) String() string

type Comparator

type Comparator struct {
	AccessType AccessType
	Identifier string
	StoreKey   string
}

func BuildComparatorFromEvents

func BuildComparatorFromEvents(events []abci.Event, storeKeyToResourceTypePrefixMap StoreKeyToResourceTypePrefixMap) (comparators []Comparator)

func (*Comparator) DependencyMatch

func (c *Comparator) DependencyMatch(accessOp AccessOperation, prefix []byte) bool

func (*Comparator) EmitValidationFailMetrics

func (c *Comparator) EmitValidationFailMetrics()

func (*Comparator) IsConcurrentSafeIdentifier

func (c *Comparator) IsConcurrentSafeIdentifier() bool

func (*Comparator) String

func (c *Comparator) String() string

type LegacyAccessOperationWithSelector

type LegacyAccessOperationWithSelector struct {
	Operation    *AccessOperation            `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	SelectorType AccessOperationSelectorType `` /* 160-byte string literal not displayed */
	Selector     string                      `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
}

func (*LegacyAccessOperationWithSelector) Descriptor

func (*LegacyAccessOperationWithSelector) Descriptor() ([]byte, []int)

func (*LegacyAccessOperationWithSelector) GetOperation

func (*LegacyAccessOperationWithSelector) GetSelector

func (m *LegacyAccessOperationWithSelector) GetSelector() string

func (*LegacyAccessOperationWithSelector) GetSelectorType

func (*LegacyAccessOperationWithSelector) Marshal

func (m *LegacyAccessOperationWithSelector) Marshal() (dAtA []byte, err error)

func (*LegacyAccessOperationWithSelector) MarshalTo

func (m *LegacyAccessOperationWithSelector) MarshalTo(dAtA []byte) (int, error)

func (*LegacyAccessOperationWithSelector) MarshalToSizedBuffer

func (m *LegacyAccessOperationWithSelector) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyAccessOperationWithSelector) ProtoMessage

func (*LegacyAccessOperationWithSelector) ProtoMessage()

func (*LegacyAccessOperationWithSelector) Reset

func (*LegacyAccessOperationWithSelector) Size

func (m *LegacyAccessOperationWithSelector) Size() (n int)

func (*LegacyAccessOperationWithSelector) String

func (*LegacyAccessOperationWithSelector) Unmarshal

func (m *LegacyAccessOperationWithSelector) Unmarshal(dAtA []byte) error

func (*LegacyAccessOperationWithSelector) XXX_DiscardUnknown

func (m *LegacyAccessOperationWithSelector) XXX_DiscardUnknown()

func (*LegacyAccessOperationWithSelector) XXX_Marshal

func (m *LegacyAccessOperationWithSelector) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyAccessOperationWithSelector) XXX_Merge

func (*LegacyAccessOperationWithSelector) XXX_Size

func (m *LegacyAccessOperationWithSelector) XXX_Size() int

func (*LegacyAccessOperationWithSelector) XXX_Unmarshal

func (m *LegacyAccessOperationWithSelector) XXX_Unmarshal(b []byte) error

type LegacyWasmDependencyMapping

type LegacyWasmDependencyMapping struct {
	Enabled         bool                                `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	AccessOps       []LegacyAccessOperationWithSelector `protobuf:"bytes,2,rep,name=access_ops,json=accessOps,proto3" json:"access_ops"`
	ResetReason     string                              `protobuf:"bytes,3,opt,name=reset_reason,json=resetReason,proto3" json:"reset_reason,omitempty"`
	ContractAddress string                              `protobuf:"bytes,4,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*LegacyWasmDependencyMapping) Descriptor

func (*LegacyWasmDependencyMapping) Descriptor() ([]byte, []int)

func (*LegacyWasmDependencyMapping) GetAccessOps

func (*LegacyWasmDependencyMapping) GetContractAddress

func (m *LegacyWasmDependencyMapping) GetContractAddress() string

func (*LegacyWasmDependencyMapping) GetEnabled

func (m *LegacyWasmDependencyMapping) GetEnabled() bool

func (*LegacyWasmDependencyMapping) GetResetReason

func (m *LegacyWasmDependencyMapping) GetResetReason() string

func (*LegacyWasmDependencyMapping) Marshal

func (m *LegacyWasmDependencyMapping) Marshal() (dAtA []byte, err error)

func (*LegacyWasmDependencyMapping) MarshalTo

func (m *LegacyWasmDependencyMapping) MarshalTo(dAtA []byte) (int, error)

func (*LegacyWasmDependencyMapping) MarshalToSizedBuffer

func (m *LegacyWasmDependencyMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*LegacyWasmDependencyMapping) ProtoMessage

func (*LegacyWasmDependencyMapping) ProtoMessage()

func (*LegacyWasmDependencyMapping) Reset

func (m *LegacyWasmDependencyMapping) Reset()

func (*LegacyWasmDependencyMapping) Size

func (m *LegacyWasmDependencyMapping) Size() (n int)

func (*LegacyWasmDependencyMapping) String

func (m *LegacyWasmDependencyMapping) String() string

func (*LegacyWasmDependencyMapping) Unmarshal

func (m *LegacyWasmDependencyMapping) Unmarshal(dAtA []byte) error

func (*LegacyWasmDependencyMapping) XXX_DiscardUnknown

func (m *LegacyWasmDependencyMapping) XXX_DiscardUnknown()

func (*LegacyWasmDependencyMapping) XXX_Marshal

func (m *LegacyWasmDependencyMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LegacyWasmDependencyMapping) XXX_Merge

func (m *LegacyWasmDependencyMapping) XXX_Merge(src proto.Message)

func (*LegacyWasmDependencyMapping) XXX_Size

func (m *LegacyWasmDependencyMapping) XXX_Size() int

func (*LegacyWasmDependencyMapping) XXX_Unmarshal

func (m *LegacyWasmDependencyMapping) XXX_Unmarshal(b []byte) error

type MessageAccessOpsChannelMapping

type MessageAccessOpsChannelMapping = map[int]AccessOpsChannelMapping

Alias for Map of MessageIndex -> AccessOperation -> Channel

type MessageDependencyMapping

type MessageDependencyMapping struct {
	MessageKey     string            `protobuf:"bytes,1,opt,name=message_key,json=messageKey,proto3" json:"message_key,omitempty"`
	AccessOps      []AccessOperation `protobuf:"bytes,2,rep,name=access_ops,json=accessOps,proto3" json:"access_ops"`
	DynamicEnabled bool              `protobuf:"varint,3,opt,name=dynamic_enabled,json=dynamicEnabled,proto3" json:"dynamic_enabled,omitempty"`
}

func (*MessageDependencyMapping) Descriptor

func (*MessageDependencyMapping) Descriptor() ([]byte, []int)

func (*MessageDependencyMapping) GetAccessOps

func (m *MessageDependencyMapping) GetAccessOps() []AccessOperation

func (*MessageDependencyMapping) GetDynamicEnabled

func (m *MessageDependencyMapping) GetDynamicEnabled() bool

func (*MessageDependencyMapping) GetMessageKey

func (m *MessageDependencyMapping) GetMessageKey() string

func (*MessageDependencyMapping) Marshal

func (m *MessageDependencyMapping) Marshal() (dAtA []byte, err error)

func (*MessageDependencyMapping) MarshalTo

func (m *MessageDependencyMapping) MarshalTo(dAtA []byte) (int, error)

func (*MessageDependencyMapping) MarshalToSizedBuffer

func (m *MessageDependencyMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MessageDependencyMapping) ProtoMessage

func (*MessageDependencyMapping) ProtoMessage()

func (*MessageDependencyMapping) Reset

func (m *MessageDependencyMapping) Reset()

func (*MessageDependencyMapping) Size

func (m *MessageDependencyMapping) Size() (n int)

func (*MessageDependencyMapping) String

func (m *MessageDependencyMapping) String() string

func (*MessageDependencyMapping) Unmarshal

func (m *MessageDependencyMapping) Unmarshal(dAtA []byte) error

func (*MessageDependencyMapping) XXX_DiscardUnknown

func (m *MessageDependencyMapping) XXX_DiscardUnknown()

func (*MessageDependencyMapping) XXX_Marshal

func (m *MessageDependencyMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MessageDependencyMapping) XXX_Merge

func (m *MessageDependencyMapping) XXX_Merge(src proto.Message)

func (*MessageDependencyMapping) XXX_Size

func (m *MessageDependencyMapping) XXX_Size() int

func (*MessageDependencyMapping) XXX_Unmarshal

func (m *MessageDependencyMapping) XXX_Unmarshal(b []byte) error

type MsgValidator

type MsgValidator struct {
	// contains filtered or unexported fields
}

func NewMsgValidator

func NewMsgValidator(storeKeyToResourceTypePrefixMap StoreKeyToResourceTypePrefixMap) *MsgValidator

func (*MsgValidator) GetPrefix

func (validator *MsgValidator) GetPrefix(storeKey string, resourceType ResourceType) ([]byte, bool)

GetPrefix tries to get the prefix for the ResourceType from the StoreKey Mapping and the default mapping, if it doesn't exist in either then it will return a nil, false

func (*MsgValidator) ValidateAccessOperations

func (validator *MsgValidator) ValidateAccessOperations(accessOps []AccessOperation, events []abci.Event) map[Comparator]bool

ValidateAccessOperations compares a list of events and a predefined list of access operations and determines if all the events that occurred are represented in the accessOperations

type ResourceType

type ResourceType int32
const (
	ResourceType_ANY                                      ResourceType = 0
	ResourceType_KV                                       ResourceType = 1
	ResourceType_Mem                                      ResourceType = 2
	ResourceType_KV_BANK                                  ResourceType = 4
	ResourceType_KV_STAKING                               ResourceType = 5
	ResourceType_KV_WASM                                  ResourceType = 6
	ResourceType_KV_ORACLE                                ResourceType = 7
	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
	ResourceType_KV_STAKING_VALIDATORS_BY_POWER           ResourceType = 41
	ResourceType_KV_DISTRIBUTION                          ResourceType = 40
	ResourceType_KV_DISTRIBUTION_FEE_POOL                 ResourceType = 42
	ResourceType_KV_DISTRIBUTION_PROPOSER_KEY             ResourceType = 43
	ResourceType_KV_DISTRIBUTION_OUTSTANDING_REWARDS      ResourceType = 44
	ResourceType_KV_DISTRIBUTION_DELEGATOR_WITHDRAW_ADDR  ResourceType = 45
	ResourceType_KV_DISTRIBUTION_DELEGATOR_STARTING_INFO  ResourceType = 46
	ResourceType_KV_DISTRIBUTION_VAL_HISTORICAL_REWARDS   ResourceType = 47
	ResourceType_KV_DISTRIBUTION_VAL_CURRENT_REWARDS      ResourceType = 48
	ResourceType_KV_DISTRIBUTION_VAL_ACCUM_COMMISSION     ResourceType = 49
	ResourceType_KV_DISTRIBUTION_SLASH_EVENT              ResourceType = 50
	ResourceType_KV_ACCESSCONTROL                         ResourceType = 71
	ResourceType_KV_ACCESSCONTROL_WASM_DEPENDENCY_MAPPING ResourceType = 72
	ResourceType_KV_WASM_CODE                             ResourceType = 73
	ResourceType_KV_WASM_CONTRACT_ADDRESS                 ResourceType = 74
	ResourceType_KV_WASM_CONTRACT_STORE                   ResourceType = 75
	ResourceType_KV_WASM_SEQUENCE_KEY                     ResourceType = 76
	ResourceType_KV_WASM_CONTRACT_CODE_HISTORY            ResourceType = 77
	ResourceType_KV_WASM_CONTRACT_BY_CODE_ID              ResourceType = 78
	ResourceType_KV_WASM_PINNED_CODE_INDEX                ResourceType = 79
	ResourceType_KV_AUTH_GLOBAL_ACCOUNT_NUMBER            ResourceType = 80
	ResourceType_KV_AUTHZ                                 ResourceType = 81
	ResourceType_KV_FEEGRANT                              ResourceType = 82
	ResourceType_KV_FEEGRANT_ALLOWANCE                    ResourceType = 83
	ResourceType_KV_SLASHING                              ResourceType = 84
	ResourceType_KV_SLASHING_VAL_SIGNING_INFO             ResourceType = 85
	ResourceType_KV_SLASHING_ADDR_PUBKEY_RELATION_KEY     ResourceType = 86
	ResourceType_KV_BANK_DEFERRED                         ResourceType = 93
	ResourceType_KV_BANK_DEFERRED_MODULE_TX_INDEX         ResourceType = 95
	ResourceType_KV_EVM                                   ResourceType = 96
	ResourceType_KV_EVM_BALANCE                           ResourceType = 97
	ResourceType_KV_EVM_TRANSIENT                         ResourceType = 98
	ResourceType_KV_EVM_ACCOUNT_TRANSIENT                 ResourceType = 99
	ResourceType_KV_EVM_MODULE_TRANSIENT                  ResourceType = 100
	ResourceType_KV_EVM_NONCE                             ResourceType = 101
	ResourceType_KV_EVM_RECEIPT                           ResourceType = 102
	ResourceType_KV_EVM_S2E                               ResourceType = 103
	ResourceType_KV_EVM_E2S                               ResourceType = 104
	ResourceType_KV_EVM_CODE_HASH                         ResourceType = 105
	ResourceType_KV_EVM_CODE                              ResourceType = 106
	ResourceType_KV_EVM_CODE_SIZE                         ResourceType = 107
	ResourceType_KV_BANK_WEI_BALANCE                      ResourceType = 108
	ResourceType_KV_CT                                    ResourceType = 111
	ResourceType_KV_CT_ACCOUNT                            ResourceType = 112
)

func (ResourceType) EnumDescriptor

func (ResourceType) EnumDescriptor() ([]byte, []int)

func (ResourceType) GetParentResources

func (r ResourceType) GetParentResources() []ResourceType

func (ResourceType) GetResourceDependencies

func (r ResourceType) GetResourceDependencies() []ResourceType

This returns a slice of all resource types that are dependent to a specific resource type Travel up the parents to add them all, and add all children as well. TODO: alternatively, hardcode all dependencies (parent and children) for a specific resource type, so we don't need to do a traversal when building dag

func (ResourceType) HasChildren

func (r ResourceType) HasChildren() bool

func (ResourceType) String

func (x ResourceType) String() string

type ResourceTypeToStoreKeyMap

type ResourceTypeToStoreKeyMap map[ResourceType]string

type StoreKeyToResourceTypePrefixMap

type StoreKeyToResourceTypePrefixMap map[string]map[ResourceType][]byte

func DefaultStoreKeyToResourceTypePrefixMap

func DefaultStoreKeyToResourceTypePrefixMap() StoreKeyToResourceTypePrefixMap

type TreeNode

type TreeNode struct {
	Parent   ResourceType
	Children []ResourceType
}

type WasmAccessOperation

type WasmAccessOperation struct {
	Operation    *AccessOperation            `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"`
	SelectorType AccessOperationSelectorType `` /* 160-byte string literal not displayed */
	Selector     string                      `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
}

func (*WasmAccessOperation) Descriptor

func (*WasmAccessOperation) Descriptor() ([]byte, []int)

func (*WasmAccessOperation) GetOperation

func (m *WasmAccessOperation) GetOperation() *AccessOperation

func (*WasmAccessOperation) GetSelector

func (m *WasmAccessOperation) GetSelector() string

func (*WasmAccessOperation) GetSelectorType

func (m *WasmAccessOperation) GetSelectorType() AccessOperationSelectorType

func (*WasmAccessOperation) Marshal

func (m *WasmAccessOperation) Marshal() (dAtA []byte, err error)

func (*WasmAccessOperation) MarshalTo

func (m *WasmAccessOperation) MarshalTo(dAtA []byte) (int, error)

func (*WasmAccessOperation) MarshalToSizedBuffer

func (m *WasmAccessOperation) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WasmAccessOperation) ProtoMessage

func (*WasmAccessOperation) ProtoMessage()

func (*WasmAccessOperation) Reset

func (m *WasmAccessOperation) Reset()

func (*WasmAccessOperation) Size

func (m *WasmAccessOperation) Size() (n int)

func (*WasmAccessOperation) String

func (m *WasmAccessOperation) String() string

func (*WasmAccessOperation) Unmarshal

func (m *WasmAccessOperation) Unmarshal(dAtA []byte) error

func (*WasmAccessOperation) XXX_DiscardUnknown

func (m *WasmAccessOperation) XXX_DiscardUnknown()

func (*WasmAccessOperation) XXX_Marshal

func (m *WasmAccessOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmAccessOperation) XXX_Merge

func (m *WasmAccessOperation) XXX_Merge(src proto.Message)

func (*WasmAccessOperation) XXX_Size

func (m *WasmAccessOperation) XXX_Size() int

func (*WasmAccessOperation) XXX_Unmarshal

func (m *WasmAccessOperation) XXX_Unmarshal(b []byte) error

type WasmAccessOperations

type WasmAccessOperations struct {
	MessageName    string                 `protobuf:"bytes,1,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
	WasmOperations []*WasmAccessOperation `protobuf:"bytes,2,rep,name=wasm_operations,json=wasmOperations,proto3" json:"wasm_operations,omitempty"`
}

func (*WasmAccessOperations) Descriptor

func (*WasmAccessOperations) Descriptor() ([]byte, []int)

func (*WasmAccessOperations) GetMessageName

func (m *WasmAccessOperations) GetMessageName() string

func (*WasmAccessOperations) GetWasmOperations

func (m *WasmAccessOperations) GetWasmOperations() []*WasmAccessOperation

func (*WasmAccessOperations) Marshal

func (m *WasmAccessOperations) Marshal() (dAtA []byte, err error)

func (*WasmAccessOperations) MarshalTo

func (m *WasmAccessOperations) MarshalTo(dAtA []byte) (int, error)

func (*WasmAccessOperations) MarshalToSizedBuffer

func (m *WasmAccessOperations) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WasmAccessOperations) ProtoMessage

func (*WasmAccessOperations) ProtoMessage()

func (*WasmAccessOperations) Reset

func (m *WasmAccessOperations) Reset()

func (*WasmAccessOperations) Size

func (m *WasmAccessOperations) Size() (n int)

func (*WasmAccessOperations) String

func (m *WasmAccessOperations) String() string

func (*WasmAccessOperations) Unmarshal

func (m *WasmAccessOperations) Unmarshal(dAtA []byte) error

func (*WasmAccessOperations) XXX_DiscardUnknown

func (m *WasmAccessOperations) XXX_DiscardUnknown()

func (*WasmAccessOperations) XXX_Marshal

func (m *WasmAccessOperations) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmAccessOperations) XXX_Merge

func (m *WasmAccessOperations) XXX_Merge(src proto.Message)

func (*WasmAccessOperations) XXX_Size

func (m *WasmAccessOperations) XXX_Size() int

func (*WasmAccessOperations) XXX_Unmarshal

func (m *WasmAccessOperations) XXX_Unmarshal(b []byte) error

type WasmContractReference

type WasmContractReference struct {
	ContractAddress         string             `protobuf:"bytes,1,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
	MessageType             WasmMessageSubtype `` /* 148-byte string literal not displayed */
	MessageName             string             `protobuf:"bytes,3,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
	JsonTranslationTemplate string             `` /* 132-byte string literal not displayed */
}

func (*WasmContractReference) Descriptor

func (*WasmContractReference) Descriptor() ([]byte, []int)

func (*WasmContractReference) GetContractAddress

func (m *WasmContractReference) GetContractAddress() string

func (*WasmContractReference) GetJsonTranslationTemplate

func (m *WasmContractReference) GetJsonTranslationTemplate() string

func (*WasmContractReference) GetMessageName

func (m *WasmContractReference) GetMessageName() string

func (*WasmContractReference) GetMessageType

func (m *WasmContractReference) GetMessageType() WasmMessageSubtype

func (*WasmContractReference) Marshal

func (m *WasmContractReference) Marshal() (dAtA []byte, err error)

func (*WasmContractReference) MarshalTo

func (m *WasmContractReference) MarshalTo(dAtA []byte) (int, error)

func (*WasmContractReference) MarshalToSizedBuffer

func (m *WasmContractReference) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WasmContractReference) ProtoMessage

func (*WasmContractReference) ProtoMessage()

func (*WasmContractReference) Reset

func (m *WasmContractReference) Reset()

func (*WasmContractReference) Size

func (m *WasmContractReference) Size() (n int)

func (*WasmContractReference) String

func (m *WasmContractReference) String() string

func (*WasmContractReference) Unmarshal

func (m *WasmContractReference) Unmarshal(dAtA []byte) error

func (*WasmContractReference) XXX_DiscardUnknown

func (m *WasmContractReference) XXX_DiscardUnknown()

func (*WasmContractReference) XXX_Marshal

func (m *WasmContractReference) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmContractReference) XXX_Merge

func (m *WasmContractReference) XXX_Merge(src proto.Message)

func (*WasmContractReference) XXX_Size

func (m *WasmContractReference) XXX_Size() int

func (*WasmContractReference) XXX_Unmarshal

func (m *WasmContractReference) XXX_Unmarshal(b []byte) error

type WasmContractReferences

type WasmContractReferences struct {
	MessageName        string                   `protobuf:"bytes,1,opt,name=message_name,json=messageName,proto3" json:"message_name,omitempty"`
	ContractReferences []*WasmContractReference `protobuf:"bytes,2,rep,name=contract_references,json=contractReferences,proto3" json:"contract_references,omitempty"`
}

func (*WasmContractReferences) Descriptor

func (*WasmContractReferences) Descriptor() ([]byte, []int)

func (*WasmContractReferences) GetContractReferences

func (m *WasmContractReferences) GetContractReferences() []*WasmContractReference

func (*WasmContractReferences) GetMessageName

func (m *WasmContractReferences) GetMessageName() string

func (*WasmContractReferences) Marshal

func (m *WasmContractReferences) Marshal() (dAtA []byte, err error)

func (*WasmContractReferences) MarshalTo

func (m *WasmContractReferences) MarshalTo(dAtA []byte) (int, error)

func (*WasmContractReferences) MarshalToSizedBuffer

func (m *WasmContractReferences) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WasmContractReferences) ProtoMessage

func (*WasmContractReferences) ProtoMessage()

func (*WasmContractReferences) Reset

func (m *WasmContractReferences) Reset()

func (*WasmContractReferences) Size

func (m *WasmContractReferences) Size() (n int)

func (*WasmContractReferences) String

func (m *WasmContractReferences) String() string

func (*WasmContractReferences) Unmarshal

func (m *WasmContractReferences) Unmarshal(dAtA []byte) error

func (*WasmContractReferences) XXX_DiscardUnknown

func (m *WasmContractReferences) XXX_DiscardUnknown()

func (*WasmContractReferences) XXX_Marshal

func (m *WasmContractReferences) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmContractReferences) XXX_Merge

func (m *WasmContractReferences) XXX_Merge(src proto.Message)

func (*WasmContractReferences) XXX_Size

func (m *WasmContractReferences) XXX_Size() int

func (*WasmContractReferences) XXX_Unmarshal

func (m *WasmContractReferences) XXX_Unmarshal(b []byte) error

type WasmDependencyMapping

type WasmDependencyMapping struct {
	BaseAccessOps             []*WasmAccessOperation    `protobuf:"bytes,1,rep,name=base_access_ops,json=baseAccessOps,proto3" json:"base_access_ops,omitempty"`
	QueryAccessOps            []*WasmAccessOperations   `protobuf:"bytes,2,rep,name=query_access_ops,json=queryAccessOps,proto3" json:"query_access_ops,omitempty"`
	ExecuteAccessOps          []*WasmAccessOperations   `protobuf:"bytes,3,rep,name=execute_access_ops,json=executeAccessOps,proto3" json:"execute_access_ops,omitempty"`
	BaseContractReferences    []*WasmContractReference  `` /* 129-byte string literal not displayed */
	QueryContractReferences   []*WasmContractReferences `` /* 132-byte string literal not displayed */
	ExecuteContractReferences []*WasmContractReferences `` /* 138-byte string literal not displayed */
	ResetReason               string                    `protobuf:"bytes,7,opt,name=reset_reason,json=resetReason,proto3" json:"reset_reason,omitempty"`
	ContractAddress           string                    `protobuf:"bytes,8,opt,name=contract_address,json=contractAddress,proto3" json:"contract_address,omitempty"`
}

func (*WasmDependencyMapping) Descriptor

func (*WasmDependencyMapping) Descriptor() ([]byte, []int)

func (*WasmDependencyMapping) GetBaseAccessOps

func (m *WasmDependencyMapping) GetBaseAccessOps() []*WasmAccessOperation

func (*WasmDependencyMapping) GetBaseContractReferences

func (m *WasmDependencyMapping) GetBaseContractReferences() []*WasmContractReference

func (*WasmDependencyMapping) GetContractAddress

func (m *WasmDependencyMapping) GetContractAddress() string

func (*WasmDependencyMapping) GetExecuteAccessOps

func (m *WasmDependencyMapping) GetExecuteAccessOps() []*WasmAccessOperations

func (*WasmDependencyMapping) GetExecuteContractReferences

func (m *WasmDependencyMapping) GetExecuteContractReferences() []*WasmContractReferences

func (*WasmDependencyMapping) GetQueryAccessOps

func (m *WasmDependencyMapping) GetQueryAccessOps() []*WasmAccessOperations

func (*WasmDependencyMapping) GetQueryContractReferences

func (m *WasmDependencyMapping) GetQueryContractReferences() []*WasmContractReferences

func (*WasmDependencyMapping) GetResetReason

func (m *WasmDependencyMapping) GetResetReason() string

func (*WasmDependencyMapping) Marshal

func (m *WasmDependencyMapping) Marshal() (dAtA []byte, err error)

func (*WasmDependencyMapping) MarshalTo

func (m *WasmDependencyMapping) MarshalTo(dAtA []byte) (int, error)

func (*WasmDependencyMapping) MarshalToSizedBuffer

func (m *WasmDependencyMapping) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WasmDependencyMapping) ProtoMessage

func (*WasmDependencyMapping) ProtoMessage()

func (*WasmDependencyMapping) Reset

func (m *WasmDependencyMapping) Reset()

func (*WasmDependencyMapping) Size

func (m *WasmDependencyMapping) Size() (n int)

func (*WasmDependencyMapping) String

func (m *WasmDependencyMapping) String() string

func (*WasmDependencyMapping) Unmarshal

func (m *WasmDependencyMapping) Unmarshal(dAtA []byte) error

func (*WasmDependencyMapping) XXX_DiscardUnknown

func (m *WasmDependencyMapping) XXX_DiscardUnknown()

func (*WasmDependencyMapping) XXX_Marshal

func (m *WasmDependencyMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmDependencyMapping) XXX_Merge

func (m *WasmDependencyMapping) XXX_Merge(src proto.Message)

func (*WasmDependencyMapping) XXX_Size

func (m *WasmDependencyMapping) XXX_Size() int

func (*WasmDependencyMapping) XXX_Unmarshal

func (m *WasmDependencyMapping) XXX_Unmarshal(b []byte) error

type WasmMessageSubtype

type WasmMessageSubtype int32
const (
	WasmMessageSubtype_QUERY   WasmMessageSubtype = 0
	WasmMessageSubtype_EXECUTE WasmMessageSubtype = 1
)

func (WasmMessageSubtype) EnumDescriptor

func (WasmMessageSubtype) EnumDescriptor() ([]byte, []int)

func (WasmMessageSubtype) String

func (x WasmMessageSubtype) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL