Tongo Instances

The class hash of the current version of Tongo is

Mainnet

We listed here a set of instances of Tongo deployed in mainnet

Sepolia

We listed here a set of instances of Tongo deployed in mainnet

Deployment

You can deploy another instance of Tongo with your own set of parameters. The constructor of the contract is

#![allow(unused)]
fn main() {
    #[constructor]
    fn constructor(
        ref self: ContractState,
        owner: ContractAddress,
        ERC20: ContractAddress,
        rate: u256,
        bit_size: u32,
        auditor_key: Option<PubKey>,
    ) {
        self.owner.write(owner);
        self.ERC20.write(ERC20);
        self.rate.write(rate);

        assert!(bit_size <= 128_u32, "Bit size should be 128 at max");
        self.bit_size.write(bit_size);

        if let Some(key) = auditor_key {
            self._set_auditor_key(key);
        }
    }

}