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

implement Array/Vector for serialization #348

Open
BeroBurny opened this issue Dec 10, 2020 · 0 comments
Open

implement Array/Vector for serialization #348

BeroBurny opened this issue Dec 10, 2020 · 0 comments

Comments

@BeroBurny
Copy link
Collaborator

It could be something like this: https://github.com/ChainSafe/ssz/blob/master/src/types/composite/array.ts

export class UnboundedArray extends CompositeType {
   constructor(opts: {type}) {
   }

   serialize() {
     //impl
    }

       deserialize() {
     //impl
    }

   toJson() {
     //impl
    }

      fromJson() {
     //impl
    }

}

and use it instead of ListType in networkMetrics.ts

Originally posted by @mpetrunic in #327 (comment)

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

No branches or pull requests

1 participant