Install the dependencies with
$ make ts-deps
Compile the typescript library with
$ make lib
The JavaScript code will be produced in the dist/js directory.
DLT Adapter server source in server
Install the dependencies with
$ make server-deps
Compile the typescript library with
$ make server
The JavaScript code will be produced in the server/lib directory.
The project can be built and baked using Docker in dockerfile
$ make docker
The smart contracts are provided in three formats:
- OCaml (mligo) in contracts, the reference implementation
- Ligo in dist/ligo
- Michelson in dist/michelson
The compiled contracts are provided in this repository but one can regenerate them to, e.g., ensure that the compiled Michelson matches the high level reference implementation.
There is no need to re-compile the contracts for deployment or testing.
The rest of this section gives the necessary steps to re-compile the contracts.
- Install Opam
- Install Ligo version 0.34 or greater
Install the dependencies with
$ make build-deps
Compile the OCaml Smart Contracts to Ligo and then to Michelson:
$ make contracts
All the Ligo smart contracts will be copied (overwritten) in the dist/ligo directory and the Michelson contracts in dist/michelson.
The smart contracts are deployed on the current Tezos testnet (hangzhou2net) at the following addresses:
Contract | Address |
---|---|
FinP2P Proxy | KT1KrsLPoT1rwwzvdGJHDzGr4vuA8GVJZ51e |
FinP2P FA2 | KT1GP9DSiwR66qg1BoxAVhWS1ExSsNaL25uW |
Authorization contract | KT1TKEHctmfiHE9JirwNofSpqUDATKVqBStE |
The provided links to the BetterCallDev explorer allows to see the different operations and the tokens on the FA2 contract.
Tests can be replayed by simply running (after having installed the typescript dependencies):
$ make test