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