UNPKG

@volare.finance/schemas.js

Version:
80 lines 4.2 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.UniswapSwapSchema = exports.UniswapSwap = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let UniswapSwap = class UniswapSwap { }; exports.UniswapSwap = UniswapSwap; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emit.', example: 1646716612 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapSwap.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the event is emit.', example: 32850593 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapSwap.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The hash of the transaction which generates the current log.', example: '0x5415e80a8092d9000af9ca6358b71f3a81a27655a4ba67e3e9fb29c84aa358f5', }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapSwap.prototype, "transactionHash", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The log index in the transaction.', example: 13 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], UniswapSwap.prototype, "logIndex", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The pair address.', example: '0xfdb9ab8b9513ad9e419cf19530fee49d412c3ee3' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapSwap.prototype, "pairAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The sender of the amount0In or amount1In.', example: '0xf491e7b69e4244ad4002bc14e878a34207e38c29' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapSwap.prototype, "senderAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of token0 purchased.', example: '376583433727008726528' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapSwap.prototype, "amount0In", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of token1 purchased.', example: '0' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapSwap.prototype, "amount1In", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of token0 sold.', example: '0' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapSwap.prototype, "amount0Out", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of token1 sold.', example: '1297505' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], UniswapSwap.prototype, "amount1Out", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The receiver of the amount0Out or amount1Out.', example: '0x2807c572780d6c0e962298a1672d5fdebefe9668' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], UniswapSwap.prototype, "toAddress", void 0); exports.UniswapSwap = UniswapSwap = __decorate([ (0, mongoose_1.Schema)({ collection: 'uniswap_swap' }) ], UniswapSwap); exports.UniswapSwapSchema = mongoose_1.SchemaFactory.createForClass(UniswapSwap); //# sourceMappingURL=uniswap.swap.js.map