-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: swagger working examples for all environments (#71)
# What ❔ Dynamic swagger constants for different environments. ## Why ❔ Right now swagger examples are hardcoded and don't work on all envs which might be confusing for users. In order to provide better developer experience we want the default examples we provide to work on all envs out of the box. ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [X] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [X] Tests for the changes have been added / updated.
- Loading branch information
1 parent
fd5249c
commit e777cf5
Showing
12 changed files
with
218 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
{ | ||
"$schema": "https://json.schemastore.org/nest-cli", | ||
"collection": "@nestjs/schematics", | ||
"sourceRoot": "src" | ||
} | ||
"sourceRoot": "src", | ||
"compilerOptions": { | ||
"assets": [ | ||
"config/docs/constants.*.json" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"verifiedContractAddress": "0x2da10A1e27bF85cEdD8FFb1AbBe97e53391C0295", | ||
"verifiedContractAddress2": "0x1fa66e2B38d0cC496ec51F81c3e05E6A6708986F", | ||
"contractAddressWithLogs": "0x1fa66e2B38d0cC496ec51F81c3e05E6A6708986F", | ||
"txHash": "0xbca76582802d8172fe5bf6ba9c42d675a2ceab858dff555929f2c4021bf77386", | ||
"address": "0xd3D526A8CCA22Fe072cD1852faA4F0a6F2C21765", | ||
"addressWithInternalTx": "0x8B021d2BeD73675F7715422C4BFcBfE759890308", | ||
"addressTxWithInternalTransfers": "0x4683986b4d6b07aa5a8ba6c4a6aa7b1a420a0dfd944ac7128f3e4ab7bd74567c", | ||
"tokenAddress": "0x000000000000000000000000000000000000800A" | ||
} |
10 changes: 10 additions & 0 deletions
10
packages/api/src/config/docs/constants.testnet-goerli.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"verifiedContractAddress": "0x53E185A2FA7c9caF14A887E8E9a4862D4bd094ea", | ||
"verifiedContractAddress2": "0xbf2A1ACE3B12b81bab4985f05E850AcFCCb416E0", | ||
"contractAddressWithLogs": "0xbf2A1ACE3B12b81bab4985f05E850AcFCCb416E0", | ||
"txHash": "0x3d36c6e6a3625d698ef41d20c9457a6628254c8307df54b7c887e30f7dda00c8", | ||
"address": "0xE4ce1da467a7Ca37727eb7e19857e5167DE25966", | ||
"addressWithInternalTx": "0xbf2A1ACE3B12b81bab4985f05E850AcFCCb416E0", | ||
"addressTxWithInternalTransfers": "0x8a453b8dd3e095b3034dc3692663d5bf0c9883cbe6e9f9a0425a3ebf9b9360ab", | ||
"tokenAddress": "0x000000000000000000000000000000000000800A" | ||
} |
Oops, something went wrong.