{"_id":"@dydxfoundation-v3/governance","_rev":"2-62cff82a861b17b2d104359c4a5e97a9","name":"@dydxfoundation-v3/governance","dist-tags":{"latest":"1.0.6"},"versions":{"1.0.5":{"name":"@dydxfoundation-v3/governance","version":"1.0.5","keywords":["dydx","ethereum"],"author":{"name":"dYdX Foundation"},"_id":"@dydxfoundation-v3/governance@1.0.5","maintainers":[{"name":"dydxfoundation-v3-admin","email":"admin@dydx.foundation"}],"homepage":"https://github.com/dydxfoundation/governance-contracts#readme","bugs":{"url":"https://github.com/dydxfoundation/governance-contracts/issues"},"dist":{"shasum":"e1f9a44d8180672a9c3fc8a7559d8caba8a71a05","tarball":"https://registry.npmjs.org/@dydxfoundation-v3/governance/-/governance-1.0.5.tgz","fileCount":294,"integrity":"sha512-BqYjjbUpcMDuwEG5afa3Q0KjAAqE/KNsUVQQwr+B9aDDoZGluXbdRfF9puKc2Q3I5GENwIJ9umjOdtl7yrl1Bg==","signatures":[{"sig":"MEQCIFJknwKDmWEYkPgtmiROKAN2z8JpOBhAHAZIwbjeJMq3AiBYQUhC0RlcqWMjlZw5IbBq0XwVdSD2x9Anwv5cftWAfg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":3189509},"main":"dist/src/index.js","gitHead":"43424b7cbfb9439eba3b6641bf18b350f2047edd","scripts":{"abi":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat export-abi","fix":"npm run lint -- --fix","lint":"eslint --ext .ts,.js .","test":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat test","clean":"rm -rf artifacts cache dist types","compile":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat compile","coverage":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat coverage","test:fork":"FORK_MAINNET=true npm run test:full","test:full":"STAKING_TESTS_CHECK_INVARIANTS=true HARDHAT_SIMULATE_AFFECTED_STAKERS=99 npm run test"},"_npmUser":{"name":"dydxfoundation-v3-admin","email":"admin@dydx.foundation"},"repository":{"url":"git+https://github.com/dydxfoundation/governance-contracts.git","type":"git"},"_npmVersion":"10.1.0","description":"dYdX governance smart contracts","directories":{},"_nodeVersion":"20.9.0","dependencies":{"cids":"^1.1.9","urql":"^2.0.6","axios":"^0.24.0","dotenv":"^10.0.0","graphql":"^16.2.0","ethereum-multicall":"^2.9.0","isomorphic-unfetch":"^3.1.0","@chainlink/contracts":"^0.2.1","hardhat-abi-exporter":"^2.4.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","luxon":"^2.0.2","eslint":"^7.32.0","lodash":"^4.17.21","hardhat":"^2.17.2","ts-node":"^10.9.1","typechain":"^5.1.2","dirty-chai":"^2.0.1","typescript":"^4.4.3","@types/luxon":"^2.0.4","@types/mocha":"^9.0.0","bignumber.js":"^9.0.1","eth-sig-util":"^3.0.1","@types/lodash":"^4.14.172","ethereum-waffle":"^3.4.0","reflect-metadata":"^0.1.13","@types/dirty-chai":"^2.0.2","solidity-coverage":"^0.7.17","@typechain/hardhat":"^2.3.0","@typechain/ethers-v5":"^7.1.0","eslint-plugin-import":"^2.24.2","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/parser":"^4.31.1","eslint-config-airbnb-base":"^14.2.1","eslint-plugin-no-only-tests":"^2.6.0","@nomicfoundation/hardhat-verify":"^1.1.1","eslint-config-airbnb-typescript":"^14.0.0","@typescript-eslint/eslint-plugin":"^4.31.1"},"_npmOperationalInternal":{"tmp":"tmp/governance_1.0.5_1699638162593_0.5205589396516781","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@dydxfoundation-v3/governance","version":"1.0.6","keywords":["dydx","ethereum"],"author":{"name":"dYdX Foundation"},"_id":"@dydxfoundation-v3/governance@1.0.6","maintainers":[{"name":"dydxfoundation-v3-admin","email":"admin@dydx.foundation"}],"homepage":"https://github.com/dydxfoundation/governance-contracts#readme","bugs":{"url":"https://github.com/dydxfoundation/governance-contracts/issues"},"dist":{"shasum":"4e8311a9a3105c4e776c6442c73b83005c1f9dde","tarball":"https://registry.npmjs.org/@dydxfoundation-v3/governance/-/governance-1.0.6.tgz","fileCount":3,"integrity":"sha512-aneB+R61KmyEjdqgxXJ/rTIs8O45ShmT+GClJN5wgWsqvres8rO/+0AD2mir7sfRpJeUJhaQoDqIY8i33j3UOQ==","signatures":[{"sig":"MEYCIQDGrKcmHFKQq2eHgyBovgwExLNizQiASsQahTg9WqeaiwIhAOHeMOj5fuLtd7lxn/kX5dCbsmgNp+M9qzru9lfP+IdA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":43716},"main":"dist/src/index.js","gitHead":"804a6e41f96f8b67daeff1d681b4c1c66ceb2547","scripts":{"abi":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat export-abi","fix":"npm run lint -- --fix","lint":"eslint --ext .ts,.js .","test":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat test","clean":"rm -rf artifacts cache dist types","compile":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat compile","coverage":"SKIP_LOAD=true TS_NODE_TRANSPILE_ONLY=1 npx hardhat coverage","test:fork":"FORK_MAINNET=true npm run test:full","test:full":"STAKING_TESTS_CHECK_INVARIANTS=true HARDHAT_SIMULATE_AFFECTED_STAKERS=99 npm run test"},"_npmUser":{"name":"dydxfoundation-v3-admin","email":"admin@dydx.foundation"},"repository":{"url":"git+https://github.com/dydxfoundation/governance-contracts.git","type":"git"},"_npmVersion":"10.5.0","description":"dYdX governance smart contracts","directories":{},"_nodeVersion":"21.7.2","dependencies":{"cids":"^1.1.9","urql":"^2.0.6","axios":"^0.24.0","dotenv":"^10.0.0","graphql":"^16.2.0","@cosmjs/encoding":"^0.31.3","ethereum-multicall":"^2.9.0","isomorphic-unfetch":"^3.1.0","@chainlink/contracts":"^0.2.1","hardhat-abi-exporter":"^2.4.0"},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.4","luxon":"^2.0.2","eslint":"^7.32.0","lodash":"^4.17.21","hardhat":"^2.17.2","ts-node":"^10.9.1","typechain":"^5.1.2","dirty-chai":"^2.0.1","typescript":"^4.4.3","@types/luxon":"^2.0.4","@types/mocha":"^9.0.0","bignumber.js":"^9.0.1","eth-sig-util":"^3.0.1","@types/lodash":"^4.14.172","ethereum-waffle":"^3.4.0","reflect-metadata":"^0.1.13","@types/dirty-chai":"^2.0.2","solidity-coverage":"^0.7.17","@typechain/hardhat":"^2.3.0","@typechain/ethers-v5":"^7.1.0","eslint-plugin-import":"^2.24.2","@nomiclabs/hardhat-ethers":"^2.0.2","@nomiclabs/hardhat-waffle":"^2.0.1","@typescript-eslint/parser":"^4.31.1","eslint-config-airbnb-base":"^14.2.1","eslint-plugin-no-only-tests":"^2.6.0","@nomicfoundation/hardhat-verify":"^1.1.1","eslint-config-airbnb-typescript":"^14.0.0","@typescript-eslint/eslint-plugin":"^4.31.1"},"_npmOperationalInternal":{"tmp":"tmp/governance_1.0.6_1718045816311_0.6871176613608652","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-11-10T17:42:42.504Z","modified":"2024-07-31T06:53:39.513Z","1.0.5":"2023-11-10T17:42:42.949Z","1.0.6":"2024-06-10T18:56:56.537Z"},"bugs":{"url":"https://github.com/dydxfoundation/governance-contracts/issues"},"author":{"name":"dYdX Foundation"},"homepage":"https://github.com/dydxfoundation/governance-contracts#readme","keywords":["dydx","ethereum"],"repository":{"url":"git+https://github.com/dydxfoundation/governance-contracts.git","type":"git"},"description":"dYdX governance smart contracts","maintainers":[{"email":"karan@dydx.foundation","name":"karanambwani"},{"email":"admin@dydx.foundation","name":"dydxfoundation-v3-admin"}],"readme":"# dYdX Governance Smart Contracts\n\nDashboard for interacting with the contracts: https://dydx.community/\n\nDocumentation: https://docs.dydx.community/\n\nDeployed contract addresses: https://docs.dydx.community/dydx-governance/resources/technical-overview\n\n## Audits\n\nAll major new smart contracts have been audited by Peckshield:\n\n* [LiquidityStakingV1](./contracts/liquidity/v1) audited at [59b4ab0](https://github.com/dydxfoundation/governance-contracts/commit/59b4ab086b0603e55290cd49d5035aa6b03568d3)\n* [StarkProxyV1](./contracts/stark-proxy/v1) audited at [3fd209c](https://github.com/dydxfoundation/governance-contracts/commit/3fd209c768da33d138a74092b196c38c970c2342)\n* SafetyModuleV1 audited at [f816626](https://github.com/dydxfoundation/governance-contracts/commit/f8166261211040b70e7a6e40ae31e8abcbfa50ab)\n* MerkleDistributorV1 audited at [3fd209c](https://github.com/dydxfoundation/governance-contracts/commit/3fd209c768da33d138a74092b196c38c970c2342)\n\nThe core governance and token contracts are based on the AAVE governance contracts (audited by Peckshield) and AAVE token contracts (audited by CertiK and Certora).\n\nThe following contracts supporting a potential migration of DYDX from Ethereum to the dYdX Chain (if and when deployed) have also been audited:\n\n* [WrappedEthereumDydxToken](https://github.com/dydxfoundation/governance-contracts/tree/master/contracts/governance/bridge) audited at [7ca15b0](https://github.com/dydxfoundation/governance-contracts/commit/7ca15b0b139e21bf378e12d318b782510c1c605b))\n* [GovernanceStrategyV2](https://github.com/dydxfoundation/governance-contracts/blob/master/contracts/governance/strategy/GovernanceStrategyV2.sol) audited at [7ca15b0](https://github.com/dydxfoundation/governance-contracts/commit/7ca15b0b139e21bf378e12d318b782510c1c605b))\n* [TreasuryBridge](https://github.com/dydxfoundation/governance-contracts/blob/master/contracts/treasury/TreasuryBridge.sol) audited at [7ca15b0](https://github.com/dydxfoundation/governance-contracts/commit/7ca15b0b139e21bf378e12d318b782510c1c605b)\n\nAudit report:\n[https://github.com/dydxfoundation/governance-contracts/tree/master/audits](url)\n\n# Licensing\n\nThe primary license for dYdX Foundation `governance-contracts` is the GNU Affero General Public License v3.0 (`AGPL-3.0`), see [LICENSE](https://github.com/dydxfoundation/governance-contracts/blob/master/LICENSE.md). \n\nOther Exceptions\n\n`contracts/libraries/FullMath.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/misc/StarkExHelperGovernor.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/misc/StarkExRemoverGovernor.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/misc/ClaimsProxy.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/misc/StarkExRemoverGovernorV2.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/misc/TreasuryMerkleClaimProxy.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/test/IFreezableStarkPerpetual.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/test/MockRewardsOracle.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/test/MockStarkPerpetual.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/test/MockSafetyModuleSubclass.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/utils/ReentrancyGuard.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/utils/Math.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/interfaces/IStarkPerpetual.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/interfaces/IRewardsOracle.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/interfaces/IMerkleDistributorV1.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n`contracts/interfaces/ILiquidityStakingV1.sol` is licensed under `Apache-2.0` (as indicated in its SPDX header)\n\n`contracts/dependencies/open-zeppelin/AdminUpgradeabilityProxy.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/BaseUpgradeabilityProxy.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/ERC20.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/ProxyAdmin.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/Ownable.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/SafeERC20.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/SafeMath.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/BaseAdminUpgradeabilityProxy.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/Address.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/AccessControlUpgradeable.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/OwnableUpgradeable.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/Proxy.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/MerkleProof.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/Context.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/Strings.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/UpgradeabilityProxy.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/ERC165.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/IERC165.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/open-zeppelin/AccessControl.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/dependencies/makerdao/multicall2.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/governance/bridge/IBridge.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/treasury/TreasuryVester.sol` is licensed under `MIT` (as indicated in its SPDX header)\n`contracts/interfaces/IERC20.sol` is licensed under `MIT` (as indicated in its SPDX header)\n","readmeFilename":"README.md"}