Smart Contracts (Testnet)

Module: token_staking
back to overview
token_staking
Methods: 6
Instances: 1
Initialization

Parameters
{
  "burn_share": "<UInt16>",
  "limit": "<UInt16>",
  "min_stake": "<UInt64>",
  "token_contract_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<UInt64>"
}
Errors
None
Event
None
Methods

Parameters
{
  "amount": "<UInt64>",
  "pool_type": {
    "Enum": [
      {
        "Pool1": []
      },
      {
        "Pool6": []
      },
      {
        "Pool12": []
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "amount": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "available": "<Bool>",
  "pool_type": {
    "Enum": [
      {
        "Pool1": []
      },
      {
        "Pool6": []
      },
      {
        "Pool12": []
      }
    ]
  }
}

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "total_amount": "<UInt64>",
  "total_stakers": "<UInt64>"
}

Parameters
{
  "amount": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "LogFull": []
            },
            {
              "LogMalformed": []
            },
            {
              "NonContractAddress": []
            },
            {
              "NonAccountAddress": []
            },
            {
              "TokenAlreadyExists": []
            },
            {
              "TokenNotFound": []
            },
            {
              "PermissionDenied": []
            },
            {
              "HighTaxPercent": []
            },
            {
              "HighRoyaltyPercent": []
            },
            {
              "IncorrectPrice": []
            },
            {
              "IncorrectAmount": []
            },
            {
              "LotNotFound": []
            },
            {
              "IncorrectValue": []
            },
            {
              "TokenNotOnSale": []
            },
            {
              "LowTokenBalance": []
            },
            {
              "IncorrectTimestamp": []
            },
            {
              "AuctionStarted": []
            },
            {
              "AuctionClosed": []
            },
            {
              "AuctionActive": []
            },
            {
              "LowQuantity": []
            },
            {
              "IncorrectQuantity": []
            },
            {
              "InvokeContractError": []
            },
            {
              "TransferError": []
            },
            {
              "HighMintTokenSuply": []
            },
            {
              "HighBurnTokenSuply": []
            },
            {
              "AdminCountGreaterThenZero": []
            },
            {
              "IncorrectStakeLockPeriod": []
            },
            {
              "StakeLockPeriodIsNotExpired": []
            },
            {
              "HighStakeAmountSupply": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<7205,0>


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