viem 2.55.8 → 2.55.10

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.
Files changed (90) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js +1 -1
  3. package/_cjs/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  4. package/_cjs/actions/public/estimateFeesPerGas.js +1 -1
  5. package/_cjs/actions/public/estimateFeesPerGas.js.map +1 -1
  6. package/_cjs/actions/public/fillTransaction.js +1 -1
  7. package/_cjs/actions/public/fillTransaction.js.map +1 -1
  8. package/_cjs/chains/definitions/0gMainnet.js +1 -1
  9. package/_cjs/chains/definitions/0gMainnet.js.map +1 -1
  10. package/_cjs/chains/definitions/0gTestnet.js +2 -2
  11. package/_cjs/chains/definitions/0gTestnet.js.map +1 -1
  12. package/_cjs/chains/definitions/eduChain.js +9 -2
  13. package/_cjs/chains/definitions/eduChain.js.map +1 -1
  14. package/_cjs/chains/definitions/eduChainTestnet.js +3 -4
  15. package/_cjs/chains/definitions/eduChainTestnet.js.map +1 -1
  16. package/_cjs/chains/definitions/polygonAmoy.js +1 -1
  17. package/_cjs/chains/definitions/polygonAmoy.js.map +1 -1
  18. package/_cjs/errors/version.js +1 -1
  19. package/_cjs/errors/version.js.map +1 -1
  20. package/_cjs/tempo/Abis.js +918 -543
  21. package/_cjs/tempo/Abis.js.map +1 -1
  22. package/_cjs/tempo/Addresses.js +2 -1
  23. package/_cjs/tempo/Addresses.js.map +1 -1
  24. package/_cjs/tempo/Decorator.js.map +1 -1
  25. package/_cjs/tempo/actions/earn.js +171 -137
  26. package/_cjs/tempo/actions/earn.js.map +1 -1
  27. package/_cjs/tempo/zones/Abis.js +6 -0
  28. package/_cjs/tempo/zones/Abis.js.map +1 -1
  29. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js +1 -1
  30. package/_esm/account-abstraction/utils/formatters/userOperationRequest.js.map +1 -1
  31. package/_esm/actions/public/estimateFeesPerGas.js +1 -1
  32. package/_esm/actions/public/estimateFeesPerGas.js.map +1 -1
  33. package/_esm/actions/public/fillTransaction.js +1 -1
  34. package/_esm/actions/public/fillTransaction.js.map +1 -1
  35. package/_esm/chains/definitions/0gMainnet.js +1 -1
  36. package/_esm/chains/definitions/0gMainnet.js.map +1 -1
  37. package/_esm/chains/definitions/0gTestnet.js +2 -2
  38. package/_esm/chains/definitions/0gTestnet.js.map +1 -1
  39. package/_esm/chains/definitions/eduChain.js +9 -2
  40. package/_esm/chains/definitions/eduChain.js.map +1 -1
  41. package/_esm/chains/definitions/eduChainTestnet.js +3 -4
  42. package/_esm/chains/definitions/eduChainTestnet.js.map +1 -1
  43. package/_esm/chains/definitions/polygonAmoy.js +1 -1
  44. package/_esm/chains/definitions/polygonAmoy.js.map +1 -1
  45. package/_esm/errors/version.js +1 -1
  46. package/_esm/errors/version.js.map +1 -1
  47. package/_esm/tempo/Abis.js +919 -544
  48. package/_esm/tempo/Abis.js.map +1 -1
  49. package/_esm/tempo/Addresses.js +1 -0
  50. package/_esm/tempo/Addresses.js.map +1 -1
  51. package/_esm/tempo/Decorator.js.map +1 -1
  52. package/_esm/tempo/actions/earn.js +214 -174
  53. package/_esm/tempo/actions/earn.js.map +1 -1
  54. package/_esm/tempo/zones/Abis.js +6 -0
  55. package/_esm/tempo/zones/Abis.js.map +1 -1
  56. package/_types/chains/definitions/0gMainnet.d.ts +1 -1
  57. package/_types/chains/definitions/0gTestnet.d.ts +3 -3
  58. package/_types/chains/definitions/eduChain.d.ts +9 -11
  59. package/_types/chains/definitions/eduChain.d.ts.map +1 -1
  60. package/_types/chains/definitions/eduChainTestnet.d.ts +3 -4
  61. package/_types/chains/definitions/eduChainTestnet.d.ts.map +1 -1
  62. package/_types/chains/definitions/polygonAmoy.d.ts +1 -1
  63. package/_types/errors/version.d.ts +1 -1
  64. package/_types/errors/version.d.ts.map +1 -1
  65. package/_types/package.json +1 -0
  66. package/_types/tempo/Abis.d.ts +1423 -777
  67. package/_types/tempo/Abis.d.ts.map +1 -1
  68. package/_types/tempo/Addresses.d.ts +1 -0
  69. package/_types/tempo/Addresses.d.ts.map +1 -1
  70. package/_types/tempo/Decorator.d.ts +21 -15
  71. package/_types/tempo/Decorator.d.ts.map +1 -1
  72. package/_types/tempo/actions/earn.d.ts +850 -1913
  73. package/_types/tempo/actions/earn.d.ts.map +1 -1
  74. package/_types/tempo/zones/Abis.d.ts +20 -0
  75. package/_types/tempo/zones/Abis.d.ts.map +1 -1
  76. package/account-abstraction/utils/formatters/userOperationRequest.ts +4 -3
  77. package/actions/public/estimateFeesPerGas.ts +1 -1
  78. package/actions/public/fillTransaction.ts +1 -1
  79. package/chains/definitions/0gMainnet.ts +1 -1
  80. package/chains/definitions/0gTestnet.ts +2 -2
  81. package/chains/definitions/eduChain.ts +9 -2
  82. package/chains/definitions/eduChainTestnet.ts +3 -4
  83. package/chains/definitions/polygonAmoy.ts +1 -1
  84. package/errors/version.ts +1 -1
  85. package/package.json +2 -2
  86. package/tempo/Abis.ts +920 -545
  87. package/tempo/Addresses.ts +1 -0
  88. package/tempo/Decorator.ts +21 -15
  89. package/tempo/actions/earn.ts +311 -250
  90. package/tempo/zones/Abis.ts +6 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.zoneGatewayCallbackData = exports.zoneGatewayBase = exports.zoneGateway = exports.vedaEngine = exports.vaultRewards = exports.vaultEngineShares = exports.vaultEngineAsync = exports.vaultEngine = exports.vaultAdapter = exports.erc4626Engine = exports.earnFactory = exports.abis = exports.validatorConfigV2 = exports.storageCredits = exports.validatorConfig = exports.feeAmm = exports.feeManager = exports.tip403Registry = exports.tip20Factory = exports.tip20ChannelReserve = exports.tip20 = exports.stablecoinDex = exports.signatureVerifier = exports.receivePolicyGuard = exports.nonce = exports.addressRegistry = exports.accountKeychain = void 0;
