Skip to content

Commit ddcec31

Browse files
authored
Merge pull request #3416 from DFXswiss/develop
Release: develop -> main
2 parents f3719c9 + 63b1f75 commit ddcec31

46 files changed

Lines changed: 1833 additions & 123 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = class AddArkBtcAsset1773590400000 {
2+
name = 'AddArkBtcAsset1773590400000'
3+
4+
async up(queryRunner) {
5+
await queryRunner.query(`
6+
IF NOT EXISTS (SELECT 1 FROM "dbo"."asset" WHERE "uniqueName" = 'Ark/BTC')
7+
INSERT INTO "dbo"."asset" (
8+
"name", "type", "buyable", "sellable", "chainId", "dexName", "category", "blockchain", "uniqueName", "description",
9+
"comingSoon", "decimals", "paymentEnabled", "refundEnabled", "cardBuyable", "cardSellable", "instantBuyable", "instantSellable",
10+
"financialType", "ikna", "personalIbanEnabled", "amlRuleFrom", "amlRuleTo", "priceRuleId",
11+
"approxPriceUsd", "approxPriceChf", "approxPriceEur", "sortOrder"
12+
) VALUES (
13+
'BTC', 'Coin', 1, 1, NULL, 'BTC', 'Public', 'Ark', 'Ark/BTC', 'Ark',
14+
0, NULL, 1, 1, 0, 0, 0, 0,
15+
'BTC', 0, 0, 0, 0, 11,
16+
NULL, NULL, NULL, NULL
17+
)
18+
`);
19+
}
20+
21+
async down(queryRunner) {
22+
await queryRunner.query(`DELETE FROM "dbo"."asset" WHERE "uniqueName" = 'Ark/BTC'`);
23+
}
24+
}

package-lock.json

Lines changed: 284 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"dependencies": {
2929
"@arbitrum/sdk": "^3.7.3",
30+
"@arkade-os/sdk": "^0.4.3",
3031
"@azure/storage-blob": "^12.29.1",
3132
"@blockfrost/blockfrost-js": "^6.1.0",
3233
"@buildonspark/spark-sdk": "^0.6.7",
@@ -173,7 +174,8 @@
173174
"rootDir": "src",
174175
"moduleNameMapper": {
175176
"^src/(.*)$": "<rootDir>/$1",
176-
"^@dfinity/(ledger-icp|ledger-icrc|utils)$": "<rootDir>/integration/blockchain/icp/__mocks__/dfinity-$1.mock.ts"
177+
"^@dfinity/(ledger-icp|ledger-icrc|utils)$": "<rootDir>/integration/blockchain/icp/__mocks__/dfinity-$1.mock.ts",
178+
"^@arkade-os/sdk$": "<rootDir>/integration/blockchain/ark/__mocks__/arkade-sdk.mock.ts"
177179
},
178180
"testRegex": ".*\\.spec\\.ts$",
179181
"transform": {

0 commit comments

Comments
 (0)