Skip to content

Commit f9fb973

Browse files
authored
[V0.5.0] Release v0.5.0 coinbase#234
[V0.5.0] Release v0.5.0
2 parents 2e5ff3e + cdd2ee7 commit f9fb973

File tree

369 files changed

+2849
-1808
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

369 files changed

+2849
-1808
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ dist
122122
.tern-port
123123

124124
# Stores VSCode versions used for testing VSCode extensions
125+
.vscode
125126
.vscode-test
126127

127128
# yarn v2
@@ -136,4 +137,4 @@ dist
136137
.idea
137138

138139
quickstart-template/node_modules
139-
quickstart-template/wallet-array.csv
140+
quickstart-template/wallet-array.csv

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Coinbase Node.js SDK Changelog
22

3-
## Unreleased
3+
## Unreleased
4+
5+
## [0.5.0] - 2024-09-11
6+
7+
- Add Arbitrum-Mainnet support for Native transfers.
8+
- Add `Coinbase.configure` method to allow for configuration of the SDK and marked constructor as deprecated.
9+
- Return correlation ID from APIError response
10+
- Add optional fields to `CreateContractInvocationOptions` to set amount for payable contract method invocations
11+
- Add a `StakingRewardFormat` enum to allow for specifying the format in which staking rewards should be returned.
412

513
## [0.4.0] - 2024-09-06
614

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ const apiKeyName = "Copy your API Key name here.";
7979

8080
const privateKey = "Copy your API Key's private key here.";
8181

82-
const coinbase = new Coinbase({ apiKeyName: apiKeyName, privateKey: privateKey });
82+
Coinbase.configure({ apiKeyName: apiKeyName, privateKey: privateKey });
8383
```
8484

8585
If you are using a CDP Server-Signer to manage your private keys, enable it with the constuctor option:
8686
```typescript
87-
const coinbase = new Coinbase({ apiKeyName: apiKeyName, privateKey: apiKeyPrivateKey, useServerSigner: true })
87+
Coinbase.configure({ apiKeyName: apiKeyName, privateKey: apiKeyPrivateKey, useServerSigner: true })
8888
```
8989

9090
Another way to initialize the SDK is by sourcing the API key from the json file that contains your API key, downloaded from CDP portal.
9191

9292
```typescript
93-
const coinbase = Coinbase.configureFromJson({ filePath: "path/to/your/api-key.json" });
93+
Coinbase.configureFromJson({ filePath: "path/to/your/api-key.json" });
9494
```
9595

9696
This will allow you to authenticate with the Platform APIs.
@@ -99,7 +99,7 @@ CommonJs:
9999

100100
```javascript
101101
const { Coinbase, Wallet } = require("@coinbase/coinbase-sdk");
102-
const coinbase = Coinbase.configureFromJson("path/to/your/api-key.json");
102+
Coinbase.configureFromJson("path/to/your/api-key.json");
103103

104104
// List all Wallets for the CDP Project.
105105
Wallet.listWallets().then(wallets => {
@@ -111,7 +111,7 @@ Or using ES modules and async/await:
111111

112112
```typescript
113113
import { Coinbase, Wallet } from "@coinbase/coinbase-sdk";
114-
const coinbase = Coinbase.configureFromJson("path/to/your/api-key.json");
114+
Coinbase.configureFromJson("path/to/your/api-key.json");
115115

116116
// List all Wallets for the CDP Project.
117117
const wallets = await Wallet.listWallets();

docs/assets/navigation.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)