// import QUBIT SDK library
const { volary } = require('@nest25/tokenomics-lib');
// private key of the account you want to use
const TEST_PRIVATE_KEY = 'your-private-key';
// address of the staking contract
const STAKING_CONTRACT_ADDRESS = '0x077e4F1496693B7c45128c436eF933ccaFe6d291';
// create a new instance of staking
const Volary = new volary();
async function main() {
// approve Volary to stake
const result = await Volary.approveVolary(STAKING_CONTRACT_ADDRESS, '2', TEST_PRIVATE_KEY);
// print the result
console.log(result);
}
main();