@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.js CHANGED
@@ -1243,6 +1243,13 @@ function extractRegistryNameNoDocker(imageRef) {
1243
1243
  import { encodeFunctionData, encodeAbiParameters, decodeErrorResult } from "viem";
1244
1244
 
1245
1245
  // src/client/common/types/index.ts
1246
+ var EMPTY_CONTAINER_POLICY = {
1247
+ args: [],
1248
+ cmdOverride: [],
1249
+ env: [],
1250
+ envOverride: [],
1251
+ restartPolicy: ""
1252
+ };
1246
1253
  var noopLogger = {
1247
1254
  debug: () => {
1248
1255
  },
@@ -2662,6 +2669,19 @@ var AppController_default = [
2662
2669
  ],
2663
2670
  stateMutability: "view"
2664
2671
  },
2672
+ {
2673
+ type: "function",
2674
+ name: "confirmUpgrade",
2675
+ inputs: [
2676
+ {
2677
+ name: "app",
2678
+ type: "address",
2679
+ internalType: "contractIApp"
2680
+ }
2681
+ ],
2682
+ outputs: [],
2683
+ stateMutability: "nonpayable"
2684
+ },
2665
2685
  {
2666
2686
  type: "function",
2667
2687
  name: "createApp",
@@ -2714,6 +2734,62 @@ var AppController_default = [
2714
2734
  name: "encryptedEnv",
2715
2735
  type: "bytes",
2716
2736
  internalType: "bytes"
2737
+ },
2738
+ {
2739
+ name: "containerPolicy",
2740
+ type: "tuple",
2741
+ internalType: "structIAppController.ContainerPolicy",
2742
+ components: [
2743
+ {
2744
+ name: "args",
2745
+ type: "string[]",
2746
+ internalType: "string[]"
2747
+ },
2748
+ {
2749
+ name: "cmdOverride",
2750
+ type: "string[]",
2751
+ internalType: "string[]"
2752
+ },
2753
+ {
2754
+ name: "env",
2755
+ type: "tuple[]",
2756
+ internalType: "structIAppController.EnvVar[]",
2757
+ components: [
2758
+ {
2759
+ name: "key",
2760
+ type: "string",
2761
+ internalType: "string"
2762
+ },
2763
+ {
2764
+ name: "value",
2765
+ type: "string",
2766
+ internalType: "string"
2767
+ }
2768
+ ]
2769
+ },
2770
+ {
2771
+ name: "envOverride",
2772
+ type: "tuple[]",
2773
+ internalType: "structIAppController.EnvVar[]",
2774
+ components: [
2775
+ {
2776
+ name: "key",
2777
+ type: "string",
2778
+ internalType: "string"
2779
+ },
2780
+ {
2781
+ name: "value",
2782
+ type: "string",
2783
+ internalType: "string"
2784
+ }
2785
+ ]
2786
+ },
2787
+ {
2788
+ name: "restartPolicy",
2789
+ type: "string",
2790
+ internalType: "string"
2791
+ }
2792
+ ]
2717
2793
  }
2718
2794
  ]
2719
2795
  }
@@ -2779,6 +2855,62 @@ var AppController_default = [
2779
2855
  name: "encryptedEnv",
2780
2856
  type: "bytes",
2781
2857
  internalType: "bytes"
2858
+ },
2859
+ {
2860
+ name: "containerPolicy",
2861
+ type: "tuple",
2862
+ internalType: "structIAppController.ContainerPolicy",
2863
+ components: [
2864
+ {
2865
+ name: "args",
2866
+ type: "string[]",
2867
+ internalType: "string[]"
2868
+ },
2869
+ {
2870
+ name: "cmdOverride",
2871
+ type: "string[]",
2872
+ internalType: "string[]"
2873
+ },
2874
+ {
2875
+ name: "env",
2876
+ type: "tuple[]",
2877
+ internalType: "structIAppController.EnvVar[]",
2878
+ components: [
2879
+ {
2880
+ name: "key",
2881
+ type: "string",
2882
+ internalType: "string"
2883
+ },
2884
+ {
2885
+ name: "value",
2886
+ type: "string",
2887
+ internalType: "string"
2888
+ }
2889
+ ]
2890
+ },
2891
+ {
2892
+ name: "envOverride",
2893
+ type: "tuple[]",
2894
+ internalType: "structIAppController.EnvVar[]",
2895
+ components: [
2896
+ {
2897
+ name: "key",
2898
+ type: "string",
2899
+ internalType: "string"
2900
+ },
2901
+ {
2902
+ name: "value",
2903
+ type: "string",
2904
+ internalType: "string"
2905
+ }
2906
+ ]
2907
+ },
2908
+ {
2909
+ name: "restartPolicy",
2910
+ type: "string",
2911
+ internalType: "string"
2912
+ }
2913
+ ]
2782
2914
  }
2783
2915
  ]
2784
2916
  }
@@ -2792,6 +2924,44 @@ var AppController_default = [
2792
2924
  ],
2793
2925
  stateMutability: "nonpayable"
2794
2926
  },
