feat: Add ERC20-like Token

This commit is contained in:
Michael Vines
2018-10-06 11:23:18 -07:00
parent ab2d6c9ede
commit ad2fa3ceaf
10 changed files with 1015 additions and 12 deletions

View File

@ -11,8 +11,8 @@ export const publicKey = (property: string = 'publicKey'): Object => {
};
/**
* Layout for a 256bit unsigned value
* Layout for a 64bit unsigned value
*/
export const uint256 = (property: string = 'uint256'): Object => {
return BufferLayout.blob(32, property);
export const uint64 = (property: string = 'uint64'): Object => {
return BufferLayout.blob(8, property);
};