Skip to content

Commit

Permalink
Greated "game7 staker" CLI
Browse files Browse the repository at this point in the history
Made it so that it updates on `make` when the contract is updated.
  • Loading branch information
zomglings committed Jul 11, 2024
1 parent 38bde03 commit bc34226
Show file tree
Hide file tree
Showing 3 changed files with 4,655 additions and 3 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,17 @@ bindings/WrappedNativeToken/WrappedNativeToken.go: hardhat
mkdir -p bindings/WrappedNativeToken
seer evm generate --package WrappedNativeToken --output bindings/WrappedNativeToken/WrappedNativeToken.go --hardhat web3/artifacts/contracts/token/WrappedNativeToken.sol/WrappedNativeToken.json --cli --struct WrappedNativeToken

bindings: bindings/ERC20/ERC20.go bindings/TokenFaucet/TokenFaucet.go bindings/WrappedNativeToken/WrappedNativeToken.go
bindings/Staker/Staker.go: hardhat
mkdir -p bindings/Staker
seer evm generate --package Staker --output bindings/Staker/Staker.go --hardhat web3/artifacts/contracts/staking/Staker.sol/Staker.json --cli --struct Staker

bindings: bindings/ERC20/ERC20.go bindings/TokenFaucet/TokenFaucet.go bindings/WrappedNativeToken/WrappedNativeToken.go bindings/Staker/Staker.go

test:
npx hardhat test

clean:
rm -rf bindings/ERC20/* bin/* bindings/TokenFaucet/* bindings/WrappedNativeToken/*
rm -rf bindings/ERC20/* bin/* bindings/TokenFaucet/* bindings/WrappedNativeToken/* bindings/Staker/*

hardhat:
cd web3 && npm install && npx hardhat compile
Expand Down
Loading

0 comments on commit bc34226

Please sign in to comment.