@oasisprotocol/privana-sdk 0.4.3 → 0.5.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/dist/{chunk-2AHJHISR.js → chunk-54FC6TO3.js} +1145 -26
- package/dist/chunk-54FC6TO3.js.map +1 -0
- package/dist/{chunk-EEAQ2NWF.cjs → chunk-ACLJPC75.cjs} +1145 -22
- package/dist/chunk-ACLJPC75.cjs.map +1 -0
- package/dist/index.cjs +2003 -312
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +2 -2
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +137 -9
- package/dist/index.d.ts +137 -9
- package/dist/index.js +1758 -83
- package/dist/index.js.map +1 -1
- package/dist/{on-ramp-CdXqJjmm.d.cts → on-ramp-XLXsy0aI.d.cts} +15 -0
- package/dist/{on-ramp-CdXqJjmm.d.ts → on-ramp-XLXsy0aI.d.ts} +15 -0
- package/dist/on-ramp.cjs +10 -974
- package/dist/on-ramp.cjs.map +1 -1
- package/dist/on-ramp.d.cts +13 -3
- package/dist/on-ramp.d.ts +13 -3
- package/dist/on-ramp.js +1 -975
- package/dist/on-ramp.js.map +1 -1
- package/package.json +3 -2
- package/dist/chunk-2AHJHISR.js.map +0 -1
- package/dist/chunk-EEAQ2NWF.cjs.map +0 -1
|
@@ -27,6 +27,15 @@ interface NetworkConfig {
|
|
|
27
27
|
name: string;
|
|
28
28
|
accountingContract: Address;
|
|
29
29
|
apiUrl: string;
|
|
30
|
+
/** Versioned MoonPay REST API base URL (default: 'https://api.moonpay.com/v3'). */
|
|
31
|
+
moonpayApiUrl?: string;
|
|
32
|
+
/**
|
|
33
|
+
* MoonPay publishable API key ('pk_test_…' / 'pk_live_…' — MoonPay infers the
|
|
34
|
+
* environment from the prefix). Enables the credit-card deposit flow: the SDK
|
|
35
|
+
* mounts its own MoonPayProvider around the credit-card subtree, so consumers
|
|
36
|
+
* don't wrap the app in one (and don't pay MoonPay's CDN script cost at app start).
|
|
37
|
+
*/
|
|
38
|
+
moonpayApiKey?: string;
|
|
30
39
|
}
|
|
31
40
|
declare const NETWORK_CONFIG: {
|
|
32
41
|
readonly testnet: {
|
|
@@ -55,6 +64,12 @@ interface TokenConfig {
|
|
|
55
64
|
contract: Address;
|
|
56
65
|
name: string;
|
|
57
66
|
chainId: number;
|
|
67
|
+
/**
|
|
68
|
+
* MoonPay-specific currency identifier for the credit-card on-ramp (e.g. 'usdc'
|
|
69
|
+
* or 'usdc_base'). Populated SDK-side from a stopgap map until the token API
|
|
70
|
+
* returns it; `undefined` when the token isn't supported by MoonPay.
|
|
71
|
+
*/
|
|
72
|
+
moonpayCurrencyCode?: string;
|
|
58
73
|
}
|
|
59
74
|
|
|
60
75
|
type OnRampStatus = 'pending' | 'completed' | 'failed' | 'cancelled';
|
|
@@ -27,6 +27,15 @@ interface NetworkConfig {
|
|
|
27
27
|
name: string;
|
|
28
28
|
accountingContract: Address;
|
|
29
29
|
apiUrl: string;
|
|
30
|
+
/** Versioned MoonPay REST API base URL (default: 'https://api.moonpay.com/v3'). */
|
|
31
|
+
moonpayApiUrl?: string;
|
|
32
|
+
/**
|
|
33
|
+
* MoonPay publishable API key ('pk_test_…' / 'pk_live_…' — MoonPay infers the
|
|
34
|
+
* environment from the prefix). Enables the credit-card deposit flow: the SDK
|
|
35
|
+
* mounts its own MoonPayProvider around the credit-card subtree, so consumers
|
|
36
|
+
* don't wrap the app in one (and don't pay MoonPay's CDN script cost at app start).
|
|
37
|
+
*/
|
|
38
|
+
moonpayApiKey?: string;
|
|
30
39
|
}
|
|
31
40
|
declare const NETWORK_CONFIG: {
|
|
32
41
|
readonly testnet: {
|
|
@@ -55,6 +64,12 @@ interface TokenConfig {
|
|
|
55
64
|
contract: Address;
|
|
56
65
|
name: string;
|
|
57
66
|
chainId: number;
|
|
67
|
+
/**
|
|
68
|
+
* MoonPay-specific currency identifier for the credit-card on-ramp (e.g. 'usdc'
|
|
69
|
+
* or 'usdc_base'). Populated SDK-side from a stopgap map until the token API
|
|
70
|
+
* returns it; `undefined` when the token isn't supported by MoonPay.
|
|
71
|
+
*/
|
|
72
|
+
moonpayCurrencyCode?: string;
|
|
58
73
|
}
|
|
59
74
|
|
|
60
75
|
type OnRampStatus = 'pending' | 'completed' | 'failed' | 'cancelled';
|