2927
+ {
2928
+ type: "function",
2929
+ name: "createEmptyApp",
2930
+ inputs: [
2931
+ {
2932
+ name: "salt",
2933
+ type: "bytes32",
2934
+ internalType: "bytes32"
2935
+ }
2936
+ ],
2937
+ outputs: [
2938
+ {
2939
+ name: "app",
2940
+ type: "address",
2941
+ internalType: "contractIApp"
2942
+ }
2943
+ ],
2944
+ stateMutability: "nonpayable"
2945
+ },
2946
+ {
2947
+ type: "function",
2948
+ name: "createEmptyAppWithIsolatedBilling",
2949
+ inputs: [
2950
+ {
2951
+ name: "salt",
2952
+ type: "bytes32",
2953
+ internalType: "bytes32"
2954
+ }
2955
+ ],
2956
+ outputs: [
2957
+ {
2958
+ name: "app",
2959
+ type: "address",
2960
+ internalType: "contractIApp"
2961
+ }
2962
+ ],
2963
+ stateMutability: "nonpayable"
2964
+ },
2795
2965
  {
2796
2966
  type: "function",
2797
2967
  name: "domainSeparator",
@@ -2826,26 +2996,26 @@ var AppController_default = [
2826
2996
  },
2827
2997
  {
2828
2998
  type: "function",
2829
- name: "getBillingType",
2999
+ name: "getAppCreator",
2830
3000
  inputs: [
2831
3001
  {
2832
3002
  name: "app",
2833
3003
  type: "address",
2834
- internalType: "address"
3004
+ internalType: "contractIApp"
2835
3005
  }
2836
3006
  ],
2837
3007
  outputs: [
2838
3008
  {
2839
3009
  name: "",
2840
- type: "uint8",
2841
- internalType: "uint8"
3010
+ type: "address",
3011
+ internalType: "address"
2842
3012
  }
2843
3013
  ],
2844
3014
  stateMutability: "view"
2845
3015
  },
2846
3016
  {
2847
3017
  type: "function",
2848
- name: "getAppCreator",
3018
+ name: "getAppLatestReleaseBlockNumber",
2849
3019
  inputs: [
2850
3020
  {
2851
3021
  name: "app",
@@ -2856,15 +3026,15 @@ var AppController_default = [
2856
3026
  outputs: [
2857
3027
  {
2858
3028
  name: "",
2859
- type: "address",
2860
- internalType: "address"
3029
+ type: "uint32",
3030
+ internalType: "uint32"
2861
3031
  }
2862
3032
  ],
2863
3033
  stateMutability: "view"
2864
3034
  },
2865
3035
  {
2866
3036
  type: "function",
2867
- name: "getAppLatestReleaseBlockNumber",
3037
+ name: "getAppOperatorSetId",
2868
3038
  inputs: [
2869
3039
  {
2870
3040
  name: "app",
@@ -2883,7 +3053,7 @@ var AppController_default = [
2883
3053
  },
2884
3054
  {
2885
3055
  type: "function",
2886
- name: "getAppOperatorSetId",
3056
+ name: "getAppPendingReleaseBlockNumber",
2887
3057
  inputs: [
2888
3058
  {
2889
3059
  name: "app",
@@ -2960,6 +3130,11 @@ var AppController_default = [
2960
3130
  type: "uint32",
2961
3131
  internalType: "uint32"
2962
3132
  },
3133
+ {
3134
+ name: "pendingReleaseBlockNumber",
3135
+ type: "uint32",
3136
+ internalType: "uint32"
3137
+ },
2963
3138
  {
2964
3139
  name: "status",
2965
3140
  type: "uint8",
@@ -3016,6 +3191,11 @@ var AppController_default = [
3016
3191
  type: "uint32",
3017
3192
  internalType: "uint32"
3018
3193
  },
3194
+ {
3195
+ name: "pendingReleaseBlockNumber",
3196
+ type: "uint32",
3197
+ internalType: "uint32"
3198
+ },
3019
3199
  {
3020
3200
  name: "status",
3021
3201
  type: "uint8",
@@ -3072,6 +3252,11 @@ var AppController_default = [
3072
3252
  type: "uint32",
3073
3253
  internalType: "uint32"
3074
3254
  },
3255
+ {
3256
+ name: "pendingReleaseBlockNumber",
3257
+ type: "uint32",
3258
+ internalType: "uint32"
3259
+ },
3075
3260
  {
3076
3261
  name: "status",
3077
3262
  type: "uint8",
@@ -3128,6 +3313,11 @@ var AppController_default = [
3128
3313
  type: "uint32",
3129
3314
  internalType: "uint32"
3130
3315
  },
3316
+ {
3317
+ name: "pendingReleaseBlockNumber",
3318
+ type: "uint32",
3319
+ internalType: "uint32"
3320
+ },
3131
3321
  {
3132
3322
  name: "status",
3133
3323
  type: "uint8",
@@ -3138,6 +3328,44 @@ var AppController_default = [
3138
3328
  ],
3139
3329
  stateMutability: "view"
3140
3330
  },
3331
+ {
3332
+ type: "function",
3333
+ name: "getBillingAccount",
3334
+ inputs: [
3335
+ {
3336
+ name: "app",
3337
+ type: "address",
3338
+ internalType: "contractIApp"
3339
+ }
3340
+ ],
3341
+ outputs: [
3342
+ {
3343
+ name: "",
3344
+ type: "address",
3345
+ internalType: "address"
3346
+ }
3347
+ ],
3348
+ stateMutability: "view"
3349
+ },
3350
+ {
3351
+ type: "function",
3352
+ name: "getBillingType",
3353
+ inputs: [
3354
+ {
3355
+ name: "app",
3356
+ type: "address",
3357
+ internalType: "contractIApp"
3358
+ }
3359
+ ],
3360
+ outputs: [
3361
+ {
3362
+ name: "",
3363
+ type: "uint8",
3364
+ internalType: "enumIAppController.BillingType"
3365
+ }
3366
+ ],
3367
+ stateMutability: "view"
3368
+ },
3141
3369
  {
3142
3370
  type: "function",
3143
3371
  name: "getMaxActiveAppsPerUser",
@@ -3393,6 +3621,62 @@ var AppController_default = [
3393
3621
  name: "encryptedEnv",
3394
3622
  type: "bytes",
3395
3623
  internalType: "bytes"
3624
+ },
3625
+ {
3626
+ name: "containerPolicy",
3627
+ type: "tuple",
3628
+ internalType: "structIAppController.ContainerPolicy",
3629
+ components: [
3630
+ {
3631
+ name: "args",
3632
+ type: "string[]",
3633
+ internalType: "string[]"
3634
+ },
3635
+ {
3636
+ name: "cmdOverride",
3637
+ type: "string[]",
3638
+ internalType: "string[]"
3639
+ },
3640
+ {
3641
+ name: "env",
3642
+ type: "tuple[]",
3643
+ internalType: "structIAppController.EnvVar[]",
3644
+ components: [
3645
+ {
3646
+ name: "key",
3647
+ type: "string",
3648
+ internalType: "string"
3649
+ },
3650
+ {
3651
+ name: "value",
3652
+ type: "string",
3653
+ internalType: "string"
3654
+ }
3655
+ ]
3656
+ },
3657
+ {
3658
+ name: "envOverride",
3659
+ type: "tuple[]",
3660
+ internalType: "structIAppController.EnvVar[]",
3661
+ components: [
3662
+ {
3663
+ name: "key",
3664
+ type: "string",
3665
+ internalType: "string"
3666
+ },
3667
+ {
3668
+ name: "value",
3669
+ type: "string",
3670
+ internalType: "string"
3671
+ }
3672
+ ]
3673
+ },
3674
+ {
3675
+ name: "restartPolicy",
3676
+ type: "string",
3677
+ internalType: "string"
3678
+ }
3679
+ ]
3396
3680
  }
3397
3681
  ]
3398
3682
  }
@@ -3588,30 +3872,1298 @@ var AppController_default = [
3588
3872
  name: "encryptedEnv",
3589
3873
  type: "bytes",
3590
3874
  internalType: "bytes"
3591
- }
3592
- ]
3593
- }
3594
- ],
3595
- anonymous: false
3596
- },
3597
- {
3598
- type: "event",
3599
- name: "GlobalMaxActiveAppsSet",
3600
- inputs: [
3601
- {
3602
- name: "limit",
3603
- type: "uint32",
3604
- indexed: false,
3605
- internalType: "uint32"
3606
- }
3607
- ],
3608
- anonymous: false
3609
- },
3610
- {
3611
- type: "event",
3612
- name: "Initialized",
3613
- inputs: [
3614
- {
3875
+ },
3876
+ {
3877
+ name: "containerPolicy",
3878
+ type: "tuple",
3879
+ internalType: "structIAppController.ContainerPolicy",
3880
+ components: [
3881
+ {
3882
+ name: "args",
3883
+ type: "string[]",
3884
+ internalType: "string[]"
3885
+ },
3886
+ {
3887
+ name: "cmdOverride",
3888
+ type: "string[]",
3889
+ internalType: "string[]"
3890
+ },
3891
+ {
3892
+ name: "env",
3893
+ type: "tuple[]",
3894
+ internalType: "structIAppController.EnvVar[]",
3895
+ components: [
3896
+ {
3897
+ name: "key",
3898
+ type: "string",
3899
+ internalType: "string"
3900
+ },
3901
+ {
3902
+ name: "value",
3903
+ type: "string",
3904
+ internalType: "string"
3905
+ }
3906
+ ]
3907
+ },
3908
+ {
3909
+ name: "envOverride",
3910
+ type: "tuple[]",
3911
+ internalType: "structIAppController.EnvVar[]",
3912
+ components: [
3913
+ {
3914
+ name: "key",
3915
+ type: "string",
3916
+ internalType: "string"
3917
+ },
3918
+ {
3919
+ name: "value",
3920
+ type: "string",
3921
+ internalType: "string"
3922
+ }
3923
+ ]
3924
+ },
3925
+ {
3926
+ name: "restartPolicy",
3927
+ type: "string",
3928
+ internalType: "string"
3929
+ }
3930
+ ]
3931
+ }
3932
+ ]
3933
+ }
3934
+ ],
3935
+ anonymous: false
3936
+ },
3937
+ {
3938
+ type: "event",
3939
+ name: "GlobalMaxActiveAppsSet",
3940
+ inputs: [
3941
+ {
3942
+ name: "limit",
3943
+ type: "uint32",
3944
+ indexed: false,
3945
+ internalType: "uint32"
3946
+ }
3947
+ ],
3948
+ anonymous: false
3949
+ },
3950
+ {
3951
+ type: "event",
3952
+ name: "Initialized",
3953
+ inputs: [
3954
+ {
3955
+ name: "version",
3956
+ type: "uint8",
3957
+ indexed: false,
3958
+ internalType: "uint8"
3959
+ }
3960
+ ],
3961
+ anonymous: false
3962
+ },
3963
+ {
3964
+ type: "event",
3965
+ name: "MaxActiveAppsSet",
3966
+ inputs: [
3967
+ {
3968
+ name: "user",
3969
+ type: "address",
3970
+ indexed: true,
3971
+ internalType: "address"
3972
+ },
3973
+ {
3974
+ name: "limit",
3975
+ type: "uint32",
3976
+ indexed: false,
3977
+ internalType: "uint32"
3978
+ }
3979
+ ],
3980
+ anonymous: false
3981
+ },
3982
+ {
3983
+ type: "event",
3984
+ name: "UpgradeConfirmed",
3985
+ inputs: [
3986
+ {
3987
+ name: "app",
3988
+ type: "address",
3989
+ indexed: true,
3990
+ internalType: "contractIApp"
3991
+ },
3992
+ {
3993
+ name: "pendingReleaseBlockNumber",
3994
+ type: "uint32",
3995
+ indexed: false,
3996
+ internalType: "uint32"
3997
+ }
3998
+ ],
3999
+ anonymous: false
4000
+ },
4001
+ {
4002
+ type: "error",
4003
+ name: "AccountHasActiveApps",
4004
+ inputs: []
4005
+ },
4006
+ {
4007
+ type: "error",
4008
+ name: "AppAlreadyExists",
4009
+ inputs: []
4010
+ },
4011
+ {
4012
+ type: "error",
4013
+ name: "AppDoesNotExist",
4014
+ inputs: []
4015
+ },
4016
+ {
4017
+ type: "error",
4018
+ name: "GlobalMaxActiveAppsExceeded",
4019
+ inputs: []
4020
+ },
4021
+ {
4022
+ type: "error",
4023
+ name: "InvalidAppStatus",
4024
+ inputs: []
4025
+ },
4026
+ {
4027
+ type: "error",
4028
+ name: "InvalidPermissions",
4029
+ inputs: []
4030
+ },
4031
+ {
4032
+ type: "error",
4033
+ name: "InvalidReleaseMetadataURI",
4034
+ inputs: []
4035
+ },
4036
+ {
4037
+ type: "error",
4038
+ name: "InvalidShortString",
4039
+ inputs: []
4040
+ },
4041
+ {
4042
+ type: "error",
4043
+ name: "InvalidSignature",
4044
+ inputs: []
4045
+ },
4046
+ {
4047
+ type: "error",
4048
+ name: "MaxActiveAppsExceeded",
4049
+ inputs: []
4050
+ },
4051
+ {
4052
+ type: "error",
4053
+ name: "MoreThanOneArtifact",
4054
+ inputs: []
4055
+ },
4056
+ {
4057
+ type: "error",
4058
+ name: "NoPendingUpgrade",
4059
+ inputs: []
4060
+ },
4061
+ {
4062
+ type: "error",
4063
+ name: "SignatureExpired",
4064
+ inputs: []
4065
+ },
4066
+ {
4067
+ type: "error",
4068
+ name: "StringTooLong",
4069
+ inputs: [
4070
+ {
4071
+ name: "str",
4072
+ type: "string",
4073
+ internalType: "string"
4074
+ }
4075
+ ]
4076
+ }
4077
+ ];
4078
+
4079
+ // src/client/common/abis/AppController.v1_4.json
4080
+ var AppController_v1_4_default = [
4081
+ {
4082
+ type: "constructor",
4083
+ inputs: [
4084
+ {
4085
+ name: "_version",
4086
+ type: "string",
4087
+ internalType: "string"
4088
+ },
4089
+ {
4090
+ name: "_permissionController",
4091
+ type: "address",
4092
+ internalType: "contractIPermissionController"
4093
+ },
4094
+ {
4095
+ name: "_releaseManager",
4096
+ type: "address",
4097
+ internalType: "contractIReleaseManager"
4098
+ },
4099
+ {
4100
+ name: "_computeAVSRegistrar",
4101
+ type: "address",
4102
+ internalType: "contractIComputeAVSRegistrar"
4103
+ },
4104
+ {
4105
+ name: "_computeOperator",
4106
+ type: "address",
4107
+ internalType: "contractIComputeOperator"
4108
+ },
4109
+ {
4110
+ name: "_appBeacon",
4111
+ type: "address",
4112
+ internalType: "contractIBeacon"
4113
+ }
4114
+ ],
4115
+ stateMutability: "nonpayable"
4116
+ },
4117
+ {
4118
+ type: "function",
4119
+ name: "API_PERMISSION_TYPEHASH",
4120
+ inputs: [],
4121
+ outputs: [
4122
+ {
4123
+ name: "",
4124
+ type: "bytes32",
4125
+ internalType: "bytes32"
4126
+ }
4127
+ ],
4128
+ stateMutability: "view"
4129
+ },
4130
+ {
4131
+ type: "function",
4132
+ name: "appBeacon",
4133
+ inputs: [],
4134
+ outputs: [
4135
+ {
4136
+ name: "",
4137
+ type: "address",
4138
+ internalType: "contractIBeacon"
4139
+ }
4140
+ ],
4141
+ stateMutability: "view"
4142
+ },
4143
+ {
4144
+ type: "function",
4145
+ name: "calculateApiPermissionDigestHash",
4146
+ inputs: [
4147
+ {
4148
+ name: "permission",
4149
+ type: "bytes4",
4150
+ internalType: "bytes4"
4151
+ },
4152
+ {
4153
+ name: "expiry",
4154
+ type: "uint256",
4155
+ internalType: "uint256"
4156
+ }
4157
+ ],
4158
+ outputs: [
4159
+ {
4160
+ name: "",
4161
+ type: "bytes32",
4162
+ internalType: "bytes32"
4163
+ }
4164
+ ],
4165
+ stateMutability: "view"
4166
+ },
4167
+ {
4168
+ type: "function",
4169
+ name: "calculateAppId",
4170
+ inputs: [
4171
+ {
4172
+ name: "deployer",
4173
+ type: "address",
4174
+ internalType: "address"
4175
+ },
4176
+ {
4177
+ name: "salt",
4178
+ type: "bytes32",
4179
+ internalType: "bytes32"
4180
+ }
4181
+ ],
4182
+ outputs: [
4183
+ {
4184
+ name: "",
4185
+ type: "address",
4186
+ internalType: "contractIApp"
4187
+ }
4188
+ ],
4189
+ stateMutability: "view"
4190
+ },
4191
+ {
4192
+ type: "function",
4193
+ name: "computeAVSRegistrar",
4194
+ inputs: [],
4195
+ outputs: [
4196
+ {
4197
+ name: "",
4198
+ type: "address",
4199
+ internalType: "contractIComputeAVSRegistrar"
4200
+ }
4201
+ ],
4202
+ stateMutability: "view"
4203
+ },
4204
+ {
4205
+ type: "function",
4206
+ name: "computeOperator",
4207
+ inputs: [],
4208
+ outputs: [
4209
+ {
4210
+ name: "",
4211
+ type: "address",
4212
+ internalType: "contractIComputeOperator"
4213
+ }
4214
+ ],
4215
+ stateMutability: "view"
4216
+ },
4217
+ {
4218
+ type: "function",
4219
+ name: "createApp",
4220
+ inputs: [
4221
+ {
4222
+ name: "salt",
4223
+ type: "bytes32",
4224
+ internalType: "bytes32"
4225
+ },
4226
+ {
4227
+ name: "release",
4228
+ type: "tuple",
4229
+ internalType: "structIAppController.Release",
4230
+ components: [
4231
+ {
4232
+ name: "rmsRelease",
4233
+ type: "tuple",
4234
+ internalType: "structIReleaseManagerTypes.Release",
4235
+ components: [
4236
+ {
4237
+ name: "artifacts",
4238
+ type: "tuple[]",
4239
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4240
+ components: [
4241
+ {
4242
+ name: "digest",
4243
+ type: "bytes32",
4244
+ internalType: "bytes32"
4245
+ },
4246
+ {
4247
+ name: "registry",
4248
+ type: "string",
4249
+ internalType: "string"
4250
+ }
4251
+ ]
4252
+ },
4253
+ {
4254
+ name: "upgradeByTime",
4255
+ type: "uint32",
4256
+ internalType: "uint32"
4257
+ }
4258
+ ]
4259
+ },
4260
+ {
4261
+ name: "publicEnv",
4262
+ type: "bytes",
4263
+ internalType: "bytes"
4264
+ },
4265
+ {
4266
+ name: "encryptedEnv",
4267
+ type: "bytes",
4268
+ internalType: "bytes"
4269
+ }
4270
+ ]
4271
+ }
4272
+ ],
4273
+ outputs: [
4274
+ {
4275
+ name: "app",
4276
+ type: "address",
4277
+ internalType: "contractIApp"
4278
+ }
4279
+ ],
4280
+ stateMutability: "nonpayable"
4281
+ },
4282
+ {
4283
+ type: "function",
4284
+ name: "createAppWithIsolatedBilling",
4285
+ inputs: [
4286
+ {
4287
+ name: "salt",
4288
+ type: "bytes32",
4289
+ internalType: "bytes32"
4290
+ },
4291
+ {
4292
+ name: "release",
4293
+ type: "tuple",
4294
+ internalType: "structIAppController.Release",
4295
+ components: [
4296
+ {
4297
+ name: "rmsRelease",
4298
+ type: "tuple",
4299
+ internalType: "structIReleaseManagerTypes.Release",
4300
+ components: [
4301
+ {
4302
+ name: "artifacts",
4303
+ type: "tuple[]",
4304
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4305
+ components: [
4306
+ {
4307
+ name: "digest",
4308
+ type: "bytes32",
4309
+ internalType: "bytes32"
4310
+ },
4311
+ {
4312
+ name: "registry",
4313
+ type: "string",
4314
+ internalType: "string"
4315
+ }
4316
+ ]
4317
+ },
4318
+ {
4319
+ name: "upgradeByTime",
4320
+ type: "uint32",
4321
+ internalType: "uint32"
4322
+ }
4323
+ ]
4324
+ },
4325
+ {
4326
+ name: "publicEnv",
4327
+ type: "bytes",
4328
+ internalType: "bytes"
4329
+ },
4330
+ {
4331
+ name: "encryptedEnv",
4332
+ type: "bytes",
4333
+ internalType: "bytes"
4334
+ }
4335
+ ]
4336
+ }
4337
+ ],
4338
+ outputs: [
4339
+ {
4340
+ name: "app",
4341
+ type: "address",
4342
+ internalType: "contractIApp"
4343
+ }
4344
+ ],
4345
+ stateMutability: "nonpayable"
4346
+ },
4347
+ {
4348
+ type: "function",
4349
+ name: "domainSeparator",
4350
+ inputs: [],
4351
+ outputs: [
4352
+ {
4353
+ name: "",
4354
+ type: "bytes32",
4355
+ internalType: "bytes32"
4356
+ }
4357
+ ],
4358
+ stateMutability: "view"
4359
+ },
4360
+ {
4361
+ type: "function",
4362
+ name: "getActiveAppCount",
4363
+ inputs: [
4364
+ {
4365
+ name: "user",
4366
+ type: "address",
4367
+ internalType: "address"
4368
+ }
4369
+ ],
4370
+ outputs: [
4371
+ {
4372
+ name: "",
4373
+ type: "uint32",
4374
+ internalType: "uint32"
4375
+ }
4376
+ ],
4377
+ stateMutability: "view"
4378
+ },
4379
+ {
4380
+ type: "function",
4381
+ name: "getBillingType",
4382
+ inputs: [
4383
+ {
4384
+ name: "app",
4385
+ type: "address",
4386
+ internalType: "address"
4387
+ }
4388
+ ],
4389
+ outputs: [
4390
+ {
4391
+ name: "",
4392
+ type: "uint8",
4393
+ internalType: "uint8"
4394
+ }
4395
+ ],
4396
+ stateMutability: "view"
4397
+ },
4398
+ {
4399
+ type: "function",
4400
+ name: "getAppCreator",
4401
+ inputs: [
4402
+ {
4403
+ name: "app",
4404
+ type: "address",
4405
+ internalType: "contractIApp"
4406
+ }
4407
+ ],
4408
+ outputs: [
4409
+ {
4410
+ name: "",
4411
+ type: "address",
4412
+ internalType: "address"
4413
+ }
4414
+ ],
4415
+ stateMutability: "view"
4416
+ },
4417
+ {
4418
+ type: "function",
4419
+ name: "getAppLatestReleaseBlockNumber",
4420
+ inputs: [
4421
+ {
4422
+ name: "app",
4423
+ type: "address",
4424
+ internalType: "contractIApp"
4425
+ }
4426
+ ],
4427
+ outputs: [
4428
+ {
4429
+ name: "",
4430
+ type: "uint32",
4431
+ internalType: "uint32"
4432
+ }
4433
+ ],
4434
+ stateMutability: "view"
4435
+ },
4436
+ {
4437
+ type: "function",
4438
+ name: "getAppOperatorSetId",
4439
+ inputs: [
4440
+ {
4441
+ name: "app",
4442
+ type: "address",
4443
+ internalType: "contractIApp"
4444
+ }
4445
+ ],
4446
+ outputs: [
4447
+ {
4448
+ name: "",
4449
+ type: "uint32",
4450
+ internalType: "uint32"
4451
+ }
4452
+ ],
4453
+ stateMutability: "view"
4454
+ },
4455
+ {
4456
+ type: "function",
4457
+ name: "getAppStatus",
4458
+ inputs: [
4459
+ {
4460
+ name: "app",
4461
+ type: "address",
4462
+ internalType: "contractIApp"
4463
+ }
4464
+ ],
4465
+ outputs: [
4466
+ {
4467
+ name: "",
4468
+ type: "uint8",
4469
+ internalType: "enumIAppController.AppStatus"
4470
+ }
4471
+ ],
4472
+ stateMutability: "view"
4473
+ },
4474
+ {
4475
+ type: "function",
4476
+ name: "getApps",
4477
+ inputs: [
4478
+ {
4479
+ name: "offset",
4480
+ type: "uint256",
4481
+ internalType: "uint256"
4482
+ },
4483
+ {
4484
+ name: "limit",
4485
+ type: "uint256",
4486
+ internalType: "uint256"
4487
+ }
4488
+ ],
4489
+ outputs: [
4490
+ {
4491
+ name: "apps",
4492
+ type: "address[]",
4493
+ internalType: "contractIApp[]"
4494
+ },
4495
+ {
4496
+ name: "appConfigsMem",
4497
+ type: "tuple[]",
4498
+ internalType: "structIAppController.AppConfig[]",
4499
+ components: [
4500
+ {
4501
+ name: "creator",
4502
+ type: "address",
4503
+ internalType: "address"
4504
+ },
4505
+ {
4506
+ name: "operatorSetId",
4507
+ type: "uint32",
4508
+ internalType: "uint32"
4509
+ },
4510
+ {
4511
+ name: "latestReleaseBlockNumber",
4512
+ type: "uint32",
4513
+ internalType: "uint32"
4514
+ },
4515
+ {
4516
+ name: "status",
4517
+ type: "uint8",
4518
+ internalType: "enumIAppController.AppStatus"
4519
+ }
4520
+ ]
4521
+ }
4522
+ ],
4523
+ stateMutability: "view"
4524
+ },
4525
+ {
4526
+ type: "function",
4527
+ name: "getAppsByBillingAccount",
4528
+ inputs: [
4529
+ {
4530
+ name: "account",
4531
+ type: "address",
4532
+ internalType: "address"
4533
+ },
4534
+ {
4535
+ name: "offset",
4536
+ type: "uint256",
4537
+ internalType: "uint256"
4538
+ },
4539
+ {
4540
+ name: "limit",
4541
+ type: "uint256",
4542
+ internalType: "uint256"
4543
+ }
4544
+ ],
4545
+ outputs: [
4546
+ {
4547
+ name: "apps",
4548
+ type: "address[]",
4549
+ internalType: "contractIApp[]"
4550
+ },
4551
+ {
4552
+ name: "appConfigsMem",
4553
+ type: "tuple[]",
4554
+ internalType: "structIAppController.AppConfig[]",
4555
+ components: [
4556
+ {
4557
+ name: "creator",
4558
+ type: "address",
4559
+ internalType: "address"
4560
+ },
4561
+ {
4562
+ name: "operatorSetId",
4563
+ type: "uint32",
4564
+ internalType: "uint32"
4565
+ },
4566
+ {
4567
+ name: "latestReleaseBlockNumber",
4568
+ type: "uint32",
4569
+ internalType: "uint32"
4570
+ },
4571
+ {
4572
+ name: "status",
4573
+ type: "uint8",
4574
+ internalType: "enumIAppController.AppStatus"
4575
+ }
4576
+ ]
4577
+ }
4578
+ ],
4579
+ stateMutability: "view"
4580
+ },
4581
+ {
4582
+ type: "function",
4583
+ name: "getAppsByCreator",
4584
+ inputs: [
4585
+ {
4586
+ name: "creator",
4587
+ type: "address",
4588
+ internalType: "address"
4589
+ },
4590
+ {
4591
+ name: "offset",
4592
+ type: "uint256",
4593
+ internalType: "uint256"
4594
+ },
4595
+ {
4596
+ name: "limit",
4597
+ type: "uint256",
4598
+ internalType: "uint256"
4599
+ }
4600
+ ],
4601
+ outputs: [
4602
+ {
4603
+ name: "apps",
4604
+ type: "address[]",
4605
+ internalType: "contractIApp[]"
4606
+ },
4607
+ {
4608
+ name: "appConfigsMem",
4609
+ type: "tuple[]",
4610
+ internalType: "structIAppController.AppConfig[]",
4611
+ components: [
4612
+ {
4613
+ name: "creator",
4614
+ type: "address",
4615
+ internalType: "address"
4616
+ },
4617
+ {
4618
+ name: "operatorSetId",
4619
+ type: "uint32",
4620
+ internalType: "uint32"
4621
+ },
4622
+ {
4623
+ name: "latestReleaseBlockNumber",
4624
+ type: "uint32",
4625
+ internalType: "uint32"
4626
+ },
4627
+ {
4628
+ name: "status",
4629
+ type: "uint8",
4630
+ internalType: "enumIAppController.AppStatus"
4631
+ }
4632
+ ]
4633
+ }
4634
+ ],
4635
+ stateMutability: "view"
4636
+ },
4637
+ {
4638
+ type: "function",
4639
+ name: "getAppsByDeveloper",
4640
+ inputs: [
4641
+ {
4642
+ name: "developer",
4643
+ type: "address",
4644
+ internalType: "address"
4645
+ },
4646
+ {
4647
+ name: "offset",
4648
+ type: "uint256",
4649
+ internalType: "uint256"
4650
+ },
4651
+ {
4652
+ name: "limit",
4653
+ type: "uint256",
4654
+ internalType: "uint256"
4655
+ }
4656
+ ],
4657
+ outputs: [
4658
+ {
4659
+ name: "apps",
4660
+ type: "address[]",
4661
+ internalType: "contractIApp[]"
4662
+ },
4663
+ {
4664
+ name: "appConfigsMem",
4665
+ type: "tuple[]",
4666
+ internalType: "structIAppController.AppConfig[]",
4667
+ components: [
4668
+ {
4669
+ name: "creator",
4670
+ type: "address",
4671
+ internalType: "address"
4672
+ },
4673
+ {
4674
+ name: "operatorSetId",
4675
+ type: "uint32",
4676
+ internalType: "uint32"
4677
+ },
4678
+ {
4679
+ name: "latestReleaseBlockNumber",
4680
+ type: "uint32",
4681
+ internalType: "uint32"
4682
+ },
4683
+ {
4684
+ name: "status",
4685
+ type: "uint8",
4686
+ internalType: "enumIAppController.AppStatus"
4687
+ }
4688
+ ]
4689
+ }
4690
+ ],
4691
+ stateMutability: "view"
4692
+ },
4693
+ {
4694
+ type: "function",
4695
+ name: "getMaxActiveAppsPerUser",
4696
+ inputs: [
4697
+ {
4698
+ name: "user",
4699
+ type: "address",
4700
+ internalType: "address"
4701
+ }
4702
+ ],
4703
+ outputs: [
4704
+ {
4705
+ name: "",
4706
+ type: "uint32",
4707
+ internalType: "uint32"
4708
+ }
4709
+ ],
4710
+ stateMutability: "view"
4711
+ },
4712
+ {
4713
+ type: "function",
4714
+ name: "globalActiveAppCount",
4715
+ inputs: [],
4716
+ outputs: [
4717
+ {
4718
+ name: "",
4719
+ type: "uint32",
4720
+ internalType: "uint32"
4721
+ }
4722
+ ],
4723
+ stateMutability: "view"
4724
+ },
4725
+ {
4726
+ type: "function",
4727
+ name: "initialize",
4728
+ inputs: [
4729
+ {
4730
+ name: "admin",
4731
+ type: "address",
4732
+ internalType: "address"
4733
+ }
4734
+ ],
4735
+ outputs: [],
4736
+ stateMutability: "nonpayable"
4737
+ },
4738
+ {
4739
+ type: "function",
4740
+ name: "maxGlobalActiveApps",
4741
+ inputs: [],
4742
+ outputs: [
4743
+ {
4744
+ name: "",
4745
+ type: "uint32",
4746
+ internalType: "uint32"
4747
+ }
4748
+ ],
4749
+ stateMutability: "view"
4750
+ },
4751
+ {
4752
+ type: "function",
4753
+ name: "permissionController",
4754
+ inputs: [],
4755
+ outputs: [
4756
+ {
4757
+ name: "",
4758
+ type: "address",
4759
+ internalType: "contractIPermissionController"
4760
+ }
4761
+ ],
4762
+ stateMutability: "view"
4763
+ },
4764
+ {
4765
+ type: "function",
4766
+ name: "releaseManager",
4767
+ inputs: [],
4768
+ outputs: [
4769
+ {
4770
+ name: "",
4771
+ type: "address",
4772
+ internalType: "contractIReleaseManager"
4773
+ }
4774
+ ],
4775
+ stateMutability: "view"
4776
+ },
4777
+ {
4778
+ type: "function",
4779
+ name: "setMaxActiveAppsPerUser",
4780
+ inputs: [
4781
+ {
4782
+ name: "user",
4783
+ type: "address",
4784
+ internalType: "address"
4785
+ },
4786
+ {
4787
+ name: "limit",
4788
+ type: "uint32",
4789
+ internalType: "uint32"
4790
+ }
4791
+ ],
4792
+ outputs: [],
4793
+ stateMutability: "nonpayable"
4794
+ },
4795
+ {
4796
+ type: "function",
4797
+ name: "setMaxGlobalActiveApps",
4798
+ inputs: [
4799
+ {
4800
+ name: "limit",
4801
+ type: "uint32",
4802
+ internalType: "uint32"
4803
+ }
4804
+ ],
4805
+ outputs: [],
4806
+ stateMutability: "nonpayable"
4807
+ },
4808
+ {
4809
+ type: "function",
4810
+ name: "startApp",
4811
+ inputs: [
4812
+ {
4813
+ name: "app",
4814
+ type: "address",
4815
+ internalType: "contractIApp"
4816
+ }
4817
+ ],
4818
+ outputs: [],
4819
+ stateMutability: "nonpayable"
4820
+ },
4821
+ {
4822
+ type: "function",
4823
+ name: "stopApp",
4824
+ inputs: [
4825
+ {
4826
+ name: "app",
4827
+ type: "address",
4828
+ internalType: "contractIApp"
4829
+ }
4830
+ ],
4831
+ outputs: [],
4832
+ stateMutability: "nonpayable"
4833
+ },
4834
+ {
4835
+ type: "function",
4836
+ name: "suspend",
4837
+ inputs: [
4838
+ {
4839
+ name: "account",
4840
+ type: "address",
4841
+ internalType: "address"
4842
+ },
4843
+ {
4844
+ name: "apps",
4845
+ type: "address[]",
4846
+ internalType: "contractIApp[]"
4847
+ }
4848
+ ],
4849
+ outputs: [],
4850
+ stateMutability: "nonpayable"
4851
+ },
4852
+ {
4853
+ type: "function",
4854
+ name: "terminateApp",
4855
+ inputs: [
4856
+ {
4857
+ name: "app",
4858
+ type: "address",
4859
+ internalType: "contractIApp"
4860
+ }
4861
+ ],
4862
+ outputs: [],
4863
+ stateMutability: "nonpayable"
4864
+ },
4865
+ {
4866
+ type: "function",
4867
+ name: "terminateAppByAdmin",
4868
+ inputs: [
4869
+ {
4870
+ name: "app",
4871
+ type: "address",
4872
+ internalType: "contractIApp"
4873
+ }
4874
+ ],
4875
+ outputs: [],
4876
+ stateMutability: "nonpayable"
4877
+ },
4878
+ {
4879
+ type: "function",
4880
+ name: "updateAppMetadataURI",
4881
+ inputs: [
4882
+ {
4883
+ name: "app",
4884
+ type: "address",
4885
+ internalType: "contractIApp"
4886
+ },
4887
+ {
4888
+ name: "metadataURI",
4889
+ type: "string",
4890
+ internalType: "string"
4891
+ }
4892
+ ],
4893
+ outputs: [],
4894
+ stateMutability: "nonpayable"
4895
+ },
4896
+ {
4897
+ type: "function",
4898
+ name: "upgradeApp",
4899
+ inputs: [
4900
+ {
4901
+ name: "app",
4902
+ type: "address",
4903
+ internalType: "contractIApp"
4904
+ },
4905
+ {
4906
+ name: "release",
4907
+ type: "tuple",
4908
+ internalType: "structIAppController.Release",
4909
+ components: [
4910
+ {
4911
+ name: "rmsRelease",
4912
+ type: "tuple",
4913
+ internalType: "structIReleaseManagerTypes.Release",
4914
+ components: [
4915
+ {
4916
+ name: "artifacts",
4917
+ type: "tuple[]",
4918
+ internalType: "structIReleaseManagerTypes.Artifact[]",
4919
+ components: [
4920
+ {
4921
+ name: "digest",
4922
+ type: "bytes32",
4923
+ internalType: "bytes32"
4924
+ },
4925
+ {
4926
+ name: "registry",
4927
+ type: "string",
4928
+ internalType: "string"
4929
+ }
4930
+ ]
4931
+ },
4932
+ {
4933
+ name: "upgradeByTime",
4934
+ type: "uint32",
4935
+ internalType: "uint32"
4936
+ }
4937
+ ]
4938
+ },
4939
+ {
4940
+ name: "publicEnv",
4941
+ type: "bytes",
4942
+ internalType: "bytes"
4943
+ },
4944
+ {
4945
+ name: "encryptedEnv",
4946
+ type: "bytes",
4947
+ internalType: "bytes"
4948
+ }
4949
+ ]
4950
+ }
4951
+ ],
4952
+ outputs: [
4953
+ {
4954
+ name: "",
4955
+ type: "uint256",
4956
+ internalType: "uint256"
4957
+ }
4958
+ ],
4959
+ stateMutability: "nonpayable"
4960
+ },
4961
+ {
4962
+ type: "function",
4963
+ name: "version",
4964
+ inputs: [],
4965
+ outputs: [
4966
+ {
4967
+ name: "",
4968
+ type: "string",
4969
+ internalType: "string"
4970
+ }
4971
+ ],
4972
+ stateMutability: "view"
4973
+ },
4974
+ {
4975
+ type: "event",
4976
+ name: "AppCreated",
4977
+ inputs: [
4978
+ {
4979
+ name: "creator",
4980
+ type: "address",
4981
+ indexed: true,
4982
+ internalType: "address"
4983
+ },
4984
+ {
4985
+ name: "app",
4986
+ type: "address",
4987
+ indexed: true,
4988
+ internalType: "contractIApp"
4989
+ },
4990
+ {
4991
+ name: "operatorSetId",
4992
+ type: "uint32",
4993
+ indexed: false,
4994
+ internalType: "uint32"
4995
+ }
4996
+ ],
4997
+ anonymous: false
4998
+ },
4999
+ {
5000
+ type: "event",
5001
+ name: "AppMetadataURIUpdated",
5002
+ inputs: [
5003
+ {
5004
+ name: "app",
5005
+ type: "address",
5006
+ indexed: true,
5007
+ internalType: "contractIApp"
5008
+ },
5009
+ {
5010
+ name: "metadataURI",
5011
+ type: "string",
5012
+ indexed: false,
5013
+ internalType: "string"
5014
+ }
5015
+ ],
5016
+ anonymous: false
5017
+ },
5018
+ {
5019
+ type: "event",
5020
+ name: "AppStarted",
5021
+ inputs: [
5022
+ {
5023
+ name: "app",
5024
+ type: "address",
5025
+ indexed: true,
5026
+ internalType: "contractIApp"
5027
+ }
5028
+ ],
5029
+ anonymous: false
5030
+ },
5031
+ {
5032
+ type: "event",
5033
+ name: "AppStopped",
5034
+ inputs: [
5035
+ {
5036
+ name: "app",
5037
+ type: "address",
5038
+ indexed: true,
5039
+ internalType: "contractIApp"
5040
+ }
5041
+ ],
5042
+ anonymous: false
5043
+ },
5044
+ {
5045
+ type: "event",
5046
+ name: "AppSuspended",
5047
+ inputs: [
5048
+ {
5049
+ name: "app",
5050
+ type: "address",
5051
+ indexed: true,
5052
+ internalType: "contractIApp"
5053
+ }
5054
+ ],
5055
+ anonymous: false
5056
+ },
5057
+ {
5058
+ type: "event",
5059
+ name: "AppTerminated",
5060
+ inputs: [
5061
+ {
5062
+ name: "app",
5063
+ type: "address",
5064
+ indexed: true,
5065
+ internalType: "contractIApp"
5066
+ }
5067
+ ],
5068
+ anonymous: false
5069
+ },
5070
+ {
5071
+ type: "event",
5072
+ name: "AppTerminatedByAdmin",
5073
+ inputs: [
5074
+ {
5075
+ name: "app",
5076
+ type: "address",
5077
+ indexed: true,
5078
+ internalType: "contractIApp"
5079
+ }
5080
+ ],
5081
+ anonymous: false
5082
+ },
5083
+ {
5084
+ type: "event",
5085
+ name: "AppUpgraded",
5086
+ inputs: [
5087
+ {
5088
+ name: "app",
5089
+ type: "address",
5090
+ indexed: true,
5091
+ internalType: "contractIApp"
5092
+ },
5093
+ {
5094
+ name: "rmsReleaseId",
5095
+ type: "uint256",
5096
+ indexed: false,
5097
+ internalType: "uint256"
5098
+ },
5099
+ {
5100
+ name: "release",
5101
+ type: "tuple",
5102
+ indexed: false,
5103
+ internalType: "structIAppController.Release",
5104
+ components: [
5105
+ {
5106
+ name: "rmsRelease",
5107
+ type: "tuple",
5108
+ internalType: "structIReleaseManagerTypes.Release",
5109
+ components: [
5110
+ {
5111
+ name: "artifacts",
5112
+ type: "tuple[]",
5113
+ internalType: "structIReleaseManagerTypes.Artifact[]",
5114
+ components: [
5115
+ {
5116
+ name: "digest",
5117
+ type: "bytes32",
5118
+ internalType: "bytes32"
5119
+ },
5120
+ {
5121
+ name: "registry",
5122
+ type: "string",
5123
+ internalType: "string"
5124
+ }
5125
+ ]
5126
+ },
5127
+ {
5128
+ name: "upgradeByTime",
5129
+ type: "uint32",
5130
+ internalType: "uint32"
5131
+ }
5132
+ ]
5133
+ },
5134
+ {
5135
+ name: "publicEnv",
5136
+ type: "bytes",
5137
+ internalType: "bytes"
5138
+ },
5139
+ {
5140
+ name: "encryptedEnv",
5141
+ type: "bytes",
5142
+ internalType: "bytes"
5143
+ }
5144
+ ]
5145
+ }
5146
+ ],
5147
+ anonymous: false
5148
+ },
5149
+ {
5150
+ type: "event",
5151
+ name: "GlobalMaxActiveAppsSet",
5152
+ inputs: [
5153
+ {
5154
+ name: "limit",
5155
+ type: "uint32",
5156
+ indexed: false,
5157
+ internalType: "uint32"
5158
+ }
5159
+ ],
5160
+ anonymous: false
5161
+ },
5162
+ {
5163
+ type: "event",
5164
+ name: "Initialized",
5165
+ inputs: [
5166
+ {
3615
5167
  name: "version",
3616
5168
  type: "uint8",
3617
5169
  indexed: false,
@@ -4209,6 +5761,38 @@ var PermissionController_default = [
4209
5761
  ];
4210
5762
 
4211
5763
  // src/client/common/contract/caller.ts
5764
+ function appControllerAbiFor(environmentConfig) {
5765
+ return environmentConfig.releaseAbiVersion === "v1.4" ? AppController_v1_4_default : AppController_default;
5766
+ }
5767
+ function supportsContainerPolicy(environmentConfig) {
5768
+ return environmentConfig.releaseAbiVersion !== "v1.4";
5769
+ }
5770
+ function containerPolicyForViem(policy = EMPTY_CONTAINER_POLICY) {
5771
+ return {
5772
+ args: policy.args,
5773
+ cmdOverride: policy.cmdOverride,
5774
+ env: policy.env.map((e) => ({ key: e.key, value: e.value })),
5775
+ envOverride: policy.envOverride.map((e) => ({ key: e.key, value: e.value })),
5776
+ restartPolicy: policy.restartPolicy
5777
+ };
5778
+ }
5779
+ function releaseForViem(release, environmentConfig) {
5780
+ const base = {
5781
+ rmsRelease: {
5782
+ artifacts: release.rmsRelease.artifacts.map((artifact) => ({
5783
+ digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
5784
+ registry: artifact.registry
5785
+ })),
5786
+ upgradeByTime: release.rmsRelease.upgradeByTime
5787
+ },
5788
+ publicEnv: bytesToHex(release.publicEnv),
5789
+ encryptedEnv: bytesToHex(release.encryptedEnv)
5790
+ };
5791
+ if (!supportsContainerPolicy(environmentConfig)) {
5792
+ return base;
5793
+ }
5794
+ return { ...base, containerPolicy: containerPolicyForViem(release.containerPolicy) };
5795
+ }
4212
5796
  function formatETH(wei) {
4213
5797
  const eth = Number(wei) / 1e18;
4214
5798
  const costStr = eth.toFixed(6);
@@ -4246,7 +5830,7 @@ async function calculateAppID(options) {
4246
5830
  const saltHex = `0x${paddedSaltHex}`;
4247
5831
  const appID = await publicClient.readContract({
4248
5832
  address: environmentConfig.appControllerAddress,
4249
- abi: AppController_default,
5833
+ abi: appControllerAbiFor(environmentConfig),
4250
5834
  functionName: "calculateAppId",
4251
5835
  args: [ownerAddress, saltHex]
4252
5836
  });
@@ -4270,22 +5854,12 @@ async function prepareDeployBatch(options, logger = noopLogger) {
4270
5854
  const saltHexString = bytesToHex(salt).slice(2);
4271
5855
  const paddedSaltHex = saltHexString.padStart(64, "0");
4272
5856
  const saltHex = `0x${paddedSaltHex}`;
4273
- const releaseForViem = {
4274
- rmsRelease: {
4275
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4276
- digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
4277
- registry: artifact.registry
4278
- })),
4279
- upgradeByTime: release.rmsRelease.upgradeByTime
4280
- },
4281
- publicEnv: bytesToHex(release.publicEnv),
4282
- encryptedEnv: bytesToHex(release.encryptedEnv)
4283
- };
5857
+ const release_ = releaseForViem(release, environmentConfig);
4284
5858
  const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
4285
5859
  const createData = encodeFunctionData2({
4286
- abi: AppController_default,
5860
+ abi: appControllerAbiFor(environmentConfig),
4287
5861
  functionName,
4288
- args: [saltHex, releaseForViem]
5862
+ args: [saltHex, release_]
4289
5863
  });
4290
5864
  const acceptAdminData = encodeFunctionData2({
4291
5865
  abi: PermissionController_default,
@@ -4373,21 +5947,11 @@ async function prepareUpgradeBatch(options) {
4373
5947
  publicLogs,
4374
5948
  needsPermissionChange
4375
5949
  } = options;
4376
- const releaseForViem = {
4377
- rmsRelease: {
4378
- artifacts: release.rmsRelease.artifacts.map((artifact) => ({
4379
- digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
4380
- registry: artifact.registry
4381
- })),
4382
- upgradeByTime: release.rmsRelease.upgradeByTime
4383
- },
4384
- publicEnv: bytesToHex(release.publicEnv),
4385
- encryptedEnv: bytesToHex(release.encryptedEnv)
4386
- };
5950
+ const release_ = releaseForViem(release, environmentConfig);
4387
5951
  const upgradeData = encodeFunctionData2({
4388
- abi: AppController_default,
5952
+ abi: appControllerAbiFor(environmentConfig),
4389
5953
  functionName: "upgradeApp",
4390
- args: [appID, releaseForViem]
5954
+ args: [appID, release_]
4391
5955
  });
4392
5956
  const executions = [
4393
5957
  {
@@ -4521,7 +6085,7 @@ ${pendingMessage}`);
4521
6085
  if (callError.data) {
4522
6086
  try {
4523
6087
  const decoded = decodeErrorResult2({
4524
- abi: AppController_default,
6088
+ abi: appControllerAbiFor(environmentConfig),
4525
6089
  data: callError.data
4526
6090
  });
4527
6091
  const formattedError = formatAppControllerError(decoded);
@@ -4574,7 +6138,7 @@ function formatAppControllerError(decoded) {
4574
6138
  async function getActiveAppCount(publicClient, environmentConfig, user) {
4575
6139
  const count = await publicClient.readContract({
4576
6140
  address: environmentConfig.appControllerAddress,
4577
- abi: AppController_default,
6141
+ abi: appControllerAbiFor(environmentConfig),
4578
6142
  functionName: "getActiveAppCount",
4579
6143
  args: [user]
4580
6144
  });
@@ -4583,7 +6147,7 @@ async function getActiveAppCount(publicClient, environmentConfig, user) {
4583
6147
  async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
4584
6148
  const quota = await publicClient.readContract({
4585
6149
  address: environmentConfig.appControllerAddress,
4586
- abi: AppController_default,
6150
+ abi: appControllerAbiFor(environmentConfig),
4587
6151
  functionName: "getMaxActiveAppsPerUser",
4588
6152
  args: [user]
4589
6153
  });
@@ -4592,7 +6156,7 @@ async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
4592
6156
  async function getAppsByDeveloper(publicClient, environmentConfig, developer, offset, limit) {
4593
6157
  const result = await publicClient.readContract({
4594
6158
  address: environmentConfig.appControllerAddress,
4595
- abi: AppController_default,
6159
+ abi: appControllerAbiFor(environmentConfig),
4596
6160
  functionName: "getAppsByDeveloper",
4597
6161
  args: [developer, offset, limit]
4598
6162
  });
@@ -4604,7 +6168,7 @@ async function getAppsByDeveloper(publicClient, environmentConfig, developer, of
4604
6168
  async function getBillingType(publicClient, environmentConfig, app) {
4605
6169
  const result = await publicClient.readContract({
4606
6170
  address: environmentConfig.appControllerAddress,
4607
- abi: AppController_default,
6171
+ abi: appControllerAbiFor(environmentConfig),
4608
6172
  functionName: "getBillingType",
4609
6173
  args: [app]
4610
6174
  });
@@ -4613,7 +6177,7 @@ async function getBillingType(publicClient, environmentConfig, app) {
4613
6177
  async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
4614
6178
  const result = await publicClient.readContract({
4615
6179
  address: environmentConfig.appControllerAddress,
4616
- abi: AppController_default,
6180
+ abi: appControllerAbiFor(environmentConfig),
4617
6181
  functionName: "getAppsByBillingAccount",
4618
6182
  args: [account, offset, limit]
4619
6183
  });
@@ -4647,7 +6211,7 @@ async function getAppLatestReleaseBlockNumbers(publicClient, environmentConfig,
4647
6211
  appIDs.map(
4648
6212
  (appID) => publicClient.readContract({
4649
6213
  address: environmentConfig.appControllerAddress,
4650
- abi: AppController_default,
6214
+ abi: appControllerAbiFor(environmentConfig),
4651
6215
  functionName: "getAppLatestReleaseBlockNumber",
4652
6216
  args: [appID]
4653
6217
  }).catch(() => null)
@@ -4837,7 +6401,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
4837
6401
  var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
4838
6402
  var CanUpdateAppProfilePermission = "0x036fef61";
4839
6403
  function getDefaultClientId() {
4840
- const version = true ? "1.0.0-dev.5" : "0.0.0";
6404
+ const version = true ? "1.0.0-dev.7" : "0.0.0";
4841
6405
  return `ecloud-sdk/v${version}`;
4842
6406
  }
4843
6407
  var UserApiClient = class {
@@ -5621,6 +7185,8 @@ var ENVIRONMENTS = {
5621
7185
  name: "sepolia",
5622
7186
  build: "dev",
5623
7187
  appControllerAddress: "0xa86DC1C47cb2518327fB4f9A1627F51966c83B92",
7188
+ releaseAbiVersion: "v1.5",
7189
+ // AppController upgraded to v1.5.x (containerPolicy)
5624
7190
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
5625
7191
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5626
7192
  kmsServerURL: "http://10.128.0.57:8080",
@@ -5634,6 +7200,8 @@ var ENVIRONMENTS = {
5634
7200
  name: "sepolia",
5635
7201
  build: "prod",
5636
7202
  appControllerAddress: "0x0dd810a6ffba6a9820a10d97b659f07d8d23d4E2",
7203
+ releaseAbiVersion: "v1.4",
7204
+ // prod still on AppController v1.4.0 (3-field Release)
5637
7205
  permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
5638
7206
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5639
7207
  kmsServerURL: "http://10.128.15.203:8080",
@@ -5648,6 +7216,8 @@ var ENVIRONMENTS = {
5648
7216
  name: "mainnet-alpha",
5649
7217
  build: "prod",
5650
7218
  appControllerAddress: "0xc38d35Fc995e75342A21CBd6D770305b142Fbe67",
7219
+ releaseAbiVersion: "v1.4",
7220
+ // prod still on AppController v1.4.0 (3-field Release)
5651
7221
  permissionControllerAddress: ChainAddresses[MAINNET_CHAIN_ID].PermissionController,
5652
7222
  erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
5653
7223
  kmsServerURL: "http://10.128.0.2:8080",
@@ -9527,6 +11097,7 @@ export {
9527
11097
  BuildError,
9528
11098
  BuildFailedError,
9529
11099
  ConflictError,
11100
+ EMPTY_CONTAINER_POLICY,
9530
11101
  ERC20_default as ERC20ABI,
9531
11102
  ForbiddenError,
9532
11103
  JwtProvider,