@@ -27,7 +27,7 @@ WALLY_CORE_API int wally_tx_input_set_witness(struct wally_tx_input *tx_input, c
27
27
WALLY_CORE_API int wally_tx_input_set_index (struct wally_tx_input * tx_input , uint32_t index );
28
28
WALLY_CORE_API int wally_tx_input_set_sequence (struct wally_tx_input * tx_input , uint32_t sequence );
29
29
30
- #ifdef BUILD_ELEMENTS
30
+ #ifndef WALLY_ABI_NO_ELEMENTS
31
31
32
32
/**
33
33
* FIXED_SIZED_OUTPUT(len, bytes_out, SHA256_LEN)
@@ -54,7 +54,7 @@ WALLY_CORE_API int wally_tx_input_set_inflation_keys(struct wally_tx_input *tx_i
54
54
WALLY_CORE_API int wally_tx_input_set_inflation_keys_rangeproof (struct wally_tx_input * tx_input_in , const unsigned char * inflation_keys_rangeproof , size_t inflation_keys_rangeproof_len );
55
55
WALLY_CORE_API int wally_tx_input_set_issuance_amount (struct wally_tx_input * tx_input_in , const unsigned char * issuance_amount , size_t issuance_amount_len );
56
56
WALLY_CORE_API int wally_tx_input_set_issuance_amount_rangeproof (struct wally_tx_input * tx_input_in , const unsigned char * issuance_amount_rangeproof , size_t issuance_amount_rangeproof_len );
57
- #endif /* BUILD_ELEMENTS */
57
+ #endif /* WALLY_ABI_NO_ELEMENTS */
58
58
59
59
/* Output */
60
60
WALLY_CORE_API int wally_tx_output_get_script (const struct wally_tx_output * tx_output_in , unsigned char * bytes_out , size_t len , size_t * written );
@@ -64,7 +64,7 @@ WALLY_CORE_API int wally_tx_output_get_satoshi(const struct wally_tx_output *tx_
64
64
WALLY_CORE_API int wally_tx_output_set_script (struct wally_tx_output * tx_output_in , const unsigned char * script , size_t script_len );
65
65
WALLY_CORE_API int wally_tx_output_set_satoshi (struct wally_tx_output * tx_output_in , uint64_t satoshi );
66
66
67
- #ifdef BUILD_ELEMENTS
67
+ #ifndef WALLY_ABI_NO_ELEMENTS
68
68
WALLY_CORE_API int wally_tx_output_get_asset (const struct wally_tx_output * tx_output_in , unsigned char * bytes_out , size_t len );
69
69
WALLY_CORE_API int wally_tx_output_get_asset_len (const struct wally_tx_output * tx_output_in , size_t * written );
70
70
WALLY_CORE_API int wally_tx_output_get_value (const struct wally_tx_output * tx_output_in , unsigned char * bytes_out , size_t len , size_t * written );
@@ -81,7 +81,7 @@ WALLY_CORE_API int wally_tx_output_set_value(struct wally_tx_output *tx_output_i
81
81
WALLY_CORE_API int wally_tx_output_set_nonce (struct wally_tx_output * tx_output_in , const unsigned char * nonce , size_t nonce_len );
82
82
WALLY_CORE_API int wally_tx_output_set_surjectionproof (struct wally_tx_output * tx_output_in , const unsigned char * surjectionproof , size_t surjectionproof_len );
83
83
WALLY_CORE_API int wally_tx_output_set_rangeproof (struct wally_tx_output * tx_output_in , const unsigned char * rangeproof , size_t rangeproof_len );
84
- #endif /* BUILD_ELEMENTS */
84
+ #endif /* WALLY_ABI_NO_ELEMENTS */
85
85
86
86
/* Transaction */
87
87
WALLY_CORE_API int wally_tx_get_version (const struct wally_tx * tx_in , size_t * written );
@@ -107,7 +107,7 @@ WALLY_CORE_API int wally_tx_set_input_index(const struct wally_tx *tx_in, size_t
107
107
WALLY_CORE_API int wally_tx_set_input_sequence (const struct wally_tx * tx_in , size_t index , uint32_t sequence );
108
108
WALLY_CORE_API int wally_tx_set_input_txhash (const struct wally_tx * tx_in , size_t index , const unsigned char * txhash , size_t txhash_len );
109
109
110
- #ifdef BUILD_ELEMENTS
110
+ #ifndef WALLY_ABI_NO_ELEMENTS
111
111
112
112
/**
113
113
* FIXED_SIZED_OUTPUT(len, bytes_out, SHA256_LEN)
@@ -134,7 +134,7 @@ WALLY_CORE_API int wally_tx_set_input_inflation_keys(const struct wally_tx *tx_i
134
134
WALLY_CORE_API int wally_tx_set_input_inflation_keys_rangeproof (const struct wally_tx * tx_in , size_t index , const unsigned char * inflation_keys_rangeproof , size_t inflation_keys_rangeproof_len );
135
135
WALLY_CORE_API int wally_tx_set_input_issuance_amount (const struct wally_tx * tx_in , size_t index , const unsigned char * issuance_amount , size_t issuance_amount_len );
136
136
WALLY_CORE_API int wally_tx_set_input_issuance_amount_rangeproof (const struct wally_tx * tx_in , size_t index , const unsigned char * issuance_amount_rangeproof , size_t issuance_amount_rangeproof_len );
137
- #endif /* BUILD_ELEMENTS */
137
+ #endif /* WALLY_ABI_NO_ELEMENTS */
138
138
139
139
/* Transaction Outputs */
140
140
WALLY_CORE_API int wally_tx_get_output_script (const struct wally_tx * tx_in , size_t index , unsigned char * bytes_out , size_t len , size_t * written );
@@ -144,7 +144,7 @@ WALLY_CORE_API int wally_tx_get_output_satoshi(const struct wally_tx *tx_in, siz
144
144
WALLY_CORE_API int wally_tx_set_output_script (const struct wally_tx * tx_in , size_t index , const unsigned char * script , size_t script_len );
145
145
WALLY_CORE_API int wally_tx_set_output_satoshi (const struct wally_tx * tx_in , size_t index , uint64_t satoshi );
146
146
147
- #ifdef BUILD_ELEMENTS
147
+ #ifndef WALLY_ABI_NO_ELEMENTS
148
148
149
149
/**
150
150
* FIXED_SIZED_OUTPUT(len, bytes_out, WALLY_TX_ASSET_CT_ASSET_LEN)
@@ -173,7 +173,7 @@ WALLY_CORE_API int wally_tx_set_output_value(const struct wally_tx *tx_in, size_
173
173
WALLY_CORE_API int wally_tx_set_output_nonce (const struct wally_tx * tx_in , size_t index , const unsigned char * nonce , size_t nonce_len );
174
174
WALLY_CORE_API int wally_tx_set_output_surjectionproof (const struct wally_tx * tx_in , size_t index , const unsigned char * surjectionproof , size_t surjectionproof_len );
175
175
WALLY_CORE_API int wally_tx_set_output_rangeproof (const struct wally_tx * tx_in , size_t index , const unsigned char * rangeproof , size_t rangeproof_len );
176
- #endif /* BUILD_ELEMENTS */
176
+ #endif /* WALLY_ABI_NO_ELEMENTS */
177
177
178
178
179
179
#ifdef __cplusplus
0 commit comments