@vordium/sdk 0.1.3 → 0.2.1

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.
@@ -12,8 +12,9 @@ import { BATCH_MAX, batchBody, cancelAllBody, cancelOrderBody, modifyBody, place
12
12
  import { readAgentRefusals, refusalMeanings, readEquity, readOpenOrders, readPositions } from './reads.js';
13
13
  import { rs64, signOp } from './sign.js';
14
14
  import { U32, U64, U128, safeNumber, uint } from './units.js';
15
- import { OrderValueError, SpecsUnavailable, checkNotional, checkSize, marketRules, selectSpec, sizeStep, snapPrice8, snapSize18, snapTrigger8, } from './rounding.js';
15
+ import { OrderValueError, SpecsUnavailable, checkNotional, price8OnTick, checkSize, marketRules, selectSpec, sizeStep, snapPrice8, snapSize18, snapTrigger8, } from './rounding.js';
16
16
  import { domainOf } from './types.js';
17
+ import { BUILDER_ROUTES, BuilderError, BuilderNotActive, approvalOf, approveBuilderFeeBody, approveBuilderFeeValue, capsFrom, checkFee, checkMaxFee, checkOrderBuilder, claimBuilderFeesBody, claimBuilderFeesValue, deadline, parseBuilder, placeOrderV3Body, placeOrderV3Value, referralLevel, requireActive, } from './builder.js';
17
18
  /** The result of an account write by the chain's own read: applied, refused, or not known yet. */
18
19
  async function outcome(r, shows, waitMs, notShown) {
19
20
  if (!r.proceed) {
@@ -97,6 +98,8 @@ export class Vordium {
97
98
  const r = await this.transport.get(this.network.api + path, this.timeoutMs);
98
99
  if (r.status === 404)
99
100
  return null;
101
+ if (r.status >= 300 && r.status < 400)
102
+ throw new VordiumError('redirect_refused', `The read ${path} was answered with a redirect, which is not followed: use the https address of the node.`);
100
103
  if (r.status !== 200)
101
104
  throw new VordiumError('read_failed', `The read ${path} answered HTTP ${r.status}.`);
102
105
  return r.body;
@@ -170,6 +173,32 @@ export class Vordium {
170
173
  crossMargin(owner) { return this.get(`/account/cross/${owner}`); }
171
174
  /** The dead-man switch's committed state and limits. */
172
175
  scheduleCancelState(owner) { return this.get(`/schedule-cancel/${owner}`); }
176
+ // ── builder codes and referral levels ───────────────────────────────────────────────────────────────────────────
177
+ /** `GET /builder/approvals/<user>`: the builders `user` approved, the count, the most allowed, its nonce, `active`. */
178
+ async builderApprovals(user) {
179
+ const j = await this.get(`/builder/approvals/${builderAddress(user)}`);
180
+ if (!j || typeof j !== 'object')
181
+ throw new BuilderNotActive('The network does not answer the builder approvals read, so nothing was signed.');
182
+ return j;
183
+ }
184
+ /** `GET /builder/stats/<builder>`: volume, fees (= unclaimed + claimed), users in 30 days, caps, claim nonce, `active`. */
185
+ async builderStats(builder) {
186
+ const j = await this.get(`/builder/stats/${builderAddress(builder)}`);
187
+ if (!j || typeof j !== 'object')
188
+ throw new BuilderNotActive('The network does not answer the builder stats read, so nothing was signed.');
189
+ return j;
190
+ }
191
+ /** `GET /referral/stats/<address>` as the network answers it. */
192
+ referralStats(address) { return this.get(`/referral/stats/${getAddress(address)}`); }
193
+ /** The account's referral level (`L1`, `L2`, `PARTNER`) and its period progress; null where levels are not shown. */
194
+ async referralLevel(address) { return referralLevel(await this.referralStats(address)); }
195
+ /** `GET /referral/tiers`: the levels table, the L2 rule, the partner bounds and the referee caps. */
196
+ referralTiers() { return this.get('/referral/tiers'); }
197
+ /** The network's block time in whole seconds, else this computer's clock. */
198
+ async nowS() {
199
+ const ms = await this.chainTimeMs().catch(() => null);
200
+ return Math.floor((typeof ms === 'number' && ms > 0 ? ms : Date.now()) / 1000);
201
+ }
173
202
  /** The TWAP route and limits from the network spec (refused when not published). */
174
203
  twapRules() { return readTwapRules(this.network.specRead); }
175
204
  /** A trading account: `owner` signs account operations; `sessionSigner` (a session or agent key) signs orders. */
@@ -287,12 +316,26 @@ export class Account {
287
316
  */
288
317
  async placeOrder(o) {
289
318
  const signer = this.orderSigner();
290
- placeOrderValue({ ...o, owner: this.owner, clientNonce: o.clientNonce ?? 1 }); // refusals that need no market rules come first
319
+ const { builder: wanted, worstPrice, ...plain } = o;
320
+ if (worstPrice != null && (wanted == null || o.orderType !== 'Market'))
321
+ throw new InvalidRequest('worstPrice applies to a market order that names a builder.');
322
+ placeOrderValue({ ...plain, owner: this.owner, clientNonce: o.clientNonce ?? 1 }); // refusals that need no market rules come first
323
+ const ob = wanted == null ? null : await this.checkedBuilder(wanted); // null or undefined: no builder
291
324
  const spec = await this.pairSpec(o.pairId);
292
325
  const clientNonce = o.clientNonce ?? (await this.fresh('orders'));
293
- const v = placeOrderValue({ ...o, owner: this.owner, clientNonce }, spec);
294
- const sig = await this.sign(signer, 'PlaceOrder', v);
295
- const body = placeOrderBody(v, getAddress(await signer.getAddress()), rs64(sig));
326
+ const v = placeOrderValue({ ...plain, owner: this.owner, clientNonce }, spec);
327
+ let body;
328
+ if (ob) {
329
+ // a buy's cap rounds down onto the price step and a sell's floor up: never worse than the caller gave
330
+ const worst8 = worstPrice == null ? 0n : price8OnTick(worstPrice, spec, o.side, true);
331
+ const v3 = placeOrderV3Value(v, deadline(null, await this.client.nowS()), ob, undefined, worst8);
332
+ body = placeOrderV3Body(v3, await this.sign(signer, 'PlaceOrderV3', v3));
333
+ }
334
+ else {
335
+ const sig = await this.sign(signer, 'PlaceOrder', v);
336
+ body = placeOrderBody(v, getAddress(await signer.getAddress()), rs64(sig));
337
+ }
338
+ const withBuilder = ob ? { builder: ob } : {};
296
339
  const signed = { pairId: v.pairId, side: v.side, size: v.size, price: v.orderType === 1 ? v.price : null };
297
340
  // after the mark was set back to the clock, a nonce may repeat one handed out before: a read-back must be newer
298
341
  const rewound = this.nonce instanceof NonceAllocator ? await this.nonce.rewoundBefore(clientNonce) : null;
@@ -312,18 +355,18 @@ export class Account {
312
355
  const found = ours(await this.orderByClientNonce(clientNonce, signed));
313
356
  if (!found)
314
357
  throw e;
315
- return { submitted: true, status: 0, refusal: null, actions: [], answer: null, clientNonce, attempts: e.attempts, alreadyReceived: true, unknown: false, found };
358
+ return { submitted: true, status: 0, refusal: null, actions: [], answer: null, clientNonce, attempts: e.attempts, alreadyReceived: true, unknown: false, found, ...withBuilder };
316
359
  }
317
360
  if (r.needsReadBack) {
318
361
  // the network's nonce code means "used" (perhaps by our earlier copy), "outside the window", or "used by another
319
362
  // signer": it is ours only when the order the network lists carries what was signed
320
363
  const found = ours(await this.orderByClientNonce(clientNonce, signed));
321
364
  if (found)
322
- return { submitted: true, status: 0, refusal: null, actions: [], answer: r.body, clientNonce, attempts: r.attempts, alreadyReceived: true, unknown: false, found };
323
- return { ...unknownResult(r.attempts, `An earlier copy may have arrived (its answer was lost), the network answered ${r.status}, and it does not list this order (yet). Read the account's orders before sending a new one.`, r.body), clientNonce, alreadyReceived: false, found: null };
365
+ return { submitted: true, status: 0, refusal: null, actions: [], answer: r.body, clientNonce, attempts: r.attempts, alreadyReceived: true, unknown: false, found, ...withBuilder };
366
+ return { ...unknownResult(r.attempts, `An earlier copy may have arrived (its answer was lost), the network answered ${r.status}, and it does not list this order (yet). Read the account's orders before sending a new one.`, r.body), clientNonce, alreadyReceived: false, found: null, ...withBuilder };
324
367
  }
325
368
  const s = readAnswer(r.status === 200 && r.body?.status === 'submitted' ? 202 : r.status, r.body, r.retryAfter, this.client.refusalMeanings());
326
- return { ...s, status: r.status, clientNonce, attempts: r.attempts, alreadyReceived: false, unknown: false };
369
+ return { ...s, status: r.status, clientNonce, attempts: r.attempts, alreadyReceived: false, unknown: false, ...withBuilder };
327
370
  }
328
371
  /**
329
372
  * The account's order with `clientNonce` as the network lists it: resting (open orders), else its record; null when
@@ -580,6 +623,83 @@ export class Account {
580
623
  const map = { 1: 'cross', 2: 'isolated', cross: 'cross', isolated: 'isolated' };
581
624
  return map[String(m)] ?? null;
582
625
  }
626
+ // ── builder codes ─────────────────────────────────────────────────────────────────────────────────────────────
627
+ /** An order's builder after the network's reads allow it (rule active, fee within the perps cap, approved, funded). */
628
+ async checkedBuilder(b) {
629
+ const ob = parseBuilder(b);
630
+ let approvals, stats;
631
+ try {
632
+ approvals = await this.client.builderApprovals(this.owner);
633
+ stats = await this.client.builderStats(ob.address);
634
+ }
635
+ catch (e) {
636
+ if (e instanceof BuilderError)
637
+ throw e;
638
+ throw new BuilderNotActive('The network did not answer its builder reads, so the builder fee cannot be checked and nothing was signed. Try again, or send the order without a builder.');
639
+ }
640
+ requireActive(approvals);
641
+ requireActive(stats);
642
+ checkFee(ob.feeCbps, 'perps', capsFrom(stats));
643
+ checkOrderBuilder(this.owner, ob.address, ob.feeCbps, approvals, stats);
644
+ return ob;
645
+ }
646
+ /** The builders this account approved (`approvals`, `count`, `max`, `nonce`, `active`). */
647
+ builderApprovals() { return this.client.builderApprovals(this.owner); }
648
+ /** This account's stats as a builder. */
649
+ builderStats() { return this.client.builderStats(this.owner); }
650
+ /**
651
+ * Let `builder` charge this account up to `maxFeeCbps` per order (500 cbps = 5 bps = 0.05 %); approving a builder
652
+ * again replaces its fee. Signed with the account's own key. Refused before signing when builder fees are not active,
653
+ * the fee is 0 or above the highest cap (`caps_cbps`), the builder is this account, or the account already approved
654
+ * the most builders it may (`max`).
655
+ */
656
+ async approveBuilderFee(builder, maxFeeCbps, waitMs = 30000) {
657
+ const signer = this.needOwner('A builder approval');
658
+ const b = builderAddress(builder);
659
+ const read = await this.client.builderApprovals(this.owner);
660
+ requireActive(read);
661
+ const fee = checkMaxFee(maxFeeCbps, capsFrom(await this.client.builderStats(b)));
662
+ if (b.toLowerCase() === this.owner.toLowerCase())
663
+ throw new BuilderError('builder_self', 'An account cannot be its own builder: name another builder.');
664
+ const max = read.max, count = read.count;
665
+ if (typeof max !== 'number' || typeof count !== 'number')
666
+ throw new BuilderError('unreadable', "The network's approvals read gives no count or maximum, so nothing was signed.");
667
+ if (approvalOf(read, b) === null && count >= max)
668
+ throw new BuilderError('builder_approvals_full', `The account has approved the most builders it may (${max}): revoke one first.`);
669
+ return this.approve(signer, b, fee, read, (r) => approvalOf(r, b) === fee, 'the chain does not show the approval', waitMs);
670
+ }
671
+ /** Withdraw the approval of `builder` (an approval of 0). Orders that name it are refused from then on. */
672
+ async revokeBuilderFee(builder, waitMs = 30000) {
673
+ const signer = this.needOwner('A builder approval');
674
+ const b = builderAddress(builder);
675
+ const read = await this.client.builderApprovals(this.owner);
676
+ requireActive(read);
677
+ if (approvalOf(read, b) === null)
678
+ return { applied: true, status: 0, answer: null, detail: 'no approval to revoke' };
679
+ return this.approve(signer, b, 0, read, (r) => approvalOf(r, b) === null, 'the chain still shows the approval', waitMs);
680
+ }
681
+ async approve(signer, b, fee, read, shows, notShown, waitMs) {
682
+ const nonce = (typeof read.nonce === 'number' ? read.nonce : 0) + 1;
683
+ const v = approveBuilderFeeValue(this.owner, b, fee, nonce, deadline(null, await this.client.nowS()));
684
+ const sig = await this.sign(signer, 'ApproveBuilderFee', v);
685
+ const r = await this.postForResult(BUILDER_ROUTES.approve, JSON.stringify(approveBuilderFeeBody(v, sig)));
686
+ // applied once the account's approval nonce has reached ours and the approval reads as asked
687
+ return outcome(r, async () => { const a = await this.client.builderApprovals(this.owner); return a.nonce >= nonce && shows(a); }, waitMs, notShown);
688
+ }
689
+ /** As a builder: move the unclaimed fees to this account's balance. Refused before signing when there is nothing. */
690
+ async claimBuilderFees(waitMs = 30000) {
691
+ const signer = this.needOwner('A claim of builder fees');
692
+ const st = await this.client.builderStats(this.owner);
693
+ requireActive(st);
694
+ if (!(typeof st.unclaimed_6dec === 'string' && /^\d+$/.test(st.unclaimed_6dec) && BigInt(st.unclaimed_6dec) > 0n)) {
695
+ throw new BuilderError('builder_nothing_to_claim', 'There are no builder fees to claim; nothing was signed.');
696
+ }
697
+ const before = typeof st.claim_nonce === 'number' ? st.claim_nonce : 0;
698
+ const v = claimBuilderFeesValue(this.owner, before + 1, deadline(null, await this.client.nowS()));
699
+ const sig = await this.sign(signer, 'ClaimBuilderFees', v);
700
+ const r = await this.postForResult(BUILDER_ROUTES.claim, JSON.stringify(claimBuilderFeesBody(v, sig)));
701
+ return outcome(r, async () => (await this.client.builderStats(this.owner)).claim_nonce > before, waitMs, 'the chain does not show the claim');
702
+ }
583
703
  /** Cross or isolated for one market — only while it holds no open position and no resting order of the account. */
584
704
  async setMarginMode(pairId, mode, waitMs = 30000) {
585
705
  const signer = this.needOwner('The margin mode');
@@ -760,6 +880,15 @@ export function twapMatches(row, v) {
760
880
  }
761
881
  return true;
762
882
  }
883
+ /** A builder address, or BuilderError('invalid_body') with a plain sentence (never the library's own error). */
884
+ function builderAddress(a) {
885
+ try {
886
+ return getAddress(String(a));
887
+ }
888
+ catch {
889
+ throw new BuilderError('invalid_body', 'The builder must be an address (0x and 40 hex characters).');
890
+ }
891
+ }
763
892
  function unknownResult(attempts, message, answer) {
764
893
  return { submitted: false, status: 0, refusal: { code: 'delivery_unknown', message, detail: '', retryAfter: null }, actions: [], answer, attempts, unknown: true };
765
894
  }
@@ -11,6 +11,11 @@ export interface Transport {
11
11
  retryAfter: string | null;
12
12
  }>;
13
13
  }
14
+ /** What a redirect answer reads as: never the redirect's own body. */
15
+ export declare const REDIRECT_REFUSAL: Readonly<{
16
+ code: "redirect_refused";
17
+ error: "The node answered with a redirect, which is not followed: use the https address of the node.";
18
+ }>;
14
19
  /**
15
20
  * The default transport: `fetch`. A read (GET) is tried up to three times on a connection error, a timeout, 429 or
16
21
  * 502–504, with a random wait and the server's Retry-After. A write (POST) is never retried: a second attempt could
package/dist/esm/http.js CHANGED
@@ -1,10 +1,14 @@
1
1
  import { VordiumError } from './errors.js';
2
2
  const RETRY_STATUS = new Set([429, 502, 503, 504]);
3
+ /**
4
+ * One fetch with a time limit. Redirects are never followed (`redirect: 'manual'`), for reads or writes: a 3xx comes back
5
+ * as the answer it is, so a node (or anything in front of it) cannot send a signed body, or a read, to another address.
6
+ */
3
7
  async function fetchWithTimeout(url, init, timeoutMs) {
4
8
  const ctl = new AbortController();
5
9
  const t = setTimeout(() => ctl.abort(), timeoutMs);
6
10
  try {
7
- return await fetch(url, { ...init, signal: ctl.signal });
11
+ return await fetch(url, { ...init, redirect: 'manual', signal: ctl.signal });
8
12
  }
9
13
  finally {
10
14
  clearTimeout(t);
@@ -22,6 +26,9 @@ async function readBody(r) {
22
26
  }
23
27
  }
24
28
  const sleep = (ms) => new Promise((res) => setTimeout(res, ms));
29
+ const isRedirect = (status) => status >= 300 && status < 400;
30
+ /** What a redirect answer reads as: never the redirect's own body. */
31
+ export const REDIRECT_REFUSAL = Object.freeze({ code: 'redirect_refused', error: 'The node answered with a redirect, which is not followed: use the https address of the node.' });
25
32
  /**
26
33
  * The default transport: `fetch`. A read (GET) is tried up to three times on a connection error, a timeout, 429 or
27
34
  * 502–504, with a random wait and the server's Retry-After. A write (POST) is never retried: a second attempt could
@@ -38,7 +45,7 @@ export const fetchTransport = {
38
45
  await sleep(Number.isFinite(ra) && ra > 0 ? Math.min(ra, 5) * 1000 : 250 * 2 ** attempt * (0.5 + Math.random() / 2));
39
46
  continue;
40
47
  }
41
- return { status: r.status, body: await readBody(r) };
48
+ return { status: r.status, body: isRedirect(r.status) ? { ...REDIRECT_REFUSAL } : await readBody(r) };
42
49
  }
43
50
  catch (e) {
44
51
  last = e;
@@ -50,7 +57,8 @@ export const fetchTransport = {
50
57
  },
51
58
  async post(url, body, timeoutMs) {
52
59
  const r = await fetchWithTimeout(url, { method: 'POST', headers: { 'content-type': 'application/json' }, body }, timeoutMs);
53
- return { status: r.status, body: await readBody(r), retryAfter: r.headers.get('retry-after') };
60
+ // a redirect is not an answer about the write: no body is read from it
61
+ return { status: r.status, body: isRedirect(r.status) ? { ...REDIRECT_REFUSAL } : await readBody(r), retryAfter: r.headers.get('retry-after') };
54
62
  },
55
63
  };
56
64
  /**
@@ -14,4 +14,5 @@ export * from './account.js';
14
14
  export * from './agents.js';
15
15
  export * from './reads.js';
16
16
  export * from './feeds.js';
17
+ export * from './builder.js';
17
18
  export { Vordium, Account, twapOnSteps, matchesSigned, twapMatches, cancelOutcome, type Result, type ConnectOptions, type SignedOrder } from './client.js';
package/dist/esm/index.js CHANGED
@@ -14,4 +14,5 @@ export * from './account.js';
14
14
  export * from './agents.js';
15
15
  export * from './reads.js';
16
16
  export * from './feeds.js';
17
+ export * from './builder.js';
17
18
  export { Vordium, Account, twapOnSteps, matchesSigned, twapMatches, cancelOutcome } from './client.js';
@@ -197,6 +197,10 @@ export function pairSpecs(read) {
197
197
  if (!s || typeof s !== 'object')
198
198
  throw new OrderValueError('the market rules read has no specs; nothing was signed.');
199
199
  const sp = s;
200
+ if (Array.isArray(sp.pairs) && sp.pairs.length && (sp.min_order_notional_6dec === undefined || sp.min_order_notional_6dec === null || sp.min_order_notional_6dec === '')) {
201
+ // a read that lists markets but not the smallest order value is trimmed or out of date: never read it as "no minimum"
202
+ throw new SpecsUnavailable('the market rules do not name the smallest order value (min_order_notional_6dec); nothing was signed.');
203
+ }
200
204
  const minNotional6 = count(sp.min_order_notional_6dec);
201
205
  const out = new Map();
202
206
  for (const p of Array.isArray(sp.pairs) ? sp.pairs : []) {
@@ -18,6 +18,9 @@ export declare const TYPE_STRINGS: {
18
18
  readonly ModifyOrderV2: "ModifyOrderV2(address owner,uint64 orderId,uint64 newPrice,uint128 newSize,uint64 clientNonce)";
19
19
  readonly SetMmp: "SetMmp(address owner,uint64 windowMs,uint32 maxFills,uint128 maxFilledNotional6dec,uint128 maxNetSize18dec,uint64 freezeMs,uint64 nonce)";
20
20
  readonly ScheduleCancel: "ScheduleCancel(address owner,uint64 cancelAtMs,uint64 nonce)";
21
+ readonly PlaceOrderV3: "PlaceOrderV3(address owner,uint32 pairId,uint8 side,uint128 size,uint64 price,uint32 leverageBps,uint8 orderType,bool reduceOnly,bool postOnly,uint64 triggerPrice8dec,uint8 triggerDir,uint8 timeInForce,uint64 expiresAt,uint64 clientNonce,uint64 validUntil,uint64 worstPrice8dec,string source,address builder,uint32 builderFeeCbps)";
22
+ readonly ApproveBuilderFee: "ApproveBuilderFee(address user,address builder,uint32 maxFeeCbps,uint64 nonce,uint64 validUntil)";
23
+ readonly ClaimBuilderFees: "ClaimBuilderFees(address builder,uint64 nonce,uint64 validUntil)";
21
24
  readonly PlaceTwap: "PlaceTwap(address owner,uint32 pairId,uint8 side,uint128 totalSize18dec,uint32 numSlices,uint64 durationMs,uint32 leverageBps,uint32 slippageBps,bool randomize,uint64 triggerPrice8dec,uint8 triggerDir,uint64 minPrice8dec,uint64 maxPrice8dec,uint64 clientNonce)";
22
25
  readonly CancelTwap: "CancelTwap(address owner,uint64 twapId,uint64 clientNonce)";
23
26
  readonly SetMarginMode: "SetMarginMode(address owner,uint32 pairId,uint8 mode,uint64 nonce)";
package/dist/esm/types.js CHANGED
@@ -9,6 +9,10 @@ export const TYPE_STRINGS = {
9
9
  ModifyOrderV2: 'ModifyOrderV2(address owner,uint64 orderId,uint64 newPrice,uint128 newSize,uint64 clientNonce)',
10
10
  SetMmp: 'SetMmp(address owner,uint64 windowMs,uint32 maxFills,uint128 maxFilledNotional6dec,uint128 maxNetSize18dec,uint64 freezeMs,uint64 nonce)',
11
11
  ScheduleCancel: 'ScheduleCancel(address owner,uint64 cancelAtMs,uint64 nonce)',
12
+ // VordCore — builder codes
13
+ PlaceOrderV3: 'PlaceOrderV3(address owner,uint32 pairId,uint8 side,uint128 size,uint64 price,uint32 leverageBps,uint8 orderType,bool reduceOnly,bool postOnly,uint64 triggerPrice8dec,uint8 triggerDir,uint8 timeInForce,uint64 expiresAt,uint64 clientNonce,uint64 validUntil,uint64 worstPrice8dec,string source,address builder,uint32 builderFeeCbps)',
14
+ ApproveBuilderFee: 'ApproveBuilderFee(address user,address builder,uint32 maxFeeCbps,uint64 nonce,uint64 validUntil)',
15
+ ClaimBuilderFees: 'ClaimBuilderFees(address builder,uint64 nonce,uint64 validUntil)',
12
16
  // VordCore — account
13
17
  PlaceTwap: 'PlaceTwap(address owner,uint32 pairId,uint8 side,uint128 totalSize18dec,uint32 numSlices,uint64 durationMs,uint32 leverageBps,uint32 slippageBps,bool randomize,uint64 triggerPrice8dec,uint8 triggerDir,uint64 minPrice8dec,uint64 maxPrice8dec,uint64 clientNonce)',
14
18
  CancelTwap: 'CancelTwap(address owner,uint64 twapId,uint64 clientNonce)',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vordium/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.2.1",
4
4
  "description": "TypeScript and JavaScript SDK for Vordium Chain and the Vordex perpetuals exchange: signing, orders, session keys, agents, TWAP, margin mode and live feeds.",
5
5
  "license": "MIT",
6
6
  "author": "Vordium <dev@vordium.com>",