Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script to convert post/comments from GolosChain to CyberWay #143

Closed
afalaleev opened this issue Oct 23, 2018 · 2 comments
Closed
Assignees
Labels
Milestone

Comments

@afalaleev
Copy link
Contributor

Full information about

  • Posts
  • Comments
@s-medvedev
Copy link
Contributor

s-medvedev commented Oct 26, 2018

In Cyberway database golos.publication save data in format like this:

> db.messagetable.find()
{ "_id" : ObjectId("5bd6db93e5d50a792404feb5"), "id" : NumberLong("-7260110759890644814"), "date" : NumberLong("1540807571500000"), "parentacc" : "", "parent_id" : NumberLong(0), "tokenprop" : NumberLong(0), "beneficiaries" : [ ], "rewardweight" : NumberLong("4611686018427387904"), "state" : { "absshares" : NumberLong(0), "netshares" : NumberLong(0), "voteshares" : NumberLong(0), "sumcuratorsw" : NumberLong(0) }, "childcount" : NumberLong(0), "closed" : false, "level" : NumberLong(0), "_SCOPE_" : "user1", "_PAYER_" : "gls.publish", "_SIZE_" : NumberLong(92) }
> db.contenttable
gls-publish.contenttable

> db.contenttable.find()
{ "_id" : ObjectId("5bd6db93e5d50a792404feb6"), "id" : NumberLong("-7260110759890644814"), "headermssg" : "Header2", "bodymssg" : "Body message2", "languagemssg" : "ru", "tags" : [ ], "jsonmetadata" : "", "_SCOPE_" : "user1", "_PAYER_" : "user1", "_SIZE_" : NumberLong(35) }

> db.votetable.find()
{ "_id" : ObjectId("5bd6dc4ee5d50a792404febc"), "id" : NumberLong(1), "message_id" : NumberLong("-7260110759890644814"), "voter" : "user2", "weight" : NumberLong(1000), "time" : NumberLong("1540807758000000"), "count" : NumberLong(1), "curatorsw" : NumberLong(0), "_SCOPE_" : "user1", "_PAYER_" : "user2", "_SIZE_" : NumberLong(50) }
{ "_id" : ObjectId("5bd6dc53e5d50a792404febf"), "id" : NumberLong(2), "message_id" : NumberLong("-7260110759890644814"), "voter" : "user3", "weight" : NumberLong(-1000), "time" : NumberLong("1540807764000000"), "count" : NumberLong(1), "curatorsw" : NumberLong(0), "_SCOPE_" : "user1", "_PAYER_" : "user3", "_SIZE_" : NumberLong(50) }

> db.charges.find()
{ "_id" : ObjectId("5bd6db93e5d50a792404feb4"), "poolcreated" : NumberLong("1540807350000000"), "vals" : [ { "lastupdate" : NumberLong("1540807571500000"), "data" : NumberLong(0) } ], "_SCOPE_" : "user1", "_PAYER_" : "gls.publish", "_SIZE_" : NumberLong(25) }
{ "_id" : ObjectId("5bd6dc4ee5d50a792404febb"), "poolcreated" : NumberLong("1540807350000000"), "vals" : [ { "lastupdate" : NumberLong("1540807758000000"), "data" : NumberLong(0) } ], "_SCOPE_" : "user2", "_PAYER_" : "gls.publish", "_SIZE_" : NumberLong(25) }
{ "_id" : ObjectId("5bd6dc53e5d50a792404febe"), "poolcreated" : NumberLong("1540807350000000"), "vals" : [ { "lastupdate" : NumberLong("1540807764000000"), "data" : NumberLong(0) } ], "_SCOPE_" : "user3", "_PAYER_" : "gls.publish", "_SIZE_" : NumberLong(25) }

> db.rewardpools.find()
{ "_id" : ObjectId("5bd6dab5e5d50a792404feaf"), "created" : NumberLong("1540807350000000"), "rules" : { "mainfunc" : { "code" : { "varssize" : NumberLong(0), "operators" : [ NumberLong(0) ], "values" : [ { "kind" : NumberLong(0), "idx" : NumberLong(0) } ], "nums" : [ NumberLong(0) ], "consts" : [ ] }, "maxarg" : NumberLong(4096) }, "curationfunc" : { "code" : { "varssize" : NumberLong(0), "operators" : [ NumberLong(0) ], "values" : [ { "kind" : NumberLong(0), "idx" : NumberLong(0) } ], "nums" : [ NumberLong(0) ], "consts" : [ ] }, "maxarg" : NumberLong(4096) }, "timepenalty" : { "code" : { "varssize" : NumberLong(0), "operators" : [ NumberLong(0) ], "values" : [ { "kind" : NumberLong(0), "idx" : NumberLong(0) } ], "nums" : [ NumberLong(0) ], "consts" : [ ] }, "maxarg" : NumberLong(4096) }, "curatorsprop" : NumberLong(0), "maxtokenprop" : NumberLong(0) }, "lims" : { "restorers" : [ { "varssize" : NumberLong(0), "operators" : [ NumberLong(0) ], "values" : [ { "kind" : NumberLong(0), "idx" : NumberLong(0) } ], "nums" : [ NumberLong(4096) ], "consts" : [ ] } ], "limitedacts" : [ { "chargenum" : NumberLong(0), "restorernum" : NumberLong(0), "cutoffval" : NumberLong(0), "chargeprice" : NumberLong(0) }, { "chargenum" : NumberLong(0), "restorernum" : NumberLong(0), "cutoffval" : NumberLong(0), "chargeprice" : NumberLong(0) }, { "chargenum" : NumberLong(0), "restorernum" : NumberLong(0), "cutoffval" : NumberLong(0), "chargeprice" : NumberLong(0) }, { "chargenum" : NumberLong(0), "restorernum" : NumberLong(0), "cutoffval" : NumberLong(0), "chargeprice" : NumberLong(0) } ], "vestingprices" : [ NumberLong(0), NumberLong(0) ], "minvestings" : [ NumberLong(0), NumberLong(0), NumberLong(0) ] }, "state" : { "msgs" : NumberLong(1), "funds" : { "amount" : NumberLong(10000000), "decs" : NumberLong(4), "sym" : "SYS" }, "rshares" : NumberLong(0), "rsharesfn" : NumberLong(0) }, "_SCOPE_" : "gls-publish", "_PAYER_" : "gls.publish", "_SIZE_" : NumberLong(352) }

@adedkov
Copy link
Contributor

adedkov commented Oct 29, 2018

#157

@s-medvedev s-medvedev modified the milestones: prototype, Sprint-oct-22 Nov 5, 2018
s-medvedev added a commit that referenced this issue Nov 6, 2018
Create script to convert post/comments from GolosChain to CyberWay #143
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants