@kehtus/proportion-sdk 0.3.0 → 0.3.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.
@@ -20,7 +20,7 @@ export declare const hyperEvm: {
20
20
  };
21
21
  export declare const ADDRESSES: {
22
22
  readonly MAIN_VAULT: "0xaC98618D06D0787D43353308286cDBa8A7aD4a8D";
23
- readonly FACTORY: "0xc6C0AE28fD7C9BE7BC5F5c263F6ff4BD8De3591D";
23
+ readonly FACTORY: "0x7deb1129824F66cD091F41CBBD105Ff37665126D";
24
24
  readonly FORWARDER: "0x04f51e589Edeaa77ddC2dEe5d0D63fa78b0c1EdA";
25
25
  readonly USDC: "0xb88339CB7199b77E23DB6E890353E22632Ba630f";
26
26
  };
package/dist/constants.js CHANGED
@@ -10,7 +10,7 @@ export const hyperEvm = {
10
10
  };
11
11
  export const ADDRESSES = {
12
12
  MAIN_VAULT: "0xaC98618D06D0787D43353308286cDBa8A7aD4a8D",
13
- FACTORY: "0xc6C0AE28fD7C9BE7BC5F5c263F6ff4BD8De3591D",
13
+ FACTORY: "0x7deb1129824F66cD091F41CBBD105Ff37665126D",
14
14
  FORWARDER: "0x04f51e589Edeaa77ddC2dEe5d0D63fa78b0c1EdA",
15
15
  USDC: "0xb88339CB7199b77E23DB6E890353E22632Ba630f",
16
16
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kehtus/proportion-sdk",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "TypeScript SDK for Proportion Protocol on Hyperliquid",
5
5
  "license": "MIT",
6
6
  "author": "Kehtus",
package/dist/base.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import type { Chain, Hash, WalletClient } from "viem";
2
- export declare abstract class BaseWriteModule {
3
- protected walletClient: WalletClient | undefined;
4
- protected chain: Chain;
5
- constructor(walletClient: WalletClient | undefined, chain: Chain);
6
- protected requireWallet(): WalletClient;
7
- protected write(params: Record<string, unknown>): Promise<Hash>;
8
- }
9
- //# sourceMappingURL=base.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEtD,8BAAsB,eAAe;IAEjC,SAAS,CAAC,YAAY,EAAE,YAAY,GAAG,SAAS;IAChD,SAAS,CAAC,KAAK,EAAE,KAAK;gBADZ,YAAY,EAAE,YAAY,GAAG,SAAS,EACtC,KAAK,EAAE,KAAK;IAGxB,SAAS,CAAC,aAAa,IAAI,YAAY;cAMvB,KAAK,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;CAItE"}
package/dist/base.js DELETED
@@ -1,19 +0,0 @@
1
- export class BaseWriteModule {
2
- walletClient;
3
- chain;
4
- constructor(walletClient, chain) {
5
- this.walletClient = walletClient;
6
- this.chain = chain;
7
- }
8
- requireWallet() {
9
- if (!this.walletClient)
10
- throw new Error("WalletClient required for write operations");
11
- return this.walletClient;
12
- }
13
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
- async write(params) {
15
- const wallet = this.requireWallet();
16
- return wallet.writeContract({ chain: this.chain, ...params });
17
- }
18
- }
19
- //# sourceMappingURL=base.js.map
package/dist/base.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"base.js","sourceRoot":"","sources":["../src/base.ts"],"names":[],"mappings":"AAEA,MAAM,OAAgB,eAAe;IAEvB;IACA;IAFZ,YACY,YAAsC,EACtC,KAAY;QADZ,iBAAY,GAAZ,YAAY,CAA0B;QACtC,UAAK,GAAL,KAAK,CAAO;IACrB,CAAC;IAEM,aAAa;QACrB,IAAI,CAAC,IAAI,CAAC,YAAY;YAAE,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,YAAY,CAAC;IAC3B,CAAC;IAED,8DAA8D;IACpD,KAAK,CAAC,KAAK,CAAC,MAA+B;QACnD,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QACpC,OAAO,MAAM,CAAC,aAAa,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,MAAM,EAAS,CAAC,CAAC;IACvE,CAAC;CACF"}