Dispute resolver
Dispute resolvers decide the dispute outcome when the buyer and seller cannot do it mutually. The dispute resolver is a complex role with admin, assistant and treasury. Initially, all roles must be the same Ethereum address; however, the admin can later change them to other addresses.
Dispute resolvers decide in which tokens they are willing to accept the fee and what the amount is.
Dispute resolvers can set a list of allowed sellers, i.e. the seller ID for which they are willing to do the dispute resolution.
Dispute resolver's funds management is described in Deposit and withdraw.
TypeScript SDK
Creates a new dispute resolver
const drAddress = signerWallet.address;
await coreSDK.createDisputeResolver({
assistant: drAddress,
admin: drAddress,
treasury: drAddress,
escalationResponsePeriodInMS: 10 * 24 * 60 * 60 * 1000, // 10 days
fees: [
{
tokenAddress: "0x0000000000000000000000000000000000000000",
tokenName: "ETH",
feeAmount: parseEther("0.001")
},
{
tokenAddress: "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
tokenName: "USDC",
feeAmount: "10000000000"
}],
metadataUri: "http://metadata.uri",
});Updates an existing dispute resolver.
Solidity
Creates a new dispute resolver
Updates an existing dispute resolver.
Add and remove supported fee tokens.
Add and remove sellers from the dispute resolver's allowlist.