Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alikonuk1/will-contract

Sends assets from an unreachable wallet to a predestined wallet.
https://github.com/alikonuk1/will-contract

Last synced: 22 days ago
JSON representation

Sends assets from an unreachable wallet to a predestined wallet.

Awesome Lists containing this project

README

        

## Todo

- [x] 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](https://www.ankr.com/protocol/).
- `PRIVATE_KEY`: A private key from your wallet. You can get a private key from a new [Metamask](https://metamask.io/) account.
- `API_KEY`: A key to to verify our contract. You can get one from a desired chains block explorer.

```shell
forge install

git submodule init && git submodule update
```

```shell
npm install
#or
yarn
```

# Foundry

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

# Hardhat

```shell
npx hardhat compile
```
```shell
npx hardhat test
```
```shell
npx hardhat run scripts/deploy.js --network mumbai
```
```shell
npx hardhat verify --contract contracts/WillFactory.sol:WillFactory --network mumbai
```