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