Skip to content

Commit

Permalink
refactor: W3GW_NUM_WALLETS -> W3G3_SEED_PHRASE_WALLETS
Browse files Browse the repository at this point in the history
  • Loading branch information
guidiaz committed Oct 9, 2023
1 parent dde6062 commit 432c2fd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Optional environment variables:
- `INFURA_GAS_PRICE`: default gas price, if not specified by the client; or maximum gas price threshold if either estimated by the provider, or provided by the client.
- `INFURA_GAS_PRICE_FACTOR`: multiplier applied to gas prices estimated by provider.
- `W3GW_LOG_LEVEL`: max log level to be traced, can be any of the following: `error`, `warn`, `info`, `http`, `verbose`, `debug`, `silly`. If not specified, `verbose` will apply.
- `W3GW_NUM_WALLETS`: number of wallet addresses to be handled by the gateway, derived from path '`m/44'/60'/0'/0/*`'.
- `W3GW_SEED_PHRASE_WALLETS`: number of wallet addresses to be handled by the gateway, derived from path '`m/44'/60'/0'/0/*`'.

### Celo-compatible destination providers:

Expand Down Expand Up @@ -91,7 +91,7 @@ Required environment variables:
Optional environment variables:

- `W3GW_LOG_LEVEL`: max log level to be traced, can be any of the following: `error`, `warn`, `info`, `http`, `verbose`, `debug`, `silly`. If not specified, `verbose` will apply.
- `W3GW_NUM_WALLETS`: number of EVM wallet addresses to be handled by the gateway. EVM addresses will be default ones attached to respective Reef addresses. First Reef address will be derived from '`${W3GW_SEED_PHRASE}`', while the following one from '`${W3GW_SEED_PHRASE}//${j}`' (with `j > 0`).
- `W3GW_SEED_PHRASE_WALLETS`: number of EVM wallet addresses to be handled by the gateway. EVM addresses will be default ones attached to respective Reef addresses. First Reef address will be derived from '`${W3GW_SEED_PHRASE}`', while the following one from '`${W3GW_SEED_PHRASE}//${j}`' (with `j > 0`).

### Generic destination providers:

Expand All @@ -113,7 +113,7 @@ Required environment variables:
Optional environment variables:

- `W3GW_NETWORK`: the network name to connect with.
- `W3GW_NUM_WALLETS`: number of wallet addresses to be handled by the gateway, derived from path '`m/44'/60'/0'/0/*`'.
- `W3GW_SEED_PHRASE_WALLETS`: number of wallet addresses to be handled by the gateway, derived from path '`m/44'/60'/0'/0/*`'.
- `W3GW_LOG_LEVEL`: max log level to be traced, can be any of the following: `error`, `warn`, `info`, `http`, `verbose`, `debug`, `silly`. If not specified, `verbose` will apply.
- `ETHERS_ALWAYS_SYNCED`: if set to `true`, the gateway will intercept calls to `eth_syncing` as to return `false` in all cases..
- `ETHERS_ESTIMATE_GAS_LIMIT`: if set to `true`, the provider will be asked to estimate the gas limit, before signing the transaction; if the provider-estimated gas limit is greater than `ETHERS_GAS_LIMIT`, the transaction will be rejected by the gateway.
Expand Down
4 changes: 2 additions & 2 deletions src/bin/reef/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ if (!seedPhrase) {

// Optional: number of wallet addresses to be handled by the server, derived from path '`m/44'/60'/0'/0/*`'.
let numAddresses
if (process.env.W3GW_NUM_WALLETS) {
numAddresses = parseInt(process.env.W3GW_NUM_WALLETS)
if (process.env.W3GW_SEED_PHRASE_WALLETS) {
numAddresses = parseInt(process.env.W3GW_SEED_PHRASE_WALLETS)
} else {
numAddresses = 1
}
Expand Down

0 comments on commit 432c2fd

Please sign in to comment.