Completes the tokenfactory tx-submittability work. The generated proto
descriptor + handler-registration fixes landed in ad6a7ec0 (layers 1-2);
this finishes the remaining layers and validates the whole path on a live
node.
- Client-side decode (layer 4): `clawchaind query tx`, block explorers, and
tx history failed with "unable to resolve type URL
/osmosis.tokenfactory.v1beta1.Msg*". The module is wired manually
(app/tokenfactory.go), so app.RegisterModules registers its interfaces on
the server registry, but the depinject-built client registry in root.go
never saw them. Now ProvideClientContext calls
tokenfactorytypes.RegisterInterfaces.
- Block inclusion (layer 3) confirmed resolved: the earlier "txs pass CheckTx
but are excluded from proposals" symptom was the first (hand-built)
descriptor omitting the cosmos.msg.v1.signer option, so the proposal-path
ante handler could not resolve the signer. The properly generated
descriptor in descriptor.go carries the signer option; a stale untracked
tx_descriptor.go that shadowed it was removed.
- Regression test: x/tokenfactory/types/descriptor_test.go reproduces the
original "does not have a Descriptor() method" failure and asserts
RejectUnknownFields accepts a valid MsgMint (Coin submessage included).
Proven end-to-end on the live local node as real signed CLI txs:
create-denom (code 0) -> mint 1000000 (balance 1000000) -> burn 400000
(balance 600000); query tx now decodes the messages. The hand-written
Marshal/Unmarshal and ProtoCoin in msgs.go are unchanged, preserving the
validated Astroport-DEX Stargate wire path and all existing tests.
The hand-crafted Osmosis-compatible msg types were broken at several layers;
this fixes the first two so tokenfactory txs decode and resolve a handler:
1. Decode: add a real proto file descriptor + Descriptor() methods
(types/descriptor.go, from a new proto/osmosis/tokenfactory/v1beta1/tx.proto)
carrying the cosmos.msg.v1.signer and cosmos.msg.v1.service options. Fixes
"*types.MsgCreateDenom does not have a Descriptor() method".
2. Handler registration: AppModule.RegisterServices type-asserted the registrar
to module.Configurator, which the depinject runtime does not pass, so no msg
handlers were registered ("no message handler found"). Register directly on
the grpc.ServiceRegistrar. CheckTx now passes.
A third, deeper layer remains: create-denom/mint pass CheckTx but are silently
excluded from block proposals and never commit (a signer/ante incompatibility
from the hand-crafted types). Normal txs commit fine. The clean fix is a full
proto regeneration of the module. Documented in the readiness plan (Gap C).
Add x/tokenfactory/client/cli/tx.go (GetTxCmd with create-denom/mint/burn) and
wire it into the root tx command, so the subcommands now appear under
`clawchaind tx tokenfactory`.
Doing so surfaced a deeper, real gap: the hand-crafted Osmosis-compatible msg
types (MsgCreateDenom/Mint/Burn) implement Marshal/Unmarshal but have no proto
Descriptor() method, so submitting them fails at decode time
("*types.MsgCreateDenom does not have a Descriptor() method"). The module is
unit-tested but its messages are not tx-submittable by the standard codec. The
CLI scaffolding is ready; the actual blocker is generating proper proto
descriptors for these types. Documented in the readiness plan (Gap C update).
Captures the bottom-line finding (chain could not boot; test suite vacuously
skipped construction failures), the live-chain proof of what now works, and a
concrete, file-grounded remediation plan for the four remaining gaps (privacy dev
VKs, oracle Msg annotation, tokenfactory CLI, un-masked app-test cascade) with
root causes, steps, acceptance criteria, effort, risk, and a recommended sequence.
- docs/blockchain-liveness-evidence.md: reproducible proof the chain boots,
produces blocks, and processes real txs through core SDK + custom modules
(bank, staking, distribution, governance incl. fail-closed voting, marketplace,
messaging). Records the 4 boot bugs and the test-suite vacuous-skip masking.
- test_helpers.go: fund the bonded pool module account in the synthetic test
genesis so staking InitGenesis accepts it (the broken app was masking this).