-
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
Showing
7 changed files
with
51,589 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,27 @@ | ||
import { HardhatUserConfig } from "hardhat/config"; | ||
import { vars, HardhatUserConfig } from "hardhat/config"; | ||
import "@nomicfoundation/hardhat-toolbox"; | ||
|
||
const INFURA_API_KEY = vars.get("INFURA_API_KEY"); | ||
const PRIVATE_KEY = vars.get("PRIVATE_KEY"); | ||
const ETHERSCAN_API_KEY = vars.get("ETHERSCAN_API_KEY"); | ||
|
||
const config: HardhatUserConfig = { | ||
solidity: "0.8.24", | ||
networks: { | ||
mainnet: { | ||
url: `https://mainnet.infura.io/v3/${INFURA_API_KEY}`, | ||
accounts: [PRIVATE_KEY], | ||
}, | ||
sepolia: { | ||
url: `https://sepolia.infura.io/v3/${INFURA_API_KEY}`, | ||
accounts: [PRIVATE_KEY], | ||
}, | ||
}, | ||
etherscan: { | ||
apiKey: { | ||
mainnet: ETHERSCAN_API_KEY, | ||
}, | ||
}, | ||
}; | ||
|
||
export default config; |
4 changes: 4 additions & 0 deletions
4
ignition/deployments/chain-1/artifacts/OffchainResolverModule#OffchainResolver.dbg.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,4 @@ | ||
{ | ||
"_format": "hh-sol-dbg-1", | ||
"buildInfo": "../build-info/eb7a073755a6bca5e391672b677e5a6b.json" | ||
} |
361 changes: 361 additions & 0 deletions
361
ignition/deployments/chain-1/artifacts/OffchainResolverModule#OffchainResolver.json
Large diffs are not rendered by default.
Oops, something went wrong.
51,172 changes: 51,172 additions & 0 deletions
51,172
ignition/deployments/chain-1/build-info/eb7a073755a6bca5e391672b677e5a6b.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"OffchainResolverModule#OffchainResolver": "0x9F823e71024A295c2ab83972761158103562cEB5" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { buildModule } from "@nomicfoundation/hardhat-ignition/modules"; | ||
|
||
const INITIAL_URL = "https://api.starknet.id/crosschain/ethereum/resolve"; | ||
const INITIAL_SIGNER = "0x47D4c3Be0d05D100E739Bda560Fe0243b2702FdE"; | ||
|
||
const OffchainResolverModule = buildModule("OffchainResolverModule", (m) => { | ||
// Deploy the OffchainResolver contract | ||
const offchainResolver = m.contract("OffchainResolver"); | ||
|
||
// Set the URL | ||
m.call(offchainResolver, "setURL", [INITIAL_URL]); | ||
|
||
// Set the signers | ||
m.call(offchainResolver, "setSigners", [[INITIAL_SIGNER]]); | ||
|
||
return { offchainResolver }; | ||
}); | ||
|
||
export default OffchainResolverModule; |