@coinbase/create-cdp-app 0.0.38 → 0.0.41

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 (89) hide show
  1. package/dist/index.js +99 -38
  2. package/dist/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/template-nextjs/README.md +1 -1
  5. package/template-nextjs/src/app/api/onramp/buy-options/route.ts +0 -2
  6. package/template-nextjs/src/components/EOATransaction.tsx +7 -7
  7. package/template-nextjs/src/components/FundWallet.tsx +17 -3
  8. package/template-nextjs/src/components/SignedInScreen.tsx +2 -2
  9. package/template-nextjs/src/components/SignedInScreenWithOnramp.tsx +149 -41
  10. package/template-nextjs/src/components/SolanaTransaction.tsx +106 -96
  11. package/template-nextjs/src/lib/onramp-api.ts +6 -2
  12. package/template-react/src/EOATransaction.tsx +7 -7
  13. package/template-react/src/SignedInScreen.tsx +2 -3
  14. package/template-react/src/SolanaTransaction.tsx +105 -96
  15. package/template-react-native/App.tsx +28 -6
  16. package/template-react-native/SolanaTransaction.tsx +368 -0
  17. package/template-react-native/Transaction.tsx +101 -1
  18. package/template-react-native/_gitignore +4 -0
  19. package/template-react-native/components/WalletHeader.tsx +37 -13
  20. package/template-react-native/env.example +1 -0
  21. package/template-react-native/index.ts +7 -0
  22. package/template-react-native/metro.config.js +19 -0
  23. package/template-react-native/package.json +3 -0
  24. package/template-react-native/android/_gitignore +0 -16
  25. package/template-react-native/android/app/build.gradle +0 -177
  26. package/template-react-native/android/app/debug.keystore +0 -0
  27. package/template-react-native/android/app/proguard-rules.pro +0 -14
  28. package/template-react-native/android/app/src/debug/AndroidManifest.xml +0 -7
  29. package/template-react-native/android/app/src/main/AndroidManifest.xml +0 -25
  30. package/template-react-native/android/app/src/main/java/com/anonymous/reactnativeexpo/MainActivity.kt +0 -61
  31. package/template-react-native/android/app/src/main/java/com/anonymous/reactnativeexpo/MainApplication.kt +0 -57
  32. package/template-react-native/android/app/src/main/res/drawable/ic_launcher_background.xml +0 -6
  33. package/template-react-native/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -37
  34. package/template-react-native/android/app/src/main/res/drawable-hdpi/splashscreen_logo.png +0 -0
  35. package/template-react-native/android/app/src/main/res/drawable-mdpi/splashscreen_logo.png +0 -0
  36. package/template-react-native/android/app/src/main/res/drawable-xhdpi/splashscreen_logo.png +0 -0
  37. package/template-react-native/android/app/src/main/res/drawable-xxhdpi/splashscreen_logo.png +0 -0
  38. package/template-react-native/android/app/src/main/res/drawable-xxxhdpi/splashscreen_logo.png +0 -0
  39. package/template-react-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml +0 -5
  40. package/template-react-native/android/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml +0 -5
  41. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher.webp +0 -0
  42. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_foreground.webp +0 -0
  43. package/template-react-native/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.webp +0 -0
  44. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher.webp +0 -0
  45. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_foreground.webp +0 -0
  46. package/template-react-native/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.webp +0 -0
  47. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher.webp +0 -0
  48. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_foreground.webp +0 -0
  49. package/template-react-native/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.webp +0 -0
  50. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.webp +0 -0
  51. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_foreground.webp +0 -0
  52. package/template-react-native/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.webp +0 -0
  53. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp +0 -0
  54. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_foreground.webp +0 -0
  55. package/template-react-native/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp +0 -0
  56. package/template-react-native/android/app/src/main/res/values/colors.xml +0 -6
  57. package/template-react-native/android/app/src/main/res/values/strings.xml +0 -5
  58. package/template-react-native/android/app/src/main/res/values/styles.xml +0 -10
  59. package/template-react-native/android/app/src/main/res/values-night/colors.xml +0 -1
  60. package/template-react-native/android/build.gradle +0 -37
  61. package/template-react-native/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  62. package/template-react-native/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  63. package/template-react-native/android/gradle.properties +0 -59
  64. package/template-react-native/android/gradlew +0 -251
  65. package/template-react-native/android/gradlew.bat +0 -94
  66. package/template-react-native/android/settings.gradle +0 -39
  67. package/template-react-native/ios/.xcode.env +0 -11
  68. package/template-react-native/ios/Podfile +0 -64
  69. package/template-react-native/ios/Podfile.lock +0 -2131
  70. package/template-react-native/ios/Podfile.properties.json +0 -5
  71. package/template-react-native/ios/_gitignore +0 -30
  72. package/template-react-native/ios/reactnativeexpo/AppDelegate.swift +0 -70
  73. package/template-react-native/ios/reactnativeexpo/Images.xcassets/AppIcon.appiconset/App-Icon-1024x1024@1x.png +0 -0
  74. package/template-react-native/ios/reactnativeexpo/Images.xcassets/AppIcon.appiconset/Contents.json +0 -14
  75. package/template-react-native/ios/reactnativeexpo/Images.xcassets/Contents.json +0 -6
  76. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenBackground.colorset/Contents.json +0 -20
  77. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/Contents.json +0 -23
  78. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image.png +0 -0
  79. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image@2x.png +0 -0
  80. package/template-react-native/ios/reactnativeexpo/Images.xcassets/SplashScreenLogo.imageset/image@3x.png +0 -0
  81. package/template-react-native/ios/reactnativeexpo/Info.plist +0 -74
  82. package/template-react-native/ios/reactnativeexpo/PrivacyInfo.xcprivacy +0 -48
  83. package/template-react-native/ios/reactnativeexpo/SplashScreen.storyboard +0 -44
  84. package/template-react-native/ios/reactnativeexpo/Supporting/Expo.plist +0 -12
  85. package/template-react-native/ios/reactnativeexpo/reactnativeexpo-Bridging-Header.h +0 -3
  86. package/template-react-native/ios/reactnativeexpo/reactnativeexpo.entitlements +0 -5
  87. package/template-react-native/ios/reactnativeexpo.xcodeproj/project.pbxproj +0 -545
  88. package/template-react-native/ios/reactnativeexpo.xcodeproj/xcshareddata/xcschemes/reactnativeexpo.xcscheme +0 -88
  89. package/template-react-native/ios/reactnativeexpo.xcworkspace/contents.xcworkspacedata +0 -10
