Skip to content

Commit

Permalink
feat: deploy relay on sepolia
Browse files Browse the repository at this point in the history
Signed-off-by: Gregory Hill <[email protected]>
  • Loading branch information
gregdhill committed Aug 6, 2024
1 parent fbc9767 commit d406c67
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ Proof length is the number of headers needed before and after a retarget to upda

| Network | Name | Address |
|-------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------|
| BOB Sepolia (Testnet) | TestLightRelay | [0x4c51bc419ead57da0d825afae3090f2f76e5892d](https://testnet-explorer.gobob.xyz/address/0x4c51bc419ead57da0d825afae3090f2f76e5892d) |
| BOB Mainnet | LightRelay | [0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41](https://explorer.gobob.xyz/address/0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41) |
| BOB Sepolia (Old Testnet) | TestLightRelay | [0x4c51bc419ead57da0d825afae3090f2f76e5892d](https://testnet-explorer.gobob.xyz/address/0x4c51bc419ead57da0d825afae3090f2f76e5892d) |
| BOB Sepolia (New Testnet) | TestLightRelay | [0x377d6993b848013991e3d8b3028db74ec6fdf03a](https://bob-sepolia.explorer.gobob.xyz/address/0x377d6993b848013991e3d8b3028db74ec6fdf03a) |
| BOB Mainnet | LightRelay | [0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41](https://explorer.gobob.xyz/address/0x9fe7ef727da3d79e0308ff43f31ea1d077ee9f41) |

## Security
## Security (Light Relay)

Let's review the calculation given in the [Bitcoin Wiki](https://en.bitcoin.it/wiki/Difficulty) to compute the hashrate:

Expand Down
6 changes: 3 additions & 3 deletions sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"types": "dist/index.d.ts",
"scripts": {
"test": "vitest run test/*.ts",
"deploy-relay": "ts-node scripts/relay-genesis.ts",
"update-relay": "ts-node scripts/relay-retarget.ts",
"deploy-relay": "ts-node src/scripts/relay-genesis.ts",
"update-relay": "ts-node src/scripts/relay-retarget.ts",
"build": "tsc -p tsconfig.json"
},
"files": [
Expand Down Expand Up @@ -34,4 +34,4 @@
"bitcoin-address-validation": "^2.2.3",
"bitcoinjs-lib": "^6.1.6"
}
}
}
4 changes: 2 additions & 2 deletions sdk/src/scripts/relay-genesis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ async function main(): Promise<void> {
if (args["dev"]) {
rpcUrl = "http://localhost:8545";
} else if (args["rpc-url"] == "testnet") {
rpcUrl = "https://testnet.rpc.gobob.xyz/";
verifyOpts = "--verify --verifier blockscout --verifier-url 'https://testnet-explorer.gobob.xyz/api'";
rpcUrl = "https://bob-sepolia.rpc.gobob.xyz/";
verifyOpts = "--verify --verifier blockscout --verifier-url 'https://bob-sepolia.explorer.gobob.xyz/api'";
} else if (args["rpc-url"] == "mainnet") {
rpcUrl = "https://rpc.gobob.xyz/";
verifyOpts = "--verify --verifier blockscout --verifier-url 'https://explorer.gobob.xyz/api'";
Expand Down
2 changes: 1 addition & 1 deletion sdk/src/scripts/relay-retarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function main(): Promise<void> {
if (args["dev"]) {
rpcUrl = "http://localhost:8545";
} else if (args["rpc-url"] == "testnet") {
rpcUrl = "https://testnet.rpc.gobob.xyz/";
rpcUrl = "https://bob-sepolia.rpc.gobob.xyz/";
} else if (args["rpc-url"] == "mainnet") {
rpcUrl = "https://rpc.gobob.xyz/";
} else {
Expand Down

0 comments on commit d406c67

Please sign in to comment.