Skip to content
This repository has been archived by the owner on Nov 18, 2022. It is now read-only.

docs: what is a sUDT-ERC20 Proxy Contract #168

Merged
merged 1 commit into from
Jun 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions solidity/erc20/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## sUDT-ERC20 Proxy Contract

The [sUDT-ERC20 Proxy Contract](./SudtERC20Proxy_UserDefinedDecimals.sol) is a special smart contract written in Solidity, which is designed to utilize the Godwoken and Polyjuice frameworks. This contract provides a way for EVM code to interact with ERC20 standard interface that is interfacing directly with Polyjuice to control sUDT tokens on Layer 2 as if they were ERC20 tokens.

For security reason, developers should only use this [SudtERC20Proxy_UserDefinedDecimals bytecode](./SudtERC20Proxy_UserDefinedDecimals.bin) which code hash will be checked in `transfer_to_any_sudt` pre-compiled contract.

## Compile Solidity Contract in ethereum/solc:0.8.7 docker image
Expand Down