@predy/js-sdk
v0.4.10
Published
js-sdk =====
Downloads
18
Readme
js-sdk
A JavaScript SDK for the Predy Protocol.
Example
Sign order
const builder = new PerpDutchOrderBuilder(network.chainId, permit2Address);
const order = builder
.validationData(0, 0, 0, 0)
.deadline(10000)
.nonce(1)
.tradeAmount(BigNumber.from(100))
.build();
const { domain, types, value} = order.permitData()
const signature = wallet._signTypedData(domain, types, values)