gs2 1.3.187 → 1.3.189
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/package.json +1 -1
- package/script/model/RandomStatus.d.ts +18 -0
- package/script/model/RandomStatus.js +70 -0
- package/script/model/RandomStatus.js.map +1 -0
- package/script/model/RandomStatus.ts +69 -0
- package/script/model/RandomUsed.d.ts +17 -0
- package/script/model/RandomUsed.js +62 -0
- package/script/model/RandomUsed.js.map +1 -0
- package/script/model/RandomUsed.ts +60 -0
- package/script/result/DebugInvokeResult.d.ts +4 -0
- package/script/result/DebugInvokeResult.js +14 -0
- package/script/result/DebugInvokeResult.js.map +1 -1
- package/script/result/DebugInvokeResult.ts +17 -0
- package/script/result/InvokeScriptResult.d.ts +4 -0
- package/script/result/InvokeScriptResult.js +14 -0
- package/script/result/InvokeScriptResult.js.map +1 -1
- package/script/result/InvokeScriptResult.ts +17 -0
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
import RandomUsed from './RandomUsed';
|
|
3
|
+
export default class RandomStatus implements IModel {
|
|
4
|
+
private seed;
|
|
5
|
+
private used;
|
|
6
|
+
getSeed(): number | null;
|
|
7
|
+
setSeed(seed: number | null): this;
|
|
8
|
+
withSeed(seed: number | null): this;
|
|
9
|
+
getUsed(): RandomUsed[] | null;
|
|
10
|
+
setUsed(used: RandomUsed[] | null): this;
|
|
11
|
+
withUsed(used: RandomUsed[] | null): this;
|
|
12
|
+
static fromDict(data: {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}): RandomStatus | null;
|
|
15
|
+
toDict(): {
|
|
16
|
+
[key: string]: any;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var tslib_1 = require("tslib");
|
|
19
|
+
var RandomUsed_1 = tslib_1.__importDefault(require("./RandomUsed"));
|
|
20
|
+
var RandomStatus = /** @class */ (function () {
|
|
21
|
+
function RandomStatus() {
|
|
22
|
+
this.seed = null;
|
|
23
|
+
this.used = null;
|
|
24
|
+
}
|
|
25
|
+
RandomStatus.prototype.getSeed = function () {
|
|
26
|
+
return this.seed;
|
|
27
|
+
};
|
|
28
|
+
RandomStatus.prototype.setSeed = function (seed) {
|
|
29
|
+
this.seed = seed;
|
|
30
|
+
return this;
|
|
31
|
+
};
|
|
32
|
+
RandomStatus.prototype.withSeed = function (seed) {
|
|
33
|
+
this.seed = seed;
|
|
34
|
+
return this;
|
|
35
|
+
};
|
|
36
|
+
RandomStatus.prototype.getUsed = function () {
|
|
37
|
+
return this.used;
|
|
38
|
+
};
|
|
39
|
+
RandomStatus.prototype.setUsed = function (used) {
|
|
40
|
+
this.used = used;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
RandomStatus.prototype.withUsed = function (used) {
|
|
44
|
+
this.used = used;
|
|
45
|
+
return this;
|
|
46
|
+
};
|
|
47
|
+
RandomStatus.fromDict = function (data) {
|
|
48
|
+
if (data == undefined || data == null) {
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
return new RandomStatus()
|
|
52
|
+
.withSeed(data["seed"])
|
|
53
|
+
.withUsed(data.used ?
|
|
54
|
+
data.used.map(function (item) {
|
|
55
|
+
return RandomUsed_1.default.fromDict(item);
|
|
56
|
+
}) : []);
|
|
57
|
+
};
|
|
58
|
+
RandomStatus.prototype.toDict = function () {
|
|
59
|
+
return {
|
|
60
|
+
"seed": this.getSeed(),
|
|
61
|
+
"used": this.getUsed() ?
|
|
62
|
+
this.getUsed().map(function (item) {
|
|
63
|
+
return item.toDict();
|
|
64
|
+
}) : [],
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
return RandomStatus;
|
|
68
|
+
}());
|
|
69
|
+
exports.default = RandomStatus;
|
|
70
|
+
//# sourceMappingURL=RandomStatus.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomStatus.js","sourceRoot":"","sources":["RandomStatus.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAGH,oEAAsC;AAEtC;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,SAAI,GAAsB,IAAI,CAAC;IA+C3C,CAAC;IA9CU,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,8BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,8BAAO,GAAd,UAAe,IAAuB;QAClC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,+BAAQ,GAAf,UAAgB,IAAuB;QACnC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,qBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,YAAY,EAAE;aACpB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACjB,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACrC,OAAO,oBAAU,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YACrC,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,6BAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;gBACpB,IAAI,CAAC,OAAO,EAAG,CAAC,GAAG,CAAC,UAAC,IAAgB;oBACjC,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;gBACzB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,mBAAC;AAAD,CAAC,AAjDD,IAiDC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
import RandomUsed from './RandomUsed';
|
|
19
|
+
|
|
20
|
+
export default class RandomStatus implements IModel {
|
|
21
|
+
private seed: number|null = null;
|
|
22
|
+
private used: RandomUsed[]|null = null;
|
|
23
|
+
public getSeed(): number|null {
|
|
24
|
+
return this.seed;
|
|
25
|
+
}
|
|
26
|
+
public setSeed(seed: number|null) {
|
|
27
|
+
this.seed = seed;
|
|
28
|
+
return this;
|
|
29
|
+
}
|
|
30
|
+
public withSeed(seed: number|null): this {
|
|
31
|
+
this.seed = seed;
|
|
32
|
+
return this;
|
|
33
|
+
}
|
|
34
|
+
public getUsed(): RandomUsed[]|null {
|
|
35
|
+
return this.used;
|
|
36
|
+
}
|
|
37
|
+
public setUsed(used: RandomUsed[]|null) {
|
|
38
|
+
this.used = used;
|
|
39
|
+
return this;
|
|
40
|
+
}
|
|
41
|
+
public withUsed(used: RandomUsed[]|null): this {
|
|
42
|
+
this.used = used;
|
|
43
|
+
return this;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
public static fromDict(data: {[key: string]: any}): RandomStatus|null {
|
|
47
|
+
if (data == undefined || data == null) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
50
|
+
return new RandomStatus()
|
|
51
|
+
.withSeed(data["seed"])
|
|
52
|
+
.withUsed(data.used ?
|
|
53
|
+
data.used.map((item: {[key: string]: any}) => {
|
|
54
|
+
return RandomUsed.fromDict(item);
|
|
55
|
+
}
|
|
56
|
+
) : []);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public toDict(): {[key: string]: any} {
|
|
60
|
+
return {
|
|
61
|
+
"seed": this.getSeed(),
|
|
62
|
+
"used": this.getUsed() ?
|
|
63
|
+
this.getUsed()!.map((item: RandomUsed) => {
|
|
64
|
+
return item.toDict();
|
|
65
|
+
}
|
|
66
|
+
) : [],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import IModel from '../../core/interface/IModel';
|
|
2
|
+
export default class RandomUsed implements IModel {
|
|
3
|
+
private category;
|
|
4
|
+
private used;
|
|
5
|
+
getCategory(): number | null;
|
|
6
|
+
setCategory(category: number | null): this;
|
|
7
|
+
withCategory(category: number | null): this;
|
|
8
|
+
getUsed(): number | null;
|
|
9
|
+
setUsed(used: number | null): this;
|
|
10
|
+
withUsed(used: number | null): this;
|
|
11
|
+
static fromDict(data: {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}): RandomUsed | null;
|
|
14
|
+
toDict(): {
|
|
15
|
+
[key: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
4
|
+
Reserved.
|
|
5
|
+
|
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
7
|
+
You may not use this file except in compliance with the License.
|
|
8
|
+
A copy of the License is located at
|
|
9
|
+
|
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
|
|
12
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
13
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
14
|
+
express or implied. See the License for the specific language governing
|
|
15
|
+
permissions and limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
var RandomUsed = /** @class */ (function () {
|
|
19
|
+
function RandomUsed() {
|
|
20
|
+
this.category = null;
|
|
21
|
+
this.used = null;
|
|
22
|
+
}
|
|
23
|
+
RandomUsed.prototype.getCategory = function () {
|
|
24
|
+
return this.category;
|
|
25
|
+
};
|
|
26
|
+
RandomUsed.prototype.setCategory = function (category) {
|
|
27
|
+
this.category = category;
|
|
28
|
+
return this;
|
|
29
|
+
};
|
|
30
|
+
RandomUsed.prototype.withCategory = function (category) {
|
|
31
|
+
this.category = category;
|
|
32
|
+
return this;
|
|
33
|
+
};
|
|
34
|
+
RandomUsed.prototype.getUsed = function () {
|
|
35
|
+
return this.used;
|
|
36
|
+
};
|
|
37
|
+
RandomUsed.prototype.setUsed = function (used) {
|
|
38
|
+
this.used = used;
|
|
39
|
+
return this;
|
|
40
|
+
};
|
|
41
|
+
RandomUsed.prototype.withUsed = function (used) {
|
|
42
|
+
this.used = used;
|
|
43
|
+
return this;
|
|
44
|
+
};
|
|
45
|
+
RandomUsed.fromDict = function (data) {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new RandomUsed()
|
|
50
|
+
.withCategory(data["category"])
|
|
51
|
+
.withUsed(data["used"]);
|
|
52
|
+
};
|
|
53
|
+
RandomUsed.prototype.toDict = function () {
|
|
54
|
+
return {
|
|
55
|
+
"category": this.getCategory(),
|
|
56
|
+
"used": this.getUsed(),
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
return RandomUsed;
|
|
60
|
+
}());
|
|
61
|
+
exports.default = RandomUsed;
|
|
62
|
+
//# sourceMappingURL=RandomUsed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RandomUsed.js","sourceRoot":"","sources":["RandomUsed.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAIH;IAAA;QACY,aAAQ,GAAgB,IAAI,CAAC;QAC7B,SAAI,GAAgB,IAAI,CAAC;IAuCrC,CAAC;IAtCU,gCAAW,GAAlB;QACI,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACM,gCAAW,GAAlB,UAAmB,QAAqB;QACpC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,iCAAY,GAAnB,UAAoB,QAAqB;QACrC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,4BAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IACM,4BAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IACM,6BAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,mBAAQ,GAAtB,UAAuB,IAA0B;QAC7C,IAAI,IAAI,IAAI,SAAS,IAAI,IAAI,IAAI,IAAI,EAAE;YACnC,OAAO,IAAI,CAAC;SACf;QACD,OAAO,IAAI,UAAU,EAAE;aAClB,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;aAC9B,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;IAChC,CAAC;IAEM,2BAAM,GAAb;QACI,OAAO;YACH,UAAU,EAAE,IAAI,CAAC,WAAW,EAAE;YAC9B,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;SACzB,CAAC;IACN,CAAC;IACL,iBAAC;AAAD,CAAC,AAzCD,IAyCC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright 2016 Game Server Services, Inc. or its affiliates. All Rights
|
|
3
|
+
Reserved.
|
|
4
|
+
|
|
5
|
+
Licensed under the Apache License, Version 2.0 (the "License").
|
|
6
|
+
You may not use this file except in compliance with the License.
|
|
7
|
+
A copy of the License is located at
|
|
8
|
+
|
|
9
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
|
|
11
|
+
or in the "license" file accompanying this file. This file is distributed
|
|
12
|
+
on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
|
13
|
+
express or implied. See the License for the specific language governing
|
|
14
|
+
permissions and limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
import IModel from '../../core/interface/IModel';
|
|
18
|
+
|
|
19
|
+
export default class RandomUsed implements IModel {
|
|
20
|
+
private category: number|null = null;
|
|
21
|
+
private used: number|null = null;
|
|
22
|
+
public getCategory(): number|null {
|
|
23
|
+
return this.category;
|
|
24
|
+
}
|
|
25
|
+
public setCategory(category: number|null) {
|
|
26
|
+
this.category = category;
|
|
27
|
+
return this;
|
|
28
|
+
}
|
|
29
|
+
public withCategory(category: number|null): this {
|
|
30
|
+
this.category = category;
|
|
31
|
+
return this;
|
|
32
|
+
}
|
|
33
|
+
public getUsed(): number|null {
|
|
34
|
+
return this.used;
|
|
35
|
+
}
|
|
36
|
+
public setUsed(used: number|null) {
|
|
37
|
+
this.used = used;
|
|
38
|
+
return this;
|
|
39
|
+
}
|
|
40
|
+
public withUsed(used: number|null): this {
|
|
41
|
+
this.used = used;
|
|
42
|
+
return this;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
public static fromDict(data: {[key: string]: any}): RandomUsed|null {
|
|
46
|
+
if (data == undefined || data == null) {
|
|
47
|
+
return null;
|
|
48
|
+
}
|
|
49
|
+
return new RandomUsed()
|
|
50
|
+
.withCategory(data["category"])
|
|
51
|
+
.withUsed(data["used"]);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
public toDict(): {[key: string]: any} {
|
|
55
|
+
return {
|
|
56
|
+
"category": this.getCategory(),
|
|
57
|
+
"used": this.getUsed(),
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -2,6 +2,7 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
export default class DebugInvokeResult implements IResult {
|
|
3
3
|
private code;
|
|
4
4
|
private result;
|
|
5
|
+
private transaction;
|
|
5
6
|
private executeTime;
|
|
6
7
|
private charged;
|
|
7
8
|
private output;
|
|
@@ -11,6 +12,9 @@ export default class DebugInvokeResult implements IResult {
|
|
|
11
12
|
getResult(): string | null;
|
|
12
13
|
setResult(result: string | null): this;
|
|
13
14
|
withResult(result: string | null): this;
|
|
15
|
+
getTransaction(): string | null;
|
|
16
|
+
setTransaction(transaction: string | null): this;
|
|
17
|
+
withTransaction(transaction: string | null): this;
|
|
14
18
|
getExecuteTime(): number | null;
|
|
15
19
|
setExecuteTime(executeTime: number | null): this;
|
|
16
20
|
withExecuteTime(executeTime: number | null): this;
|
|
@@ -19,6 +19,7 @@ var DebugInvokeResult = /** @class */ (function () {
|
|
|
19
19
|
function DebugInvokeResult() {
|
|
20
20
|
this.code = null;
|
|
21
21
|
this.result = null;
|
|
22
|
+
this.transaction = null;
|
|
22
23
|
this.executeTime = null;
|
|
23
24
|
this.charged = null;
|
|
24
25
|
this.output = null;
|
|
@@ -45,6 +46,17 @@ var DebugInvokeResult = /** @class */ (function () {
|
|
|
45
46
|
this.result = result;
|
|
46
47
|
return this;
|
|
47
48
|
};
|
|
49
|
+
DebugInvokeResult.prototype.getTransaction = function () {
|
|
50
|
+
return this.transaction;
|
|
51
|
+
};
|
|
52
|
+
DebugInvokeResult.prototype.setTransaction = function (transaction) {
|
|
53
|
+
this.transaction = transaction;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
DebugInvokeResult.prototype.withTransaction = function (transaction) {
|
|
57
|
+
this.transaction = transaction;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
48
60
|
DebugInvokeResult.prototype.getExecuteTime = function () {
|
|
49
61
|
return this.executeTime;
|
|
50
62
|
};
|
|
@@ -82,6 +94,7 @@ var DebugInvokeResult = /** @class */ (function () {
|
|
|
82
94
|
return new DebugInvokeResult()
|
|
83
95
|
.withCode(data["code"])
|
|
84
96
|
.withResult(data["result"])
|
|
97
|
+
.withTransaction(data["transaction"])
|
|
85
98
|
.withExecuteTime(data["executeTime"])
|
|
86
99
|
.withCharged(data["charged"])
|
|
87
100
|
.withOutput(data.output ?
|
|
@@ -93,6 +106,7 @@ var DebugInvokeResult = /** @class */ (function () {
|
|
|
93
106
|
return {
|
|
94
107
|
"code": this.getCode(),
|
|
95
108
|
"result": this.getResult(),
|
|
109
|
+
"transaction": this.getTransaction(),
|
|
96
110
|
"executeTime": this.getExecuteTime(),
|
|
97
111
|
"charged": this.getCharged(),
|
|
98
112
|
"output": this.getOutput() ?
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DebugInvokeResult.js","sourceRoot":"","sources":["DebugInvokeResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAC3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAgB,IAAI,CAAC;QAC5B,WAAM,GAAkB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"DebugInvokeResult.js","sourceRoot":"","sources":["DebugInvokeResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAC3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAgB,IAAI,CAAC;QAC5B,WAAM,GAAkB,IAAI,CAAC;IAkHzC,CAAC;IAhHU,mCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,mCAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,oCAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qCAAS,GAAhB;QACI,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAEM,qCAAS,GAAhB,UAAiB,MAAmB;QAChC,IAAI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AAC;IAChB,CAAC;IAEM,sCAAU,GAAjB,UAAkB,MAAqB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEa,0BAAQ,GAAtB,UAAuB,IAA0B;QAC7C,OAAO,IAAI,iBAAiB,EAAE;aACzB,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;aACtB,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC1B,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,eAAe,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;aACpC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;aAC5B,UAAU,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACrB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,UAAC,IAA0B;gBACvC,OAAO,IAAI,CAAC;YAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IAEM,kCAAM,GAAb;QACI,OAAO;YACH,MAAM,EAAE,IAAI,CAAC,OAAO,EAAE;YACtB,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE;YAC1B,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,aAAa,EAAE,IAAI,CAAC,cAAc,EAAE;YACpC,SAAS,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,QAAQ,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;gBACxB,IAAI,CAAC,SAAS,EAAG,CAAC,GAAG,CAAC,UAAC,IAAY;oBAC/B,OAAO,IAAI,CAAC;gBAChB,CAAC,CACJ,CAAC,CAAC,CAAC,EAAE;SACT,CAAC;IACN,CAAC;IACL,wBAAC;AAAD,CAAC,AAxHD,IAwHC"}
|
|
@@ -21,6 +21,7 @@ import * as Gs2Script from '../model'
|
|
|
21
21
|
export default class DebugInvokeResult implements IResult {
|
|
22
22
|
private code: number|null = null;
|
|
23
23
|
private result: string|null = null;
|
|
24
|
+
private transaction: string|null = null;
|
|
24
25
|
private executeTime: number|null = null;
|
|
25
26
|
private charged: number|null = null;
|
|
26
27
|
private output: string[]|null = null;
|
|
@@ -53,6 +54,20 @@ export default class DebugInvokeResult implements IResult {
|
|
|
53
54
|
return this;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
public getTransaction(): string|null {
|
|
58
|
+
return this.transaction;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public setTransaction(transaction: string|null) {
|
|
62
|
+
this.transaction = transaction;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public withTransaction(transaction: string|null): this {
|
|
67
|
+
this.transaction = transaction;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
|
|
56
71
|
public getExecuteTime(): number|null {
|
|
57
72
|
return this.executeTime;
|
|
58
73
|
}
|
|
@@ -99,6 +114,7 @@ export default class DebugInvokeResult implements IResult {
|
|
|
99
114
|
return new DebugInvokeResult()
|
|
100
115
|
.withCode(data["code"])
|
|
101
116
|
.withResult(data["result"])
|
|
117
|
+
.withTransaction(data["transaction"])
|
|
102
118
|
.withExecuteTime(data["executeTime"])
|
|
103
119
|
.withCharged(data["charged"])
|
|
104
120
|
.withOutput(data.output ?
|
|
@@ -112,6 +128,7 @@ export default class DebugInvokeResult implements IResult {
|
|
|
112
128
|
return {
|
|
113
129
|
"code": this.getCode(),
|
|
114
130
|
"result": this.getResult(),
|
|
131
|
+
"transaction": this.getTransaction(),
|
|
115
132
|
"executeTime": this.getExecuteTime(),
|
|
116
133
|
"charged": this.getCharged(),
|
|
117
134
|
"output": this.getOutput() ?
|
|
@@ -2,6 +2,7 @@ import IResult from '../../core/interface/IResult';
|
|
|
2
2
|
export default class InvokeScriptResult implements IResult {
|
|
3
3
|
private code;
|
|
4
4
|
private result;
|
|
5
|
+
private transaction;
|
|
5
6
|
private executeTime;
|
|
6
7
|
private charged;
|
|
7
8
|
private output;
|
|
@@ -11,6 +12,9 @@ export default class InvokeScriptResult implements IResult {
|
|
|
11
12
|
getResult(): string | null;
|
|
12
13
|
setResult(result: string | null): this;
|
|
13
14
|
withResult(result: string | null): this;
|
|
15
|
+
getTransaction(): string | null;
|
|
16
|
+
setTransaction(transaction: string | null): this;
|
|
17
|
+
withTransaction(transaction: string | null): this;
|
|
14
18
|
getExecuteTime(): number | null;
|
|
15
19
|
setExecuteTime(executeTime: number | null): this;
|
|
16
20
|
withExecuteTime(executeTime: number | null): this;
|
|
@@ -19,6 +19,7 @@ var InvokeScriptResult = /** @class */ (function () {
|
|
|
19
19
|
function InvokeScriptResult() {
|
|
20
20
|
this.code = null;
|
|
21
21
|
this.result = null;
|
|
22
|
+
this.transaction = null;
|
|
22
23
|
this.executeTime = null;
|
|
23
24
|
this.charged = null;
|
|
24
25
|
this.output = null;
|
|
@@ -45,6 +46,17 @@ var InvokeScriptResult = /** @class */ (function () {
|
|
|
45
46
|
this.result = result;
|
|
46
47
|
return this;
|
|
47
48
|
};
|
|
49
|
+
InvokeScriptResult.prototype.getTransaction = function () {
|
|
50
|
+
return this.transaction;
|
|
51
|
+
};
|
|
52
|
+
InvokeScriptResult.prototype.setTransaction = function (transaction) {
|
|
53
|
+
this.transaction = transaction;
|
|
54
|
+
return this;
|
|
55
|
+
};
|
|
56
|
+
InvokeScriptResult.prototype.withTransaction = function (transaction) {
|
|
57
|
+
this.transaction = transaction;
|
|
58
|
+
return this;
|
|
59
|
+
};
|
|
48
60
|
InvokeScriptResult.prototype.getExecuteTime = function () {
|
|
49
61
|
return this.executeTime;
|
|
50
62
|
};
|
|
@@ -82,6 +94,7 @@ var InvokeScriptResult = /** @class */ (function () {
|
|
|
82
94
|
return new InvokeScriptResult()
|
|
83
95
|
.withCode(data["code"])
|
|
84
96
|
.withResult(data["result"])
|
|
97
|
+
.withTransaction(data["transaction"])
|
|
85
98
|
.withExecuteTime(data["executeTime"])
|
|
86
99
|
.withCharged(data["charged"])
|
|
87
100
|
.withOutput(data.output ?
|
|
@@ -93,6 +106,7 @@ var InvokeScriptResult = /** @class */ (function () {
|
|
|
93
106
|
return {
|
|
94
107
|
"code": this.getCode(),
|
|
95
108
|
"result": this.getResult(),
|
|
109
|
+
"transaction": this.getTransaction(),
|
|
96
110
|
"executeTime": this.getExecuteTime(),
|
|
97
111
|
"charged": this.getCharged(),
|
|
98
112
|
"output": this.getOutput() ?
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvokeScriptResult.js","sourceRoot":"","sources":["InvokeScriptResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAC3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAgB,IAAI,CAAC;QAC5B,WAAM,GAAkB,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"InvokeScriptResult.js","sourceRoot":"","sources":["InvokeScriptResult.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAMH;IAAA;QACY,SAAI,GAAgB,IAAI,CAAC;QACzB,WAAM,GAAgB,IAAI,CAAC;QAC3B,gBAAW,GAAgB,IAAI,CAAC;QAChC,gBAAW,GAAgB,IAAI,CAAC;QAChC,YAAO,GAAgB,IAAI,CAAC;QAC5B,WAAM,GAAkB,IAAI,CAAC;IAkHzC,CAAC;IAhHU,oCAAO,GAAd;QACI,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAEM,oCAAO,GAAd,UAAe,IAAiB;QAC5B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,qCAAQ,GAAf,UAAgB,IAAiB;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,OAAO,IAAI,CAAC;IAChB,CAAC;IAEM,sCAAS,GAAhB;QACI,OAAO,IAA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@@ import * as Gs2Script from '../model'
|
|
|
21
21
|
export default class InvokeScriptResult implements IResult {
|
|
22
22
|
private code: number|null = null;
|
|
23
23
|
private result: string|null = null;
|
|
24
|
+
private transaction: string|null = null;
|
|
24
25
|
private executeTime: number|null = null;
|
|
25
26
|
private charged: number|null = null;
|
|
26
27
|
private output: string[]|null = null;
|
|
@@ -53,6 +54,20 @@ export default class InvokeScriptResult implements IResult {
|
|
|
53
54
|
return this;
|
|
54
55
|
}
|
|
55
56
|
|
|
57
|
+
public getTransaction(): string|null {
|
|
58
|
+
return this.transaction;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
public setTransaction(transaction: string|null) {
|
|
62
|
+
this.transaction = transaction;
|
|
63
|
+
return this;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
public withTransaction(transaction: string|null): this {
|
|
67
|
+
this.transaction = transaction;
|
|
68
|
+
return this;
|
|
69
|
+
}
|
|
70
|
+
|
|
56
71
|
public getExecuteTime(): number|null {
|
|
57
72
|
return this.executeTime;
|
|
58
73
|
}
|
|
@@ -99,6 +114,7 @@ export default class InvokeScriptResult implements IResult {
|
|
|
99
114
|
return new InvokeScriptResult()
|
|
100
115
|
.withCode(data["code"])
|
|
101
116
|
.withResult(data["result"])
|
|
117
|
+
.withTransaction(data["transaction"])
|
|
102
118
|
.withExecuteTime(data["executeTime"])
|
|
103
119
|
.withCharged(data["charged"])
|
|
104
120
|
.withOutput(data.output ?
|
|
@@ -112,6 +128,7 @@ export default class InvokeScriptResult implements IResult {
|
|
|
112
128
|
return {
|
|
113
129
|
"code": this.getCode(),
|
|
114
130
|
"result": this.getResult(),
|
|
131
|
+
"transaction": this.getTransaction(),
|
|
115
132
|
"executeTime": this.getExecuteTime(),
|
|
116
133
|
"charged": this.getCharged(),
|
|
117
134
|
"output": this.getOutput() ?
|