UNPKG

@aresrpg/aresrpg-sdk

Version:

General SDK to interract with AresRPG

14 lines (11 loc) 396 B
import { Transaction } from '@mysten/sui/transactions' /** @param {import("../../../types.js").Context} context */ export function admin_freeze_contract({ types }) { return ({ tx = new Transaction() }) => { tx.moveCall({ target: `${types.LATEST_PACKAGE_ID}::version::admin_freeze`, arguments: [tx.object(types.VERSION), tx.object(types.ADMIN_CAP)], }) return tx } }