@compass-labs/api-sdk 1.0.7 → 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/README.md +2 -2
- package/bin/mcp-server.js +85 -136
- package/bin/mcp-server.js.map +21 -21
- package/dist/commonjs/funcs/tokenTokenTransfer.d.ts +1 -1
- package/dist/commonjs/funcs/tokenTokenTransfer.js +1 -1
- 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/mcp-server/tools/tokenTokenTransfer.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 -1
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -1
- 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/tokentransferparams.d.ts +31 -31
- package/dist/commonjs/models/components/tokentransferparams.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokentransferparams.js +28 -28
- package/dist/commonjs/models/components/tokentransferparams.js.map +1 -1
- package/dist/commonjs/models/components/tokentransferrequest.d.ts +31 -31
- package/dist/commonjs/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/tokentransferrequest.js +28 -28
- package/dist/commonjs/models/components/tokentransferrequest.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/components/useroperation.d.ts +0 -9
- package/dist/commonjs/models/components/useroperation.d.ts.map +1 -1
- package/dist/commonjs/models/components/useroperation.js +0 -5
- package/dist/commonjs/models/components/useroperation.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/token.d.ts +1 -1
- package/dist/commonjs/sdk/token.js +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/tokenTokenTransfer.d.ts +1 -1
- package/dist/esm/funcs/tokenTokenTransfer.js +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/mcp-server/tools/tokenTokenTransfer.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 -1
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -1
- 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/tokentransferparams.d.ts +31 -31
- package/dist/esm/models/components/tokentransferparams.d.ts.map +1 -1
- package/dist/esm/models/components/tokentransferparams.js +25 -25
- package/dist/esm/models/components/tokentransferparams.js.map +1 -1
- package/dist/esm/models/components/tokentransferrequest.d.ts +31 -31
- package/dist/esm/models/components/tokentransferrequest.d.ts.map +1 -1
- package/dist/esm/models/components/tokentransferrequest.js +25 -25
- package/dist/esm/models/components/tokentransferrequest.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/components/useroperation.d.ts +0 -9
- package/dist/esm/models/components/useroperation.d.ts.map +1 -1
- package/dist/esm/models/components/useroperation.js +0 -5
- package/dist/esm/models/components/useroperation.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/token.d.ts +1 -1
- package/dist/esm/sdk/token.js +1 -1
- package/dist/esm/sdk/transactionbundler.d.ts +1 -1
- package/dist/esm/sdk/transactionbundler.d.ts.map +1 -1
- package/docs/sdks/token/README.md +5 -5
- package/docs/sdks/transactionbundler/README.md +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/tokenTokenTransfer.ts +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/mcp-server/tools/tokenTokenTransfer.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 -1
- package/src/models/components/pendletxresponse.ts +2 -20
- package/src/models/components/tokentransferparams.ts +59 -59
- package/src/models/components/tokentransferrequest.ts +59 -59
- 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/components/useroperation.ts +0 -34
- package/src/models/operations/v1transactionbundleraaveloop.ts +4 -4
- package/src/sdk/token.ts +1 -1
- package/src/sdk/transactionbundler.ts +1 -1
- package/dist/commonjs/models/components/tokentransfererc20params.d.ts +0 -77
- package/dist/commonjs/models/components/tokentransfererc20params.d.ts.map +0 -1
- package/dist/commonjs/models/components/tokentransfererc20params.js +0 -108
- package/dist/commonjs/models/components/tokentransfererc20params.js.map +0 -1
- package/dist/esm/models/components/tokentransfererc20params.d.ts +0 -77
- package/dist/esm/models/components/tokentransfererc20params.d.ts.map +0 -1
- package/dist/esm/models/components/tokentransfererc20params.js +0 -68
- package/dist/esm/models/components/tokentransfererc20params.js.map +0 -1
- package/src/models/components/tokentransfererc20params.ts +0 -168
|
@@ -6,12 +6,6 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
UnsignedMulticallTransaction,
|
|
11
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
12
|
-
UnsignedMulticallTransaction$Outbound,
|
|
13
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
14
|
-
} from "./unsignedmulticalltransaction.js";
|
|
15
9
|
import {
|
|
16
10
|
UnsignedTransaction,
|
|
17
11
|
UnsignedTransaction$inboundSchema,
|
|
@@ -30,17 +24,13 @@ import {
|
|
|
30
24
|
*/
|
|
31
25
|
export type TransactionResponseTransaction =
|
|
32
26
|
| UnsignedTransaction
|
|
33
|
-
| UnsignedMulticallTransaction
|
|
34
27
|
| UserOperationResponse;
|
|
35
28
|
|
|
36
29
|
export type TransactionResponse = {
|
|
37
30
|
/**
|
|
38
31
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
39
32
|
*/
|
|
40
|
-
transaction:
|
|
41
|
-
| UnsignedTransaction
|
|
42
|
-
| UnsignedMulticallTransaction
|
|
43
|
-
| UserOperationResponse;
|
|
33
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
44
34
|
};
|
|
45
35
|
|
|
46
36
|
/** @internal */
|
|
@@ -50,14 +40,12 @@ export const TransactionResponseTransaction$inboundSchema: z.ZodType<
|
|
|
50
40
|
unknown
|
|
51
41
|
> = z.union([
|
|
52
42
|
UnsignedTransaction$inboundSchema,
|
|
53
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
54
43
|
UserOperationResponse$inboundSchema,
|
|
55
44
|
]);
|
|
56
45
|
|
|
57
46
|
/** @internal */
|
|
58
47
|
export type TransactionResponseTransaction$Outbound =
|
|
59
48
|
| UnsignedTransaction$Outbound
|
|
60
|
-
| UnsignedMulticallTransaction$Outbound
|
|
61
49
|
| UserOperationResponse$Outbound;
|
|
62
50
|
|
|
63
51
|
/** @internal */
|
|
@@ -67,7 +55,6 @@ export const TransactionResponseTransaction$outboundSchema: z.ZodType<
|
|
|
67
55
|
TransactionResponseTransaction
|
|
68
56
|
> = z.union([
|
|
69
57
|
UnsignedTransaction$outboundSchema,
|
|
70
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
71
58
|
UserOperationResponse$outboundSchema,
|
|
72
59
|
]);
|
|
73
60
|
|
|
@@ -112,17 +99,13 @@ export const TransactionResponse$inboundSchema: z.ZodType<
|
|
|
112
99
|
> = z.object({
|
|
113
100
|
transaction: z.union([
|
|
114
101
|
UnsignedTransaction$inboundSchema,
|
|
115
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
116
102
|
UserOperationResponse$inboundSchema,
|
|
117
103
|
]),
|
|
118
104
|
});
|
|
119
105
|
|
|
120
106
|
/** @internal */
|
|
121
107
|
export type TransactionResponse$Outbound = {
|
|
122
|
-
transaction:
|
|
123
|
-
| UnsignedTransaction$Outbound
|
|
124
|
-
| UnsignedMulticallTransaction$Outbound
|
|
125
|
-
| UserOperationResponse$Outbound;
|
|
108
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
126
109
|
};
|
|
127
110
|
|
|
128
111
|
/** @internal */
|
|
@@ -133,7 +116,6 @@ export const TransactionResponse$outboundSchema: z.ZodType<
|
|
|
133
116
|
> = z.object({
|
|
134
117
|
transaction: z.union([
|
|
135
118
|
UnsignedTransaction$outboundSchema,
|
|
136
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
137
119
|
UserOperationResponse$outboundSchema,
|
|
138
120
|
]),
|
|
139
121
|
});
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
UnsignedMulticallTransaction,
|
|
12
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
13
|
-
UnsignedMulticallTransaction$Outbound,
|
|
14
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
15
|
-
} from "./unsignedmulticalltransaction.js";
|
|
16
10
|
import {
|
|
17
11
|
UnsignedTransaction,
|
|
18
12
|
UnsignedTransaction$inboundSchema,
|
|
@@ -31,17 +25,13 @@ import {
|
|
|
31
25
|
*/
|
|
32
26
|
export type UniswapBuyExactlyTransactionResponseTransaction =
|
|
33
27
|
| UnsignedTransaction
|
|
34
|
-
| UnsignedMulticallTransaction
|
|
35
28
|
| UserOperationResponse;
|
|
36
29
|
|
|
37
30
|
export type UniswapBuyExactlyTransactionResponse = {
|
|
38
31
|
/**
|
|
39
32
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
40
33
|
*/
|
|
41
|
-
transaction:
|
|
42
|
-
| UnsignedTransaction
|
|
43
|
-
| UnsignedMulticallTransaction
|
|
44
|
-
| UserOperationResponse;
|
|
34
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
45
35
|
/**
|
|
46
36
|
* 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.
|
|
47
37
|
*/
|
|
@@ -56,14 +46,12 @@ export const UniswapBuyExactlyTransactionResponseTransaction$inboundSchema:
|
|
|
56
46
|
unknown
|
|
57
47
|
> = z.union([
|
|
58
48
|
UnsignedTransaction$inboundSchema,
|
|
59
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
60
49
|
UserOperationResponse$inboundSchema,
|
|
61
50
|
]);
|
|
62
51
|
|
|
63
52
|
/** @internal */
|
|
64
53
|
export type UniswapBuyExactlyTransactionResponseTransaction$Outbound =
|
|
65
54
|
| UnsignedTransaction$Outbound
|
|
66
|
-
| UnsignedMulticallTransaction$Outbound
|
|
67
55
|
| UserOperationResponse$Outbound;
|
|
68
56
|
|
|
69
57
|
/** @internal */
|
|
@@ -74,7 +62,6 @@ export const UniswapBuyExactlyTransactionResponseTransaction$outboundSchema:
|
|
|
74
62
|
UniswapBuyExactlyTransactionResponseTransaction
|
|
75
63
|
> = z.union([
|
|
76
64
|
UnsignedTransaction$outboundSchema,
|
|
77
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
78
65
|
UserOperationResponse$outboundSchema,
|
|
79
66
|
]);
|
|
80
67
|
|
|
@@ -129,7 +116,6 @@ export const UniswapBuyExactlyTransactionResponse$inboundSchema: z.ZodType<
|
|
|
129
116
|
> = z.object({
|
|
130
117
|
transaction: z.union([
|
|
131
118
|
UnsignedTransaction$inboundSchema,
|
|
132
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
133
119
|
UserOperationResponse$inboundSchema,
|
|
134
120
|
]),
|
|
135
121
|
amount_in_quote: z.string(),
|
|
@@ -141,10 +127,7 @@ export const UniswapBuyExactlyTransactionResponse$inboundSchema: z.ZodType<
|
|
|
141
127
|
|
|
142
128
|
/** @internal */
|
|
143
129
|
export type UniswapBuyExactlyTransactionResponse$Outbound = {
|
|
144
|
-
transaction:
|
|
145
|
-
| UnsignedTransaction$Outbound
|
|
146
|
-
| UnsignedMulticallTransaction$Outbound
|
|
147
|
-
| UserOperationResponse$Outbound;
|
|
130
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
148
131
|
amount_in_quote: string;
|
|
149
132
|
};
|
|
150
133
|
|
|
@@ -156,7 +139,6 @@ export const UniswapBuyExactlyTransactionResponse$outboundSchema: z.ZodType<
|
|
|
156
139
|
> = z.object({
|
|
157
140
|
transaction: z.union([
|
|
158
141
|
UnsignedTransaction$outboundSchema,
|
|
159
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
160
142
|
UserOperationResponse$outboundSchema,
|
|
161
143
|
]),
|
|
162
144
|
amountInQuote: z.string(),
|
|
@@ -7,12 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
UnsignedMulticallTransaction,
|
|
12
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
13
|
-
UnsignedMulticallTransaction$Outbound,
|
|
14
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
15
|
-
} from "./unsignedmulticalltransaction.js";
|
|
16
10
|
import {
|
|
17
11
|
UnsignedTransaction,
|
|
18
12
|
UnsignedTransaction$inboundSchema,
|
|
@@ -31,17 +25,13 @@ import {
|
|
|
31
25
|
*/
|
|
32
26
|
export type UniswapSellExactlyTransactionResponseTransaction =
|
|
33
27
|
| UnsignedTransaction
|
|
34
|
-
| UnsignedMulticallTransaction
|
|
35
28
|
| UserOperationResponse;
|
|
36
29
|
|
|
37
30
|
export type UniswapSellExactlyTransactionResponse = {
|
|
38
31
|
/**
|
|
39
32
|
* The unsigned transaction data. User must sign and broadcast to network.
|
|
40
33
|
*/
|
|
41
|
-
transaction:
|
|
42
|
-
| UnsignedTransaction
|
|
43
|
-
| UnsignedMulticallTransaction
|
|
44
|
-
| UserOperationResponse;
|
|
34
|
+
transaction: UnsignedTransaction | UserOperationResponse;
|
|
45
35
|
/**
|
|
46
36
|
* 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.
|
|
47
37
|
*/
|
|
@@ -56,14 +46,12 @@ export const UniswapSellExactlyTransactionResponseTransaction$inboundSchema:
|
|
|
56
46
|
unknown
|
|
57
47
|
> = z.union([
|
|
58
48
|
UnsignedTransaction$inboundSchema,
|
|
59
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
60
49
|
UserOperationResponse$inboundSchema,
|
|
61
50
|
]);
|
|
62
51
|
|
|
63
52
|
/** @internal */
|
|
64
53
|
export type UniswapSellExactlyTransactionResponseTransaction$Outbound =
|
|
65
54
|
| UnsignedTransaction$Outbound
|
|
66
|
-
| UnsignedMulticallTransaction$Outbound
|
|
67
55
|
| UserOperationResponse$Outbound;
|
|
68
56
|
|
|
69
57
|
/** @internal */
|
|
@@ -74,7 +62,6 @@ export const UniswapSellExactlyTransactionResponseTransaction$outboundSchema:
|
|
|
74
62
|
UniswapSellExactlyTransactionResponseTransaction
|
|
75
63
|
> = z.union([
|
|
76
64
|
UnsignedTransaction$outboundSchema,
|
|
77
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
78
65
|
UserOperationResponse$outboundSchema,
|
|
79
66
|
]);
|
|
80
67
|
|
|
@@ -129,7 +116,6 @@ export const UniswapSellExactlyTransactionResponse$inboundSchema: z.ZodType<
|
|
|
129
116
|
> = z.object({
|
|
130
117
|
transaction: z.union([
|
|
131
118
|
UnsignedTransaction$inboundSchema,
|
|
132
|
-
UnsignedMulticallTransaction$inboundSchema,
|
|
133
119
|
UserOperationResponse$inboundSchema,
|
|
134
120
|
]),
|
|
135
121
|
amount_out_quote: z.string(),
|
|
@@ -141,10 +127,7 @@ export const UniswapSellExactlyTransactionResponse$inboundSchema: z.ZodType<
|
|
|
141
127
|
|
|
142
128
|
/** @internal */
|
|
143
129
|
export type UniswapSellExactlyTransactionResponse$Outbound = {
|
|
144
|
-
transaction:
|
|
145
|
-
| UnsignedTransaction$Outbound
|
|
146
|
-
| UnsignedMulticallTransaction$Outbound
|
|
147
|
-
| UserOperationResponse$Outbound;
|
|
130
|
+
transaction: UnsignedTransaction$Outbound | UserOperationResponse$Outbound;
|
|
148
131
|
amount_out_quote: string;
|
|
149
132
|
};
|
|
150
133
|
|
|
@@ -156,7 +139,6 @@ export const UniswapSellExactlyTransactionResponse$outboundSchema: z.ZodType<
|
|
|
156
139
|
> = z.object({
|
|
157
140
|
transaction: z.union([
|
|
158
141
|
UnsignedTransaction$outboundSchema,
|
|
159
|
-
UnsignedMulticallTransaction$outboundSchema,
|
|
160
142
|
UserOperationResponse$outboundSchema,
|
|
161
143
|
]),
|
|
162
144
|
amountOutQuote: z.string(),
|
|
@@ -174,12 +174,6 @@ import {
|
|
|
174
174
|
SkyWithdrawParams$Outbound,
|
|
175
175
|
SkyWithdrawParams$outboundSchema,
|
|
176
176
|
} from "./skywithdrawparams.js";
|
|
177
|
-
import {
|
|
178
|
-
TokenTransferErc20Params,
|
|
179
|
-
TokenTransferErc20Params$inboundSchema,
|
|
180
|
-
TokenTransferErc20Params$Outbound,
|
|
181
|
-
TokenTransferErc20Params$outboundSchema,
|
|
182
|
-
} from "./tokentransfererc20params.js";
|
|
183
177
|
import {
|
|
184
178
|
TokenTransferParams,
|
|
185
179
|
TokenTransferParams$inboundSchema,
|
|
@@ -271,7 +265,6 @@ export type Body =
|
|
|
271
265
|
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
272
266
|
| (SetAllowanceParams & { actionType: "SET_ALLOWANCE" })
|
|
273
267
|
| (TokenTransferParams & { actionType: "TOKEN_TRANSFER" })
|
|
274
|
-
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
275
268
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
276
269
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams & {
|
|
277
270
|
actionType: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
@@ -331,7 +324,6 @@ export type UserOperation = {
|
|
|
331
324
|
| (AaveWithdrawParams & { actionType: "AAVE_WITHDRAW" })
|
|
332
325
|
| (SetAllowanceParams & { actionType: "SET_ALLOWANCE" })
|
|
333
326
|
| (TokenTransferParams & { actionType: "TOKEN_TRANSFER" })
|
|
334
|
-
| (TokenTransferErc20Params & { actionType: "TOKEN_TRANSFER_ERC20" })
|
|
335
327
|
| (AaveSupplyParams & { actionType: "AAVE_SUPPLY" })
|
|
336
328
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams & {
|
|
337
329
|
actionType: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
@@ -452,11 +444,6 @@ export const Body$inboundSchema: z.ZodType<Body, z.ZodTypeDef, unknown> = z
|
|
|
452
444
|
actionType: v.action_type,
|
|
453
445
|
})),
|
|
454
446
|
),
|
|
455
|
-
TokenTransferErc20Params$inboundSchema.and(
|
|
456
|
-
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
457
|
-
v,
|
|
458
|
-
) => ({ actionType: v.action_type })),
|
|
459
|
-
),
|
|
460
447
|
AaveSupplyParams$inboundSchema.and(
|
|
461
448
|
z.object({ action_type: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
462
449
|
actionType: v.action_type,
|
|
@@ -599,9 +586,6 @@ export type Body$Outbound =
|
|
|
599
586
|
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
600
587
|
| (SetAllowanceParams$Outbound & { action_type: "SET_ALLOWANCE" })
|
|
601
588
|
| (TokenTransferParams$Outbound & { action_type: "TOKEN_TRANSFER" })
|
|
602
|
-
| (TokenTransferErc20Params$Outbound & {
|
|
603
|
-
action_type: "TOKEN_TRANSFER_ERC20";
|
|
604
|
-
})
|
|
605
589
|
| (AaveSupplyParams$Outbound & { action_type: "AAVE_SUPPLY" })
|
|
606
590
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound & {
|
|
607
591
|
action_type: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
@@ -721,11 +705,6 @@ export const Body$outboundSchema: z.ZodType<Body$Outbound, z.ZodTypeDef, Body> =
|
|
|
721
705
|
action_type: v.actionType,
|
|
722
706
|
})),
|
|
723
707
|
),
|
|
724
|
-
TokenTransferErc20Params$outboundSchema.and(
|
|
725
|
-
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
726
|
-
v,
|
|
727
|
-
) => ({ action_type: v.actionType })),
|
|
728
|
-
),
|
|
729
708
|
AaveSupplyParams$outboundSchema.and(
|
|
730
709
|
z.object({ actionType: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
731
710
|
action_type: v.actionType,
|
|
@@ -952,11 +931,6 @@ export const UserOperation$inboundSchema: z.ZodType<
|
|
|
952
931
|
actionType: v.action_type,
|
|
953
932
|
})),
|
|
954
933
|
),
|
|
955
|
-
TokenTransferErc20Params$inboundSchema.and(
|
|
956
|
-
z.object({ action_type: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
957
|
-
v,
|
|
958
|
-
) => ({ actionType: v.action_type })),
|
|
959
|
-
),
|
|
960
934
|
AaveSupplyParams$inboundSchema.and(
|
|
961
935
|
z.object({ action_type: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
962
936
|
actionType: v.action_type,
|
|
@@ -1103,9 +1077,6 @@ export type UserOperation$Outbound = {
|
|
|
1103
1077
|
| (AaveWithdrawParams$Outbound & { action_type: "AAVE_WITHDRAW" })
|
|
1104
1078
|
| (SetAllowanceParams$Outbound & { action_type: "SET_ALLOWANCE" })
|
|
1105
1079
|
| (TokenTransferParams$Outbound & { action_type: "TOKEN_TRANSFER" })
|
|
1106
|
-
| (TokenTransferErc20Params$Outbound & {
|
|
1107
|
-
action_type: "TOKEN_TRANSFER_ERC20";
|
|
1108
|
-
})
|
|
1109
1080
|
| (AaveSupplyParams$Outbound & { action_type: "AAVE_SUPPLY" })
|
|
1110
1081
|
| (AerodromeSlipstreamWithdrawLiquidityProvisionParams$Outbound & {
|
|
1111
1082
|
action_type: "AERODROME_SLIPSTREAM_WITHDRAW_LIQUIDITY_PROVISION";
|
|
@@ -1232,11 +1203,6 @@ export const UserOperation$outboundSchema: z.ZodType<
|
|
|
1232
1203
|
action_type: v.actionType,
|
|
1233
1204
|
})),
|
|
1234
1205
|
),
|
|
1235
|
-
TokenTransferErc20Params$outboundSchema.and(
|
|
1236
|
-
z.object({ actionType: z.literal("TOKEN_TRANSFER_ERC20") }).transform((
|
|
1237
|
-
v,
|
|
1238
|
-
) => ({ action_type: v.actionType })),
|
|
1239
|
-
),
|
|
1240
1206
|
AaveSupplyParams$outboundSchema.and(
|
|
1241
1207
|
z.object({ actionType: z.literal("AAVE_SUPPLY") }).transform((v) => ({
|
|
1242
1208
|
action_type: v.actionType,
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
* Successful Response
|
|
13
13
|
*/
|
|
14
14
|
export type ResponseV1TransactionBundlerAaveLoop =
|
|
15
|
-
| components.
|
|
15
|
+
| components.BundlerTransactionResponse
|
|
16
16
|
| components.BatchedUserOperationsResponse;
|
|
17
17
|
|
|
18
18
|
/** @internal */
|
|
@@ -21,13 +21,13 @@ export const ResponseV1TransactionBundlerAaveLoop$inboundSchema: z.ZodType<
|
|
|
21
21
|
z.ZodTypeDef,
|
|
22
22
|
unknown
|
|
23
23
|
> = z.union([
|
|
24
|
-
components.
|
|
24
|
+
components.BundlerTransactionResponse$inboundSchema,
|
|
25
25
|
components.BatchedUserOperationsResponse$inboundSchema,
|
|
26
26
|
]);
|
|
27
27
|
|
|
28
28
|
/** @internal */
|
|
29
29
|
export type ResponseV1TransactionBundlerAaveLoop$Outbound =
|
|
30
|
-
| components.
|
|
30
|
+
| components.BundlerTransactionResponse$Outbound
|
|
31
31
|
| components.BatchedUserOperationsResponse$Outbound;
|
|
32
32
|
|
|
33
33
|
/** @internal */
|
|
@@ -36,7 +36,7 @@ export const ResponseV1TransactionBundlerAaveLoop$outboundSchema: z.ZodType<
|
|
|
36
36
|
z.ZodTypeDef,
|
|
37
37
|
ResponseV1TransactionBundlerAaveLoop
|
|
38
38
|
> = z.union([
|
|
39
|
-
components.
|
|
39
|
+
components.BundlerTransactionResponse$outboundSchema,
|
|
40
40
|
components.BatchedUserOperationsResponse$outboundSchema,
|
|
41
41
|
]);
|
|
42
42
|
|
package/src/sdk/token.ts
CHANGED
|
@@ -48,7 +48,7 @@ export class TransactionBundler extends ClientSDK {
|
|
|
48
48
|
async transactionBundlerExecute(
|
|
49
49
|
request: components.MulticallExecuteRequest,
|
|
50
50
|
options?: RequestOptions,
|
|
51
|
-
): Promise<components.
|
|
51
|
+
): Promise<components.BundlerTransactionResponse> {
|
|
52
52
|
return unwrapAsync(transactionBundlerTransactionBundlerExecute(
|
|
53
53
|
this,
|
|
54
54
|
request,
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TokenEnum } from "./tokenenum.js";
|
|
5
|
-
/**
|
|
6
|
-
* Amount of token to transfer
|
|
7
|
-
*/
|
|
8
|
-
export type TokenTransferErc20ParamsAmount = number | string;
|
|
9
|
-
/**
|
|
10
|
-
* Parameters model for transferring ERC20 tokens.
|
|
11
|
-
*/
|
|
12
|
-
export type TokenTransferErc20Params = {
|
|
13
|
-
actionType?: "TOKEN_TRANSFER_ERC20" | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Amount of token to transfer
|
|
16
|
-
*/
|
|
17
|
-
amount: number | string;
|
|
18
|
-
/**
|
|
19
|
-
* A class representing the token.
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
*
|
|
23
|
-
* This class is used to represent the token in the system. Notice individual
|
|
24
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
25
|
-
*/
|
|
26
|
-
token: TokenEnum;
|
|
27
|
-
/**
|
|
28
|
-
* The recipient of the tokens.
|
|
29
|
-
*/
|
|
30
|
-
to: string;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const TokenTransferErc20ParamsAmount$inboundSchema: z.ZodType<TokenTransferErc20ParamsAmount, z.ZodTypeDef, unknown>;
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type TokenTransferErc20ParamsAmount$Outbound = number | string;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const TokenTransferErc20ParamsAmount$outboundSchema: z.ZodType<TokenTransferErc20ParamsAmount$Outbound, z.ZodTypeDef, TokenTransferErc20ParamsAmount>;
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
-
*/
|
|
42
|
-
export declare namespace TokenTransferErc20ParamsAmount$ {
|
|
43
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$inboundSchema` instead. */
|
|
44
|
-
const inboundSchema: z.ZodType<TokenTransferErc20ParamsAmount, z.ZodTypeDef, unknown>;
|
|
45
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$outboundSchema` instead. */
|
|
46
|
-
const outboundSchema: z.ZodType<TokenTransferErc20ParamsAmount$Outbound, z.ZodTypeDef, TokenTransferErc20ParamsAmount>;
|
|
47
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$Outbound` instead. */
|
|
48
|
-
type Outbound = TokenTransferErc20ParamsAmount$Outbound;
|
|
49
|
-
}
|
|
50
|
-
export declare function tokenTransferErc20ParamsAmountToJSON(tokenTransferErc20ParamsAmount: TokenTransferErc20ParamsAmount): string;
|
|
51
|
-
export declare function tokenTransferErc20ParamsAmountFromJSON(jsonString: string): SafeParseResult<TokenTransferErc20ParamsAmount, SDKValidationError>;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const TokenTransferErc20Params$inboundSchema: z.ZodType<TokenTransferErc20Params, z.ZodTypeDef, unknown>;
|
|
54
|
-
/** @internal */
|
|
55
|
-
export type TokenTransferErc20Params$Outbound = {
|
|
56
|
-
action_type: "TOKEN_TRANSFER_ERC20";
|
|
57
|
-
amount: number | string;
|
|
58
|
-
token: string;
|
|
59
|
-
to: string;
|
|
60
|
-
};
|
|
61
|
-
/** @internal */
|
|
62
|
-
export declare const TokenTransferErc20Params$outboundSchema: z.ZodType<TokenTransferErc20Params$Outbound, z.ZodTypeDef, TokenTransferErc20Params>;
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export declare namespace TokenTransferErc20Params$ {
|
|
68
|
-
/** @deprecated use `TokenTransferErc20Params$inboundSchema` instead. */
|
|
69
|
-
const inboundSchema: z.ZodType<TokenTransferErc20Params, z.ZodTypeDef, unknown>;
|
|
70
|
-
/** @deprecated use `TokenTransferErc20Params$outboundSchema` instead. */
|
|
71
|
-
const outboundSchema: z.ZodType<TokenTransferErc20Params$Outbound, z.ZodTypeDef, TokenTransferErc20Params>;
|
|
72
|
-
/** @deprecated use `TokenTransferErc20Params$Outbound` instead. */
|
|
73
|
-
type Outbound = TokenTransferErc20Params$Outbound;
|
|
74
|
-
}
|
|
75
|
-
export declare function tokenTransferErc20ParamsToJSON(tokenTransferErc20Params: TokenTransferErc20Params): string;
|
|
76
|
-
export declare function tokenTransferErc20ParamsFromJSON(jsonString: string): SafeParseResult<TokenTransferErc20Params, SDKValidationError>;
|
|
77
|
-
//# sourceMappingURL=tokentransfererc20params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokentransfererc20params.d.ts","sourceRoot":"","sources":["../../../../src/models/components/tokentransfererc20params.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,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC,UAAU,CAAC,EAAE,sBAAsB,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB;;;;;;;OAOG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,EAAE,E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,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,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
|
|
@@ -1,108 +0,0 @@
|
|
|
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.TokenTransferErc20Params$ = exports.TokenTransferErc20Params$outboundSchema = exports.TokenTransferErc20Params$inboundSchema = exports.TokenTransferErc20ParamsAmount$ = exports.TokenTransferErc20ParamsAmount$outboundSchema = exports.TokenTransferErc20ParamsAmount$inboundSchema = void 0;
|
|
40
|
-
exports.tokenTransferErc20ParamsAmountToJSON = tokenTransferErc20ParamsAmountToJSON;
|
|
41
|
-
exports.tokenTransferErc20ParamsAmountFromJSON = tokenTransferErc20ParamsAmountFromJSON;
|
|
42
|
-
exports.tokenTransferErc20ParamsToJSON = tokenTransferErc20ParamsToJSON;
|
|
43
|
-
exports.tokenTransferErc20ParamsFromJSON = tokenTransferErc20ParamsFromJSON;
|
|
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 tokenenum_js_1 = require("./tokenenum.js");
|
|
48
|
-
/** @internal */
|
|
49
|
-
exports.TokenTransferErc20ParamsAmount$inboundSchema = z.union([z.number(), z.string()]);
|
|
50
|
-
/** @internal */
|
|
51
|
-
exports.TokenTransferErc20ParamsAmount$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 TokenTransferErc20ParamsAmount$;
|
|
57
|
-
(function (TokenTransferErc20ParamsAmount$) {
|
|
58
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$inboundSchema` instead. */
|
|
59
|
-
TokenTransferErc20ParamsAmount$.inboundSchema = exports.TokenTransferErc20ParamsAmount$inboundSchema;
|
|
60
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$outboundSchema` instead. */
|
|
61
|
-
TokenTransferErc20ParamsAmount$.outboundSchema = exports.TokenTransferErc20ParamsAmount$outboundSchema;
|
|
62
|
-
})(TokenTransferErc20ParamsAmount$ || (exports.TokenTransferErc20ParamsAmount$ = TokenTransferErc20ParamsAmount$ = {}));
|
|
63
|
-
function tokenTransferErc20ParamsAmountToJSON(tokenTransferErc20ParamsAmount) {
|
|
64
|
-
return JSON.stringify(exports.TokenTransferErc20ParamsAmount$outboundSchema.parse(tokenTransferErc20ParamsAmount));
|
|
65
|
-
}
|
|
66
|
-
function tokenTransferErc20ParamsAmountFromJSON(jsonString) {
|
|
67
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TokenTransferErc20ParamsAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TokenTransferErc20ParamsAmount' from JSON`);
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
exports.TokenTransferErc20Params$inboundSchema = z.object({
|
|
71
|
-
action_type: z.literal("TOKEN_TRANSFER_ERC20").default("TOKEN_TRANSFER_ERC20"),
|
|
72
|
-
amount: z.union([z.number(), z.string()]),
|
|
73
|
-
token: tokenenum_js_1.TokenEnum$inboundSchema,
|
|
74
|
-
to: z.string(),
|
|
75
|
-
}).transform((v) => {
|
|
76
|
-
return (0, primitives_js_1.remap)(v, {
|
|
77
|
-
"action_type": "actionType",
|
|
78
|
-
});
|
|
79
|
-
});
|
|
80
|
-
/** @internal */
|
|
81
|
-
exports.TokenTransferErc20Params$outboundSchema = z.object({
|
|
82
|
-
actionType: z.literal("TOKEN_TRANSFER_ERC20").default("TOKEN_TRANSFER_ERC20"),
|
|
83
|
-
amount: z.union([z.number(), z.string()]),
|
|
84
|
-
token: tokenenum_js_1.TokenEnum$outboundSchema,
|
|
85
|
-
to: z.string(),
|
|
86
|
-
}).transform((v) => {
|
|
87
|
-
return (0, primitives_js_1.remap)(v, {
|
|
88
|
-
actionType: "action_type",
|
|
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 TokenTransferErc20Params$;
|
|
96
|
-
(function (TokenTransferErc20Params$) {
|
|
97
|
-
/** @deprecated use `TokenTransferErc20Params$inboundSchema` instead. */
|
|
98
|
-
TokenTransferErc20Params$.inboundSchema = exports.TokenTransferErc20Params$inboundSchema;
|
|
99
|
-
/** @deprecated use `TokenTransferErc20Params$outboundSchema` instead. */
|
|
100
|
-
TokenTransferErc20Params$.outboundSchema = exports.TokenTransferErc20Params$outboundSchema;
|
|
101
|
-
})(TokenTransferErc20Params$ || (exports.TokenTransferErc20Params$ = TokenTransferErc20Params$ = {}));
|
|
102
|
-
function tokenTransferErc20ParamsToJSON(tokenTransferErc20Params) {
|
|
103
|
-
return JSON.stringify(exports.TokenTransferErc20Params$outboundSchema.parse(tokenTransferErc20Params));
|
|
104
|
-
}
|
|
105
|
-
function tokenTransferErc20ParamsFromJSON(jsonString) {
|
|
106
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TokenTransferErc20Params$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TokenTransferErc20Params' from JSON`);
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=tokentransfererc20params.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokentransfererc20params.js","sourceRoot":"","sources":["../../../../src/models/components/tokentransfererc20params.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAw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AC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
import { TokenEnum } from "./tokenenum.js";
|
|
5
|
-
/**
|
|
6
|
-
* Amount of token to transfer
|
|
7
|
-
*/
|
|
8
|
-
export type TokenTransferErc20ParamsAmount = number | string;
|
|
9
|
-
/**
|
|
10
|
-
* Parameters model for transferring ERC20 tokens.
|
|
11
|
-
*/
|
|
12
|
-
export type TokenTransferErc20Params = {
|
|
13
|
-
actionType?: "TOKEN_TRANSFER_ERC20" | undefined;
|
|
14
|
-
/**
|
|
15
|
-
* Amount of token to transfer
|
|
16
|
-
*/
|
|
17
|
-
amount: number | string;
|
|
18
|
-
/**
|
|
19
|
-
* A class representing the token.
|
|
20
|
-
*
|
|
21
|
-
* @remarks
|
|
22
|
-
*
|
|
23
|
-
* This class is used to represent the token in the system. Notice individual
|
|
24
|
-
* endpoints' documentation where per chain tokens are presented.
|
|
25
|
-
*/
|
|
26
|
-
token: TokenEnum;
|
|
27
|
-
/**
|
|
28
|
-
* The recipient of the tokens.
|
|
29
|
-
*/
|
|
30
|
-
to: string;
|
|
31
|
-
};
|
|
32
|
-
/** @internal */
|
|
33
|
-
export declare const TokenTransferErc20ParamsAmount$inboundSchema: z.ZodType<TokenTransferErc20ParamsAmount, z.ZodTypeDef, unknown>;
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type TokenTransferErc20ParamsAmount$Outbound = number | string;
|
|
36
|
-
/** @internal */
|
|
37
|
-
export declare const TokenTransferErc20ParamsAmount$outboundSchema: z.ZodType<TokenTransferErc20ParamsAmount$Outbound, z.ZodTypeDef, TokenTransferErc20ParamsAmount>;
|
|
38
|
-
/**
|
|
39
|
-
* @internal
|
|
40
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
|
-
*/
|
|
42
|
-
export declare namespace TokenTransferErc20ParamsAmount$ {
|
|
43
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$inboundSchema` instead. */
|
|
44
|
-
const inboundSchema: z.ZodType<TokenTransferErc20ParamsAmount, z.ZodTypeDef, unknown>;
|
|
45
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$outboundSchema` instead. */
|
|
46
|
-
const outboundSchema: z.ZodType<TokenTransferErc20ParamsAmount$Outbound, z.ZodTypeDef, TokenTransferErc20ParamsAmount>;
|
|
47
|
-
/** @deprecated use `TokenTransferErc20ParamsAmount$Outbound` instead. */
|
|
48
|
-
type Outbound = TokenTransferErc20ParamsAmount$Outbound;
|
|
49
|
-
}
|
|
50
|
-
export declare function tokenTransferErc20ParamsAmountToJSON(tokenTransferErc20ParamsAmount: TokenTransferErc20ParamsAmount): string;
|
|
51
|
-
export declare function tokenTransferErc20ParamsAmountFromJSON(jsonString: string): SafeParseResult<TokenTransferErc20ParamsAmount, SDKValidationError>;
|
|
52
|
-
/** @internal */
|
|
53
|
-
export declare const TokenTransferErc20Params$inboundSchema: z.ZodType<TokenTransferErc20Params, z.ZodTypeDef, unknown>;
|
|
54
|
-
/** @internal */
|
|
55
|
-
export type TokenTransferErc20Params$Outbound = {
|
|
56
|
-
action_type: "TOKEN_TRANSFER_ERC20";
|
|
57
|
-
amount: number | string;
|
|
58
|
-
token: string;
|
|
59
|
-
to: string;
|
|
60
|
-
};
|
|
61
|
-
/** @internal */
|
|
62
|
-
export declare const TokenTransferErc20Params$outboundSchema: z.ZodType<TokenTransferErc20Params$Outbound, z.ZodTypeDef, TokenTransferErc20Params>;
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
66
|
-
*/
|
|
67
|
-
export declare namespace TokenTransferErc20Params$ {
|
|
68
|
-
/** @deprecated use `TokenTransferErc20Params$inboundSchema` instead. */
|
|
69
|
-
const inboundSchema: z.ZodType<TokenTransferErc20Params, z.ZodTypeDef, unknown>;
|
|
70
|
-
/** @deprecated use `TokenTransferErc20Params$outboundSchema` instead. */
|
|
71
|
-
const outboundSchema: z.ZodType<TokenTransferErc20Params$Outbound, z.ZodTypeDef, TokenTransferErc20Params>;
|
|
72
|
-
/** @deprecated use `TokenTransferErc20Params$Outbound` instead. */
|
|
73
|
-
type Outbound = TokenTransferErc20Params$Outbound;
|
|
74
|
-
}
|
|
75
|
-
export declare function tokenTransferErc20ParamsToJSON(tokenTransferErc20Params: TokenTransferErc20Params): string;
|
|
76
|
-
export declare function tokenTransferErc20ParamsFromJSON(jsonString: string): SafeParseResult<TokenTransferErc20Params, SDKValidationError>;
|
|
77
|
-
//# sourceMappingURL=tokentransfererc20params.d.ts.map
|