Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chat many #79

Open
wants to merge 4 commits into
base: main
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
63 changes: 63 additions & 0 deletions CHATMANY/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@

# ⚡ Hackathon Project Template ⚡
_This is a sample submission repository.
Please [__fork this repo__](https://help.github.com/articles/fork-a-repo/) and use this as a starting point for your hackathon project._

## Project Name

CHAT MANY

### Team name

TEAM AWESOME

#### Hackathon Track

Social Impact Track

##### Region location

AFRICA

##### Team Members
- Teammate 1, role
- Teammate 2, role
- Teammate 3, role

#### Project Description
Provide a clear statement of the challenges/issues/problems/gaps your project engages as well as a brief, high-level description of how your project engages the areas you've identified. What is the value of your approach? Who are the intended users?

Chatting is the major way for everyone to connect and stay in touch with their loved ones. In urgent and compromising situations, chatting still remains the best way to draw the attention of people whose help you might need.
Chat many is a social app with wallet-like integration that is built on the Seno blockchain.
It has a remote signer protocol that facilitates an end-to-end encrypted connection between wallets.
These wallets integrate the release candidate to leverage cutting-edge features such as simultaneous multi-chain support, to allow users to send transactions to different chains at the same time. These features reflect Chat many’s agnostic approaches, as it seeks to empower users wherever they choose to interact with web3, delivering an experience that is as seamless as it is secure.


#### Summary
Describe the basic functionality of your project. What are the features you were able to implement? What features would you like to implement?

A next-generation app with wallet-like integration for chatting enthusiasts and keeping in touch with friends, family, and acquaintances to break protocols of sending and receiving crypto.
Features include:
* Sending free messages and allowing users to share memes, pictures, and videos.
* Chat between any two wallets, regardless of device: Any two users of a Chat many can engage in chat. This is a significant departure from web2 chat services, where users must be on the same platform to do so.
* Participate on your terms: To be discoverable, users must opt-in, in which case they can be discovered by their wallet address. Those who choose to restrict discoverability can also chat with others by sharing their details via a QR code or link.
* Use one tool for messaging and crypto: Users can send messages alongside crypto transactions, simplifying the experience and laying the groundwork for future use cases.
* Own your chat history: All messages are encrypted and only the chat’s participants can read them. Users can exercise self-custody of their message history, making it privacy-preserving and censorship-resistant.
* Keep your keys private: Chat many decouples wallet keys and respects users’ privacy.


#### URLs
List any URLs relevant to demonstrating your prototype



#### Presentation
https://youtu.be/NM8Wy7DRacs

#### Next Steps
What do you need to do next to turn this prototype into a working solution?

Chat many has the foremost mission to empower web3 connections and open up brand-new use cases in this nascent space of web3. As web3’s next frontier, chat may represent a new level of user interaction, helping social media evolve beyond just texting. Built on the Seno blockchain which has become the new standard development and for connecting web3 devices, the Chat API enables wallets to expand the user experience and further cement a role for the future social network.

#### License
This repository includes an [unlicensed](http://unlicense.org/) statement though you may want to [choose a different license](https://choosealicense.com/).
3 changes: 3 additions & 0 deletions CHATMANY/chatmanyapp/.babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["module:chatmany-babel-preset"]
}
9 changes: 9 additions & 0 deletions CHATMANY/chatmanyapp/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mandatory info for starting the app
REACT_APP_MORALIS_APPLICATION_ID=001
REACT_APP_MORALIS_SERVER_URL=https://1337-moralisweb3-moralisjssd-49oeruwo30r.ws-eu72.gitpod.io/server

# Optional info for connecting your localChain and Moralis Database
# moralisApiKey = xxxxx
# moralisApiSecret = xxxxxxx
# moralisSubdomain = xxxxxxx.usemoralis.com
# abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"
9 changes: 9 additions & 0 deletions CHATMANY/chatmanyapp/.env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Mandatory info for starting the app
REACT_APP_MORALIS_APPLICATION_ID=001
REACT_APP_MORALIS_SERVER_URL=https://1337-moralisweb3-moralisjssd-49oeruwo30r.ws-eu72.gitpod.io/server

# Optional info for connecting your localChain and Moralis Database
# moralisApiKey = xxxxx
# moralisApiSecret = xxxxxxx
# moralisSubdomain = xxxxxxx.usemoralis.com
# abiPath = "F:\ethereum-boilerplate\Truffle\build\contracts\Contract.json"
60 changes: 60 additions & 0 deletions CHATMANY/chatmanyapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# 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/
package-lock.json # include if you are using npm - don't use both yarn and npm
npm-debug.log
yarn-error.log
yarn.lock # include if you are using yarn - don't use both npm and yarn

# 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

# Bundle artifact
*.jsbundle

.expo
9 changes: 9 additions & 0 deletions CHATMANY/chatmanyapp/LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
MIT License

Copyright (c) 2021 Moralis Web3 Technology AB, 559307-5988

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1 change: 1 addition & 0 deletions CHATMANY/chatmanyapp/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#chatmany
Empty file.
15 changes: 15 additions & 0 deletions CHATMANY/chatmanyapp/__tests__/contracts/Hello.test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@

const { expect } = require('chai');

describe("Hello", function() {
it("Should return the default greeting", async function() {
const Hello = await ethers.getContractFactory("Hello");
const hello = await Hello.deploy();

await hello.deployed();

expect(await hello.sayHello("React Native")).to.equal("Welcome to React Native!");
expect(await hello.sayHello("Web3")).to.equal("Welcome to Web3!");
});
});

Empty file.
13 changes: 13 additions & 0 deletions CHATMANY/chatmanyapp/__tests__/frontend/App.test.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import Enzyme from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import React from 'react';

import App from '../../frontend/App';

Enzyme.configure({ adapter: new Adapter() });

test('renders correctly', () => {
const wrapper = Enzyme.shallow(<App />);

expect(wrapper.find({ testID: 'tid-message'}).contains('Loading...')).toBe(true);
});
28 changes: 28 additions & 0 deletions CHATMANY/chatmanyapp/android/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>chatmany</name>
<comment>Project android created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1637440389752</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
arguments=
auto.sync=false
build.scans.enabled=false
connection.gradle.distribution=GRADLE_DISTRIBUTION(WRAPPER)
connection.project.dir=
eclipse.preferences.version=1
gradle.user.home=
java.home=/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home
jvm.arguments=
offline.mode=false
override.workspace.settings=true
show.console.view=true
show.executions.view=true
6 changes: 6 additions & 0 deletions CHATMANY/chatmanyapp/android/app/.classpath
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="output" path="bin/default"/>
</classpath>
34 changes: 34 additions & 0 deletions CHATMANY/chatmanyapp/android/app/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>app</name>
<comment>Project app created by Buildship.</comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>org.eclipse.buildship.core.gradleprojectbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures>
<filteredResources>
<filter>
<id>1637440389696</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
connection.project.dir=..
eclipse.preferences.version=1
55 changes: 55 additions & 0 deletions CHATMANY/chatmanyapp/android/app/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# To learn about Buck see [Docs](https://buckbuild.com/).
# To run your application with Buck:
# - install Buck
# - `npm start` - to start the packager
# - `cd android`
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
# - `buck install -r android/app` - compile, install and run application
#

load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")

lib_deps = []

create_aar_targets(glob(["libs/*.aar"]))

create_jar_targets(glob(["libs/*.jar"]))

android_library(
name = "all-libs",
exported_deps = lib_deps,
)

android_library(
name = "app-code",
srcs = glob([
"src/main/java/**/*.java",
]),
deps = [
":all-libs",
":build_config",
":res",
],
)

android_build_config(
name = "build_config",
package = "com.myreactdapp",
)

android_resource(
name = "res",
package = "com.myreactdapp",
res = "src/main/res",
)

android_binary(
name = "app",
keystore = "//android/keystores:debug",
manifest = "src/main/AndroidManifest.xml",
package_type = "debug",
deps = [
":app-code",
],
)
Loading