-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b51416
commit 8d388a3
Showing
26 changed files
with
2,368 additions
and
12 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
broadcast/DeployMockSSROracle.sol/11155111/run-1731790385.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"transactions": [ | ||
{ | ||
"hash": "0x7c953d5c61c2970aac2985e6398318b7d483bba7dc7de974a2d7c92f72b9f944", | ||
"transactionType": "CREATE", | ||
"contractName": "MockSSROracle", | ||
"contractAddress": "0xddf89ed9d3de427d25b3f8c91232f23966a12d82", | ||
"function": null, | ||
"arguments": [ | ||
"1000000001996917783620820123", | ||
"1009386687523739115761266631", | ||
"1731317843" | ||
], | ||
"transaction": { | ||
"from": "0x1313c4e7cecef7835d0a8a3491e81178e79e1a6b", | ||
"gas": "0x1dd19", | ||
"value": "0x0", | ||
"input": "0x608060405234801561001057600080fd5b5060405161014e38038061014e83398101604081905261002f91610092565b6000805464ffffffffff909216600160d81b026001600160d81b036001600160781b039094166c01000000000000000000000000026001600160d81b03199093166001600160601b03909516949094179190911791909116919091179055610101565b6000806000606084860312156100a757600080fd5b83516001600160601b03811681146100be57600080fd5b60208501519093506001600160781b03811681146100db57600080fd5b604085015190925064ffffffffff811681146100f657600080fd5b809150509250925092565b603f8061010f6000396000f3fe6080604052600080fdfea264697066735822122023cae1d8427028c8c851806cbfb8f7ed757e447649a78e5437079898ff53b4fd64736f6c634300081200330000000000000000000000000000000000000000033b2e3cbb86fa61ca611c9b00000000000000000000000000000000000000000342f1f1f97cb702e1896fc7000000000000000000000000000000000000000000000000000000006731d053", | ||
"nonce": "0x0", | ||
"chainId": "0xaa36a7" | ||
}, | ||
"additionalContracts": [], | ||
"isFixedGasLimit": false | ||
} | ||
], | ||
"receipts": [ | ||
{ | ||
"status": "0x1", | ||
"cumulativeGasUsed": "0x91969f", | ||
"logs": [], | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"type": "0x2", | ||
"transactionHash": "0x7c953d5c61c2970aac2985e6398318b7d483bba7dc7de974a2d7c92f72b9f944", | ||
"transactionIndex": "0x3b", | ||
"blockHash": "0xcda1ebe546fb3d046f9b9dca56ef39285b18997fa82657f7cb1fe4982c391755", | ||
"blockNumber": "0x6c33be", | ||
"gasUsed": "0x16f1c", | ||
"effectiveGasPrice": "0x3d0347b", | ||
"from": "0x1313c4e7cecef7835d0a8a3491e81178e79e1a6b", | ||
"to": null, | ||
"contractAddress": "0xddf89ed9d3de427d25b3f8c91232f23966a12d82" | ||
} | ||
], | ||
"libraries": [], | ||
"pending": [], | ||
"returns": {}, | ||
"timestamp": 1731790385, | ||
"chain": 11155111, | ||
"commit": "6b51416" | ||
} |
50 changes: 50 additions & 0 deletions
50
broadcast/DeployMockSSROracle.sol/11155111/run-latest.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"transactions": [ | ||
{ | ||
"hash": "0x7c953d5c61c2970aac2985e6398318b7d483bba7dc7de974a2d7c92f72b9f944", | ||
"transactionType": "CREATE", | ||
"contractName": "MockSSROracle", | ||
"contractAddress": "0xddf89ed9d3de427d25b3f8c91232f23966a12d82", | ||
"function": null, | ||
"arguments": [ | ||
"1000000001996917783620820123", | ||
"1009386687523739115761266631", | ||
"1731317843" | ||
], | ||
"transaction": { | ||
"from": "0x1313c4e7cecef7835d0a8a3491e81178e79e1a6b", | ||
"gas": "0x1dd19", | ||
"value": "0x0", | ||
"input": "0x608060405234801561001057600080fd5b5060405161014e38038061014e83398101604081905261002f91610092565b6000805464ffffffffff909216600160d81b026001600160d81b036001600160781b039094166c01000000000000000000000000026001600160d81b03199093166001600160601b03909516949094179190911791909116919091179055610101565b6000806000606084860312156100a757600080fd5b83516001600160601b03811681146100be57600080fd5b60208501519093506001600160781b03811681146100db57600080fd5b604085015190925064ffffffffff811681146100f657600080fd5b809150509250925092565b603f8061010f6000396000f3fe6080604052600080fdfea264697066735822122023cae1d8427028c8c851806cbfb8f7ed757e447649a78e5437079898ff53b4fd64736f6c634300081200330000000000000000000000000000000000000000033b2e3cbb86fa61ca611c9b00000000000000000000000000000000000000000342f1f1f97cb702e1896fc7000000000000000000000000000000000000000000000000000000006731d053", | ||
"nonce": "0x0", | ||
"chainId": "0xaa36a7" | ||
}, | ||
"additionalContracts": [], | ||
"isFixedGasLimit": false | ||
} | ||
], | ||
"receipts": [ | ||
{ | ||
"status": "0x1", | ||
"cumulativeGasUsed": "0x91969f", | ||
"logs": [], | ||
"logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", | ||
"type": "0x2", | ||
"transactionHash": "0x7c953d5c61c2970aac2985e6398318b7d483bba7dc7de974a2d7c92f72b9f944", | ||
"transactionIndex": "0x3b", | ||
"blockHash": "0xcda1ebe546fb3d046f9b9dca56ef39285b18997fa82657f7cb1fe4982c391755", | ||
"blockNumber": "0x6c33be", | ||
"gasUsed": "0x16f1c", | ||
"effectiveGasPrice": "0x3d0347b", | ||
"from": "0x1313c4e7cecef7835d0a8a3491e81178e79e1a6b", | ||
"to": null, | ||
"contractAddress": "0xddf89ed9d3de427d25b3f8c91232f23966a12d82" | ||
} | ||
], | ||
"libraries": [], | ||
"pending": [], | ||
"returns": {}, | ||
"timestamp": 1731790385, | ||
"chain": 11155111, | ||
"commit": "6b51416" | ||
} |
268 changes: 268 additions & 0 deletions
268
broadcast/DeployOnScrollDevnet.sol/2227728/run-1731792802.json
Large diffs are not rendered by default.
Oops, something went wrong.
268 changes: 268 additions & 0 deletions
268
broadcast/DeployOnScrollDevnet.sol/2227728/run-1731792841.json
Large diffs are not rendered by default.
Oops, something went wrong.
268 changes: 268 additions & 0 deletions
268
broadcast/DeployOnScrollDevnet.sol/2227728/run-1731792986.json
Large diffs are not rendered by default.
Oops, something went wrong.
268 changes: 268 additions & 0 deletions
268
broadcast/DeployOnScrollDevnet.sol/2227728/run-latest.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.18; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {MockSSROracle} from "src/mock-ssr-oracle.sol"; | ||
|
||
contract DeployMockSSROracle is Script { | ||
function run() external { | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
MockSSROracle o = new MockSSROracle(1000000001996917783620820123 ,1009386687523739115761266631, 1731317843); | ||
vm.stopBroadcast(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity 0.8.18; | ||
|
||
import {Script} from "forge-std/Script.sol"; | ||
import {PriceOracle} from "src/PriceOracle.sol"; | ||
import {LendNowFactory} from "src/LendNowFactory.sol"; | ||
import {MockPyth} from "test/MockPyth.sol"; | ||
import {ERC20PoolFactory} from "ajna-core/src/ERC20PoolFactory.sol"; | ||
import {ERC20} from "lib/openzeppelin-contracts/contracts/token/ERC20/ERC20.sol"; | ||
import {Scroll_L1SLOAD_USDS_RateHook} from "src/hooks/Scroll_L1SLOAD_USDS_RateHook.sol"; | ||
|
||
contract DeployOnScrollDevnet is Script { | ||
function run() external { | ||
vm.startBroadcast(vm.envUint("PRIVATE_KEY")); | ||
MockPyth pyth = new MockPyth(15 * 60, 1); | ||
ERC20 mockbwAJNA = new ERC20("Mock bwAJNA", "MbwAJNA"); | ||
ERC20PoolFactory ajnaFactory = new ERC20PoolFactory(address(mockbwAJNA)); | ||
PriceOracle p = new PriceOracle(address(pyth)); | ||
LendNowFactory factory = new LendNowFactory(address(ajnaFactory), address(p)); | ||
Scroll_L1SLOAD_USDS_RateHook i = new Scroll_L1SLOAD_USDS_RateHook(0xDDF89eD9D3dE427d25b3f8C91232F23966a12d82); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pragma solidity ^0.8.0; | ||
|
||
interface IInterestHook { | ||
function getRate() external returns (uint256); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.