UNPKG

@volare.finance/schemas.js

Version:
60 lines 3.13 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.FarmTvlSchema = exports.FarmTvl = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let FarmTvl = class FarmTvl { }; exports.FarmTvl = FarmTvl; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emit.', example: 1646717593 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FarmTvl.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the event is emit.', example: 32854079 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FarmTvl.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The hash of the transaction which generates the current log.', example: '0xdd07d272cb04fa80bebe498e30bc4f6c7f6789aee73e0ba7a579213e3e5eddaa', }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmTvl.prototype, "transactionHash", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The address of farm contract.', example: '0x0c600d41b9c7656e60c0bf76d79b1532b4770d0c' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmTvl.prototype, "farmAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The address of LP token contract.', example: '0xfdb9ab8b9513ad9e419cf19530fee49d412c3ee3' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmTvl.prototype, "lpTokenAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The pool Id.', example: 26 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FarmTvl.prototype, "pid", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The staked LP token amount.', example: '1087977' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmTvl.prototype, "stakedLpTokenAmount", void 0); exports.FarmTvl = FarmTvl = __decorate([ (0, mongoose_1.Schema)({ collection: 'farm_tvl' }) ], FarmTvl); exports.FarmTvlSchema = mongoose_1.SchemaFactory.createForClass(FarmTvl); //# sourceMappingURL=farm.tvl.js.map