@relayprotocol/relay-kit-hooks 1.12.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 +21 -0
- package/_cjs/package.json +1 -0
- package/_cjs/src/fetcher.js +20 -0
- package/_cjs/src/fetcher.js.map +1 -0
- package/_cjs/src/hooks/useExecutionStatus.js +62 -0
- package/_cjs/src/hooks/useExecutionStatus.js.map +1 -0
- package/_cjs/src/hooks/useQuote.js +94 -0
- package/_cjs/src/hooks/useQuote.js.map +1 -0
- package/_cjs/src/hooks/useRelayChains.js +33 -0
- package/_cjs/src/hooks/useRelayChains.js.map +1 -0
- package/_cjs/src/hooks/useRelayConfig.js +29 -0
- package/_cjs/src/hooks/useRelayConfig.js.map +1 -0
- package/_cjs/src/hooks/useRequests.js +39 -0
- package/_cjs/src/hooks/useRequests.js.map +1 -0
- package/_cjs/src/hooks/useTokenList.js +29 -0
- package/_cjs/src/hooks/useTokenList.js.map +1 -0
- package/_cjs/src/hooks/useTokenPrice.js +29 -0
- package/_cjs/src/hooks/useTokenPrice.js.map +1 -0
- package/_cjs/src/hooks/useTrendingCurrencies.js +24 -0
- package/_cjs/src/hooks/useTrendingCurrencies.js.map +1 -0
- package/_cjs/src/index.js +31 -0
- package/_cjs/src/index.js.map +1 -0
- package/_cjs/tsconfig.build.tsbuildinfo +1 -0
- package/_esm/package.json +1 -0
- package/_esm/src/fetcher.js +15 -0
- package/_esm/src/fetcher.js.map +1 -0
- package/_esm/src/hooks/useExecutionStatus.js +56 -0
- package/_esm/src/hooks/useExecutionStatus.js.map +1 -0
- package/_esm/src/hooks/useQuote.js +89 -0
- package/_esm/src/hooks/useQuote.js.map +1 -0
- package/_esm/src/hooks/useRelayChains.js +27 -0
- package/_esm/src/hooks/useRelayChains.js.map +1 -0
- package/_esm/src/hooks/useRelayConfig.js +23 -0
- package/_esm/src/hooks/useRelayConfig.js.map +1 -0
- package/_esm/src/hooks/useRequests.js +33 -0
- package/_esm/src/hooks/useRequests.js.map +1 -0
- package/_esm/src/hooks/useTokenList.js +24 -0
- package/_esm/src/hooks/useTokenList.js.map +1 -0
- package/_esm/src/hooks/useTokenPrice.js +23 -0
- package/_esm/src/hooks/useTokenPrice.js.map +1 -0
- package/_esm/src/hooks/useTrendingCurrencies.js +19 -0
- package/_esm/src/hooks/useTrendingCurrencies.js.map +1 -0
- package/_esm/src/index.js +10 -0
- package/_esm/src/index.js.map +1 -0
- package/_esm/tsconfig.build.tsbuildinfo +1 -0
- package/_types/src/fetcher.d.ts +5 -0
- package/_types/src/fetcher.d.ts.map +1 -0
- package/_types/src/hooks/useExecutionStatus.d.ts +32 -0
- package/_types/src/hooks/useExecutionStatus.d.ts.map +1 -0
- package/_types/src/hooks/useQuote.d.ts +426 -0
- package/_types/src/hooks/useQuote.d.ts.map +1 -0
- package/_types/src/hooks/useRelayChains.d.ts +141 -0
- package/_types/src/hooks/useRelayChains.d.ts.map +1 -0
- package/_types/src/hooks/useRelayConfig.d.ts +25 -0
- package/_types/src/hooks/useRelayConfig.d.ts.map +1 -0
- package/_types/src/hooks/useRequests.d.ts +5358 -0
- package/_types/src/hooks/useRequests.d.ts.map +1 -0
- package/_types/src/hooks/useTokenList.d.ts +40 -0
- package/_types/src/hooks/useTokenList.d.ts.map +1 -0
- package/_types/src/hooks/useTokenPrice.d.ts +14 -0
- package/_types/src/hooks/useTokenPrice.d.ts.map +1 -0
- package/_types/src/hooks/useTrendingCurrencies.d.ts +24 -0
- package/_types/src/hooks/useTrendingCurrencies.d.ts.map +1 -0
- package/_types/src/index.d.ts +11 -0
- package/_types/src/index.d.ts.map +1 -0
- package/_types/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +66 -0
- package/readme.md +36 -0
package/package.json
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@relayprotocol/relay-kit-hooks",
|
|
3
|
+
"version": "1.12.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./_cjs/src/index.js",
|
|
6
|
+
"module": "./_esm/src/index.js",
|
|
7
|
+
"types": "./_types/src/index.d.ts",
|
|
8
|
+
"typings": "./_types/src/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"files": [
|
|
11
|
+
"./_cjs",
|
|
12
|
+
"./_esm",
|
|
13
|
+
"./_types"
|
|
14
|
+
],
|
|
15
|
+
"exports": {
|
|
16
|
+
"types": "./_types/src/index.d.ts",
|
|
17
|
+
"import": "./_esm/src/index.js",
|
|
18
|
+
"require": "./_cjs/src/index.js"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"node-fetch": "^3.3.2",
|
|
22
|
+
"rimraf": "^5.0.5",
|
|
23
|
+
"@eslint/js": "^9.5.0",
|
|
24
|
+
"@types/eslint__js": "^8.42.3",
|
|
25
|
+
"eslint": "~8.57.0",
|
|
26
|
+
"eslint-plugin-import": "^2.29.1",
|
|
27
|
+
"eslint-plugin-react": "^7.34.2",
|
|
28
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
29
|
+
"globals": "^15.6.0",
|
|
30
|
+
"typescript": "5.4.5",
|
|
31
|
+
"typescript-eslint": "^7.13.1"
|
|
32
|
+
},
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"react": "^18.0",
|
|
35
|
+
"react-dom": "^18.0",
|
|
36
|
+
"viem": ">=2.26.0",
|
|
37
|
+
"@tanstack/react-query": ">=5.0.0"
|
|
38
|
+
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@types/react": "^18.0.0",
|
|
41
|
+
"@types/react-dom": "^18.0.0",
|
|
42
|
+
"axios": "^1.7.2",
|
|
43
|
+
"@relayprotocol/relay-sdk": "2.4.0"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"eth",
|
|
47
|
+
"ethereum",
|
|
48
|
+
"dapps",
|
|
49
|
+
"wallet",
|
|
50
|
+
"web3",
|
|
51
|
+
"bridge",
|
|
52
|
+
"reservoir"
|
|
53
|
+
],
|
|
54
|
+
"scripts": {
|
|
55
|
+
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
|
|
56
|
+
"build:cjs": "tsc --project ./tsconfig.build.json --module commonjs --outDir ./_cjs --removeComments --verbatimModuleSyntax false && printf '{\"type\":\"commonjs\"}' > ./_cjs/package.json",
|
|
57
|
+
"build:esm": "tsc --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
|
|
58
|
+
"build:types": "tsc --project ./tsconfig.build.json --module esnext --outDir ./_types --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
|
|
59
|
+
"dev": "concurrently \"pnpm run clean\" \"pnpm run dev:esm\" \"pnpm run dev:types\"",
|
|
60
|
+
"dev:esm": "tsc --watch --project ./tsconfig.build.json --module es2015 --outDir ./_esm && printf '{\"type\": \"module\",\"sideEffects\":false}' > ./_esm/package.json",
|
|
61
|
+
"dev:types": "tsc --watch --project ./tsconfig.build.json --module esnext --outDir ./_types --declarationDir ./_types --emitDeclarationOnly --declaration --declarationMap",
|
|
62
|
+
"clean": "rimraf ./_esm ./_cjs ./_types",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"lint": "pnpm eslint"
|
|
65
|
+
}
|
|
66
|
+
}
|
package/readme.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Relay
|
|
2
|
+
|
|
3
|
+
Relay is the Fastest and Cheapest Way to Bridge and Transact Across Chains.
|
|
4
|
+
|
|
5
|
+
This SDK facilitates interacting with Reservoir's Relay infrastructure. Learn more about Relay by checking out the <a href="https://docs.relay.link">docs</a>.
|
|
6
|
+
Head over to the <a href="https://docs.relay.link/references/sdk/getting-started">sdk docs</a> to learn more about configuring and using the SDK in your application.
|
|
7
|
+
</br>
|
|
8
|
+
</br>
|
|
9
|
+
|
|
10
|
+
## Contributing
|
|
11
|
+
|
|
12
|
+
Your contributions are what make the community great. We encourage you to be a part of it. Here are some important notes for contributors:
|
|
13
|
+
|
|
14
|
+
#### Preperaing Changes
|
|
15
|
+
|
|
16
|
+
**We use `changesets` to manage versioning and changelog generation.**
|
|
17
|
+
|
|
18
|
+
When contributing, please run `pnpm package:change` to create a changeset for your modifications. Be sure to include a descriptive summary for your changes; it helps us understand your contribution and makes the release process smoother.
|
|
19
|
+
|
|
20
|
+
Learn more about changesets [here](https://github.com/atlassian/changesets).
|
|
21
|
+
|
|
22
|
+
#### Getting Started
|
|
23
|
+
|
|
24
|
+
Before you start, make sure to familiarize yourself with the SDK's architecture and design principles by reading the [SDK documentation](https://docs.relay.link/references/sdk/getting-started). This will help you make meaningful contributions that align with the project's goals.
|
|
25
|
+
|
|
26
|
+
#### Pull Requests
|
|
27
|
+
|
|
28
|
+
When you're ready to contribute, submit a pull request with your changes. Our team will review your submission as soon as possible.
|
|
29
|
+
|
|
30
|
+
---
|
|
31
|
+
|
|
32
|
+
<p align="center">
|
|
33
|
+
<a href="https://reservoir.tools/">Home</a> • <a href="https://docs.relay.link">Documentation</a> • <a href="https://github.com/reservoir-tools/relay-sdk">GitHub</a>
|
|
34
|
+
</p>
|
|
35
|
+
|
|
36
|
+
<p align="center"> Made with <span style="color: #e25555;">♥</span> by the team @ <a href="https://reservoir.tools/">Reservoir</a></p>
|