Skip to content

Commit ed96e61

Browse files
arvo: retool for goerli instead of deprecated ropsten
1 parent 361384d commit ed96e61

File tree

20 files changed

+75
-75
lines changed

20 files changed

+75
-75
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: build build-all install cross release test pills ropsten-pills clean
1+
.PHONY: build build-all install cross release test pills goerli-pills clean
22

33
build:
44
nix-build -A urbit --no-out-link
@@ -17,8 +17,8 @@ pills:
1717
sh/update-brass-pill
1818
sh/update-ivory-pill
1919

20-
ropsten-pills:
21-
sh/create-ropsten-pills
20+
goerli-pills:
21+
sh/create-goerli-pills
2222

2323
interface:
2424
sh/build-interface

default.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ let
117117
pill = solid.lfs;
118118
};
119119

120-
ivory-ropsten = ivory.override { arvo = arvo.ropsten; };
121-
brass-ropsten = brass.override { arvo = arvo.ropsten; };
120+
ivory-goerli = ivory.override { arvo = arvo.goerli; };
121+
brass-goerli = brass.override { arvo = arvo.goerli; };
122122

123123
# Create a .tgz of the primary binaries.
124124
tarball = let

nix/pkgs/arvo/default.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ stdenvNoCC.mkDerivation {
55

66
src = marsSources;
77

8-
outputs = [ "out" "ropsten" ];
8+
outputs = [ "out" "goerli" ];
99

10-
phases = [ "mainnetPhase" "ropstenPhase" ];
10+
phases = [ "mainnetPhase" "goerliPhase" ];
1111

1212
mainnetPhase = ''
1313
ln -s ${marsSources.out}/arvo $out
1414
'';
1515

16-
ropstenPhase = ''
17-
ln -s ${marsSources.ropsten}/arvo $ropsten
16+
goerliPhase = ''
17+
ln -s ${marsSources.goerli}/arvo $goerli
1818
'';
1919

2020
preferLocalBuild = true;

nix/pkgs/marsSources/default.nix

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,26 @@ stdenvNoCC.mkDerivation {
66

77
buildInputs = [ bc ];
88

9-
outputs = [ "out" "ropsten" ];
9+
outputs = [ "out" "goerli" ];
1010

11-
phases = [ "mainnetPhase" "ropstenPhase" ];
11+
phases = [ "mainnetPhase" "goerliPhase" ];
1212

1313
mainnetPhase = ''
1414
cp -r $src $out
1515
chmod -R u+w $out
1616
'';
1717

18-
ropstenPhase = ''
18+
goerliPhase = ''
1919
cp -r $src tmp
2020
chmod -R u+w tmp
2121
2222
ZUSE=tmp/arvo/sys/zuse.hoon
2323
AMES=tmp/arvo/sys/vane/ames.hoon
2424
ACME=tmp/arvo/app/acme.hoon
2525
26-
# Replace the mainnet azimuth contract with the ropsten contract
26+
# Replace the mainnet azimuth contract with the goerli contract
2727
sed --in-place \
28-
's/\(\+\+ contracts \)mainnet\-contracts/\1ropsten-contracts/' \
28+
's/\(\+\+ contracts \)mainnet\-contracts/\1goerli-contracts/' \
2929
$ZUSE
3030
3131
# Increment the %ames protocol version
@@ -38,8 +38,8 @@ stdenvNoCC.mkDerivation {
3838
's_https://acme-v02.api.letsencrypt.org/directory_https://acme-staging-v02.api.letsencrypt.org/directory_' \
3939
$ACME
4040
41-
cp -r tmp $ropsten
42-
chmod -R u+w $ropsten
41+
cp -r tmp $goerli
42+
chmod -R u+w $goerli
4343
'';
4444

4545
preferLocalBuild = true;

nix/pkgs/pill/brass.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ lib, stdenvNoCC, fetchGitHubLFS, bootFakeShip, solid, urbit, arvo, curl
2-
, withRopsten ? false }:
2+
, withGoerli ? false }:
33

44
let
55

@@ -9,14 +9,14 @@ in {
99
build = import ./builder.nix {
1010
inherit stdenvNoCC urbit curl;
1111

12-
name = "brass" + lib.optionalString withRopsten "-ropsten";
12+
name = "brass" + lib.optionalString withGoerli "-goerli";
1313
builder = ./brass.sh;
14-
arvo = if withRopsten then arvo.ropsten else arvo;
14+
arvo = if withGoerli then arvo.goerli else arvo;
1515
pier = bootFakeShip {
1616
inherit urbit;
1717

1818
pill = solid.lfs;
1919
ship = "zod";
2020
};
2121
};
22-
} // lib.optionalAttrs (!withRopsten) { inherit lfs; }
22+
} // lib.optionalAttrs (!withGoerli) { inherit lfs; }

nix/pkgs/pill/ivory.nix

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{ lib, stdenvNoCC, fetchGitHubLFS, bootFakeShip, solid, urbit, arvo, curl, xxd
2-
, withRopsten ? false }:
2+
, withGoerli ? false }:
33

44
let
55

@@ -9,9 +9,9 @@ in {
99
build = import ./builder.nix {
1010
inherit stdenvNoCC urbit curl;
1111

12-
name = "ivory" + lib.optionalString withRopsten "-ropsten";
12+
name = "ivory" + lib.optionalString withGoerli "-goerli";
1313
builder = ./ivory.sh;
14-
arvo = if withRopsten then arvo.ropsten else arvo;
14+
arvo = if withGoerli then arvo.goerli else arvo;
1515
pier = bootFakeShip {
1616
inherit urbit;
1717

@@ -39,4 +39,4 @@ in {
3939

4040
preferLocalBuild = true;
4141
};
42-
} // lib.optionalAttrs (!withRopsten) { inherit lfs; }
42+
} // lib.optionalAttrs (!withGoerli) { inherit lfs; }

pkg/arvo/app/claz.hoon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
::
186186
?- network
187187
%mainnet 0x1
188-
%ropsten 0x3
188+
%goerli 0x5
189189
%fakenet `@ux``@`1.337
190190
[%other *] id.network
191191
==

pkg/arvo/app/roller.hoon

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
:: frequency: time to wait between sending batches (TODO fancier)
6666
:: endpoint: ethereum rpc endpoint to use
6767
:: contract: ethereum contract address
68-
:: chain-id: mainnet, ropsten, local (https://chainid.network/)
68+
:: chain-id: mainnet, goerli, local (https://chainid.network/)
6969
:: resend-time: time to resend a batch with higher gas prie
7070
:: update-rate: frequency to update the roller's predicted state
7171
:: fallback-gas-price: default batch gas price
@@ -1019,7 +1019,7 @@
10191019
=, azimuth
10201020
?- net.config
10211021
%mainnet mainnet-contracts
1022-
%ropsten ropsten-contracts
1022+
%goerli goerli-contracts
10231023
%local local-contracts
10241024
%default contracts
10251025
==

pkg/arvo/gen/azimuth/watch.hoon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:: Change node url and network for azimuth
22
::
33
:- %say
4-
|= [* [url=@ta net=?(%mainnet %ropsten %local %default) ~] ~]
4+
|= [* [url=@ta net=?(%mainnet %goerli %local %default) ~] ~]
55
[%azimuth-poke %watch url net]

pkg/arvo/gen/roller/endpoint.hoon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
::
22
:- %say
3-
|= [* [url=@t net=?(%mainnet %ropsten %local) ~] ~]
3+
|= [* [url=@t net=?(%mainnet %goerli %local) ~] ~]
44
[%roller-action %config %endpoint url net]

0 commit comments

Comments
 (0)