This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathroutes.tsx
304 lines (294 loc) · 9.46 KB
/
routes.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
import BlockHashDecoder from './views/BlockInfo/BlockHashDecoder'
import AccountKeyLegacy from './views/Account/AccountKeyLegacy'
import AccountKeyPublic from './views/Account/AccountKeyPublic'
import AccountKeyMultiSig from './views/Account/AccountKeyMultiSig'
import AccountKeyRoleBased from './views/Account/AccountKeyRoleBased'
import SendMultisigTx from './views/Transaction/SendMultisigTx'
import TxHashDecoder from './views/Transaction/TxHashDecoder'
import RLPEncoder from './views/Transaction/RLPEncoder'
import RLPDecoder from './views/Transaction/RLPDecoder'
import FunctionSignature from './views/SmartContract/FunctionSignature'
import FunctionCall from './views/SmartContract/FunctionCall'
import ABIEncoder from './views/SmartContract/ABIEncoder'
import ABIDecoder from './views/SmartContract/ABIDecoder'
import DetectKCT from './views/KCT/DetectKCT'
import KIP7Deploy from './views/KCT/KIP7Deploy'
import KIP17Deploy from './views/KCT/KIP17Deploy'
import KIP37Deploy from './views/KCT/KIP37Deploy'
import CheckAccountKey from './views/Miscellaneous/CheckAccountKey'
import GenerateKeystore from './views/Miscellaneous/GenerateKeystore'
import KeccakFromString from './views/Miscellaneous/KeccakFromString'
import LoadKeystore from './views/Miscellaneous/LoadKeystore'
import SoulboundNFT from './views/Miscellaneous/SoulboundNFT'
import WKLAY from './views/Miscellaneous/WKLAY'
import Multicall from './views/Miscellaneous/Multicall'
import Web3modalExample from './views/Web3modal'
import Web3modalNFT from './views/Web3modal/web3modalNFT'
import KaiKasTutorial1 from './views/Kaikas/KaikasTutorial1'
import KaiKasTutorial2 from './views/Kaikas/KaikasTutorial2'
import KaikasTutorial3 from './views/Kaikas/KaikasTutorial3'
import KaikasTutorial4 from './views/Kaikas/KaikasTutorial4'
import { RouteType } from 'types'
import KlaytnUnitConverter from 'views/Converter'
const routes: RouteType[] = [
{
name: 'Web3Modal',
path: '/web3modal',
items: [
{
path: '/example',
name: 'Function Examples',
component: Web3modalExample,
description:
'Tests several functions using Metamask, Kaikas, and Klip: signMessage, valueTransfer, and balanceOf',
},
{
path: '/NFT',
name: 'Deploy & Mint & Transfer NFT (KIP-17)',
component: Web3modalNFT,
description:
'Deploys, mints, and transfers NFT(KIP-17) on klaytn network using Metamask, Kaikas, and Klip',
},
],
},
{
name: 'Block Info',
path: '/blockinfo',
items: [
{
path: '/blockhashDecode',
name: 'Decoder from BlockHash',
component: BlockHashDecoder,
description: 'Returns block info by block hash',
},
],
},
{
name: 'Account',
path: '/account',
items: [
{
path: '/accountKeyLegacy',
name: 'Basic Account',
component: AccountKeyLegacy,
description: 'Generates account with AccountKeyLegacy',
},
{
path: '/accountKeyPublic',
name: 'Advanced (AccountKeyPublic)',
component: AccountKeyPublic,
description: 'Updates the private key of account to AccountKeyPublic',
},
{
path: '/accountKeyMultiSig',
name: 'Advanced (AccountKeyMultiSig)',
component: AccountKeyMultiSig,
description: 'Updates the private key of account to AccountKeyMultiSig',
},
{
path: '/accountKeyRoleBased',
name: 'Advanced (AccountKeyRoleBased)',
component: AccountKeyRoleBased,
description:
'Updates the private key of account to AccountKeyRoleBased',
},
],
},
{
name: 'Transaction',
path: '/transaction',
items: [
{
path: '/rlpEncode',
name: 'RLP Encoder',
component: RLPEncoder,
description:
'Encodes a transaction instance and returns RLP-encoded transaction string',
},
{
path: '/rlpDecode',
name: 'Decoder from RLP',
component: RLPDecoder,
description:
'Decodes RLP-encoded transaction string and returns a transaction instance',
},
{
path: '/txHashDecode',
name: 'Decoder from txHash',
component: TxHashDecoder,
description: 'Returns transaction instance by transaction hash',
},
{
path: '/sendMultisigTx',
name: 'Send Multisig Transaction',
component: SendMultisigTx,
description: 'Sends a value transfer transaction with a multisig Key',
},
],
},
{
name: 'Smart Contract',
path: '/smartcontract',
items: [
{
path: '/ABIEncoder',
name: 'ABI Encoder',
component: ABIEncoder,
description: 'Encodes Solidity ABI data',
},
{
path: '/ABIDecoder',
name: 'ABI Decoder',
component: ABIDecoder,
description: 'Decodes ABI encoded parameters',
},
{
path: '/functionCall',
name: 'Function Call with ABI & Params',
component: FunctionCall,
description:
'Executes a new message call without sending a transaction',
},
{
path: '/functionSig',
name: 'Encode Function Signature',
component: FunctionSignature,
description: 'Encodes the function signature to its ABI signature',
},
],
},
{
path: '/kct',
name: 'Klaytn Tokens',
items: [
{
path: '/KIP7Deploy',
name: 'Deploy Fungible Token (KIP-7)',
component: KIP7Deploy,
description: 'Deploys fungible token(KIP-7) contract',
},
{
path: '/KIP17Deploy',
name: 'Deploy Non-Fungible Token (KIP-17)',
component: KIP17Deploy,
description:
'Deploys non-fungible token(KIP-17) contract and tests functions: Mint, Burn, Transfer, and Pause/Unpause',
},
{
path: '/KIP37Deploy',
name: 'Deploy Multiple Token (KIP-37)',
component: KIP37Deploy,
description:
'Deploys multiple token(KIP-37( contract and tests functions: Create, Mint, and Transfer',
},
{
path: '/KCTDetection',
name: 'Detect Klaytn Compatible Token (KCT)',
component: DetectKCT,
description:
'Checks which KCT the smart contract implements using its address',
},
],
},
{
name: 'Kaikas',
path: '/kaikas',
items: [
{
path: '/kaikasTutorial1',
name: 'Tutorial 1 (Legacy, Account Update)',
component: KaiKasTutorial1,
description:
'Test several functions(legacy transaction, account update, etc,.) of kaikas wallet',
},
{
path: '/kaikasTutorial2',
name: 'Tutorial 2 (Value Transfer)',
component: KaiKasTutorial2,
description:
'Test several functions(value transfer, value transfer with memo, etc,.) of kaikas wallet',
},
{
path: '/kaikasTutorial3',
name: 'Tutorial 3 (Contract Deploy, Execution)',
component: KaikasTutorial3,
description:
'Test several functions(smart contract deploy, smart contract execution, etc,.) of kaikas wallet',
},
{
path: '/kaikasTutorial4',
name: 'Tutorial 4 (Add Token, Sign Message)',
component: KaikasTutorial4,
description:
'Test several functions(add token, sign message, etc,.) of kaikas wallet',
},
],
},
{
name: 'Miscellaneous',
path: '/misc',
items: [
{
path: '/loadKeystore',
name: 'Load Keystore',
component: LoadKeystore,
description:
'Decrypts a keystore v3 or v4 JSON and returns the decrypted Keyring instance',
},
{
path: '/generateKeystore',
name: 'Generate Keystore',
component: GenerateKeystore,
description:
'Generates private key(s), encrypts a keyring, and returns a keystore',
},
{
path: '/hashFromStr',
name: 'Hash From String(Keccak256)',
component: KeccakFromString,
description: 'Returns Keccak-256 function result of given input string',
},
{
path: '/checkAccountKey',
name: 'Check Account Key Type by Address',
component: CheckAccountKey,
description: 'Returns account key type of the given address',
},
{
path: '/soulboundNFT',
name: 'Soulbound NFT',
component: SoulboundNFT,
description:
'Deploys Soulbound NFT contract and tests functions: Mint, Transfer, and Burn',
},
{
path: '/WKLAY',
name: 'Canonical WKLAY',
component: WKLAY,
description:
'Interact with canonical-WKLAY contract and tests functions: Deposit, Withdraw, Approve, and Transfer',
},
{
path: '/multicall',
name: 'Multicall',
component: Multicall,
description:
'Aggregates results from multiple contract constant function calls',
},
],
},
{
name: 'Converters',
path: '/converter',
items: [
{
path: '/klaytnUnitConverters',
name: 'Klaytn Unit Converter',
component: KlaytnUnitConverter,
description:
'The Peb converter from Klaytn is a simple and easy-to-use tool for converting between peb, ston, and KLAY. The page housing this tool provides a comprehensive explanation of these different units and their relationship to the expenditure of Gas in the Klaytn ecosystem.',
},
],
},
]
export default routes