All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.savl.ripple.client.transactions.Submission Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
package com.savl.ripple.client.transactions;

import com.savl.ripple.client.requests.Request;
import com.savl.ripple.core.coretypes.Amount;
import com.savl.ripple.core.coretypes.hash.Hash256;
import com.savl.ripple.core.coretypes.uint.UInt32;

public class Submission {
    public Request request;
    public Hash256 hash;
    // These aren't actually used yet, but I guess at some stage may be useful to
    // look at statistics. TODO: consider gutting until such time.
    public UInt32 sequence;
    public UInt32 lastLedgerSequence;
    public Amount fee;
    // The latest KNOWN validated ledger at the time of submission, not necessarily at the
    // time of submit response
    public long ledgerSequence;

    public Submission(Request request, UInt32 sequence, Hash256 hash, long ledgerSequence, Amount fee, UInt32 lastLedgerIndex) {
        this.request = request;
        this.sequence = sequence;
        this.hash = hash;
        this.ledgerSequence = ledgerSequence;
        this.fee = fee;
        this.lastLedgerSequence = lastLedgerIndex;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy