ground-x / caver-js-ext-kas

Apache License 2.0
13 stars 15 forks source link

Added examples to each function and removed unused code #100

Closed jimni1222 closed 3 years ago

jimni1222 commented 3 years ago

Proposed changes

This PR introdues adding examples to each functions. Also i removed unused code from TokenHistory.

Types of changes

Please put an x in the boxes related to your change.

Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.

Related issues

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...

michael-gx commented 3 years ago

KAS v1.2.0 integration test result on commit hash 11535b34c7548ae3c783087a14371a62b7ffaf35

> caver-js-ext-kas@1.1.2 intTestQA /Users/michael/workspace/src/github.com/ground-x/6-caver-js-kas
> npm run intNodeAPITestQA && ./node_modules/mocha/bin/mocha ./test/intTest/*.js --testEnv=qa

> caver-js-ext-kas@1.1.2 intNodeAPITestQA /Users/michael/workspace/src/github.com/ground-x/6-caver-js-kas
> ./node_modules/mocha/bin/mocha ./test/nodeAPI/testNodeAPI.js --testEnv=qa

  Node API service enabling
    caver.initNodeAPI
      ✓ should return error if nodeAPI is not initialized
      ✓ should set valid headers to provider with x-chain-id and auth

  Node API service
    caver.rpc.klay APIs
      ✓ should use json rpc call of Klaytn thourgh KAS (5824ms)

  3 passing (9s)

  Anchor API service
    ✓ CAVERJS-EXT-KAS-INT-001: caver.kas.anchor.sendAnchoringData should send post request to anchor data (179ms)
    ✓ CAVERJS-EXT-KAS-INT-002: caver.kas.anchor.getAnchoringTransactionList should query anchoring txs (3241ms)
    ✓ CAVERJS-EXT-KAS-INT-003: caver.kas.anchor.getAnchoringTransactionByTxHash should query anchoring tx by transaction hash (89ms)
    ✓ CAVERJS-EXT-KAS-INT-004: caver.kas.anchor.getAnchoringTransactionByPayloadId should query anchoring tx by payload id (84ms)
    ✓ CAVERJS-EXT-KAS-INT-005: caver.kas.anchor.getOperatorList should query operators (73ms)
    ✓ CAVERJS-EXT-KAS-INT-006: caver.kas.anchor.getOperator should query operator (53ms)

  KAS Wallet
    ✓ CAVERJS-EXT-KAS-INT-115: caver.wallet.generate generates an account in KAS Wallet API Service without parameter (209ms)
    ✓ CAVERJS-EXT-KAS-INT-116: caver.wallet.generate generates accounts in KAS Wallet API Service with number of accounts parameter (461ms)
    ✓ CAVERJS-EXT-KAS-INT-117: caver.wallet.getAccount returns account from KAS Wallet API Service (55ms)
    ✓ CAVERJS-EXT-KAS-INT-118: caver.wallet.getAccount rejects if account is not existed in KAS Wallet API Service (87ms)
    ✓ CAVERJS-EXT-KAS-INT-119: caver.wallet.isExisted returns true if account is existed in KAS Wallet API Service (52ms)
    ✓ CAVERJS-EXT-KAS-INT-120: caver.wallet.isExisted returns false if account is not existed in KAS Wallet API Service (72ms)
    ✓ CAVERJS-EXT-KAS-INT-121: caver.wallet.remove returns false if account is not existed in KAS Wallet API Service (230ms)
    ✓ CAVERJS-EXT-KAS-INT-122: caver.wallet.remove rejects if use tried to remove an account which is not existed in KAS Wallet API Service (73ms)
    ✓ CAVERJS-EXT-KAS-INT-123: caver.wallet.disableAccount deactivates an account in KAS Wallet API Service (263ms)
    ✓ CAVERJS-EXT-KAS-INT-124: caver.wallet.disableAccount rejects if use tried to deactivate an account which is not existed in KAS Wallet API Service (82ms)
    ✓ CAVERJS-EXT-KAS-INT-125: caver.wallet.enableAccount activates an account in KAS Wallet API Service (269ms)
    ✓ CAVERJS-EXT-KAS-INT-126: caver.wallet.enableAccount rejects if use tried to activate an account which is not existed in KAS Wallet API Service (80ms)
    ✓ CAVERJS-EXT-KAS-INT-127: caver.wallet.sign signs the legacy transaction with the account in KAS Wallet API Service (176ms)
    ✓ CAVERJS-EXT-KAS-INT-128: caver.wallet.sign rejets when the legacy transaction has signatures (57ms)
    ✓ CAVERJS-EXT-KAS-INT-129: caver.wallet.sign signs the value transfer transaction with the account in KAS Wallet API Service (184ms)
    ✓ CAVERJS-EXT-KAS-INT-130: caver.wallet.sign appends signatures to the value transfer transaction (183ms)
    ✓ CAVERJS-EXT-KAS-INT-131: caver.wallet.sign signs the value transfer memo transaction with the account in KAS Wallet API Service (207ms)
    ✓ CAVERJS-EXT-KAS-INT-132: caver.wallet.sign appends signatures to the value transfer memo transaction (183ms)
    ✓ CAVERJS-EXT-KAS-INT-133: caver.wallet.sign signs the smart contract deploy transaction with the account in KAS Wallet API Service (214ms)
    ✓ CAVERJS-EXT-KAS-INT-134: caver.wallet.sign appends signatures to the smart contract deploy transaction (197ms)
    ✓ CAVERJS-EXT-KAS-INT-135: caver.wallet.sign signs the smart contract deploy transaction with the account in KAS Wallet API Service (201ms)
    ✓ CAVERJS-EXT-KAS-INT-136: caver.wallet.sign appends signatures to the smart contract deploy transaction (194ms)
    ✓ CAVERJS-EXT-KAS-INT-137: caver.wallet.sign signs the account update transaction with the account in KAS Wallet API Service (183ms)
    ✓ CAVERJS-EXT-KAS-INT-138: caver.wallet.sign appends signatures to the account update transaction (203ms)
    ✓ CAVERJS-EXT-KAS-INT-139: caver.wallet.sign signs the cancel transaction with the account in KAS Wallet API Service (193ms)
    ✓ CAVERJS-EXT-KAS-INT-140: caver.wallet.sign appends signatures to the cancel transaction (183ms)
    ✓ CAVERJS-EXT-KAS-INT-141: caver.wallet.sign signs the chain data anchoring transaction with the account in KAS Wallet API Service (180ms)
    ✓ CAVERJS-EXT-KAS-INT-142: caver.wallet.sign appends signatures to the chain data anchoring transaction (188ms)
    ✓ CAVERJS-EXT-KAS-INT-143: caver.wallet.sign signs the fee delegated value transfer transaction with the account in KAS Wallet API Service (193ms)
    ✓ CAVERJS-EXT-KAS-INT-144: caver.wallet.sign appends signatures to the fee delegated value transfer transaction (237ms)
    ✓ CAVERJS-EXT-KAS-INT-145: caver.wallet.sign signs the fee delegated value transfer memo transaction with the account in KAS Wallet API Service (201ms)
    ✓ CAVERJS-EXT-KAS-INT-146: caver.wallet.sign appends signatures to the fee delegated value transfer memo transaction (213ms)
    ✓ CAVERJS-EXT-KAS-INT-147: caver.wallet.sign signs the fee delegated smart contract deploy transaction with the account in KAS Wallet API Service (216ms)
    ✓ CAVERJS-EXT-KAS-INT-148: caver.wallet.sign appends signatures to the fee delegated smart contract deploy transaction (204ms)
    ✓ CAVERJS-EXT-KAS-INT-149: caver.wallet.sign signs the fee delegated smart contract deploy transaction with the account in KAS Wallet API Service (210ms)
    ✓ CAVERJS-EXT-KAS-INT-150: caver.wallet.sign appends signatures to the fee delegated smart contract deploy transaction (217ms)
    ✓ CAVERJS-EXT-KAS-INT-151: caver.wallet.sign signs the fee delegated account update transaction with the account in KAS Wallet API Service (217ms)
    ✓ CAVERJS-EXT-KAS-INT-152; caver.wallet.sign appends signatures to the fee delegated account update transaction (187ms)
    ✓ CAVERJS-EXT-KAS-INT-153: caver.wallet.sign signs the fee delegated cancel transaction with the account in KAS Wallet API Service (189ms)
    ✓ CAVERJS-EXT-KAS-INT-154: caver.wallet.sign appends signatures to the fee delegated cancel transaction (295ms)
    ✓ CAVERJS-EXT-KAS-INT-155: caver.wallet.sign signs the fee delegated chain data anchoring transaction with the account in KAS Wallet API Service (660ms)
    ✓ CAVERJS-EXT-KAS-INT-156: caver.wallet.sign appends signatures to the fee delegated chain data anchoring transaction (320ms)
    ✓ CAVERJS-EXT-KAS-INT-157: caver.wallet.sign signs the fee delegated value transfer with ratio transaction with the account in KAS Wallet API Service (1386ms)
    ✓ CAVERJS-EXT-KAS-INT-158: caver.wallet.sign appends signatures to the fee delegated value transfer with ratio transaction (205ms)
    ✓ CAVERJS-EXT-KAS-INT-159: caver.wallet.sign signs the fee delegated value transfer memo with ratio transaction with the account in KAS Wallet API Service (220ms)
    ✓ CAVERJS-EXT-KAS-INT-160: caver.wallet.sign appends signatures to the fee delegated value transfer memo with ratio transaction (197ms)
    ✓ CAVERJS-EXT-KAS-INT-161: caver.wallet.sign signs the fee delegated smart contract deploy with ratio transaction with the account in KAS Wallet API Service (193ms)
    ✓ CAVERJS-EXT-KAS-INT-162: caver.wallet.sign appends signatures to the fee delegated smart contract deploy with ratio transaction (200ms)
    ✓ CAVERJS-EXT-KAS-INT-163: caver.wallet.sign signs the fee delegated smart contract deploy with ratio transaction with the account in KAS Wallet API Service (193ms)
    ✓ CAVERJS-EXT-KAS-INT-164: caver.wallet.sign appends signatures to the fee delegated smart contract deploy with ratio transaction (201ms)
    ✓ CAVERJS-EXT-KAS-INT-165: caver.wallet.sign signs the fee delegated account update with ratio transaction with the account in KAS Wallet API Service (206ms)
    ✓ CAVERJS-EXT-KAS-INT-166: caver.wallet.sign appends signatures to the fee delegated account update with ratio transaction (207ms)
    ✓ CAVERJS-EXT-KAS-INT-167: caver.wallet.sign signs the fee delegated cancel with ratio transaction with the account in KAS Wallet API Service (213ms)
    ✓ CAVERJS-EXT-KAS-INT-168: caver.wallet.sign appends signatures to the fee delegated cancel with ratio transaction (209ms)
    ✓ CAVERJS-EXT-KAS-INT-169: caver.wallet.sign signs the fee delegated chain data anchoring with ratio transaction with the account in KAS Wallet API Service (196ms)
    ✓ CAVERJS-EXT-KAS-INT-170: caver.wallet.sign appends signatures to the fee delegated chain data anchoring with ratio transaction (208ms)
    ✓ CAVERJS-EXT-KAS-INT-171: caver.wallet.signAsFeePayer signs the fee delegated value transfer transaction as fee payer with the account in KAS Wallet API Service (207ms)
    ✓ CAVERJS-EXT-KAS-INT-172: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated value transfer transaction (190ms)
    ✓ CAVERJS-EXT-KAS-INT-173: caver.wallet.signAsFeePayer signs the fee delegated value transfer memo transaction as fee payer with the account in KAS Wallet API Service (205ms)
    ✓ CAVERJS-EXT-KAS-INT-174: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated value transfer memo transaction (219ms)
    ✓ CAVERJS-EXT-KAS-INT-175: caver.wallet.signAsFeePayer signs the fee delegated smart contract deploy transaction as fee payer with the account in KAS Wallet API Service (205ms)
    ✓ CAVERJS-EXT-KAS-INT-176: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated smart contract deploy transaction (204ms)
    ✓ CAVERJS-EXT-KAS-INT-177: caver.wallet.signAsFeePayer signs the fee delegated smart contract deploy transaction as fee payer with the account in KAS Wallet API Service (239ms)
    ✓ CAVERJS-EXT-KAS-INT-178: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated smart contract deploy transaction (221ms)
    ✓ CAVERJS-EXT-KAS-INT-179: caver.wallet.signAsFeePayer signs the fee delegated account update transaction as fee payer with the account in KAS Wallet API Service (189ms)
    ✓ CAVERJS-EXT-KAS-INT-180: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated account update transaction (205ms)
    ✓ CAVERJS-EXT-KAS-INT-181: caver.wallet.signAsFeePayer signs the fee delegated cancel transaction as fee payer with the account in KAS Wallet API Service (240ms)
    ✓ CAVERJS-EXT-KAS-INT-182: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated cancel transaction (221ms)
    ✓ CAVERJS-EXT-KAS-INT-183: caver.wallet.signAsFeePayer signs the fee delegated chain data anchoring transaction as fee payer with the account in KAS Wallet API Service (210ms)
    ✓ CAVERJS-EXT-KAS-INT-184: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated chain data anchoring transaction (193ms)
    ✓ CAVERJS-EXT-KAS-INT-185: caver.wallet.signAsFeePayer signs the fee delegated value transfer with ratio transaction as fee payer with the account in KAS Wallet API Service (240ms)
    ✓ CAVERJS-EXT-KAS-INT-186: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated value transfer with ratio transaction (204ms)
    ✓ CAVERJS-EXT-KAS-INT-187: caver.wallet.signAsFeePayer signs the fee delegated value transfer memo with ratio transaction as fee payer with the account in KAS Wallet API Service (217ms)
    ✓ CAVERJS-EXT-KAS-INT-188: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated value transfer memo with ratio transaction (199ms)
    ✓ CAVERJS-EXT-KAS-INT-189: caver.wallet.signAsFeePayer signs the fee delegated smart contract deploy with ratio transaction as fee payer with the account in KAS Wallet API Service (202ms)
    ✓ CAVERJS-EXT-KAS-INT-190: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated smart contract deploy with ratio transaction (189ms)
    ✓ CAVERJS-EXT-KAS-INT-191: caver.wallet.signAsFeePayer signs the fee delegated smart contract deploy with ratio transaction as fee payer with the account in KAS Wallet API Service (208ms)
    ✓ CAVERJS-EXT-KAS-INT-192: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated smart contract deploy with ratio transaction (205ms)
    ✓ CAVERJS-EXT-KAS-INT-193: caver.wallet.signAsFeePayer signs the fee delegated account update with ratio transaction as fee payer with the account in KAS Wallet API Service (226ms)
    ✓ CAVERJS-EXT-KAS-INT-194: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated account update with ratio transaction (204ms)
    ✓ CAVERJS-EXT-KAS-INT-195: caver.wallet.signAsFeePayer signs the fee delegated cancel with ratio transaction as fee payer with the account in KAS Wallet API Service (208ms)
    ✓ CAVERJS-EXT-KAS-INT-196: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated cancel with ratio transaction (216ms)
    ✓ CAVERJS-EXT-KAS-INT-197: caver.wallet.signAsFeePayer signs the fee delegated chain data anchoring with ratio transaction as fee payer with the account in KAS Wallet API Service (214ms)
    ✓ CAVERJS-EXT-KAS-INT-198: caver.wallet.signAsFeePayer appends feePayerSignatures to the fee delegated chain data anchoring with ratio transaction (189ms)
    ✓ CAVERJS-EXT-KAS-INT-199: caver.wallet.signAsGlobalFeePayer signs the fee delegated value transfer transaction as fee payer with the account in KAS Wallet API Service (148ms)
    ✓ CAVERJS-EXT-KAS-INT-200: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated value transfer transaction (241ms)
    ✓ CAVERJS-EXT-KAS-INT-201: caver.wallet.signAsGlobalFeePayer signs the fee delegated value transfer memo transaction as fee payer with the account in KAS Wallet API Service (146ms)
    ✓ CAVERJS-EXT-KAS-INT-202: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated value transfer memo transaction (275ms)
    ✓ CAVERJS-EXT-KAS-INT-203: caver.wallet.signAsGlobalFeePayer signs the fee delegated smart contract deploy transaction as fee payer with the account in KAS Wallet API Service (139ms)
    ✓ CAVERJS-EXT-KAS-INT-204: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated smart contract deploy transaction (244ms)
    ✓ CAVERJS-EXT-KAS-INT-205: caver.wallet.signAsGlobalFeePayer signs the fee delegated smart contract deploy transaction as fee payer with the account in KAS Wallet API Service (213ms)
    ✓ CAVERJS-EXT-KAS-INT-206: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated smart contract deploy transaction (480ms)
    ✓ CAVERJS-EXT-KAS-INT-207: caver.wallet.signAsGlobalFeePayer signs the fee delegated account update transaction as fee payer with the account in KAS Wallet API Service (473ms)
    ✓ CAVERJS-EXT-KAS-INT-208: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated account update transaction (1280ms)
    ✓ CAVERJS-EXT-KAS-INT-209: caver.wallet.signAsGlobalFeePayer signs the fee delegated cancel transaction as fee payer with the account in KAS Wallet API Service (259ms)
    ✓ CAVERJS-EXT-KAS-INT-210: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated cancel transaction (262ms)
    ✓ CAVERJS-EXT-KAS-INT-211: caver.wallet.signAsGlobalFeePayer signs the fee delegated chain data anchoring transaction as fee payer with the account in KAS Wallet API Service (140ms)
    ✓ CAVERJS-EXT-KAS-INT-212: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated chain data anchoring transaction (236ms)
    ✓ CAVERJS-EXT-KAS-INT-213: caver.wallet.signAsGlobalFeePayer signs the fee delegated value transfer with ratio transaction as fee payer with the account in KAS Wallet API Service (149ms)
    ✓ CAVERJS-EXT-KAS-INT-214: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated value transfer with ratio transaction (258ms)
    ✓ CAVERJS-EXT-KAS-INT-215: caver.wallet.signAsGlobalFeePayer signs the fee delegated value transfer memo with ratio transaction as fee payer with the account in KAS Wallet API Service (155ms)
    ✓ CAVERJS-EXT-KAS-INT-216: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated value transfer memo with ratio transaction (252ms)
    ✓ CAVERJS-EXT-KAS-INT-217: caver.wallet.signAsGlobalFeePayer signs the fee delegated smart contract deploy with ratio transaction as fee payer with the account in KAS Wallet API Service (156ms)
    ✓ CAVERJS-EXT-KAS-INT-218: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated smart contract deploy with ratio transaction (261ms)
    ✓ CAVERJS-EXT-KAS-INT-219: caver.wallet.signAsGlobalFeePayer signs the fee delegated smart contract deploy with ratio transaction as fee payer with the account in KAS Wallet API Service (155ms)
    ✓ CAVERJS-EXT-KAS-INT-220: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated smart contract deploy with ratio transaction (271ms)
    ✓ CAVERJS-EXT-KAS-INT-221: caver.wallet.signAsGlobalFeePayer signs the fee delegated account update with ratio transaction as fee payer with the account in KAS Wallet API Service (155ms)
    ✓ CAVERJS-EXT-KAS-INT-222: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated account update with ratio transaction (259ms)
    ✓ CAVERJS-EXT-KAS-INT-223: caver.wallet.signAsGlobalFeePayer signs the fee delegated cancel with ratio transaction as fee payer with the account in KAS Wallet API Service (175ms)
    ✓ CAVERJS-EXT-KAS-INT-224: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated cancel with ratio transaction (250ms)
    ✓ CAVERJS-EXT-KAS-INT-225: caver.wallet.signAsGlobalFeePayer signs the fee delegated chain data anchoring with ratio transaction as fee payer with the account in KAS Wallet API Service (153ms)
    ✓ CAVERJS-EXT-KAS-INT-226: caver.wallet.signAsGlobalFeePayer appends feePayerSignatures to the fee delegated chain data anchoring with ratio transaction (270ms)
    ✓ CAVERJS-EXT-KAS-INT-227: caver.contract deploys contract with an account in KAS Wallet API Service (5902ms)
    ✓ CAVERJS-EXT-KAS-INT-228: caver.contract execute contract with an account in KAS Wallet API Service (2728ms)
    ✓ CAVERJS-EXT-KAS-INT-229: caver.kct.kip7 deploys KIP-7 contract with an account in KAS Wallet API Service (3615ms)
    ✓ CAVERJS-EXT-KAS-INT-230: caver.contract execute KIP-7 contract with an account in KAS Wallet API Service (2485ms)
    ✓ CAVERJS-EXT-KAS-INT-231: caver.kct.kip17 deploys KIP-17 contract with an account in KAS Wallet API Service (3668ms)
    ✓ CAVERJS-EXT-KAS-INT-232: caver.contract execute KIP-17 contract with an account in KAS Wallet API Service (3594ms)

  KIP17 API service
    ✓ CAVERJS-EXT-KAS-INT-247: caver.kas.kip17.deploy should deploy KIP-17 token contract (162ms)
    ✓ CAVERJS-EXT-KAS-INT-248: caver.kas.kip17.getContractList should return KIP-17 token contract list (10215ms)
    ✓ CAVERJS-EXT-KAS-INT-249: caver.kas.kip17.getContract should return KIP-17 token contract (137ms)
    ✓ CAVERJS-EXT-KAS-INT-250: caver.kas.kip17.mint should mint KIP-17 token (834ms)
    ✓ CAVERJS-EXT-KAS-INT-251: caver.kas.kip17.getTokenList should return token list in specific KIP-17 token (10172ms)
    ✓ CAVERJS-EXT-KAS-INT-252: caver.kas.kip17.approve should approve token operation of specific token (10274ms)
    ✓ CAVERJS-EXT-KAS-INT-253: caver.kas.kip17.transfer should transfer token when sender and owner are same (10270ms)
    ✓ CAVERJS-EXT-KAS-INT-254: caver.kas.kip17.transfer should transfer token when sender and owner are different (10227ms)
    ✓ CAVERJS-EXT-KAS-INT-255: caver.kas.kip17.burn should burn token (10230ms)
    ✓ CAVERJS-EXT-KAS-INT-256: caver.kas.kip17.approveAll should approve all tokens operation of specific token (10292ms)
    ✓ CAVERJS-EXT-KAS-INT-257: caver.kas.kip17.getTokenListByOwner should return token list by owner (163ms)
    ✓ CAVERJS-EXT-KAS-INT-258: caver.kas.kip17.getTransferHistory should return transfer history of token (124ms)

  TokenHistory API service
    ✓ CAVERJS-EXT-KAS-INT-007: caver.kas.tokenHistory.getTransferHistory should query transfer history (1097ms)
    ✓ CAVERJS-EXT-KAS-INT-008: caver.kas.tokenHistory.getTransferHistoryByTxHash should query transaction (67ms)
    ✓ CAVERJS-EXT-KAS-INT-009: caver.kas.tokenHistory.getTransferHistoryByAccount should query transaction by account (71ms)
    ✓ CAVERJS-EXT-KAS-INT-010: caver.kas.tokenHistory.getFTContractList should query FT contract list (149ms)
    ✓ CAVERJS-EXT-KAS-INT-011: caver.kas.tokenHistory.getFTContract should query FT contract (83ms)
    ✓ CAVERJS-EXT-KAS-INT-012: caver.kas.tokenHistory.getNFTContractList should query NFT contract list (66ms)
    ✓ CAVERJS-EXT-KAS-INT-013: caver.kas.tokenHistory.getNFTContract should query NFT contract (77ms)
    ✓ CAVERJS-EXT-KAS-INT-014: caver.kas.tokenHistory.getNFTList should query NFT list issued in specific NFT contract (67ms)
    ✓ CAVERJS-EXT-KAS-INT-015: caver.kas.tokenHistory.getNFTListByOwner should query NFT list issued in specific NFT contract by owner (66ms)
    ✓ CAVERJS-EXT-KAS-INT-016: caver.kas.tokenHistory.getNFT should query NFT issued in specific NFT contract by owner (54ms)
    ✓ CAVERJS-EXT-KAS-INT-017: caver.kas.tokenHistory.getNFTOwnershipHistory should query NFT ownership history (58ms)
    ✓ CAVERJS-EXT-KAS-INT-235: caver.kas.tokenHistory.getMTContractList should return MT contract list (56ms)
    ✓ CAVERJS-EXT-KAS-INT-236: caver.kas.tokenHistory.getMTContract should return MT contract (62ms)
    ✓ CAVERJS-EXT-KAS-INT-237: caver.kas.tokenHistory.getMTListByOwner should return MT token list by owner (85ms)
    ✓ CAVERJS-EXT-KAS-INT-238: caver.kas.tokenHistory.getMT should return MT (65ms)
    ✓ CAVERJS-EXT-KAS-INT-239: caver.kas.tokenHistory.getMTOwnerListByTokenId should return MT token owner list (72ms)

  Wallet API service
    ✓ CAVERJS-EXT-KAS-INT-018: caver.kas.wallet.createAccount should create account in KAS wallet API service (5613ms)
    ✓ CAVERJS-EXT-KAS-INT-019: caver.kas.wallet.getAccountList should retrieve account list (65ms)
    ✓ CAVERJS-EXT-KAS-INT-020: caver.kas.wallet.getAccount should return account in KAS wallet api service (68ms)
    ✓ CAVERJS-EXT-KAS-INT-021: caver.kas.wallet.getAccountListByPublicKey should return account in KAS wallet api service by public key (55ms)
    ✓ CAVERJS-EXT-KAS-INT-022: caver.kas.wallet.deleteAccount should delete account in KAS wallet api service (148ms)
    ✓ CAVERJS-EXT-KAS-INT-023: caver.kas.wallet.disableAccount should change account status to disabled (68ms)
    ✓ CAVERJS-EXT-KAS-INT-024: caver.kas.wallet.enableAccount should change account status to enabled (90ms)
    ✓ CAVERJS-EXT-KAS-INT-025: caver.kas.wallet.updateToMultiSigAccount should update account key of account (7681ms)
    ✓ CAVERJS-EXT-KAS-INT-026: caver.kas.wallet.signTransaction should request sign transaction (1197ms)
    ✓ CAVERJS-EXT-KAS-INT-027: caver.kas.wallet.requestLegacyTransaction should request value transfer transaction (submit true) (1110ms)
    ✓ CAVERJS-EXT-KAS-INT-028: caver.kas.wallet.requestLegacyTransaction should return signed value transfer transaction (submit false) (78ms)
    ✓ CAVERJS-EXT-KAS-INT-029: caver.kas.wallet.requestValueTransfer should request value transfer transaction (submit true) (1101ms)
    ✓ CAVERJS-EXT-KAS-INT-030: caver.kas.wallet.requestValueTransfer should return signed value transfer transaction (submit false) (81ms)
    ✓ CAVERJS-EXT-KAS-INT-031: caver.kas.wallet.requestValueTransfer should request value transfer memo transaction (submit true) (4552ms)
    ✓ CAVERJS-EXT-KAS-INT-032: caver.kas.wallet.requestValueTransfer should return signed value transfer memo transaction (submit false) (113ms)
    ✓ CAVERJS-EXT-KAS-INT-033: caver.kas.wallet.requestSmartContractDeploy should request smart contract deploy transaction (submit true) (4199ms)
    ✓ CAVERJS-EXT-KAS-INT-034: caver.kas.wallet.requestSmartContractDeploy should return signed smart contract deploy transaction (submit false) (96ms)
    ✓ CAVERJS-EXT-KAS-INT-035: caver.kas.wallet.requestSmartContractExecution should request smart contract execution transaction (submit true) (1097ms)
    ✓ CAVERJS-EXT-KAS-INT-036: caver.kas.wallet.requestSmartContractExecution should return signed smart contract execution transaction (submit false) (92ms)
    ✓ CAVERJS-EXT-KAS-INT-037: caver.kas.wallet.requestCancel should request cancel transaction (submit true) (3136ms)
    ✓ CAVERJS-EXT-KAS-INT-038: caver.kas.wallet.requestCancel should return signed cancel transaction (submit false) (166ms)
    ✓ CAVERJS-EXT-KAS-INT-039: caver.kas.wallet.requestChainDataAnchoring should request chain data anchoring transaction (submit true) (1121ms)
    ✓ CAVERJS-EXT-KAS-INT-040: caver.kas.wallet.requestChainDataAnchoring should return signed chain data anchoring transaction (submit false) (89ms)
    ✓ CAVERJS-EXT-KAS-INT-041: caver.kas.wallet.requestRawTransaction should request transaction via RLP-encoded string (submit true) (148ms)
    ✓ CAVERJS-EXT-KAS-INT-042: caver.kas.wallet.requestRawTransaction should return transaction via RLP-encoded string (submit false) (143ms)
    ✓ CAVERJS-EXT-KAS-INT-043: caver.kas.wallet.requestAccountUpdate should request account update transaction (submit true) (20315ms)
    ✓ CAVERJS-EXT-KAS-INT-044: caver.kas.wallet.requestAccountUpdate should request account update transaction (submit true) (529ms)
    ✓ CAVERJS-EXT-KAS-INT-045: caver.kas.wallet.getTransaction should get transaction (87ms)
    ✓ CAVERJS-EXT-KAS-INT-046: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should request fee delegated value transfer transaction paid by KAS global fee payer (submit true) (1117ms)
    ✓ CAVERJS-EXT-KAS-INT-047: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should return signed fee delegated value transfer transaction paid by KAS global fee payer (submit false) (97ms)
    ✓ CAVERJS-EXT-KAS-INT-048: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should request fee delegated value transfer transaction paid by KAS global fee payer (submit true) (1125ms)
    ✓ CAVERJS-EXT-KAS-INT-049: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should return signed fee delegated value transfer transaction paid by KAS global fee payer (submit false) (95ms)
    ✓ CAVERJS-EXT-KAS-INT-050: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should request fee delegated value transfer memo transaction paid by KAS global fee payer (submit true) (4363ms)
    ✓ CAVERJS-EXT-KAS-INT-051: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should return signed fee delegated value transfer memo transaction paid by KAS global fee payer (submit false) (93ms)
    ✓ CAVERJS-EXT-KAS-INT-052: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should request fee delegated value transfer memo with ratio transaction paid by KAS global fee payer (submit true) (3346ms)
    ✓ CAVERJS-EXT-KAS-INT-053: caver.kas.wallet.requestFDValueTransferPaidByGlobalFeePayer should return signed fee delegated value transfer memo with ratio transaction paid by KAS global fee payer (submit false) (151ms)
    ✓ CAVERJS-EXT-KAS-INT-054: caver.kas.wallet.requestFDSmartContractDeployPaidByGlobalFeePayer should request fee delegated smart contract deploy transaction paid by KAS global fee payer (submit true) (4300ms)
    ✓ CAVERJS-EXT-KAS-INT-055: caver.kas.wallet.requestFDSmartContractDeployPaidByGlobalFeePayer should return signed fee delegated smart contract deploy transaction paid by KAS global fee payer (submit false) (109ms)
    ✓ CAVERJS-EXT-KAS-INT-056: caver.kas.wallet.requestFDSmartContractDeployPaidByGlobalFeePayer should request fee delegated smart contract deploy with ratio transaction paid by KAS global fee payer (submit true) (1118ms)
    ✓ CAVERJS-EXT-KAS-INT-057: caver.kas.wallet.requestFDSmartContractDeployPaidByGlobalFeePayer should return signed fee delegated smart contract deploy with ratio transaction paid by KAS global fee payer (submit false) (99ms)
    ✓ CAVERJS-EXT-KAS-INT-058: caver.kas.wallet.requestFDSmartContractExecutionPaidByGlobalFeePayer should request fee delegated smart contract execution transaction paid by KAS global fee payer (submit true) (1119ms)
    ✓ CAVERJS-EXT-KAS-INT-059: caver.kas.wallet.requestFDSmartContractExecutionPaidByGlobalFeePayer should return signed fee delegated smart contract execution transaction paid by KAS global fee payer (submit false) (91ms)
    ✓ CAVERJS-EXT-KAS-INT-060: caver.kas.wallet.requestFDSmartContractExecutionPaidByGlobalFeePayer should request fee delegated smart contract execution with ratio transaction paid by KAS global fee payer (submit true) (1119ms)
    ✓ CAVERJS-EXT-KAS-INT-061: caver.kas.wallet.requestFDSmartContractExecutionPaidByGlobalFeePayer should return signed fee delegated smart contract execution with ratio transaction paid by KAS global fee payer (submit false) (96ms)
    ✓ CAVERJS-EXT-KAS-INT-062: caver.kas.wallet.requestFDCancelPaidByGlobalFeePayer should request fee delegated cancel transaction paid by KAS global fee payer (submit true) (4168ms)
    ✓ CAVERJS-EXT-KAS-INT-063: caver.kas.wallet.requestFDCancelPaidByGlobalFeePayer should return signed fee delegated cancel transaction paid by KAS global fee payer (submit false) (142ms)
    ✓ CAVERJS-EXT-KAS-INT-064: caver.kas.wallet.requestFDCancelPaidByGlobalFeePayer should request fee delegated cancel with ratio transaction paid by KAS global fee payer (submit true) (3221ms)
    ✓ CAVERJS-EXT-KAS-INT-065: caver.kas.wallet.requestFDCancelPaidByGlobalFeePayer should return signed fee delegated cancel with ratio transaction paid by KAS global fee payer (submit false) (154ms)
    ✓ CAVERJS-EXT-KAS-INT-066: caver.kas.wallet.requestFDChainDataAnchoringPaidByGlobalFeePayer should request fee delegated chain data anchoring transaction paid by KAS global fee payer (submit true) (1127ms)
    ✓ CAVERJS-EXT-KAS-INT-067: caver.kas.wallet.requestFDChainDataAnchoringPaidByGlobalFeePayer should return signed fee delegated chain data anchoring transaction paid by KAS global fee payer (submit false) (123ms)
    ✓ CAVERJS-EXT-KAS-INT-068: caver.kas.wallet.requestFDChainDataAnchoringPaidByGlobalFeePayer should request fee delegated chain data anchoring with ratio transaction paid by KAS global fee payer (submit true) (1120ms)
    ✓ CAVERJS-EXT-KAS-INT-069: caver.kas.wallet.requestFDChainDataAnchoringPaidByGlobalFeePayer should return signed fee delegated chain data anchoring with ratio transaction paid by KAS global fee payer (submit false) (100ms)
    ✓ CAVERJS-EXT-KAS-INT-070: caver.kas.wallet.requestFDRawTransactionPaidByGlobalFeePayer should request fee delegated transaction via RLP-encoded string paid by KAS global fee payer (submit true) (1184ms)
    ✓ CAVERJS-EXT-KAS-INT-071: caver.kas.wallet.requestFDRawTransactionPaidByGlobalFeePayer should return fee payer signed fee delegated transaction via RLP-encoded string paid by KAS global fee payer (submit false) (181ms)
    ✓ CAVERJS-EXT-KAS-INT-072: caver.kas.wallet.requestFDRawTransactionPaidByGlobalFeePayer should request fee delegated with ratio transaction via RLP-encoded string paid by KAS global fee payer (submit true) (1266ms)
    ✓ CAVERJS-EXT-KAS-INT-073: caver.kas.wallet.requestFDRawTransactionPaidByGlobalFeePayer should return fee payer signed fee delegated with ratio transaction via RLP-encoded string paid by KAS global fee payer (submit false) (183ms)
    ✓ CAVERJS-EXT-KAS-INT-074: caver.kas.wallet.requestFDAccountUpdatePaidByGlobalFeePayer should request fee delegated account update transaction paid by KAS global fee payer (submit true) (19284ms)
    ✓ CAVERJS-EXT-KAS-INT-075: caver.kas.wallet.requestFDAccountUpdatePaidByGlobalFeePayer should request fee delegated account update transaction paid by KAS global fee payer (submit true) (645ms)
    ✓ CAVERJS-EXT-KAS-INT-076: caver.kas.wallet.requestFDAccountUpdatePaidByGlobalFeePayer should request fee delegated account update with ratio transaction paid by KAS global fee payer (submit true) (20202ms)
    ✓ CAVERJS-EXT-KAS-INT-077: caver.kas.wallet.requestFDAccountUpdatePaidByGlobalFeePayer should request fee delegated account update with ratio transaction paid by KAS global fee payer (submit true) (601ms)
    ✓ CAVERJS-EXT-KAS-INT-078: caver.kas.wallet.requestFDValueTransferPaidByUser should request fee delegated value transfer transaction paid by user (submit true) (1126ms)
    ✓ CAVERJS-EXT-KAS-INT-079: caver.kas.wallet.requestFDValueTransferPaidByUser should return signed fee delegated value transfer transaction paid by user (submit false) (106ms)
    ✓ CAVERJS-EXT-KAS-INT-080: caver.kas.wallet.requestFDValueTransferPaidByUser should request fee delegated value transfer transaction paid by user (submit true) (1116ms)
    ✓ CAVERJS-EXT-KAS-INT-081: caver.kas.wallet.requestFDValueTransferPaidByUser should return signed fee delegated value transfer transaction paid by user (submit false) (122ms)
    ✓ CAVERJS-EXT-KAS-INT-082: caver.kas.wallet.requestFDValueTransferPaidByUser should request fee delegated value transfer memo transaction paid by user (submit true) (4527ms)
    ✓ CAVERJS-EXT-KAS-INT-083: caver.kas.wallet.requestFDValueTransferPaidByUser should return signed fee delegated value transfer memo transaction paid by user (submit false) (135ms)
    ✓ CAVERJS-EXT-KAS-INT-084: caver.kas.wallet.requestFDValueTransferPaidByUser should request fee delegated value transfer memo with ratio transaction paid by user (submit true) (4360ms)
    ✓ CAVERJS-EXT-KAS-INT-085: caver.kas.wallet.requestFDValueTransferPaidByUser should return signed fee delegated value transfer memo with ratio transaction paid by user (submit false) (101ms)
    ✓ CAVERJS-EXT-KAS-INT-086: caver.kas.wallet.requestFDSmartContractDeployPaidByUser should request fee delegated smart contract deploy transaction paid by user (submit true) (4217ms)
    ✓ CAVERJS-EXT-KAS-INT-087: caver.kas.wallet.requestFDSmartContractDeployPaidByUser should return signed fee delegated smart contract deploy transaction paid by user (submit false) (108ms)
    ✓ CAVERJS-EXT-KAS-INT-088: caver.kas.wallet.requestFDSmartContractDeployPaidByUser should request fee delegated smart contract deploy with ratio transaction paid by user (submit true) (1116ms)
    ✓ CAVERJS-EXT-KAS-INT-089: caver.kas.wallet.requestFDSmartContractDeployPaidByUser should return signed fee delegated smart contract deploy with ratio transaction paid by user (submit false) (97ms)
    ✓ CAVERJS-EXT-KAS-INT-090: caver.kas.wallet.requestFDSmartContractExecutionPaidByUser should request fee delegated smart contract execution transaction paid by user (submit true) (1122ms)
    ✓ CAVERJS-EXT-KAS-INT-091: caver.kas.wallet.requestFDSmartContractExecutionPaidByUser should return signed fee delegated smart contract execution transaction paid by user (submit false) (98ms)
    ✓ CAVERJS-EXT-KAS-INT-092: caver.kas.wallet.requestFDSmartContractExecutionPaidByUser should request fee delegated smart contract execution with ratio transaction paid by user (submit true) (1123ms)
    ✓ CAVERJS-EXT-KAS-INT-093: caver.kas.wallet.requestFDSmartContractExecutionPaidByUser should return signed fee delegated smart contract execution with ratio transaction paid by user (submit false) (102ms)
    ✓ CAVERJS-EXT-KAS-INT-094: caver.kas.wallet.requestFDCancelPaidByUser should request fee delegated cancel transaction paid by user (submit true) (3167ms)
    ✓ CAVERJS-EXT-KAS-INT-095: caver.kas.wallet.requestFDCancelPaidByUser should return signed fee delegated cancel transaction paid by user (submit false) (150ms)
    ✓ CAVERJS-EXT-KAS-INT-096: caver.kas.wallet.requestFDCancelPaidByUser should request fee delegated cancel with ratio transaction paid by user (submit true) (3170ms)
    ✓ CAVERJS-EXT-KAS-INT-097: caver.kas.wallet.requestFDCancelPaidByUser should return signed fee delegated cancel with ratio transaction paid by user (submit false) (150ms)
    ✓ CAVERJS-EXT-KAS-INT-098: caver.kas.wallet.requestFDChainDataAnchoringPaidByUser should request fee delegated chain data anchoring transaction paid by user (submit true) (1123ms)
    ✓ CAVERJS-EXT-KAS-INT-099: caver.kas.wallet.requestFDChainDataAnchoringPaidByUser should return signed fee delegated chain data anchoring transaction paid by user (submit false) (95ms)
    ✓ CAVERJS-EXT-KAS-INT-100: caver.kas.wallet.requestFDChainDataAnchoringPaidByUser should request fee delegated chain data anchoring with ratio transaction paid by user (submit true) (1113ms)
    ✓ CAVERJS-EXT-KAS-INT-101: caver.kas.wallet.requestFDChainDataAnchoringPaidByUser should return signed fee delegated chain data anchoring with ratio transaction paid by user (submit false) (106ms)
    ✓ CAVERJS-EXT-KAS-INT-102: caver.kas.wallet.requestFDRawTransactionPaidByUser should request fee delegated transaction via RLP-encoded string paid by user (submit true) (1188ms)
    ✓ CAVERJS-EXT-KAS-INT-103: caver.kas.wallet.requestFDRawTransactionPaidByUser should return fee payer signed fee delegated transaction via RLP-encoded string paid by user (submit false) (183ms)
    ✓ CAVERJS-EXT-KAS-INT-104: caver.kas.wallet.requestFDRawTransactionPaidByUser should request fee delegated with ratio transaction via RLP-encoded string paid by user (submit true) (1217ms)
    ✓ CAVERJS-EXT-KAS-INT-105: caver.kas.wallet.requestFDRawTransactionPaidByUser should return fee payer signed fee delegated with ratio transaction via RLP-encoded string paid by user (submit false) (257ms)
    ✓ CAVERJS-EXT-KAS-INT-106: caver.kas.wallet.requestFDAccountUpdatePaidByUser should request fee delegated account update transaction paid by user (submit true) (20332ms)
    ✓ CAVERJS-EXT-KAS-INT-107: caver.kas.wallet.requestFDAccountUpdatePaidByUser should request fee delegated account update transaction paid by user (submit true) (662ms)
    ✓ CAVERJS-EXT-KAS-INT-108: caver.kas.wallet.requestFDAccountUpdatePaidByUser should request fee delegated account update with ratio transaction paid by user (submit true) (19765ms)
    ✓ CAVERJS-EXT-KAS-INT-109: caver.kas.wallet.requestFDAccountUpdatePaidByUser should request fee delegated account update with ratio transaction paid by user (submit true) (636ms)
    ✓ CAVERJS-EXT-KAS-INT-110: caver.kas.wallet.getMultiSigTransactionList should return multisig transaction list (62ms)
    ✓ CAVERJS-EXT-KAS-INT-111: caver.kas.wallet.signMultiSigTransction should sign to multisig transaction (129ms)
    ✓ CAVERJS-EXT-KAS-INT-112: caver.kas.wallet.appendSignatures should append signatures to transaction (105ms)
    ✓ CAVERJS-EXT-KAS-INT-113: caver.kas.wallet.getAccountCount should return the number of accounts in KAS (64ms)
    ✓ CAVERJS-EXT-KAS-INT-114: caver.kas.wallet.getAccountCountByKRN should return the number of accounts in KAS by KRN (58ms)
    ✓ CAVERJS-EXT-KAS-INT-233: caver.kas.wallet.migrateAccounts should return status with a single key (254ms)
    ✓ CAVERJS-EXT-KAS-INT-234: caver.kas.wallet.migrateAccounts should return status with multiple accounts (520ms)
    ✓ CAVERJS-EXT-KAS-INT-240: caver.kas.wallet.callContract should call contract with a Klaytn account in KAS (71ms)
    ✓ CAVERJS-EXT-KAS-INT-241: caver.kas.wallet.callContract should call contract via KAS (69ms)
    ✓ CAVERJS-EXT-KAS-INT-242: caver.kas.wallet.createKeys should create keys in KAS (99ms)
    ✓ CAVERJS-EXT-KAS-INT-243: caver.kas.wallet.getKey should return key from KAS (64ms)
    ✓ CAVERJS-EXT-KAS-INT-244: caver.kas.wallet.signMessage should sign data with key in KAS (73ms)
    ✓ CAVERJS-EXT-KAS-INT-245: caver.kas.wallet.signMessage should sign data with key in KAS (with krn) (73ms)
    ✓ CAVERJS-EXT-KAS-INT-246: caver.kas.wallet.registerAccounts should register accounts in KAS (167ms)

  258 passing (5m)