Smart Contracts (Testnet)

Module: bridge-manager
back to overview
bridge-manager
Methods: 10
Instances: 2
Initialization

Parameters
None
Errors
None
Event
None
Methods

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      },
      {
        "Mapper": []
      },
      {
        "StateSyncer": []
      }
    ]
  }
}
Errors
None
Return
[
  "<Bool>"
]

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      },
      {
        "Mapper": []
      },
      {
        "StateSyncer": []
      }
    ]
  }
}
Errors
None
Return
None

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "role": {
    "Enum": [
      {
        "Admin": []
      },
      {
        "Mapper": []
      },
      {
        "StateSyncer": []
      }
    ]
  }
}
Errors
None
Return
None

Parameters
{
  "amount": "<Amount in microCCD>"
}
Errors
None
Return
None

Parameters
{
  "account": "<AccountAddress>"
}
Errors
None
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvokeTransferError": []
            },
            {
              "TokenNotMapped": []
            },
            {
              "RoleNotAssigned": []
            },
            {
              "WithdrawFeeTooLow": []
            },
            {
              "OperationAlreadyProcessed": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "OnlyAccountsCanWithdraw": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "paused": "<Bool>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvokeTransferError": []
            },
            {
              "TokenNotMapped": []
            },
            {
              "RoleNotAssigned": []
            },
            {
              "WithdrawFeeTooLow": []
            },
            {
              "OperationAlreadyProcessed": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "OnlyAccountsCanWithdraw": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt64>"
Errors
None
Return
"<Bool>"

Parameters
{
  "Enum": [
    {
      "Deposit": [
        {
          "amount": "<String of size at most 74 containing an unsigned integer.>",
          "id": "<UInt64>",
          "root": [
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>"
          ],
          "token_id": "<String with lowercase hex>",
          "user": {
            "Enum": [
              {
                "Account": [
                  "<AccountAddress>"
                ]
              },
              {
                "Contract": [
                  {
                    "index": "<UInt64>",
                    "subindex": "<UInt64>"
                  }
                ]
              }
            ]
          }
        }
      ]
    },
    {
      "TokenMap": [
        {
          "child": {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          },
          "id": "<UInt64>",
          "root": [
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>",
            "<UInt8>"
          ]
        }
      ]
    }
  ]
}
Errors
None
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "eth_address": [
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>",
    "<UInt8>"
  ],
  "token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
None
Return
None


Release: 2024.12
Support CCDExplorer.io Uptime Backend Status CCDExplorer is supported by AesirX - Decentralized Consent & Data Ownership