Skip to content

Commit

Permalink
chore: devnet snippets for donation feature
Browse files Browse the repository at this point in the history
Refs: #81
  • Loading branch information
bucurdavid committed Apr 23, 2024
1 parent 0c8e262 commit 2a0aadc
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions interaction/devnet.snippets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,42 @@ setAdministrator(){
--send || return
}


setDonationTreasuryAddress(){

# $1 = address

address="0x$(mxpy wallet bech32 --decode ${1})"

mxpy --verbose contract call ${ADDRESS} \
--recall-nonce \
--pem=${WALLET} \
--gas-limit=6000000 \
--function "setDonationTreasuryAddress" \
--arguments $address \
--proxy ${PROXY} \
--chain ${CHAIN_ID} \
--send || return

}


setMaxDonationPercentage(){

# $1 = max donation percentage value (1% -> 100 ; 100% -> 10000)

mxpy --verbose contract call ${ADDRESS} \
--recall-nonce \
--pem=${WALLET} \
--gas-limit=6000000 \
--function "setMaxDonationPercentage" \
--arguments ${1} \
--proxy ${PROXY} \
--chain ${CHAIN_ID} \
--send || return

}

mintTokenUsingEsdt(){
# $1 = amount of esdt to send
# $2 = name
Expand Down

0 comments on commit 2a0aadc

Please sign in to comment.