For Task Creators

In Detask, task creators play a critical role in initiating the decentralized work lifecycle. Instead of relying on centralized gig platforms, clients interact directly with the Solana blockchain to define tasks, lock funds, and manage submissions—all enforced by smart contract logic.

Here’s an in-depth look at how task creators engage with Detask:


📝 1️⃣ Connect Wallet

  • Task creators start by connecting a supported Solana wallet (e.g., Phantom, Solflare, Backpack) via Detask’s front-end interface.

  • The connection process involves generating a session key that authorizes task creation and management transactions.

  • Wallet connection provides:

    • Access to Solana account balances (SOL, USDC, SPL tokens).

    • Authentication for deterministic wallet-based reputation tracking.

🔐 Technical Details:

  • Solana wallet adapters are integrated into the Detask UI, handling secure connection requests and signature verifications.

  • Connection status is stored in the client’s browser session, linked to the wallet’s public key for session management.


📑 2️⃣ Create a Task with Metadata

  • Task creators use the Detask interface to specify task details:

    • Task Description: Clear scope of work, objectives, and deliverables.

    • Budget & Currency: Amount locked into escrow, specified in SOL, USDC, or SPL tokens.

    • Deadline: Explicit deadline encoded into the smart contract logic.

    • Optional Parameters: Automated validation criteria, milestone structures, or bonus conditions.

  • Metadata is encoded into a Solana account associated with a unique Task ID, ensuring that:

    • Data is immutable and tamper-proof.

    • All parties can independently query task details via Solana block explorers.

🔐 Technical Details:

  • Anchor macros define schema for task metadata serialization and constraint enforcement.

  • Task creation requires signing a transaction with the task creator’s wallet, locking metadata and funds atomically.


🏦 3️⃣ Lock Funds into Escrow

  • Detask’s smart contract establishes a Program Derived Address (PDA) specific to each task, acting as an escrow vault.

  • Task creators must deposit funds matching the task budget into this PDA:

    • Funds remain locked and inaccessible except via the smart contract.

    • Only upon verified task completion will funds be released.

  • The smart contract validates deposit conditions, ensuring the amount covers the budget and adheres to supported token standards.

🔐 Technical Details:

  • PDAs are derived deterministically from the program logic and task metadata, with no associated private keys.

  • The transaction involves a transfer instruction from the task creator’s wallet to the PDA, validated on-chain.

  • Escrow balances can be monitored via Solana explorers for transparency.


📥 4️⃣ Review Submissions & Approve Payout

  • Task creators are notified when freelancers submit proof of work.

  • Proof submission includes:

    • Hashes of deliverables (e.g., SHA-256, Keccak-256).

    • URIs pointing to off-chain data stored on Arweave or IPFS.

  • Task creators manually review deliverables for completeness and accuracy.

  • Upon approval, a transaction is signed to trigger payout, releasing funds from the PDA to the freelancer’s wallet.

🔐 Technical Details:

  • The Detask smart contract verifies the legitimacy of the payout approval using Anchor account constraints.

  • Approval logic includes validation of:

    • Freelancer’s wallet address matching the submission.

    • Submission timestamps vs. task deadlines.

    • Hashes matching stored references.

  • Event logs are emitted for off-chain monitoring systems to track approval events and payment releases.


🌐 Optional Features for Task Creators

  • Milestone Payments: For complex projects, tasks can be split into stages with separate validation and payouts.

  • Automated Validation: Future support for on-chain or AI-powered proof checks to reduce manual workload.

  • Reputation Weighting: Task creators with a high reputation may benefit from reduced collateral requirements or enhanced task visibility.


💡 Summary

For task creators, Detask offers a transparent, secure, and automated workflow:

  1. Connect wallet securely via Solana.

  2. Create a detailed task, locking metadata and funds on-chain.

  3. Monitor proof submissions and review deliverables.

  4. Approve or reject submissions, triggering atomic payouts via smart contracts.

This flow replaces traditional platform intermediaries with deterministic code, ensuring fairness and accountability for all participants.

Last updated