Allow cw20 tokens to come from testnet
mikedotexe opened this issue · 0 comments
Similar to how we've got the Juno mainnet RPC endpoint here:
b873e85#diff-84cc21cba563e383127fa07f1be91efe212854c08719961c4095fff4a9f262c0R19
^ Actually, we should probably be clear that this is the testnet endoint
we can also have the testnet RPC endpoint as a constant somewhere. That endpoint is:
https://rpc.uni.juno.deuslabs.fi
A Juno mainnet endpoint we can use is:
https://rpc-juno.nodes.guru
Acceptance criteria for this ticket to close is when we have both endpoints as constants and there's a UX interaction such that when a user enters their cw20 token, we first look for it on mainnet. If it isn't there (we've probably used a try/catch) we'll see if it's on testnet. If it is on testnet, we'll want to have a confirmation button for the user confirming this, and make sure there's a database flag indicating we're using testnet.