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

Add L2 networks - basic #151

Merged
merged 48 commits into from Sep 30, 2021
Merged

Add L2 networks - basic #151

merged 48 commits into from Sep 30, 2021

Conversation

rahul-kothari
Copy link
Contributor

Note-
Still need to add styling and tests

What was wrong?

How was it fixed?

Cute Animal Picture

Cute animal picture

rahul-kothari and others added 30 commits June 17, 2021 15:48
add version range for eth-hash in setup.py
remove addresses.txt in gitignore
…y for multiple networks

Remove SAI and use DAI for L1
…t), validation, comments, mappings,

payments - rename TOKEN_RATES, fix bugs, reduce functionality
with such a great and generic helpers,
there is no need repeat the `payment_instructions` method
its only change was if it was using or not the chain_id
and used token address or not

which is all covered in the helpers already
…nitions

simplify token class definitions
add token based classes and refactor till payment options
Add optimism, kovan optimism, arbitrum, abitrum rinkeby
Reduce code duplication by moving network constants to their own
networks
Add dash between currency and network
Add networks and reduce network creation code duplication
@kvbik
Copy link
Collaborator

kvbik commented Sep 3, 2021

Cannot create issues in the original reporitory, so here you are:

The payemnt.Ethereum.is_allowed() can bite you pretty hard - it needs to be documented what are the all things you need to setup to make the plugin work:

  • upload list of eth addresses
  • create all the other admin configuration!!!

Ideally it should not fail 500 Internal Server Error when the configs are not in place. You should do at least something like json.loads(settings.get( 'VALUE', default='{}'))... one piece of inspiration is the pretix code itself https://github.com/pretix/pretix/blob/master/src/pretix/base/payment.py#L162

@rahul-kothari
Copy link
Contributor Author

@kvbik good idea - done!

kvbik and others added 9 commits September 5, 2021 09:56
also do not use angle brackets, since they are interpretted as html :)))
tiny fix for help text of the plugin settings
payment_pending_render

So when users open the payment pending render link from their emails, no
error happens since all data is pulled up for the order table.
So that servers can run without any stop.
@rahul-kothari
Copy link
Contributor Author

Amongst others we can close 3 issues:

#53
#7
#5

README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
pretix_eth/management/commands/confirm_refunds.py Outdated Show resolved Hide resolved
pretix_eth/network/helpers.py Outdated Show resolved Hide resolved
pretix_eth/network/helpers.py Outdated Show resolved Hide resolved
pretix_eth/network/helpers.py Outdated Show resolved Hide resolved
Update README to be non USD centric
Improve comments in management commands
Remove @chain_id in erc_681 urls for L1 mainnet
Remove input currency parameter for uniswap since it is unused
Copy link
Collaborator

@kvbik kvbik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, great work! 👍

@ligi ligi merged commit 19c2efc into efdevcon:master Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants