loambuild / loam

build, deploy, and maintain ambitious smart contracts. monorepo for Loam SDK, CLI, and shared tools.
https://loam.build
2 stars 7 forks source link

build-clients: check if accounts are already created/funded #72

Open chadoh opened 2 months ago

chadoh commented 2 months ago

Follow-up to https://github.com/loambuild/loam-sdk/pull/42

In the "creating keys for _____" step, we want to speed things up and keep them more predictable by skipping key-generation and account-funding if the account already exists.

We should maybe ship this as an upstream update in soroban keys generate, which is what is used by build_clients.rs. I've created an issue there, to see how everyone feels about this logic being included in the main CLI:

BlaineHeffron commented 1 month ago

Currently a workaround is in place but once https://github.com/stellar/stellar-cli/issues/1380 and https://github.com/stellar/stellar-cli/issues/1389 are merged into an updated release, we can remove it.