0.9.0 • Published 6 months ago

@nilfoundation/smart-contracts v0.9.0

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
6 months ago

Table of Contents

Overview

This NPM package contains the Solidity libraries for interacting with the =nil; cluster. These extensions provide access to essential functionalities of =nil; such as making async calls, accepting external messages and working with custom tokens.

Installation

To install the package:

npm install @nilfoundation/smart-contracts

Contracts

The package includes four contracts:

  • Faucet.sol is a service contract for distributing tokens
  • Nil.sol is the extension library that allows for making async calls and performing other important operations
  • NilTokenBase.sol is the base contract for custom tokens on the cluster
  • SmartAccount.sol is the default smart account that is deployed by the =nil; CLI and Nil.js

Usage

To use the package, simply import it in a JS/TS or Solidity project:

import SmartAccount_compiled from '@nilfoundation/smart-contracts/artifacts/SmartAccount.json';
const smartAccount_bytecode = `0x${SmartAccount_compiled.evm.bytecode.object}`
pragma solidity ^0.8.0;

import "@nilfoundation/smart-contracts/contracts/SmartAccount.sol";
0.3.0

11 months ago

0.2.0

11 months ago

0.9.0

6 months ago

0.8.0

7 months ago

0.5.0

9 months ago

0.4.0

10 months ago

0.7.0

8 months ago

0.6.0

8 months ago

0.1.5

12 months ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago