@silencelaboratories/walletprovider-sdk 0.0.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/README.md ADDED
@@ -0,0 +1 @@
1
+ # walletprovider-sdk
package/dist/hex.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ export declare const decodeHex: (s: string) => Uint8Array;
2
+ export declare const encodeHex: (a: Uint8Array) => string;
3
+ //# sourceMappingURL=hex.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hex.d.ts","sourceRoot":"","sources":["../src/hex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS,MAAO,MAAM,KAAG,UAMrC,CAAC;AAEF,eAAO,MAAM,SAAS,MAAO,UAAU,KAAG,MAAqE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { decodeHex, encodeHex } from './hex';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ var n=(t)=>{const r=t.match(/[0-9A-Fa-f]{2}/g);if(!r)throw new Error("bad hex string");return Uint8Array.from(r.map((e)=>parseInt(e,16)))},o=(t)=>t.reduce((r,e)=>r+e.toString(16).padStart(2,"0"),"");export{o as encodeHex,n as decodeHex};
package/package.json ADDED
@@ -0,0 +1,29 @@
1
+ {
2
+ "name": "@silencelaboratories/walletprovider-sdk",
3
+ "version": "0.0.0",
4
+ "description": "Frontend SDK for Wallet Providers",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "scripts": {
11
+ "format": "prettier --write --cache .",
12
+ "lint": "eslint --cache ./src/**/*.ts",
13
+ "typecheck": "tsc -p . --noEmit",
14
+ "build": "bun run scripts/build.mjs && bun run build:declaration",
15
+ "build:declaration": "tsc -p . --emitDeclarationOnly",
16
+ "test": "bun test",
17
+ "test:watch": "bun test --watch"
18
+ },
19
+ "type": "module",
20
+ "devDependencies": {
21
+ "@eslint/js": "^9.3.0",
22
+ "@types/bun": "^1.1.2",
23
+ "eslint": "9.x",
24
+ "globals": "^15.3.0",
25
+ "prettier": "^3.2.5",
26
+ "typescript": "^5.4.5",
27
+ "typescript-eslint": "^7.10.0"
28
+ }
29
+ }