viem 2.55.5 → 2.55.8

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 (107) hide show
  1. package/CHANGELOG.md +32 -0
  2. package/_cjs/errors/version.js +1 -1
  3. package/_cjs/tempo/Abis.js +1809 -1
  4. package/_cjs/tempo/Abis.js.map +1 -1
  5. package/_cjs/tempo/Decorator.js +25 -2
  6. package/_cjs/tempo/Decorator.js.map +1 -1
  7. package/_cjs/tempo/actions/earn.js +1368 -0
  8. package/_cjs/tempo/actions/earn.js.map +1 -0
  9. package/_cjs/tempo/actions/index.js +2 -1
  10. package/_cjs/tempo/actions/index.js.map +1 -1
  11. package/_cjs/tempo/actions/zone.js +47 -61
  12. package/_cjs/tempo/actions/zone.js.map +1 -1
  13. package/_cjs/tempo/chainConfig.js +3 -1
  14. package/_cjs/tempo/chainConfig.js.map +1 -1
  15. package/_cjs/tempo/errors.js +28 -4
  16. package/_cjs/tempo/errors.js.map +1 -1
  17. package/_cjs/tempo/index.js +2 -1
  18. package/_cjs/tempo/index.js.map +1 -1
  19. package/_cjs/tempo/internal/WithdrawalSenderTag.js +9 -0
  20. package/_cjs/tempo/internal/WithdrawalSenderTag.js.map +1 -0
  21. package/_cjs/tempo/zones/Abis.js +46 -0
  22. package/_cjs/tempo/zones/Abis.js.map +1 -1
  23. package/_cjs/tempo/zones/Addresses.js +17 -0
  24. package/_cjs/tempo/zones/Addresses.js.map +1 -0
  25. package/_cjs/tempo/zones/index.js +2 -2
  26. package/_cjs/tempo/zones/index.js.map +1 -1
  27. package/_cjs/tempo/zones/zone.js +30 -16
  28. package/_cjs/tempo/zones/zone.js.map +1 -1
  29. package/_cjs/utils/blob/fromBlobs.js +5 -2
  30. package/_cjs/utils/blob/fromBlobs.js.map +1 -1
  31. package/_cjs/utils/encoding/fromBytes.js +2 -2
  32. package/_cjs/utils/encoding/fromBytes.js.map +1 -1
  33. package/_esm/errors/version.js +1 -1
  34. package/_esm/tempo/Abis.js +1810 -0
  35. package/_esm/tempo/Abis.js.map +1 -1
  36. package/_esm/tempo/Decorator.js +25 -2
  37. package/_esm/tempo/Decorator.js.map +1 -1
  38. package/_esm/tempo/actions/earn.js +2100 -0
  39. package/_esm/tempo/actions/earn.js.map +1 -0
  40. package/_esm/tempo/actions/index.js +1 -0
  41. package/_esm/tempo/actions/index.js.map +1 -1
  42. package/_esm/tempo/actions/zone.js +104 -119
  43. package/_esm/tempo/actions/zone.js.map +1 -1
  44. package/_esm/tempo/chainConfig.js +4 -1
  45. package/_esm/tempo/chainConfig.js.map +1 -1
  46. package/_esm/tempo/errors.js +25 -2
  47. package/_esm/tempo/errors.js.map +1 -1
  48. package/_esm/tempo/index.js +1 -1
  49. package/_esm/tempo/index.js.map +1 -1
  50. package/_esm/tempo/internal/WithdrawalSenderTag.js +7 -0
  51. package/_esm/tempo/internal/WithdrawalSenderTag.js.map +1 -0
  52. package/_esm/tempo/zones/Abis.js +46 -0
  53. package/_esm/tempo/zones/Abis.js.map +1 -1
  54. package/_esm/tempo/zones/Addresses.js +14 -0
  55. package/_esm/tempo/zones/Addresses.js.map +1 -0
  56. package/_esm/tempo/zones/index.js +2 -1
  57. package/_esm/tempo/zones/index.js.map +1 -1
  58. package/_esm/tempo/zones/zone.js +29 -15
  59. package/_esm/tempo/zones/zone.js.map +1 -1
  60. package/_esm/utils/blob/fromBlobs.js +6 -2
  61. package/_esm/utils/blob/fromBlobs.js.map +1 -1
  62. package/_esm/utils/encoding/fromBytes.js +2 -2
  63. package/_esm/utils/encoding/fromBytes.js.map +1 -1
  64. package/_types/errors/version.d.ts +1 -1
  65. package/_types/tempo/Abis.d.ts +2880 -0
  66. package/_types/tempo/Abis.d.ts.map +1 -1
  67. package/_types/tempo/Decorator.d.ts +499 -41
  68. package/_types/tempo/Decorator.d.ts.map +1 -1
  69. package/_types/tempo/actions/earn.d.ts +7549 -0
  70. package/_types/tempo/actions/earn.d.ts.map +1 -0
  71. package/_types/tempo/actions/index.d.ts +1 -0
  72. package/_types/tempo/actions/index.d.ts.map +1 -1
  73. package/_types/tempo/actions/zone.d.ts +86 -109
  74. package/_types/tempo/actions/zone.d.ts.map +1 -1
  75. package/_types/tempo/chainConfig.d.ts.map +1 -1
  76. package/_types/tempo/errors.d.ts +33 -3
  77. package/_types/tempo/errors.d.ts.map +1 -1
  78. package/_types/tempo/index.d.ts +1 -1
  79. package/_types/tempo/index.d.ts.map +1 -1
  80. package/_types/tempo/internal/WithdrawalSenderTag.d.ts +11 -0
  81. package/_types/tempo/internal/WithdrawalSenderTag.d.ts.map +1 -0
  82. package/_types/tempo/zones/Abis.d.ts +87 -0
  83. package/_types/tempo/zones/Abis.d.ts.map +1 -1
  84. package/_types/tempo/zones/Addresses.d.ts +13 -0
  85. package/_types/tempo/zones/Addresses.d.ts.map +1 -0
  86. package/_types/tempo/zones/index.d.ts +2 -1
  87. package/_types/tempo/zones/index.d.ts.map +1 -1
  88. package/_types/tempo/zones/zone.d.ts +14 -33
  89. package/_types/tempo/zones/zone.d.ts.map +1 -1
  90. package/_types/utils/blob/fromBlobs.d.ts.map +1 -1
  91. package/errors/version.ts +1 -1
  92. package/package.json +2 -2
  93. package/tempo/Abis.ts +1822 -0
  94. package/tempo/Decorator.ts +572 -47
  95. package/tempo/actions/earn.ts +3319 -0
  96. package/tempo/actions/index.ts +1 -0
  97. package/tempo/actions/zone.ts +183 -230
  98. package/tempo/chainConfig.ts +7 -1
  99. package/tempo/errors.ts +54 -6
  100. package/tempo/index.ts +1 -0
  101. package/tempo/internal/WithdrawalSenderTag.ts +20 -0
  102. package/tempo/zones/Abis.ts +46 -0
  103. package/tempo/zones/Addresses.ts +15 -0
  104. package/tempo/zones/index.ts +1 -1
  105. package/tempo/zones/zone.ts +38 -17
  106. package/utils/blob/fromBlobs.ts +6 -2
  107. package/utils/encoding/fromBytes.ts +2 -2
package/tempo/Abis.ts CHANGED
@@ -2989,3 +2989,1825 @@ export const abis = [
2989
2989
  ...validatorConfig,
2990
2990
  ...validatorConfigV2,
2991
2991
  ] as const
