Deployed ids of the shared account package
Owner address and coin type
A function that takes a Transaction object
A function that takes a Transaction object
Coin to deposit and its coin type
A function that takes a Transaction object
First-time funding in ONE PTB: create the sender's wrapper, deposit
coin through the fresh handle, then share LAST (once shared, by-value use of the
handle is over). This cannot be split into createAccount + depositFunds: an object
input can only address an object that pre-exists the PTB, so a wrapper created inside
it is reachable only through new's result handle.
Wrapper id, coin to deposit, and its coin type
A function that takes a Transaction object
A function that takes a Transaction object
Wrapper id
A function that takes a Transaction object and returns the Account
Wrapper id, the received coin's object id (or a Receiving input),
and its coin type
A function that takes a Transaction object
Move a Coin<T> that was transferred to an account's wrapper address into
the account's stored balance (receive_coin). Permissionless: anyone may submit it, and
value only enters the account the coin was addressed to. A sender that can only transfer a
coin to an address (a bridge mint, for example) sends it to deriveAccountWrapperId(owner).
The coin can arrive before the account exists and waits there until the owner creates it.
Wrapper id, the received coin's object id (or a Receiving input),
and its coin type
A function that takes a Transaction object
receiveCoin for a coin sent to the account's canonical ID (account_id,
the address account_registry::derived_address returns) instead of its wrapper address.
A Receiving input can't name its owner, so pick the call from where the coin sits: the
wrong one aborts EUnableToReceiveObject. Senders should use the wrapper address.
Wrapper id, raw amount, and coin type
A function that takes a Transaction object and returns the Coin<T>
AccountContract — the reusable on-chain account primitive (
packages/account).An owner has one canonical
AccountWrapper, a derived object of the account registry, so its id is computable off-chain (no read). The wrapper holds anAccountwhose custody balances apps deposit into and withdraw from; app-specific data hangs off it under an app-keyed slot. Authority is a hot-potatoAuthminted from the tx sender and consumed by the very next account-loading call.