3
+ exports.earnRouterCallbackData = exports.earnRouter = exports.vedaEngine = exports.earnContributionController = exports.earnEngineInKindDeposit = exports.earnEngineAsyncRedeem = exports.earnEngine = exports.earnFees = exports.earnVault = exports.erc4626Engine = exports.earnFactory = exports.abis = exports.validatorConfigV2 = exports.storageCredits = exports.validatorConfig = exports.feeAmm = exports.feeManager = exports.tip403Registry = exports.tip20Factory = exports.tip20ChannelReserve = exports.tip20 = exports.stablecoinDex = exports.signatureVerifier = exports.receivePolicyGuard = exports.nonce = exports.addressRegistry = exports.accountKeychain = void 0;
4
4
  exports.accountKeychain = [
5
5
  {
6
6
  name: 'authorizeKey',
@@ -2978,7 +2978,7 @@ exports.abis = [
2978
2978
  exports.earnFactory = [
2979
2979
  {
2980
2980
  type: 'function',
2981
- name: 'computeShareSalt',
2981
+ name: 'computeEarnShareSalt',
2982
2982
  inputs: [
2983
2983
  {
2984
2984
  name: 'params',
@@ -3096,14 +3096,76 @@ exports.earnFactory = [
3096
3096
  },
3097
3097
  ],
3098
3098
  outputs: [
3099
- { name: 'shareToken', type: 'address' },
3100
- { name: 'vaultAdapter', type: 'address' },
3099
+ { name: 'earnShare', type: 'address' },
3100
+ { name: 'earnVault', type: 'address' },
3101
+ { name: 'earnFees', type: 'address' },
3101
3102
  ],
3102
3103
  stateMutability: 'nonpayable',
3103
3104
  },
3104
3105
  {
3105
3106
  type: 'function',
3106
- name: 'predictShareToken',
3107
+ name: 'predictEarnFees',
3108
+ inputs: [
3109
+ {
3110
+ name: 'params',
3111
+ type: 'tuple',
3112
+ components: [
3113
+ { name: 'deploymentId', type: 'bytes32' },
3114
+ { name: 'engine', type: 'address' },
3115
+ { name: 'owner', type: 'address' },
3116
+ {
3117
+ name: 'controls',
3118
+ type: 'tuple',
3119
+ components: [
3120
+ { name: 'emergencyGuardian', type: 'address' },
3121
+ { name: 'asyncJanitor', type: 'address' },
3122
+ { name: 'migrationMode', type: 'uint8' },
3123
+ ],
3124
+ },
3125
+ {
3126
+ name: 'fees',
3127
+ type: 'tuple',
3128
+ components: [
3129
+ { name: 'administrator', type: 'address' },
3130
+ { name: 'guardian', type: 'address' },
3131
+ { name: 'fixedFeeCap', type: 'uint96' },
3132
+ { name: 'excessFeeCap', type: 'uint96' },
3133
+ {
3134
+ name: 'initialConfig',
3135
+ type: 'tuple',
3136
+ components: [
3137
+ { name: 'fixedFeeCount', type: 'uint8' },
3138
+ {
3139
+ name: 'fixedFees',
3140
+ type: 'tuple[4]',
3141
+ components: [
3142
+ { name: 'account', type: 'address' },
3143
+ { name: 'rate', type: 'uint96' },
3144
+ ],
3145
+ },
3146
+ {
3147
+ name: 'excess',
3148
+ type: 'tuple',
3149
+ components: [
3150
+ { name: 'enabled', type: 'bool' },
3151
+ { name: 'account', type: 'address' },
3152
+ { name: 'annualTargetRate', type: 'uint96' },
3153
+ { name: 'excessFeeRate', type: 'uint96' },
3154
+ ],
3155
+ },
3156
+ ],
3157
+ },
3158
+ ],
3159
+ },
3160
+ ],
3161
+ },
3162
+ ],
3163
+ outputs: [{ name: '', type: 'address' }],
3164
+ stateMutability: 'view',
3165
+ },
3166
+ {
3167
+ type: 'function',
3168
+ name: 'predictEarnShare',
3107
3169
  inputs: [
3108
3170
  {
3109
3171
  name: 'params',
@@ -3166,33 +3228,45 @@ exports.earnFactory = [
3166
3228
  type: 'event',
3167
3229
  name: 'EarnStackDeployed',
3168
3230
  inputs: [
3169
- { name: 'vaultAdapter', type: 'address', indexed: true },
3170
- { name: 'shareToken', type: 'address', indexed: true },
3171
- { name: 'engine', type: 'address', indexed: true },
3231
+ { name: 'earnVault', type: 'address', indexed: true },
3232
+ { name: 'earnShare', type: 'address', indexed: true },
3233
+ { name: 'earnFees', type: 'address', indexed: true },
3234
+ { name: 'engine', type: 'address', indexed: false },
3172
3235
  { name: 'asset', type: 'address', indexed: false },
3173
3236
  { name: 'owner', type: 'address', indexed: false },
3174
3237
  { name: 'deploymentId', type: 'bytes32', indexed: false },
3175
3238
  { name: 'emergencyGuardian', type: 'address', indexed: false },
3176
3239
  { name: 'asyncJanitor', type: 'address', indexed: false },
3177
3240
  { name: 'migrationMode', type: 'uint8', indexed: false },
3178
- { name: 'shareSalt', type: 'bytes32', indexed: false },
3241
+ { name: 'earnShareSalt', type: 'bytes32', indexed: false },
3179
3242
  { name: 'controlConfigHash', type: 'bytes32', indexed: false },
3180
3243
  { name: 'feeConfigHash', type: 'bytes32', indexed: false },
3244
+ { name: 'earnFeesSalt', type: 'bytes32', indexed: false },
3181
3245
  ],
3182
3246
  anonymous: false,
3183
3247
  },
3184
3248
  { type: 'error', name: 'AdminHandoffFailed', inputs: [] },
3249
+ {
3250
+ type: 'error',
3251
+ name: 'EarnShareAlreadyExists',
3252
+ inputs: [{ name: 'earnShare', type: 'address' }],
3253
+ },
3254
+ { type: 'error', name: 'EarnShareSupplyNotZero', inputs: [] },
3185
3255
  { type: 'error', name: 'EmptyDeploymentId', inputs: [] },
3186
- { type: 'error', name: 'EmptyShareMetadata', inputs: [] },
3256
+ { type: 'error', name: 'EmptyEarnShareMetadata', inputs: [] },
3187
3257
  { type: 'error', name: 'FactoryCannotBeFinalOwner', inputs: [] },
3188
- { type: 'error', name: 'InvalidAdapterImplementation', inputs: [] },
3189
- { type: 'error', name: 'IssuerGrantFailed', inputs: [] },
3258
+ { type: 'error', name: 'FailedDeployment', inputs: [] },
3190
3259
  {
3191
3260
  type: 'error',
3192
- name: 'ShareTokenAlreadyExists',
3193
- inputs: [{ name: 'shareToken', type: 'address' }],
3261
+ name: 'InsufficientBalance',
3262
+ inputs: [
3263
+ { name: 'balance', type: 'uint256' },
3264
+ { name: 'needed', type: 'uint256' },
3265
+ ],
3194
3266
  },
3195
- { type: 'error', name: 'ShareTokenSupplyNotZero', inputs: [] },
3267
+ { type: 'error', name: 'InvalidEarnFeesImplementation', inputs: [] },
3268
+ { type: 'error', name: 'InvalidEarnVaultImplementation', inputs: [] },
3269
+ { type: 'error', name: 'IssuerGrantFailed', inputs: [] },
3196
3270
  { type: 'error', name: 'ZeroAddress', inputs: [] },
3197
3271
  ];
3198
3272
  exports.erc4626Engine = [
@@ -3205,8 +3279,8 @@ exports.erc4626Engine = [
3205
3279
  },
3206
3280
  {
3207
3281
  type: 'function',
3208
- name: 'initializeCore',
3209
- inputs: [{ name: 'core_', type: 'address' }],
3282
+ name: 'initializeEarnVault',
3283
+ inputs: [{ name: 'earnVault_', type: 'address' }],
3210
3284
  outputs: [],
3211
3285
  stateMutability: 'nonpayable',
3212
3286
  },
@@ -3238,22 +3312,22 @@ exports.erc4626Engine = [
3238
3312
  outputs: [],
3239
3313
  stateMutability: 'nonpayable',
3240
3314
  },
3241
- {
3242
- type: 'event',
3243
- name: 'CoreInitialized',
3244
- inputs: [{ name: 'core', type: 'address', indexed: true }],
3245
- anonymous: false,
3246
- },
3247
3315
  {
3248
3316
  type: 'event',
3249
3317
  name: 'Deposited',
3250
3318
  inputs: [
3251
- { name: 'receiver', type: 'address', indexed: true },
3319
+ { name: 'earnVault', type: 'address', indexed: true },
3252
3320
  { name: 'assets', type: 'uint256', indexed: false },
3253
- { name: 'shares', type: 'uint256', indexed: false },
3321
+ { name: 'engineShares', type: 'uint256', indexed: false },
3254
3322
  ],
3255
3323
  anonymous: false,
3256
3324
  },
3325
+ {
3326
+ type: 'event',
3327
+ name: 'EarnVaultInitialized',
3328
+ inputs: [{ name: 'earnVault', type: 'address', indexed: true }],
3329
+ anonymous: false,
3330
+ },
3257
3331
  {
3258
3332
  type: 'event',
3259
3333
  name: 'OwnershipTransferStarted',
@@ -3277,7 +3351,7 @@ exports.erc4626Engine = [
3277
3351
  name: 'Redeemed',
3278
3352
  inputs: [
3279
3353
  { name: 'receiver', type: 'address', indexed: true },
3280
- { name: 'shares', type: 'uint256', indexed: false },
3354
+ { name: 'engineShares', type: 'uint256', indexed: false },
3281
3355
  { name: 'assets', type: 'uint256', indexed: false },
3282
3356
  ],
3283
3357
  anonymous: false,
@@ -3287,8 +3361,8 @@ exports.erc4626Engine = [
3287
3361
  name: 'VenueSharesDeposited',
3288
3362
  inputs: [
3289
3363
  { name: 'from', type: 'address', indexed: true },
3290
- { name: 'requestedShares', type: 'uint256', indexed: false },
3291
- { name: 'receivedShares', type: 'uint256', indexed: false },
3364
+ { name: 'requestedVenueShares', type: 'uint256', indexed: false },
3365
+ { name: 'receivedEngineShares', type: 'uint256', indexed: false },
3292
3366
  ],
3293
3367
  anonymous: false,
3294
3368
  },
@@ -3298,17 +3372,26 @@ exports.erc4626Engine = [
3298
3372
  inputs: [
3299
3373
  { name: 'receiver', type: 'address', indexed: true },
3300
3374
  { name: 'assets', type: 'uint256', indexed: false },
3301
- { name: 'sharesBurned', type: 'uint256', indexed: false },
3375
+ { name: 'engineSharesBurned', type: 'uint256', indexed: false },
3302
3376
  ],
3303
3377
  anonymous: false,
3304
3378
  },
3305
3379
  { type: 'error', name: 'AlreadyInitialized', inputs: [] },
3306
- { type: 'error', name: 'CoreNotSet', inputs: [] },
3380
+ { type: 'error', name: 'EarnVaultNotSet', inputs: [] },
3307
3381
  { type: 'error', name: 'EmptyMetadata', inputs: [] },
3308
- { type: 'error', name: 'NoSharesReceived', inputs: [] },
3309
3382
  {
3310
3383
  type: 'error',
3311
- name: 'NotCore',
3384
+ name: 'InsufficientAssetsReceived',
3385
+ inputs: [
3386
+ { name: 'minimumAssets', type: 'uint256' },
3387
+ { name: 'actualAssets', type: 'uint256' },
3388
+ ],
3389
+ },
3390
+ { type: 'error', name: 'InvalidVenueShareDecimals', inputs: [] },
3391
+ { type: 'error', name: 'NoVenueSharesReceived', inputs: [] },
3392
+ {
3393
+ type: 'error',
3394
+ name: 'NotEarnVault',
3312
3395
  inputs: [{ name: 'caller', type: 'address' }],
3313
3396
  },
3314
3397
  {
@@ -3325,7 +3408,7 @@ exports.erc4626Engine = [
3325
3408
  { type: 'error', name: 'TransferFailed', inputs: [] },
3326
3409
  { type: 'error', name: 'ZeroAddress', inputs: [] },
3327
3410
  ];
3328
- exports.vaultAdapter = [
3411
+ exports.earnVault = [
3329
3412
  { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3330
3413
  {
3331
3414
  type: 'function',
@@ -3333,20 +3416,20 @@ exports.vaultAdapter = [
3333
3416
  inputs: [],
3334
3417
  outputs: [
3335
3418
  { name: 'feeAssets', type: 'uint256' },
3336
- { name: 'feeShares', type: 'uint256' },
3419
+ { name: 'feeEarnShares', type: 'uint256' },
3337
3420
  ],
3338
3421
  stateMutability: 'nonpayable',
3339
3422
  },
3340
3423
  {
3341
3424
  type: 'function',
3342
- name: 'anchorEngineShares',
3425
+ name: 'anchorEarnShares',
3343
3426
  inputs: [],
3344
3427
  outputs: [{ name: '', type: 'uint256' }],
3345
3428
  stateMutability: 'view',
3346
3429
  },
3347
3430
  {
3348
3431
  type: 'function',
3349
- name: 'anchorSupply',
3432
+ name: 'anchorEngineShares',
3350
3433
  inputs: [],
3351
3434
  outputs: [{ name: '', type: 'uint256' }],
3352
3435
  stateMutability: 'view',
@@ -3367,28 +3450,14 @@ exports.vaultAdapter = [
3367
3450
  },
3368
3451
  {
3369
3452
  type: 'function',
3370
- name: 'cancelRedeemAsync',
3371
- inputs: [{ name: 'requestId', type: 'bytes32' }],
3372
- outputs: [],
3373
- stateMutability: 'nonpayable',
3374
- },
3375
- {
3376
- type: 'function',
3377
- name: 'claimFeeShares',
3453
+ name: 'cancelRedeem',
3378
3454
  inputs: [
3379
- { name: 'to', type: 'address' },
3380
- { name: 'shares', type: 'uint256' },
3455
+ { name: 'requestId', type: 'bytes32' },
3456
+ { name: 'minReceiverEarnShares', type: 'uint256' },
3381
3457
  ],
3382
3458
  outputs: [],
3383
3459
  stateMutability: 'nonpayable',
3384
3460
  },
3385
- {
3386
- type: 'function',
3387
- name: 'claimableFeeShares',
3388
- inputs: [{ name: 'recipient', type: 'address' }],
3389
- outputs: [{ name: 'shares', type: 'uint256' }],
3390
- stateMutability: 'view',
3391
- },
3392
3461
  {
3393
3462
  type: 'function',
3394
3463
  name: 'contribute',
@@ -3398,9 +3467,16 @@ exports.vaultAdapter = [
3398
3467
  },
3399
3468
  {
3400
3469
  type: 'function',
3401
- name: 'currentFeeConfigId',
3402
- inputs: [],
3403
- outputs: [{ name: '', type: 'uint64' }],
3470
+ name: 'convertEngineSharesToEarnShares',
3471
+ inputs: [{ name: 'engineShares_', type: 'uint256' }],
3472
+ outputs: [{ name: 'earnShares', type: 'uint256' }],
3473
+ stateMutability: 'view',
3474
+ },
3475
+ {
3476
+ type: 'function',
3477
+ name: 'convertToEngineShares',
3478
+ inputs: [{ name: 'earnShares', type: 'uint256' }],
3479
+ outputs: [{ name: 'engineShares_', type: 'uint256' }],
3404
3480
  stateMutability: 'view',
3405
3481
  },
3406
3482
  {
@@ -3409,14 +3485,21 @@ exports.vaultAdapter = [
3409
3485
  inputs: [
3410
3486
  { name: 'assets', type: 'uint256' },
3411
3487
  { name: 'receiver', type: 'address' },
3412
- { name: 'minShares', type: 'uint256' },
3488
+ { name: 'minEarnShares', type: 'uint256' },
3413
3489
  ],
3414
- outputs: [{ name: 'shares', type: 'uint256' }],
3490
+ outputs: [{ name: 'earnShares', type: 'uint256' }],
3415
3491
  stateMutability: 'nonpayable',
3416
3492
  },
3417
3493
  {
3418
3494
  type: 'function',
3419
- name: 'depositShares',
3495
+ name: 'depositSwapOverride',
3496
+ inputs: [{ name: 'inputToken', type: 'address' }],
3497
+ outputs: [{ name: 'swapAdapter', type: 'address' }],
3498
+ stateMutability: 'view',
3499
+ },
3500
+ {
3501
+ type: 'function',
3502
+ name: 'depositVenueShares',
3420
3503
  inputs: [
3421
3504
  { name: 'venueShares', type: 'uint256' },
3422
3505
  { name: 'receiver', type: 'address' },
@@ -3441,9 +3524,16 @@ exports.vaultAdapter = [
3441
3524
  },
3442
3525
  {
3443
3526
  type: 'function',
3444
- name: 'emergencyFeesDisabled',
3527
+ name: 'earnFees',
3445
3528
  inputs: [],
3446
- outputs: [{ name: '', type: 'bool' }],
3529
+ outputs: [{ name: '', type: 'address' }],
3530
+ stateMutability: 'view',
3531
+ },
3532
+ {
3533
+ type: 'function',
3534
+ name: 'earnShare',
3535
+ inputs: [],
3536
+ outputs: [{ name: '', type: 'address' }],
3447
3537
  stateMutability: 'view',
3448
3538
  },
3449
3539
  {
@@ -3474,13 +3564,6 @@ exports.vaultAdapter = [
3474
3564
  outputs: [{ name: '', type: 'uint256' }],
3475
3565
  stateMutability: 'view',
3476
3566
  },
3477
- {
3478
- type: 'function',
3479
- name: 'excessFeeCap',
3480
- inputs: [],
3481
- outputs: [{ name: '', type: 'uint96' }],
3482
- stateMutability: 'view',
3483
- },
3484
3567
  {
3485
3568
  type: 'function',
3486
3569
  name: 'feeAdministrator',
@@ -3488,39 +3571,6 @@ exports.vaultAdapter = [
3488
3571
  outputs: [{ name: '', type: 'address' }],
3489
3572
  stateMutability: 'view',
3490
3573
  },
3491
- {
3492
- type: 'function',
3493
- name: 'feeConfig',
3494
- inputs: [{ name: 'configId', type: 'uint64' }],
3495
- outputs: [
3496
- {
3497
- name: '',
3498
- type: 'tuple',
3499
- components: [
3500
- { name: 'fixedFeeCount', type: 'uint8' },
3501
- {
3502
- name: 'fixedFees',
3503
- type: 'tuple[4]',
3504
- components: [
3505
- { name: 'account', type: 'address' },
3506
- { name: 'rate', type: 'uint96' },
3507
- ],
3508
- },
3509
- {
3510
- name: 'excess',
3511
- type: 'tuple',
3512
- components: [
3513
- { name: 'enabled', type: 'bool' },
3514
- { name: 'account', type: 'address' },
3515
- { name: 'annualTargetRate', type: 'uint96' },
3516
- { name: 'excessFeeRate', type: 'uint96' },
3517
- ],
3518
- },
3519
- ],
3520
- },
3521
- ],
3522
- stateMutability: 'view',
3523
- },
3524
3574
  {
3525
3575
  type: 'function',
3526
3576
  name: 'feeGuardian',
@@ -3528,23 +3578,6 @@ exports.vaultAdapter = [
3528
3578
  outputs: [{ name: '', type: 'address' }],
3529
3579
  stateMutability: 'view',
3530
3580
  },
3531
- {
3532
- type: 'function',
3533
- name: 'feeRemainder',
3534
- inputs: [
3535
- { name: 'configId', type: 'uint64' },
3536
- { name: 'slot', type: 'uint8' },
3537
- ],
3538
- outputs: [{ name: '', type: 'uint256' }],
3539
- stateMutability: 'view',
3540
- },
3541
- {
3542
- type: 'function',
3543
- name: 'feesActive',
3544
- inputs: [],
3545
- outputs: [{ name: '', type: 'bool' }],
3546
- stateMutability: 'view',
3547
- },
3548
3581
  {
3549
3582
  type: 'function',
3550
3583
  name: 'finalizeRedeem',
@@ -3556,26 +3589,13 @@ exports.vaultAdapter = [
3556
3589
  outputs: [],
3557
3590
  stateMutability: 'nonpayable',
3558
3591
  },
3559
- {
3560
- type: 'function',
3561
- name: 'fixedFeeCap',
3562
- inputs: [],
3563
- outputs: [{ name: '', type: 'uint96' }],
3564
- stateMutability: 'view',
3565
- },
3566
- {
3567
- type: 'function',
3568
- name: 'highWaterMark',
3569
- inputs: [],
3570
- outputs: [{ name: '', type: 'uint256' }],
3571
- stateMutability: 'view',
3572
- },
3573
3592
  {
3574
3593
  type: 'function',
3575
3594
  name: 'initialize',
3576
3595
  inputs: [
3577
3596
  { name: 'engine_', type: 'address' },
3578
- { name: 'shareToken_', type: 'address' },
3597
+ { name: 'earnShare_', type: 'address' },
3598
+ { name: 'earnFees_', type: 'address' },
3579
3599
  { name: 'operator_', type: 'address' },
3580
3600
  {
3581
3601
  name: 'controlInit_',
@@ -3627,7 +3647,7 @@ exports.vaultAdapter = [
3627
3647
  },
3628
3648
  {
3629
3649
  type: 'function',
3630
- name: 'isSynced',
3650
+ name: 'isAccountingAligned',
3631
3651
  inputs: [],
3632
3652
  outputs: [{ name: '', type: 'bool' }],
3633
3653
  stateMutability: 'view',
@@ -3637,12 +3657,19 @@ exports.vaultAdapter = [
3637
3657
  name: 'migrateEngine',
3638
3658
  inputs: [
3639
3659
  { name: 'newEngine', type: 'address' },
3640
- { name: 'minNewShares', type: 'uint256' },
3660
+ { name: 'minNewEngineShares', type: 'uint256' },
3641
3661
  { name: 'minAssetsRetained', type: 'uint256' },
3642
3662
  ],
3643
- outputs: [{ name: 'newShares', type: 'uint256' }],
3663
+ outputs: [{ name: 'newEngineShares', type: 'uint256' }],
3644
3664
  stateMutability: 'nonpayable',
3645
3665
  },
3666
+ {
3667
+ type: 'function',
3668
+ name: 'openRedeemRequestCount',
3669
+ inputs: [],
3670
+ outputs: [{ name: '', type: 'uint256' }],
3671
+ stateMutability: 'view',
3672
+ },
3646
3673
  {
3647
3674
  type: 'function',
3648
3675
  name: 'operator',
@@ -3661,63 +3688,18 @@ exports.vaultAdapter = [
3661
3688
  components: [
3662
3689
  { name: 'receiver', type: 'address' },
3663
3690
  { name: 'requester', type: 'address' },
3664
- { name: 'burnedEarnToken', type: 'uint256' },
3691
+ { name: 'burnedEarnShares', type: 'uint256' },
3665
3692
  { name: 'venueShares', type: 'uint256' },
3666
- { name: 'requestValue', type: 'uint256' },
3667
- { name: 'highWaterValue', type: 'uint256' },
3668
- { name: 'targetValue', type: 'uint256' },
3669
- { name: 'feeConfigId', type: 'uint64' },
3670
- { name: 'requestedAt', type: 'uint40' },
3671
3693
  { name: 'open', type: 'bool' },
3672
3694
  ],
3673
3695
  },
3674
3696
  ],
3675
3697
  stateMutability: 'view',
3676
3698
  },
3677
- {
3678
- type: 'function',
3679
- name: 'pendingRedeemCount',
3680
- inputs: [],
3681
- outputs: [{ name: '', type: 'uint256' }],
3682
- stateMutability: 'view',
3683
- },
3684
- {
3685
- type: 'function',
3686
- name: 'previewAccruedFees',
3687
- inputs: [],
3688
- outputs: [
3689
- {
3690
- name: 'result',
3691
- type: 'tuple',
3692
- components: [
3693
- { name: 'activeAssets', type: 'uint256' },
3694
- { name: 'positiveAccrualAssets', type: 'uint256' },
3695
- { name: 'fixedFeeAssets', type: 'uint256' },
3696
- { name: 'excessFeeAssets', type: 'uint256' },
3697
- { name: 'totalFeeAssets', type: 'uint256' },
3698
- { name: 'totalFeeShares', type: 'uint256' },
3699
- { name: 'preFeeValuePerShare', type: 'uint256' },
3700
- { name: 'postFeeValuePerShare', type: 'uint256' },
3701
- { name: 'targetValuePerShare', type: 'uint256' },
3702
- { name: 'allocationCount', type: 'uint8' },
3703
- {
3704
- name: 'allocations',
3705
- type: 'tuple[5]',
3706
- components: [
3707
- { name: 'account', type: 'address' },
3708
- { name: 'feeAssets', type: 'uint256' },
3709
- { name: 'feeShares', type: 'uint256' },
3710
- ],
3711
- },
3712
- ],
3713
- },
3714
- ],
3715
- stateMutability: 'view',
3716
- },
3717
3699
  {
3718
3700
  type: 'function',
3719
3701
  name: 'previewRedeem',
3720
- inputs: [{ name: 'shares', type: 'uint256' }],
3702
+ inputs: [{ name: 'earnShares', type: 'uint256' }],
3721
3703
  outputs: [{ name: 'assets', type: 'uint256' }],
3722
3704
  stateMutability: 'view',
3723
3705
  },
@@ -3725,14 +3707,14 @@ exports.vaultAdapter = [
3725
3707
  type: 'function',
3726
3708
  name: 'previewWithdraw',
3727
3709
  inputs: [{ name: 'assets', type: 'uint256' }],
3728
- outputs: [{ name: 'shares', type: 'uint256' }],
3710
+ outputs: [{ name: 'earnShares', type: 'uint256' }],
3729
3711
  stateMutability: 'view',
3730
3712
  },
3731
3713
  {
3732
3714
  type: 'function',
3733
3715
  name: 'redeem',
3734
3716
  inputs: [
3735
- { name: 'shares', type: 'uint256' },
3717
+ { name: 'earnShares', type: 'uint256' },
3736
3718
  { name: 'receiver', type: 'address' },
3737
3719
  { name: 'minAssets', type: 'uint256' },
3738
3720
  ],
@@ -3741,15 +3723,32 @@ exports.vaultAdapter = [
3741
3723
  },
3742
3724
  {
3743
3725
  type: 'function',
3744
- name: 'requestRedeemAsync',
3726
+ name: 'redeemSwapOverride',
3727
+ inputs: [{ name: 'outputToken', type: 'address' }],
3728
+ outputs: [{ name: 'swapAdapter', type: 'address' }],
3729
+ stateMutability: 'view',
3730
+ },
3731
+ {
3732
+ type: 'function',
3733
+ name: 'requestRedeem',
3745
3734
  inputs: [
3746
- { name: 'shares', type: 'uint256' },
3735
+ { name: 'earnShares', type: 'uint256' },
3747
3736
  { name: 'engineData', type: 'bytes' },
3748
3737
  { name: 'receiver', type: 'address' },
3749
3738
  ],
3750
3739
  outputs: [{ name: 'requestId', type: 'bytes32' }],
3751
3740
  stateMutability: 'nonpayable',
3752
3741
  },
3742
+ {
3743
+ type: 'function',
3744
+ name: 'setDepositSwapOverride',
3745
+ inputs: [
3746
+ { name: 'inputToken', type: 'address' },
3747
+ { name: 'swapAdapter', type: 'address' },
3748
+ ],
3749
+ outputs: [],
3750
+ stateMutability: 'nonpayable',
3751
+ },
3753
3752
  {
3754
3753
  type: 'function',
3755
3754
  name: 'setDepositsPaused',
@@ -3802,49 +3801,17 @@ exports.vaultAdapter = [
3802
3801
  },
3803
3802
  {
3804
3803
  type: 'function',
3805
- name: 'shareSupply',
3806
- inputs: [],
3807
- outputs: [{ name: '', type: 'uint256' }],
3808
- stateMutability: 'view',
3809
- },
3810
- {
3811
- type: 'function',
3812
- name: 'shareToken',
3813
- inputs: [],
3814
- outputs: [{ name: '', type: 'address' }],
3815
- stateMutability: 'view',
3816
- },
3817
- {
3818
- type: 'function',
3819
- name: 'sharesToTokens',
3820
- inputs: [{ name: 'shares', type: 'uint256' }],
3821
- outputs: [{ name: '', type: 'uint256' }],
3822
- stateMutability: 'view',
3823
- },
3824
- {
3825
- type: 'function',
3826
- name: 'targetBase',
3827
- inputs: [],
3828
- outputs: [{ name: '', type: 'uint256' }],
3829
- stateMutability: 'view',
3830
- },
3831
- {
3832
- type: 'function',
3833
- name: 'targetStartedAt',
3834
- inputs: [],
3835
- outputs: [{ name: '', type: 'uint40' }],
3836
- stateMutability: 'view',
3837
- },
3838
- {
3839
- type: 'function',
3840
- name: 'tokensToShares',
3841
- inputs: [{ name: 'tokens', type: 'uint256' }],
3842
- outputs: [{ name: '', type: 'uint256' }],
3843
- stateMutability: 'view',
3804
+ name: 'setRedeemSwapOverride',
3805
+ inputs: [
3806
+ { name: 'outputToken', type: 'address' },
3807
+ { name: 'swapAdapter', type: 'address' },
3808
+ ],
3809
+ outputs: [],
3810
+ stateMutability: 'nonpayable',
3844
3811
  },
3845
3812
  {
3846
3813
  type: 'function',
3847
- name: 'totalClaimableFeeShares',
3814
+ name: 'totalEarnShares',
3848
3815
  inputs: [],
3849
3816
  outputs: [{ name: '', type: 'uint256' }],
3850
3817
  stateMutability: 'view',
@@ -3855,9 +3822,9 @@ exports.vaultAdapter = [
3855
3822
  inputs: [
3856
3823
  { name: 'assets', type: 'uint256' },
3857
3824
  { name: 'receiver', type: 'address' },
3858
- { name: 'maxShares', type: 'uint256' },
3825
+ { name: 'maxEarnShares', type: 'uint256' },
3859
3826
  ],
3860
- outputs: [{ name: 'sharesBurned', type: 'uint256' }],
3827
+ outputs: [{ name: 'earnSharesBurned', type: 'uint256' }],
3861
3828
  stateMutability: 'nonpayable',
3862
3829
  },
3863
3830
  {
@@ -3868,7 +3835,7 @@ exports.vaultAdapter = [
3868
3835
  { name: 'assets', type: 'uint256', indexed: false },
3869
3836
  { name: 'venueShares', type: 'uint256', indexed: false },
3870
3837
  { name: 'anchorEngineShares', type: 'uint256', indexed: false },
3871
- { name: 'anchorSupply', type: 'uint256', indexed: false },
3838
+ { name: 'anchorEarnShares', type: 'uint256', indexed: false },
3872
3839
  ],
3873
3840
  anonymous: false,
3874
3841
  },
@@ -3881,6 +3848,15 @@ exports.vaultAdapter = [
3881
3848
  ],
3882
3849
  anonymous: false,
3883
3850
  },
3851
+ {
3852
+ type: 'event',
3853
+ name: 'DepositSwapOverrideSet',
3854
+ inputs: [
3855
+ { name: 'inputToken', type: 'address', indexed: true },
3856
+ { name: 'swapAdapter', type: 'address', indexed: true },
3857
+ ],
3858
+ anonymous: false,
3859
+ },
3884
3860
  {
3885
3861
  type: 'event',
3886
3862
  name: 'Deposited',
@@ -3888,7 +3864,7 @@ exports.vaultAdapter = [
3888
3864
  { name: 'caller', type: 'address', indexed: true },
3889
3865
  { name: 'receiver', type: 'address', indexed: true },
3890
3866
  { name: 'assets', type: 'uint256', indexed: false },
3891
- { name: 'shares', type: 'uint256', indexed: false },
3867
+ { name: 'earnShares', type: 'uint256', indexed: false },
3892
3868
  ],
3893
3869
  anonymous: false,
3894
3870
  },
@@ -3907,93 +3883,22 @@ exports.vaultAdapter = [
3907
3883
  inputs: [
3908
3884
  { name: 'oldEngine', type: 'address', indexed: true },
3909
3885
  { name: 'newEngine', type: 'address', indexed: true },
3910
- { name: 'oldShares', type: 'uint256', indexed: false },
3886
+ { name: 'oldEngineShares', type: 'uint256', indexed: false },
3911
3887
  { name: 'assetsMoved', type: 'uint256', indexed: false },
3912
- { name: 'newShares', type: 'uint256', indexed: false },
3913
- { name: 'shareSupply', type: 'uint256', indexed: false },
3888
+ { name: 'newEngineShares', type: 'uint256', indexed: false },
3889
+ { name: 'totalEarnShares', type: 'uint256', indexed: false },
3914
3890
  { name: 'anchorEngineShares', type: 'uint256', indexed: false },
3915
- { name: 'anchorSupply', type: 'uint256', indexed: false },
3916
- ],
3917
- anonymous: false,
3918
- },
3919
- {
3920
- type: 'event',
3921
- name: 'FeeBaselinesInitialized',
3922
- inputs: [
3923
- { name: 'highWaterMark', type: 'uint256', indexed: false },
3924
- { name: 'targetBase', type: 'uint256', indexed: false },
3925
- { name: 'targetStartedAt', type: 'uint40', indexed: false },
3926
- ],
3927
- anonymous: false,
3928
- },
3929
- {
3930
- type: 'event',
3931
- name: 'FeeConfigurationSet',
3932
- inputs: [
3933
- { name: 'configId', type: 'uint64', indexed: true },
3934
- { name: 'configHash', type: 'bytes32', indexed: true },
3935
- { name: 'reactivated', type: 'bool', indexed: false },
3936
- ],
3937
- anonymous: false,
3938
- },
3939
- {
3940
- type: 'event',
3941
- name: 'FeeDustWaived',
3942
- inputs: [
3943
- { name: 'configId', type: 'uint64', indexed: true },
3944
- { name: 'slot', type: 'uint8', indexed: true },
3945
- { name: 'remainder', type: 'uint256', indexed: false },
3946
- ],
3947
- anonymous: false,
3948
- },
3949
- {
3950
- type: 'event',
3951
- name: 'FeeSharesAllocated',
3952
- inputs: [
3953
- { name: 'configId', type: 'uint64', indexed: true },
3954
- { name: 'recipient', type: 'address', indexed: true },
3955
- { name: 'feeAssets', type: 'uint256', indexed: false },
3956
- { name: 'feeShares', type: 'uint256', indexed: false },
3957
- ],
3958
- anonymous: false,
3959
- },
3960
- {
3961
- type: 'event',
3962
- name: 'FeeSharesClaimed',
3963
- inputs: [
3964
- { name: 'recipient', type: 'address', indexed: true },
3965
- { name: 'to', type: 'address', indexed: true },
3966
- { name: 'shares', type: 'uint256', indexed: false },
3967
- ],
3968
- anonymous: false,
3969
- },
3970
- {
3971
- type: 'event',
3972
- name: 'FeesAccrued',
3973
- inputs: [
3974
- { name: 'configId', type: 'uint64', indexed: true },
3975
- { name: 'activeAssets', type: 'uint256', indexed: false },
3976
- { name: 'positiveAccrualAssets', type: 'uint256', indexed: false },
3977
- { name: 'feeAssets', type: 'uint256', indexed: false },
3978
- { name: 'feeShares', type: 'uint256', indexed: false },
3979
- { name: 'highWaterMark', type: 'uint256', indexed: false },
3980
- { name: 'targetValuePerShare', type: 'uint256', indexed: false },
3891
+ { name: 'anchorEarnShares', type: 'uint256', indexed: false },
3981
3892
  ],
3982
3893
  anonymous: false,
3983
3894
  },
3984
- {
3985
- type: 'event',
3986
- name: 'FeesDisabled',
3987
- inputs: [{ name: 'guardian', type: 'address', indexed: true }],
3988
- anonymous: false,
3989
- },
3990
3895
  {
3991
3896
  type: 'event',
3992
3897
  name: 'RedeemCancelled',
3993
3898
  inputs: [
3994
3899
  { name: 'requestId', type: 'bytes32', indexed: true },
3995
3900
  { name: 'receiver', type: 'address', indexed: true },
3996
- { name: 'shares', type: 'uint256', indexed: false },
3901
+ { name: 'earnShares', type: 'uint256', indexed: false },
3997
3902
  ],
3998
3903
  anonymous: false,
3999
3904
  },
@@ -4003,9 +3908,9 @@ exports.vaultAdapter = [
4003
3908
  inputs: [
4004
3909
  { name: 'requestId', type: 'bytes32', indexed: true },
4005
3910
  { name: 'receiver', type: 'address', indexed: true },
4006
- { name: 'shares', type: 'uint256', indexed: false },
3911
+ { name: 'earnShares', type: 'uint256', indexed: false },
4007
3912
  { name: 'asset', type: 'address', indexed: false },
4008
- { name: 'amount', type: 'uint256', indexed: false },
3913
+ { name: 'assets', type: 'uint256', indexed: false },
4009
3914
  ],
4010
3915
  anonymous: false,
4011
3916
  },
@@ -4016,7 +3921,16 @@ exports.vaultAdapter = [
4016
3921
  { name: 'requestId', type: 'bytes32', indexed: true },
4017
3922
  { name: 'requester', type: 'address', indexed: true },
4018
3923
  { name: 'receiver', type: 'address', indexed: true },
4019
- { name: 'shares', type: 'uint256', indexed: false },
3924
+ { name: 'earnShares', type: 'uint256', indexed: false },
3925
+ ],
3926
+ anonymous: false,
3927
+ },
3928
+ {
3929
+ type: 'event',
3930
+ name: 'RedeemSwapOverrideSet',
3931
+ inputs: [
3932
+ { name: 'outputToken', type: 'address', indexed: true },
3933
+ { name: 'swapAdapter', type: 'address', indexed: true },
4020
3934
  ],
4021
3935
  anonymous: false,
4022
3936
  },
@@ -4026,7 +3940,7 @@ exports.vaultAdapter = [
4026
3940
  inputs: [
4027
3941
  { name: 'caller', type: 'address', indexed: true },
4028
3942
  { name: 'receiver', type: 'address', indexed: true },
4029
- { name: 'shares', type: 'uint256', indexed: false },
3943
+ { name: 'earnShares', type: 'uint256', indexed: false },
4030
3944
  { name: 'assets', type: 'uint256', indexed: false },
4031
3945
  ],
4032
3946
  anonymous: false,
@@ -4050,7 +3964,7 @@ exports.vaultAdapter = [
4050
3964
  { name: 'caller', type: 'address', indexed: true },
4051
3965
  { name: 'receiver', type: 'address', indexed: true },
4052
3966
  { name: 'assets', type: 'uint256', indexed: false },
4053
- { name: 'sharesBurned', type: 'uint256', indexed: false },
3967
+ { name: 'earnSharesBurned', type: 'uint256', indexed: false },
4054
3968
  ],
4055
3969
  anonymous: false,
4056
3970
  },
@@ -4067,23 +3981,20 @@ exports.vaultAdapter = [
4067
3981
  name: 'EngineCapabilityUnsupported',
4068
3982
  inputs: [{ name: 'interfaceId', type: 'bytes4' }],
4069
3983
  },
4070
- { type: 'error', name: 'ExceedsMaxShares', inputs: [] },
3984
+ { type: 'error', name: 'ExceedsMaxEarnShares', inputs: [] },
4071
3985
  {
4072
3986
  type: 'error',
4073
3987
  name: 'ExcessiveConversionLoss',
4074
3988
  inputs: [
4075
- { name: 'inputShares', type: 'uint256' },
4076
- { name: 'representedShares', type: 'uint256' },
3989
+ { name: 'inputEngineShares', type: 'uint256' },
3990
+ { name: 'representedEngineShares', type: 'uint256' },
4077
3991
  ],
4078
3992
  },
4079
- { type: 'error', name: 'FeeCapTooHigh', inputs: [] },
4080
- { type: 'error', name: 'FeesPermanentlyDisabled', inputs: [] },
4081
- { type: 'error', name: 'InitialShareSupplyNotZero', inputs: [] },
4082
- { type: 'error', name: 'InsufficientClaimableFeeShares', inputs: [] },
3993
+ { type: 'error', name: 'InitialEarnShareSupplyNotZero', inputs: [] },
4083
3994
  { type: 'error', name: 'InsufficientOutput', inputs: [] },
4084
- { type: 'error', name: 'InvalidFeeClaimReceiver', inputs: [] },
4085
- { type: 'error', name: 'InvalidFeeConfiguration', inputs: [] },
4086
- { type: 'error', name: 'InvalidShareDecimals', inputs: [] },
3995
+ { type: 'error', name: 'InvalidEarnDecimals', inputs: [] },
3996
+ { type: 'error', name: 'InvalidEngineShareScale', inputs: [] },
3997
+ { type: 'error', name: 'InvalidSwapOverride', inputs: [] },
4087
3998
  {
4088
3999
  type: 'error',
4089
4000
  name: 'MinimumAssetsNotMet',
@@ -4094,13 +4005,21 @@ exports.vaultAdapter = [
4094
4005
  },
4095
4006
  {
4096
4007
  type: 'error',
4097
- name: 'MinimumSharesNotMet',
4008
+ name: 'MinimumEarnSharesNotMet',
4009
+ inputs: [
4010
+ { name: 'minimumEarnShares', type: 'uint256' },
4011
+ { name: 'actualEarnShares', type: 'uint256' },
4012
+ ],
4013
+ },
4014
+ {
4015
+ type: 'error',
4016
+ name: 'MinimumEngineSharesNotMet',
4098
4017
  inputs: [
4099
- { name: 'minimumShares', type: 'uint256' },
4100
- { name: 'actualShares', type: 'uint256' },
4018
+ { name: 'minimumEngineShares', type: 'uint256' },
4019
+ { name: 'actualEngineShares', type: 'uint256' },
4101
4020
  ],
4102
4021
  },
4103
- { type: 'error', name: 'NoShareSupply', inputs: [] },
4022
+ { type: 'error', name: 'NoEarnShares', inputs: [] },
4104
4023
  { type: 'error', name: 'NotEmergencyGuardianOrOperator', inputs: [] },
4105
4024
  { type: 'error', name: 'NotEngine', inputs: [] },
4106
4025
  { type: 'error', name: 'NotFeeAdministrator', inputs: [] },
@@ -4115,16 +4034,462 @@ exports.vaultAdapter = [
4115
4034
  name: 'RequestNotOpen',
4116
4035
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4117
4036
  },
4118
- { type: 'error', name: 'ResidualBacking', inputs: [] },
4119
- { type: 'error', name: 'SameEngine', inputs: [] },
4120
- { type: 'error', name: 'TokenCallFailed', inputs: [] },
4121
- { type: 'error', name: 'TokenCallFalse', inputs: [] },
4037
+ { type: 'error', name: 'ResidualBacking', inputs: [] },
4038
+ { type: 'error', name: 'SameEngine', inputs: [] },
4039
+ { type: 'error', name: 'TokenCallFailed', inputs: [] },
4040
+ { type: 'error', name: 'TokenCallFalse', inputs: [] },
4041
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
4042
+ { type: 'error', name: 'ZeroAmount', inputs: [] },
4043
+ { type: 'error', name: 'ZeroMinimumAssets', inputs: [] },
4044
+ { type: 'error', name: 'ZeroMinimumEarnShares', inputs: [] },
4045
+ { type: 'error', name: 'ZeroMinimumEngineShares', inputs: [] },
4046
+ ];
4047
+ exports.earnFees = [
4048
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
4049
+ {
4050
+ type: 'function',
4051
+ name: 'accrueFees',
4052
+ inputs: [],
4053
+ outputs: [
4054
+ {
4055
+ name: 'result',
4056
+ type: 'tuple',
4057
+ components: [
4058
+ { name: 'activeAssets', type: 'uint256' },
4059
+ { name: 'positiveAccrualAssets', type: 'uint256' },
4060
+ { name: 'fixedFeeAssets', type: 'uint256' },
4061
+ { name: 'excessFeeAssets', type: 'uint256' },
4062
+ { name: 'totalFeeAssets', type: 'uint256' },
4063
+ { name: 'totalFeeEarnShares', type: 'uint256' },
4064
+ { name: 'preFeeValuePerEarnShare', type: 'uint256' },
4065
+ { name: 'postFeeValuePerEarnShare', type: 'uint256' },
4066
+ { name: 'targetValuePerEarnShare', type: 'uint256' },
4067
+ { name: 'allocationCount', type: 'uint8' },
4068
+ {
4069
+ name: 'allocations',
4070
+ type: 'tuple[5]',
4071
+ components: [
4072
+ { name: 'account', type: 'address' },
4073
+ { name: 'feeAssets', type: 'uint256' },
4074
+ { name: 'feeEarnShares', type: 'uint256' },
4075
+ ],
4076
+ },
4077
+ ],
4078
+ },
4079
+ ],
4080
+ stateMutability: 'nonpayable',
4081
+ },
4082
+ {
4083
+ type: 'function',
4084
+ name: 'claim',
4085
+ inputs: [
4086
+ { name: 'to', type: 'address' },
4087
+ { name: 'earnShares', type: 'uint256' },
4088
+ ],
4089
+ outputs: [],
4090
+ stateMutability: 'nonpayable',
4091
+ },
4092
+ {
4093
+ type: 'function',
4094
+ name: 'claimableEarnShares',
4095
+ inputs: [{ name: 'recipient', type: 'address' }],
4096
+ outputs: [{ name: 'earnShares', type: 'uint256' }],
4097
+ stateMutability: 'view',
4098
+ },
4099
+ {
4100
+ type: 'function',
4101
+ name: 'closeRedeemRequest',
4102
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4103
+ outputs: [],
4104
+ stateMutability: 'nonpayable',
4105
+ },
4106
+ {
4107
+ type: 'function',
4108
+ name: 'currentFeeConfigId',
4109
+ inputs: [],
4110
+ outputs: [{ name: '', type: 'uint64' }],
4111
+ stateMutability: 'view',
4112
+ },
4113
+ {
4114
+ type: 'function',
4115
+ name: 'disableFees',
4116
+ inputs: [{ name: 'guardian', type: 'address' }],
4117
+ outputs: [],
4118
+ stateMutability: 'nonpayable',
4119
+ },
4120
+ {
4121
+ type: 'function',
4122
+ name: 'earnShare',
4123
+ inputs: [],
4124
+ outputs: [{ name: '', type: 'address' }],
4125
+ stateMutability: 'view',
4126
+ },
4127
+ {
4128
+ type: 'function',
4129
+ name: 'earnShareScale',
4130
+ inputs: [],
4131
+ outputs: [{ name: '', type: 'uint256' }],
4132
+ stateMutability: 'view',
4133
+ },
4134
+ {
4135
+ type: 'function',
4136
+ name: 'earnVault',
4137
+ inputs: [],
4138
+ outputs: [{ name: '', type: 'address' }],
4139
+ stateMutability: 'view',
4140
+ },
4141
+ {
4142
+ type: 'function',
4143
+ name: 'excessFeeCap',
4144
+ inputs: [],
4145
+ outputs: [{ name: '', type: 'uint96' }],
4146
+ stateMutability: 'view',
4147
+ },
4148
+ {
4149
+ type: 'function',
4150
+ name: 'feeConfig',
4151
+ inputs: [{ name: 'configId', type: 'uint64' }],
4152
+ outputs: [
4153
+ {
4154
+ name: '',
4155
+ type: 'tuple',
4156
+ components: [
4157
+ { name: 'fixedFeeCount', type: 'uint8' },
4158
+ {
4159
+ name: 'fixedFees',
4160
+ type: 'tuple[4]',
4161
+ components: [
4162
+ { name: 'account', type: 'address' },
4163
+ { name: 'rate', type: 'uint96' },
4164
+ ],
4165
+ },
4166
+ {
4167
+ name: 'excess',
4168
+ type: 'tuple',
4169
+ components: [
4170
+ { name: 'enabled', type: 'bool' },
4171
+ { name: 'account', type: 'address' },
4172
+ { name: 'annualTargetRate', type: 'uint96' },
4173
+ { name: 'excessFeeRate', type: 'uint96' },
4174
+ ],
4175
+ },
4176
+ ],
4177
+ },
4178
+ ],
4179
+ stateMutability: 'view',
4180
+ },
4181
+ {
4182
+ type: 'function',
4183
+ name: 'feeRemainder',
4184
+ inputs: [
4185
+ { name: 'configId', type: 'uint64' },
4186
+ { name: 'slot', type: 'uint8' },
4187
+ ],
4188
+ outputs: [{ name: '', type: 'uint256' }],
4189
+ stateMutability: 'view',
4190
+ },
4191
+ {
4192
+ type: 'function',
4193
+ name: 'feesActive',
4194
+ inputs: [],
4195
+ outputs: [{ name: '', type: 'bool' }],
4196
+ stateMutability: 'view',
4197
+ },
4198
+ {
4199
+ type: 'function',
4200
+ name: 'feesDisabled',
4201
+ inputs: [],
4202
+ outputs: [{ name: '', type: 'bool' }],
4203
+ stateMutability: 'view',
4204
+ },
4205
+ {
4206
+ type: 'function',
4207
+ name: 'fixedFeeCap',
4208
+ inputs: [],
4209
+ outputs: [{ name: '', type: 'uint96' }],
4210
+ stateMutability: 'view',
4211
+ },
4212
+ {
4213
+ type: 'function',
4214
+ name: 'highWaterMark',
4215
+ inputs: [],
4216
+ outputs: [{ name: '', type: 'uint256' }],
4217
+ stateMutability: 'view',
4218
+ },
4219
+ {
4220
+ type: 'function',
4221
+ name: 'initialize',
4222
+ inputs: [
4223
+ { name: 'earnVault_', type: 'address' },
4224
+ { name: 'earnShare_', type: 'address' },
4225
+ {
4226
+ name: 'init',
4227
+ type: 'tuple',
4228
+ components: [
4229
+ { name: 'administrator', type: 'address' },
4230
+ { name: 'guardian', type: 'address' },
4231
+ { name: 'fixedFeeCap', type: 'uint96' },
4232
+ { name: 'excessFeeCap', type: 'uint96' },
4233
+ {
4234
+ name: 'initialConfig',
4235
+ type: 'tuple',
4236
+ components: [
4237
+ { name: 'fixedFeeCount', type: 'uint8' },
4238
+ {
4239
+ name: 'fixedFees',
4240
+ type: 'tuple[4]',
4241
+ components: [
4242
+ { name: 'account', type: 'address' },
4243
+ { name: 'rate', type: 'uint96' },
4244
+ ],
4245
+ },
4246
+ {
4247
+ name: 'excess',
4248
+ type: 'tuple',
4249
+ components: [
4250
+ { name: 'enabled', type: 'bool' },
4251
+ { name: 'account', type: 'address' },
4252
+ { name: 'annualTargetRate', type: 'uint96' },
4253
+ { name: 'excessFeeRate', type: 'uint96' },
4254
+ ],
4255
+ },
4256
+ ],
4257
+ },
4258
+ ],
4259
+ },
4260
+ ],
4261
+ outputs: [],
4262
+ stateMutability: 'nonpayable',
4263
+ },
4264
+ {
4265
+ type: 'function',
4266
+ name: 'initializeBaselines',
4267
+ inputs: [],
4268
+ outputs: [],
4269
+ stateMutability: 'nonpayable',
4270
+ },
4271
+ {
4272
+ type: 'function',
4273
+ name: 'pendingFeeSnapshot',
4274
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4275
+ outputs: [
4276
+ {
4277
+ name: '',
4278
+ type: 'tuple',
4279
+ components: [
4280
+ { name: 'burnedEarnShares', type: 'uint256' },
4281
+ { name: 'requestValue', type: 'uint256' },
4282
+ { name: 'highWaterValue', type: 'uint256' },
4283
+ { name: 'targetValue', type: 'uint256' },
4284
+ { name: 'feeConfigId', type: 'uint64' },
4285
+ { name: 'requestedAt', type: 'uint40' },
4286
+ { name: 'open', type: 'bool' },
4287
+ ],
4288
+ },
4289
+ ],
4290
+ stateMutability: 'view',
4291
+ },
4292
+ {
4293
+ type: 'function',
4294
+ name: 'previewAccruedFees',
4295
+ inputs: [],
4296
+ outputs: [
4297
+ {
4298
+ name: 'result',
4299
+ type: 'tuple',
4300
+ components: [
4301
+ { name: 'activeAssets', type: 'uint256' },
4302
+ { name: 'positiveAccrualAssets', type: 'uint256' },
4303
+ { name: 'fixedFeeAssets', type: 'uint256' },
4304
+ { name: 'excessFeeAssets', type: 'uint256' },
4305
+ { name: 'totalFeeAssets', type: 'uint256' },
4306
+ { name: 'totalFeeEarnShares', type: 'uint256' },
4307
+ { name: 'preFeeValuePerEarnShare', type: 'uint256' },
4308
+ { name: 'postFeeValuePerEarnShare', type: 'uint256' },
4309
+ { name: 'targetValuePerEarnShare', type: 'uint256' },
4310
+ { name: 'allocationCount', type: 'uint8' },
4311
+ {
4312
+ name: 'allocations',
4313
+ type: 'tuple[5]',
4314
+ components: [
4315
+ { name: 'account', type: 'address' },
4316
+ { name: 'feeAssets', type: 'uint256' },
4317
+ { name: 'feeEarnShares', type: 'uint256' },
4318
+ ],
4319
+ },
4320
+ ],
4321
+ },
4322
+ ],
4323
+ stateMutability: 'view',
4324
+ },
4325
+ {
4326
+ type: 'function',
4327
+ name: 'recordRedeemRequest',
4328
+ inputs: [
4329
+ { name: 'requestId', type: 'bytes32' },
4330
+ { name: 'burnedEarnShares', type: 'uint256' },
4331
+ { name: 'requestValue', type: 'uint256' },
4332
+ ],
4333
+ outputs: [],
4334
+ stateMutability: 'nonpayable',
4335
+ },
4336
+ {
4337
+ type: 'function',
4338
+ name: 'setFeeConfig',
4339
+ inputs: [
4340
+ {
4341
+ name: 'config',
4342
+ type: 'tuple',
4343
+ components: [
4344
+ { name: 'fixedFeeCount', type: 'uint8' },
4345
+ {
4346
+ name: 'fixedFees',
4347
+ type: 'tuple[4]',
4348
+ components: [
4349
+ { name: 'account', type: 'address' },
4350
+ { name: 'rate', type: 'uint96' },
4351
+ ],
4352
+ },
4353
+ {
4354
+ name: 'excess',
4355
+ type: 'tuple',
4356
+ components: [
4357
+ { name: 'enabled', type: 'bool' },
4358
+ { name: 'account', type: 'address' },
4359
+ { name: 'annualTargetRate', type: 'uint96' },
4360
+ { name: 'excessFeeRate', type: 'uint96' },
4361
+ ],
4362
+ },
4363
+ ],
4364
+ },
4365
+ ],
4366
+ outputs: [{ name: 'configId', type: 'uint64' }],
4367
+ stateMutability: 'nonpayable',
4368
+ },
4369
+ {
4370
+ type: 'function',
4371
+ name: 'settleCancelledRedeem',
4372
+ inputs: [
4373
+ { name: 'requestId', type: 'bytes32' },
4374
+ { name: 'returnedValue', type: 'uint256' },
4375
+ { name: 'activeSupply', type: 'uint256' },
4376
+ { name: 'activeAssets', type: 'uint256' },
4377
+ { name: 'totalReentryEarnShares', type: 'uint256' },
4378
+ ],
4379
+ outputs: [{ name: 'feeEarnShares', type: 'uint256' }],
4380
+ stateMutability: 'nonpayable',
4381
+ },
4382
+ {
4383
+ type: 'function',
4384
+ name: 'shouldChargeRedeem',
4385
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4386
+ outputs: [{ name: '', type: 'bool' }],
4387
+ stateMutability: 'view',
4388
+ },
4389
+ {
4390
+ type: 'function',
4391
+ name: 'targetBase',
4392
+ inputs: [],
4393
+ outputs: [{ name: '', type: 'uint256' }],
4394
+ stateMutability: 'view',
4395
+ },
4396
+ {
4397
+ type: 'function',
4398
+ name: 'targetStartedAt',
4399
+ inputs: [],
4400
+ outputs: [{ name: '', type: 'uint40' }],
4401
+ stateMutability: 'view',
4402
+ },
4403
+ {
4404
+ type: 'function',
4405
+ name: 'totalClaimableEarnShares',
4406
+ inputs: [],
4407
+ outputs: [{ name: '', type: 'uint256' }],
4408
+ stateMutability: 'view',
4409
+ },
4410
+ {
4411
+ type: 'event',
4412
+ name: 'FeeBaselinesInitialized',
4413
+ inputs: [
4414
+ { name: 'highWaterMark', type: 'uint256', indexed: false },
4415
+ { name: 'targetBase', type: 'uint256', indexed: false },
4416
+ { name: 'targetStartedAt', type: 'uint40', indexed: false },
4417
+ ],
4418
+ anonymous: false,
4419
+ },
4420
+ {
4421
+ type: 'event',
4422
+ name: 'FeeConfigurationSet',
4423
+ inputs: [
4424
+ { name: 'configId', type: 'uint64', indexed: true },
4425
+ { name: 'configHash', type: 'bytes32', indexed: true },
4426
+ { name: 'reactivated', type: 'bool', indexed: false },
4427
+ ],
4428
+ anonymous: false,
4429
+ },
4430
+ {
4431
+ type: 'event',
4432
+ name: 'FeeDustWaived',
4433
+ inputs: [
4434
+ { name: 'configId', type: 'uint64', indexed: true },
4435
+ { name: 'slot', type: 'uint8', indexed: true },
4436
+ { name: 'remainder', type: 'uint256', indexed: false },
4437
+ ],
4438
+ anonymous: false,
4439
+ },
4440
+ {
4441
+ type: 'event',
4442
+ name: 'FeeEarnSharesAllocated',
4443
+ inputs: [
4444
+ { name: 'configId', type: 'uint64', indexed: true },
4445
+ { name: 'recipient', type: 'address', indexed: true },
4446
+ { name: 'feeAssets', type: 'uint256', indexed: false },
4447
+ { name: 'feeEarnShares', type: 'uint256', indexed: false },
4448
+ ],
4449
+ anonymous: false,
4450
+ },
4451
+ {
4452
+ type: 'event',
4453
+ name: 'FeeEarnSharesClaimed',
4454
+ inputs: [
4455
+ { name: 'recipient', type: 'address', indexed: true },
4456
+ { name: 'to', type: 'address', indexed: true },
4457
+ { name: 'earnShares', type: 'uint256', indexed: false },
4458
+ ],
4459
+ anonymous: false,
4460
+ },
4461
+ {
4462
+ type: 'event',
4463
+ name: 'FeesAccrued',
4464
+ inputs: [
4465
+ { name: 'configId', type: 'uint64', indexed: true },
4466
+ { name: 'activeAssets', type: 'uint256', indexed: false },
4467
+ { name: 'positiveAccrualAssets', type: 'uint256', indexed: false },
4468
+ { name: 'feeAssets', type: 'uint256', indexed: false },
4469
+ { name: 'feeEarnShares', type: 'uint256', indexed: false },
4470
+ { name: 'highWaterMark', type: 'uint256', indexed: false },
4471
+ { name: 'targetValuePerEarnShare', type: 'uint256', indexed: false },
4472
+ ],
4473
+ anonymous: false,
4474
+ },
4475
+ {
4476
+ type: 'event',
4477
+ name: 'FeesDisabled',
4478
+ inputs: [{ name: 'guardian', type: 'address', indexed: true }],
4479
+ anonymous: false,
4480
+ },
4481
+ { type: 'error', name: 'AlreadyInitialized', inputs: [] },
4482
+ { type: 'error', name: 'FeeCapTooHigh', inputs: [] },
4483
+ { type: 'error', name: 'FeesPermanentlyDisabled', inputs: [] },
4484
+ { type: 'error', name: 'InsufficientClaimableEarnShares', inputs: [] },
4485
+ { type: 'error', name: 'InvalidFeeClaimReceiver', inputs: [] },
4486
+ { type: 'error', name: 'InvalidFeeConfiguration', inputs: [] },
4487
+ { type: 'error', name: 'NotEarnVault', inputs: [] },
4488
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
4122
4489
  { type: 'error', name: 'ZeroAddress', inputs: [] },
4123
4490
  { type: 'error', name: 'ZeroAmount', inputs: [] },
4124
- { type: 'error', name: 'ZeroMinimumAssets', inputs: [] },
4125
- { type: 'error', name: 'ZeroMinimumShares', inputs: [] },
4126
4491
  ];
4127
- exports.vaultEngine = [
4492
+ exports.earnEngine = [
4128
4493
  {
4129
4494
  type: 'function',
4130
4495
  name: 'asset',
@@ -4136,7 +4501,7 @@ exports.vaultEngine = [
4136
4501
  type: 'function',
4137
4502
  name: 'deposit',
4138
4503
  inputs: [{ name: 'assets', type: 'uint256' }],
4139
- outputs: [{ name: 'shares', type: 'uint256' }],
4504
+ outputs: [{ name: 'engineShares', type: 'uint256' }],
4140
4505
  stateMutability: 'nonpayable',
4141
4506
  },
4142
4507
  {
@@ -4146,6 +4511,13 @@ exports.vaultEngine = [
4146
4511
  outputs: [{ name: '', type: 'string' }],
4147
4512
  stateMutability: 'view',
4148
4513
  },
4514
+ {
4515
+ type: 'function',
4516
+ name: 'shareScale',
4517
+ inputs: [],
4518
+ outputs: [{ name: 'scale', type: 'uint256' }],
4519
+ stateMutability: 'view',
4520
+ },
4149
4521
  {
4150
4522
  type: 'function',
4151
4523
  name: 'supportsInterface',
@@ -4171,20 +4543,20 @@ exports.vaultEngine = [
4171
4543
  type: 'function',
4172
4544
  name: 'totalShares',
4173
4545
  inputs: [],
4174
- outputs: [{ name: 'shares', type: 'uint256' }],
4546
+ outputs: [{ name: 'engineShares', type: 'uint256' }],
4175
4547
  stateMutability: 'view',
4176
4548
  },
4177
4549
  {
4178
4550
  type: 'function',
4179
4551
  name: 'valueOf',
4180
- inputs: [{ name: 'shares', type: 'uint256' }],
4552
+ inputs: [{ name: 'engineShares', type: 'uint256' }],
4181
4553
  outputs: [{ name: 'assets', type: 'uint256' }],
4182
4554
  stateMutability: 'view',
4183
4555
  },
4184
4556
  {
4185
4557
  type: 'function',
4186
4558
  name: 'previewRedeem',
4187
- inputs: [{ name: 'shares', type: 'uint256' }],
4559
+ inputs: [{ name: 'engineShares', type: 'uint256' }],
4188
4560
  outputs: [{ name: 'assets', type: 'uint256' }],
4189
4561
  stateMutability: 'view',
4190
4562
  },
@@ -4192,8 +4564,9 @@ exports.vaultEngine = [
4192
4564
  type: 'function',
4193
4565
  name: 'redeem',
4194
4566
  inputs: [
4195
- { name: 'shares', type: 'uint256' },
4567
+ { name: 'engineShares', type: 'uint256' },
4196
4568
  { name: 'receiver', type: 'address' },
4569
+ { name: 'minAssets', type: 'uint256' },
4197
4570
  ],
4198
4571
  outputs: [{ name: 'assets', type: 'uint256' }],
4199
4572
  stateMutability: 'nonpayable',
@@ -4202,7 +4575,7 @@ exports.vaultEngine = [
4202
4575
  type: 'function',
4203
4576
  name: 'previewWithdraw',
4204
4577
  inputs: [{ name: 'assets', type: 'uint256' }],
4205
- outputs: [{ name: 'shares', type: 'uint256' }],
4578
+ outputs: [{ name: 'engineShares', type: 'uint256' }],
4206
4579
  stateMutability: 'view',
4207
4580
  },
4208
4581
  {
@@ -4212,42 +4585,42 @@ exports.vaultEngine = [
4212
4585
  { name: 'assets', type: 'uint256' },
4213
4586
  { name: 'receiver', type: 'address' },
4214
4587
  ],
4215
- outputs: [{ name: 'shares', type: 'uint256' }],
4588
+ outputs: [{ name: 'engineShares', type: 'uint256' }],
4216
4589
  stateMutability: 'nonpayable',
4217
4590
  },
4218
4591
  ];
4219
- exports.vaultEngineAsync = [
4592
+ exports.earnEngineAsyncRedeem = [
4220
4593
  {
4221
4594
  type: 'function',
4222
4595
  name: 'cancelRedeem',
4223
4596
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4224
- outputs: [{ name: 'shares', type: 'uint256' }],
4597
+ outputs: [{ name: 'engineShares', type: 'uint256' }],
4225
4598
  stateMutability: 'nonpayable',
4226
4599
  },
4227
4600
  {
4228
4601
  type: 'function',
4229
4602
  name: 'requestRedeem',
4230
4603
  inputs: [
4231
- { name: 'shares', type: 'uint256' },
4604
+ { name: 'engineShares', type: 'uint256' },
4232
4605
  { name: 'requestData', type: 'bytes' },
4233
4606
  ],
4234
4607
  outputs: [{ name: 'requestId', type: 'bytes32' }],
4235
4608
  stateMutability: 'nonpayable',
4236
4609
  },
4237
4610
  ];
4238
- exports.vaultEngineShares = [
4611
+ exports.earnEngineInKindDeposit = [
4239
4612
  {
4240
4613
  type: 'function',
4241
- name: 'depositShares',
4614
+ name: 'depositInKind',
4242
4615
  inputs: [
4243
- { name: 'shares', type: 'uint256' },
4616
+ { name: 'venueShares', type: 'uint256' },
4244
4617
  { name: 'from', type: 'address' },
4245
4618
  ],
4246
- outputs: [{ name: 'sharesReceived', type: 'uint256' }],
4619
+ outputs: [{ name: 'engineSharesReceived', type: 'uint256' }],
4247
4620
  stateMutability: 'nonpayable',
4248
4621
  },
4249
4622
  ];
4250
- exports.vaultRewards = [
4623
+ exports.earnContributionController = [
4251
4624
  {
4252
4625
  type: 'function',
4253
4626
  name: 'active',
@@ -4260,9 +4633,10 @@ exports.vaultRewards = [
4260
4633
  name: 'fund',
4261
4634
  inputs: [
4262
4635
  { name: 'funder', type: 'address' },
4263
- { name: 'requested', type: 'uint256' },
4636
+ { name: 'requestedAssets', type: 'uint256' },
4637
+ { name: 'maxEarnShareSupply', type: 'uint256' },
4264
4638
  ],
4265
- outputs: [{ name: 'funded', type: 'uint256' }],
4639
+ outputs: [{ name: 'fundedAssets', type: 'uint256' }],
4266
4640
  stateMutability: 'nonpayable',
4267
4641
  },
4268
4642
  {
@@ -4277,11 +4651,19 @@ exports.vaultRewards = [
4277
4651
  name: 'Funded',
4278
4652
  inputs: [
4279
4653
  { name: 'funder', type: 'address', indexed: true },
4280
- { name: 'requested', type: 'uint256', indexed: false },
4281
- { name: 'funded', type: 'uint256', indexed: false },
4654
+ { name: 'requestedAssets', type: 'uint256', indexed: false },
4655
+ { name: 'fundedAssets', type: 'uint256', indexed: false },
4282
4656
  ],
4283
4657
  anonymous: false,
4284
4658
  },
4659
+ {
4660
+ type: 'error',
4661
+ name: 'EarnShareSupplyOutOfBounds',
4662
+ inputs: [
4663
+ { name: 'earnShareSupply', type: 'uint256' },
4664
+ { name: 'maxEarnShareSupply', type: 'uint256' },
4665
+ ],
4666
+ },
4285
4667
  { type: 'error', name: 'Inactive', inputs: [] },
4286
4668
  { type: 'error', name: 'NotSelf', inputs: [] },
4287
4669
  {
@@ -4314,6 +4696,7 @@ exports.vedaEngine = [
4314
4696
  outputs: [
4315
4697
  { name: 'open', type: 'bool' },
4316
4698
  { name: 'paid', type: 'bool' },
4699
+ { name: 'claimable', type: 'bool' },
4317
4700
  { name: 'recorded', type: 'bool' },
4318
4701
  {
4319
4702
  name: 'request',
@@ -4355,19 +4738,13 @@ exports.vedaEngine = [
4355
4738
  ],
4356
4739
  anonymous: false,
4357
4740
  },
4358
- {
4359
- type: 'event',
4360
- name: 'CoreInitialized',
4361
- inputs: [{ name: 'core', type: 'address', indexed: true }],
4362
- anonymous: false,
4363
- },
4364
4741
  {
4365
4742
  type: 'event',
4366
4743
  name: 'Deposited',
4367
4744
  inputs: [
4368
- { name: 'receiver', type: 'address', indexed: true },
4745
+ { name: 'earnVault', type: 'address', indexed: true },
4369
4746
  { name: 'assets', type: 'uint256', indexed: false },
4370
- { name: 'shares', type: 'uint256', indexed: false },
4747
+ { name: 'engineShares', type: 'uint256', indexed: false },
4371
4748
  ],
4372
4749
  anonymous: false,
4373
4750
  },
@@ -4381,6 +4758,12 @@ exports.vedaEngine = [
4381
4758
  ],
4382
4759
  anonymous: false,
4383
4760
  },
4761
+ {
4762
+ type: 'event',
4763
+ name: 'EarnVaultInitialized',
4764
+ inputs: [{ name: 'earnVault', type: 'address', indexed: true }],
4765
+ anonymous: false,
4766
+ },
4384
4767
  {
4385
4768
  type: 'event',
4386
4769
  name: 'FinalizeFailed',
@@ -4401,6 +4784,15 @@ exports.vedaEngine = [
4401
4784
  ],
4402
4785
  anonymous: false,
4403
4786
  },
4787
+ {
4788
+ type: 'event',
4789
+ name: 'MaxRateAgeUpdated',
4790
+ inputs: [
4791
+ { name: 'oldMaxRateAge', type: 'uint64', indexed: false },
4792
+ { name: 'newMaxRateAge', type: 'uint64', indexed: false },
4793
+ ],
4794
+ anonymous: false,
4795
+ },
4404
4796
  {
4405
4797
  type: 'event',
4406
4798
  name: 'OwnershipTransferStarted',
@@ -4424,7 +4816,7 @@ exports.vedaEngine = [
4424
4816
  name: 'RedeemCancelledOnQueue',
4425
4817
  inputs: [
4426
4818
  { name: 'requestId', type: 'bytes32', indexed: true },
4427
- { name: 'shares', type: 'uint128', indexed: false },
4819
+ { name: 'venueShares', type: 'uint128', indexed: false },
4428
4820
  ],
4429
4821
  anonymous: false,
4430
4822
  },
@@ -4444,7 +4836,7 @@ exports.vedaEngine = [
4444
4836
  inputs: [
4445
4837
  { name: 'requestId', type: 'bytes32', indexed: true },
4446
4838
  { name: 'assetOut', type: 'address', indexed: true },
4447
- { name: 'shares', type: 'uint128', indexed: false },
4839
+ { name: 'venueShares', type: 'uint128', indexed: false },
4448
4840
  ],
4449
4841
  anonymous: false,
4450
4842
  },
@@ -4453,7 +4845,7 @@ exports.vedaEngine = [
4453
4845
  name: 'Redeemed',
4454
4846
  inputs: [
4455
4847
  { name: 'receiver', type: 'address', indexed: true },
4456
- { name: 'shares', type: 'uint256', indexed: false },
4848
+ { name: 'engineShares', type: 'uint256', indexed: false },
4457
4849
  { name: 'assets', type: 'uint256', indexed: false },
4458
4850
  ],
4459
4851
  anonymous: false,
@@ -4487,13 +4879,28 @@ exports.vedaEngine = [
4487
4879
  ],
4488
4880
  anonymous: false,
4489
4881
  },
4882
+ {
4883
+ type: 'event',
4884
+ name: 'VedaPeripheryUpdated',
4885
+ inputs: [
4886
+ { name: 'registryVersion', type: 'uint64', indexed: true },
4887
+ { name: 'oldTeller', type: 'address', indexed: true },
4888
+ { name: 'oldQueue', type: 'address', indexed: true },
4889
+ { name: 'oldAccountant', type: 'address', indexed: false },
4890
+ { name: 'newTeller', type: 'address', indexed: false },
4891
+ { name: 'newQueue', type: 'address', indexed: false },
4892
+ { name: 'newAccountant', type: 'address', indexed: false },
4893
+ { name: 'validatedRate', type: 'uint256', indexed: false },
4894
+ ],
4895
+ anonymous: false,
4896
+ },
4490
4897
  {
4491
4898
  type: 'event',
4492
4899
  name: 'WithdrewExact',
4493
4900
  inputs: [
4494
4901
  { name: 'receiver', type: 'address', indexed: true },
4495
4902
  { name: 'assets', type: 'uint256', indexed: false },
4496
- { name: 'sharesBurned', type: 'uint256', indexed: false },
4903
+ { name: 'engineSharesBurned', type: 'uint256', indexed: false },
4497
4904
  ],
4498
4905
  anonymous: false,
4499
4906
  },
@@ -4503,13 +4910,17 @@ exports.vedaEngine = [
4503
4910
  name: 'AssetsNotArrived',
4504
4911
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4505
4912
  },
4506
- { type: 'error', name: 'CannotSweepBackingShares', inputs: [] },
4913
+ { type: 'error', name: 'CannotSweepVenueShares', inputs: [] },
4914
+ {
4915
+ type: 'error',
4916
+ name: 'ClaimNotClaimable',
4917
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4918
+ },
4507
4919
  {
4508
4920
  type: 'error',
4509
4921
  name: 'ClaimNotOpen',
4510
4922
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4511
4923
  },
4512
- { type: 'error', name: 'CoreNotSet', inputs: [] },
4513
4924
  {
4514
4925
  type: 'error',
4515
4926
  name: 'CreditExceedsBalance',
@@ -4519,265 +4930,229 @@ exports.vedaEngine = [
4519
4930
  { name: 'wantTotal', type: 'uint256' },
4520
4931
  ],
4521
4932
  },
4522
- { type: 'error', name: 'NoSharesReceived', inputs: [] },
4933
+ { type: 'error', name: 'DepositsNotPaused', inputs: [] },
4523
4934
  {
4524
4935
  type: 'error',
4525
- name: 'NotAuthorizedForwarder',
4526
- inputs: [{ name: 'caller', type: 'address' }],
4936
+ name: 'DuplicateRequest',
4937
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4527
4938
  },
4939
+ { type: 'error', name: 'EarnVaultNotSet', inputs: [] },
4528
4940
  {
4529
4941
  type: 'error',
4530
- name: 'NotCore',
4531
- inputs: [{ name: 'caller', type: 'address' }],
4942
+ name: 'InvalidAsset',
4943
+ inputs: [
4944
+ { name: 'expected', type: 'address' },
4945
+ { name: 'actual', type: 'address' },
4946
+ ],
4532
4947
  },
4533
- { type: 'error', name: 'NotSelf', inputs: [] },
4948
+ { type: 'error', name: 'InvalidMaxRateAge', inputs: [] },
4534
4949
  {
4535
4950
  type: 'error',
4536
- name: 'OwnableInvalidOwner',
4537
- inputs: [{ name: 'owner', type: 'address' }],
4951
+ name: 'InvalidRateTimestamp',
4952
+ inputs: [
4953
+ { name: 'updatedAt', type: 'uint256' },
4954
+ { name: 'currentTime', type: 'uint256' },
4955
+ ],
4538
4956
  },
4539
4957
  {
4540
4958
  type: 'error',
4541
- name: 'OwnableUnauthorizedAccount',
4959
+ name: 'InvalidVedaPeriphery',
4542
4960
  inputs: [{ name: 'account', type: 'address' }],
4543
4961
  },
4544
- { type: 'error', name: 'ReentrantCall', inputs: [] },
4545
4962
  {
4546
4963
  type: 'error',
4547
- name: 'RequestDetailsNotRecorded',
4548
- inputs: [{ name: 'requestId', type: 'bytes32' }],
4964
+ name: 'InvalidVedaPeripheryWiring',
4965
+ inputs: [
4966
+ { name: 'component', type: 'address' },
4967
+ { name: 'expected', type: 'address' },
4968
+ { name: 'actual', type: 'address' },
4969
+ ],
4549
4970
  },
4550
4971
  {
4551
4972
  type: 'error',
4552
- name: 'SharesTooLarge',
4553
- inputs: [{ name: 'shares', type: 'uint256' }],
4554
- },
4555
- { type: 'error', name: 'TransferFailed', inputs: [] },
4556
- { type: 'error', name: 'ZeroAddress', inputs: [] },
4557
- ];
4558
- exports.zoneGateway = [
4559
- {
4560
- type: 'function',
4561
- name: 'defaultSwapper',
4562
- inputs: [],
4563
- outputs: [{ name: '', type: 'address' }],
4564
- stateMutability: 'view',
4565
- },
4566
- {
4567
- type: 'function',
4568
- name: 'shareToken',
4569
- inputs: [],
4570
- outputs: [{ name: '', type: 'address' }],
4571
- stateMutability: 'view',
4973
+ name: 'InvalidVedaRateBounds',
4974
+ inputs: [
4975
+ { name: 'minRate', type: 'uint256' },
4976
+ { name: 'maxRate', type: 'uint256' },
4977
+ ],
4572
4978
  },
4979
+ { type: 'error', name: 'InvalidVenueShareDecimals', inputs: [] },
4980
+ { type: 'error', name: 'NoPublishedVedaPeriphery', inputs: [] },
4981
+ { type: 'error', name: 'NoVenueSharesReceived', inputs: [] },
4573
4982
  {
4574
- type: 'function',
4575
- name: 'supportsFlow',
4576
- inputs: [{ name: 'flow', type: 'uint8' }],
4577
- outputs: [{ name: '', type: 'bool' }],
4578
- stateMutability: 'pure',
4983
+ type: 'error',
4984
+ name: 'NotAuthorizedForwarder',
4985
+ inputs: [{ name: 'caller', type: 'address' }],
4579
4986
  },
4580
4987
  {
4581
- type: 'function',
4582
- name: 'vaultAdapter',
4583
- inputs: [],
4584
- outputs: [{ name: '', type: 'address' }],
4585
- stateMutability: 'view',
4988
+ type: 'error',
4989
+ name: 'NotEarnVault',
4990
+ inputs: [{ name: 'caller', type: 'address' }],
4586
4991
  },
4992
+ { type: 'error', name: 'NotSelf', inputs: [] },
4587
4993
  {
4588
- type: 'function',
4589
- name: 'vaultAsset',
4590
- inputs: [],
4591
- outputs: [{ name: '', type: 'address' }],
4592
- stateMutability: 'view',
4994
+ type: 'error',
4995
+ name: 'OwnableInvalidOwner',
4996
+ inputs: [{ name: 'owner', type: 'address' }],
4593
4997
  },
4594
4998
  {
4595
- type: 'function',
4596
- name: 'zoneId',
4597
- inputs: [],
4598
- outputs: [{ name: '', type: 'uint32' }],
4599
- stateMutability: 'view',
4999
+ type: 'error',
5000
+ name: 'OwnableUnauthorizedAccount',
5001
+ inputs: [{ name: 'account', type: 'address' }],
4600
5002
  },
4601
5003
  {
4602
- type: 'function',
4603
- name: 'zoneMessenger',
4604
- inputs: [],
4605
- outputs: [{ name: '', type: 'address' }],
4606
- stateMutability: 'view',
5004
+ type: 'error',
5005
+ name: 'RateChangedWithinTransaction',
5006
+ inputs: [
5007
+ { name: 'expected', type: 'uint256' },
5008
+ { name: 'actual', type: 'uint256' },
5009
+ ],
4607
5010
  },
5011
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
4608
5012
  {
4609
- type: 'function',
4610
- name: 'zonePortal',
4611
- inputs: [],
4612
- outputs: [{ name: '', type: 'address' }],
4613
- stateMutability: 'view',
5013
+ type: 'error',
5014
+ name: 'RequestDetailsNotRecorded',
5015
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4614
5016
  },
4615
5017
  {
4616
- type: 'event',
4617
- name: 'EarnDeposit',
5018
+ type: 'error',
5019
+ name: 'SolveUnderfunded',
4618
5020
  inputs: [
4619
- { name: 'actionId', type: 'bytes32', indexed: true },
4620
- { name: 'inputToken', type: 'address', indexed: true },
4621
- { name: 'inputAmount', type: 'uint256', indexed: false },
4622
- { name: 'vaultAssets', type: 'uint256', indexed: false },
4623
- { name: 'shares', type: 'uint256', indexed: false },
4624
- { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
5021
+ { name: 'asset', type: 'address' },
5022
+ { name: 'delivered', type: 'uint256' },
5023
+ { name: 'required', type: 'uint256' },
4625
5024
  ],
4626
- anonymous: false,
4627
5025
  },
4628
5026
  {
4629
- type: 'event',
4630
- name: 'EarnRedeem',
5027
+ type: 'error',
5028
+ name: 'StaleAccountantRate',
4631
5029
  inputs: [
4632
- { name: 'actionId', type: 'bytes32', indexed: true },
4633
- { name: 'outputToken', type: 'address', indexed: true },
4634
- { name: 'shares', type: 'uint256', indexed: false },
4635
- { name: 'vaultAssets', type: 'uint256', indexed: false },
4636
- { name: 'outputAmount', type: 'uint256', indexed: false },
4637
- { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
5030
+ { name: 'updatedAt', type: 'uint256' },
5031
+ { name: 'currentTime', type: 'uint256' },
5032
+ { name: 'maxAge', type: 'uint256' },
4638
5033
  ],
4639
- anonymous: false,
4640
- },
4641
- ];
4642
- exports.zoneGatewayBase = [
4643
- {
4644
- type: 'function',
4645
- name: 'acceptOwnership',
4646
- inputs: [],
4647
- outputs: [],
4648
- stateMutability: 'nonpayable',
4649
5034
  },
5035
+ { type: 'error', name: 'TransferFailed', inputs: [] },
4650
5036
  {
4651
- type: 'function',
4652
- name: 'depositSwapperFor',
4653
- inputs: [{ name: 'token', type: 'address' }],
4654
- outputs: [{ name: 'swapper', type: 'address' }],
4655
- stateMutability: 'view',
5037
+ type: 'error',
5038
+ name: 'VedaRateOutOfBounds',
5039
+ inputs: [
5040
+ { name: 'rate', type: 'uint256' },
5041
+ { name: 'minRate', type: 'uint256' },
5042
+ { name: 'maxRate', type: 'uint256' },
5043
+ ],
4656
5044
  },
4657
5045
  {
4658
- type: 'function',
4659
- name: 'owner',
4660
- inputs: [],
4661
- outputs: [{ name: '', type: 'address' }],
4662
- stateMutability: 'view',
5046
+ type: 'error',
5047
+ name: 'VenueSharesTooLarge',
5048
+ inputs: [{ name: 'venueShares', type: 'uint256' }],
4663
5049
  },
5050
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
5051
+ ];
5052
+ exports.earnRouter = [
4664
5053
  {
4665
5054
  type: 'function',
4666
- name: 'pendingOwner',
5055
+ name: 'STABLECOIN_DEX',
4667
5056
  inputs: [],
4668
5057
  outputs: [{ name: '', type: 'address' }],
4669
5058
  stateMutability: 'view',
4670
5059
  },
4671
5060
  {
4672
5061
  type: 'function',
4673
- name: 'redeemSwapperFor',
4674
- inputs: [{ name: 'token', type: 'address' }],
4675
- outputs: [{ name: 'swapper', type: 'address' }],
4676
- stateMutability: 'view',
4677
- },
4678
- {
4679
- type: 'function',
4680
- name: 'renounceOwnership',
4681
- inputs: [],
4682
- outputs: [],
4683
- stateMutability: 'nonpayable',
4684
- },
4685
- {
4686
- type: 'function',
4687
- name: 'setDepositRoute',
4688
- inputs: [
4689
- { name: 'inputToken', type: 'address' },
4690
- { name: 'swapper', type: 'address' },
4691
- ],
4692
- outputs: [],
4693
- stateMutability: 'nonpayable',
4694
- },
4695
- {
4696
- type: 'function',
4697
- name: 'setRedeemRoute',
5062
+ name: 'onWithdrawalReceived',
4698
5063
  inputs: [
4699
- { name: 'outputToken', type: 'address' },
4700
- { name: 'swapper', type: 'address' },
5064
+ { name: 'sourceZoneId', type: 'uint32' },
5065
+ { name: 'sourcePortal', type: 'address' },
5066
+ { name: '', type: 'bytes32' },
5067
+ { name: 'token', type: 'address' },
5068
+ { name: 'amount', type: 'uint128' },
5069
+ { name: 'callbackData', type: 'bytes' },
4701
5070
  ],
4702
- outputs: [],
5071
+ outputs: [{ name: '', type: 'bytes4' }],
4703
5072
  stateMutability: 'nonpayable',
4704
5073
  },
4705
5074
  {
4706
5075
  type: 'function',
4707
- name: 'transferOwnership',
4708
- inputs: [{ name: 'newOwner', type: 'address' }],
4709
- outputs: [],
4710
- stateMutability: 'nonpayable',
5076
+ name: 'supportsFlow',
5077
+ inputs: [{ name: 'flow', type: 'uint8' }],
5078
+ outputs: [{ name: '', type: 'bool' }],
5079
+ stateMutability: 'pure',
4711
5080
  },
4712
5081
  {
4713
5082
  type: 'event',
4714
- name: 'DepositRouteUpdated',
5083
+ name: 'EarnDeposit',
4715
5084
  inputs: [
5085
+ { name: 'actionId', type: 'bytes32', indexed: true },
5086
+ { name: 'earnVault', type: 'address', indexed: true },
4716
5087
  { name: 'inputToken', type: 'address', indexed: true },
4717
- { name: 'swapper', type: 'address', indexed: true },
4718
- ],
4719
- anonymous: false,
4720
- },
4721
- {
4722
- type: 'event',
4723
- name: 'OwnershipTransferStarted',
4724
- inputs: [
4725
- { name: 'previousOwner', type: 'address', indexed: true },
4726
- { name: 'newOwner', type: 'address', indexed: true },
4727
- ],
4728
- anonymous: false,
4729
- },
4730
- {
4731
- type: 'event',
4732
- name: 'OwnershipTransferred',
4733
- inputs: [
4734
- { name: 'previousOwner', type: 'address', indexed: true },
4735
- { name: 'newOwner', type: 'address', indexed: true },
5088
+ { name: 'inputAmount', type: 'uint256', indexed: false },
5089
+ { name: 'vaultAssets', type: 'uint256', indexed: false },
5090
+ { name: 'earnShares', type: 'uint256', indexed: false },
5091
+ { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
4736
5092
  ],
4737
5093
  anonymous: false,
4738
5094
  },
4739
5095
  {
4740
5096
  type: 'event',
4741
- name: 'RedeemRouteUpdated',
5097
+ name: 'EarnRedeem',
4742
5098
  inputs: [
5099
+ { name: 'actionId', type: 'bytes32', indexed: true },
5100
+ { name: 'earnVault', type: 'address', indexed: true },
4743
5101
  { name: 'outputToken', type: 'address', indexed: true },
4744
- { name: 'swapper', type: 'address', indexed: true },
4745
- ],
4746
- anonymous: false,
4747
- },
4748
- {
4749
- type: 'event',
4750
- name: 'TokenRescued',
4751
- inputs: [
4752
- { name: 'token', type: 'address', indexed: true },
4753
- { name: 'receiver', type: 'address', indexed: true },
4754
- { name: 'amount', type: 'uint256', indexed: false },
5102
+ { name: 'earnShares', type: 'uint256', indexed: false },
5103
+ { name: 'vaultAssets', type: 'uint256', indexed: false },
5104
+ { name: 'outputAmount', type: 'uint256', indexed: false },
5105
+ { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
4755
5106
  ],
4756
5107
  anonymous: false,
4757
5108
  },
5109
+ { type: 'error', name: 'AmountOverflow', inputs: [] },
5110
+ { type: 'error', name: 'BadFlow', inputs: [] },
5111
+ { type: 'error', name: 'InsufficientOutput', inputs: [] },
5112
+ { type: 'error', name: 'InvalidEarnVault', inputs: [] },
5113
+ { type: 'error', name: 'InvalidSourcePortal', inputs: [] },
5114
+ { type: 'error', name: 'InvalidTargetPortal', inputs: [] },
5115
+ { type: 'error', name: 'InvalidToken', inputs: [] },
5116
+ { type: 'error', name: 'NotZoneMessenger', inputs: [] },
5117
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
5118
+ { type: 'error', name: 'ResidualBalance', inputs: [] },
5119
+ { type: 'error', name: 'TokenCallFailed', inputs: [] },
5120
+ { type: 'error', name: 'TokenCallFalse', inputs: [] },
5121
+ { type: 'error', name: 'WrongEarnShare', inputs: [] },
5122
+ { type: 'error', name: 'WrongOutputToken', inputs: [] },
5123
+ { type: 'error', name: 'WrongSourceAsset', inputs: [] },
5124
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
5125
+ { type: 'error', name: 'ZeroAmount', inputs: [] },
4758
5126
  ];
4759
- exports.zoneGatewayCallbackData = [
5127
+ exports.earnRouterCallbackData = [
4760
5128
  {
4761
5129
  components: [
4762
5130
  { name: 'flow', type: 'uint8' },
5131
+ { name: 'earnVault', type: 'address' },
4763
5132
  { name: 'outputToken', type: 'address' },
4764
- { name: 'keyIndex', type: 'uint256' },
5133
+ { name: 'minVaultAssets', type: 'uint128' },
5134
+ { name: 'minEarnShares', type: 'uint128' },
5135
+ { name: 'minOutputAmount', type: 'uint128' },
5136
+ { name: 'actionId', type: 'bytes32' },
4765
5137
  {
4766
5138
  components: [
4767
- { name: 'ephemeralPubkeyX', type: 'bytes32' },
4768
- { name: 'ephemeralPubkeyYParity', type: 'uint8' },
4769
- { name: 'ciphertext', type: 'bytes' },
4770
- { name: 'nonce', type: 'bytes12' },
4771
- { name: 'tag', type: 'bytes16' },
5139
+ { name: 'keyIndex', type: 'uint256' },
5140
+ {
5141
+ components: [
5142
+ { name: 'ephemeralPubkeyX', type: 'bytes32' },
5143
+ { name: 'ephemeralPubkeyYParity', type: 'uint8' },
5144
+ { name: 'ciphertext', type: 'bytes' },
5145
+ { name: 'nonce', type: 'bytes12' },
5146
+ { name: 'tag', type: 'bytes16' },
5147
+ ],
5148
+ name: 'encrypted',
5149
+ type: 'tuple',
5150
+ },
5151
+ { name: 'refundRecipient', type: 'address' },
4772
5152
  ],
4773
- name: 'encrypted',
5153
+ name: 'zoneReturn',
4774
5154
  type: 'tuple',
4775
5155
  },
4776
- { name: 'minVaultAssets', type: 'uint128' },
4777
- { name: 'minVaultShares', type: 'uint128' },
4778
- { name: 'minOutputAmount', type: 'uint128' },
4779
- { name: 'actionId', type: 'bytes32' },
4780
- { name: 'refundRecipient', type: 'address' },
4781
5156
  ],
4782
5157
  name: 'callbackData',
4783
5158
  type: 'tuple',