@account-kit/wallet-client 0.0.1-alpha.1 → 0.1.0-alpha.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.
Files changed (151) hide show
  1. package/dist/esm/abi/index.d.ts +8 -8
  2. package/dist/esm/abi/index.js +8 -8
  3. package/dist/esm/abi/index.js.map +1 -1
  4. package/dist/esm/capabilities/index.d.ts +23 -0
  5. package/dist/esm/capabilities/index.js +4 -2
  6. package/dist/esm/capabilities/index.js.map +1 -1
  7. package/dist/esm/capabilities/overrides.d.ts +26 -0
  8. package/dist/esm/capabilities/overrides.js +14 -0
  9. package/dist/esm/capabilities/overrides.js.map +1 -0
  10. package/dist/esm/capabilities/permissions/index.d.ts +57 -17
  11. package/dist/esm/capabilities/permissions/index.js +26 -15
  12. package/dist/esm/capabilities/permissions/index.js.map +1 -1
  13. package/dist/esm/capabilities/permissions/mav2.js +1 -1
  14. package/dist/esm/capabilities/permissions/mav2.js.map +1 -1
  15. package/dist/esm/client/actions/grantPermissions.d.ts +1 -1
  16. package/dist/esm/client/actions/grantPermissions.js.map +1 -1
  17. package/dist/esm/client/actions/requestAccount.d.ts +2 -2
  18. package/dist/esm/client/actions/requestAccount.js +2 -2
  19. package/dist/esm/client/actions/requestAccount.js.map +1 -1
  20. package/dist/esm/client/actions/sendPreparedCalls.d.ts +2 -2
  21. package/dist/esm/client/actions/sendPreparedCalls.js.map +1 -1
  22. package/dist/esm/client/actions/signMessage.d.ts +1 -1
  23. package/dist/esm/client/actions/signMessage.js +1 -1
  24. package/dist/esm/client/actions/signMessage.js.map +1 -1
  25. package/dist/esm/client/actions/signSignatureRequest.d.ts +1 -1
  26. package/dist/esm/client/actions/signSignatureRequest.js +2 -2
  27. package/dist/esm/client/actions/signSignatureRequest.js.map +1 -1
  28. package/dist/esm/client/actions/signTypedData.d.ts +1 -1
  29. package/dist/esm/client/actions/signTypedData.js +1 -1
  30. package/dist/esm/client/actions/signTypedData.js.map +1 -1
  31. package/dist/esm/client/client.e2e-test.js +5 -6
  32. package/dist/esm/client/client.e2e-test.js.map +1 -1
  33. package/dist/esm/client/decorator.d.ts +8 -8
  34. package/dist/esm/client/decorator.js +10 -10
  35. package/dist/esm/client/decorator.js.map +1 -1
  36. package/dist/esm/client/index.d.ts +1 -1
  37. package/dist/esm/client/index.js +3 -3
  38. package/dist/esm/client/index.js.map +1 -1
  39. package/dist/esm/exports/index.d.ts +13 -13
  40. package/dist/esm/exports/index.js +13 -13
  41. package/dist/esm/exports/index.js.map +1 -1
  42. package/dist/esm/exports/internal.d.ts +12 -12
  43. package/dist/esm/exports/internal.js +11 -11
  44. package/dist/esm/exports/internal.js.map +1 -1
  45. package/dist/esm/isomorphic/actions/createSession.d.ts +3 -3
  46. package/dist/esm/isomorphic/actions/createSession.js +7 -5
  47. package/dist/esm/isomorphic/actions/createSession.js.map +1 -1
  48. package/dist/esm/isomorphic/actions/getCallsStatus.d.ts +2 -2
  49. package/dist/esm/isomorphic/actions/getCallsStatus.js +3 -3
  50. package/dist/esm/isomorphic/actions/getCallsStatus.js.map +1 -1
  51. package/dist/esm/isomorphic/actions/prepareCalls.d.ts +2 -2
  52. package/dist/esm/isomorphic/actions/prepareCalls.js +4 -3
  53. package/dist/esm/isomorphic/actions/prepareCalls.js.map +1 -1
  54. package/dist/esm/isomorphic/actions/sendPreparedCalls.d.ts +4 -4
  55. package/dist/esm/isomorphic/actions/sendPreparedCalls.js +3 -3
  56. package/dist/esm/isomorphic/actions/sendPreparedCalls.js.map +1 -1
  57. package/dist/esm/isomorphic/client.d.ts +8 -7
  58. package/dist/esm/isomorphic/client.js +15 -8
  59. package/dist/esm/isomorphic/client.js.map +1 -1
  60. package/dist/esm/isomorphic/utils/createAccount.d.ts +2 -2
  61. package/dist/esm/isomorphic/utils/createAccount.js +1 -1
  62. package/dist/esm/isomorphic/utils/createAccount.js.map +1 -1
  63. package/dist/esm/isomorphic/utils/parsePermissionsContext.d.ts +4 -4
  64. package/dist/esm/isomorphic/utils/parsePermissionsContext.js +1 -1
  65. package/dist/esm/isomorphic/utils/parsePermissionsContext.js.map +1 -1
  66. package/dist/esm/local/client.js +6 -5
  67. package/dist/esm/local/client.js.map +1 -1
  68. package/dist/esm/remote/client.js +3 -3
  69. package/dist/esm/remote/client.js.map +1 -1
  70. package/dist/esm/rpc/request.d.ts +32 -9
  71. package/dist/esm/rpc/request.js +17 -7
  72. package/dist/esm/rpc/request.js.map +1 -1
  73. package/dist/esm/rpc/schema.d.ts +32 -9
  74. package/dist/esm/rpc/schema.js +1 -1
  75. package/dist/esm/rpc/schema.js.map +1 -1
  76. package/dist/types/abi/index.d.ts +8 -8
  77. package/dist/types/abi/index.d.ts.map +1 -1
  78. package/dist/types/capabilities/index.d.ts +23 -0
  79. package/dist/types/capabilities/index.d.ts.map +1 -1
  80. package/dist/types/capabilities/overrides.d.ts +27 -0
  81. package/dist/types/capabilities/overrides.d.ts.map +1 -0
  82. package/dist/types/capabilities/permissions/index.d.ts +57 -17
  83. package/dist/types/capabilities/permissions/index.d.ts.map +1 -1
  84. package/dist/types/client/actions/grantPermissions.d.ts +1 -1
  85. package/dist/types/client/actions/grantPermissions.d.ts.map +1 -1
  86. package/dist/types/client/actions/requestAccount.d.ts +2 -2
  87. package/dist/types/client/actions/requestAccount.d.ts.map +1 -1
  88. package/dist/types/client/actions/sendPreparedCalls.d.ts +2 -2
  89. package/dist/types/client/actions/sendPreparedCalls.d.ts.map +1 -1
  90. package/dist/types/client/actions/signMessage.d.ts +1 -1
  91. package/dist/types/client/actions/signMessage.d.ts.map +1 -1
  92. package/dist/types/client/actions/signSignatureRequest.d.ts +1 -1
  93. package/dist/types/client/actions/signSignatureRequest.d.ts.map +1 -1
  94. package/dist/types/client/actions/signTypedData.d.ts +1 -1
  95. package/dist/types/client/actions/signTypedData.d.ts.map +1 -1
  96. package/dist/types/client/decorator.d.ts +8 -8
  97. package/dist/types/client/decorator.d.ts.map +1 -1
  98. package/dist/types/client/index.d.ts +1 -1
  99. package/dist/types/client/index.d.ts.map +1 -1
  100. package/dist/types/exports/index.d.ts +13 -13
  101. package/dist/types/exports/index.d.ts.map +1 -1
  102. package/dist/types/exports/internal.d.ts +12 -12
  103. package/dist/types/exports/internal.d.ts.map +1 -1
  104. package/dist/types/isomorphic/actions/createSession.d.ts +3 -3
  105. package/dist/types/isomorphic/actions/createSession.d.ts.map +1 -1
  106. package/dist/types/isomorphic/actions/getCallsStatus.d.ts +2 -2
  107. package/dist/types/isomorphic/actions/getCallsStatus.d.ts.map +1 -1
  108. package/dist/types/isomorphic/actions/prepareCalls.d.ts +2 -2
  109. package/dist/types/isomorphic/actions/prepareCalls.d.ts.map +1 -1
  110. package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts +4 -4
  111. package/dist/types/isomorphic/actions/sendPreparedCalls.d.ts.map +1 -1
  112. package/dist/types/isomorphic/client.d.ts +8 -7
  113. package/dist/types/isomorphic/client.d.ts.map +1 -1
  114. package/dist/types/isomorphic/utils/createAccount.d.ts +2 -2
  115. package/dist/types/isomorphic/utils/createAccount.d.ts.map +1 -1
  116. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts +4 -4
  117. package/dist/types/isomorphic/utils/parsePermissionsContext.d.ts.map +1 -1
  118. package/dist/types/local/client.d.ts.map +1 -1
  119. package/dist/types/remote/client.d.ts.map +1 -1
  120. package/dist/types/rpc/request.d.ts +32 -9
  121. package/dist/types/rpc/request.d.ts.map +1 -1
  122. package/dist/types/rpc/schema.d.ts +32 -9
  123. package/dist/types/rpc/schema.d.ts.map +1 -1
  124. package/package.json +8 -3
  125. package/src/abi/index.ts +8 -8
  126. package/src/capabilities/index.ts +4 -2
  127. package/src/capabilities/overrides.ts +20 -0
  128. package/src/capabilities/permissions/index.ts +42 -24
  129. package/src/capabilities/permissions/mav2.ts +1 -1
  130. package/src/client/actions/grantPermissions.ts +1 -1
  131. package/src/client/actions/requestAccount.ts +4 -4
  132. package/src/client/actions/sendPreparedCalls.ts +3 -3
  133. package/src/client/actions/signMessage.ts +2 -2
  134. package/src/client/actions/signSignatureRequest.ts +2 -2
  135. package/src/client/actions/signTypedData.ts +2 -2
  136. package/src/client/client.e2e-test.ts +5 -6
  137. package/src/client/decorator.ts +19 -19
  138. package/src/client/index.ts +6 -3
  139. package/src/exports/index.ts +13 -13
  140. package/src/exports/internal.ts +12 -12
  141. package/src/isomorphic/actions/createSession.ts +18 -14
  142. package/src/isomorphic/actions/getCallsStatus.ts +6 -6
  143. package/src/isomorphic/actions/prepareCalls.ts +7 -6
  144. package/src/isomorphic/actions/sendPreparedCalls.ts +7 -7
  145. package/src/isomorphic/client.ts +24 -11
  146. package/src/isomorphic/utils/createAccount.ts +3 -3
  147. package/src/isomorphic/utils/parsePermissionsContext.ts +3 -3
  148. package/src/local/client.ts +9 -8
  149. package/src/remote/client.ts +3 -3
  150. package/src/rpc/request.ts +33 -18
  151. package/src/rpc/schema.ts +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,WAAW,EACX,0BAA0B,EAC1B,mBAAmB,EACnB,OAAO,EACP,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,QAAQ,GACT,MAAM,YAAY,CAAC;AAEpB,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC,MAAM,CACjD;IACE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC;QAChD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;YACjB,IAAI,CAAC,MAAM,CAAC;gBACV,IAAI,EAAE,IAAI,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C3B,CAAC,CACH,CACF;KACF,CAAC;CACH,EACD;IACE,WAAW,EACT,4FAA4F;CAC/F,CACF,CAAC","sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { Capabilities } from \"../capabilities\";\nimport {\n PermissionsContext,\n PermissionsData,\n} from \"../capabilities/permissions\";\nimport {\n TypeAddress,\n TypeBase64UrlEncodedString,\n TypeCreationOptions,\n TypeHex,\n TypeSerializedInitcode,\n TypeSignatureRequest,\n TypeUserOperationRequest_v6,\n TypeUserOperationRequest_v7,\n TypeUuid,\n} from \"../schemas\";\n\nexport const wallet_sendPreparedCalls = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_sendPreparedCalls\"),\n params: Type.Tuple([\n Type.Object({\n type: Type.Union([\n Type.Literal(\"user-operation-v060\"),\n Type.Literal(\"user-operation-v070\"),\n ]),\n data: Type.Union([\n Type.Omit(TypeUserOperationRequest_v6, [\"signature\"]),\n Type.Omit(TypeUserOperationRequest_v7, [\"signature\"]),\n ]),\n chainId: TypeHex(),\n signature: Type.Object({\n // ignored, but in the spec can be used when the signature on the UO needs to be formatted differently\n // potentially useful for deferred actions?\n type: Type.String(),\n signature: TypeHex(),\n }),\n capabilities: Type.Optional(\n Type.Object({ permissions: PermissionsContext }),\n ),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n preparedCallIds: Type.Array(TypeHex()),\n }),\n },\n {\n description:\n \"This method is used after signing the signatureRequest returned from prepareCalls to submit a user operation\",\n },\n);\n\nexport const wallet_prepareCalls = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_prepareCalls\"),\n params: Type.Tuple([\n Type.Object({\n calls: Type.Array(\n Type.Object({\n to: TypeAddress,\n data: Type.Optional(TypeHex()),\n value: Type.Optional(TypeHex()),\n }),\n ),\n from: TypeAddress,\n chainId: TypeHex(),\n capabilities: Type.Optional(Capabilities),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n type: Type.Union([\n Type.Literal(\"user-operation-v060\"),\n Type.Literal(\"user-operation-v070\"),\n ]),\n data: Type.Union([\n Type.Omit(TypeUserOperationRequest_v6, [\"signature\"]),\n Type.Omit(TypeUserOperationRequest_v7, [\"signature\"]),\n ]),\n chainId: TypeHex(),\n signatureRequest: TypeSignatureRequest,\n }),\n },\n {\n description:\n \"This method is used to prepare a user operation for submission. It will return a built user operation and a signature request which needs to be signed by the user before submitting to wallet_sendPreparedCalls\",\n },\n);\n\nexport const wallet_requestAccount = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_requestAccount\"),\n params: Type.Tuple([\n Type.Union([\n Type.Object({\n signerAddress: TypeAddress,\n id: Type.Optional(TypeUuid),\n creationHint: TypeCreationOptions,\n includeCounterfactualInfo: Type.Optional(\n Type.Boolean({ default: false }),\n ),\n }),\n Type.Object({\n accountAddress: TypeAddress,\n includeCounterfactualInfo: Type.Optional(\n Type.Boolean({ default: false }),\n ),\n }),\n ]),\n ]),\n }),\n ReturnType: Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n counterfactualInfo: Type.Optional(TypeSerializedInitcode),\n }),\n },\n {\n description: `This method is used to get the smart account address and relevant info for a given signer. If an account does not already exist for a given signer, this method will create one before returning the counterfactual address.`,\n },\n);\n\nexport const wallet_createAccount = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_createAccount\"),\n params: Type.Tuple([\n Type.Object({\n signerAddress: TypeAddress,\n id: Type.Optional(TypeUuid),\n creationOptions: TypeCreationOptions,\n }),\n ]),\n }),\n ReturnType: Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n }),\n },\n {\n description: `This method is used to create a smart account for a given signer. This method is primarly used to import existing accounts. For most cases, you should use wallet_requestAccount instead.`,\n },\n);\n\nexport const wallet_listAccounts = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_listAccounts\"),\n params: Type.Tuple([\n Type.Object({\n signerAddress: TypeAddress,\n limit: Type.Optional(\n Type.Number({ minimum: 1, maximum: 100, default: 100 }),\n ),\n after: Type.Optional(TypeBase64UrlEncodedString),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n accounts: Type.Array(\n Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n }),\n ),\n meta: Type.Object({\n totalCount: Type.Number(),\n after: Type.Union([TypeBase64UrlEncodedString, Type.Null()]),\n }),\n }),\n },\n {\n description:\n \"This method is used to list all smart accounts for a given signer.\",\n },\n);\n\nexport const wallet_createSession = Type.Object({\n Request: Type.Object({\n method: Type.Literal(\"wallet_createSession\"),\n params: Type.Tuple([\n Type.Intersect([PermissionsData, Type.Object({ account: TypeAddress })]),\n ]),\n }),\n ReturnType: Type.Object({\n sessionId: TypeHex(),\n signatureRequest: TypeSignatureRequest,\n }),\n});\n\nexport const wallet_getCallsStatus = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_getCallsStatus\"),\n params: Type.Tuple([\n TypeHex({\n description: \"The call ID returned from wallet_sendPreparedCalls\",\n }),\n ]),\n }),\n ReturnType: Type.Object({\n id: TypeHex(),\n chainId: TypeHex(),\n atomic: Type.Boolean(),\n status: Type.Union([\n Type.Literal(100, {\n description:\n \"Batch has been received by the wallet but has not completed execution onchain\",\n }),\n Type.Literal(200, {\n description:\n \"Batch has been included onchain without reverts, receipts array contains info of all calls\",\n }),\n Type.Literal(400, {\n description:\n \"Batch has not been included onchain and wallet will not retry\",\n }),\n Type.Literal(500, {\n description:\n \"Batch reverted *completely* and only changes related to gas charge may have been included onchain\",\n }),\n Type.Literal(600, {\n description:\n \"Batch reverted *partially* and some changes related to batch calls may have been included onchain\",\n }),\n ]),\n receipts: Type.Optional(\n Type.Array(\n Type.Object({\n logs: Type.Array(\n Type.Object({\n address: TypeAddress,\n data: TypeHex(),\n topics: Type.Array(TypeHex()),\n }),\n ),\n status: TypeHex({\n description: \"0x1 for success, 0x0 for failure\",\n }),\n blockHash: TypeHex(),\n blockNumber: TypeHex(),\n gasUsed: TypeHex(),\n transactionHash: TypeHex(),\n }),\n ),\n ),\n }),\n },\n {\n description:\n \"This method is used to get the status of calls IDs returned from wallet_sendPreparedCalls.\",\n },\n);\n"]}
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../../src/rpc/request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EACL,kBAAkB,EAClB,eAAe,GAChB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,WAAW,EACX,0BAA0B,EAC1B,mBAAmB,EACnB,OAAO,EACP,sBAAsB,EACtB,oBAAoB,EACpB,2BAA2B,EAC3B,2BAA2B,EAC3B,QAAQ,GACT,MAAM,eAAe,CAAC;AAEvB,MAAM,CAAC,MAAM,wBAAwB,GAAG,IAAI,CAAC,MAAM,CACjD;IACE,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,0BAA0B,CAAC;QAChD,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;YACjB,IAAI,CAAC,MAAM,CAAC;gBACV,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;oBACf,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;oBACnC,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;iBACpC,CAAC;gBACF,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC;oBACf,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,WAAW,CAAC,CAAC;oBACrD,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE,CAAC,WAAW,CAAC,CAAC;iBACtD,CAAC;gBACF,OAAO,EAAE,OAAO,EAAE;gBAClB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC;oBACrB,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;yBAChC,MAAM,CAAC,CAAC,KAA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,CAAC,MAAM,CAAC;QACtB,EAAE,EAAE,OAAO,EAAE;QACb,OAAO,EAAE,OAAO,EAAE;QAClB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;QACtB,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC;YACjB,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;gBAChB,WAAW,EACT,+EAA+E;aAClF,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;gBAChB,WAAW,EACT,4FAA4F;aAC/F,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;gBAChB,WAAW,EACT,+DAA+D;aAClE,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;gBAChB,WAAW,EACT,mGAAmG;aACtG,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;gBAChB,WAAW,EACT,mGAAmG;aACtG,CAAC;SACH,CAAC;QACF,QAAQ,EAAE,IAAI,CAAC,QAAQ,CACrB,IAAI,CAAC,KAAK,CACR,IAAI,CAAC,MAAM,CAAC;YACV,IAAI,EAAE,IAAI,CAAC,KAAK,CACd,IAAI,CAAC,MAAM,CAAC;gBACV,OAAO,EAAE,WAAW;gBACpB,IAAI,EAAE,OAAO,EAAE;gBACf,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;aAC9B,CAAC,CACH;YACD,MAAM,EAAE,OAAO,CAAC;gBACd,WAAW,EAAE,kCAAkC;aAChD,CAAC;YACF,SAAS,EAAE,OAAO,EAAE;YACpB,WAAW,EAAE,OAAO,EAAE;YACtB,OAAO,EAAE,OAAO,EAAE;YAClB,eAAe,EAAE,OAAO,EAAE;SAC3B,CAAC,CACH,CACF;KACF,CAAC;CACH,EACD;IACE,WAAW,EACT,4FAA4F;CAC/F,CACF,CAAC","sourcesContent":["import { Type } from \"@sinclair/typebox\";\nimport { Capabilities } from \"../capabilities/index.js\";\nimport {\n PermissionsContext,\n PermissionsData,\n} from \"../capabilities/permissions/index.js\";\nimport {\n TypeAddress,\n TypeBase64UrlEncodedString,\n TypeCreationOptions,\n TypeHex,\n TypeSerializedInitcode,\n TypeSignatureRequest,\n TypeUserOperationRequest_v6,\n TypeUserOperationRequest_v7,\n TypeUuid,\n} from \"../schemas.js\";\n\nexport const wallet_sendPreparedCalls = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_sendPreparedCalls\"),\n params: Type.Tuple([\n Type.Object({\n type: Type.Union([\n Type.Literal(\"user-operation-v060\"),\n Type.Literal(\"user-operation-v070\"),\n ]),\n data: Type.Union([\n Type.Omit(TypeUserOperationRequest_v6, [\"signature\"]),\n Type.Omit(TypeUserOperationRequest_v7, [\"signature\"]),\n ]),\n chainId: TypeHex(),\n signature: Type.Object({\n type: Type.Transform(Type.String())\n .Decode((value) => {\n if (value.toLowerCase() !== \"ecdsa\") {\n throw new Error(\"Invalid signature type, must be 'ecdsa'\");\n }\n\n return \"ecdsa\" as const;\n })\n .Encode((value) => value),\n signature: TypeHex(),\n }),\n capabilities: Type.Optional(\n Type.Object({ permissions: PermissionsContext }),\n ),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n preparedCallIds: Type.Array(TypeHex()),\n }),\n },\n {\n description:\n \"This method is used after signing the signatureRequest returned from prepareCalls to submit a user operation\",\n },\n);\n\nexport const wallet_prepareCalls = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_prepareCalls\"),\n params: Type.Tuple([\n Type.Object({\n calls: Type.Array(\n Type.Object({\n to: TypeAddress,\n data: Type.Optional(TypeHex()),\n value: Type.Optional(TypeHex()),\n }),\n ),\n from: TypeAddress,\n chainId: TypeHex(),\n capabilities: Type.Optional(Capabilities),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n type: Type.Union([\n Type.Literal(\"user-operation-v060\"),\n Type.Literal(\"user-operation-v070\"),\n ]),\n data: Type.Union([\n Type.Omit(TypeUserOperationRequest_v6, [\"signature\"]),\n Type.Omit(TypeUserOperationRequest_v7, [\"signature\"]),\n ]),\n chainId: TypeHex(),\n signatureRequest: TypeSignatureRequest,\n }),\n },\n {\n description:\n \"This method is used to prepare a user operation for submission. It will return a built user operation and a signature request which needs to be signed by the user before submitting to wallet_sendPreparedCalls\",\n },\n);\n\nexport const wallet_requestAccount = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_requestAccount\"),\n params: Type.Tuple([\n Type.Union([\n Type.Object({\n signerAddress: TypeAddress,\n id: Type.Optional(TypeUuid),\n creationHint: TypeCreationOptions,\n includeCounterfactualInfo: Type.Optional(\n Type.Boolean({ default: false }),\n ),\n }),\n Type.Object({\n accountAddress: TypeAddress,\n includeCounterfactualInfo: Type.Optional(\n Type.Boolean({ default: false }),\n ),\n }),\n ]),\n ]),\n }),\n ReturnType: Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n counterfactualInfo: Type.Optional(TypeSerializedInitcode),\n }),\n },\n {\n description: `This method is used to get the smart account address and relevant info for a given signer. If an account does not already exist for a given signer, this method will create one before returning the counterfactual address.`,\n },\n);\n\nexport const wallet_createAccount = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_createAccount\"),\n params: Type.Tuple([\n Type.Object({\n signerAddress: TypeAddress,\n id: Type.Optional(TypeUuid),\n creationOptions: TypeCreationOptions,\n }),\n ]),\n }),\n ReturnType: Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n }),\n },\n {\n description: `This method is used to create a smart account for a given signer. This method is primarly used to import existing accounts. For most cases, you should use wallet_requestAccount instead.`,\n },\n);\n\nexport const wallet_listAccounts = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_listAccounts\"),\n params: Type.Tuple([\n Type.Object({\n signerAddress: TypeAddress,\n limit: Type.Optional(\n Type.Number({ minimum: 1, maximum: 100, default: 100 }),\n ),\n after: Type.Optional(TypeBase64UrlEncodedString),\n }),\n ]),\n }),\n ReturnType: Type.Object({\n accounts: Type.Array(\n Type.Object({\n accountAddress: TypeAddress,\n id: TypeUuid,\n }),\n ),\n meta: Type.Object({\n totalCount: Type.Number(),\n after: Type.Union([TypeBase64UrlEncodedString, Type.Null()]),\n }),\n }),\n },\n {\n description:\n \"This method is used to list all smart accounts for a given signer.\",\n },\n);\n\nexport const wallet_createSession = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_createSession\"),\n params: Type.Tuple([\n Type.Intersect([\n PermissionsData,\n Type.Object({ account: TypeAddress }),\n ]),\n ]),\n }),\n ReturnType: Type.Object({\n sessionId: TypeHex(),\n signatureRequest: TypeSignatureRequest,\n }),\n },\n {\n description:\n \"This method is used to create a session for a given address with specified permissions.\",\n },\n);\n\nexport const wallet_getCallsStatus = Type.Object(\n {\n Request: Type.Object({\n method: Type.Literal(\"wallet_getCallsStatus\"),\n params: Type.Tuple([\n TypeHex({\n description: \"The call ID returned from wallet_sendPreparedCalls\",\n }),\n ]),\n }),\n ReturnType: Type.Object({\n id: TypeHex(),\n chainId: TypeHex(),\n atomic: Type.Boolean(),\n status: Type.Union([\n Type.Literal(100, {\n description:\n \"Batch has been received by the wallet but has not completed execution onchain\",\n }),\n Type.Literal(200, {\n description:\n \"Batch has been included onchain without reverts, receipts array contains info of all calls\",\n }),\n Type.Literal(400, {\n description:\n \"Batch has not been included onchain and wallet will not retry\",\n }),\n Type.Literal(500, {\n description:\n \"Batch reverted *completely* and only changes related to gas charge may have been included onchain\",\n }),\n Type.Literal(600, {\n description:\n \"Batch reverted *partially* and some changes related to batch calls may have been included onchain\",\n }),\n ]),\n receipts: Type.Optional(\n Type.Array(\n Type.Object({\n logs: Type.Array(\n Type.Object({\n address: TypeAddress,\n data: TypeHex(),\n topics: Type.Array(TypeHex()),\n }),\n ),\n status: TypeHex({\n description: \"0x1 for success, 0x0 for failure\",\n }),\n blockHash: TypeHex(),\n blockNumber: TypeHex(),\n gasUsed: TypeHex(),\n transactionHash: TypeHex(),\n }),\n ),\n ),\n }),\n },\n {\n description:\n \"This method is used to get the status of calls IDs returned from wallet_sendPreparedCalls.\",\n },\n);\n"]}
@@ -8,6 +8,29 @@ export declare const WalletServerRpcSchema: {
8
8
  paymasterService?: {
9
9
  policyId: string;
10
10
  } | undefined;
11
+ gasParamsOverride?: {
12
+ callGasLimit?: `0x${string}` | {
13
+ multiplier: number;
14
+ } | undefined;
15
+ verificationGasLimit?: `0x${string}` | {
16
+ multiplier: number;
17
+ } | undefined;
18
+ preVerificationGas?: `0x${string}` | {
19
+ multiplier: number;
20
+ } | undefined;
21
+ maxFeePerGas?: `0x${string}` | {
22
+ multiplier: number;
23
+ } | undefined;
24
+ maxPriorityFeePerGas?: `0x${string}` | {
25
+ multiplier: number;
26
+ } | undefined;
27
+ paymasterVerificationGasLimit?: `0x${string}` | {
28
+ multiplier: number;
29
+ } | undefined;
30
+ paymasterPostOpGasLimit?: `0x${string}` | {
31
+ multiplier: number;
32
+ } | undefined;
33
+ } | undefined;
11
34
  } | undefined;
