1.0.0-rc.29 • Published 10 months ago

@midcontract/protocol v1.0.0-rc.29

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@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

1.0.0-rc.29-4b4a08f

10 months ago

1.0.0-rc.29-8ea0179

10 months ago

1.0.0-rc.29-0f3d1f6

11 months ago

1.0.0-rc.29-eb48a47

11 months ago

1.0.0-rc.29-5299047

11 months ago

1.0.0-rc.29-f96bb5b

11 months ago

1.0.0-rc.29-2485b57

11 months ago

1.0.0-rc.29-43b2505

11 months ago

1.0.0-rc.29-30f14f4

11 months ago

1.0.0-rc.29-91aec7f

11 months ago

1.0.0-rc.29-37cb1c7

11 months ago

1.0.0-rc.29-3a07775

11 months ago

1.0.0-rc.29-a29fee6

11 months ago

1.0.0-rc.29-4d5aecf

11 months ago

1.0.0-rc.29-021309a

11 months ago

1.0.0-rc.29-6e79dce

11 months ago

1.0.0-rc.29-f394666

11 months ago

1.0.0-rc.29-b469722

11 months ago

1.0.0-rc.29-bc01b87

11 months ago

1.0.0-rc.29-b33d60c

12 months ago

1.0.0-rc.29-14fe2a5

12 months ago

1.0.0-rc.29-2aa5b63

12 months ago

1.0.0-rc.29-035eaf2

12 months ago

1.0.0-rc.29-af02d23

11 months ago

1.0.0-rc.29-0207603

12 months ago

1.0.0-rc.29-722d8e9

12 months ago

1.0.0-rc.28

1 year ago

1.0.0-rc.27

1 year ago

1.0.0-rc.26

1 year ago

1.0.0-rc.29

12 months ago

1.0.0-rc.29-7b75aaf

12 months ago

1.0.0-rc.25

1 year ago

1.0.0-rc.24

1 year ago

1.0.0-rc.23

1 year ago

1.0.0-rc.22

1 year ago

1.0.0-rc.21

1 year ago

1.0.0-rc.20

1 year ago

1.0.0-rc.19

1 year ago

1.0.0-rc.18

1 year ago

1.0.0-rc.17

1 year ago

1.0.0-rc.16

1 year ago

1.0.0-rc.13

2 years ago

1.0.0-rc.15

2 years ago

1.0.0-rc.14

2 years ago

1.0.0-rc.9

2 years ago

1.0.0-rc.7

2 years ago

1.0.0-rc.8

2 years ago

1.0.0-rc.12

2 years ago

1.0.0-rc.11

2 years ago

1.0.0-rc.10

2 years ago

1.0.0-rc.5

2 years ago

1.0.0-rc.6

2 years ago

1.0.0-rc.4

2 years ago

1.0.0-rc.3

2 years ago

1.0.0-rc.2

2 years ago

1.0.0-rc.1

2 years ago

1.0.0-c8934573

2 years ago

1.0.0-alpha.0

2 years ago