1.0.34 • Published 2 years ago

mto-custom-driver v1.0.34

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.34

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago