terra-money / terra-cosmwasm Goto Github PK
View Code? Open in Web Editor NEWTerra bindings for CosmWasm
Terra bindings for CosmWasm
Describe the bug
Trying to call query_contract_info with a random address
To Reproduce
pub fn check_sm(deps: DepsMut, to: String){
let terra = TerraQuerier::new(&deps.querier);
let info = terra.query_contract_info("terra1lcknewrp749xylgv049tgthyjn43dgvcwxc9r6");
println!("{:#?}", info);
}
Context & versions
In test not in localterra or mainnet or testnet, cosmwasm_std = 0.16.2
For submessages terra-node use
return &types.MsgInstantiateContractResponse{
ContractAddress: contractAddr.String(),
Data: data,
}, nil
And each smart contract adds proto file and generated rust file for that structure. Maybe we can add it to terra-cosmwasm library?
For example in terraswap_factory
contract: proto and rust file. Same in terraswap_pair
contract: proto and rust file
I am working on my own smart contracts and to figure out where that structure comes from I should take a look into terra-core code. Not very userfriendly :) Also, copypasting this proto file to each smart contract is not the best idea too. So, I think we can add it to terra-cosmwasm library.
What do you think guys?
The readme shows an outdated version of the software that is incompatible with current cosmwasm Std
Current version is at 2.2 or something like that.
thanks
Problem definition
Currently, there is no way of getting the total issuance of native assets within a contract.
Feature specification
Add a new type of TerraRoute
and TerraQuery
should be added.
Please merge pull request #9 into main and tag the repository with a new version, so that the new crate version can also be put into the crates.io registry.
If the changes in the request does not comply to the quality standards of the maintainer then please provide information/tasks on how to improve the changeset. Assign them to the requester if necessary.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.