0.3.0 • Published 2 years ago

as-serde-scale v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

as-serde-scale

as-serde-scale provides ScaleSerializer class which implements Serializer and ScaleDeserializer class which implements Deserializer.

Supported Types

In addition to the types supported by as-serde, as-serde-scale also supports i128/u128 and Compact<T> types.

More detailed information about the SCALE codec specification.

Example

@serialize({ omitName: true })
@deserialize({ omitName: true })
class Person {
    name: string;
    gender: bool;
}

let person = ScaleSerializer.serialize(Person{name: "yjhmelody", gender: true});

See __test__ for more examples.

0.3.0

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

3 years ago

0.0.22

3 years ago

0.1.0

3 years ago

0.1.1

3 years ago

0.0.21

3 years ago

0.0.20

3 years ago

0.0.19

3 years ago

0.0.18

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago