@coinbase/cdp-sdk 1.10.0 → 1.11.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 (116) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +20 -0
  3. package/_cjs/accounts/evm/toEvmServerAccount.js +18 -0
  4. package/_cjs/accounts/evm/toEvmServerAccount.js.map +1 -1
  5. package/_cjs/accounts/evm/toEvmSmartAccount.js +18 -0
  6. package/_cjs/accounts/evm/toEvmSmartAccount.js.map +1 -1
  7. package/_cjs/actions/evm/fund/Quote.js +63 -0
  8. package/_cjs/actions/evm/fund/Quote.js.map +1 -0
  9. package/_cjs/actions/evm/fund/fund.js +49 -0
  10. package/_cjs/actions/evm/fund/fund.js.map +1 -0
  11. package/_cjs/actions/evm/fund/quoteFund.js +46 -0
  12. package/_cjs/actions/evm/fund/quoteFund.js.map +1 -0
  13. package/_cjs/actions/evm/fund/types.js +3 -0
  14. package/_cjs/actions/evm/fund/types.js.map +1 -0
  15. package/_cjs/actions/evm/fund/waitForFundOperationReceipt.js +64 -0
  16. package/_cjs/actions/evm/fund/waitForFundOperationReceipt.js.map +1 -0
  17. package/_cjs/client/evm/evm.js +1 -0
  18. package/_cjs/client/evm/evm.js.map +1 -1
  19. package/_cjs/client/solana/solana.js +4 -1
  20. package/_cjs/client/solana/solana.js.map +1 -1
  21. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +40 -1
  22. package/_cjs/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  23. package/_cjs/openapi-client/generated/index.msw.js +4 -3
  24. package/_cjs/openapi-client/generated/index.msw.js.map +1 -1
  25. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.js +50 -0
  26. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.js.map +1 -0
  27. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js +270 -0
  28. package/_cjs/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +1 -0
  29. package/_cjs/openapi-client/index.js +3 -0
  30. package/_cjs/openapi-client/index.js.map +1 -1
  31. package/_cjs/version.js +1 -1
  32. package/_esm/accounts/evm/toEvmServerAccount.js +18 -0
  33. package/_esm/accounts/evm/toEvmServerAccount.js.map +1 -1
  34. package/_esm/accounts/evm/toEvmSmartAccount.js +18 -0
  35. package/_esm/accounts/evm/toEvmSmartAccount.js.map +1 -1
  36. package/_esm/actions/evm/fund/Quote.js +59 -0
  37. package/_esm/actions/evm/fund/Quote.js.map +1 -0
  38. package/_esm/actions/evm/fund/fund.js +46 -0
  39. package/_esm/actions/evm/fund/fund.js.map +1 -0
  40. package/_esm/actions/evm/fund/quoteFund.js +43 -0
  41. package/_esm/actions/evm/fund/quoteFund.js.map +1 -0
  42. package/_esm/actions/evm/fund/types.js +2 -0
  43. package/_esm/actions/evm/fund/types.js.map +1 -0
  44. package/_esm/actions/evm/fund/waitForFundOperationReceipt.js +61 -0
  45. package/_esm/actions/evm/fund/waitForFundOperationReceipt.js.map +1 -0
  46. package/_esm/client/evm/evm.js +1 -0
  47. package/_esm/client/evm/evm.js.map +1 -1
  48. package/_esm/client/solana/solana.js +4 -1
  49. package/_esm/client/solana/solana.js.map +1 -1
  50. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js +39 -0
  51. package/_esm/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.js.map +1 -1
  52. package/_esm/openapi-client/generated/index.msw.js +4 -3
  53. package/_esm/openapi-client/generated/index.msw.js.map +1 -1
  54. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.js +42 -0
  55. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.js.map +1 -0
  56. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js +250 -0
  57. package/_esm/openapi-client/generated/payments-alpha/payments-alpha.msw.js.map +1 -0
  58. package/_esm/openapi-client/index.js +3 -0
  59. package/_esm/openapi-client/index.js.map +1 -1
  60. package/_esm/version.js +1 -1
  61. package/_types/accounts/evm/toEvmServerAccount.d.ts.map +1 -1
  62. package/_types/accounts/evm/toEvmSmartAccount.d.ts.map +1 -1
  63. package/_types/accounts/evm/types.d.ts +1 -2
  64. package/_types/accounts/evm/types.d.ts.map +1 -1
  65. package/_types/actions/evm/fund/Quote.d.ts +51 -0
  66. package/_types/actions/evm/fund/Quote.d.ts.map +1 -0
  67. package/_types/actions/evm/fund/fund.d.ts +25 -0
  68. package/_types/actions/evm/fund/fund.d.ts.map +1 -0
  69. package/_types/actions/evm/fund/quoteFund.d.ts +25 -0
  70. package/_types/actions/evm/fund/quoteFund.d.ts.map +1 -0
  71. package/_types/actions/evm/fund/types.d.ts +16 -0
  72. package/_types/actions/evm/fund/types.d.ts.map +1 -0
  73. package/_types/actions/evm/fund/waitForFundOperationReceipt.d.ts +68 -0
  74. package/_types/actions/evm/fund/waitForFundOperationReceipt.d.ts.map +1 -0
  75. package/_types/actions/evm/types.d.ts +65 -0
  76. package/_types/actions/evm/types.d.ts.map +1 -1
  77. package/_types/client/evm/evm.d.ts.map +1 -1
  78. package/_types/client/evm/evm.types.d.ts +2 -0
  79. package/_types/client/evm/evm.types.d.ts.map +1 -1
  80. package/_types/client/solana/solana.d.ts.map +1 -1
  81. package/_types/client/solana/solana.types.d.ts +2 -0
  82. package/_types/client/solana/solana.types.d.ts.map +1 -1
  83. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts +247 -0
  84. package/_types/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.d.ts.map +1 -1
  85. package/_types/openapi-client/generated/index.msw.d.ts +4 -3
  86. package/_types/openapi-client/generated/index.msw.d.ts.map +1 -1
  87. package/_types/openapi-client/generated/payments-alpha/payments-alpha.d.ts +42 -0
  88. package/_types/openapi-client/generated/payments-alpha/payments-alpha.d.ts.map +1 -0
  89. package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts +20 -0
  90. package/_types/openapi-client/generated/payments-alpha/payments-alpha.msw.d.ts.map +1 -0
  91. package/_types/openapi-client/index.d.ts +6 -0
  92. package/_types/openapi-client/index.d.ts.map +1 -1
  93. package/_types/types/misc.d.ts +2 -2
  94. package/_types/types/misc.d.ts.map +1 -1
  95. package/_types/version.d.ts +1 -1
  96. package/accounts/evm/toEvmServerAccount.ts +26 -0
  97. package/accounts/evm/toEvmSmartAccount.ts +26 -0
  98. package/accounts/evm/types.ts +1 -2
  99. package/actions/evm/fund/Quote.ts +83 -0
  100. package/actions/evm/fund/fund.ts +76 -0
  101. package/actions/evm/fund/quoteFund.ts +81 -0
  102. package/actions/evm/fund/types.ts +16 -0
  103. package/actions/evm/fund/waitForFundOperationReceipt.ts +118 -0
  104. package/actions/evm/types.ts +73 -0
  105. package/client/evm/evm.ts +1 -0
  106. package/client/evm/evm.types.ts +2 -0
  107. package/client/solana/solana.ts +4 -1
  108. package/client/solana/solana.types.ts +2 -0
  109. package/openapi-client/generated/coinbaseDeveloperPlatformAPIs.schemas.ts +288 -0
  110. package/openapi-client/generated/index.msw.ts +4 -3
  111. package/openapi-client/generated/payments-alpha/payments-alpha.msw.ts +369 -0
  112. package/openapi-client/generated/payments-alpha/payments-alpha.ts +96 -0
  113. package/openapi-client/index.ts +3 -0
  114. package/package.json +1 -1
  115. package/types/misc.ts +2 -2
  116. package/version.ts +1 -1
