File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ """
2+ def deploy_asset(*, asset: Asset, source_account: Keypair) -> None:
3+ source_account_ = server.load_account(source_account.public_key)
4+ tx = (
5+ TransactionBuilder(source_account_, Network.TESTNET_NETWORK_PASSPHRASE)
6+ .set_timeout(300)
7+ .append_create_stellar_asset_contract_from_asset_op(asset=asset)
8+ .build()
9+ )
10+ # tx = soroban_server.prepare_transaction(tx)
11+ # tx.sign(kp)
12+ # send_transaction_data = soroban_server.send_transaction(tx)
13+ # if get_transaction_data.status == GetTransactionStatus.SUCCESS:
14+ # transaction_meta = stellar_xdr.TransactionMeta.from_xdr(
15+ # get_transaction_data.result_meta_xdr
16+ # )
17+ # result = transaction_meta.v3.soroban_meta.return_value.address.contract_id.hash # type: ignore
18+ # contract_id = StrKey.encode_contract(result)
19+ # print(f"contract id: {contract_id}")
20+ """
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ class Identity(BaseSettings):
3333 keypair : Keypair | None = None
3434
3535 model_config = SettingsConfigDict (
36- env_file = ["identity.toml" , ".soroban/identity.toml" ]
36+ env_file = ["identity.toml" , ".soroban/identity/identity .toml" ]
3737 )
3838
3939 @model_validator (mode = "after" )
File renamed without changes.
You can’t perform that action at this time.
0 commit comments