MCPcopy Create free account
hub / github.com/PolymathNetwork/polymath-core / getMultiSignGTMData

Function getMultiSignGTMData

test/helpers/signData.js:163–191  ·  view source on GitHub ↗
(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk)

Source from the content-addressed store, hash-verified

161}
162
163function getMultiSignGTMData(tmAddress, investorAddress, fromTime, toTime, expiryTime, validFrom, validTo, nonce, pk) {
164 let hash = web3.utils.soliditySha3({
165 t: 'address',
166 v: tmAddress
167 }, {
168 t: 'address[]',
169 v: investorAddress
170 }, {
171 t: 'uint256[]',
172 v: fromTime
173 }, {
174 t: 'uint256[]',
175 v: toTime
176 }, {
177 t: 'uint256[]',
178 v: expiryTime
179 }, {
180 t: 'uint256',
181 v: new BN(validFrom)
182 }, {
183 t: 'uint256',
184 v: new BN(validTo)
185 }, {
186 t: 'uint256',
187 v: new BN(nonce)
188 });
189 let signature = (web3.eth.accounts.sign(hash, pk)).signature;
190 return signature;
191}
192
193module.exports = {
194 getSignSTMData,

Callers 2

getSignGTMTransferDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected