-
Notifications
You must be signed in to change notification settings - Fork 22
feat: swift order type enabled #131
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
Conversation
aa4d9e0 to
50ad9c2
Compare
9c8f574 to
d5e970b
Compare
d5e970b to
bc1f39d
Compare
jordy25519
left a comment
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.
code lgtm % couple nits
| .swift_node | ||
| .clone() | ||
| .unwrap_or("https://master.swift.drift.trade".to_string()) |
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: better to set this as the default value at the args level not here
| }; | ||
| let incoming_msg = IncomingSignedMessage { | ||
| taker_authority: self.authority().to_string(), | ||
| signature: general_purpose::STANDARD.encode(signature), |
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.
i think this'll base64 it already
| signature: general_purpose::STANDARD.encode(signature), | |
| signature: signature.to_string(), |
| stop_loss_order_params: None, // TODO: add stop loss order params | ||
| }; | ||
|
|
||
| let signed_order_type = SignedOrderType::Authority(order); |
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.
need a TODO to support delegate signed message type here
closes #123