// Local network initialization
const eoslime = require('eoslime').init();
const CONTRACT_NAME = 'mycontract';
const ABI_PATH = './contract/contract.abi';
// Pre-created local network accounts
const user1 = eoslime.Account.load('myacc1', 'privateKey1');
let contract = eoslime.Contract.at(ABI_PATH, CONTRACT_NAME, user1);
// Execute `doSmth` and transfer 5.0000 SYS tokens to the contract at once(atomically)
await contract.doSmth('Your args here', { from: user1, tokens: '5.0000 SYS' });