1.3.0 • Published 2 years ago

amogus-driver v1.3.0

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

License Version Coverage Downloads PRs and issues

AMOGUS wire protocol implementation

This library provides an AMOGUS implementation for JS and TS in all major environments (browser, node, etc.). Install it with:

npm i amogus-driver

If you're using a BigInt polyfill, add this as close to the entry as possible:

import * as amogus from "amogus-driver";

// if using a polyfill that provides a BigInt(string, radix) constructor
// (e.g. 'big-integer', 'bigint-polyfill'):
amogus.repr.BigInteger.polyfillMode = "radix";

// if using a polyfill that supports BigInt("0x<data>"):
amogus.repr.BigInteger.polyfillMode = "0x";

// if not using a polyfill or using a polyfill that implements
// operators like native BigInts (haven't seen one of those in
// the wild):
amogus.repr.BigInteger.polyfillMode = "none";
// OR don't do anything, this is the default value

How do I use it??

There's a complete tutorial over here.

Testing

Warning: this repository uses a pnpm lock file, hence you can't substitute it for npm below.

git clone https://github.com/amogus-api/driver-ts
cd driver-ts
pnpm i
pip3 install susc
pnpm test
1.2.0

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.3.0

2 years ago

1.2.1

2 years ago

0.11.0

2 years ago

0.12.0

2 years ago

0.11.1

2 years ago

0.10.0

2 years ago

1.2.9

2 years ago

1.0.0-rc.3

2 years ago

0.9.0

2 years ago

0.8.1

2 years ago

0.7.2

2 years ago

1.0.0-rc.4

2 years ago

0.8.0

2 years ago

0.7.1

2 years ago

0.6.2

2 years ago

1.2.10

2 years ago

1.0.0-rc.1

2 years ago

1.2.11

2 years ago

1.0.0-rc.2

2 years ago

0.8.2

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.2.2

2 years ago

0.7.0

2 years ago

0.6.1

2 years ago

0.2.5

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.2.4

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago