@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRequests.d.ts","sourceRoot":"","sources":["../../../src/hooks/useRequests.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,KAAK,EAEX,MAAM,0B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BrC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type paths } from '@relayprotocol/relay-sdk';
|
|
2
|
+
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
|
|
3
|
+
export type GetCurrenciesBody = NonNullable<paths['/currencies/v2']['post']['requestBody']>['content']['application/json'] & {
|
|
4
|
+
referrer?: string;
|
|
5
|
+
};
|
|
6
|
+
export type GetCurrenciesResponse = paths['/currencies/v2']['post']['responses']['200']['content']['application/json'];
|
|
7
|
+
export type CurrencyList = GetCurrenciesResponse;
|
|
8
|
+
export type Currency = GetCurrenciesResponse[0];
|
|
9
|
+
type QueryType = typeof useQuery<GetCurrenciesResponse, DefaultError, GetCurrenciesResponse, QueryKey>;
|
|
10
|
+
type QueryOptions = Parameters<QueryType>['0'];
|
|
11
|
+
export declare const queryTokenList: (baseApiUrl?: string, options?: GetCurrenciesBody, headers?: Record<string, string>) => Promise<GetCurrenciesResponse>;
|
|
12
|
+
export default function (baseApiUrl?: string, options?: GetCurrenciesBody, queryOptions?: Partial<QueryOptions>): Omit<import("@tanstack/react-query").UseQueryResult<{
|
|
13
|
+
chainId?: number | undefined;
|
|
14
|
+
address?: string | undefined;
|
|
15
|
+
symbol?: string | undefined;
|
|
16
|
+
name?: string | undefined;
|
|
17
|
+
decimals?: number | undefined;
|
|
18
|
+
vmType?: "evm" | "svm" | "bvm" | "tvm" | "suivm" | "hypevm" | "tonvm" | undefined;
|
|
19
|
+
metadata?: {
|
|
20
|
+
logoURI?: string | undefined;
|
|
21
|
+
verified?: boolean | undefined;
|
|
22
|
+
isNative?: boolean | undefined;
|
|
23
|
+
} | undefined;
|
|
24
|
+
}[], Error>, "data"> & {
|
|
25
|
+
data?: {
|
|
26
|
+
chainId?: number | undefined;
|
|
27
|
+
address?: string | undefined;
|
|
28
|
+
symbol?: string | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
decimals?: number | undefined;
|
|
31
|
+
vmType?: "evm" | "svm" | "bvm" | "tvm" | "suivm" | "hypevm" | "tonvm" | undefined;
|
|
32
|
+
metadata?: {
|
|
33
|
+
logoURI?: string | undefined;
|
|
34
|
+
verified?: boolean | undefined;
|
|
35
|
+
isNative?: boolean | undefined;
|
|
36
|
+
} | undefined;
|
|
37
|
+
}[] | undefined;
|
|
38
|
+
};
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=useTokenList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTokenList.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTokenList.ts"],"names":[],"mappings":"AAEA,OAAO,EAAqB,KAAK,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACxE,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAA;AAE9B,MAAM,MAAM,iBAAiB,GAAG,WAAW,CACzC,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,CAC/C,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,GAAG;IAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AACxD,MAAM,MAAM,qBAAqB,GAC/B,KAAK,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AACpF,MAAM,MAAM,YAAY,GAAG,qBAAqB,CAAA;AAChD,MAAM,MAAM,QAAQ,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAAA;AAC/C,KAAK,SAAS,GAAG,OAAO,QAAQ,CAC9B,qBAAqB,EACrB,YAAY,EACZ,qBAAqB,EACrB,QAAQ,CACT,CAAA;AACD,KAAK,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAA;AAE9C,eAAO,MAAM,cAAc,gBACb,MAAM,YACR,iBAAiB,YACjB,OAAO,MAAM,EAAE,MAAM,CAAC,KAC/B,QAAQ,qBAAqB,CAG/B,CAAA;AAED,MAAM,CAAC,OAAO,WACZ,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,iBAAiB,EAC3B,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBrC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type paths } from '@relayprotocol/relay-sdk';
|
|
2
|
+
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
|
|
3
|
+
type TokenPriceQuery = paths['/currencies/token/price']['get']['parameters']['query'] & {
|
|
4
|
+
referrer?: string;
|
|
5
|
+
};
|
|
6
|
+
export type TokenPriceResponse = paths['/currencies/token/price']['get']['responses']['200']['content']['application/json'];
|
|
7
|
+
type QueryType = typeof useQuery<TokenPriceResponse, DefaultError, TokenPriceResponse, QueryKey>;
|
|
8
|
+
type QueryOptions = Parameters<QueryType>['0'];
|
|
9
|
+
export declare const queryTokenPrice: (baseApiUrl?: string, options?: TokenPriceQuery, headers?: HeadersInit) => Promise<TokenPriceResponse>;
|
|
10
|
+
export default function (baseApiUrl?: string, options?: TokenPriceQuery, queryOptions?: Partial<QueryOptions>): import("@tanstack/react-query").UseQueryResult<{
|
|
11
|
+
price?: number | undefined;
|
|
12
|
+
}, Error>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=useTokenPrice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTokenPrice.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTokenPrice.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,KAAK,EACX,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAA;AAG9B,KAAK,eAAe,GAClB,KAAK,CAAC,yBAAyB,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GAAG;IAC/D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAEH,MAAM,MAAM,kBAAkB,GAC5B,KAAK,CAAC,yBAAyB,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAE5F,KAAK,SAAS,GAAG,OAAO,QAAQ,CAC9B,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,QAAQ,CACT,CAAA;AACD,KAAK,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAA;AAE9C,eAAO,MAAM,eAAe,gBACd,MAAM,YACR,eAAe,YACf,WAAW,KACpB,QAAQ,kBAAkB,CAI5B,CAAA;AAED,MAAM,CAAC,OAAO,WACZ,UAAU,CAAC,EAAE,MAAM,EACnB,OAAO,CAAC,EAAE,eAAe,EACzB,YAAY,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC;;UAcrC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useQuery, type DefaultError, type QueryKey } from '@tanstack/react-query';
|
|
2
|
+
import { type paths } from '@relayprotocol/relay-sdk';
|
|
3
|
+
export type TrendingCurrenciesQuery = paths['/currencies/trending']['get']['parameters']['query'] & {
|
|
4
|
+
referrer?: string;
|
|
5
|
+
};
|
|
6
|
+
export type TrendingCurrenciesResponse = paths['/currencies/trending']['get']['responses']['200']['content']['application/json'];
|
|
7
|
+
type QueryType = typeof useQuery<TrendingCurrenciesResponse, DefaultError, TrendingCurrenciesResponse, QueryKey>;
|
|
8
|
+
type QueryOptions = Parameters<QueryType>['0'];
|
|
9
|
+
export declare const queryTrendingCurrencies: (baseApiUrl?: string, options?: TrendingCurrenciesQuery, headers?: Record<string, string>) => Promise<TrendingCurrenciesResponse>;
|
|
10
|
+
declare const _default: (baseApiUrl?: string, queryParams?: TrendingCurrenciesQuery, queryOptions?: Partial<QueryOptions>) => import("@tanstack/react-query").UseQueryResult<{
|
|
11
|
+
chainId?: number | undefined;
|
|
12
|
+
address?: string | undefined;
|
|
13
|
+
symbol?: string | undefined;
|
|
14
|
+
name?: string | undefined;
|
|
15
|
+
decimals?: number | undefined;
|
|
16
|
+
vmType?: "evm" | "svm" | "bvm" | "tvm" | "suivm" | "hypevm" | "tonvm" | undefined;
|
|
17
|
+
metadata?: {
|
|
18
|
+
logoURI?: string | undefined;
|
|
19
|
+
verified?: boolean | undefined;
|
|
20
|
+
isNative?: boolean | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
}[], Error>;
|
|
23
|
+
export default _default;
|
|
24
|
+
//# sourceMappingURL=useTrendingCurrencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTrendingCurrencies.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTrendingCurrencies.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,KAAK,YAAY,EACjB,KAAK,QAAQ,EACd,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EAEL,KAAK,KAAK,EAEX,MAAM,0BAA0B,CAAA;AAGjC,MAAM,MAAM,uBAAuB,GACjC,KAAK,CAAC,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,GAAG;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAEH,MAAM,MAAM,0BAA0B,GACpC,KAAK,CAAC,sBAAsB,CAAC,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,kBAAkB,CAAC,CAAA;AAEzF,KAAK,SAAS,GAAG,OAAO,QAAQ,CAC9B,0BAA0B,EAC1B,YAAY,EACZ,0BAA0B,EAC1B,QAAQ,CACT,CAAA;AACD,KAAK,YAAY,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAA;AAE9C,eAAO,MAAM,uBAAuB,gBACtB,MAAM,YACR,uBAAuB,YACvB,OAAO,MAAM,EAAE,MAAM,CAAC,KAC/B,QAAQ,0BAA0B,CAIpC,CAAA;sCAGc,MAAM,gBACL,uBAAuB,iBACtB,QAAQ,YAAY,CAAC;;;;;;;;;;;;;AAHtC,wBAeC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { default as useRequests, queryRequests } from './hooks/useRequests.js';
|
|
2
|
+
export { default as useQuote, queryQuote } from './hooks/useQuote.js';
|
|
3
|
+
export { default as useTokenList, queryTokenList } from './hooks/useTokenList.js';
|
|
4
|
+
export { default as useRelayChains, queryRelayChains } from './hooks/useRelayChains.js';
|
|
5
|
+
export { default as useRelayConfig, queryRelayConfig } from './hooks/useRelayConfig.js';
|
|
6
|
+
export { default as useExecutionStatus, queryExecutionStatus } from './hooks/useExecutionStatus.js';
|
|
7
|
+
export { default as useTokenPrice, queryTokenPrice } from './hooks/useTokenPrice.js';
|
|
8
|
+
export { default as useTrendingCurrencies, queryTrendingCurrencies } from './hooks/useTrendingCurrencies.js';
|
|
9
|
+
export type { CurrencyList, Currency } from './hooks/useTokenList.js';
|
|
10
|
+
export type { QuoteResponse } from './hooks/useQuote.js';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAA;AAC9E,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrE,OAAO,EACL,OAAO,IAAI,YAAY,EACvB,cAAc,EACf,MAAM,yBAAyB,CAAA;AAChC,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,gBAAgB,EACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,OAAO,IAAI,cAAc,EACzB,gBAAgB,EACjB,MAAM,2BAA2B,CAAA;AAClC,OAAO,EACL,OAAO,IAAI,kBAAkB,EAC7B,oBAAoB,EACrB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,OAAO,IAAI,aAAa,EACxB,eAAe,EAChB,MAAM,0BAA0B,CAAA;AACjC,OAAO,EACL,OAAO,IAAI,qBAAqB,EAChC,uBAAuB,EACxB,MAAM,kCAAkC,CAAA;AAGzC,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AACrE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAA"}
|