roller: add generators to connect to eth nodes

This commit is contained in:
yosoyubik 2021-09-20 07:24:10 +02:00
parent 85debb1ce9
commit 9c3cd5240d
5 changed files with 19 additions and 5 deletions

View File

@ -72,12 +72,13 @@
==
::
+$ init [nas=^state:naive own=owners]
+$ net ?(%mainnet %ropsten %local)
::
+$ config
$% [%frequency frequency=@dr]
[%setkey pk=@]
[%endpoint endpoint=@t]
[%network net=?(%mainnet %ropsten %local)]
[%endpoint endpoint=@t =net]
[%network =net]
==
::
+$ action

View File

@ -1,4 +1,4 @@
::
:- %say
|= *
[%roller-action %config %endpoint 'http://0.0.0.0:8545']
|= [* [url=@t net=?(%mainnet %ropsten %local) ~] ~]
[%roller-action %config %endpoint url net]

View File

@ -0,0 +1,4 @@
::
:- %say
|= *
[%roller-action %config %endpoint 'http://0.0.0.0:8545' %local]

View File

@ -0,0 +1,4 @@
::
:- %say
|= [* [net=?(%mainnet %ropsten %local) ~] ~]
[%roller-action %config %network net]

View File

@ -1,4 +1,9 @@
::
:- %say
|= *
[%roller-action %config %endpoint 'https://ropsten.infura.io/v3/2599df54929b47099bda360958d75aaf']
:* %roller-action
%config
%endpoint
'https://ropsten.infura.io/v3/2599df54929b47099bda360958d75aaf'
%ropsten
==