@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.mjs
CHANGED
|
@@ -3668,6 +3668,509 @@ 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
|
{
|
|
@@ -37571,6 +38074,7 @@ export {
|
|
|
37571
38074
|
SelfdestructCheckState,
|
|
37572
38075
|
SoltypeType,
|
|
37573
38076
|
Umbrella_IRewardsController_ABI,
|
|
38077
|
+
Umbrella_IRewardsDistributor_ABI,
|
|
37574
38078
|
VerificationStatus,
|
|
37575
38079
|
WAD,
|
|
37576
38080
|
WAD_RAY_RATIO,
|