@defisaver/positions-sdk 2.0.10-dev-linea-2 → 2.0.10-dev-linea-4
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/cjs/aaveV3/index.js +1 -0
- package/cjs/contracts.js +1 -0
- package/esm/aaveV3/index.js +1 -0
- package/esm/contracts.js +1 -0
- package/package.json +1 -1
- package/src/aaveV3/index.ts +1 -1
- package/src/contracts.ts +1 -0
package/cjs/aaveV3/index.js
CHANGED
|
@@ -55,6 +55,7 @@ function _getAaveV3MarketData(provider_1, network_1, market_1) {
|
|
|
55
55
|
return __awaiter(this, arguments, void 0, function* (provider, network, market, blockNumber = 'latest') {
|
|
56
56
|
const _addresses = market.assets.map(a => (0, tokens_1.getAssetInfo)((0, utils_1.ethToWeth)(a), network).address);
|
|
57
57
|
const isL2 = (0, utils_1.isLayer2Network)(network);
|
|
58
|
+
console.log(_addresses);
|
|
58
59
|
const loanInfoContract = (0, contracts_1.AaveV3ViewContractViem)(provider, network);
|
|
59
60
|
const aaveIncentivesContract = (0, contracts_1.AaveIncentiveDataProviderV3ContractViem)(provider, network);
|
|
60
61
|
const marketAddress = market.providerAddress;
|
package/cjs/contracts.js
CHANGED
|
@@ -76,6 +76,7 @@ const getConfigContractAbi = (name, network, block) => {
|
|
|
76
76
|
exports.getConfigContractAbi = getConfigContractAbi;
|
|
77
77
|
const createViemContractFromConfigFunc = (name, _address) => (client, network, block) => {
|
|
78
78
|
const address = (_address || (0, exports.getConfigContractAddress)(name, network, block));
|
|
79
|
+
console.log(address);
|
|
79
80
|
const abi = (0, exports.getConfigContractAbi)(name, network, block);
|
|
80
81
|
return (0, viem_1.getContract)({
|
|
81
82
|
address,
|
package/esm/aaveV3/index.js
CHANGED
|
@@ -46,6 +46,7 @@ export function _getAaveV3MarketData(provider_1, network_1, market_1) {
|
|
|
46
46
|
return __awaiter(this, arguments, void 0, function* (provider, network, market, blockNumber = 'latest') {
|
|
47
47
|
const _addresses = market.assets.map(a => getAssetInfo(ethToWeth(a), network).address);
|
|
48
48
|
const isL2 = isLayer2Network(network);
|
|
49
|
+
console.log(_addresses);
|
|
49
50
|
const loanInfoContract = AaveV3ViewContractViem(provider, network);
|
|
50
51
|
const aaveIncentivesContract = AaveIncentiveDataProviderV3ContractViem(provider, network);
|
|
51
52
|
const marketAddress = market.providerAddress;
|
package/esm/contracts.js
CHANGED
|
@@ -38,6 +38,7 @@ export const getConfigContractAbi = (name, network, block) => {
|
|
|
38
38
|
};
|
|
39
39
|
export const createViemContractFromConfigFunc = (name, _address) => (client, network, block) => {
|
|
40
40
|
const address = (_address || getConfigContractAddress(name, network, block));
|
|
41
|
+
console.log(address);
|
|
41
42
|
const abi = getConfigContractAbi(name, network, block);
|
|
42
43
|
return getContract({
|
|
43
44
|
address,
|
package/package.json
CHANGED
package/src/aaveV3/index.ts
CHANGED
|
@@ -64,7 +64,7 @@ export async function _getAaveV3MarketData(provider: Client, network: NetworkNum
|
|
|
64
64
|
const _addresses = market.assets.map(a => getAssetInfo(ethToWeth(a), network).address);
|
|
65
65
|
|
|
66
66
|
const isL2 = isLayer2Network(network);
|
|
67
|
-
|
|
67
|
+
console.log(_addresses);
|
|
68
68
|
const loanInfoContract = AaveV3ViewContractViem(provider, network);
|
|
69
69
|
const aaveIncentivesContract = AaveIncentiveDataProviderV3ContractViem(provider, network);
|
|
70
70
|
const marketAddress = market.providerAddress;
|
package/src/contracts.ts
CHANGED
|
@@ -59,6 +59,7 @@ export const getConfigContractAbi = <TKey extends ConfigKey>(name: TKey, network
|
|
|
59
59
|
|
|
60
60
|
export const createViemContractFromConfigFunc = <TKey extends ConfigKey>(name: TKey, _address?: HexString) => (client: Client, network: NetworkNumber, block?: Blockish) => {
|
|
61
61
|
const address = (_address || getConfigContractAddress(name, network, block));
|
|
62
|
+
console.log(address);
|
|
62
63
|
const abi = getConfigContractAbi(name, network, block) as typeof configRaw[TKey]['abi'];
|
|
63
64
|
return getContract({
|
|
64
65
|
address,
|