Getters and Setters
Getters and Setters of the SDK
get_secrets()Return the secrets stored in the TyphoonSDK instance, this will only return data after you call generate_approve_and_deposit_calls function.
set_secrets(new_secrets)Set the secrets stored in your TyphoonSDK instance.
get_nullifiers()Return the nulifiers stored in the TyphoonSDK instance, this will only return data after you call generate_approve_and_deposit_calls function.
set_nullifiers(new_nullifiers)Set the nullifiers stored in your TyphoonSDK instance.
get_pools()Return the pools stored in the TyphoonSDK instance, this will only return data after you call generate_approve_and_deposit_calls function.
set_pools(new_pools)Set the pools stored in your TyphoonSDK instance.
async get_token_minimal_amount(token_address)This function returns the minimal amount required by Typhoon to mix the tokens (normally is a very small amount).
init(secrets, nullifiers, pools)This function sets the secrets, nullifiers and pools values.
Last updated