@symmio/trading-react 0.2.0 → 1.1.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 +2 -2
- package/dist/account-layer/index.d.ts +4 -0
- package/dist/account-layer/index.d.ts.map +1 -1
- package/dist/account-layer/index.js +30 -26
- package/dist/account-layer/use-account-balance-info.d.ts +15 -4
- package/dist/account-layer/use-account-balance-info.d.ts.map +1 -1
- package/dist/account-layer/use-account-balance-info.js +21 -9
- package/dist/account-layer/use-account-balance-info.js.map +1 -1
- package/dist/account-layer/use-account-balance-of.d.ts +15 -4
- package/dist/account-layer/use-account-balance-of.d.ts.map +1 -1
- package/dist/account-layer/use-account-balance-of.js +20 -9
- package/dist/account-layer/use-account-balance-of.js.map +1 -1
- package/dist/account-layer/use-affiliate-state.d.ts +26 -0
- package/dist/account-layer/use-affiliate-state.d.ts.map +1 -0
- package/dist/account-layer/use-affiliate-state.js +27 -0
- package/dist/account-layer/use-affiliate-state.js.map +1 -0
- package/dist/account-layer/use-cancel-registration.d.ts +28 -0
- package/dist/account-layer/use-cancel-registration.d.ts.map +1 -0
- package/dist/account-layer/use-cancel-registration.js +38 -0
- package/dist/account-layer/use-cancel-registration.js.map +1 -0
- package/dist/account-layer/use-deposit-and-allocate.d.ts +7 -4
- package/dist/account-layer/use-deposit-and-allocate.d.ts.map +1 -1
- package/dist/account-layer/use-deposit-and-allocate.js.map +1 -1
- package/dist/account-layer/use-deposit.d.ts +3 -1
- package/dist/account-layer/use-deposit.d.ts.map +1 -1
- package/dist/account-layer/use-deposit.js +17 -15
- package/dist/account-layer/use-deposit.js.map +1 -1
- package/dist/account-layer/use-generated-account-manager-address.d.ts +25 -0
- package/dist/account-layer/use-generated-account-manager-address.d.ts.map +1 -0
- package/dist/account-layer/use-generated-account-manager-address.js +27 -0
- package/dist/account-layer/use-generated-account-manager-address.js.map +1 -0
- package/dist/account-layer/use-request-to-register-affiliate.d.ts +43 -0
- package/dist/account-layer/use-request-to-register-affiliate.d.ts.map +1 -0
- package/dist/account-layer/use-request-to-register-affiliate.js +38 -0
- package/dist/account-layer/use-request-to-register-affiliate.js.map +1 -0
- package/dist/estimated-price/index.d.ts +2 -0
- package/dist/estimated-price/index.d.ts.map +1 -0
- package/dist/estimated-price/use-debounced-value.d.ts +9 -0
- package/dist/estimated-price/use-debounced-value.d.ts.map +1 -0
- package/dist/estimated-price/use-debounced-value.js +18 -0
- package/dist/estimated-price/use-debounced-value.js.map +1 -0
- package/dist/estimated-price/use-estimated-price.d.ts +46 -0
- package/dist/estimated-price/use-estimated-price.d.ts.map +1 -0
- package/dist/estimated-price/use-estimated-price.js +31 -0
- package/dist/estimated-price/use-estimated-price.js.map +1 -0
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +124 -118
- package/dist/instant-layer/use-instant-close-auto.d.ts +1 -1
- package/dist/instant-layer/use-instant-close-auto.js.map +1 -1
- package/dist/instant-layer/use-instant-close-bulk-auto.d.ts +1 -1
- package/dist/instant-layer/use-instant-close-bulk-auto.js.map +1 -1
- package/dist/instant-layer/use-instant-open-with-tpsl.d.ts.map +1 -1
- package/dist/instant-layer/use-instant-open-with-tpsl.js +10 -2
- package/dist/instant-layer/use-instant-open-with-tpsl.js.map +1 -1
- package/dist/margin/index.d.ts +2 -0
- package/dist/margin/index.d.ts.map +1 -0
- package/dist/margin/use-available-instant-open-margin.d.ts +51 -0
- package/dist/margin/use-available-instant-open-margin.d.ts.map +1 -0
- package/dist/margin/use-available-instant-open-margin.js +66 -0
- package/dist/margin/use-available-instant-open-margin.js.map +1 -0
- package/dist/provider/symmio-provider.d.ts +14 -5
- package/dist/provider/symmio-provider.d.ts.map +1 -1
- package/dist/provider/symmio-provider.js +2 -2
- package/dist/provider/symmio-provider.js.map +1 -1
- package/dist/quotes/use-managed-quotes.js +16 -16
- package/dist/quotes/use-managed-quotes.js.map +1 -1
- package/dist/websocket/is-settle-notification.d.ts +15 -0
- package/dist/websocket/is-settle-notification.d.ts.map +1 -0
- package/dist/websocket/is-settle-notification.js +15 -0
- package/dist/websocket/is-settle-notification.js.map +1 -0
- package/package.json +7 -8
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-deposit.js","names":[],"sources":["../../src/account-layer/use-deposit.ts"],"sourcesContent":["\"use client\";\n\nimport {\n depositForAccountMutationOptions,\n getCollateralAllowanceQueryKey,\n getCollateralBalanceQueryKey,\n type DepositForAccountParameters,\n} from \"@symmio/trading-core\";\nimport { useMutation, useQueryClient, type UseMutationResult } from \"@tanstack/react-query\";\nimport { useConnection } from \"wagmi\";\nimport { normalizeSymmError } from \"../errors/normalize-symm-error\";\nimport type { SymmioRequestError } from \"../errors/symmio-request-error\";\nimport { useSymmioChainId } from \"../provider/use-symmio-chain-id\";\nimport { useSymmioConfig } from \"../provider/use-symmio-config\";\nimport { resolveWriteResult, type WriteParameters, type WriteResult } from \"../transactions\";\nimport { predicateMatch } from \"../utils\";\n\n/**\n * Parameters for {@link useDeposit}.\n */\nexport type UseDepositParameters = WriteParameters;\n\n/** Result returned by the {@link useDeposit} mutation. */\nexport type DepositResult = WriteResult;\n\n/** Return type of {@link useDeposit}. */\nexport type UseDepositReturnType = UseMutationResult<DepositResult, SymmioRequestError, DepositForAccountParameters>;\n\n/**\n * Submit a `depositForAccount` transaction, crediting collateral to a\n * subaccount's available balance. The connected wallet must own the subaccount,\n * and must have approved the collateral to the SYMMIO core first (see\n * `useApproveCollateral`). On success, the connected wallet's collateral\n * allowance and balance queries are invalidated so mounted reads refetch.\n *\n * @example\n * ```tsx\n * const { mutate, status, error } = useDeposit();\n * mutate({ account: \"0xsub…\", amount: 1_000000n });\n * ```\n */\nexport function useDeposit(parameters: UseDepositParameters = {}): UseDepositReturnType {\n const config = useSymmioConfig(parameters);\n const chainId = useSymmioChainId();\n const { address } = useConnection();\n const queryClient = useQueryClient();\n\n const base = depositForAccountMutationOptions(config);\n\n return useMutation<DepositResult, SymmioRequestError, DepositForAccountParameters>({\n mutationKey: base.mutationKey,\n mutationFn: async (variables) => {\n try {\n const resolvedChainId = variables.chainId ?? chainId;\n const hash = await base.mutationFn({\n account: variables.account,\n amount: variables.amount,\n simulateBeforeWrite: variables.simulateBeforeWrite,\n chainId: resolvedChainId,\n });\n return resolveWriteResult(config, hash, {\n chainId: resolvedChainId,\n waitForReceipt: parameters.waitForReceipt,\n confirmations: parameters.confirmations,\n });\n } catch (err) {\n throw normalizeSymmError(err);\n }\n },\n onSuccess: () => {\n const partial = address ? { owner: address } : undefined;\n void queryClient.invalidateQueries({ predicate: predicateMatch(getCollateralAllowanceQueryKey, partial) });\n void queryClient.invalidateQueries({ predicate: predicateMatch(getCollateralBalanceQueryKey, partial) });\n },\n });\n}\n"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"use-deposit.js","names":[],"sources":["../../src/account-layer/use-deposit.ts"],"sourcesContent":["\"use client\";\n\nimport {\n depositForAccountMutationOptions,\n getAccountBalanceInfoQueryKey,\n getAccountBalanceOfQueryKey,\n getCollateralAllowanceQueryKey,\n getCollateralBalanceQueryKey,\n type DepositForAccountParameters,\n} from \"@symmio/trading-core\";\nimport { useMutation, useQueryClient, type UseMutationResult } from \"@tanstack/react-query\";\nimport { useConnection } from \"wagmi\";\nimport { normalizeSymmError } from \"../errors/normalize-symm-error\";\nimport type { SymmioRequestError } from \"../errors/symmio-request-error\";\nimport { useSymmioChainId } from \"../provider/use-symmio-chain-id\";\nimport { useSymmioConfig } from \"../provider/use-symmio-config\";\nimport { resolveWriteResult, type WriteParameters, type WriteResult } from \"../transactions\";\nimport { predicateMatch } from \"../utils\";\n\n/**\n * Parameters for {@link useDeposit}.\n */\nexport type UseDepositParameters = WriteParameters;\n\n/** Result returned by the {@link useDeposit} mutation. */\nexport type DepositResult = WriteResult;\n\n/** Return type of {@link useDeposit}. */\nexport type UseDepositReturnType = UseMutationResult<DepositResult, SymmioRequestError, DepositForAccountParameters>;\n\n/**\n * Submit a `depositForAccount` transaction, crediting collateral to a\n * subaccount's available balance. The connected wallet must own the subaccount,\n * and must have approved the collateral to the SYMMIO core first (see\n * `useApproveCollateral`). On success, the connected wallet's collateral\n * allowance and balance queries **and the credited subaccount's available\n * balance** are invalidated, so mounted reads — including the trade form's\n * available instant-open margin (`Max`) — refetch immediately.\n *\n * @example\n * ```tsx\n * const { mutate, status, error } = useDeposit();\n * mutate({ account: \"0xsub…\", amount: 1_000000n });\n * ```\n */\nexport function useDeposit(parameters: UseDepositParameters = {}): UseDepositReturnType {\n const config = useSymmioConfig(parameters);\n const chainId = useSymmioChainId();\n const { address } = useConnection();\n const queryClient = useQueryClient();\n\n const base = depositForAccountMutationOptions(config);\n\n return useMutation<DepositResult, SymmioRequestError, DepositForAccountParameters>({\n mutationKey: base.mutationKey,\n mutationFn: async (variables) => {\n try {\n const resolvedChainId = variables.chainId ?? chainId;\n const hash = await base.mutationFn({\n account: variables.account,\n amount: variables.amount,\n simulateBeforeWrite: variables.simulateBeforeWrite,\n chainId: resolvedChainId,\n });\n return resolveWriteResult(config, hash, {\n chainId: resolvedChainId,\n waitForReceipt: parameters.waitForReceipt,\n confirmations: parameters.confirmations,\n });\n } catch (err) {\n throw normalizeSymmError(err);\n }\n },\n onSuccess: (_result, variables) => {\n const partial = address ? { owner: address } : undefined;\n void queryClient.invalidateQueries({ predicate: predicateMatch(getCollateralAllowanceQueryKey, partial) });\n void queryClient.invalidateQueries({ predicate: predicateMatch(getCollateralBalanceQueryKey, partial) });\n // The deposit credits the subaccount's available balance — refetch it so\n // the trade form's available margin / `Max` reflect the new funds. A\n // deposit is not a trade settle, so `live` balance reads don't otherwise\n // refetch on their own.\n const accountPartial = { account: variables.account };\n void queryClient.invalidateQueries({ predicate: predicateMatch(getAccountBalanceInfoQueryKey, accountPartial) });\n void queryClient.invalidateQueries({ predicate: predicateMatch(getAccountBalanceOfQueryKey, accountPartial) });\n },\n });\n}\n"],"mappings":";;;;;;;;;;AA6CA,SAAgB,EAAW,IAAmC,CAAC,GAAyB;CACtF,IAAM,IAAS,EAAgB,CAAU,GACnC,IAAU,EAAiB,GAC3B,EAAE,eAAY,EAAc,GAC5B,IAAc,EAAe,GAE7B,IAAO,EAAiC,CAAM;CAEpD,OAAO,EAA4E;EACjF,aAAa,EAAK;EAClB,YAAY,OAAO,MAAc;GAC/B,IAAI;IACF,IAAM,IAAkB,EAAU,WAAW;IAO7C,OAAO,EAAmB,GAAQ,MANf,EAAK,WAAW;KACjC,SAAS,EAAU;KACnB,QAAQ,EAAU;KAClB,qBAAqB,EAAU;KAC/B,SAAS;IACX,CAAC,GACuC;KACtC,SAAS;KACT,gBAAgB,EAAW;KAC3B,eAAe,EAAW;IAC5B,CAAC;GACH,SAAS,GAAK;IACZ,MAAM,EAAmB,CAAG;GAC9B;EACF;EACA,YAAY,GAAS,MAAc;GACjC,IAAM,IAAU,IAAU,EAAE,OAAO,EAAQ,IAAI,KAAA;GAE/C,AADA,EAAiB,kBAAkB,EAAE,WAAW,EAAe,GAAgC,CAAO,EAAE,CAAC,GACzG,EAAiB,kBAAkB,EAAE,WAAW,EAAe,GAA8B,CAAO,EAAE,CAAC;GAKvG,IAAM,IAAiB,EAAE,SAAS,EAAU,QAAQ;GAEpD,AADA,EAAiB,kBAAkB,EAAE,WAAW,EAAe,GAA+B,CAAc,EAAE,CAAC,GAC/G,EAAiB,kBAAkB,EAAE,WAAW,EAAe,GAA6B,CAAc,EAAE,CAAC;EAC/G;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ConfigParameter, GenerateAccountManagerAddressOptions, GenerateAccountManagerAddressReturnType } from '@symmio/trading-core';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { SymmioRequestError } from '../errors/symmio-request-error.js';
|
|
4
|
+
/**
|
|
5
|
+
* Parameters for {@link useGeneratedAccountManagerAddress}: the core query
|
|
6
|
+
* options (registrant, name, chain id, TanStack `query` overrides) plus an
|
|
7
|
+
* optional `config`.
|
|
8
|
+
*/
|
|
9
|
+
export type UseGeneratedAccountManagerAddressParameters = GenerateAccountManagerAddressOptions & ConfigParameter;
|
|
10
|
+
/** Return type of {@link useGeneratedAccountManagerAddress}. */
|
|
11
|
+
export type UseGeneratedAccountManagerAddressReturnType = UseQueryResult<GenerateAccountManagerAddressReturnType, SymmioRequestError>;
|
|
12
|
+
/**
|
|
13
|
+
* Predict the deterministic affiliate (`AccountManager`) address for a
|
|
14
|
+
* `(registrant, name)` pair — the address `requestToRegisterAffiliate` would
|
|
15
|
+
* assign. The query is disabled until both `registrant` and `name` are set, so
|
|
16
|
+
* it can drive a live preview as the user types a name. `chainId` defaults to the
|
|
17
|
+
* connected chain. Errors are normalized to {@link SymmioRequestError}.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* const { data: predicted } = useGeneratedAccountManagerAddress({ registrant, name });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export declare function useGeneratedAccountManagerAddress(parameters?: UseGeneratedAccountManagerAddressParameters): UseGeneratedAccountManagerAddressReturnType;
|
|
25
|
+
//# sourceMappingURL=use-generated-account-manager-address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-generated-account-manager-address.d.ts","sourceRoot":"","sources":["../../src/account-layer/use-generated-account-manager-address.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,oCAAoC,EACzC,KAAK,uCAAuC,EAC7C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAIzE;;;;GAIG;AACH,MAAM,MAAM,2CAA2C,GAAG,oCAAoC,GAAG,eAAe,CAAC;AAEjH,gEAAgE;AAChE,MAAM,MAAM,2CAA2C,GAAG,cAAc,CACtE,uCAAuC,EACvC,kBAAkB,CACnB,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,iCAAiC,CAC/C,UAAU,GAAE,2CAAgD,GAC3D,2CAA2C,CAkB7C"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useSymmioChainId as e } from "../provider/use-symmio-chain-id.js";
|
|
3
|
+
import { useSymmioConfig as t } from "../provider/use-symmio-config.js";
|
|
4
|
+
import { normalizeSymmError as n } from "../errors/normalize-symm-error.js";
|
|
5
|
+
import { generateAccountManagerAddressQueryOptions as r } from "@symmio/trading-core";
|
|
6
|
+
import { useQuery as i } from "@tanstack/react-query";
|
|
7
|
+
//#region src/account-layer/use-generated-account-manager-address.ts
|
|
8
|
+
function a(a = {}) {
|
|
9
|
+
let o = t(a), s = e(), c = r(o, {
|
|
10
|
+
...a,
|
|
11
|
+
chainId: a.chainId ?? s
|
|
12
|
+
});
|
|
13
|
+
return i({
|
|
14
|
+
...c,
|
|
15
|
+
queryFn: async () => {
|
|
16
|
+
try {
|
|
17
|
+
return await c.queryFn();
|
|
18
|
+
} catch (e) {
|
|
19
|
+
throw n(e);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { a as useGeneratedAccountManagerAddress };
|
|
26
|
+
|
|
27
|
+
//# sourceMappingURL=use-generated-account-manager-address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-generated-account-manager-address.js","names":[],"sources":["../../src/account-layer/use-generated-account-manager-address.ts"],"sourcesContent":["\"use client\";\n\nimport {\n generateAccountManagerAddressQueryOptions,\n type ConfigParameter,\n type GenerateAccountManagerAddressOptions,\n type GenerateAccountManagerAddressReturnType,\n} from \"@symmio/trading-core\";\nimport { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { normalizeSymmError } from \"../errors/normalize-symm-error\";\nimport type { SymmioRequestError } from \"../errors/symmio-request-error\";\nimport { useSymmioChainId } from \"../provider/use-symmio-chain-id\";\nimport { useSymmioConfig } from \"../provider/use-symmio-config\";\n\n/**\n * Parameters for {@link useGeneratedAccountManagerAddress}: the core query\n * options (registrant, name, chain id, TanStack `query` overrides) plus an\n * optional `config`.\n */\nexport type UseGeneratedAccountManagerAddressParameters = GenerateAccountManagerAddressOptions & ConfigParameter;\n\n/** Return type of {@link useGeneratedAccountManagerAddress}. */\nexport type UseGeneratedAccountManagerAddressReturnType = UseQueryResult<\n GenerateAccountManagerAddressReturnType,\n SymmioRequestError\n>;\n\n/**\n * Predict the deterministic affiliate (`AccountManager`) address for a\n * `(registrant, name)` pair — the address `requestToRegisterAffiliate` would\n * assign. The query is disabled until both `registrant` and `name` are set, so\n * it can drive a live preview as the user types a name. `chainId` defaults to the\n * connected chain. Errors are normalized to {@link SymmioRequestError}.\n *\n * @example\n * ```tsx\n * const { data: predicted } = useGeneratedAccountManagerAddress({ registrant, name });\n * ```\n */\nexport function useGeneratedAccountManagerAddress(\n parameters: UseGeneratedAccountManagerAddressParameters = {},\n): UseGeneratedAccountManagerAddressReturnType {\n const config = useSymmioConfig(parameters);\n const chainId = useSymmioChainId();\n const options = generateAccountManagerAddressQueryOptions(config, {\n ...parameters,\n chainId: parameters.chainId ?? chainId,\n });\n\n return useQuery({\n ...options,\n queryFn: async () => {\n try {\n return await options.queryFn();\n } catch (err) {\n throw normalizeSymmError(err);\n }\n },\n }) as UseGeneratedAccountManagerAddressReturnType;\n}\n"],"mappings":";;;;;;;AAuCA,SAAgB,EACd,IAA0D,CAAC,GACd;CAC7C,IAAM,IAAS,EAAgB,CAAU,GACnC,IAAU,EAAiB,GAC3B,IAAU,EAA0C,GAAQ;EAChE,GAAG;EACH,SAAS,EAAW,WAAW;CACjC,CAAC;CAED,OAAO,EAAS;EACd,GAAG;EACH,SAAS,YAAY;GACnB,IAAI;IACF,OAAO,MAAM,EAAQ,QAAQ;GAC/B,SAAS,GAAK;IACZ,MAAM,EAAmB,CAAG;GAC9B;EACF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { RequestToRegisterAffiliateParameters } from '@symmio/trading-core';
|
|
2
|
+
import { UseMutationResult } from '@tanstack/react-query';
|
|
3
|
+
import { SymmioRequestError } from '../errors/symmio-request-error.js';
|
|
4
|
+
import { WriteParameters, WriteResult } from '../transactions/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Parameters for {@link useRequestToRegisterAffiliate}.
|
|
7
|
+
*/
|
|
8
|
+
export type UseRequestToRegisterAffiliateParameters = WriteParameters;
|
|
9
|
+
/**
|
|
10
|
+
* Result returned by the {@link useRequestToRegisterAffiliate} mutation.
|
|
11
|
+
*/
|
|
12
|
+
export type RequestToRegisterAffiliateResult = WriteResult;
|
|
13
|
+
/** Return type of {@link useRequestToRegisterAffiliate}. */
|
|
14
|
+
export type UseRequestToRegisterAffiliateReturnType = UseMutationResult<RequestToRegisterAffiliateResult, SymmioRequestError, RequestToRegisterAffiliateParameters>;
|
|
15
|
+
/**
|
|
16
|
+
* Submit a `requestToRegisterAffiliate` transaction — the permissionless
|
|
17
|
+
* on-chain request that creates a `PENDING` affiliate awaiting approval. On
|
|
18
|
+
* success, every `getAffiliateState` query is invalidated so any mounted status
|
|
19
|
+
* poll refetches.
|
|
20
|
+
*
|
|
21
|
+
* The registration is faithful to the contract tuple: `stakeholders` shares plus
|
|
22
|
+
* `symmioShare` must sum to `1e18`. Derive the resulting affiliate address with
|
|
23
|
+
* `useGeneratedAccountManagerAddress` (a write cannot return it).
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* const { mutate, status, error } = useRequestToRegisterAffiliate();
|
|
28
|
+
* mutate({
|
|
29
|
+
* registration: {
|
|
30
|
+
* name: "Acme",
|
|
31
|
+
* brandColor: "#ff5c39",
|
|
32
|
+
* admin,
|
|
33
|
+
* stakeholders: [{ receiver: admin, share: 900000000000000000n }],
|
|
34
|
+
* symmioShare: 100000000000000000n,
|
|
35
|
+
* metadata: "0x",
|
|
36
|
+
* legacyMultiAccounts: [],
|
|
37
|
+
* symmioCores: [core],
|
|
38
|
+
* },
|
|
39
|
+
* });
|
|
40
|
+
* ```
|
|
41
|
+
*/
|
|
42
|
+
export declare function useRequestToRegisterAffiliate(parameters?: UseRequestToRegisterAffiliateParameters): UseRequestToRegisterAffiliateReturnType;
|
|
43
|
+
//# sourceMappingURL=use-request-to-register-affiliate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-request-to-register-affiliate.d.ts","sourceRoot":"","sources":["../../src/account-layer/use-request-to-register-affiliate.ts"],"names":[],"mappings":"AAEA,OAAO,EAGL,KAAK,oCAAoC,EAC1C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE5F,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAGzE,OAAO,EAAsB,KAAK,eAAe,EAAE,KAAK,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG7F;;GAEG;AACH,MAAM,MAAM,uCAAuC,GAAG,eAAe,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,gCAAgC,GAAG,WAAW,CAAC;AAE3D,4DAA4D;AAC5D,MAAM,MAAM,uCAAuC,GAAG,iBAAiB,CACrE,gCAAgC,EAChC,kBAAkB,EAClB,oCAAoC,CACrC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,6BAA6B,CAC3C,UAAU,GAAE,uCAA4C,GACvD,uCAAuC,CA8BzC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useSymmioChainId as e } from "../provider/use-symmio-chain-id.js";
|
|
3
|
+
import { useSymmioConfig as t } from "../provider/use-symmio-config.js";
|
|
4
|
+
import { normalizeSymmError as n } from "../errors/normalize-symm-error.js";
|
|
5
|
+
import { resolveWriteResult as r } from "../transactions/resolve-write-result.js";
|
|
6
|
+
import { predicateMatch as i } from "../utils/predicate-match.js";
|
|
7
|
+
import { getAffiliateStateQueryKey as a, requestToRegisterAffiliateMutationOptions as o } from "@symmio/trading-core";
|
|
8
|
+
import { useMutation as s, useQueryClient as c } from "@tanstack/react-query";
|
|
9
|
+
//#region src/account-layer/use-request-to-register-affiliate.ts
|
|
10
|
+
function l(l = {}) {
|
|
11
|
+
let u = t(l), d = e(), f = c(), p = o(u);
|
|
12
|
+
return s({
|
|
13
|
+
mutationKey: p.mutationKey,
|
|
14
|
+
mutationFn: async (e) => {
|
|
15
|
+
try {
|
|
16
|
+
let t = e.chainId ?? d;
|
|
17
|
+
return r(u, await p.mutationFn({
|
|
18
|
+
registration: e.registration,
|
|
19
|
+
simulateBeforeWrite: e.simulateBeforeWrite,
|
|
20
|
+
chainId: t
|
|
21
|
+
}), {
|
|
22
|
+
chainId: t,
|
|
23
|
+
waitForReceipt: l.waitForReceipt,
|
|
24
|
+
confirmations: l.confirmations
|
|
25
|
+
});
|
|
26
|
+
} catch (e) {
|
|
27
|
+
throw n(e);
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
onSuccess: () => {
|
|
31
|
+
f.invalidateQueries({ predicate: i(a) });
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
36
|
+
export { l as useRequestToRegisterAffiliate };
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=use-request-to-register-affiliate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-request-to-register-affiliate.js","names":[],"sources":["../../src/account-layer/use-request-to-register-affiliate.ts"],"sourcesContent":["\"use client\";\n\nimport {\n getAffiliateStateQueryKey,\n requestToRegisterAffiliateMutationOptions,\n type RequestToRegisterAffiliateParameters,\n} from \"@symmio/trading-core\";\nimport { useMutation, useQueryClient, type UseMutationResult } from \"@tanstack/react-query\";\nimport { normalizeSymmError } from \"../errors/normalize-symm-error\";\nimport type { SymmioRequestError } from \"../errors/symmio-request-error\";\nimport { useSymmioChainId } from \"../provider/use-symmio-chain-id\";\nimport { useSymmioConfig } from \"../provider/use-symmio-config\";\nimport { resolveWriteResult, type WriteParameters, type WriteResult } from \"../transactions\";\nimport { predicateMatch } from \"../utils\";\n\n/**\n * Parameters for {@link useRequestToRegisterAffiliate}.\n */\nexport type UseRequestToRegisterAffiliateParameters = WriteParameters;\n\n/**\n * Result returned by the {@link useRequestToRegisterAffiliate} mutation.\n */\nexport type RequestToRegisterAffiliateResult = WriteResult;\n\n/** Return type of {@link useRequestToRegisterAffiliate}. */\nexport type UseRequestToRegisterAffiliateReturnType = UseMutationResult<\n RequestToRegisterAffiliateResult,\n SymmioRequestError,\n RequestToRegisterAffiliateParameters\n>;\n\n/**\n * Submit a `requestToRegisterAffiliate` transaction — the permissionless\n * on-chain request that creates a `PENDING` affiliate awaiting approval. On\n * success, every `getAffiliateState` query is invalidated so any mounted status\n * poll refetches.\n *\n * The registration is faithful to the contract tuple: `stakeholders` shares plus\n * `symmioShare` must sum to `1e18`. Derive the resulting affiliate address with\n * `useGeneratedAccountManagerAddress` (a write cannot return it).\n *\n * @example\n * ```tsx\n * const { mutate, status, error } = useRequestToRegisterAffiliate();\n * mutate({\n * registration: {\n * name: \"Acme\",\n * brandColor: \"#ff5c39\",\n * admin,\n * stakeholders: [{ receiver: admin, share: 900000000000000000n }],\n * symmioShare: 100000000000000000n,\n * metadata: \"0x\",\n * legacyMultiAccounts: [],\n * symmioCores: [core],\n * },\n * });\n * ```\n */\nexport function useRequestToRegisterAffiliate(\n parameters: UseRequestToRegisterAffiliateParameters = {},\n): UseRequestToRegisterAffiliateReturnType {\n const config = useSymmioConfig(parameters);\n const chainId = useSymmioChainId();\n const queryClient = useQueryClient();\n\n const base = requestToRegisterAffiliateMutationOptions(config);\n\n return useMutation<RequestToRegisterAffiliateResult, SymmioRequestError, RequestToRegisterAffiliateParameters>({\n mutationKey: base.mutationKey,\n mutationFn: async (variables) => {\n try {\n const resolvedChainId = variables.chainId ?? chainId;\n const hash = await base.mutationFn({\n registration: variables.registration,\n simulateBeforeWrite: variables.simulateBeforeWrite,\n chainId: resolvedChainId,\n });\n return resolveWriteResult(config, hash, {\n chainId: resolvedChainId,\n waitForReceipt: parameters.waitForReceipt,\n confirmations: parameters.confirmations,\n });\n } catch (err) {\n throw normalizeSymmError(err);\n }\n },\n onSuccess: () => {\n void queryClient.invalidateQueries({ predicate: predicateMatch(getAffiliateStateQueryKey) });\n },\n });\n}\n"],"mappings":";;;;;;;;;AA2DA,SAAgB,EACd,IAAsD,CAAC,GACd;CACzC,IAAM,IAAS,EAAgB,CAAU,GACnC,IAAU,EAAiB,GAC3B,IAAc,EAAe,GAE7B,IAAO,EAA0C,CAAM;CAE7D,OAAO,EAAwG;EAC7G,aAAa,EAAK;EAClB,YAAY,OAAO,MAAc;GAC/B,IAAI;IACF,IAAM,IAAkB,EAAU,WAAW;IAM7C,OAAO,EAAmB,GAAQ,MALf,EAAK,WAAW;KACjC,cAAc,EAAU;KACxB,qBAAqB,EAAU;KAC/B,SAAS;IACX,CAAC,GACuC;KACtC,SAAS;KACT,gBAAgB,EAAW;KAC3B,eAAe,EAAW;IAC5B,CAAC;GACH,SAAS,GAAK;IACZ,MAAM,EAAmB,CAAG;GAC9B;EACF;EACA,iBAAiB;GACf,EAAiB,kBAAkB,EAAE,WAAW,EAAe,CAAyB,EAAE,CAAC;EAC7F;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/estimated-price/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Debounce a fast-changing value: returns `value` only after it has stayed
|
|
3
|
+
* unchanged for `delayMs`. Used to hold back solver requests while the user is
|
|
4
|
+
* still typing an amount. A `delayMs <= 0` passes the value through immediately.
|
|
5
|
+
*
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export declare function useDebouncedValue<T>(value: T, delayMs: number): T;
|
|
9
|
+
//# sourceMappingURL=use-debounced-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-debounced-value.d.ts","sourceRoot":"","sources":["../../src/estimated-price/use-debounced-value.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,MAAM,GAAG,CAAC,CAajE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useEffect as e, useState as t } from "react";
|
|
3
|
+
//#region src/estimated-price/use-debounced-value.ts
|
|
4
|
+
function n(n, r) {
|
|
5
|
+
let [i, a] = t(n);
|
|
6
|
+
return e(() => {
|
|
7
|
+
if (r <= 0) {
|
|
8
|
+
a(n);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
let e = setTimeout(() => a(n), r);
|
|
12
|
+
return () => clearTimeout(e);
|
|
13
|
+
}, [n, r]), i;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { n as useDebouncedValue };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=use-debounced-value.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-debounced-value.js","names":[],"sources":["../../src/estimated-price/use-debounced-value.ts"],"sourcesContent":["\"use client\";\n\nimport { useEffect, useState } from \"react\";\n\n/**\n * Debounce a fast-changing value: returns `value` only after it has stayed\n * unchanged for `delayMs`. Used to hold back solver requests while the user is\n * still typing an amount. A `delayMs <= 0` passes the value through immediately.\n *\n * @internal\n */\nexport function useDebouncedValue<T>(value: T, delayMs: number): T {\n const [debounced, setDebounced] = useState(value);\n\n useEffect(() => {\n if (delayMs <= 0) {\n setDebounced(value);\n return;\n }\n const timer = setTimeout(() => setDebounced(value), delayMs);\n return () => clearTimeout(timer);\n }, [value, delayMs]);\n\n return debounced;\n}\n"],"mappings":";;;AAWA,SAAgB,EAAqB,GAAU,GAAoB;CACjE,IAAM,CAAC,GAAW,KAAgB,EAAS,CAAK;CAWhD,OATA,QAAgB;EACd,IAAI,KAAW,GAAG;GAChB,EAAa,CAAK;GAClB;EACF;EACA,IAAM,IAAQ,iBAAiB,EAAa,CAAK,GAAG,CAAO;EAC3D,aAAa,aAAa,CAAK;CACjC,GAAG,CAAC,GAAO,CAAO,CAAC,GAEZ;AACT"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ConfigParameter, GetEstimatedPriceOptions, GetEstimatedPriceReturnType } from '@symmio/trading-core';
|
|
2
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
3
|
+
import { SymmioRequestError } from '../errors/symmio-request-error.js';
|
|
4
|
+
/**
|
|
5
|
+
* Parameters for {@link useEstimatedPrice}: the core query options (`symbolId`,
|
|
6
|
+
* `quantity`, `positionType`, `entry`, `price`, chain id, TanStack `query`
|
|
7
|
+
* overrides), an optional `config`, and an optional `debounceMs`.
|
|
8
|
+
*/
|
|
9
|
+
export type UseEstimatedPriceParameters = GetEstimatedPriceOptions & ConfigParameter & {
|
|
10
|
+
/**
|
|
11
|
+
* Debounce (ms) applied to `quantity` and `price` so one request fires once
|
|
12
|
+
* the user stops typing — not one per keystroke. Defaults to
|
|
13
|
+
* {@link DEFAULT_DEBOUNCE_MS} (350); set `0` to disable.
|
|
14
|
+
*/
|
|
15
|
+
debounceMs?: number;
|
|
16
|
+
};
|
|
17
|
+
/** Return type of {@link useEstimatedPrice}. */
|
|
18
|
+
export type UseEstimatedPriceReturnType = UseQueryResult<GetEstimatedPriceReturnType, SymmioRequestError>;
|
|
19
|
+
/**
|
|
20
|
+
* Ask the solver what price an open or close would **fill at** — a read-only
|
|
21
|
+
* simulation of the trade (`/estimated-price`; nothing is submitted). Use it to
|
|
22
|
+
* preview the fill price, the price impact
|
|
23
|
+
* ([`calculatePriceImpact`](../../core/solvers/estimated-price)) and — for a
|
|
24
|
+
* close — an estimated PnL, before the user submits.
|
|
25
|
+
*
|
|
26
|
+
* `price` is the **slippage-adjusted request price** the caller computed (not the
|
|
27
|
+
* raw mark). The query is disabled until `quantity` and `price` are non-empty, so
|
|
28
|
+
* it doesn't fire on partial input. `quantity` and `price` are **debounced
|
|
29
|
+
* internally** (`debounceMs`, default 350) so typing an amount fires a single
|
|
30
|
+
* request once the user settles — the caller passes the raw input, no external
|
|
31
|
+
* debounce needed. Errors are normalized to {@link SymmioRequestError}.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* const { data } = useEstimatedPrice({
|
|
36
|
+
* symbolId,
|
|
37
|
+
* quantity: tradeParams.quantity,
|
|
38
|
+
* positionType,
|
|
39
|
+
* entry: "open",
|
|
40
|
+
* price: tradeParams.price, // slippage-adjusted
|
|
41
|
+
* });
|
|
42
|
+
* // data?.estimatedPrice
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare function useEstimatedPrice(parameters: UseEstimatedPriceParameters): UseEstimatedPriceReturnType;
|
|
46
|
+
//# sourceMappingURL=use-estimated-price.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-estimated-price.d.ts","sourceRoot":"","sources":["../../src/estimated-price/use-estimated-price.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EACjC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAY,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAEtE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAQzE;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG,wBAAwB,GAChE,eAAe,GAAG;IAChB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEJ,gDAAgD;AAChD,MAAM,MAAM,2BAA2B,GAAG,cAAc,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAAC;AAE1G;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,2BAA2B,GAAG,2BAA2B,CA6BtG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useSymmioChainId as e } from "../provider/use-symmio-chain-id.js";
|
|
3
|
+
import { useSymmioConfig as t } from "../provider/use-symmio-config.js";
|
|
4
|
+
import { normalizeSymmError as n } from "../errors/normalize-symm-error.js";
|
|
5
|
+
import { useDebouncedValue as r } from "./use-debounced-value.js";
|
|
6
|
+
import { getEstimatedPriceQueryOptions as i } from "@symmio/trading-core";
|
|
7
|
+
import { useQuery as a } from "@tanstack/react-query";
|
|
8
|
+
//#region src/estimated-price/use-estimated-price.ts
|
|
9
|
+
var o = 500;
|
|
10
|
+
function s(s) {
|
|
11
|
+
let c = t(s), l = e(), { debounceMs: u, ...d } = s, f = r(s.quantity, u ?? o), p = r(s.price, u ?? o), m = i(c, {
|
|
12
|
+
...d,
|
|
13
|
+
quantity: f,
|
|
14
|
+
price: p,
|
|
15
|
+
chainId: s.chainId ?? l
|
|
16
|
+
});
|
|
17
|
+
return a({
|
|
18
|
+
...m,
|
|
19
|
+
queryFn: async () => {
|
|
20
|
+
try {
|
|
21
|
+
return await m.queryFn();
|
|
22
|
+
} catch (e) {
|
|
23
|
+
throw n(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { s as useEstimatedPrice };
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=use-estimated-price.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-estimated-price.js","names":[],"sources":["../../src/estimated-price/use-estimated-price.ts"],"sourcesContent":["\"use client\";\n\nimport {\n getEstimatedPriceQueryOptions,\n type ConfigParameter,\n type GetEstimatedPriceOptions,\n type GetEstimatedPriceReturnType,\n} from \"@symmio/trading-core\";\nimport { useQuery, type UseQueryResult } from \"@tanstack/react-query\";\nimport { normalizeSymmError } from \"../errors/normalize-symm-error\";\nimport type { SymmioRequestError } from \"../errors/symmio-request-error\";\nimport { useSymmioChainId } from \"../provider/use-symmio-chain-id\";\nimport { useSymmioConfig } from \"../provider/use-symmio-config\";\nimport { useDebouncedValue } from \"./use-debounced-value\";\n\n/** Default debounce (ms) applied to the typed `quantity` / `price` inputs. */\nconst DEFAULT_DEBOUNCE_MS = 500;\n\n/**\n * Parameters for {@link useEstimatedPrice}: the core query options (`symbolId`,\n * `quantity`, `positionType`, `entry`, `price`, chain id, TanStack `query`\n * overrides), an optional `config`, and an optional `debounceMs`.\n */\nexport type UseEstimatedPriceParameters = GetEstimatedPriceOptions &\n ConfigParameter & {\n /**\n * Debounce (ms) applied to `quantity` and `price` so one request fires once\n * the user stops typing — not one per keystroke. Defaults to\n * {@link DEFAULT_DEBOUNCE_MS} (350); set `0` to disable.\n */\n debounceMs?: number;\n };\n\n/** Return type of {@link useEstimatedPrice}. */\nexport type UseEstimatedPriceReturnType = UseQueryResult<GetEstimatedPriceReturnType, SymmioRequestError>;\n\n/**\n * Ask the solver what price an open or close would **fill at** — a read-only\n * simulation of the trade (`/estimated-price`; nothing is submitted). Use it to\n * preview the fill price, the price impact\n * ([`calculatePriceImpact`](../../core/solvers/estimated-price)) and — for a\n * close — an estimated PnL, before the user submits.\n *\n * `price` is the **slippage-adjusted request price** the caller computed (not the\n * raw mark). The query is disabled until `quantity` and `price` are non-empty, so\n * it doesn't fire on partial input. `quantity` and `price` are **debounced\n * internally** (`debounceMs`, default 350) so typing an amount fires a single\n * request once the user settles — the caller passes the raw input, no external\n * debounce needed. Errors are normalized to {@link SymmioRequestError}.\n *\n * @example\n * ```tsx\n * const { data } = useEstimatedPrice({\n * symbolId,\n * quantity: tradeParams.quantity,\n * positionType,\n * entry: \"open\",\n * price: tradeParams.price, // slippage-adjusted\n * });\n * // data?.estimatedPrice\n * ```\n */\nexport function useEstimatedPrice(parameters: UseEstimatedPriceParameters): UseEstimatedPriceReturnType {\n const config = useSymmioConfig(parameters);\n const chainId = useSymmioChainId();\n\n // The amount and request price change on every keystroke; debounce them so the\n // solver is hit once the user settles, not once per digit. Market, side, and\n // entry change discretely and pass through untouched. `debounceMs` is pulled\n // out so it never leaks into the query options / cache key.\n const { debounceMs, ...queryParams } = parameters;\n const quantity = useDebouncedValue(parameters.quantity, debounceMs ?? DEFAULT_DEBOUNCE_MS);\n const price = useDebouncedValue(parameters.price, debounceMs ?? DEFAULT_DEBOUNCE_MS);\n\n const options = getEstimatedPriceQueryOptions(config, {\n ...queryParams,\n quantity,\n price,\n chainId: parameters.chainId ?? chainId,\n });\n\n return useQuery({\n ...options,\n queryFn: async () => {\n try {\n return await options.queryFn();\n } catch (err) {\n throw normalizeSymmError(err);\n }\n },\n }) as UseEstimatedPriceReturnType;\n}\n"],"mappings":";;;;;;;;AAgBA,IAAM,IAAsB;AA8C5B,SAAgB,EAAkB,GAAsE;CACtG,IAAM,IAAS,EAAgB,CAAU,GACnC,IAAU,EAAiB,GAM3B,EAAE,eAAY,GAAG,MAAgB,GACjC,IAAW,EAAkB,EAAW,UAAU,KAAc,CAAmB,GACnF,IAAQ,EAAkB,EAAW,OAAO,KAAc,CAAmB,GAE7E,IAAU,EAA8B,GAAQ;EACpD,GAAG;EACH;EACA;EACA,SAAS,EAAW,WAAW;CACjC,CAAC;CAED,OAAO,EAAS;EACd,GAAG;EACH,SAAS,YAAY;GACnB,IAAI;IACF,OAAO,MAAM,EAAQ,QAAQ;GAC/B,SAAS,GAAK;IACZ,MAAM,EAAmB,CAAG;GAC9B;EACF;CACF,CAAC;AACH"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* `useSymmioConfig` / `useSymmioChainId` are the wagmi-style primitives every
|
|
19
19
|
* other hook builds on.
|
|
20
20
|
*/
|
|
21
|
-
export { ADD_MARGIN_TO_NEXT_VA_SELECTOR, INSTANT_TRADE_REQUIRED_SELECTORS, NotificationType, OrderType, PositionType, QuoteStatus, REQUEST_TO_CLOSE_POSITION_SELECTOR, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, SubAccountIsolationType, SymmApiError, SymmError, VIRTUAL_ACCOUNT_ISOLATION_TYPE, calculateClosePrice, calculateTradeParams, clampClosePrecision, getPartyAOpenPositionsQueryKey, getPartyAOpenPositionsQueryOptions, isolationTypeForSide, validateInstantCloseAgainstMarket, validateInstantOpenAgainstMarket, type CalculateClosePriceParameters, type CalculateTradeParamsParameters, type CalculateTradeParamsReturnType, type ClampClosePrecisionParameters, type CloseQuoteConstraintViolation, type GetPartyAOpenPositionsData, type GetPartyAOpenPositionsOptions, type GetPartyAOpenPositionsParameters, type GetPartyAOpenPositionsQueryKey, type GetPartyAOpenPositionsQueryOptions, type GetPartyAOpenPositionsReturnType, type InstantCloseBulkAutoOrder, type InstantCloseBulkAutoParameters, type InstantCloseBulkOrder, type InstantCloseBulkParameters, type InstantCloseBulkReturnType, type InstantCloseMarketData, type InstantCloseOrder, type InstantCloseParameters, type InstantCloseReturnType, type Notification, type PrepareInstantCloseParameters, type QuoteConstraintViolation, type SubAccountCreationData, type SymmErrorKind, type ValidateInstantCloseAgainstMarketParameters, type ValidateInstantCloseAgainstMarketReturnType, type ValidateInstantOpenAgainstMarketParameters, type ValidateInstantOpenAgainstMarketReturnType, type VirtualAccountDetail, type VirtualAccountIsolationType, } from '@symmio/trading-core';
|
|
21
|
+
export { ADD_MARGIN_TO_NEXT_VA_SELECTOR, INSTANT_TRADE_REQUIRED_SELECTORS, NotificationType, OrderType, PositionType, QuoteStatus, REQUEST_TO_CLOSE_POSITION_SELECTOR, SEND_QUOTE_WITH_AFFILIATE_AND_DATA_SELECTOR, SubAccountIsolationType, SymmApiError, SymmError, VIRTUAL_ACCOUNT_ISOLATION_TYPE, calculateAvailableInstantOpenMargin, calculateClosePrice, calculatePriceImpact, calculateQuotePnl, calculateTradeParams, clampClosePrecision, getPartyAOpenPositionsQueryKey, getPartyAOpenPositionsQueryOptions, isolationTypeForSide, validateInstantCloseAgainstMarket, validateInstantOpenAgainstMarket, type CalculateAvailableInstantOpenMarginParameters, type CalculateClosePriceParameters, type CalculateTradeParamsParameters, type CalculateTradeParamsReturnType, type ClampClosePrecisionParameters, type CloseQuoteConstraintViolation, type GetPartyAOpenPositionsData, type GetPartyAOpenPositionsOptions, type GetPartyAOpenPositionsParameters, type GetPartyAOpenPositionsQueryKey, type GetPartyAOpenPositionsQueryOptions, type GetPartyAOpenPositionsReturnType, type InstantCloseBulkAutoOrder, type InstantCloseBulkAutoParameters, type InstantCloseBulkOrder, type InstantCloseBulkParameters, type InstantCloseBulkReturnType, type InstantCloseMarketData, type InstantCloseOrder, type InstantCloseParameters, type InstantCloseReturnType, type Notification, type PrepareInstantCloseParameters, type QuoteConstraintViolation, type SubAccountCreationData, type SymmErrorKind, type ValidateInstantCloseAgainstMarketParameters, type ValidateInstantCloseAgainstMarketReturnType, type ValidateInstantOpenAgainstMarketParameters, type ValidateInstantOpenAgainstMarketReturnType, type VirtualAccountDetail, type VirtualAccountIsolationType, } from '@symmio/trading-core';
|
|
22
22
|
export type { GetWalletClientFn, SymmioWalletClient } from '@symmio/trading-core';
|
|
23
23
|
export { SymmioProvider, useSymmioChainId, useSymmioConfig, type SymmioProviderProps, type UseSymmioConfigParameters, } from './provider/index.js';
|
|
24
24
|
/**
|
|
@@ -33,7 +33,7 @@ export { useConnectWallet, useDisconnectWallet, useSwitchToSymmioChain, useWalle
|
|
|
33
33
|
* React-query wrappers over the `@symmio/trading-core` AccountLayer slice.
|
|
34
34
|
* Mutations invalidate the relevant queries on success.
|
|
35
35
|
*/
|
|
36
|
-
export { useAccountBalanceInfo, useAccountBalanceOf, useAddMargin, useAllocate, useCreateSubAccounts, useDeallocate, useDeleteSubAccount, useDeposit, useDepositAndAllocate, useEditAccountName, usePredictedNextVirtualAccount, useRemoveMargin, useSimulateAddMargin, useSimulateAllocate, useSimulateCreateSubAccounts, useSimulateDeallocate, useSimulateDeleteSubAccount, useSimulateDeposit, useSimulateDepositAndAllocate, useSimulateEditAccountName, useSimulateRemoveMargin, useSubAccount, useSubAccountVirtualNonce, useSubAccountsCountOfUser, useUserSubAccounts, useUserSubAccountsAddresses, useVirtualAccount, useVirtualAccountsAddressesOfSubAccount, type AddMarginResult, type AllocateResult, type CreateSubAccountsResult, type DeallocateResult, type DeallocateVariables, type DeleteSubAccountResult, type DepositAndAllocateResult, type DepositResult, type EditAccountNameResult, type RemoveMarginResult, type RemoveMarginVariables, type UseAccountBalanceInfoParameters, type UseAccountBalanceInfoReturnType, type UseAccountBalanceOfParameters, type UseAccountBalanceOfReturnType, type UseAddMarginParameters, type UseAddMarginReturnType, type UseAllocateParameters, type UseAllocateReturnType, type UseCreateSubAccountsParameters, type UseCreateSubAccountsReturnType, type UseDeallocateParameters, type UseDeallocateReturnType, type UseDeleteSubAccountParameters, type UseDeleteSubAccountReturnType, type UseDepositAndAllocateParameters, type UseDepositAndAllocateReturnType, type UseDepositParameters, type UseDepositReturnType, type UseEditAccountNameParameters, type UseEditAccountNameReturnType, type UsePredictedNextVirtualAccountParameters, type UsePredictedNextVirtualAccountReturnType, type UseRemoveMarginParameters, type UseRemoveMarginReturnType, type UseSimulateAddMarginParameters, type UseSimulateAddMarginReturnType, type UseSimulateAllocateParameters, type UseSimulateAllocateReturnType, type UseSimulateCreateSubAccountsParameters, type UseSimulateCreateSubAccountsReturnType, type UseSimulateDeallocateParameters, type UseSimulateDeallocateReturnType, type UseSimulateDeleteSubAccountParameters, type UseSimulateDeleteSubAccountReturnType, type UseSimulateDepositAndAllocateParameters, type UseSimulateDepositAndAllocateReturnType, type UseSimulateDepositParameters, type UseSimulateDepositReturnType, type UseSimulateEditAccountNameParameters, type UseSimulateEditAccountNameReturnType, type UseSimulateRemoveMarginParameters, type UseSimulateRemoveMarginReturnType, type UseSubAccountParameters, type UseSubAccountReturnType, type UseSubAccountVirtualNonceParameters, type UseSubAccountVirtualNonceReturnType, type UseSubAccountsCountOfUserParameters, type UseSubAccountsCountOfUserReturnType, type UseUserSubAccountsAddressesParameters, type UseUserSubAccountsAddressesReturnType, type UseUserSubAccountsParameters, type UseUserSubAccountsReturnType, type UseVirtualAccountParameters, type UseVirtualAccountReturnType, type UseVirtualAccountsAddressesOfSubAccountParameters, type UseVirtualAccountsAddressesOfSubAccountReturnType, } from './account-layer/index.js';
|
|
36
|
+
export { useAccountBalanceInfo, useAccountBalanceOf, useAddMargin, useAffiliateState, useAllocate, useCancelRegistration, useCreateSubAccounts, useDeallocate, useDeleteSubAccount, useDeposit, useDepositAndAllocate, useEditAccountName, useGeneratedAccountManagerAddress, usePredictedNextVirtualAccount, useRemoveMargin, useRequestToRegisterAffiliate, useSimulateAddMargin, useSimulateAllocate, useSimulateCreateSubAccounts, useSimulateDeallocate, useSimulateDeleteSubAccount, useSimulateDeposit, useSimulateDepositAndAllocate, useSimulateEditAccountName, useSimulateRemoveMargin, useSubAccount, useSubAccountVirtualNonce, useSubAccountsCountOfUser, useUserSubAccounts, useUserSubAccountsAddresses, useVirtualAccount, useVirtualAccountsAddressesOfSubAccount, type AddMarginResult, type AllocateResult, type CancelRegistrationResult, type CreateSubAccountsResult, type DeallocateResult, type DeallocateVariables, type DeleteSubAccountResult, type DepositAndAllocateResult, type DepositResult, type EditAccountNameResult, type RemoveMarginResult, type RemoveMarginVariables, type RequestToRegisterAffiliateResult, type UseAccountBalanceInfoParameters, type UseAccountBalanceInfoReturnType, type UseAccountBalanceOfParameters, type UseAccountBalanceOfReturnType, type UseAddMarginParameters, type UseAddMarginReturnType, type UseAffiliateStateParameters, type UseAffiliateStateReturnType, type UseAllocateParameters, type UseAllocateReturnType, type UseCancelRegistrationParameters, type UseCancelRegistrationReturnType, type UseCreateSubAccountsParameters, type UseCreateSubAccountsReturnType, type UseDeallocateParameters, type UseDeallocateReturnType, type UseDeleteSubAccountParameters, type UseDeleteSubAccountReturnType, type UseDepositAndAllocateParameters, type UseDepositAndAllocateReturnType, type UseDepositParameters, type UseDepositReturnType, type UseEditAccountNameParameters, type UseEditAccountNameReturnType, type UseGeneratedAccountManagerAddressParameters, type UseGeneratedAccountManagerAddressReturnType, type UsePredictedNextVirtualAccountParameters, type UsePredictedNextVirtualAccountReturnType, type UseRemoveMarginParameters, type UseRemoveMarginReturnType, type UseRequestToRegisterAffiliateParameters, type UseRequestToRegisterAffiliateReturnType, type UseSimulateAddMarginParameters, type UseSimulateAddMarginReturnType, type UseSimulateAllocateParameters, type UseSimulateAllocateReturnType, type UseSimulateCreateSubAccountsParameters, type UseSimulateCreateSubAccountsReturnType, type UseSimulateDeallocateParameters, type UseSimulateDeallocateReturnType, type UseSimulateDeleteSubAccountParameters, type UseSimulateDeleteSubAccountReturnType, type UseSimulateDepositAndAllocateParameters, type UseSimulateDepositAndAllocateReturnType, type UseSimulateDepositParameters, type UseSimulateDepositReturnType, type UseSimulateEditAccountNameParameters, type UseSimulateEditAccountNameReturnType, type UseSimulateRemoveMarginParameters, type UseSimulateRemoveMarginReturnType, type UseSubAccountParameters, type UseSubAccountReturnType, type UseSubAccountVirtualNonceParameters, type UseSubAccountVirtualNonceReturnType, type UseSubAccountsCountOfUserParameters, type UseSubAccountsCountOfUserReturnType, type UseUserSubAccountsAddressesParameters, type UseUserSubAccountsAddressesReturnType, type UseUserSubAccountsParameters, type UseUserSubAccountsReturnType, type UseVirtualAccountParameters, type UseVirtualAccountReturnType, type UseVirtualAccountsAddressesOfSubAccountParameters, type UseVirtualAccountsAddressesOfSubAccountReturnType, } from './account-layer/index.js';
|
|
37
37
|
/**
|
|
38
38
|
* Collateral hooks
|
|
39
39
|
* ----------------
|
|
@@ -82,6 +82,10 @@ export { useSolverErrorCodes, useSolverErrorMessage, type UseSolverErrorCodesPar
|
|
|
82
82
|
* / `QuoteLifecycle` value types from `@symmio/trading-core`.
|
|
83
83
|
*/
|
|
84
84
|
export { useAccountLiquidationPrice, useGroupedQuotes, useManagedQuotes, useOptimisticQuotesStore, usePartyAOpenPositions, usePartyAPendingQuotes, useQuote, useQuoteEventsByType, useQuoteFunding, useQuoteHistory, useQuotePlatformFee, useQuotePriceHistory, useQuoteUpnlAndPnl, useQuotesFunding, useSubgraphQuery, type ManagedQuotesSources, type OptimisticQuotesStoreState, type QuotesFundingInputQuote, type UseAccountLiquidationPriceParameters, type UseAccountLiquidationPriceReturnType, type UseGroupedQuotesParameters, type UseGroupedQuotesResult, type UseManagedQuotesParameters, type UseManagedQuotesResult, type UsePartyAOpenPositionsParameters, type UsePartyAOpenPositionsReturnType, type UsePartyAPendingQuotesParameters, type UsePartyAPendingQuotesReturnType, type UseQuoteEventsByTypeParameters, type UseQuoteEventsByTypeReturnType, type UseQuoteFundingParameters, type UseQuoteFundingReturnType, type UseQuoteHistoryParameters, type UseQuoteHistoryReturnType, type UseQuoteParameters, type UseQuotePlatformFeeParameters, type UseQuotePlatformFeeReturnType, type UseQuotePriceHistoryParameters, type UseQuoteReturnType, type UseQuoteUpnlAndPnlParameters, type UseQuoteUpnlAndPnlReturnType, type UseQuotesFundingParameters, type UseQuotesFundingReturnType, type UseSubgraphQueryParameters, type UseSubgraphQueryReturnType, } from './quotes/index.js';
|
|
85
|
+
/**
|
|
86
|
+
* Margin — derived spendable-margin helpers for the trade form.
|
|
87
|
+
*/
|
|
88
|
+
export { useAvailableInstantOpenMargin, type UseAvailableInstantOpenMarginParameters, type UseAvailableInstantOpenMarginReturnType, } from './margin/index.js';
|
|
85
89
|
/**
|
|
86
90
|
* Balance history hooks
|
|
87
91
|
* ---------------------
|
|
@@ -121,6 +125,7 @@ export { DEFAULT_NOTIONAL_CAP_POLLING_MS, useNotionalCapAll, useNotionalCapBySym
|
|
|
121
125
|
* epoch length from the solver. Does not poll by default; the caller opts into
|
|
122
126
|
* polling via `query.refetchInterval`.
|
|
123
127
|
*/
|
|
128
|
+
export { useEstimatedPrice, type UseEstimatedPriceParameters, type UseEstimatedPriceReturnType, } from './estimated-price/index.js';
|
|
124
129
|
export { useFundingInfo, type UseFundingInfoParameters, type UseFundingInfoReturnType } from './funding-info/index.js';
|
|
125
130
|
/**
|
|
126
131
|
* Market-info hooks
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;GAMG;AACH,OAAO,EACL,8BAA8B,EAC9B,gCAAgC,EAChC,gBAAgB,EAChB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,kCAAkC,EAClC,2CAA2C,EAC3C,uBAAuB,EACvB,YAAY,EACZ,SAAS,EACT,8BAA8B,EAC9B,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,8BAA8B,EAC9B,kCAAkC,EAClC,oBAAoB,EACpB,iCAAiC,EACjC,gCAAgC,EAChC,KAAK,6BAA6B,EAClC,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,6BAA6B,EAClC,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,yBAAyB,EAC9B,KAAK,8BAA8B,EACnC,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,YAAY,EACjB,KAAK,6BAA6B,EAClC,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,aAAa,EAClB,KAAK,2CAA2C,EAChD,KAAK,2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