Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
94680a6
chore: Bump OpenAPI client and resolve type changes
alex-stone Dec 17, 2024
5832709
feat: Add reputation score for an address
arpitsrivastava-cb Dec 17, 2024
091f9b3
feat: Address review comment
arpitsrivastava-cb Dec 17, 2024
3f1a2bd
feat: Update version
arpitsrivastava-cb Dec 17, 2024
36a7e1b
feat: Address review comment
arpitsrivastava-cb Dec 17, 2024
3d1a9e0
fix: add more test
arpitsrivastava-cb Dec 17, 2024
41598bf
feat: Address review comment
arpitsrivastava-cb Dec 17, 2024
69e76f8
fix: test description
arpitsrivastava-cb Dec 17, 2024
e2e7876
Merge pull request #342 from coinbase/add-reputation-score
arpitsrivastava-cb Dec 17, 2024
b30e18b
Add extra support for more getters for the Validator class
marcin-cb Dec 17, 2024
66e08cc
Lint fixes and revert toString method back to original
marcin-cb Dec 17, 2024
abc5ac2
Update CHANGELOG
marcin-cb Dec 17, 2024
698d8ca
Add validator tests for getters
marcin-cb Dec 17, 2024
63032fa
Update CHANGELOG with validator test file line item
marcin-cb Dec 17, 2024
5dae1b3
Merge pull request #344 from coinbase/marcin/validator-details
marcin-cb Dec 17, 2024
ffa8518
chore: add networkId to WalletData
0xRAG Dec 17, 2024
8bcc11f
Merge pull request #343 from coinbase/PSDK-640
0xRAG Dec 18, 2024
dbd33ff
chore: make network_id in WalletData optional (#348)
0xRAG Dec 18, 2024
31e5ef8
Support register/update/list Smart Contract
jianlunz-cb Dec 18, 2024
c5e60de
address comment
jianlunz-cb Dec 18, 2024
292d4e6
address
jianlunz-cb Dec 18, 2024
e0dedc5
fix lint
jianlunz-cb Dec 18, 2024
f27028d
update
jianlunz-cb Dec 18, 2024
4246f4a
fix typo
jianlunz-cb Dec 18, 2024
148edb4
Merge pull request #349 from coinbase/smart_contract
jianlunz-cb Dec 19, 2024
56f7a6d
feat: Modify Smart Contract API input and add more tests
jianlunz-cb Dec 19, 2024
a50d751
Merge pull request #350 from coinbase/contract_test
jianlunz-cb Dec 19, 2024
ac9d252
feat(PSDK-670): Support external wallet imports, wallet imports from …
derek-cb Dec 19, 2024
42ce69d
chore: bump version to v0.13.0 (#351)
0xRAG Dec 19, 2024
dc5b8c0
chore: fix changelog (#353)
0xRAG Dec 19, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,23 @@
# Coinbase Node.js SDK Changelog

## Unreleased
## [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

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,13 +201,13 @@ For convenience during testing, we provide a `saveSeed` method that stores the w

```typescript
const seedFilePath = "";
wallet.saveSeed(seedFilePath);
wallet.saveSeedToFile(seedFilePath);
```

To encrypt the saved data, set encrypt to true. Note that your CDP API key also serves as the encryption key for the data persisted locally. To re-instantiate wallets with encrypted data, ensure that your SDK is configured with the same API key when invoking `saveSeed` and `loadSeed`.

```typescript
wallet.saveSeed(seedFilePath, true);
wallet.saveSeedToFile(seedFilePath, true);
```

The below code demonstrates how to re-instantiate a Wallet from the data export.
Expand All @@ -221,7 +221,7 @@ To import Wallets that were persisted to your local file system using `saveSeed`

```typescript
const userWallet = await Wallet.fetch(wallet.getId());
await userWallet.loadSeed(seedFilePath);
await userWallet.loadSeedFromFile(seedFilePath);
```


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.

2 changes: 1 addition & 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.11.3",
"version": "0.13.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion quickstart-template/bridge-usdc.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async function getTransactionReceipt(txHash) {
async function fetchWalletAndLoadSeed(walletId, seedFilePath) {
try {
const wallet = await Wallet.fetch(walletId);
await wallet.loadSeed(seedFilePath);
await wallet.loadSeedFromFile(seedFilePath);

console.log(`Successfully loaded funded wallet: `, wallet.getId());
return wallet;
Expand Down
2 changes: 1 addition & 1 deletion quickstart-template/discord_tutorial/webhook-transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const webhookNotificationUri = process.env.WEBHOOK_NOTIFICATION_URL;
// Create Wallet
else {
myWallet = await Wallet.create();
const saveSeed = myWallet.saveSeed(seedPath);
const saveSeed = myWallet.saveSeedToFile(seedPath);
console.log("✅ Seed saved: ", saveSeed);
}

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.11.2",
"@coinbase/coinbase-sdk": "^0.13.0",
"csv-parse": "^5.5.6",
"csv-writer": "^1.6.0",
"viem": "^2.21.6"
Expand Down
2 changes: 1 addition & 1 deletion quickstart-template/register-basename.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ async function registerBaseName(wallet, registerArgs) {
async function fetchWalletAndLoadSeed(walletId, seedFilePath) {
try {
const wallet = await Wallet.fetch(walletId);
await wallet.loadSeed(seedFilePath);
await wallet.loadSeedFromFile(seedFilePath);

console.log(`Successfully loaded funded wallet: `, wallet);
return wallet;
Expand Down
Loading
Loading