Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit c7ed376

Browse files
authored
Update KCT menu (#63) (#64)
* Update KCT menu * Update README.md
1 parent d3c7c1f commit c7ed376

File tree

6 files changed

+54
-45
lines changed

6 files changed

+54
-45
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Klaytn Online Toolkit
22
Klaytn online toolkit provides code examples and github page to help to utilize the Klaytn SDK(caver-js) easily.
3-
You can test library on: https://klaytn.github.io/klaytn-online-toolkit
3+
You can test library on: https://toolkit.klaytn.foundation/
44

55
## Web3Modal Example
66
On github page, you can see web3modal demo which is derived from [web3modal/example](https://github.com/WalletConnect/web3modal/tree/master/example) and modified to add Kaikas wallet and Klip wallet. You can add support for multiple providers including Kaikas provider and Klip wallet provider by using [@klaytn/web3modal](https://github.com/klaytn/klaytn-web3modal). We have created a PR in web3modal repo, which is still under review. So we temporarily provide @klaytn/web3modal package.

src/routes.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -137,29 +137,29 @@ const routes: RouteType[] = [
137137
],
138138
},
139139
{
140-
name: 'KCT',
141140
path: '/kct',
141+
name: 'Klaytn Tokens',
142142
items: [
143-
{
144-
path: '/KCTDetection',
145-
name: 'KCT Detection',
146-
component: DetectKCT,
147-
},
148143
{
149144
path: '/KIP7Deploy',
150-
name: 'Deploy KIP-7 Token',
145+
name: 'Deploy Fungible Token (KIP-7)',
151146
component: KIP7Deploy,
152147
},
153148
{
154149
path: '/KIP17Deploy',
155-
name: 'Deploy KIP-17 Token',
150+
name: 'Deploy Non-Fungible Token (KIP-17)',
156151
component: KIP17Deploy,
157152
},
158153
{
159154
path: '/KIP37Deploy',
160-
name: 'Deploy KIP-37 Token',
155+
name: 'Deploy Multiple Token (KIP-37)',
161156
component: KIP37Deploy,
162157
},
158+
{
159+
path: '/KCTDetection',
160+
name: 'Detect Klaytn Compatible Token (KCT)',
161+
component: DetectKCT,
162+
},
163163
],
164164
},
165165
{

src/views/KCT/DetectKCT.tsx

+6-4
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,16 @@ const DetectKCT = (): ReactElement => {
8383
<Container>
8484
<Card>
8585
<CardHeader>
86-
<h3 className="title">Klaytn Compatible Token(KCT) Detection</h3>
86+
<h3 className="title">Detect Klaytn Compatible Token (KCT)</h3>
8787
<Text>
8888
<LinkA link="https://kips.klaytn.foundation/token">
89-
Klaytn Compatible Token
89+
Klaytn Compatible Token (KCT)
9090
</LinkA>{' '}
9191
is a special type of a smart contract that implements certain
92-
technical specifications. You can check which KCT the smart contract
93-
implements using its address.
92+
technical specifications. Everyone who wants to issue tokens on top
93+
of Klaytn must follow the specification. KCT currently consists of
94+
KIP-7, KIP-17, and KIP-37. You can check which KCT the smart
95+
contract implements using its address.
9496
</Text>
9597
</CardHeader>
9698
<CardBody>

src/views/KCT/KIP17Deploy.tsx

+11-10
Original file line numberDiff line numberDiff line change
@@ -305,18 +305,19 @@ const KIP17Deploy = (): ReactElement => {
305305
<Container>
306306
<Card>
307307
<CardHeader>
308-
<h3 className="title">Deploy KIP-17 Non-fungible Token (NFT)</h3>
308+
<h3 className="title">Deploy Non-fungible Token (KIP-17)</h3>
309309
<Text>
310-
Here you can deploy a KIP-17 smart contract to the Klaytn Cypress or
311-
Baobab network. Please refer to{' '}
310+
You can deploy non-fungible token (KIP-17) contracts which provide
311+
basic functionality to transfer NFTs on the Klaytn testnet. KIP-17
312+
is derived from ERC-721. But, there are some differences between
313+
KIP-17 and ERC-721; More optional extensions are defined, like
314+
minting with URI, burning, and pausing extensions. You can find more
315+
information{' '}
312316
<LinkA link="https://kips.klaytn.foundation/KIPs/kip-17">
313-
KIP-17: Non-fungible Token Standard
314-
</LinkA>{' '}
315-
and{' '}
316-
<LinkA link="https://docs.klaytn.foundation/dapp/sdk/caver-js/api-references/caver.kct/kip17">
317-
caver.kct.kip17
317+
here
318318
</LinkA>
319-
.
319+
. After successful deployment, you can find a contract account in
320+
the block explorer.
320321
</Text>
321322
<PrivateKeyWarning />
322323
</CardHeader>
@@ -575,7 +576,7 @@ const burned = await deployedContract.burn(burnTokenId)`}
575576
{mintSuccess && belowPage === FunctionEnum.Transfer && (
576577
<Card>
577578
<CardHeader>
578-
<h3 className="title">Send the Non-fungible Token (NFT)</h3>
579+
<h3 className="title">Transfer the Non-fungible Token (NFT)</h3>
579580
<Text>Enter the token Id you own and want to transfer.</Text>
580581
</CardHeader>
581582
<CardBody>

src/views/KCT/KIP37Deploy.tsx

+14-12
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ const KIP37Deploy = (): ReactElement => {
6363
const exURI =
6464
'https://ipfs.io/ipfs/bafybeihjjkwdrxxjnuwevlqtqmh3iegcadc32sio4wmo7bv2gbf34qs34a/3.json'
6565

66-
const exTokenURI = 'http://www.wenyou.com/image/SC-01%20SCISSORS.JPG'
66+
const exTokenURI =
67+
'https://ipfs.io/ipfs/bafybeihjjkwdrxxjnuwevlqtqmh3iegcadc32sio4wmo7bv2gbf34qs34a/2.json'
6768

6869
const exAddress = '0x6CEe3d8c038ab74E2854C158d7B1b55544E814C8'
6970

@@ -256,18 +257,19 @@ const KIP37Deploy = (): ReactElement => {
256257
<Container>
257258
<Card>
258259
<CardHeader>
259-
<h3 className="title">Deploy KIP-37 Token</h3>
260+
<h3 className="title">Deploy Multiple Token (KIP-37)</h3>
260261
<Text>
261-
Here you can deploy a KIP-37 smart contract to the Klaytn Cypress or
262-
Baobab network. Please refer to{' '}
263-
<LinkA link="http://kips.klaytn.foundation/KIPs/kip-37">
264-
KIP-37: Token Standard
265-
</LinkA>{' '}
266-
and{' '}
267-
<LinkA link="https://docs.klaytn.foundation/dapp/sdk/caver-js/api-references/caver.kct/kip37">
268-
caver.kct.kip37
269-
</LinkA>
270-
.
262+
You can deploy multiple token (KIP-37) contracts. A single deployed
263+
contract following the KIP-37 token standard may include any
264+
combination of fungible tokens, non-fungible tokens, or other
265+
configurations. KIP-37 is derived from ERC-1155. However, there are
266+
some differences between KIP-37 and ERC-1155; the totalSupply
267+
function is added to obtain the number of tokens, and more optional
268+
extensions are defined, like minting, burning, and pausing
269+
extensions. You can find more information{' '}
270+
<LinkA link="http://kips.klaytn.foundation/KIPs/kip-37">here</LinkA>
271+
. After successful deployment, you can find a contract account in
272+
the block explorer.
271273
</Text>
272274
<PrivateKeyWarning />
273275
</CardHeader>

src/views/KCT/KIP7Deploy.tsx

+13-9
Original file line numberDiff line numberDiff line change
@@ -117,23 +117,27 @@ const KIP7Deploy = (): ReactElement => {
117117
<Container>
118118
<Card>
119119
<CardHeader>
120-
<h3 className="title">Deploy KIP-7 Token</h3>
120+
<h3 className="title">Deploy Fungible Token (KIP-7)</h3>
121121
<Text>
122-
You can deploy a KIP-7 token contract to the Klaytn blockchain.{' '}
123-
<LinkA link="https://docs.klaytn.foundation/dapp/sdk/caver-js/api-references/caver.kct/kip7#caver-klay-kip7-deploy">
124-
caver.kct.kip7.deploy
125-
</LinkA>{' '}
126-
function is used to deploy a KIP-7 token contract. After successful
127-
deployment, you can find contract account in explorer.
122+
You can deploy fungible token (KIP-7) contracts which provide basic
123+
functionality to transfer tokens on the Klaytn testnet. This token
124+
standard is ERC-20 compliant. Therefore, you can use this token
125+
standard if you want to use ERC-20 for the Klaytn. However, there
126+
are some differences between KIP-7 and ERC-20; More optional
127+
functions are included like mint, burn and pause extensions. You can
128+
find more information{' '}
129+
<LinkA link="https://kips.klaytn.foundation/KIPs/kip-7">here</LinkA>
130+
. After successful deployment, you can find contract account in the
131+
block explorer.
128132
</Text>
129133
<PrivateKeyWarning />
130134
</CardHeader>
131135
<CardBody>
132136
<h3 className="title"> Upload Deployer Keystore File</h3>
133137
<View style={{ marginBottom: 10 }}>
134138
<Text>
135-
Upload keystore file. This account must have enough KLAY to deploy
136-
a token contract.
139+
Upload the Keystore file. This account must have enough KLAY to
140+
deploy a token contract.
137141
</Text>
138142
</View>
139143
<CardSection>

0 commit comments

Comments
 (0)