Skip to content

etherlinkcom/token-deployments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Token Deployments

This repo contains token contracts to be deployed on Etherlink Mainnet by the Etherlink team. This project is a hardhat project built on the template provided by LayerZero.

The token deployments, including addresses, can be found under deployments/ and are summarized as follows:

  • WXTZ: Wrapped XTZ, exchange XTZ for WXTZ 1:1 on Etherlink. This should be deployed as a classic OFT.
  • tzBTC: Wrapped BTC, the contract owner can influence the supply of the token on Etherlink. This should be deployed as a custom OApp.

Module Guide

  • docs/: Documentation of the tokens
  • contracts/: Solidity smart contracts for tokens
  • deploy/: Deployment scripts for the solidity contracts
  • deployments/: Deployment addresses of contracts per network
  • scripts/: Typescript helpers and utilities
  • test/: Tests for the contracts

Setup

First, you should create and populate a .env file to set your environment variables as in .env.example. You can set either your wallet private key or mnemonic, for example:

PRIVATE_KEY="YOUR_PRIVATE_KEY"

To install project dependencies, run:

npm install

Quick Start

To compile and test the contracts run the following:

npx hardhat compile
npx hardhat test

Deploy

Classic OFTs

If the contract is an OFT, it's best to use the command provided by LayerZero and follow the steps outlined in the terminal:

npx hardhat lz:deploy

Custom OApps

If the contract is not a classic OFT, it is recommended to deploy it manually with hardhat-deploy instead as follows:

npx hardhat deploy --tags <TAG_OF_DEPLOYMENT> --network <DESIRED_NETWORK>

Verify

To verify your contract, run the following command:

npx hardhat verify <YOUR_CONTRACT_ADDRESS> --network <DESIRED_NETWORK> <YOUR_CONTRACT_CONSTRUCTOR_ARGS>

Audits and Security

Please refer to the Audit and Security sections for each of the respective under docs/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published