@use-glyph/sdk-react 2.0.7 → 2.0.8

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.
@@ -1,4 +1,9 @@
1
1
  import { Execute } from '@relayprotocol/relay-sdk';
2
+ export declare const PRECHECK_FAILURE_CODE = "PRECHECK_FAILED";
3
+ export declare const buildErrorPayloadWithCode: (code: string, message: string) => {
4
+ code: string;
5
+ message: string;
6
+ };
2
7
  export declare const useRelayExecute: () => import('@tanstack/react-query').UseMutationResult<{
3
8
  requestId: string | undefined;
4
9
  txnId: any;
@@ -6,4 +11,7 @@ export declare const useRelayExecute: () => import('@tanstack/react-query').UseM
6
11
  data: Execute;
7
12
  abortController: AbortController;
8
13
  };
9
- } | null, Error, Execute, unknown>;
14
+ }, Error, {
15
+ qt: Execute;
16
+ onExecutionStart?: (quote: Execute) => void;
17
+ }, unknown>;
@@ -1,3 +1,6 @@
1
+ import { RelayAPIToken } from '../context/GlyphSwapContext';
2
+ export declare const GAS_BUFFER = 115n;
3
+ export declare const checkIfGasIsEnough: (gasCurrencyAddress: string, sourceToken: RelayAPIToken | undefined, quoteGasAmountInWei: number | string | undefined | null, sourceGasBalanceInWei: number | string | undefined | null, sellAmount: string | undefined | null) => boolean | undefined;
1
4
  export declare const useRelayQuote: (enabled?: boolean) => {
2
5
  appFeesWaived: boolean;
3
6
  operation: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-glyph/sdk-react",
3
- "version": "2.0.7",
3
+ "version": "2.0.8",
4
4
  "type": "module",
5
5
  "license": "GLYPH-1.0",
6
6
  "sideEffects": false,