@apibara/evm 2.0.1-beta.24 → 2.0.1-beta.26
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/dist/index.cjs +18 -2
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.mjs +18 -2
- package/package.json +2 -2
- package/src/block.ts +1 -0
- package/src/proto/data.ts +21 -1
package/dist/index.cjs
CHANGED
|
@@ -1938,7 +1938,8 @@ function createBaseLog() {
|
|
|
1938
1938
|
data: new Uint8Array(0),
|
|
1939
1939
|
transactionIndex: 0,
|
|
1940
1940
|
transactionHash: void 0,
|
|
1941
|
-
transactionStatus: 0
|
|
1941
|
+
transactionStatus: 0,
|
|
1942
|
+
logIndexInTransaction: 0
|
|
1942
1943
|
};
|
|
1943
1944
|
}
|
|
1944
1945
|
const Log$1 = {
|
|
@@ -1973,6 +1974,9 @@ const Log$1 = {
|
|
|
1973
1974
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
1974
1975
|
writer.uint32(64).int32(message.transactionStatus);
|
|
1975
1976
|
}
|
|
1977
|
+
if (message.logIndexInTransaction !== void 0 && message.logIndexInTransaction !== 0) {
|
|
1978
|
+
writer.uint32(72).uint32(message.logIndexInTransaction);
|
|
1979
|
+
}
|
|
1976
1980
|
return writer;
|
|
1977
1981
|
},
|
|
1978
1982
|
decode(input, length) {
|
|
@@ -2037,6 +2041,12 @@ const Log$1 = {
|
|
|
2037
2041
|
}
|
|
2038
2042
|
message.transactionStatus = reader.int32();
|
|
2039
2043
|
continue;
|
|
2044
|
+
case 9:
|
|
2045
|
+
if (tag !== 72) {
|
|
2046
|
+
break;
|
|
2047
|
+
}
|
|
2048
|
+
message.logIndexInTransaction = reader.uint32();
|
|
2049
|
+
continue;
|
|
2040
2050
|
}
|
|
2041
2051
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2042
2052
|
break;
|
|
@@ -2054,7 +2064,8 @@ const Log$1 = {
|
|
|
2054
2064
|
data: isSet$1(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
2055
2065
|
transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
|
|
2056
2066
|
transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0,
|
|
2057
|
-
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
|
|
2067
|
+
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
|
|
2068
|
+
logIndexInTransaction: isSet$1(object.logIndexInTransaction) ? globalThis.Number(object.logIndexInTransaction) : 0
|
|
2058
2069
|
};
|
|
2059
2070
|
},
|
|
2060
2071
|
toJSON(message) {
|
|
@@ -2083,6 +2094,9 @@ const Log$1 = {
|
|
|
2083
2094
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
2084
2095
|
obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
|
|
2085
2096
|
}
|
|
2097
|
+
if (message.logIndexInTransaction !== void 0 && message.logIndexInTransaction !== 0) {
|
|
2098
|
+
obj.logIndexInTransaction = Math.round(message.logIndexInTransaction);
|
|
2099
|
+
}
|
|
2086
2100
|
return obj;
|
|
2087
2101
|
},
|
|
2088
2102
|
create(base) {
|
|
@@ -2098,6 +2112,7 @@ const Log$1 = {
|
|
|
2098
2112
|
message.transactionIndex = object.transactionIndex ?? 0;
|
|
2099
2113
|
message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? B256.fromPartial(object.transactionHash) : void 0;
|
|
2100
2114
|
message.transactionStatus = object.transactionStatus ?? 0;
|
|
2115
|
+
message.logIndexInTransaction = object.logIndexInTransaction ?? 0;
|
|
2101
2116
|
return message;
|
|
2102
2117
|
}
|
|
2103
2118
|
};
|
|
@@ -3099,6 +3114,7 @@ const Log = schema.Schema.Struct({
|
|
|
3099
3114
|
topics: schema.Schema.Array(B256$1),
|
|
3100
3115
|
data: protocol.BytesFromUint8Array,
|
|
3101
3116
|
logIndex: schema.Schema.Number,
|
|
3117
|
+
logIndexInTransaction: schema.Schema.Number,
|
|
3102
3118
|
transactionIndex: schema.Schema.Number,
|
|
3103
3119
|
transactionHash: schema.Schema.optional(B256$1),
|
|
3104
3120
|
transactionStatus: schema.Schema.optional(TransactionStatus)
|
package/dist/index.d.cts
CHANGED
|
@@ -300,6 +300,8 @@ interface Log$1 {
|
|
|
300
300
|
readonly transactionHash?: B256$1 | undefined;
|
|
301
301
|
/** The transaction status. */
|
|
302
302
|
readonly transactionStatus?: TransactionStatus$1 | undefined;
|
|
303
|
+
/** Index of the log in the transaction. */
|
|
304
|
+
readonly logIndexInTransaction?: number | undefined;
|
|
303
305
|
}
|
|
304
306
|
declare const Log$1: {
|
|
305
307
|
encode(message: Log$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1278,6 +1280,7 @@ declare const Log: Schema.Struct<{
|
|
|
1278
1280
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1279
1281
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1280
1282
|
logIndex: typeof Schema.Number;
|
|
1283
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1281
1284
|
transactionIndex: typeof Schema.Number;
|
|
1282
1285
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1283
1286
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1557,6 +1560,7 @@ declare const Block: Schema.Struct<{
|
|
|
1557
1560
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1558
1561
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1559
1562
|
logIndex: typeof Schema.Number;
|
|
1563
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1560
1564
|
transactionIndex: typeof Schema.Number;
|
|
1561
1565
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1562
1566
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1837,6 +1841,7 @@ declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Ar
|
|
|
1837
1841
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1838
1842
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1839
1843
|
logIndex: typeof Schema.Number;
|
|
1844
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1840
1845
|
transactionIndex: typeof Schema.Number;
|
|
1841
1846
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1842
1847
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1944,6 +1949,7 @@ declare const EvmStream: StreamConfig<{
|
|
|
1944
1949
|
readonly transactionHash?: `0x${string}` | undefined;
|
|
1945
1950
|
readonly data?: `0x${string}` | undefined;
|
|
1946
1951
|
readonly logIndex: number;
|
|
1952
|
+
readonly logIndexInTransaction: number;
|
|
1947
1953
|
}[];
|
|
1948
1954
|
readonly receipts: readonly {
|
|
1949
1955
|
readonly from?: `0x${string}` | undefined;
|
package/dist/index.d.mts
CHANGED
|
@@ -300,6 +300,8 @@ interface Log$1 {
|
|
|
300
300
|
readonly transactionHash?: B256$1 | undefined;
|
|
301
301
|
/** The transaction status. */
|
|
302
302
|
readonly transactionStatus?: TransactionStatus$1 | undefined;
|
|
303
|
+
/** Index of the log in the transaction. */
|
|
304
|
+
readonly logIndexInTransaction?: number | undefined;
|
|
303
305
|
}
|
|
304
306
|
declare const Log$1: {
|
|
305
307
|
encode(message: Log$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1278,6 +1280,7 @@ declare const Log: Schema.Struct<{
|
|
|
1278
1280
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1279
1281
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1280
1282
|
logIndex: typeof Schema.Number;
|
|
1283
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1281
1284
|
transactionIndex: typeof Schema.Number;
|
|
1282
1285
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1283
1286
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1557,6 +1560,7 @@ declare const Block: Schema.Struct<{
|
|
|
1557
1560
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1558
1561
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1559
1562
|
logIndex: typeof Schema.Number;
|
|
1563
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1560
1564
|
transactionIndex: typeof Schema.Number;
|
|
1561
1565
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1562
1566
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1837,6 +1841,7 @@ declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Ar
|
|
|
1837
1841
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1838
1842
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1839
1843
|
logIndex: typeof Schema.Number;
|
|
1844
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1840
1845
|
transactionIndex: typeof Schema.Number;
|
|
1841
1846
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1842
1847
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1944,6 +1949,7 @@ declare const EvmStream: StreamConfig<{
|
|
|
1944
1949
|
readonly transactionHash?: `0x${string}` | undefined;
|
|
1945
1950
|
readonly data?: `0x${string}` | undefined;
|
|
1946
1951
|
readonly logIndex: number;
|
|
1952
|
+
readonly logIndexInTransaction: number;
|
|
1947
1953
|
}[];
|
|
1948
1954
|
readonly receipts: readonly {
|
|
1949
1955
|
readonly from?: `0x${string}` | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -300,6 +300,8 @@ interface Log$1 {
|
|
|
300
300
|
readonly transactionHash?: B256$1 | undefined;
|
|
301
301
|
/** The transaction status. */
|
|
302
302
|
readonly transactionStatus?: TransactionStatus$1 | undefined;
|
|
303
|
+
/** Index of the log in the transaction. */
|
|
304
|
+
readonly logIndexInTransaction?: number | undefined;
|
|
303
305
|
}
|
|
304
306
|
declare const Log$1: {
|
|
305
307
|
encode(message: Log$1, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1278,6 +1280,7 @@ declare const Log: Schema.Struct<{
|
|
|
1278
1280
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1279
1281
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1280
1282
|
logIndex: typeof Schema.Number;
|
|
1283
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1281
1284
|
transactionIndex: typeof Schema.Number;
|
|
1282
1285
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1283
1286
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1557,6 +1560,7 @@ declare const Block: Schema.Struct<{
|
|
|
1557
1560
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1558
1561
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1559
1562
|
logIndex: typeof Schema.Number;
|
|
1563
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1560
1564
|
transactionIndex: typeof Schema.Number;
|
|
1561
1565
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1562
1566
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1837,6 +1841,7 @@ declare const BlockFromBytes: Schema.transform<Schema.Schema<Uint8Array, Uint8Ar
|
|
|
1837
1841
|
}>, Schema.SchemaClass<`0x${string}`, `0x${string}`, never>>>;
|
|
1838
1842
|
data: Schema.PropertySignature<"?:", `0x${string}`, never, ":", Uint8Array, false, never>;
|
|
1839
1843
|
logIndex: typeof Schema.Number;
|
|
1844
|
+
logIndexInTransaction: typeof Schema.Number;
|
|
1840
1845
|
transactionIndex: typeof Schema.Number;
|
|
1841
1846
|
transactionHash: Schema.optional<Schema.transform<Schema.Struct<{
|
|
1842
1847
|
x0: typeof Schema.BigIntFromSelf;
|
|
@@ -1944,6 +1949,7 @@ declare const EvmStream: StreamConfig<{
|
|
|
1944
1949
|
readonly transactionHash?: `0x${string}` | undefined;
|
|
1945
1950
|
readonly data?: `0x${string}` | undefined;
|
|
1946
1951
|
readonly logIndex: number;
|
|
1952
|
+
readonly logIndexInTransaction: number;
|
|
1947
1953
|
}[];
|
|
1948
1954
|
readonly receipts: readonly {
|
|
1949
1955
|
readonly from?: `0x${string}` | undefined;
|
package/dist/index.mjs
CHANGED
|
@@ -1931,7 +1931,8 @@ function createBaseLog() {
|
|
|
1931
1931
|
data: new Uint8Array(0),
|
|
1932
1932
|
transactionIndex: 0,
|
|
1933
1933
|
transactionHash: void 0,
|
|
1934
|
-
transactionStatus: 0
|
|
1934
|
+
transactionStatus: 0,
|
|
1935
|
+
logIndexInTransaction: 0
|
|
1935
1936
|
};
|
|
1936
1937
|
}
|
|
1937
1938
|
const Log$1 = {
|
|
@@ -1966,6 +1967,9 @@ const Log$1 = {
|
|
|
1966
1967
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
1967
1968
|
writer.uint32(64).int32(message.transactionStatus);
|
|
1968
1969
|
}
|
|
1970
|
+
if (message.logIndexInTransaction !== void 0 && message.logIndexInTransaction !== 0) {
|
|
1971
|
+
writer.uint32(72).uint32(message.logIndexInTransaction);
|
|
1972
|
+
}
|
|
1969
1973
|
return writer;
|
|
1970
1974
|
},
|
|
1971
1975
|
decode(input, length) {
|
|
@@ -2030,6 +2034,12 @@ const Log$1 = {
|
|
|
2030
2034
|
}
|
|
2031
2035
|
message.transactionStatus = reader.int32();
|
|
2032
2036
|
continue;
|
|
2037
|
+
case 9:
|
|
2038
|
+
if (tag !== 72) {
|
|
2039
|
+
break;
|
|
2040
|
+
}
|
|
2041
|
+
message.logIndexInTransaction = reader.uint32();
|
|
2042
|
+
continue;
|
|
2033
2043
|
}
|
|
2034
2044
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2035
2045
|
break;
|
|
@@ -2047,7 +2057,8 @@ const Log$1 = {
|
|
|
2047
2057
|
data: isSet$1(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
|
|
2048
2058
|
transactionIndex: isSet$1(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
|
|
2049
2059
|
transactionHash: isSet$1(object.transactionHash) ? B256.fromJSON(object.transactionHash) : void 0,
|
|
2050
|
-
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0
|
|
2060
|
+
transactionStatus: isSet$1(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
|
|
2061
|
+
logIndexInTransaction: isSet$1(object.logIndexInTransaction) ? globalThis.Number(object.logIndexInTransaction) : 0
|
|
2051
2062
|
};
|
|
2052
2063
|
},
|
|
2053
2064
|
toJSON(message) {
|
|
@@ -2076,6 +2087,9 @@ const Log$1 = {
|
|
|
2076
2087
|
if (message.transactionStatus !== void 0 && message.transactionStatus !== 0) {
|
|
2077
2088
|
obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
|
|
2078
2089
|
}
|
|
2090
|
+
if (message.logIndexInTransaction !== void 0 && message.logIndexInTransaction !== 0) {
|
|
2091
|
+
obj.logIndexInTransaction = Math.round(message.logIndexInTransaction);
|
|
2092
|
+
}
|
|
2079
2093
|
return obj;
|
|
2080
2094
|
},
|
|
2081
2095
|
create(base) {
|
|
@@ -2091,6 +2105,7 @@ const Log$1 = {
|
|
|
2091
2105
|
message.transactionIndex = object.transactionIndex ?? 0;
|
|
2092
2106
|
message.transactionHash = object.transactionHash !== void 0 && object.transactionHash !== null ? B256.fromPartial(object.transactionHash) : void 0;
|
|
2093
2107
|
message.transactionStatus = object.transactionStatus ?? 0;
|
|
2108
|
+
message.logIndexInTransaction = object.logIndexInTransaction ?? 0;
|
|
2094
2109
|
return message;
|
|
2095
2110
|
}
|
|
2096
2111
|
};
|
|
@@ -3092,6 +3107,7 @@ const Log = Schema.Struct({
|
|
|
3092
3107
|
topics: Schema.Array(B256$1),
|
|
3093
3108
|
data: BytesFromUint8Array,
|
|
3094
3109
|
logIndex: Schema.Number,
|
|
3110
|
+
logIndexInTransaction: Schema.Number,
|
|
3095
3111
|
transactionIndex: Schema.Number,
|
|
3096
3112
|
transactionHash: Schema.optional(B256$1),
|
|
3097
3113
|
transactionStatus: Schema.optional(TransactionStatus)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/evm",
|
|
3
|
-
"version": "2.0.1-beta.
|
|
3
|
+
"version": "2.0.1-beta.26",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vitest": "^1.6.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@apibara/protocol": "2.0.0-beta.
|
|
38
|
+
"@apibara/protocol": "2.0.0-beta.34",
|
|
39
39
|
"@effect/schema": "^0.67.15",
|
|
40
40
|
"effect": "^3.2.6",
|
|
41
41
|
"long": "^5.2.1",
|
package/src/block.ts
CHANGED
|
@@ -135,6 +135,7 @@ export const Log = Schema.Struct({
|
|
|
135
135
|
topics: Schema.Array(B256),
|
|
136
136
|
data: BytesFromUint8Array,
|
|
137
137
|
logIndex: Schema.Number,
|
|
138
|
+
logIndexInTransaction: Schema.Number,
|
|
138
139
|
transactionIndex: Schema.Number,
|
|
139
140
|
transactionHash: Schema.optional(B256),
|
|
140
141
|
transactionStatus: Schema.optional(TransactionStatus),
|
package/src/proto/data.ts
CHANGED
|
@@ -351,7 +351,11 @@ export interface Log {
|
|
|
351
351
|
| B256
|
|
352
352
|
| undefined;
|
|
353
353
|
/** The transaction status. */
|
|
354
|
-
readonly transactionStatus?:
|
|
354
|
+
readonly transactionStatus?:
|
|
355
|
+
| TransactionStatus
|
|
356
|
+
| undefined;
|
|
357
|
+
/** Index of the log in the transaction. */
|
|
358
|
+
readonly logIndexInTransaction?: number | undefined;
|
|
355
359
|
}
|
|
356
360
|
|
|
357
361
|
export interface Signature {
|
|
@@ -1830,6 +1834,7 @@ function createBaseLog(): Log {
|
|
|
1830
1834
|
transactionIndex: 0,
|
|
1831
1835
|
transactionHash: undefined,
|
|
1832
1836
|
transactionStatus: 0,
|
|
1837
|
+
logIndexInTransaction: 0,
|
|
1833
1838
|
};
|
|
1834
1839
|
}
|
|
1835
1840
|
|
|
@@ -1865,6 +1870,9 @@ export const Log = {
|
|
|
1865
1870
|
if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
|
|
1866
1871
|
writer.uint32(64).int32(message.transactionStatus);
|
|
1867
1872
|
}
|
|
1873
|
+
if (message.logIndexInTransaction !== undefined && message.logIndexInTransaction !== 0) {
|
|
1874
|
+
writer.uint32(72).uint32(message.logIndexInTransaction);
|
|
1875
|
+
}
|
|
1868
1876
|
return writer;
|
|
1869
1877
|
},
|
|
1870
1878
|
|
|
@@ -1941,6 +1949,13 @@ export const Log = {
|
|
|
1941
1949
|
|
|
1942
1950
|
message.transactionStatus = reader.int32() as any;
|
|
1943
1951
|
continue;
|
|
1952
|
+
case 9:
|
|
1953
|
+
if (tag !== 72) {
|
|
1954
|
+
break;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
message.logIndexInTransaction = reader.uint32();
|
|
1958
|
+
continue;
|
|
1944
1959
|
}
|
|
1945
1960
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1946
1961
|
break;
|
|
@@ -1962,6 +1977,7 @@ export const Log = {
|
|
|
1962
1977
|
transactionIndex: isSet(object.transactionIndex) ? globalThis.Number(object.transactionIndex) : 0,
|
|
1963
1978
|
transactionHash: isSet(object.transactionHash) ? B256.fromJSON(object.transactionHash) : undefined,
|
|
1964
1979
|
transactionStatus: isSet(object.transactionStatus) ? transactionStatusFromJSON(object.transactionStatus) : 0,
|
|
1980
|
+
logIndexInTransaction: isSet(object.logIndexInTransaction) ? globalThis.Number(object.logIndexInTransaction) : 0,
|
|
1965
1981
|
};
|
|
1966
1982
|
},
|
|
1967
1983
|
|
|
@@ -1991,6 +2007,9 @@ export const Log = {
|
|
|
1991
2007
|
if (message.transactionStatus !== undefined && message.transactionStatus !== 0) {
|
|
1992
2008
|
obj.transactionStatus = transactionStatusToJSON(message.transactionStatus);
|
|
1993
2009
|
}
|
|
2010
|
+
if (message.logIndexInTransaction !== undefined && message.logIndexInTransaction !== 0) {
|
|
2011
|
+
obj.logIndexInTransaction = Math.round(message.logIndexInTransaction);
|
|
2012
|
+
}
|
|
1994
2013
|
return obj;
|
|
1995
2014
|
},
|
|
1996
2015
|
|
|
@@ -2011,6 +2030,7 @@ export const Log = {
|
|
|
2011
2030
|
? B256.fromPartial(object.transactionHash)
|
|
2012
2031
|
: undefined;
|
|
2013
2032
|
message.transactionStatus = object.transactionStatus ?? 0;
|
|
2033
|
+
message.logIndexInTransaction = object.logIndexInTransaction ?? 0;
|
|
2014
2034
|
return message;
|
|
2015
2035
|
},
|
|
2016
2036
|
};
|