Skip to content

owneraio/finp2p-tezos-adapter

Repository files navigation

Tezos FinP2P adapter

Documentation

Typescript Tezos Library

Installation and compilation

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.

FinP2P DLT Adapter Server

Installation and compilation

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.

Docker

The project can be built and baked using Docker in dockerfile

$ make docker

Smart contracts

The smart contracts are provided in three formats:

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.

Prerequisites for compilation of smart contracts

Installation and compilation

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.

Tests

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.

Replaying tests

Tests can be replayed by simply running (after having installed the typescript dependencies):

$ make test

About

Ownera FinP2P for Tezos

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •