@miradorlabs/web-grpc 2.37.0 → 2.38.0
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
CHANGED
|
@@ -215,6 +215,8 @@ export interface TransactionActivity {
|
|
|
215
215
|
| undefined;
|
|
216
216
|
/** All decoded event logs from receipt */
|
|
217
217
|
eventLogs: EventLog[];
|
|
218
|
+
/** Root of the internal call tree; unset unless the tracer was run */
|
|
219
|
+
callTrace: CallFrame | undefined;
|
|
218
220
|
}
|
|
219
221
|
|
|
220
222
|
/** Activity card representing a single semantic action */
|
|
@@ -377,6 +379,46 @@ export interface DecodedParam {
|
|
|
377
379
|
indexed: boolean;
|
|
378
380
|
}
|
|
379
381
|
|
|
382
|
+
/**
|
|
383
|
+
* CallFrame is one node of a transaction's internal call tree (debug_traceTransaction/callTracer).
|
|
384
|
+
* A reverted transaction emits no receipt logs, so this is the only record of what it actually did.
|
|
385
|
+
*/
|
|
386
|
+
export interface CallFrame {
|
|
387
|
+
/** CALL, DELEGATECALL, STATICCALL, CREATE, CREATE2, SELFDESTRUCT */
|
|
388
|
+
callType: string;
|
|
389
|
+
fromAddress: string;
|
|
390
|
+
/** Created contract address for CREATE/CREATE2 */
|
|
391
|
+
toAddress: string;
|
|
392
|
+
/** Native value moved by this frame, in wei */
|
|
393
|
+
valueRaw: string;
|
|
394
|
+
/** Human-readable native value (e.g., "0.5 ETH") */
|
|
395
|
+
valueFormatted: string;
|
|
396
|
+
/** Gas supplied to the frame */
|
|
397
|
+
gas: number;
|
|
398
|
+
/** Gas consumed by the frame */
|
|
399
|
+
gasUsed: number;
|
|
400
|
+
/** 0 for the root frame */
|
|
401
|
+
depth: number;
|
|
402
|
+
/** Decoded input for this frame (absent for CREATE/CREATE2) */
|
|
403
|
+
calldata:
|
|
404
|
+
| CalldataInfo
|
|
405
|
+
| undefined;
|
|
406
|
+
/** Return data, or revert data when the frame failed */
|
|
407
|
+
outputHex: string;
|
|
408
|
+
/** Whether this frame itself failed */
|
|
409
|
+
reverted: boolean;
|
|
410
|
+
/** Raw tracer error (e.g., "execution reverted", "out of gas") */
|
|
411
|
+
errorMessage: string;
|
|
412
|
+
/** Decoded revert string or custom error, when resolvable */
|
|
413
|
+
revertReason: string;
|
|
414
|
+
/** Logs emitted inside this frame; empty when it or an ancestor reverted (the tracer drops them, as the receipt does) */
|
|
415
|
+
eventLogs: EventLog[];
|
|
416
|
+
/** Sub-calls, in execution order */
|
|
417
|
+
calls: CallFrame[];
|
|
418
|
+
/** Sub-calls were dropped to stay under the frame/depth cap */
|
|
419
|
+
truncated: boolean;
|
|
420
|
+
}
|
|
421
|
+
|
|
380
422
|
/** EventLog represents a decoded event log from a transaction receipt */
|
|
381
423
|
export interface EventLog {
|
|
382
424
|
/** Position in receipt */
|
|
@@ -818,6 +860,7 @@ function createBaseTransactionActivity(): TransactionActivity {
|
|
|
818
860
|
nativeValueFiat: undefined,
|
|
819
861
|
calldata: undefined,
|
|
820
862
|
eventLogs: [],
|
|
863
|
+
callTrace: undefined,
|
|
821
864
|
};
|
|
822
865
|
}
|
|
823
866
|
|
|
@@ -850,6 +893,9 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
|
|
|
850
893
|
for (const v of message.eventLogs) {
|
|
851
894
|
EventLog.encode(v!, writer.uint32(82).fork()).join();
|
|
852
895
|
}
|
|
896
|
+
if (message.callTrace !== undefined) {
|
|
897
|
+
CallFrame.encode(message.callTrace, writer.uint32(90).fork()).join();
|
|
898
|
+
}
|
|
853
899
|
return writer;
|
|
854
900
|
},
|
|
855
901
|
|
|
@@ -938,6 +984,14 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
|
|
|
938
984
|
message.eventLogs.push(EventLog.decode(reader, reader.uint32()));
|
|
939
985
|
continue;
|
|
940
986
|
}
|
|
987
|
+
case 11: {
|
|
988
|
+
if (tag !== 90) {
|
|
989
|
+
break;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
message.callTrace = CallFrame.decode(reader, reader.uint32());
|
|
993
|
+
continue;
|
|
994
|
+
}
|
|
941
995
|
}
|
|
942
996
|
if ((tag & 7) === 4 || tag === 0) {
|
|
943
997
|
break;
|
|
@@ -987,6 +1041,11 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
|
|
|
987
1041
|
: globalThis.Array.isArray(object?.event_logs)
|
|
988
1042
|
? object.event_logs.map((e: any) => EventLog.fromJSON(e))
|
|
989
1043
|
: [],
|
|
1044
|
+
callTrace: isSet(object.callTrace)
|
|
1045
|
+
? CallFrame.fromJSON(object.callTrace)
|
|
1046
|
+
: isSet(object.call_trace)
|
|
1047
|
+
? CallFrame.fromJSON(object.call_trace)
|
|
1048
|
+
: undefined,
|
|
990
1049
|
};
|
|
991
1050
|
},
|
|
992
1051
|
|
|
@@ -1019,6 +1078,9 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
|
|
|
1019
1078
|
if (message.eventLogs?.length) {
|
|
1020
1079
|
obj.eventLogs = message.eventLogs.map((e) => EventLog.toJSON(e));
|
|
1021
1080
|
}
|
|
1081
|
+
if (message.callTrace !== undefined) {
|
|
1082
|
+
obj.callTrace = CallFrame.toJSON(message.callTrace);
|
|
1083
|
+
}
|
|
1022
1084
|
return obj;
|
|
1023
1085
|
},
|
|
1024
1086
|
|
|
@@ -1040,6 +1102,9 @@ export const TransactionActivity: MessageFns<TransactionActivity> = {
|
|
|
1040
1102
|
? CalldataInfo.fromPartial(object.calldata)
|
|
1041
1103
|
: undefined;
|
|
1042
1104
|
message.eventLogs = object.eventLogs?.map((e) => EventLog.fromPartial(e)) || [];
|
|
1105
|
+
message.callTrace = (object.callTrace !== undefined && object.callTrace !== null)
|
|
1106
|
+
? CallFrame.fromPartial(object.callTrace)
|
|
1107
|
+
: undefined;
|
|
1043
1108
|
return message;
|
|
1044
1109
|
},
|
|
1045
1110
|
};
|
|
@@ -3672,6 +3737,376 @@ export const DecodedParam: MessageFns<DecodedParam> = {
|
|
|
3672
3737
|
},
|
|
3673
3738
|
};
|
|
3674
3739
|
|
|
3740
|
+
function createBaseCallFrame(): CallFrame {
|
|
3741
|
+
return {
|
|
3742
|
+
callType: "",
|
|
3743
|
+
fromAddress: "",
|
|
3744
|
+
toAddress: "",
|
|
3745
|
+
valueRaw: "",
|
|
3746
|
+
valueFormatted: "",
|
|
3747
|
+
gas: 0,
|
|
3748
|
+
gasUsed: 0,
|
|
3749
|
+
depth: 0,
|
|
3750
|
+
calldata: undefined,
|
|
3751
|
+
outputHex: "",
|
|
3752
|
+
reverted: false,
|
|
3753
|
+
errorMessage: "",
|
|
3754
|
+
revertReason: "",
|
|
3755
|
+
eventLogs: [],
|
|
3756
|
+
calls: [],
|
|
3757
|
+
truncated: false,
|
|
3758
|
+
};
|
|
3759
|
+
}
|
|
3760
|
+
|
|
3761
|
+
export const CallFrame: MessageFns<CallFrame> = {
|
|
3762
|
+
encode(message: CallFrame, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
3763
|
+
if (message.callType !== "") {
|
|
3764
|
+
writer.uint32(10).string(message.callType);
|
|
3765
|
+
}
|
|
3766
|
+
if (message.fromAddress !== "") {
|
|
3767
|
+
writer.uint32(18).string(message.fromAddress);
|
|
3768
|
+
}
|
|
3769
|
+
if (message.toAddress !== "") {
|
|
3770
|
+
writer.uint32(26).string(message.toAddress);
|
|
3771
|
+
}
|
|
3772
|
+
if (message.valueRaw !== "") {
|
|
3773
|
+
writer.uint32(34).string(message.valueRaw);
|
|
3774
|
+
}
|
|
3775
|
+
if (message.valueFormatted !== "") {
|
|
3776
|
+
writer.uint32(42).string(message.valueFormatted);
|
|
3777
|
+
}
|
|
3778
|
+
if (message.gas !== 0) {
|
|
3779
|
+
writer.uint32(48).uint64(message.gas);
|
|
3780
|
+
}
|
|
3781
|
+
if (message.gasUsed !== 0) {
|
|
3782
|
+
writer.uint32(56).uint64(message.gasUsed);
|
|
3783
|
+
}
|
|
3784
|
+
if (message.depth !== 0) {
|
|
3785
|
+
writer.uint32(64).uint32(message.depth);
|
|
3786
|
+
}
|
|
3787
|
+
if (message.calldata !== undefined) {
|
|
3788
|
+
CalldataInfo.encode(message.calldata, writer.uint32(74).fork()).join();
|
|
3789
|
+
}
|
|
3790
|
+
if (message.outputHex !== "") {
|
|
3791
|
+
writer.uint32(82).string(message.outputHex);
|
|
3792
|
+
}
|
|
3793
|
+
if (message.reverted !== false) {
|
|
3794
|
+
writer.uint32(88).bool(message.reverted);
|
|
3795
|
+
}
|
|
3796
|
+
if (message.errorMessage !== "") {
|
|
3797
|
+
writer.uint32(98).string(message.errorMessage);
|
|
3798
|
+
}
|
|
3799
|
+
if (message.revertReason !== "") {
|
|
3800
|
+
writer.uint32(106).string(message.revertReason);
|
|
3801
|
+
}
|
|
3802
|
+
for (const v of message.eventLogs) {
|
|
3803
|
+
EventLog.encode(v!, writer.uint32(114).fork()).join();
|
|
3804
|
+
}
|
|
3805
|
+
for (const v of message.calls) {
|
|
3806
|
+
CallFrame.encode(v!, writer.uint32(122).fork()).join();
|
|
3807
|
+
}
|
|
3808
|
+
if (message.truncated !== false) {
|
|
3809
|
+
writer.uint32(128).bool(message.truncated);
|
|
3810
|
+
}
|
|
3811
|
+
return writer;
|
|
3812
|
+
},
|
|
3813
|
+
|
|
3814
|
+
decode(input: BinaryReader | Uint8Array, length?: number): CallFrame {
|
|
3815
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
3816
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
3817
|
+
if (previousRecursionDepth >= 100) {
|
|
3818
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3819
|
+
}
|
|
3820
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3821
|
+
try {
|
|
3822
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
3823
|
+
const message = createBaseCallFrame();
|
|
3824
|
+
while (reader.pos < end) {
|
|
3825
|
+
const tag = reader.uint32();
|
|
3826
|
+
switch (tag >>> 3) {
|
|
3827
|
+
case 1: {
|
|
3828
|
+
if (tag !== 10) {
|
|
3829
|
+
break;
|
|
3830
|
+
}
|
|
3831
|
+
|
|
3832
|
+
message.callType = reader.string();
|
|
3833
|
+
continue;
|
|
3834
|
+
}
|
|
3835
|
+
case 2: {
|
|
3836
|
+
if (tag !== 18) {
|
|
3837
|
+
break;
|
|
3838
|
+
}
|
|
3839
|
+
|
|
3840
|
+
message.fromAddress = reader.string();
|
|
3841
|
+
continue;
|
|
3842
|
+
}
|
|
3843
|
+
case 3: {
|
|
3844
|
+
if (tag !== 26) {
|
|
3845
|
+
break;
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
message.toAddress = reader.string();
|
|
3849
|
+
continue;
|
|
3850
|
+
}
|
|
3851
|
+
case 4: {
|
|
3852
|
+
if (tag !== 34) {
|
|
3853
|
+
break;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
message.valueRaw = reader.string();
|
|
3857
|
+
continue;
|
|
3858
|
+
}
|
|
3859
|
+
case 5: {
|
|
3860
|
+
if (tag !== 42) {
|
|
3861
|
+
break;
|
|
3862
|
+
}
|
|
3863
|
+
|
|
3864
|
+
message.valueFormatted = reader.string();
|
|
3865
|
+
continue;
|
|
3866
|
+
}
|
|
3867
|
+
case 6: {
|
|
3868
|
+
if (tag !== 48) {
|
|
3869
|
+
break;
|
|
3870
|
+
}
|
|
3871
|
+
|
|
3872
|
+
message.gas = longToNumber(reader.uint64());
|
|
3873
|
+
continue;
|
|
3874
|
+
}
|
|
3875
|
+
case 7: {
|
|
3876
|
+
if (tag !== 56) {
|
|
3877
|
+
break;
|
|
3878
|
+
}
|
|
3879
|
+
|
|
3880
|
+
message.gasUsed = longToNumber(reader.uint64());
|
|
3881
|
+
continue;
|
|
3882
|
+
}
|
|
3883
|
+
case 8: {
|
|
3884
|
+
if (tag !== 64) {
|
|
3885
|
+
break;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
message.depth = reader.uint32();
|
|
3889
|
+
continue;
|
|
3890
|
+
}
|
|
3891
|
+
case 9: {
|
|
3892
|
+
if (tag !== 74) {
|
|
3893
|
+
break;
|
|
3894
|
+
}
|
|
3895
|
+
|
|
3896
|
+
message.calldata = CalldataInfo.decode(reader, reader.uint32());
|
|
3897
|
+
continue;
|
|
3898
|
+
}
|
|
3899
|
+
case 10: {
|
|
3900
|
+
if (tag !== 82) {
|
|
3901
|
+
break;
|
|
3902
|
+
}
|
|
3903
|
+
|
|
3904
|
+
message.outputHex = reader.string();
|
|
3905
|
+
continue;
|
|
3906
|
+
}
|
|
3907
|
+
case 11: {
|
|
3908
|
+
if (tag !== 88) {
|
|
3909
|
+
break;
|
|
3910
|
+
}
|
|
3911
|
+
|
|
3912
|
+
message.reverted = reader.bool();
|
|
3913
|
+
continue;
|
|
3914
|
+
}
|
|
3915
|
+
case 12: {
|
|
3916
|
+
if (tag !== 98) {
|
|
3917
|
+
break;
|
|
3918
|
+
}
|
|
3919
|
+
|
|
3920
|
+
message.errorMessage = reader.string();
|
|
3921
|
+
continue;
|
|
3922
|
+
}
|
|
3923
|
+
case 13: {
|
|
3924
|
+
if (tag !== 106) {
|
|
3925
|
+
break;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
message.revertReason = reader.string();
|
|
3929
|
+
continue;
|
|
3930
|
+
}
|
|
3931
|
+
case 14: {
|
|
3932
|
+
if (tag !== 114) {
|
|
3933
|
+
break;
|
|
3934
|
+
}
|
|
3935
|
+
|
|
3936
|
+
message.eventLogs.push(EventLog.decode(reader, reader.uint32()));
|
|
3937
|
+
continue;
|
|
3938
|
+
}
|
|
3939
|
+
case 15: {
|
|
3940
|
+
if (tag !== 122) {
|
|
3941
|
+
break;
|
|
3942
|
+
}
|
|
3943
|
+
|
|
3944
|
+
message.calls.push(CallFrame.decode(reader, reader.uint32()));
|
|
3945
|
+
continue;
|
|
3946
|
+
}
|
|
3947
|
+
case 16: {
|
|
3948
|
+
if (tag !== 128) {
|
|
3949
|
+
break;
|
|
3950
|
+
}
|
|
3951
|
+
|
|
3952
|
+
message.truncated = reader.bool();
|
|
3953
|
+
continue;
|
|
3954
|
+
}
|
|
3955
|
+
}
|
|
3956
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3957
|
+
break;
|
|
3958
|
+
}
|
|
3959
|
+
reader.skip(tag & 7);
|
|
3960
|
+
}
|
|
3961
|
+
return message;
|
|
3962
|
+
} finally {
|
|
3963
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3964
|
+
}
|
|
3965
|
+
},
|
|
3966
|
+
|
|
3967
|
+
fromJSON(object: any): CallFrame {
|
|
3968
|
+
return {
|
|
3969
|
+
callType: isSet(object.callType)
|
|
3970
|
+
? globalThis.String(object.callType)
|
|
3971
|
+
: isSet(object.call_type)
|
|
3972
|
+
? globalThis.String(object.call_type)
|
|
3973
|
+
: "",
|
|
3974
|
+
fromAddress: isSet(object.fromAddress)
|
|
3975
|
+
? globalThis.String(object.fromAddress)
|
|
3976
|
+
: isSet(object.from_address)
|
|
3977
|
+
? globalThis.String(object.from_address)
|
|
3978
|
+
: "",
|
|
3979
|
+
toAddress: isSet(object.toAddress)
|
|
3980
|
+
? globalThis.String(object.toAddress)
|
|
3981
|
+
: isSet(object.to_address)
|
|
3982
|
+
? globalThis.String(object.to_address)
|
|
3983
|
+
: "",
|
|
3984
|
+
valueRaw: isSet(object.valueRaw)
|
|
3985
|
+
? globalThis.String(object.valueRaw)
|
|
3986
|
+
: isSet(object.value_raw)
|
|
3987
|
+
? globalThis.String(object.value_raw)
|
|
3988
|
+
: "",
|
|
3989
|
+
valueFormatted: isSet(object.valueFormatted)
|
|
3990
|
+
? globalThis.String(object.valueFormatted)
|
|
3991
|
+
: isSet(object.value_formatted)
|
|
3992
|
+
? globalThis.String(object.value_formatted)
|
|
3993
|
+
: "",
|
|
3994
|
+
gas: isSet(object.gas) ? globalThis.Number(object.gas) : 0,
|
|
3995
|
+
gasUsed: isSet(object.gasUsed)
|
|
3996
|
+
? globalThis.Number(object.gasUsed)
|
|
3997
|
+
: isSet(object.gas_used)
|
|
3998
|
+
? globalThis.Number(object.gas_used)
|
|
3999
|
+
: 0,
|
|
4000
|
+
depth: isSet(object.depth) ? globalThis.Number(object.depth) : 0,
|
|
4001
|
+
calldata: isSet(object.calldata) ? CalldataInfo.fromJSON(object.calldata) : undefined,
|
|
4002
|
+
outputHex: isSet(object.outputHex)
|
|
4003
|
+
? globalThis.String(object.outputHex)
|
|
4004
|
+
: isSet(object.output_hex)
|
|
4005
|
+
? globalThis.String(object.output_hex)
|
|
4006
|
+
: "",
|
|
4007
|
+
reverted: isSet(object.reverted) ? globalThis.Boolean(object.reverted) : false,
|
|
4008
|
+
errorMessage: isSet(object.errorMessage)
|
|
4009
|
+
? globalThis.String(object.errorMessage)
|
|
4010
|
+
: isSet(object.error_message)
|
|
4011
|
+
? globalThis.String(object.error_message)
|
|
4012
|
+
: "",
|
|
4013
|
+
revertReason: isSet(object.revertReason)
|
|
4014
|
+
? globalThis.String(object.revertReason)
|
|
4015
|
+
: isSet(object.revert_reason)
|
|
4016
|
+
? globalThis.String(object.revert_reason)
|
|
4017
|
+
: "",
|
|
4018
|
+
eventLogs: globalThis.Array.isArray(object?.eventLogs)
|
|
4019
|
+
? object.eventLogs.map((e: any) => EventLog.fromJSON(e))
|
|
4020
|
+
: globalThis.Array.isArray(object?.event_logs)
|
|
4021
|
+
? object.event_logs.map((e: any) => EventLog.fromJSON(e))
|
|
4022
|
+
: [],
|
|
4023
|
+
calls: globalThis.Array.isArray(object?.calls)
|
|
4024
|
+
? object.calls.map((e: any) => CallFrame.fromJSON(e))
|
|
4025
|
+
: [],
|
|
4026
|
+
truncated: isSet(object.truncated) ? globalThis.Boolean(object.truncated) : false,
|
|
4027
|
+
};
|
|
4028
|
+
},
|
|
4029
|
+
|
|
4030
|
+
toJSON(message: CallFrame): unknown {
|
|
4031
|
+
const obj: any = {};
|
|
4032
|
+
if (message.callType !== "") {
|
|
4033
|
+
obj.callType = message.callType;
|
|
4034
|
+
}
|
|
4035
|
+
if (message.fromAddress !== "") {
|
|
4036
|
+
obj.fromAddress = message.fromAddress;
|
|
4037
|
+
}
|
|
4038
|
+
if (message.toAddress !== "") {
|
|
4039
|
+
obj.toAddress = message.toAddress;
|
|
4040
|
+
}
|
|
4041
|
+
if (message.valueRaw !== "") {
|
|
4042
|
+
obj.valueRaw = message.valueRaw;
|
|
4043
|
+
}
|
|
4044
|
+
if (message.valueFormatted !== "") {
|
|
4045
|
+
obj.valueFormatted = message.valueFormatted;
|
|
4046
|
+
}
|
|
4047
|
+
if (message.gas !== 0) {
|
|
4048
|
+
obj.gas = Math.round(message.gas);
|
|
4049
|
+
}
|
|
4050
|
+
if (message.gasUsed !== 0) {
|
|
4051
|
+
obj.gasUsed = Math.round(message.gasUsed);
|
|
4052
|
+
}
|
|
4053
|
+
if (message.depth !== 0) {
|
|
4054
|
+
obj.depth = Math.round(message.depth);
|
|
4055
|
+
}
|
|
4056
|
+
if (message.calldata !== undefined) {
|
|
4057
|
+
obj.calldata = CalldataInfo.toJSON(message.calldata);
|
|
4058
|
+
}
|
|
4059
|
+
if (message.outputHex !== "") {
|
|
4060
|
+
obj.outputHex = message.outputHex;
|
|
4061
|
+
}
|
|
4062
|
+
if (message.reverted !== false) {
|
|
4063
|
+
obj.reverted = message.reverted;
|
|
4064
|
+
}
|
|
4065
|
+
if (message.errorMessage !== "") {
|
|
4066
|
+
obj.errorMessage = message.errorMessage;
|
|
4067
|
+
}
|
|
4068
|
+
if (message.revertReason !== "") {
|
|
4069
|
+
obj.revertReason = message.revertReason;
|
|
4070
|
+
}
|
|
4071
|
+
if (message.eventLogs?.length) {
|
|
4072
|
+
obj.eventLogs = message.eventLogs.map((e) => EventLog.toJSON(e));
|
|
4073
|
+
}
|
|
4074
|
+
if (message.calls?.length) {
|
|
4075
|
+
obj.calls = message.calls.map((e) => CallFrame.toJSON(e));
|
|
4076
|
+
}
|
|
4077
|
+
if (message.truncated !== false) {
|
|
4078
|
+
obj.truncated = message.truncated;
|
|
4079
|
+
}
|
|
4080
|
+
return obj;
|
|
4081
|
+
},
|
|
4082
|
+
|
|
4083
|
+
create<I extends Exact<DeepPartial<CallFrame>, I>>(base?: I): CallFrame {
|
|
4084
|
+
return CallFrame.fromPartial(base ?? ({} as any));
|
|
4085
|
+
},
|
|
4086
|
+
fromPartial<I extends Exact<DeepPartial<CallFrame>, I>>(object: I): CallFrame {
|
|
4087
|
+
const message = createBaseCallFrame();
|
|
4088
|
+
message.callType = object.callType ?? "";
|
|
4089
|
+
message.fromAddress = object.fromAddress ?? "";
|
|
4090
|
+
message.toAddress = object.toAddress ?? "";
|
|
4091
|
+
message.valueRaw = object.valueRaw ?? "";
|
|
4092
|
+
message.valueFormatted = object.valueFormatted ?? "";
|
|
4093
|
+
message.gas = object.gas ?? 0;
|
|
4094
|
+
message.gasUsed = object.gasUsed ?? 0;
|
|
4095
|
+
message.depth = object.depth ?? 0;
|
|
4096
|
+
message.calldata = (object.calldata !== undefined && object.calldata !== null)
|
|
4097
|
+
? CalldataInfo.fromPartial(object.calldata)
|
|
4098
|
+
: undefined;
|
|
4099
|
+
message.outputHex = object.outputHex ?? "";
|
|
4100
|
+
message.reverted = object.reverted ?? false;
|
|
4101
|
+
message.errorMessage = object.errorMessage ?? "";
|
|
4102
|
+
message.revertReason = object.revertReason ?? "";
|
|
4103
|
+
message.eventLogs = object.eventLogs?.map((e) => EventLog.fromPartial(e)) || [];
|
|
4104
|
+
message.calls = object.calls?.map((e) => CallFrame.fromPartial(e)) || [];
|
|
4105
|
+
message.truncated = object.truncated ?? false;
|
|
4106
|
+
return message;
|
|
4107
|
+
},
|
|
4108
|
+
};
|
|
4109
|
+
|
|
3675
4110
|
function createBaseEventLog(): EventLog {
|
|
3676
4111
|
return {
|
|
3677
4112
|
logIndex: 0,
|
|
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.gateway.web.v1.ActivityType', null, global);
|
|
|
31
31
|
goog.exportSymbol('proto.gateway.web.v1.ApprovalActivity', null, global);
|
|
32
32
|
goog.exportSymbol('proto.gateway.web.v1.ApprovalStandard', null, global);
|
|
33
33
|
goog.exportSymbol('proto.gateway.web.v1.BridgeActivity', null, global);
|
|
34
|
+
goog.exportSymbol('proto.gateway.web.v1.CallFrame', null, global);
|
|
34
35
|
goog.exportSymbol('proto.gateway.web.v1.CalldataInfo', null, global);
|
|
35
36
|
goog.exportSymbol('proto.gateway.web.v1.ContractInfo', null, global);
|
|
36
37
|
goog.exportSymbol('proto.gateway.web.v1.ContractInteractionActivity', null, global);
|
|
@@ -492,6 +493,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
492
493
|
*/
|
|
493
494
|
proto.gateway.web.v1.DecodedParam.displayName = 'proto.gateway.web.v1.DecodedParam';
|
|
494
495
|
}
|
|
496
|
+
/**
|
|
497
|
+
* Generated by JsPbCodeGenerator.
|
|
498
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
499
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
500
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
501
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
502
|
+
* valid.
|
|
503
|
+
* @extends {jspb.Message}
|
|
504
|
+
* @constructor
|
|
505
|
+
*/
|
|
506
|
+
proto.gateway.web.v1.CallFrame = function(opt_data) {
|
|
507
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.CallFrame.repeatedFields_, null);
|
|
508
|
+
};
|
|
509
|
+
goog.inherits(proto.gateway.web.v1.CallFrame, jspb.Message);
|
|
510
|
+
if (goog.DEBUG && !COMPILED) {
|
|
511
|
+
/**
|
|
512
|
+
* @public
|
|
513
|
+
* @override
|
|
514
|
+
*/
|
|
515
|
+
proto.gateway.web.v1.CallFrame.displayName = 'proto.gateway.web.v1.CallFrame';
|
|
516
|
+
}
|
|
495
517
|
/**
|
|
496
518
|
* Generated by JsPbCodeGenerator.
|
|
497
519
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1332,7 +1354,8 @@ tokensList: jspb.Message.toObjectList(msg.getTokensList(),
|
|
|
1332
1354
|
nativeValueFiat: (f = msg.getNativeValueFiat()) && proto.gateway.web.v1.FiatValue.toObject(includeInstance, f),
|
|
1333
1355
|
calldata: (f = msg.getCalldata()) && proto.gateway.web.v1.CalldataInfo.toObject(includeInstance, f),
|
|
1334
1356
|
eventLogsList: jspb.Message.toObjectList(msg.getEventLogsList(),
|
|
1335
|
-
proto.gateway.web.v1.EventLog.toObject, includeInstance)
|
|
1357
|
+
proto.gateway.web.v1.EventLog.toObject, includeInstance),
|
|
1358
|
+
callTrace: (f = msg.getCallTrace()) && proto.gateway.web.v1.CallFrame.toObject(includeInstance, f)
|
|
1336
1359
|
};
|
|
1337
1360
|
|
|
1338
1361
|
if (includeInstance) {
|
|
@@ -1410,6 +1433,11 @@ proto.gateway.web.v1.TransactionActivity.deserializeBinaryFromReader = function(
|
|
|
1410
1433
|
reader.readMessage(value,proto.gateway.web.v1.EventLog.deserializeBinaryFromReader);
|
|
1411
1434
|
msg.addEventLogs(value);
|
|
1412
1435
|
break;
|
|
1436
|
+
case 11:
|
|
1437
|
+
var value = new proto.gateway.web.v1.CallFrame;
|
|
1438
|
+
reader.readMessage(value,proto.gateway.web.v1.CallFrame.deserializeBinaryFromReader);
|
|
1439
|
+
msg.setCallTrace(value);
|
|
1440
|
+
break;
|
|
1413
1441
|
default:
|
|
1414
1442
|
reader.skipField();
|
|
1415
1443
|
break;
|
|
@@ -1507,6 +1535,14 @@ proto.gateway.web.v1.TransactionActivity.serializeBinaryToWriter = function(mess
|
|
|
1507
1535
|
proto.gateway.web.v1.EventLog.serializeBinaryToWriter
|
|
1508
1536
|
);
|
|
1509
1537
|
}
|
|
1538
|
+
f = message.getCallTrace();
|
|
1539
|
+
if (f != null) {
|
|
1540
|
+
writer.writeMessage(
|
|
1541
|
+
11,
|
|
1542
|
+
f,
|
|
1543
|
+
proto.gateway.web.v1.CallFrame.serializeBinaryToWriter
|
|
1544
|
+
);
|
|
1545
|
+
}
|
|
1510
1546
|
};
|
|
1511
1547
|
|
|
1512
1548
|
|
|
@@ -1770,6 +1806,43 @@ proto.gateway.web.v1.TransactionActivity.prototype.clearEventLogsList = function
|
|
|
1770
1806
|
};
|
|
1771
1807
|
|
|
1772
1808
|
|
|
1809
|
+
/**
|
|
1810
|
+
* optional CallFrame call_trace = 11;
|
|
1811
|
+
* @return {?proto.gateway.web.v1.CallFrame}
|
|
1812
|
+
*/
|
|
1813
|
+
proto.gateway.web.v1.TransactionActivity.prototype.getCallTrace = function() {
|
|
1814
|
+
return /** @type{?proto.gateway.web.v1.CallFrame} */ (
|
|
1815
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.CallFrame, 11));
|
|
1816
|
+
};
|
|
1817
|
+
|
|
1818
|
+
|
|
1819
|
+
/**
|
|
1820
|
+
* @param {?proto.gateway.web.v1.CallFrame|undefined} value
|
|
1821
|
+
* @return {!proto.gateway.web.v1.TransactionActivity} returns this
|
|
1822
|
+
*/
|
|
1823
|
+
proto.gateway.web.v1.TransactionActivity.prototype.setCallTrace = function(value) {
|
|
1824
|
+
return jspb.Message.setWrapperField(this, 11, value);
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1827
|
+
|
|
1828
|
+
/**
|
|
1829
|
+
* Clears the message field making it undefined.
|
|
1830
|
+
* @return {!proto.gateway.web.v1.TransactionActivity} returns this
|
|
1831
|
+
*/
|
|
1832
|
+
proto.gateway.web.v1.TransactionActivity.prototype.clearCallTrace = function() {
|
|
1833
|
+
return this.setCallTrace(undefined);
|
|
1834
|
+
};
|
|
1835
|
+
|
|
1836
|
+
|
|
1837
|
+
/**
|
|
1838
|
+
* Returns whether this field is set.
|
|
1839
|
+
* @return {boolean}
|
|
1840
|
+
*/
|
|
1841
|
+
proto.gateway.web.v1.TransactionActivity.prototype.hasCallTrace = function() {
|
|
1842
|
+
return jspb.Message.getField(this, 11) != null;
|
|
1843
|
+
};
|
|
1844
|
+
|
|
1845
|
+
|
|
1773
1846
|
|
|
1774
1847
|
/**
|
|
1775
1848
|
* List of repeated fields within this message type.
|
|
@@ -6577,6 +6650,660 @@ proto.gateway.web.v1.DecodedParam.prototype.setIndexed = function(value) {
|
|
|
6577
6650
|
|
|
6578
6651
|
|
|
6579
6652
|
|
|
6653
|
+
/**
|
|
6654
|
+
* List of repeated fields within this message type.
|
|
6655
|
+
* @private {!Array<number>}
|
|
6656
|
+
* @const
|
|
6657
|
+
*/
|
|
6658
|
+
proto.gateway.web.v1.CallFrame.repeatedFields_ = [14,15];
|
|
6659
|
+
|
|
6660
|
+
|
|
6661
|
+
|
|
6662
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
6663
|
+
/**
|
|
6664
|
+
* Creates an object representation of this proto.
|
|
6665
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
6666
|
+
* Optional fields that are not set will be set to undefined.
|
|
6667
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
6668
|
+
* For the list of reserved names please see:
|
|
6669
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
6670
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
6671
|
+
* JSPB instance for transitional soy proto support:
|
|
6672
|
+
* http://goto/soy-param-migration
|
|
6673
|
+
* @return {!Object}
|
|
6674
|
+
*/
|
|
6675
|
+
proto.gateway.web.v1.CallFrame.prototype.toObject = function(opt_includeInstance) {
|
|
6676
|
+
return proto.gateway.web.v1.CallFrame.toObject(opt_includeInstance, this);
|
|
6677
|
+
};
|
|
6678
|
+
|
|
6679
|
+
|
|
6680
|
+
/**
|
|
6681
|
+
* Static version of the {@see toObject} method.
|
|
6682
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
6683
|
+
* the JSPB instance for transitional soy proto support:
|
|
6684
|
+
* http://goto/soy-param-migration
|
|
6685
|
+
* @param {!proto.gateway.web.v1.CallFrame} msg The msg instance to transform.
|
|
6686
|
+
* @return {!Object}
|
|
6687
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6688
|
+
*/
|
|
6689
|
+
proto.gateway.web.v1.CallFrame.toObject = function(includeInstance, msg) {
|
|
6690
|
+
var f, obj = {
|
|
6691
|
+
callType: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
6692
|
+
fromAddress: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
6693
|
+
toAddress: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
6694
|
+
valueRaw: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
6695
|
+
valueFormatted: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
6696
|
+
gas: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
6697
|
+
gasUsed: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
6698
|
+
depth: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
6699
|
+
calldata: (f = msg.getCalldata()) && proto.gateway.web.v1.CalldataInfo.toObject(includeInstance, f),
|
|
6700
|
+
outputHex: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
6701
|
+
reverted: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
|
6702
|
+
errorMessage: jspb.Message.getFieldWithDefault(msg, 12, ""),
|
|
6703
|
+
revertReason: jspb.Message.getFieldWithDefault(msg, 13, ""),
|
|
6704
|
+
eventLogsList: jspb.Message.toObjectList(msg.getEventLogsList(),
|
|
6705
|
+
proto.gateway.web.v1.EventLog.toObject, includeInstance),
|
|
6706
|
+
callsList: jspb.Message.toObjectList(msg.getCallsList(),
|
|
6707
|
+
proto.gateway.web.v1.CallFrame.toObject, includeInstance),
|
|
6708
|
+
truncated: jspb.Message.getBooleanFieldWithDefault(msg, 16, false)
|
|
6709
|
+
};
|
|
6710
|
+
|
|
6711
|
+
if (includeInstance) {
|
|
6712
|
+
obj.$jspbMessageInstance = msg;
|
|
6713
|
+
}
|
|
6714
|
+
return obj;
|
|
6715
|
+
};
|
|
6716
|
+
}
|
|
6717
|
+
|
|
6718
|
+
|
|
6719
|
+
/**
|
|
6720
|
+
* Deserializes binary data (in protobuf wire format).
|
|
6721
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
6722
|
+
* @return {!proto.gateway.web.v1.CallFrame}
|
|
6723
|
+
*/
|
|
6724
|
+
proto.gateway.web.v1.CallFrame.deserializeBinary = function(bytes) {
|
|
6725
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
6726
|
+
var msg = new proto.gateway.web.v1.CallFrame;
|
|
6727
|
+
return proto.gateway.web.v1.CallFrame.deserializeBinaryFromReader(msg, reader);
|
|
6728
|
+
};
|
|
6729
|
+
|
|
6730
|
+
|
|
6731
|
+
/**
|
|
6732
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
6733
|
+
* given reader into the given message object.
|
|
6734
|
+
* @param {!proto.gateway.web.v1.CallFrame} msg The message object to deserialize into.
|
|
6735
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
6736
|
+
* @return {!proto.gateway.web.v1.CallFrame}
|
|
6737
|
+
*/
|
|
6738
|
+
proto.gateway.web.v1.CallFrame.deserializeBinaryFromReader = function(msg, reader) {
|
|
6739
|
+
while (reader.nextField()) {
|
|
6740
|
+
if (reader.isEndGroup()) {
|
|
6741
|
+
break;
|
|
6742
|
+
}
|
|
6743
|
+
var field = reader.getFieldNumber();
|
|
6744
|
+
switch (field) {
|
|
6745
|
+
case 1:
|
|
6746
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6747
|
+
msg.setCallType(value);
|
|
6748
|
+
break;
|
|
6749
|
+
case 2:
|
|
6750
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6751
|
+
msg.setFromAddress(value);
|
|
6752
|
+
break;
|
|
6753
|
+
case 3:
|
|
6754
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6755
|
+
msg.setToAddress(value);
|
|
6756
|
+
break;
|
|
6757
|
+
case 4:
|
|
6758
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6759
|
+
msg.setValueRaw(value);
|
|
6760
|
+
break;
|
|
6761
|
+
case 5:
|
|
6762
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6763
|
+
msg.setValueFormatted(value);
|
|
6764
|
+
break;
|
|
6765
|
+
case 6:
|
|
6766
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
6767
|
+
msg.setGas(value);
|
|
6768
|
+
break;
|
|
6769
|
+
case 7:
|
|
6770
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
6771
|
+
msg.setGasUsed(value);
|
|
6772
|
+
break;
|
|
6773
|
+
case 8:
|
|
6774
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
6775
|
+
msg.setDepth(value);
|
|
6776
|
+
break;
|
|
6777
|
+
case 9:
|
|
6778
|
+
var value = new proto.gateway.web.v1.CalldataInfo;
|
|
6779
|
+
reader.readMessage(value,proto.gateway.web.v1.CalldataInfo.deserializeBinaryFromReader);
|
|
6780
|
+
msg.setCalldata(value);
|
|
6781
|
+
break;
|
|
6782
|
+
case 10:
|
|
6783
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6784
|
+
msg.setOutputHex(value);
|
|
6785
|
+
break;
|
|
6786
|
+
case 11:
|
|
6787
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6788
|
+
msg.setReverted(value);
|
|
6789
|
+
break;
|
|
6790
|
+
case 12:
|
|
6791
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6792
|
+
msg.setErrorMessage(value);
|
|
6793
|
+
break;
|
|
6794
|
+
case 13:
|
|
6795
|
+
var value = /** @type {string} */ (reader.readString());
|
|
6796
|
+
msg.setRevertReason(value);
|
|
6797
|
+
break;
|
|
6798
|
+
case 14:
|
|
6799
|
+
var value = new proto.gateway.web.v1.EventLog;
|
|
6800
|
+
reader.readMessage(value,proto.gateway.web.v1.EventLog.deserializeBinaryFromReader);
|
|
6801
|
+
msg.addEventLogs(value);
|
|
6802
|
+
break;
|
|
6803
|
+
case 15:
|
|
6804
|
+
var value = new proto.gateway.web.v1.CallFrame;
|
|
6805
|
+
reader.readMessage(value,proto.gateway.web.v1.CallFrame.deserializeBinaryFromReader);
|
|
6806
|
+
msg.addCalls(value);
|
|
6807
|
+
break;
|
|
6808
|
+
case 16:
|
|
6809
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
6810
|
+
msg.setTruncated(value);
|
|
6811
|
+
break;
|
|
6812
|
+
default:
|
|
6813
|
+
reader.skipField();
|
|
6814
|
+
break;
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
return msg;
|
|
6818
|
+
};
|
|
6819
|
+
|
|
6820
|
+
|
|
6821
|
+
/**
|
|
6822
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
6823
|
+
* @return {!Uint8Array}
|
|
6824
|
+
*/
|
|
6825
|
+
proto.gateway.web.v1.CallFrame.prototype.serializeBinary = function() {
|
|
6826
|
+
var writer = new jspb.BinaryWriter();
|
|
6827
|
+
proto.gateway.web.v1.CallFrame.serializeBinaryToWriter(this, writer);
|
|
6828
|
+
return writer.getResultBuffer();
|
|
6829
|
+
};
|
|
6830
|
+
|
|
6831
|
+
|
|
6832
|
+
/**
|
|
6833
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
6834
|
+
* format), writing to the given BinaryWriter.
|
|
6835
|
+
* @param {!proto.gateway.web.v1.CallFrame} message
|
|
6836
|
+
* @param {!jspb.BinaryWriter} writer
|
|
6837
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
6838
|
+
*/
|
|
6839
|
+
proto.gateway.web.v1.CallFrame.serializeBinaryToWriter = function(message, writer) {
|
|
6840
|
+
var f = undefined;
|
|
6841
|
+
f = message.getCallType();
|
|
6842
|
+
if (f.length > 0) {
|
|
6843
|
+
writer.writeString(
|
|
6844
|
+
1,
|
|
6845
|
+
f
|
|
6846
|
+
);
|
|
6847
|
+
}
|
|
6848
|
+
f = message.getFromAddress();
|
|
6849
|
+
if (f.length > 0) {
|
|
6850
|
+
writer.writeString(
|
|
6851
|
+
2,
|
|
6852
|
+
f
|
|
6853
|
+
);
|
|
6854
|
+
}
|
|
6855
|
+
f = message.getToAddress();
|
|
6856
|
+
if (f.length > 0) {
|
|
6857
|
+
writer.writeString(
|
|
6858
|
+
3,
|
|
6859
|
+
f
|
|
6860
|
+
);
|
|
6861
|
+
}
|
|
6862
|
+
f = message.getValueRaw();
|
|
6863
|
+
if (f.length > 0) {
|
|
6864
|
+
writer.writeString(
|
|
6865
|
+
4,
|
|
6866
|
+
f
|
|
6867
|
+
);
|
|
6868
|
+
}
|
|
6869
|
+
f = message.getValueFormatted();
|
|
6870
|
+
if (f.length > 0) {
|
|
6871
|
+
writer.writeString(
|
|
6872
|
+
5,
|
|
6873
|
+
f
|
|
6874
|
+
);
|
|
6875
|
+
}
|
|
6876
|
+
f = message.getGas();
|
|
6877
|
+
if (f !== 0) {
|
|
6878
|
+
writer.writeUint64(
|
|
6879
|
+
6,
|
|
6880
|
+
f
|
|
6881
|
+
);
|
|
6882
|
+
}
|
|
6883
|
+
f = message.getGasUsed();
|
|
6884
|
+
if (f !== 0) {
|
|
6885
|
+
writer.writeUint64(
|
|
6886
|
+
7,
|
|
6887
|
+
f
|
|
6888
|
+
);
|
|
6889
|
+
}
|
|
6890
|
+
f = message.getDepth();
|
|
6891
|
+
if (f !== 0) {
|
|
6892
|
+
writer.writeUint32(
|
|
6893
|
+
8,
|
|
6894
|
+
f
|
|
6895
|
+
);
|
|
6896
|
+
}
|
|
6897
|
+
f = message.getCalldata();
|
|
6898
|
+
if (f != null) {
|
|
6899
|
+
writer.writeMessage(
|
|
6900
|
+
9,
|
|
6901
|
+
f,
|
|
6902
|
+
proto.gateway.web.v1.CalldataInfo.serializeBinaryToWriter
|
|
6903
|
+
);
|
|
6904
|
+
}
|
|
6905
|
+
f = message.getOutputHex();
|
|
6906
|
+
if (f.length > 0) {
|
|
6907
|
+
writer.writeString(
|
|
6908
|
+
10,
|
|
6909
|
+
f
|
|
6910
|
+
);
|
|
6911
|
+
}
|
|
6912
|
+
f = message.getReverted();
|
|
6913
|
+
if (f) {
|
|
6914
|
+
writer.writeBool(
|
|
6915
|
+
11,
|
|
6916
|
+
f
|
|
6917
|
+
);
|
|
6918
|
+
}
|
|
6919
|
+
f = message.getErrorMessage();
|
|
6920
|
+
if (f.length > 0) {
|
|
6921
|
+
writer.writeString(
|
|
6922
|
+
12,
|
|
6923
|
+
f
|
|
6924
|
+
);
|
|
6925
|
+
}
|
|
6926
|
+
f = message.getRevertReason();
|
|
6927
|
+
if (f.length > 0) {
|
|
6928
|
+
writer.writeString(
|
|
6929
|
+
13,
|
|
6930
|
+
f
|
|
6931
|
+
);
|
|
6932
|
+
}
|
|
6933
|
+
f = message.getEventLogsList();
|
|
6934
|
+
if (f.length > 0) {
|
|
6935
|
+
writer.writeRepeatedMessage(
|
|
6936
|
+
14,
|
|
6937
|
+
f,
|
|
6938
|
+
proto.gateway.web.v1.EventLog.serializeBinaryToWriter
|
|
6939
|
+
);
|
|
6940
|
+
}
|
|
6941
|
+
f = message.getCallsList();
|
|
6942
|
+
if (f.length > 0) {
|
|
6943
|
+
writer.writeRepeatedMessage(
|
|
6944
|
+
15,
|
|
6945
|
+
f,
|
|
6946
|
+
proto.gateway.web.v1.CallFrame.serializeBinaryToWriter
|
|
6947
|
+
);
|
|
6948
|
+
}
|
|
6949
|
+
f = message.getTruncated();
|
|
6950
|
+
if (f) {
|
|
6951
|
+
writer.writeBool(
|
|
6952
|
+
16,
|
|
6953
|
+
f
|
|
6954
|
+
);
|
|
6955
|
+
}
|
|
6956
|
+
};
|
|
6957
|
+
|
|
6958
|
+
|
|
6959
|
+
/**
|
|
6960
|
+
* optional string call_type = 1;
|
|
6961
|
+
* @return {string}
|
|
6962
|
+
*/
|
|
6963
|
+
proto.gateway.web.v1.CallFrame.prototype.getCallType = function() {
|
|
6964
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
6965
|
+
};
|
|
6966
|
+
|
|
6967
|
+
|
|
6968
|
+
/**
|
|
6969
|
+
* @param {string} value
|
|
6970
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
6971
|
+
*/
|
|
6972
|
+
proto.gateway.web.v1.CallFrame.prototype.setCallType = function(value) {
|
|
6973
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
6974
|
+
};
|
|
6975
|
+
|
|
6976
|
+
|
|
6977
|
+
/**
|
|
6978
|
+
* optional string from_address = 2;
|
|
6979
|
+
* @return {string}
|
|
6980
|
+
*/
|
|
6981
|
+
proto.gateway.web.v1.CallFrame.prototype.getFromAddress = function() {
|
|
6982
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
6983
|
+
};
|
|
6984
|
+
|
|
6985
|
+
|
|
6986
|
+
/**
|
|
6987
|
+
* @param {string} value
|
|
6988
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
6989
|
+
*/
|
|
6990
|
+
proto.gateway.web.v1.CallFrame.prototype.setFromAddress = function(value) {
|
|
6991
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
6992
|
+
};
|
|
6993
|
+
|
|
6994
|
+
|
|
6995
|
+
/**
|
|
6996
|
+
* optional string to_address = 3;
|
|
6997
|
+
* @return {string}
|
|
6998
|
+
*/
|
|
6999
|
+
proto.gateway.web.v1.CallFrame.prototype.getToAddress = function() {
|
|
7000
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7001
|
+
};
|
|
7002
|
+
|
|
7003
|
+
|
|
7004
|
+
/**
|
|
7005
|
+
* @param {string} value
|
|
7006
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7007
|
+
*/
|
|
7008
|
+
proto.gateway.web.v1.CallFrame.prototype.setToAddress = function(value) {
|
|
7009
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
7010
|
+
};
|
|
7011
|
+
|
|
7012
|
+
|
|
7013
|
+
/**
|
|
7014
|
+
* optional string value_raw = 4;
|
|
7015
|
+
* @return {string}
|
|
7016
|
+
*/
|
|
7017
|
+
proto.gateway.web.v1.CallFrame.prototype.getValueRaw = function() {
|
|
7018
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7019
|
+
};
|
|
7020
|
+
|
|
7021
|
+
|
|
7022
|
+
/**
|
|
7023
|
+
* @param {string} value
|
|
7024
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7025
|
+
*/
|
|
7026
|
+
proto.gateway.web.v1.CallFrame.prototype.setValueRaw = function(value) {
|
|
7027
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
7028
|
+
};
|
|
7029
|
+
|
|
7030
|
+
|
|
7031
|
+
/**
|
|
7032
|
+
* optional string value_formatted = 5;
|
|
7033
|
+
* @return {string}
|
|
7034
|
+
*/
|
|
7035
|
+
proto.gateway.web.v1.CallFrame.prototype.getValueFormatted = function() {
|
|
7036
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
7037
|
+
};
|
|
7038
|
+
|
|
7039
|
+
|
|
7040
|
+
/**
|
|
7041
|
+
* @param {string} value
|
|
7042
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7043
|
+
*/
|
|
7044
|
+
proto.gateway.web.v1.CallFrame.prototype.setValueFormatted = function(value) {
|
|
7045
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
7046
|
+
};
|
|
7047
|
+
|
|
7048
|
+
|
|
7049
|
+
/**
|
|
7050
|
+
* optional uint64 gas = 6;
|
|
7051
|
+
* @return {number}
|
|
7052
|
+
*/
|
|
7053
|
+
proto.gateway.web.v1.CallFrame.prototype.getGas = function() {
|
|
7054
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
7055
|
+
};
|
|
7056
|
+
|
|
7057
|
+
|
|
7058
|
+
/**
|
|
7059
|
+
* @param {number} value
|
|
7060
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7061
|
+
*/
|
|
7062
|
+
proto.gateway.web.v1.CallFrame.prototype.setGas = function(value) {
|
|
7063
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
7064
|
+
};
|
|
7065
|
+
|
|
7066
|
+
|
|
7067
|
+
/**
|
|
7068
|
+
* optional uint64 gas_used = 7;
|
|
7069
|
+
* @return {number}
|
|
7070
|
+
*/
|
|
7071
|
+
proto.gateway.web.v1.CallFrame.prototype.getGasUsed = function() {
|
|
7072
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
7073
|
+
};
|
|
7074
|
+
|
|
7075
|
+
|
|
7076
|
+
/**
|
|
7077
|
+
* @param {number} value
|
|
7078
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7079
|
+
*/
|
|
7080
|
+
proto.gateway.web.v1.CallFrame.prototype.setGasUsed = function(value) {
|
|
7081
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
7082
|
+
};
|
|
7083
|
+
|
|
7084
|
+
|
|
7085
|
+
/**
|
|
7086
|
+
* optional uint32 depth = 8;
|
|
7087
|
+
* @return {number}
|
|
7088
|
+
*/
|
|
7089
|
+
proto.gateway.web.v1.CallFrame.prototype.getDepth = function() {
|
|
7090
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
7091
|
+
};
|
|
7092
|
+
|
|
7093
|
+
|
|
7094
|
+
/**
|
|
7095
|
+
* @param {number} value
|
|
7096
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7097
|
+
*/
|
|
7098
|
+
proto.gateway.web.v1.CallFrame.prototype.setDepth = function(value) {
|
|
7099
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
7100
|
+
};
|
|
7101
|
+
|
|
7102
|
+
|
|
7103
|
+
/**
|
|
7104
|
+
* optional CalldataInfo calldata = 9;
|
|
7105
|
+
* @return {?proto.gateway.web.v1.CalldataInfo}
|
|
7106
|
+
*/
|
|
7107
|
+
proto.gateway.web.v1.CallFrame.prototype.getCalldata = function() {
|
|
7108
|
+
return /** @type{?proto.gateway.web.v1.CalldataInfo} */ (
|
|
7109
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.CalldataInfo, 9));
|
|
7110
|
+
};
|
|
7111
|
+
|
|
7112
|
+
|
|
7113
|
+
/**
|
|
7114
|
+
* @param {?proto.gateway.web.v1.CalldataInfo|undefined} value
|
|
7115
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7116
|
+
*/
|
|
7117
|
+
proto.gateway.web.v1.CallFrame.prototype.setCalldata = function(value) {
|
|
7118
|
+
return jspb.Message.setWrapperField(this, 9, value);
|
|
7119
|
+
};
|
|
7120
|
+
|
|
7121
|
+
|
|
7122
|
+
/**
|
|
7123
|
+
* Clears the message field making it undefined.
|
|
7124
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7125
|
+
*/
|
|
7126
|
+
proto.gateway.web.v1.CallFrame.prototype.clearCalldata = function() {
|
|
7127
|
+
return this.setCalldata(undefined);
|
|
7128
|
+
};
|
|
7129
|
+
|
|
7130
|
+
|
|
7131
|
+
/**
|
|
7132
|
+
* Returns whether this field is set.
|
|
7133
|
+
* @return {boolean}
|
|
7134
|
+
*/
|
|
7135
|
+
proto.gateway.web.v1.CallFrame.prototype.hasCalldata = function() {
|
|
7136
|
+
return jspb.Message.getField(this, 9) != null;
|
|
7137
|
+
};
|
|
7138
|
+
|
|
7139
|
+
|
|
7140
|
+
/**
|
|
7141
|
+
* optional string output_hex = 10;
|
|
7142
|
+
* @return {string}
|
|
7143
|
+
*/
|
|
7144
|
+
proto.gateway.web.v1.CallFrame.prototype.getOutputHex = function() {
|
|
7145
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
7146
|
+
};
|
|
7147
|
+
|
|
7148
|
+
|
|
7149
|
+
/**
|
|
7150
|
+
* @param {string} value
|
|
7151
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7152
|
+
*/
|
|
7153
|
+
proto.gateway.web.v1.CallFrame.prototype.setOutputHex = function(value) {
|
|
7154
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
7155
|
+
};
|
|
7156
|
+
|
|
7157
|
+
|
|
7158
|
+
/**
|
|
7159
|
+
* optional bool reverted = 11;
|
|
7160
|
+
* @return {boolean}
|
|
7161
|
+
*/
|
|
7162
|
+
proto.gateway.web.v1.CallFrame.prototype.getReverted = function() {
|
|
7163
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
|
|
7164
|
+
};
|
|
7165
|
+
|
|
7166
|
+
|
|
7167
|
+
/**
|
|
7168
|
+
* @param {boolean} value
|
|
7169
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7170
|
+
*/
|
|
7171
|
+
proto.gateway.web.v1.CallFrame.prototype.setReverted = function(value) {
|
|
7172
|
+
return jspb.Message.setProto3BooleanField(this, 11, value);
|
|
7173
|
+
};
|
|
7174
|
+
|
|
7175
|
+
|
|
7176
|
+
/**
|
|
7177
|
+
* optional string error_message = 12;
|
|
7178
|
+
* @return {string}
|
|
7179
|
+
*/
|
|
7180
|
+
proto.gateway.web.v1.CallFrame.prototype.getErrorMessage = function() {
|
|
7181
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
|
|
7182
|
+
};
|
|
7183
|
+
|
|
7184
|
+
|
|
7185
|
+
/**
|
|
7186
|
+
* @param {string} value
|
|
7187
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7188
|
+
*/
|
|
7189
|
+
proto.gateway.web.v1.CallFrame.prototype.setErrorMessage = function(value) {
|
|
7190
|
+
return jspb.Message.setProto3StringField(this, 12, value);
|
|
7191
|
+
};
|
|
7192
|
+
|
|
7193
|
+
|
|
7194
|
+
/**
|
|
7195
|
+
* optional string revert_reason = 13;
|
|
7196
|
+
* @return {string}
|
|
7197
|
+
*/
|
|
7198
|
+
proto.gateway.web.v1.CallFrame.prototype.getRevertReason = function() {
|
|
7199
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
|
7200
|
+
};
|
|
7201
|
+
|
|
7202
|
+
|
|
7203
|
+
/**
|
|
7204
|
+
* @param {string} value
|
|
7205
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7206
|
+
*/
|
|
7207
|
+
proto.gateway.web.v1.CallFrame.prototype.setRevertReason = function(value) {
|
|
7208
|
+
return jspb.Message.setProto3StringField(this, 13, value);
|
|
7209
|
+
};
|
|
7210
|
+
|
|
7211
|
+
|
|
7212
|
+
/**
|
|
7213
|
+
* repeated EventLog event_logs = 14;
|
|
7214
|
+
* @return {!Array<!proto.gateway.web.v1.EventLog>}
|
|
7215
|
+
*/
|
|
7216
|
+
proto.gateway.web.v1.CallFrame.prototype.getEventLogsList = function() {
|
|
7217
|
+
return /** @type{!Array<!proto.gateway.web.v1.EventLog>} */ (
|
|
7218
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.EventLog, 14));
|
|
7219
|
+
};
|
|
7220
|
+
|
|
7221
|
+
|
|
7222
|
+
/**
|
|
7223
|
+
* @param {!Array<!proto.gateway.web.v1.EventLog>} value
|
|
7224
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7225
|
+
*/
|
|
7226
|
+
proto.gateway.web.v1.CallFrame.prototype.setEventLogsList = function(value) {
|
|
7227
|
+
return jspb.Message.setRepeatedWrapperField(this, 14, value);
|
|
7228
|
+
};
|
|
7229
|
+
|
|
7230
|
+
|
|
7231
|
+
/**
|
|
7232
|
+
* @param {!proto.gateway.web.v1.EventLog=} opt_value
|
|
7233
|
+
* @param {number=} opt_index
|
|
7234
|
+
* @return {!proto.gateway.web.v1.EventLog}
|
|
7235
|
+
*/
|
|
7236
|
+
proto.gateway.web.v1.CallFrame.prototype.addEventLogs = function(opt_value, opt_index) {
|
|
7237
|
+
return jspb.Message.addToRepeatedWrapperField(this, 14, opt_value, proto.gateway.web.v1.EventLog, opt_index);
|
|
7238
|
+
};
|
|
7239
|
+
|
|
7240
|
+
|
|
7241
|
+
/**
|
|
7242
|
+
* Clears the list making it empty but non-null.
|
|
7243
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7244
|
+
*/
|
|
7245
|
+
proto.gateway.web.v1.CallFrame.prototype.clearEventLogsList = function() {
|
|
7246
|
+
return this.setEventLogsList([]);
|
|
7247
|
+
};
|
|
7248
|
+
|
|
7249
|
+
|
|
7250
|
+
/**
|
|
7251
|
+
* repeated CallFrame calls = 15;
|
|
7252
|
+
* @return {!Array<!proto.gateway.web.v1.CallFrame>}
|
|
7253
|
+
*/
|
|
7254
|
+
proto.gateway.web.v1.CallFrame.prototype.getCallsList = function() {
|
|
7255
|
+
return /** @type{!Array<!proto.gateway.web.v1.CallFrame>} */ (
|
|
7256
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.CallFrame, 15));
|
|
7257
|
+
};
|
|
7258
|
+
|
|
7259
|
+
|
|
7260
|
+
/**
|
|
7261
|
+
* @param {!Array<!proto.gateway.web.v1.CallFrame>} value
|
|
7262
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7263
|
+
*/
|
|
7264
|
+
proto.gateway.web.v1.CallFrame.prototype.setCallsList = function(value) {
|
|
7265
|
+
return jspb.Message.setRepeatedWrapperField(this, 15, value);
|
|
7266
|
+
};
|
|
7267
|
+
|
|
7268
|
+
|
|
7269
|
+
/**
|
|
7270
|
+
* @param {!proto.gateway.web.v1.CallFrame=} opt_value
|
|
7271
|
+
* @param {number=} opt_index
|
|
7272
|
+
* @return {!proto.gateway.web.v1.CallFrame}
|
|
7273
|
+
*/
|
|
7274
|
+
proto.gateway.web.v1.CallFrame.prototype.addCalls = function(opt_value, opt_index) {
|
|
7275
|
+
return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.gateway.web.v1.CallFrame, opt_index);
|
|
7276
|
+
};
|
|
7277
|
+
|
|
7278
|
+
|
|
7279
|
+
/**
|
|
7280
|
+
* Clears the list making it empty but non-null.
|
|
7281
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7282
|
+
*/
|
|
7283
|
+
proto.gateway.web.v1.CallFrame.prototype.clearCallsList = function() {
|
|
7284
|
+
return this.setCallsList([]);
|
|
7285
|
+
};
|
|
7286
|
+
|
|
7287
|
+
|
|
7288
|
+
/**
|
|
7289
|
+
* optional bool truncated = 16;
|
|
7290
|
+
* @return {boolean}
|
|
7291
|
+
*/
|
|
7292
|
+
proto.gateway.web.v1.CallFrame.prototype.getTruncated = function() {
|
|
7293
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 16, false));
|
|
7294
|
+
};
|
|
7295
|
+
|
|
7296
|
+
|
|
7297
|
+
/**
|
|
7298
|
+
* @param {boolean} value
|
|
7299
|
+
* @return {!proto.gateway.web.v1.CallFrame} returns this
|
|
7300
|
+
*/
|
|
7301
|
+
proto.gateway.web.v1.CallFrame.prototype.setTruncated = function(value) {
|
|
7302
|
+
return jspb.Message.setProto3BooleanField(this, 16, value);
|
|
7303
|
+
};
|
|
7304
|
+
|
|
7305
|
+
|
|
7306
|
+
|
|
6580
7307
|
/**
|
|
6581
7308
|
* List of repeated fields within this message type.
|
|
6582
7309
|
* @private {!Array<number>}
|