@coinbase/cdp-sdk 1.38.4 → 1.38.6

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 (196) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +24 -0
  3. package/_cjs/accounts/evm/toEvmServerAccount.js +0 -36
  4. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
  5. package/_cjs/accounts/evm/toEvmSmartAccount.js +0 -36
  6. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  7. package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js +0 -42
  8. package/_cjs/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  9. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js +0 -42
  10. package/_cjs/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  11. package/_cjs/accounts/solana/toSolanaAccount.js +0 -30
  12. package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -1
  13. package/_cjs/actions/evm/sendUserOperation.js +2 -0
  14. package/_cjs/actions/evm/sendUserOperation.js.map +1 -1
  15. package/_cjs/analytics.js +164 -2
  16. package/_cjs/analytics.js.map +1 -1
  17. package/_cjs/auth/utils/http.js +5 -2
  18. package/_cjs/auth/utils/http.js.map +1 -1
  19. package/_cjs/auth/utils/jwt.js +1 -1
  20. package/_cjs/auth/utils/jwt.js.map +1 -1
  21. package/_cjs/client/end-user/endUser.js +43 -0
  22. package/_cjs/client/end-user/endUser.js.map +1 -1
  23. package/_cjs/client/evm/evm.js +49 -0
  24. package/_cjs/client/evm/evm.js.map +1 -1
  25. package/_cjs/index.js.map +1 -1
  26. package/_cjs/openapi-client/cdpApiClient.js +4 -0
  27. package/_cjs/openapi-client/cdpApiClient.js.map +1 -1
  28. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +6 -41
  29. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  30. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js +10 -1
  31. package/_cjs/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  32. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +14 -1
  33. package/_cjs/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  34. package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +14 -1
  35. package/_cjs/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +1 -1
  36. package/_cjs/openapi-client/index.js +0 -3
  37. package/_cjs/openapi-client/index.js.map +1 -1
  38. package/_cjs/version.js +1 -1
  39. package/_esm/accounts/evm/toEvmServerAccount.js +0 -36
  40. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  41. package/_esm/accounts/evm/toEvmSmartAccount.js +0 -36
  42. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  43. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js +0 -42
  44. package/_esm/accounts/evm/toNetworkScopedEvmServerAccount.js.map +1 -1
  45. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js +0 -42
  46. package/_esm/accounts/evm/toNetworkScopedEvmSmartAccount.js.map +1 -1
  47. package/_esm/accounts/solana/toSolanaAccount.js +0 -30
  48. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -1
  49. package/_esm/actions/evm/sendUserOperation.js +2 -0
  50. package/_esm/actions/evm/sendUserOperation.js.map +1 -1
  51. package/_esm/analytics.js +163 -1
  52. package/_esm/analytics.js.map +1 -1
  53. package/_esm/auth/utils/http.js +5 -2
  54. package/_esm/auth/utils/http.js.map +1 -1
  55. package/_esm/auth/utils/jwt.js +1 -1
  56. package/_esm/auth/utils/jwt.js.map +1 -1
  57. package/_esm/client/end-user/endUser.js +44 -1
  58. package/_esm/client/end-user/endUser.js.map +1 -1
  59. package/_esm/client/evm/evm.js +49 -0
  60. package/_esm/client/evm/evm.js.map +1 -1
  61. package/_esm/index.js.map +1 -1
  62. package/_esm/openapi-client/cdpApiClient.js +4 -0
  63. package/_esm/openapi-client/cdpApiClient.js.map +1 -1
  64. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +5 -39
  65. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  66. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js +8 -0
  67. package/_esm/openapi-client/generated/end-user-accounts/end-user-accounts.js.map +1 -1
  68. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js +12 -0
  69. package/_esm/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.js.map +1 -1
  70. package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js +12 -0
  71. package/_esm/openapi-client/generated/sql-api-alpha/sql-api-alpha.js.map +1 -1
  72. package/_esm/openapi-client/index.js +0 -3
  73. package/_esm/openapi-client/index.js.map +1 -1
  74. package/_esm/version.js +1 -1
  75. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  76. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  77. package/_types/accounts/evm/toNetworkScopedEvmServerAccount.d.ts.map +1 -1
  78. package/_types/accounts/evm/toNetworkScopedEvmSmartAccount.d.ts.map +1 -1
  79. package/_types/accounts/evm/types.d.ts +3 -18
  80. package/_types/accounts/evm/types.d.ts.map +1 -1
  81. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -1
  82. package/_types/actions/evm/sendUserOperation.d.ts +11 -0
  83. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
  84. package/_types/actions/evm/types.d.ts +1 -66
  85. package/_types/actions/evm/types.d.ts.map +1 -1
  86. package/_types/actions/solana/types.d.ts +1 -62
  87. package/_types/actions/solana/types.d.ts.map +1 -1
  88. package/_types/analytics.d.ts +27 -0
  89. package/_types/analytics.d.ts.map +1 -1
  90. package/_types/auth/utils/http.d.ts.map +1 -1
  91. package/_types/client/end-user/endUser.d.ts +36 -2
  92. package/_types/client/end-user/endUser.d.ts.map +1 -1
  93. package/_types/client/end-user/endUser.types.d.ts +5 -0
  94. package/_types/client/end-user/endUser.types.d.ts.map +1 -1
  95. package/_types/client/evm/evm.d.ts +29 -2
  96. package/_types/client/evm/evm.d.ts.map +1 -1
  97. package/_types/client/evm/evm.types.d.ts +20 -2
  98. package/_types/client/evm/evm.types.d.ts.map +1 -1
  99. package/_types/index.d.ts +2 -1
  100. package/_types/index.d.ts.map +1 -1
  101. package/_types/openapi-client/cdpApiClient.d.ts.map +1 -1
  102. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +44 -246
  103. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  104. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts +8 -1
  105. package/_types/openapi-client/generated/end-user-accounts/end-user-accounts.d.ts.map +1 -1
  106. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts +7 -1
  107. package/_types/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.d.ts.map +1 -1
  108. package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts +11 -0
  109. package/_types/openapi-client/generated/sql-api-alpha/sql-api-alpha.d.ts.map +1 -1
  110. package/_types/openapi-client/index.d.ts +3 -6
  111. package/_types/openapi-client/index.d.ts.map +1 -1
  112. package/_types/types/calls.d.ts +1 -0
  113. package/_types/types/calls.d.ts.map +1 -1
  114. package/_types/version.d.ts +1 -1
  115. package/accounts/evm/toEvmServerAccount.ts +0 -47
  116. package/accounts/evm/toEvmSmartAccount.ts +0 -47
  117. package/accounts/evm/toNetworkScopedEvmServerAccount.ts +0 -50
  118. package/accounts/evm/toNetworkScopedEvmSmartAccount.ts +0 -49
  119. package/accounts/evm/types.ts +5 -49
  120. package/accounts/solana/toSolanaAccount.ts +0 -41
  121. package/actions/evm/sendUserOperation.ts +14 -0
  122. package/actions/evm/types.ts +1 -74
  123. package/actions/solana/types.ts +1 -70
  124. package/analytics.ts +225 -1
  125. package/auth/utils/http.ts +5 -2
  126. package/auth/utils/jwt.ts +1 -1
  127. package/client/end-user/endUser.ts +52 -2
  128. package/client/end-user/endUser.types.ts +7 -0
  129. package/client/evm/evm.ts +61 -0
  130. package/client/evm/evm.types.ts +23 -0
  131. package/index.ts +2 -1
  132. package/openapi-client/cdpApiClient.ts +5 -0
  133. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +53 -289
  134. package/openapi-client/generated/end-user-accounts/end-user-accounts.ts +14 -0
  135. package/openapi-client/generated/evm-smart-accounts/evm-smart-accounts.ts +23 -0
  136. package/openapi-client/generated/sql-api-alpha/sql-api-alpha.ts +13 -0
  137. package/openapi-client/index.ts +0 -3
  138. package/package.json +1 -1
  139. package/types/calls.ts +1 -0
  140. package/version.ts +1 -1
  141. package/_cjs/actions/Quote.js +0 -106
  142. package/_cjs/actions/Quote.js.map +0 -1
  143. package/_cjs/actions/evm/fund/fund.js +0 -51
  144. package/_cjs/actions/evm/fund/fund.js.map +0 -1
  145. package/_cjs/actions/evm/fund/quoteFund.js +0 -48
  146. package/_cjs/actions/evm/fund/quoteFund.js.map +0 -1
  147. package/_cjs/actions/solana/fund/fund.js +0 -51
  148. package/_cjs/actions/solana/fund/fund.js.map +0 -1
  149. package/_cjs/actions/solana/fund/quoteFund.js +0 -48
  150. package/_cjs/actions/solana/fund/quoteFund.js.map +0 -1
  151. package/_cjs/actions/types.js +0 -3
  152. package/_cjs/actions/types.js.map +0 -1
  153. package/_cjs/actions/waitForFundOperationReceipt.js +0 -65
  154. package/_cjs/actions/waitForFundOperationReceipt.js.map +0 -1
  155. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.js +0 -50
  156. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.js.map +0 -1
  157. package/_esm/actions/Quote.js +0 -101
  158. package/_esm/actions/Quote.js.map +0 -1
  159. package/_esm/actions/evm/fund/fund.js +0 -48
  160. package/_esm/actions/evm/fund/fund.js.map +0 -1
  161. package/_esm/actions/evm/fund/quoteFund.js +0 -45
  162. package/_esm/actions/evm/fund/quoteFund.js.map +0 -1
  163. package/_esm/actions/solana/fund/fund.js +0 -48
  164. package/_esm/actions/solana/fund/fund.js.map +0 -1
  165. package/_esm/actions/solana/fund/quoteFund.js +0 -45
  166. package/_esm/actions/solana/fund/quoteFund.js.map +0 -1
  167. package/_esm/actions/types.js +0 -2
  168. package/_esm/actions/types.js.map +0 -1
  169. package/_esm/actions/waitForFundOperationReceipt.js +0 -62
  170. package/_esm/actions/waitForFundOperationReceipt.js.map +0 -1
  171. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.js +0 -42
  172. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.js.map +0 -1
  173. package/_types/actions/Quote.d.ts +0 -97
  174. package/_types/actions/Quote.d.ts.map +0 -1
  175. package/_types/actions/evm/fund/fund.d.ts +0 -22
  176. package/_types/actions/evm/fund/fund.d.ts.map +0 -1
  177. package/_types/actions/evm/fund/quoteFund.d.ts +0 -23
  178. package/_types/actions/evm/fund/quoteFund.d.ts.map +0 -1
  179. package/_types/actions/solana/fund/fund.d.ts +0 -20
  180. package/_types/actions/solana/fund/fund.d.ts.map +0 -1
  181. package/_types/actions/solana/fund/quoteFund.d.ts +0 -21
  182. package/_types/actions/solana/fund/quoteFund.d.ts.map +0 -1
  183. package/_types/actions/types.d.ts +0 -37
  184. package/_types/actions/types.d.ts.map +0 -1
  185. package/_types/actions/waitForFundOperationReceipt.d.ts +0 -69
  186. package/_types/actions/waitForFundOperationReceipt.d.ts.map +0 -1
  187. package/_types/openapi-client/generated/payments-alpha/payments-alpha.d.ts +0 -42
  188. package/_types/openapi-client/generated/payments-alpha/payments-alpha.d.ts.map +0 -1
  189. package/actions/Quote.ts +0 -154
  190. package/actions/evm/fund/fund.ts +0 -74
  191. package/actions/evm/fund/quoteFund.ts +0 -80
  192. package/actions/solana/fund/fund.ts +0 -72
  193. package/actions/solana/fund/quoteFund.ts +0 -78
  194. package/actions/types.ts +0 -39
  195. package/actions/waitForFundOperationReceipt.ts +0 -119
  196. package/openapi-client/generated/payments-alpha/payments-alpha.ts +0 -96
