First Statemint HRMP Channels
Democracy
0 Comments
Executed

So far, five parachains have requested an HRMP channel with Statemint. This motion accepts them all and opens return channels.

Opening Notes

Handy Info

  • Treasury Address: 13UVJyLnbVp9RBZYFwFGyDvVd1y27Tt8tkntv6Q7JVPhFsTB
  • Treasury AccountId: 0x6d6f646c70792f74727372790000000000000000000000000000000000000000
  • Statemint Address: 13YMK2edbuhwMBxeUWm9c643A2wyYHwSVh1bCM7tShtg7Dtk
  • Statemint AccountId: 0x70617261e8030000000000000000000000000000000000000000000000000000

Parachains that want channels

  • 2011
  • 2000
  • 2004
  • 2006
  • 2012

Channel Config

  • maxCapacity: 1,000
  • maxTotalSize: 102,400

HRMP Config

  • hrmpSenderDeposit: 100,000,000,000
  • hrmpRecipientDeposit: 100,000,000,000

Call Construction

These are constructed backwards. That is, the call to use as the proposal is at the end.

Relay Chain Call to Execute

First, we need the call that Statemint will execute on the Relay Chain. This accepts all channel requests and returns channel requests to the initiators.


Encoded Call Data:

0x1a02283c01db0700003c01d00700003c01d40700003c01d60700003c01dc0700003c00db070000e8030000009001003c00d0070000e8030000009001003c00d4070000e8030000009001003c00d6070000e8030000009001003c00dc070000e803000000900100

Message from Statemint

The above message needs to come from Statemint. So we put it into an XCM (the "Transact" instruction) along with purchasing some execution capacity and returning any leftover fees to the Treasury.


Encoded Call Data:

0x1f0001010002140004000000000700c817a80413000000000700c817a80400060002286bee9d011a02283c01db0700003c01d00700003c01d40700003c01d60700003c01dc0700003c00db070000e8030000009001003c00d0070000e8030000009001003c00d4070000e8030000009001003c00d6070000e8030000009001003c00dc070000e803000000900100140d01010000000004000101006d6f646c70792f74727372790000000000000000000000000000000000000000

Proposal on the Relay Chain

But, governance is on the Relay Chain, not Statemint. So take some DOT from the Treasury (100 DOT for 10 channels at 10 DOT each plus 2 DOT for fees) and send a message to Statemint telling it to send a message back. This is the proposal to vote on.

Encoded Call Data:

0x1a02080502006d6f646c70792f747273727900000000000000000000000000000000000000000070617261e80300000000000000000000000000000000000000000000000000000700d8bc7ced630001000100a10f0204060202286beeed021f0001010002140004000000000700c817a80413000000000700c817a80400060002286bee9d011a02283c01db0700003c01d00700003c01d40700003c01d60700003c01dc0700003c00db070000e8030000009001003c00d0070000e8030000009001003c00d4070000e8030000009001003c00d6070000e8030000009001003c00dc070000e803000000900100140d01010000000004000101006d6f646c70792f74727372790000000000000000000000000000000000000000

Call Hash:

0x6306b068f6a71eb1db5abd9609a0ffbbe7c441c9144ecf8a49e7c2bc19f7f6e9

Appendix: Relevant Storage Items

configuration.activeConfig: PolkadotRuntimeParachainsConfigurationHostConfiguration

{
  maxCodeSize: 10,485,760
  maxHeadDataSize: 20,480
  maxUpwardQueueCount: 10
  maxUpwardQueueSize: 51,200
  maxUpwardMessageSize: 51,200
  maxUpwardMessageNumPerCandidate: 10
  hrmpMaxMessageNumPerCandidate: 10
  validationUpgradeCooldown: 14,400
  validationUpgradeDelay: 600
  maxPovSize: 5,242,880
  maxDownwardMessageSize: 51,200
  umpServiceTotalWeight: 100,000,000,000
  hrmpMaxParachainOutboundChannels: 10
  hrmpMaxParathreadOutboundChannels: 0
  hrmpSenderDeposit: 100,000,000,000
  hrmpRecipientDeposit: 100,000,000,000
  hrmpChannelMaxCapacity: 1,000
  hrmpChannelMaxTotalSize: 102,400
  hrmpMaxParachainInboundChannels: 10
  hrmpMaxParathreadInboundChannels: 0
  hrmpChannelMaxMessageSize: 102,400
  codeRetentionPeriod: 14,400
  parathreadCores: 0
  parathreadRetries: 0
  groupRotationFrequency: 10
  chainAvailabilityPeriod: 10
  threadAvailabilityPeriod: 10
  schedulingLookahead: 1
  maxValidatorsPerCore: 5
  maxValidators: 200
  disputePeriod: 6
  disputePostConclusionAcceptancePeriod: 600
  disputeMaxSpamSlots: 2
  disputeConclusionByTimeOutPeriod: 600
  noShowSlots: 2
  nDelayTranches: 89
  zerothDelayTrancheWidth: 0
  neededApprovals: 30
  relayVrfModuloSamples: 40
  umpMaxIndividualWeight: 20,000,000,000
  pvfCheckingEnabled: false
  pvfVotingTtl: 2
  minimumValidationUpgradeDelay: 20
}

hrmp.hrmpOpenChannelRequests: Option<PolkadotRuntimeParachainsHrmpHrmpOpenChannelRequest>

[
  [
    [
      {
        sender: 2,011
        recipient: 1,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,000
        recipient: 2,035
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,000
        recipient: 2,034
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,000
        recipient: 2,032
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,012
        recipient: 2,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,000
        recipient: 1,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,004
        recipient: 1,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,006
        recipient: 1,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
  [
    [
      {
        sender: 2,012
        recipient: 1,000
      }
    ]
    {
      confirmed: false
      age: 0
      senderDeposit: 100,000,000,000
      maxMessageSize: 102,400
      maxCapacity: 1,000
      maxTotalSize: 102,400
    }
  ]
]
Polkassembly
Reply
Up
Share
Votes
50%Aye
50%Nay
Aye
0 DOT
Nay
0 DOT
Turnout
0 DOT
Electorate
0 DOT
Passed
Check all votes
Metadata
Proposer
Hash
Delay
02022-06-01 14:24:00
End
02022-06-01 13:23:00
Threshold
Call
Table
Json
callIndex0x1a02
sectionutility
methodbatchAll
args
calls
0
callIndex0x0502
sectionbalances
methodforceTransfer
args
source
id13UVJyLnbVp9RBZYFwFGyDvVd1y27Tt8tkntv6Q7JVPhFsTB
dest
id13YMK2edbuhwMBxeUWm9c643A2wyYHwSVh1bCM7tShtg7Dtk
value1020000000000
1
callIndex0x6300
sectionxcmPallet
methodsend
args
dest
v1
parents0
interior
x1
parachain1000
message
v2
transact
originTypeSuperuser
requireWeightAtMost1000000000
call
encoded0x1f0001010002140004000000000700c817a80413000000000700c817a80400060002286bee9d011a02283c01db0700003c01d00700003c01d40700003c01d60700003c01dc0700003c00db070000e8030000009001003c00d0070000e8030000009001003c00d4070000e8030000009001003c00d6070000e8030000009001003c00dc070000e803000000900100140d01010000000004000101006d6f646c70792f74727372790000000000000000000000000000000000000000
TimelineLatest activity undefined
2022-05-18 08:16:48
Started
referendumIndex
62
voteThreshold
SimpleMajority
2022-06-01 13:23:00
Passed
referendumIndex
62
2022-06-01 14:24:00
Executed
result
ok
Comments
SubSquare
Polkassembly
There are no comments here