For the complete documentation index, see llms.txt. This page is also available as Markdown.

Smart contract repo setup

COMMANDS

Make sure IDE is up to date. To upgrade node in the Windows powershell:

winget install OpenJS.NodeJS.LTS

winget install OpenJS.NodeJS.LTS




npx hardhat compile
npx hardhat run scripts/deploy-convert.js --network sepolia
npx hardhat run scripts/deploy-convert-factory.js --network sepolia
npx hardhat run scripts/deploy-tokenized-convert.js --network sepolia
npx hardhat run scripts/deploy-tokenized-convert.js --network sepolia
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v2.js --network arbitrum_sepolia
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v3.js --network arbitrum_sepolia
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v4.js --network arbitrum_sepolia
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v4.js --network arbitrum_sepolia
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v4.js --network arbitrum_sepolia
clear
npx hardhat run scripts/deploy-tokenized-stock-arbitrum-v4.js --network arbitrum_sepolia
Get-History | ForEach-Object { $_.CommandLine } | Out-File all-commands.txt


Get-ChildItem -Recurse -File | Where-Object {$_.FullName -notmatch "node_modules|lib"} | Select-Object FullName

HARDHAT [docs]

npm init -y npm install --save-dev hardhat npm install hardhat npx hardhat init npm pkg set type="module"

Select Hardhat 2 (older version) Click enter for absolute project path Select an empty hardhat.config.js

FILES

hardhat.config.js contracts/ConditionalToken.sol


Last updated