12
35
  chainId: `0x${string}`;
13
36
  calls: {
@@ -87,7 +110,7 @@ export declare const WalletServerRpcSchema: {
87
110
  } | undefined;
88
111
  type: "user-operation-v060" | "user-operation-v070";
89
112
  signature: {
90
- type: string;
113
+ type: "ecdsa";
91
114
  signature: `0x${string}`;
92
115
  };
93
116
  chainId: `0x${string}`;
@@ -194,45 +217,45 @@ export declare const WalletServerRpcSchema: {
194
217
  publicKey: `0x${string}`;
195
218
  };
196
219
  permissions: ({
197
- type: import("@account-kit/smart-contracts/experimental").PermissionType.NATIVE_TOKEN_TRANSFER;
220
+ type: "native-token-transfer";
198
221
  data: {
199
222
  allowance: `0x${string}`;
200
223
  };
201
224
  } | {
202
- type: import("@account-kit/smart-contracts/experimental").PermissionType.ERC20_TOKEN_TRANSFER;
225
+ type: "erc20-token-transfer";
203
226
  data: {
204
227
  allowance: `0x${string}`;
205
228
  address: `0x${string}`;
206
229
  };
207
230
  } | {
208
- type: import("@account-kit/smart-contracts/experimental").PermissionType.GAS_LIMIT;
231
+ type: "gas-limit";
209
232
  data: {
210
233
  limit: `0x${string}`;
211
234
  };
212
235
  } | {
213
- type: import("@account-kit/smart-contracts/experimental").PermissionType.CONTRACT_ACCESS;
236
+ type: "contract-access";
214
237
  data: {
215
238
  address: `0x${string}`;
216
239
  };
217
240
  } | {
218
- type: import("@account-kit/smart-contracts/experimental").PermissionType.ACCOUNT_FUNCTIONS;
241
+ type: "account-functions";
219
242
  data: {
220
243
  functions: `0x${string}`[];
221
244
  };
222
245
  } | {
223
- type: import("@account-kit/smart-contracts/experimental").PermissionType.FUNCTIONS_ON_ALL_CONTRACTS;
246
+ type: "functions-on-all-contracts";
224
247
  data: {
225
248
  functions: `0x${string}`[];
226
249
  };
227
250
  } | {
228
- type: import("@account-kit/smart-contracts/experimental").PermissionType.FUNCTIONS_ON_CONTRACT;
251
+ type: "functions-on-contract";
229
252
  data: {
230
253
  address: `0x${string}`;
231
254
  functions: `0x${string}`[];
232
255
  };
233
256
  } | {
234
257
  data?: undefined;
235
- type: import("@account-kit/smart-contracts/experimental").PermissionType.ROOT;
258
+ type: "root";
236
259
  })[];
237
260
  } & {
238
261
  account: `0x${string}`;
@@ -1,5 +1,5 @@
1
1
  import {} from "@sinclair/typebox";
2
2
  import { RpcSchema } from "ox";
3
- import * as Requests from "./request";
3
+ import * as Requests from "./request.js";
4
4
  export const WalletServerRpcSchema = RpcSchema.from();
5
5
  //# sourceMappingURL=schema.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,WAAW,CAAC;AAEtC,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC,IAAI,EAQhD,CAAC","sourcesContent":["import { type Static } from \"@sinclair/typebox\";\nimport { RpcSchema } from \"ox\";\nimport * as Requests from \"./request\";\n\nexport const WalletServerRpcSchema = RpcSchema.from<\n | Static<typeof Requests.wallet_prepareCalls>\n | Static<typeof Requests.wallet_sendPreparedCalls>\n | Static<typeof Requests.wallet_createAccount>\n | Static<typeof Requests.wallet_requestAccount>\n | Static<typeof Requests.wallet_listAccounts>\n | Static<typeof Requests.wallet_createSession>\n | Static<typeof Requests.wallet_getCallsStatus>\n>();\n\nexport type WalletServerRpcSchemaType = typeof WalletServerRpcSchema;\n\ntype MethodToViemRpcSchema = {\n [K in WalletServerRpcSchemaType[\"Request\"][\"method\"]]: {\n Method: K;\n Parameters: Extract<\n WalletServerRpcSchemaType[\"Request\"],\n { method: K }\n >[\"params\"];\n ReturnType: Extract<\n WalletServerRpcSchemaType,\n { Request: { method: K } }\n >[\"ReturnType\"];\n };\n};\n\n// TODO: figure out how we can do this without manually listing all the methods\nexport type WalletServerViemRpcSchema = [\n MethodToViemRpcSchema[\"wallet_createAccount\"],\n MethodToViemRpcSchema[\"wallet_requestAccount\"],\n MethodToViemRpcSchema[\"wallet_listAccounts\"],\n MethodToViemRpcSchema[\"wallet_prepareCalls\"],\n MethodToViemRpcSchema[\"wallet_sendPreparedCalls\"],\n MethodToViemRpcSchema[\"wallet_getCallsStatus\"],\n MethodToViemRpcSchema[\"wallet_createSession\"],\n];\n"]}
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/rpc/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAkC,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AAC/B,OAAO,KAAK,QAAQ,MAAM,cAAc,CAAC;AAEzC,MAAM,CAAC,MAAM,qBAAqB,GAAG,SAAS,CAAC,IAAI,EAQhD,CAAC","sourcesContent":["import { type Static, type StaticDecode } from \"@sinclair/typebox\";\nimport { RpcSchema } from \"ox\";\nimport * as Requests from \"./request.js\";\n\nexport const WalletServerRpcSchema = RpcSchema.from<\n | Static<typeof Requests.wallet_prepareCalls>\n | StaticDecode<typeof Requests.wallet_sendPreparedCalls>\n | Static<typeof Requests.wallet_createAccount>\n | Static<typeof Requests.wallet_requestAccount>\n | Static<typeof Requests.wallet_listAccounts>\n | Static<typeof Requests.wallet_createSession>\n | Static<typeof Requests.wallet_getCallsStatus>\n>();\n\nexport type WalletServerRpcSchemaType = typeof WalletServerRpcSchema;\n\ntype MethodToViemRpcSchema = {\n [K in WalletServerRpcSchemaType[\"Request\"][\"method\"]]: {\n Method: K;\n Parameters: Extract<\n WalletServerRpcSchemaType[\"Request\"],\n { method: K }\n >[\"params\"];\n ReturnType: Extract<\n WalletServerRpcSchemaType,\n { Request: { method: K } }\n >[\"ReturnType\"];\n };\n};\n\n// TODO: figure out how we can do this without manually listing all the methods\nexport type WalletServerViemRpcSchema = [\n MethodToViemRpcSchema[\"wallet_createAccount\"],\n MethodToViemRpcSchema[\"wallet_requestAccount\"],\n MethodToViemRpcSchema[\"wallet_listAccounts\"],\n MethodToViemRpcSchema[\"wallet_prepareCalls\"],\n MethodToViemRpcSchema[\"wallet_sendPreparedCalls\"],\n MethodToViemRpcSchema[\"wallet_getCallsStatus\"],\n MethodToViemRpcSchema[\"wallet_createSession\"],\n];\n"]}
@@ -1,9 +1,9 @@
1
- export { LightAccountFactoryAbi_V1_0_1 } from "./LightAccountFactoryAbi_V1_0_1";
2
- export { LightAccountFactoryAbi_V1_0_2 } from "./LightAccountFactoryAbi_V1_0_2";
3
- export { LightAccountFactoryAbi_V1_1_0 } from "./LightAccountFactoryAbi_V1_1_0";
4
- export { LightAccountFactoryAbi_V2_0_0 } from "./LightAccountFactoryAbi_V2_0_0";
5
- export { ModularAccountFactoryAbi_V2_0_0 } from "./ModularAccountFactoryAbi_V2_0_0";
6
- export { MultiOwnerLightAccountFactoryAbi_V2_0_0 } from "./MultiOwnerLightAccountFactoryAbi_V2_0_0";
7
- export { MultiOwnerModularAccountFactoryAbi_V1_0_0 } from "./MultiOwnerModularAccountFactoryAbi_V1_0_0";
8
- export { MultisigModularAccountFactoryAbi_V1_0_0 } from "./MultisigModularAccountFactoryAbi_V1_0_0";
1
+ export { LightAccountFactoryAbi_V1_0_1 } from "./LightAccountFactoryAbi_V1_0_1.js";
2
+ export { LightAccountFactoryAbi_V1_0_2 } from "./LightAccountFactoryAbi_V1_0_2.js";
3
+ export { LightAccountFactoryAbi_V1_1_0 } from "./LightAccountFactoryAbi_V1_1_0.js";
4
+ export { LightAccountFactoryAbi_V2_0_0 } from "./LightAccountFactoryAbi_V2_0_0.js";
5
+ export { ModularAccountFactoryAbi_V2_0_0 } from "./ModularAccountFactoryAbi_V2_0_0.js";
6
+ export { MultiOwnerLightAccountFactoryAbi_V2_0_0 } from "./MultiOwnerLightAccountFactoryAbi_V2_0_0.js";
7
+ export { MultiOwnerModularAccountFactoryAbi_V1_0_0 } from "./MultiOwnerModularAccountFactoryAbi_V1_0_0.js";
8
+ export { MultisigModularAccountFactoryAbi_V1_0_0 } from "./MultisigModularAccountFactoryAbi_V1_0_0.js";
9
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AACpF,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,yCAAyC,EAAE,MAAM,6CAA6C,CAAC;AACxG,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/abi/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACnF,OAAO,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AACvF,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC;AACvG,OAAO,EAAE,yCAAyC,EAAE,MAAM,gDAAgD,CAAC;AAC3G,OAAO,EAAE,uCAAuC,EAAE,MAAM,8CAA8C,CAAC"}
@@ -5,5 +5,28 @@ export declare const Capabilities: import("@sinclair/typebox").TObject<{
5
5
  paymasterService: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
6
6
  policyId: import("@sinclair/typebox").TString;
7
7
  }>>;
