Replaces this contract's WASM bytecode in-place.
env - Contract environment.new_wasm_hash - Hash of the uploaded WASM to install.Requires authorization from the stored factory address.
fn upgrade(env: soroban_sdk::Env, new_wasm_hash: soroban_sdk::BytesN<32>)
Initializes the issuer with the controlling factory address.
env - Contract environment.factory - Factory contract address allowed to authorize transfers.No runtime authorization check. This entrypoint is only callable at contract initialization.
fn __constructor(env: soroban_sdk::Env, factory: soroban_sdk::Address)
Transfers amount of token from account to destination.
env - Contract environment.token - Token contract address.account - Source account to debit.destination - Recipient account.amount - Amount to transfer.Requires authorization from the stored factory address.
fn transfer_to_destination(
env: soroban_sdk::Env,
token: soroban_sdk::Address,
account: soroban_sdk::Address,
destination: soroban_sdk::Address,
amount: i128,
)