@coinbase/cdp-sdk 1.6.0 → 1.7.0

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 (161) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +62 -0
  3. package/_cjs/accounts/evm/toEvmSmartAccount.js +7 -0
  4. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  5. package/_cjs/accounts/{types.js.map → evm/types.js.map} +1 -1
  6. package/_cjs/accounts/solana/toSolanaAccount.js +41 -0
  7. package/_cjs/accounts/solana/toSolanaAccount.js.map +1 -0
  8. package/_cjs/accounts/solana/types.js +3 -0
  9. package/_cjs/accounts/solana/types.js.map +1 -0
  10. package/_cjs/actions/evm/getUserOperation.js +36 -0
  11. package/_cjs/actions/evm/getUserOperation.js.map +1 -0
  12. package/_cjs/actions/evm/transfer/accountTransferStrategy.js +11 -7
  13. package/_cjs/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
  14. package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js +9 -6
  15. package/_cjs/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
  16. package/_cjs/actions/evm/transfer/transfer.js +7 -3
  17. package/_cjs/actions/evm/transfer/transfer.js.map +1 -1
  18. package/_cjs/actions/solana/requestFaucet.js +29 -0
  19. package/_cjs/actions/solana/requestFaucet.js.map +1 -0
  20. package/_cjs/actions/solana/signMessage.js +29 -0
  21. package/_cjs/actions/solana/signMessage.js.map +1 -0
  22. package/_cjs/actions/solana/signTransaction.js +46 -0
  23. package/_cjs/actions/solana/signTransaction.js.map +1 -0
  24. package/_cjs/actions/solana/types.js +3 -0
  25. package/_cjs/actions/solana/types.js.map +1 -0
  26. package/_cjs/client/evm/evm.js +2 -12
  27. package/_cjs/client/evm/evm.js.map +1 -1
  28. package/_cjs/client/solana/solana.js +22 -17
  29. package/_cjs/client/solana/solana.js.map +1 -1
  30. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +59 -1
  31. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  32. package/_cjs/openapi-client/generated/index.msw.js +3 -2
  33. package/_cjs/openapi-client/generated/index.msw.js.map +1 -1
  34. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js +56 -0
  35. package/_cjs/openapi-client/generated/policy-engine/policy-engine.js.map +1 -0
  36. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js +284 -0
  37. package/_cjs/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -0
  38. package/_cjs/openapi-client/index.js +1 -0
  39. package/_cjs/openapi-client/index.js.map +1 -1
  40. package/_cjs/version.js +1 -1
  41. package/_esm/accounts/evm/toEvmSmartAccount.js +7 -0
  42. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  43. package/_esm/accounts/{types.js.map → evm/types.js.map} +1 -1
  44. package/_esm/accounts/solana/toSolanaAccount.js +38 -0
  45. package/_esm/accounts/solana/toSolanaAccount.js.map +1 -0
  46. package/_esm/accounts/solana/types.js +2 -0
  47. package/_esm/accounts/solana/types.js.map +1 -0
  48. package/_esm/actions/evm/getUserOperation.js +33 -0
  49. package/_esm/actions/evm/getUserOperation.js.map +1 -0
  50. package/_esm/actions/evm/transfer/accountTransferStrategy.js +11 -7
  51. package/_esm/actions/evm/transfer/accountTransferStrategy.js.map +1 -1
  52. package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js +9 -6
  53. package/_esm/actions/evm/transfer/smartAccountTransferStrategy.js.map +1 -1
  54. package/_esm/actions/evm/transfer/transfer.js +7 -3
  55. package/_esm/actions/evm/transfer/transfer.js.map +1 -1
  56. package/_esm/actions/solana/requestFaucet.js +26 -0
  57. package/_esm/actions/solana/requestFaucet.js.map +1 -0
  58. package/_esm/actions/solana/signMessage.js +26 -0
  59. package/_esm/actions/solana/signMessage.js.map +1 -0
  60. package/_esm/actions/solana/signTransaction.js +43 -0
  61. package/_esm/actions/solana/signTransaction.js.map +1 -0
  62. package/_esm/actions/solana/types.js +2 -0
  63. package/_esm/actions/solana/types.js.map +1 -0
  64. package/_esm/client/evm/evm.js +2 -12
  65. package/_esm/client/evm/evm.js.map +1 -1
  66. package/_esm/client/solana/solana.js +22 -17
  67. package/_esm/client/solana/solana.js.map +1 -1
  68. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +58 -0
  69. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  70. package/_esm/openapi-client/generated/index.msw.js +3 -2
  71. package/_esm/openapi-client/generated/index.msw.js.map +1 -1
  72. package/_esm/openapi-client/generated/policy-engine/policy-engine.js +48 -0
  73. package/_esm/openapi-client/generated/policy-engine/policy-engine.js.map +1 -0
  74. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js +259 -0
  75. package/_esm/openapi-client/generated/policy-engine/policy-engine.msw.js.map +1 -0
  76. package/_esm/openapi-client/index.js +1 -0
  77. package/_esm/openapi-client/index.js.map +1 -1
  78. package/_esm/version.js +1 -1
  79. package/_types/accounts/evm/toEvmServerAccount.d.ts +1 -1
  80. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  81. package/_types/accounts/evm/toEvmSmartAccount.d.ts +1 -1
  82. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  83. package/_types/accounts/{types.d.ts → evm/types.d.ts} +5 -5
  84. package/_types/accounts/evm/types.d.ts.map +1 -0
  85. package/_types/accounts/solana/toSolanaAccount.d.ts +20 -0
  86. package/_types/accounts/solana/toSolanaAccount.d.ts.map +1 -0
  87. package/_types/accounts/solana/types.d.ts +12 -0
  88. package/_types/accounts/solana/types.d.ts.map +1 -0
  89. package/_types/actions/evm/getUserOperation.d.ts +22 -0
  90. package/_types/actions/evm/getUserOperation.d.ts.map +1 -0
  91. package/_types/actions/evm/sendUserOperation.d.ts +1 -1
  92. package/_types/actions/evm/sendUserOperation.d.ts.map +1 -1
  93. package/_types/actions/evm/transfer/accountTransferStrategy.d.ts +1 -1
  94. package/_types/actions/evm/transfer/accountTransferStrategy.d.ts.map +1 -1
  95. package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts +1 -1
  96. package/_types/actions/evm/transfer/smartAccountTransferStrategy.d.ts.map +1 -1
  97. package/_types/actions/evm/transfer/transfer.d.ts +3 -3
  98. package/_types/actions/evm/transfer/transfer.d.ts.map +1 -1
  99. package/_types/actions/evm/transfer/types.d.ts +41 -7
  100. package/_types/actions/evm/transfer/types.d.ts.map +1 -1
  101. package/_types/actions/evm/types.d.ts +28 -5
  102. package/_types/actions/evm/types.d.ts.map +1 -1
  103. package/_types/actions/solana/requestFaucet.d.ts +23 -0
  104. package/_types/actions/solana/requestFaucet.d.ts.map +1 -0
  105. package/_types/actions/solana/signMessage.d.ts +23 -0
  106. package/_types/actions/solana/signMessage.d.ts.map +1 -0
  107. package/_types/actions/solana/signTransaction.d.ts +38 -0
  108. package/_types/actions/solana/signTransaction.d.ts.map +1 -0
  109. package/_types/actions/solana/types.d.ts +80 -0
  110. package/_types/actions/solana/types.d.ts.map +1 -0
  111. package/_types/client/evm/evm.d.ts.map +1 -1
  112. package/_types/client/evm/evm.types.d.ts +3 -3
  113. package/_types/client/evm/evm.types.d.ts.map +1 -1
  114. package/_types/client/solana/solana.d.ts +5 -4
  115. package/_types/client/solana/solana.d.ts.map +1 -1
  116. package/_types/client/solana/solana.types.d.ts +8 -11
  117. package/_types/client/solana/solana.types.d.ts.map +1 -1
  118. package/_types/index.d.ts +1 -1
  119. package/_types/index.d.ts.map +1 -1
  120. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +218 -0
  121. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  122. package/_types/openapi-client/generated/index.msw.d.ts +3 -2
  123. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -1
  124. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts +43 -0
  125. package/_types/openapi-client/generated/policy-engine/policy-engine.d.ts.map +1 -0
  126. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts +25 -0
  127. package/_types/openapi-client/generated/policy-engine/policy-engine.msw.d.ts.map +1 -0
  128. package/_types/openapi-client/index.d.ts +1 -0
  129. package/_types/openapi-client/index.d.ts.map +1 -1
  130. package/_types/version.d.ts +1 -1
  131. package/accounts/evm/toEvmServerAccount.ts +1 -1
  132. package/accounts/evm/toEvmSmartAccount.ts +11 -1
  133. package/accounts/{types.ts → evm/types.ts} +5 -5
  134. package/accounts/solana/toSolanaAccount.ts +59 -0
  135. package/accounts/solana/types.ts +13 -0
  136. package/actions/evm/getUserOperation.ts +40 -0
  137. package/actions/evm/sendUserOperation.ts +1 -1
  138. package/actions/evm/transfer/accountTransferStrategy.ts +12 -8
  139. package/actions/evm/transfer/smartAccountTransferStrategy.ts +10 -7
  140. package/actions/evm/transfer/transfer.ts +17 -6
  141. package/actions/evm/transfer/types.ts +55 -12
  142. package/actions/evm/types.ts +37 -5
  143. package/actions/solana/requestFaucet.ts +35 -0
  144. package/actions/solana/signMessage.ts +36 -0
  145. package/actions/solana/signTransaction.ts +53 -0
  146. package/actions/solana/types.ts +87 -0
  147. package/client/evm/evm.ts +3 -16
  148. package/client/evm/evm.types.ts +4 -3
  149. package/client/solana/solana.ts +32 -37
  150. package/client/solana/solana.types.ts +10 -15
  151. package/index.ts +1 -1
  152. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +274 -0
  153. package/openapi-client/generated/index.msw.ts +3 -2
  154. package/openapi-client/generated/policy-engine/policy-engine.msw.ts +404 -0
  155. package/openapi-client/generated/policy-engine/policy-engine.ts +95 -0
  156. package/openapi-client/index.ts +1 -0
  157. package/package.json +1 -1
  158. package/version.ts +1 -1
  159. package/_types/accounts/types.d.ts.map +0 -1
  160. /package/_cjs/accounts/{types.js → evm/types.js} +0 -0
  161. /package/_esm/accounts/{types.js → evm/types.js} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/evm/sendUserOperation.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI;IACnE,yBAAyB;IACzB,YAAY,EAAE,eAAe,CAAC;IAC9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,6CAA6C;IAC7C,OAAO,EAAE,uBAAuB,CAAC;IACjC,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,uCAAuC;IACvC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,wCAAwC;IACxC,MAAM,EAAE,OAAO,sBAAsB,CAAC,SAAS,CAAC;IAChD,gIAAgI;IAChI,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAClE,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,2BAA2B,CAAC,CAuDtC"}
