viem 2.55.10 → 2.55.13

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 (138) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/_cjs/actions/wallet/prepareTransactionRequest.js +12 -12
  3. package/_cjs/actions/wallet/prepareTransactionRequest.js.map +1 -1
  4. package/_cjs/actions/wallet/sendTransaction.js +24 -12
  5. package/_cjs/actions/wallet/sendTransaction.js.map +1 -1
  6. package/_cjs/actions/wallet/sendTransactionSync.js +24 -12
  7. package/_cjs/actions/wallet/sendTransactionSync.js.map +1 -1
  8. package/_cjs/chains/definitions/story.js +7 -7
  9. package/_cjs/chains/definitions/story.js.map +1 -1
  10. package/_cjs/chains/definitions/storyAeneid.js +8 -8
  11. package/_cjs/chains/definitions/storyAeneid.js.map +1 -1
  12. package/_cjs/clients/createClient.js +1 -0
  13. package/_cjs/clients/createClient.js.map +1 -1
  14. package/_cjs/errors/typedData.js +11 -1
  15. package/_cjs/errors/typedData.js.map +1 -1
  16. package/_cjs/errors/version.js +1 -1
  17. package/_cjs/index.js +5 -4
  18. package/_cjs/index.js.map +1 -1
  19. package/_cjs/tempo/Abis.js +642 -253
  20. package/_cjs/tempo/Abis.js.map +1 -1
  21. package/_cjs/tempo/Decorator.js +7 -0
  22. package/_cjs/tempo/Decorator.js.map +1 -1
  23. package/_cjs/tempo/actions/earn/deployment.js +654 -0
  24. package/_cjs/tempo/actions/earn/deployment.js.map +1 -0
  25. package/_cjs/tempo/actions/earn.js +60 -17
  26. package/_cjs/tempo/actions/earn.js.map +1 -1
  27. package/_cjs/tempo/actions/token.js +18 -6
  28. package/_cjs/tempo/actions/token.js.map +1 -1
  29. package/_cjs/tempo/actions/zone.js +11 -1
  30. package/_cjs/tempo/actions/zone.js.map +1 -1
  31. package/_cjs/tempo/chainConfig.js +24 -23
  32. package/_cjs/tempo/chainConfig.js.map +1 -1
  33. package/_cjs/tempo/internal/WithdrawalSenderTag.js +2 -2
  34. package/_cjs/tempo/internal/WithdrawalSenderTag.js.map +1 -1
  35. package/_cjs/tempo/zones/Abis.js +17 -0
  36. package/_cjs/tempo/zones/Abis.js.map +1 -1
  37. package/_cjs/tokens/definitions/usdc.js +7 -0
  38. package/_cjs/tokens/definitions/usdc.js.map +1 -1
  39. package/_cjs/utils/promise/withRetry.js +2 -2
  40. package/_cjs/utils/promise/withRetry.js.map +1 -1
  41. package/_cjs/utils/typedData.js +3 -0
  42. package/_cjs/utils/typedData.js.map +1 -1
  43. package/_esm/actions/wallet/prepareTransactionRequest.js +14 -13
  44. package/_esm/actions/wallet/prepareTransactionRequest.js.map +1 -1
  45. package/_esm/actions/wallet/sendTransaction.js +24 -12
  46. package/_esm/actions/wallet/sendTransaction.js.map +1 -1
  47. package/_esm/actions/wallet/sendTransactionSync.js +24 -12
  48. package/_esm/actions/wallet/sendTransactionSync.js.map +1 -1
  49. package/_esm/chains/definitions/story.js +7 -7
  50. package/_esm/chains/definitions/story.js.map +1 -1
  51. package/_esm/chains/definitions/storyAeneid.js +8 -8
  52. package/_esm/chains/definitions/storyAeneid.js.map +1 -1
  53. package/_esm/clients/createClient.js +4 -3
  54. package/_esm/clients/createClient.js.map +1 -1
  55. package/_esm/errors/typedData.js +9 -0
  56. package/_esm/errors/typedData.js.map +1 -1
  57. package/_esm/errors/version.js +1 -1
  58. package/_esm/index.js +1 -1
  59. package/_esm/index.js.map +1 -1
  60. package/_esm/tempo/Abis.js +643 -254
  61. package/_esm/tempo/Abis.js.map +1 -1
  62. package/_esm/tempo/Decorator.js +7 -0
  63. package/_esm/tempo/Decorator.js.map +1 -1
  64. package/_esm/tempo/actions/earn/deployment.js +967 -0
  65. package/_esm/tempo/actions/earn/deployment.js.map +1 -0
  66. package/_esm/tempo/actions/earn.js +47 -17
  67. package/_esm/tempo/actions/earn.js.map +1 -1
  68. package/_esm/tempo/actions/token.js +21 -8
  69. package/_esm/tempo/actions/token.js.map +1 -1
  70. package/_esm/tempo/actions/zone.js +11 -1
  71. package/_esm/tempo/actions/zone.js.map +1 -1
  72. package/_esm/tempo/chainConfig.js +26 -28
  73. package/_esm/tempo/chainConfig.js.map +1 -1
  74. package/_esm/tempo/internal/WithdrawalSenderTag.js +3 -3
  75. package/_esm/tempo/internal/WithdrawalSenderTag.js.map +1 -1
  76. package/_esm/tempo/zones/Abis.js +17 -0
  77. package/_esm/tempo/zones/Abis.js.map +1 -1
  78. package/_esm/tokens/definitions/usdc.js +7 -0
  79. package/_esm/tokens/definitions/usdc.js.map +1 -1
  80. package/_esm/utils/promise/withRetry.js +2 -2
  81. package/_esm/utils/promise/withRetry.js.map +1 -1
  82. package/_esm/utils/typedData.js +4 -1
  83. package/_esm/utils/typedData.js.map +1 -1
  84. package/_types/actions/wallet/prepareTransactionRequest.d.ts.map +1 -1
  85. package/_types/actions/wallet/sendTransaction.d.ts.map +1 -1
  86. package/_types/actions/wallet/sendTransactionSync.d.ts.map +1 -1
  87. package/_types/chains/definitions/story.d.ts +7 -7
  88. package/_types/chains/definitions/storyAeneid.d.ts +8 -8
  89. package/_types/clients/createClient.d.ts +3 -3
  90. package/_types/clients/createClient.d.ts.map +1 -1
  91. package/_types/errors/typedData.d.ts +8 -0
  92. package/_types/errors/typedData.d.ts.map +1 -1
  93. package/_types/errors/version.d.ts +1 -1
  94. package/_types/index.d.ts +1 -1
  95. package/_types/index.d.ts.map +1 -1
  96. package/_types/tempo/Abis.d.ts +945 -388
  97. package/_types/tempo/Abis.d.ts.map +1 -1
  98. package/_types/tempo/Decorator.d.ts +18 -0
  99. package/_types/tempo/Decorator.d.ts.map +1 -1
  100. package/_types/tempo/actions/earn/deployment.d.ts +1710 -0
  101. package/_types/tempo/actions/earn/deployment.d.ts.map +1 -0
  102. package/_types/tempo/actions/earn.d.ts +1142 -535
  103. package/_types/tempo/actions/earn.d.ts.map +1 -1
  104. package/_types/tempo/actions/token.d.ts +1 -1
  105. package/_types/tempo/actions/token.d.ts.map +1 -1
  106. package/_types/tempo/actions/zone.d.ts.map +1 -1
  107. package/_types/tempo/chainConfig.d.ts.map +1 -1
  108. package/_types/tempo/internal/WithdrawalSenderTag.d.ts +2 -1
  109. package/_types/tempo/internal/WithdrawalSenderTag.d.ts.map +1 -1
  110. package/_types/tempo/zones/Abis.d.ts +48 -0
  111. package/_types/tempo/zones/Abis.d.ts.map +1 -1
  112. package/_types/tokens/definitions/usdc.d.ts +7 -0
  113. package/_types/tokens/definitions/usdc.d.ts.map +1 -1
  114. package/_types/tokens/sets.d.ts +14 -0
  115. package/_types/tokens/sets.d.ts.map +1 -1
  116. package/_types/utils/typedData.d.ts.map +1 -1
  117. package/actions/wallet/prepareTransactionRequest.ts +18 -17
  118. package/actions/wallet/sendTransaction.ts +25 -10
  119. package/actions/wallet/sendTransactionSync.ts +25 -10
  120. package/chains/definitions/story.ts +7 -7
  121. package/chains/definitions/storyAeneid.ts +8 -8
  122. package/clients/createClient.ts +4 -3
  123. package/errors/typedData.ts +13 -0
  124. package/errors/version.ts +1 -1
  125. package/index.ts +2 -0
  126. package/package.json +1 -1
  127. package/tempo/Abis.ts +644 -254
  128. package/tempo/Decorator.ts +41 -0
  129. package/tempo/actions/earn/deployment.ts +1427 -0
  130. package/tempo/actions/earn.ts +83 -63
  131. package/tempo/actions/token.ts +60 -9
  132. package/tempo/actions/zone.ts +10 -1
  133. package/tempo/chainConfig.ts +30 -27
  134. package/tempo/internal/WithdrawalSenderTag.ts +5 -4
  135. package/tempo/zones/Abis.ts +17 -0
  136. package/tokens/definitions/usdc.ts +7 -0
  137. package/utils/promise/withRetry.ts +4 -4
  138. package/utils/typedData.ts +5 -0
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.earnRouterCallbackData = exports.earnRouter = exports.vedaEngine = exports.earnContributionController = exports.earnEngineInKindDeposit = exports.earnEngineAsyncRedeem = exports.earnEngine = exports.earnFees = exports.earnVault = exports.erc4626Engine = exports.earnFactory = exports.abis = exports.validatorConfigV2 = exports.storageCredits = exports.validatorConfig = exports.feeAmm = exports.feeManager = exports.tip403Registry = exports.tip20Factory = exports.tip20ChannelReserve = exports.tip20 = exports.stablecoinDex = exports.signatureVerifier = exports.receivePolicyGuard = exports.nonce = exports.addressRegistry = exports.accountKeychain = void 0;
3
+ exports.earnRouterCallbackData = exports.earnRouter = exports.vedaEngine = exports.earnContributionController = exports.earnEngineInKindDeposit = exports.earnEngineAsyncRedeem = exports.earnEngine = exports.earnFees = exports.earnVault = exports.erc4626Engine = exports.earnFactory = exports.erc4626EngineFactory = exports.abis = exports.validatorConfigV2 = exports.storageCredits = exports.validatorConfig = exports.feeAmm = exports.feeManager = exports.tip403Registry = exports.tip20Factory = exports.tip20ChannelReserve = exports.tip20 = exports.stablecoinDex = exports.signatureVerifier = exports.receivePolicyGuard = exports.nonce = exports.addressRegistry = exports.accountKeychain = void 0;
4
4
  exports.accountKeychain = [
5
5
  {
6
6
  name: 'authorizeKey',
@@ -2975,6 +2975,67 @@ exports.abis = [
2975
2975
  ...exports.validatorConfig,
2976
2976
  ...exports.validatorConfigV2,
2977
2977
  ];
2978
+ exports.erc4626EngineFactory = [
2979
+ {
2980
+ type: 'function',
2981
+ name: 'computeEngineSalt',
2982
+ inputs: [
2983
+ { name: 'deploymentId', type: 'bytes32' },
2984
+ { name: 'vault', type: 'address' },
2985
+ { name: 'owner', type: 'address' },
2986
+ { name: 'nameOverride', type: 'string' },
2987
+ { name: 'symbolOverride', type: 'string' },
2988
+ ],
2989
+ outputs: [{ name: '', type: 'bytes32' }],
2990
+ stateMutability: 'pure',
2991
+ },
2992
+ {
2993
+ type: 'function',
2994
+ name: 'deploy',
2995
+ inputs: [
2996
+ { name: 'deploymentId', type: 'bytes32' },
2997
+ { name: 'vault', type: 'address' },
2998
+ { name: 'owner', type: 'address' },
2999
+ { name: 'nameOverride', type: 'string' },
3000
+ { name: 'symbolOverride', type: 'string' },
3001
+ ],
3002
+ outputs: [{ name: 'engine', type: 'address' }],
3003
+ stateMutability: 'nonpayable',
3004
+ },
3005
+ {
3006
+ type: 'function',
3007
+ name: 'predictEngine',
3008
+ inputs: [
3009
+ { name: 'deploymentId', type: 'bytes32' },
3010
+ { name: 'vault', type: 'address' },
3011
+ { name: 'owner', type: 'address' },
3012
+ { name: 'nameOverride', type: 'string' },
3013
+ { name: 'symbolOverride', type: 'string' },
3014
+ ],
3015
+ outputs: [{ name: '', type: 'address' }],
3016
+ stateMutability: 'view',
3017
+ },
3018
+ {
3019
+ type: 'event',
3020
+ name: 'ERC4626EngineDeployed',
3021
+ inputs: [
3022
+ { name: 'engine', type: 'address', indexed: true },
3023
+ { name: 'vault', type: 'address', indexed: true },
3024
+ { name: 'owner', type: 'address', indexed: true },
3025
+ { name: 'asset', type: 'address', indexed: false },
3026
+ { name: 'deploymentId', type: 'bytes32', indexed: false },
3027
+ { name: 'engineSalt', type: 'bytes32', indexed: false },
3028
+ ],
3029
+ anonymous: false,
3030
+ },
3031
+ { type: 'error', name: 'EmptyDeploymentId', inputs: [] },
3032
+ {
3033
+ type: 'error',
3034
+ name: 'EngineAlreadyExists',
3035
+ inputs: [{ name: 'engine', type: 'address' }],
3036
+ },
3037
+ { type: 'error', name: 'FactoryCannotBeFinalOwner', inputs: [] },
3038
+ ];
2978
3039
  exports.earnFactory = [
2979
3040
  {
2980
3041
  type: 'function',
@@ -2993,44 +3054,44 @@ exports.earnFactory = [
2993
3054
  components: [
2994
3055
  { name: 'emergencyGuardian', type: 'address' },
2995
3056
  { name: 'asyncJanitor', type: 'address' },
3057
+ { name: 'maxManagedAssets', type: 'uint256' },
2996
3058
  { name: 'migrationMode', type: 'uint8' },
2997
3059
  ],
2998
3060
  },
3061
+ {
3062
+ name: 'distributorConfig',
3063
+ type: 'tuple',
3064
+ components: [
3065
+ { name: 'distributor', type: 'address' },
3066
+ { name: 'updateDelay', type: 'uint40' },
3067
+ ],
3068
+ },
2999
3069
  {
3000
3070
  name: 'fees',
3001
3071
  type: 'tuple',
3002
3072
  components: [
3003
- { name: 'administrator', type: 'address' },
3004
- { name: 'guardian', type: 'address' },
3005
- { name: 'fixedFeeCap', type: 'uint96' },
3006
- { name: 'excessFeeCap', type: 'uint96' },
3073
+ { name: 'fixedFeeCount', type: 'uint8' },
3007
3074
  {
3008
- name: 'initialConfig',
3075
+ name: 'fixedFees',
3076
+ type: 'tuple[4]',
3077
+ components: [
3078
+ { name: 'account', type: 'address' },
3079
+ { name: 'rateBps', type: 'uint16' },
3080
+ ],
3081
+ },
3082
+ {
3083
+ name: 'excess',
3009
3084
  type: 'tuple',
3010
3085
  components: [
3011
- { name: 'fixedFeeCount', type: 'uint8' },
3012
- {
3013
- name: 'fixedFees',
3014
- type: 'tuple[4]',
3015
- components: [
3016
- { name: 'account', type: 'address' },
3017
- { name: 'rate', type: 'uint96' },
3018
- ],
3019
- },
3020
- {
3021
- name: 'excess',
3022
- type: 'tuple',
3023
- components: [
3024
- { name: 'enabled', type: 'bool' },
3025
- { name: 'account', type: 'address' },
3026
- { name: 'annualTargetRate', type: 'uint96' },
3027
- { name: 'excessFeeRate', type: 'uint96' },
3028
- ],
3029
- },
3086
+ { name: 'enabled', type: 'bool' },
3087
+ { name: 'account', type: 'address' },
3088
+ { name: 'annualTargetRateBps', type: 'uint16' },
3089
+ { name: 'excessFeeRateBps', type: 'uint16' },
3030
3090
  ],
3031
3091
  },
3032
3092
  ],
3033
3093
  },
3094
+ { name: 'transferPolicyId', type: 'uint64' },
3034
3095
  ],
3035
3096
  },
3036
3097
  ],
@@ -3054,44 +3115,44 @@ exports.earnFactory = [
3054
3115
  components: [
3055
3116
  { name: 'emergencyGuardian', type: 'address' },
3056
3117
  { name: 'asyncJanitor', type: 'address' },
3118
+ { name: 'maxManagedAssets', type: 'uint256' },
3057
3119
  { name: 'migrationMode', type: 'uint8' },
3058
3120
  ],
3059
3121
  },
3122
+ {
3123
+ name: 'distributorConfig',
3124
+ type: 'tuple',
3125
+ components: [
3126
+ { name: 'distributor', type: 'address' },
3127
+ { name: 'updateDelay', type: 'uint40' },
3128
+ ],
3129
+ },
3060
3130
  {
3061
3131
  name: 'fees',
3062
3132
  type: 'tuple',
3063
3133
  components: [
3064
- { name: 'administrator', type: 'address' },
3065
- { name: 'guardian', type: 'address' },
3066
- { name: 'fixedFeeCap', type: 'uint96' },
3067
- { name: 'excessFeeCap', type: 'uint96' },
3134
+ { name: 'fixedFeeCount', type: 'uint8' },
3135
+ {
3136
+ name: 'fixedFees',
3137
+ type: 'tuple[4]',
3138
+ components: [
3139
+ { name: 'account', type: 'address' },
3140
+ { name: 'rateBps', type: 'uint16' },
3141
+ ],
3142
+ },
3068
3143
  {
3069
- name: 'initialConfig',
3144
+ name: 'excess',
3070
3145
  type: 'tuple',
3071
3146
  components: [
3072
- { name: 'fixedFeeCount', type: 'uint8' },
3073
- {
3074
- name: 'fixedFees',
3075
- type: 'tuple[4]',
3076
- components: [
3077
- { name: 'account', type: 'address' },
3078
- { name: 'rate', type: 'uint96' },
3079
- ],
3080
- },
3081
- {
3082
- name: 'excess',
3083
- type: 'tuple',
3084
- components: [
3085
- { name: 'enabled', type: 'bool' },
3086
- { name: 'account', type: 'address' },
3087
- { name: 'annualTargetRate', type: 'uint96' },
3088
- { name: 'excessFeeRate', type: 'uint96' },
3089
- ],
3090
- },
3147
+ { name: 'enabled', type: 'bool' },
3148
+ { name: 'account', type: 'address' },
3149
+ { name: 'annualTargetRateBps', type: 'uint16' },
3150
+ { name: 'excessFeeRateBps', type: 'uint16' },
3091
3151
  ],
3092
3152
  },
3093
3153
  ],
3094
3154
  },
3155
+ { name: 'transferPolicyId', type: 'uint64' },
3095
3156
  ],
