Contract 88465b2f76c802fd7ebba9ac9b104886da225555577323c4cc66b7ae6bef6a76

← Back to Index 📥 Download WASM

Meta

rssdkver 25.1.1#94c2a3b3a5ded6b9cf9cef0c207bf8804f3eb294
rsver 1.92.0

Instances

  • CCEEPNBDMZLSPN6F77C6VMBYYQKNIJ2VAKXG76ZIBVVNS5EWGNCCMW56
  • CDRSX6O57RM5XHZ2VSFLM23KOCRV3H4YRL27ZGZJNLTHPGDS5HJYD4WP

Interface

Initializes the issuer with the controlling factory address.

Arguments

  • env - Contract environment.
  • factory - Factory contract address allowed to authorize transfers.

Authorization

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.

Arguments

  • env - Contract environment.
  • token - Token contract address.
  • account - Source account to debit.
  • destination - Recipient account.
  • amount - Amount to transfer.

Authorization

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,
)

Imports

WebAssembly Text (WAT) ▶