Updated README
This commit is contained in:
parent
6b2cacb7b8
commit
af1aae3fc2
10
README.md
10
README.md
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
# Partisia Blockchain ABI client
|
# Partisia Blockchain ABI client
|
||||||
|
|
||||||
Utility library for parsing and processing the [Partisia Blockchain's ABI format](https://partisiablockchain.gitlab.io/documentation/smart-contracts/smart-contract-binary-formats.html)..
|
Utility library for parsing and processing the [Partisia Blockchain's ABI format](https://partisiablockchain.gitlab.io/documentation/smart-contracts/smart-contract-binary-formats.html)..
|
||||||
|
@ -23,6 +22,7 @@ with open('token_state.bin', 'rb') as f:
|
||||||
# Read structure TokenState from state_bytes
|
# Read structure TokenState from state_bytes
|
||||||
token_state = TOKEN_ABI.contract.read_state('TokenState', BinaryReader(state_bytes))
|
token_state = TOKEN_ABI.contract.read_state('TokenState', BinaryReader(state_bytes))
|
||||||
|
|
||||||
|
# Inspect state as mostly Python-native types.
|
||||||
my_address = BlockchainAddress.from_hex_hash("00e72e44eab933faaf1fd4ce94bb57e08bff98a1ed")
|
my_address = BlockchainAddress.from_hex_hash("00e72e44eab933faaf1fd4ce94bb57e08bff98a1ed")
|
||||||
|
|
||||||
print(token_state['name'])
|
print(token_state['name'])
|
||||||
|
@ -35,6 +35,10 @@ print(token_state['balances'][my_address])
|
||||||
|
|
||||||
This project is licensed under MIT Licence, see `LICENSE` for full text.
|
This project is licensed under MIT Licence, see `LICENSE` for full text.
|
||||||
|
|
||||||
This project is not associated with, nor supported by Partisia, Secata, or
|
This project is not associated with, nor supported by any of:
|
||||||
Partisia Blockchain Foundation. Use at own risk.
|
|
||||||
|
|
||||||
|
- Partisia Applications A/S
|
||||||
|
- Partisia Infrastructure A/S
|
||||||
|
- Partisia Blockchain Foundation
|
||||||
|
|
||||||
|
Use at own risk.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user