Skip to content
Draft
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
19 changes: 19 additions & 0 deletions backend/hardhat.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import '@oasisprotocol/sapphire-hardhat'
import '@nomicfoundation/hardhat-ethers'
import '@nomicfoundation/hardhat-verify'
import { promises as fs } from 'fs'
import path from 'path'

Expand Down Expand Up @@ -91,6 +92,24 @@ const config: HardhatUserConfig = {
require: ['ts-node/register/files'],
timeout: 50_000,
},
sourcify: {
enabled: true,
},
etherscan: {
apiKey: {
'Oasis Sapphire Testnet': 'abc',
},
customChains: [
{
network: 'Oasis Sapphire Testnet',
chainId: 23295,
urls: {
apiURL: 'https://testnet.sapphire.oasis.dev/',
browserURL: 'https://explorer.oasis.io/testnet/sapphire',
},
},
],
},
}

export default config
4 changes: 3 additions & 1 deletion backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@
"build:compile": "hardhat compile --quiet",
"build": "npm-run-all build:compile",
"test": "hardhat test",
"prepublishOnly": "pnpm build"
"prepublishOnly": "pnpm build",
"verify": "hardhat verify --network sapphire-testnet 0xdAB5845136b3102E63023BB2A2405cb71608605d '0x8e29375FE5Db7eBb1b5eF24B7D397bBF0B01De09'"
},
"dependencies": {
"@openzeppelin/contracts": "^4.9.5",
"ethers": "^6.11.1"
},
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.5",
"@nomicfoundation/hardhat-verify": "^2.0.5",
"@oasisprotocol/sapphire-contracts": "^0.2.7",
"@oasisprotocol/sapphire-hardhat": "^2.19.4",
"@typechain/ethers-v6": "^0.5.1",
Expand Down
80 changes: 80 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.