Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
333 commits
Select commit Hold shift + click to select a range
02e2fc6
add webhook api
chaoyaji-cb Aug 14, 2024
95dbb68
Merge pull request #159 from coinbase/stone/pass-address-index
alex-stone Aug 16, 2024
e61a4b4
Merge pull request #156 from coinbase/webhook-api-v0.1.0
chaoyaji-cb Aug 16, 2024
eb064c1
move public methods to the top
drohit-cb Aug 19, 2024
e29b053
fix list balances
marchsu Aug 19, 2024
3865c1e
fix seq and tests
marchsu Aug 19, 2024
6ec92c6
Merge pull request #168 from coinbase/cleanup_staking
drohit-cb Aug 19, 2024
f8ed380
make toString more descriptive
marchsu Aug 19, 2024
9ad0446
update types address to addressId
marchsu Aug 19, 2024
1ba4699
rm balance toString
marchsu Aug 19, 2024
301f163
[chore] Cleanup unused constants
alex-stone Aug 20, 2024
30e986d
[PSDK-388] Dynamically update networks
alex-stone Aug 20, 2024
36ecc04
Enable polygon support for TS SDK address creation
alex-stone Aug 20, 2024
313302f
Merge pull request #169 from coinbase/stone/PSDK-388-dynamic-network-…
alex-stone Aug 20, 2024
8312dab
Merge pull request #167 from coinbase/fix-list-staking-balances
marchsu Aug 20, 2024
3455517
Remove user concept
alex-stone Aug 20, 2024
08bd12e
Add wallet model support for Dedicated ETH Staking
drohit-cb Aug 19, 2024
1d415e6
some minor enhancements
drohit-cb Aug 21, 2024
d24e66a
Update docs, readmes, and changelog
alex-stone Aug 21, 2024
5ae4706
Add correlation header with version and language
alex-stone Aug 21, 2024
e1ec49d
Address code review comment
drohit-cb Aug 21, 2024
9286008
Merge pull request #171 from coinbase/stone/correlation
alex-stone Aug 21, 2024
fb1c983
Merge pull request #165 from coinbase/add_dedicated_eth_staking_walle…
drohit-cb Aug 21, 2024
01efe44
[hotfix] patch for setting page (#173)
xinyu-li-cb Aug 21, 2024
3acfea5
Merge pull request #170 from coinbase/stone/remove-user-concept
alex-stone Aug 22, 2024
36fc811
init
shreifabdallah Aug 16, 2024
4a92b97
changelog & tests
shreifabdallah Aug 16, 2024
3d65318
new client
shreifabdallah Aug 20, 2024
b5fa0d7
new client
shreifabdallah Aug 20, 2024
229ae01
fix removed imports
shreifabdallah Aug 20, 2024
2b4fb48
undo unrelated diffs
shreifabdallah Aug 21, 2024
efff854
new api
shreifabdallah Aug 21, 2024
a5adce6
tests
shreifabdallah Aug 21, 2024
29c3736
mappers
shreifabdallah Aug 21, 2024
c322ee1
fix test
shreifabdallah Aug 21, 2024
617ea63
add comments
shreifabdallah Aug 22, 2024
ddc5535
Decouple create transfer/trade from wait
alex-stone Aug 21, 2024
f67abf0
contract event nodejs
jinghanx Aug 16, 2024
3a9cc13
split file
jinghanx Aug 22, 2024
36b50d4
[chore] Prepare v0.1.0 changelog and package version
alex-stone Aug 22, 2024
b77af77
[chore] Update changelog header
alex-stone Aug 22, 2024
451c638
[chore] Cleanup changelog changed headers
alex-stone Aug 22, 2024
ec60f5a
Merge pull request #176 from coinbase/v0.1.0
alex-stone Aug 22, 2024
6f86599
Adding Webhook quickstart template
cb-davidlai Aug 23, 2024
9807787
Adding Webhook quickstart template
cb-davidlai Aug 23, 2024
f220360
Merge branch 'dl_wh' of https://github.com/coinbase/coinbase-sdk-node…
cb-davidlai Aug 23, 2024
6c5d6e2
Merge pull request #180 from coinbase/dl_wh
cb-davidlai Aug 23, 2024
c4a0e8f
[hotfix] Bump quickstart template SDK version
alex-stone Aug 26, 2024
0b23fbf
Update docs
drohit-cb Aug 26, 2024
1d700ab
Merge pull request #183 from coinbase/stone/bump-quickstart-template
alex-stone Aug 26, 2024
5a034db
Merge pull request #184 from coinbase/update_docs
drohit-cb Aug 26, 2024
6bfd91b
add asset_id to faucet
jazz-cb Aug 27, 2024
27ae6c1
Add usdc faucet
jazz-cb Aug 27, 2024
7401a6a
Document available staking options
drohit-cb Aug 26, 2024
cda10fc
Merge pull request #125 from coinbase/document_staking_options
drohit-cb Aug 27, 2024
21b2577
Use proper atomic units for staking balances
deangalvin-cb Aug 27, 2024
47f1301
Fix tests
deangalvin-cb Aug 27, 2024
345eefe
Version bump, and changelog
deangalvin-cb Aug 27, 2024
ba4c9e0
Merge pull request #189 from coinbase/bug/fix-staking-balance-units
deangalvin-cb Aug 27, 2024
f0fd5a9
change to assetId
jazz-cb Aug 28, 2024
1564466
fix the lint
jazz-cb Aug 28, 2024
97b7ef1
update readme
jazz-cb Aug 28, 2024
51977e3
[chore] Update README Docs for Transfer / Trade wait() (#191)
John-peterson-coinbase Aug 28, 2024
45f77d2
[chore] update readme and remove capabilities matrix #190
jazz-cb Aug 28, 2024
1e54ffa
Merge pull request #187 from coinbase/jj/usdc-faucet
alex-stone Aug 28, 2024
ba95ce2
Merge remote-tracking branch 'origin/master' into v0.2.0
alex-stone Aug 28, 2024
1bbdd5b
[chore] Update to latest client
alex-stone Aug 28, 2024
ee13528
Merge pull request #193 from coinbase/stone/update-v0.2.0
alex-stone Aug 28, 2024
ffec4aa
Merge pull request #194 from coinbase/stone/bump-client
alex-stone Aug 28, 2024
47c0912
[hotfix] Internal Error Message Surfacing (#196)
John-peterson-coinbase Aug 29, 2024
1ab644c
version bump and changelog
jazz-cb Aug 29, 2024
c2ce99d
update lock
jazz-cb Aug 29, 2024
2c8773e
version bump and changelog for 0.2.0 release #197
jazz-cb Aug 29, 2024
8790a49
[V0.2.0] Release v0.2.0 #198
jazz-cb Aug 29, 2024
2a411f1
[PSDK-441] Arbitrary Message Signing Support on WalletAddress (#201)
John-peterson-coinbase Sep 3, 2024
580e4a3
Revert "[PSDK-441] Arbitrary Message Signing Support on WalletAddress…
John-peterson-coinbase Sep 3, 2024
5820dbc
[PSDK-441] Arbitrary Message Signing Support on WalletAddress (#203)
John-peterson-coinbase Sep 3, 2024
ae56bd5
camel case
chaoyaji-cb Sep 3, 2024
c9eaaee
[PSDK-441] createPayloadSignature for Wallet Class (#207)
John-peterson-coinbase Sep 4, 2024
eec38cb
Merge pull request #199 from coinbase/webhook-signature
chaoyaji-cb Sep 4, 2024
d8af5f3
Updated README for CDP docs link
rohan-agarwal-coinbase Sep 4, 2024
f2717c4
Merge pull request #209 from coinbase/rohan/psdk-454
rohan-agarwal-coinbase Sep 4, 2024
f68ea83
add listtransactions function for address #188 (#208)
xinyu-li-cb Sep 4, 2024
99b516b
Added ability to get private key for WalletAddress and updated yarn.l…
rohan-agarwal-coinbase Sep 5, 2024
1c6f0f8
Support contract invocations
alex-stone Sep 3, 2024
ca48eda
[chore] Run formatter
alex-stone Sep 5, 2024
cbcf058
Support invoking contract on the wallet
alex-stone Sep 5, 2024
5bcabfc
Merge pull request #206 from coinbase/stone/contract-invocations
alex-stone Sep 5, 2024
5f9c9ba
Bump package.json to v0.3.0
alex-stone Sep 5, 2024
708c354
Merge pull request #214 from coinbase/stone/v0.3.0-bump
alex-stone Sep 5, 2024
d303847
Merge pull request #215 from coinbase/v0.3.0
alex-stone Sep 5, 2024
2e5ff3e
Release v0.4.0 (#225)
rohan-agarwal-coinbase Sep 7, 2024
83d1bfb
Update docs (#226)
rohan-agarwal-coinbase Sep 9, 2024
dc4f80a
Added Coinbase.configure function, marked constructor as deprecated, …
rohan-agarwal-coinbase Sep 10, 2024
3c45e1a
Return correlation ID from API Error
alex-stone Sep 11, 2024
ce5d620
[chore] Run `format` script
alex-stone Sep 11, 2024
daeaee9
update client
jazz-cb Sep 11, 2024
7749a67
remove deprecated api
jazz-cb Sep 11, 2024
ccd5aea
Merge branch 'v0.5.0' into jj/arb
jazz-cb Sep 11, 2024
0242059
Merge pull request #232 from coinbase/stone/correlation-id
alex-stone Sep 11, 2024
fd31193
[chore] update openAPI generated client #233
jazz-cb Sep 11, 2024
678201a
[PSDK-483] Payable Contract Invocations (#231)
John-peterson-coinbase Sep 11, 2024
947da0e
feat: expose staking reward format as a user facing enum
drohit-cb Sep 11, 2024
a9dbce0
fix formatting across codebase
drohit-cb Sep 11, 2024
b153c45
Update changelog
drohit-cb Sep 11, 2024
12b4389
Merge pull request #230 from coinbase/expose_staking_reward_format
drohit-cb Sep 11, 2024
42176b8
add arb mainnet
jazz-cb Sep 11, 2024
e50f2b7
fix the version
jazz-cb Sep 11, 2024
cdd2ee7
Prepare for 0.5.0 release #235
jazz-cb Sep 11, 2024
f9fb973
[V0.5.0] Release v0.5.0 #234
jazz-cb Sep 11, 2024
7cbed3b
fix arb
jazz-cb Sep 12, 2024
f3bf82c
update version
jazz-cb Sep 12, 2024
1cf2237
remove network check logic from sdk
jazz-cb Sep 12, 2024
42b573e
fix coverage
jazz-cb Sep 12, 2024
06e29b1
fix lint
jazz-cb Sep 12, 2024
8ada8f7
[0.5.1][hotfix] Add arbitrum to network list #242
jazz-cb Sep 12, 2024
6c71e22
[PSDK-443] Quickstart Basenames Registration (#243)
John-peterson-coinbase Sep 12, 2024
44abe98
[hotfix] Fix L2 Resolver Address on Register Basenames Quickstart (#244)
John-peterson-coinbase Sep 13, 2024
e04a164
Updated API client
rohan-agarwal-coinbase Sep 16, 2024
b0b36a0
WIP
rohan-agarwal-coinbase Sep 17, 2024
fec3531
WIP
rohan-agarwal-coinbase Sep 17, 2024
ea5a8ea
Merge contract and smart_contract
rohan-agarwal-coinbase Sep 17, 2024
1704071
Refactor
rohan-agarwal-coinbase Sep 17, 2024
6239d8c
Tests so far
rohan-agarwal-coinbase Sep 17, 2024
2dfb688
Finished contract tests
rohan-agarwal-coinbase Sep 17, 2024
3d4387f
Wallet Address tests done
rohan-agarwal-coinbase Sep 17, 2024
3ee700d
Tests for wallet_test
rohan-agarwal-coinbase Sep 17, 2024
56bbd71
Formatting
rohan-agarwal-coinbase Sep 17, 2024
bd88677
Rename
rohan-agarwal-coinbase Sep 17, 2024
a060498
Changelog
rohan-agarwal-coinbase Sep 17, 2024
1788bac
Client API
rohan-agarwal-coinbase Sep 17, 2024
00d7329
Fix lint
rohan-agarwal-coinbase Sep 17, 2024
0c808e7
Address feedback
rohan-agarwal-coinbase Sep 17, 2024
0947ade
lint
rohan-agarwal-coinbase Sep 17, 2024
87d2fc0
add sol, lamport asset suppport
drohit-cb Sep 18, 2024
d47edc2
Fix ABI object return type (#251)
rohan-agarwal-coinbase Sep 18, 2024
001f1d4
Fix Asset toAtomicAmount to not return scientific notation (#250)
rohan-agarwal-coinbase Sep 18, 2024
979648f
Bump to v0.6.0, update docs, update changelog (#252)
rohan-agarwal-coinbase Sep 18, 2024
4c88584
Merge pull request #258 from coinbase/v0.6.0
alex-stone Sep 18, 2024
e74faca
[Hotfix] Ensure all types are exported in index.ts (#264)
rohan-agarwal-coinbase Sep 23, 2024
bba7f47
Release v0.7.0 (#276)
rohan-agarwal-coinbase Sep 26, 2024
bdd84f1
fix(CDF-3742): Add to webhooks quickstart guide
jair-rosa-cb Sep 30, 2024
ce6016b
fix(CDF-3742): Add to webhooks quickstart guide
jair-rosa-cb Oct 1, 2024
dba04b1
fix(CDF-3742): Add to webhooks quickstart guide
jair-rosa-cb Oct 1, 2024
69d8118
Merge pull request #278 from coinbase/CDF-3742-quickstart-guide
cb-davidlai Oct 2, 2024
49a1941
Release v0.8.0 (#285)
John-peterson-coinbase Oct 4, 2024
3b514fd
fix: Make register-basename.js Quickstart Template Executable (#286)
John-peterson-coinbase Oct 8, 2024
107a76a
Quickstart template for USDC bridging using CCTP (#281)
rohan-agarwal-coinbase Oct 8, 2024
a4c9685
Webhook update hotfix (#289) (#292)
howard-at-cb Oct 11, 2024
44e1a83
feat(CDF-3864): Add wallet history quickstart guide
jair-rosa-cb Oct 15, 2024
a6642bb
feat(CDF-3864): Add wallet history quickstart guide
jair-rosa-cb Oct 15, 2024
d6fe0ca
Merge pull request #294 from coinbase/CDF-3864
cb-davidlai Oct 16, 2024
c0d47ec
Release v0.9.0 (#299)
rohan-agarwal-coinbase Oct 17, 2024
2471020
Release 0.9.1 (#301)
rohan-agarwal-coinbase Oct 19, 2024
665a730
feat(CDF-3933): Add discord bot implementation to quickstart
jair-rosa-cb Oct 24, 2024
4e68d06
Merge pull request #305 from coinbase/add-discord-bot-quickstart
jair-rosa-cb Oct 25, 2024
b68a62d
feat(CDF-3933): Improve discord bot implementation
jair-rosa-cb Oct 29, 2024
e97f70f
Merge pull request #307 from coinbase/fix-discord-tutorial
jair-rosa-cb Oct 29, 2024
bf664a1
feat(CDF-3933): Add Vercel support to discord bot implementation
jair-rosa-cb Oct 30, 2024
bf101a9
feat(CDF-3933): Add Vercel support to discord bot implementation
jair-rosa-cb Oct 30, 2024
1b1acf6
Merge pull request #309 from coinbase/stone/async-faucet-tx
alex-stone Oct 30, 2024
f2d0e6b
Prepare v0.10.0 release
alex-stone Oct 31, 2024
bd6e35b
Merge pull request #312 from coinbase/v0.10.0
alex-stone Oct 31, 2024
43ffabd
Merge branch 'master' into discord-bot-vercel
jair-rosa-cb Oct 31, 2024
63614f2
feat(CDF-3933): Fix fauced transaction wait
jair-rosa-cb Oct 31, 2024
afd6b1b
Merge pull request #308 from coinbase/discord-bot-vercel
jair-rosa-cb Oct 31, 2024
ec38dc1
V0.11.0 (#326)
alex-stone Nov 27, 2024
5c0a2a6
chore: Release 0.11.1 with Correlation Data Patch Fix (#328)
John-peterson-coinbase Dec 2, 2024
e343f7c
Update fund and quoteFund interfaces to take objects and added listFu…
rohan-agarwal-coinbase Dec 4, 2024
102e6c1
Prepping release for 0.11.2 hotfix (#332)
rohan-agarwal-coinbase Dec 4, 2024
15696be
first pass implementing wallet address invoke contract input validation
Dec 10, 2024
6e7fe9a
refining test name
Dec 10, 2024
6b7b616
changelog
Dec 10, 2024
7deb989
reverting formatting
Dec 10, 2024
9cba1ab
Merge pull request #337 from coinbase/christopher.gerber/feat/wallet-…
stat Dec 10, 2024
5842b30
chore: release 0.11.3
stat Dec 10, 2024
e9ccb2c
chore: Update quickstart template with faucet handling (#340)
alex-stone Dec 16, 2024
343e123
Release v0.13.0 (#352)
0xRAG Dec 19, 2024
10a646a
release v0.14.0 (#361)
0xRAG Jan 14, 2025
87e76c3
chore: update docs (#360)
0xRAG Jan 15, 2025
4477a1e
chore: Allow Specified Network ID on Mnemonic Phrase Wallet Import (#…
John-peterson-coinbase Jan 17, 2025
fc7feca
chore: Release 0.14.1 (#364)
John-peterson-coinbase Jan 17, 2025
277daf2
Release 0.15.0 (#366)
rohan-agarwal-coinbase Jan 17, 2025
276a88b
chore: fixed casing error for asset ids
milan-cb Jan 23, 2025
baeebbd
added tests for checksummed/non-checksummed addresses
milan-cb Jan 23, 2025
90f89be
unset package.json & package-lock.json changes
milan-cb Jan 23, 2025
0486405
reset package-lock
milan-cb Jan 23, 2025
d140884
fixed linter issue
milan-cb Jan 24, 2025
3da5107
fixed checksummed address in asset_test
milan-cb Jan 24, 2025
8c2494a
updated changelog
milan-cb Jan 24, 2025
eacc64e
added punctunation
milan-cb Jan 24, 2025
20b864c
edited changelog to unreleased
milan-cb Jan 24, 2025
cd78a03
Merge pull request #367 from coinbase/milan/PSDK-894
milan-cb Jan 24, 2025
f2d5acc
chore: added USDC gasless transfer e2e test
milan-cb Jan 26, 2025
f8eda8a
updated CHANGELOG
milan-cb Jan 27, 2025
a89d6a5
added transferAmount constant
milan-cb Jan 28, 2025
548e3ac
Merge pull request #369 from coinbase/milan/PSDK-821
milan-cb Jan 28, 2025
d5874d8
updated pacakges and changelog for release
milan-cb Jan 28, 2025
0b31a3b
fixed changelog
milan-cb Jan 28, 2025
9a92efa
Merge branch 'v0.16.0' of github.com:coinbase/coinbase-sdk-nodejs int…
milan-cb Jan 28, 2025
43350f9
reverted extra added section in changelog
milan-cb Jan 28, 2025
ee50d33
increased time constraint to 30s for gasless transfer e2e test
milan-cb Jan 28, 2025
b06b15f
added one minute buffer for USDC gasless transfers
milan-cb Jan 28, 2025
d47b713
skipped gasless transfer test
milan-cb Jan 28, 2025
01f8da5
updated docs
milan-cb Jan 28, 2025
db0fad0
Merge pull request #370 from coinbase/milan/v0.16.0-release-prep
milan-cb Jan 28, 2025
b0a7c5f
Merge pull request #371 from coinbase/v0.16.0
milan-cb Jan 29, 2025
542b820
feat: External Transaction Broadcast (#372)
John-peterson-coinbase Feb 1, 2025
7869d5b
Tweak README (#373)
yuga-cb Feb 4, 2025
318e059
added e2e test for transaction receipt & new schemas from cdp-service
milan-cb Feb 9, 2025
4289cb9
uncommented staking tests
milan-cb Feb 9, 2025
5a0ad43
revert timeout for transfer
milan-cb Feb 9, 2025
c5fa097
removed only tag from e2e test
milan-cb Feb 9, 2025
d9e1357
fixing staking tests
milan-cb Feb 9, 2025
b1ca947
fixed staking tests
milan-cb Feb 9, 2025
2189466
removed unneded console logs
milan-cb Feb 9, 2025
22c1798
updated SDK with backend
milan-cb Feb 11, 2025
3873f11
updated contract invocation e2e test
milan-cb Feb 11, 2025
3a61e69
fixing unit tests
milan-cb Feb 11, 2025
6f3312f
add updated openapi spec
milan-cb Feb 12, 2025
769fd14
Merge pull request #375 from coinbase/milan/PSDK-44
milan-cb Feb 13, 2025
9a79b70
update changelog and version
milan-cb Feb 13, 2025
e992529
Merge pull request #378 from coinbase/milan/update-changelog-and-version
milan-cb Feb 13, 2025
ced3019
Merge pull request #379 from coinbase/v0.18.0
milan-cb Feb 13, 2025
3ef64a0
add fix for import
jazz-cb Feb 13, 2025
f296d90
[v0.18.1] fix: wallet import should not fail when addresses are out o…
jazz-cb Feb 14, 2025
d261084
V0.19.0 (#388)
rohan-agarwal-coinbase Feb 21, 2025
f1372ec
Releasing v0.20.0 (#393)
rohan-agarwal-coinbase Feb 25, 2025
1f5b87c
add sleep for faucet and wait for tx length
jazz-cb Feb 27, 2025
886825c
fix: add sleep for faucet and wait for transaction history
jazz-cb Feb 27, 2025
a3ab1a6
Releasing v0.21.0 (#398)
rohan-agarwal-coinbase Feb 28, 2025
67e78f9
chore: use GH Environment for NPM Publication GHA (#402)
John-peterson-coinbase Mar 21, 2025
0779f18
Merge pull request #404 from coinbase/eth-exec-layer-withdrawals
djoyahoy Mar 31, 2025
6630cdf
onboard ethereum testnet Hoodi and update changelog
drohit-cb Apr 2, 2025
328cd95
Merge pull request #405 from coinbase/chore/add-hoodi-support
drohit-cb Apr 2, 2025
647e840
chore: Prep for v0.22.0 release
drohit-cb Apr 2, 2025
110ea20
Merge pull request #406 from coinbase/chore/prep-v0.22-release
drohit-cb Apr 2, 2025
5a9ab35
Merge pull request #407 from coinbase/v0.22.0
drohit-cb Apr 2, 2025
34bba46
chore: fix how options are parsed when not doing native eth unstake v…
djoyahoy Apr 3, 2025
7f40110
feat: unify consensus and execution based withdrawals
drohit-cb Apr 16, 2025
ad42382
Merge pull request #412 from coinbase/feat/add-support-for-consensus-…
drohit-cb Apr 16, 2025
dba5db4
chore: Prep for v0.23.0 release
drohit-cb Apr 16, 2025
8d1924a
Merge pull request #413 from coinbase/chore/prep-for-v0.23.0-release
drohit-cb Apr 17, 2025
26808e5
update version in quickstart template
drohit-cb Apr 17, 2025
95399b9
Merge pull request #414 from coinbase/chore/prep-for-v0.23.0-release
drohit-cb Apr 17, 2025
c07b32d
Merge pull request #415 from coinbase/v0.23.0
drohit-cb Apr 17, 2025
524a572
Update publish.yml (#408)
0xRAG Apr 17, 2025
dda1184
Releasing v0.24.0 (#420)
drohit-cb May 7, 2025
31b3dfe
Releasing v0.25.0 (#427)
drohit-cb Jun 4, 2025
9ea6ca0
Update LICENSE.md
Newportgogogadit Jun 26, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"rules": {
"multiline-comment-style": ["error", "starred-block"],
"prettier/prettier": "error",
"@typescript-eslint/member-ordering": "error",
"jsdoc/tag-lines": ["error", "any", { "startLines": 1 }],
"jsdoc/check-alignment": "error",
"jsdoc/no-undefined-types": "off",
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ jobs:
NAME: ${{ secrets.NAME }}
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
WALLET_DATA: ${{ secrets.WALLET_DATA }}
STAKE_API_KEY_NAME: ${{ secrets.NAME }}
STAKE_API_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
STAKE_ADDRESS_ID_1: ${{ secrets.STAKE_ADDRESS_ID_1 }}
STAKE_ADDRESS_ID_2: ${{ secrets.STAKE_ADDRESS_ID_2 }}
STAKE_VALIDATOR_ADDRESS_1: ${{ secrets.STAKE_VALIDATOR_ADDRESS_1 }}
run: npm run test:dry-run && npm run test:e2e
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: Publish Package to NPM
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
environment: npm
permissions:
contents: read
id-token: write
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ dist
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode
.vscode-test

# yarn v2
Expand All @@ -132,3 +133,8 @@ dist
.pnp.*
.DS_Store
**/*_local*

.idea

quickstart-template/node_modules
quickstart-template/wallet-array.csv
294 changes: 294 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,299 @@
# Coinbase Node.js SDK Changelog

## Unreleased

## [0.25.0] - 2025-06-04

### Removed

- Removed support for network Holesky. It has been replaced by Hoodi.

## [0.24.0] - 2025-05-06

- Add support for execution layer consolidations post Pectra.

## [0.23.0] - 2025-04-16

- Add support for both consensus and execution based withdrawals post-pectra.

## [0.22.0] - 2025-04-02

- Add `ExecutionLayerWithdrawalOptionsBuilder` to allow for native ETH execution layer withdrawals as defined in https://eips.ethereum.org/EIPS/eip-7002.
- Add `Hoodi` network support.

## [0.21.0] - 2025-02-28

- Add `getWithdrawalCredentials` getter for `Validator` object to expose withdrawal credentials of an Ethereum validator.

## [0.20.0] - 2025-02-25

### Added
- Add support for Ed25519 API keys.

## [0.19.0] - 2025-02-21
### Added
- Ability to create a SmartWallet and send a user operation.
- Add `EURC` and `cbBTC` asset support.

## [0.18.1] - 2025-02-13

### Fixed
- Fixed a bug where import_wallet would fail if the address list was not being sorted by index.

## [0.18.0] - 2025-02-13

### Added
- Add `TransactionReceipt` and `TransactionLog` to contract invocation response.

## [0.17.0] - 2025-02-01

### Added
- Add `broadcastExternalTransaction` method to `ExternalAddress` to broadcast an external transaction.

## [0.16.0] - 2025-01-28

### Added
- Add E2E test for gasless transfers `Wallet.createTransfer({..., gasless: true})`

### Fixed
- Fixed a bug where non-checksummed asset IDs were throwing an error.

## [0.15.0] - 2025-01-17

### Added

- Add `deployContract` method to `WalletAddress` and `Wallet` to deploy an arbitrary contract.

## [0.14.1] - 2025-01-17

### Fixed

- Allow wallet mnemonic seed import to optionally accept `networkId` input argument.

## [0.14.0] - 2025-01-14

### Added
- Add `skipBatching` option to `Wallet.createTransfer` to allow for lower latency gasless transfers.

## [0.13.0] - 2024-12-19

### Added
- Add support for registering, updating, and listing smart contracts that are
deployed external to CDP.
- Add support for fetching address reputation
- Add `reputation` method to `Address` to fetch the reputation of the address
- Add `networkId` to `WalletData` so that it is saved with the seed data and surfaced via the export function
- Add ability to import external wallets into CDP via a BIP-39 mnemonic phrase, as a 1-of-1 wallet
- Add ability to import WalletData files exported by the Python CDP SDK
- Add getters for `Validator` object to expose more data to users.
- Add test file for `Validator` object.

### Deprecated
- Deprecate `Wallet.loadSeed()` method in favor of `Wallet.loadSeedFromFile()`
- Deprecate `Wallet.saveSeed()` method in favor of `Wallet.saveSeedToFile()`

## [0.12.0] - Skipped

### [0.11.3] - 2024-12-10

### Added

- Wallet address contract invocation input validation for payable contracts.

### [0.11.2] - 2024-12-04

### Added

- Add `listFundOperations` method to `Wallet` and `WalletAddress` to list the fund operations associated with the wallet or address.
- Updated `fund` and `quoteFund` methods to take `CreateFundOptions` object instead of individual parameters.

## [0.11.1] - 2024-11-29

### Fixed
- Support setting `source` and `sourceVersion` correlation data via `Coinbase.configure()`

## [0.11.0] - 2024-11-27

### Added
- Add support for funding wallets (Alpha feature release)
- Must reach out to CDP SDK Discord channel to be considered for this feature.
- Add `rlp_encoded_tx` field to `EthereumTransaction` interface
- Added create and update feature for `SmartContractEventActivity` webhook and its related event type filter.

### Fixed
- Fixed a bug where the asset ID was not being set correctly for Gwei and Wei

## [0.10.0] - 2024-10-31

### Added
- Add support for async faucet transactions i.e. using `faucetTx.wait()` to wait for the transaction to be confirmed.

## [0.9.1] - 2024-10-18

### Fixed
- Fixed a bug where readContract was not working for nested types

## [0.9.0] - 2024-10-17

### Added
- Support for readContract to read from smart contracts

## [0.8.1] - 2024-10-09

### Fixed
- Fixed a bug that overwrites existing webhook notification URI when only updating a webhook's addresses

## [0.8.0] - 2024-10-04

### Added
- Explicit paginated list methods for listing `Wallet`, `Transfer`, `Transaction`, `Webhook`, `PayloadSignature`, and `HistoricalBalance`.

### Breaking
- `Webhook#update` now takes an Object of `{notificationUri, eventTypeFilter}` instead of `notificationUri` string
- list methods for listing `Wallet`, `Transfer`, `Transaction`, `Webhook`, `PayloadSignature`, and `HistoricalBalance` now take `PaginationOptions` and return `PaginationResponse<T>`

## [0.7.0] - 2024-09-26

### Added
- Add `deployNFT` method to `WalletAddress` and `Wallet` to deploy an ERC721, updated `SmartContract` class to support deployment and fetching contract details
- Add `deployMultiToken` method to `WalletAddress` and `Wallet` to deploy an ERC1155, updated `SmartContract` class to support deployment and fetching contract details
- Add `createWebhook` method to `Wallet` to deploy a wallet activity webhook, updated `Webhook` class to disallow users from specifying webhook signature. Webhook signature is now generated by the API.

## [0.6.1] - 2024-09-23

### Added
- Export all missing types in `src/index`

## [0.6.0] - 2024-09-18

### Added
- Add `deployToken` method to `WalletAddress` and `Wallet` to deploy an ERC20, updated `SmartContract` class to support deployment and fetching contract details
- Add SOL asset support
- Fix a bug where large numbers were being returned in scientific notation

### Breaking
- `Asset#toAtomicAmount` now returns a BigInt instead of a Decimal

## [0.5.1] - 2024-09-12

### Fixed
- Fixed a bug that blocked arbitrum mainnet wallets from being created

## [0.5.0] - 2024-09-11

- Add Arbitrum-Mainnet support for Native transfers.
- Add `Coinbase.configure` method to allow for configuration of the SDK and marked constructor as deprecated.
- Return correlation ID from APIError response
- Add optional fields to `CreateContractInvocationOptions` to set amount for payable contract method invocations
- Add a `StakingRewardFormat` enum to allow for specifying the format in which staking rewards should be returned.

## [0.4.0] - 2024-09-06

### Changed
- `getDefaultAddress` wallet method updated to return a promise, and `getAddress` wallet methods now return a promise and `WalletAddress` instead of `Address`. Both functions will now fetch addresses for the wallet if they haven't been loaded.

## [0.3.0] - 2024-09-05

### Added

- Add support for list address transactions.
- Add support for exporting the private key of a `WalletAddress`
- Add support for creating arbitrary payload signatures.
- Add support for invoking Smart Contracts using MPC and Developer-managed Wallets.

## [0.2.0]

### Added

- USDC Faucet support on Base Sepolia
- Improved error messages for `InternalError`

## [0.1.1] - 2024-08-27

- Fixed a bug where `listHistoricalBalances` method was parsing conventional ETH balances instead of atomic units

## [0.1.0] - 2024-08-22

### Added

- Add `listHistoricalBalances` wallet method, that lists the historical balances for the wallet's default address.
- Add toAddressId() method to Transaction class

### Removed

- Remove user concept from the SDK
- Remove "pending" status from StakingOperationStatusEnum
- Add staking operation class helper methods like `isTerminalState`, `isFailedState` and `isCompleteState`.
- Add validator status enum

### Changed

- The `createTransfer` and `createTrade` functions no longer wait for the transactions to confirm or
fail on-chain.
- Now they return a `Transfer` and `Trade` object respectively, which support the `wait`
function, e.g. `await transfer.wait()`.
- This ensures that the developer has a reference to the object in case there is a timeout while
waiting to land on-chain.
- Update `reload()` method to work with both External and Wallet address.
- Update `createStakingOperation` logic to make sure we only pull in newer unsigned txs from the server.
This is especially important for External Address use-case where tx signing and broadcast status is maintained on client side, and we risk overwriting the existing txs.
- Increase default timeout for `createStakingOperation` to 10 min.

## [0.0.16] - 2024-08-14

### Added

- Add Function `listHistoricalBalances` for `Address` for fetching historical balances for an asset
- Support for retrieving historical staking balances information
- USD value conversion details to the StakingReward object
- Gasless USDC Sends
- Support for Ethereum-Mainnet and Polygon-Mainnet

## [0.0.15] - 2024-08-12

### Changed

- Fixed `Wallet` address hydration for `Wallet.import`

## [0.0.14] - 2024-08-05

### Added

- Support for Shared ETH Staking for Wallet Addresses

### Changed

- `unsigned_payload`, `signed_payload`, `status`, and `transaction_hash` in-line fields on `Transfer` are deprecated in favor of those on `Transaction`

## [0.0.13] - 2024-07-30

### Added

- Support for trade with MPC Server-Signer
- `CreateTradeOptions` type

## [0.0.12] - 2024-07-24

### Changed
- Expose `Validator` class

## [0.0.11] - 2024-07-24

### Changed
- Fixed signer wallets signing flow

## [0.0.10] - 2024-07-23

### Added

- Add support for Dedicated ETH Staking for external addresses
- Add support for listing validator details and fetch details of a specific validator

### Changed
- Improved accessibility for `StakingReward` and `StakingOperation` classes
- Fixed a bug with `StakingOperation.sign` method, where we were not properly waiting on a Promise
- Changed `buildStakeOperation`, `buildUnstakeOperation`, and `buildClaimRewardsOperation` to take `mode` as an explicit parameter optional parameter

## [0.0.9] - 2024-06-26

### Added
Expand Down
Loading