@daimo/pay 0.0.1 → 0.0.2

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 (26) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +28 -40
  3. package/build/index.es.js +5063 -5807
  4. package/build/index.es.js.map +1 -1
  5. package/build/packages/paykit/packages/connectkit/src/components/Common/Modal/index.d.ts +1 -1
  6. package/build/packages/paykit/packages/connectkit/src/components/{ConnectKit.d.ts → DaimoPay.d.ts} +7 -10
  7. package/build/packages/paykit/packages/connectkit/src/components/{ConnectButton → DaimoPayButton}/index.d.ts +6 -9
  8. package/build/packages/paykit/packages/connectkit/src/components/{ConnectKitThemeProvider/ConnectKitThemeProvider.d.ts → DaimoPayThemeProvider/DaimoPayThemeProvider.d.ts} +3 -3
  9. package/build/packages/paykit/packages/connectkit/src/defaultConnectors.d.ts +1 -1
  10. package/build/packages/paykit/packages/connectkit/src/hooks/useConnect.d.ts +1 -1
  11. package/build/packages/paykit/packages/connectkit/src/hooks/useModal.d.ts +0 -1
  12. package/build/packages/paykit/packages/connectkit/src/index.d.ts +5 -9
  13. package/build/packages/paykit/packages/connectkit/src/styles/types.d.ts +1 -1
  14. package/build/packages/paykit/packages/connectkit/src/types.d.ts +1 -1
  15. package/build/packages/paykit/packages/connectkit/src/utils/index.d.ts +1 -1
  16. package/package.json +3 -2
  17. package/build/packages/paykit/packages/connectkit/src/components/BalanceButton/index.d.ts +0 -9
  18. package/build/packages/paykit/packages/connectkit/src/components/Pages/SignInWithEthereum/index.d.ts +0 -3
  19. package/build/packages/paykit/packages/connectkit/src/components/Pages/SignInWithEthereum/styles.d.ts +0 -5
  20. package/build/packages/paykit/packages/connectkit/src/components/Standard/SIWE/index.d.ts +0 -10
  21. package/build/packages/paykit/packages/connectkit/src/components/Standard/SIWE/styles.d.ts +0 -1
  22. package/build/packages/paykit/packages/connectkit/src/siwe/SIWEContext.d.ts +0 -42
  23. package/build/packages/paykit/packages/connectkit/src/siwe/SIWEProvider.d.ts +0 -11
  24. package/build/packages/paykit/packages/connectkit/src/siwe/index.d.ts +0 -3
  25. package/build/packages/paykit/packages/connectkit/src/siwe/useSIWE.d.ts +0 -21
  26. /package/build/packages/paykit/packages/connectkit/src/components/{ConnectButton → DaimoPayButton}/styles.d.ts +0 -0
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  BSD 2-Clause License
2
2
 
3
- Copyright (c) 2022, Daimo, Inc.
3
+ Copyright (c) 2024, Daimo, Inc.
4
4
  Copyright (c) 2022, LFE, Inc.
5
5
  All rights reserved.
6
6
 
package/README.md CHANGED
@@ -5,73 +5,61 @@
5
5
 
6
6
  # Daimo Pay
7
7
 
