Skip to content

KiltTransferAssetRecipientV2 - v2.0.0

Latest
Compare
Choose a tag to compare
@ntn-x2 ntn-x2 released this 16 May 13:04
· 3 commits to main since this release
2.0.0
b38ef0c

A new version of the KiltTransferAssetRecipient service type: KiltTransferAssetRecipientV2!
It introduces JSON canonicalisation of the document as specified in the IETF RFC8785.

Hence, a former KiltTransferAssetRecipientV1 service:

{
  "polkadot:91b171bb158e2d3848fa23a9f1c25182/slip44:354": [
    {
      "account": "15BQbTH5bKH63WCXTMPxbmpnWeXKpfuTKbpDkfFLXMPvpxD3",
      "description": "Personal account"
    }
  ],
  "polkadot:411f057b9107718c9624d6aa4a3f23c1/slip44:2086": [
    {
      "account": "4tMSjvHfWBNQw4tYGvkbRp7BBpwAB6S24LuMDcASYgnGnRTM",
      "description": "Personal account"
    },
    {
      "account": "4nvZhWv71x8reD9gq7BUGYQQVvTiThnLpTTanyru9XckaeWa",
      "description": "Council account"
    }
  ],
  "polkadot:b0a8d493285c2df73290dfb7e61f870f/slip44:434": [
    {
      "account": "EJDj2GKnx89HTzUkGW8Rk9RoYUmAJHPM8aacWFp3fi1gYUQ",
      "description": "Personal account"
    }
  ],
  "eip:155/slip44:60": [
    {
      "account": "0x6b175474e89094c44da98b954eedeac495271d0f"
    },
    {
      "account": "0x8f8221AFBB33998D8584A2B05749BA73C37A938A",
      "description": "NFT sales"
    }
  ]
}

in KiltTransferAssetRecipientV2 terms becomes:

{
  "polkadot:91b171bb158e2d3848fa23a9f1c25182/slip44:354": {
    "15BQbTH5bKH63WCXTMPxbmpnWeXKpfuTKbpDkfFLXMPvpxD3": {
      "description": "Personal account"
    }
  },
  "polkadot:411f057b9107718c9624d6aa4a3f23c1/slip44:2086": {
    "4tMSjvHfWBNQw4tYGvkbRp7BBpwAB6S24LuMDcASYgnGnRTM": {
      "description": "Personal account"
    },
    "4nvZhWv71x8reD9gq7BUGYQQVvTiThnLpTTanyru9XckaeWa": {
      "description": "Council account"
    }
  },
  "polkadot:b0a8d493285c2df73290dfb7e61f870f/slip44:434": {
    "EJDj2GKnx89HTzUkGW8Rk9RoYUmAJHPM8aacWFp3fi1gYUQ": {
      "description": "Personal account"
    }
  },
  "eip:155/slip44:60": {
    "0x6b175474e89094c44da98b954eedeac495271d0f": {},
    "0x8f8221AFBB33998D8584A2B05749BA73C37A938A": {
      "description": "NFT sales"
    }
  }
}

What's Changed

  • feat!: add JSON canonicalisation by @ntn-x2 in #3

Full Changelog: 1.0.0...2.0.0