Smart Contracts (Testnet)

Module: gbm_Staking
back to overview
gbm_Staking
Methods: 16
Instances: 1
Initialization

Parameters
{
  "token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}
Errors
None
Event
{
  "Enum": [
    {
      "NewAdmin": {
        "new_admin": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "Staked": {
        "amount": "<UInt64>",
        "pool_id": "<UInt32>",
        "sender": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "Unstaked": {
        "amount": "<UInt64>",
        "pool_id": "<UInt32>",
        "recipient": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "HarvestedRewards": {
        "amount": "<UInt64>",
        "pool_id": "<UInt32>",
        "recipient": {
          "Enum": [
            {
              "Account": [
                "<AccountAddress>"
              ]
            },
            {
              "Contract": [
                {
                  "index": "<UInt64>",
                  "subindex": "<UInt64>"
                }
              ]
            }
          ]
        }
      }
    },
    {
      "CreatedPool": {
        "pool_id": "<UInt32>"
      }
    }
  ]
}
Methods

Parameters
{
  "block_duration": "<UInt32>",
  "min_blocks_unstake": "<UInt64>",
  "min_stake_amount": "<UInt64>",
  "reward_tokens_per_block": "<UInt64>",
  "rewards_multiplier": "<UInt16>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
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": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<UInt64>",
  "owned_entrypoint_name": "<String>",
  "pool_id": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "owned_entrypoint_name": "<String>",
  "pool_id": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "owned_entrypoint_name": "<String>",
  "pool_id": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "address": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "pool_id": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
{
  "block_duration": "<UInt32>",
  "min_blocks_unstake": "<UInt64>",
  "min_stake_amount": "<UInt64>",
  "pool_staked_amount": "<UInt64>",
  "reward_tokens_per_block": "<UInt64>",
  "rewards_multiplier": "<UInt16>",
  "staked_block": "<UInt64>",
  "staked_time": "<UInt64>",
  "user_harvestable_rewards": "<UInt64>",
  "user_staked_amount": "<UInt64>"
}

Parameters
{
  "Enum": [
    {
      "Account": [
        "<AccountAddress>"
      ]
    },
    {
      "Contract": [
        {
          "index": "<UInt64>",
          "subindex": "<UInt64>"
        }
      ]
    }
  ]
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "paused": "<Bool>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
{
  "admin": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "paused": "<Bool>",
  "token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_id": "<String with lowercase hex>"
}

Parameters
[
  "<String>"
]
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
[
  {
    "Enum": [
      {
        "NoSupport": []
      },
      {
        "Support": []
      },
      {
        "SupportBy": [
          [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        ]
      }
    ]
  }
]

Parameters
{
  "id": "<String>",
  "implementors": [
    {
      "index": "<UInt64>",
      "subindex": "<UInt64>"
    }
  ]
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
{
  "migrate": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            "<String>",
            "<String with lowercase hex>"
          ]
        ]
      }
    ]
  },
  "module": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "StakeAmountIsNotEnough": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    },
    {
      "UnstakeNotEnoughBlocks": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None

Parameters
None
Errors
None
Return
None
Address
🗎<6309,0>


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