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