@zing-protocol/zing-sdk 0.0.1 → 0.0.2

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.
Files changed (227) hide show
  1. package/dist/_generated/index.js +6 -0
  2. package/dist/_generated/utils/index.d.ts +12 -0
  3. package/dist/_generated/utils/index.js +135 -0
  4. package/dist/_generated/zing_framework/coin_utils.d.ts +15 -0
  5. package/dist/_generated/zing_framework/coin_utils.js +19 -0
  6. package/dist/_generated/zing_framework/deps/sui/object.d.ts +8 -0
  7. package/{src/_generated/zing_governance/deps/sui/object.ts → dist/_generated/zing_framework/deps/sui/object.js} +4 -7
  8. package/dist/_generated/zing_framework/derived_object_bag.d.ts +166 -0
  9. package/dist/_generated/zing_framework/derived_object_bag.js +221 -0
  10. package/dist/_generated/zing_framework/derived_table.d.ts +153 -0
  11. package/dist/_generated/zing_framework/derived_table.js +200 -0
  12. package/dist/_generated/zing_governance/admin.d.ts +20 -0
  13. package/dist/_generated/zing_governance/admin.js +26 -0
  14. package/dist/_generated/zing_governance/deps/sui/object.d.ts +8 -0
  15. package/{src/_generated/zing_identity/deps/sui/object.ts → dist/_generated/zing_governance/deps/sui/object.js} +4 -7
  16. package/dist/_generated/zing_governance/treasury.d.ts +56 -0
  17. package/dist/_generated/zing_governance/treasury.js +78 -0
  18. package/dist/_generated/zing_identity/config.d.ts +87 -0
  19. package/dist/_generated/zing_identity/config.js +98 -0
  20. package/{src/_generated/zing_studio/deps/std/type_name.ts → dist/_generated/zing_identity/deps/std/type_name.d.ts} +3 -11
  21. package/dist/_generated/zing_identity/deps/std/type_name.js +22 -0
  22. package/dist/_generated/zing_identity/deps/sui/object.d.ts +8 -0
  23. package/{src/_generated/zing_studio/deps/sui/object.ts → dist/_generated/zing_identity/deps/sui/object.js} +4 -7
  24. package/dist/_generated/zing_identity/deps/sui/object_table.d.ts +12 -0
  25. package/{src/_generated/zing_identity/deps/sui/object_table.ts → dist/_generated/zing_identity/deps/sui/object_table.js} +7 -10
  26. package/dist/_generated/zing_identity/deps/sui/table.d.ts +12 -0
  27. package/{src/_generated/zing_studio/deps/sui/table.ts → dist/_generated/zing_identity/deps/sui/table.js} +7 -10
  28. package/{src/_generated/zing_identity/deps/sui/vec_set.ts → dist/_generated/zing_identity/deps/sui/vec_set.d.ts} +3 -14
  29. package/dist/_generated/zing_identity/deps/sui/vec_set.js +22 -0
  30. package/dist/_generated/zing_identity/ecdsa.d.ts +81 -0
  31. package/dist/_generated/zing_identity/ecdsa.js +87 -0
  32. package/dist/_generated/zing_identity/identity.d.ts +262 -0
  33. package/dist/_generated/zing_identity/identity.js +294 -0
  34. package/dist/_generated/zing_identity/reclaim.d.ts +356 -0
  35. package/dist/_generated/zing_identity/reclaim.js +414 -0
  36. package/dist/_generated/zing_studio/app.d.ts +351 -0
  37. package/dist/_generated/zing_studio/app.js +451 -0
  38. package/dist/_generated/zing_studio/article.d.ts +331 -0
  39. package/dist/_generated/zing_studio/article.js +331 -0
  40. package/dist/_generated/zing_studio/config.d.ts +203 -0
  41. package/dist/_generated/zing_studio/config.js +233 -0
  42. package/{src/_generated/zing_identity/deps/std/type_name.ts → dist/_generated/zing_studio/deps/std/type_name.d.ts} +3 -11
  43. package/dist/_generated/zing_studio/deps/std/type_name.js +22 -0
  44. package/dist/_generated/zing_studio/deps/sui/bag.d.ts +12 -0
  45. package/{src/_generated/zing_studio/deps/sui/bag.ts → dist/_generated/zing_studio/deps/sui/bag.js} +7 -10
  46. package/dist/_generated/zing_studio/deps/sui/balance.d.ts +12 -0
  47. package/{src/_generated/zing_studio/deps/sui/balance.ts → dist/_generated/zing_studio/deps/sui/balance.js} +4 -7
  48. package/dist/_generated/zing_studio/deps/sui/coin.d.ts +12 -0
  49. package/{src/_generated/zing_studio/deps/sui/coin.ts → dist/_generated/zing_studio/deps/sui/coin.js} +5 -8
  50. package/dist/_generated/zing_studio/deps/sui/dynamic_field.d.ts +126 -0
  51. package/dist/_generated/zing_studio/deps/sui/dynamic_field.js +140 -0
  52. package/dist/_generated/zing_studio/deps/sui/object.d.ts +8 -0
  53. package/{src/_generated/zing_framework/deps/sui/object.ts → dist/_generated/zing_studio/deps/sui/object.js} +4 -7
  54. package/dist/_generated/zing_studio/deps/sui/table.d.ts +12 -0
  55. package/{src/_generated/zing_identity/deps/sui/table.ts → dist/_generated/zing_studio/deps/sui/table.js} +7 -10
  56. package/dist/_generated/zing_studio/deps/sui/vec_map.d.ts +30 -0
  57. package/{src/_generated/zing_studio/deps/sui/vec_map.ts → dist/_generated/zing_studio/deps/sui/vec_map.js} +15 -21
  58. package/{src/_generated/zing_studio/deps/sui/vec_set.ts → dist/_generated/zing_studio/deps/sui/vec_set.d.ts} +3 -14
  59. package/dist/_generated/zing_studio/deps/sui/vec_set.js +22 -0
  60. package/dist/_generated/zing_studio/deps/walrus/blob.d.ts +20 -0
  61. package/{src/_generated/zing_studio/deps/walrus/blob.ts → dist/_generated/zing_studio/deps/walrus/blob.js} +11 -12
  62. package/dist/_generated/zing_studio/deps/walrus/events.d.ts +83 -0
  63. package/dist/_generated/zing_studio/deps/walrus/events.js +122 -0
  64. package/dist/_generated/zing_studio/deps/walrus/metadata.d.ts +71 -0
  65. package/dist/_generated/zing_studio/deps/walrus/metadata.js +73 -0
  66. package/dist/_generated/zing_studio/deps/walrus/storage_resource.d.ts +12 -0
  67. package/{src/_generated/zing_studio/deps/walrus/storage_resource.ts → dist/_generated/zing_studio/deps/walrus/storage_resource.js} +7 -8
  68. package/dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.d.ts +12 -0
  69. package/{src/_generated/zing_studio/deps/zing_framework/derived_object_bag.ts → dist/_generated/zing_studio/deps/zing_framework/derived_object_bag.js} +7 -8
  70. package/dist/_generated/zing_studio/deps/zing_framework/derived_table.d.ts +12 -0
  71. package/{src/_generated/zing_studio/deps/zing_framework/derived_table.ts → dist/_generated/zing_studio/deps/zing_framework/derived_table.js} +7 -8
  72. package/dist/_generated/zing_studio/donation.d.ts +24 -0
  73. package/{src/_generated/zing_studio/donation.ts → dist/_generated/zing_studio/donation.js} +7 -8
  74. package/dist/_generated/zing_studio/enclave.d.ts +187 -0
  75. package/dist/_generated/zing_studio/enclave.js +231 -0
  76. package/dist/_generated/zing_studio/nitro_attestation.d.ts +148 -0
  77. package/dist/_generated/zing_studio/nitro_attestation.js +183 -0
  78. package/dist/_generated/zing_studio/referral.d.ts +166 -0
  79. package/dist/_generated/zing_studio/referral.js +224 -0
  80. package/dist/_generated/zing_studio/storage.d.ts +327 -0
  81. package/dist/_generated/zing_studio/storage.js +365 -0
  82. package/dist/_generated/zing_studio/studio.d.ts +282 -0
  83. package/dist/_generated/zing_studio/studio.js +360 -0
  84. package/dist/bcs.d.ts +61 -0
  85. package/dist/bcs.js +109 -0
  86. package/dist/client/index.d.ts +228 -0
  87. package/dist/client/index.js +296 -0
  88. package/dist/client/types.d.ts +23 -0
  89. package/dist/client/types.js +1 -0
  90. package/dist/components/index.js +3 -0
  91. package/dist/components/wallet-provider.d.ts +7 -0
  92. package/dist/components/wallet-provider.js +33 -0
  93. package/dist/components/walrus-provider.d.ts +31 -0
  94. package/dist/components/walrus-provider.js +71 -0
  95. package/dist/components/zing-provider.d.ts +15 -0
  96. package/dist/components/zing-provider.js +22 -0
  97. package/dist/config/common.d.ts +23 -0
  98. package/dist/config/common.js +61 -0
  99. package/dist/config/index.d.ts +8 -0
  100. package/dist/config/index.js +28 -0
  101. package/dist/config/mainnet.d.ts +6 -0
  102. package/dist/config/mainnet.js +80 -0
  103. package/dist/config/testnet.d.ts +6 -0
  104. package/dist/config/testnet.js +81 -0
  105. package/dist/config/types.d.ts +49 -0
  106. package/dist/config/types.js +1 -0
  107. package/dist/const.d.ts +4 -0
  108. package/dist/const.js +25 -0
  109. package/dist/getters.d.ts +228 -0
  110. package/dist/getters.js +317 -0
  111. package/{src/hooks/index.ts → dist/hooks/index.d.ts} +2 -3
  112. package/dist/hooks/index.js +9 -0
  113. package/dist/hooks/useGetStudio.d.ts +26 -0
  114. package/dist/hooks/useGetStudio.js +17 -0
  115. package/dist/hooks/useGetTierPlan.d.ts +7 -0
  116. package/dist/hooks/useGetTierPlan.js +85 -0
  117. package/dist/hooks/useReclaim.d.ts +12 -0
  118. package/dist/hooks/useReclaim.js +87 -0
  119. package/dist/hooks/useSignAndExecuteTransaction.d.ts +6 -0
  120. package/dist/hooks/useSignAndExecuteTransaction.js +40 -0
  121. package/dist/hooks/useSignPersonalMessage.d.ts +8 -0
  122. package/dist/hooks/useSignPersonalMessage.js +21 -0
  123. package/dist/hooks/useZingInfiniteQueries.d.ts +75 -0
  124. package/dist/hooks/useZingInfiniteQueries.js +28 -0
  125. package/dist/hooks/useZingMutation.d.ts +35 -0
  126. package/dist/hooks/useZingMutation.js +37 -0
  127. package/dist/hooks/useZingQueries.d.ts +127 -0
  128. package/dist/hooks/useZingQueries.js +37 -0
  129. package/dist/hooks/useZingQuery.d.ts +147 -0
  130. package/dist/hooks/useZingQuery.js +34 -0
  131. package/{src/index.ts → dist/index.d.ts} +2 -3
  132. package/dist/index.js +9 -0
  133. package/dist/lib/utils/colorful-logger.d.ts +2 -0
  134. package/dist/lib/utils/colorful-logger.js +23 -0
  135. package/dist/lib/utils/const.d.ts +25 -0
  136. package/dist/lib/utils/const.js +25 -0
  137. package/dist/lib/utils/helpers.d.ts +10 -0
  138. package/dist/lib/utils/helpers.js +49 -0
  139. package/dist/lib/utils/index.js +4 -0
  140. package/dist/lib/utils/init-app-with-shadow.d.ts +6 -0
  141. package/dist/lib/utils/init-app-with-shadow.js +28 -0
  142. package/dist/lib/utils/quilt.d.ts +61 -0
  143. package/dist/lib/utils/quilt.js +194 -0
  144. package/dist/lib/utils/reclaim.d.ts +29 -0
  145. package/dist/lib/utils/reclaim.js +88 -0
  146. package/dist/lib/utils/types.d.ts +5 -0
  147. package/dist/lib/utils/types.js +1 -0
  148. package/dist/mutations/index.js +3 -0
  149. package/dist/mutations/seal.d.ts +12 -0
  150. package/dist/mutations/seal.js +41 -0
  151. package/dist/mutations/signer.d.ts +10 -0
  152. package/dist/mutations/signer.js +176 -0
  153. package/dist/mutations/walrus.d.ts +98 -0
  154. package/dist/mutations/walrus.js +488 -0
  155. package/dist/stores/index.js +3 -0
  156. package/dist/stores/walletStore.d.ts +48 -0
  157. package/dist/stores/walletStore.js +232 -0
  158. package/dist/stores/walrusStore.d.ts +28 -0
  159. package/dist/stores/walrusStore.js +61 -0
  160. package/dist/stores/zkloginStore.d.ts +28 -0
  161. package/dist/stores/zkloginStore.js +27 -0
  162. package/dist/types.d.ts +99 -0
  163. package/dist/types.js +1 -0
  164. package/package.json +14 -6
  165. package/src/_generated/utils/index.ts +0 -181
  166. package/src/_generated/zing_framework/coin_utils.ts +0 -41
  167. package/src/_generated/zing_framework/derived_object_bag.ts +0 -400
  168. package/src/_generated/zing_framework/derived_table.ts +0 -366
  169. package/src/_generated/zing_governance/admin.ts +0 -47
  170. package/src/_generated/zing_governance/treasury.ts +0 -134
  171. package/src/_generated/zing_identity/config.ts +0 -191
  172. package/src/_generated/zing_identity/ecdsa.ts +0 -166
  173. package/src/_generated/zing_identity/identity.ts +0 -661
  174. package/src/_generated/zing_identity/reclaim.ts +0 -803
  175. package/src/_generated/zing_studio/app.ts +0 -855
  176. package/src/_generated/zing_studio/article.ts +0 -598
  177. package/src/_generated/zing_studio/config.ts +0 -475
  178. package/src/_generated/zing_studio/deps/sui/dynamic_field.ts +0 -272
  179. package/src/_generated/zing_studio/deps/walrus/events.ts +0 -124
  180. package/src/_generated/zing_studio/deps/walrus/metadata.ts +0 -137
  181. package/src/_generated/zing_studio/enclave.ts +0 -466
  182. package/src/_generated/zing_studio/nitro_attestation.ts +0 -308
  183. package/src/_generated/zing_studio/referral.ts +0 -447
  184. package/src/_generated/zing_studio/storage.ts +0 -664
  185. package/src/_generated/zing_studio/studio.ts +0 -682
  186. package/src/bcs.ts +0 -139
  187. package/src/client/index.ts +0 -557
  188. package/src/client/types.ts +0 -28
  189. package/src/components/wallet-provider.tsx +0 -53
  190. package/src/components/walrus-provider.tsx +0 -212
  191. package/src/components/zing-provider.tsx +0 -54
  192. package/src/config/common.ts +0 -82
  193. package/src/config/index.ts +0 -45
  194. package/src/config/mainnet.ts +0 -109
  195. package/src/config/testnet.ts +0 -111
  196. package/src/config/types.ts +0 -69
  197. package/src/const.ts +0 -32
  198. package/src/getters.ts +0 -523
  199. package/src/hooks/useGetStudio.ts +0 -22
  200. package/src/hooks/useGetTierPlan.ts +0 -115
  201. package/src/hooks/useReclaim.ts +0 -165
  202. package/src/hooks/useSignAndExecuteTransaction.ts +0 -57
  203. package/src/hooks/useSignPersonalMessage.ts +0 -28
  204. package/src/hooks/useZingInfiniteQueries.ts +0 -92
  205. package/src/hooks/useZingMutation.ts +0 -66
  206. package/src/hooks/useZingQueries.ts +0 -107
  207. package/src/hooks/useZingQuery.ts +0 -88
  208. package/src/lib/utils/colorful-logger.ts +0 -27
  209. package/src/lib/utils/const.ts +0 -25
  210. package/src/lib/utils/helpers.ts +0 -78
  211. package/src/lib/utils/init-app-with-shadow.ts +0 -42
  212. package/src/lib/utils/quilt.ts +0 -317
  213. package/src/lib/utils/reclaim.ts +0 -148
  214. package/src/lib/utils/types.ts +0 -14
  215. package/src/mutations/seal.ts +0 -78
  216. package/src/mutations/signer.ts +0 -241
  217. package/src/mutations/walrus.ts +0 -862
  218. package/src/stores/walletStore.ts +0 -360
  219. package/src/stores/walrusStore.ts +0 -118
  220. package/src/stores/zkloginStore.ts +0 -53
  221. package/src/types.ts +0 -120
  222. package/tsconfig.json +0 -12
  223. /package/{src/_generated/index.js → dist/_generated/index.d.ts} +0 -0
  224. /package/{src/components/index.ts → dist/components/index.d.ts} +0 -0
  225. /package/{src/lib/utils/index.ts → dist/lib/utils/index.d.ts} +0 -0
  226. /package/{src/mutations/index.ts → dist/mutations/index.d.ts} +0 -0
  227. /package/{src/stores/index.ts → dist/stores/index.d.ts} +0 -0
