Class BonderPreferenceEventFetcher

Hierarchy

Constructors

  • Parameters

    • Optional provider: Provider
    • Optional chainId: BigNumberish
    • Optional batchBlocks: number
    • Optional address: string

    Returns BonderPreferenceEventFetcher

Properties

abi: readonly [{
    inputs: readonly [{
        internalType: "contract IERC20";
        name: "_hopToken";
        type: "address";
    }, {
        internalType: "uint256";
        name: "_challengePeriod";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "_appealPeriod";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "_minChallengeIncrease";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "_fullAppeal";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "_minHopStake";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "_windowSize";
        type: "uint256";
    }];
    stateMutability: "nonpayable";
    type: "constructor";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "challenger";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "acceptSlash";
    outputs: readonly [];
    stateMutability: "payable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "address";
        name: "challenger";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "addToAppeal";
    outputs: readonly [];
    stateMutability: "payable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "address";
        name: "challenger";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "addToChallenge";
    outputs: readonly [];
    stateMutability: "payable";
    type: "function";
}, {
    inputs: readonly [];
    name: "appealPeriod";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "challengePeriod";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "createChallenge";
    outputs: readonly [{
        internalType: "bytes32";
        name: "";
        type: "bytes32";
    }];
    stateMutability: "payable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "challengeId";
        type: "bytes32";
    }, {
        internalType: "bool";
        name: "challengeWon";
        type: "bool";
    }];
    name: "forceSettleChallenge";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [];
    name: "fullAppeal";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "address";
        name: "challenger";
        type: "address";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "getChallengeId";
    outputs: readonly [{
        internalType: "bytes32";
        name: "";
        type: "bytes32";
    }];
    stateMutability: "pure";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }];
    name: "getStakedBalance";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }];
    name: "getWithdrawableBalance";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "hopToken";
    outputs: readonly [{
        internalType: "contract IERC20";
        name: "";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }];
    name: "isStaked";
    outputs: readonly [{
        internalType: "bool";
        name: "";
        type: "bool";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "minChallengeIncrease";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "minHopStake";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "address";
        name: "challenger";
        type: "address";
    }, {
        internalType: "uint256";
        name: "penalty";
        type: "uint256";
    }, {
        internalType: "bytes";
        name: "slashingData";
        type: "bytes";
    }];
    name: "optimisticallySettleChallenge";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [];
    name: "owner";
    outputs: readonly [{
        internalType: "address";
        name: "";
        type: "address";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [];
    name: "renounceOwnership";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "bytes32";
        name: "pathId";
        type: "bytes32";
    }, {
        internalType: "uint256";
        name: "feeTier";
        type: "uint256";
    }, {
        internalType: "uint256";
        name: "liquidity";
        type: "uint256";
    }];
    name: "signalPreference";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }, {
        internalType: "uint256";
        name: "amount";
        type: "uint256";
    }];
    name: "stakeHop";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "newOwner";
        type: "address";
    }];
    name: "transferOwnership";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "uint256";
        name: "amount";
        type: "uint256";
    }];
    name: "unstakeHop";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [];
    name: "windowSize";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "staker";
        type: "address";
    }];
    name: "withdrawStake";
    outputs: readonly [];
    stateMutability: "nonpayable";
    type: "function";
}, {
    inputs: readonly [{
        internalType: "address";
        name: "";
        type: "address";
    }];
    name: "withdrawableEth";
    outputs: readonly [{
        internalType: "uint256";
        name: "";
        type: "uint256";
    }];
    stateMutability: "view";
    type: "function";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "bonder";
        type: "address";
    }, {
        indexed: true;
        internalType: "bytes32";
        name: "pathId";
        type: "bytes32";
    }, {
        indexed: true;
        internalType: "uint256";
        name: "feeTier";
        type: "uint256";
    }, {
        indexed: false;
        internalType: "uint256";
        name: "liquidity";
        type: "uint256";
    }];
    name: "BonderPreference";
    type: "event";
}, {
    anonymous: false;
    inputs: readonly [{
        indexed: true;
        internalType: "address";
        name: "previousOwner";
        type: "address";
    }, {
        indexed: true;
        internalType: "address";
        name: "newOwner";
        type: "address";
    }];
    name: "OwnershipTransferred";
    type: "event";
}] = StakingRegistry__factory.abi
address: string
batchBlocks: number
chainId: BigNumberish
eventName: string = 'BonderPreference'
factory: typeof StakingRegistry__factory = StakingRegistry__factory
provider: Provider

Methods

  • Parameters

    • event: EthersEventWithDecodedTypesAndBaseContext<BonderPreference>
    • Optional fetchTxData: boolean

    Returns Promise<EthersEventWithDecodedTypesAndContext<BonderPreference>>

  • Parameters

    • ethersEvent: Event

    Returns EthersEventWithDecodedTypesAndBaseContext<BonderPreference>

  • Parameters

    • receipt: TransactionReceipt

    Returns EthersEventWithDecodedTypes<BonderPreference>[]

  • Parameters

    Returns BaseEventContext

  • Parameters

    • bonder: string

    Returns EventFilter

  • Parameters

    • chainId: BigNumberish

    Returns string

  • Returns Contract

  • Parameters

    • topic0: string

    Returns null | string

  • Parameters

    • fromBlock: number
    • Optional toBlock: number
    • Optional fetchTxData: boolean

    Returns Promise<EthersEventWithDecodedTypesAndContext<BonderPreference>[]>

  • Parameters

    • fromBlock: number
    • Optional toBlock: number

    Returns AsyncGenerator<EthersEventWithDecodedTypesAndContext<BonderPreference>[], any, unknown>

  • Parameters

    • filter: Filter
    • fromBlock: number
    • Optional toBlock: number
    • Optional options: GetEventsOptions

    Returns Promise<EthersEventWithDecodedTypesAndContext<BonderPreference>[]>

  • Parameters

    • filter: Filter
    • fromBlock: number
    • Optional toBlock: number

    Returns AsyncGenerator<EthersEventWithDecodedTypesAndContext<BonderPreference>[], any, unknown>

  • Parameters

    • feeTier: BigNumber

    Returns EventFilter

  • Returns EventFilter

  • Parameters

    Returns EventFilter

  • Parameters

    • pathId: string

    Returns EventFilter

  • Parameters

    Returns Promise<EventContext>

  • Returns string

  • Parameters

    • ethersEvent: Event

    Returns any

  • Parameters

    • inputEvents: Event[]
    • Optional fetchTxData: boolean

    Returns Promise<EthersEventWithDecodedTypesAndContext<BonderPreference>[]>