Skip to content
Open
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
10 changes: 9 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
# Private key for the account that will deploy the contracts
# IMPORTANT: Never commit your actual .env file with real private keys to version control!
# Format: 0x followed by 64 hexadecimal characters
PRIVATE_KEY=0x0000000000000000000000000000000000000000000000000000000000000000

# Rayls Devnet
RPC_URL=
CHAIN_ID=

# Wallets
PRIVATE_KEY_OWNER=PASTE_OWNER_PRIVATE_KEY_HERE
PRIVATE_KEY_USER_A=PASTE_USER_A_PRIVATE_KEY_HERE
PRIVATE_KEY_USER_B=PASTE_USER_B_PRIVATE_KEY_HERE
26 changes: 15 additions & 11 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,33 @@ const config: HardhatUserConfig = {
},
},
networks: {
rayls: {
url: "https://devnet-rpc.rayls.com",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [],
chainId: 123123, // Update this if you know the actual chain ID
rayls_devnet: {
url: process.env.RPC_URL || "https://devnet-rpc.rayls.com",
chainId: Number(process.env.CHAIN_ID) || 123123,
accounts: [
process.env.PRIVATE_KEY_OWNER!,
process.env.PRIVATE_KEY_USER_A!,
process.env.PRIVATE_KEY_USER_B!,
].filter(Boolean) as string[],
},
localhost: {
url: "http://127.0.0.1:8545",
},
},
etherscan: {
apiKey: {
rayls: "no-api-key-needed",
rayls_devnet: "no-api-key-needed",
},
customChains: [
{
network: "rayls",
chainId: 123123,
network: "rayls_devnet",
chainId: Number(process.env.CHAIN_ID) || 123123,
urls: {
apiURL: "https://devnet-explorer.rayls.com/api",
browserURL: "https://devnet-explorer.rayls.com"
}
}
]
browserURL: "https://devnet-explorer.rayls.com",
},
},
],
},
paths: {
sources: "./contracts",
Expand Down
Loading