Smart Contracts (Testnet)

Module: ovl_sale
back to overview
ovl_sale
Methods: 10
Instances: 1
Initialization

Parameters
{
  "close_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "exchange_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "init_origin": "<AccountAddress>",
  "is_private": "<Bool>",
  "max_units": "<UInt32>",
  "min_units": "<UInt32>",
  "open_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "pool_name": "<String>",
  "price_per_token": "<UInt32>",
  "project_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_per_unit": "<String of size at most 74 containing an unsigned integer.>",
  "vesting_period": [
    [
      "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "<UInt8>"
    ]
  ]
}
Errors
None
Event
None
Methods

Parameters
None
Errors
None
Return
{
  "admin": "<AccountAddress>",
  "close_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "exchange_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "is_private": "<Bool>",
  "max_units": "<UInt32>",
  "min_units": "<UInt32>",
  "open_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "pool_name": "<String>",
  "price_per_token": "<UInt32>",
  "project_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "status": {
    "Enum": [
      {
        "Prepare": []
      },
      {
        "Ready": []
      },
      {
        "Fixed": []
      },
      {
        "Suspend": []
      }
    ]
  },
  "token_per_unit": "<String of size at most 74 containing an unsigned integer.>",
  "vesting_period": [
    [
      "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "<UInt8>"
    ]
  ]
}

Parameters
{
  "close_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "exchange_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "init_origin": "<AccountAddress>",
  "is_private": "<Bool>",
  "max_units": "<UInt32>",
  "min_units": "<UInt32>",
  "open_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "pool_name": "<String>",
  "price_per_token": "<UInt32>",
  "project_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_per_unit": "<String of size at most 74 containing an unsigned integer.>",
  "vesting_period": [
    [
      "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      "<UInt8>"
    ]
  ]
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "amount": "<String of size at most 74 containing an unsigned integer.>",
  "from": {
    "Enum": [
      {
        "Account": [
          "<AccountAddress>"
        ]
      },
      {
        "Contract": [
          {
            "index": "<UInt64>",
            "subindex": "<UInt64>"
          }
        ]
      }
    ]
  }
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
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
None
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "num": "<UInt8>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<2293,0>


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