Repository navigation
Add Python examples to the guides and learn pages that lacked them - #3115
Conversation
|
🤖 Automated message from the Stellar Triage Bot. Reviewing because this is my own PR for #1770. Checked every Python tab against stellar-sdk (Python) 17.0.1, the newest; the pages pin none. I fixed 3 defects: |
|
Not in this stack: keep these PRs to adding languages. Please open one issue listing the six defects with file paths, Agreed on |
cfdfe18 to
9ccf056
Compare
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend replied.
Ready to merge after #3113 and #3114. No live preview was available. Not run: the Python code (checked against stellar-sdk 17.0.1). |
9ccf056 to
31a8a9e
Compare
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend rebased the stack after #3113 merged.
Merge #3114 first, then this PR. Ready to merge. |
31a8a9e to
2fbe36e
Compare
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
|
🤖 Automated message from the Stellar Triage Bot. Back on this because @ElliotFriend merged #3114 and rebased this PR onto
Ready to merge. |
ElliotFriend
left a comment
There was a problem hiding this comment.
Approving. Checked locally against stellar-sdk 17.0.1:
- All 59 new Python blocks compile.
- Joined per page, every undefined name is intentional:
serverandsubmit_txfrom the submit guide, thesend_transactionfootnote helper, or placeholders that mirror the JS tab. - SDK calls type-check, apart from Optional narrowing noise.
EventFilter(event_type=…, contract_ids=…)builds correctly at runtime, andprepare_transactiondoes keep an operation's own auth entries, as the comment says. - The rebuilt preview renders the Python tabs in the right order.
Not run on testnet. The six existing defects are tracked in #3119.
🤖 Automated message from the Stellar Triage Bot.
Refs #1770
Working this because @ElliotFriend approved the plan in #1770. This is PR 3 of the stack. It is based on #3114, so merge #3113 and #3114 first. It adds Python examples to the pages that had none.
What changed
send-and-receive-payments, the Java tabs moved after Go. Their content is unchanged.<CodeGroup>with titled tabs.getAccountEntry,requestAirdrop,returnValue), the code reads ledger entries, gets the Friendbot URL fromget_network(), and reads the return value from the transaction meta.Skipped
dapps/state-archival: all of its code is browser code that uses the Varial wallet. @ElliotFriend agreed to leave it as it is.fetchexample onsimulateTransaction-Deep-Dive, the Varial block onsigning-soroban-invocations, and the block onpooled-accounts-muxed-accounts-memosthat quotes a JavaScript SDK error.Verified
pnpm checkpasses.pnpm check:linksreports only the known broken links in.mintlify/skills/.Not verified
py_compileandpipneed approval in this lane.signing-soroban-invocations, PythonContractClientsimulates with the null account as source. That account exists on testnet today.Found in existing code, not fixed here
Six defects in the existing JavaScript, Go, Java and Python tabs on these pages. This PR only adds Python, so they are listed in #3119.
Overlaps
horizon/api-reference/structure/pagination/index.mdx(frontmatter only).