@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.
@@ -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';