@layerzerolabs/onesig-model 0.2.113 → 0.2.115

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 (30) hide show
  1. package/.turbo/turbo-build.log +51 -47
  2. package/.turbo/turbo-lint.log +1 -1
  3. package/dist/{BPXJBTYZ.js → 55LR37BZ.js} +3 -3
  4. package/dist/{BPXJBTYZ.js.map → 55LR37BZ.js.map} +1 -1
  5. package/dist/{S4JTB5O3.js → JDS2GCUD.js} +5 -3
  6. package/dist/JDS2GCUD.js.map +1 -0
  7. package/dist/P7VEODD3.js +353 -0
  8. package/dist/P7VEODD3.js.map +1 -0
  9. package/dist/{QFF6AT3B.js → TS6JM3WN.js} +3 -3
  10. package/dist/{QFF6AT3B.js.map → TS6JM3WN.js.map} +1 -1
  11. package/dist/index.js +4 -3
  12. package/dist/model/index.js +4 -3
  13. package/dist/model/onesig-bundle/calls/index.d.ts +303 -1
  14. package/dist/model/onesig-bundle/calls/index.d.ts.map +1 -1
  15. package/dist/model/onesig-bundle/calls/index.js +2 -1
  16. package/dist/model/onesig-bundle/calls/onesig-canton-call.d.ts +516 -0
  17. package/dist/model/onesig-bundle/calls/onesig-canton-call.d.ts.map +1 -0
  18. package/dist/model/onesig-bundle/calls/onesig-canton-call.js +4 -0
  19. package/dist/model/onesig-bundle/calls/onesig-canton-call.js.map +1 -0
  20. package/dist/model/onesig-bundle/index.js +4 -3
  21. package/dist/model/onesig-bundle/onesig-entity.d.ts +302 -1
  22. package/dist/model/onesig-bundle/onesig-entity.d.ts.map +1 -1
  23. package/dist/model/onesig-bundle/onesig-entity.js +4 -3
  24. package/dist/model/onesig-bundle/onesig-leaf.d.ts +302 -1
  25. package/dist/model/onesig-bundle/onesig-leaf.d.ts.map +1 -1
  26. package/dist/model/onesig-bundle/onesig-leaf.js +3 -2
  27. package/package.json +3 -3
  28. package/src/model/onesig-bundle/calls/index.ts +3 -0
  29. package/src/model/onesig-bundle/calls/onesig-canton-call.ts +429 -0
  30. package/dist/S4JTB5O3.js.map +0 -1
@@ -0,0 +1,516 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * A 64-bit integer field (nonce / threshold / count / signed DAML `Int`). A
4
+ * `number` must be a safe integer — larger values have already lost precision as
5
+ * a float, so a bigint is required for values beyond `MAX_SAFE_INTEGER`.
6
+ *
7
+ * Defined locally so this public model package depends only on `zod`; the Canton
8
+ * VM client (`@layerzerolabs/common-canton`, restricted) keeps its own
9
+ * structurally-identical copy for on-ledger serde.
10
+ */
11
+ declare const IntLikeSchema: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
12
+ type IntLike = z.infer<typeof IntLikeSchema>;
13
+ /**
14
+ * Discriminant of {@link OneSigCantonCall}. The enum value is the DAML `OneSigCall`
15
+ * constructor name (also the tag used in the Canton submission JSON), defined here
16
+ * once so it is never hardcoded at a call site.
17
+ */
18
+ export declare enum OneSigCantonCallTag {
19
+ SetSigner = "OpSetSigner",
20
+ SetThreshold = "OpSetThreshold",
21
+ SetExecutor = "OpSetExecutor",
22
+ SetExecutorRequired = "OpSetExecutorRequired",
23
+ SetSeed = "OpSetSeed",
24
+ CreateRequest = "OpCreateRequest",
25
+ CreateOAppRequest = "OpCreateOAppRequest",
26
+ AddToBlacklist = "OpAddToBlacklist",
27
+ RemoveFromBlacklist = "OpRemoveFromBlacklist",
28
+ AddToWhitelist = "OpAddToWhitelist",
29
+ RemoveFromWhitelist = "OpRemoveFromWhitelist",
30
+ SetAllowlistMode = "OpSetAllowlistMode",
31
+ RateLimiterSetDefault = "OpRateLimiterSetDefault",
32
+ RateLimiterSetEidOverride = "OpRateLimiterSetEidOverride",
33
+ RateLimiterRemoveEidOverride = "OpRateLimiterRemoveEidOverride",
34
+ RateLimiterSetGlobalFlags = "OpRateLimiterSetGlobalFlags",
35
+ RateLimiterSetAddressExemption = "OpRateLimiterSetAddressExemption",
36
+ RateLimiterSetState = "OpRateLimiterSetState",
37
+ PauseLocalTransfers = "OpPauseLocalTransfers",
38
+ UnpauseLocalTransfers = "OpUnpauseLocalTransfers",
39
+ PauseDstEids = "OpPauseDstEids",
40
+ UnpauseDstEids = "OpUnpauseDstEids",
41
+ SetLedgerTimeValidityPeriod = "OpSetLedgerTimeValidityPeriod",
42
+ SetPeer = "OpSetPeer",
43
+ SetFeeBps = "OpSetFeeBps",
44
+ SetFeeDeposit = "OpSetFeeDeposit",
45
+ SetEnforcedOptions = "OpSetEnforcedOptions",
46
+ RemoveEnforcedOption = "OpRemoveEnforcedOption",
47
+ SetCostAsserts = "OpSetCostAsserts",
48
+ RemoveCostAsserts = "OpRemoveCostAsserts",
49
+ SetTransferRule = "OpSetTransferRule",
50
+ SetOfferExpiryDelayPeriod = "OpSetOfferExpiryDelayPeriod",
51
+ SetObservers = "OpSetObservers",
52
+ SetRequestFactory = "OpSetRequestFactory",
53
+ GrantRoles = "OpGrantRoles",
54
+ RevokeRoles = "OpRevokeRoles",
55
+ SetMinFee = "OpSetMinFee",
56
+ SetProtocolLedgerTimeValidityPeriod = "OpSetProtocolLedgerTimeValidityPeriod",
57
+ SetOneSigLedgerTimeValidityPeriod = "OpSetOneSigLedgerTimeValidityPeriod"
58
+ }
59
+ /**
60
+ * A Canton party, represented off-chain by its party-id text (`partyToText`),
61
+ * e.g. `Alice::1220<fingerprint>`. This is the value hashed into the leaf, so it
62
+ * must be the exact on-ledger party id. The Canton SDK imports this for
63
+ * chain-local use.
64
+ */
65
+ export declare const CantonPartyIdSchema: z.ZodString;
66
+ export type CantonPartyId = z.infer<typeof CantonPartyIdSchema>;
67
+ /**
68
+ * A DAML `Decimal` (Numeric 10) argument. Accepts a string (recommended, exact)
69
+ * or a JS number; encoded via `formatDamlDecimal` to match DAML `show`.
70
+ */
71
+ export declare const DecimalLikeSchema: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
72
+ export type DecimalLike = z.infer<typeof DecimalLikeSchema>;
73
+ /**
74
+ * A DAML `Time` / `RelTime`, represented off-chain as whole **microseconds**
75
+ * (since the unix epoch for `Time`; a duration for `RelTime`). Microseconds are
76
+ * DAML's native precision, so an `IntLike` here reproduces the on-ledger value
77
+ * losslessly (unlike a JS `Date`, which is millisecond-precision).
78
+ */
79
+ export declare const CantonMicrosSchema: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
80
+ export type CantonMicros = IntLike;
81
+ /**
82
+ * Identifies the OApp a config call targets, mirroring DAML `AppUID.Types.OAppId`.
83
+ * Signed into the leaf and checked on-ledger against the supplied config.
84
+ */
85
+ export declare const CantonOAppIdSchema: z.ZodObject<{
86
+ admin: z.ZodString;
87
+ id: z.ZodString;
88
+ }, z.core.$strip>;
89
+ export type CantonOAppId = z.infer<typeof CantonOAppIdSchema>;
90
+ /**
91
+ * A rate-limiter config entry (DAML `RateLimitConfigEntry`): the four enable
92
+ * flags followed by the outbound/inbound limits and windows.
93
+ */
94
+ export declare const RateLimitConfigEntrySchema: z.ZodObject<{
95
+ outboundEnabled: z.ZodBoolean;
96
+ inboundEnabled: z.ZodBoolean;
97
+ netAccountingEnabled: z.ZodBoolean;
98
+ addressExemptionEnabled: z.ZodBoolean;
99
+ outboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
100
+ inboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
101
+ outboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
102
+ inboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
103
+ }, z.core.$strip>;
104
+ export type RateLimitConfigEntry = z.infer<typeof RateLimitConfigEntrySchema>;
105
+ /**
106
+ * Cost-assert parameters for a destination eid (DAML `CostAssertConfig`).
107
+ * `nativeCap` is optional: `null`/omitted encodes as DAML `None`.
108
+ */
109
+ export declare const CostAssertConfigSchema: z.ZodObject<{
110
+ maxPriceRatio: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
111
+ maxGasPrice: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
112
+ gasPriceScale: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
113
+ nativeDecimalShift: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
114
+ nativeCap: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>>>;
115
+ minFee: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
116
+ }, z.core.$strip>;
117
+ export type CostAssertConfig = z.infer<typeof CostAssertConfigSchema>;
118
+ /** One enforced-option entry (DAML `EnforcedOptionParam`): eid, msgType, hex options. */
119
+ export declare const EnforcedOptionParamSchema: z.ZodObject<{
120
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
121
+ msgType: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
122
+ options: z.ZodString;
123
+ }, z.core.$strip>;
124
+ export type EnforcedOptionParam = z.infer<typeof EnforcedOptionParamSchema>;
125
+ /**
126
+ * A protocol-scoped contract identity (DAML `Scope`): category, instance id, and
127
+ * the authorizing admin party.
128
+ */
129
+ export declare const CantonScopeSchema: z.ZodObject<{
130
+ category: z.ZodString;
131
+ id: z.ZodString;
132
+ admin: z.ZodString;
133
+ }, z.core.$strip>;
134
+ export type CantonScope = z.infer<typeof CantonScopeSchema>;
135
+ /** One `(roleName, party)` RBAC assignment (DAML `RoleAssignment`). */
136
+ export declare const CantonRoleAssignmentSchema: z.ZodObject<{
137
+ roleName: z.ZodString;
138
+ party: z.ZodString;
139
+ }, z.core.$strip>;
140
+ export type CantonRoleAssignment = z.infer<typeof CantonRoleAssignmentSchema>;
141
+ /**
142
+ * Allowlist mode, mirroring DAML `AllowlistMode`. Kept as a TS enum so call sites
143
+ * can reference the members (`CantonAllowlistMode.Open`); `CantonAllowlistModeSchema`
144
+ * validates the same values.
145
+ */
146
+ export declare enum CantonAllowlistMode {
147
+ Open = "Open",
148
+ Blacklist = "Blacklist",
149
+ Whitelist = "Whitelist"
150
+ }
151
+ export declare const CantonAllowlistModeSchema: z.ZodEnum<typeof CantonAllowlistMode>;
152
+ /**
153
+ * The encodable subset of DAML `AnyValue` used inside a `CantonCallContext`. Contract
154
+ * ids and other non-reproducible values are intentionally absent: they cannot be
155
+ * reproduced off-chain and are rejected by the on-ledger encoder, so they must
156
+ * never appear in a signed context.
157
+ *
158
+ * `AnyValue` is recursive (`list` / `map` nest further values), so the type is
159
+ * declared explicitly and the schema is annotated with it and built via `z.lazy`.
160
+ */
161
+ export type AnyValue = {
162
+ type: 'text';
163
+ value: string;
164
+ } | {
165
+ type: 'int';
166
+ value: IntLike;
167
+ } | {
168
+ type: 'decimal';
169
+ value: string | number;
170
+ } | {
171
+ type: 'bool';
172
+ value: boolean;
173
+ } | {
174
+ type: 'party';
175
+ value: CantonPartyId;
176
+ } | {
177
+ type: 'list';
178
+ value: AnyValue[];
179
+ } | {
180
+ type: 'map';
181
+ value: Record<string, AnyValue>;
182
+ };
183
+ export declare const AnyValueSchema: z.ZodType<AnyValue>;
184
+ /** `argName => argValue` (DAML `CallArgs`). */
185
+ export declare const CantonCallArgsSchema: z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>;
186
+ export type CantonCallArgs = z.infer<typeof CantonCallArgsSchema>;
187
+ /** `fnSig => CallArgs` (DAML `CallFnArgs`). */
188
+ export declare const CantonCallFnArgsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>;
189
+ export type CantonCallFnArgs = z.infer<typeof CantonCallFnArgsSchema>;
190
+ /** `target.address => CallFnArgs` (DAML `CallContractArgs`; key is the address text). */
191
+ export declare const CantonCallContractArgsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>;
192
+ export type CantonCallContractArgs = z.infer<typeof CantonCallContractArgsSchema>;
193
+ /** `target.name => CallContractArgs` (DAML `CallTargetArgs`). */
194
+ export declare const CantonCallTargetArgsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>;
195
+ export type CantonCallTargetArgs = z.infer<typeof CantonCallTargetArgsSchema>;
196
+ /** `caller.address => CallTargetArgs` (DAML `CallCallerArgs`; key is the address text). */
197
+ export declare const CantonCallCallerArgsSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>;
198
+ export type CantonCallCallerArgs = z.infer<typeof CantonCallCallerArgsSchema>;
199
+ /**
200
+ * The six-level nested call context, mirroring DAML `Call.CallContext`:
201
+ * caller.name => caller.address => target.name => target.address => fnSig => argName => argValue
202
+ * Address-keyed levels (caller.address, target.address) use the address text as
203
+ * the key; only text addresses are encodable.
204
+ */
205
+ export declare const cantonCallContextSchema: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>>;
206
+ export type CantonCallContext = z.infer<typeof cantonCallContextSchema>;
207
+ /**
208
+ * Flat SDK representation of a signed OneSig call. Field names mirror the DAML
209
+ * `OneSigCall` constructors. This is the value hashed into the Merkle leaf — it is
210
+ * NOT the Canton submission (DAML-LF JSON) shape, which is built separately.
211
+ */
212
+ export declare const oneSigCantonCallSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
213
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetSigner>;
214
+ signer: z.ZodString;
215
+ active: z.ZodBoolean;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetThreshold>;
218
+ newThreshold: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
219
+ }, z.core.$strip>, z.ZodObject<{
220
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetExecutor>;
221
+ executor: z.ZodString;
222
+ active: z.ZodBoolean;
223
+ }, z.core.$strip>, z.ZodObject<{
224
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetExecutorRequired>;
225
+ required: z.ZodBoolean;
226
+ }, z.core.$strip>, z.ZodObject<{
227
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetSeed>;
228
+ newSeed: z.ZodString;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ tag: z.ZodLiteral<OneSigCantonCallTag.CreateRequest>;
231
+ callContext: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>>;
232
+ callbackContext: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>>;
233
+ requestObservers: z.ZodArray<z.ZodString>;
234
+ feeAmount: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
235
+ dso: z.ZodString;
236
+ }, z.core.$strip>, z.ZodObject<{
237
+ tag: z.ZodLiteral<OneSigCantonCallTag.AddToBlacklist>;
238
+ oappId: z.ZodObject<{
239
+ admin: z.ZodString;
240
+ id: z.ZodString;
241
+ }, z.core.$strip>;
242
+ parties: z.ZodArray<z.ZodString>;
243
+ }, z.core.$strip>, z.ZodObject<{
244
+ tag: z.ZodLiteral<OneSigCantonCallTag.RemoveFromBlacklist>;
245
+ oappId: z.ZodObject<{
246
+ admin: z.ZodString;
247
+ id: z.ZodString;
248
+ }, z.core.$strip>;
249
+ parties: z.ZodArray<z.ZodString>;
250
+ }, z.core.$strip>, z.ZodObject<{
251
+ tag: z.ZodLiteral<OneSigCantonCallTag.AddToWhitelist>;
252
+ oappId: z.ZodObject<{
253
+ admin: z.ZodString;
254
+ id: z.ZodString;
255
+ }, z.core.$strip>;
256
+ parties: z.ZodArray<z.ZodString>;
257
+ }, z.core.$strip>, z.ZodObject<{
258
+ tag: z.ZodLiteral<OneSigCantonCallTag.RemoveFromWhitelist>;
259
+ oappId: z.ZodObject<{
260
+ admin: z.ZodString;
261
+ id: z.ZodString;
262
+ }, z.core.$strip>;
263
+ parties: z.ZodArray<z.ZodString>;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetAllowlistMode>;
266
+ oappId: z.ZodObject<{
267
+ admin: z.ZodString;
268
+ id: z.ZodString;
269
+ }, z.core.$strip>;
270
+ newMode: z.ZodEnum<typeof CantonAllowlistMode>;
271
+ }, z.core.$strip>, z.ZodObject<{
272
+ tag: z.ZodLiteral<OneSigCantonCallTag.CreateOAppRequest>;
273
+ oappId: z.ZodObject<{
274
+ admin: z.ZodString;
275
+ id: z.ZodString;
276
+ }, z.core.$strip>;
277
+ callContext: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>>;
278
+ callbackContext: z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodRecord<z.ZodString, z.ZodType<AnyValue, unknown, z.core.$ZodTypeInternals<AnyValue, unknown>>>>>>>>;
279
+ requestObservers: z.ZodArray<z.ZodString>;
280
+ feeAmount: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
281
+ dso: z.ZodString;
282
+ }, z.core.$strip>, z.ZodObject<{
283
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterSetDefault>;
284
+ oappId: z.ZodObject<{
285
+ admin: z.ZodString;
286
+ id: z.ZodString;
287
+ }, z.core.$strip>;
288
+ newDefaultConfig: z.ZodObject<{
289
+ outboundEnabled: z.ZodBoolean;
290
+ inboundEnabled: z.ZodBoolean;
291
+ netAccountingEnabled: z.ZodBoolean;
292
+ addressExemptionEnabled: z.ZodBoolean;
293
+ outboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
294
+ inboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
295
+ outboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
296
+ inboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
297
+ }, z.core.$strip>;
298
+ }, z.core.$strip>, z.ZodObject<{
299
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterSetEidOverride>;
300
+ oappId: z.ZodObject<{
301
+ admin: z.ZodString;
302
+ id: z.ZodString;
303
+ }, z.core.$strip>;
304
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
305
+ newConfig: z.ZodObject<{
306
+ outboundEnabled: z.ZodBoolean;
307
+ inboundEnabled: z.ZodBoolean;
308
+ netAccountingEnabled: z.ZodBoolean;
309
+ addressExemptionEnabled: z.ZodBoolean;
310
+ outboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
311
+ inboundLimit: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
312
+ outboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
313
+ inboundWindow: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
314
+ }, z.core.$strip>;
315
+ }, z.core.$strip>, z.ZodObject<{
316
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterRemoveEidOverride>;
317
+ oappId: z.ZodObject<{
318
+ admin: z.ZodString;
319
+ id: z.ZodString;
320
+ }, z.core.$strip>;
321
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterSetGlobalFlags>;
324
+ oappId: z.ZodObject<{
325
+ admin: z.ZodString;
326
+ id: z.ZodString;
327
+ }, z.core.$strip>;
328
+ newUseGlobalState: z.ZodBoolean;
329
+ newIsGloballyDisabled: z.ZodBoolean;
330
+ }, z.core.$strip>, z.ZodObject<{
331
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterSetAddressExemption>;
332
+ oappId: z.ZodObject<{
333
+ admin: z.ZodString;
334
+ id: z.ZodString;
335
+ }, z.core.$strip>;
336
+ user: z.ZodString;
337
+ isExempt: z.ZodBoolean;
338
+ }, z.core.$strip>, z.ZodObject<{
339
+ tag: z.ZodLiteral<OneSigCantonCallTag.RateLimiterSetState>;
340
+ oappId: z.ZodObject<{
341
+ admin: z.ZodString;
342
+ id: z.ZodString;
343
+ }, z.core.$strip>;
344
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
345
+ outboundUsage: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
346
+ inboundUsage: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
347
+ lastUpdated: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
348
+ }, z.core.$strip>, z.ZodObject<{
349
+ tag: z.ZodLiteral<OneSigCantonCallTag.PauseLocalTransfers>;
350
+ oappId: z.ZodObject<{
351
+ admin: z.ZodString;
352
+ id: z.ZodString;
353
+ }, z.core.$strip>;
354
+ }, z.core.$strip>, z.ZodObject<{
355
+ tag: z.ZodLiteral<OneSigCantonCallTag.UnpauseLocalTransfers>;
356
+ oappId: z.ZodObject<{
357
+ admin: z.ZodString;
358
+ id: z.ZodString;
359
+ }, z.core.$strip>;
360
+ }, z.core.$strip>, z.ZodObject<{
361
+ tag: z.ZodLiteral<OneSigCantonCallTag.PauseDstEids>;
362
+ oappId: z.ZodObject<{
363
+ admin: z.ZodString;
364
+ id: z.ZodString;
365
+ }, z.core.$strip>;
366
+ dstEids: z.ZodArray<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>>;
367
+ }, z.core.$strip>, z.ZodObject<{
368
+ tag: z.ZodLiteral<OneSigCantonCallTag.UnpauseDstEids>;
369
+ oappId: z.ZodObject<{
370
+ admin: z.ZodString;
371
+ id: z.ZodString;
372
+ }, z.core.$strip>;
373
+ dstEids: z.ZodArray<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>>;
374
+ }, z.core.$strip>, z.ZodObject<{
375
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetLedgerTimeValidityPeriod>;
376
+ oappId: z.ZodObject<{
377
+ admin: z.ZodString;
378
+ id: z.ZodString;
379
+ }, z.core.$strip>;
380
+ newLedgerTimeValidityPeriod: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
381
+ }, z.core.$strip>, z.ZodObject<{
382
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetPeer>;
383
+ oappId: z.ZodObject<{
384
+ admin: z.ZodString;
385
+ id: z.ZodString;
386
+ }, z.core.$strip>;
387
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
388
+ peer: z.ZodString;
389
+ }, z.core.$strip>, z.ZodObject<{
390
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetFeeBps>;
391
+ oappId: z.ZodObject<{
392
+ admin: z.ZodString;
393
+ id: z.ZodString;
394
+ }, z.core.$strip>;
395
+ dstEid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
396
+ feeBps: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
397
+ }, z.core.$strip>, z.ZodObject<{
398
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetFeeDeposit>;
399
+ oappId: z.ZodObject<{
400
+ admin: z.ZodString;
401
+ id: z.ZodString;
402
+ }, z.core.$strip>;
403
+ newFeeDeposit: z.ZodString;
404
+ }, z.core.$strip>, z.ZodObject<{
405
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetEnforcedOptions>;
406
+ oappId: z.ZodObject<{
407
+ admin: z.ZodString;
408
+ id: z.ZodString;
409
+ }, z.core.$strip>;
410
+ params: z.ZodArray<z.ZodObject<{
411
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
412
+ msgType: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
413
+ options: z.ZodString;
414
+ }, z.core.$strip>>;
415
+ }, z.core.$strip>, z.ZodObject<{
416
+ tag: z.ZodLiteral<OneSigCantonCallTag.RemoveEnforcedOption>;
417
+ oappId: z.ZodObject<{
418
+ admin: z.ZodString;
419
+ id: z.ZodString;
420
+ }, z.core.$strip>;
421
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
422
+ msgType: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
423
+ }, z.core.$strip>, z.ZodObject<{
424
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetCostAsserts>;
425
+ oappId: z.ZodObject<{
426
+ admin: z.ZodString;
427
+ id: z.ZodString;
428
+ }, z.core.$strip>;
429
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
430
+ config: z.ZodObject<{
431
+ maxPriceRatio: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
432
+ maxGasPrice: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
433
+ gasPriceScale: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
434
+ nativeDecimalShift: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
435
+ nativeCap: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>>>;
436
+ minFee: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
437
+ }, z.core.$strip>;
438
+ }, z.core.$strip>, z.ZodObject<{
439
+ tag: z.ZodLiteral<OneSigCantonCallTag.RemoveCostAsserts>;
440
+ oappId: z.ZodObject<{
441
+ admin: z.ZodString;
442
+ id: z.ZodString;
443
+ }, z.core.$strip>;
444
+ eid: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
445
+ }, z.core.$strip>, z.ZodObject<{
446
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetTransferRule>;
447
+ oappId: z.ZodObject<{
448
+ admin: z.ZodString;
449
+ id: z.ZodString;
450
+ }, z.core.$strip>;
451
+ }, z.core.$strip>, z.ZodObject<{
452
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetOfferExpiryDelayPeriod>;
453
+ oappId: z.ZodObject<{
454
+ admin: z.ZodString;
455
+ id: z.ZodString;
456
+ }, z.core.$strip>;
457
+ newOfferExpiryDelayPeriod: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
458
+ }, z.core.$strip>, z.ZodObject<{
459
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetObservers>;
460
+ oappId: z.ZodObject<{
461
+ admin: z.ZodString;
462
+ id: z.ZodString;
463
+ }, z.core.$strip>;
464
+ newObservers: z.ZodArray<z.ZodString>;
465
+ }, z.core.$strip>, z.ZodObject<{
466
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetRequestFactory>;
467
+ oappId: z.ZodObject<{
468
+ admin: z.ZodString;
469
+ id: z.ZodString;
470
+ }, z.core.$strip>;
471
+ expectedHandler: z.ZodString;
472
+ }, z.core.$strip>, z.ZodObject<{
473
+ tag: z.ZodLiteral<OneSigCantonCallTag.GrantRoles>;
474
+ scope: z.ZodObject<{
475
+ category: z.ZodString;
476
+ id: z.ZodString;
477
+ admin: z.ZodString;
478
+ }, z.core.$strip>;
479
+ assignments: z.ZodArray<z.ZodObject<{
480
+ roleName: z.ZodString;
481
+ party: z.ZodString;
482
+ }, z.core.$strip>>;
483
+ }, z.core.$strip>, z.ZodObject<{
484
+ tag: z.ZodLiteral<OneSigCantonCallTag.RevokeRoles>;
485
+ scope: z.ZodObject<{
486
+ category: z.ZodString;
487
+ id: z.ZodString;
488
+ admin: z.ZodString;
489
+ }, z.core.$strip>;
490
+ assignments: z.ZodArray<z.ZodObject<{
491
+ roleName: z.ZodString;
492
+ party: z.ZodString;
493
+ }, z.core.$strip>>;
494
+ }, z.core.$strip>, z.ZodObject<{
495
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetMinFee>;
496
+ scope: z.ZodObject<{
497
+ category: z.ZodString;
498
+ id: z.ZodString;
499
+ admin: z.ZodString;
500
+ }, z.core.$strip>;
501
+ newMinFee: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
502
+ }, z.core.$strip>, z.ZodObject<{
503
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetProtocolLedgerTimeValidityPeriod>;
504
+ scope: z.ZodObject<{
505
+ category: z.ZodString;
506
+ id: z.ZodString;
507
+ admin: z.ZodString;
508
+ }, z.core.$strip>;
509
+ newLedgerTimeValidityPeriod: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
510
+ }, z.core.$strip>, z.ZodObject<{
511
+ tag: z.ZodLiteral<OneSigCantonCallTag.SetOneSigLedgerTimeValidityPeriod>;
512
+ newLedgerTimeValidityPeriod: z.ZodUnion<readonly [z.ZodBigInt, z.ZodNumber]>;
513
+ }, z.core.$strip>], "tag">;
514
+ export type OneSigCantonCall = z.infer<typeof oneSigCantonCallSchema>;
515
+ export {};
516
+ //# sourceMappingURL=onesig-canton-call.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onesig-canton-call.d.ts","sourceRoot":"","sources":["../../../../src/model/onesig-bundle/calls/onesig-canton-call.ts"],"names":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E,2FAA2F;AAC3F,eAAO,MAAM,0BAA0B,6MAAmD,CAAC;AAC3F,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,uOAAmD,CAAC;AACxF,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAkMjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AnyValueSchema, CantonAllowlistMode, CantonAllowlistModeSchema, CantonCallArgsSchema, CantonCallCallerArgsSchema, CantonCallContractArgsSchema, CantonCallFnArgsSchema, CantonCallTargetArgsSchema, CantonMicrosSchema, CantonOAppIdSchema, CantonPartyIdSchema, CantonRoleAssignmentSchema, CantonScopeSchema, CostAssertConfigSchema, DecimalLikeSchema, EnforcedOptionParamSchema, OneSigCantonCallTag, RateLimitConfigEntrySchema, cantonCallContextSchema, oneSigCantonCallSchema } from '../../../P7VEODD3.js';
2
+ import '../../../VUOMXK5T.js';
3
+ //# sourceMappingURL=onesig-canton-call.js.map
4
+ //# sourceMappingURL=onesig-canton-call.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"onesig-canton-call.js"}
@@ -1,9 +1,10 @@
1
1
  import '../../YKZ5WATU.js';
