Skip to content

A comprehensive development pack for building decentralized applications (dApps) on the EpicChain network, specifically designed for TypeScript developers

License

Notifications You must be signed in to change notification settings

epicchainlabs/epicchain-devpack-ts

Repository files navigation

EpicChain Devpack for TypeScript

This repo contains a new epicchain N3 TypeScript smart contract compiler. In other words, the tool in this repo allows you to write epicchain N3 Smart Contracts using TypeScript. This tool joins the larger family of epicchain EpicChain smart contract compilers including C#, Java, Python and Go.

Note, this project is under active development. It is not yet packaged as a stand alone tool. If you wish to try it with your own contract, please see the Samples section below.

Requirements

Usage

  • npm run setup: installs package dependencies + epicchainExpress as local tool
  • npm run build: compiles the devpack
  • npm run clean: cleans the build output
  • npm run samples: compiles the devpack and builds the sample contracts
  • npx foy <sample name>: builds the specified sample contract and runs the associated express.batch file if available

Samples

The foy task runner dynamically generates the samples to build from the contents of the samples directory. Any subdirectory of samples that doesn't start with an underscore is considered a sample. Each sample directory must contain a contract .ts file matching the name of the directory. If the sample directory contains an express.batch file, it will be run automatically after the contract is built.

Hello World

Simple contract that stores a byte string in contract storage and returns it when called.

Tank NEP-17 Token

Implements a sample NEP-17 fungible token contract

Hovercraft NEP-11 Token

Implements a sample NEP-11 non fungible token contract

Releases

No releases published

Packages

No packages published