Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
137 commits
Select commit Hold shift + click to select a range
539650f
feat: add GridPlus Lattice hardware wallet support
gomesalexandre Oct 7, 2025
48b6e24
chore: remove debug console logs from GridPlus implementation
gomesalexandre Oct 7, 2025
211393a
feat: enable Solana support in GridPlus wallet
gomesalexandre Oct 7, 2025
6bce868
fix: add firmware version check for Solana ED25519 support
gomesalexandre Oct 8, 2025
6526fe8
feat: use SDK fetchSolanaAddresses wrapper with localStorage state
gomesalexandre Oct 8, 2025
3b5abf0
feat: convert Solana address buffers to base58
gomesalexandre Oct 8, 2025
48e82d6
feat: cache 10 Solana addresses from batch fetch
gomesalexandre Oct 8, 2025
267973c
chore: bump versions to 1.62.4-alpha.58
gomesalexandre Oct 8, 2025
a64d17b
feat: YOLO implementation - BTC, Dogecoin, Solana signing all in one go
gomesalexandre Oct 8, 2025
834906b
chore: bump versions to 1.62.4-alpha.59
gomesalexandre Oct 8, 2025
87873b4
feat(gridplus): add Cosmos and THORChain address derivation support
gomesalexandre Oct 8, 2025
8ef5c68
fix(gridplus): use bech32 v1.1.4 to match other packages
gomesalexandre Oct 8, 2025
e9765a8
feat(gridplus): implement getPublicKeys() for UTXO chain support
gomesalexandre Oct 8, 2025
d2e76be
feat(gridplus): implement Cosmos/THORChain signing and fix getPublicKeys
gomesalexandre Oct 8, 2025
1092a6d
feat(gridplus): fix Cosmos/THORChain getAddress path parsing and expo…
gomesalexandre Oct 8, 2025
b105f2d
chore(release): publish 1.62.4-alpha.63
gomesalexandre Oct 8, 2025
a221d38
feat: optimize EVM address fetching and fix runtime errors
gomesalexandre Oct 8, 2025
8a54185
chore(release): publish 1.62.4-alpha.64
gomesalexandre Oct 8, 2025
6f63b5c
feat: fix Cosmos/THOR paths and add MAYAchain support
gomesalexandre Oct 8, 2025
171306b
chore(release): publish 1.62.4-alpha.65
gomesalexandre Oct 8, 2025
b71c46a
fix: prevent device pairing trigger on reconnection
gomesalexandre Oct 8, 2025
ddab861
chore(release): publish 1.62.4-alpha.66
gomesalexandre Oct 8, 2025
15b206d
debug: add comprehensive logging to GridPlus adapter and transport
gomesalexandre Oct 8, 2025
a4c7838
chore(release): publish 1.62.4-alpha.67
gomesalexandre Oct 8, 2025
69eb8bf
fix: retry client.connect() before pairing to establish ephemeral keys
gomesalexandre Oct 8, 2025
5cc3d12
chore(release): publish 1.62.4-alpha.68
gomesalexandre Oct 8, 2025
faeb2aa
fix(gridplus): remove client duplication bug - use SDK's getClient()
gomesalexandre Oct 8, 2025
25aea58
fix: correct Cosmos SDK chain derivation paths to use full 5-level BI…
gomesalexandre Oct 8, 2025
8364683
chore: bump version to 1.62.4-alpha.70
gomesalexandre Oct 8, 2025
09d3b3e
feat: compress Cosmos SDK pubkeys for GridPlus
gomesalexandre Oct 8, 2025
3c4dcfc
fix: Solana address caching in GridPlus
gomesalexandre Oct 8, 2025
1501360
feat(gridplus): optimize device requests with store-first lookup and …
gomesalexandre Oct 8, 2025
27184b2
chore(release): publish 1.62.4-alpha.73
gomesalexandre Oct 8, 2025
a112fc2
chore(release): publish 1.62.4-alpha.74
gomesalexandre Oct 8, 2025
54bc98a
feat: simplify GridPlus to fetch single address per request
gomesalexandre Oct 8, 2025
833cd06
fix: add prefix to cache key for Cosmos-based chains
gomesalexandre Oct 8, 2025
0d821fd
chore(release): publish 1.62.4-alpha.75
gomesalexandre Oct 8, 2025
56799b5
chore: bump to 1.62.4-alpha.75
gomesalexandre Oct 8, 2025
d35fd23
fix: use fetchAddresses for all UTXO coins in btcGetAddress
gomesalexandre Oct 8, 2025
20e451e
feat: implement client-side address derivation for GridPlus UTXO coins
gomesalexandre Oct 8, 2025
b8af28c
fix(gridplus): Fix transaction signing for Solana, Bitcoin, and Cosmo…
gomesalexandre Oct 8, 2025
971b0e8
fix(gridplus): add signerPath to Bitcoin prevOuts
gomesalexandre Oct 9, 2025
6bc2899
fix(gridplus): harden all Solana path indices for ED25519
gomesalexandre Oct 9, 2025
e173aae
fix(gridplus): use SHA256 hashType for Cosmos/THOR/MAYA signing
gomesalexandre Oct 9, 2025
95a3544
fix(gridplus): use ETH_MSG protocol for EIP-712 signing
gomesalexandre Oct 9, 2025
a5bf305
fix(gridplus): fix Bitcoin fee calculation and Solana path
gomesalexandre Oct 9, 2025
ce41f60
feat: optimize GridPlus reconnection with localStorage client cache
gomesalexandre Oct 9, 2025
f73f033
fix: GridPlus EIP-712 signing and Solana transaction support
gomesalexandre Oct 9, 2025
5db155c
chore(gridplus): remove debug console.logs and process.nextTick polyfill
gomesalexandre Oct 9, 2025
e2f0223
chore(release): publish 1.62.4-alpha.106
gomesalexandre Oct 9, 2025
974c72a
chore(gridplus): remove all debug console.logs
gomesalexandre Oct 9, 2025
b86a114
chore(release): publish 1.62.4-alpha.107
gomesalexandre Oct 10, 2025
99c1774
refactor(gridplus): rename privKey to sessionId with documentation
gomesalexandre Oct 10, 2025
dab51f9
fix(gridplus): various improvements and fixes
gomesalexandre Oct 10, 2025
bfcc50b
docs: revert SafeCard cache isolation attempts and document findings
gomesalexandre Oct 10, 2025
5bea341
feat(gridplus): clear address cache on initialize for SafeCard isolation
gomesalexandre Oct 10, 2025
667339d
wip: GridPlus UTXO signing fixes and cache improvements
gomesalexandre Oct 11, 2025
2496c55
feat: WEEEHEEE DOGE SIGNING WORKS
gomesalexandre Oct 12, 2025
2dae532
feat: weehee
gomesalexandre Oct 12, 2025
11a97c7
feat: WEEEHEE BCH SIGNING
gomesalexandre Oct 12, 2025
06e8f52
chore: remove debug console.log statements from GridPlus implementation
gomesalexandre Oct 12, 2025
65df154
[skip ci] chore: cleanup GridPlus transport configuration
gomesalexandre Oct 12, 2025
4019510
[skip ci] chore: replace let with IIFE and remove AI comments
gomesalexandre Oct 12, 2025
ac92a17
[skip ci] refactor: split GridPlus gridplus.ts into constants and utils
gomesalexandre Oct 12, 2025
7250736
[skip ci] refactor: deduplicate UtxoAccountType enum in GridPlus
gomesalexandre Oct 12, 2025
fbdbc80
[skip ci] refactor: remove redundant code from GridPlus implementation
gomesalexandre Oct 12, 2025
a7518db
refactor(hdwallet-gridplus): extract ethereum module and cleanup
gomesalexandre Oct 12, 2025
3d16361
feat: extract Solana module for GridPlus wallet (Phase 3)
gomesalexandre Oct 12, 2025
ecb69f6
refactor(hdwallet-gridplus): extract Bitcoin, Cosmos, and ThorMaya ch…
gomesalexandre Oct 12, 2025
b1d949c
refactor(hdwallet-gridplus): improve type safety and code organization
gomesalexandre Oct 12, 2025
7bf72e3
refactor(hdwallet-gridplus): remove Highlander-style type hacks
gomesalexandre Oct 12, 2025
400c47b
refactor: modernize GridPlus TypeScript implementation
gomesalexandre Oct 12, 2025
c4ab6b7
refactor: convert remaining helper functions to arrow syntax
gomesalexandre Oct 12, 2025
07f6945
fix: correct BitcoinCash script type support
gomesalexandre Oct 12, 2025
4b7910f
refactor: improve GridPlus code quality and documentation
gomesalexandre Oct 12, 2025
9c1527f
refactor: move ethGetAddress to ethereum.ts module [skip ci]
gomesalexandre Oct 12, 2025
6d2118d
refactor(gridplus): clean up Bitcoin support and method organization
gomesalexandre Oct 12, 2025
a7e1991
fix: revert suspicious dependency changes in Ledger packages
gomesalexandre Oct 12, 2025
5b02330
fix: revert lerna auto-changes to package.json files
gomesalexandre Oct 12, 2025
897107b
chore: publish hdwallet packages to 1.62.4-alpha.184
gomesalexandre Oct 12, 2025
0054076
chore: remove @types/node resolution and publish alpha.187
gomesalexandre Oct 13, 2025
3a42470
chore: remove unnecessary package resolutions
gomesalexandre Oct 13, 2025
b3d812a
fix: revert Ledger and Trezor to @ethereumjs/common ^2.4.0
gomesalexandre Oct 13, 2025
0b8609c
chore: update hdwallet to alpha.189
gomesalexandre Oct 13, 2025
5128b09
chore: bump all packages to alpha.190
gomesalexandre Oct 13, 2025
d3493f2
chore: update hdwallet packages to alpha.200
gomesalexandre Oct 13, 2025
71698cf
[skip ci] fix(gridplus): prevent wallet disconnection on modal close
gomesalexandre Oct 15, 2025
e6a6f4b
fix(gridplus): correct P2SH scriptPubKey generation for SegWit addresses
gomesalexandre Oct 15, 2025
221c4f9
feat: tackle prettier comments
gomesalexandre Oct 15, 2025
74c1c3e
fix: lint
gomesalexandre Oct 15, 2025
12fdd04
fix(gridplus): use writeBigUInt64LE for Bitcoin amounts and fix funct…
gomesalexandre Oct 15, 2025
9acb5be
fix(gridplus): use correct spend output for Bitcoin signing
gomesalexandre Oct 15, 2025
8f573df
fix: ai spew but not so spew comment
gomesalexandre Oct 15, 2025
8f95928
fix(gridplus): fix BIP143 uint32 encoding for vout/version/locktime
gomesalexandre Oct 15, 2025
7598cc8
fix(gridplus): add P2SH-P2WPKH (wrapped SegWit) support for Litecoin
gomesalexandre Oct 15, 2025
53e4b5e
fix(gridplus): add missing runtime dependencies to package.json
gomesalexandre Oct 16, 2025
1d181b6
fix(ethereumjs): restore Ledger/Trezor/KeepKey to v3.2.0, isolate Gri…
gomesalexandre Oct 23, 2025
1f274ab
high level cleanup
kaladinlight Oct 23, 2025
4d320ab
Merge branch 'feat_gridplus' of github.com:shapeshift/hdwallet into f…
kaladinlight Oct 23, 2025
4a77cbf
fix(gridplus): address PR feedback on device capabilities and features
gomesalexandre Oct 23, 2025
542ec1c
fix(gridplus): fix solana signature and clean scripts for publishing
gomesalexandre Oct 23, 2025
9c0ecb9
chore: add experimental logging to compare GridPlus address flags
gomesalexandre Oct 23, 2025
69b5105
chore: add comprehensive flag testing for all chain address derivations
gomesalexandre Oct 23, 2025
3a11f1e
Revert "chore: add comprehensive flag testing for all chain address d…
gomesalexandre Oct 23, 2025
d09bdfd
Revert "chore: add experimental logging to compare GridPlus address f…
gomesalexandre Oct 23, 2025
d5f8849
chore: revert experimental logging commits
gomesalexandre Oct 23, 2025
23d3f80
chore: update hdwallet packages to 1.62.4-alpha.222
gomesalexandre Oct 24, 2025
e2e9656
fix(gridplus): correct Solana support flag inconsistency
gomesalexandre Oct 24, 2025
d218440
cosmossdk cleanup
kaladinlight Oct 24, 2025
8be56c9
[skip ci] feat: more logs to be reverted
gomesalexandre Oct 24, 2025
313f1a9
cleanup solana
kaladinlight Oct 24, 2025
fffe4ae
extra cosmossdk nitpicks
kaladinlight Oct 24, 2025
118d544
Merge branch 'feat_gridplus' of github.com:shapeshift/hdwallet into f…
kaladinlight Oct 24, 2025
b38d035
ethereum cleanup
kaladinlight Oct 24, 2025
8e642cd
buffer type check for extra safety
kaladinlight Oct 24, 2025
d5b20c2
handle null decoder def
kaladinlight Oct 27, 2025
1c340be
fix signature type checks and concat
kaladinlight Oct 27, 2025
e6cef79
fix arbitrary ethereumjs chain ids
kaladinlight Oct 27, 2025
f1a2301
extra calldata checks and debug log
kaladinlight Oct 27, 2025
3af26cb
fix: GridPlus transaction signing with TransactionFactory
gomesalexandre Oct 27, 2025
7771b87
wip
kaladinlight Oct 23, 2025
a006c53
merge branch
kaladinlight Nov 19, 2025
7cf5efd
mend
kaladinlight Nov 19, 2025
44f271f
working bitcoin signing
kaladinlight Nov 19, 2025
3659197
Merge branch 'master' into feat_gridplus_suggestions
kaladinlight Nov 20, 2025
ef8798d
fix tests and lint
kaladinlight Nov 20, 2025
387cc32
fix tests and lint
kaladinlight Nov 20, 2025
3fe11d7
remove broken p2sh case
kaladinlight Nov 20, 2025
b8527af
Merge branch 'feat_gridplus_suggestions' of github.com:shapeshift/hdw…
kaladinlight Nov 20, 2025
cfbf183
fix patch missing arg
kaladinlight Nov 20, 2025
2a3abe6
Merge branch 'master' into feat_gridplus_suggestions
kaladinlight Nov 20, 2025
840a36f
more patch fixes
kaladinlight Nov 20, 2025
effc03e
fix tests and merge
kaladinlight Nov 20, 2025
cfdc239
build/publish cleanup
kaladinlight Nov 21, 2025
7dd5795
chore: unify and cleanup script types
kaladinlight Nov 21, 2025
8208835
fix test
kaladinlight Nov 21, 2025
9f63742
Merge branch 'master' into script-type-cleanup
kaladinlight Nov 25, 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
80 changes: 39 additions & 41 deletions examples/sandbox/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -667,19 +667,19 @@ $getXpubs.each(function () {
coin: "Bitcoin",
addressNList: [2147483732, 2147483648, 2147483648],
curve: "secp256k1",
scriptType: core.BTCInputScriptType.SpendWitness,
scriptType: core.BTCScriptType.SegwitNative,
},
{
coin: "Bitcoin",
addressNList: [2147483697, 2147483648, 2147483648],
curve: "secp256k1",
scriptType: core.BTCInputScriptType.SpendP2SHWitness,
scriptType: core.BTCScriptType.Segwit,
},
{
coin: "Bitcoin",
addressNList: [2147483692, 2147483648, 2147483648],
curve: "secp256k1",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
},
];
const bchGetPublicKeysInput = [
Expand All @@ -688,7 +688,7 @@ $getXpubs.each(function () {
curve: "secp256k1",
showDisplay: true, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
coin: "BitcoinCash",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
},
];
const ltcGetPublicKeysInput = [
Expand All @@ -698,23 +698,23 @@ $getXpubs.each(function () {
curve: "secp256k1",
showDisplay: true, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
coin: "Litecoin",
scriptType: core.BTCInputScriptType.SpendWitness,
scriptType: core.BTCScriptType.SegwitNative,
},
// SegwitP2sh
{
addressNList: [2147483697, 2147483650, 2147483648],
curve: "secp256k1",
showDisplay: true, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
coin: "Litecoin",
scriptType: core.BTCInputScriptType.SpendP2SHWitness,
scriptType: core.BTCScriptType.Segwit,
},
// P2Pksh
{
addressNList: [2147483692, 2147483650, 2147483648],
curve: "secp256k1",
showDisplay: true, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
coin: "Litecoin",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
},
];
const dogeGetPublicKeysInput = [
Expand All @@ -723,7 +723,7 @@ $getXpubs.each(function () {
curve: "secp256k1",
showDisplay: true, // Not supported by TrezorConnect or Ledger, but KeepKey should do it
coin: "Dogecoin",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
},
];
const hardenedPathGetPublicKeysInput = [
Expand Down Expand Up @@ -1380,7 +1380,7 @@ $thorchainSignSwap.on("click", async (e) => {
const inputs = [
{
addressNList: [0x80000000 + 44, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
scriptType: core.BTCInputScriptType.SpendAddress as const,
scriptType: core.BTCScriptType.Legacy as const,
amount: String(10000),
vout: 1,
txid: txid,
Expand Down Expand Up @@ -1532,7 +1532,7 @@ $thorchainSignAddLiquidity.on("click", async (e) => {
const inputs = [
{
addressNList: [0x80000000 + 44, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(10000),
vout: 1,
txid: txid,
Expand Down Expand Up @@ -2940,7 +2940,7 @@ $btcAddr.on("click", async (e) => {
const res = await wallet.btcGetAddress({
addressNList: [0x80000000 + 44, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
coin: "Bitcoin",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
showDisplay: true,
});
$btcResults.val(res);
Expand All @@ -2965,7 +2965,7 @@ $btcTx.on("click", async (e) => {
const inputs = [
{
addressNList: [0x80000000 + 44, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(10000),
vout: 1,
txid: txid,
Expand All @@ -2978,7 +2978,7 @@ $btcTx.on("click", async (e) => {
{
address: "1MJ2tj2ThBE62zXbBYA5ZaN3fdve5CPAz1",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(10000 - 1000),
isChange: false,
},
Expand Down Expand Up @@ -3009,7 +3009,7 @@ $btcSign.on("click", async (e) => {
const res = await wallet.btcSignMessage({
addressNList: core.bip32ToAddressNList("m/44'/0'/0'/0/0"),
coin: "Bitcoin",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
message: "Hello World",
});
$btcResults.val(res.address + " " + res.signature);
Expand Down Expand Up @@ -3052,7 +3052,7 @@ const $ltcSign = $("#ltcSign");
const $ltcResults = $("#ltcResults");

const ltcBip44 = {
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
addressNList: [0x80000000 + 44, 0x80000000 + 2, 0x80000000 + 0, 0, 0],
};

Expand Down Expand Up @@ -3090,7 +3090,7 @@ $ltcTx.on("click", async (e) => {
const inputs = [
{
addressNList: ltcBip44.addressNList,
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(2160258),
vout: 0,
txid,
Expand All @@ -3104,7 +3104,7 @@ $ltcTx.on("click", async (e) => {
{
address: "LLe4PciAJgMMJSAtQQ5nkC13t6SSMmERJ3",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(261614),
isChange: false,
},
Expand Down Expand Up @@ -3134,7 +3134,7 @@ $ltcSign.on("click", async (e) => {
const res = await wallet.btcSignMessage({
addressNList: ltcBip44.addressNList,
coin: "Litecoin",
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
message: "Hello World",
});
$ltcResults.val(res.address + " " + res.signature);
Expand All @@ -3158,7 +3158,7 @@ const $dogeTx = $("#dogeTx");
const $dogeResults = $("#dogeResults");

const dogeBip44 = {
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
addressNList: [0x80000000 + 44, 0x80000000 + 3, 0x80000000 + 0],
};
$dogeAddr.on("click", async (e) => {
Expand Down Expand Up @@ -3195,7 +3195,7 @@ $dogeTx.on("click", async (e) => {
const inputs = [
{
addressNList: dogeBip44.addressNList.concat([0, 0]),
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(35577380098),
vout: 1,
txid: txid,
Expand All @@ -3209,7 +3209,7 @@ $dogeTx.on("click", async (e) => {
{
address: "DMEHVGRsELY5zyYbfgta3pAhedKGeaDeJd",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(35577380098),
isChange: false,
},
Expand Down Expand Up @@ -3241,7 +3241,7 @@ const $bchTx = $("#bchTx");
const $bchResults = $("#bchResults");

const bchBip44 = {
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
addressNList: [0x80000000 + 44, 0x80000000 + 145, 0x80000000 + 0],
};

Expand Down Expand Up @@ -3279,7 +3279,7 @@ $bchTx.on("click", async (e) => {
const inputs = [
{
addressNList: bchBip44.addressNList.concat([0, 0]),
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(13813640),
vout: 0,
txid: txid,
Expand All @@ -3290,11 +3290,9 @@ $bchTx.on("click", async (e) => {

const outputs = [
{
address: (await wallet.btcSupportsScriptType("BitcoinCash", core.BTCInputScriptType.CashAddr))
? "bitcoincash:qq5mg2xtp9y5pvvgy7m4k2af5a7s5suulueyywgvnf"
: "14oWXZFPhgP9DA3ggPzhHpUUaikDSjAuMC",
address: "bitcoincash:qq5mg2xtp9y5pvvgy7m4k2af5a7s5suulueyywgvnf",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(13813640),
isChange: false,
},
Expand Down Expand Up @@ -3326,7 +3324,7 @@ const $dashTx = $("#dashTx");
const $dashResults = $("#dashResults");

const dashBip44 = {
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
addressNList: [0x80000000 + 44, 0x80000000 + 5, 0x80000000 + 0],
};

Expand Down Expand Up @@ -3364,7 +3362,7 @@ $dashTx.on("click", async (e) => {
const inputs = [
{
addressNList: dashBip44.addressNList.concat([0, 0]),
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(4954359),
vout: 0,
txid: txid,
Expand All @@ -3378,7 +3376,7 @@ $dashTx.on("click", async (e) => {
{
address: "XexybzTUtH9V9eY4UJN2aCcBT3utan5C8N",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(4000000),
isChange: false,
},
Expand Down Expand Up @@ -3409,7 +3407,7 @@ const $dgbTx = $("#dgbTx");
const $dgbResults = $("#dgbResults");

const dgbBip44 = {
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
addressNList: [0x80000000 + 44, 0x80000000 + 20, 0x80000000 + 0],
};

Expand Down Expand Up @@ -3449,7 +3447,7 @@ $dgbTx.on("click", async (e) => {
const inputs = [
{
addressNList: dgbBip44.addressNList.concat([0, 0]),
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(480000000),
vout: 15,
txid: "be150359df4123b379f1f12de978bfced92644645da17b97c7613879f4306a90",
Expand All @@ -3458,7 +3456,7 @@ $dgbTx.on("click", async (e) => {
},
{
addressNList: dgbBip44.addressNList.concat([0, 0]),
scriptType: core.BTCInputScriptType.SpendAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(10000000),
vout: 0,
txid: "528ec23eaf123282e9bce297ebb3edfb05e8b4d5875cbc9c271a98d72a202340",
Expand All @@ -3471,14 +3469,14 @@ $dgbTx.on("click", async (e) => {
{
address: "SWpe93hQL2pLUDLy7swsDPWQJGCHSsgmun",
addressType: null,
scriptType: core.BTCOutputScriptType.PayToMultisig,
scriptType: core.BTCScriptType.LegacyMultisig,
amount: String(400000000),
isChange: false,
},
{
address: "DNLcBry65dHehGExGYjBkM8kxDYr7mZ3BT",
addressType: null,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
relpath: "1/9",
amount: String(90000000),
isChange: true,
Expand Down Expand Up @@ -3527,7 +3525,7 @@ $btcAddrSegWit.on("click", async (e) => {
const res = await wallet.btcGetAddress({
addressNList: [0x80000000 + 49, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
coin: "Bitcoin",
scriptType: core.BTCInputScriptType.SpendP2SHWitness,
scriptType: core.BTCScriptType.Segwit,
showDisplay: true,
});

Expand All @@ -3550,7 +3548,7 @@ $btcAddrSegWitNative.on("click", async (e) => {
const res = await wallet.btcGetAddress({
addressNList: [0x80000000 + 84, 0x80000000 + 0, 0x80000000 + 0, 0, 0],
coin: "Bitcoin",
scriptType: core.BTCInputScriptType.SpendWitness,
scriptType: core.BTCScriptType.SegwitNative,
showDisplay: true,
});
$btcResultsSegWit.val(res);
Expand All @@ -3577,7 +3575,7 @@ $btcTxSegWit.on("click", async (e) => {
amount: String(100000),
vout: 0,
txid: txid,
scriptType: core.BTCInputScriptType.SpendP2SHWitness,
scriptType: core.BTCScriptType.Segwit,
tx: btcSegWitTxJson,
hex,
},
Expand All @@ -3587,7 +3585,7 @@ $btcTxSegWit.on("click", async (e) => {
{
address: "3Eq3agTHEhMCC8sZHnJJcCcZFB7BBSJKWr",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(89869),
isChange: false,
},
Expand Down Expand Up @@ -3629,7 +3627,7 @@ $btcTxSegWitNative.on("click", async (e) => {
amount: String(9426),
vout: 0,
txid: txid,
scriptType: core.BTCInputScriptType.SpendWitness,
scriptType: core.BTCScriptType.SegwitNative,
tx: btcBech32TxJson,
hex,
},
Expand All @@ -3639,7 +3637,7 @@ $btcTxSegWitNative.on("click", async (e) => {
{
address: "bc1qc5dgazasye0yrzdavnw6wau5up8td8gdqh7t6m",
addressType: core.BTCOutputAddressType.Spend,
scriptType: core.BTCOutputScriptType.PayToAddress,
scriptType: core.BTCScriptType.Legacy,
amount: String(1337),
isChange: false,
},
Expand Down
Loading