@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/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.cjs
CHANGED
|
@@ -173,6 +173,7 @@ __export(browser_exports, {
|
|
|
173
173
|
BillingApiClient: () => BillingApiClient,
|
|
174
174
|
BillingSessionError: () => BillingSessionError,
|
|
175
175
|
BuildApiClient: () => BuildApiClient,
|
|
176
|
+
EMPTY_CONTAINER_POLICY: () => EMPTY_CONTAINER_POLICY,
|
|
176
177
|
SessionError: () => SessionError,
|
|
177
178
|
UserApiClient: () => UserApiClient,
|
|
178
179
|
addHexPrefix: () => addHexPrefix,
|
|
@@ -257,6 +258,13 @@ __export(browser_exports, {
|
|
|
257
258
|
module.exports = __toCommonJS(browser_exports);
|
|
258
259
|
|
|
259
260
|
// src/client/common/types/index.ts
|
|
261
|
+
var EMPTY_CONTAINER_POLICY = {
|
|
262
|
+
args: [],
|
|
263
|
+
cmdOverride: [],
|
|
264
|
+
env: [],
|
|
265
|
+
envOverride: [],
|
|
266
|
+
restartPolicy: ""
|
|
267
|
+
};
|
|
260
268
|
var noopLogger = {
|
|
261
269
|
debug: () => {
|
|
262
270
|
},
|
|
@@ -295,6 +303,8 @@ var ENVIRONMENTS = {
|
|
|
295
303
|
name: "sepolia",
|
|
296
304
|
build: "dev",
|
|
297
305
|
appControllerAddress: "0xa86DC1C47cb2518327fB4f9A1627F51966c83B92",
|
|
306
|
+
releaseAbiVersion: "v1.5",
|
|
307
|
+
// AppController upgraded to v1.5.x (containerPolicy)
|
|
298
308
|
permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
|
|
299
309
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
300
310
|
kmsServerURL: "http://10.128.0.57:8080",
|
|
@@ -308,6 +318,8 @@ var ENVIRONMENTS = {
|
|
|
308
318
|
name: "sepolia",
|
|
309
319
|
build: "prod",
|
|
310
320
|
appControllerAddress: "0x0dd810a6ffba6a9820a10d97b659f07d8d23d4E2",
|
|
321
|
+
releaseAbiVersion: "v1.4",
|
|
322
|
+
// prod still on AppController v1.4.0 (3-field Release)
|
|
311
323
|
permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
|
|
312
324
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
313
325
|
kmsServerURL: "http://10.128.15.203:8080",
|
|
@@ -322,6 +334,8 @@ var ENVIRONMENTS = {
|
|
|
322
334
|
name: "mainnet-alpha",
|
|
323
335
|
build: "prod",
|
|
324
336
|
appControllerAddress: "0xc38d35Fc995e75342A21CBd6D770305b142Fbe67",
|
|
337
|
+
releaseAbiVersion: "v1.4",
|
|
338
|
+
// prod still on AppController v1.4.0 (3-field Release)
|
|
325
339
|
permissionControllerAddress: ChainAddresses[MAINNET_CHAIN_ID].PermissionController,
|
|
326
340
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
327
341
|
kmsServerURL: "http://10.128.0.2:8080",
|
|
@@ -744,7 +758,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
744
758
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
745
759
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
746
760
|
function getDefaultClientId() {
|
|
747
|
-
const version = true ? "1.0.0-dev.
|
|
761
|
+
const version = true ? "1.0.0-dev.7" : "0.0.0";
|
|
748
762
|
return `ecloud-sdk/v${version}`;
|
|
749
763
|
}
|
|
750
764
|
var UserApiClient = class {
|
|
@@ -3066,6 +3080,19 @@ var AppController_default = [
|
|
|
3066
3080
|
],
|
|
3067
3081
|
stateMutability: "view"
|
|
3068
3082
|
},
|
|
3083
|
+
{
|
|
3084
|
+
type: "function",
|
|
3085
|
+
name: "confirmUpgrade",
|
|
3086
|
+
inputs: [
|
|
3087
|
+
{
|
|
3088
|
+
name: "app",
|
|
3089
|
+
type: "address",
|
|
3090
|
+
internalType: "contractIApp"
|
|
3091
|
+
}
|
|
3092
|
+
],
|
|
3093
|
+
outputs: [],
|
|
3094
|
+
stateMutability: "nonpayable"
|
|
3095
|
+
},
|
|
3069
3096
|
{
|
|
3070
3097
|
type: "function",
|
|
3071
3098
|
name: "createApp",
|
|
@@ -3118,6 +3145,62 @@ var AppController_default = [
|
|
|
3118
3145
|
name: "encryptedEnv",
|
|
3119
3146
|
type: "bytes",
|
|
3120
3147
|
internalType: "bytes"
|
|
3148
|
+
},
|
|
3149
|
+
{
|
|
3150
|
+
name: "containerPolicy",
|
|
3151
|
+
type: "tuple",
|
|
3152
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
3153
|
+
components: [
|
|
3154
|
+
{
|
|
3155
|
+
name: "args",
|
|
3156
|
+
type: "string[]",
|
|
3157
|
+
internalType: "string[]"
|
|
3158
|
+
},
|
|
3159
|
+
{
|
|
3160
|
+
name: "cmdOverride",
|
|
3161
|
+
type: "string[]",
|
|
3162
|
+
internalType: "string[]"
|
|
3163
|
+
},
|
|
3164
|
+
{
|
|
3165
|
+
name: "env",
|
|
3166
|
+
type: "tuple[]",
|
|
3167
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3168
|
+
components: [
|
|
3169
|
+
{
|
|
3170
|
+
name: "key",
|
|
3171
|
+
type: "string",
|
|
3172
|
+
internalType: "string"
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
name: "value",
|
|
3176
|
+
type: "string",
|
|
3177
|
+
internalType: "string"
|
|
3178
|
+
}
|
|
3179
|
+
]
|
|
3180
|
+
},
|
|
3181
|
+
{
|
|
3182
|
+
name: "envOverride",
|
|
3183
|
+
type: "tuple[]",
|
|
3184
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3185
|
+
components: [
|
|
3186
|
+
{
|
|
3187
|
+
name: "key",
|
|
3188
|
+
type: "string",
|
|
3189
|
+
internalType: "string"
|
|
3190
|
+
},
|
|
3191
|
+
{
|
|
3192
|
+
name: "value",
|
|
3193
|
+
type: "string",
|
|
3194
|
+
internalType: "string"
|
|
3195
|
+
}
|
|
3196
|
+
]
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
name: "restartPolicy",
|
|
3200
|
+
type: "string",
|
|
3201
|
+
internalType: "string"
|
|
3202
|
+
}
|
|
3203
|
+
]
|
|
3121
3204
|
}
|
|
3122
3205
|
]
|
|
3123
3206
|
}
|
|
@@ -3183,6 +3266,62 @@ var AppController_default = [
|
|
|
3183
3266
|
name: "encryptedEnv",
|
|
3184
3267
|
type: "bytes",
|
|
3185
3268
|
internalType: "bytes"
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
name: "containerPolicy",
|
|
3272
|
+
type: "tuple",
|
|
3273
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
3274
|
+
components: [
|
|
3275
|
+
{
|
|
3276
|
+
name: "args",
|
|
3277
|
+
type: "string[]",
|
|
3278
|
+
internalType: "string[]"
|
|
3279
|
+
},
|
|
3280
|
+
{
|
|
3281
|
+
name: "cmdOverride",
|
|
3282
|
+
type: "string[]",
|
|
3283
|
+
internalType: "string[]"
|
|
3284
|
+
},
|
|
3285
|
+
{
|
|
3286
|
+
name: "env",
|
|
3287
|
+
type: "tuple[]",
|
|
3288
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3289
|
+
components: [
|
|
3290
|
+
{
|
|
3291
|
+
name: "key",
|
|
3292
|
+
type: "string",
|
|
3293
|
+
internalType: "string"
|
|
3294
|
+
},
|
|
3295
|
+
{
|
|
3296
|
+
name: "value",
|
|
3297
|
+
type: "string",
|
|
3298
|
+
internalType: "string"
|
|
3299
|
+
}
|
|
3300
|
+
]
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
name: "envOverride",
|
|
3304
|
+
type: "tuple[]",
|
|
3305
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3306
|
+
components: [
|
|
3307
|
+
{
|
|
3308
|
+
name: "key",
|
|
3309
|
+
type: "string",
|
|
3310
|
+
internalType: "string"
|
|
3311
|
+
},
|
|
3312
|
+
{
|
|
3313
|
+
name: "value",
|
|
3314
|
+
type: "string",
|
|
3315
|
+
internalType: "string"
|
|
3316
|
+
}
|
|
3317
|
+
]
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
name: "restartPolicy",
|
|
3321
|
+
type: "string",
|
|
3322
|
+
internalType: "string"
|
|
3323
|
+
}
|
|
3324
|
+
]
|
|
3186
3325
|
}
|
|
3187
3326
|
]
|
|
3188
3327
|
}
|
|
@@ -3196,6 +3335,44 @@ var AppController_default = [
|
|
|
3196
3335
|
],
|
|
3197
3336
|
stateMutability: "nonpayable"
|
|
3198
3337
|
},
|
|
3338
|
+
{
|
|
3339
|
+
type: "function",
|
|
3340
|
+
name: "createEmptyApp",
|
|
3341
|
+
inputs: [
|
|
3342
|
+
{
|
|
3343
|
+
name: "salt",
|
|
3344
|
+
type: "bytes32",
|
|
3345
|
+
internalType: "bytes32"
|
|
3346
|
+
}
|
|
3347
|
+
],
|
|
3348
|
+
outputs: [
|
|
3349
|
+
{
|
|
3350
|
+
name: "app",
|
|
3351
|
+
type: "address",
|
|
3352
|
+
internalType: "contractIApp"
|
|
3353
|
+
}
|
|
3354
|
+
],
|
|
3355
|
+
stateMutability: "nonpayable"
|
|
3356
|
+
},
|
|
3357
|
+
{
|
|
3358
|
+
type: "function",
|
|
3359
|
+
name: "createEmptyAppWithIsolatedBilling",
|
|
3360
|
+
inputs: [
|
|
3361
|
+
{
|
|
3362
|
+
name: "salt",
|
|
3363
|
+
type: "bytes32",
|
|
3364
|
+
internalType: "bytes32"
|
|
3365
|
+
}
|
|
3366
|
+
],
|
|
3367
|
+
outputs: [
|
|
3368
|
+
{
|
|
3369
|
+
name: "app",
|
|
3370
|
+
type: "address",
|
|
3371
|
+
internalType: "contractIApp"
|
|
3372
|
+
}
|
|
3373
|
+
],
|
|
3374
|
+
stateMutability: "nonpayable"
|
|
3375
|
+
},
|
|
3199
3376
|
{
|
|
3200
3377
|
type: "function",
|
|
3201
3378
|
name: "domainSeparator",
|
|
@@ -3230,26 +3407,26 @@ var AppController_default = [
|
|
|
3230
3407
|
},
|
|
3231
3408
|
{
|
|
3232
3409
|
type: "function",
|
|
3233
|
-
name: "
|
|
3410
|
+
name: "getAppCreator",
|
|
3234
3411
|
inputs: [
|
|
3235
3412
|
{
|
|
3236
3413
|
name: "app",
|
|
3237
3414
|
type: "address",
|
|
3238
|
-
internalType: "
|
|
3415
|
+
internalType: "contractIApp"
|
|
3239
3416
|
}
|
|
3240
3417
|
],
|
|
3241
3418
|
outputs: [
|
|
3242
3419
|
{
|
|
3243
3420
|
name: "",
|
|
3244
|
-
type: "
|
|
3245
|
-
internalType: "
|
|
3421
|
+
type: "address",
|
|
3422
|
+
internalType: "address"
|
|
3246
3423
|
}
|
|
3247
3424
|
],
|
|
3248
3425
|
stateMutability: "view"
|
|
3249
3426
|
},
|
|
3250
3427
|
{
|
|
3251
3428
|
type: "function",
|
|
3252
|
-
name: "
|
|
3429
|
+
name: "getAppLatestReleaseBlockNumber",
|
|
3253
3430
|
inputs: [
|
|
3254
3431
|
{
|
|
3255
3432
|
name: "app",
|
|
@@ -3260,15 +3437,15 @@ var AppController_default = [
|
|
|
3260
3437
|
outputs: [
|
|
3261
3438
|
{
|
|
3262
3439
|
name: "",
|
|
3263
|
-
type: "
|
|
3264
|
-
internalType: "
|
|
3440
|
+
type: "uint32",
|
|
3441
|
+
internalType: "uint32"
|
|
3265
3442
|
}
|
|
3266
3443
|
],
|
|
3267
3444
|
stateMutability: "view"
|
|
3268
3445
|
},
|
|
3269
3446
|
{
|
|
3270
3447
|
type: "function",
|
|
3271
|
-
name: "
|
|
3448
|
+
name: "getAppOperatorSetId",
|
|
3272
3449
|
inputs: [
|
|
3273
3450
|
{
|
|
3274
3451
|
name: "app",
|
|
@@ -3287,7 +3464,7 @@ var AppController_default = [
|
|
|
3287
3464
|
},
|
|
3288
3465
|
{
|
|
3289
3466
|
type: "function",
|
|
3290
|
-
name: "
|
|
3467
|
+
name: "getAppPendingReleaseBlockNumber",
|
|
3291
3468
|
inputs: [
|
|
3292
3469
|
{
|
|
3293
3470
|
name: "app",
|
|
@@ -3364,6 +3541,11 @@ var AppController_default = [
|
|
|
3364
3541
|
type: "uint32",
|
|
3365
3542
|
internalType: "uint32"
|
|
3366
3543
|
},
|
|
3544
|
+
{
|
|
3545
|
+
name: "pendingReleaseBlockNumber",
|
|
3546
|
+
type: "uint32",
|
|
3547
|
+
internalType: "uint32"
|
|
3548
|
+
},
|
|
3367
3549
|
{
|
|
3368
3550
|
name: "status",
|
|
3369
3551
|
type: "uint8",
|
|
@@ -3420,6 +3602,11 @@ var AppController_default = [
|
|
|
3420
3602
|
type: "uint32",
|
|
3421
3603
|
internalType: "uint32"
|
|
3422
3604
|
},
|
|
3605
|
+
{
|
|
3606
|
+
name: "pendingReleaseBlockNumber",
|
|
3607
|
+
type: "uint32",
|
|
3608
|
+
internalType: "uint32"
|
|
3609
|
+
},
|
|
3423
3610
|
{
|
|
3424
3611
|
name: "status",
|
|
3425
3612
|
type: "uint8",
|
|
@@ -3476,6 +3663,11 @@ var AppController_default = [
|
|
|
3476
3663
|
type: "uint32",
|
|
3477
3664
|
internalType: "uint32"
|
|
3478
3665
|
},
|
|
3666
|
+
{
|
|
3667
|
+
name: "pendingReleaseBlockNumber",
|
|
3668
|
+
type: "uint32",
|
|
3669
|
+
internalType: "uint32"
|
|
3670
|
+
},
|
|
3479
3671
|
{
|
|
3480
3672
|
name: "status",
|
|
3481
3673
|
type: "uint8",
|
|
@@ -3532,6 +3724,11 @@ var AppController_default = [
|
|
|
3532
3724
|
type: "uint32",
|
|
3533
3725
|
internalType: "uint32"
|
|
3534
3726
|
},
|
|
3727
|
+
{
|
|
3728
|
+
name: "pendingReleaseBlockNumber",
|
|
3729
|
+
type: "uint32",
|
|
3730
|
+
internalType: "uint32"
|
|
3731
|
+
},
|
|
3535
3732
|
{
|
|
3536
3733
|
name: "status",
|
|
3537
3734
|
type: "uint8",
|
|
@@ -3542,6 +3739,44 @@ var AppController_default = [
|
|
|
3542
3739
|
],
|
|
3543
3740
|
stateMutability: "view"
|
|
3544
3741
|
},
|
|
3742
|
+
{
|
|
3743
|
+
type: "function",
|
|
3744
|
+
name: "getBillingAccount",
|
|
3745
|
+
inputs: [
|
|
3746
|
+
{
|
|
3747
|
+
name: "app",
|
|
3748
|
+
type: "address",
|
|
3749
|
+
internalType: "contractIApp"
|
|
3750
|
+
}
|
|
3751
|
+
],
|
|
3752
|
+
outputs: [
|
|
3753
|
+
{
|
|
3754
|
+
name: "",
|
|
3755
|
+
type: "address",
|
|
3756
|
+
internalType: "address"
|
|
3757
|
+
}
|
|
3758
|
+
],
|
|
3759
|
+
stateMutability: "view"
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
type: "function",
|
|
3763
|
+
name: "getBillingType",
|
|
3764
|
+
inputs: [
|
|
3765
|
+
{
|
|
3766
|
+
name: "app",
|
|
3767
|
+
type: "address",
|
|
3768
|
+
internalType: "contractIApp"
|
|
3769
|
+
}
|
|
3770
|
+
],
|
|
3771
|
+
outputs: [
|
|
3772
|
+
{
|
|
3773
|
+
name: "",
|
|
3774
|
+
type: "uint8",
|
|
3775
|
+
internalType: "enumIAppController.BillingType"
|
|
3776
|
+
}
|
|
3777
|
+
],
|
|
3778
|
+
stateMutability: "view"
|
|
3779
|
+
},
|
|
3545
3780
|
{
|
|
3546
3781
|
type: "function",
|
|
3547
3782
|
name: "getMaxActiveAppsPerUser",
|
|
@@ -3797,6 +4032,62 @@ var AppController_default = [
|
|
|
3797
4032
|
name: "encryptedEnv",
|
|
3798
4033
|
type: "bytes",
|
|
3799
4034
|
internalType: "bytes"
|
|
4035
|
+
},
|
|
4036
|
+
{
|
|
4037
|
+
name: "containerPolicy",
|
|
4038
|
+
type: "tuple",
|
|
4039
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
4040
|
+
components: [
|
|
4041
|
+
{
|
|
4042
|
+
name: "args",
|
|
4043
|
+
type: "string[]",
|
|
4044
|
+
internalType: "string[]"
|
|
4045
|
+
},
|
|
4046
|
+
{
|
|
4047
|
+
name: "cmdOverride",
|
|
4048
|
+
type: "string[]",
|
|
4049
|
+
internalType: "string[]"
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
name: "env",
|
|
4053
|
+
type: "tuple[]",
|
|
4054
|
+
internalType: "structIAppController.EnvVar[]",
|
|
4055
|
+
components: [
|
|
4056
|
+
{
|
|
4057
|
+
name: "key",
|
|
4058
|
+
type: "string",
|
|
4059
|
+
internalType: "string"
|
|
4060
|
+
},
|
|
4061
|
+
{
|
|
4062
|
+
name: "value",
|
|
4063
|
+
type: "string",
|
|
4064
|
+
internalType: "string"
|
|
4065
|
+
}
|
|
4066
|
+
]
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
name: "envOverride",
|
|
4070
|
+
type: "tuple[]",
|
|
4071
|
+
internalType: "structIAppController.EnvVar[]",
|
|
4072
|
+
components: [
|
|
4073
|
+
{
|
|
4074
|
+
name: "key",
|
|
4075
|
+
type: "string",
|
|
4076
|
+
internalType: "string"
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
name: "value",
|
|
4080
|
+
type: "string",
|
|
4081
|
+
internalType: "string"
|
|
4082
|
+
}
|
|
4083
|
+
]
|
|
4084
|
+
},
|
|
4085
|
+
{
|
|
4086
|
+
name: "restartPolicy",
|
|
4087
|
+
type: "string",
|
|
4088
|
+
internalType: "string"
|
|
4089
|
+
}
|
|
4090
|
+
]
|
|
3800
4091
|
}
|
|
3801
4092
|
]
|
|
3802
4093
|
}
|
|
@@ -3992,30 +4283,1298 @@ var AppController_default = [
|
|
|
3992
4283
|
name: "encryptedEnv",
|
|
3993
4284
|
type: "bytes",
|
|
3994
4285
|
internalType: "bytes"
|
|
3995
|
-
}
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4286
|
+
},
|
|
4287
|
+
{
|
|
4288
|
+
name: "containerPolicy",
|
|
4289
|
+
type: "tuple",
|
|
4290
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
4291
|
+
components: [
|
|
4292
|
+
{
|
|
4293
|
+
name: "args",
|
|
4294
|
+
type: "string[]",
|
|
4295
|
+
internalType: "string[]"
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
name: "cmdOverride",
|
|
4299
|
+
type: "string[]",
|
|
4300
|
+
internalType: "string[]"
|
|
4301
|
+
},
|
|
4302
|
+
{
|
|
4303
|
+
name: "env",
|
|
4304
|
+
type: "tuple[]",
|
|
4305
|
+
internalType: "structIAppController.EnvVar[]",
|
|
4306
|
+
components: [
|
|
4307
|
+
{
|
|
4308
|
+
name: "key",
|
|
4309
|
+
type: "string",
|
|
4310
|
+
internalType: "string"
|
|
4311
|
+
},
|
|
4312
|
+
{
|
|
4313
|
+
name: "value",
|
|
4314
|
+
type: "string",
|
|
4315
|
+
internalType: "string"
|
|
4316
|
+
}
|
|
4317
|
+
]
|
|
4318
|
+
},
|
|
4319
|
+
{
|
|
4320
|
+
name: "envOverride",
|
|
4321
|
+
type: "tuple[]",
|
|
4322
|
+
internalType: "structIAppController.EnvVar[]",
|
|
4323
|
+
components: [
|
|
4324
|
+
{
|
|
4325
|
+
name: "key",
|
|
4326
|
+
type: "string",
|
|
4327
|
+
internalType: "string"
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
name: "value",
|
|
4331
|
+
type: "string",
|
|
4332
|
+
internalType: "string"
|
|
4333
|
+
}
|
|
4334
|
+
]
|
|
4335
|
+
},
|
|
4336
|
+
{
|
|
4337
|
+
name: "restartPolicy",
|
|
4338
|
+
type: "string",
|
|
4339
|
+
internalType: "string"
|
|
4340
|
+
}
|
|
4341
|
+
]
|
|
4342
|
+
}
|
|
4343
|
+
]
|
|
4344
|
+
}
|
|
4345
|
+
],
|
|
4346
|
+
anonymous: false
|
|
4347
|
+
},
|
|
4348
|
+
{
|
|
4349
|
+
type: "event",
|
|
4350
|
+
name: "GlobalMaxActiveAppsSet",
|
|
4351
|
+
inputs: [
|
|
4352
|
+
{
|
|
4353
|
+
name: "limit",
|
|
4354
|
+
type: "uint32",
|
|
4355
|
+
indexed: false,
|
|
4356
|
+
internalType: "uint32"
|
|
4357
|
+
}
|
|
4358
|
+
],
|
|
4359
|
+
anonymous: false
|
|
4360
|
+
},
|
|
4361
|
+
{
|
|
4362
|
+
type: "event",
|
|
4363
|
+
name: "Initialized",
|
|
4364
|
+
inputs: [
|
|
4365
|
+
{
|
|
4366
|
+
name: "version",
|
|
4367
|
+
type: "uint8",
|
|
4368
|
+
indexed: false,
|
|
4369
|
+
internalType: "uint8"
|
|
4370
|
+
}
|
|
4371
|
+
],
|
|
4372
|
+
anonymous: false
|
|
4373
|
+
},
|
|
4374
|
+
{
|
|
4375
|
+
type: "event",
|
|
4376
|
+
name: "MaxActiveAppsSet",
|
|
4377
|
+
inputs: [
|
|
4378
|
+
{
|
|
4379
|
+
name: "user",
|
|
4380
|
+
type: "address",
|
|
4381
|
+
indexed: true,
|
|
4382
|
+
internalType: "address"
|
|
4383
|
+
},
|
|
4384
|
+
{
|
|
4385
|
+
name: "limit",
|
|
4386
|
+
type: "uint32",
|
|
4387
|
+
indexed: false,
|
|
4388
|
+
internalType: "uint32"
|
|
4389
|
+
}
|
|
4390
|
+
],
|
|
4391
|
+
anonymous: false
|
|
4392
|
+
},
|
|
4393
|
+
{
|
|
4394
|
+
type: "event",
|
|
4395
|
+
name: "UpgradeConfirmed",
|
|
4396
|
+
inputs: [
|
|
4397
|
+
{
|
|
4398
|
+
name: "app",
|
|
4399
|
+
type: "address",
|
|
4400
|
+
indexed: true,
|
|
4401
|
+
internalType: "contractIApp"
|
|
4402
|
+
},
|
|
4403
|
+
{
|
|
4404
|
+
name: "pendingReleaseBlockNumber",
|
|
4405
|
+
type: "uint32",
|
|
4406
|
+
indexed: false,
|
|
4407
|
+
internalType: "uint32"
|
|
4408
|
+
}
|
|
4409
|
+
],
|
|
4410
|
+
anonymous: false
|
|
4411
|
+
},
|
|
4412
|
+
{
|
|
4413
|
+
type: "error",
|
|
4414
|
+
name: "AccountHasActiveApps",
|
|
4415
|
+
inputs: []
|
|
4416
|
+
},
|
|
4417
|
+
{
|
|
4418
|
+
type: "error",
|
|
4419
|
+
name: "AppAlreadyExists",
|
|
4420
|
+
inputs: []
|
|
4421
|
+
},
|
|
4422
|
+
{
|
|
4423
|
+
type: "error",
|
|
4424
|
+
name: "AppDoesNotExist",
|
|
4425
|
+
inputs: []
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
type: "error",
|
|
4429
|
+
name: "GlobalMaxActiveAppsExceeded",
|
|
4430
|
+
inputs: []
|
|
4431
|
+
},
|
|
4432
|
+
{
|
|
4433
|
+
type: "error",
|
|
4434
|
+
name: "InvalidAppStatus",
|
|
4435
|
+
inputs: []
|
|
4436
|
+
},
|
|
4437
|
+
{
|
|
4438
|
+
type: "error",
|
|
4439
|
+
name: "InvalidPermissions",
|
|
4440
|
+
inputs: []
|
|
4441
|
+
},
|
|
4442
|
+
{
|
|
4443
|
+
type: "error",
|
|
4444
|
+
name: "InvalidReleaseMetadataURI",
|
|
4445
|
+
inputs: []
|
|
4446
|
+
},
|
|
4447
|
+
{
|
|
4448
|
+
type: "error",
|
|
4449
|
+
name: "InvalidShortString",
|
|
4450
|
+
inputs: []
|
|
4451
|
+
},
|
|
4452
|
+
{
|
|
4453
|
+
type: "error",
|
|
4454
|
+
name: "InvalidSignature",
|
|
4455
|
+
inputs: []
|
|
4456
|
+
},
|
|
4457
|
+
{
|
|
4458
|
+
type: "error",
|
|
4459
|
+
name: "MaxActiveAppsExceeded",
|
|
4460
|
+
inputs: []
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
type: "error",
|
|
4464
|
+
name: "MoreThanOneArtifact",
|
|
4465
|
+
inputs: []
|
|
4466
|
+
},
|
|
4467
|
+
{
|
|
4468
|
+
type: "error",
|
|
4469
|
+
name: "NoPendingUpgrade",
|
|
4470
|
+
inputs: []
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
type: "error",
|
|
4474
|
+
name: "SignatureExpired",
|
|
4475
|
+
inputs: []
|
|
4476
|
+
},
|
|
4477
|
+
{
|
|
4478
|
+
type: "error",
|
|
4479
|
+
name: "StringTooLong",
|
|
4480
|
+
inputs: [
|
|
4481
|
+
{
|
|
4482
|
+
name: "str",
|
|
4483
|
+
type: "string",
|
|
4484
|
+
internalType: "string"
|
|
4485
|
+
}
|
|
4486
|
+
]
|
|
4487
|
+
}
|
|
4488
|
+
];
|
|
4489
|
+
|
|
4490
|
+
// src/client/common/abis/AppController.v1_4.json
|
|
4491
|
+
var AppController_v1_4_default = [
|
|
4492
|
+
{
|
|
4493
|
+
type: "constructor",
|
|
4494
|
+
inputs: [
|
|
4495
|
+
{
|
|
4496
|
+
name: "_version",
|
|
4497
|
+
type: "string",
|
|
4498
|
+
internalType: "string"
|
|
4499
|
+
},
|
|
4500
|
+
{
|
|
4501
|
+
name: "_permissionController",
|
|
4502
|
+
type: "address",
|
|
4503
|
+
internalType: "contractIPermissionController"
|
|
4504
|
+
},
|
|
4505
|
+
{
|
|
4506
|
+
name: "_releaseManager",
|
|
4507
|
+
type: "address",
|
|
4508
|
+
internalType: "contractIReleaseManager"
|
|
4509
|
+
},
|
|
4510
|
+
{
|
|
4511
|
+
name: "_computeAVSRegistrar",
|
|
4512
|
+
type: "address",
|
|
4513
|
+
internalType: "contractIComputeAVSRegistrar"
|
|
4514
|
+
},
|
|
4515
|
+
{
|
|
4516
|
+
name: "_computeOperator",
|
|
4517
|
+
type: "address",
|
|
4518
|
+
internalType: "contractIComputeOperator"
|
|
4519
|
+
},
|
|
4520
|
+
{
|
|
4521
|
+
name: "_appBeacon",
|
|
4522
|
+
type: "address",
|
|
4523
|
+
internalType: "contractIBeacon"
|
|
4524
|
+
}
|
|
4525
|
+
],
|
|
4526
|
+
stateMutability: "nonpayable"
|
|
4527
|
+
},
|
|
4528
|
+
{
|
|
4529
|
+
type: "function",
|
|
4530
|
+
name: "API_PERMISSION_TYPEHASH",
|
|
4531
|
+
inputs: [],
|
|
4532
|
+
outputs: [
|
|
4533
|
+
{
|
|
4534
|
+
name: "",
|
|
4535
|
+
type: "bytes32",
|
|
4536
|
+
internalType: "bytes32"
|
|
4537
|
+
}
|
|
4538
|
+
],
|
|
4539
|
+
stateMutability: "view"
|
|
4540
|
+
},
|
|
4541
|
+
{
|
|
4542
|
+
type: "function",
|
|
4543
|
+
name: "appBeacon",
|
|
4544
|
+
inputs: [],
|
|
4545
|
+
outputs: [
|
|
4546
|
+
{
|
|
4547
|
+
name: "",
|
|
4548
|
+
type: "address",
|
|
4549
|
+
internalType: "contractIBeacon"
|
|
4550
|
+
}
|
|
4551
|
+
],
|
|
4552
|
+
stateMutability: "view"
|
|
4553
|
+
},
|
|
4554
|
+
{
|
|
4555
|
+
type: "function",
|
|
4556
|
+
name: "calculateApiPermissionDigestHash",
|
|
4557
|
+
inputs: [
|
|
4558
|
+
{
|
|
4559
|
+
name: "permission",
|
|
4560
|
+
type: "bytes4",
|
|
4561
|
+
internalType: "bytes4"
|
|
4562
|
+
},
|
|
4563
|
+
{
|
|
4564
|
+
name: "expiry",
|
|
4565
|
+
type: "uint256",
|
|
4566
|
+
internalType: "uint256"
|
|
4567
|
+
}
|
|
4568
|
+
],
|
|
4569
|
+
outputs: [
|
|
4570
|
+
{
|
|
4571
|
+
name: "",
|
|
4572
|
+
type: "bytes32",
|
|
4573
|
+
internalType: "bytes32"
|
|
4574
|
+
}
|
|
4575
|
+
],
|
|
4576
|
+
stateMutability: "view"
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
type: "function",
|
|
4580
|
+
name: "calculateAppId",
|
|
4581
|
+
inputs: [
|
|
4582
|
+
{
|
|
4583
|
+
name: "deployer",
|
|
4584
|
+
type: "address",
|
|
4585
|
+
internalType: "address"
|
|
4586
|
+
},
|
|
4587
|
+
{
|
|
4588
|
+
name: "salt",
|
|
4589
|
+
type: "bytes32",
|
|
4590
|
+
internalType: "bytes32"
|
|
4591
|
+
}
|
|
4592
|
+
],
|
|
4593
|
+
outputs: [
|
|
4594
|
+
{
|
|
4595
|
+
name: "",
|
|
4596
|
+
type: "address",
|
|
4597
|
+
internalType: "contractIApp"
|
|
4598
|
+
}
|
|
4599
|
+
],
|
|
4600
|
+
stateMutability: "view"
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
type: "function",
|
|
4604
|
+
name: "computeAVSRegistrar",
|
|
4605
|
+
inputs: [],
|
|
4606
|
+
outputs: [
|
|
4607
|
+
{
|
|
4608
|
+
name: "",
|
|
4609
|
+
type: "address",
|
|
4610
|
+
internalType: "contractIComputeAVSRegistrar"
|
|
4611
|
+
}
|
|
4612
|
+
],
|
|
4613
|
+
stateMutability: "view"
|
|
4614
|
+
},
|
|
4615
|
+
{
|
|
4616
|
+
type: "function",
|
|
4617
|
+
name: "computeOperator",
|
|
4618
|
+
inputs: [],
|
|
4619
|
+
outputs: [
|
|
4620
|
+
{
|
|
4621
|
+
name: "",
|
|
4622
|
+
type: "address",
|
|
4623
|
+
internalType: "contractIComputeOperator"
|
|
4624
|
+
}
|
|
4625
|
+
],
|
|
4626
|
+
stateMutability: "view"
|
|
4627
|
+
},
|
|
4628
|
+
{
|
|
4629
|
+
type: "function",
|
|
4630
|
+
name: "createApp",
|
|
4631
|
+
inputs: [
|
|
4632
|
+
{
|
|
4633
|
+
name: "salt",
|
|
4634
|
+
type: "bytes32",
|
|
4635
|
+
internalType: "bytes32"
|
|
4636
|
+
},
|
|
4637
|
+
{
|
|
4638
|
+
name: "release",
|
|
4639
|
+
type: "tuple",
|
|
4640
|
+
internalType: "structIAppController.Release",
|
|
4641
|
+
components: [
|
|
4642
|
+
{
|
|
4643
|
+
name: "rmsRelease",
|
|
4644
|
+
type: "tuple",
|
|
4645
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
4646
|
+
components: [
|
|
4647
|
+
{
|
|
4648
|
+
name: "artifacts",
|
|
4649
|
+
type: "tuple[]",
|
|
4650
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
4651
|
+
components: [
|
|
4652
|
+
{
|
|
4653
|
+
name: "digest",
|
|
4654
|
+
type: "bytes32",
|
|
4655
|
+
internalType: "bytes32"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
name: "registry",
|
|
4659
|
+
type: "string",
|
|
4660
|
+
internalType: "string"
|
|
4661
|
+
}
|
|
4662
|
+
]
|
|
4663
|
+
},
|
|
4664
|
+
{
|
|
4665
|
+
name: "upgradeByTime",
|
|
4666
|
+
type: "uint32",
|
|
4667
|
+
internalType: "uint32"
|
|
4668
|
+
}
|
|
4669
|
+
]
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
name: "publicEnv",
|
|
4673
|
+
type: "bytes",
|
|
4674
|
+
internalType: "bytes"
|
|
4675
|
+
},
|
|
4676
|
+
{
|
|
4677
|
+
name: "encryptedEnv",
|
|
4678
|
+
type: "bytes",
|
|
4679
|
+
internalType: "bytes"
|
|
4680
|
+
}
|
|
4681
|
+
]
|
|
4682
|
+
}
|
|
4683
|
+
],
|
|
4684
|
+
outputs: [
|
|
4685
|
+
{
|
|
4686
|
+
name: "app",
|
|
4687
|
+
type: "address",
|
|
4688
|
+
internalType: "contractIApp"
|
|
4689
|
+
}
|
|
4690
|
+
],
|
|
4691
|
+
stateMutability: "nonpayable"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
type: "function",
|
|
4695
|
+
name: "createAppWithIsolatedBilling",
|
|
4696
|
+
inputs: [
|
|
4697
|
+
{
|
|
4698
|
+
name: "salt",
|
|
4699
|
+
type: "bytes32",
|
|
4700
|
+
internalType: "bytes32"
|
|
4701
|
+
},
|
|
4702
|
+
{
|
|
4703
|
+
name: "release",
|
|
4704
|
+
type: "tuple",
|
|
4705
|
+
internalType: "structIAppController.Release",
|
|
4706
|
+
components: [
|
|
4707
|
+
{
|
|
4708
|
+
name: "rmsRelease",
|
|
4709
|
+
type: "tuple",
|
|
4710
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
4711
|
+
components: [
|
|
4712
|
+
{
|
|
4713
|
+
name: "artifacts",
|
|
4714
|
+
type: "tuple[]",
|
|
4715
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
4716
|
+
components: [
|
|
4717
|
+
{
|
|
4718
|
+
name: "digest",
|
|
4719
|
+
type: "bytes32",
|
|
4720
|
+
internalType: "bytes32"
|
|
4721
|
+
},
|
|
4722
|
+
{
|
|
4723
|
+
name: "registry",
|
|
4724
|
+
type: "string",
|
|
4725
|
+
internalType: "string"
|
|
4726
|
+
}
|
|
4727
|
+
]
|
|
4728
|
+
},
|
|
4729
|
+
{
|
|
4730
|
+
name: "upgradeByTime",
|
|
4731
|
+
type: "uint32",
|
|
4732
|
+
internalType: "uint32"
|
|
4733
|
+
}
|
|
4734
|
+
]
|
|
4735
|
+
},
|
|
4736
|
+
{
|
|
4737
|
+
name: "publicEnv",
|
|
4738
|
+
type: "bytes",
|
|
4739
|
+
internalType: "bytes"
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
name: "encryptedEnv",
|
|
4743
|
+
type: "bytes",
|
|
4744
|
+
internalType: "bytes"
|
|
4745
|
+
}
|
|
4746
|
+
]
|
|
4747
|
+
}
|
|
4748
|
+
],
|
|
4749
|
+
outputs: [
|
|
4750
|
+
{
|
|
4751
|
+
name: "app",
|
|
4752
|
+
type: "address",
|
|
4753
|
+
internalType: "contractIApp"
|
|
4754
|
+
}
|
|
4755
|
+
],
|
|
4756
|
+
stateMutability: "nonpayable"
|
|
4757
|
+
},
|
|
4758
|
+
{
|
|
4759
|
+
type: "function",
|
|
4760
|
+
name: "domainSeparator",
|
|
4761
|
+
inputs: [],
|
|
4762
|
+
outputs: [
|
|
4763
|
+
{
|
|
4764
|
+
name: "",
|
|
4765
|
+
type: "bytes32",
|
|
4766
|
+
internalType: "bytes32"
|
|
4767
|
+
}
|
|
4768
|
+
],
|
|
4769
|
+
stateMutability: "view"
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
type: "function",
|
|
4773
|
+
name: "getActiveAppCount",
|
|
4774
|
+
inputs: [
|
|
4775
|
+
{
|
|
4776
|
+
name: "user",
|
|
4777
|
+
type: "address",
|
|
4778
|
+
internalType: "address"
|
|
4779
|
+
}
|
|
4780
|
+
],
|
|
4781
|
+
outputs: [
|
|
4782
|
+
{
|
|
4783
|
+
name: "",
|
|
4784
|
+
type: "uint32",
|
|
4785
|
+
internalType: "uint32"
|
|
4786
|
+
}
|
|
4787
|
+
],
|
|
4788
|
+
stateMutability: "view"
|
|
4789
|
+
},
|
|
4790
|
+
{
|
|
4791
|
+
type: "function",
|
|
4792
|
+
name: "getBillingType",
|
|
4793
|
+
inputs: [
|
|
4794
|
+
{
|
|
4795
|
+
name: "app",
|
|
4796
|
+
type: "address",
|
|
4797
|
+
internalType: "address"
|
|
4798
|
+
}
|
|
4799
|
+
],
|
|
4800
|
+
outputs: [
|
|
4801
|
+
{
|
|
4802
|
+
name: "",
|
|
4803
|
+
type: "uint8",
|
|
4804
|
+
internalType: "uint8"
|
|
4805
|
+
}
|
|
4806
|
+
],
|
|
4807
|
+
stateMutability: "view"
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
type: "function",
|
|
4811
|
+
name: "getAppCreator",
|
|
4812
|
+
inputs: [
|
|
4813
|
+
{
|
|
4814
|
+
name: "app",
|
|
4815
|
+
type: "address",
|
|
4816
|
+
internalType: "contractIApp"
|
|
4817
|
+
}
|
|
4818
|
+
],
|
|
4819
|
+
outputs: [
|
|
4820
|
+
{
|
|
4821
|
+
name: "",
|
|
4822
|
+
type: "address",
|
|
4823
|
+
internalType: "address"
|
|
4824
|
+
}
|
|
4825
|
+
],
|
|
4826
|
+
stateMutability: "view"
|
|
4827
|
+
},
|
|
4828
|
+
{
|
|
4829
|
+
type: "function",
|
|
4830
|
+
name: "getAppLatestReleaseBlockNumber",
|
|
4831
|
+
inputs: [
|
|
4832
|
+
{
|
|
4833
|
+
name: "app",
|
|
4834
|
+
type: "address",
|
|
4835
|
+
internalType: "contractIApp"
|
|
4836
|
+
}
|
|
4837
|
+
],
|
|
4838
|
+
outputs: [
|
|
4839
|
+
{
|
|
4840
|
+
name: "",
|
|
4841
|
+
type: "uint32",
|
|
4842
|
+
internalType: "uint32"
|
|
4843
|
+
}
|
|
4844
|
+
],
|
|
4845
|
+
stateMutability: "view"
|
|
4846
|
+
},
|
|
4847
|
+
{
|
|
4848
|
+
type: "function",
|
|
4849
|
+
name: "getAppOperatorSetId",
|
|
4850
|
+
inputs: [
|
|
4851
|
+
{
|
|
4852
|
+
name: "app",
|
|
4853
|
+
type: "address",
|
|
4854
|
+
internalType: "contractIApp"
|
|
4855
|
+
}
|
|
4856
|
+
],
|
|
4857
|
+
outputs: [
|
|
4858
|
+
{
|
|
4859
|
+
name: "",
|
|
4860
|
+
type: "uint32",
|
|
4861
|
+
internalType: "uint32"
|
|
4862
|
+
}
|
|
4863
|
+
],
|
|
4864
|
+
stateMutability: "view"
|
|
4865
|
+
},
|
|
4866
|
+
{
|
|
4867
|
+
type: "function",
|
|
4868
|
+
name: "getAppStatus",
|
|
4869
|
+
inputs: [
|
|
4870
|
+
{
|
|
4871
|
+
name: "app",
|
|
4872
|
+
type: "address",
|
|
4873
|
+
internalType: "contractIApp"
|
|
4874
|
+
}
|
|
4875
|
+
],
|
|
4876
|
+
outputs: [
|
|
4877
|
+
{
|
|
4878
|
+
name: "",
|
|
4879
|
+
type: "uint8",
|
|
4880
|
+
internalType: "enumIAppController.AppStatus"
|
|
4881
|
+
}
|
|
4882
|
+
],
|
|
4883
|
+
stateMutability: "view"
|
|
4884
|
+
},
|
|
4885
|
+
{
|
|
4886
|
+
type: "function",
|
|
4887
|
+
name: "getApps",
|
|
4888
|
+
inputs: [
|
|
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: "getAppsByBillingAccount",
|
|
4939
|
+
inputs: [
|
|
4940
|
+
{
|
|
4941
|
+
name: "account",
|
|
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: "getAppsByCreator",
|
|
4995
|
+
inputs: [
|
|
4996
|
+
{
|
|
4997
|
+
name: "creator",
|
|
4998
|
+
type: "address",
|
|
4999
|
+
internalType: "address"
|
|
5000
|
+
},
|
|
5001
|
+
{
|
|
5002
|
+
name: "offset",
|
|
5003
|
+
type: "uint256",
|
|
5004
|
+
internalType: "uint256"
|
|
5005
|
+
},
|
|
5006
|
+
{
|
|
5007
|
+
name: "limit",
|
|
5008
|
+
type: "uint256",
|
|
5009
|
+
internalType: "uint256"
|
|
5010
|
+
}
|
|
5011
|
+
],
|
|
5012
|
+
outputs: [
|
|
5013
|
+
{
|
|
5014
|
+
name: "apps",
|
|
5015
|
+
type: "address[]",
|
|
5016
|
+
internalType: "contractIApp[]"
|
|
5017
|
+
},
|
|
5018
|
+
{
|
|
5019
|
+
name: "appConfigsMem",
|
|
5020
|
+
type: "tuple[]",
|
|
5021
|
+
internalType: "structIAppController.AppConfig[]",
|
|
5022
|
+
components: [
|
|
5023
|
+
{
|
|
5024
|
+
name: "creator",
|
|
5025
|
+
type: "address",
|
|
5026
|
+
internalType: "address"
|
|
5027
|
+
},
|
|
5028
|
+
{
|
|
5029
|
+
name: "operatorSetId",
|
|
5030
|
+
type: "uint32",
|
|
5031
|
+
internalType: "uint32"
|
|
5032
|
+
},
|
|
5033
|
+
{
|
|
5034
|
+
name: "latestReleaseBlockNumber",
|
|
5035
|
+
type: "uint32",
|
|
5036
|
+
internalType: "uint32"
|
|
5037
|
+
},
|
|
5038
|
+
{
|
|
5039
|
+
name: "status",
|
|
5040
|
+
type: "uint8",
|
|
5041
|
+
internalType: "enumIAppController.AppStatus"
|
|
5042
|
+
}
|
|
5043
|
+
]
|
|
5044
|
+
}
|
|
5045
|
+
],
|
|
5046
|
+
stateMutability: "view"
|
|
5047
|
+
},
|
|
5048
|
+
{
|
|
5049
|
+
type: "function",
|
|
5050
|
+
name: "getAppsByDeveloper",
|
|
5051
|
+
inputs: [
|
|
5052
|
+
{
|
|
5053
|
+
name: "developer",
|
|
5054
|
+
type: "address",
|
|
5055
|
+
internalType: "address"
|
|
5056
|
+
},
|
|
5057
|
+
{
|
|
5058
|
+
name: "offset",
|
|
5059
|
+
type: "uint256",
|
|
5060
|
+
internalType: "uint256"
|
|
5061
|
+
},
|
|
5062
|
+
{
|
|
5063
|
+
name: "limit",
|
|
5064
|
+
type: "uint256",
|
|
5065
|
+
internalType: "uint256"
|
|
5066
|
+
}
|
|
5067
|
+
],
|
|
5068
|
+
outputs: [
|
|
5069
|
+
{
|
|
5070
|
+
name: "apps",
|
|
5071
|
+
type: "address[]",
|
|
5072
|
+
internalType: "contractIApp[]"
|
|
5073
|
+
},
|
|
5074
|
+
{
|
|
5075
|
+
name: "appConfigsMem",
|
|
5076
|
+
type: "tuple[]",
|
|
5077
|
+
internalType: "structIAppController.AppConfig[]",
|
|
5078
|
+
components: [
|
|
5079
|
+
{
|
|
5080
|
+
name: "creator",
|
|
5081
|
+
type: "address",
|
|
5082
|
+
internalType: "address"
|
|
5083
|
+
},
|
|
5084
|
+
{
|
|
5085
|
+
name: "operatorSetId",
|
|
5086
|
+
type: "uint32",
|
|
5087
|
+
internalType: "uint32"
|
|
5088
|
+
},
|
|
5089
|
+
{
|
|
5090
|
+
name: "latestReleaseBlockNumber",
|
|
5091
|
+
type: "uint32",
|
|
5092
|
+
internalType: "uint32"
|
|
5093
|
+
},
|
|
5094
|
+
{
|
|
5095
|
+
name: "status",
|
|
5096
|
+
type: "uint8",
|
|
5097
|
+
internalType: "enumIAppController.AppStatus"
|
|
5098
|
+
}
|
|
5099
|
+
]
|
|
5100
|
+
}
|
|
5101
|
+
],
|
|
5102
|
+
stateMutability: "view"
|
|
5103
|
+
},
|
|
5104
|
+
{
|
|
5105
|
+
type: "function",
|
|
5106
|
+
name: "getMaxActiveAppsPerUser",
|
|
5107
|
+
inputs: [
|
|
5108
|
+
{
|
|
5109
|
+
name: "user",
|
|
5110
|
+
type: "address",
|
|
5111
|
+
internalType: "address"
|
|
5112
|
+
}
|
|
5113
|
+
],
|
|
5114
|
+
outputs: [
|
|
5115
|
+
{
|
|
5116
|
+
name: "",
|
|
5117
|
+
type: "uint32",
|
|
5118
|
+
internalType: "uint32"
|
|
5119
|
+
}
|
|
5120
|
+
],
|
|
5121
|
+
stateMutability: "view"
|
|
5122
|
+
},
|
|
5123
|
+
{
|
|
5124
|
+
type: "function",
|
|
5125
|
+
name: "globalActiveAppCount",
|
|
5126
|
+
inputs: [],
|
|
5127
|
+
outputs: [
|
|
5128
|
+
{
|
|
5129
|
+
name: "",
|
|
5130
|
+
type: "uint32",
|
|
5131
|
+
internalType: "uint32"
|
|
5132
|
+
}
|
|
5133
|
+
],
|
|
5134
|
+
stateMutability: "view"
|
|
5135
|
+
},
|
|
5136
|
+
{
|
|
5137
|
+
type: "function",
|
|
5138
|
+
name: "initialize",
|
|
5139
|
+
inputs: [
|
|
5140
|
+
{
|
|
5141
|
+
name: "admin",
|
|
5142
|
+
type: "address",
|
|
5143
|
+
internalType: "address"
|
|
5144
|
+
}
|
|
5145
|
+
],
|
|
5146
|
+
outputs: [],
|
|
5147
|
+
stateMutability: "nonpayable"
|
|
5148
|
+
},
|
|
5149
|
+
{
|
|
5150
|
+
type: "function",
|
|
5151
|
+
name: "maxGlobalActiveApps",
|
|
5152
|
+
inputs: [],
|
|
5153
|
+
outputs: [
|
|
5154
|
+
{
|
|
5155
|
+
name: "",
|
|
5156
|
+
type: "uint32",
|
|
5157
|
+
internalType: "uint32"
|
|
5158
|
+
}
|
|
5159
|
+
],
|
|
5160
|
+
stateMutability: "view"
|
|
5161
|
+
},
|
|
5162
|
+
{
|
|
5163
|
+
type: "function",
|
|
5164
|
+
name: "permissionController",
|
|
5165
|
+
inputs: [],
|
|
5166
|
+
outputs: [
|
|
5167
|
+
{
|
|
5168
|
+
name: "",
|
|
5169
|
+
type: "address",
|
|
5170
|
+
internalType: "contractIPermissionController"
|
|
5171
|
+
}
|
|
5172
|
+
],
|
|
5173
|
+
stateMutability: "view"
|
|
5174
|
+
},
|
|
5175
|
+
{
|
|
5176
|
+
type: "function",
|
|
5177
|
+
name: "releaseManager",
|
|
5178
|
+
inputs: [],
|
|
5179
|
+
outputs: [
|
|
5180
|
+
{
|
|
5181
|
+
name: "",
|
|
5182
|
+
type: "address",
|
|
5183
|
+
internalType: "contractIReleaseManager"
|
|
5184
|
+
}
|
|
5185
|
+
],
|
|
5186
|
+
stateMutability: "view"
|
|
5187
|
+
},
|
|
5188
|
+
{
|
|
5189
|
+
type: "function",
|
|
5190
|
+
name: "setMaxActiveAppsPerUser",
|
|
5191
|
+
inputs: [
|
|
5192
|
+
{
|
|
5193
|
+
name: "user",
|
|
5194
|
+
type: "address",
|
|
5195
|
+
internalType: "address"
|
|
5196
|
+
},
|
|
5197
|
+
{
|
|
5198
|
+
name: "limit",
|
|
5199
|
+
type: "uint32",
|
|
5200
|
+
internalType: "uint32"
|
|
5201
|
+
}
|
|
5202
|
+
],
|
|
5203
|
+
outputs: [],
|
|
5204
|
+
stateMutability: "nonpayable"
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
type: "function",
|
|
5208
|
+
name: "setMaxGlobalActiveApps",
|
|
5209
|
+
inputs: [
|
|
5210
|
+
{
|
|
5211
|
+
name: "limit",
|
|
5212
|
+
type: "uint32",
|
|
5213
|
+
internalType: "uint32"
|
|
5214
|
+
}
|
|
5215
|
+
],
|
|
5216
|
+
outputs: [],
|
|
5217
|
+
stateMutability: "nonpayable"
|
|
5218
|
+
},
|
|
5219
|
+
{
|
|
5220
|
+
type: "function",
|
|
5221
|
+
name: "startApp",
|
|
5222
|
+
inputs: [
|
|
5223
|
+
{
|
|
5224
|
+
name: "app",
|
|
5225
|
+
type: "address",
|
|
5226
|
+
internalType: "contractIApp"
|
|
5227
|
+
}
|
|
5228
|
+
],
|
|
5229
|
+
outputs: [],
|
|
5230
|
+
stateMutability: "nonpayable"
|
|
5231
|
+
},
|
|
5232
|
+
{
|
|
5233
|
+
type: "function",
|
|
5234
|
+
name: "stopApp",
|
|
5235
|
+
inputs: [
|
|
5236
|
+
{
|
|
5237
|
+
name: "app",
|
|
5238
|
+
type: "address",
|
|
5239
|
+
internalType: "contractIApp"
|
|
5240
|
+
}
|
|
5241
|
+
],
|
|
5242
|
+
outputs: [],
|
|
5243
|
+
stateMutability: "nonpayable"
|
|
5244
|
+
},
|
|
5245
|
+
{
|
|
5246
|
+
type: "function",
|
|
5247
|
+
name: "suspend",
|
|
5248
|
+
inputs: [
|
|
5249
|
+
{
|
|
5250
|
+
name: "account",
|
|
5251
|
+
type: "address",
|
|
5252
|
+
internalType: "address"
|
|
5253
|
+
},
|
|
5254
|
+
{
|
|
5255
|
+
name: "apps",
|
|
5256
|
+
type: "address[]",
|
|
5257
|
+
internalType: "contractIApp[]"
|
|
5258
|
+
}
|
|
5259
|
+
],
|
|
5260
|
+
outputs: [],
|
|
5261
|
+
stateMutability: "nonpayable"
|
|
5262
|
+
},
|
|
5263
|
+
{
|
|
5264
|
+
type: "function",
|
|
5265
|
+
name: "terminateApp",
|
|
5266
|
+
inputs: [
|
|
5267
|
+
{
|
|
5268
|
+
name: "app",
|
|
5269
|
+
type: "address",
|
|
5270
|
+
internalType: "contractIApp"
|
|
5271
|
+
}
|
|
5272
|
+
],
|
|
5273
|
+
outputs: [],
|
|
5274
|
+
stateMutability: "nonpayable"
|
|
5275
|
+
},
|
|
5276
|
+
{
|
|
5277
|
+
type: "function",
|
|
5278
|
+
name: "terminateAppByAdmin",
|
|
5279
|
+
inputs: [
|
|
5280
|
+
{
|
|
5281
|
+
name: "app",
|
|
5282
|
+
type: "address",
|
|
5283
|
+
internalType: "contractIApp"
|
|
5284
|
+
}
|
|
5285
|
+
],
|
|
5286
|
+
outputs: [],
|
|
5287
|
+
stateMutability: "nonpayable"
|
|
5288
|
+
},
|
|
5289
|
+
{
|
|
5290
|
+
type: "function",
|
|
5291
|
+
name: "updateAppMetadataURI",
|
|
5292
|
+
inputs: [
|
|
5293
|
+
{
|
|
5294
|
+
name: "app",
|
|
5295
|
+
type: "address",
|
|
5296
|
+
internalType: "contractIApp"
|
|
5297
|
+
},
|
|
5298
|
+
{
|
|
5299
|
+
name: "metadataURI",
|
|
5300
|
+
type: "string",
|
|
5301
|
+
internalType: "string"
|
|
5302
|
+
}
|
|
5303
|
+
],
|
|
5304
|
+
outputs: [],
|
|
5305
|
+
stateMutability: "nonpayable"
|
|
5306
|
+
},
|
|
5307
|
+
{
|
|
5308
|
+
type: "function",
|
|
5309
|
+
name: "upgradeApp",
|
|
5310
|
+
inputs: [
|
|
5311
|
+
{
|
|
5312
|
+
name: "app",
|
|
5313
|
+
type: "address",
|
|
5314
|
+
internalType: "contractIApp"
|
|
5315
|
+
},
|
|
5316
|
+
{
|
|
5317
|
+
name: "release",
|
|
5318
|
+
type: "tuple",
|
|
5319
|
+
internalType: "structIAppController.Release",
|
|
5320
|
+
components: [
|
|
5321
|
+
{
|
|
5322
|
+
name: "rmsRelease",
|
|
5323
|
+
type: "tuple",
|
|
5324
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
5325
|
+
components: [
|
|
5326
|
+
{
|
|
5327
|
+
name: "artifacts",
|
|
5328
|
+
type: "tuple[]",
|
|
5329
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
5330
|
+
components: [
|
|
5331
|
+
{
|
|
5332
|
+
name: "digest",
|
|
5333
|
+
type: "bytes32",
|
|
5334
|
+
internalType: "bytes32"
|
|
5335
|
+
},
|
|
5336
|
+
{
|
|
5337
|
+
name: "registry",
|
|
5338
|
+
type: "string",
|
|
5339
|
+
internalType: "string"
|
|
5340
|
+
}
|
|
5341
|
+
]
|
|
5342
|
+
},
|
|
5343
|
+
{
|
|
5344
|
+
name: "upgradeByTime",
|
|
5345
|
+
type: "uint32",
|
|
5346
|
+
internalType: "uint32"
|
|
5347
|
+
}
|
|
5348
|
+
]
|
|
5349
|
+
},
|
|
5350
|
+
{
|
|
5351
|
+
name: "publicEnv",
|
|
5352
|
+
type: "bytes",
|
|
5353
|
+
internalType: "bytes"
|
|
5354
|
+
},
|
|
5355
|
+
{
|
|
5356
|
+
name: "encryptedEnv",
|
|
5357
|
+
type: "bytes",
|
|
5358
|
+
internalType: "bytes"
|
|
5359
|
+
}
|
|
5360
|
+
]
|
|
5361
|
+
}
|
|
5362
|
+
],
|
|
5363
|
+
outputs: [
|
|
5364
|
+
{
|
|
5365
|
+
name: "",
|
|
5366
|
+
type: "uint256",
|
|
5367
|
+
internalType: "uint256"
|
|
5368
|
+
}
|
|
5369
|
+
],
|
|
5370
|
+
stateMutability: "nonpayable"
|
|
5371
|
+
},
|
|
5372
|
+
{
|
|
5373
|
+
type: "function",
|
|
5374
|
+
name: "version",
|
|
5375
|
+
inputs: [],
|
|
5376
|
+
outputs: [
|
|
5377
|
+
{
|
|
5378
|
+
name: "",
|
|
5379
|
+
type: "string",
|
|
5380
|
+
internalType: "string"
|
|
5381
|
+
}
|
|
5382
|
+
],
|
|
5383
|
+
stateMutability: "view"
|
|
5384
|
+
},
|
|
5385
|
+
{
|
|
5386
|
+
type: "event",
|
|
5387
|
+
name: "AppCreated",
|
|
5388
|
+
inputs: [
|
|
5389
|
+
{
|
|
5390
|
+
name: "creator",
|
|
5391
|
+
type: "address",
|
|
5392
|
+
indexed: true,
|
|
5393
|
+
internalType: "address"
|
|
5394
|
+
},
|
|
5395
|
+
{
|
|
5396
|
+
name: "app",
|
|
5397
|
+
type: "address",
|
|
5398
|
+
indexed: true,
|
|
5399
|
+
internalType: "contractIApp"
|
|
5400
|
+
},
|
|
5401
|
+
{
|
|
5402
|
+
name: "operatorSetId",
|
|
5403
|
+
type: "uint32",
|
|
5404
|
+
indexed: false,
|
|
5405
|
+
internalType: "uint32"
|
|
5406
|
+
}
|
|
5407
|
+
],
|
|
5408
|
+
anonymous: false
|
|
5409
|
+
},
|
|
5410
|
+
{
|
|
5411
|
+
type: "event",
|
|
5412
|
+
name: "AppMetadataURIUpdated",
|
|
5413
|
+
inputs: [
|
|
5414
|
+
{
|
|
5415
|
+
name: "app",
|
|
5416
|
+
type: "address",
|
|
5417
|
+
indexed: true,
|
|
5418
|
+
internalType: "contractIApp"
|
|
5419
|
+
},
|
|
5420
|
+
{
|
|
5421
|
+
name: "metadataURI",
|
|
5422
|
+
type: "string",
|
|
5423
|
+
indexed: false,
|
|
5424
|
+
internalType: "string"
|
|
5425
|
+
}
|
|
5426
|
+
],
|
|
5427
|
+
anonymous: false
|
|
5428
|
+
},
|
|
5429
|
+
{
|
|
5430
|
+
type: "event",
|
|
5431
|
+
name: "AppStarted",
|
|
5432
|
+
inputs: [
|
|
5433
|
+
{
|
|
5434
|
+
name: "app",
|
|
5435
|
+
type: "address",
|
|
5436
|
+
indexed: true,
|
|
5437
|
+
internalType: "contractIApp"
|
|
5438
|
+
}
|
|
5439
|
+
],
|
|
5440
|
+
anonymous: false
|
|
5441
|
+
},
|
|
5442
|
+
{
|
|
5443
|
+
type: "event",
|
|
5444
|
+
name: "AppStopped",
|
|
5445
|
+
inputs: [
|
|
5446
|
+
{
|
|
5447
|
+
name: "app",
|
|
5448
|
+
type: "address",
|
|
5449
|
+
indexed: true,
|
|
5450
|
+
internalType: "contractIApp"
|
|
5451
|
+
}
|
|
5452
|
+
],
|
|
5453
|
+
anonymous: false
|
|
5454
|
+
},
|
|
5455
|
+
{
|
|
5456
|
+
type: "event",
|
|
5457
|
+
name: "AppSuspended",
|
|
5458
|
+
inputs: [
|
|
5459
|
+
{
|
|
5460
|
+
name: "app",
|
|
5461
|
+
type: "address",
|
|
5462
|
+
indexed: true,
|
|
5463
|
+
internalType: "contractIApp"
|
|
5464
|
+
}
|
|
5465
|
+
],
|
|
5466
|
+
anonymous: false
|
|
5467
|
+
},
|
|
5468
|
+
{
|
|
5469
|
+
type: "event",
|
|
5470
|
+
name: "AppTerminated",
|
|
5471
|
+
inputs: [
|
|
5472
|
+
{
|
|
5473
|
+
name: "app",
|
|
5474
|
+
type: "address",
|
|
5475
|
+
indexed: true,
|
|
5476
|
+
internalType: "contractIApp"
|
|
5477
|
+
}
|
|
5478
|
+
],
|
|
5479
|
+
anonymous: false
|
|
5480
|
+
},
|
|
5481
|
+
{
|
|
5482
|
+
type: "event",
|
|
5483
|
+
name: "AppTerminatedByAdmin",
|
|
5484
|
+
inputs: [
|
|
5485
|
+
{
|
|
5486
|
+
name: "app",
|
|
5487
|
+
type: "address",
|
|
5488
|
+
indexed: true,
|
|
5489
|
+
internalType: "contractIApp"
|
|
5490
|
+
}
|
|
5491
|
+
],
|
|
5492
|
+
anonymous: false
|
|
5493
|
+
},
|
|
5494
|
+
{
|
|
5495
|
+
type: "event",
|
|
5496
|
+
name: "AppUpgraded",
|
|
5497
|
+
inputs: [
|
|
5498
|
+
{
|
|
5499
|
+
name: "app",
|
|
5500
|
+
type: "address",
|
|
5501
|
+
indexed: true,
|
|
5502
|
+
internalType: "contractIApp"
|
|
5503
|
+
},
|
|
5504
|
+
{
|
|
5505
|
+
name: "rmsReleaseId",
|
|
5506
|
+
type: "uint256",
|
|
5507
|
+
indexed: false,
|
|
5508
|
+
internalType: "uint256"
|
|
5509
|
+
},
|
|
5510
|
+
{
|
|
5511
|
+
name: "release",
|
|
5512
|
+
type: "tuple",
|
|
5513
|
+
indexed: false,
|
|
5514
|
+
internalType: "structIAppController.Release",
|
|
5515
|
+
components: [
|
|
5516
|
+
{
|
|
5517
|
+
name: "rmsRelease",
|
|
5518
|
+
type: "tuple",
|
|
5519
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
5520
|
+
components: [
|
|
5521
|
+
{
|
|
5522
|
+
name: "artifacts",
|
|
5523
|
+
type: "tuple[]",
|
|
5524
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
5525
|
+
components: [
|
|
5526
|
+
{
|
|
5527
|
+
name: "digest",
|
|
5528
|
+
type: "bytes32",
|
|
5529
|
+
internalType: "bytes32"
|
|
5530
|
+
},
|
|
5531
|
+
{
|
|
5532
|
+
name: "registry",
|
|
5533
|
+
type: "string",
|
|
5534
|
+
internalType: "string"
|
|
5535
|
+
}
|
|
5536
|
+
]
|
|
5537
|
+
},
|
|
5538
|
+
{
|
|
5539
|
+
name: "upgradeByTime",
|
|
5540
|
+
type: "uint32",
|
|
5541
|
+
internalType: "uint32"
|
|
5542
|
+
}
|
|
5543
|
+
]
|
|
5544
|
+
},
|
|
5545
|
+
{
|
|
5546
|
+
name: "publicEnv",
|
|
5547
|
+
type: "bytes",
|
|
5548
|
+
internalType: "bytes"
|
|
5549
|
+
},
|
|
5550
|
+
{
|
|
5551
|
+
name: "encryptedEnv",
|
|
5552
|
+
type: "bytes",
|
|
5553
|
+
internalType: "bytes"
|
|
5554
|
+
}
|
|
5555
|
+
]
|
|
5556
|
+
}
|
|
5557
|
+
],
|
|
5558
|
+
anonymous: false
|
|
5559
|
+
},
|
|
5560
|
+
{
|
|
5561
|
+
type: "event",
|
|
5562
|
+
name: "GlobalMaxActiveAppsSet",
|
|
5563
|
+
inputs: [
|
|
5564
|
+
{
|
|
5565
|
+
name: "limit",
|
|
5566
|
+
type: "uint32",
|
|
5567
|
+
indexed: false,
|
|
5568
|
+
internalType: "uint32"
|
|
5569
|
+
}
|
|
5570
|
+
],
|
|
5571
|
+
anonymous: false
|
|
5572
|
+
},
|
|
5573
|
+
{
|
|
5574
|
+
type: "event",
|
|
5575
|
+
name: "Initialized",
|
|
5576
|
+
inputs: [
|
|
5577
|
+
{
|
|
4019
5578
|
name: "version",
|
|
4020
5579
|
type: "uint8",
|
|
4021
5580
|
indexed: false,
|
|
@@ -4613,6 +6172,38 @@ var PermissionController_default = [
|
|
|
4613
6172
|
];
|
|
4614
6173
|
|
|
4615
6174
|
// src/client/common/contract/caller.ts
|
|
6175
|
+
function appControllerAbiFor(environmentConfig) {
|
|
6176
|
+
return environmentConfig.releaseAbiVersion === "v1.4" ? AppController_v1_4_default : AppController_default;
|
|
6177
|
+
}
|
|
6178
|
+
function supportsContainerPolicy(environmentConfig) {
|
|
6179
|
+
return environmentConfig.releaseAbiVersion !== "v1.4";
|
|
6180
|
+
}
|
|
6181
|
+
function containerPolicyForViem(policy = EMPTY_CONTAINER_POLICY) {
|
|
6182
|
+
return {
|
|
6183
|
+
args: policy.args,
|
|
6184
|
+
cmdOverride: policy.cmdOverride,
|
|
6185
|
+
env: policy.env.map((e) => ({ key: e.key, value: e.value })),
|
|
6186
|
+
envOverride: policy.envOverride.map((e) => ({ key: e.key, value: e.value })),
|
|
6187
|
+
restartPolicy: policy.restartPolicy
|
|
6188
|
+
};
|
|
6189
|
+
}
|
|
6190
|
+
function releaseForViem(release, environmentConfig) {
|
|
6191
|
+
const base = {
|
|
6192
|
+
rmsRelease: {
|
|
6193
|
+
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
6194
|
+
digest: `0x${(0, import_viem5.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
6195
|
+
registry: artifact.registry
|
|
6196
|
+
})),
|
|
6197
|
+
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
6198
|
+
},
|
|
6199
|
+
publicEnv: (0, import_viem5.bytesToHex)(release.publicEnv),
|
|
6200
|
+
encryptedEnv: (0, import_viem5.bytesToHex)(release.encryptedEnv)
|
|
6201
|
+
};
|
|
6202
|
+
if (!supportsContainerPolicy(environmentConfig)) {
|
|
6203
|
+
return base;
|
|
6204
|
+
}
|
|
6205
|
+
return { ...base, containerPolicy: containerPolicyForViem(release.containerPolicy) };
|
|
6206
|
+
}
|
|
4616
6207
|
function formatETH(wei) {
|
|
4617
6208
|
const eth = Number(wei) / 1e18;
|
|
4618
6209
|
const costStr = eth.toFixed(6);
|
|
@@ -4650,7 +6241,7 @@ async function calculateAppID(options) {
|
|
|
4650
6241
|
const saltHex = `0x${paddedSaltHex}`;
|
|
4651
6242
|
const appID = await publicClient.readContract({
|
|
4652
6243
|
address: environmentConfig.appControllerAddress,
|
|
4653
|
-
abi:
|
|
6244
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4654
6245
|
functionName: "calculateAppId",
|
|
4655
6246
|
args: [ownerAddress, saltHex]
|
|
4656
6247
|
});
|
|
@@ -4674,22 +6265,12 @@ async function prepareDeployBatch(options, logger = noopLogger) {
|
|
|
4674
6265
|
const saltHexString = (0, import_viem5.bytesToHex)(salt).slice(2);
|
|
4675
6266
|
const paddedSaltHex = saltHexString.padStart(64, "0");
|
|
4676
6267
|
const saltHex = `0x${paddedSaltHex}`;
|
|
4677
|
-
const
|
|
4678
|
-
rmsRelease: {
|
|
4679
|
-
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
4680
|
-
digest: `0x${(0, import_viem5.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
4681
|
-
registry: artifact.registry
|
|
4682
|
-
})),
|
|
4683
|
-
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
4684
|
-
},
|
|
4685
|
-
publicEnv: (0, import_viem5.bytesToHex)(release.publicEnv),
|
|
4686
|
-
encryptedEnv: (0, import_viem5.bytesToHex)(release.encryptedEnv)
|
|
4687
|
-
};
|
|
6268
|
+
const release_ = releaseForViem(release, environmentConfig);
|
|
4688
6269
|
const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
|
|
4689
6270
|
const createData = (0, import_viem5.encodeFunctionData)({
|
|
4690
|
-
abi:
|
|
6271
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4691
6272
|
functionName,
|
|
4692
|
-
args: [saltHex,
|
|
6273
|
+
args: [saltHex, release_]
|
|
4693
6274
|
});
|
|
4694
6275
|
const acceptAdminData = (0, import_viem5.encodeFunctionData)({
|
|
4695
6276
|
abi: PermissionController_default,
|
|
@@ -4945,21 +6526,11 @@ async function prepareUpgradeBatch(options) {
|
|
|
4945
6526
|
publicLogs,
|
|
4946
6527
|
needsPermissionChange
|
|
4947
6528
|
} = options;
|
|
4948
|
-
const
|
|
4949
|
-
rmsRelease: {
|
|
4950
|
-
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
4951
|
-
digest: `0x${(0, import_viem5.bytesToHex)(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
4952
|
-
registry: artifact.registry
|
|
4953
|
-
})),
|
|
4954
|
-
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
4955
|
-
},
|
|
4956
|
-
publicEnv: (0, import_viem5.bytesToHex)(release.publicEnv),
|
|
4957
|
-
encryptedEnv: (0, import_viem5.bytesToHex)(release.encryptedEnv)
|
|
4958
|
-
};
|
|
6529
|
+
const release_ = releaseForViem(release, environmentConfig);
|
|
4959
6530
|
const upgradeData = (0, import_viem5.encodeFunctionData)({
|
|
4960
|
-
abi:
|
|
6531
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4961
6532
|
functionName: "upgradeApp",
|
|
4962
|
-
args: [appID,
|
|
6533
|
+
args: [appID, release_]
|
|
4963
6534
|
});
|
|
4964
6535
|
const executions = [
|
|
4965
6536
|
{
|
|
@@ -5093,7 +6664,7 @@ ${pendingMessage}`);
|
|
|
5093
6664
|
if (callError.data) {
|
|
5094
6665
|
try {
|
|
5095
6666
|
const decoded = (0, import_viem5.decodeErrorResult)({
|
|
5096
|
-
abi:
|
|
6667
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5097
6668
|
data: callError.data
|
|
5098
6669
|
});
|
|
5099
6670
|
const formattedError = formatAppControllerError(decoded);
|
|
@@ -5146,7 +6717,7 @@ function formatAppControllerError(decoded) {
|
|
|
5146
6717
|
async function getActiveAppCount(publicClient, environmentConfig, user) {
|
|
5147
6718
|
const count = await publicClient.readContract({
|
|
5148
6719
|
address: environmentConfig.appControllerAddress,
|
|
5149
|
-
abi:
|
|
6720
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5150
6721
|
functionName: "getActiveAppCount",
|
|
5151
6722
|
args: [user]
|
|
5152
6723
|
});
|
|
@@ -5155,7 +6726,7 @@ async function getActiveAppCount(publicClient, environmentConfig, user) {
|
|
|
5155
6726
|
async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
|
|
5156
6727
|
const quota = await publicClient.readContract({
|
|
5157
6728
|
address: environmentConfig.appControllerAddress,
|
|
5158
|
-
abi:
|
|
6729
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5159
6730
|
functionName: "getMaxActiveAppsPerUser",
|
|
5160
6731
|
args: [user]
|
|
5161
6732
|
});
|
|
@@ -5164,7 +6735,7 @@ async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
|
|
|
5164
6735
|
async function getAppsByCreator(publicClient, environmentConfig, creator, offset, limit) {
|
|
5165
6736
|
const result = await publicClient.readContract({
|
|
5166
6737
|
address: environmentConfig.appControllerAddress,
|
|
5167
|
-
abi:
|
|
6738
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5168
6739
|
functionName: "getAppsByCreator",
|
|
5169
6740
|
args: [creator, offset, limit]
|
|
5170
6741
|
});
|
|
@@ -5176,7 +6747,7 @@ async function getAppsByCreator(publicClient, environmentConfig, creator, offset
|
|
|
5176
6747
|
async function getAppsByDeveloper(publicClient, environmentConfig, developer, offset, limit) {
|
|
5177
6748
|
const result = await publicClient.readContract({
|
|
5178
6749
|
address: environmentConfig.appControllerAddress,
|
|
5179
|
-
abi:
|
|
6750
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5180
6751
|
functionName: "getAppsByDeveloper",
|
|
5181
6752
|
args: [developer, offset, limit]
|
|
5182
6753
|
});
|
|
@@ -5188,7 +6759,7 @@ async function getAppsByDeveloper(publicClient, environmentConfig, developer, of
|
|
|
5188
6759
|
async function getBillingType(publicClient, environmentConfig, app) {
|
|
5189
6760
|
const result = await publicClient.readContract({
|
|
5190
6761
|
address: environmentConfig.appControllerAddress,
|
|
5191
|
-
abi:
|
|
6762
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5192
6763
|
functionName: "getBillingType",
|
|
5193
6764
|
args: [app]
|
|
5194
6765
|
});
|
|
@@ -5197,7 +6768,7 @@ async function getBillingType(publicClient, environmentConfig, app) {
|
|
|
5197
6768
|
async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
|
|
5198
6769
|
const result = await publicClient.readContract({
|
|
5199
6770
|
address: environmentConfig.appControllerAddress,
|
|
5200
|
-
abi:
|
|
6771
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5201
6772
|
functionName: "getAppsByBillingAccount",
|
|
5202
6773
|
args: [account, offset, limit]
|
|
5203
6774
|
});
|
|
@@ -5229,7 +6800,7 @@ async function getAllAppsByDeveloper(publicClient, env, developer, pageSize = 10
|
|
|
5229
6800
|
async function suspend(options, logger = noopLogger) {
|
|
5230
6801
|
const { walletClient, publicClient, environmentConfig, account, apps } = options;
|
|
5231
6802
|
const suspendData = (0, import_viem5.encodeFunctionData)({
|
|
5232
|
-
abi:
|
|
6803
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
5233
6804
|
functionName: "suspend",
|
|
5234
6805
|
args: [account, apps]
|
|
5235
6806
|
});
|
|
@@ -5657,6 +7228,7 @@ function getKMSKeysForEnvironment(environment, build = "prod") {
|
|
|
5657
7228
|
BillingApiClient,
|
|
5658
7229
|
BillingSessionError,
|
|
5659
7230
|
BuildApiClient,
|
|
7231
|
+
EMPTY_CONTAINER_POLICY,
|
|
5660
7232
|
SessionError,
|
|
5661
7233
|
UserApiClient,
|
|
5662
7234
|
addHexPrefix,
|