-
Notifications
You must be signed in to change notification settings - Fork 22
feat: add Raiffeisen as full bank asset (EUR + CHF) #3301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
TaprootFreak
wants to merge
6
commits into
develop
Choose a base branch
from
feature/add-raiffeisen-bank-assets
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
25b8c19
feat: add Raiffeisen as full bank asset (EUR + CHF)
TaprootFreak 414b951
fix: correct bank 14 name from "Maerki Baumann" to "Olkypay"
TaprootFreak 38231fd
fix: add Raiffeisen to BuyCrypto.pendingInputAmount switch
TaprootFreak 33990e5
fix: add Raiffeisen to BankTxRepeat/BankTxReturn + migration + fix se…
TaprootFreak 32b8a34
chore: remove defunct bank 14 from seed
TaprootFreak 9f15a6d
fix: remove unused typeorm import from Raiffeisen migration
TaprootFreak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| const { MigrationInterface, QueryRunner } = require("typeorm"); | ||
|
github-code-quality[bot] marked this conversation as resolved.
Fixed
|
||
|
|
||
| module.exports = class AddRaiffeisenBankAssets1772303358000 { | ||
| name = 'AddRaiffeisenBankAssets1772303358000' | ||
|
|
||
| async up(queryRunner) { | ||
| // Insert Raiffeisen EUR asset | ||
| await queryRunner.query(` | ||
| SET IDENTITY_INSERT "dbo"."asset" ON; | ||
| INSERT INTO "dbo"."asset" ("id", "name", "type", "buyable", "sellable", "dexName", "category", "blockchain", "uniqueName", "comingSoon", "ikna", "cardBuyable", "cardSellable", "instantBuyable", "instantSellable", "financialType", "paymentEnabled", "amlRuleFrom", "amlRuleTo", "refundEnabled", "refEnabled") | ||
| VALUES (420, 'EUR', 'Custody', 0, 0, 'EUR', 'Private', 'Raiffeisen', 'Raiffeisen/EUR', 0, 0, 0, 0, 0, 0, 'EUR', 0, 0, 0, 1, 0); | ||
| SET IDENTITY_INSERT "dbo"."asset" OFF; | ||
| `); | ||
|
|
||
| // Insert Raiffeisen CHF asset | ||
| await queryRunner.query(` | ||
| SET IDENTITY_INSERT "dbo"."asset" ON; | ||
| INSERT INTO "dbo"."asset" ("id", "name", "type", "buyable", "sellable", "dexName", "category", "blockchain", "uniqueName", "comingSoon", "ikna", "cardBuyable", "cardSellable", "instantBuyable", "instantSellable", "financialType", "paymentEnabled", "amlRuleFrom", "amlRuleTo", "refundEnabled", "refEnabled") | ||
| VALUES (421, 'CHF', 'Custody', 0, 0, 'CHF', 'Private', 'Raiffeisen', 'Raiffeisen/CHF', 0, 0, 0, 0, 0, 0, 'CHF', 0, 0, 0, 1, 0); | ||
| SET IDENTITY_INSERT "dbo"."asset" OFF; | ||
| `); | ||
|
|
||
| // Link bank 12 (Raiffeisen EUR) to asset 420 | ||
| await queryRunner.query(`UPDATE "dbo"."bank" SET "assetId" = 420 WHERE "id" = 12`); | ||
|
|
||
| // Link bank 13 (Raiffeisen CHF) to asset 421 | ||
| await queryRunner.query(`UPDATE "dbo"."bank" SET "assetId" = 421 WHERE "id" = 13`); | ||
| } | ||
|
|
||
| async down(queryRunner) { | ||
| // Unlink banks | ||
| await queryRunner.query(`UPDATE "dbo"."bank" SET "assetId" = NULL WHERE "id" IN (12, 13)`); | ||
|
|
||
| // Remove Raiffeisen assets | ||
| await queryRunner.query(`DELETE FROM "dbo"."asset" WHERE "id" IN (420, 421)`); | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| id,updated,created,name,iban,bic,currency,receive,send,sctInst,amlEnabled,assetId | ||
| 16,2025-12-05 14:27:39,2025-12-05 14:27:39,Yapeal,CH6783019DFXEUR000002,YAPECHZ2,EUR,TRUE,TRUE,FALSE,TRUE,405 | ||
| 15,2025-12-05 14:27:39,2025-12-05 14:27:39,Yapeal,CH5283019DFXCHF000001,YAPECHZ2,CHF,TRUE,TRUE,FALSE,TRUE,404 | ||
| 14,2025-09-10 23:30:56,2025-09-10 23:30:56,Maerki Baumann,LU116060002000005040,OLKILUL1,EUR,FALSE,FALSE,FALSE,TRUE, | ||
| 13,2025-09-10 23:30:07,2025-09-10 23:30:07,Maerki Baumann,CH4880808002186504370,RAIFCH22,CHF,FALSE,FALSE,FALSE,TRUE, | ||
| 12,2025-09-10 23:30:07,2025-09-10 23:30:07,Maerki Baumann,CH7780808002608614092,RAIFCH22,EUR,FALSE,FALSE,FALSE,TRUE, | ||
| 14,2025-09-10 23:30:56,2025-09-10 23:30:56,Olkypay,LU116060002000005040,OLKILUL1,EUR,FALSE,FALSE,FALSE,TRUE,269 | ||
| 13,2025-09-10 23:30:07,2025-09-10 23:30:07,Raiffeisen,CH4880808002186504370,RAIFCH22,CHF,FALSE,FALSE,FALSE,TRUE,421 | ||
| 12,2025-09-10 23:30:07,2025-09-10 23:30:07,Raiffeisen,CH7780808002608614092,RAIFCH22,EUR,FALSE,FALSE,FALSE,TRUE,420 | ||
| 8,2025-09-10 23:30:06,2025-09-10 23:30:06,Maerki Baumann,CH3808573109968202333,MAEBCHZZ,USD,FALSE,FALSE,FALSE,TRUE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.