@@ -38,6 +38,17 @@ Queries are executed against optimized data structures for high-performance anal
38
38
  * @summary Run SQL Query
39
39
  */
40
40
  export declare const runSQLQuery: (onchainDataQuery: OnchainDataQuery, options?: SecondParameter<typeof cdpApiClient>) => Promise<OnchainDataResult>;
41
+ /**
42
+ * Retrieve the SQL grammar for the SQL API.
43
+
44
+ The SQL queries that are supported by the SQL API are defined via an ANTLR4 grammar which is evaluated by server before executing the query. This ensures the safety and soundness of the SQL API.
45
+
46
+ This endpoint returns the ANTLR4 grammar that is used to evaluate the SQL queries so that developers can understand the SQL API and build SQL queries with high confidence and correctness. LLMs interact well with ANTLR4 grammar as well.
47
+
48
+ * @summary Get SQL grammar
49
+ */
50
+ export declare const getSQLGrammar: (options?: SecondParameter<typeof cdpApiClient>) => Promise<string>;
41
51
  export type RunSQLQueryResult = NonNullable<Awaited<ReturnType<typeof runSQLQuery>>>;
52
+ export type GetSQLGrammarResult = NonNullable<Awaited<ReturnType<typeof getSQLGrammar>>>;
42
53
  export {};
