@compass-labs/api-sdk 1.0.8 → 1.0.9
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/bin/mcp-server.js +62 -69
- package/bin/mcp-server.js.map +16 -15
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerExecute.d.ts +1 -1
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerExecute.d.ts.map +1 -1
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerExecute.js +1 -1
- package/dist/commonjs/funcs/transactionBundlerTransactionBundlerExecute.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/bundlertransactionresponse.d.ts +30 -0
- package/dist/commonjs/models/components/bundlertransactionresponse.d.ts.map +1 -0
- package/dist/commonjs/models/components/bundlertransactionresponse.js +70 -0
- package/dist/commonjs/models/components/bundlertransactionresponse.js.map +1 -0
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +4 -5
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js +0 -5
- package/dist/commonjs/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/pendletxresponse.d.ts +4 -5
- package/dist/commonjs/models/components/pendletxresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/pendletxresponse.js +0 -5
- package/dist/commonjs/models/components/pendletxresponse.js.map +1 -1
- package/dist/commonjs/models/components/transactionresponse.d.ts +4 -5
- package/dist/commonjs/models/components/transactionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/transactionresponse.js +0 -5
- package/dist/commonjs/models/components/transactionresponse.js.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlytransactionresponse.d.ts +4 -5
- package/dist/commonjs/models/components/uniswapbuyexactlytransactionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapbuyexactlytransactionresponse.js +0 -5
- package/dist/commonjs/models/components/uniswapbuyexactlytransactionresponse.js.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlytransactionresponse.d.ts +4 -5
- package/dist/commonjs/models/components/uniswapsellexactlytransactionresponse.d.ts.map +1 -1
- package/dist/commonjs/models/components/uniswapsellexactlytransactionresponse.js +0 -5
- package/dist/commonjs/models/components/uniswapsellexactlytransactionresponse.js.map +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.d.ts +2 -2
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.d.ts.map +1 -1
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.js +2 -2
- package/dist/commonjs/models/operations/v1transactionbundleraaveloop.js.map +1 -1
- package/dist/commonjs/sdk/transactionbundler.d.ts +1 -1
- package/dist/commonjs/sdk/transactionbundler.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerExecute.d.ts +1 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerExecute.d.ts.map +1 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerExecute.js +1 -1
- package/dist/esm/funcs/transactionBundlerTransactionBundlerExecute.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/bundlertransactionresponse.d.ts +30 -0
- package/dist/esm/models/components/bundlertransactionresponse.d.ts.map +1 -0
- package/dist/esm/models/components/bundlertransactionresponse.js +32 -0
- package/dist/esm/models/components/bundlertransactionresponse.js.map +1 -0
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts +4 -5
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js +0 -5
- package/dist/esm/models/components/ethenarequesttowithdrawtransactionresponse.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/pendletxresponse.d.ts +4 -5
- package/dist/esm/models/components/pendletxresponse.d.ts.map +1 -1
- package/dist/esm/models/components/pendletxresponse.js +0 -5
- package/dist/esm/models/components/pendletxresponse.js.map +1 -1
- package/dist/esm/models/components/transactionresponse.d.ts +4 -5
- package/dist/esm/models/components/transactionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/transactionresponse.js +0 -5
- package/dist/esm/models/components/transactionresponse.js.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlytransactionresponse.d.ts +4 -5
- package/dist/esm/models/components/uniswapbuyexactlytransactionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapbuyexactlytransactionresponse.js +0 -5
- package/dist/esm/models/components/uniswapbuyexactlytransactionresponse.js.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlytransactionresponse.d.ts +4 -5
- package/dist/esm/models/components/uniswapsellexactlytransactionresponse.d.ts.map +1 -1
- package/dist/esm/models/components/uniswapsellexactlytransactionresponse.js +0 -5
- package/dist/esm/models/components/uniswapsellexactlytransactionresponse.js.map +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.d.ts +2 -2
- package/dist/esm/models/operations/v1transactionbundleraaveloop.d.ts.map +1 -1
- package/dist/esm/models/operations/v1transactionbundleraaveloop.js +2 -2
- package/dist/esm/models/operations/v1transactionbundleraaveloop.js.map +1 -1
- package/dist/esm/sdk/transactionbundler.d.ts +1 -1
- package/dist/esm/sdk/transactionbundler.d.ts.map +1 -1
- package/docs/sdks/transactionbundler/README.md +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/transactionBundlerTransactionBundlerExecute.ts +4 -4
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/bundlertransactionresponse.ts +72 -0
- package/src/models/components/ethenarequesttowithdrawtransactionresponse.ts +2 -20
- package/src/models/components/index.ts +1 -0
- package/src/models/components/pendletxresponse.ts +2 -20
- package/src/models/components/transactionresponse.ts +2 -20
- package/src/models/components/uniswapbuyexactlytransactionresponse.ts +2 -20
- package/src/models/components/uniswapsellexactlytransactionresponse.ts +2 -20
- package/src/models/operations/v1transactionbundleraaveloop.ts +4 -4
- package/src/sdk/transactionbundler.ts +1 -1
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { UnsignedMulticallTransaction, UnsignedMulticallTransaction$Outbound } from "./unsignedmulticalltransaction.js";
|
|
5
4
|
import { UnsignedTransaction, UnsignedTransaction$Outbound } from "./unsignedtransaction.js";
|
|
6
5
|
import { UserOperationResponse, UserOperationResponse$Outbound } from "./useroperationresponse.js";
|
|
7
6
|
/**
|
|
8
7
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
9
8
|
*/
|
|
10
|
-
export type PendleTxResponseTransaction = UnsignedTransaction |
|
|
9
|
+
export type PendleTxResponseTransaction = UnsignedTransaction | UserOperationResponse;
|
|
11
10
|
export type PendleTxResponse = {
|
|
12
11
|
/**
|
|
13
12
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
14
13
|
*/
|
|
15
|
-
transaction: UnsignedTransaction |
|
|
14
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
16
15
|
/**
|
|
17
16
|
* The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote.
|
|
18
17
|
*/
|
|
@@ -21,7 +20,7 @@ export type PendleTxResponse = {
|
|
|
21
20
|
/** @internal */
|
|
22
21
|
export declare const PendleTxResponseTransaction$inboundSchema: z.ZodType<PendleTxResponseTransaction, z.ZodTypeDef, unknown>;
|
|
23
22
|
/** @internal */
|
|
24
|
-
export type PendleTxResponseTransaction$Outbound = UnsignedTransaction$Outbound |
|
|
23
|
+
export type PendleTxResponseTransaction$Outbound = UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
25
24
|
/** @internal */
|
|
26
25
|
export declare const PendleTxResponseTransaction$outboundSchema: z.ZodType<PendleTxResponseTransaction$Outbound, z.ZodTypeDef, PendleTxResponseTransaction>;
|
|
27
26
|
/**
|
|
@@ -42,7 +41,7 @@ export declare function pendleTxResponseTransactionFromJSON(jsonString: string):
|
|
|
42
41
|
export declare const PendleTxResponse$inboundSchema: z.ZodType<PendleTxResponse, z.ZodTypeDef, unknown>;
|
|
43
42
|
/** @internal */
|
|
44
43
|
export type PendleTxResponse$Outbound = {
|
|
45
|
-
transaction: UnsignedTransaction$Outbound |
|
|
44
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
46
45
|
amount_out_quote: string;
|
|
47
46
|
};
|
|
48
47
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendletxresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/pendletxresponse.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"pendletxresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/pendletxresponse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,CAAC,CAMlE;AAED,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,yBAAyB,GAAG;IACtC,WAAW,EAAE,4BAA4B,GAAG,8BAA8B,CAAC;IAC3E,gBAAgB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,gBAAgB,CAWhB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,iBAAiB,CAAC;IACjC,gEAAgE;IACzD,MAAM,aAAa,oDAAiC,CAAC;IAC5D,iEAAiE;IAC1D,MAAM,cAAc,sEAAkC,CAAC;IAC9D,2DAA2D;IAC3D,KAAY,QAAQ,GAAG,yBAAyB,CAAC;CAClD;AAED,wBAAgB,sBAAsB,CACpC,gBAAgB,EAAE,gBAAgB,GACjC,MAAM,CAIR;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}
|
|
@@ -4,19 +4,16 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, } from "./unsignedmulticalltransaction.js";
|
|
8
7
|
import { UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, } from "./unsignedtransaction.js";
|
|
9
8
|
import { UserOperationResponse$inboundSchema, UserOperationResponse$outboundSchema, } from "./useroperationresponse.js";
|
|
10
9
|
/** @internal */
|
|
11
10
|
export const PendleTxResponseTransaction$inboundSchema = z.union([
|
|
12
11
|
UnsignedTransaction$inboundSchema,
|
|
13
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
14
12
|
UserOperationResponse$inboundSchema,
|
|
15
13
|
]);
|
|
16
14
|
/** @internal */
|
|
17
15
|
export const PendleTxResponseTransaction$outboundSchema = z.union([
|
|
18
16
|
UnsignedTransaction$outboundSchema,
|
|
19
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
20
17
|
UserOperationResponse$outboundSchema,
|
|
21
18
|
]);
|
|
22
19
|
/**
|
|
@@ -40,7 +37,6 @@ export function pendleTxResponseTransactionFromJSON(jsonString) {
|
|
|
40
37
|
export const PendleTxResponse$inboundSchema = z.object({
|
|
41
38
|
transaction: z.union([
|
|
42
39
|
UnsignedTransaction$inboundSchema,
|
|
43
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
44
40
|
UserOperationResponse$inboundSchema,
|
|
45
41
|
]),
|
|
46
42
|
amount_out_quote: z.string(),
|
|
@@ -53,7 +49,6 @@ export const PendleTxResponse$inboundSchema = z.object({
|
|
|
53
49
|
export const PendleTxResponse$outboundSchema = z.object({
|
|
54
50
|
transaction: z.union([
|
|
55
51
|
UnsignedTransaction$outboundSchema,
|
|
56
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
57
52
|
UserOperationResponse$outboundSchema,
|
|
58
53
|
]),
|
|
59
54
|
amountOutQuote: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendletxresponse.js","sourceRoot":"","sources":["../../../../src/models/components/pendletxresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"pendletxresponse.js","sourceRoot":"","sources":["../../../../src/models/components/pendletxresponse.ts"],"names":[],"mappings":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import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { UnsignedMulticallTransaction, UnsignedMulticallTransaction$Outbound } from "./unsignedmulticalltransaction.js";
|
|
5
4
|
import { UnsignedTransaction, UnsignedTransaction$Outbound } from "./unsignedtransaction.js";
|
|
6
5
|
import { UserOperationResponse, UserOperationResponse$Outbound } from "./useroperationresponse.js";
|
|
7
6
|
/**
|
|
8
7
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
9
8
|
*/
|
|
10
|
-
export type TransactionResponseTransaction = UnsignedTransaction |
|
|
9
|
+
export type TransactionResponseTransaction = UnsignedTransaction | UserOperationResponse;
|
|
11
10
|
export type TransactionResponse = {
|
|
12
11
|
/**
|
|
13
12
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
14
13
|
*/
|
|
15
|
-
transaction: UnsignedTransaction |
|
|
14
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
16
15
|
};
|
|
17
16
|
/** @internal */
|
|
18
17
|
export declare const TransactionResponseTransaction$inboundSchema: z.ZodType<TransactionResponseTransaction, z.ZodTypeDef, unknown>;
|
|
19
18
|
/** @internal */
|
|
20
|
-
export type TransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound |
|
|
19
|
+
export type TransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
21
20
|
/** @internal */
|
|
22
21
|
export declare const TransactionResponseTransaction$outboundSchema: z.ZodType<TransactionResponseTransaction$Outbound, z.ZodTypeDef, TransactionResponseTransaction>;
|
|
23
22
|
/**
|
|
@@ -38,7 +37,7 @@ export declare function transactionResponseTransactionFromJSON(jsonString: strin
|
|
|
38
37
|
export declare const TransactionResponse$inboundSchema: z.ZodType<TransactionResponse, z.ZodTypeDef, unknown>;
|
|
39
38
|
/** @internal */
|
|
40
39
|
export type TransactionResponse$Outbound = {
|
|
41
|
-
transaction: UnsignedTransaction$Outbound |
|
|
40
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
42
41
|
};
|
|
43
42
|
/** @internal */
|
|
44
43
|
export declare const TransactionResponse$outboundSchema: z.ZodType<TransactionResponse$Outbound, z.ZodTypeDef, TransactionResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/transactionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"transactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/transactionresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,8BAA8B,GACtC,mBAAmB,GACnB,qBAAqB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,WAAW,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;CAC1D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,OAAO,CAClE,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uCAAuC,GAC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C,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
|
|
@@ -3,19 +3,16 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { safeParse } from "../../lib/schemas.js";
|
|
6
|
-
import { UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, } from "./unsignedmulticalltransaction.js";
|
|
7
6
|
import { UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, } from "./unsignedtransaction.js";
|
|
8
7
|
import { UserOperationResponse$inboundSchema, UserOperationResponse$outboundSchema, } from "./useroperationresponse.js";
|
|
9
8
|
/** @internal */
|
|
10
9
|
export const TransactionResponseTransaction$inboundSchema = z.union([
|
|
11
10
|
UnsignedTransaction$inboundSchema,
|
|
12
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
13
11
|
UserOperationResponse$inboundSchema,
|
|
14
12
|
]);
|
|
15
13
|
/** @internal */
|
|
16
14
|
export const TransactionResponseTransaction$outboundSchema = z.union([
|
|
17
15
|
UnsignedTransaction$outboundSchema,
|
|
18
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
19
16
|
UserOperationResponse$outboundSchema,
|
|
20
17
|
]);
|
|
21
18
|
/**
|
|
@@ -39,7 +36,6 @@ export function transactionResponseTransactionFromJSON(jsonString) {
|
|
|
39
36
|
export const TransactionResponse$inboundSchema = z.object({
|
|
40
37
|
transaction: z.union([
|
|
41
38
|
UnsignedTransaction$inboundSchema,
|
|
42
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
43
39
|
UserOperationResponse$inboundSchema,
|
|
44
40
|
]),
|
|
45
41
|
});
|
|
@@ -47,7 +43,6 @@ export const TransactionResponse$inboundSchema = z.object({
|
|
|
47
43
|
export const TransactionResponse$outboundSchema = z.object({
|
|
48
44
|
transaction: z.union([
|
|
49
45
|
UnsignedTransaction$outboundSchema,
|
|
50
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
51
46
|
UserOperationResponse$outboundSchema,
|
|
52
47
|
]),
|
|
53
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/transactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"transactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/transactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,mCAAmC,EAEnC,oCAAoC,GACrC,MAAM,4BAA4B,CAAC;AAgBpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,4CAA4C,GAIrD,CAAC,CAAC,KAAK,CAAC;IACV,iCAAiC;IACjC,mCAAmC;CACpC,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,6CAA6C,GAItD,CAAC,CAAC,KAAK,CAAC;IACV,kCAAkC;IAClC,oCAAoC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,4CAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,6CAA6C,CAAC;AAG9E,CAAC,EAPgB,+BAA+B,KAA/B,+BAA+B,QAO/C;AAED,MAAM,UAAU,oCAAoC,CAClD,8BAA8D;IAE9D,OAAO,IAAI,CAAC,SAAS,CACnB,6CAA6C,CAAC,KAAK,CACjD,8BAA8B,CAC/B,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAA4C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxE,4DAA4D,CAC7D,CAAC;AACJ,CAAC;AAED,gBAAgB;AAChB,MAAM,CAAC,MAAM,iCAAiC,GAI1C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,iCAAiC;QACjC,mCAAmC;KACpC,CAAC;CACH,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,kCAAkC;QAClC,oCAAoC;KACrC,CAAC;CACH,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,oBAAoB,CAOpC;AAPD,WAAiB,oBAAoB;IACnC,mEAAmE;IACtD,kCAAa,GAAG,iCAAiC,CAAC;IAC/D,oEAAoE;IACvD,mCAAc,GAAG,kCAAkC,CAAC;AAGnE,CAAC,EAPgB,oBAAoB,KAApB,oBAAoB,QAOpC;AAED,MAAM,UAAU,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,kCAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,iCAAiC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC7D,iDAAiD,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { UnsignedMulticallTransaction, UnsignedMulticallTransaction$Outbound } from "./unsignedmulticalltransaction.js";
|
|
5
4
|
import { UnsignedTransaction, UnsignedTransaction$Outbound } from "./unsignedtransaction.js";
|
|
6
5
|
import { UserOperationResponse, UserOperationResponse$Outbound } from "./useroperationresponse.js";
|
|
7
6
|
/**
|
|
8
7
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
9
8
|
*/
|
|
10
|
-
export type UniswapBuyExactlyTransactionResponseTransaction = UnsignedTransaction |
|
|
9
|
+
export type UniswapBuyExactlyTransactionResponseTransaction = UnsignedTransaction | UserOperationResponse;
|
|
11
10
|
export type UniswapBuyExactlyTransactionResponse = {
|
|
12
11
|
/**
|
|
13
12
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
14
13
|
*/
|
|
15
|
-
transaction: UnsignedTransaction |
|
|
14
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
16
15
|
/**
|
|
17
16
|
* The estimated amount in for the transaction. The actual input amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote.
|
|
18
17
|
*/
|
|
@@ -21,7 +20,7 @@ export type UniswapBuyExactlyTransactionResponse = {
|
|
|
21
20
|
/** @internal */
|
|
22
21
|
export declare const UniswapBuyExactlyTransactionResponseTransaction$inboundSchema: z.ZodType<UniswapBuyExactlyTransactionResponseTransaction, z.ZodTypeDef, unknown>;
|
|
23
22
|
/** @internal */
|
|
24
|
-
export type UniswapBuyExactlyTransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound |
|
|
23
|
+
export type UniswapBuyExactlyTransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
25
24
|
/** @internal */
|
|
26
25
|
export declare const UniswapBuyExactlyTransactionResponseTransaction$outboundSchema: z.ZodType<UniswapBuyExactlyTransactionResponseTransaction$Outbound, z.ZodTypeDef, UniswapBuyExactlyTransactionResponseTransaction>;
|
|
27
26
|
/**
|
|
@@ -42,7 +41,7 @@ export declare function uniswapBuyExactlyTransactionResponseTransactionFromJSON(
|
|
|
42
41
|
export declare const UniswapBuyExactlyTransactionResponse$inboundSchema: z.ZodType<UniswapBuyExactlyTransactionResponse, z.ZodTypeDef, unknown>;
|
|
43
42
|
/** @internal */
|
|
44
43
|
export type UniswapBuyExactlyTransactionResponse$Outbound = {
|
|
45
|
-
transaction: UnsignedTransaction$Outbound |
|
|
44
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
46
45
|
amount_in_quote: string;
|
|
47
46
|
};
|
|
48
47
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlytransactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlytransactionresponse.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlytransactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlytransactionresponse.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;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,+CAA+C,GACvD,mBAAmB,GACnB,qBAAqB,CAAC;AAE1B,MAAM,MAAM,oCAA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G;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -4,19 +4,16 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, } from "./unsignedmulticalltransaction.js";
|
|
8
7
|
import { UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, } from "./unsignedtransaction.js";
|
|
9
8
|
import { UserOperationResponse$inboundSchema, UserOperationResponse$outboundSchema, } from "./useroperationresponse.js";
|
|
10
9
|
/** @internal */
|
|
11
10
|
export const UniswapBuyExactlyTransactionResponseTransaction$inboundSchema = z.union([
|
|
12
11
|
UnsignedTransaction$inboundSchema,
|
|
13
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
14
12
|
UserOperationResponse$inboundSchema,
|
|
15
13
|
]);
|
|
16
14
|
/** @internal */
|
|
17
15
|
export const UniswapBuyExactlyTransactionResponseTransaction$outboundSchema = z.union([
|
|
18
16
|
UnsignedTransaction$outboundSchema,
|
|
19
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
20
17
|
UserOperationResponse$outboundSchema,
|
|
21
18
|
]);
|
|
22
19
|
/**
|
|
@@ -40,7 +37,6 @@ export function uniswapBuyExactlyTransactionResponseTransactionFromJSON(jsonStri
|
|
|
40
37
|
export const UniswapBuyExactlyTransactionResponse$inboundSchema = z.object({
|
|
41
38
|
transaction: z.union([
|
|
42
39
|
UnsignedTransaction$inboundSchema,
|
|
43
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
44
40
|
UserOperationResponse$inboundSchema,
|
|
45
41
|
]),
|
|
46
42
|
amount_in_quote: z.string(),
|
|
@@ -53,7 +49,6 @@ export const UniswapBuyExactlyTransactionResponse$inboundSchema = z.object({
|
|
|
53
49
|
export const UniswapBuyExactlyTransactionResponse$outboundSchema = z.object({
|
|
54
50
|
transaction: z.union([
|
|
55
51
|
UnsignedTransaction$outboundSchema,
|
|
56
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
57
52
|
UserOperationResponse$outboundSchema,
|
|
58
53
|
]),
|
|
59
54
|
amountInQuote: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapbuyexactlytransactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlytransactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"uniswapbuyexactlytransactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapbuyexactlytransactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,mCAAmC,EAEnC,oCAAoC,GACrC,MAAM,4BAA4B,CAA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AC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC;QACnB,kCAAkC;QAClC,oCAAoC;KACrC,CAAC;IACF,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;CAC1B,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,aAAa,EAAE,iBAAiB;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,qCAAqC,CASrD;AATD,WAAiB,qCAAqC;IACpD,oFAAoF;IACvE,mDAAa,GACxB,kDAAkD,CAAC;IACrD,qFAAqF;IACxE,oDAAc,GACzB,mDAAmD,CAAC;AAGxD,CAAC,EATgB,qCAAqC,KAArC,qCAAqC,QASrD;AAED,MAAM,UAAU,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,mDAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kDAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { UnsignedMulticallTransaction, UnsignedMulticallTransaction$Outbound } from "./unsignedmulticalltransaction.js";
|
|
5
4
|
import { UnsignedTransaction, UnsignedTransaction$Outbound } from "./unsignedtransaction.js";
|
|
6
5
|
import { UserOperationResponse, UserOperationResponse$Outbound } from "./useroperationresponse.js";
|
|
7
6
|
/**
|
|
8
7
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
9
8
|
*/
|
|
10
|
-
export type UniswapSellExactlyTransactionResponseTransaction = UnsignedTransaction |
|
|
9
|
+
export type UniswapSellExactlyTransactionResponseTransaction = UnsignedTransaction | UserOperationResponse;
|
|
11
10
|
export type UniswapSellExactlyTransactionResponse = {
|
|
12
11
|
/**
|
|
13
12
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
14
13
|
*/
|
|
15
|
-
transaction: UnsignedTransaction |
|
|
14
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
16
15
|
/**
|
|
17
16
|
* The estimated amount out for the transaction. The actual output amount for this transaction is guaranteed be within the acceptable threshold, defined by the `max_slippage_percent`, relative to this quote.
|
|
18
17
|
*/
|
|
@@ -21,7 +20,7 @@ export type UniswapSellExactlyTransactionResponse = {
|
|
|
21
20
|
/** @internal */
|
|
22
21
|
export declare const UniswapSellExactlyTransactionResponseTransaction$inboundSchema: z.ZodType<UniswapSellExactlyTransactionResponseTransaction, z.ZodTypeDef, unknown>;
|
|
23
22
|
/** @internal */
|
|
24
|
-
export type UniswapSellExactlyTransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound |
|
|
23
|
+
export type UniswapSellExactlyTransactionResponseTransaction$Outbound = UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
25
24
|
/** @internal */
|
|
26
25
|
export declare const UniswapSellExactlyTransactionResponseTransaction$outboundSchema: z.ZodType<UniswapSellExactlyTransactionResponseTransaction$Outbound, z.ZodTypeDef, UniswapSellExactlyTransactionResponseTransaction>;
|
|
27
26
|
/**
|
|
@@ -42,7 +41,7 @@ export declare function uniswapSellExactlyTransactionResponseTransactionFromJSON
|
|
|
42
41
|
export declare const UniswapSellExactlyTransactionResponse$inboundSchema: z.ZodType<UniswapSellExactlyTransactionResponse, z.ZodTypeDef, unknown>;
|
|
43
42
|
/** @internal */
|
|
44
43
|
export type UniswapSellExactlyTransactionResponse$Outbound = {
|
|
45
|
-
transaction: UnsignedTransaction$Outbound |
|
|
44
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
46
45
|
amount_out_quote: string;
|
|
47
46
|
};
|
|
48
47
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapsellexactlytransactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapsellexactlytransactionresponse.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;AACrE,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"uniswapsellexactlytransactionresponse.d.ts","sourceRoot":"","sources":["../../../../src/models/components/uniswapsellexactlytransactionresponse.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;AACrE,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,4BAA4B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,gDAAgD,GACxD,mBAAmB,GACnB,qBAAqB,CAAC;AAE1B,MAAM,MAAM,qCAAqC,GAAG;IAClD;;OAEG;IACH,WAAW,EAAE,mBAAmB,GAAG,qBAAqB,CAAC;IACzD;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8DAA8D,EACzE,CAAC,CAAC,OAAO,CACP,gDAAgD,EAChD,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEL,gBAAgB;AAChB,MAA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,6CAA6C,CAC3D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qCAAqC,EAAE,kBAAkB,CAAC,CAO5E"}
|
|
@@ -4,19 +4,16 @@
|
|
|
4
4
|
import * as z from "zod";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { UnsignedMulticallTransaction$inboundSchema, UnsignedMulticallTransaction$outboundSchema, } from "./unsignedmulticalltransaction.js";
|
|
8
7
|
import { UnsignedTransaction$inboundSchema, UnsignedTransaction$outboundSchema, } from "./unsignedtransaction.js";
|
|
9
8
|
import { UserOperationResponse$inboundSchema, UserOperationResponse$outboundSchema, } from "./useroperationresponse.js";
|
|
10
9
|
/** @internal */
|
|
11
10
|
export const UniswapSellExactlyTransactionResponseTransaction$inboundSchema = z.union([
|
|
12
11
|
UnsignedTransaction$inboundSchema,
|
|
13
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
14
12
|
UserOperationResponse$inboundSchema,
|
|
15
13
|
]);
|
|
16
14
|
/** @internal */
|
|
17
15
|
export const UniswapSellExactlyTransactionResponseTransaction$outboundSchema = z.union([
|
|
18
16
|
UnsignedTransaction$outboundSchema,
|
|
19
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
20
17
|
UserOperationResponse$outboundSchema,
|
|
21
18
|
]);
|
|
22
19
|
/**
|
|
@@ -40,7 +37,6 @@ export function uniswapSellExactlyTransactionResponseTransactionFromJSON(jsonStr
|
|
|
40
37
|
export const UniswapSellExactlyTransactionResponse$inboundSchema = z.object({
|
|
41
38
|
transaction: z.union([
|
|
42
39
|
UnsignedTransaction$inboundSchema,
|
|
43
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
44
40
|
UserOperationResponse$inboundSchema,
|
|
45
41
|
]),
|
|
46
42
|
amount_out_quote: z.string(),
|
|
@@ -53,7 +49,6 @@ export const UniswapSellExactlyTransactionResponse$inboundSchema = z.object({
|
|
|
53
49
|
export const UniswapSellExactlyTransactionResponse$outboundSchema = z.object({
|
|
54
50
|
transaction: z.union([
|
|
55
51
|
UnsignedTransaction$outboundSchema,
|
|
56
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
57
52
|
UserOperationResponse$outboundSchema,
|
|
58
53
|
]),
|
|
59
54
|
amountOutQuote: z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uniswapsellexactlytransactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapsellexactlytransactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"uniswapsellexactlytransactionresponse.js","sourceRoot":"","sources":["../../../../src/models/components/uniswapsellexactlytransactionresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,mCAAmC,EAEnC,oCAAoC,GACrC,MAAM,4BAA4B,CAAC;AAoBpC,gBAAgB;AAChB,MAAM,CAAC,MAAM,8DAA8D,GAKrE,CAAC,CAAC,KAAK,CAAC;IACV,iCAAiC;IACjC,mCAAmC;CACpC,CAAC,CAAC;AAOL,gBAAgB;AAChB,MAAM,CAAC,MAAM,+DAA+D,GAKtE,CAAC,CAAC,KAAK,CAAC;IACV,kCAAkC;IAClC,oCAAoC;CACrC,CAAC,CAAC;AAEL;;;GAGG;AACH,MAAM,K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AC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,sCAAsC,CAStD;AATD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,mDAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,oDAAoD,CAAC;AAGzD,CAAC,EATgB,sCAAsC,KAAtC,sCAAsC,QAStD;AAED,MAAM,UAAU,2CAA2C,CACzD,qCAA4E;IAE5E,OAAO,IAAI,CAAC,SAAS,CACnB,oDAAoD,CAAC,KAAK,CACxD,qCAAqC,CACtC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,6CAA6C,CAC3D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,mDAAmD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,mEAAmE,CACpE,CAAC;AACJ,CAAC"}
|
|
@@ -5,11 +5,11 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* Successful Response
|
|
7
7
|
*/
|
|
8
|
-
export type ResponseV1TransactionBundlerAaveLoop = components.
|
|
8
|
+
export type ResponseV1TransactionBundlerAaveLoop = components.BundlerTransactionResponse | components.BatchedUserOperationsResponse;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<ResponseV1TransactionBundlerAaveLoop, z.ZodTypeDef, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
|
-
export type ResponseV1TransactionBundlerAaveLoop$Outbound = components.
|
|
12
|
+
export type ResponseV1TransactionBundlerAaveLoop$Outbound = components.BundlerTransactionResponse$Outbound | components.BatchedUserOperationsResponse$Outbound;
|
|
13
13
|
/** @internal */
|
|
14
14
|
export declare const ResponseV1TransactionBundlerAaveLoop$outboundSchema: z.ZodType<ResponseV1TransactionBundlerAaveLoop$Outbound, z.ZodTypeDef, ResponseV1TransactionBundlerAaveLoop>;
|
|
15
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAC5C,UAAU,CAAC,0BAA0B,GACrC,UAAU,CAAC,6BAA6B,CAAC;AAE7C,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAAE,CAAC,CAAC,OAAO,CACxE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6CAA6C,GACrD,UAAU,CAAC,mCAAmC,GAC9C,UAAU,CAAC,sCAAsC,CAAC;AAEtD,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAAE,CAAC,CAAC,OAAO,CACzE,6CAA6C,EAC7C,CAAC,CAAC,UAAU,EACZ,oCAAoC,CAIpC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qCAAqC,CAAC;IACrD,oFAAoF;IAC7E,MAAM,aAAa,wEAC0B,CAAC;IACrD,qFAAqF;IAC9E,MAAM,cAAc,8GAC0B,CAAC;IACtD,+EAA+E;IAC/E,KAAY,QAAQ,GAAG,6CAA6C,CAAC;CACtE;AAED,wBAAgB,0CAA0C,CACxD,oCAAoC,EAAE,oCAAoC,GACzE,MAAM,CAMR;AAED,wBAAgB,4CAA4C,CAC1D,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oCAAoC,EAAE,kBAAkB,CAAC,CAO3E"}
|
|
@@ -6,12 +6,12 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
6
6
|
import * as components from "../components/index.js";
|
|
7
7
|
/** @internal */
|
|
8
8
|
export const ResponseV1TransactionBundlerAaveLoop$inboundSchema = z.union([
|
|
9
|
-
components.
|
|
9
|
+
components.BundlerTransactionResponse$inboundSchema,
|
|
10
10
|
components.BatchedUserOperationsResponse$inboundSchema,
|
|
11
11
|
]);
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const ResponseV1TransactionBundlerAaveLoop$outboundSchema = z.union([
|
|
14
|
-
components.
|
|
14
|
+
components.BundlerTransactionResponse$outboundSchema,
|
|
15
15
|
components.BatchedUserOperationsResponse$outboundSchema,
|
|
16
16
|
]);
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"v1transactionbundleraaveloop.js","sourceRoot":"","sources":["../../../../src/models/operations/v1transactionbundleraaveloop.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD,OAAO,KAAK,UAAU,MAAM,wBAAwB,CAAC;AAUrD,gBAAgB;AAChB,MAAM,CAAC,MAAM,kDAAkD,GAI3D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,wCAAwC;IACnD,UAAU,CAAC,2CAA2C;CACvD,CAAC,CAAC;AAOH,gBAAgB;AAChB,MAAM,CAAC,MAAM,mDAAmD,GAI5D,CAAC,CAAC,KAAK,CAAC;IACV,UAAU,CAAC,yCAAyC;IACpD,UAAU,CAAC,4CAA4C;CACxD,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,qCAAqC,CASrD;AATD,WAAiB,qCAAqC;IACpD,oFAAoF;IACvE,mDAAa,GACxB,kDAAkD,CAAC;IACrD,qFAAqF;IACxE,oDAAc,GACzB,mDAAmD,CAAC;AAGxD,CAAC,EATgB,qCAAqC,KAArC,qCAAqC,QASrD;AAED,MAAM,UAAU,0CAA0C,CACxD,oCAA0E;IAE1E,OAAO,IAAI,CAAC,SAAS,CACnB,mDAAmD,CAAC,KAAK,CACvD,oCAAoC,CACrC,CACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4CAA4C,CAC1D,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,kDAAkD,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,kEAAkE,CACnE,CAAC;AACJ,CAAC"}
|
|
@@ -26,7 +26,7 @@ export declare class TransactionBundler extends ClientSDK {
|
|
|
26
26
|
* together. The transaction must be authorized using the /authorization endpoint to
|
|
27
27
|
* prevent replay attacks.
|
|
28
28
|
*/
|
|
29
|
-
transactionBundlerExecute(request: components.MulticallExecuteRequest, options?: RequestOptions): Promise<components.
|
|
29
|
+
transactionBundlerExecute(request: components.MulticallExecuteRequest, options?: RequestOptions): Promise<components.BundlerTransactionResponse>;
|
|
30
30
|
/**
|
|
31
31
|
* AAVE Leverage Long/Short
|
|
32
32
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactionbundler.d.ts","sourceRoot":"","sources":["../../../src/sdk/transactionbundler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C;;;;;;;;;;OAUG;IACG,+BAA+B,CACnC,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;;;;;;;OAWG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"transactionbundler.d.ts","sourceRoot":"","sources":["../../../src/sdk/transactionbundler.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,kBAAmB,SAAQ,SAAS;IAC/C;;;;;;;;;;OAUG;IACG,+BAA+B,CACnC,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,8BAA8B,CAAC;IAQrD;;;;;;;;;;;OAWG;IACG,yBAAyB,CAC7B,OAAO,EAAE,UAAU,CAAC,uBAAuB,EAC3C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAQjD;;;;;;;;;;;;;;;OAeG;IACG,0BAA0B,CAC9B,OAAO,EAAE,UAAU,CAAC,eAAe,EACnC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,UAAU,CAAC,oCAAoC,CAAC;CAO5D"}
|
|
@@ -199,7 +199,7 @@ run();
|
|
|
199
199
|
|
|
200
200
|
### Response
|
|
201
201
|
|
|
202
|
-
**Promise\<[components.
|
|
202
|
+
**Promise\<[components.BundlerTransactionResponse](../../models/components/bundlertransactionresponse.md)\>**
|
|
203
203
|
|
|
204
204
|
### Errors
|
|
205
205
|
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -43,7 +43,7 @@ export function transactionBundlerTransactionBundlerExecute(
|
|
|
43
43
|
options?: RequestOptions,
|
|
44
44
|
): APIPromise<
|
|
45
45
|
Result<
|
|
46
|
-
components.
|
|
46
|
+
components.BundlerTransactionResponse,
|
|
47
47
|
| errors.HTTPValidationError
|
|
48
48
|
| CompassAPISDKError
|
|
49
49
|
| ResponseValidationError
|
|
@@ -69,7 +69,7 @@ async function $do(
|
|
|
69
69
|
): Promise<
|
|
70
70
|
[
|
|
71
71
|
Result<
|
|
72
|
-
components.
|
|
72
|
+
components.BundlerTransactionResponse,
|
|
73
73
|
| errors.HTTPValidationError
|
|
74
74
|
| CompassAPISDKError
|
|
75
75
|
| ResponseValidationError
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
};
|
|
152
152
|
|
|
153
153
|
const [result] = await M.match<
|
|
154
|
-
components.
|
|
154
|
+
components.BundlerTransactionResponse,
|
|
155
155
|
| errors.HTTPValidationError
|
|
156
156
|
| CompassAPISDKError
|
|
157
157
|
| ResponseValidationError
|
|
@@ -162,7 +162,7 @@ async function $do(
|
|
|
162
162
|
| UnexpectedClientError
|
|
163
163
|
| SDKValidationError
|
|
164
164
|
>(
|
|
165
|
-
M.json(200, components.
|
|
165
|
+
M.json(200, components.BundlerTransactionResponse$inboundSchema),
|
|
166
166
|
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
167
167
|
M.fail("4XX"),
|
|
168
168
|
M.fail("5XX"),
|
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.1",
|
|
64
|
-
sdkVersion: "1.0.
|
|
65
|
-
genVersion: "2.
|
|
64
|
+
sdkVersion: "1.0.9",
|
|
65
|
+
genVersion: "2.680.0",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 1.0.
|
|
67
|
+
"speakeasy-sdk/typescript 1.0.9 2.680.0 0.0.1 @compass-labs/api-sdk",
|
|
68
68
|
} as const;
|