@@ -0,0 +1,51 @@
1
+ import { FundOperationResult } from "./types.js";
2
+ import { CdpOpenApiClientType } from "../../../openapi-client/index.js";
3
+ /**
4
+ * A class representing a funding quote that can be executed.
5
+ */
6
+ export declare class Quote {
7
+ /** Quote for the transfer. */
8
+ quoteId: string;
9
+ /** Network to transfer the funds to. */
10
+ network: "base" | "ethereum";
11
+ /** The amount in fiat currency. */
12
+ fiatAmount: string;
13
+ /** The fiat currency. */
14
+ fiatCurrency: string;
15
+ /** The amount in the token to transfer. */
16
+ tokenAmount: string;
17
+ /** The token to transfer. */
18
+ token: string;
19
+ /** Fees in the token to transfer. */
20
+ fees: {
21
+ /** The type of fee. */
22
+ type: "exchange_fee" | "network_fee";
23
+ amount: string;
24
+ currency: string;
25
+ }[];
26
+ private apiClient;
27
+ /**
28
+ * Creates a new Quote instance.
29
+ *
30
+ * @param apiClient - The API client.
31
+ * @param quoteId - The quote ID.
32
+ * @param network - The network to transfer funds to.
33
+ * @param fiatAmount - The amount in fiat currency.
34
+ * @param fiatCurrency - The fiat currency.
35
+ * @param tokenAmount - The amount in the token to transfer.
36
+ * @param token - The token to transfer.
37
+ * @param fees - Fees for the transfer.
38
+ */
39
+ constructor(apiClient: CdpOpenApiClientType, quoteId: string, network: "base" | "ethereum", fiatAmount: string, fiatCurrency: string, tokenAmount: string, token: string, fees: {
40
+ type: "exchange_fee" | "network_fee";
41
+ amount: string;
42
+ currency: string;
43
+ }[]);
44
+ /**
45
+ * Executes the quote to perform the actual fund transfer.
46
+ *
47
+ * @returns A promise that resolves to the result of the executed quote.
48
+ */
49
+ execute(): Promise<FundOperationResult>;
50
+ }
51
+ //# sourceMappingURL=Quote.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Quote.d.ts","sourceRoot":"","sources":["../../../../actions/evm/fund/Quote.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AAExE;;GAEG;AACH,qBAAa,KAAK;IAChB,8BAA8B;IACvB,OAAO,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACjC,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;IACpC,mCAAmC;IAC5B,UAAU,EAAE,MAAM,CAAC;IAC1B,yBAAyB;IAClB,YAAY,EAAE,MAAM,CAAC;IAC5B,2CAA2C;IACpC,WAAW,EAAE,MAAM,CAAC;IAC3B,6BAA6B;IACtB,KAAK,EAAE,MAAM,CAAC;IACrB,qCAAqC;IAC9B,IAAI,EAAE;QACX,uBAAuB;QACvB,IAAI,EAAE,cAAc,GAAG,aAAa,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,EAAE,CAAC;IAEJ,OAAO,CAAC,SAAS,CAAuB;IAExC;;;;;;;;;;;OAWG;gBAED,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GAAG,UAAU,EAC5B,UAAU,EAAE,MAAM,EAClB,YAAY,EAAE,MAAM,EACpB,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE;QACJ,IAAI,EAAE,cAAc,GAAG,aAAa,CAAC;QACrC,MAAM,EAAE,MAAM,CAAC;QACf,QAAQ,EAAE,MAAM,CAAC;KAClB,EAAE;IAYL;;;;OAIG;IACG,OAAO,IAAI,OAAO,CAAC,mBAAmB,CAAC;CAY9C"}
@@ -0,0 +1,25 @@
1
+ import { FundOperationResult } from "./types.js";
2
+ import { type CdpOpenApiClientType } from "../../../openapi-client/index.js";
3
+ /**
4
+ * Options for funding an EVM account.
5
+ */
6
+ export interface FundOptions {
7
+ /** The address of the account. */
8
+ address: string;
9
+ /** The network to request funds from. */
10
+ network: "base";
11
+ /** The amount to fund the account with, in atomic units (wei) of the token. */
12
+ amount: bigint;
13
+ /** The token to request funds for. */
14
+ token: "eth" | "usdc";
15
+ }
16
+ /**
17
+ * Funds an EVM account.
18
+ *
19
+ * @param apiClient - The API client.
20
+ * @param options - The options for funding an EVM account.
21
+ *
22
+ * @returns A promise that resolves to the fund operation result.
23
+ */
24
+ export declare function fund(apiClient: CdpOpenApiClientType, options: FundOptions): Promise<FundOperationResult>;
25
+ //# sourceMappingURL=fund.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fund.d.ts","sourceRoot":"","sources":["../../../../actions/evm/fund/fund.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAsB,IAAI,CACxB,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,mBAAmB,CAAC,CAyC9B"}
@@ -0,0 +1,25 @@
1
+ import { Quote } from "./Quote.js";
2
+ import { type CdpOpenApiClientType } from "../../../openapi-client/index.js";
3
+ /**
4
+ * Options for getting a quote to fund an EVM account.
5
+ */
6
+ export interface QuoteFundOptions {
7
+ /** The address of the account. */
8
+ address: string;
9
+ /** The network to request funds from. */
10
+ network: "base";
11
+ /** The amount to fund the account with, in atomic units (wei) of the token. */
12
+ amount: bigint;
13
+ /** The token to request funds for. */
14
+ token: "eth" | "usdc";
15
+ }
16
+ /**
17
+ * Gets a quote to fund an EVM account.
18
+ *
19
+ * @param apiClient - The API client.
20
+ * @param options - The options for getting a quote to fund an EVM account.
21
+ *
22
+ * @returns A promise that resolves to the quote.
23
+ */
24
+ export declare function quoteFund(apiClient: CdpOpenApiClientType, options: QuoteFundOptions): Promise<Quote>;
25
+ //# sourceMappingURL=quoteFund.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"quoteFund.d.ts","sourceRoot":"","sources":["../../../../actions/evm/fund/quoteFund.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB,+EAA+E;IAC/E,MAAM,EAAE,MAAM,CAAC;IACf,sCAAsC;IACtC,KAAK,EAAE,KAAK,GAAG,MAAM,CAAC;CACvB;AAED;;;;;;;GAOG;AACH,wBAAsB,SAAS,CAC7B,SAAS,EAAE,oBAAoB,EAC/B,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,KAAK,CAAC,CA8ChB"}
@@ -0,0 +1,16 @@
1
+ import { TransferStatus } from "../../../openapi-client/index.js";
2
+ export type FundOperationResult = {
3
+ /** The transfer that was created to fund the account. */
4
+ id: string;
5
+ /** The network that the transfer was created on. */
6
+ network: string;
7
+ /** The target amount that will be received. */
8
+ targetAmount: string;
9
+ /** The currency that will be received. */
10
+ targetCurrency: string;
11
+ /** The status of the fund operation. */
12
+ status: TransferStatus;
13
+ /** The transaction hash of the transfer. */
14
+ transactionHash?: string;
15
+ };
16
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../actions/evm/fund/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,MAAM,MAAM,mBAAmB,GAAG;IAChC,yDAAyD;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,MAAM,EAAE,cAAc,CAAC;IACvB,4CAA4C;IAC5C,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC"}
@@ -0,0 +1,68 @@
1
+ import { CdpOpenApiClientType, TransferStatus } from "../../../openapi-client/index.js";
2
+ import { WaitOptions } from "../../../utils/wait.js";
3
+ /**
4
+ * Options for waiting for a fund operation.
5
+ */
6
+ export type WaitForFundOperationOptions = {
7
+ /** The ID of the transfer to wait for. */
8
+ transferId: string;
9
+ /** Optional options for the wait operation. */
10
+ waitOptions?: WaitOptions;
11
+ };
12
+ /**
13
+ * Represents a failed fund operation.
14
+ */
15
+ export type FailedFundOperation = {
16
+ /** The ID of the transfer. */
17
+ id: string;
18
+ /** The network that the transfer was created on. */
19
+ network: string;
20
+ /** The target amount that will be received. */
21
+ targetAmount: string;
22
+ /** The currency that will be received. */
23
+ targetCurrency: string;
24
+ /** The status of the transfer. */
25
+ status: typeof TransferStatus.failed;
26
+ };
27
+ /**
28
+ * Represents a completed fund operation.
29
+ */
30
+ export type CompletedFundOperation = {
31
+ /** The ID of the transfer. */
32
+ id: string;
33
+ /** The network that the transfer was created on. */
34
+ network: string;
35
+ /** The target amount that will be received. */
36
+ targetAmount: string;
37
+ /** The currency that will be received. */
38
+ targetCurrency: string;
39
+ /** The status of the transfer. */
40
+ status: typeof TransferStatus.completed;
41
+ /** The transaction hash of the transfer. */
42
+ transactionHash: string;
43
+ };
44
+ /**
45
+ * Represents the return type of the waitForFundOperation function.
46
+ */
47
+ export type WaitForFundOperationResult = FailedFundOperation | CompletedFundOperation;
48
+ /**
49
+ * Waits for a fund operation to complete or fail.
50
+ *
51
+ * @example
52
+ * ```ts
53
+ * import { waitForFundOperation } from "@coinbase/cdp-sdk";
54
+ *
55
+ * const result = await waitForFundOperation(client, {
56
+ * transferId: "0x1234567890123456789012345678901234567890",
57
+ * waitOptions: {
58
+ * timeoutSeconds: 30,
59
+ * },
60
+ * });
61
+ * ```
62
+ *
63
+ * @param {CdpOpenApiClientType} client - The client to use to wait for the fund operation.
64
+ * @param {WaitForFundOperationOptions} options - The options for the wait operation.
65
+ * @returns {Promise<WaitForFundOperationResult>} The result of the fund operation.
66
+ */
67
+ export declare function waitForFundOperationReceipt(client: CdpOpenApiClientType, options: WaitForFundOperationOptions): Promise<WaitForFundOperationResult>;
68
+ //# sourceMappingURL=waitForFundOperationReceipt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"waitForFundOperationReceipt.d.ts","sourceRoot":"","sources":["../../../../actions/evm/fund/waitForFundOperationReceipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAY,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClG,OAAO,EAAQ,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,0CAA0C;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,+CAA+C;IAC/C,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAChC,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,MAAM,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC,8BAA8B;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,oDAAoD;IACpD,OAAO,EAAE,MAAM,CAAC;IAChB,+CAA+C;IAC/C,YAAY,EAAE,MAAM,CAAC;IACrB,0CAA0C;IAC1C,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,MAAM,EAAE,OAAO,cAAc,CAAC,SAAS,CAAC;IACxC,4CAA4C;IAC5C,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,mBAAmB,GAAG,sBAAsB,CAAC;AAEtF;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAsB,2BAA2B,CAC/C,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,0BAA0B,CAAC,CAqCrC"}
@@ -1,3 +1,8 @@
1
+ import { FundOptions } from "./fund/fund.js";
2
+ import { Quote } from "./fund/Quote.js";
3
+ import { QuoteFundOptions } from "./fund/quoteFund.js";
4
+ import { FundOperationResult } from "./fund/types.js";
5
+ import { WaitForFundOperationOptions, WaitForFundOperationResult } from "./fund/waitForFundOperationReceipt.js";
1
6
  import { SendUserOperationOptions, SendUserOperationReturnType } from "./sendUserOperation.js";
