@zing-protocol/zing-sdk 0.0.11 → 0.0.12

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.
@@ -48,6 +48,43 @@ export declare const PublishArticleEvent: MoveStruct<{
48
48
  }, "0x2::vec_map::VecMap<string, @local-pkg/zing_studio::article::File>">;
49
49
  timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
50
50
  }, "@local-pkg/zing_studio::article::PublishArticleEvent">;
51
+ export declare const PublishArticleEventV1: MoveStruct<{
52
+ article_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
53
+ owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
+ subscription_level: import("@mysten/sui/bcs").BcsType<number | null, number | null | undefined, "Option<u8>">;
55
+ blob_ids: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
56
+ length: number;
57
+ }, string>;
58
+ blob_sizes: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
59
+ length: number;
60
+ }, string>;
61
+ blob_storage_sizes: import("@mysten/sui/bcs").BcsType<string[], Iterable<string | number | bigint> & {
62
+ length: number;
63
+ }, string>;
64
+ blob_end_epochs: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
65
+ length: number;
66
+ }, string>;
67
+ files: MoveStruct<{
68
+ contents: import("@mysten/sui/bcs").BcsType<{
69
+ key: string;
70
+ value: {
71
+ blob_index: string;
72
+ mime_type: string;
73
+ size: string;
74
+ };
75
+ }[], Iterable<{
76
+ key: string;
77
+ value: {
78
+ blob_index: string | number | bigint;
79
+ mime_type: string;
80
+ size: string | number | bigint;
81
+ };
82
+ }> & {
83
+ length: number;
84
+ }, string>;
85
+ }, "0x2::vec_map::VecMap<string, @local-pkg/zing_studio::article::File>">;
86
+ timestamp_ms: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
87
+ }, "@local-pkg/zing_studio::article::PublishArticleEventV1">;
51
88
  export declare const BurnArticleEvent: MoveStruct<{
52
89
  article_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
53
90
  owner: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
@@ -34,6 +34,20 @@ export const PublishArticleEvent = new MoveStruct({
34
34
  timestamp_ms: bcs.u64(),
35
35
  },
36
36
  });
37
+ export const PublishArticleEventV1 = new MoveStruct({
38
+ name: `${$moduleName}::PublishArticleEventV1`,
39
+ fields: {
40
+ article_id: bcs.Address,
41
+ owner: bcs.Address,
42
+ subscription_level: bcs.option(bcs.u8()),
43
+ blob_ids: bcs.vector(bcs.u256()),
44
+ blob_sizes: bcs.vector(bcs.u64()),
45
+ blob_storage_sizes: bcs.vector(bcs.u64()),
46
+ blob_end_epochs: bcs.vector(bcs.u32()),
47
+ files: vec_map.VecMap(bcs.string(), File),
48
+ timestamp_ms: bcs.u64(),
49
+ },
50
+ });
37
51
  export const BurnArticleEvent = new MoveStruct({
38
52
  name: `${$moduleName}::BurnArticleEvent`,
39
53
  fields: {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@zing-protocol/zing-sdk",
3
3
  "sideEffects": false,
4
4
  "type": "module",
5
- "version": "0.0.11",
5
+ "version": "0.0.12",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
8
8
  "exports": {