Conversation
Collaborator
|
please fix lint erros |
karim-en
requested changes
Feb 6, 2026
| main() | ||
|
|
||
| # curl -s https://api.hyperliquid-testnet.xyz/info -H "Content-Type: application/json" -d '{"type": "tokenDetails", "tokenId": "0x646586ef3576346a4fcc9548909c1cba"}' | jq | ||
| # curl -s https://api.hyperliquid-testnet.xyz/info -H "Content-Type: application/json" -d '{ "type": "spotMeta" }' | jq '.tokens[] | select(.name=="JHWL")' |
Collaborator
There was a problem hiding this comment.
This should be cleaned up
| task("deploy-token-proxy", "Deploy BridgeToken behind a UUPS proxy") | ||
| .addParam("name", "Token name") | ||
| .addParam("symbol", "Token symbol") | ||
| .addOptionalParam("decimals", "Token decimals", "18") |
Collaborator
There was a problem hiding this comment.
We have to add scripts for Hyperliquid token with system address.
Also the system address should be retrieved from the rpc in the script
| ) | ||
|
|
||
| DEFAULT_CONTRACT_ADDRESS = Web3.to_checksum_address( | ||
| "0x2E98e98aB34b42b14FeC9d431F7B051B232Ba133" # change this to your contract address if you are skipping deploying |
Collaborator
There was a problem hiding this comment.
Let's add make file for theses scripts and allow passing needed arguments over it
Collaborator
There was a problem hiding this comment.
BTW, they have rust sdk, so it was possible to add these scripts to our cli
https://github.com/hyperliquid-dex/hyperliquid-rust-sdk
Comment on lines
+111
to
+123
| # token = step1() | ||
| # token = 1562 | ||
| # step2(address, exchange, token) | ||
| # step3(exchange, token) | ||
| # spot = step4(exchange, token) | ||
| # print(spot) | ||
| # spot = 1436 | ||
| # step5(exchange, spot) | ||
|
|
||
| if __name__ == "__main__": | ||
| main() | ||
|
|
||
| # curl -s https://api.hyperliquid-testnet.xyz/info -H "Content-Type: application/json" -d '{"type":"spotDeployState","user":"0x36279BeA31b1CC48dd4454a2C7149f331eF3f3c3"}' | jq |
Collaborator
There was a problem hiding this comment.
This should be cleaned up
| from hyperliquid.utils import constants | ||
|
|
||
| def setup(base_url=None, skip_ws=False, perp_dexs=None): | ||
| config_path = os.path.join(os.path.dirname(__file__), "config.json") |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.