//DCC – Viewing smart contracts from a pure function perspective

DCC – Viewing smart contracts from a pure function perspective

Viewing smart contracts from a pure function perspective have the following benefits:- Easy to test. Because it is a pure function, there are no side effects. The contract can be tested without relying on the blockchain environment.- Contracts are algorithms, and contractual regression rules are only used to describe business rules without causing side effects on the blockchain, thus improving the stability of the blockchain.- Easy cost measure. Because it only describes the business rules, the complexity of the measurement of smart contract costs is greatly reduced, without having to consider the cost of side effects such as storage, IO and so on.- Reliable playback. Since it is a pure function, implementation of the same S’ is repeated and the result is the same S, i.e. it supports idempotence.DCC will use JAVA as development languages of core smart contracts. At present, JAVA is a relatively common development language for financial back-end systems. We use the JVM as a container for running smart contracts.Website: https://dcc.finance/ for more information! Good luck guys 😉

Viewing smart contracts from a pure function perspective have the following benefits:

– Easy to test. Because it is a pure function, there are no side effects. The contract can be tested without relying on the blockchain environment.

– Contracts are algorithms, and contractual regression rules are only used to describe business rules without causing side effects on the blockchain, thus improving the stability of the blockchain.

– Easy cost measure. Because it only describes the business rules, the complexity of the measurement of smart contract costs is greatly reduced, without having to consider the cost of side effects such as storage, IO and so on.

– Reliable playback. Since it is a pure function, implementation of the same S' is repeated and the result is the same S, i.e. it supports idempotence.

DCC will use JAVA as development languages of core smart contracts. At present, JAVA is a relatively common development language for financial back-end systems. We use the JVM as a container for running smart contracts.

Website: https://dcc.finance/ for more information! Good luck guys 😉