Skip to content

Releases: ethchange/smart-exchange

Release 2.1.6

14 Aug 09:19
Compare
Choose a tag to compare
  • do not throw an exception on withdraw to 35 bytes iban addresses
  • updated version of console tool (forgot about that till now)

Release 2.1.5

11 Aug 11:20
Compare
Choose a tag to compare
  • fixed bug, when identifiers contains only numbers

Release 2.1.4

11 Aug 08:23
Compare
Choose a tag to compare
  • fixed sending value from main account to exchange contract on exchange_transfer

Release 2.1.3

10 Aug 08:36
Compare
Choose a tag to compare
  • exchange_create stops if namereg address doesn't have any code (prevents from accidentally deploying contract with testnet namereg address)

Release 2.1.2

06 Aug 20:36
Compare
Choose a tag to compare
  • cheaper test namereg (ICAPRegistrar), which costs only 422659 gas

Release 2.1.1

05 Aug 22:26
Compare
Choose a tag to compare
  • use only 280_000 gas to create contract instead of 2_500_000

Release 2.1.0

04 Aug 13:14
Compare
Choose a tag to compare
  • new exchange_disown method

Release 2.0.2

04 Aug 11:46
Compare
Choose a tag to compare
  • use FixedFeeRegistrar instead of GlobalRegistrar
  • mine at least 180 ETH
  • fixed order of reserve and setAddress in exchange_create which sometimes caused exchange to be created incorrectly.

Release 2.0.1

03 Aug 08:13
Compare
Choose a tag to compare
  • Sleep 3.0.0
  • fixed small bugs

Release 2.0.0

31 Jul 10:52
Compare
Choose a tag to compare

changes

  • exchange_transaction should be queried with exchange 'identifier'.

  • exchange_transaction returns an array instead of object.

  • exchange_transaction request:

    -curl -X POST --data '{"id":8,"jsonrpc":"2.0","method":"exchange_transaction","params":["0xacf64bd586a847523086882c82c4cff6d77b1a753ea28c164046e37f3606583c", 0]}' -H "Content-Type: application/json" http://localhost:8545
    +curl -X POST --data '{"id":8,"jsonrpc":"2.0","method":"exchange_transaction","params":["XROF", "0xacf64bd586a847523086882c82c4cff6d77b1a753ea28c164046e37f3606583c"]}' -H "Content-Type: application/json" http://localhost:8545
    {
    "id": 8,
    "jsonrpc": "2.0",
    "method": "exchange_transaction",
    "params": [
    -    "0xacf64bd586a847523086882c82c4cff6d77b1a753ea28c164046e37f3606583c",
    -    0
    +    "XROF",
    +    "0xacf64bd586a847523086882c82c4cff6d77b1a753ea28c164046e37f3606583c"
    ]
    }
  • exchange_transaction response:

    {
    "jsonrpc": "2.0",
    "id": 8,
    - "result": {
    + "result": [{
      "address": "0x9b173b6fab888af1b5eff49bf34c7aaebf58673f",
      "blockNumber": 55,
      "logIndex": 0,
      "blockHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
      "transactionHash": "0xacf64bd586a847523086882c82c4cff6d77b1a753ea28c164046e37f3606583c",
      "transactionIndex": 0,
      "event": "Deposit",
      "args": {
        "from": "0x275ac21e0b9383dcc0fa0fc4ecf7bf1ec7c4bba9",
        "to": "0x4d4152454b4f464b4b0000000000000000000000000000000000000000000000",
        "value": "15000"
      }
    -}
    +}]
    }

explanation

exchange transactions are logs created by contracts and stored on the blockchain. Sometimes 1 transaction can create more than 1 log. eg. when we make IcapTransfer to your own exchange. It produces IcapTransfer and Deposit event. That's why we need to return an array.