Skip to content

Commit

Permalink
add UT for API about tx struct adapte to balance (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLi1024 authored Dec 19, 2023
1 parent 4d32b62 commit fbf3726
Show file tree
Hide file tree
Showing 2 changed files with 996 additions and 6 deletions.
19 changes: 13 additions & 6 deletions bcos-c-sdk/bcos_sdk_c_uti_tx_struct.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,17 +195,23 @@ struct bcos_sdk_c_transaction* bcos_sdk_decode_transaction_struct_with_json(

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_create_transaction_data_struct_with_hex_input_v2(
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);
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(
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);
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_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data);

const char* bcos_sdk_encode_transaction_data_struct_v2(struct bcos_sdk_c_transaction_data_v2* transaction_data);
const char* bcos_sdk_encode_transaction_data_struct_v2(
struct bcos_sdk_c_transaction_data_v2* 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_v2(
struct bcos_sdk_c_transaction_data_v2* transaction_data);

struct bcos_sdk_c_transaction_data_v2* bcos_sdk_decode_transaction_data_struct_v2(
const char* transaction_data_hex_str);
Expand All @@ -231,7 +237,8 @@ const char* bcos_sdk_create_encoded_transaction_v2(

const char* bcos_sdk_encode_transaction_struct_v2(struct bcos_sdk_c_transaction_v2* 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_v2(
struct bcos_sdk_c_transaction_v2* transaction);

struct bcos_sdk_c_transaction_v2* bcos_sdk_decode_transaction_struct_v2(
const char* transaction_hex_str);
Expand Down
Loading

0 comments on commit fbf3726

Please sign in to comment.