UNPKG

@volare.finance/schemas.js

Version:
65 lines 3.51 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.FtApprovalSchema = exports.FtApproval = void 0; const mongoose_1 = require("@nestjs/mongoose"); const swagger_1 = require("@nestjs/swagger"); let FtApproval = class FtApproval { }; exports.FtApproval = FtApproval; __decorate([ (0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emitted.', example: 1667392283 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtApproval.prototype, "timestamp", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The block number in which the approval was emitted.', example: 15882351 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtApproval.prototype, "blockNumber", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The hash of the transaction which generates this approval.', example: '0xeb463fbffde567568554b64c9ebce820b6cfe52b799e1e5646df5bdb91806fc6', }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtApproval.prototype, "transactionHash", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The log index in the transaction.', example: 181 }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", Number) ], FtApproval.prototype, "logIndex", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The contract address which emits this approval.', example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtApproval.prototype, "contract", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The owner address.`, example: '0x9465dccc0237240163c240a6ced9d0e9421ca10b' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtApproval.prototype, "owner", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: `The spender address.`, example: '0x29fbd00940df70cfc5dad3f2370686991e2bbf5c' }), (0, mongoose_1.Prop)({ index: true }), __metadata("design:type", String) ], FtApproval.prototype, "spender", void 0); __decorate([ (0, swagger_1.ApiProperty)({ description: 'The amount of allows spender to withdraw from owner account multiple times.', example: '10000000000' }), (0, mongoose_1.Prop)(), __metadata("design:type", String) ], FtApproval.prototype, "value", void 0); exports.FtApproval = FtApproval = __decorate([ (0, mongoose_1.Schema)({ collection: 'ft_approval' }) ], FtApproval); exports.FtApprovalSchema = mongoose_1.SchemaFactory.createForClass(FtApproval); //# sourceMappingURL=ft.approval.js.map