@sentio/protos 1.37.4 → 1.37.5-rc.1

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
3
  "license": "Apache-2.0",
4
- "version": "1.37.4",
4
+ "version": "1.37.5-rc.1",
5
5
  "scripts": {
6
6
  "compile": "tsc -p .",
7
7
  "clean": "tsc --build --clean",
@@ -19,5 +19,5 @@
19
19
  "!{lib,src}/tests",
20
20
  "!**/*.test.{js,ts}"
21
21
  ],
22
- "gitHead": "3eb53f4125983b37e81ea4160eee95c1932ce965"
22
+ "gitHead": "3cb4665cbcfef83951d124ae04f5b50c59b380fd"
23
23
  }
@@ -460,7 +460,6 @@ export interface RawTransaction {
460
460
  }
461
461
 
462
462
  export interface Data {
463
- raw: Uint8Array
464
463
  ethLog?: Data_EthLog | undefined
465
464
  ethBlock?: Data_EthBlock | undefined
466
465
  ethTransaction?: Data_EthTransaction | undefined
@@ -473,7 +472,7 @@ export interface Data {
473
472
 
474
473
  export interface Data_EthLog {
475
474
  log: { [key: string]: any } | undefined
476
- transaction?: Uint8Array | undefined
475
+ transaction?: { [key: string]: any } | undefined
477
476
  }
478
477
 
479
478
  export interface Data_EthBlock {
@@ -482,13 +481,13 @@ export interface Data_EthBlock {
482
481
 
483
482
  export interface Data_EthTransaction {
484
483
  transaction: { [key: string]: any } | undefined
485
- transactionReceipt?: Uint8Array | undefined
484
+ transactionReceipt?: { [key: string]: any } | undefined
486
485
  }
487
486
 
488
487
  export interface Data_EthTrace {
489
488
  trace: { [key: string]: any } | undefined
490
- transaction?: Uint8Array | undefined
491
- transactionReceipt?: Uint8Array | undefined
489
+ transaction?: { [key: string]: any } | undefined
490
+ transactionReceipt?: { [key: string]: any } | undefined
492
491
  }
493
492
 
494
493
  export interface Data_SolInstruction {
@@ -2844,7 +2843,6 @@ export const RawTransaction = {
2844
2843
 
2845
2844
  function createBaseData(): Data {
2846
2845
  return {
2847
- raw: new Uint8Array(),
2848
2846
  ethLog: undefined,
2849
2847
  ethBlock: undefined,
2850
2848
  ethTransaction: undefined,
@@ -2858,9 +2856,6 @@ function createBaseData(): Data {
2858
2856
 
2859
2857
  export const Data = {
2860
2858
  encode(message: Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
2861
- if (message.raw.length !== 0) {
2862
- writer.uint32(10).bytes(message.raw)
2863
- }
2864
2859
  if (message.ethLog !== undefined) {
2865
2860
  Data_EthLog.encode(message.ethLog, writer.uint32(18).fork()).ldelim()
2866
2861
  }
@@ -2895,9 +2890,6 @@ export const Data = {
2895
2890
  while (reader.pos < end) {
2896
2891
  const tag = reader.uint32()
2897
2892
  switch (tag >>> 3) {
2898
- case 1:
2899
- message.raw = reader.bytes()
2900
- break
2901
2893
  case 2:
2902
2894
  message.ethLog = Data_EthLog.decode(reader, reader.uint32())
2903
2895
  break
@@ -2932,7 +2924,6 @@ export const Data = {
2932
2924
 
2933
2925
  fromJSON(object: any): Data {
2934
2926
  return {
2935
- raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
2936
2927
  ethLog: isSet(object.ethLog) ? Data_EthLog.fromJSON(object.ethLog) : undefined,
2937
2928
  ethBlock: isSet(object.ethBlock) ? Data_EthBlock.fromJSON(object.ethBlock) : undefined,
2938
2929
  ethTransaction: isSet(object.ethTransaction) ? Data_EthTransaction.fromJSON(object.ethTransaction) : undefined,
@@ -2946,7 +2937,6 @@ export const Data = {
2946
2937
 
2947
2938
  toJSON(message: Data): unknown {
2948
2939
  const obj: any = {}
2949
- message.raw !== undefined && (obj.raw = base64FromBytes(message.raw !== undefined ? message.raw : new Uint8Array()))
2950
2940
  message.ethLog !== undefined && (obj.ethLog = message.ethLog ? Data_EthLog.toJSON(message.ethLog) : undefined)
2951
2941
  message.ethBlock !== undefined &&
2952
2942
  (obj.ethBlock = message.ethBlock ? Data_EthBlock.toJSON(message.ethBlock) : undefined)
@@ -2966,7 +2956,6 @@ export const Data = {
2966
2956
 
2967
2957
  fromPartial(object: DeepPartial<Data>): Data {
2968
2958
  const message = createBaseData()
2969
- message.raw = object.raw ?? new Uint8Array()
2970
2959
  message.ethLog =
2971
2960
  object.ethLog !== undefined && object.ethLog !== null ? Data_EthLog.fromPartial(object.ethLog) : undefined
2972
2961
  message.ethBlock =
@@ -3003,7 +2992,7 @@ export const Data_EthLog = {
3003
2992
  Struct.encode(Struct.wrap(message.log), writer.uint32(26).fork()).ldelim()
3004
2993
  }
3005
2994
  if (message.transaction !== undefined) {
3006
- writer.uint32(18).bytes(message.transaction)
2995
+ Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim()
3007
2996
  }
3008
2997
  return writer
3009
2998
  },
@@ -3019,7 +3008,7 @@ export const Data_EthLog = {
3019
3008
  message.log = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3020
3009
  break
3021
3010
  case 2:
3022
- message.transaction = reader.bytes()
3011
+ message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3023
3012
  break
3024
3013
  default:
3025
3014
  reader.skipType(tag & 7)
@@ -3032,15 +3021,14 @@ export const Data_EthLog = {
3032
3021
  fromJSON(object: any): Data_EthLog {
3033
3022
  return {
3034
3023
  log: isObject(object.log) ? object.log : undefined,
3035
- transaction: isSet(object.transaction) ? bytesFromBase64(object.transaction) : undefined,
3024
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3036
3025
  }
3037
3026
  },
3038
3027
 
3039
3028
  toJSON(message: Data_EthLog): unknown {
3040
3029
  const obj: any = {}
3041
3030
  message.log !== undefined && (obj.log = message.log)
3042
- message.transaction !== undefined &&
3043
- (obj.transaction = message.transaction !== undefined ? base64FromBytes(message.transaction) : undefined)
3031
+ message.transaction !== undefined && (obj.transaction = message.transaction)
3044
3032
  return obj
3045
3033
  },
3046
3034
 
@@ -3109,7 +3097,7 @@ export const Data_EthTransaction = {
3109
3097
  Struct.encode(Struct.wrap(message.transaction), writer.uint32(34).fork()).ldelim()
3110
3098
  }
3111
3099
  if (message.transactionReceipt !== undefined) {
3112
- writer.uint32(26).bytes(message.transactionReceipt)
3100
+ Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim()
3113
3101
  }
3114
3102
  return writer
3115
3103
  },
@@ -3125,7 +3113,7 @@ export const Data_EthTransaction = {
3125
3113
  message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3126
3114
  break
3127
3115
  case 3:
3128
- message.transactionReceipt = reader.bytes()
3116
+ message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3129
3117
  break
3130
3118
  default:
3131
3119
  reader.skipType(tag & 7)
@@ -3138,16 +3126,14 @@ export const Data_EthTransaction = {
3138
3126
  fromJSON(object: any): Data_EthTransaction {
3139
3127
  return {
3140
3128
  transaction: isObject(object.transaction) ? object.transaction : undefined,
3141
- transactionReceipt: isSet(object.transactionReceipt) ? bytesFromBase64(object.transactionReceipt) : undefined,
3129
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3142
3130
  }
3143
3131
  },
3144
3132
 
3145
3133
  toJSON(message: Data_EthTransaction): unknown {
3146
3134
  const obj: any = {}
3147
3135
  message.transaction !== undefined && (obj.transaction = message.transaction)
3148
- message.transactionReceipt !== undefined &&
3149
- (obj.transactionReceipt =
3150
- message.transactionReceipt !== undefined ? base64FromBytes(message.transactionReceipt) : undefined)
3136
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt)
3151
3137
  return obj
3152
3138
  },
3153
3139
 
@@ -3169,10 +3155,10 @@ export const Data_EthTrace = {
3169
3155
  Struct.encode(Struct.wrap(message.trace), writer.uint32(34).fork()).ldelim()
3170
3156
  }
3171
3157
  if (message.transaction !== undefined) {
3172
- writer.uint32(18).bytes(message.transaction)
3158
+ Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim()
3173
3159
  }
3174
3160
  if (message.transactionReceipt !== undefined) {
3175
- writer.uint32(26).bytes(message.transactionReceipt)
3161
+ Struct.encode(Struct.wrap(message.transactionReceipt), writer.uint32(26).fork()).ldelim()
3176
3162
  }
3177
3163
  return writer
3178
3164
  },
@@ -3188,10 +3174,10 @@ export const Data_EthTrace = {
3188
3174
  message.trace = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3189
3175
  break
3190
3176
  case 2:
3191
- message.transaction = reader.bytes()
3177
+ message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3192
3178
  break
3193
3179
  case 3:
3194
- message.transactionReceipt = reader.bytes()
3180
+ message.transactionReceipt = Struct.unwrap(Struct.decode(reader, reader.uint32()))
3195
3181
  break
3196
3182
  default:
3197
3183
  reader.skipType(tag & 7)
@@ -3204,19 +3190,16 @@ export const Data_EthTrace = {
3204
3190
  fromJSON(object: any): Data_EthTrace {
3205
3191
  return {
3206
3192
  trace: isObject(object.trace) ? object.trace : undefined,
3207
- transaction: isSet(object.transaction) ? bytesFromBase64(object.transaction) : undefined,
3208
- transactionReceipt: isSet(object.transactionReceipt) ? bytesFromBase64(object.transactionReceipt) : undefined,
3193
+ transaction: isObject(object.transaction) ? object.transaction : undefined,
3194
+ transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
3209
3195
  }
3210
3196
  },
3211
3197
 
3212
3198
  toJSON(message: Data_EthTrace): unknown {
3213
3199
  const obj: any = {}
3214
3200
  message.trace !== undefined && (obj.trace = message.trace)
3215
- message.transaction !== undefined &&
3216
- (obj.transaction = message.transaction !== undefined ? base64FromBytes(message.transaction) : undefined)
3217
- message.transactionReceipt !== undefined &&
3218
- (obj.transactionReceipt =
3219
- message.transactionReceipt !== undefined ? base64FromBytes(message.transactionReceipt) : undefined)
3201
+ message.transaction !== undefined && (obj.transaction = message.transaction)
3202
+ message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt)
3220
3203
  return obj
3221
3204
  },
3222
3205