deposit_with_ics_spend

Function deposit_with_ics_spend 

Source
pub async fn deposit_with_ics_spend<C: QueryLedgerState + QueryNetwork + Transactions + QueryUtxoByUtxoId, A: AwaitTx>(
    genesis_utxo: UtxoId,
    token: AssetId,
    amount: NonZero<u64>,
    pc_address: &[u8],
    payment_signing_key: &CardanoPaymentSigningKey,
    client: &C,
    await_tx: &A,
) -> Result<McTxHash>
Expand description

This function deposits bridge token to the Illiquid Circulation Supply from the payment wallet. It does spend existing UTXO (containing ‘auth token’) at the validator address.

  • genesis_utxo: UTxO identifying the Partner Chain.
  • amount number of tokens to be deposited.
  • pc_address information to partner chain node, where to transfer funds
  • payment_signing_key: Signing key of the party paying fees.
  • await_tx: AwaitTx strategy.