This is a smart contract built with CosmWasm for the Kujira Cosmos appchain. The contract allows users to send an execute message called FundCommunityPool
which creates a stargate message that is compatible with the distribution module, removing the need to include the stargate depedancy within your own contracts.
These instructions will help you to deploy and interact with the smart contract on a local Kujira appchain.
- A Kujira node running locally or remotely
- Clone the repository
git clone https://github.com/CALC-FINANCE/community-pool-proxy.git
- Build the contract
cargo run-script optimize
- Upload the contract binary to the appchain
kujirad tx wasm store community-pool-proxy.wasm --from <YOUR_ACCOUNT> --gas auto --gas-adjustment 1.5 --fees 1250ukuji
- Execute the following command to instantiate the contract:
kujirad tx wasm instantiate <CODE_ID> <INIT_MSG> --from <YOUR_ACCOUNT> --gas auto --gas-adjustment 1.5 --fees 1250ukuji
- Fund the community pool
kujirad tx wasm execute <CONTRACT_ADDRESS> {"fund_community_pool":{}} --from <YOUR_ACCOUNT> --gas auto --gas-adjustment 1.5 --fees 1250ukuji
This is an open-source project, please feel free to open an issue or submit a pull request for any bug fixes or improvements.
- fluffydonkey - Initial work - fluffydonkey
This project is licensed under the MIT License - see the LICENSE.md file for details
- Cosmos community for the amazing work on the Cosmos SDK.
- CosmWasm team for the smart contract platform.
- Kujira team for the appchain.