@coinbase-sample/prime-sdk-ts 0.10.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Coinbase Prime API TypeScript SDK
2
2
 
3
+ > **Deprecation notice:** Development of this SDK has moved to the [Coinbase GitHub organization](https://github.com/coinbase/prime-sdk-ts). Use [coinbase/prime-sdk-ts](https://github.com/coinbase/prime-sdk-ts) for the current source, issues, and releases. This `coinbase-samples` repository remains for historical reference; new work should target the Coinbase org repository.
4
+
3
5
  [![npm version](https://badge.fury.io/js/%40coinbase-sample%2Fprime-sdk-ts.svg)](https://badge.fury.io/js/%40coinbase-sample%2Fprime-sdk-ts)
4
6
  [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
5
7
 
package/dist/constants.js CHANGED
@@ -16,7 +16,7 @@ exports.DEFAULT_MAX_ITEMS = exports.DEFAULT_MAX_PAGES = exports.DEFAULT_PAGINATI
16
16
  * See the License for the specific language governing permissions and
17
17
  * limitations under the License.
18
18
  */
19
- exports.VERSION = '0.10.0';
19
+ exports.VERSION = '0.10.1';
20
20
  exports.API_BASE_PATH = 'https://api.prime.coinbase.com/v1/';
21
21
  exports.USER_AGENT = 'coinbase-prime-ts/' + exports.VERSION;
22
22
  exports.CB_ACCESS_KEY_HEADER = 'X-CB-ACCESS-KEY';
@@ -53,9 +53,6 @@ const constants_1 = require("../constants");
53
53
  const crypto = __importStar(require("crypto"));
54
54
  class CoinbasePrimeCredentials {
55
55
  constructor(key, secret, passphrase) {
56
- if (!key || !secret || !passphrase) {
57
- console.log('Could not authenticate. Only public endpoints accessible.');
58
- }
59
56
  this.accessKey = key;
60
57
  this.secretKey = secret;
61
58
  this.passphrase = passphrase;
@@ -13,7 +13,7 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- export declare const VERSION = "0.10.0";
16
+ export declare const VERSION = "0.10.1";
17
17
  export declare const API_BASE_PATH = "https://api.prime.coinbase.com/v1/";
18
18
  export declare const USER_AGENT: string;
19
19
  export declare const CB_ACCESS_KEY_HEADER = "X-CB-ACCESS-KEY";
@@ -15,7 +15,7 @@
15
15
  */
16
16
  import { Brand } from '../shared/brand';
17
17
  import { BasePaginatedRequest, PaginatedResponseMethods } from '../shared/paginatedResponse';
18
- import { StakingInitiateResponse, StakingInitiateRequest, StakingUnstakeResponse, PortfolioStakingInitiateRequest, PortfolioStakingInitiateResponse, PortfolioStakingUnstakeRequest, PortfolioStakingUnstakeResponse, ListTransactionValidatorsResponse as internalListTransactionValidatorsResponse, StakingClaimRewardsRequest as internalStakingClaimRewardsRequest, StakingClaimRewardsResponse as internalStakingClaimRewardsResponse, PreviewUnstakeResponse as internalPreviewUnstakeResponse, GetUnstakingStatusResponse as internalGetUnstakingStatusResponse, GetStakingStatusResponse as internalGetStakingStatusResponse } from 'src/model/';
18
+ import { StakingInitiateResponse, StakingInitiateRequest, StakingUnstakeResponse, PortfolioStakingInitiateRequest, PortfolioStakingInitiateResponse, PortfolioStakingUnstakeRequest, PortfolioStakingUnstakeResponse, ListTransactionValidatorsResponse as internalListTransactionValidatorsResponse, StakingClaimRewardsRequest as internalStakingClaimRewardsRequest, StakingClaimRewardsResponse as internalStakingClaimRewardsResponse, PreviewUnstakeResponse as internalPreviewUnstakeResponse, GetUnstakingStatusResponse as internalGetUnstakingStatusResponse, GetStakingStatusResponse as internalGetStakingStatusResponse } from '../model/';
19
19
  export type CreateStakeRequest = StakingInitiateRequest & {
20
20
  portfolioId: string;
21
21
  walletId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coinbase-sample/prime-sdk-ts",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/types/index.d.ts",
6
6
  "exports": {