8
+ gasParamsOverride: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TObject<{
9
+ preVerificationGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
10
+ multiplier: import("@sinclair/typebox").TNumber;
11
+ }>]>>;
12
+ verificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
13
+ multiplier: import("@sinclair/typebox").TNumber;
14
+ }>]>>;
15
+ callGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
16
+ multiplier: import("@sinclair/typebox").TNumber;
17
+ }>]>>;
18
+ paymasterVerificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
19
+ multiplier: import("@sinclair/typebox").TNumber;
20
+ }>]>>;
21
+ paymasterPostOpGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
22
+ multiplier: import("@sinclair/typebox").TNumber;
23
+ }>]>>;
24
+ maxFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
25
+ multiplier: import("@sinclair/typebox").TNumber;
26
+ }>]>>;
27
+ maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
28
+ multiplier: import("@sinclair/typebox").TNumber;
29
+ }>]>>;
30
+ }>>;
8
31
  }>;
9
32
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/capabilities/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;;;;EAMxB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/capabilities/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOxB,CAAC"}
@@ -0,0 +1,27 @@
1
+ export declare const Mutliplier: import("@sinclair/typebox").TObject<{
2
+ multiplier: import("@sinclair/typebox").TNumber;
3
+ }>;
4
+ export declare const GasParamsOverrideCapability: import("@sinclair/typebox").TObject<{
5
+ preVerificationGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
6
+ multiplier: import("@sinclair/typebox").TNumber;
7
+ }>]>>;
8
+ verificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
9
+ multiplier: import("@sinclair/typebox").TNumber;
10
+ }>]>>;
11
+ callGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
12
+ multiplier: import("@sinclair/typebox").TNumber;
13
+ }>]>>;
14
+ paymasterVerificationGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
15
+ multiplier: import("@sinclair/typebox").TNumber;
16
+ }>]>>;
17
+ paymasterPostOpGasLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
18
+ multiplier: import("@sinclair/typebox").TNumber;
19
+ }>]>>;
20
+ maxFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
21
+ multiplier: import("@sinclair/typebox").TNumber;
22
+ }>]>>;
23
+ maxPriorityFeePerGas: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">, import("@sinclair/typebox").TObject<{
24
+ multiplier: import("@sinclair/typebox").TNumber;
25
+ }>]>>;
26
+ }>;
27
+ //# sourceMappingURL=overrides.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"overrides.d.ts","sourceRoot":"","sources":["../../../src/capabilities/overrides.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;EAA6C,CAAC;AAGrE,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;EAavC,CAAC"}
@@ -1,44 +1,84 @@
1
- import { PermissionType } from "@account-kit/smart-contracts/experimental";
2
1
  import { type TLiteral, type TObject } from "@sinclair/typebox";
