@junobuild/ic-client 1.2.0 → 2.0.0-next-2025-08-25

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 (157) hide show
  1. package/actor.d.ts +13 -0
  2. package/{dist/browser/index.js → actor.js} +2 -2
  3. package/{dist/browser/index.js.map → actor.js.map} +4 -4
  4. package/{dist/node/index.mjs → actor.mjs} +2 -2
  5. package/{dist/node/index.mjs.map → actor.mjs.map} +4 -4
  6. package/esbuild.mjs +5 -0
  7. package/index.d.ts +0 -0
  8. package/index.js +2 -0
  9. package/index.js.map +7 -0
  10. package/index.mjs +4 -0
  11. package/index.mjs.map +7 -0
  12. package/package.json +34 -22
  13. package/src/declarations/console/console.did.d.ts +313 -0
  14. package/src/declarations/console/console.factory.certified.did.js +329 -0
  15. package/src/declarations/console/console.factory.did.js +329 -0
  16. package/src/declarations/console/console.factory.did.mjs +329 -0
  17. package/src/declarations/deprecated/console-0-0-14.did.d.ts +267 -0
  18. package/src/declarations/deprecated/console-0-0-14.factory.did.js +285 -0
  19. package/src/declarations/deprecated/console-0-0-8-patch1.did.d.ts +75 -0
  20. package/src/declarations/deprecated/console-0-0-8-patch1.factory.did.js +80 -0
  21. package/src/declarations/deprecated/mission_control-0-0-13.did.d.ts +246 -0
  22. package/src/declarations/deprecated/mission_control-0-0-13.factory.did.js +280 -0
  23. package/src/declarations/deprecated/mission_control-0-0-14.did.d.ts +241 -0
  24. package/src/declarations/deprecated/mission_control-0-0-14.factory.did.js +258 -0
  25. package/src/declarations/deprecated/mission_control-0-0-4.did.d.ts +80 -0
  26. package/src/declarations/deprecated/mission_control-0-0-4.factory.did.js +99 -0
  27. package/src/declarations/deprecated/mission_control-deprecated-version.did.d.ts +231 -0
  28. package/src/declarations/deprecated/mission_control-deprecated-version.factory.did.js +247 -0
  29. package/src/declarations/deprecated/observatory-0-0-9.did.d.ts +70 -0
  30. package/src/declarations/deprecated/observatory-0-0-9.factory.did.js +76 -0
  31. package/src/declarations/deprecated/orbiter-0-0-6.did.d.ts +161 -0
  32. package/src/declarations/deprecated/orbiter-0-0-6.factory.did.js +192 -0
  33. package/src/declarations/deprecated/orbiter-0-0-7.did.d.ts +166 -0
  34. package/src/declarations/deprecated/orbiter-0-0-7.factory.did.js +197 -0
  35. package/src/declarations/deprecated/orbiter-0-0-8.did.d.ts +245 -0
  36. package/src/declarations/deprecated/orbiter-0-0-8.factory.did.js +287 -0
  37. package/src/declarations/deprecated/orbiter-0-2-0.did.d.ts +277 -0
  38. package/src/declarations/deprecated/orbiter-0-2-0.factory.did.js +319 -0
  39. package/src/declarations/deprecated/orbiter-deprecated-version.did.d.ts +229 -0
  40. package/src/declarations/deprecated/orbiter-deprecated-version.factory.did.js +271 -0
  41. package/src/declarations/deprecated/satellite-0-0-16.did.d.ts +240 -0
  42. package/src/declarations/deprecated/satellite-0-0-16.factory.did.js +264 -0
  43. package/src/declarations/deprecated/satellite-0-0-17.did.d.ts +254 -0
  44. package/src/declarations/deprecated/satellite-0-0-17.factory.did.js +281 -0
  45. package/src/declarations/deprecated/satellite-0-0-21.did.d.ts +299 -0
  46. package/src/declarations/deprecated/satellite-0-0-21.factory.did.js +333 -0
  47. package/src/declarations/deprecated/satellite-0-0-22.did.d.ts +290 -0
  48. package/src/declarations/deprecated/satellite-0-0-22.factory.did.js +318 -0
  49. package/src/declarations/deprecated/satellite-0-0-8.did.d.ts +183 -0
  50. package/src/declarations/deprecated/satellite-0-0-8.factory.did.js +194 -0
  51. package/src/declarations/deprecated/satellite-0-0-9.did.d.ts +199 -0
  52. package/src/declarations/deprecated/satellite-0-0-9.factory.did.js +213 -0
  53. package/src/declarations/deprecated/satellite-deprecated-no-scope.did.d.ts +183 -0
  54. package/src/declarations/deprecated/satellite-deprecated-no-scope.factory.did.js +194 -0
  55. package/src/declarations/deprecated/satellite-deprecated-no-scope.factory.did.mjs +192 -0
  56. package/src/declarations/deprecated/satellite-deprecated-version.did.d.ts +291 -0
  57. package/src/declarations/deprecated/satellite-deprecated-version.factory.did.js +319 -0
  58. package/src/declarations/deprecated/satellite-deprecated.did.d.ts +182 -0
  59. package/src/declarations/deprecated/satellite-deprecated.factory.did.js +191 -0
  60. package/src/declarations/deprecated/satellite-deprecated.factory.did.mjs +191 -0
  61. package/src/declarations/mission_control/mission_control.did.d.ts +244 -0
  62. package/src/declarations/mission_control/mission_control.factory.certified.did.js +261 -0
  63. package/src/declarations/mission_control/mission_control.factory.did.js +261 -0
  64. package/src/declarations/observatory/observatory.did.d.ts +86 -0
  65. package/src/declarations/observatory/observatory.factory.certified.did.js +93 -0
  66. package/src/declarations/observatory/observatory.factory.did.js +93 -0
  67. package/src/declarations/observatory/observatory.factory.did.mjs +93 -0
  68. package/src/declarations/orbiter/orbiter.did.d.ts +280 -0
  69. package/src/declarations/orbiter/orbiter.factory.certified.did.js +306 -0
  70. package/src/declarations/orbiter/orbiter.factory.did.js +322 -0
  71. package/src/declarations/orbiter/orbiter.factory.did.mjs +322 -0
  72. package/src/declarations/satellite/satellite.did.d.ts +404 -0
  73. package/src/declarations/satellite/satellite.factory.certified.did.js +425 -0
  74. package/src/declarations/satellite/satellite.factory.did.js +425 -0
  75. package/src/declarations/satellite/satellite.factory.did.mjs +425 -0
  76. package/src/declarations/sputnik/sputnik.did.d.ts +404 -0
  77. package/src/declarations/sputnik/sputnik.factory.certified.did.js +425 -0
  78. package/src/declarations/sputnik/sputnik.factory.did.js +425 -0
  79. package/utils.d.ts +1 -0
  80. package/utils.js +2 -0
  81. package/utils.js.map +7 -0
  82. package/utils.mjs +4 -0
  83. package/utils.mjs.map +7 -0
  84. package/dist/index.js +0 -1
  85. package/dist/types/index.d.ts +0 -14
  86. /package/{dist/types → actor}/api/actor.api.d.ts +0 -0
  87. /package/{dist/types → actor}/api/actor.factory.d.ts +0 -0
  88. /package/{dist/types → actor}/api/agent.api.d.ts +0 -0
  89. /package/{dist/types → actor}/types/actor.d.ts +0 -0
  90. /package/{dist/types → actor}/utils/agent.utils.d.ts +0 -0
  91. /package/{dist/declarations → declarations}/console/console.did.d.ts +0 -0
  92. /package/{dist/declarations → declarations}/console/console.factory.certified.did.js +0 -0
  93. /package/{dist/declarations → declarations}/console/console.factory.did.js +0 -0
  94. /package/{dist/declarations → declarations}/console/console.factory.did.mjs +0 -0
  95. /package/{dist/declarations → declarations}/deprecated/console-0-0-14.did.d.ts +0 -0
  96. /package/{dist/declarations → declarations}/deprecated/console-0-0-14.factory.did.js +0 -0
  97. /package/{dist/declarations → declarations}/deprecated/console-0-0-8-patch1.did.d.ts +0 -0
  98. /package/{dist/declarations → declarations}/deprecated/console-0-0-8-patch1.factory.did.js +0 -0
  99. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-13.did.d.ts +0 -0
  100. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-13.factory.did.js +0 -0
  101. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-14.did.d.ts +0 -0
  102. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-14.factory.did.js +0 -0
  103. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-4.did.d.ts +0 -0
  104. /package/{dist/declarations → declarations}/deprecated/mission_control-0-0-4.factory.did.js +0 -0
  105. /package/{dist/declarations → declarations}/deprecated/mission_control-deprecated-version.did.d.ts +0 -0
  106. /package/{dist/declarations → declarations}/deprecated/mission_control-deprecated-version.factory.did.js +0 -0
  107. /package/{dist/declarations → declarations}/deprecated/observatory-0-0-9.did.d.ts +0 -0
  108. /package/{dist/declarations → declarations}/deprecated/observatory-0-0-9.factory.did.js +0 -0
  109. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-6.did.d.ts +0 -0
  110. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-6.factory.did.js +0 -0
  111. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-7.did.d.ts +0 -0
  112. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-7.factory.did.js +0 -0
  113. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-8.did.d.ts +0 -0
  114. /package/{dist/declarations → declarations}/deprecated/orbiter-0-0-8.factory.did.js +0 -0
  115. /package/{dist/declarations → declarations}/deprecated/orbiter-0-2-0.did.d.ts +0 -0
  116. /package/{dist/declarations → declarations}/deprecated/orbiter-0-2-0.factory.did.js +0 -0
  117. /package/{dist/declarations → declarations}/deprecated/orbiter-deprecated-version.did.d.ts +0 -0
  118. /package/{dist/declarations → declarations}/deprecated/orbiter-deprecated-version.factory.did.js +0 -0
  119. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-16.did.d.ts +0 -0
  120. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-16.factory.did.js +0 -0
  121. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-17.did.d.ts +0 -0
  122. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-17.factory.did.js +0 -0
  123. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-21.did.d.ts +0 -0
  124. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-21.factory.did.js +0 -0
  125. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-22.did.d.ts +0 -0
  126. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-22.factory.did.js +0 -0
  127. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-8.did.d.ts +0 -0
  128. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-8.factory.did.js +0 -0
  129. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-9.did.d.ts +0 -0
  130. /package/{dist/declarations → declarations}/deprecated/satellite-0-0-9.factory.did.js +0 -0
  131. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated-no-scope.did.d.ts +0 -0
  132. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated-no-scope.factory.did.js +0 -0
  133. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated-no-scope.factory.did.mjs +0 -0
  134. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated-version.did.d.ts +0 -0
  135. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated-version.factory.did.js +0 -0
  136. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated.did.d.ts +0 -0
  137. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated.factory.did.js +0 -0
  138. /package/{dist/declarations → declarations}/deprecated/satellite-deprecated.factory.did.mjs +0 -0
  139. /package/{dist/declarations → declarations}/mission_control/mission_control.did.d.ts +0 -0
  140. /package/{dist/declarations → declarations}/mission_control/mission_control.factory.certified.did.js +0 -0
  141. /package/{dist/declarations → declarations}/mission_control/mission_control.factory.did.js +0 -0
  142. /package/{dist/declarations → declarations}/observatory/observatory.did.d.ts +0 -0
  143. /package/{dist/declarations → declarations}/observatory/observatory.factory.certified.did.js +0 -0
  144. /package/{dist/declarations → declarations}/observatory/observatory.factory.did.js +0 -0
  145. /package/{dist/declarations → declarations}/observatory/observatory.factory.did.mjs +0 -0
  146. /package/{dist/declarations → declarations}/orbiter/orbiter.did.d.ts +0 -0
  147. /package/{dist/declarations → declarations}/orbiter/orbiter.factory.certified.did.js +0 -0
  148. /package/{dist/declarations → declarations}/orbiter/orbiter.factory.did.js +0 -0
  149. /package/{dist/declarations → declarations}/orbiter/orbiter.factory.did.mjs +0 -0
  150. /package/{dist/declarations → declarations}/satellite/satellite.did.d.ts +0 -0
  151. /package/{dist/declarations → declarations}/satellite/satellite.factory.certified.did.js +0 -0
  152. /package/{dist/declarations → declarations}/satellite/satellite.factory.did.js +0 -0
  153. /package/{dist/declarations → declarations}/satellite/satellite.factory.did.mjs +0 -0
  154. /package/{dist/declarations → declarations}/sputnik/sputnik.did.d.ts +0 -0
  155. /package/{dist/declarations → declarations}/sputnik/sputnik.factory.certified.did.js +0 -0
  156. /package/{dist/declarations → declarations}/sputnik/sputnik.factory.did.js +0 -0
  157. /package/{dist/types/utils → utils}/principal.utils.d.ts +0 -0
