In the attempt to make every operation explicit and no hidden magic, we don't automatic create temp accounts to fund root accounts. In the TestnetWorker, the top level account has only 10 NEAR. User would have to specify sub accounts balance to 1-5 NEAR, or manually call addFundsFromNetwork a couple of times to have balance sufficient for tests.
I can think of two approaches to simplify without make anything implicit:
Ethereum truffle's approach. Specify a root account to use on testnet. User would need to take care and fund that root account periodically. This is because Ethereum doesn't have a addFundsFromNetwork. Developers will need fund their accounts with some faucets.
Create a dev-XXXX.testnet instead of dev-XXXX. Because the first one gives 200 NEAR, which should be sufficient for majority of tests. In the rare case where it's insufficient, user can adjust sub accounts' initial balance or manually call addFundsFromNetwork
In the attempt to make every operation explicit and no hidden magic, we don't automatic create temp accounts to fund root accounts. In the TestnetWorker, the top level account has only 10 NEAR. User would have to specify sub accounts balance to 1-5 NEAR, or manually call addFundsFromNetwork a couple of times to have balance sufficient for tests.
I can think of two approaches to simplify without make anything implicit:
addFundsFromNetwork
. Developers will need fund their accounts with some faucets.dev-XXXX.testnet
instead ofdev-XXXX
. Because the first one gives 200 NEAR, which should be sufficient for majority of tests. In the rare case where it's insufficient, user can adjust sub accounts' initial balance or manually call addFundsFromNetwork