@coinbase/cdp-sdk 1.0.0 → 1.0.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/dist/accounts/types.d.ts +2 -2
- package/package.json +1 -1
package/dist/accounts/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SignableMessage,
|
|
1
|
+
import { SignableMessage, TransactionSerializable, TypedData, TypedDataDefinition } from "viem";
|
|
2
2
|
import type { Hash, Hex, Address } from "../types/misc";
|
|
3
3
|
import { Prettify } from "../types/utils";
|
|
4
4
|
/**
|
|
@@ -17,7 +17,7 @@ export type EvmAccount = {
|
|
|
17
17
|
message: SignableMessage;
|
|
18
18
|
}) => Promise<Hex>;
|
|
19
19
|
/** Signs a transaction and returns the signed transaction as a hex string. */
|
|
20
|
-
signTransaction: (transaction:
|
|
20
|
+
signTransaction: (transaction: TransactionSerializable) => Promise<Hex>;
|
|
21
21
|
/** Signs a typed data and returns the signature as a hex string. */
|
|
22
22
|
signTypedData: <const typedData extends TypedData | Record<string, unknown>, primaryType extends keyof typedData | "EIP712Domain" = keyof typedData>(parameters: TypedDataDefinition<typedData, primaryType>) => Promise<Hex>;
|
|
23
23
|
};
|