Skip to content
This repository has been archived by the owner on Aug 11, 2021. It is now read-only.

Migration to new block-service and block interface #81

Merged
merged 1 commit into from
Mar 22, 2017
Merged

Conversation

dignifiedquire
Copy link
Member

src/index.js Outdated
// level: require('memdown')
// })
// blockService = new BlockService(repo)
// }
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nicola will not like that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but yeah, understood. Do what you gotta do.

@dignifiedquire dignifiedquire changed the title [WIP] Migration to new block-service and block interface Migration to new block-service and block interface Mar 17, 2017
@dignifiedquire
Copy link
Member Author

@diasdavid the only failing test is because of https://github.com/dignifiedquire/js-ipld-eth-state-trie/tree/datastore

There is a new ipfs block created in the resolver and I'm unsure what the right CID to put in there is. Could you take a look please?

Copy link
Member

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall LGTM

  • rm yarn.lock
  • the eth-x need to be updated as well.

}
callback(null, new IPLDResolver(blockService))
})
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so that @nicola remains happy 🙌🏽

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this turned out to be great, as I had forgotten to test in-memory in nodejs and found a bug in the repo

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@@ -25,10 +26,8 @@ function noop () {}

class IPLDResolver {
constructor (blockService) {
// nicola will love this!
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

poor @nicola

07:50:02.059983 db@janitor F·4 G·0
07:50:02.060001 db@open done T·2.755926ms
07:50:02.073183 db@close closing
07:50:02.073285 db@close done T·97.522µs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add to gitignore

@kumavis
Copy link
Contributor

kumavis commented Mar 20, 2017

hmm for the state-trie it should continue resolving as an eth-account-snapshot. A little confused how it ended up as a eth-tx.

@kumavis
Copy link
Contributor

kumavis commented Mar 20, 2017

Sorry that i haven't been available to maintain the ipfs-eth stuff in a few weeks, hope to get back on it soon.

@kumavis
Copy link
Contributor

kumavis commented Mar 20, 2017

Hmm seems i may have clobbered it here: dignifiedquire/js-ipld-eth-state-trie@bff107d
💣 The dangers of copy-pasting repo's and not updated the git remotes. Really, I should extract all these eth-*-trie resolvers into a factory and then fill in the relevant types.

@daviddias
Copy link
Member

@kumavis can we get the remaining ipld-eth-x resolvers under ipld org? It makes it easier for all of us to help you maintain it.

Currently, it is blocking us from merging datastore all the way up.

@daviddias
Copy link
Member

daviddias commented Mar 21, 2017

Things missing for this PR:

  • rm yarn.lock
  • rebase master
  • update ipld-eth-x packages //cc @kumavis

@kumavis
Copy link
Contributor

kumavis commented Mar 21, 2017

sure - who should i add as an npm owner?

@daviddias
Copy link
Member

both me and @dignifiedquire (my handle is daviddias on npm http://npmjs.org/~daviddias)

@dignifiedquire
Copy link
Member Author

@kumavis @diasdavid as mentioned in irc I'm still not sure how to fix the module, could you two please put your heads together and make it so? <3

@kumavis
Copy link
Contributor

kumavis commented Mar 22, 2017

heres my status update:

  • js-ipld-eth-block

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-tx

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-state-trie

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-storage-trie

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-block-list

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-account-snapshot

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-trie

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-tx-trie

    • move to IPLD org
    • add owners on npm
    • sanity check + readme
  • js-ipld-eth-tx-receipt-trie

    • implement
  • js-ipld-eth-tx-receipt

    • implement
  • General TODOs

    • new IpfsBlock constructor params
    • resolve as path and field index

@dignifiedquire
Copy link
Member Author

@dignifiedquire
Copy link
Member Author

🎉 🎉 🎉 🎉 🎉 🎉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants