Closed mario4tier closed 1 year ago
Observation notes:
sui-faucet --write-ahead-log /tmp/faucet.wal
consumes coins from the addresses coins, it doesn't mint new gassui-test-validator
does not have a client.yaml notion although their are commends in the code with a TODO to support thatDid implement with sui-faucet (so we can keep control on the genesis of the network for also supporting pre-funding).
The faucet has its own client/keystore in ~/sui-base/workdirs/localnet/faucet (does not interfere with the user config).
Handy commands implemented:
$ localnet faucet <address> ... <--- one or more address can be specified
$ localnet faucet all <-- Send coins to every addresses in the user sui.keystore
$ localnet faucet <--- faucet balance, address, IP:port etc...
sui-base.yaml:
sui_faucet_enabled: true
sui_faucet_genesis_funding: 800000000000
sui_faucet_host_ip: "0.0.0.0"
sui_faucet_port: 9123
sui_faucet_max_request_per_second: 100
sui_faucet_num_coins: 5
sui_faucet_coin_value: 200000000
sui_faucet_request_buffer_size: 200
sui_faucet_client_timeout_secs: 10
Investigate. If implemented, should be configurable through sui-base.yaml:
https://forums.sui.io/t/running-local-gas-faucet-url/25773/4