Short notes, links and reference for internal team discussions @MerkleLab related to Whitepapers.
Provide an overview of how to use this document
- AirSwap
Name | AirSwap |
---|---|
Token: | AST |
WhitePaper | CoinMarketCap |
Date: | 17th January 2018 |
Company | ConsenSys |
Founder | Michael Oved, Don Mosites |
Table of Contents:
- [Summary](#1. Summary)
- Introduction
- Orderbook
- Peer to Peer
- Swap Protocol
- Peer Protocol
- Indexer Protocol
- Oracle Protocol
- Smart Contract
Overview: Alternative to Blockchain Orderbook by specifying a set of protocols
- Do not scale well
- Miner manipulation is possible
- Lots of other problems as well!
So, now come as saviour!
- Scale, because they’re always done
- No cancel, lightweight, private negotiation, fair.
- They’re awesome overall!
- Need to beat AI man! Come together, world peace.
[Background Music] Hero Entry!
Foundation Peer Protocol for Asset Exchange, Go Team Ethereum!
Order API is high level right now. Further details would be discussed in future papers.
getOrder
& provideOrder
Quotes API is also similar, but for price exchange and not executable order. Can be executed if conditions are met later.
getQuote
& provideQuote
Indexer API manages intent to trade using the following commands between the peers and an indexer.
addIntent(makerToken, takerTokens)
removeIntent(makerToken, takerTokens)
getIntent(makerAddress)
findIntent(makerToken, takerToken)
foundIntent(makerAddress, intentList)
Use external sources for determining fair prices of trade.
Similar for Taker Oracle.
Oracle API is getPrice
, providePrice
. Broadly just a source, like coinbase_prices.
fillOrder(makerAddress, makerAmount, makerToken, takerAddress, takerAmount, takerToken, expiration, nonce, signature)
cancelOrder
: Before being filled, it fills the order, so later it’s already filled.
Event broadcast: ‘filled’
and ‘cancelled’
.
Transfer Ether: if null takerToken address (0x0) then it will transfer ether in the function call on behalf of the taker to the maker
[Summary](# 1. Summary)