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

Anshid works #9

Open
wants to merge 64 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
64 commits
Select commit Hold shift + click to select a range
fe5106e
Update index.html
exmrcoin Apr 26, 2018
ee92ce5
Update base.html
exmrcoin Apr 26, 2018
fddbcdb
Update app.iml
exmrcoin Apr 26, 2018
652576f
Update app.iml
exmrcoin Apr 26, 2018
734cd2c
Update README.md
albertnanita May 2, 2018
55d5e5c
Update README.md
albertnanita May 2, 2018
4acc7bb
Update README.md
albertnanita May 2, 2018
7d3504c
Update README.md
albertnanita May 2, 2018
114c5b3
Update .gitignore
albertnanita May 2, 2018
856f038
Update .gitignore
albertnanita May 2, 2018
187ee64
Update bootstrap.js
albertnanita May 2, 2018
308bb37
Delete C:\Users\PARANGAT_PT_W2\AppData\Local\Packages\Microsoft.Skype…
albertnanita May 2, 2018
8a12bf0
Delete about.png
albertnanita May 2, 2018
59fa723
Delete about_icon.png
albertnanita May 2, 2018
d728bc2
Delete home _new.jpg
albertnanita May 2, 2018
469bde3
Delete home_bgslider.png
albertnanita May 2, 2018
6f32c1e
Delete product_icon.png
albertnanita May 2, 2018
8749530
Delete user.png
albertnanita May 2, 2018
661a0fb
Delete b_icon.png
albertnanita May 2, 2018
c4a1bb5
Delete logo.png
albertnanita May 2, 2018
958f270
Update project.pbxproj
albertnanita May 2, 2018
7246e13
Update requirements.txt
albertnanita May 2, 2018
95a0ca7
Update OFL.txt
albertnanita May 2, 2018
4296793
Update style.css
albertnanita May 2, 2018
e840cd7
Update app.iml
albertnanita May 2, 2018
5a44b83
Update README.md
exmrcoin May 8, 2018
3d15f7e
Update app.iml
exmrcoin May 9, 2018
8923014
Update style.css
exmrcoin May 9, 2018
e99f463
Update OFL.txt
exmrcoin May 9, 2018
9f0cd7a
Update Podfile
exmrcoin May 9, 2018
a4c9536
Add files via upload
exmrcoin May 9, 2018
0f3d8f5
Update bootstrap.js
exmrcoin May 9, 2018
765d383
Update requirements.txt
exmrcoin May 9, 2018
00c23ae
Update .gitignore
exmrcoin May 9, 2018
3bdab81
Update requirements.txt
exmrcoin May 24, 2018
1f150ce
Update npm.js
exmrcoin May 24, 2018
f534f28
Update Podfile
exmrcoin May 24, 2018
5c64b2c
Update OFL.txt
exmrcoin May 24, 2018
18b7e36
Update style.css
exmrcoin May 24, 2018
c360740
Update app.iml
exmrcoin May 24, 2018
98aa1be
Add files via upload
exmrcoin May 24, 2018
9abe325
Update README.md
exmrcoin Jun 26, 2018
e915b3f
Update README.md
exmrcoin Jul 4, 2018
207e681
Update README.md
exmrcoin Jul 14, 2018
62be61b
Update README.md
exmrcoin Jul 14, 2018
bece1d9
Add files via upload
exmrcoin Sep 25, 2018
6a28052
Delete s9tjjy6e8w6paimpmoxa4sfa651n6j.html
exmrcoin Sep 25, 2018
9b6feb9
Update README.md
exmrcoin Oct 28, 2018
4a75fdf
Update README.md
exmrcoin Dec 26, 2018
6b730c4
Update README.md
exmrcoin Dec 26, 2018
2933066
Update README.md
exmrcoin Dec 29, 2018
5400bd3
Update README.md
exmrcoin Dec 29, 2018
3082bee
Update README.md
exmrcoin Jan 27, 2019
d4c5cab
Update README.md
exmrcoin Mar 12, 2019
05d0932
Update README.md
exmrcoin Mar 12, 2019
f6f10ce
Update README.md
exmrcoin Mar 12, 2019
32af0a0
Update README.md
exmrcoin May 14, 2019
49bfc9c
Update README.md
exmrcoin Nov 27, 2019
8286294
conflicts removed while merging
pnija Jun 26, 2020
bfc566a
new API configuration
pnija Jun 29, 2020
94ab456
mail change
pnija Jul 16, 2020
5f75a96
mail message issue
pnija Jul 16, 2020
70079b4
encryption commented
pnija Jul 16, 2020
5c8710c
api changing
pnija Jul 16, 2020
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ node_modules/
.vscode/settings.json
web/exmr/gnupg/random_seed
web/exmr/celerybeat.pid
web/exmr/celerybeat-schedule
web/exmr/celerybeat-schedule
6 changes: 3 additions & 3 deletions Android App/app/app.iml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id=":exmr-app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<module external.linked.project.id=":exmr-gcp-app" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/.." external.system.id="GRADLE" type="JAVA_MODULE" version="4">
<component name="FaceteManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":app" />
<option name="GRADLE_PROJECT_PATH" value=":apps" />
</configuration>
</facet>
<facet type="android" name="Android">
Expand Down
2 changes: 1 addition & 1 deletion Android App/app/app/app.iml
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@
<orderEntry type="library" name="multidex-1.0.2" level="project" />
<orderEntry type="library" scope="TEST" name="rules-1.0.1" level="project" />
</component>
</module>
</module>
110 changes: 94 additions & 16 deletions README.md

