Skip to content

Latest commit

 

History

History
36 lines (33 loc) · 879 Bytes

File metadata and controls

36 lines (33 loc) · 879 Bytes

Assetchain Contracts for NextAIHack

This directory contains smart contracts, targeting the Assetchain blockchain.

Contracts

  • AssetchainToken.sol: Basic ERC20 token contract for Assetchain

How to Deploy

  1. Install dependencies:
    npm install -g hardhat
    npm install @assetchain/sdk
  2. Compile contracts:
    npx hardhat compile
  3. Deploy to Assetchain:
    • Configure your Hardhat network for Assetchain (see Assetchain Docs)
    • Example:
      // hardhat.config.js
      module.exports = {
        networks: {
          assetchain: {
            url: 'https://rpc.assetchain.org',
            accounts: [process.env.PRIVATE_KEY]
          }
        },
        solidity: '0.8.20',
      };
    • Deploy:
      npx hardhat run scripts/deploy.js --network assetchain