-
Notifications
You must be signed in to change notification settings - Fork 36
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
Feature add program gas station #395
base: develop
Are you sure you want to change the base?
Conversation
evm-utils/evm-bridge/src/main.rs
Outdated
.ok_or(ParseEvmContractToPayerKeysError::InvalidFormat)?; | ||
let contract = Address::from_str(addr) | ||
.map_err(|_| ParseEvmContractToPayerKeysError::InvalidEvmContract)?; | ||
let payer = Pubkey::from_str(key1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gas_station ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
renamed payer to gas_station_payer, removed address/key names
evm-utils/evm-bridge/src/main.rs
Outdated
#[structopt(long = "gas-station")] | ||
gas_station_program_id: Option<Pubkey>, | ||
#[structopt(long = "redirect-to-proxy")] | ||
redirect_contracts_to_proxy: Option<Vec<EvmContractToPayerKeys>>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we use Vec without option?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed option
@@ -0,0 +1,53 @@ | |||
## Build and deploy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add example of evm contract, with method.
And write small script that anyone can use to test it out.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
to register payer account that will be paying for incoming evm transactions | ||
if they meet its filter conditions: | ||
|
||
``velas evm create-gas-station-payer -u <public rpc> -k <signer keypair> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make owner key optional, by default use signer keypair.
Add command to modify gas station params.
Maybe we should have a way to generate file from abi?
### Start bridge | ||
|
||
Run evm-bridge command with next additional options: | ||
``--gas-station <program id> --redirect-to-proxy <evm contract address>:<payer owner pubkey>:<payer storage pubkey>`` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why u need owner pubkey?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Owner is used as a seed for derived address of gas-station payer.
… readme accordingly, add script to deploy test gas-station, create payer and run bridge
d371712
to
d5cd1fe
Compare
No description provided.