Smart Contracts (Testnet)

Module: concordium_staking
back to overview
concordium_staking
Methods: 16
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": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "NotTokenContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    }
  ]
}
Return
None

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "NotTokenContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "data": "<String with lowercase hex>",
  "from": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "token_id": "<String with lowercase hex>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "NotTokenContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    }
  ]
}
Return
None

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

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

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

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

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

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

Parameters
{
  "message": {
    "contract_address": {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    },
    "entry_point": "<String>",
    "nonce": "<UInt64>",
    "payload": [
      "<UInt8>"
    ],
    "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
  },
  "signature": [
    [
      "<UInt8>",
      [
        [
          "<UInt8>",
          {
            "Enum": [
              {
                "Ed25519": [
                  "<String of size 128 containing lowercase hex characters.>"
                ]
              }
            ]
          }
        ]
      ]
    ]
  ],
  "signer": "<AccountAddress>"
}
Errors
None
Return
[
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>",
  "<UInt8>"
]

Parameters
{
  "queries": [
    "<String>"
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "UnAuthorized": []
    },
    {
      "InvalidStakeAmount": []
    },
    {
      "NoStakeFound": []
    },
    {
      "OnlyAccount": []
    },
    {
      "OnlyAdmin": []
    },
    {
      "InvokeContractError": []
    },
    {
      "ParseResult": []
    },
    {
      "InvalidResponse": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "ContractPaused": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "NotTokenContract": []
    },
    {
      "MissingAccount": []
    },
    {
      "MalformedData": []
    },
    {
      "WrongSignature": []
    },
    {
      "NonceMismatch": []
    },
    {
      "WrongContract": []
    },
    {
      "WrongEntryPoint": []
    },
    {
      "Expired": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

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

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

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

Parameters
{
  "contract_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "entry_point": "<String>",
  "nonce": "<UInt64>",
  "payload": [
    "<UInt8>"
  ],
  "timestamp": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
}
Errors
None
Return
None
Address
🗎<9283,0>


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