Skip to main content
4 votes

Parsing JSON in ink based Smart Contracts

but serde is not able to be used when writing these contracts due to a float being used in the library Yes, this is intentional. Floating point numbers should not be used directly in a blockchain ...
cmichi's user avatar
  • 2,800
4 votes
Accepted

How is confidentially guaranteed for Phat Contract state and transactions?

A short answer: you only need to trust the Secure Enclave hardware, thus the only attack vector is to compromise the hardware. Before all, the programs in Secure Enclave are different in that the ...
shelvenzhou's user avatar
4 votes
Accepted

Parsing float numbers in Phala Fat Contract causes deployment failure

It's a well-known problem. For your specific use case, we can walk-around like this: You can use fixed crate to process real numbers, including parsing, to string, and arithmetic ops To parse the ...
h4x3rotab's user avatar
  • 717
2 votes
Accepted

Parsing JSON in ink based Smart Contracts

We were able to figure this out by using the serde_json_core library. An example can be seen here subgraph-nouns Fat Contract. In this example, we make an HTTPS requests to Subgraph Endpoint for ...
Joshua's user avatar
  • 101

Only top scored, non community-wiki answers of a minimum length are eligible