UNPKG

@volare.finance/schemas.js

Version:
37 lines 1.97 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.ERC1155Schema = exports.ERC1155 = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let ERC1155 = class ERC1155 { }; exports.ERC1155 = ERC1155; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The ERC1155 address.', example: '0x5c891d76584b46bc7f1e700169a76569bb77d2db' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], ERC1155.prototype, "address", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The token's name.`, example: 'OKXFootballCup' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], ERC1155.prototype, "name", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The token's symbol.`, example: 'OKXFC' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], ERC1155.prototype, "symbol", void 0); exports.ERC1155 = ERC1155 = __decorate([ (0, mongoose_1.Schema)({ collection: 'erc1155' }) ], ERC1155); exports.ERC1155Schema = mongoose_1.SchemaFactory.createForClass(ERC1155); //# sourceMappingURL=erc1155.js.map