Skip to content

Commit

Permalink
fix: rebase issue
Browse files Browse the repository at this point in the history
Signed-off-by: Stéphane Prohaszka <stephane.prohaszka@ledger.fr>
  • Loading branch information
sprohaszka-ledger committed Aug 7, 2024
1 parent db0bb4f commit 88a302d
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 324 deletions.
2 changes: 1 addition & 1 deletion libs/coin-modules/coin-stellar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"@faker-js/faker": "^8.4.1",
"@types/invariant": "^2.2.2",
"@types/jest": "^29.5.10",
"@types/node": "^16.11.7",
"@types/node": "^20.8.10",
"jest": "^29.7.0",
"ts-jest": "^29.1.1"
}
Expand Down
4 changes: 2 additions & 2 deletions libs/coin-modules/coin-stellar/src/api/index.integ.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ describe("Stellar Api", () => {
});

// Then
expect(result.slice(0, 68)).toEqual(
"AAAAAgAAAAD9Ai6ZfJT42rd0Nl8YJeODFgju688SXPzMZvSA369YPwAAAGQAAHloAAAI",
expect(result.slice(0, 67)).toEqual(
"AAAAAgAAAAD9Ai6ZfJT42rd0Nl8YJeODFgju688SXPzMZvSA369YPwAAAGQAAHloAAA",
);
expect(result.slice(70)).toEqual(
"AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAAD9Ai6ZfJT42rd0Nl8YJeODFgju688SXPzMZvSA369YPwAAAAAAAAAAAA9CQAAAAAAAAAAA",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { broadcast } from "./broadcast";
import { createFixtureAccount, createFixtureOperation } from "./types/bridge.fixture";
import { createFixtureAccount, createFixtureOperation } from "../types/bridge.fixture";

const mockBroadcast = jest.fn();
jest.mock("./network", () => ({
jest.mock("../network", () => ({
broadcastTransaction: (sig: unknown) => mockBroadcast(sig),
}));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import BigNumber from "bignumber.js";
import { buildTransaction } from "./buildTransaction";
import { createFixtureAccount, createFixtureTransaction } from "../types/bridge.fixture";
import { NetworkInfo } from "../types";
import coinConfig, { type StellarCoinConfig } from "../config";
import { NetworkInfo } from "../types";

describe("buildTransaction", () => {
const sender = "GCTS5ANSL6YCXR2M4XXM5BPN34UUT3M2VUJWVYOX5EMSHZC3T7O5Z6NZ";
const sender = "GAT4LBXYJGJJJRSNK74NPFLO55CDDXSYVMQODSEAAH3M6EY4S7LPH5GV";

beforeAll(() => {
coinConfig.setCoinConfig(
Expand All @@ -19,22 +19,24 @@ describe("buildTransaction", () => {
);
});

it("throws an error when no fees are setted in the transaction", async () => {
it("throws an error if transaction has no NetworkInfo", async () => {
// Given
const account = createFixtureAccount();
const transaction = createFixtureTransaction();
const account = createFixtureAccount({ freshAddress: sender });
const transaction = createFixtureTransaction({ fees: BigNumber(1) });

// When
await expect(buildTransaction(account, transaction)).rejects.toThrow("FeeNotLoaded");
await expect(buildTransaction(account, transaction)).rejects.toThrow("stellar family");
});

it("throws an error if transaction has no NetworkInfo", async () => {
it("throws an error when no fees are setted in the transaction", async () => {
// Given
const account = createFixtureAccount({ freshAddress: sender });
const transaction = createFixtureTransaction({ fees: BigNumber(1) });
const account = createFixtureAccount();
const transaction = createFixtureTransaction({
networkInfo: { family: "stellar" } as NetworkInfo,
});

// When
await expect(buildTransaction(account, transaction)).rejects.toThrow("stellar family");
await expect(buildTransaction(account, transaction)).rejects.toThrow("FeeNotLoaded");
});

it.skip("crash if transaction amount is 0", async () => {
Expand Down Expand Up @@ -89,8 +91,8 @@ describe("buildTransaction", () => {
expect((operation as any).amount).toEqual("0.0000010");
expect((operation as any).asset.code).toEqual("XLM");
expect((operation as any).asset.issuer).toBeUndefined();
expect(builtTransaction.toXDR().slice(0, 68)).toEqual(
"AAAAAgAAAACnLoGyX7Arx0zl7s6F7d8pSe2arRNq4dfpGSPkW5/d3AAAAAECbx/3AAHJ",
expect(builtTransaction.toXDR().slice(0, 67)).toEqual(
"AAAAAgAAAAAnxYb4SZKUxk1X+NeVbu9EMd5YqyDhyIAB9s8THJfW8wAAAAEBn2AnAAA",
);
expect(builtTransaction.toXDR().slice(70)).toEqual(
"AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAADw9kGYtpM1vsCgDoHjZOVO/sjTKLsmA51f8vdM9oaecgAAAAAAAAAAAAAACgAAAAAAAAAA",
Expand Down Expand Up @@ -124,8 +126,8 @@ describe("buildTransaction", () => {
expect((operation as any).amount).toEqual("50.0239411");
expect((operation as any).asset.code).toEqual("XLM");
expect((operation as any).asset.issuer).toBeUndefined();
expect(builtTransaction.toXDR().slice(0, 68)).toEqual(
"AAAAAgAAAACnLoGyX7Arx0zl7s6F7d8pSe2arRNq4dfpGSPkW5/d3AAAAAECbx/3AAHJ",
expect(builtTransaction.toXDR().slice(0, 67)).toEqual(
"AAAAAgAAAAAnxYb4SZKUxk1X+NeVbu9EMd5YqyDhyIAB9s8THJfW8wAAAAEBn2AnAAA",
);
expect(builtTransaction.toXDR().slice(70)).toEqual(
"AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAQAAAADw9kGYtpM1vsCgDoHjZOVO/sjTKLsmA51f8vdM9oaecgAAAAAAAAAAHdEMMwAAAAAAAAAA",
Expand Down Expand Up @@ -157,8 +159,8 @@ describe("buildTransaction", () => {
expect((operation as any).asset.issuer).toEqual(
"GA5ZSEJYB37JRC5AVCIA5MOP4RHTM335X2KGX3IHOJAPP5RE34K4KZVN",
);
expect(builtTransaction.toXDR().slice(0, 68)).toEqual(
"AAAAAgAAAACnLoGyX7Arx0zl7s6F7d8pSe2arRNq4dfpGSPkW5/d3AAAAAECbx/3AAHJ",
expect(builtTransaction.toXDR().slice(0, 67)).toEqual(
"AAAAAgAAAAAnxYb4SZKUxk1X+NeVbu9EMd5YqyDhyIAB9s8THJfW8wAAAAEBn2AnAAA",
);
});

Expand Down Expand Up @@ -186,8 +188,8 @@ describe("buildTransaction", () => {
expect(operation.type).toEqual("payment");
expect((operation as any).asset.code).toEqual("XLM");
expect((operation as any).asset.issuer).toBeUndefined();
expect(builtTransaction.toXDR().slice(0, 68)).toEqual(
"AAAAAgAAAACnLoGyX7Arx0zl7s6F7d8pSe2arRNq4dfpGSPkW5/d3AAAAAECbx/3AAHJ",
expect(builtTransaction.toXDR().slice(0, 67)).toEqual(
"AAAAAgAAAAAnxYb4SZKUxk1X+NeVbu9EMd5YqyDhyIAB9s8THJfW8wAAAAEBn2AnAAA",
);
expect(builtTransaction.toXDR().slice(70)).toEqual(
"AAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAVIZWxsbwAAAAAAAAEAAAAAAAAAAQAAAADw9kGYtpM1vsCgDoHjZOVO/sjTKLsmA51f8vdM9oaecgAAAAAAAAAAAAAACgAAAAAAAAAA",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import BigNumber from "bignumber.js";
import { SignOperationEvent } from "@ledgerhq/types-live";
import { buildSignOperation } from "./signOperation";
import { setCoinConfig, type StellarCoinConfig } from "./config";
import { StellarSigner } from "./types/signer";
import { createFixtureAccount, createFixtureTransaction } from "./types/bridge.fixture";
import { NetworkInfo } from "./types";
import { Keypair } from "@stellar/stellar-sdk";
import buildTransaction from "./buildTransaction";
import BigNumber from "bignumber.js";
import { subtle } from "crypto";
import coinConfig, { type StellarCoinConfig } from "../config";
import { NetworkInfo } from "../types";
import { createFixtureAccount, createFixtureTransaction } from "../types/bridge.fixture";
import { StellarSigner } from "../types/signer";
import buildTransaction from "./buildTransaction";
import { buildSignOperation } from "./signOperation";

const stellarKp = Keypair.random();
const mockLoadAccount = jest.fn().mockResolvedValue(
Expand All @@ -28,8 +28,8 @@ const mockLoadAccount = jest.fn().mockResolvedValue(
incrementSequenceNumber: () => "1",
},
);
jest.mock("./network", () => ({
...jest.requireActual("./network"),
jest.mock("../network", () => ({
...jest.requireActual("../network"),
loadAccount: () => mockLoadAccount(),
fetchSequence: jest.fn(),
}));
Expand All @@ -46,9 +46,12 @@ describe.skip("signOperation", () => {
const deviceId = "dummyDeviceId";

beforeAll(() => {
setCoinConfig(
coinConfig.setCoinConfig(
(): StellarCoinConfig => ({
status: { type: "active" },
explorer: {
url: "https://localhost",
},
}),
);
});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { firstValueFrom, reduce } from "rxjs";
import { Account, AccountBridge, SyncConfig, TransactionCommon } from "@ledgerhq/types-live";
import type { StellarCoinConfig } from "./config";
import { Transaction, StellarAccount } from "./types";
import { createBridges } from "./bridge/index";
import { createFixtureAccount } from "./types/bridge.fixture";
import type { StellarCoinConfig } from "../config";
import { Transaction, StellarAccount } from "../types";
import { createBridges } from "../bridge/index";
import { createFixtureAccount } from "../types/bridge.fixture";

const defaultSyncConfig = {
paginationConfig: {},
Expand Down
196 changes: 0 additions & 196 deletions libs/coin-modules/coin-stellar/src/buildTransaction.integ.test.ts

This file was deleted.

Loading

1 comment on commit 88a302d

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Bot] Testing with 'Nitrogen' ❌ 4 txs ($6.33) ⏲ 5min 38s

❌ 1 specs have problems: Stellar

What is the bot and how does it work? Everything is documented here!

❌ 4 mutation errors
necessary accounts resynced in 0.20ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5 (! sum of ops 16.1747557 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~14.661
★ using mutation 'Send max XLM'
→ TO undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
✔️ transaction 
    SEND MAX
    TO GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM
    with fees=0.0005 XLM
STATUS (1060ms)
  amount: 14.660563 XLM
  estimated fees: 0.0005 XLM
  total spent: 14.660563 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"PGCRGKY3RE42IT7PU","x":7,"y":17,"w":115,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"NLU2SHM","x":38,"y":17,"w":84,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.1s – ends at 2024-08-07T15:01:16.929Z)
necessary accounts resynced in 0.25ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5 (! sum of ops 15.2054652 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~13.6932
★ using mutation 'Send max XLM'
→ TO undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5
✔️ transaction 
    SEND MAX
    TO GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ
    with fees=0.0005 XLM
  memo=Ledger Live
STATUS (1347ms)
  amount: 13.6927972 XLM
  estimated fees: 0.0005 XLM
  total spent: 13.6927972 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"KUJREJMHVV2JIUBZS","x":10,"y":17,"w":112,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"VY2GAHZ","x":40,"y":17,"w":82,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.4s – ends at 2024-08-07T15:01:16.932Z)
necessary accounts resynced in 0.25ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5 (! sum of ops 1.7531513 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~0.239411
★ using mutation 'move ~50% XLM'
→ TO undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5
✔️ transaction 
    SEND 0.1222034 XLM
    TO GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI
    with fees=0.0005 XLM
STATUS (1081ms)
  amount: 0.1222034 XLM
  estimated fees: 0.0005 XLM
  total spent: 0.1227034 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"EB27XVX7B7D5RIA3K","x":11,"y":17,"w":111,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"OLSKTI","x":45,"y":17,"w":77,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.1s – ends at 2024-08-07T15:01:16.935Z)
necessary accounts resynced in 0.24ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 31.884 XLM (514ops) (GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF on 44'/148'/4') sep5#4 js:2:stellar:GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF:sep5 (! sum of ops 31.8921926 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~30.384
★ using mutation 'move ~50% XLM'
→ TO undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
✔️ transaction 
    SEND 15.9794066 XLM
    TO GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM
    with fees=0.0005 XLM
STATUS (1222ms)
  amount: 15.9794066 XLM
  estimated fees: 0.0005 XLM
  total spent: 15.9799066 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"PGCRGKY3RE42IT7PU","x":7,"y":17,"w":115,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"NLU2SHM","x":38,"y":17,"w":84,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.3s – ends at 2024-08-07T15:01:16.938Z)
⚠️ 1 spec hints
  • Spec Stellar:
    • mutations should define a testDestination(): Send max XLM, move ~50% XLM
Details of the 4 mutations

Spec Stellar (6)

Spec Stellar found 6 Stellar accounts. Will use Stellar 5.5.0 on nanoS 2.1.0
undefined: 1.5005 XLM (580ops) (GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC on 44'/148'/0') sep5#0 js:2:stellar:GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC:sep5
undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5
undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5
undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
undefined: 31.884 XLM (514ops) (GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF on 44'/148'/4') sep5#4 js:2:stellar:GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF:sep5
undefined: 0 XLM (0ops) (GCMN2KYJPPHB4TMXXF2OZPMWVM5EQSDD76IMFOMET7YMN64VJDVHVNCM on 44'/148'/5') sep5#5 js:2:stellar:GCMN2KYJPPHB4TMXXF2OZPMWVM5EQSDD76IMFOMET7YMN64VJDVHVNCM:sep5
necessary accounts resynced in 0.20ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5 (! sum of ops 16.1747557 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~14.661
★ using mutation 'Send max XLM'
→ TO undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
✔️ transaction 
    SEND MAX
    TO GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM
    with fees=0.0005 XLM
STATUS (1060ms)
  amount: 14.660563 XLM
  estimated fees: 0.0005 XLM
  total spent: 14.660563 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"PGCRGKY3RE42IT7PU","x":7,"y":17,"w":115,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"NLU2SHM","x":38,"y":17,"w":84,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.1s – ends at 2024-08-07T15:01:16.940Z)
necessary accounts resynced in 0.25ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5 (! sum of ops 15.2054652 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~13.6932
★ using mutation 'Send max XLM'
→ TO undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5
✔️ transaction 
    SEND MAX
    TO GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ
    with fees=0.0005 XLM
  memo=Ledger Live
STATUS (1347ms)
  amount: 13.6927972 XLM
  estimated fees: 0.0005 XLM
  total spent: 13.6927972 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"KUJREJMHVV2JIUBZS","x":10,"y":17,"w":112,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"VY2GAHZ","x":40,"y":17,"w":82,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.4s – ends at 2024-08-07T15:01:16.944Z)
necessary accounts resynced in 0.25ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5 (! sum of ops 1.7531513 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~0.239411
★ using mutation 'move ~50% XLM'
→ TO undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5
✔️ transaction 
    SEND 0.1222034 XLM
    TO GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI
    with fees=0.0005 XLM
STATUS (1081ms)
  amount: 0.1222034 XLM
  estimated fees: 0.0005 XLM
  total spent: 0.1227034 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"EB27XVX7B7D5RIA3K","x":11,"y":17,"w":111,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"OLSKTI","x":45,"y":17,"w":77,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.1s – ends at 2024-08-07T15:01:16.946Z)
necessary accounts resynced in 0.24ms
▬ Stellar 5.5.0 on nanoS 2.1.0
→ FROM undefined: 31.884 XLM (514ops) (GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF on 44'/148'/4') sep5#4 js:2:stellar:GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF:sep5 (! sum of ops 31.8921926 XLM)  TokenAccount USDC: 0 usdc (0 ops)
max spendable ~30.384
★ using mutation 'move ~50% XLM'
→ TO undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
✔️ transaction 
    SEND 15.9794066 XLM
    TO GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM
    with fees=0.0005 XLM
STATUS (1222ms)
  amount: 15.9794066 XLM
  estimated fees: 0.0005 XLM
  total spent: 15.9799066 XLM
errors: 
warnings: 
⚠️ Error: device action timeout. Recent events was:
{"text":"PGCRGKY3RE42IT7PU","x":7,"y":17,"w":115,"h":32}
{"text":"Destination (4/4)","x":20,"y":3,"w":102,"h":32}
{"text":"NLU2SHM","x":38,"y":17,"w":84,"h":32}
{"text":"Sign","x":41,"y":3,"w":128,"h":32}
{"text":"Transaction","x":41,"y":17,"w":128,"h":32}
(totally spent 61.3s – ends at 2024-08-07T15:01:16.949Z)

Details of the 2 uncovered mutations

Spec Stellar (2)

  • add USDC asset: XLM balance is too low 1 (2)
  • move ~50% USDC asset: XLM balance is too low (2)
Portfolio ($6.33) – Details of the 1 currencies
Spec (accounts) State Remaining Runs (est) funds?
Stellar (6) 2801 ops , 58.9778 XLM ($6.33) 💪 999+ GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC
undefined: 1.5005 XLM (580ops) (GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC on 44'/148'/0') sep5#0 js:2:stellar:GDJPZPOWITPCBX3TIHB6N7E4WCHS6JBZKSNWGU34QYCJXKWBTUZY5RYC:sep5
undefined: 16.161 XLM (576ops) (GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ on 44'/148'/1') sep5#1 js:2:stellar:GC25SBJ3F2XGWRTS3DGPCNFAGQLNDBFUKUJREJMHVV2JIUBZSVY2GAHZ:sep5
undefined: 15.1933 XLM (577ops) (GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI on 44'/148'/2') sep5#2 js:2:stellar:GA4A2FH4YYI2RXPUC3NPGZQP7XX4CEJNREB27XVX7B7D5RIA3KOLSKTI:sep5
undefined: 1.73943 XLM (554ops) (GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM on 44'/148'/3') sep5#3 js:2:stellar:GDTKZ5E53DELQO33QAYYR6TS4JX44MP2PGCRGKY3RE42IT7PUNLU2SHM:sep5
undefined: 31.884 XLM (514ops) (GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF on 44'/148'/4') sep5#4 js:2:stellar:GBV2ROL25KKDSFCZC2TQPMUEN567YQHRWTRBYHCO5AKYWVIV4JKJ56AF:sep5
undefined: 0 XLM (0ops) (GCMN2KYJPPHB4TMXXF2OZPMWVM5EQSDD76IMFOMET7YMN64VJDVHVNCM on 44'/148'/5') sep5#5 js:2:stellar:GCMN2KYJPPHB4TMXXF2OZPMWVM5EQSDD76IMFOMET7YMN64VJDVHVNCM:sep5
Performance ⏲ 5min 38s

Time spent for each spec: (total across mutations)

Spec (accounts) preload scan re-sync tx status sign op broadcast test destination test
TOTAL 1.17ms 81s 1.67ms 4.7s N/A N/A N/A N/A
Stellar (5) 1.17ms 81s 1.67ms 4.7s N/A N/A N/A N/A

What is the bot and how does it work? Everything is documented here!

Please sign in to comment.