UNPKG

@volare.finance/schemas.js

Version:
85 lines 4.38 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.FarmPoolSchema = exports.FarmPool = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let FarmPool = class FarmPool { }; exports.FarmPool = FarmPool; __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) ], FarmPool.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) ], FarmPool.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) ], FarmPool.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) ], FarmPool.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) ], FarmPool.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) ], FarmPool.prototype, "pid", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token0 address.', example: '0x21be370d5312f44cb42ce377bc9b8a0cef1a4c83' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmPool.prototype, "token0Address", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The token0 symbol.', example: 'WFTM' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], FarmPool.prototype, "token0Symbol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token1 address.', example: '0x321162cd933e2be498cd2267a90534a804051b11' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmPool.prototype, "token1Address", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The token1 symbol.', example: 'BTC' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], FarmPool.prototype, "token1Symbol", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The reward address.', example: '0x841fad6eae12c286d1fd18d1d525dffa75c7effe' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FarmPool.prototype, "rewardAddress", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The reward symbol.', example: 'BTC' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], FarmPool.prototype, "rewardSymbol", void 0); exports.FarmPool = FarmPool = __decorate([ (0, mongoose_1.Schema)({ collection: 'farm_pool' }) ], FarmPool); exports.FarmPoolSchema = mongoose_1.SchemaFactory.createForClass(FarmPool); //# sourceMappingURL=farm.pool.js.map