Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
f1bca99
ci fix attempt
lassejaco Jan 27, 2023
e502718
trigger build
lassejaco Jan 27, 2023
51ecb0b
lint errors
lassejaco Jan 27, 2023
47940d5
no 3.11
lassejaco Jan 27, 2023
c612652
lint again
lassejaco Jan 27, 2023
c405232
web3modal
lassejaco Feb 21, 2023
40c2c48
Add arbitrum and optimism to rpc. Add better communication around cha…
lassejaco Feb 21, 2023
9b43c5f
Clean up, zksync progress, csp issue
lassejaco Feb 23, 2023
ca92998
Use webpack to streamline JS env and allow for automatic cache busting
lassejaco Mar 6, 2023
fead308
Streamline and document web3modal dev setup
lassejaco Mar 9, 2023
cb3f3d8
Allow user to disconnect wallet + warn if SC wallet
lassejaco Mar 12, 2023
bb92392
Fix gitignore not pushing JS build files. WalletConnect project id no…
lassejaco Mar 16, 2023
1384e2b
lint error
lassejaco Mar 17, 2023
f1e6df3
django deprecation warning
lassejaco Mar 17, 2023
7195e20
Adjust test
lassejaco Mar 17, 2023
88b7005
Update packages and related changes
lassejaco Mar 18, 2023
aa158fe
Revert to version 1 and upgrade packages again
lassejaco Mar 18, 2023
1fe3720
Updated error messaging, adjust page title for wallets that use it to…
lassejaco Mar 29, 2023
72beaec
Better loading UX
lassejaco Mar 30, 2023
12fd67f
EIP1271 basic implementation
lassejaco May 15, 2023
f44c2cf
Lint fixes
lassejaco May 15, 2023
dd65e55
Bugfix
lassejaco May 15, 2023
0016607
Safe fix and some WIP on EIP721 - not polished, just pushing so we ca…
lassejaco May 25, 2023
1b7b55e
Safe integration and typed signatures
lassejaco Jun 6, 2023
df943d8
Lint errors
lassejaco Jun 6, 2023
878b279
Temp test fix
lassejaco Jun 6, 2023
814481e
Modify model correctly
lassejaco Jun 6, 2023
4b2dd76
Fix transaction hash display error
lassejaco Jun 7, 2023
7bd2a23
Fix confirm payment bug when tx not found
lassejaco Jun 7, 2023
4457f85
WalletConnect v2. Fix DAI issue. Adjust network config and tests
lassejaco Jun 20, 2023
1a6bf7a
Update packages. Fix safe confirm payment for DAI payments.
lassejaco Jun 27, 2023
700cb3f
Update packages
lassejaco Jun 28, 2023
4d8a8a1
django error?
lassejaco Jun 29, 2023
8954563
more django
lassejaco Jun 29, 2023
d63390b
sanity check
lassejaco Jun 29, 2023
50a822f
Unique true again
lassejaco Jun 29, 2023
9b47a41
hotfix: getting proper values from settings
kvbik Jun 30, 2023
bc7cc8b
Merge branch 'inlining-checkout' into walletconnect-2.0
kvbik Jun 30, 2023
e576fb0
Merge pull request #1 from kvbik/walletconnect-2.0
lassejaco Jul 4, 2023
2dbd42d
tests fix?
lassejaco Jul 4, 2023
0f775d7
Clean up static files
lassejaco Jul 16, 2023
691fc34
remove console log
lassejaco Jul 16, 2023
2ca3407
pip version and missing build files
lassejaco Jul 16, 2023
9aac0da
another pip verison
lassejaco Jul 16, 2023
d615e56
specific pip version
lassejaco Jul 18, 2023
eba3321
Attempt to lock tox dependencies
lassejaco Jul 24, 2023
efc66a3
syntax err
lassejaco Jul 24, 2023
59a5c4f
apps.py for plugin being properly discovered
kvbik Jul 26, 2023
0cebf9a
Merge pull request #2 from kvbik/walletconnect-2.0
lassejaco Jul 26, 2023
a4f738e
fix balance check error
lassejaco Jul 27, 2023
fae5af1
passing all the arguments to super is a must
kvbik Aug 1, 2023
736b4c4
Merge pull request #3 from kvbik/walletconnect-2.0
lassejaco Aug 8, 2023
b565215
package updates
lassejaco Aug 11, 2023
68cdbf3
split long lines
kvbik Sep 27, 2023
f87ac71
version increase in setup.py as well
kvbik Sep 27, 2023
20df2f5
placeholder for a fancy JS for custom form field
kvbik Sep 27, 2023
1df601e
Catch all failsafe on confirm payment step
lassejaco Sep 27, 2023
03265ab
lint
lassejaco Sep 27, 2023
51dcf41
Revert "package updates"
lassejaco Sep 27, 2023
e6c6b6b
create select box via javascript
kvbik Sep 29, 2023
697565b
Merge branch 'walletconnect-2.0' of https://github.com/lassejaco/pret…
kvbik Sep 29, 2023
954914a
default currency_type_field.choices introduced
kvbik Oct 2, 2023
d3af1bd
linter fixes
kvbik Oct 2, 2023
0823c90
currency/network selector frontend
lassejaco Oct 2, 2023
93541c3
clean up some leftover comments
lassejaco Oct 3, 2023
66434df
Merge branch 'walletconnect-2.0' of https://github.com/lassejaco/pret…
kvbik Oct 3, 2023
52adc57
Merge pull request #4 from kvbik/walletconnect-2.0
lassejaco Oct 3, 2023
b2702d9
polygon zkevm
lassejaco Oct 10, 2023
e0a6ffd
Dynamic price fetching (#5)
lassejaco Oct 23, 2023
2784f6d
less restrictive dependencies also upgrades (#6)
kvbik Oct 24, 2023
b84d83e
fix coingecko
lassejaco Oct 26, 2023
a21957a
Merge branch 'version-fix' into walletconnect-2.0
lassejaco Oct 26, 2023
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
46 changes: 23 additions & 23 deletions .github/workflows/tox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,35 +26,35 @@ jobs:
toxenv: py310-core
- python-version: "3.10"
toxenv: py310-integration
- python-version: "3.11"
toxenv: py311-core
- python-version: "3.11"
toxenv: py311-integration
# - python-version: "3.11"
# toxenv: py311-core
# - python-version: "3.11"
# toxenv: py311-integration

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v2
with:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-pip-

- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip wheel setuptools
pip install -e .[dev] --use-deprecated=legacy-resolver
- name: Install Dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
python -m pip install --upgrade pip==23.1.2 wheel==0.40.0 setuptools==68.0.0
pip install -e .[dev] --use-deprecated=legacy-resolver

# TODO enable again after the protobuf version conflict between pretix and web3.py is resolved
#- name: Pip Check
# run: pip check
# TODO enable again after the protobuf version conflict between pretix and web3.py is resolved
#- name: Pip Check
# run: pip check

- name: ${{ matrix.toxenv }}
run: tox
env:
TOXENV: ${{ matrix.toxenv }}
- name: ${{ matrix.toxenv }}
run: tox
env:
TOXENV: ${{ matrix.toxenv }}
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ data/
.vscode
/.idea

venv
venv

node_modules
.DS_Store
22 changes: 1 addition & 21 deletions pretix_eth/__init__.py
Original file line number Diff line number Diff line change
@@ -1,21 +1 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy


class PluginApp(AppConfig):
name = 'pretix_eth'
verbose_name = 'Pretix Ethereum Payment Provider'

class PretixPluginMeta:
name = ugettext_lazy('Pretix Ethereum Payment Provider')
author = 'Pretix Ethereum Payment Plugin Contributors'
category = 'PAYMENT'
description = ugettext_lazy('An ethereum payment provider plugin for pretix software')
visible = True
version = '2.0.6-dev'

def ready(self):
from . import signals # NOQA


default_app_config = 'pretix_eth.PluginApp'
__version__ = "3.0.0-dev"
20 changes: 20 additions & 0 deletions pretix_eth/apps.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _

from . import __version__


class EthApp(AppConfig):
name = 'pretix_eth'
verbose_name = 'Pretix Ethereum Payment Provider'

class PretixPluginMeta:
name = _('Pretix Ethereum Payment Provider')
author = 'Pretix Ethereum Payment Plugin Contributors'
category = 'PAYMENT'
description = _('An ethereum payment provider plugin for pretix software')
visible = True
version = __version__

def ready(self):
from . import signals # NOQA
3 changes: 2 additions & 1 deletion pretix_eth/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def payment_to_row(payment):
completion_date,
payment.state,
fiat_amount,
Web3.fromWei(int(token_amount), 'ether'),
Web3.from_wei(int(token_amount), 'ether'),
currency_type,
sender_address,
recipient_address,
Expand All @@ -74,6 +74,7 @@ def payment_to_row(payment):
token_address,
token_rate,
]

return row


Expand Down
2 changes: 1 addition & 1 deletion pretix_eth/forms.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import re

from django import forms
from django.utils.translation import ugettext_lazy as _
from django.utils.translation import gettext_lazy as _
from pretix.control.forms import ExtFileField


Expand Down
Loading