@misofm/platform 0.22.0 → 0.22.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.
package/dist/walrus.d.ts CHANGED
@@ -30,4 +30,12 @@ export type WalrusNetwork = "testnet" | "mainnet";
30
30
  * (`cdn.miso.fm`) will front this later; the URL shape stays the same.
31
31
  */
32
32
  export declare function walrusAggregatorUrl(network: WalrusNetwork): string;
33
+ /**
34
+ * Miso's private Walrus publisher for a network, the storage counterpart of
35
+ * the Onara gas sponsors. Reachable only from the Fly organization network
36
+ * (WireGuard or a machine inside it); it pays SUI and WAL from its own wallet.
37
+ */
38
+ export declare function walrusPublisherUrl(network: WalrusNetwork): string;
39
+ /** Query string every Miso upload sends to the publisher: permanent, shared, four epochs. */
40
+ export declare function walrusPublishQuery(): string;
33
41
  //# sourceMappingURL=walrus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"walrus.d.ts","sourceRoot":"","sources":["../src/walrus.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAElE"}
1
+ {"version":3,"file":"walrus.d.ts","sourceRoot":"","sources":["../src/walrus.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,eAAe,OAAO,CAAC;AAEpC;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,mBAAmB,OAAO,CAAC;AAExC,MAAM,MAAM,aAAa,GAAG,SAAS,GAAG,SAAS,CAAC;AAElD;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAElE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAEjE;AAED,6FAA6F;AAC7F,wBAAgB,kBAAkB,IAAI,MAAM,CAE3C"}
package/dist/walrus.js CHANGED
@@ -33,4 +33,16 @@ export const WALRUS_BLOBS_SHARED = true;
33
33
  export function walrusAggregatorUrl(network) {
34
34
  return `https://aggregator.${network}.walrus.mirai.cloud`;
35
35
  }
36
+ /**
37
+ * Miso's private Walrus publisher for a network, the storage counterpart of
38
+ * the Onara gas sponsors. Reachable only from the Fly organization network
39
+ * (WireGuard or a machine inside it); it pays SUI and WAL from its own wallet.
40
+ */
41
+ export function walrusPublisherUrl(network) {
42
+ return `http://walrus-publisher-${network}.flycast`;
43
+ }
44
+ /** Query string every Miso upload sends to the publisher: permanent, shared, four epochs. */
45
+ export function walrusPublishQuery() {
46
+ return `epochs=${WALRUS_STORAGE_EPOCHS}&permanent=true&share=true`;
47
+ }
36
48
  //# sourceMappingURL=walrus.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"walrus.js","sourceRoot":"","sources":["../src/walrus.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAEtC;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC;AAC5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAIxC;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAsB;IACxD,OAAO,sBAAsB,OAAO,qBAAqB,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"walrus.js","sourceRoot":"","sources":["../src/walrus.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,sCAAsC;AAEtC;;;;GAIG;AAEH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,CAAC;AAEpC;;;;;GAKG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC;AAEvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,KAAK,CAAC;AAC5C,MAAM,CAAC,MAAM,mBAAmB,GAAG,IAAI,CAAC;AAIxC;;;GAGG;AACH,MAAM,UAAU,mBAAmB,CAAC,OAAsB;IACxD,OAAO,sBAAsB,OAAO,qBAAqB,CAAC;AAC5D,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAAsB;IACvD,OAAO,2BAA2B,OAAO,UAAU,CAAC;AACtD,CAAC;AAED,6FAA6F;AAC7F,MAAM,UAAU,kBAAkB;IAChC,OAAO,UAAU,qBAAqB,4BAA4B,CAAC;AACrE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@misofm/platform",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "packageManager": "bun@1.4.0",
5
5
  "description": "Complete client SDK for the Miso platform on Sui \u2014 high-level reads, pressings, listings, records, and work publishing.",
6
6
  "license": "Apache-2.0",
@@ -134,7 +134,7 @@
134
134
  },
135
135
  "dependencies": {
136
136
  "@misofm/streaming": "0.1.0",
137
- "@misofm/protocol": "0.15.0",
137
+ "@misofm/protocol": "0.16.0",
138
138
  "@mysten/bcs": "^2.1.1"
139
139
  },
140
140
  "devDependencies": {
package/src/walrus.ts CHANGED
@@ -40,3 +40,17 @@ export type WalrusNetwork = "testnet" | "mainnet";
40
40
  export function walrusAggregatorUrl(network: WalrusNetwork): string {
41
41
  return `https://aggregator.${network}.walrus.mirai.cloud`;
42
42
  }
43
+
44
+ /**
45
+ * Miso's private Walrus publisher for a network, the storage counterpart of
46
+ * the Onara gas sponsors. Reachable only from the Fly organization network
47
+ * (WireGuard or a machine inside it); it pays SUI and WAL from its own wallet.
48
+ */
49
+ export function walrusPublisherUrl(network: WalrusNetwork): string {
50
+ return `http://walrus-publisher-${network}.flycast`;
51
+ }
52
+
53
+ /** Query string every Miso upload sends to the publisher: permanent, shared, four epochs. */
54
+ export function walrusPublishQuery(): string {
55
+ return `epochs=${WALRUS_STORAGE_EPOCHS}&permanent=true&share=true`;
56
+ }