Class CasperTransferHelper


  • public class CasperTransferHelper
    extends java.lang.Object
    Transfer helper provides methods to easily transfer from/to purses
    Since:
    0.5.0
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Deploy buildTransferDeploy​(AbstractPrivateKey from, PublicKey to, java.math.BigInteger amount, java.lang.String chainName)
      Helper method to create a Deploy for a Transfer
      static Deploy buildTransferDeploy​(AbstractPrivateKey signer, PublicKey to, java.math.BigInteger amount, java.lang.String chainName, java.lang.Long id, java.math.BigInteger paymentAmount, java.lang.Long gasPrice, Ttl ttl, java.util.Date date, java.util.List<Digest> dependencies)
      Helper method to create a Deploy for a Transfer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • buildTransferDeploy

        public static Deploy buildTransferDeploy​(AbstractPrivateKey from,
                                                 PublicKey to,
                                                 java.math.BigInteger amount,
                                                 java.lang.String chainName)
                                          throws NoSuchTypeException,
                                                 java.security.GeneralSecurityException,
                                                 dev.oak3.sbs4j.exception.ValueSerializationException
        Helper method to create a Deploy for a Transfer
        Parameters:
        from - private key from sender
        to - public key from signer
        amount - amount to transfer
        chainName - chain name
        Returns:
        a transfer deploy
        Throws:
        NoSuchTypeException
        java.security.GeneralSecurityException
        dev.oak3.sbs4j.exception.ValueSerializationException
      • buildTransferDeploy

        public static Deploy buildTransferDeploy​(AbstractPrivateKey signer,
                                                 PublicKey to,
                                                 java.math.BigInteger amount,
                                                 java.lang.String chainName,
                                                 java.lang.Long id,
                                                 java.math.BigInteger paymentAmount,
                                                 java.lang.Long gasPrice,
                                                 Ttl ttl,
                                                 java.util.Date date,
                                                 java.util.List<Digest> dependencies)
                                          throws NoSuchTypeException,
                                                 java.security.GeneralSecurityException,
                                                 dev.oak3.sbs4j.exception.ValueSerializationException
        Helper method to create a Deploy for a Transfer
        Parameters:
        signer - private key from sender
        to - public key from signer
        amount - amount to transfer
        chainName - chain name
        id - deploy id
        paymentAmount - payment amount for processing transfers
        gasPrice - gas price
        ttl - time to live
        date - execution date
        dependencies - List of digest dependencies
        Returns:
        a transfer deploy
        Throws:
        NoSuchTypeException
        java.security.GeneralSecurityException
        dev.oak3.sbs4j.exception.ValueSerializationException