Skip to content

Commit

Permalink
Edit CIPs && CIP-143: MCOPY (0x5e) Opcode for Efficient Memory Copy (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ChenxingLi authored May 15, 2024
1 parent 91a5d1f commit 6e8844c
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CIPs/cip-142.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
CIP No.: 142
Title: Transient storage opcodes
Title: Transient Storage Opcodes
Author: Chenxing Li (@ChenxingLi)
Status: Draft
Type: Spec Breaking
Expand Down
42 changes: 42 additions & 0 deletions CIPs/cip-143.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
CIP No.: 143
Title: MCOPY (0x5e) Opcode for Efficient Memory Copy
Author: Chenxing Li (@ChenxingLi)
Status: Draft
Type: Spec Breaking
Created: 2023-05-15
Required CIPs: 141
---

## Simple Summary
Introduce the `MCOPY (0x5e)` instruction for efficient memory copy.

## Abstract
Introduce the `MCOPY (0x5e)` instruction as [EIP-5656](https://eips.ethereum.org/EIPS/eip-5656).

## Motivation
Currently, the Solidity compiler generates bytecode for the newest EVM by default, which has activated EIP-5656 in the Cancun upgrade. Supporting this opcode can achieve maximum compatibility with Ethereum.

## Specification
Same as [EIP-5656](https://eips.ethereum.org/EIPS/eip-5656).

## Rationale
N/A

## Backwards Compatibility
This CIP is Spec Breaking.

## Test Cases
<!--Test cases for an implementation are mandatory for CIPs that are affecting consensus changes. Other CIPs can choose to include links to test cases if applicable.-->
N/A

## Implementation
<!--The implementations must be completed before any CIP is given status "Final", but it need not be completed before the CIP is accepted. While there is merit to the approach of reaching consensus on the specification and rationale before writing code, the principle of "rough consensus and running code" is still useful when it comes to resolving many discussions of API details.-->
N/A

## Security Considerations
<!--All CIPs must contain a section that discusses the security implications/considerations relevant to the proposed change. Include information that might be important for security discussions, surfaces risks and can be used throughout the life cycle of the proposal. E.g. include security-relevant design decisions, concerns, important discussions, implementation-specific guidance and pitfalls, an outline of threats and risks and how they are being addressed. CIP submissions missing the "Security Considerations" section will be rejected. a CIP cannot proceed to status "Final" without a Security Considerations discussion deemed sufficient by the reviewers.-->
N/A

## Copyright
Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ These CIPs are primarily aimed at following EIPs to maintain compatibility with
| :-----: | :----- | :-----: |
| [23](CIPs/cip-23.md) | Hashing and Signing Typed Structured Data | [EIP-712](https://eips.ethereum.org/EIPS/eip-712)
| [119](CIPs/cip-119.md) | `PUSH0 (0x5f)` Instruction | [EIP-3855](https://eips.ethereum.org/EIPS/eip-3855)
| [142](CIPs/cip-142.md) | Transient Storage Opcodes | [EIP-1153](https://eips.ethereum.org/EIPS/eip-1153)
| [143](CIPs/cip-143.md) | `MCOPY (0x5e)` Opcode for Efficient Memory Copy | [EIP-5656](https://eips.ethereum.org/EIPS/eip-5656)
| [1820](CIPs/cip-1820.md) | Migrate ERC1820 to Conflux | [EIP-1820](https://eips.ethereum.org/EIPS/eip-1820)


Expand All @@ -76,9 +78,12 @@ These CIPs are either in the midst of active development or have been fully deve
| [131](CIPs/cip-131.md) | Retain Whitelist on Contract Deletion | Developed |
| [132](CIPs/cip-132.md) | Fix Static Context Check for Internal Contracts | Developed |
| [133](CIPs/cip-133.md) | Enhanced Block Hash Query | Developed |
| [136](CIPs/cip-136.md) | Increase PoS Retire Period | Draft |
| [137](CIPs/cip-137.md) | Base Fee Sharing in CIP-1559 | Draft |
| [1559](CIPs/cip-1559.md) | Fee market change for Conflux | Draft |
| [136](CIPs/cip-136.md) | Increase PoS Retire Period | Developed |
| [137](CIPs/cip-137.md) | Base Fee Sharing in CIP-1559 | Developed |
| [141](CIPs/cip-141.md) | Disable Subroutine Opcodes | Draft |
| [142](CIPs/cip-142.md) | Transient Storage Opcodes | Draft |
| [143](CIPs/cip-143.md) | `MCOPY (0x5e)` Opcode for Efficient Memory Copy | Draft |
| [1559](CIPs/cip-1559.md) | Fee market change for Conflux | Developed |

### Activated

Expand Down

0 comments on commit 6e8844c

Please sign in to comment.