Closed bitcoinbrisbane closed 6 days ago
The changes involve updates to various files in the weweswap-backend
project, including the addition of new features and dependencies. The package.json
file has been modified to include new scripts and dependencies, such as "axios-retry"
and "nestjs-axios-retry"
. A new getProof
method has been added to the MergeController
, which retrieves a proof array for a specified Ethereum address. Additionally, several new services, modules, and configuration settings have been introduced to enhance the application's functionality, including the ZapIn
feature and new environment variables.
File | Change Summary |
---|---|
package.json | Added scripts: "import" ; Added dependencies: "axios-retry": "^4.5.0" , "nestjs-axios-retry": "^1.0.7" ; Updated dependency version: "ts-node" from "^10.9.1" to "^10.9.2" . |
src/api/merge/merge.controller.ts | Added new method: async getProof(@Param("address") address: string): Promise<{ proof: string[] }> ; Updated constructor to include whitelistService . |
.env.test | Added new variables: ARRAKIS_RESOLVER_ADDRESS , KYBERSWAP_CONFIG , PRIVATE_KEY . |
.gitignore | Added /src/static to ignored paths; Added newline at end of file. |
README.md | Added instructions for importing whitelist data into MongoDB. |
src/abis/abi.ts | Added new constant: arrakisResolverAbi . |
src/api/merge/merge.module.ts | Added imports for WhitelistService , ContractConnectorsModule , and MongooseModule ; Updated providers to include WhitelistService . |
src/api/merge/whitelist.service.ts | Added class WhitelistService with method async getProofByAddress(address: string): Promise<string[]> . |
src/api/zap-in/zap-in.controller.ts | Added class ZapInController with method async getZapInRoute(@Body() zapInRouteBodyDto: GetZapInRouteBodyDto) . |
src/api/zap-in/zap-in.module.ts | Added ZapInModule with controller and service declarations. |
src/api/zap-in/zap-in.service.ts | Added class ZapInService with methods for handling "Zap In" functionality. |
src/app.module.ts | Added ZapInModule and AxiosRetryModule with retry settings. |
src/blockchain-connectors/blockchain-connectors.module.ts | Added EvmWriteService and modified EvmConnectorService initialization. |
src/blockchain-connectors/evm-write/evm-write.service.ts | Added class EvmWriteService with methods for interacting with EVM blockchains. |
src/config/configuration.ts | Added new environment variable configurations: privateKey , arrakisResolverAddress , kyberswapConfig . |
src/config/wewe-data-aggregator-config.service.ts | Added new getters for arrakisResolverAddress , kyberswapConfig , and privateKey . |
src/contract-connectors/arrakis-contracts/arrakis-contracts.service.ts | Added method public async getMintAmounts(arrakisResolverInput: ArrakisResolverInput) . |
src/database/importWhitelist.service.ts | Added class ImportService with methods for importing data from JSON files. |
src/database/schemas/WhitelistData.schema.ts | Added schema definition for Whitelist . |
src/dto/GetZapInRouteBodyDto.ts | Added DTO class GetZapInRouteBodyDto with properties for zap-in requests. |
src/import.ts | Added bootstrap function for initializing the import service. |
src/shared/class/KyberswapConfig.ts | Added class KyberswapConfig for managing Kyberswap configuration. |
src/shared/class/WeweDataAggregatorConfig.ts | Updated WeweConfig class with new properties and validations. |
src/shared/types/common.ts | Removed ArrakisUnderlyingAmounts interface and ranges type; added ArrakisResolverInput class. |
src/shared/types/kyberswap.ts | Added interfaces for handling KyberSwap API responses. |
tsconfig.json | Added include and exclude properties for TypeScript compilation. |
axios-retry
and nestjs-axios-retry
) to the package.json
, indicating a direct relation in enhancing HTTP request functionality.KYBERSWAP_CONFIG
environment variable in .env.test
, linking both PRs through their modifications to environment settings.In the warren of code, where changes bloom,
New paths are forged, dispelling the gloom.
With whitelists and zaps, we hop and play,
Building a future, bright as the day!
Each line a leap, each function a cheer,
In the garden of code, we flourish here! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
getErc20TokenTotalSupply
method.Documentation
Chores
.gitignore
file for better clarity on ignored paths.