Skip to content

Utilitycoder/give-credit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Give Credit

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.

Getting Started

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install the target wasm32-unknown-unknown

rustup target add wasm32-unknown-unknown

Install the Soroban CLI

cargo install --locked --version 20.0.0-rc2 soroban-cli

Setup Soroban Testnet Environment

First, 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.sh

Fund the deployer account with testnet token:

 curl "https://friendbot.stellar.org/?addr=$(cat ./donation/.soroban/identity)"

How to deploy the contract on the soroban testnet

1. Build the NFT contract

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.sh

Build and deploy the donation contract

Go to donation

cd ./donation 

Build the contract. Run:

soroban contract build

Deploy the contract. Run:

./deploy.sh

Initialize the contract. Run:

./initialize.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors