Some read interactions are failing, and right now we assume the input is incorrect. This modifies the response/error to include the read interaction error messaging, and throw either an EvaluationError or UnknownError depending on what the response from viewState() returns.
Also breaks apart stateRequestMap and readRequestMap into separate objects with proper types from Warp, to make it easier to debug our caching.
Example response:
❯ curl -iL http://localhost:3000/v1/contract/fbU8Y4NMKKzP4rmAYeYj6tDrVDo9XNbdyq5IZPA31WQ/read/priceForInteraction\?interactionName\=buyRecord\&name\=new-name-10\&years\=1\&type\=lease\&contractTxId\=atomic
HTTP/1.1 400 Bad Request
Vary: Origin
Access-Control-Allow-Origin:
Content-Type: text/plain; charset=utf-8
Content-Length: 43
Date: Mon, 20 Nov 2023 15:11:37 GMT
Connection: keep-alive
Keep-Alive: timeout=5
This name already exists in an active lease%
Some read interactions are failing, and right now we assume the input is incorrect. This modifies the response/error to include the read interaction error messaging, and throw either an
EvaluationError
orUnknownError
depending on what the response fromviewState()
returns.Also breaks apart
stateRequestMap
andreadRequestMap
into separate objects with proper types fromWarp
, to make it easier to debug our caching.Example response: