#🚀・dev-support

1 messages · Page 4 of 1

winged vector
zinc hamlet
#

yo team! do you know if during the 3 day qualification period where we have to maintain 0.25% of a given market for the OLP program, Do we get the points we earn during those 3 days or do we start earning on day 4? Thanks!

pearl hound
#

@topaz seal Could you check dm, please? 🙂

frosty kiln
#

do you have more context? of course you can have funds and send funds however you like from an SC

zinc hamlet
#

How are these last 2 days not eligible? They are both above 0.25% of the total maker vol ? Something doesn't make sense

zinc hamlet
#

Take a look at these 2 addresses and explain to me why one has the Maker Volume Cont of 17.22% and is estimated to get 33k INJ and the other has a Maker Volume Cont of 31% and will only get 600 INJ - literally less than 2% of the other one's rewards and twice the Maker Volume Cont..... can somebody explicitly show how these are calculated. And please don't just link me to the documents i've read them all twice. @half charm

zinc hamlet
#

I'm guessing that this is just a bug in the website code here still reflecting the previous 1% threshold vs the new 0.25% threshold right?

#

by the new rules all of these days should be elligible right?

half charm
half charm
half charm
zinc hamlet
#

i flagged it earlier but anyways glad ur gunna look into it 🙂

half charm
#

Thanks for letting us know

zinc hamlet
#

also I was originally told that the 0.25% threshold was for each eligible market individually. Why is this not the case? It would align incentives and reduce the amount of very very thinly traded pairs

#

I'm interested to understand the rationale as to why to qualify for the OLP program one needs to trade upwards of $150,000 per day just to hit that 0.25% benchmark, When many pairs are trading sub $10,000 total

half charm
zinc hamlet
half charm
# zinc hamlet also I was originally told that the 0.25% threshold was for each eligible market...

Splitting up qualification by markets would make it difficult for MMs to move from one market to another. They wouldn't be able to decide at a given time to start MMing for one market to earn rewards since they would have to go through a 3 day qualification process for that individual market, which would cause issues in the case where fast deployment of liquidity should be rewarded (e.g. in the case where a market experiences a sudden sustained increase in volume).

zinc hamlet
#

The above issue basically ensures that only giant players can participate and why there are fewer than 10 players earning in the program. The incentives are upside down and i'll explain why. It works great to provide sound thick liquidity for the highly traded pairs where there is competition, BUT these large players know that the barrior to entry is giant and therefore they can neglect thelower 75 % of the pairs, keeing spreads extremely wide and profitting massively off of them. They know they will also of course keep all the incentives for those markets too. Now if each market was channelled individually (0.25% benchmark again or whatever you want) then the smaller, thinner traded markets would be much more within reach to smaller users AND the rewards would be proportionally incentivizing for them and competition on this lower thinner traded markets would keep spreads as tight there as at the top.

zinc hamlet
half charm
zinc hamlet
#

this would benifit the community to and eliminate the dilemma of only have a couple large players needing to choose which market to deploy to and which markets to neglect

#

seems very opportunistic for them

#

and 150k for example just look at first 4 days of this epoch - the 31st of Oct for exmaple day 1 - 23.23% of volume is 17.5million

#

math says that total traded vol = 75.33 million

#

0.25% of that is $180,000

#

so I just rounded down to $150k a day

#

point of the matter is the OLP program isnt for the community at all and is infact the very reason why institutions get to choose which markets they want to provide liq to ----- a prime example is the past 2 weeks, many users on INJ i'm sure would've like to trade SOL without 4% spreads - but again incentives are off

#

just an observation, and as a community member I was told by a team member it was individually benchmarked at the 0.25% per market and it made sense, but then they later followed up and informed that its not the way it's currently set up.

#

Another alternative that would fix the problem would be to keep the holistic entire volume threashold but reduce it to 0.01-0.03% of the total volume. That would lower the rate to providing $5000- $30,000 per day - still alot so no jokers would be involved but it might bring the inclusion low enough to the sweet spot of allowing the smaller players to focus on the thinner traded markets and pick up the scraps that are currently being ignored arbitrarily by the 10 addresses currently deciding where to deploy their liquidity.

#

And i'm not trying to be critical, I actually love the rest of the program, the 3 days wait, the disactivatiom, the delayed distribution of rewards etc... all are well designed tokenomics/incentives, but this is just a glaring issue that is a realatively easy fix IMO to benifit all traders with tighter spreads, less slippage and allow more community memebrs to participate in the OLP itself 🙂

#

I'll stop ranting, but I'd love to hear your thoughts, also feel free to take it to DMs, i'm always open to discuss tokenomics/incentive structure with team that are proactively improving themselves and stretching the boundaries! @half charm Cheers from Canada!

half charm
#

The first day of the epoch coincidentally was one of the highest volume days we've seen on the exchange, so I don't think it's completely fair to use that as an example. If we exclude the very recent volume spikes, the threshold has historically been much lower than that. We also just lowered the threshold to 0.25% (based on community feedback like yours!), and we don't know if these volume spikes are transient or here to stay, so we can't make sudden changes before we see how exchange volume is trending (the new change has only been live for ~4 days).

The 0.25% threshold was actually meant to bring the threshold to ~$30,000 based on the prior epoch's data, but the timing of the change coincided with some large spikes in volume, which ended up negating much of the effect and bringing the qualification threshold temporarily higher.

Obviously we would love for exchange volume to pick up and stay elevated, and at that point I think it would be good to consider making further changes, including implementation of qualification on a per market basis. We might even consider just using a hard number instead of a fixed % so that qualification is not volume dependent, but again, we need to see how volume trends to avoid constantly making large changes to the program.

native maple
zinc hamlet
# half charm The first day of the epoch coincidentally was one of the highest volume days we'...

Well 30k seems more in the ball park and it should be like that or even lower. But the lowest volume day of the epoch still required a MIN of $80k to qualify and due to the way your 3 days of 0.25% works they would again have to trade on average more than 100k for the qualification days thus far..... so that is not cherrypicking and it still is more than 300% of your own claimed target of around 30k

#

just some food for thought. and you don't need to trust me. again look at the markets you've incentivized - many are untradeable 😦 market makers know the barrier is so high that they can keep spreads unusably wide and profit immensly at the cost of community. AND these 5-10 players choose which markets to neglect, as you said. Again, as an outsider looking in, the incentives are malaligned if the goal is to produce the best market product for commnitty and also incentivise communitty involvement in the OLP program. If the goal is to make 5-10 million$ + players richer, allowing them to choose which markets that are left without liquidity, then the incentives are fine.
This space moves so fast that there isn't really time to wait around once an error has been ididentified. Example is SOL from past 2 weeks. The volume you could have captured but didn't due to mal-aligned incentives is just one ramification of the current set-up not functioning to benefit users or injective protocol adoption, only benefiting the 5-10 already intrenched players.
People will fork and fix the problem, I think you should not delay in adjusting this. A month is a year in this space as we both know

half charm
#

Noted. Will discuss with the team to determine next steps. Are you personally looking to MM? If so would be good to hear how much capital you would be trading with. We would like to gather feedback from the community (esp small MMs) to see what threshold is appropriate

zinc hamlet
# half charm Noted. Will discuss with the team to determine next steps. Are you personally l...

Yup I'm looking to for sure, already doing it and opted out for T& E rewards, but will be going to another address and back to just normally T&E rewards if It remains that we need to trade this $100,000 per day - I have been making about 5-20k/day just started this epoch - because I knew I could provide that much and help out the bottom 75% of "eligible markets that are trading sub 100k / day. So i figured I could hope in and sure up those markets and get 10-80% of their maker vol and help tighten the spreads. The issue is that now I releaized i'm getting nothing for that maker volume so i might as well go back to earning T&E rewards.

To me it's a no brainer to go with a hybrid qualification system of 2-5% of any given individual market, OR 0.25% of total Volume of all elligible markets.

#

this would keep all the big players AND ensure that the smaller guys to infact have enough capital to provide a sizeable portion of the smaller thinner traded pairs

#

I provided between 5 - 100% of multiple small markets throughout the past 4 days, greatly increasing liquidity of those markets, but just yesterday realized that I will not be rewarded for providing in some cases all the maker vol for a particular market, just because my total vol isn't that 100k -180k required daily.

So the hybrid eligibility seems like the only sensible way to incentivize efficiently

zinc hamlet
#

also is this a bug? this is KAVA rewards and this person is getting the highest rewards of all and the next wallet has traded over 3 million and this dude traded 30k for 1 day then basically nothing.
Where is the backend code for this, does somebody want me to fix it?

#

seems like the OLP program has a few things that could be improved 🙂

quiet horizon
#

getting account index errors when i run any on-chain stuff in a for-loop
any way to get around this?

high hazel
#

if I use different subaccounts to market make on different markets, will my total volume contribution and VIP tier still be counted as a sum of all the subaccounts?

fast pagoda
kind flare
kind flare
fast pagoda
#

i suppose this is operated by the project too?

kind flare
fast pagoda
kind flare
#

As for DeFi Lama, they have been very uncooperative to update how Injective’s stats are being displayed on their dashboard 🤷🏻‍♂️

fast pagoda
kind flare
fast pagoda
kind flare
#

We are integrated in a lot of statistics tools like BigQuery, etc. You can make your own dashboard using this data.

#

Can you give me an example of other projects and some of their dashboard that they have for analytics?

fast pagoda
#

doesn't look like much but it has most of the important analytics related to the chain

#

and this isn't from the official team too

kind flare
#

There are tons of these analytics for Injective as well, and again to put an emphasis here - they are built by the community

fast pagoda
#

others?

kind flare
#

There are tons of analytics on this page. You can google for more similar dashboards built by the community

fast pagoda
#

hehe, if i would have gotten it by googling then why would i be here asking question bud?

kind flare
#

I’m giving you the information we have right now but it seems its not enough for you. I can’t invent something right now just to satisfy your question.

  1. Your point is to have analytics. I gave you an analytics dashboard.
  2. Your point is to have more than two months of data on the info page. I told you the reasoning why is it like that and our plans for the future.
  3. You send me a link from other chains and how the community built analytics dashboard. I’m telling you that our community has at their disposal the same tools and even more to build similar dashboard.
#

Am I missing something?

fast pagoda
# kind flare Am I missing something?

i was only questioning you based on your statement that there are 'tons of analytics pages' which you later edited, i would really appreciate if you could link this to someone who could help me to get resources

i did my research and couldn't find any good ones apart from the ones that i had shared you

i stress it again that you guys might doing well and having a good analytics page would really help your cause, i understand if you don't have the time to do it but this could show that the project is doing well and gain better traction

