@bennyblader/ddk-rn 0.3.38 → 0.3.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bennyblader/ddk-rn",
3
- "version": "0.3.38",
3
+ "version": "0.3.40",
4
4
  "description": "dlcdevkit bindings for react-native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -22,12 +22,12 @@ interface NativeModuleInterface {
22
22
  ubrn_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_oracle_info(cets: Uint8Array, oracleInfo: Uint8Array, fundingSecretKey: Uint8Array, fundingScriptPubkey: Uint8Array, fundOutputValue: bigint, msgs: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
23
23
  ubrn_uniffi_ddk_ffi_fn_func_create_cet_adaptor_sigs_from_points(cets: Uint8Array, adaptorPoints: Uint8Array, fundingSecretKey: Uint8Array, fundingScriptPubkey: Uint8Array, fundOutputValue: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
24
24
  ubrn_uniffi_ddk_ffi_fn_func_create_cets(fundTxId: Uint8Array, fundVout: number, localFinalScriptPubkey: Uint8Array, remoteFinalScriptPubkey: Uint8Array, outcomes: Uint8Array, lockTime: number, localSerialId: bigint, remoteSerialId: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
25
- ubrn_uniffi_ddk_ffi_fn_func_create_dlc_transactions(outcomes: Uint8Array, localParams: Uint8Array, remoteParams: Uint8Array, refundLocktime: number, feeRate: bigint, fundLockTime: number, cetLockTime: number, fundOutputSerialId: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
25
+ ubrn_uniffi_ddk_ffi_fn_func_create_dlc_transactions(outcomes: Uint8Array, localParams: Uint8Array, remoteParams: Uint8Array, refundLocktime: number, feeRate: bigint, fundLockTime: number, cetLockTime: number, fundOutputSerialId: bigint, contractFlags: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
26
26
  ubrn_uniffi_ddk_ffi_fn_func_create_extkey_from_parent_path(extkey: Uint8Array, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
27
27
  ubrn_uniffi_ddk_ffi_fn_func_create_extkey_from_seed(seed: Uint8Array, network: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
28
28
  ubrn_uniffi_ddk_ffi_fn_func_create_fund_tx_locking_script(localFundPubkey: Uint8Array, remoteFundPubkey: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
29
29
  ubrn_uniffi_ddk_ffi_fn_func_create_refund_transaction(localFinalScriptPubkey: Uint8Array, remoteFinalScriptPubkey: Uint8Array, localAmount: bigint, remoteAmount: bigint, lockTime: number, fundTxId: Uint8Array, fundVout: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
30
- ubrn_uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions(outcomes: Uint8Array, localParams: Uint8Array, remoteParams: Uint8Array, refundLocktime: number, feeRate: bigint, fundLockTime: number, cetLockTime: number, fundOutputSerialId: bigint, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
30
+ ubrn_uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions(outcomes: Uint8Array, localParams: Uint8Array, remoteParams: Uint8Array, refundLocktime: number, feeRate: bigint, fundLockTime: number, cetLockTime: number, fundOutputSerialId: bigint, contractFlags: number, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
31
31
  ubrn_uniffi_ddk_ffi_fn_func_create_xpriv_from_parent_path(seedOrXpriv: Uint8Array, baseDerivationPath: Uint8Array, network: Uint8Array, path: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
32
32
  ubrn_uniffi_ddk_ffi_fn_func_extract_ecdsa_signature_from_oracle_signatures(oracleSignatures: Uint8Array, adaptorSignature: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
33
33
  ubrn_uniffi_ddk_ffi_fn_func_get_cet_adaptor_signature_inputs(cet: Uint8Array, oracleInfo: Uint8Array, fundingScriptPubkey: Uint8Array, fundOutputValue: bigint, msgs: Uint8Array, uniffi_out_err: UniffiRustCallStatus): Uint8Array;
package/src/ddk_ffi.ts CHANGED
@@ -220,7 +220,7 @@ console.debug(`-- uniffi_ddk_ffi_fn_func_create_cets`);
220
220
  /*liftString:*/ FfiConverterString.lift,
221
221
  ));
222
222
  }
223
- export function createDlcTransactions(outcomes: Array<Payout>, localParams: PartyParams, remoteParams: PartyParams, refundLocktime: /*u32*/number, feeRate: /*u64*/bigint, fundLockTime: /*u32*/number, cetLockTime: /*u32*/number, fundOutputSerialId: /*u64*/bigint): DlcTransactions /*throws*/ {
223
+ export function createDlcTransactions(outcomes: Array<Payout>, localParams: PartyParams, remoteParams: PartyParams, refundLocktime: /*u32*/number, feeRate: /*u64*/bigint, fundLockTime: /*u32*/number, cetLockTime: /*u32*/number, fundOutputSerialId: /*u64*/bigint, contractFlags: /*u8*/number): DlcTransactions /*throws*/ {
224
224
  return FfiConverterTypeDlcTransactions.lift(
225
225
  uniffiCaller.rustCallWithError(
226
226
  /*liftError:*/ FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError),
@@ -238,6 +238,7 @@ console.debug(`-- uniffi_ddk_ffi_fn_func_create_dlc_transactions`);
238
238
  FfiConverterUInt32.lower(fundLockTime),
239
239
  FfiConverterUInt32.lower(cetLockTime),
240
240
  FfiConverterUInt64.lower(fundOutputSerialId),
241
+ FfiConverterUInt8.lower(contractFlags),
241
242
  callStatus);
242
243
  },
243
244
  /*liftString:*/ FfiConverterString.lift,
@@ -316,7 +317,7 @@ console.debug(`-- uniffi_ddk_ffi_fn_func_create_refund_transaction`);
316
317
  /*liftString:*/ FfiConverterString.lift,
317
318
  ));
318
319
  }
319
- export function createSplicedDlcTransactions(outcomes: Array<Payout>, localParams: PartyParams, remoteParams: PartyParams, refundLocktime: /*u32*/number, feeRate: /*u64*/bigint, fundLockTime: /*u32*/number, cetLockTime: /*u32*/number, fundOutputSerialId: /*u64*/bigint): DlcTransactions /*throws*/ {
320
+ export function createSplicedDlcTransactions(outcomes: Array<Payout>, localParams: PartyParams, remoteParams: PartyParams, refundLocktime: /*u32*/number, feeRate: /*u64*/bigint, fundLockTime: /*u32*/number, cetLockTime: /*u32*/number, fundOutputSerialId: /*u64*/bigint, contractFlags: /*u8*/number): DlcTransactions /*throws*/ {
320
321
  return FfiConverterTypeDlcTransactions.lift(
321
322
  uniffiCaller.rustCallWithError(
322
323
  /*liftError:*/ FfiConverterTypeDLCError.lift.bind(FfiConverterTypeDLCError),
@@ -334,6 +335,7 @@ console.debug(`-- uniffi_ddk_ffi_fn_func_create_spliced_dlc_transactions`);
334
335
  FfiConverterUInt32.lower(fundLockTime),
335
336
  FfiConverterUInt32.lower(cetLockTime),
336
337
  FfiConverterUInt64.lower(fundOutputSerialId),
338
+ FfiConverterUInt8.lower(contractFlags),
337
339
  callStatus);
338
340
  },
339
341
  /*liftString:*/ FfiConverterString.lift,
@@ -2061,7 +2063,7 @@ function uniffiEnsureInitialized() {
2061
2063
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_cets() !== 50529) {
2062
2064
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_cets");
2063
2065
  }
2064
- if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 29518) {
2066
+ if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_dlc_transactions() !== 51134) {
2065
2067
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_dlc_transactions");
2066
2068
  }
2067
2069
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_extkey_from_parent_path() !== 26671) {
@@ -2076,7 +2078,7 @@ function uniffiEnsureInitialized() {
2076
2078
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_refund_transaction() !== 57261) {
2077
2079
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_refund_transaction");
2078
2080
  }
2079
- if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 19497) {
2081
+ if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions() !== 31130) {
2080
2082
  throw new UniffiInternalError.ApiChecksumMismatch("uniffi_ddk_ffi_checksum_func_create_spliced_dlc_transactions");
2081
2083
  }
2082
2084
  if (nativeModule().ubrn_uniffi_ddk_ffi_checksum_func_create_xpriv_from_parent_path() !== 34808) {