(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk)
| 148 | } |
| 149 | |
| 150 | function getSignGTMTransferData(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk) { |
| 151 | let signature = getMultiSignGTMData(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk); |
| 152 | let packedData = web3.eth.abi.encodeParameters( |
| 153 | ['address[]', 'uint256[]', 'uint256[]', 'uint256[]', 'bytes'], |
| 154 | [investorAddress, fromTime, toTime, expiryTime, signature] |
| 155 | ); |
| 156 | let data = web3.eth.abi.encodeParameters( |
| 157 | ['address', 'uint256', 'uint256', 'uint256', 'bytes'], |
| 158 | [tmAddress, new BN(nonce).toString(), new BN(validFrom).toString(), new BN(validTo).toString(), packedData] |
| 159 | ); |
| 160 | return data; |
| 161 | } |
| 162 | |
| 163 | function getMultiSignGTMData(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk) { |
| 164 | let hash = web3.utils.soliditySha3({ |
no test coverage detected