import { ConditionStruct, FullOfferArgs, TransactionResponse, TransactionRequest, Web3LibAdapter } from "@bosonprotocol/common"; import { BigNumberish } from "@ethersproject/bignumber"; import { offers, accounts } from ".."; import { BaseCoreSDK } from "./../mixins/base-core-sdk"; import { PremintParametersStruct } from "@bosonprotocol/common/src"; export declare class OrchestrationMixin extends BaseCoreSDK { /** * Creates an offer with a specific conditions * @param offerToCreate - Offer arguments. * @param condition - contract condition applied to the offer * @param overrides - Optional overrides. * @returns Transaction response. */ createOfferWithCondition(offerToCreate: offers.CreateOfferArgs, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createOfferWithCondition(offerToCreate: offers.CreateOfferArgs, condition: ConditionStruct, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates a seller account and offer with a specific conditions * This transaction only succeeds if there is no existing seller account for the connected signer. * @param sellerToCreate - Addresses to set in the seller account. * @param offerToCreate - Offer arguments. * @param condition - contract condition applied to the offer * @param overrides - Optional overrides. * @returns Transaction response. */ createSellerAndOfferWithCondition(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createSellerAndOfferWithCondition(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, condition: ConditionStruct, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates a preminted offer and adds it to an existing group * @param offerToCreate - Offer arguments. * @param premintParameters - Premint parameters. * @param groupId - Group ID the offer will be added to * @param overrides - Optional overrides. * @returns Transaction response. */ createPremintedOfferAddToGroup(offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, groupId: BigNumberish, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createPremintedOfferAddToGroup(offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, groupId: BigNumberish, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates a seller account and preminted offer * This transaction only succeeds if there is no existing seller account for the connected signer. * @param sellerToCreate - Addresses to set in the seller account. * @param offerToCreate - Offer arguments. * @param premintParameters - Premint parameters. * @param overrides - Optional overrides. * @returns Transaction response. */ createSellerAndPremintedOffer(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createSellerAndPremintedOffer(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates a preminted offer with condition * @param offerToCreate - Offer arguments. * @param premintParameters - Premint parameters. * @param condition - Contract condition applied to the offer. * @param overrides - Optional overrides. * @returns Transaction response. */ createPremintedOfferWithCondition(offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createPremintedOfferWithCondition(offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates a seller account and preminted offer with a specific conditions * This transaction only succeeds if there is no existing seller account for the connected signer. * @param sellerToCreate - Addresses to set in the seller account. * @param offerToCreate - Offer arguments. * @param premintParameters - Premint parameters. * @param condition - Contract condition applied to the offer. * @param overrides - Optional overrides. * @returns Transaction response. */ createSellerAndPremintedOfferWithCondition(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; createSellerAndPremintedOfferWithCondition(sellerToCreate: accounts.CreateSellerArgs, offerToCreate: offers.CreateOfferArgs, premintParameters: PremintParametersStruct, condition: ConditionStruct, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Commits to a seller-initiated offer and immediately redeems the voucher in * a single transaction by calling the `OrchestrationHandler`. * @param offerId - ID of offer to commit to. * @param overrides - Optional overrides. * @returns Transaction response. */ commitToOfferAndRedeemVoucher(offerId: BigNumberish, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; commitToOfferAndRedeemVoucher(offerId: BigNumberish, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Commits to a conditional offer and immediately redeems the voucher in a * single transaction by calling the `OrchestrationHandler`. * @param offerId - ID of offer to commit to. * @param tokenId - ID of the token to use for the conditional commit. * @param overrides - Optional overrides. * @returns Transaction response. */ commitToConditionalOfferAndRedeemVoucher(offerId: BigNumberish, tokenId: BigNumberish, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; commitToConditionalOfferAndRedeemVoucher(offerId: BigNumberish, tokenId: BigNumberish, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; /** * Creates an offer, commits to it and immediately redeems the voucher in a * single transaction by calling the `OrchestrationHandler`. * @param createOfferAndCommitArgs - Offer and commit arguments. * @param overrides - Optional overrides. * @returns Transaction response. */ createOfferCommitAndRedeem(createOfferAndCommitArgs: FullOfferArgs, overrides: Partial<{ contractAddress: string; txRequest: TransactionRequest; returnTxInfo: true; }>): Promise; createOfferCommitAndRedeem(createOfferAndCommitArgs: FullOfferArgs, overrides?: Partial<{ contractAddress: string; txRequest: TransactionRequest; returnTxInfo?: false; }>): Promise; /** * Raises a dispute and immediately escalates it * @param exchangeId - Exchange ID * @param overrides - Optional overrides. * @returns Transaction response. */ raiseAndEscalateDispute(exchangeId: BigNumberish, overrides: Partial<{ contractAddress: string; returnTxInfo: true; }>): Promise; raiseAndEscalateDispute(exchangeId: BigNumberish, overrides?: Partial<{ contractAddress: string; returnTxInfo?: false; }>): Promise; } //# sourceMappingURL=mixin.d.ts.map