Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
17c4108
fix(utxo-lib): resolve Node.js 22.x strip-only mode compatibility issues
zahin-mohammad Aug 20, 2025
8ba2433
test(statics): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
4d825f5
feat(statics): convert enums to const objects
zahin-mohammad Aug 20, 2025
afcfc8d
fix(utxo-bin): use type-only import for BIP32Interface
zahin-mohammad Aug 20, 2025
2834b98
chore(root): update nvmrc to node 22.18.0
zahin-mohammad Aug 20, 2025
158dd9c
chore(utxo-core): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
befd84e
chore(utxo-staking): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
8a67f4d
chore(sdk-core): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
a433fc1
chore(sdk-coin-ada): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
60f9450
chore(abstract-eth): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
d990164
chore(sdk-coin-baby): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
f604d70
chore(sdk-coin-asi): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
3fde6dd
chore(sdk-coin-atom): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
0052856
chore(sdk-coin-dot): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
d1af840
chore(sdk-coin-bld): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
990eecf
chore(sdk-coin-sei): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
5976b60
chore(sdk-coin-coreum): migrate test runner from ts-node to tsx
zahin-mohammad Aug 20, 2025
a498aa3
chore(root): remove import = syntax for es imports
zahin-mohammad Aug 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.16.0
v22.18.0
2 changes: 1 addition & 1 deletion modules/abstract-eth/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
require: 'ts-node/register',
require: 'tsx',
timeout: '20000',
reporter: 'min',
'reporter-option': ['cdn=true', 'json=false'],
Expand Down
2 changes: 1 addition & 1 deletion modules/express/encryptedPrivKeys.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"61f039aad587c2000745c687373e0fa9": "{\"iv\":\"O74H8BBv86GBpoTzjVyzWw==\",\"v\":1,\"iter\":10000,\"ks\":256,\"ts\":64,\"mode\":\"ccm\",\"adata\":\"\",\"cipher\":\"aes\",\"salt\":\"7n8pAjXCfug=\",\"ct\":\"14MjiKBksaaayrwuc/w8vJ5C3yflQ15//dhLiOgYVqjhJJ7iKrcrjtgfLoI3+MKLaKCycNKi6vTs2xs8xJeSm/XhsOE9EfapkfGHdYuf4C6O1whNOyugZ0ZSOA/buDC3rvBbvCNtLDOxN5XWJN/RADOnZdHuVGk=\"}"
"61f039aad587c2000745c687373e0fa9": "{\"iv\":\"st0zgV8A7HF1cTeCRej3uQ==\",\"v\":1,\"iter\":10000,\"ks\":256,\"ts\":64,\"mode\":\"ccm\",\"adata\":\"\",\"cipher\":\"aes\",\"salt\":\"o3khfzQFU6A=\",\"ct\":\"eo+GIv9UcWGY+Bt0uO6sTXl6R0O8nYxh3lZBhEy8WC5exIyDy68yxZlfYCyIjG0t88E+1URAS0edozbCM/WNsgDdVN2vk4SmA60uImLzjLQW/RZF3Q77y/Tuey9yGS5EyiViNzX7MpnpNFURZBl88tZ6vkIryWM=\"}"
}
2 changes: 1 addition & 1 deletion modules/sdk-coin-ada/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
10 changes: 5 additions & 5 deletions modules/sdk-coin-ada/test/unit/ada.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
* @prettier
*/

import should = require('should');
import should from 'should';
import { randomBytes } from 'crypto';
import * as sinon from 'sinon';
import * as _ from 'lodash';
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
import { BitGoAPI } from '@bitgo/sdk-api';
import { TransactionType } from '@bitgo/sdk-core';

