Skip to content

Commit b22f3fb

Browse files
committed
feat(sdk-coin-canton): enabling unspents tab for cc
Ticket: CHALO-331
1 parent 56ad471 commit b22f3fb

3 files changed

Lines changed: 11 additions & 3 deletions

File tree

modules/sdk-coin-dot/test/unit/dot.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,11 @@ describe('DOT:', function () {
275275
freeBalance: 1510000000000,
276276
});
277277
const getFeeCB = sandBox.stub(Dot.prototype, 'getFee' as keyof Dot);
278+
// Default avoids RPC when tests use a recoveryDestination other than destAddr (e.g. unsigned sweep fixture).
279+
getFeeCB.resolves(15783812856);
278280
getFeeCB.withArgs(destAddr, testData.wrwUser.walletAddress0, 1510000000000).resolves(15783812856);
281+
const getMaterialCB = sandBox.stub(Dot.prototype, 'getMaterial' as keyof Dot);
282+
getMaterialCB.resolves(utils.getMaterial(coins.get('tdot')));
279283
});
280284

281285
afterEach(function () {
@@ -461,6 +465,8 @@ describe('DOT:', function () {
461465
getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress1, 10000000000).resolves(15783812856);
462466
getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress2, 1510000000000).resolves(15783812856);
463467
getFeeCB.withArgs(baseAddr, testData.consolidationWrwUser.walletAddress3, 1510000000000).resolves(15783812856);
468+
const getMaterialCB = sandBox.stub(Dot.prototype, 'getMaterial' as keyof Dot);
469+
getMaterialCB.resolves(utils.getMaterial(coins.get('tdot')));
464470
});
465471

466472
afterEach(function () {
@@ -699,6 +705,8 @@ describe('DOT:', function () {
699705
nonce: nonce,
700706
freeBalance: 0,
701707
});
708+
const getFeeCB = sandBox.stub(Dot.prototype, 'getFee' as keyof Dot);
709+
getFeeCB.resolves(15783812856);
702710
});
703711

704712
afterEach(function () {

modules/sdk-coin-kaspa/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@
4040
]
4141
},
4242
"dependencies": {
43-
"@bitgo/sdk-core": "^36.40.0",
43+
"@bitgo/sdk-core": "^36.41.0",
4444
"@bitgo/secp256k1": "^1.11.0",
45-
"@bitgo/statics": "^58.35.0",
45+
"@bitgo/statics": "^58.36.0",
4646
"bignumber.js": "9.0.0",
4747
"blakejs": "^1.2.1"
4848
},

modules/statics/src/allCoinsAndTokens.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3365,7 +3365,7 @@ export const allCoinsAndTokens = [
33653365
'Canton Coin',
33663366
Networks.main.canton,
33673367
UnderlyingAsset.CANTON,
3368-
CANTON_FEATURES,
3368+
[...CANTON_FEATURES, CoinFeature.UNSPENT_MODEL],
33693369
KeyCurve.Ed25519
33703370
),
33713371
canton(

0 commit comments

Comments
 (0)