I hereby claim:
- I am 0xabhi on github.
- I am 0xabhi (https://keybase.io/0xabhi) on keybase.
- I have a public key ASDAtdiFyczWuS29hiEgJUW26PdDNLEaREjDBxsfqdTJeQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
Appocalipsis smart contract security audit report performed by Cryptoabhi
Audit performed for Bestroi.io
The information appearing in this audit is for general discussion purposes only and is not intended to provide legal security guarantees to any individual or entity.
root@8cfa3f87b3c4:/tbears/icx_token# ls | |
deploy.json irc2 README.md | |
root@8cfa3f87b3c4:/tbears/icx_token# cat deploy.json | |
{ | |
"uri": "http://127.0.0.1:9000/api/v3", | |
"nid": "0x3", | |
"keyStore": null, | |
"from": "hxaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", | |
"to": "cx0000000000000000000000000000000000000000", | |
"stepLimit": "0x8000000", |
root@8cfa3f87b3c4:/tbears/icx_token# tbears txresult 0x96ab2ee414aba505a89ad263d5ab1df715b211ad08f6b87189bde8de8fb95022 | |
Transaction result: { | |
"jsonrpc": "2.0", | |
"result": { | |
"txHash": "0x96ab2ee414aba505a89ad263d5ab1df715b211ad08f6b87189bde8de8fb95022", | |
"blockHeight": "0x3ef", | |
"blockHash": "0x36d1e97b5b51de6448dc736e1450bd8b1a312e1611e0497529932eb3a555c735", | |
"txIndex": "0x0", | |
"to": "cx0000000000000000000000000000000000000000", | |
"scoreAddress": "cxf04ad44bbf966642af4c145bc595f1f1452e237d", |
{ | |
"version": "0.0.1", | |
"main_file": "irc2", | |
"main_score": "SampleToken" | |
} |
root@8cfa3f87b3c4:/tbears/icx_token# tbears deploy -k ../keystore_test1 -c deploy.json irc2/ | |
Input your keystore password: | |
Send deploy request successfully. | |
If you want to check SCORE deployed successfully, execute txresult command | |
transaction hash: 0xe330e9cf2367ee74a83b407a66c91b5ff95840eade4a2c2a4f0d6f4cc22a33d5 |
from iconservice import * | |
TAG = 'SampleToken' | |
# An interface of ICON Token Standard, IRC-2 | |
class TokenStandard(ABC): | |
@abstractmethod | |
def name(self) -> str: | |
pass |
root@8cfa3f87b3c4:/tbears# git clone https://github.com/cryptoabhi/icx_token | |
Cloning into 'icx_token'... | |
remote: Enumerating objects: 13, done. | |
remote: Counting objects: 100% (13/13), done. | |
remote: Compressing objects: 100% (9/9), done. | |
remote: Total 13 (delta 1), reused 10 (delta 1), pack-reused 0 | |
Unpacking objects: 100% (13/13), done. | |
root@8cfa3f87b3c4:/tbears# cd icx_token/irc2 | |
root@8cfa3f87b3c4:/tbears/icx_token/irc2# ls | |
__init__.py package.json README.md irc2.py tests |
root@8cfa3f87b3c4:/tbears# tbears balance hxe7af5fcfd8dfc67530a01a0e403882687528dfcb | |
balance in hex: 0x2961fff8ca4a62327800000 | |
balance in decimal: 800460000000000000000000000 |
$ docker container start -a local-tbears | |
root@8cfa3f87b3c4:/tbears# |