2
+ export declare const TypePermission: import("@sinclair/typebox").TUnion<[TObject<{
3
+ type: TLiteral<"native-token-transfer">;
4
+ data: TObject<{
5
+ allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
6
+ }>;
7
+ }>, TObject<{
8
+ type: TLiteral<"erc20-token-transfer">;
9
+ data: TObject<{
10
+ allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
11
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
12
+ }>;
13
+ }>, TObject<{
14
+ type: TLiteral<"gas-limit">;
15
+ data: TObject<{
16
+ limit: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
17
+ }>;
18
+ }>, TObject<{
19
+ type: TLiteral<"contract-access">;
20
+ data: TObject<{
21
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
22
+ }>;
23
+ }>, TObject<{
24
+ type: TLiteral<"account-functions">;
25
+ data: TObject<{
26
+ functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
27
+ }>;
28
+ }>, TObject<{
29
+ type: TLiteral<"functions-on-all-contracts">;
30
+ data: TObject<{
31
+ functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
32
+ }>;
33
+ }>, TObject<{
34
+ type: TLiteral<"functions-on-contract">;
35
+ data: TObject<{
36
+ address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
37
+ functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
38
+ }>;
39
+ }>, TObject<{
40
+ type: TLiteral<"root">;
41
+ data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
42
+ }>]>;
3
43
  export declare const PermissionsArray: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[TObject<{
4
- type: TLiteral<PermissionType.NATIVE_TOKEN_TRANSFER>;
44
+ type: TLiteral<"native-token-transfer">;
5
45
  data: TObject<{
6
46
  allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
7
47
  }>;
8
48
  }>, TObject<{
9
- type: TLiteral<PermissionType.ERC20_TOKEN_TRANSFER>;
49
+ type: TLiteral<"erc20-token-transfer">;
10
50
  data: TObject<{
11
51
  allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
12
52
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
13
53
  }>;
14
54
  }>, TObject<{
15
- type: TLiteral<PermissionType.GAS_LIMIT>;
55
+ type: TLiteral<"gas-limit">;
16
56
  data: TObject<{
17
57
  limit: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
18
58
  }>;
19
59
  }>, TObject<{
20
- type: TLiteral<PermissionType.CONTRACT_ACCESS>;
60
+ type: TLiteral<"contract-access">;
21
61
  data: TObject<{
22
62
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
23
63
  }>;
24
64
  }>, TObject<{
25
- type: TLiteral<PermissionType.ACCOUNT_FUNCTIONS>;
65
+ type: TLiteral<"account-functions">;
26
66
  data: TObject<{
27
67
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
28
68
  }>;
29
69
  }>, TObject<{
30
- type: TLiteral<PermissionType.FUNCTIONS_ON_ALL_CONTRACTS>;
70
+ type: TLiteral<"functions-on-all-contracts">;
31
71
  data: TObject<{
32
72
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
33
73
  }>;
34
74
  }>, TObject<{
35
- type: TLiteral<PermissionType.FUNCTIONS_ON_CONTRACT>;
75
+ type: TLiteral<"functions-on-contract">;
36
76
  data: TObject<{
37
77
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
38
78
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
39
79
  }>;
40
80
  }>, TObject<{
41
- type: TLiteral<PermissionType.ROOT>;
81
+ type: TLiteral<"root">;
42
82
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
43
83
  }>]>>;
