UNPKG

@volare.finance/schemas.js

Version:
51 lines 2.8 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.VolareSwapPairSchema = exports.VolareSwapPair = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); const volare_swap_liquidity_1 = require("./volare.swap.liquidity"); let VolareSwapPair = class VolareSwapPair { }; exports.VolareSwapPair = VolareSwapPair; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The product symbol.', example: 'WETH' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareSwapPair.prototype, "product", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The expiry timestamp.', example: 1670400000 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareSwapPair.prototype, "expiry", 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) ], VolareSwapPair.prototype, "asset", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The cash symbol.', example: 'USDC' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareSwapPair.prototype, "cash", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: `The pair liquidity.` }), __metadata("design:type", volare_swap_liquidity_1.VolareSwapLiquidity) ], VolareSwapPair.prototype, "liquidity", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: `The number of positions held by the owner.`, example: { amount: 36 } }), __metadata("design:type", Object) ], VolareSwapPair.prototype, "position", void 0); exports.VolareSwapPair = VolareSwapPair = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_swap_pair' }) ], VolareSwapPair); exports.VolareSwapPairSchema = mongoose_1.SchemaFactory.createForClass(VolareSwapPair); //# sourceMappingURL=volare.swap.pair.js.map