just sharing my 2 cents here

kind flare
fast pagoda
quiet horizon
kind flare
quiet horizon
#

yeah, i got a workaround. Thanks

high hazel
#

may I know why stream orderbook methods give me no output?

quiet horizon
#

could i get a float error on a usize?

quiet horizon
#

'out of gas in location: wasm contract; gasWanted: 600000, gasUsed: 1395789: out of gas'

quiet horizon
kind flare
#

nope

tall bronze
#

Transaction was not included in a block before timeout of 180000ms

lime mountain
tall bronze
#

Fixed adding ** simulateTx: true**

kind flare
hardy osprey
#

I have one question. How can I get all nft collection address?

#

or my all nft info?

topaz seal
#

Each NFT project manages its own contracts. You need to interact with the proper contracts to get your NFTs' info. You should check with each NFT project support team

hardy osprey
#

isn't there any API?

#

I want to gather all nft collection address of Injective chain.

#

verified nft collection.

topaz seal
#

No, there is not, because there is no native NFT support in Injective. The NFT logic is specific to each NFT project and their contracts

hardy osprey
#

I see... thanks

kind flare
zinc hamlet
#

guys, has there been anymore thought on adjusting the OLP program so that we don't need to trade 6+ figures a day?

#

trading volume has been still requiring $125,000 on average per day.And yet multiple markets are trading 0$per day but still have a 600 inj incentive, but the big guys DOn't care. These markets are untradable because there is no incentive for the 9 people who are in the OLP program

languid thorn
#

guys, wanted to check how i can get a code upload proposal pushed through in general?

primal terrace
topaz seal
#

The executed contract seems to have some incompatibility with the current testnet chain version
cc: @primal terrace

primal terrace
tardy ginkgo
#

can someone help? I need INJ testnet to try some projects, limited faucet and not enough gas fees 🙏

inj17y5utgdyjt2wvzrjtrse44894gy2gwqff9zsfu

wild frigateBOT
ocean path
#

Let's push injective upwards

zinc thunder
tall bronze
#

I need a break from code kekw

zinc hamlet
# half charm I think we might have a bug actually. Will check with the team and see what's wr...

Hans I just want to confirm that the bug of displaying eligibility vs ineligibility is just on the dashboard front end and that if you trade >0.25% of total then you are "eligible" for that day even though it will indicate "ineligible" if you provided between 0.25% to 0.99%, because the page is still running on the one 1% total vol minimum for eligibility?

Just want to confirm so hat after 3 days of 0.4% 0.85% and then lets say tomorrow is 0.3% then I will finally be eligible to earn with OLP?

Let me know,

Thanks!

heady rune
#

Wondering if anyone could basically build an SNX protocol on top of INJ

#

wud b massive

hallow heart
raw jacinth
#

Curious tho

heady rune
#

Go look it up

hallow heart
winged vector
#

