feat: rgb++ ckb transaction queue #81
Annotations
10 errors and 1 warning
test/app.test.ts > `/docs/json` - 200:
test/app.test.ts#L16
AssertionError: expected [ '/token/generate', …(16) ] to strictly equal [ '/token/generate', …(13) ]
- Expected
+ Received
Array [
"/token/generate",
"/bitcoin/v1/info",
"/bitcoin/v1/block/{hash}",
+ "/bitcoin/v1/block/{hash}/txids",
"/bitcoin/v1/block/{hash}/header",
"/bitcoin/v1/block/height/{height}",
"/bitcoin/v1/transaction",
"/bitcoin/v1/transaction/{txid}",
"/bitcoin/v1/address/{address}/balance",
"/bitcoin/v1/address/{address}/unspent",
"/bitcoin/v1/address/{address}/txs",
"/rgbpp/v1/transaction/ckb-tx",
"/rgbpp/v1/transaction/{btc_txid}",
"/rgbpp/v1/assets/{btc_txid}/{vout}",
"/rgbpp/v1/address/{btc_address}/assets",
+ "/rgbpp/v1/spv/proof",
+ "/cron/transactions",
]
❯ test/app.test.ts:16:35
|
test/services/paymaster.test.ts > Paymaster > getNextCellJob: should return the next job when queue has sufficient jobs:
src/services/paymaster.ts#L106
TypeError: Cannot destructure property 'txHash' of 'outPoint' as it is undefined.
❯ Array.toOutPoint node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/paramsFormatter.ts:54:13
❯ map node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:78:44
❯ Method.getPayload node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:75:25
❯ CKBRPC.getLiveCell node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:44:26
❯ Paymaster.getNextCell src/services/paymaster.ts:106:49
❯ test/services/paymaster.test.ts:45:17
|
test/services/paymaster.test.ts > Paymaster > getNextCellJob: should trigger refill when queue has fewer jobs than threshold:
src/services/paymaster.ts#L106
TypeError: Cannot destructure property 'txHash' of 'outPoint' as it is undefined.
❯ Array.toOutPoint node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/paramsFormatter.ts:54:13
❯ map node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:78:44
❯ Method.getPayload node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:75:25
❯ CKBRPC.getLiveCell node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:44:26
❯ Paymaster.getNextCell src/services/paymaster.ts:106:49
❯ test/services/paymaster.test.ts:58:17
|
test/services/paymaster.test.ts > Paymaster > getNextCellJob: should return a job when queue is empty and refill is successful:
src/services/paymaster.ts#L106
TypeError: Cannot destructure property 'txHash' of 'outPoint' as it is undefined.
❯ Array.toOutPoint node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/paramsFormatter.ts:54:13
❯ map node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:78:44
❯ Method.getPayload node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:75:25
❯ CKBRPC.getLiveCell node_modules/.pnpm/@[email protected]/node_modules/@ckb-lumos/rpc/src/method.ts:44:26
❯ Paymaster.getNextCell src/services/paymaster.ts:106:49
❯ test/services/paymaster.test.ts:70:5
|
test/services/unlocker.test.ts > Unlocker > getNextBatchLockCell: should skip unconfirmed btc tx:
test/services/unlocker.test.ts#L72
Error: getTransaction does not exist
❯ test/services/unlocker.test.ts:72:8
|
test/services/unlocker.test.ts > Unlocker > getNextBatchLockCell: should return cells when btc tx is confirmed:
test/services/unlocker.test.ts#L83
Error: getTransaction does not exist
❯ test/services/unlocker.test.ts:83:8
|
test/services/unlocker.test.ts > Unlocker > getNextBatchLockCell: should break when cells reach batch size:
test/services/unlocker.test.ts#L96
Error: getTransaction does not exist
❯ test/services/unlocker.test.ts:96:8
|
test/services/unlocker.test.ts > Unlocker > unlockCells: should unlock cells and send ckb tx:
test/services/unlocker.test.ts#L111
Error: Snapshot `Unlocker > unlockCells: should unlock cells and send ckb tx 1` mismatched
- Expected
+ Received
- [Error: Invalid BTC time lock args]
+ [Error: Invalid buffer size, read from header: 0, actual: 36]
❯ test/services/unlocker.test.ts:111:5
|
test/routes/bitcoind/address.test.ts > /bitcoin/v1/address > Get address balance:
test/routes/bitcoind/address.test.ts#L40
AssertionError: expected { …(5) } to strictly equal { …(5) }
- Expected
+ Received
Object {
"address": "tb1qlrg2mhyxrq7ns5rpa6qvrvttr9674n6z0trymp",
"dust_satoshi": 0,
"pending_satoshi": 0,
- "satoshi": 181652,
- "utxo_count": 2,
+ "satoshi": 8552,
+ "utxo_count": 14,
}
❯ test/routes/bitcoind/address.test.ts:40:18
|
test/routes/bitcoind/address.test.ts > /bitcoin/v1/address > Get address balance with min_satoshi param:
test/routes/bitcoind/address.test.ts#L66
AssertionError: expected { …(5) } to strictly equal { …(5) }
- Expected
+ Received
Object {
"address": "tb1qlrg2mhyxrq7ns5rpa6qvrvttr9674n6z0trymp",
- "dust_satoshi": 1000,
+ "dust_satoshi": 8552,
"pending_satoshi": 0,
- "satoshi": 180652,
- "utxo_count": 2,
+ "satoshi": 0,
+ "utxo_count": 14,
}
❯ test/routes/bitcoind/address.test.ts:66:18
|
test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-node@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|