-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Refactoring With Lumos #177
Comments
We can seperate these tasks to small issues so that it is easy to write smaller PRs and can be parallelly executed by different team members. |
OK, I'll transform the plan section into TODO list |
The CKB indexer offers a feature We can simplify the const grouped = get_transactions({
search_key: {
lock: ...,
group_by_transaction: true,
limit: no_limit_here
}
})
grouped.forEach(({tx_hash}) => {
mappingsByTxHash.set(tx_hash, [...])
}) This is a small improvement, so I suggest we move the point to the backlog |
Agree ^-^ |
Background
Currently, there are several Lumos modules was reimplemented in Neuron, this results in higher maintenance cost for Neuron as the reimplementation causes us to rewrite unit tests
List
LumosCell
->lumos/base/Cell
- not compatibleLumosCellQuery
->lumos/ckb-indexer/QueryOptions
- compatibleIndexerCacheService.fetchTxMapping
->TransactionCollector
with grouped transaction featureHexUtils
->@ckb-lumos/codec
- compatible #187HexString === HexString
->bytes.equal
to avoid0xAA !== 0xaa
shannonToCKB
,sudtValueToAmount
->BI.formatUnit
models/blake2b
->lumos/base/utils/blake2b
models/multisig
->lumos/base/since
ckb indexer url
with theckb url
, since the CKB Indexer has been integrated into CKBmodels/keys
->@ckb-lumos/hd
@nervosnetwork/ckb-sdk-x
can be refactored with the lumosRefactor ckb-sdk-core by lumos #202
Refactor ckb-sdk-utils by lumos #201
the global variable
ckbCore
@nervosnetwork/ckb-sdk-utils
The text was updated successfully, but these errors were encountered: