@sentio/runtime 1.36.4-rc.1 → 1.37.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,10 +1,11 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
3
|
"license": "Apache-2.0",
|
4
|
-
"version": "1.
|
4
|
+
"version": "1.37.0-rc.1",
|
5
5
|
"scripts": {
|
6
6
|
"compile": "tsc -p .",
|
7
7
|
"build": "yarn compile",
|
8
|
+
"build_all": "yarn lerna run --scope=@sentio/runtime build --include-dependencies",
|
8
9
|
"test": "jest"
|
9
10
|
},
|
10
11
|
"dependencies": {
|
@@ -46,8 +47,5 @@
|
|
46
47
|
"!{lib,src}/tests",
|
47
48
|
"!**/*.test.{js,ts}"
|
48
49
|
],
|
49
|
-
"
|
50
|
-
"node": ">=16"
|
51
|
-
},
|
52
|
-
"gitHead": "3c87b72d75f7d9313dbedeecb33101723d5a2c58"
|
50
|
+
"gitHead": "f5035604b83d4ef3b79d091a0c674b1e0546050b"
|
53
51
|
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
import Long from "long";
|
3
2
|
import _m0 from "protobufjs/minimal";
|
4
3
|
|
5
4
|
export interface Empty {
|
@@ -47,12 +46,6 @@ export const Empty = {
|
|
47
46
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
48
47
|
|
49
48
|
type DeepPartial<T> = T extends Builtin ? T
|
50
|
-
: T extends
|
51
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
49
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
52
50
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
53
51
|
: Partial<T>;
|
54
|
-
|
55
|
-
if (_m0.util.Long !== Long) {
|
56
|
-
_m0.util.Long = Long as any;
|
57
|
-
_m0.configure();
|
58
|
-
}
|
@@ -1,5 +1,4 @@
|
|
1
1
|
/* eslint-disable */
|
2
|
-
import Long from "long";
|
3
2
|
import _m0 from "protobufjs/minimal";
|
4
3
|
|
5
4
|
export enum NullValue {
|
@@ -403,16 +402,10 @@ export const ListValue = {
|
|
403
402
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
404
403
|
|
405
404
|
type DeepPartial<T> = T extends Builtin ? T
|
406
|
-
: T extends
|
407
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
405
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
408
406
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
409
407
|
: Partial<T>;
|
410
408
|
|
411
|
-
if (_m0.util.Long !== Long) {
|
412
|
-
_m0.util.Long = Long as any;
|
413
|
-
_m0.configure();
|
414
|
-
}
|
415
|
-
|
416
409
|
function isObject(value: any): boolean {
|
417
410
|
return typeof value === "object" && value !== null;
|
418
411
|
}
|
@@ -274,8 +274,8 @@ export interface ContractConfig {
|
|
274
274
|
aptosEventConfigs: AptosEventHandlerConfig[];
|
275
275
|
aptosCallConfigs: AptosCallHandlerConfig[];
|
276
276
|
instructionConfig: InstructionHandlerConfig | undefined;
|
277
|
-
startBlock:
|
278
|
-
endBlock:
|
277
|
+
startBlock: bigint;
|
278
|
+
endBlock: bigint;
|
279
279
|
processorType: string;
|
280
280
|
}
|
281
281
|
|
@@ -352,7 +352,7 @@ export interface AggregationConfig {
|
|
352
352
|
export interface AccountConfig {
|
353
353
|
chainId: string;
|
354
354
|
address: string;
|
355
|
-
startBlock:
|
355
|
+
startBlock: bigint;
|
356
356
|
intervalConfigs: OnIntervalConfig[];
|
357
357
|
aptosIntervalConfigs: AptosOnIntervalConfig[];
|
358
358
|
logConfigs: LogHandlerConfig[];
|
@@ -385,8 +385,8 @@ export interface ContractInfo {
|
|
385
385
|
|
386
386
|
export interface TemplateInstance {
|
387
387
|
contract: ContractInfo | undefined;
|
388
|
-
startBlock:
|
389
|
-
endBlock:
|
388
|
+
startBlock: bigint;
|
389
|
+
endBlock: bigint;
|
390
390
|
templateId: number;
|
391
391
|
}
|
392
392
|
|
@@ -458,7 +458,7 @@ export interface ProcessBindingResponse {
|
|
458
458
|
export interface RawTransaction {
|
459
459
|
raw: Uint8Array;
|
460
460
|
programAccountId?: string | undefined;
|
461
|
-
slot?:
|
461
|
+
slot?: bigint | undefined;
|
462
462
|
}
|
463
463
|
|
464
464
|
export interface Data {
|
@@ -495,7 +495,7 @@ export interface Data_EthTrace {
|
|
495
495
|
|
496
496
|
export interface Data_SolInstruction {
|
497
497
|
instructionData: string;
|
498
|
-
slot:
|
498
|
+
slot: bigint;
|
499
499
|
programAccountId: string;
|
500
500
|
accounts: string[];
|
501
501
|
parsed?: { [key: string]: any } | undefined;
|
@@ -511,8 +511,8 @@ export interface Data_AptCall {
|
|
511
511
|
|
512
512
|
export interface Data_AptResource {
|
513
513
|
resources: { [key: string]: any }[];
|
514
|
-
version:
|
515
|
-
timestampMicros:
|
514
|
+
version: bigint;
|
515
|
+
timestampMicros: bigint;
|
516
516
|
}
|
517
517
|
|
518
518
|
export interface DataBinding {
|
@@ -532,7 +532,7 @@ export interface ProcessResult {
|
|
532
532
|
export interface RecordMetaData {
|
533
533
|
address: string;
|
534
534
|
contractName: string;
|
535
|
-
blockNumber:
|
535
|
+
blockNumber: bigint;
|
536
536
|
transactionHash: string;
|
537
537
|
chainId: string;
|
538
538
|
transactionIndex: number;
|
@@ -850,8 +850,8 @@ function createBaseContractConfig(): ContractConfig {
|
|
850
850
|
aptosEventConfigs: [],
|
851
851
|
aptosCallConfigs: [],
|
852
852
|
instructionConfig: undefined,
|
853
|
-
startBlock:
|
854
|
-
endBlock:
|
853
|
+
startBlock: BigInt("0"),
|
854
|
+
endBlock: BigInt("0"),
|
855
855
|
processorType: "",
|
856
856
|
};
|
857
857
|
}
|
@@ -879,11 +879,11 @@ export const ContractConfig = {
|
|
879
879
|
if (message.instructionConfig !== undefined) {
|
880
880
|
InstructionHandlerConfig.encode(message.instructionConfig, writer.uint32(50).fork()).ldelim();
|
881
881
|
}
|
882
|
-
if (
|
883
|
-
writer.uint32(32).uint64(message.startBlock);
|
882
|
+
if (message.startBlock !== BigInt("0")) {
|
883
|
+
writer.uint32(32).uint64(message.startBlock.toString());
|
884
884
|
}
|
885
|
-
if (
|
886
|
-
writer.uint32(40).uint64(message.endBlock);
|
885
|
+
if (message.endBlock !== BigInt("0")) {
|
886
|
+
writer.uint32(40).uint64(message.endBlock.toString());
|
887
887
|
}
|
888
888
|
if (message.processorType !== "") {
|
889
889
|
writer.uint32(66).string(message.processorType);
|
@@ -920,10 +920,10 @@ export const ContractConfig = {
|
|
920
920
|
message.instructionConfig = InstructionHandlerConfig.decode(reader, reader.uint32());
|
921
921
|
break;
|
922
922
|
case 4:
|
923
|
-
message.startBlock = reader.uint64() as Long;
|
923
|
+
message.startBlock = longToBigint(reader.uint64() as Long);
|
924
924
|
break;
|
925
925
|
case 5:
|
926
|
-
message.endBlock = reader.uint64() as Long;
|
926
|
+
message.endBlock = longToBigint(reader.uint64() as Long);
|
927
927
|
break;
|
928
928
|
case 8:
|
929
929
|
message.processorType = reader.string();
|
@@ -957,8 +957,8 @@ export const ContractConfig = {
|
|
957
957
|
instructionConfig: isSet(object.instructionConfig)
|
958
958
|
? InstructionHandlerConfig.fromJSON(object.instructionConfig)
|
959
959
|
: undefined,
|
960
|
-
startBlock: isSet(object.startBlock) ?
|
961
|
-
endBlock: isSet(object.endBlock) ?
|
960
|
+
startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
|
961
|
+
endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
|
962
962
|
processorType: isSet(object.processorType) ? String(object.processorType) : "",
|
963
963
|
};
|
964
964
|
},
|
@@ -995,8 +995,8 @@ export const ContractConfig = {
|
|
995
995
|
message.instructionConfig !== undefined && (obj.instructionConfig = message.instructionConfig
|
996
996
|
? InstructionHandlerConfig.toJSON(message.instructionConfig)
|
997
997
|
: undefined);
|
998
|
-
message.startBlock !== undefined && (obj.startBlock =
|
999
|
-
message.endBlock !== undefined && (obj.endBlock =
|
998
|
+
message.startBlock !== undefined && (obj.startBlock = message.startBlock.toString());
|
999
|
+
message.endBlock !== undefined && (obj.endBlock = message.endBlock.toString());
|
1000
1000
|
message.processorType !== undefined && (obj.processorType = message.processorType);
|
1001
1001
|
return obj;
|
1002
1002
|
},
|
@@ -1014,12 +1014,8 @@ export const ContractConfig = {
|
|
1014
1014
|
message.instructionConfig = (object.instructionConfig !== undefined && object.instructionConfig !== null)
|
1015
1015
|
? InstructionHandlerConfig.fromPartial(object.instructionConfig)
|
1016
1016
|
: undefined;
|
1017
|
-
message.startBlock =
|
1018
|
-
|
1019
|
-
: Long.UZERO;
|
1020
|
-
message.endBlock = (object.endBlock !== undefined && object.endBlock !== null)
|
1021
|
-
? Long.fromValue(object.endBlock)
|
1022
|
-
: Long.UZERO;
|
1017
|
+
message.startBlock = object.startBlock ?? BigInt("0");
|
1018
|
+
message.endBlock = object.endBlock ?? BigInt("0");
|
1023
1019
|
message.processorType = object.processorType ?? "";
|
1024
1020
|
return message;
|
1025
1021
|
},
|
@@ -1504,7 +1500,7 @@ function createBaseAccountConfig(): AccountConfig {
|
|
1504
1500
|
return {
|
1505
1501
|
chainId: "",
|
1506
1502
|
address: "",
|
1507
|
-
startBlock:
|
1503
|
+
startBlock: BigInt("0"),
|
1508
1504
|
intervalConfigs: [],
|
1509
1505
|
aptosIntervalConfigs: [],
|
1510
1506
|
logConfigs: [],
|
@@ -1519,8 +1515,8 @@ export const AccountConfig = {
|
|
1519
1515
|
if (message.address !== "") {
|
1520
1516
|
writer.uint32(18).string(message.address);
|
1521
1517
|
}
|
1522
|
-
if (
|
1523
|
-
writer.uint32(24).uint64(message.startBlock);
|
1518
|
+
if (message.startBlock !== BigInt("0")) {
|
1519
|
+
writer.uint32(24).uint64(message.startBlock.toString());
|
1524
1520
|
}
|
1525
1521
|
for (const v of message.intervalConfigs) {
|
1526
1522
|
OnIntervalConfig.encode(v!, writer.uint32(34).fork()).ldelim();
|
@@ -1548,7 +1544,7 @@ export const AccountConfig = {
|
|
1548
1544
|
message.address = reader.string();
|
1549
1545
|
break;
|
1550
1546
|
case 3:
|
1551
|
-
message.startBlock = reader.uint64() as Long;
|
1547
|
+
message.startBlock = longToBigint(reader.uint64() as Long);
|
1552
1548
|
break;
|
1553
1549
|
case 4:
|
1554
1550
|
message.intervalConfigs.push(OnIntervalConfig.decode(reader, reader.uint32()));
|
@@ -1571,7 +1567,7 @@ export const AccountConfig = {
|
|
1571
1567
|
return {
|
1572
1568
|
chainId: isSet(object.chainId) ? String(object.chainId) : "",
|
1573
1569
|
address: isSet(object.address) ? String(object.address) : "",
|
1574
|
-
startBlock: isSet(object.startBlock) ?
|
1570
|
+
startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
|
1575
1571
|
intervalConfigs: Array.isArray(object?.intervalConfigs)
|
1576
1572
|
? object.intervalConfigs.map((e: any) => OnIntervalConfig.fromJSON(e))
|
1577
1573
|
: [],
|
@@ -1588,7 +1584,7 @@ export const AccountConfig = {
|
|
1588
1584
|
const obj: any = {};
|
1589
1585
|
message.chainId !== undefined && (obj.chainId = message.chainId);
|
1590
1586
|
message.address !== undefined && (obj.address = message.address);
|
1591
|
-
message.startBlock !== undefined && (obj.startBlock =
|
1587
|
+
message.startBlock !== undefined && (obj.startBlock = message.startBlock.toString());
|
1592
1588
|
if (message.intervalConfigs) {
|
1593
1589
|
obj.intervalConfigs = message.intervalConfigs.map((e) => e ? OnIntervalConfig.toJSON(e) : undefined);
|
1594
1590
|
} else {
|
@@ -1613,9 +1609,7 @@ export const AccountConfig = {
|
|
1613
1609
|
const message = createBaseAccountConfig();
|
1614
1610
|
message.chainId = object.chainId ?? "";
|
1615
1611
|
message.address = object.address ?? "";
|
1616
|
-
message.startBlock =
|
1617
|
-
? Long.fromValue(object.startBlock)
|
1618
|
-
: Long.UZERO;
|
1612
|
+
message.startBlock = object.startBlock ?? BigInt("0");
|
1619
1613
|
message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
|
1620
1614
|
message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
|
1621
1615
|
message.logConfigs = object.logConfigs?.map((e) => LogHandlerConfig.fromPartial(e)) || [];
|
@@ -1910,7 +1904,7 @@ export const ContractInfo = {
|
|
1910
1904
|
};
|
1911
1905
|
|
1912
1906
|
function createBaseTemplateInstance(): TemplateInstance {
|
1913
|
-
return { contract: undefined, startBlock:
|
1907
|
+
return { contract: undefined, startBlock: BigInt("0"), endBlock: BigInt("0"), templateId: 0 };
|
1914
1908
|
}
|
1915
1909
|
|
1916
1910
|
export const TemplateInstance = {
|
@@ -1918,11 +1912,11 @@ export const TemplateInstance = {
|
|
1918
1912
|
if (message.contract !== undefined) {
|
1919
1913
|
ContractInfo.encode(message.contract, writer.uint32(10).fork()).ldelim();
|
1920
1914
|
}
|
1921
|
-
if (
|
1922
|
-
writer.uint32(16).uint64(message.startBlock);
|
1915
|
+
if (message.startBlock !== BigInt("0")) {
|
1916
|
+
writer.uint32(16).uint64(message.startBlock.toString());
|
1923
1917
|
}
|
1924
|
-
if (
|
1925
|
-
writer.uint32(24).uint64(message.endBlock);
|
1918
|
+
if (message.endBlock !== BigInt("0")) {
|
1919
|
+
writer.uint32(24).uint64(message.endBlock.toString());
|
1926
1920
|
}
|
1927
1921
|
if (message.templateId !== 0) {
|
1928
1922
|
writer.uint32(32).int32(message.templateId);
|
@@ -1941,10 +1935,10 @@ export const TemplateInstance = {
|
|
1941
1935
|
message.contract = ContractInfo.decode(reader, reader.uint32());
|
1942
1936
|
break;
|
1943
1937
|
case 2:
|
1944
|
-
message.startBlock = reader.uint64() as Long;
|
1938
|
+
message.startBlock = longToBigint(reader.uint64() as Long);
|
1945
1939
|
break;
|
1946
1940
|
case 3:
|
1947
|
-
message.endBlock = reader.uint64() as Long;
|
1941
|
+
message.endBlock = longToBigint(reader.uint64() as Long);
|
1948
1942
|
break;
|
1949
1943
|
case 4:
|
1950
1944
|
message.templateId = reader.int32();
|
@@ -1960,8 +1954,8 @@ export const TemplateInstance = {
|
|
1960
1954
|
fromJSON(object: any): TemplateInstance {
|
1961
1955
|
return {
|
1962
1956
|
contract: isSet(object.contract) ? ContractInfo.fromJSON(object.contract) : undefined,
|
1963
|
-
startBlock: isSet(object.startBlock) ?
|
1964
|
-
endBlock: isSet(object.endBlock) ?
|
1957
|
+
startBlock: isSet(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
|
1958
|
+
endBlock: isSet(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
|
1965
1959
|
templateId: isSet(object.templateId) ? Number(object.templateId) : 0,
|
1966
1960
|
};
|
1967
1961
|
},
|
@@ -1970,8 +1964,8 @@ export const TemplateInstance = {
|
|
1970
1964
|
const obj: any = {};
|
1971
1965
|
message.contract !== undefined &&
|
1972
1966
|
(obj.contract = message.contract ? ContractInfo.toJSON(message.contract) : undefined);
|
1973
|
-
message.startBlock !== undefined && (obj.startBlock =
|
1974
|
-
message.endBlock !== undefined && (obj.endBlock =
|
1967
|
+
message.startBlock !== undefined && (obj.startBlock = message.startBlock.toString());
|
1968
|
+
message.endBlock !== undefined && (obj.endBlock = message.endBlock.toString());
|
1975
1969
|
message.templateId !== undefined && (obj.templateId = Math.round(message.templateId));
|
1976
1970
|
return obj;
|
1977
1971
|
},
|
@@ -1981,12 +1975,8 @@ export const TemplateInstance = {
|
|
1981
1975
|
message.contract = (object.contract !== undefined && object.contract !== null)
|
1982
1976
|
? ContractInfo.fromPartial(object.contract)
|
1983
1977
|
: undefined;
|
1984
|
-
message.startBlock =
|
1985
|
-
|
1986
|
-
: Long.UZERO;
|
1987
|
-
message.endBlock = (object.endBlock !== undefined && object.endBlock !== null)
|
1988
|
-
? Long.fromValue(object.endBlock)
|
1989
|
-
: Long.UZERO;
|
1978
|
+
message.startBlock = object.startBlock ?? BigInt("0");
|
1979
|
+
message.endBlock = object.endBlock ?? BigInt("0");
|
1990
1980
|
message.templateId = object.templateId ?? 0;
|
1991
1981
|
return message;
|
1992
1982
|
},
|
@@ -2792,7 +2782,7 @@ export const RawTransaction = {
|
|
2792
2782
|
writer.uint32(18).string(message.programAccountId);
|
2793
2783
|
}
|
2794
2784
|
if (message.slot !== undefined) {
|
2795
|
-
writer.uint32(24).uint64(message.slot);
|
2785
|
+
writer.uint32(24).uint64(message.slot.toString());
|
2796
2786
|
}
|
2797
2787
|
return writer;
|
2798
2788
|
},
|
@@ -2811,7 +2801,7 @@ export const RawTransaction = {
|
|
2811
2801
|
message.programAccountId = reader.string();
|
2812
2802
|
break;
|
2813
2803
|
case 3:
|
2814
|
-
message.slot = reader.uint64() as Long;
|
2804
|
+
message.slot = longToBigint(reader.uint64() as Long);
|
2815
2805
|
break;
|
2816
2806
|
default:
|
2817
2807
|
reader.skipType(tag & 7);
|
@@ -2825,7 +2815,7 @@ export const RawTransaction = {
|
|
2825
2815
|
return {
|
2826
2816
|
raw: isSet(object.raw) ? bytesFromBase64(object.raw) : new Uint8Array(),
|
2827
2817
|
programAccountId: isSet(object.programAccountId) ? String(object.programAccountId) : undefined,
|
2828
|
-
slot: isSet(object.slot) ?
|
2818
|
+
slot: isSet(object.slot) ? BigInt(object.slot) : undefined,
|
2829
2819
|
};
|
2830
2820
|
},
|
2831
2821
|
|
@@ -2834,7 +2824,7 @@ export const RawTransaction = {
|
|
2834
2824
|
message.raw !== undefined &&
|
2835
2825
|
(obj.raw = base64FromBytes(message.raw !== undefined ? message.raw : new Uint8Array()));
|
2836
2826
|
message.programAccountId !== undefined && (obj.programAccountId = message.programAccountId);
|
2837
|
-
message.slot !== undefined && (obj.slot =
|
2827
|
+
message.slot !== undefined && (obj.slot = message.slot.toString());
|
2838
2828
|
return obj;
|
2839
2829
|
},
|
2840
2830
|
|
@@ -2842,7 +2832,7 @@ export const RawTransaction = {
|
|
2842
2832
|
const message = createBaseRawTransaction();
|
2843
2833
|
message.raw = object.raw ?? new Uint8Array();
|
2844
2834
|
message.programAccountId = object.programAccountId ?? undefined;
|
2845
|
-
message.slot =
|
2835
|
+
message.slot = object.slot ?? undefined;
|
2846
2836
|
return message;
|
2847
2837
|
},
|
2848
2838
|
};
|
@@ -3238,7 +3228,7 @@ export const Data_EthTrace = {
|
|
3238
3228
|
};
|
3239
3229
|
|
3240
3230
|
function createBaseData_SolInstruction(): Data_SolInstruction {
|
3241
|
-
return { instructionData: "", slot:
|
3231
|
+
return { instructionData: "", slot: BigInt("0"), programAccountId: "", accounts: [], parsed: undefined };
|
3242
3232
|
}
|
3243
3233
|
|
3244
3234
|
export const Data_SolInstruction = {
|
@@ -3246,8 +3236,8 @@ export const Data_SolInstruction = {
|
|
3246
3236
|
if (message.instructionData !== "") {
|
3247
3237
|
writer.uint32(10).string(message.instructionData);
|
3248
3238
|
}
|
3249
|
-
if (
|
3250
|
-
writer.uint32(16).uint64(message.slot);
|
3239
|
+
if (message.slot !== BigInt("0")) {
|
3240
|
+
writer.uint32(16).uint64(message.slot.toString());
|
3251
3241
|
}
|
3252
3242
|
if (message.programAccountId !== "") {
|
3253
3243
|
writer.uint32(26).string(message.programAccountId);
|
@@ -3272,7 +3262,7 @@ export const Data_SolInstruction = {
|
|
3272
3262
|
message.instructionData = reader.string();
|
3273
3263
|
break;
|
3274
3264
|
case 2:
|
3275
|
-
message.slot = reader.uint64() as Long;
|
3265
|
+
message.slot = longToBigint(reader.uint64() as Long);
|
3276
3266
|
break;
|
3277
3267
|
case 3:
|
3278
3268
|
message.programAccountId = reader.string();
|
@@ -3294,7 +3284,7 @@ export const Data_SolInstruction = {
|
|
3294
3284
|
fromJSON(object: any): Data_SolInstruction {
|
3295
3285
|
return {
|
3296
3286
|
instructionData: isSet(object.instructionData) ? String(object.instructionData) : "",
|
3297
|
-
slot: isSet(object.slot) ?
|
3287
|
+
slot: isSet(object.slot) ? BigInt(object.slot) : BigInt("0"),
|
3298
3288
|
programAccountId: isSet(object.programAccountId) ? String(object.programAccountId) : "",
|
3299
3289
|
accounts: Array.isArray(object?.accounts) ? object.accounts.map((e: any) => String(e)) : [],
|
3300
3290
|
parsed: isObject(object.parsed) ? object.parsed : undefined,
|
@@ -3304,7 +3294,7 @@ export const Data_SolInstruction = {
|
|
3304
3294
|
toJSON(message: Data_SolInstruction): unknown {
|
3305
3295
|
const obj: any = {};
|
3306
3296
|
message.instructionData !== undefined && (obj.instructionData = message.instructionData);
|
3307
|
-
message.slot !== undefined && (obj.slot =
|
3297
|
+
message.slot !== undefined && (obj.slot = message.slot.toString());
|
3308
3298
|
message.programAccountId !== undefined && (obj.programAccountId = message.programAccountId);
|
3309
3299
|
if (message.accounts) {
|
3310
3300
|
obj.accounts = message.accounts.map((e) => e);
|
@@ -3318,7 +3308,7 @@ export const Data_SolInstruction = {
|
|
3318
3308
|
fromPartial(object: DeepPartial<Data_SolInstruction>): Data_SolInstruction {
|
3319
3309
|
const message = createBaseData_SolInstruction();
|
3320
3310
|
message.instructionData = object.instructionData ?? "";
|
3321
|
-
message.slot =
|
3311
|
+
message.slot = object.slot ?? BigInt("0");
|
3322
3312
|
message.programAccountId = object.programAccountId ?? "";
|
3323
3313
|
message.accounts = object.accounts?.map((e) => e) || [];
|
3324
3314
|
message.parsed = object.parsed ?? undefined;
|
@@ -3421,7 +3411,7 @@ export const Data_AptCall = {
|
|
3421
3411
|
};
|
3422
3412
|
|
3423
3413
|
function createBaseData_AptResource(): Data_AptResource {
|
3424
|
-
return { resources: [], version:
|
3414
|
+
return { resources: [], version: BigInt("0"), timestampMicros: BigInt("0") };
|
3425
3415
|
}
|
3426
3416
|
|
3427
3417
|
export const Data_AptResource = {
|
@@ -3429,11 +3419,11 @@ export const Data_AptResource = {
|
|
3429
3419
|
for (const v of message.resources) {
|
3430
3420
|
Struct.encode(Struct.wrap(v!), writer.uint32(34).fork()).ldelim();
|
3431
3421
|
}
|
3432
|
-
if (
|
3433
|
-
writer.uint32(16).int64(message.version);
|
3422
|
+
if (message.version !== BigInt("0")) {
|
3423
|
+
writer.uint32(16).int64(message.version.toString());
|
3434
3424
|
}
|
3435
|
-
if (
|
3436
|
-
writer.uint32(40).int64(message.timestampMicros);
|
3425
|
+
if (message.timestampMicros !== BigInt("0")) {
|
3426
|
+
writer.uint32(40).int64(message.timestampMicros.toString());
|
3437
3427
|
}
|
3438
3428
|
return writer;
|
3439
3429
|
},
|
@@ -3449,10 +3439,10 @@ export const Data_AptResource = {
|
|
3449
3439
|
message.resources.push(Struct.unwrap(Struct.decode(reader, reader.uint32())));
|
3450
3440
|
break;
|
3451
3441
|
case 2:
|
3452
|
-
message.version = reader.int64() as Long;
|
3442
|
+
message.version = longToBigint(reader.int64() as Long);
|
3453
3443
|
break;
|
3454
3444
|
case 5:
|
3455
|
-
message.timestampMicros = reader.int64() as Long;
|
3445
|
+
message.timestampMicros = longToBigint(reader.int64() as Long);
|
3456
3446
|
break;
|
3457
3447
|
default:
|
3458
3448
|
reader.skipType(tag & 7);
|
@@ -3465,8 +3455,8 @@ export const Data_AptResource = {
|
|
3465
3455
|
fromJSON(object: any): Data_AptResource {
|
3466
3456
|
return {
|
3467
3457
|
resources: Array.isArray(object?.resources) ? [...object.resources] : [],
|
3468
|
-
version: isSet(object.version) ?
|
3469
|
-
timestampMicros: isSet(object.timestampMicros) ?
|
3458
|
+
version: isSet(object.version) ? BigInt(object.version) : BigInt("0"),
|
3459
|
+
timestampMicros: isSet(object.timestampMicros) ? BigInt(object.timestampMicros) : BigInt("0"),
|
3470
3460
|
};
|
3471
3461
|
},
|
3472
3462
|
|
@@ -3477,20 +3467,16 @@ export const Data_AptResource = {
|
|
3477
3467
|
} else {
|
3478
3468
|
obj.resources = [];
|
3479
3469
|
}
|
3480
|
-
message.version !== undefined && (obj.version =
|
3481
|
-
message.timestampMicros !== undefined && (obj.timestampMicros =
|
3470
|
+
message.version !== undefined && (obj.version = message.version.toString());
|
3471
|
+
message.timestampMicros !== undefined && (obj.timestampMicros = message.timestampMicros.toString());
|
3482
3472
|
return obj;
|
3483
3473
|
},
|
3484
3474
|
|
3485
3475
|
fromPartial(object: DeepPartial<Data_AptResource>): Data_AptResource {
|
3486
3476
|
const message = createBaseData_AptResource();
|
3487
3477
|
message.resources = object.resources?.map((e) => e) || [];
|
3488
|
-
message.version =
|
3489
|
-
|
3490
|
-
: Long.ZERO;
|
3491
|
-
message.timestampMicros = (object.timestampMicros !== undefined && object.timestampMicros !== null)
|
3492
|
-
? Long.fromValue(object.timestampMicros)
|
3493
|
-
: Long.ZERO;
|
3478
|
+
message.version = object.version ?? BigInt("0");
|
3479
|
+
message.timestampMicros = object.timestampMicros ?? BigInt("0");
|
3494
3480
|
return message;
|
3495
3481
|
},
|
3496
3482
|
};
|
@@ -3684,7 +3670,7 @@ function createBaseRecordMetaData(): RecordMetaData {
|
|
3684
3670
|
return {
|
3685
3671
|
address: "",
|
3686
3672
|
contractName: "",
|
3687
|
-
blockNumber:
|
3673
|
+
blockNumber: BigInt("0"),
|
3688
3674
|
transactionHash: "",
|
3689
3675
|
chainId: "",
|
3690
3676
|
transactionIndex: 0,
|
@@ -3702,8 +3688,8 @@ export const RecordMetaData = {
|
|
3702
3688
|
if (message.contractName !== "") {
|
3703
3689
|
writer.uint32(74).string(message.contractName);
|
3704
3690
|
}
|
3705
|
-
if (
|
3706
|
-
writer.uint32(16).uint64(message.blockNumber);
|
3691
|
+
if (message.blockNumber !== BigInt("0")) {
|
3692
|
+
writer.uint32(16).uint64(message.blockNumber.toString());
|
3707
3693
|
}
|
3708
3694
|
if (message.transactionHash !== "") {
|
3709
3695
|
writer.uint32(50).string(message.transactionHash);
|
@@ -3740,7 +3726,7 @@ export const RecordMetaData = {
|
|
3740
3726
|
message.contractName = reader.string();
|
3741
3727
|
break;
|
3742
3728
|
case 2:
|
3743
|
-
message.blockNumber = reader.uint64() as Long;
|
3729
|
+
message.blockNumber = longToBigint(reader.uint64() as Long);
|
3744
3730
|
break;
|
3745
3731
|
case 6:
|
3746
3732
|
message.transactionHash = reader.string();
|
@@ -3775,7 +3761,7 @@ export const RecordMetaData = {
|
|
3775
3761
|
return {
|
3776
3762
|
address: isSet(object.address) ? String(object.address) : "",
|
3777
3763
|
contractName: isSet(object.contractName) ? String(object.contractName) : "",
|
3778
|
-
blockNumber: isSet(object.blockNumber) ?
|
3764
|
+
blockNumber: isSet(object.blockNumber) ? BigInt(object.blockNumber) : BigInt("0"),
|
3779
3765
|
transactionHash: isSet(object.transactionHash) ? String(object.transactionHash) : "",
|
3780
3766
|
chainId: isSet(object.chainId) ? String(object.chainId) : "",
|
3781
3767
|
transactionIndex: isSet(object.transactionIndex) ? Number(object.transactionIndex) : 0,
|
@@ -3794,7 +3780,7 @@ export const RecordMetaData = {
|
|
3794
3780
|
const obj: any = {};
|
3795
3781
|
message.address !== undefined && (obj.address = message.address);
|
3796
3782
|
message.contractName !== undefined && (obj.contractName = message.contractName);
|
3797
|
-
message.blockNumber !== undefined && (obj.blockNumber =
|
3783
|
+
message.blockNumber !== undefined && (obj.blockNumber = message.blockNumber.toString());
|
3798
3784
|
message.transactionHash !== undefined && (obj.transactionHash = message.transactionHash);
|
3799
3785
|
message.chainId !== undefined && (obj.chainId = message.chainId);
|
3800
3786
|
message.transactionIndex !== undefined && (obj.transactionIndex = Math.round(message.transactionIndex));
|
@@ -3813,9 +3799,7 @@ export const RecordMetaData = {
|
|
3813
3799
|
const message = createBaseRecordMetaData();
|
3814
3800
|
message.address = object.address ?? "";
|
3815
3801
|
message.contractName = object.contractName ?? "";
|
3816
|
-
message.blockNumber =
|
3817
|
-
? Long.fromValue(object.blockNumber)
|
3818
|
-
: Long.UZERO;
|
3802
|
+
message.blockNumber = object.blockNumber ?? BigInt("0");
|
3819
3803
|
message.transactionHash = object.transactionHash ?? "";
|
3820
3804
|
message.chainId = object.chainId ?? "";
|
3821
3805
|
message.transactionIndex = object.transactionIndex ?? 0;
|
@@ -4598,11 +4582,14 @@ function base64FromBytes(arr: Uint8Array): string {
|
|
4598
4582
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
4599
4583
|
|
4600
4584
|
type DeepPartial<T> = T extends Builtin ? T
|
4601
|
-
: T extends
|
4602
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
4585
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
4603
4586
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
4604
4587
|
: Partial<T>;
|
4605
4588
|
|
4589
|
+
function longToBigint(long: Long) {
|
4590
|
+
return BigInt(long.toString());
|
4591
|
+
}
|
4592
|
+
|
4606
4593
|
if (_m0.util.Long !== Long) {
|
4607
4594
|
_m0.util.Long = Long as any;
|
4608
4595
|
_m0.configure();
|
@@ -3,18 +3,18 @@ import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
4
4
|
|
5
5
|
export interface Timestamp {
|
6
|
-
seconds:
|
6
|
+
seconds: bigint;
|
7
7
|
nanos: number;
|
8
8
|
}
|
9
9
|
|
10
10
|
function createBaseTimestamp(): Timestamp {
|
11
|
-
return { seconds:
|
11
|
+
return { seconds: BigInt("0"), nanos: 0 };
|
12
12
|
}
|
13
13
|
|
14
14
|
export const Timestamp = {
|
15
15
|
encode(message: Timestamp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
16
|
-
if (
|
17
|
-
writer.uint32(8).int64(message.seconds);
|
16
|
+
if (message.seconds !== BigInt("0")) {
|
17
|
+
writer.uint32(8).int64(message.seconds.toString());
|
18
18
|
}
|
19
19
|
if (message.nanos !== 0) {
|
20
20
|
writer.uint32(16).int32(message.nanos);
|
@@ -30,7 +30,7 @@ export const Timestamp = {
|
|
30
30
|
const tag = reader.uint32();
|
31
31
|
switch (tag >>> 3) {
|
32
32
|
case 1:
|
33
|
-
message.seconds = reader.int64() as Long;
|
33
|
+
message.seconds = longToBigint(reader.int64() as Long);
|
34
34
|
break;
|
35
35
|
case 2:
|
36
36
|
message.nanos = reader.int32();
|
@@ -45,23 +45,21 @@ export const Timestamp = {
|
|
45
45
|
|
46
46
|
fromJSON(object: any): Timestamp {
|
47
47
|
return {
|
48
|
-
seconds: isSet(object.seconds) ?
|
48
|
+
seconds: isSet(object.seconds) ? BigInt(object.seconds) : BigInt("0"),
|
49
49
|
nanos: isSet(object.nanos) ? Number(object.nanos) : 0,
|
50
50
|
};
|
51
51
|
},
|
52
52
|
|
53
53
|
toJSON(message: Timestamp): unknown {
|
54
54
|
const obj: any = {};
|
55
|
-
message.seconds !== undefined && (obj.seconds =
|
55
|
+
message.seconds !== undefined && (obj.seconds = message.seconds.toString());
|
56
56
|
message.nanos !== undefined && (obj.nanos = Math.round(message.nanos));
|
57
57
|
return obj;
|
58
58
|
},
|
59
59
|
|
60
60
|
fromPartial(object: DeepPartial<Timestamp>): Timestamp {
|
61
61
|
const message = createBaseTimestamp();
|
62
|
-
message.seconds =
|
63
|
-
? Long.fromValue(object.seconds)
|
64
|
-
: Long.ZERO;
|
62
|
+
message.seconds = object.seconds ?? BigInt("0");
|
65
63
|
message.nanos = object.nanos ?? 0;
|
66
64
|
return message;
|
67
65
|
},
|
@@ -70,11 +68,14 @@ export const Timestamp = {
|
|
70
68
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
71
69
|
|
72
70
|
type DeepPartial<T> = T extends Builtin ? T
|
73
|
-
: T extends
|
74
|
-
: T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
71
|
+
: T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
|
75
72
|
: T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
|
76
73
|
: Partial<T>;
|
77
74
|
|
75
|
+
function longToBigint(long: Long) {
|
76
|
+
return BigInt(long.toString());
|
77
|
+
}
|
78
|
+
|
78
79
|
if (_m0.util.Long !== Long) {
|
79
80
|
_m0.util.Long = Long as any;
|
80
81
|
_m0.configure();
|