Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate HTTPClient and Kmd to TypeScript #318

Merged
merged 15 commits into from
Mar 31, 2021

Commits on Mar 22, 2021

  1. Migrate convert, group, account files to TypeScript (#314)

    * Add `TransactionLike` type and `instantiateTxnIfNeeded` utility method
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    867045f View commit details
    Browse the repository at this point in the history
  2. Migrate jsonrequest.js to TypeScript

    * Add `IntDecoding` type to TypeScript definitions
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    491f3df View commit details
    Browse the repository at this point in the history
  3. Convert JSONRequest to abstract class

    * Add lint rule to flag `module.exports` and `require` statements in TypeScript files
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    11c97a9 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    607f260 View commit details
    Browse the repository at this point in the history
  5. Migrate algod.js to TypeScript

    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    2aebe9f View commit details
    Browse the repository at this point in the history
  6. Migrate indexer JSON request files to TypeScript

    * Encapsulate `AlgodClient` and `IndexerClient` shared structures in an abstract class `ServiceClient`
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    9121495 View commit details
    Browse the repository at this point in the history
  7. Migrate HTTPClient to TypeScript

    * Abstract `ServiceClient` functionality into rewritten `HTTPClient`
    
    * Include workaround for `algod` v1
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    a5c17ab View commit details
    Browse the repository at this point in the history
  8. Migrate Kmd client to TypeScript

    * Include some small enhancements to abstract `JSONRequest` class
    jdtzmn committed Mar 22, 2021
    Configuration menu
    Copy the full SHA
    0461136 View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2021

  1. Merge branch 'develop' into jacob/kmd-httpclient-to-typescript

    # Conflicts:
    #	src/client/v2/algod/accountInformation.ts
    #	src/client/v2/algod/algod.ts
    #	src/client/v2/algod/block.ts
    #	src/client/v2/algod/compile.ts
    #	src/client/v2/algod/dryrun.ts
    #	src/client/v2/algod/getApplicationByID.ts
    #	src/client/v2/algod/getAssetByID.ts
    #	src/client/v2/algod/pendingTransactionInformation.ts
    #	src/client/v2/algod/pendingTransactions.ts
    #	src/client/v2/algod/pendingTransactionsByAddress.ts
    #	src/client/v2/algod/proof.ts
    #	src/client/v2/algod/sendRawTransaction.ts
    #	src/client/v2/algod/statusAfterBlock.ts
    #	src/client/v2/algod/supply.ts
    #	src/client/v2/indexer/indexer.ts
    #	src/client/v2/indexer/lookupAccountByID.ts
    #	src/client/v2/indexer/lookupAccountTransactions.ts
    #	src/client/v2/indexer/lookupApplications.ts
    #	src/client/v2/indexer/lookupAssetBalances.ts
    #	src/client/v2/indexer/lookupAssetByID.ts
    #	src/client/v2/indexer/lookupAssetTransactions.ts
    #	src/client/v2/indexer/lookupBlock.ts
    #	src/client/v2/indexer/lookupTransactionByID.ts
    #	src/client/v2/indexer/searchForTransactions.ts
    #	src/client/v2/jsonrequest.ts
    #	src/main.ts
    #	src/utils/utils.ts
    jdtzmn committed Mar 25, 2021
    Configuration menu
    Copy the full SHA
    927f10c View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2021

  1. Re-introduce ServiceClient abstraction

    ServiceClient, which includes an HTTPClient property, allows overwriting the HTTPClient instance.
    
    This functionality is required by:
    #277 (comment)
    jdtzmn committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    bc9f806 View commit details
    Browse the repository at this point in the history
  2. Address review feedback

    * Remove HTTPClient workaround in `src/client/algod.js`
    
    * Add `IndexerTokenHeader` interface
    
    * Remove extraneous IntEncoding getters/setters
    jdtzmn committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    578b383 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0fe60a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e632293 View commit details
    Browse the repository at this point in the history
  5. Support custom token headers

    * Fix `MKD` typo
    jdtzmn committed Mar 30, 2021
    Configuration menu
    Copy the full SHA
    2ce9d55 View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2021

  1. Small fixes

    jdtzmn committed Mar 31, 2021
    Configuration menu
    Copy the full SHA
    5804e7f View commit details
    Browse the repository at this point in the history