Skip to content

Commit

Permalink
feat: add 3.2 diffing (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
sakulstra committed Sep 23, 2024
1 parent 05dc053 commit 9c2ee83
Show file tree
Hide file tree
Showing 39 changed files with 3,458 additions and 544 deletions.
1 change: 1 addition & 0 deletions .assets/03ab68b81ca42849abc08c33a4300287e74ac7cb.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/090b03795ed4152b89e4c11fb3177607a3dc6db4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/0b207451ec38eb4a7c392a3d9c43ab7e77836211.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/16332461172bd8fa96ccd1a6269e8b18fab75ffe.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/1f91edaee6d983649ffc6efcc1c3cfc52fa90336.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/22e63860fa8f03629242d7c499e8b53221ee130a.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/308ced77172bdba48f5b56af2f291400a4898f19.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/3c6c8ffc5e0252820fc67caf74d412d2655a94f4.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/456c9815579225e6854461d612aea909fad55ae2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/4d42765d036179693f01f07a11408b5faebbeb5d.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/57895ba97fac9a80ce6bcaaa987ca703be84d466.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/60c7e5557a1f8ff476d4d4d122c044f9c332e983.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/673e539abb0c988dd28cc3517ad407509df7b9de.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/743498707750e9be25e212978ba7b2625e87db30.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/78c0f3b7f769cca3cb57e2779e98f21b765db629.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/7e44ab61c91f5186d639c9f38544daac282df499.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/883b1083f9ea8d228fc17ddb2a1616f552acdc94.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/938dd0b29af2a7ddfe8cbd0de959c4c24b5ea9ef.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/a0e233eeee7bae70256ff5ae2354edc5339f8250.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/a98f1ba4d3ed39788ba7bff5712f2588c446cec2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/b0183da2c2ceafb2cb6dedb62351d0e43197292b.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/b9c5e10663c1fa9da437ac87c85e2ea6b89ce177.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/bb82eaef94e0b09bad831160b0da80f2328914fd.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/bd1b5822b68ff2ca4e907a873d83c012196a789f.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/c31746d494fb67b801488bbfb2d33de52240670c.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions .assets/c61157ea61e7ec553892dfe2072a2d2d59dc8a16.svg

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .assets/d050234e3f8f72294825f3cc061531aee8b21665.svg

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions .assets/fa2d9144d6937d795a23d4864f7e30b8efbfa233.svg

Large diffs are not rendered by default.

1,014 changes: 1,014 additions & 0 deletions src/reports/__snapshots__/diff-report.spec.ts.snap

Large diffs are not rendered by default.

309 changes: 308 additions & 1 deletion src/reports/__snapshots__/diff.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ exports[`diff > should find all the changes 1`] = `
}
`;

exports[`diff > should find all the changes 2`] = `
exports[`diff > should find all the changes in 3.1 1`] = `
{
"reserves": {
"0x3C8Ca53ee5661D29d3d3C0732689a4b86947EAF0": {
Expand Down Expand Up @@ -299,3 +299,310 @@ exports[`diff > should find all the changes 2`] = `
},
}
`;

exports[`diff > should find all the changes in 3.2 1`] = `
{
"eModes": {
"1": {
"borrowableBitmap": {
"from": null,
"to": "1171493",
},
"collateralBitmap": {
"from": null,
"to": "1171493",
},
},
"2": {
"borrowableBitmap": {
"from": null,
"to": "393344",
},
"collateralBitmap": {
"from": null,
"to": "393344",
},
},
"3": {
"borrowableBitmap": {
"from": null,
"to": "524304",
},
"collateralBitmap": {
"from": null,
"to": "524304",
},
},
},
"poolConfig": {
"poolConfiguratorImpl": {
"from": "0x419226e0Ad27f3B2019123f7246a364622b018e5",
"to": "0xc6988946e3E490F3E21F8647Db2b81fD4D014acA",
},
"poolImpl": {
"from": "0xc4F7b5d4ca00eE04cF9887D5D811d3C5d6506477",
"to": "0xf877225774FBf56Db46DB017Ba9455CA64EF4e32",
},
"protocolDataProvider": {
"from": "0x7deEB8aCE4220643D8edeC871a23807E4d006eE5",
"to": "0x21d35DBF31bdfFbe40996C78Acae2058682B0774",
},
},
"reserves": {
"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x0b3F868E0BE5597D5DB7fEB59E1CADBb0fdDa50a": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x172370d5Cd63279eFa6d502DAB29171933a610AF": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x385Eeac5cB85A38A9a07A70c73e0a3271CfB54A7": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x4e3Decbb3645551B8A19f0eA1678079FCB33fB4c": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x85955046DF4668e1DD369D2DE9f3AEB98DD2A369": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xD6DF932A45C0f255f85145f286eA0b292B21C90B": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xE0B52e49357Fd4DAf2c15e02058DCE6BC0057db4": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xE111178A87A3BFf0c8d18DECBa5798827539Ae99": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xa3Fa99A148fA48D14Ed51d610c367C61876997F1": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xc2132D05D31c914a87C6611C10748AEb04B58e8F": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6": {
"interestRateStrategy": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
},
"strategies": {
"0x03b54A6e9a984069379fae1a4fC4dBAE93B3bCCD": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x0b3F868E0BE5597D5DB7fEB59E1CADBb0fdDa50a": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x172370d5Cd63279eFa6d502DAB29171933a610AF": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x385Eeac5cB85A38A9a07A70c73e0a3271CfB54A7": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x4e3Decbb3645551B8A19f0eA1678079FCB33fB4c": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x53E0bca35eC356BD5ddDFebbD1Fc0fD03FaBad39": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x85955046DF4668e1DD369D2DE9f3AEB98DD2A369": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0x9a71012B13CA4d3D0Cdc72A177DF3ef03b0E76A3": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xD6DF932A45C0f255f85145f286eA0b292B21C90B": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xE0B52e49357Fd4DAf2c15e02058DCE6BC0057db4": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xE111178A87A3BFf0c8d18DECBa5798827539Ae99": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xa3Fa99A148fA48D14Ed51d610c367C61876997F1": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xc2132D05D31c914a87C6611C10748AEb04B58e8F": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
"0xfa68FB4628DFF1028CFEc22b4162FCcd0d45efb6": {
"address": {
"from": "0x21128C8f5AE37904c9082D932928FE0C2be1Ff73",
"to": "0x56076f960980d453b5B749CB6A1c4D2E4e138B1A",
},
},
},
}
`;
Loading

0 comments on commit 9c2ee83

Please sign in to comment.