Some of our current eventAttribute keys do not match this regex format ([a-zA-Z_]+) and so queries using these keys are rejected with an "incorrect format" error.
This PR changes those event attribute keys to match the expected regex format. I've checked through our modules events.go and keys.go files and all the events in the dex, incentives, epochs pass the regex.
To search chain transactions: event queries in the form
{eventType}.{eventAttribute}={value}
are used in the services:[RPC]:26657/tx_search?query=[query]
: https://docs.cometbft.com/v0.37/rpc/#/Info/tx_search[LCD]:1317/cosmos/tx/v1beta1/txs?events=[query]
: https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/proto/cosmos/tx/v1beta1/service.proto#L33-L36The format of expected event queries from our current CosmosSDK usage (v0.47.3) is
^[a-zA-Z_]+\.[a-zA-Z_]+=\S+$
as defined in https://github.com/cosmos/cosmos-sdk/blob/v0.47.3/x/auth/tx/service.go#L48Some of our current
eventAttribute
keys do not match this regex format ([a-zA-Z_]+
) and so queries using these keys are rejected with an "incorrect format" error.This fix was not needed prior to CosmosSDK 0.47.x because this check has only been asserted since CosmosSDK v0.47.0: https://github.com/cosmos/cosmos-sdk/commit/18da0e9c15e0210fdd289e3f1f0f5fefe3f6b72a#diff-53f84248611b4e705fd4106d3f6f46eed9258656b0b3db22bd56fdde5628cebdR47
This PR changes those event attribute keys to match the expected regex format. I've checked through our modules events.go and keys.go files and all the events in the dex, incentives, epochs pass the regex.