Install Sui cli

Installation gui for Sui cli

Atoma smart contract

Atoma on-chain logic is currently deployed on Sui's testnet. In order to interact with Atoma's testnet smart contract, please refer to the following object ids:

Atoma db: "0x7b8f40e38698deb650519a51f9c1a725bf8cfdc074d1552a4dc85976c2b414be" Atoma package ID: "0xc05bae323433740c969d8cf938c48d7559490be5f8dde158792e7a0623787013" TOMA package ID: "0xa1b2ce1a52abc52c5d21be9da0f752dbd587018bc666c5298f778f42de26df1d"

The TOMA package represents the logic for Atoma's current testnet faucet token, used for collateral deposit and slashing.

Install Sui client locally

  1. The first step in setting up an Atoma node is installing the Sui client locally. Please refer to the Sui installation guide for more information.

  2. Once you have the Sui client installed, locally, you need to connect to a Sui RPC node to be able to interact with the Sui blockchain and therefore the Atoma smart contract. Please refer to the Connect to a Sui Network guide for more information.

  3. You then need to create a wallet and fund it with some testnet SUI. Please refer to the Sui wallet guide for more information. If you are plan to run the Atoma node on Sui's testnet, you can request testnet SUI tokens by following the docs.

  4. Once you finish the steps above, you should have the following files created locally (you should replace ~ with your home folder directory, if needed):

  • ~/.sui/sui_config/client.yaml - the Sui client configuration file.

  • ~/.sui/sui_config/sui.keystore - The Sui keystore file (contains your private key(s)).

  1. Currently, Atoma is deployed on Sui's testnet. You can claim faucet Sui token funds

sui client faucet

And then query your balance as:

sui client balance

You can mint faucet TOMA testnet tokens, by running the command:

sui client call --package "0xa1b2ce1a52abc52c5d21be9da0f752dbd587018bc666c5298f778f42de26df1d" --module "toma" --function "faucet" --args "0xfdddd6fb95509ea36f44f06d0d0a2f5868dac2bda1423d204bdc9f458115ff75" 100000000000

Atoma cli (optional)

To ease the process of interacting with the Atoma smart contract, we provide our own custom cli. In order to interact with Atoma's own cli, please execute the following:

git clone https://github.com/atoma-network/atoma-contracts
cd atoma-contracts/sui/

You can then request TOMA faucet tokens, which are required to participate on Atoma's testnet, as:

./dev/cli toma faucet --toma-package "0xc05bae323433740c969d8cf938c48d7559490be5f8dde158792e7a0623787013" --amount 100000000000

You can then query your wallet balance, again to see your newly minted faucet TOMA tokens:

sui client balance

Last updated