Rivellum

Rivellum Portal

Download Wallet (Chrome)
Checking...
testnet

Mist Contract Lifecycle Reference

Production contract lifecycle on Rivellum.

Lifecycle States

StateEntryExitInvariants
SourceAuthor .mist filemistc check/lint passdeterministic semantics only
Bundlemistc build artifactmistc deploy acceptedhash-stable artifact
Deployedreceipt emittedupgrade/deprecate/freezeaddress immutable
Activecallable via mistc call or /v1/mist/call/:idgovernance/operator transitionreplay inputs available
Frozenpolicy/governance actionterminal unless policy changedno new writes

Build Surface

mistc check contracts/amm.mist
mistc lint contracts/amm.mist
mistc fees contracts/amm.mist
mistc build contracts/amm.mist -o build/amm.bundle.json

Deploy Surface

mistc deploy build/amm.bundle.json --rpc https://rpc.rivellum.network
curl https://rpc.rivellum.network/v1/mist/contract/CONTRACT_ID

Call Surface

mistc call CONTRACT_ID swap '{"in_asset":"0x...","out_asset":"0x...","amount_in":"1000000"}' --rpc https://rpc.rivellum.network

Equivalent RPC:

curl -X POST https://rpc.rivellum.network/v1/mist/call/CONTRACT_ID \
  -H "Content-Type: application/json" \
  -d '{"fn":"swap","args":{"in_asset":"0x...","out_asset":"0x...","amount_in":"1000000"}}'

Receipt And Replay Artifacts

ArtifactEndpoint / Command
Receiptmistc receipt RECEIPT_ID --rpc ... or GET /v1/mist/receipts/:id
PVI graphGET /v1/mist/pvi/:id
Replay inputGET /v1/mist/replay_inputs/:id
Deterministic replaymistc replay RECEIPT_ID --rpc ...

Upgrade / Compatibility Discipline

  1. Never change event schema in place without versioning.
  2. Introduce new entrypoints instead of mutating old call contracts.
  3. Keep old readers operational until indexers/frontends migrate.
  4. Preserve deterministic call shape for fee stability.

Integration Hooks

  • Event readers: GET /v1/events/query + /events/stream
  • Frontend state hydration: receipt ID + typed event reducer
  • Incident forensics: receipt + pvi + replay_inputs

Related References

  • /docs/dev/mist-toolchain
  • /docs/dev/debugging-replay
  • /docs/dev/fee-planning