-
Notifications
You must be signed in to change notification settings - Fork 11
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
fea(cli): bridge fa deploy cli command #778
base: main
Are you sure you want to change the base?
Conversation
3fa7edc
to
708b929
Compare
708b929
to
a052ca1
Compare
"Pair {{}} ({}) ({}) {}", | ||
fa_token_object.to_micheline(), | ||
format_ticket_content(ticket_id, ticket_content)?, | ||
total_ticket_supply |
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.
does thistoatal_ticket_supply
have to do with the the total supply of the fa token?
maybe leave a comment that this ticket represents the number of tokens that can be bridged to L2?
@@ -427,6 +427,17 @@ impl JstzdServer { | |||
|
|||
Ok(jstzd) | |||
} | |||
|
|||
pub async fn get_config(&self) -> JstzdConfig { |
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 reuse this in run
&source.to_base58(), | ||
JSTZ_FA_BRIDGE, | ||
&bridge_storage, | ||
)?; |
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.
nit
add error message for bridge deployment failed but ticket suceeds
@@ -42,6 +42,8 @@ pub enum Command { | |||
#[arg(short, long, default_value = None)] | |||
network: Option<NetworkName>, | |||
}, | |||
/// Deploys an FA token bridge with minimal functionality. |
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.
nit:
i found it hard to understand the bridge mechanism at the start, could briefly mention in jstz, bridge consists of the birdge contract and the ticketer etc
Context
Convenience command to deploy an FA bridge given an L1 fa contract and Jstz token contract that implements the deposit endpoint.
Description
bridge fa-deploy
command and all the necessary contracts with itUnfortunately, test coverage is poor due to the disabled CI test
Manually testing the PR
Integration tests:
cargo test -p jstz_cli fa_deploy_test
Manual test