getLockupsByIndex

function getLockupsByIndex(
    uint256 _lockupIndex
)external returns(LockupResultInfo[] memory list)

νŠΉμ • index 락업 정보 보기

Parameters

TypeValueDescription

uint256

_lockupIndex

lockup Index

Return Values

struct LockupResultInfo{
    uint256 lockuptime;    // lockup μ‹œμž‘ μ‹œκ°„
    uint256 timestamp;     // unlock μ‹œκ°„
    uint256 amount;        // Lockup 토큰 개수
    uint256 duration;      // Lockup κΈ°κ°„
    uint256 amountIndex;   // lockup κΈ°κ°„ Index
    uint256 index;         // Lokcup Index 
}
TypeValueDescription

LockupResultInfo[]

list

lockup 정보

LockupResultInfo.uint256

lockuptime

lockup μ‹œμž‘ μ‹œκ°„

LockupResultInfo.uint256

timestamp

lockup μ‹œκ°„

LockupResultInfo.uint256

amount

lockup 토큰 개수

LockupResultInfo.uint256

duration

lockup κΈ°κ°„

LockupResultInfo.uint256

amountIndex

lockup κΈ°κ°„ Index

LockupResultInfo.uint256

index

lockup index

Example

await lockupContract.getLockupsAdmin()

// κ²°κ³Ό
[
  [
    '0x69f57ccEF1C2c26d2B328F2EB1BD4377742f90F3',
    BigNumber { value: "1662083022" },
    BigNumber { value: "1000000000000000000" },
    BigNumber { value: "0" },
    BigNumber { value: "0" },
    account: '0x69f57ccEF1C2c26d2B328F2EB1BD4377742f90F3',
    timestamp: BigNumber { value: "1662083022" },
    amount: BigNumber { value: "1000000000000000000" },
    duration: BigNumber { value: "0" },
    index: BigNumber { value: "0" }
  ]
]

2023.02.20

Last updated