From 08d783dc71192c68031cacc9217c56ba30a7a9ae Mon Sep 17 00:00:00 2001 From: Simonas Karuzas Date: Wed, 16 Dec 2020 19:41:14 +0200 Subject: [PATCH] feat: CLI config version Fixes #264 --- packages/daf-cli/default/client.yml | 1 + packages/daf-cli/default/default.yml | 33 ++++++++++++++-------------- 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/packages/daf-cli/default/client.yml b/packages/daf-cli/default/client.yml index d7bfa9b45e..03912a4a2d 100644 --- a/packages/daf-cli/default/client.yml +++ b/packages/daf-cli/default/client.yml @@ -1,3 +1,4 @@ +version: 1.0 server: hostname: localhost port: 3335 diff --git a/packages/daf-cli/default/default.yml b/packages/daf-cli/default/default.yml index 15fca0aa41..1c3ff44943 100644 --- a/packages/daf-cli/default/default.yml +++ b/packages/daf-cli/default/default.yml @@ -1,3 +1,4 @@ +version: 1.0 server: baseUrl: http://localhost:3332 port: 3332 @@ -52,19 +53,19 @@ ethr-did-resolver: $require: ethr-did-resolver?t=function&p=/ethr#getResolver $args: - networks: - - name: mainnet - rpcUrl: https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c - - name: rinkeby - rpcUrl: https://rinkeby.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c - - name: ropsten - rpcUrl: https://ropsten.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c - - name: kovan - rpcUrl: https://kovan.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c - - name: goerli - rpcUrl: https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c - - name: private - rpcUrl: http://localhost:8545/ - registry: '0x05cc574b19a3c11308f761b3d7263bd8608bc532' + - name: mainnet + rpcUrl: https://mainnet.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c + - name: rinkeby + rpcUrl: https://rinkeby.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c + - name: ropsten + rpcUrl: https://ropsten.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c + - name: kovan + rpcUrl: https://kovan.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c + - name: goerli + rpcUrl: https://goerli.infura.io/v3/5ffc47f65c4042ce847ef66a3fa70d4c + - name: private + rpcUrl: http://localhost:8545/ + registry: '0x05cc574b19a3c11308f761b3d7263bd8608bc532' web-did-resolver: $require: web-did-resolver?t=function&p=/web#getResolver @@ -77,11 +78,11 @@ universal-resolver: resolver: $require: did-resolver#Resolver $args: - - ethr: + - ethr: $ref: /ethr-did-resolver - web: + web: $ref: /web-did-resolver - io: + io: $ref: /universal-resolver agent: