Interface AccountsCoder<A>
Type Parameters
A extends string = string
Methods
decode
- decode<T>(accountName: A, acc: Buffer): T
Type Parameters
Parameters
accountName: A
acc: Buffer
Returns T
decodeUnchecked
- decodeUnchecked<T>(accountName: A, acc: Buffer): T
Type Parameters
Parameters
accountName: A
acc: Buffer
Returns T
encode
- encode<T>(accountName: A, account: T): Promise<Buffer>
Type Parameters
Parameters
Returns Promise<Buffer>
memcmp
- memcmp(accountName: A, appendData?: Buffer): any
Parameters
accountName: A
Optional appendData: Buffer
Returns any
size
- size(accountName: A): number