erc6551crunch is a Rust implementation of the profanity tokenbound account (ERC6551).
- Install Rust
-
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
- Install
erc6551crunch
-
git clone https://github.com/Kay-79/erc6551crunch.git
-
cd erc6551crunch
- Build
-
cargo build --release
- Now you can crunch your profanity tokenbound account
-
cargo run --release <registry_address> <implement_address> <chain_id> <nft_address> <token_id>
-
Example: if you use implementUpgradeable for Tokenbound Account, you can use the following command to crunch the account.
registry_address:0x000000006551c19487814612e58FE06813775758implement_address:0x41C8f39463A868d3A88af00cd0fe7102F30E44eCchain_id:1(the chain ID where the NFT contract is deployed)nft_address:0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D(Bored Ape Yacht Club)token_id:1(BAYC #1)
cargo run --release 0x000000006551c19487814612e58FE06813775758 0x41C8f39463A868d3A88af00cd0fe7102F30E44eC 1 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D 1
-
Example: if you use implementProxy for Tokenbound Account, you can use the following command to crunch the account.
registry_address:0x000000006551c19487814612e58FE06813775758implement_proxy_address:0x55266d75D1a14E4572138116aF39863Ed6596E7Fchain_id:1(the chain ID where the NFT contract is deployed)nft_address:0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D(Bored Ape Yacht Club)token_id:1(BAYC #1)
cargo run --release 0x000000006551c19487814612e58FE06813775758 0x55266d75D1a14E4572138116aF39863Ed6596E7F 1 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D 1
- Check the result in the
result.txtfile
PRs welcome!