@layr-labs/ecloud-sdk 1.0.0-dev.6 → 1.0.0-dev.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/browser.js CHANGED
@@ -146,6 +146,13 @@ var init_session = __esm({
146
146
  });
147
147
 
148
148
  // src/client/common/types/index.ts
149
+ var EMPTY_CONTAINER_POLICY = {
150
+ args: [],
151
+ cmdOverride: [],
152
+ env: [],
153
+ envOverride: [],
154
+ restartPolicy: ""
155
+ };
149
156
  var noopLogger = {
150
157
  debug: () => {
151
158
  },
@@ -184,6 +191,8 @@ var ENVIRONMENTS = {
184
191
  name: "sepolia",
185
192
  build: "dev",
186
193
  appControllerAddress: "0xa86DC1C47cb2518327fB4f9A1627F51966c83B92",
194
+ releaseAbiVersion: "v1.5",
195
+ // AppController upgraded to v1.5.x (containerPolicy)
187
196
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
188
197
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
189
198
  kmsServerURL: "http://10.128.0.57:8080",
@@ -197,6 +206,8 @@ var ENVIRONMENTS = {
197
206
  name: "sepolia",
198
207
  build: "prod",
199
208
  appControllerAddress: "0x0dd810a6ffba6a9820a10d97b659f07d8d23d4E2",
209
+ releaseAbiVersion: "v1.4",
210
+ // prod still on AppController v1.4.0 (3-field Release)
200
211
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
201
212
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
202
213
  kmsServerURL: "http://10.128.15.203:8080",
@@ -211,6 +222,8 @@ var ENVIRONMENTS = {
211
222
  name: "mainnet-alpha",
212
223
  build: "prod",
213
224
  appControllerAddress: "0xc38d35Fc995e75342A21CBd6D770305b142Fbe67",
225
+ releaseAbiVersion: "v1.4",
226
+ // prod still on AppController v1.4.0 (3-field Release)
214
227
  permissionControllerAddress: ChainAddresses[MAINNET_CHAIN_ID].PermissionController,
215
228
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
216
229
  kmsServerURL: "http://10.128.0.2:8080",
@@ -585,6 +598,7 @@ import axios from "axios";
585
598
  var MAX_RETRIES = 5;
586
599
  var INITIAL_BACKOFF_MS = 1e3;
587
600
  var MAX_BACKOFF_MS = 3e4;
601
+ var RETRYABLE_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
588
602
  function sleep(ms) {
589
603
  return new Promise((resolve) => setTimeout(resolve, ms));
590
604
  }
@@ -604,7 +618,7 @@ async function requestWithRetry(config) {
604
618
  for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
605
619
  const res = await axios({ ...config, validateStatus: () => true });
606
620
  lastResponse = res;
607
- if (res.status !== 429) {
621
+ if (!RETRYABLE_STATUSES.has(res.status)) {
608
622
  return res;
609
623
  }
610
624
  if (attempt < MAX_RETRIES) {
@@ -633,7 +647,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
633
647
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
634
648
  var CanUpdateAppProfilePermission = "0x036fef61";
635
649
  function getDefaultClientId() {
636
- const version = true ? "1.0.0-dev.6" : "0.0.0";
650
+ const version = true ? "1.0.0-dev.8" : "0.0.0";
637
651
  return `ecloud-sdk/v${version}`;
638
652
  }
639
653
  var UserApiClient = class {
@@ -2955,6 +2969,19 @@ var AppController_default = [
2955
2969
  ],
2956
2970
  stateMutability: "view"
2957
2971
  },
2972
+ {
2973
+ type: "function",
2974
+ name: "confirmUpgrade",
2975
+ inputs: [
2976
+ {
2977
+ name: "app",
2978
+ type: "address",
2979
+ internalType: "contractIApp"
2980
+ }
2981
+ ],
2982
+ outputs: [],
2983
+ stateMutability: "nonpayable"
2984
+ },
2958
2985
  {
2959
2986
  type: "function",
2960
2987
  name: "createApp",
@@ -3007,6 +3034,62 @@ var AppController_default = [
3007
3034
  name: "encryptedEnv",
3008
3035
  type: "bytes",
3009
3036
  internalType: "bytes"
3037
+ },
3038
+ {
3039
+ name: "containerPolicy",
3040
+ type: "tuple",
3041
+ internalType: "structIAppController.ContainerPolicy",
3042
+ components: [
3043
+ {
3044
+ name: "args",
3045
+ type: "string[]",
3046
+ internalType: "string[]"
3047
+ },
3048
+ {
3049
+ name: "cmdOverride",
3050
+ type: "string[]",
3051
+ internalType: "string[]"
3052
+ },
3053
+ {
3054
+ name: "env",
3055
+ type: "tuple[]",
3056
+ internalType: "structIAppController.EnvVar[]",
3057
+ components: [
3058
+ {
3059
+ name: "key",
3060
+ type: "string",
3061
+ internalType: "string"
3062
+ },
3063
+ {
3064
+ name: "value",
3065
+ type: "string",
3066
+ internalType: "string"
3067
+ }
3068
+ ]
3069
+ },
3070
+ {
3071
+ name: "envOverride",
3072
+ type: "tuple[]",
3073
+ internalType: "structIAppController.EnvVar[]",
3074
+ components: [
3075
+ {
3076
+ name: "key",
3077
+ type: "string",
3078
+ internalType: "string"
3079
+ },
3080
+ {
3081
+ name: "value",
3082
+ type: "string",
3083
+ internalType: "string"
3084
+ }
3085
+ ]
3086
+ },
3087
+ {
3088
+ name: "restartPolicy",
3089
+ type: "string",
3090
+ internalType: "string"
3091
+ }
3092
+ ]
3010
3093
  }
3011
3094
  ]
3012
3095
  }
@@ -3072,6 +3155,62 @@ var AppController_default = [
3072
3155
  name: "encryptedEnv",
3073
3156
  type: "bytes",
3074
3157
  internalType: "bytes"
3158
+ },
3159
+ {
3160
+ name: "containerPolicy",
3161
+ type: "tuple",
3162
+ internalType: "structIAppController.ContainerPolicy",
3163
+ components: [
3164
+ {
3165
+ name: "args",
3166
+ type: "string[]",
3167
+ internalType: "string[]"
3168
+ },
3169
+ {
3170
+ name: "cmdOverride",
3171
+ type: "string[]",
3172
+ internalType: "string[]"
3173
+ },
3174
+ {
3175
+ name: "env",
3176
+ type: "tuple[]",
3177
+ internalType: "structIAppController.EnvVar[]",
3178
+ components: [
3179
+ {
3180
+ name: "key",
3181
+ type: "string",
3182
+ internalType: "string"
3183
+ },
3184
+ {
3185
+ name: "value",
3186
+ type: "string",
3187
+ internalType: "string"
3188
+ }
3189
+ ]
3190
+ },
3191
+ {
3192
+ name: "envOverride",
3193
+ type: "tuple[]",
3194
+ internalType: "structIAppController.EnvVar[]",
3195
+ components: [
3196
+ {
3197
+ name: "key",
3198
+ type: "string",
3199
+ internalType: "string"
3200
+ },
3201
+ {
3202
+ name: "value",
3203
+ type: "string",
3204
+ internalType: "string"
3205
+ }
3206
+ ]
3207
+ },
3208
+ {
3209
+ name: "restartPolicy",
3210
+ type: "string",
3211
+ internalType: "string"
3212
+ }
3213
+ ]
3075
3214
  }
3076
3215
  ]
3077
3216
  }
@@ -3085,6 +3224,44 @@ var AppController_default = [
3085
3224
  ],
3086
3225
  stateMutability: "nonpayable"
3087
3226
  },
3227
+ {
3228
+ type: "function",
3229
+ name: "createEmptyApp",
3230
+ inputs: [
3231
+ {
3232
+ name: "salt",
3233
+ type: "bytes32",
3234
+ internalType: "bytes32"
3235
+ }
3236
+ ],
3237
+ outputs: [
3238
+ {
3239
+ name: "app",
3240
+ type: "address",
3241
+ internalType: "contractIApp"
3242
+ }
3243
+ ],
3244
+ stateMutability: "nonpayable"
3245
+ },
3246
+ {
3247
+ type: "function",
3248
+ name: "createEmptyAppWithIsolatedBilling",
3249
+ inputs: [
3250
+ {
3251
+ name: "salt",
3252
+ type: "bytes32",
3253
+ internalType: "bytes32"
3254
+ }
3255
+ ],
3256
+ outputs: [
3257
+ {
3258
+ name: "app",
3259
+ type: "address",
3260
+ internalType: "contractIApp"
3261
+ }
3262
+ ],
3263
+ stateMutability: "nonpayable"
3264
+ },
3088
3265
  {
3089
3266
  type: "function",
3090
3267
  name: "domainSeparator",
@@ -3119,26 +3296,26 @@ var AppController_default = [
3119
3296
  },
3120
3297
  {
3121
3298
  type: "function",
3122
- name: "getBillingType",
3299
+ name: "getAppCreator",
3123
3300
  inputs: [
3124
3301
  {
3125
3302
  name: "app",
3126
3303
  type: "address",
3127
- internalType: "address"
3304
+ internalType: "contractIApp"
3128
3305
  }
3129
3306
  ],
3130
3307
  outputs: [
3131
3308
  {
3132
3309
  name: "",
3133
- type: "uint8",
3134
- internalType: "uint8"
3310
+ type: "address",
3311
+ internalType: "address"
3135
3312
  }
3136
3313
  ],
3137
3314
  stateMutability: "view"
3138
3315
  },
3139
3316
  {
3140
3317
  type: "function",
3141
- name: "getAppCreator",
3318
+ name: "getAppLatestReleaseBlockNumber",
3142
3319
  inputs: [
3143
3320
  {
3144
3321
  name: "app",
@@ -3149,15 +3326,15 @@ var AppController_default = [
3149
3326
  outputs: [
3150
3327
  {
3151
3328
  name: "",
3152
- type: "address",
3153
- internalType: "address"
3329
+ type: "uint32",
3330
+ internalType: "uint32"
3154
3331
  }
3155
3332
  ],
3156
3333
  stateMutability: "view"
3157
3334
  },
3158
3335
  {
3159
3336
  type: "function",
3160
- name: "getAppLatestReleaseBlockNumber",
3337
+ name: "getAppOperatorSetId",
3161
3338
  inputs: [
3162
3339
  {
3163
3340
  name: "app",
@@ -3176,7 +3353,7 @@ var AppController_default = [
3176
3353
  },
3177
3354
  {
3178
3355
  type: "function",
3179
- name: "getAppOperatorSetId",
3356
+ name: "getAppPendingReleaseBlockNumber",
3180
3357
  inputs: [
3181
3358
  {
3182
3359
  name: "app",
@@ -3253,6 +3430,11 @@ var AppController_default = [
3253
3430
  type: "uint32",
3254
3431
  internalType: "uint32"
3255
3432
  },
3433
+ {
3434
+ name: "pendingReleaseBlockNumber",
3435
+ type: "uint32",
3436
+ internalType: "uint32"
3437
+ },
3256
3438
  {
3257
3439
  name: "status",
3258
3440
  type: "uint8",
@@ -3309,6 +3491,11 @@ var AppController_default = [
3309
3491
  type: "uint32",
3310
3492
  internalType: "uint32"
3311
3493
  },
3494
+ {
3495
+ name: "pendingReleaseBlockNumber",
3496
+ type: "uint32",
3497
+ internalType: "uint32"
3498
+ },
3312
3499
  {
3313
3500
  name: "status",
3314
3501
  type: "uint8",
@@ -3365,6 +3552,11 @@ var AppController_default = [
3365
3552
  type: "uint32",
3366
3553
  internalType: "uint32"
3367
3554
  },
3555
+ {
3556
+ name: "pendingReleaseBlockNumber",
3557
+ type: "uint32",
3558
+ internalType: "uint32"
3559
+ },
3368
3560
  {
3369
3561
  name: "status",
3370
3562
  type: "uint8",
@@ -3421,6 +3613,11 @@ var AppController_default = [
3421
3613
  type: "uint32",
3422
3614
  internalType: "uint32"
3423
3615
  },
3616
+ {
3617
+ name: "pendingReleaseBlockNumber",
3618
+ type: "uint32",
3619
+ internalType: "uint32"
3620
+ },
3424
3621
  {
3425
3622
  name: "status",
3426
3623
  type: "uint8",
@@ -3431,6 +3628,44 @@ var AppController_default = [
3431
3628
  ],
3432
3629
  stateMutability: "view"
3433
3630
  },
3631
+ {
3632
+ type: "function",
3633
+ name: "getBillingAccount",
3634
+ inputs: [
3635
+ {
3636
+ name: "app",
3637
+ type: "address",
3638
+ internalType: "contractIApp"
3639
+ }
3640
+ ],
3641
+ outputs: [
3642
+ {
3643
+ name: "",
3644
+ type: "address",
3645
+ internalType: "address"
3646
+ }
3647
+ ],
3648
+ stateMutability: "view"
3649
+ },
3650
+ {
3651
+ type: "function",
3652
+ name: "getBillingType",
3653
+ inputs: [
3654
+ {
3655
+ name: "app",
3656
+ type: "address",
3657
+ internalType: "contractIApp"
3658
+ }
3659
+ ],
3660
+ outputs: [
3661
+ {
3662
+ name: "",
3663
+ type: "uint8",
3664
+ internalType: "enumIAppController.BillingType"
3665
+ }
3666
+ ],
3667
+ stateMutability: "view"
3668
+ },
3434
3669
  {
3435
3670
  type: "function",
3436
3671
  name: "getMaxActiveAppsPerUser",
@@ -3686,6 +3921,62 @@ var AppController_default = [
3686
3921
  name: "encryptedEnv",
3687
3922
  type: "bytes",
3688
3923
  internalType: "bytes"
3924
+ },
3925
+ {
3926
+ name: "containerPolicy",
3927
+ type: "tuple",
3928
+ internalType: "structIAppController.ContainerPolicy",
3929
+ components: [
3930
+ {
3931
+ name: "args",
3932
+ type: "string[]",
3933
+ internalType: "string[]"
3934
+ },
3935
+ {
3936
+ name: "cmdOverride",
3937
+ type: "string[]",
3938
+ internalType: "string[]"
3939
+ },
3940
+ {
3941
+ name: "env",
3942
+ type: "tuple[]",
3943
+ internalType: "structIAppController.EnvVar[]",
3944
+ components: [
3945
+ {
3946
+ name: "key",
3947
+ type: "string",
3948
+ internalType: "string"
3949
+ },
3950
+ {
3951
+ name: "value",
3952
+ type: "string",
3953
+ internalType: "string"
3954
+ }
3955
+ ]
3956
+ },
3957
+ {
3958
+ name: "envOverride",
3959
+ type: "tuple[]",
3960
+ internalType: "structIAppController.EnvVar[]",
3961
+ components: [
3962
+ {
3963
+ name: "key",
3964
+ type: "string",
3965
+ internalType: "string"
3966
+ },
3967
+ {
3968
+ name: "value",
3969
+ type: "string",
3970
+ internalType: "string"
3971
+ }
3972
+ ]
3973
+ },
3974
+ {
3975
+ name: "restartPolicy",
3976
+ type: "string",
3977
+ internalType: "string"
3978
+ }
3979
+ ]
3689
3980
  }
3690
3981
  ]
3691
3982
  }
@@ -3881,30 +4172,1298 @@ var AppController_default = [
3881
4172
  name: "encryptedEnv",
3882
4173
  type: "bytes",
3883
4174
  internalType: "bytes"
3884
- }
3885
- ]
3886
- }
3887
- ],
3888
- anonymous: false
3889
- },
3890
- {
3891
- type: "event",
3892
- name: "GlobalMaxActiveAppsSet",
3893
- inputs: [
3894
- {
3895
- name: "limit",
3896
- type: "uint32",
3897
- indexed: false,
3898
- internalType: "uint32"
3899
- }
3900
- ],
3901
- anonymous: false
3902
- },
3903
- {
3904
- type: "event",
3905
- name: "Initialized",
3906
- inputs: [
3907
- {
4175
+ },
4176
+ {
4177
+ name: "containerPolicy",
4178
+ type: "tuple",
4179
+ internalType: "structIAppController.ContainerPolicy",
4180
+ components: [
4181
+ {
4182
+ name: "args",
4183
+ type: "string[]",
4184
+ internalType: "string[]"
4185
+ },
4186
+ {
4187
+ name: "cmdOverride",
4188
+ type: "string[]",
4189
+ internalType: "string[]"
4190
+ },
4191
+ {
4192
+ name: "env",
4193
+ type: "tuple[]",
4194
+ internalType: "structIAppController.EnvVar[]",
4195
+ components: [
4196
+ {
4197
+ name: "key",
4198
+ type: "string",
4199
+ internalType: "string"
4200
+ },
4201
+ {
4202
+ name: "value",
4203
+ type: "string",
4204
+ internalType: "string"
4205
+ }
4206
+ ]
4207
+ },
4208
+ {
4209
+ name: "envOverride",
4210
+ type: "tuple[]",
4211
+ internalType: "structIAppController.EnvVar[]",
4212
+ components: [
4213
+ {
4214
+ name: "key",
4215
+ type: "string",
4216
+ internalType: "string"
4217
+ },
4218
+ {
4219
+ name: "value",
4220
+ type: "string",
4221
+ internalType: "string"
4222
+ }
4223
+ ]
4224
+ },
4225
+ {
4226
+ name: "restartPolicy",
4227
+ type: "string",
4228
+ internalType: "string"
4229
+ }
4230
+ ]
4231
+ }
4232
+ ]
4233
+ }
4234
+ ],
4235
+ anonymous: false
4236
+ },
4237
+ {
4238
+ type: "event",
4239
+ name: "GlobalMaxActiveAppsSet",
4240
+ inputs: [
4241
+ {
4242
+ name: "limit",
4243
+ type: "uint32",
4244
+ indexed: false,
4245
+ internalType: "uint32"
4246
+ }
4247
+ ],
4248
+ anonymous: false
4249
+ },
4250
+ {
4251
+ type: "event",
4252
+ name: "Initialized",
4253
+ inputs: [
4254
+ {
4255
+ name: "version",
4256
+ type: "uint8",
4257
+ indexed: false,
4258
+ internalType: "uint8"
4259
+ }
4260
+ ],
4261
+ anonymous: false
4262
+ },
4263
+ {
4264
+ type: "event",
4265
+ name: "MaxActiveAppsSet",
4266
+ inputs: [
4267
+ {
4268
+ name: "user",
4269
+ type: "address",
4270
+ indexed: true,
4271
+ internalType: "address"
4272
+ },
4273
+ {
4274
+ name: "limit",
4275
+ type: "uint32",
4276
+ indexed: false,
4277
+ internalType: "uint32"
4278
+ }
4279
+ ],
4280
+ anonymous: false
4281
+ },
4282
+ {
4283
+ type: "event",
4284
+ name: "UpgradeConfirmed",
4285
+ inputs: [
4286
+ {
4287
+ name: "app",
4288
+ type: "address",
4289
+ indexed: true,
4290
+ internalType: "contractIApp"
4291
+ },
4292
+ {
4293
+ name: "pendingReleaseBlockNumber",
4294
+ type: "uint32",
4295
+ indexed: false,
4296
+ internalType: "uint32"
4297
+ }
4298
+ ],
4299
+ anonymous: false
4300
+ },
4301
+ {
4302
+ type: "error",
4303
+ name: "AccountHasActiveApps",
4304
+ inputs: []
4305
+ },
4306
+ {
4307
+ type: "error",
4308
+ name: "AppAlreadyExists",
4309
+ inputs: []
4310
+ },
4311
+ {
4312
+ type: "error",
4313
+ name: "AppDoesNotExist",
4314
+ inputs: []
4315
+ },
4316
+ {
4317
+ type: "error",
4318
+ name: "GlobalMaxActiveAppsExceeded",
4319
+ inputs: []
4320
+ },
4321
+ {
4322
+ type: "error",
4323
+ name: "InvalidAppStatus",
4324
+ inputs: []
4325
+ },
4326
+ {
4327
+ type: "error",
4328
+ name: "InvalidPermissions",
4329
+ inputs: []
4330
+ },
4331
+ {
4332
+ type: "error",
4333
+ name: "InvalidReleaseMetadataURI",
4334
+ inputs: []
4335
+ },
4336
+ {
4337
+ type: "error",
4338
+ name: "InvalidShortString",
4339
+ inputs: []
4340
+ },
4341
+ {
4342
+ type: "error",
4343
+ name: "InvalidSignature",
4344
+ inputs: []
4345
+ },
4346
+ {
4347
+ type: "error",
4348
+ name: "MaxActiveAppsExceeded",
4349
+ inputs: []
4350
+ },
4351
+ {
4352
+ type: "error",
4353
+ name: "MoreThanOneArtifact",
4354
+ inputs: []
4355
+ },
4356
+ {
4357
+ type: "error",
4358
+ name: "NoPendingUpgrade",
4359
+ inputs: []
4360
+ },
4361
+ {
4362
+ type: "error",
4363
+ name: "SignatureExpired",
4364
+ inputs: []
4365
+ },
4366
+ {
4367
+ type: "error",
4368
+ name: "StringTooLong",
4369
+ inputs: [
4370
+ {
4371
+ name: "str",
4372
+ type: "string",
4373
+ internalType: "string"
4374
+ }
4375
+ ]
4376
+ }
4377
+ ];
4378
+
4379
+ // src/client/common/abis/AppController.v1_4.json
4380
+ var AppController_v1_4_default = [
4381
+ {
4382
+ type: "constructor",
4383
+ inputs: [
4384
+ {
4385
+ name: "_version",
4386
+ type: "string",
4387
+ internalType: "string"
4388
+ },
4389
+ {
4390
+ name: "_permissionController",
4391
+ type: "address",
4392
+ internalType: "contractIPermissionController"
4393
+ },
4394
+ {
4395
+ name: "_releaseManager",
4396
+ type: "address",
4397
+ internalType: "contractIReleaseManager"
4398
+ },
4399
+ {
4400
+ name: "_computeAVSRegistrar",
4401
+ type: "address",
4402
+ internalType: "contractIComputeAVSRegistrar"
4403
+ },
4404
+ {
4405
+ name: "_computeOperator",
4406
+ type: "address",
4407
+ internalType: "contractIComputeOperator"
4408
+ },
4409
+ {
4410
+ name: "_appBeacon",
4411
+ type: "address",
4412
+ internalType: "contractIBeacon"
4413
+ }
4414
+ ],
4415
+ stateMutability: "nonpayable"
4416
+ },
4417
+ {
4418
+ type: "function",
4419
+ name: "API_PERMISSION_TYPEHASH",
4420
+ inputs: [],
4421
+ outputs: [
4422
+ {
4423
+ name: "",
4424
+ type: "bytes32",
4425
+ internalType: "bytes32"
4426
+ }
4427
+ ],
4428
+ stateMutability: "view"
4429
+ },
4430
+ {
4431
+ type: "function",
4432
+ name: "appBeacon",
4433
+ inputs: [],
4434
+ outputs: [
4435
+ {
4436
+ name: "",
4437
+ type: "address",
4438
+ internalType: "contractIBeacon"
4439
+ }
4440
+ ],
4441
+ stateMutability: "view"
4442
+ },
4443
+ {
4444
+ type: "function",
4445
+ name: "calculateApiPermissionDigestHash",
4446
+ inputs: [
4447
+ {
4448
+ name: "permission",
4449
+ type: "bytes4",
4450
+ internalType: "bytes4"
4451
+ },
4452
+ {
4453
+ name: "expiry",
4454
+ type: "uint256",
4455
+ internalType: "uint256"
4456
+ }
4457
+ ],
4458
+ outputs: [
4459
+ {
4460
+ name: "",
4461
+ type: "bytes32",
4462
+ internalType: "bytes32"
4463
+ }
4464
+ ],
4465
+ stateMutability: "view"
4466
+ },
4467
+ {
4468
+ type: "function",
4469
+ name: "calculateAppId",
4470
+ inputs: [
4471
+ {
4472
+ name: "deployer",
4473
+ type: "address",
4474
+ internalType: "address"
4475
+ },
4476
+ {
4477
+ name: "salt",
4478
+ type: "bytes32",
4479
+ internalType: "bytes32"
4480
+ }
4481
+ ],
4482
+ outputs: [
4483
+ {
4484
+ name: "",
4485
+ type: "address",
4486
+ internalType: "contractIApp"
4487
+ }
4488
+ ],
4489
+ stateMutability: "view"
4490
+ },
4491
+ {
4492
+ type: "function",
4493
+ name: "computeAVSRegistrar",
4494
+ inputs: [],
4495
+ outputs: [
4496
+ {
4497
+ name: "",
4498
+ type: "address",
4499
+ internalType: "contractIComputeAVSRegistrar"
4500
+ }
4501
+ ],
4502
+ stateMutability: "view"
4503
+ },
4504
+ {
4505
+ type: "function",
4506
+ name: "computeOperator",
4507
+ inputs: [],
4508
+ outputs: [
4509
+ {
4510
+ name: "",
4511
+ type: "address",
4512
+ internalType: "contractIComputeOperator"
4513
+ }
4514
+ ],
4515
+ stateMutability: "view"
4516
+ },
4517
+ {
4518
+ type: "function",
4519
+ name: "createApp",
4520
+ inputs: [
4521
+ {
4522
+ name: "salt",
4523
+ type: "bytes32",
4524
+ internalType: "bytes32"
4525
+ },
4526
+ {
4527
+ name: "release",
4528
+ type: "tuple",
4529
+ internalType: "structIAppController.Release",
4530
+ components: [
4531
+ {
4532
+ name: "rmsRelease",
4533
+ type: "tuple",
4534
+ internalType: "structIReleaseManagerTypes.Release",
4535
+ components: [
4536
+ {
4537
+ name: "artifacts",
4538
+ type: "tuple[]",
4539
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4540
+ components: [
4541
+ {
4542
+ name: "digest",
4543
+ type: "bytes32",
4544
+ internalType: "bytes32"
4545
+ },
4546
+ {
4547
+ name: "registry",
4548
+ type: "string",
4549
+ internalType: "string"
4550
+ }
4551
+ ]
4552
+ },
4553
+ {
4554
+ name: "upgradeByTime",
4555
+ type: "uint32",
4556
+ internalType: "uint32"
4557
+ }
4558
+ ]
4559
+ },
4560
+ {
4561
+ name: "publicEnv",
4562
+ type: "bytes",
4563
+ internalType: "bytes"
4564
+ },
4565
+ {
4566
+ name: "encryptedEnv",
4567
+ type: "bytes",
4568
+ internalType: "bytes"
4569
+ }
4570
+ ]
4571
+ }
4572
+ ],
4573
+ outputs: [
4574
+ {
4575
+ name: "app",
4576
+ type: "address",
4577
+ internalType: "contractIApp"
4578
+ }
4579
+ ],
4580
+ stateMutability: "nonpayable"
4581
+ },
4582
+ {
4583
+ type: "function",
4584
+ name: "createAppWithIsolatedBilling",
4585
+ inputs: [
4586
+ {
4587
+ name: "salt",
4588
+ type: "bytes32",
4589
+ internalType: "bytes32"
4590
+ },
4591
+ {
4592
+ name: "release",
4593
+ type: "tuple",
4594
+ internalType: "structIAppController.Release",
4595
+ components: [
4596
+ {
4597
+ name: "rmsRelease",
4598
+ type: "tuple",
4599
+ internalType: "structIReleaseManagerTypes.Release",
4600
+ components: [
4601
+ {
4602
+ name: "artifacts",
4603
+ type: "tuple[]",
4604
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4605
+ components: [
4606
+ {
4607
+ name: "digest",
4608
+ type: "bytes32",
4609
+ internalType: "bytes32"
4610
+ },
4611
+ {
4612
+ name: "registry",
4613
+ type: "string",
4614
+ internalType: "string"
4615
+ }
4616
+ ]
4617
+ },
4618
+ {
4619
+ name: "upgradeByTime",
4620
+ type: "uint32",
4621
+ internalType: "uint32"
4622
+ }
4623
+ ]
4624
+ },
4625
+ {
4626
+ name: "publicEnv",
4627
+ type: "bytes",
4628
+ internalType: "bytes"
4629
+ },
4630
+ {
4631
+ name: "encryptedEnv",
4632
+ type: "bytes",
4633
+ internalType: "bytes"
4634
+ }
4635
+ ]
4636
+ }
4637
+ ],
4638
+ outputs: [
4639
+ {
4640
+ name: "app",
4641
+ type: "address",
4642
+ internalType: "contractIApp"
4643
+ }
4644
+ ],
4645
+ stateMutability: "nonpayable"
4646
+ },
4647
+ {
4648
+ type: "function",
4649
+ name: "domainSeparator",
4650
+ inputs: [],
4651
+ outputs: [
4652
+ {
4653
+ name: "",
4654
+ type: "bytes32",
4655
+ internalType: "bytes32"
4656
+ }
4657
+ ],
4658
+ stateMutability: "view"
4659
+ },
4660
+ {
4661
+ type: "function",
4662
+ name: "getActiveAppCount",
4663
+ inputs: [
4664
+ {
4665
+ name: "user",
4666
+ type: "address",
4667
+ internalType: "address"
4668
+ }
4669
+ ],
4670
+ outputs: [
4671
+ {
4672
+ name: "",
4673
+ type: "uint32",
4674
+ internalType: "uint32"
4675
+ }
4676
+ ],
4677
+ stateMutability: "view"
4678
+ },
4679
+ {
4680
+ type: "function",
4681
+ name: "getBillingType",
4682
+ inputs: [
4683
+ {
4684
+ name: "app",
4685
+ type: "address",
4686
+ internalType: "address"
4687
+ }
4688
+ ],
4689
+ outputs: [
4690
+ {
4691
+ name: "",
4692
+ type: "uint8",
4693
+ internalType: "uint8"
4694
+ }
4695
+ ],
4696
+ stateMutability: "view"
4697
+ },
4698
+ {
4699
+ type: "function",
4700
+ name: "getAppCreator",
4701
+ inputs: [
4702
+ {
4703
+ name: "app",
4704
+ type: "address",
4705
+ internalType: "contractIApp"
4706
+ }
4707
+ ],
4708
+ outputs: [
4709
+ {
4710
+ name: "",
4711
+ type: "address",
4712
+ internalType: "address"
4713
+ }
4714
+ ],
4715
+ stateMutability: "view"
4716
+ },
4717
+ {
4718
+ type: "function",
4719
+ name: "getAppLatestReleaseBlockNumber",
4720
+ inputs: [
4721
+ {
4722
+ name: "app",
4723
+ type: "address",
4724
+ internalType: "contractIApp"
4725
+ }
4726
+ ],
4727
+ outputs: [
4728
+ {
4729
+ name: "",
4730
+ type: "uint32",
4731
+ internalType: "uint32"
4732
+ }
4733
+ ],
4734
+ stateMutability: "view"
4735
+ },
4736
+ {
4737
+ type: "function",
4738
+ name: "getAppOperatorSetId",
4739
+ inputs: [
4740
+ {
4741
+ name: "app",
4742
+ type: "address",
4743
+ internalType: "contractIApp"
4744
+ }
4745
+ ],
4746
+ outputs: [
4747
+ {
4748
+ name: "",
4749
+ type: "uint32",
4750
+ internalType: "uint32"
4751
+ }
4752
+ ],
4753
+ stateMutability: "view"
4754
+ },
4755
+ {
4756
+ type: "function",
4757
+ name: "getAppStatus",
4758
+ inputs: [
4759
+ {
4760
+ name: "app",
4761
+ type: "address",
4762
+ internalType: "contractIApp"
4763
+ }
4764
+ ],
4765
+ outputs: [
4766
+ {
4767
+ name: "",
4768
+ type: "uint8",
4769
+ internalType: "enumIAppController.AppStatus"
4770
+ }
4771
+ ],
4772
+ stateMutability: "view"
4773
+ },
4774
+ {
4775
+ type: "function",
4776
+ name: "getApps",
4777
+ inputs: [
4778
+ {
4779
+ name: "offset",
4780
+ type: "uint256",
4781
+ internalType: "uint256"
4782
+ },
4783
+ {
4784
+ name: "limit",
4785
+ type: "uint256",
4786
+ internalType: "uint256"
4787
+ }
4788
+ ],
4789
+ outputs: [
4790
+ {
4791
+ name: "apps",
4792
+ type: "address[]",
4793
+ internalType: "contractIApp[]"
4794
+ },
4795
+ {
4796
+ name: "appConfigsMem",
4797
+ type: "tuple[]",
4798
+ internalType: "structIAppController.AppConfig[]",
4799
+ components: [
4800
+ {
4801
+ name: "creator",
4802
+ type: "address",
4803
+ internalType: "address"
4804
+ },
4805
+ {
4806
+ name: "operatorSetId",
4807
+ type: "uint32",
4808
+ internalType: "uint32"
4809
+ },
4810
+ {
4811
+ name: "latestReleaseBlockNumber",
4812
+ type: "uint32",
4813
+ internalType: "uint32"
4814
+ },
4815
+ {
4816
+ name: "status",
4817
+ type: "uint8",
4818
+ internalType: "enumIAppController.AppStatus"
4819
+ }
4820
+ ]
4821
+ }
4822
+ ],
4823
+ stateMutability: "view"
4824
+ },
4825
+ {
4826
+ type: "function",
4827
+ name: "getAppsByBillingAccount",
4828
+ inputs: [
4829
+ {
4830
+ name: "account",
4831
+ type: "address",
4832
+ internalType: "address"
4833
+ },
4834
+ {
4835
+ name: "offset",
4836
+ type: "uint256",
4837
+ internalType: "uint256"
4838
+ },
4839
+ {
4840
+ name: "limit",
4841
+ type: "uint256",
4842
+ internalType: "uint256"
4843
+ }
4844
+ ],
4845
+ outputs: [
4846
+ {
4847
+ name: "apps",
4848
+ type: "address[]",
4849
+ internalType: "contractIApp[]"
4850
+ },
4851
+ {
4852
+ name: "appConfigsMem",
4853
+ type: "tuple[]",
4854
+ internalType: "structIAppController.AppConfig[]",
4855
+ components: [
4856
+ {
4857
+ name: "creator",
4858
+ type: "address",
4859
+ internalType: "address"
4860
+ },
4861
+ {
4862
+ name: "operatorSetId",
4863
+ type: "uint32",
4864
+ internalType: "uint32"
4865
+ },
4866
+ {
4867
+ name: "latestReleaseBlockNumber",
4868
+ type: "uint32",
4869
+ internalType: "uint32"
4870
+ },
4871
+ {
4872
+ name: "status",
4873
+ type: "uint8",
4874
+ internalType: "enumIAppController.AppStatus"
4875
+ }
4876
+ ]
4877
+ }
4878
+ ],
4879
+ stateMutability: "view"
4880
+ },
4881
+ {
4882
+ type: "function",
4883
+ name: "getAppsByCreator",
4884
+ inputs: [
4885
+ {
4886
+ name: "creator",
4887
+ type: "address",
4888
+ internalType: "address"
4889
+ },
4890
+ {
4891
+ name: "offset",
4892
+ type: "uint256",
4893
+ internalType: "uint256"
4894
+ },
4895
+ {
4896
+ name: "limit",
4897
+ type: "uint256",
4898
+ internalType: "uint256"
4899
+ }
4900
+ ],
4901
+ outputs: [
4902
+ {
4903
+ name: "apps",
4904
+ type: "address[]",
4905
+ internalType: "contractIApp[]"
4906
+ },
4907
+ {
4908
+ name: "appConfigsMem",
4909
+ type: "tuple[]",
4910
+ internalType: "structIAppController.AppConfig[]",
4911
+ components: [
4912
+ {
4913
+ name: "creator",
4914
+ type: "address",
4915
+ internalType: "address"
4916
+ },
4917
+ {
4918
+ name: "operatorSetId",
4919
+ type: "uint32",
4920
+ internalType: "uint32"
4921
+ },
4922
+ {
4923
+ name: "latestReleaseBlockNumber",
4924
+ type: "uint32",
4925
+ internalType: "uint32"
4926
+ },
4927
+ {
4928
+ name: "status",
4929
+ type: "uint8",
4930
+ internalType: "enumIAppController.AppStatus"
4931
+ }
4932
+ ]
4933
+ }
4934
+ ],
4935
+ stateMutability: "view"
4936
+ },
4937
+ {
4938
+ type: "function",
4939
+ name: "getAppsByDeveloper",
4940
+ inputs: [
4941
+ {
4942
+ name: "developer",
4943
+ type: "address",
4944
+ internalType: "address"
4945
+ },
4946
+ {
4947
+ name: "offset",
4948
+ type: "uint256",
4949
+ internalType: "uint256"
4950
+ },
4951
+ {
4952
+ name: "limit",
4953
+ type: "uint256",
4954
+ internalType: "uint256"
4955
+ }
4956
+ ],
4957
+ outputs: [
4958
+ {
4959
+ name: "apps",
4960
+ type: "address[]",
4961
+ internalType: "contractIApp[]"
4962
+ },
4963
+ {
4964
+ name: "appConfigsMem",
4965
+ type: "tuple[]",
4966
+ internalType: "structIAppController.AppConfig[]",
4967
+ components: [
4968
+ {
4969
+ name: "creator",
4970
+ type: "address",
4971
+ internalType: "address"
4972
+ },
4973
+ {
4974
+ name: "operatorSetId",
4975
+ type: "uint32",
4976
+ internalType: "uint32"
4977
+ },
4978
+ {
4979
+ name: "latestReleaseBlockNumber",
4980
+ type: "uint32",
4981
+ internalType: "uint32"
4982
+ },
4983
+ {
4984
+ name: "status",
4985
+ type: "uint8",
4986
+ internalType: "enumIAppController.AppStatus"
4987
+ }
4988
+ ]
4989
+ }
4990
+ ],
4991
+ stateMutability: "view"
4992
+ },
4993
+ {
4994
+ type: "function",
4995
+ name: "getMaxActiveAppsPerUser",
4996
+ inputs: [
4997
+ {
4998
+ name: "user",
4999
+ type: "address",
5000
+ internalType: "address"
5001
+ }
5002
+ ],
5003
+ outputs: [
5004
+ {
5005
+ name: "",
5006
+ type: "uint32",
5007
+ internalType: "uint32"
5008
+ }
5009
+ ],
5010
+ stateMutability: "view"
5011
+ },
5012
+ {
5013
+ type: "function",
5014
+ name: "globalActiveAppCount",
5015
+ inputs: [],
5016
+ outputs: [
5017
+ {
5018
+ name: "",
5019
+ type: "uint32",
5020
+ internalType: "uint32"
5021
+ }
5022
+ ],
5023
+ stateMutability: "view"
5024
+ },
5025
+ {
5026
+ type: "function",
5027
+ name: "initialize",
5028
+ inputs: [
5029
+ {
5030
+ name: "admin",
5031
+ type: "address",
5032
+ internalType: "address"
5033
+ }
5034
+ ],
5035
+ outputs: [],
5036
+ stateMutability: "nonpayable"
5037
+ },
5038
+ {
5039
+ type: "function",
5040
+ name: "maxGlobalActiveApps",
5041
+ inputs: [],
5042
+ outputs: [
5043
+ {
5044
+ name: "",
5045
+ type: "uint32",
5046
+ internalType: "uint32"
5047
+ }
5048
+ ],
5049
+ stateMutability: "view"
5050
+ },
5051
+ {
5052
+ type: "function",
5053
+ name: "permissionController",
5054
+ inputs: [],
5055
+ outputs: [
5056
+ {
5057
+ name: "",
5058
+ type: "address",
5059
+ internalType: "contractIPermissionController"
5060
+ }
5061
+ ],
5062
+ stateMutability: "view"
5063
+ },
5064
+ {
5065
+ type: "function",
5066
+ name: "releaseManager",
5067
+ inputs: [],
5068
+ outputs: [
5069
+ {
5070
+ name: "",
5071
+ type: "address",
5072
+ internalType: "contractIReleaseManager"
5073
+ }
5074
+ ],
5075
+ stateMutability: "view"
5076
+ },
5077
+ {
5078
+ type: "function",
5079
+ name: "setMaxActiveAppsPerUser",
5080
+ inputs: [
5081
+ {
5082
+ name: "user",
5083
+ type: "address",
5084
+ internalType: "address"
5085
+ },
5086
+ {
5087
+ name: "limit",
5088
+ type: "uint32",
5089
+ internalType: "uint32"
5090
+ }
5091
+ ],
5092
+ outputs: [],
5093
+ stateMutability: "nonpayable"
5094
+ },
5095
+ {
5096
+ type: "function",
5097
+ name: "setMaxGlobalActiveApps",
5098
+ inputs: [
5099
+ {
5100
+ name: "limit",
5101
+ type: "uint32",
5102
+ internalType: "uint32"
5103
+ }
5104
+ ],
5105
+ outputs: [],
5106
+ stateMutability: "nonpayable"
5107
+ },
5108
+ {
5109
+ type: "function",
5110
+ name: "startApp",
5111
+ inputs: [
5112
+ {
5113
+ name: "app",
5114
+ type: "address",
5115
+ internalType: "contractIApp"
5116
+ }
5117
+ ],
5118
+ outputs: [],
5119
+ stateMutability: "nonpayable"
5120
+ },
5121
+ {
5122
+ type: "function",
5123
+ name: "stopApp",
5124
+ inputs: [
5125
+ {
5126
+ name: "app",
5127
+ type: "address",
5128
+ internalType: "contractIApp"
5129
+ }
5130
+ ],
5131
+ outputs: [],
5132
+ stateMutability: "nonpayable"
5133
+ },
5134
+ {
5135
+ type: "function",
5136
+ name: "suspend",
5137
+ inputs: [
5138
+ {
5139
+ name: "account",
5140
+ type: "address",
5141
+ internalType: "address"
5142
+ },
5143
+ {
5144
+ name: "apps",
5145
+ type: "address[]",
5146
+ internalType: "contractIApp[]"
5147
+ }
5148
+ ],
5149
+ outputs: [],
5150
+ stateMutability: "nonpayable"
5151
+ },
5152
+ {
5153
+ type: "function",
5154
+ name: "terminateApp",
5155
+ inputs: [
5156
+ {
5157
+ name: "app",
5158
+ type: "address",
5159
+ internalType: "contractIApp"
5160
+ }
5161
+ ],
5162
+ outputs: [],
5163
+ stateMutability: "nonpayable"
5164
+ },
5165
+ {
5166
+ type: "function",
5167
+ name: "terminateAppByAdmin",
5168
+ inputs: [
5169
+ {
5170
+ name: "app",
5171
+ type: "address",
5172
+ internalType: "contractIApp"
5173
+ }
5174
+ ],
5175
+ outputs: [],
5176
+ stateMutability: "nonpayable"
5177
+ },
5178
+ {
5179
+ type: "function",
5180
+ name: "updateAppMetadataURI",
5181
+ inputs: [
5182
+ {
5183
+ name: "app",
5184
+ type: "address",
5185
+ internalType: "contractIApp"
5186
+ },
5187
+ {
5188
+ name: "metadataURI",
5189
+ type: "string",
5190
+ internalType: "string"
5191
+ }
5192
+ ],
5193
+ outputs: [],
5194
+ stateMutability: "nonpayable"
5195
+ },
5196
+ {
5197
+ type: "function",
5198
+ name: "upgradeApp",
5199
+ inputs: [
5200
+ {
5201
+ name: "app",
5202
+ type: "address",
5203
+ internalType: "contractIApp"
5204
+ },
5205
+ {
5206
+ name: "release",
5207
+ type: "tuple",
5208
+ internalType: "structIAppController.Release",
5209
+ components: [
5210
+ {
5211
+ name: "rmsRelease",
5212
+ type: "tuple",
5213
+ internalType: "structIReleaseManagerTypes.Release",
5214
+ components: [
5215
+ {
5216
+ name: "artifacts",
5217
+ type: "tuple[]",
5218
+ internalType: "structIReleaseManagerTypes.Artifact[]",
5219
+ components: [
5220
+ {
5221
+ name: "digest",
5222
+ type: "bytes32",
5223
+ internalType: "bytes32"
5224
+ },
5225
+ {
5226
+ name: "registry",
5227
+ type: "string",
5228
+ internalType: "string"
5229
+ }
5230
+ ]
5231
+ },
5232
+ {
5233
+ name: "upgradeByTime",
5234
+ type: "uint32",
5235
+ internalType: "uint32"
5236
+ }
5237
+ ]
5238
+ },
5239
+ {
5240
+ name: "publicEnv",
5241
+ type: "bytes",
5242
+ internalType: "bytes"
5243
+ },
5244
+ {
5245
+ name: "encryptedEnv",
5246
+ type: "bytes",
5247
+ internalType: "bytes"
5248
+ }
5249
+ ]
5250
+ }
5251
+ ],
5252
+ outputs: [
5253
+ {
5254
+ name: "",
5255
+ type: "uint256",
5256
+ internalType: "uint256"
5257
+ }
5258
+ ],
5259
+ stateMutability: "nonpayable"
5260
+ },
5261
+ {
5262
+ type: "function",
5263
+ name: "version",
5264
+ inputs: [],
5265
+ outputs: [
5266
+ {
5267
+ name: "",
5268
+ type: "string",
5269
+ internalType: "string"
5270
+ }
5271
+ ],
5272
+ stateMutability: "view"
5273
+ },
5274
+ {
5275
+ type: "event",
5276
+ name: "AppCreated",
5277
+ inputs: [
5278
+ {
5279
+ name: "creator",
5280
+ type: "address",
5281
+ indexed: true,
5282
+ internalType: "address"
5283
+ },
5284
+ {
5285
+ name: "app",
5286
+ type: "address",
5287
+ indexed: true,
5288
+ internalType: "contractIApp"
5289
+ },
5290
+ {
5291
+ name: "operatorSetId",
5292
+ type: "uint32",
5293
+ indexed: false,
5294
+ internalType: "uint32"
5295
+ }
5296
+ ],
5297
+ anonymous: false
5298
+ },
5299
+ {
5300
+ type: "event",
5301
+ name: "AppMetadataURIUpdated",
5302
+ inputs: [
5303
+ {
5304
+ name: "app",
5305
+ type: "address",
5306
+ indexed: true,
5307
+ internalType: "contractIApp"
5308
+ },
5309
+ {
5310
+ name: "metadataURI",
5311
+ type: "string",
5312
+ indexed: false,
5313
+ internalType: "string"
5314
+ }
5315
+ ],
5316
+ anonymous: false
5317
+ },
5318
+ {
5319
+ type: "event",
5320
+ name: "AppStarted",
5321
+ inputs: [
5322
+ {
5323
+ name: "app",
5324
+ type: "address",
5325
+ indexed: true,
5326
+ internalType: "contractIApp"
5327
+ }
5328
+ ],
5329
+ anonymous: false
5330
+ },
5331
+ {
5332
+ type: "event",
5333
+ name: "AppStopped",
5334
+ inputs: [
5335
+ {
5336
+ name: "app",
5337
+ type: "address",
5338
+ indexed: true,
5339
+ internalType: "contractIApp"
5340
+ }
5341
+ ],
5342
+ anonymous: false
5343
+ },
5344
+ {
5345
+ type: "event",
5346
+ name: "AppSuspended",
5347
+ inputs: [
5348
+ {
5349
+ name: "app",
5350
+ type: "address",
5351
+ indexed: true,
5352
+ internalType: "contractIApp"
5353
+ }
5354
+ ],
5355
+ anonymous: false
5356
+ },
5357
+ {
5358
+ type: "event",
5359
+ name: "AppTerminated",
5360
+ inputs: [
5361
+ {
5362
+ name: "app",
5363
+ type: "address",
5364
+ indexed: true,
5365
+ internalType: "contractIApp"
5366
+ }
5367
+ ],
5368
+ anonymous: false
5369
+ },
5370
+ {
5371
+ type: "event",
5372
+ name: "AppTerminatedByAdmin",
5373
+ inputs: [
5374
+ {
5375
+ name: "app",
5376
+ type: "address",
5377
+ indexed: true,
5378
+ internalType: "contractIApp"
5379
+ }
5380
+ ],
5381
+ anonymous: false
5382
+ },
5383
+ {
5384
+ type: "event",
5385
+ name: "AppUpgraded",
5386
+ inputs: [
5387
+ {
5388
+ name: "app",
5389
+ type: "address",
5390
+ indexed: true,
5391
+ internalType: "contractIApp"
5392
+ },
5393
+ {
5394
+ name: "rmsReleaseId",
5395
+ type: "uint256",
5396
+ indexed: false,
5397
+ internalType: "uint256"
5398
+ },
5399
+ {
5400
+ name: "release",
5401
+ type: "tuple",
5402
+ indexed: false,
5403
+ internalType: "structIAppController.Release",
5404
+ components: [
5405
+ {
5406
+ name: "rmsRelease",
5407
+ type: "tuple",
5408
+ internalType: "structIReleaseManagerTypes.Release",
5409
+ components: [
5410
+ {
5411
+ name: "artifacts",
5412
+ type: "tuple[]",
5413
+ internalType: "structIReleaseManagerTypes.Artifact[]",
5414
+ components: [
5415
+ {
5416
+ name: "digest",
5417
+ type: "bytes32",
5418
+ internalType: "bytes32"
5419
+ },
5420
+ {
5421
+ name: "registry",
5422
+ type: "string",
5423
+ internalType: "string"
5424
+ }
5425
+ ]
5426
+ },
5427
+ {
5428
+ name: "upgradeByTime",
5429
+ type: "uint32",
5430
+ internalType: "uint32"
5431
+ }
5432
+ ]
5433
+ },
5434
+ {
5435
+ name: "publicEnv",
5436
+ type: "bytes",
5437
+ internalType: "bytes"
5438
+ },
5439
+ {
5440
+ name: "encryptedEnv",
5441
+ type: "bytes",
5442
+ internalType: "bytes"
5443
+ }
5444
+ ]
5445
+ }
5446
+ ],
5447
+ anonymous: false
5448
+ },
5449
+ {
5450
+ type: "event",
5451
+ name: "GlobalMaxActiveAppsSet",
5452
+ inputs: [
5453
+ {
5454
+ name: "limit",
5455
+ type: "uint32",
5456
+ indexed: false,
5457
+ internalType: "uint32"
5458
+ }
5459
+ ],
5460
+ anonymous: false
5461
+ },
5462
+ {
5463
+ type: "event",
5464
+ name: "Initialized",
5465
+ inputs: [
5466
+ {
3908
5467
  name: "version",
3909
5468
  type: "uint8",
3910
5469
  indexed: false,
@@ -4502,6 +6061,38 @@ var PermissionController_default = [
4502
6061
  ];
4503
6062
 
4504
6063
  // src/client/common/contract/caller.ts
6064
+ function appControllerAbiFor(environmentConfig) {
6065
+ return environmentConfig.releaseAbiVersion === "v1.4" ? AppController_v1_4_default : AppController_default;
6066
+ }
6067
+ function supportsContainerPolicy(environmentConfig) {
6068
+ return environmentConfig.releaseAbiVersion !== "v1.4";
6069
+ }
6070
+ function containerPolicyForViem(policy = EMPTY_CONTAINER_POLICY) {
6071
+ return {
6072
+ args: policy.args,
6073
+ cmdOverride: policy.cmdOverride,
6074
+ env: policy.env.map((e) => ({ key: e.key, value: e.value })),
6075
+ envOverride: policy.envOverride.map((e) => ({ key: e.key, value: e.value })),
6076
+ restartPolicy: policy.restartPolicy
6077
+ };
6078
+ }
6079
+ function releaseForViem(release, environmentConfig) {
6080
+ const base = {
6081
+ rmsRelease: {
6082
+ artifacts: release.rmsRelease.artifacts.map((artifact) => ({
6083
+ digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
6084
+ registry: artifact.registry
6085
+ })),
6086
+ upgradeByTime: release.rmsRelease.upgradeByTime
6087
+ },
6088
+ publicEnv: bytesToHex(release.publicEnv),
6089
+ encryptedEnv: bytesToHex(release.encryptedEnv)
6090
+ };
6091
+ if (!supportsContainerPolicy(environmentConfig)) {
6092
+ return base;
6093
+ }
6094
+ return { ...base, containerPolicy: containerPolicyForViem(release.containerPolicy) };
6095
+ }
4505
6096
  function formatETH(wei) {
4506
6097
  const eth = Number(wei) / 1e18;
4507
6098
  const costStr = eth.toFixed(6);
@@ -4539,7 +6130,7 @@ async function calculateAppID(options) {
4539
6130
  const saltHex = `0x${paddedSaltHex}`;
4540
6131
  const appID = await publicClient.readContract({
4541
6132
  address: environmentConfig.appControllerAddress,
4542
- abi: AppController_default,
6133
+ abi: appControllerAbiFor(environmentConfig),
4543
6134
  functionName: "calculateAppId",
4544
6135
  args: [ownerAddress, saltHex]
4545
6136
  });
@@ -4563,22 +6154,12 @@ async function prepareDeployBatch(options, logger = noopLogger) {
4563
6154
  const saltHexString = bytesToHex(salt).slice(2);
4564
6155
  const paddedSaltHex = saltHexString.padStart(64, "0");
4565
6156
  const saltHex = `0x${paddedSaltHex}`;
4566
- const releaseForViem = {
4567
- rmsRelease: {
4568
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4569
- digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
4570
- registry: artifact.registry
4571
- })),
4572
- upgradeByTime: release.rmsRelease.upgradeByTime
4573
- },
4574
- publicEnv: bytesToHex(release.publicEnv),
4575
- encryptedEnv: bytesToHex(release.encryptedEnv)
4576
- };
6157
+ const release_ = releaseForViem(release, environmentConfig);
4577
6158
  const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
4578
6159
  const createData = encodeFunctionData2({
4579
- abi: AppController_default,
6160
+ abi: appControllerAbiFor(environmentConfig),
4580
6161
  functionName,
4581
- args: [saltHex, releaseForViem]
6162
+ args: [saltHex, release_]
4582
6163
  });
4583
6164
  const acceptAdminData = encodeFunctionData2({
4584
6165
  abi: PermissionController_default,
@@ -4834,21 +6415,11 @@ async function prepareUpgradeBatch(options) {
4834
6415
  publicLogs,
4835
6416
  needsPermissionChange
4836
6417
  } = options;
4837
- const releaseForViem = {
4838
- rmsRelease: {
4839
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4840
- digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
4841
- registry: artifact.registry
4842
- })),
4843
- upgradeByTime: release.rmsRelease.upgradeByTime
4844
- },
4845
- publicEnv: bytesToHex(release.publicEnv),
4846
- encryptedEnv: bytesToHex(release.encryptedEnv)
4847
- };
6418
+ const release_ = releaseForViem(release, environmentConfig);
4848
6419
  const upgradeData = encodeFunctionData2({
4849
- abi: AppController_default,
6420
+ abi: appControllerAbiFor(environmentConfig),
4850
6421
  functionName: "upgradeApp",
4851
- args: [appID, releaseForViem]
6422
+ args: [appID, release_]
4852
6423
  });
4853
6424
  const executions = [
4854
6425
  {
@@ -4982,7 +6553,7 @@ ${pendingMessage}`);
4982
6553
  if (callError.data) {
4983
6554
  try {
4984
6555
  const decoded = decodeErrorResult2({
4985
- abi: AppController_default,
6556
+ abi: appControllerAbiFor(environmentConfig),
4986
6557
  data: callError.data
4987
6558
  });
4988
6559
  const formattedError = formatAppControllerError(decoded);
@@ -5035,7 +6606,7 @@ function formatAppControllerError(decoded) {
5035
6606
  async function getActiveAppCount(publicClient, environmentConfig, user) {
5036
6607
  const count = await publicClient.readContract({
5037
6608
  address: environmentConfig.appControllerAddress,
5038
- abi: AppController_default,
6609
+ abi: appControllerAbiFor(environmentConfig),
5039
6610
  functionName: "getActiveAppCount",
5040
6611
  args: [user]
5041
6612
  });
@@ -5044,7 +6615,7 @@ async function getActiveAppCount(publicClient, environmentConfig, user) {
5044
6615
  async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
5045
6616
  const quota = await publicClient.readContract({
5046
6617
  address: environmentConfig.appControllerAddress,
5047
- abi: AppController_default,
6618
+ abi: appControllerAbiFor(environmentConfig),
5048
6619
  functionName: "getMaxActiveAppsPerUser",
5049
6620
  args: [user]
5050
6621
  });
@@ -5053,7 +6624,7 @@ async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
5053
6624
  async function getAppsByCreator(publicClient, environmentConfig, creator, offset, limit) {
5054
6625
  const result = await publicClient.readContract({
5055
6626
  address: environmentConfig.appControllerAddress,
5056
- abi: AppController_default,
6627
+ abi: appControllerAbiFor(environmentConfig),
5057
6628
  functionName: "getAppsByCreator",
5058
6629
  args: [creator, offset, limit]
5059
6630
  });
@@ -5065,7 +6636,7 @@ async function getAppsByCreator(publicClient, environmentConfig, creator, offset
5065
6636
  async function getAppsByDeveloper(publicClient, environmentConfig, developer, offset, limit) {
5066
6637
  const result = await publicClient.readContract({
5067
6638
  address: environmentConfig.appControllerAddress,
5068
- abi: AppController_default,
6639
+ abi: appControllerAbiFor(environmentConfig),
5069
6640
  functionName: "getAppsByDeveloper",
5070
6641
  args: [developer, offset, limit]
5071
6642
  });
@@ -5077,7 +6648,7 @@ async function getAppsByDeveloper(publicClient, environmentConfig, developer, of
5077
6648
  async function getBillingType(publicClient, environmentConfig, app) {
5078
6649
  const result = await publicClient.readContract({
5079
6650
  address: environmentConfig.appControllerAddress,
5080
- abi: AppController_default,
6651
+ abi: appControllerAbiFor(environmentConfig),
5081
6652
  functionName: "getBillingType",
5082
6653
  args: [app]
5083
6654
  });
@@ -5086,7 +6657,7 @@ async function getBillingType(publicClient, environmentConfig, app) {
5086
6657
  async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
5087
6658
  const result = await publicClient.readContract({
5088
6659
  address: environmentConfig.appControllerAddress,
5089
- abi: AppController_default,
6660
+ abi: appControllerAbiFor(environmentConfig),
5090
6661
  functionName: "getAppsByBillingAccount",
5091
6662
  args: [account, offset, limit]
5092
6663
  });
@@ -5118,7 +6689,7 @@ async function getAllAppsByDeveloper(publicClient, env, developer, pageSize = 10
5118
6689
  async function suspend(options, logger = noopLogger) {
5119
6690
  const { walletClient, publicClient, environmentConfig, account, apps } = options;
5120
6691
  const suspendData = encodeFunctionData2({
5121
- abi: AppController_default,
6692
+ abi: appControllerAbiFor(environmentConfig),
5122
6693
  functionName: "suspend",
5123
6694
  args: [account, apps]
5124
6695
  });
@@ -5545,6 +7116,7 @@ export {
5545
7116
  BillingApiClient,
5546
7117
  BillingSessionError,
5547
7118
  BuildApiClient,
7119
+ EMPTY_CONTAINER_POLICY,
5548
7120
  SessionError,
5549
7121
  UserApiClient,
5550
7122
  addHexPrefix,