refactor: simplify wallet ord logic #903
Annotations
7 errors and 5 warnings
test/utxo.test.ts > UTXO Tests > should spend from address to create a transaction with an OP return output:
sdk/src/ordinal-api/index.ts#L564
TypeError: fetch failed
❯ OrdinalsClient.getJson src/ordinal-api/index.ts:564:26
❯ src/wallet/utxo.ts:36:28
❯ isCardinalTx src/wallet/utxo.ts:32:21
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at internalConnectMultiple (node:net:1190:5)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
errors: [
{
stack: 'Error: connect ETIMEDOUT 104.26.7.58:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 104.26.7.58:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '104.26.7.58',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::681a:73a:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::681a:73a:443 - Local (:::0)',
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2606:4700:20::681a:73a',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ETIMEDOUT 172.67.69.91:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 172.67.69.91:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '172.67.69.91',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::681a:63a:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::681a:63a:443 - Local (:::0)',
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2606:4700:20::681a:63a',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ETIMEDOUT 104.26.6.58:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 104.26.6.58:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '104.26.6.58',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::ac43:455b:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::ac43:4
|
test/utxo.test.ts > UTXO Tests > should estimate the fee for a transaction:
sdk/src/ordinal-api/index.ts#L570
Error: Bad Gateway
❯ OrdinalsClient.getJson src/ordinal-api/index.ts:570:19
❯ src/wallet/utxo.ts:36:28
❯ isCardinalTx src/wallet/utxo.ts:32:21
❯ isCardinalTx src/wallet/utxo.ts:32:21
❯ isCardinalTx src/wallet/utxo.ts:32:21
|
test/utxo.test.ts > UTXO Tests > should not spend outputs with inscriptions:
sdk/src/wallet/utxo.ts#L230
Error: Failed to create transaction. Do you have enough funds?
❯ Module.createBitcoinPsbt src/wallet/utxo.ts:230:15
❯ test/utxo.test.ts:374:9
|
test/utxo.test.ts > UTXO Tests > outputs could not be spent if not confirmed by ord service and indexed:
sdk/src/ordinal-api/index.ts#L564
TypeError: fetch failed
❯ OrdinalsClient.getJson src/ordinal-api/index.ts:564:26
❯ src/wallet/utxo.ts:36:28
❯ isCardinalTx src/wallet/utxo.ts:32:21
{
stack: 'AggregateError: \n' +
' at internalConnectMultiple (node:net:1122:18)\n' +
' at internalConnectMultiple (node:net:1190:5)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
errors: [
{
stack: 'Error: connect ETIMEDOUT 104.26.6.58:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 104.26.6.58:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '104.26.6.58',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::ac43:455b:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::ac43:455b:443 - Local (:::0)',
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2606:4700:20::ac43:455b',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ETIMEDOUT 104.26.7.58:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 104.26.7.58:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '104.26.7.58',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::681a:63a:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::681a:63a:443 - Local (:::0)',
errno: -101,
code: 'ENETUNREACH',
syscall: 'connect',
address: '2606:4700:20::681a:63a',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ETIMEDOUT 172.67.69.91:443\n' +
' at createConnectionError (node:net:1652:14)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1711:38)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ETIMEDOUT 172.67.69.91:443',
errno: -110,
code: 'ETIMEDOUT',
syscall: 'connect',
address: '172.67.69.91',
port: 443,
constructor: 'Function<Error>',
name: 'Error',
toString: 'Function<toString>'
},
{
stack: 'Error: connect ENETUNREACH 2606:4700:20::681a:73a:443 - Local (:::0)\n' +
' at internalConnectMultiple (node:net:1186:16)\n' +
' at Timeout.internalConnectMultipleTimeout (node:net:1716:5)\n' +
' at listOnTimeout (node:internal/timers:583:11)\n' +
' at processTimers (node:internal/timers:519:7)',
message: 'connect ENETUNREACH 2606:4700:20::681a
|
test/utxo.test.ts > UTXO Tests > outputs could not be spent if not confirmed by ord service, not indexed and contain runes or inscriptions:
sdk/test/utxo.test.ts#L520
AssertionError: expected 323967 to be less than 323967
❯ test/utxo.test.ts:520:39
|
test/utxo.test.ts > UTXO Tests > processes utxo correctly:
sdk/test/utxo.test.ts#L661
TypeError: _processUtxos is not a function
❯ test/utxo.test.ts:661:36
|
SDK
Process completed with exit code 1.
|
Contracts
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
SDK
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
SDK:
sdk/src/ordinals/signer.ts#L11
'_hash' is defined but never used
|
SDK:
sdk/src/ordinals/signer.ts#L11
'_lowR' is defined but never used
|
SDK:
sdk/src/ordinals/signer.ts#L15
'hash' is defined but never used
|