Give-credit is a soroban smart contract that allows you to retire carbon on stellar blockchain. The smart contract utilizes a host of other infrastructure to deliver a smooth user experience.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shrustup target add wasm32-unknown-unknowncargo install --locked --version 20.0.0-rc2 soroban-cliFirst, we need to configure the soroban cli, so that we can deploy the contract to the soroban testnet.
soroban config network add --global testnet \
--rpc-url https://soroban-testnet.stellar.org:443 \
--network-passphrase "Test SDF Network ; September 2015"Then, configure an identity for the contract deployer.
./generate-id.shFund the deployer account with testnet token:
curl "https://friendbot.stellar.org/?addr=$(cat ./donation/.soroban/identity)"Go to nft-contract
cd ./nft-contract Then run the build with make.
You will see that the Makefile build the nft contract, and output the contract .wasm to the Target folder
Deploy the NFT contract. Run:
./deploy.shGo to donation
cd ./donation Build the contract. Run:
soroban contract buildDeploy the contract. Run:
./deploy.shInitialize the contract. Run:
./initialize.sh