refactor: simplify wallet ord logic #904
Annotations
4 errors and 4 warnings
Run tests:
sdk/src/esplora.ts#L490
TypeError: fetch failed
❯ EsploraClient.getJson src/esplora.ts:490:26
❯ isCardinalTx src/wallet/utxo.ts:31:25
❯ 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
|
Run tests:
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
❯ isCardinalTx src/wallet/utxo.ts:32:21
❯ isCardinalTx src/wallet/utxo.ts:32:21
Caused by: Caused by: SocketError: other side closed
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { code: 'UND_ERR_SOCKET', socket: { localAddress: '10.1.0.6', localPort: 53564, remoteAddress: undefined, remotePort: undefined, remoteFamily: undefined, timeout: undefined, bytesWritten: 542, bytesRead: 1393 } }
|
Run tests:
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
|
Run tests
Process completed with exit code 1.
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Run npm run lint:
sdk/src/ordinals/signer.ts#L11
'_hash' is defined but never used
|
Run npm run lint:
sdk/src/ordinals/signer.ts#L11
'_lowR' is defined but never used
|
Run npm run lint:
sdk/src/ordinals/signer.ts#L15
'hash' is defined but never used
|
Loading