Skip to content

Conversation

pali101
Copy link
Contributor

@pali101 pali101 commented Oct 6, 2025

This PR adds the USDFC contract definition to the wagmi.config.ts file, allowing the CLI to generate typed hooks for interacting with the token. This is a necessary step to integrate features that use USDFC extensions like ERC-2612 and ERC-3009.

This change is dependent on the ABI being available from the filecoin-services repository.

Prerequisite: FilOzone/filecoin-services#263 must be merged first.

Closes #244

@github-project-automation github-project-automation bot moved this to 📌 Triage in FS Oct 6, 2025
@rjan90 rjan90 moved this from 📌 Triage to 🔎 Awaiting review in FS Oct 6, 2025
@rjan90 rjan90 requested a review from hugomrdias October 6, 2025 17:55
@hugomrdias
Copy link
Collaborator

we are moving away from getting all the abis from that repo.

is filfox api compatible with etherscan? https://wagmi.sh/cli/api/plugins/etherscan#tryfetchproxyimplementation

if not can we hardcode impl address and use https://wagmi.sh/cli/api/plugins/blockExplorer

or just do the 2 step in fetch

@pali101 pali101 force-pushed the feat/wagmi-usdfc-config branch from 4a7951b to ff5743e Compare October 8, 2025 14:37
@pali101 pali101 marked this pull request as draft October 8, 2025 14:38
@pali101
Copy link
Contributor Author

pali101 commented Oct 11, 2025

@hugomrdias I've implemented a custom fetcher script that pulls the latest ABIs directly from the Filfox API, removing the dependency on the filecoin-services repo.
The script handles proxy contracts by first finding the implementation address and then fetching its ABI, as you suggested.
This means we can now simply add contract definitions to the wagmi.config.ts, and the script will automatically fetch the correct, up-to-date ABI. I've pushed the changes. Let me know what you think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🔎 Awaiting review

Development

Successfully merging this pull request may close these issues.

ERC20 ABI with extensions for usdfc

2 participants