Class IDualMining__factory

Hierarchy

  • IDualMining__factory

Constructors

Properties

Methods

Constructors

Properties

abi: readonly [{
    inputs: readonly [];
    name: "DualMining__AlreadyInitialized";
    type: "error";
}, {
    inputs: readonly [];
    name: "DualMining__MiningEnded";
    type: "error";
}, {
    inputs: readonly [];
    name: "DualMining__NoMiningRewards";
    type: "error";
}, {
    inputs: readonly [];
    name: "DualMining__NoShareSupply";
    type: "error";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "caller";
        type: "address";
    }];
    name: "DualMining__NotAuthorized";
    type: "error";
}, {
    inputs: readonly [];
    name: "DualMining__NotInitialized";
    type: "error";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "user";
        type: "address";
    }, {
        indexed: false;
        internalType: "UD60x18";
        name: "rewardAmount";
        type: "uint256";
    }];
    name: "Claim";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "caller";
        type: "address";
    }, {
        indexed: false;
        internalType: "UD60x18";
        name: "initialParentAccRewardsPerShare";
        type: "uint256";
    }, {
        indexed: false;
        internalType: "uint256";
        name: "timestamp";
        type: "uint256";
    }];
    name: "Initialized";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: false;
        internalType: "UD60x18";
        name: "finalParentAccRewardsPerShare";
        type: "uint256";
    }];
    name: "MiningEnded";
    type: "event";
}, {
    inputs: readonly [{
        internalType: "UD60x18";
        name: "amount";
        type: "uint256";
    }];
    name: "addRewards";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "user";
        type: "address";
    }];
    name: "claim";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "user";
        type: "address";
    }];
    name: "getPendingUserRewards";
    outputs: readonly [{
        internalType: "UD60x18";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "getRewardsAvailable";
    outputs: readonly [{
        internalType: "UD60x18";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "user";
        type: "address";
    }];
    name: "getUserInfo";
    outputs: readonly [{
        components: readonly [{
            internalType: "uint256";
            name: "lastUpdateTimestamp";
            type: "uint256";
        }, {
            internalType: "UD60x18";
            name: "lastParentAccTotalRewards";
            type: "uint256";
        }, {
            internalType: "UD60x18";
            name: "lastAccTotalRewards";
            type: "uint256";
        }, {
            internalType: "UD60x18";
            name: "reward";
            type: "uint256";
        }];
        internalType: "struct IDualMining.UserInfo";
        name: "";
        type: "tuple";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "UD60x18";
        name: "initialParentAccRewardsPerShare";
        type: "uint256";
    }];
    name: "init";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "UD60x18";
        name: "poolRewards";
        type: "uint256";
    }, {
        internalType: "UD60x18";
        name: "accRewardsPerShare";
        type: "uint256";
    }];
    name: "updatePool";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "user";
        type: "address";
    }, {
        internalType: "UD60x18";
        name: "oldShares";
        type: "uint256";
    }, {
        internalType: "UD60x18";
        name: "oldRewardDebt";
        type: "uint256";
    }, {
        internalType: "UD60x18";
        name: "poolRewards";
        type: "uint256";
    }, {
        internalType: "UD60x18";
        name: "userRewards";
        type: "uint256";
    }, {
        internalType: "UD60x18";
        name: "accRewardsPerShare";
        type: "uint256";
    }];
    name: "updateUser";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}]

Methods

  • Parameters

    • address: string
    • Optional runner: null | ContractRunner

    Returns IDualMining

  • Returns IDualMiningInterface

Generated using TypeDoc