Convert to Buffer representation
Creates a new Numberu64 with the same value as an existing BN
new Numberu64(bn)
doesnt work, only copies the reference
and doesnt override toBuffer()
, so any BNs with buffer length < 8's this.toBuffer()
will return short buffer that cant be serialized to TransactionInstruction
Construct a Numberu64 from Buffer representation
Generated using TypeDoc
Some amount of tokens Copied from token-swap, for packing instruction buffer correctly