Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V0.0.9 #79

Merged
merged 82 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from 59 commits
Commits
Show all changes
82 commits
Select commit Hold shift + click to select a range
e518261
Add staking actions to Platform SDK for Ethereum Kiln
marcin-cb Jun 13, 2024
4b83df3
Renaming functions to be getters explicitly
marcin-cb Jun 14, 2024
d48a5ca
Revert to get methods, use configuration type for staking operations …
marcin-cb Jun 17, 2024
f7c24a9
fixing existing test cases
marcin-cb Jun 17, 2024
76dc87e
Adding test cases for external address
marcin-cb Jun 17, 2024
6b13b17
Added comments on functions for external address
marcin-cb Jun 17, 2024
c53e082
Rebase changes
marcin-cb Jun 18, 2024
2142fa0
Test cases fix
marcin-cb Jun 18, 2024
4a348dd
Add StakingOperation class
marcin-cb Jun 18, 2024
d910ec3
Remove options processor
marcin-cb Jun 20, 2024
f1a95c0
Rectifying merge conflicts after rebasing
marcin-cb Jun 20, 2024
3d22624
Address comments: renaming to WalletAddress, added test case fixes
marcin-cb Jun 20, 2024
b649a2b
Updating common.ts generated file
marcin-cb Jun 20, 2024
285b817
Remove underscores in class variables, minor fixes
marcin-cb Jun 20, 2024
16b9912
Test case name fix
marcin-cb Jun 20, 2024
d9b64ba
Add missing test cases to wallet address
marcin-cb Jun 20, 2024
c03161c
Example usage of keys
erdimaden Jun 20, 2024
c868a47
Adding external wallet balances and faucet requests
erdimaden Jun 20, 2024
a813ddb
Updating docs
erdimaden Jun 20, 2024
5cec4ce
Updated comments
marcin-cb Jun 21, 2024
9aa2aee
Updated test cases to increase branch coverage
marcin-cb Jun 21, 2024
59092c1
Comment fix
marcin-cb Jun 21, 2024
8dd5cc8
Renamed balance functions
marcin-cb Jun 21, 2024
e2a269c
Readding changes minus common generated file
marcin-cb Jun 21, 2024
955db5c
Merge pull request #67 from coinbase/marcin/external-address-staking
marcin-cb Jun 21, 2024
156de87
Merge branch 'v0.0.9' into feature/external-wallet-balances
erdimaden Jun 21, 2024
ada892d
[chore] Re-Export Types (#76)
John-peterson-coinbase Jun 21, 2024
97f0fcd
Merge pull request #75 from coinbase/feature/external-wallet-balances
erdimaden Jun 21, 2024
460e725
[chore] CreateTransferOptions type for createtransfer (#77)
John-peterson-coinbase Jun 21, 2024
0488d5d
Bump ws and ethers
dependabot[bot] Jun 20, 2024
34f0edc
Merge pull request #74 from coinbase/dependabot/npm_and_yarn/multi-d3…
erdimaden Jun 21, 2024
ce1cecb
Add Staking Rewards to SDK
marcin-cb Jun 21, 2024
935aeaa
Simplify list method
marcin-cb Jun 21, 2024
6dd72ef
Finalized changes for listing staking rewards
marcin-cb Jun 21, 2024
c9e982f
Adding missing function comments
marcin-cb Jun 21, 2024
2030808
Adding test cases
marcin-cb Jun 22, 2024
a985d2a
Test cases + lint fixes
marcin-cb Jun 22, 2024
239fccf
Set signed payload when signing and increase test coverage to 100% fo…
marcin-cb Jun 23, 2024
f832f0b
Adding coverage requirements
erdimaden Jun 23, 2024
c0fadc8
Increased code coverage for wallet address, staking operation, and ad…
marcin-cb Jun 24, 2024
ca608cc
Updating Package json
erdimaden Jun 24, 2024
d7036a4
v0.0.9 ChangeLog updatesg
erdimaden Jun 24, 2024
139e347
Update assetId to use primary denomination and add getTransactions fu…
marcin-cb Jun 24, 2024
a27e21c
Update signed payload to keep the 0x prefix in the Transaction class
marcin-cb Jun 24, 2024
d7bbbb0
Add normalized network function for rewards requests
marcin-cb Jun 24, 2024
07dc498
Export classes in index
marcin-cb Jun 24, 2024
409127e
Adding dynamic transaction links for faucet class
erdimaden Jun 24, 2024
67cd1b8
Merge pull request #80 from coinbase/marcin/staking-rewards
marcin-cb Jun 24, 2024
9a687e5
Fixing test cases
erdimaden Jun 24, 2024
05e9f92
Merge pull request #83 from coinbase/feat/dynamic-faucet-transaction-…
erdimaden Jun 24, 2024
0f90bd5
Updating Console.log usage in examples
erdimaden Jun 24, 2024
6fde143
Update CHANGELOG.md
erdimaden Jun 24, 2024
cc8bd78
Merge pull request #84 from coinbase/chore/updating-console-log-usage…
erdimaden Jun 24, 2024
af4e803
Merge pull request #82 from coinbase/feat/0.0.9-changelog-updates
erdimaden Jun 24, 2024
b6d3466
Merge pull request #81 from coinbase/feat/package-0.0.9-update
erdimaden Jun 24, 2024
e2799b3
Updating createTransfer example
erdimaden Jun 25, 2024
e7e5924
Bump ws and ethers
dependabot[bot] Jun 25, 2024
6a885a3
Updating sign return
erdimaden Jun 25, 2024
ec8edf8
Merge pull request #85 from coinbase/dependabot/npm_and_yarn/multi-d3…
erdimaden Jun 25, 2024
e9aad52
Adding Wallet fetching functionality
erdimaden Jun 25, 2024
8788130
Changing masternode to setMasterNode
erdimaden Jun 25, 2024
c002a44
Updating method orders in wallet class
erdimaden Jun 25, 2024
5906e7c
Merge branch 'v0.0.9' into feat/wallet-fetching-and-listing
erdimaden Jun 25, 2024
68ca16a
Adding comment for the sign method
erdimaden Jun 25, 2024
4564ae2
Updating Wallet class method order
erdimaden Jun 25, 2024
8a16777
updating e2e tests
erdimaden Jun 26, 2024
ecb4bb5
Updating toString usage in examples
erdimaden Jun 26, 2024
7ae3cd9
Use balance objects for staking context
marcin-cb Jun 26, 2024
75055d0
Remove print statement
marcin-cb Jun 26, 2024
b2f8b7c
Updating generated file common.ts
marcin-cb Jun 26, 2024
661c4de
updated calling by key name directly for staking context balances res…
marcin-cb Jun 26, 2024
475e792
Merge pull request #87 from coinbase/feat/v0.0.9-updating-examples
erdimaden Jun 26, 2024
c1d4130
updating wallet listAddresses usage
erdimaden Jun 26, 2024
072fdf9
Merge branch 'v0.0.9' into feat/wallet-fetching-and-listing
erdimaden Jun 26, 2024
ec14c3a
reverting createWallet changes
erdimaden Jun 26, 2024
807988d
Removing async usage from init
erdimaden Jun 26, 2024
5a016b5
updating docs
erdimaden Jun 26, 2024
bb08d1f
Add expected parameter values for staking context calls in test cases
marcin-cb Jun 26, 2024
f6a4cf4
Merge pull request #88 from coinbase/marcin/balance-obj
marcin-cb Jun 26, 2024
f60fc8b
Merge branch 'v0.0.9' into feat/wallet-fetching-and-listing
erdimaden Jun 26, 2024
4d63379
Removing await usage
erdimaden Jun 26, 2024
3020fee
Merge pull request #86 from coinbase/feat/wallet-fetching-and-listing
erdimaden Jun 26, 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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Coinbase Node.js SDK Changelog

## [0.0.9] - 2024-06-24

### Added

- `CreateTransferOptions` type
- Support external addresses for balance fetching and requesting faucet funds.
- Support for building staking operations
- Support for retrieving staking rewards information

## [0.0.8] - 2024-06-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ console.log(`Faucet transaction: ${faucetTransaction}`);
// Create a new Wallet to transfer funds to.
// Then, we can transfer 0.00001 ETH out of the Wallet to another Wallet.
const anotherWallet = await user.createWallet();
const transfer = await wallet.createTransfer(0.00001, Coinbase.assets.Eth, anotherWallet);
const transfer = await wallet.createTransfer({ amount: 0.00001, assetId: Coinbase.assets.Eth, destination: anotherWallet });
```


Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {
verbose: true,
maxWorkers: 1,
coverageThreshold: {
global: {
"./src/coinbase/**": {
branches: 80,
functions: 90,
statements: 95,
Expand Down
58 changes: 46 additions & 12 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.0.8",
"version": "0.0.9",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
Expand Down
14 changes: 10 additions & 4 deletions src/client/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export interface CreateWalletRequestWallet {
'use_server_signer'?: boolean;
}
/**
*
* The faucet transaction
* @export
* @interface FaucetTransaction
*/
Expand All @@ -373,6 +373,12 @@ export interface FaucetTransaction {
* @memberof FaucetTransaction
*/
'transaction_hash': string;
/**
* Link to the transaction on the blockchain explorer.
* @type {string}
* @memberof FaucetTransaction
*/
'transaction_link': string;
}
/**
* Features that can be enabled for a wallet
Expand Down Expand Up @@ -825,11 +831,11 @@ export type StakingContextContext = PartialEthStakingContext;
*/
export interface StakingOperation {
/**
*
* @type {Transaction}
* The transaction(s) that will execute the staking operation onchain
* @type {Array<Transaction>}
* @memberof StakingOperation
*/
'transaction': Transaction;
'transactions': Array<Transaction>;
}
/**
* The staking rewards for an address
Expand Down
Loading
Loading