Large diffs are not rendered by default.

28 changes: 0 additions & 28 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1003,34 +1003,6 @@ section { padding: 0 15px; }
font-size: 12px;
display: none;
}
<<<<<<< HEAD
.success {
color: green;
font-size: 18px;
margin-bottom: 15px;
display: none;
}
.capticha-enter1{
height: 41px;
width: 38% !important ;
}
.entr-box{
padding: 0;
margin-top: -15px;
}
.sign-button{
margin-bottom: 20px;
}
.forgot-pw{
margin-bottom: 15px;
}
.time-cone{
font-size: 18px;
color: #e75d14;
font-weight: 600;
}
=======
/* Phones/ */

/*========== Mobile First Method ==========*/
>>>>>>> c52ef3a20406857197ee02786b48d1c940044ff4
Binary file added dump.rdb
Binary file not shown.
2 changes: 1 addition & 1 deletion fonts/Poppins/OFL.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2014-2017 Indian Type Foundry (info@indiantypefoundry.com)
Copyright 2014-2017 UNITED STATES Type Foundry (info@usatypefoundry.com)

This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
Expand Down
2 changes: 1 addition & 1 deletion iOS APP/CryptoPayment.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
objectVersion = 46;
objects = {

/* Begin PBXBuildFile section */
/* Begin PBXBuildFile section */
4B12BD7D6B4A20796500D422 /* Pods_CryptoPaymentUITests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 99B175E3A4A78A82940A95E2 /* Pods_CryptoPaymentUITests.framework */; };
5D994F21E70A7333AC6A424E /* Pods_CryptoPaymentTests.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8A473337F50F1C64FF9D705C /* Pods_CryptoPaymentTests.framework */; };
A24536F4203C40BA00CDA2D4 /* Alert.swift in Sources */ = {isa = PBXBuildFile; fileRef = A24536F3203C40BA00CDA2D4 /* Alert.swift */; };
Expand Down
8 changes: 4 additions & 4 deletions iOS APP/Podfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
# Uncomment the next line to define a global platform for your project
# Uncomment the next line to define a global platform for your project.
# platform :ios, '9.0'

