@privy-io/api-types 0.9.0 → 0.10.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 +38 -0
- package/client.d.mts +33 -30
- package/client.d.mts.map +1 -1
- package/client.d.ts +33 -30
- package/client.d.ts.map +1 -1
- package/client.js +22 -8
- package/client.js.map +1 -1
- package/client.mjs +23 -9
- package/client.mjs.map +1 -1
- package/internal/types.d.mts +6 -6
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +6 -6
- package/internal/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/resources/accounts.d.mts +128 -86
- package/resources/accounts.d.mts.map +1 -1
- package/resources/accounts.d.ts +128 -86
- package/resources/accounts.d.ts.map +1 -1
- package/resources/aggregations.d.mts +43 -43
- package/resources/aggregations.d.mts.map +1 -1
- package/resources/aggregations.d.ts +43 -43
- package/resources/aggregations.d.ts.map +1 -1
- package/resources/apps.d.mts +169 -135
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +169 -135
- package/resources/apps.d.ts.map +1 -1
- package/resources/client-auth.d.mts +646 -644
- package/resources/client-auth.d.mts.map +1 -1
- package/resources/client-auth.d.ts +646 -644
- package/resources/client-auth.d.ts.map +1 -1
- package/resources/embedded-wallets.d.mts +114 -114
- package/resources/embedded-wallets.d.mts.map +1 -1
- package/resources/embedded-wallets.d.ts +114 -114
- package/resources/embedded-wallets.d.ts.map +1 -1
- package/resources/funding.d.mts +42 -42
- package/resources/funding.d.mts.map +1 -1
- package/resources/funding.d.ts +42 -42
- package/resources/funding.d.ts.map +1 -1
- package/resources/index.d.mts +19 -18
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +19 -18
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -1
- package/resources/index.mjs.map +1 -1
- package/resources/intents.d.mts +269 -265
- package/resources/intents.d.mts.map +1 -1
- package/resources/intents.d.ts +269 -265
- package/resources/intents.d.ts.map +1 -1
- package/resources/key-quorums.d.mts +20 -20
- package/resources/key-quorums.d.mts.map +1 -1
- package/resources/key-quorums.d.ts +20 -20
- package/resources/key-quorums.d.ts.map +1 -1
- package/resources/kraken-embed.d.mts +12 -20
- package/resources/kraken-embed.d.mts.map +1 -1
- package/resources/kraken-embed.d.ts +12 -20
- package/resources/kraken-embed.d.ts.map +1 -1
- package/resources/organizations.d.mts +65 -0
- package/resources/organizations.d.mts.map +1 -0
- package/resources/organizations.d.ts +65 -0
- package/resources/organizations.d.ts.map +1 -0
- package/resources/organizations.js +9 -0
- package/resources/organizations.js.map +1 -0
- package/resources/organizations.mjs +5 -0
- package/resources/organizations.mjs.map +1 -0
- package/resources/policies.d.mts +258 -240
- package/resources/policies.d.mts.map +1 -1
- package/resources/policies.d.ts +258 -240
- package/resources/policies.d.ts.map +1 -1
- package/resources/shared.d.mts +28 -28
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +28 -28
- package/resources/shared.d.ts.map +1 -1
- package/resources/swaps.d.mts +6 -9
- package/resources/swaps.d.mts.map +1 -1
- package/resources/swaps.d.ts +6 -9
- package/resources/swaps.d.ts.map +1 -1
- package/resources/swaps.js.map +1 -1
- package/resources/swaps.mjs.map +1 -1
- package/resources/transactions.d.mts +53 -53
- package/resources/transactions.d.mts.map +1 -1
- package/resources/transactions.d.ts +53 -53
- package/resources/transactions.d.ts.map +1 -1
- package/resources/users.d.mts +468 -459
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +468 -459
- package/resources/users.d.ts.map +1 -1
- package/resources/wallet-actions.d.mts +302 -145
- package/resources/wallet-actions.d.mts.map +1 -1
- package/resources/wallet-actions.d.ts +302 -145
- package/resources/wallet-actions.d.ts.map +1 -1
- 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 +7 -2
- package/resources/wallets/transactions.d.mts.map +1 -1
- package/resources/wallets/transactions.d.ts +7 -2
- package/resources/wallets/transactions.d.ts.map +1 -1
- package/resources/wallets/transactions.js +1 -1
- package/resources/wallets/transactions.mjs +1 -1
- package/resources/wallets/wallets.d.mts +1424 -1227
- package/resources/wallets/wallets.d.mts.map +1 -1
- package/resources/wallets/wallets.d.ts +1424 -1227
- package/resources/wallets/wallets.d.ts.map +1 -1
- package/resources/wallets/wallets.js +4 -1
- package/resources/wallets/wallets.js.map +1 -1
- package/resources/wallets/wallets.mjs +4 -1
- package/resources/wallets/wallets.mjs.map +1 -1
- package/resources/webhooks.d.mts +935 -877
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +935 -877
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/yield.d.mts +157 -157
- package/resources/yield.d.mts.map +1 -1
- package/resources/yield.d.ts +157 -157
- package/resources/yield.d.ts.map +1 -1
- package/src/client.ts +594 -516
- package/src/internal/types.ts +6 -8
- package/src/resources/accounts.ts +157 -103
- package/src/resources/aggregations.ts +55 -55
- package/src/resources/apps.ts +221 -178
- package/src/resources/client-auth.ts +887 -887
- package/src/resources/embedded-wallets.ts +150 -150
- package/src/resources/funding.ts +66 -66
- package/src/resources/index.ts +504 -475
- package/src/resources/intents.ts +326 -322
- package/src/resources/key-quorums.ts +23 -23
- package/src/resources/kraken-embed.ts +14 -22
- package/src/resources/organizations.ts +82 -0
- package/src/resources/policies.ts +379 -352
- package/src/resources/shared.ts +34 -34
- package/src/resources/swaps.ts +5 -10
- package/src/resources/transactions.ts +86 -86
- package/src/resources/users.ts +707 -696
- package/src/resources/wallet-actions.ts +392 -185
- package/src/resources/wallets/index.ts +157 -148
- package/src/resources/wallets/transactions.ts +18 -3
- package/src/resources/wallets/wallets.ts +1937 -1686
- package/src/resources/webhooks.ts +1172 -1100
- package/src/resources/yield.ts +188 -188
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -12,43 +12,10 @@ export type SmartWalletConfiguration = SmartWalletConfigurationDisabled | SmartW
|
|
|
12
12
|
*/
|
|
13
13
|
export type SmartWalletConfigurationInput = SmartWalletConfigurationDisabled | SmartWalletConfigurationInputEnabled;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
export interface WalletCreationAdditionalSignerItem {
|
|
18
|
-
/**
|
|
19
|
-
* A unique identifier for a key quorum.
|
|
20
|
-
*/
|
|
21
|
-
signer_id: SharedAPI.KeyQuorumID;
|
|
22
|
-
/**
|
|
23
|
-
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
24
|
-
* this will override the base policy IDs set on the wallet. Currently, only one
|
|
25
|
-
* policy is supported per signer.
|
|
26
|
-
*/
|
|
27
|
-
override_policy_ids?: Array<string>;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* The fields on wallet creation that can be specified when creating a
|
|
31
|
-
* user-controlled embedded server wallet.
|
|
15
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
32
16
|
*/
|
|
33
|
-
export interface
|
|
34
|
-
|
|
35
|
-
* The wallet chain types.
|
|
36
|
-
*/
|
|
37
|
-
chain_type: WalletsAPI.WalletChainType;
|
|
38
|
-
/**
|
|
39
|
-
* Additional signers for the wallet.
|
|
40
|
-
*/
|
|
41
|
-
additional_signers?: Array<WalletCreationAdditionalSignerItem>;
|
|
42
|
-
/**
|
|
43
|
-
* Create a smart wallet with this wallet as the signer. Only supported for wallets
|
|
44
|
-
* with `chain_type: "ethereum"`.
|
|
45
|
-
*/
|
|
46
|
-
create_smart_wallet?: boolean;
|
|
47
|
-
/**
|
|
48
|
-
* Policy IDs to enforce on the wallet. Currently, only one policy is supported per
|
|
49
|
-
* wallet.
|
|
50
|
-
*/
|
|
51
|
-
policy_ids?: Array<string>;
|
|
17
|
+
export interface AlchemyPaymasterContext {
|
|
18
|
+
policy_id: string;
|
|
52
19
|
}
|
|
53
20
|
/**
|
|
54
21
|
* The fields describing embedded wallet creation, used for user import and
|
|
@@ -61,81 +28,56 @@ export interface EmbeddedWalletCreationInput {
|
|
|
61
28
|
wallets?: Array<WalletCreationInput>;
|
|
62
29
|
}
|
|
63
30
|
/**
|
|
64
|
-
* The
|
|
31
|
+
* The client type for iCloud recovery operations.
|
|
65
32
|
*/
|
|
66
|
-
export type
|
|
33
|
+
export type ICloudClientType = 'web' | 'expo-ios';
|
|
67
34
|
/**
|
|
68
|
-
* The
|
|
35
|
+
* The response from authenticating with OAuth for recovery.
|
|
69
36
|
*/
|
|
70
|
-
export interface
|
|
71
|
-
|
|
37
|
+
export interface OAuthAuthenticateRecoveryResponse {
|
|
38
|
+
access_token: string;
|
|
72
39
|
}
|
|
73
40
|
/**
|
|
74
|
-
*
|
|
41
|
+
* The input for the iCloud Expo OAuth callback.
|
|
75
42
|
*/
|
|
76
|
-
export interface
|
|
77
|
-
|
|
78
|
-
chain_id: string;
|
|
79
|
-
chain_name?: string;
|
|
80
|
-
/**
|
|
81
|
-
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
82
|
-
*/
|
|
83
|
-
paymaster_context?: AlchemyPaymasterContext;
|
|
84
|
-
paymaster_url?: string;
|
|
85
|
-
rpc_url?: string;
|
|
43
|
+
export interface OAuthCallbackICloudExpoInput {
|
|
44
|
+
ckWebAuthToken: string;
|
|
86
45
|
}
|
|
87
46
|
/**
|
|
88
|
-
*
|
|
47
|
+
* The input for initiating an iCloud OAuth recovery flow.
|
|
89
48
|
*/
|
|
90
|
-
export interface
|
|
91
|
-
chain_id: string;
|
|
92
|
-
bundler_url?: string;
|
|
93
|
-
chain_name?: string;
|
|
49
|
+
export interface OAuthInitICloudRecoveryInput {
|
|
94
50
|
/**
|
|
95
|
-
* The
|
|
51
|
+
* The client type for iCloud recovery operations.
|
|
96
52
|
*/
|
|
97
|
-
|
|
98
|
-
paymaster_url?: string;
|
|
99
|
-
rpc_url?: string;
|
|
53
|
+
client_type: ICloudClientType;
|
|
100
54
|
}
|
|
101
55
|
/**
|
|
102
|
-
*
|
|
56
|
+
* The input for initiating an OAuth recovery flow.
|
|
103
57
|
*/
|
|
104
|
-
export interface
|
|
105
|
-
|
|
58
|
+
export interface OAuthInitRecoveryInput {
|
|
59
|
+
redirect_to: string;
|
|
60
|
+
token?: string;
|
|
61
|
+
code_challenge?: string;
|
|
62
|
+
state_code?: string;
|
|
106
63
|
}
|
|
107
64
|
/**
|
|
108
|
-
*
|
|
65
|
+
* The input for getting the iCloud recovery configuration.
|
|
109
66
|
*/
|
|
110
|
-
export interface
|
|
111
|
-
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
112
|
-
enabled: true;
|
|
67
|
+
export interface RecoveryConfigurationICloudInput {
|
|
113
68
|
/**
|
|
114
|
-
* The
|
|
69
|
+
* The client type for iCloud recovery operations.
|
|
115
70
|
*/
|
|
116
|
-
|
|
117
|
-
smart_wallet_version?: string;
|
|
71
|
+
client_type: ICloudClientType;
|
|
118
72
|
}
|
|
119
73
|
/**
|
|
120
|
-
*
|
|
74
|
+
* The response containing the iCloud recovery configuration.
|
|
121
75
|
*/
|
|
122
|
-
export interface
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
* The supported smart wallet providers.
|
|
127
|
-
*/
|
|
128
|
-
smart_wallet_type: SmartWalletType;
|
|
129
|
-
smart_wallet_version?: string | null;
|
|
76
|
+
export interface RecoveryConfigurationICloudResponse {
|
|
77
|
+
api_token: string;
|
|
78
|
+
container_identifier: string;
|
|
79
|
+
environment: string;
|
|
130
80
|
}
|
|
131
|
-
/**
|
|
132
|
-
* The type of recovery mechanism used for wallet recovery.
|
|
133
|
-
*/
|
|
134
|
-
export type RecoveryType = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret';
|
|
135
|
-
/**
|
|
136
|
-
* The client type for iCloud recovery operations.
|
|
137
|
-
*/
|
|
138
|
-
export type ICloudClientType = 'web' | 'expo-ios';
|
|
139
81
|
/**
|
|
140
82
|
* The input for getting the recovery key material.
|
|
141
83
|
*/
|
|
@@ -157,53 +99,111 @@ export interface RecoveryKeyMaterialResponse {
|
|
|
157
99
|
recovery_type: RecoveryType;
|
|
158
100
|
}
|
|
159
101
|
/**
|
|
160
|
-
* The
|
|
102
|
+
* The type of recovery mechanism used for wallet recovery.
|
|
161
103
|
*/
|
|
162
|
-
export
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
104
|
+
export type RecoveryType = 'user_passcode_derived_recovery_key' | 'privy_passcode_derived_recovery_key' | 'privy_generated_recovery_key' | 'google_drive_recovery_secret' | 'icloud_recovery_secret';
|
|
105
|
+
/**
|
|
106
|
+
* A disabled smart wallet configuration.
|
|
107
|
+
*/
|
|
108
|
+
export interface SmartWalletConfigurationDisabled {
|
|
109
|
+
enabled: false;
|
|
167
110
|
}
|
|
168
111
|
/**
|
|
169
|
-
*
|
|
112
|
+
* An enabled smart wallet configuration.
|
|
170
113
|
*/
|
|
171
|
-
export interface
|
|
172
|
-
|
|
114
|
+
export interface SmartWalletConfigurationEnabled {
|
|
115
|
+
configured_networks: Array<SmartWalletNetworkConfiguration>;
|
|
116
|
+
enabled: true;
|
|
117
|
+
/**
|
|
118
|
+
* The supported smart wallet providers.
|
|
119
|
+
*/
|
|
120
|
+
smart_wallet_type: SmartWalletType;
|
|
121
|
+
smart_wallet_version?: string;
|
|
173
122
|
}
|
|
174
123
|
/**
|
|
175
|
-
*
|
|
124
|
+
* An enabled smart wallet configuration input.
|
|
176
125
|
*/
|
|
177
|
-
export interface
|
|
126
|
+
export interface SmartWalletConfigurationInputEnabled {
|
|
127
|
+
configured_networks: Array<SmartWalletNetworkConfigurationInput>;
|
|
128
|
+
enabled: true;
|
|
178
129
|
/**
|
|
179
|
-
* The
|
|
130
|
+
* The supported smart wallet providers.
|
|
180
131
|
*/
|
|
181
|
-
|
|
132
|
+
smart_wallet_type: SmartWalletType;
|
|
133
|
+
smart_wallet_version?: string | null;
|
|
182
134
|
}
|
|
183
135
|
/**
|
|
184
|
-
*
|
|
136
|
+
* Network configuration for a smart wallet.
|
|
185
137
|
*/
|
|
186
|
-
export interface
|
|
187
|
-
|
|
138
|
+
export interface SmartWalletNetworkConfiguration {
|
|
139
|
+
bundler_url: string;
|
|
140
|
+
chain_id: string;
|
|
141
|
+
chain_name?: string;
|
|
142
|
+
/**
|
|
143
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
144
|
+
*/
|
|
145
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
146
|
+
paymaster_url?: string;
|
|
147
|
+
rpc_url?: string;
|
|
188
148
|
}
|
|
189
149
|
/**
|
|
190
|
-
*
|
|
150
|
+
* Input for network configuration for a smart wallet.
|
|
191
151
|
*/
|
|
192
|
-
export interface
|
|
152
|
+
export interface SmartWalletNetworkConfigurationInput {
|
|
153
|
+
chain_id: string;
|
|
154
|
+
bundler_url?: string;
|
|
155
|
+
chain_name?: string;
|
|
193
156
|
/**
|
|
194
|
-
* The
|
|
157
|
+
* The Alchemy paymaster context for a smart wallet network configuration.
|
|
195
158
|
*/
|
|
196
|
-
|
|
159
|
+
paymaster_context?: AlchemyPaymasterContext;
|
|
160
|
+
paymaster_url?: string;
|
|
161
|
+
rpc_url?: string;
|
|
197
162
|
}
|
|
198
163
|
/**
|
|
199
|
-
* The
|
|
164
|
+
* The supported smart wallet providers.
|
|
200
165
|
*/
|
|
201
|
-
export
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
166
|
+
export type SmartWalletType = 'safe' | 'kernel' | 'light_account' | 'biconomy' | 'coinbase_smart_wallet' | 'thirdweb';
|
|
167
|
+
/**
|
|
168
|
+
* An additional signer configuration for a wallet.
|
|
169
|
+
*/
|
|
170
|
+
export interface WalletCreationAdditionalSignerItem {
|
|
171
|
+
/**
|
|
172
|
+
* A unique identifier for a key quorum.
|
|
173
|
+
*/
|
|
174
|
+
signer_id: SharedAPI.KeyQuorumID;
|
|
175
|
+
/**
|
|
176
|
+
* The array of policy IDs that will be applied to wallet requests. If specified,
|
|
177
|
+
* this will override the base policy IDs set on the wallet. Currently, only one
|
|
178
|
+
* policy is supported per signer.
|
|
179
|
+
*/
|
|
180
|
+
override_policy_ids?: Array<string>;
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* The fields on wallet creation that can be specified when creating a
|
|
184
|
+
* user-controlled embedded server wallet.
|
|
185
|
+
*/
|
|
186
|
+
export interface WalletCreationInput {
|
|
187
|
+
/**
|
|
188
|
+
* The wallet chain types.
|
|
189
|
+
*/
|
|
190
|
+
chain_type: WalletsAPI.WalletChainType;
|
|
191
|
+
/**
|
|
192
|
+
* Additional signers for the wallet.
|
|
193
|
+
*/
|
|
194
|
+
additional_signers?: Array<WalletCreationAdditionalSignerItem>;
|
|
195
|
+
/**
|
|
196
|
+
* Create a smart wallet with this wallet as the signer. Only supported for wallets
|
|
197
|
+
* with `chain_type: "ethereum"`.
|
|
198
|
+
*/
|
|
199
|
+
create_smart_wallet?: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* Policy IDs to enforce on the wallet. Currently, only one policy is supported per
|
|
202
|
+
* wallet.
|
|
203
|
+
*/
|
|
204
|
+
policy_ids?: Array<string>;
|
|
205
205
|
}
|
|
206
206
|
export declare namespace EmbeddedWallets {
|
|
207
|
-
export { type SmartWalletConfiguration as SmartWalletConfiguration, type SmartWalletConfigurationInput as SmartWalletConfigurationInput, type
|
|
207
|
+
export { type SmartWalletConfiguration as SmartWalletConfiguration, type SmartWalletConfigurationInput as SmartWalletConfigurationInput, type AlchemyPaymasterContext as AlchemyPaymasterContext, type EmbeddedWalletCreationInput as EmbeddedWalletCreationInput, type ICloudClientType as ICloudClientType, type OAuthAuthenticateRecoveryResponse as OAuthAuthenticateRecoveryResponse, type OAuthCallbackICloudExpoInput as OAuthCallbackICloudExpoInput, type OAuthInitICloudRecoveryInput as OAuthInitICloudRecoveryInput, type OAuthInitRecoveryInput as OAuthInitRecoveryInput, type RecoveryConfigurationICloudInput as RecoveryConfigurationICloudInput, type RecoveryConfigurationICloudResponse as RecoveryConfigurationICloudResponse, type RecoveryKeyMaterialInput as RecoveryKeyMaterialInput, type RecoveryKeyMaterialResponse as RecoveryKeyMaterialResponse, type RecoveryType as RecoveryType, type SmartWalletConfigurationDisabled as SmartWalletConfigurationDisabled, type SmartWalletConfigurationEnabled as SmartWalletConfigurationEnabled, type SmartWalletConfigurationInputEnabled as SmartWalletConfigurationInputEnabled, type SmartWalletNetworkConfiguration as SmartWalletNetworkConfiguration, type SmartWalletNetworkConfigurationInput as SmartWalletNetworkConfigurationInput, type SmartWalletType as SmartWalletType, type WalletCreationAdditionalSignerItem as WalletCreationAdditionalSignerItem, type WalletCreationInput as WalletCreationInput, };
|
|
208
208
|
}
|
|
209
209
|
//# sourceMappingURL=embedded-wallets.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"embedded-wallets.d.ts","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,UAAU;AAEtB,qBAAa,eAAgB,SAAQ,WAAW;CAAG;AAEnD;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,gCAAgC,GAAG,+BAA+B,CAAC;AAE1G;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,gCAAgC,GAChC,oCAAoC,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"embedded-wallets.d.ts","sourceRoot":"","sources":["../src/resources/embedded-wallets.ts"],"names":[],"mappings":"OAEO,EA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BAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
package/resources/funding.d.mts
CHANGED
|
@@ -55,10 +55,6 @@ export type CoinbaseBlockchain = 'ethereum' | 'bitcoin' | 'base' | 'avacchain' |
|
|
|
55
55
|
* An Ethereum asset supported by Coinbase on-ramp.
|
|
56
56
|
*/
|
|
57
57
|
export type CoinbaseEthereumAsset = 'eth' | 'ETH' | 'USDC' | 'POL' | 'MON';
|
|
58
|
-
/**
|
|
59
|
-
* A Solana asset supported by Coinbase on-ramp.
|
|
60
|
-
*/
|
|
61
|
-
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
62
58
|
/**
|
|
63
59
|
* An Ethereum address with supported blockchains for Coinbase on-ramp.
|
|
64
60
|
*/
|
|
@@ -66,13 +62,6 @@ export interface CoinbaseOnRampEthereumAddress {
|
|
|
66
62
|
address: string;
|
|
67
63
|
blockchains: Array<CoinbaseBlockchain>;
|
|
68
64
|
}
|
|
69
|
-
/**
|
|
70
|
-
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
71
|
-
*/
|
|
72
|
-
export interface CoinbaseOnRampSolanaAddress {
|
|
73
|
-
address: string;
|
|
74
|
-
blockchains: Array<CoinbaseBlockchain>;
|
|
75
|
-
}
|
|
76
65
|
/**
|
|
77
66
|
* Input for initializing a Coinbase on-ramp session for Ethereum.
|
|
78
67
|
*/
|
|
@@ -87,36 +76,25 @@ export interface CoinbaseOnRampInitSolanaInput {
|
|
|
87
76
|
addresses: Array<CoinbaseOnRampSolanaAddress>;
|
|
88
77
|
assets?: Array<CoinbaseSolanaAsset>;
|
|
89
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
81
|
+
*/
|
|
82
|
+
export interface CoinbaseOnRampSolanaAddress {
|
|
83
|
+
address: string;
|
|
84
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
85
|
+
}
|
|
90
86
|
/**
|
|
91
87
|
* Status of a Coinbase on-ramp session.
|
|
92
88
|
*/
|
|
93
89
|
export type CoinbaseOnRampStatus = 'pending' | 'success' | 'failure';
|
|
94
90
|
/**
|
|
95
|
-
* A
|
|
91
|
+
* A Solana asset supported by Coinbase on-ramp.
|
|
96
92
|
*/
|
|
97
|
-
export type
|
|
93
|
+
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
98
94
|
/**
|
|
99
95
|
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
100
96
|
*/
|
|
101
97
|
export type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_OPTIMISM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDC_SOL' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'MON_MON' | 'CELO' | 'CUSD' | 'DAI' | 'ETH' | 'FIL' | 'MATIC' | 'USDC' | 'USDT' | 'WETH' | 'WBTC';
|
|
102
|
-
/**
|
|
103
|
-
* The theme for the Moonpay on-ramp widget.
|
|
104
|
-
*/
|
|
105
|
-
export type MoonpayUiTheme = 'light' | 'dark';
|
|
106
|
-
/**
|
|
107
|
-
* UI configuration for the Moonpay on-ramp widget.
|
|
108
|
-
*/
|
|
109
|
-
export interface MoonpayUiConfig {
|
|
110
|
-
accentColor?: string;
|
|
111
|
-
/**
|
|
112
|
-
* The theme for the Moonpay on-ramp widget.
|
|
113
|
-
*/
|
|
114
|
-
theme?: MoonpayUiTheme;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* A Moonpay currency code for a Solana asset.
|
|
118
|
-
*/
|
|
119
|
-
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
120
98
|
/**
|
|
121
99
|
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
122
100
|
*/
|
|
@@ -136,6 +114,16 @@ export interface MoonpayFiatOnRampEthereumConfig {
|
|
|
136
114
|
*/
|
|
137
115
|
uiConfig?: MoonpayUiConfig;
|
|
138
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
119
|
+
*/
|
|
120
|
+
export interface MoonpayFiatOnRampEthereumInput {
|
|
121
|
+
address: string;
|
|
122
|
+
/**
|
|
123
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
124
|
+
*/
|
|
125
|
+
config: MoonpayFiatOnRampEthereumConfig;
|
|
126
|
+
}
|
|
139
127
|
/**
|
|
140
128
|
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
141
129
|
*/
|
|
@@ -155,16 +143,6 @@ export interface MoonpayFiatOnRampSolanaConfig {
|
|
|
155
143
|
*/
|
|
156
144
|
uiConfig?: MoonpayUiConfig;
|
|
157
145
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
160
|
-
*/
|
|
161
|
-
export interface MoonpayFiatOnRampEthereumInput {
|
|
162
|
-
address: string;
|
|
163
|
-
/**
|
|
164
|
-
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
165
|
-
*/
|
|
166
|
-
config: MoonpayFiatOnRampEthereumConfig;
|
|
167
|
-
}
|
|
168
146
|
/**
|
|
169
147
|
* Input for a Moonpay fiat on-ramp for Solana.
|
|
170
148
|
*/
|
|
@@ -181,7 +159,29 @@ export interface MoonpayFiatOnRampSolanaInput {
|
|
|
181
159
|
export interface MoonpayOnRampSandboxConfig {
|
|
182
160
|
useSandbox?: boolean;
|
|
183
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* A payment method supported by Moonpay on-ramp.
|
|
164
|
+
*/
|
|
165
|
+
export type MoonpayPaymentMethod = 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
|
|
166
|
+
/**
|
|
167
|
+
* A Moonpay currency code for a Solana asset.
|
|
168
|
+
*/
|
|
169
|
+
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
170
|
+
/**
|
|
171
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
172
|
+
*/
|
|
173
|
+
export interface MoonpayUiConfig {
|
|
174
|
+
accentColor?: string;
|
|
175
|
+
/**
|
|
176
|
+
* The theme for the Moonpay on-ramp widget.
|
|
177
|
+
*/
|
|
178
|
+
theme?: MoonpayUiTheme;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The theme for the Moonpay on-ramp widget.
|
|
182
|
+
*/
|
|
183
|
+
export type MoonpayUiTheme = 'light' | 'dark';
|
|
184
184
|
export declare namespace Funding {
|
|
185
|
-
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, type CoinbaseBlockchain as CoinbaseBlockchain, type CoinbaseEthereumAsset as CoinbaseEthereumAsset, type
|
|
185
|
+
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, type CoinbaseBlockchain as CoinbaseBlockchain, type CoinbaseEthereumAsset as CoinbaseEthereumAsset, type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress, type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput, type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput, type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress, type CoinbaseOnRampStatus as CoinbaseOnRampStatus, type CoinbaseSolanaAsset as CoinbaseSolanaAsset, type MoonpayCurrencyCode as MoonpayCurrencyCode, type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig, type MoonpayFiatOnRampEthereumInput as MoonpayFiatOnRampEthereumInput, type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig, type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput, type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig, type MoonpayPaymentMethod as MoonpayPaymentMethod, type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode, type MoonpayUiConfig as MoonpayUiConfig, type MoonpayUiTheme as MoonpayUiTheme, };
|
|
186
186
|
}
|
|
187
187
|
//# sourceMappingURL=funding.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funding.d.mts","sourceRoot":"","sources":["../src/resources/funding.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;O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B,EACjE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,cAAc,IAAI,cAAc,GACtC,CAAC;CACH"}
|
package/resources/funding.d.ts
CHANGED
|
@@ -55,10 +55,6 @@ export type CoinbaseBlockchain = 'ethereum' | 'bitcoin' | 'base' | 'avacchain' |
|
|
|
55
55
|
* An Ethereum asset supported by Coinbase on-ramp.
|
|
56
56
|
*/
|
|
57
57
|
export type CoinbaseEthereumAsset = 'eth' | 'ETH' | 'USDC' | 'POL' | 'MON';
|
|
58
|
-
/**
|
|
59
|
-
* A Solana asset supported by Coinbase on-ramp.
|
|
60
|
-
*/
|
|
61
|
-
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
62
58
|
/**
|
|
63
59
|
* An Ethereum address with supported blockchains for Coinbase on-ramp.
|
|
64
60
|
*/
|
|
@@ -66,13 +62,6 @@ export interface CoinbaseOnRampEthereumAddress {
|
|
|
66
62
|
address: string;
|
|
67
63
|
blockchains: Array<CoinbaseBlockchain>;
|
|
68
64
|
}
|
|
69
|
-
/**
|
|
70
|
-
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
71
|
-
*/
|
|
72
|
-
export interface CoinbaseOnRampSolanaAddress {
|
|
73
|
-
address: string;
|
|
74
|
-
blockchains: Array<CoinbaseBlockchain>;
|
|
75
|
-
}
|
|
76
65
|
/**
|
|
77
66
|
* Input for initializing a Coinbase on-ramp session for Ethereum.
|
|
78
67
|
*/
|
|
@@ -87,36 +76,25 @@ export interface CoinbaseOnRampInitSolanaInput {
|
|
|
87
76
|
addresses: Array<CoinbaseOnRampSolanaAddress>;
|
|
88
77
|
assets?: Array<CoinbaseSolanaAsset>;
|
|
89
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* A Solana address with supported blockchains for Coinbase on-ramp.
|
|
81
|
+
*/
|
|
82
|
+
export interface CoinbaseOnRampSolanaAddress {
|
|
83
|
+
address: string;
|
|
84
|
+
blockchains: Array<CoinbaseBlockchain>;
|
|
85
|
+
}
|
|
90
86
|
/**
|
|
91
87
|
* Status of a Coinbase on-ramp session.
|
|
92
88
|
*/
|
|
93
89
|
export type CoinbaseOnRampStatus = 'pending' | 'success' | 'failure';
|
|
94
90
|
/**
|
|
95
|
-
* A
|
|
91
|
+
* A Solana asset supported by Coinbase on-ramp.
|
|
96
92
|
*/
|
|
97
|
-
export type
|
|
93
|
+
export type CoinbaseSolanaAsset = 'SOL' | 'USDC';
|
|
98
94
|
/**
|
|
99
95
|
* A Moonpay currency code for an Ethereum-compatible chain asset.
|
|
100
96
|
*/
|
|
101
97
|
export type MoonpayCurrencyCode = 'AVAX_CCHAIN' | 'CELO_CELO' | 'CUSD_CELO' | 'DAI_ETHEREUM' | 'ETH_ETHEREUM' | 'ETH_ARBITRUM' | 'ETH_OPTIMISM' | 'ETH_POLYGON' | 'ETH_BASE' | 'FIL_FVM' | 'MATIC_ETHEREUM' | 'MATIC_POLYGON' | 'POL_POLYGON' | 'POL_ETHEREUM' | 'USDC_ETHEREUM' | 'USDC_ARBITRUM' | 'USDC_OPTIMISM' | 'USDC_POLYGON' | 'USDC_BASE' | 'USDC_CCHAIN' | 'USDC_SOL' | 'USDT_ETHEREUM' | 'USDT_POLYGON' | 'WETH_POLYGON' | 'WBTC_ETHEREUM' | 'BNB_BNB' | 'BNB_BSC' | 'MON_MON' | 'CELO' | 'CUSD' | 'DAI' | 'ETH' | 'FIL' | 'MATIC' | 'USDC' | 'USDT' | 'WETH' | 'WBTC';
|
|
102
|
-
/**
|
|
103
|
-
* The theme for the Moonpay on-ramp widget.
|
|
104
|
-
*/
|
|
105
|
-
export type MoonpayUiTheme = 'light' | 'dark';
|
|
106
|
-
/**
|
|
107
|
-
* UI configuration for the Moonpay on-ramp widget.
|
|
108
|
-
*/
|
|
109
|
-
export interface MoonpayUiConfig {
|
|
110
|
-
accentColor?: string;
|
|
111
|
-
/**
|
|
112
|
-
* The theme for the Moonpay on-ramp widget.
|
|
113
|
-
*/
|
|
114
|
-
theme?: MoonpayUiTheme;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* A Moonpay currency code for a Solana asset.
|
|
118
|
-
*/
|
|
119
|
-
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
120
98
|
/**
|
|
121
99
|
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
122
100
|
*/
|
|
@@ -136,6 +114,16 @@ export interface MoonpayFiatOnRampEthereumConfig {
|
|
|
136
114
|
*/
|
|
137
115
|
uiConfig?: MoonpayUiConfig;
|
|
138
116
|
}
|
|
117
|
+
/**
|
|
118
|
+
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
119
|
+
*/
|
|
120
|
+
export interface MoonpayFiatOnRampEthereumInput {
|
|
121
|
+
address: string;
|
|
122
|
+
/**
|
|
123
|
+
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
124
|
+
*/
|
|
125
|
+
config: MoonpayFiatOnRampEthereumConfig;
|
|
126
|
+
}
|
|
139
127
|
/**
|
|
140
128
|
* Configuration for a Moonpay fiat on-ramp for Solana.
|
|
141
129
|
*/
|
|
@@ -155,16 +143,6 @@ export interface MoonpayFiatOnRampSolanaConfig {
|
|
|
155
143
|
*/
|
|
156
144
|
uiConfig?: MoonpayUiConfig;
|
|
157
145
|
}
|
|
158
|
-
/**
|
|
159
|
-
* Input for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
160
|
-
*/
|
|
161
|
-
export interface MoonpayFiatOnRampEthereumInput {
|
|
162
|
-
address: string;
|
|
163
|
-
/**
|
|
164
|
-
* Configuration for a Moonpay fiat on-ramp for an Ethereum-compatible chain.
|
|
165
|
-
*/
|
|
166
|
-
config: MoonpayFiatOnRampEthereumConfig;
|
|
167
|
-
}
|
|
168
146
|
/**
|
|
169
147
|
* Input for a Moonpay fiat on-ramp for Solana.
|
|
170
148
|
*/
|
|
@@ -181,7 +159,29 @@ export interface MoonpayFiatOnRampSolanaInput {
|
|
|
181
159
|
export interface MoonpayOnRampSandboxConfig {
|
|
182
160
|
useSandbox?: boolean;
|
|
183
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* A payment method supported by Moonpay on-ramp.
|
|
164
|
+
*/
|
|
165
|
+
export type MoonpayPaymentMethod = 'ach_bank_transfer' | 'credit_debit_card' | 'gbp_bank_transfer' | 'gbp_open_banking_payment' | 'mobile_wallet' | 'sepa_bank_transfer' | 'sepa_open_banking_payment' | 'pix_instant_payment' | 'yellow_card_bank_transfer';
|
|
166
|
+
/**
|
|
167
|
+
* A Moonpay currency code for a Solana asset.
|
|
168
|
+
*/
|
|
169
|
+
export type MoonpaySolanaCurrencyCode = 'SOL' | 'USDC_SOL';
|
|
170
|
+
/**
|
|
171
|
+
* UI configuration for the Moonpay on-ramp widget.
|
|
172
|
+
*/
|
|
173
|
+
export interface MoonpayUiConfig {
|
|
174
|
+
accentColor?: string;
|
|
175
|
+
/**
|
|
176
|
+
* The theme for the Moonpay on-ramp widget.
|
|
177
|
+
*/
|
|
178
|
+
theme?: MoonpayUiTheme;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* The theme for the Moonpay on-ramp widget.
|
|
182
|
+
*/
|
|
183
|
+
export type MoonpayUiTheme = 'light' | 'dark';
|
|
184
184
|
export declare namespace Funding {
|
|
185
|
-
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, type CoinbaseBlockchain as CoinbaseBlockchain, type CoinbaseEthereumAsset as CoinbaseEthereumAsset, type
|
|
185
|
+
export { type CoinbaseOnRampInitInput as CoinbaseOnRampInitInput, type CoinbaseOnRampInitResponse as CoinbaseOnRampInitResponse, type CoinbaseOnRampStatusResponse as CoinbaseOnRampStatusResponse, type MoonpayOnRampSignInput as MoonpayOnRampSignInput, type MoonpayOnRampSignResponse as MoonpayOnRampSignResponse, type CoinbaseBlockchain as CoinbaseBlockchain, type CoinbaseEthereumAsset as CoinbaseEthereumAsset, type CoinbaseOnRampEthereumAddress as CoinbaseOnRampEthereumAddress, type CoinbaseOnRampInitEthereumInput as CoinbaseOnRampInitEthereumInput, type CoinbaseOnRampInitSolanaInput as CoinbaseOnRampInitSolanaInput, type CoinbaseOnRampSolanaAddress as CoinbaseOnRampSolanaAddress, type CoinbaseOnRampStatus as CoinbaseOnRampStatus, type CoinbaseSolanaAsset as CoinbaseSolanaAsset, type MoonpayCurrencyCode as MoonpayCurrencyCode, type MoonpayFiatOnRampEthereumConfig as MoonpayFiatOnRampEthereumConfig, type MoonpayFiatOnRampEthereumInput as MoonpayFiatOnRampEthereumInput, type MoonpayFiatOnRampSolanaConfig as MoonpayFiatOnRampSolanaConfig, type MoonpayFiatOnRampSolanaInput as MoonpayFiatOnRampSolanaInput, type MoonpayOnRampSandboxConfig as MoonpayOnRampSandboxConfig, type MoonpayPaymentMethod as MoonpayPaymentMethod, type MoonpaySolanaCurrencyCode as MoonpaySolanaCurrencyCode, type MoonpayUiConfig as MoonpayUiConfig, type MoonpayUiTheme as MoonpayUiTheme, };
|
|
186
186
|
}
|
|
187
187
|
//# sourceMappingURL=funding.d.ts.map
|