@sentio/protos 2.24.3-rc.2 → 2.25.0-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": "2.24.3-rc.2",
4
+ "version": "2.25.0-rc.1",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "google-protobuf": "^3.21.2",
@@ -10,6 +10,7 @@ export interface AptosGetTxnsByFunctionRequest {
10
10
  function: string;
11
11
  matchAll: boolean;
12
12
  typedArguments: string[];
13
+ includeChanges: boolean;
13
14
  }
14
15
 
15
16
  export interface AptosGetTxnsByVersionRequest {
@@ -26,6 +27,7 @@ export interface AptosGetTxnsByEventRequest {
26
27
  address: string;
27
28
  type: string;
28
29
  includeAllEvents: boolean;
30
+ includeChanges: boolean;
29
31
  }
30
32
 
31
33
  export interface AptosSQLQueryRequest {
@@ -111,6 +113,7 @@ function createBaseAptosGetTxnsByFunctionRequest(): AptosGetTxnsByFunctionReques
111
113
  function: "",
112
114
  matchAll: false,
113
115
  typedArguments: [],
116
+ includeChanges: false,
114
117
  };
115
118
  }
116
119
 
@@ -134,6 +137,9 @@ export const AptosGetTxnsByFunctionRequest = {
134
137
  for (const v of message.typedArguments) {
135
138
  writer.uint32(50).string(v!);
136
139
  }
140
+ if (message.includeChanges === true) {
141
+ writer.uint32(56).bool(message.includeChanges);
142
+ }
137
143
  return writer;
138
144
  },
139
145
 
@@ -162,6 +168,9 @@ export const AptosGetTxnsByFunctionRequest = {
162
168
  case 6:
163
169
  message.typedArguments.push(reader.string());
164
170
  break;
171
+ case 7:
172
+ message.includeChanges = reader.bool();
173
+ break;
165
174
  default:
166
175
  reader.skipType(tag & 7);
167
176
  break;
@@ -178,6 +187,7 @@ export const AptosGetTxnsByFunctionRequest = {
178
187
  function: isSet(object.function) ? String(object.function) : "",
179
188
  matchAll: isSet(object.matchAll) ? Boolean(object.matchAll) : false,
180
189
  typedArguments: Array.isArray(object?.typedArguments) ? object.typedArguments.map((e: any) => String(e)) : [],
190
+ includeChanges: isSet(object.includeChanges) ? Boolean(object.includeChanges) : false,
181
191
  };
182
192
  },
183
193
 
@@ -193,6 +203,7 @@ export const AptosGetTxnsByFunctionRequest = {
193
203
  } else {
194
204
  obj.typedArguments = [];
195
205
  }
206
+ message.includeChanges !== undefined && (obj.includeChanges = message.includeChanges);
196
207
  return obj;
197
208
  },
198
209
 
@@ -208,6 +219,7 @@ export const AptosGetTxnsByFunctionRequest = {
208
219
  message.function = object.function ?? "";
209
220
  message.matchAll = object.matchAll ?? false;
210
221
  message.typedArguments = object.typedArguments?.map((e) => e) || [];
222
+ message.includeChanges = object.includeChanges ?? false;
211
223
  return message;
212
224
  },
213
225
  };
@@ -300,6 +312,7 @@ function createBaseAptosGetTxnsByEventRequest(): AptosGetTxnsByEventRequest {
300
312
  address: "",
301
313
  type: "",
302
314
  includeAllEvents: false,
315
+ includeChanges: false,
303
316
  };
304
317
  }
305
318
 
@@ -323,6 +336,9 @@ export const AptosGetTxnsByEventRequest = {
323
336
  if (message.includeAllEvents === true) {
324
337
  writer.uint32(48).bool(message.includeAllEvents);
325
338
  }
339
+ if (message.includeChanges === true) {
340
+ writer.uint32(56).bool(message.includeChanges);
341
+ }
326
342
  return writer;
327
343
  },
328
344
 
@@ -351,6 +367,9 @@ export const AptosGetTxnsByEventRequest = {
351
367
  case 6:
352
368
  message.includeAllEvents = reader.bool();
353
369
  break;
370
+ case 7:
371
+ message.includeChanges = reader.bool();
372
+ break;
354
373
  default:
355
374
  reader.skipType(tag & 7);
356
375
  break;
@@ -367,6 +386,7 @@ export const AptosGetTxnsByEventRequest = {
367
386
  address: isSet(object.address) ? String(object.address) : "",
368
387
  type: isSet(object.type) ? String(object.type) : "",
369
388
  includeAllEvents: isSet(object.includeAllEvents) ? Boolean(object.includeAllEvents) : false,
389
+ includeChanges: isSet(object.includeChanges) ? Boolean(object.includeChanges) : false,
370
390
  };
371
391
  },
