From 1f5d0f5d6666a6d0e810045bdaf7feae2c6d9924 Mon Sep 17 00:00:00 2001 From: OjusWiZard Date: Fri, 15 Nov 2024 22:51:10 +0530 Subject: [PATCH 1/2] Refactor (trader_pearl): Take ledger address from env-var Signed-off-by: OjusWiZard --- packages/packages.json | 2 +- packages/valory/services/trader_pearl/service.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index 29a500d0..44bea883 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -23,7 +23,7 @@ "skill/valory/check_stop_trading_abci/0.1.0": "bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini", "agent/valory/trader/0.1.0": "bafybeiehtji3tbjwckxuyjkjnjmmtk7g6m6fivohtzoc7sc4lnl775ij2e", "service/valory/trader/0.1.0": "bafybeig5tvnwrp25566hdpbhwltp65dgp3bidqw4hfec4z4tpssahi4wiy", - "service/valory/trader_pearl/0.1.0": "bafybeidyzckqhyeqsl7pcglqaofg3anshk56ujgqlax5bwsu3zzrc3vik4" + "service/valory/trader_pearl/0.1.0": "bafybeiha7ntopxijgkggplj4ix2kewq7tdzr4b5mttnoxazn2fsyzrkv3m" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", diff --git a/packages/valory/services/trader_pearl/service.yaml b/packages/valory/services/trader_pearl/service.yaml index 743d921f..1bf5b187 100644 --- a/packages/valory/services/trader_pearl/service.yaml +++ b/packages/valory/services/trader_pearl/service.yaml @@ -127,7 +127,7 @@ type: connection config: ledger_apis: ethereum: - address: http://host.docker.internal:8545 + address: ${GNOSIS_LEDGER_RPC:str:http://host.docker.internal:8545} chain_id: 100 default_gas_price_strategy: eip1559 poa_chain: false From a4a792770a9ad41615a1a35fd921bd726fdb48be Mon Sep 17 00:00:00 2001 From: OjusWiZard Date: Fri, 15 Nov 2024 23:54:10 +0530 Subject: [PATCH 2/2] refactor: update the rest of ledger_apis configs Signed-off-by: OjusWiZard --- packages/packages.json | 2 +- packages/valory/services/trader_pearl/service.yaml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/packages.json b/packages/packages.json index 44bea883..a8ceb293 100644 --- a/packages/packages.json +++ b/packages/packages.json @@ -23,7 +23,7 @@ "skill/valory/check_stop_trading_abci/0.1.0": "bafybeifmi64g4ki6zwbcncb35ovhd4sllw4xrszrkturpeqdhgf5bkiini", "agent/valory/trader/0.1.0": "bafybeiehtji3tbjwckxuyjkjnjmmtk7g6m6fivohtzoc7sc4lnl775ij2e", "service/valory/trader/0.1.0": "bafybeig5tvnwrp25566hdpbhwltp65dgp3bidqw4hfec4z4tpssahi4wiy", - "service/valory/trader_pearl/0.1.0": "bafybeiha7ntopxijgkggplj4ix2kewq7tdzr4b5mttnoxazn2fsyzrkv3m" + "service/valory/trader_pearl/0.1.0": "bafybeic26ovbgnb3l7dpgc33vy55ucv2ou7i7drkgcvohen72nhcso6iny" }, "third_party": { "protocol/open_aea/signing/1.0.0": "bafybeihv62fim3wl2bayavfcg3u5e5cxu3b7brtu4cn5xoxd6lqwachasi", diff --git a/packages/valory/services/trader_pearl/service.yaml b/packages/valory/services/trader_pearl/service.yaml index 1bf5b187..4b1471df 100644 --- a/packages/valory/services/trader_pearl/service.yaml +++ b/packages/valory/services/trader_pearl/service.yaml @@ -128,9 +128,9 @@ config: ledger_apis: ethereum: address: ${GNOSIS_LEDGER_RPC:str:http://host.docker.internal:8545} - chain_id: 100 - default_gas_price_strategy: eip1559 - poa_chain: false + chain_id: ${GNOSIS_LEDGER_CHAIN_ID:int:100} + default_gas_price_strategy: ${GNOSIS_LEDGER_PRICING:str:eip1559} + poa_chain: ${GNOSIS_LEDGER_IS_POA_CHAIN:bool:false} --- public_id: valory/p2p_libp2p_client:0.1.0 type: connection