Please adjust your bookmarks to https://ccdexplorer.io, this domain will be expired soon.

Module gbm_Staking
Module Info
Module Name gbm_Staking
Module Reference 0cd10b033b
Deployed in block 6,266,871
Deployed in tx 99a6
Age 545 days
Sender Bank of Memories
Methods 16
Instances 1
Module Usage
Module Schema
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>",
  "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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
Return
None

Parameters
{
  "pool_id": "<UInt32>"
}
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
Return
{
  "pool_staked_amount": "<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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
Return
None

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

Parameters
None
Errors
{
  "Enum": [
    {
      "Unauthorized": []
    },
    {
      "ParseParams": []
    },
    {
      "LogFull": []
    },
    {
      "LogMalformed": []
    },
    {
      "ContractPaused": []
    },
    {
      "InvokeContractError": []
    },
    {
      "InvokeTransferError": []
    },
    {
      "FailedUpgradeMissingModule": []
    },
    {
      "FailedUpgradeMissingContract": []
    },
    {
      "FailedUpgradeUnsupportedModuleVersion": []
    },
    {
      "InvalidCountOFValidatorsRequired": []
    },
    {
      "DuplicateWithdrawRequested": []
    },
    {
      "UnstakeAmountIsZero": []
    },
    {
      "StakeIsExpired": []
    },
    {
      "StakeAmountIsZero": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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": []
    },
    {
      "UnknownPool": []
    },
    {
      "UnknownStaker": []
    },
    {
      "UnknownTokenReceived": []
    },
    {
      "FailedToTransfer": []
    }
  ]
}
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