diff --git a/packages/apps/human-app/server/.env.example b/packages/apps/human-app/server/.env.example index a815cdcad5..15dda61543 100644 --- a/packages/apps/human-app/server/.env.example +++ b/packages/apps/human-app/server/.env.example @@ -1,6 +1,9 @@ HOST= PORT= REPUTATION_ORACLE_URL= +REDIS_PORT= +REDIS_HOST= +CACHE_TTL_ORACLE_DISCOVERY= E2E_TESTING_EMAIL_ADDRESS= E2E_TESTING_PASSWORD= E2E_TESTING_EXCHANGE_ORACLE_URL= diff --git a/packages/apps/human-app/server/package.json b/packages/apps/human-app/server/package.json index 33f96271bc..3617272b71 100644 --- a/packages/apps/human-app/server/package.json +++ b/packages/apps/human-app/server/package.json @@ -23,17 +23,24 @@ "@automapper/classes": "^8.8.1", "@automapper/core": "^8.8.1", "@automapper/nestjs": "^8.8.1", + "@human-protocol/sdk": "*", "@nestjs/axios": "^2.0.0", + "@nestjs/cache-manager": "^2.2.1", "@nestjs/common": "^10.2.7", "@nestjs/config": "^3.1.1", "@nestjs/core": "^10.2.8", "@nestjs/platform-express": "^10.2.6", "@nestjs/swagger": "^7.1.13", + "cache-manager": "^5.4.0", + "class-transformer": "^0.5.1", + "class-validator": "^0.14.1", "ethers": "^6.11.0", + "joi": "^17.12.2", "reflect-metadata": "^0.1.13", "rxjs": "^7.2.0" }, "devDependencies": { + "@nestjs/cache-manager": "^2.2.1", "@nestjs/cli": "^9.4.3", "@nestjs/schematics": "^9.2.0", "@nestjs/testing": "^9.4.3", @@ -43,9 +50,11 @@ "@types/supertest": "^2.0.15", "@typescript-eslint/eslint-plugin": "^5.0.0", "@typescript-eslint/parser": "^5.0.0", + "cache-manager-redis-store": "^3.0.1", "eslint": "^8.55.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.0.0", + "ioredis": "^5.3.2", "jest": "29.5.0", "nock": "^13.5.1", "prettier": "^3.1.1", diff --git a/packages/apps/human-app/server/src/app.module.ts b/packages/apps/human-app/server/src/app.module.ts index e6fd108551..1fbd4f02f3 100644 --- a/packages/apps/human-app/server/src/app.module.ts +++ b/packages/apps/human-app/server/src/app.module.ts @@ -11,6 +11,10 @@ import { OperatorModule } from './modules/user-operator/operator.module'; import { OperatorController } from './modules/user-operator/operator.controller'; import { WorkerController } from './modules/user-worker/worker.controller'; import { CommonConfigModule } from './common/config/common-config.module'; +import { CacheFactoryConfig } from './common/config/cache-factory.config'; +import { CacheModule } from '@nestjs/cache-manager'; +import { OracleDiscoveryController } from './modules/oracle-discovery/oracle-discovery.controller'; +import { OracleDiscoveryModule } from './modules/oracle-discovery/oracle-discovery.module'; import { JobsDiscoveryModule } from './modules/jobs-discovery/jobs-discovery.module'; import { JobsDiscoveryController } from './modules/jobs-discovery/jobs-discovery.controller'; import { JobAssignmentController } from './modules/job-assignment/job-assignment.controller'; @@ -27,6 +31,7 @@ import { RequestContext } from './common/utils/request-context.util'; AutomapperModule.forRoot({ strategyInitializer: classes(), }), + CacheModule.registerAsync(CacheFactoryConfig), HttpModule, WorkerModule, OperatorModule, @@ -34,12 +39,14 @@ import { RequestContext } from './common/utils/request-context.util'; JobAssignmentModule, ReputationOracleModule, CommonConfigModule, + OracleDiscoveryModule, ], controllers: [ AppController, OperatorController, WorkerController, JobsDiscoveryController, + OracleDiscoveryController, JobAssignmentController, ], providers: [RequestContext], diff --git a/packages/apps/human-app/server/src/common/config/cache-factory.config.ts b/packages/apps/human-app/server/src/common/config/cache-factory.config.ts new file mode 100644 index 0000000000..278680dfcc --- /dev/null +++ b/packages/apps/human-app/server/src/common/config/cache-factory.config.ts @@ -0,0 +1,20 @@ +import { CacheModuleAsyncOptions } from '@nestjs/common/cache'; +import { ConfigModule } from '@nestjs/config'; +import { EnvironmentConfigService } from './environment-config.service'; +import { redisStore } from 'cache-manager-redis-store'; +export const CacheFactoryConfig: CacheModuleAsyncOptions = { + isGlobal: true, + imports: [ConfigModule], + useFactory: async (configService: EnvironmentConfigService) => { + const store = await redisStore({ + socket: { + host: configService.cacheHost, + port: configService.cachePort, + }, + }); + return { + store: () => store, + }; + }, + inject: [EnvironmentConfigService], +}; diff --git a/packages/apps/human-app/server/src/common/config/environment-config.service.ts b/packages/apps/human-app/server/src/common/config/environment-config.service.ts index 2ebf782fca..293b8e48cb 100644 --- a/packages/apps/human-app/server/src/common/config/environment-config.service.ts +++ b/packages/apps/human-app/server/src/common/config/environment-config.service.ts @@ -14,6 +14,19 @@ export class EnvironmentConfigService { get reputationOracleUrl(): string { return this.configService.get('REPUTATION_ORACLE_URL', ''); } + get cachePort(): number { + return this.configService.get('REDIS_PORT', 6379); + } + get cacheHost(): string { + return this.configService.get('REDIS_HOST', 'localhost'); + } + + get cacheTtlOracleDiscovery(): number { + return this.configService.get( + 'CACHE_TTL_ORACLE_DISCOVERY', + 24 * 60 * 60, + ); + } } export const envValidator = Joi.object({ diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/interface/oracle-discovery.interface.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/interface/oracle-discovery.interface.ts new file mode 100644 index 0000000000..3dd9549023 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/interface/oracle-discovery.interface.ts @@ -0,0 +1,37 @@ +import { ChainId, IOperator } from '@human-protocol/sdk'; +import { AutoMap } from '@automapper/classes'; +import { ApiProperty } from '@nestjs/swagger'; + +export class OracleDiscoveryDto { + @AutoMap() + @ApiProperty({ example: 80001 }) + chainId: ChainId; + @AutoMap() + @ApiProperty({ example: '0x1a23b23432cf23f09f3f' }) + address: string; + @AutoMap() + @ApiProperty({ example: 'Exchange Oracle' }) + role: string; + constructor(chainId: ChainId, address: string, role: string) { + this.chainId = chainId; + this.address = address; + this.role = role; + } +} +export class OracleDiscoveryCommand { + @AutoMap() + chainId: ChainId; + @AutoMap() + address: string; + @AutoMap() + role: string; +} + +export class OracleDiscoveryResponse implements IOperator { + address: string; + role?: string; + constructor(address: string, role: string) { + this.address = address; + this.role = role; + } +} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.controller.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.controller.ts new file mode 100644 index 0000000000..c682105af5 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.controller.ts @@ -0,0 +1,38 @@ +import { + Body, + Controller, + Get, + UsePipes, + ValidationPipe, +} from '@nestjs/common'; +import { Mapper } from '@automapper/core'; +import { InjectMapper } from '@automapper/nestjs'; +import { ApiOperation, ApiTags } from '@nestjs/swagger'; +import { OracleDiscoveryService } from './oracle-discovery.serivce'; +import { + OracleDiscoveryCommand, + OracleDiscoveryResponse, + OracleDiscoveryDto, +} from './interface/oracle-discovery.interface'; + +@Controller() +export class OracleDiscoveryController { + constructor( + private readonly service: OracleDiscoveryService, + @InjectMapper() private readonly mapper: Mapper, + ) {} + @ApiTags('Oracle-Discovery') + @Get('/discovery/oracles') + @ApiOperation({ summary: 'Oracles discovery' }) + @UsePipes(new ValidationPipe()) + public oracleDiscovery( + @Body() oracleDiscoveryDto: OracleDiscoveryDto, + ): Promise { + const oracleDiscoveryCommand = this.mapper.map( + oracleDiscoveryDto, + OracleDiscoveryDto, + OracleDiscoveryCommand, + ); + return this.service.processOracleDiscovery(oracleDiscoveryCommand); + } +} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.mapper.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.mapper.ts new file mode 100644 index 0000000000..18d2ce8864 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.mapper.ts @@ -0,0 +1,20 @@ +import { Injectable } from '@nestjs/common'; +import { AutomapperProfile, InjectMapper } from '@automapper/nestjs'; +import { createMap, Mapper } from '@automapper/core'; +import { + OracleDiscoveryCommand, + OracleDiscoveryDto, +} from './interface/oracle-discovery.interface'; + +@Injectable() +export class OracleDiscoveryProfile extends AutomapperProfile { + constructor(@InjectMapper() mapper: Mapper) { + super(mapper); + } + + override get profile() { + return (mapper: Mapper) => { + createMap(mapper, OracleDiscoveryDto, OracleDiscoveryCommand); + }; + } +} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.module.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.module.ts new file mode 100644 index 0000000000..758fb807e0 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.module.ts @@ -0,0 +1,11 @@ +import { Module } from '@nestjs/common'; +import { OracleDiscoveryController } from './oracle-discovery.controller'; +import { OracleDiscoveryService } from './oracle-discovery.serivce'; +import { OracleDiscoveryProfile } from './oracle-discovery.mapper'; + +@Module({ + controllers: [OracleDiscoveryController], + providers: [OracleDiscoveryService, OracleDiscoveryProfile], + exports: [OracleDiscoveryService], +}) +export class OracleDiscoveryModule {} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.serivce.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.serivce.ts new file mode 100644 index 0000000000..c593a921e8 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/oracle-discovery.serivce.ts @@ -0,0 +1,48 @@ +import { Inject, Injectable } from '@nestjs/common'; +import { + OracleDiscoveryCommand, + OracleDiscoveryResponse, +} from './interface/oracle-discovery.interface'; +import { CACHE_MANAGER } from '@nestjs/cache-manager'; +import { Cache } from 'cache-manager'; +import { OperatorUtils } from '@human-protocol/sdk'; +import { EnvironmentConfigService } from '../../common/config/environment-config.service'; +@Injectable() +export class OracleDiscoveryService { + constructor( + @Inject(CACHE_MANAGER) private cacheManager: Cache, + private configService: EnvironmentConfigService, + ) {} + + async processOracleDiscovery( + command: OracleDiscoveryCommand, + ): Promise { + let data: OracleDiscoveryResponse[] | undefined = + await this.cacheManager.get(command.address); + if (!data) { + data = await this.getOperatorsForOracleDiscovery(command); + await this.setOperatorsForAddress(command.address, data); + } + return data; + } + + async getOperatorsForOracleDiscovery( + cmd: OracleDiscoveryCommand, + ): Promise { + return OperatorUtils.getReputationNetworkOperators( + cmd.chainId, + cmd.address, + cmd.role, + ); + } + async setOperatorsForAddress( + address: string, + operators: OracleDiscoveryResponse[], + ): Promise { + return this.cacheManager.set( + address, + operators, + this.configService.cacheTtlOracleDiscovery, + ); + } +} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.controller.spec.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.controller.spec.ts new file mode 100644 index 0000000000..0e86b9276e --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.controller.spec.ts @@ -0,0 +1,65 @@ +import { Test, TestingModule } from '@nestjs/testing'; +import { AutomapperModule } from '@automapper/nestjs'; +import { classes } from '@automapper/classes'; +import { OracleDiscoveryController } from '../oracle-discovery.controller'; +import { OracleDiscoveryService } from '../oracle-discovery.serivce'; +import { oracleDiscoveryServiceMock } from './oracle-discovery.service.mock'; +import { OracleDiscoveryProfile } from '../oracle-discovery.mapper'; +import { + OracleDiscoveryCommand, + OracleDiscoveryResponse, + OracleDiscoveryDto, +} from '../interface/oracle-discovery.interface'; +import { ChainId } from '@human-protocol/sdk'; +import { generateOracleDiscoveryResponseBody } from './oracle-discovery.fixture'; + +describe('OracleDiscoveryController', () => { + let controller: OracleDiscoveryController; + let service: OracleDiscoveryService; + + beforeEach(async () => { + const module: TestingModule = await Test.createTestingModule({ + controllers: [OracleDiscoveryController], + imports: [ + AutomapperModule.forRoot({ + strategyInitializer: classes(), + }), + ], + providers: [OracleDiscoveryService, OracleDiscoveryProfile], + }) + .overrideProvider(OracleDiscoveryService) + .useValue(oracleDiscoveryServiceMock) + .compile(); + + controller = module.get( + OracleDiscoveryController, + ); + service = module.get(OracleDiscoveryService); + }); + + it('should be defined', () => { + expect(controller).toBeDefined(); + }); + + describe('oracle discovery', () => { + it('oracle discovery should be called with input in OracleDiscoveryDto format and return OracleDiscoveryData', async () => { + const dto: OracleDiscoveryDto = { + chainId: 80001, + address: '0x4708354213453af0cdC33eb75d94fBC00045841E', + role: 'Exchange Oracle', + }; + const result: OracleDiscoveryResponse[] = + await controller.oracleDiscovery(dto); + const expectedCommand = { + chainId: ChainId.POLYGON_MUMBAI, + address: dto.address, + role: 'Exchange Oracle', + } as OracleDiscoveryCommand; + expect(service.processOracleDiscovery).toHaveBeenCalledWith( + expectedCommand, + ); + const expectedResponse = generateOracleDiscoveryResponseBody(); + expect(result).toEqual(expectedResponse); + }); + }); +}); diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts new file mode 100644 index 0000000000..d3483e9b1e --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.fixture.ts @@ -0,0 +1,13 @@ +import { OracleDiscoveryResponse } from '../interface/oracle-discovery.interface'; + +export function generateOracleDiscoveryResponseBody() { + const response1: OracleDiscoveryResponse = { + address: '0xd06eac24a0c47c776Ce6826A93162c4AfC029047', + role: 'role1', + }; + const response2: OracleDiscoveryResponse = { + address: '0xd10c3402155c058D78e4D5fB5f50E125F06eb39d', + role: 'role2', + }; + return [response1, response2]; +} diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.mock.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.mock.ts new file mode 100644 index 0000000000..b9d98d5256 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.mock.ts @@ -0,0 +1,7 @@ +import { generateOracleDiscoveryResponseBody } from './oracle-discovery.fixture'; + +export const oracleDiscoveryServiceMock = { + processOracleDiscovery: jest + .fn() + .mockResolvedValue(generateOracleDiscoveryResponseBody()), +}; diff --git a/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts new file mode 100644 index 0000000000..56a965ae04 --- /dev/null +++ b/packages/apps/human-app/server/src/modules/oracle-discovery/spec/oracle-discovery.service.spec.ts @@ -0,0 +1,107 @@ +import { Test } from '@nestjs/testing'; +import { Cache } from 'cache-manager'; +import { OracleDiscoveryService } from '../oracle-discovery.serivce'; +import { CACHE_MANAGER } from '@nestjs/cache-manager'; +import { OperatorUtils } from '@human-protocol/sdk'; +import { + OracleDiscoveryCommand, + OracleDiscoveryResponse, +} from '../interface/oracle-discovery.interface'; +import { EnvironmentConfigService, envValidator } from '../../../common/config/environment-config.service'; +import { CommonConfigModule } from '../../../common/config/common-config.module'; +import { ConfigModule } from '@nestjs/config'; + +jest.mock('@human-protocol/sdk', () => ({ + OperatorUtils: { + getReputationNetworkOperators: jest.fn(), + }, +})); + +describe('OracleDiscoveryService', () => { + let oracleDiscoveryService: OracleDiscoveryService; + let cacheManager: Cache; + let configService: EnvironmentConfigService; + + beforeEach(async () => { + const moduleRef = await Test.createTestingModule({ + imports: [ + CommonConfigModule, + ConfigModule.forRoot({ + envFilePath: '.env', + isGlobal: true, + validationSchema: envValidator, + }), + ], + providers: [ + OracleDiscoveryService, + { + provide: CACHE_MANAGER, + useValue: { + get: jest.fn(), + set: jest.fn(), + }, + }, + ], + }).compile(); + configService = moduleRef.get( + EnvironmentConfigService, + ); + oracleDiscoveryService = moduleRef.get( + OracleDiscoveryService, + ); + cacheManager = moduleRef.get(CACHE_MANAGER); + }); + it('should be defined', () => { + expect(oracleDiscoveryService).toBeDefined(); + }); + + it('should return cached data if available', async () => { + const mockData: OracleDiscoveryResponse[] = [ + { address: 'mockAddress1', role: 'validator' }, + { address: 'mockAddress2', role: 'validator' }, + ]; + const command: OracleDiscoveryCommand = { + address: 'mockAddress', + chainId: 80001, + role: 'validator', + }; + jest.spyOn(cacheManager, 'get').mockResolvedValue(mockData); + + const result = await oracleDiscoveryService.processOracleDiscovery(command); + + expect(result).toEqual(mockData); + expect(cacheManager.get).toHaveBeenCalledWith(command.address); + expect(OperatorUtils.getReputationNetworkOperators).not.toHaveBeenCalled(); + }); + + it('should fetch and cache data if not already cached', async () => { + const mockData: OracleDiscoveryResponse[] = [ + { address: 'mockAddress1', role: 'validator' }, + { address: 'mockAddress2', role: 'validator' }, + ]; + const command: OracleDiscoveryCommand = { + address: 'mockAddress', + chainId: 80001, + role: 'validator', + }; + jest.spyOn(cacheManager, 'get').mockResolvedValue(undefined); + jest + .spyOn(OperatorUtils, 'getReputationNetworkOperators') + .mockResolvedValue(mockData); + + const result = await oracleDiscoveryService.processOracleDiscovery(command); + + expect(result).toEqual(mockData); + expect(cacheManager.get).toHaveBeenCalledWith(command.address); + expect(cacheManager.set).toHaveBeenCalledWith( + command.address, + mockData, + configService.cacheTtlOracleDiscovery, + ); + expect(OperatorUtils.getReputationNetworkOperators).toHaveBeenCalledWith( + command.chainId, + command.address, + command.role, + ); + }); +}); diff --git a/packages/apps/human-app/server/tsconfig.json b/packages/apps/human-app/server/tsconfig.json index b23fdd9e74..21da75fe79 100644 --- a/packages/apps/human-app/server/tsconfig.json +++ b/packages/apps/human-app/server/tsconfig.json @@ -7,7 +7,7 @@ "experimentalDecorators": true, "allowSyntheticDefaultImports": true, "allowJs": true, - "target": "es2017", + "target": "es2020", "sourceMap": true, "outDir": "./dist", "baseUrl": "./", diff --git a/yarn.lock b/yarn.lock index e23624f42a..5b4fb5390c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2813,12 +2813,12 @@ resolved "https://registry.yarnpkg.com/@graphql-typed-document-node/core/-/core-3.2.0.tgz#5f3d96ec6b2354ad6d8a28bf216a1d97b5426861" integrity sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ== -"@hapi/hoek@^9.0.0": +"@hapi/hoek@^9.0.0", "@hapi/hoek@^9.3.0": version "9.3.0" resolved "https://registry.yarnpkg.com/@hapi/hoek/-/hoek-9.3.0.tgz#8368869dcb735be2e7f5cb7647de78e167a251fb" integrity sha512-/c6rf4UJlmHlC9b5BaNvzAcFv7HZ2QHaV0D4/HNlBdvFnvQq8RI4kYdhyPCl7Xj+oWvTWQ8ujhqS53LIgAe6KQ== -"@hapi/topo@^5.0.0": +"@hapi/topo@^5.0.0", "@hapi/topo@^5.1.0": version "5.1.0" resolved "https://registry.yarnpkg.com/@hapi/topo/-/topo-5.1.0.tgz#dc448e332c6c6e37a4dc02fd84ba8d44b9afb012" integrity sha512-foQZKJig7Ob0BMAYBfcJk8d77QtOe7Wo4ox7ff1lQYoNNAb6jwcY1ncdoy2e9wQZzvNy7ODZCYJkK8kzmcAnAg== @@ -2956,7 +2956,7 @@ jest-util "^29.7.0" slash "^3.0.0" -"@jest/core@^29.7.0": +"@jest/core@^29.5.0", "@jest/core@^29.7.0": version "29.7.0" resolved "https://registry.yarnpkg.com/@jest/core/-/core-29.7.0.tgz#b6cccc239f30ff36609658c5a5e2291757ce448f" integrity sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg== @@ -3124,7 +3124,7 @@ slash "^3.0.0" write-file-atomic "^4.0.2" -"@jest/types@^29.6.3": +"@jest/types@^29.5.0", "@jest/types@^29.6.3": version "29.6.3" resolved "https://registry.yarnpkg.com/@jest/types/-/types-29.6.3.tgz#1131f8cf634e7e84c5e77bab12f052af585fba59" integrity sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw== @@ -3497,6 +3497,11 @@ resolved "https://registry.yarnpkg.com/@nestjs/axios/-/axios-2.0.0.tgz#2116fad483e232ef102a877b503a9f19926bd102" integrity sha512-F6oceoQLEn031uun8NiommeMkRIojQqVryxQy/mK7fx0CI0KbgkJL3SloCQcsOD+agoEnqKJKXZpEvL6FNswJg== +"@nestjs/cache-manager@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@nestjs/cache-manager/-/cache-manager-2.2.1.tgz#848bfa2e30066a00cc6100291639d2c3191330cf" + integrity sha512-mXj0zenuyMPJICokwVud4Kjh0+pzBNBAgfpx3I48LozNkd8Qfv/MAhZsb15GihGpbFRxafUo3p6XvtAqRm8GRw== + "@nestjs/cli@^9.4.3": version "9.5.0" resolved "https://registry.yarnpkg.com/@nestjs/cli/-/cli-9.5.0.tgz#ddf1b0e21b5507c151e0cd1a4cfcf6c55df7cb2e" @@ -3636,6 +3641,13 @@ dependencies: tslib "2.6.2" +"@nestjs/testing@^9.4.3": + version "9.4.3" + resolved "https://registry.yarnpkg.com/@nestjs/testing/-/testing-9.4.3.tgz#53ffbabdd38f500b145c30f2fbb76dedad393d79" + integrity sha512-LDT8Ai2eKnTzvnPaJwWOK03qTaFap5uHHsJCv6dL0uKWk6hyF9jms8DjyVaGsaujCaXDG8izl1mDEER0OmxaZA== + dependencies: + tslib "2.5.3" + "@nestjs/typeorm@^10.0.1": version "10.0.1" resolved "https://registry.yarnpkg.com/@nestjs/typeorm/-/typeorm-10.0.1.tgz#0b5c36c21a06c274f9d283e73988b887e7f0635b" @@ -4703,6 +4715,40 @@ resolved "https://registry.yarnpkg.com/@react-dnd/shallowequal/-/shallowequal-3.0.1.tgz#8056fe046a8d10a275e321ec0557ae652d7a4d06" integrity sha512-XjDVbs3ZU16CO1h5Q3Ew2RPJqmZBDE/EVf1LYp6ePEffs3V/MX9ZbL5bJr8qiK5SbGmUMuDoaFgyKacYz8prRA== +"@redis/bloom@1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@redis/bloom/-/bloom-1.2.0.tgz#d3fd6d3c0af3ef92f26767b56414a370c7b63b71" + integrity sha512-HG2DFjYKbpNmVXsa0keLHp/3leGJz1mjh09f2RLGGLQZzSHpkmZWuwJbAvo3QcRY8p80m5+ZdXZdYOSBLlp7Cg== + +"@redis/client@1.5.14": + version "1.5.14" + resolved "https://registry.yarnpkg.com/@redis/client/-/client-1.5.14.tgz#1107893464d092f140d77c468b018a6ed306a180" + integrity sha512-YGn0GqsRBFUQxklhY7v562VMOP0DcmlrHHs3IV1mFE3cbxe31IITUkqhBcIhVSI/2JqtWAJXg5mjV4aU+zD0HA== + dependencies: + cluster-key-slot "1.1.2" + generic-pool "3.9.0" + yallist "4.0.0" + +"@redis/graph@1.1.1": + version "1.1.1" + resolved "https://registry.yarnpkg.com/@redis/graph/-/graph-1.1.1.tgz#8c10df2df7f7d02741866751764031a957a170ea" + integrity sha512-FEMTcTHZozZciLRl6GiiIB4zGm5z5F3F6a6FZCyrfxdKOhFlGkiAqlexWMBzCi4DcRoyiOsuLfW+cjlGWyExOw== + +"@redis/json@1.0.6": + version "1.0.6" + resolved "https://registry.yarnpkg.com/@redis/json/-/json-1.0.6.tgz#b7a7725bbb907765d84c99d55eac3fcf772e180e" + integrity sha512-rcZO3bfQbm2zPRpqo82XbW8zg4G/w4W3tI7X8Mqleq9goQjAGLL7q/1n1ZX4dXEAmORVZ4s1+uKLaUOg7LrUhw== + +"@redis/search@1.1.6": + version "1.1.6" + resolved "https://registry.yarnpkg.com/@redis/search/-/search-1.1.6.tgz#33bcdd791d9ed88ab6910243a355d85a7fedf756" + integrity sha512-mZXCxbTYKBQ3M2lZnEddwEAks0Kc7nauire8q20oA0oA/LoA+E/b5Y5KZn232ztPb1FkIGqo12vh3Lf+Vw5iTw== + +"@redis/time-series@1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@redis/time-series/-/time-series-1.0.5.tgz#a6d70ef7a0e71e083ea09b967df0a0ed742bc6ad" + integrity sha512-IFjIgTusQym2B5IZJG3XKr5llka7ey84fw/NOYqESP5WUfQs9zz1ww/9+qoz4ka/S6KcGBodzlCeZ5UImKbscg== + "@reduxjs/toolkit@1.9.7", "@reduxjs/toolkit@^1.9.0", "@reduxjs/toolkit@^1.9.5": version "1.9.7" resolved "https://registry.yarnpkg.com/@reduxjs/toolkit/-/toolkit-1.9.7.tgz#7fc07c0b0ebec52043f8cb43510cf346405f78a6" @@ -5110,6 +5156,13 @@ dependencies: "@hapi/hoek" "^9.0.0" +"@sideway/address@^4.1.5": + version "4.1.5" + resolved "https://registry.yarnpkg.com/@sideway/address/-/address-4.1.5.tgz#4bc149a0076623ced99ca8208ba780d65a99b9d5" + integrity sha512-IqO/DUQHUkPeixNQ8n0JA6102hT9CmaljNTPmQ1u8MEhBo/R4Q8eKLN/vGZxuebwOroDB4cbpjheD4+/sKFK4Q== + dependencies: + "@hapi/hoek" "^9.0.0" + "@sideway/formula@^3.0.1": version "3.0.1" resolved "https://registry.yarnpkg.com/@sideway/formula/-/formula-3.0.1.tgz#80fcbcbaf7ce031e0ef2dd29b1bfc7c3f583611f" @@ -6564,6 +6617,14 @@ dependencies: "@types/istanbul-lib-report" "*" +"@types/jest@29.5.1": + version "29.5.1" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.1.tgz#83c818aa9a87da27d6da85d3378e5a34d2f31a47" + integrity sha512-tEuVcHrpaixS36w7hpsfLBLpjtMRJUE09/MHXn923LOVojDwyC14cWcfc0rDs0VEfUyYmt/+iX1kxxp+gZMcaQ== + dependencies: + expect "^29.0.0" + pretty-format "^29.0.0" + "@types/jest@29.5.11", "@types/jest@^29.5.11": version "29.5.11" resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.11.tgz#0c13aa0da7d0929f078ab080ae5d4ced80fa2f2c" @@ -6691,6 +6752,13 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-18.15.13.tgz#f64277c341150c979e42b00e4ac289290c9df469" integrity sha512-N+0kuo9KgrUQ1Sn/ifDXsvg0TTleP7rIy4zOBGECxAljqvqfqpTfzx0Q1NUedOixRMBfe2Whhb056a42cWs26Q== +"@types/node@20.10.4": + version "20.10.4" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.10.4.tgz#b246fd84d55d5b1b71bf51f964bd514409347198" + integrity sha512-D08YG6rr8X90YB56tSIuBaddy/UXAA9RKJoFvrsnogAum/0pmjkgi4+2nx96A330FmioegBWmEYQ+syqCFaveg== + dependencies: + undici-types "~5.26.4" + "@types/node@^10.0.3": version "10.17.60" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b" @@ -6871,6 +6939,15 @@ resolved "https://registry.yarnpkg.com/@types/stack-utils/-/stack-utils-2.0.3.tgz#6209321eb2c1712a7e7466422b8cb1fc0d9dd5d8" integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw== +"@types/superagent@*": + version "8.1.4" + resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-8.1.4.tgz#f8290d1b7d6081f84f3047851c190c4a3c8cdb21" + integrity sha512-uzSBYwrpal8y2X2Pul5ZSWpzRiDha2FLcquaN95qUPnOjYgm/zQ5LIdqeJpQJTRWNTN+Rhm0aC8H06Ds2rqCYw== + dependencies: + "@types/cookiejar" "^2.1.5" + "@types/methods" "^1.1.4" + "@types/node" "*" + "@types/superagent@^8.1.0": version "8.1.1" resolved "https://registry.yarnpkg.com/@types/superagent/-/superagent-8.1.1.tgz#dbc620c5df3770b0c3092f947d6d5e808adae2bc" @@ -6880,6 +6957,13 @@ "@types/methods" "^1.1.4" "@types/node" "*" +"@types/supertest@^2.0.15": + version "2.0.16" + resolved "https://registry.yarnpkg.com/@types/supertest/-/supertest-2.0.16.tgz#7a1294edebecb960d957bbe9b26002a2b7f21cd7" + integrity sha512-6c2ogktZ06tr2ENoZivgm7YnprnhYE4ZoXGMY+oA7IuAf17M8FWvujXZGmxLv8y0PTyts4x5A+erSwVUFA8XSg== + dependencies: + "@types/superagent" "*" + "@types/supertest@^6.0.2": version "6.0.2" resolved "https://registry.yarnpkg.com/@types/supertest/-/supertest-6.0.2.tgz#2af1c466456aaf82c7c6106c6b5cbd73a5e86588" @@ -9461,6 +9545,22 @@ cache-content-type@^1.0.0: mime-types "^2.1.18" ylru "^1.2.0" +cache-manager-redis-store@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/cache-manager-redis-store/-/cache-manager-redis-store-3.0.1.tgz#8eeb211212763d04cef4058666182d624f714299" + integrity sha512-o560kw+dFqusC9lQJhcm6L2F2fMKobJ5af+FoR2PdnMVdpQ3f3Bz6qzvObTGyvoazQJxjQNWgMQeChP4vRTuXQ== + dependencies: + redis "^4.3.1" + +cache-manager@^5.4.0: + version "5.4.0" + resolved "https://registry.yarnpkg.com/cache-manager/-/cache-manager-5.4.0.tgz#cec47dbea8e49e0f6970d117be10172b4e621358" + integrity sha512-FS7o8vqJosnLpu9rh2gQTo8EOzCRJLF1BJ4XDEUDMqcfvs7SJZs5iuoFTXLauzQ3S5v8sBAST1pCwMaurpyi1A== + dependencies: + lodash.clonedeep "^4.5.0" + lru-cache "^10.1.0" + promise-coalesce "^1.1.2" + cacheable-lookup@^5.0.3: version "5.0.4" resolved "https://registry.yarnpkg.com/cacheable-lookup/-/cacheable-lookup-5.0.4.tgz#5a6b865b2c44357be3d5ebc2a467b032719a7005" @@ -10042,7 +10142,7 @@ clsx@^2.0.0: resolved "https://registry.yarnpkg.com/clsx/-/clsx-2.1.0.tgz#e851283bcb5c80ee7608db18487433f7b23f77cb" integrity sha512-m3iNNWpd9rl3jvvcBnu70ylMdrXt8Vlq4HYadnU5fwcOtvkSQWPmj7amUcDT2qYI7risszBjI5AUIUox9D16pg== -cluster-key-slot@^1.1.0: +cluster-key-slot@1.1.2, cluster-key-slot@^1.1.0: version "1.1.2" resolved "https://registry.yarnpkg.com/cluster-key-slot/-/cluster-key-slot-1.1.2.tgz#88ddaa46906e303b5de30d3153b7d9fe0a0c19ac" integrity sha512-RMr0FhtfXemyinomL4hrWcYJxmX6deFdCxpJzhDttxgO1+bcCnkk+9drydLVDmAMG7NE6aN/fl4F7ucU/90gAA== @@ -12707,10 +12807,6 @@ ethers@^6.11.0: tslib "2.4.0" ws "8.5.0" -ethers@^6.8.1: - version "6.9.0" - resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.9.0.tgz#a4534bdcdfde306aee94ef32f3d5c70d7e33fcb9" - integrity sha512-pmfNyQzc2mseLe91FnT2vmNaTt8dDzhxZ/xItAV7uGsF4dI4ek2ufMu3rAkgQETL/TIs0GS5A+U05g9QyWnv3Q== ethers@^6.8.1, ethers@^6.9.1: version "6.9.2" resolved "https://registry.yarnpkg.com/ethers/-/ethers-6.9.2.tgz#6f4632f62e2350fa8354ff28624027a175ef85a4" @@ -13577,6 +13673,11 @@ gauge@^3.0.0: strip-ansi "^6.0.1" wide-align "^1.1.2" +generic-pool@3.9.0: + version "3.9.0" + resolved "https://registry.yarnpkg.com/generic-pool/-/generic-pool-3.9.0.tgz#36f4a678e963f4fdb8707eab050823abc4e8f5e4" + integrity sha512-hymDOu5B53XvN4QT9dBmZxPX4CWhBPPLguTZ9MMFeFa/Kg0xWVfylOVNlJji/E7yTZWFd/q9GO5TxDLq156D7g== + gensync@^1.0.0-beta.2: version "1.0.0-beta.2" resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" @@ -15999,7 +16100,7 @@ jest-circus@^29.7.0: slash "^3.0.0" stack-utils "^2.0.3" -jest-cli@^29.7.0: +jest-cli@^29.5.0, jest-cli@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-29.7.0.tgz#5592c940798e0cae677eec169264f2d839a37995" integrity sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg== @@ -16335,6 +16436,16 @@ jest-worker@^29.7.0: merge-stream "^2.0.0" supports-color "^8.0.0" +jest@29.5.0: + version "29.5.0" + resolved "https://registry.yarnpkg.com/jest/-/jest-29.5.0.tgz#f75157622f5ce7ad53028f2f8888ab53e1f1f24e" + integrity sha512-juMg3he2uru1QoXX078zTa7pO85QyB9xajZc6bU+d9yEGwrKX6+vGmJQ3UdVZsvTEUARIdObzH68QItim6OSSQ== + dependencies: + "@jest/core" "^29.5.0" + "@jest/types" "^29.5.0" + import-local "^3.0.2" + jest-cli "^29.5.0" + jest@29.7.0, jest@^29.7.0: version "29.7.0" resolved "https://registry.yarnpkg.com/jest/-/jest-29.7.0.tgz#994676fc24177f088f1c5e3737f5697204ff2613" @@ -16360,6 +16471,17 @@ jmespath@0.16.0: resolved "https://registry.yarnpkg.com/jmespath/-/jmespath-0.16.0.tgz#b15b0a85dfd4d930d43e69ed605943c802785076" integrity sha512-9FzQjJ7MATs1tSpnco1K6ayiYE3figslrXA72G2HQ/n76RzvYlofyi5QM+iX4YRs/pu3yzxlVQSST23+dMDknw== +joi@^17.12.2: + version "17.12.2" + resolved "https://registry.yarnpkg.com/joi/-/joi-17.12.2.tgz#283a664dabb80c7e52943c557aab82faea09f521" + integrity sha512-RonXAIzCiHLc8ss3Ibuz45u28GOsWE1UpfDXLbN/9NKbL4tCJf8TWYVKsoYuuh+sAUt7fsSNpA+r2+TBA6Wjmw== + dependencies: + "@hapi/hoek" "^9.3.0" + "@hapi/topo" "^5.1.0" + "@sideway/address" "^4.1.5" + "@sideway/formula" "^3.0.1" + "@sideway/pinpoint" "^2.0.0" + joi@^17.9.2: version "17.11.0" resolved "https://registry.yarnpkg.com/joi/-/joi-17.11.0.tgz#aa9da753578ec7720e6f0ca2c7046996ed04fc1a" @@ -17494,6 +17616,11 @@ lru-cache@^10.0.2, "lru-cache@^9.1.1 || ^10.0.0": resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.1.0.tgz#2098d41c2dc56500e6c88584aa656c84de7d0484" integrity sha512-/1clY/ui8CzjKFyjdvwPWJUYKiFVXG2I2cY0ssG7h4+hwk+XOIX7ZSG9Q7TW8TW3Kp3BUSqgFWBLgL4PJ+Blag== +lru-cache@^10.1.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.0.tgz#0bd445ca57363465900f4d1f9bd8db343a4d95c3" + integrity sha512-2bIM8x+VAf6JT4bKAljS1qUWgMsqZRPGJS6FSahIMPVvctcNhyVp7AJu7quxOW9jwkryBReKZY5tY5JYv2n/7Q== + lru-cache@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" @@ -19881,7 +20008,7 @@ prettier@^2.3.1: resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== -prettier@^3.2.5: +prettier@^3.1.1, prettier@^3.2.5: version "3.2.5" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368" integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A== @@ -19935,6 +20062,11 @@ progress-stream@^2.0.0: speedometer "~1.0.0" through2 "~2.0.3" +promise-coalesce@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/promise-coalesce/-/promise-coalesce-1.1.2.tgz#5d3bc4d0b2cf2e41e9df7cbeb6519b2a09459e3d" + integrity sha512-zLaJ9b8hnC564fnJH6NFSOGZYYdzrAJn2JUUIwzoQb32fG2QAakpDNM+CZo1km6keXkRXRM+hml1BFAPVnPkxg== + promise@^8.0.0: version "8.3.0" resolved "https://registry.yarnpkg.com/promise/-/promise-8.3.0.tgz#8cb333d1edeb61ef23869fbb8a4ea0279ab60e0a" @@ -20737,6 +20869,18 @@ redis-parser@^3.0.0: dependencies: redis-errors "^1.0.0" +redis@^4.3.1: + version "4.6.13" + resolved "https://registry.yarnpkg.com/redis/-/redis-4.6.13.tgz#e247267c5f3ba35ab8277b57343d3a56acb2f0a6" + integrity sha512-MHgkS4B+sPjCXpf+HfdetBwbRz6vCtsceTmw1pHNYJAsYxrfpOP6dz+piJWGos8wqG7qb3vj/Rrc5qOlmInUuA== + dependencies: + "@redis/bloom" "1.2.0" + "@redis/client" "1.5.14" + "@redis/graph" "1.1.1" + "@redis/json" "1.0.6" + "@redis/search" "1.1.6" + "@redis/time-series" "1.0.5" + reduce-flatten@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/reduce-flatten/-/reduce-flatten-2.0.0.tgz#734fd84e65f375d7ca4465c69798c25c9d10ae27" @@ -22513,7 +22657,7 @@ superstruct@^1.0.3: resolved "https://registry.yarnpkg.com/superstruct/-/superstruct-1.0.3.tgz#de626a5b49c6641ff4d37da3c7598e7a87697046" integrity sha512-8iTn3oSS8nRGn+C2pgXSKPI3jmpm6FExNazNpjvqS6ZUJQCej3PUXEKM8NjHBOs54ExM+LPW/FBRhymrdcCiSg== -supertest@^6.3.4: +supertest@^6.1.3, supertest@^6.3.4: version "6.3.4" resolved "https://registry.yarnpkg.com/supertest/-/supertest-6.3.4.tgz#2145c250570c2ea5d337db3552dbfb78a2286218" integrity sha512-erY3HFDG0dPnhw4U+udPfrzXa4xhSG+n4rxfRuZWCUvjFWwKl+OxWf/7zk50s84/fAAs7vf5QAb9uRa0cCykxw== @@ -23217,6 +23361,11 @@ tslib@2.4.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.0.tgz#7cecaa7f073ce680a05847aa77be941098f36dc3" integrity sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ== +tslib@2.5.3: + version "2.5.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.5.3.tgz#24944ba2d990940e6e982c4bea147aba80209913" + integrity sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w== + tslib@2.6.2, tslib@^2.0.0, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0, tslib@^2.4.1, tslib@^2.5.0, tslib@^2.6.0, tslib@^2.6.1, tslib@^2.6.2: version "2.6.2" resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" @@ -24923,16 +25072,16 @@ y18n@^5.0.5: resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== +yallist@4.0.0, yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + yallist@^3.0.2: version "3.1.1" resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - yaml@1.10.2, yaml@^1.10.0, yaml@^1.10.2, yaml@^1.7.2: version "1.10.2" resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b"