Skip to content

Instantly share code, notes, and snippets.

This Works

$foundry-docker-tutorial> forge create --rpc-url $RPC_URL --constructor-args "ForgeNFT" "FNFT" "https://ethereum.org" --private-key $PRIVATE_KEY ./src/NFT.sol:NFT
[⠒] Compiling...
No files changed, compilation skipped
Deployer: 0x496e09fcb240c33b8fda3b4b74d81697c03b6b3d
Deployed to: 0x06dbba6b2059a68ba34457546efd0c6f152a363b
Transaction hash: 0x5993d047faf2a3f7c69d5e01ff7cd1928927a1a1097aa011b5d52fa8cbe1a616
@dmfxyz
dmfxyz / murky_generate_data.py
Last active April 16, 2022 04:50
Murky Generate Standard Data
from eth_account import Account
import secrets
import argparse
import rlp
addresses = []
for i in range(100):
priv = secrets.token_hex(32)
acct = Account.from_key(priv)
addresses.append(acct.address)
PUSH1 0x20 PUSH2 0xA76 PUSH1 0x0 CODECOPY PUSH1 0x0 MLOAD PUSH1 0x10 PUSH1 0x20 DUP3 PUSH2 0xA56 ADD PUSH1 0x0 CODECOPY PUSH1 0x0 MLOAD GT PUSH2 0xA51 JUMPI PUSH1 0x20 DUP2 PUSH2 0xA56 ADD PUSH1 0x0 CODECOPY PUSH1 0x0 MLOAD DUP1 PUSH1 0x40 MSTORE PUSH1 0x0 DUP2 PUSH1 0x10 DUP2 GT PUSH2 0xA51 JUMPI DUP1 ISZERO PUSH2 0x072 JUMPI SWAP1 JUMPDEST PUSH1 0x20 PUSH1 0x20 DUP3 MUL PUSH1 0x20 DUP7 ADD ADD PUSH2 0xA56 ADD PUSH1 0x0 CODECOPY PUSH1 0x0 MLOAD DUP1 PUSH1 0xA0 SHR PUSH2 0xA51 JUMPI PUSH1 0x20 DUP3 MUL PUSH1 0x60 ADD MSTORE PUSH1 0x1 ADD DUP2 DUP2 XOR PUSH2 0x042 JUMPI JUMPDEST POP POP POP POP PUSH1 0x10 PUSH1 0x40 MLOAD GT ISZERO PUSH2 0x0E7 JUMPI PUSH1 0xE PUSH2 0x260 MSTORE PUSH32 0x6572722F6D61785F6F776E657273000000000000000000 PUSH2 0x280 MSTORE PUSH2 0x260 POP PUSH2 0x260 MLOAD DUP1 PUSH2 0x280 ADD DUP2 PUSH1 0x0 SUB PUSH1 0x1F AND CALLDATASIZE DUP3 CALLDATACOPY POP POP PUSH4 0x8C379A0 PUSH2 0x220 MSTORE PUSH1 0x20 PUSH2 0x240 MSTORE PUSH1 0x1F NOT PUSH1 0x1F PUSH2 0x260 MLOAD ADD AND PUSH1 0x44 ADD PUS
@dmfxyz
dmfxyz / rnet_config.json
Created March 3, 2024 02:00
rnet_config template base
{
"log_path": "infernet_node.log",
"server": {
"port": 4000
},
"chain": {
"enabled": true,
"trail_head_blocks": 5,
"rpc_url": "{rpc_url alchemy is a decent provider}",
"coordinator_address": "0x8d871ef2826ac9001fb2e33fdd6379b6aabf449c",