You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The purpose of this document is to guide developers through the implementation of atomic swaps in Solidity, enabling users to perform trustless, internally atomic swaps on an EVM blockchain. Atomic swaps allow for the exchange of assets without the need for a trusted intermediary, ensuring the security and integrity of the swap process.
Prerequisites
A basic understanding of Solidity, Ethereum, and smart contracts is required. It is also recommended to be familiar with the concepts of atomic swaps. For more information, you can refer to the ICS 100 documentation. Additionally, you will need a development environment with a Solidity compiler and testing tools such as Remix or Truffle.
Atomic Swap Functions
Make Order: The initiator sends a makeMsg to the contract, and the contract generates a swap order and saves it. The message structure will be similar to the one defined in ICS 100.
Take Order: The taker sends a takeMsg to execute the order by providing the required amount of the buying token. The contract verifies if the transaction meets the order's restrictions. If the conditions are met, the contract transfers the buying token to the maker and the selling token to the taker.
Cancel Order: The creator of the order can cancel it if it has not been completed.
The text was updated successfully, but these errors were encountered:
Introduction
The purpose of this document is to guide developers through the implementation of atomic swaps in Solidity, enabling users to perform trustless, internally atomic swaps on an EVM blockchain. Atomic swaps allow for the exchange of assets without the need for a trusted intermediary, ensuring the security and integrity of the swap process.
Prerequisites
A basic understanding of Solidity, Ethereum, and smart contracts is required. It is also recommended to be familiar with the concepts of atomic swaps. For more information, you can refer to the ICS 100 documentation. Additionally, you will need a development environment with a Solidity compiler and testing tools such as Remix or Truffle.
Atomic Swap Functions
The text was updated successfully, but these errors were encountered: