Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
34f8c8f
feat(express): migrate signpayload to typed routes
danielzhao122 Sep 10, 2025
075b35c
refactor: code
danielzhao122 Sep 10, 2025
ad45078
refactor: added dependency io-ts-type to package.json
danielzhao122 Sep 10, 2025
2d51487
feat: add new tokens for WIN-7171
asset-metadata-bot[bot] Sep 11, 2025
fd693d9
feat(express): migrate keychainlocal to typed routes
danielzhao122 Sep 15, 2025
96e3ec0
Merge branch 'master' into WP-5414-express-migrate-api-v2-coin-keycha…
danielzhao122 Sep 16, 2025
755f8ee
refactor: added docs and updated req type
danielzhao122 Sep 18, 2025
80a9c3e
refactor: added express unit test for keychainLocal
danielzhao122 Sep 19, 2025
b1bbd4d
Merge branch 'master' into WP-5414-express-migrate-api-v2-coin-keycha…
danielzhao122 Sep 22, 2025
1423d8b
fix(express): signPayload API to handle stringified payload as req
parvaparikh-30 Sep 18, 2025
6faab4c
refactor: fixed merge conflict error
danielzhao122 Sep 22, 2025
2640873
feat(sdk-coin-sol): onboarding sol 2022 token with transfer hook
krupanand-bitgo Sep 23, 2025
93eb7ca
feat: gate tokens for BitGo Singapore
nayandas190 Sep 23, 2025
bf4ec32
fix: modify codeowners for ams token export files
manas-at-bitgo Sep 23, 2025
2ac078c
feat: adding iota coin construction in coin factory
parasgarg-bitgo Sep 23, 2025
e2befa7
feat: verify psbt withdraw lightning
parvbitgo067 Sep 19, 2025
aa745d8
test: withdraw lightning psbt verification tests
parvbitgo067 Sep 23, 2025
6031d76
feat: added bip174 to abstract lightning
parvbitgo067 Sep 23, 2025
536be8a
feat: add advanced wallet type
alextse-bg Sep 22, 2025
939bf47
refactor: added decoding to unit tests and addressed missing jsdocs
danielzhao122 Sep 23, 2025
c9327f0
Merge branch 'master' into WP-5443-express-migrate-api-v2-ofc-signPay…
danielzhao122 Sep 23, 2025
ef5121f
fix: replaced vulnerable request package by using axios
yanxue-22 Sep 22, 2025
b5350f0
Merge pull request #7028 from BitGo/BTC-2470-verify-change-address
davidkaplanbitgo Sep 23, 2025
0593fbc
Merge pull request #7060
therealdwright Sep 23, 2025
d9d167b
Merge pull request #7024 from BitGo/GNA-2162
parvaparikh-30 Sep 23, 2025
ee3a622
feat: configure learn to skip git operations
louib Sep 22, 2025
7eeac07
fix: prepare-release should work with latest preid
zahin-mohammad Sep 22, 2025
ec7bf3d
Merge pull request #7055 from BitGo/DX-1558-Replace-Request-With-Axios
yanxue-22 Sep 24, 2025
ee1b696
feat(sdk-coin-ton): add jetton transaction support
MohammedRyaan786 Sep 24, 2025
7b19894
Merge pull request #7059 from BitGo/WIN-7258-sol-2022-token-with-tran…
krupanand-bitgo Sep 24, 2025
e140bc7
chore: added new tokens for baseeth, lineath, seievm and flow
Venkat-Annavazzala Sep 22, 2025
745219f
fix(sdk-core): backup keychain creation to use correct privateMaterial
sasikumar-bitgo Sep 24, 2025
7b21e87
Merge pull request #7038 from BitGo/WIN-7285
Venkat-Annavazzala Sep 24, 2025
8ef80b3
Merge pull request #7061 from BitGo/WIN-6873
parasgarg-bitgo Sep 24, 2025
5f2771d
feat(express): migrate calculateminerfeeinfo to typed routes
lokesh-bitgo Sep 24, 2025
b084bb4
chore: update regex for raw trx hex validation
Venkat-Annavazzala Sep 23, 2025
e046c39
feat(sdk-coin-ada): token build support
Ranjna-G Sep 24, 2025
3fec266
Merge pull request #7071 from BitGo/WP-5400-express-migrate-api-calcu…
lokesh-bitgo Sep 24, 2025
5cd1e9f
Merge pull request #7063 from BitGo/WIN-7341
Venkat-Annavazzala Sep 24, 2025
bb7e27a
feat(statics): onboard new bsc token
Chinmay-Sharma1 Sep 24, 2025
49e3ea1
Merge pull request #7072 from BitGo/COIN-5732-v1
Chinmay-Sharma1 Sep 24, 2025
c70d766
Merge pull request #6953 from BitGo/ams-bot-tokens
manas-at-bitgo Sep 24, 2025
be0f3f4
Merge pull request #7067 from BitGo/COIN-5626
MohammedRyaan786 Sep 24, 2025
64e3b38
feat: replace asset id with fungible asset address
zeeshanamjad-eng Sep 24, 2025
f7cb90b
Merge pull request #7070 from BitGo/WIN-7353-ada-token-build-support
Ranjna-G Sep 24, 2025
04e70e4
Merge pull request #7073 from BitGo/TMS-1274
zeeshanamjad-eng Sep 24, 2025
ddcf0ee
chore: adding evm_compatible_ims feature to tstt
rohitsaw115 Sep 24, 2025
588313e
Merge pull request #7076 from BitGo/WIN-7359
rohitsaw115 Sep 24, 2025
1de938b
Merge pull request #7057 from BitGo/win-6923
nayandas190 Sep 24, 2025
513aaf4
Merge pull request #7049 from BitGo/configure-lerna-to-skip-git-opera…
zahin-mohammad Sep 24, 2025
a6bb6ad
Merge pull request #7069 from BitGo/fix/WP-6057
sasikumar-bitgo Sep 24, 2025
10b2022
Merge pull request #6991 from BitGo/WP-5414-express-migrate-api-v2-co…
danielzhao122 Sep 24, 2025
51f3a04
Merge pull request #7040 from BitGo/WP-6028
alextse-bg Sep 24, 2025
79c95ce
feat: replace apt usd1 asset id with FA address
sachushaji Sep 24, 2025
b45e333
Merge pull request #7074 from BitGo/TMS-1274
sachushaji Sep 24, 2025
4381d11
feat(express): migrate signpayload to typed routes
danielzhao122 Sep 24, 2025
e581027
refactor: code
danielzhao122 Sep 24, 2025
100f88f
refactor: added dependency io-ts-type to package.json
danielzhao122 Sep 10, 2025
936f87b
refactor: added decoding to unit tests and addressed missing jsdocs
danielzhao122 Sep 24, 2025
42708b6
Merge branch 'WP-5443-express-migrate-api-v2-ofc-signPayload-to-typed…
danielzhao122 Sep 24, 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
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ jobs:
if: steps.lerna-cache.outputs.cache-hit != 'true' || contains( github.event.pull_request.labels.*.name, 'SKIP_CACHE')
run: yarn install --with-frozen-lockfile --ignore-scripts

