// Lockup μ 보 μ
λ ₯ (μλ μμΌλ‘ κΈ°μ
)
address account; // Lockup κ³μ μ£Όμ
uint256 amount; // Lockup ν ν° κ°μ
uint256 endTime; // Lokcup μ’
λ£ μκ°
let lockupInfo = [
[accounts[1].address, ethers.utils.parseEther("0.1"), Math.floor(Date.parse('9/1/2022, 15:38:00')/1000)],
[accounts[1].address, ethers.utils.parseEther("0.1"), Math.floor(Date.parse('9/2/2022, 15:38:00')/1000)],
[accounts[1].address, ethers.utils.parseEther("0.1"), Math.floor(Date.parse('9/3/2022, 15:38:00')/1000)],
]
// Encode ννλ‘ μΉν
const abiCoder = ethers.utils.defaultAbiCoder;
const encodeLockupInfo= abiCoder.encode(["tuple(address, uint256, uint256)[]"], [mintInfo]);
// exec
await lockupContract.setLockups(encodeLockupInfo);