@defillama/sdk 5.0.77 → 5.0.80
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/multicall3.js +3 -3
- package/build/abi/tron.d.ts +2 -0
- package/build/abi/tron.js +3 -1
- package/build/providers.json +1 -1
- package/build/util/LlamaProvider.js +3 -2
- package/build/util/env.js +2 -2
- package/build/util/logs.js +3 -0
- package/package.json +1 -1
package/build/abi/multicall3.js
CHANGED
|
@@ -145,6 +145,9 @@ const DEPLOYMENT_BLOCK = {
|
|
|
145
145
|
aura: 6731307,
|
|
146
146
|
conflux: 97705330,
|
|
147
147
|
etlk: 1,
|
|
148
|
+
alg: 2344547,
|
|
149
|
+
lisk: 4664276,
|
|
150
|
+
gravity: 52682,
|
|
148
151
|
};
|
|
149
152
|
async function makeMultiCall(functionABI, calls, chain, block) {
|
|
150
153
|
if (chain === 'tron')
|
|
@@ -252,9 +255,6 @@ function getMulticallAddress(chain, block) {
|
|
|
252
255
|
case 'karak':
|
|
253
256
|
multicallAddress = '0x73331e33f1552E706D56aa453ce19BCE314B4F59';
|
|
254
257
|
break;
|
|
255
|
-
case 'bitr':
|
|
256
|
-
multicallAddress = '0x4282868539c7e22b9bc9248fd7c8196cdaeeef13';
|
|
257
|
-
break;
|
|
258
258
|
case 'taiko':
|
|
259
259
|
multicallAddress = '0xcb2436774C3e191c85056d248EF4260ce5f27A9D';
|
|
260
260
|
break;
|
package/build/abi/tron.d.ts
CHANGED
package/build/abi/tron.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.getBalances = exports.getBalance = exports.multiCall = exports.call = void 0;
|
|
6
|
+
exports.hexifyTarget = exports.unhexifyTarget = exports.getBalances = exports.getBalance = exports.multiCall = exports.call = void 0;
|
|
7
7
|
const axios_1 = __importDefault(require("axios"));
|
|
8
8
|
const ethers_1 = require("ethers");
|
|
9
9
|
const tron_format_address_1 = require("tron-format-address");
|
|
@@ -169,11 +169,13 @@ function unhexifyTarget(address) {
|
|
|
169
169
|
return (0, tron_format_address_1.fromHex)(address);
|
|
170
170
|
return address;
|
|
171
171
|
}
|
|
172
|
+
exports.unhexifyTarget = unhexifyTarget;
|
|
172
173
|
function hexifyTarget(address) {
|
|
173
174
|
if (!address.startsWith('0x'))
|
|
174
175
|
return (0, tron_format_address_1.toHex)(address);
|
|
175
176
|
return address;
|
|
176
177
|
}
|
|
178
|
+
exports.hexifyTarget = hexifyTarget;
|
|
177
179
|
async function post(body = {}, endpoint = '/wallet/triggerconstantcontract') {
|
|
178
180
|
const host = getEndpoint();
|
|
179
181
|
const headers = { 'Content-Type': 'application/json' };
|