solidity-scale-codec 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/README.md +2 -0
- package/package.json +10 -3
- package/src/Xcm/v5/Junctions/Junctions.sol +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## Version 0.2.1
|
|
2
|
+
|
|
3
|
+
### Added
|
|
4
|
+
|
|
5
|
+
- Documentation Site - [#eec06ff...1196986](https://github.com/LucasGrasso/solidity-scale-codec/commit/ec06ff0faa1405914893966e91bfe99d1196986)
|
|
6
|
+
|
|
7
|
+
### Changed
|
|
8
|
+
|
|
9
|
+
- Fix docs in Junctions - [#de668af..e7b8edb](https://github.com/LucasGrasso/solidity-scale-codec/commit/e7b8edbfd6f965c0120cb2572f24e3c8e81c78fe)
|
|
10
|
+
|
|
1
11
|
## Version 0.2.0
|
|
2
12
|
|
|
3
13
|
### Added
|
package/README.md
CHANGED
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
</a>
|
|
5
5
|
<a href="https://github.com/LucasGrasso/solidity-scale-codec/blob/main/LICENSE" target="_blank"><img alt="GitHub License" src="https://img.shields.io/github/license/LucasGrasso/solidity-scale-codec"></a>
|
|
6
6
|
|
|
7
|
+
📖 **[View Documentation](https://lucasgrasso.github.io/solidity-scale-codec/)** — Documentation site with API reference
|
|
8
|
+
|
|
7
9
|
## Description
|
|
8
10
|
|
|
9
11
|
[Substrate](https://github.com/paritytech/substrate) uses a lightweight and efficient [encoding and decoding program](https://docs.polkadot.com/polkadot-protocol/parachain-basics/data-encoding/#data-encoding) to optimize how data is sent and received over the network. The program used to serialize and deserialize data is called the SCALE codec, with SCALE being an acronym for **S**imple **C**oncatenated **A**ggregate **L**ittle-**E**ndian.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solidity-scale-codec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Solidity implementation of scale-codec.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"solidity",
|
|
@@ -32,7 +32,11 @@
|
|
|
32
32
|
"codegen-signed": "npx hardhat run codegen/signed/generate.ts",
|
|
33
33
|
"codegen-unsigned": "npx hardhat run codegen/unsigned/generate.ts",
|
|
34
34
|
"codegen-array": "npx hardhat run codegen/array/generate.ts",
|
|
35
|
-
"codegen-bytes": "npx hardhat run codegen/bytes/generate.ts"
|
|
35
|
+
"codegen-bytes": "npx hardhat run codegen/bytes/generate.ts",
|
|
36
|
+
"docs:gen": "solidity-docgen",
|
|
37
|
+
"docs:dev": "npm run docs:gen && vitepress dev docs",
|
|
38
|
+
"docs:build": "npm run docs:gen && vitepress build docs",
|
|
39
|
+
"docs:preview": "vitepress preview docs"
|
|
36
40
|
},
|
|
37
41
|
"type": "module",
|
|
38
42
|
"devDependencies": {
|
|
@@ -43,7 +47,10 @@
|
|
|
43
47
|
"hardhat": "^3.0.15",
|
|
44
48
|
"prettier": "^3.8.1",
|
|
45
49
|
"prettier-plugin-solidity": "^2.2.1",
|
|
50
|
+
"solidity-doc-generator": "^1.0.7",
|
|
46
51
|
"typescript": "~5.8.0",
|
|
47
|
-
"viem": "^2.40.3"
|
|
52
|
+
"viem": "^2.40.3",
|
|
53
|
+
"vitepress": "^1.6.4",
|
|
54
|
+
"vue": "^3.4.0"
|
|
48
55
|
}
|
|
49
56
|
}
|
|
@@ -7,6 +7,6 @@ import {Junction} from "../Junction/Junction.sol";
|
|
|
7
7
|
struct Junctions {
|
|
8
8
|
/// @custom:property Represents the enum discriminant, 0 = Here, 1 = X1, ..., 8 = X8
|
|
9
9
|
uint8 count;
|
|
10
|
-
/// @custom:property
|
|
10
|
+
/// @custom:property The actual junction data
|
|
11
11
|
Junction[] items;
|
|
12
12
|
}
|