@privy-io/api-types 0.8.0 → 0.10.0
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/CHANGELOG.md +57 -0
- package/client.d.mts +35 -32
- package/client.d.mts.map +1 -1
- package/client.d.ts +35 -32
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +22 -8
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/internal/utils/env.js +2 -2
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs +2 -2
- package/internal/utils/env.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +177 -129
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +177 -129
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +650 -648
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +650 -648
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +84 -84
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +84 -84
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +270 -266
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +270 -266
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +62 -19
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +62 -19
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +360 -231
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +360 -231
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +8 -11
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +8 -11
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +56 -66
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +56 -66
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +457 -448
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +457 -448
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +450 -41
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +450 -41
- package/resources/wallet-actions.d.ts.map +1 -1
- package/resources/wallets/balance.d.mts +2 -1
- package/resources/wallets/balance.d.mts.map +1 -1
- package/resources/wallets/balance.d.ts +2 -1
- package/resources/wallets/balance.d.ts.map +1 -1
- package/resources/wallets/balance.js.map +1 -1
- package/resources/wallets/balance.mjs.map +1 -1
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +16 -31
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +16 -31
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.js.map +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/transactions.mjs.map +1 -1
- package/resources/wallets/wallets.d.mts +1475 -1172
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1475 -1172
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +10 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +10 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +1345 -582
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +1345 -582
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +661 -455
- package/src/internal/types.ts +6 -8
- package/src/internal/utils/env.ts +2 -2
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +232 -166
- package/src/resources/client-auth.ts +890 -890
- package/src/resources/embedded-wallets.ts +123 -123
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +521 -431
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +116 -19
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +495 -339
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +9 -14
- package/src/resources/transactions.ts +88 -115
- package/src/resources/users.ts +664 -653
- package/src/resources/wallet-actions.ts +585 -56
- package/src/resources/wallets/balance.ts +2 -1
- package/src/resources/wallets/index.ts +158 -138
- package/src/resources/wallets/transactions.ts +20 -83
- package/src/resources/wallets/wallets.ts +1997 -1563
- package/src/resources/webhooks.ts +1652 -700
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/yield.ts
CHANGED
|
@@ -5,126 +5,111 @@ import { APIResource } from '../core/resource';
|
|
|
5
5
|
export class Yield extends APIResource {}
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
*/
|
|
10
|
-
export type EvmCaip2ChainID = string;
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Supported yield/lending protocol providers.
|
|
14
|
-
*/
|
|
15
|
-
export type EthereumYieldProvider = 'morpho' | 'aave';
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Type of yield sweep.
|
|
19
|
-
*/
|
|
20
|
-
export type EthereumYieldSweepType = 'deposit' | 'withdraw';
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Status of a yield sweep.
|
|
8
|
+
* Input for fetching vault details.
|
|
24
9
|
*/
|
|
25
|
-
export
|
|
10
|
+
export interface EthereumVaultDetailsInput {
|
|
11
|
+
/**
|
|
12
|
+
* The Privy vault ID.
|
|
13
|
+
*/
|
|
14
|
+
vault_id: string;
|
|
15
|
+
}
|
|
26
16
|
|
|
27
17
|
/**
|
|
28
|
-
*
|
|
18
|
+
* Detailed vault information including current APY and liquidity.
|
|
29
19
|
*/
|
|
30
|
-
export interface
|
|
20
|
+
export interface EthereumVaultDetailsResponse {
|
|
31
21
|
/**
|
|
32
|
-
*
|
|
33
|
-
* for ETH, 6 decimals for USDC). Must be a non-negative integer string.
|
|
22
|
+
* Vault identifier.
|
|
34
23
|
*/
|
|
35
|
-
|
|
24
|
+
id: string;
|
|
36
25
|
|
|
37
26
|
/**
|
|
38
|
-
*
|
|
27
|
+
* Annual percentage yield earned by the app from fee wrapper fees, in basis
|
|
28
|
+
* points. Null when APY data is unavailable.
|
|
39
29
|
*/
|
|
40
|
-
|
|
41
|
-
}
|
|
30
|
+
app_apy: number | null;
|
|
42
31
|
|
|
43
|
-
/**
|
|
44
|
-
* Input for withdrawing assets from an ERC-4626 vault.
|
|
45
|
-
*/
|
|
46
|
-
export interface EthereumYieldWithdrawInput {
|
|
47
32
|
/**
|
|
48
|
-
*
|
|
49
|
-
* for ETH, 6 decimals for USDC). Must be a non-negative integer string.
|
|
33
|
+
* Underlying asset token address.
|
|
50
34
|
*/
|
|
51
|
-
|
|
35
|
+
asset_address: string;
|
|
52
36
|
|
|
53
37
|
/**
|
|
54
|
-
*
|
|
38
|
+
* Assets available for instant withdrawal in USD.
|
|
55
39
|
*/
|
|
56
|
-
|
|
57
|
-
}
|
|
40
|
+
available_liquidity_usd: number | null;
|
|
58
41
|
|
|
59
|
-
/**
|
|
60
|
-
* A yield sweep record representing a deposit or withdrawal.
|
|
61
|
-
*/
|
|
62
|
-
export interface EthereumYieldSweepResponse {
|
|
63
42
|
/**
|
|
64
|
-
*
|
|
43
|
+
* Chain identifier (e.g., eip155:8453).
|
|
65
44
|
*/
|
|
66
|
-
|
|
45
|
+
caip2: string;
|
|
67
46
|
|
|
68
47
|
/**
|
|
69
|
-
*
|
|
70
|
-
* on-chain.
|
|
48
|
+
* Human-readable vault name from the yield provider.
|
|
71
49
|
*/
|
|
72
|
-
|
|
50
|
+
name: string;
|
|
73
51
|
|
|
74
52
|
/**
|
|
75
|
-
*
|
|
53
|
+
* Supported yield/lending protocol providers.
|
|
76
54
|
*/
|
|
77
|
-
|
|
55
|
+
provider: EthereumYieldProvider;
|
|
78
56
|
|
|
79
57
|
/**
|
|
80
|
-
*
|
|
58
|
+
* Total value locked in USD.
|
|
81
59
|
*/
|
|
82
|
-
|
|
60
|
+
tvl_usd: number | null;
|
|
83
61
|
|
|
84
62
|
/**
|
|
85
|
-
*
|
|
63
|
+
* Current annual percentage yield in basis points (e.g., 500 for 5%). 1 basis
|
|
64
|
+
* point = 0.01%.
|
|
86
65
|
*/
|
|
87
|
-
|
|
66
|
+
user_apy: number | null;
|
|
88
67
|
|
|
89
68
|
/**
|
|
90
|
-
*
|
|
69
|
+
* On-chain vault contract address.
|
|
91
70
|
*/
|
|
92
|
-
|
|
71
|
+
vault_address: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* A user's position in a DeFi vault.
|
|
76
|
+
*/
|
|
77
|
+
export interface EthereumVaultPosition {
|
|
78
|
+
asset: EthereumVaultPosition.Asset;
|
|
93
79
|
|
|
94
80
|
/**
|
|
95
|
-
*
|
|
81
|
+
* Current asset value in the vault (realtime from ERC4626), in smallest unit.
|
|
96
82
|
*/
|
|
97
|
-
|
|
83
|
+
assets_in_vault: string;
|
|
98
84
|
|
|
99
85
|
/**
|
|
100
|
-
*
|
|
86
|
+
* Current vault shares held (realtime from ERC4626).
|
|
101
87
|
*/
|
|
102
|
-
|
|
88
|
+
shares_in_vault: string;
|
|
103
89
|
|
|
104
90
|
/**
|
|
105
|
-
*
|
|
91
|
+
* Total amount deposited into the vault, in smallest unit.
|
|
106
92
|
*/
|
|
107
|
-
|
|
108
|
-
}
|
|
93
|
+
total_deposited: string;
|
|
109
94
|
|
|
110
|
-
/**
|
|
111
|
-
* Input for fetching vault details.
|
|
112
|
-
*/
|
|
113
|
-
export interface EthereumVaultDetailsInput {
|
|
114
95
|
/**
|
|
115
|
-
*
|
|
96
|
+
* Total amount withdrawn from the vault, in smallest unit.
|
|
116
97
|
*/
|
|
117
|
-
|
|
98
|
+
total_withdrawn: string;
|
|
118
99
|
}
|
|
119
100
|
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
101
|
+
export namespace EthereumVaultPosition {
|
|
102
|
+
export interface Asset {
|
|
103
|
+
/**
|
|
104
|
+
* Token contract address.
|
|
105
|
+
*/
|
|
106
|
+
address: string;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Token symbol (e.g., "USDC").
|
|
110
|
+
*/
|
|
111
|
+
symbol: string;
|
|
112
|
+
}
|
|
128
113
|
}
|
|
129
114
|
|
|
130
115
|
/**
|
|
@@ -169,111 +154,102 @@ export interface EthereumVaultResponse {
|
|
|
169
154
|
}
|
|
170
155
|
|
|
171
156
|
/**
|
|
172
|
-
*
|
|
157
|
+
* Input for fetching a yield reward claim by ID.
|
|
173
158
|
*/
|
|
174
|
-
export interface
|
|
159
|
+
export interface EthereumYieldClaimIDInput {
|
|
175
160
|
/**
|
|
176
|
-
*
|
|
161
|
+
* The yield claim transaction ID.
|
|
177
162
|
*/
|
|
178
163
|
id: string;
|
|
164
|
+
}
|
|
179
165
|
|
|
166
|
+
/**
|
|
167
|
+
* Input for claiming incentive rewards from vault participation.
|
|
168
|
+
*/
|
|
169
|
+
export interface EthereumYieldClaimInput {
|
|
180
170
|
/**
|
|
181
|
-
*
|
|
182
|
-
* points. Null when APY data is unavailable.
|
|
183
|
-
*/
|
|
184
|
-
app_apy: number | null;
|
|
185
|
-
|
|
186
|
-
/**
|
|
187
|
-
* Underlying asset token address.
|
|
188
|
-
*/
|
|
189
|
-
asset_address: string;
|
|
190
|
-
|
|
191
|
-
/**
|
|
192
|
-
* Assets available for instant withdrawal in USD.
|
|
171
|
+
* An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
|
|
193
172
|
*/
|
|
194
|
-
|
|
173
|
+
caip2: EvmCaip2ChainID;
|
|
174
|
+
}
|
|
195
175
|
|
|
176
|
+
/**
|
|
177
|
+
* Response from a yield reward claim operation.
|
|
178
|
+
*/
|
|
179
|
+
export interface EthereumYieldClaimResponse {
|
|
196
180
|
/**
|
|
197
|
-
*
|
|
181
|
+
* Privy transaction record ID for the claim operation.
|
|
198
182
|
*/
|
|
199
|
-
|
|
183
|
+
id: string;
|
|
200
184
|
|
|
201
185
|
/**
|
|
202
|
-
*
|
|
186
|
+
* An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
|
|
203
187
|
*/
|
|
204
|
-
|
|
188
|
+
caip2: EvmCaip2ChainID;
|
|
205
189
|
|
|
206
190
|
/**
|
|
207
|
-
*
|
|
191
|
+
* Unix timestamp of when the claim was created, in milliseconds.
|
|
208
192
|
*/
|
|
209
|
-
|
|
193
|
+
created_at: number;
|
|
210
194
|
|
|
211
195
|
/**
|
|
212
|
-
*
|
|
196
|
+
* List of reward tokens claimed.
|
|
213
197
|
*/
|
|
214
|
-
|
|
198
|
+
rewards: Array<EthereumYieldClaimReward>;
|
|
215
199
|
|
|
216
200
|
/**
|
|
217
|
-
*
|
|
218
|
-
* point = 0.01%.
|
|
201
|
+
* The current status of the claim transaction.
|
|
219
202
|
*/
|
|
220
|
-
|
|
203
|
+
status:
|
|
204
|
+
| 'broadcasted'
|
|
205
|
+
| 'confirmed'
|
|
206
|
+
| 'execution_reverted'
|
|
207
|
+
| 'failed'
|
|
208
|
+
| 'replaced'
|
|
209
|
+
| 'finalized'
|
|
210
|
+
| 'provider_error'
|
|
211
|
+
| 'pending';
|
|
221
212
|
|
|
222
213
|
/**
|
|
223
|
-
*
|
|
214
|
+
* Unix timestamp of when the claim was last updated, in milliseconds.
|
|
224
215
|
*/
|
|
225
|
-
|
|
216
|
+
updated_at: number;
|
|
226
217
|
}
|
|
227
218
|
|
|
228
219
|
/**
|
|
229
|
-
*
|
|
220
|
+
* A single reward token claimed from vault participation.
|
|
230
221
|
*/
|
|
231
|
-
export interface
|
|
222
|
+
export interface EthereumYieldClaimReward {
|
|
232
223
|
/**
|
|
233
|
-
*
|
|
224
|
+
* Amount claimed in the smallest unit.
|
|
234
225
|
*/
|
|
235
|
-
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/**
|
|
239
|
-
* A user's position in a DeFi vault.
|
|
240
|
-
*/
|
|
241
|
-
export interface EthereumVaultPosition {
|
|
242
|
-
asset: EthereumVaultPosition.Asset;
|
|
226
|
+
amount: string;
|
|
243
227
|
|
|
244
228
|
/**
|
|
245
|
-
*
|
|
229
|
+
* Reward token contract address.
|
|
246
230
|
*/
|
|
247
|
-
|
|
231
|
+
token_address: string;
|
|
248
232
|
|
|
249
233
|
/**
|
|
250
|
-
*
|
|
234
|
+
* Reward token symbol (e.g., "MORPHO").
|
|
251
235
|
*/
|
|
252
|
-
|
|
236
|
+
token_symbol: string;
|
|
237
|
+
}
|
|
253
238
|
|
|
239
|
+
/**
|
|
240
|
+
* Input for depositing assets into an ERC-4626 vault.
|
|
241
|
+
*/
|
|
242
|
+
export interface EthereumYieldDepositInput {
|
|
254
243
|
/**
|
|
255
|
-
*
|
|
244
|
+
* The amount of the underlying asset to deposit, in the smallest unit (e.g., wei
|
|
245
|
+
* for ETH, 6 decimals for USDC). Must be a non-negative integer string.
|
|
256
246
|
*/
|
|
257
|
-
|
|
247
|
+
asset_amount: string;
|
|
258
248
|
|
|
259
249
|
/**
|
|
260
|
-
*
|
|
250
|
+
* The ID of the vault to deposit into.
|
|
261
251
|
*/
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
export namespace EthereumVaultPosition {
|
|
266
|
-
export interface Asset {
|
|
267
|
-
/**
|
|
268
|
-
* Token contract address.
|
|
269
|
-
*/
|
|
270
|
-
address: string;
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Token symbol (e.g., "USDC").
|
|
274
|
-
*/
|
|
275
|
-
symbol: string;
|
|
276
|
-
}
|
|
252
|
+
vault_id: string;
|
|
277
253
|
}
|
|
278
254
|
|
|
279
255
|
/**
|
|
@@ -318,88 +294,112 @@ export namespace EthereumYieldPositionResponse {
|
|
|
318
294
|
}
|
|
319
295
|
|
|
320
296
|
/**
|
|
321
|
-
* Input for
|
|
297
|
+
* Input for fetching yield positions.
|
|
322
298
|
*/
|
|
323
|
-
export interface
|
|
299
|
+
export interface EthereumYieldPositionsInput {
|
|
324
300
|
/**
|
|
325
|
-
*
|
|
301
|
+
* The vault ID to get position for.
|
|
326
302
|
*/
|
|
327
|
-
|
|
303
|
+
vault_id: string;
|
|
328
304
|
}
|
|
329
305
|
|
|
330
306
|
/**
|
|
331
|
-
*
|
|
307
|
+
* Supported yield/lending protocol providers.
|
|
332
308
|
*/
|
|
333
|
-
export
|
|
334
|
-
/**
|
|
335
|
-
* Amount claimed in the smallest unit.
|
|
336
|
-
*/
|
|
337
|
-
amount: string;
|
|
338
|
-
|
|
339
|
-
/**
|
|
340
|
-
* Reward token contract address.
|
|
341
|
-
*/
|
|
342
|
-
token_address: string;
|
|
309
|
+
export type EthereumYieldProvider = 'morpho' | 'aave';
|
|
343
310
|
|
|
311
|
+
/**
|
|
312
|
+
* Input for fetching a yield sweep by ID.
|
|
313
|
+
*/
|
|
314
|
+
export interface EthereumYieldSweepIDInput {
|
|
344
315
|
/**
|
|
345
|
-
*
|
|
316
|
+
* The yield sweep ID.
|
|
346
317
|
*/
|
|
347
|
-
|
|
318
|
+
id: string;
|
|
348
319
|
}
|
|
349
320
|
|
|
350
321
|
/**
|
|
351
|
-
*
|
|
322
|
+
* A yield sweep record representing a deposit or withdrawal.
|
|
352
323
|
*/
|
|
353
|
-
export interface
|
|
324
|
+
export interface EthereumYieldSweepResponse {
|
|
354
325
|
/**
|
|
355
|
-
*
|
|
326
|
+
* Unique identifier for the yield sweep.
|
|
356
327
|
*/
|
|
357
328
|
id: string;
|
|
358
329
|
|
|
359
330
|
/**
|
|
360
|
-
*
|
|
331
|
+
* The amount of underlying assets involved. Set after the sweep is confirmed
|
|
332
|
+
* on-chain.
|
|
361
333
|
*/
|
|
362
|
-
|
|
334
|
+
asset_amount: string | null;
|
|
363
335
|
|
|
364
336
|
/**
|
|
365
|
-
* Unix timestamp of when the
|
|
337
|
+
* Unix timestamp of when the sweep was created, in milliseconds.
|
|
366
338
|
*/
|
|
367
339
|
created_at: number;
|
|
368
340
|
|
|
369
341
|
/**
|
|
370
|
-
*
|
|
342
|
+
* The amount of vault shares involved. Set after the sweep is confirmed on-chain.
|
|
371
343
|
*/
|
|
372
|
-
|
|
344
|
+
share_amount: string | null;
|
|
373
345
|
|
|
374
346
|
/**
|
|
375
|
-
*
|
|
347
|
+
* Status of a yield sweep.
|
|
376
348
|
*/
|
|
377
|
-
status:
|
|
378
|
-
| 'broadcasted'
|
|
379
|
-
| 'confirmed'
|
|
380
|
-
| 'execution_reverted'
|
|
381
|
-
| 'failed'
|
|
382
|
-
| 'replaced'
|
|
383
|
-
| 'finalized'
|
|
384
|
-
| 'provider_error'
|
|
385
|
-
| 'pending';
|
|
349
|
+
status: EthereumYieldSweepStatus;
|
|
386
350
|
|
|
387
351
|
/**
|
|
388
|
-
*
|
|
352
|
+
* Type of yield sweep.
|
|
353
|
+
*/
|
|
354
|
+
type: EthereumYieldSweepType;
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
* Unix timestamp of when the sweep was last updated, in milliseconds.
|
|
389
358
|
*/
|
|
390
359
|
updated_at: number;
|
|
360
|
+
|
|
361
|
+
/**
|
|
362
|
+
* The ID of the vault involved in the sweep.
|
|
363
|
+
*/
|
|
364
|
+
vault_id: string;
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* The ID of the wallet involved in the sweep.
|
|
368
|
+
*/
|
|
369
|
+
wallet_id: string;
|
|
391
370
|
}
|
|
392
371
|
|
|
393
372
|
/**
|
|
394
|
-
*
|
|
373
|
+
* Status of a yield sweep.
|
|
395
374
|
*/
|
|
396
|
-
export
|
|
375
|
+
export type EthereumYieldSweepStatus = 'pending' | 'confirmed' | 'failed';
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Type of yield sweep.
|
|
379
|
+
*/
|
|
380
|
+
export type EthereumYieldSweepType = 'deposit' | 'withdraw';
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Input for withdrawing assets from an ERC-4626 vault.
|
|
384
|
+
*/
|
|
385
|
+
export interface EthereumYieldWithdrawInput {
|
|
397
386
|
/**
|
|
398
|
-
* The
|
|
387
|
+
* The amount of the underlying asset to withdraw, in the smallest unit (e.g., wei
|
|
388
|
+
* for ETH, 6 decimals for USDC). Must be a non-negative integer string.
|
|
399
389
|
*/
|
|
400
|
-
|
|
390
|
+
asset_amount: string;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* The ID of the vault to withdraw from.
|
|
394
|
+
*/
|
|
395
|
+
vault_id: string;
|
|
401
396
|
}
|
|
402
397
|
|
|
398
|
+
/**
|
|
399
|
+
* An EVM CAIP-2 chain identifier (e.g., "eip155:8453" for Base).
|
|
400
|
+
*/
|
|
401
|
+
export type EvmCaip2ChainID = string;
|
|
402
|
+
|
|
403
403
|
/**
|
|
404
404
|
* Headers required to authorize yield operations.
|
|
405
405
|
*/
|
|
@@ -424,24 +424,24 @@ export interface YieldAuthorizationHeaders {
|
|
|
424
424
|
|
|
425
425
|
export declare namespace Yield {
|
|
426
426
|
export {
|
|
427
|
-
type EvmCaip2ChainID as EvmCaip2ChainID,
|
|
428
|
-
type EthereumYieldProvider as EthereumYieldProvider,
|
|
429
|
-
type EthereumYieldSweepType as EthereumYieldSweepType,
|
|
430
|
-
type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
|
|
431
|
-
type EthereumYieldDepositInput as EthereumYieldDepositInput,
|
|
432
|
-
type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput,
|
|
433
|
-
type EthereumYieldSweepResponse as EthereumYieldSweepResponse,
|
|
434
427
|
type EthereumVaultDetailsInput as EthereumVaultDetailsInput,
|
|
435
|
-
type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput,
|
|
436
|
-
type EthereumVaultResponse as EthereumVaultResponse,
|
|
437
428
|
type EthereumVaultDetailsResponse as EthereumVaultDetailsResponse,
|
|
438
|
-
type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
|
|
439
429
|
type EthereumVaultPosition as EthereumVaultPosition,
|
|
440
|
-
type
|
|
430
|
+
type EthereumVaultResponse as EthereumVaultResponse,
|
|
431
|
+
type EthereumYieldClaimIDInput as EthereumYieldClaimIDInput,
|
|
441
432
|
type EthereumYieldClaimInput as EthereumYieldClaimInput,
|
|
442
|
-
type EthereumYieldClaimReward as EthereumYieldClaimReward,
|
|
443
433
|
type EthereumYieldClaimResponse as EthereumYieldClaimResponse,
|
|
444
|
-
type
|
|
434
|
+
type EthereumYieldClaimReward as EthereumYieldClaimReward,
|
|
435
|
+
type EthereumYieldDepositInput as EthereumYieldDepositInput,
|
|
436
|
+
type EthereumYieldPositionResponse as EthereumYieldPositionResponse,
|
|
437
|
+
type EthereumYieldPositionsInput as EthereumYieldPositionsInput,
|
|
438
|
+
type EthereumYieldProvider as EthereumYieldProvider,
|
|
439
|
+
type EthereumYieldSweepIDInput as EthereumYieldSweepIDInput,
|
|
440
|
+
type EthereumYieldSweepResponse as EthereumYieldSweepResponse,
|
|
441
|
+
type EthereumYieldSweepStatus as EthereumYieldSweepStatus,
|
|
442
|
+
type EthereumYieldSweepType as EthereumYieldSweepType,
|
|
443
|
+
type EthereumYieldWithdrawInput as EthereumYieldWithdrawInput,
|
|
444
|
+
type EvmCaip2ChainID as EvmCaip2ChainID,
|
|
445
445
|
type YieldAuthorizationHeaders as YieldAuthorizationHeaders,
|
|
446
446
|
};
|
|
447
447
|
}
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.10.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,WAAW,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.10.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,CAAC,2BAA2B"}
|