Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove CIP-42 support #2187

Closed
wants to merge 1 commit into from
Closed

Remove CIP-42 support #2187

wants to merge 1 commit into from

Conversation

shazarre
Copy link
Contributor

@shazarre shazarre commented Apr 26, 2024

This PR removes deprecated CIP-42 transaction type support for Celo in favour of CIP-64.

It still keeps functionality to parse and format existing CIP-42 transactions that can be retrieved directly from the blockchain.


PR-Codex overview

This PR removes support for CIP-42 and treats all transactions with a feeCurrency field as CIP-64.

Detailed summary

  • Removed CIP-42 support
  • Transactions with feeCurrency are treated as CIP-64
  • Updated transaction types and formatters

The following files were skipped due to too many changes: src/celo/types.ts, src/celo/parsers.test.ts, src/celo/getTransaction.test.ts, src/celo/formatters.test.ts, src/celo/serializers.test.ts

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

changeset-bot bot commented Apr 26, 2024

🦋 Changeset detected

Latest commit: baa5116

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
viem Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Apr 26, 2024

@shazarre is attempting to deploy a commit to the wevm Team on Vercel.

A member of the Team first needs to authorize it.

@aaronmgdr
Copy link
Contributor

for more context CIP42 has been deprecated since gingerbreadhardfork and transactions sent to blockchain using this format will not be executed in following hardfork.

github-merge-queue bot pushed a commit to valora-inc/wallet that referenced this pull request May 3, 2024
### Description

We're actually already using CIP64 TXs, but the type we import still is
CIP42.
And it's going away soon: wevm/viem#2187

### Test plan

- Typecheck passes

### Related issues

N/A

### Backwards compatibility

Yes

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [x] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
@jxom jxom force-pushed the main branch 3 times, most recently from f4447d7 to 1a0731f Compare May 8, 2024 01:51
shottah pushed a commit to zed-io/kolektivo that referenced this pull request May 15, 2024
### Description

We're actually already using CIP64 TXs, but the type we import still is
CIP42.
And it's going away soon: wevm/viem#2187

### Test plan

- Typecheck passes

### Related issues

N/A

### Backwards compatibility

Yes

### Network scalability

If a new NetworkId and/or Network are added in the future, the changes
in this PR will:

- [x] Continue to work without code changes, OR trigger a compilation
error (guaranteeing we find it when a new network is added)
@jxom
Copy link
Member

jxom commented May 19, 2024

Superseded by #2277.

@jxom jxom closed this May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants