Skip to content

Commit

Permalink
chore: SorobanServer uses testnet instead of futurenet by default
Browse files Browse the repository at this point in the history
  • Loading branch information
overcat committed Nov 27, 2023
1 parent 80384be commit 60074bd
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion examples/soroban_auth_atomic_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from stellar_sdk.exceptions import PrepareTransactionException
from stellar_sdk.soroban_rpc import GetTransactionStatus, SendTransactionStatus

rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
soroban_server = SorobanServer(rpc_server_url)
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_auth_with_stellar_account.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from stellar_sdk.exceptions import PrepareTransactionException
from stellar_sdk.soroban_rpc import GetTransactionStatus, SendTransactionStatus

rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE
soroban_server = SorobanServer(rpc_server_url)

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_auth_with_transaction_invoke.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from stellar_sdk.exceptions import PrepareTransactionException
from stellar_sdk.soroban_rpc import GetTransactionStatus, SendTransactionStatus

rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
soroban_server = SorobanServer(rpc_server_url)
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_deploy_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

# TODO: You need to replace the following parameters according to the actual situation
secret = "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE
contract_file_path = "/Users/overcat/repo/stellar/soroban-examples/hello_world/target/wasm32-unknown-unknown/release/soroban_hello_world_contract.wasm"

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_deploy_create_wrapped_token_contract.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

# TODO: You need to replace the following parameters according to the actual situation
secret = "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE
hello_asset = Asset("XLM", "GBCXQUEPSEGIKXLYODHKMZD7YMTZ4IUY3BYPRZL4D5MSJZHHE7HG6RWR")

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_extend_footprint_ttl.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from stellar_sdk.soroban_rpc import GetTransactionStatus

secret = "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
contract_id = "CBQHNAXSI55GX2GN6D67GK7BHVPSLJUGZQEU7WJ5LKR5PNUCGLIMAO4K"
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_invoke_contract_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# TODO: You need to replace the following parameters according to the actual situation
secret = "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
contract_id = "CDJO3KQKJFHFEZY2ZSWS4CTZEAZUO2SZNRWO2Y7QQS4X3UWSOLFJHSS3"
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from stellar_sdk.exceptions import PrepareTransactionException
from stellar_sdk.soroban_rpc import GetTransactionStatus, SendTransactionStatus

rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
soroban_server = SorobanServer(rpc_server_url)
network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE

Expand Down
2 changes: 1 addition & 1 deletion examples/soroban_restore_footprint.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
from stellar_sdk.soroban_rpc import GetTransactionStatus, SendTransactionStatus

secret = "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
rpc_server_url = "https://soroban-testnet.stellar.org:443/"
rpc_server_url = "https://soroban-testnet.stellar.org:443"
contract_id = "CAEZUQ3JTKBLIYFZEHKSK5X2K3MGU66B4F6MJFEKZKF6ZFRWBERV3BKF"
network_passphrase = Network.STANDALONE_NETWORK_PASSPHRASE

Expand Down
4 changes: 2 additions & 2 deletions stellar_sdk/soroban_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class SorobanServer:
"""Server handles the network connection to a Soroban RPC instance and
exposes an interface for requests to that instance.
:param server_url: Soroban RPC server URL. (ex. ``https://soroban-testnet.stellar.org:443/``)
:param server_url: Soroban RPC server URL. (ex. ``https://soroban-testnet.stellar.org:443``)
:param client: A client instance that will be used to make requests.
"""

def __init__(
self,
server_url: str = "https://soroban-testnet.stellar.org:443/",
server_url: str = "https://soroban-testnet.stellar.org:443",
client: Optional[BaseSyncClient] = None,
) -> None:
self.server_url: str = server_url
Expand Down
4 changes: 2 additions & 2 deletions stellar_sdk/soroban_server_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ class SorobanServerAsync:
"""Server handles the network connection to a Soroban RPC instance and
exposes an interface for requests to that instance.
:param server_url: Soroban RPC server URL. (ex. ``https://soroban-testnet.stellar.org:443/``)
:param server_url: Soroban RPC server URL. (ex. ``https://soroban-testnet.stellar.org:443``)
:param client: A client instance that will be used to make requests.
"""

def __init__(
self,
server_url: str = "https://soroban-testnet.stellar.org:443/",
server_url: str = "https://soroban-testnet.stellar.org:443",
client: Optional[BaseAsyncClient] = None,
) -> None:
self.server_url: str = server_url
Expand Down

0 comments on commit 60074bd

Please sign in to comment.