import {
rawTx,
enterpriseAccounts as accounts,
Expand All @@ -20,10 +23,7 @@ import {
ovcResponse,
ovcResponse2,
} from '../resources';
import * as _ from 'lodash';
import { Ada, KeyPair, Tada } from '../../src';
import { Transaction } from '../../src/lib';
import { TransactionType } from '../../../sdk-core/src/account-lib/baseCoin/enum';
import { Ada, KeyPair, Tada, Transaction } from '../../src';

describe('ADA', function () {
const coinName = 'ada';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-asi/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-asi/test/unit/asi.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import should = require('should');
import should from 'should';
import BigNumber from 'bignumber.js';
import sinon from 'sinon';
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-atom/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-atom/test/unit/atom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
wrwUser,
wrwUserDkls,
} from '../resources/atom';
import should = require('should');
import should from 'should';

describe('ATOM', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-baby/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-baby/test/unit/baby.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import BigNumber from 'bignumber.js';
import sinon from 'sinon';
import { Baby, Tbaby } from '../../src';
import { TEST_SEND_MANY_TX, TEST_SEND_TX, TEST_TX_WITH_MEMO, address } from '../resources/baby';
import should = require('should');
import should from 'should';
import utils from '../../src/lib/utils';

describe('Babylon', function () {
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-bld/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-bld/test/unit/bld.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
TEST_WITHDRAW_REWARDS_TX,
wrwUser,
} from '../resources/bld';
import should = require('should');
import should from 'should';

describe('BLD', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-coreum/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-coreum/test/unit/coreum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
testnetAddress,
wrwUser,
} from '../resources/tcoreum';
import should = require('should');
import should from 'should';

describe('Coreum', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-cronos/test/unit/cronos.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import should = require('should');
import should from 'should';
import BigNumber from 'bignumber.js';
import sinon from 'sinon';
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-dot/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-dot/test/unit/dot.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BitGoAPI } from '@bitgo/sdk-api';
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
import { randomBytes } from 'crypto';
import should = require('should');
import should from 'should';
import { Dot, Tdot, KeyPair } from '../../src';
import * as testData from '../fixtures';
import { chainName, txVersion, genesisHash, specVersion } from '../resources';
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-hash/test/unit/hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
testnetAddress,
wrwUser,
} from '../resources/hash';
import should = require('should');
import should from 'should';

describe('HASH', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-initia/test/unit/initia.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import should = require('should');
import should from 'should';
import BigNumber from 'bignumber.js';
import sinon from 'sinon';
import { TestBitGo, TestBitGoAPI } from '@bitgo/sdk-test';
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-injective/test/unit/injective.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ import {
TEST_WITHDRAW_REWARDS_TX,
wrwUser,
} from '../resources/injective';
import should = require('should');
import nock = require('nock');
import should from 'should';
import nock from 'nock';

describe('INJ', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-islm/test/unit/islm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
TEST_WITHDRAW_REWARDS_TX,
address,
} from '../resources/islm';
import should = require('should');
import should from 'should';

describe('Islm', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-mantra/test/unit/mantra.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import sinon from 'sinon';
import { Mantra, Tmantra } from '../../src';
import utils from '../../src/lib/utils';
import { TEST_SEND_MANY_TX, TEST_SEND_TX, TEST_TX_WITH_MEMO, address } from '../resources/mantra';
import should = require('should');
import should from 'should';

describe('Mantra', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-osmo/test/unit/osmo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
TEST_WITHDRAW_REWARDS_TX,
wrwUser,
} from '../resources/osmo';
import should = require('should');
import should from 'should';

describe('OSMO', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-rune/test/unit/rune.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { RuneUtils } from '../../src/lib/utils';
import { mainnetAddress } from '../resources/rune';
import { TEST_SEND_TX, TEST_TX_WITH_MEMO, testnetAddress, wrwUser } from '../resources/trune';
const bech32 = require('bech32-buffer');
import should = require('should');
import should from 'should';

describe('Rune', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-sei/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-sei/test/unit/sei.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
TEST_WITHDRAW_REWARDS_TX,
wrwUser,
} from '../resources/sei';
import should = require('should');
import should from 'should';

describe('SEI', function () {
let bitgo: TestBitGoAPI;
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-tia/test/unit/tia.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ import {
TEST_WITHDRAW_REWARDS_TX,
wrwUser,
} from '../resources/tia';
import should = require('should');
import nock = require('nock');
import should from 'should';
import nock from 'nock';

describe('TIA', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-coin-zeta/.mocharc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require: 'ts-node/register'
require: 'tsx'
timeout: '60000'
reporter: 'min'
reporter-option:
Expand Down
4 changes: 2 additions & 2 deletions modules/sdk-coin-zeta/test/unit/zeta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ import {
mockAccountDetailsResponse,
wrwUser,
} from '../resources/zeta';
import should = require('should');
import nock = require('nock');
import should from 'should';
import nock from 'nock';

describe('Zeta', function () {
let bitgo: TestBitGoAPI;
Expand Down
2 changes: 1 addition & 1 deletion modules/sdk-core/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
require: 'ts-node/register',
require: 'tsx',
timeout: '20000',
reporter: 'min',
'reporter-option': ['cdn=true', 'json=false'],
Expand Down
2 changes: 1 addition & 1 deletion modules/statics/.mocharc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
require: 'ts-node/register',
require: 'tsx',
timeout: '20000',
reporter: 'min',
'reporter-option': ['cdn=true', 'json=false'],
Expand Down
38 changes: 21 additions & 17 deletions modules/statics/src/allCoinsAndTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,12 +215,14 @@ export const allCoinsAndTokens = [
BaseUnit.CSPR,
CSPR_FEATURES.filter(
(feature) =>
![
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
].includes(feature)
)
!(
[
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
] as CoinFeature[]
).includes(feature)
) as CoinFeature[]
),
account(
'bd8f0b27-d13b-41c8-9f60-84fc1f201d89',
Expand Down Expand Up @@ -917,12 +919,14 @@ export const allCoinsAndTokens = [
BaseUnit.COREUM,
COREUM_FEATURES.filter(
(feature) =>
![
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
].includes(feature)
)
!(
[
CoinFeature.CUSTODY_BITGO_SINGAPORE,
CoinFeature.CUSTODY_BITGO_CUSTODY_MENA_FZE,
CoinFeature.CUSTODY_BITGO_MENA_FZE,
] as CoinFeature[]
).includes(feature)
) as CoinFeature[]
),
account(
'df2f040b-89f3-4bb3-8da7-2445c7fdefca',
Expand Down Expand Up @@ -1082,7 +1086,7 @@ export const allCoinsAndTokens = [
18,
UnderlyingAsset.ISLM,
BaseUnit.ISLM,
COSMOS_SIDECHAIN_FEATURES.filter((f) => f !== CoinFeature.SHA256_WITH_ECDSA_TSS)
COSMOS_SIDECHAIN_FEATURES.filter((f) => f !== CoinFeature.SHA256_WITH_ECDSA_TSS) as CoinFeature[]
),
account(
'02eced2c-cf1d-4660-832c-858685ae7107',
Expand All @@ -1092,7 +1096,7 @@ export const allCoinsAndTokens = [
18,
UnderlyingAsset.ISLM,
BaseUnit.ISLM,
COSMOS_SIDECHAIN_FEATURES.filter((f) => f !== CoinFeature.SHA256_WITH_ECDSA_TSS)
COSMOS_SIDECHAIN_FEATURES.filter((f) => f !== CoinFeature.SHA256_WITH_ECDSA_TSS) as CoinFeature[]
),
account(
'e48baabf-5cc9-4011-b67e-6f6425753df2',
Expand Down Expand Up @@ -1338,7 +1342,7 @@ export const allCoinsAndTokens = [
18,
UnderlyingAsset.XDC,
BaseUnit.ETH,
EVM_FEATURES.filter((feature) => feature !== CoinFeature.EIP1559)
EVM_FEATURES.filter((feature) => feature !== CoinFeature.EIP1559) as CoinFeature[]
),
account(
'e6ecb22e-0ae8-463a-b2fb-61502fd54240',
Expand All @@ -1348,7 +1352,7 @@ export const allCoinsAndTokens = [
18,
UnderlyingAsset.XDC,
BaseUnit.ETH,
EVM_FEATURES.filter((feature) => feature !== CoinFeature.EIP1559)
EVM_FEATURES.filter((feature) => feature !== CoinFeature.EIP1559) as CoinFeature[]
),
account(
'297edf01-b166-45fb-be6f-da6680635f72',
Expand Down Expand Up @@ -4014,7 +4018,7 @@ export const allCoinsAndTokens = [
'AFSUI',
'0xf325ce1300e8dac124071d3152c5c5ee6174914f8bc2161e88329cf579246efc::afsui::AFSUI',
UnderlyingAsset['sui:afsui'],
SUI_TOKEN_FEATURES.filter((feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE)
SUI_TOKEN_FEATURES.filter((feature) => feature !== CoinFeature.CUSTODY_BITGO_SINGAPORE) as CoinFeature[]
),
suiToken(
'af864118-e9ec-47b2-896c-735f0530fb8f',
Expand Down
Loading
Loading