TronLink / tronlink-extension-core

Apache License 2.0
3 stars 5 forks source link
chrome-extension javascript typescript

TronLink Extension Core

This project is a TypeScript and JavaScript-based module that utilizes the Node.js runtime environment and npm as a package manager.

The library serves as a core module within TronLink Extension, which provides low-level wallet functionality for both Tron and Ethereum networks, primary features includes account generation and transaction signing.

Getting Started

Installing

add @tronlink/core

npm install @tronlink/core

or

yarn add @tronlink/core

or

pnpm install @tronlink/core

Usage

The project includes utility classes for generating accounts and signing transactions for Tron and Ethereum.

Please refer to below demo:

Running the tests

The project includes a suite of tests for the TronLink Extension Core. To run these tests, use the following command:

pnpm test

Local build

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Build @tronlink/core

1. Install pnpm

This project recommends using pnpm as the build tool Make sure node is installed:

node -v

and install pnpm:

npm i -g pnpm
2. Clone the repository
git clone https://github.com/TronLink/tronlink-extension-core.git
3. Install dependencies
pnpm install
4. Compile TypeScript files
pnpm build

Built With

License

This project is licensed under the Apache License Version 2.0 - see the LICENSE file for details