All Projects → citahub → cita-truffle-box

citahub / cita-truffle-box

Licence: MIT License
Develop DApps on CITA

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to cita-truffle-box

svelte-box
A truffle box for svelte
Stars: ✭ 60 (+400%)
Mutual labels:  truffle, truffle-box
atomic-markets
Generalized atomic swap marketplaces for ERC-777(advanced token standard) and ERC-721 (non-fungible tokens)
Stars: ✭ 30 (+150%)
Mutual labels:  truffle, truffle-box
cita-sdk-java
Java library for working with Smart Contract and integrating with clients on CITA
Stars: ✭ 31 (+158.33%)
Mutual labels:  cita
solidity-node-docker-starter
Starter project for developing Ethereum smart contracts with Solidity, Truffle and Node.js as a backend server.
Stars: ✭ 57 (+375%)
Mutual labels:  truffle
pyrrha-consensus
Core set of Ethereum contracts for Pandora Boxchain functioning
Stars: ✭ 25 (+108.33%)
Mutual labels:  truffle
mortgage-blockchain-demo
A demo DApp on Ethereum to process mortgage loans and payments
Stars: ✭ 42 (+250%)
Mutual labels:  truffle
TypeChain
🔌 TypeScript bindings for Ethereum smart contracts
Stars: ✭ 1,881 (+15575%)
Mutual labels:  truffle
etherbrite
🗓 Clone eventbrite on Ethereum, built in Solidity, TruffleJS, Web3js and React/Redux.
Stars: ✭ 19 (+58.33%)
Mutual labels:  truffle
bodhi-core
Smart Contracts for the Bodhi Prediction Market
Stars: ✭ 32 (+166.67%)
Mutual labels:  truffle
BlockVote
BlockVote is a blockchain based election system which lets voters elect candidate in an election.
Stars: ✭ 50 (+316.67%)
Mutual labels:  truffle
web3-gear
Proxy Thor's RESTful API to Eth JSON-RPC, to support Remix, Truffle and more.
Stars: ✭ 27 (+125%)
Mutual labels:  truffle
escrow-eth
Escrow contract
Stars: ✭ 41 (+241.67%)
Mutual labels:  truffle
cita-common
Libraries for CITA (https://github.com/citahub/cita)
Stars: ✭ 39 (+225%)
Mutual labels:  cita
microscope
Blockchain Explorer for CITA
Stars: ✭ 17 (+41.67%)
Mutual labels:  cita
erc1363-payable-token
Code implementation for the ERC-1363 Payable Token
Stars: ✭ 83 (+591.67%)
Mutual labels:  truffle
likecoin-contracts
Token contracts of Like Coin
Stars: ✭ 22 (+83.33%)
Mutual labels:  truffle
filecoin-box
Filecoin flavored Ganache Truffle box
Stars: ✭ 23 (+91.67%)
Mutual labels:  truffle
truffle-react
⚛️ A boilerplate Truffle Box project with Create React App for rapid Ethereum Dapp development
Stars: ✭ 45 (+275%)
Mutual labels:  truffle
ethereum-contracts
Knowledge Ethereum Smart Contracts
Stars: ✭ 41 (+241.67%)
Mutual labels:  truffle
clovers-contracts
Clovers network contracts
Stars: ✭ 18 (+50%)
Mutual labels:  truffle

CITAHub

CITA-Truffle-Box

English | 简体中文

CITA-Truffle-Box is based on truffle-box to develop and used for developing DApps on CITA. Please refer toour document for more details about CITA.

Notice: This project rewrite truffle migrate part of truffle-box, please read truffle-tutorial first, especially RUNNING MIGRATIONS part.

Installation

  1. Install Truffle globally

To use CITA-Truffle-Box, please install truffle.

yarn global add truffle
  1. Download
git clone https://github.com/cryptape/cita-truffle-box.git
cd cita-truffle-box/
rm -rf .git
yarn install

Configuration

You can configure your box in truffle.js.

The configure options are shown below.

module.exports = {
  networks: {
    development: {
      host: 'ip_address', // eg. '121.196.200.225'
      port: 'port', // eg. 1337
      network_id: '*', // Use '*' to match any network id
      privateKey: 'private key', // a string, required
      // the following parameters are OPTIONAL
      // validUntilBlock: 999999, // an int,  default to (current block number)+88
      // nonce: '999', // a string, default to random int
      // quota: 999999, // an int, defaut to 999999
    }, // you can add other network after here
  },
}

networks

You must use 'development' as the key for now.

  • host[required]
    Specify the host ip_address, don't add protocol name.

  • port[required]
    Specify the host port.

  • network_id[required]
    In order to be compatible with truffle, you have to set this attribute, but it's meaningless here.

  • privateKey [required]
    Your private key for sending transaction.

  • nonce [optional]
    Nonce is a string used to prevent double-spending, default to be a random number from 1 ~ 100. Note that the type of nonce is string.

  • quota [optional]
    Similar to gas in ethereum, default value is 99999.

  • validUntilBlock [optional]
    Similar to timeout, default to be current block height + 88

Compile

Compile the smart contract.

truffle compile

Migration

First, add your migration scripts in /migration, for the details, please refer RUNNING MIGRATIONS for more details.

Input the command to do migration. (Note that we can NOT use truffle migrate command here...)

yarn migrate
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].