Skip to content

Commit

Permalink
Merge pull request #63 from tkhq/sync
Browse files Browse the repository at this point in the history
Sync latest proto (05/23/2022); version bump and changelog
  • Loading branch information
keyz-tk authored May 24, 2023
2 parents d6972af + 75fecd4 commit 338b5ca
Show file tree
Hide file tree
Showing 10 changed files with 96 additions and 34 deletions.
6 changes: 1 addition & 5 deletions examples/with-cosmjs/src/createNewCosmosPrivateKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,6 @@ export async function createNewCosmosPrivateKey() {
const privateKeyName = `Cosmos Key ${crypto.randomBytes(2).toString("hex")}`;

try {
// TODO: fix/simplify the address derivation logic after `ADDRESS_FORMAT_COMPRESSED` is fully supported.
// For context, this mutation's parameter will soon be updated to either:
// - `addressFormats: []` -- an empty array signaling you don't want any address derivation
// - or `addressFormats: ["ADDRESS_FORMAT_COMPRESSED"]` -- Turnkey will return a compressed public key by default for this key
const activity = await createKeyMutation({
body: {
type: "ACTIVITY_TYPE_CREATE_PRIVATE_KEYS",
Expand All @@ -42,7 +38,7 @@ export async function createNewCosmosPrivateKey() {
{
privateKeyName,
curve: "CURVE_SECP256K1",
addressFormats: ["ADDRESS_FORMAT_ETHEREUM"], // See comment above
addressFormats: [],
privateKeyTags: [],
},
],
Expand Down
11 changes: 11 additions & 0 deletions packages/cosmjs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @turnkey/cosmjs

## 0.2.0

### Minor Changes

- Moved `sha256` hashing from local to remote

### Patch Changes

- Updated dependencies
- @turnkey/http@0.14.0

## 0.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cosmjs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turnkey/cosmjs",
"version": "0.1.1",
"version": "0.2.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "Apache-2.0",
Expand Down
12 changes: 12 additions & 0 deletions packages/ethers/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# @turnkey/ethers

## 0.14.0

### Minor Changes

- `signTransaction(...)` now verifies and drops `tx.from` if present
- This mimics the behavior of ethers' Wallet [implementation](https://github.com/ethers-io/ethers.js/blob/f97b92bbb1bde22fcc44100af78d7f31602863ab/packages/wallet/src.ts/index.ts#L117-L121)

### Patch Changes

- Updated dependencies
- @turnkey/http@0.14.0

## 0.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ethers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turnkey/ethers",
"version": "0.13.2",
"version": "0.14.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "Apache-2.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/http/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @turnkey/http

## 0.14.0

### Minor Changes

- Updated the `addressFormats` enum field in `/submit/create_private_keys`

## 0.13.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@turnkey/http",
"version": "0.13.2",
"version": "0.14.0",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"license": "Apache-2.0",
Expand Down

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

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

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

0 comments on commit 338b5ca

Please sign in to comment.