Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

<fix>(tx): change transaction v2 to v1. #214

Merged
merged 1 commit into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bcos-c-sdk/bcos_sdk_c_common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ struct bcos_sdk_c_config* bcos_sdk_c_config_create_empty()

char* my_strdup(const char* s)
{
if (s == NULL)
{
return NULL;
}
size_t len = strlen(s) + 1;
char* result = (char*)malloc(len);
if (result == (char*)0)
Expand Down
6 changes: 3 additions & 3 deletions bcos-c-sdk/bcos_sdk_c_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ struct bcos_sdk_c_transaction_data
struct bcos_sdk_c_bytes* input;
};

struct bcos_sdk_c_transaction_data_v2
struct bcos_sdk_c_transaction_data_v1
{
int32_t version;
int64_t block_limit;
Expand Down Expand Up @@ -241,9 +241,9 @@ struct bcos_sdk_c_transaction
char* extra_data;
};

struct bcos_sdk_c_transaction_v2
struct bcos_sdk_c_transaction_v1
{
struct bcos_sdk_c_transaction_data_v2* transaction_data;
struct bcos_sdk_c_transaction_data_v1* transaction_data;
struct bcos_sdk_c_bytes* data_hash;
struct bcos_sdk_c_bytes* signature;
struct bcos_sdk_c_bytes* sender;
Expand Down
360 changes: 179 additions & 181 deletions bcos-c-sdk/bcos_sdk_c_uti_tx_struct.cpp

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions bcos-c-sdk/bcos_sdk_c_uti_tx_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,59 +194,59 @@ struct bcos_sdk_c_transaction* bcos_sdk_decode_transaction_struct_from_hex(
struct bcos_sdk_c_transaction* bcos_sdk_decode_transaction_struct_from_json(
const char* transaction_json_str);

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_create_transaction_data_struct_with_hex_input_v2(
struct bcos_sdk_c_transaction_data_v1* bcos_sdk_create_transaction_data_struct_with_hex_input_v1(
const char* group_id, const char* chain_id, const char* to, const char* input, const char* abi,
int64_t block_limit, const char* value, const char* gas_price, int64_t gas_limit,
const char* max_fee_per_gas, const char* max_priority_fee_per_gas);

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_create_transaction_data_struct_with_bytes_v2(
struct bcos_sdk_c_transaction_data_v1* bcos_sdk_create_transaction_data_struct_with_bytes_v1(
const char* group_id, const char* chain_id, const char* to, const unsigned char* bytes_input,
uint32_t bytes_input_length, const char* abi, int64_t block_limit, const char* value,
const char* gas_price, int64_t gas_limit, const char* max_fee_per_gas,
const char* max_priority_fee_per_gas);


void bcos_sdk_destroy_transaction_data_struct_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data);
void bcos_sdk_destroy_transaction_data_struct_v1(
struct bcos_sdk_c_transaction_data_v1* transaction_data);

const char* bcos_sdk_encode_transaction_data_struct_to_hex_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data);
const char* bcos_sdk_encode_transaction_data_struct_to_hex_v1(
struct bcos_sdk_c_transaction_data_v1* transaction_data);

const char* bcos_sdk_encode_transaction_data_struct_to_json_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data);
const char* bcos_sdk_encode_transaction_data_struct_to_json_v1(
struct bcos_sdk_c_transaction_data_v1* transaction_data);

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_decode_transaction_data_struct_from_hex_v2(
struct bcos_sdk_c_transaction_data_v1* bcos_sdk_decode_transaction_data_struct_from_hex_v1(
const char* transaction_data_hex_str);

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_decode_transaction_data_struct_from_json_v2(
struct bcos_sdk_c_transaction_data_v1* bcos_sdk_decode_transaction_data_struct_from_json_v1(
const char* transaction_data_json_str);

const char* bcos_sdk_calc_transaction_data_struct_hash_v2(
int crypto_type, struct bcos_sdk_c_transaction_data_v2* transaction_data);
const char* bcos_sdk_calc_transaction_data_struct_hash_v1(
int crypto_type, struct bcos_sdk_c_transaction_data_v1* transaction_data);

const char* bcos_sdk_calc_transaction_data_struct_hash_with_hex_v2(
const char* bcos_sdk_calc_transaction_data_struct_hash_with_hex_v1(
int crypto_type, const char* transaction_data_hex);

struct bcos_sdk_c_transaction_v2* bcos_sdk_create_transaction_struct_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data, const char* signature,
struct bcos_sdk_c_transaction_v1* bcos_sdk_create_transaction_struct_v1(
struct bcos_sdk_c_transaction_data_v1* transaction_data, const char* signature,
const char* transaction_data_hash, int32_t attribute, const char* extra_data);

void bcos_sdk_destroy_transaction_struct_v2(struct bcos_sdk_c_transaction_v2* transaction);
void bcos_sdk_destroy_transaction_struct_v1(struct bcos_sdk_c_transaction_v1* transaction);

const char* bcos_sdk_create_encoded_transaction_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data, const char* signature,
const char* bcos_sdk_create_encoded_transaction_v1(
struct bcos_sdk_c_transaction_data_v1* transaction_data, const char* signature,
const char* transaction_data_hash, int32_t attribute, const char* extra_data);

const char* bcos_sdk_encode_transaction_struct_to_hex_v2(
struct bcos_sdk_c_transaction_v2* transaction);
const char* bcos_sdk_encode_transaction_struct_to_hex_v1(
struct bcos_sdk_c_transaction_v1* transaction);

const char* bcos_sdk_encode_transaction_struct_to_json_v2(
struct bcos_sdk_c_transaction_v2* transaction);
const char* bcos_sdk_encode_transaction_struct_to_json_v1(
struct bcos_sdk_c_transaction_v1* transaction);

struct bcos_sdk_c_transaction_v2* bcos_sdk_decode_transaction_struct_from_hex_v2(
struct bcos_sdk_c_transaction_v1* bcos_sdk_decode_transaction_struct_from_hex_v1(
const char* transaction_hex_str);

struct bcos_sdk_c_transaction_v2* bcos_sdk_decode_transaction_struct_from_json_v2(
struct bcos_sdk_c_transaction_v1* bcos_sdk_decode_transaction_struct_from_json_v1(
const char* transaction_json_str);

#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @file bcos_sdk_c_uti_tx_v2.cpp
* @file bcos_sdk_c_uti_tx_v1.cpp
* @author: kyonGuo
* @date 2023/11/28
*/

#include "bcos_sdk_c_uti_tx_v2.h"
#include "bcos_sdk_c_uti_tx_v1.h"
#include "bcos_sdk_c_error.h"
#include <bcos-c-sdk/bcos_sdk_c_common.h>
#include <bcos-cpp-sdk/Sdk.h>
#include <bcos-cpp-sdk/utilities/crypto/Common.h>
#include <bcos-cpp-sdk/utilities/tx/TransactionBuilderV2.h>
#include <bcos-cpp-sdk/utilities/tx/TransactionBuilderV1.h>

using namespace bcos;
using namespace bcos::cppsdk;
Expand All @@ -33,7 +33,7 @@ using namespace bcos::cppsdk::utilities;
#include <exception>
#include <system_error>

void* bcos_sdk_create_transaction_v2_data(const char* group_id, const char* chain_id,
void* bcos_sdk_create_transaction_v1_data(const char* group_id, const char* chain_id,
const char* to, const char* nonce, const unsigned char* input, long inputSize, const char* abi,
int64_t block_limit, const char* value, const char* gas_price, int64_t gas_limit)
{
Expand All @@ -46,7 +46,7 @@ void* bcos_sdk_create_transaction_v2_data(const char* group_id, const char* chai

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
auto transactionData = builder.createTransactionData(1, group_id, chain_id, to,
nonce ? nonce : "", std::move(bytesData), abi, block_limit, value ? value : "",
Expand Down Expand Up @@ -86,7 +86,7 @@ void* bcos_sdk_create_eip1559_transaction_data(const char* group_id, const char*

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
auto transactionData = builder.createTransactionData(1, group_id, chain_id, to,
nonce ? nonce : "", std::move(bytesData), abi, block_limit, value ? value : "", "",
Expand Down Expand Up @@ -133,7 +133,7 @@ const char* bcos_sdk_calc_transaction_data_hash_with_full_fields(int crypto_type
try
{
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto transactionDataHash = builder.calculateTransactionDataHash(
crypto_type == BCOS_C_SDK_ECDSA_TYPE ? CryptoType::Secp256K1 : CryptoType::SM2, version,
group_id, chain_id, to ? to : "", nonce, std::move(bytesData), abi ? abi : "",
Expand Down Expand Up @@ -171,7 +171,7 @@ const char* bcos_sdk_calc_transaction_data_hash_with_json(int crypto_type, const

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto transactionDataHash = builder.calculateTransactionDataHashWithJson(
crypto_type == BCOS_C_SDK_ECDSA_TYPE ? CryptoType::Secp256K1 : CryptoType::SM2, json);
return strdup(bcos::toHexStringWithPrefix(transactionDataHash).c_str());
Expand Down Expand Up @@ -205,7 +205,7 @@ const char* bcos_sdk_create_signed_transaction_with_signature(const unsigned cha

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
auto hash = std::string_view(transaction_hash);
crypto::HashType tx_hash(fromHex(hash, hash.starts_with("0x") ? "0x" : ""));
Expand Down Expand Up @@ -260,7 +260,7 @@ void bcos_sdk_create_signed_transaction_with_full_fields(void* key_pair, const c

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
auto result =
builder.createSignedTransaction(*static_cast<bcos::crypto::KeyPairInterface*>(key_pair),
Expand Down Expand Up @@ -309,7 +309,7 @@ void bcos_sdk_create_signed_eip1559_transaction_with_full_fields(void* key_pair,

try
{
TransactionBuilderV2 builder;
TransactionBuilderV1 builder;
auto bytesData = bytes(input, input + inputSize * sizeof(byte));
auto result = builder.createSignedTransaction(
*static_cast<bcos::crypto::KeyPairInterface*>(key_pair), attribute, 1, group_id,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @file bcos_sdk_c_uti_tx_v2.h
* @file bcos_sdk_c_uti_tx_v1.h
* @author: kyonGuo
* @date 2023/11/28
*/

#ifndef BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V2_H
#define BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V2_H
#ifndef BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V1_H
#define BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V1_H

#include "bcos_sdk_c_common.h"

Expand Down Expand Up @@ -54,7 +54,7 @@ enum transaction_version
* @param gas_limit gas limit
* @return void* transaction data pointer, you should release it after use
*/
void* bcos_sdk_create_transaction_v2_data(const char* group_id, const char* chain_id,
void* bcos_sdk_create_transaction_v1_data(const char* group_id, const char* chain_id,
const char* to, const char* nonce, const unsigned char* input, long inputSize, const char* abi,
int64_t block_limit, const char* value, const char* gas_price, int64_t gas_limit);

Expand Down Expand Up @@ -211,4 +211,4 @@ void bcos_sdk_create_signed_eip1559_transaction_with_full_fields(void* key_pair,
#ifdef __cplusplus
}
#endif
#endif // BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V2_H
#endif // BCOS_C_SDK_BCOS_SDK_C_UTI_TX_V1_H
2 changes: 1 addition & 1 deletion bindings/java/jni/scripts/java2jni.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function convert_java_to_jni() {
# convert_java_to_jni ${JAVA_SOURCE_PATH}

# classes="rpc.RpcJniObj amop.AmopJniObj event.EventSubJniObj BcosSDKJniObj"
classes="BcosSDKJniObj utilities.keypair.KeyPairJniObj utilities.tx.TransactionBuilderJniObj utilities.tx.TransactionBuilderV2JniObj utilities.tx.TransactionStructBuilderJniObj utilities.receipt.ReceiptBuilderJniObj utilities.signature.SignatureJniObj"
classes="BcosSDKJniObj utilities.keypair.KeyPairJniObj utilities.tx.TransactionBuilderJniObj utilities.tx.TransactionBuilderV1JniObj utilities.tx.TransactionStructBuilderJniObj utilities.receipt.ReceiptBuilderJniObj utilities.signature.SignatureJniObj"

for class in ${classes}
do
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,26 +13,26 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*
* @file org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj.cpp
* @file org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj.cpp
* @author: kyonGuo
* @date 2023/11/29
*/

#include "org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj.h"
#include "org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj.h"
#include "bcos-c-sdk/bcos_sdk_c_uti_tx_v1.h"
#include "bcos-c-sdk/bcos_sdk_c_error.h"
#include "bcos-c-sdk/bcos_sdk_c_uti_keypair.h"
#include "bcos-c-sdk/bcos_sdk_c_uti_tx_v2.h"
#include "org_fisco_bcos_sdk_common.h"
#include <tuple>

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: createTransactionData
* Signature:
* (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;Ljava/lang/String;J)J
*/
JNIEXPORT jlong JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createTransactionData(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_createTransactionData(
JNIEnv* env, jclass, jstring j_group_id, jstring j_chain_id, jstring j_to, jstring j_nonce,
jbyteArray j_input, jstring j_abi, jlong j_block_limit, jstring j_value, jstring j_gas_price,
jlong j_gas_limit)
Expand All @@ -54,7 +54,7 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createTransa
jbyte* inputBuffer = env->GetByteArrayElements(j_input, NULL);
jsize inputSize = env->GetArrayLength(j_input);

void* transaction_data = bcos_sdk_create_transaction_v2_data(group_id, chain_id, to, nonce,
void* transaction_data = bcos_sdk_create_transaction_v1_data(group_id, chain_id, to, nonce,
reinterpret_cast<unsigned char*>(inputBuffer), inputSize, abi, block_limit, value,
gas_price, gas_limit);

Expand All @@ -77,13 +77,13 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createTransa
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: createEIP1559TransactionData
* Signature:
* (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;JLjava/lang/String;Ljava/lang/String;)J
*/
JNIEXPORT jlong JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createEIP1559TransactionData(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_createEIP1559TransactionData(
JNIEnv* env, jclass, jstring j_group_id, jstring j_chain_id, jstring j_to, jstring j_nonce,
jbyteArray j_input, jstring j_abi, jlong j_block_limit, jstring j_value, jlong j_gas_limit,
jstring j_max_fee_per_gas, jstring j_max_priority_fee_per_gas)
Expand Down Expand Up @@ -130,13 +130,13 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createEIP155
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: calcTransactionDataHashWithFullFields
* Signature:
* (ILorg/fisco/bcos/sdk/jni/utilities/tx/TransactionVersion;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_calcTransactionDataHashWithFullFields(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_calcTransactionDataHashWithFullFields(
JNIEnv* env, jclass, jint j_crypto_type, jobject j_tx_version, jstring j_group_id,
jstring j_chain_id, jstring j_to, jstring j_nonce, jbyteArray j_input, jstring j_abi,
jlong j_block_limit, jstring j_value, jstring j_gasPrice, jlong j_gas_limit,
Expand Down Expand Up @@ -202,12 +202,12 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_calcTransact
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: calcTransactionDataHashWithJson
* Signature: (ILjava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_calcTransactionDataHashWithJson(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_calcTransactionDataHashWithJson(
JNIEnv* env, jclass, jint j_crypto_type, jstring j_json)
{
CHECK_OBJECT_NOT_NULL(env, j_json, NULL);
Expand Down Expand Up @@ -236,13 +236,13 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_calcTransact
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: createSignedTransactionWithSignature
* Signature:
* ([BLjava/lang/String;Lorg/fisco/bcos/sdk/jni/utilities/tx/TransactionVersion;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;Ljava/lang/String;JLjava/lang/String;Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
*/
JNIEXPORT jstring JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createSignedTransactionWithSignature(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_createSignedTransactionWithSignature(
JNIEnv* env, jclass, jbyteArray j_signature, jstring j_tx_hash, jobject j_tx_version,
jstring j_group_id, jstring j_chain_id, jstring j_to, jstring j_nonce, jbyteArray j_input,
jstring j_abi, jlong j_block_limit, jstring j_value, jstring j_gas_price, jlong j_gas_limit,
Expand Down Expand Up @@ -318,13 +318,13 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createSigned
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: createSignedTransactionWithFullFields
* Signature:
* (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;Ljava/lang/String;JILjava/lang/String;)Lorg/fisco/bcos/sdk/jni/utilities/tx/TxPair;
*/
JNIEXPORT jobject JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createSignedTransactionWithFullFields(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_createSignedTransactionWithFullFields(
JNIEnv* env, jclass, jlong j_key_pair, jstring j_group_id, jstring j_chain_id, jstring j_to,
jstring j_nonce, jbyteArray j_input, jstring j_abi, jlong j_block_limit, jstring j_value,
jstring j_gas_price, jlong j_gas_limit, jint j_attribute, jstring j_extra_data)
Expand Down Expand Up @@ -408,13 +408,13 @@ Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createSigned
}

/*
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj
* Class: org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj
* Method: createSignedEIP1559TransactionWithFullFields
* Signature:
* (JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[BLjava/lang/String;JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;JILjava/lang/String;)Lorg/fisco/bcos/sdk/jni/utilities/tx/TxPair;
*/
JNIEXPORT jobject JNICALL
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV2JniObj_createSignedEIP1559TransactionWithFullFields(
Java_org_fisco_bcos_sdk_jni_utilities_tx_TransactionBuilderV1JniObj_createSignedEIP1559TransactionWithFullFields(
JNIEnv* env, jclass, jlong j_key_pair, jstring j_group_id, jstring j_chain_id, jstring j_to,
jstring j_nonce, jbyteArray j_input, jstring j_abi, jlong j_block_limit, jstring j_value,
jstring j_max_fee_per_gas, jstring j_max_priority_fee_per_gas, jlong j_gas_limit,
Expand Down
Loading
Loading