Record Class Debot.DebotActivity.Transaction

java.lang.Object
java.lang.Record
tech.deplant.java4ever.binding.Debot.DebotActivity.Transaction
Record Components:
msg - External inbound message BOC.
dst - Target smart contract address.
out - List of spendings as a result of transaction.
fee - Transaction total fee.
setcode - Indicates if target smart contract updates its code.
signkey - Public key from keypair that was used to sign external message.
signingBoxHandle - Signing box handle used to sign external message.
All Implemented Interfaces:
Debot.DebotActivity
Enclosing interface:
Debot.DebotActivity

public static record Debot.DebotActivity.Transaction(String msg, String dst, Debot.Spending[] out, Long fee, Boolean setcode, String signkey, Integer signingBoxHandle) extends Record implements Debot.DebotActivity
DeBot wants to create new transaction in blockchain.
  • Constructor Details

    • Transaction

      public Transaction(String msg, String dst, Debot.Spending[] out, Long fee, Boolean setcode, String signkey, Integer signingBoxHandle)
      Creates an instance of a Transaction record class.
      Parameters:
      msg - the value for the msg record component
      dst - the value for the dst record component
      out - the value for the out record component
      fee - the value for the fee record component
      setcode - the value for the setcode record component
      signkey - the value for the signkey record component
      signingBoxHandle - the value for the signingBoxHandle record component
  • Method Details

    • type

      public String type()
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • msg

      public String msg()
      Returns the value of the msg record component.
      Returns:
      the value of the msg record component
    • dst

      public String dst()
      Returns the value of the dst record component.
      Returns:
      the value of the dst record component
    • out

      public Debot.Spending[] out()
      Returns the value of the out record component.
      Returns:
      the value of the out record component
    • fee

      public Long fee()
      Returns the value of the fee record component.
      Returns:
      the value of the fee record component
    • setcode

      public Boolean setcode()
      Returns the value of the setcode record component.
      Returns:
      the value of the setcode record component
    • signkey

      public String signkey()
      Returns the value of the signkey record component.
      Returns:
      the value of the signkey record component
    • signingBoxHandle

      public Integer signingBoxHandle()
      Returns the value of the signingBoxHandle record component.
      Returns:
      the value of the signingBoxHandle record component