Trustless Work
  • Welcome
    • Why Escrows Matter
    • 🛤️Our Journey so Far
      • 🤔The Problem: Origins of Trustless Work
      • 👾The team comes together
      • 💡The Solution: Escrows
      • 🏆Key Milestones
        • 🌠DraperU Stellar Astro Hacker House: A Pivotal Moment
        • Launching the API V1 at ETH Pura Vida Hackathon
      • 🚀Current Programs
        • 🌟DraperU Embark Program
        • 💻OD Hack Campaigns
      • 🛠️Vertical Development
      • 🔮Future Vision
  • 📌Start Here
    • ☀️About Trustless Work
      • Vision and Mission
      • Team
  • ⚒️Understanding Smart Escrows
    • 🥸Smart Escrow Design
      • What does a Smart Escrow "look like"?
      • Roles in Trustless Work
      • Escrow Lifecycle
        • Initiation Phase
        • Funding Phase
        • Complete phase
        • Approval phase
        • Release phase
        • Dispute Resolution
    • 💵USDC: The Stablecoin Powering Trustless Work
    • 🌟Stellar & Soroban: The Backbone of Trustless Work
  • 💻Developer Resources
    • 🚀Smart Escrow API
    • Quickstart
      • Integration Demo Project
        • Getting Started
        • Entities
        • Configuration
      • dApp locally
      • API Fundamental Code
    • API Reference
      • Introduction
      • Authentication
        • Request Api Key
      • Deploy
        • Initialize Escrow
      • Escrows
        • Schema
        • Fund Escrow
        • Get Escrow by Contract ID
        • Resolve Dispute
        • Change Milestone Status
        • Change Milestone Flag
        • Change Dispute Flag
        • Release Funds
        • Update escrow properties
      • Helpers
        • Set Trustline
        • Send Transaction
        • Get Multiple Escrow Balance
    • 🧰Essential Tools for Developers
      • Stellar Wallets
        • Freighter Wallet
        • Albedo Wallet
        • xBull Wallet
        • Rabet Wallet
        • Lobstr Wallet
        • Hana Wallet
        • Additional Resources
        • Troubleshooting & FAQs
      • How to Get Testnet Tokens
  • 🌍Use Cases by Industry
    • Marketplaces & E-commerce
    • Grants, Bounties, and Hackathons
    • P2P Exchanges and OTC Desks
    • Security Deposits
    • Milestone-based Freelance & Contract Work
    • Crowdfunding & Pre-orders
    • DAO Treasury & Working Group Budgets
    • Education & Online Courses
    • Subscription + Performance-based Retainers
  • 🤖Using the dApp
    • Step 1: Accessing the Trustless Work Dapp and Logging In
    • Step 2: Creating a Profile and Requesting an API Key
    • Step 3: Creating an Escrow
    • Step 4: Funding an Escrow
    • Step 5: Marking a Milestone as Done ✅
    • Step 6: Approving the Milestone
    • Step 7: Releasing the Payment
    • Resolving Disputes
  • 🏴‍☠️Community
    • 🌎Spotlight: Kindfi
    • 🛣️Roadmap: The Journey Ahead
    • Contributor's Guide
    • 📂Open-Source Templates & Developer Tools
  • ✒️Background & Theory
    • 📘Core Concepts & Escrow Glossary
    • 🎒Historical Context
      • 📜Escrow History:
        • 🗿Ancient to Colonial Era
        • 🏦Banking Era (19th - 20th Century)
        • 💻The Digital Era and Online Escrow
      • ⛓️Blockchain Era: Smart Escrows
  • Links
    • ⚒️Trustless Work dApp
    • 🌐Trustless Work Website
    • 📣Telegram Chat
    • 💎Only Dust Profile
    • 👩‍💻Swagger for API
    • 📜Github
  • 📢Appendices
    • Contact and Support
    • Notion for Startups
    • Meru
Powered by GitBook
LogoLogo

