Sarcophagus is a decentralized dead man's switch built on Ethereum and Arweave.
git clone [email protected]:sarcophagus-org/sarcophagus-v2-app.git
cd sarcophagus-v2-app
nvm use
npm i --legacy-peer-deps
cp .env.example .env
- after creating a .env file, you’ll need to set
REACT_APP_INFURA_API_KEY
to an Infura API key that you own
You’ll need an address on the testnet funded with ETH and SARCO to run through the full create sarcophagus flow.
- Install metamask or other supported wallet
- On the network dropdown at the top of the MetaMask popup, select show/hide test networks and toggle on test networks
- Change your network to the testnet
- Import the private key for an account funded with Testnet Ether and SARCO
- On step 3 within the embalm flow, you’ll be prompted to fund your Bundlr account with Ether. This process can take up to 20 minutes to complete on testnets.
You may deploy the contracts on a local hardhat node and simulate an Arweave connection with ArLocal for local development. Note that you will not be able to connect to Bundlr when connecting the app to a local hardhat network. Step 3 (Fund Bundlr) will not be required.
- Run ArLocal and mint tokens -
npx arlocal
curl http://localhost:1984/mint/Xm17-cZJjcx-jc_UL5me1o5nfqC2T1mF-yu03gmKeK4/1000000000000000000000
curl http://localhost:1984/mine
- Install MetaMask
- On the network dropdown at the top of the MetaMask popup, select show/hide test networks and toggle on test networks
- Change your network to localhost:8545
- Inside of settings > networks > localhost:8545, change the localhost:8545 network’s chain id to 31337
- Start a local hardhat node (see the v2 contracts repo for more detailed instructions)
- Import the private key for an account funded with SARCO and Ether on the local hardhat network.
- The first account generated when the node is run from the v2 contracts project will be funded. Its private key
is
0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d
- The first account generated when the node is run from the v2 contracts project will be funded. Its private key
is
- Ensure that at least one archaeologist has been registered on your local hardhat node and is running on the local
hardhat network
- If your node is restarted, you will need to reregister your archaeologist
We can also be found on Telegram.
Made with 💀 and proudly decentralized.