@volare.finance/schemas.js
Version:
75 lines • 3.94 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.FtBalanceLineSchema = exports.FtBalanceLine = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let FtBalanceLine = class FtBalanceLine {
};
exports.FtBalanceLine = FtBalanceLine;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp at which the balance is changed.', example: 1667392283 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], FtBalanceLine.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The block number in which the transfer was emitted.', example: 15882351 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], FtBalanceLine.prototype, "blockNumber", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The contract address.', example: '0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], FtBalanceLine.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)
], FtBalanceLine.prototype, "owner", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The owner balance.`, example: '5504392' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], FtBalanceLine.prototype, "balance", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The owner balance after scaled (number type for easy sorting).`, example: 5.504392 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], FtBalanceLine.prototype, "weight", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Total amount transferred out.', example: '200000000' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], FtBalanceLine.prototype, "sent", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Total amount transferred in.', example: '205504392' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], FtBalanceLine.prototype, "received", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'The transaction hash array in this block where the balance has changed.',
example: ['0xc11812f30f00b8a75a8fbb170fb281d3bae04a9cb8d570b41b96b872fbad25e2'],
}),
(0, mongoose_1.Prop)(),
__metadata("design:type", Array)
], FtBalanceLine.prototype, "transactionHash", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The created timestamp.', example: 1667392283 }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Number)
], FtBalanceLine.prototype, "created", void 0);
exports.FtBalanceLine = FtBalanceLine = __decorate([
(0, mongoose_1.Schema)({ collection: 'ft_balance_line' })
], FtBalanceLine);
exports.FtBalanceLineSchema = mongoose_1.SchemaFactory.createForClass(FtBalanceLine);
//# sourceMappingURL=ft.balance.line.js.map