8
- Daimo Pay is a powerful [React](https://reactjs.org/) component library for connecting a wallet to your dApp. It supports the most popular connectors and chains out of the box and provides a beautiful, seamless experience.
8
+ Daimo Pay enables seamless crypto payments for your app.
9
+
10
+ Onboard users from any chain, any coin into your app with one click and maximize your conversion.
9
11
 
10
12
  ## Features
11
13
 
12
- - 💡 TypeScript ReadyGet types straight out of the box.
13
- - 🌱 Ecosystem Standards Uses top libraries such as [wagmi](https://github.com/wagmi-dev/wagmi).
14
- - 🖥️ Simple UX Give users a simple, attractive experience.
15
- - 🎨 Beautiful Themes Predesigned themes or full customization.
14
+ - 🌱 Instant cross-chain payments Accept payment from 1000+ tokens on multiple chains. Payments complete in less than 5 seconds. We handle the swapping and bridging so that your customers don't have to.
15
+ - 💡 Pay with a single transaction - No more wallet round-trips to make approval, swap, or bridging transactions. Your customers pay with a single transfer transaction.
16
+ - ⚡️ Fully permissionless - Daimo never custodies funds and funds can never be stuck in a contract. Payments can be permissionlessly completed by anyone.
17
+ - 💱 Support for all major wallets and exchanges - Daimo Pay supports payments from browser wallets like MetaMask and Rabby, WalletConnect, as well as exchanges like Coinbase and Binance.
18
+ - 💨 Integrate within minutes - Get up and running with Daimo Pay in as little as 10 minutes with little to no code.
16
19
 
17
20
  and much more...
18
21
 
19
22
  ## Documentation
20
23
 
21
- You can find the full ConnectKit documentation in the Family docs [here](https://docs.family.co/connectkit).
22
-
23
- ## API Reference
24
-
25
- You can find the full API Reference in the Family docs [here](https://docs.family.co/connectkit/api-reference).
24
+ You can find the full Daimo Pay documentation [here](https://paydocs.daimo.com).
26
25
 
27
26
  ## Examples
28
27
 
29
- There are various runnable examples included in this repository in the [examples folder](https://github.com/family/connectkit/tree/main/examples):
30
-
31
- - [Create React App Example (TypeScript)](https://github.com/family/connectkit/tree/main/examples/cra)
32
- - [Next.js Example (TypeScript)](https://github.com/family/connectkit/tree/main/examples/nextjs)
33
- - [Vite Example (TypeScript)](https://github.com/family/connectkit/tree/main/examples/vite)
28
+ Check out https://github.com/daimo-eth/pay-hello-world. More coming soon.
34
29
 
35
30
  ### Try in CodeSandbox
36
31
 
37
- You can try out some ConnectKit examples directly in your browser through CodeSandbox:
38
-
39
- - [Create React App Example (TypeScript)](https://codesandbox.io/s/5rhqm0?file=/README.md)
40
- - [Next.js (TypeScript)](https://codesandbox.io/s/qnvyqe?file=/README.md)
41
- - [Vite Example (TypeScript)](https://codesandbox.io/s/4jtssh?file=/README.md)
32
+ Coming soon
42
33
 
43
- ### Running Examples Locally
34
+ ### Local Development
44
35
 
45
- Clone the ConnectKit project and install the necessary dependencies:
36
+ Clone the repository and build the SDK in `dev` mode:
46
37
 
47
38
  ```sh
48
- $ git clone git@github.com:family/connectkit.git
49
- $ cd connectkit
50
- $ yarn install
39
+ git clone https://github.com/daimo-eth/paykit.git
40
+ cd paykit/packages/connectkit
41
+ npm i
42
+ npm run dev
51
43
  ```
52
44
 
53
- and start the code bundler:
45
+ The rollup bundler will now watch file changes in the background. Try using one of the examples for testing:
54
46
 
55
47
  ```sh
56
- $ yarn dev:connectkit
48
+ cd examples/nextjs
49
+ npm i
50
+ npm run dev
57
51
  ```
58
52
 
59
- and then simply select the example you'd like to run:
53
+ Any changes will be reflected on the Pay button in the example app.
60
54
 
61
- ```sh
62
- $ yarn dev:vite # Vite
63
- $ yarn dev:nextjs # Next.js
64
- $ yarn dev:cra # Create React App
65
- ```
66
-
67
- ## Contribute
55
+ ## Support
68
56
 
69
- Before starting on anything, please have a read through our [Contribution Guidelines](https://github.com/family/connectkit/blob/main/CONTRIBUTING.md).
57
+ Message us on [Telegram](https://t.me/daimo_support) if you're interested in integrating Daimo Pay.
70
58
 
71
- ## Twitter
59
+ ## License
72
60
 
73
- Follow [@family](https://twitter.com/family) on Twitter for the latest updates on ConnectKit.
61
+ See [LICENSE](https://github.com/daimo-eth/paykit/blob/main/packages/connectkit/LICENSE) for more information.
74
62
 
75
- ## License
63
+ ## Credits
76
64
 
77
- See [LICENSE](https://github.com/family/connectkit/blob/main/LICENSE) for more information.
65
+ Daimo Pay SDK is a fork of [Connectkit](https://github.com/family/connectkit) developed by [Family](https://family.co). We're grateful to them for making Connectkit fast, beatiful and open-source.