@privy-io/api-types 0.7.0 → 0.8.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.
- package/CHANGELOG.md +43 -0
- package/client.d.mts +37 -28
- package/client.d.mts.map +1 -1
- package/client.d.ts +37 -28
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +79 -106
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +79 -106
- package/resources/accounts.d.ts.map +1 -1
- package/resources/accounts.js.map +1 -1
- package/resources/accounts.mjs.map +1 -1
- package/resources/aggregations.d.mts +18 -392
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +18 -392
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/aggregations.js.map +1 -1
- package/resources/aggregations.mjs.map +1 -1
- package/resources/apps.d.mts +139 -70
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +139 -70
- package/resources/apps.d.ts.map +1 -1
- package/resources/apps.js.map +1 -1
- package/resources/apps.mjs.map +1 -1
- package/resources/client-auth.d.mts +796 -427
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +796 -427
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/client-auth.js.map +1 -1
- package/resources/client-auth.mjs.map +1 -1
- package/resources/cross-app.d.mts +14 -13
- package/resources/cross-app.d.mts.map +1 -1
- package/resources/cross-app.d.ts +14 -13
- package/resources/cross-app.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +165 -81
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +165 -81
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/embedded-wallets.js.map +1 -1
- package/resources/embedded-wallets.mjs.map +1 -1
- package/resources/funding.d.mts +150 -64
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +150 -64
- package/resources/funding.d.ts.map +1 -1
- package/resources/funding.js.map +1 -1
- package/resources/funding.mjs.map +1 -1
- package/resources/index.d.mts +17 -14
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +17 -14
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +224 -1757
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +224 -1757
- package/resources/intents.d.ts.map +1 -1
- package/resources/intents.js.map +1 -1
- package/resources/intents.mjs.map +1 -1
- package/resources/key-quorums.d.mts +74 -26
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +74 -26
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/key-quorums.js +8 -8
- package/resources/key-quorums.js.map +1 -1
- package/resources/key-quorums.mjs +8 -8
- package/resources/key-quorums.mjs.map +1 -1
- package/resources/policies.d.mts +335 -926
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +335 -926
- package/resources/policies.d.ts.map +1 -1
- package/resources/policies.js +48 -41
- package/resources/policies.js.map +1 -1
- package/resources/policies.mjs +48 -41
- package/resources/policies.mjs.map +1 -1
- package/resources/shared.d.mts +59 -0
- package/resources/shared.d.mts.map +1 -0
- package/resources/shared.d.ts +59 -0
- package/resources/shared.d.ts.map +1 -0
- package/resources/shared.js +9 -0
- package/resources/shared.js.map +1 -0
- package/resources/shared.mjs +5 -0
- package/resources/shared.mjs.map +1 -0
- package/resources/swaps.d.mts +108 -0
- package/resources/swaps.d.mts.map +1 -0
- package/resources/swaps.d.ts +108 -0
- package/resources/swaps.d.ts.map +1 -0
- package/resources/swaps.js +9 -0
- package/resources/swaps.js.map +1 -0
- package/resources/swaps.mjs +5 -0
- package/resources/swaps.mjs.map +1 -0
- package/resources/transactions.d.mts +155 -93
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +155 -93
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +61 -94
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +61 -94
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js.map +1 -1
- package/resources/users.mjs.map +1 -1
- package/resources/wallet-actions.d.mts +187 -0
- package/resources/wallet-actions.d.mts.map +1 -0
- package/resources/wallet-actions.d.ts +187 -0
- package/resources/wallet-actions.d.ts.map +1 -0
- package/resources/wallet-actions.js +9 -0
- package/resources/wallet-actions.js.map +1 -0
- package/resources/wallet-actions.mjs +5 -0
- package/resources/wallet-actions.mjs.map +1 -0
- package/resources/wallets/index.d.mts +1 -1
- package/resources/wallets/index.d.mts.map +1 -1
- package/resources/wallets/index.d.ts +1 -1
- package/resources/wallets/index.d.ts.map +1 -1
- package/resources/wallets/index.js.map +1 -1
- package/resources/wallets/index.mjs.map +1 -1
- package/resources/wallets/transactions.d.mts +1 -0
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +1 -0
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/wallets.d.mts +2377 -971
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +2377 -971
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +18 -6
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +18 -6
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +438 -33
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +438 -33
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/yield.d.mts +25 -1
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +25 -1
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +721 -72
- package/src/resources/accounts.ts +93 -120
- package/src/resources/aggregations.ts +18 -702
- package/src/resources/apps.ts +187 -110
- package/src/resources/client-auth.ts +1358 -893
- package/src/resources/cross-app.ts +19 -15
- package/src/resources/embedded-wallets.ts +219 -123
- package/src/resources/funding.ts +263 -173
- package/src/resources/index.ts +368 -47
- package/src/resources/intents.ts +370 -3100
- package/src/resources/key-quorums.ts +100 -32
- package/src/resources/policies.ts +583 -1558
- package/src/resources/shared.ts +79 -0
- package/src/resources/swaps.ts +136 -0
- package/src/resources/transactions.ts +185 -91
- package/src/resources/users.ts +79 -132
- package/src/resources/wallet-actions.ts +251 -0
- package/src/resources/wallets/index.ts +144 -16
- package/src/resources/wallets/transactions.ts +2 -0
- package/src/resources/wallets/wallets.ts +2893 -1023
- package/src/resources/webhooks.ts +547 -47
- package/src/resources/yield.ts +29 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/funding.ts
CHANGED
|
@@ -1,67 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
|
+
import * as FundingAPI from './funding';
|
|
4
5
|
|
|
5
6
|
export class Funding extends APIResource {}
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* The input for initializing a Coinbase on-ramp session.
|
|
9
10
|
*/
|
|
10
|
-
export type CoinbaseOnRampInitInput =
|
|
11
|
-
| CoinbaseOnRampInitInput.UnionMember0
|
|
12
|
-
| CoinbaseOnRampInitInput.UnionMember1;
|
|
13
|
-
|
|
14
|
-
export namespace CoinbaseOnRampInitInput {
|
|
15
|
-
export interface UnionMember0 {
|
|
16
|
-
addresses: Array<UnionMember0.Address>;
|
|
17
|
-
|
|
18
|
-
assets?: Array<'eth' | 'ETH' | 'USDC' | 'POL' | 'MON'>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export namespace UnionMember0 {
|
|
22
|
-
export interface Address {
|
|
23
|
-
address: string;
|
|
24
|
-
|
|
25
|
-
blockchains: Array<
|
|
26
|
-
| 'ethereum'
|
|
27
|
-
| 'bitcoin'
|
|
28
|
-
| 'base'
|
|
29
|
-
| 'avacchain'
|
|
30
|
-
| 'optimism'
|
|
31
|
-
| 'solana'
|
|
32
|
-
| 'polygon'
|
|
33
|
-
| 'arbitrum'
|
|
34
|
-
| 'stellar'
|
|
35
|
-
| 'monad'
|
|
36
|
-
>;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export interface UnionMember1 {
|
|
41
|
-
addresses: Array<UnionMember1.Address>;
|
|
42
|
-
|
|
43
|
-
assets?: Array<'SOL' | 'USDC'>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export namespace UnionMember1 {
|
|
47
|
-
export interface Address {
|
|
48
|
-
address: string;
|
|
49
|
-
|
|
50
|
-
blockchains: Array<
|
|
51
|
-
| 'ethereum'
|
|
52
|
-
| 'bitcoin'
|
|
53
|
-
| 'base'
|
|
54
|
-
| 'avacchain'
|
|
55
|
-
| 'optimism'
|
|
56
|
-
| 'solana'
|
|
57
|
-
| 'polygon'
|
|
58
|
-
| 'arbitrum'
|
|
59
|
-
| 'stellar'
|
|
60
|
-
| 'monad'
|
|
61
|
-
>;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
11
|
+
export type CoinbaseOnRampInitInput = CoinbaseOnRampInitEthereumInput | CoinbaseOnRampInitSolanaInput;
|
|
65
12
|
|
|
66
13
|
/**
|
|
67
14
|
* The response from initializing a Coinbase on-ramp session.
|
|
@@ -80,132 +27,33 @@ export interface CoinbaseOnRampInitResponse {
|
|
|
80
27
|
* The response for getting the status of a Coinbase on-ramp session.
|
|
81
28
|
*/
|
|
82
29
|
export interface CoinbaseOnRampStatusResponse {
|
|
83
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Status of a Coinbase on-ramp session.
|
|
32
|
+
*/
|
|
33
|
+
status: CoinbaseOnRampStatus;
|
|
84
34
|
}
|
|
85
35
|
|
|
86
36
|
/**
|
|
87
37
|
* The input for signing a Moonpay on-ramp.
|
|
88
38
|
*/
|
|
89
39
|
export type MoonpayOnRampSignInput =
|
|
90
|
-
| MoonpayOnRampSignInput.
|
|
91
|
-
| MoonpayOnRampSignInput.
|
|
40
|
+
| MoonpayOnRampSignInput.MoonpayFiatOnRampEthereumInput
|
|
41
|
+
| MoonpayOnRampSignInput.MoonpayFiatOnRampSolanaInput;
|
|
92
42
|
|
|
93
43
|
export namespace MoonpayOnRampSignInput {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
| 'CUSD_CELO'
|
|
108
|
-
| 'DAI_ETHEREUM'
|
|
109
|
-
| 'ETH_ETHEREUM'
|
|
110
|
-
| 'ETH_ARBITRUM'
|
|
111
|
-
| 'ETH_OPTIMISM'
|
|
112
|
-
| 'ETH_POLYGON'
|
|
113
|
-
| 'ETH_BASE'
|
|
114
|
-
| 'FIL_FVM'
|
|
115
|
-
| 'MATIC_ETHEREUM'
|
|
116
|
-
| 'MATIC_POLYGON'
|
|
117
|
-
| 'POL_POLYGON'
|
|
118
|
-
| 'POL_ETHEREUM'
|
|
119
|
-
| 'USDC_ETHEREUM'
|
|
120
|
-
| 'USDC_ARBITRUM'
|
|
121
|
-
| 'USDC_OPTIMISM'
|
|
122
|
-
| 'USDC_POLYGON'
|
|
123
|
-
| 'USDC_BASE'
|
|
124
|
-
| 'USDC_CCHAIN'
|
|
125
|
-
| 'USDC_SOL'
|
|
126
|
-
| 'USDT_ETHEREUM'
|
|
127
|
-
| 'USDT_POLYGON'
|
|
128
|
-
| 'WETH_POLYGON'
|
|
129
|
-
| 'WBTC_ETHEREUM'
|
|
130
|
-
| 'BNB_BNB'
|
|
131
|
-
| 'BNB_BSC'
|
|
132
|
-
| 'MON_MON'
|
|
133
|
-
| 'CELO'
|
|
134
|
-
| 'CUSD'
|
|
135
|
-
| 'DAI'
|
|
136
|
-
| 'ETH'
|
|
137
|
-
| 'FIL'
|
|
138
|
-
| 'MATIC'
|
|
139
|
-
| 'USDC'
|
|
140
|
-
| 'USDT'
|
|
141
|
-
| 'WETH'
|
|
142
|
-
| 'WBTC';
|
|
143
|
-
|
|
144
|
-
email?: string;
|
|
145
|
-
|
|
146
|
-
paymentMethod?:
|
|
147
|
-
| 'ach_bank_transfer'
|
|
148
|
-
| 'credit_debit_card'
|
|
149
|
-
| 'gbp_bank_transfer'
|
|
150
|
-
| 'gbp_open_banking_payment'
|
|
151
|
-
| 'mobile_wallet'
|
|
152
|
-
| 'sepa_bank_transfer'
|
|
153
|
-
| 'sepa_open_banking_payment'
|
|
154
|
-
| 'pix_instant_payment'
|
|
155
|
-
| 'yellow_card_bank_transfer';
|
|
156
|
-
|
|
157
|
-
quoteCurrencyAmount?: number;
|
|
158
|
-
|
|
159
|
-
uiConfig?: Config.UiConfig;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
export namespace Config {
|
|
163
|
-
export interface UiConfig {
|
|
164
|
-
accentColor?: string;
|
|
165
|
-
|
|
166
|
-
theme?: 'light' | 'dark';
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export interface UnionMember1 {
|
|
172
|
-
address: string;
|
|
173
|
-
|
|
174
|
-
config: UnionMember1.Config;
|
|
175
|
-
|
|
176
|
-
useSandbox?: boolean;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export namespace UnionMember1 {
|
|
180
|
-
export interface Config {
|
|
181
|
-
currencyCode?: 'SOL' | 'USDC_SOL';
|
|
182
|
-
|
|
183
|
-
email?: string;
|
|
184
|
-
|
|
185
|
-
paymentMethod?:
|
|
186
|
-
| 'ach_bank_transfer'
|
|
187
|
-
| 'credit_debit_card'
|
|
188
|
-
| 'gbp_bank_transfer'
|
|
189
|
-
| 'gbp_open_banking_payment'
|
|
190
|
-
| 'mobile_wallet'
|
|
191
|
-
| 'sepa_bank_transfer'
|
|
192
|
-
| 'sepa_open_banking_payment'
|
|
193
|
-
| 'pix_instant_payment'
|
|
194
|
-
| 'yellow_card_bank_transfer';
|
|
195
|
-
|
|
196
|
-
quoteCurrencyAmount?: number;
|
|
197
|
-
|
|
198
|
-
uiConfig?: Config.UiConfig;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
export namespace Config {
|
|
202
|
-
export interface UiConfig {
|
|
203
|
-
accentColor?: string;
|
|
204
|
-
|
|
205
|
-
theme?: 'light' | 'dark';
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
}
|
|
44
|
+
/**
|
|
45
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
46
|
+
*/
|
|
47
|
+
export interface MoonpayFiatOnRampEthereumInput
|
|
48
|
+
extends FundingAPI.MoonpayOnRampSandboxConfig,
|
|
49
|
+
FundingAPI.MoonpayFiatOnRampEthereumInput {}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
53
|
+
*/
|
|
54
|
+
export interface MoonpayFiatOnRampSolanaInput
|
|
55
|
+
extends FundingAPI.MoonpayOnRampSandboxConfig,
|
|
56
|
+
FundingAPI.MoonpayFiatOnRampSolanaInput {}
|
|
209
57
|
}
|
|
210
58
|
|
|
211
59
|
/**
|
|
@@ -217,6 +65,230 @@ export interface MoonpayOnRampSignResponse {
|
|
|
217
65
|
signedUrl: string;
|
|
218
66
|
}
|
|
219
67
|
|
|
68
|
+
/**
|
|
69
|
+
* A blockchain supported by Coinbase on-ramp.
|
|
70
|
+
*/
|
|
71
|
+
export type CoinbaseBlockchain =
|
|
72
|
+
| 'ethereum'
|
|
73
|
+
| 'bitcoin'
|
|
74
|
+
| 'base'
|
|
75
|
+
| 'avacchain'
|
|
76
|
+
| 'optimism'
|
|
77
|
+
| 'solana'
|
|
78
|
+
| 'polygon'
|
|
79
|
+
| 'arbitrum'
|
|
80
|
+
| 'stellar'
|
|
81
|
+
| 'monad';
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* An Ethereum asset supported by Coinbase on-ramp.
|
|
85
|
+
*/
|
|
86
|
+
export type CoinbaseEthereumAsset = 'eth' | 'ETH' | 'USDC' | 'POL' | 'MON';
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* A Solana asset supported by Coinbase on-ramp.
|
|
90
|
+
*/
|
|
91
|
+
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* An Ethereum address with supported blockchains for Coinbase on-ramp.
|
|
95
|
+
*/
|
|
96
|
+
export interface CoinbaseOnRampEthereumAddress {
|
|
97
|
+
address: string;
|
|
98
|
+
|
|
99
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
104
|
+
*/
|
|
105
|
+
export interface CoinbaseOnRampSolanaAddress {
|
|
106
|
+
address: string;
|
|
107
|
+
|
|
108
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Input for initializing a Coinbase on-ramp session for Ethereum.
|
|
113
|
+
*/
|
|
114
|
+
export interface CoinbaseOnRampInitEthereumInput {
|
|
115
|
+
addresses: Array<CoinbaseOnRampEthereumAddress>;
|
|
116
|
+
|
|
117
|
+
assets?: Array<CoinbaseEthereumAsset>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Input for initializing a Coinbase on-ramp session for Solana.
|
|
122
|
+
*/
|
|
123
|
+
export interface CoinbaseOnRampInitSolanaInput {
|
|
124
|
+
addresses: Array<CoinbaseOnRampSolanaAddress>;
|
|
125
|
+
|
|
126
|
+
assets?: Array<CoinbaseSolanaAsset>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Status of a Coinbase on-ramp session.
|
|
131
|
+
*/
|
|
132
|
+
export type CoinbaseOnRampStatus = 'pending' | 'success' | 'failure';
|
|
133
|
+
|
|
134
|
+
/**
|
|
135
|
+
* A payment method supported by Moonpay on-ramp.
|
|
136
|
+
*/
|
|
137
|
+
export type MoonpayPaymentMethod =
|
|
138
|
+
| 'ach_bank_transfer'
|
|
139
|
+
| 'credit_debit_card'
|
|
140
|
+
| 'gbp_bank_transfer'
|
|
141
|
+
| 'gbp_open_banking_payment'
|
|
142
|
+
| 'mobile_wallet'
|
|
143
|
+
| 'sepa_bank_transfer'
|
|
144
|
+
| 'sepa_open_banking_payment'
|
|
145
|
+
| 'pix_instant_payment'
|
|
146
|
+
| 'yellow_card_bank_transfer';
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
150
|
+
*/
|
|
151
|
+
export type MoonpayCurrencyCode =
|
|
152
|
+
| 'AVAX_CCHAIN'
|
|
153
|
+
| 'CELO_CELO'
|
|
154
|
+
| 'CUSD_CELO'
|
|
155
|
+
| 'DAI_ETHEREUM'
|
|
156
|
+
| 'ETH_ETHEREUM'
|
|
157
|
+
| 'ETH_ARBITRUM'
|
|
158
|
+
| 'ETH_OPTIMISM'
|
|
159
|
+
| 'ETH_POLYGON'
|
|
160
|
+
| 'ETH_BASE'
|
|
161
|
+
| 'FIL_FVM'
|
|
162
|
+
| 'MATIC_ETHEREUM'
|
|
163
|
+
| 'MATIC_POLYGON'
|
|
164
|
+
| 'POL_POLYGON'
|
|
165
|
+
| 'POL_ETHEREUM'
|
|
166
|
+
| 'USDC_ETHEREUM'
|
|
167
|
+
| 'USDC_ARBITRUM'
|
|
168
|
+
| 'USDC_OPTIMISM'
|
|
169
|
+
| 'USDC_POLYGON'
|
|
170
|
+
| 'USDC_BASE'
|
|
171
|
+
| 'USDC_CCHAIN'
|
|
172
|
+
| 'USDC_SOL'
|
|
173
|
+
| 'USDT_ETHEREUM'
|
|
174
|
+
| 'USDT_POLYGON'
|
|
175
|
+
| 'WETH_POLYGON'
|
|
176
|
+
| 'WBTC_ETHEREUM'
|
|
177
|
+
| 'BNB_BNB'
|
|
178
|
+
| 'BNB_BSC'
|
|
179
|
+
| 'MON_MON'
|
|
180
|
+
| 'CELO'
|
|
181
|
+
| 'CUSD'
|
|
182
|
+
| 'DAI'
|
|
183
|
+
| 'ETH'
|
|
184
|
+
| 'FIL'
|
|
185
|
+
| 'MATIC'
|
|
186
|
+
| 'USDC'
|
|
187
|
+
| 'USDT'
|
|
188
|
+
| 'WETH'
|
|
189
|
+
| 'WBTC';
|
|
190
|
+
|
|
191
|
+
/**
|
|
192
|
+
* The theme for the Moonpay on-ramp widget.
|
|
193
|
+
*/
|
|
194
|
+
export type MoonpayUiTheme = 'light' | 'dark';
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
198
|
+
*/
|
|
199
|
+
export interface MoonpayUiConfig {
|
|
200
|
+
accentColor?: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* The theme for the Moonpay on-ramp widget.
|
|
204
|
+
*/
|
|
205
|
+
theme?: MoonpayUiTheme;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* A Moonpay currency code for a Solana asset.
|
|
210
|
+
*/
|
|
211
|
+
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
215
|
+
*/
|
|
216
|
+
export interface MoonpayFiatOnRampEthereumConfig {
|
|
217
|
+
/**
|
|
218
|
+
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
219
|
+
*/
|
|
220
|
+
currencyCode?: MoonpayCurrencyCode;
|
|
221
|
+
|
|
222
|
+
email?: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* A payment method supported by Moonpay on-ramp.
|
|
226
|
+
*/
|
|
227
|
+
paymentMethod?: MoonpayPaymentMethod;
|
|
228
|
+
|
|
229
|
+
quoteCurrencyAmount?: number;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
233
|
+
*/
|
|
234
|
+
uiConfig?: MoonpayUiConfig;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
239
|
+
*/
|
|
240
|
+
export interface MoonpayFiatOnRampSolanaConfig {
|
|
241
|
+
/**
|
|
242
|
+
* A Moonpay currency code for a Solana asset.
|
|
243
|
+
*/
|
|
244
|
+
currencyCode?: MoonpaySolanaCurrencyCode;
|
|
245
|
+
|
|
246
|
+
email?: string;
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* A payment method supported by Moonpay on-ramp.
|
|
250
|
+
*/
|
|
251
|
+
paymentMethod?: MoonpayPaymentMethod;
|
|
252
|
+
|
|
253
|
+
quoteCurrencyAmount?: number;
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
257
|
+
*/
|
|
258
|
+
uiConfig?: MoonpayUiConfig;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
263
|
+
*/
|
|
264
|
+
export interface MoonpayFiatOnRampEthereumInput {
|
|
265
|
+
address: string;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
269
|
+
*/
|
|
270
|
+
config: MoonpayFiatOnRampEthereumConfig;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* Input for a Moonpay fiat on-ramp for Solana.
|
|
275
|
+
*/
|
|
276
|
+
export interface MoonpayFiatOnRampSolanaInput {
|
|
277
|
+
address: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
281
|
+
*/
|
|
282
|
+
config: MoonpayFiatOnRampSolanaConfig;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Sandbox configuration for a Moonpay on-ramp.
|
|
287
|
+
*/
|
|
288
|
+
export interface MoonpayOnRampSandboxConfig {
|
|
289
|
+
useSandbox?: boolean;
|
|
290
|
+
}
|
|
291
|
+
|
|
220
292
|
export declare namespace Funding {
|
|
221
293
|
export {
|
|
222
294
|
type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput,
|
|
@@ -224,5 +296,23 @@ export declare namespace Funding {
|
|
|
224
296
|
type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse,
|
|
225
297
|
type MoonpayOnRampSignInput as MoonpayOnRampSignInput,
|
|
226
298
|
type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse,
|
|
299
|
+
type CoinbaseBlockchain as CoinbaseBlockchain,
|
|
300
|
+
type CoinbaseEthereumAsset as CoinbaseEthereumAsset,
|
|
301
|
+
type CoinbaseSolanaAsset as CoinbaseSolanaAsset,
|
|
302
|
+
type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress,
|
|
303
|
+
type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress,
|
|
304
|
+
type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput,
|
|
305
|
+
type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput,
|
|
306
|
+
type CoinbaseOnRampStatus as CoinbaseOnRampStatus,
|
|
307
|
+
type MoonpayPaymentMethod as MoonpayPaymentMethod,
|
|
308
|
+
type MoonpayCurrencyCode as MoonpayCurrencyCode,
|
|
309
|
+
type MoonpayUiTheme as MoonpayUiTheme,
|
|
310
|
+
type MoonpayUiConfig as MoonpayUiConfig,
|
|
311
|
+
type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode,
|
|
312
|
+
type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig,
|
|
313
|
+
type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig,
|
|
314
|
+
type MoonpayFiatOnRampEthereumInput as MoonpayFiatOnRampEthereumInput,
|
|
315
|
+
type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput,
|
|
316
|
+
type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig,
|
|
227
317
|
};
|
|
228
318
|
}
|