Skip to content

Commit

Permalink
V0.11.0 (#326)
Browse files Browse the repository at this point in the history
* Update staking API client for updated openapi spec (#316)

* Fix Asset fromModel bug to use passed in asset_id when initializing (#317)

* feat: update client to include rlp_encoded_tx field within EthereumTransaction

* add staking e2e tests

* feat: Add source & source version attribution

This adds the source & source version attribution handling.

This makes it so that when configuring the SDK, the `source` and
`sourceVersion` can be configured and passed through as correlation
context for attribution on the backend.

This will make it so we can easily attribute AgentKit requests to
the specific version.

* Support for fund and quote_fund for wallet funding (#322)

* chore: Add source/source version to configure from JSON

* chore: update stake build test to use mainnet to reduce falkiness observed on testnet

* chore: Prep v0.11.0 release

---------

Co-authored-by: rohan-agarwal-coinbase <[email protected]>
Co-authored-by: Rohit Durvasula <[email protected]>
Co-authored-by: Rohit Durvasula <[email protected]>
Co-authored-by: Howard Xie <[email protected]>
Co-authored-by: cb-howardatcb <[email protected]>
  • Loading branch information
6 people authored Nov 27, 2024
1 parent afd6b1b commit ec38dc1
Show file tree
Hide file tree
Showing 38 changed files with 4,902 additions and 2,457 deletions.
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.STAKE_API_KEY_NAME }}
STAKE_API_PRIVATE_KEY: ${{ secrets.STAKE_API_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
13 changes: 12 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,17 @@

## Unreleased

## [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
Expand Down Expand Up @@ -36,7 +47,7 @@
### 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.
- 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

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "ISC",
"description": "Coinbase Platform SDK",
"repository": "https://github.com/coinbase/coinbase-sdk-nodejs",
"version": "0.10.0",
"version": "0.11.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand All @@ -16,6 +16,7 @@
"test": "npx jest --no-cache --testMatch=**/*_test.ts",
"test:dry-run": "npm install && npm ci && npm publish --dry-run",
"test:e2e": "npx jest --no-cache --testMatch=**/e2e.ts --coverageThreshold '{}'",
"test:e2e:stake": "npx jest --no-cache --testMatch=**/e2e.ts --coverageThreshold '{}' -t Stake",
"test:types": "tsd --files src/tests/types.test-d.ts",
"clean": "rm -rf dist/*",
"build": "tsc",
Expand Down
2 changes: 1 addition & 1 deletion quickstart-template/discord_tutorial/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"description": "",
"type": "module",
"dependencies": {
"@coinbase/coinbase-sdk": "^0.10.0",
"@coinbase/coinbase-sdk": "^0.11.0",
"axios": "^1.7.7",
"body-parser": "^1.20.3",
"dotenv": "^16.4.5",
Expand Down
2 changes: 1 addition & 1 deletion quickstart-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"dependencies": {
"@solana/web3.js": "^2.0.0-rc.1",
"bs58": "^6.0.0",
"@coinbase/coinbase-sdk": "^0.10.0",
"@coinbase/coinbase-sdk": "^0.11.0",
"csv-parse": "^5.5.6",
"csv-writer": "^1.6.0",
"viem": "^2.21.6"
Expand Down
Loading

0 comments on commit ec38dc1

Please sign in to comment.