3096
3157
  },
3097
3158
  ],
@@ -3102,6 +3163,20 @@ exports.earnFactory = [
3102
3163
  ],
3103
3164
  stateMutability: 'nonpayable',
3104
3165
  },
3166
+ {
3167
+ type: 'function',
3168
+ name: 'earnFeesImplementation',
3169
+ inputs: [],
3170
+ outputs: [{ name: '', type: 'address' }],
3171
+ stateMutability: 'view',
3172
+ },
3173
+ {
3174
+ type: 'function',
3175
+ name: 'earnVaultImplementation',
3176
+ inputs: [],
3177
+ outputs: [{ name: '', type: 'address' }],
3178
+ stateMutability: 'view',
3179
+ },
3105
3180
  {
3106
3181
  type: 'function',
3107
3182
  name: 'predictEarnFees',
@@ -3119,44 +3194,44 @@ exports.earnFactory = [
3119
3194
  components: [
3120
3195
  { name: 'emergencyGuardian', type: 'address' },
3121
3196
  { name: 'asyncJanitor', type: 'address' },
3197
+ { name: 'maxManagedAssets', type: 'uint256' },
3122
3198
  { name: 'migrationMode', type: 'uint8' },
3123
3199
  ],
3124
3200
  },
3201
+ {
3202
+ name: 'distributorConfig',
3203
+ type: 'tuple',
3204
+ components: [
3205
+ { name: 'distributor', type: 'address' },
3206
+ { name: 'updateDelay', type: 'uint40' },
3207
+ ],
3208
+ },
3125
3209
  {
3126
3210
  name: 'fees',
3127
3211
  type: 'tuple',
3128
3212
  components: [
3129
- { name: 'administrator', type: 'address' },
3130
- { name: 'guardian', type: 'address' },
3131
- { name: 'fixedFeeCap', type: 'uint96' },
3132
- { name: 'excessFeeCap', type: 'uint96' },
3213
+ { name: 'fixedFeeCount', type: 'uint8' },
3214
+ {
3215
+ name: 'fixedFees',
3216
+ type: 'tuple[4]',
3217
+ components: [
3218
+ { name: 'account', type: 'address' },
3219
+ { name: 'rateBps', type: 'uint16' },
3220
+ ],
3221
+ },
3133
3222
  {
3134
- name: 'initialConfig',
3223
+ name: 'excess',
3135
3224
  type: 'tuple',
3136
3225
  components: [
3137
- { name: 'fixedFeeCount', type: 'uint8' },
3138
- {
3139
- name: 'fixedFees',
3140
- type: 'tuple[4]',
3141
- components: [
3142
- { name: 'account', type: 'address' },
3143
- { name: 'rate', type: 'uint96' },
3144
- ],
3145
- },
3146
- {
3147
- name: 'excess',
3148
- type: 'tuple',
3149
- components: [
3150
- { name: 'enabled', type: 'bool' },
3151
- { name: 'account', type: 'address' },
3152
- { name: 'annualTargetRate', type: 'uint96' },
3153
- { name: 'excessFeeRate', type: 'uint96' },
3154
- ],
3155
- },
3226
+ { name: 'enabled', type: 'bool' },
3227
+ { name: 'account', type: 'address' },
3228
+ { name: 'annualTargetRateBps', type: 'uint16' },
3229
+ { name: 'excessFeeRateBps', type: 'uint16' },
3156
3230
  ],
3157
3231
  },
3158
3232
  ],
3159
3233
  },
3234
+ { name: 'transferPolicyId', type: 'uint64' },
3160
3235
  ],
