@orbs-network/spot-react 1.1.43 → 1.1.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/dist/spot-react/package.json.d.ts +1 -1
- package/dist/spot-react/src/hooks/use-submit-order.d.ts.map +1 -1
- package/dist/spot-react.js +399 -415
- package/dist/spot-react.umd.cjs +2 -2
- package/dist/spot-ui/src/lib/submit-order.d.ts +2 -2
- package/dist/spot-ui/src/lib/submit-order.d.ts.map +1 -1
- package/dist/spot-ui/src/lib/types.d.ts +2 -1
- package/dist/spot-ui/src/lib/types.d.ts.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -268,9 +268,11 @@ const walletInteractions: WalletInteractions = {
|
|
|
268
268
|
| `wrapNativeToken(amountWei)` | Wrap native currency, wait for confirmation, return tx hash |
|
|
269
269
|
| `approveToken({ tokenAddress, amount, spenderAddress })` | Approve the requested spender, wait for confirmation, return tx hash |
|
|
270
270
|
| `cancelOrder({ order, contractAddress, args, abi })` | Call `cancel` with the supplied ABI and args, wait for confirmation, return tx hash |
|
|
271
|
-
| `signOrder({ domain, types, primaryType, message, account })` | Sign the supplied EIP-712 data and return signature
|
|
271
|
+
| `signOrder({ domain, types, primaryType, message, account })` | Sign the supplied EIP-712 data and return the wallet's original `0x`-prefixed signature |
|
|
272
272
|
| `getAllowance({ tokenAddress, spenderAddress })` | Return the connected account's raw allowance as a string |
|
|
273
273
|
|
|
274
|
+
The signature returned by `signOrder` is submitted unchanged. Do not split it into `{ v, r, s }`, rewrite its recovery byte, or otherwise normalize the wallet's byte representation.
|
|
275
|
+
|
|
274
276
|
## Building the Form with useSpot()
|
|
275
277
|
|
|
276
278
|
Every component rendered under `SpotProvider` can call `useSpot()`:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-submit-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-submit-order.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-submit-order.ts"],"names":[],"mappings":"AAwEA,eAAO,MAAM,YAAY,sHA6DxB,CAAC;AAmKF,eAAO,MAAM,sBAAsB,kIAiIlC,CAAC"}
|