Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
dydxwill committed Oct 20, 2023
1 parent 2f91d12 commit 5db6888
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions v4-client-py/examples/transfer_example_deposit.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@


async def main() -> None:
network = Network.testnet()
network = Network.staging()
client = ValidatorClient(network.validator_config)
wallet = LocalWallet.from_mnemonic(DYDX_TEST_MNEMONIC, BECH32_PREFIX);
subaccount = Subaccount(wallet, 0)
try:
tx = client.post.deposit(
subaccount,
0,
5,
5_000_000,
)
print('**Deposit Tx**')
print(tx)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ async def main() -> None:
wallet = LocalWallet.from_mnemonic(DYDX_TEST_MNEMONIC, BECH32_PREFIX);
subaccount = Subaccount(wallet, 0)
try:
print(f"subaccount address: {subaccount.address}")
tx = client.post.transfer(
subaccount=subaccount,
recipient_address=subaccount.address,
Expand Down
4 changes: 2 additions & 2 deletions v4-client-py/v4_client_py/chain/aerial/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def fetch_dydx_testnet(cls) -> "NetworkConfig":
:return: Network configuration
"""
return NetworkConfig(
chain_id="dydx",
chain_id="dydx-testnet-4",
url="grpc+https://dydx-testnet-archive.allthatnode.com:9090",
fee_minimum_gas_price=2315275000000000,
fee_minimum_gas_price=4630550000000000,
fee_denomination="adv4tnt",
staking_denomination="dv4tnt",
faucet_url="http://faucet.v4testnet.dydx.exchange",
Expand Down
1 change: 0 additions & 1 deletion v4-client-py/v4_client_py/clients/modules/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def send_message(
'''

wallet = subaccount.wallet
# url = ('grpc+https://' if self.config.ssl_enabled else 'grpc+http://') + self.config.grpc_endpoint
network = NetworkConfig.fetch_dydx_testnet()
ledger = LedgerClient(network)
tx = Transaction()
Expand Down

0 comments on commit 5db6888

Please sign in to comment.