You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Implement SAC transfer functionality in walletStore
* Implement SAC transfer functionality in walletStore
* Implement createContractTransferTransaction function
* made modifications
* modifications
* made modifications
* changes made
* fix a couple imports
---------
Co-authored-by: Nathan_akin <85641756+akintewe@users.noreply.github.com>
Co-authored-by: llama <llama@llama.fi>
* Constructs and returns a Stellar transaction that will contain a path payment strict send operation to send/receive different assets.
191
192
* @async
@@ -331,3 +332,47 @@ export async function createPathPaymentStrictReceiveTransaction({
331
332
network_passphrase: networkPassphrase,
332
333
}
333
334
}
335
+
336
+
/**
337
+
* Constructs and returns a Stellar transaction for transferring assets to a contract or account.
338
+
* @async
339
+
* @function createContractTransferTransaction
340
+
* @param {Object} opts Options object
341
+
* @param {string} opts.source Public Stellar address to use as the source account of the transaction
342
+
* @param {string} opts.destination Public Stellar address or contract ID to receive the transfer
343
+
* @param {string} opts.amount Amount of the asset to transfer
344
+
* @param {string} opts.asset Asset to be transferred (example: USDC:GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5)
345
+
* @returns {Promise<TransactionResponse>} Object containing the relevant network passphrase and the built transaction envelope in XDR base64 encoding, ready to be signed and submitted
0 commit comments