"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.DepositWithdrawalProxy__factory = void 0;
const ethers_1 = require("ethers");
const _abi = [
    {
        inputs: [
            {
                internalType: 'address',
                name: '_dolomiteMargin',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'constructor',
    },
    {
        payable: true,
        stateMutability: 'payable',
        type: 'fallback',
    },
    {
        constant: true,
        inputs: [],
        name: 'DOLOMITE_MARGIN',
        outputs: [
            {
                internalType: 'contract IDolomiteMargin',
                name: '',
                type: 'address',
            },
        ],
        payable: false,
        stateMutability: 'view',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_toAccountNumber',
                type: 'uint256',
            },
        ],
        name: 'depositETH',
        outputs: [],
        payable: true,
        stateMutability: 'payable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [],
        name: 'depositETHIntoDefaultAccount',
        outputs: [],
        payable: true,
        stateMutability: 'payable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_toAccountNumber',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountPar',
                type: 'uint256',
            },
        ],
        name: 'depositPar',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountPar',
                type: 'uint256',
            },
        ],
        name: 'depositParIntoDefaultAccount',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_toAccountNumber',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
        ],
        name: 'depositWei',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
        ],
        name: 'depositWeiIntoDefaultAccount',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'address payable',
                name: '_weth',
                type: 'address',
            },
        ],
        name: 'initializeETHMarket',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_fromAccountNumber',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawETH',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawETHFromDefaultAccount',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_fromAccountNumber',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountPar',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawPar',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountPar',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawParFromDefaultAccount',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_fromAccountNumber',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawWei',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
    {
        constant: false,
        inputs: [
            {
                internalType: 'uint256',
                name: '_marketId',
                type: 'uint256',
            },
            {
                internalType: 'uint256',
                name: '_amountWei',
                type: 'uint256',
            },
            {
                internalType: 'enum AccountBalanceHelper.BalanceCheckFlag',
                name: '_balanceCheckFlag',
                type: 'uint8',
            },
        ],
        name: 'withdrawWeiFromDefaultAccount',
        outputs: [],
        payable: false,
        stateMutability: 'nonpayable',
        type: 'function',
    },
];
class DepositWithdrawalProxy__factory {
    static createInterface() {
        return new ethers_1.utils.Interface(_abi);
    }
    static connect(address, signerOrProvider) {
        return new ethers_1.Contract(address, _abi, signerOrProvider);
    }
}
exports.DepositWithdrawalProxy__factory = DepositWithdrawalProxy__factory;
DepositWithdrawalProxy__factory.abi = _abi;
//# sourceMappingURL=DepositWithdrawalProxy__factory.js.map