-
Notifications
You must be signed in to change notification settings - Fork 1
redact update #16
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
Merged
Merged
redact update #16
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a33b3f2
Update client config and add redact exclusion key
xlassix ea241b8
Fix spacing in 'redact_exclusion' assignment
xlassix 142c339
Bump version to 0.1.12 in package.json
xlassix 66f69a9
Remove symbol validation from request check
xlassix b6c4d02
Bump version and fix code style in server.ts
xlassix d785a2f
Add symbol validation for server actions
xlassix a32720b
Handle undefined symbol in currencyBalance assignment
xlassix 1c9e756
Fix spacing in currencyBalance assignment line
xlassix a32854f
format properly. update logs. ensure whitelistAll works with cli comm…
rsoury 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 hidden or 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,20 @@ | ||
| import CEXBroker from '../index'; | ||
| import CEXBroker from "../index"; | ||
|
|
||
| /** | ||
| * CLI Command wrapper to start the CEXBroker | ||
| */ | ||
| export async function startBrokerCommand(policyPath: string, port: number,whitelistIps: string[],url: string) { | ||
| const broker = new CEXBroker({}, policyPath, { port,whitelistIps,verityProverUrl: url }); | ||
| broker.loadEnvConfig(); | ||
| await broker.run(); | ||
| export async function startBrokerCommand( | ||
| policyPath: string, | ||
| port: number, | ||
| whitelistIps: string[], | ||
| verityProverUrl: string, | ||
| ) { | ||
| const broker = new CEXBroker({}, policyPath, { | ||
| port, | ||
| whitelistIps, | ||
| verityProverUrl, | ||
| useVerity: !!verityProverUrl, | ||
| }); | ||
| broker.loadEnvConfig(); | ||
| await broker.run(); | ||
| } |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Oddly here, the result of
fetchFreeBalanceis aBalancestruct.https://github.com/usherlabs/ccxt/blob/cde501ea4d784f2c2b4809c526135719af8ad0e7/js/src/base/Exchange.d.ts#L684
How does this resolve to an array of balances?
Can we add some explaination in comments for this?
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.
The balance struct is incorrect
Creating a test bench to show you what I mean
Uh oh!
There was an error while loading. Please reload this page.
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.
The referenced Github Issue (ccxt/ccxt#26327) appears to show that FetchBalance can return a mapping.
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.
approval need to correct this
usherlabs/ccxt#7
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.
This fix doesn't really solve the root cause of the types issue.
It just moves the
anydeeper into the tech stack (from CEX Broker to CCXT) — https://github.com/usherlabs/ccxt/pull/7/files#diff-217b1af2b2442a19286fc9dbdd67c6d6e3a71dd5efd78bb489d6fec0e15be25fR7430As detailed in comment, seems to be reported here: ccxt/ccxt#26327
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.
yes, that was corrected in usherlabs/ccxt#7