UNPKG

@volare.finance/schemas.js

Version:
75 lines 4 kB
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; }; var __metadata = (this && this.__metadata) || function (k, v) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.UniswapPairSchema = exports.UniswapPair = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let UniswapPair = class UniswapPair { }; exports.UniswapPair = UniswapPair; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emit.', example: 1618676996 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapPair.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the event is emit.', example: 32849732 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapPair.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The hash of the transaction which generates the current log.', example: '0x3b147970e6422e218babdd4c1302f696d975f77f0f08cb40ca32a2c42b5206c1', }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapPair.prototype, "transactionHash", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The factory contract which creates the pair contract.', example: '0x152ee697f2e276fa89e96742e9bb9ab1f2e61be3' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapPair.prototype, "factoryAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The pair address.', example: '0xfdb9ab8b9513ad9e419cf19530fee49d412c3ee3' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapPair.prototype, "pairAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token0 address.', example: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapPair.prototype, "token0Address", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The token0 symbol.', example: 'WFTM' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapPair.prototype, "token0Symbol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token1 address.', example: '0x321162cd933e2be498cd2267a90534a804051b11' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapPair.prototype, "token1Address", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The token1 symbol.', example: 'BTC' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapPair.prototype, "token1Symbol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The pair's index in the factory contract.`, example: 1 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapPair.prototype, "index", void 0); exports.UniswapPair = UniswapPair = __decorate([ (0, mongoose_1.Schema)({ collection: 'uniswap_pair' }) ], UniswapPair); exports.UniswapPairSchema = mongoose_1.SchemaFactory.createForClass(UniswapPair); //# sourceMappingURL=uniswap.pair.js.map