UNPKG

@volare.finance/schemas.js

Version:
52 lines 2.81 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.FtBalanceSchema = exports.FtBalance = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let FtBalance = class FtBalance { }; exports.FtBalance = FtBalance; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp of balance changed.', example: 1667392247 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtBalance.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the transfer was emitted.', example: 15882348 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtBalance.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The ERC20 address.', example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtBalance.prototype, "contract", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The owner address.`, example: '0x9465dccc0237240163c240a6ced9d0e9421ca10b' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtBalance.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The owner balance.`, example: '5504392' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtBalance.prototype, "balance", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The owner balance after scaled (number type for easy sorting).`, example: 5.504392 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtBalance.prototype, "weight", void 0); exports.FtBalance = FtBalance = __decorate([ (0, mongoose_1.Schema)({ collection: 'ft_balance' }) ], FtBalance); exports.FtBalanceSchema = mongoose_1.SchemaFactory.createForClass(FtBalance); //# sourceMappingURL=ft.balance.js.map