alikonuk1 / Will-Contract

Sends assets from an unreachable wallet to a predestined wallet.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Todo

  • Add ERC20 support
  • Disperse tokens
  • Withdraw funds from thirdparty protocols

Setup

You'll need the following:

  • RPC URL: A URL to connect to the blockchain. You can get public rpc's from Ankr.
  • PRIVATE_KEY: A private key from your wallet. You can get a private key from a new Metamask account.
  • API_KEY: A key to to verify our contract. You can get one from a desired chains block explorer.
forge install

git submodule init && git submodule update
npm install
#or
yarn

Foundry

forge build
forge test
forge create --rpc-url <your_rpc_url> --private-key <your_private_key> src/WillFactory.sol:WillFactory
# for chain id = https://evm-chainlist.netlify.app/
forge verify-contract --chain-id 80001 CONTRACT_ADDRESS src/WillFactory.sol:WillFactory API_KEY

Hardhat

npx hardhat compile
npx hardhat test
npx hardhat run scripts/deploy.js --network mumbai
npx hardhat verify <deployed_contracts_address> --contract contracts/WillFactory.sol:WillFactory --network mumbai

About

Sends assets from an unreachable wallet to a predestined wallet.


Languages

Language:Solidity 90.6%Language:TypeScript 5.0%Language:JavaScript 4.2%Language:Shell 0.1%