Skip to content

Commit

Permalink
add new api for tx struct to adapt to balance
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasLi1024 committed Nov 22, 2023
1 parent 0333ad8 commit 4091703
Show file tree
Hide file tree
Showing 3 changed files with 919 additions and 0 deletions.
20 changes: 20 additions & 0 deletions bcos-c-sdk/bcos_sdk_c_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,15 @@ struct bcos_sdk_c_transaction_data
struct bcos_sdk_c_bytes* input;
};

struct bcos_sdk_c_transaction_data_v2 : public bcos_sdk_c_transaction_data
{
char* value;
char* gas_price;
int64_t gas_limit;
char* max_fee_per_gas;
char* max_priority_fee_per_gas;
};

/**
* @brief: transaction
*
Expand All @@ -224,6 +233,17 @@ struct bcos_sdk_c_transaction
char* extra_data;
};

struct bcos_sdk_c_transaction_v2
{
struct bcos_sdk_c_transaction_data_v2* transaction_data;
struct bcos_sdk_c_bytes* data_hash;
struct bcos_sdk_c_bytes* signature;
struct bcos_sdk_c_bytes* sender;
int64_t import_time;
int32_t attribute;
char* extra_data;
};

//--------------- transaction end---------------------------------

#ifdef __cplusplus
Expand Down
Loading

0 comments on commit 4091703

Please sign in to comment.