Skip to content

Commit f4be068

Browse files
committed
Initial changes
1 parent 109ab71 commit f4be068

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

SUMMARY.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* [SCORE Deployment](docs/scoreDeploy.md)
1414
* [Calling SCORE Methods](docs/callScoreMethods.md)
1515
* [ICX Transfer](docs/icxTransfer.md)
16-
* [Create Your Own Token]
16+
* Create Your Own Token
1717
* [Basic IRC2 token](docs/testBasicToken.md)
1818
* [Mintable and burnable token](docs/testMintBurnToken.md)
1919

docs/testBasicToken.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class SampleToken(IRC2):
2828
```
2929

3030
Now, read **[SCORE Interaction](scoreinteraction.md)**.
31-
Make a new python notebook, and follow the steps as mentioned in **SCORE Interaction**. Now you should have deployer_wallet and caller_wallet address. Load funds to deployer_wallet address. caller_wallet will be used as a random wallet to test methods.
31+
Make a new python notebook, and follow the steps as mentioned in **SCORE Interaction**.<br> Now you should have deployer_wallet and caller_wallet address. Load funds to deployer_wallet address. caller_wallet will be used as a random wallet to test methods.
3232

3333

3434
### Deploying the contract
@@ -128,4 +128,4 @@ get_tx_result(tx_hash)
128128

129129
Now reexecute the block to check the balance of deployer and caller address. 5 tokens will be transferred to the random address from deployer address.
130130
<br>
131-
You have successfully created a token in ICON blockchain, and transferred fund from to another address!
131+
**You have successfully created a token in ICON blockchain, and transferred fund from to another address!**

docs/testMintBurnToken.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Implement mintable and burnable tokens
22

3-
Change token.py to implement IRC2burnable and IRC2mintable.<br>
4-
IRC2 Mintable and IRC2 Burnable inherits from IRC2.
3+
To implement mintable and burnable token, change token.py to implement IRC2burnable and IRC2mintable.<br>
54

65
```Python
76
from iconservice import *
8-
from .tokens.IRC2burnable import IRC2Burnable
9-
from .tokens.IRC2mintable import IRC2Mintable
7+
from .ODIContracts.tokens.IRC2burnable import IRC2Burnable
8+
from .ODIContracts.tokens.IRC2mintable import IRC2Mintable
109

1110
TAG = 'SampleToken'
1211

@@ -18,9 +17,9 @@ Now, since we changed the token, we need to update the contract. Execute this bl
1817

1918
```Python
2019
UPDATE_PARAMS = {
21-
"_tokenName": "TestToken1",
22-
"_symbolName": "TK1",
23-
"_initialSupply": 1100,
20+
"_tokenName": "TestToken",
21+
"_symbolName": "TK",
22+
"_initialSupply": 1000,
2423
"_decimals": 18
2524
}
2625

@@ -51,6 +50,7 @@ get_tx_result(tx_hash)
5150

5251

5352
### Testing minting of tokens
53+
To test minting of tokens, execute this block. `_amount` , the number of token to be minted, is given as a parameter.
5454
```Python
5555
params={
5656
"_amount": 5,
@@ -83,7 +83,7 @@ After this block finishes executing, now reexecute the block to check the total
8383

8484
### Testing mintTo method
8585

86-
Using this method, tokens can be minted to other address as well. However, only the deployer can call this method.
86+
Using this method, tokens can be minted to other address as well. However, only the deployer can call this method. Here, `_amount` number of tokens will be minted to `_account`.
8787
```Python
8888
params={
8989
"_account": caller_wallet.get_address(),

0 commit comments

Comments
 (0)