Smart Contracts (Testnet)

Module: ovl_sale
back to overview
ovl_sale
Methods: 8
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
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<UInt8>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
{
  "num": "<UInt8>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "YourError": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<2265,0>


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