-
Notifications
You must be signed in to change notification settings - Fork 23
Inlining checkout & Single receiver mode #215
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
Open
mikulas-mrva
wants to merge
84
commits into
efdevcon:master
Choose a base branch
from
mikulas-mrva:inlining-checkout
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 62 commits
Commits
Show all changes
84 commits
Select commit
Hold shift + click to select a range
9236481
Adding web3modal as a build package for now, changing multiple receiv…
mikulas-mrva 5d62b24
removing wallet upload models and views, adding wallet connection js,…
mikulas-mrva 01a04f1
Added SignedMessage model, view and serializer to send payment detail…
mikulas-mrva b106f91
Finished the FE code outline, added Permissions to allow POST and GET…
mikulas-mrva dcdb640
Switching to the correect way of signing a message with Metamask
mikulas-mrva 7951816
Changing data signing to typed data
mikulas-mrva 40f9028
Fixing data signing
mikulas-mrva f11ad3b
Confirming payments, deleting unused permissions module
mikulas-mrva f6d1579
Improving user flow of the payment process, displaying a message when…
mikulas-mrva 6bf8d96
Missing migration
mikulas-mrva cba6705
Changing raw_message to text field to circumvent field length limitat…
mikulas-mrva c0bd7e0
Moving retry triggers from inline to js, adding transaction confirmat…
mikulas-mrva eefabbb
Handling user dialogue cancellations gracefully.
mikulas-mrva c958df3
Do not hide success message if the transaction was submitted successf…
mikulas-mrva 0f531d0
chain_id should be larger than uint8 to accomodate all chains
mikulas-mrva 1a6a8df
Fixing a typo, using signTypedData_v4 for signing
mikulas-mrva 3760617
Network name should not be uppercase in _RPC_URL
mikulas-mrva 24ad2d7
Extending chain id field
mikulas-mrva 7fc5597
Bug fixes
mikulas-mrva 5b125b6
Don't let the user pay for multiple order payments wwithin one order
mikulas-mrva 964eacc
Disabling refunds
mikulas-mrva 1e71c56
fixes:
mikulas-mrva e47ced1
Confirming ERC20 payments
mikulas-mrva 12cb449
Don't confirm payments based on blocks that are too young
mikulas-mrva ead478f
Display transaction hash on refresh, display transaction details if t…
mikulas-mrva ba270eb
Add ERC20 balance check to prevent most failing transactions to be su…
mikulas-mrva 39f197f
Automatically confirming payments, ignoring payments that didn't go t…
mikulas-mrva a4329ec
Preventing a payment to go through in case of insufficient balance er…
mikulas-mrva 3746b18
Only display "please sign a message dialogue" in case it's about to p…
mikulas-mrva a6cfe42
Only display "please confirm a transaction" right before a transactio…
mikulas-mrva 4e07d66
Optimizing "order_accepting_payments" criteria into a single db query
mikulas-mrva 0d5bc6a
Fixing AttributeError: Manager isn't accessible via SignedMessage ins…
mikulas-mrva 8117a5b
Using getReceipt in both ETH and DAI payment confirmation
mikulas-mrva 64e6048
Using getReceipt in both ETH and DAI payment confirmation
mikulas-mrva 58b1910
refactoring confirm_payments to use reeceieptsto check transaction st…
mikulas-mrva 6a551ed
Refactoring js, splitting into multiple files
mikulas-mrva a12f5fa
Refactoring js, splitting into multiple files, fixes
mikulas-mrva a81c8d4
Periodic payment status change check should be running even if user r…
mikulas-mrva d016a4a
bugfixes
mikulas-mrva 0d736ba
Deleting confirm_refunds.py management command as there are no refund…
mikulas-mrva 5bc664d
Adding an endpoint that can access the status of an Order without aut…
mikulas-mrva 14127b8
Updating Web3.js to a new version 1.7.5
mikulas-mrva 9ec84db
Updating Web3Modal to a hotfixed version branched out from latest ver…
mikulas-mrva 7bf5cc3
Adding *.infura.io to CSP
mikulas-mrva a3996a5
Fixing some CSP issues, adding signed message data to Order detail co…
mikulas-mrva 9d2d8d3
Updating CSP and fixing javascript issues that require a double click…
mikulas-mrva 9fdefbd
Handling missing providers gracefully, deleting a ton of debuggers;
mikulas-mrva e855d61
Bugfix: retrieving web3modal correctly
mikulas-mrva 0085c61
Bugfix: retrieving web3modal correctly
mikulas-mrva d44866d
bugfixes
mikulas-mrva 34c762b
bugfixes - two different kinds of provider
mikulas-mrva 9cd0d30
adding loggers to confirm_payment mgmt commands
mikulas-mrva a52d961
adding loggers to confirm_payment mgmt commands, log level changed to…
mikulas-mrva 847e251
Also checking for cancelled OrderPayments
mikulas-mrva e22c94e
ERC20ABIView should be public
mikulas-mrva acda5b8
Confirming DAI payments using the correct received address
mikulas-mrva e0eb0b3
Checking ERC20 contract address as well
mikulas-mrva 3761064
Changing `url` template tag to `eventurl event`
mikulas-mrva da3860a
Changing `url` template tag to `eventurl event`
mikulas-mrva b06f143
Views should be compatible with multidomain as well as signel event p…
mikulas-mrva 996d36d
Arbitrum DAI should have a checksum address
mikulas-mrva 0afc1f1
All DAI addresses should be checksum addresses
mikulas-mrva 6dedcf4
* code cleanup
mikulas-mrva cd57833
adding links to control.html list of payments
mikulas-mrva 382e944
Adding payment data to exports
mikulas-mrva 54c97b0
Fixing tests
mikulas-mrva e31a0a9
Linter complaints
mikulas-mrva d21ada1
Linter complaints
mikulas-mrva e5f1299
Removing Refunds from the exports logic, we don't support them anymore
mikulas-mrva f5060f4
Moving SAFETY_BLOCK_COUNT and PAYMENT_NOT_RECIEVED_RETRY_TIMEOUT valu…
mikulas-mrva 366a1ba
Added a json validator for TOKEN_RATES field
mikulas-mrva 49387f0
Removing an unused constant
mikulas-mrva 4999c6a
Fixing a template bug
mikulas-mrva 409c954
Rinkeby in Peace
mikulas-mrva 3495877
safety_block_count can be None
mikulas-mrva 9614138
Using Correct DAI contract
mikulas-mrva c7d9e2d
Adding Sepolia ETH to the config, not sure what the correct DAI contr…
mikulas-mrva 82e5820
Putting Rinkeby back in place for Exports, added a DISABLED flag to p…
mikulas-mrva d320c79
Adding Token Rate at time of order to ETH payment export
mikulas-mrva 8fe7659
Export token price in ether, not wei
mikulas-mrva 79ab76c
Trying to fix infinite pip backtracking and adding python 3.10, 3.11 …
mikulas-mrva aaeb1ff
Fixinf dependency conflicts for Py<3.8
mikulas-mrva 7fc5dcb
Temporarily disabling pip check
mikulas-mrva 9c8df85
Fixing tests, pinning web3 to a beta of v6 temporarily to resolve an …
mikulas-mrva File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Generated by Django 3.2.12 on 2022-05-29 23:32 | ||
|
|
||
| from django.db import migrations, models | ||
| import django.db.models.deletion | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('pretixbase', '0208_auto_20220214_1632'), | ||
| ('pretix_eth', '0001_initial'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.CreateModel( | ||
| name='SignedMessage', | ||
| fields=[ | ||
| ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False)), | ||
| ('signature', models.CharField(max_length=132)), | ||
| ('raw_message', models.CharField(max_length=256)), | ||
| ('sender_address', models.CharField(max_length=42)), | ||
| ('recipient_address', models.CharField(max_length=42)), | ||
| ('chain_id', models.SmallIntegerField()), | ||
| ('order_payment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='signed_messages', to='pretixbase.orderpayment')), | ||
| ], | ||
| ), | ||
| migrations.DeleteModel( | ||
| name='WalletAddress', | ||
| ), | ||
| ] |
18 changes: 18 additions & 0 deletions
18
pretix_eth/migrations/0003_signedmessage_transaction_hash.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Generated by Django 3.2.12 on 2022-07-03 14:50 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('pretix_eth', '0002_auto_20220529_2332'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AddField( | ||
| model_name='signedmessage', | ||
| name='transaction_hash', | ||
| field=models.CharField(max_length=66, null=True), | ||
| ), | ||
| ] |
18 changes: 18 additions & 0 deletions
18
pretix_eth/migrations/0004_alter_signedmessage_raw_message.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # Generated by Django 3.2.12 on 2022-07-08 20:08 | ||
|
|
||
| from django.db import migrations, models | ||
|
|
||
|
|
||
| class Migration(migrations.Migration): | ||
|
|
||
| dependencies = [ | ||
| ('pretix_eth', '0003_signedmessage_transaction_hash'), | ||
| ] | ||
|
|
||
| operations = [ | ||
| migrations.AlterField( | ||
| model_name='signedmessage', | ||
| name='raw_message', | ||
| field=models.TextField(), | ||
| ), | ||
| ] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.