generated from smartcontractkit/foundry-starter-kit
-
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.
Merge branch 'main' of github.com:killroy192/fortis-sdk into feat/fal…
…lback-execution
- Loading branch information
Showing
18 changed files
with
250 additions
and
157 deletions.
There are no files selected for viewing
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
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,19 @@ | ||
module.exports = { | ||
hardhat: { | ||
verifier: ethers.ZeroAddress, | ||
streamId: ethers.ZeroAddress, | ||
datafeed: ethers.ZeroAddress, | ||
}, | ||
"arbitrum-goerli": { | ||
verifier: "0xcB1241Fdf26501fA7A2d47d841dcF72C3CAa9dCe", | ||
streamId: | ||
"0x00029584363bcf642315133c335b3646513c20f049602fc7d933be0d3f6360d3", | ||
datafeed: "0xd30e2101a97dcbAeBCBC04F14C3f624E67A35165", // doesn't work | ||
}, | ||
"arbitrum-sepolia": { | ||
verifier: "0x2ff010DEbC1297f19579B4246cad07bd24F2488A", | ||
streamId: | ||
"0x00027bbaff688c906a3e20a34fe951715d1018d262a5b66e38eda027a674cd1b", | ||
datafeed: "0xd30e2101a97dcbAeBCBC04F14C3f624E67A35165", | ||
}, | ||
}; |
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
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
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,11 @@ | ||
const deploy = require("../../deploy"); | ||
const upgrades = require("../upgrades"); | ||
const config = require("../hardhat/config"); | ||
|
||
async function main() { | ||
const lock = await deploy(config); | ||
|
||
return upgrades(lock, "0xb1d4538b4571d411f07960ef2838ce337fe1e80e"); | ||
} | ||
|
||
main(); |
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,24 @@ | ||
const { ethers } = require("hardhat"); | ||
const { getDeploymentLockData } = require("../../common"); | ||
|
||
/** | ||
* Simple script to fund contract with custom usdc. | ||
* Since usdc decimals is 6, ethers.parseEther("0.0001") will result to fund with 100k usdc | ||
*/ | ||
|
||
async function main() { | ||
const lock = (await getDeploymentLockData())[hre.network.name]; | ||
|
||
const usdc = await hre.ethers.getContractAt("FUSDC", lock.FUSDC.addr); | ||
|
||
usdc.mint(lock.SwapApp.addr, ethers.parseEther("0.0001")); | ||
|
||
console.log("Successfully fund swapApp with USDC"); | ||
} | ||
|
||
// We recommend this pattern to be able to use async/await everywhere | ||
// and properly handle errors. | ||
main().catch((error) => { | ||
console.error(error); | ||
process.exitCode = 1; | ||
}); |
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
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.