Skip to content
This repository was archived by the owner on Dec 3, 2021. It is now read-only.

xPay by Dexlab team #15

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions dexlab/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": ["react-native"],
"env": {
"production": {
"plugins": ["transform-remove-console"]
}
}
}
6 changes: 6 additions & 0 deletions dexlab/.buckconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

[android]
target = Google Inc.:Google APIs:23

[maven_repositories]
central = https://repo1.maven.org/maven2
56 changes: 56 additions & 0 deletions dexlab/.flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
[ignore]
; We fork some components by platform
.*/*[.]android.js

; Ignore "BUCK" generated dirs
<PROJECT_ROOT>/\.buckd/

; Ignore unexpected extra "@providesModule"
.*/node_modules/.*/node_modules/fbjs/.*

; Ignore duplicate module providers
; For RN Apps installed via npm, "Libraries" folder is inside
; "node_modules/react-native" but in the source repo it is in the root
.*/Libraries/react-native/React.js

; Ignore polyfills
.*/Libraries/polyfills/.*

; Ignore metro
.*/node_modules/metro/.*

[include]

[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow/
node_modules/react-native/flow-github/

[options]
emoji=true

module.system=haste

munge_underscores=true

module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'

module.file_ext=.js
module.file_ext=.jsx
module.file_ext=.json
module.file_ext=.native.js

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(<VERSION>\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

unsafe.enable_getters_and_setters=true

[version]
^0.61.0
1 change: 1 addition & 0 deletions dexlab/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.pbxproj -text
53 changes: 53 additions & 0 deletions dexlab/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
# screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/

*/fastlane/report.xml
*/fastlane/Preview.html
*/fastlane/screenshots
1 change: 1 addition & 0 deletions dexlab/.nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.10.0
1 change: 1 addition & 0 deletions dexlab/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
Binary file added dexlab/Cover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions dexlab/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<div align="center">
<h2>
xPay: A permissionless alternative to WeChat Pay and Alipay. xPay is an Open Source crypto point of sale based on xDAI.
</h2>
</div>

<a href="https://youtu.be/k8qFi2Oa_PY">
<img src="https://raw.githubusercontent.com/Alexintosh/CryptoLife/master/dexlab/Cover.png">
</a>

[Presentation](https://docs.google.com/presentation/d/1hcjch0sa3PHPI-ZO6rygStqH4nHVMDoJYmnArETAeBg/edit?usp=sharing)
## Inspiration
The Mobile payments market in China is exploding.

The payment apps and QR codes in retailers and other offline businesses have become ubiquitous in China, young consumers rarely carry a wallet or cash. In 2015 Chinese citizens transacted $1 trillion through mobile payments using QR codes. In 2017 it was $15.5 trillion. In 2020 it is forecast that Chinese consumers will transact $45 trillion through mobile payments, by which time the county will be pretty much cashless.

Solutions like WeChat Pay and Alipay are:
- Highly Centralized
- A Chinese Bank account is needed
- Not available for foreigners
- Highly censored

The 27 Oct 2018 China ruled that China’s Merchants are Legally Allowed to Accept Bitcoin and Crypto.

## What it does
xPay is an open alternative to mobile payment point of sale.

💲 Everything in dollars (DAI)
⚡️ Fast transactions (5s confirmation)
🔑 Secure, no keys are stored in the POS, the connected wallet is used in watch mode.

## How we built it
xDAI chain, web3, react-native, Blockscout explorer API

## Challenges we ran into
web3 1.0 beta works badly with react-native, had to switch to previous version.

## Accomplishments that we're proud of
The proof of concept is fully functional.

## What we learned
xDAI Chain opens scenarios for real use cases for the local economy.

## What's next for xPay
- Integration with Inventory Management Software
- Automated Accounting
- Record gift cards, and other forms of tender
- Send and track invoices from your device
- Apply discounts and issue refunds
- Send receipts via email or text message
- Access real-time sales data and complete sales history
- Track inventory in real time
- Connect a receipt printer, kitchen ticket printer, bar code scanner, and cash drawer
3 changes: 3 additions & 0 deletions dexlab/__tests__/setupTestEnv.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
test('Test executes correctly', () => {
expect(true).toBe(true);
});
4 changes: 4 additions & 0 deletions dexlab/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"name": "xpay",
"displayName": "xpay"
}
46 changes: 46 additions & 0 deletions dexlab/assets/app-store.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dexlab/assets/fonts/OpenSans-Bold.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-ExtraBoldItalic.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-Italic.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-Light.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-LightItalic.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-Regular.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-Semibold.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/OpenSans-SemiboldItalic.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/Quicksand-Bold.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/Quicksand-Light.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/Quicksand-Medium.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/Quicksand-Regular.ttf
Binary file not shown.
Binary file added dexlab/assets/fonts/Varela Round.otf
Binary file not shown.
Binary file added dexlab/assets/google-play.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions dexlab/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import './shim';
import App from './src/App';

App.start();
Loading