Mars Protocol Code Review Breakdown — Session #1, Airdrop Contract

Introduction to the Airdrop Contract

  • InstantiateMsg — instantiates the contract
  • ExecuteMsg — actions that alter the contract state
  • SudoMsg — similar to ExecuteMsg, but only callable by the L1 governance module, and not by users or other contracts
  • QueryMsg — actions that are read-only, i.e. doesn’t change state
  • MigrateMsg — migrates and binary code of the contract

Coin Types

Merkle Proofs

Claim Function

"claim": {
"terra_acct_pk": "...",
"mars_acct": "...",
"amount": "...",
"proof": [
"signature": "..."

Clawback Function


What’s Next




Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store