the testnet public nodes seem down (https://testnet.status.injective.network/). It also says there is scheduled maintenence very soon. By and chance does that mean there's a rough time I can expect things to be operational again?

winged vector
#

is there any way to tell from the indexer streaming data if an order fails to place? I know I can watch the websocket feed for order fail events but is it possible from the indexer? (I'm using StreamOrdersHistory but it doesn't seem to indicate if an order fails)

topaz seal
#

No, the indexer orders stream will only notify about orders updates. If an order fails it means it was never part of the order book, thus the indexer never tracked it

#

You should check the events of the transaction that was suppossed to create the order

winged vector
#

Thanks. And the tendermint websocket feed is the only way to watch for events like this in a streaming way right?

topaz seal
#

yes, that is correct

winged vector
#

(sorry, small rant, but I also could be missing something) If feels weird that things would be built on gRPC which is like a high performance thing but then have to use json/b64 encoded values on a websocket to get real-time data. Isn't the point of grpc to not have to do that? I guess that's all just inherited from cosmos-sdk though?

topaz seal
#

The websocket streams is provided by tendermint, not Injective chain. But the idea is to not use the websocket connections. You can check the connectors in Hummingbot project InjectiveLabs implemented for Injective chain. Fully functional connectors including all trading actions and validations, without using the websockets at all (only using gRPC functionality)

winged vector
#

gotcha, I'll check out the hummingbot implementation

honest dove
#

@open whale You Can Find Dev From here

solar nacelle
#

Allright, new here. Was searching the docs a littlebit and see several interactions method, like Py, Go, TS and injectived. Currently we are building most of the backend in C# as we want to go in hyperspeed. Are there also current C# libraries available, or should i create them myself? (with an rest-api of injective or through the injectived maybe..)

#

as this could be a dumb question, excuse me, i am 100% new here 🙂

topaz seal
#

The only available libraries are the ones mentioned in the documentation: TS, Go and Python

winged vector
# solar nacelle Allright, new here. Was searching the docs a littlebit and see several interacti...

I've been working on my own JVM client on and off for a few months (due to my backend being on there). Are you familiar with grpc/protocol buffers? Have you used/developed on any cosmos chain before? The learning curve on these two things was probably what the bulk of the time spent for me is.

Getting the .proto files (you can find them in the injective go-sdk client repo) compiled to c# with will get you a lot of the way towards working with injective in it. The existing client libs do add more stuff though, and you will probably end up wanting to implement a good chunk of those features.

solar nacelle
quiet horizon
#

why would i be getting this error?
'block height: 50777211, timeout height: 50777047: tx timeout height'

winged vector
quiet horizon
#

How do I set that

winged vector
# quiet horizon How do I set that

Should be a setting in whatever client you're using. If you're not already setting it the client probably manages and if the timeout is happening something probably is stuck in the client and restarting might help, that's my guess

winged vector
#

If I send a post only order I get a injective.exchange.v1beta1.EventNewSpotOrders event, but if I send the same order non post-only there is no such event (and no error either or any injective event), even though it does seem to be placed in the web ui. Is that supposed to happen?

https://testnet.explorer.injective.network/transaction/F4E44CDB041C0CCE9DBBA08B81603A416739A7D8BC515EE10BDA9375B351A0D7/
https://testnet.explorer.injective.network/transaction/1C71BFD992BFA3AB7E18AB0406A80205871240A5FA9D51F4A36D6ED1FF85D1D8/
Edit: I think that this is normal. But are there any events emitted when an order is added to a book?

half charm
topaz seal
#

Hello dear traders, users and builders. We want to inform that the support for direct connection to the sentry nodes is going to be deprecated in the next coming chain upgrade. Our intention is to notify everyone in advance to give enough time for any user of the public Injective nodes to adapt their applications and infrastructure. The officially supported public node is going to be the already available load balanced lb node (both for mainnet and testnet).
The SDKs maintained by InjectiveLabs (TypeScript, Go and Python SDKs) will also be updated, removing the support for the creation of Network instances using any of the sentry nodes.
If you have any doubt or question feel free to contact us using any of the support channels. Our support team will be ready to guide with the transition if required.
You can always find useful tips and guides in the API documentation page https://api.injective.exchange/

hardy wraith
#

I wanna know where can i chat with devs, i wanna make a dapp on inj

hardy wraith
#

All i wanna know is:
Wallet connection button component in next js.
Not

#

in typescript

#

in javascript next js

hardy wraith
plucky quail
#

@hardy wraith You can convert ts to js to use sir, it's better to use ts so that we can support better

hardy wraith
#

I mean all i need to do is to connect user wallet if he clicks wallet connect btn, hahaha.
And I have spent 2 days on it. INJ is tooo difficult to build on

kind flare
#

I mean all i need to do is to connect user wallet if he clicks wallet connect btn, hahaha. And I have spent 2 days on it. INJ is tooo difficult to build on

That's not correct as well, we have one of the most comprehensive docs out there, including plug and play packages which are quite easy to install and use. We even have docs for configuring your React/Nuxt/Next to use our packages so you can start building.

tall bronze
#

BankMsg::Send { to_address: new_admin.address().clone(), amount: vec![Coin { denom: "factory/inj1mldpx3....", amount, }], };
why it says invalid coin?

willow cedar
#

I want to create a cw contract which will take query from a cw721 contract to look for ownership of a specific token to verify. Is it possible ? Also which documentary should I look for to find my question ?

hardy wraith
hardy wraith
kind flare
#

Yeah, so you just read the docs and you can find an example codebase on how to do that.

hardy wraith
kind flare
hardy wraith
winged vector
#

I notice there is a cid field in public orders (https://testnet.explorer.injective.network/transaction/94D0056D9ED67A31F67BEC894F9148551A8370EA1CEDE770243DFE8CA619FEE0/), but that field doesn't exist in any of the public protocolbuffer files ( https://github.com/InjectiveLabs/sdk-go/blob/9bfdd40fa39f18304f17f12c2d4f69140de6fb44/proto/injective/exchange/v1beta1/exchange.proto#L453-L469). Does the injective node software use a different version of the protocol buffers than those used in the go sdk? Is there any info about cids anywhere?

GitHub

Tools to work with the Injective Chain, Injective EVM and EIP712. - InjectiveLabs/sdk-go

topaz seal
weak frigate
#

@topaz seal you said sentry nodes are going to be deprecated, how about k8s node?

umbral linden
#

When I try to execute msg with funds, I get 'The coins are not valid' error message.
This is my execute message:

new MsgExecuteContract({
sender: SENDER_ADDRESS,
contract: CONTRACT_ADDRESS,
msg: {
execute_msg: {
address: address
}
},
funds: [
{
denom: "inj",
amount: "1000000000000000000"
}
]
});

topaz seal
umbral linden
tall bronze
#

Same issue with contract
BankMsg::Send
{
to_address: new_admin.address().clone(),
amount: vec![Coin {
denom: "inj".to_string(),
amount,
}],
};

topaz seal
umbral linden
#

our platform worked well at first, but this error comes out nowadays

kind flare
umbral linden
#

I just tried to use it, but invalid request error comes out

#

const msg = MsgExecuteContractCompat.fromJSON({
contractAddress,
sender: wallet.account.address,
exec: {
action: 'action',
msg: {
address: address,
}
},
funds: [
{
denom: INJ_DENOM,
amount: new BigNumberInBase(1).toWei().toFixed()
}
]
});

umbral linden
#

other execute messages without funds works well,

#

but if I try to send funds, then the tx failed with this error

#

it's not issue by must_pay in contract?

umbral linden
#

sorry, I have found the reason, it's my fault

heady lichen
#

can i run a node is it open to all or closed?

austere bobcat
austere bobcat
heady lichen
pearl hound
#

hey guys. I couldn't find this in the docs. Is there an endpoint that shows me how I could create a new account on Injective from scratch? For example, I want to start a new account on it using python, for example

weak frigate
#

how to use /cosmos/bank/v1beta1/denom_owners/ with tokenfactory tokens?

weak frigate
#

and how to use correctly cosmos/tx/v1beta1/txs because there is no diff between events=message.module='bank' and events=message.module='bank'&message.sender='inj13s0z7acxvmaengrd553mpfy0u79we0t2uc5v54'

nova hull
#

Hey! I am trying to send tx using WalletStrategy and MsgBroadcaster but getting errors

GET https://testnet.lcd.injective.network/cosmos/auth/v1beta1/accounts/ 400 (Bad Request)

Error: rpc error: code = InvalidArgument desc = Address cannot be empty: invalid request
    at ChainRestAuthApi.get (HttpRestClient.ts:59:40)
    at async retryHttpCall (BaseRestConsumer.ts:16:17)
    at async ChainRestAuthApi.fetchAccount (ChainRestAuthApi.ts:29:24)
    at async MsgBroadcaster.broadcastCosmos (MsgBroadcaster.ts:322:36)
    at async HTMLButtonElement.<anonymous> (main.js?t=1699785813645:119:7)

Here is the code

const { chainId } = getNetworkChainInfo(Network.Testnet);

const walletStrategy = new WalletStrategy({
  chainId,
  wallet: Wallet.Keplr
});

const msgBroadcaster = new MsgBroadcaster({
  network: Network.Testnet,
  walletStrategy,
  simulateTx: true,
});

await msgBroadcaster.broadcast({
  msgs: [
    MsgExecuteContract.fromJSON({
      contractAddress,
      sender: owner,
      msg: {
        create_proposal: {
          proposal
        }
      },
      funds: undefined
    })
  ]
});
umbral linden
open whale
#

please check your dm

willow cedar
#

I'm trying to build and deploy a smart contract to testnet using cosmwasm. I'm stuck at one place.

#

docker run --name="injective-core-staging"
-v=<directory_to_which_you_cloned_cw-template>/artifacts:/var/artifacts
--entrypoint=sh public.ecr.aws/l9h3g6c6/injective-core:staging
-c "tail -F anything"

#

it gave me this error : tail: can't open 'anything': No such file or directory

#

then when i tried to use this command : yes 12345678 | injectived tx wasm store artifacts/my_first_contract.wasm
--from=$(echo $INJ_ADDRESS)
--chain-id="injective-888"
--yes --fees=1000000000000000inj --gas=2000000
--node=https://k8s.testnet.tm.injective.network:443

#

it gave me this error : Error: open my-first-contract/my_first_contract.wasm: no such file or directory

#

@primal terrace Can someone help me please ?

weak frigate
willow cedar
weak frigate
willow cedar
#

Still it doesn’t find it

#

I used every path that can be available

#

On error when i ctrl+click to that path i can go to my_first_contract.wasm 😂

#

But at injective-core-staging it doesn’t see it i guess

#

Any dev can help ?

#

@topaz seal

edgy meadow
#

What are you guys building on Injective? 😌

topaz seal
willow cedar
hardy wraith
#

Also if any developer role here i will love to get

kind geyser
willow cedar
#

How can i query a nft contract inside my cosmwasm contract to get some data inside my contract ? @primal terrace

hardy wraith
willow cedar
hardy wraith
kind flare
topaz seal
#

IMPORTANT NEWS:
We want to inform everyone that the new chain version is already available in testnet. In the upgraded version you will find two new elements that will improve significantly the orders management process:

  • Users can now assign their own "client order ID" (cid) to the orders. The cid is assigned when the order is created, and can be used to cancel orders instead of the order hash. This means that there is no need to calculate the order hash in advance or to do any subaccount nonce synchronization with the chain, to ensure that the hash calculation is using the same values that the chain uses when processing the transaction with the order creation message. Examples can be found in:
    -- https://api.injective.exchange/#spot-msgcreatespotlimitorder
    -- https://api.injective.exchange/#spot-msgcancelspotorder
    -- https://api.injective.exchange/#spot-msgbatchupdateorders
  • The chain now provides its own stream to notify about updates: the chain stream. This stream can be used to receive notifications events like: order book updates, order updates, trades, position updates, price changes. The notifications in these stream are delivered faster than the notifications provided by the exchange module, because they are emitted by the chain nodes directly. Please refer to the chain stream section of the API documentation for more details (https://api.injective.exchange/#chain-stream).

To connect to the new chain version in testnet you will have to use any of the following SDKs versions:

If you have any doubts or problems please contact us using the support channels.

willow cedar
#

Is there any storage capacity of a contract ?
Like i’ll query around ~95.000 data inside my contract
Also store them inside my contract.

#

@topaz seal @primal terrace

#

Sorry for tagging much 🙏

hallow heart
nova hull
#

I got an error trying to build a contract with injective-std = "0.1.4"

Error during static Wasm validation: Wasm contract requires unsupported import: "__wbindgen_placeholder__.__wbindgen_describe". Required imports: {"__wbindgen_externref_xform__.__wbindgen_externref_table_grow", "__wbindgen_externref_xform__.__wbindgen_externref_table_set_null", "__wbindgen_placeholder__.__wbindgen_describe", ... 16 more}. Available imports: ["env.abort", "env.db_read", "env.db_write", "env.db_remove", "env.addr_validate", "env.addr_canonicalize", "env.addr_humanize", "env.secp256k1_verify", "env.secp256k1_recover_pubkey", "env.ed25519_verify", "env.ed25519_batch_verify", "env.debug", "env.query_chain", "env.db_scan", "env.db_next"].
``

Another question - should I use cosmwasm libraries containing structures generated from proto files to interact with custom modules or can I write these structures manually?
lethal sand
#

How can I deploy the nft mint pad contract on the main net

#

I need to know all the formalities and procedures

hoary narwhal
#

is there an inj testnet i can use in metamask? and then inj faucet to fill it with funds?

hoary narwhal
#

I'm running helix locally and want to test new functionality, but I am unable to trade using testnet on metamask. Anyone did this? I need to trade using testnet on a local dex instance. I'm using metamask. The problem is that I don't find any faucet to use. i have some eth on sepolia network, but helix only accepts wETH.

willow cedar
#

My instantiation message is so big and it fails when i try to instantiate it. Says out of gas error. But when i increase the gas and fees, still same thing happens. Is it possible to instantiate my message in batches or what should i do ?

willow cedar
#

Ok i did it now 👍

snow dove
#

@frosty kiln I have a question regarding the events. Everytime I try fetching transaction details using fetchTxByHash, I get an empty events array. What is the best way to fetch tx events?

hallow moon
#

Is there any cosmwasm focused gaming SDK

any github links?

zinc hamlet
#

Guys, when are TIA LP rewards going to be claimable? was suppossed to be a couple hours ago wasn't it?

ionic oxide
zinc hamlet
#

is there anyway to see eligibility of new address and how it's doing? Some on my days are below 0.25% but they are still showing green on eligibility...... is this calculated as an average over past 3 days or what? Can you shed some light (Other than the docs already published as I've read all those and they don't answer what I'm asking) on how the eligibility is calculated? It's very difficult for a first epoch MM to monitor progress because their info isn't displayed in the "rewards" or the "Scores" tabs in the OLP program.
Here is a screenshot showing the green eligibility despite some days being below 0.25% of all markets, Is this a UI bug or ho are these figures calculated?
@topaz seal @half charm

lethal sand
#

Guys no reply for my query

nova hull
ionic oxide
zinc hamlet
topaz seal
topaz seal
zinc hamlet
#

@primal terrace any help on the OLP program?

#

@topaz seal maybe it's easier to reach Devs for questions on telegram? Do you guys have a TG that is active for help?

topaz seal
topaz seal
#

Do you have a dev question I missed? Is there anything pending response?

willow cedar
#

I’m having this error when i try to instantiate my contract.

bash /usr/bin/injectived: Argument list too long

Note : my INIT has ~16.000 data to be initialized at my contract. @primal terrace

#

How can i pass a big data inside my contract when i want to instantiate my contract ?

lethal sand
#

@primal terrace @topaz seal

#

Is there any way I can have answers to my questions

#

Or it’s just a waste of time here

topaz seal
#

Hello @lethal sand. It is not a waste of time to ask questions in this channel. InjectiveLabs dev team and also the devs in the community reply all questions as they can. Maybe not as fast as you are needing, but we do our best

primal terrace
primal terrace
# lethal sand <@830127690840801300> <@831364009877569538>

When your contract is ready to be deployed on mainnet you can either submit a governance proposal outlining what the project is about etc. or DM me with the details to help you out and upload for you. You can reference an example here: https://hub.injective.network/proposal/286

This is already outlined on our docs.

Injective Hub - Access Unlimited DeFi Markets

A unified interface for Injective staking, governance, insurance funds and wallets

willow cedar
primal terrace
willow cedar
winged vector
kind flare
#

the error is: client order id already exists

lethal sand
snow dove
open whale
#

actually we are doing smart contract and frontend can you tell me where i can details for porposal for these things @primal terrace

snow dove
snow dove
#

great, thanks!

open whale
#

Any injective dev available

snow dove
kind flare
#

Since you said you don't wait for block inclusion, its up to you to manage sequences (nonce)

acoustic kelp
#

everybody, we are building a futures dex on INJ inEVM. We are being stucked in getting price feed of tokens, in general we will have an oracle system to get prices. Are there any oracles provider on inEVM yet?

acoustic kelp
#

i want to run a chainlink node on inEVM (layer2 not INJ layer1), is it possible for now?

lethal sand
#

It’s been 2 days , me and my team are waiting for a positive response regarding on how we can deploy the contract on the main net.
Pls guide

lethal sand
#

@primal terrace

hoary narwhal
#

I have a local instance of the relayer(dex), I want to experiment on testnet with orders, how could I do that. For example I want to use my metamask wallet to transfer funds to the dex, but I can't seem to find any faucets for those assets that I can deposit. i have found only eth faucet, but you cant' deposit eth, only wETH

#

and even if I can deposit those funds from testnet, will I be able to play with them, to create orders, etc?

#

not sure if this is the right channel to ask, if not, maybe you could guide me to the correct one, thanks

topaz seal
primal terrace
#

DM'ed

#

@lethal sand

pearl hound
open whale
tall bronze
#

Is Erc20 = Cw20 regarding Denom:: on cosmeasm?

acoustic kelp
#

looks like we have to build on our own

hoary narwhal
solar nacelle
solar nacelle
#

And an extra question... Is the inj-wallet address always 1:1 connected to an original EVM address?

solar nacelle
topaz seal
#

@frosty kiln

faint cove
#

this happen when run the increment and reset function

open whale
#

I'm waiting forthe injective dev team member to reply related to project launch @ionic oxide

lethal sand
#

@primal terrace
Pls check dm
Sorry for so many pings 🙏🏻

hardy wraith
#

how can i make a btn on click which signs transaction of 0.1 inj on testnet on keplr wallet, if wallet is already connected?

hardy wraith
#

me waiting for reply be like:

#

and devs be like:

#

Hahaha (All i need is onclick function for transaction from use wallet)

topaz seal
topaz seal
#

One second @hardy wraith

hardy wraith
tall bronze
#

There's a way to receive or create peggy... coin on testnet?

hardy wraith
hardy wraith
hardy wraith
#

using keplr, if its already connected?

kind flare
tall bronze
#

There's a faucet or something to receive them?

topaz seal
#

In any case it seems like a Keplr related question more than an Injective related question. I would suggest checking its documentation too https://docs.keplr.app/api/

Keplr is a non-custodial blockchain wallets for webpages that allow users to interact with blockchain applications.

kind flare
tall bronze
kind flare
hardy wraith
mental river
#

If anyone can point in the right direction. Can i use solidity to build on injective?

Can't find info any where on docs

lime mountain
# mental river If anyone can point in the right direction. Can i use solidity to build on injec...

With inEVM, Ethereum developers can use Solidity to seamlessly deploy their applications into the Injective ecosystem.

Please check out https://docs.injective.network/develop/inEVM/

inEVM is the Injective Ethereum Virtual Machine side chain. In allows Ethereum developers to deploy Ethereum contracts using the same code, same familiar tooling and the same amazing developer experience.

mental river
lime mountain
#

yes, both inEVM and inSVM are on testnet

verbal matrix
#

Need help builders, This is Manas, we're trying to build something cool on INJ. I'm stuck in a problem for which I'm unable to figure out a solution directly. Here is my sendTransactionStargate function - I am using keplr wallet, cosmjs/stargate to sign and broadcast a message.

Code -

      await window.keplr.enable(chainId);

      // Get Keplr's offlineSigner for the specific chain
      const offlineSigner = window.keplr.getOfflineSigner(chainId);

      // Create a Stargate client using Keplr's signer
      const client = await SigningStargateClient.connectWithSigner(
        rpcEndpoint,
        offlineSigner
      );
      client.signAndBroadcast;
      // Get the sender's address from the offline signer
      const [firstAccount] = await offlineSigner.getAccounts();
      const senderAddress = firstAccount.address;
      console.log("client", senderAddress);
      // Define the message for sending tokens
      const msg = {
        typeUrl: "/cosmos.bank.v1beta1.MsgSend",
        value: {
          fromAddress: senderAddress,
          toAddress: recipientAddress,
          amount: [{ denom: "uinj", amount: `${amount}` }], // Replace 'INJ' with the token denomination
        },
      };

      // Define fee
      const fee = {
        amount: [{ denom: "uinj", amount: "500" }], // Replace 'INJ' with the fee denomination
        gas: "200000", // Adjust the gas limit according to your needs
      };
      // Broadcast the transaction
      const result = await client.signAndBroadcast(
        senderAddress,
        [msg],
        fee,
        memo
      );
  }```


I am getting this error

```client.js:1 Error in sendTransaction: Error: Unsupported type: '/injective.types.v1beta1.EthAccount'
    at SigningStargateClient.accountFromAny [as accountParser] ```


Anyone familiar with the issue? Please help us out here.

chainId = injective-888
topaz seal
#

Sounds like Stargate is not compatible with the EthAccount from Injective

heady rune
#

What are we building today

#

If any devs around here got some free time I’ve got something I been wanting to help curate on INJ

#

I’ve got money to spend too just hmu

willow cedar
verbal matrix
lethal sand
#

@primal terrace
Pls check dm
Thank you and sorry for ping 🙏🏻

dull plank
#

Anyone here available to help with my few inquiries about project launching on INJ please

dull plank
quiet horizon
#

how can i import another contract for use in my tests?

hardy wraith
#

Can i know how to trigger a transaction on keplr if user wallet is connected. Literally no one is helping here, code on docs is broken and dont work

primal terrace
primal terrace
hardy wraith
#

txHash variable is defined two times

#

and in next js it just give errors if we fix txRaw variable like:
bech32 not found
xyz thing undefined etc

#

Wallet connection code is working correct

primal terrace
hardy wraith
#

So injective environment is set

#

Errors are in transaction code, not in next js inj environment setup

kind flare
hardy wraith
kind flare
indigo furnace
#

@primal terrace, mr-t here from Ark Protocol. Need some infos of how uploading interchain contracts (ics721) on testnet and do some tests.

#

working together with Vlad (TFL) on this

quiet horizon
#

@indigo furnace look at injectived docs

#

NftMultiTest

#

and Nebula

quiet horizon
quiet horizon
quiet horizon
indigo furnace
# quiet horizon <@899249488340865045> look at injectived docs

Just trying to do a favor for TFL and Injective - so we could test transferring NFTs between these 2 chains. @primal terrace mentioned something about required WL for uploading contracts.
There are so many docs - would be happy getting all required infos without digging too much. So would be quite happy if someone could help us out - since we try to help u guys.
In the meanwhile I just get other chains interchain-ready, in case there's no prio for this - there's enough on my plate 😎

quiet horizon
#

@indigo furnace ^

primal terrace
#

Generally speaking testnet is permissionless so you can go ahead and upload. For mainnet, we can discuss together @indigo furnace

indigo furnace
topaz seal
# verbal matrix Thanks for the response <@831364009877569538> . I checked and the wallet is not ...

Hello @verbal matrix. My reply was based on a quick analysis of the code you shared and the error description. The error states that the instance of SigningStargateClient received and instance of EthAccount when executing accountFromAny but that type is not supported. Unfortunately there is not much more I can help with, since I have no experience with SigningStargateClient.
Maybe @kind flare or @willow notch can help, but to be honest this does not sound as an Injective related error.

hardy wraith
quiet horizon
umbral linden
#

When I try to execute message in my contract, follow error message comes out.
Error calling the VM: Error executing Wasm: Wasmer runtime error: RuntimeError: Error in guest/host communication: Region length too big.

hardy wraith
# quiet horizon What library are you using

Library? next js using, and using code from official doc in typescript, for transaction.
It actually have many errors, but main one are:

txRaw is defined two times
its dont make popup of keplr appear.

quiet horizon
#

Well duh, you’re redefining a variable

#

Share your code please

quiet horizon
#

have an error I’ve never seen:

Overflow: Cannot Sub with 0 and 1030000000000

&vec![Coin {denom: "inj".to_string(), amount: Uint128::from_str("1030000000000").expect("couldn't parse amount")}]
umbral linden
quiet horizon
umbral linden
#

How can I save over than 128k data as state value on cosmwasm contract?

quiet horizon
#

like with NFTs

hoary narwhal
#

is it possible to test out creating new orders on the dex using testnet on Keplr. cause I fail with that, I have INJ in the testnet, but can't swap or trade for example, the dex does not see my balance of that INJ

topaz seal
hoary narwhal
topaz seal
hoary narwhal
topaz seal
#

Then depending on what language you are using to implement it, use any of the available SDKs to interact with the chain from your dex and create the orders.

snow dove
topaz seal
#

Do you have the TX hash? If you get the transaction using the TX hash all the details will be there

snow dove
#

I have the hash (example: 0AAEEF9FB4BD3A7CF928FAFDF6504F224F7DDC21E60968F06A8AEB729BD5BF29), and I get events: []

#

Or should I be looking at some other attribute?

#

I use the fetchTxByHash function

topaz seal
#

Is that transaction from mainnet?

hoary narwhal
snow dove
topaz seal
#

In mainnet the TX 0AAEEF9FB4BD3A7CF928FAFDF6504F224F7DDC21E60968F06A8AEB729BD5BF29 is a spot market sell order, in that case the tokens involved are the two tokens from the market: base and quote

snow dove
topaz seal
snow dove
#

These are not present in my response, but I can see them on exporer yeah. This is my response: ```{
id: '',
blockNumber: 51356748,
blockTimestamp: '2023-11-15 12:28:34.917 +0000 UTC',
hash: '0x0aaeef9fb4bd3a7cf928fafdf6504f224f7ddc21e60968f06a8aeb729bd5bf29',
code: 0,
info: '',
gasWanted: 400000,
gasUsed: 102621,
codespace: '',
data: Uint8Array(135),
gasFee: {
amounts: [ [Object] ],
gasLimit: 400000,
payer: 'inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp',
granter: ''
},
txType: 'injective',
signatures: [...
],
events: [],
messages: [
{
type: '/injective.exchange.v1beta1.MsgCreateSpotMarketOrder',
value: [Object]
}
]
}

topaz seal
#

This is what I see when I execute the GetTxByHash message using Python SDK:

s: "ok"
data {
  block_number: 51356748
  block_timestamp: "2023-11-15 12:28:34.917 +0000 UTC"
  hash: "0x0aaeef9fb4bd3a7cf928fafdf6504f224f7ddc21e60968f06a8aeb729bd5bf29"
  data: "\022\204\001\n</injective.exchange.v1beta1.MsgCreateSpotMarketOrderResponse\022D\nB0xa462fa4f35c1cfa86c01ce1bd40eff99790bb1533c824bc44f3bac21b174f561"
  gas_wanted: 400000
  gas_used: 102621
  gas_fee {
    amount {
      denom: "inj"
      amount: "280000000000000"
    }
    gas_limit: 400000
    payer: "inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp"
  }
  tx_type: "injective"
  messages: "..."
  signatures {...}
  tx_number: 329386892
  block_unix_timestamp: 1700051314917
  logs: "[{\"msg_index\":0,\"events\":[{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/injective.exchange.v1beta1.MsgCreateSpotMarketOrder\"},{\"key\":\"sender\",\"value\":\"inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp\"},{\"key\":\"module\",\"value\":\"exchange\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp\"},{\"key\":\"amount\",\"value\":\"2000000000000000inj\"}]},{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"inj14vnmw2wee3xtrsqfvpcqg35jg9v7j2vdpzx0kk\"},{\"key\":\"amount\",\"value\":\"2000000000000000inj\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"inj14vnmw2wee3xtrsqfvpcqg35jg9v7j2vdpzx0kk\"},{\"key\":\"sender\",\"value\":\"inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp\"},{\"key\":\"amount\",\"value\":\"2000000000000000inj\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"sender\",\"value\":\"inj16qvz55hc4hzyz7rlj7e8v0vaujnctx25s60rtp\"}]}]}]"
}
#

The events are ther ein the "logs" field

#

Which SDK are you using?

snow dove
#

Ok im using the ts sdk's fetchTxByHash(txHash)

topaz seal
#

What version of the SDK are you using? @kind flare or @willow notch can help better with TS SDK related issues.

snow dove
#

1.14.3

#

Ok, so I wait for their response

oblique dew
#

Trying to create a wallet via script, i'm not able to recreate the same pub address generated by keplr. I'm using the following derivation path m/44'/60'/0'/0/0 with chain prefix inj but the address generated is completly different. Any suggestion?

topaz seal
#

Are you sure that is the correct derivation path that Keplr uses? I would suggest first checking that info. There were issues about the derivation path in the past https://gov.injective.network/discussion/6918-request-help-from-community-fundecosystem-fund-keplr-burned-my-inj

hoary narwhal
#

@topaz seal is there a way to create a test order through the UI of the cloned hex dex from git locally or you have to perform this only using SDKs?

oblique dew
topaz seal
quiet horizon
#

is there a good way to install injectived on mac? injectived from src and binary are both formatted wrong for zsh execution

#

@frosty kiln

#
zsh: exec format error: injectived
primal terrace
quiet horizon
#

i tried the binary a few months ago

primal terrace
# quiet horizon thats what the zsh format error comes from
❯ git clone git@github.com:OpenDeFiFoundation/injective-core.git
Cloning into 'injective-core'...
remote: Enumerating objects: 3230, done.
remote: Counting objects: 100% (3230/3230), done.
remote: Compressing objects: 100% (1634/1634), done.
remote: Total 3230 (delta 1667), reused 2975 (delta 1412), pack-reused 0
Receiving objects: 100% (3230/3230), 11.17 MiB | 1014.00 KiB/s, done.
Resolving deltas: 100% (1667/1667), done.
❯ cd injective-core
❯ make install
cd cmd/injectived/ && go install -tags netgo  -ldflags "-X github.com/InjectiveLabs/injective-core/version.AppVersion=v1.11.5 -X github.com/InjectiveLabs/injective-core/version.GitCommit=b094a25  -X github.com/InjectiveLabs/injective-core/version.BuildDate=20231120-1939 -X github.com/cosmos/cosmos-sdk/version.Version=v1.11.5 -X github.com/cosmos/cosmos-sdk/version.Name=injective -X github.com/cosmos/cosmos-sdk/version.AppName=injectived -X github.com/cosmos/cosmos-sdk/version.Commit=b094a25"
❯ injectived version
Version v1.11.5 (b094a25)
Compiled at 20231120-1939 using Go go1.21.1 (arm64)
#

Sounds like an issue on your end

quiet horizon
#

if i run it through bash or sh i get "cannot execute binary file"

#

@primal terrace is that on an intel mac?

primal terrace
quiet horizon
#

weird, im running m1 as well

frosty kiln
#
export GOPATH=$HOME/go
export PATH=$PATH:$(go env GOPATH)/bin
export GOPRIVATE=github.com/InjectiveLabs/injective-core

not sure if it's required but this is inside my ~/.zshrc

#

also

alias e2i="injectived q exchange inj-address-from-eth-address"
alias i2e="injectived q exchange eth-address-from-inj-address"

btw. a useful little shortcut for converting ETH<>INJ addresses

snow dove
winged vector
zinc thunder
#

Has the hackathon deadline extended?

snow dove
quiet horizon
topaz seal
kind flare
glacial tendon
#

Is it possible to freeze NFTs (for example with staking system)

topaz seal
#

That would be a questions for NFT projects. Injective does not have any special functionality at chain level for NFTs

faint cove
#

i have simple react app, but i cant import from the @injectivelabs/network, here is the code and the error

topaz seal
#

@kind flare

glossy vine
#

Did you started from scratch? Vite or webpack?
Btw we have a react starter template for building on Injective

kind flare
glossy vine
#

can you try creating with our CLI we linked above?

sharp flint
nova hull
real abyss
#

thanks

steady marsh
#

Should see some cool repo

hallow heart
nova hull
hallow heart
north pewter
#

I'm with the Exodus Wallet and we're adding staking/restaking for INJ. Any chance I can connect w/the team to promote the launch?

ionic oxide
north pewter
ionic oxide
north pewter
ionic oxide
winged vector
#

Do the public mainnet nodes listed here https://docs.injective.network/develop/public-endpoints/ use the 1.49.0-rc1 protocol buffers? Basically I just need the cid field on OrderInfo that was added there. It worked on the testnet endpoints listed there but when I switched to the mainnet ones I'm getting errors implying the server isn't on the version with cids.

#

Are those changes from 1.49 not live on mainnet yet? I assumed they were since they were listed on the exchange api docs without any warnings that they're testnet only at this point. But now I'm realizing they probably aren't. Any ETA for those to hit mainnet?

burnt dock
#

Who will tell me more about inEVM

vagrant agate
# burnt dock Who will tell me more about inEVM

InEVM or the Internet of Everything Virtual Machine, is a concept that integrates the Internet of Everything (IoE) with virtual machine technology. It's designed to connect and manage diverse devices and systems in a virtual environment. For more detailed information, you might want to explore technical documentation or specific sources related to InEVM.

burnt dock
vagrant agate
burnt dock
ionic oxide
vagrant agate
ionic oxide
# burnt dock Who will tell me more about inEVM

You can read more on inEVM here: https://blog.injective.com/en/injective-unveils-inevm-a-groundbreaking-ethereum-rollup-for-hyperscaling-multi-vm-development/
Please for basic questions like this you can ask in #💬・general
This channel is for dev questions

Injective Blog

Injective today is introducing the launch of inEVM, the first-ever Ethereum Virtual Machine capable of achieving true composability across Cosmos and Solana. The inEVM network was developed in collaboration with Caldera, a L2 rollup infrastructure platform backed by Sequoia.

With inEVM, Ethereum developers gain unprecedented access to Injective...

dim stratus
plush oyster
dim stratus
plush oyster
#

There is no plan for that at the moment

faint cove
#

i have a problem with this code, when i run it, it cant fetch

noble stump
#

I'm trying to run the latest injectived image and it cannot be found.

docker run public.ecr.aws/l9h3g6c6/injective-core:v1.12.0 injectived version

Requested image not found.

noble stump
limpid lichen
#

From the TxRestApi class ethereumContract.ts:257 Error: signature verification failed; please verify account number (147xxx2) and chain ID (injective-888): unauthorized error I am signing with ETH.Goerli and Injective.Testnet I share my line of code briefly

#

getEip712TypedData({
msgs: [msg, msg1],
tx: {
accountNumber: accountDetails.accountNumber.toString(),
sequence: accountDetails.sequence.toString(),
timeoutHeight: timeoutHeight.toFixed(),
chainId: "injective-888",
},
ethereumChainId: EthereumChainId.Goerli,
});

#

I create transactions over Broadcast with my web application and test contract
in addition, I use the metamask wallet

kind flare
faint cove
tiny flume
#

Can you please help me?

topaz seal
primal terrace
oblique dew
tiny flume
#

@primal terrace

#

Please check DM

nova hull
oblique dew
#

cw-injective require a specific version of cosmwasm-std (1.2.7) that create confilct if i've have other dependencies like osmosis-std that require ^1.4.0

nova hull
#

It's possible to create different directories for different versions of contract - one for osmosis and another one for injective

oblique dew
#

But storing the code onchain give me this problem

#

Can i use stargate instead ok custom msg for msgs like mint/buron of token factory?

nova hull
tiny flume
#

I need to redeploy a contract to mainnet. Please help me.

zinc hamlet
#

Does anybody have a trading bot that interacts with Helix? I see every address that is earning OLP tokens if mainly running bots. Reloading bid and ask prices every 5-12 seconds or as the price of the underlying market moves.

Can somebody guide me as to the skeleton for how to build such a bot? I'm using Python atm and could really use some help! I'm not looking for a grid bot, the bots I see are mainly just creating "limit post only" buy and sell orders and then cancelling them and then re-creating them with a different price. and repeat.

Can anyone give me some example code to build one?

Thanks in advance!

oblique dew
topaz seal
oblique dew
nova hull
faint cove
#

i got amount from fetch, like 309995753948500000000, how to convert it to human readable amount

oblique dew
#

This is the Rust proto definitions for MsgMint from injective-std package

nova hull
#

Check create_mint_tokens_msg from injective_cosmwasm - it acceps 3 parameters

oblique dew
# nova hull Check create_mint_tokens_msg from injective_cosmwasm - it acceps 3 parameters

Yes but this use CustomMsg that forced me to set the type of CustomMsg (and then also the Response) across the whole e project or I can’t use cw-multi-test anymore because some contracts have Empty CustomMsg type (not interacting with any custom modules). App from cw-multi-test want that all contracts have the same CustomMsg type. Using stargate msg instead allow me to keep the CustomMsg type as Empty

topaz seal
gentle cliff
#

Is there a historical endpoint or do we need to snap daily

#

(also aggregate volumes rather than specific markets)

topaz seal
gentle cliff
topaz seal
#

The historical queries work for any endpoint. In the API documentation the example is done using the orderbook request, but it does not mean it is the only endpoint for which the historical queries apply.

#

there is no specifica endpoint for volumes. What you could do is retrieve the trades for a market and aggregate the information

faint cove
oblique dew
#

@nova hull anyway i'm not able to fix this problem while store on testnet contract that use injective-std = "0.1.4"

Error calling the VM: Error during static Wasm validation: Wasm contract requires unsupported import: \\\"__wbindgen_placeholder__.__wbindgen_describe\\\". Required imports: {\\\"__wbindgen_externref_xform__.__wbindgen_externref_table_grow\\\", \\\"__wbindgen_externref_xform__.__wbindgen_externref_table_set_null\\\", \\\"__wbindgen_placeholder__.__wbindgen_describe\\\", ... 16 more}. Available imports: [\\\"env.abort\\\", \\\"env.db_read\\\", \\\"env.db_write\\\", \\\"env.db_remove\\\", \\\"env.addr_validate\\\", \\\"env.addr_canonicalize\\\", \\\"env.addr_humanize\\\", \\\"env.secp256k1_verify\\\", \\\"env.secp256k1_recover_pubkey\\\", \\\"env.ed25519_verify\\\", \\\"env.ed25519_batch_verify\\\", \\\"env.debug\\\", \\\"env.query_chain\\\", \\\"env.db_scan\\\", \\\"env.db_next\\\"]
mental river
#

wondering if anyone could help. So i'm building a smart contract and i'm trying to deploy to testnet, i have been able to run cargo wasm and it runs fine. But compiling with docker run --rm -v "$(pwd)":/code \ ─╯ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ cosmwasm/rust-optimizer-arm64:0.12.4

keeps giving this errror error: no matching package named bnum found location searched: registry crates-io required by package cosmwasm-std v1.5.0

#

Does anyone know how I can solve this?

I'm fairly new to rust.

topaz seal
mental river
#

😪😪

zinc hamlet
topaz seal
barren tree
#

Is there an article on INEVM that isnt just high level?

barren tree
barren tree
#

Hmm i really cant find any resources that explain why INEVM is different from other EVMs. Also i cant find info on how this is native to inj, seems more like a roll up separate to injective. How does it interoperate?

zinc thunder
#

is there any spoliers about volan out there?

ionic oxide
zinc thunder
#

aight thanks seranium!

faint cove
#

any way to get SigningCosmwasmClient from WalletSrategy?

topaz seal
kind flare
#

if you wanna use Injective's sdk similarlly to cosmjs you can read more her ehttps://docs.ts.injective.network/readme/getting-started-cosmjs

faint cove
kind flare
faint cove
#

i have a code use cosmjs:
this.client.queryContractSmart(this.contractAddress, {
get_pair: {
pool_address: poolAddress
}
})
if i use TS SDK, what it will be?

#

sorry, i'm newbie so i need time to study and ask more questions

topaz seal
#

@faint cove please go, read the documentation, at least try a couple times yourself, and then come back. You have not even dedicated two minutes to the docs Bojan shared with you

faint cove
#

because i think that query is similar with excute, but WalletStrategy seem like can excute but cant query

kind flare
kind flare
faint cove
#

tks u
so my query become:
const result = await chainGrpcWasmApi.fetchSmartContractState({
contractAddress,
{
get_pair: {
pool_address: poolAddress
}
},
})

#

is it correct?

kind flare
#
const result = await chainGrpcWasmApi.fetchSmartContractState({
  contractAddress,
Buffer.from(JSON.stringify({
      get_pair: {
        pool_address: poolAddress
      }
    },)).toString("base64")
})
#

Query needs to be in base64

hallow heart
#

Looking to deploy a search engine on the blockchain any resources i can look into?

dull stratus
dull stratus
mental river
#

i am trying to compile my code

docker run --rm -v "$(pwd)":/code \ ─╯ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ cosmwasm/rust-optimizer-arm64:0.12.4

But i keep getting the below error: no matching package named bnum found
location searched: registry crates-io
required by package cosmwasm-std v1.5.0 `

i am using the current version of cosmwasm-std which is v1.5.0

Please how can i fix this?

topaz seal
#

@frosty kiln

faint cove
# kind flare ``` const result = await chainGrpcWasmApi.fetchSmartContractState({ contractAd...

my heros @kind flare , i have a some problem in execute with contract, with cosmjs, my msg when using cosmjs is :
client.execute(this.sender, this.contractAddress, {
astro: {
pair_address: pairAddress
}
}, fee, memo, _funds);
};
so when i use injective sdk ts, is this msg correct?
const msg = MsgExecuteContract.fromJSON({
contractAddress: this.contractAddress,
sender: this.sender,
exec: {
action: "astro",
msg: {
pairAddress: pairAddress
},
},
});

kind flare
untold nest
#

i am trying to compile my code

docker run --rm -v "$(pwd)":/code \ ─╯ --mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \ --mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \ cosmwasm/rust-optimizer-arm64:0.12.4

But i keep getting the below error: no matching package named bnum found
location searched: registry crates-io
required by package cosmwasm-std v1.5.0 `

i am using the current version of cosmwasm-std which is v1.5.0

Please how can i fix this?
@kind flare

untold nest
kind flare
#

I'll ping him

untold nest
cobalt hound
#

Much faster

mental river
mental river
frosty kiln
# untold nest Raised the same issue 4 days ago, no response.

yeah thats a mismatch between rust-optimizer version and cosmwasm-std. you can either downgrade cosmwasm-std, e.g. to 1.2.6 or upgrade rust optimizier to a newer version, see versions here https://github.com/CosmWasm/rust-optimizer#cosmwasm-optimizing-compiler

GitHub

Dockerfile and script to deterministically produce the smallest possible Wasm for your Rust contract - GitHub - CosmWasm/rust-optimizer: Dockerfile and script to deterministically produce the small...

verbal matrix
#

Team, We are trying to use MsgExecuteContractCompat to generate a message and then broadcast it using MsgBroadcasterWithPk. We aren't able to figure out how do we get the privateKey from the wallet? Couldn't find any specific code in the documentation too. Tried PrivateKey.generate() but it is something different we are assuming.

Please help us out here.

verbal matrix
#

yes

#

Trying to use this function MsgBroadcasterWithPk which takes privateKey as an arg

faint cove
kind flare
#

You need to use the MsgBroadcaster with WalletStrategy

mild siren
#

may someone has a link or tutorial on how to deploy a token for a project on injective?

mild siren
plush oyster
mild siren
#

ok just saw ...

quiet horizon
#

Any docs on instantiate2 usage in typescript?

zinc thunder
#

So we used NOIS to provide on chain randomness for our Raffle dAPP and we ended up with some unforseen situation where there is Issue with relayers moving the tx in the IBC. Anyone from Injteams (cc - @kind flare ) can help with this.
CC @tall bronze

sweet plank
#

If I want to deploy contract on mainnet, I must submit a code upload proposal first?

primal terrace
#

What endpoints are you using? Should be mainnetSentry, not mainnet.

#

This tends to happen due to instanbility but these endpoints (mainnetSentry) should work fine

primal terrace
#

cc @kind flare for anything on TS.

kind flare
#

Make a PR to the dev branch by updating the .gitbook folder content

kind flare
#

Its better to use toFixed() instead of toString()

#

The difference is that toString can convert large numbers to scientific notation

kind flare
#

Merged

mental river
fallen palm
#

Where can I access a well performing archival server. We are willing to pay for one if required. Thanks.

fallen palm
zinc thunder
primal terrace
zinc thunder
#

@tall bronze might be best explaining here

#

we also are facing some gas issue but he can expalin better

tall bronze
#

So they have Gas Usage CAP at 500k and our SC (not optimized) consumed 700k

snow dove
# primal terrace sure DM me

I keep getting the The transaction failed to be included within a block on time. when trying to send a transaction via sdk. When does this error usually arise?

primal terrace
open whale
#

sending errors now
injectived tx wasm store artifacts/contract.wasm --from=gov --chain-id=injective-1 --node=https://sentry.tm.injective.network/ --gas-prices=500000000inj --gas 20000000
in this key was not found and yes contract was in proper position
i chnege
the environment variable with proper path

snow dove
topaz seal
#

You can do that by checking if there is a trade associated to the order. You can also check the order status

snow dove
snow dove
topaz seal
#

when you request trades information, every entry has the hash of the order they are associated with

#

You can get the order status from the order history endpoint. You can find the endpoinst descriptions as well as examples on how to use them in the API documentation page

snow dove
snow dove
snow dove
#

is it calculated from data somehow?

topaz seal
brave valve
#

We have developed an interchain staking platform and want to connect it to INJ, but 500 Coins for a propozal is an unaffordable amount for us. Who can I contact for help?

#

And do we have a chance to get some money from the developer grant? We have ready documentation for all smart contracts

analog pond
#

Had a query, I keep facing this in testnet of Injective in Keplr wallet is it down?

topaz seal
#

The endpoint is not the correct on. @kind flare is that something we can change on our side or we should raise the issue to Keplr team?

kind flare
#

I'll reach out to their team to change the endpoints to the default ones

analog pond
cold sleet
#

!faucets

wild frigateBOT
cold sleet
#

idk if the testnet one is working

dusk juniper
empty edge
#

when i run this

docker run --rm -v "$(pwd)":/code
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry
cosmwasm/workspace-optimizer:0.12.6

i get this error

error[E0599]: no method named cast_mut found for raw pointer *const [u8; 8] in the current scope
--> /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/bnum-0.8.0/src/bint/endian.rs:85:47

analog pond
sharp star
topaz seal
ornate agate
#

I want to post a proposal to deploy my lending protocol and saw that there is restriction to deposit 500 INJ.

Is it going to return back to me later or obtained by governance as a pay for deploy to mainnet?

Never saw such approach and was curious.

Thanks for response in advance

plush oyster
obsidian quest
#

While installing injectived we are getting this error zsh: exec format error: injectived. What can be the issue here?

grave ingot
#

I'm trying to install Injective in my Mac Os but getting this error=>
macbook@MacBooks-MacBook-Pro-2 darwin-amd64 % cd ..
macbook@MacBooks-MacBook-Pro-2 Downloads % injectived version
dyld[13396]: Library not loaded: '@rpath/libwasmvm.dylib'
Referenced from: '/usr/local/bin/injectived'
Reason: tried: '/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/Users/runner/go/pkg/mod/github.com/!cosm!wasm/wasmvm@v1.2.3/internal/api/libwasmvm.dylib' (no such file), '/usr/local/lib/libwasmvm.dylib' (no such file), '/usr/lib/libwasmvm.dylib' (no such file)
zsh: abort injectived version

Can anyone help me?

thin karma
#

I only send 2 requests per 60seconds, any other endpoints I can use to retrieve contract txs or any solution please.

willow cedar
#

Why does this error occur ?

topaz seal
topaz seal
obsidian quest
#

in your first smart contract on injective there is line:
The testuser address should have 10000000000000000000 INJ balance.
But i ckecked my address has 0, What could be wrong here?

jade dragon
#

I need to setup a Private Node in order to speed up my Trading Bot on Injective.

I was looking at this document https://injective.notion.site/Injective-Exchange-Service-Setup-Guide-7e59980634d54991862300670583d46a#bfbf3cc38cc04234ad13b12e30d73fdb

Someone no if the Event Provider Service is crucial for the Node performance? I'd like to rely on the Injective public one since is very storage demand.

Injective on Notion

Install Your Components

lament lynx
#

does anyone use thirdweb in order to deploy contracts on injective chain ?
And if i want to deploy a nft collection on injective mainet how the mainet is called

arctic dirge
#

Yo builders
I have a tool idea we'll all need

So as an investor through INJ I will be able to buy exposure to multiple different asset classes through derivatives, right? I'd like to visualize my portfolio exposure, but also to be able to design my exposure. So if I have a capital in INJ worth $10k, I want exposure to bitcoin (everything denominated in USD) of $5k, ethereum $5k and INJ $5k and S&P500 $5k, the tool I'm proposing will tell me which derivatives I need to buy in what amount to achieve that. As a bonus it would visualize in what scenario I would get liquidated.

I think that a lot of users would dream of such tool that would help them manage their wealth using Injective exchange, but keep exposure to many different assets.

primal terrace
coarse flame
#

whats up guys -- getting a block height error when i try to launch token. any idea what that could be?

topaz seal
coarse flame
#

is it possible to update the image URL for a token after launching? @primal terrace

grave ingot
#

I'm trying to create an NFT minting smart contract for Injective. Could you please provide me with a reference or example to get started? Your guidance would be greatly appreciated.

restive lodge
#

If you want mod or cm for your NFT project DM, am available

primal terrace
coarse flame
lament lynx
grave ingot
sand atlas
#

How do I consult the code associated with a given wasm code ?
thx

desert garden
#

What is the best way to PERMENANTLY burn tokens. Such as LP tokens from Astor Dex?

primal terrace
desert garden
primal terrace
desert garden
primal terrace
#

Can u DM me?

desert garden
#

The token I minted is. correct. But when you create an LP on Astor it creates a CW20.

desert garden
sand atlas
#

Where does one find the list of all the contracts on the chain with their code ? I see a way to access the wasm but not the original code, nor their api

topaz seal
#

You will have to contact the contract developer to have access to the code

strong plover
sand atlas
#

I see so conteacts are black boxes ?

haughty shell
#

Does anyone know if the injective EVM is available yet or is it still just in testnet?

potent sinew
#

same issue

did anyone find a fix ?
Pinging cause i saw this was never answered
@plush oyster @willow notch

grave wasp
#

Running into the ''rpc error: code = NotFound desc = account [xxx] not found: key not found', error I've seen others mentioning here, but no solutions I can see other than check the balance. I'm confident the account is funded. Anyone have any insight into what's going on?

plush oyster
austere bobcat
#

When someone from the dev see this, he will reply

untold nest
#

anyone have testnet Inj?

send some to inj150g6j3skeduqp85hp687kkn3fnljzgtd4pajkf

faucet broken

austere bobcat
untold nest
austere bobcat
untold nest
#

the whole testnet is down?

austere bobcat
zinc thunder
#

Is there a way for us to have Chainlink oracle here on injective

#

Nois's killing us

#

Or at least guys help a bit with infrastructure

#

Relayers cant relay, tx not going through

stable thistle
#

guys where are new listed coins such as $ninja and $katana announced first ?

#

once they update the liquidity

sand atlas
#

Hello! Is there an equivalent of the evm 0x0 address or 0xdead ?

sand atlas
#

@austere bobcat I am planning to launch a coin and will need to lock liquidity can you help me ?

#

Or can you get me in touch with a dev ?

austere bobcat
sand atlas
#

@willow notch please help would be great on that 🙂

stable thistle
#

Hello how do I verify the time of the contract deployed , marketcap , liquidity ,etc for a coin found on injexplorer . for example this : https://explorer.injective.network/asset/?tokenType=tokenFactory&denom=factory/inj1lhr06p7k3rdgk0knw5hfsde3fj87g2aq4e9a52/BINJ

Injective Explorer - Visualize and search for data on the Injective Chain

The Injective Explorer is an analytics platform that enables anyone to search addresses, trades, tokens, transactions, and other activities on the Injective Chain.

past cloak
#

How can I install Injectived fully on mac?
"Note: you will only install injectived but not injective-exchange, peggo or libwasmvm.x86_64.so using this option."

#

Seems I managed to install injective core using the git clone command but I get "zsh: command not found: injectived" when prompting "injectived version"

sand atlas
#

Why is the community manager the only one to answer I'm so very sad.

austere bobcat
desert garden
#

You can use WSL on windows. Or I recommend just using one of the SDKs

remote fog
#

why I'm i getting this error

#

I want to create my Denom on INJ

#

please how can you help me?

#

been stucked for hours

remote fog
#

@desert garden

sand atlas
#

it s a javascript error here my man, you need to use the await in an async function otherwise it will refuse
Those are chatgpt-able questions

desert garden
remote fog
wraith pike
#

how we doing builders

#

any other NFT project founders kickin around?

topaz seal
topaz seal
# remote fog

The error message is telling you what the problem is: await is only valid in async functions (make the calling function an async function and that is it. If not sure what I am talking about, you will have to get familiarized with async processing)

sand atlas
topaz seal
topaz seal
#

no, you can use also public nodes

remote fog
# topaz seal The error message is telling you what the problem is: `await is only valid in as...

import { MsgCreateDenom, MsgBroadcasterWithPk, Network } from "@injectivelabs/sdk-ts";
import { BigNumberInBase } from "@injectivelabs/utils";

async function broadcastMsg() {
const injectiveAddress = "inj1...";
const privateKey = "0x...";
const subdenom = "inj-test";

const msg = MsgCreateDenom.fromJSON({
subdenom,
sender: injectiveAddress,
});

// Corrected instantiation of MsgBroadcasterWithPk
const txHash = await new MsgBroadcasterWithPk({
privateKey,
network: Network.Testnet,
}).broadcast({
msgs: [msg], // Corrected array notation for messages
});

console.log(txHash);
}

// Call the async function
broadcastMsg();

#

Would this work? @topaz seal

willow laurel
#

Heh, anyone got code to make a coin?

flat solar
#

heii, is Injective an evm compatible chain ? Can we deploy solidity contracts and to be safe that they would be compatible on injective?

lime mountain
#

Yes, injective is EVM compatible through cosmwasm

flat solar
clear solar
#

how can i query contract state ?

plucky quail
solemn topaz
austere bobcat
#

Wait untill someone from the devs be online on Discord

#

i can't help you here

vivid flint
#

I want to add metadata to my denom, but theres an error metadata's first denomination unit must be the one with base denom 'factory/inj1

solemn topaz
#

getting these errors on TS as well

#

installed the modules correctly (i think)

lime ruin
solemn topaz
#

Module '"protobufjs/minimal"' has no exported member '_m0'

lime ruin
solemn topaz
#

yea still getting the error, most of my ts are returning error idk why

#

used yarn add @injectivelabs/sdk-ts

lime ruin
solemn topaz
#

tried with npm at first, didnt work, wiped node modules
then tried with yarn
returned same errors

silk barn
#

anyone with experience in injective python api?

#

looking to get token supply of a specific token but unable to figure out

scarlet moss
#

Can somone help me pls ? have you an exemple to build a native token on $INJ ?

#

We don't need to build a smart contract ?

fringe valve
#

u means node url rpc mainnet?

#

so what new node url u used?

inland isle
#

What's wrong is here?@topaz seal

#

@plush oyster

ionic oxide
inland isle
#

When we create a wallet, in which location is this wallet saved?

median maple
#

is there no way to query the indexer API via URL? I've gone through the doc and i couldn't find it. It's always just python, go and ts. But never plain URL to endpoint. Kind of confusing

tall bronze
#

Here missing MsgSetDenomMetadata

inland isle
#

Error: post failed: Post "http ://localhost:26657": dial tcp 127.0.0.1:26657: connect: connection refused

#

any dev??

left snow
#

Anyone know how to query tx from a contract ?

toxic glacier
#

Why the requirement to install Injectived are so high ? Can it run in a simple mac M2 ?

rich bobcat
#

Anyone in here have mining experience that could help me out?

rich bobcat
#

I don't have any issues. I just have an extra GPU and CPU right now because I upgraded the ones in my gaming PC so I was trying to put them to use. I wouldn't mind making a mining PC with them or something. I just need some guidance on things like "best hardware recommendations/set-up, Best/profitable coins to mine, how to get the mining programs and everything set-up, etc". So really I need like a mentor/coach lol. I'm willing to compensate for time if I end up moving forward and someone helps me throughout the process.

wild perch
#

when you create a token, you need to mint them all for the supply to be available on the market ?

rich bobcat
#

I'm not necessarily talking specifally for $INJ just mining in general

potent sinew
#

Sorry for ping

plush oyster
#

Sorry i'm not good in technical, please wait until developer reply to you in this chat

potent sinew
#

This is my error, so any devs lmk

teal moth
#

I want to stake, but it's asking for a memo, do I just leave if blank?

plush oyster
teal moth
potent sinew
#

im getting a key not found error when trying to create my token

but when i check gov my key is found and it matches it

potent sinew
#

@plush oyster do i need a node to create a tokenfactory denom?

plush oyster
potent sinew
#

Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = key not found
Usage:
injectived tx tokenfactory create-denom [subdenom] [flags]

#

i definitely have the key and its definitely set as gov

wary fossil
#

any docs or repo on token transfer using js or python?

potent creek
#

what to do with this error?
i tried on any devices, by still receive this error
(i check my private-key and address, they are both correct)

buoyant valve
#

I am inscribing a token on the Injective chain in a short time. I need a reliable RPC endpoint but I don't see notable rpc providers like alchemy or infura selling them. How do I get a custom RPC please?

cerulean cipher
#

Can anyone help me with finding refrence for implementing connect wallet in dapp on injective

wary fossil
#

how much?

#

just send a few

#

hope that helps

#

np

potent sinew
#

after running a local node i been having keyring passphrase issue.
.
I tried using recover but keeps trynna have me enter a keyring passphrase

#

before i set up a local node i had done -> injectived keys add gov

and set up a password that was always working
now, i cant look at my keys list or anything after running the local node because any passphrase is incorrect even whenn trying to recover.
any help would be appreciated.

dry crown
#

How to make a smartcontact?

dense merlin
#

how to make nft collection on inj?

willow jolt
#

any seasoned Dev to collaborate. I have the arts collection ready, but just not very savvy in marketing and IT. I need a staking platform and gamification. hit me in DM if interested.

lyric glen
#

I wanna launch an NFT project on Injective, is there anyone here who could help me?

#

Is there a launchpad or something?

austere bobcat
junior bronze
austere bobcat
#

Testnet is undergoing maintenance now, we'll share more once we've done the upgrade

junior bronze
#

do you have any testnet inj you can share please

#

😊

wild perch
#

i was looking into the injective docs, and i'm a bit confused, If I want to create a token on Injective, can I use the Tokenfactory from the typescript SDK ? it is enough to manage the ticker, the amount, list the coin ?

gilded gull
#

any thoughts where i can get the get signer import for injectlabs?

solemn sorrel
#

Do I need a new token factory for every new token or is the 10 INJ Fee onetime and i can create as many as i want?

solemn sorrel
solemn sorrel
wild perch
wild perch
solemn sorrel
#

i dont know we will see if testnet is back

#

Unfortunately, the docs are still very, very poorly filled

topaz seal
topaz seal
# cerulean cipher Can anyone help me with finding refrence for implementing connect wallet in dapp...

Please check the docs. That question is already covered there https://docs.injective.network/develop/tools/injectivets/

injective-ts is a TypeScript monorepo that contains packages which can be used to interact with Injective from a Node.js or browser environments and which provide simple abstractions over core data structures, serialization, key management, and API request generation, etc. The packages can be found in the packages folder and each package is a np...

late aspen
#

Is Injective even developeable on windows? I tried gettin Injectived to work but to no avail, getting VM now

#

couldnt find the path from cmd even though i added the correct one to windows PATH

topaz seal
late aspen
#

aight, il use a VM thank you

#

@topaz seal is there a token template thats someone already made or i gotta go from the docs, might aswell ask it, to maybe potentially save some work :3

topaz seal
late aspen
#

got it

topaz seal
#

How did you install the package (or tried to install)?

#

What was the result of that?

#

I mean the result of the pip install command

#

Then you need to make sure the environment you installed the package in is the one active when you are running the scripts

#

pyinjective module is part of the injective-py package. If that was not the case, every user of the Python SDK should be experiencing the error

runic hornet
#

Is the testnet faucet working? Can anybody send me some token on testnet? Appreciated!
inj1zvkdzpnch8znwdlkth222jvx3wjtn52e4d5qt6

copper sequoia
#

failed to execute message; message index: 0: can not create code: unauthorized
what should i need to do to deploy contract on injective

#

@topaz seal

#

what is the code id for cw20

topaz seal
# copper sequoia failed to execute message; message index: 0: can not create code: unauthorized w...

This example illustrates the structure of a basic smart contract. The counter website allows you to interact with an instance of the smart contract on the Injective Testnet. If you have prior CosmWasm smart contract experience, feel free to skip this section.

copper sequoia
#

mainnet

topaz seal
copper sequoia
#

i think cw20 is existing

#

as code

#

how can i find its codeid

topaz seal
#

Do you know any other contract using the same code? You can check the code id when checking the contract address in Explorer

#

What injective-py version are you using? That global is only available in the release candidate SDK version used to interact with the current testnet

#

Are you intending to interact with Mainnet or Testnet?

#

Please us version 0.9.* for Mainnet (pip install injective-py==0.9.11)

#

Also, in that case you need to specify the gas amount in the traditional way (you can check the examples in the current master python SDK GitHub repo

#

Yes, that is correct

tender gull
#

can I fauct gas

topaz seal
pine galleon
#

is there cross chain example, is this possible yet ( cosmos <> sol for instance)?

wild perch
#

is the testnet live again ?

tender gull
#

are we have any docker image?

toxic glacier
#

Is the faucet testnet down ?

buoyant valve
wild perch
fair cobalt
#

I'm a junior manager of a vault on enzyme. Our vault has $1.5 million in AUM and we are very interested in investing in INJ in our index but the only thing preventing enzyme from offering INJ is the lack of an oracle pricefeed from chainlink. Anything on roadmap to integrate INJ with a chainlink oracle?

topaz seal
#

How are you creating the composer instance?

empty edge
#

can you help me?

#

this script is working on another pc

copper sequoia
#

what is the CODE_ID FOR cw20

empty edge
left briar
#

I am using Injective-TS and follow all the steps are stated on the documentation, but, I am receiving the following error whatever I try.

Error: rpc error: code = NotFound desc = account injxxxxxxxxxxxxxxxxxxxx not found: key not found at ChainRestAuthApi.<anonymous> (/node_modules/@injectivelabs/utils/src/classes/HttpRestClient.ts:59:40) at Generator.throw (<anonymous>) at rejected (/node_modules/@injectivelabs/utils/dist/cjs/classes/HttpRestClient.js:6:65) at processTicksAndRejections (node:internal/process/task_queues:95:5) { type: 'http-request', code: 404, originalMessage: 'rpc error: code = NotFound desc = account injxxxxxxxxxxxxxxxxxxxx not found: key not found', name: 'HttpRequestException', errorClass: 'HttpRequestException', context: 'cosmos/auth/v1beta1/accounts/injxxxxxxxxxxxxxxxxxxxx', ...

inland isle
#

I'm trying to launch a native token on inejctive and when I enter this code
injectived tx tokenfactory create-denom aall --from=gov --chain-id=injective-1 --node=https://tm.injective.network:443 --gas -prices=500000000inj --gas 1000000 ,
Error: rpc error: code = NotFound desc = rpc error: code = NotFound desc = account inj1xxxxxxxxxxxxxxxxxxxxxxxxxxx not found: key not found
I get the error

willow bison
inland isle
#

testnet works fine but mainnet..

left briar
knotty socket
#

trying to deploy my first factory token. I do have 0.32 INJ on the wallet.
However i am getting the error 'rpc error: code = NotFound desc = account <wallet address> not found: key not found'

any idea what it could be? the code is take from the documentation and looks alright

inland isle
#

that's what we're looking for

topaz seal
#

please double check if the account you are ussing to send the TX to create the token is really the one that has those 0.32 INJ

topaz seal
inland isle
knotty socket
inland isle
#

sent more just now and same error

left briar
inland isle
#

nice..

inland isle
#

so it worked thank you

normal moth
#

Anyone able to help me with the payload construction in Python to execute buy on a contract? I've been wrestling it for a few hours now and I really don't know what to do anymore.
This is how I construct and encode the payload:

sender_address = address.to_acc_bech32()
contract_address = "inj1panle4qyyg45vrwgjlsxv6hvffmgkfa38f0we7"
contract_msg = json.dumps({
    "swap": {
        "offer_asset": {
            "info": {
                "native_token": {
                    "denom": "inj"
                }
            },
            "amount": "100000000000000000", 
            "max_spread": "0.02",
            "belief_price": str(belief_price)
        }
    }
})
contract_msg_base64 = base64.b64encode(contract_msg.encode()).decode()
funds = [
    composer.Coin(
        amount="100000000000000000",  # 0.1 INJ in Wei
        denom="inj"
    )
]
msg = composer.MsgExecuteContract(
    sender=sender_address,
    contract=contract_address,
    msg=contract_msg_base64,
    funds=funds
)

And I keep getting this error message no matter what I do:
Simulation failed: <AioRpcError of RPC that terminated with:
status = StatusCode.UNKNOWN
details = "payload msg: invalid [!injective!labs/wasmd@v0.40.0-inj/x/wasm/types/tx.go:161] With gas wanted: '0' and gas used: '115000' "
debug_error_string = "UNKNOWN:Error received from peer ipv4:51.81.221.159:443 {created_time:"2023-12-18T20:19:04.3001+00:00", grpc_status:2, grpc_message:"payload msg: invalid [!injective!labs/wasmd@v0.40.0-inj/x/wasm/types/tx.go:161] With gas wanted: '0' and gas used: '115000' "}"

copper sequoia
#

metadata's first denomination unit must be the one with base denom 'factory/<INJ_ADDRESS>/<DENOM_NAME>, WHAT IS THAT MEAN

pine blade
normal moth
copper sequoia
#

originalMessage: 'block height: 54787826, timeout height: 54768386: tx timeout height', , what is that mean

brittle storm
#

We have a project and want to come to INJ ecosystem. Which is the best place to find all info that is related to token creation and launch? Maybe someone can guide us?

empty edge
tame fable
#

Lads Im currently following the "how to deploy on testnet guide". Step 1-2 seem fine but then once I attempt to deploy it gives me the following error, even though I followed the guide to the letter. Its not my first time deploying on different blockchains either so I know how to avoid basic command line errors etc

Could anyone please help me pinpoint the issue?

#

Would greatly appreciate any help

#

@primal terrace @soft dome @kind flare @winged maple @frosty kiln Perhaps

potent sinew
tame fable
#

Note here that Im running two tasks as requested in the tutorial, one running injectived in the background

#

And another one which I used to actually acess injectived

gilded gull
#

Any Import signer for cosmwasm?

tame fable
#

Or how should I do that, still within injectived?

#

Just following this guide, could u pls let me know if I overlooked some kind of pre-requisite to it?

toxic glacier
#

can someone send some inj in testnet please, faucet not working
inj17g5ad3xy25rz9je6wu85qye09xklppswh6p0eu

empty edge
kind flare
# empty edge

It literally says what you need to do, read the output of the TypeScript compilation.

tame fable
#

Please can anyone help me? Kinda working with a deadline here and idk what to say I followed the guide to the LETTER on two computers

#

I just made my keys why would it say that it cant find my keys...

#

This is what Im getting over at the docker terminal

#

Not really sure what the last message means

#

@kind flare Could you maybe provide some info here?

tame fable
#

Time is really of the essence here, I assumed that because all other steps went well that I was ready to deploy, even on testnet...

#

Please

#

Help would be much needed Im going crazy I checked that every line corresponds to the tutorial

#

Im not trying anything crazy, just literally deploying the standard regular normal contract on testnet

#

How does it fail right away

toxic glacier
kind flare
ripe sage
#

We're listening the tendermint unconfirmed transactions and decoding them using CosmosTxV1Beta1Tx.TxRaw.decode(unconfirmed[j], 'base64')
Then, what would be the best way to extract the value and match it with the right transaction type ?
Thanks

tame fable
tame fable
tame fable
quiet horizon
#

@kind flare , what causes this?

#

i know i have the right key

kind flare
#

send funds to the account, it's empty

quiet horizon
#

i know it isnt... im looking at it on the explorer

tame fable
#

The testnet one does seem to be down though

tame fable
#

However Im getting this error now, that transaction did fail

#

It says now that Im unauthroized to put the code up

kind flare
#

Mainnet contract depoloyments need to go throuhg governance

tame fable
#

Used in that tutorial

strong ginkgo
#

Guy hw una dey

tame fable
#

Why would that have to go through governance its literally in the official docs?

#

I dont get it

frosty kiln
#

@tame fable what are you trying to do? can you summarize the discussion for me

tame fable
#

Except I did it on mainnet now since I have no testnet funds

frosty kiln
tame fable
#

And now I managed to but it gives the following error "failed to execute message; message index: 0: can not create code: unauthorized"

tame fable
#

I have to submit some kind of proposal twice?

#

Once for code creation and once for instantiation?

frosty kiln
#

can you share the link to the docs? that sounds incorrect, maybe its wrong in the docs

tame fable
#

Here we go

#

Man I have to say its really complicated...

#

Do I need to first run the "submit a code upload proposal to injective mainnet"?

#

And then try to upload the code?

#

Because once again I only have compiled cw20_base, surely that has been verified by governance through and through?

frosty kiln
tame fable
#

How long does that verification take would u say?

frosty kiln
#

But I also don't recommend you upload to mainnet, sounds like you really should use testnet

#

a random governance proposal to upload some contract won't be approved by governance

tame fable
#

Man Im sorry but Im not getting the docs then