package octez-protocol-alpha-libs
Octez protocol alpha libraries
Install
Dune Dependency
Authors
Maintainers
Sources
tezos-18.0.tar.gz
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
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.tez ->
lqtTotal:Z.t ->
amount:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tez ->
Z.t * Z.t
Source
val removeLiquidity :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tez ->
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.tez ->
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.tez ->
amount:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tez ->
Z.t * Z.t
Source
val tokenToToken :
tokenPool:Z.t ->
xtzPool:Tezos_protocol_alpha.Protocol.Alpha_context.Tez.tez ->
tokensSold:Z.t ->
Tezos_protocol_alpha.Protocol.Alpha_context.Tez.t * Z.t
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>