Last active
August 16, 2019 09:34
-
-
Save kristjank/aa4f7954c4437ab9cd241e89c2c1edb4 to your computer and use it in GitHub Desktop.
serde-process
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class BusinessRegistrationTransaction extends Transactions.Transaction { | |
public serialize(): ByteBuffer { | |
const { data } = this; | |
const businessRegistrationAsset = data.asset.businessRegistration as IBusinessRegistrationAsset; | |
// TODO Implement serialization (asset -> ByteBuffer) | |
return buffer; | |
} | |
public deserialize(buf: ByteBuffer): void { | |
const { data } = this; | |
// TODO Implement deserialization (buffer -> data.asset) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment