Sdk Development

Hey @smartgoo :waving_hand:

We deployed a SilverScript AMM covenant to testnet-10 (transition-pattern like the Counter example). Deploy worked — covenant is live with 4.9 KAS locked.

The blocker: We can’t call entrypoints (swap/addLiquidity). The `kaspa.experimental.silverscript` module (`compile()`, `build_sig_script_for_covenant_decl()`) isn’t in the PyPI release of the Kaspa SDK. Building from source fails with maturin/Rust issues.

The Counter example shows exactly what we need:

contract = silverscript.compile(SOURCE, [constructor_args])

call = contract.build_sig_script_for_covenant_decl(“add”, [5])

covenant_input.signature_script = call + redeem_script

Question: Is the silverscript module available somewhere? Or a workaround for building entrypoint sighashes from Python today?

Thanks! :folded_hands:

I’ll get a version including SilverScript bindings on PyPi later today. Probably will be an RC version until next RK release is out.

Do you mind opening an issue here GitHub - kaspanet/kaspa-python-sdk: Kaspa Python SDK - A native Python extension module built from bindings to Rust & Rusty-Kaspa source. · GitHub for the build error? Would love to look at that

Posted as requested. Thank you!!

1 Like

Sorry it is Issue #70

Hi Smartgoo… I have posted some additional requests/ suggestions in a reply to issue 74. Thx.