Commit Graph

20 Commits

Author SHA1 Message Date
arthur
9cc62efb8a fix_lint (#11)
Co-authored-by: Arthur Abeilice <afa7789@gmail.com>
Reviewed-on: https://git.p2pix.co/doiim/p2pix-smart-contracts/pulls/11
Co-authored-by: arthur <abeilice@kosmos.org>
Co-committed-by: arthur <abeilice@kosmos.org>
2026-05-29 20:09:12 +00:00
aa96fd89da feat: add deployment configurations for Goerli, Polygon Mumbai, RSK Testnet, and Sepolia networks
refactor: update Hardhat config for cleaner network setup
chore: remove outdated MockToken documentation
fix: correct DEFAULT_SUPPLY initialization in MockToken module
2026-05-29 18:15:21 +00:00
c5766dc226 solhint 2026-05-28 15:53:48 -03:00
131f53a731 feat: add P2PIXProd Ignition module for deploys without MockToken 2026-05-22 00:06:41 -03:00
13d1d16084 feat: migrate deployment to Hardhat Ignition
Replace the imperative deploy scripts with Hardhat Ignition modules:
- ignition/modules/{MockToken,Reputation,P2PIX}.ts orchestrate the full
  deployment graph; P2PIX.ts wires MockToken + Reputation and deploys
  P2PIX via its constructor
- ignition/parameters/localhost.json holds per-network values
  (defaultBlocks, validSigners, MockToken supply)
- swap hardhat-toolbox for the individual plugins that Ignition needs;
  add hardhat-verify (v2) and bump hardhat/hardhat-tracer accordingly
- delete scripts/1-deploy-mockToken.ts and scripts/2-deploy-p2pix.ts
- add deploy:{localhost,goerli,sepolia,mumbai} npm scripts
- include ignition/**/* in tsconfig.json
- gitignore ignition/deployments/chain-31337/ (ephemeral local state)

This branch carries the deployment-tooling migration only — the contract
is still the original constructor-based P2PIX. Proxy / UUPS deploy
support will land alongside the upgradeable contract change.
2026-05-22 00:06:41 -03:00
hueso
4bf8841a89 OZ v5.5.0 2026-03-27 14:23:12 -03:00
hueso
0151910b0d bump OZ version to 5.5.0-rc.1 2026-03-27 14:23:12 -03:00
hueso
5737ab1623 import ECDSA, ERC2771, ERC20, MerkleProofLib from @openzeppelin 2026-03-27 14:23:12 -03:00
hueso
183db96fda WIP: use openzeppelin contracts 2026-03-27 14:23:12 -03:00
hueso
f924593ee2 Ethers v5 -> v6 migration
Updated dependencies and removed unused ones.
2025-08-02 21:09:40 -03:00
hueso
811d5344a3 Partial hardhat -> viem migration for tests.
Typescript updated to v5.
Notably all calls to p2pix.callStatic.getStr() were replaced by viem.stringToHex() due to bug in ethers (https://github.com/ethers-io/ethers.js/issues/4965)
Full migration to viem might not be possible currently due to hard-chai-matchers incompatibility:
> The hardhat-chai-matchers plugin is designed to work with hardhat-ethers. Attempting to use it in conjunction with hardhat-viem results in compatibility issues.
https://hardhat.org/hardhat-chai-matchers/docs/overview
2025-06-11 11:55:24 -03:00
hueso
1ffa9c6b5c update documentation 2024-02-13 16:35:16 -03:00
PedroCailleret
440048453b Types cleanup 2023-05-19 00:49:29 -03:00
PedroCailleret
8310e013f6 Enhanced integration & optimized testing 2023-02-14 18:40:02 -03:00
PedroCailleret
6fe1e794d0 V2 Release 2023-01-26 21:40:17 -03:00
PedroCailleret
d541e7b70c feat: deployment scripts fixed and lock fx unit tests added 2022-12-07 12:43:57 -03:00
PedroCailleret
ac9bc6fa46 hardhat-tracer added to dev branch 2022-12-03 00:59:18 -03:00
PedroCailleret
b1fe0a574c refactor: typescript refactoring ♻️ 2022-11-14 09:34:53 -03:00
Filipe Soccol
0f35eec623 Adding price to deposits and add token transfers 2022-11-07 16:40:10 -03:00
Filipe Soccol
dd4a6fa66e First commit with contracts and a simple test. 2022-10-24 17:16:25 -03:00