Simon Lee 9 月之前
父節點
當前提交
15eff66140
共有 1 個檔案被更改,包括 26 行新增2 行删除
  1. 26
    2
      KSD01/listen.ts

+ 26
- 2
KSD01/listen.ts 查看文件

@@ -79,7 +79,6 @@ async function listenIssuable(tokenAddress: string, operator: Wallet) {
await token.connect(operator);

token.on(token.filters.TokenIssuableKSD2,(isin,totalIssueQty,KSDAccounts,amounts,slipSeqKSD, event) => {

console.log(`${isin} , ${totalIssueQty} , ${KSDAccounts} , ${amounts} , ${slipSeqKSD}`);
console.log(event);
});
@@ -139,7 +138,8 @@ const ksdAccountCustomer = '000002000002';
async function main() {

//,isin: string, account: string, KSDAccount: string, qty: number, slipSeqKSD: string
// 종목16
// KR5STO000202
let Symbol1 = 'KR5STO000166';
let qty = 1000000000;
let rsnCode = '203';
@@ -147,6 +147,30 @@ async function main() {
listenIssuable(tokenAddress,admin).catch((error) => {
console.log(error);
});

// KR5STO000177
tokenAddress = '0x3e7757d67F2DBc9C2D9d69d74eCF0E498988da4F';
listenIssuable(tokenAddress,admin).catch((error) => {
console.log(error);
});

// KR5STO000188
tokenAddress = '0x984f4DbAD8fC003138312293Fd431E5D8bAC1daf';
listenIssuable(tokenAddress,admin).catch((error) => {
console.log(error);
});

// KR5STO000199
tokenAddress = '0xa36116158Cdfbcc57c3FEB9cc2A1cdfF8Cf5e247';
listenIssuable(tokenAddress,admin).catch((error) => {
console.log(error);
});

// KR5STO000202
tokenAddress = '0x93302A7eeD96b27D47Ec692c6560cA5Fd5E9e7ED';
listenIssuable(tokenAddress,admin).catch((error) => {
console.log(error);
});



Loading…
取消
儲存