@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/node.mjs
CHANGED
|
@@ -3668,52 +3668,1625 @@ var IUmbrella_ABI = [
|
|
|
3668
3668
|
}
|
|
3669
3669
|
];
|
|
3670
3670
|
|
|
3671
|
+
// src/abis/Umbrella_IRewardsDistributor.ts
|
|
3672
|
+
var Umbrella_IRewardsDistributor_ABI = [
|
|
3673
|
+
{
|
|
3674
|
+
"type": "function",
|
|
3675
|
+
"name": "claimAllRewards",
|
|
3676
|
+
"inputs": [
|
|
3677
|
+
{
|
|
3678
|
+
"name": "asset",
|
|
3679
|
+
"type": "address",
|
|
3680
|
+
"internalType": "address"
|
|
3681
|
+
},
|
|
3682
|
+
{
|
|
3683
|
+
"name": "receiver",
|
|
3684
|
+
"type": "address",
|
|
3685
|
+
"internalType": "address"
|
|
3686
|
+
}
|
|
3687
|
+
],
|
|
3688
|
+
"outputs": [
|
|
3689
|
+
{
|
|
3690
|
+
"name": "rewards",
|
|
3691
|
+
"type": "address[]",
|
|
3692
|
+
"internalType": "address[]"
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
"name": "amounts",
|
|
3696
|
+
"type": "uint256[]",
|
|
3697
|
+
"internalType": "uint256[]"
|
|
3698
|
+
}
|
|
3699
|
+
],
|
|
3700
|
+
"stateMutability": "nonpayable"
|
|
3701
|
+
},
|
|
3702
|
+
{
|
|
3703
|
+
"type": "function",
|
|
3704
|
+
"name": "claimAllRewards",
|
|
3705
|
+
"inputs": [
|
|
3706
|
+
{
|
|
3707
|
+
"name": "assets",
|
|
3708
|
+
"type": "address[]",
|
|
3709
|
+
"internalType": "address[]"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"name": "receiver",
|
|
3713
|
+
"type": "address",
|
|
3714
|
+
"internalType": "address"
|
|
3715
|
+
}
|
|
3716
|
+
],
|
|
3717
|
+
"outputs": [
|
|
3718
|
+
{
|
|
3719
|
+
"name": "rewards",
|
|
3720
|
+
"type": "address[][]",
|
|
3721
|
+
"internalType": "address[][]"
|
|
3722
|
+
},
|
|
3723
|
+
{
|
|
3724
|
+
"name": "amounts",
|
|
3725
|
+
"type": "uint256[][]",
|
|
3726
|
+
"internalType": "uint256[][]"
|
|
3727
|
+
}
|
|
3728
|
+
],
|
|
3729
|
+
"stateMutability": "nonpayable"
|
|
3730
|
+
},
|
|
3731
|
+
{
|
|
3732
|
+
"type": "function",
|
|
3733
|
+
"name": "claimAllRewardsOnBehalf",
|
|
3734
|
+
"inputs": [
|
|
3735
|
+
{
|
|
3736
|
+
"name": "assets",
|
|
3737
|
+
"type": "address[]",
|
|
3738
|
+
"internalType": "address[]"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"name": "user",
|
|
3742
|
+
"type": "address",
|
|
3743
|
+
"internalType": "address"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"name": "receiver",
|
|
3747
|
+
"type": "address",
|
|
3748
|
+
"internalType": "address"
|
|
3749
|
+
}
|
|
3750
|
+
],
|
|
3751
|
+
"outputs": [
|
|
3752
|
+
{
|
|
3753
|
+
"name": "rewards",
|
|
3754
|
+
"type": "address[][]",
|
|
3755
|
+
"internalType": "address[][]"
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
"name": "amounts",
|
|
3759
|
+
"type": "uint256[][]",
|
|
3760
|
+
"internalType": "uint256[][]"
|
|
3761
|
+
}
|
|
3762
|
+
],
|
|
3763
|
+
"stateMutability": "nonpayable"
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
"type": "function",
|
|
3767
|
+
"name": "claimAllRewardsOnBehalf",
|
|
3768
|
+
"inputs": [
|
|
3769
|
+
{
|
|
3770
|
+
"name": "asset",
|
|
3771
|
+
"type": "address",
|
|
3772
|
+
"internalType": "address"
|
|
3773
|
+
},
|
|
3774
|
+
{
|
|
3775
|
+
"name": "user",
|
|
3776
|
+
"type": "address",
|
|
3777
|
+
"internalType": "address"
|
|
3778
|
+
},
|
|
3779
|
+
{
|
|
3780
|
+
"name": "receiver",
|
|
3781
|
+
"type": "address",
|
|
3782
|
+
"internalType": "address"
|
|
3783
|
+
}
|
|
3784
|
+
],
|
|
3785
|
+
"outputs": [
|
|
3786
|
+
{
|
|
3787
|
+
"name": "rewards",
|
|
3788
|
+
"type": "address[]",
|
|
3789
|
+
"internalType": "address[]"
|
|
3790
|
+
},
|
|
3791
|
+
{
|
|
3792
|
+
"name": "amounts",
|
|
3793
|
+
"type": "uint256[]",
|
|
3794
|
+
"internalType": "uint256[]"
|
|
3795
|
+
}
|
|
3796
|
+
],
|
|
3797
|
+
"stateMutability": "nonpayable"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"type": "function",
|
|
3801
|
+
"name": "claimAllRewardsPermit",
|
|
3802
|
+
"inputs": [
|
|
3803
|
+
{
|
|
3804
|
+
"name": "asset",
|
|
3805
|
+
"type": "address",
|
|
3806
|
+
"internalType": "address"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"name": "user",
|
|
3810
|
+
"type": "address",
|
|
3811
|
+
"internalType": "address"
|
|
3812
|
+
},
|
|
3813
|
+
{
|
|
3814
|
+
"name": "receiver",
|
|
3815
|
+
"type": "address",
|
|
3816
|
+
"internalType": "address"
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
"name": "deadline",
|
|
3820
|
+
"type": "uint256",
|
|
3821
|
+
"internalType": "uint256"
|
|
3822
|
+
},
|
|
3823
|
+
{
|
|
3824
|
+
"name": "sig",
|
|
3825
|
+
"type": "tuple",
|
|
3826
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
3827
|
+
"components": [
|
|
3828
|
+
{
|
|
3829
|
+
"name": "v",
|
|
3830
|
+
"type": "uint8",
|
|
3831
|
+
"internalType": "uint8"
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"name": "r",
|
|
3835
|
+
"type": "bytes32",
|
|
3836
|
+
"internalType": "bytes32"
|
|
3837
|
+
},
|
|
3838
|
+
{
|
|
3839
|
+
"name": "s",
|
|
3840
|
+
"type": "bytes32",
|
|
3841
|
+
"internalType": "bytes32"
|
|
3842
|
+
}
|
|
3843
|
+
]
|
|
3844
|
+
}
|
|
3845
|
+
],
|
|
3846
|
+
"outputs": [
|
|
3847
|
+
{
|
|
3848
|
+
"name": "rewards",
|
|
3849
|
+
"type": "address[]",
|
|
3850
|
+
"internalType": "address[]"
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"name": "amounts",
|
|
3854
|
+
"type": "uint256[]",
|
|
3855
|
+
"internalType": "uint256[]"
|
|
3856
|
+
}
|
|
3857
|
+
],
|
|
3858
|
+
"stateMutability": "nonpayable"
|
|
3859
|
+
},
|
|
3860
|
+
{
|
|
3861
|
+
"type": "function",
|
|
3862
|
+
"name": "claimSelectedRewards",
|
|
3863
|
+
"inputs": [
|
|
3864
|
+
{
|
|
3865
|
+
"name": "assets",
|
|
3866
|
+
"type": "address[]",
|
|
3867
|
+
"internalType": "address[]"
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
"name": "rewards",
|
|
3871
|
+
"type": "address[][]",
|
|
3872
|
+
"internalType": "address[][]"
|
|
3873
|
+
},
|
|
3874
|
+
{
|
|
3875
|
+
"name": "receiver",
|
|
3876
|
+
"type": "address",
|
|
3877
|
+
"internalType": "address"
|
|
3878
|
+
}
|
|
3879
|
+
],
|
|
3880
|
+
"outputs": [
|
|
3881
|
+
{
|
|
3882
|
+
"name": "",
|
|
3883
|
+
"type": "uint256[][]",
|
|
3884
|
+
"internalType": "uint256[][]"
|
|
3885
|
+
}
|
|
3886
|
+
],
|
|
3887
|
+
"stateMutability": "nonpayable"
|
|
3888
|
+
},
|
|
3889
|
+
{
|
|
3890
|
+
"type": "function",
|
|
3891
|
+
"name": "claimSelectedRewards",
|
|
3892
|
+
"inputs": [
|
|
3893
|
+
{
|
|
3894
|
+
"name": "asset",
|
|
3895
|
+
"type": "address",
|
|
3896
|
+
"internalType": "address"
|
|
3897
|
+
},
|
|
3898
|
+
{
|
|
3899
|
+
"name": "rewards",
|
|
3900
|
+
"type": "address[]",
|
|
3901
|
+
"internalType": "address[]"
|
|
3902
|
+
},
|
|
3903
|
+
{
|
|
3904
|
+
"name": "receiver",
|
|
3905
|
+
"type": "address",
|
|
3906
|
+
"internalType": "address"
|
|
3907
|
+
}
|
|
3908
|
+
],
|
|
3909
|
+
"outputs": [
|
|
3910
|
+
{
|
|
3911
|
+
"name": "amounts",
|
|
3912
|
+
"type": "uint256[]",
|
|
3913
|
+
"internalType": "uint256[]"
|
|
3914
|
+
}
|
|
3915
|
+
],
|
|
3916
|
+
"stateMutability": "nonpayable"
|
|
3917
|
+
},
|
|
3918
|
+
{
|
|
3919
|
+
"type": "function",
|
|
3920
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
3921
|
+
"inputs": [
|
|
3922
|
+
{
|
|
3923
|
+
"name": "asset",
|
|
3924
|
+
"type": "address",
|
|
3925
|
+
"internalType": "address"
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"name": "rewards",
|
|
3929
|
+
"type": "address[]",
|
|
3930
|
+
"internalType": "address[]"
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
"name": "user",
|
|
3934
|
+
"type": "address",
|
|
3935
|
+
"internalType": "address"
|
|
3936
|
+
},
|
|
3937
|
+
{
|
|
3938
|
+
"name": "receiver",
|
|
3939
|
+
"type": "address",
|
|
3940
|
+
"internalType": "address"
|
|
3941
|
+
}
|
|
3942
|
+
],
|
|
3943
|
+
"outputs": [
|
|
3944
|
+
{
|
|
3945
|
+
"name": "amounts",
|
|
3946
|
+
"type": "uint256[]",
|
|
3947
|
+
"internalType": "uint256[]"
|
|
3948
|
+
}
|
|
3949
|
+
],
|
|
3950
|
+
"stateMutability": "nonpayable"
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
"type": "function",
|
|
3954
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
3955
|
+
"inputs": [
|
|
3956
|
+
{
|
|
3957
|
+
"name": "assets",
|
|
3958
|
+
"type": "address[]",
|
|
3959
|
+
"internalType": "address[]"
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
"name": "rewards",
|
|
3963
|
+
"type": "address[][]",
|
|
3964
|
+
"internalType": "address[][]"
|
|
3965
|
+
},
|
|
3966
|
+
{
|
|
3967
|
+
"name": "user",
|
|
3968
|
+
"type": "address",
|
|
3969
|
+
"internalType": "address"
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
"name": "receiver",
|
|
3973
|
+
"type": "address",
|
|
3974
|
+
"internalType": "address"
|
|
3975
|
+
}
|
|
3976
|
+
],
|
|
3977
|
+
"outputs": [
|
|
3978
|
+
{
|
|
3979
|
+
"name": "",
|
|
3980
|
+
"type": "uint256[][]",
|
|
3981
|
+
"internalType": "uint256[][]"
|
|
3982
|
+
}
|
|
3983
|
+
],
|
|
3984
|
+
"stateMutability": "nonpayable"
|
|
3985
|
+
},
|
|
3986
|
+
{
|
|
3987
|
+
"type": "function",
|
|
3988
|
+
"name": "claimSelectedRewardsPermit",
|
|
3989
|
+
"inputs": [
|
|
3990
|
+
{
|
|
3991
|
+
"name": "asset",
|
|
3992
|
+
"type": "address",
|
|
3993
|
+
"internalType": "address"
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
"name": "rewards",
|
|
3997
|
+
"type": "address[]",
|
|
3998
|
+
"internalType": "address[]"
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
"name": "user",
|
|
4002
|
+
"type": "address",
|
|
4003
|
+
"internalType": "address"
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
"name": "receiver",
|
|
4007
|
+
"type": "address",
|
|
4008
|
+
"internalType": "address"
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
"name": "deadline",
|
|
4012
|
+
"type": "uint256",
|
|
4013
|
+
"internalType": "uint256"
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
"name": "sig",
|
|
4017
|
+
"type": "tuple",
|
|
4018
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4019
|
+
"components": [
|
|
4020
|
+
{
|
|
4021
|
+
"name": "v",
|
|
4022
|
+
"type": "uint8",
|
|
4023
|
+
"internalType": "uint8"
|
|
4024
|
+
},
|
|
4025
|
+
{
|
|
4026
|
+
"name": "r",
|
|
4027
|
+
"type": "bytes32",
|
|
4028
|
+
"internalType": "bytes32"
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
"name": "s",
|
|
4032
|
+
"type": "bytes32",
|
|
4033
|
+
"internalType": "bytes32"
|
|
4034
|
+
}
|
|
4035
|
+
]
|
|
4036
|
+
}
|
|
4037
|
+
],
|
|
4038
|
+
"outputs": [
|
|
4039
|
+
{
|
|
4040
|
+
"name": "amounts",
|
|
4041
|
+
"type": "uint256[]",
|
|
4042
|
+
"internalType": "uint256[]"
|
|
4043
|
+
}
|
|
4044
|
+
],
|
|
4045
|
+
"stateMutability": "nonpayable"
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
"type": "function",
|
|
4049
|
+
"name": "setClaimer",
|
|
4050
|
+
"inputs": [
|
|
4051
|
+
{
|
|
4052
|
+
"name": "claimer",
|
|
4053
|
+
"type": "address",
|
|
4054
|
+
"internalType": "address"
|
|
4055
|
+
},
|
|
4056
|
+
{
|
|
4057
|
+
"name": "flag",
|
|
4058
|
+
"type": "bool",
|
|
4059
|
+
"internalType": "bool"
|
|
4060
|
+
}
|
|
4061
|
+
],
|
|
4062
|
+
"outputs": [],
|
|
4063
|
+
"stateMutability": "nonpayable"
|
|
4064
|
+
},
|
|
4065
|
+
{
|
|
4066
|
+
"type": "function",
|
|
4067
|
+
"name": "setClaimer",
|
|
4068
|
+
"inputs": [
|
|
4069
|
+
{
|
|
4070
|
+
"name": "user",
|
|
4071
|
+
"type": "address",
|
|
4072
|
+
"internalType": "address"
|
|
4073
|
+
},
|
|
4074
|
+
{
|
|
4075
|
+
"name": "claimer",
|
|
4076
|
+
"type": "address",
|
|
4077
|
+
"internalType": "address"
|
|
4078
|
+
},
|
|
4079
|
+
{
|
|
4080
|
+
"name": "flag",
|
|
4081
|
+
"type": "bool",
|
|
4082
|
+
"internalType": "bool"
|
|
4083
|
+
}
|
|
4084
|
+
],
|
|
4085
|
+
"outputs": [],
|
|
4086
|
+
"stateMutability": "nonpayable"
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
"type": "event",
|
|
4090
|
+
"name": "ClaimerSet",
|
|
4091
|
+
"inputs": [
|
|
4092
|
+
{
|
|
4093
|
+
"name": "user",
|
|
4094
|
+
"type": "address",
|
|
4095
|
+
"indexed": true,
|
|
4096
|
+
"internalType": "address"
|
|
4097
|
+
},
|
|
4098
|
+
{
|
|
4099
|
+
"name": "claimer",
|
|
4100
|
+
"type": "address",
|
|
4101
|
+
"indexed": true,
|
|
4102
|
+
"internalType": "address"
|
|
4103
|
+
},
|
|
4104
|
+
{
|
|
4105
|
+
"name": "caller",
|
|
4106
|
+
"type": "address",
|
|
4107
|
+
"indexed": true,
|
|
4108
|
+
"internalType": "address"
|
|
4109
|
+
},
|
|
4110
|
+
{
|
|
4111
|
+
"name": "flag",
|
|
4112
|
+
"type": "bool",
|
|
4113
|
+
"indexed": false,
|
|
4114
|
+
"internalType": "bool"
|
|
4115
|
+
}
|
|
4116
|
+
],
|
|
4117
|
+
"anonymous": false
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
"type": "error",
|
|
4121
|
+
"name": "ClaimerNotAuthorized",
|
|
4122
|
+
"inputs": [
|
|
4123
|
+
{
|
|
4124
|
+
"name": "claimer",
|
|
4125
|
+
"type": "address",
|
|
4126
|
+
"internalType": "address"
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"name": "user",
|
|
4130
|
+
"type": "address",
|
|
4131
|
+
"internalType": "address"
|
|
4132
|
+
}
|
|
4133
|
+
]
|
|
4134
|
+
},
|
|
4135
|
+
{
|
|
4136
|
+
"type": "error",
|
|
4137
|
+
"name": "ExpiredSignature",
|
|
4138
|
+
"inputs": [
|
|
4139
|
+
{
|
|
4140
|
+
"name": "deadline",
|
|
4141
|
+
"type": "uint256",
|
|
4142
|
+
"internalType": "uint256"
|
|
4143
|
+
}
|
|
4144
|
+
]
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
"type": "error",
|
|
4148
|
+
"name": "InvalidSigner",
|
|
4149
|
+
"inputs": [
|
|
4150
|
+
{
|
|
4151
|
+
"name": "signer",
|
|
4152
|
+
"type": "address",
|
|
4153
|
+
"internalType": "address"
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
"name": "owner",
|
|
4157
|
+
"type": "address",
|
|
4158
|
+
"internalType": "address"
|
|
4159
|
+
}
|
|
4160
|
+
]
|
|
4161
|
+
},
|
|
4162
|
+
{
|
|
4163
|
+
"type": "error",
|
|
4164
|
+
"name": "LengthsDontMatch",
|
|
4165
|
+
"inputs": []
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"type": "error",
|
|
4169
|
+
"name": "ZeroAddress",
|
|
4170
|
+
"inputs": []
|
|
4171
|
+
}
|
|
4172
|
+
];
|
|
4173
|
+
|
|
3671
4174
|
// src/abis/IWrappedTokenGatewayV3.ts
|
|
3672
4175
|
var IWrappedTokenGatewayV3_ABI = [
|
|
3673
4176
|
{
|
|
3674
4177
|
"type": "function",
|
|
3675
|
-
"name": "POOL",
|
|
3676
|
-
"inputs": [],
|
|
3677
|
-
"outputs": [
|
|
4178
|
+
"name": "POOL",
|
|
4179
|
+
"inputs": [],
|
|
4180
|
+
"outputs": [
|
|
4181
|
+
{
|
|
4182
|
+
"name": "",
|
|
4183
|
+
"type": "address",
|
|
4184
|
+
"internalType": "contract IPool"
|
|
4185
|
+
}
|
|
4186
|
+
],
|
|
4187
|
+
"stateMutability": "view"
|
|
4188
|
+
},
|
|
4189
|
+
{
|
|
4190
|
+
"type": "function",
|
|
4191
|
+
"name": "WETH",
|
|
4192
|
+
"inputs": [],
|
|
4193
|
+
"outputs": [
|
|
4194
|
+
{
|
|
4195
|
+
"name": "",
|
|
4196
|
+
"type": "address",
|
|
4197
|
+
"internalType": "contract IWETH"
|
|
4198
|
+
}
|
|
4199
|
+
],
|
|
4200
|
+
"stateMutability": "view"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
"type": "function",
|
|
4204
|
+
"name": "borrowETH",
|
|
4205
|
+
"inputs": [
|
|
4206
|
+
{
|
|
4207
|
+
"name": "pool",
|
|
4208
|
+
"type": "address",
|
|
4209
|
+
"internalType": "address"
|
|
4210
|
+
},
|
|
4211
|
+
{
|
|
4212
|
+
"name": "amount",
|
|
4213
|
+
"type": "uint256",
|
|
4214
|
+
"internalType": "uint256"
|
|
4215
|
+
},
|
|
4216
|
+
{
|
|
4217
|
+
"name": "referralCode",
|
|
4218
|
+
"type": "uint16",
|
|
4219
|
+
"internalType": "uint16"
|
|
4220
|
+
}
|
|
4221
|
+
],
|
|
4222
|
+
"outputs": [],
|
|
4223
|
+
"stateMutability": "nonpayable"
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
"type": "function",
|
|
4227
|
+
"name": "depositETH",
|
|
4228
|
+
"inputs": [
|
|
4229
|
+
{
|
|
4230
|
+
"name": "pool",
|
|
4231
|
+
"type": "address",
|
|
4232
|
+
"internalType": "address"
|
|
4233
|
+
},
|
|
4234
|
+
{
|
|
4235
|
+
"name": "onBehalfOf",
|
|
4236
|
+
"type": "address",
|
|
4237
|
+
"internalType": "address"
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
"name": "referralCode",
|
|
4241
|
+
"type": "uint16",
|
|
4242
|
+
"internalType": "uint16"
|
|
4243
|
+
}
|
|
4244
|
+
],
|
|
4245
|
+
"outputs": [],
|
|
4246
|
+
"stateMutability": "payable"
|
|
4247
|
+
},
|
|
4248
|
+
{
|
|
4249
|
+
"type": "function",
|
|
4250
|
+
"name": "repayETH",
|
|
4251
|
+
"inputs": [
|
|
4252
|
+
{
|
|
4253
|
+
"name": "pool",
|
|
4254
|
+
"type": "address",
|
|
4255
|
+
"internalType": "address"
|
|
4256
|
+
},
|
|
4257
|
+
{
|
|
4258
|
+
"name": "amount",
|
|
4259
|
+
"type": "uint256",
|
|
4260
|
+
"internalType": "uint256"
|
|
4261
|
+
},
|
|
4262
|
+
{
|
|
4263
|
+
"name": "onBehalfOf",
|
|
4264
|
+
"type": "address",
|
|
4265
|
+
"internalType": "address"
|
|
4266
|
+
}
|
|
4267
|
+
],
|
|
4268
|
+
"outputs": [],
|
|
4269
|
+
"stateMutability": "payable"
|
|
4270
|
+
},
|
|
4271
|
+
{
|
|
4272
|
+
"type": "function",
|
|
4273
|
+
"name": "withdrawETH",
|
|
4274
|
+
"inputs": [
|
|
4275
|
+
{
|
|
4276
|
+
"name": "pool",
|
|
4277
|
+
"type": "address",
|
|
4278
|
+
"internalType": "address"
|
|
4279
|
+
},
|
|
4280
|
+
{
|
|
4281
|
+
"name": "amount",
|
|
4282
|
+
"type": "uint256",
|
|
4283
|
+
"internalType": "uint256"
|
|
4284
|
+
},
|
|
4285
|
+
{
|
|
4286
|
+
"name": "onBehalfOf",
|
|
4287
|
+
"type": "address",
|
|
4288
|
+
"internalType": "address"
|
|
4289
|
+
}
|
|
4290
|
+
],
|
|
4291
|
+
"outputs": [],
|
|
4292
|
+
"stateMutability": "nonpayable"
|
|
4293
|
+
},
|
|
4294
|
+
{
|
|
4295
|
+
"type": "function",
|
|
4296
|
+
"name": "withdrawETHWithPermit",
|
|
4297
|
+
"inputs": [
|
|
4298
|
+
{
|
|
4299
|
+
"name": "pool",
|
|
4300
|
+
"type": "address",
|
|
4301
|
+
"internalType": "address"
|
|
4302
|
+
},
|
|
4303
|
+
{
|
|
4304
|
+
"name": "amount",
|
|
4305
|
+
"type": "uint256",
|
|
4306
|
+
"internalType": "uint256"
|
|
4307
|
+
},
|
|
4308
|
+
{
|
|
4309
|
+
"name": "to",
|
|
4310
|
+
"type": "address",
|
|
4311
|
+
"internalType": "address"
|
|
4312
|
+
},
|
|
4313
|
+
{
|
|
4314
|
+
"name": "deadline",
|
|
4315
|
+
"type": "uint256",
|
|
4316
|
+
"internalType": "uint256"
|
|
4317
|
+
},
|
|
4318
|
+
{
|
|
4319
|
+
"name": "permitV",
|
|
4320
|
+
"type": "uint8",
|
|
4321
|
+
"internalType": "uint8"
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
"name": "permitR",
|
|
4325
|
+
"type": "bytes32",
|
|
4326
|
+
"internalType": "bytes32"
|
|
4327
|
+
},
|
|
4328
|
+
{
|
|
4329
|
+
"name": "permitS",
|
|
4330
|
+
"type": "bytes32",
|
|
4331
|
+
"internalType": "bytes32"
|
|
4332
|
+
}
|
|
4333
|
+
],
|
|
4334
|
+
"outputs": [],
|
|
4335
|
+
"stateMutability": "nonpayable"
|
|
4336
|
+
}
|
|
4337
|
+
];
|
|
4338
|
+
|
|
4339
|
+
// src/abis/Umbrella_IRewardsController.ts
|
|
4340
|
+
var Umbrella_IRewardsController_ABI = [
|
|
4341
|
+
{
|
|
4342
|
+
"type": "function",
|
|
4343
|
+
"name": "calculateCurrentEmission",
|
|
4344
|
+
"inputs": [
|
|
4345
|
+
{
|
|
4346
|
+
"name": "asset",
|
|
4347
|
+
"type": "address",
|
|
4348
|
+
"internalType": "address"
|
|
4349
|
+
},
|
|
4350
|
+
{
|
|
4351
|
+
"name": "reward",
|
|
4352
|
+
"type": "address",
|
|
4353
|
+
"internalType": "address"
|
|
4354
|
+
}
|
|
4355
|
+
],
|
|
4356
|
+
"outputs": [
|
|
4357
|
+
{
|
|
4358
|
+
"name": "emissionPerSecond",
|
|
4359
|
+
"type": "uint256",
|
|
4360
|
+
"internalType": "uint256"
|
|
4361
|
+
}
|
|
4362
|
+
],
|
|
4363
|
+
"stateMutability": "view"
|
|
4364
|
+
},
|
|
4365
|
+
{
|
|
4366
|
+
"type": "function",
|
|
4367
|
+
"name": "calculateCurrentEmissionScaled",
|
|
4368
|
+
"inputs": [
|
|
4369
|
+
{
|
|
4370
|
+
"name": "asset",
|
|
4371
|
+
"type": "address",
|
|
4372
|
+
"internalType": "address"
|
|
4373
|
+
},
|
|
4374
|
+
{
|
|
4375
|
+
"name": "reward",
|
|
4376
|
+
"type": "address",
|
|
4377
|
+
"internalType": "address"
|
|
4378
|
+
}
|
|
4379
|
+
],
|
|
4380
|
+
"outputs": [
|
|
4381
|
+
{
|
|
4382
|
+
"name": "emissionPerSecondScaled",
|
|
4383
|
+
"type": "uint256",
|
|
4384
|
+
"internalType": "uint256"
|
|
4385
|
+
}
|
|
4386
|
+
],
|
|
4387
|
+
"stateMutability": "view"
|
|
4388
|
+
},
|
|
4389
|
+
{
|
|
4390
|
+
"type": "function",
|
|
4391
|
+
"name": "calculateCurrentUserReward",
|
|
4392
|
+
"inputs": [
|
|
4393
|
+
{
|
|
4394
|
+
"name": "asset",
|
|
4395
|
+
"type": "address",
|
|
4396
|
+
"internalType": "address"
|
|
4397
|
+
},
|
|
4398
|
+
{
|
|
4399
|
+
"name": "reward",
|
|
4400
|
+
"type": "address",
|
|
4401
|
+
"internalType": "address"
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
"name": "user",
|
|
4405
|
+
"type": "address",
|
|
4406
|
+
"internalType": "address"
|
|
4407
|
+
}
|
|
4408
|
+
],
|
|
4409
|
+
"outputs": [
|
|
4410
|
+
{
|
|
4411
|
+
"name": "rewardAccrued",
|
|
4412
|
+
"type": "uint256",
|
|
4413
|
+
"internalType": "uint256"
|
|
4414
|
+
}
|
|
4415
|
+
],
|
|
4416
|
+
"stateMutability": "view"
|
|
4417
|
+
},
|
|
4418
|
+
{
|
|
4419
|
+
"type": "function",
|
|
4420
|
+
"name": "calculateCurrentUserRewards",
|
|
4421
|
+
"inputs": [
|
|
4422
|
+
{
|
|
4423
|
+
"name": "asset",
|
|
4424
|
+
"type": "address",
|
|
4425
|
+
"internalType": "address"
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"name": "user",
|
|
4429
|
+
"type": "address",
|
|
4430
|
+
"internalType": "address"
|
|
4431
|
+
}
|
|
4432
|
+
],
|
|
4433
|
+
"outputs": [
|
|
4434
|
+
{
|
|
4435
|
+
"name": "rewards",
|
|
4436
|
+
"type": "address[]",
|
|
4437
|
+
"internalType": "address[]"
|
|
4438
|
+
},
|
|
4439
|
+
{
|
|
4440
|
+
"name": "rewardsAccrued",
|
|
4441
|
+
"type": "uint256[]",
|
|
4442
|
+
"internalType": "uint256[]"
|
|
4443
|
+
}
|
|
4444
|
+
],
|
|
4445
|
+
"stateMutability": "view"
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
"type": "function",
|
|
4449
|
+
"name": "calculateRewardIndex",
|
|
4450
|
+
"inputs": [
|
|
4451
|
+
{
|
|
4452
|
+
"name": "asset",
|
|
4453
|
+
"type": "address",
|
|
4454
|
+
"internalType": "address"
|
|
4455
|
+
},
|
|
4456
|
+
{
|
|
4457
|
+
"name": "reward",
|
|
4458
|
+
"type": "address",
|
|
4459
|
+
"internalType": "address"
|
|
4460
|
+
}
|
|
4461
|
+
],
|
|
4462
|
+
"outputs": [
|
|
4463
|
+
{
|
|
4464
|
+
"name": "index",
|
|
4465
|
+
"type": "uint256",
|
|
4466
|
+
"internalType": "uint256"
|
|
4467
|
+
}
|
|
4468
|
+
],
|
|
4469
|
+
"stateMutability": "view"
|
|
4470
|
+
},
|
|
4471
|
+
{
|
|
4472
|
+
"type": "function",
|
|
4473
|
+
"name": "calculateRewardIndexes",
|
|
4474
|
+
"inputs": [
|
|
4475
|
+
{
|
|
4476
|
+
"name": "asset",
|
|
4477
|
+
"type": "address",
|
|
4478
|
+
"internalType": "address"
|
|
4479
|
+
}
|
|
4480
|
+
],
|
|
4481
|
+
"outputs": [
|
|
4482
|
+
{
|
|
4483
|
+
"name": "rewards",
|
|
4484
|
+
"type": "address[]",
|
|
4485
|
+
"internalType": "address[]"
|
|
4486
|
+
},
|
|
4487
|
+
{
|
|
4488
|
+
"name": "indexes",
|
|
4489
|
+
"type": "uint256[]",
|
|
4490
|
+
"internalType": "uint256[]"
|
|
4491
|
+
}
|
|
4492
|
+
],
|
|
4493
|
+
"stateMutability": "view"
|
|
4494
|
+
},
|
|
4495
|
+
{
|
|
4496
|
+
"type": "function",
|
|
4497
|
+
"name": "claimAllRewards",
|
|
4498
|
+
"inputs": [
|
|
4499
|
+
{
|
|
4500
|
+
"name": "asset",
|
|
4501
|
+
"type": "address",
|
|
4502
|
+
"internalType": "address"
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
"name": "receiver",
|
|
4506
|
+
"type": "address",
|
|
4507
|
+
"internalType": "address"
|
|
4508
|
+
}
|
|
4509
|
+
],
|
|
4510
|
+
"outputs": [
|
|
4511
|
+
{
|
|
4512
|
+
"name": "rewards",
|
|
4513
|
+
"type": "address[]",
|
|
4514
|
+
"internalType": "address[]"
|
|
4515
|
+
},
|
|
4516
|
+
{
|
|
4517
|
+
"name": "amounts",
|
|
4518
|
+
"type": "uint256[]",
|
|
4519
|
+
"internalType": "uint256[]"
|
|
4520
|
+
}
|
|
4521
|
+
],
|
|
4522
|
+
"stateMutability": "nonpayable"
|
|
4523
|
+
},
|
|
4524
|
+
{
|
|
4525
|
+
"type": "function",
|
|
4526
|
+
"name": "claimAllRewards",
|
|
4527
|
+
"inputs": [
|
|
4528
|
+
{
|
|
4529
|
+
"name": "assets",
|
|
4530
|
+
"type": "address[]",
|
|
4531
|
+
"internalType": "address[]"
|
|
4532
|
+
},
|
|
4533
|
+
{
|
|
4534
|
+
"name": "receiver",
|
|
4535
|
+
"type": "address",
|
|
4536
|
+
"internalType": "address"
|
|
4537
|
+
}
|
|
4538
|
+
],
|
|
4539
|
+
"outputs": [
|
|
4540
|
+
{
|
|
4541
|
+
"name": "rewards",
|
|
4542
|
+
"type": "address[][]",
|
|
4543
|
+
"internalType": "address[][]"
|
|
4544
|
+
},
|
|
4545
|
+
{
|
|
4546
|
+
"name": "amounts",
|
|
4547
|
+
"type": "uint256[][]",
|
|
4548
|
+
"internalType": "uint256[][]"
|
|
4549
|
+
}
|
|
4550
|
+
],
|
|
4551
|
+
"stateMutability": "nonpayable"
|
|
4552
|
+
},
|
|
4553
|
+
{
|
|
4554
|
+
"type": "function",
|
|
4555
|
+
"name": "claimAllRewardsOnBehalf",
|
|
4556
|
+
"inputs": [
|
|
4557
|
+
{
|
|
4558
|
+
"name": "assets",
|
|
4559
|
+
"type": "address[]",
|
|
4560
|
+
"internalType": "address[]"
|
|
4561
|
+
},
|
|
4562
|
+
{
|
|
4563
|
+
"name": "user",
|
|
4564
|
+
"type": "address",
|
|
4565
|
+
"internalType": "address"
|
|
4566
|
+
},
|
|
4567
|
+
{
|
|
4568
|
+
"name": "receiver",
|
|
4569
|
+
"type": "address",
|
|
4570
|
+
"internalType": "address"
|
|
4571
|
+
}
|
|
4572
|
+
],
|
|
4573
|
+
"outputs": [
|
|
4574
|
+
{
|
|
4575
|
+
"name": "rewards",
|
|
4576
|
+
"type": "address[][]",
|
|
4577
|
+
"internalType": "address[][]"
|
|
4578
|
+
},
|
|
4579
|
+
{
|
|
4580
|
+
"name": "amounts",
|
|
4581
|
+
"type": "uint256[][]",
|
|
4582
|
+
"internalType": "uint256[][]"
|
|
4583
|
+
}
|
|
4584
|
+
],
|
|
4585
|
+
"stateMutability": "nonpayable"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
"type": "function",
|
|
4589
|
+
"name": "claimAllRewardsOnBehalf",
|
|
4590
|
+
"inputs": [
|
|
4591
|
+
{
|
|
4592
|
+
"name": "asset",
|
|
4593
|
+
"type": "address",
|
|
4594
|
+
"internalType": "address"
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
"name": "user",
|
|
4598
|
+
"type": "address",
|
|
4599
|
+
"internalType": "address"
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
"name": "receiver",
|
|
4603
|
+
"type": "address",
|
|
4604
|
+
"internalType": "address"
|
|
4605
|
+
}
|
|
4606
|
+
],
|
|
4607
|
+
"outputs": [
|
|
4608
|
+
{
|
|
4609
|
+
"name": "rewards",
|
|
4610
|
+
"type": "address[]",
|
|
4611
|
+
"internalType": "address[]"
|
|
4612
|
+
},
|
|
4613
|
+
{
|
|
4614
|
+
"name": "amounts",
|
|
4615
|
+
"type": "uint256[]",
|
|
4616
|
+
"internalType": "uint256[]"
|
|
4617
|
+
}
|
|
4618
|
+
],
|
|
4619
|
+
"stateMutability": "nonpayable"
|
|
4620
|
+
},
|
|
4621
|
+
{
|
|
4622
|
+
"type": "function",
|
|
4623
|
+
"name": "claimAllRewardsPermit",
|
|
4624
|
+
"inputs": [
|
|
4625
|
+
{
|
|
4626
|
+
"name": "asset",
|
|
4627
|
+
"type": "address",
|
|
4628
|
+
"internalType": "address"
|
|
4629
|
+
},
|
|
4630
|
+
{
|
|
4631
|
+
"name": "user",
|
|
4632
|
+
"type": "address",
|
|
4633
|
+
"internalType": "address"
|
|
4634
|
+
},
|
|
4635
|
+
{
|
|
4636
|
+
"name": "receiver",
|
|
4637
|
+
"type": "address",
|
|
4638
|
+
"internalType": "address"
|
|
4639
|
+
},
|
|
4640
|
+
{
|
|
4641
|
+
"name": "deadline",
|
|
4642
|
+
"type": "uint256",
|
|
4643
|
+
"internalType": "uint256"
|
|
4644
|
+
},
|
|
4645
|
+
{
|
|
4646
|
+
"name": "sig",
|
|
4647
|
+
"type": "tuple",
|
|
4648
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4649
|
+
"components": [
|
|
4650
|
+
{
|
|
4651
|
+
"name": "v",
|
|
4652
|
+
"type": "uint8",
|
|
4653
|
+
"internalType": "uint8"
|
|
4654
|
+
},
|
|
4655
|
+
{
|
|
4656
|
+
"name": "r",
|
|
4657
|
+
"type": "bytes32",
|
|
4658
|
+
"internalType": "bytes32"
|
|
4659
|
+
},
|
|
4660
|
+
{
|
|
4661
|
+
"name": "s",
|
|
4662
|
+
"type": "bytes32",
|
|
4663
|
+
"internalType": "bytes32"
|
|
4664
|
+
}
|
|
4665
|
+
]
|
|
4666
|
+
}
|
|
4667
|
+
],
|
|
4668
|
+
"outputs": [
|
|
4669
|
+
{
|
|
4670
|
+
"name": "rewards",
|
|
4671
|
+
"type": "address[]",
|
|
4672
|
+
"internalType": "address[]"
|
|
4673
|
+
},
|
|
4674
|
+
{
|
|
4675
|
+
"name": "amounts",
|
|
4676
|
+
"type": "uint256[]",
|
|
4677
|
+
"internalType": "uint256[]"
|
|
4678
|
+
}
|
|
4679
|
+
],
|
|
4680
|
+
"stateMutability": "nonpayable"
|
|
4681
|
+
},
|
|
4682
|
+
{
|
|
4683
|
+
"type": "function",
|
|
4684
|
+
"name": "claimSelectedRewards",
|
|
4685
|
+
"inputs": [
|
|
4686
|
+
{
|
|
4687
|
+
"name": "assets",
|
|
4688
|
+
"type": "address[]",
|
|
4689
|
+
"internalType": "address[]"
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
"name": "rewards",
|
|
4693
|
+
"type": "address[][]",
|
|
4694
|
+
"internalType": "address[][]"
|
|
4695
|
+
},
|
|
4696
|
+
{
|
|
4697
|
+
"name": "receiver",
|
|
4698
|
+
"type": "address",
|
|
4699
|
+
"internalType": "address"
|
|
4700
|
+
}
|
|
4701
|
+
],
|
|
4702
|
+
"outputs": [
|
|
4703
|
+
{
|
|
4704
|
+
"name": "",
|
|
4705
|
+
"type": "uint256[][]",
|
|
4706
|
+
"internalType": "uint256[][]"
|
|
4707
|
+
}
|
|
4708
|
+
],
|
|
4709
|
+
"stateMutability": "nonpayable"
|
|
4710
|
+
},
|
|
4711
|
+
{
|
|
4712
|
+
"type": "function",
|
|
4713
|
+
"name": "claimSelectedRewards",
|
|
4714
|
+
"inputs": [
|
|
4715
|
+
{
|
|
4716
|
+
"name": "asset",
|
|
4717
|
+
"type": "address",
|
|
4718
|
+
"internalType": "address"
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
"name": "rewards",
|
|
4722
|
+
"type": "address[]",
|
|
4723
|
+
"internalType": "address[]"
|
|
4724
|
+
},
|
|
4725
|
+
{
|
|
4726
|
+
"name": "receiver",
|
|
4727
|
+
"type": "address",
|
|
4728
|
+
"internalType": "address"
|
|
4729
|
+
}
|
|
4730
|
+
],
|
|
4731
|
+
"outputs": [
|
|
4732
|
+
{
|
|
4733
|
+
"name": "amounts",
|
|
4734
|
+
"type": "uint256[]",
|
|
4735
|
+
"internalType": "uint256[]"
|
|
4736
|
+
}
|
|
4737
|
+
],
|
|
4738
|
+
"stateMutability": "nonpayable"
|
|
4739
|
+
},
|
|
4740
|
+
{
|
|
4741
|
+
"type": "function",
|
|
4742
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4743
|
+
"inputs": [
|
|
4744
|
+
{
|
|
4745
|
+
"name": "asset",
|
|
4746
|
+
"type": "address",
|
|
4747
|
+
"internalType": "address"
|
|
4748
|
+
},
|
|
4749
|
+
{
|
|
4750
|
+
"name": "rewards",
|
|
4751
|
+
"type": "address[]",
|
|
4752
|
+
"internalType": "address[]"
|
|
4753
|
+
},
|
|
4754
|
+
{
|
|
4755
|
+
"name": "user",
|
|
4756
|
+
"type": "address",
|
|
4757
|
+
"internalType": "address"
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
"name": "receiver",
|
|
4761
|
+
"type": "address",
|
|
4762
|
+
"internalType": "address"
|
|
4763
|
+
}
|
|
4764
|
+
],
|
|
4765
|
+
"outputs": [
|
|
4766
|
+
{
|
|
4767
|
+
"name": "amounts",
|
|
4768
|
+
"type": "uint256[]",
|
|
4769
|
+
"internalType": "uint256[]"
|
|
4770
|
+
}
|
|
4771
|
+
],
|
|
4772
|
+
"stateMutability": "nonpayable"
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
"type": "function",
|
|
4776
|
+
"name": "claimSelectedRewardsOnBehalf",
|
|
4777
|
+
"inputs": [
|
|
4778
|
+
{
|
|
4779
|
+
"name": "assets",
|
|
4780
|
+
"type": "address[]",
|
|
4781
|
+
"internalType": "address[]"
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"name": "rewards",
|
|
4785
|
+
"type": "address[][]",
|
|
4786
|
+
"internalType": "address[][]"
|
|
4787
|
+
},
|
|
4788
|
+
{
|
|
4789
|
+
"name": "user",
|
|
4790
|
+
"type": "address",
|
|
4791
|
+
"internalType": "address"
|
|
4792
|
+
},
|
|
4793
|
+
{
|
|
4794
|
+
"name": "receiver",
|
|
4795
|
+
"type": "address",
|
|
4796
|
+
"internalType": "address"
|
|
4797
|
+
}
|
|
4798
|
+
],
|
|
4799
|
+
"outputs": [
|
|
4800
|
+
{
|
|
4801
|
+
"name": "",
|
|
4802
|
+
"type": "uint256[][]",
|
|
4803
|
+
"internalType": "uint256[][]"
|
|
4804
|
+
}
|
|
4805
|
+
],
|
|
4806
|
+
"stateMutability": "nonpayable"
|
|
4807
|
+
},
|
|
4808
|
+
{
|
|
4809
|
+
"type": "function",
|
|
4810
|
+
"name": "claimSelectedRewardsPermit",
|
|
4811
|
+
"inputs": [
|
|
4812
|
+
{
|
|
4813
|
+
"name": "asset",
|
|
4814
|
+
"type": "address",
|
|
4815
|
+
"internalType": "address"
|
|
4816
|
+
},
|
|
4817
|
+
{
|
|
4818
|
+
"name": "rewards",
|
|
4819
|
+
"type": "address[]",
|
|
4820
|
+
"internalType": "address[]"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
"name": "user",
|
|
4824
|
+
"type": "address",
|
|
4825
|
+
"internalType": "address"
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
"name": "receiver",
|
|
4829
|
+
"type": "address",
|
|
4830
|
+
"internalType": "address"
|
|
4831
|
+
},
|
|
4832
|
+
{
|
|
4833
|
+
"name": "deadline",
|
|
4834
|
+
"type": "uint256",
|
|
4835
|
+
"internalType": "uint256"
|
|
4836
|
+
},
|
|
4837
|
+
{
|
|
4838
|
+
"name": "sig",
|
|
4839
|
+
"type": "tuple",
|
|
4840
|
+
"internalType": "struct IRewardsStructs.SignatureParams",
|
|
4841
|
+
"components": [
|
|
4842
|
+
{
|
|
4843
|
+
"name": "v",
|
|
4844
|
+
"type": "uint8",
|
|
4845
|
+
"internalType": "uint8"
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
"name": "r",
|
|
4849
|
+
"type": "bytes32",
|
|
4850
|
+
"internalType": "bytes32"
|
|
4851
|
+
},
|
|
4852
|
+
{
|
|
4853
|
+
"name": "s",
|
|
4854
|
+
"type": "bytes32",
|
|
4855
|
+
"internalType": "bytes32"
|
|
4856
|
+
}
|
|
4857
|
+
]
|
|
4858
|
+
}
|
|
4859
|
+
],
|
|
4860
|
+
"outputs": [
|
|
4861
|
+
{
|
|
4862
|
+
"name": "amounts",
|
|
4863
|
+
"type": "uint256[]",
|
|
4864
|
+
"internalType": "uint256[]"
|
|
4865
|
+
}
|
|
4866
|
+
],
|
|
4867
|
+
"stateMutability": "nonpayable"
|
|
4868
|
+
},
|
|
4869
|
+
{
|
|
4870
|
+
"type": "function",
|
|
4871
|
+
"name": "configureAssetWithRewards",
|
|
4872
|
+
"inputs": [
|
|
4873
|
+
{
|
|
4874
|
+
"name": "asset",
|
|
4875
|
+
"type": "address",
|
|
4876
|
+
"internalType": "address"
|
|
4877
|
+
},
|
|
4878
|
+
{
|
|
4879
|
+
"name": "targetLiquidity",
|
|
4880
|
+
"type": "uint256",
|
|
4881
|
+
"internalType": "uint256"
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"name": "rewardConfigs",
|
|
4885
|
+
"type": "tuple[]",
|
|
4886
|
+
"internalType": "struct IRewardsStructs.RewardSetupConfig[]",
|
|
4887
|
+
"components": [
|
|
4888
|
+
{
|
|
4889
|
+
"name": "reward",
|
|
4890
|
+
"type": "address",
|
|
4891
|
+
"internalType": "address"
|
|
4892
|
+
},
|
|
4893
|
+
{
|
|
4894
|
+
"name": "rewardPayer",
|
|
4895
|
+
"type": "address",
|
|
4896
|
+
"internalType": "address"
|
|
4897
|
+
},
|
|
4898
|
+
{
|
|
4899
|
+
"name": "maxEmissionPerSecond",
|
|
4900
|
+
"type": "uint256",
|
|
4901
|
+
"internalType": "uint256"
|
|
4902
|
+
},
|
|
4903
|
+
{
|
|
4904
|
+
"name": "distributionEnd",
|
|
4905
|
+
"type": "uint256",
|
|
4906
|
+
"internalType": "uint256"
|
|
4907
|
+
}
|
|
4908
|
+
]
|
|
4909
|
+
}
|
|
4910
|
+
],
|
|
4911
|
+
"outputs": [],
|
|
4912
|
+
"stateMutability": "nonpayable"
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"type": "function",
|
|
4916
|
+
"name": "configureRewards",
|
|
4917
|
+
"inputs": [
|
|
4918
|
+
{
|
|
4919
|
+
"name": "asset",
|
|
4920
|
+
"type": "address",
|
|
4921
|
+
"internalType": "address"
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
"name": "rewardConfigs",
|
|
4925
|
+
"type": "tuple[]",
|
|
4926
|
+
"internalType": "struct IRewardsStructs.RewardSetupConfig[]",
|
|
4927
|
+
"components": [
|
|
4928
|
+
{
|
|
4929
|
+
"name": "reward",
|
|
4930
|
+
"type": "address",
|
|
4931
|
+
"internalType": "address"
|
|
4932
|
+
},
|
|
4933
|
+
{
|
|
4934
|
+
"name": "rewardPayer",
|
|
4935
|
+
"type": "address",
|
|
4936
|
+
"internalType": "address"
|
|
4937
|
+
},
|
|
4938
|
+
{
|
|
4939
|
+
"name": "maxEmissionPerSecond",
|
|
4940
|
+
"type": "uint256",
|
|
4941
|
+
"internalType": "uint256"
|
|
4942
|
+
},
|
|
4943
|
+
{
|
|
4944
|
+
"name": "distributionEnd",
|
|
4945
|
+
"type": "uint256",
|
|
4946
|
+
"internalType": "uint256"
|
|
4947
|
+
}
|
|
4948
|
+
]
|
|
4949
|
+
}
|
|
4950
|
+
],
|
|
4951
|
+
"outputs": [],
|
|
4952
|
+
"stateMutability": "nonpayable"
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
"type": "function",
|
|
4956
|
+
"name": "getAllAssets",
|
|
4957
|
+
"inputs": [],
|
|
4958
|
+
"outputs": [
|
|
4959
|
+
{
|
|
4960
|
+
"name": "assets",
|
|
4961
|
+
"type": "address[]",
|
|
4962
|
+
"internalType": "address[]"
|
|
4963
|
+
}
|
|
4964
|
+
],
|
|
4965
|
+
"stateMutability": "view"
|
|
4966
|
+
},
|
|
4967
|
+
{
|
|
4968
|
+
"type": "function",
|
|
4969
|
+
"name": "getAllRewards",
|
|
4970
|
+
"inputs": [
|
|
4971
|
+
{
|
|
4972
|
+
"name": "asset",
|
|
4973
|
+
"type": "address",
|
|
4974
|
+
"internalType": "address"
|
|
4975
|
+
}
|
|
4976
|
+
],
|
|
4977
|
+
"outputs": [
|
|
4978
|
+
{
|
|
4979
|
+
"name": "rewards",
|
|
4980
|
+
"type": "address[]",
|
|
4981
|
+
"internalType": "address[]"
|
|
4982
|
+
}
|
|
4983
|
+
],
|
|
4984
|
+
"stateMutability": "view"
|
|
4985
|
+
},
|
|
4986
|
+
{
|
|
4987
|
+
"type": "function",
|
|
4988
|
+
"name": "getAssetAndRewardsData",
|
|
4989
|
+
"inputs": [
|
|
4990
|
+
{
|
|
4991
|
+
"name": "asset",
|
|
4992
|
+
"type": "address",
|
|
4993
|
+
"internalType": "address"
|
|
4994
|
+
}
|
|
4995
|
+
],
|
|
4996
|
+
"outputs": [
|
|
4997
|
+
{
|
|
4998
|
+
"name": "assetData",
|
|
4999
|
+
"type": "tuple",
|
|
5000
|
+
"internalType": "struct IRewardsStructs.AssetDataExternal",
|
|
5001
|
+
"components": [
|
|
5002
|
+
{
|
|
5003
|
+
"name": "targetLiquidity",
|
|
5004
|
+
"type": "uint256",
|
|
5005
|
+
"internalType": "uint256"
|
|
5006
|
+
},
|
|
5007
|
+
{
|
|
5008
|
+
"name": "lastUpdateTimestamp",
|
|
5009
|
+
"type": "uint256",
|
|
5010
|
+
"internalType": "uint256"
|
|
5011
|
+
}
|
|
5012
|
+
]
|
|
5013
|
+
},
|
|
5014
|
+
{
|
|
5015
|
+
"name": "rewardsData",
|
|
5016
|
+
"type": "tuple[]",
|
|
5017
|
+
"internalType": "struct IRewardsStructs.RewardDataExternal[]",
|
|
5018
|
+
"components": [
|
|
5019
|
+
{
|
|
5020
|
+
"name": "addr",
|
|
5021
|
+
"type": "address",
|
|
5022
|
+
"internalType": "address"
|
|
5023
|
+
},
|
|
5024
|
+
{
|
|
5025
|
+
"name": "index",
|
|
5026
|
+
"type": "uint256",
|
|
5027
|
+
"internalType": "uint256"
|
|
5028
|
+
},
|
|
5029
|
+
{
|
|
5030
|
+
"name": "maxEmissionPerSecond",
|
|
5031
|
+
"type": "uint256",
|
|
5032
|
+
"internalType": "uint256"
|
|
5033
|
+
},
|
|
5034
|
+
{
|
|
5035
|
+
"name": "distributionEnd",
|
|
5036
|
+
"type": "uint256",
|
|
5037
|
+
"internalType": "uint256"
|
|
5038
|
+
}
|
|
5039
|
+
]
|
|
5040
|
+
}
|
|
5041
|
+
],
|
|
5042
|
+
"stateMutability": "view"
|
|
5043
|
+
},
|
|
5044
|
+
{
|
|
5045
|
+
"type": "function",
|
|
5046
|
+
"name": "getAssetData",
|
|
5047
|
+
"inputs": [
|
|
5048
|
+
{
|
|
5049
|
+
"name": "asset",
|
|
5050
|
+
"type": "address",
|
|
5051
|
+
"internalType": "address"
|
|
5052
|
+
}
|
|
5053
|
+
],
|
|
5054
|
+
"outputs": [
|
|
5055
|
+
{
|
|
5056
|
+
"name": "assetData",
|
|
5057
|
+
"type": "tuple",
|
|
5058
|
+
"internalType": "struct IRewardsStructs.AssetDataExternal",
|
|
5059
|
+
"components": [
|
|
5060
|
+
{
|
|
5061
|
+
"name": "targetLiquidity",
|
|
5062
|
+
"type": "uint256",
|
|
5063
|
+
"internalType": "uint256"
|
|
5064
|
+
},
|
|
5065
|
+
{
|
|
5066
|
+
"name": "lastUpdateTimestamp",
|
|
5067
|
+
"type": "uint256",
|
|
5068
|
+
"internalType": "uint256"
|
|
5069
|
+
}
|
|
5070
|
+
]
|
|
5071
|
+
}
|
|
5072
|
+
],
|
|
5073
|
+
"stateMutability": "view"
|
|
5074
|
+
},
|
|
5075
|
+
{
|
|
5076
|
+
"type": "function",
|
|
5077
|
+
"name": "getEmissionData",
|
|
5078
|
+
"inputs": [
|
|
5079
|
+
{
|
|
5080
|
+
"name": "asset",
|
|
5081
|
+
"type": "address",
|
|
5082
|
+
"internalType": "address"
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
"name": "reward",
|
|
5086
|
+
"type": "address",
|
|
5087
|
+
"internalType": "address"
|
|
5088
|
+
}
|
|
5089
|
+
],
|
|
5090
|
+
"outputs": [
|
|
5091
|
+
{
|
|
5092
|
+
"name": "emissionData",
|
|
5093
|
+
"type": "tuple",
|
|
5094
|
+
"internalType": "struct IRewardsStructs.EmissionData",
|
|
5095
|
+
"components": [
|
|
5096
|
+
{
|
|
5097
|
+
"name": "targetLiquidity",
|
|
5098
|
+
"type": "uint256",
|
|
5099
|
+
"internalType": "uint256"
|
|
5100
|
+
},
|
|
5101
|
+
{
|
|
5102
|
+
"name": "targetLiquidityExcess",
|
|
5103
|
+
"type": "uint256",
|
|
5104
|
+
"internalType": "uint256"
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
"name": "maxEmission",
|
|
5108
|
+
"type": "uint256",
|
|
5109
|
+
"internalType": "uint256"
|
|
5110
|
+
},
|
|
5111
|
+
{
|
|
5112
|
+
"name": "flatEmission",
|
|
5113
|
+
"type": "uint256",
|
|
5114
|
+
"internalType": "uint256"
|
|
5115
|
+
}
|
|
5116
|
+
]
|
|
5117
|
+
}
|
|
5118
|
+
],
|
|
5119
|
+
"stateMutability": "view"
|
|
5120
|
+
},
|
|
5121
|
+
{
|
|
5122
|
+
"type": "function",
|
|
5123
|
+
"name": "getRewardData",
|
|
5124
|
+
"inputs": [
|
|
3678
5125
|
{
|
|
3679
|
-
"name": "",
|
|
5126
|
+
"name": "asset",
|
|
3680
5127
|
"type": "address",
|
|
3681
|
-
"internalType": "
|
|
5128
|
+
"internalType": "address"
|
|
5129
|
+
},
|
|
5130
|
+
{
|
|
5131
|
+
"name": "reward",
|
|
5132
|
+
"type": "address",
|
|
5133
|
+
"internalType": "address"
|
|
5134
|
+
}
|
|
5135
|
+
],
|
|
5136
|
+
"outputs": [
|
|
5137
|
+
{
|
|
5138
|
+
"name": "rewardData",
|
|
5139
|
+
"type": "tuple",
|
|
5140
|
+
"internalType": "struct IRewardsStructs.RewardDataExternal",
|
|
5141
|
+
"components": [
|
|
5142
|
+
{
|
|
5143
|
+
"name": "addr",
|
|
5144
|
+
"type": "address",
|
|
5145
|
+
"internalType": "address"
|
|
5146
|
+
},
|
|
5147
|
+
{
|
|
5148
|
+
"name": "index",
|
|
5149
|
+
"type": "uint256",
|
|
5150
|
+
"internalType": "uint256"
|
|
5151
|
+
},
|
|
5152
|
+
{
|
|
5153
|
+
"name": "maxEmissionPerSecond",
|
|
5154
|
+
"type": "uint256",
|
|
5155
|
+
"internalType": "uint256"
|
|
5156
|
+
},
|
|
5157
|
+
{
|
|
5158
|
+
"name": "distributionEnd",
|
|
5159
|
+
"type": "uint256",
|
|
5160
|
+
"internalType": "uint256"
|
|
5161
|
+
}
|
|
5162
|
+
]
|
|
3682
5163
|
}
|
|
3683
5164
|
],
|
|
3684
5165
|
"stateMutability": "view"
|
|
3685
5166
|
},
|
|
3686
5167
|
{
|
|
3687
5168
|
"type": "function",
|
|
3688
|
-
"name": "
|
|
3689
|
-
"inputs": [
|
|
5169
|
+
"name": "getUserDataByAsset",
|
|
5170
|
+
"inputs": [
|
|
5171
|
+
{
|
|
5172
|
+
"name": "asset",
|
|
5173
|
+
"type": "address",
|
|
5174
|
+
"internalType": "address"
|
|
5175
|
+
},
|
|
5176
|
+
{
|
|
5177
|
+
"name": "user",
|
|
5178
|
+
"type": "address",
|
|
5179
|
+
"internalType": "address"
|
|
5180
|
+
}
|
|
5181
|
+
],
|
|
3690
5182
|
"outputs": [
|
|
3691
5183
|
{
|
|
3692
|
-
"name": "",
|
|
5184
|
+
"name": "rewards",
|
|
5185
|
+
"type": "address[]",
|
|
5186
|
+
"internalType": "address[]"
|
|
5187
|
+
},
|
|
5188
|
+
{
|
|
5189
|
+
"name": "userData",
|
|
5190
|
+
"type": "tuple[]",
|
|
5191
|
+
"internalType": "struct IRewardsStructs.UserDataExternal[]",
|
|
5192
|
+
"components": [
|
|
5193
|
+
{
|
|
5194
|
+
"name": "index",
|
|
5195
|
+
"type": "uint256",
|
|
5196
|
+
"internalType": "uint256"
|
|
5197
|
+
},
|
|
5198
|
+
{
|
|
5199
|
+
"name": "accrued",
|
|
5200
|
+
"type": "uint256",
|
|
5201
|
+
"internalType": "uint256"
|
|
5202
|
+
}
|
|
5203
|
+
]
|
|
5204
|
+
}
|
|
5205
|
+
],
|
|
5206
|
+
"stateMutability": "view"
|
|
5207
|
+
},
|
|
5208
|
+
{
|
|
5209
|
+
"type": "function",
|
|
5210
|
+
"name": "getUserDataByReward",
|
|
5211
|
+
"inputs": [
|
|
5212
|
+
{
|
|
5213
|
+
"name": "asset",
|
|
3693
5214
|
"type": "address",
|
|
3694
|
-
"internalType": "
|
|
5215
|
+
"internalType": "address"
|
|
5216
|
+
},
|
|
5217
|
+
{
|
|
5218
|
+
"name": "reward",
|
|
5219
|
+
"type": "address",
|
|
5220
|
+
"internalType": "address"
|
|
5221
|
+
},
|
|
5222
|
+
{
|
|
5223
|
+
"name": "user",
|
|
5224
|
+
"type": "address",
|
|
5225
|
+
"internalType": "address"
|
|
5226
|
+
}
|
|
5227
|
+
],
|
|
5228
|
+
"outputs": [
|
|
5229
|
+
{
|
|
5230
|
+
"name": "data",
|
|
5231
|
+
"type": "tuple",
|
|
5232
|
+
"internalType": "struct IRewardsStructs.UserDataExternal",
|
|
5233
|
+
"components": [
|
|
5234
|
+
{
|
|
5235
|
+
"name": "index",
|
|
5236
|
+
"type": "uint256",
|
|
5237
|
+
"internalType": "uint256"
|
|
5238
|
+
},
|
|
5239
|
+
{
|
|
5240
|
+
"name": "accrued",
|
|
5241
|
+
"type": "uint256",
|
|
5242
|
+
"internalType": "uint256"
|
|
5243
|
+
}
|
|
5244
|
+
]
|
|
3695
5245
|
}
|
|
3696
5246
|
],
|
|
3697
5247
|
"stateMutability": "view"
|
|
3698
5248
|
},
|
|
3699
5249
|
{
|
|
3700
5250
|
"type": "function",
|
|
3701
|
-
"name": "
|
|
5251
|
+
"name": "handleAction",
|
|
3702
5252
|
"inputs": [
|
|
3703
5253
|
{
|
|
3704
|
-
"name": "
|
|
5254
|
+
"name": "totalSupply",
|
|
5255
|
+
"type": "uint256",
|
|
5256
|
+
"internalType": "uint256"
|
|
5257
|
+
},
|
|
5258
|
+
{
|
|
5259
|
+
"name": "totalAssets",
|
|
5260
|
+
"type": "uint256",
|
|
5261
|
+
"internalType": "uint256"
|
|
5262
|
+
},
|
|
5263
|
+
{
|
|
5264
|
+
"name": "user",
|
|
3705
5265
|
"type": "address",
|
|
3706
5266
|
"internalType": "address"
|
|
3707
5267
|
},
|
|
3708
5268
|
{
|
|
3709
|
-
"name": "
|
|
5269
|
+
"name": "userBalance",
|
|
3710
5270
|
"type": "uint256",
|
|
3711
5271
|
"internalType": "uint256"
|
|
5272
|
+
}
|
|
5273
|
+
],
|
|
5274
|
+
"outputs": [],
|
|
5275
|
+
"stateMutability": "nonpayable"
|
|
5276
|
+
},
|
|
5277
|
+
{
|
|
5278
|
+
"type": "function",
|
|
5279
|
+
"name": "setClaimer",
|
|
5280
|
+
"inputs": [
|
|
5281
|
+
{
|
|
5282
|
+
"name": "claimer",
|
|
5283
|
+
"type": "address",
|
|
5284
|
+
"internalType": "address"
|
|
3712
5285
|
},
|
|
3713
5286
|
{
|
|
3714
|
-
"name": "
|
|
3715
|
-
"type": "
|
|
3716
|
-
"internalType": "
|
|
5287
|
+
"name": "flag",
|
|
5288
|
+
"type": "bool",
|
|
5289
|
+
"internalType": "bool"
|
|
3717
5290
|
}
|
|
3718
5291
|
],
|
|
3719
5292
|
"outputs": [],
|
|
@@ -3721,115 +5294,361 @@ var IWrappedTokenGatewayV3_ABI = [
|
|
|
3721
5294
|
},
|
|
3722
5295
|
{
|
|
3723
5296
|
"type": "function",
|
|
3724
|
-
"name": "
|
|
5297
|
+
"name": "setClaimer",
|
|
3725
5298
|
"inputs": [
|
|
3726
5299
|
{
|
|
3727
|
-
"name": "
|
|
5300
|
+
"name": "user",
|
|
3728
5301
|
"type": "address",
|
|
3729
5302
|
"internalType": "address"
|
|
3730
5303
|
},
|
|
3731
5304
|
{
|
|
3732
|
-
"name": "
|
|
5305
|
+
"name": "claimer",
|
|
3733
5306
|
"type": "address",
|
|
3734
5307
|
"internalType": "address"
|
|
3735
5308
|
},
|
|
3736
5309
|
{
|
|
3737
|
-
"name": "
|
|
3738
|
-
"type": "
|
|
3739
|
-
"internalType": "
|
|
5310
|
+
"name": "flag",
|
|
5311
|
+
"type": "bool",
|
|
5312
|
+
"internalType": "bool"
|
|
3740
5313
|
}
|
|
3741
5314
|
],
|
|
3742
5315
|
"outputs": [],
|
|
3743
|
-
"stateMutability": "
|
|
5316
|
+
"stateMutability": "nonpayable"
|
|
3744
5317
|
},
|
|
3745
5318
|
{
|
|
3746
5319
|
"type": "function",
|
|
3747
|
-
"name": "
|
|
5320
|
+
"name": "updateAsset",
|
|
3748
5321
|
"inputs": [
|
|
3749
5322
|
{
|
|
3750
|
-
"name": "
|
|
5323
|
+
"name": "asset",
|
|
5324
|
+
"type": "address",
|
|
5325
|
+
"internalType": "address"
|
|
5326
|
+
}
|
|
5327
|
+
],
|
|
5328
|
+
"outputs": [],
|
|
5329
|
+
"stateMutability": "nonpayable"
|
|
5330
|
+
},
|
|
5331
|
+
{
|
|
5332
|
+
"type": "event",
|
|
5333
|
+
"name": "AssetInitialized",
|
|
5334
|
+
"inputs": [
|
|
5335
|
+
{
|
|
5336
|
+
"name": "asset",
|
|
5337
|
+
"type": "address",
|
|
5338
|
+
"indexed": true,
|
|
5339
|
+
"internalType": "address"
|
|
5340
|
+
}
|
|
5341
|
+
],
|
|
5342
|
+
"anonymous": false
|
|
5343
|
+
},
|
|
5344
|
+
{
|
|
5345
|
+
"type": "event",
|
|
5346
|
+
"name": "ClaimerSet",
|
|
5347
|
+
"inputs": [
|
|
5348
|
+
{
|
|
5349
|
+
"name": "user",
|
|
3751
5350
|
"type": "address",
|
|
5351
|
+
"indexed": true,
|
|
3752
5352
|
"internalType": "address"
|
|
3753
5353
|
},
|
|
3754
5354
|
{
|
|
3755
|
-
"name": "
|
|
5355
|
+
"name": "claimer",
|
|
5356
|
+
"type": "address",
|
|
5357
|
+
"indexed": true,
|
|
5358
|
+
"internalType": "address"
|
|
5359
|
+
},
|
|
5360
|
+
{
|
|
5361
|
+
"name": "caller",
|
|
5362
|
+
"type": "address",
|
|
5363
|
+
"indexed": true,
|
|
5364
|
+
"internalType": "address"
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"name": "flag",
|
|
5368
|
+
"type": "bool",
|
|
5369
|
+
"indexed": false,
|
|
5370
|
+
"internalType": "bool"
|
|
5371
|
+
}
|
|
5372
|
+
],
|
|
5373
|
+
"anonymous": false
|
|
5374
|
+
},
|
|
5375
|
+
{
|
|
5376
|
+
"type": "event",
|
|
5377
|
+
"name": "LastTimestampUpdated",
|
|
5378
|
+
"inputs": [
|
|
5379
|
+
{
|
|
5380
|
+
"name": "asset",
|
|
5381
|
+
"type": "address",
|
|
5382
|
+
"indexed": true,
|
|
5383
|
+
"internalType": "address"
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
"name": "newTimestamp",
|
|
3756
5387
|
"type": "uint256",
|
|
5388
|
+
"indexed": false,
|
|
3757
5389
|
"internalType": "uint256"
|
|
5390
|
+
}
|
|
5391
|
+
],
|
|
5392
|
+
"anonymous": false
|
|
5393
|
+
},
|
|
5394
|
+
{
|
|
5395
|
+
"type": "event",
|
|
5396
|
+
"name": "RewardClaimed",
|
|
5397
|
+
"inputs": [
|
|
5398
|
+
{
|
|
5399
|
+
"name": "asset",
|
|
5400
|
+
"type": "address",
|
|
5401
|
+
"indexed": true,
|
|
5402
|
+
"internalType": "address"
|
|
3758
5403
|
},
|
|
3759
5404
|
{
|
|
3760
|
-
"name": "
|
|
5405
|
+
"name": "reward",
|
|
5406
|
+
"type": "address",
|
|
5407
|
+
"indexed": true,
|
|
5408
|
+
"internalType": "address"
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
"name": "user",
|
|
3761
5412
|
"type": "address",
|
|
5413
|
+
"indexed": true,
|
|
5414
|
+
"internalType": "address"
|
|
5415
|
+
},
|
|
5416
|
+
{
|
|
5417
|
+
"name": "receiver",
|
|
5418
|
+
"type": "address",
|
|
5419
|
+
"indexed": false,
|
|
3762
5420
|
"internalType": "address"
|
|
5421
|
+
},
|
|
5422
|
+
{
|
|
5423
|
+
"name": "amount",
|
|
5424
|
+
"type": "uint256",
|
|
5425
|
+
"indexed": false,
|
|
5426
|
+
"internalType": "uint256"
|
|
3763
5427
|
}
|
|
3764
5428
|
],
|
|
3765
|
-
"
|
|
3766
|
-
"stateMutability": "payable"
|
|
5429
|
+
"anonymous": false
|
|
3767
5430
|
},
|
|
3768
5431
|
{
|
|
3769
|
-
"type": "
|
|
3770
|
-
"name": "
|
|
5432
|
+
"type": "event",
|
|
5433
|
+
"name": "RewardConfigUpdated",
|
|
3771
5434
|
"inputs": [
|
|
3772
5435
|
{
|
|
3773
|
-
"name": "
|
|
5436
|
+
"name": "asset",
|
|
3774
5437
|
"type": "address",
|
|
5438
|
+
"indexed": true,
|
|
3775
5439
|
"internalType": "address"
|
|
3776
5440
|
},
|
|
3777
5441
|
{
|
|
3778
|
-
"name": "
|
|
5442
|
+
"name": "reward",
|
|
5443
|
+
"type": "address",
|
|
5444
|
+
"indexed": true,
|
|
5445
|
+
"internalType": "address"
|
|
5446
|
+
},
|
|
5447
|
+
{
|
|
5448
|
+
"name": "maxEmissionPerSecond",
|
|
3779
5449
|
"type": "uint256",
|
|
5450
|
+
"indexed": false,
|
|
3780
5451
|
"internalType": "uint256"
|
|
3781
5452
|
},
|
|
3782
5453
|
{
|
|
3783
|
-
"name": "
|
|
5454
|
+
"name": "distributionEnd",
|
|
5455
|
+
"type": "uint256",
|
|
5456
|
+
"indexed": false,
|
|
5457
|
+
"internalType": "uint256"
|
|
5458
|
+
},
|
|
5459
|
+
{
|
|
5460
|
+
"name": "rewardPayer",
|
|
3784
5461
|
"type": "address",
|
|
5462
|
+
"indexed": false,
|
|
3785
5463
|
"internalType": "address"
|
|
3786
5464
|
}
|
|
3787
5465
|
],
|
|
3788
|
-
"
|
|
3789
|
-
"stateMutability": "nonpayable"
|
|
5466
|
+
"anonymous": false
|
|
3790
5467
|
},
|
|
3791
5468
|
{
|
|
3792
|
-
"type": "
|
|
3793
|
-
"name": "
|
|
5469
|
+
"type": "event",
|
|
5470
|
+
"name": "RewardIndexUpdated",
|
|
3794
5471
|
"inputs": [
|
|
3795
5472
|
{
|
|
3796
|
-
"name": "
|
|
5473
|
+
"name": "asset",
|
|
3797
5474
|
"type": "address",
|
|
5475
|
+
"indexed": true,
|
|
3798
5476
|
"internalType": "address"
|
|
3799
5477
|
},
|
|
3800
5478
|
{
|
|
3801
|
-
"name": "
|
|
5479
|
+
"name": "reward",
|
|
5480
|
+
"type": "address",
|
|
5481
|
+
"indexed": true,
|
|
5482
|
+
"internalType": "address"
|
|
5483
|
+
},
|
|
5484
|
+
{
|
|
5485
|
+
"name": "newIndex",
|
|
3802
5486
|
"type": "uint256",
|
|
5487
|
+
"indexed": false,
|
|
3803
5488
|
"internalType": "uint256"
|
|
5489
|
+
}
|
|
5490
|
+
],
|
|
5491
|
+
"anonymous": false
|
|
5492
|
+
},
|
|
5493
|
+
{
|
|
5494
|
+
"type": "event",
|
|
5495
|
+
"name": "RewardInitialized",
|
|
5496
|
+
"inputs": [
|
|
5497
|
+
{
|
|
5498
|
+
"name": "asset",
|
|
5499
|
+
"type": "address",
|
|
5500
|
+
"indexed": true,
|
|
5501
|
+
"internalType": "address"
|
|
3804
5502
|
},
|
|
3805
5503
|
{
|
|
3806
|
-
"name": "
|
|
5504
|
+
"name": "reward",
|
|
5505
|
+
"type": "address",
|
|
5506
|
+
"indexed": true,
|
|
5507
|
+
"internalType": "address"
|
|
5508
|
+
}
|
|
5509
|
+
],
|
|
5510
|
+
"anonymous": false
|
|
5511
|
+
},
|
|
5512
|
+
{
|
|
5513
|
+
"type": "event",
|
|
5514
|
+
"name": "TargetLiquidityUpdated",
|
|
5515
|
+
"inputs": [
|
|
5516
|
+
{
|
|
5517
|
+
"name": "asset",
|
|
3807
5518
|
"type": "address",
|
|
5519
|
+
"indexed": true,
|
|
3808
5520
|
"internalType": "address"
|
|
3809
5521
|
},
|
|
3810
5522
|
{
|
|
3811
|
-
"name": "
|
|
5523
|
+
"name": "newTargetLiquidity",
|
|
3812
5524
|
"type": "uint256",
|
|
5525
|
+
"indexed": false,
|
|
3813
5526
|
"internalType": "uint256"
|
|
5527
|
+
}
|
|
5528
|
+
],
|
|
5529
|
+
"anonymous": false
|
|
5530
|
+
},
|
|
5531
|
+
{
|
|
5532
|
+
"type": "event",
|
|
5533
|
+
"name": "UserDataUpdated",
|
|
5534
|
+
"inputs": [
|
|
5535
|
+
{
|
|
5536
|
+
"name": "asset",
|
|
5537
|
+
"type": "address",
|
|
5538
|
+
"indexed": true,
|
|
5539
|
+
"internalType": "address"
|
|
3814
5540
|
},
|
|
3815
5541
|
{
|
|
3816
|
-
"name": "
|
|
3817
|
-
"type": "
|
|
3818
|
-
"
|
|
5542
|
+
"name": "reward",
|
|
5543
|
+
"type": "address",
|
|
5544
|
+
"indexed": true,
|
|
5545
|
+
"internalType": "address"
|
|
3819
5546
|
},
|
|
3820
5547
|
{
|
|
3821
|
-
"name": "
|
|
3822
|
-
"type": "
|
|
3823
|
-
"
|
|
5548
|
+
"name": "user",
|
|
5549
|
+
"type": "address",
|
|
5550
|
+
"indexed": true,
|
|
5551
|
+
"internalType": "address"
|
|
3824
5552
|
},
|
|
3825
5553
|
{
|
|
3826
|
-
"name": "
|
|
3827
|
-
"type": "
|
|
3828
|
-
"
|
|
5554
|
+
"name": "newIndex",
|
|
5555
|
+
"type": "uint256",
|
|
5556
|
+
"indexed": false,
|
|
5557
|
+
"internalType": "uint256"
|
|
5558
|
+
},
|
|
5559
|
+
{
|
|
5560
|
+
"name": "accruedFromLastUpdate",
|
|
5561
|
+
"type": "uint256",
|
|
5562
|
+
"indexed": false,
|
|
5563
|
+
"internalType": "uint256"
|
|
3829
5564
|
}
|
|
3830
5565
|
],
|
|
3831
|
-
"
|
|
3832
|
-
|
|
5566
|
+
"anonymous": false
|
|
5567
|
+
},
|
|
5568
|
+
{
|
|
5569
|
+
"type": "error",
|
|
5570
|
+
"name": "AssetNotInitialized",
|
|
5571
|
+
"inputs": [
|
|
5572
|
+
{
|
|
5573
|
+
"name": "asset",
|
|
5574
|
+
"type": "address",
|
|
5575
|
+
"internalType": "address"
|
|
5576
|
+
}
|
|
5577
|
+
]
|
|
5578
|
+
},
|
|
5579
|
+
{
|
|
5580
|
+
"type": "error",
|
|
5581
|
+
"name": "ClaimerNotAuthorized",
|
|
5582
|
+
"inputs": [
|
|
5583
|
+
{
|
|
5584
|
+
"name": "claimer",
|
|
5585
|
+
"type": "address",
|
|
5586
|
+
"internalType": "address"
|
|
5587
|
+
},
|
|
5588
|
+
{
|
|
5589
|
+
"name": "user",
|
|
5590
|
+
"type": "address",
|
|
5591
|
+
"internalType": "address"
|
|
5592
|
+
}
|
|
5593
|
+
]
|
|
5594
|
+
},
|
|
5595
|
+
{
|
|
5596
|
+
"type": "error",
|
|
5597
|
+
"name": "ExpiredSignature",
|
|
5598
|
+
"inputs": [
|
|
5599
|
+
{
|
|
5600
|
+
"name": "deadline",
|
|
5601
|
+
"type": "uint256",
|
|
5602
|
+
"internalType": "uint256"
|
|
5603
|
+
}
|
|
5604
|
+
]
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
"type": "error",
|
|
5608
|
+
"name": "InvalidDistributionEnd",
|
|
5609
|
+
"inputs": []
|
|
5610
|
+
},
|
|
5611
|
+
{
|
|
5612
|
+
"type": "error",
|
|
5613
|
+
"name": "InvalidSigner",
|
|
5614
|
+
"inputs": [
|
|
5615
|
+
{
|
|
5616
|
+
"name": "signer",
|
|
5617
|
+
"type": "address",
|
|
5618
|
+
"internalType": "address"
|
|
5619
|
+
},
|
|
5620
|
+
{
|
|
5621
|
+
"name": "owner",
|
|
5622
|
+
"type": "address",
|
|
5623
|
+
"internalType": "address"
|
|
5624
|
+
}
|
|
5625
|
+
]
|
|
5626
|
+
},
|
|
5627
|
+
{
|
|
5628
|
+
"type": "error",
|
|
5629
|
+
"name": "LengthsDontMatch",
|
|
5630
|
+
"inputs": []
|
|
5631
|
+
},
|
|
5632
|
+
{
|
|
5633
|
+
"type": "error",
|
|
5634
|
+
"name": "MaxRewardsLengthReached",
|
|
5635
|
+
"inputs": []
|
|
5636
|
+
},
|
|
5637
|
+
{
|
|
5638
|
+
"type": "error",
|
|
5639
|
+
"name": "RewardNotInitialized",
|
|
5640
|
+
"inputs": [
|
|
5641
|
+
{
|
|
5642
|
+
"name": "reward",
|
|
5643
|
+
"type": "address",
|
|
5644
|
+
"internalType": "address"
|
|
5645
|
+
}
|
|
5646
|
+
]
|
|
5647
|
+
},
|
|
5648
|
+
{
|
|
5649
|
+
"type": "error",
|
|
5650
|
+
"name": "ZeroAddress",
|
|
5651
|
+
"inputs": []
|
|
3833
5652
|
}
|
|
3834
5653
|
];
|
|
3835
5654
|
|
|
@@ -13242,6 +15061,82 @@ var IERC1967_ABI = [
|
|
|
13242
15061
|
}
|
|
13243
15062
|
];
|
|
13244
15063
|
|
|
15064
|
+
// src/abis/PausableUpgradeable.ts
|
|
15065
|
+
var PausableUpgradeable_ABI = [
|
|
15066
|
+
{
|
|
15067
|
+
"type": "function",
|
|
15068
|
+
"name": "paused",
|
|
15069
|
+
"inputs": [],
|
|
15070
|
+
"outputs": [
|
|
15071
|
+
{
|
|
15072
|
+
"name": "",
|
|
15073
|
+
"type": "bool",
|
|
15074
|
+
"internalType": "bool"
|
|
15075
|
+
}
|
|
15076
|
+
],
|
|
15077
|
+
"stateMutability": "view"
|
|
15078
|
+
},
|
|
15079
|
+
{
|
|
15080
|
+
"type": "event",
|
|
15081
|
+
"name": "Initialized",
|
|
15082
|
+
"inputs": [
|
|
15083
|
+
{
|
|
15084
|
+
"name": "version",
|
|
15085
|
+
"type": "uint64",
|
|
15086
|
+
"indexed": false,
|
|
15087
|
+
"internalType": "uint64"
|
|
15088
|
+
}
|
|
15089
|
+
],
|
|
15090
|
+
"anonymous": false
|
|
15091
|
+
},
|
|
15092
|
+
{
|
|
15093
|
+
"type": "event",
|
|
15094
|
+
"name": "Paused",
|
|
15095
|
+
"inputs": [
|
|
15096
|
+
{
|
|
15097
|
+
"name": "account",
|
|
15098
|
+
"type": "address",
|
|
15099
|
+
"indexed": false,
|
|
15100
|
+
"internalType": "address"
|
|
15101
|
+
}
|
|
15102
|
+
],
|
|
15103
|
+
"anonymous": false
|
|
15104
|
+
},
|
|
15105
|
+
{
|
|
15106
|
+
"type": "event",
|
|
15107
|
+
"name": "Unpaused",
|
|
15108
|
+
"inputs": [
|
|
15109
|
+
{
|
|
15110
|
+
"name": "account",
|
|
15111
|
+
"type": "address",
|
|
15112
|
+
"indexed": false,
|
|
15113
|
+
"internalType": "address"
|
|
15114
|
+
}
|
|
15115
|
+
],
|
|
15116
|
+
"anonymous": false
|
|
15117
|
+
},
|
|
15118
|
+
{
|
|
15119
|
+
"type": "error",
|
|
15120
|
+
"name": "EnforcedPause",
|
|
15121
|
+
"inputs": []
|
|
15122
|
+
},
|
|
15123
|
+
{
|
|
15124
|
+
"type": "error",
|
|
15125
|
+
"name": "ExpectedPause",
|
|
15126
|
+
"inputs": []
|
|
15127
|
+
},
|
|
15128
|
+
{
|
|
15129
|
+
"type": "error",
|
|
15130
|
+
"name": "InvalidInitialization",
|
|
15131
|
+
"inputs": []
|
|
15132
|
+
},
|
|
15133
|
+
{
|
|
15134
|
+
"type": "error",
|
|
15135
|
+
"name": "NotInitializing",
|
|
15136
|
+
"inputs": []
|
|
15137
|
+
}
|
|
15138
|
+
];
|
|
15139
|
+
|
|
13245
15140
|
// src/abis/IAuthorizedForwarder.ts
|
|
13246
15141
|
var IAuthorizedForwarder_ABI = [
|
|
13247
15142
|
{
|
|
@@ -36227,6 +38122,7 @@ export {
|
|
|
36227
38122
|
IWrappedTokenGatewayV3_ABI,
|
|
36228
38123
|
LTV_PRECISION,
|
|
36229
38124
|
Ownable_ABI,
|
|
38125
|
+
PausableUpgradeable_ABI,
|
|
36230
38126
|
PayloadState,
|
|
36231
38127
|
ProposalState,
|
|
36232
38128
|
ProxyAdmin_ABI,
|
|
@@ -36234,6 +38130,8 @@ export {
|
|
|
36234
38130
|
SECONDS_PER_YEAR,
|
|
36235
38131
|
SelfdestructCheckState,
|
|
36236
38132
|
SoltypeType,
|
|
38133
|
+
Umbrella_IRewardsController_ABI,
|
|
38134
|
+
Umbrella_IRewardsDistributor_ABI,
|
|
36237
38135
|
VerificationStatus,
|
|
36238
38136
|
WAD,
|
|
36239
38137
|
WAD_RAY_RATIO,
|