buyer initiated flow
This commit is contained in:
@@ -5,6 +5,7 @@ use anchor_lang::prelude::*;
|
||||
pub struct ResolverEntry {
|
||||
pub authority: Pubkey,
|
||||
pub resolver_type: ResolverType,
|
||||
pub acceptance_policy: AcceptancePolicy,
|
||||
#[max_len(64)]
|
||||
pub name: String,
|
||||
#[max_len(256)]
|
||||
@@ -28,6 +29,13 @@ pub enum ResolverType {
|
||||
Multisig,
|
||||
}
|
||||
|
||||
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq, InitSpace, Debug)]
|
||||
pub enum AcceptancePolicy {
|
||||
Open,
|
||||
SignatureGated,
|
||||
ProgramGated,
|
||||
}
|
||||
|
||||
/// Passed to update_stats; mirrors the Escrow program's Winner enum.
|
||||
#[derive(AnchorSerialize, AnchorDeserialize, Clone, PartialEq)]
|
||||
pub enum Ruling {
|
||||
|
||||
Reference in New Issue
Block a user