2
- export { oneSigEntitySchema, oneSigProposedEntitySchema } from '../../QFF6AT3B.js';
2
+ export { oneSigEntitySchema, oneSigProposedEntitySchema } from '../../TS6JM3WN.js';
3
3
  export { proposerSignatureSchema } from '../../WJMHUJYW.js';
4
4
  export { signerSignatureSchema } from '../../H3AGSGWO.js';
5
- export { OneSigTransactionStatus, oneSigBundleTransactionsResponseSchema, oneSigLeafSchema, oneSigTransactionSchema } from '../../BPXJBTYZ.js';
6
- export { oneSigCallSchema } from '../../S4JTB5O3.js';
5
+ export { OneSigTransactionStatus, oneSigBundleTransactionsResponseSchema, oneSigLeafSchema, oneSigTransactionSchema } from '../../55LR37BZ.js';
6
+ export { oneSigCallSchema } from '../../JDS2GCUD.js';
7
+ export { AnyValueSchema, CantonAllowlistMode, CantonAllowlistModeSchema, CantonCallArgsSchema, CantonCallCallerArgsSchema, CantonCallContractArgsSchema, CantonCallFnArgsSchema, CantonCallTargetArgsSchema, CantonMicrosSchema, CantonOAppIdSchema, CantonPartyIdSchema, CantonRoleAssignmentSchema, CantonScopeSchema, CostAssertConfigSchema, DecimalLikeSchema, EnforcedOptionParamSchema, OneSigCantonCallTag, RateLimitConfigEntrySchema, cantonCallContextSchema, oneSigCantonCallSchema } from '../../P7VEODD3.js';
7
8
  export { oneSigEVMCallSchema } from '../../K2YC5FPR.js';
8
9
  export { oneSigSolanaCallSchema } from '../../WVUE7QAU.js';
9
10
  export { oneSigStarknetCallSchema } from '../../CMEEOEP5.js';