@sig-net/signet.js 0.5.0-rc1
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 +19 -0
- package/README.md +95 -0
- package/dist/index.cjs +3223 -0
- package/dist/index.d.cts +2098 -0
- package/dist/index.d.ts +2096 -0
- package/dist/index.js +3167 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/package.json +109 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sig-net/signet.js",
|
|
3
|
+
"version": "0.5.0-rc1",
|
|
4
|
+
"description": "A TypeScript library for handling multi-chain transactions and signatures using Signet MPC",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"import": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"default": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"require": {
|
|
13
|
+
"types": "./dist/index.d.cts",
|
|
14
|
+
"default": "./dist/index.cjs"
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"main": "./dist/index.cjs",
|
|
19
|
+
"module": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE"
|
|
25
|
+
],
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsdown",
|
|
28
|
+
"watch": "tsdown --watch",
|
|
29
|
+
"test": "yarn test:evm && yarn test:btc && yarn test:cosmos",
|
|
30
|
+
"test:evm": "sh -c 'hardhat node --config hardhat.config.mts & NODE_PID=$!; sleep 2 && vitest run tests/unit/evm/EVM.test.ts; kill $NODE_PID'",
|
|
31
|
+
"test:btc": "docker compose -f docker/bitcoin/docker-compose.yml up -d && vitest run tests/unit/btc/Bitcoin.test.ts; docker compose -f docker/bitcoin/docker-compose.yml down -v",
|
|
32
|
+
"test:cosmos": "sh -c 'docker rm -f cosmos-node 2>/dev/null; docker build -t cosmos-local docker/cosmos && docker run -d --name cosmos-node -p 26657:26657 -p 1317:1317 cosmos-local && until curl -s http://localhost:26657/status 2>/dev/null | grep -q \"latest_block_height.:.[1-9]\"; do sleep 2; done && vitest run tests/unit/cosmos/Cosmos.test.ts; docker rm -f cosmos-node'",
|
|
33
|
+
"test:evm:e2e": "sh -c 'hardhat node --config hardhat.config.mts & NODE_PID=$!; sleep 2 && vitest run tests/e2e/evm/EVM.e2e.test.ts; kill $NODE_PID'",
|
|
34
|
+
"test:btc:e2e": "docker compose -f docker/bitcoin/docker-compose.yml up -d && vitest run tests/e2e/btc/BTC.e2e.test.ts; docker compose -f docker/bitcoin/docker-compose.yml down -v",
|
|
35
|
+
"test:cosmos:e2e": "sh -c 'docker rm -f cosmos-node 2>/dev/null; docker build -t cosmos-local docker/cosmos && docker run -d --name cosmos-node -p 26657:26657 -p 1317:1317 cosmos-local && until curl -s http://localhost:26657/status 2>/dev/null | grep -q \"latest_block_height.:.[1-9]\"; do sleep 2; done && vitest run tests/e2e/cosmos/Cosmos.e2e.test.ts; docker rm -f cosmos-node'",
|
|
36
|
+
"test:solana:integration": "vitest run tests/integration/solana/Solana.integration.test.ts",
|
|
37
|
+
"test:compat": "attw --pack . --profile node16 && publint --strict && vitest run tests/compat/compat.test.ts",
|
|
38
|
+
"release:patch": "npm version patch --no-git-tag-version --force",
|
|
39
|
+
"release:minor": "npm version minor --no-git-tag-version --force",
|
|
40
|
+
"release:major": "npm version major --no-git-tag-version --force",
|
|
41
|
+
"release:beta": "npm version prerelease --preid=beta --no-git-tag-version --force",
|
|
42
|
+
"docs:dev": "cd docs && vocs dev",
|
|
43
|
+
"docs:build": "cd docs && vocs build",
|
|
44
|
+
"docs:preview": "cd docs && vocs preview",
|
|
45
|
+
"format": "prettier --write .",
|
|
46
|
+
"lint": "eslint 'src/**/*.ts' 'tests/**/*.ts'",
|
|
47
|
+
"typecheck": "tsc --noEmit",
|
|
48
|
+
"check": "yarn typecheck && yarn lint && prettier --check .",
|
|
49
|
+
"fix": "yarn lint --fix && yarn format"
|
|
50
|
+
},
|
|
51
|
+
"author": "Sig Network",
|
|
52
|
+
"license": "MIT",
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "https://github.com/sig-net/signet.js"
|
|
59
|
+
},
|
|
60
|
+
"homepage": "https://github.com/sig-net/signet.js",
|
|
61
|
+
"keywords": [
|
|
62
|
+
"blockchain",
|
|
63
|
+
"cryptocurrency",
|
|
64
|
+
"mpc",
|
|
65
|
+
"multi-chain",
|
|
66
|
+
"ethereum",
|
|
67
|
+
"bitcoin",
|
|
68
|
+
"cosmos"
|
|
69
|
+
],
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@arethetypeswrong/cli": "^0.18.3",
|
|
72
|
+
"@eslint/js": "^10.0.0",
|
|
73
|
+
"@types/node": "^25.9.3",
|
|
74
|
+
"@types/react": "^19.2.17",
|
|
75
|
+
"dotenv": "^17.4.2",
|
|
76
|
+
"eslint": "^10.5.0",
|
|
77
|
+
"eslint-config-prettier": "^10.1.8",
|
|
78
|
+
"eslint-plugin-import-x": "^4.16.2",
|
|
79
|
+
"hardhat": "^3.9.0",
|
|
80
|
+
"prettier": "^3.8.4",
|
|
81
|
+
"publint": "^0.3.21",
|
|
82
|
+
"react": "^19.2.7",
|
|
83
|
+
"react-dom": "^19.2.7",
|
|
84
|
+
"tsdown": "^0.22.2",
|
|
85
|
+
"typescript": "^6.0.3",
|
|
86
|
+
"typescript-eslint": "^8.61.0",
|
|
87
|
+
"vite": "^8.0.16",
|
|
88
|
+
"vitest": "^4.1.9",
|
|
89
|
+
"vocs": "^2.3.1",
|
|
90
|
+
"waku": "^1.0.0-beta.6"
|
|
91
|
+
},
|
|
92
|
+
"dependencies": {
|
|
93
|
+
"@coral-xyz/anchor": "^0.32.1",
|
|
94
|
+
"@cosmjs/amino": "^0.39.0",
|
|
95
|
+
"@cosmjs/crypto": "^0.39.0",
|
|
96
|
+
"@cosmjs/encoding": "^0.39.0",
|
|
97
|
+
"@cosmjs/proto-signing": "^0.39.0",
|
|
98
|
+
"@cosmjs/stargate": "^0.39.0",
|
|
99
|
+
"@noble/curves": "^2.2.0",
|
|
100
|
+
"@scure/base": "^2.2.0",
|
|
101
|
+
"@solana/web3.js": "^1.98.4",
|
|
102
|
+
"bitcoinjs-lib": "^7.0.0",
|
|
103
|
+
"chain-registry": "^2.0.217",
|
|
104
|
+
"coinselect": "^3.1.13",
|
|
105
|
+
"cosmjs-types": "^0.11.0",
|
|
106
|
+
"viem": "^2.52.2"
|
|
107
|
+
},
|
|
108
|
+
"packageManager": "yarn@4.17.0+sha512.c2957de2f9025ab14d63b24d0d8be1f1655810e22c341042c27f7ecd017b180ec12db73d69ac366d71b304ef9f069349ce462de96f04f8f1da317f4f762c95ae"
|
|
109
|
+
}
|