Skip to content

INTONNATION/freeton-smc-scripts

Repository files navigation

Remarks

msig.sh, depool.sh and send_stake_to_depool.sh now supports only FLD.TON.DEV. Will be updated soon.

Pre-requirements

  • tonos-cli installed and configured to the required network.
  • solc
  • tvm_linker
  • solc stdlib
  • msig abi (better to clone https://github.com/tonlabs/ton-labs-contracts on the same level as this repo)
  • msig wallet with tokens
  • check vars(abi and stdlib path) in smc-update.sh smc-deploy.sh debot-deploy.sh

Contract deploy

Usage

./smc-deploy.sh --payer-addr <wallet address to pay for init> --payer-keys <wallet keys path> <source file>

Example

./smc-deploy.sh --payer-addr 0:5dcaaa93f50d148e66d4504457d008528b5ca0d1365146816a80b656520f748d --payer-keys ../keys/fld.keys.json wallet.sol

Contract update

Usage

./smc-update.sh --addr <contract to update> --sign <contract keys path> <source-file>

Example

./smc-update.sh --addr `cat wallet.addr` --sign wallet.keys.json --stdlib wallet.sol

Debot deploy

./debot-deploy.sh --payer-addr 0:5dcaaa93f50d148e66d4504457d008528b5ca0d1365146816a80b656520f748d --payer-keys ../keys/fld.keys.json --target-smc-abi wallet.abi.json --target-smc-addr `cat wallet.addr` walletDebot.sol

Debot code update

./smc-update.sh --addr `cat walletDebot.addr` --sign walletDebot.keys.json walletDebot.sol

Run Debot

tonos-cli debot fetch `walletDebot.addr`

Decode hex string to text for testing

echo 74657374 | xxd -r -p

About

BASH scripts to deploy smart contracts on Free TON.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages