@paxoslabs/amplify-sdk 0.5.2 → 0.5.3
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/{chain-utils-BdJecHBA.d.mts → chain-utils-5r2UnCDS.d.mts} +47 -1
- package/dist/{chain-utils-BdJecHBA.d.ts → chain-utils-5r2UnCDS.d.ts} +47 -1
- package/dist/{chunk-5OK753GA.js → chunk-4NQPS3JC.js} +470 -358
- package/dist/chunk-4NQPS3JC.js.map +1 -0
- package/dist/chunk-6JLKHV6O.js +128 -0
- package/dist/chunk-6JLKHV6O.js.map +1 -0
- package/dist/{chunk-NNDY5TID.js → chunk-FHE43NKY.js} +12 -12
- package/dist/{chunk-NNDY5TID.js.map → chunk-FHE43NKY.js.map} +1 -1
- package/dist/chunk-GOJQYEJQ.js +3212 -0
- package/dist/chunk-GOJQYEJQ.js.map +1 -0
- package/dist/{chunk-HU5CTL4C.mjs → chunk-LMNADWTH.mjs} +364 -253
- package/dist/chunk-LMNADWTH.mjs.map +1 -0
- package/dist/chunk-ODXJYXUH.mjs +3168 -0
- package/dist/chunk-ODXJYXUH.mjs.map +1 -0
- package/dist/{chunk-QZHI2T7O.mjs → chunk-QMFYPHX5.mjs} +280 -47
- package/dist/chunk-QMFYPHX5.mjs.map +1 -0
- package/dist/{chunk-Q5FXJU5Y.mjs → chunk-UY2WD7MF.mjs} +3 -3
- package/dist/{chunk-Q5FXJU5Y.mjs.map → chunk-UY2WD7MF.mjs.map} +1 -1
- package/dist/chunk-WD6QFSXZ.js +701 -0
- package/dist/chunk-WD6QFSXZ.js.map +1 -0
- package/dist/chunk-Y5LBT2WT.mjs +118 -0
- package/dist/chunk-Y5LBT2WT.mjs.map +1 -0
- package/dist/core.d.mts +50 -7
- package/dist/core.d.ts +50 -7
- package/dist/core.js +32 -16
- package/dist/core.mjs +4 -4
- package/dist/display.d.mts +211 -2
- package/dist/display.d.ts +211 -2
- package/dist/display.js +26 -10
- package/dist/display.mjs +4 -4
- package/dist/{index-DXXA8gEA.d.mts → index-D8RtV9cB.d.mts} +498 -410
- package/dist/{index-aE5lTOUH.d.ts → index-ev_V5sjt.d.ts} +498 -410
- package/dist/index.d.mts +40 -5
- package/dist/index.d.ts +40 -5
- package/dist/index.js +80 -60
- package/dist/index.mjs +5 -5
- package/dist/utils.d.mts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +7 -7
- package/dist/utils.mjs +2 -2
- package/dist/vaults.d.mts +2 -2
- package/dist/vaults.d.ts +2 -2
- package/dist/vaults.js +25 -25
- package/dist/vaults.mjs +4 -4
- package/package.json +1 -1
- package/dist/chunk-5OK753GA.js.map +0 -1
- package/dist/chunk-7JQQ2TH4.mjs +0 -1231
- package/dist/chunk-7JQQ2TH4.mjs.map +0 -1
- package/dist/chunk-HU5CTL4C.mjs.map +0 -1
- package/dist/chunk-QZHI2T7O.mjs.map +0 -1
- package/dist/chunk-SWUG4PTB.js +0 -464
- package/dist/chunk-SWUG4PTB.js.map +0 -1
- package/dist/chunk-WK7EJRBB.mjs +0 -1482
- package/dist/chunk-WK7EJRBB.mjs.map +0 -1
- package/dist/chunk-WYBYBPX5.js +0 -1518
- package/dist/chunk-WYBYBPX5.js.map +0 -1
- package/dist/chunk-ZKDXRGI5.js +0 -1239
- package/dist/chunk-ZKDXRGI5.js.map +0 -1
|
@@ -1,63 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { C as ChainId } from './chain-utils-
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* @file Approve Asset for deposit functionality for Paxos Labs vaults
|
|
6
|
-
* @module vaults/deposit
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Parameters required for preparing an ERC20 approval transaction
|
|
11
|
-
*
|
|
12
|
-
* @interface PrepareApproveDepositTokenTxParams
|
|
13
|
-
* @property {string} vaultName - Human-readable vault name (e.g. "Amplify USDC Core")
|
|
14
|
-
* @property {Address} depositAsset - Token contract address to approve. Must match the vault's supported asset.
|
|
15
|
-
* @property {string} [approvalAmount] - Optional amount to approve as a decimal string (defaults to maximum approval)
|
|
16
|
-
* @property {ChainId} chainId - ID of the chain where the approval will occur. Must match the vault's chain.
|
|
17
|
-
*/
|
|
18
|
-
interface PrepareApproveDepositTokenTxParams {
|
|
19
|
-
vaultName: string;
|
|
20
|
-
depositAsset: Address;
|
|
21
|
-
approvalAmount?: string;
|
|
22
|
-
chainId: ChainId;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Result object containing transaction data for an ERC20 approval operation
|
|
26
|
-
* @interface ApproveDepositTokenTxData
|
|
27
|
-
* @property {typeof erc20Abi} abi - ABI for the ERC20 token contract
|
|
28
|
-
* @property {Address} address - Address of the ERC20 token being approved
|
|
29
|
-
* @property {'approve'} functionName - Name of the function to call
|
|
30
|
-
* @property {[Address, bigint]} args - Arguments for the approve function:
|
|
31
|
-
* [spender (CommunityCodeDepositor address), amount]
|
|
32
|
-
*/
|
|
33
|
-
interface ApproveDepositTokenTxData {
|
|
34
|
-
abi: typeof erc20Abi;
|
|
35
|
-
address: Address;
|
|
36
|
-
functionName: 'approve';
|
|
37
|
-
args: [Address, bigint];
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Prepares the transaction data needed to approve a deposit token for the vault
|
|
41
|
-
*
|
|
42
|
-
* This function prepares an ERC20 approval transaction that allows the vault's
|
|
43
|
-
* CommunityCodeDepositor contract to spend the user's deposit tokens.
|
|
44
|
-
* The vault is validated against the provided `vaultName`, `chainId`, and `depositAsset`.
|
|
45
|
-
*
|
|
46
|
-
* @example
|
|
47
|
-
* ```typescript
|
|
48
|
-
* const approveData = await prepareApproveDepositTokenTxData({
|
|
49
|
-
* vaultName: "Amplify USDC Core",
|
|
50
|
-
* depositAsset: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
51
|
-
* approvalAmount: "1000.0", // Approve 1000 USDC
|
|
52
|
-
* chainId: 1,
|
|
53
|
-
* });
|
|
54
|
-
* ```
|
|
55
|
-
*
|
|
56
|
-
* @param {PrepareApproveDepositTokenTxParams} params - Parameters for the approval operation
|
|
57
|
-
* @returns {Promise<ApproveDepositTokenTxData>} Promise resolving to the prepared transaction data
|
|
58
|
-
* @throws {APIError} If vault not found, chain/asset mismatch, or contracts not configured
|
|
59
|
-
*/
|
|
60
|
-
declare function prepareApproveDepositTokenTxData({ vaultName, depositAsset, approvalAmount, chainId, }: PrepareApproveDepositTokenTxParams): Promise<ApproveDepositTokenTxData>;
|
|
1
|
+
import { Address, Hex, erc20Abi } from 'viem';
|
|
2
|
+
import { C as ChainId } from './chain-utils-5r2UnCDS.js';
|
|
61
3
|
|
|
62
4
|
declare const DistributorCodeDepositorAbiV0: readonly [{
|
|
63
5
|
readonly inputs: readonly [{
|
|
@@ -305,6 +247,26 @@ declare const DistributorCodeDepositorAbiV0: readonly [{
|
|
|
305
247
|
}];
|
|
306
248
|
readonly stateMutability: "nonpayable";
|
|
307
249
|
readonly type: "function";
|
|
250
|
+
}, {
|
|
251
|
+
readonly inputs: readonly [];
|
|
252
|
+
readonly name: "feeModule";
|
|
253
|
+
readonly outputs: readonly [{
|
|
254
|
+
readonly internalType: "contract IFeeModule";
|
|
255
|
+
readonly name: "";
|
|
256
|
+
readonly type: "address";
|
|
257
|
+
}];
|
|
258
|
+
readonly stateMutability: "view";
|
|
259
|
+
readonly type: "function";
|
|
260
|
+
}, {
|
|
261
|
+
readonly inputs: readonly [];
|
|
262
|
+
readonly name: "feeRecipient";
|
|
263
|
+
readonly outputs: readonly [{
|
|
264
|
+
readonly internalType: "address";
|
|
265
|
+
readonly name: "";
|
|
266
|
+
readonly type: "address";
|
|
267
|
+
}];
|
|
268
|
+
readonly stateMutability: "view";
|
|
269
|
+
readonly type: "function";
|
|
308
270
|
}, {
|
|
309
271
|
readonly inputs: readonly [];
|
|
310
272
|
readonly name: "isNativeDepositSupported";
|
|
@@ -335,6 +297,16 @@ declare const DistributorCodeDepositorAbiV0: readonly [{
|
|
|
335
297
|
}];
|
|
336
298
|
readonly stateMutability: "view";
|
|
337
299
|
readonly type: "function";
|
|
300
|
+
}, {
|
|
301
|
+
readonly inputs: readonly [];
|
|
302
|
+
readonly name: "supplyCapInBase";
|
|
303
|
+
readonly outputs: readonly [{
|
|
304
|
+
readonly internalType: "uint256";
|
|
305
|
+
readonly name: "";
|
|
306
|
+
readonly type: "uint256";
|
|
307
|
+
}];
|
|
308
|
+
readonly stateMutability: "view";
|
|
309
|
+
readonly type: "function";
|
|
338
310
|
}, {
|
|
339
311
|
readonly inputs: readonly [{
|
|
340
312
|
readonly internalType: "contract Authority";
|
|
@@ -1109,6 +1081,64 @@ interface PrepareDepositTxDataParams {
|
|
|
1109
1081
|
*/
|
|
1110
1082
|
declare function prepareDepositTxData(params: PrepareDepositTxDataParams): Promise<DepositTxData>;
|
|
1111
1083
|
|
|
1084
|
+
/**
|
|
1085
|
+
* @file Approve Asset for deposit functionality for Paxos Labs vaults
|
|
1086
|
+
* @module vaults/deposit
|
|
1087
|
+
*/
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Parameters required for preparing an ERC20 approval transaction
|
|
1091
|
+
*
|
|
1092
|
+
* @interface PrepareApproveDepositTokenTxParams
|
|
1093
|
+
* @property {string} vaultName - Human-readable vault name (e.g. "Amplify USDC Core")
|
|
1094
|
+
* @property {Address} depositAsset - Token contract address to approve. Must match the vault's supported asset.
|
|
1095
|
+
* @property {string} [approvalAmount] - Optional amount to approve as a decimal string (defaults to maximum approval)
|
|
1096
|
+
* @property {ChainId} chainId - ID of the chain where the approval will occur. Must match the vault's chain.
|
|
1097
|
+
*/
|
|
1098
|
+
interface PrepareApproveDepositTokenTxParams {
|
|
1099
|
+
vaultName: string;
|
|
1100
|
+
depositAsset: Address;
|
|
1101
|
+
approvalAmount?: string;
|
|
1102
|
+
chainId: ChainId;
|
|
1103
|
+
}
|
|
1104
|
+
/**
|
|
1105
|
+
* Result object containing transaction data for an ERC20 approval operation
|
|
1106
|
+
* @interface ApproveDepositTokenTxData
|
|
1107
|
+
* @property {typeof erc20Abi} abi - ABI for the ERC20 token contract
|
|
1108
|
+
* @property {Address} address - Address of the ERC20 token being approved
|
|
1109
|
+
* @property {'approve'} functionName - Name of the function to call
|
|
1110
|
+
* @property {[Address, bigint]} args - Arguments for the approve function:
|
|
1111
|
+
* [spender (CommunityCodeDepositor address), amount]
|
|
1112
|
+
*/
|
|
1113
|
+
interface ApproveDepositTokenTxData {
|
|
1114
|
+
abi: typeof erc20Abi;
|
|
1115
|
+
address: Address;
|
|
1116
|
+
functionName: 'approve';
|
|
1117
|
+
args: [Address, bigint];
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* Prepares the transaction data needed to approve a deposit token for the vault
|
|
1121
|
+
*
|
|
1122
|
+
* This function prepares an ERC20 approval transaction that allows the vault's
|
|
1123
|
+
* CommunityCodeDepositor contract to spend the user's deposit tokens.
|
|
1124
|
+
* The vault is validated against the provided `vaultName`, `chainId`, and `depositAsset`.
|
|
1125
|
+
*
|
|
1126
|
+
* @example
|
|
1127
|
+
* ```typescript
|
|
1128
|
+
* const approveData = await prepareApproveDepositTokenTxData({
|
|
1129
|
+
* vaultName: "Amplify USDC Core",
|
|
1130
|
+
* depositAsset: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', // USDC
|
|
1131
|
+
* approvalAmount: "1000.0", // Approve 1000 USDC
|
|
1132
|
+
* chainId: 1,
|
|
1133
|
+
* });
|
|
1134
|
+
* ```
|
|
1135
|
+
*
|
|
1136
|
+
* @param {PrepareApproveDepositTokenTxParams} params - Parameters for the approval operation
|
|
1137
|
+
* @returns {Promise<ApproveDepositTokenTxData>} Promise resolving to the prepared transaction data
|
|
1138
|
+
* @throws {APIError} If vault not found, chain/asset mismatch, or contracts not configured
|
|
1139
|
+
*/
|
|
1140
|
+
declare function prepareApproveDepositTokenTxData({ vaultName, depositAsset, approvalAmount, chainId, }: PrepareApproveDepositTokenTxParams): Promise<ApproveDepositTokenTxData>;
|
|
1141
|
+
|
|
1112
1142
|
/**
|
|
1113
1143
|
* @file Deposit with permit functionality for Nucleus vaults
|
|
1114
1144
|
* @module vaults/deposit/deposit-with-permit
|
|
@@ -1294,7 +1324,7 @@ declare function parsePermitSignature(signature: Hex): ParsedPermitSignature;
|
|
|
1294
1324
|
* Automatically routes to standard or KYT deposit based on vault configuration.
|
|
1295
1325
|
*/
|
|
1296
1326
|
declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermitTxDataParams): Promise<{
|
|
1297
|
-
depositType: typeof DepositType.
|
|
1327
|
+
depositType: typeof DepositType.STANDARD;
|
|
1298
1328
|
abi: readonly [{
|
|
1299
1329
|
readonly inputs: readonly [{
|
|
1300
1330
|
readonly internalType: "contract TellerWithMultiAssetSupport";
|
|
@@ -1312,26 +1342,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1312
1342
|
readonly internalType: "bool";
|
|
1313
1343
|
readonly name: "_isNativeDepositSupported";
|
|
1314
1344
|
readonly type: "bool";
|
|
1315
|
-
}, {
|
|
1316
|
-
readonly internalType: "uint256";
|
|
1317
|
-
readonly name: "_supplyCap";
|
|
1318
|
-
readonly type: "uint256";
|
|
1319
|
-
}, {
|
|
1320
|
-
readonly internalType: "contract IFeeModule";
|
|
1321
|
-
readonly name: "_feeModule";
|
|
1322
|
-
readonly type: "address";
|
|
1323
|
-
}, {
|
|
1324
|
-
readonly internalType: "address";
|
|
1325
|
-
readonly name: "_feeRecipient";
|
|
1326
|
-
readonly type: "address";
|
|
1327
|
-
}, {
|
|
1328
|
-
readonly internalType: "address";
|
|
1329
|
-
readonly name: "_registry";
|
|
1330
|
-
readonly type: "address";
|
|
1331
|
-
}, {
|
|
1332
|
-
readonly internalType: "string";
|
|
1333
|
-
readonly name: "_policyID";
|
|
1334
|
-
readonly type: "string";
|
|
1335
1345
|
}, {
|
|
1336
1346
|
readonly internalType: "address";
|
|
1337
1347
|
readonly name: "_owner";
|
|
@@ -1339,26 +1349,10 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1339
1349
|
}];
|
|
1340
1350
|
readonly stateMutability: "nonpayable";
|
|
1341
1351
|
readonly type: "constructor";
|
|
1342
|
-
}, {
|
|
1343
|
-
readonly inputs: readonly [];
|
|
1344
|
-
readonly name: "FeesExceedOrEqualAmount";
|
|
1345
|
-
readonly type: "error";
|
|
1346
1352
|
}, {
|
|
1347
1353
|
readonly inputs: readonly [];
|
|
1348
1354
|
readonly name: "IncorrectNativeDepositAmount";
|
|
1349
1355
|
readonly type: "error";
|
|
1350
|
-
}, {
|
|
1351
|
-
readonly inputs: readonly [{
|
|
1352
|
-
readonly internalType: "uint256";
|
|
1353
|
-
readonly name: "actual";
|
|
1354
|
-
readonly type: "uint256";
|
|
1355
|
-
}, {
|
|
1356
|
-
readonly internalType: "uint256";
|
|
1357
|
-
readonly name: "minimum";
|
|
1358
|
-
readonly type: "uint256";
|
|
1359
|
-
}];
|
|
1360
|
-
readonly name: "InsufficientSharesAfterFees";
|
|
1361
|
-
readonly type: "error";
|
|
1362
1356
|
}, {
|
|
1363
1357
|
readonly inputs: readonly [];
|
|
1364
1358
|
readonly name: "NativeDepositNotSupported";
|
|
@@ -1367,34 +1361,10 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1367
1361
|
readonly inputs: readonly [];
|
|
1368
1362
|
readonly name: "NativeWrapperAccountantDecimalsMismatch";
|
|
1369
1363
|
readonly type: "error";
|
|
1370
|
-
}, {
|
|
1371
|
-
readonly inputs: readonly [{
|
|
1372
|
-
readonly internalType: "address";
|
|
1373
|
-
readonly name: "addressEmptyCode";
|
|
1374
|
-
readonly type: "address";
|
|
1375
|
-
}];
|
|
1376
|
-
readonly name: "NoCode";
|
|
1377
|
-
readonly type: "error";
|
|
1378
1364
|
}, {
|
|
1379
1365
|
readonly inputs: readonly [];
|
|
1380
1366
|
readonly name: "PermitFailedAndAllowanceTooLow";
|
|
1381
1367
|
readonly type: "error";
|
|
1382
|
-
}, {
|
|
1383
|
-
readonly inputs: readonly [{
|
|
1384
|
-
readonly internalType: "uint256";
|
|
1385
|
-
readonly name: "resultingValue";
|
|
1386
|
-
readonly type: "uint256";
|
|
1387
|
-
}, {
|
|
1388
|
-
readonly internalType: "uint256";
|
|
1389
|
-
readonly name: "supplyCapInBase";
|
|
1390
|
-
readonly type: "uint256";
|
|
1391
|
-
}];
|
|
1392
|
-
readonly name: "SupplyCapInBaseError";
|
|
1393
|
-
readonly type: "error";
|
|
1394
|
-
}, {
|
|
1395
|
-
readonly inputs: readonly [];
|
|
1396
|
-
readonly name: "UnauthorizedTransaction";
|
|
1397
|
-
readonly type: "error";
|
|
1398
1368
|
}, {
|
|
1399
1369
|
readonly inputs: readonly [];
|
|
1400
1370
|
readonly name: "ZeroAddress";
|
|
@@ -1458,118 +1428,33 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1458
1428
|
readonly anonymous: false;
|
|
1459
1429
|
readonly inputs: readonly [{
|
|
1460
1430
|
readonly indexed: true;
|
|
1461
|
-
readonly internalType: "
|
|
1462
|
-
readonly name: "
|
|
1431
|
+
readonly internalType: "address";
|
|
1432
|
+
readonly name: "user";
|
|
1463
1433
|
readonly type: "address";
|
|
1464
|
-
}
|
|
1465
|
-
readonly name: "FeeModuleUpdated";
|
|
1466
|
-
readonly type: "event";
|
|
1467
|
-
}, {
|
|
1468
|
-
readonly anonymous: false;
|
|
1469
|
-
readonly inputs: readonly [{
|
|
1434
|
+
}, {
|
|
1470
1435
|
readonly indexed: true;
|
|
1471
1436
|
readonly internalType: "address";
|
|
1472
|
-
readonly name: "
|
|
1437
|
+
readonly name: "newOwner";
|
|
1473
1438
|
readonly type: "address";
|
|
1474
1439
|
}];
|
|
1475
|
-
readonly name: "
|
|
1440
|
+
readonly name: "OwnershipTransferred";
|
|
1476
1441
|
readonly type: "event";
|
|
1477
1442
|
}, {
|
|
1478
|
-
readonly
|
|
1479
|
-
readonly
|
|
1480
|
-
|
|
1481
|
-
readonly internalType: "contract
|
|
1482
|
-
readonly name: "
|
|
1443
|
+
readonly inputs: readonly [];
|
|
1444
|
+
readonly name: "authority";
|
|
1445
|
+
readonly outputs: readonly [{
|
|
1446
|
+
readonly internalType: "contract Authority";
|
|
1447
|
+
readonly name: "";
|
|
1483
1448
|
readonly type: "address";
|
|
1484
|
-
}, {
|
|
1485
|
-
readonly indexed: true;
|
|
1486
|
-
readonly internalType: "bool";
|
|
1487
|
-
readonly name: "enabled";
|
|
1488
|
-
readonly type: "bool";
|
|
1489
1449
|
}];
|
|
1490
|
-
readonly
|
|
1491
|
-
readonly type: "
|
|
1450
|
+
readonly stateMutability: "view";
|
|
1451
|
+
readonly type: "function";
|
|
1492
1452
|
}, {
|
|
1493
|
-
readonly
|
|
1494
|
-
readonly
|
|
1495
|
-
|
|
1496
|
-
readonly internalType: "address";
|
|
1497
|
-
readonly name: "user";
|
|
1498
|
-
readonly type: "address";
|
|
1499
|
-
}, {
|
|
1500
|
-
readonly indexed: true;
|
|
1453
|
+
readonly inputs: readonly [];
|
|
1454
|
+
readonly name: "boringVault";
|
|
1455
|
+
readonly outputs: readonly [{
|
|
1501
1456
|
readonly internalType: "address";
|
|
1502
|
-
readonly name: "
|
|
1503
|
-
readonly type: "address";
|
|
1504
|
-
}];
|
|
1505
|
-
readonly name: "OwnershipTransferred";
|
|
1506
|
-
readonly type: "event";
|
|
1507
|
-
}, {
|
|
1508
|
-
readonly anonymous: false;
|
|
1509
|
-
readonly inputs: readonly [{
|
|
1510
|
-
readonly indexed: false;
|
|
1511
|
-
readonly internalType: "string";
|
|
1512
|
-
readonly name: "oldPolicyID";
|
|
1513
|
-
readonly type: "string";
|
|
1514
|
-
}, {
|
|
1515
|
-
readonly indexed: false;
|
|
1516
|
-
readonly internalType: "string";
|
|
1517
|
-
readonly name: "newPolicyID";
|
|
1518
|
-
readonly type: "string";
|
|
1519
|
-
}];
|
|
1520
|
-
readonly name: "PredicatePolicyIDUpdated";
|
|
1521
|
-
readonly type: "event";
|
|
1522
|
-
}, {
|
|
1523
|
-
readonly anonymous: false;
|
|
1524
|
-
readonly inputs: readonly [{
|
|
1525
|
-
readonly indexed: true;
|
|
1526
|
-
readonly internalType: "address";
|
|
1527
|
-
readonly name: "oldRegistry";
|
|
1528
|
-
readonly type: "address";
|
|
1529
|
-
}, {
|
|
1530
|
-
readonly indexed: true;
|
|
1531
|
-
readonly internalType: "address";
|
|
1532
|
-
readonly name: "newRegistry";
|
|
1533
|
-
readonly type: "address";
|
|
1534
|
-
}];
|
|
1535
|
-
readonly name: "PredicateRegistryUpdated";
|
|
1536
|
-
readonly type: "event";
|
|
1537
|
-
}, {
|
|
1538
|
-
readonly anonymous: false;
|
|
1539
|
-
readonly inputs: readonly [{
|
|
1540
|
-
readonly indexed: false;
|
|
1541
|
-
readonly internalType: "uint256";
|
|
1542
|
-
readonly name: "newSupplyCapInBase";
|
|
1543
|
-
readonly type: "uint256";
|
|
1544
|
-
}];
|
|
1545
|
-
readonly name: "SupplyCapInBaseUpdated";
|
|
1546
|
-
readonly type: "event";
|
|
1547
|
-
}, {
|
|
1548
|
-
readonly inputs: readonly [];
|
|
1549
|
-
readonly name: "PREDICATE_DEPOSIT_SIGNATURE";
|
|
1550
|
-
readonly outputs: readonly [{
|
|
1551
|
-
readonly internalType: "string";
|
|
1552
|
-
readonly name: "";
|
|
1553
|
-
readonly type: "string";
|
|
1554
|
-
}];
|
|
1555
|
-
readonly stateMutability: "view";
|
|
1556
|
-
readonly type: "function";
|
|
1557
|
-
}, {
|
|
1558
|
-
readonly inputs: readonly [];
|
|
1559
|
-
readonly name: "authority";
|
|
1560
|
-
readonly outputs: readonly [{
|
|
1561
|
-
readonly internalType: "contract Authority";
|
|
1562
|
-
readonly name: "";
|
|
1563
|
-
readonly type: "address";
|
|
1564
|
-
}];
|
|
1565
|
-
readonly stateMutability: "view";
|
|
1566
|
-
readonly type: "function";
|
|
1567
|
-
}, {
|
|
1568
|
-
readonly inputs: readonly [];
|
|
1569
|
-
readonly name: "boringVault";
|
|
1570
|
-
readonly outputs: readonly [{
|
|
1571
|
-
readonly internalType: "address";
|
|
1572
|
-
readonly name: "";
|
|
1457
|
+
readonly name: "";
|
|
1573
1458
|
readonly type: "address";
|
|
1574
1459
|
}];
|
|
1575
1460
|
readonly stateMutability: "view";
|
|
@@ -1595,27 +1480,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1595
1480
|
readonly internalType: "bytes";
|
|
1596
1481
|
readonly name: "distributorCode";
|
|
1597
1482
|
readonly type: "bytes";
|
|
1598
|
-
}, {
|
|
1599
|
-
readonly components: readonly [{
|
|
1600
|
-
readonly internalType: "string";
|
|
1601
|
-
readonly name: "uuid";
|
|
1602
|
-
readonly type: "string";
|
|
1603
|
-
}, {
|
|
1604
|
-
readonly internalType: "uint256";
|
|
1605
|
-
readonly name: "expiration";
|
|
1606
|
-
readonly type: "uint256";
|
|
1607
|
-
}, {
|
|
1608
|
-
readonly internalType: "address";
|
|
1609
|
-
readonly name: "attester";
|
|
1610
|
-
readonly type: "address";
|
|
1611
|
-
}, {
|
|
1612
|
-
readonly internalType: "bytes";
|
|
1613
|
-
readonly name: "signature";
|
|
1614
|
-
readonly type: "bytes";
|
|
1615
|
-
}];
|
|
1616
|
-
readonly internalType: "struct Attestation";
|
|
1617
|
-
readonly name: "_attestation";
|
|
1618
|
-
readonly type: "tuple";
|
|
1619
1483
|
}];
|
|
1620
1484
|
readonly name: "deposit";
|
|
1621
1485
|
readonly outputs: readonly [{
|
|
@@ -1642,27 +1506,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1642
1506
|
readonly internalType: "bytes";
|
|
1643
1507
|
readonly name: "distributorCode";
|
|
1644
1508
|
readonly type: "bytes";
|
|
1645
|
-
}, {
|
|
1646
|
-
readonly components: readonly [{
|
|
1647
|
-
readonly internalType: "string";
|
|
1648
|
-
readonly name: "uuid";
|
|
1649
|
-
readonly type: "string";
|
|
1650
|
-
}, {
|
|
1651
|
-
readonly internalType: "uint256";
|
|
1652
|
-
readonly name: "expiration";
|
|
1653
|
-
readonly type: "uint256";
|
|
1654
|
-
}, {
|
|
1655
|
-
readonly internalType: "address";
|
|
1656
|
-
readonly name: "attester";
|
|
1657
|
-
readonly type: "address";
|
|
1658
|
-
}, {
|
|
1659
|
-
readonly internalType: "bytes";
|
|
1660
|
-
readonly name: "signature";
|
|
1661
|
-
readonly type: "bytes";
|
|
1662
|
-
}];
|
|
1663
|
-
readonly internalType: "struct Attestation";
|
|
1664
|
-
readonly name: "_attestation";
|
|
1665
|
-
readonly type: "tuple";
|
|
1666
1509
|
}];
|
|
1667
1510
|
readonly name: "depositNative";
|
|
1668
1511
|
readonly outputs: readonly [{
|
|
@@ -1703,27 +1546,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1703
1546
|
readonly internalType: "bytes";
|
|
1704
1547
|
readonly name: "distributorCode";
|
|
1705
1548
|
readonly type: "bytes";
|
|
1706
|
-
}, {
|
|
1707
|
-
readonly components: readonly [{
|
|
1708
|
-
readonly internalType: "string";
|
|
1709
|
-
readonly name: "uuid";
|
|
1710
|
-
readonly type: "string";
|
|
1711
|
-
}, {
|
|
1712
|
-
readonly internalType: "uint256";
|
|
1713
|
-
readonly name: "expiration";
|
|
1714
|
-
readonly type: "uint256";
|
|
1715
|
-
}, {
|
|
1716
|
-
readonly internalType: "address";
|
|
1717
|
-
readonly name: "attester";
|
|
1718
|
-
readonly type: "address";
|
|
1719
|
-
}, {
|
|
1720
|
-
readonly internalType: "bytes";
|
|
1721
|
-
readonly name: "signature";
|
|
1722
|
-
readonly type: "bytes";
|
|
1723
|
-
}];
|
|
1724
|
-
readonly internalType: "struct Attestation";
|
|
1725
|
-
readonly name: "_attestation";
|
|
1726
|
-
readonly type: "tuple";
|
|
1727
1549
|
}, {
|
|
1728
1550
|
readonly internalType: "uint256";
|
|
1729
1551
|
readonly name: "deadline";
|
|
@@ -1769,26 +1591,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1769
1591
|
}];
|
|
1770
1592
|
readonly stateMutability: "view";
|
|
1771
1593
|
readonly type: "function";
|
|
1772
|
-
}, {
|
|
1773
|
-
readonly inputs: readonly [];
|
|
1774
|
-
readonly name: "getPolicyID";
|
|
1775
|
-
readonly outputs: readonly [{
|
|
1776
|
-
readonly internalType: "string";
|
|
1777
|
-
readonly name: "policyID";
|
|
1778
|
-
readonly type: "string";
|
|
1779
|
-
}];
|
|
1780
|
-
readonly stateMutability: "view";
|
|
1781
|
-
readonly type: "function";
|
|
1782
|
-
}, {
|
|
1783
|
-
readonly inputs: readonly [];
|
|
1784
|
-
readonly name: "getRegistry";
|
|
1785
|
-
readonly outputs: readonly [{
|
|
1786
|
-
readonly internalType: "address";
|
|
1787
|
-
readonly name: "";
|
|
1788
|
-
readonly type: "address";
|
|
1789
|
-
}];
|
|
1790
|
-
readonly stateMutability: "view";
|
|
1791
|
-
readonly type: "function";
|
|
1792
1594
|
}, {
|
|
1793
1595
|
readonly inputs: readonly [];
|
|
1794
1596
|
readonly name: "isNativeDepositSupported";
|
|
@@ -1800,24 +1602,20 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1800
1602
|
readonly stateMutability: "view";
|
|
1801
1603
|
readonly type: "function";
|
|
1802
1604
|
}, {
|
|
1803
|
-
readonly inputs: readonly [
|
|
1804
|
-
|
|
1805
|
-
readonly name: "";
|
|
1806
|
-
readonly type: "address";
|
|
1807
|
-
}];
|
|
1808
|
-
readonly name: "kytEnabled";
|
|
1605
|
+
readonly inputs: readonly [];
|
|
1606
|
+
readonly name: "nativeWrapper";
|
|
1809
1607
|
readonly outputs: readonly [{
|
|
1810
|
-
readonly internalType: "
|
|
1608
|
+
readonly internalType: "contract INativeWrapper";
|
|
1811
1609
|
readonly name: "";
|
|
1812
|
-
readonly type: "
|
|
1610
|
+
readonly type: "address";
|
|
1813
1611
|
}];
|
|
1814
1612
|
readonly stateMutability: "view";
|
|
1815
1613
|
readonly type: "function";
|
|
1816
1614
|
}, {
|
|
1817
1615
|
readonly inputs: readonly [];
|
|
1818
|
-
readonly name: "
|
|
1616
|
+
readonly name: "owner";
|
|
1819
1617
|
readonly outputs: readonly [{
|
|
1820
|
-
readonly internalType: "
|
|
1618
|
+
readonly internalType: "address";
|
|
1821
1619
|
readonly name: "";
|
|
1822
1620
|
readonly type: "address";
|
|
1823
1621
|
}];
|
|
@@ -1825,11 +1623,11 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1825
1623
|
readonly type: "function";
|
|
1826
1624
|
}, {
|
|
1827
1625
|
readonly inputs: readonly [];
|
|
1828
|
-
readonly name: "
|
|
1626
|
+
readonly name: "supplyCapInBase";
|
|
1829
1627
|
readonly outputs: readonly [{
|
|
1830
|
-
readonly internalType: "
|
|
1628
|
+
readonly internalType: "uint256";
|
|
1831
1629
|
readonly name: "";
|
|
1832
|
-
readonly type: "
|
|
1630
|
+
readonly type: "uint256";
|
|
1833
1631
|
}];
|
|
1834
1632
|
readonly stateMutability: "view";
|
|
1835
1633
|
readonly type: "function";
|
|
@@ -1843,36 +1641,6 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1843
1641
|
readonly outputs: readonly [];
|
|
1844
1642
|
readonly stateMutability: "nonpayable";
|
|
1845
1643
|
readonly type: "function";
|
|
1846
|
-
}, {
|
|
1847
|
-
readonly inputs: readonly [{
|
|
1848
|
-
readonly internalType: "string";
|
|
1849
|
-
readonly name: "_policyID";
|
|
1850
|
-
readonly type: "string";
|
|
1851
|
-
}];
|
|
1852
|
-
readonly name: "setPolicyID";
|
|
1853
|
-
readonly outputs: readonly [];
|
|
1854
|
-
readonly stateMutability: "nonpayable";
|
|
1855
|
-
readonly type: "function";
|
|
1856
|
-
}, {
|
|
1857
|
-
readonly inputs: readonly [{
|
|
1858
|
-
readonly internalType: "address";
|
|
1859
|
-
readonly name: "_registry";
|
|
1860
|
-
readonly type: "address";
|
|
1861
|
-
}];
|
|
1862
|
-
readonly name: "setRegistry";
|
|
1863
|
-
readonly outputs: readonly [];
|
|
1864
|
-
readonly stateMutability: "nonpayable";
|
|
1865
|
-
readonly type: "function";
|
|
1866
|
-
}, {
|
|
1867
|
-
readonly inputs: readonly [];
|
|
1868
|
-
readonly name: "supplyCapInBase";
|
|
1869
|
-
readonly outputs: readonly [{
|
|
1870
|
-
readonly internalType: "uint256";
|
|
1871
|
-
readonly name: "";
|
|
1872
|
-
readonly type: "uint256";
|
|
1873
|
-
}];
|
|
1874
|
-
readonly stateMutability: "view";
|
|
1875
|
-
readonly type: "function";
|
|
1876
1644
|
}, {
|
|
1877
1645
|
readonly inputs: readonly [];
|
|
1878
1646
|
readonly name: "teller";
|
|
@@ -1893,57 +1661,13 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1893
1661
|
readonly outputs: readonly [];
|
|
1894
1662
|
readonly stateMutability: "nonpayable";
|
|
1895
1663
|
readonly type: "function";
|
|
1896
|
-
}, {
|
|
1897
|
-
readonly inputs: readonly [{
|
|
1898
|
-
readonly internalType: "contract IFeeModule";
|
|
1899
|
-
readonly name: "newFeeModule";
|
|
1900
|
-
readonly type: "address";
|
|
1901
|
-
}];
|
|
1902
|
-
readonly name: "updateFeeModule";
|
|
1903
|
-
readonly outputs: readonly [];
|
|
1904
|
-
readonly stateMutability: "nonpayable";
|
|
1905
|
-
readonly type: "function";
|
|
1906
|
-
}, {
|
|
1907
|
-
readonly inputs: readonly [{
|
|
1908
|
-
readonly internalType: "address";
|
|
1909
|
-
readonly name: "newFeeRecipient";
|
|
1910
|
-
readonly type: "address";
|
|
1911
|
-
}];
|
|
1912
|
-
readonly name: "updateFeeRecipient";
|
|
1913
|
-
readonly outputs: readonly [];
|
|
1914
|
-
readonly stateMutability: "nonpayable";
|
|
1915
|
-
readonly type: "function";
|
|
1916
|
-
}, {
|
|
1917
|
-
readonly inputs: readonly [{
|
|
1918
|
-
readonly internalType: "contract ERC20";
|
|
1919
|
-
readonly name: "depositAsset";
|
|
1920
|
-
readonly type: "address";
|
|
1921
|
-
}, {
|
|
1922
|
-
readonly internalType: "bool";
|
|
1923
|
-
readonly name: "enabled";
|
|
1924
|
-
readonly type: "bool";
|
|
1925
|
-
}];
|
|
1926
|
-
readonly name: "updateKytStatus";
|
|
1927
|
-
readonly outputs: readonly [];
|
|
1928
|
-
readonly stateMutability: "nonpayable";
|
|
1929
|
-
readonly type: "function";
|
|
1930
|
-
}, {
|
|
1931
|
-
readonly inputs: readonly [{
|
|
1932
|
-
readonly internalType: "uint256";
|
|
1933
|
-
readonly name: "newSupplyCapInBase";
|
|
1934
|
-
readonly type: "uint256";
|
|
1935
|
-
}];
|
|
1936
|
-
readonly name: "updateSupplyCapInBase";
|
|
1937
|
-
readonly outputs: readonly [];
|
|
1938
|
-
readonly stateMutability: "nonpayable";
|
|
1939
|
-
readonly type: "function";
|
|
1940
1664
|
}];
|
|
1941
1665
|
address: `0x${string}`;
|
|
1942
1666
|
functionName: "depositWithPermit";
|
|
1943
|
-
args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`,
|
|
1667
|
+
args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`, bigint, number, `0x${string}`, `0x${string}`];
|
|
1944
1668
|
chainId: number;
|
|
1945
1669
|
} | {
|
|
1946
|
-
depositType: typeof DepositType.
|
|
1670
|
+
depositType: typeof DepositType.KYT;
|
|
1947
1671
|
abi: readonly [{
|
|
1948
1672
|
readonly inputs: readonly [{
|
|
1949
1673
|
readonly internalType: "contract TellerWithMultiAssetSupport";
|
|
@@ -1961,6 +1685,26 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1961
1685
|
readonly internalType: "bool";
|
|
1962
1686
|
readonly name: "_isNativeDepositSupported";
|
|
1963
1687
|
readonly type: "bool";
|
|
1688
|
+
}, {
|
|
1689
|
+
readonly internalType: "uint256";
|
|
1690
|
+
readonly name: "_supplyCap";
|
|
1691
|
+
readonly type: "uint256";
|
|
1692
|
+
}, {
|
|
1693
|
+
readonly internalType: "contract IFeeModule";
|
|
1694
|
+
readonly name: "_feeModule";
|
|
1695
|
+
readonly type: "address";
|
|
1696
|
+
}, {
|
|
1697
|
+
readonly internalType: "address";
|
|
1698
|
+
readonly name: "_feeRecipient";
|
|
1699
|
+
readonly type: "address";
|
|
1700
|
+
}, {
|
|
1701
|
+
readonly internalType: "address";
|
|
1702
|
+
readonly name: "_registry";
|
|
1703
|
+
readonly type: "address";
|
|
1704
|
+
}, {
|
|
1705
|
+
readonly internalType: "string";
|
|
1706
|
+
readonly name: "_policyID";
|
|
1707
|
+
readonly type: "string";
|
|
1964
1708
|
}, {
|
|
1965
1709
|
readonly internalType: "address";
|
|
1966
1710
|
readonly name: "_owner";
|
|
@@ -1968,10 +1712,26 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1968
1712
|
}];
|
|
1969
1713
|
readonly stateMutability: "nonpayable";
|
|
1970
1714
|
readonly type: "constructor";
|
|
1715
|
+
}, {
|
|
1716
|
+
readonly inputs: readonly [];
|
|
1717
|
+
readonly name: "FeesExceedOrEqualAmount";
|
|
1718
|
+
readonly type: "error";
|
|
1971
1719
|
}, {
|
|
1972
1720
|
readonly inputs: readonly [];
|
|
1973
1721
|
readonly name: "IncorrectNativeDepositAmount";
|
|
1974
1722
|
readonly type: "error";
|
|
1723
|
+
}, {
|
|
1724
|
+
readonly inputs: readonly [{
|
|
1725
|
+
readonly internalType: "uint256";
|
|
1726
|
+
readonly name: "actual";
|
|
1727
|
+
readonly type: "uint256";
|
|
1728
|
+
}, {
|
|
1729
|
+
readonly internalType: "uint256";
|
|
1730
|
+
readonly name: "minimum";
|
|
1731
|
+
readonly type: "uint256";
|
|
1732
|
+
}];
|
|
1733
|
+
readonly name: "InsufficientSharesAfterFees";
|
|
1734
|
+
readonly type: "error";
|
|
1975
1735
|
}, {
|
|
1976
1736
|
readonly inputs: readonly [];
|
|
1977
1737
|
readonly name: "NativeDepositNotSupported";
|
|
@@ -1980,10 +1740,34 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
1980
1740
|
readonly inputs: readonly [];
|
|
1981
1741
|
readonly name: "NativeWrapperAccountantDecimalsMismatch";
|
|
1982
1742
|
readonly type: "error";
|
|
1743
|
+
}, {
|
|
1744
|
+
readonly inputs: readonly [{
|
|
1745
|
+
readonly internalType: "address";
|
|
1746
|
+
readonly name: "addressEmptyCode";
|
|
1747
|
+
readonly type: "address";
|
|
1748
|
+
}];
|
|
1749
|
+
readonly name: "NoCode";
|
|
1750
|
+
readonly type: "error";
|
|
1983
1751
|
}, {
|
|
1984
1752
|
readonly inputs: readonly [];
|
|
1985
1753
|
readonly name: "PermitFailedAndAllowanceTooLow";
|
|
1986
1754
|
readonly type: "error";
|
|
1755
|
+
}, {
|
|
1756
|
+
readonly inputs: readonly [{
|
|
1757
|
+
readonly internalType: "uint256";
|
|
1758
|
+
readonly name: "resultingValue";
|
|
1759
|
+
readonly type: "uint256";
|
|
1760
|
+
}, {
|
|
1761
|
+
readonly internalType: "uint256";
|
|
1762
|
+
readonly name: "supplyCapInBase";
|
|
1763
|
+
readonly type: "uint256";
|
|
1764
|
+
}];
|
|
1765
|
+
readonly name: "SupplyCapInBaseError";
|
|
1766
|
+
readonly type: "error";
|
|
1767
|
+
}, {
|
|
1768
|
+
readonly inputs: readonly [];
|
|
1769
|
+
readonly name: "UnauthorizedTransaction";
|
|
1770
|
+
readonly type: "error";
|
|
1987
1771
|
}, {
|
|
1988
1772
|
readonly inputs: readonly [];
|
|
1989
1773
|
readonly name: "ZeroAddress";
|
|
@@ -2032,32 +1816,117 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2032
1816
|
readonly type: "address";
|
|
2033
1817
|
}, {
|
|
2034
1818
|
readonly indexed: false;
|
|
2035
|
-
readonly internalType: "bytes32";
|
|
2036
|
-
readonly name: "depositHash";
|
|
2037
|
-
readonly type: "bytes32";
|
|
1819
|
+
readonly internalType: "bytes32";
|
|
1820
|
+
readonly name: "depositHash";
|
|
1821
|
+
readonly type: "bytes32";
|
|
1822
|
+
}, {
|
|
1823
|
+
readonly indexed: true;
|
|
1824
|
+
readonly internalType: "bytes";
|
|
1825
|
+
readonly name: "distributorCode";
|
|
1826
|
+
readonly type: "bytes";
|
|
1827
|
+
}];
|
|
1828
|
+
readonly name: "DepositWithDistributorCode";
|
|
1829
|
+
readonly type: "event";
|
|
1830
|
+
}, {
|
|
1831
|
+
readonly anonymous: false;
|
|
1832
|
+
readonly inputs: readonly [{
|
|
1833
|
+
readonly indexed: true;
|
|
1834
|
+
readonly internalType: "contract IFeeModule";
|
|
1835
|
+
readonly name: "newFeeModule";
|
|
1836
|
+
readonly type: "address";
|
|
1837
|
+
}];
|
|
1838
|
+
readonly name: "FeeModuleUpdated";
|
|
1839
|
+
readonly type: "event";
|
|
1840
|
+
}, {
|
|
1841
|
+
readonly anonymous: false;
|
|
1842
|
+
readonly inputs: readonly [{
|
|
1843
|
+
readonly indexed: true;
|
|
1844
|
+
readonly internalType: "address";
|
|
1845
|
+
readonly name: "newFeeRecipient";
|
|
1846
|
+
readonly type: "address";
|
|
1847
|
+
}];
|
|
1848
|
+
readonly name: "FeeRecipientUpdated";
|
|
1849
|
+
readonly type: "event";
|
|
1850
|
+
}, {
|
|
1851
|
+
readonly anonymous: false;
|
|
1852
|
+
readonly inputs: readonly [{
|
|
1853
|
+
readonly indexed: true;
|
|
1854
|
+
readonly internalType: "contract ERC20";
|
|
1855
|
+
readonly name: "depositAsset";
|
|
1856
|
+
readonly type: "address";
|
|
1857
|
+
}, {
|
|
1858
|
+
readonly indexed: true;
|
|
1859
|
+
readonly internalType: "bool";
|
|
1860
|
+
readonly name: "enabled";
|
|
1861
|
+
readonly type: "bool";
|
|
1862
|
+
}];
|
|
1863
|
+
readonly name: "KytStatusUpdated";
|
|
1864
|
+
readonly type: "event";
|
|
1865
|
+
}, {
|
|
1866
|
+
readonly anonymous: false;
|
|
1867
|
+
readonly inputs: readonly [{
|
|
1868
|
+
readonly indexed: true;
|
|
1869
|
+
readonly internalType: "address";
|
|
1870
|
+
readonly name: "user";
|
|
1871
|
+
readonly type: "address";
|
|
1872
|
+
}, {
|
|
1873
|
+
readonly indexed: true;
|
|
1874
|
+
readonly internalType: "address";
|
|
1875
|
+
readonly name: "newOwner";
|
|
1876
|
+
readonly type: "address";
|
|
1877
|
+
}];
|
|
1878
|
+
readonly name: "OwnershipTransferred";
|
|
1879
|
+
readonly type: "event";
|
|
1880
|
+
}, {
|
|
1881
|
+
readonly anonymous: false;
|
|
1882
|
+
readonly inputs: readonly [{
|
|
1883
|
+
readonly indexed: false;
|
|
1884
|
+
readonly internalType: "string";
|
|
1885
|
+
readonly name: "oldPolicyID";
|
|
1886
|
+
readonly type: "string";
|
|
2038
1887
|
}, {
|
|
2039
|
-
readonly indexed:
|
|
2040
|
-
readonly internalType: "
|
|
2041
|
-
readonly name: "
|
|
2042
|
-
readonly type: "
|
|
1888
|
+
readonly indexed: false;
|
|
1889
|
+
readonly internalType: "string";
|
|
1890
|
+
readonly name: "newPolicyID";
|
|
1891
|
+
readonly type: "string";
|
|
2043
1892
|
}];
|
|
2044
|
-
readonly name: "
|
|
1893
|
+
readonly name: "PredicatePolicyIDUpdated";
|
|
2045
1894
|
readonly type: "event";
|
|
2046
1895
|
}, {
|
|
2047
1896
|
readonly anonymous: false;
|
|
2048
1897
|
readonly inputs: readonly [{
|
|
2049
1898
|
readonly indexed: true;
|
|
2050
1899
|
readonly internalType: "address";
|
|
2051
|
-
readonly name: "
|
|
1900
|
+
readonly name: "oldRegistry";
|
|
2052
1901
|
readonly type: "address";
|
|
2053
1902
|
}, {
|
|
2054
1903
|
readonly indexed: true;
|
|
2055
1904
|
readonly internalType: "address";
|
|
2056
|
-
readonly name: "
|
|
1905
|
+
readonly name: "newRegistry";
|
|
2057
1906
|
readonly type: "address";
|
|
2058
1907
|
}];
|
|
2059
|
-
readonly name: "
|
|
1908
|
+
readonly name: "PredicateRegistryUpdated";
|
|
1909
|
+
readonly type: "event";
|
|
1910
|
+
}, {
|
|
1911
|
+
readonly anonymous: false;
|
|
1912
|
+
readonly inputs: readonly [{
|
|
1913
|
+
readonly indexed: false;
|
|
1914
|
+
readonly internalType: "uint256";
|
|
1915
|
+
readonly name: "newSupplyCapInBase";
|
|
1916
|
+
readonly type: "uint256";
|
|
1917
|
+
}];
|
|
1918
|
+
readonly name: "SupplyCapInBaseUpdated";
|
|
2060
1919
|
readonly type: "event";
|
|
1920
|
+
}, {
|
|
1921
|
+
readonly inputs: readonly [];
|
|
1922
|
+
readonly name: "PREDICATE_DEPOSIT_SIGNATURE";
|
|
1923
|
+
readonly outputs: readonly [{
|
|
1924
|
+
readonly internalType: "string";
|
|
1925
|
+
readonly name: "";
|
|
1926
|
+
readonly type: "string";
|
|
1927
|
+
}];
|
|
1928
|
+
readonly stateMutability: "view";
|
|
1929
|
+
readonly type: "function";
|
|
2061
1930
|
}, {
|
|
2062
1931
|
readonly inputs: readonly [];
|
|
2063
1932
|
readonly name: "authority";
|
|
@@ -2099,6 +1968,27 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2099
1968
|
readonly internalType: "bytes";
|
|
2100
1969
|
readonly name: "distributorCode";
|
|
2101
1970
|
readonly type: "bytes";
|
|
1971
|
+
}, {
|
|
1972
|
+
readonly components: readonly [{
|
|
1973
|
+
readonly internalType: "string";
|
|
1974
|
+
readonly name: "uuid";
|
|
1975
|
+
readonly type: "string";
|
|
1976
|
+
}, {
|
|
1977
|
+
readonly internalType: "uint256";
|
|
1978
|
+
readonly name: "expiration";
|
|
1979
|
+
readonly type: "uint256";
|
|
1980
|
+
}, {
|
|
1981
|
+
readonly internalType: "address";
|
|
1982
|
+
readonly name: "attester";
|
|
1983
|
+
readonly type: "address";
|
|
1984
|
+
}, {
|
|
1985
|
+
readonly internalType: "bytes";
|
|
1986
|
+
readonly name: "signature";
|
|
1987
|
+
readonly type: "bytes";
|
|
1988
|
+
}];
|
|
1989
|
+
readonly internalType: "struct Attestation";
|
|
1990
|
+
readonly name: "_attestation";
|
|
1991
|
+
readonly type: "tuple";
|
|
2102
1992
|
}];
|
|
2103
1993
|
readonly name: "deposit";
|
|
2104
1994
|
readonly outputs: readonly [{
|
|
@@ -2125,6 +2015,27 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2125
2015
|
readonly internalType: "bytes";
|
|
2126
2016
|
readonly name: "distributorCode";
|
|
2127
2017
|
readonly type: "bytes";
|
|
2018
|
+
}, {
|
|
2019
|
+
readonly components: readonly [{
|
|
2020
|
+
readonly internalType: "string";
|
|
2021
|
+
readonly name: "uuid";
|
|
2022
|
+
readonly type: "string";
|
|
2023
|
+
}, {
|
|
2024
|
+
readonly internalType: "uint256";
|
|
2025
|
+
readonly name: "expiration";
|
|
2026
|
+
readonly type: "uint256";
|
|
2027
|
+
}, {
|
|
2028
|
+
readonly internalType: "address";
|
|
2029
|
+
readonly name: "attester";
|
|
2030
|
+
readonly type: "address";
|
|
2031
|
+
}, {
|
|
2032
|
+
readonly internalType: "bytes";
|
|
2033
|
+
readonly name: "signature";
|
|
2034
|
+
readonly type: "bytes";
|
|
2035
|
+
}];
|
|
2036
|
+
readonly internalType: "struct Attestation";
|
|
2037
|
+
readonly name: "_attestation";
|
|
2038
|
+
readonly type: "tuple";
|
|
2128
2039
|
}];
|
|
2129
2040
|
readonly name: "depositNative";
|
|
2130
2041
|
readonly outputs: readonly [{
|
|
@@ -2165,6 +2076,27 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2165
2076
|
readonly internalType: "bytes";
|
|
2166
2077
|
readonly name: "distributorCode";
|
|
2167
2078
|
readonly type: "bytes";
|
|
2079
|
+
}, {
|
|
2080
|
+
readonly components: readonly [{
|
|
2081
|
+
readonly internalType: "string";
|
|
2082
|
+
readonly name: "uuid";
|
|
2083
|
+
readonly type: "string";
|
|
2084
|
+
}, {
|
|
2085
|
+
readonly internalType: "uint256";
|
|
2086
|
+
readonly name: "expiration";
|
|
2087
|
+
readonly type: "uint256";
|
|
2088
|
+
}, {
|
|
2089
|
+
readonly internalType: "address";
|
|
2090
|
+
readonly name: "attester";
|
|
2091
|
+
readonly type: "address";
|
|
2092
|
+
}, {
|
|
2093
|
+
readonly internalType: "bytes";
|
|
2094
|
+
readonly name: "signature";
|
|
2095
|
+
readonly type: "bytes";
|
|
2096
|
+
}];
|
|
2097
|
+
readonly internalType: "struct Attestation";
|
|
2098
|
+
readonly name: "_attestation";
|
|
2099
|
+
readonly type: "tuple";
|
|
2168
2100
|
}, {
|
|
2169
2101
|
readonly internalType: "uint256";
|
|
2170
2102
|
readonly name: "deadline";
|
|
@@ -2190,6 +2122,46 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2190
2122
|
}];
|
|
2191
2123
|
readonly stateMutability: "nonpayable";
|
|
2192
2124
|
readonly type: "function";
|
|
2125
|
+
}, {
|
|
2126
|
+
readonly inputs: readonly [];
|
|
2127
|
+
readonly name: "feeModule";
|
|
2128
|
+
readonly outputs: readonly [{
|
|
2129
|
+
readonly internalType: "contract IFeeModule";
|
|
2130
|
+
readonly name: "";
|
|
2131
|
+
readonly type: "address";
|
|
2132
|
+
}];
|
|
2133
|
+
readonly stateMutability: "view";
|
|
2134
|
+
readonly type: "function";
|
|
2135
|
+
}, {
|
|
2136
|
+
readonly inputs: readonly [];
|
|
2137
|
+
readonly name: "feeRecipient";
|
|
2138
|
+
readonly outputs: readonly [{
|
|
2139
|
+
readonly internalType: "address";
|
|
2140
|
+
readonly name: "";
|
|
2141
|
+
readonly type: "address";
|
|
2142
|
+
}];
|
|
2143
|
+
readonly stateMutability: "view";
|
|
2144
|
+
readonly type: "function";
|
|
2145
|
+
}, {
|
|
2146
|
+
readonly inputs: readonly [];
|
|
2147
|
+
readonly name: "getPolicyID";
|
|
2148
|
+
readonly outputs: readonly [{
|
|
2149
|
+
readonly internalType: "string";
|
|
2150
|
+
readonly name: "policyID";
|
|
2151
|
+
readonly type: "string";
|
|
2152
|
+
}];
|
|
2153
|
+
readonly stateMutability: "view";
|
|
2154
|
+
readonly type: "function";
|
|
2155
|
+
}, {
|
|
2156
|
+
readonly inputs: readonly [];
|
|
2157
|
+
readonly name: "getRegistry";
|
|
2158
|
+
readonly outputs: readonly [{
|
|
2159
|
+
readonly internalType: "address";
|
|
2160
|
+
readonly name: "";
|
|
2161
|
+
readonly type: "address";
|
|
2162
|
+
}];
|
|
2163
|
+
readonly stateMutability: "view";
|
|
2164
|
+
readonly type: "function";
|
|
2193
2165
|
}, {
|
|
2194
2166
|
readonly inputs: readonly [];
|
|
2195
2167
|
readonly name: "isNativeDepositSupported";
|
|
@@ -2200,6 +2172,20 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2200
2172
|
}];
|
|
2201
2173
|
readonly stateMutability: "view";
|
|
2202
2174
|
readonly type: "function";
|
|
2175
|
+
}, {
|
|
2176
|
+
readonly inputs: readonly [{
|
|
2177
|
+
readonly internalType: "contract ERC20";
|
|
2178
|
+
readonly name: "";
|
|
2179
|
+
readonly type: "address";
|
|
2180
|
+
}];
|
|
2181
|
+
readonly name: "kytEnabled";
|
|
2182
|
+
readonly outputs: readonly [{
|
|
2183
|
+
readonly internalType: "bool";
|
|
2184
|
+
readonly name: "";
|
|
2185
|
+
readonly type: "bool";
|
|
2186
|
+
}];
|
|
2187
|
+
readonly stateMutability: "view";
|
|
2188
|
+
readonly type: "function";
|
|
2203
2189
|
}, {
|
|
2204
2190
|
readonly inputs: readonly [];
|
|
2205
2191
|
readonly name: "nativeWrapper";
|
|
@@ -2230,6 +2216,36 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2230
2216
|
readonly outputs: readonly [];
|
|
2231
2217
|
readonly stateMutability: "nonpayable";
|
|
2232
2218
|
readonly type: "function";
|
|
2219
|
+
}, {
|
|
2220
|
+
readonly inputs: readonly [{
|
|
2221
|
+
readonly internalType: "string";
|
|
2222
|
+
readonly name: "_policyID";
|
|
2223
|
+
readonly type: "string";
|
|
2224
|
+
}];
|
|
2225
|
+
readonly name: "setPolicyID";
|
|
2226
|
+
readonly outputs: readonly [];
|
|
2227
|
+
readonly stateMutability: "nonpayable";
|
|
2228
|
+
readonly type: "function";
|
|
2229
|
+
}, {
|
|
2230
|
+
readonly inputs: readonly [{
|
|
2231
|
+
readonly internalType: "address";
|
|
2232
|
+
readonly name: "_registry";
|
|
2233
|
+
readonly type: "address";
|
|
2234
|
+
}];
|
|
2235
|
+
readonly name: "setRegistry";
|
|
2236
|
+
readonly outputs: readonly [];
|
|
2237
|
+
readonly stateMutability: "nonpayable";
|
|
2238
|
+
readonly type: "function";
|
|
2239
|
+
}, {
|
|
2240
|
+
readonly inputs: readonly [];
|
|
2241
|
+
readonly name: "supplyCapInBase";
|
|
2242
|
+
readonly outputs: readonly [{
|
|
2243
|
+
readonly internalType: "uint256";
|
|
2244
|
+
readonly name: "";
|
|
2245
|
+
readonly type: "uint256";
|
|
2246
|
+
}];
|
|
2247
|
+
readonly stateMutability: "view";
|
|
2248
|
+
readonly type: "function";
|
|
2233
2249
|
}, {
|
|
2234
2250
|
readonly inputs: readonly [];
|
|
2235
2251
|
readonly name: "teller";
|
|
@@ -2250,10 +2266,54 @@ declare function prepareDepositWithPermitTxData(params: PrepareDepositWithPermit
|
|
|
2250
2266
|
readonly outputs: readonly [];
|
|
2251
2267
|
readonly stateMutability: "nonpayable";
|
|
2252
2268
|
readonly type: "function";
|
|
2269
|
+
}, {
|
|
2270
|
+
readonly inputs: readonly [{
|
|
2271
|
+
readonly internalType: "contract IFeeModule";
|
|
2272
|
+
readonly name: "newFeeModule";
|
|
2273
|
+
readonly type: "address";
|
|
2274
|
+
}];
|
|
2275
|
+
readonly name: "updateFeeModule";
|
|
2276
|
+
readonly outputs: readonly [];
|
|
2277
|
+
readonly stateMutability: "nonpayable";
|
|
2278
|
+
readonly type: "function";
|
|
2279
|
+
}, {
|
|
2280
|
+
readonly inputs: readonly [{
|
|
2281
|
+
readonly internalType: "address";
|
|
2282
|
+
readonly name: "newFeeRecipient";
|
|
2283
|
+
readonly type: "address";
|
|
2284
|
+
}];
|
|
2285
|
+
readonly name: "updateFeeRecipient";
|
|
2286
|
+
readonly outputs: readonly [];
|
|
2287
|
+
readonly stateMutability: "nonpayable";
|
|
2288
|
+
readonly type: "function";
|
|
2289
|
+
}, {
|
|
2290
|
+
readonly inputs: readonly [{
|
|
2291
|
+
readonly internalType: "contract ERC20";
|
|
2292
|
+
readonly name: "depositAsset";
|
|
2293
|
+
readonly type: "address";
|
|
2294
|
+
}, {
|
|
2295
|
+
readonly internalType: "bool";
|
|
2296
|
+
readonly name: "enabled";
|
|
2297
|
+
readonly type: "bool";
|
|
2298
|
+
}];
|
|
2299
|
+
readonly name: "updateKytStatus";
|
|
2300
|
+
readonly outputs: readonly [];
|
|
2301
|
+
readonly stateMutability: "nonpayable";
|
|
2302
|
+
readonly type: "function";
|
|
2303
|
+
}, {
|
|
2304
|
+
readonly inputs: readonly [{
|
|
2305
|
+
readonly internalType: "uint256";
|
|
2306
|
+
readonly name: "newSupplyCapInBase";
|
|
2307
|
+
readonly type: "uint256";
|
|
2308
|
+
}];
|
|
2309
|
+
readonly name: "updateSupplyCapInBase";
|
|
2310
|
+
readonly outputs: readonly [];
|
|
2311
|
+
readonly stateMutability: "nonpayable";
|
|
2312
|
+
readonly type: "function";
|
|
2253
2313
|
}];
|
|
2254
2314
|
address: `0x${string}`;
|
|
2255
2315
|
functionName: "depositWithPermit";
|
|
2256
|
-
args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`, bigint, number, `0x${string}`, `0x${string}`];
|
|
2316
|
+
args: readonly [`0x${string}`, bigint, bigint, `0x${string}`, `0x${string}`, Attestation, bigint, number, `0x${string}`, `0x${string}`];
|
|
2257
2317
|
chainId: number;
|
|
2258
2318
|
}>;
|
|
2259
2319
|
|
|
@@ -4844,6 +4904,33 @@ interface WithdrawOrderTxData {
|
|
|
4844
4904
|
*/
|
|
4845
4905
|
declare const prepareWithdrawOrderTxData: ({ vaultName, wantAsset, userAddress, chainId, amountOffer, }: PrepareWithdrawOrderTxDataParams) => Promise<WithdrawOrderTxData>;
|
|
4846
4906
|
|
|
4907
|
+
/**
|
|
4908
|
+
* @file Atomic withdrawal functionality for WithdrawQueue contract
|
|
4909
|
+
* @module vaults/withdraw/atomic-withdraw
|
|
4910
|
+
*
|
|
4911
|
+
* Builds transaction data for WithdrawQueue.submitOrderAndProcessAll.
|
|
4912
|
+
* Unlike prepareWithdrawOrderTxData (which calls submitOrder and queues
|
|
4913
|
+
* the withdrawal for later processing), this submits the order and
|
|
4914
|
+
* processes the entire queue in the same transaction.
|
|
4915
|
+
*/
|
|
4916
|
+
|
|
4917
|
+
interface AtomicWithdrawOrderTxData {
|
|
4918
|
+
abi: typeof WithdrawQueueAbi;
|
|
4919
|
+
address: Address;
|
|
4920
|
+
functionName: 'submitOrderAndProcessAll';
|
|
4921
|
+
args: [
|
|
4922
|
+
{
|
|
4923
|
+
amountOffer: bigint;
|
|
4924
|
+
wantAsset: Address;
|
|
4925
|
+
intendedDepositor: Address;
|
|
4926
|
+
receiver: Address;
|
|
4927
|
+
refundReceiver: Address;
|
|
4928
|
+
signatureParams: typeof EMPTY_SIGNATURE_PARAMS;
|
|
4929
|
+
}
|
|
4930
|
+
];
|
|
4931
|
+
chainId: number;
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4847
4934
|
/**
|
|
4848
4935
|
* @file Unified withdrawal module with wrapper functions
|
|
4849
4936
|
* @module vaults/withdraw
|
|
@@ -4969,10 +5056,11 @@ interface PrepareWithdrawalParams {
|
|
|
4969
5056
|
chainId: ChainId;
|
|
4970
5057
|
}
|
|
4971
5058
|
/**
|
|
4972
|
-
* Unified withdrawal result
|
|
4973
|
-
*
|
|
5059
|
+
* Unified withdrawal result.
|
|
5060
|
+
* Routes to atomic (submitOrderAndProcessAll) or standard (submitOrder)
|
|
5061
|
+
* based on vault.atomicWithdrawal configuration.
|
|
4974
5062
|
*/
|
|
4975
|
-
type PrepareWithdrawalResult = WithdrawOrderTxData;
|
|
5063
|
+
type PrepareWithdrawalResult = WithdrawOrderTxData | AtomicWithdrawOrderTxData;
|
|
4976
5064
|
/**
|
|
4977
5065
|
* Unified withdrawal preparation wrapper
|
|
4978
5066
|
*
|
|
@@ -5023,4 +5111,4 @@ declare function prepareWithdrawal(params: PrepareWithdrawalParams): Promise<Pre
|
|
|
5023
5111
|
*/
|
|
5024
5112
|
declare function prepareWithdrawalAuthorization(params: PrepareWithdrawalAuthorizationParams): Promise<WithdrawAuthorizationResult>;
|
|
5025
5113
|
|
|
5026
|
-
export { prepareDepositWithPermitTxData as $, type
|
|
5114
|
+
export { prepareDepositWithPermitTxData as $, type Attestation as A, WithdrawAuthMethod as B, type CancelWithdrawOrderTxData as C, DepositAuthMethod as D, type EIP712Domain as E, type WithdrawAuthorizationResult as F, type WithdrawOrderTxData as G, isAlreadyApprovedAuth as H, isApprovalAuth as I, isKytDeposit as J, type KytDepositTxData as K, isPermitAuth as L, isStandardDeposit as M, isWithdrawAlreadyApprovedAuth as N, isWithdrawApprovalAuth as O, PERMIT_TYPES as P, parsePermitSignature as Q, prepareApproveDepositTokenTxData as R, type StandardDepositResult as S, prepareApproveWithdrawOrderTxData as T, type UnencodedDepositWithPermitData as U, prepareCancelWithdrawOrderTxData as V, type WithdrawAlreadyApprovedAuthorizationResult as W, prepareDeposit as X, prepareDepositAuthorization as Y, prepareDepositPermitSignature as Z, prepareDepositTxData as _, type AlreadyApprovedAuthorizationResult as a, prepareWithdrawOrderTxData as a0, prepareWithdrawal as a1, prepareWithdrawalAuthorization as a2, toEthSignTypedDataV4 as a3, type PrepareApproveDepositTokenTxParams as a4, type PrepareApproveWithdrawOrderTxDataParams as a5, type PrepareDepositTxDataParams as a6, type ApprovalAuthorizationResult as b, type ApproveDepositTokenTxData as c, type ApproveWithdrawOrderTxData as d, type DepositAuthorizationResult as e, type DepositTxData as f, DepositType as g, type DepositWithPermitData as h, type KytDepositWithPermitData as i, type ParsedPermitSignature as j, type PermitAuthorizationResult as k, type PermitDepositResult as l, type PermitSignatureData as m, type PrepareCancelWithdrawOrderTxDataParams as n, type PrepareDepositAuthorizationParams as o, type PrepareDepositParams as p, type PrepareDepositPermitSignatureParams as q, type PrepareDepositResult as r, type PrepareDepositWithPermitTxDataParams as s, type PrepareWithdrawOrderTxDataParams as t, type PrepareWithdrawalAuthorizationParams as u, type PrepareWithdrawalParams as v, type PrepareWithdrawalResult as w, type StandardDepositTxData as x, type StandardDepositWithPermitData as y, type WithdrawApprovalAuthorizationResult as z };
|