@volare.finance/schemas.js
Version:
66 lines • 3.35 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.NftClaimSchema = exports.NftClaim = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let NftClaim = class NftClaim {
};
exports.NftClaim = NftClaim;
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The user readable name of signing domain, i.e. the name of the DApp or the protocol.', example: 'Creature' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], NftClaim.prototype, "name", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({
description: 'The current major version of the signing domain. Signatures from different versions are not compatible.',
example: '1.0.0',
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], NftClaim.prototype, "version", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({
description: 'The EIP-155 chain id. The user-agent should refuse signing if it does not match the currently active chain.',
example: 80001,
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], NftClaim.prototype, "chainId", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({
description: 'The address of the contract that will verify the signature. The user-agent may do contract specific phishing prevention.',
example: '0x7ff0c96136cdb30ba9cec487db81de356f58de81',
}),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], NftClaim.prototype, "verifyingContract", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The recipient address who can claim.', example: '0x8899b50613ab56f4d21ff5407d3f16adf5fce884' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], NftClaim.prototype, "recipient", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The nft amount which the recipient will receive.', example: 1 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], NftClaim.prototype, "amount", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The nonce value.', example: 1 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], NftClaim.prototype, "nonce", void 0);
exports.NftClaim = NftClaim = __decorate([
(0, mongoose_1.Schema)({ collection: 'nft_claim' })
], NftClaim);
exports.NftClaimSchema = mongoose_1.SchemaFactory.createForClass(NftClaim);
//# sourceMappingURL=nft.claim.js.map