2
7
  import { GetUserOperationOptions, UserOperation } from "../../client/evm/evm.types.js";
3
8
  import { Hex } from "../../types/misc.js";
@@ -42,6 +47,66 @@ type Actions = {
42
47
  * ```
43
48
  */
44
49
  requestFaucet: (options: Omit<RequestFaucetOptions, "address">) => Promise<RequestFaucetResult>;
50
+ /**
51
+ * Gets a quote to fund an EVM account.
52
+ *
53
+ * @param options - The options for the quote fund.
54
+ * @param options.network - The network to fund the account on.
55
+ * @param options.token - The token to fund the account with.
56
+ * @param options.amount - The amount of the token to fund represented as an atomic unit.
57
+ * It's common to use `parseUnits` utils from viem to convert to atomic units.
58
+ * Otherwise, you can pass atomic units directly.
59
+ *
60
+ * @returns A promise that resolves to a Quote object containing details about the funding operation.
61
+ *
62
+ * @example
63
+ * ```ts
64
+ * const quote = await account.quoteFund({
65
+ * network: "base",
66
+ * token: "usdc",
67
+ * amount: 1000000n,
68
+ * });
69
+ * ```
70
+ */
71
+ quoteFund: (options: Omit<QuoteFundOptions, "address">) => Promise<Quote>;
72
+ /**
73
+ * Funds an EVM account with the specified token amount.
74
+ *
75
+ * @param options - The options for the fund operation.
76
+ * @param options.network - The network to fund the account on.
77
+ * @param options.token - The token to fund the account with (e.g., 'usdc').
78
+ * @param options.amount - The amount of the token to fund represented as an atomic unit.
79
+ * It's common to use `parseUnits` utils from viem to convert to atomic units.
80
+ * Otherwise, you can pass atomic units directly.
81
+ *
82
+ * @returns A promise that resolves to the fund operation result containing the transfer details.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * const fundOperation = await account.fund({
87
+ * network: "base",
88
+ * token: "usdc",
89
+ * amount: 1000000n,
90
+ * });
91
+ * ```
92
+ */
93
+ fund: (options: Omit<FundOptions, "address">) => Promise<FundOperationResult>;
94
+ /**
95
+ * Waits for a fund operation to complete and returns the transfer receipt.
96
+ *
97
+ * @param options - The options for the wait for fund operation.
98
+ * @param options.transferId - The ID of the transfer to wait for.
99
+ *
100
+ * @returns A promise that resolves to the completed transfer receipt containing details about the funding operation.
101
+ *
102
+ * @example
103
+ * ```ts
104
+ * const completedTransfer = await account.waitForFundOperationReceipt({
105
+ * transferId: "transfer_123",
106
+ * });
107
+ * ```
108
+ */
109
+ waitForFundOperationReceipt(options: WaitForFundOperationOptions): Promise<WaitForFundOperationResult>;
45
110
  };
