@@ -69,7 +69,11 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
69
69
contractInstance : fuseFeeDistributor ,
70
70
functionName : "_setCErc20DelegateExtensions" ,
71
71
args : [ erc20Del . address as Address , [ erc20Del . address as Address , cTokenFirstExtension . address as Address ] ] ,
72
- description : "Set CErc20Delegate Extensions"
72
+ description : "Set CErc20Delegate Extensions" ,
73
+ inputs : [
74
+ { internalType : "address" , name : "cErc20Delegate" , type : "address" } ,
75
+ { internalType : "address[]" , name : "extensions" , type : "address[]" }
76
+ ]
73
77
} ) ;
74
78
} else {
75
79
tx = await fuseFeeDistributor . write . _setCErc20DelegateExtensions ( [
@@ -84,12 +88,17 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
84
88
}
85
89
const [ latestCErc20Delegate ] = await fuseFeeDistributor . read . latestCErc20Delegate ( [ 1 ] ) ;
86
90
if ( latestCErc20Delegate === zeroAddress || latestCErc20Delegate !== erc20Del . address ) {
87
- if ( multisig && ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
91
+ if ( ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
88
92
await prepareAndLogTransaction ( {
89
93
contractInstance : fuseFeeDistributor ,
90
94
functionName : "_setLatestCErc20Delegate" ,
91
95
args : [ 1 , erc20Del . address as Address , becomeImplementationData ] ,
92
- description : "Set Latest CErc20Delegate"
96
+ description : "Set Latest CErc20Delegate" ,
97
+ inputs : [
98
+ { internalType : "uint8" , name : "delegateType" , type : "uint8" } ,
99
+ { internalType : "address" , name : "newImplementation" , type : "address" } ,
100
+ { internalType : "bytes" , name : "becomeImplementationData" , type : "bytes" }
101
+ ]
93
102
} ) ;
94
103
} else {
95
104
tx = await fuseFeeDistributor . write . _setLatestCErc20Delegate ( [
@@ -111,15 +120,19 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
111
120
erc20PluginDel . address as Address
112
121
] ) ;
113
122
if ( erc20PluginDelExtensions . length == 0 || erc20PluginDelExtensions [ 0 ] != erc20PluginDel . address ) {
114
- if ( multisig && ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
123
+ if ( ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
115
124
await prepareAndLogTransaction ( {
116
125
contractInstance : fuseFeeDistributor ,
117
126
functionName : "_setCErc20DelegateExtensions" ,
118
127
args : [
119
128
erc20PluginDel . address as Address ,
120
129
[ erc20PluginDel . address as Address , cTokenFirstExtension . address as Address ]
121
130
] ,
122
- description : "Set CErc20PluginDelegate Extensions"
131
+ description : "Set CErc20PluginDelegate Extensions" ,
132
+ inputs : [
133
+ { internalType : "address" , name : "cErc20Delegate" , type : "address" } ,
134
+ { internalType : "address[]" , name : "extensions" , type : "address[]" }
135
+ ]
123
136
} ) ;
124
137
} else {
125
138
tx = await fuseFeeDistributor . write . _setCErc20DelegateExtensions ( [
@@ -135,12 +148,17 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
135
148
136
149
const [ latestCErc20PluginDelegate ] = await fuseFeeDistributor . read . latestCErc20Delegate ( [ 2 ] ) ;
137
150
if ( latestCErc20PluginDelegate === zeroAddress || latestCErc20PluginDelegate !== erc20PluginDel . address ) {
138
- if ( multisig && ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
151
+ if ( ( await fuseFeeDistributor . read . owner ( ) ) . toLowerCase ( ) !== deployer . toLowerCase ( ) ) {
139
152
await prepareAndLogTransaction ( {
140
153
contractInstance : fuseFeeDistributor ,
141
154
functionName : "_setLatestCErc20Delegate" ,
142
155
args : [ 2 , erc20PluginDel . address as Address , becomeImplementationData ] ,
143
- description : "Set Latest CErc20PluginDelegate"
156
+ description : "Set Latest CErc20PluginDelegate" ,
157
+ inputs : [
158
+ { internalType : "uint8" , name : "delegateType" , type : "uint8" } ,
159
+ { internalType : "address" , name : "newImplementation" , type : "address" } ,
160
+ { internalType : "bytes" , name : "becomeImplementationData" , type : "bytes" }
161
+ ]
144
162
} ) ;
145
163
} else {
146
164
tx = await fuseFeeDistributor . write . _setLatestCErc20Delegate ( [
@@ -172,7 +190,11 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
172
190
erc20RewardsDel . address as Address ,
173
191
[ erc20RewardsDel . address as Address , cTokenFirstExtension . address as Address ]
174
192
] ,
175
- description : "Set CErc20RewardsDelegate Extensions"
193
+ description : "Set CErc20RewardsDelegate Extensions" ,
194
+ inputs : [
195
+ { internalType : "address" , name : "cErc20Delegate" , type : "address" } ,
196
+ { internalType : "address[]" , name : "extensions" , type : "address[]" }
197
+ ]
176
198
} ) ;
177
199
} else {
178
200
tx = await fuseFeeDistributor . write . _setCErc20DelegateExtensions ( [
@@ -192,7 +214,12 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
192
214
contractInstance : fuseFeeDistributor ,
193
215
functionName : "_setLatestCErc20Delegate" ,
194
216
args : [ 3 , erc20RewardsDel . address as Address , becomeImplementationData ] ,
195
- description : "Set Latest CErc20RewardsDelegate"
217
+ description : "Set Latest CErc20RewardsDelegate" ,
218
+ inputs : [
219
+ { internalType : "uint8" , name : "delegateType" , type : "uint8" } ,
220
+ { internalType : "address" , name : "newImplementation" , type : "address" } ,
221
+ { internalType : "bytes" , name : "becomeImplementationData" , type : "bytes" }
222
+ ]
196
223
} ) ;
197
224
} else {
198
225
tx = await fuseFeeDistributor . write . _setLatestCErc20Delegate ( [
@@ -227,7 +254,11 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
227
254
erc20PluginRewardsDel . address as Address ,
228
255
[ erc20PluginRewardsDel . address as Address , cTokenFirstExtension . address as Address ]
229
256
] ,
230
- description : "Set CErc20PluginRewardsDelegate Extensions"
257
+ description : "Set CErc20PluginRewardsDelegate Extensions" ,
258
+ inputs : [
259
+ { internalType : "address" , name : "cErc20Delegate" , type : "address" } ,
260
+ { internalType : "address[]" , name : "extensions" , type : "address[]" }
261
+ ]
231
262
} ) ;
232
263
} else {
233
264
tx = await fuseFeeDistributor . write . _setCErc20DelegateExtensions ( [
@@ -250,7 +281,12 @@ const func: DeployFunction = async ({ viem, getNamedAccounts, deployments }) =>
250
281
contractInstance : fuseFeeDistributor ,
251
282
functionName : "_setLatestCErc20Delegate" ,
252
283
args : [ 4 , erc20PluginRewardsDel . address as Address , becomeImplementationData ] ,
253
- description : "Set Latest CErc20PluginRewardsDelegate"
284
+ description : "Set Latest CErc20PluginRewardsDelegate" ,
285
+ inputs : [
286
+ { internalType : "uint8" , name : "delegateType" , type : "uint8" } ,
287
+ { internalType : "address" , name : "newImplementation" , type : "address" } ,
288
+ { internalType : "bytes" , name : "becomeImplementationData" , type : "bytes" }
289
+ ]
254
290
} ) ;
255
291
} else {
256
292
tx = await fuseFeeDistributor . write . _setLatestCErc20Delegate ( [
0 commit comments