@gearbox-protocol/sdk 15.0.0 → 15.0.1
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.
|
@@ -199,6 +199,22 @@ class InstanceManagerContract extends import_sdk.BaseContract {
|
|
|
199
199
|
saveVersion: saveVersion ? "true" : "false"
|
|
200
200
|
};
|
|
201
201
|
}
|
|
202
|
+
case "setGlobalAddress": {
|
|
203
|
+
const [key, address, saveVersion] = params.args;
|
|
204
|
+
return {
|
|
205
|
+
key: (0, import_viem.hexToString)(key, { size: 32 }),
|
|
206
|
+
address,
|
|
207
|
+
saveVersion: saveVersion ? "true" : "false"
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
case "setLocalAddress": {
|
|
211
|
+
const [key, address, saveVersion] = params.args;
|
|
212
|
+
return {
|
|
213
|
+
key: (0, import_viem.hexToString)(key, { size: 32 }),
|
|
214
|
+
address,
|
|
215
|
+
saveVersion: saveVersion ? "true" : "false"
|
|
216
|
+
};
|
|
217
|
+
}
|
|
202
218
|
default:
|
|
203
219
|
return super.parseFunctionParams(params);
|
|
204
220
|
}
|
|
@@ -183,6 +183,22 @@ class InstanceManagerContract extends BaseContract {
|
|
|
183
183
|
saveVersion: saveVersion ? "true" : "false"
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
+
case "setGlobalAddress": {
|
|
187
|
+
const [key, address, saveVersion] = params.args;
|
|
188
|
+
return {
|
|
189
|
+
key: hexToString(key, { size: 32 }),
|
|
190
|
+
address,
|
|
191
|
+
saveVersion: saveVersion ? "true" : "false"
|
|
192
|
+
};
|
|
193
|
+
}
|
|
194
|
+
case "setLocalAddress": {
|
|
195
|
+
const [key, address, saveVersion] = params.args;
|
|
196
|
+
return {
|
|
197
|
+
key: hexToString(key, { size: 32 }),
|
|
198
|
+
address,
|
|
199
|
+
saveVersion: saveVersion ? "true" : "false"
|
|
200
|
+
};
|
|
201
|
+
}
|
|
186
202
|
default:
|
|
187
203
|
return super.parseFunctionParams(params);
|
|
188
204
|
}
|