| // bytes32 slipSeqKSD | // bytes32 slipSeqKSD | ||||
| // ); | // ); | ||||
| async function listenIssuable(tokenAddress: string, operator: Wallet) { | |||||
| async function listenIssuable(tokenAddress: string, operator: Wallet, isin: string) { | |||||
| const token = new SecurityToken__factory(operator).attach(tokenAddress) as SecurityToken; | const token = new SecurityToken__factory(operator).attach(tokenAddress) as SecurityToken; | ||||
| await token.connect(operator); | await token.connect(operator); | ||||
| // //issueKSD() | // //issueKSD() | ||||
| // }); | // }); | ||||
| console.log("Listening for TokenIssuableKSD events..."); | |||||
| console.log(`Listening for TokenIssuableKSD events... at ${tokenAddress} , ${isin}`); | |||||
| setInterval(() => {}, 1000); | setInterval(() => {}, 1000); | ||||
| } | } | ||||
| async function main() { | async function main() { | ||||
| //,isin: string, account: string, KSDAccount: string, qty: number, slipSeqKSD: string | //,isin: string, account: string, KSDAccount: string, qty: number, slipSeqKSD: string | ||||
| // KR5STO000202 | // KR5STO000202 | ||||
| let Symbol1 = 'KR5STO000166'; | |||||
| let symbol = 'KR5STO000166'; | |||||
| let qty = 1000000000; | let qty = 1000000000; | ||||
| let rsnCode = '203'; | let rsnCode = '203'; | ||||
| let tokenAddress = '0x920c017843904A735458AA9d30779bE5FCfcF411'; | let tokenAddress = '0x920c017843904A735458AA9d30779bE5FCfcF411'; | ||||
| listenIssuable(tokenAddress,admin).catch((error) => { | |||||
| listenIssuable(tokenAddress,admin, symbol).catch((error) => { | |||||
| console.log(error); | console.log(error); | ||||
| }); | }); | ||||
| // KR5STO000177 | |||||
| symbol = 'KR5STO000177' | |||||
| tokenAddress = '0x3e7757d67F2DBc9C2D9d69d74eCF0E498988da4F'; | tokenAddress = '0x3e7757d67F2DBc9C2D9d69d74eCF0E498988da4F'; | ||||
| listenIssuable(tokenAddress,admin).catch((error) => { | |||||
| listenIssuable(tokenAddress,admin, symbol).catch((error) => { | |||||
| console.log(error); | console.log(error); | ||||
| }); | }); | ||||
| // KR5STO000188 | |||||
| symbol = 'KR5STO000188' | |||||
| tokenAddress = '0x984f4DbAD8fC003138312293Fd431E5D8bAC1daf'; | tokenAddress = '0x984f4DbAD8fC003138312293Fd431E5D8bAC1daf'; | ||||
| listenIssuable(tokenAddress,admin).catch((error) => { | |||||
| listenIssuable(tokenAddress,admin, symbol).catch((error) => { | |||||
| console.log(error); | console.log(error); | ||||
| }); | }); | ||||
| // KR5STO000199 | |||||
| symbol = 'KR5STO000199' | |||||
| tokenAddress = '0xa36116158Cdfbcc57c3FEB9cc2A1cdfF8Cf5e247'; | tokenAddress = '0xa36116158Cdfbcc57c3FEB9cc2A1cdfF8Cf5e247'; | ||||
| listenIssuable(tokenAddress,admin).catch((error) => { | |||||
| listenIssuable(tokenAddress,admin, symbol).catch((error) => { | |||||
| console.log(error); | console.log(error); | ||||
| }); | }); | ||||
| // KR5STO000202 | |||||
| symbol = 'KR5STO000202' | |||||
| tokenAddress = '0x93302A7eeD96b27D47Ec692c6560cA5Fd5E9e7ED'; | tokenAddress = '0x93302A7eeD96b27D47Ec692c6560cA5Fd5E9e7ED'; | ||||
| listenIssuable(tokenAddress,admin).catch((error) => { | |||||
| listenIssuable(tokenAddress,admin, symbol).catch((error) => { | |||||
| console.log(error); | console.log(error); | ||||
| }); | }); | ||||