Skip to content

Commit

Permalink
Create atomicSwaps.js
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Aug 24, 2024
1 parent ef5ad36 commit ca9a618
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/cross_chain_atomic_swaps/atomicSwaps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SwapJS } from 'swapjs-react-native';

const atomicSwaps = {
createAtomicSwap: () => {
const swap = SwapJS.createAtomicSwap('BTC', 'ETH');
return swap;
},

executeAtomicSwap: (swap) => {
const result = SwapJS.executeAtomicSwap(swap);
return result;
},
};

export default atomicSwaps;

0 comments on commit ca9a618

Please sign in to comment.