Smart Contracts (Testnet)

Module: pub_rido_ccd
back to overview
pub_rido_ccd
Methods: 13
Instances: 1
Initialization

Parameters
{
  "close_at": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "max_units": "<UInt32>",
  "min_units": "<UInt32>",
  "open_at": [
    [
      "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
      {
        "Enum": [
          {
            "TOP": []
          },
          {
            "SECOND": []
          },
          {
            "NONE": []
          }
        ]
      }
    ]
  ],
  "price_per_token": "<UInt64>",
  "proj_admin": "<AccountAddress>",
  "safe_contract": {
    "index": "<UInt64>",
    "subindex": "<UInt64>"
  },
  "token_per_unit": "<String of size at most 74 containing an unsigned integer.>",
  "vesting_period": [
    [
      "<Duration (e.g. `10d 1h 42s`)>",
      "<UInt8>"
    ]
  ]
}
Errors
None
Event
None
Methods

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

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

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

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

Parameters
[
  {
    "prior": {
      "Enum": [
        {
          "TOP": []
        },
        {
          "SECOND": []
        },
        {
          "NONE": []
        }
      ]
    },
    "user": {
      "Enum": [
        {
          "Account": [
            "<AccountAddress>"
          ]
        },
        {
          "Contract": [
            {
              "index": "<UInt64>",
              "subindex": "<UInt64>"
            }
          ]
        }
      ]
    }
  }
]
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            },
            {
              "TransferError": []
            },
            {
              "ContractPaused": []
            },
            {
              "ContractOnly": []
            },
            {
              "AccountOnly": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadySaleClosed": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "AlreadyRefunded": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "InvalidSchedule": []
            },
            {
              "InvalidInput": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

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

Parameters
{
  "index": "<UInt64>",
  "subindex": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            },
            {
              "TransferError": []
            },
            {
              "ContractPaused": []
            },
            {
              "ContractOnly": []
            },
            {
              "AccountOnly": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadySaleClosed": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "AlreadyRefunded": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "InvalidSchedule": []
            },
            {
              "InvalidInput": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

Parameters
"<Timestamp (e.g. `2000-01-01T12:00:00Z`)>"
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            },
            {
              "TransferError": []
            },
            {
              "ContractPaused": []
            },
            {
              "ContractOnly": []
            },
            {
              "AccountOnly": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadySaleClosed": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "AlreadyRefunded": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "InvalidSchedule": []
            },
            {
              "InvalidInput": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            }
          ]
        }
      ]
    }
  ]
}
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": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            },
            {
              "TransferError": []
            },
            {
              "ContractPaused": []
            },
            {
              "ContractOnly": []
            },
            {
              "AccountOnly": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadySaleClosed": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "AlreadyRefunded": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "InvalidSchedule": []
            },
            {
              "InvalidInput": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None

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

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

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

Parameters
None
Errors
{
  "Enum": [
    {
      "InvalidTokenId": []
    },
    {
      "InsufficientFunds": []
    },
    {
      "Unauthorized": []
    },
    {
      "Custom": [
        {
          "Enum": [
            {
              "ParseParams": []
            },
            {
              "OverflowError": []
            },
            {
              "InvokeContractError": []
            },
            {
              "FailedUpgradeMissingModule": []
            },
            {
              "FailedUpgradeMissingContract": []
            },
            {
              "FailedUpgradeUnsupportedModuleVersion": []
            },
            {
              "AmountTooLarge": []
            },
            {
              "MissingAccount": []
            },
            {
              "MissingContract": []
            },
            {
              "MissingEntrypoint": []
            },
            {
              "MessageFailed": []
            },
            {
              "Trap": []
            },
            {
              "TransferError": []
            },
            {
              "ContractPaused": []
            },
            {
              "ContractOnly": []
            },
            {
              "AccountOnly": []
            },
            {
              "AlreadySaleStarted": []
            },
            {
              "AlreadySaleClosed": []
            },
            {
              "AlreadyDeposited": []
            },
            {
              "AlreadyRefunded": []
            },
            {
              "NotDeposited": []
            },
            {
              "SaleNotReady": []
            },
            {
              "NotMatchAmount": []
            },
            {
              "InvalidSchedule": []
            },
            {
              "InvalidInput": []
            },
            {
              "Inappropriate": []
            },
            {
              "ColdPeriod": []
            },
            {
              "Terminated": []
            }
          ]
        }
      ]
    }
  ]
}
Return
None
Address
🗎<3651,0>


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