@sentio/runtime 2.15.7-rc.2 → 2.16.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/runtime",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "2.
|
4
|
+
"version": "2.16.0-rc.1",
|
5
5
|
"dependencies": {
|
6
6
|
"command-line-args": "^5.2.1",
|
7
7
|
"command-line-usage": "^7.0.1",
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"protobufjs": "^7.2.3",
|
17
17
|
"@grpc/grpc-js": "^1.8.14",
|
18
18
|
"prom-client": "^14.2.0",
|
19
|
-
"@sentio/protos": "^2.
|
19
|
+
"@sentio/protos": "^2.16.0-rc.1"
|
20
20
|
},
|
21
21
|
"devDependencies": {
|
22
22
|
"jest": "^29.5.0",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
"tslib": "^2.5.0"
|
28
28
|
},
|
29
29
|
"peerDependencies": {
|
30
|
-
"@sentio/sdk": "^2.
|
30
|
+
"@sentio/sdk": "^2.16.0-rc.1"
|
31
31
|
},
|
32
32
|
"bin": {
|
33
33
|
"processor-runner": "./lib/processor-runner.js"
|
@@ -84,6 +84,45 @@ export function aggregationTypeToJSON(object: AggregationType): string {
|
|
84
84
|
}
|
85
85
|
}
|
86
86
|
|
87
|
+
export enum MoveOwnerType {
|
88
|
+
ADDRESS = 0,
|
89
|
+
OBJECT = 1,
|
90
|
+
WRAPPED_OBJECT = 2,
|
91
|
+
UNRECOGNIZED = -1,
|
92
|
+
}
|
93
|
+
|
94
|
+
export function moveOwnerTypeFromJSON(object: any): MoveOwnerType {
|
95
|
+
switch (object) {
|
96
|
+
case 0:
|
97
|
+
case "ADDRESS":
|
98
|
+
return MoveOwnerType.ADDRESS;
|
99
|
+
case 1:
|
100
|
+
case "OBJECT":
|
101
|
+
return MoveOwnerType.OBJECT;
|
102
|
+
case 2:
|
103
|
+
case "WRAPPED_OBJECT":
|
104
|
+
return MoveOwnerType.WRAPPED_OBJECT;
|
105
|
+
case -1:
|
106
|
+
case "UNRECOGNIZED":
|
107
|
+
default:
|
108
|
+
return MoveOwnerType.UNRECOGNIZED;
|
109
|
+
}
|
110
|
+
}
|
111
|
+
|
112
|
+
export function moveOwnerTypeToJSON(object: MoveOwnerType): string {
|
113
|
+
switch (object) {
|
114
|
+
case MoveOwnerType.ADDRESS:
|
115
|
+
return "ADDRESS";
|
116
|
+
case MoveOwnerType.OBJECT:
|
117
|
+
return "OBJECT";
|
118
|
+
case MoveOwnerType.WRAPPED_OBJECT:
|
119
|
+
return "WRAPPED_OBJECT";
|
120
|
+
case MoveOwnerType.UNRECOGNIZED:
|
121
|
+
default:
|
122
|
+
return "UNRECOGNIZED";
|
123
|
+
}
|
124
|
+
}
|
125
|
+
|
87
126
|
export enum AddressType {
|
88
127
|
ERC20 = 0,
|
89
128
|
ERC721 = 1,
|
@@ -375,6 +414,7 @@ export interface AccountConfig {
|
|
375
414
|
address: string;
|
376
415
|
startBlock: bigint;
|
377
416
|
intervalConfigs: OnIntervalConfig[];
|
417
|
+
/** @deprecated */
|
378
418
|
aptosIntervalConfigs: AptosOnIntervalConfig[];
|
379
419
|
moveIntervalConfigs: MoveOnIntervalConfig[];
|
380
420
|
logConfigs: LogHandlerConfig[];
|
@@ -402,46 +442,8 @@ export interface AptosOnIntervalConfig {
|
|
402
442
|
export interface MoveOnIntervalConfig {
|
403
443
|
intervalConfig: OnIntervalConfig | undefined;
|
404
444
|
type: string;
|
405
|
-
ownerType:
|
406
|
-
|
407
|
-
|
408
|
-
export enum MoveOnIntervalConfig_OwnerType {
|
409
|
-
ADDRESS = 0,
|
410
|
-
OBJECT = 1,
|
411
|
-
WRAPPED_OBJECT = 2,
|
412
|
-
UNRECOGNIZED = -1,
|
413
|
-
}
|
414
|
-
|
415
|
-
export function moveOnIntervalConfig_OwnerTypeFromJSON(object: any): MoveOnIntervalConfig_OwnerType {
|
416
|
-
switch (object) {
|
417
|
-
case 0:
|
418
|
-
case "ADDRESS":
|
419
|
-
return MoveOnIntervalConfig_OwnerType.ADDRESS;
|
420
|
-
case 1:
|
421
|
-
case "OBJECT":
|
422
|
-
return MoveOnIntervalConfig_OwnerType.OBJECT;
|
423
|
-
case 2:
|
424
|
-
case "WRAPPED_OBJECT":
|
425
|
-
return MoveOnIntervalConfig_OwnerType.WRAPPED_OBJECT;
|
426
|
-
case -1:
|
427
|
-
case "UNRECOGNIZED":
|
428
|
-
default:
|
429
|
-
return MoveOnIntervalConfig_OwnerType.UNRECOGNIZED;
|
430
|
-
}
|
431
|
-
}
|
432
|
-
|
433
|
-
export function moveOnIntervalConfig_OwnerTypeToJSON(object: MoveOnIntervalConfig_OwnerType): string {
|
434
|
-
switch (object) {
|
435
|
-
case MoveOnIntervalConfig_OwnerType.ADDRESS:
|
436
|
-
return "ADDRESS";
|
437
|
-
case MoveOnIntervalConfig_OwnerType.OBJECT:
|
438
|
-
return "OBJECT";
|
439
|
-
case MoveOnIntervalConfig_OwnerType.WRAPPED_OBJECT:
|
440
|
-
return "WRAPPED_OBJECT";
|
441
|
-
case MoveOnIntervalConfig_OwnerType.UNRECOGNIZED:
|
442
|
-
default:
|
443
|
-
return "UNRECOGNIZED";
|
444
|
-
}
|
445
|
+
ownerType: MoveOwnerType;
|
446
|
+
fetchConfig: MoveAccountFetchConfig | undefined;
|
445
447
|
}
|
446
448
|
|
447
449
|
export interface ContractInfo {
|
@@ -507,6 +509,10 @@ export interface MoveFetchConfig {
|
|
507
509
|
allEvents: boolean;
|
508
510
|
}
|
509
511
|
|
512
|
+
export interface MoveAccountFetchConfig {
|
513
|
+
owned: boolean;
|
514
|
+
}
|
515
|
+
|
510
516
|
export interface MoveEventHandlerConfig {
|
511
517
|
filters: MoveEventFilter[];
|
512
518
|
handlerId: number;
|
@@ -2083,7 +2089,7 @@ export const AptosOnIntervalConfig = {
|
|
2083
2089
|
};
|
2084
2090
|
|
2085
2091
|
function createBaseMoveOnIntervalConfig(): MoveOnIntervalConfig {
|
2086
|
-
return { intervalConfig: undefined, type: "", ownerType: 0 };
|
2092
|
+
return { intervalConfig: undefined, type: "", ownerType: 0, fetchConfig: undefined };
|
2087
2093
|
}
|
2088
2094
|
|
2089
2095
|
export const MoveOnIntervalConfig = {
|
@@ -2097,6 +2103,9 @@ export const MoveOnIntervalConfig = {
|
|
2097
2103
|
if (message.ownerType !== 0) {
|
2098
2104
|
writer.uint32(24).int32(message.ownerType);
|
2099
2105
|
}
|
2106
|
+
if (message.fetchConfig !== undefined) {
|
2107
|
+
MoveAccountFetchConfig.encode(message.fetchConfig, writer.uint32(34).fork()).ldelim();
|
2108
|
+
}
|
2100
2109
|
return writer;
|
2101
2110
|
},
|
2102
2111
|
|
@@ -2116,6 +2125,9 @@ export const MoveOnIntervalConfig = {
|
|
2116
2125
|
case 3:
|
2117
2126
|
message.ownerType = reader.int32() as any;
|
2118
2127
|
break;
|
2128
|
+
case 4:
|
2129
|
+
message.fetchConfig = MoveAccountFetchConfig.decode(reader, reader.uint32());
|
2130
|
+
break;
|
2119
2131
|
default:
|
2120
2132
|
reader.skipType(tag & 7);
|
2121
2133
|
break;
|
@@ -2128,7 +2140,8 @@ export const MoveOnIntervalConfig = {
|
|
2128
2140
|
return {
|
2129
2141
|
intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
|
2130
2142
|
type: isSet(object.type) ? String(object.type) : "",
|
2131
|
-
ownerType: isSet(object.ownerType) ?
|
2143
|
+
ownerType: isSet(object.ownerType) ? moveOwnerTypeFromJSON(object.ownerType) : 0,
|
2144
|
+
fetchConfig: isSet(object.fetchConfig) ? MoveAccountFetchConfig.fromJSON(object.fetchConfig) : undefined,
|
2132
2145
|
};
|
2133
2146
|
},
|
2134
2147
|
|
@@ -2137,7 +2150,9 @@ export const MoveOnIntervalConfig = {
|
|
2137
2150
|
message.intervalConfig !== undefined &&
|
2138
2151
|
(obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
|
2139
2152
|
message.type !== undefined && (obj.type = message.type);
|
2140
|
-
message.ownerType !== undefined && (obj.ownerType =
|
2153
|
+
message.ownerType !== undefined && (obj.ownerType = moveOwnerTypeToJSON(message.ownerType));
|
2154
|
+
message.fetchConfig !== undefined &&
|
2155
|
+
(obj.fetchConfig = message.fetchConfig ? MoveAccountFetchConfig.toJSON(message.fetchConfig) : undefined);
|
2141
2156
|
return obj;
|
2142
2157
|
},
|
2143
2158
|
|
@@ -2152,6 +2167,9 @@ export const MoveOnIntervalConfig = {
|
|
2152
2167
|
: undefined;
|
2153
2168
|
message.type = object.type ?? "";
|
2154
2169
|
message.ownerType = object.ownerType ?? 0;
|
2170
|
+
message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
|
2171
|
+
? MoveAccountFetchConfig.fromPartial(object.fetchConfig)
|
2172
|
+
: undefined;
|
2155
2173
|
return message;
|
2156
2174
|
},
|
2157
2175
|
};
|
@@ -2935,6 +2953,57 @@ export const MoveFetchConfig = {
|
|
2935
2953
|
},
|
2936
2954
|
};
|
2937
2955
|
|
2956
|
+
function createBaseMoveAccountFetchConfig(): MoveAccountFetchConfig {
|
2957
|
+
return { owned: false };
|
2958
|
+
}
|
2959
|
+
|
2960
|
+
export const MoveAccountFetchConfig = {
|
2961
|
+
encode(message: MoveAccountFetchConfig, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
2962
|
+
if (message.owned === true) {
|
2963
|
+
writer.uint32(8).bool(message.owned);
|
2964
|
+
}
|
2965
|
+
return writer;
|
2966
|
+
},
|
2967
|
+
|
2968
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MoveAccountFetchConfig {
|
2969
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2970
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2971
|
+
const message = createBaseMoveAccountFetchConfig();
|
2972
|
+
while (reader.pos < end) {
|
2973
|
+
const tag = reader.uint32();
|
2974
|
+
switch (tag >>> 3) {
|
2975
|
+
case 1:
|
2976
|
+
message.owned = reader.bool();
|
2977
|
+
break;
|
2978
|
+
default:
|
2979
|
+
reader.skipType(tag & 7);
|
2980
|
+
break;
|
2981
|
+
}
|
2982
|
+
}
|
2983
|
+
return message;
|
2984
|
+
},
|
2985
|
+
|
2986
|
+
fromJSON(object: any): MoveAccountFetchConfig {
|
2987
|
+
return { owned: isSet(object.owned) ? Boolean(object.owned) : false };
|
2988
|
+
},
|
2989
|
+
|
2990
|
+
toJSON(message: MoveAccountFetchConfig): unknown {
|
2991
|
+
const obj: any = {};
|
2992
|
+
message.owned !== undefined && (obj.owned = message.owned);
|
2993
|
+
return obj;
|
2994
|
+
},
|
2995
|
+
|
2996
|
+
create(base?: DeepPartial<MoveAccountFetchConfig>): MoveAccountFetchConfig {
|
2997
|
+
return MoveAccountFetchConfig.fromPartial(base ?? {});
|
2998
|
+
},
|
2999
|
+
|
3000
|
+
fromPartial(object: DeepPartial<MoveAccountFetchConfig>): MoveAccountFetchConfig {
|
3001
|
+
const message = createBaseMoveAccountFetchConfig();
|
3002
|
+
message.owned = object.owned ?? false;
|
3003
|
+
return message;
|
3004
|
+
},
|
3005
|
+
};
|
3006
|
+
|
2938
3007
|
function createBaseMoveEventHandlerConfig(): MoveEventHandlerConfig {
|
2939
3008
|
return { filters: [], handlerId: 0, fetchConfig: undefined };
|
2940
3009
|
}
|