@kriptonio/truffle-kriptonio
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

truffle-kriptonio

Kriptonio plugin for Truffle

This plugin allows you to upload compiled hardhat smart contract artifacts to Kriptonio. On kriptonio side new smart contract will be created with attached artifacts, which you can afterward deploy and manage via kriptonio.

Installation

npm install @kriptonio/truffle-kriptonio

Setup

Add @kriptonio/truffle-kriptonio to plugins in your truffle-config.js file.

plugins: [
  '@kriptonio/truffle-kriptonio',
],

Next, add truffle-kriptonio config to your truffle-config.js file.

Configuration Options

option Description
accessToken (required) Kriptonio organization level access token. You can find it in your settings page.
chainId (required) ID of the chain where you want to deploy your smart contract. List of supported blockchain networks with their chain IDs you can find here.
contract (required) Smart contract name which you want to upload to kriptonio
title (optional) Title of kriptonio smart contract project to be created. Defaults to contract name.

Example configuration:

kriptonio: {
  title: 'My Token on Kriptonio',
  contract: 'MyERC20',
  accessToken: '<kriptonio-access-token>',
  chainId: 137,
},

Run

Before running truffle-kriptonio plugin, run compile.

truffle compile

Now you are ready to upload your smart contract to kriptonio.

truffle run kriptonio-upload

Readme

Keywords

none

Package Sidebar

Install

npm i @kriptonio/truffle-kriptonio

Weekly Downloads

10

Version

0.4.0

License

MIT

Unpacked Size

25.7 kB

Total Files

28

Last publish

Collaborators

  • kriptonio-admin