Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@midcontract/protocol

Package Overview
Dependencies
Maintainers
2
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@midcontract/protocol

Crypto payment protocol with escrow

  • 1.0.0-rc.25-c068476
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
14
decreased by-95.04%
Maintainers
2
Weekly downloads
 
Created
Source

@midcontract/protocol

Crypto payment protocol with escrow

stateDiagram-v2
    [*] --> PENDING
    PENDING --> SUBMITTED: submit
    SUBMITTED --> PENDING: approve
    SUBMITTED --> DISPUTED: dispute
    PENDING --> DISPUTED: dispute
    DISPUTED --> PENDING: resolve
    PENDING -->  [*]
sequenceDiagram
    opt Success
        Alice ->> Escrow: deposit
        Bob ->> Escrow: submit
        Alice ->> Escrow: reject
        Bob ->> Escrow: submit
        Alice ->> Escrow: approve
        Bob ->> Escrow: claim
    end
    opt Withdraw
        Alice ->> Escrow: deposit
        Bob -x Escrow: submit
        Alice ->> Escrow: withdraw
    end
    opt Dispute
        Alice ->> Escrow: deposit
        Bob ->> Escrow: submit
        Alice ->> Escrow: reject
        Bob ->> Escrow: dispute
        alt Bob
            Platform ->> Escrow: approve
            Bob ->> Escrow: claim
        else Alice
            Platform ->> Escrow: reject
            Alice ->> Escrow: withdraw
        end
    end

Install

npm install --save-prod @midcontract/protocol

Licensing

The primary license for the Midcontract protocol is MIT, see LICENSE

Keywords

FAQs

Package last updated on 06 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc