UNPKG

@volare.finance/schemas.js

Version:
57 lines 3.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.VolareCollateralVaultSchema = exports.VolareCollateralVault = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let VolareCollateralVault = class VolareCollateralVault { }; exports.VolareCollateralVault = VolareCollateralVault; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareCollateralVault.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vault ID.', example: 1 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareCollateralVault.prototype, "vaultId", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The index in vault.', example: 0 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareCollateralVault.prototype, "index", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The collateral address.', example: '0xe44a09787c1576b97fbe1da811090a51eddca04f' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], VolareCollateralVault.prototype, "asset", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The collateral amount.', example: 5 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], VolareCollateralVault.prototype, "amount", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The first timestamp at which deposited collateral.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareCollateralVault.prototype, "ctime", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp when the amount changed.', example: 1655289127 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], VolareCollateralVault.prototype, "mtime", void 0); exports.VolareCollateralVault = VolareCollateralVault = __decorate([ (0, mongoose_1.Schema)({ collection: 'volare_collateral_vault' }) ], VolareCollateralVault); exports.VolareCollateralVaultSchema = mongoose_1.SchemaFactory.createForClass(VolareCollateralVault); //# sourceMappingURL=volare.collateral.vault.js.map