/* Autogenerated file. Do not edit manually. */
/* tslint:disable */
/* eslint-disable */
import { Contract, utils } from "ethers";
const _abi = [
    {
        type: "constructor",
        inputs: [
            {
                name: "_donationBox",
                type: "address",
                internalType: "address",
            },
            {
                name: "_signer",
                type: "address",
                internalType: "address",
            },
            {
                name: "_spokePool",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "accountsActivated",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "",
                type: "bool",
                internalType: "bool",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "addSupportedToken",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "coreIndex",
                type: "uint32",
                internalType: "uint32",
            },
            {
                name: "canBeUsedForAccountActivation",
                type: "bool",
                internalType: "bool",
            },
            {
                name: "accountActivationFeeCore",
                type: "uint64",
                internalType: "uint64",
            },
            {
                name: "bridgeSafetyBufferCore",
                type: "uint64",
                internalType: "uint64",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "depositToHypercore",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "donationBox",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "contract DonationBox",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "eip712Domain",
        inputs: [],
        outputs: [
            {
                name: "fields",
                type: "bytes1",
                internalType: "bytes1",
            },
            {
                name: "name",
                type: "string",
                internalType: "string",
            },
            {
                name: "version",
                type: "string",
                internalType: "string",
            },
            {
                name: "chainId",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "verifyingContract",
                type: "address",
                internalType: "address",
            },
            {
                name: "salt",
                type: "bytes32",
                internalType: "bytes32",
            },
            {
                name: "extensions",
                type: "uint256[]",
                internalType: "uint256[]",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "handleV3AcrossMessage",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "",
                type: "address",
                internalType: "address",
            },
            {
                name: "message",
                type: "bytes",
                internalType: "bytes",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "owner",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "renounceOwnership",
        inputs: [],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setSigner",
        inputs: [
            {
                name: "_signer",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "setSpokePool",
        inputs: [
            {
                name: "_spokePool",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "signer",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "spokePool",
        inputs: [],
        outputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "supportedTokens",
        inputs: [
            {
                name: "",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [
            {
                name: "tokenInfo",
                type: "tuple",
                internalType: "struct HyperCoreLib.TokenInfo",
                components: [
                    {
                        name: "name",
                        type: "string",
                        internalType: "string",
                    },
                    {
                        name: "spots",
                        type: "uint64[]",
                        internalType: "uint64[]",
                    },
                    {
                        name: "deployerTradingFeeShare",
                        type: "uint64",
                        internalType: "uint64",
                    },
                    {
                        name: "deployer",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "evmContract",
                        type: "address",
                        internalType: "address",
                    },
                    {
                        name: "szDecimals",
                        type: "uint8",
                        internalType: "uint8",
                    },
                    {
                        name: "weiDecimals",
                        type: "uint8",
                        internalType: "uint8",
                    },
                    {
                        name: "evmExtraWeiDecimals",
                        type: "int8",
                        internalType: "int8",
                    },
                ],
            },
            {
                name: "coreIndex",
                type: "uint64",
                internalType: "uint64",
            },
            {
                name: "canBeUsedForAccountActivation",
                type: "bool",
                internalType: "bool",
            },
            {
                name: "accountActivationFeeEVM",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "accountActivationFeeCore",
                type: "uint64",
                internalType: "uint64",
            },
            {
                name: "bridgeSafetyBufferCore",
                type: "uint64",
                internalType: "uint64",
            },
        ],
        stateMutability: "view",
    },
    {
        type: "function",
        name: "sweepCoreFundsToUser",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "coreAmount",
                type: "uint64",
                internalType: "uint64",
            },
            {
                name: "user",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "sweepDonationBoxFundsToUser",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "amount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "user",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "sweepERC20ToUser",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
            {
                name: "evmAmount",
                type: "uint256",
                internalType: "uint256",
            },
            {
                name: "user",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "function",
        name: "transferOwnership",
        inputs: [
            {
                name: "newOwner",
                type: "address",
                internalType: "address",
            },
        ],
        outputs: [],
        stateMutability: "nonpayable",
    },
    {
        type: "event",
        name: "AddedSupportedToken",
        inputs: [
            {
                name: "evmAddress",
                type: "address",
                indexed: false,
                internalType: "address",
            },
            {
                name: "tokenId",
                type: "uint64",
                indexed: false,
                internalType: "uint64",
            },
            {
                name: "activationFeeEvm",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
            {
                name: "decimalDiff",
                type: "int8",
                indexed: false,
                internalType: "int8",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "DepositToHypercore",
        inputs: [
            {
                name: "user",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "userCoreAmount",
                type: "uint64",
                indexed: false,
                internalType: "uint64",
            },
            {
                name: "activationFeePaid",
                type: "uint64",
                indexed: false,
                internalType: "uint64",
            },
            {
                name: "activationFeeSponsored",
                type: "uint64",
                indexed: false,
                internalType: "uint64",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "EIP712DomainChanged",
        inputs: [],
        anonymous: false,
    },
    {
        type: "event",
        name: "FallbackToHyperEVM",
        inputs: [
            {
                name: "user",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "token",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "evmAmount",
                type: "uint256",
                indexed: false,
                internalType: "uint256",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "OwnershipTransferred",
        inputs: [
            {
                name: "previousOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
            {
                name: "newOwner",
                type: "address",
                indexed: true,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SignerSet",
        inputs: [
            {
                name: "signer",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "event",
        name: "SpokePoolSet",
        inputs: [
            {
                name: "spokePool",
                type: "address",
                indexed: false,
                internalType: "address",
            },
        ],
        anonymous: false,
    },
    {
        type: "error",
        name: "AccountAlreadyActivated",
        inputs: [],
    },
    {
        type: "error",
        name: "CannotActivateAccount",
        inputs: [],
    },
    {
        type: "error",
        name: "CoreUserExistsPrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "ECDSAInvalidSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "ECDSAInvalidSignatureLength",
        inputs: [
            {
                name: "length",
                type: "uint256",
                internalType: "uint256",
            },
        ],
    },
    {
        type: "error",
        name: "ECDSAInvalidSignatureS",
        inputs: [
            {
                name: "s",
                type: "bytes32",
                internalType: "bytes32",
            },
        ],
    },
    {
        type: "error",
        name: "InsufficientAmountForAccountActivation",
        inputs: [],
    },
    {
        type: "error",
        name: "InsufficientEvmAmountForActivation",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidShortString",
        inputs: [],
    },
    {
        type: "error",
        name: "InvalidSignature",
        inputs: [],
    },
    {
        type: "error",
        name: "NotSpokePool",
        inputs: [],
    },
    {
        type: "error",
        name: "OwnableInvalidOwner",
        inputs: [
            {
                name: "owner",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "OwnableUnauthorizedAccount",
        inputs: [
            {
                name: "account",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "ReentrancyGuardReentrantCall",
        inputs: [],
    },
    {
        type: "error",
        name: "SafeERC20FailedOperation",
        inputs: [
            {
                name: "token",
                type: "address",
                internalType: "address",
            },
        ],
    },
    {
        type: "error",
        name: "SpotBalancePrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "StringTooLong",
        inputs: [
            {
                name: "str",
                type: "string",
                internalType: "string",
            },
        ],
    },
    {
        type: "error",
        name: "TokenCannotBeUsedForAccountActivation",
        inputs: [],
    },
    {
        type: "error",
        name: "TokenInfoPrecompileCallFailed",
        inputs: [],
    },
    {
        type: "error",
        name: "TokenNotSupported",
        inputs: [],
    },
    {
        type: "error",
        name: "UnknownAccountActivationMode",
        inputs: [],
    },
];
export class HyperliquidDepositHandler__factory {
    static abi = _abi;
    static createInterface() {
        return new utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new Contract(address, _abi, signerOrProvider);
    }
}
//# sourceMappingURL=HyperliquidDepositHandler__factory.js.map