Commit Graph

46 Commits

Author SHA1 Message Date
c7a285c4a1 chore(scripts): simplify wagmi:gen script by removing redundant .env check 2026-06-02 01:41:01 +00:00
c9ca178b24 chore(scripts): drop redundant lifecycle wrappers, inline submodule setup into wagmi:gen 2026-06-02 01:41:01 +00:00
555eac9e7c fix(scripts): contracts:setup preserves existing .env, handles macOS cp 2026-06-02 01:41:01 +00:00
10569db3b1 chore(scripts): use wagmi binary and stop clobbering submodule .env 2026-06-02 01:41:01 +00:00
e7bf32b6c3 chore(codegen): restore minimal wagmi.config.ts (hardhat plugin)
Reverts wagmi.config.ts to the pre-existing simpler shape (hardhat
plugin auto-discovers artifacts) and drops our hand-rolled readFileSync
bootstrap. The plugin emits ABIs for every compiled contract; unused
ones are tree-shaken out of the production bundle, and the file itself
is gitignored so the extra bytes never hit the repo.

The plugin runs `npx hardhat compile` internally, which loads
hardhat.config.ts at import time and throws when ALCHEMY_API_KEY is
missing — env vars from our wrapper script don't propagate into the
plugin's subprocess. Fix: prewagmi:gen now bootstraps a placeholder
.env inside the submodule (gitignored there via *.env), instead of
running our own `hardhat compile` with inline env vars.

- wagmi.config.ts: hardhat({ project: 'p2pix-smart-contracts' }), no
  explicit contracts/loadAbi
- package.json: contracts:compile -> contracts:setup
  (bun install + create .env if absent); the wagmi hardhat plugin
  handles the actual compile
2026-06-02 01:41:01 +00:00
6c5c487874 chore(codegen): keep src/blockchain/abi.ts as wagmi output + infra polish
Path revert (reduces churn / preserves existing imports):
- wagmi.config.ts: out -> src/blockchain/abi.ts (was src/generated.ts)
- Restore the 4 import sites (sellerMethods, events, provider,
  BuyerSearchComponent) to import from './abi' / '@/blockchain/abi'
- .gitignore: ignore src/blockchain/abi.ts (was src/generated.ts)

The file keeps its original location and is no longer committed — it is
regenerated from the smart-contracts submodule artifacts on every
prestart via `bun run wagmi:gen`.

Infra polish:
- package.json: contracts:compile uses pushd/popd (instead of cd) so the
  shell returns to the project root after the submodule build, even when
  the script is the leaf of a longer chain
- .gitmodules: zkPix submodule pinned to `dev`
2026-06-02 01:41:01 +00:00
4e65ab7ff0 chore(codegen): drop committed src/blockchain/abi.ts in favor of generated src/generated.ts
The 58KB src/blockchain/abi.ts was the output of the legacy hardhat-based
wagmi config and was being committed verbatim. Since wagmi.config.ts now
emits src/generated.ts (gitignored, regenerated on every prestart via
`bun run wagmi:gen`), keeping the old artifact in the tree was just dead
weight.

- Remove src/blockchain/abi.ts from tracking
- Repoint 4 imports (sellerMethods, events, provider, BuyerSearchComponent)
  from `@/blockchain/abi` / `./abi` to `@/generated`
- contracts:compile now injects ALCHEMY_API_KEY=placeholder + a default
  test MNEMONIC so hardhat.config.ts can load without a manual .env in
  the submodule (matches the placeholder values used in p2pix-front-end's
  submodule .env)
2026-06-02 01:41:01 +00:00
7c17e940da chore(codegen): wire wagmi ABI codegen against smart-contracts submodule
- wagmi.config.ts: read ABIs from p2pix-smart-contracts/artifacts/contracts
  (P2Pix, Reputation, MockToken) and emit src/generated.ts with the
  @wagmi/cli actions plugin
- package.json: add scripts
  * contracts:compile — installs submodule deps + runs `hardhat compile`
  * wagmi:gen — runs @wagmi/cli to (re)generate src/generated.ts
  * prewagmi:gen — chains contracts:compile before wagmi:gen
  * prestart — runs wagmi:gen, so `bun start` always has fresh ABIs
- .gitignore: ignore src/generated.ts (regenerated on every prestart)

