@sentio/runtime 2.15.7-rc.2 → 2.16.0-rc.2
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/lib/full-service.d.ts
CHANGED
@@ -181,7 +181,10 @@ export declare class FullProcessorServiceImpl implements ProcessorServiceImpleme
|
|
181
181
|
} | undefined;
|
182
182
|
} | undefined;
|
183
183
|
type?: string | undefined;
|
184
|
-
ownerType?: import("./gen/processor/protos/processor.js").
|
184
|
+
ownerType?: import("./gen/processor/protos/processor.js").MoveOwnerType | undefined;
|
185
|
+
fetchConfig?: {
|
186
|
+
owned?: boolean | undefined;
|
187
|
+
} | undefined;
|
185
188
|
}[] | undefined;
|
186
189
|
logConfigs?: {
|
187
190
|
filters?: {
|
@@ -17,6 +17,14 @@ export declare enum AggregationType {
|
|
17
17
|
}
|
18
18
|
export declare function aggregationTypeFromJSON(object: any): AggregationType;
|
19
19
|
export declare function aggregationTypeToJSON(object: AggregationType): string;
|
20
|
+
export declare enum MoveOwnerType {
|
21
|
+
ADDRESS = 0,
|
22
|
+
OBJECT = 1,
|
23
|
+
WRAPPED_OBJECT = 2,
|
24
|
+
UNRECOGNIZED = -1
|
25
|
+
}
|
26
|
+
export declare function moveOwnerTypeFromJSON(object: any): MoveOwnerType;
|
27
|
+
export declare function moveOwnerTypeToJSON(object: MoveOwnerType): string;
|
20
28
|
export declare enum AddressType {
|
21
29
|
ERC20 = 0,
|
22
30
|
ERC721 = 1,
|
@@ -124,6 +132,7 @@ export interface AccountConfig {
|
|
124
132
|
address: string;
|
125
133
|
startBlock: bigint;
|
126
134
|
intervalConfigs: OnIntervalConfig[];
|
135
|
+
/** @deprecated */
|
127
136
|
aptosIntervalConfigs: AptosOnIntervalConfig[];
|
128
137
|
moveIntervalConfigs: MoveOnIntervalConfig[];
|
129
138
|
logConfigs: LogHandlerConfig[];
|
@@ -147,16 +156,9 @@ export interface AptosOnIntervalConfig {
|
|
147
156
|
export interface MoveOnIntervalConfig {
|
148
157
|
intervalConfig: OnIntervalConfig | undefined;
|
149
158
|
type: string;
|
150
|
-
ownerType:
|
159
|
+
ownerType: MoveOwnerType;
|
160
|
+
fetchConfig: MoveAccountFetchConfig | undefined;
|
151
161
|
}
|
152
|
-
export declare enum MoveOnIntervalConfig_OwnerType {
|
153
|
-
ADDRESS = 0,
|
154
|
-
OBJECT = 1,
|
155
|
-
WRAPPED_OBJECT = 2,
|
156
|
-
UNRECOGNIZED = -1
|
157
|
-
}
|
158
|
-
export declare function moveOnIntervalConfig_OwnerTypeFromJSON(object: any): MoveOnIntervalConfig_OwnerType;
|
159
|
-
export declare function moveOnIntervalConfig_OwnerTypeToJSON(object: MoveOnIntervalConfig_OwnerType): string;
|
160
162
|
export interface ContractInfo {
|
161
163
|
name: string;
|
162
164
|
chainId: string;
|
@@ -209,6 +211,9 @@ export interface MoveFetchConfig {
|
|
209
211
|
resourceChanges: boolean;
|
210
212
|
allEvents: boolean;
|
211
213
|
}
|
214
|
+
export interface MoveAccountFetchConfig {
|
215
|
+
owned: boolean;
|
216
|
+
}
|
212
217
|
export interface MoveEventHandlerConfig {
|
213
218
|
filters: MoveEventFilter[];
|
214
219
|
handlerId: number;
|
@@ -648,6 +653,14 @@ export declare const MoveFetchConfig: {
|
|
648
653
|
create(base?: DeepPartial<MoveFetchConfig>): MoveFetchConfig;
|
649
654
|
fromPartial(object: DeepPartial<MoveFetchConfig>): MoveFetchConfig;
|
650
655
|
};
|
656
|
+
export declare const MoveAccountFetchConfig: {
|
657
|
+
encode(message: MoveAccountFetchConfig, writer?: _m0.Writer): _m0.Writer;
|
658
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MoveAccountFetchConfig;
|
659
|
+
fromJSON(object: any): MoveAccountFetchConfig;
|
660
|
+
toJSON(message: MoveAccountFetchConfig): unknown;
|
661
|
+
create(base?: DeepPartial<MoveAccountFetchConfig>): MoveAccountFetchConfig;
|
662
|
+
fromPartial(object: DeepPartial<MoveAccountFetchConfig>): MoveAccountFetchConfig;
|
663
|
+
};
|
651
664
|
export declare const MoveEventHandlerConfig: {
|
652
665
|
encode(message: MoveEventHandlerConfig, writer?: _m0.Writer): _m0.Writer;
|
653
666
|
decode(input: _m0.Reader | Uint8Array, length?: number): MoveEventHandlerConfig;
|
@@ -78,6 +78,43 @@ export function aggregationTypeToJSON(object) {
|
|
78
78
|
return "UNRECOGNIZED";
|
79
79
|
}
|
80
80
|
}
|
81
|
+
export var MoveOwnerType;
|
82
|
+
(function (MoveOwnerType) {
|
83
|
+
MoveOwnerType[MoveOwnerType["ADDRESS"] = 0] = "ADDRESS";
|
84
|
+
MoveOwnerType[MoveOwnerType["OBJECT"] = 1] = "OBJECT";
|
85
|
+
MoveOwnerType[MoveOwnerType["WRAPPED_OBJECT"] = 2] = "WRAPPED_OBJECT";
|
86
|
+
MoveOwnerType[MoveOwnerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
87
|
+
})(MoveOwnerType || (MoveOwnerType = {}));
|
88
|
+
export function moveOwnerTypeFromJSON(object) {
|
89
|
+
switch (object) {
|
90
|
+
case 0:
|
91
|
+
case "ADDRESS":
|
92
|
+
return MoveOwnerType.ADDRESS;
|
93
|
+
case 1:
|
94
|
+
case "OBJECT":
|
95
|
+
return MoveOwnerType.OBJECT;
|
96
|
+
case 2:
|
97
|
+
case "WRAPPED_OBJECT":
|
98
|
+
return MoveOwnerType.WRAPPED_OBJECT;
|
99
|
+
case -1:
|
100
|
+
case "UNRECOGNIZED":
|
101
|
+
default:
|
102
|
+
return MoveOwnerType.UNRECOGNIZED;
|
103
|
+
}
|
104
|
+
}
|
105
|
+
export function moveOwnerTypeToJSON(object) {
|
106
|
+
switch (object) {
|
107
|
+
case MoveOwnerType.ADDRESS:
|
108
|
+
return "ADDRESS";
|
109
|
+
case MoveOwnerType.OBJECT:
|
110
|
+
return "OBJECT";
|
111
|
+
case MoveOwnerType.WRAPPED_OBJECT:
|
112
|
+
return "WRAPPED_OBJECT";
|
113
|
+
case MoveOwnerType.UNRECOGNIZED:
|
114
|
+
default:
|
115
|
+
return "UNRECOGNIZED";
|
116
|
+
}
|
117
|
+
}
|
81
118
|
export var AddressType;
|
82
119
|
(function (AddressType) {
|
83
120
|
AddressType[AddressType["ERC20"] = 0] = "ERC20";
|
@@ -286,43 +323,6 @@ export function totalPerEntityAggregation_TypeToJSON(object) {
|
|
286
323
|
return "UNRECOGNIZED";
|
287
324
|
}
|
288
325
|
}
|
289
|
-
export var MoveOnIntervalConfig_OwnerType;
|
290
|
-
(function (MoveOnIntervalConfig_OwnerType) {
|
291
|
-
MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["ADDRESS"] = 0] = "ADDRESS";
|
292
|
-
MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["OBJECT"] = 1] = "OBJECT";
|
293
|
-
MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["WRAPPED_OBJECT"] = 2] = "WRAPPED_OBJECT";
|
294
|
-
MoveOnIntervalConfig_OwnerType[MoveOnIntervalConfig_OwnerType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
295
|
-
})(MoveOnIntervalConfig_OwnerType || (MoveOnIntervalConfig_OwnerType = {}));
|
296
|
-
export function moveOnIntervalConfig_OwnerTypeFromJSON(object) {
|
297
|
-
switch (object) {
|
298
|
-
case 0:
|
299
|
-
case "ADDRESS":
|
300
|
-
return MoveOnIntervalConfig_OwnerType.ADDRESS;
|
301
|
-
case 1:
|
302
|
-
case "OBJECT":
|
303
|
-
return MoveOnIntervalConfig_OwnerType.OBJECT;
|
304
|
-
case 2:
|
305
|
-
case "WRAPPED_OBJECT":
|
306
|
-
return MoveOnIntervalConfig_OwnerType.WRAPPED_OBJECT;
|
307
|
-
case -1:
|
308
|
-
case "UNRECOGNIZED":
|
309
|
-
default:
|
310
|
-
return MoveOnIntervalConfig_OwnerType.UNRECOGNIZED;
|
311
|
-
}
|
312
|
-
}
|
313
|
-
export function moveOnIntervalConfig_OwnerTypeToJSON(object) {
|
314
|
-
switch (object) {
|
315
|
-
case MoveOnIntervalConfig_OwnerType.ADDRESS:
|
316
|
-
return "ADDRESS";
|
317
|
-
case MoveOnIntervalConfig_OwnerType.OBJECT:
|
318
|
-
return "OBJECT";
|
319
|
-
case MoveOnIntervalConfig_OwnerType.WRAPPED_OBJECT:
|
320
|
-
return "WRAPPED_OBJECT";
|
321
|
-
case MoveOnIntervalConfig_OwnerType.UNRECOGNIZED:
|
322
|
-
default:
|
323
|
-
return "UNRECOGNIZED";
|
324
|
-
}
|
325
|
-
}
|
326
326
|
function createBaseProjectConfig() {
|
327
327
|
return { name: "", version: "" };
|
328
328
|
}
|
@@ -1604,7 +1604,7 @@ export const AptosOnIntervalConfig = {
|
|
1604
1604
|
},
|
1605
1605
|
};
|
1606
1606
|
function createBaseMoveOnIntervalConfig() {
|
1607
|
-
return { intervalConfig: undefined, type: "", ownerType: 0 };
|
1607
|
+
return { intervalConfig: undefined, type: "", ownerType: 0, fetchConfig: undefined };
|
1608
1608
|
}
|
1609
1609
|
export const MoveOnIntervalConfig = {
|
1610
1610
|
encode(message, writer = _m0.Writer.create()) {
|
@@ -1617,6 +1617,9 @@ export const MoveOnIntervalConfig = {
|
|
1617
1617
|
if (message.ownerType !== 0) {
|
1618
1618
|
writer.uint32(24).int32(message.ownerType);
|
1619
1619
|
}
|
1620
|
+
if (message.fetchConfig !== undefined) {
|
1621
|
+
MoveAccountFetchConfig.encode(message.fetchConfig, writer.uint32(34).fork()).ldelim();
|
1622
|
+
}
|
1620
1623
|
return writer;
|
1621
1624
|
},
|
1622
1625
|
decode(input, length) {
|
@@ -1635,6 +1638,9 @@ export const MoveOnIntervalConfig = {
|
|
1635
1638
|
case 3:
|
1636
1639
|
message.ownerType = reader.int32();
|
1637
1640
|
break;
|
1641
|
+
case 4:
|
1642
|
+
message.fetchConfig = MoveAccountFetchConfig.decode(reader, reader.uint32());
|
1643
|
+
break;
|
1638
1644
|
default:
|
1639
1645
|
reader.skipType(tag & 7);
|
1640
1646
|
break;
|
@@ -1646,7 +1652,8 @@ export const MoveOnIntervalConfig = {
|
|
1646
1652
|
return {
|
1647
1653
|
intervalConfig: isSet(object.intervalConfig) ? OnIntervalConfig.fromJSON(object.intervalConfig) : undefined,
|
1648
1654
|
type: isSet(object.type) ? String(object.type) : "",
|
1649
|
-
ownerType: isSet(object.ownerType) ?
|
1655
|
+
ownerType: isSet(object.ownerType) ? moveOwnerTypeFromJSON(object.ownerType) : 0,
|
1656
|
+
fetchConfig: isSet(object.fetchConfig) ? MoveAccountFetchConfig.fromJSON(object.fetchConfig) : undefined,
|
1650
1657
|
};
|
1651
1658
|
},
|
1652
1659
|
toJSON(message) {
|
@@ -1654,7 +1661,9 @@ export const MoveOnIntervalConfig = {
|
|
1654
1661
|
message.intervalConfig !== undefined &&
|
1655
1662
|
(obj.intervalConfig = message.intervalConfig ? OnIntervalConfig.toJSON(message.intervalConfig) : undefined);
|
1656
1663
|
message.type !== undefined && (obj.type = message.type);
|
1657
|
-
message.ownerType !== undefined && (obj.ownerType =
|
1664
|
+
message.ownerType !== undefined && (obj.ownerType = moveOwnerTypeToJSON(message.ownerType));
|
1665
|
+
message.fetchConfig !== undefined &&
|
1666
|
+
(obj.fetchConfig = message.fetchConfig ? MoveAccountFetchConfig.toJSON(message.fetchConfig) : undefined);
|
1658
1667
|
return obj;
|
1659
1668
|
},
|
1660
1669
|
create(base) {
|
@@ -1667,6 +1676,9 @@ export const MoveOnIntervalConfig = {
|
|
1667
1676
|
: undefined;
|
1668
1677
|
message.type = object.type ?? "";
|
1669
1678
|
message.ownerType = object.ownerType ?? 0;
|
1679
|
+
message.fetchConfig = (object.fetchConfig !== undefined && object.fetchConfig !== null)
|
1680
|
+
? MoveAccountFetchConfig.fromPartial(object.fetchConfig)
|
1681
|
+
: undefined;
|
1670
1682
|
return message;
|
1671
1683
|
},
|
1672
1684
|
};
|
@@ -2375,6 +2387,50 @@ export const MoveFetchConfig = {
|
|
2375
2387
|
return message;
|
2376
2388
|
},
|
2377
2389
|
};
|
2390
|
+
function createBaseMoveAccountFetchConfig() {
|
2391
|
+
return { owned: false };
|
2392
|
+
}
|
2393
|
+
export const MoveAccountFetchConfig = {
|
2394
|
+
encode(message, writer = _m0.Writer.create()) {
|
2395
|
+
if (message.owned === true) {
|
2396
|
+
writer.uint32(8).bool(message.owned);
|
2397
|
+
}
|
2398
|
+
return writer;
|
2399
|
+
},
|
2400
|
+
decode(input, length) {
|
2401
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
2402
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
2403
|
+
const message = createBaseMoveAccountFetchConfig();
|
2404
|
+
while (reader.pos < end) {
|
2405
|
+
const tag = reader.uint32();
|
2406
|
+
switch (tag >>> 3) {
|
2407
|
+
case 1:
|
2408
|
+
message.owned = reader.bool();
|
2409
|
+
break;
|
2410
|
+
default:
|
2411
|
+
reader.skipType(tag & 7);
|
2412
|
+
break;
|
2413
|
+
}
|
2414
|
+
}
|
2415
|
+
return message;
|
2416
|
+
},
|
2417
|
+
fromJSON(object) {
|
2418
|
+
return { owned: isSet(object.owned) ? Boolean(object.owned) : false };
|
2419
|
+
},
|
2420
|
+
toJSON(message) {
|
2421
|
+
const obj = {};
|
2422
|
+
message.owned !== undefined && (obj.owned = message.owned);
|
2423
|
+
return obj;
|
2424
|
+
},
|
2425
|
+
create(base) {
|
2426
|
+
return MoveAccountFetchConfig.fromPartial(base ?? {});
|
2427
|
+
},
|
2428
|
+
fromPartial(object) {
|
2429
|
+
const message = createBaseMoveAccountFetchConfig();
|
2430
|
+
message.owned = object.owned ?? false;
|
2431
|
+
return message;
|
2432
|
+
},
|
2433
|
+
};
|
2378
2434
|
function createBaseMoveEventHandlerConfig() {
|
2379
2435
|
return { filters: [], handlerId: 0, fetchConfig: undefined };
|
2380
2436
|
}
|