@@ -1,5 +0,0 @@
1
- {
2
- "expo.jsEngine": "hermes",
3
- "EX_DEV_CLIENT_NETWORK_INSPECTOR": "true",
4
- "newArchEnabled": "true"
5
- }
@@ -1,30 +0,0 @@
1
- # OSX
2
- #
3
- .DS_Store
4
-
5
- # Xcode
6
- #
7
- build/
8
- *.pbxuser
9
- !default.pbxuser
10
- *.mode1v3
11
- !default.mode1v3
12
- *.mode2v3
13
- !default.mode2v3
14
- *.perspectivev3
15
- !default.perspectivev3
16
- xcuserdata
17
- *.xccheckout
18
- *.moved-aside
19
- DerivedData
20
- *.hmap
21
- *.ipa
22
- *.xcuserstate
23
- project.xcworkspace
24
- .xcode.env.local
25
-
26
- # Bundle artifacts
27
- *.jsbundle
28
-
29
- # CocoaPods
30
- /Pods/
@@ -1,70 +0,0 @@
1
- import Expo
2
- import React
3
- import ReactAppDependencyProvider
4
-
5
- @UIApplicationMain
6
- public class AppDelegate: ExpoAppDelegate {
7
- var window: UIWindow?
8
-
9
- var reactNativeDelegate: ExpoReactNativeFactoryDelegate?
10
- var reactNativeFactory: RCTReactNativeFactory?
11
-
12
- public override func application(
13
- _ application: UIApplication,
14
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
15
- ) -> Bool {
16
- let delegate = ReactNativeDelegate()
17
- let factory = ExpoReactNativeFactory(delegate: delegate)
18
- delegate.dependencyProvider = RCTAppDependencyProvider()
19
-
20
- reactNativeDelegate = delegate
21
- reactNativeFactory = factory
22
- bindReactNativeFactory(factory)
23
-
24
- #if os(iOS) || os(tvOS)
25
- window = UIWindow(frame: UIScreen.main.bounds)
26
- factory.startReactNative(
27
- withModuleName: "main",
28
- in: window,
29
- launchOptions: launchOptions)
30
- #endif
31
-
32
- return super.application(application, didFinishLaunchingWithOptions: launchOptions)
33
- }
34
-
35
- // Linking API
36
- public override func application(
37
- _ app: UIApplication,
38
- open url: URL,
39
- options: [UIApplication.OpenURLOptionsKey: Any] = [:]
40
- ) -> Bool {
41
- return super.application(app, open: url, options: options) || RCTLinkingManager.application(app, open: url, options: options)
42
- }
43
-
44
- // Universal Links
45
- public override func application(
46
- _ application: UIApplication,
47
- continue userActivity: NSUserActivity,
48
- restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
49
- ) -> Bool {
50
- let result = RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
51
- return super.application(application, continue: userActivity, restorationHandler: restorationHandler) || result
52
- }
53
- }
54
-
55
- class ReactNativeDelegate: ExpoReactNativeFactoryDelegate {
56
- // Extension point for config-plugins
57
-
58
- override func sourceURL(for bridge: RCTBridge) -> URL? {
59
- // needed to return the correct URL for expo-dev-client.
60
- bridge.bundleURL ?? bundleURL()
61
- }
62
-
63
- override func bundleURL() -> URL? {
64
- #if DEBUG
65
- return RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: ".expo/.virtual-metro-entry")
66
- #else
67
- return Bundle.main.url(forResource: "main", withExtension: "jsbundle")
68
- #endif
69
- }
70
- }
@@ -1,14 +0,0 @@
1
- {
2
- "images": [
3
- {
4
- "filename": "App-Icon-1024x1024@1x.png",
5
- "idiom": "universal",
6
- "platform": "ios",
7
- "size": "1024x1024"
8
- }
9
- ],
10
- "info": {
11
- "version": 1,
12
- "author": "expo"
13
- }
14
- }
@@ -1,6 +0,0 @@
1
- {
2
- "info" : {
3
- "version" : 1,
4
- "author" : "expo"
5
- }
6
- }
@@ -1,20 +0,0 @@
1
- {
2
- "colors": [
3
- {
4
- "color": {
5
- "components": {
6
- "alpha": "1.000",
7
- "blue": "1.00000000000000",
8
- "green": "1.00000000000000",
9
- "red": "1.00000000000000"
10
- },
11
- "color-space": "srgb"
12
- },
13
- "idiom": "universal"
14
- }
15
- ],
16
- "info": {
17
- "version": 1,
18
- "author": "expo"
19
- }
20
- }
@@ -1,23 +0,0 @@
1
- {
2
- "images": [
3
- {
4
- "idiom": "universal",
5
- "filename": "image.png",
6
- "scale": "1x"
7
- },
8
- {
9
- "idiom": "universal",
10
- "filename": "image@2x.png",
11
- "scale": "2x"
12
- },
13
- {
14
- "idiom": "universal",
15
- "filename": "image@3x.png",
16
- "scale": "3x"
17
- }
18
- ],
19
- "info": {
20
- "version": 1,
21
- "author": "expo"
22
- }
23
- }
@@ -1,74 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CADisableMinimumFrameDurationOnPhone</key>
6
- <true/>
7
- <key>CFBundleDevelopmentRegion</key>
8
- <string>$(DEVELOPMENT_LANGUAGE)</string>
9
- <key>CFBundleDisplayName</key>
10
- <string>react-native-expo</string>
11
- <key>CFBundleExecutable</key>
12
- <string>$(EXECUTABLE_NAME)</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>$(PRODUCT_NAME)</string>
19
- <key>CFBundlePackageType</key>
20
- <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>1.0.0</string>
23
- <key>CFBundleSignature</key>
24
- <string>????</string>
25
- <key>CFBundleURLTypes</key>
26
- <array>
27
- <dict>
28
- <key>CFBundleURLSchemes</key>
29
- <array>
30
- <string>com.anonymous.reactnativeexpo</string>
31
- </array>
32
- </dict>
33
- </array>
34
- <key>CFBundleVersion</key>
35
- <string>1</string>
36
- <key>LSMinimumSystemVersion</key>
37
- <string>12.0</string>
38
- <key>LSRequiresIPhoneOS</key>
39
- <true/>
40
- <key>NSAppTransportSecurity</key>
41
- <dict>
42
- <key>NSAllowsArbitraryLoads</key>
43
- <false/>
44
- <key>NSAllowsLocalNetworking</key>
45
- <true/>
46
- </dict>
47
- <key>UILaunchStoryboardName</key>
48
- <string>SplashScreen</string>
49
- <key>UIRequiredDeviceCapabilities</key>
50
- <array>
51
- <string>arm64</string>
52
- </array>
53
- <key>UIRequiresFullScreen</key>
54
- <false/>
55
- <key>UIStatusBarStyle</key>
56
- <string>UIStatusBarStyleDefault</string>
57
- <key>UISupportedInterfaceOrientations</key>
58
- <array>
59
- <string>UIInterfaceOrientationPortrait</string>
60
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
61
- </array>
62
- <key>UISupportedInterfaceOrientations~ipad</key>
63
- <array>
64
- <string>UIInterfaceOrientationPortrait</string>
65
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
66
- <string>UIInterfaceOrientationLandscapeLeft</string>
67
- <string>UIInterfaceOrientationLandscapeRight</string>
68
- </array>
69
- <key>UIUserInterfaceStyle</key>
70
- <string>Light</string>
71
- <key>UIViewControllerBasedStatusBarAppearance</key>
72
- <false/>
73
- </dict>
74
- </plist>
@@ -1,48 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>NSPrivacyAccessedAPITypes</key>
6
- <array>
7
- <dict>
8
- <key>NSPrivacyAccessedAPIType</key>
9
- <string>NSPrivacyAccessedAPICategoryUserDefaults</string>
10
- <key>NSPrivacyAccessedAPITypeReasons</key>
11
- <array>
12
- <string>CA92.1</string>
13
- </array>
14
- </dict>
15
- <dict>
16
- <key>NSPrivacyAccessedAPIType</key>
17
- <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
18
- <key>NSPrivacyAccessedAPITypeReasons</key>
19
- <array>
20
- <string>0A2A.1</string>
21
- <string>3B52.1</string>
22
- <string>C617.1</string>
23
- </array>
24
- </dict>
25
- <dict>
26
- <key>NSPrivacyAccessedAPIType</key>
27
- <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
28
- <key>NSPrivacyAccessedAPITypeReasons</key>
29
- <array>
30
- <string>E174.1</string>
31
- <string>85F4.1</string>
32
- </array>
33
- </dict>
34
- <dict>
35
- <key>NSPrivacyAccessedAPIType</key>
36
- <string>NSPrivacyAccessedAPICategorySystemBootTime</string>
37
- <key>NSPrivacyAccessedAPITypeReasons</key>
38
- <array>
39
- <string>35F9.1</string>
40
- </array>
41
- </dict>
42
- </array>
43
- <key>NSPrivacyCollectedDataTypes</key>
44
- <array/>
45
- <key>NSPrivacyTracking</key>
46
- <false/>
47
- </dict>
48
- </plist>
@@ -1,44 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="32700.99.1234" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="EXPO-VIEWCONTROLLER-1">
3
- <device id="retina6_12" orientation="portrait" appearance="light"/>
4
- <dependencies>
5
- <deployment identifier="iOS"/>
6
- <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22685"/>
7
- <capability name="Named colors" minToolsVersion="9.0"/>
8
- <capability name="Safe area layout guides" minToolsVersion="9.0"/>
9
- <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
10
- </dependencies>
11
- <scenes>
12
- <scene sceneID="EXPO-SCENE-1">
13
- <objects>
14
- <viewController storyboardIdentifier="SplashScreenViewController" id="EXPO-VIEWCONTROLLER-1" sceneMemberID="viewController">
15
- <view key="view" userInteractionEnabled="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="EXPO-ContainerView" userLabel="ContainerView">
16
- <rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
17
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
18
- <subviews>
19
- <imageView id="EXPO-SplashScreen" userLabel="SplashScreenLogo" image="SplashScreenLogo" contentMode="scaleAspectFit" clipsSubviews="true" userInteractionEnabled="false" translatesAutoresizingMaskIntoConstraints="false">
20
- <rect key="frame" x="0" y="0" width="414" height="736"/>
21
- </imageView>
22
- </subviews>
23
- <viewLayoutGuide key="safeArea" id="Rmq-lb-GrQ"/>
24
- <constraints>
25
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="top" secondItem="EXPO-ContainerView" secondAttribute="top" id="83fcb9b545b870ba44c24f0feeb116490c499c52"/>
26
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="leading" secondItem="EXPO-ContainerView" secondAttribute="leading" id="61d16215e44b98e39d0a2c74fdbfaaa22601b12c"/>
27
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="trailing" secondItem="EXPO-ContainerView" secondAttribute="trailing" id="f934da460e9ab5acae3ad9987d5b676a108796c1"/>
28
- <constraint firstItem="EXPO-SplashScreen" firstAttribute="bottom" secondItem="EXPO-ContainerView" secondAttribute="bottom" id="d6a0be88096b36fb132659aa90203d39139deda9"/>
29
- </constraints>
30
- <color key="backgroundColor" name="SplashScreenBackground"/>
31
- </view>
32
- </viewController>
33
- <placeholder placeholderIdentifier="IBFirstResponder" id="EXPO-PLACEHOLDER-1" userLabel="First Responder" sceneMemberID="firstResponder"/>
34
- </objects>
35
- <point key="canvasLocation" x="0.0" y="0.0"/>
36
- </scene>
37
- </scenes>
38
- <resources>
39
- <image name="SplashScreenLogo" width="414" height="736"/>
40
- <namedColor name="SplashScreenBackground">
41
- <color alpha="1.000" blue="1.00000000000000" green="1.00000000000000" red="1.00000000000000" customColorSpace="sRGB" colorSpace="custom"/>
42
- </namedColor>
43
- </resources>
44
- </document>
@@ -1,12 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>EXUpdatesCheckOnLaunch</key>
6
- <string>ALWAYS</string>
7
- <key>EXUpdatesEnabled</key>
8
- <false/>
9
- <key>EXUpdatesLaunchWaitMs</key>
10
- <integer>0</integer>
11
- </dict>
12
- </plist>
@@ -1,3 +0,0 @@
1
- //
2
- // Use this file to import your target's public headers that you would like to expose to Swift.
3
- //
@@ -1,5 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict/>
5
- </plist>