Smart Contracts (Testnet)

Module: token_staking
back to overview
token_staking
Methods: 10
Instances: 0
Initialization

Parameters
{
  "burn_share": "<UInt16>",
  "limit": "<UInt16>",
  "min_stake": "<UInt64>",
  "pools": [
    {
      "Enum": [
        {
          "Pool0": []
        },
        {
          "Pool1": []
        },
        {
          "Pool6": []
        },
        {
          "Pool12": []
        }
      ]
    }
  ],
  "token_contract_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
None
Event
None
Methods

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": [
    {
      "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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "amount": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt64>"
        ]
      }
    ]
  },
  "available": "<Bool>",
  "calculated_return_amount": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt64>"
        ]
      }
    ]
  },
  "claim_end": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt128>"
        ]
      }
    ]
  },
  "claim_start": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt128>"
        ]
      }
    ]
  },
  "created_at": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<UInt128>"
        ]
      }
    ]
  },
  "pool_type": {
    "Enum": [
      {
        "Pool0": []
      },
      {
        "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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "total_amount": "<UInt64>",
  "total_stakers": "<UInt64>"
}

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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "pool_types": [
    {
      "Enum": [
        {
          "Pool0": []
        },
        {
          "Pool1": []
        },
        {
          "Pool6": []
        },
        {
          "Pool12": []
        }
      ]
    }
  ],
  "pools": [
    {
      "denominator": "<UInt128>",
      "initial_numerator": "<UInt128>",
      "lock_period": "<UInt64>",
      "multiplier": "<UInt16>",
      "numerators": [
        [
          "<AccountAddress>",
          {
            "amount": "<UInt64>",
            "created_at": "<UInt128>",
            "lock_period": "<UInt128>",
            "numerator": "<UInt128>"
          }
        ]
      ],
      "stakers_count": "<UInt64>",
      "total_amount": "<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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "addresses": [
    "<AccountAddress>"
  ],
  "operation_type": "<Bool>"
}
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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
{
  "admins": [
    "<AccountAddress>"
  ]
}

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": []
            },
            {
              "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": []
            },
            {
              "ClaimPeriodClosed": []
            },
            {
              "HighStakeAmountSupply": []
            },
            {
              "SellForError": []
            },
            {
              "BuyForError": []
            },
            {
              "ContractUpgradeErr": []
            },
            {
              "ModuleNotFoundError": []
            },
            {
              "UpgradeVersionsMismatch": []
            },
            {
              "UnsupportedTokenContract": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
No instances found.
Address


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