Repository navigation
feat(sdk-rust): rust interface crate for cross-contract escrow calls - #185
Vhickcrypt150-pixel wants to merge 13 commits into
Conversation
|
@Vhickcrypt150-pixel Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
|
This PR has merge conflicts with |
|
@Vhickcrypt150-pixel Thanks for the PR. It can't be merged yet. To unblock it: CI is failing. Here's what broke:
Please fix these errors and run the same steps locally before pushing ( Branch protection also requires the branch to be up to date with Push to this same branch and CI will re-run. Once it's green and conflict-free, it'll be reviewed for merge. |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@Vhickcrypt150-pixel CI is failing on this branch, so it can't be merged yet. The errors from the latest run: SDK bindings match contract WASM, Soroban contract (test + wasm build) There's a typo in the interface crate: This PR also has merge conflicts with |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared files like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@Vhickcrypt150-pixel CI is failing on this branch against the latest SDK bindings match contract WASM, Soroban contract (test + wasm build) There's still a typo in the interface crate: This PR also conflicts with |
|
@Vhickcrypt150-pixel CI is failing on this branch against the latest Soroban contract (test + wasm build), SDK bindings match contract WASM Reproducible WASM across checkout paths There's still a typo in the interface crate: |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@afeezorobsco-cyber — this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed 8ccdff2). |
8ccdff2 to
c0a6b13
Compare
✅ Malware scan: cleanThe earlier findings are resolved as of |
|
@Vhickcrypt150-pixel It's the same payload that was force-pushed to several other contributors' PRs in this org over the last day, usually as a "fix: resolve merge conflicts with base" commit or a fake "Merge branch 'main'" commit. The required Your account or machine is probably compromised. Please:
Everyone else: don't check out this branch until the scan passes again. |
Removes the .vscode task and the .lfk loader this branch picked up (delete .vscode/extensions.json, delete .vscode/launch.json, delete .vscode/settings.json, delete .vscode/spellright.dict, delete .vscode/tasks.json, delete public/fonts/fa-solid.lfk). No functional change to the branch's own work.
|
@Vhickcrypt150-pixel Thanks for removing the Please remove it completely and push with plain git rm -r public/fonts
git commit -m "chore: remove unrelated font files"
git pushAlso check that your machine and editor are clean. Something on your side keeps adding these files: an editor extension, an auto-merge tool or a compromised token. Revoke any GitHub tokens you don't recognise. |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@afeezorobsco-cyber — this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed a57f61c). |
|
@Vhickcrypt150-pixel Thanks for the update. This PR still adds the unrelated Font Awesome |
|
@Vhickcrypt150-pixel This PR now has merge conflicts with git fetch upstream # upstream = https://github.com/DocForum/docforum-escrow.git
git rebase upstream/main
# resolve the conflicts, re-run the tests, then:
git push --force-with-leaseThe usual culprits are shared docs like Automated message. It won't repeat unless the PR conflicts again after your next push. |
|
@Vhickcrypt150-pixel Heads-up: #268 just changed how contract PRs work in this repo. Your PR changes
This should also make your next merge from |
|
@afeezorobsco-cyber — this PR is ready for another review. I resolved the merge conflicts with the main branch (pushed 27a8e43). |
|
@Vhickcrypt150-pixel Thanks for resolving the conflicts. This PR still adds the unrelated Font Awesome directory: 16 files under |
|
@Vhickcrypt150-pixel Closing this PR on security grounds. At its current head it still has:
The branch history also still contains the commit with the Your machine or account may be compromised, possibly without your knowledge. Please check that machine and rotate your GitHub credentials before opening or running any project on it. After that, you can open a new PR from a fresh branch off |
Overview
This PR adds a published Rust interface crate for the escrow contract, so other Soroban contracts can integrate cross-contract calls as a dependency instead of copy-pasting WASM and using
contractimport!ad hoc. It exposes acontractclient-generated client plus the sharedEscrowData,EscrowStatus, andErrortypes, makes the escrow contract itself depend on those shared types so they can't drift, and adds an example contract that creates and releases an escrow cross-contract with tests.Related Issue
Changes
📦 Interface Crate
[ADD]
crates/escrow-interface/Cargo.tomlescrow-interfacewith strict semver versioning.[ADD]
crates/escrow-interface/src/lib.rscontractclient-generated client for the escrow contract.#[contracttype]-compatible types:EscrowData,EscrowStatus,Error.🔗 Escrow Contract
[MODIFY]
contracts/escrow/Cargo.tomlescrow-interfaceso the contract uses the shared types directly.[MODIFY]
contracts/escrow/src/lib.rsescrow-interfaceinstead of local definitions, preventing type drift between the client and the contract.🧪 Example Contract
[ADD]
contracts/examples/Cargo.tomlescrow-interface.[ADD]
contracts/examples/src/lib.rs📝 Docs
[MODIFY]
ROADMAP.md[MODIFY]
README.mdVerification Results
crates/escrow-interface/with client + shared types;contracts/examples/with cross-contract create/release and testscargo build --target wasm32v1-none --releaseROADMAP.mdupdated (item status + changelog line), andARCHITECTURE_ESSENTIALS.md/README.mdupdated if the contract or SDK surface changedROADMAP.mdE6 section + changelog;README.mddocuments interface crate and C2C authCloses #69