@aa-sdk/core 4.0.0-beta.1 → 4.0.0-beta.10

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.
Files changed (53) hide show
  1. package/dist/esm/actions/smartAccount/checkGasSponsorshipEligibility.d.ts +9 -4
  2. package/dist/esm/actions/smartAccount/checkGasSponsorshipEligibility.js +17 -12
  3. package/dist/esm/actions/smartAccount/checkGasSponsorshipEligibility.js.map +1 -1
  4. package/dist/esm/actions/smartAccount/signMessage.js +1 -1
  5. package/dist/esm/actions/smartAccount/signMessage.js.map +1 -1
  6. package/dist/esm/actions/smartAccount/signTypedData.js +1 -1
  7. package/dist/esm/actions/smartAccount/signTypedData.js.map +1 -1
  8. package/dist/esm/client/decorators/smartAccountClient.d.ts +2 -5
  9. package/dist/esm/client/decorators/smartAccountClient.js +1 -5
  10. package/dist/esm/client/decorators/smartAccountClient.js.map +1 -1
  11. package/dist/esm/middleware/erc7677middleware.d.ts +4 -4
  12. package/dist/esm/middleware/erc7677middleware.js.map +1 -1
  13. package/dist/esm/signer/local-account.d.ts +15 -1
  14. package/dist/esm/signer/local-account.js +19 -2
  15. package/dist/esm/signer/local-account.js.map +1 -1
  16. package/dist/esm/types.d.ts +0 -30
  17. package/dist/esm/types.js.map +1 -1
  18. package/dist/esm/version.d.ts +1 -1
  19. package/dist/esm/version.js +1 -1
  20. package/dist/esm/version.js.map +1 -1
  21. package/dist/types/actions/smartAccount/checkGasSponsorshipEligibility.d.ts +9 -4
  22. package/dist/types/actions/smartAccount/checkGasSponsorshipEligibility.d.ts.map +1 -1
  23. package/dist/types/client/decorators/smartAccountClient.d.ts +2 -5
  24. package/dist/types/client/decorators/smartAccountClient.d.ts.map +1 -1
  25. package/dist/types/middleware/erc7677middleware.d.ts +4 -4
  26. package/dist/types/middleware/erc7677middleware.d.ts.map +1 -1
  27. package/dist/types/signer/local-account.d.ts +15 -1
  28. package/dist/types/signer/local-account.d.ts.map +1 -1
  29. package/dist/types/types.d.ts +0 -30
  30. package/dist/types/types.d.ts.map +1 -1
  31. package/dist/types/version.d.ts +1 -1
  32. package/dist/types/version.d.ts.map +1 -1
  33. package/package.json +3 -4
  34. package/src/actions/smartAccount/checkGasSponsorshipEligibility.ts +33 -16
  35. package/src/actions/smartAccount/signMessage.ts +1 -1
  36. package/src/actions/smartAccount/signTypedData.ts +1 -1
  37. package/src/client/decorators/smartAccountClient.ts +9 -14
  38. package/src/middleware/erc7677middleware.ts +9 -9
  39. package/src/signer/local-account.ts +24 -2
  40. package/src/types.ts +0 -56
  41. package/src/version.ts +1 -1
  42. package/dist/esm/actions/smartAccount/signMessageWith6492.d.ts +0 -4
  43. package/dist/esm/actions/smartAccount/signMessageWith6492.js +0 -8
  44. package/dist/esm/actions/smartAccount/signMessageWith6492.js.map +0 -1
  45. package/dist/esm/actions/smartAccount/signTypedDataWith6492.d.ts +0 -6
  46. package/dist/esm/actions/smartAccount/signTypedDataWith6492.js +0 -8
  47. package/dist/esm/actions/smartAccount/signTypedDataWith6492.js.map +0 -1
  48. package/dist/types/actions/smartAccount/signMessageWith6492.d.ts +0 -5
  49. package/dist/types/actions/smartAccount/signMessageWith6492.d.ts.map +0 -1
  50. package/dist/types/actions/smartAccount/signTypedDataWith6492.d.ts +0 -7
  51. package/dist/types/actions/smartAccount/signTypedDataWith6492.d.ts.map +0 -1
  52. package/src/actions/smartAccount/signMessageWith6492.ts +0 -21
  53. package/src/actions/smartAccount/signTypedDataWith6492.ts +0 -23