2992
+
2993
+ // Earn source: tempoxyz/earn at 6b7729fd9b9e9751ebd57460c43817217af7771d. Do not modify manually.
2994
+
2995
+ export const earnFactory = [
2996
+ {
2997
+ type: 'function',
2998
+ name: 'computeShareSalt',
2999
+ inputs: [
3000
+ {
3001
+ name: 'params',
3002
+ type: 'tuple',
3003
+ components: [
3004
+ { name: 'deploymentId', type: 'bytes32' },
3005
+ { name: 'engine', type: 'address' },
3006
+ { name: 'owner', type: 'address' },
3007
+ {
3008
+ name: 'controls',
3009
+ type: 'tuple',
3010
+ components: [
3011
+ { name: 'emergencyGuardian', type: 'address' },
3012
+ { name: 'asyncJanitor', type: 'address' },
3013
+ { name: 'migrationMode', type: 'uint8' },
3014
+ ],
3015
+ },
3016
+ {
3017
+ name: 'fees',
3018
+ type: 'tuple',
3019
+ components: [
3020
+ { name: 'administrator', type: 'address' },
3021
+ { name: 'guardian', type: 'address' },
3022
+ { name: 'fixedFeeCap', type: 'uint96' },
3023
+ { name: 'excessFeeCap', type: 'uint96' },
3024
+ {
3025
+ name: 'initialConfig',
3026
+ type: 'tuple',
3027
+ components: [
3028
+ { name: 'fixedFeeCount', type: 'uint8' },
3029
+ {
3030
+ name: 'fixedFees',
3031
+ type: 'tuple[4]',
3032
+ components: [
3033
+ { name: 'account', type: 'address' },
3034
+ { name: 'rate', type: 'uint96' },
3035
+ ],
3036
+ },
3037
+ {
3038
+ name: 'excess',
3039
+ type: 'tuple',
3040
+ components: [
3041
+ { name: 'enabled', type: 'bool' },
3042
+ { name: 'account', type: 'address' },
3043
+ { name: 'annualTargetRate', type: 'uint96' },
3044
+ { name: 'excessFeeRate', type: 'uint96' },
3045
+ ],
3046
+ },
3047
+ ],
3048
+ },
3049
+ ],
3050
+ },
3051
+ ],
3052
+ },
3053
+ ],
3054
+ outputs: [{ name: '', type: 'bytes32' }],
3055
+ stateMutability: 'pure',
3056
+ },
3057
+ {
3058
+ type: 'function',
3059
+ name: 'deploy',
3060
+ inputs: [
3061
+ {
3062
+ name: 'params',
3063
+ type: 'tuple',
3064
+ components: [
3065
+ { name: 'deploymentId', type: 'bytes32' },
3066
+ { name: 'engine', type: 'address' },
3067
+ { name: 'owner', type: 'address' },
3068
+ {
3069
+ name: 'controls',
3070
+ type: 'tuple',
3071
+ components: [
3072
+ { name: 'emergencyGuardian', type: 'address' },
3073
+ { name: 'asyncJanitor', type: 'address' },
3074
+ { name: 'migrationMode', type: 'uint8' },
3075
+ ],
3076
+ },
3077
+ {
3078
+ name: 'fees',
3079
+ type: 'tuple',
3080
+ components: [
3081
+ { name: 'administrator', type: 'address' },
3082
+ { name: 'guardian', type: 'address' },
3083
+ { name: 'fixedFeeCap', type: 'uint96' },
3084
+ { name: 'excessFeeCap', type: 'uint96' },
3085
+ {
3086
+ name: 'initialConfig',
3087
+ type: 'tuple',
3088
+ components: [
3089
+ { name: 'fixedFeeCount', type: 'uint8' },
3090
+ {
3091
+ name: 'fixedFees',
3092
+ type: 'tuple[4]',
3093
+ components: [
3094
+ { name: 'account', type: 'address' },
3095
+ { name: 'rate', type: 'uint96' },
3096
+ ],
3097
+ },
3098
+ {
3099
+ name: 'excess',
3100
+ type: 'tuple',
3101
+ components: [
3102
+ { name: 'enabled', type: 'bool' },
3103
+ { name: 'account', type: 'address' },
3104
+ { name: 'annualTargetRate', type: 'uint96' },
3105
+ { name: 'excessFeeRate', type: 'uint96' },
3106
+ ],
3107
+ },
3108
+ ],
3109
+ },
3110
+ ],
3111
+ },
3112
+ ],
3113
+ },
3114
+ ],
3115
+ outputs: [
3116
+ { name: 'shareToken', type: 'address' },
3117
+ { name: 'vaultAdapter', type: 'address' },
3118
+ ],
3119
+ stateMutability: 'nonpayable',
3120
+ },
3121
+ {
3122
+ type: 'function',
3123
+ name: 'predictShareToken',
3124
+ inputs: [
3125
+ {
3126
+ name: 'params',
3127
+ type: 'tuple',
3128
+ components: [
3129
+ { name: 'deploymentId', type: 'bytes32' },
3130
+ { name: 'engine', type: 'address' },
3131
+ { name: 'owner', type: 'address' },
3132
+ {
3133
+ name: 'controls',
3134
+ type: 'tuple',
3135
+ components: [
3136
+ { name: 'emergencyGuardian', type: 'address' },
3137
+ { name: 'asyncJanitor', type: 'address' },
3138
+ { name: 'migrationMode', type: 'uint8' },
3139
+ ],
3140
+ },
3141
+ {
3142
+ name: 'fees',
3143
+ type: 'tuple',
3144
+ components: [
3145
+ { name: 'administrator', type: 'address' },
3146
+ { name: 'guardian', type: 'address' },
3147
+ { name: 'fixedFeeCap', type: 'uint96' },
3148
+ { name: 'excessFeeCap', type: 'uint96' },
3149
+ {
3150
+ name: 'initialConfig',
3151
+ type: 'tuple',
3152
+ components: [
3153
+ { name: 'fixedFeeCount', type: 'uint8' },
3154
+ {
3155
+ name: 'fixedFees',
3156
+ type: 'tuple[4]',
3157
+ components: [
3158
+ { name: 'account', type: 'address' },
3159
+ { name: 'rate', type: 'uint96' },
3160
+ ],
3161
+ },
3162
+ {
3163
+ name: 'excess',
3164
+ type: 'tuple',
3165
+ components: [
3166
+ { name: 'enabled', type: 'bool' },
3167
+ { name: 'account', type: 'address' },
3168
+ { name: 'annualTargetRate', type: 'uint96' },
3169
+ { name: 'excessFeeRate', type: 'uint96' },
3170
+ ],
3171
+ },
3172
+ ],
3173
+ },
3174
+ ],
3175
+ },
3176
+ ],
3177
+ },
3178
+ ],
3179
+ outputs: [{ name: '', type: 'address' }],
3180
+ stateMutability: 'view',
3181
+ },
3182
+ {
3183
+ type: 'event',
3184
+ name: 'EarnStackDeployed',
3185
+ inputs: [
3186
+ { name: 'vaultAdapter', type: 'address', indexed: true },
3187
+ { name: 'shareToken', type: 'address', indexed: true },
3188
+ { name: 'engine', type: 'address', indexed: true },
3189
+ { name: 'asset', type: 'address', indexed: false },
3190
+ { name: 'owner', type: 'address', indexed: false },
3191
+ { name: 'deploymentId', type: 'bytes32', indexed: false },
3192
+ { name: 'emergencyGuardian', type: 'address', indexed: false },
3193
+ { name: 'asyncJanitor', type: 'address', indexed: false },
3194
+ { name: 'migrationMode', type: 'uint8', indexed: false },
3195
+ { name: 'shareSalt', type: 'bytes32', indexed: false },
3196
+ { name: 'controlConfigHash', type: 'bytes32', indexed: false },
3197
+ { name: 'feeConfigHash', type: 'bytes32', indexed: false },
3198
+ ],
3199
+ anonymous: false,
3200
+ },
3201
+ { type: 'error', name: 'AdminHandoffFailed', inputs: [] },
3202
+ { type: 'error', name: 'EmptyDeploymentId', inputs: [] },
3203
+ { type: 'error', name: 'EmptyShareMetadata', inputs: [] },
3204
+ { type: 'error', name: 'FactoryCannotBeFinalOwner', inputs: [] },
3205
+ { type: 'error', name: 'InvalidAdapterImplementation', inputs: [] },
3206
+ { type: 'error', name: 'IssuerGrantFailed', inputs: [] },
3207
+ {
3208
+ type: 'error',
3209
+ name: 'ShareTokenAlreadyExists',
3210
+ inputs: [{ name: 'shareToken', type: 'address' }],
3211
+ },
3212
+ { type: 'error', name: 'ShareTokenSupplyNotZero', inputs: [] },
3213
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
3214
+ ] as const
3215
+
3216
+ export const erc4626Engine = [
3217
+ {
3218
+ type: 'function',
3219
+ name: 'acceptOwnership',
3220
+ inputs: [],
3221
+ outputs: [],
3222
+ stateMutability: 'nonpayable',
3223
+ },
3224
+ {
3225
+ type: 'function',
3226
+ name: 'initializeCore',
3227
+ inputs: [{ name: 'core_', type: 'address' }],
3228
+ outputs: [],
3229
+ stateMutability: 'nonpayable',
3230
+ },
3231
+ {
3232
+ type: 'function',
3233
+ name: 'owner',
3234
+ inputs: [],
3235
+ outputs: [{ name: '', type: 'address' }],
3236
+ stateMutability: 'view',
3237
+ },
3238
+ {
3239
+ type: 'function',
3240
+ name: 'pendingOwner',
3241
+ inputs: [],
3242
+ outputs: [{ name: '', type: 'address' }],
3243
+ stateMutability: 'view',
3244
+ },
3245
+ {
3246
+ type: 'function',
3247
+ name: 'renounceOwnership',
3248
+ inputs: [],
3249
+ outputs: [],
3250
+ stateMutability: 'nonpayable',
3251
+ },
3252
+ {
3253
+ type: 'function',
3254
+ name: 'transferOwnership',
3255
+ inputs: [{ name: 'newOwner', type: 'address' }],
3256
+ outputs: [],
3257
+ stateMutability: 'nonpayable',
3258
+ },
3259
+ {
3260
+ type: 'event',
3261
+ name: 'CoreInitialized',
3262
+ inputs: [{ name: 'core', type: 'address', indexed: true }],
3263
+ anonymous: false,
3264
+ },
3265
+ {
3266
+ type: 'event',
3267
+ name: 'Deposited',
3268
+ inputs: [
3269
+ { name: 'receiver', type: 'address', indexed: true },
3270
+ { name: 'assets', type: 'uint256', indexed: false },
3271
+ { name: 'shares', type: 'uint256', indexed: false },
3272
+ ],
3273
+ anonymous: false,
3274
+ },
3275
+ {
3276
+ type: 'event',
3277
+ name: 'OwnershipTransferStarted',
3278
+ inputs: [
3279
+ { name: 'previousOwner', type: 'address', indexed: true },
3280
+ { name: 'newOwner', type: 'address', indexed: true },
3281
+ ],
3282
+ anonymous: false,
3283
+ },
3284
+ {
3285
+ type: 'event',
3286
+ name: 'OwnershipTransferred',
3287
+ inputs: [
3288
+ { name: 'previousOwner', type: 'address', indexed: true },
3289
+ { name: 'newOwner', type: 'address', indexed: true },
3290
+ ],
3291
+ anonymous: false,
3292
+ },
3293
+ {
3294
+ type: 'event',
3295
+ name: 'Redeemed',
3296
+ inputs: [
3297
+ { name: 'receiver', type: 'address', indexed: true },
3298
+ { name: 'shares', type: 'uint256', indexed: false },
3299
+ { name: 'assets', type: 'uint256', indexed: false },
3300
+ ],
3301
+ anonymous: false,
3302
+ },
3303
+ {
3304
+ type: 'event',
3305
+ name: 'VenueSharesDeposited',
3306
+ inputs: [
3307
+ { name: 'from', type: 'address', indexed: true },
3308
+ { name: 'requestedShares', type: 'uint256', indexed: false },
3309
+ { name: 'receivedShares', type: 'uint256', indexed: false },
3310
+ ],
3311
+ anonymous: false,
3312
+ },
3313
+ {
3314
+ type: 'event',
3315
+ name: 'WithdrewExact',
3316
+ inputs: [
3317
+ { name: 'receiver', type: 'address', indexed: true },
3318
+ { name: 'assets', type: 'uint256', indexed: false },
3319
+ { name: 'sharesBurned', type: 'uint256', indexed: false },
3320
+ ],
3321
+ anonymous: false,
3322
+ },
3323
+ { type: 'error', name: 'AlreadyInitialized', inputs: [] },
3324
+ { type: 'error', name: 'CoreNotSet', inputs: [] },
3325
+ { type: 'error', name: 'EmptyMetadata', inputs: [] },
3326
+ { type: 'error', name: 'NoSharesReceived', inputs: [] },
3327
+ {
3328
+ type: 'error',
3329
+ name: 'NotCore',
3330
+ inputs: [{ name: 'caller', type: 'address' }],
3331
+ },
3332
+ {
3333
+ type: 'error',
3334
+ name: 'OwnableInvalidOwner',
3335
+ inputs: [{ name: 'owner', type: 'address' }],
3336
+ },
3337
+ {
3338
+ type: 'error',
3339
+ name: 'OwnableUnauthorizedAccount',
3340
+ inputs: [{ name: 'account', type: 'address' }],
3341
+ },
3342
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
3343
+ { type: 'error', name: 'TransferFailed', inputs: [] },
3344
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
3345
+ ] as const
3346
+
3347
+ export const vaultAdapter = [
3348
+ { type: 'constructor', inputs: [], stateMutability: 'nonpayable' },
3349
+ {
3350
+ type: 'function',
3351
+ name: 'accrueFees',
3352
+ inputs: [],
3353
+ outputs: [
3354
+ { name: 'feeAssets', type: 'uint256' },
3355
+ { name: 'feeShares', type: 'uint256' },
3356
+ ],
3357
+ stateMutability: 'nonpayable',
3358
+ },
3359
+ {
3360
+ type: 'function',
3361
+ name: 'anchorEngineShares',
3362
+ inputs: [],
3363
+ outputs: [{ name: '', type: 'uint256' }],
3364
+ stateMutability: 'view',
3365
+ },
3366
+ {
3367
+ type: 'function',
3368
+ name: 'anchorSupply',
3369
+ inputs: [],
3370
+ outputs: [{ name: '', type: 'uint256' }],
3371
+ stateMutability: 'view',
3372
+ },
3373
+ {
3374
+ type: 'function',
3375
+ name: 'asset',
3376
+ inputs: [],
3377
+ outputs: [{ name: '', type: 'address' }],
3378
+ stateMutability: 'view',
3379
+ },
3380
+ {
3381
+ type: 'function',
3382
+ name: 'asyncJanitor',
3383
+ inputs: [],
3384
+ outputs: [{ name: '', type: 'address' }],
3385
+ stateMutability: 'view',
3386
+ },
3387
+ {
3388
+ type: 'function',
3389
+ name: 'cancelRedeemAsync',
3390
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
3391
+ outputs: [],
3392
+ stateMutability: 'nonpayable',
3393
+ },
3394
+ {
3395
+ type: 'function',
3396
+ name: 'claimFeeShares',
3397
+ inputs: [
3398
+ { name: 'to', type: 'address' },
3399
+ { name: 'shares', type: 'uint256' },
3400
+ ],
3401
+ outputs: [],
3402
+ stateMutability: 'nonpayable',
3403
+ },
3404
+ {
3405
+ type: 'function',
3406
+ name: 'claimableFeeShares',
3407
+ inputs: [{ name: 'recipient', type: 'address' }],
3408
+ outputs: [{ name: 'shares', type: 'uint256' }],
3409
+ stateMutability: 'view',
3410
+ },
3411
+ {
3412
+ type: 'function',
3413
+ name: 'contribute',
3414
+ inputs: [{ name: 'assets', type: 'uint256' }],
3415
+ outputs: [{ name: 'venueShares', type: 'uint256' }],
3416
+ stateMutability: 'nonpayable',
3417
+ },
3418
+ {
3419
+ type: 'function',
3420
+ name: 'currentFeeConfigId',
3421
+ inputs: [],
3422
+ outputs: [{ name: '', type: 'uint64' }],
3423
+ stateMutability: 'view',
3424
+ },
3425
+ {
3426
+ type: 'function',
3427
+ name: 'deposit',
3428
+ inputs: [
3429
+ { name: 'assets', type: 'uint256' },
3430
+ { name: 'receiver', type: 'address' },
3431
+ { name: 'minShares', type: 'uint256' },
3432
+ ],
3433
+ outputs: [{ name: 'shares', type: 'uint256' }],
3434
+ stateMutability: 'nonpayable',
3435
+ },
3436
+ {
3437
+ type: 'function',
3438
+ name: 'depositShares',
3439
+ inputs: [
3440
+ { name: 'venueShares', type: 'uint256' },
3441
+ { name: 'receiver', type: 'address' },
3442
+ { name: 'minEarnShares', type: 'uint256' },
3443
+ ],
3444
+ outputs: [{ name: 'earnShares', type: 'uint256' }],
3445
+ stateMutability: 'nonpayable',
3446
+ },
3447
+ {
3448
+ type: 'function',
3449
+ name: 'depositsPaused',
3450
+ inputs: [],
3451
+ outputs: [{ name: '', type: 'bool' }],
3452
+ stateMutability: 'view',
3453
+ },
3454
+ {
3455
+ type: 'function',
3456
+ name: 'disableFees',
3457
+ inputs: [],
3458
+ outputs: [],
3459
+ stateMutability: 'nonpayable',
3460
+ },
3461
+ {
3462
+ type: 'function',
3463
+ name: 'emergencyFeesDisabled',
3464
+ inputs: [],
3465
+ outputs: [{ name: '', type: 'bool' }],
3466
+ stateMutability: 'view',
3467
+ },
3468
+ {
3469
+ type: 'function',
3470
+ name: 'emergencyGuardian',
3471
+ inputs: [],
3472
+ outputs: [{ name: '', type: 'address' }],
3473
+ stateMutability: 'view',
3474
+ },
3475
+ {
3476
+ type: 'function',
3477
+ name: 'engine',
3478
+ inputs: [],
3479
+ outputs: [{ name: '', type: 'address' }],
3480
+ stateMutability: 'view',
3481
+ },
3482
+ {
3483
+ type: 'function',
3484
+ name: 'engineMigrationMode',
3485
+ inputs: [],
3486
+ outputs: [{ name: '', type: 'uint8' }],
3487
+ stateMutability: 'view',
3488
+ },
3489
+ {
3490
+ type: 'function',
3491
+ name: 'engineShares',
3492
+ inputs: [],
3493
+ outputs: [{ name: '', type: 'uint256' }],
3494
+ stateMutability: 'view',
3495
+ },
3496
+ {
3497
+ type: 'function',
3498
+ name: 'excessFeeCap',
3499
+ inputs: [],
3500
+ outputs: [{ name: '', type: 'uint96' }],
3501
+ stateMutability: 'view',
3502
+ },
3503
+ {
3504
+ type: 'function',
3505
+ name: 'feeAdministrator',
3506
+ inputs: [],
3507
+ outputs: [{ name: '', type: 'address' }],
3508
+ stateMutability: 'view',
3509
+ },
3510
+ {
3511
+ type: 'function',
3512
+ name: 'feeConfig',
3513
+ inputs: [{ name: 'configId', type: 'uint64' }],
3514
+ outputs: [
3515
+ {
3516
+ name: '',
3517
+ type: 'tuple',
3518
+ components: [
3519
+ { name: 'fixedFeeCount', type: 'uint8' },
3520
+ {
3521
+ name: 'fixedFees',
3522
+ type: 'tuple[4]',
3523
+ components: [
3524
+ { name: 'account', type: 'address' },
3525
+ { name: 'rate', type: 'uint96' },
3526
+ ],
3527
+ },
3528
+ {
3529
+ name: 'excess',
3530
+ type: 'tuple',
3531
+ components: [
3532
+ { name: 'enabled', type: 'bool' },
3533
+ { name: 'account', type: 'address' },
3534
+ { name: 'annualTargetRate', type: 'uint96' },
3535
+ { name: 'excessFeeRate', type: 'uint96' },
3536
+ ],
3537
+ },
3538
+ ],
3539
+ },
3540
+ ],
3541
+ stateMutability: 'view',
3542
+ },
3543
+ {
3544
+ type: 'function',
3545
+ name: 'feeGuardian',
3546
+ inputs: [],
3547
+ outputs: [{ name: '', type: 'address' }],
3548
+ stateMutability: 'view',
3549
+ },
3550
+ {
3551
+ type: 'function',
3552
+ name: 'feeRemainder',
3553
+ inputs: [
3554
+ { name: 'configId', type: 'uint64' },
3555
+ { name: 'slot', type: 'uint8' },
3556
+ ],
3557
+ outputs: [{ name: '', type: 'uint256' }],
3558
+ stateMutability: 'view',
3559
+ },
3560
+ {
3561
+ type: 'function',
3562
+ name: 'feesActive',
3563
+ inputs: [],
3564
+ outputs: [{ name: '', type: 'bool' }],
3565
+ stateMutability: 'view',
3566
+ },
3567
+ {
3568
+ type: 'function',
3569
+ name: 'finalizeRedeem',
3570
+ inputs: [
3571
+ { name: 'requestId', type: 'bytes32' },
3572
+ { name: 'asset_', type: 'address' },
3573
+ { name: 'amount', type: 'uint256' },
3574
+ ],
3575
+ outputs: [],
3576
+ stateMutability: 'nonpayable',
3577
+ },
3578
+ {
3579
+ type: 'function',
3580
+ name: 'fixedFeeCap',
3581
+ inputs: [],
3582
+ outputs: [{ name: '', type: 'uint96' }],
3583
+ stateMutability: 'view',
3584
+ },
3585
+ {
3586
+ type: 'function',
3587
+ name: 'highWaterMark',
3588
+ inputs: [],
3589
+ outputs: [{ name: '', type: 'uint256' }],
3590
+ stateMutability: 'view',
3591
+ },
3592
+ {
3593
+ type: 'function',
3594
+ name: 'initialize',
3595
+ inputs: [
3596
+ { name: 'engine_', type: 'address' },
3597
+ { name: 'shareToken_', type: 'address' },
3598
+ { name: 'operator_', type: 'address' },
3599
+ {
3600
+ name: 'controlInit_',
3601
+ type: 'tuple',
3602
+ components: [
3603
+ { name: 'emergencyGuardian', type: 'address' },
3604
+ { name: 'asyncJanitor', type: 'address' },
3605
+ { name: 'migrationMode', type: 'uint8' },
3606
+ ],
3607
+ },
3608
+ {
3609
+ name: 'feeInit_',
3610
+ type: 'tuple',
3611
+ components: [
3612
+ { name: 'administrator', type: 'address' },
3613
+ { name: 'guardian', type: 'address' },
3614
+ { name: 'fixedFeeCap', type: 'uint96' },
3615
+ { name: 'excessFeeCap', type: 'uint96' },
3616
+ {
3617
+ name: 'initialConfig',
3618
+ type: 'tuple',
3619
+ components: [
3620
+ { name: 'fixedFeeCount', type: 'uint8' },
3621
+ {
3622
+ name: 'fixedFees',
3623
+ type: 'tuple[4]',
3624
+ components: [
3625
+ { name: 'account', type: 'address' },
3626
+ { name: 'rate', type: 'uint96' },
3627
+ ],
3628
+ },
3629
+ {
3630
+ name: 'excess',
3631
+ type: 'tuple',
3632
+ components: [
3633
+ { name: 'enabled', type: 'bool' },
3634
+ { name: 'account', type: 'address' },
3635
+ { name: 'annualTargetRate', type: 'uint96' },
3636
+ { name: 'excessFeeRate', type: 'uint96' },
3637
+ ],
3638
+ },
3639
+ ],
3640
+ },
3641
+ ],
3642
+ },
3643
+ ],
3644
+ outputs: [],
3645
+ stateMutability: 'nonpayable',
3646
+ },
3647
+ {
3648
+ type: 'function',
3649
+ name: 'isSynced',
3650
+ inputs: [],
3651
+ outputs: [{ name: '', type: 'bool' }],
3652
+ stateMutability: 'view',
3653
+ },
3654
+ {
3655
+ type: 'function',
3656
+ name: 'migrateEngine',
3657
+ inputs: [
3658
+ { name: 'newEngine', type: 'address' },
3659
+ { name: 'minNewShares', type: 'uint256' },
3660
+ { name: 'minAssetsRetained', type: 'uint256' },
3661
+ ],
3662
+ outputs: [{ name: 'newShares', type: 'uint256' }],
3663
+ stateMutability: 'nonpayable',
3664
+ },
3665
+ {
3666
+ type: 'function',
3667
+ name: 'operator',
3668
+ inputs: [],
3669
+ outputs: [{ name: '', type: 'address' }],
3670
+ stateMutability: 'view',
3671
+ },
3672
+ {
3673
+ type: 'function',
3674
+ name: 'pendingRedeem',
3675
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
3676
+ outputs: [
3677
+ {
3678
+ name: '',
3679
+ type: 'tuple',
3680
+ components: [
3681
+ { name: 'receiver', type: 'address' },
3682
+ { name: 'requester', type: 'address' },
3683
+ { name: 'burnedEarnToken', type: 'uint256' },
3684
+ { name: 'venueShares', type: 'uint256' },
3685
+ { name: 'requestValue', type: 'uint256' },
3686
+ { name: 'highWaterValue', type: 'uint256' },
3687
+ { name: 'targetValue', type: 'uint256' },
3688
+ { name: 'feeConfigId', type: 'uint64' },
3689
+ { name: 'requestedAt', type: 'uint40' },
3690
+ { name: 'open', type: 'bool' },
3691
+ ],
3692
+ },
3693
+ ],
3694
+ stateMutability: 'view',
3695
+ },
3696
+ {
3697
+ type: 'function',
3698
+ name: 'pendingRedeemCount',
3699
+ inputs: [],
3700
+ outputs: [{ name: '', type: 'uint256' }],
3701
+ stateMutability: 'view',
3702
+ },
3703
+ {
3704
+ type: 'function',
3705
+ name: 'previewAccruedFees',
3706
+ inputs: [],
3707
+ outputs: [
3708
+ {
3709
+ name: 'result',
3710
+ type: 'tuple',
3711
+ components: [
3712
+ { name: 'activeAssets', type: 'uint256' },
3713
+ { name: 'positiveAccrualAssets', type: 'uint256' },
3714
+ { name: 'fixedFeeAssets', type: 'uint256' },
3715
+ { name: 'excessFeeAssets', type: 'uint256' },
3716
+ { name: 'totalFeeAssets', type: 'uint256' },
3717
+ { name: 'totalFeeShares', type: 'uint256' },
3718
+ { name: 'preFeeValuePerShare', type: 'uint256' },
3719
+ { name: 'postFeeValuePerShare', type: 'uint256' },
3720
+ { name: 'targetValuePerShare', type: 'uint256' },
3721
+ { name: 'allocationCount', type: 'uint8' },
3722
+ {
3723
+ name: 'allocations',
3724
+ type: 'tuple[5]',
3725
+ components: [
3726
+ { name: 'account', type: 'address' },
3727
+ { name: 'feeAssets', type: 'uint256' },
3728
+ { name: 'feeShares', type: 'uint256' },
3729
+ ],
3730
+ },
3731
+ ],
3732
+ },
3733
+ ],
3734
+ stateMutability: 'view',
3735
+ },
3736
+ {
3737
+ type: 'function',
3738
+ name: 'previewRedeem',
3739
+ inputs: [{ name: 'shares', type: 'uint256' }],
3740
+ outputs: [{ name: 'assets', type: 'uint256' }],
3741
+ stateMutability: 'view',
3742
+ },
3743
+ {
3744
+ type: 'function',
3745
+ name: 'previewWithdraw',
3746
+ inputs: [{ name: 'assets', type: 'uint256' }],
3747
+ outputs: [{ name: 'shares', type: 'uint256' }],
3748
+ stateMutability: 'view',
3749
+ },
3750
+ {
3751
+ type: 'function',
3752
+ name: 'redeem',
3753
+ inputs: [
3754
+ { name: 'shares', type: 'uint256' },
3755
+ { name: 'receiver', type: 'address' },
3756
+ { name: 'minAssets', type: 'uint256' },
3757
+ ],
3758
+ outputs: [{ name: 'assets', type: 'uint256' }],
3759
+ stateMutability: 'nonpayable',
3760
+ },
3761
+ {
3762
+ type: 'function',
3763
+ name: 'requestRedeemAsync',
3764
+ inputs: [
3765
+ { name: 'shares', type: 'uint256' },
3766
+ { name: 'engineData', type: 'bytes' },
3767
+ { name: 'receiver', type: 'address' },
3768
+ ],
3769
+ outputs: [{ name: 'requestId', type: 'bytes32' }],
3770
+ stateMutability: 'nonpayable',
3771
+ },
3772
+ {
3773
+ type: 'function',
3774
+ name: 'setDepositsPaused',
3775
+ inputs: [{ name: 'paused', type: 'bool' }],
3776
+ outputs: [],
3777
+ stateMutability: 'nonpayable',
3778
+ },
3779
+ {
3780
+ type: 'function',
3781
+ name: 'setEmergencyRoles',
3782
+ inputs: [
3783
+ { name: 'newGuardian', type: 'address' },
3784
+ { name: 'newJanitor', type: 'address' },
3785
+ ],
3786
+ outputs: [],
3787
+ stateMutability: 'nonpayable',
3788
+ },
3789
+ {
3790
+ type: 'function',
3791
+ name: 'setFeeConfig',
3792
+ inputs: [
3793
+ {
3794
+ name: 'config',
3795
+ type: 'tuple',
3796
+ components: [
3797
+ { name: 'fixedFeeCount', type: 'uint8' },
3798
+ {
3799
+ name: 'fixedFees',
3800
+ type: 'tuple[4]',
3801
+ components: [
3802
+ { name: 'account', type: 'address' },
3803
+ { name: 'rate', type: 'uint96' },
3804
+ ],
3805
+ },
3806
+ {
3807
+ name: 'excess',
3808
+ type: 'tuple',
3809
+ components: [
3810
+ { name: 'enabled', type: 'bool' },
3811
+ { name: 'account', type: 'address' },
3812
+ { name: 'annualTargetRate', type: 'uint96' },
3813
+ { name: 'excessFeeRate', type: 'uint96' },
3814
+ ],
3815
+ },
3816
+ ],
3817
+ },
3818
+ ],
3819
+ outputs: [{ name: 'configId', type: 'uint64' }],
3820
+ stateMutability: 'nonpayable',
3821
+ },
3822
+ {
3823
+ type: 'function',
3824
+ name: 'shareSupply',
3825
+ inputs: [],
3826
+ outputs: [{ name: '', type: 'uint256' }],
3827
+ stateMutability: 'view',
3828
+ },
3829
+ {
3830
+ type: 'function',
3831
+ name: 'shareToken',
3832
+ inputs: [],
3833
+ outputs: [{ name: '', type: 'address' }],
3834
+ stateMutability: 'view',
3835
+ },
3836
+ {
3837
+ type: 'function',
3838
+ name: 'sharesToTokens',
3839
+ inputs: [{ name: 'shares', type: 'uint256' }],
3840
+ outputs: [{ name: '', type: 'uint256' }],
3841
+ stateMutability: 'view',
3842
+ },
3843
+ {
3844
+ type: 'function',
3845
+ name: 'targetBase',
3846
+ inputs: [],
3847
+ outputs: [{ name: '', type: 'uint256' }],
3848
+ stateMutability: 'view',
3849
+ },
3850
+ {
3851
+ type: 'function',
3852
+ name: 'targetStartedAt',
3853
+ inputs: [],
3854
+ outputs: [{ name: '', type: 'uint40' }],
3855
+ stateMutability: 'view',
3856
+ },
3857
+ {
3858
+ type: 'function',
3859
+ name: 'tokensToShares',
3860
+ inputs: [{ name: 'tokens', type: 'uint256' }],
3861
+ outputs: [{ name: '', type: 'uint256' }],
3862
+ stateMutability: 'view',
3863
+ },
3864
+ {
3865
+ type: 'function',
3866
+ name: 'totalClaimableFeeShares',
3867
+ inputs: [],
3868
+ outputs: [{ name: '', type: 'uint256' }],
3869
+ stateMutability: 'view',
3870
+ },
3871
+ {
3872
+ type: 'function',
3873
+ name: 'withdrawExact',
3874
+ inputs: [
3875
+ { name: 'assets', type: 'uint256' },
3876
+ { name: 'receiver', type: 'address' },
3877
+ { name: 'maxShares', type: 'uint256' },
3878
+ ],
3879
+ outputs: [{ name: 'sharesBurned', type: 'uint256' }],
3880
+ stateMutability: 'nonpayable',
3881
+ },
3882
+ {
3883
+ type: 'event',
3884
+ name: 'Contributed',
3885
+ inputs: [
3886
+ { name: 'caller', type: 'address', indexed: true },
3887
+ { name: 'assets', type: 'uint256', indexed: false },
3888
+ { name: 'venueShares', type: 'uint256', indexed: false },
3889
+ { name: 'anchorEngineShares', type: 'uint256', indexed: false },
3890
+ { name: 'anchorSupply', type: 'uint256', indexed: false },
3891
+ ],
3892
+ anonymous: false,
3893
+ },
3894
+ {
3895
+ type: 'event',
3896
+ name: 'DepositPauseChanged',
3897
+ inputs: [
3898
+ { name: 'caller', type: 'address', indexed: true },
3899
+ { name: 'paused', type: 'bool', indexed: false },
3900
+ ],
3901
+ anonymous: false,
3902
+ },
3903
+ {
3904
+ type: 'event',
3905
+ name: 'Deposited',
3906
+ inputs: [
3907
+ { name: 'caller', type: 'address', indexed: true },
3908
+ { name: 'receiver', type: 'address', indexed: true },
3909
+ { name: 'assets', type: 'uint256', indexed: false },
3910
+ { name: 'shares', type: 'uint256', indexed: false },
3911
+ ],
3912
+ anonymous: false,
3913
+ },
3914
+ {
3915
+ type: 'event',
3916
+ name: 'EmergencyRolesChanged',
3917
+ inputs: [
3918
+ { name: 'emergencyGuardian', type: 'address', indexed: true },
3919
+ { name: 'asyncJanitor', type: 'address', indexed: true },
3920
+ ],
3921
+ anonymous: false,
3922
+ },
3923
+ {
3924
+ type: 'event',
3925
+ name: 'EngineMigrated',
3926
+ inputs: [
3927
+ { name: 'oldEngine', type: 'address', indexed: true },
3928
+ { name: 'newEngine', type: 'address', indexed: true },
3929
+ { name: 'oldShares', type: 'uint256', indexed: false },
3930
+ { name: 'assetsMoved', type: 'uint256', indexed: false },
3931
+ { name: 'newShares', type: 'uint256', indexed: false },
3932
+ { name: 'shareSupply', type: 'uint256', indexed: false },
3933
+ { name: 'anchorEngineShares', type: 'uint256', indexed: false },
3934
+ { name: 'anchorSupply', type: 'uint256', indexed: false },
3935
+ ],
3936
+ anonymous: false,
3937
+ },
3938
+ {
3939
+ type: 'event',
3940
+ name: 'FeeBaselinesInitialized',
3941
+ inputs: [
3942
+ { name: 'highWaterMark', type: 'uint256', indexed: false },
3943
+ { name: 'targetBase', type: 'uint256', indexed: false },
3944
+ { name: 'targetStartedAt', type: 'uint40', indexed: false },
3945
+ ],
3946
+ anonymous: false,
3947
+ },
3948
+ {
3949
+ type: 'event',
3950
+ name: 'FeeConfigurationSet',
3951
+ inputs: [
3952
+ { name: 'configId', type: 'uint64', indexed: true },
3953
+ { name: 'configHash', type: 'bytes32', indexed: true },
3954
+ { name: 'reactivated', type: 'bool', indexed: false },
3955
+ ],
3956
+ anonymous: false,
3957
+ },
3958
+ {
3959
+ type: 'event',
3960
+ name: 'FeeDustWaived',
3961
+ inputs: [
3962
+ { name: 'configId', type: 'uint64', indexed: true },
3963
+ { name: 'slot', type: 'uint8', indexed: true },
3964
+ { name: 'remainder', type: 'uint256', indexed: false },
3965
+ ],
3966
+ anonymous: false,
3967
+ },
3968
+ {
3969
+ type: 'event',
3970
+ name: 'FeeSharesAllocated',
3971
+ inputs: [
3972
+ { name: 'configId', type: 'uint64', indexed: true },
3973
+ { name: 'recipient', type: 'address', indexed: true },
3974
+ { name: 'feeAssets', type: 'uint256', indexed: false },
3975
+ { name: 'feeShares', type: 'uint256', indexed: false },
3976
+ ],
3977
+ anonymous: false,
3978
+ },
3979
+ {
3980
+ type: 'event',
3981
+ name: 'FeeSharesClaimed',
3982
+ inputs: [
3983
+ { name: 'recipient', type: 'address', indexed: true },
3984
+ { name: 'to', type: 'address', indexed: true },
3985
+ { name: 'shares', type: 'uint256', indexed: false },
3986
+ ],
3987
+ anonymous: false,
3988
+ },
3989
+ {
3990
+ type: 'event',
3991
+ name: 'FeesAccrued',
3992
+ inputs: [
3993
+ { name: 'configId', type: 'uint64', indexed: true },
3994
+ { name: 'activeAssets', type: 'uint256', indexed: false },
3995
+ { name: 'positiveAccrualAssets', type: 'uint256', indexed: false },
3996
+ { name: 'feeAssets', type: 'uint256', indexed: false },
3997
+ { name: 'feeShares', type: 'uint256', indexed: false },
3998
+ { name: 'highWaterMark', type: 'uint256', indexed: false },
3999
+ { name: 'targetValuePerShare', type: 'uint256', indexed: false },
4000
+ ],
4001
+ anonymous: false,
4002
+ },
4003
+ {
4004
+ type: 'event',
4005
+ name: 'FeesDisabled',
4006
+ inputs: [{ name: 'guardian', type: 'address', indexed: true }],
4007
+ anonymous: false,
4008
+ },
4009
+ {
4010
+ type: 'event',
4011
+ name: 'RedeemCancelled',
4012
+ inputs: [
4013
+ { name: 'requestId', type: 'bytes32', indexed: true },
4014
+ { name: 'receiver', type: 'address', indexed: true },
4015
+ { name: 'shares', type: 'uint256', indexed: false },
4016
+ ],
4017
+ anonymous: false,
4018
+ },
4019
+ {
4020
+ type: 'event',
4021
+ name: 'RedeemFinalized',
4022
+ inputs: [
4023
+ { name: 'requestId', type: 'bytes32', indexed: true },
4024
+ { name: 'receiver', type: 'address', indexed: true },
4025
+ { name: 'shares', type: 'uint256', indexed: false },
4026
+ { name: 'asset', type: 'address', indexed: false },
4027
+ { name: 'amount', type: 'uint256', indexed: false },
4028
+ ],
4029
+ anonymous: false,
4030
+ },
4031
+ {
4032
+ type: 'event',
4033
+ name: 'RedeemRequested',
4034
+ inputs: [
4035
+ { name: 'requestId', type: 'bytes32', indexed: true },
4036
+ { name: 'requester', type: 'address', indexed: true },
4037
+ { name: 'receiver', type: 'address', indexed: true },
4038
+ { name: 'shares', type: 'uint256', indexed: false },
4039
+ ],
4040
+ anonymous: false,
4041
+ },
4042
+ {
4043
+ type: 'event',
4044
+ name: 'Redeemed',
4045
+ inputs: [
4046
+ { name: 'caller', type: 'address', indexed: true },
4047
+ { name: 'receiver', type: 'address', indexed: true },
4048
+ { name: 'shares', type: 'uint256', indexed: false },
4049
+ { name: 'assets', type: 'uint256', indexed: false },
4050
+ ],
4051
+ anonymous: false,
4052
+ },
4053
+ {
4054
+ type: 'event',
4055
+ name: 'VenueSharesDeposited',
4056
+ inputs: [
4057
+ { name: 'caller', type: 'address', indexed: true },
4058
+ { name: 'receiver', type: 'address', indexed: true },
4059
+ { name: 'requestedVenueShares', type: 'uint256', indexed: false },
4060
+ { name: 'receivedVenueShares', type: 'uint256', indexed: false },
4061
+ { name: 'earnShares', type: 'uint256', indexed: false },
4062
+ ],
4063
+ anonymous: false,
4064
+ },
4065
+ {
4066
+ type: 'event',
4067
+ name: 'WithdrewExact',
4068
+ inputs: [
4069
+ { name: 'caller', type: 'address', indexed: true },
4070
+ { name: 'receiver', type: 'address', indexed: true },
4071
+ { name: 'assets', type: 'uint256', indexed: false },
4072
+ { name: 'sharesBurned', type: 'uint256', indexed: false },
4073
+ ],
4074
+ anonymous: false,
4075
+ },
4076
+ { type: 'error', name: 'AlreadyInitialized', inputs: [] },
4077
+ { type: 'error', name: 'DepositsPaused', inputs: [] },
4078
+ {
4079
+ type: 'error',
4080
+ name: 'DuplicateRequest',
4081
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4082
+ },
4083
+ { type: 'error', name: 'EngineAssetMismatch', inputs: [] },
4084
+ {
4085
+ type: 'error',
4086
+ name: 'EngineCapabilityUnsupported',
4087
+ inputs: [{ name: 'interfaceId', type: 'bytes4' }],
4088
+ },
4089
+ { type: 'error', name: 'ExceedsMaxShares', inputs: [] },
4090
+ {
4091
+ type: 'error',
4092
+ name: 'ExcessiveConversionLoss',
4093
+ inputs: [
4094
+ { name: 'inputShares', type: 'uint256' },
4095
+ { name: 'representedShares', type: 'uint256' },
4096
+ ],
4097
+ },
4098
+ { type: 'error', name: 'FeeCapTooHigh', inputs: [] },
4099
+ { type: 'error', name: 'FeesPermanentlyDisabled', inputs: [] },
4100
+ { type: 'error', name: 'InitialShareSupplyNotZero', inputs: [] },
4101
+ { type: 'error', name: 'InsufficientClaimableFeeShares', inputs: [] },
4102
+ { type: 'error', name: 'InsufficientOutput', inputs: [] },
4103
+ { type: 'error', name: 'InvalidFeeClaimReceiver', inputs: [] },
4104
+ { type: 'error', name: 'InvalidFeeConfiguration', inputs: [] },
4105
+ { type: 'error', name: 'InvalidShareDecimals', inputs: [] },
4106
+ {
4107
+ type: 'error',
4108
+ name: 'MinimumAssetsNotMet',
4109
+ inputs: [
4110
+ { name: 'minimumAssets', type: 'uint256' },
4111
+ { name: 'actualAssets', type: 'uint256' },
4112
+ ],
4113
+ },
4114
+ {
4115
+ type: 'error',
4116
+ name: 'MinimumSharesNotMet',
4117
+ inputs: [
4118
+ { name: 'minimumShares', type: 'uint256' },
4119
+ { name: 'actualShares', type: 'uint256' },
4120
+ ],
4121
+ },
4122
+ { type: 'error', name: 'NoShareSupply', inputs: [] },
4123
+ { type: 'error', name: 'NotEmergencyGuardianOrOperator', inputs: [] },
4124
+ { type: 'error', name: 'NotEngine', inputs: [] },
4125
+ { type: 'error', name: 'NotFeeAdministrator', inputs: [] },
4126
+ { type: 'error', name: 'NotFeeGuardian', inputs: [] },
4127
+ { type: 'error', name: 'NotOperator', inputs: [] },
4128
+ { type: 'error', name: 'NotRequesterOrJanitor', inputs: [] },
4129
+ { type: 'error', name: 'OperatorMigrationDisabled', inputs: [] },
4130
+ { type: 'error', name: 'PendingRedeemsOpen', inputs: [] },
4131
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
4132
+ {
4133
+ type: 'error',
4134
+ name: 'RequestNotOpen',
4135
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4136
+ },
4137
+ { type: 'error', name: 'ResidualBacking', inputs: [] },
4138
+ { type: 'error', name: 'SameEngine', inputs: [] },
4139
+ { type: 'error', name: 'TokenCallFailed', inputs: [] },
4140
+ { type: 'error', name: 'TokenCallFalse', inputs: [] },
4141
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
4142
+ { type: 'error', name: 'ZeroAmount', inputs: [] },
4143
+ { type: 'error', name: 'ZeroMinimumAssets', inputs: [] },
4144
+ { type: 'error', name: 'ZeroMinimumShares', inputs: [] },
4145
+ ] as const
4146
+
4147
+ export const vaultEngine = [
4148
+ {
4149
+ type: 'function',
4150
+ name: 'asset',
4151
+ inputs: [],
4152
+ outputs: [{ name: '', type: 'address' }],
4153
+ stateMutability: 'view',
4154
+ },
4155
+ {
4156
+ type: 'function',
4157
+ name: 'deposit',
4158
+ inputs: [{ name: 'assets', type: 'uint256' }],
4159
+ outputs: [{ name: 'shares', type: 'uint256' }],
4160
+ stateMutability: 'nonpayable',
4161
+ },
4162
+ {
4163
+ type: 'function',
4164
+ name: 'name',
4165
+ inputs: [],
4166
+ outputs: [{ name: '', type: 'string' }],
4167
+ stateMutability: 'view',
4168
+ },
4169
+ {
4170
+ type: 'function',
4171
+ name: 'supportsInterface',
4172
+ inputs: [{ name: 'interfaceId', type: 'bytes4' }],
4173
+ outputs: [{ name: '', type: 'bool' }],
4174
+ stateMutability: 'view',
4175
+ },
4176
+ {
4177
+ type: 'function',
4178
+ name: 'symbol',
4179
+ inputs: [],
4180
+ outputs: [{ name: '', type: 'string' }],
4181
+ stateMutability: 'view',
4182
+ },
4183
+ {
4184
+ type: 'function',
4185
+ name: 'totalAssets',
4186
+ inputs: [],
4187
+ outputs: [{ name: 'assets', type: 'uint256' }],
4188
+ stateMutability: 'view',
4189
+ },
4190
+ {
4191
+ type: 'function',
4192
+ name: 'totalShares',
4193
+ inputs: [],
4194
+ outputs: [{ name: 'shares', type: 'uint256' }],
4195
+ stateMutability: 'view',
4196
+ },
4197
+ {
4198
+ type: 'function',
4199
+ name: 'valueOf',
4200
+ inputs: [{ name: 'shares', type: 'uint256' }],
4201
+ outputs: [{ name: 'assets', type: 'uint256' }],
4202
+ stateMutability: 'view',
4203
+ },
4204
+ {
4205
+ type: 'function',
4206
+ name: 'previewRedeem',
4207
+ inputs: [{ name: 'shares', type: 'uint256' }],
4208
+ outputs: [{ name: 'assets', type: 'uint256' }],
4209
+ stateMutability: 'view',
4210
+ },
4211
+ {
4212
+ type: 'function',
4213
+ name: 'redeem',
4214
+ inputs: [
4215
+ { name: 'shares', type: 'uint256' },
4216
+ { name: 'receiver', type: 'address' },
4217
+ ],
4218
+ outputs: [{ name: 'assets', type: 'uint256' }],
4219
+ stateMutability: 'nonpayable',
4220
+ },
4221
+ {
4222
+ type: 'function',
4223
+ name: 'previewWithdraw',
4224
+ inputs: [{ name: 'assets', type: 'uint256' }],
4225
+ outputs: [{ name: 'shares', type: 'uint256' }],
4226
+ stateMutability: 'view',
4227
+ },
4228
+ {
4229
+ type: 'function',
4230
+ name: 'withdraw',
4231
+ inputs: [
4232
+ { name: 'assets', type: 'uint256' },
4233
+ { name: 'receiver', type: 'address' },
4234
+ ],
4235
+ outputs: [{ name: 'shares', type: 'uint256' }],
4236
+ stateMutability: 'nonpayable',
4237
+ },
4238
+ ] as const
4239
+
4240
+ export const vaultEngineAsync = [
4241
+ {
4242
+ type: 'function',
4243
+ name: 'cancelRedeem',
4244
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4245
+ outputs: [{ name: 'shares', type: 'uint256' }],
4246
+ stateMutability: 'nonpayable',
4247
+ },
4248
+ {
4249
+ type: 'function',
4250
+ name: 'requestRedeem',
4251
+ inputs: [
4252
+ { name: 'shares', type: 'uint256' },
4253
+ { name: 'requestData', type: 'bytes' },
4254
+ ],
4255
+ outputs: [{ name: 'requestId', type: 'bytes32' }],
4256
+ stateMutability: 'nonpayable',
4257
+ },
4258
+ ] as const
4259
+
4260
+ export const vaultEngineShares = [
4261
+ {
4262
+ type: 'function',
4263
+ name: 'depositShares',
4264
+ inputs: [
4265
+ { name: 'shares', type: 'uint256' },
4266
+ { name: 'from', type: 'address' },
4267
+ ],
4268
+ outputs: [{ name: 'sharesReceived', type: 'uint256' }],
4269
+ stateMutability: 'nonpayable',
4270
+ },
4271
+ ] as const
4272
+
4273
+ export const vaultRewards = [
4274
+ {
4275
+ type: 'function',
4276
+ name: 'active',
4277
+ inputs: [],
4278
+ outputs: [{ name: '', type: 'bool' }],
4279
+ stateMutability: 'view',
4280
+ },
4281
+ {
4282
+ type: 'function',
4283
+ name: 'fund',
4284
+ inputs: [
4285
+ { name: 'funder', type: 'address' },
4286
+ { name: 'requested', type: 'uint256' },
4287
+ ],
4288
+ outputs: [{ name: 'funded', type: 'uint256' }],
4289
+ stateMutability: 'nonpayable',
4290
+ },
4291
+ {
4292
+ type: 'function',
4293
+ name: 'setActive',
4294
+ inputs: [{ name: 'active_', type: 'bool' }],
4295
+ outputs: [],
4296
+ stateMutability: 'nonpayable',
4297
+ },
4298
+ {
4299
+ type: 'event',
4300
+ name: 'Funded',
4301
+ inputs: [
4302
+ { name: 'funder', type: 'address', indexed: true },
4303
+ { name: 'requested', type: 'uint256', indexed: false },
4304
+ { name: 'funded', type: 'uint256', indexed: false },
4305
+ ],
4306
+ anonymous: false,
4307
+ },
4308
+ { type: 'error', name: 'Inactive', inputs: [] },
4309
+ { type: 'error', name: 'NotSelf', inputs: [] },
4310
+ {
4311
+ type: 'error',
4312
+ name: 'OwnableInvalidOwner',
4313
+ inputs: [{ name: 'owner', type: 'address' }],
4314
+ },
4315
+ {
4316
+ type: 'error',
4317
+ name: 'OwnableUnauthorizedAccount',
4318
+ inputs: [{ name: 'account', type: 'address' }],
4319
+ },
4320
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
4321
+ { type: 'error', name: 'TokenCallFailed', inputs: [] },
4322
+ { type: 'error', name: 'TokenCallFalse', inputs: [] },
4323
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
4324
+ ] as const
4325
+
4326
+ export const vedaEngine = [
4327
+ {
4328
+ type: 'function',
4329
+ name: 'claimRedeem',
4330
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4331
+ outputs: [{ name: 'amount', type: 'uint256' }],
4332
+ stateMutability: 'nonpayable',
4333
+ },
4334
+ {
4335
+ type: 'function',
4336
+ name: 'getClaim',
4337
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4338
+ outputs: [
4339
+ { name: 'open', type: 'bool' },
4340
+ { name: 'paid', type: 'bool' },
4341
+ { name: 'recorded', type: 'bool' },
4342
+ {
4343
+ name: 'request',
4344
+ type: 'tuple',
4345
+ components: [
4346
+ { name: 'nonce', type: 'uint96' },
4347
+ { name: 'user', type: 'address' },
4348
+ { name: 'assetOut', type: 'address' },
4349
+ { name: 'amountOfShares', type: 'uint128' },
4350
+ { name: 'amountOfAssets', type: 'uint128' },
4351
+ { name: 'creationTime', type: 'uint40' },
4352
+ { name: 'secondsToMaturity', type: 'uint24' },
4353
+ { name: 'secondsToDeadline', type: 'uint24' },
4354
+ ],
4355
+ },
4356
+ ],
4357
+ stateMutability: 'view',
4358
+ },
4359
+ {
4360
+ type: 'function',
4361
+ name: 'rate',
4362
+ inputs: [],
4363
+ outputs: [{ name: '', type: 'uint256' }],
4364
+ stateMutability: 'view',
4365
+ },
4366
+ {
4367
+ type: 'function',
4368
+ name: 'settled',
4369
+ inputs: [{ name: 'asset', type: 'address' }],
4370
+ outputs: [{ name: 'amount', type: 'uint256' }],
4371
+ stateMutability: 'view',
4372
+ },
4373
+ {
4374
+ type: 'event',
4375
+ name: 'AuthorizedForwarderChanged',
4376
+ inputs: [
4377
+ { name: 'account', type: 'address', indexed: true },
4378
+ { name: 'authorized', type: 'bool', indexed: false },
4379
+ ],
4380
+ anonymous: false,
4381
+ },
4382
+ {
4383
+ type: 'event',
4384
+ name: 'CoreInitialized',
4385
+ inputs: [{ name: 'core', type: 'address', indexed: true }],
4386
+ anonymous: false,
4387
+ },
4388
+ {
4389
+ type: 'event',
4390
+ name: 'Deposited',
4391
+ inputs: [
4392
+ { name: 'receiver', type: 'address', indexed: true },
4393
+ { name: 'assets', type: 'uint256', indexed: false },
4394
+ { name: 'shares', type: 'uint256', indexed: false },
4395
+ ],
4396
+ anonymous: false,
4397
+ },
4398
+ {
4399
+ type: 'event',
4400
+ name: 'DustSwept',
4401
+ inputs: [
4402
+ { name: 'token', type: 'address', indexed: true },
4403
+ { name: 'to', type: 'address', indexed: true },
4404
+ { name: 'amount', type: 'uint256', indexed: false },
4405
+ ],
4406
+ anonymous: false,
4407
+ },
4408
+ {
4409
+ type: 'event',
4410
+ name: 'FinalizeFailed',
4411
+ inputs: [
4412
+ { name: 'requestId', type: 'bytes32', indexed: true },
4413
+ { name: 'asset', type: 'address', indexed: true },
4414
+ { name: 'amount', type: 'uint256', indexed: false },
4415
+ ],
4416
+ anonymous: false,
4417
+ },
4418
+ {
4419
+ type: 'event',
4420
+ name: 'Finalized',
4421
+ inputs: [
4422
+ { name: 'requestId', type: 'bytes32', indexed: true },
4423
+ { name: 'asset', type: 'address', indexed: true },
4424
+ { name: 'amount', type: 'uint256', indexed: false },
4425
+ ],
4426
+ anonymous: false,
4427
+ },
4428
+ {
4429
+ type: 'event',
4430
+ name: 'OwnershipTransferStarted',
4431
+ inputs: [
4432
+ { name: 'previousOwner', type: 'address', indexed: true },
4433
+ { name: 'newOwner', type: 'address', indexed: true },
4434
+ ],
4435
+ anonymous: false,
4436
+ },
4437
+ {
4438
+ type: 'event',
4439
+ name: 'OwnershipTransferred',
4440
+ inputs: [
4441
+ { name: 'previousOwner', type: 'address', indexed: true },
4442
+ { name: 'newOwner', type: 'address', indexed: true },
4443
+ ],
4444
+ anonymous: false,
4445
+ },
4446
+ {
4447
+ type: 'event',
4448
+ name: 'RedeemCancelledOnQueue',
4449
+ inputs: [
4450
+ { name: 'requestId', type: 'bytes32', indexed: true },
4451
+ { name: 'shares', type: 'uint128', indexed: false },
4452
+ ],
4453
+ anonymous: false,
4454
+ },
4455
+ {
4456
+ type: 'event',
4457
+ name: 'RedeemClaimed',
4458
+ inputs: [
4459
+ { name: 'requestId', type: 'bytes32', indexed: true },
4460
+ { name: 'asset', type: 'address', indexed: true },
4461
+ { name: 'amount', type: 'uint256', indexed: false },
4462
+ ],
4463
+ anonymous: false,
4464
+ },
4465
+ {
4466
+ type: 'event',
4467
+ name: 'RedeemRequested',
4468
+ inputs: [
4469
+ { name: 'requestId', type: 'bytes32', indexed: true },
4470
+ { name: 'assetOut', type: 'address', indexed: true },
4471
+ { name: 'shares', type: 'uint128', indexed: false },
4472
+ ],
4473
+ anonymous: false,
4474
+ },
4475
+ {
4476
+ type: 'event',
4477
+ name: 'Redeemed',
4478
+ inputs: [
4479
+ { name: 'receiver', type: 'address', indexed: true },
4480
+ { name: 'shares', type: 'uint256', indexed: false },
4481
+ { name: 'assets', type: 'uint256', indexed: false },
4482
+ ],
4483
+ anonymous: false,
4484
+ },
4485
+ {
4486
+ type: 'event',
4487
+ name: 'RequestRecorded',
4488
+ inputs: [
4489
+ { name: 'requestId', type: 'bytes32', indexed: true },
4490
+ { name: 'amountOfAssets', type: 'uint128', indexed: false },
4491
+ ],
4492
+ anonymous: false,
4493
+ },
4494
+ {
4495
+ type: 'event',
4496
+ name: 'Settled',
4497
+ inputs: [
4498
+ { name: 'asset', type: 'address', indexed: true },
4499
+ { name: 'amount', type: 'uint256', indexed: false },
4500
+ { name: 'newTotal', type: 'uint256', indexed: false },
4501
+ ],
4502
+ anonymous: false,
4503
+ },
4504
+ {
4505
+ type: 'event',
4506
+ name: 'Unearmarked',
4507
+ inputs: [
4508
+ { name: 'asset', type: 'address', indexed: true },
4509
+ { name: 'amount', type: 'uint256', indexed: false },
4510
+ { name: 'newTotal', type: 'uint256', indexed: false },
4511
+ ],
4512
+ anonymous: false,
4513
+ },
4514
+ {
4515
+ type: 'event',
4516
+ name: 'WithdrewExact',
4517
+ inputs: [
4518
+ { name: 'receiver', type: 'address', indexed: true },
4519
+ { name: 'assets', type: 'uint256', indexed: false },
4520
+ { name: 'sharesBurned', type: 'uint256', indexed: false },
4521
+ ],
4522
+ anonymous: false,
4523
+ },
4524
+ { type: 'error', name: 'AlreadyInitialized', inputs: [] },
4525
+ {
4526
+ type: 'error',
4527
+ name: 'AssetsNotArrived',
4528
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4529
+ },
4530
+ { type: 'error', name: 'CannotSweepBackingShares', inputs: [] },
4531
+ {
4532
+ type: 'error',
4533
+ name: 'ClaimNotOpen',
4534
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4535
+ },
4536
+ { type: 'error', name: 'CoreNotSet', inputs: [] },
4537
+ {
4538
+ type: 'error',
4539
+ name: 'CreditExceedsBalance',
4540
+ inputs: [
4541
+ { name: 'asset', type: 'address' },
4542
+ { name: 'have', type: 'uint256' },
4543
+ { name: 'wantTotal', type: 'uint256' },
4544
+ ],
4545
+ },
4546
+ { type: 'error', name: 'NoSharesReceived', inputs: [] },
4547
+ {
4548
+ type: 'error',
4549
+ name: 'NotAuthorizedForwarder',
4550
+ inputs: [{ name: 'caller', type: 'address' }],
4551
+ },
4552
+ {
4553
+ type: 'error',
4554
+ name: 'NotCore',
4555
+ inputs: [{ name: 'caller', type: 'address' }],
4556
+ },
4557
+ { type: 'error', name: 'NotSelf', inputs: [] },
4558
+ {
4559
+ type: 'error',
4560
+ name: 'OwnableInvalidOwner',
4561
+ inputs: [{ name: 'owner', type: 'address' }],
4562
+ },
4563
+ {
4564
+ type: 'error',
4565
+ name: 'OwnableUnauthorizedAccount',
4566
+ inputs: [{ name: 'account', type: 'address' }],
4567
+ },
4568
+ { type: 'error', name: 'ReentrantCall', inputs: [] },
4569
+ {
4570
+ type: 'error',
4571
+ name: 'RequestDetailsNotRecorded',
4572
+ inputs: [{ name: 'requestId', type: 'bytes32' }],
4573
+ },
4574
+ {
4575
+ type: 'error',
4576
+ name: 'SharesTooLarge',
4577
+ inputs: [{ name: 'shares', type: 'uint256' }],
4578
+ },
4579
+ { type: 'error', name: 'TransferFailed', inputs: [] },
4580
+ { type: 'error', name: 'ZeroAddress', inputs: [] },
4581
+ ] as const
4582
+
4583
+ export const zoneGateway = [
4584
+ {
4585
+ type: 'function',
4586
+ name: 'defaultSwapper',
4587
+ inputs: [],
4588
+ outputs: [{ name: '', type: 'address' }],
4589
+ stateMutability: 'view',
4590
+ },
4591
+ {
4592
+ type: 'function',
4593
+ name: 'shareToken',
4594
+ inputs: [],
4595
+ outputs: [{ name: '', type: 'address' }],
4596
+ stateMutability: 'view',
4597
+ },
4598
+ {
4599
+ type: 'function',
4600
+ name: 'supportsFlow',
4601
+ inputs: [{ name: 'flow', type: 'uint8' }],
4602
+ outputs: [{ name: '', type: 'bool' }],
4603
+ stateMutability: 'pure',
4604
+ },
4605
+ {
4606
+ type: 'function',
4607
+ name: 'vaultAdapter',
4608
+ inputs: [],
4609
+ outputs: [{ name: '', type: 'address' }],
4610
+ stateMutability: 'view',
4611
+ },
4612
+ {
4613
+ type: 'function',
4614
+ name: 'vaultAsset',
4615
+ inputs: [],
4616
+ outputs: [{ name: '', type: 'address' }],
4617
+ stateMutability: 'view',
4618
+ },
4619
+ {
4620
+ type: 'function',
4621
+ name: 'zoneId',
4622
+ inputs: [],
4623
+ outputs: [{ name: '', type: 'uint32' }],
4624
+ stateMutability: 'view',
4625
+ },
4626
+ {
4627
+ type: 'function',
4628
+ name: 'zoneMessenger',
4629
+ inputs: [],
4630
+ outputs: [{ name: '', type: 'address' }],
4631
+ stateMutability: 'view',
4632
+ },
4633
+ {
4634
+ type: 'function',
4635
+ name: 'zonePortal',
4636
+ inputs: [],
4637
+ outputs: [{ name: '', type: 'address' }],
4638
+ stateMutability: 'view',
4639
+ },
4640
+ {
4641
+ type: 'event',
4642
+ name: 'EarnDeposit',
4643
+ inputs: [
4644
+ { name: 'actionId', type: 'bytes32', indexed: true },
4645
+ { name: 'inputToken', type: 'address', indexed: true },
4646
+ { name: 'inputAmount', type: 'uint256', indexed: false },
4647
+ { name: 'vaultAssets', type: 'uint256', indexed: false },
4648
+ { name: 'shares', type: 'uint256', indexed: false },
4649
+ { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
4650
+ ],
4651
+ anonymous: false,
4652
+ },
4653
+ {
4654
+ type: 'event',
4655
+ name: 'EarnRedeem',
4656
+ inputs: [
4657
+ { name: 'actionId', type: 'bytes32', indexed: true },
4658
+ { name: 'outputToken', type: 'address', indexed: true },
4659
+ { name: 'shares', type: 'uint256', indexed: false },
4660
+ { name: 'vaultAssets', type: 'uint256', indexed: false },
4661
+ { name: 'outputAmount', type: 'uint256', indexed: false },
4662
+ { name: 'zoneDepositHash', type: 'bytes32', indexed: false },
4663
+ ],
4664
+ anonymous: false,
4665
+ },
4666
+ ] as const
4667
+
4668
+ export const zoneGatewayBase = [
4669
+ {
4670
+ type: 'function',
4671
+ name: 'acceptOwnership',
4672
+ inputs: [],
4673
+ outputs: [],
4674
+ stateMutability: 'nonpayable',
4675
+ },
4676
+ {
4677
+ type: 'function',
4678
+ name: 'depositSwapperFor',
4679
+ inputs: [{ name: 'token', type: 'address' }],
4680
+ outputs: [{ name: 'swapper', type: 'address' }],
4681
+ stateMutability: 'view',
4682
+ },
4683
+ {
4684
+ type: 'function',
4685
+ name: 'owner',
4686
+ inputs: [],
4687
+ outputs: [{ name: '', type: 'address' }],
4688
+ stateMutability: 'view',
4689
+ },
4690
+ {
4691
+ type: 'function',
4692
+ name: 'pendingOwner',
4693
+ inputs: [],
4694
+ outputs: [{ name: '', type: 'address' }],
4695
+ stateMutability: 'view',
4696
+ },
4697
+ {
4698
+ type: 'function',
4699
+ name: 'redeemSwapperFor',
4700
+ inputs: [{ name: 'token', type: 'address' }],
4701
+ outputs: [{ name: 'swapper', type: 'address' }],
4702
+ stateMutability: 'view',
4703
+ },
4704
+ {
4705
+ type: 'function',
4706
+ name: 'renounceOwnership',
4707
+ inputs: [],
4708
+ outputs: [],
4709
+ stateMutability: 'nonpayable',
4710
+ },
4711
+ {
4712
+ type: 'function',
4713
+ name: 'setDepositRoute',
4714
+ inputs: [
4715
+ { name: 'inputToken', type: 'address' },
4716
+ { name: 'swapper', type: 'address' },
4717
+ ],
4718
+ outputs: [],
4719
+ stateMutability: 'nonpayable',
4720
+ },
4721
+ {
4722
+ type: 'function',
4723
+ name: 'setRedeemRoute',
4724
+ inputs: [
4725
+ { name: 'outputToken', type: 'address' },
4726
+ { name: 'swapper', type: 'address' },
4727
+ ],
4728
+ outputs: [],
4729
+ stateMutability: 'nonpayable',
4730
+ },
4731
+ {
4732
+ type: 'function',
4733
+ name: 'transferOwnership',
4734
+ inputs: [{ name: 'newOwner', type: 'address' }],
4735
+ outputs: [],
4736
+ stateMutability: 'nonpayable',
4737
+ },
4738
+ {
4739
+ type: 'event',
4740
+ name: 'DepositRouteUpdated',
4741
+ inputs: [
4742
+ { name: 'inputToken', type: 'address', indexed: true },
4743
+ { name: 'swapper', type: 'address', indexed: true },
4744
+ ],
4745
+ anonymous: false,
4746
+ },
4747
+ {
4748
+ type: 'event',
4749
+ name: 'OwnershipTransferStarted',
4750
+ inputs: [
4751
+ { name: 'previousOwner', type: 'address', indexed: true },
4752
+ { name: 'newOwner', type: 'address', indexed: true },
4753
+ ],
4754
+ anonymous: false,
4755
+ },
4756
+ {
4757
+ type: 'event',
4758
+ name: 'OwnershipTransferred',
4759
+ inputs: [
4760
+ { name: 'previousOwner', type: 'address', indexed: true },
4761
+ { name: 'newOwner', type: 'address', indexed: true },
4762
+ ],
4763
+ anonymous: false,
4764
+ },
4765
+ {
4766
+ type: 'event',
4767
+ name: 'RedeemRouteUpdated',
4768
+ inputs: [
4769
+ { name: 'outputToken', type: 'address', indexed: true },
4770
+ { name: 'swapper', type: 'address', indexed: true },
4771
+ ],
4772
+ anonymous: false,
4773
+ },
4774
+ {
4775
+ type: 'event',
4776
+ name: 'TokenRescued',
4777
+ inputs: [
4778
+ { name: 'token', type: 'address', indexed: true },
4779
+ { name: 'receiver', type: 'address', indexed: true },
4780
+ { name: 'amount', type: 'uint256', indexed: false },
4781
+ ],
4782
+ anonymous: false,
4783
+ },
4784
+ ] as const
4785
+
4786
+ // `ZoneGateway.CallbackData` parameter for `encodeAbiParameters`.
4787
+ export const zoneGatewayCallbackData = [
4788
+ {
4789
+ components: [
4790
+ { name: 'flow', type: 'uint8' },
4791
+ { name: 'outputToken', type: 'address' },
4792
+ { name: 'keyIndex', type: 'uint256' },
4793
+ {
4794
+ components: [
4795
+ { name: 'ephemeralPubkeyX', type: 'bytes32' },
4796
+ { name: 'ephemeralPubkeyYParity', type: 'uint8' },
4797
+ { name: 'ciphertext', type: 'bytes' },
4798
+ { name: 'nonce', type: 'bytes12' },
4799
+ { name: 'tag', type: 'bytes16' },
4800
+ ],
4801
+ name: 'encrypted',
4802
+ type: 'tuple',
4803
+ },
4804
+ { name: 'minVaultAssets', type: 'uint128' },
4805
+ { name: 'minVaultShares', type: 'uint128' },
4806
+ { name: 'minOutputAmount', type: 'uint128' },
4807
+ { name: 'actionId', type: 'bytes32' },
4808
+ { name: 'refundRecipient', type: 'address' },
4809
+ ],
4810
+ name: 'callbackData',
4811
+ type: 'tuple',
4812
+ },
4813
+ ] as const