@volare.finance/schemas.js
Version:
75 lines • 4.08 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.VolarePortfolioLogSchema = exports.VolarePortfolioLog = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let VolarePortfolioLog = class VolarePortfolioLog {
};
exports.VolarePortfolioLog = VolarePortfolioLog;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emitted.', example: 1654077437 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolarePortfolioLog.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The block number in which the transaction was recorded.', example: 12322633 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], VolarePortfolioLog.prototype, "blockNumber", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'The hash of the transaction which generates the current log.',
example: '0x65fa4623f851340bb4b1223e6b9ba4192eee6b3bc3dbd21256d69639cc9f9d6d',
}),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "transactionHash", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0x5322d18080c18ed152c03c13f09817bb0b51a486' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "owner", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The vault address.', example: '0x2cfdfa2699e21aae2fc552ccfe2908dd998e25b7' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "vaultAddress", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The vault name.', example: 'Volare Wrapped BTC Vault' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "vaultName", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The vault symbol.', example: 'vvWBTC' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "vaultSymbol", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The event name.', example: 'Deposit' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "name", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The assets amount.', example: '10000000000000000' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "assets", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The assets amount.', example: '10000000000000000' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolarePortfolioLog.prototype, "shares", void 0);
exports.VolarePortfolioLog = VolarePortfolioLog = __decorate([
(0, mongoose_1.Schema)({ collection: 'volare_portfolio_log' })
], VolarePortfolioLog);
exports.VolarePortfolioLogSchema = mongoose_1.SchemaFactory.createForClass(VolarePortfolioLog);
//# sourceMappingURL=volare.portfolio.log.js.map