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
14 changes: 12 additions & 2 deletions .github/workflows/dashnote-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
node-version-file: .nvmrc

- name: Show Node/npm versions
run: |
node -v
npm -v

- name: Install dashnote dependencies
run: npm ci
Expand Down Expand Up @@ -107,7 +112,12 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
node-version-file: .nvmrc

- name: Show Node/npm versions
run: |
node -v
npm -v

- name: Install dashnote dependencies
run: npm ci
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/dependency-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
node-version-file: .nvmrc

- name: Show Node/npm versions
run: |
node -v
npm -v

# Step 3: Install dependencies
- name: Install Dependencies
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/deploy-example-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,15 @@ jobs:

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
node-version-file: .nvmrc
cache: npm
cache-dependency-path: example-apps/${{ matrix.app }}/package-lock.json

- name: Show Node/npm versions
run: |
node -v
npm -v

- name: Install
run: npm ci
working-directory: example-apps/${{ matrix.app }}
Expand Down Expand Up @@ -113,7 +118,12 @@ jobs:

- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 24
node-version-file: .nvmrc

- name: Show Node/npm versions
run: |
node -v
npm -v

- name: Download all built apps
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/test-tutorials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
node-version-file: .nvmrc
- name: Show Node/npm versions
run: |
node -v
npm -v
- run: npm ci
- name: Run read-only tutorial tests
env:
Expand All @@ -56,7 +60,11 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
with:
node-version: '20'
node-version-file: .nvmrc
- name: Show Node/npm versions
run: |
node -v
npm -v
- run: npm ci
- name: Run read-write tutorial tests
env:
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
22.22
2 changes: 1 addition & 1 deletion 1-Identities-and-Names/identity-withdraw-credits.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ console.log('Identity balance before withdrawal:', identity.balance);
// Default: testnet faucet address. Replace or override via WITHDRAWAL_ADDRESS.
const toAddress =
process.env.WITHDRAWAL_ADDRESS || 'yXWJGWuD4VBRMp9n2MtXQbGpgSeWyTRHme';
const amount = 190000n; // Credits to withdraw
const amount = 1000000n; // Credits to withdraw (protocol minimum)
const amountDash = Number(amount) / (1000 * 100000000);

console.log(`Withdrawing ${amount} credits (${amountDash} DASH)`);
Expand Down
Loading