@compass-labs/api-sdk 2.1.35-rc.3 → 2.1.35-rc.4
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/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/depositevent.d.ts +14 -2
- package/dist/commonjs/models/components/depositevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/depositevent.js +6 -0
- package/dist/commonjs/models/components/depositevent.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/depositevent.d.ts +14 -2
- package/dist/esm/models/components/depositevent.d.ts.map +1 -1
- package/dist/esm/models/components/depositevent.js +6 -0
- package/dist/esm/models/components/depositevent.js.map +1 -1
- package/docs/models/components/depositevent.md +10 -7
- package/examples/node_modules/@types/node/README.md +1 -1
- package/examples/node_modules/@types/node/package.json +2 -2
- package/examples/node_modules/@types/node/tls.d.ts +4 -0
- package/examples/package-lock.json +3 -3
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/depositevent.ts +20 -2
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.793.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.793.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -32,7 +32,7 @@ exports.SDK_METADATA = {
|
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
34
|
sdkVersion: "2.0.0",
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
genVersion: "2.793.0",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.793.0 0.0.1 @compass-labs/api-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -14,17 +14,29 @@ export type DepositEvent = {
|
|
|
14
14
|
*/
|
|
15
15
|
transactionHash: string;
|
|
16
16
|
/**
|
|
17
|
-
* Amount of underlying asset deposited
|
|
17
|
+
* Amount of underlying asset deposited (for Pendle: SY-denominated cost basis)
|
|
18
18
|
*/
|
|
19
19
|
assetsDeposited: string;
|
|
20
20
|
/**
|
|
21
|
-
* Shares (vault)
|
|
21
|
+
* Shares (vault), aTokens (Aave), or PT tokens (Pendle) received
|
|
22
22
|
*/
|
|
23
23
|
unitsReceived: string;
|
|
24
24
|
/**
|
|
25
25
|
* Cost basis per unit at time of deposit
|
|
26
26
|
*/
|
|
27
27
|
costPerUnit: string;
|
|
28
|
+
/**
|
|
29
|
+
* Address of token used for deposit (for Pendle swaps)
|
|
30
|
+
*/
|
|
31
|
+
tokenAddress?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Symbol of token used for deposit (for Pendle swaps)
|
|
34
|
+
*/
|
|
35
|
+
tokenSymbol?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Amount of token spent in native decimals (for Pendle swaps)
|
|
38
|
+
*/
|
|
39
|
+
tokenAmount?: string | null | undefined;
|
|
28
40
|
};
|
|
29
41
|
/** @internal */
|
|
30
42
|
export declare const DepositEvent$inboundSchema: z.ZodType<DepositEvent, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"depositevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -48,6 +48,9 @@ exports.DepositEvent$inboundSchema = z.object({
|
|
|
48
48
|
assets_deposited: z.string(),
|
|
49
49
|
units_received: z.string(),
|
|
50
50
|
cost_per_unit: z.string(),
|
|
51
|
+
token_address: z.nullable(z.string()).optional(),
|
|
52
|
+
token_symbol: z.nullable(z.string()).optional(),
|
|
53
|
+
token_amount: z.nullable(z.string()).optional(),
|
|
51
54
|
}).transform((v) => {
|
|
52
55
|
return (0, primitives_js_1.remap)(v, {
|
|
53
56
|
"block_number": "blockNumber",
|
|
@@ -55,6 +58,9 @@ exports.DepositEvent$inboundSchema = z.object({
|
|
|
55
58
|
"assets_deposited": "assetsDeposited",
|
|
56
59
|
"units_received": "unitsReceived",
|
|
57
60
|
"cost_per_unit": "costPerUnit",
|
|
61
|
+
"token_address": "tokenAddress",
|
|
62
|
+
"token_symbol": "tokenSymbol",
|
|
63
|
+
"token_amount": "tokenAmount",
|
|
58
64
|
});
|
|
59
65
|
});
|
|
60
66
|
function depositEventFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositevent.js","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"depositevent.js","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyEH,oDAQC;AA/ED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AA0CjD,gBAAgB;AACH,QAAA,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,kBAAkB,EAAE,iBAAiB;QACrC,kBAAkB,EAAE,iBAAiB;QACrC,gBAAgB,EAAE,eAAe;QACjC,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,cAAc;QAC/B,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,oBAAoB,CAClC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kCAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export declare const SDK_METADATA: {
|
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
34
|
readonly sdkVersion: "2.0.0";
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
35
|
+
readonly genVersion: "2.793.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 2.0.0 2.793.0 0.0.1 @compass-labs/api-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -28,7 +28,7 @@ export const SDK_METADATA = {
|
|
|
28
28
|
language: "typescript",
|
|
29
29
|
openapiDocVersion: "0.0.1",
|
|
30
30
|
sdkVersion: "2.0.0",
|
|
31
|
-
genVersion: "2.
|
|
32
|
-
userAgent: "speakeasy-sdk/typescript 2.0.0 2.
|
|
31
|
+
genVersion: "2.793.0",
|
|
32
|
+
userAgent: "speakeasy-sdk/typescript 2.0.0 2.793.0 0.0.1 @compass-labs/api-sdk",
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.js.map
|
|
@@ -14,17 +14,29 @@ export type DepositEvent = {
|
|
|
14
14
|
*/
|
|
15
15
|
transactionHash: string;
|
|
16
16
|
/**
|
|
17
|
-
* Amount of underlying asset deposited
|
|
17
|
+
* Amount of underlying asset deposited (for Pendle: SY-denominated cost basis)
|
|
18
18
|
*/
|
|
19
19
|
assetsDeposited: string;
|
|
20
20
|
/**
|
|
21
|
-
* Shares (vault)
|
|
21
|
+
* Shares (vault), aTokens (Aave), or PT tokens (Pendle) received
|
|
22
22
|
*/
|
|
23
23
|
unitsReceived: string;
|
|
24
24
|
/**
|
|
25
25
|
* Cost basis per unit at time of deposit
|
|
26
26
|
*/
|
|
27
27
|
costPerUnit: string;
|
|
28
|
+
/**
|
|
29
|
+
* Address of token used for deposit (for Pendle swaps)
|
|
30
|
+
*/
|
|
31
|
+
tokenAddress?: string | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Symbol of token used for deposit (for Pendle swaps)
|
|
34
|
+
*/
|
|
35
|
+
tokenSymbol?: string | null | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Amount of token spent in native decimals (for Pendle swaps)
|
|
38
|
+
*/
|
|
39
|
+
tokenAmount?: string | null | undefined;
|
|
28
40
|
};
|
|
29
41
|
/** @internal */
|
|
30
42
|
export declare const DepositEvent$inboundSchema: z.ZodType<DepositEvent, z.ZodTypeDef, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"depositevent.d.ts","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,OAAO,CAChD,YAAY,EACZ,CAAC,CAAC,UAAU,EACZ,OAAO,CAqBP,CAAC;AAEH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,YAAY,EAAE,kBAAkB,CAAC,CAMnD"}
|
|
@@ -11,6 +11,9 @@ export const DepositEvent$inboundSchema = z.object({
|
|
|
11
11
|
assets_deposited: z.string(),
|
|
12
12
|
units_received: z.string(),
|
|
13
13
|
cost_per_unit: z.string(),
|
|
14
|
+
token_address: z.nullable(z.string()).optional(),
|
|
15
|
+
token_symbol: z.nullable(z.string()).optional(),
|
|
16
|
+
token_amount: z.nullable(z.string()).optional(),
|
|
14
17
|
}).transform((v) => {
|
|
15
18
|
return remap$(v, {
|
|
16
19
|
"block_number": "blockNumber",
|
|
@@ -18,6 +21,9 @@ export const DepositEvent$inboundSchema = z.object({
|
|
|
18
21
|
"assets_deposited": "assetsDeposited",
|
|
19
22
|
"units_received": "unitsReceived",
|
|
20
23
|
"cost_per_unit": "costPerUnit",
|
|
24
|
+
"token_address": "tokenAddress",
|
|
25
|
+
"token_symbol": "tokenSymbol",
|
|
26
|
+
"token_amount": "tokenAmount",
|
|
21
27
|
});
|
|
22
28
|
});
|
|
23
29
|
export function depositEventFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depositevent.js","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"depositevent.js","sourceRoot":"","sources":["../../../../src/models/components/depositevent.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AA0CjD,gBAAgB;AAChB,MAAM,CAAC,MAAM,0BAA0B,GAInC,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC5B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAChD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,kBAAkB,EAAE,iBAAiB;QACrC,kBAAkB,EAAE,iBAAiB;QACrC,gBAAgB,EAAE,eAAe;QACjC,eAAe,EAAE,aAAa;QAC9B,eAAe,EAAE,cAAc;QAC/B,cAAc,EAAE,aAAa;QAC7B,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAClC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtD,0CAA0C,CAC3C,CAAC;AACJ,CAAC"}
|
|
@@ -18,10 +18,13 @@ let value: DepositEvent = {
|
|
|
18
18
|
|
|
19
19
|
## Fields
|
|
20
20
|
|
|
21
|
-
| Field
|
|
22
|
-
|
|
|
23
|
-
| `blockNumber`
|
|
24
|
-
| `transactionHash`
|
|
25
|
-
| `assetsDeposited`
|
|
26
|
-
| `unitsReceived`
|
|
27
|
-
| `costPerUnit`
|
|
21
|
+
| Field | Type | Required | Description |
|
|
22
|
+
| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- |
|
|
23
|
+
| `blockNumber` | *number* | :heavy_check_mark: | Block number when deposit occurred |
|
|
24
|
+
| `transactionHash` | *string* | :heavy_check_mark: | Transaction hash of the deposit |
|
|
25
|
+
| `assetsDeposited` | *string* | :heavy_check_mark: | Amount of underlying asset deposited (for Pendle: SY-denominated cost basis) |
|
|
26
|
+
| `unitsReceived` | *string* | :heavy_check_mark: | Shares (vault), aTokens (Aave), or PT tokens (Pendle) received |
|
|
27
|
+
| `costPerUnit` | *string* | :heavy_check_mark: | Cost basis per unit at time of deposit |
|
|
28
|
+
| `tokenAddress` | *string* | :heavy_minus_sign: | Address of token used for deposit (for Pendle swaps) |
|
|
29
|
+
| `tokenSymbol` | *string* | :heavy_minus_sign: | Symbol of token used for deposit (for Pendle swaps) |
|
|
30
|
+
| `tokenAmount` | *string* | :heavy_minus_sign: | Amount of token spent in native decimals (for Pendle swaps) |
|
|
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v20.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sat, 10 Jan 2026 00:47:09 GMT
|
|
12
12
|
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)
|
|
13
13
|
|
|
14
14
|
# Credits
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/node",
|
|
3
|
-
"version": "20.19.
|
|
3
|
+
"version": "20.19.28",
|
|
4
4
|
"description": "TypeScript definitions for node",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
|
|
6
6
|
"license": "MIT",
|
|
@@ -135,6 +135,6 @@
|
|
|
135
135
|
"undici-types": "~6.21.0"
|
|
136
136
|
},
|
|
137
137
|
"peerDependencies": {},
|
|
138
|
-
"typesPublisherContentHash": "
|
|
138
|
+
"typesPublisherContentHash": "8728616c6a3e9fe3591cc84db473eadc0d8b4b60e392cf9d4699c99a87f569af",
|
|
139
139
|
"typeScriptVersion": "5.2"
|
|
140
140
|
}
|
|
@@ -245,6 +245,10 @@ declare module "tls" {
|
|
|
245
245
|
* When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false.
|
|
246
246
|
*/
|
|
247
247
|
alpnProtocol: string | false | null;
|
|
248
|
+
/**
|
|
249
|
+
* String containing the server name requested via SNI (Server Name Indication) TLS extension.
|
|
250
|
+
*/
|
|
251
|
+
servername: string | false | null;
|
|
248
252
|
/**
|
|
249
253
|
* Returns an object representing the local certificate. The returned object has
|
|
250
254
|
* some properties corresponding to the fields of the certificate.
|
|
@@ -478,9 +478,9 @@
|
|
|
478
478
|
}
|
|
479
479
|
},
|
|
480
480
|
"node_modules/@types/node": {
|
|
481
|
-
"version": "20.19.
|
|
482
|
-
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.
|
|
483
|
-
"integrity": "sha512-
|
|
481
|
+
"version": "20.19.28",
|
|
482
|
+
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.19.28.tgz",
|
|
483
|
+
"integrity": "sha512-VyKBr25BuFDzBFCK5sUM6ZXiWfqgCTwTAOK8qzGV/m9FCirXYDlmczJ+d5dXBAQALGCdRRdbteKYfJ84NGEusw==",
|
|
484
484
|
"dev": true,
|
|
485
485
|
"license": "MIT",
|
|
486
486
|
"dependencies": {
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -62,7 +62,7 @@ export const SDK_METADATA = {
|
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
64
|
sdkVersion: "2.0.0",
|
|
65
|
-
genVersion: "2.
|
|
65
|
+
genVersion: "2.793.0",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 2.0.0 2.
|
|
67
|
+
"speakeasy-sdk/typescript 2.0.0 2.793.0 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|
|
@@ -21,17 +21,29 @@ export type DepositEvent = {
|
|
|
21
21
|
*/
|
|
22
22
|
transactionHash: string;
|
|
23
23
|
/**
|
|
24
|
-
* Amount of underlying asset deposited
|
|
24
|
+
* Amount of underlying asset deposited (for Pendle: SY-denominated cost basis)
|
|
25
25
|
*/
|
|
26
26
|
assetsDeposited: string;
|
|
27
27
|
/**
|
|
28
|
-
* Shares (vault)
|
|
28
|
+
* Shares (vault), aTokens (Aave), or PT tokens (Pendle) received
|
|
29
29
|
*/
|
|
30
30
|
unitsReceived: string;
|
|
31
31
|
/**
|
|
32
32
|
* Cost basis per unit at time of deposit
|
|
33
33
|
*/
|
|
34
34
|
costPerUnit: string;
|
|
35
|
+
/**
|
|
36
|
+
* Address of token used for deposit (for Pendle swaps)
|
|
37
|
+
*/
|
|
38
|
+
tokenAddress?: string | null | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Symbol of token used for deposit (for Pendle swaps)
|
|
41
|
+
*/
|
|
42
|
+
tokenSymbol?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Amount of token spent in native decimals (for Pendle swaps)
|
|
45
|
+
*/
|
|
46
|
+
tokenAmount?: string | null | undefined;
|
|
35
47
|
};
|
|
36
48
|
|
|
37
49
|
/** @internal */
|
|
@@ -45,6 +57,9 @@ export const DepositEvent$inboundSchema: z.ZodType<
|
|
|
45
57
|
assets_deposited: z.string(),
|
|
46
58
|
units_received: z.string(),
|
|
47
59
|
cost_per_unit: z.string(),
|
|
60
|
+
token_address: z.nullable(z.string()).optional(),
|
|
61
|
+
token_symbol: z.nullable(z.string()).optional(),
|
|
62
|
+
token_amount: z.nullable(z.string()).optional(),
|
|
48
63
|
}).transform((v) => {
|
|
49
64
|
return remap$(v, {
|
|
50
65
|
"block_number": "blockNumber",
|
|
@@ -52,6 +67,9 @@ export const DepositEvent$inboundSchema: z.ZodType<
|
|
|
52
67
|
"assets_deposited": "assetsDeposited",
|
|
53
68
|
"units_received": "unitsReceived",
|
|
54
69
|
"cost_per_unit": "costPerUnit",
|
|
70
|
+
"token_address": "tokenAddress",
|
|
71
|
+
"token_symbol": "tokenSymbol",
|
|
72
|
+
"token_amount": "tokenAmount",
|
|
55
73
|
});
|
|
56
74
|
});
|
|
57
75
|
|