@volare.finance/schemas.js
Version:
56 lines • 3.23 kB
JavaScript
;
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.VolareWhitelistProductSchema = exports.VolareWhitelistProduct = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
const eth_1 = require("../eth");
let VolareWhitelistProduct = class VolareWhitelistProduct {
};
exports.VolareWhitelistProduct = VolareWhitelistProduct;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The product hash.', example: '0x2caac67f0995bec87ed66f9f8f51b7bcfd8ef6a386c71549ecdce6a0be743bab' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareWhitelistProduct.prototype, "hash", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The product symbol.', example: 'WETH' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareWhitelistProduct.prototype, "symbol", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The underlying address.', example: '0xe44a09787c1576b97fbe1da811090a51eddca04f' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareWhitelistProduct.prototype, "underlyingAsset", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The underlying detail.' }),
__metadata("design:type", eth_1.ERC20)
], VolareWhitelistProduct.prototype, "underlying", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The strike address.', example: '0xa252ae872060e0f13aa96dc91bbd52a5cfa60473' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], VolareWhitelistProduct.prototype, "strikeAsset", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The strike detail.' }),
__metadata("design:type", eth_1.ERC20)
], VolareWhitelistProduct.prototype, "strike", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Whether in whitelisted?', example: true }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Boolean)
], VolareWhitelistProduct.prototype, "isWhitelisted", void 0);
exports.VolareWhitelistProduct = VolareWhitelistProduct = __decorate([
(0, mongoose_1.Schema)({ collection: 'volare_whitelist_product' })
], VolareWhitelistProduct);
exports.VolareWhitelistProductSchema = mongoose_1.SchemaFactory.createForClass(VolareWhitelistProduct);
//# sourceMappingURL=volare.whitelist.product.js.map