-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
Milestone
Description
This will be based on the code Marco introduced in #230.
- Create new spago package
stbx-tx-storeand move stuff fromstbx-service-restin there. - Decode
POSTrequests to/txfrom hex instead of JSON, like the real tx service does.- Make
Stbx.decodework from PureScript.- Fix tests for
Statebox.Core,Statebox.Core.Execution, andStatebox.Transaction.Codec.
- Fix tests for
- Decode POSTed
{ tx :: HexStr }'stxfield JSON - Decode this JSON to a
TxSum - Define and use
sendTxTxSuminstead of Express's dynamically typedsendJson - Also compute the hash using
Stbx
- Make
- Eliminate
ExampleData.pursand its dependencies. - tests
- Add actual transactions to
curltests inscripts/test.sh. - Make them work using tx hex instead of expanded JSON
- Replace by node.js tests in PureScript / JavaScript.
- Introduce a test loader/runner that installs
Stbxfromstbx-jsin the global scope. - Travis CI check passes even if a test suite in
scripts/test.shfails.
- Add actual transactions to
- Implement basic version of
StateboxExceptionfrom Jelle'shttps://github.com/statebox/cloudcode.- Define corresponding
TxErrorADT with correspondingString-valued error codes, etc - Hook into some points
- Create a dedicated
sendTxErrorfunction instead of Express's untypedsendJson.
- Define corresponding