Smart Contracts (Testnet)

Module: dthrift
back to overview
dthrift
Methods: 6
Instances: 1
Initialization

Parameters
{
  "contribution_amount": "<Amount in microCCD>",
  "description": "<String>",
  "end_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "max_contributors": "<UInt64>",
  "name": "<String>",
  "payout_cycle": "<UInt64>",
  "penalty_amount": "<Amount in microCCD>",
  "start_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "time_interval": "<Duration (e.g. `10d 1h 42s`)>"
}
Errors
None
Event
None
Methods

Parameters
{
  "penalty_amount": "<UInt64>"
}
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "TandaClosed": []
    },
    {
      "MaximumReached": []
    },
    {
      "WithdrawalTimeNotReached": []
    },
    {
      "WithdrawalPhaseAlreadyStarted": []
    },
    {
      "ContractMember": []
    },
    {
      "ContributorsNotComplete": []
    },
    {
      "Unauthorized": []
    },
    {
      "AlreadyFinalized": []
    },
    {
      "NotStarted": []
    },
    {
      "NotAuthorized": []
    },
    {
      "AlreadyStarted": []
    },
    {
      "AlreadyFinished": []
    },
    {
      "AlreadyJoined": []
    },
    {
      "TandaFull": []
    },
    {
      "NotJoined": []
    },
    {
      "AlreadyContributed": []
    },
    {
      "AlreadyWithdrawn": []
    },
    {
      "NotContributor": []
    },
    {
      "Penalized": []
    },
    {
      "WithdrawalIntervalNotReached": []
    },
    {
      "InvalidState": []
    },
    {
      "InvalidContributionAmount": []
    },
    {
      "InvalidPayoutCycle": []
    },
    {
      "InvalidStartTime": []
    },
    {
      "InvalidEndTime": []
    },
    {
      "InvalidTimeInterval": []
    },
    {
      "InvalidPenaltyAmount": []
    },
    {
      "InvalidMaxContributors": []
    },
    {
      "InvalidName": []
    },
    {
      "InvalidDescription": []
    },
    {
      "InvalidCreator": []
    },
    {
      "InvalidAddress": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "InvalidParameter": []
    },
    {
      "InternalError": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "TandaClosed": []
    },
    {
      "MaximumReached": []
    },
    {
      "WithdrawalTimeNotReached": []
    },
    {
      "WithdrawalPhaseAlreadyStarted": []
    },
    {
      "ContractMember": []
    },
    {
      "ContributorsNotComplete": []
    },
    {
      "Unauthorized": []
    },
    {
      "AlreadyFinalized": []
    },
    {
      "NotStarted": []
    },
    {
      "NotAuthorized": []
    },
    {
      "AlreadyStarted": []
    },
    {
      "AlreadyFinished": []
    },
    {
      "AlreadyJoined": []
    },
    {
      "TandaFull": []
    },
    {
      "NotJoined": []
    },
    {
      "AlreadyContributed": []
    },
    {
      "AlreadyWithdrawn": []
    },
    {
      "NotContributor": []
    },
    {
      "Penalized": []
    },
    {
      "WithdrawalIntervalNotReached": []
    },
    {
      "InvalidState": []
    },
    {
      "InvalidContributionAmount": []
    },
    {
      "InvalidPayoutCycle": []
    },
    {
      "InvalidStartTime": []
    },
    {
      "InvalidEndTime": []
    },
    {
      "InvalidTimeInterval": []
    },
    {
      "InvalidPenaltyAmount": []
    },
    {
      "InvalidMaxContributors": []
    },
    {
      "InvalidName": []
    },
    {
      "InvalidDescription": []
    },
    {
      "InvalidCreator": []
    },
    {
      "InvalidAddress": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "InvalidParameter": []
    },
    {
      "InternalError": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "TandaClosed": []
    },
    {
      "MaximumReached": []
    },
    {
      "WithdrawalTimeNotReached": []
    },
    {
      "WithdrawalPhaseAlreadyStarted": []
    },
    {
      "ContractMember": []
    },
    {
      "ContributorsNotComplete": []
    },
    {
      "Unauthorized": []
    },
    {
      "AlreadyFinalized": []
    },
    {
      "NotStarted": []
    },
    {
      "NotAuthorized": []
    },
    {
      "AlreadyStarted": []
    },
    {
      "AlreadyFinished": []
    },
    {
      "AlreadyJoined": []
    },
    {
      "TandaFull": []
    },
    {
      "NotJoined": []
    },
    {
      "AlreadyContributed": []
    },
    {
      "AlreadyWithdrawn": []
    },
    {
      "NotContributor": []
    },
    {
      "Penalized": []
    },
    {
      "WithdrawalIntervalNotReached": []
    },
    {
      "InvalidState": []
    },
    {
      "InvalidContributionAmount": []
    },
    {
      "InvalidPayoutCycle": []
    },
    {
      "InvalidStartTime": []
    },
    {
      "InvalidEndTime": []
    },
    {
      "InvalidTimeInterval": []
    },
    {
      "InvalidPenaltyAmount": []
    },
    {
      "InvalidMaxContributors": []
    },
    {
      "InvalidName": []
    },
    {
      "InvalidDescription": []
    },
    {
      "InvalidCreator": []
    },
    {
      "InvalidAddress": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "InvalidParameter": []
    },
    {
      "InternalError": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "TandaClosed": []
    },
    {
      "MaximumReached": []
    },
    {
      "WithdrawalTimeNotReached": []
    },
    {
      "WithdrawalPhaseAlreadyStarted": []
    },
    {
      "ContractMember": []
    },
    {
      "ContributorsNotComplete": []
    },
    {
      "Unauthorized": []
    },
    {
      "AlreadyFinalized": []
    },
    {
      "NotStarted": []
    },
    {
      "NotAuthorized": []
    },
    {
      "AlreadyStarted": []
    },
    {
      "AlreadyFinished": []
    },
    {
      "AlreadyJoined": []
    },
    {
      "TandaFull": []
    },
    {
      "NotJoined": []
    },
    {
      "AlreadyContributed": []
    },
    {
      "AlreadyWithdrawn": []
    },
    {
      "NotContributor": []
    },
    {
      "Penalized": []
    },
    {
      "WithdrawalIntervalNotReached": []
    },
    {
      "InvalidState": []
    },
    {
      "InvalidContributionAmount": []
    },
    {
      "InvalidPayoutCycle": []
    },
    {
      "InvalidStartTime": []
    },
    {
      "InvalidEndTime": []
    },
    {
      "InvalidTimeInterval": []
    },
    {
      "InvalidPenaltyAmount": []
    },
    {
      "InvalidMaxContributors": []
    },
    {
      "InvalidName": []
    },
    {
      "InvalidDescription": []
    },
    {
      "InvalidCreator": []
    },
    {
      "InvalidAddress": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "InvalidParameter": []
    },
    {
      "InternalError": []
    }
  ]
}
Return
None

