Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python bindings initial feature set #602

Open
wants to merge 48 commits into
base: master
Choose a base branch
from

Commits on Jun 28, 2024

  1. Limited prototype of Python bindings (#56)

    * Prototype of WASM/Python bindings
    
    * Updated note
    
    * Cargo.toml merge
    
    * Note update
    
    * Address, PrivateKey, PublicKey wasm/py protos
    
    * rpc, dir rename
    
    * lints
    smartgoo authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    be3c09b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9f0ce64 View commit details
    Browse the repository at this point in the history
  3. General purpose python macros (#58)

    * kaspa-python-macros
    
    * cleanup + rename 'inner' to 'client'
    aspect authored Jun 28, 2024
    Configuration menu
    Copy the full SHA
    7a812b5 View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2024

  1. Python dict type for RPC method arg/return values (#60)

    * Python dictionary for request and response
    
    * readme update
    
    * to_keypair block moves
    smartgoo authored Jul 2, 2024
    Configuration menu
    Copy the full SHA
    6941ae5 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Python wRPC client subscription prototype (#62)

    * change python package name to 'kaspa'
    
    * Introduce Py wRPC client wrapping Inner struct that contains KaspaRpcClient
    
    * scaffolding for Python wRPC client Inner struct
    
    * Python wRPC subscribtions prototype
    
    * Python wRPC subscription callback args/kwargs
    
    * lint
    
    * minor refactor, handling of UTXO change notification
    
    * properly gate python code in kaspa-rpc-core
    
    * Attempt to fix test suite CI failure
    
    * Subscribe UTXOs Changed
    
    * subscriptions
    
    * wRPC client disconnect
    
    * unregister callbacks
    
    * fix failing kaspad build
    smartgoo authored Jul 12, 2024
    Configuration menu
    Copy the full SHA
    cef3a52 View commit details
    Browse the repository at this point in the history

Commits on Jul 21, 2024

  1. Resolver for Python wRPC client prototype (#70)

    * wRPC minor cleanup
    
    * resolver scaffolding
    
    * wRPC client failing to init due to resolver network issue
    
    * wRPC client constructor accept Resolver, network id
    
    * network null when using url
    
    * connect options and resolver methods
    
    * lints
    
    * rpc.py example tn11
    
    * set network id on client
    
    * bubble errors where possible
    
    * lint
    smartgoo authored Jul 21, 2024
    Configuration menu
    Copy the full SHA
    591c9b0 View commit details
    Browse the repository at this point in the history
  2. Python .pyi file example for type hints/editor completion (#72)

    * Feat: adding pyi file and testing first commit
    
    * Feat: Added py interface file
    
    * fix python IDE autocompletion and imports
    cafalchio authored Jul 21, 2024
    Configuration menu
    Copy the full SHA
    fc710ad View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2024

  1. Expose kaspa-wallet-keys structs to Python (#84)

    * Expose Keypair struct to Python
    
    * PublicKeyGenerator
    
    * XPub and XPrv
    
    * DerivationPath
    
    * python method names
    
    * PrivateKey to_hex method impl
    
    * Address Python method restructure
    
    * PY-NOTE comment clean up
    
    * addresses example usage from Python
    
    * pyi file
    
    * clippy failures due to 1.80
    smartgoo authored Aug 8, 2024
    Configuration menu
    Copy the full SHA
    e1662be View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2024

  1. Limited prototype of Python bindings (#56)

    * Prototype of WASM/Python bindings
    
    * Updated note
    
    * Cargo.toml merge
    
    * Note update
    
    * Address, PrivateKey, PublicKey wasm/py protos
    
    * rpc, dir rename
    
    * lints
    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    f26ba18 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6f45aed View commit details
    Browse the repository at this point in the history
  3. General purpose python macros (#58)

    * kaspa-python-macros
    
    * cleanup + rename 'inner' to 'client'
    aspect authored and smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    6c0e2a7 View commit details
    Browse the repository at this point in the history
  4. Python dict type for RPC method arg/return values (#60)

    * Python dictionary for request and response
    
    * readme update
    
    * to_keypair block moves
    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    010d72b View commit details
    Browse the repository at this point in the history
  5. Python wRPC client subscription prototype (#62)

    * change python package name to 'kaspa'
    
    * Introduce Py wRPC client wrapping Inner struct that contains KaspaRpcClient
    
    * scaffolding for Python wRPC client Inner struct
    
    * Python wRPC subscribtions prototype
    
    * Python wRPC subscription callback args/kwargs
    
    * lint
    
    * minor refactor, handling of UTXO change notification
    
    * properly gate python code in kaspa-rpc-core
    
    * Attempt to fix test suite CI failure
    
    * Subscribe UTXOs Changed
    
    * subscriptions
    
    * wRPC client disconnect
    
    * unregister callbacks
    
    * fix failing kaspad build
    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    f42d63c View commit details
    Browse the repository at this point in the history
  6. Resolver for Python wRPC client prototype (#70)

    * wRPC minor cleanup
    
    * resolver scaffolding
    
    * wRPC client failing to init due to resolver network issue
    
    * wRPC client constructor accept Resolver, network id
    
    * network null when using url
    
    * connect options and resolver methods
    
    * lints
    
    * rpc.py example tn11
    
    * set network id on client
    
    * bubble errors where possible
    
    * lint
    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    a40a0db View commit details
    Browse the repository at this point in the history
  7. Python .pyi file example for type hints/editor completion (#72)

    * Feat: adding pyi file and testing first commit
    
    * Feat: Added py interface file
    
    * fix python IDE autocompletion and imports
    cafalchio authored and smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    676a51e View commit details
    Browse the repository at this point in the history
  8. Expose kaspa-wallet-keys structs to Python (#84)

    * Expose Keypair struct to Python
    
    * PublicKeyGenerator
    
    * XPub and XPrv
    
    * DerivationPath
    
    * python method names
    
    * PrivateKey to_hex method impl
    
    * Address Python method restructure
    
    * PY-NOTE comment clean up
    
    * addresses example usage from Python
    
    * pyi file
    
    * clippy failures due to 1.80
    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    ea369e0 View commit details
    Browse the repository at this point in the history
  9. lock

    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    5784cde View commit details
    Browse the repository at this point in the history
  10. RPC & resolver omega updates

    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    86dfbf4 View commit details
    Browse the repository at this point in the history
  11. publickey py method block

    smartgoo committed Sep 21, 2024
    Configuration menu
    Copy the full SHA
    4a5bc3d View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    ba0ebc6 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    90d7dab View commit details
    Browse the repository at this point in the history
  14. fmt

    smartgoo authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    b5bb8d3 View commit details
    Browse the repository at this point in the history
  15. Merge pull request #101 from smartgoo/python-0.15.2

    Python 0.15.2
    smartgoo authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    7bb40c7 View commit details
    Browse the repository at this point in the history
  16. Python binding updates (#103)

    * XPrv additional methods to match WASM
    
    * XPub additional methods to match WASM
    
    * Address getters
    
    * PrivateKeyGenerator
    
    * Keypair
    
    * Resolver
    
    * .pyi file
    
    * Python wRPC client examples
    
    * transaction submission, wRPC dict -> Request conversion
    
    * rebase
    
    * transaction example update
    
    * wallet duplicate py blocks
    smartgoo authored Sep 21, 2024
    Configuration menu
    Copy the full SHA
    d6ccd2a View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. mnemonic to python (#104)

    smartgoo authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    c41b17c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2024

  1. ScriptBuilder (#108)

    * Python ScriptBuilder
    
    * address_from_script_public_key py util fn
    
    * remove unused
    
    * tx examples
    
    * .pyi file
    
    * script builder comment
    
    * lint
    smartgoo authored Oct 15, 2024
    Configuration menu
    Copy the full SHA
    a1ab06f View commit details
    Browse the repository at this point in the history

Commits on Oct 24, 2024

  1. Python Tx Generator (#109)

    * generator checkpoint
    
    * generator checkpoint
    
    * bug fixes
    
    * krc20 deploy comment
    
    * .pyi
    
    * rust 1.82
    
    * krc20 deploy example cleanup
    smartgoo authored Oct 24, 2024
    Configuration menu
    Copy the full SHA
    399b698 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2024

  1. Configuration menu
    Copy the full SHA
    5d48525 View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2024

  1. README update (#111)

    smartgoo authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    866e739 View commit details
    Browse the repository at this point in the history
  2. PyBinary interface type (#112)

    * kaspa-python-core and pybinary
    
    * ScriptBuilder use PyBinary
    
    * ScriptPublicKey constructor PyBinary
    
    * Transaction PyBinary
    
    * TransactionInput PyBinary
    
    * Generator, PendingTransaction PyBinary
    
    * create_transaction payload type
    
    * example clean up
    smartgoo authored Oct 26, 2024
    Configuration menu
    Copy the full SHA
    bdc2198 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    f8128e7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    676fd9d View commit details
    Browse the repository at this point in the history

Commits on Oct 27, 2024

  1. Clean up Python interface for NetworkId, NetworkType (#115)

    * NetworkId, NetworkType interface cleanup
    
    * .pyi upate
    smartgoo authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    7979002 View commit details
    Browse the repository at this point in the history
  2. Python example cleanup & bug fix (#116)

    * derivation example and required bug fixes
    
    * clean/bug fix existing examples
    smartgoo authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    480526d View commit details
    Browse the repository at this point in the history
  3. Python message signing (#117)

    * Python wallet message signing
    
    * message signing example
    
    * .pyi
    smartgoo authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    ef8e872 View commit details
    Browse the repository at this point in the history
  4. Python wallet tx mass and estimate functions (#118)

    * tx mass wallet fns
    
    * .pyi
    
    * fmt
    smartgoo authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    fe65a1c View commit details
    Browse the repository at this point in the history
  5. Python Transaction Examples (#119)

    * estimate transaction
    
    * generator example
    
    * simple_transaction file name
    
    * single_transaction  file name
    smartgoo authored Oct 27, 2024
    Configuration menu
    Copy the full SHA
    2081aff View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2024

  1. Pyo3 0.22.5 (#120)

    * cargo updates
    
    * migration to 0.22.5 and py-async-runtimes
    
    * ScriptBuilder &Bound<T>
    
    * PyUtxoEntries generator & utils
    
    * PyOutputs generator & utils
    
    * lints and cleanup
    smartgoo authored Nov 2, 2024
    Configuration menu
    Copy the full SHA
    b2cbfae View commit details
    Browse the repository at this point in the history

Commits on Nov 3, 2024

  1. Python wallet signer functions (#121)

    * signers
    
    * lint
    
    * remove comment
    
    * remove comment
    smartgoo authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    c5266f5 View commit details
    Browse the repository at this point in the history
  2. Py interface cleanup (#122)

    * String vs. &str
    
    * result type and bubble where possible
    
    * rpc result type, subscription callback print stack trace
    
    * pubkey
    smartgoo authored Nov 3, 2024
    Configuration menu
    Copy the full SHA
    4770a70 View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2024

  1. Expose consensus client util functions to Python (#123)

    * module add
    
    * lints
    
    * pyi
    smartgoo authored Nov 9, 2024
    Configuration menu
    Copy the full SHA
    8d563a1 View commit details
    Browse the repository at this point in the history

Commits on Nov 16, 2024

  1. Bindings dirs (#124)

    * bindings dir for python
    
    * rpc/wrpc/wasm -> rpc/wrpc/bindings/wasm
    
    * wallet/core/src/wasm -> wallet/core/src/bindings/wasm/
    
    * crypto/txscript/src/wasm -> crypto/txscript/src/bindings/wasm
    
    * rpc/core/src/wasm -> rpc/core/src/bindings/wasm
    smartgoo authored Nov 16, 2024
    Configuration menu
    Copy the full SHA
    6e2c380 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2024

  1. Python Cleanup (#125)

    * PaymentDestination::Change in Generator
    
    * py-note cleanup
    
    * comment clean up
    
    * example cleanup
    
    * cleanup
    
    * lint
    smartgoo authored Nov 17, 2024
    Configuration menu
    Copy the full SHA
    990472d View commit details
    Browse the repository at this point in the history

Commits on Nov 20, 2024

  1. CI (#126)

    ci.yaml:
    Compile one Python wheel (built distribution) for Linux x86_64 as simple test.
    
    deploy.yaml:
    Build wheels for select OS/architecture/Python versions
    Pull all wheels into one zip available for download release page
    smartgoo authored Nov 20, 2024
    Configuration menu
    Copy the full SHA
    48c64fd View commit details
    Browse the repository at this point in the history

Commits on Nov 21, 2024

  1. Configuration menu
    Copy the full SHA
    71e32af View commit details
    Browse the repository at this point in the history
  2. Cargo.lock

    smartgoo committed Nov 21, 2024
    Configuration menu
    Copy the full SHA
    263e5b4 View commit details
    Browse the repository at this point in the history

Commits on Nov 22, 2024

  1. bindings signer layout

    smartgoo committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    d44cbbc View commit details
    Browse the repository at this point in the history
  2. python module version

    smartgoo committed Nov 22, 2024
    Configuration menu
    Copy the full SHA
    955f7dc View commit details
    Browse the repository at this point in the history