Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/alikonuk1/will-contract
- Owner: alikonuk1
- Created: 2022-06-09T14:55:44.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-08-20T18:07:08.000Z (over 2 years ago)
- Last Synced: 2023-03-07T09:42:10.257Z (almost 2 years ago)
- Language: Solidity
- Homepage:
- Size: 1.53 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 installgit 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
```