All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Added: Decoding of an account state and resource into proper objects (issue #1)
- New struct
libra.AccountState
contains the blob (raw bytes) as well as a decodedAccountResource
- New struct
libra.AccountResource
contains the account's balance, auth key, sent and received events, as well as sequence number - New function:
libra.FromAccountStateBlob(accountStateBlob []byte) (AccountState, error)
decodes an account state blob into alibra.AccountState
- New function:
libra.FromAccountResourceBlob(accountResourceBlob []byte) (AccountResource, error)
decodes an account resource blob into alibra.AccountResource
- New struct
- Added: Support for Go modules
- Improved:
Client.GetAccountState(accountAddr string)
now returns an object of the newly addedlibra.AccountState
- Improved: Updated gRPC definition files and generated Go code to Libra commit
4e27604264bd0a5d6c64427f738cbc84d9258a61
- The return type of
Client.GetAccountState(accountAddr string)
was changed from([]byte, error)
to(AccountState, error)
(for issue #1)
Initial release.
- Get account state as slice of bytes
- Send raw transaction