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

0.6.0 • Public • Published

truffle-plugin

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-plugin

Setup

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

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

Next, add truffle-plugin 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-plugin 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-plugin

Weekly Downloads

0

Version

0.6.0

License

MIT

Unpacked Size

25.7 kB

Total Files

28

Last publish

Collaborators

  • kriptonio-admin