CDM should work from inside of the host API.
Currently CDM talks directly to websockets with PAPI. We should update createCdm to take in options such as papi or host api— rough example:
const cdm = createCdm({
backend: hostAPI
})
which should route all contract queryeis/txs through the Host API
CDM should work from inside of the host API.
Currently CDM talks directly to websockets with PAPI. We should update
createCdmto take in options such as papi or host api— rough example:which should route all contract queryeis/txs through the Host API