Git Product home page Git Product logo

truffle-kaleido-box's Introduction

Truffle & Kaleido

Truffle & Kaleido Truffle Box

This box gives you a boilerplate to get up and running quickly with Truffle on a Kaleido chain.

Installation

First ensure you are in a new and empty directory. Choose one of the following options to download and install the Kaleido Truffle box

  1. In your preferred directory run the unbox command with npx. This will install all necessary dependencies.
npx truffle unbox kaleido-io/truffle-kaleido-box
  1. Alternatively, install Truffle globally and then run the unbox command in your preferred directory.
npm install -g truffle
truffle unbox kaleido-io/truffle-kaleido-box

Connect to Kaleido

  1. In the Kaleido console, navigate to your environment, click on Security in the left hand navigation menu, then click on App Creds

  2. Click New App Cred and give it a name and click Create. Do not close this window until we have completed the steps below

  3. Navigate to where you downloaded the Kaleido Truffle Box in the section above. Open up the truffle-config.js file in your preferred IDE

  4. Back in the Kaleido console, copy the JSON/RPC HTTP endpoint with valid App Creds that's generated in the right hand menu.

  5. Paste this full URL into Line 9 where you see 'nodeConnectionURL'. Make sure to keep the URL that you insert inside quotation marks

  6. If you are using Quorum in this environment, ensure to uncomment the type: "quorum" property on your network object.

Running Truffle

  1. Run the development console. This will instantiate a local chain for you to test that Truffle is working properly.
truffle develop
  1. Ensure that you're able to both compile, test, and finally migrate your contracts to your local chain.
compile
test
migrate
  1. If everything looks good, you can exit the Truffle console with .exit.

truffle-kaleido-box's People

Contributors

chaseadam avatar drewmarshburn avatar jimthematrix avatar peterbroadhurst avatar trevorsc19 avatar vdamle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

truffle-kaleido-box's Issues

`out of gas` on migration

newer solidity versions have out of gas issues deploying our sample contracts.

Specify the solidity version in the truffle-config.js

  compilers: {
    solc: {
      version: "0.5.0",
    },
  }

from @cruz:

@adam.chasen I believe in one of the more recent versions of truffle, we bumped the solidity version to 0.5.8 (which defaults the evmVersion to petersburg and would probably be the cause of outputing diff bytecode) (edited)

Note: truffle version is deprecated and no longer returns correct version information for solidity. Need to look at compile output to see which solidity truffle uses.

reference from public truffle channel: https://consensys.slack.com/archives/C1D2T7NLC/p1561670155102100

npm package install/remove errors on websocket directory

Not sure if this is part of our configuration or something universal to truffle (boxes):

npm ERR! path /home/achasen/tmp/truf/node_modules/websocket
npm ERR! code EISGIT
npm ERR! git /home/achasen/tmp/truf/node_modules/websocket: Appears to be a git repo or submodule.
npm ERR! git     /home/achasen/tmp/truf/node_modules/websocket
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.

Workaround: remove the directory

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.