44
84
  export declare const PermissionsContext: TObject<{
@@ -52,44 +92,44 @@ export declare const PermissionsData: TObject<{
52
92
  publicKey: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
53
93
  }>;
54
94
  permissions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TUnion<[TObject<{
55
- type: TLiteral<PermissionType.NATIVE_TOKEN_TRANSFER>;
95
+ type: TLiteral<"native-token-transfer">;
56
96
  data: TObject<{
57
97
  allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
58
98
  }>;
59
99
  }>, TObject<{
60
- type: TLiteral<PermissionType.ERC20_TOKEN_TRANSFER>;
100
+ type: TLiteral<"erc20-token-transfer">;
61
101
  data: TObject<{
62
102
  allowance: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
63
103
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
64
104
  }>;
65
105
  }>, TObject<{
66
- type: TLiteral<PermissionType.GAS_LIMIT>;
106
+ type: TLiteral<"gas-limit">;
67
107
  data: TObject<{
68
108
  limit: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
69
109
  }>;
70
110
  }>, TObject<{
71
- type: TLiteral<PermissionType.CONTRACT_ACCESS>;
111
+ type: TLiteral<"contract-access">;
72
112
  data: TObject<{
73
113
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
74
114
  }>;
75
115
  }>, TObject<{
76
- type: TLiteral<PermissionType.ACCOUNT_FUNCTIONS>;
116
+ type: TLiteral<"account-functions">;
77
117
  data: TObject<{
78
118
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
79
119
  }>;
80
120
  }>, TObject<{
81
- type: TLiteral<PermissionType.FUNCTIONS_ON_ALL_CONTRACTS>;
121
+ type: TLiteral<"functions-on-all-contracts">;
82
122
  data: TObject<{
83
123
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
84
124
  }>;
85
125
  }>, TObject<{
86
- type: TLiteral<PermissionType.FUNCTIONS_ON_CONTRACT>;
126
+ type: TLiteral<"functions-on-contract">;
87
127
  data: TObject<{
88
128
  address: import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">;
89
129
  functions: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TTemplateLiteralSyntax<"0x${string}">>;
90
130
  }>;
91
131
  }>, TObject<{
92
- type: TLiteral<PermissionType.ROOT>;
132
+ type: TLiteral<"root">;
93
133
  data: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TNever>;
94
134
  }>]>>;
95
135
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/permissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAC3E,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,OAAO,EAEb,MAAM,mBAAmB,CAAC;AAqF3B,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAc5B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;EAE7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;EAIhC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/permissions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,QAAQ,EAEb,KAAK,OAAO,EAEb,MAAM,mBAAmB,CAAC;AAwG3B,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWzB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAA8C,CAAC;AAE5E,eAAO,MAAM,kBAAkB;;EAE7B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK1B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;EAIhC,CAAC"}
@@ -10,5 +10,5 @@ export type GrantPermissionsParams<TAccount extends JsonRpcAccount<Address> | un
10
10
  export type GrantPermissionsResult = {
11
11
  context: Hex;
12
12
  };
13
- export declare function grantPermissions<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined>(client: InnerWalletApiClient, signer: SmartAccountSigner, params: GrantPermissionsParams<TAccount>): Promise<GrantPermissionsResult>;
13
+ export declare function grantPermissions<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined>(client: InnerWalletApiClient<TAccount>, signer: SmartAccountSigner, params: GrantPermissionsParams<TAccount>): Promise<GrantPermissionsResult>;
14
14
  //# sourceMappingURL=grantPermissions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"grantPermissions.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/grantPermissions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,WAAW,EAChB,KAAK,cAAc,EAEpB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wC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AAC,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAC/B;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,GACpB;IAAE,OAAO,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC;AAE3B,MAAM,MAAM,sBAAsB,GAAG;IACnC,OAAO,EAAE,GAAG,CAAC;CACd,CAAC;AAEF,wBAAsB,gBAAgB,CACpC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,GACvC,OAAO,CAAC,sBAAsB,CAAC,CAAC"}
@@ -2,8 +2,8 @@ import type { SmartAccountSigner, SmartContractAccount } from "@aa-sdk/core";
2
2
  import type { Static } from "@sinclair/typebox";
3
3
  import type { Address } from "abitype";
4
4
  import { type IsUndefined, type JsonRpcAccount } from "viem";
5
- import type { wallet_requestAccount } from "../../rpc/request";
6
- import type { InnerWalletApiClient } from "../../types";
5
+ import type { wallet_requestAccount } from "../../rpc/request.js";
6
+ import type { InnerWalletApiClient } from "../../types.js";
7
7
  export type RequestAccountParams<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined> = IsUndefined<TAccount> extends true ? Omit<Extract<Static<typeof wallet_requestAccount>["Request"]["params"][0], {
8
8
  signerAddress: Address;
9
9
  }>, "signerAddress" | "includeCounterfactualInfo"> : never;
@@ -1 +1 @@
1
- {"version":3,"file":"requestAccount.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/requestAccount.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,KAAK,EAAE,OAAO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AAE,KAAK,cAAc,EAAE,MAAM,MAAM,CAAC;AAErE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,MAAM,MAAM,oBAAoB,CAC9B,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,IAEb,WAAW,CAAC,QAAQ,CAAC,SAAS,IAAI,GAC9B,IAAI,CACF,OAAO,CACL,MAAM,CAAC,OAAO,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC5D;IAAE,aAAa,EAAE,OAAO,CAAA;CAAE,CAC3B,EACD,eAAe,GAAG,2BAA2B,CAC9C,GACD,KAAK,CAAC;AAGZ,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAExD,wBAAgB,cAAc,CAC5B,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,CAAC,EAAE,oBAAoB,CAAC,QAAQ,CAAC,GACtC,OAAO,CAAC,oBAAoB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
- import type { Static } from "@sinclair/typebox";
1
+ import type { Static, StaticDecode } from "@sinclair/typebox";
2
2
  import type { wallet_sendPreparedCalls } from "../../rpc/request";
3
3
  import type { InnerWalletApiClient } from "../../types";
4
- export type SendPreparedCallsParams = Omit<Static<typeof wallet_sendPreparedCalls>["Request"]["params"][0], "chainId">;
4
+ export type SendPreparedCallsParams = Omit<StaticDecode<typeof wallet_sendPreparedCalls>["Request"]["params"][0], "chainId">;
5
5
  export type SendPreparedCallsResult = Static<typeof wallet_sendPreparedCalls>["ReturnType"];
6
6
  export declare function sendPreparedCalls(client: InnerWalletApiClient, params: SendPreparedCallsParams): Promise<SendPreparedCallsResult>;
7
7
  //# sourceMappingURL=sendPreparedCalls.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGxD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,MAAM,CAAC,OAAO,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EAC/D,SAAS,CACV,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,OAAO,wBAAwB,CAChC,CAAC,YAAY,CAAC,CAAC;AAEhB,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAKlC"}
1
+ {"version":3,"file":"sendPreparedCalls.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/sendPreparedCalls.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACxC,YAAY,CAAC,OAAO,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,EACrE,SAAS,CACV,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,MAAM,CAC1C,OAAO,wBAAwB,CAChC,CAAC,YAAY,CAAC,CAAC;AAEhB,wBAAsB,iBAAiB,CACrC,MAAM,EAAE,oBAAoB,EAC5B,MAAM,EAAE,uBAAuB,GAC9B,OAAO,CAAC,uBAAuB,CAAC,CAKlC"}
@@ -1,6 +1,6 @@
1
+ import type { SmartAccountSigner } from "@aa-sdk/core";
1
2
  import { type Address, type Hex, type JsonRpcAccount, type SignableMessage } from "viem";
2
3
  import type { InnerWalletApiClient } from "../../types";
3
- import type { SmartAccountSigner } from "@aa-sdk/core";
4
4
  export type SignMessageParams = SignableMessage;
5
5
  export type SignMessageResult = Hex;
6
6
  export declare function signMessage<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined>(client: InnerWalletApiClient<TAccount>, signer: SmartAccountSigner, params: SignMessageParams): Promise<SignMessageResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAEpC,wBAAsB,WAAW,CAC/B,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signMessage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,eAAe,EACrB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGxD,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC;AAEpC,wBAAsB,WAAW,CAC/B,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,iBAAiB,GACxB,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import type { SmartAccountSigner } from "@aa-sdk/core";
2
2
  import type { Static } from "@sinclair/typebox";
3
3
  import { type Hex } from "viem";
4
- import { TypeSignatureRequest } from "../../schemas";
4
+ import { TypeSignatureRequest } from "../../schemas.js";
5
5
  export type SignSignatureRequestParams = Static<typeof TypeSignatureRequest>;
6
6
  export type SignSignatureRequestResult = {
7
7
  type: "ecdsa";
@@ -1 +1 @@
1
- {"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"signSignatureRequest.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signSignatureRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAGxD,MAAM,MAAM,0BAA0B,GAAG,MAAM,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7E,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,GAAG,CAAC;CAChB,CAAC;AAEF,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,0BAA0B,GACjC,OAAO,CAAC,0BAA0B,CAAC,CAAC"}
@@ -1,6 +1,6 @@
1
+ import type { SmartAccountSigner } from "@aa-sdk/core";
1
2
  import { type Address, type Hex, type JsonRpcAccount, type TypedDataDefinition } from "viem";
2
3
  import type { InnerWalletApiClient } from "../../types";
3
- import type { SmartAccountSigner } from "@aa-sdk/core";
4
4
  export type SignTypedDataParams = TypedDataDefinition;
5
5
  export type SignTypedDataResult = Hex;
6
6
  export declare function signTypedData<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined>(client: InnerWalletApiClient<TAccount>, signer: SmartAccountSigner, params: SignTypedDataParams): Promise<SignTypedDataResult>;
@@ -1 +1 @@
1
- {"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGvD,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEtC,wBAAsB,aAAa,CACjC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"signTypedData.d.ts","sourceRoot":"","sources":["../../../../src/client/actions/signTypedData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,KAAK,OAAO,EACZ,KAAK,GAAG,EACR,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACzB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGxD,MAAM,MAAM,mBAAmB,GAAG,mBAAmB,CAAC;AAEtD,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAEtC,wBAAsB,aAAa,CACjC,QAAQ,SAAS,cAAc,CAAC,OAAO,CAAC,GAAG,SAAS,GAChD,cAAc,CAAC,OAAO,CAAC,GACvB,SAAS,EAEb,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,EAC1B,MAAM,EAAE,mBAAmB,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAAC"}
@@ -2,13 +2,13 @@ import type { SmartAccountSigner } from "@aa-sdk/core";
2
2
  import type { Hex, JsonRpcAccount, SignableMessage, TypedDataDefinition } from "viem";
3
3
  import type { SendPreparedCallsParams, SendPreparedCallsResult } from "../isomorphic/actions/sendPreparedCalls";
4
4
  import type { InnerWalletApiClient } from "../types";
5
- import { type CreateAccountParams, type CreateAccountResult } from "./actions/createAccount";
6
- import { type ListAccountsParams, type ListAccountsResult } from "./actions/listAccounts";
7
- import { type PrepareCallsParams, type PrepareCallsResult } from "./actions/prepareCalls";
8
- import { type RequestAccountParams, type RequestAccountResult } from "./actions/requestAccount";
9
- import { type GetCallsStatusParams, type GetCallsStatusResult } from "./actions/getCallsStatus";
10
- import { type SignSignatureRequestParams, type SignSignatureRequestResult } from "./actions/signSignatureRequest";
11
- import { type GrantPermissionsParams, type GrantPermissionsResult } from "./actions/grantPermissions";
5
+ import { type CreateAccountParams, type CreateAccountResult } from "./actions/createAccount.js";
6
+ import { type GetCallsStatusParams, type GetCallsStatusResult } from "./actions/getCallsStatus.js";
7
+ import { type GrantPermissionsParams, type GrantPermissionsResult } from "./actions/grantPermissions.js";
8
+ import { type ListAccountsParams, type ListAccountsResult } from "./actions/listAccounts.js";
9
+ import { type PrepareCallsParams, type PrepareCallsResult } from "./actions/prepareCalls.js";
10
+ import { type RequestAccountParams, type RequestAccountResult } from "./actions/requestAccount.js";
11
+ import { type SignSignatureRequestParams, type SignSignatureRequestResult } from "./actions/signSignatureRequest.js";
12
12
  export type SmartWalletActions<TAccount extends JsonRpcAccount | undefined = JsonRpcAccount | undefined> = {
13
13
  requestAccount: (params?: RequestAccountParams<TAccount>) => Promise<RequestAccountResult>;
14
14
  prepareCalls: (params: PrepareCallsParams<TAccount>) => Promise<PrepareCallsResult>;
@@ -19,7 +19,7 @@ export type SmartWalletActions<TAccount extends JsonRpcAccount | undefined = Jso
19
19
  signSignatureRequest: (params: SignSignatureRequestParams) => Promise<SignSignatureRequestResult>;
20
20
  signMessage: (params: SignableMessage) => Promise<Hex>;
21
21
  signTypedData: (params: TypedDataDefinition) => Promise<Hex>;
22
- grantPermissions: (params: GrantPermissionsParams) => Promise<GrantPermissionsResult>;
22
+ grantPermissions: (params: GrantPermissionsParams<TAccount>) => Promise<GrantPermissionsResult>;
23
23
  };
24
24
  export declare function smartWalletClientActions<TAccount extends JsonRpcAccount | undefined = JsonRpcAccount | undefined>(client: InnerWalletApiClient<TAccount>, signer: SmartAccountSigner): SmartWalletActions<TAccount>;
25
25
  //# sourceMappingURL=decorator.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"decorator.d.ts","sourceRoot":"","sources":["../../../src/client/decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EACV,GAAG,EACH,cAAc,EACd,eAAe,EACf,mBAAmB,EACpB,MAAM,MAAM,CAAC;AACd,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EACxB,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAEL,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EAC1B,MAAM,0BAA0B,CAAC;AAClC,OAAO,E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,CACZ,MAAM,EAAE,kBAAkB,CAAC,QAAQ,CAAC,KACjC,OAAO,CAAC,kBAAkB,CAAC,CAAC;IACjC,iBAAiB,EAAE,CACjB,MAAM,EAAE,uBAAuB,KAC5B,OAAO,CAAC,uBAAuB,CAAC,CAAC;IACtC,aAAa,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAC7E,YAAY,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,OAAO,CAAC,kBAAkB,CAAC,CAAC;IAC1E,cAAc,EAAE,CACd,MAAM,EAAE,oBAAoB,KACzB,OAAO,CAAC,oBAAoB,CAAC,CAAC;IACnC,oBAAoB,EAAE,CACpB,MAAM,EAAE,0BAA0B,KAC/B,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACzC,WAAW,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACvD,aAAa,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IAC7D,gBAAgB,EAAE,CAChB,MAAM,EAAE,sBAAsB,CAAC,QAAQ,CAAC,KACrC,OAAO,CAAC,sBAAsB,CAAC,CAAC;CACtC,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,QAAQ,SAAS,cAAc,GAAG,SAAS,GAAG,cAAc,GAAG,SAAS,EAExE,MAAM,EAAE,oBAAoB,CAAC,QAAQ,CAAC,EACtC,MAAM,EAAE,kBAAkB,GACzB,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -2,7 +2,7 @@ import { type SmartAccountSigner } from "@aa-sdk/core";
2
2
  import { type AlchemyTransport } from "@account-kit/infra";
3
3
  import { type Address, type Chain, type IsUndefined, type JsonRpcAccount, type Prettify } from "viem";
4
4
  import type { InnerWalletApiClient } from "../types";
5
- import { type SmartWalletActions } from "./decorator";
5
+ import { type SmartWalletActions } from "./decorator.js";
6
6
  export type SmartWalletClientParams<TAccount extends JsonRpcAccount<Address> | undefined = JsonRpcAccount<Address> | undefined> = Prettify<{
7
7
  transport: AlchemyTransport;
8
8
  chain: Chain;