- name: Check In-Repo Package Versions
run: yarn run check-versions

- name: build packages
env:
# Workaround for https://github.com/nodejs/node/issues/51555
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
node-version-file: .nvmrc

- name: Install BitGoJS
run: yarn install --with-frozen-lockfile
run: yarn install --with-frozen-lockfile --ignore-scripts

- name: Set Environment Variable for Alpha
if: github.ref != 'refs/heads/master' # only publish changes if on feature branches
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ modules/**/pack-scoped/
coverage
/.direnv/
.claude/
scripts/cache/
8 changes: 4 additions & 4 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,6 @@
/modules/sdk-core/src/bitgo/address-book/ @BitGo/prime
/modules/sdk-core/src/bitgo/trading/ @BitGo/prime

# Asset Metadata Service
/modules/statics/src/coins/botTokens.ts @BitGo/ams
/modules/statics/src/coins/botOfcTokens.ts @BitGo/ams

# Core Modules
/modules/bitgo/ @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform
/modules/bitgo/test/v2/unit/lightning/ @BitGo/btc-team
Expand Down Expand Up @@ -141,6 +137,10 @@
/types/ @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform
/webpack/ @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform

# Asset Metadata Service
/modules/statics/src/coins/botTokens.ts @BitGo/ams
/modules/statics/src/coins/botOfcTokens.ts @BitGo/ams

