Skip to content

Commit

Permalink
Added payjoin v0.20 bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinZavior committed Aug 20, 2024
1 parent 35f6c74 commit 2411bc3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 56 deletions.
Binary file modified python/src/payjoin/libpayjoin_ffi.dylib
Binary file not shown.
Binary file modified python/src/payjoin/libpayjoin_ffi.so
Binary file not shown.
Binary file modified python/src/payjoin/payjoin_ffi.dll
Binary file not shown.
56 changes: 0 additions & 56 deletions python/src/payjoin/payjoin_ffi.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,8 +508,6 @@ def _uniffi_check_api_checksums(lib):
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_pjuribuilder_pjos() != 46879:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_non_witness_input() != 9161:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_witness_input() != 57615:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_finalize_proposal() != 32297:
Expand Down Expand Up @@ -574,8 +572,6 @@ def _uniffi_check_api_checksums(lib):
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_v2payjoinproposal_utxos_to_be_locked() != 8312:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_non_witness_input() != 8344:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_witness_input() != 9262:
raise InternalError("UniFFI API checksum mismatch: try cleaning and rebuilding your project")
if lib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_finalize_proposal() != 16888:
Expand Down Expand Up @@ -1051,13 +1047,6 @@ class _UniffiVTableCallbackInterfaceProcessPartiallySignedTransaction(ctypes.Str
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_payjoin_ffi_fn_free_provisionalproposal.restype = None
_UniffiLib.uniffi_payjoin_ffi_fn_method_provisionalproposal_contribute_non_witness_input.argtypes = (
ctypes.c_void_p,
_UniffiRustBuffer,
_UniffiRustBuffer,
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_payjoin_ffi_fn_method_provisionalproposal_contribute_non_witness_input.restype = None
_UniffiLib.uniffi_payjoin_ffi_fn_method_provisionalproposal_contribute_witness_input.argtypes = (
ctypes.c_void_p,
_UniffiRustBuffer,
Expand Down Expand Up @@ -1394,13 +1383,6 @@ class _UniffiVTableCallbackInterfaceProcessPartiallySignedTransaction(ctypes.Str
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_payjoin_ffi_fn_free_v2provisionalproposal.restype = None
_UniffiLib.uniffi_payjoin_ffi_fn_method_v2provisionalproposal_contribute_non_witness_input.argtypes = (
ctypes.c_void_p,
_UniffiRustBuffer,
_UniffiRustBuffer,
ctypes.POINTER(_UniffiRustCallStatus),
)
_UniffiLib.uniffi_payjoin_ffi_fn_method_v2provisionalproposal_contribute_non_witness_input.restype = None
_UniffiLib.uniffi_payjoin_ffi_fn_method_v2provisionalproposal_contribute_witness_input.argtypes = (
ctypes.c_void_p,
_UniffiRustBuffer,
Expand Down Expand Up @@ -1814,9 +1796,6 @@ class _UniffiVTableCallbackInterfaceProcessPartiallySignedTransaction(ctypes.Str
_UniffiLib.uniffi_payjoin_ffi_checksum_method_pjuribuilder_pjos.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_pjuribuilder_pjos.restype = ctypes.c_uint16
_UniffiLib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_non_witness_input.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_non_witness_input.restype = ctypes.c_uint16
_UniffiLib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_witness_input.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_provisionalproposal_contribute_witness_input.restype = ctypes.c_uint16
Expand Down Expand Up @@ -1913,9 +1892,6 @@ class _UniffiVTableCallbackInterfaceProcessPartiallySignedTransaction(ctypes.Str
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2payjoinproposal_utxos_to_be_locked.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2payjoinproposal_utxos_to_be_locked.restype = ctypes.c_uint16
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_non_witness_input.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_non_witness_input.restype = ctypes.c_uint16
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_witness_input.argtypes = (
)
_UniffiLib.uniffi_payjoin_ffi_checksum_method_v2provisionalproposal_contribute_witness_input.restype = ctypes.c_uint16
Expand Down Expand Up @@ -3187,8 +3163,6 @@ def write(cls, value: PjUriBuilderProtocol, buf: _UniffiRustBuffer):


class ProvisionalProposalProtocol(typing.Protocol):
def contribute_non_witness_input(self, tx: "typing.List[int]",outpoint: "OutPoint"):
raise NotImplementedError
def contribute_witness_input(self, txout: "TxOut",outpoint: "OutPoint"):
raise NotImplementedError
def finalize_proposal(self, process_psbt: "ProcessPartiallySignedTransaction",min_feerate_sat_per_vb: "typing.Optional[int]"):
Expand Down Expand Up @@ -3224,20 +3198,6 @@ def _make_instance_(cls, pointer):
return inst


def contribute_non_witness_input(self, tx: "typing.List[int]",outpoint: "OutPoint") -> None:
_UniffiConverterSequenceUInt8.check_lower(tx)

_UniffiConverterTypeOutPoint.check_lower(outpoint)

_uniffi_rust_call_with_error(_UniffiConverterTypePayjoinError,_UniffiLib.uniffi_payjoin_ffi_fn_method_provisionalproposal_contribute_non_witness_input,self._uniffi_clone_pointer(),
_UniffiConverterSequenceUInt8.lower(tx),
_UniffiConverterTypeOutPoint.lower(outpoint))






def contribute_witness_input(self, txout: "TxOut",outpoint: "OutPoint") -> None:
_UniffiConverterTypeTxOut.check_lower(txout)

Expand Down Expand Up @@ -4395,8 +4355,6 @@ def write(cls, value: V2PayjoinProposalProtocol, buf: _UniffiRustBuffer):


class V2ProvisionalProposalProtocol(typing.Protocol):
def contribute_non_witness_input(self, tx: "typing.List[int]",outpoint: "OutPoint"):
raise NotImplementedError
def contribute_witness_input(self, txout: "TxOut",outpoint: "OutPoint"):
raise NotImplementedError
def finalize_proposal(self, process_psbt: "ProcessPartiallySignedTransaction",min_feerate_sat_per_vb: "typing.Optional[int]"):
Expand Down Expand Up @@ -4432,20 +4390,6 @@ def _make_instance_(cls, pointer):
return inst


def contribute_non_witness_input(self, tx: "typing.List[int]",outpoint: "OutPoint") -> None:
_UniffiConverterSequenceUInt8.check_lower(tx)

_UniffiConverterTypeOutPoint.check_lower(outpoint)

_uniffi_rust_call_with_error(_UniffiConverterTypePayjoinError,_UniffiLib.uniffi_payjoin_ffi_fn_method_v2provisionalproposal_contribute_non_witness_input,self._uniffi_clone_pointer(),
_UniffiConverterSequenceUInt8.lower(tx),
_UniffiConverterTypeOutPoint.lower(outpoint))






def contribute_witness_input(self, txout: "TxOut",outpoint: "OutPoint") -> None:
_UniffiConverterTypeTxOut.check_lower(txout)

Expand Down

0 comments on commit 2411bc3

Please sign in to comment.