Smart Contracts (Testnet)

Module: concordium_staking
back to overview
concordium_staking
Methods: 11
Instances: 1
Initialization

Parameters
{
  "admin": "<AccountAddress>",
  "liquid_euroe": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Event
None
Methods

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "withdraw_address": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
{
  "paused": "<Bool>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
{
  "new_apr": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "AlreadyStaked": []
    },
    {
      "Cis2TransferFailed": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    },
    {
      "InsufficientFunds": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "admin": "<AccountAddress>",
  "apr": "<UInt64>",
  "liquid_euroe": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "paused": "<Bool>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "total_staked": "<String of size at most 74 containing an unsigned integer.>"
}

Parameters
"<AccountAddress>"
Errors
None
Return
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "timestamp": "<UInt64>"
}

Parameters
"<AccountAddress>"
Errors
None
Return
"<UInt64>"
Address
🗎<9262,0>


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