@volare.finance/schemas.js
Version:
42 lines • 2.41 kB
JavaScript
;
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.VolareCollateralLogSchema = exports.VolareCollateralLog = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let VolareCollateralLog = class VolareCollateralLog {
};
exports.VolareCollateralLog = VolareCollateralLog;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The updated timestamp.', example: 1655289127 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolareCollateralLog.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareCollateralLog.prototype, "owner", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The collateral address.', example: '0xe44a09787c1576b97fbe1da811090a51eddca04f' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], VolareCollateralLog.prototype, "asset", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The collateral amount.', example: 5 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], VolareCollateralLog.prototype, "amount", void 0);
exports.VolareCollateralLog = VolareCollateralLog = __decorate([
(0, mongoose_1.Schema)({ collection: 'volare_collateral_log' })
], VolareCollateralLog);
exports.VolareCollateralLogSchema = mongoose_1.SchemaFactory.createForClass(VolareCollateralLog);
//# sourceMappingURL=volare.collateral.log.js.map