@scaffold-hbar-ui/debug-contracts 1.0.0 → 1.0.1
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/dist/esm/Contract.js +22 -0
- package/dist/esm/components/Collapsible.js +9 -0
- package/dist/esm/components/ContractInput.js +56 -0
- package/dist/esm/components/ContractReadMethods.js +23 -0
- package/dist/esm/components/ContractVariables.js +23 -0
- package/dist/esm/components/ContractWriteMethods.js +23 -0
- package/dist/esm/components/DisplayVariable.js +34 -0
- package/dist/esm/components/InheritanceTooltip.js +4 -0
- package/dist/esm/components/ReadOnlyFunctionForm.js +48 -0
- package/dist/esm/components/Tooltip.js +37 -0
- package/dist/esm/components/Tuple.js +21 -0
- package/dist/esm/components/TupleArray.js +73 -0
- package/dist/esm/components/TxReceipt.js +13 -0
- package/dist/esm/components/WriteOnlyFunctionForm.js +59 -0
- package/dist/esm/components/inputs/Bytes32Input.js +13 -0
- package/dist/esm/components/inputs/BytesInput.js +10 -0
- package/dist/esm/components/inputs/DecimalMultiplierButtons.js +58 -0
- package/dist/esm/components/inputs/IntegerInput.js +17 -0
- package/dist/esm/components/inputs/index.js +4 -0
- package/dist/esm/contexts/ContractConfigContext.js +13 -0
- package/dist/esm/hooks/useAnimationConfig.js +16 -0
- package/dist/esm/hooks/useCopyToClipboard.js +17 -0
- package/dist/esm/hooks/useTransactor.js +86 -0
- package/dist/esm/index.js +4 -0
- package/dist/esm/types.js +1 -0
- package/dist/esm/utils/common.js +42 -0
- package/dist/esm/utils/contracts.js +186 -0
- package/dist/esm/utils/getParsedError.js +25 -0
- package/dist/esm/utils/inputs.js +100 -0
- package/dist/esm/utils/networks.js +46 -0
- package/dist/esm/utils/notification.js +45 -0
- package/dist/esm/utils/utilsDisplay.js +68 -0
- package/dist/types/Contract.d.ts +12 -0
- package/dist/types/Contract.d.ts.map +1 -0
- package/dist/types/components/Collapsible.d.ts +9 -0
- package/dist/types/components/Collapsible.d.ts.map +1 -0
- package/dist/types/components/ContractInput.d.ts +14 -0
- package/dist/types/components/ContractInput.d.ts.map +1 -0
- package/dist/types/components/ContractReadMethods.d.ts +8 -0
- package/dist/types/components/ContractReadMethods.d.ts.map +1 -0
- package/dist/types/components/ContractVariables.d.ts +10 -0
- package/dist/types/components/ContractVariables.d.ts.map +1 -0
- package/dist/types/components/ContractWriteMethods.d.ts +9 -0
- package/dist/types/components/ContractWriteMethods.d.ts.map +1 -0
- package/dist/types/components/DisplayVariable.d.ts +11 -0
- package/dist/types/components/DisplayVariable.d.ts.map +1 -0
- package/dist/types/components/InheritanceTooltip.d.ts +4 -0
- package/dist/types/components/InheritanceTooltip.d.ts.map +1 -0
- package/dist/types/components/ReadOnlyFunctionForm.d.ts +11 -0
- package/dist/types/components/ReadOnlyFunctionForm.d.ts.map +1 -0
- package/dist/types/components/Tooltip.d.ts +12 -0
- package/dist/types/components/Tooltip.d.ts.map +1 -0
- package/dist/types/components/Tuple.d.ts +11 -0
- package/dist/types/components/Tuple.d.ts.map +1 -0
- package/dist/types/components/TupleArray.d.ts +13 -0
- package/dist/types/components/TupleArray.d.ts.map +1 -0
- package/dist/types/components/TxReceipt.d.ts +5 -0
- package/dist/types/components/TxReceipt.d.ts.map +1 -0
- package/dist/types/components/WriteOnlyFunctionForm.d.ts +12 -0
- package/dist/types/components/WriteOnlyFunctionForm.d.ts.map +1 -0
- package/dist/types/components/inputs/Bytes32Input.d.ts +3 -0
- package/dist/types/components/inputs/Bytes32Input.d.ts.map +1 -0
- package/dist/types/components/inputs/BytesInput.d.ts +3 -0
- package/dist/types/components/inputs/BytesInput.d.ts.map +1 -0
- package/dist/types/components/inputs/DecimalMultiplierButtons.d.ts +7 -0
- package/dist/types/components/inputs/DecimalMultiplierButtons.d.ts.map +1 -0
- package/dist/types/components/inputs/IntegerInput.d.ts +7 -0
- package/dist/types/components/inputs/IntegerInput.d.ts.map +1 -0
- package/dist/types/components/inputs/index.d.ts +5 -0
- package/dist/types/components/inputs/index.d.ts.map +1 -0
- package/dist/types/contexts/ContractConfigContext.d.ts +13 -0
- package/dist/types/contexts/ContractConfigContext.d.ts.map +1 -0
- package/dist/types/hooks/useAnimationConfig.d.ts +4 -0
- package/dist/types/hooks/useAnimationConfig.d.ts.map +1 -0
- package/dist/types/hooks/useCopyToClipboard.d.ts +5 -0
- package/dist/types/hooks/useCopyToClipboard.d.ts.map +1 -0
- package/dist/types/hooks/useTransactor.d.ts +16 -0
- package/dist/types/hooks/useTransactor.d.ts.map +1 -0
- package/dist/types/index.d.ts +5 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/types.d.ts +16 -0
- package/dist/types/types.d.ts.map +1 -0
- package/dist/types/utils/common.d.ts +5 -0
- package/dist/types/utils/common.d.ts.map +1 -0
- package/dist/types/utils/contracts.d.ts +29 -0
- package/dist/types/utils/contracts.d.ts.map +1 -0
- package/dist/types/utils/getParsedError.d.ts +7 -0
- package/dist/types/utils/getParsedError.d.ts.map +1 -0
- package/dist/types/utils/inputs.d.ts +78 -0
- package/dist/types/utils/inputs.d.ts.map +1 -0
- package/dist/types/utils/networks.d.ts +12 -0
- package/dist/types/utils/networks.d.ts.map +1 -0
- package/dist/types/utils/notification.d.ts +17 -0
- package/dist/types/utils/notification.d.ts.map +1 -0
- package/dist/types/utils/utilsDisplay.d.ts +14 -0
- package/dist/types/utils/utilsDisplay.d.ts.map +1 -0
- package/package.json +20 -20
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
interface CollapsibleProps {
|
|
3
|
+
title: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const Collapsible: ({ title, children, className }: CollapsibleProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=Collapsible.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collapsible.d.ts","sourceRoot":"","sources":["../../../src/components/Collapsible.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAY,MAAM,OAAO,CAAC;AAE5C,UAAU,gBAAgB;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,GAAI,gCAAqC,gBAAgB,4CAgChF,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { AbiParameter } from "abitype";
|
|
3
|
+
type ContractInputProps = {
|
|
4
|
+
setForm: Dispatch<SetStateAction<Record<string, any>>>;
|
|
5
|
+
form: Record<string, any> | undefined;
|
|
6
|
+
stateObjectKey: string;
|
|
7
|
+
paramType: AbiParameter;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Generic Input component to handle input's based on their function param type
|
|
11
|
+
*/
|
|
12
|
+
export declare const ContractInput: ({ setForm, form, stateObjectKey, paramType }: ContractInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=ContractInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractInput.d.ts","sourceRoot":"","sources":["../../../src/components/ContractInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAe,MAAM,OAAO,CAAC;AAC9D,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAcvC,KAAK,kBAAkB,GAAG;IACxB,OAAO,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IACvD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,YAAY,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,8CAA8C,kBAAkB,4CAuF7F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractReadMethods.d.ts","sourceRoot":"","sources":["../../../src/components/ContractReadMethods.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAe,OAAO,EAAE,MAAM,SAAS,CAAC;AAIpD,eAAO,MAAM,mBAAmB,GAAI,eAEjC;IACD,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;KACV,CAAC;CACH,mDAoCA,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Abi } from "abitype";
|
|
2
|
+
import { Address } from "viem";
|
|
3
|
+
export declare const ContractVariables: ({ refreshDisplayVariables, contract, }: {
|
|
4
|
+
refreshDisplayVariables: boolean;
|
|
5
|
+
contract: {
|
|
6
|
+
address: Address;
|
|
7
|
+
abi: Abi;
|
|
8
|
+
};
|
|
9
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
|
+
//# sourceMappingURL=ContractVariables.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractVariables.d.ts","sourceRoot":"","sources":["../../../src/components/ContractVariables.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAe,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAI/B,eAAO,MAAM,iBAAiB,GAAI,wCAG/B;IACD,uBAAuB,EAAE,OAAO,CAAC;IACjC,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;KACV,CAAC;CACH,mDAqCA,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Abi, Address } from "abitype";
|
|
2
|
+
export declare const ContractWriteMethods: ({ onChange, contract, }: {
|
|
3
|
+
onChange: () => void;
|
|
4
|
+
contract: {
|
|
5
|
+
address: Address;
|
|
6
|
+
abi: Abi;
|
|
7
|
+
};
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
//# sourceMappingURL=ContractWriteMethods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractWriteMethods.d.ts","sourceRoot":"","sources":["../../../src/components/ContractWriteMethods.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAe,OAAO,EAAE,MAAM,SAAS,CAAC;AAIpD,eAAO,MAAM,oBAAoB,GAAI,yBAGlC;IACD,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,QAAQ,EAAE;QACR,OAAO,EAAE,OAAO,CAAC;QACjB,GAAG,EAAE,GAAG,CAAC;KACV,CAAC;CACH,mDAoCA,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Abi, AbiFunction, Address } from "viem";
|
|
2
|
+
type DisplayVariableProps = {
|
|
3
|
+
contractAddress: Address;
|
|
4
|
+
abiFunction: AbiFunction;
|
|
5
|
+
refreshDisplayVariables: boolean;
|
|
6
|
+
inheritedFrom?: string;
|
|
7
|
+
abi: Abi;
|
|
8
|
+
};
|
|
9
|
+
export declare const DisplayVariable: ({ contractAddress, abiFunction, refreshDisplayVariables, abi, inheritedFrom, }: DisplayVariableProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=DisplayVariable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisplayVariable.d.ts","sourceRoot":"","sources":["../../../src/components/DisplayVariable.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAWjD,KAAK,oBAAoB,GAAG;IAC1B,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,uBAAuB,EAAE,OAAO,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,gFAM7B,oBAAoB,4CA6DtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"InheritanceTooltip.d.ts","sourceRoot":"","sources":["../../../src/components/InheritanceTooltip.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,GAAI,mBAAmB;IAAE,aAAa,CAAC,EAAE,MAAM,CAAA;CAAE,4CAe/E,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Abi, AbiFunction } from "abitype";
|
|
2
|
+
import { Address } from "viem";
|
|
3
|
+
type ReadOnlyFunctionFormProps = {
|
|
4
|
+
contractAddress: Address;
|
|
5
|
+
abiFunction: AbiFunction;
|
|
6
|
+
inheritedFrom?: string;
|
|
7
|
+
abi: Abi;
|
|
8
|
+
};
|
|
9
|
+
export declare const ReadOnlyFunctionForm: ({ contractAddress, abiFunction, inheritedFrom, abi, }: ReadOnlyFunctionFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=ReadOnlyFunctionForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadOnlyFunctionForm.d.ts","sourceRoot":"","sources":["../../../src/components/ReadOnlyFunctionForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAgB/B,KAAK,yBAAyB,GAAG;IAC/B,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,WAAW,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,uDAKlC,yBAAyB,4CAuE3B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
export type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
3
|
+
export type TooltipProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
content: ReactNode;
|
|
6
|
+
position?: TooltipPosition;
|
|
7
|
+
show?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
contentClassName?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const Tooltip: React.FC<TooltipProps>;
|
|
12
|
+
//# sourceMappingURL=Tooltip.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.d.ts","sourceRoot":"","sources":["../../../src/components/Tooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;AAElE,MAAM,MAAM,YAAY,GAAG;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,EAAE,SAAS,CAAC;IACnB,QAAQ,CAAC,EAAE,eAAe,CAAC;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AAgCF,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CA0B1C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { AbiParameterTuple } from "../utils/contracts";
|
|
3
|
+
type TupleProps = {
|
|
4
|
+
abiTupleParameter: AbiParameterTuple;
|
|
5
|
+
setParentForm: Dispatch<SetStateAction<Record<string, any>>>;
|
|
6
|
+
parentStateObjectKey: string;
|
|
7
|
+
parentForm: Record<string, any> | undefined;
|
|
8
|
+
};
|
|
9
|
+
export declare const Tuple: ({ abiTupleParameter, setParentForm, parentStateObjectKey }: TupleProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
11
|
+
//# sourceMappingURL=Tuple.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tuple.d.ts","sourceRoot":"","sources":["../../../src/components/Tuple.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAiD,MAAM,oBAAoB,CAAC;AAGtG,KAAK,UAAU,GAAG;IAChB,iBAAiB,EAAE,iBAAiB,CAAC;IACrC,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC7D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,4DAA4D,UAAU,4CA+B3F,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { AbiParameterTuple } from "../utils/contracts";
|
|
3
|
+
type TupleArrayProps = {
|
|
4
|
+
abiTupleParameter: AbiParameterTuple & {
|
|
5
|
+
isVirtual?: true;
|
|
6
|
+
};
|
|
7
|
+
setParentForm: Dispatch<SetStateAction<Record<string, any>>>;
|
|
8
|
+
parentStateObjectKey: string;
|
|
9
|
+
parentForm: Record<string, any> | undefined;
|
|
10
|
+
};
|
|
11
|
+
export declare const TupleArray: ({ abiTupleParameter, setParentForm, parentStateObjectKey }: TupleArrayProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=TupleArray.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TupleArray.d.ts","sourceRoot":"","sources":["../../../src/components/TupleArray.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAGtE,OAAO,EAAE,iBAAiB,EAAsD,MAAM,oBAAoB,CAAC;AAG3G,KAAK,eAAe,GAAG;IACrB,iBAAiB,EAAE,iBAAiB,GAAG;QAAE,SAAS,CAAC,EAAE,IAAI,CAAA;KAAE,CAAC;IAC5D,aAAa,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;IAC7D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,4DAA4D,eAAe,4CAwIrG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TxReceipt.d.ts","sourceRoot":"","sources":["../../../src/components/TxReceipt.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAC;AAK1C,eAAO,MAAM,SAAS,GAAI,cAAc;IAAE,QAAQ,EAAE,kBAAkB,CAAA;CAAE,4CAyDvE,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Abi, AbiFunction } from "abitype";
|
|
2
|
+
import { Address } from "viem";
|
|
3
|
+
type WriteOnlyFunctionFormProps = {
|
|
4
|
+
abi: Abi;
|
|
5
|
+
abiFunction: AbiFunction;
|
|
6
|
+
onChange: () => void;
|
|
7
|
+
contractAddress: Address;
|
|
8
|
+
inheritedFrom?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const WriteOnlyFunctionForm: ({ abi, abiFunction, onChange, contractAddress, inheritedFrom, }: WriteOnlyFunctionFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=WriteOnlyFunctionForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WriteOnlyFunctionForm.d.ts","sourceRoot":"","sources":["../../../src/components/WriteOnlyFunctionForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAsB,MAAM,MAAM,CAAC;AAiBnD,KAAK,0BAA0B,GAAG;IAChC,GAAG,EAAE,GAAG,CAAC;IACT,WAAW,EAAE,WAAW,CAAC;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,iEAMnC,0BAA0B,4CA+G5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Bytes32Input.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/Bytes32Input.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,eAAO,MAAM,YAAY,GAAI,kDAAkD,gBAAgB,4CA0B9F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BytesInput.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/BytesInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD,eAAO,MAAM,UAAU,GAAI,kDAAkD,gBAAgB,4CAuB5F,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export type DecimalMultiplierButtonsProps = {
|
|
2
|
+
value: string;
|
|
3
|
+
onChange: (value: string) => void;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const DecimalMultiplierButtons: ({ value, onChange, disabled }: DecimalMultiplierButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=DecimalMultiplierButtons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DecimalMultiplierButtons.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/DecimalMultiplierButtons.tsx"],"names":[],"mappings":"AAmCA,MAAM,MAAM,6BAA6B,GAAG;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,+BAAuC,6BAA6B,4CAuD5G,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CommonInputProps, IntegerVariant } from "../../utils/inputs";
|
|
2
|
+
type IntegerInputProps = CommonInputProps<string> & {
|
|
3
|
+
variant?: IntegerVariant;
|
|
4
|
+
};
|
|
5
|
+
export declare const IntegerInput: ({ value, onChange, name, placeholder, disabled, variant, }: IntegerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=IntegerInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IntegerInput.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/IntegerInput.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAkB,MAAM,oBAAoB,CAAC;AAItF,KAAK,iBAAiB,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG;IAClD,OAAO,CAAC,EAAE,cAAc,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,4DAO1B,iBAAiB,4CA8BnB,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Bytes32Input } from "./Bytes32Input";
|
|
2
|
+
export { BytesInput } from "./BytesInput";
|
|
3
|
+
export { DecimalMultiplierButtons, type DecimalMultiplierButtonsProps } from "./DecimalMultiplierButtons";
|
|
4
|
+
export { IntegerInput } from "./IntegerInput";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/inputs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,wBAAwB,EAAE,KAAK,6BAA6B,EAAE,MAAM,4BAA4B,CAAC;AAC1G,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { Chain } from "viem";
|
|
3
|
+
export type ContractConfig = {
|
|
4
|
+
blockExplorerAddressLink?: string;
|
|
5
|
+
chain: Chain;
|
|
6
|
+
chainId: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const ContractConfigProvider: ({ children, config }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
config: ContractConfig;
|
|
11
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const useContractConfig: () => ContractConfig;
|
|
13
|
+
//# sourceMappingURL=ContractConfigContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContractConfigContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/ContractConfigContext.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,MAAM,MAAM,cAAc,GAAG;IAC3B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,KAAK,EAAE,KAAK,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAIF,eAAO,MAAM,sBAAsB,GAAI,sBAAsB;IAAE,QAAQ,EAAE,SAAS,CAAC;IAAC,MAAM,EAAE,cAAc,CAAA;CAAE,4CAE3G,CAAC;AAEF,eAAO,MAAM,iBAAiB,sBAM7B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useAnimationConfig.d.ts","sourceRoot":"","sources":["../../../src/hooks/useAnimationConfig.ts"],"names":[],"mappings":"AAIA,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC;;EAe5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useCopyToClipboard.d.ts","sourceRoot":"","sources":["../../../src/hooks/useCopyToClipboard.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;4BAGQ,MAAM;;CAa5C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Hash, TransactionReceipt, WalletClient } from "viem";
|
|
2
|
+
import { Config } from "wagmi";
|
|
3
|
+
import { SendTransactionMutate } from "wagmi/query";
|
|
4
|
+
type TransactorFuncOptions = {
|
|
5
|
+
onBlockConfirmation?: (txnReceipt: TransactionReceipt) => void;
|
|
6
|
+
blockConfirmations?: number;
|
|
7
|
+
};
|
|
8
|
+
type TransactionFunc = (tx: (() => Promise<Hash>) | Parameters<SendTransactionMutate<Config, undefined>>[0], options?: TransactorFuncOptions) => Promise<Hash | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* Runs Transaction passed in to returned function showing UI feedback.
|
|
11
|
+
* @param _walletClient - Optional wallet client to use. If not provided, will use the one from useWalletClient.
|
|
12
|
+
* @returns function that takes in transaction function as callback, shows UI feedback for transaction and returns a promise of the transaction hash
|
|
13
|
+
*/
|
|
14
|
+
export declare const useTransactor: (_walletClient?: WalletClient) => TransactionFunc;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=useTransactor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTransactor.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTransactor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAA6B,kBAAkB,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACzF,OAAO,EAAE,MAAM,EAA8B,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAKpD,KAAK,qBAAqB,GAAG;IAC3B,mBAAmB,CAAC,EAAE,CAAC,UAAU,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/D,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF,KAAK,eAAe,GAAG,CACrB,EAAE,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,UAAU,CAAC,qBAAqB,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,EACnF,OAAO,CAAC,EAAE,qBAAqB,KAC5B,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;AAuB/B;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,gBAAgB,YAAY,KAAG,eA2F5D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { Contract, type ContractProps } from "./Contract";
|
|
2
|
+
export { useContractConfig, ContractConfigProvider, type ContractConfig } from "./contexts/ContractConfigContext";
|
|
3
|
+
export { Bytes32Input, BytesInput, DecimalMultiplierButtons, IntegerInput, type DecimalMultiplierButtonsProps, } from "./components/inputs/index";
|
|
4
|
+
export { IntegerVariant } from "./utils/inputs";
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,KAAK,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClH,OAAO,EACL,YAAY,EACZ,UAAU,EACV,wBAAwB,EACxB,YAAY,EACZ,KAAK,6BAA6B,GACnC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Abi, Address } from "viem";
|
|
2
|
+
export type InheritedFunctions = {
|
|
3
|
+
readonly [key: string]: string;
|
|
4
|
+
};
|
|
5
|
+
export type GenericContract = {
|
|
6
|
+
address: Address;
|
|
7
|
+
abi: Abi;
|
|
8
|
+
inheritedFunctions?: InheritedFunctions;
|
|
9
|
+
external?: true;
|
|
10
|
+
};
|
|
11
|
+
export type GenericContractsDeclaration = {
|
|
12
|
+
[chainId: number]: {
|
|
13
|
+
[contractName: string]: GenericContract;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAEpC,MAAM,MAAM,kBAAkB,GAAG;IAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,eAAe,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,GAAG,CAAC;IACT,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IACxC,QAAQ,CAAC,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,CAAC,OAAO,EAAE,MAAM,GAAG;QACjB,CAAC,YAAY,EAAE,MAAM,GAAG,eAAe,CAAC;KACzC,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/common.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,eAAe,GAAG,MAAM,CAClC,MAAM,EACN;IACE,KAAK,EAAE,MAAM,CAAC;CACf,CACF,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,eAwCjC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Abi, AbiFunction, AbiParameter } from "abitype";
|
|
2
|
+
import { Config } from "wagmi";
|
|
3
|
+
import { WriteContractVariables } from "wagmi/query";
|
|
4
|
+
export type AbiParameterTuple = Extract<AbiParameter, {
|
|
5
|
+
type: "tuple" | `tuple[${string}]`;
|
|
6
|
+
}>;
|
|
7
|
+
/**
|
|
8
|
+
* Generates a key based on function metadata
|
|
9
|
+
*/
|
|
10
|
+
declare const getFunctionInputKey: (functionName: string, input: AbiParameter, inputIndex: number) => string;
|
|
11
|
+
/**
|
|
12
|
+
* parses form input with array support
|
|
13
|
+
*/
|
|
14
|
+
declare const getParsedContractFunctionArgs: (form: Record<string, any>) => any[];
|
|
15
|
+
declare const getInitialFormState: (abiFunction: AbiFunction) => Record<string, any>;
|
|
16
|
+
declare const getInitialTupleFormState: (abiTupleParameter: AbiParameterTuple) => Record<string, any>;
|
|
17
|
+
declare const getInitialTupleArrayFormState: (abiTupleParameter: AbiParameterTuple) => Record<string, any>;
|
|
18
|
+
declare const transformAbiFunction: (abiFunction: AbiFunction) => AbiFunction;
|
|
19
|
+
/**
|
|
20
|
+
* For Hedera chains: replaces top-level `address` form fields that look like `0.0.n`
|
|
21
|
+
* with the checksummed EVM alias so ABI encoding / simulate / read succeed.
|
|
22
|
+
*/
|
|
23
|
+
export declare function resolveHederaNativeAccountIdsInForm(form: Record<string, any>, abiFunction: AbiFunction, chainId: number): Promise<Record<string, any>>;
|
|
24
|
+
export { getFunctionInputKey, getInitialFormState, getParsedContractFunctionArgs, getInitialTupleFormState, getInitialTupleArrayFormState, transformAbiFunction, };
|
|
25
|
+
export declare const simulateContractWriteAndNotifyError: ({ wagmiConfig, writeContractParams: params, }: {
|
|
26
|
+
wagmiConfig: Config;
|
|
27
|
+
writeContractParams: WriteContractVariables<Abi, string, any[], Config, number>;
|
|
28
|
+
}) => Promise<void>;
|
|
29
|
+
//# sourceMappingURL=contracts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../../src/utils/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzD,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AAIrD,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,YAAY,EAAE;IAAE,IAAI,EAAE,OAAO,GAAG,SAAS,MAAM,GAAG,CAAA;CAAE,CAAC,CAAC;AAE9F;;GAEG;AACH,QAAA,MAAM,mBAAmB,GAAI,cAAc,MAAM,EAAE,OAAO,YAAY,EAAE,YAAY,MAAM,KAAG,MAG5F,CAAC;AA2DF;;GAEG;AACH,QAAA,MAAM,6BAA6B,GAAI,MAAM,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,UAO/D,CAAC;AAEF,QAAA,MAAM,mBAAmB,GAAI,aAAa,WAAW,wBAQpD,CAAC;AAEF,QAAA,MAAM,wBAAwB,GAAI,mBAAmB,iBAAiB,wBASrE,CAAC;AAEF,QAAA,MAAM,6BAA6B,GAAI,mBAAmB,iBAAiB,wBAQ1E,CAAC;AA0CF,QAAA,MAAM,oBAAoB,GAAI,aAAa,WAAW,KAAG,WAKxD,CAAC;AAIF;;;GAGG;AACH,wBAAsB,mCAAmC,CACvD,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACzB,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAwB9B;AAED,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,oBAAoB,GACrB,CAAC;AAEF,eAAO,MAAM,mCAAmC,GAAU,+CAGvD;IACD,WAAW,EAAE,MAAM,CAAC;IACpB,mBAAmB,EAAE,sBAAsB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;CACjF,kBAQA,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getParsedError.d.ts","sourceRoot":"","sources":["../../../src/utils/getParsedError.tsx"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAI,OAAO,GAAG,KAAG,MA2B3C,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export type CommonInputProps<T = string> = {
|
|
2
|
+
value: T;
|
|
3
|
+
onChange: (newValue: T) => void;
|
|
4
|
+
name?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare enum IntegerVariant {
|
|
9
|
+
UINT8 = "uint8",
|
|
10
|
+
UINT16 = "uint16",
|
|
11
|
+
UINT24 = "uint24",
|
|
12
|
+
UINT32 = "uint32",
|
|
13
|
+
UINT40 = "uint40",
|
|
14
|
+
UINT48 = "uint48",
|
|
15
|
+
UINT56 = "uint56",
|
|
16
|
+
UINT64 = "uint64",
|
|
17
|
+
UINT72 = "uint72",
|
|
18
|
+
UINT80 = "uint80",
|
|
19
|
+
UINT88 = "uint88",
|
|
20
|
+
UINT96 = "uint96",
|
|
21
|
+
UINT104 = "uint104",
|
|
22
|
+
UINT112 = "uint112",
|
|
23
|
+
UINT120 = "uint120",
|
|
24
|
+
UINT128 = "uint128",
|
|
25
|
+
UINT136 = "uint136",
|
|
26
|
+
UINT144 = "uint144",
|
|
27
|
+
UINT152 = "uint152",
|
|
28
|
+
UINT160 = "uint160",
|
|
29
|
+
UINT168 = "uint168",
|
|
30
|
+
UINT176 = "uint176",
|
|
31
|
+
UINT184 = "uint184",
|
|
32
|
+
UINT192 = "uint192",
|
|
33
|
+
UINT200 = "uint200",
|
|
34
|
+
UINT208 = "uint208",
|
|
35
|
+
UINT216 = "uint216",
|
|
36
|
+
UINT224 = "uint224",
|
|
37
|
+
UINT232 = "uint232",
|
|
38
|
+
UINT240 = "uint240",
|
|
39
|
+
UINT248 = "uint248",
|
|
40
|
+
UINT256 = "uint256",
|
|
41
|
+
INT8 = "int8",
|
|
42
|
+
INT16 = "int16",
|
|
43
|
+
INT24 = "int24",
|
|
44
|
+
INT32 = "int32",
|
|
45
|
+
INT40 = "int40",
|
|
46
|
+
INT48 = "int48",
|
|
47
|
+
INT56 = "int56",
|
|
48
|
+
INT64 = "int64",
|
|
49
|
+
INT72 = "int72",
|
|
50
|
+
INT80 = "int80",
|
|
51
|
+
INT88 = "int88",
|
|
52
|
+
INT96 = "int96",
|
|
53
|
+
INT104 = "int104",
|
|
54
|
+
INT112 = "int112",
|
|
55
|
+
INT120 = "int120",
|
|
56
|
+
INT128 = "int128",
|
|
57
|
+
INT136 = "int136",
|
|
58
|
+
INT144 = "int144",
|
|
59
|
+
INT152 = "int152",
|
|
60
|
+
INT160 = "int160",
|
|
61
|
+
INT168 = "int168",
|
|
62
|
+
INT176 = "int176",
|
|
63
|
+
INT184 = "int184",
|
|
64
|
+
INT192 = "int192",
|
|
65
|
+
INT200 = "int200",
|
|
66
|
+
INT208 = "int208",
|
|
67
|
+
INT216 = "int216",
|
|
68
|
+
INT224 = "int224",
|
|
69
|
+
INT232 = "int232",
|
|
70
|
+
INT240 = "int240",
|
|
71
|
+
INT248 = "int248",
|
|
72
|
+
INT256 = "int256"
|
|
73
|
+
}
|
|
74
|
+
export declare const SIGNED_NUMBER_REGEX: RegExp;
|
|
75
|
+
export declare const UNSIGNED_NUMBER_REGEX: RegExp;
|
|
76
|
+
export declare const isValidInteger: (dataType: IntegerVariant, value: string) => boolean;
|
|
77
|
+
export declare const isENS: (address?: string) => boolean;
|
|
78
|
+
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/utils/inputs.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,MAAM,IAAI;IACzC,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,IAAI,CAAC;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,oBAAY,cAAc;IACxB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,mBAAmB,QAAkB,CAAC;AACnD,eAAO,MAAM,qBAAqB,QAAmB,CAAC;AAEtD,eAAO,MAAM,cAAc,GAAI,UAAU,cAAc,EAAE,OAAO,MAAM,YA4BrE,CAAC;AAIF,eAAO,MAAM,KAAK,GAAI,gBAAY,YAA2B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as chains from "viem/chains";
|
|
2
|
+
/**
|
|
3
|
+
* Gives the block explorer transaction URL, returns empty string if the network is a local chain
|
|
4
|
+
*/
|
|
5
|
+
export declare function getBlockExplorerTxLink(chainId: number, txnHash: string): string;
|
|
6
|
+
/**
|
|
7
|
+
* Gives the block explorer URL for a given address.
|
|
8
|
+
* Hedera chains use HashScan with `/account/`; EVM explorers use `/address/`.
|
|
9
|
+
* If no explorer is configured on the chain, falls back to HashScan (mainnet / testnet by id, else testnet).
|
|
10
|
+
*/
|
|
11
|
+
export declare function getBlockExplorerAddressLink(network: chains.Chain, address: string): string;
|
|
12
|
+
//# sourceMappingURL=networks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../../src/utils/networks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,UAoBtE;AAYD;;;;GAIG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,MAAM,UAYjF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ToastPosition } from "react-hot-toast";
|
|
3
|
+
type NotificationOptions = {
|
|
4
|
+
duration?: number;
|
|
5
|
+
icon?: string;
|
|
6
|
+
position?: ToastPosition;
|
|
7
|
+
};
|
|
8
|
+
export declare const notification: {
|
|
9
|
+
success: (content: React.ReactNode, options?: NotificationOptions) => string;
|
|
10
|
+
info: (content: React.ReactNode, options?: NotificationOptions) => string;
|
|
11
|
+
warning: (content: React.ReactNode, options?: NotificationOptions) => string;
|
|
12
|
+
error: (content: React.ReactNode, options?: NotificationOptions) => string;
|
|
13
|
+
loading: (content: React.ReactNode, options?: NotificationOptions) => string;
|
|
14
|
+
remove: (toastId: string) => void;
|
|
15
|
+
};
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/utils/notification.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,aAAa,EAAS,MAAM,iBAAiB,CAAC;AAiB9D,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,aAAa,CAAC;CAC1B,CAAC;AAsDF,eAAO,MAAM,YAAY;uBACJ,KAAK,CAAC,SAAS,YAAY,mBAAmB;oBAGjD,KAAK,CAAC,SAAS,YAAY,mBAAmB;uBAG3C,KAAK,CAAC,SAAS,YAAY,mBAAmB;qBAGhD,KAAK,CAAC,SAAS,YAAY,mBAAmB;uBAG5C,KAAK,CAAC,SAAS,YAAY,mBAAmB;sBAG/C,MAAM;CAGzB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { TransactionBase, TransactionReceipt } from "viem";
|
|
3
|
+
export declare const replacer: (_key: string, value: unknown) => unknown;
|
|
4
|
+
type DisplayContent = string | number | bigint | Record<string, any> | TransactionBase | TransactionReceipt | undefined | unknown;
|
|
5
|
+
type ResultFontSize = "sm" | "base" | "xs" | "lg" | "xl" | "2xl" | "3xl";
|
|
6
|
+
export declare const displayTxResult: (displayContent: DisplayContent | DisplayContent[], fontSize?: ResultFontSize) => string | ReactElement | number;
|
|
7
|
+
export declare const ObjectFieldDisplay: ({ name, value, size, leftPad, }: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: DisplayContent;
|
|
10
|
+
size: ResultFontSize;
|
|
11
|
+
leftPad?: boolean;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=utilsDisplay.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilsDisplay.d.ts","sourceRoot":"","sources":["../../../src/utils/utilsDisplay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAY,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAA8C,MAAM,MAAM,CAAC;AAOvG,eAAO,MAAM,QAAQ,GAAI,MAAM,MAAM,EAAE,OAAO,OAAO,YAA2D,CAAC;AAEjH,KAAK,cAAc,GACf,MAAM,GACN,MAAM,GACN,MAAM,GACN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GACnB,eAAe,GACf,kBAAkB,GAClB,SAAS,GACT,OAAO,CAAC;AAEZ,KAAK,cAAc,GAAG,IAAI,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,CAAC;AAczE,eAAO,MAAM,eAAe,GAC1B,gBAAgB,cAAc,GAAG,cAAc,EAAE,EACjD,WAAU,cAAuB,KAChC,MAAM,GAAG,YAAY,GAAG,MA6C1B,CAAC;AAgEF,eAAO,MAAM,kBAAkB,GAAI,iCAKhC;IACD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,cAAc,CAAC;IACtB,IAAI,EAAE,cAAc,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,4CAOA,CAAC"}
|