oracle: make JSONPath compatible with C# implementation

C# node uses simplified implementation which is easy to port.
This commit is contained in:
Evgeniy Stratonikov 2021-04-22 17:22:09 +03:00
parent fbcb08c5f0
commit 1c30d8c395
7 changed files with 656 additions and 16 deletions

View file

@ -143,7 +143,7 @@ func TestOracle(t *testing.T) {
putOracleRequest(t, cs.Hash, bc, "https://get.maxallowed", nil, "handle", []byte{}, 10_000_000)
putOracleRequest(t, cs.Hash, bc, "https://get.maxallowed", nil, "handle", []byte{}, 100_000_000)
flt := "Values[1]"
flt := "$.Values[1]"
putOracleRequest(t, cs.Hash, bc, "https://get.filter", &flt, "handle", []byte{}, 10_000_000)
putOracleRequest(t, cs.Hash, bc, "https://get.filterinv", &flt, "handle", []byte{}, 10_000_000)