Skip to content

Better documentation, simpler methods and increased test coverage! 🧼🛁

Compare
Choose a tag to compare
@taylorjdawson taylorjdawson released this 09 Nov 01:04
· 62 commits to master since this release
cbdb98f

Overview

This release adds additional method documentation, increased test coverage, and method refactoring.

Change log

Breaking Changes:

Methods that have been removed:

  • address.getLatestBalance
  • address.getHistoricalBalance
  • address.getBalances
  • address.getBalancesBatch
  • address.getMultipleBalances

The address.getBalance now encapsulates all of the above methods.

Methods that have been renamed:

  • signature.get4Bytesignature.getSignature

Method responses now only include payload data from the API.

From this:

{
    "status": 200,
    "title": "OK",
    "description": "Successful request",
    "payload": { 
       // data
     }
}

To this:

{
  // data
}
Affected Methods:
  • contract.getAudit
  • contract.getFunctions
  • signature.getSignature

Methods which once returned data with a records field now return the data contained with in that field.

From this:

{
  "records": [ 
     // data
  ]
}

To this:

[
  // data
]
Affected Methods:
  • contract.getFunctions
  • address.getInternalMessages
  • address.getFunctions
  • address.getLogs
  • address.getTransactions
  • address.getPendingTransactions
  • address.getTokens
  • address.getTokenTransfers
  • address.getTokenBalances