└── README.md /README.md: -------------------------------------------------------------------------------- 1 | 2 | # SEISMIC DEVENET FULL GUIDE 3 | 4 | Welcome! This walkthrough is quick and requires only a minute of actual attention, with the rest being just waiting. 5 | 6 | If you run into any issues, check the FAQ section, where we’ve resolved 10 common errors. You can also join the Seismic Discord server and ask your questions in the #devnet channel. 7 | 8 | Please note that this is not an incentivized testnet. 9 | 10 | 11 | 12 | 13 | ## OVERVIEW 14 | 15 | #### Seismic Official Links 16 | 17 | 18 | | Siesmic Devnet | Links | 19 | | :-------- | :------- | 20 | | Network Name | Seismic devnet | 21 | | Currency Symbol | ETH | 22 | | Chain ID | 5124 | 23 | | RPC URL (HTTP) | `https://node-2.seismicdev.net/rpc | 24 | | RPC URL (WS) | wss://node-2.seismicdev.net/ws | 25 | | Explorer| https://explorer-2.seismicdev.net/ | 26 | | Faucet | https://faucet-2.seismicdev.net/ | 27 | 28 | 29 | ## SETUP GUIDE STEP - BY - STEP 30 | 31 | ## Deploy an encrypted contract 32 | 33 | Install Rust 34 | 35 | ```bash 36 | curl https://sh.rustup.rs -sSf | sh 37 | ``` 38 | Install jq for mac 39 | ```bash 40 | brew install jq 41 | 42 | ``` 43 | Install jq for ubuntu 44 | ```bash 45 | sudo apt install jq 46 | ``` 47 | Install sfoundryup 48 | ```bash 49 | curl -L \ 50 | -H "Accept: application/vnd.github.v3.raw" \ 51 | "https://api.github.com/repos/SeismicSystems/seismic-foundry/contents/sfoundryup/install?ref=seismic" | bash 52 | source ~/.bashrc 53 | ``` 54 | Run sfoundryup 55 | ```bash 56 | sfoundryup 57 | ``` 58 | Clone repository 59 | ```bash 60 | git clone --recurse-submodules https://github.com/SeismicSystems/try-devnet.git 61 | ``` 62 | ```bash 63 | cd try-devnet/packages/contract/ 64 | ``` 65 | Deploy contract 66 | ```bash 67 | bash script/deploy.sh 68 | 69 | ``` 70 | 71 | ## Interact with an encrypted contract 72 | 73 | Install Bun 74 | 75 | ```bash 76 | curl -fsSL https://bun.sh/install | bash 77 | ``` 78 | Install node dependencies 79 | ```bash 80 | cd try-devnet/packages/cli/ 81 | bun install 82 | 83 | ``` 84 | Send transactions 85 | ```bash 86 | bash script/transact.sh 87 | ``` 88 | 89 | 90 | ## FAQ ANSWERED FROM SEISMIC 91 | 92 | 1. What if I'm on Windows? 93 | 94 | We recommend using WSL to run commands as if you were on a Linux machine. Run 95 | 96 | ```bash 97 | wsl --install 98 | ``` 99 | Now restart your computer. After booting back up, you should be able to run the below command and follow the rest of the steps like normal 100 | 101 | 102 | ```bash 103 | wsl 104 | 105 | ``` 106 | --- 107 | 2. I'm stuck at 1108/1112 when running sfoundryup. 108 | Some machines take up to an hour to do this step. If it takes longer, ask a question in our Discord's #devnet channel. 109 | 110 | --- 111 | 112 | 3. I'm getting Command failed: cargo build --bins --release. 113 | 114 | Means your machine doesn't have Cargo. If you're on Linux, run 115 | ```bash 116 | sudo apt update && sudo apt install -y build-essential 117 | sudo apt install cargo -y 118 | 119 | ``` 120 | --- 121 | 122 | 4. I'm getting jq (command not found)? 123 | Means step #2 didn't work. If you're on Linux, run: 124 | ```bash 125 | sudo apt-get install jq 126 | 127 | ``` 128 | --- 129 | 130 | 5. I'm getting Address not funded. Please check if your faucet transaction went... 131 | Means your wallet has no testnet ETH. Please go to the faucet, enter the address the script gave you, and wait for the green confirmation. 132 | 133 | --- 134 | 135 | 6. I'm getting Command 'brew' not found? 136 | Means your machine doesn't have the Homebrew package manager. Run: 137 | ```bash 138 | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" 139 | 140 | ``` 141 | 142 | --- 143 | 144 | 7. I'm getting linker 'cc' not found. 145 | You can resolve it by running: 146 | 147 | ```bash 148 | sudo apt update && sudo apt install -y build-essential 149 | sudo apt install cargo -y 150 | 151 | ``` 152 | 153 | --- 154 | 155 | 8. I'm getting command not found: sfoundryup. 156 | If this comes up even after you complete step #3 successfully, restart your terminal. You should be able to run it after. 157 | 158 | ---- 159 | 160 | 9. I'm getting info: aborting installation. 161 | Means you aren't selecting an option for your Rust installation. Run the curl command again, and press Enter. 162 | 163 | --- 164 | 165 | 10. I'm getting Command: 'bun' not found. 166 | You need to add bun to your PATH. You can either do this temporarily in your current terminal via the command below (you'll have to do it for every new window): 167 | 168 | ```bash 169 | export PATH="/home/$(whoami)/.bun/bin:$PATH" 170 | 171 | ``` 172 | 173 | ```bash 174 | export PATH="/home/$(whoami)/.bun/bin:$PATH" 175 | 176 | ``` 177 | ---- 178 | 179 | 180 | ### FINAL STEP OF SEISMIC DEVNET 181 | If you have done all these steps, send a screenshot in the Seismic Discord on the #devnet channel. Let the photos include interactions on encrypted contract and deploy 182 | 183 | ## ABOUT ME 184 | 185 | Twitter -- https://x.com/SHASHI522004 186 | 187 | Github -- https://github.com/cryptowithshashi 188 | 189 | Telegram -- https://t.me/crypto_with_shashi 190 | 191 | 192 | Disclaimer -- I did not create or write any of these codes; they are all available on the official Seismic website. This repository was created solely to help the community, with no other intentions. If you have any questions or concerns, feel free to chat with us on Telegram. 193 | --------------------------------------------------------------------------------