Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: script to setup Morpho markets #250

Merged
merged 17 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci-deep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_POLYGONZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}

- name: 'Add test summary'
run: |
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_POLYGONZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
FOUNDRY_FUZZ_RUNS: ${{ github.event.inputs.fuzzRuns || '10000' }}

- name: 'Add test summary'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ jobs:
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_POLYGONZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}

- name: 'Add test summary'
run: |
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
ETH_NODE_URI_BASE: ${{ secrets.ETH_NODE_URI_BASE }}
ETH_NODE_URI_AVALANCHE: ${{ secrets.ETH_NODE_URI_AVALANCHE }}
ETH_NODE_URI_LINEA: ${{ secrets.ETH_NODE_URI_LINEA }}
ETH_NODE_URI_POLYGON_ZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
ETH_NODE_URI_POLYGONZKEVM: ${{ secrets.ETH_NODE_URI_POLYGON_ZKEVM }}
FOUNDRY_FUZZ_RUNS: '5000'

- name: 'Add test summary'
Expand Down
2,392 changes: 2,392 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713517360.json

Large diffs are not rendered by default.

1,380 changes: 1,380 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713517433.json

Large diffs are not rendered by default.

2,392 changes: 2,392 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713517538.json

Large diffs are not rendered by default.

2,392 changes: 2,392 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713518247.json

Large diffs are not rendered by default.

1,684 changes: 1,684 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713518603.json

Large diffs are not rendered by default.

447 changes: 447 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713518790.json

Large diffs are not rendered by default.

574 changes: 574 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713519438.json

Large diffs are not rendered by default.

453 changes: 453 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713521216.json

Large diffs are not rendered by default.

