UNPKG

@volare.finance/schemas.js

Version:
68 lines 3.48 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.NftVaultSchema = exports.NftVault = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); const eoa_1 = require("../eoa"); let NftVault = class NftVault { }; exports.NftVault = NftVault; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emitted.', example: 1657272179 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], NftVault.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the transaction was recorded.', example: 11391633 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], NftVault.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) ], NftVault.prototype, "ownerAddress", void 0); __decorate([ (0, swagger_1.ApiPropertyOptional)({ description: 'The owner.' }), (0, mongoose_1.Prop)(), __metadata("design:type", eoa_1.EOA) ], NftVault.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vault address.', example: '0x6620a3065d765244293dd9a90a6667a7416170b8' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], NftVault.prototype, "vaultAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The vault id.', example: 2 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], NftVault.prototype, "vaultId", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token address.', example: '0x544121a8f87f0e50526bf7ead09fdba1bc728563' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], NftVault.prototype, "tokenAddress", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The token id.', example: '2' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], NftVault.prototype, "tokenId", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The list price.', example: '1000000000000000000' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], NftVault.prototype, "price", void 0); exports.NftVault = NftVault = __decorate([ (0, mongoose_1.Schema)({ collection: 'nft_vault' }) ], NftVault); exports.NftVaultSchema = mongoose_1.SchemaFactory.createForClass(NftVault); //# sourceMappingURL=nft.vault.js.map