UNPKG

@volare.finance/schemas.js

Version:
47 lines 2.61 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.FtBalanceHoldSchema = exports.FtBalanceHold = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let FtBalanceHold = class FtBalanceHold { }; exports.FtBalanceHold = FtBalanceHold; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp.', example: 1667392283 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtBalanceHold.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) ], FtBalanceHold.prototype, "contract", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The number of owners that have held the tokens.', example: 26699 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], FtBalanceHold.prototype, "all", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of owners who sents or receives tokens in (timestamp - 1day, timestamp].', example: 19805 }), (0, mongoose_1.Prop)(), __metadata("design:type", Number) ], FtBalanceHold.prototype, "active", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of tokens which are held by all owners.', example: '2736957827141471661095001' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], FtBalanceHold.prototype, "held", void 0); exports.FtBalanceHold = FtBalanceHold = __decorate([ (0, mongoose_1.Schema)({ collection: 'ft_balance_hold' }) ], FtBalanceHold); exports.FtBalanceHoldSchema = mongoose_1.SchemaFactory.createForClass(FtBalanceHold); //# sourceMappingURL=ft.balance.hold.js.map