@vechain/vebetterdao-contracts
Version:
Open-source repository that houses the smart contracts powering the decentralized VeBetterDAO on the VeChain Thor blockchain.
177 lines (176 loc) • 11.4 kB
JSON
{
"name": "@vechain/vebetterdao-contracts",
"version": "10.0.0",
"main": "dist/cjs/contracts/index.js",
"module": "dist/esm/contracts/index.js",
"types": "dist/esm/contracts/index.d.ts",
"files": [
"dist",
"typechain-types",
"artifacts"
],
"license": "MIT",
"sideEffects": false,
"exports": {
".": {
"import": "./dist/esm/contracts/index.js",
"require": "./dist/cjs/contracts/index.js",
"types": "./dist/esm/contracts/index.d.ts",
"default": "./index.ts"
},
"./typechain-types": {
"import": "./dist/esm/contracts/typechain-types/index.js",
"require": "./dist/cjs/contracts/typechain-types/index.js",
"types": "./dist/esm/contracts/typechain-types/index.d.ts",
"default": "./typechain-types/index.ts"
},
"./factories/*": {
"import": "./dist/esm/contracts/typechain-types/factories/contracts/*.js",
"require": "./dist/cjs/contracts/typechain-types/factories/contracts/*.js",
"types": "./dist/esm/contracts/typechain-types/factories/contracts/*.d.ts",
"default": "./typechain-types/factories/*"
},
"./@openzeppelin/*": {
"import": "./dist/esm/contracts/typechain-types/factories/@openzeppelin/contracts/*.js",
"require": "./dist/cjs/contracts/typechain-types/factories/@openzeppelin/contracts/*.js",
"types": "./dist/esm/contracts/typechain-types/factories/@openzeppelin/contracts/*.d.ts",
"default": "./typechain-types/factories/@openzeppelin/*"
},
"./contracts/*": {
"import": "./dist/esm/contracts/typechain-types/contracts/*.js",
"require": "./dist/cjs/contracts/typechain-types/contracts/*.js",
"types": "./dist/esm/contracts/typechain-types/contracts/*.d.ts",
"default": "./typechain-types/contracts/*"
}
},
"prepublishOnly": "yarn compile",
"scripts": {
"clean": "rm -rf dist artifacts typechain-types cache node_modules",
"build": "npx hardhat compile && tsc -b ./tsconfig.esm.json ./tsconfig.cjs.json",
"test:thor-solo": "npx hardhat test",
"test:hardhat": "npx --node-options=--max-old-space-size=16384 hardhat test --network hardhat",
"test:hardhat:shard": "npx --node-options=--max-old-space-size=16384 hardhat test --network hardhat --grep \"$SHARD\"",
"test:coverage:solidity": "npx --node-options=--max-old-space-size=8192 hardhat coverage",
"coverage:report": "nyc report --reporter=lcov --reporter=text --reporter=html --temp-dir=./coverage",
"compile": "npx hardhat compile && tsc -b ./tsconfig.esm.json ./tsconfig.cjs.json",
"compile:slither": "npx --node-options=\"--max-old-space-size=8192\" hardhat compile && npx --node-options=\"--max-old-space-size=8192\" tsc -b ./tsconfig.esm.json ./tsconfig.cjs.json",
"deploy:hardhat": "npx hardhat run scripts/deploy --network hardhat",
"deploy:local": "npx hardhat run scripts/deploy --network vechain_solo",
"deploy:e2e": "NEXT_PUBLIC_APP_ENV=e2e npx hardhat run scripts/deploy --network vechain_solo",
"deploy:testnet-staging": "npx hardhat run scripts/deploy --network vechain_testnet",
"deploy:testnet": "npx hardhat run scripts/deploy --network vechain_testnet",
"deploy:mainnet": "npx hardhat run scripts/deploy --network vechain_mainnet",
"simulation": "npx hardhat run scripts/runSimulation.ts",
"check-contracts-deployment": "npx hardhat run scripts/checkContractsDeployment.ts",
"check-contracts-deployment:staging": "npx hardhat run scripts/checkContractsDeployment.ts --network vechain_testnet",
"check-contracts-deployment:testnet": "npx hardhat run scripts/checkContractsDeployment.ts --network vechain_testnet",
"check-contracts-deployment:mainnet": "npx hardhat run scripts/checkContractsDeployment.ts --network vechain_mainnet",
"check-contracts-deployment:galactica-test": "npx hardhat run scripts/checkContractsDeployment.ts --network vechain_solo",
"generate-galaxy-member-metadata": "npx hardhat run scripts/metadata/GalaxyMember/generate.ts",
"upload-galaxy-member-metadata": "yarn generate-galaxy-member-metadata && npx hardhat run scripts/metadata/GalaxyMember/upload.ts",
"generate-xapp-metadata": "npx hardhat run scripts/metadata/xApps/generate.ts",
"upload-xapp-metadata": "yarn generate-xapp-metadata && npx hardhat run scripts/metadata/xApps/upload.ts",
"generate-creator-nft-metadata": "npx hardhat run scripts/metadata/CreatorNFT/generate.ts",
"upload-creator-nft-metadata": "npx hardhat run scripts/metadata/CreatorNFT/upload.ts",
"start-round:testnet": "npx hardhat run scripts/emissions/startRound.ts --network vechain_testnet",
"start-round": "npx hardhat run scripts/emissions/startRound.ts",
"advance-round:local": "npx hardhat run scripts/emissions/advanceToNextRound.ts --network vechain_solo",
"get-galaxy-member-owners": "npx hardhat run scripts/galaxyMember/getGMowners.ts --network vechain_mainnet",
"get-galaxy-member-owners:staging": "npx hardhat run scripts/galaxyMember/getGMowners.ts --network vechain_testnet",
"get-galaxy-member-selected-tokens": "npx hardhat run scripts/galaxyMember/getGmSelectedTokens.ts --network vechain_mainnet",
"get-app-shares": "npx hardhat run scripts/xApps/getAppShares.ts --network vechain_mainnet",
"get-all-apps-from-creator": "npx hardhat run scripts/data/getAllAppsFromCreator.ts --network vechain_mainnet",
"get-all-apps-from-creator:staging": "npx hardhat run scripts/data/getAllAppsFromCreator.ts --network vechain_testnet",
"get-challenges-stats:mainnet": "npx hardhat run scripts/data/getChallengesStats.ts --network vechain_mainnet",
"start-solo": "docker compose up -d",
"stop-solo": "docker compose down",
"lint": "eslint . --ext .ts",
"format": "eslint . --ext .ts --fix",
"generate-docs": "npx hardhat docgen",
"upgrade:contract": "npx hardhat run scripts/upgrade/upgrades/\"$CONTRACT_TO_UPGRADE\"/\"$CONTRACT_TO_UPGRADE\"-\"$CONTRACT_VERSION\".ts",
"upgrade:contract:local": "npx hardhat run scripts/upgrade/upgrades/\"$CONTRACT_TO_UPGRADE\"/\"$CONTRACT_TO_UPGRADE\"-\"$CONTRACT_VERSION\".ts --network vechain_solo",
"upgrade:contract:testnet": "npx hardhat run scripts/upgrade/upgrades/\"$CONTRACT_TO_UPGRADE\"/\"$CONTRACT_TO_UPGRADE\"-\"$CONTRACT_VERSION\".ts --network vechain_testnet",
"upgrade:contract:testnet-staging": "npx hardhat run scripts/upgrade/upgrades/\"$CONTRACT_TO_UPGRADE\"/\"$CONTRACT_TO_UPGRADE\"-\"$CONTRACT_VERSION\".ts --network vechain_testnet",
"upgrade:contract:mainnet": "npx hardhat run scripts/upgrade/upgrades/\"$CONTRACT_TO_UPGRADE\"/\"$CONTRACT_TO_UPGRADE\"-\"$CONTRACT_VERSION\".ts --network vechain_mainnet",
"deploy:contract": "npx hardhat run scripts/deploy/deploys/\"$CONTRACT_TO_DEPLOY\".ts",
"call:contract": "npx hardhat run scripts/functionCalls/calls/\"$FUNCTION_TO_CALL\".ts",
"rename-contracts": "ts-node scripts/renameContracts.ts",
"verify:testnet": "npx hardhat verify --network vechain_testnet",
"verify:mainnet": "npx hardhat verify --network vechain_mainnet",
"estimate-voting-gas:mainnet": "npx hardhat run scripts/helpers/estimateVotingGas.ts --network vechain_mainnet",
"setup-environment:local": "npx hardhat run scripts/standalone/setupLocalEnvironment.ts",
"verify:all:contracts:mainnet": "npx hardhat run scripts/verify/verify-all-contracts.ts --network vechain_mainnet",
"verify:all:contracts:testnet-staging": "npx hardhat run scripts/verify/verify-all-contracts.ts --network vechain_testnet",
"check-verification-status:mainnet": "npx hardhat run scripts/verify/check-verification-status.ts --network vechain_mainnet",
"check-verification-status:testnet-staging": "npx hardhat run scripts/verify/check-verification-status.ts --network vechain_testnet",
"endorsement-migration:fetch:local": "npx hardhat run scripts/endorsement-migration/1_fetch.ts --network vechain_solo",
"endorsement-migration:fetch:testnet-staging": "npx hardhat run scripts/endorsement-migration/1_fetch.ts --network vechain_testnet",
"endorsement-migration:fetch:mainnet": "npx hardhat run scripts/endorsement-migration/1_fetch.ts --network vechain_mainnet",
"endorsement-migration:simulate:local": "npx hardhat run scripts/endorsement-migration/2_simulate.ts --network vechain_solo",
"endorsement-migration:simulate:testnet-staging": "npx hardhat run scripts/endorsement-migration/2_simulate.ts --network vechain_testnet",
"endorsement-migration:simulate:mainnet": "npx hardhat run scripts/endorsement-migration/2_simulate.ts --network vechain_mainnet",
"endorsement-migration:seed:local": "npx hardhat run scripts/endorsement-migration/3_seed.ts --network vechain_solo",
"endorsement-migration:seed:testnet-staging": "npx hardhat run scripts/endorsement-migration/3_seed.ts --network vechain_testnet",
"endorsement-migration:seed:mainnet": "npx hardhat run scripts/endorsement-migration/3_seed.ts --network vechain_mainnet",
"endorsement-migration:verify:local": "npx hardhat run scripts/endorsement-migration/4_verify.ts --network vechain_solo",
"endorsement-migration:verify:testnet-staging": "npx hardhat run scripts/endorsement-migration/4_verify.ts --network vechain_testnet",
"endorsement-migration:verify:mainnet": "npx hardhat run scripts/endorsement-migration/4_verify.ts --network vechain_mainnet",
"stress:challenges:local": "NEXT_PUBLIC_APP_ENV=local npx hardhat run scripts/stressTest/stressChallengeSponsored.ts --network vechain_solo",
"stress:challenges:stake:local": "NEXT_PUBLIC_APP_ENV=local npx hardhat run scripts/stressTest/stressChallengeStake.ts --network vechain_solo"
},
"dependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^2.0.2",
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
"@openzeppelin/contracts": "5.0.2",
"@openzeppelin/contracts-upgradeable": "5.0.2",
"@openzeppelin/upgrades-core": "^1.32.5",
"@typechain/hardhat": "^8.0.0",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@vechain/sdk-core": "1.2.0-rc.2",
"@vechain/sdk-hardhat-plugin": "1.2.0-rc.2",
"@vechain/sdk-network": "1.2.0-rc.2",
"archiver": "^7.0.1",
"axios": "^1.15.2",
"chai": "^4.2.0",
"dotenv": "^16.3.1",
"form-data": "^4.0.0",
"hardhat-contract-sizer": "^2.10.0",
"hardhat-gas-reporter": "^1.0.8",
"hardhat-ignore-warnings": "^0.2.11",
"inquirer": "^12.1.0",
"mime-types": "^2.1.35",
"nyc": "^18.0.0",
"solidity-coverage": "^0.8.11",
"solidity-docgen": "^0.6.0-beta.36",
"ts-node": ">=8.0.0",
"typechain": "^8.1.0",
"typescript": ">=4.5.0"
},
"devDependencies": {
"@nomicfoundation/hardhat-toolbox": "^3.0.0",
"@nomicfoundation/hardhat-verify": "^2.0.12",
"@repo/config": "*",
"@repo/eslint-config": "*",
"@repo/utils": "*",
"@typechain/ethers-v6": "^0.4.3",
"@types/archiver": "^7.0.0",
"@types/inquirer": "^9.0.7",
"@types/mime-types": "^2.1.4",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.5.5",
"ethers": "^6.9.0",
"hardhat": "2.19.1",
"prettier": "^3.2.4"
},
"resolutions": {
"elliptic": "^6.6.1",
"parse-duration": "^2.1.3",
"axios": "^1.11.0",
"cookie": "^0.7.1",
"tmp": "^0.2.4",
"hono": "^4.10.2"
}
}