@@ -0,0 +1,329 @@
1
+ // @ts-ignore
2
+ export const idlFactory = ({IDL}) => {
3
+ const Tokens = IDL.Record({e8s: IDL.Nat64});
4
+ const AssertMissionControlCenterArgs = IDL.Record({
5
+ mission_control_id: IDL.Principal,
6
+ user: IDL.Principal
7
+ });
8
+ const CommitProposal = IDL.Record({
9
+ sha256: IDL.Vec(IDL.Nat8),
10
+ proposal_id: IDL.Nat
11
+ });
12
+ const CommitBatch = IDL.Record({
13
+ batch_id: IDL.Nat,
14
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
15
+ chunk_ids: IDL.Vec(IDL.Nat)
16
+ });
17
+ const CreateCanisterArgs = IDL.Record({
18
+ block_index: IDL.Opt(IDL.Nat64),
19
+ subnet_id: IDL.Opt(IDL.Principal),
20
+ user: IDL.Principal
21
+ });
22
+ const DeleteControllersArgs = IDL.Record({
23
+ controllers: IDL.Vec(IDL.Principal)
24
+ });
25
+ const DeleteProposalAssets = IDL.Record({
26
+ proposal_ids: IDL.Vec(IDL.Nat)
27
+ });
28
+ const StorageConfigIFrame = IDL.Variant({
29
+ Deny: IDL.Null,
30
+ AllowAny: IDL.Null,
31
+ SameOrigin: IDL.Null
32
+ });
33
+ const ConfigMaxMemorySize = IDL.Record({
34
+ stable: IDL.Opt(IDL.Nat64),
35
+ heap: IDL.Opt(IDL.Nat64)
36
+ });
37
+ const StorageConfigRawAccess = IDL.Variant({
38
+ Deny: IDL.Null,
39
+ Allow: IDL.Null
40
+ });
41
+ const StorageConfigRedirect = IDL.Record({
42
+ status_code: IDL.Nat16,
43
+ location: IDL.Text
44
+ });
45
+ const StorageConfig = IDL.Record({
46
+ iframe: IDL.Opt(StorageConfigIFrame),
47
+ updated_at: IDL.Opt(IDL.Nat64),
48
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
49
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
50
+ created_at: IDL.Opt(IDL.Nat64),
51
+ version: IDL.Opt(IDL.Nat64),
52
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
53
+ raw_access: IDL.Opt(StorageConfigRawAccess),
54
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
55
+ });
56
+ const Config = IDL.Record({storage: StorageConfig});
57
+ const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
58
+ const ProposalStatus = IDL.Variant({
59
+ Initialized: IDL.Null,
60
+ Failed: IDL.Null,
61
+ Open: IDL.Null,
62
+ Rejected: IDL.Null,
63
+ Executed: IDL.Null,
64
+ Accepted: IDL.Null
65
+ });
66
+ const AssetsUpgradeOptions = IDL.Record({
67
+ clear_existing_assets: IDL.Opt(IDL.Bool)
68
+ });
69
+ const SegmentsDeploymentOptions = IDL.Record({
70
+ orbiter: IDL.Opt(IDL.Text),
71
+ mission_control_version: IDL.Opt(IDL.Text),
72
+ satellite_version: IDL.Opt(IDL.Text)
73
+ });
74
+ const ProposalType = IDL.Variant({
75
+ AssetsUpgrade: AssetsUpgradeOptions,
76
+ SegmentsDeployment: SegmentsDeploymentOptions
77
+ });
78
+ const Proposal = IDL.Record({
79
+ status: ProposalStatus,
80
+ updated_at: IDL.Nat64,
81
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
82
+ executed_at: IDL.Opt(IDL.Nat64),
83
+ owner: IDL.Principal,
84
+ created_at: IDL.Nat64,
85
+ version: IDL.Opt(IDL.Nat64),
86
+ proposal_type: ProposalType
87
+ });
88
+ const MissionControl = IDL.Record({
89
+ updated_at: IDL.Nat64,
90
+ credits: Tokens,
91
+ mission_control_id: IDL.Opt(IDL.Principal),
92
+ owner: IDL.Principal,
93
+ created_at: IDL.Nat64
94
+ });
95
+ const HttpRequest = IDL.Record({
96
+ url: IDL.Text,
97
+ method: IDL.Text,
98
+ body: IDL.Vec(IDL.Nat8),
99
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
100
+ certificate_version: IDL.Opt(IDL.Nat16)
101
+ });
102
+ const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
103
+ const StreamingCallbackToken = IDL.Record({
104
+ memory: Memory,
105
+ token: IDL.Opt(IDL.Text),
106
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
107
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
108
+ index: IDL.Nat64,
109
+ encoding_type: IDL.Text,
110
+ full_path: IDL.Text
111
+ });
112
+ const StreamingStrategy = IDL.Variant({
113
+ Callback: IDL.Record({
114
+ token: StreamingCallbackToken,
115
+ callback: IDL.Func([], [], [])
116
+ })
117
+ });
118
+ const HttpResponse = IDL.Record({
119
+ body: IDL.Vec(IDL.Nat8),
120
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
121
+ streaming_strategy: IDL.Opt(StreamingStrategy),
122
+ status_code: IDL.Nat16
123
+ });
124
+ const StreamingCallbackHttpResponse = IDL.Record({
125
+ token: IDL.Opt(StreamingCallbackToken),
126
+ body: IDL.Vec(IDL.Nat8)
127
+ });
128
+ const InitAssetKey = IDL.Record({
129
+ token: IDL.Opt(IDL.Text),
130
+ collection: IDL.Text,
131
+ name: IDL.Text,
132
+ description: IDL.Opt(IDL.Text),
133
+ encoding_type: IDL.Opt(IDL.Text),
134
+ full_path: IDL.Text
135
+ });
136
+ const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
137
+ const ListOrderField = IDL.Variant({
138
+ UpdatedAt: IDL.Null,
139
+ Keys: IDL.Null,
140
+ CreatedAt: IDL.Null
141
+ });
142
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
143
+ const TimestampMatcher = IDL.Variant({
144
+ Equal: IDL.Nat64,
145
+ Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
146
+ GreaterThan: IDL.Nat64,
147
+ LessThan: IDL.Nat64
148
+ });
149
+ const ListMatcher = IDL.Record({
150
+ key: IDL.Opt(IDL.Text),
151
+ updated_at: IDL.Opt(TimestampMatcher),
152
+ description: IDL.Opt(IDL.Text),
153
+ created_at: IDL.Opt(TimestampMatcher)
154
+ });
155
+ const ListPaginate = IDL.Record({
156
+ start_after: IDL.Opt(IDL.Text),
157
+ limit: IDL.Opt(IDL.Nat64)
158
+ });
159
+ const ListParams = IDL.Record({
160
+ order: IDL.Opt(ListOrder),
161
+ owner: IDL.Opt(IDL.Principal),
162
+ matcher: IDL.Opt(ListMatcher),
163
+ paginate: IDL.Opt(ListPaginate)
164
+ });
165
+ const AssetKey = IDL.Record({
166
+ token: IDL.Opt(IDL.Text),
167
+ collection: IDL.Text,
168
+ owner: IDL.Principal,
169
+ name: IDL.Text,
170
+ description: IDL.Opt(IDL.Text),
171
+ full_path: IDL.Text
172
+ });
173
+ const AssetEncodingNoContent = IDL.Record({
174
+ modified: IDL.Nat64,
175
+ sha256: IDL.Vec(IDL.Nat8),
176
+ total_length: IDL.Nat
177
+ });
178
+ const AssetNoContent = IDL.Record({
179
+ key: AssetKey,
180
+ updated_at: IDL.Nat64,
181
+ encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
182
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
183
+ created_at: IDL.Nat64,
184
+ version: IDL.Opt(IDL.Nat64)
185
+ });
186
+ const ListResults = IDL.Record({
187
+ matches_pages: IDL.Opt(IDL.Nat64),
188
+ matches_length: IDL.Nat64,
189
+ items_page: IDL.Opt(IDL.Nat64),
190
+ items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
191
+ items_length: IDL.Nat64
192
+ });
193
+ const ControllerScope = IDL.Variant({
194
+ Write: IDL.Null,
195
+ Admin: IDL.Null,
196
+ Submit: IDL.Null
197
+ });
198
+ const Controller = IDL.Record({
199
+ updated_at: IDL.Nat64,
200
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
201
+ created_at: IDL.Nat64,
202
+ scope: ControllerScope,
203
+ expires_at: IDL.Opt(IDL.Nat64)
204
+ });
205
+ const CustomDomain = IDL.Record({
206
+ updated_at: IDL.Nat64,
207
+ created_at: IDL.Nat64,
208
+ version: IDL.Opt(IDL.Nat64),
209
+ bn_id: IDL.Opt(IDL.Text)
210
+ });
211
+ const PaymentStatus = IDL.Variant({
212
+ Refunded: IDL.Null,
213
+ Acknowledged: IDL.Null,
214
+ Completed: IDL.Null
215
+ });
216
+ const Payment = IDL.Record({
217
+ status: PaymentStatus,
218
+ updated_at: IDL.Nat64,
219
+ block_index_payment: IDL.Nat64,
220
+ mission_control_id: IDL.Opt(IDL.Principal),
221
+ created_at: IDL.Nat64,
222
+ block_index_refunded: IDL.Opt(IDL.Nat64)
223
+ });
224
+ const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
225
+ const ListProposalsPaginate = IDL.Record({
226
+ start_after: IDL.Opt(IDL.Nat),
227
+ limit: IDL.Opt(IDL.Nat)
228
+ });
229
+ const ListProposalsParams = IDL.Record({
230
+ order: IDL.Opt(ListProposalsOrder),
231
+ paginate: IDL.Opt(ListProposalsPaginate)
232
+ });
233
+ const ProposalKey = IDL.Record({proposal_id: IDL.Nat});
234
+ const ListProposalResults = IDL.Record({
235
+ matches_length: IDL.Nat64,
236
+ items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
237
+ items_length: IDL.Nat64
238
+ });
239
+ const SetController = IDL.Record({
240
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
241
+ scope: ControllerScope,
242
+ expires_at: IDL.Opt(IDL.Nat64)
243
+ });
244
+ const SetControllersArgs = IDL.Record({
245
+ controller: SetController,
246
+ controllers: IDL.Vec(IDL.Principal)
247
+ });
248
+ const SegmentKind = IDL.Variant({
249
+ Orbiter: IDL.Null,
250
+ MissionControl: IDL.Null,
251
+ Satellite: IDL.Null
252
+ });
253
+ const SetStorageConfig = IDL.Record({
254
+ iframe: IDL.Opt(StorageConfigIFrame),
255
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
256
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
257
+ version: IDL.Opt(IDL.Nat64),
258
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
259
+ raw_access: IDL.Opt(StorageConfigRawAccess),
260
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
261
+ });
262
+ const RateConfig = IDL.Record({
263
+ max_tokens: IDL.Nat64,
264
+ time_per_token_ns: IDL.Nat64
265
+ });
266
+ const UploadChunk = IDL.Record({
267
+ content: IDL.Vec(IDL.Nat8),
268
+ batch_id: IDL.Nat,
269
+ order_id: IDL.Opt(IDL.Nat)
270
+ });
271
+ const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
272
+ return IDL.Service({
273
+ add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
274
+ add_invitation_code: IDL.Func([IDL.Text], [], []),
275
+ assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], []),
276
+ commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
277
+ commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
278
+ commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
279
+ count_proposals: IDL.Func([], [IDL.Nat64], []),
280
+ create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
281
+ create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
282
+ del_controllers: IDL.Func([DeleteControllersArgs], [], []),
283
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
284
+ delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
285
+ get_config: IDL.Func([], [Config], []),
286
+ get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
287
+ get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], []),
288
+ get_credits: IDL.Func([], [Tokens], []),
289
+ get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], []),
290
+ get_storage_config: IDL.Func([], [StorageConfig], []),
291
+ get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], []),
292
+ http_request: IDL.Func([HttpRequest], [HttpResponse], []),
293
+ http_request_streaming_callback: IDL.Func(
294
+ [StreamingCallbackToken],
295
+ [StreamingCallbackHttpResponse],
296
+ []
297
+ ),
298
+ init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
299
+ init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
300
+ init_proposal_many_assets_upload: IDL.Func(
301
+ [IDL.Vec(InitAssetKey), IDL.Nat],
302
+ [IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
303
+ []
304
+ ),
305
+ init_user_mission_control_center: IDL.Func([], [MissionControl], []),
306
+ list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], []),
307
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], []),
308
+ list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], []),
309
+ list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], []),
310
+ list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], []),
311
+ list_user_mission_control_centers: IDL.Func(
312
+ [],
313
+ [IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
314
+ []
315
+ ),
316
+ reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
317
+ set_controllers: IDL.Func([SetControllersArgs], [], []),
318
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
319
+ set_fee: IDL.Func([SegmentKind, Tokens], [], []),
320
+ set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
321
+ submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
322
+ update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
323
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
324
+ });
325
+ };
326
+ // @ts-ignore
327
+ export const init = ({IDL}) => {
328
+ return [];
329
+ };
@@ -0,0 +1,329 @@
1
+ // @ts-ignore
2
+ export const idlFactory = ({IDL}) => {
3
+ const Tokens = IDL.Record({e8s: IDL.Nat64});
4
+ const AssertMissionControlCenterArgs = IDL.Record({
5
+ mission_control_id: IDL.Principal,
6
+ user: IDL.Principal
7
+ });
8
+ const CommitProposal = IDL.Record({
9
+ sha256: IDL.Vec(IDL.Nat8),
10
+ proposal_id: IDL.Nat
11
+ });
12
+ const CommitBatch = IDL.Record({
13
+ batch_id: IDL.Nat,
14
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
15
+ chunk_ids: IDL.Vec(IDL.Nat)
16
+ });
17
+ const CreateCanisterArgs = IDL.Record({
18
+ block_index: IDL.Opt(IDL.Nat64),
19
+ subnet_id: IDL.Opt(IDL.Principal),
20
+ user: IDL.Principal
21
+ });
22
+ const DeleteControllersArgs = IDL.Record({
23
+ controllers: IDL.Vec(IDL.Principal)
24
+ });
25
+ const DeleteProposalAssets = IDL.Record({
26
+ proposal_ids: IDL.Vec(IDL.Nat)
27
+ });
28
+ const StorageConfigIFrame = IDL.Variant({
29
+ Deny: IDL.Null,
30
+ AllowAny: IDL.Null,
31
+ SameOrigin: IDL.Null
32
+ });
33
+ const ConfigMaxMemorySize = IDL.Record({
34
+ stable: IDL.Opt(IDL.Nat64),
35
+ heap: IDL.Opt(IDL.Nat64)
36
+ });
37
+ const StorageConfigRawAccess = IDL.Variant({
38
+ Deny: IDL.Null,
39
+ Allow: IDL.Null
40
+ });
41
+ const StorageConfigRedirect = IDL.Record({
42
+ status_code: IDL.Nat16,
43
+ location: IDL.Text
44
+ });
45
+ const StorageConfig = IDL.Record({
46
+ iframe: IDL.Opt(StorageConfigIFrame),
47
+ updated_at: IDL.Opt(IDL.Nat64),
48
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
49
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
50
+ created_at: IDL.Opt(IDL.Nat64),
51
+ version: IDL.Opt(IDL.Nat64),
52
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
53
+ raw_access: IDL.Opt(StorageConfigRawAccess),
54
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
55
+ });
56
+ const Config = IDL.Record({storage: StorageConfig});
57
+ const GetCreateCanisterFeeArgs = IDL.Record({user: IDL.Principal});
58
+ const ProposalStatus = IDL.Variant({
59
+ Initialized: IDL.Null,
60
+ Failed: IDL.Null,
61
+ Open: IDL.Null,
62
+ Rejected: IDL.Null,
63
+ Executed: IDL.Null,
64
+ Accepted: IDL.Null
65
+ });
66
+ const AssetsUpgradeOptions = IDL.Record({
67
+ clear_existing_assets: IDL.Opt(IDL.Bool)
68
+ });
69
+ const SegmentsDeploymentOptions = IDL.Record({
70
+ orbiter: IDL.Opt(IDL.Text),
71
+ mission_control_version: IDL.Opt(IDL.Text),
72
+ satellite_version: IDL.Opt(IDL.Text)
73
+ });
74
+ const ProposalType = IDL.Variant({
75
+ AssetsUpgrade: AssetsUpgradeOptions,
76
+ SegmentsDeployment: SegmentsDeploymentOptions
77
+ });
78
+ const Proposal = IDL.Record({
79
+ status: ProposalStatus,
80
+ updated_at: IDL.Nat64,
81
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
82
+ executed_at: IDL.Opt(IDL.Nat64),
83
+ owner: IDL.Principal,
84
+ created_at: IDL.Nat64,
85
+ version: IDL.Opt(IDL.Nat64),
86
+ proposal_type: ProposalType
87
+ });
88
+ const MissionControl = IDL.Record({
89
+ updated_at: IDL.Nat64,
90
+ credits: Tokens,
91
+ mission_control_id: IDL.Opt(IDL.Principal),
92
+ owner: IDL.Principal,
93
+ created_at: IDL.Nat64
94
+ });
95
+ const HttpRequest = IDL.Record({
96
+ url: IDL.Text,
97
+ method: IDL.Text,
98
+ body: IDL.Vec(IDL.Nat8),
99
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
100
+ certificate_version: IDL.Opt(IDL.Nat16)
101
+ });
102
+ const Memory = IDL.Variant({Heap: IDL.Null, Stable: IDL.Null});
103
+ const StreamingCallbackToken = IDL.Record({
104
+ memory: Memory,
105
+ token: IDL.Opt(IDL.Text),
106
+ sha256: IDL.Opt(IDL.Vec(IDL.Nat8)),
107
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
108
+ index: IDL.Nat64,
109
+ encoding_type: IDL.Text,
110
+ full_path: IDL.Text
111
+ });
112
+ const StreamingStrategy = IDL.Variant({
113
+ Callback: IDL.Record({
114
+ token: StreamingCallbackToken,
115
+ callback: IDL.Func([], [], ['query'])
116
+ })
117
+ });
118
+ const HttpResponse = IDL.Record({
119
+ body: IDL.Vec(IDL.Nat8),
120
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
121
+ streaming_strategy: IDL.Opt(StreamingStrategy),
122
+ status_code: IDL.Nat16
123
+ });
124
+ const StreamingCallbackHttpResponse = IDL.Record({
125
+ token: IDL.Opt(StreamingCallbackToken),
126
+ body: IDL.Vec(IDL.Nat8)
127
+ });
128
+ const InitAssetKey = IDL.Record({
129
+ token: IDL.Opt(IDL.Text),
130
+ collection: IDL.Text,
131
+ name: IDL.Text,
132
+ description: IDL.Opt(IDL.Text),
133
+ encoding_type: IDL.Opt(IDL.Text),
134
+ full_path: IDL.Text
135
+ });
136
+ const InitUploadResult = IDL.Record({batch_id: IDL.Nat});
137
+ const ListOrderField = IDL.Variant({
138
+ UpdatedAt: IDL.Null,
139
+ Keys: IDL.Null,
140
+ CreatedAt: IDL.Null
141
+ });
142
+ const ListOrder = IDL.Record({field: ListOrderField, desc: IDL.Bool});
143
+ const TimestampMatcher = IDL.Variant({
144
+ Equal: IDL.Nat64,
145
+ Between: IDL.Tuple(IDL.Nat64, IDL.Nat64),
146
+ GreaterThan: IDL.Nat64,
147
+ LessThan: IDL.Nat64
148
+ });
149
+ const ListMatcher = IDL.Record({
150
+ key: IDL.Opt(IDL.Text),
151
+ updated_at: IDL.Opt(TimestampMatcher),
152
+ description: IDL.Opt(IDL.Text),
153
+ created_at: IDL.Opt(TimestampMatcher)
154
+ });
155
+ const ListPaginate = IDL.Record({
156
+ start_after: IDL.Opt(IDL.Text),
157
+ limit: IDL.Opt(IDL.Nat64)
158
+ });
159
+ const ListParams = IDL.Record({
160
+ order: IDL.Opt(ListOrder),
161
+ owner: IDL.Opt(IDL.Principal),
162
+ matcher: IDL.Opt(ListMatcher),
163
+ paginate: IDL.Opt(ListPaginate)
164
+ });
165
+ const AssetKey = IDL.Record({
166
+ token: IDL.Opt(IDL.Text),
167
+ collection: IDL.Text,
168
+ owner: IDL.Principal,
169
+ name: IDL.Text,
170
+ description: IDL.Opt(IDL.Text),
171
+ full_path: IDL.Text
172
+ });
173
+ const AssetEncodingNoContent = IDL.Record({
174
+ modified: IDL.Nat64,
175
+ sha256: IDL.Vec(IDL.Nat8),
176
+ total_length: IDL.Nat
177
+ });
178
+ const AssetNoContent = IDL.Record({
179
+ key: AssetKey,
180
+ updated_at: IDL.Nat64,
181
+ encodings: IDL.Vec(IDL.Tuple(IDL.Text, AssetEncodingNoContent)),
182
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
183
+ created_at: IDL.Nat64,
184
+ version: IDL.Opt(IDL.Nat64)
185
+ });
186
+ const ListResults = IDL.Record({
187
+ matches_pages: IDL.Opt(IDL.Nat64),
188
+ matches_length: IDL.Nat64,
189
+ items_page: IDL.Opt(IDL.Nat64),
190
+ items: IDL.Vec(IDL.Tuple(IDL.Text, AssetNoContent)),
191
+ items_length: IDL.Nat64
192
+ });
193
+ const ControllerScope = IDL.Variant({
194
+ Write: IDL.Null,
195
+ Admin: IDL.Null,
196
+ Submit: IDL.Null
197
+ });
198
+ const Controller = IDL.Record({
199
+ updated_at: IDL.Nat64,
200
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
201
+ created_at: IDL.Nat64,
202
+ scope: ControllerScope,
203
+ expires_at: IDL.Opt(IDL.Nat64)
204
+ });
205
+ const CustomDomain = IDL.Record({
206
+ updated_at: IDL.Nat64,
207
+ created_at: IDL.Nat64,
208
+ version: IDL.Opt(IDL.Nat64),
209
+ bn_id: IDL.Opt(IDL.Text)
210
+ });
211
+ const PaymentStatus = IDL.Variant({
212
+ Refunded: IDL.Null,
213
+ Acknowledged: IDL.Null,
214
+ Completed: IDL.Null
215
+ });
216
+ const Payment = IDL.Record({
217
+ status: PaymentStatus,
218
+ updated_at: IDL.Nat64,
219
+ block_index_payment: IDL.Nat64,
220
+ mission_control_id: IDL.Opt(IDL.Principal),
221
+ created_at: IDL.Nat64,
222
+ block_index_refunded: IDL.Opt(IDL.Nat64)
223
+ });
224
+ const ListProposalsOrder = IDL.Record({desc: IDL.Bool});
225
+ const ListProposalsPaginate = IDL.Record({
226
+ start_after: IDL.Opt(IDL.Nat),
227
+ limit: IDL.Opt(IDL.Nat)
228
+ });
229
+ const ListProposalsParams = IDL.Record({
230
+ order: IDL.Opt(ListProposalsOrder),
231
+ paginate: IDL.Opt(ListProposalsPaginate)
232
+ });
233
+ const ProposalKey = IDL.Record({proposal_id: IDL.Nat});
234
+ const ListProposalResults = IDL.Record({
235
+ matches_length: IDL.Nat64,
236
+ items: IDL.Vec(IDL.Tuple(ProposalKey, Proposal)),
237
+ items_length: IDL.Nat64
238
+ });
239
+ const SetController = IDL.Record({
240
+ metadata: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
241
+ scope: ControllerScope,
242
+ expires_at: IDL.Opt(IDL.Nat64)
243
+ });
244
+ const SetControllersArgs = IDL.Record({
245
+ controller: SetController,
246
+ controllers: IDL.Vec(IDL.Principal)
247
+ });
248
+ const SegmentKind = IDL.Variant({
249
+ Orbiter: IDL.Null,
250
+ MissionControl: IDL.Null,
251
+ Satellite: IDL.Null
252
+ });
253
+ const SetStorageConfig = IDL.Record({
254
+ iframe: IDL.Opt(StorageConfigIFrame),
255
+ rewrites: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)),
256
+ headers: IDL.Vec(IDL.Tuple(IDL.Text, IDL.Vec(IDL.Tuple(IDL.Text, IDL.Text)))),
257
+ version: IDL.Opt(IDL.Nat64),
258
+ max_memory_size: IDL.Opt(ConfigMaxMemorySize),
259
+ raw_access: IDL.Opt(StorageConfigRawAccess),
260
+ redirects: IDL.Opt(IDL.Vec(IDL.Tuple(IDL.Text, StorageConfigRedirect)))
261
+ });
262
+ const RateConfig = IDL.Record({
263
+ max_tokens: IDL.Nat64,
264
+ time_per_token_ns: IDL.Nat64
265
+ });
266
+ const UploadChunk = IDL.Record({
267
+ content: IDL.Vec(IDL.Nat8),
268
+ batch_id: IDL.Nat,
269
+ order_id: IDL.Opt(IDL.Nat)
270
+ });
271
+ const UploadChunkResult = IDL.Record({chunk_id: IDL.Nat});
272
+ return IDL.Service({
273
+ add_credits: IDL.Func([IDL.Principal, Tokens], [], []),
274
+ add_invitation_code: IDL.Func([IDL.Text], [], []),
275
+ assert_mission_control_center: IDL.Func([AssertMissionControlCenterArgs], [], ['query']),
276
+ commit_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
277
+ commit_proposal_asset_upload: IDL.Func([CommitBatch], [], []),
278
+ commit_proposal_many_assets_upload: IDL.Func([IDL.Vec(CommitBatch)], [], []),
279
+ count_proposals: IDL.Func([], [IDL.Nat64], ['query']),
280
+ create_orbiter: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
281
+ create_satellite: IDL.Func([CreateCanisterArgs], [IDL.Principal], []),
282
+ del_controllers: IDL.Func([DeleteControllersArgs], [], []),
283
+ del_custom_domain: IDL.Func([IDL.Text], [], []),
284
+ delete_proposal_assets: IDL.Func([DeleteProposalAssets], [], []),
285
+ get_config: IDL.Func([], [Config], ['query']),
286
+ get_create_orbiter_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
287
+ get_create_satellite_fee: IDL.Func([GetCreateCanisterFeeArgs], [IDL.Opt(Tokens)], ['query']),
288
+ get_credits: IDL.Func([], [Tokens], ['query']),
289
+ get_proposal: IDL.Func([IDL.Nat], [IDL.Opt(Proposal)], ['query']),
290
+ get_storage_config: IDL.Func([], [StorageConfig], ['query']),
291
+ get_user_mission_control_center: IDL.Func([], [IDL.Opt(MissionControl)], ['query']),
292
+ http_request: IDL.Func([HttpRequest], [HttpResponse], ['query']),
293
+ http_request_streaming_callback: IDL.Func(
294
+ [StreamingCallbackToken],
295
+ [StreamingCallbackHttpResponse],
296
+ ['query']
297
+ ),
298
+ init_proposal: IDL.Func([ProposalType], [IDL.Nat, Proposal], []),
299
+ init_proposal_asset_upload: IDL.Func([InitAssetKey, IDL.Nat], [InitUploadResult], []),
300
+ init_proposal_many_assets_upload: IDL.Func(
301
+ [IDL.Vec(InitAssetKey), IDL.Nat],
302
+ [IDL.Vec(IDL.Tuple(IDL.Text, InitUploadResult))],
303
+ []
304
+ ),
305
+ init_user_mission_control_center: IDL.Func([], [MissionControl], []),
306
+ list_assets: IDL.Func([IDL.Text, ListParams], [ListResults], ['query']),
307
+ list_controllers: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Principal, Controller))], ['query']),
308
+ list_custom_domains: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Text, CustomDomain))], ['query']),
309
+ list_payments: IDL.Func([], [IDL.Vec(IDL.Tuple(IDL.Nat64, Payment))], ['query']),
310
+ list_proposals: IDL.Func([ListProposalsParams], [ListProposalResults], ['query']),
311
+ list_user_mission_control_centers: IDL.Func(
312
+ [],
313
+ [IDL.Vec(IDL.Tuple(IDL.Principal, MissionControl))],
314
+ ['query']
315
+ ),
316
+ reject_proposal: IDL.Func([CommitProposal], [IDL.Null], []),
317
+ set_controllers: IDL.Func([SetControllersArgs], [], []),
318
+ set_custom_domain: IDL.Func([IDL.Text, IDL.Opt(IDL.Text)], [], []),
319
+ set_fee: IDL.Func([SegmentKind, Tokens], [], []),
320
+ set_storage_config: IDL.Func([SetStorageConfig], [StorageConfig], []),
321
+ submit_proposal: IDL.Func([IDL.Nat], [IDL.Nat, Proposal], []),
322
+ update_rate_config: IDL.Func([SegmentKind, RateConfig], [], []),
323
+ upload_proposal_asset_chunk: IDL.Func([UploadChunk], [UploadChunkResult], [])
324
+ });
325
+ };
326
+ // @ts-ignore
327
+ export const init = ({IDL}) => {
328
+ return [];
329
+ };