43
54
  //# sourceMappingURL=sql-api-alpha.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sql-api-alpha.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/sql-api-alpha/sql-api-alpha.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,WAAW,GACtB,kBAAkB,gBAAgB,EAClC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,+BAW/C,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"sql-api-alpha.d.ts","sourceRoot":"","sources":["../../../../openapi-client/generated/sql-api-alpha/sql-api-alpha.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EACV,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,6CAA6C,CAAC;AAErD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,KAAK,eAAe,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,KAAK,KAAK,OAAO,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAE/E;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,WAAW,GACtB,kBAAkB,gBAAgB,EAClC,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,+BAW/C,CAAC;AACF;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,UAAU,eAAe,CAAC,OAAO,YAAY,CAAC,oBAE3E,CAAC;AACF,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC;AACrF,MAAM,MAAM,mBAAmB,GAAG,WAAW,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC"}
@@ -7,7 +7,6 @@ export * from "./generated/solana-accounts/solana-accounts.js";
7
7
  export * from "./generated/solana-token-balances/solana-token-balances.js";
8
8
  export * from "./generated/faucets/faucets.js";
9
9
  export * from "./generated/policy-engine/policy-engine.js";
10
- export * from "./generated/payments-alpha/payments-alpha.js";
11
10
  export * from "./generated/onramp/onramp.js";
12
11
  export * from "./generated/onchain-data/onchain-data.js";
13
12
  export * from "./generated/end-user-accounts/end-user-accounts.js";
@@ -15,12 +14,8 @@ export * from "./generated/x402-facilitator/x402-facilitator.js";
15
14
  export * from "./generated/sql-api-alpha/sql-api-alpha.js";