@@ -0,0 +1,126 @@
1
+ import { MoveStruct } from "../../../utils/index.js";
2
+ import type { RawTransactionArgument } from "../../../utils/index.js";
3
+ import type { BcsType } from "@mysten/sui/bcs";
4
+ import type { Transaction } from "@mysten/sui/transactions";
5
+ /** Internal object used for storing the field and value */
6
+ export declare function Field<Name extends BcsType<any>, Value extends BcsType<any>>(...typeParameters: [Name, Value]): MoveStruct<{
7
+ /**
8
+ * Determined by the hash of the object ID, the field name value and it's type,
9
+ * i.e. hash(parent.id || name || Name)
10
+ */
11
+ id: MoveStruct<{
12
+ id: BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
13
+ }, "0x2::object::UID">;
14
+ /** The value for the name of this field */
15
+ name: Name;
16
+ /** The value bound to this field */
17
+ value: Value;
18
+ }, `@local-pkg/suiii::dynamic_field::Field<${Name["name"]}, ${Value["name"]}>`>;
19
+ export interface BorrowArguments<Name extends BcsType<any>> {
20
+ object: RawTransactionArgument<string>;
21
+ name: RawTransactionArgument<Name>;
22
+ }
23
+ export interface BorrowOptions<Name extends BcsType<any>> {
24
+ package?: string;
25
+ arguments: BorrowArguments<Name> | [
26
+ object: RawTransactionArgument<string>,
27
+ name: RawTransactionArgument<Name>
28
+ ];
29
+ typeArguments: [string, string];
30
+ }
31
+ /**
32
+ * Immutably borrows the `object`s dynamic field with the name specified by
33
+ * `name: Name`. Aborts with `EFieldDoesNotExist` if the object does not have a
34
+ * field with that name. Aborts with `EFieldTypeMismatch` if the field exists, but
35
+ * the value does not have the specified type.
36
+ */
37
+ export declare function borrow<Name extends BcsType<any>>(options: BorrowOptions<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
38
+ export interface BorrowMutArguments<Name extends BcsType<any>> {
39
+ object: RawTransactionArgument<string>;
40
+ name: RawTransactionArgument<Name>;
41
+ }
42
+ export interface BorrowMutOptions<Name extends BcsType<any>> {
43
+ package?: string;
44
+ arguments: BorrowMutArguments<Name> | [
45
+ object: RawTransactionArgument<string>,
46
+ name: RawTransactionArgument<Name>
47
+ ];
48
+ typeArguments: [string, string];
49
+ }
50
+ /**
51
+ * Mutably borrows the `object`s dynamic field with the name specified by
52
+ * `name: Name`. Aborts with `EFieldDoesNotExist` if the object does not have a
53
+ * field with that name. Aborts with `EFieldTypeMismatch` if the field exists, but
54
+ * the value does not have the specified type.
55
+ */
56
+ export declare function borrowMut<Name extends BcsType<any>>(options: BorrowMutOptions<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
57
+ export interface RemoveArguments<Name extends BcsType<any>> {
58
+ object: RawTransactionArgument<string>;
59
+ name: RawTransactionArgument<Name>;
60
+ }
61
+ export interface RemoveOptions<Name extends BcsType<any>> {
62
+ package?: string;
63
+ arguments: RemoveArguments<Name> | [
64
+ object: RawTransactionArgument<string>,
65
+ name: RawTransactionArgument<Name>
66
+ ];
67
+ typeArguments: [string, string];
68
+ }
69
+ /**
70
+ * Removes the `object`s dynamic field with the name specified by `name: Name` and
71
+ * returns the bound value. Aborts with `EFieldDoesNotExist` if the object does not
72
+ * have a field with that name. Aborts with `EFieldTypeMismatch` if the field
73
+ * exists, but the value does not have the specified type.
74
+ */
75
+ export declare function remove<Name extends BcsType<any>>(options: RemoveOptions<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
76
+ export interface Exists_Arguments<Name extends BcsType<any>> {
77
+ object: RawTransactionArgument<string>;
78
+ name: RawTransactionArgument<Name>;
79
+ }
80
+ export interface Exists_Options<Name extends BcsType<any>> {
81
+ package?: string;
82
+ arguments: Exists_Arguments<Name> | [
83
+ object: RawTransactionArgument<string>,
84
+ name: RawTransactionArgument<Name>
85
+ ];
86
+ typeArguments: [string];
87
+ }
88
+ /**
89
+ * Returns true if and only if the `object` has a dynamic field with the name
90
+ * specified by `name: Name` but without specifying the `Value` type
91
+ */
92
+ export declare function exists_<Name extends BcsType<any>>(options: Exists_Options<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
93
+ export interface RemoveIfExistsArguments<Name extends BcsType<any>> {
94
+ object: RawTransactionArgument<string>;
95
+ name: RawTransactionArgument<Name>;
96
+ }
97
+ export interface RemoveIfExistsOptions<Name extends BcsType<any>> {
98
+ package?: string;
99
+ arguments: RemoveIfExistsArguments<Name> | [
100
+ object: RawTransactionArgument<string>,
101
+ name: RawTransactionArgument<Name>
102
+ ];
103
+ typeArguments: [string, string];
104
+ }
105
+ /**
106
+ * Removes the dynamic field if it exists. Returns the `some(Value)` if it exists
107
+ * or none otherwise.
108
+ */
109
+ export declare function removeIfExists<Name extends BcsType<any>>(options: RemoveIfExistsOptions<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
110
+ export interface ExistsWithTypeArguments<Name extends BcsType<any>> {
111
+ object: RawTransactionArgument<string>;
112
+ name: RawTransactionArgument<Name>;
113
+ }
114
+ export interface ExistsWithTypeOptions<Name extends BcsType<any>> {
115
+ package?: string;
116
+ arguments: ExistsWithTypeArguments<Name> | [
117
+ object: RawTransactionArgument<string>,
118
+ name: RawTransactionArgument<Name>
119
+ ];
120
+ typeArguments: [string, string];
121
+ }
122
+ /**
123
+ * Returns true if and only if the `object` has a dynamic field with the name
124
+ * specified by `name: Name` with an assigned value of type `Value`.
125
+ */
126
+ export declare function existsWithType<Name extends BcsType<any>>(options: ExistsWithTypeOptions<Name>): (tx: Transaction) => import("@mysten/sui/transactions").TransactionResult;
@@ -0,0 +1,140 @@
1
+ import * as object from "./object.js";
2
+ import { MoveStruct, normalizeMoveArguments } from "../../../utils/index.js";
3
+ const $moduleName = "@local-pkg/suiii::dynamic_field";
4
+ /** Internal object used for storing the field and value */
5
+ export function Field(...typeParameters) {
6
+ return new MoveStruct({
7
+ name: `${$moduleName}::Field<${typeParameters[0].name}, ${typeParameters[1].name}>`,
8
+ fields: {
9
+ /**
10
+ * Determined by the hash of the object ID, the field name value and it's type,
11
+ * i.e. hash(parent.id || name || Name)
12
+ */
13
+ id: object.UID,
14
+ /** The value for the name of this field */
15
+ name: typeParameters[0],
16
+ /** The value bound to this field */
17
+ value: typeParameters[1],
18
+ },
19
+ });
20
+ }
21
+ /**
22
+ * Immutably borrows the `object`s dynamic field with the name specified by
23
+ * `name: Name`. Aborts with `EFieldDoesNotExist` if the object does not have a
24
+ * field with that name. Aborts with `EFieldTypeMismatch` if the field exists, but
25
+ * the value does not have the specified type.
26
+ */
27
+ export function borrow(options) {
28
+ const packageAddress = options.package ?? "@local-pkg/suiii";
29
+ const argumentsTypes = [
30
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
31
+ `${options.typeArguments[0]}`,
32
+ ];
33
+ const parameterNames = ["object", "name"];
34
+ return (tx) => tx.moveCall({
35
+ package: packageAddress,
36
+ module: "dynamic_field",
37
+ function: "borrow",
38
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
39
+ typeArguments: options.typeArguments,
40
+ });
41
+ }
42
+ /**
43
+ * Mutably borrows the `object`s dynamic field with the name specified by
44
+ * `name: Name`. Aborts with `EFieldDoesNotExist` if the object does not have a
45
+ * field with that name. Aborts with `EFieldTypeMismatch` if the field exists, but
46
+ * the value does not have the specified type.
47
+ */
48
+ export function borrowMut(options) {
49
+ const packageAddress = options.package ?? "@local-pkg/suiii";
50
+ const argumentsTypes = [
51
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
52
+ `${options.typeArguments[0]}`,
53
+ ];
54
+ const parameterNames = ["object", "name"];
55
+ return (tx) => tx.moveCall({
56
+ package: packageAddress,
57
+ module: "dynamic_field",
58
+ function: "borrow_mut",
59
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
60
+ typeArguments: options.typeArguments,
61
+ });
62
+ }
63
+ /**
64
+ * Removes the `object`s dynamic field with the name specified by `name: Name` and
65
+ * returns the bound value. Aborts with `EFieldDoesNotExist` if the object does not
66
+ * have a field with that name. Aborts with `EFieldTypeMismatch` if the field
67
+ * exists, but the value does not have the specified type.
68
+ */
69
+ export function remove(options) {
70
+ const packageAddress = options.package ?? "@local-pkg/suiii";
71
+ const argumentsTypes = [
72
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
73
+ `${options.typeArguments[0]}`,
74
+ ];
75
+ const parameterNames = ["object", "name"];
76
+ return (tx) => tx.moveCall({
77
+ package: packageAddress,
78
+ module: "dynamic_field",
79
+ function: "remove",
80
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
81
+ typeArguments: options.typeArguments,
82
+ });
83
+ }
84
+ /**
85
+ * Returns true if and only if the `object` has a dynamic field with the name
86
+ * specified by `name: Name` but without specifying the `Value` type
87
+ */
88
+ export function exists_(options) {
89
+ const packageAddress = options.package ?? "@local-pkg/suiii";
90
+ const argumentsTypes = [
91
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
92
+ `${options.typeArguments[0]}`,
93
+ ];
94
+ const parameterNames = ["object", "name"];
95
+ return (tx) => tx.moveCall({
96
+ package: packageAddress,
97
+ module: "dynamic_field",
98
+ function: "exists_",
99
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
100
+ typeArguments: options.typeArguments,
101
+ });
102
+ }
103
+ /**
104
+ * Removes the dynamic field if it exists. Returns the `some(Value)` if it exists
105
+ * or none otherwise.
106
+ */
107
+ export function removeIfExists(options) {
108
+ const packageAddress = options.package ?? "@local-pkg/suiii";
109
+ const argumentsTypes = [
110
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
111
+ `${options.typeArguments[0]}`,
112
+ ];
113
+ const parameterNames = ["object", "name"];
114
+ return (tx) => tx.moveCall({
115
+ package: packageAddress,
116
+ module: "dynamic_field",
117
+ function: "remove_if_exists",
118
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
119
+ typeArguments: options.typeArguments,
120
+ });
121
+ }
122
+ /**
123
+ * Returns true if and only if the `object` has a dynamic field with the name
124
+ * specified by `name: Name` with an assigned value of type `Value`.
125
+ */
126
+ export function existsWithType(options) {
127
+ const packageAddress = options.package ?? "@local-pkg/suiii";
128
+ const argumentsTypes = [
129
+ "0x0000000000000000000000000000000000000000000000000000000000000002::object::UID",
130
+ `${options.typeArguments[0]}`,
131
+ ];
132
+ const parameterNames = ["object", "name"];
133
+ return (tx) => tx.moveCall({
134
+ package: packageAddress,
135
+ module: "dynamic_field",
136
+ function: "exists_with_type",
137
+ arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
138
+ typeArguments: options.typeArguments,
139
+ });
140
+ }
@@ -0,0 +1,8 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ /** Sui object identifiers */
5
+ import { MoveStruct } from "../../../utils/index.js";
6
+ export declare const UID: MoveStruct<{
7
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
8
+ }, "0x2::object::UID">;
@@ -1,16 +1,13 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
-
5
4
  /** Sui object identifiers */
6
-
7
5
  import { MoveStruct } from "../../../utils/index.js";
8
6
  import { bcs } from "@mysten/sui/bcs";
9
-
10
7
  const $moduleName = "0x2::object";
11
8
  export const UID = new MoveStruct({
12
- name: `${$moduleName}::UID`,
13
- fields: {
14
- id: bcs.Address,
15
- },
9
+ name: `${$moduleName}::UID`,
10
+ fields: {
11
+ id: bcs.Address,
12
+ },
16
13
  });
@@ -0,0 +1,12 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveStruct } from "../../../utils/index.js";
5
+ export declare const Table: MoveStruct<{
6
+ /** the ID of this table */
7
+ id: MoveStruct<{
8
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
9
+ }, "0x2::object::UID">;
10
+ /** the number of key-value pairs in the table */
11
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
12
+ }, "0x2::table::Table">;
@@ -1,7 +1,6 @@
1
1
  /**************************************************************
2
2
  * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
3
  **************************************************************/
4
-
5
4
  /**
6
5
  * A table is a map-like collection. But unlike a traditional collection, it's keys
7
6
  * and values are not stored within the `Table` value, but instead are stored using
@@ -21,18 +20,16 @@
21
20
  * assert!(&table1 != &table2);
22
21
  * ```
23
22
  */
24
-
25
23
  import * as object from "./object.js";
26
24
  import { MoveStruct } from "../../../utils/index.js";
27
25
  import { bcs } from "@mysten/sui/bcs";
28
-
29
26
  const $moduleName = "0x2::table";
30
27
  export const Table = new MoveStruct({
31
- name: `${$moduleName}::Table`,
32
- fields: {
33
- /** the ID of this table */
34
- id: object.UID,
35
- /** the number of key-value pairs in the table */
36
- size: bcs.u64(),
37
- },
28
+ name: `${$moduleName}::Table`,
29
+ fields: {
30
+ /** the ID of this table */
31
+ id: object.UID,
32
+ /** the number of key-value pairs in the table */
33
+ size: bcs.u64(),
34
+ },
38
35
  });
@@ -0,0 +1,30 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveStruct } from "../../../utils/index.js";
5
+ import type { BcsType } from "@mysten/sui/bcs";
6
+ /** An entry in the map */
7
+ export declare function Entry<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [K, V]): MoveStruct<{
8
+ key: K;
9
+ value: V;
10
+ }, `0x2::vec_map::Entry<${K["name"]}, ${V["name"]}>`>;
11
+ /**
12
+ * A map data structure backed by a vector. The map is guaranteed not to contain
13
+ * duplicate keys, but entries are _not_ sorted by key--entries are included in
14
+ * insertion order. All operations are O(N) in the size of the map--the intention
15
+ * of this data structure is only to provide the convenience of programming against
16
+ * a map API. Large maps should use handwritten parent/child relationships instead.
17
+ * Maps that need sorted iteration rather than insertion order iteration should
18
+ * also be handwritten.
19
+ */
20
+ export declare function VecMap<K extends BcsType<any>, V extends BcsType<any>>(...typeParameters: [K, V]): MoveStruct<{
21
+ contents: BcsType<{
22
+ key: K extends BcsType<infer U, any, string> ? U : never;
23
+ value: V extends BcsType<infer U, any, string> ? U : never;
24
+ }[], Iterable<{
25
+ key: K extends BcsType<any, infer U_1, string> ? U_1 : never;
26
+ value: V extends BcsType<any, infer U_1, string> ? U_1 : never;
27
+ }> & {
28
+ length: number;
29
+ }, string>;
30
+ }, `0x2::vec_map::VecMap<${K["name"]}, ${V["name"]}>`>;
@@ -3,20 +3,16 @@
3
3
  **************************************************************/
4
4
  import { MoveStruct } from "../../../utils/index.js";
5
5
  import { bcs } from "@mysten/sui/bcs";
6
- import type { BcsType } from "@mysten/sui/bcs";
7
-
8
6
  const $moduleName = "0x2::vec_map";
9
7
  /** An entry in the map */
10
- export function Entry<K extends BcsType<any>, V extends BcsType<any>>(
11
- ...typeParameters: [K, V]
12
- ) {
13
- return new MoveStruct({
14
- name: `${$moduleName}::Entry<${typeParameters[0].name as K["name"]}, ${typeParameters[1].name as V["name"]}>`,
15
- fields: {
16
- key: typeParameters[0],
17
- value: typeParameters[1],
18
- },
19
- });
8
+ export function Entry(...typeParameters) {
9
+ return new MoveStruct({
10
+ name: `${$moduleName}::Entry<${typeParameters[0].name}, ${typeParameters[1].name}>`,
11
+ fields: {
12
+ key: typeParameters[0],
13
+ value: typeParameters[1],
14
+ },
15
+ });
20
16
  }
21
17
  /**
22
18
  * A map data structure backed by a vector. The map is guaranteed not to contain
@@ -27,13 +23,11 @@ export function Entry<K extends BcsType<any>, V extends BcsType<any>>(
27
23
  * Maps that need sorted iteration rather than insertion order iteration should
28
24
  * also be handwritten.
29
25
  */
30
- export function VecMap<K extends BcsType<any>, V extends BcsType<any>>(
31
- ...typeParameters: [K, V]
32
- ) {
33
- return new MoveStruct({
34
- name: `${$moduleName}::VecMap<${typeParameters[0].name as K["name"]}, ${typeParameters[1].name as V["name"]}>`,
35
- fields: {
36
- contents: bcs.vector(Entry(typeParameters[0], typeParameters[1])),
37
- },
38
- });
26
+ export function VecMap(...typeParameters) {
27
+ return new MoveStruct({
28
+ name: `${$moduleName}::VecMap<${typeParameters[0].name}, ${typeParameters[1].name}>`,
29
+ fields: {
30
+ contents: bcs.vector(Entry(typeParameters[0], typeParameters[1])),
31
+ },
32
+ });
39
33
  }
@@ -4,8 +4,6 @@
4
4
  import { MoveStruct } from "../../../utils/index.js";
5
5
  import { bcs } from "@mysten/sui/bcs";
6
6
  import type { BcsType } from "@mysten/sui/bcs";
7
-
8
- const $moduleName = "0x2::vec_set";
9
7
  /**
10
8
  * A set data structure backed by a vector. The set is guaranteed not to contain
11
9
  * duplicate keys. All operations are O(N) in the size of the set
@@ -14,15 +12,6 @@ const $moduleName = "0x2::vec_set";
14
12
  * programming against a set API. Sets that need sorted iteration rather than
15
13
  * insertion order iteration should be handwritten.
16
14
  */
17
- export function VecSet<K extends BcsType<any>>(
18
- ...typeParameters: [K]
19
- ): MoveStruct<{
20
- contents: ReturnType<typeof bcs.vector<K>>;
21
- }> {
22
- return new MoveStruct({
23
- name: `${$moduleName}::VecSet<${typeParameters[0].name as K["name"]}>`,
24
- fields: {
25
- contents: bcs.vector(typeParameters[0]),
26
- },
27
- });
28
- }
15
+ export declare function VecSet<K extends BcsType<any>>(...typeParameters: [K]): MoveStruct<{
16
+ contents: ReturnType<typeof bcs.vector<K>>;
17
+ }>;
@@ -0,0 +1,22 @@
1
+ /**************************************************************
2
+ * THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
3
+ **************************************************************/
4
+ import { MoveStruct } from "../../../utils/index.js";
5
+ import { bcs } from "@mysten/sui/bcs";
6
+ const $moduleName = "0x2::vec_set";
7
+ /**
8
+ * A set data structure backed by a vector. The set is guaranteed not to contain
9
+ * duplicate keys. All operations are O(N) in the size of the set
10
+ *
11
+ * - the intention of this data structure is only to provide the convenience of
12
+ * programming against a set API. Sets that need sorted iteration rather than
13
+ * insertion order iteration should be handwritten.
14
+ */
15
+ export function VecSet(...typeParameters) {
16
+ return new MoveStruct({
17
+ name: `${$moduleName}::VecSet<${typeParameters[0].name}>`,
18
+ fields: {
19
+ contents: bcs.vector(typeParameters[0]),
20
+ },
21
+ });
22
+ }
@@ -0,0 +1,20 @@
1
+ import { MoveStruct } from "../../../utils/index.js";
2
+ export declare const Blob: MoveStruct<{
3
+ id: MoveStruct<{
4
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
5
+ }, "0x2::object::UID">;
6
+ registered_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
7
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
8
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
9
+ encoding_type: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
10
+ certified_epoch: import("@mysten/sui/bcs").BcsType<number | null, number | null | undefined, "Option<u32>">;
11
+ storage: MoveStruct<{
12
+ id: MoveStruct<{
13
+ id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
14
+ }, "0x2::object::UID">;
15
+ start_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
16
+ end_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
17
+ storage_size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
18
+ }, "walrus::storage_resource::Storage">;
19
+ deletable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
20
+ }, "walrus::blob::Blob">;
@@ -5,18 +5,17 @@ import * as storage_resource from "./storage_resource.js";
5
5
  import { MoveStruct } from "../../../utils/index.js";
6
6
  import * as object from "../sui/object.js";
7
7
  import { bcs } from "@mysten/sui/bcs";
8
-
9
8
  const $moduleName = "walrus::blob";
10
9
  export const Blob = new MoveStruct({
11
- name: `${$moduleName}::Blob`,
12
- fields: {
13
- id: object.UID,
14
- registered_epoch: bcs.u32(),
15
- blob_id: bcs.u256(),
16
- size: bcs.u64(),
17
- encoding_type: bcs.u8(),
18
- certified_epoch: bcs.option(bcs.u32()),
19
- storage: storage_resource.Storage,
20
- deletable: bcs.bool(),
21
- },
10
+ name: `${$moduleName}::Blob`,
11
+ fields: {
12
+ id: object.UID,
13
+ registered_epoch: bcs.u32(),
14
+ blob_id: bcs.u256(),
15
+ size: bcs.u64(),
16
+ encoding_type: bcs.u8(),
17
+ certified_epoch: bcs.option(bcs.u32()),
18
+ storage: storage_resource.Storage,
19
+ deletable: bcs.bool(),
20
+ },
22
21
  });
@@ -0,0 +1,83 @@
1
+ import { MoveStruct } from "../../../utils/index.js";
2
+ export declare const BlobRegistered: MoveStruct<{
3
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
4
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
5
+ size: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
6
+ encoding_type: import("@mysten/sui/bcs").BcsType<number, number, "u8">;
7
+ end_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
8
+ deletable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
9
+ object_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
10
+ }, "@local-pkg/walrus::events::BlobRegistered">;
11
+ export declare const BlobCertified: MoveStruct<{
12
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
13
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
14
+ end_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
15
+ deletable: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
16
+ object_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
17
+ is_extension: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
18
+ }, "@local-pkg/walrus::events::BlobCertified">;
19
+ export declare const BlobDeleted: MoveStruct<{
20
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
21
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
22
+ end_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
23
+ object_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
24
+ was_certified: import("@mysten/sui/bcs").BcsType<boolean, boolean, "bool">;
25
+ }, "@local-pkg/walrus::events::BlobDeleted">;
26
+ export declare const InvalidBlobID: MoveStruct<{
27
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
28
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
29
+ }, "@local-pkg/walrus::events::InvalidBlobID">;
30
+ export declare const EpochChangeStart: MoveStruct<{
31
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
32
+ }, "@local-pkg/walrus::events::EpochChangeStart">;
33
+ export declare const EpochChangeDone: MoveStruct<{
34
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
35
+ }, "@local-pkg/walrus::events::EpochChangeDone">;
36
+ export declare const ShardsReceived: MoveStruct<{
37
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
38
+ shards: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
39
+ length: number;
40
+ }, string>;
41
+ }, "@local-pkg/walrus::events::ShardsReceived">;
42
+ export declare const EpochParametersSelected: MoveStruct<{
43
+ next_epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
44
+ }, "@local-pkg/walrus::events::EpochParametersSelected">;
45
+ export declare const ShardRecoveryStart: MoveStruct<{
46
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
47
+ shards: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
48
+ length: number;
49
+ }, string>;
50
+ }, "@local-pkg/walrus::events::ShardRecoveryStart">;
51
+ export declare const ContractUpgraded: MoveStruct<{
52
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
53
+ package_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
54
+ version: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
55
+ }, "@local-pkg/walrus::events::ContractUpgraded">;
56
+ export declare const RegisterDenyListUpdate: MoveStruct<{
57
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
58
+ root: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
59
+ sequence_number: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
60
+ node_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
61
+ }, "@local-pkg/walrus::events::RegisterDenyListUpdate">;
62
+ export declare const DenyListUpdate: MoveStruct<{
63
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
64
+ root: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
65
+ sequence_number: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u64">;
66
+ node_id: import("@mysten/sui/bcs").BcsType<string, string | Uint8Array<ArrayBufferLike>, "bytes[32]">;
67
+ }, "@local-pkg/walrus::events::DenyListUpdate">;
68
+ export declare const DenyListBlobDeleted: MoveStruct<{
69
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
70
+ blob_id: import("@mysten/sui/bcs").BcsType<string, string | number | bigint, "u256">;
71
+ }, "@local-pkg/walrus::events::DenyListBlobDeleted">;
72
+ export declare const ContractUpgradeProposed: MoveStruct<{
73
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
74
+ package_digest: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
75
+ length: number;
76
+ }, string>;
77
+ }, "@local-pkg/walrus::events::ContractUpgradeProposed">;
78
+ export declare const ContractUpgradeQuorumReached: MoveStruct<{
79
+ epoch: import("@mysten/sui/bcs").BcsType<number, number, "u32">;
80
+ package_digest: import("@mysten/sui/bcs").BcsType<number[], Iterable<number> & {
81
+ length: number;
82
+ }, string>;
83
+ }, "@local-pkg/walrus::events::ContractUpgradeQuorumReached">;