Note: GraphQL/subgraph codegen is intentionally out of scope here — it
will land in its own branch.
2026-06-02 01:41:01 +00:00
663a0bce46 add @web3-onboard back as stop-gap until reown migration 2026-06-02 01:41:01 +00:00
6caf34b579 switch to bun + adopt e2e dependency stack 2026-06-02 01:41:01 +00:00
Jefferson Mantovani
b655a3c4b6 chore: update app version 2026-01-22 11:08:18 -03:00
Jefferson Mantovani
e67c8fcc77 chore: bump version to 1.1.0 2025-11-06 10:56:42 -03:00
hueso
dd351acb2e Stronger typings💪 2025-06-29 18:19:30 -03:00
Filipe Soccol
2370051243 Update all code to be able to release. Still having issues on Release transaction. 2025-06-28 12:16:36 -03:00
Filipe Soccol
2e246f7560 Removed all tests and test libraries. 2025-06-27 16:42:25 -03:00
Filipe Soccol
c7b2f1643c Updated buy flux. Already able to lock. 2025-06-18 12:01:42 -03:00
Filipe Soccol
fa2def812c Updated code to fetch available offers using subgraph and multicall. 2025-06-06 17:38:00 -03:00
Filipe Soccol
fe06c46c3f Small adjusts and set viem to older stable version. 2025-04-15 16:06:07 -03:00
Filipe Soccol
4908dff58b Adjust linter errors. 2025-04-15 15:40:37 -03:00
Filipe Soccol
9fa2b34a5d Update all to useUSer composabe. Still some bugs to resolve. 2025-04-01 12:04:24 -03:00
hueso
d5f9c8f6fa updated to typescript v5 (for compatibility with web3-onboard) 2025-03-04 18:35:58 -03:00
Filipe Soccol
9cda680494 Fixed errors on deployment.
Some checks failed
Deploy FrontEnd / deploy-staging (push) Has been cancelled
Deploy FrontEnd / deploy-production (push) Has been cancelled
CI script / lint (push) Has been cancelled
CI script / build (push) Has been cancelled
CI script / SonarCloud (push) Has been cancelled
2024-11-11 11:06:52 -03:00
Filipe Soccol
659db5ef04 Total overhaul 2024-11-07 11:35:15 -03:00
Filipe Soccol
9205909f9f Updated Ethers to last version. 2024-11-05 16:59:30 -03:00
RcleydsonR
34c5ce3b87 Add tooltip to inform what a locked value is 2023-02-27 09:43:55 -03:00
enzoggqs
7e88c459bb Fix topBar behavior 2023-02-03 17:44:02 -03:00
RcleydsonR
361b476d15 Change CI pipeline trigger and remove jest dependencies from package json, also add sonarcloud badges on readme 2023-01-27 20:08:39 -03:00
RcleydsonR
db2d15b318 Merge branch 'develop' into setup-tests 2023-01-27 19:12:32 -03:00
RcleydsonR
5b2ca86129 Add CI pipeline to test and upload coverage 2023-01-26 18:31:32 -03:00
EsioFreitas
80e3296131 Merge branch 'develop' of https://github.com/liftlearning/P2Pix-Front-End into faq 2023-01-25 17:35:31 -03:00
EsioFreitas
6793684c49 add faq 2023-01-25 17:33:57 -03:00
RcleydsonR
f67fade5ee Add package-lock json that is necessary for vite build 2023-01-24 22:31:39 -03:00
RcleydsonR
6b8bbc9e6a Add vitest as test framework and remove jest and its dependencies 2023-01-24 22:23:15 -03:00
RcleydsonR
8b5ba69267 Add environment plugin to change from import meta env to process env 2023-01-24 18:48:13 -03:00
RcleydsonR
65fc11a64f Merge branch 'develop' into setup-tests 2023-01-24 17:13:00 -03:00
enzoggqs
d66459bea9 update TopBar component tests 2023-01-12 15:15:05 -03:00
RcleydsonR
aedd4bc532 Add initial alchemy structure code 2023-01-12 00:32:52 -03:00
enzoggqs
06eac3b84c Create tests setup 2023-01-11 13:13:32 -03:00
EsioFreitas
979e5f9fb1 chore: add axios 2022-12-07 20:47:51 -03:00
RcleydsonR
9593eea6b9 remove fix from lint script on package json 2022-11-26 14:26:19 -03:00
RcleydsonR
91283305b9 add connect to ethers provider function and use pinia as ether params store
Co-authored-by: geovanne97 <geovannessaraiva97@gmail.com>
Co-authored-by: brunoedcf <brest.dallacosta@outlook.com>
2022-11-15 17:06:08 -03:00
RcleydsonR
4ce650f0d2 configuring connection to metamask wallet 2022-11-11 16:05:01 -03:00
RcleydsonR
d792eedd73 add component to generate a static pix qrcode 2022-11-04 17:44:59 -03:00
RcleydsonR
810f44071b generate qr code from pix function implementation
can't use the qrcode-pix library because of a broken dependency based on crc v4.1.1, so, needed to use a previous version from crc
2022-11-04 01:09:33 -03:00
RcleydsonR
63c5669026 fix: lint error by adding node env in eslint config 2022-10-24 21:34:18 -03:00
EsioFreitas
12f599d31e chore: config project 2022-10-24 15:33:24 -03:00