@gearbox-protocol/sdk 12.3.9 → 12.3.10
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.
|
@@ -99,7 +99,14 @@ class TreasurySplitterContract extends import_sdk.BaseContract {
|
|
|
99
99
|
});
|
|
100
100
|
return {
|
|
101
101
|
functionName: decoded.functionName,
|
|
102
|
-
...
|
|
102
|
+
...this.parseFunctionParams(decoded)
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
case "setDefaultSplit": {
|
|
106
|
+
const [receivers, proportions] = args;
|
|
107
|
+
return {
|
|
108
|
+
receivers: (0, import_sdk.json_stringify)(receivers),
|
|
109
|
+
proportions: (0, import_sdk.json_stringify)(proportions.map((proportion) => `${proportion / 100}% [${proportion}]`))
|
|
103
110
|
};
|
|
104
111
|
}
|
|
105
112
|
default:
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
decodeFunctionData
|
|
3
3
|
} from "viem";
|
|
4
4
|
import { ITreasurySplitterAbi } from "../../abi/310/iTreasurySplitter.js";
|
|
5
|
-
import { BaseContract } from "../../sdk/index.js";
|
|
5
|
+
import { BaseContract, json_stringify } from "../../sdk/index.js";
|
|
6
6
|
const abi = ITreasurySplitterAbi;
|
|
7
7
|
class TreasurySplitterContract extends BaseContract {
|
|
8
8
|
constructor(addr, client) {
|
|
@@ -78,7 +78,14 @@ class TreasurySplitterContract extends BaseContract {
|
|
|
78
78
|
});
|
|
79
79
|
return {
|
|
80
80
|
functionName: decoded.functionName,
|
|
81
|
-
...
|
|
81
|
+
...this.parseFunctionParams(decoded)
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
case "setDefaultSplit": {
|
|
85
|
+
const [receivers, proportions] = args;
|
|
86
|
+
return {
|
|
87
|
+
receivers: json_stringify(receivers),
|
|
88
|
+
proportions: json_stringify(proportions.map((proportion) => `${proportion / 100}% [${proportion}]`))
|
|
82
89
|
};
|
|
83
90
|
}
|
|
84
91
|
default:
|