@dimes-dot-fi/sdk 2.5.0 → 2.7.0
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 +6 -0
- package/dist/{aliases-lNsFUKPA.d.cts → aliases-BI1c3Yt0.d.cts} +887 -830
- package/dist/{aliases-lNsFUKPA.d.ts → aliases-BI1c3Yt0.d.ts} +887 -830
- package/dist/contract/index.cjs +880 -19
- package/dist/contract/index.cjs.map +1 -1
- package/dist/contract/index.d.cts +80 -14
- package/dist/contract/index.d.ts +80 -14
- package/dist/contract/index.mjs +879 -18
- package/dist/contract/index.mjs.map +1 -1
- package/dist/{dimes-client-BUAeOsgL.d.cts → dimes-client-C4SsCNrZ.d.cts} +1 -1
- package/dist/{dimes-client-DDF-f8yA.d.ts → dimes-client-Ckn8yRG6.d.ts} +1 -1
- package/dist/{dimes-error-I7lEZ2V5.d.cts → dimes-error-BRysMNV_.d.cts} +2 -2
- package/dist/{dimes-error-CkcjExUy.d.ts → dimes-error-Ke7yuX1m.d.ts} +2 -2
- package/dist/index.d.cts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/{quote-Z88cryAN.d.ts → quote-06n723we.d.ts} +2 -2
- package/dist/{quote-B_cMLw7P.d.cts → quote-CcIqLwKb.d.cts} +2 -2
- package/dist/react/index.d.cts +4 -4
- package/dist/react/index.d.ts +4 -4
- package/dist/{types-F2rHf2Qv.d.cts → types-B881zrxm.d.cts} +1 -1
- package/dist/{types-BvZf3uFL.d.ts → types-CcoiGMbT.d.ts} +1 -1
- package/dist/ws/index.d.cts +3 -3
- package/dist/ws/index.d.ts +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -159,6 +159,12 @@ await walletClient.writeContract(approveTx);
|
|
|
159
159
|
await walletClient.writeContract(createTx);
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
+
`buildCreatePositionTx` and `buildPushFundedCreateCalls` pick the vault function from the quote:
|
|
163
|
+
`riskMode` chooses between the plain and `...WithMargin` calls, and `polymarketProtocolVersion` 2
|
|
164
|
+
(a Polymarket Protocol V2 market) chooses their `...WithVersion` / `...WithMarginAndVersion` twins.
|
|
165
|
+
`isCommittedQuote(quote)` and `isProtocolV2Quote(quote)` expose the same two decisions if you
|
|
166
|
+
encode the call yourself; a signature only verifies against the function it was issued for.
|
|
167
|
+
|
|
162
168
|
#### Primitives (build it differently)
|
|
163
169
|
|
|
164
170
|
- `recoverCreatePositionSigner(quote, user)` — pure EIP-712 recovery; compare the
|