Sample Bridge Token from UNIT0 to WAVES Proposal

Proposal Link

undefined/proposals/5PqLrnj7iofURSGbXXK8DmkGmLCy1yLvAQmhB2uVJMvr

Proposal Details

This is a Template

This proposal will fail upon broadcast, because Sancho token has already been bridged. It can be used as a template to create other proposals for bridging tokens from UNIT0 to WAVES. If you want to bridge an ERC20 token from WAVES to UNIT0, please see this template.

Prerequisites

An ERC20 token that has been issued on the Unit Zero mainnet.

How it Works

To bridge your asset from WAVES to UNIT0, you need call the issueAndRegister callable function on the chain contract. This function will issue a new reissuable asset on the WAVES network and add add the mapping between the ERC20 token and the new asset to the registry. The issueAndRegister function takes the following arguments:

  • address of the ERC20 token you’re proposing to bridge from UNIT0 to WAVES (hex-encoded string, e.g. 0x7900c01eED60868beEA1DE79730CA5633A4b6a45)
  • number of decimals the new asset will have (must be between 0 and 8 inclusive)
  • name of the new asset (must be between 4 and 16 bytes long)
  • description of the new asset (at most 1000 bytes long)
  • ERC20 token decimals (must be between 0 and 18 inclusive)

Fee must be set to at least 100900000 wavelets. You must manually fund the chain contract to cover proposal broadcast fees.

About This Payload

This payload proposes to bridge Sancho token 0x7900c01eED60868beEA1DE79730CA5633A4b6a45 having 18 decimals to Waves. Once again, this proposal will fail, because the Sancho has already been bridged.

Details

Transaction ID: 8rC3H63miE5ja7nsmYEgAcvkHhvno8MrHtAz8kZbKcG7
Transaction Payload:

{
  "type": 16,
  "fee": 100900000,
  "feeAssetId": null,
  "timestamp": 1746615744000,
  "version": 2,
  "chainId": 87,
  "senderPublicKey": "44je5LGCHDK7mHXWdueirG5cHxbrUyALFJmp8H2VSx5E",
  "dApp": "3PKgN8rfmvF7hK7RWJbpvkh59e1pQkUzero",
  "payment": [],
  "call": {
    "function": "issueAndRegister",
    "args": [
      {
        "type": "string",
        "value": "0x7900c01eED60868beEA1DE79730CA5633A4b6a45"
      },
      {
        "type": "integer",
        "value": 8
      },
      {
        "type": "string",
        "value": "SANCHO"
      },
      {
        "type": "string",
        "value": "Sancho - the first meme coin managed by AI"
      },
      {
        "type": "integer",
        "value": 18
      }
    ]
  }
}

This topic was automatically created by the Units DAO proposal system.