Links

  • Website
On this page
  • 🔹 1. Getting Started
  • 🔹 2. Branching Strategy
  • 🔹 3. Making Contributions
  • 🔹 4. Pushing Changes & Creating a PR
  • 🔹 5. Code Review & Merging Process
  • 🔹 6. Additional Resources

Was this helpful?

Export as PDF
  1. Community

Contributor's Guide

PreviousRoadmap: The Journey AheadNextOpen-Source Templates & Developer Tools

Last updated 1 month ago

Was this helpful?

Welcome to the Trustless Work open-source community! 🚀 We appreciate your interest in contributing and helping us build Escrow Infrastructure for the New Economy. This guide will walk you through the process of contributing effectively.

If you want to contribute and get rewarded, apply through on Only Dust. Only Dust makes life easier for maintainers since it handles rewards for us. You might (or might not :( ) get rewarded and it is not in our hands. Stellar sponsors OD Campaigns and the rewards come from them. Thanks Stellar!

Once assigned a task, please follow these guidelines:


🔹 1. Getting Started

Fork & Clone the Repository

  1. Fork the repository on GitHub.

  2. Clone your forked repository to your local machine:

    git clone https://github.com/YOUR_USERNAME/REPOSITORY_NAME.git
    cd REPOSITORY_NAME
  3. Set the upstream remote to sync with the main repo:

    git remote add upstream https://github.com/TrustlessWork/REPOSITORY_NAME.git
  4. Ensure you're on the latest version of develop:

    git checkout develop
    git pull upstream develop

🔹 2. Branching Strategy

We follow a structured branching model to keep contributions organized.

Main Branches

  • main → The production-ready branch (DO NOT push here directly).

  • develop → The active development branch where features are merged.

Feature & Fix Branches

Create a branch based on the type of change:

  • Features: feat/feature-name

    • Example: feat/escrow-ui

  • Bug Fixes: fix/bug-description

    • Example: fix/api-response-error

  • Documentation: docs/update-name

    • Example: docs/getting-started-guide

  • Refactoring: refactor/code-improvement

    • Example: refactor/clean-smart-contracts

Create a New Branch

Always create a new branch before making changes:

   git checkout develop
   git pull upstream develop  # Sync with the latest code
   git checkout -b feat/new-feature

🔹 3. Making Contributions

Coding Standards

✅ Keep changes small and atomic. ✅ Follow commit message guidelines (see below). ✅ Ensure tests pass before submitting a PR. ✅ Format code using our linting and formatting rules.

Commit Message Guidelines

Use a clear and concise commit message format:

type: short description (less than 72 characters)

Examples:

  • feat: add escrow approval system

  • fix: resolve API timeout issue

  • docs: update README with setup instructions

Types:

  • feat: New feature

  • fix: Bug fix

  • docs: Documentation update

  • refactor: Code restructuring

  • style: Code formatting (no logic changes)

  • test: Adding or updating tests

  • build: Changes to build process or dependencies

  • ci: Changes to CI/CD setup

  • chore: Miscellaneous updates


🔹 4. Pushing Changes & Creating a PR

Push Your Changes

   git add .
   git commit -m "feat: add escrow approval system"
   git push origin feat/new-feature

Create a Pull Request (PR)

  1. Go to the original repo on GitHub.

  2. Click New Pull Request.

  3. Select develop as the base branch and your feature branch as the compare branch.

  4. Provide a clear description of the changes.

  5. Submit for review!


🔹 5. Code Review & Merging Process

✅ Maintainers will review the PR and provide feedback. ✅ If requested, make changes and push updates to your PR. ✅ Once approved, the PR is merged into develop. ✅ After testing, develop is merged into main for production.


🔹 6. Additional Resources

Happy coding! 🎉

📖 – Browse our repositories. 💬 – Connect with other contributors.

🏴‍☠️
Trustless Work on OnlyDust
Trustless Work GitHub
Join our Telegram