Merge branch 'next' of https://github.com/morpho-org/sdks into feat/s… #83
push.yml
on: push
lint
/
biome
33s
build
/
packages
1m 11s
test
/
vitest
2m 58s
publish
/
publish
48s
Annotations
7 errors
publish / publish
Process completed with exit code 1.
|
packages/bundler-sdk-viem/test/populateBundle.test.ts > populateBundle > without signatures > base > should wrap then supply aUSDC:
packages/bundler-sdk-viem/test/populateBundle.test.ts#L4990
AssertionError: expected true to be falsy
Ignored nodes: comments, script, style
<html>
<head />
<body>
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
<div />
</body>
</html>
- Expected
+ Received
- false
+ true
❯ packages/bundler-sdk-viem/test/populateBundle.test.ts:4990:68
❯ runWithExpensiveErrorDiagnosticsDisabled node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/config.js:47:12
❯ checkCallback node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:124:77
❯ Timeout.checkRealTimersCallback node_modules/.pnpm/@testing-library+dom@10.4.0/node_modules/@testing-library/dom/dist/wait-for.js:118:16
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a USD0USD0++ market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L979
ReferenceError: mainnetAddresses is not defined
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:979:18
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a USD0++ market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1229
ReferenceError: LiquidationEncoder is not defined
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1229:39
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a sUSDS market:
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts#L1398
AssertionError: expected '0.000000000000000000' to be close to 11652.93471896, received difference is 11652.93471896, but expected 5e-9
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1398:58
|
packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts > erc4626-1inch > should liquidate a sUSDS market using DAI when USDS lacks liquidity:
packages/test-viem/src/anvil.ts#L270
ContractFunctionExecutionError: The contract function "supplyCollateral" reverted with the following reason:
transferFrom reverted
Contract Call:
address: 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb
function: supplyCollateral((address loanToken, address collateralToken, address oracle, address irm, uint256 lltv), uint256 assets, address onBehalf, bytes data)
args: ({"collateralToken":"0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD","loanToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","oracle":"0x9F48b0791C701be7a51B66A4e550A5f0B52A8f5e","irm":"0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC","lltv":"860000000000000000","id":"0xbed21964cf290ab95fa458da6c1f302f2278aec5f897c1b1da3054553ef5e90c","liquidationIncentiveFactor":"1043841336116910229"}, 100000000000000000000000, 0x70997970C51812dc3A010C7d01b50e0d17dc79C8, 0x)
sender: 0x70997970C51812dc3A010C7d01b50e0d17dc79C8
Docs: https://viem.sh/docs/contract/writeContract
Version: 2.21.27
❯ getContractError node_modules/.pnpm/viem@2.21.27_bufferutil@4.0.8_typescript@5.6.3_utf-8-validate@5.0.10/node_modules/viem/utils/errors/getContractError.ts:72:10
❯ Module.writeContract node_modules/.pnpm/viem@2.21.27_bufferutil@4.0.8_typescript@5.6.3_utf-8-validate@5.0.10/node_modules/viem/actions/wallet/writeContract.ts:208:11
❯ Object.writeContract packages/test-viem/src/anvil.ts:270:24
❯ packages/liquidation-sdk-viem/test/examples/whitelisted-erc4626-1inch.test.ts:1433:7
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { details: undefined, docsPath: '/docs/contract/writeContract', metaMessages: [ 'Contract Call:', ' address: 0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb\n function: supplyCollateral((address loanToken, address collateralToken, address oracle, address irm, uint256 lltv), uint256 assets, address onBehalf, bytes data)\n args: ({"collateralToken":"0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD","loanToken":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2","oracle":"0x9F48b0791C701be7a51B66A4e550A5f0B52A8f5e","irm":"0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC","lltv":"860000000000000000","id":"0xbed21964cf290ab95fa458da6c1f302f2278aec5f897c1b1da3054553ef5e90c","liquidationIncentiveFactor":"1043841336116910229"}, 100000000000000000000000, 0x70997970C51812dc3A010C7d01b50e0d17dc79C8, 0x)\n sender: 0x70997970C51812dc3A010C7d01b50e0d17dc79C8' ], shortMessage: 'The contract function "supplyCollateral" reverted with the following reason:\ntransferFrom reverted', version: '2.21.27', abi: [ { type: 'event', name: 'AccrueInterest', inputs: [ { name: 'id', type: 'bytes32', indexed: true, internalType: 'Id' }, { name: 'prevBorrowRate', type: 'uint256', indexed: false, internalType: 'uint256' }, { name: 'interest', type: 'uint256', indexed: false, internalType: 'uint256' }, { name: 'feeShares', type: 'uint256', indexed: false, internalType: 'uint256' } ], anonymous: false }, { type: 'event', name: 'Borrow', inputs: [ { name: 'id', type: 'bytes32', indexed: true, internalType: 'Id' }, { name: 'caller', type: 'address', indexed: false, internalType: 'address' }, { name: 'onBehalf', type: 'address', indexed: true, internalType: 'address' }, { name: 'receiver', type: 'address', indexed: true, internalType: 'address' }, { name: 'assets', type: 'uint256', indexed: false, internalType: 'uint256' }, { name: 'shares', type: 'uint256', indexed: false, internalType: 'uint256' } ], anonymous: false }, { type: 'event', name: 'CreateMarket', inputs: [ { name: 'id', type: 'bytes32', indexed: true, internalType: 'Id' }, { name: 'marketParams', type: 'tuple', indexed: false, internalType: 'struct MarketParams', components: [ { name: 'loanToken', type: 'address', internalType: 'address' }, { name: 'collateralToken', type: 'address', internalType: 'address' }, { name: 'oracle', type: 'address', internalType: 'address' }, { name: 'irm', type: 'address', internalType: 'address' }, { name: 'lltv', type: 'uint256', internalType: 'uint256' } ] } ], anonymous: false }, { type: 'event', name: 'EnableIrm', inputs: [ { name: 'irm', type: 'address', indexed: true,
|
test / vitest
Process completed with exit code 1.
|