@layr-labs/ecloud-sdk 1.0.0-dev.5 → 1.0.0-dev.7

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/index.cjs CHANGED
@@ -171,6 +171,7 @@ __export(index_exports, {
171
171
  BuildError: () => BuildError,
172
172
  BuildFailedError: () => BuildFailedError,
173
173
  ConflictError: () => ConflictError,
174
+ EMPTY_CONTAINER_POLICY: () => EMPTY_CONTAINER_POLICY,
174
175
  ERC20ABI: () => ERC20_default,
175
176
  ForbiddenError: () => ForbiddenError,
176
177
  JwtProvider: () => JwtProvider,
@@ -1394,6 +1395,13 @@ function extractRegistryNameNoDocker(imageRef) {
1394
1395
  var import_viem = require("viem");
1395
1396
 
1396
1397
  // src/client/common/types/index.ts
1398
+ var EMPTY_CONTAINER_POLICY = {
1399
+ args: [],
1400
+ cmdOverride: [],
1401
+ env: [],
1402
+ envOverride: [],
1403
+ restartPolicy: ""
1404
+ };
1397
1405
  var noopLogger = {
1398
1406
  debug: () => {
1399
1407
  },
@@ -2813,6 +2821,19 @@ var AppController_default = [
2813
2821
  ],
2814
2822
  stateMutability: "view"
2815
2823
  },
2824
+ {
2825
+ type: "function",
2826
+ name: "confirmUpgrade",
2827
+ inputs: [
2828
+ {
2829
+ name: "app",
2830
+ type: "address",
2831
+ internalType: "contractIApp"
2832
+ }
2833
+ ],
2834
+ outputs: [],
2835
+ stateMutability: "nonpayable"
2836
+ },
2816
2837
  {
2817
2838
  type: "function",
2818
2839
  name: "createApp",
@@ -2865,6 +2886,62 @@ var AppController_default = [
2865
2886
  name: "encryptedEnv",
2866
2887
  type: "bytes",
2867
2888
  internalType: "bytes"
2889
+ },
2890
+ {
2891
+ name: "containerPolicy",
2892
+ type: "tuple",
2893
+ internalType: "structIAppController.ContainerPolicy",
2894
+ components: [
2895
+ {
2896
+ name: "args",
2897
+ type: "string[]",
2898
+ internalType: "string[]"
2899
+ },
2900
+ {
2901
+ name: "cmdOverride",
2902
+ type: "string[]",
2903
+ internalType: "string[]"
2904
+ },
2905
+ {
2906
+ name: "env",
2907
+ type: "tuple[]",
2908
+ internalType: "structIAppController.EnvVar[]",
2909
+ components: [
2910
+ {
2911
+ name: "key",
2912
+ type: "string",
2913
+ internalType: "string"
2914
+ },
2915
+ {
2916
+ name: "value",
2917
+ type: "string",
2918
+ internalType: "string"
2919
+ }
2920
+ ]
2921
+ },
2922
+ {
2923
+ name: "envOverride",
2924
+ type: "tuple[]",
2925
+ internalType: "structIAppController.EnvVar[]",
2926
+ components: [
2927
+ {
2928
+ name: "key",
2929
+ type: "string",
2930
+ internalType: "string"
2931
+ },
2932
+ {
2933
+ name: "value",
2934
+ type: "string",
2935
+ internalType: "string"
2936
+ }
2937
+ ]
2938
+ },
2939
+ {
2940
+ name: "restartPolicy",
2941
+ type: "string",
2942
+ internalType: "string"
2943
+ }
2944
+ ]
2868
2945
  }
2869
2946
  ]
2870
2947
  }
@@ -2930,6 +3007,62 @@ var AppController_default = [
2930
3007
  name: "encryptedEnv",
2931
3008
  type: "bytes",
2932
3009
  internalType: "bytes"
3010
+ },
3011
+ {
3012
+ name: "containerPolicy",
3013
+ type: "tuple",
3014
+ internalType: "structIAppController.ContainerPolicy",
3015
+ components: [
3016
+ {
3017
+ name: "args",
3018
+ type: "string[]",
3019
+ internalType: "string[]"
3020
+ },
3021
+ {
3022
+ name: "cmdOverride",
3023
+ type: "string[]",
3024
+ internalType: "string[]"
3025
+ },
3026
+ {
3027
+ name: "env",
3028
+ type: "tuple[]",
3029
+ internalType: "structIAppController.EnvVar[]",
3030
+ components: [
3031
+ {
3032
+ name: "key",
3033
+ type: "string",
3034
+ internalType: "string"
3035
+ },
3036
+ {
3037
+ name: "value",
3038
+ type: "string",
3039
+ internalType: "string"
3040
+ }
3041
+ ]
3042
+ },
3043
+ {
3044
+ name: "envOverride",
3045
+ type: "tuple[]",
3046
+ internalType: "structIAppController.EnvVar[]",
3047
+ components: [
3048
+ {
3049
+ name: "key",
3050
+ type: "string",
3051
+ internalType: "string"
3052
+ },
3053
+ {
3054
+ name: "value",
3055
+ type: "string",
3056
+ internalType: "string"
3057
+ }
3058
+ ]
3059
+ },
3060
+ {
3061
+ name: "restartPolicy",
3062
+ type: "string",
3063
+ internalType: "string"
3064
+ }
3065
+ ]
2933
3066
  }
2934
3067
  ]
2935
3068
  }
@@ -2943,6 +3076,44 @@ var AppController_default = [
2943
3076
  ],
2944
3077
  stateMutability: "nonpayable"
2945
3078
  },
