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

Add support for generating bindings for token contracts. #8

Merged
merged 3 commits into from
Nov 29, 2024

Conversation

overcat
Copy link
Member

@overcat overcat commented Nov 29, 2024

fix #7

if __name__ == '__main__':
    rpc_server_url = "https://soroban-testnet.stellar.org:443"
    network_passphrase = Network.TESTNET_NETWORK_PASSPHRASE
    alice_kp = Keypair.from_secret(
        "SAAPYAPTTRZMCUZFPG3G66V4ZMHTK4TWA6NS7U4F7Z3IMUD52EK4DDEV"
    )  # GDAT5HWTGIU4TSSZ4752OUC4SABDLTLZFRPZUJ3D6LKBNEPA7V2CIG54
    bob_kp = Keypair.from_secret(
        "SAEZSI6DY7AXJFIYA4PM6SIBNEYYXIEM2MSOTHFGKHDW32MBQ7KVO6EN"
    )  # GBMLPRFCZDZJPKUPHUSHCKA737GOZL7ERZLGGMJ6YGHBFJZ6ZKMKCZTM
    native_token_contract_id = "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC"
    client = Client(native_token_contract_id, rpc_server_url, network_passphrase)
    te = client.transfer(alice_kp.public_key, bob_kp.public_key, 1000, alice_kp.public_key, alice_kp)

@overcat overcat merged commit 612a48d into main Nov 29, 2024
34 checks passed
@overcat overcat deleted the token-contract branch November 29, 2024 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for generating bindings for token contracts.
1 participant