// Lockup ์ ๋ณด ์
๋ ฅ (์๋ ์์ผ๋ก ๊ธฐ์
)
address account; // Lockup ๊ณ์ ์ฃผ์
uint256 amount; // Lockup ํ ํฐ ๊ฐ์
uint256 duration; // Lokcup ๊ธฐ๊ฐ
let lockupInfo = [
[accounts[1].address, ethers.utils.parseEther("0.1"), ONE_MONTH*1],
[accounts[1].address, ethers.utils.parseEther("0.1"), ONE_MONTH*2],
[accounts[1].address, ethers.utils.parseEther("0.1"), ONE_MONTH*3],
]
// Encode ํํ๋ก ์นํ
const abiCoder = ethers.utils.defaultAbiCoder;
const encodeLockupInfo= abiCoder.encode(["tuple(address, uint256, uint256)[]"], [mintInfo]);
// exec
await lockupContract.setLockups(encodeLockupInfo);