- Updated dependencies [8bea78f]
- @turnkey/sdk-browser@1.10.0
- Updated dependencies [3dd74ac]
- Updated dependencies [1e36edf]
- Updated dependencies [4df8914]
- Updated dependencies [11a9e2f]
- @turnkey/sdk-browser@1.9.0
- @turnkey/sdk-server@1.6.0
- @turnkey/http@2.16.0
- Updated dependencies [9ebd062]
- @turnkey/sdk-browser@1.8.0
- @turnkey/sdk-server@1.5.0
- @turnkey/http@2.15.0
- Updated dependencies [abe7138]
- Updated dependencies [96d7f99]
- @turnkey/sdk-server@1.4.2
- @turnkey/sdk-browser@1.7.1
- @turnkey/http@2.14.2
- @turnkey/api-key-stamper@0.4.3
- Updated dependencies [ff059d5]
- Updated dependencies [ff059d5]
- @turnkey/sdk-browser@1.7.0
- @turnkey/sdk-server@1.4.1
- @turnkey/http@2.14.1
- @turnkey/api-key-stamper@0.4.2
-
bdded80: Support awaiting consensus
- Add a few new helper functions:
serializeSignature
serializes a raw signature
- Add a few new helper functions:
- Updated dependencies [c988ed0]
- Updated dependencies [848f8d3]
- @turnkey/sdk-browser@1.6.0
- @turnkey/sdk-server@1.4.0
- @turnkey/http@2.14.0
- Updated dependencies [1813ed5]
- @turnkey/sdk-browser@1.5.0
- Updated dependencies [bab5393]
- Updated dependencies [a16073c]
- Updated dependencies [7e7d209]
- @turnkey/sdk-browser@1.4.0
- Updated dependencies [93dee46]
- @turnkey/http@2.13.0
- @turnkey/sdk-browser@1.3.0
- @turnkey/sdk-server@1.3.0
- Updated dependencies [e2f2e0b]
- @turnkey/sdk-browser@1.2.4
- @turnkey/sdk-server@1.2.4
- @turnkey/http@2.12.3
- Updated dependencies
- @turnkey/sdk-browser@1.2.3
- @turnkey/sdk-server@1.2.3
- Updated dependencies
- @turnkey/api-key-stamper@0.4.1
- @turnkey/http@2.12.2
- @turnkey/sdk-browser@1.2.2
- @turnkey/sdk-server@1.2.2
- Updated dependencies [f17a229]
- @turnkey/http@2.12.1
- @turnkey/sdk-browser@1.2.1
- @turnkey/sdk-server@1.2.1
- Updated dependencies
- @turnkey/http@2.12.0
- @turnkey/sdk-browser@1.2.0
- @turnkey/sdk-server@1.2.0
- Updated dependencies
- @turnkey/http@2.11.0
- @turnkey/sdk-browser@1.1.0
- @turnkey/sdk-server@1.1.0
- Updated dependencies
- @turnkey/sdk-browser@1.0.0
- @turnkey/sdk-server@1.0.0
- @turnkey/sdk-browser@0.4.1
- Updated dependencies [e4b29da]
- @turnkey/sdk-browser@0.4.0
- Updated dependencies [d409d81]
- @turnkey/sdk-browser@0.3.0
- @turnkey/sdk-browser@0.2.1
- Updated dependencies
- Updated dependencies [e4d2a84]
- @turnkey/sdk-browser@0.2.0
- @turnkey/sdk-server@0.2.0
- Updated dependencies
- @turnkey/sdk-browser@0.1.0
- @turnkey/sdk-server@0.1.0
- a6502e6: Add support for new Turnkey Client types
- Updated dependencies [7a9ce7a]
- @turnkey/http@2.10.0
- Updated dependencies
- @turnkey/http@2.9.1
- Updated dependencies [83b62b5]
- @turnkey/http@2.9.0
- Updated dependencies [46a7d90]
- @turnkey/http@2.8.0
Updates @turnkey/ethers package and examples to use ethers v6. Refer to https://docs.ethers.org/v6/migrating for full migration instructions.
✨Summary of Changes✨
getBalance
is no longer a method on the signer. It must be obtained via the provider instance.
Additionally, it requires an address to be passed in:
// before
const balance = await connectedSigner.getBalance();
// after
// first get the address
const address = await connectedSigner.getAddress()
// then pass it in
const balance = await connectedSigner.provider?.getBalance(address)
getChainId
is no longer a method on the signer. It must be obtained via the network object on the provider instance:
// before
const chainId = await connectedSigner.getChainId();
// after
const chainId = (await connectedSigner.provider?.getNetwork())?.chainId;
getTransactionCount
is no longer a method on the signer. It must be obtained via the provider instance.
Additionally, it requires an address to be passed in:
// before
const transactionCount = await connectedSigner.getTransactionCount();
// after
// first get the address
const address = await connectedSigner.getAddress()
// then pass it in
const transactionCount = await connectedSigner.provider?.getTransactionCount(address);
getFeeData
is no longer a method on the signer. It must be obtained via the provider instance:
// before
const feeData = await connectedSigner.getFeeData();
// after
const feeData = await connectedSigner.provider?.getFeeData();
BigNumber -> bigint: numerical values such as, chainId, fee data, balance now use new ES6 primitive bigint
instead of BigNumber
.
For example, when checking if the balance is 0
, bigint
must now be used for comparison:
// before
if (balance.isZero()) {...}
// after
if (balance === 0n) {...}
- Updated dependencies
- @turnkey/http@2.7.1
- Updated dependencies ([c3b423b], [d73725b])
- @turnkey/api-key-stamper@0.4.0
- @turnkey/http@2.7.0
- Updated dependencies [f9d636c]
- @turnkey/http@2.6.2
- Updated dependencies [52e2389]
- @turnkey/http@2.6.1
- Updated dependencies [7a3c890]
- @turnkey/http@2.6.0
- Upgrade to Node v18 (#184)
- Updated dependencies
- @turnkey/api-key-stamper@0.3.1
- @turnkey/http@2.5.1
- Updated dependencies [464ac0e]
- @turnkey/http@2.5.0
- @turnkey/http@2.4.2
- Updated dependencies [f87ced8]
- @turnkey/http@2.4.1
- Use rollup to build ESM and CommonJS, fix ESM support (#174)
- Updated dependencies [fc5b291]
- @turnkey/api-key-stamper@0.3.0
- @turnkey/http@2.4.0
- Updated dependencies
- @turnkey/api-key-stamper@0.3.0
- @turnkey/http@2.3.1
- Updated dependencies [f1bd68a]
- @turnkey/http@2.3.0
- Updated dependencies [ed50a0f]
- Updated dependencies
- @turnkey/http@2.2.0
- cf8631a: Update interface to support
signWith
This change supports signing with wallet account addresses, private key addresses, or private key IDs. See below for an example:
const turnkeyClient = new TurnkeyClient(
{
baseUrl: "https://api.turnkey.com",
},
// This uses API key credentials.
// If you're using passkeys, use `@turnkey/webauthn-stamper` to collect webauthn signatures:
// new WebauthnStamper({...options...})
new ApiKeyStamper({
apiPublicKey: "...",
apiPrivateKey: "...",
})
);
// Initialize a Turnkey Signer
const turnkeySigner = new TurnkeySigner({
client: turnkeyClient,
organizationId: "...",
signWith: "...",
});
- Updated dependencies [bb6ea0b]
- @turnkey/http@2.1.0
- Updated dependencies
- @turnkey/http@2.0.0
- Updated the shape of signing
- Updated dependencies
- @turnkey/http@1.3.0
- Update documentation as follows:
- ebf87a9: This breaking change adds support for stampers (@turnkey/api-key-stamper / @turnkey/webauthn-stamper) to integrate with API keys or passkeys, bringing it to parity with our Viem package. See the following examples for sample usage:
- with-ethers: updated to use
@turnkey/api-key-stamper
- with-ethers-and-passkeys: demonstrates usage of
@turnkey/webauthn-stamper
- with-ethers: updated to use
- Add support for stampers (@turnkey/api-key-stamper / @turnkey/webauthn-stamper) to integrate with API keys or passkeys.
- Updated dependencies
- @turnkey/http@1.2.0
- @turnkey/http@1.1.1
- Updated dependencies
- @turnkey/http@1.1.0
- Updated dependencies [8d1d0e8]
- @turnkey/http@1.0.1
-
46473ec: This breaking change updates generated code to be shorter and more intuitive to read:
- generated fetchers do not include the HTTP method in their name. For example
useGetGetActivity
is nowuseGetActivity
, andusePostSignTransaction
isuseSignTransaction
. - input types follow the same convention (no HTTP method in the name):
TPostCreatePrivateKeysInput
is nowTCreatePrivateKeysInput
. - the "federated" request helpers introduced in
0.18.0
are now named "signed" requests to better reflect what they are.FederatedRequest
is nowSignedRequest
, and generated types follow. For example:federatedPostCreatePrivateKeys
is nowsignCreatePrivateKeys
,federatedGetGetActivity
is nowsignGetActivity
, and so on.
The name updates should be automatically suggested if you use VSCode since the new names are simply shorter versions of the old one.
- generated fetchers do not include the HTTP method in their name. For example
-
Updated dependencies [46473ec]
-
Updated dependencies [38b424f]
- @turnkey/http@1.0.0
- Updated dependencies
- @turnkey/http@0.18.1
- Updated dependencies
- @turnkey/http@0.18.0
- Updated dependencies
- @turnkey/http@0.17.1
- No public facing changes
- Updated dependencies [9317f51]
- @turnkey/http@0.17.0
- No public facing changes
- Updated dependencies
- @turnkey/http@0.16.0
- Fix
.postGetPrivateKey(...)
's underlying path, while adding@deprecated
.postGetPrivateKeyBackwardsCompat(...)
for backward compatibility
- Fix
- @turnkey/http@0.16.0
- Updated dependencies
- @turnkey/http@0.15.0
signTransaction(...)
now verifies and dropstx.from
if present- This mimics the behavior of ethers' Wallet implementation
- Updated dependencies
- @turnkey/http@0.14.0
- New
TurnkeyRequestError
error class that contains rich error details - Updated dependencies
- @turnkey/http@0.13.2
- Error messages now contain Turnkey-specific error details
- Updated dependencies
- @turnkey/http@0.13.1
- No public facing changes
- Updated dependencies
- @turnkey/http@0.13.0
- Error messages now contain Turnkey-specific error code and message
- Updated dependencies
- @turnkey/http@0.12.0
TurnkeySigner
now conforms to ethers'TypedDataSigner
interface
- Updated dependencies
- @turnkey/http@0.11.0
- Added EIP-712 support for signing typed data to Ethers.
- Update Gnosis example to make use of new signing functionality.
- Updated dependencies
- @turnkey/http@0.10.0
- Improved support for React Native runtime (#37)
- Updated dependencies
- @turnkey/http@0.9.0
- Switched from
undici
tocross-fetch
to improve bundler compatibility - Updated dependencies
- @turnkey/http@0.8.1
- Added browser runtime support —
@turnkey/ethers
is now a universal (isomorphic) package - Dropped support for Node.js v14; we recommend using Node v18+
- Updated dependencies
- @turnkey/http@0.8.0
- No public facing changes
- Updated dependencies
- @turnkey/http@0.7.0
#signMessage(...)
: move encoding and hashing logic to client side,eth_sign
style
- Updated dependencies
- @turnkey/http@0.6.0
- Arbitrary message signing
- Updated dependencies
- @turnkey/http@0.5.0
timestamp
->timestampMs
- Updated dependencies
- @turnkey/http@0.4.0
- Fix outdated artifact
- Updated dependencies
- @turnkey/http@0.3.1
keyId
->privateKeyId
everywhere
- Updated dependencies
- @turnkey/http@0.3.0
- Change parameter from
keyId
toprivateKeyId
- Bump API version to latest Beta
- Updated dependencies
- @turnkey/http@0.2.0
- Support runtime config for credentials
- Updated dependencies
- @turnkey/http@0.1.3
- Drop internal dev dependency
- Updated dependencies
- @turnkey/http@0.1.2
- Initial release
- Updated dependencies
- @turnkey/http@0.1.1