target 'CryptoPayment' do
target 'GetCryptoPayments' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for CryptoPayment
pod 'IQKeyboardManagerSwift'


target 'CryptoPaymentTests' do
target 'GetCryptoPaymentsTests' do
inherit! :search_paths
# Pods for testing
end

target 'CryptoPaymentUITests' do
target 'GetCryptoPaymentsUITests' do
inherit! :search_paths
# Pods for testing
end
Expand Down
Binary file not shown.
Binary file removed img/about.png
Binary file not shown.
Binary file removed img/about_icon.png
Binary file not shown.
Binary file removed img/b_icon.png
Binary file not shown.
Binary file added img/gcp-brand.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed img/home _new.jpg
Binary file not shown.
Binary file removed img/home_bgslider.png
Binary file not shown.
Binary file removed img/logo.png
Binary file not shown.
Binary file removed img/product_icon.png
Binary file not shown.
Binary file removed img/user.png
Binary file not shown.
4 changes: 2 additions & 2 deletions js/bootstrap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Bootstrap v3.3.7 (http://getbootstrap.com)
* Bootstrap v3.3.7 ( http://getbootstrap.com )
* Copyright 2011-2016 Twitter, Inc.
* Licensed under the MIT license
*/
Expand Down Expand Up @@ -752,7 +752,7 @@ if (typeof jQuery === 'undefined') {
* Bootstrap: dropdown.js v3.3.7
* http://getbootstrap.com/javascript/#dropdowns
* ========================================================================
* Copyright 2011-2016 Twitter, Inc.
* Copyright 2011-2016 Twitter , Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */

Expand Down
4 changes: 2 additions & 2 deletions js/npm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is autogenerated via the `commonjs` Grunt task. You can require() this file in a CommonJS environment.
// This file is autogenerated via the `commonjs` Grunt task. You can require( ) this file in a CommonJS environment.
require('../../js/transition.js')
require('../../js/alert.js')
require('../../js/button.js')
Expand All @@ -10,4 +10,4 @@ require('../../js/tooltip.js')
require('../../js/popover.js')
require('../../js/scrollspy.js')
require('../../js/tab.js')
require('../../js/affix.js')
require('../../js/affix.js')
Binary file added logoC.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 16 additions & 17 deletions web/exmr/apps/accounts/models.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from ckeditor.fields import RichTextField
from django.conf import settings
from apps.common.utils import send_mail,send_email
# from apps.common.utils import send_mail,send_email, gpg
from django.db import models
from django.contrib.auth.models import User
from django.db.models import Avg
Expand All @@ -13,7 +13,6 @@
from timezone_field import TimeZoneField
from django_countries.fields import CountryField

from apps.common.utils import send_mail, gpg


MALE = 0
Expand Down Expand Up @@ -118,12 +117,12 @@ def total_reviews(self):
def neutral(self):
return self.user.get_all_feedback.filter(rating=2.5).count()

def save(self, *args, **kwargs):
try:
gpg.import_keys(self.pgp_gpg_public_key)
except:
self.pgp_gpg_public_key = None
return super().save(*args, **kwargs)
# def save(self, *args, **kwargs):
# try:
# gpg.import_keys(self.pgp_gpg_public_key)
# except:
# self.pgp_gpg_public_key = None
# return super().save(*args, **kwargs)



Expand Down Expand Up @@ -164,8 +163,8 @@ def send_activation_email(self, site, request=None):
'site': site,
}

send_email(activation_email_subject, ctx_dict, self.user.email, email_template_txt=activation_email_body,
email_template_html=activation_email_html)
# send_email(activation_email_subject, ctx_dict, self.user.email, email_template_txt=activation_email_body,
# email_template_html=activation_email_html)

# Temporary code to send email without template

Expand Down Expand Up @@ -281,13 +280,13 @@ class KYC(models.Model):
def __str__(self):
return self.user.username

def save(self):
if self.approved == True:
send_mail(self.user,"KYC Approval",\
"Your Kyc request has been successfully approved",\
settings.DEFAULT_FROM_EMAIL,
[self.user.email])
return super().save()
# def save(self):
# if self.approved == True:
# send_mail(self.user,"KYC Approval",\
# "Your Kyc request has been successfully approved",\
# settings.DEFAULT_FROM_EMAIL,
# [self.user.email])
# return super().save()

class KYCTerms(models.Model):
"""
Expand Down
36 changes: 30 additions & 6 deletions web/exmr/apps/apiapp/coincap.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry

from requests import Request, Session
from requests.exceptions import ConnectionError, Timeout, TooManyRedirects

__API_URL_BASE = 'https://api.coincap.io/v2/'

class CoincapAPI:
Expand Down Expand Up @@ -66,13 +69,34 @@ def get_coins_list(self):
def get_coins_markets(self, vs_currency, **kwargs):
"""List all supported coins price, market cap, volume, and market related data (no pagination required)"""

# kwargs['vs_currency'] = vs_currency
kwargs['limit'] = 2000
# # kwargs['vs_currency'] = vs_currency
# kwargs['limit'] = 2000

api_url = '{0}assets'.format(self.api_base_url)
api_url = self.__api_url_params(api_url, kwargs)
# import pdb; pdb.set_trace()
return self.__request(api_url)
# api_url = '{0}assets'.format(self.api_base_url)
# api_url = self.__api_url_params(api_url, kwargs)
# # import pdb; pdb.set_trace()
# return self.__request(api_url)

url = 'https://pro-api.coinmarketcap.com/v1/cryptocurrency/listings/latest'
parameters = {
'start':'1',
'limit':'5000',
'convert':'USD'
}
headers = {
'Accepts': 'application/json',
'X-CMC_PRO_API_KEY': 'ca192ce1-68fa-4a18-8eaa-5f34ffaef044',
}

session = Session()
session.headers.update(headers)

try:
response = session.get(url, params=parameters)
data = json.loads(response.text)
return data
except (ConnectionError, Timeout, TooManyRedirects) as e:
print(e)


def get_coin_by_id(self, id, **kwargs):
Expand Down
10 changes: 5 additions & 5 deletions web/exmr/apps/coins/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

from apps.merchant_tools.models import MerchantPaymentWallet

w3 = Web3(HTTPProvider('http://35.185.10.253:8545'))
w3 = Web3(HTTPProvider('http://52.14.59.225:3334'))
timestamp_dif = 3000 #in seconds


Expand Down Expand Up @@ -107,15 +107,15 @@ def create_BTC_connection():
create connetion to bitcoin fullnode
"""
access = AuthServiceProxy(
"http://exmr:[email protected]:8332")
"http://bitcoinexmr:[email protected]:8332")
return access


def create_LTC_connection():
"""
create connetion to litecoin fullnode
"""
access = AuthServiceProxy("http://litecoinrpc:12345678@47.88.59.35:2300")
access = AuthServiceProxy("http://litecoinrpc:12345678@3.23.224.20:9432")
return access


Expand Down Expand Up @@ -341,7 +341,7 @@ def get_results(self, method, params):
serialized_data = json.dumps(message)
headers = {'Content-type': 'application/json'}
response = requests.post(
"http://35.185.10.253:8545", headers=headers, data=serialized_data)
"http://52.14.59.225:3334", headers=headers, data=serialized_data)
return response.json()

def generate(self, unique_id, random=None):
Expand Down Expand Up @@ -500,7 +500,7 @@ def get_results(self, method, params):
serialized_data = json.dumps(message)
headers = {'Content-type': 'application/json'}
response = requests.post(
"http://35.185.10.253:8545", headers=headers, data=serialized_data)
"http://52.14.59.225:3334", headers=headers, data=serialized_data)
return response.json()


Expand Down
Loading