/.eslintrc.json @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform @BitGo/developer-experience
/.prettierrc.yml @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform @BitGo/developer-experience
/check-package-versions.js @BitGo/coins @BitGo/web-experience @BitGo/wallet-platform @BitGo/developer-experience
Expand Down
109 changes: 0 additions & 109 deletions check-package-versions.js

This file was deleted.

8 changes: 7 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@
"useWorkspaces": true,
"command": {
"version": {
"message": "chore(root): publish modules"
"message": "chore(root): publish modules",
"allowBranch": "master",
"skipGit": true
},
"publish": {
"skipGit": true,
"allowBranch": "master"
}
},
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
Expand Down
10 changes: 5 additions & 5 deletions modules/abstract-cosmos/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bitgo/abstract-cosmos",
"version": "11.14.2",
"version": "0.0.0-semantic-release-managed",
"description": "BitGo SDK coin library for COSMOS base implementation",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down Expand Up @@ -38,10 +38,10 @@
]
},
"dependencies": {
"@bitgo/sdk-core": "^36.8.0",
"@bitgo/sdk-lib-mpc": "^10.7.0",
"@bitgo/secp256k1": "^1.5.0",
"@bitgo/statics": "^57.8.0",
"@bitgo/sdk-core": "0.0.0-semantic-release-managed",
"@bitgo/sdk-lib-mpc": "0.0.0-semantic-release-managed",
"@bitgo/secp256k1": "0.0.0-semantic-release-managed",
"@bitgo/statics": "0.0.0-semantic-release-managed",
"@cosmjs/amino": "^0.29.5",
"@cosmjs/crypto": "^0.30.1",
"@cosmjs/encoding": "^0.29.5",
Expand Down
14 changes: 7 additions & 7 deletions modules/abstract-eth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bitgo/abstract-eth",
"version": "24.12.0",
"version": "0.0.0-semantic-release-managed",
"description": "BitGo SDK coin library for ETH base implementation",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down Expand Up @@ -40,10 +40,10 @@
]
},
"dependencies": {
"@bitgo/sdk-core": "^36.8.0",
"@bitgo/sdk-lib-mpc": "^10.7.0",
"@bitgo/secp256k1": "^1.5.0",
"@bitgo/statics": "^57.8.0",
"@bitgo/sdk-core": "0.0.0-semantic-release-managed",
"@bitgo/sdk-lib-mpc": "0.0.0-semantic-release-managed",
"@bitgo/secp256k1": "0.0.0-semantic-release-managed",
"@bitgo/statics": "0.0.0-semantic-release-managed",
"@ethereumjs/common": "^2.6.5",
"@ethereumjs/rlp": "^4.0.0",
"@ethereumjs/tx": "^3.3.0",
Expand All @@ -60,8 +60,8 @@
"superagent": "^9.0.1"
},
"devDependencies": {
"@bitgo/sdk-api": "^1.68.3",
"@bitgo/sdk-test": "^9.0.9",
"@bitgo/sdk-api": "0.0.0-semantic-release-managed",
"@bitgo/sdk-test": "0.0.0-semantic-release-managed",
"@types/keccak": "^3.0.5"
},
"gitHead": "18e460ddf02de2dbf13c2aa243478188fb539f0c"
Expand Down
5 changes: 3 additions & 2 deletions modules/abstract-eth/src/lib/transactionBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ import { Transaction } from './transaction';
import { TransferBuilder } from './transferBuilder';

