From 4642ece88f11accae5b4341f0398be7788f901c1 Mon Sep 17 00:00:00 2001 From: yosoyubik Date: Tue, 1 Jun 2021 14:28:17 +0200 Subject: [PATCH] naive: use get-network for retrieving chain data --- pkg/arvo/app/azimuth.hoon | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/pkg/arvo/app/azimuth.hoon b/pkg/arvo/app/azimuth.hoon index 7e9f5bc2a8..d5a8e8c056 100644 --- a/pkg/arvo/app/azimuth.hoon +++ b/pkg/arvo/app/azimuth.hoon @@ -71,14 +71,7 @@ ++ run-logs |= [nas=^state:naive logs=(list event-log:rpc:ethereum) =network] ^- [(list tagged-diff) ^state:naive] - =/ [contract=@ux chain-id=@] - =< [azimuth chain-id] - =, azimuth - ?- network - %mainnet mainnet-contracts - %ropsten ropsten-contracts - %local local-contracts - == + =/ [contract=@ux * chain-id=@ *] (get-network network) ?~ logs `nas ?~ mined.i.logs @@ -147,10 +140,10 @@ ^- card:agent:gall [%give %fact ~[/aggregator] %naive-diffs !>(+.tag)] :: -++ get-contract +++ get-network |= =network - ^- [contract=@ux chain-id=@] - =< [azimuth chain-id] + ^- [@ux @ux @ @] + =< [azimuth naive chain-id launch] =, azimuth ?- network %mainnet mainnet-contracts @@ -161,14 +154,7 @@ ++ start |= [state=app-state =network our=ship dap=term] ^- card:agent:gall - =/ [azimuth=@ux naive=@ux launch=@ud] - =< [azimuth naive launch] - =, azimuth - ?- network - %mainnet mainnet-contracts - %ropsten ropsten-contracts - %local local-contracts - == + =/ [azimuth=@ux naive=@ux * launch=@ud] (get-network network) =/ args=vase !> :+ %watch /[dap] ^- config:eth-watcher