@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/compute.js
CHANGED
|
@@ -1239,6 +1239,13 @@ function extractRegistryNameNoDocker(imageRef) {
|
|
|
1239
1239
|
import { encodeFunctionData, encodeAbiParameters, decodeErrorResult } from "viem";
|
|
1240
1240
|
|
|
1241
1241
|
// src/client/common/types/index.ts
|
|
1242
|
+
var EMPTY_CONTAINER_POLICY = {
|
|
1243
|
+
args: [],
|
|
1244
|
+
cmdOverride: [],
|
|
1245
|
+
env: [],
|
|
1246
|
+
envOverride: [],
|
|
1247
|
+
restartPolicy: ""
|
|
1248
|
+
};
|
|
1242
1249
|
var noopLogger = {
|
|
1243
1250
|
debug: () => {
|
|
1244
1251
|
},
|
|
@@ -2641,6 +2648,19 @@ var AppController_default = [
|
|
|
2641
2648
|
],
|
|
2642
2649
|
stateMutability: "view"
|
|
2643
2650
|
},
|
|
2651
|
+
{
|
|
2652
|
+
type: "function",
|
|
2653
|
+
name: "confirmUpgrade",
|
|
2654
|
+
inputs: [
|
|
2655
|
+
{
|
|
2656
|
+
name: "app",
|
|
2657
|
+
type: "address",
|
|
2658
|
+
internalType: "contractIApp"
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
outputs: [],
|
|
2662
|
+
stateMutability: "nonpayable"
|
|
2663
|
+
},
|
|
2644
2664
|
{
|
|
2645
2665
|
type: "function",
|
|
2646
2666
|
name: "createApp",
|
|
@@ -2693,6 +2713,62 @@ var AppController_default = [
|
|
|
2693
2713
|
name: "encryptedEnv",
|
|
2694
2714
|
type: "bytes",
|
|
2695
2715
|
internalType: "bytes"
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
name: "containerPolicy",
|
|
2719
|
+
type: "tuple",
|
|
2720
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
2721
|
+
components: [
|
|
2722
|
+
{
|
|
2723
|
+
name: "args",
|
|
2724
|
+
type: "string[]",
|
|
2725
|
+
internalType: "string[]"
|
|
2726
|
+
},
|
|
2727
|
+
{
|
|
2728
|
+
name: "cmdOverride",
|
|
2729
|
+
type: "string[]",
|
|
2730
|
+
internalType: "string[]"
|
|
2731
|
+
},
|
|
2732
|
+
{
|
|
2733
|
+
name: "env",
|
|
2734
|
+
type: "tuple[]",
|
|
2735
|
+
internalType: "structIAppController.EnvVar[]",
|
|
2736
|
+
components: [
|
|
2737
|
+
{
|
|
2738
|
+
name: "key",
|
|
2739
|
+
type: "string",
|
|
2740
|
+
internalType: "string"
|
|
2741
|
+
},
|
|
2742
|
+
{
|
|
2743
|
+
name: "value",
|
|
2744
|
+
type: "string",
|
|
2745
|
+
internalType: "string"
|
|
2746
|
+
}
|
|
2747
|
+
]
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
name: "envOverride",
|
|
2751
|
+
type: "tuple[]",
|
|
2752
|
+
internalType: "structIAppController.EnvVar[]",
|
|
2753
|
+
components: [
|
|
2754
|
+
{
|
|
2755
|
+
name: "key",
|
|
2756
|
+
type: "string",
|
|
2757
|
+
internalType: "string"
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
name: "value",
|
|
2761
|
+
type: "string",
|
|
2762
|
+
internalType: "string"
|
|
2763
|
+
}
|
|
2764
|
+
]
|
|
2765
|
+
},
|
|
2766
|
+
{
|
|
2767
|
+
name: "restartPolicy",
|
|
2768
|
+
type: "string",
|
|
2769
|
+
internalType: "string"
|
|
2770
|
+
}
|
|
2771
|
+
]
|
|
2696
2772
|
}
|
|
2697
2773
|
]
|
|
2698
2774
|
}
|
|
@@ -2758,6 +2834,62 @@ var AppController_default = [
|
|
|
2758
2834
|
name: "encryptedEnv",
|
|
2759
2835
|
type: "bytes",
|
|
2760
2836
|
internalType: "bytes"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
name: "containerPolicy",
|
|
2840
|
+
type: "tuple",
|
|
2841
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
2842
|
+
components: [
|
|
2843
|
+
{
|
|
2844
|
+
name: "args",
|
|
2845
|
+
type: "string[]",
|
|
2846
|
+
internalType: "string[]"
|
|
2847
|
+
},
|
|
2848
|
+
{
|
|
2849
|
+
name: "cmdOverride",
|
|
2850
|
+
type: "string[]",
|
|
2851
|
+
internalType: "string[]"
|
|
2852
|
+
},
|
|
2853
|
+
{
|
|
2854
|
+
name: "env",
|
|
2855
|
+
type: "tuple[]",
|
|
2856
|
+
internalType: "structIAppController.EnvVar[]",
|
|
2857
|
+
components: [
|
|
2858
|
+
{
|
|
2859
|
+
name: "key",
|
|
2860
|
+
type: "string",
|
|
2861
|
+
internalType: "string"
|
|
2862
|
+
},
|
|
2863
|
+
{
|
|
2864
|
+
name: "value",
|
|
2865
|
+
type: "string",
|
|
2866
|
+
internalType: "string"
|
|
2867
|
+
}
|
|
2868
|
+
]
|
|
2869
|
+
},
|
|
2870
|
+
{
|
|
2871
|
+
name: "envOverride",
|
|
2872
|
+
type: "tuple[]",
|
|
2873
|
+
internalType: "structIAppController.EnvVar[]",
|
|
2874
|
+
components: [
|
|
2875
|
+
{
|
|
2876
|
+
name: "key",
|
|
2877
|
+
type: "string",
|
|
2878
|
+
internalType: "string"
|
|
2879
|
+
},
|
|
2880
|
+
{
|
|
2881
|
+
name: "value",
|
|
2882
|
+
type: "string",
|
|
2883
|
+
internalType: "string"
|
|
2884
|
+
}
|
|
2885
|
+
]
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
name: "restartPolicy",
|
|
2889
|
+
type: "string",
|
|
2890
|
+
internalType: "string"
|
|
2891
|
+
}
|
|
2892
|
+
]
|
|
2761
2893
|
}
|
|
2762
2894
|
]
|
|
2763
2895
|
}
|
|
@@ -2771,6 +2903,44 @@ var AppController_default = [
|
|
|
2771
2903
|
],
|
|
2772
2904
|
stateMutability: "nonpayable"
|
|
2773
2905
|
},
|
|
2906
|
+
{
|
|
2907
|
+
type: "function",
|
|
2908
|
+
name: "createEmptyApp",
|
|
2909
|
+
inputs: [
|
|
2910
|
+
{
|
|
2911
|
+
name: "salt",
|
|
2912
|
+
type: "bytes32",
|
|
2913
|
+
internalType: "bytes32"
|
|
2914
|
+
}
|
|
2915
|
+
],
|
|
2916
|
+
outputs: [
|
|
2917
|
+
{
|
|
2918
|
+
name: "app",
|
|
2919
|
+
type: "address",
|
|
2920
|
+
internalType: "contractIApp"
|
|
2921
|
+
}
|
|
2922
|
+
],
|
|
2923
|
+
stateMutability: "nonpayable"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
type: "function",
|
|
2927
|
+
name: "createEmptyAppWithIsolatedBilling",
|
|
2928
|
+
inputs: [
|
|
2929
|
+
{
|
|
2930
|
+
name: "salt",
|
|
2931
|
+
type: "bytes32",
|
|
2932
|
+
internalType: "bytes32"
|
|
2933
|
+
}
|
|
2934
|
+
],
|
|
2935
|
+
outputs: [
|
|
2936
|
+
{
|
|
2937
|
+
name: "app",
|
|
2938
|
+
type: "address",
|
|
2939
|
+
internalType: "contractIApp"
|
|
2940
|
+
}
|
|
2941
|
+
],
|
|
2942
|
+
stateMutability: "nonpayable"
|
|
2943
|
+
},
|
|
2774
2944
|
{
|
|
2775
2945
|
type: "function",
|
|
2776
2946
|
name: "domainSeparator",
|
|
@@ -2805,26 +2975,26 @@ var AppController_default = [
|
|
|
2805
2975
|
},
|
|
2806
2976
|
{
|
|
2807
2977
|
type: "function",
|
|
2808
|
-
name: "
|
|
2978
|
+
name: "getAppCreator",
|
|
2809
2979
|
inputs: [
|
|
2810
2980
|
{
|
|
2811
2981
|
name: "app",
|
|
2812
2982
|
type: "address",
|
|
2813
|
-
internalType: "
|
|
2983
|
+
internalType: "contractIApp"
|
|
2814
2984
|
}
|
|
2815
2985
|
],
|
|
2816
2986
|
outputs: [
|
|
2817
2987
|
{
|
|
2818
2988
|
name: "",
|
|
2819
|
-
type: "
|
|
2820
|
-
internalType: "
|
|
2989
|
+
type: "address",
|
|
2990
|
+
internalType: "address"
|
|
2821
2991
|
}
|
|
2822
2992
|
],
|
|
2823
2993
|
stateMutability: "view"
|
|
2824
2994
|
},
|
|
2825
2995
|
{
|
|
2826
2996
|
type: "function",
|
|
2827
|
-
name: "
|
|
2997
|
+
name: "getAppLatestReleaseBlockNumber",
|
|
2828
2998
|
inputs: [
|
|
2829
2999
|
{
|
|
2830
3000
|
name: "app",
|
|
@@ -2835,15 +3005,15 @@ var AppController_default = [
|
|
|
2835
3005
|
outputs: [
|
|
2836
3006
|
{
|
|
2837
3007
|
name: "",
|
|
2838
|
-
type: "
|
|
2839
|
-
internalType: "
|
|
3008
|
+
type: "uint32",
|
|
3009
|
+
internalType: "uint32"
|
|
2840
3010
|
}
|
|
2841
3011
|
],
|
|
2842
3012
|
stateMutability: "view"
|
|
2843
3013
|
},
|
|
2844
3014
|
{
|
|
2845
3015
|
type: "function",
|
|
2846
|
-
name: "
|
|
3016
|
+
name: "getAppOperatorSetId",
|
|
2847
3017
|
inputs: [
|
|
2848
3018
|
{
|
|
2849
3019
|
name: "app",
|
|
@@ -2862,7 +3032,7 @@ var AppController_default = [
|
|
|
2862
3032
|
},
|
|
2863
3033
|
{
|
|
2864
3034
|
type: "function",
|
|
2865
|
-
name: "
|
|
3035
|
+
name: "getAppPendingReleaseBlockNumber",
|
|
2866
3036
|
inputs: [
|
|
2867
3037
|
{
|
|
2868
3038
|
name: "app",
|
|
@@ -2939,6 +3109,11 @@ var AppController_default = [
|
|
|
2939
3109
|
type: "uint32",
|
|
2940
3110
|
internalType: "uint32"
|
|
2941
3111
|
},
|
|
3112
|
+
{
|
|
3113
|
+
name: "pendingReleaseBlockNumber",
|
|
3114
|
+
type: "uint32",
|
|
3115
|
+
internalType: "uint32"
|
|
3116
|
+
},
|
|
2942
3117
|
{
|
|
2943
3118
|
name: "status",
|
|
2944
3119
|
type: "uint8",
|
|
@@ -2995,6 +3170,11 @@ var AppController_default = [
|
|
|
2995
3170
|
type: "uint32",
|
|
2996
3171
|
internalType: "uint32"
|
|
2997
3172
|
},
|
|
3173
|
+
{
|
|
3174
|
+
name: "pendingReleaseBlockNumber",
|
|
3175
|
+
type: "uint32",
|
|
3176
|
+
internalType: "uint32"
|
|
3177
|
+
},
|
|
2998
3178
|
{
|
|
2999
3179
|
name: "status",
|
|
3000
3180
|
type: "uint8",
|
|
@@ -3051,6 +3231,11 @@ var AppController_default = [
|
|
|
3051
3231
|
type: "uint32",
|
|
3052
3232
|
internalType: "uint32"
|
|
3053
3233
|
},
|
|
3234
|
+
{
|
|
3235
|
+
name: "pendingReleaseBlockNumber",
|
|
3236
|
+
type: "uint32",
|
|
3237
|
+
internalType: "uint32"
|
|
3238
|
+
},
|
|
3054
3239
|
{
|
|
3055
3240
|
name: "status",
|
|
3056
3241
|
type: "uint8",
|
|
@@ -3107,6 +3292,11 @@ var AppController_default = [
|
|
|
3107
3292
|
type: "uint32",
|
|
3108
3293
|
internalType: "uint32"
|
|
3109
3294
|
},
|
|
3295
|
+
{
|
|
3296
|
+
name: "pendingReleaseBlockNumber",
|
|
3297
|
+
type: "uint32",
|
|
3298
|
+
internalType: "uint32"
|
|
3299
|
+
},
|
|
3110
3300
|
{
|
|
3111
3301
|
name: "status",
|
|
3112
3302
|
type: "uint8",
|
|
@@ -3117,6 +3307,44 @@ var AppController_default = [
|
|
|
3117
3307
|
],
|
|
3118
3308
|
stateMutability: "view"
|
|
3119
3309
|
},
|
|
3310
|
+
{
|
|
3311
|
+
type: "function",
|
|
3312
|
+
name: "getBillingAccount",
|
|
3313
|
+
inputs: [
|
|
3314
|
+
{
|
|
3315
|
+
name: "app",
|
|
3316
|
+
type: "address",
|
|
3317
|
+
internalType: "contractIApp"
|
|
3318
|
+
}
|
|
3319
|
+
],
|
|
3320
|
+
outputs: [
|
|
3321
|
+
{
|
|
3322
|
+
name: "",
|
|
3323
|
+
type: "address",
|
|
3324
|
+
internalType: "address"
|
|
3325
|
+
}
|
|
3326
|
+
],
|
|
3327
|
+
stateMutability: "view"
|
|
3328
|
+
},
|
|
3329
|
+
{
|
|
3330
|
+
type: "function",
|
|
3331
|
+
name: "getBillingType",
|
|
3332
|
+
inputs: [
|
|
3333
|
+
{
|
|
3334
|
+
name: "app",
|
|
3335
|
+
type: "address",
|
|
3336
|
+
internalType: "contractIApp"
|
|
3337
|
+
}
|
|
3338
|
+
],
|
|
3339
|
+
outputs: [
|
|
3340
|
+
{
|
|
3341
|
+
name: "",
|
|
3342
|
+
type: "uint8",
|
|
3343
|
+
internalType: "enumIAppController.BillingType"
|
|
3344
|
+
}
|
|
3345
|
+
],
|
|
3346
|
+
stateMutability: "view"
|
|
3347
|
+
},
|
|
3120
3348
|
{
|
|
3121
3349
|
type: "function",
|
|
3122
3350
|
name: "getMaxActiveAppsPerUser",
|
|
@@ -3372,6 +3600,62 @@ var AppController_default = [
|
|
|
3372
3600
|
name: "encryptedEnv",
|
|
3373
3601
|
type: "bytes",
|
|
3374
3602
|
internalType: "bytes"
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
name: "containerPolicy",
|
|
3606
|
+
type: "tuple",
|
|
3607
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
3608
|
+
components: [
|
|
3609
|
+
{
|
|
3610
|
+
name: "args",
|
|
3611
|
+
type: "string[]",
|
|
3612
|
+
internalType: "string[]"
|
|
3613
|
+
},
|
|
3614
|
+
{
|
|
3615
|
+
name: "cmdOverride",
|
|
3616
|
+
type: "string[]",
|
|
3617
|
+
internalType: "string[]"
|
|
3618
|
+
},
|
|
3619
|
+
{
|
|
3620
|
+
name: "env",
|
|
3621
|
+
type: "tuple[]",
|
|
3622
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3623
|
+
components: [
|
|
3624
|
+
{
|
|
3625
|
+
name: "key",
|
|
3626
|
+
type: "string",
|
|
3627
|
+
internalType: "string"
|
|
3628
|
+
},
|
|
3629
|
+
{
|
|
3630
|
+
name: "value",
|
|
3631
|
+
type: "string",
|
|
3632
|
+
internalType: "string"
|
|
3633
|
+
}
|
|
3634
|
+
]
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
name: "envOverride",
|
|
3638
|
+
type: "tuple[]",
|
|
3639
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3640
|
+
components: [
|
|
3641
|
+
{
|
|
3642
|
+
name: "key",
|
|
3643
|
+
type: "string",
|
|
3644
|
+
internalType: "string"
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
name: "value",
|
|
3648
|
+
type: "string",
|
|
3649
|
+
internalType: "string"
|
|
3650
|
+
}
|
|
3651
|
+
]
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
name: "restartPolicy",
|
|
3655
|
+
type: "string",
|
|
3656
|
+
internalType: "string"
|
|
3657
|
+
}
|
|
3658
|
+
]
|
|
3375
3659
|
}
|
|
3376
3660
|
]
|
|
3377
3661
|
}
|
|
@@ -3567,30 +3851,1298 @@ var AppController_default = [
|
|
|
3567
3851
|
name: "encryptedEnv",
|
|
3568
3852
|
type: "bytes",
|
|
3569
3853
|
internalType: "bytes"
|
|
3570
|
-
}
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
|
|
3577
|
-
|
|
3578
|
-
|
|
3579
|
-
|
|
3580
|
-
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3588
|
-
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3854
|
+
},
|
|
3855
|
+
{
|
|
3856
|
+
name: "containerPolicy",
|
|
3857
|
+
type: "tuple",
|
|
3858
|
+
internalType: "structIAppController.ContainerPolicy",
|
|
3859
|
+
components: [
|
|
3860
|
+
{
|
|
3861
|
+
name: "args",
|
|
3862
|
+
type: "string[]",
|
|
3863
|
+
internalType: "string[]"
|
|
3864
|
+
},
|
|
3865
|
+
{
|
|
3866
|
+
name: "cmdOverride",
|
|
3867
|
+
type: "string[]",
|
|
3868
|
+
internalType: "string[]"
|
|
3869
|
+
},
|
|
3870
|
+
{
|
|
3871
|
+
name: "env",
|
|
3872
|
+
type: "tuple[]",
|
|
3873
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3874
|
+
components: [
|
|
3875
|
+
{
|
|
3876
|
+
name: "key",
|
|
3877
|
+
type: "string",
|
|
3878
|
+
internalType: "string"
|
|
3879
|
+
},
|
|
3880
|
+
{
|
|
3881
|
+
name: "value",
|
|
3882
|
+
type: "string",
|
|
3883
|
+
internalType: "string"
|
|
3884
|
+
}
|
|
3885
|
+
]
|
|
3886
|
+
},
|
|
3887
|
+
{
|
|
3888
|
+
name: "envOverride",
|
|
3889
|
+
type: "tuple[]",
|
|
3890
|
+
internalType: "structIAppController.EnvVar[]",
|
|
3891
|
+
components: [
|
|
3892
|
+
{
|
|
3893
|
+
name: "key",
|
|
3894
|
+
type: "string",
|
|
3895
|
+
internalType: "string"
|
|
3896
|
+
},
|
|
3897
|
+
{
|
|
3898
|
+
name: "value",
|
|
3899
|
+
type: "string",
|
|
3900
|
+
internalType: "string"
|
|
3901
|
+
}
|
|
3902
|
+
]
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
name: "restartPolicy",
|
|
3906
|
+
type: "string",
|
|
3907
|
+
internalType: "string"
|
|
3908
|
+
}
|
|
3909
|
+
]
|
|
3910
|
+
}
|
|
3911
|
+
]
|
|
3912
|
+
}
|
|
3913
|
+
],
|
|
3914
|
+
anonymous: false
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
type: "event",
|
|
3918
|
+
name: "GlobalMaxActiveAppsSet",
|
|
3919
|
+
inputs: [
|
|
3920
|
+
{
|
|
3921
|
+
name: "limit",
|
|
3922
|
+
type: "uint32",
|
|
3923
|
+
indexed: false,
|
|
3924
|
+
internalType: "uint32"
|
|
3925
|
+
}
|
|
3926
|
+
],
|
|
3927
|
+
anonymous: false
|
|
3928
|
+
},
|
|
3929
|
+
{
|
|
3930
|
+
type: "event",
|
|
3931
|
+
name: "Initialized",
|
|
3932
|
+
inputs: [
|
|
3933
|
+
{
|
|
3934
|
+
name: "version",
|
|
3935
|
+
type: "uint8",
|
|
3936
|
+
indexed: false,
|
|
3937
|
+
internalType: "uint8"
|
|
3938
|
+
}
|
|
3939
|
+
],
|
|
3940
|
+
anonymous: false
|
|
3941
|
+
},
|
|
3942
|
+
{
|
|
3943
|
+
type: "event",
|
|
3944
|
+
name: "MaxActiveAppsSet",
|
|
3945
|
+
inputs: [
|
|
3946
|
+
{
|
|
3947
|
+
name: "user",
|
|
3948
|
+
type: "address",
|
|
3949
|
+
indexed: true,
|
|
3950
|
+
internalType: "address"
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
name: "limit",
|
|
3954
|
+
type: "uint32",
|
|
3955
|
+
indexed: false,
|
|
3956
|
+
internalType: "uint32"
|
|
3957
|
+
}
|
|
3958
|
+
],
|
|
3959
|
+
anonymous: false
|
|
3960
|
+
},
|
|
3961
|
+
{
|
|
3962
|
+
type: "event",
|
|
3963
|
+
name: "UpgradeConfirmed",
|
|
3964
|
+
inputs: [
|
|
3965
|
+
{
|
|
3966
|
+
name: "app",
|
|
3967
|
+
type: "address",
|
|
3968
|
+
indexed: true,
|
|
3969
|
+
internalType: "contractIApp"
|
|
3970
|
+
},
|
|
3971
|
+
{
|
|
3972
|
+
name: "pendingReleaseBlockNumber",
|
|
3973
|
+
type: "uint32",
|
|
3974
|
+
indexed: false,
|
|
3975
|
+
internalType: "uint32"
|
|
3976
|
+
}
|
|
3977
|
+
],
|
|
3978
|
+
anonymous: false
|
|
3979
|
+
},
|
|
3980
|
+
{
|
|
3981
|
+
type: "error",
|
|
3982
|
+
name: "AccountHasActiveApps",
|
|
3983
|
+
inputs: []
|
|
3984
|
+
},
|
|
3985
|
+
{
|
|
3986
|
+
type: "error",
|
|
3987
|
+
name: "AppAlreadyExists",
|
|
3988
|
+
inputs: []
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
type: "error",
|
|
3992
|
+
name: "AppDoesNotExist",
|
|
3993
|
+
inputs: []
|
|
3994
|
+
},
|
|
3995
|
+
{
|
|
3996
|
+
type: "error",
|
|
3997
|
+
name: "GlobalMaxActiveAppsExceeded",
|
|
3998
|
+
inputs: []
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
type: "error",
|
|
4002
|
+
name: "InvalidAppStatus",
|
|
4003
|
+
inputs: []
|
|
4004
|
+
},
|
|
4005
|
+
{
|
|
4006
|
+
type: "error",
|
|
4007
|
+
name: "InvalidPermissions",
|
|
4008
|
+
inputs: []
|
|
4009
|
+
},
|
|
4010
|
+
{
|
|
4011
|
+
type: "error",
|
|
4012
|
+
name: "InvalidReleaseMetadataURI",
|
|
4013
|
+
inputs: []
|
|
4014
|
+
},
|
|
4015
|
+
{
|
|
4016
|
+
type: "error",
|
|
4017
|
+
name: "InvalidShortString",
|
|
4018
|
+
inputs: []
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
type: "error",
|
|
4022
|
+
name: "InvalidSignature",
|
|
4023
|
+
inputs: []
|
|
4024
|
+
},
|
|
4025
|
+
{
|
|
4026
|
+
type: "error",
|
|
4027
|
+
name: "MaxActiveAppsExceeded",
|
|
4028
|
+
inputs: []
|
|
4029
|
+
},
|
|
4030
|
+
{
|
|
4031
|
+
type: "error",
|
|
4032
|
+
name: "MoreThanOneArtifact",
|
|
4033
|
+
inputs: []
|
|
4034
|
+
},
|
|
4035
|
+
{
|
|
4036
|
+
type: "error",
|
|
4037
|
+
name: "NoPendingUpgrade",
|
|
4038
|
+
inputs: []
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
type: "error",
|
|
4042
|
+
name: "SignatureExpired",
|
|
4043
|
+
inputs: []
|
|
4044
|
+
},
|
|
4045
|
+
{
|
|
4046
|
+
type: "error",
|
|
4047
|
+
name: "StringTooLong",
|
|
4048
|
+
inputs: [
|
|
4049
|
+
{
|
|
4050
|
+
name: "str",
|
|
4051
|
+
type: "string",
|
|
4052
|
+
internalType: "string"
|
|
4053
|
+
}
|
|
4054
|
+
]
|
|
4055
|
+
}
|
|
4056
|
+
];
|
|
4057
|
+
|
|
4058
|
+
// src/client/common/abis/AppController.v1_4.json
|
|
4059
|
+
var AppController_v1_4_default = [
|
|
4060
|
+
{
|
|
4061
|
+
type: "constructor",
|
|
4062
|
+
inputs: [
|
|
4063
|
+
{
|
|
4064
|
+
name: "_version",
|
|
4065
|
+
type: "string",
|
|
4066
|
+
internalType: "string"
|
|
4067
|
+
},
|
|
4068
|
+
{
|
|
4069
|
+
name: "_permissionController",
|
|
4070
|
+
type: "address",
|
|
4071
|
+
internalType: "contractIPermissionController"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
name: "_releaseManager",
|
|
4075
|
+
type: "address",
|
|
4076
|
+
internalType: "contractIReleaseManager"
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
name: "_computeAVSRegistrar",
|
|
4080
|
+
type: "address",
|
|
4081
|
+
internalType: "contractIComputeAVSRegistrar"
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
name: "_computeOperator",
|
|
4085
|
+
type: "address",
|
|
4086
|
+
internalType: "contractIComputeOperator"
|
|
4087
|
+
},
|
|
4088
|
+
{
|
|
4089
|
+
name: "_appBeacon",
|
|
4090
|
+
type: "address",
|
|
4091
|
+
internalType: "contractIBeacon"
|
|
4092
|
+
}
|
|
4093
|
+
],
|
|
4094
|
+
stateMutability: "nonpayable"
|
|
4095
|
+
},
|
|
4096
|
+
{
|
|
4097
|
+
type: "function",
|
|
4098
|
+
name: "API_PERMISSION_TYPEHASH",
|
|
4099
|
+
inputs: [],
|
|
4100
|
+
outputs: [
|
|
4101
|
+
{
|
|
4102
|
+
name: "",
|
|
4103
|
+
type: "bytes32",
|
|
4104
|
+
internalType: "bytes32"
|
|
4105
|
+
}
|
|
4106
|
+
],
|
|
4107
|
+
stateMutability: "view"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
type: "function",
|
|
4111
|
+
name: "appBeacon",
|
|
4112
|
+
inputs: [],
|
|
4113
|
+
outputs: [
|
|
4114
|
+
{
|
|
4115
|
+
name: "",
|
|
4116
|
+
type: "address",
|
|
4117
|
+
internalType: "contractIBeacon"
|
|
4118
|
+
}
|
|
4119
|
+
],
|
|
4120
|
+
stateMutability: "view"
|
|
4121
|
+
},
|
|
4122
|
+
{
|
|
4123
|
+
type: "function",
|
|
4124
|
+
name: "calculateApiPermissionDigestHash",
|
|
4125
|
+
inputs: [
|
|
4126
|
+
{
|
|
4127
|
+
name: "permission",
|
|
4128
|
+
type: "bytes4",
|
|
4129
|
+
internalType: "bytes4"
|
|
4130
|
+
},
|
|
4131
|
+
{
|
|
4132
|
+
name: "expiry",
|
|
4133
|
+
type: "uint256",
|
|
4134
|
+
internalType: "uint256"
|
|
4135
|
+
}
|
|
4136
|
+
],
|
|
4137
|
+
outputs: [
|
|
4138
|
+
{
|
|
4139
|
+
name: "",
|
|
4140
|
+
type: "bytes32",
|
|
4141
|
+
internalType: "bytes32"
|
|
4142
|
+
}
|
|
4143
|
+
],
|
|
4144
|
+
stateMutability: "view"
|
|
4145
|
+
},
|
|
4146
|
+
{
|
|
4147
|
+
type: "function",
|
|
4148
|
+
name: "calculateAppId",
|
|
4149
|
+
inputs: [
|
|
4150
|
+
{
|
|
4151
|
+
name: "deployer",
|
|
4152
|
+
type: "address",
|
|
4153
|
+
internalType: "address"
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
name: "salt",
|
|
4157
|
+
type: "bytes32",
|
|
4158
|
+
internalType: "bytes32"
|
|
4159
|
+
}
|
|
4160
|
+
],
|
|
4161
|
+
outputs: [
|
|
4162
|
+
{
|
|
4163
|
+
name: "",
|
|
4164
|
+
type: "address",
|
|
4165
|
+
internalType: "contractIApp"
|
|
4166
|
+
}
|
|
4167
|
+
],
|
|
4168
|
+
stateMutability: "view"
|
|
4169
|
+
},
|
|
4170
|
+
{
|
|
4171
|
+
type: "function",
|
|
4172
|
+
name: "computeAVSRegistrar",
|
|
4173
|
+
inputs: [],
|
|
4174
|
+
outputs: [
|
|
4175
|
+
{
|
|
4176
|
+
name: "",
|
|
4177
|
+
type: "address",
|
|
4178
|
+
internalType: "contractIComputeAVSRegistrar"
|
|
4179
|
+
}
|
|
4180
|
+
],
|
|
4181
|
+
stateMutability: "view"
|
|
4182
|
+
},
|
|
4183
|
+
{
|
|
4184
|
+
type: "function",
|
|
4185
|
+
name: "computeOperator",
|
|
4186
|
+
inputs: [],
|
|
4187
|
+
outputs: [
|
|
4188
|
+
{
|
|
4189
|
+
name: "",
|
|
4190
|
+
type: "address",
|
|
4191
|
+
internalType: "contractIComputeOperator"
|
|
4192
|
+
}
|
|
4193
|
+
],
|
|
4194
|
+
stateMutability: "view"
|
|
4195
|
+
},
|
|
4196
|
+
{
|
|
4197
|
+
type: "function",
|
|
4198
|
+
name: "createApp",
|
|
4199
|
+
inputs: [
|
|
4200
|
+
{
|
|
4201
|
+
name: "salt",
|
|
4202
|
+
type: "bytes32",
|
|
4203
|
+
internalType: "bytes32"
|
|
4204
|
+
},
|
|
4205
|
+
{
|
|
4206
|
+
name: "release",
|
|
4207
|
+
type: "tuple",
|
|
4208
|
+
internalType: "structIAppController.Release",
|
|
4209
|
+
components: [
|
|
4210
|
+
{
|
|
4211
|
+
name: "rmsRelease",
|
|
4212
|
+
type: "tuple",
|
|
4213
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
4214
|
+
components: [
|
|
4215
|
+
{
|
|
4216
|
+
name: "artifacts",
|
|
4217
|
+
type: "tuple[]",
|
|
4218
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
4219
|
+
components: [
|
|
4220
|
+
{
|
|
4221
|
+
name: "digest",
|
|
4222
|
+
type: "bytes32",
|
|
4223
|
+
internalType: "bytes32"
|
|
4224
|
+
},
|
|
4225
|
+
{
|
|
4226
|
+
name: "registry",
|
|
4227
|
+
type: "string",
|
|
4228
|
+
internalType: "string"
|
|
4229
|
+
}
|
|
4230
|
+
]
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
name: "upgradeByTime",
|
|
4234
|
+
type: "uint32",
|
|
4235
|
+
internalType: "uint32"
|
|
4236
|
+
}
|
|
4237
|
+
]
|
|
4238
|
+
},
|
|
4239
|
+
{
|
|
4240
|
+
name: "publicEnv",
|
|
4241
|
+
type: "bytes",
|
|
4242
|
+
internalType: "bytes"
|
|
4243
|
+
},
|
|
4244
|
+
{
|
|
4245
|
+
name: "encryptedEnv",
|
|
4246
|
+
type: "bytes",
|
|
4247
|
+
internalType: "bytes"
|
|
4248
|
+
}
|
|
4249
|
+
]
|
|
4250
|
+
}
|
|
4251
|
+
],
|
|
4252
|
+
outputs: [
|
|
4253
|
+
{
|
|
4254
|
+
name: "app",
|
|
4255
|
+
type: "address",
|
|
4256
|
+
internalType: "contractIApp"
|
|
4257
|
+
}
|
|
4258
|
+
],
|
|
4259
|
+
stateMutability: "nonpayable"
|
|
4260
|
+
},
|
|
4261
|
+
{
|
|
4262
|
+
type: "function",
|
|
4263
|
+
name: "createAppWithIsolatedBilling",
|
|
4264
|
+
inputs: [
|
|
4265
|
+
{
|
|
4266
|
+
name: "salt",
|
|
4267
|
+
type: "bytes32",
|
|
4268
|
+
internalType: "bytes32"
|
|
4269
|
+
},
|
|
4270
|
+
{
|
|
4271
|
+
name: "release",
|
|
4272
|
+
type: "tuple",
|
|
4273
|
+
internalType: "structIAppController.Release",
|
|
4274
|
+
components: [
|
|
4275
|
+
{
|
|
4276
|
+
name: "rmsRelease",
|
|
4277
|
+
type: "tuple",
|
|
4278
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
4279
|
+
components: [
|
|
4280
|
+
{
|
|
4281
|
+
name: "artifacts",
|
|
4282
|
+
type: "tuple[]",
|
|
4283
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
4284
|
+
components: [
|
|
4285
|
+
{
|
|
4286
|
+
name: "digest",
|
|
4287
|
+
type: "bytes32",
|
|
4288
|
+
internalType: "bytes32"
|
|
4289
|
+
},
|
|
4290
|
+
{
|
|
4291
|
+
name: "registry",
|
|
4292
|
+
type: "string",
|
|
4293
|
+
internalType: "string"
|
|
4294
|
+
}
|
|
4295
|
+
]
|
|
4296
|
+
},
|
|
4297
|
+
{
|
|
4298
|
+
name: "upgradeByTime",
|
|
4299
|
+
type: "uint32",
|
|
4300
|
+
internalType: "uint32"
|
|
4301
|
+
}
|
|
4302
|
+
]
|
|
4303
|
+
},
|
|
4304
|
+
{
|
|
4305
|
+
name: "publicEnv",
|
|
4306
|
+
type: "bytes",
|
|
4307
|
+
internalType: "bytes"
|
|
4308
|
+
},
|
|
4309
|
+
{
|
|
4310
|
+
name: "encryptedEnv",
|
|
4311
|
+
type: "bytes",
|
|
4312
|
+
internalType: "bytes"
|
|
4313
|
+
}
|
|
4314
|
+
]
|
|
4315
|
+
}
|
|
4316
|
+
],
|
|
4317
|
+
outputs: [
|
|
4318
|
+
{
|
|
4319
|
+
name: "app",
|
|
4320
|
+
type: "address",
|
|
4321
|
+
internalType: "contractIApp"
|
|
4322
|
+
}
|
|
4323
|
+
],
|
|
4324
|
+
stateMutability: "nonpayable"
|
|
4325
|
+
},
|
|
4326
|
+
{
|
|
4327
|
+
type: "function",
|
|
4328
|
+
name: "domainSeparator",
|
|
4329
|
+
inputs: [],
|
|
4330
|
+
outputs: [
|
|
4331
|
+
{
|
|
4332
|
+
name: "",
|
|
4333
|
+
type: "bytes32",
|
|
4334
|
+
internalType: "bytes32"
|
|
4335
|
+
}
|
|
4336
|
+
],
|
|
4337
|
+
stateMutability: "view"
|
|
4338
|
+
},
|
|
4339
|
+
{
|
|
4340
|
+
type: "function",
|
|
4341
|
+
name: "getActiveAppCount",
|
|
4342
|
+
inputs: [
|
|
4343
|
+
{
|
|
4344
|
+
name: "user",
|
|
4345
|
+
type: "address",
|
|
4346
|
+
internalType: "address"
|
|
4347
|
+
}
|
|
4348
|
+
],
|
|
4349
|
+
outputs: [
|
|
4350
|
+
{
|
|
4351
|
+
name: "",
|
|
4352
|
+
type: "uint32",
|
|
4353
|
+
internalType: "uint32"
|
|
4354
|
+
}
|
|
4355
|
+
],
|
|
4356
|
+
stateMutability: "view"
|
|
4357
|
+
},
|
|
4358
|
+
{
|
|
4359
|
+
type: "function",
|
|
4360
|
+
name: "getBillingType",
|
|
4361
|
+
inputs: [
|
|
4362
|
+
{
|
|
4363
|
+
name: "app",
|
|
4364
|
+
type: "address",
|
|
4365
|
+
internalType: "address"
|
|
4366
|
+
}
|
|
4367
|
+
],
|
|
4368
|
+
outputs: [
|
|
4369
|
+
{
|
|
4370
|
+
name: "",
|
|
4371
|
+
type: "uint8",
|
|
4372
|
+
internalType: "uint8"
|
|
4373
|
+
}
|
|
4374
|
+
],
|
|
4375
|
+
stateMutability: "view"
|
|
4376
|
+
},
|
|
4377
|
+
{
|
|
4378
|
+
type: "function",
|
|
4379
|
+
name: "getAppCreator",
|
|
4380
|
+
inputs: [
|
|
4381
|
+
{
|
|
4382
|
+
name: "app",
|
|
4383
|
+
type: "address",
|
|
4384
|
+
internalType: "contractIApp"
|
|
4385
|
+
}
|
|
4386
|
+
],
|
|
4387
|
+
outputs: [
|
|
4388
|
+
{
|
|
4389
|
+
name: "",
|
|
4390
|
+
type: "address",
|
|
4391
|
+
internalType: "address"
|
|
4392
|
+
}
|
|
4393
|
+
],
|
|
4394
|
+
stateMutability: "view"
|
|
4395
|
+
},
|
|
4396
|
+
{
|
|
4397
|
+
type: "function",
|
|
4398
|
+
name: "getAppLatestReleaseBlockNumber",
|
|
4399
|
+
inputs: [
|
|
4400
|
+
{
|
|
4401
|
+
name: "app",
|
|
4402
|
+
type: "address",
|
|
4403
|
+
internalType: "contractIApp"
|
|
4404
|
+
}
|
|
4405
|
+
],
|
|
4406
|
+
outputs: [
|
|
4407
|
+
{
|
|
4408
|
+
name: "",
|
|
4409
|
+
type: "uint32",
|
|
4410
|
+
internalType: "uint32"
|
|
4411
|
+
}
|
|
4412
|
+
],
|
|
4413
|
+
stateMutability: "view"
|
|
4414
|
+
},
|
|
4415
|
+
{
|
|
4416
|
+
type: "function",
|
|
4417
|
+
name: "getAppOperatorSetId",
|
|
4418
|
+
inputs: [
|
|
4419
|
+
{
|
|
4420
|
+
name: "app",
|
|
4421
|
+
type: "address",
|
|
4422
|
+
internalType: "contractIApp"
|
|
4423
|
+
}
|
|
4424
|
+
],
|
|
4425
|
+
outputs: [
|
|
4426
|
+
{
|
|
4427
|
+
name: "",
|
|
4428
|
+
type: "uint32",
|
|
4429
|
+
internalType: "uint32"
|
|
4430
|
+
}
|
|
4431
|
+
],
|
|
4432
|
+
stateMutability: "view"
|
|
4433
|
+
},
|
|
4434
|
+
{
|
|
4435
|
+
type: "function",
|
|
4436
|
+
name: "getAppStatus",
|
|
4437
|
+
inputs: [
|
|
4438
|
+
{
|
|
4439
|
+
name: "app",
|
|
4440
|
+
type: "address",
|
|
4441
|
+
internalType: "contractIApp"
|
|
4442
|
+
}
|
|
4443
|
+
],
|
|
4444
|
+
outputs: [
|
|
4445
|
+
{
|
|
4446
|
+
name: "",
|
|
4447
|
+
type: "uint8",
|
|
4448
|
+
internalType: "enumIAppController.AppStatus"
|
|
4449
|
+
}
|
|
4450
|
+
],
|
|
4451
|
+
stateMutability: "view"
|
|
4452
|
+
},
|
|
4453
|
+
{
|
|
4454
|
+
type: "function",
|
|
4455
|
+
name: "getApps",
|
|
4456
|
+
inputs: [
|
|
4457
|
+
{
|
|
4458
|
+
name: "offset",
|
|
4459
|
+
type: "uint256",
|
|
4460
|
+
internalType: "uint256"
|
|
4461
|
+
},
|
|
4462
|
+
{
|
|
4463
|
+
name: "limit",
|
|
4464
|
+
type: "uint256",
|
|
4465
|
+
internalType: "uint256"
|
|
4466
|
+
}
|
|
4467
|
+
],
|
|
4468
|
+
outputs: [
|
|
4469
|
+
{
|
|
4470
|
+
name: "apps",
|
|
4471
|
+
type: "address[]",
|
|
4472
|
+
internalType: "contractIApp[]"
|
|
4473
|
+
},
|
|
4474
|
+
{
|
|
4475
|
+
name: "appConfigsMem",
|
|
4476
|
+
type: "tuple[]",
|
|
4477
|
+
internalType: "structIAppController.AppConfig[]",
|
|
4478
|
+
components: [
|
|
4479
|
+
{
|
|
4480
|
+
name: "creator",
|
|
4481
|
+
type: "address",
|
|
4482
|
+
internalType: "address"
|
|
4483
|
+
},
|
|
4484
|
+
{
|
|
4485
|
+
name: "operatorSetId",
|
|
4486
|
+
type: "uint32",
|
|
4487
|
+
internalType: "uint32"
|
|
4488
|
+
},
|
|
4489
|
+
{
|
|
4490
|
+
name: "latestReleaseBlockNumber",
|
|
4491
|
+
type: "uint32",
|
|
4492
|
+
internalType: "uint32"
|
|
4493
|
+
},
|
|
4494
|
+
{
|
|
4495
|
+
name: "status",
|
|
4496
|
+
type: "uint8",
|
|
4497
|
+
internalType: "enumIAppController.AppStatus"
|
|
4498
|
+
}
|
|
4499
|
+
]
|
|
4500
|
+
}
|
|
4501
|
+
],
|
|
4502
|
+
stateMutability: "view"
|
|
4503
|
+
},
|
|
4504
|
+
{
|
|
4505
|
+
type: "function",
|
|
4506
|
+
name: "getAppsByBillingAccount",
|
|
4507
|
+
inputs: [
|
|
4508
|
+
{
|
|
4509
|
+
name: "account",
|
|
4510
|
+
type: "address",
|
|
4511
|
+
internalType: "address"
|
|
4512
|
+
},
|
|
4513
|
+
{
|
|
4514
|
+
name: "offset",
|
|
4515
|
+
type: "uint256",
|
|
4516
|
+
internalType: "uint256"
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
name: "limit",
|
|
4520
|
+
type: "uint256",
|
|
4521
|
+
internalType: "uint256"
|
|
4522
|
+
}
|
|
4523
|
+
],
|
|
4524
|
+
outputs: [
|
|
4525
|
+
{
|
|
4526
|
+
name: "apps",
|
|
4527
|
+
type: "address[]",
|
|
4528
|
+
internalType: "contractIApp[]"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
name: "appConfigsMem",
|
|
4532
|
+
type: "tuple[]",
|
|
4533
|
+
internalType: "structIAppController.AppConfig[]",
|
|
4534
|
+
components: [
|
|
4535
|
+
{
|
|
4536
|
+
name: "creator",
|
|
4537
|
+
type: "address",
|
|
4538
|
+
internalType: "address"
|
|
4539
|
+
},
|
|
4540
|
+
{
|
|
4541
|
+
name: "operatorSetId",
|
|
4542
|
+
type: "uint32",
|
|
4543
|
+
internalType: "uint32"
|
|
4544
|
+
},
|
|
4545
|
+
{
|
|
4546
|
+
name: "latestReleaseBlockNumber",
|
|
4547
|
+
type: "uint32",
|
|
4548
|
+
internalType: "uint32"
|
|
4549
|
+
},
|
|
4550
|
+
{
|
|
4551
|
+
name: "status",
|
|
4552
|
+
type: "uint8",
|
|
4553
|
+
internalType: "enumIAppController.AppStatus"
|
|
4554
|
+
}
|
|
4555
|
+
]
|
|
4556
|
+
}
|
|
4557
|
+
],
|
|
4558
|
+
stateMutability: "view"
|
|
4559
|
+
},
|
|
4560
|
+
{
|
|
4561
|
+
type: "function",
|
|
4562
|
+
name: "getAppsByCreator",
|
|
4563
|
+
inputs: [
|
|
4564
|
+
{
|
|
4565
|
+
name: "creator",
|
|
4566
|
+
type: "address",
|
|
4567
|
+
internalType: "address"
|
|
4568
|
+
},
|
|
4569
|
+
{
|
|
4570
|
+
name: "offset",
|
|
4571
|
+
type: "uint256",
|
|
4572
|
+
internalType: "uint256"
|
|
4573
|
+
},
|
|
4574
|
+
{
|
|
4575
|
+
name: "limit",
|
|
4576
|
+
type: "uint256",
|
|
4577
|
+
internalType: "uint256"
|
|
4578
|
+
}
|
|
4579
|
+
],
|
|
4580
|
+
outputs: [
|
|
4581
|
+
{
|
|
4582
|
+
name: "apps",
|
|
4583
|
+
type: "address[]",
|
|
4584
|
+
internalType: "contractIApp[]"
|
|
4585
|
+
},
|
|
4586
|
+
{
|
|
4587
|
+
name: "appConfigsMem",
|
|
4588
|
+
type: "tuple[]",
|
|
4589
|
+
internalType: "structIAppController.AppConfig[]",
|
|
4590
|
+
components: [
|
|
4591
|
+
{
|
|
4592
|
+
name: "creator",
|
|
4593
|
+
type: "address",
|
|
4594
|
+
internalType: "address"
|
|
4595
|
+
},
|
|
4596
|
+
{
|
|
4597
|
+
name: "operatorSetId",
|
|
4598
|
+
type: "uint32",
|
|
4599
|
+
internalType: "uint32"
|
|
4600
|
+
},
|
|
4601
|
+
{
|
|
4602
|
+
name: "latestReleaseBlockNumber",
|
|
4603
|
+
type: "uint32",
|
|
4604
|
+
internalType: "uint32"
|
|
4605
|
+
},
|
|
4606
|
+
{
|
|
4607
|
+
name: "status",
|
|
4608
|
+
type: "uint8",
|
|
4609
|
+
internalType: "enumIAppController.AppStatus"
|
|
4610
|
+
}
|
|
4611
|
+
]
|
|
4612
|
+
}
|
|
4613
|
+
],
|
|
4614
|
+
stateMutability: "view"
|
|
4615
|
+
},
|
|
4616
|
+
{
|
|
4617
|
+
type: "function",
|
|
4618
|
+
name: "getAppsByDeveloper",
|
|
4619
|
+
inputs: [
|
|
4620
|
+
{
|
|
4621
|
+
name: "developer",
|
|
4622
|
+
type: "address",
|
|
4623
|
+
internalType: "address"
|
|
4624
|
+
},
|
|
4625
|
+
{
|
|
4626
|
+
name: "offset",
|
|
4627
|
+
type: "uint256",
|
|
4628
|
+
internalType: "uint256"
|
|
4629
|
+
},
|
|
4630
|
+
{
|
|
4631
|
+
name: "limit",
|
|
4632
|
+
type: "uint256",
|
|
4633
|
+
internalType: "uint256"
|
|
4634
|
+
}
|
|
4635
|
+
],
|
|
4636
|
+
outputs: [
|
|
4637
|
+
{
|
|
4638
|
+
name: "apps",
|
|
4639
|
+
type: "address[]",
|
|
4640
|
+
internalType: "contractIApp[]"
|
|
4641
|
+
},
|
|
4642
|
+
{
|
|
4643
|
+
name: "appConfigsMem",
|
|
4644
|
+
type: "tuple[]",
|
|
4645
|
+
internalType: "structIAppController.AppConfig[]",
|
|
4646
|
+
components: [
|
|
4647
|
+
{
|
|
4648
|
+
name: "creator",
|
|
4649
|
+
type: "address",
|
|
4650
|
+
internalType: "address"
|
|
4651
|
+
},
|
|
4652
|
+
{
|
|
4653
|
+
name: "operatorSetId",
|
|
4654
|
+
type: "uint32",
|
|
4655
|
+
internalType: "uint32"
|
|
4656
|
+
},
|
|
4657
|
+
{
|
|
4658
|
+
name: "latestReleaseBlockNumber",
|
|
4659
|
+
type: "uint32",
|
|
4660
|
+
internalType: "uint32"
|
|
4661
|
+
},
|
|
4662
|
+
{
|
|
4663
|
+
name: "status",
|
|
4664
|
+
type: "uint8",
|
|
4665
|
+
internalType: "enumIAppController.AppStatus"
|
|
4666
|
+
}
|
|
4667
|
+
]
|
|
4668
|
+
}
|
|
4669
|
+
],
|
|
4670
|
+
stateMutability: "view"
|
|
4671
|
+
},
|
|
4672
|
+
{
|
|
4673
|
+
type: "function",
|
|
4674
|
+
name: "getMaxActiveAppsPerUser",
|
|
4675
|
+
inputs: [
|
|
4676
|
+
{
|
|
4677
|
+
name: "user",
|
|
4678
|
+
type: "address",
|
|
4679
|
+
internalType: "address"
|
|
4680
|
+
}
|
|
4681
|
+
],
|
|
4682
|
+
outputs: [
|
|
4683
|
+
{
|
|
4684
|
+
name: "",
|
|
4685
|
+
type: "uint32",
|
|
4686
|
+
internalType: "uint32"
|
|
4687
|
+
}
|
|
4688
|
+
],
|
|
4689
|
+
stateMutability: "view"
|
|
4690
|
+
},
|
|
4691
|
+
{
|
|
4692
|
+
type: "function",
|
|
4693
|
+
name: "globalActiveAppCount",
|
|
4694
|
+
inputs: [],
|
|
4695
|
+
outputs: [
|
|
4696
|
+
{
|
|
4697
|
+
name: "",
|
|
4698
|
+
type: "uint32",
|
|
4699
|
+
internalType: "uint32"
|
|
4700
|
+
}
|
|
4701
|
+
],
|
|
4702
|
+
stateMutability: "view"
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
type: "function",
|
|
4706
|
+
name: "initialize",
|
|
4707
|
+
inputs: [
|
|
4708
|
+
{
|
|
4709
|
+
name: "admin",
|
|
4710
|
+
type: "address",
|
|
4711
|
+
internalType: "address"
|
|
4712
|
+
}
|
|
4713
|
+
],
|
|
4714
|
+
outputs: [],
|
|
4715
|
+
stateMutability: "nonpayable"
|
|
4716
|
+
},
|
|
4717
|
+
{
|
|
4718
|
+
type: "function",
|
|
4719
|
+
name: "maxGlobalActiveApps",
|
|
4720
|
+
inputs: [],
|
|
4721
|
+
outputs: [
|
|
4722
|
+
{
|
|
4723
|
+
name: "",
|
|
4724
|
+
type: "uint32",
|
|
4725
|
+
internalType: "uint32"
|
|
4726
|
+
}
|
|
4727
|
+
],
|
|
4728
|
+
stateMutability: "view"
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
type: "function",
|
|
4732
|
+
name: "permissionController",
|
|
4733
|
+
inputs: [],
|
|
4734
|
+
outputs: [
|
|
4735
|
+
{
|
|
4736
|
+
name: "",
|
|
4737
|
+
type: "address",
|
|
4738
|
+
internalType: "contractIPermissionController"
|
|
4739
|
+
}
|
|
4740
|
+
],
|
|
4741
|
+
stateMutability: "view"
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
type: "function",
|
|
4745
|
+
name: "releaseManager",
|
|
4746
|
+
inputs: [],
|
|
4747
|
+
outputs: [
|
|
4748
|
+
{
|
|
4749
|
+
name: "",
|
|
4750
|
+
type: "address",
|
|
4751
|
+
internalType: "contractIReleaseManager"
|
|
4752
|
+
}
|
|
4753
|
+
],
|
|
4754
|
+
stateMutability: "view"
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
type: "function",
|
|
4758
|
+
name: "setMaxActiveAppsPerUser",
|
|
4759
|
+
inputs: [
|
|
4760
|
+
{
|
|
4761
|
+
name: "user",
|
|
4762
|
+
type: "address",
|
|
4763
|
+
internalType: "address"
|
|
4764
|
+
},
|
|
4765
|
+
{
|
|
4766
|
+
name: "limit",
|
|
4767
|
+
type: "uint32",
|
|
4768
|
+
internalType: "uint32"
|
|
4769
|
+
}
|
|
4770
|
+
],
|
|
4771
|
+
outputs: [],
|
|
4772
|
+
stateMutability: "nonpayable"
|
|
4773
|
+
},
|
|
4774
|
+
{
|
|
4775
|
+
type: "function",
|
|
4776
|
+
name: "setMaxGlobalActiveApps",
|
|
4777
|
+
inputs: [
|
|
4778
|
+
{
|
|
4779
|
+
name: "limit",
|
|
4780
|
+
type: "uint32",
|
|
4781
|
+
internalType: "uint32"
|
|
4782
|
+
}
|
|
4783
|
+
],
|
|
4784
|
+
outputs: [],
|
|
4785
|
+
stateMutability: "nonpayable"
|
|
4786
|
+
},
|
|
4787
|
+
{
|
|
4788
|
+
type: "function",
|
|
4789
|
+
name: "startApp",
|
|
4790
|
+
inputs: [
|
|
4791
|
+
{
|
|
4792
|
+
name: "app",
|
|
4793
|
+
type: "address",
|
|
4794
|
+
internalType: "contractIApp"
|
|
4795
|
+
}
|
|
4796
|
+
],
|
|
4797
|
+
outputs: [],
|
|
4798
|
+
stateMutability: "nonpayable"
|
|
4799
|
+
},
|
|
4800
|
+
{
|
|
4801
|
+
type: "function",
|
|
4802
|
+
name: "stopApp",
|
|
4803
|
+
inputs: [
|
|
4804
|
+
{
|
|
4805
|
+
name: "app",
|
|
4806
|
+
type: "address",
|
|
4807
|
+
internalType: "contractIApp"
|
|
4808
|
+
}
|
|
4809
|
+
],
|
|
4810
|
+
outputs: [],
|
|
4811
|
+
stateMutability: "nonpayable"
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
type: "function",
|
|
4815
|
+
name: "suspend",
|
|
4816
|
+
inputs: [
|
|
4817
|
+
{
|
|
4818
|
+
name: "account",
|
|
4819
|
+
type: "address",
|
|
4820
|
+
internalType: "address"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
name: "apps",
|
|
4824
|
+
type: "address[]",
|
|
4825
|
+
internalType: "contractIApp[]"
|
|
4826
|
+
}
|
|
4827
|
+
],
|
|
4828
|
+
outputs: [],
|
|
4829
|
+
stateMutability: "nonpayable"
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
type: "function",
|
|
4833
|
+
name: "terminateApp",
|
|
4834
|
+
inputs: [
|
|
4835
|
+
{
|
|
4836
|
+
name: "app",
|
|
4837
|
+
type: "address",
|
|
4838
|
+
internalType: "contractIApp"
|
|
4839
|
+
}
|
|
4840
|
+
],
|
|
4841
|
+
outputs: [],
|
|
4842
|
+
stateMutability: "nonpayable"
|
|
4843
|
+
},
|
|
4844
|
+
{
|
|
4845
|
+
type: "function",
|
|
4846
|
+
name: "terminateAppByAdmin",
|
|
4847
|
+
inputs: [
|
|
4848
|
+
{
|
|
4849
|
+
name: "app",
|
|
4850
|
+
type: "address",
|
|
4851
|
+
internalType: "contractIApp"
|
|
4852
|
+
}
|
|
4853
|
+
],
|
|
4854
|
+
outputs: [],
|
|
4855
|
+
stateMutability: "nonpayable"
|
|
4856
|
+
},
|
|
4857
|
+
{
|
|
4858
|
+
type: "function",
|
|
4859
|
+
name: "updateAppMetadataURI",
|
|
4860
|
+
inputs: [
|
|
4861
|
+
{
|
|
4862
|
+
name: "app",
|
|
4863
|
+
type: "address",
|
|
4864
|
+
internalType: "contractIApp"
|
|
4865
|
+
},
|
|
4866
|
+
{
|
|
4867
|
+
name: "metadataURI",
|
|
4868
|
+
type: "string",
|
|
4869
|
+
internalType: "string"
|
|
4870
|
+
}
|
|
4871
|
+
],
|
|
4872
|
+
outputs: [],
|
|
4873
|
+
stateMutability: "nonpayable"
|
|
4874
|
+
},
|
|
4875
|
+
{
|
|
4876
|
+
type: "function",
|
|
4877
|
+
name: "upgradeApp",
|
|
4878
|
+
inputs: [
|
|
4879
|
+
{
|
|
4880
|
+
name: "app",
|
|
4881
|
+
type: "address",
|
|
4882
|
+
internalType: "contractIApp"
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
name: "release",
|
|
4886
|
+
type: "tuple",
|
|
4887
|
+
internalType: "structIAppController.Release",
|
|
4888
|
+
components: [
|
|
4889
|
+
{
|
|
4890
|
+
name: "rmsRelease",
|
|
4891
|
+
type: "tuple",
|
|
4892
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
4893
|
+
components: [
|
|
4894
|
+
{
|
|
4895
|
+
name: "artifacts",
|
|
4896
|
+
type: "tuple[]",
|
|
4897
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
4898
|
+
components: [
|
|
4899
|
+
{
|
|
4900
|
+
name: "digest",
|
|
4901
|
+
type: "bytes32",
|
|
4902
|
+
internalType: "bytes32"
|
|
4903
|
+
},
|
|
4904
|
+
{
|
|
4905
|
+
name: "registry",
|
|
4906
|
+
type: "string",
|
|
4907
|
+
internalType: "string"
|
|
4908
|
+
}
|
|
4909
|
+
]
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
name: "upgradeByTime",
|
|
4913
|
+
type: "uint32",
|
|
4914
|
+
internalType: "uint32"
|
|
4915
|
+
}
|
|
4916
|
+
]
|
|
4917
|
+
},
|
|
4918
|
+
{
|
|
4919
|
+
name: "publicEnv",
|
|
4920
|
+
type: "bytes",
|
|
4921
|
+
internalType: "bytes"
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
name: "encryptedEnv",
|
|
4925
|
+
type: "bytes",
|
|
4926
|
+
internalType: "bytes"
|
|
4927
|
+
}
|
|
4928
|
+
]
|
|
4929
|
+
}
|
|
4930
|
+
],
|
|
4931
|
+
outputs: [
|
|
4932
|
+
{
|
|
4933
|
+
name: "",
|
|
4934
|
+
type: "uint256",
|
|
4935
|
+
internalType: "uint256"
|
|
4936
|
+
}
|
|
4937
|
+
],
|
|
4938
|
+
stateMutability: "nonpayable"
|
|
4939
|
+
},
|
|
4940
|
+
{
|
|
4941
|
+
type: "function",
|
|
4942
|
+
name: "version",
|
|
4943
|
+
inputs: [],
|
|
4944
|
+
outputs: [
|
|
4945
|
+
{
|
|
4946
|
+
name: "",
|
|
4947
|
+
type: "string",
|
|
4948
|
+
internalType: "string"
|
|
4949
|
+
}
|
|
4950
|
+
],
|
|
4951
|
+
stateMutability: "view"
|
|
4952
|
+
},
|
|
4953
|
+
{
|
|
4954
|
+
type: "event",
|
|
4955
|
+
name: "AppCreated",
|
|
4956
|
+
inputs: [
|
|
4957
|
+
{
|
|
4958
|
+
name: "creator",
|
|
4959
|
+
type: "address",
|
|
4960
|
+
indexed: true,
|
|
4961
|
+
internalType: "address"
|
|
4962
|
+
},
|
|
4963
|
+
{
|
|
4964
|
+
name: "app",
|
|
4965
|
+
type: "address",
|
|
4966
|
+
indexed: true,
|
|
4967
|
+
internalType: "contractIApp"
|
|
4968
|
+
},
|
|
4969
|
+
{
|
|
4970
|
+
name: "operatorSetId",
|
|
4971
|
+
type: "uint32",
|
|
4972
|
+
indexed: false,
|
|
4973
|
+
internalType: "uint32"
|
|
4974
|
+
}
|
|
4975
|
+
],
|
|
4976
|
+
anonymous: false
|
|
4977
|
+
},
|
|
4978
|
+
{
|
|
4979
|
+
type: "event",
|
|
4980
|
+
name: "AppMetadataURIUpdated",
|
|
4981
|
+
inputs: [
|
|
4982
|
+
{
|
|
4983
|
+
name: "app",
|
|
4984
|
+
type: "address",
|
|
4985
|
+
indexed: true,
|
|
4986
|
+
internalType: "contractIApp"
|
|
4987
|
+
},
|
|
4988
|
+
{
|
|
4989
|
+
name: "metadataURI",
|
|
4990
|
+
type: "string",
|
|
4991
|
+
indexed: false,
|
|
4992
|
+
internalType: "string"
|
|
4993
|
+
}
|
|
4994
|
+
],
|
|
4995
|
+
anonymous: false
|
|
4996
|
+
},
|
|
4997
|
+
{
|
|
4998
|
+
type: "event",
|
|
4999
|
+
name: "AppStarted",
|
|
5000
|
+
inputs: [
|
|
5001
|
+
{
|
|
5002
|
+
name: "app",
|
|
5003
|
+
type: "address",
|
|
5004
|
+
indexed: true,
|
|
5005
|
+
internalType: "contractIApp"
|
|
5006
|
+
}
|
|
5007
|
+
],
|
|
5008
|
+
anonymous: false
|
|
5009
|
+
},
|
|
5010
|
+
{
|
|
5011
|
+
type: "event",
|
|
5012
|
+
name: "AppStopped",
|
|
5013
|
+
inputs: [
|
|
5014
|
+
{
|
|
5015
|
+
name: "app",
|
|
5016
|
+
type: "address",
|
|
5017
|
+
indexed: true,
|
|
5018
|
+
internalType: "contractIApp"
|
|
5019
|
+
}
|
|
5020
|
+
],
|
|
5021
|
+
anonymous: false
|
|
5022
|
+
},
|
|
5023
|
+
{
|
|
5024
|
+
type: "event",
|
|
5025
|
+
name: "AppSuspended",
|
|
5026
|
+
inputs: [
|
|
5027
|
+
{
|
|
5028
|
+
name: "app",
|
|
5029
|
+
type: "address",
|
|
5030
|
+
indexed: true,
|
|
5031
|
+
internalType: "contractIApp"
|
|
5032
|
+
}
|
|
5033
|
+
],
|
|
5034
|
+
anonymous: false
|
|
5035
|
+
},
|
|
5036
|
+
{
|
|
5037
|
+
type: "event",
|
|
5038
|
+
name: "AppTerminated",
|
|
5039
|
+
inputs: [
|
|
5040
|
+
{
|
|
5041
|
+
name: "app",
|
|
5042
|
+
type: "address",
|
|
5043
|
+
indexed: true,
|
|
5044
|
+
internalType: "contractIApp"
|
|
5045
|
+
}
|
|
5046
|
+
],
|
|
5047
|
+
anonymous: false
|
|
5048
|
+
},
|
|
5049
|
+
{
|
|
5050
|
+
type: "event",
|
|
5051
|
+
name: "AppTerminatedByAdmin",
|
|
5052
|
+
inputs: [
|
|
5053
|
+
{
|
|
5054
|
+
name: "app",
|
|
5055
|
+
type: "address",
|
|
5056
|
+
indexed: true,
|
|
5057
|
+
internalType: "contractIApp"
|
|
5058
|
+
}
|
|
5059
|
+
],
|
|
5060
|
+
anonymous: false
|
|
5061
|
+
},
|
|
5062
|
+
{
|
|
5063
|
+
type: "event",
|
|
5064
|
+
name: "AppUpgraded",
|
|
5065
|
+
inputs: [
|
|
5066
|
+
{
|
|
5067
|
+
name: "app",
|
|
5068
|
+
type: "address",
|
|
5069
|
+
indexed: true,
|
|
5070
|
+
internalType: "contractIApp"
|
|
5071
|
+
},
|
|
5072
|
+
{
|
|
5073
|
+
name: "rmsReleaseId",
|
|
5074
|
+
type: "uint256",
|
|
5075
|
+
indexed: false,
|
|
5076
|
+
internalType: "uint256"
|
|
5077
|
+
},
|
|
5078
|
+
{
|
|
5079
|
+
name: "release",
|
|
5080
|
+
type: "tuple",
|
|
5081
|
+
indexed: false,
|
|
5082
|
+
internalType: "structIAppController.Release",
|
|
5083
|
+
components: [
|
|
5084
|
+
{
|
|
5085
|
+
name: "rmsRelease",
|
|
5086
|
+
type: "tuple",
|
|
5087
|
+
internalType: "structIReleaseManagerTypes.Release",
|
|
5088
|
+
components: [
|
|
5089
|
+
{
|
|
5090
|
+
name: "artifacts",
|
|
5091
|
+
type: "tuple[]",
|
|
5092
|
+
internalType: "structIReleaseManagerTypes.Artifact[]",
|
|
5093
|
+
components: [
|
|
5094
|
+
{
|
|
5095
|
+
name: "digest",
|
|
5096
|
+
type: "bytes32",
|
|
5097
|
+
internalType: "bytes32"
|
|
5098
|
+
},
|
|
5099
|
+
{
|
|
5100
|
+
name: "registry",
|
|
5101
|
+
type: "string",
|
|
5102
|
+
internalType: "string"
|
|
5103
|
+
}
|
|
5104
|
+
]
|
|
5105
|
+
},
|
|
5106
|
+
{
|
|
5107
|
+
name: "upgradeByTime",
|
|
5108
|
+
type: "uint32",
|
|
5109
|
+
internalType: "uint32"
|
|
5110
|
+
}
|
|
5111
|
+
]
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
name: "publicEnv",
|
|
5115
|
+
type: "bytes",
|
|
5116
|
+
internalType: "bytes"
|
|
5117
|
+
},
|
|
5118
|
+
{
|
|
5119
|
+
name: "encryptedEnv",
|
|
5120
|
+
type: "bytes",
|
|
5121
|
+
internalType: "bytes"
|
|
5122
|
+
}
|
|
5123
|
+
]
|
|
5124
|
+
}
|
|
5125
|
+
],
|
|
5126
|
+
anonymous: false
|
|
5127
|
+
},
|
|
5128
|
+
{
|
|
5129
|
+
type: "event",
|
|
5130
|
+
name: "GlobalMaxActiveAppsSet",
|
|
5131
|
+
inputs: [
|
|
5132
|
+
{
|
|
5133
|
+
name: "limit",
|
|
5134
|
+
type: "uint32",
|
|
5135
|
+
indexed: false,
|
|
5136
|
+
internalType: "uint32"
|
|
5137
|
+
}
|
|
5138
|
+
],
|
|
5139
|
+
anonymous: false
|
|
5140
|
+
},
|
|
5141
|
+
{
|
|
5142
|
+
type: "event",
|
|
5143
|
+
name: "Initialized",
|
|
5144
|
+
inputs: [
|
|
5145
|
+
{
|
|
3594
5146
|
name: "version",
|
|
3595
5147
|
type: "uint8",
|
|
3596
5148
|
indexed: false,
|
|
@@ -4188,6 +5740,38 @@ var PermissionController_default = [
|
|
|
4188
5740
|
];
|
|
4189
5741
|
|
|
4190
5742
|
// src/client/common/contract/caller.ts
|
|
5743
|
+
function appControllerAbiFor(environmentConfig) {
|
|
5744
|
+
return environmentConfig.releaseAbiVersion === "v1.4" ? AppController_v1_4_default : AppController_default;
|
|
5745
|
+
}
|
|
5746
|
+
function supportsContainerPolicy(environmentConfig) {
|
|
5747
|
+
return environmentConfig.releaseAbiVersion !== "v1.4";
|
|
5748
|
+
}
|
|
5749
|
+
function containerPolicyForViem(policy = EMPTY_CONTAINER_POLICY) {
|
|
5750
|
+
return {
|
|
5751
|
+
args: policy.args,
|
|
5752
|
+
cmdOverride: policy.cmdOverride,
|
|
5753
|
+
env: policy.env.map((e) => ({ key: e.key, value: e.value })),
|
|
5754
|
+
envOverride: policy.envOverride.map((e) => ({ key: e.key, value: e.value })),
|
|
5755
|
+
restartPolicy: policy.restartPolicy
|
|
5756
|
+
};
|
|
5757
|
+
}
|
|
5758
|
+
function releaseForViem(release, environmentConfig) {
|
|
5759
|
+
const base = {
|
|
5760
|
+
rmsRelease: {
|
|
5761
|
+
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
5762
|
+
digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
5763
|
+
registry: artifact.registry
|
|
5764
|
+
})),
|
|
5765
|
+
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
5766
|
+
},
|
|
5767
|
+
publicEnv: bytesToHex(release.publicEnv),
|
|
5768
|
+
encryptedEnv: bytesToHex(release.encryptedEnv)
|
|
5769
|
+
};
|
|
5770
|
+
if (!supportsContainerPolicy(environmentConfig)) {
|
|
5771
|
+
return base;
|
|
5772
|
+
}
|
|
5773
|
+
return { ...base, containerPolicy: containerPolicyForViem(release.containerPolicy) };
|
|
5774
|
+
}
|
|
4191
5775
|
function formatETH(wei) {
|
|
4192
5776
|
const eth = Number(wei) / 1e18;
|
|
4193
5777
|
const costStr = eth.toFixed(6);
|
|
@@ -4204,7 +5788,7 @@ async function calculateAppID(options) {
|
|
|
4204
5788
|
const saltHex = `0x${paddedSaltHex}`;
|
|
4205
5789
|
const appID = await publicClient.readContract({
|
|
4206
5790
|
address: environmentConfig.appControllerAddress,
|
|
4207
|
-
abi:
|
|
5791
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4208
5792
|
functionName: "calculateAppId",
|
|
4209
5793
|
args: [ownerAddress, saltHex]
|
|
4210
5794
|
});
|
|
@@ -4228,22 +5812,12 @@ async function prepareDeployBatch(options, logger = noopLogger) {
|
|
|
4228
5812
|
const saltHexString = bytesToHex(salt).slice(2);
|
|
4229
5813
|
const paddedSaltHex = saltHexString.padStart(64, "0");
|
|
4230
5814
|
const saltHex = `0x${paddedSaltHex}`;
|
|
4231
|
-
const
|
|
4232
|
-
rmsRelease: {
|
|
4233
|
-
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
4234
|
-
digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
4235
|
-
registry: artifact.registry
|
|
4236
|
-
})),
|
|
4237
|
-
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
4238
|
-
},
|
|
4239
|
-
publicEnv: bytesToHex(release.publicEnv),
|
|
4240
|
-
encryptedEnv: bytesToHex(release.encryptedEnv)
|
|
4241
|
-
};
|
|
5815
|
+
const release_ = releaseForViem(release, environmentConfig);
|
|
4242
5816
|
const functionName = options.billTo === "app" ? "createAppWithIsolatedBilling" : "createApp";
|
|
4243
5817
|
const createData = encodeFunctionData2({
|
|
4244
|
-
abi:
|
|
5818
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4245
5819
|
functionName,
|
|
4246
|
-
args: [saltHex,
|
|
5820
|
+
args: [saltHex, release_]
|
|
4247
5821
|
});
|
|
4248
5822
|
const acceptAdminData = encodeFunctionData2({
|
|
4249
5823
|
abi: PermissionController_default,
|
|
@@ -4331,21 +5905,11 @@ async function prepareUpgradeBatch(options) {
|
|
|
4331
5905
|
publicLogs,
|
|
4332
5906
|
needsPermissionChange
|
|
4333
5907
|
} = options;
|
|
4334
|
-
const
|
|
4335
|
-
rmsRelease: {
|
|
4336
|
-
artifacts: release.rmsRelease.artifacts.map((artifact) => ({
|
|
4337
|
-
digest: `0x${bytesToHex(artifact.digest).slice(2).padStart(64, "0")}`,
|
|
4338
|
-
registry: artifact.registry
|
|
4339
|
-
})),
|
|
4340
|
-
upgradeByTime: release.rmsRelease.upgradeByTime
|
|
4341
|
-
},
|
|
4342
|
-
publicEnv: bytesToHex(release.publicEnv),
|
|
4343
|
-
encryptedEnv: bytesToHex(release.encryptedEnv)
|
|
4344
|
-
};
|
|
5908
|
+
const release_ = releaseForViem(release, environmentConfig);
|
|
4345
5909
|
const upgradeData = encodeFunctionData2({
|
|
4346
|
-
abi:
|
|
5910
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4347
5911
|
functionName: "upgradeApp",
|
|
4348
|
-
args: [appID,
|
|
5912
|
+
args: [appID, release_]
|
|
4349
5913
|
});
|
|
4350
5914
|
const executions = [
|
|
4351
5915
|
{
|
|
@@ -4479,7 +6043,7 @@ ${pendingMessage}`);
|
|
|
4479
6043
|
if (callError.data) {
|
|
4480
6044
|
try {
|
|
4481
6045
|
const decoded = decodeErrorResult2({
|
|
4482
|
-
abi:
|
|
6046
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4483
6047
|
data: callError.data
|
|
4484
6048
|
});
|
|
4485
6049
|
const formattedError = formatAppControllerError(decoded);
|
|
@@ -4532,7 +6096,7 @@ function formatAppControllerError(decoded) {
|
|
|
4532
6096
|
async function getActiveAppCount(publicClient, environmentConfig, user) {
|
|
4533
6097
|
const count = await publicClient.readContract({
|
|
4534
6098
|
address: environmentConfig.appControllerAddress,
|
|
4535
|
-
abi:
|
|
6099
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4536
6100
|
functionName: "getActiveAppCount",
|
|
4537
6101
|
args: [user]
|
|
4538
6102
|
});
|
|
@@ -4541,7 +6105,7 @@ async function getActiveAppCount(publicClient, environmentConfig, user) {
|
|
|
4541
6105
|
async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
|
|
4542
6106
|
const quota = await publicClient.readContract({
|
|
4543
6107
|
address: environmentConfig.appControllerAddress,
|
|
4544
|
-
abi:
|
|
6108
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4545
6109
|
functionName: "getMaxActiveAppsPerUser",
|
|
4546
6110
|
args: [user]
|
|
4547
6111
|
});
|
|
@@ -4550,7 +6114,7 @@ async function getMaxActiveAppsPerUser(publicClient, environmentConfig, user) {
|
|
|
4550
6114
|
async function getBillingType(publicClient, environmentConfig, app) {
|
|
4551
6115
|
const result = await publicClient.readContract({
|
|
4552
6116
|
address: environmentConfig.appControllerAddress,
|
|
4553
|
-
abi:
|
|
6117
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4554
6118
|
functionName: "getBillingType",
|
|
4555
6119
|
args: [app]
|
|
4556
6120
|
});
|
|
@@ -4559,7 +6123,7 @@ async function getBillingType(publicClient, environmentConfig, app) {
|
|
|
4559
6123
|
async function getAppsByBillingAccount(publicClient, environmentConfig, account, offset, limit) {
|
|
4560
6124
|
const result = await publicClient.readContract({
|
|
4561
6125
|
address: environmentConfig.appControllerAddress,
|
|
4562
|
-
abi:
|
|
6126
|
+
abi: appControllerAbiFor(environmentConfig),
|
|
4563
6127
|
functionName: "getAppsByBillingAccount",
|
|
4564
6128
|
args: [account, offset, limit]
|
|
4565
6129
|
});
|
|
@@ -4693,7 +6257,7 @@ var CanViewAppLogsPermission = "0x2fd3f2fe";
|
|
|
4693
6257
|
var CanViewSensitiveAppInfoPermission = "0x0e67b22f";
|
|
4694
6258
|
var CanUpdateAppProfilePermission = "0x036fef61";
|
|
4695
6259
|
function getDefaultClientId() {
|
|
4696
|
-
const version = true ? "1.0.0-dev.
|
|
6260
|
+
const version = true ? "1.0.0-dev.7" : "0.0.0";
|
|
4697
6261
|
return `ecloud-sdk/v${version}`;
|
|
4698
6262
|
}
|
|
4699
6263
|
var UserApiClient = class {
|
|
@@ -5257,6 +6821,8 @@ var ENVIRONMENTS = {
|
|
|
5257
6821
|
name: "sepolia",
|
|
5258
6822
|
build: "dev",
|
|
5259
6823
|
appControllerAddress: "0xa86DC1C47cb2518327fB4f9A1627F51966c83B92",
|
|
6824
|
+
releaseAbiVersion: "v1.5",
|
|
6825
|
+
// AppController upgraded to v1.5.x (containerPolicy)
|
|
5260
6826
|
permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
|
|
5261
6827
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
5262
6828
|
kmsServerURL: "http://10.128.0.57:8080",
|
|
@@ -5270,6 +6836,8 @@ var ENVIRONMENTS = {
|
|
|
5270
6836
|
name: "sepolia",
|
|
5271
6837
|
build: "prod",
|
|
5272
6838
|
appControllerAddress: "0x0dd810a6ffba6a9820a10d97b659f07d8d23d4E2",
|
|
6839
|
+
releaseAbiVersion: "v1.4",
|
|
6840
|
+
// prod still on AppController v1.4.0 (3-field Release)
|
|
5273
6841
|
permissionControllerAddress: ChainAddresses[SEPOLIA_CHAIN_ID].PermissionController,
|
|
5274
6842
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
5275
6843
|
kmsServerURL: "http://10.128.15.203:8080",
|
|
@@ -5284,6 +6852,8 @@ var ENVIRONMENTS = {
|
|
|
5284
6852
|
name: "mainnet-alpha",
|
|
5285
6853
|
build: "prod",
|
|
5286
6854
|
appControllerAddress: "0xc38d35Fc995e75342A21CBd6D770305b142Fbe67",
|
|
6855
|
+
releaseAbiVersion: "v1.4",
|
|
6856
|
+
// prod still on AppController v1.4.0 (3-field Release)
|
|
5287
6857
|
permissionControllerAddress: ChainAddresses[MAINNET_CHAIN_ID].PermissionController,
|
|
5288
6858
|
erc7702DelegatorAddress: CommonAddresses.ERC7702Delegator,
|
|
5289
6859
|
kmsServerURL: "http://10.128.0.2:8080",
|