For any smart contract in Stellar Registry, we want to make cross contract calls as easy, approximately, as:
pub fn thing_doer(env: Env) {
let dao = stellar_registry::import_contract!(env, our_dao);
dao.create_proposal(
...
);
}
Where our_dao is a possible name of a contract deployed on Stellar Registry. Let's suppose it's a Tansu DAO.
Tough things
When you build your contract, you would need to specify network, testnet or mainnet. The macro would need to make network calls to look up the contract in the appropriate registry.
For any smart contract in Stellar Registry, we want to make cross contract calls as easy, approximately, as:
Where
our_daois a possible name of a contract deployed on Stellar Registry. Let's suppose it's a Tansu DAO.Tough things
When you build your contract, you would need to specify network, testnet or mainnet. The macro would need to make network calls to look up the contract in the appropriate registry.