@volare.finance/schemas.js
Version:
78 lines • 4.25 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.MolochWhitelistLandSchema = exports.MolochWhitelistLand = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let MolochWhitelistLand = class MolochWhitelistLand {
};
exports.MolochWhitelistLand = MolochWhitelistLand;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emitted.', example: 1657094021 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], MolochWhitelistLand.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The block number in which the transaction was recorded.', example: 11315769 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], MolochWhitelistLand.prototype, "blockNumber", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The whitelist address.', example: '0xd51dd1c70d8135010af193da2e58dbfa729d2e44' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "whitelistAddress", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The land address.', example: '0x544121a8f87f0e50526bf7ead09fdba1bc728563' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "address", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The land's name.`, example: 'ERC721Token' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "name", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The land's symbol.`, example: 'ITM' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "symbol", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The land's image.`, example: 'https://erc1155.daonest.org/images/test-land.png' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "image", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: `The land's description.`,
example: 'TESTLAND is a virtual land asset issued by DAOnest platform. Users can purchase and pledge TESTLAND to create DAOs.',
}),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "description", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({
description: `The land's metadata URI.`,
example: 'https://erc1155.daonest.org/metadata/0000000000000000000000000000000000000000000000000000000000000001.json',
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], MolochWhitelistLand.prototype, "token_uri", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Whether in white listed?', example: true }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Boolean)
], MolochWhitelistLand.prototype, "isWhitelisted", void 0);
exports.MolochWhitelistLand = MolochWhitelistLand = __decorate([
(0, mongoose_1.Schema)({ collection: 'moloch_whitelist_land' })
], MolochWhitelistLand);
exports.MolochWhitelistLandSchema = mongoose_1.SchemaFactory.createForClass(MolochWhitelistLand);
//# sourceMappingURL=moloch.whitelist.land.js.map