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

network.nerve.kit.error.TxErrorCode Maven / Gradle / Ivy

There is a newer version: 1.2.5
Show newest version
package network.nerve.kit.error;

import network.nerve.core.constant.CommonCodeConstanst;
import network.nerve.core.constant.ErrorCode;
import network.nerve.core.rpc.model.ModuleE;

/**
 * @author: Charlie
 * @date: 2018/11/12
 */
public interface TxErrorCode extends CommonCodeConstanst {

    ErrorCode HASH_ERROR = ErrorCode.init(ModuleE.TX.getPrefix() + "_0001");
    ErrorCode FROM_ADDRESS_NOT_MATCH_CHAIN = ErrorCode.init(ModuleE.TX.getPrefix() + "_0002");
    ErrorCode TO_ADDRESS_NOT_MATCH_CHAIN = ErrorCode.init(ModuleE.TX.getPrefix() + "_0003");
    ErrorCode INSUFFICIENT_FEE = ErrorCode.init(ModuleE.TX.getPrefix() + "_0004");
    ErrorCode ASSET_ERROR = ErrorCode.init(ModuleE.TX.getPrefix() + "_0005");
    ErrorCode COINFROM_NOT_FOUND = ErrorCode.init(ModuleE.TX.getPrefix() + "_0006");
    ErrorCode COINTO_NOT_FOUND = ErrorCode.init(ModuleE.TX.getPrefix() + "_0007");
    ErrorCode COINFROM_HAS_DUPLICATE_COIN = ErrorCode.init(ModuleE.TX.getPrefix() + "_0008");
    ErrorCode COINTO_HAS_DUPLICATE_COIN = ErrorCode.init(ModuleE.TX.getPrefix() + "_0009");
    ErrorCode COINFROM_NOT_SAME_CHAINID = ErrorCode.init(ModuleE.TX.getPrefix() + "_00010");
    ErrorCode COINTO_NOT_SAME_CHAINID = ErrorCode.init(ModuleE.TX.getPrefix() + "_0011");
    ErrorCode COINDATA_NOT_FOUND = ErrorCode.init(ModuleE.TX.getPrefix() + "_0012");

    ErrorCode TX_ALREADY_EXISTS = ErrorCode.init(ModuleE.TX.getPrefix() + "_0013");
    ErrorCode TX_NOT_EXIST = ErrorCode.init(ModuleE.TX.getPrefix() + "_0014");
    ErrorCode DESERIALIZE_TX_ERROR = ErrorCode.init(ModuleE.TX.getPrefix() + "_0015");
    ErrorCode DESERIALIZE_COINDATA_ERROR = ErrorCode.init(ModuleE.TX.getPrefix() + "_0016");
    ErrorCode SIGN_ADDRESS_NOT_MATCH_COINFROM = ErrorCode.init(ModuleE.TX.getPrefix() + "_0017");
    ErrorCode HEIGHT_UPDATE_UNABLE_TO_REPACKAGE  = ErrorCode.init(ModuleE.TX.getPrefix() + "_0018");
    ErrorCode PACKAGE_TIME_OUT = ErrorCode.init(ModuleE.TX.getPrefix() + "_0019");

    ErrorCode CHAIN_NOT_FOUND = ErrorCode.init(ModuleE.TX.getPrefix() + "_0020");
    ErrorCode TX_TYPE_INVALID = ErrorCode.init(ModuleE.TX.getPrefix() + "_0021");
    ErrorCode TX_DATA_VALIDATION_ERROR = ErrorCode.init(ModuleE.TX.getPrefix() + "_0022");
    ErrorCode TX_SIZE_TOO_LARGE = ErrorCode.init(ModuleE.TX.getPrefix() + "_0023");
    ErrorCode ACCOUNT_NOT_EXIST = ErrorCode.init(ModuleE.TX.getPrefix() + "_0024");

    ErrorCode TX_LEDGER_VERIFY_FAIL = ErrorCode.init(ModuleE.TX.getPrefix() + "_0025");
    ErrorCode ORPHAN_TX = ErrorCode.init(ModuleE.TX.getPrefix() + "_0026");
    ErrorCode TX_REPEATED = ErrorCode.init(ModuleE.TX.getPrefix() + "_0027");

    ErrorCode REMOTE_RESPONSE_DATA_NOT_FOUND = ErrorCode.init(ModuleE.TX.getPrefix() + "_0028");
    ErrorCode TX_FROM_CANNOT_HAS_CONTRACT_ADDRESS = ErrorCode.init(ModuleE.TX.getPrefix() + "_0029");
    ErrorCode PAUSE_NEWTX = ErrorCode.init(ModuleE.TX.getPrefix() + "_0030");
    ErrorCode TX_BROADCAST_FAIL = ErrorCode.init(ModuleE.TX.getPrefix() + "_0031");
    ErrorCode SEND_MSG_FAIL = ErrorCode.init(ModuleE.TX.getPrefix() + "_0032");
    ErrorCode INVALID_ADDRESS = ErrorCode.init(ModuleE.TX.getPrefix() + "_0033");
    ErrorCode INSUFFICIENT_SIGNATURES = ErrorCode.init(ModuleE.TX.getPrefix() + "_0034");
    ErrorCode MULTI_SIGN_TX_ONLY_SAME_ADDRESS = ErrorCode.init(ModuleE.TX.getPrefix() + "_0035");
    ErrorCode MULTISIGN_ACCOUNT_NOT_EXIST = ErrorCode.init(ModuleE.TX.getPrefix() + "_0036");

    ErrorCode TX_VERIFY_FAIL = ErrorCode.init(ModuleE.TX.getPrefix() + "_0037");
    ErrorCode CONTRACT_VERIFY_FAIL = ErrorCode.init(ModuleE.TX.getPrefix() + "_0038");
    ErrorCode TX_CONFIRMED = ErrorCode.init(ModuleE.TX.getPrefix() + "_0039");
    ErrorCode SYS_TX_TYPE_NON_CIRCULATING = ErrorCode.init(ModuleE.TX.getPrefix() + "_0040");
    ErrorCode SYS_CONTRACT_TX_NON_CIRCULATING = ErrorCode.init(ModuleE.TX.getPrefix() + "_0041");
    ErrorCode CONTAINS_MULTIPLE_UNIQUE_TXS = ErrorCode.init(ModuleE.TX.getPrefix() + "_0042");


    // ErrorCode EXIST_GAS_RETURN_WITHOUT_SC_RETURN = ErrorCode.init(ModuleE.TX.getPrefix() + "_0043");
    ErrorCode ADDRESS_LOCKED = ErrorCode.init(ModuleE.TX.getPrefix() + "_0043");


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy