on master help sign in
dev: update l2 local environment instructions
c9bf94fyosoyubik
DEVELOPMENT.md+18−6
@@ -142,7 +142,7 @@ const baseUrl = 'https://gas-tank.urbit.org:3011';
1423. Download the Passport file, then use the enclosed Master Ticket and ID to login to Bridge again
1423. Download the Passport file, then use the enclosed Master Ticket and ID to login to Bridge again
143### Known Issues
143### Known Issues
144
144
145−When testing the invite acceptance and login flow on Ropsten, some of the Azimuth API calls will fail (e.g., `getConditional`).
145+When testing the invite acceptance and login flow on Ropsten, some of the Azimuth API calls will fail (e.g., `getConditional`).
146
146
147## Releases
147## Releases
148
148
@@ -157,11 +157,23 @@ verify the checksums on e.g. MacOS via `shasum -c checksums.txt`.
157To work with the L2 aggregator locally, set up the local environment like so:
157To work with the L2 aggregator locally, set up the local environment like so:
158
158
159```sh
159```sh
160−# Start Bridge with local blockchain preloaded with L1 and L2 points
160+# Start Bridge with local blockchain preloaded with L1 and L2 points, all owned by the address 0x6DEfFb0caFDB11D175F123F6891AA64F01c24F7d
161+
161npm run pilot-l2
162npm run pilot-l2
163+```
162
164
165+```dojo
163−# Build urbit at naive/roller branch, start a local fake ship, then run these in the dojo:
166+:: Build urbit at naive/roller branch, start a local fake ship, then run these in the dojo:
167+::
168+> |mount /=base=
169+> :azimuth %resub
170+> :azimuth|watch 'http://0.0.0.0:8545' %local
171+> |rein %base [& %roller] [& %roller-rpc] [& %azimuth-rpc]
172+> :roller|local
173+> :roller|setkey '58d62eb79797502bc0f66cd3e7a49d00287bff53a2734b799ef09cb746340ed0'
174+> :roller|quota 9.999
164−|cors-approve 'http://localhost:3000'
175+> |cors-approve 'http://localhost:3000'
165−:azimuth|watch 'http://0.0.0.0:8545' %local
176+:: Once L2 txs have been sent via Bridge, this will manually commit and batch them, avoiding waiting for the timer
166−|rein %base [& %roller] [& %roller-rpc] [& %azimuth-rpc]
177+::
178+> :roller|commit
167```
179```