46
111
  export type AccountActions = Actions & {
47
112
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../actions/evm/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACvF,OAAO,EAAE,GAAG,EAAE,MAAM,qBAAqB,CAAC;AAE1C,OAAO,KAAK,EAAE,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAChG,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACpF,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACtF,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EACV,2BAA2B,EAC3B,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AAEnC,KAAK,OAAO,GAAG;IACb;;;;;;;;;;;;;;OAcG;IACH,iBAAiB,EAAE,CACjB,OAAO,EAAE,IAAI,CAAC,wBAAwB,E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;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;IAiB5E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAchF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,aAAa,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC;IAgB7E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+BG;IACG,oBAAoB,CACxB,OAAO,EAAE,2BAA2B,GACnC,OAAO,CAAC,8BAA8B,CAAC;CAK3C"}
@@ -95,6 +95,8 @@ export interface UserOperation {
95
95
  export interface CreateServerAccountOptions {
96
96
  /** The name of the account. */
97
97
  name?: string;
98
+ /** The policy ID to apply to the account. */
99
+ accountPolicy?: string;
98
100
  /** The idempotency key. */
99
101
  idempotencyKey?: string;
100
102
  }
@@ -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,6BAA6B,CAAC;AACrC,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CA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B,2BAA2B;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,2BAA2B;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,kCAAkC;IAClC,OAAO,EAAE,OAAO,CAAC;IACjB,iCAAiC;IACjC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,gCAAgC;IAChC,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9B,6HAA6H;IAC7H,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1C,oHAAoH;IACpH,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;IAClC,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 +1 @@
1
- {"version":3,"file":"solana.d.ts","sourceRoot":"","sources":["../../../client/solana/solana.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,oBAAoB,EACpB,eAAe,EACf,kBAAkB,EAClB,sBAAsB,EACtB,qBAAqB,EACrB,0BAA0B,EAC3B,MAAM,mBAAmB,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qB,EACrB,0BAA0B,EAC3B,MAAM,mBAAmB,CAAC;AAE3B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAQ/D;;GAEG;AACH,qBAAa,YAAa,YAAW,qBAAqB;IACxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACG,aAAa,CAAC,OAAO,GAAE,oBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IAkB/E;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,aAAa,CAAC;IAsBpE;;;;;;;;;;;;;;OAcG;IACG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,aAAa,CAAC;IA0BpF;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,YAAY,CAAC,OAAO,GAAE,mBAAwB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAoBlF;;;;;;;;;;;;;;;;;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;IAIhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACG,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,OAAO,CAAC,aAAa,CAAC;CAejF"}
@@ -26,6 +26,8 @@ export interface SignatureResult {
26
26
  export interface CreateAccountOptions {
27
27
  /** The name of the account. */
28
28
  name?: string;
29
+ /** The policy ID to apply to the account. */
30
+ accountPolicy?: string;
29
31
  /** The idempotency key. */
30
32
  idempotencyKey?: string;
31
33
  }
@@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jC,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"}
@@ -471,6 +471,206 @@ export interface SolanaAccount {
471
471
  /** The list of policy IDs that apply to the account. This will include both the project-level policy and the account-level policy, if one exists. */
472
472
  policies?: string[];
473
473
  }
474
+ /**
475
+ * The action of the payment method.
476
+ */
477
+ export type PaymentRailAction = (typeof PaymentRailAction)[keyof typeof PaymentRailAction];
478
+ export declare const PaymentRailAction: {
479
+ readonly source: "source";
480
+ readonly target: "target";
481
+ };
482
+ /**
483
+ * The type of payment method.
484
+ */
485
+ export type PaymentMethodType = (typeof PaymentMethodType)[keyof typeof PaymentMethodType];
486
+ export declare const PaymentMethodType: {
487
+ readonly card: "card";
488
+ readonly fiat_account: "fiat_account";
489
+ };
490
+ /**
491
+ * The limit for this payment method being used as a source for transfers.
492
+ */
493
+ export type PaymentMethodLimitsSourceLimit = {
494
+ /** The amount of the limit. */
495
+ amount?: string;
496
+ /** The currency of the limit. */
497
+ currency?: string;
498
+ };
499
+ /**
500
+ * The limit for this payment method being used as a target for transfers.
501
+ */
502
+ export type PaymentMethodLimitsTargetLimit = {
503
+ /** The amount of the limit. */
504
+ amount?: string;
505
+ /** The currency of the limit. */
506
+ currency?: string;
507
+ };
508
+ /**
509
+ * The limits of the payment method.
510
+ */
511
+ export type PaymentMethodLimits = {
512
+ /** The limit for this payment method being used as a source for transfers. */
513
+ sourceLimit?: PaymentMethodLimitsSourceLimit;
514
+ /** The limit for this payment method being used as a target for transfers. */
515
+ targetLimit?: PaymentMethodLimitsTargetLimit;
516
+ };
517
+ /**
518
+ * The fiat payment method object.
519
+ */
520
+ export interface PaymentMethod {
521
+ /**
522
+ * The ID of the payment method which previously was added.
523
+ * @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
524
+ */
525
+ id: string;
526
+ /** The type of payment method. */
527
+ type: PaymentMethodType;
528
+ /** The currency of the payment method. */
529
+ currency: string;
530
+ /** The actions for the payment method. */
531
+ actions: PaymentRailAction[];
532
+ /** The limits of the payment method. */
533
+ limits?: PaymentMethodLimits;
534
+ }
535
+ /**
536
+ * The networks of the asset.
537
+ */
538
+ export type CryptoRailNetworksItem = {
539
+ /** The name of the network. */
540
+ name?: string;
541
+ /** The chain ID of the network. */
542
+ chainId?: number;
543
+ /** The contract address of the asset on the network. */
544
+ contractAddress?: string;
545
+ };
546
+ /**
547
+ * The crypto rails available.
548
+ */
549
+ export interface CryptoRail {
550
+ /** The currency symbol of the asset. */
551
+ currency: string;
552
+ /** The name of the asset. */
553
+ name: string;
554
+ /** All available networks of the asset. */
555
+ networks: CryptoRailNetworksItem[];
556
+ /** The actions for the crypto rail. */
557
+ actions: PaymentRailAction[];
558
+ }
559
+ /**
560
+ * The fiat payment method request object.
561
+ */
562
+ export interface PaymentMethodRequest {
563
+ /**
564
+ * The ID of the payment method.
565
+ * @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
566
+ */
567
+ id: string;
568
+ }
569
+ /**
570
+ * The source of the transfer.
571
+ */
572
+ export type TransferSource = PaymentMethodRequest;
573
+ /**
574
+ * The crypto rail input object which specifies the symbol, network, and address which is the source or destination wallet address.
575
+ */
576
+ export interface CryptoRailAddress {
577
+ /** The symbol of the currency of the payment rail. */
578
+ currency: string;
579
+ /** The network of the payment rail. */
580
+ network: string;
581
+ /** The address of the payment rail. This is the source or destination wallet address. It is not a contract address. */
582
+ address: string;
583
+ }
584
+ /**
585
+ * The target of the transfer.
586
+ */
587
+ export type TransferTarget = CryptoRailAddress;
588
+ /**
589
+ * The type of fee.
590
+ */
591
+ export type FeeType = (typeof FeeType)[keyof typeof FeeType];
592
+ export declare const FeeType: {
593
+ readonly exchange_fee: "exchange_fee";
594
+ readonly network_fee: "network_fee";
595
+ };
596
+ /**
597
+ * The fee for the transfer.
598
+ */
599
+ export interface Fee {
600
+ /** The type of fee. */
601
+ type: FeeType;
602
+ /** The amount of the fee. */
603
+ amount: string;
604
+ /** The currency of the fee. */
605
+ currency: string;
606
+ /** The description of the fee. */
607
+ description?: string;
608
+ }
609
+ /**
610
+ * The type of the source of the transfer.
611
+ */
612
+ export type TransferSourceType = (typeof TransferSourceType)[keyof typeof TransferSourceType];
613
+ export declare const TransferSourceType: {
614
+ readonly payment_method: "payment_method";
615
+ };
616
+ /**
617
+ * The type of the target of the transfer.
618
+ */
619
+ export type TransferTargetType = (typeof TransferTargetType)[keyof typeof TransferTargetType];
620
+ export declare const TransferTargetType: {
621
+ readonly crypto_rail: "crypto_rail";
622
+ };
623
+ /**
624
+ * The status of the transfer.
625
+ */
626
+ export type TransferStatus = (typeof TransferStatus)[keyof typeof TransferStatus];
627
+ export declare const TransferStatus: {
628
+ readonly created: "created";
629
+ readonly pending: "pending";
630
+ readonly started: "started";
631
+ readonly completed: "completed";
632
+ readonly failed: "failed";
633
+ };
634
+ /**
635
+ * The transfer object.
636
+ */
637
+ export interface Transfer {
638
+ /**
639
+ * The ID of the transfer.
640
+ * @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
641
+ */
642
+ id: string;
643
+ /** The type of the source of the transfer. */
644
+ sourceType: TransferSourceType;
645
+ /** The source of the transfer. */
646
+ source: PaymentMethodRequest;
647
+ /** The type of the target of the transfer. */
648
+ targetType: TransferTargetType;
649
+ /** The target of the transfer. */
650
+ target: CryptoRailAddress;
651
+ /** The amount the source will transfer. */
652
+ sourceAmount: string;
653
+ /** The currency the source will transfer. */
654
+ sourceCurrency: string;
655
+ /** The amount the target will receive. */
656
+ targetAmount: string;
657
+ /** The currency the target will receive. */
658
+ targetCurrency: string;
659
+ /** The amount the customer put in to transfer. */
660
+ userAmount: string;
661
+ /** The currency the customer put in to transfer. */
662
+ userCurrency: string;
663
+ /** The fees for the transfer. */
664
+ fees: Fee[];
665
+ /** The status of the transfer. */
666
+ status: TransferStatus;
667
+ /** The UTC date and time in ISO 8601 format the transfer was created. */
668
+ createdAt: string;
669
+ /** The UTC date and time in ISO 8601 format the transfer was updated. */
670
+ updatedAt: string;
671
+ /** The transaction hash or transaction signature of the transfer. */
672
+ transactionHash?: string;
673
+ }
474
674
  /**
475
675
  * Internal server error.
476
676
  */
@@ -528,6 +728,11 @@ export type CreateEvmAccountBody = {
528
728
  * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
529
729
  */
530
730
  name?: string;
731
+ /**
732
+ * The ID of the account-level policy to apply to the account.
733
+ * @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
734
+ */
735
+ accountPolicy?: string;
531
736
  };
532
737
  export type UpdateEvmAccountBody = {
533
738
  /**
@@ -765,6 +970,11 @@ export type CreateSolanaAccountBody = {
765
970
  * @pattern ^[A-Za-z0-9][A-Za-z0-9-]{0,34}[A-Za-z0-9]$
766
971
  */
767
972
  name?: string;
973
+ /**
974
+ * The ID of the account-level policy to apply to the account.
975
+ * @pattern ^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
976
+ */
977
+ accountPolicy?: string;
768
978
  };
769
979
  export type UpdateSolanaAccountBody = {
770
980
  /**
@@ -816,4 +1026,41 @@ export type RequestSolanaFaucet200 = {
816
1026
  /** The signature identifying the transaction that requested the funds. */
817
1027
  transactionSignature: string;
818
1028
  };
1029
+ export type GetCryptoRailsParams = {
1030
+ /**
1031
+ * Comma separated list of networks to filter the rails by.
1032
+ */
1033
+ networks?: string;
1034
+ };
1035
+ /**
1036
+ * The type of the source of the transfer.
1037
+ */
1038
+ export type CreatePaymentTransferQuoteBodySourceType = (typeof CreatePaymentTransferQuoteBodySourceType)[keyof typeof CreatePaymentTransferQuoteBodySourceType];
1039
+ export declare const CreatePaymentTransferQuoteBodySourceType: {
1040
+ readonly payment_method: "payment_method";
1041
+ };
1042
+ /**
1043
+ * The type of the target of the transfer.
1044
+ */
1045
+ export type CreatePaymentTransferQuoteBodyTargetType = (typeof CreatePaymentTransferQuoteBodyTargetType)[keyof typeof CreatePaymentTransferQuoteBodyTargetType];
1046
+ export declare const CreatePaymentTransferQuoteBodyTargetType: {
1047
+ readonly crypto_rail: "crypto_rail";
1048
+ };
1049
+ export type CreatePaymentTransferQuoteBody = {
1050
+ /** The type of the source of the transfer. */
1051
+ sourceType: CreatePaymentTransferQuoteBodySourceType;
1052
+ source: TransferSource;
1053
+ /** The type of the target of the transfer. */
1054
+ targetType: CreatePaymentTransferQuoteBodyTargetType;
1055
+ target: TransferTarget;
1056
+ /** The amount of the transfer, which is either for the source currency to buy, or the target currency to receive. */
1057
+ amount: string;
1058
+ /** The currency of the transfer. This can be specified as the source currency, which would be used to buy, or else the target currency, which is how much will be received. */
1059
+ currency: string;
1060
+ /** Whether to execute the transfer. If true, the transfer will be committed and executed. If false, the quote will be generated and returned. */
1061
+ execute?: boolean;
1062
+ };
1063
+ export type CreatePaymentTransferQuote201 = {
1064
+ transfer: Transfer;
1065
+ };
819
1066
  //# sourceMappingURL=coinbaseDeveloperPlatformAPIs.schemas.d.ts.map