Record Class NonceAccount

java.lang.Object
java.lang.Record
software.sava.solana.programs.system.NonceAccount

public record NonceAccount(software.sava.core.accounts.PublicKey address, int version, NonceAccount.State state, software.sava.core.accounts.PublicKey authority, byte[] nonce, long lamportsPerSignature) extends Record
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final software.sava.core.rpc.Filter
     
    static final BiFunction<software.sava.core.accounts.PublicKey,byte[],NonceAccount>
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    NonceAccount(software.sava.core.accounts.PublicKey address, int version, NonceAccount.State state, software.sava.core.accounts.PublicKey authority, byte[] nonce, long lamportsPerSignature)
    Creates an instance of a NonceAccount record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    software.sava.core.accounts.PublicKey
    Returns the value of the address record component.
    software.sava.core.tx.Instruction
     
    software.sava.core.tx.Instruction
    advanceNonceAccount(software.sava.core.accounts.SolanaAccounts solanaAccounts)
     
    software.sava.core.accounts.PublicKey
    Returns the value of the authority record component.
    static software.sava.core.rpc.Filter
    createAuthorityFilter(software.sava.core.accounts.PublicKey authority)
     
    static software.sava.core.rpc.Filter
    createNonceFilter(byte[] nonce)
     
    static software.sava.core.rpc.Filter
     
    static software.sava.core.rpc.Filter
    createVersionFilter(int version)
     
    static software.sava.core.rpc.Filter
    createVersionFilter(long lamportsPerSignature)
     
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    long
    Returns the value of the lamportsPerSignature record component.
    byte[]
    Returns the value of the nonce record component.
    read(byte[] data, int offset)
     
    read(software.sava.core.accounts.PublicKey address, byte[] data)
     
    read(software.sava.core.accounts.PublicKey address, byte[] data, int offset)
     
    read(software.sava.rpc.json.http.response.AccountInfo<byte[]> accountInfo)
     
    void
    setNonce(software.sava.core.accounts.SolanaAccounts solanaAccounts, software.sava.core.tx.Transaction transaction)
     
    void
    setNonce(software.sava.core.tx.Transaction transaction)
     
    Returns the value of the state record component.
    final String
    Returns a string representation of this record class.
    int
    Returns the value of the version record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

  • Constructor Details

    • NonceAccount

      public NonceAccount(software.sava.core.accounts.PublicKey address, int version, NonceAccount.State state, software.sava.core.accounts.PublicKey authority, byte[] nonce, long lamportsPerSignature)
      Creates an instance of a NonceAccount record class.
      Parameters:
      address - the value for the address record component
      version - the value for the version record component
      state - the value for the state record component
      authority - the value for the authority record component
      nonce - the value for the nonce record component
      lamportsPerSignature - the value for the lamportsPerSignature record component
  • Method Details

    • createVersionFilter

      public static software.sava.core.rpc.Filter createVersionFilter(int version)
    • createStateFilter

      public static software.sava.core.rpc.Filter createStateFilter(StakeState state)
    • createAuthorityFilter

      public static software.sava.core.rpc.Filter createAuthorityFilter(software.sava.core.accounts.PublicKey authority)
    • createNonceFilter

      public static software.sava.core.rpc.Filter createNonceFilter(byte[] nonce)
    • createVersionFilter

      public static software.sava.core.rpc.Filter createVersionFilter(long lamportsPerSignature)
    • read

      public static NonceAccount read(byte[] data, int offset)
    • read

      public static NonceAccount read(software.sava.rpc.json.http.response.AccountInfo<byte[]> accountInfo)
    • read

      public static NonceAccount read(software.sava.core.accounts.PublicKey address, byte[] data)
    • read

      public static NonceAccount read(software.sava.core.accounts.PublicKey address, byte[] data, int offset)
    • advanceNonceAccount

      public software.sava.core.tx.Instruction advanceNonceAccount()
    • advanceNonceAccount

      public software.sava.core.tx.Instruction advanceNonceAccount(software.sava.core.accounts.SolanaAccounts solanaAccounts)
    • setNonce

      public void setNonce(software.sava.core.tx.Transaction transaction)
    • setNonce

      public void setNonce(software.sava.core.accounts.SolanaAccounts solanaAccounts, software.sava.core.tx.Transaction transaction)
    • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • address

      public software.sava.core.accounts.PublicKey address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component
    • version

      public int version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • state

      public NonceAccount.State state()
      Returns the value of the state record component.
      Returns:
      the value of the state record component
    • authority

      public software.sava.core.accounts.PublicKey authority()
      Returns the value of the authority record component.
      Returns:
      the value of the authority record component
    • nonce

      public byte[] nonce()
      Returns the value of the nonce record component.
      Returns:
      the value of the nonce record component
    • lamportsPerSignature

      public long lamportsPerSignature()
      Returns the value of the lamportsPerSignature record component.
      Returns:
      the value of the lamportsPerSignature record component