3079
+ {
3080
+ type: "function",
3081
+ name: "createEmptyApp",
3082
+ inputs: [
3083
+ {
3084
+ name: "salt",
3085
+ type: "bytes32",
3086
+ internalType: "bytes32"
3087
+ }
3088
+ ],
3089
+ outputs: [
3090
+ {
3091
+ name: "app",
3092
+ type: "address",
3093
+ internalType: "contractIApp"
3094
+ }
3095
+ ],
3096
+ stateMutability: "nonpayable"
3097
+ },
3098
+ {
3099
+ type: "function",
3100
+ name: "createEmptyAppWithIsolatedBilling",
3101
+ inputs: [
3102
+ {
3103
+ name: "salt",
3104
+ type: "bytes32",
3105
+ internalType: "bytes32"
3106
+ }
3107
+ ],
3108
+ outputs: [
3109
+ {
3110
+ name: "app",
3111
+ type: "address",
3112
+ internalType: "contractIApp"
3113
+ }
3114
+ ],
3115
+ stateMutability: "nonpayable"
3116
+ },
2946
3117
  {
2947
3118
  type: "function",
2948
3119
  name: "domainSeparator",
@@ -2977,26 +3148,26 @@ var AppController_default = [
2977
3148
  },
2978
3149
  {
2979
3150
  type: "function",
2980
- name: "getBillingType",
3151
+ name: "getAppCreator",
2981
3152
  inputs: [
2982
3153
  {
2983
3154
  name: "app",
2984
3155
  type: "address",
2985
- internalType: "address"
3156
+ internalType: "contractIApp"
2986
3157
  }
2987
3158
  ],
2988
3159
  outputs: [
2989
3160
  {
2990
3161
  name: "",
2991
- type: "uint8",
2992
- internalType: "uint8"
3162
+ type: "address",
3163
+ internalType: "address"
2993
3164
  }
2994
3165
  ],
2995
3166
  stateMutability: "view"
2996
3167
  },
2997
3168
  {
2998
3169
  type: "function",
2999
- name: "getAppCreator",
3170
+ name: "getAppLatestReleaseBlockNumber",
3000
3171
  inputs: [
3001
3172
  {
3002
3173
  name: "app",
@@ -3007,15 +3178,15 @@ var AppController_default = [
3007
3178
  outputs: [
3008
3179
  {
3009
3180
  name: "",
3010
- type: "address",
3011
- internalType: "address"
3181
+ type: "uint32",
3182
+ internalType: "uint32"
3012
3183
  }
3013
3184
  ],
3014
3185
  stateMutability: "view"
3015
3186
  },
3016
3187
  {
3017
3188
  type: "function",
3018
- name: "getAppLatestReleaseBlockNumber",
3189
+ name: "getAppOperatorSetId",
3019
3190
  inputs: [
3020
3191
  {
3021
3192
  name: "app",
@@ -3034,7 +3205,7 @@ var AppController_default = [
3034
3205
  },
3035
3206
  {
3036
3207
  type: "function",
3037
- name: "getAppOperatorSetId",
3208
+ name: "getAppPendingReleaseBlockNumber",
3038
3209
  inputs: [
3039
3210
  {
3040
3211
  name: "app",
@@ -3111,6 +3282,11 @@ var AppController_default = [
3111
3282
  type: "uint32",
3112
3283
  internalType: "uint32"
3113
3284
  },
3285
+ {
3286
+ name: "pendingReleaseBlockNumber",
3287
+ type: "uint32",
3288
+ internalType: "uint32"
3289
+ },
3114
3290
  {
3115
3291
  name: "status",
3116
3292
  type: "uint8",
@@ -3167,6 +3343,11 @@ var AppController_default = [
3167
3343
  type: "uint32",
3168
3344
  internalType: "uint32"
3169
3345
  },
3346
+ {
3347
+ name: "pendingReleaseBlockNumber",
3348
+ type: "uint32",
3349
+ internalType: "uint32"
3350
+ },
3170
3351
  {
3171
3352
  name: "status",
3172
3353
  type: "uint8",
@@ -3223,6 +3404,11 @@ var AppController_default = [
3223
3404
  type: "uint32",
3224
3405
  internalType: "uint32"
3225
3406
  },
3407
+ {
3408
+ name: "pendingReleaseBlockNumber",
3409
+ type: "uint32",
3410
+ internalType: "uint32"
3411
+ },
3226
3412
  {
3227
3413
  name: "status",
3228
3414
  type: "uint8",
@@ -3279,6 +3465,11 @@ var AppController_default = [
3279
3465
  type: "uint32",
3280
3466
  internalType: "uint32"
3281
3467
  },
3468
+ {
3469
+ name: "pendingReleaseBlockNumber",
3470
+ type: "uint32",
3471
+ internalType: "uint32"
3472
+ },
3282
3473
  {
3283
3474
  name: "status",
3284
3475
  type: "uint8",
@@ -3289,6 +3480,44 @@ var AppController_default = [
3289
3480
  ],
3290
3481
  stateMutability: "view"
3291
3482
  },
3483
+ {
3484
+ type: "function",
3485
+ name: "getBillingAccount",
3486
+ inputs: [
3487
+ {
3488
+ name: "app",
3489
+ type: "address",
3490
+ internalType: "contractIApp"
3491
+ }
3492
+ ],
3493
+ outputs: [
3494
+ {
3495
+ name: "",
3496
+ type: "address",
3497
+ internalType: "address"
3498
+ }
3499
+ ],
3500
+ stateMutability: "view"
3501
+ },
3502
+ {
3503
+ type: "function",
3504
+ name: "getBillingType",
3505
+ inputs: [
3506
+ {
3507
+ name: "app",
3508
+ type: "address",
3509
+ internalType: "contractIApp"
3510
+ }
3511
+ ],
3512
+ outputs: [
3513
+ {
3514
+ name: "",
3515
+ type: "uint8",
3516
+ internalType: "enumIAppController.BillingType"
3517
+ }
3518
+ ],
3519
+ stateMutability: "view"
3520
+ },
3292
3521
  {
3293
3522
  type: "function",
3294
3523
  name: "getMaxActiveAppsPerUser",
@@ -3544,6 +3773,62 @@ var AppController_default = [
3544
3773
  name: "encryptedEnv",
3545
3774
  type: "bytes",
3546
3775
  internalType: "bytes"
3776
+ },
3777
+ {
3778
+ name: "containerPolicy",
3779
+ type: "tuple",
3780
+ internalType: "structIAppController.ContainerPolicy",
3781
+ components: [
3782
+ {
3783
+ name: "args",
3784
+ type: "string[]",
3785
+ internalType: "string[]"
3786
+ },
3787
+ {
3788
+ name: "cmdOverride",
3789
+ type: "string[]",
3790
+ internalType: "string[]"
3791
+ },
3792
+ {
3793
+ name: "env",
3794
+ type: "tuple[]",
3795
+ internalType: "structIAppController.EnvVar[]",
3796
+ components: [
3797
+ {
3798
+ name: "key",
3799
+ type: "string",
3800
+ internalType: "string"
3801
+ },
3802
+ {
3803
+ name: "value",
3804
+ type: "string",
3805
+ internalType: "string"
3806
+ }
3807
+ ]
3808
+ },
3809
+ {
3810
+ name: "envOverride",
3811
+ type: "tuple[]",
3812
+ internalType: "structIAppController.EnvVar[]",
3813
+ components: [
3814
+ {
3815
+ name: "key",
3816
+ type: "string",
3817
+ internalType: "string"
3818
+ },
3819
+ {
3820
+ name: "value",
3821
+ type: "string",
3822
+ internalType: "string"
3823
+ }
3824
+ ]
3825
+ },
3826
+ {
3827
+ name: "restartPolicy",
3828
+ type: "string",
3829
+ internalType: "string"
3830
+ }
3831
+ ]
3547
3832
  }
3548
3833
  ]
3549
3834
  }
@@ -3739,30 +4024,1298 @@ var AppController_default = [
3739
4024
  name: "encryptedEnv",
3740
4025
  type: "bytes",
3741
4026
  internalType: "bytes"
3742
- }
3743
- ]
3744
- }
3745
- ],
3746
- anonymous: false
3747
- },
3748
- {
3749
- type: "event",
3750
- name: "GlobalMaxActiveAppsSet",
3751
- inputs: [
3752
- {
3753
- name: "limit",
3754
- type: "uint32",
3755
- indexed: false,
3756
- internalType: "uint32"
3757
- }
3758
- ],
3759
- anonymous: false
3760
- },
3761
- {
3762
- type: "event",
3763
- name: "Initialized",
3764
- inputs: [
3765
- {
4027
+ },
4028
+ {
4029
+ name: "containerPolicy",
4030
+ type: "tuple",
4031
+ internalType: "structIAppController.ContainerPolicy",
4032
+ components: [
4033
+ {
4034
+ name: "args",
4035
+ type: "string[]",
4036
+ internalType: "string[]"
4037
+ },
4038
+ {
4039
+ name: "cmdOverride",
4040
+ type: "string[]",
4041
+ internalType: "string[]"
4042
+ },
4043
+ {
4044
+ name: "env",
4045
+ type: "tuple[]",
4046
+ internalType: "structIAppController.EnvVar[]",
4047
+ components: [
4048
+ {
4049
+ name: "key",
4050
+ type: "string",
4051
+ internalType: "string"
4052
+ },
4053
+ {
4054
+ name: "value",
4055
+ type: "string",
4056
+ internalType: "string"
4057
+ }
4058
+ ]
4059
+ },
4060
+ {
4061
+ name: "envOverride",
4062
+ type: "tuple[]",
4063
+ internalType: "structIAppController.EnvVar[]",
4064
+ components: [
4065
+ {
4066
+ name: "key",
4067
+ type: "string",
4068
+ internalType: "string"
4069
+ },
4070
+ {
4071
+ name: "value",
4072
+ type: "string",
4073
+ internalType: "string"
4074
+ }
4075
+ ]
4076
+ },
4077
+ {
4078
+ name: "restartPolicy",
4079
+ type: "string",
4080
+ internalType: "string"
4081
+ }
4082
+ ]
4083
+ }
4084
+ ]
4085
+ }
4086
+ ],
4087
+ anonymous: false
4088
+ },
4089
+ {
4090
+ type: "event",
4091
+ name: "GlobalMaxActiveAppsSet",
4092
+ inputs: [
4093
+ {
4094
+ name: "limit",
4095
+ type: "uint32",
4096
+ indexed: false,
4097
+ internalType: "uint32"
4098
+ }
4099
+ ],
4100
+ anonymous: false
4101
+ },
4102
+ {
4103
+ type: "event",
4104
+ name: "Initialized",
4105
+ inputs: [
4106
+ {
4107
+ name: "version",
4108
+ type: "uint8",
4109
+ indexed: false,
4110
+ internalType: "uint8"
4111
+ }
4112
+ ],
4113
+ anonymous: false
4114
+ },
4115
+ {
4116
+ type: "event",
4117
+ name: "MaxActiveAppsSet",
4118
+ inputs: [
4119
+ {
4120
+ name: "user",
4121
+ type: "address",
4122
+ indexed: true,
4123
+ internalType: "address"
4124
+ },
4125
+ {
4126
+ name: "limit",
4127
+ type: "uint32",
4128
+ indexed: false,
4129
+ internalType: "uint32"
4130
+ }
4131
+ ],
4132
+ anonymous: false
4133
+ },
4134
+ {
4135
+ type: "event",
4136
+ name: "UpgradeConfirmed",
4137
+ inputs: [
4138
+ {
4139
+ name: "app",
4140
+ type: "address",
4141
+ indexed: true,
4142
+ internalType: "contractIApp"
4143
+ },
4144
+ {
4145
+ name: "pendingReleaseBlockNumber",
4146
+ type: "uint32",
4147
+ indexed: false,
4148
+ internalType: "uint32"
4149
+ }
4150
+ ],
4151
+ anonymous: false
4152
+ },
4153
+ {
4154
+ type: "error",
4155
+ name: "AccountHasActiveApps",
4156
+ inputs: []
4157
+ },
4158
+ {
4159
+ type: "error",
4160
+ name: "AppAlreadyExists",
4161
+ inputs: []
4162
+ },
4163
+ {
4164
+ type: "error",
4165
+ name: "AppDoesNotExist",
4166
+ inputs: []
4167
+ },
4168
+ {
4169
+ type: "error",
4170
+ name: "GlobalMaxActiveAppsExceeded",
4171
+ inputs: []
4172
+ },
4173
+ {
4174
+ type: "error",
4175
+ name: "InvalidAppStatus",
4176
+ inputs: []
4177
+ },
4178
+ {
4179
+ type: "error",
4180
+ name: "InvalidPermissions",
4181
+ inputs: []
4182
+ },
4183
+ {
4184
+ type: "error",
4185
+ name: "InvalidReleaseMetadataURI",
4186
+ inputs: []
4187
+ },
4188
+ {
4189
+ type: "error",
4190
+ name: "InvalidShortString",
4191
+ inputs: []
4192
+ },
4193
+ {
4194
+ type: "error",
4195
+ name: "InvalidSignature",
4196
+ inputs: []
4197
+ },
4198
+ {
4199
+ type: "error",
4200
+ name: "MaxActiveAppsExceeded",
4201
+ inputs: []
4202
+ },
4203
+ {
4204
+ type: "error",
4205
+ name: "MoreThanOneArtifact",
4206
+ inputs: []
4207
+ },
4208
+ {
4209
+ type: "error",
4210
+ name: "NoPendingUpgrade",
4211
+ inputs: []
4212
+ },
4213
+ {
4214
+ type: "error",
4215
+ name: "SignatureExpired",
4216
+ inputs: []
4217
+ },
4218
+ {
4219
+ type: "error",
4220
+ name: "StringTooLong",
4221
+ inputs: [
4222
+ {
4223
+ name: "str",
4224
+ type: "string",
4225
+ internalType: "string"
4226
+ }
4227
+ ]
4228
+ }
4229
+ ];
4230
+
4231
+ // src/client/common/abis/AppController.v1_4.json
4232
+ var AppController_v1_4_default = [
4233
+ {
4234
+ type: "constructor",
4235
+ inputs: [
4236
+ {
4237
+ name: "_version",
4238
+ type: "string",
4239
+ internalType: "string"
4240
+ },
4241
+ {
4242
+ name: "_permissionController",
4243
+ type: "address",
4244
+ internalType: "contractIPermissionController"
4245
+ },
4246
+ {
4247
+ name: "_releaseManager",
4248
+ type: "address",
4249
+ internalType: "contractIReleaseManager"
4250
+ },
4251
+ {
4252
+ name: "_computeAVSRegistrar",
4253
+ type: "address",
4254
+ internalType: "contractIComputeAVSRegistrar"
4255
+ },
4256
+ {
4257
+ name: "_computeOperator",
4258
+ type: "address",
4259
+ internalType: "contractIComputeOperator"
4260
+ },
4261
+ {
4262
+ name: "_appBeacon",
4263
+ type: "address",
4264
+ internalType: "contractIBeacon"
4265
+ }
4266
+ ],
4267
+ stateMutability: "nonpayable"
4268
+ },
4269
+ {
4270
+ type: "function",
4271
+ name: "API_PERMISSION_TYPEHASH",
4272
+ inputs: [],
4273
+ outputs: [
4274
+ {
4275
+ name: "",
4276
+ type: "bytes32",
4277
+ internalType: "bytes32"
4278
+ }
4279
+ ],
4280
+ stateMutability: "view"
4281
+ },
4282
+ {
4283
+ type: "function",
4284
+ name: "appBeacon",
4285
+ inputs: [],
4286
+ outputs: [
4287
+ {
4288
+ name: "",
4289
+ type: "address",
4290
+ internalType: "contractIBeacon"
4291
+ }
4292
+ ],
4293
+ stateMutability: "view"
4294
+ },
4295
+ {
4296
+ type: "function",
4297
+ name: "calculateApiPermissionDigestHash",
4298
+ inputs: [
4299
+ {
4300
+ name: "permission",
4301
+ type: "bytes4",
4302
+ internalType: "bytes4"
4303
+ },
4304
+ {
4305
+ name: "expiry",
4306
+ type: "uint256",
4307
+ internalType: "uint256"
4308
+ }
4309
+ ],
4310
+ outputs: [
4311
+ {
4312
+ name: "",
4313
+ type: "bytes32",
4314
+ internalType: "bytes32"
4315
+ }
4316
+ ],
4317
+ stateMutability: "view"
4318
+ },
4319
+ {
4320
+ type: "function",
4321
+ name: "calculateAppId",
4322
+ inputs: [
4323
+ {
4324
+ name: "deployer",
4325
+ type: "address",
4326
+ internalType: "address"
4327
+ },
4328
+ {
4329
+ name: "salt",
4330
+ type: "bytes32",
4331
+ internalType: "bytes32"
4332
+ }
4333
+ ],
4334
+ outputs: [
4335
+ {
4336
+ name: "",
4337
+ type: "address",
4338
+ internalType: "contractIApp"
4339
+ }
4340
+ ],
4341
+ stateMutability: "view"
4342
+ },
4343
+ {
4344
+ type: "function",
4345
+ name: "computeAVSRegistrar",
4346
+ inputs: [],
4347
+ outputs: [
4348
+ {
4349
+ name: "",
4350
+ type: "address",
4351
+ internalType: "contractIComputeAVSRegistrar"
4352
+ }
4353
+ ],
4354
+ stateMutability: "view"
4355
+ },
4356
+ {
4357
+ type: "function",
4358
+ name: "computeOperator",
4359
+ inputs: [],
4360
+ outputs: [
4361
+ {
4362
+ name: "",
4363
+ type: "address",
4364
+ internalType: "contractIComputeOperator"
4365
+ }
4366
+ ],
4367
+ stateMutability: "view"
4368
+ },
4369
+ {
4370
+ type: "function",
4371
+ name: "createApp",
4372
+ inputs: [
4373
+ {
4374
+ name: "salt",
4375
+ type: "bytes32",
4376
+ internalType: "bytes32"
4377
+ },
4378
+ {
4379
+ name: "release",
4380
+ type: "tuple",
4381
+ internalType: "structIAppController.Release",
4382
+ components: [
4383
+ {
4384
+ name: "rmsRelease",
4385
+ type: "tuple",
4386
+ internalType: "structIReleaseManagerTypes.Release",
4387
+ components: [
4388
+ {
4389
+ name: "artifacts",
4390
+ type: "tuple[]",
4391
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4392
+ components: [
4393
+ {
4394
+ name: "digest",
4395
+ type: "bytes32",
4396
+ internalType: "bytes32"
4397
+ },
4398
+ {
4399
+ name: "registry",
4400
+ type: "string",
4401
+ internalType: "string"
4402
+ }
4403
+ ]
4404
+ },
4405
+ {
4406
+ name: "upgradeByTime",
4407
+ type: "uint32",
4408
+ internalType: "uint32"
4409
+ }
4410
+ ]
4411
+ },
4412
+ {
4413
+ name: "publicEnv",
4414
+ type: "bytes",
4415
+ internalType: "bytes"
4416
+ },
4417
+ {
4418
+ name: "encryptedEnv",
4419
+ type: "bytes",
4420
+ internalType: "bytes"
4421
+ }
4422
+ ]
4423
+ }
4424
+ ],
4425
+ outputs: [
4426
+ {
4427
+ name: "app",
4428
+ type: "address",
4429
+ internalType: "contractIApp"
4430
+ }
4431
+ ],
4432
+ stateMutability: "nonpayable"
4433
+ },
4434
+ {
4435
+ type: "function",
4436
+ name: "createAppWithIsolatedBilling",
4437
+ inputs: [
4438
+ {
4439
+ name: "salt",
4440
+ type: "bytes32",
4441
+ internalType: "bytes32"
4442
+ },
4443
+ {
4444
+ name: "release",
4445
+ type: "tuple",
4446
+ internalType: "structIAppController.Release",
4447
+ components: [
4448
+ {
4449
+ name: "rmsRelease",
4450
+ type: "tuple",
4451
+ internalType: "structIReleaseManagerTypes.Release",
4452
+ components: [
4453
+ {
4454
+ name: "artifacts",
4455
+ type: "tuple[]",
4456
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4457
+ components: [
4458
+ {
4459
+ name: "digest",
4460
+ type: "bytes32",
4461
+ internalType: "bytes32"
4462
+ },
4463
+ {
4464
+ name: "registry",
4465
+ type: "string",
4466
+ internalType: "string"
4467
+ }
4468
+ ]
4469
+ },
4470
+ {
4471
+ name: "upgradeByTime",
4472
+ type: "uint32",
4473
+ internalType: "uint32"
4474
+ }
4475
+ ]
4476
+ },
4477
+ {
4478
+ name: "publicEnv",
4479
+ type: "bytes",
4480
+ internalType: "bytes"
4481
+ },
4482
+ {
4483
+ name: "encryptedEnv",
4484
+ type: "bytes",
4485
+ internalType: "bytes"
4486
+ }
4487
+ ]
4488
+ }
4489
+ ],
4490
+ outputs: [
4491
+ {
4492
+ name: "app",
4493
+ type: "address",
4494
+ internalType: "contractIApp"
4495
+ }
4496
+ ],
4497
+ stateMutability: "nonpayable"
4498
+ },
4499
+ {
4500
+ type: "function",
4501
+ name: "domainSeparator",
4502
+ inputs: [],
4503
+ outputs: [
4504
+ {
4505
+ name: "",
4506
+ type: "bytes32",
4507
+ internalType: "bytes32"
4508
+ }
4509
+ ],
4510
+ stateMutability: "view"
4511
+ },
4512
+ {
4513
+ type: "function",
4514
+ name: "getActiveAppCount",
4515
+ inputs: [
4516
+ {
4517
+ name: "user",
4518
+ type: "address",
4519
+ internalType: "address"
4520
+ }
4521
+ ],
4522
+ outputs: [
4523
+ {
4524
+ name: "",
4525
+ type: "uint32",
4526
+ internalType: "uint32"
4527
+ }
4528
+ ],
4529
+ stateMutability: "view"
4530
+ },
4531
+ {
4532
+ type: "function",
4533
+ name: "getBillingType",
4534
+ inputs: [
4535
+ {
4536
+ name: "app",
4537
+ type: "address",
4538
+ internalType: "address"
4539
+ }
4540
+ ],
4541
+ outputs: [
4542
+ {
4543
+ name: "",
4544
+ type: "uint8",
4545
+ internalType: "uint8"
4546
+ }
4547
+ ],
4548
+ stateMutability: "view"
4549
+ },
4550
+ {
4551
+ type: "function",
4552
+ name: "getAppCreator",
4553
+ inputs: [
4554
+ {
4555
+ name: "app",
4556
+ type: "address",
4557
+ internalType: "contractIApp"
4558
+ }
4559
+ ],
4560
+ outputs: [
4561
+ {
4562
+ name: "",
4563
+ type: "address",
4564
+ internalType: "address"
4565
+ }
4566
+ ],
4567
+ stateMutability: "view"
4568
+ },
4569
+ {
4570
+ type: "function",
4571
+ name: "getAppLatestReleaseBlockNumber",
4572
+ inputs: [
4573
+ {
4574
+ name: "app",
4575
+ type: "address",
4576
+ internalType: "contractIApp"
4577
+ }
4578
+ ],
4579
+ outputs: [
4580
+ {
4581
+ name: "",
4582
+ type: "uint32",
4583
+ internalType: "uint32"
4584
+ }
4585
+ ],
4586
+ stateMutability: "view"
4587
+ },
4588
+ {
4589
+ type: "function",
4590
+ name: "getAppOperatorSetId",
4591
+ inputs: [
4592
+ {
4593
+ name: "app",
4594
+ type: "address",
4595
+ internalType: "contractIApp"
4596
+ }
4597
+ ],
4598
+ outputs: [
4599
+ {
4600
+ name: "",
4601
+ type: "uint32",
4602
+ internalType: "uint32"
4603
+ }
4604
+ ],
4605
+ stateMutability: "view"
4606
+ },
4607
+ {
4608
+ type: "function",
4609
+ name: "getAppStatus",
4610
+ inputs: [
4611
+ {
4612
+ name: "app",
4613
+ type: "address",
4614
+ internalType: "contractIApp"
4615
+ }
4616
+ ],
4617
+ outputs: [
4618
+ {
4619
+ name: "",
4620
+ type: "uint8",
4621
+ internalType: "enumIAppController.AppStatus"
4622
+ }
4623
+ ],
4624
+ stateMutability: "view"
4625
+ },
4626
+ {
4627
+ type: "function",
4628
+ name: "getApps",
4629
+ inputs: [
4630
+ {
4631
+ name: "offset",
4632
+ type: "uint256",
4633
+ internalType: "uint256"
4634
+ },
4635
+ {
4636
+ name: "limit",
4637
+ type: "uint256",
4638
+ internalType: "uint256"
4639
+ }
4640
+ ],
4641
+ outputs: [
4642
+ {
4643
+ name: "apps",
4644
+ type: "address[]",
4645
+ internalType: "contractIApp[]"
4646
+ },
4647
+ {
4648
+ name: "appConfigsMem",
4649
+ type: "tuple[]",
4650
+ internalType: "structIAppController.AppConfig[]",
4651
+ components: [
4652
+ {
4653
+ name: "creator",
4654
+ type: "address",
4655
+ internalType: "address"
4656
+ },
4657
+ {
4658
+ name: "operatorSetId",
4659
+ type: "uint32",
4660
+ internalType: "uint32"
4661
+ },
4662
+ {
4663
+ name: "latestReleaseBlockNumber",
4664
+ type: "uint32",
4665
+ internalType: "uint32"
4666
+ },
4667
+ {
4668
+ name: "status",
4669
+ type: "uint8",
4670
+ internalType: "enumIAppController.AppStatus"
4671
+ }
4672
+ ]
4673
+ }
4674
+ ],
4675
+ stateMutability: "view"
4676
+ },
4677
+ {
4678
+ type: "function",
4679
+ name: "getAppsByBillingAccount",
4680
+ inputs: [
4681
+ {
4682
+ name: "account",
4683
+ type: "address",
4684
+ internalType: "address"
4685
+ },
4686
+ {
4687
+ name: "offset",
4688
+ type: "uint256",
4689
+ internalType: "uint256"
4690
+ },
4691
+ {
4692
+ name: "limit",
4693
+ type: "uint256",
4694
+ internalType: "uint256"
4695
+ }
4696
+ ],
4697
+ outputs: [
4698
+ {
4699
+ name: "apps",
4700
+ type: "address[]",
4701
+ internalType: "contractIApp[]"
4702
+ },
4703
+ {
4704
+ name: "appConfigsMem",
4705
+ type: "tuple[]",
4706
+ internalType: "structIAppController.AppConfig[]",
4707
+ components: [
4708
+ {
4709
+ name: "creator",
4710
+ type: "address",
4711
+ internalType: "address"
4712
+ },
4713
+ {
4714
+ name: "operatorSetId",
4715
+ type: "uint32",
4716
+ internalType: "uint32"
4717
+ },
4718
+ {
4719
+ name: "latestReleaseBlockNumber",
4720
+ type: "uint32",
4721
+ internalType: "uint32"
4722
+ },
4723
+ {
4724
+ name: "status",
4725
+ type: "uint8",
4726
+ internalType: "enumIAppController.AppStatus"
4727
+ }
4728
+ ]
4729
+ }
4730
+ ],
4731
+ stateMutability: "view"
4732
+ },
4733
+ {
4734
+ type: "function",
4735
+ name: "getAppsByCreator",
4736
+ inputs: [
4737
+ {
4738
+ name: "creator",
4739
+ type: "address",
4740
+ internalType: "address"
4741
+ },
4742
+ {
4743
+ name: "offset",
4744
+ type: "uint256",
4745
+ internalType: "uint256"
4746
+ },
4747
+ {
4748
+ name: "limit",
4749
+ type: "uint256",
4750
+ internalType: "uint256"
4751
+ }
4752
+ ],
4753
+ outputs: [
4754
+ {
4755
+ name: "apps",
4756
+ type: "address[]",
4757
+ internalType: "contractIApp[]"
4758
+ },
4759
+ {
4760
+ name: "appConfigsMem",
4761
+ type: "tuple[]",
4762
+ internalType: "structIAppController.AppConfig[]",
4763
+ components: [
4764
+ {
4765
+ name: "creator",
4766
+ type: "address",
4767
+ internalType: "address"
4768
+ },
4769
+ {
4770
+ name: "operatorSetId",
4771
+ type: "uint32",
4772
+ internalType: "uint32"
4773
+ },
4774
+ {
4775
+ name: "latestReleaseBlockNumber",
4776
+ type: "uint32",
4777
+ internalType: "uint32"
4778
+ },
4779
+ {
4780
+ name: "status",
4781
+ type: "uint8",
4782
+ internalType: "enumIAppController.AppStatus"
4783
+ }
4784
+ ]
4785
+ }
4786
+ ],
4787
+ stateMutability: "view"
4788
+ },
4789
+ {
4790
+ type: "function",
4791
+ name: "getAppsByDeveloper",
4792
+ inputs: [
4793
+ {
4794
+ name: "developer",
4795
+ type: "address",
4796
+ internalType: "address"
4797
+ },
4798
+ {
4799
+ name: "offset",
4800
+ type: "uint256",
4801
+ internalType: "uint256"
4802
+ },
4803
+ {
4804
+ name: "limit",
4805
+ type: "uint256",
4806
+ internalType: "uint256"
4807
+ }
4808
+ ],
4809
+ outputs: [
4810
+ {
4811
+ name: "apps",
4812
+ type: "address[]",
4813
+ internalType: "contractIApp[]"
4814
+ },
4815
+ {
4816
+ name: "appConfigsMem",
4817
+ type: "tuple[]",
4818
+ internalType: "structIAppController.AppConfig[]",
4819
+ components: [
4820
+ {
4821
+ name: "creator",
4822
+ type: "address",
4823
+ internalType: "address"
4824
+ },
4825
+ {
4826
+ name: "operatorSetId",
4827
+ type: "uint32",
4828
+ internalType: "uint32"
4829
+ },
4830
+ {
4831
+ name: "latestReleaseBlockNumber",
4832
+ type: "uint32",
4833
+ internalType: "uint32"
4834
+ },
4835
+ {
4836
+ name: "status",
4837
+ type: "uint8",
4838
+ internalType: "enumIAppController.AppStatus"
4839
+ }
4840
+ ]
4841
+ }
4842
+ ],
4843
+ stateMutability: "view"
4844
+ },
4845
+ {
4846
+ type: "function",
4847
+ name: "getMaxActiveAppsPerUser",
4848
+ inputs: [
4849
+ {
4850
+ name: "user",
4851
+ type: "address",
4852
+ internalType: "address"
4853
+ }
4854
+ ],
4855
+ outputs: [
4856
+ {
4857
+ name: "",
4858
+ type: "uint32",
4859
+ internalType: "uint32"
4860
+ }
4861
+ ],
4862
+ stateMutability: "view"
4863
+ },
4864
+ {
4865
+ type: "function",
4866
+ name: "globalActiveAppCount",
4867
+ inputs: [],
4868
+ outputs: [
4869
+ {
4870
+ name: "",
4871
+ type: "uint32",
4872
+ internalType: "uint32"
4873
+ }
4874
+ ],
4875
+ stateMutability: "view"
4876
+ },
4877
+ {
4878
+ type: "function",
4879
+ name: "initialize",
4880
+ inputs: [
4881
+ {
4882
+ name: "admin",
4883
+ type: "address",
4884
+ internalType: "address"
4885
+ }
4886
+ ],
4887
+ outputs: [],
4888
+ stateMutability: "nonpayable"
4889
+ },
4890
+ {
4891
+ type: "function",
4892
+ name: "maxGlobalActiveApps",
4893
+ inputs: [],
4894
+ outputs: [
4895
+ {
4896
+ name: "",
4897
+ type: "uint32",
4898
+ internalType: "uint32"
4899
+ }
4900
+ ],
4901
+ stateMutability: "view"
4902
+ },
4903
+ {
4904
+ type: "function",
4905
+ name: "permissionController",
4906
+ inputs: [],
4907
+ outputs: [
4908
+ {
4909
+ name: "",
4910
+ type: "address",
4911
+ internalType: "contractIPermissionController"
4912
+ }
4913
+ ],
4914
+ stateMutability: "view"
4915
+ },
4916
+ {
4917
+ type: "function",
4918
+ name: "releaseManager",
4919
+ inputs: [],
4920
+ outputs: [
4921
+ {
4922
+ name: "",
4923
+ type: "address",
4924
+ internalType: "contractIReleaseManager"
4925
+ }
4926
+ ],
4927
+ stateMutability: "view"
4928
+ },
4929
+ {
4930
+ type: "function",
4931
+ name: "setMaxActiveAppsPerUser",
4932
+ inputs: [
4933
+ {
4934
+ name: "user",
4935
+ type: "address",
4936
+ internalType: "address"
4937
+ },
4938
+ {
4939
+ name: "limit",
4940
+ type: "uint32",
4941
+ internalType: "uint32"
4942
+ }
4943
+ ],
4944
+ outputs: [],
4945
+ stateMutability: "nonpayable"
4946
+ },
4947
+ {
4948
+ type: "function",
4949
+ name: "setMaxGlobalActiveApps",
4950
+ inputs: [
4951
+ {
4952
+ name: "limit",
4953
+ type: "uint32",
4954
+ internalType: "uint32"
4955
+ }
4956
+ ],
4957
+ outputs: [],
4958
+ stateMutability: "nonpayable"
4959
+ },
4960
+ {
4961
+ type: "function",
4962
+ name: "startApp",
4963
+ inputs: [
4964
+ {
4965
+ name: "app",
4966
+ type: "address",
4967
+ internalType: "contractIApp"
4968
+ }
4969
+ ],
4970
+ outputs: [],
4971
+ stateMutability: "nonpayable"
4972
+ },
4973
+ {
4974
+ type: "function",
4975
+ name: "stopApp",
4976
+ inputs: [
4977
+ {
4978
+ name: "app",
4979
+ type: "address",
4980
+ internalType: "contractIApp"
4981
+ }
4982
+ ],
4983
+ outputs: [],
4984
+ stateMutability: "nonpayable"
4985
+ },
4986
+ {
4987
+ type: "function",
4988
+ name: "suspend",
4989
+ inputs: [
4990
+ {
4991
+ name: "account",
4992
+ type: "address",
4993
+ internalType: "address"
4994
+ },
4995
+ {
4996
+ name: "apps",
4997
+ type: "address[]",
4998
+ internalType: "contractIApp[]"
4999
+ }
5000
+ ],
5001
+ outputs: [],
5002
+ stateMutability: "nonpayable"
5003
+ },
5004
+ {
5005
+ type: "function",
5006
+ name: "terminateApp",
5007
+ inputs: [
5008
+ {
5009
+ name: "app",
5010
+ type: "address",
5011
+ internalType: "contractIApp"
5012
+ }
5013
+ ],
5014
+ outputs: [],
5015
+ stateMutability: "nonpayable"
5016
+ },
5017
+ {
5018
+ type: "function",
5019
+ name: "terminateAppByAdmin",
5020
+ inputs: [
5021
+ {
5022
+ name: "app",
5023
+ type: "address",
5024
+ internalType: "contractIApp"
5025
+ }
5026
+ ],
5027
+ outputs: [],
5028
+ stateMutability: "nonpayable"
5029
+ },
5030
+ {
5031
+ type: "function",
5032
+ name: "updateAppMetadataURI",
5033
+ inputs: [
5034
+ {
5035
+ name: "app",
5036
+ type: "address",
5037
+ internalType: "contractIApp"
5038
+ },
5039
+ {
5040
+ name: "metadataURI",
5041
+ type: "string",
5042
+ internalType: "string"
5043
+ }
5044
+ ],
5045
+ outputs: [],
5046
+ stateMutability: "nonpayable"
5047
+ },
5048
+ {
5049
+ type: "function",
5050
+ name: "upgradeApp",
5051
+ inputs: [
5052
+ {
5053
+ name: "app",
5054
+ type: "address",
5055
+ internalType: "contractIApp"
5056
+ },
5057
+ {
5058
+ name: "release",
5059
+ type: "tuple",
5060
+ internalType: "structIAppController.Release",
5061
+ components: [
5062
+ {
5063
+ name: "rmsRelease",
5064
+ type: "tuple",
5065
+ internalType: "structIReleaseManagerTypes.Release",
5066
+ components: [
5067
+ {
5068
+ name: "artifacts",
5069
+ type: "tuple[]",
5070
+ internalType: "structIReleaseManagerTypes.Artifact[]",
5071
+ components: [
5072
+ {
5073
+ name: "digest",
5074
+ type: "bytes32",
5075
+ internalType: "bytes32"
5076
+ },
5077
+ {
5078
+ name: "registry",
5079
+ type: "string",
5080
+ internalType: "string"
5081
+ }
5082
+ ]
5083
+ },
5084
+ {
5085
+ name: "upgradeByTime",
5086
+ type: "uint32",
5087
+ internalType: "uint32"
5088
+ }
5089
+ ]
5090
+ },
5091
+ {
5092
+ name: "publicEnv",
5093
+ type: "bytes",
5094
+ internalType: "bytes"
5095
+ },
5096
+ {
5097
+ name: "encryptedEnv",
5098
+ type: "bytes",
5099
+ internalType: "bytes"
5100
+ }
5101
+ ]
5102
+ }
5103
+ ],
5104
+ outputs: [
5105
+ {
5106
+ name: "",
5107
+ type: "uint256",
5108
+ internalType: "uint256"
5109
+ }
5110
+ ],
5111
+ stateMutability: "nonpayable"
5112
+ },
5113
+ {
5114
+ type: "function",
5115
+ name: "version",
5116
+ inputs: [],
5117
+ outputs: [
5118
+ {
5119
+ name: "",
5120
+ type: "string",
5121
+ internalType: "string"
5122
+ }
5123
+ ],
5124
+ stateMutability: "view"
5125
+ },
5126
+ {
5127
+ type: "event",
5128
+ name: "AppCreated",
5129
+ inputs: [
5130
+ {
5131
+ name: "creator",
5132
+ type: "address",
5133
+ indexed: true,
5134
+ internalType: "address"
5135
+ },
5136
+ {
5137
+ name: "app",
5138
+ type: "address",
5139
+ indexed: true,
5140
+ internalType: "contractIApp"
5141
+ },
5142
+ {
5143
+ name: "operatorSetId",
5144
+ type: "uint32",
5145
+ indexed: false,
5146
+ internalType: "uint32"
5147
+ }
5148
+ ],
5149
+ anonymous: false
5150
+ },
5151
+ {
5152
+ type: "event",
5153
+ name: "AppMetadataURIUpdated",
5154
+ inputs: [
5155
+ {
5156
+ name: "app",
5157
+ type: "address",
5158
+ indexed: true,
5159
+ internalType: "contractIApp"
5160
+ },
5161
+ {
5162
+ name: "metadataURI",
5163
+ type: "string",
5164
+ indexed: false,
5165
+ internalType: "string"
5166
+ }
5167
+ ],
5168
+ anonymous: false
5169
+ },
5170
+ {
5171
+ type: "event",
5172
+ name: "AppStarted",
5173
+ inputs: [
5174
+ {
5175
+ name: "app",
5176
+ type: "address",
5177
+ indexed: true,
5178
+ internalType: "contractIApp"
5179
+ }
5180
+ ],
5181
+ anonymous: false
5182
+ },
5183
+ {
5184
+ type: "event",
5185
+ name: "AppStopped",
5186
+ inputs: [
5187
+ {
5188
+ name: "app",
5189
+ type: "address",
5190
+ indexed: true,
5191
+ internalType: "contractIApp"
5192
+ }
5193
+ ],
5194
+ anonymous: false
5195
+ },
5196
+ {
5197
+ type: "event",
5198
+ name: "AppSuspended",
5199
+ inputs: [
5200
+ {
5201
+ name: "app",
5202
+ type: "address",
5203
+ indexed: true,
5204
+ internalType: "contractIApp"
5205
+ }
5206
+ ],
5207
+ anonymous: false
5208
+ },
5209
+ {
5210
+ type: "event",
5211
+ name: "AppTerminated",
5212
+ inputs: [
5213
+ {
5214
+ name: "app",
5215
+ type: "address",
5216
+ indexed: true,
5217
+ internalType: "contractIApp"
5218
+ }
5219
+ ],
5220
+ anonymous: false
5221
+ },
5222
+ {
5223
+ type: "event",
5224
+ name: "AppTerminatedByAdmin",
5225
+ inputs: [
5226
+ {
5227
+ name: "app",
5228
+ type: "address",
5229
+ indexed: true,
5230
+ internalType: "contractIApp"
5231
+ }
5232
+ ],
5233
+ anonymous: false
5234
+ },
5235
+ {
5236
+ type: "event",
5237
+ name: "AppUpgraded",
5238
+ inputs: [
5239
+ {
5240
+ name: "app",
5241
+ type: "address",
5242
+ indexed: true,
5243
+ internalType: "contractIApp"
5244
+ },
5245
+ {
5246
+ name: "rmsReleaseId",
5247
+ type: "uint256",
5248
+ indexed: false,
5249
+ internalType: "uint256"
5250
+ },
5251
+ {
5252
+ name: "release",
5253
+ type: "tuple",
5254
+ indexed: false,
5255
+ internalType: "structIAppController.Release",
5256
+ components: [
5257
+ {
5258
+ name: "rmsRelease",
5259
+ type: "tuple",
5260
+ internalType: "structIReleaseManagerTypes.Release",
5261
+ components: [
5262
+ {
5263
+ name: "artifacts",
5264
+ type: "tuple[]",
5265
+ internalType: "structIReleaseManagerTypes.Artifact[]",
5266
+ components: [
5267
+ {
5268
+ name: "digest",
5269
+ type: "bytes32",
5270
+ internalType: "bytes32"
5271
+ },
5272
+ {
5273
+ name: "registry",
5274
+ type: "string",
5275
+ internalType: "string"
5276
+ }
5277
+ ]
5278
+ },
5279
+ {
5280
+ name: "upgradeByTime",
5281
+ type: "uint32",
5282
+ internalType: "uint32"
5283
+ }
5284
+ ]
5285
+ },
5286
+ {
5287
+ name: "publicEnv",
5288
+ type: "bytes",
5289
+ internalType: "bytes"
5290
+ },
5291
+ {
5292
+ name: "encryptedEnv",
5293
+ type: "bytes",
5294
+ internalType: "bytes"
5295
+ }
5296
+ ]
5297
+ }
5298
+ ],
5299
+ anonymous: false
5300
+ },
5301
+ {
5302
+ type: "event",
5303
+ name: "GlobalMaxActiveAppsSet",
5304
+ inputs: [
5305
+ {
5306
+ name: "limit",
5307
+ type: "uint32",
5308
+ indexed: false,
5309
+ internalType: "uint32"
5310
+ }
5311
+ ],
5312
+ anonymous: false
5313
+ },
5314
+ {
5315
+ type: "event",
5316
+ name: "Initialized",
5317
+ inputs: [
5318
+ {
3766
5319
  name: "version",
3767
5320
  type: "uint8",
3768
5321
  indexed: false,
@@ -4360,6 +5913,38 @@ var PermissionController_default = [
4360
5913
  ];
4361
5914
 
4362
5915
  // src/client/common/contract/caller.ts
5916
+ function appControllerAbiFor(environmentConfig) {
5917
+ return environmentConfig.releaseAbiVersion === "v1.4" ? AppController_v1_4_default : AppController_default;
5918
+ }
5919
+ function supportsContainerPolicy(environmentConfig) {
5920
+ return environmentConfig.releaseAbiVersion !== "v1.4";
5921
+ }
5922
+ function containerPolicyForViem(policy = EMPTY_CONTAINER_POLICY) {
5923
+ return {
5924
+ args: policy.args,
5925
+ cmdOverride: policy.cmdOverride,
5926
+ env: policy.env.map((e) => ({ key: e.key, value: e.value })),
5927
+ envOverride: policy.envOverride.map((e) => ({ key: e.key, value: e.value })),
5928
+ restartPolicy: policy.restartPolicy
5929
+ };
5930
+ }
5931
+ function releaseForViem(release, environmentConfig) {
5932
+ const base = {
5933
+ rmsRelease: {
5934
+ artifacts: release.rmsRelease.artifacts.map((artifact) => ({
5935
+ digest: `0x${(0, import_viem3.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
5936
+ registry: artifact.registry
5937
+ })),
5938
+ upgradeByTime: release.rmsRelease.upgradeByTime
5939
+ },
5940
+ publicEnv: (0, import_viem3.bytesToHex)(release.publicEnv),
5941
+ encryptedEnv: (0, import_viem3.bytesToHex)(release.encryptedEnv)
5942
+ };
5943
+ if (!supportsContainerPolicy(environmentConfig)) {
5944
+ return base;
5945
+ }
5946
+ return { ...base, containerPolicy: containerPolicyForViem(release.containerPolicy) };
5947
+ }
4363
5948
  function formatETH(wei) {
4364
5949
  const eth = Number(wei) / 1e18;
4365
5950
  const costStr = eth.toFixed(6);
@@ -4397,7 +5982,7 @@ async function calculateAppID(options) {
4397
5982
  const saltHex = `0x${paddedSaltHex}`;
4398
5983
  const appID = await publicClient.readContract({
4399
5984
  address: environmentConfig.appControllerAddress,
4400
- abi: AppController_default,
5985
+ abi: appControllerAbiFor(environmentConfig),
4401
5986
  functionName: "calculateAppId",
4402
5987
  args: [ownerAddress, saltHex]
4403
5988
  });
@@ -4421,22 +6006,12 @@ async function prepareDeployBatch(options, logger = noopLogger) {
4421
6006
  const saltHexString = (0, import_viem3.bytesToHex)(salt).slice(2);
4422
6007
  const paddedSaltHex = saltHexString.padStart(64, "0");
4423
6008
  const saltHex = `0x${paddedSaltHex}`;
4424
- const releaseForViem = {
4425
- rmsRelease: {
4426
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4427
- digest: `0x${(0, import_viem3.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
4428
- registry: artifact.registry
4429
- })),
4430
- upgradeByTime: release.rmsRelease.upgradeByTime
4431
- },
4432
- publicEnv: (0, import_viem3.bytesToHex)(release.publicEnv),
4433
- encryptedEnv: (0, import_viem3.bytesToHex)(release.encryptedEnv)
4434
- };
6009
+ const release_ = releaseForViem(release, environmentConfig);
4435
6010
  const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
4436
6011
  const createData = (0, import_viem3.encodeFunctionData)({
4437
- abi: AppController_default,
6012
+ abi: appControllerAbiFor(environmentConfig),
4438
6013
  functionName,
4439
- args: [saltHex, releaseForViem]
6014
+ args: [saltHex, release_]
4440
6015
  });
4441
6016
  const acceptAdminData = (0, import_viem3.encodeFunctionData)({
4442
6017
  abi: PermissionController_default,
@@ -4524,21 +6099,11 @@ async function prepareUpgradeBatch(options) {
4524
6099
  publicLogs,
4525
6100
  needsPermissionChange
4526
6101
  } = options;
4527
- const releaseForViem = {
4528
- rmsRelease: {
4529
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4530
- digest: `0x${(0, import_viem3.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
4531
- registry: artifact.registry
4532
- })),
4533
- upgradeByTime: release.rmsRelease.upgradeByTime
4534
- },
4535
- publicEnv: (0, import_viem3.bytesToHex)(release.publicEnv),
4536
- encryptedEnv: (0, import_viem3.bytesToHex)(release.encryptedEnv)
4537
- };
6102
+ const release_ = releaseForViem(release, environmentConfig);
4538
6103
  const upgradeData = (0, import_viem3.encodeFunctionData)({
4539
- abi: AppController_default,
6104
+ abi: appControllerAbiFor(environmentConfig),
4540
6105
  functionName: "upgradeApp",
4541
- args: [appID, releaseForViem]
6106
+ args: [appID, release_]
4542
6107
  });
4543
6108
  const executions = [
4544
6109
  {
@@ -4672,7 +6237,7 @@ ${pendingMessage}`);
4672
6237
  if (callError.data) {
4673
6238
  try {
4674
6239
  const decoded = (0, import_viem3.decodeErrorResult)({
4675
- abi: AppController_default,
6240
+ abi: appControllerAbiFor(environmentConfig),
4676
6241
  data: callError.data
4677
6242
  });
4678
6243
  const formattedError = formatAppControllerError(decoded);
@@ -4725,7 +6290,7 @@ function formatAppControllerError(decoded) {
4725
6290
  async function getActiveAppCount(publicClient, environmentConfig, user) {
4726
6291
  const count = await publicClient.readContract({
4727
6292
  address: environmentConfig.appControllerAddress,
4728
- abi: AppController_default,
6293
+ abi: appControllerAbiFor(environmentConfig),
4729
6294
  functionName: "getActiveAppCount",
4730
6295
  args: [user]
4731
6296
  });
@@ -4734,7 +6299,7 @@ async function getActiveAppCount(publicClient, environmentConfig, user) {
4734
6299
  async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
4735
6300
  const quota = await publicClient.readContract({
4736
6301
  address: environmentConfig.appControllerAddress,
4737
- abi: AppController_default,
6302
+ abi: appControllerAbiFor(environmentConfig),
4738
6303
  functionName: "getMaxActiveAppsPerUser",
4739
6304
  args: [user]
4740
6305
  });
@@ -4743,7 +6308,7 @@ async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
4743
6308
  async function getAppsByDeveloper(publicClient, environmentConfig, developer, offset, limit) {
4744
6309
  const result = await publicClient.readContract({
4745
6310
  address: environmentConfig.appControllerAddress,
4746
- abi: AppController_default,
6311
+ abi: appControllerAbiFor(environmentConfig),
4747
6312
  functionName: "getAppsByDeveloper",
4748
6313
  args: [developer, offset, limit]
4749
6314
  });
@@ -4755,7 +6320,7 @@ async function getAppsByDeveloper(publicClient, environmentConfig, developer, of
4755
6320
  async function getBillingType(publicClient, environmentConfig, app) {
4756
6321
  const result = await publicClient.readContract({
4757
6322
  address: environmentConfig.appControllerAddress,
4758
- abi: AppController_default,
6323
+ abi: appControllerAbiFor(environmentConfig),
4759
6324
  functionName: "getBillingType",
4760
6325
  args: [app]
4761
6326
  });
@@ -4764,7 +6329,7 @@ async function getBillingType(publicClient, environmentConfig, app) {
4764
6329
  async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
4765
6330
  const result = await publicClient.readContract({
4766
6331
  address: environmentConfig.appControllerAddress,
4767
- abi: AppController_default,
6332
+ abi: appControllerAbiFor(environmentConfig),
4768
6333
  functionName: "getAppsByBillingAccount",
4769
6334
  args: [account, offset, limit]
4770
6335
  });
@@ -4798,7 +6363,7 @@ async function getAppLatestReleaseBlockNumbers(publicClient, environmentConfig,
4798
6363
  appIDs.map(
4799
6364
  (appID) => publicClient.readContract({
4800
6365
  address: environmentConfig.appControllerAddress,
4801
- abi: AppController_default,
6366
+ abi: appControllerAbiFor(environmentConfig),
4802
6367
  functionName: "getAppLatestReleaseBlockNumber",
4803
6368
  args: [appID]
4804
6369
  }).catch(() => null)
@@ -4988,7 +6553,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4988
6553
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4989
6554
  var CanUpdateAppProfilePermission = "0x036fef61";
4990
6555
  function getDefaultClientId() {
4991
- const version = true ? "1.0.0-dev.5" : "0.0.0";
6556
+ const version = true ? "1.0.0-dev.7" : "0.0.0";
4992
6557
  return `ecloud-sdk/v${version}`;
4993
6558
  }
4994
6559
  var UserApiClient = class {
@@ -5772,6 +7337,8 @@ var ENVIRONMENTS = {
5772
7337
  name: "sepolia",
5773
7338
  build: "dev",
5774
7339
  appControllerAddress: "0xa86DC1C47cb2518327fB4f9A1627F51966c83B92",
7340
+ releaseAbiVersion: "v1.5",
7341
+ // AppController upgraded to v1.5.x (containerPolicy)
5775
7342
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
5776
7343
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5777
7344
  kmsServerURL: "http://10.128.0.57:8080",
@@ -5785,6 +7352,8 @@ var ENVIRONMENTS = {
5785
7352
  name: "sepolia",
5786
7353
  build: "prod",
5787
7354
  appControllerAddress: "0x0dd810a6ffba6a9820a10d97b659f07d8d23d4E2",
7355
+ releaseAbiVersion: "v1.4",
7356
+ // prod still on AppController v1.4.0 (3-field Release)
5788
7357
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
5789
7358
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5790
7359
  kmsServerURL: "http://10.128.15.203:8080",
@@ -5799,6 +7368,8 @@ var ENVIRONMENTS = {
5799
7368
  name: "mainnet-alpha",
5800
7369
  build: "prod",
5801
7370
  appControllerAddress: "0xc38d35Fc995e75342A21CBd6D770305b142Fbe67",
7371
+ releaseAbiVersion: "v1.4",
7372
+ // prod still on AppController v1.4.0 (3-field Release)
5802
7373
  permissionControllerAddress: ChainAddresses[MAINNET_CHAIN_ID].PermissionController,
5803
7374
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5804
7375
  kmsServerURL: "http://10.128.0.2:8080",
@@ -9679,6 +11250,7 @@ var JwtProvider = class {
9679
11250
  BuildError,
9680
11251
  BuildFailedError,
9681
11252
  ConflictError,
11253
+ EMPTY_CONTAINER_POLICY,
9682
11254
  ERC20ABI,
9683
11255
  ForbiddenError,
9684
11256
  JwtProvider,