From 54f4eeafe5846326f768e14e4d570c825b6c5741 Mon Sep 17 00:00:00 2001 From: simsbluebox Date: Fri, 6 Dec 2024 15:36:04 -0300 Subject: [PATCH 1/5] meta-peg-in technical documentation first draft --- SUMMARY.md | 3 + developers/contracts/README.md | 5 + .../contracts/meta-peg-in-endpoint-v2-02.md | 318 ++++++++++++++++++ 3 files changed, 326 insertions(+) create mode 100644 developers/contracts/README.md create mode 100644 developers/contracts/meta-peg-in-endpoint-v2-02.md diff --git a/SUMMARY.md b/SUMMARY.md index 57d8b41..db8712b 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -24,6 +24,9 @@ - [Security Audits](security-audits.md) +- [Developers](developers/contracts/README.md) + - [meta-peg-in-endpoint-v2-02](developers/contracts/meta-peg-in-endpoint-v2-02.md) + From 3e003911258cdcf1a8349157c102c037ecf77eed Mon Sep 17 00:00:00 2001 From: "ignacio.pena@coinfabrik.com" Date: Fri, 6 Dec 2024 15:41:48 -0300 Subject: [PATCH 2/5] btc-peg-in technical documentation first draft --- SUMMARY.md | 1 + .../contracts/btc-peg-in-endpoint-v2-03.md | 194 ++++++++++++++++++ 2 files changed, 195 insertions(+) create mode 100644 developers/contracts/btc-peg-in-endpoint-v2-03.md diff --git a/SUMMARY.md b/SUMMARY.md index db8712b..faea2e3 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -25,6 +25,7 @@ - [Security Audits](security-audits.md) - [Developers](developers/contracts/README.md) + - [btc-peg-in-endpoint-v2-03](developers/contracts/btc-peg-in-endpoint-v2-03.md) - [meta-peg-in-endpoint-v2-02](developers/contracts/meta-peg-in-endpoint-v2-02.md) \ No newline at end of file From f8309ddbcad181e218614dde7a3fa865ba2a2327 Mon Sep 17 00:00:00 2001 From: simsbluebox Date: Fri, 6 Dec 2024 16:33:02 -0300 Subject: [PATCH 3/5] meta-peg-in technical documentation minor link fix --- developers/contracts/meta-peg-in-endpoint-v2-02.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/developers/contracts/meta-peg-in-endpoint-v2-02.md b/developers/contracts/meta-peg-in-endpoint-v2-02.md index 60b8d1b..e20f5fb 100644 --- a/developers/contracts/meta-peg-in-endpoint-v2-02.md +++ b/developers/contracts/meta-peg-in-endpoint-v2-02.md @@ -13,7 +13,7 @@ This technical document provides a comprehensive overview of the contract respon | -------- | ------ | | Variable | `bool` | -This data variable serves as a flag to control the operational status of the contract within the system. When set to 'paused,' it blocks all meta peg-in transactions. By default, the contract is deployed in 'paused' mode. Refer to the [`pause`](meta-peg-in-endpoint-v2-02.md#pause) governance feature to change this status. +This data variable serves as a flag to control the operational status of the contract within the system. When set to 'paused,' it blocks all meta peg-in transactions. By default, the contract is deployed in 'paused' mode. Refer to the [pause](meta-peg-in-endpoint-v2-02.md#pause) governance feature to change this status. ### `fee-to-address` @@ -134,7 +134,7 @@ As this peg-in feature is designed for Bitcoin metaprotocol tokens (e.g., BRC-20 #### `finalize-peg-in-cross-swap-on-index` -Similar to the peg-in-cross, the peg-in-cross-swap involves a cross-blockchain operation with an additional asset swapping capability. This feature is useful when the desired target token requires intermediate swap operations. The function achieves this by receiving a list of token traits involved in the operation up to the target token. Refer to the [AMM Pool documentation]() for more details. In addition to the "from" and "to" addresses, the order details in the reveal transaction include information about the swap route. This swap route is validated against the `amm-pool-v2-01` contract through the `cross-router-v2-02` contract to check pool parameters. Additionally, this function includes a refund mechanism to handle errors during cross-swap transaction validation. +Similar to the peg-in-cross, the peg-in-cross-swap involves a cross-blockchain operation with an additional asset swapping capability. This feature is useful when the desired target token requires intermediate swap operations. The function achieves this by receiving a list of token traits involved in the operation up to the target token. Refer to the [AMM Pool documentation](https://docs.alexgo.io/developers/protocol-contracts#amm-trading-pool) for more details. In addition to the "from" and "to" addresses, the order details in the reveal transaction include information about the swap route. This swap route is validated against the `amm-pool-v2-01` contract through the `cross-router-v2-02` contract to check pool parameters. Additionally, this function includes a refund mechanism to handle errors during cross-swap transaction validation. ##### Parameters From 65e8f0607a90118f11902ea3fa62cbf948e15125 Mon Sep 17 00:00:00 2001 From: "ignacio.pena@coinfabrik.com" Date: Fri, 6 Dec 2024 16:52:29 -0300 Subject: [PATCH 4/5] btc-peg-in doc minor link fix and summary refactor --- SUMMARY.md | 7 ++++--- developers/contracts/README.md | 4 ++-- developers/contracts/btc-peg-in-endpoint-v2-03.md | 3 ++- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/SUMMARY.md b/SUMMARY.md index faea2e3..5812f45 100644 --- a/SUMMARY.md +++ b/SUMMARY.md @@ -24,9 +24,10 @@ - [Security Audits](security-audits.md) -- [Developers](developers/contracts/README.md) - - [btc-peg-in-endpoint-v2-03](developers/contracts/btc-peg-in-endpoint-v2-03.md) - - [meta-peg-in-endpoint-v2-02](developers/contracts/meta-peg-in-endpoint-v2-02.md) +## 🎮 Developers +* [Smart Contracts](developers/contracts/README.md) + * [btc peg-in endpoint v2-03](developers/contracts/btc-peg-in-endpoint-v2-03.md) + * [meta peg-in endpoint v2-02](developers/contracts/meta-peg-in-endpoint-v2-02.md)