How to use the @waves/marshall.binary.serializerFromSchema function in @waves/marshall

To help you get started, we’ve selected a few @waves/marshall examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wavesplatform / waves-transactions / src / proto-serialize.ts View on Github external
const getInvokeData = (t: IInvokeScriptTransaction): wavesProto.waves.IInvokeScriptTransactionData => {
  let functionCall = t.call == null ? null : binary.serializerFromSchema(invokeScriptCallSchema)(t.call)
  return {
    dApp: recipientToProto(t.dApp),
    functionCall,
    payments: t.payment == null ? null : t.payment.map(({ amount, assetId }) => amountToProto(amount, assetId))
  }
}
const getUpdateAssetInfoData = (t: IUpdateAssetInfoTransaction): wavesProto.waves.IUpdateAssetInfoTransactionData => {