-
Notifications
You must be signed in to change notification settings - Fork 19
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
P 1164 auto fund sign account when omni executor is running in #3231
Merged
BillyWooo
merged 12 commits into
dev
from
p-1164-auto-fund-sign-account-when-omni-executor-is-running-in
Jan 23, 2025
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f1e3d1c
rm placeholder file
BillyWooo d981465
keep bin empty folder and igore all rest
BillyWooo ae70979
SubstrateKeyStore will provide signer "Alice" in development mode, an…
BillyWooo afc3851
Merge remote-tracking branch 'origin/dev' into p-1164-auto-fund-sign-…
BillyWooo 07dee13
remove development feature; use keystore to store the pre-prepared keys
BillyWooo 10f20ab
rm redundant dependency
BillyWooo ead7f7d
fix clippy
BillyWooo 1810076
remove unnecessary line
BillyWooo 8996629
fix clippy
BillyWooo 4b8bebd
Merge remote-tracking branch 'origin/dev' into p-1164-auto-fund-sign-…
BillyWooo eea1e8f
Merge branch 'dev' into p-1164-auto-fund-sign-account-when-omni-execu…
BillyWooo 2c69e64
Update tee-worker/omni-executor/.gitignore
BillyWooo 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 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 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
Empty file.
This file was deleted.
Oops, something went wrong.
This file contains 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 |
---|---|---|
|
@@ -3,6 +3,8 @@ target/ | |
.idea/ | ||
**/*.bin | ||
|
||
storage_db | ||
|
||
cache | ||
omni-executor.manifest | ||
omni-executor.manifest.sgx | ||
|
This file contains 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,15 @@ | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
|
||
[formatting] | ||
array_auto_expand = false | ||
array_auto_collapse = false | ||
indent_string = " " | ||
inline_table_expand = false | ||
|
||
[[rule]] | ||
include = ["Cargo.toml", "**/Cargo.toml"] | ||
keys = ["dependencies", "target", "patch", "workspace", "workspace.dependencies", "workspace.package", "features"] | ||
|
||
[rule.formatting] | ||
reorder_keys = true | ||
array_auto_expand = true |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 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 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 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 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 |
---|---|---|
@@ -1,10 +1,49 @@ | ||
use clap::Parser; | ||
use clap::{Args, Parser, Subcommand}; | ||
|
||
#[derive(Parser)] | ||
#[command(version, about, long_about = None)] | ||
#[command(propagate_version = true)] | ||
pub struct Cli { | ||
#[command(subcommand)] | ||
pub cmd: Commands, | ||
} | ||
|
||
#[derive(Subcommand)] | ||
pub enum Commands { | ||
Run(RunArgs), | ||
GenKey(GenKeyArgs), | ||
} | ||
|
||
#[derive(Args)] | ||
pub struct RunArgs { | ||
pub parentchain_url: String, | ||
pub ethereum_url: String, | ||
pub solana_url: String, | ||
#[arg(short, long, default_value = "0", value_name = "start block to sync from parentchain")] | ||
pub start_block: u64, | ||
#[arg( | ||
short, | ||
long, | ||
default_value = "local/keystore/substrate_alice.bin", | ||
value_name = "keystore file path" | ||
)] | ||
pub keystore_path: String, | ||
#[arg( | ||
short, | ||
long, | ||
default_value = "local/log/parentchain_last_log.bin", | ||
value_name = "log file path" | ||
)] | ||
pub log_path: String, | ||
} | ||
|
||
#[derive(Args)] | ||
pub struct GenKeyArgs { | ||
#[arg( | ||
short, | ||
long, | ||
default_value = "local/keystore/substrate_alice.bin", | ||
value_name = "keystore file path" | ||
)] | ||
pub keystore_path: String, | ||
} |
This file contains 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 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,8 @@ | ||
This folder contains the dev keystore: signer key | ||
|
||
How is bin file generated: | ||
|
||
```bash | ||
# subkey inspect '//Alice' | ||
echo -n "e5be9a5092b81bca64be81d212e7f2f9eba183bb7a90954f7b76361f6edb5c0a" | xxd -r -p > substrate_alice.bin | ||
``` |
This file contains 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 @@ | ||
¨u¸ÜTúrÅÙ¢ý÷m«xFm¨JÜòe¼½%͹ |
This file contains 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
Oops, something went wrong.
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.
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.
What does
GenKey
do exactly? It seems we don't need this commandThere 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.
It's used for the first time execution to generate a signer account. Then user can fund that account. Then start over.