@defillama/sdk 4.0.23 → 4.0.24
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/build/abi/tron.js +17 -5
- package/package.json +1 -1
package/build/abi/tron.js
CHANGED
|
@@ -117,13 +117,25 @@ function call(options) {
|
|
|
117
117
|
}
|
|
118
118
|
exports.call = call;
|
|
119
119
|
function multiCall(functionABI, calls) {
|
|
120
|
+
var _a;
|
|
120
121
|
return __awaiter(this, void 0, void 0, function () {
|
|
121
|
-
var returnValues;
|
|
122
|
-
return __generator(this, function (
|
|
123
|
-
switch (
|
|
124
|
-
case 0:
|
|
122
|
+
var inputs_1, returnValues;
|
|
123
|
+
return __generator(this, function (_b) {
|
|
124
|
+
switch (_b.label) {
|
|
125
|
+
case 0:
|
|
126
|
+
if ((_a = functionABI.inputs) === null || _a === void 0 ? void 0 : _a.length) {
|
|
127
|
+
inputs_1 = functionABI.inputs;
|
|
128
|
+
calls.forEach(function (call) {
|
|
129
|
+
var _a;
|
|
130
|
+
(_a = call.params) === null || _a === void 0 ? void 0 : _a.forEach(function (v, i) {
|
|
131
|
+
if (inputs_1[i].type === 'address')
|
|
132
|
+
call.params[i] = hexifyTarget(v);
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return [4 /*yield*/, executeCalls(functionABI, calls)];
|
|
125
137
|
case 1:
|
|
126
|
-
returnValues =
|
|
138
|
+
returnValues = _b.sent();
|
|
127
139
|
return [2 /*return*/, returnValues.map(function (output, index) {
|
|
128
140
|
return {
|
|
129
141
|
input: {
|