@bgd-labs/toolbox 0.0.47 → 0.0.49
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.
- package/dist/index.d.mts +1514 -60
- package/dist/index.d.ts +1514 -60
- package/dist/index.js +1953 -52
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1950 -52
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +1953 -52
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +1950 -52
- package/dist/node.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -63,6 +63,7 @@ __export(index_exports, {
|
|
|
63
63
|
IWrappedTokenGatewayV3_ABI: () => IWrappedTokenGatewayV3_ABI,
|
|
64
64
|
LTV_PRECISION: () => LTV_PRECISION,
|
|
65
65
|
Ownable_ABI: () => Ownable_ABI,
|
|
66
|
+
PausableUpgradeable_ABI: () => PausableUpgradeable_ABI,
|
|
66
67
|
PayloadState: () => PayloadState,
|
|
67
68
|
ProposalState: () => ProposalState,
|
|
68
69
|
ProxyAdmin_ABI: () => ProxyAdmin_ABI,
|
|
@@ -70,6 +71,8 @@ __export(index_exports, {
|
|
|
70
71
|
SECONDS_PER_YEAR: () => SECONDS_PER_YEAR,
|
|
71
72
|
SelfdestructCheckState: () => SelfdestructCheckState,
|
|
72
73
|
SoltypeType: () => SoltypeType,
|
|
74
|
+
Umbrella_IRewardsController_ABI: () => Umbrella_IRewardsController_ABI,
|
|
75
|
+
Umbrella_IRewardsDistributor_ABI: () => Umbrella_IRewardsDistributor_ABI,
|
|
73
76
|
VerificationStatus: () => VerificationStatus,
|
|
74
77
|
WAD: () => WAD,
|
|
75
78
|
WAD_RAY_RATIO: () => WAD_RAY_RATIO,
|
|
@@ -3847,52 +3850,1625 @@ var IUmbrella_ABI = [
|
|
|
3847
3850
|
}
|
|
3848
3851
|
];
|
|
3849
3852
|
|
|
3853
|
+
// src/abis/Umbrella_IRewardsDistributor.ts
|
|
3854
|
+
var Umbrella_IRewardsDistributor_ABI = [
|
|
3855
|
+
{
|
|
3856
|
+
"type": "function",
|
|
3857
|
+
"name": "claimAllRewards",
|
|
3858
|
+
"inputs": [
|
|
3859
|
+
{
|
|
3860
|
+
"name": "asset",
|
|
3861
|
+
"type": "address",
|
|
3862
|
+
"internalType": "address"
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
"name": "receiver",
|
|
3866
|
+
"type": "address",
|
|
3867
|
+
"internalType": "address"
|
|
3868
|
+
}
|
|
3869
|
+
],
|
|
3870
|
+
"outputs": [
|
|
3871
|
+
{
|
|
3872
|
+
"name": "rewards",
|
|
3873
|
+
"type": "address[]",
|
|
3874
|
+
"internalType": "address[]"
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"name": "amounts",
|
|
3878
|
+
"type": "uint256[]",
|
|
3879
|
+
"internalType": "uint256[]"
|
|
3880
|
+
}
|
|
3881
|
+
],
|
|
3882
|
+
"stateMutability": "nonpayable"
|
|
3883
|
+
},
|
|
3884
|
+
{
|
|
3885
|
+
"type": "function",
|
|
3886
|
+
"name": "claimAllRewards",
|
|
3887
|
+
"inputs": [
|
|
3888
|
+
{
|
|
3889
|
+
"name": "assets",
|
|
3890
|
+
"type": "address[]",
|
|
3891
|
+
"internalType": "address[]"
|
|
3892
|
+
},
|
|
3893
|
+
{
|
|
3894
|
+
"name": "receiver",
|
|
3895
|
+
"type": "address",
|
|
3896
|
+
"internalType": "address"
|
|
3897
|
+
}
|
|
3898
|
+
],
|
|
3899
|
+
"outputs": [
|
|
3900
|
+
{
|
|
3901
|
+
"name": "rewards",
|
|
3902
|
+
"type": "address[][]",
|
|
3903
|
+
"internalType": "address[][]"
|
|
3904
|
+
},
|
|
3905
|
+
{
|
|
3906
|
+
"name": "amounts",
|
|
3907
|
+
"type": "uint256[][]",
|
|
3908
|
+
"internalType": "uint256[][]"
|
|
3909
|
+
}
|
|
3910
|
+
],
|
|
3911
|
+
"stateMutability": "nonpayable"
|
|
3912
|
+
},
|
|
3913
|
+
{
|
|
3914
|
+
"type": "function",
|
|
3915
|
+
"name": "claimAllRewardsOnBehalf",
|
|
3916
|
+
"inputs": [
|
|
3917
|
+
{
|
|
3918
|
+
"name": "assets",
|
|
3919
|
+
"type": "address[]",
|
|
3920
|
+
"internalType": "address[]"
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
"name": "user",
|
|
3924
|
+
"type": "address",
|
|
3925
|
+
"internalType": "address"
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"name": "receiver",
|
|
3929
|
+
"type": "address",
|
|
3930
|
+
"internalType": "address"
|
|
3931
|
+
}
|
|
3932
|
+
],
|
|
3933
|
+
"outputs": [
|
|
3934
|
+
{
|
|
3935
|
+
"name": "rewards",
|
|
3936
|
+
"type": "address[][]",
|
|
3937
|
+
"internalType": "address[][]"
|
|
3938
|
+
},
|
|
3939
|
+
{
|
|
3940
|
+
"name": "amounts",
|
|
3941
|
+
"type": "uint256[][]",
|
|
3942
|
+
"internalType": "uint256[][]"
|
|
3943
|
+
}
|
|
3944
|
+
],
|
|
3945
|
+
"stateMutability": "nonpayable"
|
|
3946
|
+
},
|
|
3947
|
+
{
|
|
3948
|
+
"type": "function",
|
|
3949
|
+
"name": "claimAllRewardsOnBehalf",
|
|
3950
|
+
"inputs": [
|
|
3951
|
+
{
|
|
3952
|
+
"name": "asset",
|
|
3953
|
+
"type": "address",
|
|
3954
|
+
"internalType": "address"
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
"name": "user",
|
|
3958
|
+
"type": "address",
|
|
3959
|
+
"internalType": "address"
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
"name": "receiver",
|
|
3963
|
+
"type": "address",
|
|
3964
|
+
"internalType": "address"
|
|
3965
|
+
}
|
|
3966
|
+
],
|
|
3967
|
+
"outputs": [
|
|
3968
|
+
{
|
|
3969
|
+
"name": "rewards",
|
|
3970
|
+
"type": "address[]",
|
|
3971
|
+
"internalType": "address[]"
|
|
3972
|
+
},
|
|
3973
|
+
{
|
|
3974
|
+
"name": "amounts",
|
|
3975
|
+
"type": "uint256[]",
|
|
3976
|
+
"internalType": "uint256[]"
|
|
3977
|
+
}
|
|
3978
|
+
],
|
|
3979
|
+
"stateMutability": "nonpayable"
|
|
3980
|
+
},
|
|
3981
|
+
{
|
|
3982
|
+
"type": "function",
|
|
3983
|
+
"name": "claimAllRewardsPermit",
|
|
3984
|
+
"inputs": [
|
|
3985
|
+
{
|
|
3986
|
+
"name": "asset",
|
|
3987
|
+
"type": "address",
|
|
3988
|
+
"internalType": "address"
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
"name": "user",
|
|
3992
|
+
"type": "address",
|
|
3993
|
+
"internalType": "address"
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
"name": "receiver",
|
|
3997
|
+
"type": "address",
|
|
3998
|
+
"internalType": "address"
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
"name": "deadline",
|
|
4002
|
+
"type": "uint256",
|
|
4003
|
+
"internalType": "uint256"
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
"name": "sig",
|
|
4007
|
+
"type": "tuple",
|
|
4008
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4009
|
+
"components": [
|
|
4010
|
+
{
|
|
4011
|
+
"name": "v",
|
|
4012
|
+
"type": "uint8",
|
|
4013
|
+
"internalType": "uint8"
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"name": "r",
|
|
4017
|
+
"type": "bytes32",
|
|
4018
|
+
"internalType": "bytes32"
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
"name": "s",
|
|
4022
|
+
"type": "bytes32",
|
|
4023
|
+
"internalType": "bytes32"
|
|
4024
|
+
}
|
|
4025
|
+
]
|
|
4026
|
+
}
|
|
4027
|
+
],
|
|
4028
|
+
"outputs": [
|
|
4029
|
+
{
|
|
4030
|
+
"name": "rewards",
|
|
4031
|
+
"type": "address[]",
|
|
4032
|
+
"internalType": "address[]"
|
|
4033
|
+
},
|
|
4034
|
+
{
|
|
4035
|
+
"name": "amounts",
|
|
4036
|
+
"type": "uint256[]",
|
|
4037
|
+
"internalType": "uint256[]"
|
|
4038
|
+
}
|
|
4039
|
+
],
|
|
4040
|
+
"stateMutability": "nonpayable"
|
|
4041
|
+
},
|
|
4042
|
+
{
|
|
4043
|
+
"type": "function",
|
|
4044
|
+
"name": "claimSelectedRewards",
|
|
4045
|
+
"inputs": [
|
|
4046
|
+
{
|
|
4047
|
+
"name": "assets",
|
|
4048
|
+
"type": "address[]",
|
|
4049
|
+
"internalType": "address[]"
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
"name": "rewards",
|
|
4053
|
+
"type": "address[][]",
|
|
4054
|
+
"internalType": "address[][]"
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"name": "receiver",
|
|
4058
|
+
"type": "address",
|
|
4059
|
+
"internalType": "address"
|
|
4060
|
+
}
|
|
4061
|
+
],
|
|
4062
|
+
"outputs": [
|
|
4063
|
+
{
|
|
4064
|
+
"name": "",
|
|
4065
|
+
"type": "uint256[][]",
|
|
4066
|
+
"internalType": "uint256[][]"
|
|
4067
|
+
}
|
|
4068
|
+
],
|
|
4069
|
+
"stateMutability": "nonpayable"
|
|
4070
|
+
},
|
|
4071
|
+
{
|
|
4072
|
+
"type": "function",
|
|
4073
|
+
"name": "claimSelectedRewards",
|
|
4074
|
+
"inputs": [
|
|
4075
|
+
{
|
|
4076
|
+
"name": "asset",
|
|
4077
|
+
"type": "address",
|
|
4078
|
+
"internalType": "address"
|
|
4079
|
+
},
|
|
4080
|
+
{
|
|
4081
|
+
"name": "rewards",
|
|
4082
|
+
"type": "address[]",
|
|
4083
|
+
"internalType": "address[]"
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
"name": "receiver",
|
|
4087
|
+
"type": "address",
|
|
4088
|
+
"internalType": "address"
|
|
4089
|
+
}
|
|
4090
|
+
],
|
|
4091
|
+
"outputs": [
|
|
4092
|
+
{
|
|
4093
|
+
"name": "amounts",
|
|
4094
|
+
"type": "uint256[]",
|
|
4095
|
+
"internalType": "uint256[]"
|
|
4096
|
+
}
|
|
4097
|
+
],
|
|
4098
|
+
"stateMutability": "nonpayable"
|
|
4099
|
+
},
|
|
4100
|
+
{
|
|
4101
|
+
"type": "function",
|
|
4102
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4103
|
+
"inputs": [
|
|
4104
|
+
{
|
|
4105
|
+
"name": "asset",
|
|
4106
|
+
"type": "address",
|
|
4107
|
+
"internalType": "address"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"name": "rewards",
|
|
4111
|
+
"type": "address[]",
|
|
4112
|
+
"internalType": "address[]"
|
|
4113
|
+
},
|
|
4114
|
+
{
|
|
4115
|
+
"name": "user",
|
|
4116
|
+
"type": "address",
|
|
4117
|
+
"internalType": "address"
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
"name": "receiver",
|
|
4121
|
+
"type": "address",
|
|
4122
|
+
"internalType": "address"
|
|
4123
|
+
}
|
|
4124
|
+
],
|
|
4125
|
+
"outputs": [
|
|
4126
|
+
{
|
|
4127
|
+
"name": "amounts",
|
|
4128
|
+
"type": "uint256[]",
|
|
4129
|
+
"internalType": "uint256[]"
|
|
4130
|
+
}
|
|
4131
|
+
],
|
|
4132
|
+
"stateMutability": "nonpayable"
|
|
4133
|
+
},
|
|
4134
|
+
{
|
|
4135
|
+
"type": "function",
|
|
4136
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4137
|
+
"inputs": [
|
|
4138
|
+
{
|
|
4139
|
+
"name": "assets",
|
|
4140
|
+
"type": "address[]",
|
|
4141
|
+
"internalType": "address[]"
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
"name": "rewards",
|
|
4145
|
+
"type": "address[][]",
|
|
4146
|
+
"internalType": "address[][]"
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
"name": "user",
|
|
4150
|
+
"type": "address",
|
|
4151
|
+
"internalType": "address"
|
|
4152
|
+
},
|
|
4153
|
+
{
|
|
4154
|
+
"name": "receiver",
|
|
4155
|
+
"type": "address",
|
|
4156
|
+
"internalType": "address"
|
|
4157
|
+
}
|
|
4158
|
+
],
|
|
4159
|
+
"outputs": [
|
|
4160
|
+
{
|
|
4161
|
+
"name": "",
|
|
4162
|
+
"type": "uint256[][]",
|
|
4163
|
+
"internalType": "uint256[][]"
|
|
4164
|
+
}
|
|
4165
|
+
],
|
|
4166
|
+
"stateMutability": "nonpayable"
|
|
4167
|
+
},
|
|
4168
|
+
{
|
|
4169
|
+
"type": "function",
|
|
4170
|
+
"name": "claimSelectedRewardsPermit",
|
|
4171
|
+
"inputs": [
|
|
4172
|
+
{
|
|
4173
|
+
"name": "asset",
|
|
4174
|
+
"type": "address",
|
|
4175
|
+
"internalType": "address"
|
|
4176
|
+
},
|
|
4177
|
+
{
|
|
4178
|
+
"name": "rewards",
|
|
4179
|
+
"type": "address[]",
|
|
4180
|
+
"internalType": "address[]"
|
|
4181
|
+
},
|
|
4182
|
+
{
|
|
4183
|
+
"name": "user",
|
|
4184
|
+
"type": "address",
|
|
4185
|
+
"internalType": "address"
|
|
4186
|
+
},
|
|
4187
|
+
{
|
|
4188
|
+
"name": "receiver",
|
|
4189
|
+
"type": "address",
|
|
4190
|
+
"internalType": "address"
|
|
4191
|
+
},
|
|
4192
|
+
{
|
|
4193
|
+
"name": "deadline",
|
|
4194
|
+
"type": "uint256",
|
|
4195
|
+
"internalType": "uint256"
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"name": "sig",
|
|
4199
|
+
"type": "tuple",
|
|
4200
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4201
|
+
"components": [
|
|
4202
|
+
{
|
|
4203
|
+
"name": "v",
|
|
4204
|
+
"type": "uint8",
|
|
4205
|
+
"internalType": "uint8"
|
|
4206
|
+
},
|
|
4207
|
+
{
|
|
4208
|
+
"name": "r",
|
|
4209
|
+
"type": "bytes32",
|
|
4210
|
+
"internalType": "bytes32"
|
|
4211
|
+
},
|
|
4212
|
+
{
|
|
4213
|
+
"name": "s",
|
|
4214
|
+
"type": "bytes32",
|
|
4215
|
+
"internalType": "bytes32"
|
|
4216
|
+
}
|
|
4217
|
+
]
|
|
4218
|
+
}
|
|
4219
|
+
],
|
|
4220
|
+
"outputs": [
|
|
4221
|
+
{
|
|
4222
|
+
"name": "amounts",
|
|
4223
|
+
"type": "uint256[]",
|
|
4224
|
+
"internalType": "uint256[]"
|
|
4225
|
+
}
|
|
4226
|
+
],
|
|
4227
|
+
"stateMutability": "nonpayable"
|
|
4228
|
+
},
|
|
4229
|
+
{
|
|
4230
|
+
"type": "function",
|
|
4231
|
+
"name": "setClaimer",
|
|
4232
|
+
"inputs": [
|
|
4233
|
+
{
|
|
4234
|
+
"name": "claimer",
|
|
4235
|
+
"type": "address",
|
|
4236
|
+
"internalType": "address"
|
|
4237
|
+
},
|
|
4238
|
+
{
|
|
4239
|
+
"name": "flag",
|
|
4240
|
+
"type": "bool",
|
|
4241
|
+
"internalType": "bool"
|
|
4242
|
+
}
|
|
4243
|
+
],
|
|
4244
|
+
"outputs": [],
|
|
4245
|
+
"stateMutability": "nonpayable"
|
|
4246
|
+
},
|
|
4247
|
+
{
|
|
4248
|
+
"type": "function",
|
|
4249
|
+
"name": "setClaimer",
|
|
4250
|
+
"inputs": [
|
|
4251
|
+
{
|
|
4252
|
+
"name": "user",
|
|
4253
|
+
"type": "address",
|
|
4254
|
+
"internalType": "address"
|
|
4255
|
+
},
|
|
4256
|
+
{
|
|
4257
|
+
"name": "claimer",
|
|
4258
|
+
"type": "address",
|
|
4259
|
+
"internalType": "address"
|
|
4260
|
+
},
|
|
4261
|
+
{
|
|
4262
|
+
"name": "flag",
|
|
4263
|
+
"type": "bool",
|
|
4264
|
+
"internalType": "bool"
|
|
4265
|
+
}
|
|
4266
|
+
],
|
|
4267
|
+
"outputs": [],
|
|
4268
|
+
"stateMutability": "nonpayable"
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
"type": "event",
|
|
4272
|
+
"name": "ClaimerSet",
|
|
4273
|
+
"inputs": [
|
|
4274
|
+
{
|
|
4275
|
+
"name": "user",
|
|
4276
|
+
"type": "address",
|
|
4277
|
+
"indexed": true,
|
|
4278
|
+
"internalType": "address"
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"name": "claimer",
|
|
4282
|
+
"type": "address",
|
|
4283
|
+
"indexed": true,
|
|
4284
|
+
"internalType": "address"
|
|
4285
|
+
},
|
|
4286
|
+
{
|
|
4287
|
+
"name": "caller",
|
|
4288
|
+
"type": "address",
|
|
4289
|
+
"indexed": true,
|
|
4290
|
+
"internalType": "address"
|
|
4291
|
+
},
|
|
4292
|
+
{
|
|
4293
|
+
"name": "flag",
|
|
4294
|
+
"type": "bool",
|
|
4295
|
+
"indexed": false,
|
|
4296
|
+
"internalType": "bool"
|
|
4297
|
+
}
|
|
4298
|
+
],
|
|
4299
|
+
"anonymous": false
|
|
4300
|
+
},
|
|
4301
|
+
{
|
|
4302
|
+
"type": "error",
|
|
4303
|
+
"name": "ClaimerNotAuthorized",
|
|
4304
|
+
"inputs": [
|
|
4305
|
+
{
|
|
4306
|
+
"name": "claimer",
|
|
4307
|
+
"type": "address",
|
|
4308
|
+
"internalType": "address"
|
|
4309
|
+
},
|
|
4310
|
+
{
|
|
4311
|
+
"name": "user",
|
|
4312
|
+
"type": "address",
|
|
4313
|
+
"internalType": "address"
|
|
4314
|
+
}
|
|
4315
|
+
]
|
|
4316
|
+
},
|
|
4317
|
+
{
|
|
4318
|
+
"type": "error",
|
|
4319
|
+
"name": "ExpiredSignature",
|
|
4320
|
+
"inputs": [
|
|
4321
|
+
{
|
|
4322
|
+
"name": "deadline",
|
|
4323
|
+
"type": "uint256",
|
|
4324
|
+
"internalType": "uint256"
|
|
4325
|
+
}
|
|
4326
|
+
]
|
|
4327
|
+
},
|
|
4328
|
+
{
|
|
4329
|
+
"type": "error",
|
|
4330
|
+
"name": "InvalidSigner",
|
|
4331
|
+
"inputs": [
|
|
4332
|
+
{
|
|
4333
|
+
"name": "signer",
|
|
4334
|
+
"type": "address",
|
|
4335
|
+
"internalType": "address"
|
|
4336
|
+
},
|
|
4337
|
+
{
|
|
4338
|
+
"name": "owner",
|
|
4339
|
+
"type": "address",
|
|
4340
|
+
"internalType": "address"
|
|
4341
|
+
}
|
|
4342
|
+
]
|
|
4343
|
+
},
|
|
4344
|
+
{
|
|
4345
|
+
"type": "error",
|
|
4346
|
+
"name": "LengthsDontMatch",
|
|
4347
|
+
"inputs": []
|
|
4348
|
+
},
|
|
4349
|
+
{
|
|
4350
|
+
"type": "error",
|
|
4351
|
+
"name": "ZeroAddress",
|
|
4352
|
+
"inputs": []
|
|
4353
|
+
}
|
|
4354
|
+
];
|
|
4355
|
+
|
|
3850
4356
|
// src/abis/IWrappedTokenGatewayV3.ts
|
|
3851
4357
|
var IWrappedTokenGatewayV3_ABI = [
|
|
3852
4358
|
{
|
|
3853
4359
|
"type": "function",
|
|
3854
|
-
"name": "POOL",
|
|
3855
|
-
"inputs": [],
|
|
3856
|
-
"outputs": [
|
|
4360
|
+
"name": "POOL",
|
|
4361
|
+
"inputs": [],
|
|
4362
|
+
"outputs": [
|
|
4363
|
+
{
|
|
4364
|
+
"name": "",
|
|
4365
|
+
"type": "address",
|
|
4366
|
+
"internalType": "contract IPool"
|
|
4367
|
+
}
|
|
4368
|
+
],
|
|
4369
|
+
"stateMutability": "view"
|
|
4370
|
+
},
|
|
4371
|
+
{
|
|
4372
|
+
"type": "function",
|
|
4373
|
+
"name": "WETH",
|
|
4374
|
+
"inputs": [],
|
|
4375
|
+
"outputs": [
|
|
4376
|
+
{
|
|
4377
|
+
"name": "",
|
|
4378
|
+
"type": "address",
|
|
4379
|
+
"internalType": "contract IWETH"
|
|
4380
|
+
}
|
|
4381
|
+
],
|
|
4382
|
+
"stateMutability": "view"
|
|
4383
|
+
},
|
|
4384
|
+
{
|
|
4385
|
+
"type": "function",
|
|
4386
|
+
"name": "borrowETH",
|
|
4387
|
+
"inputs": [
|
|
4388
|
+
{
|
|
4389
|
+
"name": "pool",
|
|
4390
|
+
"type": "address",
|
|
4391
|
+
"internalType": "address"
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
"name": "amount",
|
|
4395
|
+
"type": "uint256",
|
|
4396
|
+
"internalType": "uint256"
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
"name": "referralCode",
|
|
4400
|
+
"type": "uint16",
|
|
4401
|
+
"internalType": "uint16"
|
|
4402
|
+
}
|
|
4403
|
+
],
|
|
4404
|
+
"outputs": [],
|
|
4405
|
+
"stateMutability": "nonpayable"
|
|
4406
|
+
},
|
|
4407
|
+
{
|
|
4408
|
+
"type": "function",
|
|
4409
|
+
"name": "depositETH",
|
|
4410
|
+
"inputs": [
|
|
4411
|
+
{
|
|
4412
|
+
"name": "pool",
|
|
4413
|
+
"type": "address",
|
|
4414
|
+
"internalType": "address"
|
|
4415
|
+
},
|
|
4416
|
+
{
|
|
4417
|
+
"name": "onBehalfOf",
|
|
4418
|
+
"type": "address",
|
|
4419
|
+
"internalType": "address"
|
|
4420
|
+
},
|
|
4421
|
+
{
|
|
4422
|
+
"name": "referralCode",
|
|
4423
|
+
"type": "uint16",
|
|
4424
|
+
"internalType": "uint16"
|
|
4425
|
+
}
|
|
4426
|
+
],
|
|
4427
|
+
"outputs": [],
|
|
4428
|
+
"stateMutability": "payable"
|
|
4429
|
+
},
|
|
4430
|
+
{
|
|
4431
|
+
"type": "function",
|
|
4432
|
+
"name": "repayETH",
|
|
4433
|
+
"inputs": [
|
|
4434
|
+
{
|
|
4435
|
+
"name": "pool",
|
|
4436
|
+
"type": "address",
|
|
4437
|
+
"internalType": "address"
|
|
4438
|
+
},
|
|
4439
|
+
{
|
|
4440
|
+
"name": "amount",
|
|
4441
|
+
"type": "uint256",
|
|
4442
|
+
"internalType": "uint256"
|
|
4443
|
+
},
|
|
4444
|
+
{
|
|
4445
|
+
"name": "onBehalfOf",
|
|
4446
|
+
"type": "address",
|
|
4447
|
+
"internalType": "address"
|
|
4448
|
+
}
|
|
4449
|
+
],
|
|
4450
|
+
"outputs": [],
|
|
4451
|
+
"stateMutability": "payable"
|
|
4452
|
+
},
|
|
4453
|
+
{
|
|
4454
|
+
"type": "function",
|
|
4455
|
+
"name": "withdrawETH",
|
|
4456
|
+
"inputs": [
|
|
4457
|
+
{
|
|
4458
|
+
"name": "pool",
|
|
4459
|
+
"type": "address",
|
|
4460
|
+
"internalType": "address"
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
"name": "amount",
|
|
4464
|
+
"type": "uint256",
|
|
4465
|
+
"internalType": "uint256"
|
|
4466
|
+
},
|
|
4467
|
+
{
|
|
4468
|
+
"name": "onBehalfOf",
|
|
4469
|
+
"type": "address",
|
|
4470
|
+
"internalType": "address"
|
|
4471
|
+
}
|
|
4472
|
+
],
|
|
4473
|
+
"outputs": [],
|
|
4474
|
+
"stateMutability": "nonpayable"
|
|
4475
|
+
},
|
|
4476
|
+
{
|
|
4477
|
+
"type": "function",
|
|
4478
|
+
"name": "withdrawETHWithPermit",
|
|
4479
|
+
"inputs": [
|
|
4480
|
+
{
|
|
4481
|
+
"name": "pool",
|
|
4482
|
+
"type": "address",
|
|
4483
|
+
"internalType": "address"
|
|
4484
|
+
},
|
|
4485
|
+
{
|
|
4486
|
+
"name": "amount",
|
|
4487
|
+
"type": "uint256",
|
|
4488
|
+
"internalType": "uint256"
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"name": "to",
|
|
4492
|
+
"type": "address",
|
|
4493
|
+
"internalType": "address"
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
"name": "deadline",
|
|
4497
|
+
"type": "uint256",
|
|
4498
|
+
"internalType": "uint256"
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
"name": "permitV",
|
|
4502
|
+
"type": "uint8",
|
|
4503
|
+
"internalType": "uint8"
|
|
4504
|
+
},
|
|
4505
|
+
{
|
|
4506
|
+
"name": "permitR",
|
|
4507
|
+
"type": "bytes32",
|
|
4508
|
+
"internalType": "bytes32"
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
"name": "permitS",
|
|
4512
|
+
"type": "bytes32",
|
|
4513
|
+
"internalType": "bytes32"
|
|
4514
|
+
}
|
|
4515
|
+
],
|
|
4516
|
+
"outputs": [],
|
|
4517
|
+
"stateMutability": "nonpayable"
|
|
4518
|
+
}
|
|
4519
|
+
];
|
|
4520
|
+
|
|
4521
|
+
// src/abis/Umbrella_IRewardsController.ts
|
|
4522
|
+
var Umbrella_IRewardsController_ABI = [
|
|
4523
|
+
{
|
|
4524
|
+
"type": "function",
|
|
4525
|
+
"name": "calculateCurrentEmission",
|
|
4526
|
+
"inputs": [
|
|
4527
|
+
{
|
|
4528
|
+
"name": "asset",
|
|
4529
|
+
"type": "address",
|
|
4530
|
+
"internalType": "address"
|
|
4531
|
+
},
|
|
4532
|
+
{
|
|
4533
|
+
"name": "reward",
|
|
4534
|
+
"type": "address",
|
|
4535
|
+
"internalType": "address"
|
|
4536
|
+
}
|
|
4537
|
+
],
|
|
4538
|
+
"outputs": [
|
|
4539
|
+
{
|
|
4540
|
+
"name": "emissionPerSecond",
|
|
4541
|
+
"type": "uint256",
|
|
4542
|
+
"internalType": "uint256"
|
|
4543
|
+
}
|
|
4544
|
+
],
|
|
4545
|
+
"stateMutability": "view"
|
|
4546
|
+
},
|
|
4547
|
+
{
|
|
4548
|
+
"type": "function",
|
|
4549
|
+
"name": "calculateCurrentEmissionScaled",
|
|
4550
|
+
"inputs": [
|
|
4551
|
+
{
|
|
4552
|
+
"name": "asset",
|
|
4553
|
+
"type": "address",
|
|
4554
|
+
"internalType": "address"
|
|
4555
|
+
},
|
|
4556
|
+
{
|
|
4557
|
+
"name": "reward",
|
|
4558
|
+
"type": "address",
|
|
4559
|
+
"internalType": "address"
|
|
4560
|
+
}
|
|
4561
|
+
],
|
|
4562
|
+
"outputs": [
|
|
4563
|
+
{
|
|
4564
|
+
"name": "emissionPerSecondScaled",
|
|
4565
|
+
"type": "uint256",
|
|
4566
|
+
"internalType": "uint256"
|
|
4567
|
+
}
|
|
4568
|
+
],
|
|
4569
|
+
"stateMutability": "view"
|
|
4570
|
+
},
|
|
4571
|
+
{
|
|
4572
|
+
"type": "function",
|
|
4573
|
+
"name": "calculateCurrentUserReward",
|
|
4574
|
+
"inputs": [
|
|
4575
|
+
{
|
|
4576
|
+
"name": "asset",
|
|
4577
|
+
"type": "address",
|
|
4578
|
+
"internalType": "address"
|
|
4579
|
+
},
|
|
4580
|
+
{
|
|
4581
|
+
"name": "reward",
|
|
4582
|
+
"type": "address",
|
|
4583
|
+
"internalType": "address"
|
|
4584
|
+
},
|
|
4585
|
+
{
|
|
4586
|
+
"name": "user",
|
|
4587
|
+
"type": "address",
|
|
4588
|
+
"internalType": "address"
|
|
4589
|
+
}
|
|
4590
|
+
],
|
|
4591
|
+
"outputs": [
|
|
4592
|
+
{
|
|
4593
|
+
"name": "rewardAccrued",
|
|
4594
|
+
"type": "uint256",
|
|
4595
|
+
"internalType": "uint256"
|
|
4596
|
+
}
|
|
4597
|
+
],
|
|
4598
|
+
"stateMutability": "view"
|
|
4599
|
+
},
|
|
4600
|
+
{
|
|
4601
|
+
"type": "function",
|
|
4602
|
+
"name": "calculateCurrentUserRewards",
|
|
4603
|
+
"inputs": [
|
|
4604
|
+
{
|
|
4605
|
+
"name": "asset",
|
|
4606
|
+
"type": "address",
|
|
4607
|
+
"internalType": "address"
|
|
4608
|
+
},
|
|
4609
|
+
{
|
|
4610
|
+
"name": "user",
|
|
4611
|
+
"type": "address",
|
|
4612
|
+
"internalType": "address"
|
|
4613
|
+
}
|
|
4614
|
+
],
|
|
4615
|
+
"outputs": [
|
|
4616
|
+
{
|
|
4617
|
+
"name": "rewards",
|
|
4618
|
+
"type": "address[]",
|
|
4619
|
+
"internalType": "address[]"
|
|
4620
|
+
},
|
|
4621
|
+
{
|
|
4622
|
+
"name": "rewardsAccrued",
|
|
4623
|
+
"type": "uint256[]",
|
|
4624
|
+
"internalType": "uint256[]"
|
|
4625
|
+
}
|
|
4626
|
+
],
|
|
4627
|
+
"stateMutability": "view"
|
|
4628
|
+
},
|
|
4629
|
+
{
|
|
4630
|
+
"type": "function",
|
|
4631
|
+
"name": "calculateRewardIndex",
|
|
4632
|
+
"inputs": [
|
|
4633
|
+
{
|
|
4634
|
+
"name": "asset",
|
|
4635
|
+
"type": "address",
|
|
4636
|
+
"internalType": "address"
|
|
4637
|
+
},
|
|
4638
|
+
{
|
|
4639
|
+
"name": "reward",
|
|
4640
|
+
"type": "address",
|
|
4641
|
+
"internalType": "address"
|
|
4642
|
+
}
|
|
4643
|
+
],
|
|
4644
|
+
"outputs": [
|
|
4645
|
+
{
|
|
4646
|
+
"name": "index",
|
|
4647
|
+
"type": "uint256",
|
|
4648
|
+
"internalType": "uint256"
|
|
4649
|
+
}
|
|
4650
|
+
],
|
|
4651
|
+
"stateMutability": "view"
|
|
4652
|
+
},
|
|
4653
|
+
{
|
|
4654
|
+
"type": "function",
|
|
4655
|
+
"name": "calculateRewardIndexes",
|
|
4656
|
+
"inputs": [
|
|
4657
|
+
{
|
|
4658
|
+
"name": "asset",
|
|
4659
|
+
"type": "address",
|
|
4660
|
+
"internalType": "address"
|
|
4661
|
+
}
|
|
4662
|
+
],
|
|
4663
|
+
"outputs": [
|
|
4664
|
+
{
|
|
4665
|
+
"name": "rewards",
|
|
4666
|
+
"type": "address[]",
|
|
4667
|
+
"internalType": "address[]"
|
|
4668
|
+
},
|
|
4669
|
+
{
|
|
4670
|
+
"name": "indexes",
|
|
4671
|
+
"type": "uint256[]",
|
|
4672
|
+
"internalType": "uint256[]"
|
|
4673
|
+
}
|
|
4674
|
+
],
|
|
4675
|
+
"stateMutability": "view"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"type": "function",
|
|
4679
|
+
"name": "claimAllRewards",
|
|
4680
|
+
"inputs": [
|
|
4681
|
+
{
|
|
4682
|
+
"name": "asset",
|
|
4683
|
+
"type": "address",
|
|
4684
|
+
"internalType": "address"
|
|
4685
|
+
},
|
|
4686
|
+
{
|
|
4687
|
+
"name": "receiver",
|
|
4688
|
+
"type": "address",
|
|
4689
|
+
"internalType": "address"
|
|
4690
|
+
}
|
|
4691
|
+
],
|
|
4692
|
+
"outputs": [
|
|
4693
|
+
{
|
|
4694
|
+
"name": "rewards",
|
|
4695
|
+
"type": "address[]",
|
|
4696
|
+
"internalType": "address[]"
|
|
4697
|
+
},
|
|
4698
|
+
{
|
|
4699
|
+
"name": "amounts",
|
|
4700
|
+
"type": "uint256[]",
|
|
4701
|
+
"internalType": "uint256[]"
|
|
4702
|
+
}
|
|
4703
|
+
],
|
|
4704
|
+
"stateMutability": "nonpayable"
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
"type": "function",
|
|
4708
|
+
"name": "claimAllRewards",
|
|
4709
|
+
"inputs": [
|
|
4710
|
+
{
|
|
4711
|
+
"name": "assets",
|
|
4712
|
+
"type": "address[]",
|
|
4713
|
+
"internalType": "address[]"
|
|
4714
|
+
},
|
|
4715
|
+
{
|
|
4716
|
+
"name": "receiver",
|
|
4717
|
+
"type": "address",
|
|
4718
|
+
"internalType": "address"
|
|
4719
|
+
}
|
|
4720
|
+
],
|
|
4721
|
+
"outputs": [
|
|
4722
|
+
{
|
|
4723
|
+
"name": "rewards",
|
|
4724
|
+
"type": "address[][]",
|
|
4725
|
+
"internalType": "address[][]"
|
|
4726
|
+
},
|
|
4727
|
+
{
|
|
4728
|
+
"name": "amounts",
|
|
4729
|
+
"type": "uint256[][]",
|
|
4730
|
+
"internalType": "uint256[][]"
|
|
4731
|
+
}
|
|
4732
|
+
],
|
|
4733
|
+
"stateMutability": "nonpayable"
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"type": "function",
|
|
4737
|
+
"name": "claimAllRewardsOnBehalf",
|
|
4738
|
+
"inputs": [
|
|
4739
|
+
{
|
|
4740
|
+
"name": "assets",
|
|
4741
|
+
"type": "address[]",
|
|
4742
|
+
"internalType": "address[]"
|
|
4743
|
+
},
|
|
4744
|
+
{
|
|
4745
|
+
"name": "user",
|
|
4746
|
+
"type": "address",
|
|
4747
|
+
"internalType": "address"
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
"name": "receiver",
|
|
4751
|
+
"type": "address",
|
|
4752
|
+
"internalType": "address"
|
|
4753
|
+
}
|
|
4754
|
+
],
|
|
4755
|
+
"outputs": [
|
|
4756
|
+
{
|
|
4757
|
+
"name": "rewards",
|
|
4758
|
+
"type": "address[][]",
|
|
4759
|
+
"internalType": "address[][]"
|
|
4760
|
+
},
|
|
4761
|
+
{
|
|
4762
|
+
"name": "amounts",
|
|
4763
|
+
"type": "uint256[][]",
|
|
4764
|
+
"internalType": "uint256[][]"
|
|
4765
|
+
}
|
|
4766
|
+
],
|
|
4767
|
+
"stateMutability": "nonpayable"
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
"type": "function",
|
|
4771
|
+
"name": "claimAllRewardsOnBehalf",
|
|
4772
|
+
"inputs": [
|
|
4773
|
+
{
|
|
4774
|
+
"name": "asset",
|
|
4775
|
+
"type": "address",
|
|
4776
|
+
"internalType": "address"
|
|
4777
|
+
},
|
|
4778
|
+
{
|
|
4779
|
+
"name": "user",
|
|
4780
|
+
"type": "address",
|
|
4781
|
+
"internalType": "address"
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"name": "receiver",
|
|
4785
|
+
"type": "address",
|
|
4786
|
+
"internalType": "address"
|
|
4787
|
+
}
|
|
4788
|
+
],
|
|
4789
|
+
"outputs": [
|
|
4790
|
+
{
|
|
4791
|
+
"name": "rewards",
|
|
4792
|
+
"type": "address[]",
|
|
4793
|
+
"internalType": "address[]"
|
|
4794
|
+
},
|
|
4795
|
+
{
|
|
4796
|
+
"name": "amounts",
|
|
4797
|
+
"type": "uint256[]",
|
|
4798
|
+
"internalType": "uint256[]"
|
|
4799
|
+
}
|
|
4800
|
+
],
|
|
4801
|
+
"stateMutability": "nonpayable"
|
|
4802
|
+
},
|
|
4803
|
+
{
|
|
4804
|
+
"type": "function",
|
|
4805
|
+
"name": "claimAllRewardsPermit",
|
|
4806
|
+
"inputs": [
|
|
4807
|
+
{
|
|
4808
|
+
"name": "asset",
|
|
4809
|
+
"type": "address",
|
|
4810
|
+
"internalType": "address"
|
|
4811
|
+
},
|
|
4812
|
+
{
|
|
4813
|
+
"name": "user",
|
|
4814
|
+
"type": "address",
|
|
4815
|
+
"internalType": "address"
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"name": "receiver",
|
|
4819
|
+
"type": "address",
|
|
4820
|
+
"internalType": "address"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
"name": "deadline",
|
|
4824
|
+
"type": "uint256",
|
|
4825
|
+
"internalType": "uint256"
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
"name": "sig",
|
|
4829
|
+
"type": "tuple",
|
|
4830
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4831
|
+
"components": [
|
|
4832
|
+
{
|
|
4833
|
+
"name": "v",
|
|
4834
|
+
"type": "uint8",
|
|
4835
|
+
"internalType": "uint8"
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
"name": "r",
|
|
4839
|
+
"type": "bytes32",
|
|
4840
|
+
"internalType": "bytes32"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
"name": "s",
|
|
4844
|
+
"type": "bytes32",
|
|
4845
|
+
"internalType": "bytes32"
|
|
4846
|
+
}
|
|
4847
|
+
]
|
|
4848
|
+
}
|
|
4849
|
+
],
|
|
4850
|
+
"outputs": [
|
|
4851
|
+
{
|
|
4852
|
+
"name": "rewards",
|
|
4853
|
+
"type": "address[]",
|
|
4854
|
+
"internalType": "address[]"
|
|
4855
|
+
},
|
|
4856
|
+
{
|
|
4857
|
+
"name": "amounts",
|
|
4858
|
+
"type": "uint256[]",
|
|
4859
|
+
"internalType": "uint256[]"
|
|
4860
|
+
}
|
|
4861
|
+
],
|
|
4862
|
+
"stateMutability": "nonpayable"
|
|
4863
|
+
},
|
|
4864
|
+
{
|
|
4865
|
+
"type": "function",
|
|
4866
|
+
"name": "claimSelectedRewards",
|
|
4867
|
+
"inputs": [
|
|
4868
|
+
{
|
|
4869
|
+
"name": "assets",
|
|
4870
|
+
"type": "address[]",
|
|
4871
|
+
"internalType": "address[]"
|
|
4872
|
+
},
|
|
4873
|
+
{
|
|
4874
|
+
"name": "rewards",
|
|
4875
|
+
"type": "address[][]",
|
|
4876
|
+
"internalType": "address[][]"
|
|
4877
|
+
},
|
|
4878
|
+
{
|
|
4879
|
+
"name": "receiver",
|
|
4880
|
+
"type": "address",
|
|
4881
|
+
"internalType": "address"
|
|
4882
|
+
}
|
|
4883
|
+
],
|
|
4884
|
+
"outputs": [
|
|
4885
|
+
{
|
|
4886
|
+
"name": "",
|
|
4887
|
+
"type": "uint256[][]",
|
|
4888
|
+
"internalType": "uint256[][]"
|
|
4889
|
+
}
|
|
4890
|
+
],
|
|
4891
|
+
"stateMutability": "nonpayable"
|
|
4892
|
+
},
|
|
4893
|
+
{
|
|
4894
|
+
"type": "function",
|
|
4895
|
+
"name": "claimSelectedRewards",
|
|
4896
|
+
"inputs": [
|
|
4897
|
+
{
|
|
4898
|
+
"name": "asset",
|
|
4899
|
+
"type": "address",
|
|
4900
|
+
"internalType": "address"
|
|
4901
|
+
},
|
|
4902
|
+
{
|
|
4903
|
+
"name": "rewards",
|
|
4904
|
+
"type": "address[]",
|
|
4905
|
+
"internalType": "address[]"
|
|
4906
|
+
},
|
|
4907
|
+
{
|
|
4908
|
+
"name": "receiver",
|
|
4909
|
+
"type": "address",
|
|
4910
|
+
"internalType": "address"
|
|
4911
|
+
}
|
|
4912
|
+
],
|
|
4913
|
+
"outputs": [
|
|
4914
|
+
{
|
|
4915
|
+
"name": "amounts",
|
|
4916
|
+
"type": "uint256[]",
|
|
4917
|
+
"internalType": "uint256[]"
|
|
4918
|
+
}
|
|
4919
|
+
],
|
|
4920
|
+
"stateMutability": "nonpayable"
|
|
4921
|
+
},
|
|
4922
|
+
{
|
|
4923
|
+
"type": "function",
|
|
4924
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4925
|
+
"inputs": [
|
|
4926
|
+
{
|
|
4927
|
+
"name": "asset",
|
|
4928
|
+
"type": "address",
|
|
4929
|
+
"internalType": "address"
|
|
4930
|
+
},
|
|
4931
|
+
{
|
|
4932
|
+
"name": "rewards",
|
|
4933
|
+
"type": "address[]",
|
|
4934
|
+
"internalType": "address[]"
|
|
4935
|
+
},
|
|
4936
|
+
{
|
|
4937
|
+
"name": "user",
|
|
4938
|
+
"type": "address",
|
|
4939
|
+
"internalType": "address"
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
"name": "receiver",
|
|
4943
|
+
"type": "address",
|
|
4944
|
+
"internalType": "address"
|
|
4945
|
+
}
|
|
4946
|
+
],
|
|
4947
|
+
"outputs": [
|
|
4948
|
+
{
|
|
4949
|
+
"name": "amounts",
|
|
4950
|
+
"type": "uint256[]",
|
|
4951
|
+
"internalType": "uint256[]"
|
|
4952
|
+
}
|
|
4953
|
+
],
|
|
4954
|
+
"stateMutability": "nonpayable"
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
"type": "function",
|
|
4958
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4959
|
+
"inputs": [
|
|
4960
|
+
{
|
|
4961
|
+
"name": "assets",
|
|
4962
|
+
"type": "address[]",
|
|
4963
|
+
"internalType": "address[]"
|
|
4964
|
+
},
|
|
4965
|
+
{
|
|
4966
|
+
"name": "rewards",
|
|
4967
|
+
"type": "address[][]",
|
|
4968
|
+
"internalType": "address[][]"
|
|
4969
|
+
},
|
|
4970
|
+
{
|
|
4971
|
+
"name": "user",
|
|
4972
|
+
"type": "address",
|
|
4973
|
+
"internalType": "address"
|
|
4974
|
+
},
|
|
4975
|
+
{
|
|
4976
|
+
"name": "receiver",
|
|
4977
|
+
"type": "address",
|
|
4978
|
+
"internalType": "address"
|
|
4979
|
+
}
|
|
4980
|
+
],
|
|
4981
|
+
"outputs": [
|
|
4982
|
+
{
|
|
4983
|
+
"name": "",
|
|
4984
|
+
"type": "uint256[][]",
|
|
4985
|
+
"internalType": "uint256[][]"
|
|
4986
|
+
}
|
|
4987
|
+
],
|
|
4988
|
+
"stateMutability": "nonpayable"
|
|
4989
|
+
},
|
|
4990
|
+
{
|
|
4991
|
+
"type": "function",
|
|
4992
|
+
"name": "claimSelectedRewardsPermit",
|
|
4993
|
+
"inputs": [
|
|
4994
|
+
{
|
|
4995
|
+
"name": "asset",
|
|
4996
|
+
"type": "address",
|
|
4997
|
+
"internalType": "address"
|
|
4998
|
+
},
|
|
4999
|
+
{
|
|
5000
|
+
"name": "rewards",
|
|
5001
|
+
"type": "address[]",
|
|
5002
|
+
"internalType": "address[]"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "user",
|
|
5006
|
+
"type": "address",
|
|
5007
|
+
"internalType": "address"
|
|
5008
|
+
},
|
|
5009
|
+
{
|
|
5010
|
+
"name": "receiver",
|
|
5011
|
+
"type": "address",
|
|
5012
|
+
"internalType": "address"
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"name": "deadline",
|
|
5016
|
+
"type": "uint256",
|
|
5017
|
+
"internalType": "uint256"
|
|
5018
|
+
},
|
|
5019
|
+
{
|
|
5020
|
+
"name": "sig",
|
|
5021
|
+
"type": "tuple",
|
|
5022
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
5023
|
+
"components": [
|
|
5024
|
+
{
|
|
5025
|
+
"name": "v",
|
|
5026
|
+
"type": "uint8",
|
|
5027
|
+
"internalType": "uint8"
|
|
5028
|
+
},
|
|
5029
|
+
{
|
|
5030
|
+
"name": "r",
|
|
5031
|
+
"type": "bytes32",
|
|
5032
|
+
"internalType": "bytes32"
|
|
5033
|
+
},
|
|
5034
|
+
{
|
|
5035
|
+
"name": "s",
|
|
5036
|
+
"type": "bytes32",
|
|
5037
|
+
"internalType": "bytes32"
|
|
5038
|
+
}
|
|
5039
|
+
]
|
|
5040
|
+
}
|
|
5041
|
+
],
|
|
5042
|
+
"outputs": [
|
|
5043
|
+
{
|
|
5044
|
+
"name": "amounts",
|
|
5045
|
+
"type": "uint256[]",
|
|
5046
|
+
"internalType": "uint256[]"
|
|
5047
|
+
}
|
|
5048
|
+
],
|
|
5049
|
+
"stateMutability": "nonpayable"
|
|
5050
|
+
},
|
|
5051
|
+
{
|
|
5052
|
+
"type": "function",
|
|
5053
|
+
"name": "configureAssetWithRewards",
|
|
5054
|
+
"inputs": [
|
|
5055
|
+
{
|
|
5056
|
+
"name": "asset",
|
|
5057
|
+
"type": "address",
|
|
5058
|
+
"internalType": "address"
|
|
5059
|
+
},
|
|
5060
|
+
{
|
|
5061
|
+
"name": "targetLiquidity",
|
|
5062
|
+
"type": "uint256",
|
|
5063
|
+
"internalType": "uint256"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
"name": "rewardConfigs",
|
|
5067
|
+
"type": "tuple[]",
|
|
5068
|
+
"internalType": "struct IRewardsStructs.RewardSetupConfig[]",
|
|
5069
|
+
"components": [
|
|
5070
|
+
{
|
|
5071
|
+
"name": "reward",
|
|
5072
|
+
"type": "address",
|
|
5073
|
+
"internalType": "address"
|
|
5074
|
+
},
|
|
5075
|
+
{
|
|
5076
|
+
"name": "rewardPayer",
|
|
5077
|
+
"type": "address",
|
|
5078
|
+
"internalType": "address"
|
|
5079
|
+
},
|
|
5080
|
+
{
|
|
5081
|
+
"name": "maxEmissionPerSecond",
|
|
5082
|
+
"type": "uint256",
|
|
5083
|
+
"internalType": "uint256"
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
"name": "distributionEnd",
|
|
5087
|
+
"type": "uint256",
|
|
5088
|
+
"internalType": "uint256"
|
|
5089
|
+
}
|
|
5090
|
+
]
|
|
5091
|
+
}
|
|
5092
|
+
],
|
|
5093
|
+
"outputs": [],
|
|
5094
|
+
"stateMutability": "nonpayable"
|
|
5095
|
+
},
|
|
5096
|
+
{
|
|
5097
|
+
"type": "function",
|
|
5098
|
+
"name": "configureRewards",
|
|
5099
|
+
"inputs": [
|
|
5100
|
+
{
|
|
5101
|
+
"name": "asset",
|
|
5102
|
+
"type": "address",
|
|
5103
|
+
"internalType": "address"
|
|
5104
|
+
},
|
|
5105
|
+
{
|
|
5106
|
+
"name": "rewardConfigs",
|
|
5107
|
+
"type": "tuple[]",
|
|
5108
|
+
"internalType": "struct IRewardsStructs.RewardSetupConfig[]",
|
|
5109
|
+
"components": [
|
|
5110
|
+
{
|
|
5111
|
+
"name": "reward",
|
|
5112
|
+
"type": "address",
|
|
5113
|
+
"internalType": "address"
|
|
5114
|
+
},
|
|
5115
|
+
{
|
|
5116
|
+
"name": "rewardPayer",
|
|
5117
|
+
"type": "address",
|
|
5118
|
+
"internalType": "address"
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
"name": "maxEmissionPerSecond",
|
|
5122
|
+
"type": "uint256",
|
|
5123
|
+
"internalType": "uint256"
|
|
5124
|
+
},
|
|
5125
|
+
{
|
|
5126
|
+
"name": "distributionEnd",
|
|
5127
|
+
"type": "uint256",
|
|
5128
|
+
"internalType": "uint256"
|
|
5129
|
+
}
|
|
5130
|
+
]
|
|
5131
|
+
}
|
|
5132
|
+
],
|
|
5133
|
+
"outputs": [],
|
|
5134
|
+
"stateMutability": "nonpayable"
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
"type": "function",
|
|
5138
|
+
"name": "getAllAssets",
|
|
5139
|
+
"inputs": [],
|
|
5140
|
+
"outputs": [
|
|
5141
|
+
{
|
|
5142
|
+
"name": "assets",
|
|
5143
|
+
"type": "address[]",
|
|
5144
|
+
"internalType": "address[]"
|
|
5145
|
+
}
|
|
5146
|
+
],
|
|
5147
|
+
"stateMutability": "view"
|
|
5148
|
+
},
|
|
5149
|
+
{
|
|
5150
|
+
"type": "function",
|
|
5151
|
+
"name": "getAllRewards",
|
|
5152
|
+
"inputs": [
|
|
5153
|
+
{
|
|
5154
|
+
"name": "asset",
|
|
5155
|
+
"type": "address",
|
|
5156
|
+
"internalType": "address"
|
|
5157
|
+
}
|
|
5158
|
+
],
|
|
5159
|
+
"outputs": [
|
|
5160
|
+
{
|
|
5161
|
+
"name": "rewards",
|
|
5162
|
+
"type": "address[]",
|
|
5163
|
+
"internalType": "address[]"
|
|
5164
|
+
}
|
|
5165
|
+
],
|
|
5166
|
+
"stateMutability": "view"
|
|
5167
|
+
},
|
|
5168
|
+
{
|
|
5169
|
+
"type": "function",
|
|
5170
|
+
"name": "getAssetAndRewardsData",
|
|
5171
|
+
"inputs": [
|
|
5172
|
+
{
|
|
5173
|
+
"name": "asset",
|
|
5174
|
+
"type": "address",
|
|
5175
|
+
"internalType": "address"
|
|
5176
|
+
}
|
|
5177
|
+
],
|
|
5178
|
+
"outputs": [
|
|
5179
|
+
{
|
|
5180
|
+
"name": "assetData",
|
|
5181
|
+
"type": "tuple",
|
|
5182
|
+
"internalType": "struct IRewardsStructs.AssetDataExternal",
|
|
5183
|
+
"components": [
|
|
5184
|
+
{
|
|
5185
|
+
"name": "targetLiquidity",
|
|
5186
|
+
"type": "uint256",
|
|
5187
|
+
"internalType": "uint256"
|
|
5188
|
+
},
|
|
5189
|
+
{
|
|
5190
|
+
"name": "lastUpdateTimestamp",
|
|
5191
|
+
"type": "uint256",
|
|
5192
|
+
"internalType": "uint256"
|
|
5193
|
+
}
|
|
5194
|
+
]
|
|
5195
|
+
},
|
|
5196
|
+
{
|
|
5197
|
+
"name": "rewardsData",
|
|
5198
|
+
"type": "tuple[]",
|
|
5199
|
+
"internalType": "struct IRewardsStructs.RewardDataExternal[]",
|
|
5200
|
+
"components": [
|
|
5201
|
+
{
|
|
5202
|
+
"name": "addr",
|
|
5203
|
+
"type": "address",
|
|
5204
|
+
"internalType": "address"
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"name": "index",
|
|
5208
|
+
"type": "uint256",
|
|
5209
|
+
"internalType": "uint256"
|
|
5210
|
+
},
|
|
5211
|
+
{
|
|
5212
|
+
"name": "maxEmissionPerSecond",
|
|
5213
|
+
"type": "uint256",
|
|
5214
|
+
"internalType": "uint256"
|
|
5215
|
+
},
|
|
5216
|
+
{
|
|
5217
|
+
"name": "distributionEnd",
|
|
5218
|
+
"type": "uint256",
|
|
5219
|
+
"internalType": "uint256"
|
|
5220
|
+
}
|
|
5221
|
+
]
|
|
5222
|
+
}
|
|
5223
|
+
],
|
|
5224
|
+
"stateMutability": "view"
|
|
5225
|
+
},
|
|
5226
|
+
{
|
|
5227
|
+
"type": "function",
|
|
5228
|
+
"name": "getAssetData",
|
|
5229
|
+
"inputs": [
|
|
5230
|
+
{
|
|
5231
|
+
"name": "asset",
|
|
5232
|
+
"type": "address",
|
|
5233
|
+
"internalType": "address"
|
|
5234
|
+
}
|
|
5235
|
+
],
|
|
5236
|
+
"outputs": [
|
|
5237
|
+
{
|
|
5238
|
+
"name": "assetData",
|
|
5239
|
+
"type": "tuple",
|
|
5240
|
+
"internalType": "struct IRewardsStructs.AssetDataExternal",
|
|
5241
|
+
"components": [
|
|
5242
|
+
{
|
|
5243
|
+
"name": "targetLiquidity",
|
|
5244
|
+
"type": "uint256",
|
|
5245
|
+
"internalType": "uint256"
|
|
5246
|
+
},
|
|
5247
|
+
{
|
|
5248
|
+
"name": "lastUpdateTimestamp",
|
|
5249
|
+
"type": "uint256",
|
|
5250
|
+
"internalType": "uint256"
|
|
5251
|
+
}
|
|
5252
|
+
]
|
|
5253
|
+
}
|
|
5254
|
+
],
|
|
5255
|
+
"stateMutability": "view"
|
|
5256
|
+
},
|
|
5257
|
+
{
|
|
5258
|
+
"type": "function",
|
|
5259
|
+
"name": "getEmissionData",
|
|
5260
|
+
"inputs": [
|
|
5261
|
+
{
|
|
5262
|
+
"name": "asset",
|
|
5263
|
+
"type": "address",
|
|
5264
|
+
"internalType": "address"
|
|
5265
|
+
},
|
|
5266
|
+
{
|
|
5267
|
+
"name": "reward",
|
|
5268
|
+
"type": "address",
|
|
5269
|
+
"internalType": "address"
|
|
5270
|
+
}
|
|
5271
|
+
],
|
|
5272
|
+
"outputs": [
|
|
5273
|
+
{
|
|
5274
|
+
"name": "emissionData",
|
|
5275
|
+
"type": "tuple",
|
|
5276
|
+
"internalType": "struct IRewardsStructs.EmissionData",
|
|
5277
|
+
"components": [
|
|
5278
|
+
{
|
|
5279
|
+
"name": "targetLiquidity",
|
|
5280
|
+
"type": "uint256",
|
|
5281
|
+
"internalType": "uint256"
|
|
5282
|
+
},
|
|
5283
|
+
{
|
|
5284
|
+
"name": "targetLiquidityExcess",
|
|
5285
|
+
"type": "uint256",
|
|
5286
|
+
"internalType": "uint256"
|
|
5287
|
+
},
|
|
5288
|
+
{
|
|
5289
|
+
"name": "maxEmission",
|
|
5290
|
+
"type": "uint256",
|
|
5291
|
+
"internalType": "uint256"
|
|
5292
|
+
},
|
|
5293
|
+
{
|
|
5294
|
+
"name": "flatEmission",
|
|
5295
|
+
"type": "uint256",
|
|
5296
|
+
"internalType": "uint256"
|
|
5297
|
+
}
|
|
5298
|
+
]
|
|
5299
|
+
}
|
|
5300
|
+
],
|
|
5301
|
+
"stateMutability": "view"
|
|
5302
|
+
},
|
|
5303
|
+
{
|
|
5304
|
+
"type": "function",
|
|
5305
|
+
"name": "getRewardData",
|
|
5306
|
+
"inputs": [
|
|
3857
5307
|
{
|
|
3858
|
-
"name": "",
|
|
5308
|
+
"name": "asset",
|
|
3859
5309
|
"type": "address",
|
|
3860
|
-
"internalType": "
|
|
5310
|
+
"internalType": "address"
|
|
5311
|
+
},
|
|
5312
|
+
{
|
|
5313
|
+
"name": "reward",
|
|
5314
|
+
"type": "address",
|
|
5315
|
+
"internalType": "address"
|
|
5316
|
+
}
|
|
5317
|
+
],
|
|
5318
|
+
"outputs": [
|
|
5319
|
+
{
|
|
5320
|
+
"name": "rewardData",
|
|
5321
|
+
"type": "tuple",
|
|
5322
|
+
"internalType": "struct IRewardsStructs.RewardDataExternal",
|
|
5323
|
+
"components": [
|
|
5324
|
+
{
|
|
5325
|
+
"name": "addr",
|
|
5326
|
+
"type": "address",
|
|
5327
|
+
"internalType": "address"
|
|
5328
|
+
},
|
|
5329
|
+
{
|
|
5330
|
+
"name": "index",
|
|
5331
|
+
"type": "uint256",
|
|
5332
|
+
"internalType": "uint256"
|
|
5333
|
+
},
|
|
5334
|
+
{
|
|
5335
|
+
"name": "maxEmissionPerSecond",
|
|
5336
|
+
"type": "uint256",
|
|
5337
|
+
"internalType": "uint256"
|
|
5338
|
+
},
|
|
5339
|
+
{
|
|
5340
|
+
"name": "distributionEnd",
|
|
5341
|
+
"type": "uint256",
|
|
5342
|
+
"internalType": "uint256"
|
|
5343
|
+
}
|
|
5344
|
+
]
|
|
3861
5345
|
}
|
|
3862
5346
|
],
|
|
3863
5347
|
"stateMutability": "view"
|
|
3864
5348
|
},
|
|
3865
5349
|
{
|
|
3866
5350
|
"type": "function",
|
|
3867
|
-
"name": "
|
|
3868
|
-
"inputs": [
|
|
5351
|
+
"name": "getUserDataByAsset",
|
|
5352
|
+
"inputs": [
|
|
5353
|
+
{
|
|
5354
|
+
"name": "asset",
|
|
5355
|
+
"type": "address",
|
|
5356
|
+
"internalType": "address"
|
|
5357
|
+
},
|
|
5358
|
+
{
|
|
5359
|
+
"name": "user",
|
|
5360
|
+
"type": "address",
|
|
5361
|
+
"internalType": "address"
|
|
5362
|
+
}
|
|
5363
|
+
],
|
|
3869
5364
|
"outputs": [
|
|
3870
5365
|
{
|
|
3871
|
-
"name": "",
|
|
5366
|
+
"name": "rewards",
|
|
5367
|
+
"type": "address[]",
|
|
5368
|
+
"internalType": "address[]"
|
|
5369
|
+
},
|
|
5370
|
+
{
|
|
5371
|
+
"name": "userData",
|
|
5372
|
+
"type": "tuple[]",
|
|
5373
|
+
"internalType": "struct IRewardsStructs.UserDataExternal[]",
|
|
5374
|
+
"components": [
|
|
5375
|
+
{
|
|
5376
|
+
"name": "index",
|
|
5377
|
+
"type": "uint256",
|
|
5378
|
+
"internalType": "uint256"
|
|
5379
|
+
},
|
|
5380
|
+
{
|
|
5381
|
+
"name": "accrued",
|
|
5382
|
+
"type": "uint256",
|
|
5383
|
+
"internalType": "uint256"
|
|
5384
|
+
}
|
|
5385
|
+
]
|
|
5386
|
+
}
|
|
5387
|
+
],
|
|
5388
|
+
"stateMutability": "view"
|
|
5389
|
+
},
|
|
5390
|
+
{
|
|
5391
|
+
"type": "function",
|
|
5392
|
+
"name": "getUserDataByReward",
|
|
5393
|
+
"inputs": [
|
|
5394
|
+
{
|
|
5395
|
+
"name": "asset",
|
|
3872
5396
|
"type": "address",
|
|
3873
|
-
"internalType": "
|
|
5397
|
+
"internalType": "address"
|
|
5398
|
+
},
|
|
5399
|
+
{
|
|
5400
|
+
"name": "reward",
|
|
5401
|
+
"type": "address",
|
|
5402
|
+
"internalType": "address"
|
|
5403
|
+
},
|
|
5404
|
+
{
|
|
5405
|
+
"name": "user",
|
|
5406
|
+
"type": "address",
|
|
5407
|
+
"internalType": "address"
|
|
5408
|
+
}
|
|
5409
|
+
],
|
|
5410
|
+
"outputs": [
|
|
5411
|
+
{
|
|
5412
|
+
"name": "data",
|
|
5413
|
+
"type": "tuple",
|
|
5414
|
+
"internalType": "struct IRewardsStructs.UserDataExternal",
|
|
5415
|
+
"components": [
|
|
5416
|
+
{
|
|
5417
|
+
"name": "index",
|
|
5418
|
+
"type": "uint256",
|
|
5419
|
+
"internalType": "uint256"
|
|
5420
|
+
},
|
|
5421
|
+
{
|
|
5422
|
+
"name": "accrued",
|
|
5423
|
+
"type": "uint256",
|
|
5424
|
+
"internalType": "uint256"
|
|
5425
|
+
}
|
|
5426
|
+
]
|
|
3874
5427
|
}
|
|
3875
5428
|
],
|
|
3876
5429
|
"stateMutability": "view"
|
|
3877
5430
|
},
|
|
3878
5431
|
{
|
|
3879
5432
|
"type": "function",
|
|
3880
|
-
"name": "
|
|
5433
|
+
"name": "handleAction",
|
|
3881
5434
|
"inputs": [
|
|
3882
5435
|
{
|
|
3883
|
-
"name": "
|
|
5436
|
+
"name": "totalSupply",
|
|
5437
|
+
"type": "uint256",
|
|
5438
|
+
"internalType": "uint256"
|
|
5439
|
+
},
|
|
5440
|
+
{
|
|
5441
|
+
"name": "totalAssets",
|
|
5442
|
+
"type": "uint256",
|
|
5443
|
+
"internalType": "uint256"
|
|
5444
|
+
},
|
|
5445
|
+
{
|
|
5446
|
+
"name": "user",
|
|
3884
5447
|
"type": "address",
|
|
3885
5448
|
"internalType": "address"
|
|
3886
5449
|
},
|
|
3887
5450
|
{
|
|
3888
|
-
"name": "
|
|
5451
|
+
"name": "userBalance",
|
|
3889
5452
|
"type": "uint256",
|
|
3890
5453
|
"internalType": "uint256"
|
|
5454
|
+
}
|
|
5455
|
+
],
|
|
5456
|
+
"outputs": [],
|
|
5457
|
+
"stateMutability": "nonpayable"
|
|
5458
|
+
},
|
|
5459
|
+
{
|
|
5460
|
+
"type": "function",
|
|
5461
|
+
"name": "setClaimer",
|
|
5462
|
+
"inputs": [
|
|
5463
|
+
{
|
|
5464
|
+
"name": "claimer",
|
|
5465
|
+
"type": "address",
|
|
5466
|
+
"internalType": "address"
|
|
3891
5467
|
},
|
|
3892
5468
|
{
|
|
3893
|
-
"name": "
|
|
3894
|
-
"type": "
|
|
3895
|
-
"internalType": "
|
|
5469
|
+
"name": "flag",
|
|
5470
|
+
"type": "bool",
|
|
5471
|
+
"internalType": "bool"
|
|
3896
5472
|
}
|
|
3897
5473
|
],
|
|
3898
5474
|
"outputs": [],
|
|
@@ -3900,115 +5476,361 @@ var IWrappedTokenGatewayV3_ABI = [
|
|
|
3900
5476
|
},
|
|
3901
5477
|
{
|
|
3902
5478
|
"type": "function",
|
|
3903
|
-
"name": "
|
|
5479
|
+
"name": "setClaimer",
|
|
3904
5480
|
"inputs": [
|
|
3905
5481
|
{
|
|
3906
|
-
"name": "
|
|
5482
|
+
"name": "user",
|
|
3907
5483
|
"type": "address",
|
|
3908
5484
|
"internalType": "address"
|
|
3909
5485
|
},
|
|
3910
5486
|
{
|
|
3911
|
-
"name": "
|
|
5487
|
+
"name": "claimer",
|
|
3912
5488
|
"type": "address",
|
|
3913
5489
|
"internalType": "address"
|
|
3914
5490
|
},
|
|
3915
5491
|
{
|
|
3916
|
-
"name": "
|
|
3917
|
-
"type": "
|
|
3918
|
-
"internalType": "
|
|
5492
|
+
"name": "flag",
|
|
5493
|
+
"type": "bool",
|
|
5494
|
+
"internalType": "bool"
|
|
3919
5495
|
}
|
|
3920
5496
|
],
|
|
3921
5497
|
"outputs": [],
|
|
3922
|
-
"stateMutability": "
|
|
5498
|
+
"stateMutability": "nonpayable"
|
|
3923
5499
|
},
|
|
3924
5500
|
{
|
|
3925
5501
|
"type": "function",
|
|
3926
|
-
"name": "
|
|
5502
|
+
"name": "updateAsset",
|
|
3927
5503
|
"inputs": [
|
|
3928
5504
|
{
|
|
3929
|
-
"name": "
|
|
5505
|
+
"name": "asset",
|
|
5506
|
+
"type": "address",
|
|
5507
|
+
"internalType": "address"
|
|
5508
|
+
}
|
|
5509
|
+
],
|
|
5510
|
+
"outputs": [],
|
|
5511
|
+
"stateMutability": "nonpayable"
|
|
5512
|
+
},
|
|
5513
|
+
{
|
|
5514
|
+
"type": "event",
|
|
5515
|
+
"name": "AssetInitialized",
|
|
5516
|
+
"inputs": [
|
|
5517
|
+
{
|
|
5518
|
+
"name": "asset",
|
|
5519
|
+
"type": "address",
|
|
5520
|
+
"indexed": true,
|
|
5521
|
+
"internalType": "address"
|
|
5522
|
+
}
|
|
5523
|
+
],
|
|
5524
|
+
"anonymous": false
|
|
5525
|
+
},
|
|
5526
|
+
{
|
|
5527
|
+
"type": "event",
|
|
5528
|
+
"name": "ClaimerSet",
|
|
5529
|
+
"inputs": [
|
|
5530
|
+
{
|
|
5531
|
+
"name": "user",
|
|
3930
5532
|
"type": "address",
|
|
5533
|
+
"indexed": true,
|
|
3931
5534
|
"internalType": "address"
|
|
3932
5535
|
},
|
|
3933
5536
|
{
|
|
3934
|
-
"name": "
|
|
5537
|
+
"name": "claimer",
|
|
5538
|
+
"type": "address",
|
|
5539
|
+
"indexed": true,
|
|
5540
|
+
"internalType": "address"
|
|
5541
|
+
},
|
|
5542
|
+
{
|
|
5543
|
+
"name": "caller",
|
|
5544
|
+
"type": "address",
|
|
5545
|
+
"indexed": true,
|
|
5546
|
+
"internalType": "address"
|
|
5547
|
+
},
|
|
5548
|
+
{
|
|
5549
|
+
"name": "flag",
|
|
5550
|
+
"type": "bool",
|
|
5551
|
+
"indexed": false,
|
|
5552
|
+
"internalType": "bool"
|
|
5553
|
+
}
|
|
5554
|
+
],
|
|
5555
|
+
"anonymous": false
|
|
5556
|
+
},
|
|
5557
|
+
{
|
|
5558
|
+
"type": "event",
|
|
5559
|
+
"name": "LastTimestampUpdated",
|
|
5560
|
+
"inputs": [
|
|
5561
|
+
{
|
|
5562
|
+
"name": "asset",
|
|
5563
|
+
"type": "address",
|
|
5564
|
+
"indexed": true,
|
|
5565
|
+
"internalType": "address"
|
|
5566
|
+
},
|
|
5567
|
+
{
|
|
5568
|
+
"name": "newTimestamp",
|
|
3935
5569
|
"type": "uint256",
|
|
5570
|
+
"indexed": false,
|
|
3936
5571
|
"internalType": "uint256"
|
|
5572
|
+
}
|
|
5573
|
+
],
|
|
5574
|
+
"anonymous": false
|
|
5575
|
+
},
|
|
5576
|
+
{
|
|
5577
|
+
"type": "event",
|
|
5578
|
+
"name": "RewardClaimed",
|
|
5579
|
+
"inputs": [
|
|
5580
|
+
{
|
|
5581
|
+
"name": "asset",
|
|
5582
|
+
"type": "address",
|
|
5583
|
+
"indexed": true,
|
|
5584
|
+
"internalType": "address"
|
|
3937
5585
|
},
|
|
3938
5586
|
{
|
|
3939
|
-
"name": "
|
|
5587
|
+
"name": "reward",
|
|
5588
|
+
"type": "address",
|
|
5589
|
+
"indexed": true,
|
|
5590
|
+
"internalType": "address"
|
|
5591
|
+
},
|
|
5592
|
+
{
|
|
5593
|
+
"name": "user",
|
|
3940
5594
|
"type": "address",
|
|
5595
|
+
"indexed": true,
|
|
5596
|
+
"internalType": "address"
|
|
5597
|
+
},
|
|
5598
|
+
{
|
|
5599
|
+
"name": "receiver",
|
|
5600
|
+
"type": "address",
|
|
5601
|
+
"indexed": false,
|
|
3941
5602
|
"internalType": "address"
|
|
5603
|
+
},
|
|
5604
|
+
{
|
|
5605
|
+
"name": "amount",
|
|
5606
|
+
"type": "uint256",
|
|
5607
|
+
"indexed": false,
|
|
5608
|
+
"internalType": "uint256"
|
|
3942
5609
|
}
|
|
3943
5610
|
],
|
|
3944
|
-
"
|
|
3945
|
-
"stateMutability": "payable"
|
|
5611
|
+
"anonymous": false
|
|
3946
5612
|
},
|
|
3947
5613
|
{
|
|
3948
|
-
"type": "
|
|
3949
|
-
"name": "
|
|
5614
|
+
"type": "event",
|
|
5615
|
+
"name": "RewardConfigUpdated",
|
|
3950
5616
|
"inputs": [
|
|
3951
5617
|
{
|
|
3952
|
-
"name": "
|
|
5618
|
+
"name": "asset",
|
|
3953
5619
|
"type": "address",
|
|
5620
|
+
"indexed": true,
|
|
3954
5621
|
"internalType": "address"
|
|
3955
5622
|
},
|
|
3956
5623
|
{
|
|
3957
|
-
"name": "
|
|
5624
|
+
"name": "reward",
|
|
5625
|
+
"type": "address",
|
|
5626
|
+
"indexed": true,
|
|
5627
|
+
"internalType": "address"
|
|
5628
|
+
},
|
|
5629
|
+
{
|
|
5630
|
+
"name": "maxEmissionPerSecond",
|
|
3958
5631
|
"type": "uint256",
|
|
5632
|
+
"indexed": false,
|
|
3959
5633
|
"internalType": "uint256"
|
|
3960
5634
|
},
|
|
3961
5635
|
{
|
|
3962
|
-
"name": "
|
|
5636
|
+
"name": "distributionEnd",
|
|
5637
|
+
"type": "uint256",
|
|
5638
|
+
"indexed": false,
|
|
5639
|
+
"internalType": "uint256"
|
|
5640
|
+
},
|
|
5641
|
+
{
|
|
5642
|
+
"name": "rewardPayer",
|
|
3963
5643
|
"type": "address",
|
|
5644
|
+
"indexed": false,
|
|
3964
5645
|
"internalType": "address"
|
|
3965
5646
|
}
|
|
3966
5647
|
],
|
|
3967
|
-
"
|
|
3968
|
-
"stateMutability": "nonpayable"
|
|
5648
|
+
"anonymous": false
|
|
3969
5649
|
},
|
|
3970
5650
|
{
|
|
3971
|
-
"type": "
|
|
3972
|
-
"name": "
|
|
5651
|
+
"type": "event",
|
|
5652
|
+
"name": "RewardIndexUpdated",
|
|
3973
5653
|
"inputs": [
|
|
3974
5654
|
{
|
|
3975
|
-
"name": "
|
|
5655
|
+
"name": "asset",
|
|
3976
5656
|
"type": "address",
|
|
5657
|
+
"indexed": true,
|
|
3977
5658
|
"internalType": "address"
|
|
3978
5659
|
},
|
|
3979
5660
|
{
|
|
3980
|
-
"name": "
|
|
5661
|
+
"name": "reward",
|
|
5662
|
+
"type": "address",
|
|
5663
|
+
"indexed": true,
|
|
5664
|
+
"internalType": "address"
|
|
5665
|
+
},
|
|
5666
|
+
{
|
|
5667
|
+
"name": "newIndex",
|
|
3981
5668
|
"type": "uint256",
|
|
5669
|
+
"indexed": false,
|
|
3982
5670
|
"internalType": "uint256"
|
|
5671
|
+
}
|
|
5672
|
+
],
|
|
5673
|
+
"anonymous": false
|
|
5674
|
+
},
|
|
5675
|
+
{
|
|
5676
|
+
"type": "event",
|
|
5677
|
+
"name": "RewardInitialized",
|
|
5678
|
+
"inputs": [
|
|
5679
|
+
{
|
|
5680
|
+
"name": "asset",
|
|
5681
|
+
"type": "address",
|
|
5682
|
+
"indexed": true,
|
|
5683
|
+
"internalType": "address"
|
|
3983
5684
|
},
|
|
3984
5685
|
{
|
|
3985
|
-
"name": "
|
|
5686
|
+
"name": "reward",
|
|
5687
|
+
"type": "address",
|
|
5688
|
+
"indexed": true,
|
|
5689
|
+
"internalType": "address"
|
|
5690
|
+
}
|
|
5691
|
+
],
|
|
5692
|
+
"anonymous": false
|
|
5693
|
+
},
|
|
5694
|
+
{
|
|
5695
|
+
"type": "event",
|
|
5696
|
+
"name": "TargetLiquidityUpdated",
|
|
5697
|
+
"inputs": [
|
|
5698
|
+
{
|
|
5699
|
+
"name": "asset",
|
|
3986
5700
|
"type": "address",
|
|
5701
|
+
"indexed": true,
|
|
3987
5702
|
"internalType": "address"
|
|
3988
5703
|
},
|
|
3989
5704
|
{
|
|
3990
|
-
"name": "
|
|
5705
|
+
"name": "newTargetLiquidity",
|
|
3991
5706
|
"type": "uint256",
|
|
5707
|
+
"indexed": false,
|
|
3992
5708
|
"internalType": "uint256"
|
|
5709
|
+
}
|
|
5710
|
+
],
|
|
5711
|
+
"anonymous": false
|
|
5712
|
+
},
|
|
5713
|
+
{
|
|
5714
|
+
"type": "event",
|
|
5715
|
+
"name": "UserDataUpdated",
|
|
5716
|
+
"inputs": [
|
|
5717
|
+
{
|
|
5718
|
+
"name": "asset",
|
|
5719
|
+
"type": "address",
|
|
5720
|
+
"indexed": true,
|
|
5721
|
+
"internalType": "address"
|
|
3993
5722
|
},
|
|
3994
5723
|
{
|
|
3995
|
-
"name": "
|
|
3996
|
-
"type": "
|
|
3997
|
-
"
|
|
5724
|
+
"name": "reward",
|
|
5725
|
+
"type": "address",
|
|
5726
|
+
"indexed": true,
|
|
5727
|
+
"internalType": "address"
|
|
3998
5728
|
},
|
|
3999
5729
|
{
|
|
4000
|
-
"name": "
|
|
4001
|
-
"type": "
|
|
4002
|
-
"
|
|
5730
|
+
"name": "user",
|
|
5731
|
+
"type": "address",
|
|
5732
|
+
"indexed": true,
|
|
5733
|
+
"internalType": "address"
|
|
4003
5734
|
},
|
|
4004
5735
|
{
|
|
4005
|
-
"name": "
|
|
4006
|
-
"type": "
|
|
4007
|
-
"
|
|
5736
|
+
"name": "newIndex",
|
|
5737
|
+
"type": "uint256",
|
|
5738
|
+
"indexed": false,
|
|
5739
|
+
"internalType": "uint256"
|
|
5740
|
+
},
|
|
5741
|
+
{
|
|
5742
|
+
"name": "accruedFromLastUpdate",
|
|
5743
|
+
"type": "uint256",
|
|
5744
|
+
"indexed": false,
|
|
5745
|
+
"internalType": "uint256"
|
|
4008
5746
|
}
|
|
4009
5747
|
],
|
|
4010
|
-
"
|
|
4011
|
-
|
|
5748
|
+
"anonymous": false
|
|
5749
|
+
},
|
|
5750
|
+
{
|
|
5751
|
+
"type": "error",
|
|
5752
|
+
"name": "AssetNotInitialized",
|
|
5753
|
+
"inputs": [
|
|
5754
|
+
{
|
|
5755
|
+
"name": "asset",
|
|
5756
|
+
"type": "address",
|
|
5757
|
+
"internalType": "address"
|
|
5758
|
+
}
|
|
5759
|
+
]
|
|
5760
|
+
},
|
|
5761
|
+
{
|
|
5762
|
+
"type": "error",
|
|
5763
|
+
"name": "ClaimerNotAuthorized",
|
|
5764
|
+
"inputs": [
|
|
5765
|
+
{
|
|
5766
|
+
"name": "claimer",
|
|
5767
|
+
"type": "address",
|
|
5768
|
+
"internalType": "address"
|
|
5769
|
+
},
|
|
5770
|
+
{
|
|
5771
|
+
"name": "user",
|
|
5772
|
+
"type": "address",
|
|
5773
|
+
"internalType": "address"
|
|
5774
|
+
}
|
|
5775
|
+
]
|
|
5776
|
+
},
|
|
5777
|
+
{
|
|
5778
|
+
"type": "error",
|
|
5779
|
+
"name": "ExpiredSignature",
|
|
5780
|
+
"inputs": [
|
|
5781
|
+
{
|
|
5782
|
+
"name": "deadline",
|
|
5783
|
+
"type": "uint256",
|
|
5784
|
+
"internalType": "uint256"
|
|
5785
|
+
}
|
|
5786
|
+
]
|
|
5787
|
+
},
|
|
5788
|
+
{
|
|
5789
|
+
"type": "error",
|
|
5790
|
+
"name": "InvalidDistributionEnd",
|
|
5791
|
+
"inputs": []
|
|
5792
|
+
},
|
|
5793
|
+
{
|
|
5794
|
+
"type": "error",
|
|
5795
|
+
"name": "InvalidSigner",
|
|
5796
|
+
"inputs": [
|
|
5797
|
+
{
|
|
5798
|
+
"name": "signer",
|
|
5799
|
+
"type": "address",
|
|
5800
|
+
"internalType": "address"
|
|
5801
|
+
},
|
|
5802
|
+
{
|
|
5803
|
+
"name": "owner",
|
|
5804
|
+
"type": "address",
|
|
5805
|
+
"internalType": "address"
|
|
5806
|
+
}
|
|
5807
|
+
]
|
|
5808
|
+
},
|
|
5809
|
+
{
|
|
5810
|
+
"type": "error",
|
|
5811
|
+
"name": "LengthsDontMatch",
|
|
5812
|
+
"inputs": []
|
|
5813
|
+
},
|
|
5814
|
+
{
|
|
5815
|
+
"type": "error",
|
|
5816
|
+
"name": "MaxRewardsLengthReached",
|
|
5817
|
+
"inputs": []
|
|
5818
|
+
},
|
|
5819
|
+
{
|
|
5820
|
+
"type": "error",
|
|
5821
|
+
"name": "RewardNotInitialized",
|
|
5822
|
+
"inputs": [
|
|
5823
|
+
{
|
|
5824
|
+
"name": "reward",
|
|
5825
|
+
"type": "address",
|
|
5826
|
+
"internalType": "address"
|
|
5827
|
+
}
|
|
5828
|
+
]
|
|
5829
|
+
},
|
|
5830
|
+
{
|
|
5831
|
+
"type": "error",
|
|
5832
|
+
"name": "ZeroAddress",
|
|
5833
|
+
"inputs": []
|
|
4012
5834
|
}
|
|
4013
5835
|
];
|
|
4014
5836
|
|
|
@@ -13421,6 +15243,82 @@ var IERC1967_ABI = [
|
|
|
13421
15243
|
}
|
|
13422
15244
|
];
|
|
13423
15245
|
|
|
15246
|
+
// src/abis/PausableUpgradeable.ts
|
|
15247
|
+
var PausableUpgradeable_ABI = [
|
|
15248
|
+
{
|
|
15249
|
+
"type": "function",
|
|
15250
|
+
"name": "paused",
|
|
15251
|
+
"inputs": [],
|
|
15252
|
+
"outputs": [
|
|
15253
|
+
{
|
|
15254
|
+
"name": "",
|
|
15255
|
+
"type": "bool",
|
|
15256
|
+
"internalType": "bool"
|
|
15257
|
+
}
|
|
15258
|
+
],
|
|
15259
|
+
"stateMutability": "view"
|
|
15260
|
+
},
|
|
15261
|
+
{
|
|
15262
|
+
"type": "event",
|
|
15263
|
+
"name": "Initialized",
|
|
15264
|
+
"inputs": [
|
|
15265
|
+
{
|
|
15266
|
+
"name": "version",
|
|
15267
|
+
"type": "uint64",
|
|
15268
|
+
"indexed": false,
|
|
15269
|
+
"internalType": "uint64"
|
|
15270
|
+
}
|
|
15271
|
+
],
|
|
15272
|
+
"anonymous": false
|
|
15273
|
+
},
|
|
15274
|
+
{
|
|
15275
|
+
"type": "event",
|
|
15276
|
+
"name": "Paused",
|
|
15277
|
+
"inputs": [
|
|
15278
|
+
{
|
|
15279
|
+
"name": "account",
|
|
15280
|
+
"type": "address",
|
|
15281
|
+
"indexed": false,
|
|
15282
|
+
"internalType": "address"
|
|
15283
|
+
}
|
|
15284
|
+
],
|
|
15285
|
+
"anonymous": false
|
|
15286
|
+
},
|
|
15287
|
+
{
|
|
15288
|
+
"type": "event",
|
|
15289
|
+
"name": "Unpaused",
|
|
15290
|
+
"inputs": [
|
|
15291
|
+
{
|
|
15292
|
+
"name": "account",
|
|
15293
|
+
"type": "address",
|
|
15294
|
+
"indexed": false,
|
|
15295
|
+
"internalType": "address"
|
|
15296
|
+
}
|
|
15297
|
+
],
|
|
15298
|
+
"anonymous": false
|
|
15299
|
+
},
|
|
15300
|
+
{
|
|
15301
|
+
"type": "error",
|
|
15302
|
+
"name": "EnforcedPause",
|
|
15303
|
+
"inputs": []
|
|
15304
|
+
},
|
|
15305
|
+
{
|
|
15306
|
+
"type": "error",
|
|
15307
|
+
"name": "ExpectedPause",
|
|
15308
|
+
"inputs": []
|
|
15309
|
+
},
|
|
15310
|
+
{
|
|
15311
|
+
"type": "error",
|
|
15312
|
+
"name": "InvalidInitialization",
|
|
15313
|
+
"inputs": []
|
|
15314
|
+
},
|
|
15315
|
+
{
|
|
15316
|
+
"type": "error",
|
|
15317
|
+
"name": "NotInitializing",
|
|
15318
|
+
"inputs": []
|
|
15319
|
+
}
|
|
15320
|
+
];
|
|
15321
|
+
|
|
13424
15322
|
// src/abis/IAuthorizedForwarder.ts
|
|
13425
15323
|
var IAuthorizedForwarder_ABI = [
|
|
13426
15324
|
{
|
|
@@ -36280,6 +38178,7 @@ function toAddressLink(address, client) {
|
|
|
36280
38178
|
IWrappedTokenGatewayV3_ABI,
|
|
36281
38179
|
LTV_PRECISION,
|
|
36282
38180
|
Ownable_ABI,
|
|
38181
|
+
PausableUpgradeable_ABI,
|
|
36283
38182
|
PayloadState,
|
|
36284
38183
|
ProposalState,
|
|
36285
38184
|
ProxyAdmin_ABI,
|
|
@@ -36287,6 +38186,8 @@ function toAddressLink(address, client) {
|
|
|
36287
38186
|
SECONDS_PER_YEAR,
|
|
36288
38187
|
SelfdestructCheckState,
|
|
36289
38188
|
SoltypeType,
|
|
38189
|
+
Umbrella_IRewardsController_ABI,
|
|
38190
|
+
Umbrella_IRewardsDistributor_ABI,
|
|
36290
38191
|
VerificationStatus,
|
|
36291
38192
|
WAD,
|
|
36292
38193
|
WAD_RAY_RATIO,
|