Skip to content

Commit

Permalink
chore: update snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
newbreedofgeek committed Apr 26, 2024
1 parent 4000f39 commit ce92255
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 15 deletions.
31 changes: 16 additions & 15 deletions interaction/devnet.snippets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,21 +125,6 @@ setTreasuryAddress(){
--send || return
}

setMaxDefaultQuantity(){

# $1 = max default quantity

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

setAdministrator(){
# $1 = administrator address

Expand Down Expand Up @@ -363,4 +348,20 @@ acceptOffer(){
--proxy ${PROXY} \
--chain ${CHAIN_ID} \
--send || return
}

# V2.0.0
setMaxDefaultQuantity(){

# $1 = max default quantity

mxpy --verbose contract call ${ADDRESS} \
--recall-nonce \
--pem=${WALLET} \
--gas-limit=6000000 \
--function "setMaxDefaultQuantity" \
--arguments $1 \
--proxy ${PROXY} \
--chain ${CHAIN_ID} \
--send || return
}
17 changes: 17 additions & 0 deletions interaction/mainnet.snippets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -303,3 +303,20 @@ setClaimIsDisabledMainnet(){
--ledger-address-index 0 \
--send || return
}

# V2.0.0
setMaxDefaultQuantityMainnet(){

# $1 = max default quantity

mxpy --verbose contract call ${ADDRESS} \
--recall-nonce \
--gas-limit=6000000 \
--function "setMaxDefaultQuantity" \
--arguments $1 \
--proxy ${PROXY} \
--chain ${CHAIN_ID} \
--ledger \
--ledger-address-index 0 \
--send || return
}

0 comments on commit ce92255

Please sign in to comment.