Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions contracts/globe-wallet/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,18 @@ crate-type = ["cdylib", "rlib"]

[dependencies]
soroban-sdk = { workspace = true }
# Enables the `send` wiring (docs/design/wiring-reentrancy-threat-model.md) to
# call token-wrapper::transfer_from via a real, typed `TokenWrapperClient`
# rather than a hand-rolled `env.invoke_contract` call. Verified empirically
# (via a wasm32-unknown-unknown release build + export-table inspection)
# that this does NOT leak token-wrapper's own `#[contractimpl]` exports
# (approve/transfer_from/allowance) into globe-wallet's compiled .wasm: this
# workspace's release profile (lto = true, codegen-units = 1) correctly
# dead-code-eliminates the unused `#[no_mangle]` wasm exports from a
# dependency crate that the importing crate never itself registers as its
# own `#[contract]`. Re-verify this if the release profile's LTO/
# codegen-units settings ever change.
token-wrapper = { path = "../token-wrapper" }

[dev-dependencies]
soroban-sdk = { workspace = true, features = ["testutils"] }
Expand Down
426 changes: 425 additions & 1 deletion contracts/globe-wallet/src/lib.rs

Large diffs are not rendered by default.

Loading
Loading