├── .gitignore ├── meteor-dapp ├── .meteor │ ├── .gitignore │ ├── release │ ├── platforms │ ├── .finished-upgraders │ ├── .id │ ├── packages │ └── versions ├── client │ ├── index.js │ ├── templates │ │ ├── views │ │ │ ├── offerEtherView.html │ │ │ ├── claimTicketView.html │ │ │ ├── helpView.html │ │ │ └── etherTicketsView.html │ │ └── elements │ │ │ ├── etherTickets.html │ │ │ ├── ticketContractInfo.html │ │ │ ├── ticketContractInfo.js │ │ │ ├── helpDoc.html │ │ │ ├── offerEther.html │ │ │ ├── pow.html │ │ │ ├── offerEther.js │ │ │ ├── etherTickets.js │ │ │ ├── claimTicket.html │ │ │ ├── pow.js │ │ │ └── claimTicket.js │ ├── index.html │ └── lib │ │ ├── debugVerifyTxAbi.js │ │ ├── init.js │ │ ├── formatter.js │ │ ├── btcswapAbi.js │ │ ├── btcswapClient.js │ │ └── vendor │ │ ├── keccak.js │ │ └── bitcoinjs-min.js └── public │ └── powWorker.js ├── serpent ├── debug │ ├── easierPoW.se │ ├── disablePoW.se │ ├── deployVerifyTxForDebug.yaml │ ├── setRelayOnDebugContract.yaml │ ├── deployDisablePoW.yaml │ ├── deployEasierPoW.yaml │ └── verifyTxForDebug.se ├── test │ ├── mockVerifyTxReturnsOne.se │ ├── mockVerifyTxReturnsZero.se │ └── ethBtcSwap_debug.se ├── btcSpecialTx.py └── ethBtcSwap.py ├── deploy ├── forImport │ ├── gethChain.dat │ ├── geth2TicketsAnyClaim.dat │ ├── geth2TicketsClaimable.dat │ ├── geth2TicketsReserved.dat │ ├── gethReserveFastExpiry.dat │ └── keystore │ │ ├── 41fcb4160fdab4afbde9d7cad9effe8cc927e1fe │ │ └── 41fcb4160fdab4afbde9d7cad9effe8cc927e1fe │ │ └── 5288b347fec57748c522590149ea2e1b4cdaf787 │ │ └── 5288b347fec57748c522590149ea2e1b4cdaf787 ├── integration │ ├── reserveFastExpiry.se │ └── reserveFastExpiry.yaml ├── ethBtcDeploy.yaml ├── poc9 │ └── eab3.yaml └── block300Ktest │ └── tx190.yaml ├── solidity ├── index.html ├── contract.sol └── .mix └── notes.txt /.gitignore: -------------------------------------------------------------------------------- 1 | serpent/test/__pycache__/ 2 | -------------------------------------------------------------------------------- /meteor-dapp/.meteor/.gitignore: -------------------------------------------------------------------------------- 1 | local 2 | -------------------------------------------------------------------------------- /meteor-dapp/.meteor/release: -------------------------------------------------------------------------------- 1 | METEOR@1.1.0.2 2 | -------------------------------------------------------------------------------- /meteor-dapp/.meteor/platforms: -------------------------------------------------------------------------------- 1 | server 2 | browser 3 | -------------------------------------------------------------------------------- /meteor-dapp/client/index.js: -------------------------------------------------------------------------------- 1 | // moved to init.js 2 | -------------------------------------------------------------------------------- /serpent/debug/easierPoW.se: -------------------------------------------------------------------------------- 1 | macro POW_TARGET: 2**235 2 | 3 | inset('../ethBtcSwap.py') 4 | -------------------------------------------------------------------------------- /serpent/test/mockVerifyTxReturnsOne.se: -------------------------------------------------------------------------------- 1 | def verifyTx(txHash, txIndex, sibling:arr, txBlockHash): 2 | return(1) 3 | -------------------------------------------------------------------------------- /serpent/test/mockVerifyTxReturnsZero.se: -------------------------------------------------------------------------------- 1 | def verifyTx(txHash, txIndex, sibling:arr, txBlockHash): 2 | return(0) 3 | -------------------------------------------------------------------------------- /deploy/forImport/gethChain.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethers/EthereumBitcoinSwap/HEAD/deploy/forImport/gethChain.dat -------------------------------------------------------------------------------- /serpent/debug/disablePoW.se: -------------------------------------------------------------------------------- 1 | macro m_isValidPow($txHash, $ticketId, $powNonce): 1 2 | 3 | inset('../ethBtcSwap.py') 4 | -------------------------------------------------------------------------------- /meteor-dapp/client/templates/views/offerEtherView.html: -------------------------------------------------------------------------------- 1 | 2 | {{> offerEther}} 3 | 4 | -------------------------------------------------------------------------------- /meteor-dapp/client/templates/views/claimTicketView.html: -------------------------------------------------------------------------------- 1 | 2 | {{> claimTicket}} 3 | 4 | -------------------------------------------------------------------------------- /meteor-dapp/client/templates/views/helpView.html: -------------------------------------------------------------------------------- 1 | 2 | {{> helpDoc}} 3 | {{> pow}} 4 | 5 | -------------------------------------------------------------------------------- /deploy/forImport/geth2TicketsAnyClaim.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethers/EthereumBitcoinSwap/HEAD/deploy/forImport/geth2TicketsAnyClaim.dat -------------------------------------------------------------------------------- /deploy/forImport/geth2TicketsClaimable.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethers/EthereumBitcoinSwap/HEAD/deploy/forImport/geth2TicketsClaimable.dat -------------------------------------------------------------------------------- /deploy/forImport/geth2TicketsReserved.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethers/EthereumBitcoinSwap/HEAD/deploy/forImport/geth2TicketsReserved.dat -------------------------------------------------------------------------------- /deploy/forImport/gethReserveFastExpiry.dat: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ethers/EthereumBitcoinSwap/HEAD/deploy/forImport/gethReserveFastExpiry.dat -------------------------------------------------------------------------------- /solidity/index.html: -------------------------------------------------------------------------------- 1 | 2 |
3 | 5 | 6 | 7 | 9 | 10 | -------------------------------------------------------------------------------- /meteor-dapp/client/templates/views/etherTicketsView.html: -------------------------------------------------------------------------------- 1 | 2 | {{> etherTickets startTicketId=1 endTicketId=1000}} 3 | 4 | -------------------------------------------------------------------------------- /serpent/debug/deployVerifyTxForDebug.yaml: -------------------------------------------------------------------------------- 1 | - 2 | deploy: 3 | VerifyTxForDebug: 4 | contract: verifyTxForDebug.se 5 | gas: 3000000 6 | wait: True 7 | -------------------------------------------------------------------------------- /deploy/integration/reserveFastExpiry.se: -------------------------------------------------------------------------------- 1 | # override constants (the first definition is what Serpent uses) 2 | macro EXPIRY_TIME_SECS: 60 3 | 4 | 5 | inset('ethBtcSwap.py') 6 | -------------------------------------------------------------------------------- /meteor-dapp/client/templates/elements/etherTickets.html: -------------------------------------------------------------------------------- 1 | 2 |