All Projects → titan-suite → cli

titan-suite / cli

Licence: Apache-2.0 License
CLI for Titan Suite

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
shell
77523 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to cli

mortgage-blockchain-demo
A demo DApp on Ethereum to process mortgage loans and payments
Stars: ✭ 42 (+223.08%)
Mutual labels:  smart-contracts
pytest-eth
PyTest plugin for testing smart contracts for Ethereum blockchain.
Stars: ✭ 23 (+76.92%)
Mutual labels:  smart-contracts
eosio-rust
EOSIO SDK for Rust – APIs for building smart contracts on EOSIO blockchains in Rust
Stars: ✭ 93 (+615.38%)
Mutual labels:  smart-contracts
tasit-sdk
A JavaScript / TypeScript SDK for making native mobile Ethereum dapps using React Native
Stars: ✭ 93 (+615.38%)
Mutual labels:  smart-contracts
solidity-cli
Compile solidity-code faster, easier and more reliable
Stars: ✭ 49 (+276.92%)
Mutual labels:  smart-contracts
core
SIREN Core Smart Contracts
Stars: ✭ 39 (+200%)
Mutual labels:  smart-contracts
jupiter
Wasm smart contract networks powered by Substrate FRAME Contracts pallet in Polkadot ecosystem.
Stars: ✭ 49 (+276.92%)
Mutual labels:  smart-contracts
nifty-game
🃏🎮A NFT(ERC721) card game build on Ethereum, Truffle, Ganache and hosting on IPFS.
Stars: ✭ 222 (+1607.69%)
Mutual labels:  smart-contracts
nft-tutorial
Tezos FA2 NFT CLI Tool And Tutorial
Stars: ✭ 81 (+523.08%)
Mutual labels:  smart-contracts
CrowdBank
⚙️ Peer to Peer Loan System implemented on Ethereum Smart Contracts
Stars: ✭ 88 (+576.92%)
Mutual labels:  smart-contracts
mastering-blockchain
blockchain basis,logic,usage
Stars: ✭ 29 (+123.08%)
Mutual labels:  smart-contracts
blockapps-rest
REST API wrapper. Great for e2e
Stars: ✭ 36 (+176.92%)
Mutual labels:  smart-contracts
ethereum-playbook
CLI tool that configures and deploys Ethereum DApp infrastructures using a static specification. 📚📖
Stars: ✭ 20 (+53.85%)
Mutual labels:  smart-contracts
platform-contracts
Smart contracts Genesis Vision platform
Stars: ✭ 18 (+38.46%)
Mutual labels:  smart-contracts
clarity-smart-contracts
Collection of Smart Contract for Stacks Blockchain in Clarity
Stars: ✭ 61 (+369.23%)
Mutual labels:  smart-contracts
nuxt-web3
🖖 Web3.js module integration for Nuxt 2 ( Nuxt 3 under development )
Stars: ✭ 38 (+192.31%)
Mutual labels:  smart-contracts
ampleforth-contracts
Smart contracts for Ampleforth Protocol (working name uFragments)
Stars: ✭ 238 (+1730.77%)
Mutual labels:  smart-contracts
uniswap-skim
scripts to scan all of the uniswapV2🦄 contracts on ethereum and search for skim opportunities
Stars: ✭ 126 (+869.23%)
Mutual labels:  smart-contracts
ethereum-contracts
Knowledge Ethereum Smart Contracts
Stars: ✭ 41 (+215.38%)
Mutual labels:  smart-contracts
ethereum-dex
Decentralized exchange implementation for the 0xcert protocol on the Ethereum blockchain.
Stars: ✭ 18 (+38.46%)
Mutual labels:  smart-contracts

Titan CLI

The complete Smart Contract development CLI

oclif Version CircleCI

Downloads/week License Chat

Usage

npm i -g @titan-suite/cli

module.exports = {
  defaultBlockchain: "aion",
  blockchains: {
    aion: {
      networks: {
        development: {
          host: "http://TITAN.DEV.NODE",
          defaultAccount: "",
          password: ""
        },
        mainnet: {
          host:
            "http://api.nodesmith.io/v1/aion/mainnet/jsonrpc?apiKey=API_KEY",
          defaultAccount: "",
          password: ""
        },
        testnet: {
          host:
            "https://api.nodesmith.io/v1/aion/testnet/jsonrpc?apiKey=API_KEY",
          defaultAccount: "",
          password: ""
        }
      }
    },
    ethereum: {
      networks: {
        development: {
          host: "http://127.0.0.1:8545",
          defaultAccount: "",
          password: ""
        }
      }
    }
  }
};

Commands

Help

  • titan --help

You can also run titan <command> --help for more details about the command

titan compile

Compile a Solidity smart contract

  • titan compile path/to/contracts/Example.sol
  • Compile a specific contract withing a file
    • titan compile -n SpecificContract path/to/contracts/ManyContracts.sol
  • Output more details about the contract
    • titan compile -d path/to/contracts/Example.sol
  • The details of the compiled contract will be stored as ./build/bots/<contractName>.json

titan console

Interact with an AION node with an injected aion-web3 instance

  • titan console

titan create

Create a new contract or test file

  • titan create contract Test

titan deploy

Deploy a smart contract to an AION node

  • titan deploy path/to/contracts/Example.sol
  • Deploy a specific contract within a contract file:
    • titan deploy -n Test path/to/contracts/Example.sol
  • Pass parameters: - titan deploy -p 5 path/to/contracts/Example.sol
  • The details of the deployed contract will be stored as ./build/bots/<contractName>.json

titan exec

Run Javascript files within your project

  • titan exec path/to/script

titan init

Generate an empty Titan project

  • in the current directory: titan init
  • in a new directory: titan init <name>

titan lint

Lint a smart contract

  • titan lint path/to/contracts/Example.sol
  • lint multiple files within a directory
    • titan lint path/to/contracts/**/*.sol

titan migrate

  • Create a migration file:

    // migrations/simple_migration.js
    
    const Simple = require("../build/bolts/Simple.json");
    module.exports = async deployer => {
      deployer
        .deploy(Simple)
        .then(address => {
          console.log(address);
        })
        .catch(e => {
          console.error(e);
        });
    };
  • titan migrate path/to/migration.js

titan networks

titan test

Run unit tests

  • titan test path/to/test/testExample.js

titan unlock

Unlock an account

You may be prompted to enter an AION address and/or password

  • titan unlock
  • with the account specified
    • titan unlock -a <0x..>
  • with both the account and password specified
    • titan unlock -a <0x...> -p <pwd>

titan unpack

Start a new project with a pre-built dApp

  • titan unpack
    • choose a pack from the options
  • titan unpack <name>


Test

  • Create a titanrc.js as specified above
  • yarn test

Community

Join us on Gitter

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].