Skip to content

WIP : Dev swap - #26

Closed
sportron-ledger wants to merge 7 commits into
developfrom
dev-swap
Closed

sportron-ledger wants to merge 7 commits into
developfrom
dev-swap

Conversation

@sportron-ledger

Copy link
Copy Markdown
Contributor

Checklist

  • App update process has been followed
  • Target branch is develop
  • Application version has been bumped

@sportron-ledger sportron-ledger changed the title Dev swap WIP : Dev swap Jul 23, 2026

/// Convert params->amount into uint64_t
u128_t raw_amount = {0};
if (!swap_str_to_u128((const char *) params->amount, params->amount_length, &raw_amount)) {
PRINTF("Validated ticker: %s, decimals: %d\n", swap_validated.ticker, swap_validated.decimals);

// Save amount
if (!swap_str_to_u128(
G_context.tx.transfer.token_info->ticker);

if (G_called_from_swap) {
review_transaction(swap_check_validity(&G_context.tx.transfer, total_fees));
Comment thread src/account/account.c
Comment on lines +35 to +37
/*#define HASH_INPUT_MAX_LENGTH (8)

static field_t hash_input[HASH_INPUT_MAX_LENGTH];
static char text_buffer[32];
static field_t hash_input[HASH_INPUT_MAX_LENGTH];*/
Comment thread src/account/account.c
{
_Static_assert(HASH_INPUT_MAX_LENGTH >= 4, "hash_input size won't fit");
int status = -1;
//_Static_assert(HASH_INPUT_MAX_LENGTH >= 4, "hash_input size won't fit");
Comment thread src/account/account.c
{
_Static_assert(HASH_INPUT_MAX_LENGTH >= 6, "hash_input size won't fit");
int status = -1;
//_Static_assert(HASH_INPUT_MAX_LENGTH >= 6, "hash_input size won't fit");
Comment thread src/account/account.c
static int graph_key_from_view_key(const scalar_t *view_key, field_t *graph_key)
{
_Static_assert(HASH_INPUT_MAX_LENGTH >= 7, "hash_input size won't fit");
//_Static_assert(HASH_INPUT_MAX_LENGTH >= 7, "hash_input size won't fit");
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 67.50000% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.72%. Comparing base (b3c6a9d) to head (5bc2ffb).

Files with missing lines Patch % Lines
src/helper/send_response.c 52.94% 5 Missing and 3 partials ⚠️
src/account/account.c 70.00% 3 Missing ⚠️
src/account/signature.c 0.00% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                    Coverage Diff                     @@
##           dev-new-tokens-support      #26      +/-   ##
==========================================================
+ Coverage                   68.58%   68.72%   +0.13%     
==========================================================
  Files                          43       44       +1     
  Lines                        5153     5211      +58     
  Branches                      837      850      +13     
==========================================================
+ Hits                         3534     3581      +47     
- Misses                       1351     1358       +7     
- Partials                      268      272       +4     
Flag Coverage Δ
unittests 68.72% <67.50%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

Copy link
Copy Markdown
Contributor

Code coverage report

Code Coverage

Per-file coverage
Package Line Rate Branch Rate Health
src.account 84% 68%
src.crypto 95% 82%
src.db 100% 100%
src.format 98% 97%
src.helper 78% 37%
src.swap 100% 100%
src.transaction 92% 80%
Summary 91% (1718 / 1895) 76% (664 / 871)

@sportron-ledger
sportron-ledger force-pushed the dev-new-tokens-support branch 6 times, most recently from 9af50fb to ac6e3a4 Compare August 4, 2026 13:24
Base automatically changed from dev-new-tokens-support to develop August 5, 2026 07:43
@sportron-ledger

Copy link
Copy Markdown
Contributor Author

Replaced by #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants