@volare.finance/schemas.js
Version:
75 lines • 4.11 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.UniswapLiquiditySchema = exports.UniswapLiquidity = void 0;
const mongoose_1 = require("@nestjs/mongoose");
const swagger_1 = require("@nestjs/swagger");
let UniswapLiquidity = class UniswapLiquidity {
};
exports.UniswapLiquidity = UniswapLiquidity;
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The timestamp at which the event is emit.', example: 1646715846 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], UniswapLiquidity.prototype, "timestamp", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The block number in which the event is emit.', example: 32849732 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], UniswapLiquidity.prototype, "blockNumber", void 0);
__decorate([
(0, swagger_1.ApiProperty)({
description: 'The hash of the transaction which generates the current log.',
example: '0x3b147970e6422e218babdd4c1302f696d975f77f0f08cb40ca32a2c42b5206c1',
}),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "transactionHash", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The log index in the transaction.', example: 47 }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", Number)
], UniswapLiquidity.prototype, "logIndex", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The pair address.', example: '0xfdb9ab8b9513ad9e419cf19530fee49d412c3ee3' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "pairAddress", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: `The liquidity provider's address.`, example: '0xf491e7b69e4244ad4002bc14e878a34207e38c29' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "senderAddress", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The amount of token0 provided.', example: '13456469261843533474' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "token0Amount", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The amount of token1 provided.', example: '46453' }),
(0, mongoose_1.Prop)(),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "token1Amount", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'The receiver who will get the liquidity tokens.', example: '0x68f598280a843a5ce07c1b9fb0d3af00cd085c31' }),
(0, mongoose_1.Prop)({ index: true }),
__metadata("design:type", String)
], UniswapLiquidity.prototype, "toAddress", void 0);
__decorate([
(0, swagger_1.ApiProperty)({ description: 'Add liquidity when true, or remove liquidity when false.', example: true }),
(0, mongoose_1.Prop)(),
__metadata("design:type", Boolean)
], UniswapLiquidity.prototype, "isMint", void 0);
exports.UniswapLiquidity = UniswapLiquidity = __decorate([
(0, mongoose_1.Schema)({ collection: 'uniswap_liquidity' })
], UniswapLiquidity);
exports.UniswapLiquiditySchema = mongoose_1.SchemaFactory.createForClass(UniswapLiquidity);
//# sourceMappingURL=uniswap.liquidity.js.map