@layerzerolabs/onesig-core 0.1.1 → 0.2.0
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/LICENSE.md +9 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/LICENSE.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
GPL-3.0 License
|
|
2
|
+
|
|
3
|
+
Copyright (C) 2025 LayerZero Labs Ltd.
|
|
4
|
+
|
|
5
|
+
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
|
|
6
|
+
|
|
7
|
+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
|
|
8
|
+
|
|
9
|
+
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
|
package/dist/index.js
CHANGED
|
@@ -124,7 +124,7 @@ function makeOneSigTree(input) {
|
|
|
124
124
|
encodedLeafs.push(encodeLeaf(gen, i));
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
|
-
const tree = new import_merkletreejs.MerkleTree(encodedLeafs, import_ethers.ethers.utils.keccak256, {
|
|
127
|
+
const tree = new import_merkletreejs.MerkleTree(encodedLeafs, import_ethers.ethers.utils.keccak256, { sort: true });
|
|
128
128
|
return tree;
|
|
129
129
|
}
|
|
130
130
|
function compareAddresses(a, b) {
|
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ function makeOneSigTree(input) {
|
|
|
90
90
|
encodedLeafs.push(encodeLeaf(gen, i));
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
const tree = new MerkleTree(encodedLeafs, ethers.utils.keccak256, {
|
|
93
|
+
const tree = new MerkleTree(encodedLeafs, ethers.utils.keccak256, { sort: true });
|
|
94
94
|
return tree;
|
|
95
95
|
}
|
|
96
96
|
function compareAddresses(a, b) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerzerolabs/onesig-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@jest/globals": "^29.7.0",
|
|
34
|
-
"@layerzerolabs/eslint-config-next": "^3.0.
|
|
35
|
-
"@layerzerolabs/prettier-config-next": "^3.0.
|
|
34
|
+
"@layerzerolabs/eslint-config-next": "^3.0.92",
|
|
35
|
+
"@layerzerolabs/prettier-config-next": "^3.0.92",
|
|
36
36
|
"@rushstack/eslint-patch": "^1.7.0",
|
|
37
37
|
"@types/node": "20.10.0",
|
|
38
38
|
"dotenv": "^16.4.1",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"node": ">=20.10.0"
|
|
51
51
|
},
|
|
52
52
|
"publishConfig": {
|
|
53
|
-
"access": "
|
|
53
|
+
"access": "public"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build:js": "pnpm tsup --config ../../tsup.config.ts ./src/index.ts",
|