16
15
  export declare const CdpOpenApiClient: {
17
16
  configure: (options: import("./cdpApiClient.js").CdpOptions) => void;
17
+ listEndUsers: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEndUsersParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListEndUsers200>;
18
18
  validateEndUserAccessToken: (validateEndUserAccessTokenBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ValidateEndUserAccessTokenBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EndUser>;
19
- getPaymentMethods: (options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PaymentMethod[]>;
20
- getCryptoRails: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").GetCryptoRailsParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CryptoRail[]>;
21
- createPaymentTransferQuote: (createPaymentTransferQuoteBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreatePaymentTransferQuoteBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreatePaymentTransferQuote201>;
22
- executePaymentTransferQuote: (transferId: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").Transfer>;
23
- getPaymentTransfer: (transferId: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").Transfer>;
24
19
  listPolicies: (params?: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListPoliciesParams, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").ListPolicies200>;
25
20
  createPolicy: (createPolicyBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreatePolicyBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").Policy>;
26
21
  getPolicyById: (policyId: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").Policy>;
@@ -51,6 +46,7 @@ export declare const CdpOpenApiClient: {
51
46
  getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
52
47
  updateEvmSmartAccount: (address: string, updateEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").UpdateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
53
48
  prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
49
+ prepareAndSendUserOperation: (address: string, prepareAndSendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareAndSendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
54
50
  getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
55
51
  sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
56
52
  createSpendPermission: (address: string, createSpendPermissionRequest: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSpendPermissionRequest, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
@@ -81,6 +77,7 @@ export declare const OpenApiEvmMethods: {
81
77
  getEvmSmartAccount: (address: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
82
78
  updateEvmSmartAccount: (address: string, updateEvmSmartAccountBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").UpdateEvmSmartAccountBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmSmartAccount>;
83
79
  prepareUserOperation: (address: string, prepareUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
80
+ prepareAndSendUserOperation: (address: string, prepareAndSendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").PrepareAndSendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
84
81
  getUserOperation: (address: string, userOpHash: string, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
85
82
  sendUserOperation: (address: string, userOpHash: string, sendUserOperationBody: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").SendUserOperationBody, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
86
83
  createSpendPermission: (address: string, createSpendPermissionRequest: import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").CreateSpendPermissionRequest, options?: string | undefined) => Promise<import("./generated/coinbaseDeveloperPlatformAPIs.schemas.js").EvmUserOperation>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../openapi-client/index.ts"],"names":[],"mappings":"AAAA,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,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AId,EAAC,4BACX;0BAA6V,YAAe,EAAC,4BAAiD;yBAA68D,eAAkB,EAAC,6GAAiD,EAAC,4BAAiD;yBAA8wB,eAAkB,EAAC,6GAAiD,EAAC,4BAAiD;kBAAgY,eAAkB,EAAC,+FAAmC,EAAC,4BAAiD;qBAAqjB,eAAkB,EAAC,qGAAyC,EAAC,4BAAiD;uBAAwa,eAAkB,EAAC,2FAA+B,EAAC,4BAAiD;uBAA2hB,yGAA6C,EAAC,4BAAiD;uBAA+a,eAAkB,EAAC,yGAA6C,EAAC,4BAAiD;6BAA6d,YAAe,EAAC,qHAAyD,EAAC,4BAAiD;CAZjvN,CAAC;AAEF,eAAO,MAAM,oBAAoB;;yBA9B1B,gGAAoC,EAAC,4BACf;0BAG0B,gHACpB,EAAC,4BACzB;uBAiBT,eACO,EAAC,4BAEW;0BAca,eAAkB,EAAC,+GAAmD,EAAC,4BAAiD;6BAA6W,YAAe,EAAC,4BAAiD;0BAAib,+GAAmD,EAAC,4BAAiD;0BAAic,eAAkB,EAAC,+GAAmD,EAAC,4BAAiD;gCAA8e,YAAe,EAAC,2HAA+D,EAAC,4BAAiD;4BAAk4B,eAAkB,EAAC,mHAAuD,EAAC,4BAAiD;wBAAijB,eAAkB,EAAC,2GAA+C,EAAC,4BAAiD;4BAAwhD,mHAAuD,EAAC,4BAAiD;CAPziL,CAAC;AAEF,eAAO,MAAM,sBAAsB;mBA1CN,0FAA8B,EAAC,4BACjB;mBAKa,iGACrD,EAAC,4BAAiD;oBAKxC,gBAAgB,EAAC,4BAC3B;mBAaO,gBAGD,EAAC,4BAEE;mBAgBT,gBAAmB,EAAC,iGAAqC,EAAC,4BAAiD;CAH7G,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,OAAO,gBAAgB,CAAC"}
@@ -6,6 +6,7 @@ export type Call<call = unknown, extraProperties extends Record<string, unknown>
6
6
  data?: Hex | undefined;
7
7
  to: Address;
8
8
  value?: bigint | undefined;
9
+ overrideGasLimit?: string | undefined;
9
10
  }) | (extraProperties & (Omit<GetMulticallContractParameters<call, AbiStateMutability>, "address"> & {
10
11
  to: Address;
11
12
  value?: bigint | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"calls.d.ts","sourceRoot":"","sources":["../../types/calls.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gBAAgB,CAAC;AACrE,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAClD,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAErC,MAAM,MAAM,IAAI,CAAC,IAAI,GAAG,OAAO,EAAE,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,KAAK,CAC1F,CAAC,eAAe,GAAG;IACjB,IAAI,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;IACvB,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC,GACF,CAAC,eAAe,GACd,CAAC,IAAI,CAAC,8BAA8B,CAAC,IAAI,EAAE,kBAAkB,CAAC,EAAE,SAAS,CAAC,GAAG;IAC3E,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC,CAAC,CACR,CAAC;AAEF,MAAM,MAAM,KAAK,CACf,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,EAEpD,MAAM,SAAS,SAAS,GAAG,EAAE,GAAG,EAAE,IAChC,KAAK,SAAS,SAAS,EAAE,GACzB,SAAS,EAAE,GACX,KAAK,SAAS,SAAS,CAAC,MAAM,IAAI,CAAC,GACjC,SAAS,CAAC,GAAG,MAAM,E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,IAAI,EAAE,kBAAkB,CAAC,EAAE,SAAS,CAAC,GAAG;IAC3E,EAAE,EAAE,OAAO,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC,CAAC,CACR,CAAC;AAEF,MAAM,MAAM,KAAK,CACf,KAAK,SAAS,SAAS,OAAO,EAAE,EAChC,eAAe,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,EAAE,EAEpD,MAAM,SAAS,SAAS,GAAG,EAAE,GAAG,EAAE,IAChC,KAAK,SAAS,SAAS,EAAE,GACzB,SAAS,EAAE,GACX,KAAK,SAAS,SAAS,CAAC,MAAM,IAAI,CAAC,GACjC,SAAS,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,GAC3D,KAAK,SAAS,SAAS,CAAC,MAAM,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,GAChD,KAAK,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,eAAe,EAAE,CAAC,GAAG,MAAM,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,GACrF,SAAS,OAAO,EAAE,SAAS,KAAK,GAC9B,KAAK,GAGL,KAAK,SAAS,SAAS,CAAC,MAAM,IAAI,SAAS,KAAK,CAAC,IAAI,CAAC,CAAC,EAAE,GACvD,SAAS,QAAQ,CAAC,IAAI,CAAC,EAAE,GAEzB,SAAS,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC"}
@@ -1,2 +1,2 @@
1
- export declare const version = "1.38.4";
1
+ export declare const version = "1.38.6";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -8,8 +8,6 @@ import {
8
8
  } from "viem";
9
9
 
10
10
  import { toNetworkScopedEvmServerAccount } from "./toNetworkScopedEvmServerAccount.js";
11
- import { EvmFundOptions, fund } from "../../actions/evm/fund/fund.js";
12
- import { EvmQuoteFundOptions, quoteFund } from "../../actions/evm/fund/quoteFund.js";
13
11
  import {
14
12
  listTokenBalances,
15
13
  type ListTokenBalancesResult,
@@ -27,13 +25,6 @@ import { createSwapQuote } from "../../actions/evm/swap/createSwapQuote.js";
27
25
  import { sendSwapTransaction } from "../../actions/evm/swap/sendSwapTransaction.js";
28
26
  import { accountTransferStrategy } from "../../actions/evm/transfer/accountTransferStrategy.js";
29
27
  import { transfer } from "../../actions/evm/transfer/transfer.js";
30
- import { EvmQuote } from "../../actions/Quote.js";
31
- import { FundOperationResult } from "../../actions/types.js";
32
- import {
33
- WaitForFundOperationOptions,
34
- WaitForFundOperationResult,
35
- waitForFundOperationReceipt,
36
- } from "../../actions/waitForFundOperationReceipt.js";
37
28
  import { Analytics } from "../../analytics.js";
38
29
 
39
30
  import type { EvmServerAccount, NetworkOrRpcUrl } from "./types.js";
@@ -191,44 +182,6 @@ export function toEvmServerAccount(
191
182
  address: this.address,
192
183
  });
193
184
  },
194
- async quoteFund(options: Omit<EvmQuoteFundOptions, "address">): Promise<EvmQuote> {
195
- Analytics.trackAction({
196
- action: "quote_fund",
197
- accountType: "evm_server",
198
- properties: {
199
- network: options.network,
200
- },
201
- });
202
-
203
- return quoteFund(apiClient, {
204
- ...options,
205
- address: this.address,
206
- });
207
- },
208
- async fund(options: Omit<EvmFundOptions, "address">): Promise<FundOperationResult> {
209
- Analytics.trackAction({
210
- action: "fund",
211
- accountType: "evm_server",
212
- properties: {
213
- network: options.network,
214
- },
215
- });
216
-
217
- return fund(apiClient, {
218
- ...options,
219
- address: this.address,
220
- });
221
- },
222
- async waitForFundOperationReceipt(
223
- options: WaitForFundOperationOptions,
224
- ): Promise<WaitForFundOperationResult> {
225
- Analytics.trackAction({
226
- action: "wait_for_fund_operation_receipt",
227
- accountType: "evm_server",
228
- });
229
-
230
- return waitForFundOperationReceipt(apiClient, options);
231
- },
232
185
  async quoteSwap(options: AccountQuoteSwapOptions): Promise<AccountQuoteSwapResult> {
233
186
  Analytics.trackAction({
234
187
  action: "quote_swap",
@@ -1,7 +1,5 @@
1
1
  import { resolveNetworkToChain } from "./networkToChainResolver.js";
2
2
  import { toNetworkScopedEvmSmartAccount } from "./toNetworkScopedEvmSmartAccount.js";
3
- import { fund, EvmFundOptions } from "../../actions/evm/fund/fund.js";
4
- import { quoteFund, EvmQuoteFundOptions } from "../../actions/evm/fund/quoteFund.js";
5
3
  import { getUserOperation } from "../../actions/evm/getUserOperation.js";
6
4
  import {
7
5
  listTokenBalances,
@@ -30,13 +28,6 @@ import {
30
28
  WaitForUserOperationOptions,
31
29
  WaitForUserOperationReturnType,
32
30
  } from "../../actions/evm/waitForUserOperation.js";
33
- import { EvmQuote } from "../../actions/Quote.js";
34
- import { FundOperationResult } from "../../actions/types.js";
35
- import {
36
- WaitForFundOperationResult,
37
- waitForFundOperationReceipt,
38
- WaitForFundOperationOptions,
39
- } from "../../actions/waitForFundOperationReceipt.js";
40
31
  import { Analytics } from "../../analytics.js";
41
32
  import {
42
33
  GetUserOperationOptions,
@@ -172,44 +163,6 @@ export function toEvmSmartAccount(
172
163
  address: account.address,
173
164
  });
174
165
  },
175
- async quoteFund(options: Omit<EvmQuoteFundOptions, "address">): Promise<EvmQuote> {
176
- Analytics.trackAction({
177
- action: "quote_fund",
178
- accountType: "evm_smart",
179
- properties: {
180
- network: options.network,
181
- },
182
- });
183
-
184
- return quoteFund(apiClient, {
185
- ...options,
186
- address: this.address,
187
- });
188
- },
189
- async fund(options: Omit<EvmFundOptions, "address">): Promise<FundOperationResult> {
190
- Analytics.trackAction({
191
- action: "fund",
192
- accountType: "evm_smart",
193
- properties: {
194
- network: options.network,
195
- },
196
- });
197
-
198
- return fund(apiClient, {
199
- ...options,
200
- address: this.address,
201
- });
202
- },
203
- async waitForFundOperationReceipt(
204
- options: WaitForFundOperationOptions,
205
- ): Promise<WaitForFundOperationResult> {
206
- Analytics.trackAction({
207
- action: "wait_for_fund_operation_receipt",
208
- accountType: "evm_smart",
209
- });
210
-
211
- return waitForFundOperationReceipt(apiClient, options);
212
- },
213
166
  async quoteSwap(options: SmartAccountQuoteSwapOptions): Promise<SmartAccountQuoteSwapResult> {
214
167
  Analytics.trackAction({
215
168
  action: "quote_swap",
@@ -8,8 +8,6 @@ import { transferWithViem } from "../../actions/evm/transfer/transferWithViem.js
8
8
  import { Analytics } from "../../analytics.js";
9
9
 
10
10
  import type { EvmServerAccount, NetworkScopedEvmServerAccount, DistributedOmit } from "./types.js";
11
- import type { EvmFundOptions } from "../../actions/evm/fund/fund.js";
12
- import type { EvmQuoteFundOptions } from "../../actions/evm/fund/quoteFund.js";
13
11
  import type { ListTokenBalancesOptions } from "../../actions/evm/listTokenBalances.js";
14
12
  import type { RequestFaucetOptions } from "../../actions/evm/requestFaucet.js";
15
13
  import type {
@@ -19,7 +17,6 @@ import type {
19
17
  import type { UseSpendPermissionOptions } from "../../actions/evm/spend-permissions/types.js";
20
18
  import type { AccountQuoteSwapOptions, AccountSwapOptions } from "../../actions/evm/swap/types.js";
21
19
  import type { TransferOptions } from "../../actions/evm/transfer/types.js";
22
- import type { WaitForFundOperationOptions } from "../../actions/waitForFundOperationReceipt.js";
23
20
  import type { EvmSwapsNetwork } from "../../openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js";
24
21
  import type {
25
22
  ListEvmTokenBalancesNetwork,
@@ -178,53 +175,6 @@ export async function toNetworkScopedEvmServerAccount<Network extends string>(
178
175
  });
179
176
  }
180
177
 
181
- if (isMethodSupportedOnNetwork("quoteFund", resolvedNetworkName)) {
182
- Object.assign(account, {
183
- quoteFund: async (quoteFundOptions: Omit<EvmQuoteFundOptions, "address">) => {
184
- Analytics.trackAction({
185
- action: "quote_fund",
186
- accountType: "evm_server",
187
- properties: {
188
- managed: true,
189
- },
190
- });
191
-
192
- return options.account.quoteFund({
193
- ...quoteFundOptions,
194
- });
195
- },
196
- });
197
- }
198
-
199
- if (isMethodSupportedOnNetwork("fund", resolvedNetworkName)) {
200
- Object.assign(account, {
201
- fund: async (fundOptions: Omit<EvmFundOptions, "address">) => {
202
- Analytics.trackAction({
203
- action: "fund",
204
- accountType: "evm_server",
205
- properties: {
206
- managed: true,
207
- },
208
- });
209
-
210
- return options.account.fund({
211
- ...fundOptions,
212
- });
213
- },
214
- waitForFundOperationReceipt: async (waitOptions: WaitForFundOperationOptions) => {
215
- Analytics.trackAction({
216
- action: "wait_for_fund_operation_receipt",
217
- accountType: "evm_server",
218
- properties: {
219
- managed: true,
220
- },
221
- });
222
-
223
- return options.account.waitForFundOperationReceipt(waitOptions);
224
- },
225
- });
226
- }
227
-
228
178
  if (isMethodSupportedOnNetwork("quoteSwap", resolvedNetworkName)) {
229
179
  Object.assign(account, {
230
180
  quoteSwap: async (quoteSwapOptions: DistributedOmit<AccountQuoteSwapOptions, "network">) => {
@@ -1,7 +1,5 @@
1
1
  import { getBaseNodeRpcUrl } from "./getBaseNodeRpcUrl.js";
2
2
  import { isMethodSupportedOnNetwork } from "./networkCapabilities.js";
3
- import { fund } from "../../actions/evm/fund/fund.js";
4
- import { quoteFund } from "../../actions/evm/fund/quoteFund.js";
5
3
  import { getUserOperation } from "../../actions/evm/getUserOperation.js";
6
4
  import { listTokenBalances } from "../../actions/evm/listTokenBalances.js";
7
5
  import { requestFaucet } from "../../actions/evm/requestFaucet.js";
@@ -12,7 +10,6 @@ import { sendSwapOperation } from "../../actions/evm/swap/sendSwapOperation.js";
12
10
  import { smartAccountTransferStrategy } from "../../actions/evm/transfer/smartAccountTransferStrategy.js";
13
11
  import { transfer } from "../../actions/evm/transfer/transfer.js";
14
12
  import { waitForUserOperation } from "../../actions/evm/waitForUserOperation.js";
15
- import { waitForFundOperationReceipt } from "../../actions/waitForFundOperationReceipt.js";
16
13
  import { Analytics } from "../../analytics.js";
17
14
 
18
15
  import type {
@@ -22,8 +19,6 @@ import type {
22
19
  NetworkScopedEvmSmartAccount,
23
20
  DistributedOmit,
24
21
  } from "./types.js";
25
- import type { EvmFundOptions } from "../../actions/evm/fund/fund.js";
26
- import type { EvmQuoteFundOptions } from "../../actions/evm/fund/quoteFund.js";
27
22
  import type { ListTokenBalancesOptions } from "../../actions/evm/listTokenBalances.js";
28
23
  import type { RequestFaucetOptions } from "../../actions/evm/requestFaucet.js";
29
24
  import type { SendUserOperationOptions } from "../../actions/evm/sendUserOperation.js";
@@ -34,7 +29,6 @@ import type {
34
29
  } from "../../actions/evm/swap/types.js";
35
30
  import type { SmartAccountTransferOptions } from "../../actions/evm/transfer/types.js";
36
31
  import type { WaitForUserOperationOptions } from "../../actions/evm/waitForUserOperation.js";
37
- import type { WaitForFundOperationOptions } from "../../actions/waitForFundOperationReceipt.js";
38
32
  import type { GetUserOperationOptions } from "../../client/evm/evm.types.js";
39
33
  import type {
40
34
  CdpOpenApiClientType,
@@ -206,49 +200,6 @@ export async function toNetworkScopedEvmSmartAccount<Network extends KnownEvmNet
206
200
  });
207
201
  }
208
202
 
209
- if (isMethodSupportedOnNetwork("quoteFund", options.network)) {
210
- Object.assign(account, {
211
- quoteFund: async (quoteOptions: Omit<EvmQuoteFundOptions, "address">) => {
212
- Analytics.trackAction({
213
- action: "quote_fund",
214
- accountType: "evm_smart",
215
- properties: {
216
- network: options.network,
217
- managed: true,
218
- },
219
- });
220
-
221
- return quoteFund(apiClient, {
222
- ...quoteOptions,
223
- address: options.smartAccount.address,
224
- });
225
- },
226
- });
227
- }
228
-
229
- if (isMethodSupportedOnNetwork("fund", options.network)) {
230
- Object.assign(account, {
231
- fund: async (fundOptions: Omit<EvmFundOptions, "address">) => {
232
- Analytics.trackAction({
233
- action: "fund",
234
- accountType: "evm_smart",
235
- properties: {
236
- network: options.network,
237
- managed: true,
238
- },
239
- });
240
-
241
- return fund(apiClient, {
242
- ...fundOptions,
243
- address: options.smartAccount.address,
244
- });
245
- },
246
- waitForFundOperationReceipt: async (waitOptions: WaitForFundOperationOptions) => {
247
- return waitForFundOperationReceipt(apiClient, waitOptions);
248
- },
249
- });
250
- }
251
-
252
203
  if (isMethodSupportedOnNetwork("quoteSwap", options.network)) {
253
204
  Object.assign(account, {
254
205
  quoteSwap: async (
@@ -5,14 +5,10 @@
5
5
  import {
6
6
  ListTokenBalancesNetworks,
7
7
  RequestFaucetNetworks,
8
- QuoteFundNetworks,
9
- FundNetworks,
10
8
  TransferNetworks,
11
- QuoteSwapNetworks,
12
9
  SwapNetworks,
10
+ QuoteSwapNetworks,
13
11
  } from "./networkCapabilities.js";
14
- import { EvmFundOptions } from "../../actions/evm/fund/fund.js";
15
- import { EvmQuoteFundOptions } from "../../actions/evm/fund/quoteFund.js";
16
12
  import {
17
13
  ListTokenBalancesOptions,
18
14
  ListTokenBalancesResult,
@@ -25,24 +21,19 @@ import {
25
21
  } from "../../actions/evm/sendUserOperation.js";
26
22
  import { UseSpendPermissionOptions } from "../../actions/evm/spend-permissions/types.js";
27
23
  import {
28
- AccountQuoteSwapOptions,
29
- AccountQuoteSwapResult,
30
24
  AccountSwapOptions,
31
25
  AccountSwapResult,
26
+ AccountQuoteSwapOptions,
27
+ AccountQuoteSwapResult,
32
28
  SmartAccountQuoteSwapOptions,
33
- SmartAccountQuoteSwapResult,
34
29
  SmartAccountSwapOptions,
35
30
  SmartAccountSwapResult,
31
+ SmartAccountQuoteSwapResult,
36
32
  } from "../../actions/evm/swap/types.js";
37
33
  import {
38
34
  WaitForUserOperationOptions,
39
35
  WaitForUserOperationReturnType,
40
36
  } from "../../actions/evm/waitForUserOperation.js";
41
- import { FundOperationResult } from "../../actions/types.js";
42
- import {
43
- WaitForFundOperationOptions,
44
- WaitForFundOperationResult,
45
- } from "../../actions/waitForFundOperationReceipt.js";
46
37
  import { GetUserOperationOptions, UserOperation } from "../../client/evm/evm.types.js";
47
38
  import { SpendPermissionNetwork } from "../../openapi-client/index.js";
48
39
 
@@ -51,7 +42,6 @@ import type {
51
42
  TransferOptions,
52
43
  } from "../../actions/evm/transfer/types.js";
53
44
  import type { AccountActions, SmartAccountActions } from "../../actions/evm/types.js";
54
- import type { EvmQuote } from "../../actions/Quote.js";
55
45
  import type { Address, Hash, Hex } from "../../types/misc.js";
56
46
  import type { Prettify } from "../../types/utils.js";
57
47
  import type {
@@ -220,30 +210,11 @@ export type NetworkSpecificSmartAccountActions<Network extends string> = Prettif
220
210
  ) => Promise<RequestFaucetResult>;
221
211
  }
222
212
  : EmptyObject) &
223
- // Conditionally include quoteFund
224
- (Network extends QuoteFundNetworks
225
- ? {
226
- quoteFund: (
227
- options: Omit<EvmQuoteFundOptions, "address" | "network">,
228
- ) => Promise<EvmQuote>;
229
- }
230
- : EmptyObject) &
231
- // Conditionally include fund
232
- (Network extends FundNetworks
233
- ? {
234
- fund: (
235
- options: Omit<EvmFundOptions, "address" | "network">,
236
- ) => Promise<FundOperationResult>;
237
- waitForFundOperationReceipt: (
238
- options: Omit<WaitForFundOperationOptions, "network">,
239
- ) => Promise<WaitForFundOperationResult>;
240
- }
241
- : EmptyObject) &
242
213
  // Conditionally include quoteSwap
243
214
  (Network extends QuoteSwapNetworks
244
215
  ? {
245
216
  quoteSwap: (
246
- options: Omit<SmartAccountQuoteSwapOptions, "network">,
217
+ options: DistributedOmit<SmartAccountQuoteSwapOptions, "network">,
247
218
  ) => Promise<SmartAccountQuoteSwapResult>;
248
219
  }
249
220
  : EmptyObject) &
@@ -314,21 +285,6 @@ export type NetworkSpecificAccountActions<Network extends string> = Prettify<
314
285
  ) => Promise<RequestFaucetResult>;
315
286
  }
316
287
  : EmptyObject) &
317
- // Conditionally include quoteFund
318
- (Network extends QuoteFundNetworks
319
- ? {
320
- quoteFund: (options: Omit<EvmQuoteFundOptions, "address">) => Promise<EvmQuote>;
321
- }
322
- : EmptyObject) &
323
- // Conditionally include fund
324
- (Network extends FundNetworks
325
- ? {
326
- fund: (options: Omit<EvmFundOptions, "address">) => Promise<FundOperationResult>;
327
- waitForFundOperationReceipt: (
328
- options: WaitForFundOperationOptions,
329
- ) => Promise<WaitForFundOperationResult>;
330
- }
331
- : EmptyObject) &
332
288
  // Conditionally include transfer
333
289
  (Network extends TransferNetworks
334
290
  ? {
@@ -1,18 +1,9 @@
1
1
  import { Account, SolanaAccount } from "./types.js";
2
- import { SolanaQuote } from "../../actions/Quote.js";
3
- import { SolanaFundOptions, fund } from "../../actions/solana/fund/fund.js";
4
- import { SolanaQuoteFundOptions, quoteFund } from "../../actions/solana/fund/quoteFund.js";
5
2
  import { requestFaucet } from "../../actions/solana/requestFaucet.js";
6
3
  import { sendTransaction, SendTransactionResult } from "../../actions/solana/sendTransaction.js";
7
4
  import { signMessage } from "../../actions/solana/signMessage.js";
8
5
  import { signTransaction, SignTransactionResult } from "../../actions/solana/signTransaction.js";
9
6
  import { transfer, type TransferOptions } from "../../actions/solana/transfer.js";
10
- import { FundOperationResult } from "../../actions/types.js";
11
- import {
12
- WaitForFundOperationOptions,
13
- WaitForFundOperationResult,
14
- waitForFundOperationReceipt,
15
- } from "../../actions/waitForFundOperationReceipt.js";
16
7
  import { Analytics } from "../../analytics.js";
17
8
  import {
18
9
  RequestFaucetOptions,
@@ -108,38 +99,6 @@ export function toSolanaAccount(
108
99
  from: account.address,
109
100
  });
110
101
  },
111
- async quoteFund(options: Omit<SolanaQuoteFundOptions, "address">): Promise<SolanaQuote> {
112
- Analytics.trackAction({
113
- action: "quote_fund",
114
- accountType: "solana",
115
- });
116
-
117
- return quoteFund(apiClient, {
118
- ...options,
119
- address: account.address,
120
- });
121
- },
122
- async fund(options: Omit<SolanaFundOptions, "address">): Promise<FundOperationResult> {
123
- Analytics.trackAction({
124
- action: "fund",
125
- accountType: "solana",
126
- });
127
-
128
- return fund(apiClient, {
129
- ...options,
130
- address: account.address,
131
- });
132
- },
133
- async waitForFundOperationReceipt(
134
- options: WaitForFundOperationOptions,
135
- ): Promise<WaitForFundOperationResult> {
136
- Analytics.trackAction({
137
- action: "wait_for_fund_operation_receipt",
138
- accountType: "solana",
139
- });
140
-
141
- return waitForFundOperationReceipt(apiClient, options);
142
- },
143
102
  };
144
103
 
145
104
  return account;
@@ -63,6 +63,18 @@ export type SendUserOperationReturnType = {
63
63
  userOpHash: Hex;
64
64
  };
65
65
 
66
+ /**
67
+ * Return type for the prepareAndSendUserOperation function.
68
+ */
69
+ export type PrepareAndSendUserOperationReturnType = {
70
+ /** The address of the smart wallet. */
71
+ smartAccountAddress: Address;
72
+ /** The status of the user operation. */
73
+ status: typeof EvmUserOperationStatus.broadcast;
74
+ /** The hash of the user operation. This is not the transaction hash which is only available after the operation is completed.*/
75
+ userOpHash: Hex;
76
+ };
77
+
66
78
  /**
67
79
  * Sends a user operation to the network.
68
80
  *
@@ -132,6 +144,7 @@ export async function sendUserOperation<T extends readonly unknown[]>(
132
144
  args: call.args,
133
145
  }),
134
146
  value,
147
+ overrideGasLimit: call.overrideGasLimit,
135
148
  };
136
149
  }
137
150
 
@@ -139,6 +152,7 @@ export async function sendUserOperation<T extends readonly unknown[]>(
139
152
  to: call.to,
140
153
  data: call.data ?? "0x",
141
154
  value,
155
+ overrideGasLimit: call.overrideGasLimit,
142
156
  };
143
157
  });
144
158