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

Implement dApp for fee payer functionality. #386

Open
vldm opened this issue Oct 25, 2022 · 0 comments
Open

Implement dApp for fee payer functionality. #386

vldm opened this issue Oct 25, 2022 · 0 comments
Assignees

Comments

@vldm
Copy link
Collaborator

vldm commented Oct 25, 2022

In order to make gass-less tx easier, we should implement decentralized logic of "bridge startup".
For most cases we don't need to force dApp creators to setup it's own bridge, instead we can implement
"register-like" functionality on program level.

For shorts, let's call this program "gas-station"

Program should contain two kind of instructions:

  1. Register "fee" payer.
    In this instruction, caller provide an account that "gas-station" program will use later for commission withdrawal.

In this account we should store next data:

  1. Execute tx
    In execute tx, caller provide a "gas-station" account in order to withdraw commission.

It also provide raw transaction in "big" or "short" form.
After whitelist validation "gas-station" program send this transaction to evm_loader program, and execute it with fee_payer=native.
At the end of transaction, "gas-station" should also send small amount of VLXs to the "caller" in order to refund their native fee.

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

When branches are created from issues, their pull requests are automatically linked.

2 participants