Skip to content

Commit 991c136

Browse files
author
Chris Hatch
committed
deployed latest to kovan and ropsten - updated README.md and deployment.json
1 parent 60420ff commit 991c136

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

README.md

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,25 @@
44

55
[Hashed Timelock Contracts](https://en.bitcoin.it/wiki/Hashed_Timelock_Contracts) (HTLCs) for Ethereum:
66

7-
* [HashedTimelock.sol](contracts/HashedTimelock.sol) - HTLC for native ETH token
8-
* [HashedTimelockERC20.sol](contracts/HashedTimelockERC20.sol) - HTLC for ERC20 tokens
7+
- [HashedTimelock.sol](contracts/HashedTimelock.sol) - HTLC for native ETH token
8+
- [HashedTimelockERC20.sol](contracts/HashedTimelockERC20.sol) - HTLC for ERC20 tokens
99

1010
Use these contracts for creating HTLCs on the Ethereum side of a cross chain atomic swap (for example the [xcat](https://github.com/chatch/xcat) project).
1111

1212
## Deployment
1313

1414
HashedTimelock:
1515

16-
* Ropsten: [0x0c0c3ec813a311acc37c8fc77d3cda0f32bcdd4b](https://ropsten.etherscan.io/address/0x0c0c3ec813a311acc37c8fc77d3cda0f32bcdd4b)
17-
* Mainnet: <not deployed yet ...>
16+
- Kovan: [0xc3ed16874bc9551b079c135eb27b10ee1348ac12](https://kovan.etherscan.io/address/0xc3ed16874bc9551b079c135eb27b10ee1348ac12)
17+
- Ropsten:
18+
[0xbb6883511ff318ba85b5745fb1a6083537bf914c](https://ropsten.etherscan.io/address/0xbb6883511ff318ba85b5745fb1a6083537bf914c)
19+
- Mainnet: <not deployed yet ...>
1820

1921
HashedTimelockERC20:
2022

21-
* Ropsten: [0x42902c91ed93ac58f1c958806c8d22e7ea1835f8](https://ropsten.etherscan.io/address/0x42902c91ed93ac58f1c958806c8d22e7ea1835f8)
22-
* Mainnet: <not deployed yet ...>
23+
- Kovan: [0xfD4BEbA807E89E2cA209cd53c28471840446ddf2](https://kovan.etherscan.io/address/0xfD4BEbA807E89E2cA209cd53c28471840446ddf2)
24+
- Ropsten: [0x6879e090240358f59fc5d212f87da63d3288749b](https://ropsten.etherscan.io/address/0x6879e090240358f59fc5d212f87da63d3288749b)
25+
- Mainnet: <not deployed yet ...>
2326

2427
## Protocol - Native ETH
2528

@@ -45,21 +48,21 @@ HashedTimelockERC20:
4548

4649
### HashedTimelock
4750

48-
1. `newContract(receiverAddress, hashlock, timelock)` create new HTLC with given receiver, hashlock and expiry; returns contractId bytes32
49-
2. `withdraw(contractId, preimage)` claim funds revealing the preimage
50-
3. `refund(contractId)` if withdraw was not called the contract creator can get a refund by calling this some time after the time lock has expired.
51+
1. `newContract(receiverAddress, hashlock, timelock)` create new HTLC with given receiver, hashlock and expiry; returns contractId bytes32
52+
2. `withdraw(contractId, preimage)` claim funds revealing the preimage
53+
3. `refund(contractId)` if withdraw was not called the contract creator can get a refund by calling this some time after the time lock has expired.
5154

5255
See [test/htlc.js](test/htlc.js) for examples of interacting with the contract from javascript.
5356

5457
### HashedTimelockERC20
5558

56-
1. `newContract(receiverAddress, hashlock, timelock, tokenContract, amount)` create new HTLC with given receiver, hashlock, expiry, ERC20 token contract address and amount of tokens
57-
2. `withdraw(contractId, preimage)` claim funds revealing the preimage
58-
3. `refund(contractId)` if withdraw was not called the contract creator can get a refund by calling this some time after the time lock has expired.
59+
1. `newContract(receiverAddress, hashlock, timelock, tokenContract, amount)` create new HTLC with given receiver, hashlock, expiry, ERC20 token contract address and amount of tokens
60+
2. `withdraw(contractId, preimage)` claim funds revealing the preimage
61+
3. `refund(contractId)` if withdraw was not called the contract creator can get a refund by calling this some time after the time lock has expired.
5962

6063
See [test/htlcERC20.js](test/htlcERC20.js) for examples of interacting with the contract from javascript.
6164

6265
## ABI and Bytecode
6366

64-
* [HashedTimelock.json](abi/HashedTimelock.json)
65-
* [HashedTimelockERC20.json](abi/HashedTimelockERC20.json)
67+
- [HashedTimelock.json](abi/HashedTimelock.json)
68+
- [HashedTimelockERC20.json](abi/HashedTimelockERC20.json)

deployment.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
{
22
"htlc": {
3-
"ropsten": "0x0c0c3ec813a311acc37c8fc77d3cda0f32bcdd4b",
3+
"kovan": "0xc3ed16874bc9551b079c135eb27b10ee1348ac12",
4+
"ropsten": "0xbb6883511ff318ba85b5745fb1a6083537bf914c",
45
"testrpc": "0x345ca3e014aaf5dca488057592ee47305d9b3e10"
56
},
67
"htlcERC20": {
7-
"ropsten": "0x42902c91ed93ac58f1c958806c8d22e7ea1835f8",
8+
"kovan": "0xfD4BEbA807E89E2cA209cd53c28471840446ddf2",
9+
"ropsten": "0x6879e090240358f59fc5d212f87da63d3288749b",
810
"testrpc": "0xf25186b5081ff5ce73482ad761db0eb0d25abfbf"
911
}
1012
}

0 commit comments

Comments
 (0)