Home Reference Source

src/services/results/nft-auction/nftFinalizeResult.js

  1. import DeployResult from '../deployResult';
  2.  
  3. /**
  4. * NftCancelBidResult class
  5. */
  6. export default class NftFinalizeResult extends DeployResult {
  7. /**
  8. * Constructor
  9. *
  10. * @param {string} hash - DeployHash of the deployment
  11. * @param {string} cost - optional cost
  12. * @param {string} amount - optional amount
  13. */
  14. constructor(hash, cost = '0', amount = '0') {
  15. super(hash, NftFinalizeResult.getName(), cost, amount);
  16. }
  17.  
  18. /**
  19. * Retrieve the name of the operation behind the deployment
  20. *
  21. * @return {string} - the name of the operation behind the deployment
  22. */
  23. static getName() {
  24. return 'Nft Finalize Operation';
  25. }
  26. }