Module Overview
Module Name gona_stake
Module Reference 9cb05d19ad
Verification Status Unverifiable
Age 389 days
Sender 12319
More Info
Deployed in block 21,505,489
Deployed in tx 20fd
Methods 8
Contracts 1
Module Build Info
Verification Status:Unverifiable
Build Image Used:N/A
Build Command Used:N/A
Archive Hash:N/A
Link to Source Code:N/A
Explanation:None
Module Schema
Initialization

Parameters
{
  "admin": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  },
  "decimals": "<UInt8>",
  "smart_wallet": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_address": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "weight": "<UInt32>"
}
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": [
    {
      "StakingNotFound": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "InvalidReleaseTime": []
    },
    {
      "InvalidStakingState": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "ContractInvokeError": []
    },
    {
      "OnlyContractCanStake": []
    },
    {
      "SenderContractAddressIsNotAllowedToStake": []
    },
    {
      "CannotStakeLessThanAllowAmount": []
    },
    {
      "SenderIsNotOwner": []
    },
    {
      "DaysOfStakeCouldNotBeCalculated": []
    },
    {
      "SenderIsNotAdmin": []
    },
    {
      "Expired": []
    },
    {
      "WrongSignature": []
    },
    {
      "SignatureVerficationFailed": []
    },
    {
      "CouldNotParseAdditionalData": []
    },
    {
      "Overflow": []
    }
  ]
}
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": [
    {
      "StakingNotFound": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "InvalidReleaseTime": []
    },
    {
      "InvalidStakingState": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "ContractInvokeError": []
    },
    {
      "OnlyContractCanStake": []
    },
    {
      "SenderContractAddressIsNotAllowedToStake": []
    },
    {
      "CannotStakeLessThanAllowAmount": []
    },
    {
      "SenderIsNotOwner": []
    },
    {
      "DaysOfStakeCouldNotBeCalculated": []
    },
    {
      "SenderIsNotAdmin": []
    },
    {
      "Expired": []
    },
    {
      "WrongSignature": []
    },
    {
      "SignatureVerficationFailed": []
    },
    {
      "CouldNotParseAdditionalData": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
None
Return
{
  "Enum": [
    {
      "None": []
    },
    {
      "Some": [
        {
          "amount": "<String of size at most 74 containing an unsigned integer.>",
          "time_of_stake": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
          "token_id": "<String with lowercase hex>"
        }
      ]
    }
  ]
}

Parameters
None
Errors
None
Return
None

Parameters
"<UInt32>"
Errors
None
Return
None

Parameters
None
Errors
None
Return
"<UInt64>"

Parameters
"<String of size 64 containing lowercase hex characters.>"
Errors
{
  "Enum": [
    {
      "StakingNotFound": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "InvalidReleaseTime": []
    },
    {
      "InvalidStakingState": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "ContractInvokeError": []
    },
    {
      "OnlyContractCanStake": []
    },
    {
      "SenderContractAddressIsNotAllowedToStake": []
    },
    {
      "CannotStakeLessThanAllowAmount": []
    },
    {
      "SenderIsNotOwner": []
    },
    {
      "DaysOfStakeCouldNotBeCalculated": []
    },
    {
      "SenderIsNotAdmin": []
    },
    {
      "Expired": []
    },
    {
      "WrongSignature": []
    },
    {
      "SignatureVerficationFailed": []
    },
    {
      "CouldNotParseAdditionalData": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "staker": "<String of size 64 containing lowercase hex characters.>"
}
Errors
{
  "Enum": [
    {
      "StakingNotFound": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "InvalidPrice": []
    },
    {
      "InvalidReleaseTime": []
    },
    {
      "InvalidStakingState": []
    },
    {
      "ParseParams": []
    },
    {
      "TransferError": []
    },
    {
      "ContractInvokeError": []
    },
    {
      "OnlyContractCanStake": []
    },
    {
      "SenderContractAddressIsNotAllowedToStake": []
    },
    {
      "CannotStakeLessThanAllowAmount": []
    },
    {
      "SenderIsNotOwner": []
    },
    {
      "DaysOfStakeCouldNotBeCalculated": []
    },
    {
      "SenderIsNotAdmin": []
    },
    {
      "Expired": []
    },
    {
      "WrongSignature": []
    },
    {
      "SignatureVerficationFailed": []
    },
    {
      "CouldNotParseAdditionalData": []
    },
    {
      "Overflow": []
    }
  ]
}
Return
None
Module Usage