Skip to content

Release v1.9.0

Latest
Compare
Choose a tag to compare
@sirano11 sirano11 released this 08 Oct 02:49
· 11 commits to dev since this release
b9126ae

v1.9.0 Release Notes

New Features

  • Supports KAS KIP-37 API.
    • Functions to use the KIP-37 API service newly provided by KAS.
      • caver.kas.kip37.deploy POST /v1/contract
      • caver.kas.kip37.importContract POST /v1/contract/import
      • caver.kas.kip37.updateContractOptions PUT /v1/contract/{contract-address-or-alias}
      • caver.kas.kip37.getContract GET /v1/contract/{contract-address-or-alias}
      • caver.kas.kip37.getContractList GET /v1/contract
      • caver.kas.kip37.getTokenListByOwner GET /v1/contract/{contract-address-or-alias}/owner/{owner-address}/token
      • caver.kas.kip37.getTokenList GET /v1/contract/{contract-address-or-alias}/token
      • caver.kas.kip37.setApprovalForAll POST /v1/contract/{contract-address-or-alias}/approveall
      • caver.kas.kip37.pause POST /v1/contract/{contract-address-or-alias}/pause
      • caver.kas.kip37.unpause POST /v1/contract/{contract-address-or-alias}/unpause
      • caver.kas.kip37.pauseToken POST /v1/contract/{contract-address-or-alias}/token/pause/{token-id}
      • caver.kas.kip37.unpauseToken POST /v1/contract/{contract-address-or-alias}/token/unpause/{token-id}
      • caver.kas.kip37.create POST /v1/contract/{contract-address-or-alias}/token
      • caver.kas.kip37.burn DELETE /v1/contract/{contract-address-or-alias}/token
      • caver.kas.kip37.mint POST /v1/contract/{contract-address-or-alias}/token/mint
      • caver.kas.kip37.transfer POST /v1/contract/{contract-address-or-alias}/token/transfer
      • caver.kas.kip37.getDeployer GET /v1/deployer/default
    • KAS KIP-37 API is available with caver.kas.kip37 by implementing caver.initKASAPI(chainId, accessKeyId, secretAccessKey) or caver.initKIP37API(chainId, accessKeyId, secretAccessKey [, url]). If query parameters are required when using the KIP-37 API, it can be used through KIP37QueryOptions class. For more scenarios in detail, refer to KAS Docs.
  • Supports new features in KAS KIP-7 API.
    • Function to deploy KIP-7 contracts with fee payer options. You can use fee payer options with Kip7FeePayerOptions class.
      • caver.kas.kip7.deploy POST /v1/contract
    • Function to update fee payer options of the KIP-7 contract with fee payer options. You can use fee payer options with Kip7FeePayerOptions class.
      • caver.kas.kip7.updateContractOptions PUT v1/contract/{contract-address-or-alias}
    • Function to pause/unpause the KIP-7 contract with a pauser.
      • caver.kas.kip7.pause POST /v1/contract/{contract-address-or-alias}/pause
      • caver.kas.kip7.unpause POST /v1/contract/{contract-address-or-alias}/unpause
    • Function to add/renounce pauser.
      • caver.kas.kip7.addPauser POST v1/contract/{contract-address-or-alias}/pauser
      • caver.kas.kip7.renouncePauser DELETE v1/contract/{contract-address-or-alias}/pauser
    • Function to mint KIP-7 tokens with a minter.
      • caver.kas.kip7.mint POST v1/contract/{contract-address-or-alias}/mint
    • Function to add/renounce minter.
      • caver.kas.kip7.addMinter POST v1/contract/{contract-address-or-alias}/minter
      • caver.kas.kip7.renounceMinter DELETE v1/contract/{contract-address-or-alias}/minter
    • For more scenarios in detail, refer to KAS Docs.
  • Supports new features in KAS KIP-17 API.
    • Function to deploy a KIP-17 contract with fee payer options. You can use fee payer options with Kip17FeePayerOptions class.
      • caver.kas.kip17.deploy POST /v1/contract
    • Function to update fee payer options of the KIP-17 contract with fee payer options. You can use fee payer options with Kip17FeePayerOptions class.
      • caver.kas.kip17.updateContractOptions PUT v1/contract/{contract-address-or-alias}
  • Supports new features in KAS Wallet API.
    • Function to create a fee payer account with the withoutAccountUpdate parameter. If you define withoutAccountUpdate as true, KAS will not update the fee payer account.
      • caver.kas.wallet.createFeePayer POST /v2/feepayer
    • Function to query a key list by KRN (KAS Resource Name).
      • caver.kas.wallet.getKeyListByKRN GET /v2/key
    • Function to get a fee delegated transaction list. This API works with the Cypress network only.
      • caver.kas.wallet.getFDTransactionList GET /v2/history/fd/tx
    • Function to get a fee delegated transaction by hash. This API works with the Cypress network only.
      • caver.kas.wallet.getFDTransaction GET /v2/history/fd/tx/{transaction-hash}
    • For more scenarios in detail, refer to KAS Docs.