Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(nameservice-api): reduce amount of data in transformer
  • Loading branch information
KovacZan committed Mar 4, 2021
commit d217fc66e850a2dd4aa5d1dfea375f6e6867559b
13 changes: 1 addition & 12 deletions packages/nameservice-api/src/resources/nameservice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,12 @@ export class NameserviceResource implements Contracts.Resource {

return {
Comment thread
KovacZan marked this conversation as resolved.
id: resource.id,
blockId: resource.blockId,
version: resource.version,
type: resource.type,
typeGroup: resource.typeGroup,
amount: resource.amount.toFixed(),
fee: resource.fee.toFixed(),
sender,
senderPublicKey: resource.senderPublicKey,
recipient: resource.recipientId || sender,
signature: resource.signature,
signSignature: resource.signSignature || resource.secondSignature,
signatures: resource.signatures,
vendorField: resource.vendorField,
asset: resource.asset,
nameservice: resource.asset.nameservice.name,
timestamp:
typeof resource.timestamp !== "undefined" ? AppUtils.formatTimestamp(resource.timestamp) : undefined,
nonce: resource.nonce!.toFixed(),
};
}
}