@volare.finance/schemas.js
Version:
56 lines • 2.92 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.FtBalanceInsightSchema = exports.FtBalanceInsight = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let FtBalanceInsight = class FtBalanceInsight {
};
exports.FtBalanceInsight = FtBalanceInsight;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp.', example: 1667392283 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], FtBalanceInsight.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The ERC20 address.', example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], FtBalanceInsight.prototype, "contract", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: '', example: 26699 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], FtBalanceInsight.prototype, "allHolders", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: '', example: 19805 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], FtBalanceInsight.prototype, "activeHolders", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
type: [Number],
description: 'The amount of new owners in [[0, 7), [7, 30), [30, 60), [60, 90), [90, infinite)] days ago.',
example: [712, 3358, 5546, 1806, 15277],
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", Array)
], FtBalanceInsight.prototype, "seniority", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The gini coefficient, see https://en.wikipedia.org/wiki/Gini_coefficient.', example: 0.9991524827089143 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], FtBalanceInsight.prototype, "gini", void 0);
exports.FtBalanceInsight = FtBalanceInsight = __decorate([
(0, mongoose_1.Schema)({ collection: 'ft_balance_insight' })
], FtBalanceInsight);
exports.FtBalanceInsightSchema = mongoose_1.SchemaFactory.createForClass(FtBalanceInsight);
//# sourceMappingURL=ft.balance.insight.js.map