Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
run: |
rm -rfd ./modules/web-demo
rm -rfd ./modules/express
npx ts-node ./scripts/prepare-release.ts ${{ env.preid }}
npx tsx ./scripts/prepare-release.ts ${{ env.preid }}

- name: Rebuild packages
run: yarn
Expand All @@ -65,4 +65,4 @@ jobs:
run: yarn lerna publish from-package --preid ${{ env.preid }} --dist-tag ${{ env.preid }} --force-publish --yes --loglevel silly

- name: Verify Publish
run: npx ts-node ./scripts/verify-release.ts ${{ env.preid }}
run: npx tsx ./scripts/verify-release.ts ${{ env.preid }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ modules/**/dist/
modules/**/pack-scoped/
coverage
/.direnv/
.claude/
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22.16.0
22.18.0
9 changes: 8 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ yarn lint-changed

# Fix linting issues
yarn lint-fix

# Commit lint
yarn check-commits
```

### Testing
Expand Down Expand Up @@ -62,6 +65,10 @@ yarn compile
# Build for development
yarn compile-dbg
```
## Code Style

### Commits
BitGoJS uses conventional commits. All commits MUST pass the spec described in `commitlint.config.js`.

## Code Architecture

Expand Down Expand Up @@ -113,4 +120,4 @@ This will generate the necessary boilerplate for a new coin implementation.

## Node.js Version Support

BitGoJS supports Node.js versions >=18 and <23, with NPM >=3.10.10.
BitGoJS supports Node.js versions >=18 and <23, with NPM >=3.10.10.
4 changes: 2 additions & 2 deletions examples/docs/get-fee-estimate.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ This script, when run, will log a transaction hex. You can then pass this value

First, run `yarn install` from the root directory of the repository.

Then change into the `examples/ts/sui` directory and use `npx ts-node` to run it:
Then change into the `examples/ts/sui` directory and use `npx tsx` to run it:

```
$ cd examples/ts/sui/
$ npx ts-node get-transaction-hex.ts
$ npx tsx get-transaction-hex.ts
```

### Note
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ TESTNET_ACCESS_TOKEN=your_access_token_here

First, run `yarn install` from the root directory of the repository.

Then change into the `examples/ts/sol/utils/nonce-account-creation` directory and use `npx ts-node` to run the desired example:
Then change into the `examples/ts/sol/utils/nonce-account-creation` directory and use `npx tsx` to run the desired example:

```
$ cd examples/ts/sol/utils/nonce-account-creation
$ npx ts-node multi-recipient-pay-transaction.ts
$ npx tsx multi-recipient-pay-transaction.ts
```


Expand Down
4 changes: 2 additions & 2 deletions examples/ts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ You will need node and npm installed locally. You can find information on how to

First, run `yarn install` from the root directory of the repository.

Then change into the `examples/ts` directory and use `npx ts-node` to run the desired example:
Then change into the `examples/ts` directory and use `npx tsx` to run the desired example:

```
$ cd examples/ts
$ npx ts-node get-wallet.ts
$ npx tsx get-wallet.ts
```

Copy `.env.example` to `.env` and provide the given values if you would like to use the same variables for multiple examples.
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/btc/changeAddress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ async function getWallet() {
}

/*
* Usage: npx ts-node btc/externalChange/index.ts
* Usage: npx tsx btc/externalChange/index.ts
* */
async function main() {
console.log('Starting...');
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/btc/legacySafe/recover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { unspents } from './fixtures/unspents';
const destination = '2MyGxrhLC4kRfuVjLqCVYFtC7DchhgMCiNz';

/*
* Usage: npx ts-node btc/legacySafe/recover.ts
* Usage: npx tsx btc/legacySafe/recover.ts
* */
const recoveryTransaction = async () => {
const coin = legacySafeConfig.sdk.coin(legacySafeConfig.coin) as AbstractUtxoCoin;
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/btc/legacySafe/sweep.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { unspents } from './fixtures/unspents';
const destination = '2MyGxrhLC4kRfuVjLqCVYFtC7DchhgMCiNz';

/*
* Usage: npx ts-node btc/legacySafe/sweep.ts
* Usage: npx tsx btc/legacySafe/sweep.ts
* */
const sweepTransaction = async () => {
const coin = legacySafeConfig.sdk.coin(legacySafeConfig.coin) as AbstractUtxoCoin;
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/btc/omni/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ async function sendOmniAsset(
}

/*
* Usage: npx ts-node btc/omni/index.ts
* Usage: npx tsx btc/omni/index.ts
* */
async function main() {
console.log('Starting...');
Expand Down
2 changes: 1 addition & 1 deletion examples/ts/btc/v1/wallet-recovery-validation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the user's keycard information (Box D). It helps recover the original wallet password for V1 Wallets Only.
*
* Usage:
* ts-node wallet-recovery-validation.ts
* tsx wallet-recovery-validation.ts
*
* The script will prompt for:
* - BitGo credentials (username, password, OTP)
Expand Down
6 changes: 3 additions & 3 deletions examples/ts/http-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ Please take the time to review your use case as you choose between these options
## Setup + Usage
- Acquire a test environment account, enterprise and access token
- Fill in the `TODO` sections with the relevant credentials
- `npm install`
- `ts-node server.ts`
- In a separate shell: `ts-node create-wallet.ts`
- `yarn install`
- `yarn run start:server`
- In a separate shell: `yarn run start:create-wallet`
6 changes: 4 additions & 2 deletions examples/ts/http-proxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,17 @@
"description": "",
"main": "server.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"start:server": "tsx server.ts",
"start:create-wallet": "tsx create-wallet.ts"
},
"author": "BitGo",
"license": "ISC",
"dependencies": {
"proxy": "2.1.1",
"proxy-agent": "6.4.0",
"superagent": "9.0.1",
"ts-node": "^10.8.1",
"tsx": "^4.20.4",
"typescript": "^4.7.3",
"typescript-cached-transpile": "^0.0.6"
}
Expand Down
Loading
Loading