Skip to content

Scripts for deploy and link tokens on HyperEVM/HyperCore#519

Draft
olga24912 wants to merge 6 commits intomainfrom
hyper
Draft

Scripts for deploy and link tokens on HyperEVM/HyperCore#519
olga24912 wants to merge 6 commits intomainfrom
hyper

Conversation

@olga24912
Copy link
Contributor

No description provided.

@olga24912 olga24912 requested a review from kiseln January 27, 2026 21:34
@karim-en
Copy link
Collaborator

karim-en commented Feb 1, 2026

please fix lint erros

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")'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add make file for theses scripts and allow passing needed arguments over it

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the config file?

@karim-en karim-en marked this pull request as draft February 6, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants