Skip to content

Commit

Permalink
Add documentation about environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
MantisClone committed Dec 24, 2022
1 parent 51a2f0f commit c2ebc44
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -79,6 +79,18 @@ yarn run lint

### Test

Disable API tests OR define all required etherscan API keys.

```bash
export DISABLE_API_TESTS=1
# OR
export EXPLORER_API_KEY_MAINNET=
export EXPLORER_API_KEY_RINKEBY=
export EXPLORER_API_KEY_FUSE=
export EXPLORER_API_KEY_MATIC=
export EXPLORER_API_KEY_FANTOM=
```

Test all the packages in the monorepo.

```bash
Expand Down
19 changes: 19 additions & 0 deletions packages/payment-detection/README.md
Expand Up @@ -64,3 +64,22 @@ The code generation is included in the pre-build script and can be run manually:
```
yarn codegen
```

# Test

The `Multichain` `InfoRetriever` tests require etherscan API keys.

Before running the payment-detection tests, disable API tests OR define all
required etherscan API keys.

```bash
export DISABLE_API_TESTS=1
# OR
export EXPLORER_API_KEY_MAINNET=
export EXPLORER_API_KEY_RINKEBY=
export EXPLORER_API_KEY_FUSE=
export EXPLORER_API_KEY_MATIC=
export EXPLORER_API_KEY_FANTOM=

yarn run test
```

0 comments on commit c2ebc44

Please sign in to comment.