Skip to content

Commit 556e8d0

Browse files
committed
added sr25519
1 parent f2dae1b commit 556e8d0

4 files changed

Lines changed: 43 additions & 2 deletions

File tree

configs/tsup.config.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export default defineConfig([
2323
exchangeInfo: 'src/ExchangeInfo/index.ts',
2424
royalties: 'src/Royalties/index.ts',
2525
hashes: 'src/Hashes/index.ts',
26+
sr25519: 'src/Utils/sr25519.ts',
2627
},
2728
format: [
2829
'esm',
@@ -62,4 +63,11 @@ export default defineConfig([
6263
globalName: 'UniqueHashes',
6364
...iifeOptions,
6465
},
66+
{
67+
entry: {
68+
sr25519: 'src/Utils/sr25519.ts',
69+
},
70+
globalName: 'Sr25519',
71+
...iifeOptions,
72+
}
6573
])

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@
4646
"release-it": "^15.4.2",
4747
"rimraf": "^5.0.5",
4848
"tsup": "^8.0.2",
49+
"tsx": "^4.7.1",
4950
"typescript": "^5.3.3",
5051
"vitest": "^1.3.0"
5152
},
5253
"dependencies": {
5354
"@noble/hashes": "^1.3.3",
55+
"@unique-nft/sr25519": "^0.0.1",
5456
"base-x": "^4.0.0",
5557
"utf-helpers": "^0.0.3"
5658
}

src/Utils/sr25519.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from '@unique-nft/sr25519'

yarn.lock

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
"@jridgewell/resolve-uri" "3.1.0"
542542
"@jridgewell/sourcemap-codec" "1.4.14"
543543

544-
"@noble/hashes@^1.3.3":
544+
"@noble/hashes@^1.2.0", "@noble/hashes@^1.3.3":
545545
version "1.3.3"
546546
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699"
547547
integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==
@@ -801,6 +801,14 @@
801801
resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.1.tgz#d3357479a0fdfdd5907fe67e17e0a85c906e1301"
802802
integrity sha512-Gj7cI7z+98M282Tqmp2K5EIsoouUEzbBJhQQzDE3jSIRk6r9gsz0oUokqIUR4u1R3dMHo0pDHM7sNOHyhulypw==
803803

804+
"@unique-nft/sr25519@^0.0.1":
805+
version "0.0.1"
806+
resolved "https://registry.yarnpkg.com/@unique-nft/sr25519/-/sr25519-0.0.1.tgz#af8e7b2591ac482055de24114f8b910c0ef1ba31"
807+
integrity sha512-LedK8lwoCvHuye0hfraG/caBfmmp4nFEizWzaLusPSMLnQY8o4fVbQuiBM7ahX3YMOOv8o/VSKiyf7X4WtOk2Q==
808+
dependencies:
809+
"@noble/hashes" "^1.2.0"
810+
base-x "^4.0.0"
811+
804812
"@vitest/expect@1.3.0":
805813
version "1.3.0"
806814
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-1.3.0.tgz#09b374357b51be44f4fba9336d59024756f902dc"
@@ -1677,7 +1685,7 @@ es-to-primitive@^1.2.1:
16771685
is-date-object "^1.0.1"
16781686
is-symbol "^1.0.2"
16791687

1680-
esbuild@^0.19.2, esbuild@^0.19.3:
1688+
esbuild@^0.19.2, esbuild@^0.19.3, esbuild@~0.19.10:
16811689
version "0.19.12"
16821690
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04"
16831691
integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==
@@ -2016,6 +2024,13 @@ get-symbol-description@^1.0.0:
20162024
call-bind "^1.0.2"
20172025
get-intrinsic "^1.1.1"
20182026

2027+
get-tsconfig@^4.7.2:
2028+
version "4.7.2"
2029+
resolved "https://registry.yarnpkg.com/get-tsconfig/-/get-tsconfig-4.7.2.tgz#0dcd6fb330391d46332f4c6c1bf89a6514c2ddce"
2030+
integrity sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==
2031+
dependencies:
2032+
resolve-pkg-maps "^1.0.0"
2033+
20192034
get-uri@3:
20202035
version "3.0.2"
20212036
resolved "https://registry.yarnpkg.com/get-uri/-/get-uri-3.0.2.tgz#f0ef1356faabc70e1f9404fa3b66b2ba9bfc725c"
@@ -3696,6 +3711,11 @@ resolve-from@^5.0.0:
36963711
resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69"
36973712
integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==
36983713

3714+
resolve-pkg-maps@^1.0.0:
3715+
version "1.0.0"
3716+
resolved "https://registry.yarnpkg.com/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz#616b3dc2c57056b5588c31cdf4b3d64db133720f"
3717+
integrity sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==
3718+
36993719
resolve@^1.1.6:
37003720
version "1.22.2"
37013721
resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f"
@@ -4224,6 +4244,16 @@ tsup@^8.0.2:
42244244
sucrase "^3.20.3"
42254245
tree-kill "^1.2.2"
42264246

4247+
tsx@^4.7.1:
4248+
version "4.7.1"
4249+
resolved "https://registry.yarnpkg.com/tsx/-/tsx-4.7.1.tgz#27af6cbf4e1cdfcb9b5425b1c61bb7e668eb5e84"
4250+
integrity sha512-8d6VuibXHtlN5E3zFkgY8u4DX7Y3Z27zvvPKVmLon/D4AjuKzarkUBTLDBgj9iTQ0hg5xM7c/mYiRVM+HETf0g==
4251+
dependencies:
4252+
esbuild "~0.19.10"
4253+
get-tsconfig "^4.7.2"
4254+
optionalDependencies:
4255+
fsevents "~2.3.3"
4256+
42274257
type-check@~0.3.2:
42284258
version "0.3.2"
42294259
resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"

0 commit comments

Comments
 (0)