- Updated dependencies [7988bc1]
- Updated dependencies [538d4fc]
- Updated dependencies [12d5aaa]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [78bc39c]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [8bea78f]
- @turnkey/[email protected]
- Updated dependencies [3dd74ac]
- Updated dependencies [1e36edf]
- Updated dependencies [4df8914]
- Updated dependencies [11a9e2f]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [9ebd062]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [abe7138]
- Updated dependencies [96d7f99]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [ff059d5]
- Updated dependencies [ff059d5]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
-
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/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [1813ed5]
- @turnkey/[email protected]
- Updated dependencies [bab5393]
- Updated dependencies [a16073c]
- Updated dependencies [7e7d209]
- @turnkey/[email protected]
- Updated dependencies [93dee46]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [e2f2e0b]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [f17a229]
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [e4b29da]
- @turnkey/[email protected]
- Updated dependencies [d409d81]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- Updated dependencies [e4d2a84]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- a6502e6: Add support for new Turnkey Client types
- Updated dependencies [7a9ce7a]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- Updated dependencies [83b62b5]
- @turnkey/[email protected]
- Updated dependencies [46a7d90]
- @turnkey/[email protected]
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/[email protected]
- Updated dependencies ([c3b423b], [d73725b])
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [f9d636c]
- @turnkey/[email protected]
- Updated dependencies [52e2389]
- @turnkey/[email protected]
- Updated dependencies [7a3c890]
- @turnkey/[email protected]
- Upgrade to Node v18 (#184)
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [464ac0e]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [f87ced8]
- @turnkey/[email protected]
- Use rollup to build ESM and CommonJS, fix ESM support (#174)
- Updated dependencies [fc5b291]
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- @turnkey/[email protected]
- Updated dependencies [f1bd68a]
- @turnkey/[email protected]
- Updated dependencies [ed50a0f]
- Updated dependencies
- @turnkey/[email protected]
- 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/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- Updated the shape of signing
- Updated dependencies
- @turnkey/[email protected]
- 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/[email protected]
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- Updated dependencies [8d1d0e8]
- @turnkey/[email protected]
-
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/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
- No public facing changes
- Updated dependencies [9317f51]
- @turnkey/[email protected]
- No public facing changes
- Updated dependencies
- @turnkey/[email protected]
- Fix
.postGetPrivateKey(...)
's underlying path, while adding@deprecated
.postGetPrivateKeyBackwardsCompat(...)
for backward compatibility
- Fix
- @turnkey/[email protected]
- Updated dependencies
- @turnkey/[email protected]
signTransaction(...)
now verifies and dropstx.from
if present- This mimics the behavior of ethers' Wallet implementation
- Updated dependencies
- @turnkey/[email protected]
- New
TurnkeyRequestError
error class that contains rich error details - Updated dependencies
- @turnkey/[email protected]
- Error messages now contain Turnkey-specific error details
- Updated dependencies
- @turnkey/[email protected]
- No public facing changes
- Updated dependencies
- @turnkey/[email protected]
- Error messages now contain Turnkey-specific error code and message
- Updated dependencies
- @turnkey/[email protected]
TurnkeySigner
now conforms to ethers'TypedDataSigner
interface
- Updated dependencies
- @turnkey/[email protected]
- Added EIP-712 support for signing typed data to Ethers.
- Update Gnosis example to make use of new signing functionality.
- Updated dependencies
- @turnkey/[email protected]
- Improved support for React Native runtime (#37)
- Updated dependencies
- @turnkey/[email protected]
- Switched from
undici
tocross-fetch
to improve bundler compatibility - Updated dependencies
- @turnkey/[email protected]
- 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/[email protected]
- No public facing changes
- Updated dependencies
- @turnkey/[email protected]
#signMessage(...)
: move encoding and hashing logic to client side,eth_sign
style
- Updated dependencies
- @turnkey/[email protected]
- Arbitrary message signing
- Updated dependencies
- @turnkey/[email protected]
timestamp
->timestampMs
- Updated dependencies
- @turnkey/[email protected]
- Fix outdated artifact
- Updated dependencies
- @turnkey/[email protected]
keyId
->privateKeyId
everywhere
- Updated dependencies
- @turnkey/[email protected]
- Change parameter from
keyId
toprivateKeyId
- Bump API version to latest Beta
- Updated dependencies
- @turnkey/[email protected]
- Support runtime config for credentials
- Updated dependencies
- @turnkey/[email protected]
- Drop internal dev dependency
- Updated dependencies
- @turnkey/[email protected]
- Initial release
- Updated dependencies
- @turnkey/[email protected]