UNPKG

@aresrpg/aresrpg-sdk

Version:

General SDK to interract with AresRPG

16 lines (12 loc) 485 B
import { Transaction } from '@mysten/sui/transactions' /** @param {import("../../../types.js").Context} context */ export function admin_withdraw_sale_profits({ types }) { return ({ tx = new Transaction(), recipient, admin_cap, sale }) => { const [coin] = tx.moveCall({ target: `${types.LATEST_PACKAGE_ID}::item_sale::admin_withdraw_profits`, arguments: [tx.object(admin_cap), tx.object(sale)], }) tx.transferObjects([coin], recipient) return tx } }