@bgd-labs/toolbox 0.0.48 → 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 +386 -1
- package/dist/index.d.ts +386 -1
- package/dist/index.js +505 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +504 -0
- 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 +505 -0
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +504 -0
- package/dist/node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(index_exports, {
|
|
|
72
72
|
SelfdestructCheckState: () => SelfdestructCheckState,
|
|
73
73
|
SoltypeType: () => SoltypeType,
|
|
74
74
|
Umbrella_IRewardsController_ABI: () => Umbrella_IRewardsController_ABI,
|
|
75
|
+
Umbrella_IRewardsDistributor_ABI: () => Umbrella_IRewardsDistributor_ABI,
|
|
75
76
|
VerificationStatus: () => VerificationStatus,
|
|
76
77
|
WAD: () => WAD,
|
|
77
78
|
WAD_RAY_RATIO: () => WAD_RAY_RATIO,
|
|
@@ -3849,6 +3850,509 @@ var IUmbrella_ABI = [
|
|
|
3849
3850
|
}
|
|
3850
3851
|
];
|
|
3851
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
|
+
|
|
3852
4356
|
// src/abis/IWrappedTokenGatewayV3.ts
|
|
3853
4357
|
var IWrappedTokenGatewayV3_ABI = [
|
|
3854
4358
|
{
|
|
@@ -37683,6 +38187,7 @@ function toAddressLink(address, client) {
|
|
|
37683
38187
|
SelfdestructCheckState,
|
|
37684
38188
|
SoltypeType,
|
|
37685
38189
|
Umbrella_IRewardsController_ABI,
|
|
38190
|
+
Umbrella_IRewardsDistributor_ABI,
|
|
37686
38191
|
VerificationStatus,
|
|
37687
38192
|
WAD,
|
|
37688
38193
|
WAD_RAY_RATIO,
|