Skip to content

Commit

Permalink
Merge 6ab7132 into d758fd6
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMasayoshi committed Jan 24, 2023
2 parents d758fd6 + 6ab7132 commit 59ec3e9
Show file tree
Hide file tree
Showing 32 changed files with 4,633 additions and 2,661 deletions.
16 changes: 4 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ Currently the `AdapterRegistry` contains 2 entries:
- Composed of multiple Adapters
- `TransferAdapter`
- Includes functions to transfer tokens from the caller's wallet or from Shoyu contract. Users can utilize Shoyu's Seaport Conduit when transferring assets from their wallet.
- `LegacySwapAdapter`
- Swaps ERC20s via Sushiswap legacy pools.
- `SushiAdapter`
- Swaps ERC20s via Sushiswap trident & legacy pools.
- `WETHAdapter`
- Wrap/unwrap native tokens.
2. `SeaportAdapter`
- Fulfills a single or multiple orders on Seaport.

Expand All @@ -21,16 +23,6 @@ Example use cases:
- Purchase one or many listed NFTs with combination of ETH & ERC20s
- Accept one or many offers on NFTs and receive any ERC20/ETH

When more marketplaces are supported, it will be possible to trade across multiple markets in a single transaction. For example,

- NFT AMM has floor price at 1.5ETH
- Seaport order has item listed for 1.0 ETH
- User could buy the item on Seaport and sell it to AMM, while taking profits in a single transaction.

## Install

To install dependencies and compile contracts:

```bash
git clone https://github.com/shoyunft/shoyu-contracts && cd shoyu-contracts
yarn install
Expand Down
316 changes: 0 additions & 316 deletions abis/TransformationAdapter.json

This file was deleted.

44 changes: 44 additions & 0 deletions abis/WETHAdapter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
[
{
"inputs": [
{
"internalType": "address",
"name": "_weth",
"type": "address"
}
],
"stateMutability": "nonpayable",
"type": "constructor"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "address payable",
"name": "to",
"type": "address"
}
],
"name": "unwrapNativeToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "amount",
"type": "uint256"
}
],
"name": "wrapNativeToken",
"outputs": [],
"stateMutability": "payable",
"type": "function"
}
]
Loading

0 comments on commit 59ec3e9

Please sign in to comment.