Smart Contracts (Testnet)

Module: ovl_staking
back to overview
ovl_staking
Methods: 13
Instances: 2
Initialization

Parameters
{
  "tier_bases": [
    {
      "max_alloc": "<UInt64>",
      "rate": "<UInt64>",
      "threshold": "<UInt64>"
    }
  ],
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
None
Event
None
Methods

Parameters
[
  {
    "max_alloc": "<UInt64>",
    "rate": "<UInt64>",
    "threshold": "<UInt64>"
  }
]
Errors
None
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "ovl_credit_amount": "<UInt64>",
  "project_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "ovl_credit_amount": "<UInt64>",
  "project_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "ParseParams": []
      },
      {
        "LogFull": []
      },
      {
        "LogMalformed": []
      },
      {
        "ContractPaused": []
      },
      {
        "InvokeContractError": []
      },
      {
        "InvokeTransferError": []
      },
      {
        "FailedUpgradeMissingModule": []
      },
      {
        "FailedUpgradeMissingContract": []
      },
      {
        "FailedUpgradeUnsupportedModuleVersion": []
      },
      {
        "Unauthorized": []
      },
      {
        "ContractSender": []
      },
      {
        "InsufficientOvl": []
      },
      {
        "InsufficientOvlCredit": []
      },
      {
        "ProjectNotFound": []
      },
      {
        "InsufficientDepositedOvlCredit": []
      },
      {
        "StakeOwnerNotFound": []
      }
    ]
  }
]

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
{
  "admin": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "paused": "<Bool>",
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  }
}

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
[
  [
    "<UInt8>",
    {
      "max_alloc": "<UInt64>",
      "rate": "<UInt64>",
      "threshold": "<UInt64>"
    }
  ]
]

Parameters
{
  "owner": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "available_ovl_credit_amount": "<UInt64>",
  "claimable_ovl": "<String of size at most 74 containing an unsigned integer.>",
  "ovl_credit_amount": "<UInt64>",
  "staked_ovl_credits": [
    [
      {
        "index": "<UInt64>",
        "subindex": "<UInt64>"
      },
      "<UInt64>"
    ]
  ],
  "start_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "tier": "<UInt8>"
}

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": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
{
  "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>"
}

Parameters
{
  "Enum": [
    {
      "Account": [
        "<AccountAddress>"
      ]
    },
    {
      "Contract": [
        {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        }
      ]
    }
  ]
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "paused": "<Bool>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "Unauthorized": []
    },
    {
      "ContractSender": []
    },
    {
      "InsufficientOvl": []
    },
    {
      "InsufficientOvlCredit": []
    },
    {
      "ProjectNotFound": []
    },
    {
      "InsufficientDepositedOvlCredit": []
    },
    {
      "StakeOwnerNotFound": []
    }
  ]
}
Return
None


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