UNPKG

@volare.finance/schemas.js

Version:
47 lines 2.54 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.VolareSwapLiquiditySchema = exports.VolareSwapLiquidity = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let VolareSwapLiquidity = class VolareSwapLiquidity { }; exports.VolareSwapLiquidity = VolareSwapLiquidity; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareSwapLiquidity.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The asset symbol.', example: 'WETH-07DEC22-1000-C' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareSwapLiquidity.prototype, "asset", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vToken volume.', example: 14 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareSwapLiquidity.prototype, "volume", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vToken bid1.', example: 10.2 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareSwapLiquidity.prototype, "bid1", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vToken ask1.', example: 9.8 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareSwapLiquidity.prototype, "ask1", void 0); exports.VolareSwapLiquidity = VolareSwapLiquidity = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_swap_liquidity' }) ], VolareSwapLiquidity); exports.VolareSwapLiquiditySchema = mongoose_1.SchemaFactory.createForClass(VolareSwapLiquidity); //# sourceMappingURL=volare.swap.liquidity.js.map