Skip to main content

Escrow

class Escrow

Hierarchy

  • SmartContract
    • Escrow

Index

Constructors

externalconstructor

  • new Escrow(address: PublicKey, tokenId?: Field): Escrow
  • Parameters

    • externaladdress: PublicKey
    • externaloptionaltokenId: Field

    Returns Escrow

Properties

events

events: { approveSale: typeof EscrowTransfer; deploy: typeof Field & (x: string | number | bigint | Field | FieldVar | FieldConst) => Field; deposit: typeof EscrowTransfer; transfer: typeof EscrowTransfer } = ...

Type declaration

Methods

approveSale

  • approveSale(deposited: EscrowDeposit, seller: PublicKey): Promise<void>
  • Parameters

    Returns Promise<void>

deploy

  • deploy(args: DeployArgs): Promise<void>
  • Parameters

    • args: DeployArgs

    Returns Promise<void>

deposit

  • deposit(deposited: EscrowDeposit, buyer: PublicKey): Promise<void>
  • Parameters

    Returns Promise<void>

transfer

  • transfer(nft: PublicKey, nameService: PublicKey, data: EscrowTransfer, signature1: Signature, signature2: Signature, signature3: Signature, escrow1: PublicKey, escrow2: PublicKey, escrow3: PublicKey, amount: UInt64, seller: PublicKey, buyer: PublicKey): Promise<void>
  • Parameters

    • nft: PublicKey
    • nameService: PublicKey
    • data: EscrowTransfer
    • signature1: Signature
    • signature2: Signature
    • signature3: Signature
    • escrow1: PublicKey
    • escrow2: PublicKey
    • escrow3: PublicKey
    • amount: UInt64
    • seller: PublicKey
    • buyer: PublicKey

    Returns Promise<void>