Skip to content

Bounty #2 completed (with assistance from kevkevin - #9

Merged
islandbitcoin merged 3 commits into
mainfrom
bounty-2
Oct 8, 2023
Merged

islandbitcoin merged 3 commits into
mainfrom
bounty-2

Conversation

@islandbitcoin

Copy link
Copy Markdown
Contributor

No description provided.

@ecurrencyhodler

Copy link
Copy Markdown

Closes #7

@kevkevinpal kevkevinpal mentioned this pull request Oct 6, 2023
Comment thread src/servers/authorization/index.ts Outdated
const username = user.name
const password = user.pass
const deviceId = username
const deviceIdRaw: string = username

@kevkevinpal kevkevinpal Oct 6, 2023 •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

seems like we just use the username as the deviceIdRaw not sure if it makes more sense just to use username on line 208 and 198 instead of creating a new variable here

Comment thread src/services/IbexHelper/IbexHelper.ts Outdated

// import IBEX_TOKEN from .env file
const IBEX_TOKEN = process.env.IBEX_TOKEN
const IBexPluginBaseURL = "http://api-development.flashapp.me:8760/api/v1"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should this be an env variable?

Comment thread src/services/IbexHelper/IbexHelper.ts Outdated
headers: defaultHeaders,
}

if (methodType === "GET") {

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

maybe a switch statement might make more sense here but this works aswell

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

changed to switch statement

Comment thread src/services/mongoose/wallets.ts Outdated
currencyId: 3,
},
)
console.log("IbexAccountCreationResponse", IbexAccountCreationResponse)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

we can probably delete this console.log

