@hyperbridge/sdk 2.8.3 → 2.8.4
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/dist/browser/index.d.ts +129 -37
- package/dist/browser/index.js +346 -219
- package/dist/browser/index.js.map +1 -1
- package/dist/node/index.cjs +351 -218
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.d.cts +25 -12
- package/dist/node/index.d.ts +25 -12
- package/dist/node/index.js +346 -219
- package/dist/node/index.js.map +1 -1
- package/dist/node/{intents-helpers-CxCDx-hH.d.cts → intents-helpers-CkPAsLHB.d.cts} +107 -28
- package/dist/node/{intents-helpers-CxCDx-hH.d.ts → intents-helpers-CkPAsLHB.d.ts} +107 -28
- package/dist/node/intents-helpers.cjs +10 -0
- package/dist/node/intents-helpers.cjs.map +1 -1
- package/dist/node/intents-helpers.d.cts +1 -1
- package/dist/node/intents-helpers.d.ts +1 -1
- package/dist/node/intents-helpers.js +9 -1
- package/dist/node/intents-helpers.js.map +1 -1
- package/package.json +155 -153
package/package.json
CHANGED
|
@@ -1,154 +1,156 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
2
|
+
"name": "@hyperbridge/sdk",
|
|
3
|
+
"version": "2.8.4",
|
|
4
|
+
"description": "The hyperclient SDK provides utilities for querying proofs and statuses for cross-chain requests from HyperBridge.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"types": "./dist/node/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/node/index.d.ts",
|
|
10
|
+
"browser": "./dist/browser/index.js",
|
|
11
|
+
"import": "./dist/node/index.js",
|
|
12
|
+
"require": "./dist/node/index.cjs",
|
|
13
|
+
"default": "./dist/node/index.js"
|
|
14
|
+
},
|
|
15
|
+
"./intents-helpers": {
|
|
16
|
+
"types": "./dist/node/intents-helpers.d.ts",
|
|
17
|
+
"import": "./dist/node/intents-helpers.js",
|
|
18
|
+
"require": "./dist/node/intents-helpers.cjs",
|
|
19
|
+
"default": "./dist/node/intents-helpers.js"
|
|
20
|
+
},
|
|
21
|
+
"./plugins/vite": {
|
|
22
|
+
"types": "./plugins/vite.d.ts",
|
|
23
|
+
"import": "./plugins/vite.js",
|
|
24
|
+
"default": "./plugins/vite.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"typesVersions": {
|
|
28
|
+
"*": {
|
|
29
|
+
"intents-helpers": [
|
|
30
|
+
"./dist/node/intents-helpers.d.ts"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"plugins"
|
|
37
|
+
],
|
|
38
|
+
"keywords": [
|
|
39
|
+
"hyperbridge",
|
|
40
|
+
"indexer",
|
|
41
|
+
"subquery",
|
|
42
|
+
"graphql",
|
|
43
|
+
"substrate",
|
|
44
|
+
"blockchain",
|
|
45
|
+
"interoperability",
|
|
46
|
+
"cryptocurrency",
|
|
47
|
+
"evm"
|
|
48
|
+
],
|
|
49
|
+
"homepage": "https://github.com/polytope-labs/hyperbridge-sdk#readme",
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/polytope-labs/hyperbridge-sdk/issues"
|
|
52
|
+
},
|
|
53
|
+
"repository": {
|
|
54
|
+
"type": "git",
|
|
55
|
+
"url": "git+https://github.com/polytope-labs/hyperbridge.git",
|
|
56
|
+
"directory": "sdk/packages/sdk"
|
|
57
|
+
},
|
|
58
|
+
"license": "Apache-2.0",
|
|
59
|
+
"author": "Polytope Labs",
|
|
60
|
+
"scripts": {
|
|
61
|
+
"build": "pnpm run build:browser && pnpm run build:node",
|
|
62
|
+
"build:node": "tsup --config tsup-node.config.ts",
|
|
63
|
+
"build:browser": "tsup --config tsup-browser.config.ts",
|
|
64
|
+
"prepublishOnly": "npm run build",
|
|
65
|
+
"test": "npm run test:concurrent && npm run test:sequence",
|
|
66
|
+
"test:file": "vitest --watch=false --maxConcurrency=1",
|
|
67
|
+
"test:concurrent": "vitest --watch=false --dangerouslyIgnoreUnhandledErrors --exclude=./src/tests/sequential",
|
|
68
|
+
"test:intent-gateway": "vitest --watch=false --dangerouslyIgnoreUnhandledErrors --sequence.concurrent=false ./src/tests/sequential/intentGateway.test.ts",
|
|
69
|
+
"test:intents-coprocessor": "vitest --watch=false --dangerouslyIgnoreUnhandledErrors --sequence.concurrent=false ./src/tests/sequential/intentsCoprocessor.test.ts",
|
|
70
|
+
"test:hyper-fungible-token": "vitest --watch=false --dangerouslyIgnoreUnhandledErrors --sequence.concurrent=false ./src/tests/sequential/hyperFungibleToken.test.ts",
|
|
71
|
+
"test:evm-substrate": "vitest --watch=false --sequence.concurrent=false ./src/tests/sequential/evm-substrate.test.ts",
|
|
72
|
+
"test:token-list": "vitest --watch=false --sequence.concurrent=false ./src/tests/sequential/tokenList.test.ts",
|
|
73
|
+
"test:get-request": "vitest --watch=false --sequence.concurrent=false ./src/tests/sequential/getRequestBscAmoy.test.ts",
|
|
74
|
+
"test:watch": "vitest --exclude=./src/tests/sequential",
|
|
75
|
+
"lint": "biome lint .",
|
|
76
|
+
"lint:fix": "biome lint --write .",
|
|
77
|
+
"format": "prettier --write \"src/**/*.ts\""
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@async-generator/merge-race": "^1.0.3",
|
|
81
|
+
"@polkadot/api": "latest",
|
|
82
|
+
"@polkadot/types": "latest",
|
|
83
|
+
"@polkadot/util": "latest",
|
|
84
|
+
"@polkadot/util-crypto": "latest",
|
|
85
|
+
"@types/lodash-es": "^4.17.12",
|
|
86
|
+
"consola": "^3.4.2",
|
|
87
|
+
"decimal.js": "^10.5.0",
|
|
88
|
+
"graphql": "^16.10.0",
|
|
89
|
+
"graphql-request": "^7.1.2",
|
|
90
|
+
"idb-keyval": "^6.2.2",
|
|
91
|
+
"lodash-es": "^4.17.15",
|
|
92
|
+
"p-queue": "^8.1.0",
|
|
93
|
+
"rpc-websocket-client": "^1.1.4",
|
|
94
|
+
"scale-ts": "^1.6.1",
|
|
95
|
+
"std-env": "^3.9.0",
|
|
96
|
+
"tronweb": "^6.2.0",
|
|
97
|
+
"ts-pattern": "^5.6.2",
|
|
98
|
+
"unstorage": "^1.17.2",
|
|
99
|
+
"viem": "2.47.6"
|
|
100
|
+
},
|
|
101
|
+
"devDependencies": {
|
|
102
|
+
"@biomejs/biome": "^1.9.4",
|
|
103
|
+
"@iarna/toml": "^2.2.5",
|
|
104
|
+
"@polkadot/keyring": "latest",
|
|
105
|
+
"@polytope-labs/hyperclient": "1.2.0",
|
|
106
|
+
"@types/node": "^22.13.5",
|
|
107
|
+
"@vitest/coverage-v8": "^3.1.4",
|
|
108
|
+
"dotenv": "^16.4.7",
|
|
109
|
+
"jsdom": "^26.0.0",
|
|
110
|
+
"log-timestamp": "^0.3.0",
|
|
111
|
+
"tsup": "^8.4.0",
|
|
112
|
+
"vite-tsconfig-paths": "^5.1.4",
|
|
113
|
+
"vitest": "^3.1.4"
|
|
114
|
+
},
|
|
115
|
+
"resolutions": {
|
|
116
|
+
"@polkadot/api": "^16.4.6",
|
|
117
|
+
"@polkadot/api-augment": "^16.4.6",
|
|
118
|
+
"@polkadot/api-base": "^16.4.6",
|
|
119
|
+
"@polkadot/api-contract": "^16.4.6",
|
|
120
|
+
"@polkadot/api-derive": "^16.4.6",
|
|
121
|
+
"@polkadot/hw-ledger": "^13.5.6",
|
|
122
|
+
"@polkadot/keyring": "^13.5.6",
|
|
123
|
+
"@polkadot/networks": "^13.5.6",
|
|
124
|
+
"@polkadot/phishing": "^0.25.18",
|
|
125
|
+
"@polkadot/rpc-augment": "^16.4.6",
|
|
126
|
+
"@polkadot/rpc-core": "^16.4.6",
|
|
127
|
+
"@polkadot/rpc-provider": "^16.4.6",
|
|
128
|
+
"@polkadot/typegen": "^16.4.6",
|
|
129
|
+
"@polkadot/types": "^16.4.6",
|
|
130
|
+
"@polkadot/types-augment": "^16.4.6",
|
|
131
|
+
"@polkadot/types-codec": "^16.4.6",
|
|
132
|
+
"@polkadot/types-create": "^16.4.6",
|
|
133
|
+
"@polkadot/types-known": "^16.4.6",
|
|
134
|
+
"@polkadot/types-support": "^16.4.6",
|
|
135
|
+
"@polkadot/util": "^13.5.6",
|
|
136
|
+
"@polkadot/util-crypto": "^13.5.6",
|
|
137
|
+
"@polkadot/wasm-crypto": "^7.5.1",
|
|
138
|
+
"@polkadot/x-bigint": "^13.5.6",
|
|
139
|
+
"@polkadot/x-fetch": "^13.5.6",
|
|
140
|
+
"@polkadot/x-global": "^13.5.6",
|
|
141
|
+
"@polkadot/x-randomvalues": "^13.5.6",
|
|
142
|
+
"@polkadot/x-textdecoder": "^13.5.6",
|
|
143
|
+
"@polkadot/x-textencoder": "^13.5.6",
|
|
144
|
+
"@polkadot/x-ws": "^13.5.6"
|
|
145
|
+
},
|
|
146
|
+
"peerDependencies": {
|
|
147
|
+
"vite": "^5.0.0 || ^6.0.0"
|
|
148
|
+
},
|
|
149
|
+
"publishConfig": {
|
|
150
|
+
"access": "public"
|
|
151
|
+
},
|
|
152
|
+
"engineStrict": true,
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=22.x.x"
|
|
155
|
+
}
|
|
156
|
+
}
|