1.0.34 • Published 7 months ago

mto-custom-driver v1.0.34

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

HMP SDK

HMP SDK is a blockchain manager for an escrow contracts, it exports the full process for purchasing and selling a product and securing clients fidelity through escrow system.

How to use custom SDK in nodejs based app (rinkeby testnet)

import { MTOCustomDriver } from "mto-custom-driver"; // TODO check import types issue

const driver = new MTOCustomDriver({
  privateKey: wallet.privateKey,
  blockchain: "rinkeby-testnet",
});
await driver.init();
const result = await driver.purchase(
  PRODUCT_ID,
  MERCHANT_ADDRESS,
  AMOUNT,
  DISPUTABLE_TIME,
  WITHDRAW_TIME,
  {gasLimit:1000000}
);

Use SDK with react native

To use the SDK with React native a special package should be imported:

import "@ethersproject/shims";
1.0.22

8 months ago

1.0.21

8 months ago

1.0.20

8 months ago

1.0.26

8 months ago

1.0.25

8 months ago

1.0.24

8 months ago

1.0.23

8 months ago

1.0.29

8 months ago

1.0.28

8 months ago

1.0.27

8 months ago

1.0.33

7 months ago

1.0.32

7 months ago

1.0.31

7 months ago

1.0.30

7 months ago

1.0.34

7 months ago

1.0.19

8 months ago

1.0.18

8 months ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago