Documentation
  • Introduction
  • Chain Specifications
    • Lycan Mainnet
    • Lycan Betanet
  • Developers Integration
    • Wallets
      • Ledger
      • MetaMask
    • Smart Contracts
      • Develop & Deploy
        • Hardhat
        • Truffle
        • Foundry
        • Remix IDE
        • Cookbook
      • Interaction
        • Wagmi
        • Ethers.js
        • Web3.js
    • Faucet
    • Layer 2 SDK
    • Toolkit
      • APIS
      • Web sockets
      • Libraries
  • Staking and Rewards
    • Alpha (Running a Val node)
    • Beta (Becoming a Delegator)
    • Getting Rewards
  • Multi Chain Bridge
  • Grants
  • LNS
Powered by GitBook
On this page
  • Truffle Configuration for Lycan​
  • Compile your contract​
  • Deploy your contract​
  1. Developers Integration
  2. Smart Contracts
  3. Develop & Deploy

Truffle

Truffle is a world class development environment, testing framework and asset pipeline for blockchains using the Ethereum Virtual Machine (EVM), aiming to make life as a developer easier.

PreviousHardhatNextFoundry

Last updated 11 months ago

Check out Truffle for and .

Truffle Configuration for Lycan

Update the configuration file with the changes shown below for Lycan Chain, providing examples for JavaScript.

const HDWalletProvider = require('@truffle/hdwallet-provider');
const fs = require('fs');
const mnemonic = fs.readFileSync(".secret").toString().trim();

module.exports = {
  networks: {
    lycan: {
      provider: () => new HDWalletProvider(mnemonic, "https://rpc.lycanchain.com"),
      network_id: '*',       // Lycan Chain's network id
      gas: 4500000,          // Gas limit
      gasPrice: 10000000000  // 10 Gwei
    },
  },
  compilers: {
    solc: {
      version: "0.8.4",      // Fetch exact version from solc-bin (default: truffle's version)
    }
  },
  // Set default mocha options here, use special reporters etc.
  mocha: {
    // timeout: 100000
  }
};

Make sure you have the HDWalletProvider package installed by running:

npm install @truffle/hdwallet-provider
truffle compile
truffle migrate

Compile your contract

Deploy your contract

View your deployed contract on any of the .

installation details
an overview
​
​
​
explorers