s.fisco-bcos-tars-sdk.3.5.0.source-code.TransactionFactory Maven / Gradle / Ivy
The newest version!
/* ----------------------------------------------------------------------------
* This file was automatically generated by SWIG (https://www.swig.org).
* Version 4.1.1
*
* Do not make changes to this file unless you know what you are doing - modify
* the SWIG interface file instead.
* ----------------------------------------------------------------------------- */
package org.fisco.bcos.sdk.tars;
public class TransactionFactory {
private transient long swigCPtr;
private transient boolean swigCMemOwn;
protected TransactionFactory(long cPtr, boolean cMemoryOwn) {
swigCMemOwn = cMemoryOwn;
swigCPtr = cPtr;
}
protected static long getCPtr(TransactionFactory obj) {
return (obj == null) ? 0 : obj.swigCPtr;
}
protected void swigSetCMemOwn(boolean own) {
swigCMemOwn = own;
}
@SuppressWarnings("deprecation")
protected void finalize() {
delete();
}
public synchronized void delete() {
if (swigCPtr != 0) {
if (swigCMemOwn) {
swigCMemOwn = false;
bcosJNI.delete_TransactionFactory(swigCPtr);
}
swigCPtr = 0;
}
}
public Transaction createTransaction(SWIGTYPE_p_bytesConstRef txData, boolean checkSig, boolean checkHash) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_0(swigCPtr, this, SWIGTYPE_p_bytesConstRef.getCPtr(txData), checkSig, checkHash);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(SWIGTYPE_p_bytesConstRef txData, boolean checkSig) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_1(swigCPtr, this, SWIGTYPE_p_bytesConstRef.getCPtr(txData), checkSig);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(SWIGTYPE_p_bytesConstRef txData) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_2(swigCPtr, this, SWIGTYPE_p_bytesConstRef.getCPtr(txData));
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long blockLimit, String _chainId, String _groupId, long _importTime, String _abi) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_3(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, blockLimit, _chainId, _groupId, _importTime, _abi);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long blockLimit, String _chainId, String _groupId, long _importTime) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_4(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, blockLimit, _chainId, _groupId, _importTime);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, KeyPairInterface keyPair, String _abi) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_5(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, KeyPairInterface.getCPtr(keyPair), keyPair, _abi);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, KeyPairInterface keyPair) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_6(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, KeyPairInterface.getCPtr(keyPair), keyPair);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t keyPair, String _abi) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_7(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t.getCPtr(keyPair), _abi);
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public Transaction createTransaction(int _version, String _to, SWIGTYPE_p_bytes _input, String _nonce, long _blockLimit, String _chainId, String _groupId, long _importTime, SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t keyPair) {
long cPtr = bcosJNI.TransactionFactory_createTransaction__SWIG_8(swigCPtr, this, _version, _to, SWIGTYPE_p_bytes.getCPtr(_input), _nonce, _blockLimit, _chainId, _groupId, _importTime, SWIGTYPE_p_std__shared_ptrT_bcos__crypto__KeyPairInterface_t.getCPtr(keyPair));
return (cPtr == 0) ? null : new Transaction(cPtr, true);
}
public CryptoSuite cryptoSuite() {
long cPtr = bcosJNI.TransactionFactory_cryptoSuite(swigCPtr, this);
return (cPtr == 0) ? null : new CryptoSuite(cPtr, true);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy