package octez-protocol-alpha-libs
Octez protocol alpha libraries
Install
Dune Dependency
Authors
Maintainers
Sources
octez-19.0.tar.gz
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-protocol-alpha-libs.test-helpers/Tezos_alpha_test_helpers/Cpmm_logic/Simulate_raw/index.html
Module Cpmm_logic.Simulate_raw
Source
This is a simulation of the CPMM contract, as implemented in mligo in src/proto_alpha/lib_protocol/contracts/cpmm.mligo
. The interested reader should look for comments in this file to gain a better understanding of the contract logic.
Source
val addLiquidity :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
lqtTotal:Z.t ->
amount:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
Z.t * Z.t
Source
val removeLiquidity :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
lqtTotal:Z.t ->
lqtBurned:Z.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
Source
val tokenToXtz :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
tokensSold:Z.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
Source
val xtzToToken :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
amount:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
Z.t * Z.t
Source
val tokenToToken :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t ->
tokensSold:Z.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>