179 changes: 179 additions & 0 deletions broadcast/CreateHypothecatedMorphoMarkets.s.sol/1/run-1713534359.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
"transactions": [
{
"hash": "0xfdb81ee0963651a8bf7e5f9ee3904655ad594d386a30b284c37d8b750641faf2",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"function": "approve(address,uint256)",
"arguments": [
"0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
"1000000000000000000000"
],
"transaction": {
"type": "0x02",
"from": "0xa9ddd91249dfdd450e81e1c56ab60e1a62651701",
"to": "0x0000206329b97db379d5e1bf586bbdb969c63274",
"gas": "0x12025",
"value": "0x0",
"data": "0x095ea7b3000000000000000000000000bbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb00000000000000000000000000000000000000000000003635c9adc5dea00000",
"nonce": "0xcf",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
},
{
"hash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionType": "CALL",
"contractName": null,
"contractAddress": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
"function": null,
"arguments": null,
"transaction": {
"type": "0x02",
"from": "0xa9ddd91249dfdd450e81e1c56ab60e1a62651701",
"to": "0xbbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb",
"gas": "0x22880",
"value": "0x0",
"data": "0xa99aad890000000000000000000000000000206329b97db379d5e1bf586bbdb969c63274000000000000000000000000c69ad9bab1dee23f4605a82b3354f8e40d1e59660000000000000000000000005441731eed05a8208e795086a5df41416dd34104000000000000000000000000870ac11d48b15db9a138cf899d20f13f79ba00bc0000000000000000000000000000000000000000000000000bef55718ad600000000000000000000000000000000000000000000000000000de0b6b3a76400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a6265170100000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000",
"nonce": "0xd0",
"accessList": []
},
"additionalContracts": [],
"isFixedGasLimit": false
}
],
"receipts": [
{
"transactionHash": "0xfdb81ee0963651a8bf7e5f9ee3904655ad594d386a30b284c37d8b750641faf2",
"transactionIndex": "0x0",
"blockHash": "0xbdac1873d4a575656ff40ea453110ab3a14545ff17d39cf97a10d278ec7fd4e9",
"blockNumber": "0x12c7189",
"from": "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
"to": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"cumulativeGasUsed": "0xd09e",
"gasUsed": "0xd09e",
"contractAddress": null,
"logs": [
{
"address": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701",
"0x000000000000000000000000bbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb"
],
"data": "0x00000000000000000000000000000000000000000000003635c9adc5dea00000",
"blockHash": "0xbdac1873d4a575656ff40ea453110ab3a14545ff17d39cf97a10d278ec7fd4e9",
"blockNumber": "0x12c7189",
"transactionHash": "0xfdb81ee0963651a8bf7e5f9ee3904655ad594d386a30b284c37d8b750641faf2",
"transactionIndex": "0x0",
"logIndex": "0x0",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000820000000000000000000000000000000000000000000000800000080000000000000000000000000000000000000000000000004000000000000000000000000010000001000000000000200000000000000000000000000000000000004000",
"type": "0x2",
"effectiveGasPrice": "0x47f087f87"
},
{
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"from": "0xA9DdD91249DFdd450E81E1c56Ab60E1A62651701",
"to": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
"cumulativeGasUsed": "0x19000",
"gasUsed": "0x19000",
"contractAddress": null,
"logs": [
{
"address": "0x870aC11D48B15DB9a138Cf899d20F13F79Ba00BC",
"topics": [
"0x7120161a7b3d31251e01294ab351ef15a41b91659a36032e4641bb89b121e321",
"0xcc7b191903e4750ad71898a1594d912adbb5bb1c6effcde9c38f0a798112edd1"
],
"data": "0x00000000000000000000000000000000000000000000000000000001323c5ccc000000000000000000000000000000000000000000000000000000004d8712ab",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"logIndex": "0x0",
"removed": false
},
{
"address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
"topics": [
"0x9d9bd501d0657d7dfe415f779a620a62b78bc508ddc0891fbbd8b7ac0f8fce87",
"0xcc7b191903e4750ad71898a1594d912adbb5bb1c6effcde9c38f0a798112edd1"
],
"data": "0x00000000000000000000000000000000000000000000000000000001323c5ccc00000000000000000000000000000000000000000000000000004a5c715ace3a0000000000000000000000000000000000000000000000000000000000000000",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"logIndex": "0x1",
"removed": false
},
{
"address": "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb",
"topics": [
"0xedf8870433c83823eb071d3df1caa8d008f12f6440918c20d75a3602cda30fe0",
"0xcc7b191903e4750ad71898a1594d912adbb5bb1c6effcde9c38f0a798112edd1",
"0x000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701",
"0x000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701"
],
"data": "0x0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000000000000000000000000d3bdad3d7b9b3b328c95",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"logIndex": "0x2",
"removed": false
},
{
"address": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"topics": [
"0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",
"0x000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701",
"0x000000000000000000000000bbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb"
],
"data": "0x00000000000000000000000000000000000000000000003627e8f712373c0000",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"logIndex": "0x3",
"removed": false
},
{
"address": "0x0000206329b97DB379d5E1Bf586BbDB969C63274",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x000000000000000000000000a9ddd91249dfdd450e81e1c56ab60e1a62651701",
"0x000000000000000000000000bbbbbbbbbb9cc5e90e3b3af64bdaf62c37eeffcb"
],
"data": "0x0000000000000000000000000000000000000000000000000de0b6b3a7640000",
"blockHash": "0xf28b43b366bea026267c536f646d69c7a5b4467a27af20c7b5d5063039d519f1",
"blockNumber": "0x12c718a",
"transactionHash": "0xa9b52a961e1f8ab65e01c3a53c948f8dd4b95e6096862c398277cb27f281e4d3",
"transactionIndex": "0x0",
"logIndex": "0x4",
"removed": false
}
],
"status": "0x1",
"logsBloom": "0x00000000000000000000000000000080000000200000000000000000000000000000400000000000000000000000000000000000000000000000000020a44000000000000010000000000008800004000004000800200000000000080000000000000000000000000000000000000000000000000000000000000010000000000000000000000008000000000000000000000000000000000000000000000000820000000000000000000020000000000000000000000000800000080000000020000002000000000001000000000000000000004000000000000000000000400010000001000000000000200001000000000000000000000000000000004000",
"type": "0x2",
"effectiveGasPrice": "0x405f03fdc"
}
],
"libraries": [],
"pending": [],
"returns": {},
"timestamp": 1713534359,
"chain": 1,
"multi": false,
"commit": "af30618"
}
Loading
Loading