-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1097 from lukso-network/improve-erc20-page
Improve readability of ERC20/ERC721 <> LSP7/LSP8 table
- Loading branch information
Showing
4 changed files
with
350 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,176 @@ | ||
import React from 'react'; | ||
|
||
export default function Erc20LSP7Table() { | ||
return ( | ||
<table width="100%"> | ||
<thead> | ||
<tr> | ||
<th>ERC20 Function</th> | ||
<th>LSP7 Equivalent</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td> | ||
<code>name()</code> | ||
</td> | ||
<td> | ||
<code>getData(bytes32 dataKey)</code> with <br />{' '} | ||
<code>dataKey = keccak256('LSP4TokenName')</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>symbol()</code> | ||
</td> | ||
<td> | ||
<code>getData(bytes32 dataKey)</code> with <br />{' '} | ||
<code>dataKey = keccak256('LSP4TokenSymbol')</code> | ||
</td> | ||
</tr> | ||
<tr style={{ backgroundColor: '#dcfce7' }}> | ||
<td> | ||
<code>decimals()</code> | ||
</td> | ||
<td> | ||
<code>decimals()</code> | ||
</td> | ||
</tr> | ||
<tr style={{ backgroundColor: '#dcfce7' }}> | ||
<td> | ||
<code>totalSupply()</code> | ||
</td> | ||
<td> | ||
<code>totalSupply()</code> | ||
</td> | ||
</tr> | ||
<tr style={{ backgroundColor: '#dcfce7' }}> | ||
<td> | ||
<code>balanceOf(address account)</code> | ||
</td> | ||
<td> | ||
<code>balanceOf(address account)</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>approve(address spender, uint256 amount)</code> | ||
</td> | ||
<td> | ||
<code> | ||
authorizeOperator(address spender, | ||
<br /> | ||
uint256 amount, | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>allowance(address owner, address spender)</code> | ||
</td> | ||
<td> | ||
<code> | ||
authorizedAmountFor(address spender, | ||
<br /> | ||
address owner) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>No equivalent</i> | ||
</td> | ||
<td> | ||
<code>getOperatorsOf(address owner)</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>No equivalent</i> | ||
</td> | ||
<td> | ||
<code> | ||
revokeOperator(address spender, | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>No equivalent</i> | ||
</td> | ||
<td> | ||
<code> | ||
increaseAllowance(address spender, | ||
<br /> | ||
uint256 addedAmount, | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>No equivalent</i> | ||
</td> | ||
<td> | ||
<code> | ||
decreaseAllowance(address spender, | ||
<br /> | ||
uint256 subtractedAmount, | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>transfer(address to, uint256 amount)</code> | ||
</td> | ||
<td> | ||
<code> | ||
transfer(address from, | ||
<br /> | ||
address to, | ||
<br /> | ||
uint256 amount, | ||
<br /> | ||
bool force | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<code>transferFrom(address from, address to, uint256 amount)</code> | ||
</td> | ||
<td> | ||
<code> | ||
transfer(address from, | ||
<br /> | ||
address to, | ||
<br /> | ||
uint256 amount, | ||
<br /> | ||
bool force | ||
<br /> | ||
bytes memory data) | ||
</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td> | ||
<i>No equivalent</i> | ||
</td> | ||
<td> | ||
<code>batchCalls(bytes[] memory data)</code> | ||
</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
); | ||
} |
Oops, something went wrong.