1
+ {"version":3,"file":"sendUserOperation.d.ts","sourceRoot":"","sources":["../../../actions/evm/sendUserOperation.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;GAIG;AACH,MAAM,MAAM,wBAAwB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI;IACnE,yBAAyB;IACzB,YAAY,EAAE,eAAe,CAAC;IAC9B;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IAChB,6CAA6C;IAC7C,OAAO,EAAE,uBAAuB,CAAC;IACjC,oGAAoG;IACpG,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,uCAAuC;IACvC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,wCAAwC;IACxC,MAAM,EAAE,OAAO,sBAAsB,CAAC,SAAS,CAAC;IAChD,gIAAgI;IAChI,UAAU,EAAE,GAAG,CAAC;CACjB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,wBAAsB,iBAAiB,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,EAClE,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,wBAAwB,CAAC,CAAC,CAAC,GACnC,OAAO,CAAC,2BAA2B,CAAC,CAuDtC"}
@@ -1,4 +1,4 @@
1
1
  import { TransferExecutionStrategy } from "./types.js";
2
- import { EvmAccount } from "../../../accounts/types.js";
2
+ import { EvmAccount } from "../../../accounts/evm/types.js";
3
3
  export declare const accountTransferStrategy: TransferExecutionStrategy<EvmAccount>;
4
4
  //# sourceMappingURL=accountTransferStrategy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"accountTransferStrategy.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/accountTransferStrategy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAGxD,eAAO,MAAM,uBAAuB,EAAE,yBAAyB,CAAC,UAAU,CAsEzE,CAAC"}
1
+ {"version":3,"file":"accountTransferStrategy.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/accountTransferStrategy.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAG5D,eAAO,MAAM,uBAAuB,EAAE,yBAAyB,CAAC,UAAU,CA0EzE,CAAC"}
@@ -1,4 +1,4 @@
1
1
  import { TransferExecutionStrategy } from "./types.js";
2
- import { EvmSmartAccount } from "../../../accounts/types.js";
2
+ import { EvmSmartAccount } from "../../../accounts/evm/types.js";
3
3
  export declare const smartAccountTransferStrategy: TransferExecutionStrategy<EvmSmartAccount>;
4
4
  //# sourceMappingURL=smartAccountTransferStrategy.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"smartAccountTransferStrategy.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/smartAccountTransferStrategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAI7D,eAAO,MAAM,4BAA4B,EAAE,yBAAyB,CAAC,eAAe,CA+DnF,CAAC"}
1
+ {"version":3,"file":"smartAccountTransferStrategy.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/smartAccountTransferStrategy.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAIjE,eAAO,MAAM,4BAA4B,EAAE,yBAAyB,CAAC,eAAe,CAkEnF,CAAC"}
@@ -1,6 +1,6 @@
1
- import { TransferResult, TransferOptions, TransferExecutionStrategy } from "./types.js";
2
- import { EvmAccount, EvmSmartAccount } from "../../../accounts/types.js";
1
+ import { EvmAccount, EvmSmartAccount } from "../../../accounts/evm/types.js";
3
2
  import { CdpOpenApiClientType } from "../../../openapi-client/index.js";
3
+ import type { TransferResult, TransferExecutionStrategy, SmartAccountTransferOptions, AccountTransferOptions } from "./types.js";
4
4
  /**
5
5
  * Transfer an amount of a token from an account to another account.
6
6
  *
@@ -10,5 +10,5 @@ import { CdpOpenApiClientType } from "../../../openapi-client/index.js";
10
10
  * @param transferStrategy - The strategy to use to execute the transfer.
11
11
  * @returns The result of the transfer.
12
12
  */
13
- export declare function transfer<T extends EvmAccount | EvmSmartAccount>(apiClient: CdpOpenApiClientType, from: T, transferArgs: TransferOptions, transferStrategy: TransferExecutionStrategy<T>): Promise<TransferResult>;
13
+ export declare function transfer<T extends EvmAccount | EvmSmartAccount>(apiClient: CdpOpenApiClientType, from: T, transferArgs: T extends EvmSmartAccount ? SmartAccountTransferOptions : AccountTransferOptions, transferStrategy: TransferExecutionStrategy<T>): Promise<TransferResult>;
14
14
  //# sourceMappingURL=transfer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/transfer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAExF,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,UAAU,GAAG,eAAe,EACnE,SAAS,EAAE,oBAAoB,EAC/B,IAAI,EAAE,CAAC,EACP,YAAY,EAAE,eAAe,EAC7B,gBAAgB,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAC7C,OAAO,CAAC,cAAc,CAAC,CAiDzB"}
1
+ {"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/transfer.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,2BAA2B,EAC3B,sBAAsB,EACvB,MAAM,YAAY,CAAC;AAEpB;;;;;;;;GAQG;AACH,wBAAsB,QAAQ,CAAC,CAAC,SAAS,UAAU,GAAG,eAAe,EACnE,SAAS,EAAE,oBAAoB,EAC/B,IAAI,EAAE,CAAC,EACP,YAAY,EAAE,CAAC,SAAS,eAAe,GAAG,2BAA2B,GAAG,sBAAsB,EAC9F,gBAAgB,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAC7C,OAAO,CAAC,cAAc,CAAC,CAsDzB"}
@@ -1,5 +1,7 @@
1
- import { Hex, TransactionReceipt, Address, PublicClient, Chain, Transport } from "viem";
2
- import { CdpOpenApiClientType, EvmAccount, EvmUserOperationNetwork, SendEvmTransactionBodyNetwork } from "../../../openapi-client/index.js";
1
+ import { Hex, TransactionReceipt, Address, PublicClient, Chain, Transport, WaitForTransactionReceiptParameters } from "viem";
2
+ import { CdpOpenApiClientType, EvmUserOperationNetwork, SendEvmTransactionBodyNetwork } from "../../../openapi-client/index.js";
3
+ import type { EvmAccount, EvmSmartAccount } from "../../../accounts/evm/types.js";
4
+ import type { WaitForUserOperationOptions } from "../waitForUserOperation.js";
3
5
  /**
4
6
  * The network to transfer the token on.
5
7
  */
@@ -7,7 +9,7 @@ export type Network = SendEvmTransactionBodyNetwork | EvmUserOperationNetwork;
7
9
  /**
8
10
  * The options for the transfer.
9
11
  */
10
- export type TransferOptions = {
12
+ type TransferOptions = {
11
13
  /** The account to transfer the token to. */
12
14
  to: EvmAccount | Address;
13
15
  /**
@@ -20,6 +22,31 @@ export type TransferOptions = {
20
22
  /** The network to transfer the token on. */
21
23
  network: Network;
22
24
  };
25
+ /**
26
+ * The options for the transfer using an account.
27
+ */
28
+ export type AccountTransferOptions = TransferOptions & {
29
+ /** The options for waiting for the result of the transfer. */
30
+ waitOptions?: {
31
+ /**
32
+ * Polling frequency (in seconds). Defaults to 4 seconds.
33
+ */
34
+ intervalSeconds?: WaitForTransactionReceiptParameters["pollingInterval"];
35
+ /**
36
+ * Optional timeout (in seconds) to wait before stopping polling. Defaults to 180 seconds.
37
+ */
38
+ timeoutSeconds?: WaitForTransactionReceiptParameters["timeout"];
39
+ };
40
+ };
41
+ /**
42
+ * The options for the transfer using a smart account.
43
+ */
44
+ export type SmartAccountTransferOptions = TransferOptions & {
45
+ /** The paymaster URL to use for the transfer. */
46
+ paymasterUrl?: string;
47
+ /** The options for waiting for the result of the transfer. */
48
+ waitOptions?: WaitForUserOperationOptions["waitOptions"];
49
+ };
23
50
  /**
24
51
  * The result of the transfer.
25
52
  */
@@ -32,25 +59,29 @@ export type TransferResult = {
32
59
  /**
33
60
  * A strategy for executing a transfer.
34
61
  */
35
- export interface TransferExecutionStrategy<T> {
62
+ export interface TransferExecutionStrategy<T extends EvmAccount | EvmSmartAccount> {
36
63
  /**
37
64
  * Executes the transfer.
38
65
  *
39
66
  * @param args - The arguments for the transfer.
40
67
  * @param args.apiClient - The API client to use for the transfer.
41
68
  * @param args.from - The account to transfer the token from.
42
- * @param args.transferArgs - The arguments for the transfer.
43
69
  * @param args.to - The account to transfer the token to.
44
70
  * @param args.value - The value of the transfer.
71
+ * @param args.token - The token to transfer.
72
+ * @param args.network - The network to transfer the token on.
45
73
  * @returns The transaction hash of the transfer.
46
74
  */
47
75
  executeTransfer(args: {
48
76
  apiClient: CdpOpenApiClientType;
49
77
  from: T;
50
- transferArgs: TransferOptions;
51
78
  to: Address;
52
79
  value: bigint;
53
- }): Promise<Hex>;
80
+ token: TransferOptions["token"];
81
+ network: TransferOptions["network"];
82
+ } & (T extends EvmSmartAccount ? {
83
+ paymasterUrl?: string;
84
+ } : object)): Promise<Hex>;
54
85
  /**
55
86
  * Waits for the result of the transfer.
56
87
  *
@@ -59,6 +90,7 @@ export interface TransferExecutionStrategy<T> {
59
90
  * @param args.publicClient - The public client to use for the transfer.
60
91
  * @param args.from - The account to transfer the token from.
61
92
  * @param args.hash - The transaction hash of the transfer.
93
+ * @param args.waitOptions - The options for waiting for the result of the transfer.
62
94
  * @returns The result of the transfer.
63
95
  */
64
96
  waitForResult(args: {
@@ -66,6 +98,8 @@ export interface TransferExecutionStrategy<T> {
66
98
  publicClient: PublicClient<Transport, Chain>;
67
99
  from: T;
68
100
  hash: Hex;
101
+ waitOptions?: WaitForUserOperationOptions["waitOptions"];
69
102
  }): Promise<TransferResult>;
70
103
  }
104
+ export {};
71
105
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../actions/evm/transfer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,kBAAkB,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAExF,OAAO,EACL,oBAAoB,EACpB,UAAU,EACV,uBAAuB,EACvB,6BAA6B,EAC9B,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,6BAA6B,GAAG,uBAAuB,CAAC;AAE9E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,4CAA4C;IAC5C,EAAE,EAAE,UAAU,GAAG,OAAO,CAA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,CAAC;QACR,EAAE,EAAE,OAAO,CAAC;QACZ,KAAK,EAAE,MAAM,CAAC;QACd,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC;QAChC,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC,CAAC;KACrC,GAAG,CAAC,CAAC,SAAS,eAAe,GAAG;QAAE,YAAY,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,MAAM,CAAC,GACnE,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhB;;;;;;;;;;OAUG;IACH,aAAa,CAAC,IAAI,EAAE;QAClB,SAAS,EAAE,oBAAoB,CAAC;QAChC,YAAY,EAAE,YAAY,CAAC,SAAS,EAAE,KAAK,CAAC,CAAC;QAC7C,IAAI,EAAE,CAAC,CAAC;QACR,IAAI,EAAE,GAAG,CAAC;QACV,WAAW,CAAC,EAAE,2BAA2B,CAAC,aAAa,CAAC,CAAC;KAC1D,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;CAC7B"}
@@ -1,10 +1,12 @@
1
- import { SendUserOperationReturnType, SendUserOperationOptions } from "./sendUserOperation.js";
2
- import type { ListTokenBalancesResult, ListTokenBalancesOptions } from "./listTokenBalances.js";
1
+ import { SendUserOperationOptions, SendUserOperationReturnType } from "./sendUserOperation.js";
2
+ import { GetUserOperationOptions, UserOperation } from "../../client/evm/evm.types.js";
3
+ import { EvmAccount, EvmSmartAccount } from "../../openapi-client/index.js";
4
+ import type { ListTokenBalancesOptions, ListTokenBalancesResult } from "./listTokenBalances.js";
3
5
  import type { RequestFaucetOptions, RequestFaucetResult } from "./requestFaucet.js";
4
6
  import type { SendTransactionOptions, TransactionResult } from "./sendTransaction.js";
5
- import type { TransferOptions, TransferResult } from "./transfer/types.js";
7
+ import type { AccountTransferOptions, SmartAccountTransferOptions, TransferResult } from "./transfer/types.js";
6
8
  import type { WaitForUserOperationOptions, WaitForUserOperationReturnType } from "./waitForUserOperation.js";
7
- export type Actions = {
9
+ type Actions<T extends EvmAccount | EvmSmartAccount> = {
8
10
  /**
9
11
  * Transfer an amount of a token from an account to another account.
10
12
  *
@@ -88,7 +90,7 @@ export type Actions = {
88
90
  * });
89
91
  * ```
90
92
  */
91
- transfer: (options: TransferOptions) => Promise<TransferResult>;
93
+ transfer: (options: T extends EvmSmartAccount ? SmartAccountTransferOptions : AccountTransferOptions) => Promise<TransferResult>;
92
94
  /**
93
95
  * List the token balances of an account.
94
96
  *
@@ -124,6 +126,8 @@ export type Actions = {
124
126
  * ```
125
127
  */
126
128
  requestFaucet: (options: Omit<RequestFaucetOptions, "address">) => Promise<RequestFaucetResult>;
129
+ };
130
+ export type AccountActions = Actions<EvmAccount> & {
127
131
  /**
128
132
  * Signs an EVM transaction and sends it to the specified network using the Coinbase API.
129
133
  * This method handles nonce management and gas estimation automatically.
@@ -169,6 +173,8 @@ export type Actions = {
169
173
  * ```
170
174
  */
171
175
  sendTransaction: (options: Omit<SendTransactionOptions, "address">) => Promise<TransactionResult>;
176
+ };
177
+ export type SmartAccountActions = Actions<EvmSmartAccount> & {
172
178
  /**
173
179
  * Sends a user operation.
174
180
  *
@@ -226,5 +232,22 @@ export type Actions = {
226
232
  * ```
227
233
  */
228
234
  waitForUserOperation: (options: Omit<WaitForUserOperationOptions, "smartAccountAddress">) => Promise<WaitForUserOperationReturnType>;
235
+ /**
236
+ * Gets a user operation by its hash.
237
+ *
238
+ * @param {GetUserOperationOptions} options - Parameters for getting the user operation.
239
+ * @param {string} options.userOpHash - The user operation hash.
240
+ *
241
+ * @returns A promise that resolves to the user operation.
242
+ *
243
+ * @example
244
+ * ```ts
245
+ * const userOp = await smartAccount.getUserOperation({
246
+ * userOpHash: "0x1234567890123456789012345678901234567890",
247
+ * });
248
+ * ```
249
+ */
250
+ getUserOperation: (options: Omit<GetUserOperationOptions, "smartAccount">) => Promise<UserOperation>;
229
251
  };
252
+ export {};
230
253
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../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;;;;;;;;OAcG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,IAAI,CAAC,wBAAwB,EAAE,SAAS,CAAC,KAC/C,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEtC;;;;;;;;;;;;;;;;;OAiBG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACjG,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,GAAG;IACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2CG;IACH,eAAe,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,sBAAsB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,iBAAiB,CAAC,CAAC;CACnG,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC,GAAG;IAC3D;;;;;;;;;;;;;;;;;;;;;;;;;OAyBG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,IAAI,CAAC,wBAAwB,CAAC,OAAO,EAAE,CAAC,EAAE,cAAc,CAAC,KAC/D,OAAO,CAAC,2BAA2B,CAAC,CAAC;IAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,oBAAoB,EAAE,CACpB,OAAO,EAAE,IAAI,CAAC,2BAA2B,EAAE,qBAAqB,CAAC,KAC9D,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAE7C;;;;;;;;;;;;;;OAcG;IACH,gBAAgB,EAAE,CAChB,OAAO,EAAE,IAAI,CAAC,uBAAuB,EAAE,cAAc,CAAC,KACnD,OAAO,CAAC,aAAa,CAAC,CAAC;CAC7B,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { RequestFaucetOptions, SignatureResult } from "../../client/solana/solana.types.js";
2
+ import { CdpOpenApiClientType } from "../../openapi-client/index.js";
3
+ /**
4
+ * Requests funds from a Solana faucet.
5
+ *
6
+ * @param apiClient - The API client.
7
+ * @param {RequestFaucetOptions} options - Parameters for requesting funds from the Solana faucet.
8
+ * @param {string} options.address - The address to request funds for.
9
+ * @param {string} options.token - The token to request funds for.
10
+ * @param {string} [options.idempotencyKey] - An idempotency key.
11
+ *
12
+ * @returns A promise that resolves to the transaction signature.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const signature = await requestFaucet(cdp.solana, {
17
+ * address: "1234567890123456789012345678901234567890",
18
+ * token: "sol",
19
+ * });
20
+ * ```
21
+ */
22
+ export declare function requestFaucet(apiClient: CdpOpenApiClientType, options: RequestFaucetOptions): Promise<SignatureResult>;
23
+ //# sourceMappingURL=requestFaucet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"requestFaucet.d.ts","sourceRoot":"","sources":["../../../actions/solana/requestFaucet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,aAAa,CACjC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,oBAAoB,GAC5B,OAAO,CAAC,eAAe,CAAC,CAS1B"}
@@ -0,0 +1,23 @@
1
+ import { SignMessageOptions, SignatureResult } from "../../client/solana/solana.types.js";
2
+ import { CdpOpenApiClientType } from "../../openapi-client/index.js";
3
+ /**
4
+ * Sign a message.
5
+ *
6
+ * @param apiClient - The API client.
7
+ * @param {SignMessageOptions} options - Parameters for signing the message.
8
+ * @param {string} options.address - The address to sign the message for.
9
+ * @param {string} options.message - The message to sign.
10
+ * @param {string} [options.idempotencyKey] - An idempotency key.
11
+ *
12
+ * @returns A promise that resolves to the transaction signature.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const signature = await signMessage(cdp.solana, {
17
+ * address: "1234567890123456789012345678901234567890",
18
+ * message: "Hello, world!",
19
+ * });
20
+ * ```
21
+ */
22
+ export declare function signMessage(apiClient: CdpOpenApiClientType, options: SignMessageOptions): Promise<SignatureResult>;
23
+ //# sourceMappingURL=signMessage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signMessage.d.ts","sourceRoot":"","sources":["../../../actions/solana/signMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,WAAW,CAC/B,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,kBAAkB,GAC1B,OAAO,CAAC,eAAe,CAAC,CAU1B"}
@@ -0,0 +1,38 @@
1
+ import { SignTransactionOptions, SignatureResult } from "../../client/solana/solana.types.js";
2
+ import { CdpOpenApiClientType } from "../../openapi-client/index.js";
3
+ /**
4
+ * Signs a transaction.
5
+ *
6
+ * @param apiClient - The API client.
7
+ * @param {SignTransactionOptions} options - Parameters for signing the transaction.
8
+ * @param {string} options.address - The address to sign the transaction for.
9
+ * @param {string} options.transaction - The transaction to sign.
10
+ * @param {string} [options.idempotencyKey] - An idempotency key.
11
+ *
12
+ * @returns A promise that resolves to the signature.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * // Create a Solana account
17
+ * const account = await cdp.solana.createAccount();
18
+ *
19
+ * // Add your transaction instructions here
20
+ * const transaction = new Transaction()
21
+ *
22
+ * // Make sure to set requireAllSignatures to false, since signing will be done through the API
23
+ * const serializedTransaction = transaction.serialize({
24
+ * requireAllSignatures: false,
25
+ * });
26
+ *
27
+ * // Base64 encode the serialized transaction
28
+ * const transaction = Buffer.from(serializedTransaction).toString("base64");
29
+ *
30
+ * // When you want to sign a transaction, you can do so by address and base64 encoded transaction
31
+ * const signature = await signTransaction(cdp.solana, {
32
+ * address: account.address,
33
+ * transaction,
34
+ * });
35
+ * ```
36
+ */
37
+ export declare function signTransaction(apiClient: CdpOpenApiClientType, options: SignTransactionOptions): Promise<SignatureResult>;
38
+ //# sourceMappingURL=signTransaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signTransaction.d.ts","sourceRoot":"","sources":["../../../actions/solana/signTransaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AAErE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,eAAe,CACnC,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,eAAe,CAAC,CAY1B"}
@@ -0,0 +1,80 @@
1
+ import { RequestFaucetOptions, SignatureResult, SignMessageOptions, SignTransactionOptions } from "../../client/solana/solana.types.js";
2
+ export type AccountActions = {
3
+ /**
4
+ * Requests funds from a Solana faucet.
5
+ *
6
+ * @param {RequestFaucetOptions} options - Parameters for requesting funds from the Solana faucet.
7
+ * @param {string} options.token - The token to request funds for.
8
+ * @param {string} [options.idempotencyKey] - An idempotency key.
9
+ *
10
+ * @returns A promise that resolves to the transaction hash.
11
+ *
12
+ * @example
13
+ * ```ts
14
+ * // Create a Solana account
15
+ * const account = await cdp.solana.createAccount();
16
+ *
17
+ * // Request funds from the Solana faucet
18
+ * const result = await account.requestFaucet({
19
+ * token: "sol",
20
+ * });
21
+ * ```
22
+ */
23
+ requestFaucet: (options: Omit<RequestFaucetOptions, "address">) => Promise<SignatureResult>;
24
+ /**
25
+ * Signs a message.
26
+ *
27
+ * @param {SignMessageOptions} options - Parameters for signing the message.
28
+ * @param {string} options.address - The address to sign the message for.
29
+ * @param {string} options.message - The message to sign.
30
+ * @param {string} [options.idempotencyKey] - An idempotency key.
31
+ *
32
+ * @returns A promise that resolves to the signature.
33
+ *
34
+ * @example
35
+ * ```ts
36
+ * // Create a Solana account
37
+ * const account = await cdp.solana.createAccount();
38
+ *
39
+ * // Sign a message
40
+ * const { signature } = await account.signMessage({
41
+ * message: "Hello, world!",
42
+ * });
43
+ * ```
44
+ */
45
+ signMessage: (options: Omit<SignMessageOptions, "address">) => Promise<SignatureResult>;
46
+ /**
47
+ * Signs a transaction.
48
+ *
49
+ * @param {SignTransactionOptions} options - Parameters for signing the transaction.
50
+ * @param {string} options.address - The address to sign the transaction for.
51
+ * @param {string} options.transaction - The transaction to sign.
52
+ * @param {string} [options.idempotencyKey] - An idempotency key.
53
+ *
54
+ * @returns A promise that resolves to the signature.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * // Create a Solana account
59
+ * const account = await cdp.solana.createAccount();
60
+ *
61
+ * // Add your transaction instructions here
62
+ * const transaction = new Transaction()
63
+ *
64
+ * // Make sure to set requireAllSignatures to false, since signing will be done through the API
65
+ * const serializedTransaction = transaction.serialize({
66
+ * requireAllSignatures: false,
67
+ * });
68
+ *
69
+ * // Base64 encode the serialized transaction
70
+ * const transaction = Buffer.from(serializedTransaction).toString("base64");
71
+ *
72
+ * // When you want to sign a transaction, you can do so by address and base64 encoded transaction
73
+ * const { signature } = await account.signTransaction({
74
+ * transaction,
75
+ * });
76
+ * ```
77
+ */
78
+ signTransaction: (options: Omit<SignTransactionOptions, "address">) => Promise<SignatureResult>;
79
+ };
80
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../actions/solana/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACvB,MAAM,qCAAqC,CAAC;AAE7C,MAAM,MAAM,cAAc,GAAG;IAC3B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,aAAa,EAAE,CAAC,OAAO,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,KAAK,OAAO,CAAC,eA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oB,CAAC,OAAO,EAAE,2BAA2B,GAAG,OAAO,CAAC,aAAa,CAAC;IAuBxF;;;;;;;;;;;;;;;;;;;OAmBG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAIhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6CG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIlF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,iBAAiB,CACrB,OAAO,EAAE,wBAAwB,CAAC,OAAO,EAAE,CAAC,GAC3C,OAAO,CAAC,2BAA2B,CAAC;IAUvC;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC;IAclE;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IAcxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAchF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,oBAAoB,CACxB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,8BAA8B,CAAC;CAK3C"}
@@ -1,9 +1,9 @@
1
- import type { EvmAccount as Account, EvmServerAccount as ServerAccount, EvmSmartAccount as SmartAccount } from "../../accounts/types.js";
1
+ import type { EvmAccount as Account, EvmServerAccount as ServerAccount, EvmSmartAccount as SmartAccount } from "../../accounts/evm/types.js";
2
2
  import type { ListTokenBalancesOptions, ListTokenBalancesResult } from "../../actions/evm/listTokenBalances.js";
3
3
  import type { RequestFaucetOptions, RequestFaucetResult } from "../../actions/evm/requestFaucet.js";
4
4
  import type { TransactionResult, SendTransactionOptions } from "../../actions/evm/sendTransaction.js";
5
5
  import type { SendUserOperationOptions, SendUserOperationReturnType } from "../../actions/evm/sendUserOperation.js";
6
- import type { Actions } from "../../actions/evm/types.js";
6
+ import type { SmartAccountActions } from "../../actions/evm/types.js";
7
7
  import type { EvmUserOperationNetwork, EvmUserOperationStatus, OpenApiEvmMethods } from "../../openapi-client/index.js";
8
8
  import type { Calls } from "../../types/calls.js";
9
9
  import type { Address, Hex } from "../../types/misc.js";
@@ -132,7 +132,7 @@ export interface ListServerAccountsOptions {
132
132
  /**
133
133
  * A smart account that only contains the owner address.
134
134
  */
135
- export interface ReadonlySmartAccount extends Omit<SmartAccount, "owners" | keyof Actions> {
135
+ export interface ReadonlySmartAccount extends Omit<SmartAccount, "owners" | keyof SmartAccountActions> {
136
136
  /** The owners of the smart account. */
137
137
  owners: Address[];
138
138
  }
@@ -1 +1 @@
1
- {"version":3,"file":"evm.types.d.ts","sourceRoot":"","sources":["../../../client/evm/evm.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,OAAO,EACrB,gBAAgB,IAAI,aAAa,EACjC,eAAe,IAAI,YAAY,EAChC,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,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WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
1
+ {"version":3,"file":"evm.types.d.ts","sourceRoot":"","sources":["../../../client/evm/evm.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,IAAI,OAAO,EACrB,gBAAgB,IAAI,aAAa,EACjC,eAAe,IAAI,YAAY,EAChC,MAAM,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpG,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACvB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,EACV,wBAAwB,EACxB,2BAA2B,EAC5B,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EACV,uBAAuB,EACvB,sBAAsB,EACtB,iBAAiB,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,IAAI,CACnC,OAAO,iBAAiB,EACtB,kBAAkB,GAClB,uBAAuB,GACvB,eAAe,GACf,qBAAqB,GACrB,oBAAoB,GACpB,kBAAkB,GAClB,iBAAiB,GACjB,sBAAsB,GACtB,sBAAsB,GACtB,sBAAsB,GACtB,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,GACb,gBAAgB,GAChB,oBAAoB,GACpB,oBAAoB,CACvB,GAAG;IACF,aAAa,EAAE,CAAC,OAAO,EAAE,0BAA0B,KAAK,OAAO,CAAC,aAAa,C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C,OAAO,EAAE,OAAO,CAAC;IACjB,wBAAwB;IACxB,IAAI,EAAE,GAAG,CAAC;IACV,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,2BAA2B;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,wEAAwE;IACxE,WAAW,EAAE,GAAG,CAAC;IACjB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,SAAS,EAAE,GAAG,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,2BAA2B;IAC1C,iCAAiC;IACjC,mBAAmB,EAAE,OAAO,CAAC;IAC7B,+BAA+B;IAC/B,UAAU,EAAE,GAAG,CAAC;IAChB,wBAAwB;IACxB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B"}
@@ -1,4 +1,5 @@
1
- import { SolanaClientInterface, Account, CreateAccountOptions, GetAccountOptions, ListAccountsOptions, RequestFaucetOptions, ListAccountsResult, SignatureResult, SignMessageOptions, SignTransactionOptions, GetOrCreateAccountOptions } from "./solana.types.js";
1
+ import { CreateAccountOptions, GetAccountOptions, GetOrCreateAccountOptions, ListAccountsOptions, ListAccountsResult, RequestFaucetOptions, SignatureResult, SignMessageOptions, SignTransactionOptions, SolanaClientInterface } from "./solana.types.js";
2
+ import { SolanaAccount } from "../../accounts/solana/types.js";
2
3
  /**
3
4
  * The namespace containing all Solana methods.
4
5
  */
@@ -33,7 +34,7 @@ export declare class SolanaClient implements SolanaClientInterface {
33
34
  * await cdp.solana.createAccount({ idempotencyKey });
34
35
  * ```
35
36
  */
36
- createAccount(options?: CreateAccountOptions): Promise<Account>;
37
+ createAccount(options?: CreateAccountOptions): Promise<SolanaAccount>;
37
38
  /**
38
39
  * Gets a Solana account by its address.
39
40
  *
@@ -59,7 +60,7 @@ export declare class SolanaClient implements SolanaClientInterface {
59
60
  * });
60
61
  * ```
61
62
  */
62
- getAccount(options: GetAccountOptions): Promise<Account>;
63
+ getAccount(options: GetAccountOptions): Promise<SolanaAccount>;
63
64
  /**
64
65
  * Gets a Solana account by its address.
65
66
  *
@@ -75,7 +76,7 @@ export declare class SolanaClient implements SolanaClientInterface {
75
76
  * });
76
77
  * ```
77
78
  */
78
- getOrCreateAccount(options: GetOrCreateAccountOptions): Promise<Account>;
79
+ getOrCreateAccount(options: GetOrCreateAccountOptions): Promise<SolanaAccount>;
79
80
  /**
80
81
  * Lists all Solana accounts.
81
82
  *
@@ -1 +1 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../client/solana/solana.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,OAAO,EACP,oBAAoB,EACpB,iBAAiB,EACjB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,yBAAyB,EAC1B,MAAM,mBAAmB,CAAC;AAI3B;;GAEG;AACH,qBAAa,YAAa,YAAW,qBAAqB;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC;IAIzE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC;IAY9D;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,OAAO,CAAC;IA0B9E;;;;;;;;;;;;;;;;;;;;;;;;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;;OAiBG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAI5E;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,WAAW,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,eAAe,CAAC;IAIxE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;CAGjF"}
@@ -1,4 +1,5 @@
1
- import { OpenApiSolanaMethods, SolanaAccount as OpenAPISolanaAccount } from "../../openapi-client/index.js";
1
+ import { Account, SolanaAccount } from "../../accounts/solana/types.js";
2
+ import { OpenApiSolanaMethods } from "../../openapi-client/index.js";
2
3
  /**
3
4
  * The SolanaClient type, where all OpenApiSolanaMethods methods are wrapped.
4
5
  */
@@ -12,9 +13,12 @@ export type SolanaClientInterface = Omit<typeof OpenApiSolanaMethods, "createSol
12
13
  signTransaction: (options: SignTransactionOptions) => Promise<SignatureResult>;
13
14
  };
14
15
  /**
15
- * A Solana account.
16
+ * A Solana signature result.
16
17
  */
17
- export type Account = OpenAPISolanaAccount;
18
+ export interface SignatureResult {
19
+ /** The signature. */
20
+ signature: string;
21
+ }
18
22
  /**
19
23
  * Options for creating a Solana account.
20
24
  */
@@ -54,7 +58,7 @@ export interface ListAccountsOptions {
54
58
  */
55
59
  export interface ListAccountsResult {
56
60
  /** The accounts. */
57
- accounts: Account[];
61
+ accounts: SolanaAccount[];
58
62
  /**
59
63
  * The token for the next page of accounts, if any.
60
64
  */
@@ -93,11 +97,4 @@ export interface SignTransactionOptions {
93
97
  /** The idempotency key. */
94
98
  idempotencyKey?: string;
95
99
  }
96
- /**
97
- * A Solana signature result.
98
- */
99
- export interface SignatureResult {
100
- /** The signature. */
101
- signature: string;
102
- }
103
100
  //# sourceMappingURL=solana.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"solana.types.d.ts","sourceRoot":"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ACf;AAED;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,qBAAqB;IACrB,SAAS,EAAE,MAAM,CAAC;CACnB"}
1
+ {"version":3,"file":"solana.types.d.ts","sourceRoot":"","sources":["../../../client/solana/solana.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AA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;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,qBAAqB;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sBAAsB;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,oBAAoB;IACpB,QAAQ,EAAE,aAAa,EAAE,CAAC;IAC1B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,sCAAsC;IACtC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
package/_types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export { CdpClient } from "./client/cdp.js";
2
- export type { EvmServerAccount, EvmSmartAccount } from "./accounts/types.js";
2
+ export type { EvmServerAccount, EvmSmartAccount } from "./accounts/evm/types.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,YAAY,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC"}