#39·Whitelist call for `MessagingIncentives.setMintPerByte`

29d ago
0 Comments
Executed

This motion whitelists the MessagingIncentives.setMintPerByte call so it can be dispatched via the Whitelisted Caller track on OpenGov.

Call Details

  • Call: Whitelist.whitelistCall(callHash) (pallet index 83, call index 0)
  • Whitelisted call: MessagingIncentives.setMintPerByte(amount) (pallet index 92, call index 0)
  • Encoded call: 0x5c000010a5d4e80000000000000000000000
  • Call hash (keccak-256): 0x1ff380abeb9a3a1c6086a3bf8355efd32077b727d1781cf89b51a7bc59a74f11
  • Encoded Whitelist.whitelistCall: 0x53001ff380abeb9a3a1c6086a3bf8355efd32077b727d1781cf89b51a7bc59a74f11

What This Does

Sets the reputation mint rate to 1 reputation token per byte of delivered payload.

  • amount: 1000000000000 (1e12)

pallet-messaging-incentives mints reputation tokens to the relayer that delivered each message, scaled by message size: amount = MintPerByte * bytes. The rate is currently unset, which reads as zero and disables minting entirely. This proposal turns minting on.

Mint sizing

Byte counts use max(body_len, 32) per request, the same floor as the bandwidth gate. The floor is applied per request rather than per envelope so that packing requests together and splitting them across envelopes produce identical mints. At 1e12 per byte:

Payload Reputation minted
32 bytes (at or below the floor) 32 tokens
256 bytes 256 tokens
1 KB ~1,024 tokens
Edited
Reply
Up
Share
This vote has been closed.
Call
Metadata
Timeline4
Comments