UNPKG

@volare.finance/schemas.js

Version:
141 lines 7.28 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.MolochDaoSchema = exports.MolochDao = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); const eoa_1 = require("../eoa"); const nft_1 = require("../nft"); let MolochDao = class MolochDao { }; exports.MolochDao = MolochDao; __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) ], MolochDao.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) ], MolochDao.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The owner address.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "ownerAddress", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The owner.' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", eoa_1.EOA) ], MolochDao.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The DAO address.', example: '0xe7b60a3d443d4d7394be9f0cd81fd1549245ff35' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "contract", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The owners address who create the DAO.', example: '0xd894cf83f2f8d1d795b4c0ddc7f86e2baedef3b1' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "summoner", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The addresses of tokens allowed to be pledged by DAO.', example: ['0xdb6579f86a576390b89b8fc97391c3dc848f6c1a'], }), (0, mongoose_1.Prop)(), __metadata("design:type", Array) ], MolochDao.prototype, "approvedTokens", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The timestamp at create the DAO.', example: 1657094021 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "summoningTime", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The period duration.', example: 7200 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "periodDuration", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The voting period length.', example: 60 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "votingPeriodLength", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The grace period length.', example: 24 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "gracePeriodLength", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The number of deposits for submit new proposal.', example: '5000000' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "proposalDeposit", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'Maximum multiplier a YES voter will be obligated to pay in case of mass ragequit.', example: 3 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "dilutionBound", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The amount of reward to give to whoever processes a proposal.', example: '2000000' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "processingReward", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: `The dao contract's name in offchain.`, example: 'Polka City Asset' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], MolochDao.prototype, "name", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: `The dao contract's description in offchain.`, example: 'Polka City | Virtual Currency Investment Platform Polka City | A new fully autonomous contract based NFT platform that allows you to Invest in virtual assets in the form of a virtual city.', }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], MolochDao.prototype, "description", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: `The dao contract's image URL in offchain.`, example: 'https://lh3.googleusercontent.com/ohWULOqtOWbT4UsH-nHLFfOuWiRLMIJNRYt4y9Wf5cK2B-gHt3M_DV0SdvqkJDVM6j1j4luxWlhItSdnBZXzTdBb-5UTXezejhnpKlo=s130', }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], MolochDao.prototype, "image", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The external link.', example: 'https://www.polkacity.io/' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], MolochDao.prototype, "external_link", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The number of times this work has been favorite by addresses.', example: 3 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], MolochDao.prototype, "favorites", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The timestamp at user collected.' }), __metadata("design:type", Object) ], MolochDao.prototype, "collected", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The vault address.' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], MolochDao.prototype, "vaultAddress", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The vault.' }), __metadata("design:type", nft_1.NftVault) ], MolochDao.prototype, "vault", void 0); exports.MolochDao = MolochDao = __decorate([ (0, mongoose_1.Schema)({ collection: 'moloch_dao' }) ], MolochDao); exports.MolochDaoSchema = mongoose_1.SchemaFactory.createForClass(MolochDao); //# sourceMappingURL=moloch.dao.js.map