1. 10 Nov, 2018 1 commit
  2. 08 Nov, 2018 1 commit
  3. 16 Jul, 2018 1 commit
  4. 28 Mar, 2018 1 commit
  5. 14 Mar, 2018 1 commit
  6. 03 Oct, 2017 1 commit
  7. 05 Apr, 2017 1 commit
  8. 05 Feb, 2017 1 commit
  9. 16 Nov, 2016 2 commits
  10. 07 May, 2016 1 commit
  11. 01 Feb, 2016 3 commits
    • David Vorick's avatar
      simplify types.Currency -> uint64 conversion · 5dd288b2
      David Vorick authored
      Also add an extra test case for a number near math.MaxUint64 but not
      full max.
      5dd288b2
    • David Vorick's avatar
      add Uint64() method to types.Currency · 949a4736
      David Vorick authored
      A future commit makes use of this function call. An error is returned if
      there is an overflow. Though a panic could have been called, it is
      believed that this method will be used heavily on currencies that could
      potentially be manipulated by untrusted input. Rather than require that
      all untrusted input be handled to check for currency-overflow causing
      problems, and error is returned by the currency type.
      949a4736
    • David Vorick's avatar
      clean up types/currency.go · 1f0440a4
      David Vorick authored
      switch from DEBUG wrapped panics to calls to build.Critical. Also add
      some docstrings, and make the tests compatible with the calls to
      build.Critical.
      1f0440a4
  12. 12 Sep, 2015 1 commit
    • Luke Champine's avatar
      MarshalSia now takes an io.Writer · c87dde78
      Luke Champine authored
      This makes sense, symmetry-wise, and it also means that we can
      encode large objects (e.g. blocks) to streams without having to
      hold the entire byte slice in memory.
      c87dde78
  13. 11 Sep, 2015 1 commit
    • Luke Champine's avatar
      UnmarshalSia now takes an io.Reader · fe3120a9
      Luke Champine authored
      Previously, types implementing the SiaMarshaler interface would
      be automatically length-prefixed by encode. However, this makes it
      impossible to add Marshal/Unmarshal methods to a type without
      breaking compatibility; many existing types do not begin with a
      length prefix, e.g. structs.
      fe3120a9
  14. 25 Aug, 2015 1 commit
    • Luke Champine's avatar
      marshal Currency as JSON string · f568ec46
      Luke Champine authored
      Previously, the Currency type was marshalled as a JSON number.
      This caused the value to be cast to a double when the JSON was
      parsed by JavaScript.
      f568ec46
  15. 13 Aug, 2015 1 commit
  16. 07 Jul, 2015 3 commits
  17. 04 Apr, 2015 5 commits
  18. 03 Apr, 2015 1 commit
  19. 02 Apr, 2015 5 commits
  20. 08 Mar, 2015 1 commit
  21. 02 Mar, 2015 1 commit
  22. 17 Feb, 2015 4 commits
  23. 10 Feb, 2015 2 commits