!IbexAccountCreationResponse.data ||
!IbexAccountCreationResponse.data["data"]["id"]
) {
console.error({ error: "unable to get IbexAccountCreationResponse" })

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

should we throw an error here if it fails cause then we will create a new wallet with an empty ibexAccountId

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

what is the alternative? Doesn't this like take care of the empty ibexAccountId scenario?

id: currency === "USD" ? ibexAccountId : crypto.randomUUID(),

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ya that should handle the scenario, I'm just not sure if we would want a random uuid but if that works for you then I'm good with it aswell

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

wait that doesnt take care of the empty ibexAccountId scenario because it will use the empty one if currency === "USD" we would want currency === "USD" && !!ibexAccountId

@kevkevinpal kevkevinpal left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

added some comments but PR is looking good to me!

@islandbitcoin islandbitcoin self-assigned this Oct 8, 2023
@islandbitcoin
islandbitcoin merged commit f99f6f6 into main Oct 8, 2023
islandbitcoin added a commit that referenced this pull request Feb 17, 2024
* completed

* PR review changes made

* PR review changes made
@brh28
brh28 deleted the bounty-2 branch December 13, 2024 14:31
islandbitcoin added a commit that referenced this pull request Apr 22, 2026
Per Dread 2026-04-22 18:39 ET: "we need to update all the docs so they no
longer say NEW- on the issues".

Cascade #8 mirrored the plan into Linear (ENG-345…ENG-363 + ENG-356). This
cascade replaces every inline use of the old placeholder identifiers across
the doc set with their live Linear IDs.

Mechanism (two passes):
1. Bulk substring scrub (longest-prefix-first ordered table) — 491 subs
   across 10 files. Disambiguations:
     NEW-OPTIN  → ENG-345 (server) / ENG-346 (mobile); bare → "ENG-345/346 (opt-in)"
     NEW-1      → ENG-351 (gql)    / ENG-352 (svc);    bare → "ENG-351/352"
     NEW-CASHOUT-V1-WALLET → ENG-357
     NEW-COUNTRY-ALLOWLIST → ENG-347
     NEW-ERPNEXT-LEDGER    → ENG-348
     NEW-2/3/4/6/7/8/10/11/13 → ENG-353/349/350/354/355/358/359/360/363
     NEW-5/9/12 (retracted, folded into ENG-286/ENG-276) → labeled inline
     FEE-1     → ENG-356
     NEW-EA-VERIFIED-WEBHOOK → "EA-VERIFIED-WEBHOOK (proposed; not yet filed)"
2. Cleanup pass — 80 hand-targeted fixes for bulk-scrub artifacts:
   - SESSION-CONTEXT redundant "**ENG-345** (ENG-345 (opt-in server) — …)"
     → "**ENG-345** (Cash Wallet opt-in: server — …)" with descriptive labels.
   - Doubled "[retired → ENG-276 acceptance] + [retired → ENG-276 acceptance]"
     → distinguished as "Bridge-fee persistence + replay-tooling acceptance".
   - LINEAR-PROPOSAL self-referential ID translation table fixed: leftmost
     column restored with backtick-quoted original placeholder names
     (`NEW-OPTIN`, `NEW-1`, …) and the section reframed as a
     "Historical placeholder map (cascade #8 → cascade #9)" Rosetta stone
     for archaeology only — no longer current ID source-of-truth.
   - WEBHOOKS.md ASCII-diagram cells with `NEW-ERPNEXT-\nLEDGER` token
     wrapped across lines — replaced as multi-line literal patterns to
     compact "ENG-348" cell labels.
   - LINEAR-VS-PROPOSAL retracted-row cells got italic descriptive labels
     (`_outbound-timeout work_`, `_Bridge-fee persistence_`,
     `_backfill/replay tooling_`) instead of duplicate retired markers.

Per-file substitutions (bulk + cleanup):
  README.md                       12
  EXECUTIVE-SUMMARY.md            16
  ARCHITECTURE.md                 28
  FLOWS.md                        40
  WEBHOOKS.md                      9 (incl. 3 multi-line ASCII cells)
  OPERATIONS.md                   21
  SESSION-CONTEXT-2026-04-22.md   72
  planning/LINEAR-PROPOSAL.md    310
  planning/LINEAR-VS-PROPOSAL.md  43
  planning/LINEAR-ORPHANS.md      20

Residual NEW-* tokens after this cascade: only inside backtick-quoted
historical-archaeology cells (the LINEAR-PROPOSAL Historical-placeholder-map
table + a handful of "former placeholder names from earlier drafts" callouts
in SESSION-CONTEXT and LINEAR-VS-PROPOSAL). Every inline / narrative
reference now uses the live ENG ID.

SESSION-CONTEXT cascade #9 history-table row + footer SHA bump will follow
in a tiny cleanup commit (chicken-and-egg — can't reference our own SHA in
this commit's contents).
islandbitcoin added a commit that referenced this pull request Apr 22, 2026
Tiny follow-up to 4f9fd48 (cascade #9 NEW-* placeholder scrub).

Updates:
- HEAD line bumped 148da20 → 4f9fd48
- Cascade #8 row "(this push)" placeholder backfilled with 148da20 SHA
- New cascade #9 row added with full mechanism narrative (bulk scrub +
  cleanup pass, per-file counts, intentional residual-token policy)
- Footer "Last pushed cascade" + "Previous" lines refreshed

Chicken-and-egg cleanup — can't reference our own commit SHA in the
content of that same commit, so the cascade #9 commit body itself
explains the placeholder scrub but this small follow-up records it
in the SESSION-CONTEXT history table.
islandbitcoin added a commit that referenced this pull request Apr 23, 2026
Chicken-and-egg follow-up: cascade #11 can't reference its own commit
SHA in the doc body. This single-file commit updates SESSION-CONTEXT:

  - HEAD pointer: a25ff75 (cascade #10) → 0eedf92 (cascade #11)
  - History row 11: "(pending — this cascade)" → "0eedf92"
  - Footer: cascade #11 promoted to "Last pushed"; #10 to "Previous";
    #9 to "Earlier"
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.

3 participants