3161
3236
  },
3162
3237
  ],
@@ -3180,50 +3255,57 @@ exports.earnFactory = [
3180
3255
  components: [
3181
3256
  { name: 'emergencyGuardian', type: 'address' },
3182
3257
  { name: 'asyncJanitor', type: 'address' },
3258
+ { name: 'maxManagedAssets', type: 'uint256' },
3183
3259
  { name: 'migrationMode', type: 'uint8' },
3184
3260
  ],
3185
3261
  },
3262
+ {
3263
+ name: 'distributorConfig',
3264
+ type: 'tuple',
3265
+ components: [
3266
+ { name: 'distributor', type: 'address' },
3267
+ { name: 'updateDelay', type: 'uint40' },
3268
+ ],
3269
+ },
3186
3270
  {
3187
3271
  name: 'fees',
3188
3272
  type: 'tuple',
3189
3273
  components: [
3190
- { name: 'administrator', type: 'address' },
3191
- { name: 'guardian', type: 'address' },
3192
- { name: 'fixedFeeCap', type: 'uint96' },
3193
- { name: 'excessFeeCap', type: 'uint96' },
3274
+ { name: 'fixedFeeCount', type: 'uint8' },
3275
+ {
3276
+ name: 'fixedFees',
3277
+ type: 'tuple[4]',
3278
+ components: [
3279
+ { name: 'account', type: 'address' },
3280
+ { name: 'rateBps', type: 'uint16' },
3281
+ ],
3282
+ },
3194
3283
  {
3195
- name: 'initialConfig',
3284
+ name: 'excess',
3196
3285
  type: 'tuple',
3197
3286
  components: [
3198
- { name: 'fixedFeeCount', type: 'uint8' },
3199
- {
3200
- name: 'fixedFees',
3201
- type: 'tuple[4]',
3202
- components: [
3203
- { name: 'account', type: 'address' },
3204
- { name: 'rate', type: 'uint96' },
3205
- ],
3206
- },
3207
- {
3208
- name: 'excess',
3209
- type: 'tuple',
3210
- components: [
3211
- { name: 'enabled', type: 'bool' },
3212
- { name: 'account', type: 'address' },
3213
- { name: 'annualTargetRate', type: 'uint96' },
3214
- { name: 'excessFeeRate', type: 'uint96' },
3215
- ],
3216
- },
3287
+ { name: 'enabled', type: 'bool' },
3288
+ { name: 'account', type: 'address' },
3289
+ { name: 'annualTargetRateBps', type: 'uint16' },
3290
+ { name: 'excessFeeRateBps', type: 'uint16' },
3217
3291
  ],
3218
3292
  },
3219
3293
  ],
3220
3294
  },
3295
+ { name: 'transferPolicyId', type: 'uint64' },
3221
3296
  ],
3222
3297
  },
3223
3298
  ],
3224
3299
  outputs: [{ name: '', type: 'address' }],
3225
3300
  stateMutability: 'view',
3226
3301
  },
