From d132d231634d333ce04aaf42dd764e901ac41581 Mon Sep 17 00:00:00 2001 From: elshenak Date: Wed, 20 Nov 2024 00:35:26 -0500 Subject: [PATCH] chore: remove test file --- test.ts | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) delete mode 100644 test.ts diff --git a/test.ts b/test.ts deleted file mode 100644 index 987ab73c..00000000 --- a/test.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { EncodeObject } from "@cosmjs/proto-signing" -import { - NibiruTxClient, - NibiruQuerier, - Chain, - Testnet, - newRandomWallet, - newSignerFromMnemonic, - MsgCreateDenom, - MsgCreateDenomResponse, -} from "./src" - -const main = async () => { - const chain: Chain = Testnet() // Permanent testnet - - // ---------------- NibiruTxClient ---------------- - // let signer = await newRandomWallet() // Signer: randomly generated - const signer = await newSignerFromMnemonic( - "business wrong poverty again define paper recipe trade tissue left lawn result whale fiber farm version split network cereal swallow path finger payment risk" - ) // Signer: in-practice - const txClient = await NibiruTxClient.connectWithSigner(chain.endptTm, signer) - - const account = await signer.getAccounts() // from cosmos - const signerAddress = account[0].address - console.log(signerAddress) - - const tx = await txClient.nibiruExtensions.msg.tokenFactoryMsg.createDenom({ - sender: signerAddress, - subdenom: "urex", // replace with your subdenom - }) - console.log(tx) - - // const fee = "auto" // You can specify the fee if needed - - // const msgs: EncodeObject[] = [ - // { - // typeUrl: "/nibiru.tokenfactory.v1.MsgCreateDenom", - // value: MsgCreateDenom.fromPartial({ - // sender: signerAddress, - // subdenom: "urexx", // replace with your subdenom - // }), - // }, - // ] - - // const tx = await txClient.signAndBroadcast(signerAddress, msgs, fee) - - // console.log(tx) - - // const rtx = MsgCreateDenomResponse.decode(tx.msgResponses[0].value) - // console.log(rtx) -} - -main()