372
392
 
@@ -378,6 +398,7 @@ export const AptosGetTxnsByEventRequest = {
378
398
  message.address !== undefined && (obj.address = message.address);
379
399
  message.type !== undefined && (obj.type = message.type);
380
400
  message.includeAllEvents !== undefined && (obj.includeAllEvents = message.includeAllEvents);
401
+ message.includeChanges !== undefined && (obj.includeChanges = message.includeChanges);
381
402
  return obj;
382
403
  },
383
404
 
@@ -393,6 +414,7 @@ export const AptosGetTxnsByEventRequest = {
393
414
  message.address = object.address ?? "";
394
415
  message.type = object.type ?? "";
395
416
  message.includeAllEvents = object.includeAllEvents ?? false;
417
+ message.includeChanges = object.includeChanges ?? false;
396
418
  return message;
397
419
  },
398
420
  };
@@ -415,6 +415,7 @@ export interface AccountConfig {
415
415
  startBlock: bigint;
416
416
  intervalConfigs: OnIntervalConfig[];
417
417
  moveIntervalConfigs: MoveOnIntervalConfig[];
418
+ moveCallConfigs: MoveCallHandlerConfig[];
418
419
  logConfigs: LogHandlerConfig[];
419
420
  }
420
421
 
@@ -1700,6 +1701,7 @@ function createBaseAccountConfig(): AccountConfig {
1700
1701
  startBlock: BigInt("0"),
1701
1702
  intervalConfigs: [],
1702
1703
  moveIntervalConfigs: [],
1704
+ moveCallConfigs: [],
1703
1705
  logConfigs: [],
1704
1706
  };
1705
1707
  }
@@ -1721,6 +1723,9 @@ export const AccountConfig = {
1721
1723
  for (const v of message.moveIntervalConfigs) {
1722
1724
  MoveOnIntervalConfig.encode(v!, writer.uint32(58).fork()).ldelim();
1723
1725
  }
1726
+ for (const v of message.moveCallConfigs) {
1727
+ MoveCallHandlerConfig.encode(v!, writer.uint32(66).fork()).ldelim();
1728
+ }
1724
1729
  for (const v of message.logConfigs) {
1725
1730
  LogHandlerConfig.encode(v!, writer.uint32(50).fork()).ldelim();
1726
1731
  }
@@ -1749,6 +1754,9 @@ export const AccountConfig = {
1749
1754
  case 7:
1750
1755
  message.moveIntervalConfigs.push(MoveOnIntervalConfig.decode(reader, reader.uint32()));
1751
1756
  break;
1757
+ case 8:
1758
+ message.moveCallConfigs.push(MoveCallHandlerConfig.decode(reader, reader.uint32()));
1759
+ break;
1752
1760
  case 6:
1753
1761
  message.logConfigs.push(LogHandlerConfig.decode(reader, reader.uint32()));
1754
1762
  break;
@@ -1771,6 +1779,9 @@ export const AccountConfig = {
1771
1779
  moveIntervalConfigs: Array.isArray(object?.moveIntervalConfigs)
1772
1780
  ? object.moveIntervalConfigs.map((e: any) => MoveOnIntervalConfig.fromJSON(e))
1773
1781
  : [],
1782
+ moveCallConfigs: Array.isArray(object?.moveCallConfigs)
1783
+ ? object.moveCallConfigs.map((e: any) => MoveCallHandlerConfig.fromJSON(e))
1784
+ : [],
1774
1785
  logConfigs: Array.isArray(object?.logConfigs)
1775
1786
  ? object.logConfigs.map((e: any) => LogHandlerConfig.fromJSON(e))
1776
1787
  : [],
@@ -1792,6 +1803,11 @@ export const AccountConfig = {
1792
1803
  } else {
1793
1804
  obj.moveIntervalConfigs = [];
1794
1805
  }
1806
+ if (message.moveCallConfigs) {
1807
+ obj.moveCallConfigs = message.moveCallConfigs.map((e) => e ? MoveCallHandlerConfig.toJSON(e) : undefined);
1808
+ } else {
1809
+ obj.moveCallConfigs = [];
1810
+ }
1795
1811
  if (message.logConfigs) {
1796
1812
  obj.logConfigs = message.logConfigs.map((e) => e ? LogHandlerConfig.toJSON(e) : undefined);
1797
1813
  } else {
@@ -1811,6 +1827,7 @@ export const AccountConfig = {
1811
1827
  message.startBlock = object.startBlock ?? BigInt("0");
1812
1828
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
1813
1829
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
1830
+ message.moveCallConfigs = object.moveCallConfigs?.map((e) => MoveCallHandlerConfig.fromPartial(e)) || [];
1814
1831
  message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
1815
1832
  return message;
1816
1833
  },