Skip to content

d1r1/blendednewsdk

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample Hardhat Project

This project demonstrates a basic Hardhat use case. It comes with a sample contract, a test for that contract, and a Hardhat Ignition module that deploys that contract.

Try running some of the following tasks:

npx hardhat help
npx hardhat test
REPORT_GAS=true npx hardhat test
npx hardhat node
npx hardhat ignition deploy ./ignition/modules/Lock.ts

ComposableHelloWorld

In order to use this, create a .env DEPLOYER_PRIVATE_KEY = "Your private key here"

npm install
cd hellorust
make
cd ..
npm compile 
pnpm deploy (npx hardhat compile)

How to run?

  1. Create .env file in the root directory and add the following:
DEPLOYER_PRIVATE_KEY="Your private key here"
  1. Build wasm contract
cd hellorust
make
cd ..
  1. Compile the contract
npx hardhat compile
  1. Deploy the contract
npx hardhat deploy --network localhost

# or

npx hardhat deploy --network dev
  1. Interact with the contract
# SOLIDITY_CONTRACT_ADDRESS - was returned after the deploy command
npx hardhat get-greeting  --contract <SOLIDITY_CONTRACT_ADDRESS> --network localhost

About

new sdk blended app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 65.6%
  • Rust 15.9%
  • Makefile 9.3%
  • Solidity 9.2%