@compass-labs/api-sdk 0.3.0 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/bin/mcp-server.js +1044 -308
- package/bin/mcp-server.js.map +25 -9
- package/dist/commonjs/funcs/pendleBuyPt.d.ts +17 -0
- package/dist/commonjs/funcs/pendleBuyPt.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleBuyPt.js +118 -0
- package/dist/commonjs/funcs/pendleBuyPt.js.map +1 -0
- package/dist/commonjs/funcs/pendleBuyYt.d.ts +17 -0
- package/dist/commonjs/funcs/pendleBuyYt.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleBuyYt.js +118 -0
- package/dist/commonjs/funcs/pendleBuyYt.js.map +1 -0
- package/dist/commonjs/funcs/pendleSellPt.d.ts +17 -0
- package/dist/commonjs/funcs/pendleSellPt.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleSellPt.js +118 -0
- package/dist/commonjs/funcs/pendleSellPt.js.map +1 -0
- package/dist/commonjs/funcs/pendleSellYt.d.ts +17 -0
- package/dist/commonjs/funcs/pendleSellYt.d.ts.map +1 -0
- package/dist/commonjs/funcs/pendleSellYt.js +118 -0
- package/dist/commonjs/funcs/pendleSellYt.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +9 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyPt.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleBuyYt.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleSellPt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleSellPt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleSellPt.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleSellPt.js.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleSellYt.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/pendleSellYt.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/pendleSellYt.js +64 -0
- package/dist/commonjs/mcp-server/tools/pendleSellYt.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +8 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +8 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.d.ts +12 -0
- package/dist/commonjs/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/commonjs/models/components/multicallactiontype.js +4 -0
- package/dist/commonjs/models/components/multicallactiontype.js.map +1 -1
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts +61 -0
- package/dist/commonjs/models/components/pendlebuyptparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlebuyptparams.js +103 -0
- package/dist/commonjs/models/components/pendlebuyptparams.js.map +1 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts +72 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.js +108 -0
- package/dist/commonjs/models/components/pendlebuyptrequest.js.map +1 -0
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts +61 -0
- package/dist/commonjs/models/components/pendlebuyytparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlebuyytparams.js +103 -0
- package/dist/commonjs/models/components/pendlebuyytparams.js.map +1 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts +72 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.js +108 -0
- package/dist/commonjs/models/components/pendlebuyytrequest.js.map +1 -0
- package/dist/commonjs/models/components/pendlesellptparams.d.ts +61 -0
- package/dist/commonjs/models/components/pendlesellptparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlesellptparams.js +103 -0
- package/dist/commonjs/models/components/pendlesellptparams.js.map +1 -0
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts +72 -0
- package/dist/commonjs/models/components/pendlesellptrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlesellptrequest.js +108 -0
- package/dist/commonjs/models/components/pendlesellptrequest.js.map +1 -0
- package/dist/commonjs/models/components/pendlesellytparams.d.ts +61 -0
- package/dist/commonjs/models/components/pendlesellytparams.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlesellytparams.js +103 -0
- package/dist/commonjs/models/components/pendlesellytparams.js.map +1 -0
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts +72 -0
- package/dist/commonjs/models/components/pendlesellytrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/pendlesellytrequest.js +108 -0
- package/dist/commonjs/models/components/pendlesellytrequest.js.map +1 -0
- package/dist/commonjs/models/components/useroperation.d.ts +8 -4
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +20 -0
- package/dist/commonjs/models/components/useroperation.js.map +1 -1
- package/dist/commonjs/sdk/pendle.d.ts +28 -0
- package/dist/commonjs/sdk/pendle.d.ts.map +1 -1
- package/dist/commonjs/sdk/pendle.js +40 -0
- package/dist/commonjs/sdk/pendle.js.map +1 -1
- package/dist/esm/funcs/pendleBuyPt.d.ts +17 -0
- package/dist/esm/funcs/pendleBuyPt.d.ts.map +1 -0
- package/dist/esm/funcs/pendleBuyPt.js +82 -0
- package/dist/esm/funcs/pendleBuyPt.js.map +1 -0
- package/dist/esm/funcs/pendleBuyYt.d.ts +17 -0
- package/dist/esm/funcs/pendleBuyYt.d.ts.map +1 -0
- package/dist/esm/funcs/pendleBuyYt.js +82 -0
- package/dist/esm/funcs/pendleBuyYt.js.map +1 -0
- package/dist/esm/funcs/pendleSellPt.d.ts +17 -0
- package/dist/esm/funcs/pendleSellPt.d.ts.map +1 -0
- package/dist/esm/funcs/pendleSellPt.js +82 -0
- package/dist/esm/funcs/pendleSellPt.js.map +1 -0
- package/dist/esm/funcs/pendleSellYt.d.ts +17 -0
- package/dist/esm/funcs/pendleSellYt.d.ts.map +1 -0
- package/dist/esm/funcs/pendleSellYt.js +82 -0
- package/dist/esm/funcs/pendleSellYt.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +9 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/pendleBuyPt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleBuyPt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleBuyPt.js +28 -0
- package/dist/esm/mcp-server/tools/pendleBuyPt.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendleBuyYt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleBuyYt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleBuyYt.js +28 -0
- package/dist/esm/mcp-server/tools/pendleBuyYt.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendleSellPt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleSellPt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleSellPt.js +28 -0
- package/dist/esm/mcp-server/tools/pendleSellPt.js.map +1 -0
- package/dist/esm/mcp-server/tools/pendleSellYt.d.ts +8 -0
- package/dist/esm/mcp-server/tools/pendleSellYt.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/pendleSellYt.js +28 -0
- package/dist/esm/mcp-server/tools/pendleSellYt.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +8 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +8 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/multicallactiontype.d.ts +12 -0
- package/dist/esm/models/components/multicallactiontype.d.ts.map +1 -1
- package/dist/esm/models/components/multicallactiontype.js +4 -0
- package/dist/esm/models/components/multicallactiontype.js.map +1 -1
- package/dist/esm/models/components/pendlebuyptparams.d.ts +61 -0
- package/dist/esm/models/components/pendlebuyptparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendlebuyptparams.js +63 -0
- package/dist/esm/models/components/pendlebuyptparams.js.map +1 -0
- package/dist/esm/models/components/pendlebuyptrequest.d.ts +72 -0
- package/dist/esm/models/components/pendlebuyptrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendlebuyptrequest.js +68 -0
- package/dist/esm/models/components/pendlebuyptrequest.js.map +1 -0
- package/dist/esm/models/components/pendlebuyytparams.d.ts +61 -0
- package/dist/esm/models/components/pendlebuyytparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendlebuyytparams.js +63 -0
- package/dist/esm/models/components/pendlebuyytparams.js.map +1 -0
- package/dist/esm/models/components/pendlebuyytrequest.d.ts +72 -0
- package/dist/esm/models/components/pendlebuyytrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendlebuyytrequest.js +68 -0
- package/dist/esm/models/components/pendlebuyytrequest.js.map +1 -0
- package/dist/esm/models/components/pendlesellptparams.d.ts +61 -0
- package/dist/esm/models/components/pendlesellptparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendlesellptparams.js +63 -0
- package/dist/esm/models/components/pendlesellptparams.js.map +1 -0
- package/dist/esm/models/components/pendlesellptrequest.d.ts +72 -0
- package/dist/esm/models/components/pendlesellptrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendlesellptrequest.js +68 -0
- package/dist/esm/models/components/pendlesellptrequest.js.map +1 -0
- package/dist/esm/models/components/pendlesellytparams.d.ts +61 -0
- package/dist/esm/models/components/pendlesellytparams.d.ts.map +1 -0
- package/dist/esm/models/components/pendlesellytparams.js +63 -0
- package/dist/esm/models/components/pendlesellytparams.js.map +1 -0
- package/dist/esm/models/components/pendlesellytrequest.d.ts +72 -0
- package/dist/esm/models/components/pendlesellytrequest.d.ts.map +1 -0
- package/dist/esm/models/components/pendlesellytrequest.js +68 -0
- package/dist/esm/models/components/pendlesellytrequest.js.map +1 -0
- package/dist/esm/models/components/useroperation.d.ts +8 -4
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +20 -0
- package/dist/esm/models/components/useroperation.js.map +1 -1
- package/dist/esm/sdk/pendle.d.ts +28 -0
- package/dist/esm/sdk/pendle.d.ts.map +1 -1
- package/dist/esm/sdk/pendle.js +40 -0
- package/dist/esm/sdk/pendle.js.map +1 -1
- package/docs/sdks/pendle/README.md +336 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/pendleBuyPt.ts +165 -0
- package/src/funcs/pendleBuyYt.ts +165 -0
- package/src/funcs/pendleSellPt.ts +165 -0
- package/src/funcs/pendleSellYt.ts +165 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +9 -1
- package/src/mcp-server/tools/pendleBuyPt.ts +37 -0
- package/src/mcp-server/tools/pendleBuyYt.ts +37 -0
- package/src/mcp-server/tools/pendleSellPt.ts +37 -0
- package/src/mcp-server/tools/pendleSellYt.ts +37 -0
- package/src/models/components/index.ts +8 -0
- package/src/models/components/multicallactiontype.ts +4 -0
- package/src/models/components/pendlebuyptparams.ts +138 -0
- package/src/models/components/pendlebuyptrequest.ts +153 -0
- package/src/models/components/pendlebuyytparams.ts +138 -0
- package/src/models/components/pendlebuyytrequest.ts +153 -0
- package/src/models/components/pendlesellptparams.ts +138 -0
- package/src/models/components/pendlesellptrequest.ts +153 -0
- package/src/models/components/pendlesellytparams.ts +138 -0
- package/src/models/components/pendlesellytrequest.ts +153 -0
- package/src/models/components/useroperation.ts +56 -0
- package/src/sdk/pendle.ts +72 -0
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PendleBuyYtRequest$ = exports.PendleBuyYtRequest$outboundSchema = exports.PendleBuyYtRequest$inboundSchema = exports.PendleBuyYtRequestAmount$ = exports.PendleBuyYtRequestAmount$outboundSchema = exports.PendleBuyYtRequestAmount$inboundSchema = void 0;
|
|
40
|
+
exports.pendleBuyYtRequestAmountToJSON = pendleBuyYtRequestAmountToJSON;
|
|
41
|
+
exports.pendleBuyYtRequestAmountFromJSON = pendleBuyYtRequestAmountFromJSON;
|
|
42
|
+
exports.pendleBuyYtRequestToJSON = pendleBuyYtRequestToJSON;
|
|
43
|
+
exports.pendleBuyYtRequestFromJSON = pendleBuyYtRequestFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const chain_js_1 = require("./chain.js");
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.PendleBuyYtRequestAmount$inboundSchema = z.union([z.number(), z.string()]);
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.PendleBuyYtRequestAmount$outboundSchema = z.union([z.number(), z.string()]);
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
var PendleBuyYtRequestAmount$;
|
|
57
|
+
(function (PendleBuyYtRequestAmount$) {
|
|
58
|
+
/** @deprecated use `PendleBuyYtRequestAmount$inboundSchema` instead. */
|
|
59
|
+
PendleBuyYtRequestAmount$.inboundSchema = exports.PendleBuyYtRequestAmount$inboundSchema;
|
|
60
|
+
/** @deprecated use `PendleBuyYtRequestAmount$outboundSchema` instead. */
|
|
61
|
+
PendleBuyYtRequestAmount$.outboundSchema = exports.PendleBuyYtRequestAmount$outboundSchema;
|
|
62
|
+
})(PendleBuyYtRequestAmount$ || (exports.PendleBuyYtRequestAmount$ = PendleBuyYtRequestAmount$ = {}));
|
|
63
|
+
function pendleBuyYtRequestAmountToJSON(pendleBuyYtRequestAmount) {
|
|
64
|
+
return JSON.stringify(exports.PendleBuyYtRequestAmount$outboundSchema.parse(pendleBuyYtRequestAmount));
|
|
65
|
+
}
|
|
66
|
+
function pendleBuyYtRequestAmountFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleBuyYtRequestAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleBuyYtRequestAmount' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.PendleBuyYtRequest$inboundSchema = z.object({
|
|
71
|
+
market_address: z.string(),
|
|
72
|
+
amount: z.union([z.number(), z.string()]),
|
|
73
|
+
chain: chain_js_1.Chain$inboundSchema,
|
|
74
|
+
sender: z.string(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
"market_address": "marketAddress",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.PendleBuyYtRequest$outboundSchema = z.object({
|
|
82
|
+
marketAddress: z.string(),
|
|
83
|
+
amount: z.union([z.number(), z.string()]),
|
|
84
|
+
chain: chain_js_1.Chain$outboundSchema,
|
|
85
|
+
sender: z.string(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return (0, primitives_js_1.remap)(v, {
|
|
88
|
+
marketAddress: "market_address",
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
+
*/
|
|
95
|
+
var PendleBuyYtRequest$;
|
|
96
|
+
(function (PendleBuyYtRequest$) {
|
|
97
|
+
/** @deprecated use `PendleBuyYtRequest$inboundSchema` instead. */
|
|
98
|
+
PendleBuyYtRequest$.inboundSchema = exports.PendleBuyYtRequest$inboundSchema;
|
|
99
|
+
/** @deprecated use `PendleBuyYtRequest$outboundSchema` instead. */
|
|
100
|
+
PendleBuyYtRequest$.outboundSchema = exports.PendleBuyYtRequest$outboundSchema;
|
|
101
|
+
})(PendleBuyYtRequest$ || (exports.PendleBuyYtRequest$ = PendleBuyYtRequest$ = {}));
|
|
102
|
+
function pendleBuyYtRequestToJSON(pendleBuyYtRequest) {
|
|
103
|
+
return JSON.stringify(exports.PendleBuyYtRequest$outboundSchema.parse(pendleBuyYtRequest));
|
|
104
|
+
}
|
|
105
|
+
function pendleBuyYtRequestFromJSON(jsonString) {
|
|
106
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleBuyYtRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleBuyYtRequest' from JSON`);
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=pendlebuyytrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlebuyytrequest.js","sourceRoot":"","sources":["../../../../src/models/components/pendlebuyytrequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+DH,wEAMC;AAED,4EAQC;AAuDD,4DAMC;AAED,gEAQC;AApJD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,yCAA8E;AA0B9E,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,C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M,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACzC,KAAK,EAAE,+BAAoB;IAC3B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
6
|
+
*/
|
|
7
|
+
export type PendleSellPtParamsAmount = number | string;
|
|
8
|
+
export type PendleSellPtParams = {
|
|
9
|
+
/**
|
|
10
|
+
* The address of the market identifying which Principal Token (PT) you would like to sell.
|
|
11
|
+
*/
|
|
12
|
+
marketAddress: string;
|
|
13
|
+
/**
|
|
14
|
+
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
15
|
+
*/
|
|
16
|
+
amount: number | string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const PendleSellPtParamsAmount$inboundSchema: z.ZodType<PendleSellPtParamsAmount, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type PendleSellPtParamsAmount$Outbound = number | string;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const PendleSellPtParamsAmount$outboundSchema: z.ZodType<PendleSellPtParamsAmount$Outbound, z.ZodTypeDef, PendleSellPtParamsAmount>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace PendleSellPtParamsAmount$ {
|
|
29
|
+
/** @deprecated use `PendleSellPtParamsAmount$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<PendleSellPtParamsAmount, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `PendleSellPtParamsAmount$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<PendleSellPtParamsAmount$Outbound, z.ZodTypeDef, PendleSellPtParamsAmount>;
|
|
33
|
+
/** @deprecated use `PendleSellPtParamsAmount$Outbound` instead. */
|
|
34
|
+
type Outbound = PendleSellPtParamsAmount$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function pendleSellPtParamsAmountToJSON(pendleSellPtParamsAmount: PendleSellPtParamsAmount): string;
|
|
37
|
+
export declare function pendleSellPtParamsAmountFromJSON(jsonString: string): SafeParseResult<PendleSellPtParamsAmount, SDKValidationError>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const PendleSellPtParams$inboundSchema: z.ZodType<PendleSellPtParams, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type PendleSellPtParams$Outbound = {
|
|
42
|
+
market_address: string;
|
|
43
|
+
amount: number | string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const PendleSellPtParams$outboundSchema: z.ZodType<PendleSellPtParams$Outbound, z.ZodTypeDef, PendleSellPtParams>;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export declare namespace PendleSellPtParams$ {
|
|
52
|
+
/** @deprecated use `PendleSellPtParams$inboundSchema` instead. */
|
|
53
|
+
const inboundSchema: z.ZodType<PendleSellPtParams, z.ZodTypeDef, unknown>;
|
|
54
|
+
/** @deprecated use `PendleSellPtParams$outboundSchema` instead. */
|
|
55
|
+
const outboundSchema: z.ZodType<PendleSellPtParams$Outbound, z.ZodTypeDef, PendleSellPtParams>;
|
|
56
|
+
/** @deprecated use `PendleSellPtParams$Outbound` instead. */
|
|
57
|
+
type Outbound = PendleSellPtParams$Outbound;
|
|
58
|
+
}
|
|
59
|
+
export declare function pendleSellPtParamsToJSON(pendleSellPtParams: PendleSellPtParams): string;
|
|
60
|
+
export declare function pendleSellPtParamsFromJSON(jsonString: string): SafeParseResult<PendleSellPtParams, SDKValidationError>;
|
|
61
|
+
//# sourceMappingURL=pendlesellptparams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlesellptparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/pendlesellptparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,M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EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAQlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD;AAED,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AAED,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PendleSellPtParams$ = exports.PendleSellPtParams$outboundSchema = exports.PendleSellPtParams$inboundSchema = exports.PendleSellPtParamsAmount$ = exports.PendleSellPtParamsAmount$outboundSchema = exports.PendleSellPtParamsAmount$inboundSchema = void 0;
|
|
40
|
+
exports.pendleSellPtParamsAmountToJSON = pendleSellPtParamsAmountToJSON;
|
|
41
|
+
exports.pendleSellPtParamsAmountFromJSON = pendleSellPtParamsAmountFromJSON;
|
|
42
|
+
exports.pendleSellPtParamsToJSON = pendleSellPtParamsToJSON;
|
|
43
|
+
exports.pendleSellPtParamsFromJSON = pendleSellPtParamsFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
/** @internal */
|
|
48
|
+
exports.PendleSellPtParamsAmount$inboundSchema = z.union([z.number(), z.string()]);
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.PendleSellPtParamsAmount$outboundSchema = z.union([z.number(), z.string()]);
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
var PendleSellPtParamsAmount$;
|
|
56
|
+
(function (PendleSellPtParamsAmount$) {
|
|
57
|
+
/** @deprecated use `PendleSellPtParamsAmount$inboundSchema` instead. */
|
|
58
|
+
PendleSellPtParamsAmount$.inboundSchema = exports.PendleSellPtParamsAmount$inboundSchema;
|
|
59
|
+
/** @deprecated use `PendleSellPtParamsAmount$outboundSchema` instead. */
|
|
60
|
+
PendleSellPtParamsAmount$.outboundSchema = exports.PendleSellPtParamsAmount$outboundSchema;
|
|
61
|
+
})(PendleSellPtParamsAmount$ || (exports.PendleSellPtParamsAmount$ = PendleSellPtParamsAmount$ = {}));
|
|
62
|
+
function pendleSellPtParamsAmountToJSON(pendleSellPtParamsAmount) {
|
|
63
|
+
return JSON.stringify(exports.PendleSellPtParamsAmount$outboundSchema.parse(pendleSellPtParamsAmount));
|
|
64
|
+
}
|
|
65
|
+
function pendleSellPtParamsAmountFromJSON(jsonString) {
|
|
66
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleSellPtParamsAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleSellPtParamsAmount' from JSON`);
|
|
67
|
+
}
|
|
68
|
+
/** @internal */
|
|
69
|
+
exports.PendleSellPtParams$inboundSchema = z.object({
|
|
70
|
+
market_address: z.string(),
|
|
71
|
+
amount: z.union([z.number(), z.string()]),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return (0, primitives_js_1.remap)(v, {
|
|
74
|
+
"market_address": "marketAddress",
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
/** @internal */
|
|
78
|
+
exports.PendleSellPtParams$outboundSchema = z.object({
|
|
79
|
+
marketAddress: z.string(),
|
|
80
|
+
amount: z.union([z.number(), z.string()]),
|
|
81
|
+
}).transform((v) => {
|
|
82
|
+
return (0, primitives_js_1.remap)(v, {
|
|
83
|
+
marketAddress: "market_address",
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
/**
|
|
87
|
+
* @internal
|
|
88
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
89
|
+
*/
|
|
90
|
+
var PendleSellPtParams$;
|
|
91
|
+
(function (PendleSellPtParams$) {
|
|
92
|
+
/** @deprecated use `PendleSellPtParams$inboundSchema` instead. */
|
|
93
|
+
PendleSellPtParams$.inboundSchema = exports.PendleSellPtParams$inboundSchema;
|
|
94
|
+
/** @deprecated use `PendleSellPtParams$outboundSchema` instead. */
|
|
95
|
+
PendleSellPtParams$.outboundSchema = exports.PendleSellPtParams$outboundSchema;
|
|
96
|
+
})(PendleSellPtParams$ || (exports.PendleSellPtParams$ = PendleSellPtParams$ = {}));
|
|
97
|
+
function pendleSellPtParamsToJSON(pendleSellPtParams) {
|
|
98
|
+
return JSON.stringify(exports.PendleSellPtParams$outboundSchema.parse(pendleSellPtParams));
|
|
99
|
+
}
|
|
100
|
+
function pendleSellPtParamsFromJSON(jsonString) {
|
|
101
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleSellPtParams$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleSellPtParams' from JSON`);
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=pendlesellptparams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlesellptparams.js","sourceRoot":"","sources":["../../../../src/models/components/pendlesellptparams.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsDH,wEAMC;AAED,4EAQC;AAiDD,4DAMC;AAED,gEAQC;AArID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAoBjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;AAKtC,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,K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AAC,MAAM,EAAE,CAAC,CAAC;CAC1C,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC;AAED,SAAgB,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,yCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AAED,SAAgB,0BAA0B,CACxC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { Chain } from "./chain.js";
|
|
5
|
+
/**
|
|
6
|
+
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
7
|
+
*/
|
|
8
|
+
export type PendleSellPtRequestAmount = number | string;
|
|
9
|
+
export type PendleSellPtRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* The address of the market identifying which Principal Token (PT) you would like to sell.
|
|
12
|
+
*/
|
|
13
|
+
marketAddress: string;
|
|
14
|
+
/**
|
|
15
|
+
* The amount of market's Principal Token (PT) you would like to sell for market's Underlying Token.
|
|
16
|
+
*/
|
|
17
|
+
amount: number | string;
|
|
18
|
+
/**
|
|
19
|
+
* The chain to use.
|
|
20
|
+
*/
|
|
21
|
+
chain: Chain;
|
|
22
|
+
/**
|
|
23
|
+
* The address of the transaction sender.
|
|
24
|
+
*/
|
|
25
|
+
sender: string;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const PendleSellPtRequestAmount$inboundSchema: z.ZodType<PendleSellPtRequestAmount, z.ZodTypeDef, unknown>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
export type PendleSellPtRequestAmount$Outbound = number | string;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const PendleSellPtRequestAmount$outboundSchema: z.ZodType<PendleSellPtRequestAmount$Outbound, z.ZodTypeDef, PendleSellPtRequestAmount>;
|
|
33
|
+
/**
|
|
34
|
+
* @internal
|
|
35
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
|
+
*/
|
|
37
|
+
export declare namespace PendleSellPtRequestAmount$ {
|
|
38
|
+
/** @deprecated use `PendleSellPtRequestAmount$inboundSchema` instead. */
|
|
39
|
+
const inboundSchema: z.ZodType<PendleSellPtRequestAmount, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @deprecated use `PendleSellPtRequestAmount$outboundSchema` instead. */
|
|
41
|
+
const outboundSchema: z.ZodType<PendleSellPtRequestAmount$Outbound, z.ZodTypeDef, PendleSellPtRequestAmount>;
|
|
42
|
+
/** @deprecated use `PendleSellPtRequestAmount$Outbound` instead. */
|
|
43
|
+
type Outbound = PendleSellPtRequestAmount$Outbound;
|
|
44
|
+
}
|
|
45
|
+
export declare function pendleSellPtRequestAmountToJSON(pendleSellPtRequestAmount: PendleSellPtRequestAmount): string;
|
|
46
|
+
export declare function pendleSellPtRequestAmountFromJSON(jsonString: string): SafeParseResult<PendleSellPtRequestAmount, SDKValidationError>;
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const PendleSellPtRequest$inboundSchema: z.ZodType<PendleSellPtRequest, z.ZodTypeDef, unknown>;
|
|
49
|
+
/** @internal */
|
|
50
|
+
export type PendleSellPtRequest$Outbound = {
|
|
51
|
+
market_address: string;
|
|
52
|
+
amount: number | string;
|
|
53
|
+
chain: string;
|
|
54
|
+
sender: string;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const PendleSellPtRequest$outboundSchema: z.ZodType<PendleSellPtRequest$Outbound, z.ZodTypeDef, PendleSellPtRequest>;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export declare namespace PendleSellPtRequest$ {
|
|
63
|
+
/** @deprecated use `PendleSellPtRequest$inboundSchema` instead. */
|
|
64
|
+
const inboundSchema: z.ZodType<PendleSellPtRequest, z.ZodTypeDef, unknown>;
|
|
65
|
+
/** @deprecated use `PendleSellPtRequest$outboundSchema` instead. */
|
|
66
|
+
const outboundSchema: z.ZodType<PendleSellPtRequest$Outbound, z.ZodTypeDef, PendleSellPtRequest>;
|
|
67
|
+
/** @deprecated use `PendleSellPtRequest$Outbound` instead. */
|
|
68
|
+
type Outbound = PendleSellPtRequest$Outbound;
|
|
69
|
+
}
|
|
70
|
+
export declare function pendleSellPtRequestToJSON(pendleSellPtRequest: PendleSellPtRequest): string;
|
|
71
|
+
export declare function pendleSellPtRequestFromJSON(jsonString: string): SafeParseResult<PendleSellPtRequest, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=pendlesellptrequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlesellptrequest.d.ts","sourceRoot":"","sources":["../../../../src/models/components/pendlesellptrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB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C;AAEH,gBAAgB;AAChB,MAAM,MAAM,4BAA4B,GAAG;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,4BAA4B,EAC5B,CAAC,CAAC,UAAU,EACZ,mBAAmB,CAUnB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,oBAAoB,CAAC;IACpC,mEAAmE;IAC5D,MAAM,aAAa,uDAAoC,CAAC;IAC/D,oEAAoE;IAC7D,MAAM,cAAc,4EAAqC,CAAC;IACjE,8DAA8D;IAC9D,KAAY,QAAQ,GAAG,4BAA4B,CAAC;CACrD;AAED,wBAAgB,yBAAyB,CACvC,mBAAmB,EAAE,mBAAmB,GACvC,MAAM,CAIR;AAED,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.PendleSellPtRequest$ = exports.PendleSellPtRequest$outboundSchema = exports.PendleSellPtRequest$inboundSchema = exports.PendleSellPtRequestAmount$ = exports.PendleSellPtRequestAmount$outboundSchema = exports.PendleSellPtRequestAmount$inboundSchema = void 0;
|
|
40
|
+
exports.pendleSellPtRequestAmountToJSON = pendleSellPtRequestAmountToJSON;
|
|
41
|
+
exports.pendleSellPtRequestAmountFromJSON = pendleSellPtRequestAmountFromJSON;
|
|
42
|
+
exports.pendleSellPtRequestToJSON = pendleSellPtRequestToJSON;
|
|
43
|
+
exports.pendleSellPtRequestFromJSON = pendleSellPtRequestFromJSON;
|
|
44
|
+
const z = __importStar(require("zod"));
|
|
45
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
const chain_js_1 = require("./chain.js");
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.PendleSellPtRequestAmount$inboundSchema = z.union([z.number(), z.string()]);
|
|
50
|
+
/** @internal */
|
|
51
|
+
exports.PendleSellPtRequestAmount$outboundSchema = z.union([z.number(), z.string()]);
|
|
52
|
+
/**
|
|
53
|
+
* @internal
|
|
54
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
|
+
*/
|
|
56
|
+
var PendleSellPtRequestAmount$;
|
|
57
|
+
(function (PendleSellPtRequestAmount$) {
|
|
58
|
+
/** @deprecated use `PendleSellPtRequestAmount$inboundSchema` instead. */
|
|
59
|
+
PendleSellPtRequestAmount$.inboundSchema = exports.PendleSellPtRequestAmount$inboundSchema;
|
|
60
|
+
/** @deprecated use `PendleSellPtRequestAmount$outboundSchema` instead. */
|
|
61
|
+
PendleSellPtRequestAmount$.outboundSchema = exports.PendleSellPtRequestAmount$outboundSchema;
|
|
62
|
+
})(PendleSellPtRequestAmount$ || (exports.PendleSellPtRequestAmount$ = PendleSellPtRequestAmount$ = {}));
|
|
63
|
+
function pendleSellPtRequestAmountToJSON(pendleSellPtRequestAmount) {
|
|
64
|
+
return JSON.stringify(exports.PendleSellPtRequestAmount$outboundSchema.parse(pendleSellPtRequestAmount));
|
|
65
|
+
}
|
|
66
|
+
function pendleSellPtRequestAmountFromJSON(jsonString) {
|
|
67
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleSellPtRequestAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleSellPtRequestAmount' from JSON`);
|
|
68
|
+
}
|
|
69
|
+
/** @internal */
|
|
70
|
+
exports.PendleSellPtRequest$inboundSchema = z.object({
|
|
71
|
+
market_address: z.string(),
|
|
72
|
+
amount: z.union([z.number(), z.string()]),
|
|
73
|
+
chain: chain_js_1.Chain$inboundSchema,
|
|
74
|
+
sender: z.string(),
|
|
75
|
+
}).transform((v) => {
|
|
76
|
+
return (0, primitives_js_1.remap)(v, {
|
|
77
|
+
"market_address": "marketAddress",
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
/** @internal */
|
|
81
|
+
exports.PendleSellPtRequest$outboundSchema = z.object({
|
|
82
|
+
marketAddress: z.string(),
|
|
83
|
+
amount: z.union([z.number(), z.string()]),
|
|
84
|
+
chain: chain_js_1.Chain$outboundSchema,
|
|
85
|
+
sender: z.string(),
|
|
86
|
+
}).transform((v) => {
|
|
87
|
+
return (0, primitives_js_1.remap)(v, {
|
|
88
|
+
marketAddress: "market_address",
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
/**
|
|
92
|
+
* @internal
|
|
93
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
+
*/
|
|
95
|
+
var PendleSellPtRequest$;
|
|
96
|
+
(function (PendleSellPtRequest$) {
|
|
97
|
+
/** @deprecated use `PendleSellPtRequest$inboundSchema` instead. */
|
|
98
|
+
PendleSellPtRequest$.inboundSchema = exports.PendleSellPtRequest$inboundSchema;
|
|
99
|
+
/** @deprecated use `PendleSellPtRequest$outboundSchema` instead. */
|
|
100
|
+
PendleSellPtRequest$.outboundSchema = exports.PendleSellPtRequest$outboundSchema;
|
|
101
|
+
})(PendleSellPtRequest$ || (exports.PendleSellPtRequest$ = PendleSellPtRequest$ = {}));
|
|
102
|
+
function pendleSellPtRequestToJSON(pendleSellPtRequest) {
|
|
103
|
+
return JSON.stringify(exports.PendleSellPtRequest$outboundSchema.parse(pendleSellPtRequest));
|
|
104
|
+
}
|
|
105
|
+
function pendleSellPtRequestFromJSON(jsonString) {
|
|
106
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PendleSellPtRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PendleSellPtRequest' from JSON`);
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=pendlesellptrequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlesell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CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token.
|
|
6
|
+
*/
|
|
7
|
+
export type PendleSellYtParamsAmount = number | string;
|
|
8
|
+
export type PendleSellYtParams = {
|
|
9
|
+
/**
|
|
10
|
+
* The address of the market identifying which Yield Token (YT) you would like to sell.
|
|
11
|
+
*/
|
|
12
|
+
marketAddress: string;
|
|
13
|
+
/**
|
|
14
|
+
* The amount of market's Yield Token (YT) you would like to sell for market's Underlying Token.
|
|
15
|
+
*/
|
|
16
|
+
amount: number | string;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const PendleSellYtParamsAmount$inboundSchema: z.ZodType<PendleSellYtParamsAmount, z.ZodTypeDef, unknown>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type PendleSellYtParamsAmount$Outbound = number | string;
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const PendleSellYtParamsAmount$outboundSchema: z.ZodType<PendleSellYtParamsAmount$Outbound, z.ZodTypeDef, PendleSellYtParamsAmount>;
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export declare namespace PendleSellYtParamsAmount$ {
|
|
29
|
+
/** @deprecated use `PendleSellYtParamsAmount$inboundSchema` instead. */
|
|
30
|
+
const inboundSchema: z.ZodType<PendleSellYtParamsAmount, z.ZodTypeDef, unknown>;
|
|
31
|
+
/** @deprecated use `PendleSellYtParamsAmount$outboundSchema` instead. */
|
|
32
|
+
const outboundSchema: z.ZodType<PendleSellYtParamsAmount$Outbound, z.ZodTypeDef, PendleSellYtParamsAmount>;
|
|
33
|
+
/** @deprecated use `PendleSellYtParamsAmount$Outbound` instead. */
|
|
34
|
+
type Outbound = PendleSellYtParamsAmount$Outbound;
|
|
35
|
+
}
|
|
36
|
+
export declare function pendleSellYtParamsAmountToJSON(pendleSellYtParamsAmount: PendleSellYtParamsAmount): string;
|
|
37
|
+
export declare function pendleSellYtParamsAmountFromJSON(jsonString: string): SafeParseResult<PendleSellYtParamsAmount, SDKValidationError>;
|
|
38
|
+
/** @internal */
|
|
39
|
+
export declare const PendleSellYtParams$inboundSchema: z.ZodType<PendleSellYtParams, z.ZodTypeDef, unknown>;
|
|
40
|
+
/** @internal */
|
|
41
|
+
export type PendleSellYtParams$Outbound = {
|
|
42
|
+
market_address: string;
|
|
43
|
+
amount: number | string;
|
|
44
|
+
};
|
|
45
|
+
/** @internal */
|
|
46
|
+
export declare const PendleSellYtParams$outboundSchema: z.ZodType<PendleSellYtParams$Outbound, z.ZodTypeDef, PendleSellYtParams>;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
export declare namespace PendleSellYtParams$ {
|
|
52
|
+
/** @deprecated use `PendleSellYtParams$inboundSchema` instead. */
|
|
53
|
+
const inboundSchema: z.ZodType<PendleSellYtParams, z.ZodTypeDef, unknown>;
|
|
54
|
+
/** @deprecated use `PendleSellYtParams$outboundSchema` instead. */
|
|
55
|
+
const outboundSchema: z.ZodType<PendleSellYtParams$Outbound, z.ZodTypeDef, PendleSellYtParams>;
|
|
56
|
+
/** @deprecated use `PendleSellYtParams$Outbound` instead. */
|
|
57
|
+
type Outbound = PendleSellYtParams$Outbound;
|
|
58
|
+
}
|
|
59
|
+
export declare function pendleSellYtParamsToJSON(pendleSellYtParams: PendleSellYtParams): string;
|
|
60
|
+
export declare function pendleSellYtParamsFromJSON(jsonString: string): SafeParseResult<PendleSellYtParams, SDKValidationError>;
|
|
61
|
+
//# sourceMappingURL=pendlesellytparams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pendlesellytparams.d.ts","sourceRoot":"","sources":["../../../../src/models/components/pendlesellytparams.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,MAAM,GAAG,MAAM,CAAC;AAEvD,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAC4B,CAAC;AAEtC,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG,MAAM,GAAG,MAAM,CAAC;AAEhE,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CACW,CAAC;AAEtC;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,U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