@volare.finance/schemas.js
Version:
75 lines • 4.17 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.ERC1155ApprovalSchema = exports.ERC1155Approval = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let ERC1155Approval = class ERC1155Approval {
};
exports.ERC1155Approval = ERC1155Approval;
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The timestamp at which the event is emitted.', example: 1669178663 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], ERC1155Approval.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: 'The block number in which the approval was emitted.', example: 16030392 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], ERC1155Approval.prototype, "blockNumber", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'The hash of the transaction which generates this approval.',
example: '0xa8c6d6cf2c8e18172fa8cb41b35adb7f214536c6ef418c13c11cf52bd088b886',
}),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], ERC1155Approval.prototype, "transactionHash", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The log index in the transaction.', example: 108 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], ERC1155Approval.prototype, "logIndex", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The contract address which emits this approval.', example: '0x5c891d76584b46bc7f1e700169a76569bb77d2db' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], ERC1155Approval.prototype, "contract", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: `The owner address.`, example: '0x29c15d1e5f1d6e09e6030709b077e18ceb203dfc' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], ERC1155Approval.prototype, "owner", void 0);
__decorate([
(0, swagger_1.ApiPropertyOptional)({ description: `The operator address.`, example: '0x1e0049783f008a0085193e00003d00cd54003c71' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], ERC1155Approval.prototype, "operator", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The token id (Approval for all when tokenId isEqualTo 0).`, example: '0' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], ERC1155Approval.prototype, "tokenId", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The amount of allows operator to withdraw from owner account multiple times.`, example: '0' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], ERC1155Approval.prototype, "allowance", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `True if the operator is approved, false to revoke approval.`, example: true }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Boolean)
], ERC1155Approval.prototype, "approved", void 0);
exports.ERC1155Approval = ERC1155Approval = __decorate([
(0, mongoose_1.Schema)({ collection: 'erc1155_approval' })
], ERC1155Approval);
exports.ERC1155ApprovalSchema = mongoose_1.SchemaFactory.createForClass(ERC1155Approval);
//# sourceMappingURL=erc1155.approval.js.map