const DEFAULT_M = 3;
const RAW_TX_HEX_REGEX = /^(0x)?[0-9a-f]{1,}$/;

/**
* EthereumLike transaction builder.
Expand Down Expand Up @@ -165,7 +166,7 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
/** @inheritdoc */
protected fromImplementation(rawTransaction: string, isFirstSigner?: boolean): Transaction {
let tx: Transaction;
if (/^0x?[0-9a-f]{1,}$/.test(rawTransaction.toLowerCase())) {
if (RAW_TX_HEX_REGEX.test(rawTransaction.toLowerCase())) {
tx = Transaction.fromSerialized(this._coinConfig, this._common, rawTransaction, isFirstSigner);
this.loadBuilderInput(tx.toJson(), isFirstSigner);
} else {
Expand Down Expand Up @@ -343,7 +344,7 @@ export abstract class TransactionBuilder extends BaseTransactionBuilder {
throw new InvalidTransactionError('Raw transaction is empty');
}
if (typeof rawTransaction === 'string') {
if (/^0x?[0-9a-f]{1,}$/.test(rawTransaction.toLowerCase())) {
if (RAW_TX_HEX_REGEX.test(rawTransaction.toLowerCase())) {
const txBytes = ethUtil.toBuffer(ethUtil.addHexPrefix(rawTransaction.toLowerCase()));
if (!this.isEip1559Txn(txBytes) && !this.isRLPDecodable(txBytes)) {
throw new ParseTransactionError('There was error in decoding the hex string');
Expand Down
9 changes: 5 additions & 4 deletions modules/abstract-lightning/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bitgo/abstract-lightning",
"version": "7.0.0",
"version": "0.0.0-semantic-release-managed",
"description": "BitGo SDK coin library for base Lightning Network coin implementation",
"main": "./dist/src/index.js",
"types": "./dist/src/index.d.ts",
Expand Down Expand Up @@ -40,9 +40,10 @@
},
"dependencies": {
"@bitgo/public-types": "5.22.0",
"@bitgo/sdk-core": "^36.8.0",
"@bitgo/statics": "^57.8.0",
"@bitgo/utxo-lib": "^11.10.0",
"bip174": "npm:@bitgo-forks/bip174@3.1.0-master.4",
"@bitgo/sdk-core": "0.0.0-semantic-release-managed",
"@bitgo/statics": "0.0.0-semantic-release-managed",
"@bitgo/utxo-lib": "0.0.0-semantic-release-managed",
"bs58check": "^2.1.2",
"fp-ts": "^2.12.2",
"io-ts": "npm:@bitgo-forks/io-ts@2.1.4",
Expand Down
8 changes: 8 additions & 0 deletions modules/abstract-lightning/src/codecs/api/withdraw.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as t from 'io-ts';
import { LightningOnchainRequest, optionalString } from '@bitgo/public-types';
import { PendingApprovalData, TxRequestState } from '@bitgo/sdk-core';
import { Bip32Derivation } from 'bip174/src/lib/interfaces';

export const WithdrawStatusDelivered = 'delivered';
export const WithdrawStatusFailed = 'failed';
Expand Down Expand Up @@ -124,3 +125,10 @@ export const SendPsbtResponse = t.intersection(
'SendPsbtResponse'
);
export type SendPsbtResponse = t.TypeOf<typeof SendPsbtResponse>;

export type WithdrawBaseOutputUTXO<TNumber extends number | bigint = number> = {
value: TNumber;
change: boolean;
address: string;
bip32Derivation?: Bip32Derivation;
};
1 change: 1 addition & 0 deletions modules/abstract-lightning/src/lightning/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './signableJson';
export * from './signature';
export * from './lightningUtils';
export * from './parseWithdrawPsbt';
Loading
Loading