Smart Contracts (Testnet)

Module: ovl_sale
back to overview
ovl_sale
Methods: 14
Instances: 3
Initialization

Parameters
{
  "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>",
  "proj_admin": "<AccountAddress>",
  "project_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "staking_contract": {
    "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
{
  "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>",
  "proj_admin": "<AccountAddress>",
  "project_token": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "staking_contract": {
    "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": []
            },
            {
              "InvalidInput": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
[
  {
    "alloc": "<UInt8>",
    "user": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvalidInput": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvalidInput": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "Inappropriate": []
            },
            {
              "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": []
            },
            {
              "InvalidInput": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

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

Parameters
{
  "credit_in": "<UInt64>",
  "order_unit": "<UInt8>",
  "usdc_in": "<String of size at most 74 containing an unsigned integer.>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "ContractPaused": []
            },
            {
              "InvokeContractError": []
            },
            {
              "InvalidInput": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

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

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

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

Parameters
None
Errors
None
Return
{
  "applied_units": "<UInt32>",
  "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>",
  "proj_admin": "<AccountAddress>",
  "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
None
Errors
None
Return
[
  [
    {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    {
      "claimed_inc": "<UInt8>",
      "deposit_usdc": "<String of size at most 74 containing an unsigned integer.>",
      "ovl_credit": "<UInt64>",
      "tgt_units": "<UInt8>",
      "tier": {
        "Enum": [
          {
            "T0": []
          },
          {
            "T1": []
          },
          {
            "T2": []
          },
          {
            "T3": []
          },
          {
            "T4": []
          },
          {
            "T5": []
          }
        ]
      },
      "win_units": "<UInt8>"
    }
  ]
]

Parameters
None
Errors
None
Return
[
  {
    "address": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    },
    "ovl_credit": "<UInt64>",
    "tgt_units": "<UInt8>",
    "tier": {
      "Enum": [
        {
          "T0": []
        },
        {
          "T1": []
        },
        {
          "T2": []
        },
        {
          "T3": []
        },
        {
          "T4": []
        },
        {
          "T5": []
        }
      ]
    },
    "win_units": "<UInt8>"
  }
]

Parameters
None
Errors
None
Return
"<UInt8>"

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


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