Parameters
None
Errors
{
  "Enum": [
    {
      "ParseParamsError": []
    },
    {
      "TandaClosed": []
    },
    {
      "MaximumReached": []
    },
    {
      "WithdrawalTimeNotReached": []
    },
    {
      "WithdrawalPhaseAlreadyStarted": []
    },
    {
      "ContractMember": []
    },
    {
      "ContributorsNotComplete": []
    },
    {
      "Unauthorized": []
    },
    {
      "AlreadyFinalized": []
    },
    {
      "NotStarted": []
    },
    {
      "NotAuthorized": []
    },
    {
      "AlreadyStarted": []
    },
    {
      "AlreadyFinished": []
    },
    {
      "AlreadyJoined": []
    },
    {
      "TandaFull": []
    },
    {
      "NotJoined": []
    },
    {
      "AlreadyContributed": []
    },
    {
      "AlreadyWithdrawn": []
    },
    {
      "NotContributor": []
    },
    {
      "Penalized": []
    },
    {
      "WithdrawalIntervalNotReached": []
    },
    {
      "InvalidState": []
    },
    {
      "InvalidContributionAmount": []
    },
    {
      "InvalidPayoutCycle": []
    },
    {
      "InvalidStartTime": []
    },
    {
      "InvalidEndTime": []
    },
    {
      "InvalidTimeInterval": []
    },
    {
      "InvalidPenaltyAmount": []
    },
    {
      "InvalidMaxContributors": []
    },
    {
      "InvalidName": []
    },
    {
      "InvalidDescription": []
    },
    {
      "InvalidCreator": []
    },
    {
      "InvalidAddress": []
    },
    {
      "InsufficientBalance": []
    },
    {
      "InvalidParameter": []
    },
    {
      "InternalError": []
    }
  ]
}
Return
None

Parameters
None
Errors
None
Return
{
  "completed_cycles": [
    [
      "<UInt64>",
      [
        "<AccountAddress>"
      ]
    ]
  ],
  "contribution_amount": "<Amount in microCCD>",
  "contributors": [
    "<AccountAddress>"
  ],
  "creator": "<AccountAddress>",
  "current_cycle": "<UInt64>",
  "description": "<String>",
  "end_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "last_withdrawal_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "max_contributors": "<UInt64>",
  "members": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          [
            [
              "<AccountAddress>",
              "<UInt64>"
            ]
          ]
        ]
      }
    ]
  },
  "name": "<String>",
  "next_receiver": {
    "Enum": [
      {
        "None": []
      },
      {
        "Some": [
          "<AccountAddress>"
        ]
      }
    ]
  },
  "next_withdrawal_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "payout_cycle": "<UInt64>",
  "penalty_amount": "<Amount in microCCD>",
  "start_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "tanda_state": {
    "Enum": [
      {
        "Open": []
      },
      {
        "Closed": []
      },
      {
        "Pending": []
      },
      {
        "InProgress": []
      },
      {
        "Completed": []
      }
    ]
  },
  "time_interval": "<Duration (e.g. `10d 1h 42s`)>",
  "total_contributions": "<Amount in microCCD>",
  "user_index": "<UInt64>",
  "withdrawal_phase_started": "<Bool>",
  "withdrawal_start_time": "<Timestamp (e.g. `2000-01-01T12:00:00Z`)>",
  "withdrawn_addresses": [
    "<AccountAddress>"
  ]
}
Address
🗎<3657,0>


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