Skip to content
@CanzaApps

CanzaApps

About Canza Finance

Canza finance is building the world's largest non-institutional-based financial system. Canza is utilizing Web3.0 and decentralized finance (DeFi) along with a robust network of experienced local money market players to distribute financial data and transaction-based services to the masses.

Canza Finance Coding Style Guide

This style guide will cover every aspect of our engineering cycle from naming repositories, files, folders to code layout and best practices to our git workflow.

Style Guide Note

The goal of this style guide is to provide consistency all across our projects. Consistency will improve the quality of code we write, increase readability and make it esy for us to onboard new developers.

Some of these guide are perculiar to a particular language while others will cut across the entire engineering workflow. A lot of the guide if not all follows industry standard making it easy for new developers joining the team to adapt to these standards.

Naming Repositories, Folders and Files

  • Repositories should be all lowercase, a repository with a compound word should be separated by a dash i.e canza-finance.
  • Folders within a repository also should be all lowercase, a folder with a compound word should be separated by an underscore i.e smart_contracts.
  • Files should use camelCase convention i.e bakiVault.sol.

General Code Layout

  • Use 4 spaces i.e 1 tab per indentation level (For typescript/javascript projects with a formatter such as prettier, ensure it is set to 4 spaces rather than 2 spaces).
  • Write only one statement per line.
  • Write only one declaration per line.
  • Ensure each source file is wrapped.
  • Functions should use camelCase and should describe exactly what actions they perform i.e function() getUserData and not function() userData.
  • Classes, Structs, Interfaces, Events, Contracts should use PascalCase i.e struct UserData not struct userData.
  • Variables should follow camelCase.

For a more exhaustive standard guide, check out https://docs.soliditylang.org/en/v0.8.15/style-guide.html.

NB: For Typescript and Javascript projects, we encourage the use of prettier for style formatting.

Git WorkFlow

  • Always work in a branch named to describe what feature you are implementing and branches should be named similar to repositories i.e trading-fees.
  • After working on a feature and updating a branch, create a pull request to merge into develop branch. Develop branch will merge the changes after testing that the code works correctly.
  • Commit messages should always describe what changes were made to a code or what new features were added.
  • Master/Main should only contain WORKING, PRODUCTION code and can ONLY BE UPDATED by develop branch after all aspects of the new changes has been reviewed properly.
  • Bugs should be reported as issues in Github and may also be reported in Asana, the corresponding pull request should reference the parent issue or Asana task.

Popular repositories Loading

  1. Canza-USSD Canza-USSD Public

    Ruby 1 1

  2. baki-contracts baki-contracts Public

    Solidity 1

  3. .github .github Public

    Canza Finance coding style guide

    1

  4. canza-ala canza-ala Public

    Solidity 1

  5. powergate powergate Public

    Forked from textileio/powergate

    Multitiered file storage API built on Filecoin and IPFS

    Go

  6. celo-sdk-py celo-sdk-py Public

    Forked from blaize-tech/celo-sdk-py

    Python

Repositories

Showing 10 of 17 repositories
  • CEXDS Public
    CanzaApps/CEXDS’s past year of commit activity
    JavaScript 0 MIT 0 0 1 Updated Dec 19, 2024
  • tCha-Network Public

    The tCha Network is a stablecoin-focused blockchain enabling seamless on-chain transactions with real-world assets. Powered by Avalanche Subnet EVM, it offers gas payments in stablecoins (USDT, USDC, zTokens) at capped costs, ensuring affordability and efficiency.

    CanzaApps/tCha-Network’s past year of commit activity
    0 1 0 0 Updated Dec 4, 2024
  • CanzaApps/DefiLlama-Adapters’s past year of commit activity
    JavaScript 0 5,450 0 0 Updated May 14, 2024
  • CanzaApps/baki-contracts’s past year of commit activity
    Solidity 1 0 9 2 Updated May 14, 2024
  • jollof-rcf-sc Public
    CanzaApps/jollof-rcf-sc’s past year of commit activity
    Solidity 0 0 2 2 Updated Mar 27, 2024
  • baki-testnet-subgraph-v1 Public

    A subgraph for Baki Protocol on Avalanche Fuji Testnet

    CanzaApps/baki-testnet-subgraph-v1’s past year of commit activity
    0 0 0 0 Updated Dec 20, 2023
  • baki-contracts-test-suite Public

    Foundry tests for Baki contracts

    CanzaApps/baki-contracts-test-suite’s past year of commit activity
    Solidity 0 1 0 0 Updated Oct 16, 2023
  • CanzaApps/DefiLlama-Adapters-baki’s past year of commit activity
    JavaScript 0 5,450 0 0 Updated Sep 20, 2023
  • canza-ala Public
    CanzaApps/canza-ala’s past year of commit activity
    Solidity 1 0 0 0 Updated Jul 3, 2023
  • baki_mvp Public
    CanzaApps/baki_mvp’s past year of commit activity
    TypeScript 0 0 0 0 Updated Sep 27, 2022

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…