Assessment reports>Garden Move Deploy>Threat Model>Module: main.move

Module: main.move

Function: create_orders_registry<CoinType>(ctx: &mut TxContext): ID

The create_orders_registry function creates a new shared OrdersRegistry of a specific coin type.

Function: initiate<CoinType>(...)

The initiate function allows users to create a new Order.

Function: initiate_on_behalf<CoinType>(...)

The initiate_on_behalf function allows third parties to fund Order on behalf of another user.

Function: redeem_swap<CoinType>(...)

The redeem_swap function allows the redeemer to claim tokens by providing the correct secret.

Function: refund_swap<CoinType>(...)

The refund_swap function allows the initiator to reclaim tokens after timelock expiration.

Function: instant_refund<CoinType>(...)

The instant_refund function allows immediate refund with the redeemer's signature authorization.

Zellic © 2025Back to top ↑