File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,22 @@ def invoke(
2121 * ,
2222 source_account : soroban_models .Identity | stellar_sdk .Keypair | str | None = None ,
2323 network : soroban_models .NetworkConfig | soroban_models .NetworkConfig | None = None ,
24- ):
24+ ) -> xdr .SCVal :
25+ """Invoke a Soroban contract.
26+
27+ Parameters
28+ ----------
29+ contract_id : contract hash.
30+ function_name : name of the function to invoke.
31+ args : parameters passed to the contract function.
32+ source_account : signing account.
33+ network : network to use.
34+
35+ Returns
36+ -------
37+ result : return value of the contract invocation.
38+
39+ """
2540 identity = (
2641 source_account
2742 if isinstance (source_account , soroban_models .Identity )
Original file line number Diff line number Diff line change @@ -66,7 +66,8 @@ def from_source_account(
6666
6767
6868class NetworkConfig (BaseSettings ):
69- rpc_url : HttpUrl = HttpUrl ("https://soroban-testnet.stellar.org:443" )
69+ horizon_url : HttpUrl = HttpUrl ("https://horizon-testnet.stellar.org" )
70+ rpc_url : HttpUrl = HttpUrl ("https://soroban-testnet.stellar.org" )
7071 network_passphrase : str = Network .TESTNET_NETWORK_PASSPHRASE
7172 base_fee : int = 100
7273
You can’t perform that action at this time.
0 commit comments