@@ -1,8 +0,0 @@
1
- import { AccountNotFoundError } from "../../errors/account.js";
2
- export const signTypedDataWith6492 = async (client, { account = client.account, typedData }) => {
3
- if (!account) {
4
- throw new AccountNotFoundError();
5
- }
6
- return account.signTypedDataWith6492(typedData);
7
- };
8
- //# sourceMappingURL=signTypedDataWith6492.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signTypedDataWith6492.js","sourceRoot":"","sources":["../../../../src/actions/smartAccount/signTypedDataWith6492.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAG/D,MAAM,CAAC,MAAM,qBAAqB,GAWd,KAAK,EAAE,MAAM,EAAE,EAAE,OAAO,GAAG,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,EAAE,EAAE;IAC5E,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,oBAAoB,EAAE,CAAC;IACnC,CAAC;IAED,OAAO,OAAO,CAAC,qBAAqB,CAAC,SAAS,CAAC,CAAC;AAClD,CAAC,CAAC","sourcesContent":["import type { Chain, Client, Hex, Transport, TypedData } from \"viem\";\nimport type { SmartContractAccount } from \"../../account/smartContractAccount\";\nimport { AccountNotFoundError } from \"../../errors/account.js\";\nimport type { SignTypedDataParameters } from \"./signTypedData\";\n\nexport const signTypedDataWith6492: <\n const TTypedData extends TypedData | { [key: string]: unknown },\n TTransport extends Transport = Transport,\n TChain extends Chain | undefined = Chain | undefined,\n TAccount extends SmartContractAccount | undefined =\n | SmartContractAccount\n | undefined,\n TPrimaryType extends string = string\n>(\n client: Client<TTransport, TChain, TAccount>,\n args: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>\n) => Promise<Hex> = async (client, { account = client.account, typedData }) => {\n if (!account) {\n throw new AccountNotFoundError();\n }\n\n return account.signTypedDataWith6492(typedData);\n};\n"]}
@@ -1,5 +0,0 @@
1
- import type { Chain, Client, Hex, Transport } from "viem";
2
- import type { SmartContractAccount } from "../../account/smartContractAccount";
3
- import type { SignMessageParameters } from "./signMessage";
4
- export declare const signMessageWith6492: <TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined>(client: Client<TTransport, TChain, TAccount>, args: SignMessageParameters<TAccount>) => Promise<Hex>;
5
- //# sourceMappingURL=signMessageWith6492.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signMessageWith6492.d.ts","sourceRoot":"","sources":["../../../../src/actions/smartAccount/signMessageWith6492.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAE3D,eAAO,MAAM,mBAAmB,EAAE,CAChC,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,EAEb,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,qBAAqB,CAAC,QAAQ,CAAC,KAClC,OAAO,CAAC,GAAG,CAMf,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { Chain, Client, Hex, Transport, TypedData } from "viem";
2
- import type { SmartContractAccount } from "../../account/smartContractAccount";
3
- import type { SignTypedDataParameters } from "./signTypedData";
4
- export declare const signTypedDataWith6492: <const TTypedData extends TypedData | {
5
- [key: string]: unknown;
6
- }, TTransport extends Transport = Transport, TChain extends Chain | undefined = Chain | undefined, TAccount extends SmartContractAccount | undefined = SmartContractAccount | undefined, TPrimaryType extends string = string>(client: Client<TTransport, TChain, TAccount>, args: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>) => Promise<Hex>;
7
- //# sourceMappingURL=signTypedDataWith6492.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"signTypedDataWith6492.d.ts","sourceRoot":"","sources":["../../../../src/actions/smartAccount/signTypedDataWith6492.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AACrE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAE/E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAE/D,eAAO,MAAM,qBAAqB,EAAE,CAClC,KAAK,CAAC,UAAU,SAAS,SAAS,GAAG;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CAAE,EAC/D,UAAU,SAAS,SAAS,GAAG,SAAS,EACxC,MAAM,SAAS,KAAK,GAAG,SAAS,GAAG,KAAK,GAAG,SAAS,EACpD,QAAQ,SAAS,oBAAoB,GAAG,SAAS,GAC7C,oBAAoB,GACpB,SAAS,EACb,YAAY,SAAS,MAAM,GAAG,MAAM,EAEpC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,CAAC,EAC5C,IAAI,EAAE,uBAAuB,CAAC,UAAU,EAAE,YAAY,EAAE,QAAQ,CAAC,KAC9D,OAAO,CAAC,GAAG,CAMf,CAAC"}
@@ -1,21 +0,0 @@
1
- import type { Chain, Client, Hex, Transport } from "viem";
2
- import type { SmartContractAccount } from "../../account/smartContractAccount";
3
- import { AccountNotFoundError } from "../../errors/account.js";
4
- import type { SignMessageParameters } from "./signMessage";
5
-
6
- export const signMessageWith6492: <
7
- TTransport extends Transport = Transport,
8
- TChain extends Chain | undefined = Chain | undefined,
9
- TAccount extends SmartContractAccount | undefined =
10
- | SmartContractAccount
11
- | undefined
12
- >(
13
- client: Client<TTransport, TChain, TAccount>,
14
- args: SignMessageParameters<TAccount>
15
- ) => Promise<Hex> = async (client, { account = client.account, message }) => {
16
- if (!account) {
17
- throw new AccountNotFoundError();
18
- }
19
-
20
- return account.signMessageWith6492({ message });
21
- };
@@ -1,23 +0,0 @@
1
- import type { Chain, Client, Hex, Transport, TypedData } from "viem";
2
- import type { SmartContractAccount } from "../../account/smartContractAccount";
3
- import { AccountNotFoundError } from "../../errors/account.js";
4
- import type { SignTypedDataParameters } from "./signTypedData";
5
-
6
- export const signTypedDataWith6492: <
7
- const TTypedData extends TypedData | { [key: string]: unknown },
8
- TTransport extends Transport = Transport,
9
- TChain extends Chain | undefined = Chain | undefined,
10
- TAccount extends SmartContractAccount | undefined =
11
- | SmartContractAccount
12
- | undefined,
13
- TPrimaryType extends string = string
14
- >(
15
- client: Client<TTransport, TChain, TAccount>,
16
- args: SignTypedDataParameters<TTypedData, TPrimaryType, TAccount>
17
- ) => Promise<Hex> = async (client, { account = client.account, typedData }) => {
18
- if (!account) {
19
- throw new AccountNotFoundError();
20
- }
21
-
22
- return account.signTypedDataWith6492(typedData);
23
- };