Function useReviewableRequests

  • Parameters

    • contractAddress: string
    • provider: Provider

    Returns {
        acceptRequest: ((requestId: string) => Promise<TransactionResponse>);
        createRequest: ((executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string) => Promise<TransactionResponse>);
        dropRequest: ((requestId: BigNumberish) => Promise<TransactionResponse>);
        rejectRequest: ((requestId: BigNumberish, reason: string) => Promise<TransactionResponse>);
        updateRequest: ((requestId: BigNumberish, executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string) => Promise<TransactionResponse>);
    }

    • acceptRequest: ((requestId: string) => Promise<TransactionResponse>)
        • (requestId: string): Promise<TransactionResponse>
        • Parameters

          • requestId: string

          Returns Promise<TransactionResponse>

    • createRequest: ((executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string) => Promise<TransactionResponse>)
        • (executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string): Promise<TransactionResponse>
        • Parameters

          • executor: string
          • acceptData: BytesLike
          • rejectData: BytesLike
          • misc: string
          • description: string

          Returns Promise<TransactionResponse>

    • dropRequest: ((requestId: BigNumberish) => Promise<TransactionResponse>)
        • (requestId: BigNumberish): Promise<TransactionResponse>
        • Parameters

          • requestId: BigNumberish

          Returns Promise<TransactionResponse>

    • rejectRequest: ((requestId: BigNumberish, reason: string) => Promise<TransactionResponse>)
        • (requestId: BigNumberish, reason: string): Promise<TransactionResponse>
        • Parameters

          • requestId: BigNumberish
          • reason: string

          Returns Promise<TransactionResponse>

    • updateRequest: ((requestId: BigNumberish, executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string) => Promise<TransactionResponse>)
        • (requestId: BigNumberish, executor: string, acceptData: BytesLike, rejectData: BytesLike, misc: string, description: string): Promise<TransactionResponse>
        • Parameters

          • requestId: BigNumberish
          • executor: string
          • acceptData: BytesLike
          • rejectData: BytesLike
          • misc: string
          • description: string

          Returns Promise<TransactionResponse>

Generated using TypeDoc