Skip to content

Commit

Permalink
get through build check
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyu-li-cb committed Aug 8, 2024
1 parent ed79518 commit 34b8486
Show file tree
Hide file tree
Showing 4 changed files with 2,470 additions and 3,010 deletions.
32 changes: 26 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 17 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"author": "Coinbase Inc.",
"license": "ISC",
"description": "Coinbase Platform SDK",
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs",
"repository": {
"type": "git",
"url": "git+https://github.com/coinbase/coinbase-sdk-nodejs.git"
},
"version": "0.0.14",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -25,8 +28,9 @@
"dist"
],
"dependencies": {
"@coinbase/coinbase-sdk": "^0.0.14",
"@scure/bip32": "^1.4.0",
"axios": "^1.6.8",
"axios": "^1.7.3",
"axios-mock-adapter": "^1.22.0",
"bip32": "^4.0.0",
"bip39": "^3.1.0",
Expand Down Expand Up @@ -54,5 +58,14 @@
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typescript": "^5.4.5"
}
}
},
"directories": {
"doc": "docs"
},
"keywords": [],
"bugs": {
"url": "https://github.com/coinbase/coinbase-sdk-nodejs/issues"
},
"homepage": "https://github.com/coinbase/coinbase-sdk-nodejs#readme",
"type": "module"
}
6 changes: 3 additions & 3 deletions src/coinbase/historical_balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ export class HistoricalBalance {
*
* @ignore
* @param {Decimal} amount - The amount of the balance.
* @param {string} assetId - The asset ID.
* @param {Decimal} blockHeight - The block height at which the balance was recorded.
* @param {string} blockHash - The block hash at which the balance was recorded
* @param {string} asset - The asset we want to fetch.
* @hideconstructor
*/
private constructor(amount: Decimal, blockHeight: Decimal, blockHash: string, asset: Asset) {
Expand All @@ -29,8 +29,8 @@ export class HistoricalBalance {
/**
* Converts a BalanceModel into a Balance object.
*
* @param {BalanceModel} model - The balance model object.
* @returns {Balance} The Balance object.
* @param {HistoricalBalanceModel} model - The historical balance model object.
* @returns {HistoricalBalance} The HistoricalBalance object.
*/
public static fromModel(model: HistoricalBalanceModel): HistoricalBalance {
const asset = Asset.fromModel(model.asset);
Expand Down
Loading

0 comments on commit 34b8486

Please sign in to comment.