Skip to content

Commit

Permalink
text updates
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanNero committed Jan 16, 2024
1 parent 77ac5f0 commit 38de726
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
4 changes: 2 additions & 2 deletions packages/nextjs/components/EIPs/Delegatecall/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const Text = () => {
<a className="text-gray-500 hover:text-gray-400" href="https://solidity-by-example.org/call/">
call
</a>
, the main difference is that the logic in the target contract is executed with the context of the calling
contract. Meaning a contract that uses{" "}
, the main difference is that the logic in the target contract is executed with the context of the contract that
is calling it. Meaning a contract that uses{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://solidity-by-example.org/delegatecall/">
delegatecall
</a>{" "}
Expand Down
43 changes: 30 additions & 13 deletions packages/nextjs/components/EIPs/Token/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,22 +75,35 @@ const Text = () => {
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#transfer">
transfer
</a>{" "}
sends `amount` of tokens to the `to` address,&nbsp;
sends `amount` of tokens to the inputted address,&nbsp;
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#transferFrom">
transferFrom
</a>{" "}
transfers `amount` of tokens from the `from` address to the `to` address,&nbsp;
transfers an inputted amount of tokens from one address to another address.,&nbsp;
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#approve">
approve
</a>{" "}
allows the `spender` to spend `amount` of tokens on behalf of the owner, and finally{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#allowance">
allowance
</a>{" "}
allows you to view the amount of tokens one address may spend on behalf of another address.{" "}
allows you to view the amount of tokens one address may spend on behalf of another address. Please note, there
are also two events that must be implemented.{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#transfer-1">
Transfer
</a>{" "}
must be emitted when any tokens are transferred and{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#approval">
Approval
</a>{" "}
must be emitted when the{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#approve">
approve
</a>{" "}
function is called.
</div>
<div className="mt-4">
There are 3 additional functions you can interact with on this page, the first two are commonly used in token
There are a few other functions you can interact with on this page, the first two are commonly used in token
contracts but are not required for the contract to be EIP 20 compliant.{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#mint">
mint
Expand All @@ -100,12 +113,13 @@ const Text = () => {
{" "}
burn
</a>{" "}
acts as the inverse of this, allowing anyone to get rid of an amount of tokens they own. Typically, developers{" "}
acts as the inverse of this, allowing anyone to render an amount of tokens they own unusable. A common way
developers do this is by making their
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#burn">
{" "}
burn
</a>{" "}
logic will send tokens to an address no one has access to such as&nbsp;
logic send tokens to an address no one has access to such as&nbsp;
<a
className="text-gray-500 hover:text-gray-400"
href="https://etherscan.io/address/0x000000000000000000000000000000000000dead"
Expand All @@ -119,9 +133,9 @@ const Text = () => {
>
swap
</a>
. I&apos;ve created this with the sole purpose of allowing users to get familar with the ERC-20 functions, all
it does is allow the user to swap <span className="text-gray-300">Silver</span> to{" "}
<span className="text-amber-300">Gold</span> token at a 10:1 ratio.
. I&apos;ve created this with the sole purpose of allowing you to get familar with some of the ERC-20
functions, all it does is enable you to swap <span className="text-gray-300">Silver</span> for{" "}
<span className="text-amber-300">Gold</span> tokens at a 10:1 ratio.
</div>
</div>
<div className="mb-4 text-gray-400 text-xl text-center">
Expand All @@ -140,13 +154,16 @@ const Text = () => {
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20">
Official EIP 20 page{" "}
</a>{" "}
to see some additional functions that are optional, such as{" "}
to see three additional functions that are optional:{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#name">
name
name,
</a>{" "}
and{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#symbol">
symbol
symbol&nbsp;
</a>
and{" "}
<a className="text-gray-500 hover:text-gray-400" href="https://eips.ethereum.org/EIPS/eip-20#decimals">
decimals.
</a>
</div>{" "}
<div className="mb-4 w-[60%] mx-auto">
Expand Down

0 comments on commit 38de726

Please sign in to comment.