3302
+ {
3303
+ type: 'function',
3304
+ name: 'tip20Factory',
3305
+ inputs: [],
3306
+ outputs: [{ name: '', type: 'address' }],
3307
+ stateMutability: 'view',
3308
+ },
3227
3309
  {
3228
3310
  type: 'event',
3229
3311
  name: 'EarnStackDeployed',
@@ -3237,7 +3319,9 @@ exports.earnFactory = [
3237
3319
  { name: 'deploymentId', type: 'bytes32', indexed: false },
3238
3320
  { name: 'emergencyGuardian', type: 'address', indexed: false },
3239
3321
  { name: 'asyncJanitor', type: 'address', indexed: false },
3322
+ { name: 'maxManagedAssets', type: 'uint256', indexed: false },
3240
3323
  { name: 'migrationMode', type: 'uint8', indexed: false },
3324
+ { name: 'transferPolicyId', type: 'uint64', indexed: false },
3241
3325
  { name: 'earnShareSalt', type: 'bytes32', indexed: false },
3242
3326
  { name: 'controlConfigHash', type: 'bytes32', indexed: false },
3243
3327
  { name: 'feeConfigHash', type: 'bytes32', indexed: false },
@@ -3254,6 +3338,11 @@ exports.earnFactory = [
3254
3338
  { type: 'error', name: 'EarnShareSupplyNotZero', inputs: [] },
3255
3339
  { type: 'error', name: 'EmptyDeploymentId', inputs: [] },
3256
3340
  { type: 'error', name: 'EmptyEarnShareMetadata', inputs: [] },
3341
+ {
3342
+ type: 'error',
3343
+ name: 'EngineAlreadyBound',
3344
+ inputs: [{ name: 'earnVault', type: 'address' }],
3345
+ },
3257
3346
  { type: 'error', name: 'FactoryCannotBeFinalOwner', inputs: [] },
3258
3347
  { type: 'error', name: 'FailedDeployment', inputs: [] },
3259
3348
  {
@@ -3264,9 +3353,32 @@ exports.earnFactory = [
3264
3353
  { name: 'needed', type: 'uint256' },
3265
3354
  ],
3266
3355
  },
3356
+ { type: 'error', name: 'InvalidDistributorConfig', inputs: [] },
3267
3357
  { type: 'error', name: 'InvalidEarnFeesImplementation', inputs: [] },
3268
3358
  { type: 'error', name: 'InvalidEarnVaultImplementation', inputs: [] },
3359
+ { type: 'error', name: 'InvalidEngine', inputs: [] },
3360
+ {
3361
+ type: 'error',
3362
+ name: 'InvalidTransferPolicy',
3363
+ inputs: [{ name: 'policyId', type: 'uint64' }],
3364
+ },
3269
3365
  { type: 'error', name: 'IssuerGrantFailed', inputs: [] },
3366
+ {
3367
+ type: 'error',
3368
+ name: 'TransferPolicyMismatch',
3369
+ inputs: [
3370
+ { name: 'expected', type: 'uint64' },
3371
+ { name: 'actual', type: 'uint64' },
3372
+ ],
3373
+ },
3374
+ {
3375
+ type: 'error',
3376
+ name: 'UnsupportedTransferPolicy',
3377
+ inputs: [
3378
+ { name: 'policyId', type: 'uint64' },
3379
+ { name: 'policyType', type: 'uint8' },
3380
+ ],
3381
+ },
3270
3382
  { type: 'error', name: 'ZeroAddress', inputs: [] },
3271
3383
  ];
3272
3384
  exports.erc4626Engine = [
@@ -3277,6 +3389,27 @@ exports.erc4626Engine = [
3277
3389
  outputs: [],
3278
3390
  stateMutability: 'nonpayable',
3279
3391
  },
3392
+ {
3393
+ type: 'function',
3394
+ name: 'asset',
3395
+ inputs: [],
3396
+ outputs: [{ name: '', type: 'address' }],
3397
+ stateMutability: 'view',
3398
+ },
3399
+ {
3400
+ type: 'function',
3401
+ name: 'baseAsset',
3402
+ inputs: [],
3403
+ outputs: [{ name: '', type: 'address' }],
3404
+ stateMutability: 'view',
3405
+ },
3406
+ {
3407
+ type: 'function',
3408
+ name: 'earnVault',
3409
+ inputs: [],
3410
+ outputs: [{ name: '', type: 'address' }],
3411
+ stateMutability: 'view',
3412
+ },
3280
3413
  {
3281
3414
  type: 'function',
3282
3415
  name: 'initializeEarnVault',
@@ -3284,6 +3417,13 @@ exports.erc4626Engine = [
3284
3417
  outputs: [],
3285
3418
  stateMutability: 'nonpayable',
3286
3419
  },
3420
+ {
3421
+ type: 'function',
3422
+ name: 'name',
3423
+ inputs: [],
3424
+ outputs: [{ name: '', type: 'string' }],
3425
+ stateMutability: 'view',
3426
+ },
3287
3427
  {
3288
3428
  type: 'function',
3289
3429
  name: 'owner',
@@ -3305,6 +3445,13 @@ exports.erc4626Engine = [
3305
3445
  outputs: [],
3306
3446
  stateMutability: 'nonpayable',
3307
3447
  },
3448
+ {
3449
+ type: 'function',
3450
+ name: 'symbol',
3451
+ inputs: [],
3452
+ outputs: [{ name: '', type: 'string' }],
3453
+ stateMutability: 'view',
3454
+ },
3308
3455
  {
3309
3456
  type: 'function',
3310
3457
  name: 'transferOwnership',
@@ -3312,6 +3459,13 @@ exports.erc4626Engine = [
3312
3459
  outputs: [],
3313
3460
  stateMutability: 'nonpayable',
3314
3461
  },
3462
+ {
3463
+ type: 'function',
3464
+ name: 'vault',
3465
+ inputs: [],
3466
+ outputs: [{ name: '', type: 'address' }],
3467
+ stateMutability: 'view',
3468
+ },
3315
3469
  {
3316
3470
  type: 'event',
3317
3471
  name: 'Deposited',
@@ -3406,10 +3560,33 @@ exports.erc4626Engine = [
3406
3560
  },
3407
3561
  { type: 'error', name: 'ReentrantCall', inputs: [] },
3408
3562
  { type: 'error', name: 'TransferFailed', inputs: [] },
3563
+ {
3564
+ type: 'error',
3565
+ name: 'UnexpectedAssetsReceived',
3566
+ inputs: [
3567
+ { name: 'expectedAssets', type: 'uint256' },
3568
+ { name: 'actualAssets', type: 'uint256' },
3569
+ ],
3570
+ },
3571
+ {
3572
+ type: 'error',
3573
+ name: 'UnexpectedVenueSharesBurned',
3574
+ inputs: [
3575
+ { name: 'expectedShares', type: 'uint256' },
3576
+ { name: 'actualShares', type: 'uint256' },
3577
+ ],
3578
+ },
3409
3579
  { type: 'error', name: 'ZeroAddress', inputs: [] },
3410
3580
  ];
3411
3581
  exports.earnVault = [
3412
3582
  { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3583
+ {
3584
+ type: 'function',
3585
+ name: 'acceptDistributor',
3586
+ inputs: [],
3587
+ outputs: [],
3588
+ stateMutability: 'nonpayable',
3589
+ },
3413
3590
  {
3414
3591
  type: 'function',
3415
3592
  name: 'accrueFees',
@@ -3448,6 +3625,20 @@ exports.earnVault = [
3448
3625
  outputs: [{ name: '', type: 'address' }],
3449
3626
  stateMutability: 'view',
3450
3627
  },
3628
+ {
3629
+ type: 'function',
3630
+ name: 'cancelDistributorFeeUpdate',
3631
+ inputs: [],
3632
+ outputs: [],
3633
+ stateMutability: 'nonpayable',
3634
+ },
3635
+ {
3636
+ type: 'function',
3637
+ name: 'cancelDistributorTransfer',
3638
+ inputs: [],
3639
+ outputs: [],
3640
+ stateMutability: 'nonpayable',
3641
+ },
3451
3642
  {
3452
3643
  type: 'function',
3453
3644
  name: 'cancelRedeem',
@@ -3462,7 +3653,7 @@ exports.earnVault = [
3462
3653
  type: 'function',
3463
3654
  name: 'contribute',
3464
3655
  inputs: [{ name: 'assets', type: 'uint256' }],
3465
- outputs: [{ name: 'venueShares', type: 'uint256' }],
3656
+ outputs: [{ name: 'receivedEngineShares', type: 'uint256' }],
3466
3657
  stateMutability: 'nonpayable',
3467
3658
  },
3468
3659
  {
@@ -3490,13 +3681,6 @@ exports.earnVault = [
3490
3681
  outputs: [{ name: 'earnShares', type: 'uint256' }],
3491
3682
  stateMutability: 'nonpayable',
3492
3683
  },
3493
- {
3494
- type: 'function',
3495
- name: 'depositSwapOverride',
3496
- inputs: [{ name: 'inputToken', type: 'address' }],
3497
- outputs: [{ name: 'swapAdapter', type: 'address' }],
3498
- stateMutability: 'view',
3499
- },
3500
3684
  {
3501
3685
  type: 'function',
3502
3686
  name: 'depositVenueShares',
@@ -3522,6 +3706,30 @@ exports.earnVault = [
3522
3706
  outputs: [],
3523
3707
  stateMutability: 'nonpayable',
3524
3708
  },
3709
+ {
3710
+ type: 'function',
3711
+ name: 'distributor',
3712
+ inputs: [],
3713
+ outputs: [{ name: '', type: 'address' }],
3714
+ stateMutability: 'view',
3715
+ },
3716
+ {
3717
+ type: 'function',
3718
+ name: 'distributorFee',
3719
+ inputs: [],
3720
+ outputs: [
3721
+ { name: 'recipient', type: 'address' },
3722
+ { name: 'rateBps', type: 'uint16' },
3723
+ ],
3724
+ stateMutability: 'view',
3725
+ },
3726
+ {
3727
+ type: 'function',
3728
+ name: 'distributorUpdateDelay',
3729
+ inputs: [],
3730
+ outputs: [{ name: '', type: 'uint40' }],
3731
+ stateMutability: 'view',
3732
+ },
3525
3733
  {
3526
3734
  type: 'function',
3527
3735
  name: 'earnFees',
@@ -3566,17 +3774,10 @@ exports.earnVault = [
3566
3774
  },
3567
3775
  {
3568
3776
  type: 'function',
3569
- name: 'feeAdministrator',
3777
+ name: 'executeDistributorFeeUpdate',
3570
3778
  inputs: [],
3571
- outputs: [{ name: '', type: 'address' }],
3572
- stateMutability: 'view',
3573
- },
3574
- {
3575
- type: 'function',
3576
- name: 'feeGuardian',
3577
- inputs: [],
3578
- outputs: [{ name: '', type: 'address' }],
3579
- stateMutability: 'view',
3779
+ outputs: [{ name: 'feeConfigId', type: 'uint64' }],
3780
+ stateMutability: 'nonpayable',
3580
3781
  },
3581
3782
  {
3582
3783
  type: 'function',
@@ -3603,42 +3804,16 @@ exports.earnVault = [
3603
3804
  components: [
3604
3805
  { name: 'emergencyGuardian', type: 'address' },
3605
3806
  { name: 'asyncJanitor', type: 'address' },
3807
+ { name: 'maxManagedAssets', type: 'uint256' },
3606
3808
  { name: 'migrationMode', type: 'uint8' },
3607
3809
  ],
3608
3810
  },
3609
3811
  {
3610
- name: 'feeInit_',
3812
+ name: 'distributorInit_',
3611
3813
  type: 'tuple',
3612
3814
  components: [
3613
- { name: 'administrator', type: 'address' },
3614
- { name: 'guardian', type: 'address' },
3615
- { name: 'fixedFeeCap', type: 'uint96' },
3616
- { name: 'excessFeeCap', type: 'uint96' },
3617
- {
3618
- name: 'initialConfig',
3619
- type: 'tuple',
3620
- components: [
3621
- { name: 'fixedFeeCount', type: 'uint8' },
3622
- {
3623
- name: 'fixedFees',
3624
- type: 'tuple[4]',
3625
- components: [
3626
- { name: 'account', type: 'address' },
3627
- { name: 'rate', type: 'uint96' },
3628
- ],
3629
- },
3630
- {
3631
- name: 'excess',
3632
- type: 'tuple',
3633
- components: [
3634
- { name: 'enabled', type: 'bool' },
3635
- { name: 'account', type: 'address' },
3636
- { name: 'annualTargetRate', type: 'uint96' },
3637
- { name: 'excessFeeRate', type: 'uint96' },
3638
- ],
3639
- },
3640
- ],
3641
- },
3815
+ { name: 'distributor', type: 'address' },
3816
+ { name: 'updateDelay', type: 'uint40' },
3642
3817
  ],
3643
3818
  },
3644
3819
  ],
@@ -3652,6 +3827,13 @@ exports.earnVault = [
3652
3827
  outputs: [{ name: '', type: 'bool' }],
3653
3828
  stateMutability: 'view',
3654
3829
  },
3830
+ {
3831
+ type: 'function',
3832
+ name: 'maxManagedAssets',
3833
+ inputs: [],
3834
+ outputs: [{ name: '', type: 'uint256' }],
3835
+ stateMutability: 'view',
3836
+ },
3655
3837
  {
3656
3838
  type: 'function',
3657
3839
  name: 'migrateEngine',
@@ -3677,6 +3859,31 @@ exports.earnVault = [
3677
3859
  outputs: [{ name: '', type: 'address' }],
3678
3860
  stateMutability: 'view',
3679
3861
  },
3862
+ {
3863
+ type: 'function',
3864
+ name: 'pendingDistributor',
3865
+ inputs: [],
3866
+ outputs: [{ name: '', type: 'address' }],
3867
+ stateMutability: 'view',
3868
+ },
3869
+ {
3870
+ type: 'function',
3871
+ name: 'pendingDistributorFeeUpdate',
3872
+ inputs: [],
3873
+ outputs: [
3874
+ {
3875
+ name: '',
3876
+ type: 'tuple',
3877
+ components: [
3878
+ { name: 'recipient', type: 'address' },
3879
+ { name: 'rateBps', type: 'uint16' },
3880
+ { name: 'executableAt', type: 'uint40' },
3881
+ { name: 'pending', type: 'bool' },
3882
+ ],
3883
+ },
3884
+ ],
3885
+ stateMutability: 'view',
3886
+ },
3680
3887
  {
3681
3888
  type: 'function',
3682
3889
  name: 'pendingRedeem',
@@ -3689,7 +3896,7 @@ exports.earnVault = [
3689
3896
  { name: 'receiver', type: 'address' },
3690
3897
  { name: 'requester', type: 'address' },
3691
3898
  { name: 'burnedEarnShares', type: 'uint256' },
3692
- { name: 'venueShares', type: 'uint256' },
3899
+ { name: 'engineShares', type: 'uint256' },
3693
3900
  { name: 'open', type: 'bool' },
3694
3901
  ],
3695
3902
  },
@@ -3723,9 +3930,9 @@ exports.earnVault = [
3723
3930
  },
3724
3931
  {
3725
3932
  type: 'function',
3726
- name: 'redeemSwapOverride',
3727
- inputs: [{ name: 'outputToken', type: 'address' }],
3728
- outputs: [{ name: 'swapAdapter', type: 'address' }],
3933
+ name: 'remainingDepositCapacity',
3934
+ inputs: [],
3935
+ outputs: [{ name: 'assets', type: 'uint256' }],
3729
3936
  stateMutability: 'view',
3730
3937
  },
3731
3938
  {
@@ -3741,10 +3948,10 @@ exports.earnVault = [
3741
3948
  },
3742
3949
  {
3743
3950
  type: 'function',
3744
- name: 'setDepositSwapOverride',
3951
+ name: 'scheduleDistributorFeeUpdate',
3745
3952
  inputs: [
3746
- { name: 'inputToken', type: 'address' },
3747
- { name: 'swapAdapter', type: 'address' },
3953
+ { name: 'recipient', type: 'address' },
3954
+ { name: 'rateBps', type: 'uint16' },
3748
3955
  ],
3749
3956
  outputs: [],
3750
3957
  stateMutability: 'nonpayable',
@@ -3780,7 +3987,7 @@ exports.earnVault = [
3780
3987
  type: 'tuple[4]',
3781
3988
  components: [
3782
3989
  { name: 'account', type: 'address' },
3783
- { name: 'rate', type: 'uint96' },
3990
+ { name: 'rateBps', type: 'uint16' },
3784
3991
  ],
3785
3992
  },
3786
3993
  {
@@ -3789,8 +3996,8 @@ exports.earnVault = [
3789
3996
  components: [
3790
3997
  { name: 'enabled', type: 'bool' },
3791
3998
  { name: 'account', type: 'address' },
3792
- { name: 'annualTargetRate', type: 'uint96' },
3793
- { name: 'excessFeeRate', type: 'uint96' },
3999
+ { name: 'annualTargetRateBps', type: 'uint16' },
4000
+ { name: 'excessFeeRateBps', type: 'uint16' },
3794
4001
  ],
3795
4002
  },
3796
4003
  ],
@@ -3801,11 +4008,8 @@ exports.earnVault = [
3801
4008
  },
3802
4009
  {
3803
4010
  type: 'function',
3804
- name: 'setRedeemSwapOverride',
3805
- inputs: [
3806
- { name: 'outputToken', type: 'address' },
3807
- { name: 'swapAdapter', type: 'address' },
3808
- ],
4011
+ name: 'setMaxManagedAssets',
4012
+ inputs: [{ name: 'newMaxManagedAssets', type: 'uint256' }],
3809
4013
  outputs: [],
3810
4014
  stateMutability: 'nonpayable',
3811
4015
  },
@@ -3816,6 +4020,13 @@ exports.earnVault = [
3816
4020
  outputs: [{ name: '', type: 'uint256' }],
3817
4021
  stateMutability: 'view',
3818
4022
  },
4023
+ {
4024
+ type: 'function',
4025
+ name: 'transferDistributor',
4026
+ inputs: [{ name: 'newDistributor', type: 'address' }],
4027
+ outputs: [],
4028
+ stateMutability: 'nonpayable',
4029
+ },
3819
4030
  {
3820
4031
  type: 'function',
3821
4032
  name: 'withdrawExact',
@@ -3833,7 +4044,7 @@ exports.earnVault = [
3833
4044
  inputs: [
3834
4045
  { name: 'caller', type: 'address', indexed: true },
3835
4046
  { name: 'assets', type: 'uint256', indexed: false },
3836
- { name: 'venueShares', type: 'uint256', indexed: false },
4047
+ { name: 'engineShares', type: 'uint256', indexed: false },
3837
4048
  { name: 'anchorEngineShares', type: 'uint256', indexed: false },
3838
4049
  { name: 'anchorEarnShares', type: 'uint256', indexed: false },
3839
4050
  ],
@@ -3850,21 +4061,66 @@ exports.earnVault = [
3850
4061
  },
3851
4062
  {
3852
4063
  type: 'event',
3853
- name: 'DepositSwapOverrideSet',
4064
+ name: 'Deposited',
3854
4065
  inputs: [
3855
- { name: 'inputToken', type: 'address', indexed: true },
3856
- { name: 'swapAdapter', type: 'address', indexed: true },
4066
+ { name: 'caller', type: 'address', indexed: true },
4067
+ { name: 'receiver', type: 'address', indexed: true },
4068
+ { name: 'assets', type: 'uint256', indexed: false },
4069
+ { name: 'earnShares', type: 'uint256', indexed: false },
3857
4070
  ],
3858
4071
  anonymous: false,
3859
4072
  },
3860
4073
  {
3861
4074
  type: 'event',
3862
- name: 'Deposited',
4075
+ name: 'DistributorFeeUpdateCancelled',
4076
+ inputs: [{ name: 'distributor', type: 'address', indexed: true }],
4077
+ anonymous: false,
4078
+ },
4079
+ {
4080
+ type: 'event',
4081
+ name: 'DistributorFeeUpdateScheduled',
3863
4082
  inputs: [
3864
- { name: 'caller', type: 'address', indexed: true },
3865
- { name: 'receiver', type: 'address', indexed: true },
3866
- { name: 'assets', type: 'uint256', indexed: false },
3867
- { name: 'earnShares', type: 'uint256', indexed: false },
4083
+ { name: 'distributor', type: 'address', indexed: true },
4084
+ { name: 'recipient', type: 'address', indexed: true },
4085
+ { name: 'rateBps', type: 'uint16', indexed: false },
4086
+ { name: 'executableAt', type: 'uint40', indexed: false },
4087
+ ],
4088
+ anonymous: false,
4089
+ },
4090
+ {
4091
+ type: 'event',
4092
+ name: 'DistributorFeeUpdated',
4093
+ inputs: [
4094
+ { name: 'recipient', type: 'address', indexed: true },
4095
+ { name: 'rateBps', type: 'uint16', indexed: false },
4096
+ { name: 'feeConfigId', type: 'uint64', indexed: true },
4097
+ ],
4098
+ anonymous: false,
4099
+ },
4100
+ {
4101
+ type: 'event',
4102
+ name: 'DistributorTransferCancelled',
4103
+ inputs: [
4104
+ { name: 'distributor', type: 'address', indexed: true },
4105
+ { name: 'pendingDistributor', type: 'address', indexed: true },
4106
+ ],
4107
+ anonymous: false,
4108
+ },
4109
+ {
4110
+ type: 'event',
4111
+ name: 'DistributorTransferStarted',
4112
+ inputs: [
4113
+ { name: 'distributor', type: 'address', indexed: true },
4114
+ { name: 'pendingDistributor', type: 'address', indexed: true },
4115
+ ],
4116
+ anonymous: false,
4117
+ },
4118
+ {
4119
+ type: 'event',
4120
+ name: 'DistributorTransferred',
4121
+ inputs: [
4122
+ { name: 'previousDistributor', type: 'address', indexed: true },
4123
+ { name: 'newDistributor', type: 'address', indexed: true },
3868
4124
  ],
3869
4125
  anonymous: false,
3870
4126
  },
@@ -3892,6 +4148,15 @@ exports.earnVault = [
3892
4148
  ],
3893
4149
  anonymous: false,
3894
4150
  },
4151
+ {
4152
+ type: 'event',
4153
+ name: 'MaxManagedAssetsChanged',
4154
+ inputs: [
4155
+ { name: 'previousMaxManagedAssets', type: 'uint256', indexed: false },
4156
+ { name: 'newMaxManagedAssets', type: 'uint256', indexed: false },
4157
+ ],
4158
+ anonymous: false,
4159
+ },
3895
4160
  {
3896
4161
  type: 'event',
3897
4162
  name: 'RedeemCancelled',
@@ -3925,15 +4190,6 @@ exports.earnVault = [
3925
4190
  ],
3926
4191
  anonymous: false,
3927
4192
  },
3928
- {
3929
- type: 'event',
3930
- name: 'RedeemSwapOverrideSet',
3931
- inputs: [
3932
- { name: 'outputToken', type: 'address', indexed: true },
3933
- { name: 'swapAdapter', type: 'address', indexed: true },
3934
- ],
3935
- anonymous: false,
3936
- },
3937
4193
  {
3938
4194
  type: 'event',
3939
4195
  name: 'Redeemed',
@@ -3952,7 +4208,7 @@ exports.earnVault = [
3952
4208
  { name: 'caller', type: 'address', indexed: true },
3953
4209
  { name: 'receiver', type: 'address', indexed: true },
3954
4210
  { name: 'requestedVenueShares', type: 'uint256', indexed: false },
3955
- { name: 'receivedVenueShares', type: 'uint256', indexed: false },
4211
+ { name: 'receivedEngineShares', type: 'uint256', indexed: false },
3956
4212
  { name: 'earnShares', type: 'uint256', indexed: false },
3957
4213
  ],
3958
4214
  anonymous: false,
@@ -3968,8 +4224,16 @@ exports.earnVault = [
3968
4224
  ],
3969
4225
  anonymous: false,
3970
4226
  },
4227
+ { type: 'error', name: 'ActiveSupplyWithoutBacking', inputs: [] },
3971
4228
  { type: 'error', name: 'AlreadyInitialized', inputs: [] },
3972
4229
  { type: 'error', name: 'DepositsPaused', inputs: [] },
4230
+ { type: 'error', name: 'DistributorFeeUpdateNotPending', inputs: [] },
4231
+ {
4232
+ type: 'error',
4233
+ name: 'DistributorFeeUpdateNotReady',
4234
+ inputs: [{ name: 'executableAt', type: 'uint40' }],
4235
+ },
4236
+ { type: 'error', name: 'DistributorTransferNotPending', inputs: [] },
3973
4237
  {
3974
4238
  type: 'error',
3975
4239
  name: 'DuplicateRequest',
@@ -3981,20 +4245,36 @@ exports.earnVault = [
3981
4245
  name: 'EngineCapabilityUnsupported',
3982
4246
  inputs: [{ name: 'interfaceId', type: 'bytes4' }],
3983
4247
  },
4248
+ { type: 'error', name: 'EngineExitUnsupported', inputs: [] },
3984
4249
  { type: 'error', name: 'ExceedsMaxEarnShares', inputs: [] },
3985
4250
  {
3986
4251
  type: 'error',
3987
4252
  name: 'ExcessiveConversionLoss',
3988
4253
  inputs: [
3989
- { name: 'inputEngineShares', type: 'uint256' },
3990
- { name: 'representedEngineShares', type: 'uint256' },
4254
+ { name: 'inputShares', type: 'uint256' },
4255
+ { name: 'representedShares', type: 'uint256' },
3991
4256
  ],
3992
4257
  },
4258
+ {
4259
+ type: 'error',
4260
+ name: 'FinalizedAssetMismatch',
4261
+ inputs: [{ name: 'finalizedAsset', type: 'address' }],
4262
+ },
4263
+ { type: 'error', name: 'GlobalFeeDisableUnavailable', inputs: [] },
3993
4264
  { type: 'error', name: 'InitialEarnShareSupplyNotZero', inputs: [] },
3994
4265
  { type: 'error', name: 'InsufficientOutput', inputs: [] },
4266
+ { type: 'error', name: 'InvalidDistributorConfiguration', inputs: [] },
4267
+ { type: 'error', name: 'InvalidDistributorFeeConfiguration', inputs: [] },
3995
4268
  { type: 'error', name: 'InvalidEarnDecimals', inputs: [] },
3996
4269
  { type: 'error', name: 'InvalidEngineShareScale', inputs: [] },
3997
- { type: 'error', name: 'InvalidSwapOverride', inputs: [] },
4270
+ {
4271
+ type: 'error',
4272
+ name: 'MaxManagedAssetsExceeded',
4273
+ inputs: [
4274
+ { name: 'maximum', type: 'uint256' },
4275
+ { name: 'actual', type: 'uint256' },
4276
+ ],
4277
+ },
3998
4278
  {
3999
4279
  type: 'error',
4000
4280
  name: 'MinimumAssetsNotMet',
@@ -4020,11 +4300,11 @@ exports.earnVault = [
4020
4300
  ],
4021
4301
  },
4022
4302
  { type: 'error', name: 'NoEarnShares', inputs: [] },
4303
+ { type: 'error', name: 'NotDistributor', inputs: [] },
4023
4304
  { type: 'error', name: 'NotEmergencyGuardianOrOperator', inputs: [] },
4024
4305
  { type: 'error', name: 'NotEngine', inputs: [] },
4025
- { type: 'error', name: 'NotFeeAdministrator', inputs: [] },
4026
- { type: 'error', name: 'NotFeeGuardian', inputs: [] },
4027
4306
  { type: 'error', name: 'NotOperator', inputs: [] },
4307
+ { type: 'error', name: 'NotPendingDistributor', inputs: [] },
4028
4308
  { type: 'error', name: 'NotRequesterOrJanitor', inputs: [] },
4029
4309
  { type: 'error', name: 'OperatorMigrationDisabled', inputs: [] },
4030
4310
  { type: 'error', name: 'PendingRedeemsOpen', inputs: [] },
@@ -4113,7 +4393,7 @@ exports.earnFees = [
4113
4393
  {
4114
4394
  type: 'function',
4115
4395
  name: 'disableFees',
4116
- inputs: [{ name: 'guardian', type: 'address' }],
4396
+ inputs: [{ name: 'operator', type: 'address' }],
4117
4397
  outputs: [],
4118
4398
  stateMutability: 'nonpayable',
4119
4399
  },
@@ -4138,13 +4418,6 @@ exports.earnFees = [
4138
4418
  outputs: [{ name: '', type: 'address' }],
4139
4419
  stateMutability: 'view',
4140
4420
  },
4141
- {
4142
- type: 'function',
4143
- name: 'excessFeeCap',
4144
- inputs: [],
4145
- outputs: [{ name: '', type: 'uint96' }],
4146
- stateMutability: 'view',
4147
- },
4148
4421
  {
4149
4422
  type: 'function',
4150
4423
  name: 'feeConfig',
@@ -4160,7 +4433,7 @@ exports.earnFees = [
4160
4433
  type: 'tuple[4]',
4161
4434
  components: [
4162
4435
  { name: 'account', type: 'address' },
4163
- { name: 'rate', type: 'uint96' },
4436
+ { name: 'rateBps', type: 'uint16' },
4164
4437
  ],
4165
4438
  },
4166
4439
  {
@@ -4169,8 +4442,8 @@ exports.earnFees = [
4169
4442
  components: [
4170
4443
  { name: 'enabled', type: 'bool' },
4171
4444
  { name: 'account', type: 'address' },
4172
- { name: 'annualTargetRate', type: 'uint96' },
4173
- { name: 'excessFeeRate', type: 'uint96' },
4445
+ { name: 'annualTargetRateBps', type: 'uint16' },
4446
+ { name: 'excessFeeRateBps', type: 'uint16' },
4174
4447
  ],
4175
4448
  },
4176
4449
  ],
@@ -4202,13 +4475,6 @@ exports.earnFees = [
4202
4475
  outputs: [{ name: '', type: 'bool' }],
4203
4476
  stateMutability: 'view',
4204
4477
  },
4205
- {
4206
- type: 'function',
4207
- name: 'fixedFeeCap',
4208
- inputs: [],
4209
- outputs: [{ name: '', type: 'uint96' }],
4210
- stateMutability: 'view',
4211
- },
4212
4478
  {
4213
4479
  type: 'function',
4214
4480
  name: 'highWaterMark',
@@ -4223,36 +4489,26 @@ exports.earnFees = [
4223
4489
  { name: 'earnVault_', type: 'address' },
4224
4490
  { name: 'earnShare_', type: 'address' },
4225
4491
  {
4226
- name: 'init',
4492
+ name: 'initialConfig',
4227
4493
  type: 'tuple',
4228
4494
  components: [
4229
- { name: 'administrator', type: 'address' },
4230
- { name: 'guardian', type: 'address' },
4231
- { name: 'fixedFeeCap', type: 'uint96' },
4232
- { name: 'excessFeeCap', type: 'uint96' },
4495
+ { name: 'fixedFeeCount', type: 'uint8' },
4496
+ {
4497
+ name: 'fixedFees',
4498
+ type: 'tuple[4]',
4499
+ components: [
4500
+ { name: 'account', type: 'address' },
4501
+ { name: 'rateBps', type: 'uint16' },
4502
+ ],
4503
+ },
4233
4504
  {
4234
- name: 'initialConfig',
4505
+ name: 'excess',
4235
4506
  type: 'tuple',
4236
4507
  components: [
4237
- { name: 'fixedFeeCount', type: 'uint8' },
4238
- {
4239
- name: 'fixedFees',
4240
- type: 'tuple[4]',
4241
- components: [
4242
- { name: 'account', type: 'address' },
4243
- { name: 'rate', type: 'uint96' },
4244
- ],
4245
- },
4246
- {
4247
- name: 'excess',
4248
- type: 'tuple',
4249
- components: [
4250
- { name: 'enabled', type: 'bool' },
4251
- { name: 'account', type: 'address' },
4252
- { name: 'annualTargetRate', type: 'uint96' },
4253
- { name: 'excessFeeRate', type: 'uint96' },
4254
- ],
4255
- },
4508
+ { name: 'enabled', type: 'bool' },
4509
+ { name: 'account', type: 'address' },
4510
+ { name: 'annualTargetRateBps', type: 'uint16' },
4511
+ { name: 'excessFeeRateBps', type: 'uint16' },
4256
4512
  ],
4257
4513
  },
4258
4514
  ],
@@ -4347,7 +4603,7 @@ exports.earnFees = [
4347
4603
  type: 'tuple[4]',
4348
4604
  components: [
4349
4605
  { name: 'account', type: 'address' },
4350
- { name: 'rate', type: 'uint96' },
4606
+ { name: 'rateBps', type: 'uint16' },
4351
4607
  ],
4352
4608
  },
4353
4609
  {
@@ -4356,8 +4612,8 @@ exports.earnFees = [
4356
4612
  components: [
4357
4613
  { name: 'enabled', type: 'bool' },
4358
4614
  { name: 'account', type: 'address' },
4359
- { name: 'annualTargetRate', type: 'uint96' },
4360
- { name: 'excessFeeRate', type: 'uint96' },
4615
+ { name: 'annualTargetRateBps', type: 'uint16' },
4616
+ { name: 'excessFeeRateBps', type: 'uint16' },
4361
4617
  ],
4362
4618
  },
4363
4619
  ],
@@ -4407,6 +4663,39 @@ exports.earnFees = [
4407
4663
  outputs: [{ name: '', type: 'uint256' }],
4408
4664
  stateMutability: 'view',
4409
4665
  },
4666
+ {
4667
+ type: 'function',
4668
+ name: 'validateFeeConfig',
4669
+ inputs: [
4670
+ {
4671
+ name: 'config',
4672
+ type: 'tuple',
4673
+ components: [
4674
+ { name: 'fixedFeeCount', type: 'uint8' },
4675
+ {
4676
+ name: 'fixedFees',
4677
+ type: 'tuple[4]',
4678
+ components: [
4679
+ { name: 'account', type: 'address' },
4680
+ { name: 'rateBps', type: 'uint16' },
4681
+ ],
4682
+ },
4683
+ {
4684
+ name: 'excess',
4685
+ type: 'tuple',
4686
+ components: [
4687
+ { name: 'enabled', type: 'bool' },
4688
+ { name: 'account', type: 'address' },
4689
+ { name: 'annualTargetRateBps', type: 'uint16' },
4690
+ { name: 'excessFeeRateBps', type: 'uint16' },
4691
+ ],
4692
+ },
4693
+ ],
4694
+ },
4695
+ ],
4696
+ outputs: [],
4697
+ stateMutability: 'view',
4698
+ },
4410
4699
  {
4411
4700
  type: 'event',
4412
4701
  name: 'FeeBaselinesInitialized',
@@ -4475,12 +4764,10 @@ exports.earnFees = [
4475
4764
  {
4476
4765
  type: 'event',
4477
4766
  name: 'FeesDisabled',
4478
- inputs: [{ name: 'guardian', type: 'address', indexed: true }],
4767
+ inputs: [{ name: 'operator', type: 'address', indexed: true }],
4479
4768
  anonymous: false,
4480
4769
  },
4481
4770
  { type: 'error', name: 'AlreadyInitialized', inputs: [] },
4482
- { type: 'error', name: 'FeeCapTooHigh', inputs: [] },
4483
- { type: 'error', name: 'FeesPermanentlyDisabled', inputs: [] },
4484
4771
  { type: 'error', name: 'InsufficientClaimableEarnShares', inputs: [] },
4485
4772
  { type: 'error', name: 'InvalidFeeClaimReceiver', inputs: [] },
4486
4773
  { type: 'error', name: 'InvalidFeeConfiguration', inputs: [] },
@@ -4504,6 +4791,13 @@ exports.earnEngine = [
4504
4791
  outputs: [{ name: 'engineShares', type: 'uint256' }],
4505
4792
  stateMutability: 'nonpayable',
4506
4793
  },
4794
+ {
4795
+ type: 'function',
4796
+ name: 'earnVault',
4797
+ inputs: [],
4798
+ outputs: [{ name: '', type: 'address' }],
4799
+ stateMutability: 'view',
4800
+ },
4507
4801
  {
4508
4802
  type: 'function',
4509
4803
  name: 'name',
@@ -4694,10 +4988,7 @@ exports.vedaEngine = [
4694
4988
  name: 'getClaim',
4695
4989
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4696
4990
  outputs: [
4697
- { name: 'open', type: 'bool' },
4698
- { name: 'paid', type: 'bool' },
4699
- { name: 'claimable', type: 'bool' },
4700
- { name: 'recorded', type: 'bool' },
4991
+ { name: 'status', type: 'uint8' },
4701
4992
  {
4702
4993
  name: 'request',
4703
4994
  type: 'tuple',
@@ -4816,7 +5107,7 @@ exports.vedaEngine = [
4816
5107
  name: 'RedeemCancelledOnQueue',
4817
5108
  inputs: [
4818
5109
  { name: 'requestId', type: 'bytes32', indexed: true },
4819
- { name: 'venueShares', type: 'uint128', indexed: false },
5110
+ { name: 'engineShares', type: 'uint128', indexed: false },
4820
5111
  ],
4821
5112
  anonymous: false,
4822
5113
  },
@@ -4836,7 +5127,7 @@ exports.vedaEngine = [
4836
5127
  inputs: [
4837
5128
  { name: 'requestId', type: 'bytes32', indexed: true },
4838
5129
  { name: 'assetOut', type: 'address', indexed: true },
4839
- { name: 'venueShares', type: 'uint128', indexed: false },
5130
+ { name: 'engineShares', type: 'uint128', indexed: false },
4840
5131
  ],
4841
5132
  anonymous: false,
4842
5133
  },
@@ -4910,7 +5201,7 @@ exports.vedaEngine = [
4910
5201
  name: 'AssetsNotArrived',
4911
5202
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4912
5203
  },
4913
- { type: 'error', name: 'CannotSweepVenueShares', inputs: [] },
5204
+ { type: 'error', name: 'CannotSweepEngineBacking', inputs: [] },
4914
5205
  {
4915
5206
  type: 'error',
4916
5207
  name: 'ClaimNotClaimable',
@@ -4937,6 +5228,20 @@ exports.vedaEngine = [
4937
5228
  inputs: [{ name: 'requestId', type: 'bytes32' }],
4938
5229
  },
4939
5230
  { type: 'error', name: 'EarnVaultNotSet', inputs: [] },
5231
+ { type: 'error', name: 'EmptyMetadata', inputs: [] },
5232
+ {
5233
+ type: 'error',
5234
+ name: 'EngineSharesTooLarge',
5235
+ inputs: [{ name: 'engineShares', type: 'uint256' }],
5236
+ },
5237
+ {
5238
+ type: 'error',
5239
+ name: 'InsufficientAssetsReceived',
5240
+ inputs: [
5241
+ { name: 'minimumAssets', type: 'uint256' },
5242
+ { name: 'actualAssets', type: 'uint256' },
5243
+ ],
5244
+ },
4940
5245
  {
4941
5246
  type: 'error',
4942
5247
  name: 'InvalidAsset',
@@ -5000,6 +5305,7 @@ exports.vedaEngine = [
5000
5305
  name: 'OwnableUnauthorizedAccount',
5001
5306
  inputs: [{ name: 'account', type: 'address' }],
5002
5307
  },
5308
+ { type: 'error', name: 'QueueUnavailable', inputs: [] },
5003
5309
  {
5004
5310
  type: 'error',
5005
5311
  name: 'RateChangedWithinTransaction',
@@ -5009,6 +5315,14 @@ exports.vedaEngine = [
5009
5315
  ],
5010
5316
  },
5011
5317
  { type: 'error', name: 'ReentrantCall', inputs: [] },
5318
+ {
5319
+ type: 'error',
5320
+ name: 'RegistryEngineMismatch',
5321
+ inputs: [
5322
+ { name: 'expected', type: 'address' },
5323
+ { name: 'actual', type: 'address' },
5324
+ ],
5325
+ },
5012
5326
  {
5013
5327
  type: 'error',
5014
5328
  name: 'RequestDetailsNotRecorded',
@@ -5032,7 +5346,37 @@ exports.vedaEngine = [
5032
5346
  { name: 'maxAge', type: 'uint256' },
5033
5347
  ],
5034
5348
  },
5349
+ {
5350
+ type: 'error',
5351
+ name: 'SweepExceedsAvailableBalance',
5352
+ inputs: [
5353
+ { name: 'token', type: 'address' },
5354
+ { name: 'available', type: 'uint256' },
5355
+ { name: 'requested', type: 'uint256' },
5356
+ ],
5357
+ },
5035
5358
  { type: 'error', name: 'TransferFailed', inputs: [] },
5359
+ {
5360
+ type: 'error',
5361
+ name: 'UnexpectedAssetsReceived',
5362
+ inputs: [
5363
+ { name: 'expectedAssets', type: 'uint256' },
5364
+ { name: 'actualAssets', type: 'uint256' },
5365
+ ],
5366
+ },
5367
+ {
5368
+ type: 'error',
5369
+ name: 'UnexpectedVenueSharesBurned',
5370
+ inputs: [
5371
+ { name: 'expectedShares', type: 'uint256' },
5372
+ { name: 'actualShares', type: 'uint256' },
5373
+ ],
5374
+ },
5375
+ {
5376
+ type: 'error',
5377
+ name: 'UnsupportedAccountantFreshness',
5378
+ inputs: [{ name: 'accountant', type: 'address' }],
5379
+ },
5036
5380
  {
5037
5381
  type: 'error',
5038
5382
  name: 'VedaRateOutOfBounds',
@@ -5042,17 +5386,26 @@ exports.vedaEngine = [
5042
5386
  { name: 'maxRate', type: 'uint256' },
5043
5387
  ],
5044
5388
  },
5045
- {
5046
- type: 'error',
5047
- name: 'VenueSharesTooLarge',
5048
- inputs: [{ name: 'venueShares', type: 'uint256' }],
5049
- },
5050
5389
  { type: 'error', name: 'ZeroAddress', inputs: [] },
5051
5390
  ];
5052
5391
  exports.earnRouter = [
5053
5392
  {
5054
5393
  type: 'function',
5055
- name: 'STABLECOIN_DEX',
5394
+ name: 'allowedZoneId',
5395
+ inputs: [],
5396
+ outputs: [{ name: '', type: 'uint32' }],
5397
+ stateMutability: 'view',
5398
+ },
5399
+ {
5400
+ type: 'function',
5401
+ name: 'earnShare',
5402
+ inputs: [],
5403
+ outputs: [{ name: '', type: 'address' }],
5404
+ stateMutability: 'view',
5405
+ },
5406
+ {
5407
+ type: 'function',
5408
+ name: 'earnVault',
5056
5409
  inputs: [],
5057
5410
  outputs: [{ name: '', type: 'address' }],
5058
5411
  stateMutability: 'view',
@@ -5071,6 +5424,20 @@ exports.earnRouter = [
5071
5424
  outputs: [{ name: '', type: 'bytes4' }],
5072
5425
  stateMutability: 'nonpayable',
5073
5426
  },
5427
+ {
5428
+ type: 'function',
5429
+ name: 'privateAsset',
5430
+ inputs: [],
5431
+ outputs: [{ name: '', type: 'address' }],
5432
+ stateMutability: 'view',
5433
+ },
5434
+ {
5435
+ type: 'function',
5436
+ name: 'reserveToken',
5437
+ inputs: [],
5438
+ outputs: [{ name: '', type: 'address' }],
5439
+ stateMutability: 'view',
5440
+ },
5074
5441
  {
5075
5442
  type: 'function',
5076
5443
  name: 'supportsFlow',
@@ -5078,6 +5445,27 @@ exports.earnRouter = [
5078
5445
  outputs: [{ name: '', type: 'bool' }],
5079
5446
  stateMutability: 'pure',
5080
5447
  },
5448
+ {
5449
+ type: 'function',
5450
+ name: 'tokenAuthority',
5451
+ inputs: [],
5452
+ outputs: [{ name: '', type: 'address' }],
5453
+ stateMutability: 'view',
5454
+ },
5455
+ {
5456
+ type: 'function',
5457
+ name: 'transactionLimit',
5458
+ inputs: [],
5459
+ outputs: [{ name: '', type: 'uint256' }],
5460
+ stateMutability: 'view',
5461
+ },
5462
+ {
5463
+ type: 'function',
5464
+ name: 'vaultAsset',
5465
+ inputs: [],
5466
+ outputs: [{ name: '', type: 'address' }],
5467
+ stateMutability: 'view',
5468
+ },
5081
5469
  {
5082
5470
  type: 'event',
5083
5471
  name: 'EarnDeposit',
@@ -5106,21 +5494,24 @@ exports.earnRouter = [
5106
5494
  ],
5107
5495
  anonymous: false,
5108
5496
  },
5497
+ { type: 'error', name: 'AmountExceedsLimit', inputs: [] },
5109
5498
  { type: 'error', name: 'AmountOverflow', inputs: [] },
5110
5499
  { type: 'error', name: 'BadFlow', inputs: [] },
5111
5500
  { type: 'error', name: 'InsufficientOutput', inputs: [] },
5501
+ { type: 'error', name: 'InvalidAuthority', inputs: [] },
5112
5502
  { type: 'error', name: 'InvalidEarnVault', inputs: [] },
5503
+ { type: 'error', name: 'InvalidPrivateAsset', inputs: [] },
5504
+ { type: 'error', name: 'InvalidReturnToken', inputs: [] },
5505
+ { type: 'error', name: 'InvalidRoutePair', inputs: [] },
5113
5506
  { type: 'error', name: 'InvalidSourcePortal', inputs: [] },
5114
- { type: 'error', name: 'InvalidTargetPortal', inputs: [] },
5115
- { type: 'error', name: 'InvalidToken', inputs: [] },
5507
+ { type: 'error', name: 'MismatchedTransactionLimit', inputs: [] },
5116
5508
  { type: 'error', name: 'NotZoneMessenger', inputs: [] },
5117
5509
  { type: 'error', name: 'ReentrantCall', inputs: [] },
5118
5510
  { type: 'error', name: 'ResidualBalance', inputs: [] },
5119
5511
  { type: 'error', name: 'TokenCallFailed', inputs: [] },
5120
5512
  { type: 'error', name: 'TokenCallFalse', inputs: [] },
5121
- { type: 'error', name: 'WrongEarnShare', inputs: [] },
5122
- { type: 'error', name: 'WrongOutputToken', inputs: [] },
5123
- { type: 'error', name: 'WrongSourceAsset', inputs: [] },
5513
+ { type: 'error', name: 'WrongInputToken', inputs: [] },
5514
+ { type: 'error', name: 'WrongSourceZone', inputs: [] },
5124
5515
  { type: 'error', name: 'ZeroAddress', inputs: [] },
5125
5516
  { type: 'error', name: 'ZeroAmount', inputs: [] },
5126
5517
  ];
@@ -5128,8 +5519,6 @@ exports.earnRouterCallbackData = [
5128
5519
  {
5129
5520
  components: [
5130
5521
  { name: 'flow', type: 'uint8' },
5131
- { name: 'earnVault', type: 'address' },
5132
- { name: 'outputToken', type: 'address' },
5133
5522
  { name: 'minVaultAssets', type: 'uint128' },
5134
5523
  { name: 'minEarnShares', type: 'uint128' },
5135
5524
  { name: 'minOutputAmount', type: 'uint128' },