@emberai/onchain-actions-registry 3.0.0-alpha.5 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -56,6 +56,7 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
56
56
  amount: z.ZodBigInt;
57
57
  walletAddress: z.ZodString;
58
58
  }, "strip", z.ZodTypeAny, {
59
+ walletAddress: string;
59
60
  amount: bigint;
60
61
  borrowToken: {
61
62
  symbol: string;
@@ -69,8 +70,8 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
69
70
  isVetted: boolean;
70
71
  iconUri?: string | null | undefined;
71
72
  };
72
- walletAddress: string;
73
73
  }, {
74
+ walletAddress: string;
74
75
  amount: bigint;
75
76
  borrowToken: {
76
77
  symbol: string;
@@ -84,7 +85,6 @@ declare const BorrowTokensRequestSchema: z.ZodObject<{
84
85
  isVetted: boolean;
85
86
  iconUri?: string | null | undefined;
86
87
  };
87
- walletAddress: string;
88
88
  }>;
89
89
  type BorrowTokensRequest = z.infer<typeof BorrowTokensRequestSchema>;
90
90
  declare const BorrowTokensResponseSchema: z.ZodObject<{
@@ -203,8 +203,8 @@ declare const RepayTokensRequestSchema: z.ZodObject<{
203
203
  amount: z.ZodBigInt;
204
204
  walletAddress: z.ZodString;
205
205
  }, "strip", z.ZodTypeAny, {
206
- amount: bigint;
207
206
  walletAddress: string;
207
+ amount: bigint;
208
208
  repayToken: {
209
209
  symbol: string;
210
210
  tokenUid: {
@@ -218,8 +218,8 @@ declare const RepayTokensRequestSchema: z.ZodObject<{
218
218
  iconUri?: string | null | undefined;
219
219
  };
220
220
  }, {
221
- amount: bigint;
222
221
  walletAddress: string;
222
+ amount: bigint;
223
223
  repayToken: {
224
224
  symbol: string;
225
225
  tokenUid: {
@@ -344,8 +344,8 @@ declare const SupplyTokensRequestSchema: z.ZodObject<{
344
344
  amount: z.ZodBigInt;
345
345
  walletAddress: z.ZodString;
346
346
  }, "strip", z.ZodTypeAny, {
347
- amount: bigint;
348
347
  walletAddress: string;
348
+ amount: bigint;
349
349
  supplyToken: {
350
350
  symbol: string;
351
351
  tokenUid: {
@@ -359,8 +359,8 @@ declare const SupplyTokensRequestSchema: z.ZodObject<{
359
359
  iconUri?: string | null | undefined;
360
360
  };
361
361
  }, {
362
- amount: bigint;
363
362
  walletAddress: string;
363
+ amount: bigint;
364
364
  supplyToken: {
365
365
  symbol: string;
366
366
  tokenUid: {
@@ -485,8 +485,8 @@ declare const WithdrawTokensRequestSchema: z.ZodObject<{
485
485
  amount: z.ZodBigInt;
486
486
  walletAddress: z.ZodString;
487
487
  }, "strip", z.ZodTypeAny, {
488
- amount: bigint;
489
488
  walletAddress: string;
489
+ amount: bigint;
490
490
  tokenToWithdraw: {
491
491
  symbol: string;
492
492
  tokenUid: {
@@ -500,8 +500,8 @@ declare const WithdrawTokensRequestSchema: z.ZodObject<{
500
500
  iconUri?: string | null | undefined;
501
501
  };
502
502
  }, {
503
- amount: bigint;
504
503
  walletAddress: string;
504
+ amount: bigint;
505
505
  tokenToWithdraw: {
506
506
  symbol: string;
507
507
  tokenUid: {
@@ -1730,10 +1730,10 @@ declare const PositionSchema: z.ZodObject<{
1730
1730
  data: z.ZodOptional<z.ZodString>;
1731
1731
  }, "strip", z.ZodTypeAny, {
1732
1732
  chainId: string;
1733
+ marketAddress: string;
1733
1734
  key: string;
1734
1735
  contractKey: string;
1735
1736
  account: string;
1736
- marketAddress: string;
1737
1737
  collateralTokenAddress: string;
1738
1738
  sizeInUsd: string;
1739
1739
  sizeInTokens: string;
@@ -1754,10 +1754,10 @@ declare const PositionSchema: z.ZodObject<{
1754
1754
  isOpening?: boolean | undefined;
1755
1755
  }, {
1756
1756
  chainId: string;
1757
+ marketAddress: string;
1757
1758
  key: string;
1758
1759
  contractKey: string;
1759
1760
  account: string;
1760
- marketAddress: string;
1761
1761
  collateralTokenAddress: string;
1762
1762
  sizeInUsd: string;
1763
1763
  sizeInTokens: string;
@@ -1804,10 +1804,10 @@ declare const PositionsDataSchema: z.ZodArray<z.ZodObject<{
1804
1804
  data: z.ZodOptional<z.ZodString>;
1805
1805
  }, "strip", z.ZodTypeAny, {
1806
1806
  chainId: string;
1807
+ marketAddress: string;
1807
1808
  key: string;
1808
1809
  contractKey: string;
1809
1810
  account: string;
1810
- marketAddress: string;
1811
1811
  collateralTokenAddress: string;
1812
1812
  sizeInUsd: string;
1813
1813
  sizeInTokens: string;
@@ -1828,10 +1828,10 @@ declare const PositionsDataSchema: z.ZodArray<z.ZodObject<{
1828
1828
  isOpening?: boolean | undefined;
1829
1829
  }, {
1830
1830
  chainId: string;
1831
+ marketAddress: string;
1831
1832
  key: string;
1832
1833
  contractKey: string;
1833
1834
  account: string;
1834
- marketAddress: string;
1835
1835
  collateralTokenAddress: string;
1836
1836
  sizeInUsd: string;
1837
1837
  sizeInTokens: string;
@@ -1882,9 +1882,9 @@ declare const OrderSchema: z.ZodObject<{
1882
1882
  title: z.ZodOptional<z.ZodString>;
1883
1883
  }, "strip", z.ZodTypeAny, {
1884
1884
  chainId: string;
1885
+ marketAddress: string;
1885
1886
  key: string;
1886
1887
  account: string;
1887
- marketAddress: string;
1888
1888
  positionSide: "long" | "short";
1889
1889
  callbackContract: string;
1890
1890
  initialCollateralTokenAddress: string;
@@ -1909,9 +1909,9 @@ declare const OrderSchema: z.ZodObject<{
1909
1909
  title?: string | undefined;
1910
1910
  }, {
1911
1911
  chainId: string;
1912
+ marketAddress: string;
1912
1913
  key: string;
1913
1914
  account: string;
1914
- marketAddress: string;
1915
1915
  positionSide: "long" | "short";
1916
1916
  callbackContract: string;
1917
1917
  initialCollateralTokenAddress: string;
@@ -1965,9 +1965,9 @@ declare const OrdersDataSchema: z.ZodArray<z.ZodObject<{
1965
1965
  title: z.ZodOptional<z.ZodString>;
1966
1966
  }, "strip", z.ZodTypeAny, {
1967
1967
  chainId: string;
1968
+ marketAddress: string;
1968
1969
  key: string;
1969
1970
  account: string;
1970
- marketAddress: string;
1971
1971
  positionSide: "long" | "short";
1972
1972
  callbackContract: string;
1973
1973
  initialCollateralTokenAddress: string;
@@ -1992,9 +1992,9 @@ declare const OrdersDataSchema: z.ZodArray<z.ZodObject<{
1992
1992
  title?: string | undefined;
1993
1993
  }, {
1994
1994
  chainId: string;
1995
+ marketAddress: string;
1995
1996
  key: string;
1996
1997
  account: string;
1997
- marketAddress: string;
1998
1998
  positionSide: "long" | "short";
1999
1999
  callbackContract: string;
2000
2000
  initialCollateralTokenAddress: string;
@@ -2029,25 +2029,25 @@ declare const CreatePerpetualsPositionRequestSchema: z.ZodObject<{
2029
2029
  limitPrice: z.ZodOptional<z.ZodString>;
2030
2030
  leverage: z.ZodString;
2031
2031
  }, "strip", z.ZodTypeAny, {
2032
+ walletAddress: string;
2032
2033
  chainId: string;
2033
2034
  amount: bigint;
2034
- walletAddress: string;
2035
2035
  marketAddress: string;
2036
2036
  collateralTokenAddress: string;
2037
2037
  payTokenAddress: string;
2038
2038
  leverage: string;
2039
- limitPrice?: string | undefined;
2040
2039
  referralCode?: string | undefined;
2040
+ limitPrice?: string | undefined;
2041
2041
  }, {
2042
+ walletAddress: string;
2042
2043
  chainId: string;
2043
2044
  amount: bigint;
2044
- walletAddress: string;
2045
2045
  marketAddress: string;
2046
2046
  collateralTokenAddress: string;
2047
2047
  payTokenAddress: string;
2048
2048
  leverage: string;
2049
- limitPrice?: string | undefined;
2050
2049
  referralCode?: string | undefined;
2050
+ limitPrice?: string | undefined;
2051
2051
  }>;
2052
2052
  type CreatePerpetualsPositionRequest = z.infer<typeof CreatePerpetualsPositionRequestSchema>;
2053
2053
  declare const CreatePerpetualsPositionResponseSchema: z.ZodObject<{
@@ -2123,10 +2123,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
2123
2123
  data: z.ZodOptional<z.ZodString>;
2124
2124
  }, "strip", z.ZodTypeAny, {
2125
2125
  chainId: string;
2126
+ marketAddress: string;
2126
2127
  key: string;
2127
2128
  contractKey: string;
2128
2129
  account: string;
2129
- marketAddress: string;
2130
2130
  collateralTokenAddress: string;
2131
2131
  sizeInUsd: string;
2132
2132
  sizeInTokens: string;
@@ -2147,10 +2147,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
2147
2147
  isOpening?: boolean | undefined;
2148
2148
  }, {
2149
2149
  chainId: string;
2150
+ marketAddress: string;
2150
2151
  key: string;
2151
2152
  contractKey: string;
2152
2153
  account: string;
2153
- marketAddress: string;
2154
2154
  collateralTokenAddress: string;
2155
2155
  sizeInUsd: string;
2156
2156
  sizeInTokens: string;
@@ -2173,10 +2173,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
2173
2173
  }, "strip", z.ZodTypeAny, {
2174
2174
  positions: {
2175
2175
  chainId: string;
2176
+ marketAddress: string;
2176
2177
  key: string;
2177
2178
  contractKey: string;
2178
2179
  account: string;
2179
- marketAddress: string;
2180
2180
  collateralTokenAddress: string;
2181
2181
  sizeInUsd: string;
2182
2182
  sizeInTokens: string;
@@ -2199,10 +2199,10 @@ declare const GetPerpetualsMarketsPositionsResponseSchema: z.ZodObject<{
2199
2199
  }, {
2200
2200
  positions: {
2201
2201
  chainId: string;
2202
+ marketAddress: string;
2202
2203
  key: string;
2203
2204
  contractKey: string;
2204
2205
  account: string;
2205
- marketAddress: string;
2206
2206
  collateralTokenAddress: string;
2207
2207
  sizeInUsd: string;
2208
2208
  sizeInTokens: string;
@@ -2262,9 +2262,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
2262
2262
  title: z.ZodOptional<z.ZodString>;
2263
2263
  }, "strip", z.ZodTypeAny, {
2264
2264
  chainId: string;
2265
+ marketAddress: string;
2265
2266
  key: string;
2266
2267
  account: string;
2267
- marketAddress: string;
2268
2268
  positionSide: "long" | "short";
2269
2269
  callbackContract: string;
2270
2270
  initialCollateralTokenAddress: string;
@@ -2289,9 +2289,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
2289
2289
  title?: string | undefined;
2290
2290
  }, {
2291
2291
  chainId: string;
2292
+ marketAddress: string;
2292
2293
  key: string;
2293
2294
  account: string;
2294
- marketAddress: string;
2295
2295
  positionSide: "long" | "short";
2296
2296
  callbackContract: string;
2297
2297
  initialCollateralTokenAddress: string;
@@ -2318,9 +2318,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
2318
2318
  }, "strip", z.ZodTypeAny, {
2319
2319
  orders: {
2320
2320
  chainId: string;
2321
+ marketAddress: string;
2321
2322
  key: string;
2322
2323
  account: string;
2323
- marketAddress: string;
2324
2324
  positionSide: "long" | "short";
2325
2325
  callbackContract: string;
2326
2326
  initialCollateralTokenAddress: string;
@@ -2347,9 +2347,9 @@ declare const GetPerpetualsMarketsOrdersResponseSchema: z.ZodObject<{
2347
2347
  }, {
2348
2348
  orders: {
2349
2349
  chainId: string;
2350
+ marketAddress: string;
2350
2351
  key: string;
2351
2352
  account: string;
2352
- marketAddress: string;
2353
2353
  positionSide: "long" | "short";
2354
2354
  callbackContract: string;
2355
2355
  initialCollateralTokenAddress: string;
@@ -2769,6 +2769,7 @@ declare const SwapTokensRequestSchema: z.ZodObject<{
2769
2769
  expiration: z.ZodOptional<z.ZodString>;
2770
2770
  recipient: z.ZodString;
2771
2771
  }, "strip", z.ZodTypeAny, {
2772
+ amount: bigint;
2772
2773
  fromToken: {
2773
2774
  symbol: string;
2774
2775
  tokenUid: {
@@ -2793,12 +2794,12 @@ declare const SwapTokensRequestSchema: z.ZodObject<{
2793
2794
  isVetted: boolean;
2794
2795
  iconUri?: string | null | undefined;
2795
2796
  };
2796
- amount: bigint;
2797
2797
  recipient: string;
2798
- expiration?: string | undefined;
2799
2798
  limitPrice?: string | undefined;
2799
+ expiration?: string | undefined;
2800
2800
  slippageTolerance?: string | undefined;
2801
2801
  }, {
2802
+ amount: bigint;
2802
2803
  fromToken: {
2803
2804
  symbol: string;
2804
2805
  tokenUid: {
@@ -2823,10 +2824,9 @@ declare const SwapTokensRequestSchema: z.ZodObject<{
2823
2824
  isVetted: boolean;
2824
2825
  iconUri?: string | null | undefined;
2825
2826
  };
2826
- amount: bigint;
2827
2827
  recipient: string;
2828
- expiration?: string | undefined;
2829
2828
  limitPrice?: string | undefined;
2829
+ expiration?: string | undefined;
2830
2830
  slippageTolerance?: string | undefined;
2831
2831
  }>;
2832
2832
  type SwapTokensRequest = z.infer<typeof SwapTokensRequestSchema>;
@@ -2977,6 +2977,13 @@ declare const SwapTokensResponseSchema: z.ZodObject<{
2977
2977
  explorerUrl: string;
2978
2978
  }>>;
2979
2979
  }, "strip", z.ZodTypeAny, {
2980
+ transactions: {
2981
+ chainId: string;
2982
+ value: string;
2983
+ type: string;
2984
+ to: string;
2985
+ data: string;
2986
+ }[];
2980
2987
  fromToken: {
2981
2988
  symbol: string;
2982
2989
  tokenUid: {
@@ -3005,13 +3012,6 @@ declare const SwapTokensResponseSchema: z.ZodObject<{
3005
3012
  displayFromAmount: string;
3006
3013
  exactToAmount: string;
3007
3014
  displayToAmount: string;
3008
- transactions: {
3009
- chainId: string;
3010
- value: string;
3011
- type: string;
3012
- to: string;
3013
- data: string;
3014
- }[];
3015
3015
  feeBreakdown?: {
3016
3016
  serviceFee: string;
3017
3017
  slippageCost: string;
@@ -3029,6 +3029,13 @@ declare const SwapTokensResponseSchema: z.ZodObject<{
3029
3029
  explorerUrl: string;
3030
3030
  } | undefined;
3031
3031
  }, {
3032
+ transactions: {
3033
+ chainId: string;
3034
+ value: string;
3035
+ type: string;
3036
+ to: string;
3037
+ data: string;
3038
+ }[];
3032
3039
  fromToken: {
3033
3040
  symbol: string;
3034
3041
  tokenUid: {
@@ -3057,13 +3064,6 @@ declare const SwapTokensResponseSchema: z.ZodObject<{
3057
3064
  displayFromAmount: string;
3058
3065
  exactToAmount: string;
3059
3066
  displayToAmount: string;
3060
- transactions: {
3061
- chainId: string;
3062
- value: string;
3063
- type: string;
3064
- to: string;
3065
- data: string;
3066
- }[];
3067
3067
  feeBreakdown?: {
3068
3068
  serviceFee: string;
3069
3069
  slippageCost: string;
@@ -3093,116 +3093,2623 @@ type SwapActionCallback = (request: SwapTokensRequest) => Promise<SwapTokensResp
3093
3093
  */
3094
3094
  type SwapActions = 'swap';
3095
3095
  //#endregion
3096
- //#region src/core/actions/types.d.ts
3097
- /**
3098
- * The possible actions an ember plugin can perform.
3099
- */
3100
- type Action = LendingActions | LiquidityActions | SwapActions | PerpetualsActions;
3101
- /**
3102
- * Type mapping for action callbacks.
3103
- */
3104
- type CallbacksRecord = {
3105
- swap: SwapActionCallback;
3106
- 'lending-borrow': LendingBorrowCallback;
3107
- 'lending-repay': LendingRepayTokensCallback;
3108
- 'lending-supply': LendingSupplyCallback;
3109
- 'lending-withdraw': LendingWithdrawCallback;
3110
- 'liquidity-supply': LiquiditySupplyCallback;
3111
- 'liquidity-withdraw': LiquidityWithdrawCallback;
3112
- 'perpetuals-short': PerpetualsCreateShortPositionCallback;
3113
- 'perpetuals-long': PerpetualsCreateLongPositionCallback;
3114
- 'perpetuals-close': PerpetualsCloseOrdersCallback;
3115
- };
3116
- /**
3117
- * Type mapping for action callbacks.
3118
- */
3119
- type ActionCallback<T extends keyof CallbacksRecord> = CallbacksRecord[T];
3120
- /**
3121
- * Represents a grouping of tokens associated with a specific chain.
3122
- */
3123
- interface TokenSet {
3124
- /**
3125
- * The chain id to which the tokens belong.
3126
- */
3127
- chainId: string;
3128
- /**
3129
- * The set of tokens addresses associated with the chain.
3130
- */
3131
- tokens: string[];
3132
- }
3133
- /**
3134
- * Definition of an action that can be performed by the Ember plugin.
3135
- */
3136
- interface ActionDefinition<T extends Action> {
3137
- /**
3138
- * The name for the action, should be unique across all actions in the plugin.
3139
- */
3140
- name: string;
3141
- /**
3142
- * The action type
3143
- */
3144
- type: T;
3145
- /**
3146
- * The callback function to execute when the action is triggered.
3147
- */
3148
- callback: ActionCallback<T>;
3149
- /**
3150
- * This function returns the possible input tokens for the action in all chains.
3151
- * @returns The list of token sets that can be used as input for the action.
3152
- */
3153
- inputTokens: () => Promise<TokenSet[]>;
3154
- /**
3155
- * This function returns the possible output tokens for the action in all chains.
3156
- * If not provided, all input input token sets will be considered possible output sets.
3157
- * @returns The list of tokens that can be used as output for the action.
3158
- */
3159
- outputTokens?: () => Promise<TokenSet[]>;
3160
- }
3161
- //#endregion
3162
- //#region src/core/queries/lending.d.ts
3163
- /**
3164
- * Get lending positions for a wallet.
3165
- */
3166
- type LendingGetPositions = (request: GetWalletLendingPositionsRequest) => Promise<GetWalletLendingPositionsResponse>;
3167
- /**
3168
- * All the queries related to lending.
3169
- */
3170
- type LendingQueries = {
3171
- getPositions: LendingGetPositions;
3172
- };
3173
- //#endregion
3174
- //#region src/core/queries/liquidity.d.ts
3175
- /**
3176
- * Get liquidity positions for a wallet.
3177
- */
3178
- type LiquidityGetWalletPositions = (request: GetWalletLiquidityPositionsRequest) => Promise<GetWalletLiquidityPositionsResponse>;
3179
- /**
3180
- * Get all liquidity pools.
3181
- */
3182
- type LiquidityGetPools = () => Promise<GetLiquidityPoolsResponse>;
3183
- /**
3184
- * All the queries related to liquidity.
3185
- */
3186
- type LiquidityQueries = {
3187
- getWalletPositions: LiquidityGetWalletPositions;
3188
- getPools: LiquidityGetPools;
3189
- };
3190
- //#endregion
3191
- //#region src/core/queries/perpetuals.d.ts
3192
- type PerpetualsGetMarkets = (request: GetPerpetualsMarketsRequest) => Promise<GetPerpetualsMarketsResponse>;
3193
- type PerpetualsGetPositions = (request: GetPerpetualsMarketsPositionsRequest) => Promise<GetPerpetualsMarketsPositionsResponse>;
3194
- type PerpetualsGetOrders = (request: GetPerpetualsMarketsOrdersRequest) => Promise<GetPerpetualsMarketsOrdersResponse>;
3195
- type PerpetualsQueries = {
3196
- getMarkets: PerpetualsGetMarkets;
3197
- getPositions: PerpetualsGetPositions;
3198
- getOrders: PerpetualsGetOrders;
3096
+ //#region src/core/schemas/tokenizedYield.d.ts
3097
+ declare const MintPtAndYtRequestSchema: z.ZodObject<{
3098
+ walletAddress: z.ZodString;
3099
+ slippage: z.ZodDefault<z.ZodString>;
3100
+ inputToken: z.ZodObject<{
3101
+ tokenUid: z.ZodObject<{
3102
+ chainId: z.ZodString;
3103
+ address: z.ZodString;
3104
+ }, "strip", z.ZodTypeAny, {
3105
+ chainId: string;
3106
+ address: string;
3107
+ }, {
3108
+ chainId: string;
3109
+ address: string;
3110
+ }>;
3111
+ name: z.ZodString;
3112
+ symbol: z.ZodString;
3113
+ isNative: z.ZodBoolean;
3114
+ decimals: z.ZodNumber;
3115
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3116
+ isVetted: z.ZodBoolean;
3117
+ }, "strip", z.ZodTypeAny, {
3118
+ symbol: string;
3119
+ tokenUid: {
3120
+ chainId: string;
3121
+ address: string;
3122
+ };
3123
+ name: string;
3124
+ isNative: boolean;
3125
+ decimals: number;
3126
+ isVetted: boolean;
3127
+ iconUri?: string | null | undefined;
3128
+ }, {
3129
+ symbol: string;
3130
+ tokenUid: {
3131
+ chainId: string;
3132
+ address: string;
3133
+ };
3134
+ name: string;
3135
+ isNative: boolean;
3136
+ decimals: number;
3137
+ isVetted: boolean;
3138
+ iconUri?: string | null | undefined;
3139
+ }>;
3140
+ amount: z.ZodBigInt;
3141
+ marketAddress: z.ZodString;
3142
+ }, "strip", z.ZodTypeAny, {
3143
+ walletAddress: string;
3144
+ slippage: string;
3145
+ inputToken: {
3146
+ symbol: string;
3147
+ tokenUid: {
3148
+ chainId: string;
3149
+ address: string;
3150
+ };
3151
+ name: string;
3152
+ isNative: boolean;
3153
+ decimals: number;
3154
+ isVetted: boolean;
3155
+ iconUri?: string | null | undefined;
3156
+ };
3157
+ amount: bigint;
3158
+ marketAddress: string;
3159
+ }, {
3160
+ walletAddress: string;
3161
+ inputToken: {
3162
+ symbol: string;
3163
+ tokenUid: {
3164
+ chainId: string;
3165
+ address: string;
3166
+ };
3167
+ name: string;
3168
+ isNative: boolean;
3169
+ decimals: number;
3170
+ isVetted: boolean;
3171
+ iconUri?: string | null | undefined;
3172
+ };
3173
+ amount: bigint;
3174
+ marketAddress: string;
3175
+ slippage?: string | undefined;
3176
+ }>;
3177
+ type MintPtAndYtRequest = z.infer<typeof MintPtAndYtRequestSchema>;
3178
+ declare const MintPtAndYtResponseSchema: z.ZodObject<{
3179
+ exactPtAmount: z.ZodString;
3180
+ displayPtAmount: z.ZodString;
3181
+ ptTokenIdentifier: z.ZodObject<{
3182
+ chainId: z.ZodString;
3183
+ address: z.ZodString;
3184
+ }, "strip", z.ZodTypeAny, {
3185
+ chainId: string;
3186
+ address: string;
3187
+ }, {
3188
+ chainId: string;
3189
+ address: string;
3190
+ }>;
3191
+ exactYtAmount: z.ZodString;
3192
+ displayYtAmount: z.ZodString;
3193
+ ytTokenIdentifier: z.ZodObject<{
3194
+ chainId: z.ZodString;
3195
+ address: z.ZodString;
3196
+ }, "strip", z.ZodTypeAny, {
3197
+ chainId: string;
3198
+ address: string;
3199
+ }, {
3200
+ chainId: string;
3201
+ address: string;
3202
+ }>;
3203
+ transactions: z.ZodArray<z.ZodObject<{
3204
+ type: z.ZodEnum<[string, ...string[]]>;
3205
+ to: z.ZodString;
3206
+ data: z.ZodString;
3207
+ value: z.ZodString;
3208
+ chainId: z.ZodString;
3209
+ }, "strip", z.ZodTypeAny, {
3210
+ chainId: string;
3211
+ value: string;
3212
+ type: string;
3213
+ to: string;
3214
+ data: string;
3215
+ }, {
3216
+ chainId: string;
3217
+ value: string;
3218
+ type: string;
3219
+ to: string;
3220
+ data: string;
3221
+ }>, "many">;
3222
+ }, "strip", z.ZodTypeAny, {
3223
+ exactPtAmount: string;
3224
+ displayPtAmount: string;
3225
+ ptTokenIdentifier: {
3226
+ chainId: string;
3227
+ address: string;
3228
+ };
3229
+ exactYtAmount: string;
3230
+ displayYtAmount: string;
3231
+ ytTokenIdentifier: {
3232
+ chainId: string;
3233
+ address: string;
3234
+ };
3235
+ transactions: {
3236
+ chainId: string;
3237
+ value: string;
3238
+ type: string;
3239
+ to: string;
3240
+ data: string;
3241
+ }[];
3242
+ }, {
3243
+ exactPtAmount: string;
3244
+ displayPtAmount: string;
3245
+ ptTokenIdentifier: {
3246
+ chainId: string;
3247
+ address: string;
3248
+ };
3249
+ exactYtAmount: string;
3250
+ displayYtAmount: string;
3251
+ ytTokenIdentifier: {
3252
+ chainId: string;
3253
+ address: string;
3254
+ };
3255
+ transactions: {
3256
+ chainId: string;
3257
+ value: string;
3258
+ type: string;
3259
+ to: string;
3260
+ data: string;
3261
+ }[];
3262
+ }>;
3263
+ type MintPtAndYtResponse = z.infer<typeof MintPtAndYtResponseSchema>;
3264
+ declare const BuyPtRequestSchema: z.ZodObject<{
3265
+ walletAddress: z.ZodString;
3266
+ slippage: z.ZodDefault<z.ZodString>;
3267
+ inputToken: z.ZodObject<{
3268
+ tokenUid: z.ZodObject<{
3269
+ chainId: z.ZodString;
3270
+ address: z.ZodString;
3271
+ }, "strip", z.ZodTypeAny, {
3272
+ chainId: string;
3273
+ address: string;
3274
+ }, {
3275
+ chainId: string;
3276
+ address: string;
3277
+ }>;
3278
+ name: z.ZodString;
3279
+ symbol: z.ZodString;
3280
+ isNative: z.ZodBoolean;
3281
+ decimals: z.ZodNumber;
3282
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3283
+ isVetted: z.ZodBoolean;
3284
+ }, "strip", z.ZodTypeAny, {
3285
+ symbol: string;
3286
+ tokenUid: {
3287
+ chainId: string;
3288
+ address: string;
3289
+ };
3290
+ name: string;
3291
+ isNative: boolean;
3292
+ decimals: number;
3293
+ isVetted: boolean;
3294
+ iconUri?: string | null | undefined;
3295
+ }, {
3296
+ symbol: string;
3297
+ tokenUid: {
3298
+ chainId: string;
3299
+ address: string;
3300
+ };
3301
+ name: string;
3302
+ isNative: boolean;
3303
+ decimals: number;
3304
+ isVetted: boolean;
3305
+ iconUri?: string | null | undefined;
3306
+ }>;
3307
+ amount: z.ZodBigInt;
3308
+ marketAddress: z.ZodString;
3309
+ }, "strip", z.ZodTypeAny, {
3310
+ walletAddress: string;
3311
+ slippage: string;
3312
+ inputToken: {
3313
+ symbol: string;
3314
+ tokenUid: {
3315
+ chainId: string;
3316
+ address: string;
3317
+ };
3318
+ name: string;
3319
+ isNative: boolean;
3320
+ decimals: number;
3321
+ isVetted: boolean;
3322
+ iconUri?: string | null | undefined;
3323
+ };
3324
+ amount: bigint;
3325
+ marketAddress: string;
3326
+ }, {
3327
+ walletAddress: string;
3328
+ inputToken: {
3329
+ symbol: string;
3330
+ tokenUid: {
3331
+ chainId: string;
3332
+ address: string;
3333
+ };
3334
+ name: string;
3335
+ isNative: boolean;
3336
+ decimals: number;
3337
+ isVetted: boolean;
3338
+ iconUri?: string | null | undefined;
3339
+ };
3340
+ amount: bigint;
3341
+ marketAddress: string;
3342
+ slippage?: string | undefined;
3343
+ }>;
3344
+ type BuyPtRequest = z.infer<typeof BuyPtRequestSchema>;
3345
+ declare const BuyPtResponseSchema: z.ZodObject<{
3346
+ exactPtAmount: z.ZodString;
3347
+ displayPtAmount: z.ZodString;
3348
+ ptTokenIdentifier: z.ZodObject<{
3349
+ chainId: z.ZodString;
3350
+ address: z.ZodString;
3351
+ }, "strip", z.ZodTypeAny, {
3352
+ chainId: string;
3353
+ address: string;
3354
+ }, {
3355
+ chainId: string;
3356
+ address: string;
3357
+ }>;
3358
+ transactions: z.ZodArray<z.ZodObject<{
3359
+ type: z.ZodEnum<[string, ...string[]]>;
3360
+ to: z.ZodString;
3361
+ data: z.ZodString;
3362
+ value: z.ZodString;
3363
+ chainId: z.ZodString;
3364
+ }, "strip", z.ZodTypeAny, {
3365
+ chainId: string;
3366
+ value: string;
3367
+ type: string;
3368
+ to: string;
3369
+ data: string;
3370
+ }, {
3371
+ chainId: string;
3372
+ value: string;
3373
+ type: string;
3374
+ to: string;
3375
+ data: string;
3376
+ }>, "many">;
3377
+ }, "strip", z.ZodTypeAny, {
3378
+ exactPtAmount: string;
3379
+ displayPtAmount: string;
3380
+ ptTokenIdentifier: {
3381
+ chainId: string;
3382
+ address: string;
3383
+ };
3384
+ transactions: {
3385
+ chainId: string;
3386
+ value: string;
3387
+ type: string;
3388
+ to: string;
3389
+ data: string;
3390
+ }[];
3391
+ }, {
3392
+ exactPtAmount: string;
3393
+ displayPtAmount: string;
3394
+ ptTokenIdentifier: {
3395
+ chainId: string;
3396
+ address: string;
3397
+ };
3398
+ transactions: {
3399
+ chainId: string;
3400
+ value: string;
3401
+ type: string;
3402
+ to: string;
3403
+ data: string;
3404
+ }[];
3405
+ }>;
3406
+ type BuyPtResponse = z.infer<typeof BuyPtResponseSchema>;
3407
+ declare const BuyYtRequestSchema: z.ZodObject<{
3408
+ walletAddress: z.ZodString;
3409
+ slippage: z.ZodDefault<z.ZodString>;
3410
+ inputToken: z.ZodObject<{
3411
+ tokenUid: z.ZodObject<{
3412
+ chainId: z.ZodString;
3413
+ address: z.ZodString;
3414
+ }, "strip", z.ZodTypeAny, {
3415
+ chainId: string;
3416
+ address: string;
3417
+ }, {
3418
+ chainId: string;
3419
+ address: string;
3420
+ }>;
3421
+ name: z.ZodString;
3422
+ symbol: z.ZodString;
3423
+ isNative: z.ZodBoolean;
3424
+ decimals: z.ZodNumber;
3425
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3426
+ isVetted: z.ZodBoolean;
3427
+ }, "strip", z.ZodTypeAny, {
3428
+ symbol: string;
3429
+ tokenUid: {
3430
+ chainId: string;
3431
+ address: string;
3432
+ };
3433
+ name: string;
3434
+ isNative: boolean;
3435
+ decimals: number;
3436
+ isVetted: boolean;
3437
+ iconUri?: string | null | undefined;
3438
+ }, {
3439
+ symbol: string;
3440
+ tokenUid: {
3441
+ chainId: string;
3442
+ address: string;
3443
+ };
3444
+ name: string;
3445
+ isNative: boolean;
3446
+ decimals: number;
3447
+ isVetted: boolean;
3448
+ iconUri?: string | null | undefined;
3449
+ }>;
3450
+ amount: z.ZodBigInt;
3451
+ marketAddress: z.ZodString;
3452
+ }, "strip", z.ZodTypeAny, {
3453
+ walletAddress: string;
3454
+ slippage: string;
3455
+ inputToken: {
3456
+ symbol: string;
3457
+ tokenUid: {
3458
+ chainId: string;
3459
+ address: string;
3460
+ };
3461
+ name: string;
3462
+ isNative: boolean;
3463
+ decimals: number;
3464
+ isVetted: boolean;
3465
+ iconUri?: string | null | undefined;
3466
+ };
3467
+ amount: bigint;
3468
+ marketAddress: string;
3469
+ }, {
3470
+ walletAddress: string;
3471
+ inputToken: {
3472
+ symbol: string;
3473
+ tokenUid: {
3474
+ chainId: string;
3475
+ address: string;
3476
+ };
3477
+ name: string;
3478
+ isNative: boolean;
3479
+ decimals: number;
3480
+ isVetted: boolean;
3481
+ iconUri?: string | null | undefined;
3482
+ };
3483
+ amount: bigint;
3484
+ marketAddress: string;
3485
+ slippage?: string | undefined;
3486
+ }>;
3487
+ type BuyYtRequest = z.infer<typeof BuyYtRequestSchema>;
3488
+ declare const BuyYtResponseSchema: z.ZodObject<{
3489
+ exactYtAmount: z.ZodString;
3490
+ displayYtAmount: z.ZodString;
3491
+ ytTokenIdentifier: z.ZodObject<{
3492
+ chainId: z.ZodString;
3493
+ address: z.ZodString;
3494
+ }, "strip", z.ZodTypeAny, {
3495
+ chainId: string;
3496
+ address: string;
3497
+ }, {
3498
+ chainId: string;
3499
+ address: string;
3500
+ }>;
3501
+ transactions: z.ZodArray<z.ZodObject<{
3502
+ type: z.ZodEnum<[string, ...string[]]>;
3503
+ to: z.ZodString;
3504
+ data: z.ZodString;
3505
+ value: z.ZodString;
3506
+ chainId: z.ZodString;
3507
+ }, "strip", z.ZodTypeAny, {
3508
+ chainId: string;
3509
+ value: string;
3510
+ type: string;
3511
+ to: string;
3512
+ data: string;
3513
+ }, {
3514
+ chainId: string;
3515
+ value: string;
3516
+ type: string;
3517
+ to: string;
3518
+ data: string;
3519
+ }>, "many">;
3520
+ }, "strip", z.ZodTypeAny, {
3521
+ exactYtAmount: string;
3522
+ displayYtAmount: string;
3523
+ ytTokenIdentifier: {
3524
+ chainId: string;
3525
+ address: string;
3526
+ };
3527
+ transactions: {
3528
+ chainId: string;
3529
+ value: string;
3530
+ type: string;
3531
+ to: string;
3532
+ data: string;
3533
+ }[];
3534
+ }, {
3535
+ exactYtAmount: string;
3536
+ displayYtAmount: string;
3537
+ ytTokenIdentifier: {
3538
+ chainId: string;
3539
+ address: string;
3540
+ };
3541
+ transactions: {
3542
+ chainId: string;
3543
+ value: string;
3544
+ type: string;
3545
+ to: string;
3546
+ data: string;
3547
+ }[];
3548
+ }>;
3549
+ type BuyYtResponse = z.infer<typeof BuyYtResponseSchema>;
3550
+ declare const SellPtRequestSchema: z.ZodObject<{
3551
+ walletAddress: z.ZodString;
3552
+ slippage: z.ZodDefault<z.ZodString>;
3553
+ ptToken: z.ZodObject<{
3554
+ tokenUid: z.ZodObject<{
3555
+ chainId: z.ZodString;
3556
+ address: z.ZodString;
3557
+ }, "strip", z.ZodTypeAny, {
3558
+ chainId: string;
3559
+ address: string;
3560
+ }, {
3561
+ chainId: string;
3562
+ address: string;
3563
+ }>;
3564
+ name: z.ZodString;
3565
+ symbol: z.ZodString;
3566
+ isNative: z.ZodBoolean;
3567
+ decimals: z.ZodNumber;
3568
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3569
+ isVetted: z.ZodBoolean;
3570
+ }, "strip", z.ZodTypeAny, {
3571
+ symbol: string;
3572
+ tokenUid: {
3573
+ chainId: string;
3574
+ address: string;
3575
+ };
3576
+ name: string;
3577
+ isNative: boolean;
3578
+ decimals: number;
3579
+ isVetted: boolean;
3580
+ iconUri?: string | null | undefined;
3581
+ }, {
3582
+ symbol: string;
3583
+ tokenUid: {
3584
+ chainId: string;
3585
+ address: string;
3586
+ };
3587
+ name: string;
3588
+ isNative: boolean;
3589
+ decimals: number;
3590
+ isVetted: boolean;
3591
+ iconUri?: string | null | undefined;
3592
+ }>;
3593
+ amount: z.ZodBigInt;
3594
+ }, "strip", z.ZodTypeAny, {
3595
+ walletAddress: string;
3596
+ slippage: string;
3597
+ amount: bigint;
3598
+ ptToken: {
3599
+ symbol: string;
3600
+ tokenUid: {
3601
+ chainId: string;
3602
+ address: string;
3603
+ };
3604
+ name: string;
3605
+ isNative: boolean;
3606
+ decimals: number;
3607
+ isVetted: boolean;
3608
+ iconUri?: string | null | undefined;
3609
+ };
3610
+ }, {
3611
+ walletAddress: string;
3612
+ amount: bigint;
3613
+ ptToken: {
3614
+ symbol: string;
3615
+ tokenUid: {
3616
+ chainId: string;
3617
+ address: string;
3618
+ };
3619
+ name: string;
3620
+ isNative: boolean;
3621
+ decimals: number;
3622
+ isVetted: boolean;
3623
+ iconUri?: string | null | undefined;
3624
+ };
3625
+ slippage?: string | undefined;
3626
+ }>;
3627
+ type SellPtRequest = z.infer<typeof SellPtRequestSchema>;
3628
+ declare const SellPtResponseSchema: z.ZodObject<{
3629
+ tokenOut: z.ZodObject<{
3630
+ tokenUid: z.ZodObject<{
3631
+ chainId: z.ZodString;
3632
+ address: z.ZodString;
3633
+ }, "strip", z.ZodTypeAny, {
3634
+ chainId: string;
3635
+ address: string;
3636
+ }, {
3637
+ chainId: string;
3638
+ address: string;
3639
+ }>;
3640
+ name: z.ZodString;
3641
+ symbol: z.ZodString;
3642
+ isNative: z.ZodBoolean;
3643
+ decimals: z.ZodNumber;
3644
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3645
+ isVetted: z.ZodBoolean;
3646
+ }, "strip", z.ZodTypeAny, {
3647
+ symbol: string;
3648
+ tokenUid: {
3649
+ chainId: string;
3650
+ address: string;
3651
+ };
3652
+ name: string;
3653
+ isNative: boolean;
3654
+ decimals: number;
3655
+ isVetted: boolean;
3656
+ iconUri?: string | null | undefined;
3657
+ }, {
3658
+ symbol: string;
3659
+ tokenUid: {
3660
+ chainId: string;
3661
+ address: string;
3662
+ };
3663
+ name: string;
3664
+ isNative: boolean;
3665
+ decimals: number;
3666
+ isVetted: boolean;
3667
+ iconUri?: string | null | undefined;
3668
+ }>;
3669
+ exactAmountOut: z.ZodString;
3670
+ displayAmountOut: z.ZodString;
3671
+ transactions: z.ZodArray<z.ZodObject<{
3672
+ type: z.ZodEnum<[string, ...string[]]>;
3673
+ to: z.ZodString;
3674
+ data: z.ZodString;
3675
+ value: z.ZodString;
3676
+ chainId: z.ZodString;
3677
+ }, "strip", z.ZodTypeAny, {
3678
+ chainId: string;
3679
+ value: string;
3680
+ type: string;
3681
+ to: string;
3682
+ data: string;
3683
+ }, {
3684
+ chainId: string;
3685
+ value: string;
3686
+ type: string;
3687
+ to: string;
3688
+ data: string;
3689
+ }>, "many">;
3690
+ }, "strip", z.ZodTypeAny, {
3691
+ transactions: {
3692
+ chainId: string;
3693
+ value: string;
3694
+ type: string;
3695
+ to: string;
3696
+ data: string;
3697
+ }[];
3698
+ tokenOut: {
3699
+ symbol: string;
3700
+ tokenUid: {
3701
+ chainId: string;
3702
+ address: string;
3703
+ };
3704
+ name: string;
3705
+ isNative: boolean;
3706
+ decimals: number;
3707
+ isVetted: boolean;
3708
+ iconUri?: string | null | undefined;
3709
+ };
3710
+ exactAmountOut: string;
3711
+ displayAmountOut: string;
3712
+ }, {
3713
+ transactions: {
3714
+ chainId: string;
3715
+ value: string;
3716
+ type: string;
3717
+ to: string;
3718
+ data: string;
3719
+ }[];
3720
+ tokenOut: {
3721
+ symbol: string;
3722
+ tokenUid: {
3723
+ chainId: string;
3724
+ address: string;
3725
+ };
3726
+ name: string;
3727
+ isNative: boolean;
3728
+ decimals: number;
3729
+ isVetted: boolean;
3730
+ iconUri?: string | null | undefined;
3731
+ };
3732
+ exactAmountOut: string;
3733
+ displayAmountOut: string;
3734
+ }>;
3735
+ type SellPtResponse = z.infer<typeof SellPtResponseSchema>;
3736
+ declare const SellYtRequestSchema: z.ZodObject<{
3737
+ walletAddress: z.ZodString;
3738
+ slippage: z.ZodDefault<z.ZodString>;
3739
+ ytToken: z.ZodObject<{
3740
+ tokenUid: z.ZodObject<{
3741
+ chainId: z.ZodString;
3742
+ address: z.ZodString;
3743
+ }, "strip", z.ZodTypeAny, {
3744
+ chainId: string;
3745
+ address: string;
3746
+ }, {
3747
+ chainId: string;
3748
+ address: string;
3749
+ }>;
3750
+ name: z.ZodString;
3751
+ symbol: z.ZodString;
3752
+ isNative: z.ZodBoolean;
3753
+ decimals: z.ZodNumber;
3754
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3755
+ isVetted: z.ZodBoolean;
3756
+ }, "strip", z.ZodTypeAny, {
3757
+ symbol: string;
3758
+ tokenUid: {
3759
+ chainId: string;
3760
+ address: string;
3761
+ };
3762
+ name: string;
3763
+ isNative: boolean;
3764
+ decimals: number;
3765
+ isVetted: boolean;
3766
+ iconUri?: string | null | undefined;
3767
+ }, {
3768
+ symbol: string;
3769
+ tokenUid: {
3770
+ chainId: string;
3771
+ address: string;
3772
+ };
3773
+ name: string;
3774
+ isNative: boolean;
3775
+ decimals: number;
3776
+ isVetted: boolean;
3777
+ iconUri?: string | null | undefined;
3778
+ }>;
3779
+ amount: z.ZodBigInt;
3780
+ }, "strip", z.ZodTypeAny, {
3781
+ walletAddress: string;
3782
+ slippage: string;
3783
+ amount: bigint;
3784
+ ytToken: {
3785
+ symbol: string;
3786
+ tokenUid: {
3787
+ chainId: string;
3788
+ address: string;
3789
+ };
3790
+ name: string;
3791
+ isNative: boolean;
3792
+ decimals: number;
3793
+ isVetted: boolean;
3794
+ iconUri?: string | null | undefined;
3795
+ };
3796
+ }, {
3797
+ walletAddress: string;
3798
+ amount: bigint;
3799
+ ytToken: {
3800
+ symbol: string;
3801
+ tokenUid: {
3802
+ chainId: string;
3803
+ address: string;
3804
+ };
3805
+ name: string;
3806
+ isNative: boolean;
3807
+ decimals: number;
3808
+ isVetted: boolean;
3809
+ iconUri?: string | null | undefined;
3810
+ };
3811
+ slippage?: string | undefined;
3812
+ }>;
3813
+ type SellYtRequest = z.infer<typeof SellYtRequestSchema>;
3814
+ declare const SellYtResponseSchema: z.ZodObject<{
3815
+ tokenOut: z.ZodObject<{
3816
+ tokenUid: z.ZodObject<{
3817
+ chainId: z.ZodString;
3818
+ address: z.ZodString;
3819
+ }, "strip", z.ZodTypeAny, {
3820
+ chainId: string;
3821
+ address: string;
3822
+ }, {
3823
+ chainId: string;
3824
+ address: string;
3825
+ }>;
3826
+ name: z.ZodString;
3827
+ symbol: z.ZodString;
3828
+ isNative: z.ZodBoolean;
3829
+ decimals: z.ZodNumber;
3830
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3831
+ isVetted: z.ZodBoolean;
3832
+ }, "strip", z.ZodTypeAny, {
3833
+ symbol: string;
3834
+ tokenUid: {
3835
+ chainId: string;
3836
+ address: string;
3837
+ };
3838
+ name: string;
3839
+ isNative: boolean;
3840
+ decimals: number;
3841
+ isVetted: boolean;
3842
+ iconUri?: string | null | undefined;
3843
+ }, {
3844
+ symbol: string;
3845
+ tokenUid: {
3846
+ chainId: string;
3847
+ address: string;
3848
+ };
3849
+ name: string;
3850
+ isNative: boolean;
3851
+ decimals: number;
3852
+ isVetted: boolean;
3853
+ iconUri?: string | null | undefined;
3854
+ }>;
3855
+ exactAmountOut: z.ZodString;
3856
+ displayAmountOut: z.ZodString;
3857
+ transactions: z.ZodArray<z.ZodObject<{
3858
+ type: z.ZodEnum<[string, ...string[]]>;
3859
+ to: z.ZodString;
3860
+ data: z.ZodString;
3861
+ value: z.ZodString;
3862
+ chainId: z.ZodString;
3863
+ }, "strip", z.ZodTypeAny, {
3864
+ chainId: string;
3865
+ value: string;
3866
+ type: string;
3867
+ to: string;
3868
+ data: string;
3869
+ }, {
3870
+ chainId: string;
3871
+ value: string;
3872
+ type: string;
3873
+ to: string;
3874
+ data: string;
3875
+ }>, "many">;
3876
+ }, "strip", z.ZodTypeAny, {
3877
+ transactions: {
3878
+ chainId: string;
3879
+ value: string;
3880
+ type: string;
3881
+ to: string;
3882
+ data: string;
3883
+ }[];
3884
+ tokenOut: {
3885
+ symbol: string;
3886
+ tokenUid: {
3887
+ chainId: string;
3888
+ address: string;
3889
+ };
3890
+ name: string;
3891
+ isNative: boolean;
3892
+ decimals: number;
3893
+ isVetted: boolean;
3894
+ iconUri?: string | null | undefined;
3895
+ };
3896
+ exactAmountOut: string;
3897
+ displayAmountOut: string;
3898
+ }, {
3899
+ transactions: {
3900
+ chainId: string;
3901
+ value: string;
3902
+ type: string;
3903
+ to: string;
3904
+ data: string;
3905
+ }[];
3906
+ tokenOut: {
3907
+ symbol: string;
3908
+ tokenUid: {
3909
+ chainId: string;
3910
+ address: string;
3911
+ };
3912
+ name: string;
3913
+ isNative: boolean;
3914
+ decimals: number;
3915
+ isVetted: boolean;
3916
+ iconUri?: string | null | undefined;
3917
+ };
3918
+ exactAmountOut: string;
3919
+ displayAmountOut: string;
3920
+ }>;
3921
+ type SellYtResponse = z.infer<typeof SellYtResponseSchema>;
3922
+ declare const RedeemPtRequestSchema: z.ZodObject<{
3923
+ walletAddress: z.ZodString;
3924
+ ptToken: z.ZodObject<{
3925
+ tokenUid: z.ZodObject<{
3926
+ chainId: z.ZodString;
3927
+ address: z.ZodString;
3928
+ }, "strip", z.ZodTypeAny, {
3929
+ chainId: string;
3930
+ address: string;
3931
+ }, {
3932
+ chainId: string;
3933
+ address: string;
3934
+ }>;
3935
+ name: z.ZodString;
3936
+ symbol: z.ZodString;
3937
+ isNative: z.ZodBoolean;
3938
+ decimals: z.ZodNumber;
3939
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3940
+ isVetted: z.ZodBoolean;
3941
+ }, "strip", z.ZodTypeAny, {
3942
+ symbol: string;
3943
+ tokenUid: {
3944
+ chainId: string;
3945
+ address: string;
3946
+ };
3947
+ name: string;
3948
+ isNative: boolean;
3949
+ decimals: number;
3950
+ isVetted: boolean;
3951
+ iconUri?: string | null | undefined;
3952
+ }, {
3953
+ symbol: string;
3954
+ tokenUid: {
3955
+ chainId: string;
3956
+ address: string;
3957
+ };
3958
+ name: string;
3959
+ isNative: boolean;
3960
+ decimals: number;
3961
+ isVetted: boolean;
3962
+ iconUri?: string | null | undefined;
3963
+ }>;
3964
+ amount: z.ZodBigInt;
3965
+ }, "strip", z.ZodTypeAny, {
3966
+ walletAddress: string;
3967
+ amount: bigint;
3968
+ ptToken: {
3969
+ symbol: string;
3970
+ tokenUid: {
3971
+ chainId: string;
3972
+ address: string;
3973
+ };
3974
+ name: string;
3975
+ isNative: boolean;
3976
+ decimals: number;
3977
+ isVetted: boolean;
3978
+ iconUri?: string | null | undefined;
3979
+ };
3980
+ }, {
3981
+ walletAddress: string;
3982
+ amount: bigint;
3983
+ ptToken: {
3984
+ symbol: string;
3985
+ tokenUid: {
3986
+ chainId: string;
3987
+ address: string;
3988
+ };
3989
+ name: string;
3990
+ isNative: boolean;
3991
+ decimals: number;
3992
+ isVetted: boolean;
3993
+ iconUri?: string | null | undefined;
3994
+ };
3995
+ }>;
3996
+ type RedeemPtRequest = z.infer<typeof RedeemPtRequestSchema>;
3997
+ declare const RedeemPtResponseSchema: z.ZodObject<{
3998
+ underlyingTokenIdentifier: z.ZodObject<{
3999
+ chainId: z.ZodString;
4000
+ address: z.ZodString;
4001
+ }, "strip", z.ZodTypeAny, {
4002
+ chainId: string;
4003
+ address: string;
4004
+ }, {
4005
+ chainId: string;
4006
+ address: string;
4007
+ }>;
4008
+ exactUnderlyingAmount: z.ZodString;
4009
+ displayUnderlyingAmount: z.ZodString;
4010
+ transactions: z.ZodArray<z.ZodObject<{
4011
+ type: z.ZodEnum<[string, ...string[]]>;
4012
+ to: z.ZodString;
4013
+ data: z.ZodString;
4014
+ value: z.ZodString;
4015
+ chainId: z.ZodString;
4016
+ }, "strip", z.ZodTypeAny, {
4017
+ chainId: string;
4018
+ value: string;
4019
+ type: string;
4020
+ to: string;
4021
+ data: string;
4022
+ }, {
4023
+ chainId: string;
4024
+ value: string;
4025
+ type: string;
4026
+ to: string;
4027
+ data: string;
4028
+ }>, "many">;
4029
+ }, "strip", z.ZodTypeAny, {
4030
+ transactions: {
4031
+ chainId: string;
4032
+ value: string;
4033
+ type: string;
4034
+ to: string;
4035
+ data: string;
4036
+ }[];
4037
+ underlyingTokenIdentifier: {
4038
+ chainId: string;
4039
+ address: string;
4040
+ };
4041
+ exactUnderlyingAmount: string;
4042
+ displayUnderlyingAmount: string;
4043
+ }, {
4044
+ transactions: {
4045
+ chainId: string;
4046
+ value: string;
4047
+ type: string;
4048
+ to: string;
4049
+ data: string;
4050
+ }[];
4051
+ underlyingTokenIdentifier: {
4052
+ chainId: string;
4053
+ address: string;
4054
+ };
4055
+ exactUnderlyingAmount: string;
4056
+ displayUnderlyingAmount: string;
4057
+ }>;
4058
+ type RedeemPtResponse = z.infer<typeof RedeemPtResponseSchema>;
4059
+ declare const ClaimRewardsRequestSchema: z.ZodObject<{
4060
+ walletAddress: z.ZodString;
4061
+ ytToken: z.ZodObject<{
4062
+ tokenUid: z.ZodObject<{
4063
+ chainId: z.ZodString;
4064
+ address: z.ZodString;
4065
+ }, "strip", z.ZodTypeAny, {
4066
+ chainId: string;
4067
+ address: string;
4068
+ }, {
4069
+ chainId: string;
4070
+ address: string;
4071
+ }>;
4072
+ name: z.ZodString;
4073
+ symbol: z.ZodString;
4074
+ isNative: z.ZodBoolean;
4075
+ decimals: z.ZodNumber;
4076
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4077
+ isVetted: z.ZodBoolean;
4078
+ }, "strip", z.ZodTypeAny, {
4079
+ symbol: string;
4080
+ tokenUid: {
4081
+ chainId: string;
4082
+ address: string;
4083
+ };
4084
+ name: string;
4085
+ isNative: boolean;
4086
+ decimals: number;
4087
+ isVetted: boolean;
4088
+ iconUri?: string | null | undefined;
4089
+ }, {
4090
+ symbol: string;
4091
+ tokenUid: {
4092
+ chainId: string;
4093
+ address: string;
4094
+ };
4095
+ name: string;
4096
+ isNative: boolean;
4097
+ decimals: number;
4098
+ isVetted: boolean;
4099
+ iconUri?: string | null | undefined;
4100
+ }>;
4101
+ }, "strip", z.ZodTypeAny, {
4102
+ walletAddress: string;
4103
+ ytToken: {
4104
+ symbol: string;
4105
+ tokenUid: {
4106
+ chainId: string;
4107
+ address: string;
4108
+ };
4109
+ name: string;
4110
+ isNative: boolean;
4111
+ decimals: number;
4112
+ isVetted: boolean;
4113
+ iconUri?: string | null | undefined;
4114
+ };
4115
+ }, {
4116
+ walletAddress: string;
4117
+ ytToken: {
4118
+ symbol: string;
4119
+ tokenUid: {
4120
+ chainId: string;
4121
+ address: string;
4122
+ };
4123
+ name: string;
4124
+ isNative: boolean;
4125
+ decimals: number;
4126
+ isVetted: boolean;
4127
+ iconUri?: string | null | undefined;
4128
+ };
4129
+ }>;
4130
+ type ClaimRewardsRequest = z.infer<typeof ClaimRewardsRequestSchema>;
4131
+ declare const ClaimRewardsResponseSchema: z.ZodObject<{
4132
+ transactions: z.ZodArray<z.ZodObject<{
4133
+ type: z.ZodEnum<[string, ...string[]]>;
4134
+ to: z.ZodString;
4135
+ data: z.ZodString;
4136
+ value: z.ZodString;
4137
+ chainId: z.ZodString;
4138
+ }, "strip", z.ZodTypeAny, {
4139
+ chainId: string;
4140
+ value: string;
4141
+ type: string;
4142
+ to: string;
4143
+ data: string;
4144
+ }, {
4145
+ chainId: string;
4146
+ value: string;
4147
+ type: string;
4148
+ to: string;
4149
+ data: string;
4150
+ }>, "many">;
4151
+ }, "strip", z.ZodTypeAny, {
4152
+ transactions: {
4153
+ chainId: string;
4154
+ value: string;
4155
+ type: string;
4156
+ to: string;
4157
+ data: string;
4158
+ }[];
4159
+ }, {
4160
+ transactions: {
4161
+ chainId: string;
4162
+ value: string;
4163
+ type: string;
4164
+ to: string;
4165
+ data: string;
4166
+ }[];
4167
+ }>;
4168
+ type ClaimRewardsResponse = z.infer<typeof ClaimRewardsResponseSchema>;
4169
+ declare const TokenizedYieldMarketSchema: z.ZodObject<{
4170
+ marketIdentifier: z.ZodObject<{
4171
+ chainId: z.ZodString;
4172
+ address: z.ZodString;
4173
+ }, "strip", z.ZodTypeAny, {
4174
+ chainId: string;
4175
+ address: string;
4176
+ }, {
4177
+ chainId: string;
4178
+ address: string;
4179
+ }>;
4180
+ ptToken: z.ZodObject<{
4181
+ tokenUid: z.ZodObject<{
4182
+ chainId: z.ZodString;
4183
+ address: z.ZodString;
4184
+ }, "strip", z.ZodTypeAny, {
4185
+ chainId: string;
4186
+ address: string;
4187
+ }, {
4188
+ chainId: string;
4189
+ address: string;
4190
+ }>;
4191
+ name: z.ZodString;
4192
+ symbol: z.ZodString;
4193
+ isNative: z.ZodBoolean;
4194
+ decimals: z.ZodNumber;
4195
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4196
+ isVetted: z.ZodBoolean;
4197
+ }, "strip", z.ZodTypeAny, {
4198
+ symbol: string;
4199
+ tokenUid: {
4200
+ chainId: string;
4201
+ address: string;
4202
+ };
4203
+ name: string;
4204
+ isNative: boolean;
4205
+ decimals: number;
4206
+ isVetted: boolean;
4207
+ iconUri?: string | null | undefined;
4208
+ }, {
4209
+ symbol: string;
4210
+ tokenUid: {
4211
+ chainId: string;
4212
+ address: string;
4213
+ };
4214
+ name: string;
4215
+ isNative: boolean;
4216
+ decimals: number;
4217
+ isVetted: boolean;
4218
+ iconUri?: string | null | undefined;
4219
+ }>;
4220
+ ytToken: z.ZodObject<{
4221
+ tokenUid: z.ZodObject<{
4222
+ chainId: z.ZodString;
4223
+ address: z.ZodString;
4224
+ }, "strip", z.ZodTypeAny, {
4225
+ chainId: string;
4226
+ address: string;
4227
+ }, {
4228
+ chainId: string;
4229
+ address: string;
4230
+ }>;
4231
+ name: z.ZodString;
4232
+ symbol: z.ZodString;
4233
+ isNative: z.ZodBoolean;
4234
+ decimals: z.ZodNumber;
4235
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4236
+ isVetted: z.ZodBoolean;
4237
+ }, "strip", z.ZodTypeAny, {
4238
+ symbol: string;
4239
+ tokenUid: {
4240
+ chainId: string;
4241
+ address: string;
4242
+ };
4243
+ name: string;
4244
+ isNative: boolean;
4245
+ decimals: number;
4246
+ isVetted: boolean;
4247
+ iconUri?: string | null | undefined;
4248
+ }, {
4249
+ symbol: string;
4250
+ tokenUid: {
4251
+ chainId: string;
4252
+ address: string;
4253
+ };
4254
+ name: string;
4255
+ isNative: boolean;
4256
+ decimals: number;
4257
+ isVetted: boolean;
4258
+ iconUri?: string | null | undefined;
4259
+ }>;
4260
+ underlyingToken: z.ZodObject<{
4261
+ tokenUid: z.ZodObject<{
4262
+ chainId: z.ZodString;
4263
+ address: z.ZodString;
4264
+ }, "strip", z.ZodTypeAny, {
4265
+ chainId: string;
4266
+ address: string;
4267
+ }, {
4268
+ chainId: string;
4269
+ address: string;
4270
+ }>;
4271
+ name: z.ZodString;
4272
+ symbol: z.ZodString;
4273
+ isNative: z.ZodBoolean;
4274
+ decimals: z.ZodNumber;
4275
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4276
+ isVetted: z.ZodBoolean;
4277
+ }, "strip", z.ZodTypeAny, {
4278
+ symbol: string;
4279
+ tokenUid: {
4280
+ chainId: string;
4281
+ address: string;
4282
+ };
4283
+ name: string;
4284
+ isNative: boolean;
4285
+ decimals: number;
4286
+ isVetted: boolean;
4287
+ iconUri?: string | null | undefined;
4288
+ }, {
4289
+ symbol: string;
4290
+ tokenUid: {
4291
+ chainId: string;
4292
+ address: string;
4293
+ };
4294
+ name: string;
4295
+ isNative: boolean;
4296
+ decimals: number;
4297
+ isVetted: boolean;
4298
+ iconUri?: string | null | undefined;
4299
+ }>;
4300
+ expiry: z.ZodString;
4301
+ details: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4302
+ }, "strip", z.ZodTypeAny, {
4303
+ ptToken: {
4304
+ symbol: string;
4305
+ tokenUid: {
4306
+ chainId: string;
4307
+ address: string;
4308
+ };
4309
+ name: string;
4310
+ isNative: boolean;
4311
+ decimals: number;
4312
+ isVetted: boolean;
4313
+ iconUri?: string | null | undefined;
4314
+ };
4315
+ ytToken: {
4316
+ symbol: string;
4317
+ tokenUid: {
4318
+ chainId: string;
4319
+ address: string;
4320
+ };
4321
+ name: string;
4322
+ isNative: boolean;
4323
+ decimals: number;
4324
+ isVetted: boolean;
4325
+ iconUri?: string | null | undefined;
4326
+ };
4327
+ marketIdentifier: {
4328
+ chainId: string;
4329
+ address: string;
4330
+ };
4331
+ underlyingToken: {
4332
+ symbol: string;
4333
+ tokenUid: {
4334
+ chainId: string;
4335
+ address: string;
4336
+ };
4337
+ name: string;
4338
+ isNative: boolean;
4339
+ decimals: number;
4340
+ isVetted: boolean;
4341
+ iconUri?: string | null | undefined;
4342
+ };
4343
+ expiry: string;
4344
+ details: {};
4345
+ }, {
4346
+ ptToken: {
4347
+ symbol: string;
4348
+ tokenUid: {
4349
+ chainId: string;
4350
+ address: string;
4351
+ };
4352
+ name: string;
4353
+ isNative: boolean;
4354
+ decimals: number;
4355
+ isVetted: boolean;
4356
+ iconUri?: string | null | undefined;
4357
+ };
4358
+ ytToken: {
4359
+ symbol: string;
4360
+ tokenUid: {
4361
+ chainId: string;
4362
+ address: string;
4363
+ };
4364
+ name: string;
4365
+ isNative: boolean;
4366
+ decimals: number;
4367
+ isVetted: boolean;
4368
+ iconUri?: string | null | undefined;
4369
+ };
4370
+ marketIdentifier: {
4371
+ chainId: string;
4372
+ address: string;
4373
+ };
4374
+ underlyingToken: {
4375
+ symbol: string;
4376
+ tokenUid: {
4377
+ chainId: string;
4378
+ address: string;
4379
+ };
4380
+ name: string;
4381
+ isNative: boolean;
4382
+ decimals: number;
4383
+ isVetted: boolean;
4384
+ iconUri?: string | null | undefined;
4385
+ };
4386
+ expiry: string;
4387
+ details: {};
4388
+ }>;
4389
+ declare const MarketTokenizedYieldRequestSchema: z.ZodObject<{
4390
+ chainIds: z.ZodArray<z.ZodString, "many">;
4391
+ }, "strip", z.ZodTypeAny, {
4392
+ chainIds: string[];
4393
+ }, {
4394
+ chainIds: string[];
4395
+ }>;
4396
+ type MarketTokenizedYieldRequest = z.infer<typeof MarketTokenizedYieldRequestSchema>;
4397
+ declare const MarketTokenizedYieldResponseSchema: z.ZodObject<{
4398
+ markets: z.ZodArray<z.ZodObject<{
4399
+ marketIdentifier: z.ZodObject<{
4400
+ chainId: z.ZodString;
4401
+ address: z.ZodString;
4402
+ }, "strip", z.ZodTypeAny, {
4403
+ chainId: string;
4404
+ address: string;
4405
+ }, {
4406
+ chainId: string;
4407
+ address: string;
4408
+ }>;
4409
+ ptToken: z.ZodObject<{
4410
+ tokenUid: z.ZodObject<{
4411
+ chainId: z.ZodString;
4412
+ address: z.ZodString;
4413
+ }, "strip", z.ZodTypeAny, {
4414
+ chainId: string;
4415
+ address: string;
4416
+ }, {
4417
+ chainId: string;
4418
+ address: string;
4419
+ }>;
4420
+ name: z.ZodString;
4421
+ symbol: z.ZodString;
4422
+ isNative: z.ZodBoolean;
4423
+ decimals: z.ZodNumber;
4424
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4425
+ isVetted: z.ZodBoolean;
4426
+ }, "strip", z.ZodTypeAny, {
4427
+ symbol: string;
4428
+ tokenUid: {
4429
+ chainId: string;
4430
+ address: string;
4431
+ };
4432
+ name: string;
4433
+ isNative: boolean;
4434
+ decimals: number;
4435
+ isVetted: boolean;
4436
+ iconUri?: string | null | undefined;
4437
+ }, {
4438
+ symbol: string;
4439
+ tokenUid: {
4440
+ chainId: string;
4441
+ address: string;
4442
+ };
4443
+ name: string;
4444
+ isNative: boolean;
4445
+ decimals: number;
4446
+ isVetted: boolean;
4447
+ iconUri?: string | null | undefined;
4448
+ }>;
4449
+ ytToken: z.ZodObject<{
4450
+ tokenUid: z.ZodObject<{
4451
+ chainId: z.ZodString;
4452
+ address: z.ZodString;
4453
+ }, "strip", z.ZodTypeAny, {
4454
+ chainId: string;
4455
+ address: string;
4456
+ }, {
4457
+ chainId: string;
4458
+ address: string;
4459
+ }>;
4460
+ name: z.ZodString;
4461
+ symbol: z.ZodString;
4462
+ isNative: z.ZodBoolean;
4463
+ decimals: z.ZodNumber;
4464
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4465
+ isVetted: z.ZodBoolean;
4466
+ }, "strip", z.ZodTypeAny, {
4467
+ symbol: string;
4468
+ tokenUid: {
4469
+ chainId: string;
4470
+ address: string;
4471
+ };
4472
+ name: string;
4473
+ isNative: boolean;
4474
+ decimals: number;
4475
+ isVetted: boolean;
4476
+ iconUri?: string | null | undefined;
4477
+ }, {
4478
+ symbol: string;
4479
+ tokenUid: {
4480
+ chainId: string;
4481
+ address: string;
4482
+ };
4483
+ name: string;
4484
+ isNative: boolean;
4485
+ decimals: number;
4486
+ isVetted: boolean;
4487
+ iconUri?: string | null | undefined;
4488
+ }>;
4489
+ underlyingToken: z.ZodObject<{
4490
+ tokenUid: z.ZodObject<{
4491
+ chainId: z.ZodString;
4492
+ address: z.ZodString;
4493
+ }, "strip", z.ZodTypeAny, {
4494
+ chainId: string;
4495
+ address: string;
4496
+ }, {
4497
+ chainId: string;
4498
+ address: string;
4499
+ }>;
4500
+ name: z.ZodString;
4501
+ symbol: z.ZodString;
4502
+ isNative: z.ZodBoolean;
4503
+ decimals: z.ZodNumber;
4504
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4505
+ isVetted: z.ZodBoolean;
4506
+ }, "strip", z.ZodTypeAny, {
4507
+ symbol: string;
4508
+ tokenUid: {
4509
+ chainId: string;
4510
+ address: string;
4511
+ };
4512
+ name: string;
4513
+ isNative: boolean;
4514
+ decimals: number;
4515
+ isVetted: boolean;
4516
+ iconUri?: string | null | undefined;
4517
+ }, {
4518
+ symbol: string;
4519
+ tokenUid: {
4520
+ chainId: string;
4521
+ address: string;
4522
+ };
4523
+ name: string;
4524
+ isNative: boolean;
4525
+ decimals: number;
4526
+ isVetted: boolean;
4527
+ iconUri?: string | null | undefined;
4528
+ }>;
4529
+ expiry: z.ZodString;
4530
+ details: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
4531
+ }, "strip", z.ZodTypeAny, {
4532
+ ptToken: {
4533
+ symbol: string;
4534
+ tokenUid: {
4535
+ chainId: string;
4536
+ address: string;
4537
+ };
4538
+ name: string;
4539
+ isNative: boolean;
4540
+ decimals: number;
4541
+ isVetted: boolean;
4542
+ iconUri?: string | null | undefined;
4543
+ };
4544
+ ytToken: {
4545
+ symbol: string;
4546
+ tokenUid: {
4547
+ chainId: string;
4548
+ address: string;
4549
+ };
4550
+ name: string;
4551
+ isNative: boolean;
4552
+ decimals: number;
4553
+ isVetted: boolean;
4554
+ iconUri?: string | null | undefined;
4555
+ };
4556
+ marketIdentifier: {
4557
+ chainId: string;
4558
+ address: string;
4559
+ };
4560
+ underlyingToken: {
4561
+ symbol: string;
4562
+ tokenUid: {
4563
+ chainId: string;
4564
+ address: string;
4565
+ };
4566
+ name: string;
4567
+ isNative: boolean;
4568
+ decimals: number;
4569
+ isVetted: boolean;
4570
+ iconUri?: string | null | undefined;
4571
+ };
4572
+ expiry: string;
4573
+ details: {};
4574
+ }, {
4575
+ ptToken: {
4576
+ symbol: string;
4577
+ tokenUid: {
4578
+ chainId: string;
4579
+ address: string;
4580
+ };
4581
+ name: string;
4582
+ isNative: boolean;
4583
+ decimals: number;
4584
+ isVetted: boolean;
4585
+ iconUri?: string | null | undefined;
4586
+ };
4587
+ ytToken: {
4588
+ symbol: string;
4589
+ tokenUid: {
4590
+ chainId: string;
4591
+ address: string;
4592
+ };
4593
+ name: string;
4594
+ isNative: boolean;
4595
+ decimals: number;
4596
+ isVetted: boolean;
4597
+ iconUri?: string | null | undefined;
4598
+ };
4599
+ marketIdentifier: {
4600
+ chainId: string;
4601
+ address: string;
4602
+ };
4603
+ underlyingToken: {
4604
+ symbol: string;
4605
+ tokenUid: {
4606
+ chainId: string;
4607
+ address: string;
4608
+ };
4609
+ name: string;
4610
+ isNative: boolean;
4611
+ decimals: number;
4612
+ isVetted: boolean;
4613
+ iconUri?: string | null | undefined;
4614
+ };
4615
+ expiry: string;
4616
+ details: {};
4617
+ }>, "many">;
4618
+ }, "strip", z.ZodTypeAny, {
4619
+ markets: {
4620
+ ptToken: {
4621
+ symbol: string;
4622
+ tokenUid: {
4623
+ chainId: string;
4624
+ address: string;
4625
+ };
4626
+ name: string;
4627
+ isNative: boolean;
4628
+ decimals: number;
4629
+ isVetted: boolean;
4630
+ iconUri?: string | null | undefined;
4631
+ };
4632
+ ytToken: {
4633
+ symbol: string;
4634
+ tokenUid: {
4635
+ chainId: string;
4636
+ address: string;
4637
+ };
4638
+ name: string;
4639
+ isNative: boolean;
4640
+ decimals: number;
4641
+ isVetted: boolean;
4642
+ iconUri?: string | null | undefined;
4643
+ };
4644
+ marketIdentifier: {
4645
+ chainId: string;
4646
+ address: string;
4647
+ };
4648
+ underlyingToken: {
4649
+ symbol: string;
4650
+ tokenUid: {
4651
+ chainId: string;
4652
+ address: string;
4653
+ };
4654
+ name: string;
4655
+ isNative: boolean;
4656
+ decimals: number;
4657
+ isVetted: boolean;
4658
+ iconUri?: string | null | undefined;
4659
+ };
4660
+ expiry: string;
4661
+ details: {};
4662
+ }[];
4663
+ }, {
4664
+ markets: {
4665
+ ptToken: {
4666
+ symbol: string;
4667
+ tokenUid: {
4668
+ chainId: string;
4669
+ address: string;
4670
+ };
4671
+ name: string;
4672
+ isNative: boolean;
4673
+ decimals: number;
4674
+ isVetted: boolean;
4675
+ iconUri?: string | null | undefined;
4676
+ };
4677
+ ytToken: {
4678
+ symbol: string;
4679
+ tokenUid: {
4680
+ chainId: string;
4681
+ address: string;
4682
+ };
4683
+ name: string;
4684
+ isNative: boolean;
4685
+ decimals: number;
4686
+ isVetted: boolean;
4687
+ iconUri?: string | null | undefined;
4688
+ };
4689
+ marketIdentifier: {
4690
+ chainId: string;
4691
+ address: string;
4692
+ };
4693
+ underlyingToken: {
4694
+ symbol: string;
4695
+ tokenUid: {
4696
+ chainId: string;
4697
+ address: string;
4698
+ };
4699
+ name: string;
4700
+ isNative: boolean;
4701
+ decimals: number;
4702
+ isVetted: boolean;
4703
+ iconUri?: string | null | undefined;
4704
+ };
4705
+ expiry: string;
4706
+ details: {};
4707
+ }[];
4708
+ }>;
4709
+ declare const TokenizedYieldUserPositionSchema: z.ZodObject<{
4710
+ marketIdentifier: z.ZodObject<{
4711
+ chainId: z.ZodString;
4712
+ address: z.ZodString;
4713
+ }, "strip", z.ZodTypeAny, {
4714
+ chainId: string;
4715
+ address: string;
4716
+ }, {
4717
+ chainId: string;
4718
+ address: string;
4719
+ }>;
4720
+ pt: z.ZodObject<{
4721
+ token: z.ZodObject<{
4722
+ tokenUid: z.ZodObject<{
4723
+ chainId: z.ZodString;
4724
+ address: z.ZodString;
4725
+ }, "strip", z.ZodTypeAny, {
4726
+ chainId: string;
4727
+ address: string;
4728
+ }, {
4729
+ chainId: string;
4730
+ address: string;
4731
+ }>;
4732
+ name: z.ZodString;
4733
+ symbol: z.ZodString;
4734
+ isNative: z.ZodBoolean;
4735
+ decimals: z.ZodNumber;
4736
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4737
+ isVetted: z.ZodBoolean;
4738
+ }, "strip", z.ZodTypeAny, {
4739
+ symbol: string;
4740
+ tokenUid: {
4741
+ chainId: string;
4742
+ address: string;
4743
+ };
4744
+ name: string;
4745
+ isNative: boolean;
4746
+ decimals: number;
4747
+ isVetted: boolean;
4748
+ iconUri?: string | null | undefined;
4749
+ }, {
4750
+ symbol: string;
4751
+ tokenUid: {
4752
+ chainId: string;
4753
+ address: string;
4754
+ };
4755
+ name: string;
4756
+ isNative: boolean;
4757
+ decimals: number;
4758
+ isVetted: boolean;
4759
+ iconUri?: string | null | undefined;
4760
+ }>;
4761
+ exactAmount: z.ZodString;
4762
+ displayAmount: z.ZodString;
4763
+ }, "strip", z.ZodTypeAny, {
4764
+ token: {
4765
+ symbol: string;
4766
+ tokenUid: {
4767
+ chainId: string;
4768
+ address: string;
4769
+ };
4770
+ name: string;
4771
+ isNative: boolean;
4772
+ decimals: number;
4773
+ isVetted: boolean;
4774
+ iconUri?: string | null | undefined;
4775
+ };
4776
+ exactAmount: string;
4777
+ displayAmount: string;
4778
+ }, {
4779
+ token: {
4780
+ symbol: string;
4781
+ tokenUid: {
4782
+ chainId: string;
4783
+ address: string;
4784
+ };
4785
+ name: string;
4786
+ isNative: boolean;
4787
+ decimals: number;
4788
+ isVetted: boolean;
4789
+ iconUri?: string | null | undefined;
4790
+ };
4791
+ exactAmount: string;
4792
+ displayAmount: string;
4793
+ }>;
4794
+ yt: z.ZodObject<{
4795
+ token: z.ZodObject<{
4796
+ tokenUid: z.ZodObject<{
4797
+ chainId: z.ZodString;
4798
+ address: z.ZodString;
4799
+ }, "strip", z.ZodTypeAny, {
4800
+ chainId: string;
4801
+ address: string;
4802
+ }, {
4803
+ chainId: string;
4804
+ address: string;
4805
+ }>;
4806
+ name: z.ZodString;
4807
+ symbol: z.ZodString;
4808
+ isNative: z.ZodBoolean;
4809
+ decimals: z.ZodNumber;
4810
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4811
+ isVetted: z.ZodBoolean;
4812
+ }, "strip", z.ZodTypeAny, {
4813
+ symbol: string;
4814
+ tokenUid: {
4815
+ chainId: string;
4816
+ address: string;
4817
+ };
4818
+ name: string;
4819
+ isNative: boolean;
4820
+ decimals: number;
4821
+ isVetted: boolean;
4822
+ iconUri?: string | null | undefined;
4823
+ }, {
4824
+ symbol: string;
4825
+ tokenUid: {
4826
+ chainId: string;
4827
+ address: string;
4828
+ };
4829
+ name: string;
4830
+ isNative: boolean;
4831
+ decimals: number;
4832
+ isVetted: boolean;
4833
+ iconUri?: string | null | undefined;
4834
+ }>;
4835
+ exactAmount: z.ZodString;
4836
+ displayAmount: z.ZodString;
4837
+ claimableRewards: z.ZodArray<z.ZodObject<{
4838
+ token: z.ZodObject<{
4839
+ tokenUid: z.ZodObject<{
4840
+ chainId: z.ZodString;
4841
+ address: z.ZodString;
4842
+ }, "strip", z.ZodTypeAny, {
4843
+ chainId: string;
4844
+ address: string;
4845
+ }, {
4846
+ chainId: string;
4847
+ address: string;
4848
+ }>;
4849
+ name: z.ZodString;
4850
+ symbol: z.ZodString;
4851
+ isNative: z.ZodBoolean;
4852
+ decimals: z.ZodNumber;
4853
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
4854
+ isVetted: z.ZodBoolean;
4855
+ }, "strip", z.ZodTypeAny, {
4856
+ symbol: string;
4857
+ tokenUid: {
4858
+ chainId: string;
4859
+ address: string;
4860
+ };
4861
+ name: string;
4862
+ isNative: boolean;
4863
+ decimals: number;
4864
+ isVetted: boolean;
4865
+ iconUri?: string | null | undefined;
4866
+ }, {
4867
+ symbol: string;
4868
+ tokenUid: {
4869
+ chainId: string;
4870
+ address: string;
4871
+ };
4872
+ name: string;
4873
+ isNative: boolean;
4874
+ decimals: number;
4875
+ isVetted: boolean;
4876
+ iconUri?: string | null | undefined;
4877
+ }>;
4878
+ exactAmount: z.ZodString;
4879
+ displayAmount: z.ZodString;
4880
+ }, "strip", z.ZodTypeAny, {
4881
+ token: {
4882
+ symbol: string;
4883
+ tokenUid: {
4884
+ chainId: string;
4885
+ address: string;
4886
+ };
4887
+ name: string;
4888
+ isNative: boolean;
4889
+ decimals: number;
4890
+ isVetted: boolean;
4891
+ iconUri?: string | null | undefined;
4892
+ };
4893
+ exactAmount: string;
4894
+ displayAmount: string;
4895
+ }, {
4896
+ token: {
4897
+ symbol: string;
4898
+ tokenUid: {
4899
+ chainId: string;
4900
+ address: string;
4901
+ };
4902
+ name: string;
4903
+ isNative: boolean;
4904
+ decimals: number;
4905
+ isVetted: boolean;
4906
+ iconUri?: string | null | undefined;
4907
+ };
4908
+ exactAmount: string;
4909
+ displayAmount: string;
4910
+ }>, "many">;
4911
+ }, "strip", z.ZodTypeAny, {
4912
+ token: {
4913
+ symbol: string;
4914
+ tokenUid: {
4915
+ chainId: string;
4916
+ address: string;
4917
+ };
4918
+ name: string;
4919
+ isNative: boolean;
4920
+ decimals: number;
4921
+ isVetted: boolean;
4922
+ iconUri?: string | null | undefined;
4923
+ };
4924
+ exactAmount: string;
4925
+ displayAmount: string;
4926
+ claimableRewards: {
4927
+ token: {
4928
+ symbol: string;
4929
+ tokenUid: {
4930
+ chainId: string;
4931
+ address: string;
4932
+ };
4933
+ name: string;
4934
+ isNative: boolean;
4935
+ decimals: number;
4936
+ isVetted: boolean;
4937
+ iconUri?: string | null | undefined;
4938
+ };
4939
+ exactAmount: string;
4940
+ displayAmount: string;
4941
+ }[];
4942
+ }, {
4943
+ token: {
4944
+ symbol: string;
4945
+ tokenUid: {
4946
+ chainId: string;
4947
+ address: string;
4948
+ };
4949
+ name: string;
4950
+ isNative: boolean;
4951
+ decimals: number;
4952
+ isVetted: boolean;
4953
+ iconUri?: string | null | undefined;
4954
+ };
4955
+ exactAmount: string;
4956
+ displayAmount: string;
4957
+ claimableRewards: {
4958
+ token: {
4959
+ symbol: string;
4960
+ tokenUid: {
4961
+ chainId: string;
4962
+ address: string;
4963
+ };
4964
+ name: string;
4965
+ isNative: boolean;
4966
+ decimals: number;
4967
+ isVetted: boolean;
4968
+ iconUri?: string | null | undefined;
4969
+ };
4970
+ exactAmount: string;
4971
+ displayAmount: string;
4972
+ }[];
4973
+ }>;
4974
+ }, "strip", z.ZodTypeAny, {
4975
+ marketIdentifier: {
4976
+ chainId: string;
4977
+ address: string;
4978
+ };
4979
+ pt: {
4980
+ token: {
4981
+ symbol: string;
4982
+ tokenUid: {
4983
+ chainId: string;
4984
+ address: string;
4985
+ };
4986
+ name: string;
4987
+ isNative: boolean;
4988
+ decimals: number;
4989
+ isVetted: boolean;
4990
+ iconUri?: string | null | undefined;
4991
+ };
4992
+ exactAmount: string;
4993
+ displayAmount: string;
4994
+ };
4995
+ yt: {
4996
+ token: {
4997
+ symbol: string;
4998
+ tokenUid: {
4999
+ chainId: string;
5000
+ address: string;
5001
+ };
5002
+ name: string;
5003
+ isNative: boolean;
5004
+ decimals: number;
5005
+ isVetted: boolean;
5006
+ iconUri?: string | null | undefined;
5007
+ };
5008
+ exactAmount: string;
5009
+ displayAmount: string;
5010
+ claimableRewards: {
5011
+ token: {
5012
+ symbol: string;
5013
+ tokenUid: {
5014
+ chainId: string;
5015
+ address: string;
5016
+ };
5017
+ name: string;
5018
+ isNative: boolean;
5019
+ decimals: number;
5020
+ isVetted: boolean;
5021
+ iconUri?: string | null | undefined;
5022
+ };
5023
+ exactAmount: string;
5024
+ displayAmount: string;
5025
+ }[];
5026
+ };
5027
+ }, {
5028
+ marketIdentifier: {
5029
+ chainId: string;
5030
+ address: string;
5031
+ };
5032
+ pt: {
5033
+ token: {
5034
+ symbol: string;
5035
+ tokenUid: {
5036
+ chainId: string;
5037
+ address: string;
5038
+ };
5039
+ name: string;
5040
+ isNative: boolean;
5041
+ decimals: number;
5042
+ isVetted: boolean;
5043
+ iconUri?: string | null | undefined;
5044
+ };
5045
+ exactAmount: string;
5046
+ displayAmount: string;
5047
+ };
5048
+ yt: {
5049
+ token: {
5050
+ symbol: string;
5051
+ tokenUid: {
5052
+ chainId: string;
5053
+ address: string;
5054
+ };
5055
+ name: string;
5056
+ isNative: boolean;
5057
+ decimals: number;
5058
+ isVetted: boolean;
5059
+ iconUri?: string | null | undefined;
5060
+ };
5061
+ exactAmount: string;
5062
+ displayAmount: string;
5063
+ claimableRewards: {
5064
+ token: {
5065
+ symbol: string;
5066
+ tokenUid: {
5067
+ chainId: string;
5068
+ address: string;
5069
+ };
5070
+ name: string;
5071
+ isNative: boolean;
5072
+ decimals: number;
5073
+ isVetted: boolean;
5074
+ iconUri?: string | null | undefined;
5075
+ };
5076
+ exactAmount: string;
5077
+ displayAmount: string;
5078
+ }[];
5079
+ };
5080
+ }>;
5081
+ declare const TokenizedYieldUserPositionsRequestSchema: z.ZodObject<{
5082
+ walletAddress: z.ZodString;
5083
+ chainIds: z.ZodArray<z.ZodString, "many">;
5084
+ }, "strip", z.ZodTypeAny, {
5085
+ walletAddress: string;
5086
+ chainIds: string[];
5087
+ }, {
5088
+ walletAddress: string;
5089
+ chainIds: string[];
5090
+ }>;
5091
+ type TokenizedYieldUserPositionsRequest = z.infer<typeof TokenizedYieldUserPositionsRequestSchema>;
5092
+ declare const TokenizedYieldUserPositionsResponseSchema: z.ZodObject<{
5093
+ positions: z.ZodArray<z.ZodObject<{
5094
+ marketIdentifier: z.ZodObject<{
5095
+ chainId: z.ZodString;
5096
+ address: z.ZodString;
5097
+ }, "strip", z.ZodTypeAny, {
5098
+ chainId: string;
5099
+ address: string;
5100
+ }, {
5101
+ chainId: string;
5102
+ address: string;
5103
+ }>;
5104
+ pt: z.ZodObject<{
5105
+ token: z.ZodObject<{
5106
+ tokenUid: z.ZodObject<{
5107
+ chainId: z.ZodString;
5108
+ address: z.ZodString;
5109
+ }, "strip", z.ZodTypeAny, {
5110
+ chainId: string;
5111
+ address: string;
5112
+ }, {
5113
+ chainId: string;
5114
+ address: string;
5115
+ }>;
5116
+ name: z.ZodString;
5117
+ symbol: z.ZodString;
5118
+ isNative: z.ZodBoolean;
5119
+ decimals: z.ZodNumber;
5120
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5121
+ isVetted: z.ZodBoolean;
5122
+ }, "strip", z.ZodTypeAny, {
5123
+ symbol: string;
5124
+ tokenUid: {
5125
+ chainId: string;
5126
+ address: string;
5127
+ };
5128
+ name: string;
5129
+ isNative: boolean;
5130
+ decimals: number;
5131
+ isVetted: boolean;
5132
+ iconUri?: string | null | undefined;
5133
+ }, {
5134
+ symbol: string;
5135
+ tokenUid: {
5136
+ chainId: string;
5137
+ address: string;
5138
+ };
5139
+ name: string;
5140
+ isNative: boolean;
5141
+ decimals: number;
5142
+ isVetted: boolean;
5143
+ iconUri?: string | null | undefined;
5144
+ }>;
5145
+ exactAmount: z.ZodString;
5146
+ displayAmount: z.ZodString;
5147
+ }, "strip", z.ZodTypeAny, {
5148
+ token: {
5149
+ symbol: string;
5150
+ tokenUid: {
5151
+ chainId: string;
5152
+ address: string;
5153
+ };
5154
+ name: string;
5155
+ isNative: boolean;
5156
+ decimals: number;
5157
+ isVetted: boolean;
5158
+ iconUri?: string | null | undefined;
5159
+ };
5160
+ exactAmount: string;
5161
+ displayAmount: string;
5162
+ }, {
5163
+ token: {
5164
+ symbol: string;
5165
+ tokenUid: {
5166
+ chainId: string;
5167
+ address: string;
5168
+ };
5169
+ name: string;
5170
+ isNative: boolean;
5171
+ decimals: number;
5172
+ isVetted: boolean;
5173
+ iconUri?: string | null | undefined;
5174
+ };
5175
+ exactAmount: string;
5176
+ displayAmount: string;
5177
+ }>;
5178
+ yt: z.ZodObject<{
5179
+ token: z.ZodObject<{
5180
+ tokenUid: z.ZodObject<{
5181
+ chainId: z.ZodString;
5182
+ address: z.ZodString;
5183
+ }, "strip", z.ZodTypeAny, {
5184
+ chainId: string;
5185
+ address: string;
5186
+ }, {
5187
+ chainId: string;
5188
+ address: string;
5189
+ }>;
5190
+ name: z.ZodString;
5191
+ symbol: z.ZodString;
5192
+ isNative: z.ZodBoolean;
5193
+ decimals: z.ZodNumber;
5194
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5195
+ isVetted: z.ZodBoolean;
5196
+ }, "strip", z.ZodTypeAny, {
5197
+ symbol: string;
5198
+ tokenUid: {
5199
+ chainId: string;
5200
+ address: string;
5201
+ };
5202
+ name: string;
5203
+ isNative: boolean;
5204
+ decimals: number;
5205
+ isVetted: boolean;
5206
+ iconUri?: string | null | undefined;
5207
+ }, {
5208
+ symbol: string;
5209
+ tokenUid: {
5210
+ chainId: string;
5211
+ address: string;
5212
+ };
5213
+ name: string;
5214
+ isNative: boolean;
5215
+ decimals: number;
5216
+ isVetted: boolean;
5217
+ iconUri?: string | null | undefined;
5218
+ }>;
5219
+ exactAmount: z.ZodString;
5220
+ displayAmount: z.ZodString;
5221
+ claimableRewards: z.ZodArray<z.ZodObject<{
5222
+ token: z.ZodObject<{
5223
+ tokenUid: z.ZodObject<{
5224
+ chainId: z.ZodString;
5225
+ address: z.ZodString;
5226
+ }, "strip", z.ZodTypeAny, {
5227
+ chainId: string;
5228
+ address: string;
5229
+ }, {
5230
+ chainId: string;
5231
+ address: string;
5232
+ }>;
5233
+ name: z.ZodString;
5234
+ symbol: z.ZodString;
5235
+ isNative: z.ZodBoolean;
5236
+ decimals: z.ZodNumber;
5237
+ iconUri: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5238
+ isVetted: z.ZodBoolean;
5239
+ }, "strip", z.ZodTypeAny, {
5240
+ symbol: string;
5241
+ tokenUid: {
5242
+ chainId: string;
5243
+ address: string;
5244
+ };
5245
+ name: string;
5246
+ isNative: boolean;
5247
+ decimals: number;
5248
+ isVetted: boolean;
5249
+ iconUri?: string | null | undefined;
5250
+ }, {
5251
+ symbol: string;
5252
+ tokenUid: {
5253
+ chainId: string;
5254
+ address: string;
5255
+ };
5256
+ name: string;
5257
+ isNative: boolean;
5258
+ decimals: number;
5259
+ isVetted: boolean;
5260
+ iconUri?: string | null | undefined;
5261
+ }>;
5262
+ exactAmount: z.ZodString;
5263
+ displayAmount: z.ZodString;
5264
+ }, "strip", z.ZodTypeAny, {
5265
+ token: {
5266
+ symbol: string;
5267
+ tokenUid: {
5268
+ chainId: string;
5269
+ address: string;
5270
+ };
5271
+ name: string;
5272
+ isNative: boolean;
5273
+ decimals: number;
5274
+ isVetted: boolean;
5275
+ iconUri?: string | null | undefined;
5276
+ };
5277
+ exactAmount: string;
5278
+ displayAmount: string;
5279
+ }, {
5280
+ token: {
5281
+ symbol: string;
5282
+ tokenUid: {
5283
+ chainId: string;
5284
+ address: string;
5285
+ };
5286
+ name: string;
5287
+ isNative: boolean;
5288
+ decimals: number;
5289
+ isVetted: boolean;
5290
+ iconUri?: string | null | undefined;
5291
+ };
5292
+ exactAmount: string;
5293
+ displayAmount: string;
5294
+ }>, "many">;
5295
+ }, "strip", z.ZodTypeAny, {
5296
+ token: {
5297
+ symbol: string;
5298
+ tokenUid: {
5299
+ chainId: string;
5300
+ address: string;
5301
+ };
5302
+ name: string;
5303
+ isNative: boolean;
5304
+ decimals: number;
5305
+ isVetted: boolean;
5306
+ iconUri?: string | null | undefined;
5307
+ };
5308
+ exactAmount: string;
5309
+ displayAmount: string;
5310
+ claimableRewards: {
5311
+ token: {
5312
+ symbol: string;
5313
+ tokenUid: {
5314
+ chainId: string;
5315
+ address: string;
5316
+ };
5317
+ name: string;
5318
+ isNative: boolean;
5319
+ decimals: number;
5320
+ isVetted: boolean;
5321
+ iconUri?: string | null | undefined;
5322
+ };
5323
+ exactAmount: string;
5324
+ displayAmount: string;
5325
+ }[];
5326
+ }, {
5327
+ token: {
5328
+ symbol: string;
5329
+ tokenUid: {
5330
+ chainId: string;
5331
+ address: string;
5332
+ };
5333
+ name: string;
5334
+ isNative: boolean;
5335
+ decimals: number;
5336
+ isVetted: boolean;
5337
+ iconUri?: string | null | undefined;
5338
+ };
5339
+ exactAmount: string;
5340
+ displayAmount: string;
5341
+ claimableRewards: {
5342
+ token: {
5343
+ symbol: string;
5344
+ tokenUid: {
5345
+ chainId: string;
5346
+ address: string;
5347
+ };
5348
+ name: string;
5349
+ isNative: boolean;
5350
+ decimals: number;
5351
+ isVetted: boolean;
5352
+ iconUri?: string | null | undefined;
5353
+ };
5354
+ exactAmount: string;
5355
+ displayAmount: string;
5356
+ }[];
5357
+ }>;
5358
+ }, "strip", z.ZodTypeAny, {
5359
+ marketIdentifier: {
5360
+ chainId: string;
5361
+ address: string;
5362
+ };
5363
+ pt: {
5364
+ token: {
5365
+ symbol: string;
5366
+ tokenUid: {
5367
+ chainId: string;
5368
+ address: string;
5369
+ };
5370
+ name: string;
5371
+ isNative: boolean;
5372
+ decimals: number;
5373
+ isVetted: boolean;
5374
+ iconUri?: string | null | undefined;
5375
+ };
5376
+ exactAmount: string;
5377
+ displayAmount: string;
5378
+ };
5379
+ yt: {
5380
+ token: {
5381
+ symbol: string;
5382
+ tokenUid: {
5383
+ chainId: string;
5384
+ address: string;
5385
+ };
5386
+ name: string;
5387
+ isNative: boolean;
5388
+ decimals: number;
5389
+ isVetted: boolean;
5390
+ iconUri?: string | null | undefined;
5391
+ };
5392
+ exactAmount: string;
5393
+ displayAmount: string;
5394
+ claimableRewards: {
5395
+ token: {
5396
+ symbol: string;
5397
+ tokenUid: {
5398
+ chainId: string;
5399
+ address: string;
5400
+ };
5401
+ name: string;
5402
+ isNative: boolean;
5403
+ decimals: number;
5404
+ isVetted: boolean;
5405
+ iconUri?: string | null | undefined;
5406
+ };
5407
+ exactAmount: string;
5408
+ displayAmount: string;
5409
+ }[];
5410
+ };
5411
+ }, {
5412
+ marketIdentifier: {
5413
+ chainId: string;
5414
+ address: string;
5415
+ };
5416
+ pt: {
5417
+ token: {
5418
+ symbol: string;
5419
+ tokenUid: {
5420
+ chainId: string;
5421
+ address: string;
5422
+ };
5423
+ name: string;
5424
+ isNative: boolean;
5425
+ decimals: number;
5426
+ isVetted: boolean;
5427
+ iconUri?: string | null | undefined;
5428
+ };
5429
+ exactAmount: string;
5430
+ displayAmount: string;
5431
+ };
5432
+ yt: {
5433
+ token: {
5434
+ symbol: string;
5435
+ tokenUid: {
5436
+ chainId: string;
5437
+ address: string;
5438
+ };
5439
+ name: string;
5440
+ isNative: boolean;
5441
+ decimals: number;
5442
+ isVetted: boolean;
5443
+ iconUri?: string | null | undefined;
5444
+ };
5445
+ exactAmount: string;
5446
+ displayAmount: string;
5447
+ claimableRewards: {
5448
+ token: {
5449
+ symbol: string;
5450
+ tokenUid: {
5451
+ chainId: string;
5452
+ address: string;
5453
+ };
5454
+ name: string;
5455
+ isNative: boolean;
5456
+ decimals: number;
5457
+ isVetted: boolean;
5458
+ iconUri?: string | null | undefined;
5459
+ };
5460
+ exactAmount: string;
5461
+ displayAmount: string;
5462
+ }[];
5463
+ };
5464
+ }>, "many">;
5465
+ }, "strip", z.ZodTypeAny, {
5466
+ positions: {
5467
+ marketIdentifier: {
5468
+ chainId: string;
5469
+ address: string;
5470
+ };
5471
+ pt: {
5472
+ token: {
5473
+ symbol: string;
5474
+ tokenUid: {
5475
+ chainId: string;
5476
+ address: string;
5477
+ };
5478
+ name: string;
5479
+ isNative: boolean;
5480
+ decimals: number;
5481
+ isVetted: boolean;
5482
+ iconUri?: string | null | undefined;
5483
+ };
5484
+ exactAmount: string;
5485
+ displayAmount: string;
5486
+ };
5487
+ yt: {
5488
+ token: {
5489
+ symbol: string;
5490
+ tokenUid: {
5491
+ chainId: string;
5492
+ address: string;
5493
+ };
5494
+ name: string;
5495
+ isNative: boolean;
5496
+ decimals: number;
5497
+ isVetted: boolean;
5498
+ iconUri?: string | null | undefined;
5499
+ };
5500
+ exactAmount: string;
5501
+ displayAmount: string;
5502
+ claimableRewards: {
5503
+ token: {
5504
+ symbol: string;
5505
+ tokenUid: {
5506
+ chainId: string;
5507
+ address: string;
5508
+ };
5509
+ name: string;
5510
+ isNative: boolean;
5511
+ decimals: number;
5512
+ isVetted: boolean;
5513
+ iconUri?: string | null | undefined;
5514
+ };
5515
+ exactAmount: string;
5516
+ displayAmount: string;
5517
+ }[];
5518
+ };
5519
+ }[];
5520
+ }, {
5521
+ positions: {
5522
+ marketIdentifier: {
5523
+ chainId: string;
5524
+ address: string;
5525
+ };
5526
+ pt: {
5527
+ token: {
5528
+ symbol: string;
5529
+ tokenUid: {
5530
+ chainId: string;
5531
+ address: string;
5532
+ };
5533
+ name: string;
5534
+ isNative: boolean;
5535
+ decimals: number;
5536
+ isVetted: boolean;
5537
+ iconUri?: string | null | undefined;
5538
+ };
5539
+ exactAmount: string;
5540
+ displayAmount: string;
5541
+ };
5542
+ yt: {
5543
+ token: {
5544
+ symbol: string;
5545
+ tokenUid: {
5546
+ chainId: string;
5547
+ address: string;
5548
+ };
5549
+ name: string;
5550
+ isNative: boolean;
5551
+ decimals: number;
5552
+ isVetted: boolean;
5553
+ iconUri?: string | null | undefined;
5554
+ };
5555
+ exactAmount: string;
5556
+ displayAmount: string;
5557
+ claimableRewards: {
5558
+ token: {
5559
+ symbol: string;
5560
+ tokenUid: {
5561
+ chainId: string;
5562
+ address: string;
5563
+ };
5564
+ name: string;
5565
+ isNative: boolean;
5566
+ decimals: number;
5567
+ isVetted: boolean;
5568
+ iconUri?: string | null | undefined;
5569
+ };
5570
+ exactAmount: string;
5571
+ displayAmount: string;
5572
+ }[];
5573
+ };
5574
+ }[];
5575
+ }>;
5576
+ type TokenizedYieldUserPositionsResponse = z.infer<typeof TokenizedYieldUserPositionsResponseSchema>;
5577
+ //#endregion
5578
+ //#region src/core/actions/tokenizedYield.d.ts
5579
+ type TokenizedYieldMintPtAndYtCallback = (request: MintPtAndYtRequest) => Promise<MintPtAndYtResponse>;
5580
+ type TokenizedYieldBuyPtCallback = (request: BuyPtRequest) => Promise<BuyPtResponse>;
5581
+ type TokenizedYieldBuyYtCallback = (request: BuyYtRequest) => Promise<BuyYtResponse>;
5582
+ type TokenizedYieldSellPtCallback = (request: SellPtRequest) => Promise<SellPtResponse>;
5583
+ type TokenizedYieldSellYtCallback = (request: SellYtRequest) => Promise<SellYtResponse>;
5584
+ type TokenizedYieldClaimRewardsCallback = (request: ClaimRewardsRequest) => Promise<ClaimRewardsResponse>;
5585
+ type TokenizedYieldRedeemPtCallback = (request: RedeemPtRequest) => Promise<RedeemPtResponse>;
5586
+ type TokenizedYieldActions = 'tokenizedYield-mintPtAndYt' | 'tokenizedYield-buyPt' | 'tokenizedYield-buyYt' | 'tokenizedYield-sellPt' | 'tokenizedYield-sellYt' | 'tokenizedYield-claimRewards' | 'tokenizedYield-redeemPt';
5587
+ //#endregion
5588
+ //#region src/core/actions/types.d.ts
5589
+ /**
5590
+ * The possible actions an ember plugin can perform.
5591
+ */
5592
+ type Action = LendingActions | LiquidityActions | SwapActions | PerpetualsActions | TokenizedYieldActions;
5593
+ /**
5594
+ * Type mapping for action callbacks.
5595
+ */
5596
+ type CallbacksRecord = {
5597
+ swap: SwapActionCallback;
5598
+ 'lending-borrow': LendingBorrowCallback;
5599
+ 'lending-repay': LendingRepayTokensCallback;
5600
+ 'lending-supply': LendingSupplyCallback;
5601
+ 'lending-withdraw': LendingWithdrawCallback;
5602
+ 'liquidity-supply': LiquiditySupplyCallback;
5603
+ 'liquidity-withdraw': LiquidityWithdrawCallback;
5604
+ 'perpetuals-short': PerpetualsCreateShortPositionCallback;
5605
+ 'perpetuals-long': PerpetualsCreateLongPositionCallback;
5606
+ 'perpetuals-close': PerpetualsCloseOrdersCallback;
5607
+ 'tokenizedYield-mintPtAndYt': TokenizedYieldMintPtAndYtCallback;
5608
+ 'tokenizedYield-buyPt': TokenizedYieldBuyPtCallback;
5609
+ 'tokenizedYield-buyYt': TokenizedYieldBuyYtCallback;
5610
+ 'tokenizedYield-sellPt': TokenizedYieldSellPtCallback;
5611
+ 'tokenizedYield-sellYt': TokenizedYieldSellYtCallback;
5612
+ 'tokenizedYield-claimRewards': TokenizedYieldClaimRewardsCallback;
5613
+ 'tokenizedYield-redeemPt': TokenizedYieldRedeemPtCallback;
5614
+ };
5615
+ /**
5616
+ * Type mapping for action callbacks.
5617
+ */
5618
+ type ActionCallback<T extends keyof CallbacksRecord> = CallbacksRecord[T];
5619
+ /**
5620
+ * Represents a grouping of tokens associated with a specific chain.
5621
+ */
5622
+ interface TokenSet {
5623
+ /**
5624
+ * The chain id to which the tokens belong.
5625
+ */
5626
+ chainId: string;
5627
+ /**
5628
+ * The set of tokens addresses associated with the chain.
5629
+ */
5630
+ tokens: string[];
5631
+ }
5632
+ /**
5633
+ * Definition of an action that can be performed by the Ember plugin.
5634
+ */
5635
+ interface ActionDefinition<T extends Action> {
5636
+ /**
5637
+ * The name for the action, should be unique across all actions in the plugin.
5638
+ */
5639
+ name: string;
5640
+ /**
5641
+ * The action type
5642
+ */
5643
+ type: T;
5644
+ /**
5645
+ * The callback function to execute when the action is triggered.
5646
+ */
5647
+ callback: ActionCallback<T>;
5648
+ /**
5649
+ * This function returns the possible input tokens for the action in all chains.
5650
+ * @returns The list of token sets that can be used as input for the action.
5651
+ */
5652
+ inputTokens: () => Promise<TokenSet[]>;
5653
+ /**
5654
+ * This function returns the possible output tokens for the action in all chains.
5655
+ * If not provided, all input input token sets will be considered possible output sets.
5656
+ * @returns The list of tokens that can be used as output for the action.
5657
+ */
5658
+ outputTokens?: () => Promise<TokenSet[]>;
5659
+ }
5660
+ //#endregion
5661
+ //#region src/core/queries/lending.d.ts
5662
+ /**
5663
+ * Get lending positions for a wallet.
5664
+ */
5665
+ type LendingGetPositions = (request: GetWalletLendingPositionsRequest) => Promise<GetWalletLendingPositionsResponse>;
5666
+ /**
5667
+ * All the queries related to lending.
5668
+ */
5669
+ type LendingQueries = {
5670
+ getPositions: LendingGetPositions;
5671
+ };
5672
+ //#endregion
5673
+ //#region src/core/queries/liquidity.d.ts
5674
+ /**
5675
+ * Get liquidity positions for a wallet.
5676
+ */
5677
+ type LiquidityGetWalletPositions = (request: GetWalletLiquidityPositionsRequest) => Promise<GetWalletLiquidityPositionsResponse>;
5678
+ /**
5679
+ * Get all liquidity pools.
5680
+ */
5681
+ type LiquidityGetPools = () => Promise<GetLiquidityPoolsResponse>;
5682
+ /**
5683
+ * All the queries related to liquidity.
5684
+ */
5685
+ type LiquidityQueries = {
5686
+ getWalletPositions: LiquidityGetWalletPositions;
5687
+ getPools: LiquidityGetPools;
5688
+ };
5689
+ //#endregion
5690
+ //#region src/core/queries/perpetuals.d.ts
5691
+ type PerpetualsGetMarkets = (request: GetPerpetualsMarketsRequest) => Promise<GetPerpetualsMarketsResponse>;
5692
+ type PerpetualsGetPositions = (request: GetPerpetualsMarketsPositionsRequest) => Promise<GetPerpetualsMarketsPositionsResponse>;
5693
+ type PerpetualsGetOrders = (request: GetPerpetualsMarketsOrdersRequest) => Promise<GetPerpetualsMarketsOrdersResponse>;
5694
+ type PerpetualsQueries = {
5695
+ getMarkets: PerpetualsGetMarkets;
5696
+ getPositions: PerpetualsGetPositions;
5697
+ getOrders: PerpetualsGetOrders;
5698
+ };
5699
+ //#endregion
5700
+ //#region src/core/queries/tokenizedYield.d.ts
5701
+ type TokenizedYieldGetMarkets = (request: MarketTokenizedYieldRequest) => Promise<z.infer<typeof MarketTokenizedYieldResponseSchema>>;
5702
+ type TokenizedYieldGetUserPositions = (request: TokenizedYieldUserPositionsRequest) => Promise<z.infer<typeof TokenizedYieldUserPositionsResponseSchema>>;
5703
+ type TokenizedYieldQueries = {
5704
+ getTokenizedYieldMarkets: TokenizedYieldGetMarkets;
5705
+ getUserPositions: TokenizedYieldGetUserPositions;
3199
5706
  };
3200
5707
  //#endregion
3201
5708
  //#region src/core/pluginType.d.ts
3202
5709
  /**
3203
5710
  * The type of actions and queries the plugin supports.
3204
5711
  */
3205
- type PluginType = 'lending' | 'liquidity' | 'swap' | 'perpetuals';
5712
+ type PluginType = 'lending' | 'liquidity' | 'swap' | 'perpetuals' | 'tokenizedYield';
3206
5713
  /**
3207
5714
  * The possible actions an ember plugin can perform.
3208
5715
  */
@@ -3211,6 +5718,7 @@ type AvailableActions = {
3211
5718
  liquidity: LiquidityActions;
3212
5719
  swap: SwapActions;
3213
5720
  perpetuals: PerpetualsActions;
5721
+ tokenizedYield: TokenizedYieldActions;
3214
5722
  };
3215
5723
  /**
3216
5724
  * The possible queries an ember plugin can perform.
@@ -3220,6 +5728,7 @@ type AvailableQueries = {
3220
5728
  liquidity: LiquidityQueries;
3221
5729
  swap: Record<string, never> | undefined;
3222
5730
  perpetuals: PerpetualsQueries;
5731
+ tokenizedYield: TokenizedYieldQueries;
3223
5732
  };
3224
5733
  //#endregion
3225
5734
  //#region src/core/schemas/core.d.ts
@@ -3540,5 +6049,5 @@ declare class PublicEmberPluginRegistry {
3540
6049
  */
3541
6050
  declare function initializePublicRegistry(chainConfigs: ChainConfig[]): PublicEmberPluginRegistry;
3542
6051
  //#endregion
3543
- export { type Action, type ActionDefinition, AvailableActions, AvailableQueries, BorrowTokensRequest, BorrowTokensRequestSchema, BorrowTokensResponse, BorrowTokensResponseSchema, Chain, type ChainConfig, ChainSchema, ChainType, ChainTypeSchema, ClosePerpetualsOrdersRequest, ClosePerpetualsOrdersRequestSchema, ClosePerpetualsOrdersResponse, ClosePerpetualsOrdersResponseSchema, CreatePerpetualsPositionRequest, CreatePerpetualsPositionRequestSchema, CreatePerpetualsPositionResponse, CreatePerpetualsPositionResponseSchema, DecreasePositionSwapType, DecreasePositionSwapTypeSchema, EmberPlugin, FeeBreakdown, FeeBreakdownSchema, GetLiquidityPoolsResponse, GetLiquidityPoolsResponseSchema, GetPerpetualsMarketsOrdersRequest, GetPerpetualsMarketsOrdersRequestSchema, GetPerpetualsMarketsOrdersResponse, GetPerpetualsMarketsOrdersResponseSchema, GetPerpetualsMarketsPositionsRequest, GetPerpetualsMarketsPositionsRequestSchema, GetPerpetualsMarketsPositionsResponse, GetPerpetualsMarketsPositionsResponseSchema, GetPerpetualsMarketsRequest, GetPerpetualsMarketsRequestSchema, GetPerpetualsMarketsResponse, GetPerpetualsMarketsResponseSchema, GetWalletLendingPositionsRequest, GetWalletLendingPositionsRequestSchema, GetWalletLendingPositionsResponse, GetWalletLendingPositionsResponseSchema, GetWalletLiquidityPositionsRequest, GetWalletLiquidityPositionsRequestSchema, GetWalletLiquidityPositionsResponse, GetWalletLiquidityPositionsResponseSchema, LendTokenDetail, LendTokenDetailSchema, type LendingActions, LendingGetPositions, LendingQueries, type LiquidityActions, LiquidityGetPools, LiquidityGetWalletPositions, LiquidityPayTokens, LiquidityPayTokensSchema, LiquidityPool, LiquidityPoolSchema, LiquidityPoolTokens, LiquidityPosition, LiquidityPositionRange, LiquidityPositionRangeSchema, LiquidityPositionSchema, LiquidityProvisionRange, LiquidityProvisionRangeSchema, LiquidityQueries, LiquiditySuppliedToken, LiquiditySuppliedTokenSchema, OrderSchema, OrderType, OrderTypeSchema, OrdersDataSchema, PerpetualMarket, PerpetualMarketSchema, type PerpetualsActions, PerpetualsGetMarkets, PerpetualsGetOrders, PerpetualsGetPositions, PerpetualsOrder, PerpetualsPosition, PerpetualsQueries, PluginType, PositionSchema, PositionSide, PositionSideSchema, PositionsDataSchema, ProviderTrackingInfo, ProviderTrackingInfoSchema, ProviderTrackingStatus, ProviderTrackingStatusSchema, PublicEmberPluginRegistry, RepayTokensRequest, RepayTokensRequestSchema, RepayTokensResponse, RepayTokensResponseSchema, SupplyLiquidityRequest, SupplyLiquidityRequestSchema, SupplyLiquidityResponse, SupplyLiquidityResponseSchema, SupplyTokensRequest, SupplyTokensRequestSchema, SupplyTokensResponse, SupplyTokensResponseSchema, type SwapActions, SwapEstimation, SwapEstimationSchema, SwapTokensRequest, SwapTokensRequestSchema, SwapTokensResponse, SwapTokensResponseSchema, Token, TokenIdentifier, TokenIdentifierSchema, TokenSchema, type TokenSet, TransactionPlan, TransactionPlanError, TransactionPlanErrorSchema, TransactionPlanSchema, TransactionType, TransactionTypeSchema, TransactionTypes, WithdrawLiquidityRequest, WithdrawLiquidityRequestSchema, WithdrawLiquidityResponse, WithdrawLiquidityResponseSchema, WithdrawTokensRequest, WithdrawTokensRequestSchema, WithdrawTokensResponse, WithdrawTokensResponseSchema, initializePublicRegistry };
6052
+ export { type Action, type ActionDefinition, AvailableActions, AvailableQueries, BorrowTokensRequest, BorrowTokensRequestSchema, BorrowTokensResponse, BorrowTokensResponseSchema, BuyPtRequest, BuyPtRequestSchema, BuyPtResponse, BuyPtResponseSchema, BuyYtRequest, BuyYtRequestSchema, BuyYtResponse, BuyYtResponseSchema, Chain, type ChainConfig, ChainSchema, ChainType, ChainTypeSchema, ClaimRewardsRequest, ClaimRewardsRequestSchema, ClaimRewardsResponse, ClaimRewardsResponseSchema, ClosePerpetualsOrdersRequest, ClosePerpetualsOrdersRequestSchema, ClosePerpetualsOrdersResponse, ClosePerpetualsOrdersResponseSchema, CreatePerpetualsPositionRequest, CreatePerpetualsPositionRequestSchema, CreatePerpetualsPositionResponse, CreatePerpetualsPositionResponseSchema, DecreasePositionSwapType, DecreasePositionSwapTypeSchema, EmberPlugin, FeeBreakdown, FeeBreakdownSchema, GetLiquidityPoolsResponse, GetLiquidityPoolsResponseSchema, GetPerpetualsMarketsOrdersRequest, GetPerpetualsMarketsOrdersRequestSchema, GetPerpetualsMarketsOrdersResponse, GetPerpetualsMarketsOrdersResponseSchema, GetPerpetualsMarketsPositionsRequest, GetPerpetualsMarketsPositionsRequestSchema, GetPerpetualsMarketsPositionsResponse, GetPerpetualsMarketsPositionsResponseSchema, GetPerpetualsMarketsRequest, GetPerpetualsMarketsRequestSchema, GetPerpetualsMarketsResponse, GetPerpetualsMarketsResponseSchema, GetWalletLendingPositionsRequest, GetWalletLendingPositionsRequestSchema, GetWalletLendingPositionsResponse, GetWalletLendingPositionsResponseSchema, GetWalletLiquidityPositionsRequest, GetWalletLiquidityPositionsRequestSchema, GetWalletLiquidityPositionsResponse, GetWalletLiquidityPositionsResponseSchema, LendTokenDetail, LendTokenDetailSchema, type LendingActions, LendingGetPositions, LendingQueries, type LiquidityActions, LiquidityGetPools, LiquidityGetWalletPositions, LiquidityPayTokens, LiquidityPayTokensSchema, LiquidityPool, LiquidityPoolSchema, LiquidityPoolTokens, LiquidityPosition, LiquidityPositionRange, LiquidityPositionRangeSchema, LiquidityPositionSchema, LiquidityProvisionRange, LiquidityProvisionRangeSchema, LiquidityQueries, LiquiditySuppliedToken, LiquiditySuppliedTokenSchema, MarketTokenizedYieldRequest, MarketTokenizedYieldRequestSchema, MarketTokenizedYieldResponseSchema, MintPtAndYtRequest, MintPtAndYtRequestSchema, MintPtAndYtResponse, MintPtAndYtResponseSchema, OrderSchema, OrderType, OrderTypeSchema, OrdersDataSchema, PerpetualMarket, PerpetualMarketSchema, type PerpetualsActions, PerpetualsGetMarkets, PerpetualsGetOrders, PerpetualsGetPositions, PerpetualsOrder, PerpetualsPosition, PerpetualsQueries, PluginType, PositionSchema, PositionSide, PositionSideSchema, PositionsDataSchema, ProviderTrackingInfo, ProviderTrackingInfoSchema, ProviderTrackingStatus, ProviderTrackingStatusSchema, PublicEmberPluginRegistry, RedeemPtRequest, RedeemPtRequestSchema, RedeemPtResponse, RedeemPtResponseSchema, RepayTokensRequest, RepayTokensRequestSchema, RepayTokensResponse, RepayTokensResponseSchema, SellPtRequest, SellPtRequestSchema, SellPtResponse, SellPtResponseSchema, SellYtRequest, SellYtRequestSchema, SellYtResponse, SellYtResponseSchema, SupplyLiquidityRequest, SupplyLiquidityRequestSchema, SupplyLiquidityResponse, SupplyLiquidityResponseSchema, SupplyTokensRequest, SupplyTokensRequestSchema, SupplyTokensResponse, SupplyTokensResponseSchema, type SwapActions, SwapEstimation, SwapEstimationSchema, SwapTokensRequest, SwapTokensRequestSchema, SwapTokensResponse, SwapTokensResponseSchema, Token, TokenIdentifier, TokenIdentifierSchema, TokenSchema, type TokenSet, type TokenizedYieldActions, TokenizedYieldGetMarkets, TokenizedYieldGetUserPositions, TokenizedYieldMarketSchema, TokenizedYieldQueries, TokenizedYieldUserPositionSchema, TokenizedYieldUserPositionsRequest, TokenizedYieldUserPositionsRequestSchema, TokenizedYieldUserPositionsResponse, TokenizedYieldUserPositionsResponseSchema, TransactionPlan, TransactionPlanError, TransactionPlanErrorSchema, TransactionPlanSchema, TransactionType, TransactionTypeSchema, TransactionTypes, WithdrawLiquidityRequest, WithdrawLiquidityRequestSchema, WithdrawLiquidityResponse, WithdrawLiquidityResponseSchema, WithdrawTokensRequest, WithdrawTokensRequestSchema, WithdrawTokensResponse, WithdrawTokensResponseSchema, initializePublicRegistry };
3544
6053
  //# sourceMappingURL=index.d.cts.map